:root{font-family:'Microsoft YaHei','PingFang SC',system-ui,sans-serif;color:#20242b;background:#f3f3f1}*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}.app{max-width:1200px;margin:18px auto 100px;background:white;border-radius:15px;padding:26px 45px 40px;box-shadow:0 10px 35px #00000008;position:relative;min-height:66vh}.top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e3e7eb;padding:4px 0 16px;color:#727e8f;font-size:14px}.top button{background:transparent;border:0;font-size:25px;border-radius:7px;color:#566373;padding:4px 12px}.top button:hover{background:#e9f0f5}.status{font-size:14px;background:#f2f6f9;color:#52728c;margin:16px 0;padding:10px 13px;border-radius:7px}.status.error{background:#fff2f0;color:#b53f28}.panel{padding:12px 0 8px}.main-title{text-align:center;font-size:31px;line-height:1.5;margin:23px auto 28px;font-weight:700;max-width:95%}.block{margin:0 0 14px}.pblock{font-size:22px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;padding:7px 9px;border-radius:6px;min-height:1em;outline:none}.pblock.heading{font-size:23px;font-weight:700;margin-top:15px}.pblock:hover,.editable-title:hover,.table-title:hover,.table-note:hover{background:#f4f7fa}.pblock:focus,.editable-title:focus,.table-title:focus,.table-note:focus{background:#fbfcff;outline:1px solid #9cbce5}.editable-title{outline:none;border-radius:7px}.navigation{display:flex;justify-content:space-between;align-items:center;margin-top:25px;padding-top:22px;border-top:1px solid #e0e6ec}.navigation button,.group-back,.group-next{color:#2c4158;background:#fff;border:1px solid #cbd7e5;padding:12px 21px;min-width:168px;border-radius:8px}.navigation button:hover{background:#ee8e3d;color:white;border-color:#ee8e3d}.group-next:hover{background:#158b4d;color:white;border-color:#158b4d}.group-back:hover{background:#ebeff3}.dock{position:fixed;z-index:45;bottom:13px;left:50%;transform:translateX(-50%);padding:6px;border:1px solid #dee4eb;display:flex;gap:5px;border-radius:12px;background:#fffe;box-shadow:0 4px 20px #0002}.dock button{border:1px solid #d5dfe6;background:#fff;min-width:43px;height:43px;font-size:21px;color:#455b6a;border-radius:8px}.dock button:hover{background:#eaf2f8}.dock button:disabled{background:#f4f4f4}.agenda-menu{position:absolute;z-index:40;right:42px;top:70px;width:min(480px,calc(100vw - 30px));max-height:76vh;overflow:auto;box-shadow:0 15px 45px #0002;background:white;border:1px solid #dde5ed;border-radius:12px;padding:12px}.menu-section{font-size:13px;color:#8090a1;margin:17px 12px 8px}.menu-item{border:0;background:transparent;display:block;width:100%;padding:10px 12px;text-align:left;border-radius:7px;font-size:16px;color:#2d3e51}.menu-item.depth-0{font-weight:700}.menu-item.depth-1{padding-left:29px}.menu-item.depth-2{padding-left:48px;font-size:14px}.menu-item.active{background:#e9f1f6;font-weight:700}.menu-item:hover{background:#eff4f7}.menu-item .approved{float:right;color:#287c54;font-size:12px;margin-left:10px}.review-flag{float:right;font-size:13px;color:#64788a;padding:6px 11px;border-radius:16px;background:#f3f5f7}.review-flag.approved{background:#e9f5ed;color:#26814d}.group-list{display:grid;gap:10px;max-width:920px;margin:25px auto}.group-list button{border:1px solid #dce4ed;background:#f9fbfc;padding:16px;border-radius:9px;text-align:left;font-size:20px}.group-list button:hover{background:#e9f2fa}.group-list .number{color:#8194ab;font-size:14px;margin-right:14px}.group-back-row{margin:17px 0}.group-next-row{text-align:right;margin-top:28px}.changed{cursor:pointer;text-decoration:underline dashed #52677b;text-underline-offset:6px}.compare{position:fixed;z-index:99;right:22px;bottom:84px;width:min(410px,90vw);padding:18px;border-radius:11px;border:1px solid #d6dadf;background:#fff;box-shadow:0 10px 35px #0003;font-size:15px}.compare b{display:block;margin:8px 0;color:#5b6978}.compare div{white-space:pre-wrap;overflow-wrap:anywhere;max-height:21vh;overflow:auto}.compare .x{position:absolute;right:8px;top:6px;border:0;background:none;font-size:22px}.table-section{margin:24px 0;width:100%}.table-title{font-size:22px;font-weight:700;text-align:center;outline:none;line-height:1.6;margin-bottom:14px}.table-tools{text-align:right;margin-bottom:8px}.table-tools a{font-size:14px;color:#35618d;text-decoration:none;border:1px solid #d1dce6;padding:7px 11px;border-radius:6px}.table-window{max-height:66vh;overflow:auto;border:1px solid #d2dce5;border-radius:6px}.grid-table{border-collapse:collapse;width:100%;table-layout:auto;font-size:16px}.grid-table th,.grid-table td{border:1px solid #d3d9de;padding:10px 7px;line-height:1.5;min-width:52px;word-break:break-word}.grid-table th{position:sticky;top:0;background:#ecf1f5;z-index:2;font-weight:700}.grid-table td{white-space:pre-wrap}.grid-table td:focus{outline:2px solid #609dc3;outline-offset:-2px;background:#fffdf4}.table-note{font-size:19px;line-height:1.7;margin:15px 0 24px;white-space:pre-wrap}.flow-image{max-width:100%;display:block;margin:20px auto;border:1px solid #e2e5e7;border-radius:6px}.image-caption{text-align:center;color:#66768a;font-size:16px}.fullscreen{max-width:none;min-height:100vh;margin:0;padding:0;border-radius:0;background:#941b22;color:#f1d68b;box-shadow:none}.fullscreen .top{border-color:#ffffff40;color:#f0d5ab;padding:20px 42px}.fullscreen .top button{color:#f4dfb2}.fullscreen .status{display:none}.fullscreen .panel{min-height:calc(100vh - 125px);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:45px}.fullscreen .main-title{font-size:clamp(40px,4.6vw,72px);font-weight:700;max-width:90%;text-align:center;text-shadow:0 0 24px #f9d68645}.fullscreen .pblock{color:#e7d6ad;text-align:center}.fullscreen .navigation{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);width:60%;border:none}.fullscreen .navigation button{background:#ffffff16;color:#ffebbd;border-color:#ffffff55}.fullscreen .navigation button:hover{background:#ee8e3d;color:#fff}.fullscreen .agenda-menu{color:#20242b}.fullscreen .menu-item{color:#20242b}.image-block{padding:18px}.entry-login{max-width:450px;margin:13vh auto;background:white;padding:35px;border-radius:16px}.entry-login input{display:block;margin:18px 0 16px;padding:12px;font-size:24px;width:100%;letter-spacing:8px}.entry-login button{padding:12px 20px;background:#22394f;color:white;border:0;border-radius:6px}.error{color:#a12424}@media (min-width:1450px){.app:not(.fullscreen){max-width:1380px}.app:has(.table-section){max-width:96vw}}@media(max-width:700px){.app{margin:0;padding:15px;max-width:100%;border-radius:0}.main-title{font-size:27px}.pblock{font-size:19px}.agenda-menu{right:5px;top:65px}.grid-table{font-size:13px}.grid-table th,.grid-table td{padding:6px 4px}.navigation button{min-width:125px;font-size:14px}.fullscreen .main-title{font-size:36px}.fullscreen .panel{padding:22px}.fullscreen .navigation{width:90%}}
.app.wide-mode{max-width:96vw}

/* V11: consolidate meeting display fixes without altering the saved source documents. */
.top{position:sticky;top:0;z-index:65;background:rgba(255,255,255,.92);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)}
.agenda-menu{position:fixed;top:67px;right:max(18px,calc((100vw - 1200px)/2 + 30px));z-index:70;max-height:calc(100vh - 82px);overscroll-behavior:contain}
.app.wide-mode .agenda-menu{right:30px}
.fullscreen .top{background:rgba(117,18,27,.74)}
.fullscreen .agenda-menu{top:67px;right:30px}
.dock{background:rgba(250,252,255,.66);backdrop-filter:blur(20px) saturate(145%);-webkit-backdrop-filter:blur(20px) saturate(145%);border:1px solid rgba(255,255,255,.85);box-shadow:0 8px 32px rgba(34,48,64,.19);padding:7px;gap:6px;border-radius:16px;z-index:80}
.dock button{display:grid;place-items:center;width:45px;height:45px;min-width:45px;background:rgba(255,255,255,.55);border:1px solid rgba(205,219,232,.95);border-radius:10px;color:#354d62}
.dock button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dock button:hover:not(:disabled){background:rgba(230,241,248,.94)}
.group-next{background:#187849;color:#fff;border-color:#187849;font-weight:600}
.group-next:hover{background:#0d6036;color:#fff;border-color:#0d6036}
.member-list .pblock{text-align:center}
.member-inline{display:flex;align-items:baseline;justify-content:center;column-gap:18px;row-gap:2px;flex-wrap:wrap;margin:6px 0 18px}
.member-inline .pblock{display:inline;flex:0 1 auto;white-space:pre-wrap;padding:2px 0;margin:0;min-height:0}
.member-role{text-align:center}
.review-draft{text-align:center}
.appendix-title{text-align:center}
.signature-line{text-align:right}
.table-window{scrollbar-gutter:stable}
.grid-table th{background:#eaf0f5;z-index:5;position:sticky;top:0}
.grid-table thead tr:first-child th{z-index:6}
.navigation button[hidden]{display:none}
@media(max-width:700px){.agenda-menu{right:8px;top:58px;max-height:calc(100vh - 68px)}.fullscreen .agenda-menu{right:8px;top:58px}.member-inline{column-gap:8px}}

/* V13: consistent category alignment and visible inner grid lines */
.grid-table th,.grid-table td{border:1px solid #9baab7;vertical-align:middle;box-sizing:border-box}
.grid-table .grid-gap{background:#fbfcfe;min-width:0}
.grid-table th{border-color:#8297a9}


/* V16: separate visible lamp hardware from topbar, eliminate the fake banner.
   Backgrounds are CSS photography only; editable text remains in the live DOM. */
.top{position:sticky;top:0;z-index:65;min-height:59px}
.top-brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  height:43px;width:43px;object-fit:contain;pointer-events:none;user-select:none;z-index:2}

/* Content-page background belongs to the margins OUTSIDE the reading card. */
body:has(.app.theme-water){
 background:url('branding/farview-mask-v18.webp') center 52%/cover fixed no-repeat;
}
.app.theme-water{background:rgba(255,255,255,.975);color:#20242b}
.theme-water .pblock{background:transparent}
.theme-water .pblock:hover{background:#f4f7fa}
.theme-water .pblock:focus{background:#fbfcff;outline:1px solid #9cbce5}
.theme-water .grid-table,.theme-water .table-window{background:#fff}
.theme-water .top{background:rgba(255,255,255,.94)}

.fullscreen{isolation:isolate;overflow:hidden}
.fullscreen.theme-red{background:#941b22;color:#f1d68b}
/* Cooler, restrained dark-neutral masks let gold text contrast while still
   showing the hospital photography. No red cast, no washed-out white veil. */
.fullscreen.theme-bird{
 background:
   linear-gradient(180deg,rgba(18,34,50,.30) 0%,rgba(15,32,48,.49) 52%,rgba(16,33,50,.38) 100%),
   url('branding/birdview-mask-v18.webp') center 49%/cover no-repeat;
 color:#f1d68b;
}
.fullscreen.theme-distant{
 background:
   linear-gradient(180deg,rgba(18,35,50,.30) 0%,rgba(14,31,46,.50) 49%,rgba(17,36,53,.37) 100%),
   url('branding/farview-mask-v18.webp') center 52%/cover no-repeat;
 color:#f1d68b;
}
.fullscreen.theme-bird .top,.fullscreen.theme-distant .top{
 background:rgba(244,248,250,.91);color:#34495d;border-color:rgba(24,42,64,.15)}
.fullscreen.theme-bird .top button,.fullscreen.theme-distant .top button{color:#2c3c4e}
.fullscreen.theme-bird .main-title,.fullscreen.theme-distant .main-title{
 color:#f1d68b;text-shadow:0 3px 18px rgba(0,0,0,.65)}
.fullscreen.theme-bird .speaker-name,.fullscreen.theme-distant .speaker-name{
 color:#f1d68b;text-shadow:0 2px 13px rgba(0,0,0,.68)}
.fullscreen.theme-bird .pblock,.fullscreen.theme-distant .pblock{color:#f7e1ae;text-shadow:0 2px 10px rgba(0,0,0,.42)}
.fullscreen.theme-bird .navigation button,.fullscreen.theme-distant .navigation button{
 background:rgba(255,255,255,.85);color:#203851;border-color:rgba(53,78,102,.30)}
.fullscreen.theme-bird .navigation button:hover,.fullscreen.theme-distant .navigation button:hover{
 background:#ee8e3d;color:#fff}
.fullscreen .main-title{letter-spacing:normal}
.fullscreen .panel{min-height:calc(100svh - 92px);padding:50px 5vw 130px;
  position:relative;justify-content:center}
.fullscreen .main-title{position:relative;z-index:2;margin:8px auto 16px;line-height:1.48}
.fullscreen .speaker-name{position:relative;z-index:2;font-size:clamp(24px,2.2vw,36px);
 font-weight:500;text-align:center;line-height:1.5;margin:8px auto 10px;padding:4px 18px;
 outline:none;cursor:text;border-radius:5px}
.fullscreen.theme-red .speaker-name{color:#f1d68b}
.fullscreen .speaker-name:hover{background:rgba(255,255,255,.16)}
.fullscreen .speaker-name:focus{background:rgba(255,255,255,.9);outline:2px solid #9bbbd1;
 color:#263a4b;text-shadow:none}
.fullscreen .navigation{position:fixed;bottom:22px;left:5vw;right:5vw;width:auto;
 transform:none;z-index:10}
.fullscreen.theme-bird .navigation,.fullscreen.theme-distant .navigation{border:0}
.fullscreen .top{z-index:65}
.fullscreen.theme-red .top{background:rgba(113,18,24,.47)}
.fullscreen.theme-red .panel .main-title{margin:0 auto 30px}
.fullscreen.theme-red .panel .pblock{z-index:2;position:relative}

/* Visible stage-light fixtures (five up, five down) plus modest amber beams.
   The class names do NOT reuse .top or .bottom, so no header-shaped bar. */
.stage-lights{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.stage-light-row{position:absolute;left:8%;width:84%;height:min(32vh,300px);
 display:flex;justify-content:space-around;align-items:flex-start;
 border:0!important;background:none!important;padding:0!important;margin:0!important;
 box-shadow:none!important;min-height:0!important}
.stage-light-row--upper{top:4px}
.stage-light-row--lower{bottom:0;transform:rotate(180deg)}
.stage-spot{position:relative;display:block;width:17%;height:100%;flex:0 0 17%}
.stage-fixture{position:absolute;top:0;left:50%;transform:translateX(-50%);
 width:32px;height:20px;z-index:2;
 background:linear-gradient(180deg,#bba895 0%,#49332b 43%,#251f24 100%);
 border:1px solid #c9b5a3;border-radius:7px 7px 10px 10px;
 box-shadow:0 0 0 3px rgba(255,224,165,.11),0 0 15px rgba(255,220,160,.45)}
.stage-fixture:after{content:'';position:absolute;bottom:1px;left:50%;transform:translateX(-50%);
 width:21px;height:7px;border-radius:50%;background:#ffe8b3;
 box-shadow:0 0 8px 3px rgba(255,221,151,.75)}
.stage-cone{position:absolute;inset:17px 0 0;
 background:linear-gradient(180deg,rgba(255,230,162,.28) 0%,rgba(255,216,155,.15) 55%,transparent 100%);
 clip-path:polygon(46% 0,54% 0,100% 100%,0 100%);opacity:.68;
 filter:blur(4px)}
.fullscreen.theme-red .navigation button{color:#ffebbd;background:rgba(255,255,255,.07);
 border-color:rgba(255,255,255,.38)}
.fullscreen.theme-red .navigation button:hover{background:#ee8e3d;color:#fff}

@media(max-width:700px){
 .top-brand{height:34px;width:34px}
 .fullscreen .panel{padding:25px 18px 125px}
 .fullscreen .main-title{font-size:clamp(30px,7vw,42px)}
 .fullscreen .speaker-name{font-size:24px}
 .fullscreen .navigation{left:4vw;right:4vw;width:auto;bottom:20px}
 .fullscreen .navigation button{min-width:100px}
 .stage-fixture{width:23px;height:15px}
 .stage-fixture:after{width:15px;height:5px}
 .stage-cone{top:12px}
 body:has(.app.theme-water){background-attachment:scroll}
}


/* V17 — CORRECTED BACKGROUND ROUTING (user's final requirements)
 * 1. ceremony / speech = existing DAY aerial (birds-eye.webp), slightly stronger mask
 * 2. splash / agenda = existing DISTANT photo (distant-view.webp), unchanged
 * 3. committee election, documents, tables = same farview mask as agenda, OUTSIDE white card
 * 4. opening + closing = existing red/gold stage lighting, unchanged
 * Do not change the speech image, agenda image, or ceremony lights.
 */

/* The shared farview background MUST cover the viewport even when the reading card is short.
   A fixed pseudo-element avoids the image ending at the bottom of .app or
   scrolling/stretching together with tall articles. The photograph is not
   injected into the content card and no original text is altered. */
body:has(.app.theme-water){
  min-height:100vh;
  background:#102034 !important;
}
body:has(.app.theme-water)::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(9,24,40,.10),rgba(9,24,40,.16)),
    url('branding/farview-mask-v18.webp');
  background-position:center center,center 35%;
  background-repeat:no-repeat,no-repeat;
  background-size:cover,cover;
}
body:has(.app.theme-water) > .app.theme-water{
  position:relative;
  z-index:1;
  background:#fff;
}
/* No hospital photo, haze, or excess transparency INSIDE the white reading card. */
.app.theme-water .panel,
.app.theme-water .pblock,
.app.theme-water .table-section{background-color:transparent}
.app.theme-water .pblock:hover{background-color:#f4f7fa}
.app.theme-water .pblock:focus{background-color:#fbfcff}
.app.theme-water .table-window,
.app.theme-water .grid-table{background:#fff}

/* SPEECH ONLY: keep the same daytime aerial photograph. Darken the existing
   neutral mask a LITTLE, not burgundy/white, to improve gold-text contrast. */
.fullscreen.theme-bird{
  background-image:
    linear-gradient(180deg,
      rgba(18,34,50,.38) 0%,
      rgba(15,32,48,.56) 52%,
      rgba(16,33,50,.46) 100%),
    url('branding/birdview-mask-v18.webp');
  background-position:center center,center 49%;
  background-repeat:no-repeat,no-repeat;
  background-size:cover,cover;
}
/* Names remain live editable HTML; make ALL speaker names bolder and modestly larger. */
.fullscreen.theme-bird .speaker-name,
.fullscreen.theme-distant .speaker-name{
  font-size:clamp(27px,2.45vw,39px);
  font-weight:700;
  color:#f1d68b;
  text-shadow:0 2px 14px rgba(0,0,0,.74);
}
@media(max-width:700px){
  .fullscreen.theme-bird .speaker-name,
  .fullscreen.theme-distant .speaker-name{font-size:26px}
}


/* V18 — use the user's 3 pre-masked WebP assets without additional overlays.
   Image routing stays exactly as existing V17 application code:
   .theme-bird speech | .theme-distant agenda | .theme-water document/vote/table.
   Opening/closing .theme-red keep original red/gold stage design. */

/* SPEECH: original crop/scale retained (49%); no extra mask. */
.fullscreen.theme-bird {
  background-image:url('branding/birdview-mask-v18.webp');
  background-position:center 49%;
  background-repeat:no-repeat;
  background-size:cover;
}

/* AGENDA FULLSCREEN: original crop/scale retained (52%); no extra mask. */
.fullscreen.theme-distant {
  background-image:url('branding/farview-mask-v18.webp');
  background-position:center 52%;
  background-repeat:no-repeat;
  background-size:cover;
}

/* V19: Document / committee / election pages use the same farview-mask image
   and background-position center 52% / background-size cover as agenda pages.
   The image remains outside the white card, fixed over the full viewport. */
body:has(.app.theme-water)::before {
  background-image:url('branding/farview-mask-v18.webp');
  background-position:center 52%;
  background-repeat:no-repeat;
  background-size:cover;
}
/* Theme red is deliberately excluded from the three overrides above. */


/* V21: visible but restrained native-browser page transitions, ONLY when the page background/type changes.
   Same-type document browsing stays instant. No external animation libraries. */
@keyframes meeting-crossfade-out{from{opacity:1}to{opacity:0}}
@keyframes meeting-crossfade-in{from{opacity:0}to{opacity:1}}
@keyframes meeting-ceremony-arrive{from{opacity:0;transform:scale(1.008)}to{opacity:1;transform:scale(1)}}
@supports (view-transition-name:root){
 :root.meeting-transition-active::view-transition-old(root){
   animation:meeting-crossfade-out 800ms cubic-bezier(.25,.1,.25,1) both;
 }
 :root.meeting-transition-active::view-transition-new(root){
   animation:meeting-crossfade-in 800ms cubic-bezier(.25,.1,.25,1) both;
 }
 :root.meeting-transition-active.meeting-ceremony-enter::view-transition-new(root){
   animation:meeting-ceremony-arrive 900ms cubic-bezier(.25,.1,.25,1) both;
 }
}
@keyframes meeting-fallback-fade{from{opacity:.35;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.app.meeting-fallback-enter .panel{animation:meeting-fallback-fade 800ms ease-out both}
@media(prefers-reduced-motion:reduce){
 :root.meeting-transition-active::view-transition-old(root),
 :root.meeting-transition-active::view-transition-new(root){animation:none!important}
 .app.meeting-fallback-enter .panel{animation:none!important}
}

/* V22: two role labels and one small administrator formatting control.
   No background image, layout or transitions are changed. */
.top .mode-chip{display:inline-block;margin-left:auto;margin-right:8px;white-space:nowrap;padding:3px 9px;font-size:12px;border:1px solid rgba(106,139,162,.4);background:rgba(244,247,250,.85);color:#294b60;border-radius:99px}
.top .settings-link,.top .switch-mode{font-size:12px;padding:4px 8px;color:inherit;text-decoration:none;white-space:nowrap;border:1px solid rgba(116,145,165,.28);border-radius:7px;background:rgba(255,255,255,.5);cursor:pointer}
.top .settings-link[hidden]{display:none!important}
.top .logout-form{display:inline-flex;align-items:center;margin:0 9px 0 0}
.top .switch-mode:hover,.top .settings-link:hover{background:rgba(238,142,61,.2)}
.format-bar[hidden]{display:none!important}
.format-bar{display:flex;align-items:center;gap:12px;padding:8px 14px;margin:10px auto 0;background:rgba(236,243,248,.9);border-radius:9px;font-size:13px;color:#405c70}
.format-bar button{border:1px solid #9ab3c4;background:#fff;border-radius:6px;padding:5px 10px;cursor:pointer;color:#294b60}
.format-bar #formatHint{font-size:12px;opacity:.85}
.pblock{white-space:pre-wrap}
.login-help{font-size:13px;opacity:.65}
@media(max-width:700px){.top .mode-chip{font-size:11px;padding:2px 6px}.top .settings-link,.top .switch-mode{font-size:11px;padding:3px 5px}.top .logout-form{margin-right:3px}.format-bar{gap:7px;flex-wrap:wrap}}
