/* ============================================================
   Neotic — IT Help Desk and Ticket Tracker
   Look: Neo-Brutalism. Flat bright fills, pure black outlines,
   hard offset shadows, chunky type, playful isometric scenes.
   Re-theme everything from the CSS variables in :root below.
   ============================================================ */

:root{
  /* ---- Canvas & ink ---- */
  --page:#E8EEFF;          /* pale sky page background */
  --surface:#FFFFFF;
  --ink:#000000;           /* outlines, shadows, text */
  --ink-2:#2E2E3A;         /* body text */
  --ink-3:#5E5E70;         /* hints */

  /* ---- Playful palette (also used by the isometric illustrations) ---- */
  --c-yellow:#FFD84D;      /* primary actions */
  --c-blue:#5B7CFF;
  --c-mint:#4FE0B0;
  --c-pink:#FF9BD2;
  --c-lilac:#B8A4FF;
  --c-orange:#FFA94D;
  --c-red:#FF5C5C;
  --c-cream:#FFF6D6;       /* ticket stub paper */

  /* ---- Priority ---- */
  --pr-low:var(--c-mint);
  --pr-medium:var(--c-blue);
  --pr-high:var(--c-orange);
  --pr-urgent:var(--c-red);

  /* ---- Shape ---- */
  --bw:3px;                /* border width */
  --radius:14px;
  --radius-sm:10px;
  --shadow:5px 5px 0 var(--ink);
  --shadow-sm:3px 3px 0 var(--ink);
  --shadow-lg:8px 8px 0 var(--ink);

  /* ---- Type ---- */
  --font:"Bricolage Grotesque", system-ui, sans-serif;
  --font-mono:"Space Mono", ui-monospace, monospace;
}

/* ===================== BASE ===================== */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; min-height:100vh; display:flex; flex-direction:column;
  background:var(--page); color:var(--ink-2);
  font-family:var(--font); font-size:16px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
  /* faint isometric dot grid */
  background-image:radial-gradient(circle at 1px 1px, rgba(0,0,0,.09) 1.2px, transparent 0);
  background-size:22px 22px;
}
h1,h2,h3,h4{ color:var(--ink); margin:0; font-weight:800; letter-spacing:-.02em; line-height:1.05; }
p{ margin:0; }
a{ color:var(--ink); }
button{ font:inherit; color:inherit; }
img, svg{ max-width:100%; }
.mono{ font-family:var(--font-mono); }
.wrap{ width:100%; max-width:1180px; margin:0 auto; padding:0 20px; }
.view{ flex:1; outline:none; padding:36px 0 72px; }
:focus-visible{ outline:3px solid var(--c-blue); outline-offset:3px; }
.skip-link{ position:absolute; left:-999px; top:8px; z-index:100; background:var(--c-yellow); border:var(--bw) solid var(--ink); padding:8px 14px; font-weight:700; }
.skip-link:focus{ left:8px; }
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; } }

/* ===================== TOP BAR ===================== */
.topbar{ position:sticky; top:0; z-index:40; background:var(--surface); border-bottom:var(--bw) solid var(--ink); }
.topbar-inner{ display:flex; align-items:center; gap:16px; height:70px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand-mark{ width:40px; height:40px; display:grid; place-items:center; background:var(--c-yellow); border:var(--bw) solid var(--ink); border-radius:12px; box-shadow:var(--shadow-sm); transform:rotate(-6deg); }
.brand-mark svg{ width:22px; height:22px; stroke-width:2.5; }
.brand-name{ font-size:1.6rem; font-weight:800; color:var(--ink); letter-spacing:-.04em; font-stretch:85%; }
.nav{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.nav a{ text-decoration:none; font-weight:700; padding:8px 14px; border:var(--bw) solid transparent; border-radius:var(--radius-sm); }
.nav a:hover{ border-color:var(--ink); }
.nav a.active{ background:var(--c-lilac); border-color:var(--ink); }
.nav a.nav-cta{ background:var(--c-yellow); border-color:var(--ink); box-shadow:var(--shadow-sm); }
.nav a.nav-cta:hover{ transform:translate(-1px,-1px); box-shadow:4px 4px 0 var(--ink); }
.nav-toggle{ display:none; margin-left:auto; width:44px; height:44px; place-items:center; background:var(--surface); border:var(--bw) solid var(--ink); border-radius:var(--radius-sm); cursor:pointer; }
@media (max-width:760px){
  .nav-toggle{ display:grid; }
  .nav{ position:absolute; left:0; right:0; top:70px; flex-direction:column; align-items:stretch; padding:12px 20px 18px; background:var(--surface); border-bottom:var(--bw) solid var(--ink); display:none; }
  .nav.open{ display:flex; }
}

/* ===================== BUTTONS ===================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:48px; padding:0 20px; font-weight:800; font-size:1rem; text-decoration:none; cursor:pointer;
  background:var(--surface); color:var(--ink); border:var(--bw) solid var(--ink); border-radius:var(--radius-sm);
  box-shadow:var(--shadow-sm); transition:transform .08s, box-shadow .08s;
}
.btn svg{ width:18px; height:18px; stroke-width:2.5; }
.btn:hover{ transform:translate(-2px,-2px); box-shadow:5px 5px 0 var(--ink); }
.btn:active{ transform:translate(3px,3px); box-shadow:0 0 0 var(--ink); }
.btn-primary{ background:var(--c-yellow); }
.btn-blue{ background:var(--c-blue); color:#fff; }
.btn-ghost{ background:transparent; box-shadow:none; border-color:transparent; text-decoration:underline; text-underline-offset:4px; }
.btn-ghost:hover{ box-shadow:none; transform:none; border-color:var(--ink); text-decoration:none; }
.btn-lg{ min-height:58px; padding:0 26px; font-size:1.1rem; }
.btn[disabled]{ opacity:.55; cursor:not-allowed; transform:none; }

/* ===================== CARDS ===================== */
.card{ background:var(--surface); border:var(--bw) solid var(--ink); border-radius:var(--radius); box-shadow:var(--shadow); }
.card-pad{ padding:26px; }
.section{ margin-top:64px; }
.section-head{ display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:22px; flex-wrap:wrap; }
.section-head h2{ font-size:clamp(1.7rem, 3vw, 2.3rem); }
.section-head p{ color:var(--ink-3); max-width:46ch; }

/* ===================== HOME / HERO ===================== */
.hero{ display:grid; grid-template-columns:1.05fr 1fr; gap:40px; align-items:center; }
.hero h1{ font-size:clamp(2.7rem, 6.2vw, 5rem); font-stretch:82%; letter-spacing:-.03em; line-height:.95; }
.hero-lead{ font-size:1.2rem; margin-top:20px; max-width:34ch; color:var(--ink-2); }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:28px; }
.hero-art{ position:relative; }
.hero-art .iso{ width:100%; height:auto; display:block; filter:drop-shadow(0 0 0 transparent); }
.status-pill{ position:absolute; left:4%; bottom:8%; display:flex; align-items:center; gap:10px; padding:10px 14px; background:var(--surface); border:var(--bw) solid var(--ink); border-radius:999px; box-shadow:var(--shadow-sm); font-weight:700; font-size:.92rem; }
.status-pill .dot{ width:12px; height:12px; border-radius:50%; background:var(--c-mint); border:2px solid var(--ink); }
@media (max-width:900px){ .hero{ grid-template-columns:minmax(0,1fr); } .hero-art{ max-width:560px; margin:0 auto; width:100%; } }

/* Search */
.search{ position:relative; margin-top:30px; max-width:540px; }
.search input{ width:100%; height:62px; padding:0 20px 0 54px; font:inherit; font-size:1.08rem; font-weight:600; background:var(--surface); border:var(--bw) solid var(--ink); border-radius:var(--radius); box-shadow:var(--shadow); color:var(--ink); }
.search input::placeholder{ color:var(--ink-3); font-weight:500; }
.search input:focus{ outline:none; box-shadow:var(--shadow-lg); transform:translate(-2px,-2px); }
.search > svg{ position:absolute; left:18px; top:50%; transform:translateY(-50%); width:22px; height:22px; stroke-width:2.6; pointer-events:none; }
.search-results{ position:absolute; left:0; right:0; top:calc(100% + 10px); z-index:20; background:var(--surface); border:var(--bw) solid var(--ink); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.search-results a{ display:flex; gap:12px; align-items:center; padding:12px 16px; text-decoration:none; font-weight:700; border-bottom:2px solid var(--ink); }
.search-results a:last-child{ border-bottom:none; }
.search-results a:hover, .search-results a:focus{ background:var(--c-yellow); outline:none; }
.search-results small{ display:block; font-weight:500; color:var(--ink-3); }
.search-results .empty-row{ padding:14px 16px; color:var(--ink-3); }

/* Category tiles (isometric icon on top) */
.tiles{ display:grid; grid-template-columns:repeat(4, 1fr); gap:18px; }
@media (max-width:900px){ .tiles{ grid-template-columns:repeat(2, 1fr); } }
.tile{ display:flex; flex-direction:column; gap:6px; padding:14px 16px 18px; text-decoration:none; text-align:left; cursor:pointer;
  background:var(--surface); border:var(--bw) solid var(--ink); border-radius:var(--radius); box-shadow:var(--shadow-sm); transition:transform .08s, box-shadow .08s; }
.tile:hover{ transform:translate(-3px,-3px); box-shadow:6px 6px 0 var(--ink); }
.tile .iso{ width:100%; max-width:150px; height:96px; align-self:center; }
.tile strong{ font-size:1.15rem; color:var(--ink); }
.tile span{ font-size:.9rem; color:var(--ink-3); line-height:1.35; }

/* Popular fixes strip */
.fix-list{ display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; }
@media (max-width:900px){ .fix-list{ grid-template-columns:minmax(0,1fr); } }
.fix{ display:flex; flex-direction:column; gap:10px; padding:20px; text-decoration:none; }
.fix h3{ font-size:1.2rem; letter-spacing:-.01em; }
.fix p{ color:var(--ink-3); font-size:.95rem; }
.fix .badge{ align-self:flex-start; }
.fix .meta{ margin-top:auto; display:flex; align-items:center; gap:8px; font-weight:700; font-size:.9rem; }
.fix:hover h3{ text-decoration:underline; text-underline-offset:4px; }

/* CTA band */
.band{ margin-top:64px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; padding:30px 34px; background:var(--c-blue); color:#fff; }
.band h2{ color:#fff; font-size:clamp(1.6rem, 3vw, 2.2rem); }
.band p{ color:#EEF1FF; margin-top:6px; }

/* ===================== PAGE HEAD (inner pages) ===================== */
.page-head{ display:flex; align-items:center; gap:24px; margin-bottom:30px; }
.page-head h1{ font-size:clamp(2.2rem, 4.6vw, 3.4rem); font-stretch:85%; letter-spacing:-.04em; }
.page-head p{ margin-top:8px; font-size:1.08rem; max-width:52ch; }
.page-head .iso{ width:150px; height:auto; flex-shrink:0; }
@media (max-width:640px){ .page-head .iso{ display:none; } }

/* ===================== HELP CENTER ===================== */
.help-layout{ display:grid; grid-template-columns:250px 1fr; gap:30px; align-items:start; }
@media (max-width:900px){ .help-layout{ grid-template-columns:minmax(0,1fr); } }
.chips{ display:flex; flex-direction:column; gap:8px; position:sticky; top:96px; }
@media (max-width:900px){ .chips{ position:static; flex-direction:row; flex-wrap:wrap; } }
.chip{ display:flex; align-items:center; gap:10px; padding:9px 14px; font-weight:700; text-align:left; cursor:pointer;
  background:var(--surface); border:var(--bw) solid var(--ink); border-radius:999px; }
.chip svg{ width:17px; height:17px; stroke-width:2.4; }
.chip .count{ margin-left:auto; font-family:var(--font-mono); font-size:.8rem; }
.chip.active{ background:var(--c-yellow); box-shadow:var(--shadow-sm); }
.chip:hover:not(.active){ background:var(--c-cream); }
.help-search{ margin:0 0 20px; max-width:none; }
.articles{ display:flex; flex-direction:column; gap:14px; }
.article{ background:var(--surface); border:var(--bw) solid var(--ink); border-radius:var(--radius); box-shadow:var(--shadow-sm); overflow:hidden; }
.article > button{ width:100%; display:flex; align-items:center; gap:14px; padding:18px 20px; background:none; border:none; cursor:pointer; text-align:left; }
.article > button h3{ font-size:1.12rem; flex:1; letter-spacing:-.01em; }
.article .tag{ font-size:.78rem; font-weight:700; padding:3px 10px; border:2px solid var(--ink); border-radius:999px; background:var(--c-cream); white-space:nowrap; }
.article .chev{ width:22px; height:22px; stroke-width:2.6; transition:transform .15s; flex-shrink:0; }
.article.open .chev{ transform:rotate(180deg); }
.article.open > button{ border-bottom:var(--bw) solid var(--ink); background:var(--c-cream); }
.article-body{ padding:18px 22px 22px; }
.article-body ol{ margin:0; padding-left:22px; list-style:decimal; display:grid; gap:8px; }
.article-body li::marker{ font-weight:800; }
.article-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:20px; padding-top:16px; border-top:2px dashed var(--ink); }
.helped{ display:flex; align-items:center; gap:8px; font-weight:600; }
.helped button{ padding:5px 12px; border:2px solid var(--ink); border-radius:999px; background:var(--surface); font-weight:700; cursor:pointer; }
.helped button.on{ background:var(--c-mint); }

/* ===================== EMPTY STATE ===================== */
.empty{ text-align:center; padding:40px 24px; }
.empty .iso{ width:180px; height:auto; margin:0 auto 10px; display:block; }
.empty h3{ font-size:1.5rem; }
.empty p{ margin:8px auto 18px; max-width:44ch; color:var(--ink-3); }

/* ===================== WIZARD ===================== */
.wizard{ display:grid; grid-template-columns:1fr 320px; gap:30px; align-items:start; }
@media (max-width:980px){ .wizard{ grid-template-columns:minmax(0,1fr); } }
.steps{ display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; margin-bottom:24px; padding:0; list-style:none; }
.steps li{ display:flex; align-items:center; gap:10px; padding:10px 12px; font-weight:700; font-size:.95rem;
  background:var(--surface); border:var(--bw) solid var(--ink); border-radius:var(--radius-sm); }
.steps .n{ width:30px; height:30px; flex-shrink:0; display:grid; place-items:center; border:2px solid var(--ink); border-radius:50%; font-weight:800; background:var(--page); }
.steps li.done .n{ background:var(--c-mint); }
.steps li.current{ background:var(--c-yellow); box-shadow:var(--shadow-sm); }
.steps li.current .n{ background:var(--surface); }
.steps button{ all:unset; display:contents; cursor:pointer; }
@media (max-width:640px){ .steps li span:not(.n){ display:none; } .steps li{ justify-content:center; } }

.step-panel h2{ font-size:1.8rem; letter-spacing:-.03em; }
.step-panel > p.sub{ margin-top:6px; color:var(--ink-3); }
.step-body{ margin-top:22px; display:grid; gap:22px; }
.step-actions{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:30px; padding-top:22px; border-top:var(--bw) solid var(--ink); }
.step-actions .spacer{ flex:1; }

/* Category pick (radio cards) */
.pick-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; }
@media (max-width:760px){ .pick-grid{ grid-template-columns:repeat(2, 1fr); } }
.pick{ display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 10px 14px; cursor:pointer; text-align:center; font-weight:800;
  background:var(--surface); border:var(--bw) solid var(--ink); border-radius:var(--radius); transition:transform .08s, box-shadow .08s; }
.pick .iso{ width:100%; max-width:120px; height:78px; }
.pick:hover{ transform:translate(-2px,-2px); box-shadow:var(--shadow-sm); }
.pick[aria-checked="true"]{ background:var(--c-yellow); box-shadow:var(--shadow); transform:translate(-2px,-2px); }

/* "Try this first" suggestions */
.suggest{ padding:18px 20px; background:var(--c-cream); border:var(--bw) dashed var(--ink); border-radius:var(--radius); }
.suggest h3{ font-size:1.1rem; display:flex; align-items:center; gap:8px; }
.suggest h3 svg{ width:20px; height:20px; stroke-width:2.6; }
.suggest ul{ list-style:none; padding:0; margin:12px 0 0; display:grid; gap:8px; }
.suggest a{ font-weight:700; text-underline-offset:3px; }

/* Severity (how stuck are you) */
.sev-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; }
@media (max-width:760px){ .sev-grid{ grid-template-columns:repeat(2, 1fr); } }
.sev{ display:flex; flex-direction:column; gap:6px; padding:14px; text-align:left; cursor:pointer;
  background:var(--surface); border:var(--bw) solid var(--ink); border-radius:var(--radius-sm); }
.sev strong{ font-size:1.02rem; color:var(--ink); }
.sev span{ font-size:.86rem; color:var(--ink-3); line-height:1.35; }
.sev .bar{ height:10px; border:2px solid var(--ink); border-radius:999px; background:var(--surface); overflow:hidden; }
.sev .bar i{ display:block; height:100%; background:var(--sev); border-right:2px solid var(--ink); }
.sev:hover{ box-shadow:var(--shadow-sm); }
.sev[aria-checked="true"]{ background:var(--c-cream); box-shadow:var(--shadow); transform:translate(-2px,-2px); }

/* Fields */
.field{ display:flex; flex-direction:column; gap:7px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:640px){ .field-row{ grid-template-columns:1fr; } }
.label{ font-weight:800; color:var(--ink); }
.label .opt{ font-weight:500; color:var(--ink-3); margin-left:6px; }
.input, .textarea, .select{
  width:100%; font:inherit; font-weight:500; color:var(--ink); background:var(--surface);
  border:var(--bw) solid var(--ink); border-radius:var(--radius-sm); padding:12px 14px; min-height:52px;
}
.textarea{ min-height:140px; resize:vertical; line-height:1.5; }
.input::placeholder, .textarea::placeholder{ color:#8A8A9A; }
.input:focus, .textarea:focus, .select:focus{ outline:none; box-shadow:var(--shadow-sm); background:#FFFDF0; }
.field.invalid .input, .field.invalid .textarea{ border-color:var(--c-red); box-shadow:3px 3px 0 var(--c-red); }
.err{ font-weight:700; color:#C21F1F; font-size:.9rem; display:none; }
.field.invalid .err{ display:block; }
.hint{ font-size:.88rem; color:var(--ink-3); }
.seg{ display:flex; flex-wrap:wrap; gap:10px; }
.seg button{ padding:9px 16px; font-weight:700; cursor:pointer; background:var(--surface); border:var(--bw) solid var(--ink); border-radius:999px; display:inline-flex; align-items:center; gap:8px; }
.seg button svg{ width:17px; height:17px; stroke-width:2.4; }
.seg button[aria-checked="true"]{ background:var(--c-lilac); box-shadow:var(--shadow-sm); }

/* Attachments */
.drop{ display:flex; flex-direction:column; align-items:center; gap:10px; padding:22px; text-align:center; cursor:pointer;
  background:var(--c-cream); border:var(--bw) dashed var(--ink); border-radius:var(--radius); font-weight:600; }
.drop.over{ background:var(--c-yellow); }
.drop svg{ width:28px; height:28px; stroke-width:2.4; }
.files{ display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:12px; }
.file{ position:relative; border:var(--bw) solid var(--ink); border-radius:var(--radius-sm); background:var(--surface); overflow:hidden; }
.file .thumb{ height:86px; display:grid; place-items:center; background:var(--page); border-bottom:var(--bw) solid var(--ink); }
.file .thumb img{ width:100%; height:100%; object-fit:cover; }
.file .thumb svg{ width:30px; height:30px; stroke-width:2.2; }
.file .meta{ padding:7px 9px; font-size:.82rem; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.file .meta small{ display:block; font-weight:500; color:var(--ink-3); }
.file .rm{ position:absolute; top:6px; right:6px; width:28px; height:28px; display:grid; place-items:center; cursor:pointer; background:var(--surface); border:2px solid var(--ink); border-radius:50%; }
.file .rm svg{ width:15px; height:15px; stroke-width:3; }

/* Review */
.review{ display:grid; gap:16px; }
.review-block{ padding:16px 18px; border:var(--bw) solid var(--ink); border-radius:var(--radius-sm); background:var(--surface); }
.review-block header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.review-block h3{ font-size:1.05rem; }
.review-block header button{ background:none; border:none; font-weight:700; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.kv{ display:grid; grid-template-columns:140px 1fr; gap:6px 14px; margin:0; }
.kv dt{ color:var(--ink-3); font-weight:600; }
.kv dd{ margin:0; color:var(--ink); font-weight:600; overflow-wrap:anywhere; }
@media (max-width:520px){ .kv{ grid-template-columns:96px minmax(0,1fr); gap:6px 12px; } }

/* Side panel (wizard) */
.side{ position:sticky; top:96px; display:grid; gap:18px; }
@media (max-width:980px){ .side{ position:static; } }
.side .card-pad{ padding:20px; }
.side h3{ font-size:1.15rem; }
.side .iso{ width:100%; height:auto; display:block; margin:-6px 0 6px; }
.side ul{ margin:10px 0 0; padding-left:18px; display:grid; gap:6px; font-size:.95rem; }

/* ===================== TRACK ===================== */
.track-grid{ display:grid; grid-template-columns:1fr 1fr; gap:28px; align-items:start; }
@media (max-width:900px){ .track-grid{ grid-template-columns:minmax(0,1fr); } }
.recent{ display:grid; grid-template-columns:minmax(0,1fr); gap:12px; margin-top:14px; }
.recent a{ display:flex; align-items:center; gap:14px; padding:14px 16px; text-decoration:none; background:var(--surface); border:var(--bw) solid var(--ink); border-radius:var(--radius-sm); }
.recent a:hover{ box-shadow:var(--shadow-sm); transform:translate(-2px,-2px); }
.recent .grow{ flex:1; min-width:0; }
.recent strong{ display:block; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.recent small{ color:var(--ink-3); }

/* ID chip + status badge */
.tid{ font-family:var(--font-mono); font-weight:700; font-size:.88rem; padding:3px 9px; background:var(--c-cream); border:2px solid var(--ink); border-radius:7px; white-space:nowrap; }
.badge{ display:inline-flex; align-items:center; gap:6px; font-weight:800; font-size:.82rem; padding:4px 11px; border:2px solid var(--ink); border-radius:999px; background:var(--surface); white-space:nowrap; }
.badge i{ width:10px; height:10px; border-radius:50%; border:2px solid var(--ink); background:var(--dot, var(--c-mint)); }
.prio{ display:inline-flex; align-items:center; gap:7px; font-weight:800; font-size:.85rem; padding:4px 11px; border:2px solid var(--ink); border-radius:999px; background:var(--pc); }

/* ===================== TICKET (stub + timeline) ===================== */
.ticket-layout{ display:grid; grid-template-columns:1.25fr 1fr; gap:30px; align-items:start; }
@media (max-width:980px){ .ticket-layout{ grid-template-columns:minmax(0,1fr); } }
.ticket-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:22px; }

.stub{ position:relative; background:var(--c-cream); border:var(--bw) solid var(--ink); border-radius:var(--radius); box-shadow:var(--shadow-lg); }
.stub-top{ padding:26px 28px 22px; display:flex; flex-direction:column; gap:12px; }
.stub-top .row{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.stub-id{ font-family:var(--font-mono); font-weight:700; font-size:clamp(1.5rem, 3.4vw, 2.1rem); color:var(--ink); letter-spacing:-.02em; }
.stub h2{ font-size:clamp(1.5rem, 3vw, 2rem); letter-spacing:-.03em; }
/* perforation between the two halves */
.perf{ position:relative; height:0; border-top:var(--bw) dashed var(--ink); margin:0 22px; }
.perf::before, .perf::after{ content:""; position:absolute; top:-17px; width:32px; height:32px; border-radius:50%; background:var(--page); border:var(--bw) solid var(--ink); }
.perf::before{ left:-40px; clip-path:inset(0 0 0 50%); }
.perf::after{ right:-40px; clip-path:inset(0 50% 0 0); }
.stub-bottom{ padding:22px 28px 26px; display:grid; gap:18px; }
.stub-bottom h4{ font-size:.95rem; margin-bottom:8px; }
.stub-desc{ white-space:pre-wrap; color:var(--ink); }
.eta{ display:flex; align-items:center; gap:12px; padding:12px 16px; background:var(--surface); border:var(--bw) solid var(--ink); border-radius:var(--radius-sm); font-weight:700; }
.eta svg{ width:22px; height:22px; stroke-width:2.5; flex-shrink:0; }
.eta small{ display:block; font-weight:500; color:var(--ink-3); }

.timeline{ list-style:none; margin:16px 0 0; padding:0; display:grid; }
.timeline li{ position:relative; display:grid; grid-template-columns:44px 1fr; gap:14px; padding-bottom:22px; }
.timeline li:last-child{ padding-bottom:0; }
.timeline li::before{ content:""; position:absolute; left:20px; top:42px; bottom:0; width:0; border-left:var(--bw) dashed var(--ink); }
.timeline li:last-child::before{ display:none; }
.timeline li.done::before{ border-left-style:solid; }
.timeline .node{ width:44px; height:44px; display:grid; place-items:center; border:var(--bw) solid var(--ink); border-radius:12px; background:var(--surface); }
.timeline .node svg{ width:20px; height:20px; stroke-width:2.6; }
.timeline li.done .node{ background:var(--c-mint); }
.timeline li.current .node{ background:var(--c-yellow); box-shadow:var(--shadow-sm); }
.timeline strong{ display:block; color:var(--ink); font-size:1.05rem; margin-top:2px; }
.timeline small{ color:var(--ink-3); }

.notes{ display:grid; gap:12px; margin-top:14px; }
.note{ padding:12px 14px; background:var(--surface); border:2px solid var(--ink); border-radius:var(--radius-sm); }
.note.agent{ background:#EEF1FF; }
.note header{ display:flex; justify-content:space-between; gap:10px; font-weight:800; font-size:.9rem; color:var(--ink); }
.note header small{ font-weight:500; color:var(--ink-3); }
.note p{ margin-top:4px; white-space:pre-wrap; }
.note-form{ display:flex; gap:10px; margin-top:14px; }
.note-form .input{ min-height:48px; }

/* ===================== FOOTER ===================== */
.footer{ border-top:var(--bw) solid var(--ink); background:var(--surface); }
.footer-inner{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:18px 20px; font-weight:600; font-size:.95rem; }

/* ===================== TOAST ===================== */
.toast-wrap{ position:fixed; right:18px; bottom:18px; z-index:60; display:grid; gap:10px; }
.toast{ display:flex; align-items:center; gap:10px; padding:12px 16px; font-weight:700; max-width:360px;
  background:var(--c-mint); border:var(--bw) solid var(--ink); border-radius:var(--radius-sm); box-shadow:var(--shadow-sm); animation:pop .18s ease-out; }
.toast.err{ background:var(--c-pink); }
.toast svg{ width:20px; height:20px; stroke-width:2.6; flex-shrink:0; }
@keyframes pop{ from{ transform:translateY(8px) scale(.97); opacity:0; } to{ transform:none; opacity:1; } }

/* ===================== ISOMETRIC ART ===================== */
.iso{ overflow:visible; }
.iso .face{ stroke:var(--ink); stroke-width:2.6; stroke-linejoin:round; }
.iso .line{ fill:none; stroke:var(--ink); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
.iso .shade-1{ filter:brightness(.86); }
.iso .shade-2{ filter:brightness(.7); }
/* Hero gets one gentle float — the only ambient motion on the site */
.hero-art .float{ animation:float 4s ease-in-out infinite; transform-box:fill-box; }
@keyframes float{ 50%{ transform:translateY(-10px); } }

/* ===================== SMALL SCREENS =====================
   Lighter outlines, fewer nested boxes and more breathing room,
   so the brutalist look stays bold without feeling crowded. */
@media (max-width:640px){
  :root{ --bw:2.5px; --shadow:4px 4px 0 var(--ink); --shadow-sm:3px 3px 0 var(--ink); --shadow-lg:5px 5px 0 var(--ink); }
  .wrap{ padding:0 18px; }
  .view{ padding:26px 0 56px; }
  .card-pad{ padding:18px; }
  .section{ margin-top:52px; }
  .section-head{ margin-bottom:16px; }
  .section-head p{ font-size:.95rem; }
  .page-head{ margin-bottom:22px; }
  .page-head p{ font-size:1rem; }

  /* Home */
  .hero{ gap:26px; }
  .hero-lead{ font-size:1.05rem; margin-top:14px; }
  .search{ margin-top:22px; }
  .search input{ height:56px; box-shadow:var(--shadow-sm); }
  .hero-actions{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
  .hero-actions .btn{ min-height:52px; padding:0 10px; font-size:.95rem; }
  .status-pill{ left:0; bottom:0; font-size:.8rem; padding:7px 12px; }
  /* Topic tiles become airy rows: small scene on the left, text on the right */
  .tiles{ grid-template-columns:minmax(0,1fr); gap:12px; }
  .tile{ display:grid; grid-template-columns:72px 1fr; column-gap:14px; row-gap:2px; align-items:center; padding:10px 14px; }
  .tile .iso{ grid-row:1 / 3; width:72px; height:54px; }
  .tile strong{ align-self:end; font-size:1.05rem; }
  .tile span{ align-self:start; font-size:.86rem; }
  .fix-list{ gap:14px; }
  .fix{ padding:16px 18px; gap:8px; }
  .band{ margin-top:52px; padding:22px; }
  .band .btn{ width:100%; }

  /* Help center: one scrollable row of topics, quieter article headers */
  .help-layout{ gap:12px; }
  .chips{ flex-wrap:nowrap; overflow-x:auto; gap:8px; margin:0 -18px; padding:2px 18px 6px; scrollbar-width:none; }
  .chips::-webkit-scrollbar{ display:none; }
  .chip{ flex-shrink:0; padding:8px 13px; }
  .chip .count{ display:none; }
  .articles{ gap:12px; }
  .article > button{ padding:15px 16px; gap:10px; }
  .article .tag{ display:none; }
  .article-body{ padding:16px 16px 18px; }
  .article-foot .btn{ width:100%; }

  /* Wizard: the step panel drops its frame so fields sit on the page */
  .steps{ gap:8px; margin-bottom:22px; }
  .steps li{ padding:8px; }
  .step-panel.card{ background:transparent; border:none; box-shadow:none; padding:0; }
  .step-panel h2{ font-size:1.6rem; }
  .step-body{ margin-top:18px; gap:22px; }
  .pick-grid{ gap:10px; }
  .pick{ padding:8px 8px 12px; font-size:.95rem; }
  .pick .iso{ height:60px; }
  .suggest{ padding:16px; }
  .sev-grid{ grid-template-columns:minmax(0,1fr); gap:10px; }
  .sev{ display:grid; grid-template-columns:1fr 76px; column-gap:14px; row-gap:2px; align-items:center; padding:12px 14px; }
  .sev .bar{ grid-column:2; grid-row:1 / 3; }
  .step-actions{ display:grid; grid-template-columns:auto 1fr; gap:12px; margin-top:26px; padding-top:20px; }
  .step-actions .spacer{ display:none; }
  .step-actions .act-back{ order:1; }
  .step-actions .act-next{ order:2; }
  .step-actions .act-reset{ order:3; grid-column:1 / -1; justify-self:center; }
  .step-actions:not(:has(.act-back)) .act-next{ grid-column:1 / -1; }
  .review-block{ padding:14px 16px; }
  .side{ gap:14px; margin-top:8px; }
  .side .iso{ display:none; }

  /* Ticket */
  .ticket-actions{ gap:10px; margin-bottom:18px; }
  .ticket-actions .btn{ min-height:46px; padding:0 14px; }
  .ticket-actions .lbl{ display:none; }
  .stub-top{ padding:20px 18px 16px; }
  .stub-bottom{ padding:18px 18px 20px; }
  .perf{ margin:0 14px; }
  .perf::before{ left:-31px; }
  .perf::after{ right:-31px; }
  .eta{ padding:10px 12px; }
  .timeline li{ grid-template-columns:38px 1fr; gap:12px; padding-bottom:16px; }
  .timeline .node{ width:38px; height:38px; border-radius:10px; }
  .timeline li::before{ left:17px; top:36px; }

  .recent a{ flex-wrap:wrap; row-gap:8px; }
  .recent .grow{ order:3; flex-basis:100%; }
  .recent .badge{ margin-left:auto; }

  .footer-inner{ flex-direction:column; gap:4px; padding:18px 18px 22px; font-size:.9rem; }

  .toast-wrap{ left:12px; right:12px; bottom:12px; }
  .toast{ max-width:none; }
}
@media (max-width:360px){
  .kv{ grid-template-columns:72px minmax(0,1fr); gap:6px 10px; }
  .kv dd{ overflow-wrap:break-word; word-break:normal; }
}

/* ===================== PRINT ===================== */
@media print{
  body{ background:#fff; }
  .topbar, .footer, .ticket-actions, .no-print, .toast-wrap, .side-col{ display:none !important; }
  .view{ padding:0; }
  .ticket-layout{ display:block; }
  .stub{ box-shadow:none; }
}
