/* 跟我读: plum blossom and jade. Warm paper, her jade and his blue as on
   the board, plum blossoms on a brown branch; the name in a brush hand
   (Ma Shan Zheng), headings in Fraunces, text in Figtree. Every font is
   served from here, not from a font CDN that some teachers in China can't
   reach; the two Chinese display faces are cut down to the characters
   the pages use them for (see "Chinese display faces" below). */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(fonts/figtree-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(fonts/figtree-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/fraunces-latin-full-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/fraunces-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Chinese display faces, cut down to what the pages set in them, with
   fonttools (the full fonts are 6 MB each):
     pyftsubset MaShanZheng-Regular.ttf --text="跟我读" --flavor=woff2 \
       --layout-features='*' --output-file=genwodu-brush.woff2
     pyftsubset ZCOOLXiaoWei-Regular.ttf --flavor=woff2 --layout-features='*' \
       --text="在Miro白板上练习普通话声调老师读学生跟读看声调你好！跟我读" \
       --output-file=genwodu-xiaowei.woff2
   A new character in .brush or .accent text needs the font cut again:
   one it lacks falls back to the next face, and shows. */
@font-face {
  font-family: "Genwodu Brush";
  font-display: block;
  src: url(fonts/genwodu-brush.woff2) format("woff2");
}
@font-face {
  font-family: "Genwodu Accent";
  font-display: swap;
  src: url(fonts/genwodu-xiaowei.woff2) format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f7f3ea;
  --surface: #fffdf8;
  --surface-2: #fbf7ef;
  --ink: #26312b;
  --muted: #5f6a64;
  --line: #e6dfd1;
  --dash: #d3cab8;
  /* Hers and his, as on the board. */
  --teacher: #1e7458;
  --teacher-hover: #165c45;
  --teacher-soft: #dcefe6;
  --student: #4a63e0;
  --student-soft: #e6e9fd;
  /* The plum branch. */
  --petal: #f7d6dd;
  --petal-white: #fff8f4;
  --plum: #c7778c;
  --plum-ink: #9e4d63;
  --pollen: #e3b23c;
  --bud: #e9a4b4;
  --branch: #6b4a3a;
  --record: #d6453a;
  --on-accent: #ffffff;
  --warn: #8a5a12;
  --warn-soft: #f7ecd6;
  --danger: #b3372d;
  --danger-soft: #f9e2df;
  --shadow: 0 1px 2px rgb(38 49 43 / 4%), 0 8px 24px rgb(38 49 43 / 6%);
  --focus: 0 0 0 3px rgb(30 116 88 / 30%);

  --sans: "Figtree", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --display: "Fraunces", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --han-serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --brush: "Genwodu Brush", "Kaiti SC", "STKaiti", "KaiTi", serif;
  --accent: "Genwodu Accent", "Songti SC", "Noto Serif CJK SC", serif;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #161a17;
    --surface: #1f2521;
    --surface-2: #1a1f1c;
    --ink: #ecefe9;
    --muted: #a7b0aa;
    --line: #2f3832;
    --dash: #45514a;
    --teacher: #6cc2a0;
    --teacher-hover: #88d1b4;
    --teacher-soft: #1e3329;
    --student: #93a1ff;
    --student-soft: #252a4a;
    --petal: #e7bcc6;
    --petal-white: #f3e6e2;
    --plum: #b8687d;
    --plum-ink: #e6a3b4;
    --pollen: #d9a93c;
    --bud: #c98a9c;
    --branch: #a07c68;
    --record: #f07a6f;
    --on-accent: #10160f;
    --warn: #e4b46a;
    --warn-soft: #3a2f1c;
    --danger: #f08b82;
    --danger-soft: #3e2422;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    --focus: 0 0 0 3px rgb(108 194 160 / 35%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161a17;
  --surface: #1f2521;
  --surface-2: #1a1f1c;
  --ink: #ecefe9;
  --muted: #a7b0aa;
  --line: #2f3832;
  --dash: #45514a;
  --teacher: #6cc2a0;
  --teacher-hover: #88d1b4;
  --teacher-soft: #1e3329;
  --student: #93a1ff;
  --student-soft: #252a4a;
  --petal: #e7bcc6;
  --petal-white: #f3e6e2;
  --plum: #b8687d;
  --plum-ink: #e6a3b4;
  --pollen: #d9a93c;
  --bud: #c98a9c;
  --branch: #a07c68;
  --record: #f07a6f;
  --on-accent: #10160f;
  --warn: #e4b46a;
  --warn-soft: #3a2f1c;
  --danger: #f08b82;
  --danger-soft: #3e2422;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  --focus: 0 0 0 3px rgb(108 194 160 / 35%);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
h1, h2 { font-family: var(--display); font-weight: 600; }
h1 { font-size: 2rem; line-height: 1.15; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
/* Chinese headings: the board's text face, from Fraunces's fallbacks, a
   step lighter than its Latin, which a serif Han face at 600 isn't. */
:lang(zh) h1, :lang(zh) h2 { font-weight: 500; letter-spacing: 0; }
/* The name, in the brush hand; and Chinese set for its looks. */
/* Both draw small letters in a roomy em: drawn closer, they read as a
   word. */
.brush { font-family: var(--brush); font-weight: 400; letter-spacing: -0.04em; }
.accent { font-family: var(--accent); font-weight: 400; letter-spacing: -0.05em; }

p { margin: 0 0 0.9rem; }
a { color: var(--teacher); text-underline-offset: 0.2em; }
a:hover { color: var(--teacher-hover); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

.hint { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

/* The bar along the top: the name, who's signed in, the language, the
   theme, and signing out. */
.top {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .name-zh { font-size: 2rem; line-height: 1; color: var(--teacher); }
.brand .name-en { color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.mark { width: 2.6rem; height: 2.6rem; flex: none; }
.top-right { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.75rem; }
.who { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--teacher-soft);
  color: var(--teacher);
  font-weight: 700;
}
.top form { margin: 0; }
.admin-link { font-weight: 700; font-size: 0.9rem; text-decoration: none; }

/* The language menu. */
.lang { display: flex; align-items: center; gap: 0.3rem; margin: 0; color: var(--muted); }
.lang svg { width: 1rem; height: 1rem; }
.lang select {
  font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.7rem; cursor: pointer;
}
.lang select:focus { outline: none; border-color: var(--teacher); box-shadow: var(--focus); }

/* Light, dark, or as the device is. */
.theme { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.theme button {
  display: grid; place-items: center; width: 2rem; height: 1.75rem;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer;
}
.theme button[aria-pressed="true"] { background: var(--teacher-soft); color: var(--teacher); }
.theme svg { width: 1rem; height: 1rem; }

main { max-width: 52rem; margin: 0 auto; padding: 0.5rem 1.25rem 4rem; }
body.wide main, body.wide .top, body.wide .dev { max-width: 84rem; }
body.roomy main, body.roomy .top, body.roomy .dev { max-width: 68rem; }

.dev { max-width: 52rem; margin: 0 auto 0.5rem; padding: 0 1.25rem; font-size: 0.85rem; color: var(--warn); }
.dev span {
  display: inline-block; padding: 0.15rem 0.7rem;
  border: 1px dashed var(--warn); border-radius: 999px; background: var(--warn-soft);
}

.greeting { margin: 1.5rem 0 1.75rem; }
.greeting h1 { margin-bottom: 0.25rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.card-lead { color: var(--muted); margin-top: -0.25rem; }
.card h3 { margin-top: 1.25rem; }
.welcome { max-width: 34rem; margin: 3rem auto; padding: 2.5rem 2rem; }
.welcome .mark { width: 4.5rem; height: 4.5rem; margin-bottom: 0.75rem; }
.welcome form + p { margin-top: 1rem; }

/* Buttons: her green, as the panel's. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--teacher);
  border-radius: 999px;
  background: var(--teacher);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.button:hover { background: var(--teacher-hover); border-color: var(--teacher-hover); color: var(--on-accent); }
.button.quiet { background: transparent; color: var(--teacher); }
.button.quiet:hover { background: var(--teacher-soft); color: var(--teacher); }
.button.small { min-height: 2rem; padding: 0.3rem 0.85rem; font-size: 0.875rem; }
.button.big { padding: 0.8rem 1.6rem; font-size: 1.05rem; }
.button svg { width: 1em; height: 1em; flex: none; }
.button.copied { background: var(--student); border-color: var(--student); color: var(--on-accent); }

/* Numbered steps, for adding the app to Miro. */
.steps { margin: 0.75rem 0 1rem; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0.75rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: start; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--teacher-soft); color: var(--teacher); font-weight: 700;
}
.steps li > div { padding-top: 0.2rem; }

/* A gentle note, and the dashed box the panel uses for "nothing yet". */
.notice { padding: 0.9rem 1.1rem; border-radius: 12px; background: var(--warn-soft); color: var(--ink); }
.notice p:last-child { margin-bottom: 0; }
.waiting {
  padding: 1.25rem; border: 1.5px dashed var(--dash); border-radius: var(--radius);
  background: var(--surface-2); color: var(--muted);
}
.waiting p:last-child { margin-bottom: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.12rem 0.65rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; background: var(--surface-2); color: var(--muted);
}
.pill::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.pill.active { background: var(--teacher-soft); color: var(--teacher); }
.pill.failing { background: var(--danger-soft); color: var(--danger); }

.empty { color: var(--muted); font-style: italic; }

/* Forms on the admin page. */
.add-form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.4rem 0 1rem; }
.field {
  flex: 1 1 18rem; display: flex; align-items: center; gap: 0.5rem; padding: 0 0.9rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted);
}
.field:focus-within { border-color: var(--teacher); box-shadow: var(--focus); }
.field input { flex: 1; min-width: 0; padding: 0.6rem 0; border: 0; background: transparent; color: var(--ink); font: inherit; outline: none; }
form.inline { display: inline-block; margin: 0 0 0 0.3rem; }

/* The admin page: numbers at a glance, then tables that scroll sideways
   on a phone rather than squeeze. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.15rem;
}
.tile b { font-size: 1.9rem; font-weight: 700; color: var(--teacher); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { font-weight: 700; }
.tile small { color: var(--muted); font-size: 0.85rem; }
.table-wrap { overflow-x: auto; margin: 0 -0.5rem; padding: 0 0.5rem; }
table.admin { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.admin th {
  text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); font-weight: 700; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.admin td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.admin tbody tr:last-child td { border-bottom: none; }
table.admin .strong { font-weight: 700; }
table.admin tr.removed td { opacity: 0.7; }
table.admin .pill, .when { white-space: nowrap; }
.when { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

/* The plum branch: blossoms, buds and falling petals, in the theme's
   colors (layout.html's "blossom", "hero-art" and "sprig"). */
.petals { fill: var(--petal); stroke: var(--plum); stroke-width: 1.2; }
.white .petals, .petal.white { fill: var(--petal-white); }
.pollen { fill: var(--pollen); }
.bud { fill: var(--bud); stroke: var(--plum); stroke-width: 1.2; }
.petal { fill: var(--petal); stroke: var(--plum); stroke-width: 1; }
.branch { fill: none; stroke: var(--branch); stroke-linecap: round; }
.bubble path { fill: var(--surface); stroke-width: 2; }
.bubble text { font-family: var(--accent); letter-spacing: -0.05em; }
.bubble.hers path { stroke: var(--teacher); }
.bubble.hers text { fill: var(--teacher); }
.bubble.his path { fill: var(--student-soft); stroke: var(--student); }
.bubble.his text { fill: var(--student); }

/* The welcome page: the words, and the birds on their branch; then what
   the app does, in three. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1rem 2rem;
  align-items: center;
  margin: 1.5rem 0 2.5rem;
}
.hero-words { display: flex; flex-direction: column; gap: 1.1rem; }
.hero-words h1 { font-size: 3.2rem; line-height: 1.06; letter-spacing: -0.015em; margin: 0; }
:lang(zh) .hero-words h1 { font-size: 2.8rem; line-height: 1.2; }
.hero-words .lead { font-size: 1.15rem; color: var(--muted); margin: 0; }
.hero-words .accent { font-size: 1.45rem; color: var(--plum-ink); }
.hero-go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.1rem; margin-top: 0.4rem; }
.hero-go .hint { max-width: 15rem; line-height: 1.4; margin: 0; }
.hero-art { width: 100%; height: auto; }
.button.big.glow { box-shadow: 0 6px 18px rgb(30 116 88 / 25%); }

.threes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.threes li {
  display: flex; gap: 0.9rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.threes .badge { width: 3.1rem; height: 3.1rem; flex: none; border-radius: 14px; display: grid; place-items: center; }
.threes .badge svg { width: 1.6rem; height: 1.6rem; }
.threes .hers { background: var(--teacher-soft); color: var(--teacher); }
.threes .his { background: var(--student-soft); color: var(--student); }
.threes .both { background: color-mix(in srgb, var(--petal) 45%, transparent); color: var(--plum-ink); }
.threes b { display: block; font-size: 1.02rem; }
.threes .hint { display: block; }
.threes b .accent { display: block; font-size: 1.15rem; line-height: 1.3; }
.threes .hers-text { color: var(--teacher); }
.threes .his-text { color: var(--student); }
.threes .both-text { color: var(--plum-ink); }
.threes span.hint { font-size: 0.93rem; }

/* A signed-in page's greeting, with a sprig beside it. */
.greeting.with-sprig { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.sprig { width: 11rem; height: auto; flex: none; margin-bottom: -0.5rem; }

/* Consent (WEB.md §11): the notice, the boxes to tick, and the forms
   around them. */
.prose { max-width: 44rem; margin: 1.5rem auto; }
.prose h1 { margin-bottom: 0.25rem; }
.notice-text h3 { margin: 1.25rem 0 0.35rem; }
.notice-text p { margin-bottom: 0.6rem; }
.notice-box { margin: 0.5rem 0 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.notice-box > summary { cursor: pointer; padding: 0.7rem 1rem; font-weight: 700; color: var(--teacher); }
.notice-box > .notice-text { padding: 0 1rem 0.5rem; }
.notice-box > .notice-text h3:first-child { margin-top: 0.25rem; }
details.card.notice-box { padding: 0; background: var(--surface); }
details.card.notice-box > summary { padding: 1.1rem 1.5rem; }
details.card.notice-box > .notice-text { padding: 0 1.5rem 1rem; }

.stack { display: grid; gap: 0.9rem; margin: 0; }
.stack p { margin: 0; }
.checks { display: grid; gap: 0.6rem; padding: 0.9rem 1rem; border-radius: 12px; background: var(--teacher-soft); }
.check { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.6rem; align-items: start; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--teacher); }
.text-field { display: grid; gap: 0.3rem; }
.text-field > span { font-weight: 700; font-size: 0.95rem; }
.text-field small { color: var(--muted); font-size: 0.85rem; }
.text-field input, .text-field select {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.8rem; max-width: 28rem;
}
.text-field input:focus, .text-field select:focus { outline: none; border-color: var(--teacher); box-shadow: var(--focus); }
.text-field.bad input, .checks.bad { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger-soft); }
.notice[role="alert"] { background: var(--danger-soft); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; margin: 1rem 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.actions form.inline { margin: 0; }
.button.danger { background: var(--danger); border-color: var(--danger); }
.button.danger:hover { background: var(--danger); border-color: var(--danger); filter: brightness(1.1); }

/* The teacher's list of guardians' consents, one row a student. */
.consents { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.consents li {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between; align-items: flex-start;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
}
.consents li:last-child { border-bottom: none; }
.consents .strong { font-weight: 700; }
.consents .state { display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; text-align: right; }
.consents .ask { margin: 0; max-width: 24rem; font-size: 0.95rem; }
.consents .actions { justify-content: flex-end; }
.send-link { display: flex; gap: 0.4rem; margin: 0; }
.send-link input {
  font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--bg); min-width: 0; width: 13rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem;
}
.send-link input:focus { outline: none; border-color: var(--teacher); box-shadow: var(--focus); }

/* Dev mode's pretend panel: as narrow as Miro's. */
.panel-frame {
  max-width: 22rem; padding: 1.25rem; border: 1.5px dashed var(--dash); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.panel-frame h2 { font-size: 1.15rem; }
.link-box { display: flex; gap: 0.5rem; align-items: center; padding: 0.5rem; margin-bottom: 0.75rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.link-box code { flex: 1; min-width: 0; font-size: 0.8rem; overflow-wrap: anywhere; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1fr); margin-top: 0.5rem; }
  .hero-art { order: -1; max-width: 26rem; margin: 0 auto; }
  .hero-words h1 { font-size: 2.3rem; }
  :lang(zh) .hero-words h1 { font-size: 2.1rem; }
  .threes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 40rem) {
  .top { flex-wrap: wrap; gap: 0.5rem; }
  .top-right { margin-left: 0; justify-content: flex-start; gap: 0.5rem; }
  .who .name, .brand .name-en, .lang svg, .sprig { display: none; }
  .card { padding: 1.15rem; }
  .consents .state { align-items: flex-start; text-align: left; }
  .consents .actions { justify-content: flex-start; }
}
@media (max-width: 30rem) { .admin-link { display: none; } }

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