/* Eventero by Mochi-Zen — same design language as Postero: Nunito, warm cream
   ground, navy ink, peach accent, big soft radii and floaty shadows. Tokens
   and base components are lifted from postero/frontend/src/styles.css so the
   two apps read as siblings; keep them in step when that file changes. */

:root {
  --paper: #fff8f2;
  --paper-raised: #fffcf9;
  --grid-line: #f0e2d4;
  --ink: #1a1f3c;
  --ink-soft: #4d5374;
  --ink-faint: #8b90ab;
  --accent: #e8956d;
  --accent-ink: #ffffff;
  --accent-soft: #fdecd8;
  --reply: #f5a623;
  --reply-soft: #fdf3dc;
  --danger: #c62f36;
  --danger-soft: #fbe9ea;
  --ok: #2f7d43;
  --ok-soft: #e6f4ea;
  --chip-border: #eddcca;
  --shadow: 0 4px 24px rgba(26, 31, 60, 0.07);
  --shadow-float: 0 16px 48px rgba(26, 31, 60, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-raised) 100%) fixed var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 12px; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
a { color: var(--accent); }
button:focus-visible, a:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--ink-soft); font-size: 0.9em; }
.faint { color: var(--ink-faint); }
.mono { font-family: var(--mono); font-size: 0.88em; }
.brand-dot { color: var(--accent); }
.hidden { display: none !important; }

.shell main { padding: 24px; max-width: 1240px; margin: 0 auto; }

/* Navy header gradient, like the in-app Mochi-Zen header */
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 12px 24px;
  background: linear-gradient(90deg, var(--ink) 0%, #232952 100%);
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar .brand { font-weight: 900; font-size: 17px; letter-spacing: 0.01em; color: #fff; white-space: nowrap; cursor: pointer; }
.brand-by { font-size: 11px; font-weight: 700; color: var(--accent); margin-left: 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.topbar nav { display: flex; gap: 2px; flex: 1; flex-wrap: nowrap; min-width: 0; }
.topbar nav a {
  color: rgba(255, 255, 255, 0.72); text-decoration: none; padding: 6px 12px;
  border-radius: 10px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.topbar nav a:hover { color: #fff; }
.topbar nav a.active { color: #fff; background: rgba(232, 149, 109, 0.35); }
.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.user-email { color: rgba(255, 255, 255, 0.55); font-size: 0.85em; font-family: var(--mono); }
.topbar .btn-ghost { color: rgba(255, 255, 255, 0.72); }
.topbar .btn-ghost:hover { color: #fff; }
.topbar select.account-switch {
  width: auto; margin: 0; padding: 6px 30px 6px 12px; font-weight: 700; font-size: 14px;
  color: #fff; background-color: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); border-radius: 10px;
}
.topbar select.account-switch option { color: var(--ink); }
.nav-toggle {
  display: none; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; border-radius: 10px; width: 40px; height: 36px; font-size: 18px; line-height: 1; cursor: pointer; flex: none;
}
@media (max-width: 1280px) { .user-email { display: none; } }
@media (max-width: 1100px) { .brand-by { display: none; } }
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 0; padding: 10px 16px; }
  .topbar-row { flex: 1 1 100%; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .topbar nav, .topbar-right { display: none; }
  .topbar-open nav, .topbar-open .topbar-right { display: flex; }
  .topbar nav { flex: 1 1 100%; flex-direction: column; gap: 2px; padding-top: 10px; }
  .topbar nav a { padding: 10px 12px; font-size: 15px; }
  .topbar-right { flex: 1 1 100%; justify-content: space-between; margin: 8px 0 0; padding: 10px 12px 2px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
  .shell main { padding: 16px; }
}

.card { background: #fff; border-radius: 20px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card-link { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }

.btn {
  background: #fff; color: var(--ink); border: 1px solid var(--chip-border); border-radius: 12px;
  padding: 9px 18px; cursor: pointer; font-size: 14px; font-weight: 700; font-family: var(--sans);
  transition: transform 0.15s, box-shadow 0.15s; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn-primary {
  background: linear-gradient(90deg, var(--accent) 0%, #764ba2 100%); border-color: transparent;
  color: var(--accent-ink); font-weight: 800; box-shadow: 0 6px 24px rgba(232, 149, 109, 0.35);
}
.btn-primary:hover { color: var(--accent-ink); box-shadow: 0 10px 32px rgba(232, 149, 109, 0.45); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); border-color: transparent; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 10px; }
.danger { color: var(--danger); }

label { display: block; margin: 10px 0; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
input, textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; background: #fff;
  border: 1px solid var(--chip-border); border-radius: 12px; color: var(--ink); font: inherit; font-weight: 400;
}
input:focus, textarea:focus, select:focus, .rich:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
input[type=color] { padding: 4px; height: 44px; cursor: pointer; }
.inline-check { display: flex; align-items: center; gap: 8px; }
.inline-check input { width: auto; margin: 0; }
.hint { font-size: 12.5px; color: var(--ink-faint); font-weight: 400; margin-top: 4px; display: block; }
.group { margin: 10px 0; }
.group-label { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }

.error, .notice, .warn { padding: 10px 12px; border-radius: var(--radius-sm); margin: 10px 0; border: 1px solid; border-left-width: 3px; }
.error { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.notice { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.warn { background: var(--reply-soft); border-color: var(--reply); color: #8a6100; }

/* login — mirrors the app.mochi-zen.com auth screens */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.login-wrap { position: relative; }
.login-back { position: absolute; top: 20px; left: 24px; color: var(--accent); text-decoration: none; font-weight: 700; font-size: 15px; }
.login-panel { width: 100%; max-width: 400px; text-align: center; }
.login-logo { margin-bottom: 28px; }
.login-brand { font-weight: 900; font-size: 26px; color: var(--ink); letter-spacing: -0.01em; }
.login-brand-by { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.login-title { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.login-subtitle { color: var(--ink-soft); font-size: 15px; margin: 0 0 24px; }
.login-panel form { text-align: left; }
.login-panel input { border-color: var(--accent); padding: 13px 14px; }
.login-submit {
  width: 100%; margin-top: 12px; padding: 14px 16px; border: none; border-radius: 12px; color: #fff;
  background: linear-gradient(90deg, var(--accent) 0%, #764ba2 100%); font: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 6px 24px rgba(232, 149, 109, 0.35);
}
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(232, 149, 109, 0.45); }
.login-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.login-alt { display: block; margin: 16px auto 0; padding: 4px 8px; border: none; background: none; color: var(--accent-deep, var(--accent)); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.login-alt:hover { text-decoration: underline; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h2 { margin: 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-state { display: grid; place-items: center; gap: 10px; padding: 36px 16px; color: var(--ink-faint); text-align: center; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--chip-border); background: var(--paper-raised);
  color: var(--ink-soft); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 13px; font-family: var(--sans);
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 700; }
.chip .n { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.pill {
  background: var(--accent-soft); border: 1px solid var(--chip-border); border-radius: 99px; padding: 1px 9px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
}

.status { display: inline-block; font-size: 11px; font-family: var(--mono); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--chip-border); color: var(--ink-soft); white-space: nowrap; }
.status-active, .status-sent { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.status-draft, .status-sending { border-color: var(--accent); color: #b5623a; background: var(--accent-soft); }
.status-bounced, .status-complained, .status-failed { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.status-unsubscribed, .status-unconfirmed { background: var(--paper); }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 16px; }
.tile { background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); }
.tile .v { font-size: 28px; font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; }
.tile .l { font-size: 12px; font-weight: 800; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }

.table-wrap { overflow-x: auto; margin: 0 -8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); padding: 8px; border-bottom: 1px solid var(--grid-line); }
td { padding: 10px 8px; border-bottom: 1px solid var(--grid-line); vertical-align: middle; }
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: var(--paper-raised); }
td .pill { margin-right: 4px; }
.check-cell { width: 1%; padding-right: 4px; cursor: pointer; }
.check-cell input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.bulk-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: var(--danger-soft); border: 1px solid var(--danger); border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 14px;
}

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input, .toolbar select { margin: 0; width: auto; min-width: 200px; flex: 1 1 200px; max-width: 340px; }
/* second line of a stat tile: the rate behind the count */
.tile-sub { margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--ink-faint); }

/* the links one recipient followed, stacked inside their row */
.link-list { display: grid; gap: 3px; max-width: 34ch; }
.link-list a { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(12, 17, 29, 0.55); display: grid;
  grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px;
}
.modal-card { width: 100%; max-width: 560px; min-width: 0; max-height: calc(100vh - 48px); overflow-y: auto; margin-bottom: 0; box-shadow: var(--shadow-float); }
.modal-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; background: #fff; margin-top: -8px; padding: 8px 0; }
.modal-head h3 { margin-bottom: 0; }
.modal-close { font-size: 16px; padding: 4px 10px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; flex-wrap: wrap; }

/* account overview */
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.account-card { margin: 0; border-top: 4px solid var(--accent); }
.account-card h3 { margin-bottom: 2px; }
.account-card .big { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; margin-top: 10px; }

/* campaign editor */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .editor-layout { grid-template-columns: minmax(0, 1fr); } }
.preview-frame { width: 100%; height: 760px; border: 1px solid var(--grid-line); border-radius: var(--radius); background: #f4f1ec; }
.preview-card { position: sticky; top: 16px; }
.rich-tools { display: flex; gap: 4px; margin-top: 6px; }
.rich-tools button { font: inherit; font-size: 13px; font-weight: 800; min-width: 34px; padding: 4px 9px; border: 1px solid var(--chip-border); background: var(--paper-raised); border-radius: 8px; cursor: pointer; color: var(--ink-soft); }
.rich-tools button:hover { border-color: var(--accent); color: var(--ink); }
.rich { min-height: 110px; margin-top: 6px; padding: 10px 12px; background: #fff; border: 1px solid var(--chip-border); border-radius: 12px; font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.rich.tall { min-height: 220px; }
.rich p { margin: 0 0 10px; }
.rich img { max-width: 100%; }
.post-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--grid-line); background: var(--paper-raised); border-radius: var(--radius); padding: 10px; margin-bottom: 8px; }
.post-item img { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; flex: none; background: var(--grid-line); }
.post-item .body { flex: 1; min-width: 0; }
.post-item input, .post-item textarea { margin: 0 0 6px; padding: 7px 10px; font-size: 14px; }
.post-item .post-url { display: flex; align-items: center; gap: 8px; }
.post-item .post-url span { flex: none; width: 42px; font-size: 11px; font-weight: 800; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.post-item .post-url input { flex: 1; min-width: 0; font-size: 12.5px; }
.post-item .post-url .btn { flex: none; margin-bottom: 6px; }
.input-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 14px; } /* 14px: what an input inside a <label> inherits */
.input-row input { flex: 1; min-width: 0; margin: 0; }
.input-row .btn { flex: none; }
.image-field-thumb { display: block; max-width: 100%; max-height: 72px; margin-top: 8px; padding: 6px; background: #fff; border: 1px solid var(--grid-line); border-radius: 8px; }
.image-field-thumb.thumb-hero { width: 240px; max-height: none; aspect-ratio: 2 / 1; object-fit: cover; padding: 0; }
.post-item .ctl { display: flex; flex-direction: column; gap: 4px; }
.section-label { font-size: 12px; font-weight: 800; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; margin: 18px 0 6px; }

.progress { height: 10px; background: var(--grid-line); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent) 0%, #764ba2 100%); transition: width 0.4s; }
.checklist { max-height: 300px; overflow-y: auto; border: 1px solid var(--grid-line); border-radius: var(--radius-sm); padding: 6px 12px; margin: 10px 0; }
.checklist label { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-weight: 400; color: var(--ink); }
.checklist input { width: auto; margin: 0; }
.checklist .n { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
pre.snippet { background: var(--ink); color: #e9ebf7; border-radius: var(--radius-sm); padding: 12px 14px; font-family: var(--mono); font-size: 12.5px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-float); z-index: 200; }

/* ===================================================== Eventero additions */

/* event sub-navigation under the page head */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 18px; }
.subnav a { text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--chip-border); background: var(--paper-raised); }
.subnav a:hover { border-color: var(--accent); color: var(--ink); }
.subnav a.on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.crumb { font-size: 13px; font-weight: 700; color: var(--ink-faint); text-decoration: none; display: inline-block; margin-bottom: 4px; }
.crumb:hover { color: var(--accent); }

.status-published, .status-paid, .status-open, .status-admitted { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.status-pending, .status-paused, .status-unscheduled { border-color: var(--accent); color: #b5623a; background: var(--accent-soft); }
.status-cancelled, .status-refunded, .status-void, .status-expired, .status-failed { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.status-sold-out, .status-ended, .status-past, .status-used { background: var(--paper); }

/* event cards */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.event-card { margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.event-card .thumb { aspect-ratio: 1 / 1; overflow: hidden; min-height: 0; background: linear-gradient(135deg, var(--accent-soft), #e9e0f3); }
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card .thumb img.whole { object-fit: contain; }
.event-card .inner { padding: 14px 18px 18px; }
.event-card h3 { margin: 6px 0 2px; }
.meter { height: 8px; background: var(--grid-line); border-radius: 99px; overflow: hidden; margin: 12px 0 4px; }
.meter > div { height: 100%; background: linear-gradient(90deg, var(--accent) 0%, #764ba2 100%); }

/* copyable values */
.copy-row { display: flex; gap: 8px; align-items: stretch; margin: 6px 0 12px; }
.copy-row input, .copy-row textarea { margin: 0; font-family: var(--mono); font-size: 12.5px; background: var(--paper-raised); }
.copy-row textarea { min-height: 64px; resize: vertical; }
.copy-row .btn { flex: none; }

/* ticket type editor */
.type-row { border: 1px solid var(--grid-line); background: var(--paper-raised); border-radius: var(--radius); padding: 12px 14px 4px; margin-bottom: 10px; }
.type-row .form-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.type-row label { margin: 6px 0; }
.type-row-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2px 0 8px; }
.gallery-edit { display: grid; gap: 4px; }
.gallery-edit .input-row img { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; background: var(--grid-line); }

/* check-in */
.scan-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .scan-layout { grid-template-columns: minmax(0, 1fr); } }
.camera { position: relative; background: var(--ink); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.camera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.camera .frame { position: absolute; inset: 18% 22%; border: 3px solid rgba(255, 255, 255, 0.85); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(12, 17, 29, 0.35); pointer-events: none; }
.camera .cam-msg { position: absolute; color: #fff; text-align: center; padding: 18px; font-weight: 700; }
.verdict { border-radius: 20px; padding: 18px 20px; margin-bottom: 14px; min-height: 104px; display: flex; flex-direction: column; justify-content: center; border: 2px solid var(--grid-line); background: #fff; }
.verdict .big { font-size: 26px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.15; }
.verdict .who { font-size: 18px; font-weight: 800; margin-top: 4px; }
.verdict .sub { color: var(--ink-soft); font-size: 14px; }
.verdict.ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.verdict.warn { background: var(--reply-soft); border-color: var(--reply); color: #8a6100; }
.verdict.bad { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.verdict.ok .who, .verdict.warn .who, .verdict.bad .who { color: var(--ink); }
.count-line { font-size: 15px; font-weight: 800; color: var(--ink-soft); }
.count-line b { font-size: 22px; color: var(--ink); }
.attendee-list { max-height: 460px; overflow-y: auto; margin-top: 8px; }
.attendee-list td { padding: 8px 6px; }
.door-shell { max-width: 1100px; margin: 0 auto; padding: 16px; }
.door-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.door-brand { font-weight: 900; font-size: 15px; color: var(--ink-faint); }

/* settings: Stripe card */
.stripe-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--ink-faint); }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--reply); } .dot.bad { background: var(--danger); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; margin: 8px 0; }
.kv dt { color: var(--ink-faint); font-weight: 700; }
.kv dd { margin: 0; }
textarea { min-height: 84px; resize: vertical; }
.page-actions { align-items: center; }

/* MCP consent screen + Agents page */
.consent { text-align: left; }
.consent .login-logo, .consent .login-title, .consent .login-subtitle { text-align: center; }
.consent-scopes { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 16px; margin: 8px 0 14px; }
.consent-scope { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--grid-line); font-weight: 400; cursor: pointer; }
.consent-scope:last-child { border-bottom: 0; }
.login-panel .consent-scope input { width: 16px; height: 16px; padding: 0; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
.consent-scope b { display: block; color: var(--ink); }
.consent-actions { display: flex; gap: 10px; margin-top: 16px; }
.consent-actions .btn { flex: 1; justify-content: center; text-align: center; padding: 12px 18px; }
ol.steps { margin: 6px 0 0; padding-left: 22px; line-height: 1.9; }

.save-note { font-size: 13px; color: var(--ink-faint); }
.save-note.bad { color: var(--danger); }
.mail-preview { display: block; width: 100%; height: 720px; border: 1px solid var(--grid-line); border-radius: var(--radius-sm); background: #fff8f2; }
