:root {
  color-scheme: light;
  --ink: #2c2630;
  --muted: #69616d;
  --line: #e4dfe3;
  --paper: #fbfaf8;
  --white: #fff;
  --purple: #66437f;
  --deep: #493354;
  --lav: #eee6f3;
  --mint: #e1eee6;
  --yellow: #f6ebce;
  --serif: Georgia, "Times New Roman", serif;
  font: 15px/1.55 system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, ul, dl { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-140%); z-index: 2; background: white; padding: 8px; }
.skip:focus { transform: none; }
.frame { min-height: 100dvh; display: grid; grid-template-columns: 222px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; padding: 25px 15px; border-right: 1px solid var(--line); background: #f5f3f1; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 660; margin-bottom: 24px; }
.brandmark { width: 25px; height: 25px; border-radius: 7px; background: var(--deep); display: inline-grid; place-items: center; color: white; font-size: 13px; }
.project-switch { background: white; border: 1px solid var(--line); width: 100%; border-radius: 9px; text-align: left; padding: 10px; margin-bottom: 20px; overflow-wrap: anywhere; }
.sidebar nav { display: grid; gap: 4px; }
.navlink { border: 0; border-radius: 8px; background: transparent; text-align: left; padding: 8px 10px; color: var(--muted); }
.navlink[aria-current="page"], .navlink:hover { background: var(--lav); color: var(--deep); }
.topbar { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); }
main { width: min(100%, 1300px); margin-inline: auto; padding: 30px clamp(16px, 4vw, 48px) 60px; }
.gate { width: min(calc(100% - 32px), 620px); margin: min(18vh, 130px) auto; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.gate .brand { margin-bottom: 16px; }
h1 { font: 400 clamp(28px, 3.5vw, 44px)/1.08 var(--serif); }
h2 { font: 400 clamp(21px, 2.5vw, 32px)/1.16 var(--serif); overflow-wrap: anywhere; }
h3 { font-size: 15px; font-weight: 650; }
.page-heading { margin-bottom: 19px; }
.meta, .page-heading p { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.lead { margin-block: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: center; gap: 14px; min-height: 225px; border: 1px solid #d8c9dd; border-radius: 19px; padding: clamp(24px, 4vw, 52px); background: #e9dfef; margin-bottom: 20px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); }
.hero-art { position: absolute; z-index: -1; width: 190px; height: 120px; right: 10%; bottom: 4%; transform: rotate(-18deg) skew(16deg); opacity: .55; }
.hero-art i { position: absolute; inset: 0 0 70px; margin-top: calc(var(--layer) * 20px); border: 2px solid #9c7caa; border-radius: 9px; background: #f4edf5; box-shadow: 4px 9px 0 #d3bfdb; }
.hero-art i:nth-child(1) { --layer: 3; }
.hero-art i:nth-child(2) { --layer: 2; }
.hero-art i:nth-child(3) { --layer: 1; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.button, .chip { border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 8px 12px; line-height: 1.35; font-size: 14px; }
.button:hover, .chip:hover { border-color: var(--purple); }
.primary { background: var(--deep); border-color: var(--deep); color: white; }
.danger { color: #79373f; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.chip[aria-pressed="true"] { color: var(--deep); background: var(--lav); border-color: #c8b0d1; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 650; }
input, textarea { width: 100%; padding: 9px 12px; border: 1px solid #cfc8d1; border-radius: 8px; background: white; }
textarea { min-height: 105px; resize: vertical; }
.searchbar { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; max-width: 760px; }
.searchbar:not(.question) .button { min-height: 43px; }
.searchbar.question { display: block; }
.searchbar.question button { margin-top: 9px; }
.split { display: grid; grid-template-columns: minmax(200px, .85fr) minmax(290px, 1.4fr); gap: 18px; align-items: start; }
.list, .panel, .entry, .notice { border: 1px solid var(--line); border-radius: 11px; background: white; }
.panel { padding: clamp(16px, 2.4vw, 27px); min-width: 0; }
.entry { width: 100%; display: grid; gap: 3px; text-align: left; padding: 12px 14px; overflow-wrap: anywhere; }
.list { display: grid; gap: 0; overflow: hidden; }
.list .entry { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.list .entry:last-child { border-bottom: 0; }
.entry:hover, .entry[aria-current="true"] { background: #f6f0f9; }
.entry[aria-current="true"] { box-shadow: inset 3px 0 var(--purple); }
.section + .section { margin-top: 15px; }
.stack { display: grid; gap: 12px; }
.space { margin-top: 16px; }
.notice { min-width: 0; padding: 13px 14px; }
.notice[data-tone="error"] { background: #fdf0f1; }
.notice[data-tone="warning"] { background: #fcf5e5; }
.badge { display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 20px; background: var(--mint); font-size: 12px; }
.detail-value { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.diff .panel { padding: 10px; }
.before { background: #fcf0f0; }
.after { background: #edf5ef; }
dialog { width: min(590px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 13px; padding: 0; color: var(--ink); max-height: 85dvh; }
dialog::backdrop { background: #241b2a66; }
.dialog-body { padding: clamp(15px, 3vw, 25px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
button[hidden], [hidden] { display: none; }
@media (max-width: 850px) {
  .frame { grid-template-columns: 165px minmax(0, 1fr); }
  .sidebar { padding-inline: 9px; }
}
@media (max-width: 690px) {
  .frame { display: block; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 9px 14px; }
  .sidebar .brand, .project-switch { margin-bottom: 7px; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .split, .diff { grid-template-columns: minmax(0, 1fr); }
  main { padding-top: 22px; }
  .hero-art { right: -35px; opacity: .35; }
}
