/* Invoice Generator — theme matched to TrueSimilarity */
:root {
  --bg: #f5f8fd;
  --surface: #ffffff;
  --ink: #0a1a30;
  --ink-2: #0d1e36;
  --muted: #5b6e88;
  --soft: #8595ab;
  --line: #e5ecf5;
  --line-2: #dce4ee;
  --brand: #3678ff;
  --brand-2: #356bf3;
  --brand-deep: #2450c8;
  --mint: #39d4b7;
  --teal: #12a08d;
  --success: #20b486;
  --warning: #f0a62e;
  --danger: #e95662;
  --soft-blue: #eaf1ff;
  --shadow: 0 20px 55px rgba(13, 32, 60, .08);
  --shadow-lg: 0 32px 80px rgba(9, 26, 52, .16);
  --radius: 22px;
  --radius-sm: 12px;
  --serif: "Times New Roman", Times, Georgia, serif;
  --sans: "Times New Roman", Times, Georgia, serif;
}

* { box-sizing: border-box; }
:root { color-scheme: light; }               /* keep scrollbars/UI light — removes the dark band on the right */
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(54, 120, 255, .3); outline-offset: 2px; border-radius: 6px; }

.shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 248, 253, .85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px;
  color: #fff; background: linear-gradient(140deg, #3f77f6, var(--brand-deep));
  box-shadow: 0 9px 20px rgba(54, 120, 255, .25);
}
.brand-mark svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.brand b { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 14px; font-weight: 730; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
.btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #3f77f6, var(--brand-deep)); box-shadow: 0 14px 30px rgba(41, 75, 201, .26); }
.btn-primary:hover { box-shadow: 0 20px 40px rgba(41, 75, 201, .34); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line-2); box-shadow: 0 6px 16px rgba(9, 29, 54, .05); }
.btn-ghost:hover { border-color: #bcd0f4; color: var(--brand-deep); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { background: #12253f; }
.btn-mint { color: #08322a; background: linear-gradient(135deg, #5fe0c8, var(--teal)); box-shadow: 0 14px 30px rgba(18, 160, 141, .22); }
.btn-small { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.icon-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--danger); border-color: #f3c9ce; background: #fff5f6; }

/* ---------- Layout ---------- */
.page { padding: 28px 0 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--mint)); }
.page-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; margin-top: 8px; }
.page-head h1 em { font-style: italic; color: var(--brand); }
.page-head p.sub { color: var(--muted); margin-top: 6px; font-size: 15px; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 26px; align-items: start; }
@media (max-width: 1020px) { .workspace { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.card + .card { margin-top: 20px; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 780; letter-spacing: -.01em; margin-bottom: 16px; }
.card-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(54, 120, 255, .12); }
.card-title .spacer { margin-left: auto; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 720; color: var(--muted); letter-spacing: .02em; }
.field .hint { font-size: 11px; color: var(--soft); font-weight: 600; }
.input, .select, textarea.input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 11px;
  background: #fbfcfe; font-size: 14px; font-weight: 600; transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(54, 120, 255, .12); }
textarea.input { resize: vertical; min-height: 68px; line-height: 1.5; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.input.calc { font-variant-numeric: tabular-nums; }
.input-affix { position: relative; }
.input-affix .affix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--soft); font-weight: 700; font-size: 14px; pointer-events: none; }
.input-affix .input { padding-left: 26px; }

/* ---------- Line items ---------- */
.items-head, .item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 108px 96px 108px 40px;
  gap: 10px; align-items: center;
}
.items-head { padding: 0 4px 8px; font-size: 11px; font-weight: 800; color: var(--soft); letter-spacing: .06em; text-transform: uppercase; }
.items-head span:nth-child(n+2) { text-align: right; }
.item-row { padding: 10px 4px; border-top: 1px dashed var(--line); }
.item-row .input { padding: 9px 11px; }
.item-row .num { text-align: right; }
.item-total { text-align: right; font-weight: 780; font-variant-numeric: tabular-nums; color: var(--ink); }
@media (max-width: 720px) {
  .items-head { display: none; }
  .item-row { grid-template-columns: 1fr 1fr; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 10px; }
  .item-row .desc-cell { grid-column: 1 / -1; }
  .item-row .total-cell { grid-column: 1 / -1; text-align: left; display: flex; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 8px; }
  .item-row .remove-cell { position: absolute; }
}
.add-item { margin-top: 12px; }

/* ---------- Totals summary ---------- */
.totals { margin-top: 4px; }
.totals-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.totals-row span { color: var(--muted); font-weight: 650; }
.totals-row b { font-variant-numeric: tabular-nums; font-weight: 720; }
.totals-row.discount b { color: var(--success); }
.totals-row.grand { margin-top: 6px; padding-top: 14px; border-top: 2px solid var(--line); font-size: 20px; }
.totals-row.grand span { color: var(--ink); font-weight: 800; font-family: var(--serif); }
.totals-row.grand b { color: var(--brand-deep); font-size: 24px; font-weight: 800; }
.totals-row.due b { color: var(--danger); }

.seg { display: inline-flex; padding: 3px; background: #eef2f8; border-radius: 10px; gap: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 750; color: var(--muted); cursor: pointer; }
.seg button.active { background: #fff; color: var(--brand-deep); box-shadow: 0 3px 10px rgba(9, 29, 54, .08); }

/* ---------- Invoice preview ---------- */
.preview-wrap { position: sticky; top: 90px; }
.invoice-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.invoice-sheet {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 38px 38px 30px; color: #14243a; font-size: 13px;
}
.inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 22px; border-bottom: 2px solid #eef2f8; }
.inv-biz { display: flex; gap: 13px; align-items: flex-start; }
.inv-logo { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; background: linear-gradient(140deg, #3f77f6, var(--brand-deep)); display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 24px; font-weight: 600; flex: 0 0 auto; }
.inv-logo svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2.2; }
.inv-biz-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.inv-biz-tag { color: var(--muted); font-size: 12px; margin-top: 2px; max-width: 34ch; }
.inv-biz-meta { color: var(--soft); font-size: 11px; margin-top: 6px; line-height: 1.7; }
.inv-title-block { text-align: right; }
.inv-title { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: .04em; color: var(--brand-deep); text-transform: uppercase; }
.inv-num { font-size: 13px; font-weight: 780; margin-top: 4px; font-variant-numeric: tabular-nums; }
.inv-dates { color: var(--muted); font-size: 11.5px; margin-top: 8px; line-height: 1.7; }
.inv-stamp {
  display: inline-block; margin-top: 10px; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; border: 1.5px solid;
}
.inv-stamp.paid { color: var(--success); border-color: #b6ead6; background: #eafaf3; }
.inv-stamp.unpaid { color: var(--danger); border-color: #f6cdd2; background: #fdeff0; }
.inv-stamp.partial { color: var(--warning); border-color: #f6e2b7; background: #fdf6e7; }

.inv-parties { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; }
.inv-party small { display: block; color: var(--soft); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.inv-party .name { font-size: 15px; font-weight: 780; color: var(--ink); }
.inv-party .meta { color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.65; }

table.inv-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
table.inv-table thead th {
  background: #f4f7fc; color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 10px 12px; text-align: right;
}
table.inv-table thead th:first-child { text-align: left; border-radius: 9px 0 0 9px; }
table.inv-table thead th:last-child { border-radius: 0 9px 9px 0; }
table.inv-table tbody td { padding: 11px 12px; text-align: right; border-bottom: 1px solid #eef2f8; font-variant-numeric: tabular-nums; vertical-align: top; }
table.inv-table tbody td:first-child { text-align: left; }
table.inv-table tbody td .it-name { font-weight: 700; color: var(--ink); }
table.inv-table tbody td .it-sub { color: var(--soft); font-size: 11px; margin-top: 2px; }

/* totals sit on their own row, right-aligned — payment block goes full width
   below so long bank details can never overlap the amounts */
.inv-foot { display: flex; justify-content: flex-end; margin-top: 22px; }
.inv-pay { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; background: #fafcff; }
.inv-pay h5 { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 11px; }
.inv-pay-grid { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.inv-qr { width: 104px; height: 104px; border-radius: 12px; border: 1px solid var(--line); padding: 6px; background: #fff; flex: 0 0 auto; }
.inv-qr img, .inv-qr canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.inv-bank { flex: 1; min-width: 190px; font-size: 11.5px; line-height: 1.9; color: var(--ink-2); }
.inv-bank .row { display: flex; gap: 8px; }
.inv-bank .row span { color: var(--soft); min-width: 92px; flex: 0 0 auto; font-weight: 650; }
.inv-bank .row b { font-weight: 720; font-variant-numeric: tabular-nums; word-break: break-word; }
/* UPI highlighted: blue text on a very light blue band */
.inv-upi-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 6px 12px;
  border-radius: 8px; border: 1px solid #cfe0ff; background: var(--soft-blue);
  color: var(--brand-deep); font-size: 11.5px; font-weight: 800; word-break: break-all;
}

.inv-summary { width: 270px; flex: 0 0 auto; }
.inv-sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12.5px; color: var(--muted); }
.inv-sum-row b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 720; }
.inv-sum-row.disc b { color: var(--success); }
.inv-sum-row.total { margin-top: 6px; padding-top: 12px; border-top: 2px solid #eef2f8; font-size: 16px; }
.inv-sum-row.total span { color: var(--ink); font-weight: 800; }
.inv-sum-row.total b { color: var(--brand-deep); font-size: 20px; font-weight: 800; }
.inv-notes { margin-top: 22px; padding-top: 16px; border-top: 1px solid #eef2f8; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.inv-notes strong { color: var(--ink); display: block; margin-bottom: 3px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.inv-thanks { text-align: center; margin-top: 22px; color: var(--soft); font-size: 11px; font-weight: 650; }
.inv-thanks b { color: var(--brand); }

/* ---------- Settings drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(9, 22, 42, .5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 101; height: 100%; width: min(480px, 100%);
  background: var(--bg); box-shadow: none;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.drawer-head h3 { font-size: 16px; font-weight: 800; }
.drawer-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px; }
.drawer-foot { padding: 16px 22px; border-top: 1px solid var(--line); background: var(--surface); display: flex; gap: 10px; }
.settings-group { margin-bottom: 26px; }
.settings-group > h4 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 12px; }
.settings-group > h4::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

.upload-box { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 12px; background: #fbfcfe; }
.upload-box img { width: 54px; height: 54px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: 0 0 auto; }
.upload-box .up-info { flex: 1; min-width: 0; }
.upload-box .up-info b { font-size: 13px; }
.upload-box .up-info p { font-size: 11px; color: var(--soft); }

.qr-preview { display: grid; place-items: center; width: 120px; height: 120px; margin: 8px auto 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.qr-preview img, .qr-preview canvas { max-width: 100%; max-height: 100%; }

/* Accounts editor */
.acct-card { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; background: #fbfcfe; margin-bottom: 12px; }
.acct-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.acct-name { flex: 1; font-weight: 750; }
.acct-def { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; cursor: pointer; }
.acct-def input { accent-color: var(--brand); }
.acct-qr { margin-top: 4px; }
.acct-qrmode { width: 100%; }
.acct-qrmode button { flex: 1; }

/* ---------- History ---------- */
.history-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; margin-bottom: 10px; }
.history-item .h-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--soft-blue); color: var(--brand-deep); flex: 0 0 auto; }
.history-item .h-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.history-item .h-info { flex: 1; min-width: 0; }
.history-item .h-info b { font-size: 13.5px; }
.history-item .h-info p { font-size: 11.5px; color: var(--soft); }
.history-item .h-amt { font-weight: 780; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 26px; color: var(--soft); font-size: 13px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 17px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 650; box-shadow: 0 16px 40px rgba(9, 26, 52, .3); animation: toast-in .25s ease; }
.toast svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.toast.ok svg { color: var(--mint); }
.toast.err svg { color: #ff8a94; }
.toast.warn svg { color: #ffc76b; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Print ---------- */
@media print {
  body * { visibility: hidden !important; }
  #printArea, #printArea * { visibility: visible !important; }
  #printArea { position: absolute; inset: 0; margin: 0; padding: 0; }
  .invoice-sheet { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 12mm 14mm !important; }
  @page { size: A4; margin: 0; }
}

/* ---------- Students panel (billing straight from the staff portal) ---------- */
#stuSearch { margin-bottom: 16px; }
.stu-empty { padding: 30px 8px; text-align: center; color: var(--muted); font-size: 14px; }
.stu-section { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-deep); margin: 6px 0 10px; }
.stu-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 13px; background: #fff; padding: 12px 14px; margin-bottom: 9px; }
.stu-row:hover { border-color: var(--brand); background: #fbfcff; }
.stu-main { flex: 1; min-width: 0; }
.stu-name { font-size: 14px; font-weight: 700; }
.stu-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stu-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: #eef2f8; color: var(--muted); white-space: nowrap; }
.stu-pill.due { background: #fef3c7; color: #92400e; }
.stu-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; margin-bottom: 8px;
  border: 1px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; }
.stu-item.is-billed { opacity: .55; }
.stu-item input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--brand); }
.stu-item-main { flex: 1; min-width: 0; display: block; }
.stu-item-name { display: block; font-size: 13px; font-weight: 700; }
.stu-item-sub { display: block; font-size: 11px; color: var(--muted); }
.stu-item-amt { font-size: 13px; font-weight: 700; white-space: nowrap; }
.stu-actions { margin: 16px 0 22px; }
.stu-warn { margin-top: 10px; font-size: 12px; color: #92400e; background: #fef3c7; border: 1px solid #fcd34d;
  border-radius: 10px; padding: 8px 11px; }
.stu-inv { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 10px 13px; margin-bottom: 8px;
  border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.stu-inv span:first-child { font-weight: 700; }
.stu-inv-meta { flex: 1; color: var(--muted); font-size: 12px; }

/* The sign-in link, for handing to a student by some other route */
.stu-link { border: 1px solid var(--brand); border-radius: 13px; padding: 13px 14px; margin-bottom: 16px;
  background: #f5f8ff; }
.stu-link-head { font-size: 12px; font-weight: 800; color: var(--brand-deep); margin-bottom: 9px; }
.stu-link-row { display: flex; gap: 8px; align-items: center; }
.stu-link-row input { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 12px;
  padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); }
.stu-link-note { font-size: 11px; color: var(--muted); margin-top: 8px; }
