:root {
  --bg: #0e0f11; --panel: #141619; --panel-2: #181a1e; --field: #1b1d22; --field-hover: #20232a;
  --line: rgba(255, 255, 255, 0.07); --line-strong: rgba(255, 255, 255, 0.13);
  --text: #eceef1; --text-2: #a3a8b1; --text-3: #6f7580;
  --accent: #6b9bd8; --accent-hover: #7ca8e0; --accent-ink: #07111e; --accent-soft: rgba(107, 155, 216, 0.14); --accent-text: #a3c3ec;
  --ok: #46a883; --ok-soft: rgba(70, 168, 131, 0.13); --warn: #cfa349; --warn-soft: rgba(207, 163, 73, 0.13);
  --bad: #d0645e; --bad-soft: rgba(208, 100, 94, 0.13);
  --r: 16px; --r-sm: 10px; --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 15px/1.55 Outfit, 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.booting > .login, body.booting > .app { visibility: hidden; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .86em; background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: .05em .4em; color: var(--text-2); }
.ic { width: 18px; height: 18px; flex: none; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.grow { flex: 1; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.eyebrow { color: var(--text-3); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; font-weight: 500; }
.skel { display: inline-block; height: 1em; border-radius: 6px; background: linear-gradient(90deg, #1a1c20, #23262c, #1a1c20); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; vertical-align: middle; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--field); color: var(--text); font: 500 14px Outfit, system-ui, sans-serif; cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); }
.btn:hover { background: var(--field-hover); border-color: rgba(255,255,255,.2); color: var(--text); }
.btn:active { transform: scale(0.97); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255,255,255,.05); border-color: transparent; }
.btn-danger { background: var(--bad-soft); border-color: rgba(208,100,94,.35); color: #eba19c; }
.btn-danger:hover { background: var(--bad); border-color: var(--bad); color: #1a0907; }
.btn-danger-text { color: #eba19c; }
.btn-sm { height: 34px; padding: 0 11px; font-size: 13.5px; border-radius: 9px; }
.btn-block { width: 100%; height: 44px; }
.btn-icon { width: 40px; padding: 0; }
.btn.loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--text); animation: spin .7s linear infinite; }
.btn-primary.loading::after { border-color: rgba(7,17,30,.3); border-top-color: var(--accent-ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); }
.icon-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
input:not([type=checkbox]), select, textarea { width: 100%; height: 42px; padding: 0 13px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--field); color: var(--text); font: 15px Outfit, system-ui, sans-serif; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease); }
textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.6; }
input:hover, select:hover, textarea:hover { background: var(--field-hover); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(107,155,216,.18); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.hint { color: var(--text-3); font-size: 12.5px; }
.form-error { color: #eba19c; font-size: 13.5px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.link .ic { width: 15px; height: 15px; }

.login { display: grid; grid-template-columns: 44vw 1fr; min-height: 100dvh; }
.login-brand { padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #15171b 0%, #101215 55%, #111a26 100%); border-right: 1px solid var(--line); }
.login-mark { width: 52px; height: 52px; }
.login-copy h1 { font-size: clamp(36px, 3.6vw, 50px); letter-spacing: -0.035em; line-height: 1.02; }
.login-copy p { color: var(--text-2); margin-top: 12px; font-size: 16px; line-height: 1.55; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 6vh 7vw; }
.login-form { width: 100%; max-width: 400px; display: grid; gap: 16px; animation: rise .4s var(--ease) both; }
.login-form h2 { font-size: 28px; letter-spacing: -0.03em; }
.code-input { font-family: var(--mono) !important; font-size: 24px !important; letter-spacing: .4em; text-align: center; height: 56px !important; }
.login-foot { color: var(--text-3); font-size: 12.5px; margin-top: 40px; }

.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 26px; padding: 22px 16px; border-right: 1px solid var(--line); background: #0f1012; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand em { font-style: normal; color: var(--text-3); font-weight: 500; }
.mark { width: 26px; height: 26px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--text-2); font-weight: 500; font-size: 14.5px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.side-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.side-nav a.active { color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.side-nav a.active .ic { color: var(--accent); }
.side-nav a.active::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--accent); }
.side-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.session-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); font: 12.5px var(--mono); }
.session-pill .dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.session-pill .dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: breathe 2.6s var(--ease) infinite; }
.session-pill.soon .dot { background: var(--warn); }
@keyframes breathe { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.main { min-width: 0; padding: 36px 44px 60px; }
.view { animation: rise .4s var(--ease) both; max-width: 1180px; }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.view-head h1 { font-size: 30px; letter-spacing: -0.03em; margin-top: 6px; }
.view-head .muted { margin-top: 6px; max-width: 60ch; }
.head-tools { display: flex; gap: 8px; }
.head-tools select { width: 230px; }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.stats div { padding: 18px 20px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { color: var(--text-3); font-size: 12.5px; }
.stats dd { margin: 4px 0 0; font-size: 28px; font-weight: 500; }
.stats [data-k="failed"].has dd { color: #eba19c; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ov-side { display: grid; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 20px 22px; display: grid; gap: 14px; align-content: start; }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.panel-head h2 { font-size: 16.5px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.feed li:first-child { border-top: 0; }
.feed .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); transform: translateY(-1px); }
.feed .dot.ok { background: var(--ok); } .feed .dot.bad { background: var(--bad); } .feed .dot.warn { background: var(--warn); } .feed .dot.acc { background: var(--accent); }
.feed b { font-weight: 500; font-size: 14px; }
.feed p { color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed time { color: var(--text-3); font: 12px var(--mono); white-space: nowrap; }
.skel-row { display: block !important; padding: 14px 0 !important; }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; text-align: right; }

.list { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.row { display: grid; grid-template-columns: 36px minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: #16181c; }
.row-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--field); color: var(--text-2); }
.row-icon.master { color: var(--accent); background: var(--accent-soft); }
.row-name b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-name span { display: block; color: var(--text-3); font-size: 13px; }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-3); font-size: 13px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(255,255,255,.06); color: var(--text-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: #8fd3b6; } .pill.warn { background: var(--warn-soft); color: #e0bd73; } .pill.acc { background: var(--accent-soft); color: var(--accent-text); }
.inline-create { display: flex; gap: 8px; min-width: min(420px, 100%); }
.empty { display: grid; justify-items: start; gap: 8px; padding: 34px 22px; color: var(--text-3); }
.empty h3 { color: var(--text); font-size: 17px; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: 200px; padding: 6px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-strong); box-shadow: 0 20px 44px -20px rgba(0,0,0,.75); display: grid; }
.menu-pop button { text-align: left; border: 0; background: none; color: var(--text-2); font: 14px Outfit, system-ui, sans-serif; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.menu-pop button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.menu-pop .menu-label { color: var(--text-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px 4px; }

.view-notes { max-width: none; }
.notes { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; height: calc(100dvh - 96px); min-height: 520px; }
.notes-list { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.notes-tools { display: flex; gap: 8px; }
.search { position: relative; flex: 1; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 17px; height: 17px; pointer-events: none; z-index: 1; }
.search input { padding-left: 38px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row:empty { display: none; }
.tag { border: 1px solid var(--line); background: var(--panel); color: var(--text-2); font: 12.5px var(--mono); padding: 4px 9px; border-radius: 8px; cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease); }
.tag:hover { color: var(--text); border-color: var(--line-strong); }
.tag.on { border-color: rgba(107,155,216,.5); color: var(--accent-text); background: var(--accent-soft); }
.note-items { flex: 1; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.note-item { display: block; width: 100%; text-align: left; border: 0; background: none; color: inherit; font: inherit; padding: 13px 16px; cursor: pointer; border-top: 1px solid var(--line); transition: background-color .15s var(--ease); position: relative; }
.note-item:first-child { border-top: 0; }
.note-item:hover { background: #16181c; }
.note-item.on { background: var(--accent-soft); }
.note-item.on::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--accent); }
.note-item b { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-item b .ic { width: 14px; height: 14px; color: var(--accent); }
.note-item p { color: var(--text-3); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-item time { color: var(--text-3); font: 11.5px var(--mono); }
.editor, .editor-empty { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); min-height: 0; }
.editor { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; animation: rise .3s var(--ease) both; }
.editor-top { display: flex; gap: 8px; align-items: center; }
.note-back { display: none !important; }
.editor-title { font-size: 22px !important; font-weight: 600; letter-spacing: -0.02em; height: 48px !important; background: transparent !important; border-color: transparent !important; padding-left: 0 !important; }
.editor-title:focus { box-shadow: none !important; border-color: transparent !important; }
.editor-tags { font-family: var(--mono) !important; font-size: 13.5px !important; }
.editor-body { flex: 1; min-height: 240px; font-family: var(--mono) !important; font-size: 14px !important; }
.editor-foot { display: flex; align-items: center; gap: 8px; }
.editor-empty { display: grid; place-content: center; justify-items: start; gap: 8px; padding: 40px; max-width: none; }
.editor-empty .ic { width: 30px; height: 30px; color: var(--text-3); }
.editor-empty p { max-width: 42ch; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--text-3); font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 12px 16px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.mono { font: 12.5px var(--mono); white-space: nowrap; color: var(--text-3); }
.table td.detail { color: var(--text-2); word-break: break-word; }

.docs { display: grid; gap: 30px; max-width: 900px; }
.doc-block { display: grid; gap: 12px; }
.doc-block h3 { font-size: 18px; }
.code { border: 1px solid var(--line); border-radius: 14px; background: #0b0c0e; overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; }
.code pre { margin: 0; padding: 14px 16px; font: 13px/1.6 var(--mono); color: #c6cbd3; overflow-x: auto; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--text-3); font: 12.5px Outfit, system-ui, sans-serif; cursor: pointer; padding: 5px 8px; border-radius: 7px; }
.copy-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.copy-btn .ic { width: 14px; height: 14px; }
.endpoints { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.endpoints div { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.endpoints div:first-child { border-top: 0; }
.endpoints code { background: none; border: 0; padding: 0; color: var(--text); font-size: 13px; }
.endpoints em { font-style: normal; color: var(--text-3); font-size: 13.5px; }
.m { font: 600 11px var(--mono); padding: 3px 7px; border-radius: 6px; text-align: center; letter-spacing: .04em; }
.m.get { background: var(--accent-soft); color: var(--accent-text); } .m.post { background: var(--ok-soft); color: #8fd3b6; }
.m.patch { background: var(--warn-soft); color: #e0bd73; } .m.del { background: var(--bad-soft); color: #eba19c; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.codes div { background: var(--panel); padding: 12px 16px; display: flex; gap: 12px; align-items: baseline; }
.codes b { font-weight: 500; color: var(--text); }
.codes span { color: var(--text-3); font-size: 13.5px; }
.docs-page { min-height: 100dvh; }
.docs-wrap { max-width: 960px; margin: 0 auto; padding: 48px 28px 60px; }
.docs-head { display: grid; gap: 10px; margin-bottom: 34px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.docs-head .brand { padding: 0; margin-bottom: 10px; }
.docs-head h1 { font-size: 34px; letter-spacing: -0.03em; }

.dlg { border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); border-radius: 18px; padding: 24px; width: min(480px, calc(100vw - 32px)); box-shadow: 0 30px 70px -28px rgba(0,0,0,.8); }
.dlg::backdrop { background: rgba(8, 9, 10, 0.7); }
.dlg h3 { font-size: 19px; margin-bottom: 10px; }
.dlg #dlg-body { color: var(--text-2); display: grid; gap: 12px; margin-bottom: 20px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }
.secret { display: flex; gap: 8px; }
.secret code { flex: 1; display: block; padding: 11px 12px; font-size: 13px; color: var(--text); word-break: break-all; background: #0b0c0e; }
.warn-box { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: #e4cd97; font-size: 13.5px; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 60; }
.toast { min-width: 240px; max-width: 380px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); font-size: 14px; animation: rise .3s var(--ease); }
.toast.bad { border-left-color: var(--bad); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 1100px) {
  .ov-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats div:nth-child(4) { border-left: 0; }
  .stats div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .brand span { display: none; }
  .side-nav { display: flex; gap: 2px; }
  .side-nav a { padding: 9px 10px; }
  .side-nav a span { display: none; }
  .side-nav a.active::before { display: none; }
  .side-foot { margin: 0 0 0 auto; }
  .session-pill { display: none; }
  .main { padding: 24px 16px 40px; }
  .notes { grid-template-columns: 1fr; height: auto; }
  .notes.editing .notes-list { display: none; }
  .notes:not(.editing) .editor-empty { display: none; }
  .note-back { display: inline-flex !important; }
  .note-items { max-height: 60vh; }
  .editor-body { min-height: 300px; }
}
@media (max-width: 767px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 26px 20px; flex-direction: row; align-items: center; gap: 14px; justify-content: flex-start; }
  .login-mark { width: 38px; height: 38px; }
  .login-copy h1 { font-size: 26px; }
  .login-copy p { display: none; }
  .login-panel { padding: 28px 20px 40px; justify-content: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(odd) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats div:nth-child(4) { border-left: 1px solid var(--line); }
  .row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .row-meta { grid-column: 2 / -1; grid-row: 2; }
  .inline-create { min-width: 0; width: 100%; }
  .head-tools { width: 100%; }
  .head-tools select { flex: 1; width: auto; }
  .endpoints div { grid-template-columns: 64px minmax(0, 1fr); }
  .endpoints em { grid-column: 2; }
}
@media (max-width: 767px) {
  .editor-foot { flex-wrap: wrap; }
  .editor-foot #note-meta { flex-basis: 100%; }
  .editor-foot .grow { display: none; }
}

.login-alt { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); width: max-content; }
.login-alt:hover { color: var(--text); }
.login-alt .ic { width: 16px; height: 16px; }

.login-brand { position: relative; overflow: hidden; }
.login-brand > * { position: relative; z-index: 1; }
.login-brand > canvas.login-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.sso-or { display: flex; align-items: center; gap: 12px; color: var(--text-3, #6f7580); font-size: 13px; }
.sso-or::before, .sso-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.09); }
.sso-btn { gap: 10px; text-decoration: none; border-color: rgba(139,127,217,.35); }
.sso-btn:hover { background: rgba(139,127,217,.12); border-color: rgba(139,127,217,.6); }
