:root {
  --surface: #fbfaf5;
  --paper: #efede4;
  --card: #fffefa;
  --ink: #173b32;
  --muted: #4b6259;
  --line: #d0d8cc;
  --accent: #234d40;
  --on-accent: #ffffff;
  --accent-hover: #326552;
  --notice: #e8f2e9;
  --error-bg: #fce9e1;
  --error-ink: #872d22;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #14271f;
    --paper: #101f19;
    --card: #192e25;
    --ink: #eff5eb;
    --muted: #c0d1c4;
    --line: #416357;
    --accent: #a9d0b8;
    --on-accent: #142d24;
    --accent-hover: #c1e3ce;
    --notice: #253f33;
    --error-bg: #442a27;
    --error-ink: #ffdcd3;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font: 16px/1.55 system-ui, sans-serif; color: var(--ink); background: var(--paper); }
header { background: var(--card); border-bottom: 1px solid var(--line); padding: 20px max(24px, calc((100vw - 1180px) / 2)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.brand svg { width: 28px; height: 28px; }
nav { display: flex; flex-wrap: wrap; gap: 16px; }
a { color: var(--ink); text-underline-offset: 4px; }
nav a { font-size: .9rem; }
main { margin: clamp(24px, 5vw, 66px) auto; padding: 0 20px; }
main.narrow { max-width: 560px; }
main.wide { max-width: 1150px; }
.heading { margin-bottom: 28px; }
.eyebrow { font-size: .73rem; font-weight: 750; letter-spacing: .13em; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; line-height: 1.13; }
h1 { font-size: clamp(2.25rem, 4.9vw, 3.6rem); margin: 12px 0; }
h2 { font-size: 1.65rem; margin-bottom: 10px; }
h3 { font-size: 1.05rem; overflow-wrap: anywhere; }
p { color: var(--muted); }
.panel { background: var(--card); border: 1px solid var(--line); padding: clamp(18px, 3vw, 30px); border-radius: 17px; margin: 15px 0; }
form { margin: 17px 0 0; display: grid; gap: 13px; align-content: start; }
.field { display: grid; gap: 5px; font-size: .9rem; font-weight: 650; }
input:not([type=checkbox]), select { font: inherit; min-height: 44px; color: var(--ink); border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 9px 12px; width: 100%; }
button { min-height: 44px; justify-self: start; font: inherit; font-weight: 650; padding: 9px 16px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.primary { background: var(--accent); color: var(--on-accent); }
.primary:hover { background: var(--accent-hover); }
.quiet { color: var(--ink); background: var(--surface); border-color: var(--line); }
.quiet:hover { background: var(--notice); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.check { display: flex; align-items: start; gap: 8px; font-size: .92rem; }
.check input { margin-top: 6px; accent-color: var(--accent); }
.notice { color: var(--ink); background: var(--notice); padding: 13px 16px; border-radius: 9px; margin: 0 0 16px; }
.error { color: var(--error-ink); background: var(--error-bg); }
.entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 12px; margin-top: 16px; }
.entry { border: 1px solid var(--line); padding: 16px; border-radius: 11px; }
.entry-title, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.entry-title { justify-content: space-between; }
.badge { background: var(--notice); border-radius: 100px; padding: 3px 10px; font-size: .78rem; font-weight: 650; }
details { margin-top: 12px; }
summary { cursor: pointer; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .87rem; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 8px; }
th:first-child, td:first-child { white-space: nowrap; }
footer { padding: 20px; text-align: center; color: var(--muted); font-size: .85rem; }

.intro-steps { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; list-style: none; }
.intro-steps a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--card); }
.intro-steps a[aria-current=step] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.intro-steps span { font-weight: 700; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.intro-actions form { margin: 0; }
.intro-button { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; font-weight: 650; text-decoration: none; }
.intro-tasks { padding-inline-start: 1.5rem; }
.intro-tasks li + li, .connection-help p, .panel > p + p { margin-top: 8px; }
.connection-help { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.connection-help summary { font-weight: 650; }

.brand .domain-logo{max-width:120px;max-height:48px;width:auto;height:auto;object-fit:contain;}
.panel table{display:block;max-width:100%;overflow:auto;}
.panel td{overflow-wrap:anywhere;}
