:root {
    --ink: #101c2c;
    --ink-soft: #435064;
    --muted: #7a8798;
    --line: #e8e4dc;
    --paper: #fffdf8;
    --cream: #f7f3ec;
    --surface: #ffffff;
    --accent: #f28c28;
    --accent-dark: #d87412;
    --accent-pale: #fff0dc;
    --green: #2f9e62;
    --red: #d94d5c;
    --shadow: 0 18px 45px rgba(30, 42, 58, .08);
    --shadow-small: 0 8px 22px rgba(30, 42, 58, .07);
    --radius: 18px;
    --radius-small: 12px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; color: var(--ink); background: var(--cream); font-size: 14px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.icon { width: 18px; height: 18px; display: inline-block; flex: 0 0 auto; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; }
.muted { color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -.04em; font-weight: 500; }
.brand strong { font-weight: 800; }
.brand-mark { display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: #fff; background: var(--accent); box-shadow: 0 7px 18px rgba(242,140,40,.28); }
.brand-mark .icon { width: 18px; height: 18px; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 246px; background: var(--ink); color: #e9edf3; }
.sidebar-inner { display: flex; height: 100%; flex-direction: column; padding: 30px 18px 20px; }
.sidebar .brand { color: #fff; padding: 0 10px; }
.sidebar-label { margin: 48px 12px 12px; color: #728096; }
.sidebar-label-spaced { margin-top: 30px; }
.main-nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; height: 45px; border-radius: 11px; padding: 0 13px; color: #97a5b8; font-weight: 600; transition: .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-link.active { color: #fff; background: rgba(242,140,40,.17); box-shadow: inset 3px 0 0 var(--accent); }
.nav-link.active .icon { color: var(--accent); }
.sidebar-spacer { flex: 1; }
.sidebar-tip { display: flex; gap: 11px; margin: 16px 4px 20px; padding: 14px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.04); }
.tip-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: var(--accent); background: rgba(242,140,40,.15); }
.sidebar-tip strong { display: block; font-size: 12px; }
.sidebar-tip p { margin: 3px 0 0; color: #8491a3; font-size: 11px; line-height: 1.35; }
.profile-card { display: flex; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.08); padding: 19px 4px 0; }
.avatar { display: inline-grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; color: var(--ink); background: var(--accent-pale); font-size: 12px; font-weight: 800; }
.profile-meta { min-width: 0; flex: 1; }
.profile-meta strong, .profile-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-meta strong { color: #fff; font-size: 12px; }
.profile-meta small { margin-top: 2px; color: #8190a5; font-size: 10px; }
.logout-form { margin: 0; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; color: var(--ink-soft); border-radius: 9px; background: transparent; transition: .18s ease; }
.icon-button:hover { color: var(--accent-dark); background: var(--accent-pale); }
.icon-button-ghost { color: #8090a2; }
.icon-button-ghost:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-content { flex: 1; min-width: 0; margin-left: 246px; }
.content-wrap { width: min(1260px, calc(100% - 80px)); margin: 0 auto; padding: 48px 0 64px; }
.mobile-topbar { display: none; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.page-header h1 { margin: 9px 0 4px; font-size: clamp(29px, 4vw, 42px); line-height: 1.05; letter-spacing: -.055em; }
.page-subtitle { max-width: 580px; margin: 0; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; font-size: 12px; font-weight: 800; transition: .18s ease; }
.button .icon { width: 16px; height: 16px; }
.button-primary { color: #fff; background: var(--ink); box-shadow: 0 8px 18px rgba(16,28,44,.14); }
.button-primary:hover { background: #22334b; transform: translateY(-1px); }
.button-quiet { color: var(--ink-soft); border-color: var(--line); background: rgba(255,255,255,.54); }
.button-quiet:hover { border-color: #d5cfc2; background: #fff; }
.button-wide { width: 100%; }
.danger-text { color: var(--red); }
.back-link { display: inline-flex; align-items: center; color: var(--muted); font-size: 12px; font-weight: 700; transition: .18s; }
.back-link:hover { color: var(--accent-dark); }
.stats-row { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 14px; margin-bottom: 36px; }
.stat-card { position: relative; min-height: 112px; padding: 21px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.7); }
.stat-card-main { display: flex; align-items: center; gap: 14px; color: #fff; border-color: var(--ink); background: var(--ink); overflow: hidden; }
.stat-card-main::after { position: absolute; right: -29px; bottom: -43px; width: 130px; height: 130px; border: 1px solid rgba(242,140,40,.35); border-radius: 50%; content: ""; box-shadow: 0 0 0 18px rgba(242,140,40,.05), 0 0 0 37px rgba(242,140,40,.04); }
.stat-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--accent); background: rgba(242,140,40,.13); font-size: 18px; }
.stat-card-main .stat-icon { color: var(--ink); background: var(--accent); }
.stat-card small, .stat-card strong { display: block; }
.stat-card small { color: var(--muted); font-size: 11px; }
.stat-card-main small { color: #a9b6c6; }
.stat-card strong { margin-top: 2px; font-size: 29px; line-height: 1; letter-spacing: -.06em; }
.stat-card-main strong { color: #fff; }
.stat-caption { position: absolute; right: 19px; bottom: 19px; color: #8090a4; font-size: 10px; }
.stat-kicker { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.stat-card:not(.stat-card-main) strong { margin-top: 16px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 35px; }
.search-box { display: flex; align-items: center; gap: 10px; width: min(510px, 100%); height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.72); transition: .18s; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,140,40,.11); }
.search-box span { color: var(--muted); }
.search-box input { width: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-box input::placeholder { color: #a7b0bb; }
.toolbar-actions { display: flex; align-items: center; gap: 9px; }
.select-wrap select { height: 42px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink-soft); outline: 0; background: rgba(255,255,255,.7); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.035em; }
.section-heading.compact { margin-bottom: 13px; }
.section-heading h3 { margin: 4px 0 0; font-size: 17px; }
.result-count { color: var(--muted); font-size: 11px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.note-card { position: relative; display: flex; min-height: 230px; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.77); transition: .2s ease; overflow: hidden; }
.note-card::after { position: absolute; inset: auto 19px 0; height: 2px; background: transparent; content: ""; transition: .2s; }
.note-card:hover { border-color: #ddd5c7; background: #fff; box-shadow: var(--shadow-small); transform: translateY(-2px); }
.note-card.is-pinned { border-color: #f6d1a5; }
.note-card.is-pinned::after { background: var(--accent); }
.code-card { background: #172437; border-color: #172437; color: #e9edf3; }
.code-card:hover { background: #203149; border-color: #203149; }
.note-card-top, .note-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.note-card-top { margin-bottom: 22px; }
.note-actions { display: flex; align-items: center; gap: 2px; }
.note-actions .icon-button { color: #9ba5b1; }
.code-card .note-actions .icon-button { color: #a5b4c6; }
.pin-mark { display: inline-grid; place-items: center; color: var(--accent); }
.pin-mark .icon { width: 14px; height: 14px; }
.note-type { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.type-text { color: #9b5a13; background: #fff0dc; }
.type-code { color: #405db1; background: #e9edff; }
.type-image { color: #2e805a; background: #e4f5eb; }
.code-card .type-code { color: #b9c5ff; background: rgba(124,141,255,.15); }
.note-title { display: block; max-width: 100%; overflow: hidden; font-size: 17px; font-weight: 800; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.note-title:hover { color: var(--accent-dark); }
.code-card .note-title { color: #fff; }
.note-excerpt { flex: 1; margin: 10px 0 18px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.code-card .note-excerpt { color: #adbacb; }
.code-preview { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; white-space: pre-wrap; }
.note-card-foot { padding-top: 13px; border-top: 1px solid var(--line); }
.code-card .note-card-foot { border-top-color: rgba(255,255,255,.1); }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { color: #8d663d; font-size: 10px; font-weight: 700; }
.tag:hover { color: var(--accent-dark); }
.code-card .tag { color: #92a7be; }
.note-time { color: var(--muted); font-size: 10px; white-space: nowrap; }
.code-card .note-time { color: #8192a8; }
.attachment-pill { align-self: flex-start; margin: -3px 0 12px; color: #648170; font-size: 10px; font-weight: 700; }
.empty-state { grid-column: 1 / -1; padding: 75px 20px; text-align: center; border: 1px dashed #d7d0c4; border-radius: var(--radius); background: rgba(255,255,255,.38); }
.empty-art { display: grid; place-items: center; width: 57px; height: 57px; margin: 0 auto 17px; border-radius: 18px; color: var(--accent); background: var(--accent-pale); font-size: 28px; }
.empty-state h3 { margin: 0; font-size: 19px; letter-spacing: -.03em; }
.empty-state p { margin: 6px auto 22px; color: var(--muted); }
.toast { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 21px; padding: 12px 15px; border: 1px solid; border-radius: 11px; font-size: 12px; font-weight: 700; animation: toast-in .25s ease-out; }
.toast-success { color: #257b4c; border-color: #bde4cc; background: #ecfaf1; }
.toast-error { color: #a83845; border-color: #f1c2c7; background: #fff0f1; }
.toast-close { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; color: inherit; background: transparent; opacity: .7; }
.toast-close .icon { width: 14px; height: 14px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
/* Forms and editor */
.editor-header { align-items: center; }
.editor-header h1 { font-size: 32px; }
.editor-header-actions { display: flex; align-items: center; gap: 14px; }
.editor-header-actions form { margin: 0; }
.save-status { color: var(--muted); font-size: 11px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.editor-main { min-width: 0; }
.editor-paper { min-height: 570px; padding: 28px 32px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 15px 50px rgba(50, 45, 37, .04); }
.type-switcher { display: flex; gap: 5px; margin-bottom: 35px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.type-option { cursor: pointer; }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option span { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 11px; font-weight: 800; transition: .18s; }
.type-option span:hover { background: var(--cream); color: var(--ink); }
.type-option.selected span { color: var(--ink); background: var(--accent-pale); }
.title-input { width: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: clamp(25px, 4vw, 38px); font-weight: 800; letter-spacing: -.055em; }
.title-input::placeholder { color: #c9c5bc; }
.content-input { display: block; width: 100%; min-height: 380px; margin-top: 25px; resize: vertical; border: 0; outline: 0; color: var(--ink-soft); background: transparent; font-size: 15px; line-height: 1.8; }
.content-input::placeholder { color: #b4afa7; }
.content-code { color: #354357; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 13px; line-height: 1.7; tab-size: 4; }
.editor-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 17px; border-top: 1px solid var(--line); }
.char-count, .editor-hint { color: #a6a29b; font-size: 10px; }
.editor-side { display: grid; gap: 14px; }
.side-card { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.74); }
.side-card-title { display: flex; justify-content: space-between; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 800; }
.side-card-title span { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.field-label, .stack-form label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.field-label + .field-label { margin-top: 17px; }
.field-label input, .field-label select, .stack-form input, .stack-form select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); outline: 0; background: #fff; }
.field-label input:focus, .field-label select:focus, .stack-form input:focus, .stack-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,140,40,.1); }
.field-label small, .stack-form small { margin-top: -2px; color: var(--muted); font-size: 10px; font-weight: 500; }
.code-language-field { display: none; }
.editor-layout:has(input[name="note_type"][value="code"]:checked) .code-language-field { display: grid; }
.side-card-actions { padding: 10px 21px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 57px; cursor: pointer; }
.toggle-row + .toggle-row { border-top: 1px solid var(--line); }
.toggle-row span { display: grid; gap: 2px; }
.toggle-row strong { font-size: 12px; }
.toggle-row small { color: var(--muted); font-size: 10px; font-weight: 500; }
.toggle-row input { position: absolute; opacity: 0; }
.toggle-row i { position: relative; display: block; width: 36px; height: 20px; border-radius: 20px; background: #dad7d1; transition: .18s; }
.toggle-row i::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; content: ""; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.toggle-row input:checked + i { background: var(--accent); }
.toggle-row input:checked + i::after { transform: translateX(16px); }
.attachments-section { margin-top: 19px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.62); }
.attachment-list { display: grid; gap: 8px; }
.attachment-row { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 10px; background: var(--cream); }
.attachment-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--accent-dark); background: var(--accent-pale); }
.attachment-row div { min-width: 0; flex: 1; }
.attachment-row strong, .attachment-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-row strong { font-size: 11px; }
.attachment-row small { color: var(--muted); font-size: 10px; }
/* Auth */
.auth-shell { min-height: 100vh; background: var(--ink); }
.auth-card-wrap { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); }
.auth-visual { position: relative; display: flex; flex-direction: column; padding: 44px 8vw 35px; color: #fff; overflow: hidden; background: var(--ink); }
.auth-visual .brand { color: #fff; }
.auth-visual-copy { position: relative; z-index: 2; max-width: 500px; margin: auto 0; }
.auth-visual-copy .eyebrow { color: var(--accent); }
.auth-visual-copy h1 { margin: 20px 0 19px; font-size: clamp(42px, 6vw, 75px); line-height: .98; letter-spacing: -.07em; }
.auth-visual-copy h1 em { color: #9eacbd; font-style: normal; }
.auth-visual-copy p { max-width: 350px; color: #aab7c7; font-size: 14px; }
.visual-orbit { position: absolute; right: 5vw; bottom: 21%; width: 230px; height: 230px; border: 1px solid rgba(242,140,40,.31); border-radius: 50%; opacity: .8; }
.visual-orbit::before, .visual-orbit::after { position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.visual-orbit::after { inset: 54px; border-color: rgba(242,140,40,.2); }
.orbit-center { position: absolute; inset: 79px; display: grid; place-items: center; align-content: center; border-radius: 50%; color: #fff; background: rgba(242,140,40,.16); font-size: 26px; font-weight: 800; line-height: .8; }
.orbit-center small { color: var(--accent); font-size: 12px; }
.orbit-dot { position: absolute; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; color: var(--accent); background: #18283b; font-size: 11px; }
.dot-a { top: 11px; left: 82px; }.dot-b { right: 7px; bottom: 58px; color: #b0bdff; }.dot-c { bottom: 10px; left: 41px; color: #8ed3ae; }
.auth-visual-foot { display: flex; gap: 26px; color: #687a90; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.auth-panel { display: grid; place-items: center; padding: 35px; background: var(--paper); }
.auth-panel-inner { width: min(390px, 100%); }
.auth-panel h2 { margin: 11px 0 6px; font-size: 30px; letter-spacing: -.055em; }
.auth-panel .muted { margin: 0 0 28px; font-size: 13px; }
.stack-form { display: grid; gap: 17px; }
.stack-form > .button { margin-top: 6px; }
.password-field { position: relative; }
.password-field input { padding-right: 55px; }
.password-toggle { position: absolute; top: 0; right: 0; height: 42px; padding: 0 12px; border: 0; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; }
.auth-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }
/* Install */
.install-shell { min-height: 100vh; padding: 40px 5vw; background: var(--cream); }
.install-wrap { width: min(1180px, 100%); margin: 0 auto; }
.install-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -.04em; font-weight: 500; }
.install-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: center; min-height: calc(100vh - 165px); }
.install-intro { padding-bottom: 10px; }
.install-intro h1 { max-width: 500px; margin: 17px 0 15px; font-size: clamp(36px, 5vw, 60px); line-height: .99; letter-spacing: -.065em; }
.install-intro > p { max-width: 430px; color: var(--muted); font-size: 15px; }
.install-promise { display: flex; align-items: flex-start; gap: 13px; margin-top: 32px; }
.install-promise > span { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.install-promise strong, .install-promise small { display: block; }
.install-promise strong { font-size: 12px; }.install-promise small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.install-card { padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.84); box-shadow: var(--shadow); }
.install-card h2 { margin: 10px 0 4px; font-size: 26px; letter-spacing: -.05em; }
.install-card > .muted { margin: 0 0 24px; font-size: 12px; }
.install-card .stack-form { gap: 13px; }
.form-section-title { margin-top: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.form-grid { display: grid; gap: 13px; }.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.label-hint { color: var(--muted); font-size: 9px; font-weight: 500; }
.alert { padding: 11px 13px; border: 1px solid; border-radius: 10px; font-size: 11px; }.alert ul { margin: 5px 0 0 17px; padding: 0; }.alert-error { color: #a83845; border-color: #f1c2c7; background: #fff0f1; }
.success-mark { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 21px; border-radius: 16px; color: var(--green); background: #e4f5eb; }.success-mark .icon { width: 25px; height: 25px; }
.requirements { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; padding-top: 20px; border-top: 1px solid var(--line); }.requirement { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }.requirement span { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; font-size: 9px; font-weight: 900; }.requirement.ok span { color: var(--green); background: #e4f5eb; }.requirement.bad span { color: var(--red); background: #fff0f1; }
/* Admin */
.admin-tabs { display: flex; gap: 4px; margin: -8px 0 28px; border-bottom: 1px solid var(--line); }.admin-tab { position: relative; padding: 0 13px 14px; color: var(--muted); font-size: 12px; font-weight: 800; }.admin-tab.active { color: var(--ink); }.admin-tab.active::after { position: absolute; right: 13px; bottom: -1px; left: 13px; height: 2px; border-radius: 2px; background: var(--accent); content: ""; }.admin-tab span { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 4px; border-radius: 8px; color: var(--accent-dark); background: var(--accent-pale); font-size: 9px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }.admin-stat { display: flex; gap: 15px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.7); }.admin-stat small, .admin-stat strong, .admin-stat span { display: block; }.admin-stat strong { margin: 7px 0 2px; font-size: 29px; line-height: 1; letter-spacing: -.06em; }.admin-stat > div > span { color: var(--muted); font-size: 10px; }.admin-overview-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }.panel-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.7); overflow: hidden; }.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 23px 23px 19px; }.panel-heading h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.04em; }.quick-actions { padding: 0 12px 12px; }.quick-action { display: flex; align-items: center; gap: 13px; padding: 13px 11px; border-radius: 11px; transition: .18s; }.quick-action:hover { background: var(--cream); }.quick-action > div { flex: 1; }.quick-action strong, .quick-action small { display: block; }.quick-action strong { font-size: 12px; }.quick-action small { margin-top: 2px; color: var(--muted); font-size: 10px; }.quick-action > .icon { color: var(--muted); width: 15px; height: 15px; }.quick-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--accent-dark); background: var(--accent-pale); }.panel-accent { padding: 25px; color: #fff; border-color: var(--ink); background: var(--ink); }.panel-accent .eyebrow { color: var(--accent); }.panel-accent h2 { margin: 14px 0 8px; font-size: 25px; letter-spacing: -.05em; }.panel-accent p { color: #a2afbf; font-size: 12px; }.accent-line { width: 42px; height: 3px; margin-top: 38px; border-radius: 3px; background: var(--accent); }.table-wrap { overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; text-align: left; }.data-table th { padding: 0 23px 13px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }.data-table td { padding: 13px 23px; border-top: 1px solid var(--line); font-size: 11px; white-space: nowrap; }.member-cell { display: flex; align-items: center; gap: 9px; min-width: 190px; }.member-cell strong, .member-cell small { display: block; }.member-cell small { margin-top: 2px; color: var(--muted); font-size: 10px; }.avatar-table { width: 29px; height: 29px; color: #fff; }.role-pill, .status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; font-size: 9px; font-weight: 900; }.role-admin { color: #9b5a13; background: var(--accent-pale); }.role-user { color: #5470b5; background: #e9edff; }.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.status-active { color: var(--green); background: #e4f5eb; }.status-suspended { color: var(--red); background: #fff0f1; }.table-action { padding: 4px 6px; border: 0; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; }.table-action:hover { color: var(--red); }.inline-form { margin: 0; }.activity-list { padding: 0 23px 15px; }.activity-row { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-top: 1px solid var(--line); }.activity-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: var(--accent-dark); background: var(--accent-pale); }.activity-icon .icon { width: 14px; height: 14px; }.activity-row div { flex: 1; min-width: 0; }.activity-row strong, .activity-row span, .activity-row small { font-size: 11px; }.activity-row span { color: var(--muted); }.activity-row small { display: block; margin-top: 2px; color: #a4a8a7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.activity-row time { color: var(--muted); font-size: 10px; white-space: nowrap; }.empty-inline { padding: 25px 0; color: var(--muted); font-size: 12px; text-align: center; }
/* Modal */
.modal { position: fixed; z-index: 80; inset: 0; display: none; place-items: center; padding: 20px; }.modal.open { display: grid; }.modal-backdrop { position: absolute; inset: 0; background: rgba(16,28,44,.52); backdrop-filter: blur(4px); }.modal-card { position: relative; z-index: 1; width: min(430px, 100%); padding: 28px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }.modal-card h2 { margin: 9px 0 3px; font-size: 25px; letter-spacing: -.05em; }.modal-card > .muted { margin: 0 0 22px; font-size: 12px; }.modal-close { position: absolute; top: 17px; right: 17px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }.modal-close:hover { background: var(--cream); color: var(--ink); }
@media (max-width: 1050px) { .content-wrap { width: min(100% - 45px, 900px); }.stats-row { grid-template-columns: repeat(3, 1fr); }.stat-card-main { grid-column: 1 / -1; }.notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.visual-orbit { right: 2vw; opacity: .45; }.install-grid { gap: 35px; } }
@media (max-width: 760px) { body { font-size: 13px; }.sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 15px 0 30px rgba(0,0,0,.15); }.sidebar.open { transform: translateX(0); }.main-content { margin-left: 0; padding-top: 58px; }.mobile-topbar { position: fixed; z-index: 30; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 15px; border-bottom: 1px solid rgba(16,28,44,.08); background: rgba(247,243,236,.9); backdrop-filter: blur(12px); }.brand-small { font-size: 16px; }.brand-small .brand-mark { width: 27px; height: 27px; border-radius: 8px; }.avatar-small { width: 29px; height: 29px; }.content-wrap { width: calc(100% - 30px); padding: 30px 0 50px; }.page-header { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 27px; }.page-header h1 { font-size: 33px; }.dashboard-header .button { align-self: stretch; }.stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 27px; }.stat-card-main { grid-column: 1 / -1; }.stat-card { min-height: 102px; padding: 17px; }.toolbar { align-items: stretch; flex-direction: column; gap: 10px; margin-bottom: 27px; }.search-box { width: 100%; }.toolbar-actions { justify-content: space-between; }.toolbar-actions .button { flex: 1; }.select-wrap { flex: 1; }.select-wrap select { width: 100%; }.notes-grid { grid-template-columns: 1fr; gap: 11px; }.note-card { min-height: 208px; }.editor-layout { grid-template-columns: 1fr; }.editor-side { order: -1; }.editor-paper { min-height: 510px; padding: 20px; }.content-input { min-height: 290px; }.editor-header { flex-direction: row; align-items: center; }.editor-header-actions { gap: 5px; }.editor-header-actions .save-status { display: none; }.editor-header h1 { font-size: 27px; }.form-grid-2 { grid-template-columns: 1fr; }.install-shell { padding: 24px 15px; }.install-grid { display: block; min-height: 0; margin-top: 38px; }.install-intro { margin-bottom: 32px; }.install-intro h1 { font-size: 43px; }.install-promise { display: none; }.install-card { padding: 22px 18px; }.requirements { margin-top: 28px; gap: 8px 13px; }.requirement { font-size: 9px; }.auth-card-wrap { display: block; }.auth-visual { min-height: 310px; padding: 25px 25px 24px; }.auth-visual-copy { margin: auto 0 0; }.auth-visual-copy h1 { margin: 13px 0 9px; font-size: 39px; }.auth-visual-copy p { margin: 0; font-size: 12px; }.visual-orbit { right: -44px; bottom: 16px; transform: scale(.65); }.auth-visual-foot { display: none; }.auth-panel { min-height: calc(100vh - 310px); padding: 38px 25px; }.admin-stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.admin-stat { padding: 17px; }.admin-stat:last-child { grid-column: 1 / -1; }.admin-overview-grid { grid-template-columns: 1fr; }.data-table th, .data-table td { padding-right: 14px; padding-left: 14px; }.data-table th:nth-child(3), .data-table td:nth-child(3), .data-table th:nth-child(5), .data-table td:nth-child(5) { display: none; }.panel-heading { align-items: flex-start; flex-direction: column; }.panel-heading .button { width: 100%; }.editor-hint { display: none; } }
@media (max-width: 420px) { .stats-row { grid-template-columns: 1fr 1fr; }.stat-card-main { min-height: 95px; }.stat-card strong { font-size: 24px; }.page-header h1 { font-size: 30px; }.type-switcher { gap: 1px; }.type-option span { padding: 7px 8px; font-size: 10px; }.auth-panel { padding-right: 20px; padding-left: 20px; } }
