/* paiink.com/tailor — "Bento board" redesign (inspired by dense AI-workspace tools).
   Home = a bento grid of cards (each section = a card with a preview); click a
   card → it expands to a full-page focused view (back to return). Uniform
   interaction for every section. Palette-auto: light = clean off-white, dark =
   near-black product canvas. The original functional <script> is untouched — every real
   control id lives once inside the full-page views; card faces are lightweight
   mirrors driven by a presentational script. No new fonts / external origins. */

:root {
  --app-bg: var(--bg);
  --card-bg: #ffffff;
  --card-bg-input: #f0f4f1;   /* to-fill cards: a subtle green-gray working surface */
  --card-line: rgba(17,19,19,.12);
  --card-line-2: rgba(17,19,19,.07);
  --card-shadow: 0 1px 2px rgba(17,19,19,.05), 0 18px 46px -34px rgba(17,19,19,.36);
  --field-bg: rgba(255,255,255,.78);
  --e: cubic-bezier(.4,0,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --app-bg: #0d1110;
    --card-bg: #151a18;
    --card-bg-input: #111715;
    --card-line: rgba(107,198,164,.16);
    --card-line-2: rgba(107,198,164,.08);
    --card-shadow: 0 1px 2px rgba(0,0,0,.5), 0 20px 54px -30px rgba(0,0,0,.9);
    --field-bg: rgba(237,228,204,.05);
  }
}

.cp { max-width: 1280px; margin: 18px auto 40px; color: var(--fg); font-family: var(--sans); }
body { background: var(--app-bg); }     /* let the page canvas go luxe in dark */

.quota-gate {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  background: var(--card-bg-input);
  box-shadow: var(--card-shadow);
}
.quota-gate strong {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}
.quota-gate span {
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.quota-gate .btn { padding: 7px 12px; font-size: 12px; white-space: nowrap; }
@media (max-width: 720px) {
  .quota-gate { align-items: flex-start; flex-direction: column; }
}

/* ---------- top bar ---------- */
.cp-top { display: flex; align-items: center; gap: 16px; padding: 6px 4px 20px; }
.cp-top .back { display: none; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted);
  font-family: var(--sans); font-size: 14px; cursor: pointer; padding: 6px 10px 6px 0; transition: color .2s var(--e); }
.cp-top .back:hover { color: var(--fg); }
.cp.viewing .cp-top .back { display: inline-flex; }
.cp.viewing .cp-top .ttl { display: none; }   /* inside a section: only "← Studio board" */
/* inside a section, freeze the back bar at the top so it's always reachable */
.cp.viewing .cp-top {
  position: sticky; top: 0; z-index: 30;
  margin: 0 0 8px; padding: 12px 4px;
  background: var(--app-bg); border-bottom: 1px solid var(--card-line);
}
.cp-top .ttl { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.cp-top .ttl .k { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: block; font-weight: 400; margin-bottom: 2px; }
.cp-top .sp { flex: 1; }
.cp-status { display: none; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--card-line); border-radius: 999px; padding: 5px 11px; }
.cp-status .led { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blip 1.4s infinite; }
.cp[data-busy="1"] .cp-status { display: inline-flex; }
/* per-account generation quota — clean mono pill in the top bar (hidden when unlimited) */
.quota-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px;
  color: var(--muted); border: 1px solid var(--card-line); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.quota-pill[hidden] { display: none; }
.quota-pill b { color: var(--green); font-weight: 600; }
.cp.viewing .cp-top .quota-pill { display: none; }   /* keep the section back-bar uncluttered */
#t-start { font-family: var(--sans); font-size: 14px; font-weight: 600; background: var(--green); color: #fff;
  border: 0; border-radius: 11px; padding: 11px 20px; cursor: pointer; transition: filter .2s var(--e), transform .15s var(--e); }
#t-start:hover { filter: brightness(1.08); } #t-start:active { transform: scale(.97); }
#t-start[disabled] { background: var(--hairline); color: var(--muted); cursor: default; }
@keyframes blip { 0%,100% { box-shadow: 0 0 0 0 var(--green-soft); } 50% { box-shadow: 0 0 0 5px transparent; } }

/* ---------- bento board ---------- */
.cp-board { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 154px; gap: 16px; }
.card .chip:empty { display: none; }   /* no empty pill; the chip lighting green IS the indicator */
.cp.viewing .cp-board { display: none; }
.card { background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 15px; box-shadow: var(--card-shadow);
  padding: 20px 22px; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .2s var(--e), box-shadow .25s var(--e), border-color .25s var(--e); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-2px); border-color: var(--green-soft); box-shadow: 0 1px 2px rgba(20,19,15,.05), 0 24px 56px -30px rgba(20,19,15,.6); }
.card .ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card .ch h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.card .chip { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--muted);
  border: 1px solid var(--card-line); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.card .chip.on { color: var(--green); border-color: var(--green-soft); }
.card .open-hint { position: absolute; right: 16px; bottom: 14px; font-family: var(--mono); font-size: 11px; color: var(--muted); opacity: 0; transition: opacity .2s var(--e); }
.card:hover .open-hint { opacity: 1; }
/* bento spans */
.card-hero { grid-column: span 4; grid-row: span 2; }
.card-materials, .card-target { grid-column: span 2; }
.card-fact, .card-about, .card-past { grid-column: span 2; }
/* "to-fill" group (right column: Materials / Target / Resume header) gets a subtly
 * different background so it reads apart from the output-store group (Workspace /
 * Fact Bank / Past resumes, which keep --card-bg). */
.card-materials, .card-target, .card-about { background: var(--card-bg-input); }
@media (max-width: 980px) {
  .cp-board { grid-template-columns: repeat(2, 1fr); }
  .card-hero { grid-column: span 2; grid-row: span 2; }
  .card-materials, .card-target, .card-fact, .card-about, .card-past { grid-column: span 1; }
}
@media (max-width: 560px) { .cp-board { grid-template-columns: 1fr; } .card-hero, .card-materials, .card-target, .card-fact, .card-about, .card-past { grid-column: span 1; } }

/* card face summaries */
.face { flex: 1; min-height: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.face .big { color: var(--fg); font-size: 14px; }
.face .muted { color: var(--muted); }
.facechips { display: flex; flex-wrap: wrap; gap: 6px; }
.facechip { font-family: var(--mono); font-size: 11.5px; color: var(--fg); background: var(--field-bg); border: 1px solid var(--card-line); border-radius: 7px; padding: 4px 8px; }

/* hero face — state-driven (never blank) */
.card-hero .face { display: flex; flex-direction: column; }
.ws { display: none; flex: 1; min-height: 0; }
.cp[data-ws="onboard"]  .ws-onboard  { display: flex; }
.cp[data-ws="facts"]    .ws-facts    { display: flex; }
.cp[data-ws="building"] .ws-building { display: flex; }
.cp[data-ws="ready"]    .ws-ready    { display: flex; }
.ws { flex-direction: column; }
.ws-onboard { align-items: center; justify-content: center; text-align: center; gap: 14px; }
.ws-onboard .lead { font-family: var(--serif); font-size: 24px; color: var(--fg); }
.ws-onboard .sub { font-size: 13px; color: var(--muted); max-width: 360px; }
.ws-cta { font-family: var(--sans); font-size: 14px; font-weight: 600; background: var(--green); color: #fff; border: 0; border-radius: 11px; padding: 12px 22px; cursor: pointer; transition: filter .2s var(--e), transform .15s var(--e); }
.ws-cta:hover { filter: brightness(1.08); } .ws-cta:active { transform: scale(.97); }
.ws-cta.ghost { background: transparent; color: var(--fg); border: 1px solid var(--card-line); }
.ws-facts { gap: 12px; }
.ws-facts .fdoc { flex: 1; min-height: 0; overflow: hidden; background: var(--field-bg); border: 1px solid var(--card-line); border-radius: 10px; padding: 16px 18px; position: relative; mask-image: linear-gradient(180deg, #000 70%, transparent); }
.ws-facts .fdoc .cp-doc { font-size: 12.5px; }
.ws-building { gap: 14px; justify-content: center; }
.ws-ready { align-items: center; justify-content: center; gap: 14px; text-align: center; }
.ws-ready .thumb { font-size: 34px; color: var(--green); }

/* ---------- drill-in full-page views ---------- */
.cp-full { display: none; }
.cp.viewing .cp-full { display: block; }
.full { display: none; }
.full.is-open { display: block; animation: fade .25s var(--e); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.full h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 6px; }
.full .lede { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 26px; text-wrap: pretty; }
.full .panel { background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 15px; box-shadow: var(--card-shadow); padding: 26px 28px; }

/* fields / pills / buttons (shared) */
.tp-input { width: 100%; box-sizing: border-box; font-size: 14px; font-family: var(--sans); color: var(--fg);
  background: var(--field-bg); border: 1px solid var(--card-line); border-radius: 11px; padding: 11px 13px; transition: border-color .2s var(--e), box-shadow .25s var(--e); }
.tp-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
textarea.tp-input { resize: vertical; line-height: 1.6; }
.cp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cp-grid2 label { font-size: 12px; color: var(--muted); }
.fld-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 22px 0 9px; }
.fld-label:first-child { margin-top: 0; }
.cp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.t-dir { font-family: var(--sans); font-size: 13px; color: var(--fg); background: var(--field-bg); border: 1px solid var(--card-line);
  border-radius: 999px; padding: 7px 15px; cursor: pointer; transition: all .18s var(--e); }
.t-dir:hover { border-color: var(--green); } .t-dir:active { transform: scale(.95); }
.t-dir.active { background: var(--green); border-color: var(--green); color: #fff; }
.tp-btn { font-family: var(--sans); font-size: 13.5px; font-weight: 500; background: var(--fg); color: var(--app-bg);
  border: 1px solid var(--fg); border-radius: 10px; padding: 10px 18px; cursor: pointer; transition: filter .2s var(--e), transform .15s var(--e); }
.tp-btn:hover { filter: brightness(1.15); } .tp-btn:active { transform: scale(.97); }
.tp-btn[disabled] { background: var(--hairline); border-color: var(--hairline); color: var(--muted); cursor: default; }
.tp-btn.tp-ghost { background: transparent; color: var(--fg); border-color: var(--card-line); }
.tp-btn.tp-ghost:hover { border-color: var(--green); color: var(--green); filter: none; }

/* materials full */
.cp-drop { display: flex; align-items: center; gap: 14px; padding: 22px; border: 1px dashed var(--card-line); border-radius: 12px;
  background: var(--field-bg); cursor: pointer; transition: border-color .2s var(--e); }
.cp-drop:hover { border-color: var(--green); }
.cp-drop .ic { font-size: 22px; opacity: .6; }
.cp-drop .t { font-size: 14px; line-height: 1.4; } .cp-drop .t small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 5px; }
#t-files { display: none; } #t-upload { display: none; }   /* Attach auto-uploads; the button is redundant */
#t-filelist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tp-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; color: var(--fg);
  background: var(--field-bg); border: 1px solid var(--card-line); padding: 6px 10px; border-radius: 9px; }
.tp-chip small { color: var(--muted); } .tp-chip a { color: var(--muted); text-decoration: none; font-size: 15px; } .tp-chip a:hover { color: var(--green); }

/* target full — wide postings table */
.cp-mode { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--card-line); border-radius: 999px; padding: 4px 11px; }
.cp-mode .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.cp-mode[data-mode="target"], .cp-mode[data-mode="general"] { color: var(--green); border-color: var(--green-soft); }
.cp-mode[data-mode="target"] .dot, .cp-mode[data-mode="general"] .dot { background: var(--green); }
#t-direction { margin-top: 10px; } #t-prompt { margin-top: 10px; min-height: 70px; }
.jobwrap { border: 1px solid var(--card-line); border-radius: 12px; overflow: hidden; }
.jobscroll { max-height: 460px; overflow: auto; }
#t-jobtable { width: 100%; border-collapse: collapse; font-size: 13px; }
#t-jobtable th { position: sticky; top: 0; background: var(--card-bg); text-align: left; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--card-line); white-space: nowrap; }
#t-jobtable td { padding: 10px 12px; border-bottom: 1px solid var(--card-line-2); vertical-align: top; }
#t-jobtable td:nth-child(4) { min-width: 280px; line-height: 1.45; }   /* position — roomy, no truncation */
#t-jobtable tr:hover td { background: rgba(45,93,74,.06); }
#t-mine { margin-right: 7px; }
.jobbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; }
#t-jobcount { display: none; }   /* we show our own mode badge instead of the verbose "general mode" text */

/* fact bank full */
#t-factbank { width: 100%; box-sizing: border-box; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; min-height: 320px;
  resize: vertical; color: var(--fg); background: var(--field-bg); border: 1px solid var(--card-line); border-radius: 11px; padding: 13px; transition: border-color .2s var(--e); }
#t-factbank:focus { outline: none; border-color: var(--green); }
#t-fb-status { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-left: 12px; }
#t-fb-status.ok { color: var(--green); }
.cp-doc { color: var(--fg); font-family: var(--sans); font-size: 13px; line-height: 1.65; }
.cp-doc h1, .cp-doc h2, .cp-doc h3, .cp-doc h4 { font-family: var(--serif); margin: 16px 0 6px; line-height: 1.2; }
.cp-doc h1 { font-size: 19px; } .cp-doc h2 { font-size: 16px; } .cp-doc h3 { font-size: 14px; } .cp-doc h4 { font-size: 13px; color: var(--muted); }
.cp-doc h1:first-child, .cp-doc h2:first-child, .cp-doc h3:first-child { margin-top: 0; }
.cp-doc p { margin: 6px 0; } .cp-doc ul { margin: 6px 0; padding-left: 20px; } .cp-doc li { margin: 3px 0; }
.cp-doc b { font-weight: 650; }

/* workspace full (résumé / status) */
.ws-full .stages { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.ws-full .st { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--card-line); border-radius: 999px; padding: 5px 12px; display: inline-flex; align-items: center; gap: 7px; transition: all .35s var(--e); }
.ws-full .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--card-line); transition: all .35s var(--e); }
.ws-full .st.done { color: var(--fg); border-color: var(--green-soft); } .ws-full .st.done::before { background: var(--green); }
.ws-full .st.active { color: var(--green); border-color: var(--green); } .ws-full .st.active::before { background: var(--green); animation: blip 1.4s infinite; }
.cp-prog { height: 5px; border-radius: 5px; background: var(--card-line); overflow: hidden; position: relative; }
#t-bar { height: 5px; border-radius: 5px; background: var(--green); width: 4%; transition: width .8s var(--e); }
#t-bar.pulse::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: wave 1.6s ease-in-out infinite; }
@keyframes wave { 0% { transform: translateX(-120%);} 100% { transform: translateX(430%);} }
.cp-statline { display: flex; justify-content: space-between; align-items: baseline; margin-top: 9px; }
#t-state { font-family: var(--mono); font-size: 12px; color: var(--fg); } #t-elapsed { font-family: var(--mono); font-size: 11px; color: var(--muted); }
#t-phase { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
#t-log { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 14px; max-height: 200px; overflow-y: auto; border-left: 2px solid var(--green-soft); padding-left: 12px; line-height: 1.6; }
#t-log strong { color: var(--fg); font-weight: 600; }
.cp-sheet { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(20,19,15,.1), 0 30px 64px -36px rgba(20,19,15,.6); }
#t-preview { display: block; width: 100%; height: 760px; max-height: calc(100vh - 320px); border: 0; background: #fff; }
.ws-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.ws-actions .tp-btn { font-size: 14px; padding: 12px 22px; }
#t-revleft { color: var(--green); font-weight: 600; }
.cp-revise { margin-top: 18px; background: var(--field-bg); border: 1px solid var(--card-line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; }
.cp-revise .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
#t-revise { width: 100%; box-sizing: border-box; font-family: var(--sans); font-size: 13.5px; color: var(--fg); background: var(--card-bg);
  border: 1px solid var(--card-line); border-radius: 10px; padding: 10px 12px; min-height: 56px; resize: vertical; transition: border-color .2s var(--e); }
#t-revise:focus { outline: none; border-color: var(--green); }
/* workspace full state visibility */
.ws-full .when { display: none; }
.cp[data-ws="onboard"]  .ws-full .when-onboard,
.cp[data-ws="facts"]    .ws-full .when-facts,
.cp[data-ws="building"] .ws-full .when-building,
.cp[data-ws="ready"]    .ws-full .when-ready { display: block; }

/* history */
#t-history { width: 100%; border-collapse: collapse; font-size: 13px; }
#t-history td { padding: 10px 6px; border-top: 1px solid var(--card-line-2); }
#t-history td:first-child { color: var(--fg); }
#t-history a { color: var(--green); text-decoration: none; } #t-history a:hover { text-decoration: underline; }

.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.trust .row { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.trust .row svg { color: var(--green); flex: 0 0 13px; }

/* workspace command-center (compact, clamped — never crowds the board) */
.ws-onboard { align-items: center; justify-content: center; gap: 14px; text-align: center; }
.ws-onboard .lead { font-family: var(--serif); font-size: 24px; color: var(--fg); }
.ws-onboard .sub { font-size: 13px; color: var(--muted); max-width: 360px; line-height: 1.55; }
.ws-onboard #t-start { width: 100%; max-width: 320px; padding: 13px 20px; margin-top: 2px; }
#t-start.dim { opacity: .5; }
.ws-facts { gap: 10px; }
.ws-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ws-link { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-decoration: none; cursor: pointer; white-space: nowrap; }
.ws-link:hover { color: var(--green); }

/* per-card status dot: gray frosted ring → green filled */
.ch-r { display: inline-flex; align-items: center; gap: 9px; }
.cdot { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--card-line);
  background: rgba(255,255,255,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center; font-size: 11px; transition: all .25s var(--e); }
.cdot.on { background: var(--green); border-color: var(--green); }
.cdot.on::after { content: "✓"; color: #fff; }

/* ready view: Resume ⇄ Fact Bank segmented toggle (apple-switch feel) */
.rv-toggle { position: relative; display: inline-flex; padding: 3px; margin: 0 0 18px; border-radius: 999px;
  background: var(--field-bg); border: 1px solid var(--card-line); }
.rv-opt { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 7px 20px;
  border-radius: 999px; font-family: var(--sans); font-size: 13px; color: var(--muted); transition: color .25s var(--e); }
.rv-slider { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px;
  background: var(--card-bg); box-shadow: 0 1px 3px rgba(20,19,15,.18); transition: transform .26s var(--e); }
.when-ready[data-rv="facts"] .rv-slider { transform: translateX(100%); }
.when-ready[data-rv="resume"] .rv-opt[data-rv-set="resume"],
.when-ready[data-rv="facts"] .rv-opt[data-rv-set="facts"] { color: var(--fg); font-weight: 600; }
.rv-pane { display: none; }
.when-ready[data-rv="resume"] .rv-resume { display: block; }
.when-ready[data-rv="facts"] .rv-facts { display: block; }

/* ---------- hero card live status (moved out of Workspace, shown on the board) ---------- */
.hero-stages { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 0; }
.hero-stages .st { font-family: var(--mono); font-size: 10.5px; color: var(--muted); border: 1px solid var(--card-line);
  border-radius: 999px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px; transition: all .35s var(--e); }
.hero-stages .st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--card-line); transition: all .35s var(--e); }
.hero-stages .st.done { color: var(--fg); border-color: var(--green-soft); } .hero-stages .st.done::before { background: var(--green); }
.hero-stages .st.active { color: var(--green); border-color: var(--green); } .hero-stages .st.active::before { background: var(--green); animation: blip 1.4s infinite; }
.hero-prog { align-self: stretch; margin-top: 2px; }
.hero-buildrow { justify-content: center; gap: 20px; margin-top: 2px; }
.ws-link.danger { color: #c0573f; } .ws-link.danger:hover { color: #a8412c; }
.ws-link.danger[disabled] { opacity: .5; cursor: default; }

/* ---------- per-section "Save" confirm: slide-to-green pill ---------- */
.save-confirm { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-top: 22px;
  min-width: 132px; padding: 9px 22px; border-radius: 999px; background: var(--field-bg); border: 1px solid var(--card-line);
  cursor: pointer; user-select: none; overflow: hidden; transition: border-color .25s var(--e); }
.save-confirm:hover { border-color: var(--green-soft); }
.save-confirm .sc-slider { position: absolute; top: 0; left: 0; bottom: 0; width: 0; border-radius: 999px;
  background: var(--green); transition: width .42s var(--e); }
.save-confirm .sc-label { position: relative; z-index: 1; font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--fg); transition: color .42s var(--e); }
.save-confirm.go { border-color: var(--green); }
.save-confirm.go .sc-slider { width: 100%; }
.save-confirm.go .sc-label { color: #fff; }
.save-confirm:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
