/* Certaloop workspace design system. Brand identity: dark galaxy background with the AI glow, glass cards,
   purple with gold shine. Dark is the default; light is an option in Settings (html[data-theme="light"]). */
:root {
  color-scheme: dark;
  --ink: #edf5ff; --muted: #a9b9d2; --line: rgba(148,183,255,.17); --deep: #050714;
  --glass: rgba(255,255,255,.055); --glass-2: rgba(255,255,255,.09); --field: rgba(10,14,36,.7);
  --violet: #a98bff; --cyan: #70f0ed; --brand: #782bd0; --brand-2: #a14dec; --brand-deep: #4e1d96; --gold: #ffd866; --gold-2: #f4b740;
  --ok: #4fe0a6; --warn: #ffc267; --bad: #ff7a8a; --radius: 16px; --gap: 16px;
  --shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  --page: radial-gradient(60% 52% at 50% 12%, rgba(54,78,178,.22), transparent 70%),
          radial-gradient(40% 35% at 85% 85%, rgba(161,77,236,.16), transparent 70%),
          radial-gradient(30% 30% at 10% 70%, rgba(112,240,237,.07), transparent 70%), var(--deep);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, "Vazirmatn", "Noto Sans Arabic", Tahoma, sans-serif;
  color: var(--ink);
}
html[data-theme="light"] {
  color-scheme: light;
  --ink: #14122b; --muted: #5d5a78; --line: #e4e0f2; --deep: #f6f4fd;
  --glass: rgba(255,255,255,.92); --glass-2: #f3eefc; --field: #fff;
  --ok: #0f8a5f; --warn: #a35f00; --bad: #c22a3a;
  --shadow: 0 1px 2px rgba(20,18,43,.06), 0 8px 24px rgba(20,18,43,.06);
  --page: radial-gradient(60% 40% at 50% 0%, rgba(161,77,236,.10), transparent 70%), var(--deep);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--page); background-attachment: fixed; font-size: 15px; line-height: 1.5; color: var(--ink); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 72% 12%, #cfe2ff, transparent),
    radial-gradient(1.5px 1.5px at 38% 64%, #fff, transparent), radial-gradient(1px 1px at 86% 48%, #e7dcff, transparent),
    radial-gradient(1px 1px at 22% 82%, #cfe2ff, transparent), radial-gradient(1.2px 1.2px at 58% 30%, #fff, transparent),
    radial-gradient(1px 1px at 92% 86%, #fff, transparent), radial-gradient(1px 1px at 5% 42%, #e7dcff, transparent);
  background-size: 640px 640px; }
html[data-theme="light"] body::before { display: none; }
a { color: var(--violet); }
html[data-theme="light"] a { color: var(--brand-deep); }
.ws { position: relative; z-index: 1; display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.ws-side { background: rgba(8,11,30,.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-inline-end: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
html[data-theme="light"] .ws-side { background: rgba(255,255,255,.85); }
.ws-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; padding: 4px 8px; }
.ws-logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 0 18px rgba(169,139,255,.55); }
#ws-nav { display: flex; flex-direction: column; gap: 2px; }
.ws-navlink { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; }
.ws-navlink:hover { background: var(--glass); color: var(--ink); }
.ws-navlink[aria-current="page"] { background: linear-gradient(90deg, rgba(161,77,236,.28), rgba(161,77,236,.06)); color: var(--ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--gold); }
[dir="rtl"] .ws-navlink[aria-current="page"] { box-shadow: inset -3px 0 0 var(--gold); }
.ws-navlink svg { width: 18px; height: 18px; flex: none; }
.ws-count { margin-inline-start: auto; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2b1800; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 0 7px; }
.ws-side-foot { margin-top: auto; }
select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--field); color: var(--ink); font: inherit; }
.ws-main { min-width: 0; padding: 22px clamp(16px, 3vw, 36px) 90px; }
.ws-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ws-top h1 { font-size: 24px; margin: 0; letter-spacing: -.01em; }
.ws-top-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ws-muted { color: var(--muted); font-size: 13px; }
.ws-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(12, 1fr); }
.ws-card { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); grid-column: span 12; min-width: 0; }
.ws-card h2 { font-size: 16px; margin: 0 0 10px; }
.ws-card p { margin: 6px 0; }
@media (min-width: 980px) { .ws-span-8 { grid-column: span 8; } .ws-span-4 { grid-column: span 4; } .ws-span-6 { grid-column: span 6; } }
.ws-hero { background: linear-gradient(135deg, rgba(78,29,150,.85), rgba(120,43,208,.55) 55%, rgba(54,78,178,.45)); color: #fff; border-color: rgba(185,139,255,.45);
  position: relative; overflow: hidden; box-shadow: 0 0 40px rgba(161,77,236,.25), var(--shadow); }
.ws-hero::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,216,102,.32), transparent 65%); pointer-events: none; }
.ws-hero .ws-big { font-size: clamp(30px, 5vw, 46px); font-weight: 750; letter-spacing: -.02em; margin: 4px 0;
  background: linear-gradient(100deg, #ffe08a 0%, #ff9f43 45%, #ffc267 75%, #ffe08a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ws-hero .ws-muted, .ws-hero li { color: #e9defd; }
.ws-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--glass-2); color: var(--ink); padding: 9px 14px; border-radius: 10px;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.ws-btn:hover { border-color: rgba(185,139,255,.6); }
.ws-btn:disabled { opacity: .45; cursor: not-allowed; }
.ws-primary { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-color: #b98bff; background: linear-gradient(135deg, #4e1d96 0%, #782bd0 48%, #a14dec 100%);
  text-shadow: 0 1px 2px rgba(24,4,49,.5); box-shadow: 0 0 18px rgba(161,77,236,.35); }
.ws-primary:hover { background: linear-gradient(135deg, #6324b7, #a14dec); }
.ws-primary::before { content: ""; position: absolute; inset: -35% auto -35% -65%; width: 35%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,216,102,.8), transparent); animation: ws-sheen 5s ease-in-out infinite; pointer-events: none; }
@keyframes ws-sheen { 0%, 72% { left: -65%; } 100% { left: 145%; } }
@media (prefers-reduced-motion: reduce) { .ws-primary::before { animation: none; } }
.ws-step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2b1800;
  font-size: 12px; font-weight: 800; flex: none; box-shadow: 0 0 12px rgba(255,216,102,.4); }
.ws-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ws-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); }
.ws-steps li.done { opacity: .55; } .ws-steps li.done .ws-step { background: rgba(79,224,166,.2); color: var(--ok); box-shadow: none; }
.ws-steps li .ws-grow { flex: 1; min-width: 0; }
.ws-hint { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.ws-hint svg { width: 18px; height: 18px; flex: none; color: var(--gold); }
.ws-meter { height: 10px; border-radius: 999px; background: var(--glass-2); overflow: hidden; }
.ws-meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--gold)); box-shadow: 0 0 12px rgba(255,216,102,.5); }
.ws-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ws-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--glass); }
.ws-item h3 { margin: 0 0 4px; font-size: 15px; }
.ws-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.ws-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(169,139,255,.18); color: var(--violet); font-weight: 600; }
.ws-tag.critical { background: rgba(255,122,138,.16); color: var(--bad); } .ws-tag.high { background: rgba(255,194,103,.16); color: var(--warn); } .ws-tag.ok { background: rgba(79,224,166,.16); color: var(--ok); }
.ws-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ws-chip { border: 1px solid var(--line); background: var(--glass); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; cursor: pointer; }
.ws-chip[aria-pressed="true"] { background: linear-gradient(135deg, #4e1d96, #a14dec); border-color: #b98bff; color: #fff; }
.ws-amount { font-weight: 700; white-space: nowrap; color: var(--gold); }
html[data-theme="light"] .ws-amount { color: var(--brand-deep); }
details.ws-drawer { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--glass); }
details.ws-drawer summary { cursor: pointer; font-weight: 600; }
details.ws-drawer .ws-muted { display: block; font-weight: 400; }
.ws-empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.ws-empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
textarea.ws-text { width: 100%; min-height: 130px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; background: var(--field); color: var(--ink); }
.ws-progress { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.ws-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: ws-spin 1s linear infinite; }
@keyframes ws-spin { to { transform: rotate(360deg); } }
.ws-big-n strong { font-size: 28px; color: var(--gold); }
.ws-bottom { display: none; }
[dir="rtl"] .ws-hero::after { inset: -40% auto auto -10%; }
#ws-view:focus { outline: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 860px) {
  .ws { grid-template-columns: 1fr; }
  .ws-side { display: none; }
  .ws-main { padding: 16px 16px 92px; }
  .ws-bottom { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; inset: auto 0 0 0; background: rgba(8,11,30,.82); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); z-index: 10; padding: 6px 4px env(safe-area-inset-bottom); }
  html[data-theme="light"] .ws-bottom { background: rgba(255,255,255,.92); }
  .ws-bottom a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; padding: 4px 0; text-align: center; }
  .ws-bottom a[aria-current="page"] { color: var(--gold); font-weight: 700; }
  .ws-bottom svg { width: 20px; height: 20px; }
  .ws-top h1 { font-size: 20px; }
}
/* The account page's own animated galaxy (assets/galaxy-fx.js, unchanged) behind the workspace; same canvas rule as galaxy.css. */
canvas.galaxy-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
html.galaxy:not([data-theme="light"]) body { background: #04030f; }
html.galaxy:not([data-theme="light"]) body::before { display: none; }
html[data-theme="light"] canvas.galaxy-fx { display: none; }
html.galaxy .ws-side { background: rgba(6,5,22,.55); }
html.galaxy:not([data-theme="light"]) .ws-card:not(.ws-hero) { background: rgba(14,12,40,.48); }
.ws-area-h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin: 14px 0 8px; }
.ws-ready { margin: 8px 0; color: #fff; } .ws-ready strong { font-size: 22px; color: var(--gold); }

/* ---- first-run guide: numbered steps, golden lightning on the next step, captions and hover help ---- */
.ws-card { position: relative; }
.ws-card:hover, .ws-card:focus-within { z-index: 6; }
.ws-guide { border-color: rgba(185,139,255,.45); background: linear-gradient(160deg, rgba(120,43,208,.24), rgba(14,12,40,.55)) !important; }
.ws-guide-head h2 { font-size: 21px; margin: 0 0 6px; }
.ws-guide-head .ws-meter { margin-top: 12px; }
.ws-gcount { margin-top: 6px; }
.ws-gsteps { list-style: none; margin: 16px 0 12px; padding: 0; display: grid; gap: 12px; }
.ws-gsteps > li { display: grid; grid-template-columns: 44px 1fr minmax(0, 320px); gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); }
.ws-gsteps > li.later { opacity: .66; }
.ws-gsteps > li.current { border-color: #b98bff; background: rgba(120,43,208,.16); box-shadow: 0 0 0 1px rgba(185,139,255,.45), 0 0 30px rgba(161,77,236,.35); opacity: 1; }
.ws-gnum { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.ws-gsteps > li.done .ws-gnum { background: rgba(70,220,160,.16); color: #6ff0b8; border-color: rgba(70,220,160,.5); }
.ws-gsteps > li.current .ws-gnum { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1350; border-color: var(--gold); box-shadow: 0 0 18px rgba(255,200,70,.6); }
.ws-gbody strong { display: block; font-size: 15.5px; margin-bottom: 2px; }
.ws-now { display: inline-block; margin-inline-start: 8px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: rgba(255,216,102,.15); color: var(--gold); vertical-align: 2px; }
.ws-acts { align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.ws-act { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 320px; }
.ws-cap { font-size: 12px; line-height: 1.6; color: var(--muted); }
.ws-zaprow { display: flex; align-items: center; gap: 8px; }
.ws-zap { font-weight: 700; animation: ws-gold-current 2.8s ease-in-out infinite; }
.ws-zap > svg { width: 17px; height: 17px; color: var(--gold); fill: var(--gold); stroke: #ffefb0; filter: drop-shadow(0 0 6px rgba(255,200,60,.95)); }
.ws-zap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 10%, rgba(255,216,102,.7) 50%, transparent 90%); transform: translateX(-130%); pointer-events: none; animation: ws-gold-sweep 2.8s ease-in-out infinite; }
.ws-point { display: inline-grid; font-size: 24px; line-height: 1; color: var(--gold); animation: ws-poke 1.1s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255,200,60,.6)); }
.ws-point svg { width: 24px; height: 24px; transform: rotate(90deg); }
[dir="rtl"] .ws-point svg { transform: rotate(-90deg); }
@keyframes ws-poke { 0%, 100% { translate: 0 0; } 50% { translate: 5px 0; } }
[dir="rtl"] .ws-point { animation-name: ws-poke-rtl; }
@keyframes ws-poke-rtl { 0%, 100% { translate: 0 0; } 50% { translate: -5px 0; } }
@keyframes ws-gold-sweep { 0%, 8% { transform: translateX(-130%); opacity: 0; } 16% { opacity: 1; } 38% { transform: translateX(130%); opacity: 0; } 100% { transform: translateX(130%); opacity: 0; } }
@keyframes ws-gold-current { 0%, 12%, 45%, 100% { box-shadow: 0 4px 15px rgba(123,44,212,.35), inset 0 1px 0 rgba(255,255,255,.35); }
  18%, 24% { box-shadow: 0 0 0 1px rgba(255,217,109,.95), 0 0 20px rgba(255,190,48,.85), 0 0 37px rgba(255,202,64,.45); } 30% { box-shadow: 0 0 0 1px rgba(255,217,109,.7), 0 0 10px rgba(255,190,48,.6); } }
.ws-next { border-color: rgba(185,139,255,.6); box-shadow: 0 0 28px rgba(161,77,236,.3); }
/* hover/focus help window: always available, not only on the first visit */
.ws-tip { position: absolute; bottom: calc(100% + 10px); inset-inline-start: 0; width: min(320px, 82vw); z-index: 30; padding: 12px 14px; border-radius: 12px;
  background: rgba(22,14,52,.97); border: 1px solid rgba(255,216,102,.55); box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 22px rgba(161,77,236,.35); color: #eef1ff;
  font-size: 13px; line-height: 1.65; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.ws-tip p { margin: 0 0 6px; } .ws-tip p:last-child { margin: 0; } .ws-tip b { color: var(--gold); font-weight: 700; }
.ws-tip::after { content: ""; position: absolute; top: 100%; inset-inline-start: 22px; border: 7px solid transparent; border-top-color: rgba(255,216,102,.55); }
.ws-act:hover > .ws-tip, .ws-act:focus-within > .ws-tip { opacity: 1; visibility: visible; transform: none; }
html[data-theme="light"] .ws-tip { background: #fff; color: #14122b; border-color: #e0b84a; box-shadow: 0 12px 30px rgba(40,20,90,.18); }
html[data-theme="light"] .ws-tip b { color: #7a4fd0; }
@media (max-width: 760px) { .ws-gsteps > li { grid-template-columns: 38px 1fr; } .ws-gsteps > li > .ws-act, .ws-gsteps > li > .ws-tag { grid-column: 1 / -1; max-width: none; } }
@media (hover: none) { .ws-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .ws-zap, .ws-point { animation: none; } .ws-zap::after { content: none; } }.ws-gsteps > li > .ws-tag { justify-self: start; }

/* R123 logo */
.ws-logo { background: url(/assets/logo-mark.svg) center/contain no-repeat; border-radius: 0; box-shadow: none; width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(169,139,255,.55)); }
.ws-brand b { background: linear-gradient(100deg,#70f0ed,#a98bff 55%,#ff9f43); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ws-brand { direction: ltr; font-family: 'Sora', 'Segoe UI', sans-serif; }

/* R126 */
.ws-logo { width: 36px; height: 36px; }
.ws-word { height: 24px; width: auto; display: block; }

/* R127 brighter secondary text (dark theme only) */
html:not([data-theme="light"]) { --muted: #c8d3e8; }

/* ---- R132: file import + support request screens ---- */
.ws-input { width: 100%; border: 1px solid rgba(148,183,255,.26); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; background: var(--field); color: var(--ink); }
.ws-input:focus, textarea.ws-text:focus { outline: none; border-color: #b98bff; box-shadow: 0 0 0 3px rgba(169,139,255,.22); }
.ws-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ws-imp-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0 10px; }
.ws-imp-pick label.ws-btn { cursor: pointer; }
.ws-imp-fname { color: var(--ink); font-weight: 600; word-break: break-all; }
.ws-imp-field { display: grid; gap: 6px; margin: 10px 0; max-width: 520px; }
.ws-imp-field > span { font-weight: 600; font-size: 14px; }
.ws-imp-msg { margin: 10px 0 0; font-weight: 600; }
.ws-imp-msg.ok, .ws-imp-barmsg.ok { color: #7ff0bf; }
.ws-imp-msg.bad, .ws-imp-barmsg.bad { color: #ffb4a8; }
.ws-imp-summary { margin-top: 14px; }
.ws-imp-kind { font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.ws-imp-note { margin: 10px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,216,102,.45); background: rgba(255,216,102,.08); color: #ffe9a8; line-height: 1.7; }
.ws-imp-cols { display: grid; gap: 10px; margin-top: 14px; }
.ws-imp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); }
.ws-imp-row.is-flag { border-color: rgba(255,216,102,.7); background: rgba(255,216,102,.07); }
.ws-imp-row.is-req { box-shadow: inset 4px 0 0 #b98bff; }
[dir="rtl"] .ws-imp-row.is-req { box-shadow: inset -4px 0 0 #b98bff; }
.ws-imp-h { display: grid; gap: 4px; min-width: 0; }
.ws-imp-h strong { color: #fff; overflow-wrap: anywhere; }
.ws-imp-ex { color: var(--muted); font-size: 12.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ws-imp-sel { display: grid; gap: 4px; }
.ws-imp-conf { color: #7ff0bf; font-weight: 700; }
.ws-imp-bar { position: sticky; bottom: 12px; z-index: 8; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px;
  padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(185,139,255,.45); background: rgba(12,9,34,.94); backdrop-filter: blur(12px); box-shadow: 0 12px 34px rgba(0,0,0,.5); }
.ws-imp-bar[hidden] { display: none; }
.ws-imp-barmsg { flex: 1 1 220px; font-weight: 600; line-height: 1.6; }
.ws-imp-bar .ws-btn:disabled { opacity: .45; }
.ws-imp-done { border-color: rgba(80,230,170,.5) !important; background: rgba(40,160,120,.12) !important; }
.ws-imp-done h2 { color: #7ff0bf; }
@media (max-width: 760px) { .ws-imp-row { grid-template-columns: 1fr; gap: 8px; } .ws-imp-bar { bottom: 78px; } }
.ws-imp-note.ok { border-color: rgba(80,230,170,.5); background: rgba(40,160,120,.12); color: #bff5dc; }

/* R141 sign out at the top */
.ws-top-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-signout { padding: 7px 12px; font-size: 13.5px; }
.ws-signout svg { flex: none; }
.ws-lang-top { display: none; }
@media (max-width: 860px) { .ws-lang-top { display: inline-block; background: rgba(14,12,40,.75); color: #e8ecff; border: 1px solid rgba(185,139,255,.45); border-radius: 10px; padding: 6px 8px; font: inherit; } }
.ws-top-right { flex-wrap: wrap; row-gap: 6px; } #ws-updated { white-space: nowrap; }
@media (max-width: 760px) { .ws-signout { padding: 7px 10px; font-size: 13px; } }

.ws-ind { margin: 14px 0 16px; }
.ws-ind .ws-chip { padding: 9px 15px; }

.ws-toggle { gap: 10px; margin: 8px 0; } .ws-input { background: var(--glass); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; min-width: 0; max-width: 220px; }
.ws-quote { margin: 8px 0; padding: 8px 12px; border-inline-start: 3px solid #b98bff; background: rgba(185,139,255,.08); border-radius: 8px; white-space: pre-wrap; }
.ws-steps { margin: 8px 0 0; padding-inline-start: 18px; } .ws-ledger .ws-big { color: #ffd866; }
/* R170: promise line, quick start, sample findings */
.ws-promise { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; padding: 4px 4px 2px; }
.ws-promise strong { font-size: clamp(18px, 2.4vw, 24px); line-height: 1.45; }
.ws-qs-row { gap: 10px; flex-wrap: wrap; }
.ws-qs-btn { min-height: 48px; flex: 1 1 200px; justify-content: center; text-align: center; }
.ws-sample { grid-column: 1 / -1; border-style: dashed; }
.ws-sample .ws-row { justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ws-sample ul { margin: 8px 0; padding-inline-start: 20px; line-height: 1.9; }
@media (max-width: 640px) { .ws-qs-btn { flex-basis: 100%; } }
