:root {
  --ink: #1c1610;
  --panel: rgba(30, 23, 17, 0.9);
  --panel-line: rgba(232, 214, 176, 0.16);
  --cream: #f4ead6;
  --muted: #b9aa8f;
  --gold: #d8b46a;
  --clay: #c8623f;
  --sage: #7fa08a;
  --radius: 14px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--ink);
  color: var(--cream);
  font: 15px/1.45 var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
h2 { font-size: 21px; letter-spacing: 0.01em; }
h3 { font-size: 13px; font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin: 18px 0 8px; }

.brand { font-size: clamp(26px, 3.2vw, 40px); line-height: 1; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.brand span { color: var(--gold); font-style: italic; }

.center-note { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; background: var(--ink); z-index: 20; }
.center-note p { color: var(--muted); margin: 0; }
body:not([data-mode='loading']) #loading { display: none; }

/* ------------------------------------------------------------ menu */
#menu { position: fixed; inset: 0; pointer-events: none; }
.masthead { position: absolute; top: 22px; left: 0; right: 0; text-align: center; }
.masthead p { margin: 6px 0 0; color: var(--muted); font-family: var(--serif); font-style: italic; text-shadow: 0 1px 8px #000; }

.panel {
  position: absolute; top: 24px; bottom: 24px; width: min(372px, calc(100vw - 32px));
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius);
  padding: 20px; overflow-y: auto; pointer-events: auto;
  backdrop-filter: blur(8px); scrollbar-width: thin; scrollbar-color: rgba(232, 214, 176, 0.25) transparent;
}
#wardrobe { left: 24px; }
#lobby { right: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.field { display: grid; gap: 5px; }
.field > span { font-size: 12px; color: var(--muted); }
input[type='text'] {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--panel-line);
  background: rgba(0, 0, 0, 0.28); color: var(--cream); font: inherit; outline: none;
}
input[type='text']::placeholder { color: rgba(185, 170, 143, 0.6); }
input[type='text']:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.2); }
#code { text-transform: uppercase; letter-spacing: 0.3em; font-weight: 600; font-family: ui-monospace, Consolas, monospace; }

.btn, .tool, .link-btn, .icon-btn, .tile, .chip .code { font: inherit; color: inherit; cursor: pointer; }
.btn {
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--panel-line);
  background: rgba(244, 234, 214, 0.08); font-weight: 600; white-space: nowrap;
}
.btn:hover { background: rgba(244, 234, 214, 0.16); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #2a1e0e; }
.btn.primary:hover { background: #e6c57f; }
.btn:focus-visible, .tool:focus-visible, .tile:focus-visible, .picker:focus-visible, .link-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { background: none; border: 0; font-size: 24px; line-height: 1; padding: 0 4px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile {
  display: grid; gap: 2px; justify-items: center; padding: 4px 2px 6px; border-radius: 12px;
  background: rgba(244, 234, 214, 0.05); border: 2px solid transparent; min-width: 0;
}
.tile img { width: 100%; aspect-ratio: 1; border-radius: 8px; background: radial-gradient(circle at 50% 35%, #5d4a37, #2e241b); display: block; }
.tile span { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile:hover { background: rgba(244, 234, 214, 0.12); }
.tile[aria-checked='true'], .tile[aria-pressed='true'] { border-color: var(--gold); background: rgba(216, 180, 106, 0.14); }
.tile[aria-checked='true'] span, .tile[aria-pressed='true'] span { color: var(--cream); }

/* one strip of options per layer of the character */
.layer { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; margin-bottom: 6px; }
.layer > span { font-size: 12px; color: var(--muted); }
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; scrollbar-color: rgba(232, 214, 176, 0.25) transparent; }
.strip .tile { flex: 0 0 58px; padding: 3px 2px 4px; border-radius: 10px; }
.strip .tile span { font-size: 10px; }

.row { display: flex; gap: 8px; align-items: center; }
.row.spread { justify-content: space-between; margin-top: 12px; }
#extras .tile { width: calc(25% - 6px); }
/* colours: one picker per row, showing the colour it is set to */
.palette { display: grid; grid-template-columns: 62px 64px 1fr; align-items: center; gap: 10px; margin-bottom: 8px; }
.palette > label { font-size: 12px; color: var(--muted); cursor: pointer; }
.picker { appearance: none; -webkit-appearance: none; width: 64px; height: 30px; padding: 0; overflow: hidden; border-radius: 999px; border: 2px solid rgba(244, 234, 214, 0.35); background: none; cursor: pointer; }
.picker:hover { border-color: var(--gold); }
.picker::-webkit-color-swatch-wrapper { padding: 0; }
.picker::-webkit-color-swatch { border: 0; }
.picker::-moz-color-swatch { border: 0; }
/* nothing picked yet (hair, beard, extras keep each piece's own colour): show a mix instead */
.picker.unset { background: linear-gradient(90deg, #17120f 0 25%, #c9a45c 0 50%, #8f8f8f 0 75%, #a8452c 0); }
.picker.unset::-webkit-color-swatch { opacity: 0; }
.picker.unset::-moz-color-swatch { opacity: 0; }
.palette .reset { justify-self: start; font-size: 12px; padding: 0; }
#randomize { margin-top: 8px; }

.code-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; }
.rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rooms li { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 10px; background: rgba(244, 234, 214, 0.06); }
.rooms .room-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--serif); font-size: 16px; }
.rooms .room-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.rooms .empty { color: var(--muted); font-style: italic; background: none; padding-left: 0; }
.rooms .btn { padding: 6px 12px; }
.switch { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.switch input { accent-color: var(--gold); width: 16px; height: 16px; }
.status { color: var(--clay); font-size: 13px; min-height: 1.4em; margin: 12px 0 0; }

/* the wardrobe doubles as a drawer while in a room */
body[data-mode='room'] #menu .masthead, body[data-mode='room'] #lobby { display: none; }
body[data-mode='room'] #wardrobe:not(.open) { display: none; }
body[data-mode='room'] #wardrobe-close { display: block !important; }

/* ------------------------------------------------------------ hud */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud > * { pointer-events: auto; }
.chip { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-line); white-space: nowrap; }
.chip strong { font-family: var(--serif); font-size: 16px; }
.chip .code { background: rgba(216, 180, 106, 0.16); border: 0; border-radius: 6px; padding: 2px 8px; color: var(--gold); font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: 0.18em; }
.chip span { color: var(--muted); font-size: 13px; }
.people { position: absolute; top: 16px; right: 16px; list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 4px; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 12px; font-size: 13px; max-width: 200px; }
.people li { display: flex; gap: 8px; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex: none; }
.people li.muted::before { background: transparent; box-shadow: inset 0 0 0 2px var(--clay); }
.people li.me { color: var(--gold); }
.people .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.people .device { flex: none; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--panel-line); border-radius: 999px; padding: 0 6px; }
.people li.away { opacity: 0.55; }

.crosshair { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: rgba(244, 234, 214, 0.7); pointer-events: none !important; }
.hint { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(28, 22, 16, 0.7); color: var(--cream); font-size: 13px; pointer-events: none !important; }
.hint:empty { display: none; }

.toolbar { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); }
.tool { position: relative; padding: 10px 16px; border-radius: 10px; border: 0; background: rgba(244, 234, 214, 0.08); font-weight: 600; overflow: hidden; white-space: nowrap; }
.tool:hover { background: rgba(244, 234, 214, 0.18); }
.tool.accent { background: var(--gold); color: #2a1e0e; }
.tool.danger { color: #f0a48c; }
.tool.off { background: rgba(200, 98, 63, 0.28); color: #ffc9b6; }
.mic-level { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--sage); transform-origin: left; transform: scaleX(0); }
#mic-label { position: relative; }

/* kinds of table */
.kinds { border: 0; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.kinds legend { font-size: 12px; color: var(--muted); padding: 0; margin-bottom: 5px; }
.kinds label { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(244, 234, 214, 0.05); border: 1px solid transparent; cursor: pointer; }
.kinds label:has(input:checked) { border-color: var(--gold); background: rgba(216, 180, 106, 0.12); }
.kinds input { accent-color: var(--gold); margin: 0; }
.kinds span { display: grid; font-size: 12px; color: var(--muted); }
.kinds strong { font-size: 14px; color: var(--cream); font-weight: 600; }
.rooms .room-kind { font-size: 11px; color: var(--gold); border: 1px solid rgba(216, 180, 106, 0.4); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.vr-gate { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; background: rgba(12, 9, 6, 0.82); z-index: 5; }
.vr-gate p { margin: 0 0 8px; color: var(--muted); }

/* votes, question cards, the table panel */
kbd { font: 600 11px ui-monospace, Consolas, monospace; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.22); margin-left: 4px; }
.vote { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); width: min(460px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--gold); text-align: center; }
.vote p { margin: 0 0 10px; font-family: var(--serif); font-size: 17px; }
.vote .row { justify-content: center; }
.vote .btn { padding: 7px 14px; }
.vote .btn.mine { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--cream); }
#vote-tally { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; margin-left: 6px; }

.question { position: absolute; left: 16px; top: 76px; width: min(290px, calc(100vw - 32px)); padding: 16px; border-radius: 12px; background: #f4ead6; color: #241b14; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transform: rotate(-1.2deg); }
.question .badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #241b14; }
.question #question-text { font-family: var(--serif); font-size: 19px; line-height: 1.3; margin: 10px 0 8px; text-wrap: balance; }
.question .fine { margin: 0; color: #6d5d49; }
.question .row { margin-top: 12px; }
.question .btn { border-color: rgba(36, 27, 20, 0.25); background: rgba(36, 27, 20, 0.07); padding: 7px 12px; }
.question .btn.primary { background: #241b14; border-color: #241b14; color: #f4ead6; }

.table-panel { position: absolute; left: 50%; bottom: 88px; transform: translateX(-50%); width: min(470px, calc(100vw - 32px)); max-height: calc(100vh - 190px); overflow-y: auto; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-line); backdrop-filter: blur(8px); }
#prop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#prop-list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 12px; border-radius: 10px; background: rgba(244, 234, 214, 0.06); }
#prop-list li.off .prop-name { color: var(--muted); text-decoration: line-through; }
#prop-list .prop-text { flex: 1; min-width: 0; display: grid; }
#prop-list .prop-name { font-family: var(--serif); font-size: 16px; }
#prop-list .prop-about { color: var(--muted); font-size: 12px; }
#prop-list .btn { padding: 6px 11px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.table-panel .fine { margin: 12px 0 0; }

/* ------------------------------------------------------------ overlays */
.overlay { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(12, 9, 6, 0.6); z-index: 10; padding: 16px; }
.sheet { width: min(640px, 100%); max-height: 100%; overflow: auto; background: #241b14; border: 1px solid var(--panel-line); border-radius: var(--radius); padding: 26px; }
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; }
dt { font-weight: 700; color: var(--gold); white-space: nowrap; }
dd { margin: 0; color: var(--cream); }
.fine { color: var(--muted); font-size: 13px; margin: 18px 0; }

#toasts { position: fixed; left: 50%; top: 68px; transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; z-index: 15; pointer-events: none; }
.toast { padding: 8px 14px; border-radius: 999px; background: rgba(28, 22, 16, 0.92); border: 1px solid var(--panel-line); font-size: 14px; animation: toast 4.2s ease forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-6px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.field select {
  width: 100%;
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--cream);
  background: #30241b;
  font: inherit;
}

/* the line of narration while the table changes size, like a subtitle in a film */
#hud > .fx-caption { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); text-align: center; pointer-events: none !important; animation: caption-in 0.6s ease both; }
#hud > .fx-caption p { margin: 0; font: italic 600 22px/1.3 var(--serif); color: #fff1cf; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 0 26px rgba(216, 180, 106, 0.55); text-wrap: balance; }
.fx-caption button { pointer-events: auto; margin-top: 10px; background: rgba(28, 22, 16, 0.55); color: var(--muted); border: 1px solid var(--panel-line); border-radius: 999px; padding: 4px 14px; font: 600 12px var(--sans); cursor: pointer; }
.fx-caption button:hover { color: var(--cream); }
@keyframes caption-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ------------------------------------------------------------ phones and small windows
   main.js sets body[data-layout]:
     wide   two panels beside the character (desktop)
     sheet  portrait phone — the character on top, one panel at a time in a sheet below
     side   phone held sideways — the character on the left, one panel on the right
   and body.touch when there is a touch screen.                                        */
.menu-tabs { display: none; }
.menu-tabs button { flex: 1; font: inherit; color: var(--muted); cursor: pointer; padding: 9px 8px; border: 0; border-radius: 10px; background: none; font-weight: 600; white-space: nowrap; }
.menu-tabs button[aria-selected='true'] { background: var(--gold); color: #2a1e0e; }
.tips-touch { display: none; }
body.touch .tips-touch { display: block; }
body.touch .tips-keys { display: none; }

body:not([data-layout='wide']) .menu-tabs { display: flex; gap: 4px; position: absolute; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-line); pointer-events: auto; }
body:not([data-layout='wide'])[data-mode='room'] .menu-tabs { display: none; }
body:not([data-layout='wide'])[data-mode='menu'][data-tab='lobby'] #wardrobe,
body:not([data-layout='wide'])[data-mode='menu'][data-tab='wardrobe'] #lobby { display: none; }
body:not([data-layout='wide']) .panel { backdrop-filter: none; background: rgba(30, 23, 17, 0.97); }

/* portrait */
body[data-layout='sheet'] .masthead { top: max(12px, env(safe-area-inset-top)); }
body[data-layout='sheet'] .masthead p { display: none; }
body[data-layout='sheet'] .brand { font-size: 24px; }
body[data-layout='sheet'] #wardrobe, body[data-layout='sheet'] #lobby { inset: auto 0 0 0; width: auto; height: 54dvh; border-radius: 18px 18px 0 0; border-width: 1px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); }
body[data-layout='sheet'] .menu-tabs { left: 12px; right: 12px; bottom: calc(54dvh + 10px); }

/* sideways */
body[data-layout='side'] .masthead { display: none; }
body[data-layout='side'] #wardrobe, body[data-layout='side'] #lobby { inset: 0 0 0 auto; width: 50vw; border-radius: 0; border-width: 0 0 0 1px; padding: 12px max(14px, env(safe-area-inset-right)) 12px 14px; }
body[data-layout='side'] .menu-tabs { left: max(10px, env(safe-area-inset-left)); top: 10px; width: calc(50vw - 24px); }

/* in a room on a small screen: less chrome, bigger targets */
body:not([data-layout='wide']) .people { display: none; }
body:not([data-layout='wide']) .chip { top: max(8px, env(safe-area-inset-top)); gap: 8px; padding: 6px 10px; max-width: calc(100vw - 16px); }
body:not([data-layout='wide']) .chip strong { max-width: 32vw; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
body:not([data-layout='wide']) .chip span { font-size: 12px; }
body:not([data-layout='wide']) .toolbar { bottom: max(10px, env(safe-area-inset-bottom)); gap: 4px; padding: 6px; max-width: calc(100vw - 12px); }
body:not([data-layout='wide']) .tool { padding: 10px 11px; font-size: 13px; }
body:not([data-layout='wide']) .hint { bottom: calc(66px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); text-align: center; }
body:not([data-layout='wide']) .vote { top: calc(48px + env(safe-area-inset-top)); padding: 10px 12px; }
body:not([data-layout='wide']) .vote p { font-size: 15px; }
body:not([data-layout='wide']) .question { left: 8px; top: calc(50px + env(safe-area-inset-top)); width: min(240px, 66vw); padding: 12px; }
body:not([data-layout='wide']) .question #question-text { font-size: 16px; }
body:not([data-layout='wide']) .table-panel { left: 0; right: 0; bottom: 0; transform: none; width: auto; max-height: 64dvh; border-radius: 18px 18px 0 0; border-width: 1px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); backdrop-filter: none; background: rgba(30, 23, 17, 0.97); z-index: 4; }
body:not([data-layout='wide']) .tips-grid { grid-template-columns: 1fr; }
body:not([data-layout='wide']) .sheet { padding: 18px; }
body:not([data-layout='wide']) #toasts { top: calc(48px + env(safe-area-inset-top)); }
body[data-layout='side'] .table-panel { left: auto; width: 50vw; top: 0; max-height: none; border-radius: 0; border-width: 0 0 0 1px; }

/* ------------------------------------------------------------ touch controls */
.stick, .touch-actions { display: none; }
body.touch .crosshair, body.free-pointer .crosshair { display: none; }
body.touch .stick { display: block; position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: calc(78px + env(safe-area-inset-bottom)); width: 116px; height: 116px; border-radius: 50%; background: rgba(28, 22, 16, 0.42); border: 2px solid rgba(244, 234, 214, 0.22); touch-action: none; }
.stick .knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: rgba(244, 234, 214, 0.6); pointer-events: none; }
body.touch .touch-actions { display: grid; gap: 10px; justify-items: end; position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: calc(84px + env(safe-area-inset-bottom)); }
.touch-actions button { min-width: 68px; height: 68px; padding: 0 10px; border-radius: 999px; font: 600 12px var(--sans); color: var(--cream); background: rgba(28, 22, 16, 0.6); border: 2px solid rgba(244, 234, 214, 0.28); touch-action: none; user-select: none; -webkit-user-select: none; }
.touch-actions button:active, .touch-actions button.held { background: var(--gold); color: #2a1e0e; border-color: var(--gold); }
body.touch #hud, body.touch #scene { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }

@media (prefers-reduced-motion: reduce) {
  .toast { animation-duration: 4.2s; animation-timing-function: step-end; }
}

.social-panel { margin-top: 16px; }
.social-panel summary { cursor:pointer; }
.social-panel p { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#table-note-dialog {
  width: min(420px, calc(100% - 2rem));
  color: #f6e4ba;
  background: #241d19;
  border: 1px solid #745a43;
  border-radius: 14px;
  padding: 1.25rem;
}
#table-note-dialog::backdrop { background: #0008; }
#table-note-dialog form { display: grid; gap: 0.8rem; }
#table-note-dialog form div { display: flex; justify-content: flex-end; gap: 0.5rem; }
#table-note-text {
  width: 100%;
  resize: vertical;
  padding: 0.6rem;
  color: #382a21;
  background: #f6e4ba;
  font: inherit;
}
