@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/fonts/onest/onest-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/fonts/onest/onest-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --bg: #fbfaf9; --ink: #111; --text: #1a1a1a; --line: #e6e2dd; --card: #fff; --soft: #f3f1ee; --accent: #d97757; --ok: #1a7f37; --bad: #b00020; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.btn, button, a.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid #111; cursor: pointer; font-family: inherit; line-height: 1.3; background: linear-gradient(#545454, #111); color: #fff; }
.btn:hover, button:hover, a.button:hover { background: #111; }
.btn-light, button.secondary, a.button.secondary, .btn-dark.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover, button.secondary:hover, a.button.secondary:hover { background: #fff; border-color: var(--ink); }
.btn-dark { background: linear-gradient(#545454, #111); color: #fff; border-color: #111; }
button.small { padding: 5px 12px; font-size: 14px; }

header.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 250, 249, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; }
.brand span { font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; padding-left: 10px; border-left: 1px solid var(--line); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.top-actions .btn { padding: 9px 16px; font-size: 15px; }
.top-actions .icon-btn { padding: 0; width: 42px; height: 42px; justify-content: center; }
.top-actions .btn { white-space: nowrap; flex-shrink: 0; }
.top-actions .icon-btn { flex: 0 0 42px; }
.brand { min-width: 0; }
@media (max-width: 400px) { .top-actions { gap: 6px; } .top-actions .btn { padding: 8px 12px; font-size: 14px; } .top-actions .icon-btn { padding: 0; } .brand span { display: none; } }

footer.bottom { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 14px; margin-top: 64px; }
footer.bottom .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer.bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.bottom a { color: var(--ink); }

.page { padding: 40px 0 0; }
.page h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; }
.page h2 { font-size: 24px; margin: 44px 0 12px; }
.page h3 { font-size: 18px; margin: 28px 0 8px; }
.page p { margin: 0 0 14px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 24px 50px -36px rgba(0,0,0,.25); }
.narrow { max-width: 560px; margin: 0 auto; }
.panel { overflow-wrap: anywhere; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 28px; align-items: start; max-width: 1040px; margin: 0 auto; }
.aside { background: #111; color: #fff; border-radius: 18px; padding: 36px; position: sticky; top: 92px; }
.aside h2 { color: #fff; font-size: 26px; margin: 0 0 18px; }
.aside ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.aside li { display: flex; gap: 12px; align-items: flex-start; }
.aside li::before { content: ''; flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.aside .ai { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border-top: 1px solid #333; padding-top: 20px; font-size: 14px; }
.aside .ai img { width: 28px; height: 28px; background: #fff; border-radius: 8px; padding: 4px; }

label { display: block; margin: 16px 0 6px; font-weight: 600; color: var(--ink); font-size: 15px; }
label small { font-weight: 400; }
input[type=email], input[type=password], input[type=text], input[type=tel], input[type=date], input[type=time], input[type=datetime-local], textarea, select { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font-size: 16px; font-family: inherit; color: var(--ink); background: #fff; border: 1px solid #8c847c; border-radius: 8px; }
input:focus, textarea:focus, select:focus { outline: 2px solid #111; outline-offset: 1px; border-color: #111; }
input[readonly] { background: var(--soft); }
select { width: auto; max-width: 100%; display: inline-block; }
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.aside a:focus-visible { outline-color: #fff; }
form.inline select { margin-top: 0; padding: 6px 8px; font-size: 14px; }
.buttons { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; align-items: center; }
.error { border: 1px solid var(--bad); background: #fff5f6; color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.error ul { margin: 0; }
.status { border: 1px solid var(--ok); background: #f2fbf4; color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.box { border: 1px solid var(--line); background: var(--card); padding: 16px 18px; border-radius: 12px; margin: 16px 0; }
ul, ol { padding-left: 20px; }
li { margin: 6px 0; }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; word-break: break-all; }
code { background: var(--soft); padding: 1px 6px; border-radius: 4px; }
.copy { display: flex; gap: 8px; align-items: stretch; margin: 8px 0; }
.copy code { flex: 1; display: flex; align-items: center; padding: 10px 12px; border: 1px solid #111; background: #fff; border-radius: 8px; }
small { font-size: 13px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink); background: var(--soft); }
.scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
nav.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 28px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
nav.tabs a { padding: 7px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); }
nav.tabs a:hover { background: var(--soft); }
nav.tabs a.active { background: #111; color: #fff; }
form.inline { display: inline; margin: 0; }
details summary { cursor: pointer; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .brand img { height: 22px; }
  .brand span { font-size: 17px; }
  .panel { padding: 22px 18px; }
  .aside { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.conn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.conn { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.conn.later { border-style: dashed; }
.conn-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.conn-head img { width: 40px; height: 40px; flex: 0 0 40px; }
.conn-head strong { display: block; color: var(--ink); font-size: 18px; }
.conn-head span { display: block; font-size: 13px; }
.conn .buttons { margin-top: 8px; margin-bottom: 8px; }
.conn-on { font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .conn-grid { grid-template-columns: 1fr; } }
