/* Medialize portal UI. Same tokens as the website: ink, cream, lime (signals only) and the violet gradient. */
:root {
  --ink: #212121;
  --cream: #EFEBE1;
  --lime: #9DFF00;
  --violet: #601FF9;
  --violet-deep: #4A12D6;
  --violet-hot: #BF00FE;
  --grad: linear-gradient(150deg, #4A12D6 0%, #601FF9 48%, #8F15FB 100%);
  --surface: rgba(255, 255, 255, 0.55);
  --muted: rgba(33, 33, 33, 0.66);
  --line: rgba(33, 33, 33, 0.14);
  --tint: rgba(33, 33, 33, 0.05);
  --focus: var(--ink);
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-lg: 24px;
  --r-md: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
p, h1, h2, h3, h4, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.on-ink { background: var(--ink); color: var(--cream); --muted: rgba(239, 235, 225, 0.72); --line: rgba(239, 235, 225, 0.16); --tint: rgba(239, 235, 225, 0.07); --surface: rgba(239, 235, 225, 0.07); --focus: var(--lime); }
.on-violet { background: var(--grad); color: var(--cream); --muted: var(--cream); --line: rgba(239, 235, 225, 0.26); --tint: rgba(239, 235, 225, 0.12); --surface: rgba(239, 235, 225, 0.12); --focus: var(--lime); }
.on-lime { background: var(--lime); color: var(--ink); --muted: rgba(33, 33, 33, 0.74); --line: rgba(33, 33, 33, 0.18); --focus: var(--ink); }
.on-cream { background: var(--cream); color: var(--ink); --muted: rgba(33, 33, 33, 0.66); --line: rgba(33, 33, 33, 0.14); --tint: rgba(33, 33, 33, 0.05); --surface: rgba(255, 255, 255, 0.55); --focus: var(--ink); }

/* Type */
.eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.h1 { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.h2 { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.lead { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--font-mono); font-size: 13px; }
.big { font-family: var(--font-display); font-stretch: 115%; font-weight: 900; font-size: 36px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.big span { color: var(--muted); font-size: 0.6em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.on-ink .btn-line:hover, .on-violet .btn-line:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-xs { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-arrow { width: 22px; height: 22px; margin-right: -8px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); transition: transform 0.2s ease; }
.btn-lime .btn-arrow { background: var(--ink); color: var(--lime); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.text-btn { background: none; border: 0; padding: 8px 0; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; cursor: pointer; color: inherit; }

/* Pills: lime = needs someone, violet = moving, ink = done, outline = waiting or neutral */
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.55; }
.pill-lime { background: var(--lime); color: #212121; border-color: var(--lime); }
.pill-lime::before { opacity: 1; }
.pill-violet { background: var(--violet); color: var(--cream); border-color: var(--violet); }
.pill-ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.on-ink .pill-ink { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.pill-plain::before { display: none; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .legend { font-size: 14px; font-weight: 600; }
.opt-label { font-weight: 400; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.input:hover { border-color: rgba(33, 33, 33, 0.34); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(96, 31, 249, 0.25); }
.input[aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }
textarea.input { min-height: 112px; padding: 13px 16px; line-height: 1.5; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23212121' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.error { align-self: flex-start; font-size: 13px; font-weight: 600; background: var(--lime); color: #212121; padding: 5px 10px; border-radius: 8px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.choice:hover { border-color: rgba(33, 33, 33, 0.4); }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background-color 0.15s ease; }
.choice input[type="radio"] + .box { border-radius: 50%; }
.choice .box::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--ink); transform: scale(0); transition: transform 0.15s var(--ease); }
.choice input[type="radio"] + .box::after { border-radius: 50%; }
.choice input:checked + .box { background: var(--lime); }
.choice input:checked + .box::after { transform: scale(1); }
.choice input:checked ~ .choice-text { font-weight: 600; }
.choice input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 3px; }
.choice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice-sub { font-size: 13px; color: var(--muted); font-weight: 400; }
@media (max-width: 480px) { .choices { grid-template-columns: minmax(0, 1fr); } }

/* App shell */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 24px 18px; overflow-y: auto; }
.side .brand { display: block; color: var(--cream); padding: 4px 8px; }
.side .brand svg { width: 128px; height: auto; aspect-ratio: 1200 / 155; }
.side-label { padding: 0 10px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav button, .side nav a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 15px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.side nav button:hover, .side nav a:hover { background: var(--tint); color: var(--cream); }
.side nav [aria-current="page"] { background: var(--tint); color: var(--cream); font-weight: 600; }
.side nav [aria-current="page"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.side nav button::before, .side nav a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; flex: none; }
.side nav .count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: #212121; display: grid; place-items: center; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); font-size: 13px; font-weight: 700; }
.who-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.who-text strong { font-size: 14px; }
.who-text span { font-size: 12px; color: var(--muted); }
.main { padding: 24px clamp(16px, 3vw, 36px) 72px; min-width: 0; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.topbar-title { display: flex; flex-direction: column; gap: 4px; }
.topbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.demo-tag { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.view { display: flex; flex-direction: column; gap: 20px; }
.view-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; }
  .side .brand svg { width: 112px; }
  .side-label, .side-foot .small { display: none; }
  .side nav { order: 3; flex: 1 1 100%; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 2px; scrollbar-width: none; }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 36px; }
  .side nav button, .side nav a { width: auto; min-height: 40px; padding: 0 12px; white-space: nowrap; }
  .side nav button::before, .side nav a::before { display: none; }
  .side nav [aria-current="page"]::before { display: none; }
  .side-foot { order: 2; margin: 0 0 0 auto; padding: 0; }
  .who-text { display: none; }
}

/* Cards and lists */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.card.on-ink, .card.on-violet { border-color: transparent; }
.card.on-ink { background: var(--ink); }
.card.on-violet { background: var(--grad); }
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi-label { font-size: 14px; color: var(--muted); }
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 600; }
.row-sub { font-size: 13px; color: var(--muted); }
.row-end { flex: none; display: flex; align-items: center; gap: 8px; }
.row.is-done .row-title { text-decoration: line-through; color: var(--muted); }
.icon-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.ring { flex: none; }
.bar { height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.on-ink .bar span, .on-violet .bar span { background: var(--lime); }
.note { padding: 14px 16px; border-radius: 14px; background: var(--tint); font-size: 14px; line-height: 1.5; }
.note strong { font-weight: 600; }
.policy { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--ink); font-size: 14px; }
.policy::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--ink); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 500; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; align-self: flex-start; }
.tabs button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); }

/* Kanban */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 6px; border-bottom: 1.5px solid var(--ink); font-size: 14px; font-weight: 600; }
.col-head .count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.task { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: transform 0.25s var(--ease), opacity 0.25s ease; }
.task-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.task-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.task.is-leaving { opacity: 0; transform: translateY(-6px); }
.col.is-done .task .task-title { color: var(--muted); }

/* Week board */
.week { display: grid; grid-template-columns: 160px repeat(7, minmax(120px, 1fr)); gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.week-head { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; }
.week-head.is-today { color: var(--ink); font-weight: 700; }
.week-client { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; font-weight: 600; font-size: 14px; border-top: 1px solid var(--line); }
.week-client span { font-size: 12px; color: var(--muted); font-weight: 400; }
.cell { min-height: 72px; padding: 6px; border-radius: 12px; background: var(--tint); display: flex; flex-direction: column; gap: 4px; border-top: 1px solid transparent; }
.post { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 9px; font-size: 12px; line-height: 1.3; border: 1px solid var(--line); background: var(--surface); }
.post small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.post.is-live { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.post.is-scheduled { background: var(--violet); color: var(--cream); border-color: var(--violet); }
.post.is-approval { background: var(--lime); color: #212121; border-color: var(--lime); }
.post.is-qa { border-color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); }
.legend i.is-qa { border-color: var(--ink); }
.legend i.is-approval { background: var(--lime); border-color: var(--lime); }
.legend i.is-scheduled { background: var(--violet); border-color: var(--violet); }
.legend i.is-live { background: var(--ink); border-color: var(--ink); }

/* Inbox */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.thread { display: flex; gap: 12px; width: 100%; padding: 14px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; transition: background-color 0.15s ease; }
.thread:first-child { border-top: 0; }
.thread:hover { background: var(--tint); }
.thread[aria-current="true"] { background: var(--tint); }
.thread-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.thread-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.thread-from { font-weight: 600; font-size: 14px; }
.thread-when { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.thread-subject { font-size: 14px; }
.thread-src { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.unread .thread-from::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); border: 1px solid var(--ink); margin-right: 8px; vertical-align: 1px; }
.detail { display: flex; flex-direction: column; gap: 16px; }
.detail dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; }
@media (max-width: 480px) { .detail dl { grid-template-columns: minmax(0, 1fr); } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mail { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.mail-head { padding: 12px 16px; background: var(--tint); font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.mail-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.mail-body .btn { align-self: flex-start; }

/* Pipeline */
.pipe { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.stage { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--tint); min-width: 0; }
.stage-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.stage-head .count { font-family: var(--font-display); font-stretch: 115%; font-weight: 900; font-size: 22px; }
.stage-item { padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; line-height: 1.3; }
.stage-item span { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Phone frame */
.phone { position: relative; width: min(320px, 100%); margin-inline: auto; }
.phone-body { position: relative; border-radius: 48px; padding: 10px; background: var(--ink); box-shadow: 0 0 0 1px rgba(33, 33, 33, 0.14), 0 44px 90px -34px rgba(0, 0, 0, 0.6); }
.phone-screen { min-height: 640px; border-radius: 38px; padding: 22px 16px 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.ph-top { display: flex; align-items: center; justify-content: space-between; }
.ph-top svg { width: 104px; height: auto; aspect-ratio: 1200 / 155; color: var(--ink); }
.ph-title { font-family: var(--font-display); font-stretch: 110%; font-weight: 800; font-size: 24px; line-height: 1.05; letter-spacing: -0.02em; }
.ph-card { border-radius: 20px; padding: 14px; background: var(--tint); display: flex; flex-direction: column; gap: 8px; }
.ph-card.on-violet { background: var(--grad); }
.ph-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.ph-item { display: flex; align-items: center; gap: 10px; }
.ph-item-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.ph-item-sub { font-size: 11px; color: var(--muted); }
.ph-nav { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; padding: 6px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 12px; font-weight: 600; }
.ph-nav > span { position: relative; padding: 9px 10px; border-radius: 999px; color: rgba(239, 235, 225, 0.72); }
.ph-nav .is-active { background: var(--lime); color: #212121; }
.ph-badge { position: absolute; top: -2px; right: -4px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #212121; font-size: 10px; font-weight: 800; }
.bubble { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 13px; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 5px; }
.bubble.bot { align-self: flex-start; background: var(--tint); border-bottom-left-radius: 5px; }
.mdlz-img { display: block; background: url("mdlz.png") center / contain no-repeat; }

/* Motion, gentle and optional. Everything is fully visible with motion off. */
@media (prefers-reduced-motion: no-preference) {
  .view > * { animation: view-in 0.45s var(--ease) backwards; }
  .view > *:nth-child(2) { animation-delay: 0.05s; }
  .view > *:nth-child(3) { animation-delay: 0.1s; }
  .view > *:nth-child(4) { animation-delay: 0.15s; }
  .view > *:nth-child(5) { animation-delay: 0.2s; }
  .view > *:nth-child(n+6) { animation-delay: 0.25s; }
  @keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .toast { animation: toast-in 0.25s var(--ease); }
  @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
  .task.is-new { animation: view-in 0.3s var(--ease); }
  .ring-arc { animation: ring-draw 1.1s var(--ease) 0.25s backwards; }
  @keyframes ring-draw { from { stroke-dashoffset: 452.4; } to { stroke-dashoffset: var(--off, 65.4); } }
  .bar > span { animation: bar-grow 0.9s var(--ease) 0.25s backwards; }
  @keyframes bar-grow { from { width: 0; } }
  .spark-line { stroke-dasharray: 420; animation: spark-draw 1.4s var(--ease) 0.3s backwards; }
  @keyframes spark-draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
  .pill-lime::before { animation: pulse-dot 2.4s ease-out infinite; }
  @keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(33, 33, 33, 0.35); } 70% { box-shadow: 0 0 0 7px rgba(33, 33, 33, 0); } 100% { box-shadow: 0 0 0 0 rgba(33, 33, 33, 0); } }
  .phone-body { transition: transform 0.4s var(--ease); }
  .phone:hover .phone-body { transform: translateY(-6px); }
  .card { transition: transform 0.25s var(--ease), box-shadow 0.25s ease; }
  .card
}

/* Demo bar */
.demo-bar { position: fixed; right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 4px 4px 14px; border-radius: 999px; background: rgba(33, 33, 33, 0.92); color: var(--cream); font-size: 12px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.demo-bar button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--cream); color: #212121; font-size: 12px; font-weight: 600; cursor: pointer; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
@media (max-width: 640px) { .demo-bar > span:nth-child(2) { display: none; } }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px 16px; border-radius: 16px; border: 1.5px dashed var(--line); text-align: center; color: var(--muted); font-size: 14px; }
.empty strong { color: inherit; font-size: 15px; }

/* Credits split: used, planned, spare */
.stackbar { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; background: var(--tint); }
.stackbar i { display: block; height: 100%; min-width: 0; transition: width 0.8s var(--ease); }
.s-used { background: #212121; } .s-plan { background: var(--violet); } .s-spare { background: var(--lime); }
.on-violet .s-used { background: rgba(239, 235, 225, 0.92); } .on-violet .s-plan { background: rgba(33, 33, 33, 0.55); }
.key { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.sb-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.sb-legend b { font-family: var(--font-mono); font-weight: 700; margin-left: 4px; }
@media (max-width: 900px) { .side nav .nav-label { display: none; } }
@media (max-width: 640px) { .toast { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 32px); } }
.col-empty { padding: 16px 12px; border-radius: 16px; border: 1.5px dashed var(--line); font-size: 13px; color: var(--muted); text-align: center; }

/* Previews: a plate from above, the same picture language as the app */
.plate { position: relative; isolation: isolate; overflow: hidden; }
.plate.p1 { background: linear-gradient(160deg, #1F3D2B, #2f5a40); color: #F3F0E8; }
.plate.p2 { background: linear-gradient(160deg, #A9432B, #7a2a1c); color: #F3F0E8; }
.plate.p3 { background: linear-gradient(160deg, #E9D8A6, #cdb57a); color: #1F3D2B; }
.plate.p4 { background: linear-gradient(160deg, #2b2b2b, #121212); color: #F3F0E8; }
.plate::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 58%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, 0.55);
  background: radial-gradient(10% 10% at 35% 36%, #C8553D 92%, transparent 100%), radial-gradient(7% 7% at 63% 30%, #3b4a24 92%, transparent 100%), radial-gradient(13% 13% at 68% 61%, #E9D8A6 92%, transparent 100%), radial-gradient(12% 12% at 37% 66%, #9a6b3f 92%, transparent 100%), radial-gradient(50% 50% at 50% 50%, #F6F2E8 79%, #ddd3bb 81% 87%, #F6F2E8 89%); }
.plate.p2::after { background: radial-gradient(5% 5% at 35% 40%, #C8553D 92%, transparent 100%), radial-gradient(17% 17% at 35% 40%, #F3E7C9 92%, transparent 100%), radial-gradient(14% 14% at 66% 37%, #8DA544 92%, transparent 100%), radial-gradient(16% 11% at 52% 69%, #d9a05b 92%, transparent 100%), radial-gradient(50% 50% at 50% 50%, #F6F2E8 79%, #ddd3bb 81% 87%, #F6F2E8 89%); }
.plate.p3::after { background: radial-gradient(9% 9% at 40% 36%, #9DFF00 92%, transparent 100%), radial-gradient(14% 14% at 62% 42%, #F3F0E8 92%, transparent 100%), radial-gradient(8% 8% at 38% 62%, #C8553D 92%, transparent 100%), radial-gradient(12% 12% at 62% 66%, #b07a4c 92%, transparent 100%), radial-gradient(50% 50% at 50% 50%, #2b2b2b 79%, #1a1a1a 81% 87%, #2b2b2b 89%); }
.plate.p4::after { background: radial-gradient(8% 8% at 64% 34%, #9DFF00 92%, transparent 100%), radial-gradient(18% 18% at 44% 52%, #C8553D 92%, transparent 100%), radial-gradient(10% 10% at 66% 64%, #E9D8A6 92%, transparent 100%), radial-gradient(50% 50% at 50% 50%, #F6F2E8 79%, #ddd3bb 81% 87%, #F6F2E8 89%); }
.plate.is-reel::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 58%; width: 24px; height: 24px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(243, 240, 232, 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23212121'/%3E%3C/svg%3E") 55% 50% / 14px no-repeat; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.5); }
.thumb.plate { place-items: start; padding: 5px 6px; font-size: 9px; }

.nudge { animation: nudge 0.36s ease; }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Team bar: notifications and access */
.tc { position: relative; display: inline-flex; }
.tc-bell { position: relative; width: 44px; padding: 0; justify-content: center; }
.tc-n { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--cream); }
.tc-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; border-radius: 18px; background: #FFFDF8; color: #212121; border: 1px solid rgba(33, 33, 33, 0.12); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.45); z-index: 60; }
.tc-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tc-item { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; font-size: 13.5px; line-height: 1.35; }
.tc-item:hover { background: var(--tint); }
.tc-item.is-new { box-shadow: inset 3px 0 0 var(--violet); }
.tc-item small { color: var(--muted); font-size: 11.5px; }
.tc-guard { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(33, 33, 33, 0.72); backdrop-filter: blur(6px); }
.tc-box { max-width: 460px; width: 100%; padding: 26px; border-radius: 24px; background: var(--cream); display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) { .tc-panel { position: fixed; left: 16px; right: 16px; top: 70px; width: auto; } }
