/* e2email — one stylesheet for both interfaces.
   The no-JS pages and the app render the same markup shapes, so the product
   looks and behaves the same whether or not scripting is available. */

:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-2: #fbfcfd;
  --line: #e3e7ec;
  --line-soft: #eef1f5;
  --text: #16202c;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-soft: #e8effd;
  --danger: #dc2626;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --ok: #0f766e;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .05);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 264px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --panel: #121a29;
    --panel-2: #0f1725;
    --line: #223049;
    --line-soft: #1a2434;
    --text: #e6ecf5;
    --muted: #93a3ba;
    --accent: #5b9dff;
    --accent-soft: #16233c;
    --danger: #f87171;
    --warn: #fbbf24;
    --warn-soft: #2a2313;
    --ok: #34d399;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------- layout */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  height: 100%;
  min-height: 100vh;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ------------------------------------------------------------ sidebar */

.sidebar {
  display: flex;
  flex-direction: column;
  background: var(--panel-2);
  border-right: 1px solid var(--line);
  height: 100vh;
  position: sticky;
  top: 0;
  padding-top: env(safe-area-inset-top);
}

.sidebar-head { padding: 14px 14px 8px; display: grid; gap: 10px; }

.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 17px; color: var(--text);
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand .icon { color: var(--accent); }

.nav-scroll { flex: 1; overflow-y: auto; padding: 4px 8px 16px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text); font-size: 14.5px;
  min-height: 40px;
}
.nav-item:hover { background: var(--line-soft); text-decoration: none; }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item span:not(.badge):not(.dot) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-group { margin-top: 14px; }
.nav-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); padding: 6px 10px; font-weight: 700;
}

.badge {
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; padding: 1px 7px; min-width: 20px; text-align: center;
}
.badge-muted { background: var(--line); color: var(--muted); }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.sidebar-foot {
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: grid; gap: 8px;
}
.who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.who-text { display: grid; min-width: 0; line-height: 1.25; }
.who-text span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }

.lockline {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); line-height: 1.3;
}
.lockline.ok { color: var(--ok); }
.lockline.warn { color: var(--warn); }
.sidebar-foot form { display: contents; }

/* ------------------------------------------------------------- topbar */

.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  padding-top: calc(10px + env(safe-area-inset-top));
}
.topbar-title {
  font-size: 17px; margin: 0; font-weight: 650; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%;
}
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search { flex: 1; min-width: 0; max-width: 520px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; color: var(--muted);
}
.search-box input {
  border: 0; background: transparent; outline: none; color: var(--text);
  width: 100%; font-size: 14.5px; min-width: 0;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 8px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 550; cursor: pointer;
  min-height: 38px; white-space: nowrap;
}
.btn:hover { background: var(--line-soft); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn-sm { padding: 5px 10px; min-height: 32px; font-size: 13px; }
.btn-block { width: 100%; }
.compose-btn { width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent; color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover { background: var(--line-soft); color: var(--text); }
.inline { display: inline; }

/* -------------------------------------------------------------- lists */

.list-form { display: block; }

.bulkbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 8px 16px; border-bottom: 1px solid var(--line);
  background: var(--panel-2); position: sticky; top: 59px; z-index: 10;
}
.bulk-hint { font-size: 12.5px; color: var(--muted); margin-right: 4px; }
.bulk-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.bulk-label select, .field select, .field input, .field textarea, .inline-form input {
  font: inherit; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 9px;
}

.list { list-style: none; margin: 0; padding: 0; }

.row {
  display: grid;
  grid-template-columns: 34px 32px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px 16px 10px 8px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
}
.row:hover { background: var(--panel-2); }
.row.unread { background: color-mix(in srgb, var(--accent-soft) 45%, var(--panel)); }
.row.unread .row-people, .row.unread .row-subject { font-weight: 700; }

.row-check { display: flex; align-items: center; justify-content: center; padding-top: 6px; }
.row-check input { width: 17px; height: 17px; accent-color: var(--accent); }
.row-link { display: grid; gap: 2px; min-width: 0; color: var(--text); }
.row-link:hover { text-decoration: none; }
.row-top { display: flex; align-items: baseline; gap: 8px; }
.row-people { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-date { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.count {
  font-size: 11.5px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 6px;
}
.row-mid { display: flex; align-items: center; gap: 7px; min-width: 0; }
.row-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.row-bot { min-width: 0; }
.row-snippet {
  color: var(--muted); font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.locked { color: var(--warn); font-style: italic; }
.row-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.row-tags:empty { display: none; }

.starred { color: #f59e0b; display: inline-flex; }
.starred .icon { fill: #f59e0b; width: 15px; height: 15px; }
.attach, .enc { color: var(--muted); display: inline-flex; }
.attach .icon, .enc .icon { width: 14px; height: 14px; }
.enc { color: var(--ok); }
.clear { font-size: 10.5px; color: var(--warn); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }

.tag {
  font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px;
  background: var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: .03em;
}
.tag-draft { background: #ede9fe; color: #6d28d9; }
.tag-queued { background: var(--warn-soft); color: var(--warn); }

.chip {
  font-size: 11.5px; padding: 1px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--chip, var(--muted)) 16%, transparent);
  color: var(--chip, var(--muted));
  border: 1px solid color-mix(in srgb, var(--chip, var(--muted)) 35%, transparent);
}
.chip-ok { --chip: var(--ok); }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-weight: 700; flex: none;
}
.avatar-sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar-md { width: 40px; height: 40px; font-size: 14px; }

.pager {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; gap: 10px;
}
.pager-info { color: var(--muted); font-size: 13px; }

.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty-inner .icon { width: 34px; height: 34px; opacity: .5; }
.empty h2 { margin: 8px 0 4px; font-size: 17px; color: var(--text); }
.empty-page { max-width: 460px; margin: 12vh auto; text-align: center; padding: 20px; }

/* ------------------------------------------------------------- thread */

.thread { padding: 16px; display: grid; gap: 14px; max-width: 900px; width: 100%; }
.thread-head h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.015em; }
.thread-meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.thread-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.msg {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.msg.unread { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.msg-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft);
}
.msg-who { min-width: 0; }
.msg-from { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.msg-addr, .addr-line { color: var(--muted); font-size: 12.5px; }
.addr-line span { font-weight: 600; }
.msg-side { text-align: right; display: grid; gap: 5px; justify-items: end; color: var(--muted); font-size: 12.5px; }
.badge-enc { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; }
.badge-enc.on { color: var(--ok); }
.badge-enc.off { color: var(--warn); }

.msg-body { padding: 6px 16px 14px; }
.body-text {
  margin: 0; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere;
  font-family: var(--font); font-size: 14.8px; line-height: 1.62;
}
.locked-body {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--warn-soft); color: var(--warn);
  border-radius: var(--radius-sm); padding: 12px 14px; margin: 4px 0;
}
.locked-body p { margin: 0; }

.attachments { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.att {
  display: flex; align-items: center; gap: 8px; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-2); color: var(--text); max-width: 100%;
}
.att-name { font-weight: 600; font-size: 13.5px; }
.att-meta { color: var(--muted); font-size: 12px; }

.msg-foot { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }

.quick-reply {
  margin: 0 16px 24px; max-width: 900px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; display: grid; gap: 10px;
}
.quick-reply textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px; font: inherit; background: var(--panel-2); color: var(--text); resize: vertical;
}
.quick-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quick-actions .hint { color: var(--muted); font-size: 12.5px; flex: 1; min-width: 200px; }

/* ------------------------------------------------------------ compose */

.compose {
  padding: 16px; display: grid; gap: 12px; max-width: 860px; width: 100%;
}
.field { display: grid; gap: 5px; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; font-size: 15px; }
.field textarea { resize: vertical; line-height: 1.6; font-family: var(--font); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-wide { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.compose-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 12px;
}
.enc-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; flex: 1; min-width: 220px; }
.compose-buttons { display: flex; gap: 8px; }

/* ------------------------------------------------------------- panels */

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 16px; box-shadow: var(--shadow); max-width: 900px;
}
.panel h2 { margin: 0 0 6px; font-size: 16.5px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.kv { display: flex; gap: 10px; padding: 5px 0; flex-wrap: wrap; }
.kv > span { color: var(--muted); min-width: 110px; font-size: 13px; }
code, .fp { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.keybox {
  width: 100%; font-family: var(--mono); font-size: 11.5px; margin-top: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px;
  background: var(--panel-2); color: var(--text);
}
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.grid-form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px; margin-top: 10px;
}
.grid-form .row-actions { grid-column: 1 / -1; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-form { display: inline-flex; align-items: center; gap: 2px; }

.table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px 6px;
}
.table td { padding: 10px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.c-who { display: flex; gap: 10px; align-items: center; }
.c-who div { display: grid; }
.c-who span { color: var(--muted); font-size: 12.5px; }
.key-yes { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-family: var(--mono); font-size: 11.5px; }
.key-no { color: var(--warn); font-size: 12.5px; }
.c-actions { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }

details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-body {
  position: absolute; right: 0; z-index: 30; width: min(360px, 78vw);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px; display: grid; gap: 8px;
}
details.acct { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; }
details.acct > summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.flash {
  margin: 12px 16px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent); font-size: 14px;
}
.flash-warn { background: var(--warn-soft); color: var(--warn); }
.flash-error { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* --------------------------------------------------------------- auth */

.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth { width: 100%; }
.auth-card {
  max-width: 420px; margin: 0 auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  box-shadow: var(--shadow); display: grid; gap: 12px;
}
.auth-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.auth-card h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.auth-card form { display: grid; gap: 12px; }
.auth-alt, .auth-note { font-size: 13px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------- responsive */

.show-mobile { display: none; }
.scrim { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(84vw, var(--sidebar-w));
    transform: translateX(-102%); transition: transform .2s ease;
    z-index: 60; box-shadow: var(--shadow);
  }
  .sidebar:target { transform: translateX(0); }
  .sidebar:target ~ .scrim,
  .sidebar:target + .main + .scrim { display: block; }
  .scrim {
    position: fixed; inset: 0; background: rgba(2, 6, 23, .45); z-index: 50;
  }
  .show-mobile { display: inline-flex; }
  .hide-mobile { display: none !important; }
  .main { height: auto; min-height: 100vh; }
  .topbar-title { max-width: none; flex: 1; }
  .search { order: 10; flex-basis: 100%; max-width: none; }
  .topbar { flex-wrap: wrap; top: 0; }
  .bulkbar { top: auto; position: static; overflow-x: auto; flex-wrap: nowrap; }
  .row { grid-template-columns: 32px 30px minmax(0, 1fr); padding-right: 12px; }
  .msg-head { grid-template-columns: auto minmax(0, 1fr); }
  .msg-side { grid-column: 1 / -1; text-align: left; justify-items: start; }
  .panel, .quick-reply { margin: 12px; }
  .thread { padding: 12px; }
}

@media (min-width: 1400px) {
  :root { --sidebar-w: 292px; }
  .thread, .compose, .panel { max-width: 1000px; }
}

@media (hover: none) {
  .btn, .icon-btn, .nav-item { -webkit-tap-highlight-color: transparent; }
  .row { padding-top: 12px; padding-bottom: 12px; }
}

@media print {
  .sidebar, .topbar, .bulkbar, .msg-foot, .quick-reply, .thread-actions { display: none !important; }
  .app { display: block; }
  .msg { box-shadow: none; page-break-inside: avoid; }
}

/* ------------------------------------------------- app-only components */

.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
.boot-inner { text-align: center; display: grid; gap: 6px; justify-items: center; }
.boot-mark { width: 34px; height: 34px; color: var(--accent); }
.boot-alt { font-size: 13px; }

.app-body { margin: 0; }

.starbtn {
  border: 0; background: transparent; padding: 0; cursor: pointer;
  color: var(--muted); display: inline-flex; line-height: 0;
}
.starbtn .icon { width: 15px; height: 15px; }
.starbtn.on { color: #f59e0b; }
.starbtn.on .icon { fill: #f59e0b; }

.row { cursor: pointer; }
.row.open { background: var(--accent-soft); }

.shimmer {
  display: inline-block; width: min(280px, 60%); height: 11px; border-radius: 4px;
  background: linear-gradient(90deg, var(--line-soft), var(--line), var(--line-soft));
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(2, 6, 23, .5); z-index: 100;
  display: grid; place-items: end center; padding: 16px;
}
.modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); width: min(720px, 100%); max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  margin-bottom: env(safe-area-inset-bottom);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.compose-modal .compose { overflow-y: auto; padding: 14px; margin: 0; }

.bulk-select { font: inherit; padding: 5px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); color: var(--text); }

.chip-x { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 0 0 4px; }

@media (min-width: 901px) {
  .modal-backdrop { place-items: center; }
}
@media (max-width: 900px) {
  .modal { max-height: 96vh; width: 100%; border-radius: 14px 14px 0 0; }
}

.enc.half { color: var(--warn); }
.badge-enc.half { color: var(--warn); }

.notice-card {
  max-width: 520px; margin: 8vh auto; padding: 26px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); text-align: left; color: var(--text);
}
.notice-card h1 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.02em; }
.notice-card p { margin: 0 0 12px; }
.notice-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.notice-card code {
  background: var(--line-soft); padding: 1px 5px; border-radius: 4px;
}
