/* ICI Sales client portal: dark shell, light working cards, orange accent */
:root {
  --bg: #111722;
  --bg-2: #171e2b;
  --sidebar: #0d121b;
  --line-dark: #273041;
  --text-on-dark: #f2f4f8;
  --muted-on-dark: #9aa3b5;
  --card: #f5f6f8;
  --card-2: #ffffff;
  --line: #e1e4ea;
  --text: #1a2130;
  --muted: #6b7486;
  --orange: #f47b20;
  --orange-dark: #d9650e;
  --orange-soft: #fff1e6;
  --green: #1f9d55;
  --green-soft: #e3f6ea;
  --amber: #b7791f;
  --amber-soft: #fdf3dc;
  --red: #d64545;
  --red-soft: #fde8e8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.08);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--text-on-dark);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); min-height: 100vh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.muted { color: var(--muted); }
.sub { color: var(--muted-on-dark); margin: 2px 0 0; font-size: 13px; }
[hidden] { display: none !important; }

/* ---------- buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent;
  border-radius: 8px; padding: 8px 14px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: #eceef2; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn { background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.link-btn { background: none; border: 0; color: var(--muted-on-dark); cursor: pointer; padding: 0; text-decoration: underline; }
input, select, textarea { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }

/* ---------- login */
.login-page { display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(ellipse at top, #1d2638 0%, var(--bg) 60%); }
.login-card { width: 100%; max-width: 400px; background: var(--card-2); color: var(--text); border-radius: 16px;
  padding: 32px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.login-card h1 { margin: 22px 0 4px; font-size: 22px; }
.login-card form { display: grid; gap: 14px; margin-top: 20px; }
.login-card label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.login-card .fine { font-size: 12.5px; color: var(--muted); margin: 18px 0 0; }
.alert { background: var(--red-soft); color: #9b2c2c; border-radius: 8px; padding: 10px 12px; margin-top: 14px; font-size: 14px; }

/* ---------- shell */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand b { color: var(--orange); font-weight: 800; }
.brand-lg { font-size: 24px; color: var(--text); }
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); padding: 22px 14px; display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line-dark); }
.sidebar .brand { padding: 0 8px; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  color: var(--muted-on-dark); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.sidebar nav a::before { content: ""; width: 12px; height: 12px; border: 1.6px solid currentColor; border-radius: 3px; flex: none; }
.sidebar nav a:hover { color: var(--text-on-dark); background: #161d2a; }
.sidebar nav a.active { background: var(--orange); color: #fff; }
.sidebar-foot { margin-top: auto; display: grid; gap: 10px; padding: 0 8px; font-size: 13px; }
.who { display: flex; gap: 10px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; }
.who-name { font-weight: 700; }
.who-role { color: var(--muted-on-dark); font-size: 12px; }

.main { min-width: 0; padding: 22px 28px 40px; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.greeting h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { background: var(--bg-2); border: 1px solid var(--line-dark); color: var(--text-on-dark); border-radius: 999px; padding: 9px 16px; width: 280px; }
.search::placeholder { color: var(--muted-on-dark); }
.workspace-pick { display: flex; align-items: center; gap: 8px; color: var(--muted-on-dark); font-size: 13px; }
.workspace-pick select { background: var(--bg-2); color: var(--text-on-dark); border-color: var(--line-dark); }
.menu-btn { display: none; }
.view:focus { outline: none; }
.loading, .empty { color: var(--muted); padding: 24px; text-align: center; }

/* ---------- cards */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--card); color: var(--text); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.kpi-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; flex: none; }
.kpi-num { font-size: 26px; font-weight: 800; line-height: 1; }
.kpi-label { color: var(--muted); font-size: 13px; margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.card { background: var(--card); color: var(--text); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.card-head h2 { font-size: 16px; margin: 0; }
.card-head a, .card-head button.link { color: var(--orange-dark); font-size: 13px; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; }
.stack { display: grid; gap: 16px; }

.match { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); }
.match + .match { margin-top: 8px; }
.match-thumb { width: 44px; height: 34px; border-radius: 6px; flex: none;
  background: repeating-linear-gradient(90deg, #f7a23b 0 4px, #3a2a18 4px 8px); }
.match-body { flex: 1; min-width: 0; }
.match-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-meta { color: var(--muted); font-size: 13px; }
.fit { min-width: 52px; text-align: center; border-radius: 8px; padding: 4px 6px; font-weight: 800; font-size: 18px; line-height: 1.1; }
.fit small { display: block; font-size: 11px; font-weight: 600; }
.fit.hi { background: var(--green-soft); color: var(--green); }
.fit.mid { background: var(--amber-soft); color: var(--amber); }
.fit.lo { background: #eceef2; color: var(--muted); }

.task-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--orange); flex: none; }
.task-title { flex: 1; min-width: 0; font-size: 14px; }
.task-title .muted { font-size: 12.5px; }
.due { font-size: 12.5px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.due.late { color: var(--red); }
.due.today { color: var(--orange-dark); }
.task-row.done .task-title { text-decoration: line-through; color: var(--muted); }

.explain { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; background: var(--bg-2); color: var(--text-on-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.explain h2 { margin: 0; font-size: 18px; }
.gauge { width: 132px; }
.gauge text { fill: var(--text-on-dark); }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reasons li { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.reasons li::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; display: grid; place-items: center; flex: none; }

/* ---------- tables & filters */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: var(--card-2); color: var(--text); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 600; font-size: 13px; }
.chip.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #eef0f4; }
.stage { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #e7eaf0; color: #3c475c; }
.stage.Qualified, .stage.Estimating { background: var(--orange-soft); color: var(--orange-dark); }
.stage.Submitted, .stage.Follow-Up { background: #e6efff; color: #2f5bb7; }
.stage.Won { background: var(--green-soft); color: var(--green); }
.stage.Lost, .stage.Declined { background: #eceef2; color: var(--muted); }

/* ---------- pipeline */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--bg-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 10px; min-height: 180px; }
.col h3 { margin: 2px 4px 10px; font-size: 13px; color: var(--muted-on-dark); text-transform: uppercase; letter-spacing: .05em; display: flex; justify-content: space-between; }
.col.drop { outline: 2px dashed var(--orange); }
.deal { background: var(--card); color: var(--text); border-radius: 10px; padding: 10px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow); }
.deal-name { font-weight: 700; font-size: 14px; }
.deal-meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; display: flex; justify-content: space-between; gap: 6px; }

/* ---------- drawer (opportunity detail) */
.drawer-bg { position: fixed; inset: 0; background: rgba(5,8,14,.55); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(520px, 100vw); background: var(--card-2); color: var(--text); z-index: 41;
  padding: 22px; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.3); }
.drawer h2 { margin: 0 0 4px; font-size: 20px; }
.drawer section { margin-top: 20px; }
.drawer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { background: var(--card); border-radius: 8px; padding: 10px; }
.fact span { display: block; color: var(--muted); font-size: 12px; }
.notes { white-space: pre-wrap; background: var(--card); border-radius: 8px; padding: 10px; font-size: 13.5px; max-height: 220px; overflow-y: auto; }
.form-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.form-row > * { flex: 1; min-width: 120px; }
.form-row .btn { flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- chat */
.chat { position: fixed; right: 16px; bottom: 16px; top: 16px; width: min(400px, calc(100vw - 32px)); background: var(--card-2); color: var(--text);
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.45); z-index: 30; display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 16px; background: var(--sidebar); color: var(--text-on-dark); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--orange); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--card-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.error { align-self: stretch; background: var(--red-soft); color: #9b2c2c; }
.proposal { align-self: stretch; background: var(--card-2); border: 1px solid var(--orange); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.proposal .actions { display: flex; gap: 8px; margin-top: 8px; }
.proposal.applied { border-color: var(--green); }
.proposal.declined { border-color: var(--line); color: var(--muted); }
.proposal .status { font-weight: 700; font-size: 12.5px; margin-top: 6px; }
.chat-form { display: flex; gap: 8px; padding: 12px 12px 6px; border-top: 1px solid var(--line); align-items: stretch; }
.chat-form textarea { flex: 1; resize: none; min-width: 0; }
.attach-btn { color: var(--muted); border: 1px solid var(--line); border-radius: 10px; width: 42px; flex: none; display: grid; place-items: center; background: var(--card); }
.attach-btn:hover { color: var(--orange); border-color: var(--orange); }
.chat-photos { display: flex; gap: 8px; padding: 10px 12px 0; flex-wrap: wrap; border-top: 1px solid var(--line); }
.chat-photos .thumb { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.chat-photos .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-photos .thumb button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.65); color: #fff; font-size: 14px; line-height: 22px; padding: 0; cursor: pointer; }
.chat-privacy { font-size: 11.5px; color: var(--muted); padding: 0 12px 10px; }
.msg .photos { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.msg .photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.typing { color: var(--muted); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--sidebar); color: #fff; padding: 10px 16px;
  border-radius: 10px; z-index: 60; box-shadow: var(--shadow); font-size: 14px; }
.toast.err { background: var(--red); }

/* ---------- responsive */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .explain { grid-template-columns: 1fr; text-align: left; }
  .search { width: 200px; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; width: 240px; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .menu-btn { display: block; }
  .main { padding: 16px; }
  .greeting h1 { font-size: 21px; }
  .top-actions { margin-left: 0; width: 100%; }
  .search { flex: 1; width: auto; min-width: 0; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px; gap: 10px; }
  .kpi-icon { width: 34px; height: 34px; }
  .facts, .form-grid { grid-template-columns: 1fr; }
  .chat { right: 0; left: 0; bottom: 0; top: 0; width: 100%; border-radius: 0; }
}

/* ---------- users / onboarding */
.login-card .link-btn { color: var(--muted); font-size: 13.5px; }
.login-card .below-card { margin-top: 14px; text-align: center; }
.login-card .fine a { color: var(--orange-dark); font-weight: 600; }
.signed-as { font-size: 14px; color: var(--muted); }
.signed-as strong { color: var(--text); }

/* ---------- budget workspaces */
.small { font-size: 12.5px; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.neg { color: var(--red); }
.bkpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.bkpi { background: var(--card); color: var(--text); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border-top: 4px solid var(--orange); }
.bkpi.good { border-top-color: var(--green); }
.bkpi.warn { border-top-color: var(--red); }
.bkpi-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.bkpi-num { font-size: 28px; font-weight: 800; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.bkpi.warn .bkpi-num { color: var(--red); }
.bkpi-sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.bline { padding: 8px 0; border-bottom: 1px solid var(--line); }
.bline:last-child { border-bottom: 0; }
.bline-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.bbar { height: 8px; background: #e4e7ed; border-radius: 999px; overflow: hidden; }
.bbar-fill { height: 100%; background: var(--orange); border-radius: 999px; }
.bbar-fill.over { background: var(--red); }
.mini { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.mini .bbar { width: 80px; }
.bstatus { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--green-soft); color: var(--green); }
.bstatus.over-budget { background: var(--red-soft); color: var(--red); }
.bstatus.on-budget { background: var(--amber-soft); color: var(--amber); }
.btable td, .btable th { padding: 7px 8px; }
.btable tr.total td { font-weight: 800; border-top: 2px solid var(--line); }
.btable tr.sel td { background: var(--orange-soft); }
.btable.plan td { padding: 5px 8px; }
.amt-in { width: 110px; text-align: right; padding: 6px 8px; }
.amt-in.day { width: 64px; }
.name-in { width: 100%; min-width: 150px; padding: 6px 8px; }
.amt.income { color: var(--green); font-weight: 700; }
.amt.expense { font-weight: 700; }
tr.problem td { background: var(--red-soft); }
.problem-note { color: var(--red); font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.card.hint { background: var(--bg-2); color: var(--text-on-dark); border: 1px solid var(--line-dark); box-shadow: none; font-size: 14px; }
.card.warn-card { background: var(--red-soft); color: #9b2c2c; font-weight: 600; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.steps a { color: var(--orange-dark); font-weight: 700; }
.bchart { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 8px; }
.bchart-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.bchart-col.sel .bchart-label { color: var(--orange-dark); font-weight: 800; }
.bchart-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.bchart-bar { width: 38%; max-width: 26px; min-height: 2px; border-radius: 4px 4px 0 0; }
.bchart-bar.inc { background: var(--green); }
.bchart-bar.exp { background: var(--orange); }
.bchart-label { font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.legend .dot:first-child { margin-left: 0; }
.dot.inc { background: var(--green); }
.dot.exp { background: var(--orange); }

/* ---------- budget setup page */
.login-card.setup-card { max-width: 680px; }
.setup-steps { margin: 22px 0 0; padding-left: 22px; display: grid; gap: 22px; }
.setup-steps li::marker { color: var(--orange); font-weight: 800; }
.setup-steps h2 { font-size: 17px; margin: 0 0 6px; }
.setup-steps p { margin: 6px 0; line-height: 1.55; font-size: 14.5px; }
.setup-steps a:not(.btn) { color: var(--orange-dark); font-weight: 600; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.copy-row code { font-size: 13.5px; word-break: break-all; flex: 1; min-width: 0; }
.check-form { display: flex; gap: 8px; flex-wrap: wrap; }
.check-form input { flex: 1; min-width: 220px; }
.check-result { margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; background: var(--card); white-space: pre-line; }
.check-result.ok { background: var(--green-soft); color: #17633a; font-weight: 600; }
.check-result.bad { background: var(--red-soft); color: #9b2c2c; }

/* ---------- guided tour */
.tour { position: fixed; inset: 0; z-index: 70; }
.tour-dim { position: fixed; inset: 0; background: rgba(5,8,14,.6); }
.tour-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(5,8,14,.6); outline: 2px solid var(--orange); pointer-events: none; transition: all .2s; }
.tour-card { position: fixed; background: var(--card-2); color: var(--text); border-radius: 14px; padding: 18px 18px 14px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.tour-card h2 { margin: 2px 0 6px; font-size: 18px; }
.tour-card p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; }
.tour-count { color: var(--orange-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tour-actions { display: flex; align-items: center; gap: 8px; }
.tour-actions .link-btn { color: var(--muted); }
@media (max-width: 760px) {
  .bkpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bkpi-num { font-size: 22px; }
  .amt-in { width: 90px; }
  .bchart { gap: 4px; }
}
.status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #e7eaf0; color: #3c475c; white-space: nowrap; }
.status.active { background: var(--green-soft); color: var(--green); }
.status.waiting { background: var(--orange-soft); color: var(--orange-dark); }
.status.expired, .status.disabled { background: var(--red-soft); color: #9b2c2c; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.code-box { margin: 16px 0; padding: 16px; border-radius: 12px; background: var(--bg-2); color: #fff; display: grid; gap: 10px; }
.code-box .k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-on-dark); }
.code-box .v { font-size: 18px; font-weight: 700; word-break: break-all; }
.code-box .code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 26px; letter-spacing: .08em; color: var(--orange); }
.invite-text { width: 100%; min-height: 150px; font: inherit; font-size: 13.5px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.warn-note { background: var(--orange-soft); color: var(--orange-dark); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
