:root {
  --orange: #e5740b;
  --orange-600: #c9620a;
  --orange-50: #fff4ea;
  --orange-100: #ffe6cf;
  --ink: #2a2b2a;
  --ink-2: #555755;
  --ink-3: #8a8c8a;
  --line: #e9e6e1;
  --bg: #f7f5f2;
  --card: #ffffff;
  --green: #16a34a;
  --green-50: #e9f8ef;
  --blue: #2563eb;
  --blue-50: #eaf1ff;
  --amber-50: #fff8e6;
  --amber: #b7791f;
  --client: #7c3aed;
  --client-50: #f3edff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 43, 42, .06), 0 8px 24px rgba(42, 43, 42, .06);
  --shadow-lg: 0 20px 60px rgba(42, 43, 42, .18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--orange-600); }
.boot { display: grid; place-items: center; height: 100vh; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }

/* ------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.brand img { height: 30px; }
.brand small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; letter-spacing: 0; }
.topbar .spacer { flex: 1; }
.who { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 13px;
  flex: none;
}
.avatar.client { background: var(--client); }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card);
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: transform .08s, background .15s, border-color .15s, box-shadow .15s;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.btn:hover { border-color: #d6d1ca; background: #fcfbfa; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(229, 116, 11, .3); }
.btn.primary:hover { background: var(--orange-600); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(0, 0, 0, .04); }
.btn.lg { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------------------ login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art {
  background: radial-gradient(1200px 600px at -10% -20%, #ffb46b 0%, transparent 60%), radial-gradient(900px 700px at 120% 120%, #b94f00 0%, transparent 60%), var(--orange);
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.login-art h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; max-width: 520px; }
.login-art p { font-size: 18px; opacity: .9; max-width: 460px; margin: 0; }
.login-art .logo-card { background: #fff; border-radius: 16px; padding: 12px 16px; width: max-content; box-shadow: var(--shadow-lg); }
.login-art .logo-card img { height: 44px; display: block; }
.login-art .float { position: absolute; right: -40px; top: 140px; width: 360px; opacity: .95; transform: rotate(-6deg); }
.mini-card { background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-lg); margin-bottom: 14px; display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 14px; }
.mini-card .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 12px; flex: none; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-form form { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; }
.login-form p.sub { color: var(--ink-2); margin: 0 0 28px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.input {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid #ddd8d1; background: #fff;
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(229, 116, 11, .15); }
.pin-input { font-size: 30px; letter-spacing: 14px; text-align: center; font-weight: 700; padding: 12px; }
.error { color: #b42318; font-size: 14px; margin: 8px 0 0; min-height: 20px; }
.devpin { background: var(--amber-50); border: 1px dashed var(--amber); color: var(--amber); padding: 8px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }

/* ------------------------------------------------------------ dashboard */
.page { max-width: 1180px; margin: 0 auto; padding: 32px 24px 80px; }
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hello h1 { font-size: 30px; letter-spacing: -.02em; margin: 0; }
.hello p { margin: 4px 0 0; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat b { font-size: 28px; letter-spacing: -.02em; display: block; }
.stat span { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 220px; }
.search input { padding-left: 38px; }
.search::before { content: '⌕'; position: absolute; left: 13px; top: 50%; transform: translateY(-52%); color: var(--ink-3); font-size: 19px; }
.chips { display: flex; gap: 6px; }
.chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ob-list { display: grid; gap: 10px; }
.ob-row {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) 150px 130px 110px; gap: 16px; align-items: center;
  background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; border: 1px solid transparent; transition: border-color .15s, transform .15s;
}
.ob-row:hover { border-color: var(--orange-100); transform: translateY(-1px); }
.ob-row .co { font-weight: 700; font-size: 16px; }
.ob-row .muted, .muted { color: var(--ink-3); font-size: 13px; }
.bar { height: 7px; border-radius: 99px; background: #f0ece6; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #f59e0b); border-radius: inherit; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.draft { background: #f1efec; color: var(--ink-2); }
.pill.in_progress { background: var(--blue-50); color: var(--blue); }
.pill.complete { background: var(--green-50); color: var(--green); }
.pill.live { background: #e9fbe9; color: var(--green); }
.pill.amended { background: var(--amber-50); color: var(--amber); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: ping 1.8s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); } 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty .big { font-size: 44px; }

/* ------------------------------------------------------------ modal */
.modal-back { position: fixed; inset: 0; background: rgba(30, 28, 25, .45); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 60; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: 18px; padding: 26px; width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); animation: rise .2s cubic-bezier(.2, .8, .2, 1); max-height: 92vh; overflow: auto; }
.modal h2 { margin: 0 0 4px; letter-spacing: -.02em; }
.modal .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ------------------------------------------------------------ workspace */
.ws-head { background: var(--card); border-bottom: 1px solid var(--line); }
.ws-head-in { max-width: 1400px; margin: 0 auto; padding: 18px 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ws-title { flex: 1; min-width: 240px; }
.ws-title .crumb { font-size: 13px; color: var(--ink-3); text-decoration: none; font-weight: 600; }
.ws-title .crumb:hover { color: var(--orange-600); }
.ws-title h1 { margin: 2px 0 2px; font-size: 26px; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ws-title .sub { color: var(--ink-2); font-size: 14px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--orange) calc(var(--p) * 1%), #f0ece6 0); transition: --p .6s; flex: none; }
.ring::after { content: attr(data-label); width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }

.sharebar { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: #faf9f7; flex-wrap: wrap; transition: background .3s, border-color .3s, box-shadow .3s; }
.sharebar.on { background: var(--green-50); border-color: #bfe8cd; box-shadow: 0 0 0 4px rgba(22, 163, 74, .08); }
.switch { position: relative; width: 50px; height: 28px; border-radius: 99px; background: #d9d4cd; border: 0; cursor: pointer; transition: background .2s; flex: none; padding: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.switch[aria-checked='true'] { background: var(--green); }
.switch[aria-checked='true']::after { transform: translateX(22px); }
.sharebar .label b { display: block; font-size: 14px; }
.sharebar .label span { font-size: 12.5px; color: var(--ink-2); }
.linkbox { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 4px 4px 12px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.presence { display: flex; align-items: center; gap: -6px; }
.presence .avatar { border: 2px solid #fff; margin-left: -6px; }
.presence .avatar:first-child { margin-left: 0; }

.ws { max-width: 1400px; margin: 0 auto; padding: 22px 24px 120px; display: grid; grid-template-columns: 230px minmax(0, 1fr) 370px; gap: 22px; align-items: start; }
.steps { position: sticky; top: 74px; display: grid; gap: 4px; }
.step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; cursor: pointer; border: 1px solid transparent; background: transparent; text-align: left; width: 100%; color: var(--ink-2); font-weight: 600; font-size: 14px; position: relative; }
.step:hover { background: rgba(0, 0, 0, .03); }
.step.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); border-color: var(--line); }
.step .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #efebe5; font-size: 15px; flex: none; transition: background .3s; }
.step.done .ic { background: var(--green); color: #fff; font-size: 14px; }
.step .cnt { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.step .here { position: absolute; right: -6px; top: -6px; }

.section-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 26px 28px; animation: rise .25s cubic-bezier(.2, .8, .2, 1); }
.section-card > header { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.section-card > header .ic { font-size: 28px; width: 52px; height: 52px; border-radius: 14px; background: var(--orange-50); display: grid; place-items: center; }
.section-card h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.section-card .intro { color: var(--ink-2); margin: 0 0 18px; }
.section-note { background: var(--blue-50); color: #1e3a8a; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }

.q { border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; margin-bottom: 12px; position: relative; transition: border-color .2s, box-shadow .2s, background .4s; }
.q.answered { border-color: #e2dfda; }
.q[hidden] { display: none; }
.q.appear { animation: rise .3s cubic-bezier(.2, .8, .2, 1); }
.q .qhead { display: flex; gap: 10px; align-items: flex-start; }
.q .qcheck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d9d4cd; flex: none; margin-top: 1px; display: grid; place-items: center; font-size: 12px; color: #fff; transition: all .25s; }
.q.answered .qcheck { background: var(--green); border-color: var(--green); }
.q .qlabel { font-weight: 700; font-size: 16px; letter-spacing: -.01em; flex: 1; }
.q .help { color: var(--ink-2); font-size: 14px; margin: 6px 0 0 32px; }
.q .body { margin: 12px 0 0 32px; }
.q .hint { margin: 10px 0 0 32px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.q .hint.warn { background: var(--amber-50); color: #8a5a00; }
.q .hint.info { background: var(--blue-50); color: #1e3a8a; }
.q .byline { margin: 10px 0 0 32px; font-size: 12px; color: var(--ink-3); min-height: 1px; }
.q.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: var(--orange-50); box-shadow: 0 0 0 3px var(--orange-100); } 100% { background: transparent; box-shadow: none; } }
.q.flash-client { animation: flashc 1.6s ease-out; }
@keyframes flashc { 0% { background: var(--client-50); box-shadow: 0 0 0 3px #ddd0ff; } 100% { background: transparent; box-shadow: none; } }
.q.pointed { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-100); }
.q.pointed.by-client { border-color: var(--client); box-shadow: 0 0 0 3px #e4d9ff; }
.q .tag { position: absolute; top: -11px; right: 14px; background: var(--orange); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); animation: rise .2s; }
.q .tag.client { background: var(--client); }

.opts { display: grid; gap: 8px; }
.opts.yn { grid-template-columns: repeat(2, minmax(0, 160px)); }
.opt {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: left; width: 100%;
  transition: border-color .15s, background .15s, transform .08s; position: relative; overflow: hidden;
}
.opt:hover { border-color: #d6cfc6; }
.opt:active { transform: scale(.995); }
.opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfc9c1; flex: none; transition: all .15s; position: relative; z-index: 1; }
.opt.multi .radio { border-radius: 5px; }
.opt.sel { border-color: var(--orange); background: var(--orange-50); }
.opt.sel .radio { border-color: var(--orange); background: var(--orange); box-shadow: inset 0 0 0 3px #fff; }
.opt.multi.sel .radio { box-shadow: none; display: grid; place-items: center; }
.opt.multi.sel .radio::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 800; }
.opt .ol { font-weight: 600; position: relative; z-index: 1; flex: 1; }
.opt .bench { position: relative; z-index: 1; font-size: 12px; color: var(--ink-3); font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.opt .bench .mini { width: 70px; height: 6px; border-radius: 99px; background: #f0ece6; overflow: hidden; }
.opt .bench .mini i { display: block; height: 100%; background: #c9c2b8; border-radius: inherit; }
.opt .bench.top .mini i { background: var(--orange); }
.opt .popular { font-size: 11px; color: var(--orange-600); background: var(--orange-50); border: 1px solid var(--orange-100); padding: 1px 7px; border-radius: 99px; font-weight: 700; }
.q .input { max-width: 420px; }
.q textarea.input { max-width: none; min-height: 110px; resize: vertical; }

.navrow { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 10px; }

/* right column */
.side { position: sticky; top: 74px; display: grid; gap: 14px; }
.panel { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.panel h3 { margin: 0; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.panel .ph { padding: 14px 16px 0; display: flex; justify-content: space-between; align-items: center; }
.panel .pb { padding: 12px 16px 16px; }
.tabs { display: flex; gap: 2px; padding: 6px; background: #f4f1ed; margin: 12px 12px 0; border-radius: 10px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 7px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.glance { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.glance li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; animation: rise .3s; }
.glance li .gi { font-size: 16px; flex: none; width: 22px; text-align: center; }
.glance-empty { color: var(--ink-3); font-size: 14px; }
.odis-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.odis-table td { padding: 6px 4px; border-bottom: 1px solid #f1eee9; vertical-align: top; }
.odis-table td:first-child { font-family: ui-monospace, Consolas, monospace; color: var(--ink-2); font-size: 11.5px; white-space: nowrap; }
.odis-table td:nth-child(2) { font-family: ui-monospace, Consolas, monospace; font-weight: 700; white-space: nowrap; }
.odis-table td:last-child { color: var(--ink-3); }
.odis-table tr.new td { animation: flash 1.6s; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-height: 460px; overflow: auto; }
.hist li { padding: 9px 0; border-bottom: 1px solid #f1eee9; font-size: 13px; }
.hist li .when { color: var(--ink-3); font-size: 12px; }
.hist .chg { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hist .old { text-decoration: line-through; color: var(--ink-3); }
.hist .new { font-weight: 700; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; font-size: 14px; flex-wrap: wrap; }
.banner.done { background: var(--green-50); color: #14532d; border: 1px solid #bfe8cd; }
.banner.amend { background: var(--amber-50); color: #713f12; border: 1px solid #f3dca5; }
.banner .grow { flex: 1; }

/* review */
.review-group { margin-bottom: 16px; }
.review-group h4 { margin: 0 0 6px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.review-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed #ece8e2; font-size: 14px; }
.review-row span:first-child { color: var(--ink-2); }
.review-row span:last-child { font-weight: 700; text-align: right; }
.review-row.missing span:last-child { color: var(--amber); font-weight: 600; }
.signoff { margin-top: 20px; background: linear-gradient(135deg, var(--orange-50), #fff); border: 1px solid var(--orange-100); border-radius: 16px; padding: 20px; }
.signoff h3 { margin: 0 0 4px; }
.signoff .row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.signoff .row .input { flex: 1; min-width: 200px; font-size: 18px; font-family: 'Brush Script MT', 'Segoe Script', cursive; }
.celebrate { text-align: center; padding: 30px 10px 10px; }
.celebrate .big { font-size: 64px; animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.2) rotate(-20deg); opacity: 0; } }
.celebrate h2 { font-size: 28px; margin: 6px 0; }

/* client */
.client-hero { background: linear-gradient(135deg, #2a2b2a, #3d3a36); color: #fff; }
.client-hero .in { max-width: 1400px; margin: 0 auto; padding: 22px 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.client-hero h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.client-hero p { margin: 2px 0 0; opacity: .75; }
.client-hero .ring::after { background: #353330; color: #fff; }
.client-hero .ring { background: conic-gradient(var(--orange) calc(var(--p) * 1%), #4a4743 0); }
.with { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .08); padding: 8px 14px 8px 8px; border-radius: 99px; font-size: 14px; }
.follow-pill { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 40; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: center; cursor: pointer; border: 0; animation: rise .25s; }
.waiting { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 24px; text-align: center; }
.waiting .card { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 44px 36px; max-width: 520px; }
.waiting h1 { font-size: 28px; letter-spacing: -.02em; margin: 14px 0 8px; }
.waiting p { color: var(--ink-2); margin: 0; }
.orbit { width: 96px; height: 96px; margin: 0 auto; position: relative; }
.orbit img { width: 96px; position: relative; z-index: 1; }
.orbit::before, .orbit::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid var(--orange-100); animation: ripple 2.4s infinite; }
.orbit::after { animation-delay: 1.2s; }
@keyframes ripple { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; display: flex; gap: 10px; align-items: center; animation: rise .25s; max-width: 380px; }
.toast.out { animation: fadeout .3s forwards; }
@keyframes fadeout { to { opacity: 0; transform: translateY(8px); } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; width: 100vw; height: 100vh; }

@media (max-width: 1100px) { .login-art .float { display: none; } }
@media (max-width: 1180px) {
  .ws { grid-template-columns: 210px minmax(0, 1fr); }
  .steps { grid-row: 1 / span 2; }
  .side { grid-column: 2; position: static; }
}
@media (max-width: 820px) { .side { grid-column: 1; } }
@media (max-width: 820px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { padding: 32px 24px; min-height: 260px; }
  .login-art h1 { font-size: 30px; }
  .login-art .float { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ob-row { grid-template-columns: 1fr auto; }
  .ob-row > :nth-child(2), .ob-row > :nth-child(4) { display: none; }
  .ws { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 100px; }
  .steps { position: static; grid-row: auto; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .step { width: auto; flex: none; }
  .step .lbl, .step .cnt { display: none; }
  .section-card { padding: 20px 16px; }
  .q .help, .q .body, .q .hint, .q .byline { margin-left: 0; }
  .opt .bench .mini { display: none; }
  .topbar, .ws-head-in, .client-hero .in, .page { padding-left: 16px; padding-right: 16px; }
  .modal .row2 { grid-template-columns: 1fr; }
}
