@tailwind base;
@tailwind components;
@tailwind utilities;

/* ── CSS Custom Properties ── */
:root {
  --bg: #faf9f7;
  --surface: #f3f1ee;
  --border: #e8e5e0;
  --text: #1a1a1a;
  --muted: #7c7872;
  --accent: #f4a68c;
  --accent-dark: #d4735a;
  --accent-subtle: rgba(244,166,140,.12);
  --accent-border: rgba(244,166,140,.35);
  --code-bg: #1e1e1e;
  --code-text: #d4d4d4;
  --radius: 6px;
  --mono: 'SF Mono', SFMono-Regular, ui-monospace, 'Cascadia Code', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Zilla Slab', Georgia, serif;
  --sidebar-w: 240px;
  --header-h: 50px;
}

* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; margin: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--text); }

/* ══════════════════════════════════════════════
   TOP NAV BAR
   ══════════════════════════════════════════════ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 16px; z-index: 200;
}
.topnav-left {
  display: flex; align-items: center; min-width: 0;
  width: var(--sidebar-w); flex-shrink: 0;
}
.topnav-crumbs {
  display: flex; align-items: center; gap: 4px;
  padding-left: 16px;
}
.topnav-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
}
.topnav-brand:hover { color: var(--text); }
.logo-mark { height: 28px; width: auto; }
.logo-text { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; line-height: 1; }
.topnav-right {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}
/* Breadcrumbs */
.topnav-sep {
  color: var(--border); font-size: .9rem; font-weight: 300; margin: 0 2px;
  user-select: none;
}
.topnav-ns-dropdown { position: relative; display: inline-flex; }
.topnav-ns-btn {
  font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--text);
  background: transparent; border: none; cursor: pointer; padding: 4px 6px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 4px;
}
.topnav-ns-btn:hover { background: var(--surface); }
.topnav-ns-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1); padding: 4px 0; z-index: 300;
}
.topnav-ns-item {
  display: block; padding: 8px 14px; font-size: .85rem; color: var(--text);
  text-decoration: none; cursor: pointer;
}
.topnav-ns-item:hover { background: var(--surface); }
.topnav-ns-item.active { font-weight: 600; color: var(--text); }
.topnav-ns-new { color: var(--muted); }
.topnav-ns-divider { height: 1px; background: var(--border); margin: 4px 0; }
.topnav-org { font-size: .9rem; font-weight: 600; color: var(--text); text-decoration: none; }
.topnav-org:hover { color: var(--accent-dark); }
.topnav-page {
  font-size: .9rem; font-weight: 500; color: var(--muted);
}
.hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--text);
}
.hamburger svg { width: 24px; height: 24px; }

/* ══════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════ */
.sidebar {
  position: fixed; top: var(--header-h); left: 0; bottom: 0; width: var(--sidebar-w);
  background: #fafafa; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 100;
}
.sidebar-nav {
  flex: 1; padding: 20px 10px; display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}

/* Section labels (MAIL, APPROVAL, MANAGE) */
.sidebar-label {
  padding: 24px 10px 6px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); user-select: none;
}
.sidebar-label:first-child { padding-top: 14px; }
.sidebar-label-bottom {
  margin-top: auto;
}

/* Nav links */
.sidebar-nav a {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px;
  font-size: .9rem; font-weight: 500; color: var(--muted); transition: all .1s;
  text-decoration: none;
}
.sidebar-nav a.sub { padding-left: 22px; }
.sidebar-nav a.nav-bottom { margin-top: auto; }
.sidebar-nav a:hover { background: rgba(0,0,0,.05); color: var(--text); }
.sidebar-nav a.active {
  background: var(--accent-subtle); color: #b08968; font-weight: 600;
}
.sidebar-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Badge */
.sidebar-badge {
  margin-left: auto; padding: 1px 7px; border-radius: 10px;
  font-size: .65rem; font-weight: 700; line-height: 1.4;
  background: var(--accent); color: #fff; flex-shrink: 0;
}

/* Footer */
.sidebar-footer {
  padding: 10px; border-top: 1px solid var(--border);
}
.sidebar-footer-links {
  display: flex; flex-direction: column; gap: 0;
}
.sidebar-footer-links a {
  display: block; padding: 5px 10px; border-radius: 6px;
  font-size: .78rem; color: var(--muted); text-decoration: none; transition: all .1s;
}
.sidebar-footer-links a:hover { background: rgba(0,0,0,.05); color: var(--text); }
.sidebar-logout {
  width: 100%; text-align: left; padding: 5px 10px; border-radius: 6px;
  font-size: .78rem; font-weight: 500; color: var(--muted); background: none; border: none;
  cursor: pointer; font-family: var(--sans); transition: all .1s;
  display: flex; align-items: center; gap: 8px; margin-top: 2px;
}
.sidebar-logout:hover { background: rgba(0,0,0,.05); color: var(--text); }
.sidebar-connect-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 8px; border-radius: 8px;
  font-size: .78rem; font-weight: 600; text-decoration: none;
  color: #fff; background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  transition: all .15s;
}
.sidebar-connect-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Mobile overlay */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 99; }

/* ══════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════ */
.app-content {
  margin-left: var(--sidebar-w); margin-top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff;
}
.page-inner {
  padding: 0; width: 100%; flex: 1; overflow-y: auto;
}

/* ── Content header (label + big title) ── */
.content-header {
  padding: 24px 32px 20px;
  margin-bottom: 24px;
  display: flex; align-items: flex-start; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.content-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 2px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 2px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--border); font-weight: 400; }
.content-title {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  line-height: 1.2; margin: 0;
}

/* ── Content sections (overview page) ── */
.content-section {
  padding: 0 32px; margin-bottom: 28px;
}
.content-section:first-of-type { margin-top: 24px; }
.content-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.content-section-title {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin: 0;
}
.content-section-link {
  font-size: .8rem; font-weight: 500; color: var(--muted);
}
.content-section-link:hover { color: var(--accent-dark); }
.content-table-wrap {
  border-radius: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; background: #fff;
}
.content-empty {
  text-align: center; padding: 28px 24px; color: var(--muted); font-size: .86rem;
  background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.content-more { text-align: center; padding: 8px 0 0; }
.content-more a { font-size: .8rem; color: var(--muted); }
.content-more a:hover { color: var(--text); }

/* ── Dashboard layout ── */
.dash-layout {
  display: flex; flex-direction: column; min-height: 0;
}
.dash-metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-bottom: 1px solid var(--border);
}
.metric-card {
  padding: 24px; position: relative; text-align: center;
}
.metric-card:not(:last-child)::after {
  content: ""; position: absolute; top: 20%; right: 0; bottom: 20%;
  width: 1px; background: var(--border);
}
.metric-value { font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.metric-label { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }

/* ── Activity feed ── */
.dash-activity { min-width: 0; }
.dash-activity-header {
  padding: 14px 24px 8px; font-size: .84rem; font-weight: 600; color: var(--text);
}
.dash-activity-empty {
  text-align: center; padding: 48px 24px; color: var(--muted); font-size: .84rem;
}

/* ── Onboarding wizard ── */
.ob-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.4); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: ob-fade 0.3s ease; }
.ob-modal { background: #fff; border-radius: 16px; padding: 44px 40px; max-width: 680px; width: 100%; box-shadow: 0 12px 40px rgba(0,0,0,.15); animation: ob-slide 0.35s ease; max-height: 90vh; overflow-y: auto; }
@keyframes ob-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ob-slide { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.ob-header { margin-bottom: 28px; }
.ob-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; }
.ob-subtitle { font-size: .86rem; color: var(--muted); }
.ob-steps { display: flex; flex-direction: column; gap: 0; }
.ob-step { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(0,0,0,.06); }
.ob-step:first-child { border-top: none; padding-top: 0; }
.ob-step-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.ob-step-active .ob-step-num { background: var(--text); color: #fff; }
.ob-step-done .ob-step-num { background: #f7b9a4; color: #fff; }
.ob-step-locked .ob-step-num { background: var(--surface); color: var(--muted); }
.ob-step-body { flex: 1; min-width: 0; }
.ob-step-title { font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.ob-step-locked .ob-step-title { color: var(--muted); }
.ob-step-desc { font-size: .84rem; color: var(--muted); line-height: 1.5; }
.ob-locked-text { opacity: .5; }
.ob-key-block { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 14px; background: var(--surface); border-radius: 8px; border: 1px solid var(--border); }
.ob-key-value { font-family: var(--mono); font-size: .78rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ob-key-copy { display: flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 600; border: none; background: none; cursor: pointer; color: var(--text); padding: 4px 8px; border-radius: 4px; }
.ob-key-copy:hover { background: rgba(0,0,0,.04); }
.ob-code-tabs { margin-top: 10px; }
.ob-tab-bar { display: flex; gap: 0; margin-bottom: 0; background: none; border-bottom: 1px solid #eee8d5; padding: 0; }
.ob-tab { font-family: var(--mono); font-size: .76rem; padding: 8px 16px; border: none; border-bottom: 2px solid transparent; background: none; cursor: pointer; color: #93a1a1; margin-bottom: -1px; transition: all .15s; }
.ob-tab.active { color: #586e75; border-bottom-color: #d97706; }
.ob-code-block { background: #fdf6e3; color: #586e75; border-radius: 0 0 10px 10px; padding: 16px 18px; font-family: var(--mono); font-size: .78rem; line-height: 1.7; overflow-x: auto; border: 1px solid #eee8d5; border-top: none; margin-top: 0; }
.ob-code-line { white-space: pre; }
.ob-code-divider { height: 1px; background: #eee8d5; margin: 8px 0; }
.ob-k { color: #859900; }
.ob-f { color: #268bd2; }
.ob-s { color: #2aa198; }
.ob-c { color: #93a1a1; }
.activity-feed { }
.activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 24px; border-bottom: 1px solid var(--border);
  font-size: .84rem; transition: background .1s;
}
.activity-item:hover { background: rgba(0,0,0,.01); }
.activity-icon {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.activity-icon-mail { background: #eff6ff; color: #3b82f6; }
.activity-icon-approval { background: #f0fdf4; color: #22c55e; }
.activity-body { flex: 1; min-width: 0; }
.activity-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-action { font-weight: 600; }
.activity-addr { font-family: var(--mono); font-size: .8rem; }
.activity-subject { color: var(--muted); }
.activity-time { font-size: .76rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* Cell with icon */
.cell-with-icon {
  display: flex; align-items: center; gap: 10px;
}

/* ══════════════════════════════════════════════
   REUSABLE COMPONENTS
   ══════════════════════════════════════════════ */

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 8px;
  font-weight: 600; font-size: .88rem; transition: all .15s; border: none; cursor: pointer;
  font-family: var(--sans); text-decoration: none;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { opacity: .85; color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-danger {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  padding: 5px 12px; font-size: .78rem; border-radius: 6px; cursor: pointer;
  font-family: var(--sans); transition: all .15s;
}
.btn-danger:hover { color: #dc2626; border-color: #dc2626; }
button:disabled { opacity: .5; cursor: not-allowed; }

/* ── Login ── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.onboard-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; max-width: 440px; width: 100%; text-align: center;
}
.onboard-logo {
  font-family: var(--serif); font-weight: 700; font-size: 1.8rem; letter-spacing: -.02em;
  margin-bottom: 4px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.onboard-sub { color: var(--muted); font-size: .88rem; margin-bottom: 32px; }
label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.error { color: #dc2626; font-size: .82rem; margin-top: 8px; min-height: 18px; }

/* ── Cards ── */
.card {
  background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 24px; margin-bottom: 20px; transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.card-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }

/* ── API Key ── */
.key-block {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px;
  font-family: var(--mono); font-size: .82rem; color: var(--text);
  word-break: break-all; line-height: 1.6;
}
.key-helper { color: var(--muted); font-size: .8rem; margin-top: 10px; }
.settings-resource-link {
  display: flex; align-items: center; gap: 8px;
  font-size: .84rem; color: var(--text); text-decoration: none;
  padding: 6px 0; transition: color .15s;
}
.settings-resource-link:hover { color: var(--fg); }
.settings-key-row { display: flex; align-items: center; gap: 10px; }
.settings-key-label { font-family: var(--mono); font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* ── Quick Start ── */
.qs-block {
  background: var(--code-bg); border-radius: 8px; padding: 18px 20px;
  font-family: var(--mono); font-size: .82rem; color: var(--code-text);
  line-height: 1.8; overflow-x: auto; position: relative; white-space: pre;
}
.qs-block .comment { color: #6a9955; }
.qs-block .str { color: #ce9178; }
.qs-block .fn { color: #fb7185; }
.qs-block .kw { color: #569cd6; }
.qs-block .num { color: #b5cea8; }
.copy-pos { position: absolute; top: 10px; right: 10px; }

/* ── Getting Started ── */
.gs-layout { display: grid; grid-template-columns: 1fr 200px; gap: 40px; padding: 24px 32px; align-items: start; }
.gs-main { min-width: 0; }

.gs-subtabs { display: flex; gap: 0; margin-bottom: 16px; }
.gs-subtab {
  padding: 6px 14px; font-size: .78rem; font-weight: 500; cursor: pointer;
  color: var(--muted); border: 1px solid var(--border); background: var(--surface);
  transition: all .15s ease;
}
.gs-subtab:first-child { border-radius: 6px 0 0 6px; }
.gs-subtab:last-child { border-radius: 0 6px 6px 0; }
.gs-subtab:not(:first-child) { border-left: none; }
.gs-subtab-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.gs-subtab-active + .gs-subtab { border-left-color: var(--text); }
.gs-key-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 24px; margin-bottom: 32px;
}
.gs-key-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gs-key-label { font-weight: 600; font-size: .88rem; }

.gs-tabs-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; gap: 12px; }
.gs-tabs { display: flex; gap: 4px; }
.gs-key-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface); font-size: .78rem; font-weight: 500;
  color: var(--muted); cursor: pointer; font-family: var(--sans);
  transition: all .15s ease; white-space: nowrap;
}
.gs-key-toggle:hover { color: var(--text); border-color: var(--text); }
.gs-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); font-size: .84rem; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: all .15s ease;
}
.gs-tab:hover { color: var(--text); border-color: var(--text); }
.gs-tab-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.gs-tab-active:hover { color: var(--bg); }
@keyframes peach-pulse { 0%, 100% { color: #f4a68c; } 50% { color: #e8875f; } }
.gs-mcp-icon { animation: peach-pulse 2s ease-in-out infinite; }

.gs-section { display: flex; gap: 20px; margin-bottom: 32px; }
.gs-step {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: #f4a68c; color: #fff; font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.gs-section-content { flex: 1; min-width: 0; }
.gs-section-title { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; margin: 0 0 6px; }
.gs-desc { font-size: .84rem; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.gs-desc code {
  font-family: var(--mono); font-size: .8rem; background: var(--surface);
  padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border);
}

.gs-divider {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); margin: 36px 0 24px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.gs-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gs-tool {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px;
}
.gs-tool-name { font-family: var(--mono); font-size: .82rem; font-weight: 600; margin-bottom: 4px; }
.gs-tool-desc { font-size: .78rem; color: var(--muted); line-height: 1.4; }

.gs-toc {
  position: sticky; top: 24px;
  font-size: .78rem; padding-top: 4px;
}
.gs-toc-title {
  font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); margin-bottom: 12px; font-size: .72rem;
}
.gs-toc-list {
  list-style: none; margin: 0; padding: 0;
}
.gs-toc-list li { margin-bottom: 0; }
.gs-toc-link {
  display: block; padding: 4px 0 4px 12px;
  color: var(--muted); text-decoration: none;
  border-left: 2px solid transparent; transition: all .15s ease;
}
.gs-toc-link:hover { color: var(--text); }
.gs-toc-active { color: var(--text); border-left-color: #f4a68c; font-weight: 500; }
.gs-toc-group {
  font-weight: 600; color: var(--text); padding: 10px 0 4px 0;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .4px;
}

@media (max-width: 900px) {
  .gs-layout { grid-template-columns: 1fr; padding: 16px; }
  .gs-toc { display: none; }
  .gs-tools-grid { grid-template-columns: 1fr; }
  .gs-tabs { flex-wrap: wrap; }
}

/* ── API Reference ── */
.doc-section { margin-bottom: 32px; scroll-margin-top: 24px; }
.doc-h2 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 10px; }
.doc-h3 { font-size: .95rem; font-weight: 600; margin: 0 0 8px; font-family: var(--mono); }
.doc-p { font-size: .84rem; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.doc-p code {
  font-family: var(--mono); font-size: .8rem; background: var(--surface);
  padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border);
}
.doc-p strong { color: var(--text); }
.doc-auth { font-size: .78rem; color: var(--muted); margin: 0 0 12px; }
.doc-auth code { font-family: var(--mono); font-size: .76rem; color: #f4a68c; }
.doc-response-label {
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
  color: var(--muted); margin: 14px 0 6px;
}
.doc-method {
  display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; margin-right: 8px; letter-spacing: .3px;
  font-family: var(--mono); vertical-align: middle;
}
.doc-get { background: #dbeafe; color: #1e40af; }
.doc-post { background: #dcfce7; color: #166534; }
.doc-put { background: #fef3c7; color: #92400e; }
.doc-delete { background: #fee2e2; color: #991b1b; }
.doc-divider {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
  margin: 48px 0 28px; padding-bottom: 12px; border-bottom: 2px solid var(--border);
  scroll-margin-top: 24px;
}
.doc-table {
  width: 100%; font-size: .82rem; border-collapse: collapse; margin-bottom: 8px;
}
.doc-table th {
  text-align: left; font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--border);
  font-size: .76rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted);
}
.doc-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.doc-table code {
  font-family: var(--mono); font-size: .78rem; background: var(--surface);
  padding: 1px 5px; border-radius: 3px;
}

/* ── Mailbox list ── */
.mailbox-list { display: flex; flex-direction: column; gap: 1px; }
.mailbox-item {
  padding: 14px 24px; background: #fff;
  border-bottom: 1px solid var(--border); transition: background .1s;
}
.mailbox-item:last-child { border-bottom: 1px solid var(--border); }
.mailbox-item:hover { background: rgba(0,0,0,.01); }
.mailbox-item.clickable { cursor: pointer; }
.mailbox-expired { opacity: .55; }
.mailbox-item-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mailbox-item-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mailbox-icon {
  width: 34px; height: 34px; border-radius: 8px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mailbox-icon svg { width: 16px; height: 16px; color: var(--muted); }
.mailbox-address {
  font-family: var(--mono); font-size: .86rem; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mailbox-name { font-size: .76rem; color: var(--muted); margin-top: 1px; }
.mailbox-meta { display: flex; align-items: center; gap: 20px; margin-top: 8px; padding-left: 46px; }
.mailbox-stat { display: flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--muted); }
.mailbox-stat svg { width: 13px; height: 13px; flex-shrink: 0; }
.mb-delete {
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem;
  padding: 2px 6px; border-radius: 4px; line-height: 1; transition: color .15s;
}
.mb-delete:hover { color: #dc2626; }
.mb-empty { text-align: center; padding: 24px; color: var(--muted); font-size: .86rem; }

/* Sidebar message table */
.panel-msg-table { width: 100%; border-collapse: collapse; }
.panel-msg-table td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.panel-msg-table tr:last-child td { border-bottom: none; }
.panel-msg-link {
  display: flex; align-items: center; gap: 8px; padding: 12px 0;
  text-decoration: none; color: var(--text); transition: opacity .1s;
}
.panel-msg-link:hover { opacity: .7; color: var(--text); }
.panel-msg-addr { font-family: var(--mono); font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.panel-msg-subject { font-size: .76rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.panel-msg-time { font-size: .68rem; color: var(--muted); white-space: nowrap; margin-left: auto; }

/* Peach badges */
.badge-peach { background: #f7b9a4; color: #fff; }
.badge-peach-outline { background: transparent; color: #f7b9a4; border: 1px solid #f7b9a4; }

/* ── Plan / Usage ── */
.plan-badge {
  display: inline-block; padding: 3px 12px; border-radius: 6px; font-size: .74rem;
  font-weight: 700; text-transform: capitalize; letter-spacing: .03em;
  background: linear-gradient(135deg, rgba(251,113,133,.1), rgba(251,113,133,.05));
  border: 1px solid var(--accent-border); color: var(--accent-dark);
}
.settings-link-btn {
  background: none; border: none; padding: 0; font-family: var(--sans);
  font-size: .84rem; font-weight: 600; color: var(--accent-dark); cursor: pointer;
  text-decoration: none; display: inline; margin-left: 4px;
}
.settings-link-btn:hover { text-decoration: underline; }
.usage-bar-wrap { margin-top: 14px; }
.usage-bar-wrap:first-of-type { margin-top: 0; }
.usage-label { display: flex; justify-content: space-between; font-size: .75rem; margin-bottom: 5px; max-width: 90%; }
.usage-label span:first-child { font-weight: 600; white-space: nowrap; }
.usage-label span:last-child { color: var(--muted); white-space: nowrap; }
.usage-warn { color: #dc2626 !important; font-weight: 600; }
.usage-bar { height: 10px; background: var(--surface); border-radius: 5px; overflow: hidden; max-width: 90%; }
.usage-bar-fill { height: 100%; border-radius: 5px; background: #f4a68c; transition: width .4s ease; }
.usage-bar-warn { background: #f4a68c; }

/* ── Settings ── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.settings-grid > div > .card + .card { margin-top: 20px; }
.settings-card { margin-bottom: 0; }
.settings-field label { margin-bottom: 4px; }
.settings-value { font-size: .94rem; font-weight: 500; }
.settings-value-row { display: flex; align-items: center; gap: 6px; }
.settings-edit-btn { background: none; border: none; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 4px; }
.settings-edit-btn:hover { color: var(--text); }
.settings-key-actions { display: flex; gap: 6px; }
.settings-btn-icon { width: 14px; height: 14px; flex-shrink: 0; }
.settings-btn-destructive { background: #dc2626; color: #fff; border: none; }
.settings-btn-destructive:hover { background: #b91c1c; }
.settings-cta { margin-top: 32px; text-align: center; padding: 32px 0 0; color: var(--muted); font-size: .86rem; }
.settings-cta a { font-weight: 600; }
.settings-modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.4); align-items: center; justify-content: center;
}
.settings-modal {
  background: #fff; border-radius: var(--radius); padding: 32px;
  max-width: 440px; width: calc(100% - 48px); box-shadow: 0 24px 48px rgba(0,0,0,.12);
}
.settings-modal-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.settings-modal-desc { color: var(--muted); font-size: .86rem; line-height: 1.6; margin-bottom: 8px; }
.settings-modal-desc strong { color: var(--text); }
.settings-modal-list { color: var(--muted); font-size: .82rem; line-height: 1.8; margin-bottom: 20px; padding-left: 20px; }
.settings-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.settings-form .settings-field { margin-bottom: 16px; }
.settings-input {
  width: 100%; padding: 8px 10px; font-size: .88rem;
  border: 1px solid var(--border); border-radius: 6px; background: #fff;
  color: var(--text); font-family: var(--sans); outline: none;
}
.settings-input:focus { border-color: var(--text); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  transform: translateX(calc(100% + 24px));
  z-index: 500; padding: 12px 40px 12px 16px; border-radius: var(--radius);
  font-size: .86rem; font-weight: 600; font-family: var(--sans);
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s ease;
  pointer-events: auto;
  box-shadow: 0 6px 20px rgba(0,0,0,.12); opacity: 0;
  max-width: 380px;
  display: flex; align-items: center; gap: 8px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-success { background: #1a1a1a; color: #fff; border: none; }
.toast-error { background: #dc2626; color: #fff; border: none; }
.toast-message { flex: 1; line-height: 1.4; }
.toast-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 2px 4px; border-radius: 3px;
  transition: color .15s;
}
.toast-close:hover { color: #fff; }

/* ── Filter bar ── */
.filter-bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 10px 32px; border-bottom: 1px solid rgba(0,0,0,.05);
}
.filter-select {
  font-family: var(--sans); font-size: .86rem;
  border: none; border-bottom: 1px solid var(--text);
  border-radius: 0; padding: 4px 24px 4px 0;
  background: transparent; color: var(--text);
  outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.filter-select:hover { border-color: var(--text); }

/* ── Data tables ── */
.data-table-wrap { background: #fff; overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; table-layout: auto; }
.data-table thead { background: none; }
.data-table th {
  padding: 10px 16px; text-align: left;
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td {
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.data-table tbody tr { transition: background .1s; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(0,0,0,.02); }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table .col-narrow { width: 88px; }
.data-table .col-time { width: auto; text-align: right; white-space: nowrap; overflow: visible; text-overflow: clip; }
.data-table .col-status { width: 100px; }
.data-table .col-20 { width: 20%; }
.data-table .col-30 { width: 30%; }
.data-table .cell-mono { font-family: var(--mono); font-size: .78rem; }
.data-table .cell-medium { font-weight: 500; }
.data-table .cell-muted { color: var(--muted); font-size: .8rem; }
.data-table .cell-light { color: #a1a1aa; font-size: .8rem; }
.data-table .cell-stacked { white-space: normal; }
.data-table .cell-stacked > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table .cell-label { color: var(--muted); font-size: .68rem; font-weight: 500; letter-spacing: .02em; }
.mono { font-family: var(--mono); font-size: .82rem; }

/* ── Badges ── */
.data-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 5px;
  font-size: .7rem; font-weight: 600; text-transform: capitalize;
  letter-spacing: .02em; white-space: nowrap;
}
.data-badge-gray   { background: var(--surface); color: var(--muted); }

/* ── Side panel ── */
.side-panel-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.15); }
.side-panel {
  position: fixed; top: var(--header-h); right: 0; bottom: 0; width: 50%; z-index: 200;
  background: #fff; border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0,0,0,.06);
  transform: translateX(100%); transition: transform .2s ease;
  display: flex; flex-direction: column;
}
.side-panel.open { transform: translateX(0); }
.side-panel-header {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 14px 20px; flex-shrink: 0;
}
.side-panel-close {
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: 4px; border-radius: 6px; transition: color .15s;
}
.side-panel-close:hover { color: var(--text); }
.side-panel-close svg { width: 20px; height: 20px; }
.side-panel-body { flex: 1; overflow-y: auto; }

/* Email card (side panel) */
.email-card-header { padding: 0 20px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.email-card-subject { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; line-height: 1.3; min-width: 0; margin-top: 4px; }
.email-card-date { color: var(--muted); font-size: .76rem; white-space: nowrap; flex-shrink: 0; }
.email-card-participants { padding: 12px 20px; border-top: 1px solid rgba(0,0,0,.06); border-bottom: 1px solid rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 4px; }
.email-card-row { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.email-card-label { color: var(--muted); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; width: 34px; flex-shrink: 0; }
.email-card-addr { font-family: var(--mono); font-size: .78rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-card-body { padding: 20px; font-size: .86rem; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.email-card-body p { margin: 0 0 .6em; }
.email-card-body p:last-child { margin-bottom: 0; }

/* Panel detail (approvals) */
.panel-detail { padding: 0 20px 20px; }
.panel-detail-header { margin-bottom: 20px; }
.panel-detail-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.panel-detail-id { color: var(--muted); font-size: .74rem; font-family: var(--mono); margin-top: 4px; }
.panel-detail-section { padding: 14px 0; border-top: 1px solid rgba(0,0,0,.06); }
.panel-detail-row { display: flex; align-items: center; gap: 10px; }
.panel-detail-time { color: var(--muted); font-size: .8rem; }
.panel-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel-detail-label { color: var(--muted); font-size: .76rem; font-weight: 500; }
.panel-detail-value { font-size: .86rem; font-weight: 500; margin-top: 2px; }
.panel-detail-context { background: var(--code-bg); border-radius: 6px; padding: 12px 14px; font-family: var(--mono); font-size: .76rem; color: var(--code-text); line-height: 1.8; }
.ctx-key { color: #569cd6; }
.ctx-val { color: #ce9178; }

/* Email preview — simulates an email client window */
.email-preview { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.email-preview-bar { background: var(--accent-subtle); padding: 8px 14px; font-size: .72rem; font-weight: 600; color: #b08968; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--accent-border); }
.email-preview-headers { padding: 14px 16px 12px; }
.email-preview-row { display: flex; align-items: baseline; gap: 12px; padding: 3px 0; font-size: .84rem; }
.email-preview-label { flex-shrink: 0; width: 56px; color: var(--muted); font-size: .76rem; font-weight: 500; }
.email-preview-value { color: var(--text); word-break: break-word; }
.email-preview-body { padding: 14px 16px 18px; border-top: 1px solid var(--border); font-size: .86rem; line-height: 1.7; color: var(--text); white-space: pre-wrap; }
.email-preview-iframe { width: 100%; min-height: 200px; border: none; border-top: 1px solid var(--border); background: #fff; overflow: hidden; }

.panel-textarea { width: 100%; padding: 8px 10px; font-size: .86rem; background: #fff; border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--sans); outline: none; resize: vertical; }
.panel-detail-buttons { display: flex; gap: 10px; justify-content: flex-end; }
.panel-btn-approve { background: #f4a261; color: #fff; border: 1px solid #f4a261; padding: 8px 32px; font-size: .86rem; }
.panel-btn-approve:hover { background: #e8944f; }
.panel-decision { padding: 10px 0; }
.panel-decision + .panel-decision { border-top: 1px solid rgba(0,0,0,.04); }
.panel-decision-row { display: flex; align-items: center; gap: 8px; }
.panel-decision-by { color: var(--text); font-size: .82rem; margin-top: 4px; }
.panel-decision-reason { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.data-table .active-row { background: rgba(0,0,0,.03); }
.mailbox-item.active-row { background: rgba(0,0,0,.03); }

/* Allowlist */
.allowlist-toggle { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.toggle-pill { width: 36px; height: 20px; border-radius: 10px; border: none; padding: 2px; cursor: pointer; position: relative; transition: background .15s ease; }
.toggle-pill-off { background: var(--border); }
.toggle-pill-on { background: var(--text); }
.toggle-dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.toggle-pill-on .toggle-dot { transform: translateX(16px); }
.toggle-label { font-size: .82rem; color: var(--muted); }
.allowlist-entries { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.allowlist-entry { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--surface); border-radius: 6px; font-family: var(--mono); font-size: .8rem; }
.allowlist-addr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.allowlist-form { display: flex; align-items: center; gap: 8px; }
.allowlist-input { flex: 1; padding: 6px 10px; font-size: .82rem; font-family: var(--mono); border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); outline: none; }
.allowlist-input:focus { border-color: var(--muted); }

/* Custom domains */
.domain-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; margin-bottom: 16px; }
.domain-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.domain-card-title { display: flex; align-items: center; gap: 10px; }
.domain-name { font-family: var(--mono); font-size: .92rem; font-weight: 600; }
.domain-card-actions { display: flex; gap: 6px; }
.domain-dns-section { margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.05); }
.domain-dns-label { font-size: .78rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.domain-card-meta { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.04); font-size: .78rem; }
.dns-cell { display: flex; align-items: center; gap: 4px; min-width: 0; }
.dns-cell-text { font-family: var(--mono); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.dns-copy { flex-shrink: 0; padding: 2px; border: none; background: none; color: var(--muted); cursor: pointer; opacity: 0.4; transition: opacity .15s; border-radius: 3px; }
.dns-copy:hover { opacity: 1; background: var(--surface); }

/* Approver form */
.approver-form-wrap { padding: 24px 32px; margin-top: 32px; }
.approver-form-title { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; margin-bottom: 16px; }
.approver-form-fields { display: flex; align-items: flex-end; gap: 12px; }
.approver-field { flex: 1; min-width: 0; }
.approver-field-name { flex: 1.2; }
.approver-field-email { flex: 1.5; }
.approver-field-role { flex: 0.8; }
.approver-field-action { flex-shrink: 0; }
.approver-field label { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.approver-input { width: 100%; padding: 8px 10px; font-size: .86rem; background: #fff; border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--sans); outline: none; transition: border-color .15s; }
.approver-input:focus { border-color: var(--text); }

/* ── Request detail (full-page show) ── */
.request-title {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  margin-bottom: 8px; line-height: 1.3;
}
.request-id {
  color: var(--muted); font-size: .78rem; font-family: var(--mono);
  margin-bottom: 20px;
}
.request-status-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.request-status-time { color: var(--muted); font-size: .82rem; }
.request-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: .84rem;
}
.request-meta-label { color: var(--muted); }
.request-meta-value { font-weight: 500; margin-top: 2px; }
.request-context-title { font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.request-section {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}
.request-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-reject {
  background: transparent; color: var(--muted); border: 1px solid var(--border); padding: 6px 16px;
}
.btn-reject:hover { border-color: var(--muted); color: var(--text); }
.btn-approve-lg {
  background: #f4a261; color: #fff; border: 1px solid #f4a261;
  padding: 12px 48px; font-size: .94rem;
}
.btn-approve-lg:hover { background: #e8944f; }
.request-decision { padding: 12px 0; font-size: .88rem; }
.request-decision + .request-decision { border-top: 1px solid rgba(0,0,0,.04); }
.request-decision-row { display: flex; align-items: center; gap: 8px; }
.request-decision-time { color: var(--muted); font-size: .82rem; }
.request-decision-by { color: var(--text); margin-top: 6px; }
.request-decision-reason { color: var(--muted); margin-top: 4px; }

/* ── Sidebar section indicator ── */
.sidebar-section:has(a.active) .sidebar-label { color: var(--text); }

/* ── Public approval page ── */
.public-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 520px; width: 100%; padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.public-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: .88rem; font-weight: 600;
  color: var(--muted); margin-bottom: 20px;
}
.public-title {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700;
  margin: 0 0 20px; line-height: 1.3;
}
.public-section { margin-bottom: 18px; }
.public-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 6px;
}
.public-value { font-size: .94rem; line-height: 1.6; }
.public-meta { font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.public-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 6px; font-size: .88rem; font-family: var(--sans);
  color: var(--text); outline: none; transition: border-color .15s;
}
.public-input:focus { border-color: var(--text); }
.public-actions {
  display: flex; gap: 12px; margin-top: 24px;
}
.public-decision {
  background: var(--bg); border-radius: 6px; padding: 14px;
  margin-top: 8px; border-left: 3px solid var(--accent);
}
.public-decision-time { color: var(--muted); font-size: .78rem; margin-left: 8px; }
.public-decision-reason { color: var(--muted); font-size: .86rem; margin-top: 6px; font-style: italic; }
.public-footer {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: .78rem; color: var(--muted);
}

/* ── Skeleton loaders ── */
@keyframes skeleton-pulse {
  0%, 100% { opacity: .06; }
  50% { opacity: .12; }
}
.skeleton {
  background: currentColor; border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton-panel { padding: 20px; }
.skeleton-line {
  height: 12px; margin-bottom: 12px; border-radius: 4px;
  background: var(--text); animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton-line-lg { height: 20px; width: 60%; margin-bottom: 16px; }
.skeleton-line-sm { width: 40%; }
.skeleton-line-md { width: 75%; }
.skeleton-block {
  height: 80px; border-radius: 8px; margin-bottom: 16px;
  background: var(--text); animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media(max-width: 768px) {
  .topnav-crumb-text { display: none; }
  .topnav-slash { display: none; }
  .topnav-search { display: none; }
  .topnav-new { display: none; }
  .topnav-left { width: auto; flex-shrink: 1; }
  .topnav-crumbs { padding-left: 8px; }
  .hamburger { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .app-content { margin-left: 0; }
  .page-inner { padding: 0; }
  .onboard-card { padding: 28px 24px; }
  .card { padding: 16px; }
  .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 520px; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .settings-grid { grid-template-columns: 1fr; }
  .approver-form-fields { flex-wrap: wrap; }
  .approver-field { min-width: 140px; }
  .content-header { padding: 16px 16px 14px; margin-bottom: 16px; }
  .content-section { padding: 0 16px; }
  .filter-bar { padding: 10px 16px; }
  .approver-form-wrap { padding: 24px 16px; }
  .dash-metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-card { padding: 16px 12px; }
  .metric-card:nth-child(2)::after { display: none; }
  .metric-value { font-size: 1.5rem; }
  .metric-label { font-size: .66rem; }
  .activity-item { padding: 10px 16px; }
  .mailbox-item { padding: 12px 16px; }
  .mailbox-meta { padding-left: 0; }
  .panel-detail { padding: 0 16px 16px; }
  .side-panel { width: 85%; }
  .toast { right: 12px; bottom: 12px; max-width: calc(100vw - 24px); }
}
@media(max-width: 480px) {
  .content-title { font-size: 1.3rem; }
  .content-header { padding: 12px 12px 10px; margin-bottom: 12px; }
  .content-section { padding: 0 12px; }
  .card { padding: 14px 12px; }
  .card-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dash-metrics { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .metric-card { padding: 14px 10px; }
  .filter-bar { padding: 8px 12px; }
  .mailbox-item { padding: 10px 12px; }
}

/* ══════════════════════════════════════════════
   NAMESPACES
   ══════════════════════════════════════════════ */
.ns-token-flash {
  margin: 0 24px 16px;
  padding: 14px 18px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
}
.ns-token-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.ns-token-value {
  display: flex; align-items: center; gap: 10px;
}
.ns-token-value code {
  font-family: var(--mono); font-size: 13px;
  background: var(--code-bg); color: var(--code-text);
  padding: 6px 10px; border-radius: 4px;
  user-select: all; word-break: break-all;
}
.ns-actions { display: flex; gap: 6px; justify-content: flex-end; }
.ns-btn-delete { color: #e11d48 !important; }
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
