/* Desktop-only composition is mounted at 1200px; low-height landscape stays compact. */
.web-shell {--nav-width:200px;display:block}
.web-shell .workspace {margin-left:var(--nav-width);min-height:calc(100dvh - 68px)}
.web-shell .web-header {position:sticky;top:0;z-index:30;height:68px;padding:0 24px 0 20px;display:flex;gap:28px;background:var(--night-panel, #fbfdfe);border-bottom:1px solid var(--line)}
.web-header .brand {display:flex;align-items:center;padding:0;gap:8px;min-width:160px;font-size:21px;flex-shrink:0}
.web-header .brand>span:not(.brand-mark) {display:block}
.web-header .brand-mark {width:38px;height:38px}
.web-header .brand-logo {width:54px;height:54px}
.web-primary-nav {display:flex;align-self:stretch;gap:8px;align-items:stretch}
.web-primary-nav button {position:relative;border:0;background:none;padding:0 18px;font-size:14px;font-weight:500;color:var(--muted);white-space:nowrap}
.web-primary-nav button:hover {background:var(--night-layer, #f0f7fb)}
.web-primary-nav button[aria-current] {color:var(--primary);background:linear-gradient(0deg,var(--night-layer-tint, #eaf5fb),transparent);font-weight:600}
.web-primary-nav button[aria-current]::after {content:'';position:absolute;bottom:0;height:3px;left:18px;right:18px;border-radius:4px 4px 0 0;background:var(--primary)}
.web-header-tools {display:flex;align-items:center;gap:20px;margin-left:auto}
.web-account {display:flex;gap:10px;align-items:center;background:none;border:0;color:var(--ink);font-size:13px;padding:6px;border-radius:24px;white-space:nowrap}
.web-account:hover {background:var(--pc)}
.web-account[aria-current] {background:var(--night-layer-tint, #dceef7);color:var(--night-link, #245e7e);box-shadow:inset 0 0 0 1px #c6deeb}
.web-account .avatar {width:32px;height:32px;min-width:32px;font-size:13px}
.web-shell .sidebar {position:fixed;top:68px;bottom:0;left:0;width:var(--nav-width);height:auto;padding:22px 12px 16px;background:var(--night-panel, #fbfdfe);overflow-y:auto;gap:0}
.web-space {padding:0 8px 22px;border-bottom:1px solid var(--line);margin-bottom:10px}
.web-space>span {display:block;font-size:11px;color:var(--muted);margin-bottom:8px}
.web-space>strong {display:block;font-size:14px;line-height:1.6;padding:8px 0;font-weight:600}
.web-location {display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px;line-height:24px;margin:-6px 0 16px}
.web-location button {border:0;background:transparent;padding:0;min-height:28px;font:inherit;color:var(--primary)}
.web-location button:hover {text-decoration:underline}
.web-location>span:last-child {color:var(--ink)}
.web-space .circle-switch {width:100%;padding:8px 0;display:flex;gap:4px;min-height:36px;text-align:left}
.web-space .circle-switch strong {white-space:normal;overflow-wrap:anywhere;line-height:1.6;flex:1;font-size:13px;font-weight:600}
.web-space .circle-switch .icon {flex-shrink:0}
.web-secondary-nav {display:block}
.web-menu-group {margin:16px 0 22px}
.web-menu-group h2 {font-size:11px;letter-spacing:.4px;color:var(--night-muted, #81939e);font-weight:500;margin:0 12px 8px}
.web-menu-group button {display:block;width:100%;min-height:40px;padding:10px 14px;border:0;border-radius:10px;background:none;text-align:left;font-size:13px;color:var(--night-muted, #506573);line-height:1.5}
.web-menu-group button:hover {background:var(--night-layer-tint, #edf5f9)}
.web-menu-group button[aria-current] {background:var(--night-layer-tint, #dceef7);color:var(--night-link, #245e7e);font-weight:600}
.web-sidebar-note {padding:18px 10px 0;margin-top:auto;color:var(--muted);font-size:11px;line-height:1.8;border-top:1px solid var(--line)}
.web-sidebar-note small {display:block;font-size:10px;color:var(--night-muted, #8da0ac);margin-top:6px}
.web-shell .main.web-main {max-width:none;margin:0;padding:26px 28px 40px}
.web-main .wide-page-intro {margin-bottom:24px;gap:16px}
.web-main .wide-page-intro h1,.web-main .page-heading h1 {font-size:26px;letter-spacing:0}
.web-main .wide-page-intro p {margin-top:6px;font-size:12px}
.web-plan-tools {display:flex;align-items:center;gap:10px;flex-shrink:0}
.web-plan-tools .icon {width:18px;height:18px;margin-right:6px}
.web-main .wide-plan-grid {grid-template-columns:248px minmax(0,1fr);gap:22px}
.web-main .wide-plan-rail {top:90px;gap:16px}
.web-main .agenda-calendar {padding:14px 10px 8px;border-radius:16px}
.web-main .agenda-calendar .agenda-days {gap:2px}
.web-main .agenda-calendar .agenda-day {min-height:34px}
.web-main .wide-day-overview {border-radius:16px;padding:18px}
.web-main .wide-day-count {margin:12px 0}
.web-main .wide-day-overview p {font-size:11px}
.web-main .wide-plan-grid>.agenda-plan {padding:0 20px 8px;border-radius:16px;overflow:hidden}
.web-plan-views {display:flex;align-items:center;gap:24px;height:61px;border-bottom:1px solid var(--line)}
.web-plan-views>button {border:0;background:none;align-self:stretch;position:relative;padding:0 4px;font-size:14px;color:var(--muted)}
.web-plan-views>button[aria-current] {color:var(--primary);font-weight:600}
.web-plan-views>button[aria-current]::after {content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--primary);border-radius:4px 4px 0 0}
.web-filter-count {margin-left:auto;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.web-filter-bar {display:flex;gap:10px;align-items:center;padding:18px 0}
.web-search {display:flex;gap:8px;align-items:center;flex:1;min-width:100px;border:1px solid var(--line);border-radius:8px;padding:0 10px;height:38px;background:var(--night-panel, #fbfdfe);color:var(--muted)}
.web-search input {width:100%;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:12px;color:var(--ink)}
.web-search:focus-within {outline:2px solid var(--primary);outline-offset:1px}
.web-filter-bar select {height:38px;max-width:110px;border:1px solid var(--line);border-radius:8px;background:var(--night-panel, #fff);padding:0 8px;color:var(--ink);font:inherit;font-size:12px}
.web-clear {border:0;background:none;padding:8px 0;color:var(--primary);font-size:12px;white-space:nowrap}
.web-clear:disabled {color:var(--night-muted, #9cabb4);cursor:default}
.web-main .web-task-columns,.web-main .agenda-plan .web-task-row {display:grid;grid-template-columns:20px minmax(120px,1fr) 40px 78px 68px 66px 14px;column-gap:12px;align-items:center}
.web-task-columns {font-size:11px;color:var(--muted);background:var(--night-panel, #f6f9fb);margin:0 -20px;padding:12px 24px;border-block:1px solid var(--night-outline, #edf2f5)}
.web-main .agenda-plan .web-task-row {padding:17px 4px;min-height:88px;border-bottom:1px solid var(--line);width:100%;text-align:left}
.web-main .agenda-plan:not(.wide-task-list) .web-task-row .task-copy {display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;min-width:0;padding:0;grid-column:auto;grid-row:auto}
.web-main .web-task-row .task-copy strong {font-size:14px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.65}
.web-task-bank {font-size:11px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}
.web-task-type {font-size:11px;color:var(--muted)}
.web-task-prereq {font-size:10px;color:var(--warning,#775300);background:var(--warning-bg,#fff3db);border-radius:6px;padding:1px 6px;white-space:nowrap}
.web-task-time,.web-task-duration {display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--ink);font-variant-numeric:tabular-nums}
.web-task-time>span:last-child,.web-task-duration small {color:var(--muted);font-size:11px}
.web-task-time>span:first-child::before {content:'起 ';color:var(--night-muted, #8499a6);font-size:10px}
.web-task-time>span:last-child::before {content:'止 ';color:var(--night-muted, #8499a6);font-size:10px}
.web-task-status {font-size:11px;color:var(--muted);line-height:1.6}
.web-task-status>span:first-child {display:inline-block;padding:3px 7px;border-radius:6px;background:var(--night-layer, #f0f4f6);white-space:nowrap}
.web-task-status.done>span:first-child {color:var(--night-success, #226a53);background:var(--night-success-bg, #e8f4ee)}
.web-task-status.running>span:first-child {color:var(--night-link, #326e91);background:var(--night-layer-tint, #e4f1fa)}
.web-task-status .running-label {display:block;font-size:10px;margin-top:5px;line-height:1.5}
.web-main .web-task-row .task-open {grid-column:auto;grid-row:auto}
.web-main .web-task-row .task-open .icon {width:16px;height:16px}
.web-main .web-task-row .task-state {grid-row:auto;align-self:center}
.web-main .agenda-plan>.simple-day-line {margin:0;padding:14px 4px 4px;font-size:11px}
.web-main .agenda-plan>.simple-section {margin:0}
.web-main .agenda-plan>.simple-section>.simple-section-title {padding:16px 4px 4px;margin:0;font-size:12px;font-weight:600}
.web-filter-empty {padding:48px 12px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}
.web-main [hidden] {display:none!important}
.web-main .wide-task-list {top:90px}
.web-main .page-heading {margin-bottom:24px}
.web-main .wide-progress-grid {grid-template-columns:minmax(0,1fr) 320px}
.web-main .bank-grid {grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.web-main.wide-settings,.web-main.wide-tools,.web-main.wide-adjust {max-width:1200px}
@media (min-width:1600px) {
  .web-shell {--nav-width:220px}
  .web-header .brand {min-width:180px}
  .web-shell .main.web-main {padding:30px 36px 48px}
  .web-main .wide-plan-grid {grid-template-columns:280px minmax(0,1fr);gap:28px}
  .web-main .web-task-columns,.web-main .agenda-plan .web-task-row {grid-template-columns:22px minmax(160px,1fr) 60px 120px 96px 86px 16px;column-gap:18px}
  .web-main .web-task-row .task-copy strong {font-size:14px}
  .web-main .agenda-plan .web-task-row {min-height:92px}
}
