:root {
  --blue: #3358E8;
  --blue-deep: #2443C4;
  --blue-soft: #EEF2FF;
  --blue-line: #C9D4FA;
  --ink: #1A1D29;
  --ink-2: #4A5060;
  --muted: #5B6070;
  --line: #ECEEF3;
  --line-2: #E6EAF5;
  --field: #D5D8E2;
  --chat-bg: #F5F7FD;
  --dot: #DDE3F6;
  --green: #1F7A4D;
  --green-bg: #E7F5EE;
  --amber: #8A5300;
  --amber-bg: #FFF4E0;
  --amber-line: #F5D9A8;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; font-size: 14px; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- Dashboard ---------- */
.dash-top { border-bottom: 1px solid var(--line); }
.dash { max-width: 1040px; margin: 0 auto; padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 22px; }
.stepsbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.stepsbar div { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stepsbar i { display: block; height: 3px; border-radius: 2px; background: #E6E8EF; overflow: hidden; }
.stepsbar i b { display: block; height: 3px; background: var(--blue); }
.stepsbar .done { color: var(--green); }
.stepsbar .done i b { background: #1FAA63; }
.stepsbar .now { color: var(--blue-deep); }
.stepsbar span { display: flex; align-items: center; gap: 7px; }
.stepsbar em { font-style: normal; flex-shrink: 0; }
.stepsbar .tick { width: 16px; height: 16px; font-size: 9px; }
.stepsbar .ring { width: 15px; height: 15px; }
.stepsbar .star { width: 16px; height: 16px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; }
.dhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dhead h1 { margin: 0; font-size: 26px; font-weight: 700; }
.dhead p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.dhead .btn { display: inline-flex; align-items: center; gap: 8px; }
.ttable { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.trow { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.4fr) 130px; gap: 12px; align-items: center; padding: 13px 20px; border-top: 1px solid #F0F1F5; font-size: 13px; }
.trow.th { border-top: none; background: #FAFBFD; padding: 11px 20px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.trow.pending { background: #FFFCF5; }
.trow b { font-size: 14px; font-weight: 600; }
.trow small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.trow .act { color: var(--ink-2); }
.trow > div:last-child { text-align: right; }
.btn2.sm { font-size: 13px; font-weight: 600; padding: 7px 14px; }
.lockcard { border: 1px dashed var(--blue-line); background: #F7F9FF; border-radius: 14px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lockcard.ready { border-style: solid; }
.lockcard b { font-size: 15px; }
.lockcard small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.lockcard .lock { color: var(--blue-deep); display: flex; }
.lockcard .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tcard { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tcard b { font-size: 15px; }
.tcard small { color: var(--ink-2); font-size: 13px; }
.tcard .av + .av { margin-left: -6px; border: 2px solid #fff; }
.fhero { border-radius: 22px; padding: 30px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: center; color: #fff; background: radial-gradient(circle at 75% 20%, rgba(80, 110, 255, .35), transparent 55%), linear-gradient(135deg, #12173A, #1B2560); }
.fhero .kicker { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: #C9D1F5; }
.fhero .kicker img { width: 28px; height: 28px; border-radius: 7px; background: #fff; }
.fhero h1 { margin: 14px 0 10px; font-size: 34px; line-height: 1.15; }
.fhero p { margin: 0; color: #D5DBF5; font-size: 14px; line-height: 1.6; max-width: 380px; }
.hchips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hchips span { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.fropa { background: #fff; color: var(--ink); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.fropa ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; }
.fnum { font-size: 32px; font-weight: 700; line-height: 1.1; }
.fnum small { font-size: 13px; font-weight: 500; color: var(--muted); }
.ficon { width: 34px; height: 34px; border-radius: 9px; background: #F3F5FB; display: inline-flex; align-items: center; justify-content: center; }
.fmods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fmod { border: 1px solid var(--line); border-top: 4px solid; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.fmod > b { font-size: 15px; }
.fmod p { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.dash.wide { max-width: 1240px; padding-bottom: 96px; }
.rgrid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.rside { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 16px; }
.rside .cap { margin: 0 10px 8px; font-size: 11px; color: var(--muted); }
.rteam { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: none; border-radius: 10px; background: none; text-align: left; font-size: 14px; color: var(--ink); }
.rteam:hover { background: #F7F9FF; }
.rteam[aria-current="true"] { background: var(--blue-soft); color: var(--blue-deep); font-weight: 600; }
.rteam .tick { width: 18px; height: 18px; font-size: 10px; }
.rby { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.rby .av + .av { margin-left: -6px; border: 2px solid #fff; }
.rtable { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rrow { display: grid; grid-template-columns: 26px minmax(0, 1fr) 120px 50px; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid #F0F1F5; }
.rrow:first-child { border-top: none; }
.rrow small { color: var(--muted); font-size: 12px; }
.rn { color: var(--muted); font-size: 13px; }
.rans { font-size: 14.5px; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rwho { font-size: 12.5px; color: var(--ink-2); }
.rrow .link { justify-self: end; }
.rrow.editing { display: flex; flex-direction: column; align-items: stretch; gap: 10px; background: #F7F9FF; border-left: 3px solid var(--blue); padding: 16px 20px; }
.rtop { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.composer.inline { border: none; padding: 0; background: none; }
.composer.inline .box { margin: 0; max-width: 520px; }
.tag.grey { border-color: var(--line-2); color: var(--muted); }
.rfootbar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 14px max(20px, calc((100% - 1200px) / 2)); display: flex; align-items: center; gap: 10px; z-index: 5; }
.rfootbar span { flex: 1; font-size: 13px; font-weight: 600; color: var(--amber); display: flex; align-items: center; gap: 8px; }
.rfootbar i { width: 8px; height: 8px; border-radius: 4px; background: #E08A00; }
.cap { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.rto { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font-size: 14px; cursor: pointer; }
.rto input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.rto small { display: block; color: var(--muted); font-size: 12px; }
.rsubject { display: flex; align-items: center; gap: 12px; background: var(--chat-bg); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.rsubject img { width: 32px; height: 32px; border-radius: 8px; }
.rsubject small { display: block; color: var(--muted); font-size: 11px; }
.rfoot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin: 4px -26px -24px; padding: 14px 26px; }
.rfoot small { flex: 1; color: var(--muted); font-size: 12px; }
.sheet.remind { max-width: 620px; }
.pill { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.pill.blue { color: var(--blue-deep); background: var(--blue-soft); }
.pill.green { color: var(--green); background: var(--green-bg); }
.pill.amber { color: var(--amber); background: var(--amber-bg); }
.pill.grey { color: var(--ink-2); background: #F0F1F5; }

/* ---------- Buttons & chips ---------- */
.btn { background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; padding: 11px 20px; border: none; border-radius: 22px; transition: transform .12s, box-shadow .12s; }
.btn:hover { box-shadow: 0 4px 12px rgba(51, 88, 232, .25); transform: translateY(-1px); }
.btn.square { border-radius: 10px; }
.btn2 { background: #fff; color: var(--blue-deep); font-size: 14px; font-weight: 500; padding: 10px 18px; border: 1px solid var(--blue-line); border-radius: 22px; }
.btn3 { background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; padding: 8px 14px; border: 1px solid var(--field); border-radius: 18px; }
.link { background: none; border: none; color: var(--blue-deep); font-weight: 600; font-size: 13px; padding: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; padding: 8px 13px; border-radius: 18px; border: 1px solid var(--field); background: #fff; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: transform .12s, box-shadow .12s; }
.chip:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(51, 88, 232, .15); }
.chip[aria-pressed="true"] { font-weight: 600; border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); }
.chip[aria-pressed="true"]::before { content: "✓"; }
.chip.add { border: 1px dashed var(--blue); color: var(--blue-deep); font-weight: 600; }
.chip.soft { border-style: dashed; border-color: #C9CCD8; }
.chip.solid { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600; }
.chip.ro { background: #F0F1F5; border-color: #F0F1F5; cursor: default; }
.chip.ro:hover { transform: none; box-shadow: none; }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; background: #fff; display: flex; flex-direction: column; z-index: 20; overflow-y: auto; animation: fade .3s ease; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 0 34px; height: 68px; flex-shrink: 0; }
.topbar img { height: 22px; }
.orgchip { display: inline-flex; align-items: center; gap: 8px; background: #F3F4F8; border: 1px solid var(--line); border-radius: 20px; padding: 5px 13px 5px 5px; font-size: 13px; font-weight: 600; }
.orgchip i { width: 22px; height: 22px; border-radius: 11px; background: var(--blue); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.stage { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-start; padding: 0 16px 24px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(20, 30, 70, .08), 0 2px 6px rgba(20, 30, 70, .04); overflow: hidden; width: 100%; }
.welcome { max-width: 600px; margin-top: 32px; }
.welcome .body { padding: 32px 36px 28px; display: flex; flex-direction: column; gap: 20px; }
.welcome h2 { margin: 0; font-size: 26px; line-height: 1.25; }
.welcome p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.welcome ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.welcome li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.welcome li em { width: 26px; height: 26px; border-radius: 13px; background: var(--blue-soft); color: var(--blue-deep); font-weight: 700; font-style: normal; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.welcome li small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.welcome .foot { font-size: 12px; color: var(--muted); text-align: center; background: #F9FAFC; border-top: 1px solid var(--line); padding: 12px 20px; }
.icon-btn { width: 40px; height: 40px; border: none; background: transparent; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: #F0F1F5; }

/* ---------- Chat ---------- */
.chat-modal { position: relative; max-width: 960px; height: calc(100vh - 92px); height: calc(100dvh - 92px); display: flex; flex-direction: column; }
.chat-head { padding: 14px 18px 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 12px; }
.who .ava { position: relative; width: 44px; height: 44px; }
.who .ava img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 4px 14px rgba(51, 88, 232, .25); }
.who .ava span { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 6px; background: #1FAA63; border: 2px solid #fff; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,170,99,.5); } 70% { box-shadow: 0 0 0 7px rgba(31,170,99,0); } 100% { box-shadow: 0 0 0 0 rgba(31,170,99,0); } }
.who b { font-size: 16px; display: block; }
.who small { font-size: 12px; color: var(--muted); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.progress { height: 4px; background: var(--blue-soft); }
.progress div { height: 4px; background: var(--blue); transition: width .5s ease; }
.thread { flex: 1; min-height: 0; overflow-y: auto; background-color: var(--chat-bg); background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 20px 20px; scroll-behavior: smooth; }
.thread .col { max-width: 700px; margin: 0 auto; padding: 26px 22px 24px; display: flex; flex-direction: column; gap: 14px; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.in { animation: up .35s ease-out both; }
.brow { display: flex; gap: 10px; align-items: flex-start; max-width: 620px; }
.brow > img { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(51, 88, 232, .18); }
.bubble { background: #fff; border: 1px solid var(--line-2); border-radius: 4px 18px 18px 18px; padding: 12px 15px; box-shadow: 0 2px 10px rgba(20, 30, 70, .05); display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.55; min-width: 0; }
.mine { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.mine .say { background: var(--blue); color: #fff; font-size: 14px; font-weight: 500; padding: 10px 15px; border-radius: 18px 18px 4px 18px; max-width: 440px; box-shadow: 0 4px 12px rgba(51, 88, 232, .25); }
.dots { display: flex; gap: 5px; padding: 14px 16px; }
.dots span { width: 7px; height: 7px; border-radius: 4px; background: var(--blue); animation: dot 1.2s infinite ease-in-out; }
.dots span:nth-child(2) { animation-delay: .15s; } .dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.opts { margin-left: 42px; display: flex; flex-direction: column; gap: 10px; }
.editing-note { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--amber); background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 14px; padding: 5px 12px; display: inline-flex; gap: 8px; align-items: center; }
.proglist { display: flex; flex-direction: column; gap: 8px; }
.prog { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.prog i { width: 18px; height: 18px; border-radius: 9px; border: 2px solid #D5D8E2; flex-shrink: 0; box-sizing: border-box; }
.prog.now { color: var(--ink); }
.prog.now i { border-color: var(--blue); border-top-color: transparent; animation: spin .8s linear infinite; }
.prog.done { color: var(--ink); }
.prog.done i { border: none; background: #1FAA63; }
.prog.done i::after { content: "✓"; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }
.plan { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--chat-bg); border-radius: 12px; font-size: 14px; font-weight: 500; }
.plan em { width: 24px; height: 24px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; }
.plan span { flex: 1; } .plan small { color: var(--muted); font-weight: 400; font-size: 12px; }
.card { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #fff; }
.card .top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--chat-bg); border-bottom: 1px solid var(--line-2); }
.card .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px 14px; }
.card small { display: block; font-size: 11px; color: var(--muted); }
.person-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #F0F2F8; font-size: 13px; }
.person-row:last-child { border-bottom: none; }
.av { width: 30px; height: 30px; border-radius: 15px; background: var(--blue-soft); color: var(--blue-deep); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.av.sm { width: 22px; height: 22px; font-size: 9px; }
.contact-form { background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.contact-form label { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; font-weight: 600; }
.field { font-size: 13px; padding: 9px 11px; border: 1px solid var(--field); border-radius: 10px; color: var(--ink); background: #FBFCFF; width: 100%; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats div { background: var(--chat-bg); border-radius: 12px; padding: 12px; text-align: center; }
.stats b { display: block; font-size: 22px; color: var(--blue-deep); }
.stats small { font-size: 12px; color: var(--muted); }
.check { width: 50px; height: 50px; border-radius: 25px; background: #1FAA63; display: flex; align-items: center; justify-content: center; flex-shrink: 0; animation: pop .5s ease-out both; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Composer ---------- */
.composer { border-top: 1px solid var(--line); padding: 12px 18px 14px; background: #fff; }
.composer .label { max-width: 652px; margin: 0 auto 8px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--blue-deep); }
.composer .box { max-width: 652px; margin: 0 auto; display: flex; gap: 10px; align-items: center; border-radius: 26px; padding: 5px 5px 5px 18px; background: #F0F1F5; border: 1px solid #E4E6EE; transition: all .25s; }
.composer .box.open { background: #fff; border: 2px solid var(--blue); box-shadow: 0 0 0 4px rgba(51, 88, 232, .12); padding-left: 17px; }
.composer input { flex: 1; border: none; background: transparent; font-size: 14px; outline: none; padding: 8px 0; color: var(--ink); }
.composer input:disabled { cursor: not-allowed; }
.composer .send { width: 40px; height: 40px; border-radius: 20px; border: none; background: #D5D8E2; display: flex; align-items: center; justify-content: center; }
.composer .box.open .send { background: var(--blue); }

/* ---------- Drawers & sheets ---------- */
.knows { position: absolute; top: 76px; right: 0; bottom: 0; width: 300px; background: #fff; border-left: 1px solid var(--line); box-shadow: -12px 0 30px rgba(15, 20, 45, .08); padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; animation: up .3s ease; z-index: 2; }
.fact { background: var(--chat-bg); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.fact small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }

@media (max-width: 900px) { .rgrid { grid-template-columns: 1fr; } .rside { position: static; flex-direction: row; overflow-x: auto; } .rteam { white-space: nowrap; } .rrow { grid-template-columns: 22px minmax(0, 1fr) 44px; } .rwho { display: none; } .fhero { grid-template-columns: 1fr; } .fmods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .contact-form label { grid-template-columns: 1fr; } .stepsbar { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } .trow { grid-template-columns: 1fr; gap: 6px; } .trow.th { display: none; } .trow > div:last-child { text-align: left; } }
@media (max-width: 640px) { .fmods { grid-template-columns: 1fr; } .fhero { padding: 22px; } .topbar { padding: 0 16px; height: 56px; } .stage { padding: 0 8px 8px; } .chat-modal, .member { height: calc(100dvh - 64px); } .welcome { margin-top: 8px; } .radios { grid-template-columns: 1fr; } .invite .mail, .invite .foot { padding-left: 22px; padding-right: 22px; } }
.tick { width: 20px; height: 20px; border-radius: 10px; background: #1FAA63; color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.ring { width: 18px; height: 18px; border-radius: 10px; border: 2px solid var(--blue); }
.ring.grey { border: 1px solid #C9CCD8; }
.toast { position: fixed; top: 18px; right: 22px; background: var(--ink); color: #fff; border-radius: 12px; padding: 11px 16px; font-size: 13px; box-shadow: 0 10px 30px rgba(17, 19, 33, .2); z-index: 50; animation: up .3s ease; }

/* ---------- Member interview ---------- */
.member-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.member { max-width: 900px; height: calc(100vh - 92px); height: calc(100dvh - 92px); display: flex; flex-direction: column; position: relative; }
.member.narrow { max-width: 640px; }
.member .brow > img { width: 30px; height: 30px; border-radius: 8px; }
.strip { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: #FFF8EC; border-bottom: 1px solid var(--amber-line); font-size: 12px; color: var(--amber); }
.strip i { width: 8px; height: 8px; border-radius: 4px; background: #E08A00; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--amber-line); border-radius: 12px; padding: 4px 10px; font-size: 11px; font-weight: 600; color: var(--amber); }
.tag.done { border-color: #BFE3CF; color: var(--green); }
.pick { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; width: 100%; text-align: left; font-size: 13px; color: var(--ink); }
.pick[aria-pressed="true"] { border: 2px solid var(--blue); background: var(--chat-bg); padding: 7px 9px; }
.pick small { display: block; font-size: 11px; color: var(--muted); }
.sheet-wrap { position: fixed; inset: 0; background: rgba(15, 20, 45, .35); z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .25s; }
.sheet { position: relative; width: 100%; max-width: 566px; background: #fff; border-radius: 20px; padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px rgba(15, 20, 45, .25); animation: rise .3s ease; max-height: 100%; overflow-y: auto; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .x { position: absolute; top: 18px; right: 18px; }
.radios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 13px; }
.radio:has(input:checked) { border: 2px solid var(--blue); background: var(--chat-bg); padding: 10px 11px; }
.radio input { width: 18px; height: 18px; accent-color: var(--blue); margin: 1px 0 0; }
.radio small { display: block; color: var(--muted); font-size: 12px; }
.invite { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.invite .subject { padding: 26px 28px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.invite .subject b { font-size: 19px; line-height: 1.35; }
.invite .from { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.invite .from img { width: 26px; height: 26px; border-radius: 7px; }
.invite .mail { flex: 1; padding: 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.invite .mail h1 { margin: 0; font-size: 25px; line-height: 1.3; }
.invite .mail p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.invite .steps { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.invite .steps span { display: flex; align-items: center; gap: 12px; }
.invite .steps em { width: 22px; height: 22px; border-radius: 11px; background: var(--blue-soft); color: var(--blue-deep); font-size: 11px; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; }
.invite .foot { padding: 14px 40px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pagebar { font-size: 12px; color: var(--muted); background: #FBFBFD; border-top: 1px solid var(--line); padding: 8px 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pagebar a { color: var(--blue-deep); font-weight: 600; }
