
:root { color-scheme: light dark; }
body { font: 15px/1.65 -apple-system, "PingFang SC", sans-serif; margin: 0; padding: 28px 34px;
       background: Canvas; color: CanvasText; max-width: 1180px; }
h1 { font-size: 22px; margin: 0 0 18px; }
h2 { font-size: 16px; margin: 30px 0 10px; padding-bottom: 5px;
     border-bottom: 2px solid rgba(128,128,128,.25); }
a { color: #2c6fbb; text-decoration: none; }
a:hover { text-decoration: underline; }
table { border-collapse: collapse; width: 100%; margin-bottom: 8px;
        border: 1px solid rgba(128,128,128,.35); border-radius: 6px; overflow: hidden; }
th, td { border: 1px solid rgba(128,128,128,.22); padding: 7px 9px; text-align: left; }
th { background: rgba(128,128,128,.14); }
tbody tr:nth-child(even) td { background: rgba(128,128,128,.045); }
tbody tr:hover td { background: rgba(44,111,187,.10); }
td:first-child { background: rgba(128,128,128,.13) !important; font-weight: 600;
                 white-space: nowrap; }
td.num { text-align: center; font-variant-numeric: tabular-nums; }
td.total { font-weight: 700; background: rgba(128,128,128,.09) !important; }
td.neg { color: #c0392b; }
td.zero { color: rgba(128,128,128,.55); }
td.why { color: GrayText; font-size: 12.5px; }
td.pend { background: #fff3cd; color: #7a5c00; font-size: 12.5px; font-weight: 600; }
.meta { color: GrayText; font-size: 13px; }
.big { font-size: 30px; font-weight: 600; margin: 8px 0 18px; }
.siteurl { font-size: 12px; color: #888; margin: 0 0 10px; }
.qnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.qnav a { font-weight: 600; display: inline-block; padding: 8px 14px; border-radius: 10px;
          background: #eef3fb; border: 1px solid #cfdcf0; color: #2c6fbb;
          font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.qnav a:hover { background: #e2ebf9; }
.qnav .qme { margin-left: auto; align-self: center; color: #666; font-size: 12.5px;
             padding: 6px 2px 6px 12px; white-space: nowrap; }
.qnav a.qacc { background: rgba(128,128,128,.08); border-color: rgba(128,128,128,.32);
               color: #555; font-weight: 500; }
.qnav a.qacc:hover { background: rgba(128,128,128,.18); }
.topbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; font-size: 13.5px; }
.topbar a { font-weight: 600; display: inline-block; padding: 7px 13px; border-radius: 9px;
            background: #eef3fb; border: 1px solid #cfdcf0; color: #2c6fbb;
            text-decoration: none; }
.topbar a:hover { background: #e2ebf9; }
.nav { display: flex; justify-content: space-between; align-items: center;
       gap: 10px; margin: 26px 0; font-size: 14px; }
.nav a { display: inline-block; padding: 7px 13px; border-radius: 9px;
         background: #eef3fb; border: 1px solid #cfdcf0; color: #2c6fbb;
         font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: #e2ebf9; }
.chip-sm { display: inline-block; padding: 4px 10px; border-radius: 8px;
           background: rgba(44,111,187,.10); border: 1px solid rgba(44,111,187,.28);
           color: #2c6fbb; font-size: 12.5px; text-decoration: none; }
.chip-sm:hover { background: rgba(44,111,187,.20); }
.chip-sm.on { background: #2c6fbb; border-color: #2c6fbb; color: #fff; }
.guestbar { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px;
            background: #fff6d8; border: 1px solid #ecd9a0; font-size: 13px;
            display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.guestbar-days { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; width: 100%; }
.scroll > table { width: 100%; }
details.sem { margin: 10px 0 6px; }
details.sem > summary { font-size: 15px; font-weight: 700; padding: 8px 12px; border-radius: 8px;
                        background: rgba(44,111,187,.12); }
details.sem > details.month { margin-left: 14px; }
details.month { margin: 4px 0 3px; }
details.month > summary { font-size: 13.5px; font-weight: 700; padding: 5px 9px;
                          border-radius: 6px; background: rgba(128,128,128,.10); }
details.month[open] > summary { border-radius: 8px 8px 0 0; }
h1.main-title { text-align: center; font-size: 24px; letter-spacing: 1px; margin: 10px 0 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
        gap: 5px; margin: 8px 0 4px; }
.card { display: block; padding: 6px 6px; border: 1px solid rgba(128,128,128,.28);
        border-radius: 7px; color: inherit; }
.card:hover { background: rgba(128,128,128,.08); text-decoration: none; }
.card .d { font-size: 13px; font-weight: 600; text-align: center; }
.card .pos { color: #1e7a34; }
.card .neg { color: #c0392b; }
.card .s { color: GrayText; font-size: 11.5px; margin-top: 2px; }
pre.doc { white-space: pre-wrap; word-break: break-word;
          font: 13px/1.75 -apple-system, "PingFang SC", monospace;
          background: rgba(128,128,128,.07); padding: 14px 16px; border-radius: 10px; margin: 0 0 16px; }
details.rec { margin: 26px 0 12px; max-width: 980px; }
details.rec table { font-size: 12.5px; }
details { margin: 10px 0 12px; }
summary { cursor: pointer; font-size: 13px; padding: 9px 12px; border-radius: 8px;
          background: rgba(128,128,128,.10); user-select: none; }
summary:hover { background: rgba(128,128,128,.18); }
details[open] summary { border-radius: 8px 8px 0 0; }
details pre.doc { margin: 6px 0 0; }
/* 已读取通报：逐级缩进 */
details.rec details.rpt-day { margin: 6px 0 6px 10px; }
details.rec details.rpt-day > summary { font-size: 14px; font-weight: 600; }
details.rec details.rpt { margin: 6px 0 6px 26px; }
details.rec details.rpt > summary { font-size: 13px; }
details.rpt pre.doc { margin: 4px 0 0 10px; border-left: 3px solid rgba(128,128,128,.30);
                      border-radius: 0 10px 10px 0; }
details.rpt > .meta { padding-left: 26px !important; }
.bld { padding: 6px 0 0; }
.hl-d { background: #ffe2e2; color: #b3261e; font-weight: 600; padding: 0 2px; border-radius: 3px; }
.hl-b { background: #d9f2dd; color: #14682c; font-weight: 600; padding: 0 2px; border-radius: 3px; }
.hl-c { background: #e8f0fe; color: #1a4d8f; font-weight: 600; padding: 0 2px; border-radius: 3px; }
.hl-p { background: #fff3cd; color: #7a5c00; font-weight: 600; padding: 0 2px; border-radius: 3px; }
table.pub { border: 2px solid #333; background: #fff; color: #111;
            table-layout: fixed; width: 100%; }
table.pub td, table.pub th { overflow: hidden; text-overflow: ellipsis; }
table.pub tr { height: 46px; }
table.pub tr.pubtitle, table.pub tr.pubmeta, table.pub tr.pubhead { height: auto; }
table.pub tr.pubtitle td { height: auto; font-size: 17px; padding: 10px; }
table.pub tr.pubmeta td { height: auto; }
table.pub tr.pubhead th { height: auto; }
table.pub td { height: 46px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
               vertical-align: middle; }
table.pub td.pubnote, table.pub td.pubbonus { white-space: normal; }
.tag-red { background: #ffe1dd; color: #a3231a; border-radius: 3px; padding: 0 3px; }
.tag-yellow { background: #fff2c2; color: #7a5200; border-radius: 3px; padding: 0 3px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
          overflow: hidden; line-height: 1.3; }
table.pub td, table.pub th { border: 1px solid #444; padding: 5px 7px; font-size: 12.5px; }
table.pub .pubtitle { font-size: 17px; font-weight: 700; text-align: center; letter-spacing: 1px;
                      background: #fff; padding: 10px; }
table.pub .pubmeta td { background: #fff; font-weight: 600; }
table.pub .pubhead th { text-align: center; font-weight: 700; color: #111; background: #fff; }
table.pub th.h-bed { background: #fff2cc !important; }
table.pub th.h-break { background: #e2efda !important; }
table.pub th.h-regular { background: #ffff00 !important; }
table.pub th.h-look { background: #a9c46c !important; }
table.pub th.h-device { background: #fff2cc !important; }
table.pub th.h-major { background: #ff0000 !important; color: #fff !important; }
table.pub td.pubcls { font-weight: 700; background: #f2f2f2 !important; }
table.pub td.pubteacher { background: #f2f2f2 !important; white-space: nowrap; }
table.pub td.pubnote { font-size: 11.5px; color: #333; background: #fafafa !important; }
table.pub td { background: #fff !important; }
table.pub tbody tr:nth-child(even) td { background: #f2f6fb !important; }
table.pub tbody tr:nth-child(odd) td { background: #fff !important; }
table.pub tbody tr:hover td { background: #e3eefc !important; }
table.pub td.pubbonus { font-size: 11.5px; color: #14682c; background: #f4fbf5 !important; }
table.pub td.bonus { color: #1e7a34; font-weight: 600; }
table.pub td.total { background: #f7f7f7 !important; font-weight: 700; }
/* 编辑分数：右侧竖条，点一下才展开 */
body:not(.can-edit) .dock { display: none; }
.dock { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 999;
        display: flex; align-items: flex-start; font-size: 13px; }
.dock-tab { writing-mode: vertical-rl; letter-spacing: 2px; padding: 14px 6px;
            border: 1px solid #cfdcf0; border-right: 0; border-radius: 10px 0 0 10px;
            background: #eef3fb; color: #2c6fbb; font-weight: 600; cursor: pointer;
            font-family: inherit; }
.dock-tab:hover { background: #dfeafb; }
.dock.open .dock-tab { background: #2c6fbb; color: #fff; border-color: #2c6fbb; }
.dock-body { display: none; background: #fff; border: 1px solid #cfdcf0;
             border-radius: 10px 0 0 10px; box-shadow: 0 6px 24px rgba(20,40,70,.18);
             padding: 10px 12px; max-width: 230px; }
.dock.open .dock-body { display: block; }
.dock-body .hint { display: block; margin-top: 8px; color: #8a6d3b; line-height: 1.5; }
.tabbar { display: flex; gap: 6px; border-bottom: 2px solid rgba(128,128,128,.28);
          margin: 22px 0 0; }
.tab { font: 14px -apple-system, "PingFang SC", sans-serif; padding: 9px 18px;
       border: 1px solid rgba(128,128,128,.35); border-bottom: none;
       border-radius: 9px 9px 0 0; background: rgba(128,128,128,.10); cursor: pointer;
       color: inherit; margin-bottom: -2px; }
.tab:hover { background: rgba(128,128,128,.18); }
.tab.active { background: Canvas; font-weight: 700; border-color: rgba(128,128,128,.55);
              border-bottom: 2px solid Canvas; }
.tabcnt { font-size: 11.5px; color: GrayText; margin-left: 7px; font-weight: 400; }
.pane { padding-top: 14px; }
.btn { box-shadow: 0 6px 18px rgba(0,0,0,.18); padding: 10px 16px; font-size: 14px; }
.hint { font-size: 11.5px; color: GrayText; max-width: 128px; text-align: right; line-height: 1.4; }
.holiday { font-size: 46px; font-weight: 700; margin: 40px 0 12px; color: #c0392b; }
.tabbar { display: flex; gap: 6px; border-bottom: 2px solid rgba(128,128,128,.28);
          margin: 22px 0 0; }
.tab { font: 14px -apple-system, "PingFang SC", sans-serif; padding: 9px 18px;
       border: 1px solid rgba(128,128,128,.35); border-bottom: none;
       border-radius: 9px 9px 0 0; background: rgba(128,128,128,.10); cursor: pointer;
       color: inherit; margin-bottom: -2px; }
.tab:hover { background: rgba(128,128,128,.18); }
.tab.active { background: Canvas; font-weight: 700; border-color: rgba(128,128,128,.55);
              border-bottom: 2px solid Canvas; }
.tabcnt { font-size: 11.5px; color: GrayText; margin-left: 7px; font-weight: 400; }
.pane { padding-top: 14px; }
.btn { font: 14px -apple-system, "PingFang SC", sans-serif; padding: 7px 14px; border-radius: 8px;
       border: 1px solid rgba(128,128,128,.45); background: rgba(128,128,128,.10); cursor: pointer; }
.btn:hover { background: rgba(128,128,128,.2); }
.btn.on { background: #2c6fbb; color: #fff; border-color: #2c6fbb; }
body.editing td.num { background: #fff8e1 !important; outline: 1px dashed #d9a400; cursor: text; }
body.editing td.num:focus { outline: 2px solid #2c6fbb; background: #fff !important; }
.toast { position: fixed; right: 20px; bottom: 20px; padding: 10px 16px; border-radius: 8px;
         background: #2c6fbb; color: #fff; font-size: 13px; opacity: 0; transition: opacity .2s;
         pointer-events: none; }
.toast.show { opacity: 1; }
.legend { font-size: 12.5px; color: GrayText; margin: 6px 0 12px; }
@media (max-width: 640px) {
  body { padding: 14px 11px; font-size: 14px; }
  h1 { font-size: 19px; margin-bottom: 12px; }
  .topbar { gap: 6px; }
  .topbar a { padding: 6px 10px; font-size: 12.5px; }
  table { font-size: 12px; }
  th, td { padding: 4px 5px; }
  .chip-sm { padding: 3px 8px; font-size: 12px; }
  .dock-tab { font-size: 12px; padding: 10px 5px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
  .guestbar { font-size: 12.5px; padding: 8px 10px; }
  .tab { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
  .tab .tabcnt { display: block; font-size: 11px; }
  table.pub .pubtitle { font-size: 13.5px; padding: 7px 4px; letter-spacing: 0; }
}
@media (max-width: 420px) {
  table { font-size: 11.5px; }
  th, td { padding: 3px 4px; }
}
/* ---- 公寓分布图 ---- */
.bldcard { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px;
  padding: 14px 16px 10px; margin: 0 0 16px; }
.bldcard h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 10px; }
.sextag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.sextag.male { background: #e3eefc; color: #2c6fbb; }
.sextag.female { background: #fde8f1; color: #b5367a; }
.frow { display: flex; align-items: stretch; gap: 10px; padding: 6px 0; border-top: 1px dashed #e8ecf2; }
.frow:first-of-type { border-top: 0; }
.flabel { flex: 0 0 62px; font-size: 12.5px; color: #5b6b80; font-weight: 600;
  display: flex; flex-direction: column; justify-content: center; }
.flabel em { font-style: normal; font-size: 11px; color: #93a0b1; font-weight: 400; }
.frooms { flex: 1; display: flex; flex-wrap: wrap; gap: 7px; }
.dbox { flex: 0 0 88px; border: 1px solid; border-radius: 9px; padding: 5px 7px 6px;
  display: flex; flex-direction: column; line-height: 1.25; }
.dbox .dno { font-size: 10.5px; color: #5b7bab; letter-spacing: .3px; }
.dbox .dcc { font-size: 12.5px; font-weight: 600; color: #22324a; }
.dbox .dbd { font-size: 11px; color: #4a5b72; }
.dgap { flex: 0 0 34px; border: 1px dashed #cfd6df; border-radius: 8px; color: #a2adbb;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; }
h2.sect { margin: 22px 0 10px; font-size: 17px; }
.dormtable th, .dormtable td { padding: 6px 9px; border-bottom: 1px solid #edf0f4; font-size: 13px; }
.dormtable th { background: #eef3fb; color: #1f3d63; text-align: left; }
.dormtable td.c { font-weight: 600; }
.dormtable td.beds { font-variant-numeric: tabular-nums; }

