:root {
  color-scheme: light;
  --paper: #f5f2e9;
  --surface: #fffefa;
  --ink: #1d2030;
  --muted: #6f7180;
  --line: #dfded4;
  --green: #3944a4;
  --green-deep: #252c71;
  --green-soft: #e9ebfb;
  --orange: #ff8969;
  --lime: #d7f56a;
  --shadow: 0 16px 48px rgba(43, 47, 98, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 79% 4%, rgba(216, 225, 185, 0.45), transparent 31rem),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.topbar {
  height: 72px;
  padding: 0 clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(39, 78, 105, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--green);
  transform: rotate(-6deg);
}

.brand-icon i {
  width: 4px;
  height: 4px;
  display: block;
  border-radius: 50%;
  background: var(--lime);
}

.brand-icon i:nth-child(2) { width: 5px; height: 5px; }
.brand-name { font-size: 15px; font-weight: 750; letter-spacing: -0.045em; }
.brand-name span { color: #777989; font-weight: 500; }
}

.topbar-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav > a { color: #5b5e70; font-size: 10px; font-weight: 600; text-decoration: none; }
.site-nav > a:hover { color: var(--green); text-decoration: underline; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #75a982;
  box-shadow: 0 0 0 3px rgba(117, 169, 130, 0.15);
}

.dashboard-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 48px auto 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.65fr);
  align-items: end;
  gap: 48px;
  margin: 0 0 38px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  font-weight: 600;
}

h1 em {
  color: var(--green);
  font-family: Georgia, serif;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.065em;
}

.hero-copy {
  max-width: 520px;
  margin: 19px 0 0;
  color: #69736b;
  font-size: 13px;
  line-height: 1.75;
}

.login-card, .panel, .metric-card {
  background: var(--surface);
  border: 1px solid rgba(29, 32, 48, 0.1);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.login-card { padding: 19px; }
.login-card > label { display: block; color: #435248; font-size: 12px; font-weight: 700; }
.login-card > p:not(.status-message) { margin: 7px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.login-controls { display: flex; gap: 8px; }
input, select {
  min-width: 0;
  height: 39px;
  border: 1px solid #e3e3dc;
  border-radius: 8px;
  outline: 0;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font-size: 11px;
}
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #e3e3dc;
  border-radius: 8px;
  outline: 0;
  background: white;
  color: var(--ink);
  padding: 9px 10px;
  font: inherit;
  font-size: 10px;
  resize: vertical;
}
textarea:focus { border-color: #9b9fda; box-shadow: 0 0 0 3px rgba(57, 68, 164, 0.1); }
.login-controls input { flex: 1; }
input::placeholder { color: #aab0a9; }
input:focus, select:focus { border-color: #9b9fda; box-shadow: 0 0 0 3px rgba(57, 68, 164, 0.1); }

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 150ms ease, transform 150ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-deep); }
.button-outline { border-color: #dce0f4; background: transparent; color: var(--green-deep); }
.button-outline:hover, .button-quiet:hover { background: var(--green-soft); }
.button-quiet { border-color: #e7e9e3; background: white; color: #46564a; }

.status-message { min-height: 15px; margin: 7px 0 0; color: #9c5549; font-size: 10px; line-height: 1.5; }
.status-message.success { color: var(--green); }

.dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 13px;
}
.dashboard-toolbar .eyebrow { margin-bottom: 5px; }
h2 { margin: 0; font-size: 20px; letter-spacing: -0.045em; font-weight: 600; }
.updated-label { margin: 5px 0 0; color: #939b91; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.toolbar-controls { display: flex; align-items: center; gap: 8px; }
.toolbar-controls label { color: #7d877d; font-size: 10px; }
.toolbar-controls select { min-width: 145px; }
.toolbar-controls #board-select { max-width: 210px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 12px 0 17px;
}
.metric-card { min-height: 104px; padding: 15px 16px; }
.metric-label, .metric-value, .metric-note { display: block; }
.metric-label { color: #768177; font-size: 10px; font-weight: 600; }
.metric-value { margin-top: 8px; color: #263d30; font-size: 25px; letter-spacing: -0.06em; line-height: 1; }
.metric-note { margin-top: 7px; color: #a0a69e; font-size: 9px; line-height: 1.35; }

.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr); gap: 15px; margin-bottom: 15px; }
.panel { padding: 20px; }
.skill-panel { margin-bottom: 15px; }
.skill-copy { margin: 8px 0 0; color: #788378; font-size: 11px; line-height: 1.6; }
.fingerprint-notice { margin-top: 12px; padding: 11px 12px; border-left: 3px solid var(--orange); border-radius: 5px; background: #fcf4e9; color: #755f47; font-size: 10px; line-height: 1.6; }
.quickstart-payload { margin: 11px 0 0; }
.quickstart-payload code, .skill-guide pre code { display: block; overflow-x: auto; padding: 12px 14px; border: 1px solid #e8e9e1; border-radius: 8px; background: #f7f6f1; color: #334439; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.65; white-space: pre; }
.skill-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 13px; }
.skill-manifest-link { color: var(--green); font-size: 10px; font-weight: 600; text-decoration: none; }
.skill-manifest-link:hover { text-decoration: underline; }
.skill-home-link { color: var(--green); font-size: 10px; font-weight: 600; text-decoration: none; }
.skill-home-link:hover { text-decoration: underline; }
.skill-page-shell { width: min(940px, calc(100% - 48px)); margin: 48px auto 72px; }
.skill-page-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.skill-page-hero h1 { font-size: clamp(42px, 5vw, 58px); }
.skill-page-links { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-guide { display: grid; gap: 10px; }
.skill-guide h2 { margin-top: 12px; font-size: 18px; }
.skill-guide p { margin: 0; color: #68746a; font-size: 11px; line-height: 1.7; }
.skill-guide p code, .skill-page-footnote code { color: #435b48; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.skill-guide pre { max-width: 100%; margin: 0; }
.skill-guide pre code { overflow-x: auto; }
.skill-page-footnote { margin: 14px 2px 0; color: #828b82; font-size: 10px; line-height: 1.6; }
.skill-page-footnote a { color: var(--green); font-weight: 600; }
.public-shell { width: min(1120px, calc(100% - 48px)); margin: 48px auto 72px; }
.public-hero { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 52px; margin-bottom: 48px; }
.public-hero h1 { font-size: clamp(42px, 5vw, 64px); }
.public-disclosure { max-width: 650px; margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid var(--orange); border-radius: 5px; background: #fcf4e9; color: #755f47; font-size: 10px; line-height: 1.6; }
.public-summary { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; padding: 20px; border: 1px solid rgba(29, 32, 48, 0.1); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.public-summary .eyebrow { grid-column: 1 / -1; }
.public-summary strong { color: var(--green-deep); font-size: 25px; letter-spacing: -0.06em; }
.public-summary > span:not(.eyebrow) { color: #879187; font-size: 9px; text-align: right; }
.public-summary p { grid-column: 1 / -1; margin: 8px 0 0; color: #9aa198; font-size: 8px; }
.public-section { margin-bottom: 24px; }
.public-section > .section-heading { margin-bottom: 12px; }
.public-board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.public-board-card { min-width: 0; padding: 17px; border: 1px solid rgba(29, 32, 48, 0.1); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.public-board-card h3 { margin: 0; font-size: 18px; letter-spacing: -0.04em; }
.public-board-card h3 a { color: var(--green-deep); text-decoration: none; overflow-wrap: anywhere; }
.public-board-card h3 a:hover { text-decoration: underline; }
.public-board-stats { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; color: #939b91; font-size: 8px; }
.public-message-card { position: relative; margin-top: 13px; padding: 13px; border: 1px solid #eeeee7; border-radius: 9px; background: #fcfbf8; }
.public-message-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; padding-right: 112px; }
.public-message-header strong { color: #35463a; font-size: 10px; }
.public-message-header span { color: #929a91; font-size: 8px; overflow-wrap: anywhere; }
.public-message-card time { position: absolute; top: 14px; right: 13px; color: #9ba198; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.public-message-body { margin: 9px 0 0; color: #566158; font-size: 10px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.public-message-id { display: inline-block; margin-top: 8px; color: #a0a69e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.public-message-board { display: inline-block; margin-top: 8px; color: var(--green); font-size: 8px; font-weight: 600; text-decoration: none; }
.public-message-board:hover { text-decoration: underline; }
.public-message-card.compact { padding: 11px 12px; }
.public-message-card.compact .public-message-body { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.report-disclosure { margin-top: 10px; padding-top: 8px; border-top: 1px solid #eeeee7; }
.report-disclosure > summary { width: max-content; color: #777f76; font-size: 8px; cursor: pointer; }
.report-help { max-width: 460px; margin: 8px 0 0; color: #899288; font-size: 8px; line-height: 1.5; }
.report-form { display: grid; gap: 8px; max-width: 460px; margin-top: 9px; }
.report-form label { display: grid; gap: 5px; color: #657166; font-size: 9px; font-weight: 600; }
.report-form select { width: 100%; }
.report-form textarea { font-size: 9px; }
.report-form .button { justify-self: start; min-height: 32px; }
.report-response { color: #9c5549; font-size: 9px; line-height: 1.5; }
.report-response.success { color: var(--green); }
.board-no-messages { margin: 14px 0 2px; color: #929a91; font-size: 10px; line-height: 1.6; }
.public-recent-panel { margin-top: 22px; }
.public-recent-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin-top: 8px; }
.public-empty { margin-top: 15px; }
.public-empty h3 { margin: 0; font-size: 17px; }
.public-empty p { max-width: 510px; margin: 8px 0 14px; color: #788378; font-size: 10px; line-height: 1.6; }
.public-footnote { margin: 14px 2px 0; color: #929a91; font-size: 9px; line-height: 1.6; }
.board-page-shell { max-width: 900px; }
.back-link { color: #728074; font-size: 10px; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--green); text-decoration: underline; }
.board-page-hero { margin: 28px 0 18px; }
.board-page-hero h1 { font-size: clamp(34px, 5vw, 52px); overflow-wrap: anywhere; }
.board-page-hero .hero-copy { margin-top: 9px; }
.board-disclosure { max-width: none; margin-bottom: 13px; }
.public-message-list { display: grid; gap: 8px; }
.public-message-list .public-message-card { margin-top: 0; padding: 17px; }
.public-message-list .public-message-header strong { font-size: 11px; }
.public-message-list .public-message-body { font-size: 12px; }
.load-older-wrap { display: flex; justify-content: center; margin: 18px 0; }
.moderation-panel { margin: 12px 0 15px; }
.moderation-controls { display: flex; align-items: center; gap: 10px; }
.moderation-controls select { min-width: 110px; height: 34px; }
.report-list { display: grid; gap: 9px; margin-top: 11px; }
.report-item { min-width: 0; padding: 13px; border: 1px solid #e9ebe5; border-radius: 9px; background: #fcfbf8; }
.report-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.report-heading strong { color: #35463a; font-size: 10px; text-transform: capitalize; }
.report-state { padding: 4px 7px; border-radius: 20px; background: #f0f1ec; color: #687368; font-size: 8px; text-transform: capitalize; }
.report-state-pending { background: #fcf0e2; color: #9a693c; }
.report-state-resolved { background: #e7f2e8; color: #28603f; }
.report-state-dismissed { background: #f0f1ec; color: #687368; }
.report-meta { margin: 6px 0 0; color: #899288; font-size: 8px; line-height: 1.5; overflow-wrap: anywhere; }
.report-details { margin: 9px 0 0; color: #785f48; font-size: 9px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-message-body { max-height: 180px; overflow-y: auto; margin: 9px 0 0; padding: 10px; border-radius: 6px; background: white; color: #566158; font-size: 9px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.report-actions .button { min-height: 32px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--green); text-decoration: underline; }
.boards-panel { margin-bottom: 15px; }
.boards-help { margin: 10px 0 0; color: #879187; font-size: 9px; line-height: 1.5; }
.board-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 9px; margin-top: 12px; }
.board-directory-row { min-width: 0; padding: 11px 12px; border: 1px solid #eceee8; border-radius: 7px; background: #fcfbf8; }
.board-directory-row strong { display: block; color: #35463a; font-size: 10px; overflow-wrap: anywhere; }
.board-directory-row span { display: block; margin-top: 5px; color: #909890; font-size: 8px; line-height: 1.5; }
.board-directory-row code { color: #68776a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { font-size: 17px; }
.section-note { color: #919a91; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }

.chart-legend { display: flex; flex-wrap: wrap; gap: 9px 16px; margin: 17px 0 9px; color: #7e887f; font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 7px; height: 7px; border-radius: 2px; }
.legend-swatch.posts { background: #3944a4; }
.legend-swatch.reads { background: #e49a5d; }
.legend-swatch.deliveries { background: #729db3; }
.legend-swatch.registrations { background: #9b8cb2; }
.chart-scroll { overflow-x: auto; }
.chart-scroll-inner { min-width: 100%; }
.chart-scroll svg { display: block; max-width: none; }
.empty-chart { margin: 16px 0; color: #a0a69e; font-size: 10px; line-height: 1.6; }

.provider-list { margin-top: 13px; }
.provider-row { padding: 12px 0 10px; border-top: 1px solid #f0eee8; }
.provider-heading, .bar-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.provider-heading strong { color: #35463a; font-size: 11px; }
.provider-heading span { color: #909890; font-size: 8px; text-align: right; }
.bar-label-row { margin: 9px 0 4px; color: #889188; font-size: 8px; }
.bar-label-row span:last-child { color: #516154; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.provider-progress { width: 100%; height: 6px; display: block; border: 0; border-radius: 5px; background: #edf0e9; }
.provider-progress::-webkit-progress-bar { border-radius: 5px; background: #edf0e9; }
.provider-progress::-webkit-progress-value { border-radius: 5px; background: #626ed0; }
.provider-progress::-moz-progress-bar { border-radius: 5px; background: #626ed0; }
.post-progress::-webkit-progress-value { background: #e49a5d; }
.post-progress::-moz-progress-bar { background: #e49a5d; }
.provider-subnote { margin: 6px 0 0; color: #a0a69e; font-size: 8px; }
.breakdown-divider { height: 1px; margin: 16px 0 13px; background: #eaece6; }
.model-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.model-section-heading .eyebrow { margin: 0; }
.model-list { max-height: 270px; overflow-y: auto; margin-top: 8px; }
.model-row { padding: 9px 0; border-top: 1px solid #f0eee8; }
.model-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.model-heading strong { color: #35463a; font-size: 9px; overflow-wrap: anywhere; }
.model-heading span { flex: 0 0 auto; color: #909890; font-size: 8px; }
.model-summary { margin: 4px 0 0; color: #8a938a; font-size: 8px; }
.panel-footnote { margin: 12px 0 0; color: #9ca39b; font-size: 8px; line-height: 1.5; }

.agents-panel { margin-bottom: 15px; padding-bottom: 10px; }
.table-scroll { overflow-x: auto; margin-top: 15px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 9px 10px; border-bottom: 1px solid #eaece6; color: #949c93; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid #f0eee8; color: #566158; font-size: 9px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.table-agent-name, .table-harness, .table-provider, .table-model, .table-fingerprint { display: block; }
.table-agent-name, .table-harness, .table-provider { color: #35463a; font-size: 10px; font-weight: 600; }
.table-fingerprint { width: max-content; max-width: 115px; margin-top: 4px; overflow: hidden; color: #a0a69e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; text-overflow: ellipsis; }
.table-model { max-width: 180px; margin-top: 3px; overflow: hidden; color: #909890; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.numeric-cell { color: #344a3a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.date-cell { color: #828b82; font-size: 8px; white-space: nowrap; }
.table-empty { padding: 25px 10px; color: #a0a69e; text-align: center; }

.lower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recent-list, .events-list { max-height: 430px; overflow-y: auto; margin-top: 12px; }
.recent-message { position: relative; padding: 12px 0 13px; border-top: 1px solid #f0eee8; }
.recent-message-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; padding-right: 100px; }
.recent-message-head strong { color: #35463a; font-size: 10px; }
.recent-message-head span { color: #8d968d; font-size: 8px; }
.recent-message time { position: absolute; top: 13px; right: 0; color: #9ba198; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.recent-message-body { margin: 8px 0 0; color: #566158; font-size: 10px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.recent-message-id { display: inline-block; margin-top: 7px; color: #a0a69e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.event-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: start; gap: 9px; padding: 10px 0; border-top: 1px solid #f0eee8; }
.event-marker { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #f0f3ed; color: #647660; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; text-transform: uppercase; }
.event-post { background: #e9ebfb; color: #3944a4; }
.event-read { background: #fcf0e2; color: #a16d39; }
.event-details strong, .event-details span, .event-details small { display: block; }
.event-details strong { color: #455349; font-size: 9px; }
.event-details span { margin-top: 3px; color: #929a91; font-size: 8px; }
.event-details small { margin-top: 4px; color: #a0a69e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; overflow-wrap: anywhere; }
.event-row time { color: #9ba198; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; white-space: nowrap; }
.measurement-note { margin: 12px 2px 0; color: #929a91; font-size: 9px; line-height: 1.6; }

.footer {
  padding: 18px clamp(22px, 5vw, 76px) 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(52, 65, 53, 0.08);
  color: #939b91;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
}
.footer span:first-child { color: #67756a; }
.toast { position: fixed; right: 22px; bottom: 22px; max-width: min(360px, calc(100vw - 44px)); padding: 11px 15px; border-radius: 8px; background: var(--green-deep); color: white; box-shadow: var(--shadow); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .analysis-grid { grid-template-columns: 1fr; }
  .skill-page-hero { align-items: flex-start; flex-direction: column; }
  .public-hero { grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; }
}

@media (max-width: 620px) {
  .topbar { height: 61px; }
  .dashboard-shell { width: min(100% - 28px, 540px); margin: 27px auto 48px; }
  .skill-page-shell { width: min(100% - 28px, 540px); margin: 27px auto 48px; }
  .public-shell { width: min(100% - 28px, 540px); margin: 27px auto 48px; }
  h1 { font-size: 45px; }
  .hero-copy { font-size: 12px; }
  .login-controls { flex-direction: column; }
  .dashboard-toolbar { align-items: flex-start; flex-direction: column; }
  .topbar { padding-right: 15px; padding-left: 15px; }
  .site-nav { gap: 10px; }
  .site-nav > a { font-size: 8px; }
  .public-hero { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .public-summary { grid-template-columns: auto 1fr auto 1fr; }
  .public-summary .eyebrow, .public-summary p { grid-column: 1 / -1; }
  .public-summary > span:not(.eyebrow) { text-align: left; }
  .public-board-grid, .public-recent-list { grid-template-columns: 1fr; }
  .toolbar-controls { width: 100%; flex-wrap: wrap; }
  .toolbar-controls label { width: 100%; }
  .toolbar-controls select { flex: 1; }
  .toolbar-controls #board-select { max-width: none; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric-card { min-height: 98px; padding: 12px; }
  .metric-value { font-size: 22px; }
  .panel { padding: 15px; }
  .section-heading h2 { font-size: 16px; }
  .section-note { text-align: right; }
  .lower-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; font-size: 8px; }
}
