/* Copy4Chat landing page — monochrome, light/dark, pill geometry. */

:root {
  --bg: #ffffff;
  --fg: #0d0d0d;
  --muted: #6e6e6e;
  --line: #e6e6e6;
  --panel: #fafafa;
  --panel-2: #f3f3f3;
  --inset: rgba(0, 0, 0, .04);
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --accent: #0d0d0d;
  --accent-fg: #ffffff;
  --radius: 20px;
  --pill: 999px;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  --bg: #0d0d0d;
  --fg: #ececec;
  --muted: #9a9a9a;
  --line: #262626;
  --panel: #151515;
  --panel-2: #1c1c1c;
  --inset: rgba(255, 255, 255, .05);
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.4);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --accent: #ececec;
  --accent-fg: #0d0d0d;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0d0d0d; --fg: #ececec; --muted: #9a9a9a; --line: #262626;
    --panel: #151515; --panel-2: #1c1c1c; --inset: rgba(255,255,255,.05);
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.4);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --accent: #ececec; --accent-fg: #0d0d0d;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}

a { color: inherit; }

.skip {
  position: absolute; left: -9999px;
  background: var(--fg); color: var(--bg);
  padding: 10px 16px; border-radius: var(--pill); z-index: 100;
}
.skip:focus { left: 16px; top: 12px; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------------ pills */

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--pill);
  padding: 9px 18px;
  font-size: 14px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--bg); color: var(--fg);
  cursor: pointer;
  transition: transform .14s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pill:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pill:active { transform: translateY(0); }

.pill.ghost { background: transparent; }
.pill.ghost:hover { background: var(--panel-2); }

.pill.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, var(--bg)), var(--accent));
  color: var(--accent-fg);
  border-color: transparent;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--inset);
  font-weight: 600;
}
.pill.primary:hover { box-shadow: var(--shadow), inset 0 1px 0 var(--inset); }

.pill.big { padding: 14px 30px; font-size: 16px; }
.pill .cws { flex: 0 0 auto; }
.pill.big .cws { width: 20px; height: 20px; }
.pill.tiny { padding: 6px 13px; font-size: 12.5px; }

.theme-glyph { font-size: 13px; line-height: 1; }

.pill.version {
  padding: 3px 10px; font-size: 12px; font-family: var(--mono);
  color: var(--muted); background: var(--panel-2); border-color: transparent;
}
.pill.version:hover { transform: none; box-shadow: none; }

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 7px; display: block; }
.brand-name { font-weight: 650; letter-spacing: -.01em; }
.bar-actions { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------ intro */

.intro { max-width: 820px; margin: 0 auto; padding: 44px 24px 26px; }
/* Hero: the product icon sits beside the headline like an app listing. */
.hero { display: flex; align-items: center; gap: 24px; margin-bottom: 18px; }
.hero-icon { flex: 0 0 auto; line-height: 0; }
.hero-icon svg {
  display: block; width: 104px; height: 104px;
  /* Three neutral layers rather than one tinted one: a tight contact shadow,
     a mid falloff and a wide ambient. drop-shadow follows the squircle's
     alpha, so there is no rectangular halo behind it. */
  filter:
    drop-shadow(0 1px 1px rgba(8, 12, 20, .20))
    drop-shadow(0 5px 10px rgba(8, 12, 20, .15))
    drop-shadow(0 16px 30px rgba(8, 12, 20, .13));
}

/* On a dark page a cast shadow is invisible, so depth comes from a faint
   lift instead of a darker smudge. */
:root[data-theme="dark"] .hero-icon svg {
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, .55))
    drop-shadow(0 10px 26px rgba(0, 0, 0, .50))
    drop-shadow(0 0 22px rgba(130, 170, 255, .10));
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .hero-icon svg {
    filter:
      drop-shadow(0 1px 1px rgba(0, 0, 0, .55))
      drop-shadow(0 10px 26px rgba(0, 0, 0, .50))
      drop-shadow(0 0 22px rgba(130, 170, 255, .10));
  }
}
.hero-text { min-width: 0; }
.hero h1 { margin-bottom: 0; }

.kicker {
  margin: 0 0 14px; font-size: 12.5px; font-weight: 620;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.intro h1 {
  font-size: clamp(29px, 4.1vw, 40px); line-height: 1.14;
  letter-spacing: -.028em; margin: 0 0 22px; font-weight: 680;
}
.intro p { margin: 0 0 18px; color: var(--muted); }
.intro .lede { font-size: 18px; line-height: 1.55; color: var(--fg); }
.intro .lede.short { max-width: 68ch; }
.intro strong { font-weight: 620; color: var(--fg); }
/* The one piece of colour on the page. Without it the whole thing reads as
   an article rather than something you are meant to touch. */
/* The threshold between the article half of the page and the demo half.
   The button straddles the rule so the boundary is impossible to miss. */
.divider {
  max-width: 1320px; margin: 6px auto 40px; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; position: relative;
  text-align: center;
}
.divider > .pill.try,
.divider > .try-note {
  align-self: center; margin-left: auto; margin-right: auto;
}
.divider > .pill.try { justify-content: center; }
.divider::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 22px;
  height: 1px; background: var(--line);
}
.divider .pill.try { position: relative; z-index: 1; }
.pill.try {
  background: #e5b56d;
  color: #2a1704; border-color: transparent; font-weight: 680; font-size: 15px;
  padding: 12px 24px; letter-spacing: -.005em;
  box-shadow: none;
}
.pill.try:hover {
  background: #dba65b;
  box-shadow: none;
}
.pill.try .arr { display: inline-block; animation: c4c-bob 1.9s ease-in-out infinite; }
@keyframes c4c-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.try-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { .pill.try .arr { animation: none; } }

.more { margin: 4px 0 0; }
.more summary {
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--pill);
  font-size: 14px; color: var(--muted); list-style: none;
  transition: background .18s ease, color .18s ease;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 15px; line-height: 1; }
.more[open] summary::after { content: "\2212"; }
.more summary:hover { background: var(--panel-2); color: var(--fg); }
.more-body { padding-top: 18px; }
.more-body p:last-child { margin-bottom: 0; }

.intro-note {
  margin-top: 26px; padding: 15px 19px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); font-size: 15px;
}

/* ----------------------------------------------------------------- layout */

.layout {
  max-width: 1320px; margin: 0 auto; padding: 0 24px 40px;
  display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 40px;
  align-items: start;
}

.toc { position: sticky; top: 92px; }
.toc-title {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin: 0 0 12px; font-weight: 600;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: block; padding: 8px 14px; border-radius: var(--pill);
  text-decoration: none; color: var(--muted); font-size: 14.5px;
  transition: background .18s ease, color .18s ease;
}
.toc a:hover { background: var(--panel-2); color: var(--fg); }
.toc a[aria-current="true"] { background: var(--panel-2); color: var(--fg); font-weight: 560; }

/* --------------------------------------------------------------- roadshow */

.roadshow { display: grid; gap: 60px; min-width: 0; }
.demo { scroll-margin-top: 92px; min-width: 0; }
.demo-head h2 { font-size: 25px; letter-spacing: -.02em; margin: 0 0 6px; font-weight: 640; }
.demo-head p { margin: 0 0 20px; color: var(--muted); font-size: 15px; max-width: 62ch; }

.demo-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }

/* The output follows the reader: on a 2500px form the copied text is the
   thing you are watching, so losing it off-screen defeats the demo. */
.out-panel { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 112px); display: flex; flex-direction: column; }

.chatui {
  padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 20px;
  overflow: auto; min-height: 0; background: #fff;
}

.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg.me { justify-content: flex-end; }

.bot-ava {
  width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto;
  background: var(--fg); position: relative;
}
.bot-ava::after {
  content: ""; position: absolute; inset: 8px;
  border: 1.5px solid var(--bg); border-radius: 1px;
  border-right-color: transparent; border-top-color: transparent;
}

.turn { min-width: 0; flex: 1 1 auto; padding-top: 1px; }
.who-b {
  font-size: 12.5px; font-weight: 640; color: var(--fg);
  letter-spacing: 0; text-transform: none; margin: 0 0 3px !important;
}
.turn p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--fg); }
.turn strong { font-weight: 620; }

.userturn {
  min-width: 0; max-width: 92%;
  background: color-mix(in srgb, var(--fg) 5%, var(--bg));
  border-radius: 18px; padding: 6px;
}

.codeblk {
  border-radius: 13px; overflow: hidden;
  background: #0f1115; border: 1px solid rgba(255,255,255,.07);
}
.codeblk .out {
  margin: 0; padding: 13px 14px; max-height: 42vh;
  background: #0f1115; color: #dfe4ec; border: 0;
  font-size: 11.5px; line-height: 1.52;
}
.userturn .out-empty {
  min-height: 0; padding: 16px 12px; justify-content: flex-start;
  text-align: left; font-size: 13px;
}
.out-panel:not(.has-output) .codeblk { display: none; }

.out {
  margin: 0; padding: 18px;
  /* Sized so an 80-column block fits without a horizontal scrollbar at the
     desktop layout width; it still scrolls rather than clipping if it must. */
  font: 11.5px/1.5 var(--mono);
  white-space: pre; overflow: auto; max-height: 70vh;
  background: var(--bg); color: var(--fg);
}
.out-empty {
  /* Holds the panel open while empty — collapsing it would make the page
     jump the moment a visitor highlights something. */
  margin: 0; padding: 18px; min-height: 260px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: 13.5px;
}
.out-panel.has-output .out-empty { display: none; }
.out-panel:not(.has-output) .out { display: none; }
.out-panel:not(.has-output) .paste-tag { display: none; }
.hl-hint {
  color: var(--fg); font-weight: 560;
  background: rgba(125, 190, 255, .25); border-radius: 3px;
  padding: 1px 4px;
}
.hl-hint::before {
  content: ""; display: inline-block; width: 12px; height: 16px;
  margin-right: 4px; vertical-align: -3px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M3 2h2l1 1 1-1h2M6 3v10M3 14h2l1-1 1 1h2' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.out-note {
  margin: 0; padding: 10px 18px 13px; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------- widget styling */

/* The examples are meant to read as if cropped out of a real site, so they
   keep their own light palette and brand colour regardless of the page
   theme. In dark mode that contrast is the point: it is obvious where the
   page stops and the embedded example starts. */

.widget {
  --w-fg: #10131a;
  --w-muted: #5b6472;
  --w-line: #dfe3e9;
  --w-bg: #ffffff;
  --w-soft: #f5f7fa;
  --w-brand: #1f2937;
  --w-brand-fg: #ffffff;
  --w-danger: #b42318;

  padding: 20px; color: var(--w-fg);
  font: 14px/1.55 var(--ui);
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 320px at 12% -8%, color-mix(in srgb, var(--w-brand) 13%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--w-brand) 5%, var(--w-bg)), var(--w-bg) 42%);
}

/* Content sits on a card so it lifts off the tinted page behind it. */
.widget .acct, .widget .bk, .widget .dash, .widget .pdp,
.widget .msgs, .widget .thread, .widget .eps { position: relative; }
.widget > form, .widget > .bk, .widget > .dash {
  background: #fff; border: 1px solid var(--w-line); border-radius: 16px;
  padding: 18px; box-shadow: 0 1px 2px rgba(16,19,26,.05), 0 10px 26px rgba(16,19,26,.06);
}
.widget[data-brand="stream"] > .bk { background: #15161b; }
/* Verify — a dark carrier page with a red aurora drifting behind it. */
.widget[data-brand="telecom"] {
  --w-brand: #e8232c; --w-brand-fg: #fff;
  --w-bg: #120d10; --w-fg: #f4eef0; --w-muted: #a89aa0;
  --w-line: #2f2026; --w-soft: #1d141a;
}
.widget[data-brand="telecom"]::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background:
    radial-gradient(38% 34% at 28% 32%, rgba(232, 35, 44, .55), transparent 68%),
    radial-gradient(32% 30% at 74% 58%, rgba(255, 92, 60, .38), transparent 70%),
    radial-gradient(44% 40% at 52% 86%, rgba(150, 18, 60, .45), transparent 72%);
  filter: blur(26px);
  animation: c4c-swim 18s ease-in-out infinite alternate;
}
.widget[data-brand="telecom"] > form {
  background: rgba(24, 16, 20, .78); border-color: #34242b;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.45);
}
.widget[data-brand="telecom"] input,
.widget[data-brand="telecom"] select { background: rgba(10, 7, 9, .7); }
.widget[data-brand="telecom"] .btn { background: rgba(255,255,255,.07); border-color: #3b2a31; color: #f4eef0; }
.widget[data-brand="telecom"] .btn:hover { background: rgba(255,255,255,.12); }

@keyframes c4c-swim {
  0%   { transform: translate3d(-4%, -3%, 0) scale(1.05) rotate(0deg); }
  50%  { transform: translate3d(5%, 4%, 0) scale(1.14) rotate(8deg); }
  100% { transform: translate3d(-2%, 6%, 0) scale(1.08) rotate(-6deg); }
}
/* Untied — sky, with soft cloud banks drifting behind the form. */
.widget[data-brand="air"] { --w-brand: #0b4a8f; --w-soft: #f2f7fd; --w-line: #d6e4f5; --w-bg: #dcecfb; }
.widget[data-brand="air"]::before {
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background:
    radial-gradient(28% 22% at 18% 26%, rgba(255,255,255,.95), transparent 70%),
    radial-gradient(34% 24% at 48% 16%, rgba(255,255,255,.85), transparent 72%),
    radial-gradient(30% 26% at 82% 34%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(40% 30% at 66% 74%, rgba(255,255,255,.75), transparent 72%),
    linear-gradient(180deg, #8dc2f0 0%, #bcdcf7 44%, #e8f3fd 100%);
  filter: blur(14px);
  animation: c4c-drift 34s linear infinite alternate;
}
@keyframes c4c-drift {
  from { transform: translate3d(-3%, 0, 0) scale(1.06); }
  to   { transform: translate3d(4%, -2%, 0) scale(1.12); }
}
.widget[data-brand="air"] > .bk {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(11,74,143,.10), 0 16px 36px rgba(11,74,143,.16);
}
.widget[data-brand="dash"]    { --w-brand: #1f6f54; --w-soft: #f3faf7; --w-line: #d8ebe3; }

/* A full-bleed coloured banner, the way a real site wears its brand. */
.widget .brandbar {
  display: flex; align-items: center; gap: 10px;
  margin: -20px -20px 18px; padding: 13px 20px;
  font-weight: 680; font-size: 15px; letter-spacing: -.01em;
  color: #fff;
  background: linear-gradient(135deg, var(--w-brand), color-mix(in srgb, var(--w-brand) 68%, #000));
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.14);
}
.widget .brandbar .logo {
  width: 20px; height: 20px; border-radius: 6px; display: inline-block;
  background: rgba(255,255,255,.94);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--w-brand) 72%, #000);
}

.widget h3 { margin: 0 0 4px; font-size: 17px; font-weight: 640; color: var(--w-fg); }
.widget .acct-sub { margin: 0 0 16px; color: var(--w-muted); font-size: 13.5px; }

.widget label { display: block; font-size: 12.5px; color: var(--w-muted); margin-bottom: 12px; font-weight: 500; }
.widget .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.widget input[type="text"],
.widget input[type="email"],
.widget input[type="tel"],
.widget input[type="date"],
.widget select {
  display: block; width: 100%; margin-top: 5px;
  padding: 10px 15px; border-radius: var(--pill);
  border: 1px solid var(--w-line); background: var(--w-bg); color: var(--w-fg);
  font: 14px var(--ui); transition: border-color .16s ease, box-shadow .16s ease;
}
.widget select {
  appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--w-muted) 50%), linear-gradient(135deg, var(--w-muted) 50%, transparent 50%);
  background-position: right 17px top 52%, right 12px top 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.widget input:focus, .widget select:focus {
  outline: none; border-color: var(--w-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--w-brand) 16%, transparent);
}
.widget input[aria-invalid="true"] { border-color: var(--w-danger); }
.widget .err { margin: -6px 0 14px; font-size: 12.5px; color: var(--w-danger); font-weight: 560; }

.widget .check { display: flex; align-items: center; gap: 9px; margin: 4px 0 16px; color: var(--w-fg); font-size: 14px; font-weight: 400; }
.widget .check.inline { margin: 0; align-self: end; padding-bottom: 10px; }
.widget .check input { width: 17px; height: 17px; accent-color: var(--w-brand); margin: 0; }

.widget .radio { display: inline-flex; align-items: center; gap: 8px; margin: 0 18px 0 0; font-size: 14px; color: var(--w-fg); }
.widget .radio input { accent-color: var(--w-brand); margin: 0; }
.widget fieldset.trip { border: 0; padding: 0; margin: 0 0 14px; }
.widget fieldset.trip legend { font-size: 12.5px; color: var(--w-muted); padding: 0; margin-bottom: 8px; font-weight: 500; }

.widget .actions { display: flex; gap: 9px; margin-top: 6px; }
.widget .btn {
  border-radius: var(--pill); border: 1px solid var(--w-line);
  background: var(--w-bg); color: var(--w-fg);
  padding: 10px 20px; font: 540 14px var(--ui); cursor: pointer;
  transition: background .16s ease, transform .14s ease;
}
.widget .btn:hover { background: var(--w-soft); transform: translateY(-1px); }
.widget .btn.solid {
  background: var(--w-brand); color: var(--w-brand-fg); border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.widget .tabs, .widget .subtabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.widget .tabs { border-bottom: 1px solid var(--w-line); padding-bottom: 0; gap: 2px; }
.widget .tabs button {
  border: 0; border-bottom: 2px solid transparent; background: transparent;
  color: var(--w-muted); padding: 9px 14px; cursor: pointer;
  font: 560 13.5px var(--ui); border-radius: 8px 8px 0 0;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.widget .tabs button:hover { color: var(--w-fg); background: var(--w-soft); }
.widget .tabs button[aria-selected="true"] { color: var(--w-brand); border-bottom-color: var(--w-brand); }

.widget .subtabs { margin: 14px 0 18px; }
.widget .subtabs button {
  border: 1px solid var(--w-line); background: var(--w-bg); color: var(--w-muted);
  padding: 7px 15px; border-radius: var(--pill); cursor: pointer; font: 520 13px var(--ui);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.widget .subtabs button[aria-selected="true"] {
  background: var(--w-brand); color: var(--w-brand-fg); border-color: transparent;
}

.widget .filters { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; margin-bottom: 16px; }

.widget table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 16px; }
.widget caption { text-align: left; font-size: 12.5px; color: var(--w-muted); padding-bottom: 8px; }
.widget th, .widget td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--w-line); }
.widget thead th { background: var(--w-soft); font-weight: 620; font-size: 11.5px; color: var(--w-muted); text-transform: uppercase; letter-spacing: .05em; }
.widget tbody tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------- scroll-in choreography */

/* Scrolling a demo into view replays the real flow once: highlight the
   selection, show the menu action, then generate. The output is computed
   before the animation starts — the delay is theatre, the text is not. */

.widget-panel { position: relative; overflow: visible; }
.widget-panel .widget {
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
}

.widget-panel.is-selecting .widget {
  box-shadow: inset 0 0 0 2px var(--fg);
  transition: box-shadow .25s ease;
}
.widget-panel.is-selecting .widget ::selection { background: var(--fg); color: var(--bg); }

.stage-toast {
  position: absolute; left: 50%; top: 54%;
  transform: translate(-50%, -50%) scale(.96);
  display: flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: var(--pill);
  background: rgba(20,20,20,.93); color: #fff;
  font: 540 13.5px/1 var(--ui); letter-spacing: -.005em;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none; z-index: 5;
  transition: opacity .22s ease, transform .22s ease;
}
.stage-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.stage-toast img { width: 17px; height: 17px; border-radius: 4px; }

.out-panel.is-busy .out { opacity: .25; }
.out .out-reveal { animation: c4c-fade .34s ease both; }
@keyframes c4c-fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.spinner {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-size: 13px; z-index: 4;
}
.out-panel.is-busy .spinner { display: flex; }
.spinner i {
  width: 15px; height: 15px; border-radius: 50%; display: block;
  border: 2px solid var(--line); border-top-color: var(--fg);
  animation: c4c-spin .7s linear infinite;
}
@keyframes c4c-spin { to { transform: rotate(360deg); } }

.seg {
  display: flex; gap: 4px; background: var(--line); border-radius: var(--pill);
  padding: 3px; flex: 1 1 auto;
}
.seg button {
  flex: 1; padding: 7px 12px; border: 0; border-radius: calc(var(--pill) - 2px);
  background: transparent; color: var(--muted); font: 12px var(--ui);
  font-weight: 600; cursor: pointer; transition: all .15s;
}
.seg button[aria-selected="true"] {
  background: var(--bg); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.seg button:hover:not([aria-selected="true"]) { color: var(--fg); }
.seg.is-busy button { opacity: .45; }

@keyframes c4c-pulse {
  0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fg) 30%, transparent); }
  50%     { box-shadow: 0 0 0 7px color-mix(in srgb, var(--fg) 0%, transparent); }
}
.pulse { animation: c4c-pulse 1.1s ease-out 2; }

@media (prefers-reduced-motion: reduce) {
  .stage-toast, .spinner i, .pulse, .out .out-reveal { animation: none !important; transition: none !important; }
}


/* Each example carries its own palette and background — a streaming app is
   not a white form, and pretending otherwise would undercut the point that
   these look like pages you actually visit. */
.widget[data-brand="shop"]   { --w-brand: #c45500; --w-soft: #fff7ef; --w-line: #e8ddd0; --w-bg: #ffffff; }
.widget[data-brand="tix"]    { --w-brand: #1a3fa0; --w-soft: #f4f7ff; --w-line: #dfe4f3; --w-bg: #fffdf8; }
.widget[data-brand="mail"]   { --w-brand: #0f6cbd; --w-soft: #f2f7fc; --w-line: #dde7f1; --w-bg: #f8fafc; }
.widget[data-brand="chat"]   { --w-brand: #4a154b; --w-soft: #faf5fb; --w-line: #ebdfec; --w-bg: #ffffff; }
.widget[data-brand="stream"] {
  --w-brand: #e11d2e; --w-brand-fg: #ffffff;
  --w-bg: #0f0f12; --w-fg: #f3f3f5; --w-muted: #9ea0a8;
  --w-line: #2a2b31; --w-soft: #191a1f;
}
.widget[data-brand="stream"] .btn { background: #22232a; border-color: #34353d; color: #f3f3f5; }
.widget[data-brand="stream"] .btn:hover { background: #2b2c34; }
.widget[data-brand="stream"] input, .widget[data-brand="stream"] select { background: #17181d; }

/* Streaming title */
.sv-hero { display: flex; gap: 16px; margin-bottom: 18px; }
.sv-art {
  width: 100px; height: 140px; border-radius: 8px; flex: 0 0 auto;
  background: url("art/poster.png") center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 6px 18px rgba(0,0,0,.45);
}
.sv-meta { margin: 4px 0 12px; color: var(--w-muted); font-size: 12.5px; }
.eps { list-style: none; margin: 0 0 14px; padding: 0; }
.eps li { display: flex; align-items: center; gap: 13px; padding: 10px 11px; border-radius: 12px; }
.eps li.on { background: var(--w-soft); box-shadow: inset 0 0 0 1px var(--w-line); }
.eps .n { width: 20px; text-align: center; color: var(--w-muted); font-variant-numeric: tabular-nums; }
.eps strong { display: block; font-size: 13.5px; font-weight: 600; }
.eps p { margin: 1px 0 0; font-size: 12.5px; color: var(--w-muted); }
.eps .dur { margin-left: auto; font-size: 12px; color: var(--w-muted); }

/* Product page */
.pdp { display: flex; gap: 16px; margin-bottom: 16px; }
.pdp-art {
  width: 108px; height: 108px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(145deg, #e9edf2, #cfd6de);
}
.pdp-main h3 { margin-bottom: 5px; }
.stars { margin: 0 0 7px; color: var(--w-brand); font-size: 13px; }
.stars span { color: var(--w-muted); }
.price { margin: 0 0 5px; font-size: 15px; }
.price strong { font-size: 21px; font-weight: 680; }
.price s { color: var(--w-muted); margin-left: 6px; font-size: 13px; }
.save { color: var(--w-brand); font-weight: 600; font-size: 13px; margin-left: 4px; }
.deliv { margin: 0; font-size: 12.5px; color: var(--w-muted); }

/* Tickets */
.radio.tier { display: flex; margin: 0 0 9px; padding: 11px 14px; border: 1px solid var(--w-line); border-radius: 14px; }
.radio.tier:has(input:checked) { border-color: var(--w-brand); background: var(--w-soft); }
.total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 0 15px; margin-top: 4px; border-top: 1px solid var(--w-line);
  font-size: 13px; color: var(--w-muted);
}
.total strong { font-size: 19px; color: var(--w-fg); font-weight: 680; }

/* Inbox */
.msgs { list-style: none; margin: 0 0 14px; padding: 0; }
.msgs li {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 11px 12px; border-radius: 12px; background: var(--w-bg);
  border: 1px solid transparent; margin-bottom: 5px;
}
.msgs li.unread { background: #fff; border-color: var(--w-line); }
.msgs input { margin: 2px 0 0; accent-color: var(--w-brand); }
.msgs .from { margin: 0; font-size: 12.5px; color: var(--w-muted); }
.msgs li.unread .from { color: var(--w-fg); font-weight: 650; }
.msgs .subj { margin: 1px 0; font-size: 13.5px; }
.msgs li.unread .subj { font-weight: 650; }
.msgs .prev { margin: 0; font-size: 12.5px; color: var(--w-muted); }
.msgs .when { margin-left: auto; font-size: 11.5px; color: var(--w-muted); white-space: nowrap; }
.tag {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--pill);
  background: var(--w-soft); color: var(--w-brand); font-size: 10.5px; font-weight: 640;
  letter-spacing: .03em; text-transform: uppercase; border: 1px solid var(--w-line);
}
.tag.alt { color: #8a5a00; background: #fff8ec; border-color: #f0e2c8; }

/* Chat */
.thread { list-style: none; margin: 0 0 16px; padding: 0; }
.thread li { display: flex; gap: 11px; padding: 9px 0; }
.av { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; }
.av.a { background: linear-gradient(140deg, #7b5ea7, #4a154b); }
.av.b { background: linear-gradient(140deg, #3f8f74, #1d5d49); }
.av.c { background: linear-gradient(140deg, #c07a3e, #8a4b1d); }
.thread .who { margin: 0 0 2px; font-size: 13px; font-weight: 650; }
.thread .who span { font-weight: 400; color: var(--w-muted); font-size: 11.5px; margin-left: 6px; }
.thread p:last-child { margin: 0; font-size: 13.5px; }
.widget textarea {
  display: block; width: 100%; margin-top: 5px; resize: vertical;
  padding: 11px 15px; border-radius: 16px;
  border: 1px solid var(--w-line); background: var(--w-bg); color: var(--w-fg);
  font: 14px var(--ui);
}
.widget textarea:focus {
  outline: none; border-color: var(--w-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--w-brand) 16%, transparent);
}


/* ------------------------------------------------- widget detail elements */

/* Monograms stand in for photography: no network requests, no stock-image
   look, and they survive a copy as plain initials. */
.ava {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 680; color: #fff; flex: 0 0 auto;
  background: linear-gradient(140deg, #6b7280, #374151);
}
.ava.lg { width: 42px; height: 42px; font-size: 14px; }
.ava.sm { width: 22px; height: 22px; font-size: 9.5px; margin-right: 8px; vertical-align: -6px; }
.ava.c1 { background: linear-gradient(140deg, #4f86d6, #1f4f93); }
.ava.c2 { background: linear-gradient(140deg, #d16a8a, #8e2b4d); }
.ava.c3 { background: linear-gradient(140deg, #5aa37a, #216b4a); }
.ava.c4 { background: linear-gradient(140deg, #c89a52, #8a5f1d); }

.acct-card {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  padding: 13px 14px; border: 1px solid var(--w-line); border-radius: 14px;
  background: var(--w-soft);
}
.acct-id { min-width: 0; flex: 1; }
.acct-name { margin: 0; font-weight: 650; font-size: 14px; }
.acct-line { margin: 2px 0 0; font-size: 11.5px; color: var(--w-muted); }
.acct-fig { text-align: right; }
.acct-fig strong { display: block; font-size: 17px; font-weight: 680; font-variant-numeric: tabular-nums; }
.acct-fig span { font-size: 11px; color: var(--w-muted); }
.badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--pill);
  font-size: 10px; font-weight: 640; letter-spacing: .04em; text-transform: uppercase;
  background: var(--w-brand); color: var(--w-brand-fg);
}

.meter { margin-bottom: 16px; }
.meter-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--w-muted); margin-bottom: 6px; }
.meter-top strong { color: var(--w-fg); font-variant-numeric: tabular-nums; }
.meter-bar { height: 6px; border-radius: var(--pill); background: var(--w-line); overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: var(--pill); background: var(--w-brand); }

.fare-head { margin: 16px 0 8px; font-size: 11.5px; color: var(--w-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 620; }
.fares { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.fare {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 6px; cursor: pointer;
  border: 1px solid var(--w-line); border-radius: 12px; background: var(--w-bg); color: var(--w-fg);
  font: inherit; text-align: center;
}
.fare[aria-pressed="true"] { border-color: var(--w-brand); background: var(--w-soft); box-shadow: inset 0 0 0 1px var(--w-brand); }
.fare-day { font-size: 10.5px; color: var(--w-muted); }
.fare-amt { font-size: 15px; font-weight: 680; font-variant-numeric: tabular-nums; }
.fare-cab { font-size: 9.5px; color: var(--w-muted); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 16px; }
.kpi { padding: 11px 12px; border: 1px solid var(--w-line); border-radius: 13px; background: var(--w-soft); }
.kpi span { display: block; font-size: 10.5px; color: var(--w-muted); text-transform: uppercase; letter-spacing: .05em; }
.kpi strong { display: block; margin-top: 3px; font-size: 15px; font-weight: 680; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 10.5px; }
.kpi .up { color: #1f7a4d; } .kpi .down { color: #9a3412; }
.kpi.spark svg { width: 100%; height: 30px; margin-top: 5px; color: var(--w-brand); }

.widget td.num, .widget th.num { text-align: right; font-variant-numeric: tabular-nums; }
.widget tfoot td { border-top: 2px solid var(--w-line); font-size: 12px; color: var(--w-muted); padding-top: 10px; }
.sev { display: inline-block; padding: 2px 9px; border-radius: var(--pill); font-size: 11px; font-weight: 620; }
.sev.hi { background: #fdeaea; color: #9b1c1c; }
.sev.mid { background: #fdf3e2; color: #92500e; }
.sev.low { background: #eef6f0; color: #1f6b45; }

.pdp-gallery { flex: 0 0 auto; }
.pdp-art { position: relative; overflow: hidden; }
.pdp-art { background: #fff url("art/shoe.png") center/cover no-repeat; border: 1px solid var(--w-line); }
.pdp-art .shoe { display: none; }
.thumbs { display: flex; gap: 5px; margin-top: 7px; }
.th { width: 23px; height: 23px; border-radius: 6px; border: 1px solid var(--w-line); cursor: pointer; padding: 0; }
.th[aria-selected="true"] { border-color: var(--w-brand); box-shadow: 0 0 0 1px var(--w-brand); }
.th { background: #fff url("art/shoe.png") center/150% no-repeat; }
.th.t2 { background-position: 20% 40%; background-size: 240%; }
.th.t3 { background-position: 80% 60%; background-size: 260%; }
.th.t4 { background-position: 50% 85%; background-size: 300%; }
.stock { margin: 5px 0 0; font-size: 12.5px; color: #9a3412; font-weight: 560; }

.match { color: #46d369; font-weight: 680; }
.rating { border: 1px solid currentColor; padding: 0 5px; border-radius: 3px; font-size: 10.5px; }
.sv-desc { margin: 8px 0 0; font-size: 12.5px; color: var(--w-muted); max-width: 46ch; }
.still { width: 68px; height: 40px; border-radius: 7px; flex: 0 0 auto; }
.still { background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.still.s1 { background-image: url("art/ridge.png"); }
.still.s2 { background-image: url("art/convoy.png"); }
.still.s3 { background-image: url("art/lake.png"); }
.eps .prog { display: block; height: 3px; width: 120px; margin-top: 6px; border-radius: var(--pill); background: #3a3b44; overflow: hidden; }
.eps .prog i { display: block; height: 100%; background: var(--w-brand); }
.eps .left { font-size: 10.5px; color: var(--w-muted); }

.venue { margin-bottom: 16px; padding: 12px; border: 1px solid var(--w-line); border-radius: 13px; background: var(--w-soft); text-align: center; }
.venue .stage { display: inline-block; padding: 3px 26px; border-radius: 4px; background: #1f2937; color: #fff; font-size: 9.5px; letter-spacing: .18em; }
.venue .rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 10px 0 8px; }
.blk { height: 14px; border-radius: 4px; }
.blk.a { background: #c7d2fe; } .blk.b { background: #a7c3f0; } .blk.c { background: #d9e2ec; }
.blk.sel { box-shadow: 0 0 0 2px var(--w-brand); }
.legend { margin: 0; font-size: 10.5px; color: var(--w-muted); }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }
.sw.a { background: #c7d2fe; } .sw.b { background: #a7c3f0; } .sw.c { background: #d9e2ec; }

.costs { margin: 2px 0 0; font-size: 12.5px; }
.costs div { display: flex; justify-content: space-between; padding: 4px 0; }
.costs dt { color: var(--w-muted); } .costs dd { margin: 0; font-variant-numeric: tabular-nums; }
.costs .cr { color: #1f7a4d; }

.cnt { display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: var(--pill); background: var(--w-brand); color: #fff; font-size: 10px; font-weight: 680; }
.dot-u { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--w-brand); margin-right: 6px; vertical-align: 1px; }
.clip { font-size: 10px; opacity: .65; }
.atts { margin: 6px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.att { padding: 2px 9px; border-radius: var(--pill); border: 1px solid var(--w-line); background: #fff; font-size: 10.5px; color: var(--w-muted); }

.pres { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; margin: 0 5px; }
.pres.on { background: #2bac76; }
.thread .code {
  margin: 6px 0 0; padding: 7px 11px; border-radius: 9px;
  background: var(--w-soft); border: 1px solid var(--w-line);
  font: 11.5px var(--mono); color: var(--w-fg);
}
.rx { margin: 7px 0 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rx span { padding: 2px 9px; border-radius: var(--pill); border: 1px solid var(--w-line); background: #fff; font-size: 11px; }
.rx .thr { border: 0; background: none; color: var(--w-brand); font-weight: 640; padding-left: 0; }
.rx .last { border: 0; background: none; color: var(--w-muted); font-size: 10.5px; }

@media (max-width: 760px) {
  .kpis, .fares { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------- closing */

.closing {
  text-align: center; padding: 56px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.closing h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.02em; font-weight: 640; }
.closing p { margin: 0 0 24px; color: var(--muted); }

.site-footer {
  max-width: 1320px; margin: 0 auto; padding: 36px 24px 60px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px;
}
.site-footer p { margin: 0 0 6px; }
.site-footer .fine { font-size: 12.5px; opacity: .8; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .demo-body { grid-template-columns: minmax(0, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .toc {
    position: sticky; top: 68px; z-index: 40;
    margin: 0 -24px; padding: 10px 24px;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .toc-title { display: none; }
  .toc ol {
    grid-auto-flow: column; grid-auto-columns: max-content;
    overflow-x: auto; gap: 6px; scrollbar-width: none;
  }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a { border: 1px solid var(--line); }
  html { scroll-padding-top: 128px; }
  .demo { scroll-margin-top: 128px; }
}

@media (max-width: 620px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-icon svg { width: 96px; height: 96px; }
  .out-empty { min-height: 180px; }
  .intro { padding: 44px 20px 32px; }
  .bar { padding: 10px 16px; }
  .brand-name { display: none; }
  .widget .row.two, .filters { grid-template-columns: 1fr; }
  .out { font-size: 11.5px; max-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .widget[data-brand="telecom"]::before,
  .widget[data-brand="air"]::before { animation: none; }
}

/* ------------------------------------------------- per-brand type & rhythm */

.widget[data-brand="telecom"] {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.004em; font-size: 13.5px;
}
.widget[data-brand="air"] {
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  font-size: 13.5px; line-height: 1.5;
}
.widget[data-brand="air"] label { letter-spacing: .01em; }
.widget[data-brand="dash"] {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px; line-height: 1.45;
}
.widget[data-brand="dash"] .widget label, .widget[data-brand="dash"] label { margin-bottom: 10px; }
.widget[data-brand="shop"] {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 13px; line-height: 1.42;
}
.widget[data-brand="shop"] h3 { font-weight: 420; font-size: 18px; line-height: 1.25; letter-spacing: 0; }
.widget[data-brand="shop"] label { margin-bottom: 10px; }
.widget[data-brand="stream"] {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13.5px;
}
.widget[data-brand="stream"] h3 { font-size: 22px; font-weight: 760; letter-spacing: -.028em; }
.widget[data-brand="stream"] .brandbar { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.widget[data-brand="tix"] {
  font-family: Verdana, Geneva, "DejaVu Sans", sans-serif;
  font-size: 12.5px; line-height: 1.5;
}
.widget[data-brand="tix"] h3 { font-size: 17px; letter-spacing: -.01em; }
.widget[data-brand="mail"] {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
}
.widget[data-brand="chat"] {
  font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
  font-size: 13px; line-height: 1.46;
}
.widget[data-brand="chat"] .brandbar { letter-spacing: -.02em; font-weight: 760; }

/* Numbers are a product's most legible tell: real ones are tabular and
   aligned, placeholder ones are not. */
.widget .acct-fig strong, .widget .kpi strong, .widget .fare-amt,
.widget .price strong, .widget .total strong, .widget .costs dd,
.widget td.num, .widget .meter-top strong {
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}

/* ------------------------------------------------------ job application */

.widget[data-brand="jobs"] {
  --w-brand: #2b5bd7; --w-soft: #f4f7ff; --w-line: #dde4f2; --w-bg: #ffffff;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
}
.widget.tall { padding-bottom: 8px; }

.post { padding-bottom: 14px; border-bottom: 1px solid var(--w-line); margin-bottom: 14px; }
.post-co { margin: 0 0 2px; font-size: 12px; color: var(--w-brand); font-weight: 640; }
.post h3 { margin: 0 0 7px; font-size: 19px; font-weight: 680; letter-spacing: -.015em; }
.post-meta { margin: 0 0 9px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--w-muted); }
.post-meta span { position: relative; }
.post-tags { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.jt { padding: 2px 10px; border-radius: var(--pill); background: var(--w-soft); border: 1px solid var(--w-line); font-size: 11px; color: var(--w-brand); font-weight: 600; }

.prog-steps { display: flex; gap: 6px; margin-bottom: 16px; }
.prog-steps button {
  flex: 1; padding: 8px 6px; cursor: pointer; font: 600 11.5px var(--ui);
  border: 1px solid var(--w-line); border-radius: var(--pill);
  background: var(--w-bg); color: var(--w-muted);
}
.prog-steps button[aria-selected="true"] { background: var(--w-brand); color: #fff; border-color: transparent; }

.sect { border: 0; padding: 0; margin: 0 0 20px; }
.sect legend {
  padding: 0; margin-bottom: 10px; font-size: 11px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--w-muted);
}
.sect-note { margin: -4px 0 10px; font-size: 11.5px; color: var(--w-muted); }
.widget[data-brand="jobs"] .radio { display: flex; margin: 0 0 8px; }

.exp { padding: 12px; margin-bottom: 10px; border: 1px solid var(--w-line); border-radius: 12px; background: var(--w-soft); }
.widget[data-brand="jobs"] input[type="month"] {
  display: block; width: 100%; margin-top: 5px; padding: 10px 15px;
  border-radius: var(--pill); border: 1px solid var(--w-line);
  background: var(--w-bg); color: var(--w-fg); font: 14px var(--ui);
}
.btn.ghosty { background: transparent; border-style: dashed; color: var(--w-brand); font-weight: 600; }
.btn.sm { padding: 6px 13px; font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-c { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 13px; border: 1px solid var(--w-line); border-radius: var(--pill); font-size: 12.5px; color: var(--w-fg); cursor: pointer; }
.chip-c:has(input:checked) { border-color: var(--w-brand); background: var(--w-soft); color: var(--w-brand); font-weight: 600; }
.chip-c input { accent-color: var(--w-brand); margin: 0; }

.file { display: flex; align-items: center; gap: 11px; padding: 11px 13px; margin-bottom: 14px; border: 1px solid var(--w-line); border-radius: 12px; background: var(--w-soft); }
.file-ic { font-size: 19px; }
.file-n { margin: 0; font-size: 13px; font-weight: 620; }
.file-s { margin: 1px 0 0; font-size: 11.5px; color: var(--w-muted); }
.file .btn { margin-left: auto; }

.sticky-actions { position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 34%); }
