/* Paper: the shared design for every page.
   Quiet paper canvas, black ink, pill buttons and hairlines (after the ElevenLabs style on Refero
   Styles). Colour lives only inside product visuals: the voice sphere and illustrations.
   Display: Bricolage Grotesque (light). Body: Poppins. Numbers and labels: IBM Plex Mono.
   Avoided on purpose (Impeccable's anti-patterns): eyebrow badges, icon tiles, nested cards,
   gradient text, glows, pulsing dots and identical card grids. */
@font-face { font-family: "Bricolage"; font-weight: 200 800; font-display: swap; src: url("/static/fonts/bricolage.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url("/static/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url("/static/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("/static/fonts/plexmono-400.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("/static/fonts/plexmono-500.woff2") format("woff2"); }

:root {
  --paper: #f8f8f6; --card: #fdfdfc; --band: #f1f0ec; --line: #e6e4df; --line2: #d9d6d0;
  --ink: #0d0d12; --graphite: #3f3d44; --smoke: #6c6971; --ash: #8f8b93;
  --violet: #4b46ff; --ember: #ff5a1f; --good: #1d7a4c; --bad: #b4321f;
  --display: "Bricolage", "Poppins", system-ui, sans-serif;
  --body: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ic { width: 18px; height: 18px; flex: none; }
.hidden { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.muted { color: var(--smoke); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px;
       border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 500 15px/1 var(--body); text-decoration: none;
       transition: transform .15s var(--ease), background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: #2a2a33; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn.line { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn.line:hover { border-color: var(--ink); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.xs { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn .ic { width: 16px; height: 16px; }
.more { display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1 var(--body); text-decoration: none; color: var(--ink);
        border: 0; border-bottom: 1px solid var(--line2); padding: 0 0 3px; background: none; }
.more:hover { border-color: var(--ink); }
.more .ic { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.more:hover .ic { transform: translateX(3px); }
.iconbtn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--graphite); }
.iconbtn:hover { background: var(--band); color: var(--ink); }
.iconbtn .ic { width: 18px; height: 18px; }

/* ---------- Top bar (drawn by shell.js) ---------- */
.top { height: 68px; border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { height: 100%; display: flex; align-items: center; gap: 36px; }
.top .logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 500 20px/1 var(--display); letter-spacing: -.02em; }
.top .logo img { width: 26px; height: 26px; }
.top nav { display: flex; gap: 26px; }
.top nav a { font-size: 14px; font-weight: 500; color: var(--smoke); text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.me { display: flex; align-items: center; gap: 8px; border: 0; background: none; font-size: 14px; color: var(--graphite); padding: 4px; border-radius: 999px; }
.me:hover { color: var(--ink); }
.me i { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center;
        font: 500 12px/1 var(--body); font-style: normal; }

/* ---------- Page header ---------- */
.phead { padding: 64px 0 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.phead h1 { font: 300 clamp(38px, 4.6vw, 56px)/1.05 var(--display); letter-spacing: -.025em; }
.phead p { margin-top: 14px; color: var(--smoke); font-size: 16px; max-width: 56ch; }
.phead .acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
h2.h { font: 300 clamp(26px, 2.8vw, 34px)/1.15 var(--display); letter-spacing: -.02em; }
h3.h { font: 400 20px/1.3 var(--display); letter-spacing: -.01em; }
.label { display: block; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ash); }
.tagline { font: 400 12px/1.6 var(--mono); color: var(--smoke); text-transform: uppercase; letter-spacing: .03em; }
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
.band { background: var(--band); }

/* ---------- Controls ---------- */
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; padding: 3px; background: var(--paper); flex-wrap: wrap; }
.seg button, .seg a { border: 0; background: none; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
                      color: var(--graphite); text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.seg button:hover, .seg a:hover { color: var(--ink); }
.seg .on { background: var(--ink); color: var(--paper); }
.seg .on:hover { color: var(--paper); }
input, select, textarea { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card);
                          font-size: 15px; color: var(--ink); transition: border-color .15s; }
textarea { height: auto; padding: 12px 14px; line-height: 1.55; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #bfbbb4; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); }
label { display: block; font-size: 13px; font-weight: 500; color: var(--graphite); margin-bottom: 6px; }
.search { position: relative; }
.search input { padding-left: 40px; border-radius: 999px; }
.search .ic { position: absolute; left: 14px; top: 13px; width: 17px; height: 17px; color: var(--ash); pointer-events: none; }
.pick { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: 500 14px var(--body); color: var(--ink);
        border-bottom: 1px solid var(--line2); }
.pick:hover { border-color: var(--ink); }
.pick .ic { width: 14px; height: 14px; }

/* ---------- People ---------- */
.ava { position: relative; overflow: hidden; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 500;
       background: var(--band); color: var(--graphite); width: 40px; height: 40px; font-size: 14px; }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Menus, toasts, dialogs ---------- */
.kebab { border: 0; background: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--graphite); }
.kebab:hover { background: var(--band); color: var(--ink); }
.kebab .ic { width: 18px; height: 18px; }
.menu { position: absolute; z-index: 40; min-width: 200px; background: var(--card); border-radius: 12px; padding: 6px;
        box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(13, 13, 18, .1); }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 9px 12px; border-radius: 8px;
        font-size: 14px; text-align: left; text-decoration: none; color: var(--ink); }
.menu button:hover, .menu a:hover { background: var(--band); }
.menu .danger { color: var(--bad); }
.menu .ic { width: 16px; height: 16px; color: var(--smoke); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--paper);
         padding: 10px 20px; border-radius: 999px; font-size: 14px; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(13, 13, 18, .32); display: grid; place-items: center; padding: 16px; }
.modal .dlg { width: min(520px, 100%); background: var(--paper); border-radius: 24px; padding: 32px; box-shadow: 0 24px 64px rgba(13, 13, 18, .2); }

/* ---------- Empty states and footer ---------- */
.emptyline { padding: 28px 0; color: var(--smoke); font-size: 15px; }
.empty-art { display: grid; justify-items: center; gap: 14px; padding: 56px 24px; text-align: center; color: var(--smoke); font-size: 15px; }
.empty-art img { width: 200px; max-width: 60%; }
.empty-art strong { color: var(--ink); font: 300 26px/1.2 var(--display); letter-spacing: -.015em; }
footer.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 72px; font-size: 13px; color: var(--smoke); }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.foot nav { display: flex; gap: 22px; }
footer.foot a { text-decoration: none; } footer.foot a:hover { color: var(--ink); }

table { width: 100%; border-collapse: collapse; }

/* ---------- Motion: short settle-in. Content is visible without it. ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}

@media (max-width: 960px) {
  .top { height: auto; }
  .top .wrap { flex-wrap: wrap; row-gap: 6px; padding-top: 14px; padding-bottom: 8px; }
  .top nav { order: 3; width: 100%; overflow-x: auto; gap: 22px; }
  .top nav a { white-space: nowrap; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top .right .btn { display: none; }
  .phead { padding: 40px 0 28px; }
  section.block { padding: 56px 0; }
}
