:root {
  color-scheme: light;
  --paper: #fcfaff;
  --paper-muted: #f6f1ff;
  --panel: #eee6fa;
  --ink: #1c1632;
  --ink-deep: #1c1632;
  --violet: #6445c1;
  --violet-hover: #5234ac;
  --lavender: #b89dff;
  --muted: #605672;
  --line: #e0d6ef;
  --line-strong: #9a8cac;
  --radius-panel: 10px;
  --radius-tile: 18px;
  --radius-input: 30px;
  --radius-pill: 9999px;
  --font-display: Georgia, "Songti SC", "Times New Roman", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --content-width: 1320px;
  font: 15px/1.55 var(--font-ui);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); line-height: 1.05; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.16; }
h3 { font-size: 1.15rem; line-height: 1.35; }
p { color: var(--muted); }
a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--lavender); color: var(--ink); }

.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; font: 750 1.85rem/1 var(--font-ui); letter-spacing: -.055em; text-decoration: none; width: fit-content; }
.brand-mark { position: relative; display: inline-block; flex: none; width: 1.05em; aspect-ratio: 1; background: var(--brand-mark, var(--violet)); border-radius: 50%; }
.brand-mark::before { content: ''; position: absolute; inset: 15% 18% 28%; background: var(--brand-cutout, var(--paper)); clip-path: polygon(62% 0, 71% 3%, 76% 22%, 83% 42%, 99% 76%, 98% 84%, 82% 92%, 55% 97%, 14% 100%, 0 96%, 3% 87%, 26% 61%, 47% 31%); }
.brand-mark::after { content: ''; position: absolute; right: -6%; bottom: 1%; width: 37%; height: 18%; border-radius: var(--radius-pill); transform: rotate(45deg); background: inherit; }
button, input, textarea, select { font: inherit; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.primary { color: #fff; background: var(--violet); border-color: var(--violet); }
.primary:hover { background: var(--violet-hover); border-color: var(--violet-hover); }
.secondary { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.secondary:hover { background: var(--panel); border-color: var(--ink); }
.primary:focus-visible { outline-color: var(--ink); }
button:disabled { opacity: .55; cursor: wait; }

code, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre { margin: 0; overflow: auto; padding: clamp(14px, 3vw, 24px); font-size: .87rem; line-height: 1.65; }
.terminal { background: var(--ink-deep); color: var(--paper); border-radius: var(--radius-panel); }

#view { display: grid; gap: 18px; padding: clamp(28px, 5vw, 62px) 0; min-width: 0; }
#notice:not(:empty) { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--line); background: var(--paper-muted); border-radius: var(--radius-panel); }
.actions { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.card { display: grid; justify-items: start; gap: 14px; padding: clamp(16px, 2.5vw, 26px); min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper-muted); }
.card > * { max-width: 100%; }
.card > .terminal, .card > .table-wrap { width: 100%; }
form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
label { display: grid; gap: 5px; min-width: 0; font-size: .88rem; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-panel); color: var(--ink); background: var(--paper); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .88rem; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: .8rem; font-weight: 600; white-space: nowrap; }
td { overflow-wrap: anywhere; }
td button { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
