/* Tamzyn's dashboard: "Velvet & Spotlight". Design canvas: Vocal Factory Dashboard (claude.ai). */

:root {
  --ink: #111111;
  --ink-2: #1E1E1E;
  --ink-line: #2A2A2A;
  --on-ink: #EDE8E1;
  --on-ink-muted: #B5AFA4;
  --paper: #F7F4EF;
  --paper-2: #F2EEE8;
  --card: #FFFFFF;
  --line: #E4DED6;
  --line-soft: #EFEAE3;
  --line-strong: #D2CCC2;
  --text: #111111;
  --muted: #5F5A52;
  --curtain: #8A6A10;
  --curtain-dark: #6E5409;
  --spot: #D4A72C;
  --spot-text: #8A6A10;
  --encore: #1F6F64;

  --paid-bg: #DDEFEA;  --paid-fg: #155E52;
  --sent-bg: #FBEBCB;  --sent-fg: #6B4300;
  --ready-bg: #E1E9F2; --ready-fg: #2E4A66;
  --none-bg: #ECE9E4;  --none-fg: #4A463F;
  --late-bg: #F8DDD5;  --late-fg: #9B2C1C;
  --done-bg: #EEEBE6;  --done-fg: #4A463F;

  --display: "Cormorant Garamond", Georgia, serif;
  --ui: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --slot: 22px; /* height of 15 minutes on the calendar */
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--text); font: 15px/1.5 var(--ui); }
a { color: var(--curtain); }
a:hover { color: var(--curtain-dark); }
button { font: inherit; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hatch { background-image: repeating-linear-gradient(135deg, rgba(17, 17, 17, .06) 0 8px, transparent 8px 16px); }

/* ---- Shell ---------------------------------------------------------------- */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side {
  flex: 1 1 220px; background: var(--ink); color: var(--on-ink);
  padding: 28px 20px; display: flex; flex-direction: column; gap: 28px;
}
.brand { padding: 0 4px; display: flex; align-items: center; gap: 12px; }
.brand img { flex-shrink: 0; }
.brand .name { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.05; }
.brand .sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-ink-muted); font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--on-ink-muted); font-weight: 500; text-decoration: none;
}
.nav a:hover { background: var(--ink-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--ink-2); color: #fff; font-weight: 600; }
.nav a[aria-current="page"] svg { color: var(--spot); }
.nav .count { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #3A3220; color: #F2CF5B; font-size: 12px; font-weight: 700; }
.me { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px 8px 0; border-top: 1px solid var(--ink-line); }
.me .avatar { width: 36px; height: 36px; border-radius: 18px; background: var(--curtain); color: #fff; display: grid; place-items: center; font-weight: 700; }
.me button { background: none; border: 0; padding: 0; color: var(--on-ink-muted); text-decoration: underline; cursor: pointer; font-size: 13px; }
.dev-flag { font-size: 11px; color: var(--spot); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 0 8px; }

main.view { flex: 999 1 560px; min-width: 0; padding: 28px 36px 48px; display: flex; flex-direction: column; gap: 24px; }

@media (max-width: 800px) {
  .side { padding: 16px; gap: 12px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .me { margin-top: 0; }
  main.view { padding: 20px 16px 40px; }
}

/* ---- Typography ------------------------------------------------------------- */
.page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.page-head .titles { display: flex; flex-direction: column; gap: 4px; }
.greeting { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--muted); }
h1.display { margin: 0; font-family: var(--display); font-weight: 600; font-size: 44px; line-height: 1.05; }
h2.display { margin: 0; font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; }
.kicker { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lead { margin: 0; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; white-space: nowrap;
}
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn.primary { background: var(--spot); color: var(--ink); font-weight: 700; }
.btn.primary:hover { background: #F2CF5B; }
.btn.secondary { background: var(--card); color: var(--text); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--muted); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #2A2A2A; }
.btn.gold { background: var(--spot); color: var(--ink); font-weight: 700; }
.btn.ghost { background: transparent; color: var(--curtain); }
.btn.ghost:hover { background: rgba(212, 167, 44, .06); }
.btn.on-dark { background: transparent; color: #fff; border-color: #4A463F; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card);
  display: inline-grid; place-items: center; cursor: pointer; color: var(--text); padding: 0;
}
.icon-btn.sm { width: 36px; height: 36px; border-radius: 9px; }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.segmented { display: flex; padding: 3px; border-radius: 12px; background: #ECE6DE; }
.segmented button { min-height: 38px; padding: 0 16px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--card); color: var(--text); font-weight: 700; box-shadow: 0 1px 2px rgba(17, 17, 17, .12); }

/* ---- Cards, tiles, pills ---------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.flush { padding: 0; overflow: hidden; }
.card.dark { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.card.dark h2 { color: #fff; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.grow { flex: 999 1 640px; min-width: 0; }
.aside { flex: 1 1 300px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.tile.dark { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.tile .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile.dark .label, .tile.dark .foot { color: var(--on-ink-muted); }
.tile .value { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile.dark .value { color: #fff; }
.tile .foot { font-size: 13px; font-weight: 600; }

.pill { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.paid { background: var(--paid-bg); color: var(--paid-fg); }
.pill.sent { background: var(--sent-bg); color: var(--sent-fg); }
.pill.created { background: var(--ready-bg); color: var(--ready-fg); }
.pill.none { background: var(--none-bg); color: var(--none-fg); }
.pill.late { background: var(--late-bg); color: var(--late-fg); }
.pill.test { background: var(--spot); color: var(--ink); }

.bar { height: 8px; border-radius: 4px; background: var(--done-bg); display: flex; overflow: hidden; }
.bar .done { background: var(--ink); }
.bar .booked { background: #B8B1A6; }
.bar.sm { height: 6px; width: 72px; display: inline-flex; vertical-align: middle; }

/* ---- Forms ------------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea, .price-row input {
  font: 500 15px var(--ui); color: var(--text); padding: 10px 12px; min-height: 44px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--curtain); outline-offset: 1px; }
.field .hint { font-size: 12px; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--curtain); }
.search {
  display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--muted);
}
.search input { border: 0; background: transparent; font: 500 14px var(--ui); color: var(--text); outline: none; width: 100%; min-width: 0; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--sent-bg); color: var(--sent-fg); font-size: 14px; }
.notice.bad { background: var(--late-bg); color: var(--late-fg); }

/* ---- Table ------------------------------------------------------------------ */
.table-scroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; padding: 12px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
table.t td { padding: 14px 12px; border-top: 1px solid var(--line-soft); vertical-align: top; }
table.t th:first-child, table.t td:first-child { padding-left: 20px; }
table.t th:last-child, table.t td:last-child { padding-right: 20px; text-align: right; }
table.t tr.selectable { cursor: pointer; }
table.t tr.selectable:hover td { background: #FCFAF7; }
table.t tr.selected td { background: #FBF8F0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }

/* ---- Calendar --------------------------------------------------------------- */
.cal { min-width: 860px; display: grid; position: relative; }
.cal .dayhead { padding: 12px 14px; border-bottom: 1px solid var(--line); border-left: 1px solid #E9E3DB; display: flex; flex-direction: column; }
.cal .dayhead .dn { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cal .dayhead .dd { font-size: 20px; font-weight: 700; }
.cal .dayhead.today { border-bottom: 2px solid var(--spot); background: #FBF6EA; }
.cal .dayhead.today .dn { color: var(--spot-text); }
.cal .time { font-size: 12px; color: var(--muted); text-align: right; padding-right: 10px; transform: translateY(-8px); font-variant-numeric: tabular-nums; }
.cal .daycol {
  border-left: 1px solid #E9E3DB; cursor: copy;
  background-image: repeating-linear-gradient(to bottom, #E6DFD6 0 1px, transparent 1px calc(var(--slot) * 4)),
                    repeating-linear-gradient(to bottom, #F0EBE4 0 1px, transparent 1px calc(var(--slot) * 2));
}
.cal .daycol.today { background-color: #FDFAF3; }
.cal .off { background-color: rgba(244, 240, 234, .85); pointer-events: none; }
.cal .block {
  margin: 2px 4px; border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--done-fg);
  background-color: #EFEBE5; pointer-events: none; overflow: hidden;
}
.cal .block.trial { pointer-events: auto; cursor: pointer; text-align: left; font: inherit; font-size: 12px; font-weight: 700;
  background-color: #FBF3DC; color: #8A6A10; border: 1px dashed #D4A72C; z-index: 1; }
.cal .block.trial:hover { background-color: #F7E8BD; }
.lesson {
  margin: 2px 6px; border-radius: 8px; padding: 4px 10px; display: flex; flex-direction: column; justify-content: center;
  line-height: 1.25; overflow: hidden; text-align: left; border: 1px solid transparent; cursor: pointer; font: inherit; z-index: 1;
}
.lesson .n { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson .m { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson.tall { justify-content: flex-start; padding-top: 6px; }
.lesson.scheduled { background: #fff; border-color: #D8D2C8; color: var(--text); }
.lesson.scheduled .m { color: var(--muted); }
.lesson.now { background: var(--spot); color: var(--ink); box-shadow: 0 4px 12px rgba(212, 167, 44, .35); }
.lesson.now .m { color: #3A2E05; }
.lesson.attended { background: var(--done-bg); color: var(--done-fg); }
.lesson.makeup { background: var(--sent-bg); color: var(--sent-fg); }
.lesson.extra { background: var(--paid-bg); color: var(--paid-fg); }
.lesson.late_cancel { background: var(--late-bg); color: var(--late-fg); }
.lesson.override { background: var(--ready-bg); color: var(--ready-fg); }
.lesson.cancelled { background: transparent; border: 1.5px dashed #B8B1A6; color: var(--muted); }
.lesson.holiday, .lesson.teacher_unavailable { background: #EFEBE5; color: var(--muted); text-decoration: line-through; }
.lesson:focus-visible { outline: 2px solid var(--spot); outline-offset: 1px; }
.nowline { height: 2px; background: var(--spot); position: relative; z-index: 3; pointer-events: none; align-self: start; }
.nowline::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 5px; background: var(--spot); }

.today-list { display: flex; flex-direction: column; }
.today-list .item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ink-line); }
.today-list .item:last-child { border-bottom: 0; }
.today-list .t { width: 44px; font-size: 13px; color: var(--on-ink-muted); font-variant-numeric: tabular-nums; }
.today-list .w { flex: 1; font-weight: 600; }
.today-list .s { font-size: 12px; color: var(--on-ink-muted); }
.today-list .item.live .t { color: var(--spot); font-weight: 700; }
.today-list .item.live .w { color: #fff; font-weight: 700; }
.today-list .item.live .s { padding: 3px 8px; border-radius: 999px; background: var(--spot); color: var(--ink); font-weight: 700; }
.attn { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.attn:last-child { border-bottom: 0; padding-bottom: 0; }
.attn b { font-size: 14px; }
.attn p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.attn .actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---- Students -------------------------------------------------------------- */
.plist .pitem { width: 100%; border: 0; border-top: 1px solid var(--line-soft); background: transparent; cursor: pointer; font: inherit; text-align: left; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--text); }
.plist .pitem:hover { background: #FCFAF7; }
.plist .pitem[aria-current="true"] { background: #F6EFE2; }
.plist .av { width: 36px; height: 36px; flex-shrink: 0; border-radius: 18px; background: var(--done-bg); color: var(--done-fg); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.plist .pitem[aria-current="true"] .av { background: var(--curtain); color: #fff; }
.plist .nm { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.plist .nm b { font-size: 14px; }
.plist .nm span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist .inactive { opacity: .55; }
.hero { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.hero .who { display: flex; align-items: center; gap: 16px; }
.hero .big-av { width: 56px; height: 56px; border-radius: 28px; background: var(--curtain); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.kv { display: flex; flex-direction: column; gap: 2px; }
.kv span { font-size: 12px; color: var(--muted); font-weight: 600; }
.kv b { font-weight: 600; }
.srow { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.srow .who { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.srow .prog { flex: 2 1 300px; display: flex; flex-direction: column; gap: 8px; }
.srow .nums { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.srow .nums b { color: var(--text); }
.srow .nums .left b { color: var(--curtain); }
.irow { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }

/* ---- WhatsApp preview ------------------------------------------------------- */
.bubble-wrap { background: var(--paper-2); border-radius: 14px; padding: 18px; }
.bubble { background: #fff; border-radius: 12px 12px 12px 4px; padding: 14px 16px; font-size: 14px; line-height: 1.55; white-space: pre-line; box-shadow: 0 1px 2px rgba(17, 17, 17, .08); word-break: break-word; }

/* ---- Modal + toast ---------------------------------------------------------- */
dialog#modal { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(17, 17, 17, .3); color: var(--text); }
dialog#modal.wide { width: min(760px, calc(100vw - 32px)); }
dialog#modal::backdrop { background: rgba(17, 17, 17, .45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-head h2 { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 600; }
.modal-body { padding: 16px 22px; display: flex; flex-direction: column; gap: 16px; max-height: 70vh; overflow: auto; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line-soft); }
.modal-foot .spacer { flex: 1; }
.status-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.status-actions button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.status-actions button:hover { border-color: var(--curtain); }
.status-actions button b { font-size: 14px; }
.status-actions button span { font-size: 12px; color: var(--muted); }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(17, 17, 17, .3); max-width: calc(100vw - 32px); }
#toast[data-kind="error"] { background: var(--late-fg); }
#toast[data-kind="ok"] { background: var(--encore); }

/* ---- Login ------------------------------------------------------------------ */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--ink); padding: 16px; }
.login { width: min(420px, 100%); background: var(--ink-2); color: var(--on-ink); border: 1px solid var(--ink-line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.login-logo { width: 96px; height: 96px; align-self: center; margin-bottom: -6px; }
.login > div:first-of-type { text-align: center; }
.login .name { font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.05; }
.login .tag { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--spot); }
.err { color: var(--late-fg); font-size: 14px; min-height: 1em; margin: 0; }
.login .field > span { color: var(--on-ink-muted); }
.login .field input { background: var(--ink); color: #fff; border-color: #4A463F; }
.login .err { color: #F4B4A6; }

/* ---- History (paper trail) ------------------------------------------------- */
.hist { display: flex; flex-direction: column; }
.hist-day { margin: 0; padding: 18px 20px 6px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hist-row { display: flex; align-items: baseline; gap: 14px; padding: 10px 20px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.hist-row .t { width: 44px; flex-shrink: 0; color: var(--muted); font-size: 13px; }
.hist-row .pill { width: 86px; flex-shrink: 0; text-align: center; }
.hist-row .s { flex: 1; min-width: 0; }
.hist-row .who { flex-shrink: 0; font-size: 13px; color: var(--muted); text-align: right; max-width: 160px; }
.hist-row.compact { padding: 9px 0; gap: 12px; }
.hist-row.compact .t { width: 52px; }
@media (max-width: 700px) {
  .hist-row { flex-wrap: wrap; gap: 4px 12px; }
  .hist-row .s { flex-basis: 100%; order: 3; }
  .hist-row .who { margin-left: auto; }
}

/* ---- Statement --------------------------------------------------------------- */
.stmt { width: 100%; border-collapse: collapse; font-size: 14px; }
.stmt th { text-align: left; padding: 8px 0; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.stmt td { padding: 10px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.stmt .r { text-align: right; padding-left: 12px; }
.stmt tr.void td { color: var(--muted); }
.stmt tr.void .amt { text-decoration: line-through; }
.stmt tr.pay td { color: var(--paid-fg); }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.box .toolbar { gap: 8px; }
.slip-preview { max-width: 100%; max-height: 220px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; align-self: flex-start; }
.month-row { cursor: pointer; }
.month-row:hover td { background: #FCFAF7; }

/* ---- Help ---------------------------------------------------------------------- */
.help-item { border-top: 1px solid var(--line-soft); }
.help-item summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary::after { content: "+"; color: var(--curtain); font-weight: 700; font-size: 20px; line-height: 1; }
.help-item[open] summary::after { content: "–"; }
.help-item summary:hover { color: var(--curtain); }
.help-body { padding: 0 0 16px; color: var(--text); font-size: 15px; line-height: 1.6; }
.help-body ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.help-body p { margin: 0; }
.help-tip { margin-top: 10px !important; padding: 10px 14px; border-radius: 10px; background: #FBF6EA; border-left: 3px solid var(--spot); font-size: 14px; }
