:root {
  color-scheme: light;
  --canvas: #f4f8f7;
  --surface: #ffffff;
  --surface-soft: #f8fbfa;
  --ink: #18312c;
  --muted: #7a918b;
  --line: #dbe9e5;
  --green: #0ca678;
  --green-dark: #087b5f;
  --green-soft: #e6f7f0;
  --yellow: #e5a320;
  --yellow-soft: #fff6df;
  --red: #df5b5b;
  --red-soft: #fff0f0;
  --shadow: 0 18px 55px rgba(32, 89, 73, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }

.topbar { height: 78px; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(16px); }
.brand-lockup, .topbar-actions, .action-group, .column-heading, .dialog-heading, .dialog-actions { display: flex; align-items: center; }
.brand-lockup { gap: 13px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: white; background: linear-gradient(145deg, #25c796, #087a5e); font-weight: 800; box-shadow: 0 7px 18px rgba(12,166,120,.25); }
.brand-lockup h1 { font-size: 16px; line-height: 1.2; margin: 0; letter-spacing: -.02em; }
.brand-lockup p { font-size: 11px; margin: 4px 0 0; color: var(--muted); }
.topbar-actions { gap: 12px; }
.generation-progress { width: 205px; display: grid; gap: 5px; color: var(--green-dark); font-size: 11px; font-weight: 700; }
.generation-progress[hidden] { display: none; }
.progress-track { width: 100%; height: 5px; overflow: hidden; border-radius: 999px; background: var(--green-soft); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #25c796, var(--green-dark)); transition: width .25s ease; }
.sync-status { font-size: 12px; color: var(--muted); white-space: nowrap; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 0 4px var(--green-soft); }
.sync-status.busy .status-dot { background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-soft); }
.sync-status.error .status-dot { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.avatar-button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: white; background: #1d4b3d; font-weight: 700; }
.connect-button { min-width: 108px; }

.workspace { max-width: 1440px; margin: 0 auto; padding: 35px 42px 72px; }
.summary-strip { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(250px, 330px) auto; align-items: center; gap: 18px; margin-bottom: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.86); box-shadow: 0 10px 30px rgba(32,89,73,.04); }
.summary-title strong, .summary-title span { display: block; }
.summary-title strong { margin-top: 5px; font-size: 17px; letter-spacing: -.03em; }
.status-select-field { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.status-select-field select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline-color: var(--green); color: var(--ink); background: var(--surface-soft); font-size: 13px; font-weight: 700; }
.status-select-inline { min-width: 190px; flex: 0 0 190px; }
.unread-summary { min-width: 116px; padding: 9px 13px; border: 1px solid #b9e8d8; border-radius: 10px; background: linear-gradient(140deg, #f0fff9, #fff); }
.unread-summary span, .unread-summary strong { display: block; }
.unread-summary span { color: var(--muted); font-size: 10px; }
.unread-summary strong { margin-top: 3px; color: var(--green-dark); font-size: 22px; letter-spacing: -.04em; }
.hero-card { padding: 30px 34px; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(circle at 92% 12%, rgba(80, 209, 163, .20), transparent 30%), linear-gradient(120deg, #fff 0%, #f8fffc 100%); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.eyebrow, .column-kicker { color: var(--green); letter-spacing: .14em; font-size: 10px; font-weight: 800; }
.hero-card h2 { max-width: 670px; font-size: clamp(22px, 3vw, 34px); line-height: 1.15; letter-spacing: -.04em; margin: 10px 0; }
.hero-card p { margin: 0; color: var(--muted); font-size: 14px; }
.hero-badge { min-width: 154px; padding: 18px; border-radius: 17px; background: rgba(255,255,255,.72); border: 1px solid rgba(12,166,120,.16); text-align: center; }
.hero-badge-icon { display: block; color: var(--green); font-size: 29px; line-height: 1; }
.hero-badge strong, .hero-badge small { display: block; }
.hero-badge strong { margin-top: 8px; font-size: 13px; }
.hero-badge small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.control-panel { margin-top: 20px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 10px 30px rgba(32,89,73,.04); }
.control-row { display: flex; align-items: end; gap: 10px; }
.control-row + .control-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid #edf4f2; }
.control-row-main { flex-wrap: wrap; }
.search-box { height: 43px; min-width: 230px; flex: 1 1 260px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--muted); }
.search-box span { font-size: 23px; line-height: 0; transform: translateY(-2px); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.prefix-field { min-width: 175px; flex: 0 1 205px; }
.prefix-field label { display: block; color: var(--muted); font-size: 10px; margin: 0 0 5px 2px; }
.prefix-field input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--ink); outline-color: var(--green); }
.button { height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: var(--surface-soft); font-size: 12px; font-weight: 700; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border .16s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 15px rgba(32,89,73,.09); }
.button-primary { background: var(--green); color: white; box-shadow: 0 6px 14px rgba(12,166,120,.18); }
.button-primary:hover { background: var(--green-dark); }
.button-outline { color: var(--green-dark); background: #fff; border-color: #a8d7c8; }
.button-soft { color: var(--green-dark); background: var(--green-soft); }
.button-ghost { color: var(--muted); background: transparent; border-color: var(--line); }
.button-warning { color: #9b6b0d; background: var(--yellow-soft); border-color: #f1d694; }
.button-danger { color: var(--red); background: var(--red-soft); border-color: #f1cdcd; }
.control-row-actions { justify-content: space-between; align-items: center; }
.result-hint { color: var(--muted); font-size: 11px; }
.action-group { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.action-group-label { align-self: center; color: var(--muted); font-size: 10px; font-weight: 700; }
.action-group .button { height: 33px; padding: 0 11px; font-size: 11px; }
.more-actions { position: relative; }
.more-actions summary { list-style: none; cursor: pointer; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--green-dark); background: var(--surface-soft); font-size: 11px; font-weight: 700; }
.more-actions summary::-webkit-details-marker { display: none; }
.more-actions[open] summary { border-color: #a8d7c8; background: var(--green-soft); }
.more-actions .action-group { position: absolute; right: 0; top: 42px; z-index: 3; width: min(580px, 78vw); padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }

.stats-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.stat-card { min-height: 94px; padding: 14px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 9px 20px rgba(32,89,73,.035); }
.stat-card span, .stat-card small { display: block; color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin: 7px 0 3px; font-size: 26px; letter-spacing: -.05em; }
.stat-card-sale { background: linear-gradient(140deg, #f5fffb, #fff); border-color: #c5e9dc; }
.stat-card-sale strong { color: var(--green-dark); }
.stat-card-accent { background: linear-gradient(140deg, #f0fff9, #fff); border-color: #b9e8d8; }
.stat-card-accent strong { color: var(--green-dark); }

.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; align-items: start; }
.mail-list-panel { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.86); box-shadow: var(--shadow); }
.list-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #edf4f2; }
.list-heading h2 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.04em; }
.list-count { color: var(--muted); font-size: 11px; }
.mail-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 15px; }
.mail-list-grid .empty-state { grid-column: 1 / -1; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 18px; }
.pagination .button { min-width: 76px; height: 34px; padding: 0 11px; font-size: 11px; }
.pagination .button:disabled { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none; }
.pagination span { min-width: 72px; color: var(--muted); font-size: 11px; text-align: center; }
.mail-column { min-height: 405px; padding: 18px; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 16px; }
.mail-column-featured { background: linear-gradient(180deg, #fff 0%, #f7fffc 100%); border-color: #b8e5d6; box-shadow: var(--shadow); }
.column-heading { justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #edf4f2; }
.column-heading h3 { margin: 6px 0 0; font-size: 17px; letter-spacing: -.03em; }
.column-heading em { font-style: normal; color: var(--green); font-size: 13px; margin-left: 3px; }
.column-dot { display: block; width: 10px; height: 10px; border-radius: 50%; }
.dot-used { background: #77bba9; box-shadow: 0 0 0 5px #e1f2ec; }
.dot-unused { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.dot-trash { background: #d1aaa2; box-shadow: 0 0 0 5px #f7e9e6; }
.mail-list { display: grid; gap: 12px; padding-top: 15px; }
.mail-card { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; position: relative; overflow: hidden; }
.mail-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--green); opacity: .75; }
.mail-card.is-trash { background: #fffafa; border-color: #f0dede; }
.mail-card.is-trash::before { background: var(--red); }
.mail-card-header, .mail-card-meta, .mail-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mail-card-header { align-items: flex-start; }
.mail-address { min-width: 0; font-size: 12px; font-weight: 800; word-break: break-all; color: #1d5d4d; }
.copy-button { flex: 0 0 auto; border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; padding: 3px; }
.copy-button:hover { color: var(--green-dark); }
.mail-card-meta { justify-content: flex-start; margin-top: 9px; color: var(--muted); font-size: 10px; }
.tag { padding: 3px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); }
.tag-muted { background: #f3f5f5; color: #8b9995; }
.tag-trash { background: var(--red-soft); color: var(--red); }
.tag-sold { background: #fff1d3; color: #9a6a0d; }
.mail-sale-key { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9a6a0d; }
.mail-card-note { margin: 10px 0 0; color: #738985; font-size: 11px; line-height: 1.45; }
.mail-card-actions { justify-content: flex-start; margin-top: 13px; flex-wrap: wrap; }
.card-action { border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--green-dark); padding: 6px 8px; font-size: 10px; font-weight: 700; }
.card-action:hover { border-color: #8ccfbb; background: var(--green-soft); }
.card-action-danger { color: var(--red); border-color: #f1cdcd; }
.empty-state { min-height: 270px; display: grid; place-items: center; padding: 25px; text-align: center; color: #a2b4af; font-size: 12px; }
.empty-state strong { display: block; color: #72918a; font-size: 13px; margin-bottom: 6px; }

.toast { position: fixed; left: 50%; bottom: 27px; z-index: 10; transform: translate(-50%, 16px); padding: 11px 16px; border-radius: 999px; color: white; background: #193b31; box-shadow: 0 10px 30px rgba(17,57,44,.2); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.dialog-toast { top: 18px; right: 72px; bottom: auto; left: 50%; z-index: 20; width: max-content; max-width: calc(100% - 120px); transform: translate(-50%, -10px); }
.dialog-toast.show { transform: translate(-50%, 0); }

.dialog { width: min(520px, calc(100% - 30px)); padding: 25px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 30px 100px rgba(19,63,48,.22); }
.dialog::backdrop { background: rgba(25, 49, 43, .34); backdrop-filter: blur(4px); }
.dialog-heading { justify-content: space-between; align-items: flex-start; }
.dialog h2 { margin: 7px 0 0; letter-spacing: -.04em; }
.dialog-close { width: 29px; height: 29px; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--muted); font-size: 22px; line-height: 1; }
.dialog-description { margin: 15px 0 21px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { color: var(--muted); font-size: 11px; }
.form-grid input { width: 100%; height: 40px; margin-top: 6px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; outline-color: var(--green); color: var(--ink); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; margin-top: 6px; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: 12px; }
.switch-row small { color: var(--muted); margin-top: 3px; font-size: 10px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { width: 43px; height: 24px; flex: 0 0 auto; padding: 3px; border-radius: 999px; background: #cbd9d5; transition: background .2s ease; }
.switch-ui::after { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.14); transition: transform .2s ease; }
.switch-row input:checked + .switch-ui { background: var(--green); }
.switch-row input:checked + .switch-ui::after { transform: translateX(19px); }
.dialog-actions { justify-content: flex-end; gap: 8px; padding-top: 8px; border-top: 1px solid #edf4f2; }
.auth-dialog { width: min(470px, calc(100% - 30px)); }
.setup-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--muted); font-size: 11px; }
.setup-row.ready { color: var(--green-dark); background: var(--green-soft); border-color: #b9e8d8; }
.setup-row.ready #install-deps { display: none; }
.auth-label { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; }
.auth-label input { display: block; width: 100%; height: 42px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline-color: var(--green); color: var(--ink); }
.auth-label textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; outline-color: var(--green); resize: vertical; color: var(--ink); }
.auth-label select { display: block; width: 100%; height: 42px; margin-top: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; outline-color: var(--green); color: var(--ink); background: #fff; font: inherit; }
/* The rule above targets .auth-label input at full width and 42px tall, which
   would turn these radios into full-width boxes. */
#auth-delivery-choice { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
#auth-delivery-choice .auth-label { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--ink); font-size: 13px; cursor: pointer; }
#auth-delivery-choice .auth-label:first-child { margin-top: 0; }
#auth-delivery-choice input[type="radio"] { display: inline-block; width: 16px; height: 16px; margin: 0; padding: 0; border-radius: 50%; accent-color: var(--green); }
#auth-send-sms { margin-top: 10px; }
.auth-submit { width: 100%; margin-top: 18px; }
.auth-message { min-height: 18px; margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.auth-message.error { color: var(--red); }
.mailbox-dialog { width: min(650px, calc(100% - 30px)); }
.mailbox-list { display: grid; gap: 10px; max-height: 54vh; overflow: auto; }
.message-card { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.message-card-top { display: flex; justify-content: space-between; gap: 10px; }
.message-card strong { display: block; font-size: 12px; }
.message-card small { color: var(--muted); font-size: 10px; }
.message-card p { margin: 8px 0 0; color: #55746a; font-size: 11px; line-height: 1.5; }
.verification-code { display: inline-block; margin-top: 8px; padding: 4px 8px; border-radius: 6px; color: var(--green-dark); background: var(--green-soft); font-size: 15px; font-weight: 800; letter-spacing: .15em; }
.email-dialog { width: min(620px, calc(100% - 30px)); }
.detail-status-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 11px; }
.detail-tabs { display: flex; gap: 18px; margin-top: 20px; border-bottom: 1px solid var(--line); }
.detail-tab { padding: 0 0 9px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.detail-tab.active { border-bottom-color: var(--green); color: var(--green-dark); }
.forward-box { display: flex; gap: 8px; margin-top: 16px; }
.forward-box input { flex: 1; min-width: 0; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface-soft); }
.detail-meta { margin: 10px 0 4px; color: var(--muted); font-size: 11px; }
.detail-mail-state { display: grid; place-items: center; min-height: 96px; margin-top: 14px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); text-align: center; }
.detail-mail-state strong, .detail-mail-state span { display: block; }
.detail-mail-state strong { color: #72918a; font-size: 12px; }
.detail-mail-state span { margin-top: 5px; font-size: 10px; }
.detail-mail-state p { max-width: 100%; margin: 9px 18px 0; color: #55746a; font-size: 10px; line-height: 1.5; }
.detail-mail-state small { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf4f2; }
.detail-actions .button { flex: 1 1 auto; }

@media (max-width: 1100px) {
  .topbar, .workspace { padding-left: 24px; padding-right: 24px; }
  .control-row-main .button { flex: 1 1 auto; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .unread-summary { justify-self: start; }
  .mail-list-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .board-grid { grid-template-columns: 1fr; }
  .mail-column { min-height: 260px; }
  .empty-state { min-height: 150px; }
}
@media (max-width: 640px) {
  .topbar { height: 68px; padding: 0 16px; }
  .brand-lockup p, .sync-status, .topbar-actions .button-ghost, .scheduler-link { display: none; }
  .generation-progress { width: 138px; font-size: 10px; }
  .connect-button { display: inline-flex !important; min-width: 92px; padding: 0 10px; }
  .brand-lockup h1 { font-size: 14px; }
  .workspace { padding: 17px 14px 45px; }
  .summary-strip { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .unread-summary { width: 100%; }
  .hero-card { padding: 22px; display: block; }
  .hero-card h2 { font-size: 25px; }
  .hero-card p { font-size: 12px; line-height: 1.6; }
  .hero-badge { display: inline-block; min-width: 140px; margin-top: 18px; padding: 12px 14px; }
  .hero-badge-icon { display: inline; margin-right: 5px; font-size: 18px; }
  .hero-badge strong, .hero-badge small { display: inline; }
  .hero-badge small { margin-left: 5px; }
  .control-panel { padding: 12px; }
  .control-row { align-items: stretch; }
  .search-box { min-width: 100%; }
  .prefix-field { flex-basis: 100%; }
  .control-row-main .button { flex: 1 1 calc(50% - 6px); }
  .control-row-actions { display: block; }
  .status-select-inline { width: 100%; margin-top: 10px; }
  .action-group { margin-top: 10px; justify-content: flex-start; }
  .action-group .button { flex: 1 1 auto; }
  .mail-list-panel { padding: 14px; }
  .list-heading { align-items: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .stat-card { min-height: 88px; padding: 13px; }
  .stat-card strong { font-size: 24px; }
  .stat-card-accent { grid-column: span 2; }
  .board-grid { gap: 10px; }
  .mail-column { padding: 14px; }
  .form-grid { grid-template-columns: 1fr; }
}

 [hidden] { display: none !important; }

.page-lock {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f4f8f7;
}

.batch-panel {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.batch-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.batch-heading h2 { margin: 5px 0; }
.batch-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.batch-create { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.batch-create label { color: var(--muted); font-size: 13px; }
.batch-create input { min-height: 42px; width: 90px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #f8fcfb; font: inherit; }
.batch-create input[type="text"] { width: 180px; }
.batch-result { margin-top: 17px; padding: 15px; border: 1px solid #bfe6d7; border-radius: 13px; background: #f2fcf7; }
.batch-result strong { color: var(--ink); }
.batch-key-row { display: flex; align-items: center; gap: 9px; margin-top: 8px; }
.batch-key-row input { flex: 1; min-width: 0; min-height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font: 600 13px ui-monospace, monospace; }
.batch-link { display: block; margin-top: 7px; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.batch-list { display: grid; gap: 10px; margin-top: 15px; }
.batch-item { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfefd; }
.batch-item-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.batch-item-heading strong { color: var(--ink); }
.batch-item small { color: var(--muted); }
.batch-item .batch-emails { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }

@media (max-width: 760px) {
  .batch-heading { display: block; }
  .batch-create { justify-content: flex-start; margin-top: 14px; }
  .batch-create input[type="text"] { width: 150px; }
  .batch-key-row { align-items: stretch; flex-direction: column; }
}

.page-lock-card {
  width: min(100%, 420px);
  padding: 38px;
  border: 1px solid #d7e9e2;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(35, 80, 65, .12);
  text-align: center;
}

.page-lock-card .brand-mark {
  margin: 0 auto 20px;
}

.page-lock-card h1 {
  margin: 8px 0 10px;
  color: #173b32;
  font-size: clamp(24px, 4vw, 32px);
}

.page-lock-card > p {
  margin: 0 0 26px;
  color: #78928b;
}

.page-lock-card form {
  display: grid;
  gap: 12px;
  text-align: left;
}

.page-lock-card input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid #cfe3dc;
  border-radius: 12px;
  color: #173b32;
  background: #f8fcfb;
  font: inherit;
  outline: none;
}

.page-lock-card input:focus {
  border-color: #08a57e;
  box-shadow: 0 0 0 3px rgba(8, 165, 126, .12);
}

.page-lock-card .button {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}

.page-auth-message {
  min-height: 20px;
  margin: 0;
  color: #d34e4e;
  text-align: center;
}
