:root {
  color-scheme: light;
  --accent: #326f58;
  --paper: #f8f7f3;
  --text: #263b35;
  --muted: #65736e;
  --line: #dbe1da;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { color: var(--text); background: var(--paper); font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
.workbench { display: grid; grid-template-columns: 220px minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.sidebar { display: flex; flex-direction: column; padding: 30px 18px 18px; background: white; border-right: 1px solid var(--line); min-height: 0; }
.sidebar nav { overflow-y: auto; min-height: 0; flex: 1; }
.nav-group { margin-bottom: 20px; }
.nav-group summary { cursor: pointer; }
.nav-link { display: block; margin-left: 12px; padding: 10px 13px; border-left: 3px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-link:hover { background: var(--paper); color: var(--accent); }
.nav-link.nav-current { color: var(--accent); border-left-color: var(--accent); background: #edf3ec; }
.module-frame[hidden], .planning-page[hidden] { display: none; }
.planning-page { padding: 36px; overflow-y: auto; }
.planning-page h1 { font-size: 28px; margin: 12px 0 20px; }
.planning-page h2 { font-size: 16px; margin-top: 36px; }
.planning-page p, .planning-page li { font-size: 15px; line-height: 1.9; }
.planning-label, .planning-note { color: var(--muted); }
.planning-page li { margin: 12px 0; }
.sidebar[hidden] { display: none; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 44px; }
.brand-mark { display: grid; place-items: center; flex: 0 0 36px; height: 36px; background: var(--accent); color: white; border-radius: 8px; font-size: 19px; }
.brand strong { display: block; font-size: 18px; letter-spacing: .02em; }
.brand-subtitle { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.nav-heading { padding: 0 10px; margin-bottom: 12px; font-size: 17px; font-weight: 700; color: var(--text); }
.nav-current { display: block; margin-left: 12px; padding: 11px 13px; border-left: 3px solid var(--accent); background: #edf3ec; color: var(--accent); text-decoration: none; font-weight: 500; font-size: 14px; border-radius: 0 5px 5px 0; }
.nav-pending { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.nav-pending span { font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.sidebar-footnote { margin: auto 0 0; padding: 18px 10px 0; font-size: 11px; color: var(--muted); }
.workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.workspace-toolbar { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; min-height: 58px; padding: 10px 24px; background: white; border-bottom: 1px solid var(--line); }
.nav-toggle { cursor: pointer; border: 1px solid var(--line); border-radius: 4px; background: white; padding: 7px 10px; color: var(--text); font: inherit; font-size: 12px; white-space: nowrap; }
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb span { margin: 0 8px; color: #87918c; }
.preview-state { margin-left: auto; font-size: 12px; color: #6e5a29; padding: 6px 9px; background: #faf6e9; border: 1px solid #e7dfc9; border-radius: 4px; }
.module-frame { display: block; width: 100%; flex: 1 1 auto; min-height: 0; border: 0; background: var(--paper); }
.nav-collapsed { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  .workbench { grid-template-columns: 172px minmax(0, 1fr); }
  .nav-collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar { padding: 22px 12px 14px; }
  .brand { gap: 7px; }
  .brand strong { font-size: 16px; }
  .brand-mark { flex-basis: 30px; height: 32px; }
  .workspace-toolbar { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .preview-state { font-size: 11px; }
  .breadcrumb { display: none; }
}

.home-link{margin:0 0 20px!important;font-size:16px;font-weight:600}.nav-link.home-link.nav-current{border-left-color:var(--accent)}@media(max-width:650px){.workbench:not(.nav-collapsed){grid-template-columns:150px minmax(0,1fr)}.sidebar{padding:18px 8px}.brand{gap:6px}.brand strong{font-size:13px}.brand-mark{flex-basis:24px;height:26px}.workspace-toolbar{padding:8px;gap:6px}.preview-state{max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-link{margin-left:0;padding:9px 5px}.nav-heading{font-size:14px;padding:0 4px}}
