/* swap-reskin-c: the ROUND TABLE (#roundtable, markup swap/sections/roundtable.html) and the KEYBOARD (#dawn) in the
   app's language (RESKIN.md; vocabulary from next/css/roundtable.css + keyboard.css and the app's team page). Section
   order, content and positions are the original's; the look changes: heavy black CJK, mono kickers, ink hairlines, app
   chat bubbles (white + ink border with a square officer-colour name tag; acid for you), the warning as the app's pink
   dashed selection with square handles, app keys with hard offset shadows. Owner bans honoured: no pill or capsule
   (every corner <= 12 px), no tilt, no glass, glow, gradient or sparkle. Frames are inset box-shadows / outlines, never
   borders, so no box changes size and the ink line still lands on the send key. Every rule is scoped under the ids. */
:is(#roundtable, #dawn) {
  --c-ink: #141414; --c-ink2: #4b4b4b; --c-mute: #8a8a8a; --c-paper: #fff; --c-mist: #f3f3f3; --c-hair: #e4e4e4;
  --c-line: #141414; --c-key: #fff; --c-key-line: #141414; --c-fn: #e4e4e4; --c-sh: #141414;
  --c-pink: #ff4f9a; --c-acid: #eeff2d; --c-cobalt: #1f2bff; --c-orange: #ff8200;
  --c-cjk: "PingFang TC", "Noto Sans TC", "Hiragino Sans", "Heiti TC", "Microsoft JhengHei", sans-serif;
  --c-grot: "Helvetica Neue", "Arial Nova", Arial, "PingFang TC", "Noto Sans TC", sans-serif;
  --c-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, "PingFang TC", monospace;
}
:root[data-theme="dark"] :is(#roundtable, #dawn) {   /* the app's D1 night: ink black, light ink, the same keys */
  --c-ink: #f2f2f5; --c-ink2: #c9c9d4; --c-mute: #8b8b99; --c-paper: #0b0b10; --c-mist: #17171e; --c-hair: #34343e;
  --c-line: #f2f2f5; --c-key: #2a2a33; --c-key-line: #5a5a68; --c-fn: #1f1f27; --c-sh: #ff4f9a;
}

/* ── shared: no sparkles, no glow; nothing tilts, floats only bob ── */
:is(#roundtable, #dawn) :is(.sparkle, .dawn__glow, .stroke__bloom) { display: none; }
:is(#roundtable, #dawn) .float { --r: 0deg; rotate: 0deg; }
:is(#roundtable, #dawn) .float > :first-child { animation-name: c-bob; }
@keyframes c-bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -6px, 0); } }

/* ── type: the app's giant CJK, a mono kicker, a plain lede ── */
:is(#roundtable .round__head, #dawn .dawn__head)::before {
  display: block; margin: 0 0 12px; font: 500 12px/1.2 var(--c-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-mute);
}
#roundtable .round__head::before { content: "Round table"; }
#dawn .dawn__head::before { content: "Keyboard"; }
:is(#roundtable .round__title, #dawn .dawn__head h2) {
  font-family: var(--c-cjk); font-weight: 900; letter-spacing: -.04em; color: var(--c-ink); text-shadow: none;
  -webkit-text-stroke: .018em currentColor; paint-order: stroke fill;
}
:is(#roundtable .round__lede, #dawn .dawn__head .lede) { font-family: var(--c-cjk); font-weight: 600; color: var(--c-ink2); text-shadow: none; }

/* ══ ROUND TABLE: the council ══ */
/* the table: the hero's orbit, one ink hairline ellipse. The five officers stand on it, upright: three at the far edge
   (管家 · 偵探 · 博士, a step smaller for depth), the two who speak at the near corners (軍師 left, 將軍 right), each
   right beside his own bubble */
#roundtable .round__table { left: 13%; right: 13%; top: 47%; bottom: 8%; height: auto; background: none; box-shadow: inset 0 0 0 1.5px var(--c-line); }
#roundtable .rc__o > img { display: block; width: 100%; height: auto; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
#roundtable .rc__o--concierge { --x: 21%; --y: 34%; --w: 19%; --z: 0; --wt: 7.6s; --wd: -1.8s; }
#roundtable .rc__o--scout { --x: 40.5%; --y: 28%; --w: 19%; --z: 0; --wt: 8.4s; --wd: -3.1s; }
#roundtable .rc__o--scientist { --x: 60%; --y: 33%; --w: 18%; --z: 0; --wt: 8.9s; --wd: -.7s; }
#roundtable .rc__o--strategist { --x: 1%; --y: 49%; --w: 24%; --z: 2; --wt: 7.2s; --wd: -1.1s; }
#roundtable .rc__o--general { --x: 76%; --y: 41%; --w: 23%; --z: 2; --wt: 7.9s; --wd: -3.6s; }
/* the voices: app chat bubbles. White, 2 px ink, 12 px corners; the sharp corner is the tail toward the speaker (軍師
   below-left, 將軍 above-right); the name is a square tag in his colour on the top edge */
#roundtable .round__c { margin: 0; --z: 4; }
#roundtable .round__c--a { --x: 1%; --y: 5%; }
#roundtable .round__c--b { left: auto; right: 1%; --y: 86%; }
#roundtable .rc__say {
  --tag: var(--c-cobalt); --tag-ink: #fff;
  position: relative; display: block; padding: 15px 15px 10px; border-radius: 12px; white-space: nowrap; text-align: left;
  background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 2px var(--c-line);
}
#roundtable .rc__say[data-teammate="commander"] { --tag: var(--c-orange); --tag-ink: #141414; }
#roundtable .rc__say--l { border-bottom-left-radius: 3px; }
#roundtable .rc__say--r { border-top-right-radius: 3px; }
#roundtable .rc__tag {
  position: absolute; left: 13px; top: 0; translate: 0 -50%; padding: 5px 7px;
  background: var(--tag); color: var(--tag-ink); font: 800 12px/1 var(--c-cjk); letter-spacing: .08em;
}
#roundtable .rc__q { display: block; font: 700 15.5px/1.4 var(--c-cjk); letter-spacing: .02em; }
@media (max-width: 359.98px) { #roundtable .rc__q { font-size: 14px; } }
@media (min-width: 1024px) {
  /* the desk stage is near square (31vw tall): the council grows into it, the table under their feet */
  #roundtable .round__table { left: 11%; right: 11%; top: 47%; bottom: 13%; }
  #roundtable .rc__o--concierge { --x: 17%; --y: 31%; --w: 22%; }
  #roundtable .rc__o--scout { --x: 39%; --y: 27%; --w: 21%; }
  #roundtable .rc__o--scientist { --x: 61%; --y: 30%; --w: 21%; }
  #roundtable .rc__o--strategist { --x: 0%; --y: 46%; --w: 29%; }
  #roundtable .rc__o--general { --x: 72%; --y: 39%; --w: 28%; }
  #roundtable .round__c--a { --x: 0%; --y: 8%; }
  #roundtable .round__c--b { right: 0%; --y: 81%; }
  #roundtable .rc__say { padding: 19px 20px 13px; }
  #roundtable .rc__tag { left: 17px; padding: 6px 9px; font-size: 13.5px; }
  #roundtable .rc__q { font-size: 19px; }
}

/* ══ KEYBOARD ══ */
#dawn { --inkk: var(--c-ink); }   /* your line and the mark: the page's ink, light ink by night */

/* the chat: theirs a bordered bubble with a square 他; yours the acid bubble with an ink edge; the time in mono */
#dawn .dchat .bubble > span:not(.dchat__avatar) { font-family: var(--c-cjk); font-weight: 600; }
#dawn .dchat .bubble--them > span:not(.dchat__avatar) { background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 2px var(--c-line); border-radius: 12px 12px 12px 3px; }
#dawn .dchat .bubble > .dchat__avatar { border-radius: 0; background: var(--c-ink); color: var(--c-paper); box-shadow: none; font: 800 13px/1 var(--c-cjk); }
#dawn .send__msg > span { background: var(--c-acid); color: #141414; box-shadow: inset 0 0 0 2px #141414; border-radius: 12px 12px 3px 12px; }
#dawn .send__msg small { font: 500 11px/1.3 var(--c-mono); letter-spacing: .1em; color: var(--c-mute); text-shadow: none; }

/* the phone-card: a white panel on one ink hairline */
#dawn .kbd { border-radius: 12px; background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line); }
#dawn .kbd__field { border-radius: 10px; background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line); font-family: var(--c-cjk); color: var(--c-ink); }
#dawn .kbd__caret { border-radius: 0; background: var(--c-ink); }
:root[data-theme="dark"] #dawn .kbd__caret { background: var(--c-acid); }
#dawn .kbd__field.is-long::before { width: 14px; background: var(--c-paper); }

/* the send key: an ink key with the pink hard shadow once sent; asleep a dashed outline; your move = the acid key */
#dawn .send__btn {
  border-radius: 12px; background: var(--c-ink); color: var(--c-paper);
  box-shadow: inset 0 0 0 2.5px var(--c-ink), 4px 4px 0 var(--c-pink);
}
#dawn .send__lime { display: none; }
#dawn[data-pre]:not([data-dawn="ready"]) .send__btn,
:root[data-theme="light"] #dawn[data-pre]:not([data-dawn="ready"]) .send__btn { background: var(--c-paper); color: var(--c-mute); box-shadow: inset 0 0 0 2px var(--c-hair); }
#dawn[data-dawn="ready"] .send__btn { background: var(--c-acid); color: #141414; box-shadow: inset 0 0 0 2.5px #141414, 4px 4px 0 var(--c-sh); }
#dawn .send__ring { border-radius: 12px; box-shadow: 0 0 0 2px var(--c-ink); }
#dawn .send__btn:focus-visible { outline: 2.5px solid var(--c-cobalt); outline-offset: 4px; }
#dawn .send__btn .dawn-ring { border-radius: 12px; }

/* the keyboard: a mist board of app keys (white, ink edge, hard ink offset) */
#dawn .kbd__board { border-radius: 10px; background: var(--c-mist); }
#dawn .kbd__keys i { border-radius: 4px; background: var(--c-key); color: var(--c-ink); font: 700 12.5px/1 var(--c-grot); box-shadow: inset 0 0 0 1.5px var(--c-key-line), 1.5px 1.5px 0 var(--c-key-line); }
#dawn .kbd__keys .kbd__fn { background: var(--c-fn); }

/* the warning: the app's selection. A paper box in a 1.5 px pink dashed frame, four square handles on its corners (one
   pseudo, eight flat layers: a pink 9 px square under a paper 6 px one per corner), and the square pink tag 打字預警
   on the top edge over the text column. The tag leaves the flow, so the box keeps its height */
#dawn .kbd__warn {
  --tag-x: 54px; border-radius: 0; padding: 15px 12px 9px 8px; background: var(--c-paper); box-shadow: none;
  outline: 1.5px dashed var(--c-pink); outline-offset: 0;
}
#dawn .kbd__warn::before { content: none; }
#dawn .kbd__warn::after {
  content: ""; position: absolute; inset: -5.25px; z-index: 2; pointer-events: none; padding: 0; opacity: 1; border-radius: 0; -webkit-mask: none; mask: none;
  background:
    linear-gradient(var(--c-paper) 0 0) left 1.5px top 1.5px / 6px 6px no-repeat,
    linear-gradient(var(--c-paper) 0 0) right 1.5px top 1.5px / 6px 6px no-repeat,
    linear-gradient(var(--c-paper) 0 0) left 1.5px bottom 1.5px / 6px 6px no-repeat,
    linear-gradient(var(--c-paper) 0 0) right 1.5px bottom 1.5px / 6px 6px no-repeat,
    linear-gradient(var(--c-pink) 0 0) left top / 9px 9px no-repeat,
    linear-gradient(var(--c-pink) 0 0) right top / 9px 9px no-repeat,
    linear-gradient(var(--c-pink) 0 0) left bottom / 9px 9px no-repeat,
    linear-gradient(var(--c-pink) 0 0) right bottom / 9px 9px no-repeat;
}
#dawn .kbd__warn b {
  position: absolute; z-index: 3; left: var(--tag-x); top: 0; translate: 0 -50%; padding: 5px 7px;
  background: var(--c-pink); color: #fff; font: 800 12px/1 var(--c-cjk); letter-spacing: .1em;
}
#dawn .kbd__warn p { font-family: var(--c-cjk); color: var(--c-ink2); }
#dawn .kbd__who img { border-radius: 0; background: none; box-shadow: none; }
#dawn .kbd__badge,
:root:not([data-theme="light"]) #dawn .kbd__badge { border-radius: 0; min-width: 16px; height: 16px; background: var(--c-ink); color: var(--c-paper); box-shadow: none; font: 800 11px/1 var(--c-grot); }

/* the fix: a quiet hairline row once done; your move = the acid key with an ink edge and a hard shadow */
#dawn .kbd__fix { border-radius: 10px; color: var(--c-ink2); }
#dawn .kbd__fix::before, #dawn .kbd__fix .kbd__face::after, #dawn .fix__glow { display: none; }
#dawn .kbd__face { border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--c-hair); font-family: var(--c-cjk); }
#dawn .kbd__face::before { background: var(--c-acid); box-shadow: inset 0 0 0 2.5px #141414, 4px 4px 0 var(--c-sh); }
#dawn[data-dawn="caught"] .kbd__face { box-shadow: none; }
#dawn[data-dawn="caught"] .kbd__fix, #dawn[data-dawn="caught"] :is(.kbd__from, .kbd__arr, .kbd__to) { color: #141414; }
#dawn .kbd__from::after,
:root:not([data-theme="light"]) #dawn .kbd__from::after { border-radius: 0; background: var(--c-pink); }
#dawn .kbd__done { stroke: var(--c-ink); }
:root:not([data-theme="light"]) #dawn .kbd__done { stroke: var(--c-acid); }
#dawn .kbd__fix .dawn-ring { border-radius: 12px; }
#dawn .kbd__fix:focus-visible { outline: 2.5px solid var(--c-cobalt); outline-offset: 4px; }
#dawn .kbd__bad { text-decoration-color: var(--c-pink); }
#dawn .kbd__good::before { border-radius: 0; background: var(--c-acid); }
#dawn .kbd__cap { font: 500 11px/1.5 var(--c-mono); letter-spacing: .06em; }
#dawn .kbd__fine { color: var(--c-mute); }

/* the brand's hand: straight, heavy, ink */
#dawn :is(.fix__go, .send__go) { rotate: 0deg; font-family: var(--c-cjk); font-weight: 900; letter-spacing: -.01em; color: var(--c-ink); text-shadow: none; -webkit-text-stroke: .018em currentColor; paint-order: stroke fill; }
#dawn :is(.fix__hint .fix__arrow, .send__hint .send__arrow) { --ink-color: var(--c-ink); }

/* desk sizes (desktop.css set 32 / 26 / 22 px corners there): the same vocabulary, capped at 12 px */
@media (min-width: 1024px) {
  #dawn .kbd { border-radius: 12px; }
  #dawn .kbd__field { border-radius: 10px; }
  #dawn .send__btn { border-radius: 12px; box-shadow: inset 0 0 0 2.5px var(--c-ink), 5px 5px 0 var(--c-pink); }
  #dawn[data-dawn="ready"] .send__btn { box-shadow: inset 0 0 0 2.5px #141414, 5px 5px 0 var(--c-sh); }
  #dawn .kbd__board { border-radius: 10px; }
  #dawn .kbd__keys i { border-radius: 5px; font-size: 14px; }
  #dawn .kbd__warn { --tag-x: 62px; padding: 17px 14px 11px 10px; }
  #dawn .kbd__warn b { padding: 6px 8px; font-size: 13px; }
  #dawn .kbd__face { border-radius: 10px; }
  #dawn .kbd__cap { font-size: 12px; }
}
