:root {
  color-scheme: light;
  font-family: system-ui, "Microsoft YaHei UI", sans-serif;
  background: #0e2829;
  color: #1a3839;
  accent-color: #086856;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 620px; margin: auto; padding: clamp(22px, 6vw, 52px); }
header { color: #f7fffb; margin: 0 0 25px; }
.heading { margin: 0 0 8px; color: #a9d9c7; }
.brand { display: flex; align-items: center; gap: clamp(10px, 3vw, 16px); }
.brand-avatar { flex: none; width: clamp(42px, 12vw, 64px); height: auto; border-radius: 50%; }
h1 { min-width: 0; overflow-wrap: anywhere; margin: 0; font-size: clamp(1.35rem, 5.5vw, 2.7rem); letter-spacing: -.035em; }
h1 span { display: block; font-size: .49em; font-weight: 570; color: #d7ebe1; letter-spacing: normal; }
h2 { font-size: 1.25rem; margin: 0 0 8px; }
.room { background: #eff9f4; border-radius: 20px; padding: clamp(18px, 5vw, 30px); }
p { line-height: 1.55; }
#status { color: #256b5a; min-height: 1.5em; margin: 0 0 18px; white-space: pre-line; }
label { display: grid; gap: .4rem; font-weight: 620; margin-bottom: 12px; }
input:not([type=checkbox]), select { min-height: 45px; width: 100%; border: 1px solid #83a89c; border-radius: 9px; padding: .55rem .7rem; background: #fff; color: #182f2f; }
.select { position: relative; }
.select::after { content: ""; pointer-events: none; width: 7px; height: 7px; border-bottom: 2px solid #31665b; border-right: 2px solid #31665b; transform: rotate(45deg); position: absolute; right: 17px; top: 16px; }
select { appearance: none; padding-right: 35px; }
button, input, select { font: inherit; }
button { min-height: 46px; font-weight: 650; border: 1px solid transparent; border-radius: 9px; padding: .55rem .85rem; background: #07634f; color: #fff; cursor: pointer; }
button:disabled { opacity: .52; cursor: default; }
.check { display: flex; align-items: flex-start; gap: .55rem; line-height: 1.45; font-size: .94rem; }
.check input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; }
small { display: block; color: #42615c; font-size: .875rem; font-weight: 450; margin-top: .35rem; }
details { margin: .1rem 0 .8rem; }
summary { cursor: pointer; margin-bottom: .6rem; color: #245b50; }
#actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
#guard-row { width: 100%; margin: 6px 0 0; }
#guard-state { margin: 8px 0 0; color: #256b5a; }
.outline { background: transparent; border-color: #64998a; color: #194b41; }
.hangup { background: #a22a34; }
#copy-status { margin: .5rem 0 0; }
#invite-code { margin: 1rem 0 0; text-align: center; }
#invite-qr { display: block; width: 240px; max-width: 100%; height: auto; margin: 0 auto .55rem; image-rendering: pixelated; }
#invite-code figcaption { color: #42615c; font-size: .9rem; }
:focus-visible { outline: 3px solid #087b9c; outline-offset: 3px; }

#meeting-panel { margin-top: 1.25rem; }
#transcript { max-height: 15rem; overflow-y: auto; margin-bottom: .65rem; border: 1px solid #83a89c; border-radius: 9px; padding: .65rem; background: white; }
#transcript p { margin: 0 0 .4rem; overflow-wrap: anywhere; }
#minutes-title { margin-top: 1rem; }
#minutes { white-space: pre-wrap; overflow-wrap: anywhere; }
#meeting-copy { margin: .5rem 0 0; }

.transcript-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.transcript-grid h3 { font-size: .95rem; margin: .4rem 0; }
.transcript { height: 11rem; overflow-y: auto; overflow-wrap: anywhere; margin-bottom: .65rem; border: 1px solid #83a89c; border-radius: 9px; padding: .6rem; background: white; }
.transcript p { margin: 0 0 .4rem; }
#payment-qr { display: block; width: min(240px, 100%); height: auto; margin: .75rem 0; image-rendering: pixelated; }
#wallet button { margin-bottom: .4rem; }
#ledger, #orders { max-height: 12rem; overflow: auto; }
