:root {
    --ink: #0a0a0a; --muted: #6b6b70;
    --ease: cubic-bezier(.16,1,.3,1);
    --glass-bg: rgba(255,255,255,0.55);
    --glass-brd: rgba(255,255,255,0.75);
}
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: 'Geist','Geist Sans',system-ui,-apple-system,sans-serif;
    color: var(--ink); background: #f4f4f5; min-height: 100vh;
}
body::before {
    content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
    background:
      radial-gradient(38% 48% at 12% 8%, rgba(0,0,0,.06), transparent 70%),
      radial-gradient(36% 46% at 88% 16%, rgba(0,0,0,.05), transparent 70%),
      radial-gradient(60% 60% at 50% 108%, rgba(0,0,0,.07), transparent 70%),
      linear-gradient(180deg,#f7f7f8,#eeeef0);
}
.font-serif { font-family:'Instrument Serif',serif; }
.font-mono  { font-family:'JetBrains Mono',monospace; }
.material-symbols-rounded { font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24; }
.fill { font-variation-settings:'FILL' 1; }

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid var(--glass-brd);
    box-shadow: 0 10px 40px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.6);
}
.glass-strong {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid var(--glass-brd);
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
.glass-card { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.glass-card:hover { transform: translateY(-4px); box-shadow: 0 22px 60px rgba(0,0,0,.12); }

@keyframes rise { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform:none; } }
.reveal { animation: rise .7s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

.btn { transition: transform .4s var(--ease), opacity .3s, background .3s; }
.btn:active { transform: scale(.96); }
.btn-ink { background: var(--ink); color:#fff; }
.btn-ink:hover { opacity:.88; }

.dock {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
    display: flex; align-items: flex-end; gap: 10px; padding: 10px 14px;
    border-radius: 26px; z-index: 60;
}
.dock-item {
    --s: 46px; width: var(--s); height: var(--s);
    display:flex; align-items:center; justify-content:center;
    border-radius: 14px; position: relative; flex: 0 0 auto;
    background: rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.65);
    color: var(--ink); transition: transform .18s var(--ease), background .3s;
    transform-origin: bottom center;
}
.dock-item .material-symbols-rounded { font-size: 24px; }
.dock-item:hover { background:#0a0a0a; color:#fff; }
.dock-item.active::after {
    content:''; position:absolute; bottom:-7px; left:50%; transform:translateX(-50%);
    width:4px; height:4px; border-radius:50%; background: var(--ink);
}
.dock-tip {
    position:absolute; bottom: calc(100% + 10px); left:50%; transform:translateX(-50%) scale(.9);
    background:#0a0a0a; color:#fff; font-size:11px; padding:4px 9px; border-radius:8px;
    white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .2s, transform .2s var(--ease);
    font-family:'Geist',sans-serif;
}
.dock-item:hover .dock-tip { opacity:1; transform:translateX(-50%) scale(1); }

.palette-overlay {
    position: fixed; inset: 0; z-index: 100; display:none;
    align-items: flex-start; justify-content: center; padding-top: 14vh;
    background: rgba(10,10,12,.32); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.palette-overlay.open { display:flex; animation: rise .3s var(--ease) both; }
.palette { width: min(92vw, 620px); border-radius: 20px; overflow: hidden; }
.palette input {
    width:100%; border:0; outline:0; background:transparent;
    font-family:'Geist',sans-serif; font-size:18px; color:var(--ink); padding: 18px 20px;
}
.palette input::placeholder { color: var(--muted); }
.palette-item {
    display:flex; align-items:center; gap:12px; padding:11px 16px; cursor:pointer;
    border-radius: 12px; margin: 2px 8px; transition: background .15s;
}
.palette-item[aria-selected="true"], .palette-item:hover { background: rgba(10,10,10,.07); }
.palette-item .material-symbols-rounded { font-size:20px; color:var(--ink); }
.kbd {
    font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--muted);
    border:1px solid rgba(10,10,10,0.10); border-radius:6px; padding:2px 6px; background:rgba(255,255,255,.5);
}

::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-thumb { background: rgba(10,10,10,.18); border-radius:10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(10,10,10,.3); }

.zebra:nth-child(even) { background: rgba(255,255,255,.35); }
table tbody tr { transition: background .2s; }
table tbody tr:hover { background: rgba(10,10,10,.04); }
