/* Self-hosted so no visitor data goes to a font CDN. SIL OFL 1.1 — see fonts/*.txt */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/fraunces-latin.woff2) format('woff2');
}

:root {
  --bg: #FDFBF7;
  --surface: #FFFFFF;
  --surface-2: #F6F2EB;
  --text: #2C2C2C;
  --muted: #7A746B;
  --border: #E5E0D8;
  --border-strong: #D3CCC0;
  --accent: #2C2C2C;
  --focus: #8A9A8B;
  --radius: 10px;
  --radius-lg: 16px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* `hidden` must win over component display rules (.grid, .inbox-login…). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header / footer ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 40px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--text); color: var(--bg);
  font: 500 18px/1 var(--serif);
}
.brand-name { font: 500 20px/1 var(--serif); letter-spacing: -0.01em; }
.brand-tag { margin: 0; color: var(--muted); font-size: 13px; }
.header-right { display: flex; align-items: center; gap: 16px; }

.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.footer-links a { color: var(--text); text-underline-offset: 3px; }
.footer-links .link-btn { font-size: 13px; }

/* Feedback dialog */
.feedback {
  width: min(480px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 60px -20px rgba(44, 44, 44, .35);
}
.feedback::backdrop { background: rgba(44, 44, 44, .35); }
.feedback form { display: grid; gap: 14px; padding: 22px 22px 20px; }
.feedback-head { display: flex; align-items: center; justify-content: space-between; }
.feedback h2 { margin: 0; font: 400 24px/1.2 var(--serif); }
.feedback-sub { margin: -6px 0 0; font-size: 13.5px; color: var(--muted); }
.feedback .field.full + .field.full { margin-top: 0; }
.feedback-actions { display: flex; justify-content: flex-end; gap: 10px; }
.feedback-actions .btn { flex: 0 0 auto; }
.feedback .upload-status:empty { display: none; }
.icon-close {
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: none;
  font-size: 24px; line-height: 1; color: var(--muted);
  cursor: pointer;
}
.icon-close:hover { background: var(--surface-2); color: var(--text); }

.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px 48px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px;
}

.intro h1 {
  font: 400 clamp(28px, 3.2vw, 38px)/1.15 var(--serif);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.intro p { margin: 0 0 32px; color: var(--muted); max-width: 52ch; }

/* ---------- Form ---------- */
.group {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 24px 0 28px;
  min-width: 0;
}
.group legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.group legend + * { clear: both; }

.grid, .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.row { margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

/* Photo upload */
.upload {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.upload.is-drag { border-color: var(--text); background: var(--surface-2); }
.upload-thumb {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface-2) center / cover no-repeat;
  border: 1px solid var(--border);
}
.upload-body { min-width: 0; }
.upload-actions { display: flex; align-items: center; gap: 14px; }
.upload-status { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.upload-status.is-warn { color: #9A6A2F; }
.upload-status.is-ok { color: #5F7560; }
.upload-url { margin-top: 14px; }
.more-profiles { margin-top: 14px; }
.more-btn { margin-top: 12px; font-size: 13.5px; }
.site-card-opts { margin-top: 16px; font-size: 13.5px; }
.site-card-opts .toggle em { font-style: normal; color: var(--muted); margin-left: 4px; }
.site-card-opts .field { margin-top: 12px; }
.host-toggle { margin-top: 12px; font-size: 13.5px; }
.host-toggle em { font-style: normal; color: var(--muted); margin-left: 4px; }
.btn.small { flex: none; padding: 8px 14px; font-size: 13px; display: inline-block; }
.btn.is-busy { opacity: .6; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full + .field.full { margin-top: 14px; }
.field > span { font-size: 13px; font-weight: 500; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 4px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
textarea { resize: vertical; min-height: 64px; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237A746B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
input::placeholder, textarea::placeholder { color: #B5AEA3; }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(138, 154, 139, .22);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--text);
  margin: 10px 0 0;
}

.field-hint { font-size: 12.5px; line-height: 1.4; color: #9A6A2F; }
.field-hint.is-info { color: #5F7560; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #D9B98E; }

.hint { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

/* Templates */
.templates {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 1100px) and (min-width: 961px), (max-width: 560px) {
  .templates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tpl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: border-color .15s, transform .15s;
}
.tpl:hover { border-color: var(--border-strong); }
.tpl[aria-checked="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.tpl-thumb {
  height: 54px;
  border-radius: 6px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.tpl-name { font-size: 13px; font-weight: 500; }

/* Thumb sketches */
.tpl-thumb i { position: absolute; display: block; background: #CFC7BA; border-radius: 2px; }
.tpl-thumb i.a { background: var(--thumb-accent, #2C2C2C); }

/* Swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
  padding: 0;
}
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--text); }
.swatch-custom {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
  background: conic-gradient(#e0a47a, #d8c26b, #8fb08f, #7d9fbf, #a68bb8, #e0a47a);
}
.swatch-custom input { position: absolute; inset: -8px; width: 46px; height: 46px; opacity: 0; cursor: pointer; }
.swatch-custom.is-active { box-shadow: 0 0 0 2px var(--text); }

.span-2 { grid-column: 1 / -1; }

/* Text direction */
.dir-field { margin-top: 18px; }
.seg-wide { display: flex; width: 100%; border-radius: var(--radius); }
.seg-wide .seg-btn { flex: 1; padding: 8px 6px; border-radius: 7px; font-size: 13px; }
.seg-wide .seg-btn[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(44,44,44,.1); }
.dir-note { font-size: 12.5px; color: var(--muted); }

/* Icon style picker */
.icons-field { margin-top: 18px; }
.icon-styles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.icon-style {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s;
}
.icon-style:hover { border-color: var(--border-strong); }
.icon-style[aria-checked="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.icon-sample {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 18px;
  font: 600 12px/1 Helvetica, Arial, sans-serif;
}
.icon-sample img { display: block; }
.icon-sample i { font-style: normal; color: var(--muted); }
.icon-name { font-size: 12.5px; font-weight: 500; }

/* Template chips (mobile preview only) */
.tpl-chips { display: none; }
.tpl-chip {
  flex: none;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.tpl-chip[aria-checked="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Mobile tab bar */
.mobile-tabs { display: none; }

/* Privacy row */
.privacy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 13.5px;
}
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui {
  width: 34px; height: 20px;
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  transition: background .2s;
  flex: none;
}
.toggle-ui::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
.toggle input:checked + .toggle-ui { background: var(--text); }
.toggle input:checked + .toggle-ui::after { transform: translateX(14px); }
.toggle input:focus-visible + .toggle-ui { box-shadow: 0 0 0 3px rgba(138, 154, 139, .35); }

.link-btn {
  background: none; border: 0; padding: 4px 0;
  font: inherit; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--text); }

/* ---------- Preview ---------- */
.sticky { position: sticky; top: 24px; }

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.preview-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.seg-btn {
  border: 0; background: none;
  font: inherit; font-size: 12.5px; color: var(--muted);
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.seg-btn.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(44,44,44,.08); }

.mail {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(44,44,44,.04), 0 12px 40px -12px rgba(44,44,44,.12);
  overflow: hidden;
  transition: background .25s;
}
.mail-bar {
  display: flex; gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mail-meta {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  display: grid; gap: 2px;
}
.mail-meta .k { display: inline-block; width: 64px; color: #A39C91; }
.mail-body { padding: 24px 24px 32px; overflow-x: auto; }
.mail-text { margin: 0 0 24px; font: 14px/1.6 Helvetica, Arial, sans-serif; color: #444; }

.mail { max-width: 100%; margin: 0 auto; transition: max-width .3s ease; }
.mail.is-mobile { max-width: 375px; }
.mail.is-mobile .mail-body { padding: 20px 16px 24px; }
.mail.is-mobile .mail-meta { padding: 10px 16px; }

.sig-out { min-height: 80px; }
.sig-empty { color: var(--muted); font-size: 14px; font-style: italic; }

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn {
  flex: 1 1 auto;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.primary:hover { background: #111; }

.status { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: #5F7560; }

.howto {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13.5px;
}
.howto summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 500;
  list-style: none;
}
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: "+"; float: right; color: var(--muted); }
.howto[open] summary::after { content: "–"; }
.howto dl { margin: 0; padding: 0 16px 14px; }
.howto dt { font-weight: 600; margin-top: 10px; }
.howto dd { margin: 2px 0 0; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 24px 16px; }
  .preview-head .seg { display: none; }
  .site-header { padding: 20px 16px 0; }
  .site-footer { padding: 16px 16px 40px; }
  .sticky { position: static; }

  /* Edit / Preview become two tabs with a fixed bottom bar */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body[data-mview="edit"] .preview-col,
  body[data-mview="preview"] .controls,
  body[data-mview="preview"] .site-footer { display: none; }
  .intro h1 { font-size: 26px; }
  .intro p { margin-bottom: 20px; }

  .mobile-tabs {
    display: flex;
    gap: 8px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 10;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(253, 251, 247, .94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  .mtab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
  }
  .mtab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mtab.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }

  .tpl-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -16px 14px;
    padding: 2px 16px;
    scrollbar-width: none;
  }
  .tpl-chips::-webkit-scrollbar { display: none; }
}
@media (max-width: 520px) {
  .grid, .row { grid-template-columns: 1fr; }
  .mail-body { padding: 20px 16px 24px; }
  .mail-meta { padding: 10px 16px; }
  .brand-tag { display: none; }
  .btn { flex: 1 1 100%; }
  .icon-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* 16px inputs stop iOS Safari from zooming in on focus */
  input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Feedback inbox (/feedback-inbox) ---------- */
.inbox { max-width: 760px; margin: 0 auto; padding: 32px 40px 64px; }
.inbox h1 { font: 400 32px/1.2 var(--serif); margin: 0 0 16px; }
.inbox-login { display: grid; gap: 14px; max-width: 360px; }
.inbox [hidden] { display: none !important; }
.inbox-login p { margin: -6px 0 0; color: var(--muted); }
.inbox-login .btn { justify-self: start; flex: none; }
.inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.inbox-head h1 { margin: 0; }
.inbox-count { color: var(--muted); font-size: 22px; }
.inbox-actions { display: flex; align-items: center; gap: 16px; }
.inbox-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 12px;
}
.inbox-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.inbox-meta .link-btn { margin-inline-start: auto; font-size: 13px; }
.inbox-kind { white-space: nowrap; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-weight: 500; }
.inbox-kind.kind-bug { background: #F6E7D8; color: #7A4A1F; }
.inbox-kind.kind-idea { background: #E3ECE6; color: #3E5C4E; }
.inbox-msg { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.inbox-email { display: inline-block; max-width: 100%; overflow-wrap: anywhere; margin-top: 10px; font-size: 13.5px; color: var(--text); text-underline-offset: 3px; }
.inbox-empty { color: var(--muted); }
@media (max-width: 520px) {
  .inbox { padding: 24px 16px 48px; }
  .inbox h1 { font-size: 28px; }
  .usage-tiles { gap: 8px; }
  .usage-tile { padding: 12px 14px; }
  .usage-value { font-size: 26px; }
  .usage-chart { gap: 3px; padding: 10px 8px 6px; height: 120px; }
  /* Every other date label, so they don't collide on a phone. */
  .usage-day:nth-child(even) .usage-date { visibility: hidden; }
  .usage-date { font-size: 9.5px; }
}

/* Animation picker */
.anim-field { margin-top: 18px; }
.anim-parts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--text); margin: 0; }

.check-wide { flex-basis: 100%; }
.check em { font-style: normal; color: var(--muted); }

/* Preview tools: dark-mode toggle */
.preview-tools { display: flex; align-items: center; gap: 8px; }
.dark-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font: inherit; font-size: 12.5px; color: var(--muted);
  cursor: pointer;
}
.dark-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.dark-toggle[aria-pressed="true"] { background: #1F1F1F; border-color: #1F1F1F; color: #F2F2F2; }

/* Approximates Gmail's phone dark mode: colours inverted, images untouched. */
.mail.is-dark { background: #121212; border-color: #2A2A2A; }
.mail.is-dark .mail-bar { background: #1C1C1C; border-color: #2A2A2A; }
.mail.is-dark .mail-meta { border-color: #2A2A2A; color: #9A9A9A; }
.mail.is-dark .mail-text { color: #E6E6E6; }
.mail.is-dark .sig-out { filter: invert(1) hue-rotate(180deg); }
.mail.is-dark .sig-out img { filter: invert(1) hue-rotate(180deg); }
@media (max-width: 520px) { .anim-seg { flex-wrap: wrap; } .anim-seg .seg-btn { flex: 1 1 30%; } }
.pulse-check { margin-top: 10px; font-size: 13.5px; }

/* Inbox: usage */
.inbox-sub { font: 400 22px/1.2 var(--serif); margin: 28px 0 4px; }
.usage-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.usage-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.usage-value { font: 400 34px/1.1 var(--serif); }
.usage-label { font-weight: 500; margin-top: 4px; }
.usage-sub { color: var(--muted); font-size: 13px; }
.usage-legend { color: var(--muted); font-size: 13px; margin: 18px 0 8px; display: flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.dot-visit, .bar-visit { background: #CFC7BA; }
.dot-export, .bar-export { background: #4A6B5D; }
.usage-chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 140px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 12px 8px; }
.usage-day { display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.usage-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.bar { width: 40%; min-height: 1px; border-radius: 3px 3px 0 0; }
.usage-date { font-size: 10.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; }

/* Privacy page */
.doc { max-width: 680px; margin: 0 auto; padding: 32px 40px 72px; }
.doc h1 { font: 400 40px/1.15 var(--serif); margin: 0 0 12px; }
.doc h2 { font: 400 22px/1.3 var(--serif); margin: 32px 0 8px; }
.doc p, .doc li { color: #45423D; }
.doc ul { padding-inline-start: 20px; }
.doc li { margin: 6px 0; }
.doc a, .back-link { color: var(--text); text-underline-offset: 3px; }
.doc-lead { font-size: 17px; }
.doc-updated { color: var(--muted); font-size: 13px; margin-top: 40px; }
@media (max-width: 520px) { .doc { padding: 24px 16px 56px; } .doc h1 { font-size: 32px; } }
.outlook-copy { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.outlook-copy b { color: var(--text); font-weight: 500; }
.outlook-copy .link-btn { font-size: 13px; color: var(--text); font-weight: 500; }
