:root {
  --ink: #243329;
  --muted: #758075;
  --paper: #fffdf8;
  --canvas: #f2eee5;
  --sage: #aebea3;
  --sage-dark: #64775d;
  --clay: #b86d51;
  --clay-soft: #ead7cb;
  --blue: #6f9498;
  --blue-soft: #dce9e8;
  --gold: #b79555;
  --plum: #7f5966;
  --line: rgba(72, 83, 69, 0.14);
  --shadow: 0 18px 48px rgba(67, 62, 49, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 70% -20%, rgba(193, 210, 181, 0.34), transparent 34%),
    linear-gradient(135deg, #f1ede4 0%, #f7f4ed 48%, #ede9df 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: 250px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(249, 247, 240, 0.88);
  padding: 30px 20px 22px;
  backdrop-filter: blur(18px);
}

.brand-lockup { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-mark {
  display: grid; width: 46px; height: 46px; place-items: center;
  border-radius: 50% 44% 52% 43%; background: var(--ink); color: #fbf7ee;
  font-family: inherit; font-size: 22px; font-weight: 800;
  box-shadow: 5px 6px 0 rgba(184, 109, 81, 0.2);
}

.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.brand-lockup h1 { margin: 0; font-size: 17px; }
.nav-list { display: grid; gap: 7px; margin-top: 34px; }
.nav-item {
  display: flex; align-items: center; gap: 13px; width: 100%; min-height: 46px;
  border: 0; border-radius: 12px; background: transparent; padding: 0 14px;
  cursor: pointer; color: #647066; text-align: left; transition: 160ms ease;
}
.nav-item:hover { background: rgba(174, 190, 163, .18); color: var(--ink); }
.nav-item.active { background: var(--ink); color: #fffaf1; box-shadow: 0 10px 22px rgba(36, 51, 41, .15); }
.nav-icon { display: inline-grid; width: 20px; place-items: center; font-size: 18px; }
.sidebar-note { margin-top: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 253, 248, .7); padding: 16px; }
.sidebar-note p { margin: 8px 0 0; color: #667066; font-size: 12px; line-height: 1.65; }
.note-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 5px var(--clay-soft); }
.sidebar-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding: 0 4px; }
.sidebar-actions .text-button { font-size: 10px; }
.save-status { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 9px; }
.save-status i { width: 6px; height: 6px; border-radius: 50%; background: #6c8b62; box-shadow: 0 0 0 4px rgba(108,139,98,.12); }

.main-content { min-height: 100vh; margin-left: 250px; padding: 28px 34px 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1500px; margin: 0 auto 25px; }
.topbar h2 { margin: 0; font-family: inherit; font-size: clamp(24px, 2.1vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.topbar-actions, .calendar-nav { display: flex; align-items: center; gap: 10px; }

.primary-button, .secondary-button, .icon-button, .text-button, .square-add {
  border: 0; cursor: pointer; transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}
.primary-button:hover, .secondary-button:hover, .icon-button:hover, .square-add:hover { transform: translateY(-1px); }
.primary-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-radius: 999px; background: var(--ink); padding: 0 20px; color: #fffaf1; font-weight: 700; box-shadow: 0 9px 24px rgba(36,51,41,.16); }
.secondary-button { min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 0 18px; font-weight: 700; }
.icon-button { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,253,248,.8); font-size: 19px; }
.icon-button.small { width: 34px; height: 34px; font-size: 14px; }
.text-button { background: transparent; padding: 3px; color: var(--sage-dark); font-size: 12px; font-weight: 700; }
.text-button.danger { color: #a55a4f; }
.square-add { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); font-size: 20px; }

.view { display: none; max-width: 1500px; margin: 0 auto; animation: lift .22s ease; }
.view.active { display: block; }
@keyframes lift { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.focus-banner, .channel-hero, .review-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  overflow: hidden; position: relative; border-radius: 24px; background: var(--ink); padding: 28px 32px; color: #fffaf2;
  box-shadow: var(--shadow);
}
.focus-banner::after { content: ""; position: absolute; right: -50px; top: -110px; width: 280px; height: 280px; border: 46px solid rgba(255,255,255,.05); border-radius: 48% 52% 42% 58%; }
.focus-banner h3, .channel-hero h3, .review-hero h3 { position: relative; z-index: 1; max-width: 800px; margin: 0 0 9px; font-family: inherit; font-size: clamp(22px, 2.2vw, 33px); font-weight: 800; }
.focus-banner p:not(.eyebrow), .channel-hero p:not(.eyebrow), .review-hero p:not(.eyebrow) { position: relative; z-index: 1; margin: 0; color: rgba(255,250,242,.68); font-size: 13px; line-height: 1.7; }
.focus-meta { position: relative; z-index: 1; display: grid; grid-template-columns: auto auto; gap: 8px 16px; min-width: 255px; border-left: 1px solid rgba(255,255,255,.17); padding-left: 24px; font-size: 12px; }
.focus-meta span { color: rgba(255,255,255,.54); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.metric-card { position: relative; overflow: hidden; min-height: 120px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.84); padding: 20px; box-shadow: var(--shadow); }
.metric-card::after { content: ""; position: absolute; right: -24px; bottom: -31px; width: 80px; height: 80px; border-radius: 45% 55% 50% 40%; background: var(--metric-color, rgba(174,190,163,.26)); }
.metric-card span { color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin: 11px 0 2px; font-family: inherit; font-size: 30px; font-weight: 800; }
.metric-card small { color: #929a91; font-size: 11px; }
.business-map-section { margin: 22px 0 16px; }
.business-map { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.business-map article { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,253,248,.82); padding: 16px; box-shadow: var(--shadow); }
.business-map article > span { display: grid; flex: 0 0 33px; height: 33px; place-items: center; border-radius: 10px; background: var(--clay-soft); color: #8a503d; font-size: 10px; font-weight: 800; }
.business-map strong { display: block; margin-bottom: 6px; font-size: 13px; }.business-map p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.business-map .business-dispatch { grid-column: 1 / -1; align-items: center; background: linear-gradient(125deg, #243329, #34493c); color: #fff; }
.business-map .business-dispatch > span { border-radius: 50%; background: #fffaf2; color: var(--ink); }.business-map .business-dispatch p { color: rgba(255,255,255,.64); }
.august-campaigns { margin: 20px 0 16px; }
.campaign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.campaign-card { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,248,.86); padding: 17px; box-shadow: var(--shadow); }
.campaign-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }.campaign-head span { color: var(--muted); font-size: 8px; font-weight: 800; }.campaign-head h3 { margin: 4px 0 0; font-size: 16px; }.campaign-head > strong { border-radius: 999px; background: var(--clay-soft); padding: 7px 10px; color: #8a503d; font-size: 10px; }
.campaign-card > p { min-height: 34px; margin: 12px 0; color: var(--muted); font-size: 9px; line-height: 1.65; }.campaign-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #e7e9e3; }.campaign-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--clay),var(--gold)); }
.campaign-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; color: var(--muted); font-size: 8px; }

.overview-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.86); padding: 22px; box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-heading h3, .section-heading h3, .boundary-panel h3 { margin: 0; font-size: 18px; }
.status-chip { display: inline-flex; align-items: center; min-height: 25px; border-radius: 999px; padding: 0 10px; font-size: 10px; font-weight: 800; }
.status-chip.neutral { background: #e7ebe2; color: #52634f; }

.task-list { display: grid; gap: 8px; }
.task-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.task-row:last-child { border: 0; }
.task-row input { width: 17px; height: 17px; accent-color: var(--sage-dark); }
.task-row label { font-size: 13px; line-height: 1.45; cursor: pointer; }
.task-row label.done { color: #9aa198; text-decoration: line-through; }
.task-row small { color: #939a91; font-size: 10px; }

.trust-route { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
.trust-route article { min-height: 124px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(220,233,232,.48), rgba(255,255,255,.35)); padding: 16px; }
.trust-route i { color: #9ca79a; font-style: normal; }
.route-index { display: block; margin-bottom: 18px; color: var(--clay); font-family: inherit; font-size: 12px; font-weight: 800; }
.trust-route strong { display: block; font-size: 14px; }
.trust-route p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.compact-links-panel { margin-top: 16px; }
.quick-links { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.quick-link { display: flex; align-items: center; gap: 10px; min-height: 58px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.5); padding: 10px; cursor: pointer; text-align: left; }
.quick-link:hover { border-color: rgba(100,119,93,.36); background: #fff; }
.link-logo { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--link-color, var(--sage)); color: white; font-size: 11px; font-weight: 800; }
.quick-link strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.quick-link small { color: #969d94; font-size: 9px; }

.topic-layout { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(620px, 1.65fr); gap: 16px; align-items: start; }
.topic-pool, .calendar-panel { min-height: calc(100vh - 145px); }
.topic-pool.drag-over { border-color: var(--clay); background: rgba(234,215,203,.38); box-shadow: 0 0 0 4px rgba(184,109,81,.11); }
.drag-hint { margin: -5px 0 13px; border-radius: 9px; background: #eef1eb; padding: 9px 10px; color: #687368; font-size: 10px; line-height: 1.55; }
.topic-heading { margin-bottom: 14px; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-grid label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
select, input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.7); color: var(--ink); outline: none; }
select, input { min-height: 40px; padding: 0 11px; }
textarea { resize: vertical; padding: 11px; line-height: 1.6; }
select:focus, input:focus, textarea:focus { border-color: rgba(100,119,93,.55); box-shadow: 0 0 0 3px rgba(174,190,163,.15); }
.search-field { display: flex; align-items: center; gap: 7px; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.62); padding: 0 10px; }
.search-field input { border: 0; background: transparent; padding: 0; box-shadow: none; }
.topic-list { display: grid; gap: 8px; max-height: calc(100vh - 390px); overflow-y: auto; padding-right: 3px; }
.topic-card { position: relative; display: grid; gap: 8px; border: 1px solid var(--line); border-left: 4px solid var(--status-color, var(--sage)); border-radius: 11px; background: rgba(255,255,255,.65); padding: 13px 14px; cursor: grab; touch-action: none; user-select: none; transition: 150ms ease; }
.topic-card:hover { transform: translateY(-1px); border-color: rgba(100,119,93,.35); background: #fff; }
.topic-card.dragging, .calendar-card.dragging { opacity: .38; cursor: grabbing; }
.topic-card h4 { margin: 0; font-size: 13px; line-height: 1.45; }
.topic-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.topic-meta span { border-radius: 999px; background: #eef0ea; padding: 4px 7px; color: #737d73; font-size: 9px; }
.topic-meta .priority-high { background: #f0dfd7; color: #9f5947; }
.topic-footer { display: flex; align-items: center; justify-content: space-between; color: #90988f; font-size: 9px; }
.empty-message { border: 1px dashed var(--line); border-radius: 12px; padding: 28px 16px; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }

.stage-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: -4px 0 14px; color: var(--muted); font-size: 10px; }
.stage-legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.brief { background: var(--gold); }.shoot { background: var(--clay); }.edit { background: var(--blue); }.review { background: var(--plum); }.publish { background: var(--sage-dark); }
.timeline-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: -5px 0 12px; color: var(--muted); font-size: 10px; }
.timeline-tools input { width: 130px; min-height: 0; padding: 0; accent-color: var(--sage-dark); }
.timeline-tools strong { min-width: 35px; color: var(--ink); font-size: 10px; }
.icon-button.tiny { width: 25px; height: 25px; border-radius: 8px; font-size: 13px; }
.week-calendar { --day-width: 105px; display: grid; grid-template-columns: repeat(7, minmax(var(--day-width), 1fr)); min-height: calc(100vh - 325px); overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.42); }
.day-column { min-width: var(--day-width); border-right: 1px solid var(--line); padding: 12px 9px; }
.day-column.drag-over { background: rgba(174,190,163,.25); box-shadow: inset 0 0 0 2px rgba(100,119,93,.35); }
.day-column:last-child { border: 0; }
.day-column.today { background: rgba(234,215,203,.25); }
.day-head { margin-bottom: 18px; color: var(--muted); font-size: 10px; }
.day-head strong { display: block; margin-top: 4px; color: var(--ink); font-family: inherit; font-size: 19px; font-weight: 800; }
.calendar-cards { display: grid; gap: 7px; }
.calendar-card { border: 0; border-radius: 9px; background: var(--card-bg, #eef0ea); padding: 10px 8px; cursor: grab; touch-action: none; user-select: none; text-align: left; }
.drag-ghost { position: fixed; z-index: 90; width: 220px; transform: translate(14px, 14px) rotate(1deg); border: 1px solid rgba(100,119,93,.32); border-radius: 11px; background: #fffdf8; padding: 12px; box-shadow: 0 18px 45px rgba(36,51,41,.22); color: var(--ink); font-size: 11px; font-weight: 800; line-height: 1.45; pointer-events: none; }
.calendar-card strong { display: -webkit-box; overflow: hidden; font-size: 10px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.calendar-card small { display: block; margin-top: 7px; color: #737d73; font-size: 8px; }
.day-empty { display: grid; min-height: 56px; place-items: center; border: 1px dashed var(--line); border-radius: 9px; color: #b0b5ad; font-size: 9px; }

.channel-hero, .review-hero { background: linear-gradient(130deg, #314138, #243329); }
.channel-hero .secondary-button, .review-hero .secondary-button { color: var(--ink); }
.access-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 24px; background: linear-gradient(130deg, #314138, #243329); padding: 28px 32px; color: #fffaf2; box-shadow: var(--shadow); }
.access-hero h3 { margin: 0 0 9px; font-size: clamp(22px, 2.2vw, 33px); }
.access-hero p:not(.eyebrow) { margin: 0; color: rgba(255,250,242,.68); font-size: 13px; line-height: 1.7; }
.access-security { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 11px 15px; color: rgba(255,255,255,.8); font-size: 10px; font-weight: 800; }
.access-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 16px 0 24px; border: 1px solid rgba(184,109,81,.18); border-radius: 14px; background: rgba(234,215,203,.48); padding: 14px 16px; }
.access-notice strong { font-size: 11px; }
.access-notice span { border-radius: 999px; background: rgba(255,255,255,.68); padding: 7px 10px; color: #725c52; font-size: 9px; }
.access-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.access-toolbar > div { display: flex; align-items: center; gap: 10px; }
.access-toolbar h3 { margin: 0; font-size: 18px; }
.access-toolbar p { margin: 0; color: var(--muted); font-size: 10px; }
.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.access-card { border: 1px solid var(--line); border-top: 4px solid #aaa; border-radius: 17px; background: rgba(255,253,248,.9); padding: 18px; box-shadow: var(--shadow); }
.access-card.primary { border-top-color: var(--clay); }.access-card.focus { border-top-color: var(--sage-dark); }.access-card.assist { border-top-color: var(--blue); }.access-card.archive { border-top-color: #bbb5aa; }
.access-card-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.access-card-head > div { display: flex; gap: 6px; }
.access-state { border-radius: 999px; background: #eeeae3; padding: 5px 8px; color: #8b9189; font-size: 8px; font-weight: 800; }
.access-state.ready { background: #e3ebe0; color: #526a50; }
.access-card h3 { min-height: 42px; margin: 14px 0 10px; font-size: 16px; line-height: 1.4; }
.credential-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto auto; align-items: center; gap: 6px; min-height: 43px; border-top: 1px solid var(--line); }
.credential-row > span { color: var(--muted); font-size: 9px; }
.credential-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.credential-row button { border: 0; background: transparent; padding: 3px; color: var(--sage-dark); cursor: pointer; font-size: 8px; font-weight: 800; }
.password-value { letter-spacing: .08em; }
.access-owner { margin-top: 10px; border-radius: 10px; background: #eef1eb; padding: 10px; }
.access-owner span { color: var(--muted); font-size: 8px; font-weight: 800; }
.access-owner p { margin: 4px 0 0; font-size: 9px; line-height: 1.5; }
.access-card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.primary-button.compact, .secondary-button.compact { min-height: 34px; padding: 0 12px; font-size: 9px; }
.channel-section { margin-top: 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.section-heading > div { display: flex; align-items: center; gap: 10px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.domain-badge { display: inline-flex; min-height: 25px; align-items: center; border-radius: 999px; padding: 0 9px; font-size: 10px; font-weight: 800; }
.domain-badge.public { background: var(--clay-soft); color: #8a503d; }
.domain-badge.private { background: var(--blue-soft); color: #426a70; }
.channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.channel-card { position: relative; min-height: 155px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,253,248,.88); padding: 18px; box-shadow: var(--shadow); }
.channel-card .link-logo { width: 38px; margin-bottom: 22px; }
.channel-card h4 { margin: 0 0 6px; font-size: 14px; }
.channel-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.channel-actions { display: flex; gap: 8px; position: absolute; right: 14px; top: 14px; }
.mini-action { border: 0; background: transparent; padding: 3px; cursor: pointer; color: #8d968c; font-size: 10px; font-weight: 700; }
.link-state { display: inline-flex; align-items: center; gap: 5px; margin-top: 13px; color: #8a9389; font-size: 9px; }
.link-state i { width: 6px; height: 6px; border-radius: 50%; background: #c7cbc5; }
.link-state.ready i { background: #6c8b62; }
.feishu-hub { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; border: 1px solid rgba(76,127,240,.2); border-radius: 18px; background: linear-gradient(135deg, rgba(226,235,255,.88), rgba(255,253,248,.9)); padding: 20px 22px; box-shadow: var(--shadow); }
.feishu-copy { display: flex; align-items: center; gap: 15px; }
.feishu-copy .link-logo { width: 46px; height: 46px; border-radius: 14px; }
.feishu-copy h3 { margin: 0 0 6px; font-size: 17px; }
.feishu-copy p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.feishu-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.sync-guide { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-top: 12px; }
.sync-guide > div { display: grid; grid-template-columns: 28px 1fr; gap: 3px 8px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,253,248,.74); padding: 12px; }
.sync-guide span { grid-row: 1 / 3; color: var(--clay); font-size: 16px; font-weight: 800; }.sync-guide strong { font-size: 10px; }.sync-guide p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.priority-account-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.priority-track { display: grid; grid-template-columns: minmax(185px,.75fr) 1.3fr; gap: 16px; border: 1px solid rgba(184,109,81,.2); border-radius: 18px; background: linear-gradient(145deg, rgba(234,215,203,.52), rgba(255,253,248,.92)); padding: 20px; }
.priority-track.personal { border-color: rgba(100,119,93,.22); background: linear-gradient(145deg, rgba(220,233,232,.52), rgba(255,253,248,.92)); }
.priority-track h3 { margin: 0; font-size: 18px; }
.priority-track > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.track-index { float: left; margin-right: 9px; color: var(--clay); font-size: 26px; font-weight: 800; }
.track-channels { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.track-channels button { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.74); padding: 8px 11px; color: var(--sage-dark); cursor: pointer; font-size: 9px; font-weight: 800; }
.platform-groups { display: grid; gap: 16px; }
.platform-group { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.55); padding: 17px; }
.platform-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.platform-heading h3 { margin: 0; font-size: 16px; }
.platform-heading span { color: var(--muted); font-size: 9px; }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.account-card { min-height: 190px; border: 1px solid var(--line); border-top: 4px solid #aaa; border-radius: 14px; background: rgba(255,255,255,.74); padding: 14px; }
.account-card.primary { border-top-color: var(--clay); }.account-card.focus { border-top-color: var(--sage-dark); }.account-card.assist { border-top-color: var(--blue); }.account-card.archive { border-top-color: #bbb5aa; }
.account-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.account-platform, .account-priority { border-radius: 999px; background: #eef0ea; padding: 5px 8px; color: var(--muted); font-size: 8px; font-weight: 800; }
.account-card.primary .account-priority { background: var(--clay-soft); color: #8a503d; }.account-card.focus .account-priority { background: #e1e8dc; color: #50644e; }
.account-card h4 { margin: 14px 0 7px; font-size: 14px; line-height: 1.4; }
.account-card > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.account-meta, .account-access { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.account-meta span, .account-access span { border-radius: 6px; background: #f0eee8; padding: 4px 6px; color: #747d73; font-size: 8px; }
.account-access span { background: transparent; padding-left: 0; }
.account-access span::before { content: "•"; margin-right: 4px; color: #a7aea5; }
.account-card-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 12px; }
.security-note { margin: 4px 0 14px; border-radius: 11px; background: #f0e8df; padding: 12px 14px; color: #765f53; font-size: 10px; line-height: 1.65; }
.boundary-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 28px; }
.boundary-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.boundary-list span { border-radius: 999px; background: #edf0e9; padding: 9px 12px; color: #5f6a60; font-size: 10px; }
.boundary-list span::before { content: "✓"; margin-right: 6px; color: var(--sage-dark); font-weight: 800; }

.design-hero, .teacher-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  border-radius: 24px; background: linear-gradient(130deg, #314138, #243329); padding: 28px 32px; color: #fffaf2;
  box-shadow: var(--shadow);
}
.design-hero h3, .teacher-hero h3 { margin: 0 0 9px; font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; }
.design-hero p:not(.eyebrow), .teacher-hero p:not(.eyebrow) { margin: 0; color: rgba(255,250,242,.68); font-size: 13px; line-height: 1.7; }
.design-hero .primary-button { background: #fffaf2; color: var(--ink); box-shadow: none; }
.design-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.design-stat { border: 1px solid var(--line); border-radius: 15px; background: rgba(255,253,248,.86); padding: 17px 18px; }
.design-stat span { color: var(--muted); font-size: 10px; }
.design-stat strong { display: block; margin-top: 7px; font-size: 24px; font-weight: 800; }
.design-board { display: grid; gap: 16px; }
.design-project { border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,248,.9); padding: 22px; box-shadow: var(--shadow); }
.design-project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.design-project-head h3 { margin: 3px 0 7px; font-size: 19px; }
.design-project-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 9px; }
.design-project-meta span { border-radius: 999px; background: #edf0e9; padding: 5px 8px; }
.design-status { display: inline-flex; min-height: 27px; align-items: center; border-radius: 999px; background: var(--clay-soft); padding: 0 10px; color: #8a503d; font-size: 9px; font-weight: 800; }
.design-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.design-option { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #f5f2eb; }
.design-preview { display: grid; min-height: 230px; place-items: center; overflow: hidden; background: linear-gradient(145deg, #e8e4d9, #f8f5ee); }
.design-preview img { width: 100%; height: 230px; object-fit: contain; background: #eeeae1; }
.design-placeholder { display: grid; place-items: center; width: 100%; min-height: 230px; color: #90988f; font-size: 11px; }
.design-option-copy { padding: 15px; }
.design-option-copy strong { display: block; margin-bottom: 7px; font-size: 13px; }
.design-option-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.design-rationale { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.design-note { border-radius: 13px; background: #eef1eb; padding: 14px; }
.design-note span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 800; }
.design-note p { margin: 0; font-size: 10px; line-height: 1.65; white-space: pre-line; }
.design-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.choice-mark { color: var(--sage-dark); font-size: 10px; font-weight: 800; }
.option-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.design-option-fieldset { min-width: 0; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.design-option-fieldset legend { padding: 0 7px; font-size: 11px; font-weight: 800; }
.file-field { display: inline-flex; min-height: 36px; align-items: center; border: 1px dashed rgba(100,119,93,.38); border-radius: 9px; padding: 0 11px; color: var(--sage-dark); font-size: 10px; font-weight: 800; cursor: pointer; }
.file-field input { display: none; }
.wide-modal { width: min(980px, 100%); }

.hero-rule { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 12px 16px; color: rgba(255,255,255,.78); font-size: 11px; font-weight: 800; }
.hero-rule span { margin: 0 6px; color: #d7bcae; }
.teacher-alert { display: flex; align-items: center; gap: 10px; margin: 16px 0; border: 1px solid rgba(184,109,81,.18); border-radius: 14px; background: rgba(234,215,203,.48); padding: 14px 16px; }
.teacher-alert strong { font-size: 11px; }
.teacher-alert span { border-radius: 999px; background: rgba(255,255,255,.62); padding: 7px 10px; color: #725c52; font-size: 9px; }
.teacher-grid { display: grid; gap: 20px; }
.partner-group { display: grid; gap: 12px; }.partner-group-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }.partner-group-heading span { color: var(--clay); font-size: 9px; font-weight: 800; }.partner-group-heading h3 { margin: 4px 0 0; font-size: 18px; }.partner-group-heading small { color: var(--muted); font-size: 9px; }
.teacher-grid-inner { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }.teacher-grid-inner.project-partners { grid-template-columns: repeat(3,1fr); }
.teacher-card { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.9); padding: 20px; box-shadow: var(--shadow); }
.teacher-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.teacher-identity { display: flex; align-items: center; gap: 11px; }
.teacher-avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--teacher-color, var(--sage-dark)); color: white; font-size: 14px; font-weight: 800; }
.teacher-identity h3 { margin: 0 0 4px; font-size: 16px; }
.teacher-identity p { margin: 0; color: var(--muted); font-size: 9px; }
.partner-type { display: inline-flex; margin-top: 5px; border-radius: 999px; background: #e9ece5; padding: 4px 7px; color: #687368; font-size: 7px; font-weight: 800; }
.teacher-details { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.teacher-detail { border-radius: 12px; background: #eef1eb; padding: 12px; }
.teacher-detail.full { grid-column: 1 / -1; }
.teacher-detail span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; font-weight: 800; }
.teacher-detail strong, .teacher-detail p { margin: 0; font-size: 10px; line-height: 1.55; white-space: pre-line; }
.teacher-next { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; border-left: 3px solid var(--clay); padding: 5px 0 5px 10px; font-size: 10px; line-height: 1.55; }
.teacher-gallery-strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; min-height: 78px; margin-top: 15px; overflow: hidden; border-radius: 11px; }
.teacher-gallery-strip img { width: 100%; height: 78px; border-radius: 8px; object-fit: cover; }
.teacher-gallery-strip > span { position: absolute; right: 7px; bottom: 7px; border-radius: 999px; background: rgba(36,51,41,.78); padding: 4px 7px; color: white; font-size: 9px; }
.gallery-empty { display: grid; grid-column: 1 / -1; min-height: 76px; place-items: center; border: 1px dashed var(--line); border-radius: 10px; color: #9aa198; font-size: 9px; text-align: center; }
.teacher-resources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.teacher-resources span { border-radius: 999px; background: #eeeae3; padding: 6px 8px; color: #858b83; font-size: 8px; }
.teacher-resources span.ready { background: #e3ebe0; color: #526a50; }
.partner-gallery-fieldset { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.partner-gallery-fieldset legend { padding: 0 7px; font-size: 11px; font-weight: 800; }
.partner-gallery-fieldset > p { margin: 0 0 12px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.partner-gallery-preview { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: 11px; }
.partner-gallery-preview figure { position: relative; margin: 0; }
.partner-gallery-preview img { width: 100%; height: 72px; border-radius: 8px; object-fit: cover; }
.partner-gallery-preview figcaption { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(36,51,41,.78); color: white; font-size: 8px; line-height: 18px; text-align: center; }
.inline-check { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: var(--muted); font-size: 9px; }
.inline-check input { width: auto; min-height: 0; }

.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.analytics-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgba(250,248,242,.74); box-shadow: var(--shadow); }
.analytics-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(130deg, #101720, #26352c); padding: 22px 26px; color: #fff; }
.analytics-header h3 { margin: 0 0 5px; font-size: 18px; }
.analytics-header p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.58); font-size: 10px; }
.analytics-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-nav button { min-height: 36px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: transparent; padding: 0 14px; color: rgba(255,255,255,.78); cursor: pointer; font-size: 10px; font-weight: 800; }
.analytics-nav button.active { border-color: #fffaf2; background: #fffaf2; color: var(--ink); }
.analysis-panel { display: none; padding: 20px; }
.analysis-panel.active { display: block; animation: lift .2s ease; }
.analysis-intro, .analysis-page-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; border-radius: 18px; background: linear-gradient(125deg, #172435, #31483d 64%, #755246); padding: 26px; color: #fff; }
.analysis-intro h3, .analysis-page-hero h3 { margin: 0 0 7px; font-size: clamp(22px,2.2vw,31px); }
.analysis-intro p:not(.eyebrow), .analysis-page-hero p:not(.eyebrow) { max-width: 740px; margin: 0; color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.7; }
.analysis-intro .primary-button { background: #fffaf2; color: var(--ink); }
.analysis-page-hero { background: linear-gradient(125deg, #19212c, #2c3c34); }
.analysis-page-hero .secondary-button { color: var(--ink); }
.analytics-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.analytics-summary article { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.7); padding: 15px; }
.analytics-summary span { color: var(--muted); font-size: 9px; }
.analytics-summary strong { display: block; margin: 8px 0 3px; font-size: 23px; }
.analytics-summary small { color: #979d96; font-size: 8px; }
.analysis-shortcuts { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
.analysis-shortcuts button { display: grid; grid-template-columns: 42px 1fr; gap: 2px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.7); padding: 14px; cursor: pointer; text-align: left; }
.analysis-shortcuts span { grid-row: 1 / 3; align-self: center; color: var(--clay); font-size: 21px; font-weight: 800; }
.analysis-shortcuts strong { font-size: 12px; }.analysis-shortcuts small { color: var(--muted); font-size: 8px; }
.analysis-block { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.68); padding: 18px; }
.analysis-block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.analysis-block-head h3 { margin: 0; font-size: 17px; }.analysis-block-head > span { color: var(--muted); font-size: 9px; }
.platform-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin-top: 14px; }
.platform-kpis article { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72); padding: 16px; }
.platform-kpis article > div { display: flex; align-items: center; justify-content: space-between; }.platform-kpis span { font-size: 11px; font-weight: 800; }.platform-kpis small { color: var(--muted); font-size: 8px; }
.platform-kpis strong { display: block; margin-top: 14px; font-size: 25px; }.platform-kpis p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.table-link { border: 0; background: transparent; padding: 0; color: var(--sage-dark); cursor: pointer; font-size: inherit; font-weight: 800; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.table-link.title { max-width: 310px; line-height: 1.55; }
.table-empty { padding: 26px; color: var(--muted); text-align: center; }
.verify-chip { display: inline-flex; border-radius: 999px; background: #eee8df; padding: 5px 8px; color: #8b7569; font-size: 8px; }.verify-chip.ready { background: #e3ebe0; color: #526a50; }
.platform-source-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin-top: 14px; }
.platform-source-card { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); padding: 16px; }
.platform-source-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.platform-source-head div { display: flex; align-items: center; gap: 8px; }.platform-source-head span { border-radius: 999px; background: var(--clay-soft); padding: 6px 8px; color: #8a503d; font-size: 9px; font-weight: 800; }.platform-source-head strong { font-size: 11px; }.platform-source-head small { color: var(--muted); font-size: 8px; }
.platform-account-sources { display: grid; gap: 0; }.platform-account-sources > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 58px; border-bottom: 1px solid var(--line); }.platform-account-sources > div:last-child { border: 0; }
.platform-account-sources strong { display: block; font-size: 9px; line-height: 1.4; }.platform-account-sources small { color: var(--muted); font-size: 7px; }.source-actions { display: flex; flex: 0 0 auto; gap: 4px; }
.source-actions button { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 5px 7px; color: var(--sage-dark); cursor: pointer; font-size: 7px; font-weight: 800; }
.measurement-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }.measurement-grid article { border-radius: 12px; background: #eef1eb; padding: 13px; }.measurement-grid span { color: var(--clay); font-size: 9px; font-weight: 800; }.measurement-grid strong { display: block; margin: 7px 0 5px; font-size: 10px; }.measurement-grid p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.analytics-metrics-fieldset { margin: 0 0 13px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }.analytics-metrics-fieldset legend { padding: 0 7px; font-size: 11px; font-weight: 800; }.analytics-form-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }.analytics-form-grid .field { margin: 0; }
.bar-chart { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 24px; align-items: center; gap: 10px; font-size: 10px; }
.bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e8eae4; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--bar-color, var(--sage-dark)); }
.review-table-panel { margin-top: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 10px; color: var(--muted); font-size: 9px; text-align: left; }
td { border-top: 1px solid var(--line); padding: 13px 10px; vertical-align: top; }
td:first-child { min-width: 230px; font-weight: 700; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; overflow-y: auto; background: rgba(28,39,31,.48); padding: 24px; backdrop-filter: blur(8px); }
.modal-backdrop.open { display: grid; }
.modal-card { width: min(760px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border: 1px solid rgba(255,255,255,.65); border-radius: 22px; background: #faf8f2; padding: 25px; box-shadow: 0 28px 100px rgba(32,40,34,.28); }
.small-modal { width: min(520px, 100%); }
.modal-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-heading h3 { margin: 0; font-size: 23px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: block; margin-bottom: 13px; }
.field > span, .value-fieldset legend { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.value-fieldset { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 3px 0 14px; border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.value-fieldset label { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.value-fieldset input { width: auto; min-height: 0; accent-color: var(--sage-dark); }
.links-grid { margin-top: 3px; }
.modal-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.spacer { flex: 1; }
.hidden { display: none !important; }

.toast { position: fixed; z-index: 80; right: 26px; bottom: 26px; transform: translateY(20px); border-radius: 12px; background: var(--ink); padding: 13px 18px; color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: 0 12px 40px rgba(36,51,41,.26); }
.toast.show { transform: none; opacity: 1; }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .business-map { grid-template-columns: 1fr 1fr; }.business-map .business-dispatch { grid-column: 1 / -1; }
  .teacher-grid-inner.project-partners { grid-template-columns: repeat(2,1fr); }
  .quick-links { grid-template-columns: repeat(3, 1fr); }
  .topic-layout { grid-template-columns: 1fr; }
  .topic-pool, .calendar-panel { min-height: auto; }
  .topic-list { max-height: 420px; }
  .week-calendar { min-height: 540px; }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .account-grid { grid-template-columns: repeat(2, 1fr); }
  .sync-guide { grid-template-columns: repeat(2,1fr); }
  .access-grid { grid-template-columns: repeat(2, 1fr); }
  .feishu-hub { align-items: flex-start; flex-direction: column; }
  .design-summary { grid-template-columns: repeat(2, 1fr); }
  .analytics-summary { grid-template-columns: repeat(3,1fr); }
  .platform-source-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .sidebar { position: static; width: auto; padding: 18px; }
  .brand-lockup { padding: 0; }
  .nav-list { display: flex; margin-top: 20px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-item { flex: 0 0 auto; justify-content: center; min-width: 112px; padding: 0 10px; scroll-snap-align: start; }
  .sidebar-note, .sidebar-actions, .save-status { display: none; }
  .main-content { margin-left: 0; padding: 20px 14px 40px; }
  .topbar { align-items: flex-start; }
  .topbar h2 { font-size: 23px; }
  #open-search { display: none; }
  .focus-banner, .channel-hero, .review-hero, .design-hero, .teacher-hero, .access-hero, .boundary-panel { align-items: flex-start; flex-direction: column; padding: 23px; }
  .focus-meta { width: 100%; border-left: 0; border-top: 1px solid rgba(255,255,255,.17); padding: 16px 0 0; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .trust-route { grid-template-columns: 1fr; }
  .trust-route i { transform: rotate(90deg); text-align: center; }
  .trust-route article { min-height: auto; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .channel-grid, .review-grid, .teacher-grid, .design-options, .design-rationale, .option-form-grid, .account-grid, .priority-account-grid, .access-grid { grid-template-columns: 1fr; }
  .business-map, .campaign-grid, .teacher-grid-inner, .teacher-grid-inner.project-partners { grid-template-columns: 1fr; }.business-map .business-dispatch { grid-column: auto; }
  .sync-guide { grid-template-columns: 1fr; }
  .access-toolbar { align-items: flex-start; flex-direction: column; }
  .analytics-header, .analysis-intro, .analysis-page-hero, .analysis-block-head { align-items: flex-start; flex-direction: column; }
  .analysis-shortcuts, .platform-kpis, .measurement-grid { grid-template-columns: 1fr 1fr; }
  .analytics-form-grid { grid-template-columns: repeat(2,1fr); }
  .feishu-actions { align-items: flex-start; flex-wrap: wrap; }
  .partner-gallery-preview { grid-template-columns: repeat(4, 1fr); }
  .teacher-alert { align-items: flex-start; flex-direction: column; }
  .timeline-tools { justify-content: flex-start; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .modal-backdrop { padding: 10px; }
  .modal-card { max-height: calc(100vh - 20px); padding: 20px; }
}

@media (max-width: 450px) {
  .topbar { gap: 10px; }
  .topbar-actions .primary-button { width: 44px; padding: 0; justify-content: center; font-size: 0; }
  .topbar-actions .primary-button span { font-size: 20px; }
  .metric-grid { grid-template-columns: 1fr; }
  .design-summary { grid-template-columns: 1fr 1fr; }
  .quick-links { grid-template-columns: 1fr; }
  .analytics-summary, .analysis-shortcuts, .platform-kpis, .measurement-grid, .analytics-form-grid { grid-template-columns: 1fr; }
  .nav-item { min-width: 96px; font-size: 11px; }
  .nav-icon { display: none; }
}

/* 2026 艺术机构工作台：编辑式网格、纸墨色与克制的舞台感 */
:root {
  --ink: #11110f;
  --muted: #6d6c66;
  --paper: #f7f5ef;
  --canvas: #e9e7e0;
  --sage: #9d9d92;
  --sage-dark: #343b35;
  --clay: #c33724;
  --clay-soft: #eadbd5;
  --blue: #315b77;
  --blue-soft: #dce4e7;
  --gold: #9a7631;
  --plum: #664e59;
  --line: rgba(17, 17, 15, .2);
  --shadow: none;
  --radius: 0;
}

html { background: var(--canvas); }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-weight: 400;
}

::selection { background: var(--clay); color: #fff; }

.sidebar {
  width: 232px;
  border-right: 0;
  background: #11110f;
  padding: 26px 20px 20px;
  color: #f5f2e9;
  backdrop-filter: none;
}

.brand-lockup {
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.28);
  padding: 0 0 25px;
}

.brand-mark {
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #d13a27;
  font-size: 55px;
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .78;
  box-shadow: none;
}

.brand-lockup .eyebrow { color: rgba(255,255,255,.48); font-size: 8px; }
.brand-lockup h1 { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .08em; }
.nav-list { gap: 0; margin-top: 22px; }

.nav-item {
  position: relative;
  min-height: 49px;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
  border-radius: 0;
  padding: 0 4px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

.nav-item:hover { background: transparent; color: #fff; }
.nav-item.active { background: transparent; color: #fff; box-shadow: none; }
.nav-item.active::after { content: ""; position: absolute; right: 0; width: 17px; height: 2px; background: var(--clay); }
.nav-icon { width: 23px; color: rgba(255,255,255,.35); font-size: 8px; font-variant-numeric: tabular-nums; }
.nav-item.active .nav-icon { color: var(--clay); }

.sidebar-note {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  background: transparent;
  padding: 18px 0 0;
}

.sidebar-note p { color: rgba(255,255,255,.55); font-size: 10px; line-height: 1.8; }
.note-dot { width: 22px; height: 2px; border-radius: 0; background: var(--clay); box-shadow: none; }
.sidebar-actions { padding: 0; }
.sidebar-actions .text-button { color: rgba(255,255,255,.52); font-size: 9px; }
.sidebar-actions .text-button:hover { color: #fff; }
.sidebar-actions .text-button.danger { color: #d88477; }
.save-status { justify-content: flex-start; color: rgba(255,255,255,.38); }
.save-status i { border-radius: 0; background: #7f9a74; box-shadow: none; }

.main-content { margin-left: 232px; padding: 0 38px 64px; }
.topbar {
  min-height: 112px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--ink);
  padding: 24px 0 19px;
}

.topbar h2 { max-width: 850px; font-size: clamp(25px, 2.35vw, 39px); font-weight: 600; letter-spacing: -.055em; line-height: 1.14; }
.eyebrow { color: var(--muted); font-size: 8px; letter-spacing: .22em; }

.primary-button, .secondary-button, .icon-button, .square-add,
.analytics-nav button, .source-actions button {
  border-radius: 0;
  box-shadow: none;
  font-weight: 600;
}

.primary-button { min-height: 42px; background: var(--ink); padding: 0 18px; color: #fff; }
.primary-button:hover { background: var(--clay); }
.secondary-button { border-color: var(--ink); background: transparent; }
.secondary-button:hover { background: var(--ink); color: #fff; }
.icon-button, .square-add { border-color: var(--ink); background: transparent; }
.text-button { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.view { max-width: 1480px; animation: artReveal .28s ease; }
@keyframes artReveal { from { opacity: 0; } to { opacity: 1; } }

.focus-banner, .channel-hero, .review-hero, .access-hero, .design-hero, .teacher-hero {
  min-height: 270px;
  align-items: flex-end;
  border: 0;
  border-radius: 0;
  background: #11110f;
  padding: 34px 38px;
  color: #f7f5ef;
  box-shadow: none;
}

.focus-banner::before {
  content: "Q / M";
  position: absolute;
  right: 35px;
  top: 25px;
  color: rgba(255,255,255,.09);
  font-size: clamp(70px, 10vw, 150px);
  font-weight: 900;
  letter-spacing: -.1em;
  line-height: 1;
}

.focus-banner::after { right: 0; top: 0; width: 9px; height: 100%; border: 0; border-radius: 0; background: var(--clay); }
.focus-banner h3, .channel-hero h3, .review-hero h3,
.design-hero h3, .teacher-hero h3, .access-hero h3 {
  max-width: 860px;
  font-size: clamp(27px, 3.2vw, 49px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.focus-banner p:not(.eyebrow), .channel-hero p:not(.eyebrow), .review-hero p:not(.eyebrow),
.design-hero p:not(.eyebrow), .teacher-hero p:not(.eyebrow), .access-hero p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255,255,255,.57);
  font-size: 11px;
  line-height: 1.9;
}

.focus-meta { min-width: 230px; border-left-color: rgba(255,255,255,.35); font-size: 10px; }
.focus-meta strong { color: #fff; font-size: 22px; font-weight: 500; }
.hero-rule, .access-security { border-radius: 0; }

.metric-grid { gap: 0; margin: 0 0 34px; border-right: 1px solid var(--line); }
.metric-card {
  min-height: 132px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 20px;
  box-shadow: none;
}

.metric-card::after { display: none; }
.metric-card strong { font-size: 38px; font-weight: 500; letter-spacing: -.05em; }

.section-heading { margin-bottom: 16px; border-top: 1px solid var(--ink); padding-top: 13px; }
.section-heading h3 { font-size: 20px; font-weight: 600; }
.domain-badge, .status-chip, .account-platform, .account-priority, .partner-type, .design-status, .verify-chip { border-radius: 0; }
.domain-badge.public, .account-card.primary .account-priority { background: var(--clay); color: #fff; }

.business-map, .campaign-grid { gap: 0; }
.business-map article, .campaign-card, .panel, .channel-card, .account-card, .access-card,
.design-stat, .design-project, .teacher-card, .analytics-shell, .analysis-block,
.platform-source-card, .platform-kpis article, .analytics-summary article {
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.business-map article { border-right: 0; padding: 21px; }
.business-map article:last-of-type { border-right: 1px solid var(--line); }
.business-map article > span, .teacher-avatar, .link-logo { border-radius: 0; }
.business-map .business-dispatch { border-top: 0; background: var(--ink); }

.campaign-card { border-right: 0; padding: 21px; }
.campaign-card:last-child { border-right: 1px solid var(--line); }
.campaign-head > strong { border-radius: 0; background: transparent; color: var(--clay); font-size: 18px; font-weight: 500; }
.campaign-progress { height: 2px; border-radius: 0; background: #cbc8bf; }
.campaign-progress i { border-radius: 0; background: var(--clay); }

.overview-grid { gap: 0; }
.panel { padding: 23px; }
.overview-grid .panel + .panel { border-left: 0; }
.trust-route { gap: 0; }
.trust-route article { min-height: 130px; border-right: 0; border-radius: 0; background: transparent; padding: 15px; }
.trust-route article:last-of-type { border-right: 1px solid var(--line); }
.trust-route i { padding: 0 6px; color: var(--clay); }
.quick-links { gap: 0; }
.quick-link { border-right: 0; border-radius: 0; background: transparent; }
.quick-link:last-child { border-right: 1px solid var(--line); }

.topic-layout { gap: 0; }
.topic-pool { border-right: 0; }
.drag-hint, .search-field, select, input, textarea, .week-calendar,
.topic-card, .calendar-card, .day-empty { border-radius: 0; }
.drag-hint { border-left: 3px solid var(--clay); background: #deddd7; }
.topic-card { border-left-width: 3px; background: transparent; }
.week-calendar { background: transparent; }
.day-column.today { background: #e5ddd6; }
.calendar-card { border-left: 2px solid var(--clay); }

.feishu-hub, .sync-guide > div, .priority-track, .platform-group, .security-note,
.access-notice, .teacher-alert, .teacher-detail, .design-option, .design-note,
.analysis-intro, .analysis-page-hero, .analysis-shortcuts button, .measurement-grid article {
  border-radius: 0;
  background-image: none;
  box-shadow: none;
}

.feishu-hub { border: 1px solid var(--ink); background: var(--paper); }
.sync-guide { gap: 0; }
.sync-guide > div { border-right: 0; background: transparent; }
.sync-guide > div:last-child { border-right: 1px solid var(--line); }
.priority-account-grid { gap: 0; }
.priority-track { border-color: var(--line); background: var(--paper); }
.priority-track + .priority-track { border-left: 0; }
.platform-group { background: transparent; }
.account-grid, .channel-grid, .access-grid, .design-summary { gap: 0; }
.account-card, .channel-card, .access-card, .design-stat { border-right: 0; border-top-width: 1px; }
.account-card:nth-child(3n), .channel-card:nth-child(4n), .access-card:nth-child(3n), .design-stat:last-child { border-right: 1px solid var(--line); }

.design-preview { background: #dedcd5; }
.design-preview img, .teacher-gallery-strip img, .partner-gallery-preview img { border-radius: 0; }
.design-option { background: transparent; }
.design-note, .teacher-detail, .measurement-grid article { background: #e2e1db; }
.teacher-grid-inner { gap: 0; }
.teacher-card + .teacher-card { border-left: 0; }
.teacher-avatar { background: var(--ink) !important; }
.teacher-next { border-left-color: var(--clay); }

.analytics-header { border-bottom: 1px solid rgba(255,255,255,.25); background: var(--ink); }
.analytics-nav button { border-color: rgba(255,255,255,.35); }
.analysis-panel { background: var(--paper); }
.analysis-intro, .analysis-page-hero { border-left: 8px solid var(--clay); background: var(--ink); }
.analysis-shortcuts, .analytics-summary, .platform-kpis, .platform-source-grid, .measurement-grid { gap: 0; }
.analysis-shortcuts button, .analytics-summary article, .platform-kpis article, .platform-source-card, .measurement-grid article { border-right: 0; }
.analysis-shortcuts button:last-child, .analytics-summary article:last-child, .platform-kpis article:last-child, .platform-source-card:last-child, .measurement-grid article:last-child { border-right: 1px solid var(--line); }
.bar-track, .bar-fill { border-radius: 0; }
.bar-track { height: 3px; background: #d5d2ca; }
.bar-fill { background: var(--clay); }

.modal-backdrop { background: rgba(0,0,0,.68); backdrop-filter: none; }
.modal-card, .value-fieldset, .design-option-fieldset, .partner-gallery-fieldset { border-radius: 0; }
.toast { border-radius: 0; background: var(--clay); box-shadow: none; }

@media (max-width: 1100px) {
  .account-card:nth-child(3n), .channel-card:nth-child(4n), .access-card:nth-child(3n) { border-right: 0; }
  .account-card:nth-child(2n), .channel-card:nth-child(2n), .access-card:nth-child(2n) { border-right: 1px solid var(--line); }
  .sync-guide > div:nth-child(2n) { border-right: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .sidebar { position: static; width: auto; padding: 18px; }
  .brand-lockup { padding-bottom: 15px; }
  .brand-mark { font-size: 42px; }
  .nav-list { border-top: 1px solid rgba(255,255,255,.15); }
  .nav-item { min-width: 122px; border-right: 1px solid rgba(255,255,255,.15); }
  .main-content { margin-left: 0; padding: 0 14px 40px; }
  .topbar { min-height: 100px; }
  .focus-banner, .channel-hero, .review-hero, .design-hero, .teacher-hero, .access-hero { min-height: 330px; padding: 25px; }
  .focus-banner::before { top: 18px; font-size: 72px; }
  .overview-grid .panel + .panel, .topic-pool, .priority-track + .priority-track, .teacher-card + .teacher-card { border-left: 1px solid var(--line); border-top: 0; }
  .business-map article, .campaign-card, .quick-link, .account-card, .channel-card, .access-card,
  .sync-guide > div, .design-stat, .analysis-shortcuts button, .analytics-summary article,
  .platform-kpis article, .platform-source-card, .measurement-grid article { border-right: 1px solid var(--line); }
  .trust-route article { border-right: 1px solid var(--line); border-bottom: 0; }
  .trust-route article:last-of-type { border-bottom: 1px solid var(--line); }
}

/* 2026.08 精致运营版：Monday 式工作层级 × 邱美哚 VI 色板 */
:root {
  --ink: #35483d;
  --muted: #79847d;
  --paper: #ffffff;
  --canvas: #f4f4f0;
  --sage: #a8b8a8;
  --sage-dark: #607968;
  --sage-soft: #e9efe9;
  --clay: #c58b79;
  --clay-soft: #f3e7e2;
  --blue: #86a4a8;
  --blue-soft: #e4eef0;
  --gold: #c2a46a;
  --plum: #887581;
  --line: rgba(53, 72, 61, .13);
  --shadow: 0 5px 20px rgba(77, 91, 82, .065);
  --radius: 14px;
}

html, body { background: var(--canvas); }
body { color: var(--ink); }
::selection { background: var(--clay-soft); color: var(--ink); }

.sidebar {
  width: 188px;
  border-right: 1px solid var(--line);
  background: #fafbf8;
  padding: 18px 13px 15px;
  color: var(--ink);
}

.brand-lockup {
  display: block;
  border-bottom: 0;
  padding: 0 7px 16px;
}

.brand-mark {
  width: 132px;
  height: 68px;
  margin-bottom: 7px;
  background: var(--sage-dark);
  -webkit-mask: url("assets/qiumeiduo-logo.png") center / contain no-repeat;
  mask: url("assets/qiumeiduo-logo.png") center / contain no-repeat;
}

.brand-lockup .eyebrow { margin-bottom: 3px; color: #99a29c; font-size: 7px; letter-spacing: .13em; }
.brand-lockup h1 { color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.nav-list { gap: 3px; margin-top: 7px; }

.nav-item {
  min-height: 40px;
  gap: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: #6d7871;
  font-size: 11px;
  font-weight: 600;
}

.nav-item:hover { background: #f0f3ef; color: var(--ink); }
.nav-item.active { background: var(--sage-soft); color: var(--sage-dark); }
.nav-item.active::after { left: 0; right: auto; width: 3px; height: 22px; border-radius: 0 4px 4px 0; background: var(--sage-dark); }
.nav-icon { width: 18px; color: #a3aca6; font-size: 7px; }
.nav-item.active .nav-icon { color: var(--sage-dark); }

.sidebar-note {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f2f4ef;
  padding: 11px;
}
.sidebar-note p { margin-top: 7px; color: #768078; font-size: 9px; line-height: 1.65; }
.note-dot { width: 18px; height: 3px; border-radius: 3px; background: var(--clay); }
.sidebar-actions { gap: 4px; margin-top: 10px; }
.sidebar-actions .text-button { color: #818b84; font-size: 8px; }
.sidebar-actions .text-button.danger { color: #aa7568; }
.save-status { justify-content: center; color: #9ca49f; font-size: 8px; }
.save-status i { border-radius: 50%; background: #7e9b85; }

.main-content { margin-left: 188px; padding: 20px 26px 52px; }
.topbar {
  min-height: 72px;
  margin-bottom: 18px;
  border: 0;
  padding: 5px 2px 12px;
}
.topbar h2 { font-size: clamp(22px, 2vw, 31px); font-weight: 700; letter-spacing: -.035em; }
.eyebrow { color: #8c9790; font-size: 8px; letter-spacing: .16em; }

.primary-button, .secondary-button, .icon-button, .square-add,
.analytics-nav button, .source-actions button {
  border-radius: 8px;
  font-weight: 700;
}
.primary-button { min-height: 40px; background: var(--sage-dark); color: #fff; }
.primary-button:hover { background: #506b59; }
.secondary-button { border-color: var(--line); background: #fff; color: var(--ink); }
.secondary-button:hover { border-color: var(--sage); background: var(--sage-soft); color: var(--sage-dark); }
.icon-button, .square-add { border-color: var(--line); border-radius: 9px; background: #fff; }
.text-button { color: var(--sage-dark); text-decoration: none; }

.focus-banner, .channel-hero, .review-hero, .access-hero, .design-hero, .teacher-hero {
  min-height: 188px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sage-soft);
  padding: 25px 28px;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.channel-hero, .access-hero { background: var(--blue-soft); }
.design-hero { background: var(--clay-soft); }
.teacher-hero { background: #efe9ed; }
.review-hero { background: #eeeadd; }
.focus-banner::before { right: 24px; top: 18px; color: rgba(96,121,104,.09); font-size: clamp(55px,8vw,112px); }
.focus-banner::after { right: 0; top: 22px; width: 5px; height: calc(100% - 44px); border-radius: 5px 0 0 5px; background: var(--clay); }

.focus-banner h3, .channel-hero h3, .review-hero h3,
.design-hero h3, .teacher-hero h3, .access-hero h3 {
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(23px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.18;
}
.focus-banner p:not(.eyebrow), .channel-hero p:not(.eyebrow), .review-hero p:not(.eyebrow),
.design-hero p:not(.eyebrow), .teacher-hero p:not(.eyebrow), .access-hero p:not(.eyebrow) {
  color: #77847c;
  font-size: 11px;
  line-height: 1.75;
}
.focus-meta { border-left-color: rgba(96,121,104,.24); }
.focus-meta strong { color: var(--sage-dark); font-size: 21px; font-weight: 700; }
.focus-meta span { color: #8b958f; }
.hero-rule, .access-security { border-color: rgba(96,121,104,.2); border-radius: 9px; color: var(--sage-dark); background: rgba(255,255,255,.46); }

.metric-grid { gap: 11px; margin: 13px 0 24px; border: 0; }
.metric-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 17px 18px;
  box-shadow: var(--shadow);
}
.metric-card strong { margin-top: 8px; color: var(--ink); font-size: 30px; font-weight: 700; }
.metric-card::after { display: block; right: 14px; bottom: 14px; width: 30px; height: 7px; border-radius: 5px; background: var(--metric-color, var(--sage-soft)); }

.section-heading { margin-bottom: 12px; border-top: 0; padding-top: 0; }
.section-heading h3 { font-size: 17px; }
.domain-badge, .status-chip, .account-platform, .account-priority, .partner-type, .design-status, .verify-chip { border-radius: 999px; }
.domain-badge.public, .account-card.primary .account-priority { background: var(--clay-soft); color: #9d6657; }
.domain-badge.private { background: var(--blue-soft); color: #547c80; }

.business-map, .campaign-grid, .overview-grid, .quick-links, .sync-guide,
.priority-account-grid, .account-grid, .channel-grid, .access-grid, .design-summary,
.teacher-grid-inner, .analytics-summary, .analysis-shortcuts, .platform-kpis,
.platform-source-grid, .measurement-grid { gap: 11px; }

.business-map article, .campaign-card, .panel, .channel-card, .account-card, .access-card,
.design-stat, .design-project, .teacher-card, .analytics-shell, .analysis-block,
.platform-source-card, .platform-kpis article, .analytics-summary article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.business-map article, .business-map article:last-of-type { border-right: 1px solid var(--line); }
.business-map article > span, .teacher-avatar, .link-logo { border-radius: 9px; }
.business-map .business-dispatch { border: 0; background: var(--sage-dark); }
.business-map .business-dispatch p { color: rgba(255,255,255,.7); }
.business-map .business-dispatch > span { background: rgba(255,255,255,.9); color: var(--sage-dark); }

.campaign-card, .campaign-card:last-child { border-right: 1px solid var(--line); }
.campaign-head > strong { border-radius: 999px; background: var(--clay-soft); padding: 6px 9px; color: #9e6858; font-size: 10px; }
.campaign-progress { height: 6px; border-radius: 999px; background: #edf0ec; }
.campaign-progress i { border-radius: inherit; background: var(--clay); }

.panel { padding: 20px; }
.overview-grid .panel + .panel { border-left: 1px solid var(--line); }
.trust-route { gap: 8px; }
.trust-route article, .trust-route article:last-of-type { min-height: 112px; border: 0; border-radius: 10px; background: #f5f7f4; }
.trust-route i { padding: 0; color: var(--sage); }
.quick-link, .quick-link:last-child { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.quick-link:hover { border-color: var(--sage); background: var(--sage-soft); }

.topic-layout { gap: 14px; }
.topic-pool { border-right: 1px solid var(--line); }
.drag-hint, .search-field, select, input, textarea, .week-calendar,
.topic-card, .calendar-card, .day-empty { border-radius: 8px; }
.drag-hint { border-left: 3px solid var(--clay); background: #f2f4ef; }
.topic-card { border-left-width: 4px; background: #fff; }
.week-calendar { background: #fbfcfa; }
.day-column.today { background: var(--clay-soft); }
.calendar-card { border-left: 0; }

.feishu-hub, .sync-guide > div, .priority-track, .platform-group, .security-note,
.access-notice, .teacher-alert, .teacher-detail, .design-option, .design-note,
.analysis-intro, .analysis-page-hero, .analysis-shortcuts button, .measurement-grid article {
  border-radius: 11px;
  box-shadow: none;
}
.feishu-hub { border: 1px solid #ccdce0; background: #f3f8f8; }
.sync-guide > div, .sync-guide > div:last-child { border: 1px solid var(--line); border-right: 1px solid var(--line); background: #fff; }
.priority-track, .priority-track.personal { border: 1px solid var(--line); background: #fff; }
.priority-track + .priority-track { border-left: 1px solid var(--line); }
.platform-group { background: rgba(255,255,255,.56); }
.account-card, .channel-card, .access-card, .design-stat,
.account-card:nth-child(3n), .channel-card:nth-child(4n), .access-card:nth-child(3n), .design-stat:last-child {
  border: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.account-card.primary, .access-card.primary { border-top: 4px solid var(--clay); }
.account-card.focus, .access-card.focus { border-top: 4px solid var(--sage-dark); }
.account-card.assist, .access-card.assist { border-top: 4px solid var(--blue); }

.design-preview { border-radius: 10px 10px 0 0; background: #f0efeb; }
.design-option { border: 1px solid var(--line); background: #fff; }
.design-note, .teacher-detail, .measurement-grid article { background: #f3f5f2; }
.teacher-card + .teacher-card { border-left: 1px solid var(--line); }
.teacher-avatar { background: var(--teacher-color, var(--sage-dark)) !important; }

.analytics-header { border-bottom: 1px solid var(--line); background: #f2f5f1; color: var(--ink); }
.analytics-header p:not(.eyebrow) { color: #818b85; }
.analytics-nav button { border-color: var(--line); background: #fff; color: #748078; }
.analytics-nav button.active { border-color: var(--sage-dark); background: var(--sage-dark); color: #fff; }
.analysis-panel { background: #fbfbf9; }
.analysis-intro, .analysis-page-hero { border: 0; background: var(--sage-soft); color: var(--ink); }
.analysis-page-hero { background: var(--blue-soft); }
.analysis-intro p:not(.eyebrow), .analysis-page-hero p:not(.eyebrow) { color: #748078; }
.analysis-shortcuts button, .analytics-summary article, .platform-kpis article,
.platform-source-card, .measurement-grid article,
.analysis-shortcuts button:last-child, .analytics-summary article:last-child,
.platform-kpis article:last-child, .platform-source-card:last-child,
.measurement-grid article:last-child { border: 1px solid var(--line); border-right: 1px solid var(--line); }
.bar-track { height: 6px; border-radius: 999px; background: #e8ece7; }
.bar-fill { border-radius: inherit; background: var(--sage-dark); }

.modal-backdrop { background: rgba(53,72,61,.42); backdrop-filter: blur(4px); }
.modal-card, .value-fieldset, .design-option-fieldset, .partner-gallery-fieldset { border-radius: 14px; }
.toast { border-radius: 9px; background: var(--sage-dark); }

@media (max-width: 1100px) {
  .account-card:nth-child(2n), .channel-card:nth-child(2n), .access-card:nth-child(2n) { border-right: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .sidebar { width: auto; padding: 14px; }
  .brand-lockup { display: flex; align-items: center; gap: 12px; padding: 0 2px 10px; }
  .brand-mark { flex: 0 0 104px; width: 104px; height: 55px; margin: 0; }
  .nav-list { border-top: 1px solid var(--line); }
  .nav-item { min-width: 112px; border-right: 1px solid var(--line); }
  .main-content { margin-left: 0; padding: 15px 13px 40px; }
  .topbar { min-height: 78px; }
  .focus-banner, .channel-hero, .review-hero, .design-hero, .teacher-hero, .access-hero { min-height: 255px; padding: 22px; }
  .overview-grid .panel + .panel, .topic-pool, .priority-track + .priority-track, .teacher-card + .teacher-card { border-left: 1px solid var(--line); }
  .business-map article, .campaign-card, .quick-link, .account-card, .channel-card, .access-card,
  .sync-guide > div, .design-stat, .analysis-shortcuts button, .analytics-summary article,
  .platform-kpis article, .platform-source-card, .measurement-grid article { border-right: 1px solid var(--line); }
  .trust-route article, .trust-route article:last-of-type { border: 0; }
}

/* Topic dossier: complete add/edit workflow with visible title and copy variants */
.topic-modal-card { width: min(1080px, 100%); padding: 28px; }
.topic-modal-card .modal-heading { position: sticky; z-index: 4; top: -28px; margin: -28px -28px 20px; border-bottom: 1px solid var(--line); background: rgba(250,248,242,.96); padding: 22px 28px 18px; backdrop-filter: blur(10px); }
.topic-section { margin: 0 0 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.68); padding: 18px; }
.topic-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.topic-section-heading > div > span { display: block; color: var(--ink); font-size: 13px; font-weight: 800; }
.topic-section-heading small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 500; }
.section-count { flex: 0 0 auto; border-radius: 999px; background: var(--sage-soft); padding: 6px 9px; color: var(--sage-dark); font-size: 9px; font-weight: 800; }
.title-variants { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 11px; }
.title-variants .field, .topic-section .field { margin-bottom: 0; }
.topic-core-grid { grid-template-columns: repeat(3, 1fr); }
.topic-value-fieldset legend, .topic-links-fieldset legend { padding: 0 7px; color: var(--ink); font-size: 12px; font-weight: 800; }
.topic-value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.topic-value-grid label { display: flex; min-height: 44px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 12px; cursor: pointer; font-size: 11px; font-weight: 700; transition: 140ms ease; }
.topic-value-grid label:has(input:checked) { border-color: rgba(100,119,93,.6); background: var(--sage-soft); color: var(--sage-dark); box-shadow: inset 0 0 0 1px rgba(100,119,93,.12); }
.topic-value-grid input { width: 16px; min-height: 0; height: 16px; accent-color: var(--sage-dark); }
.topic-reason-section { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.copy-variants { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; }
.copy-variants textarea { min-height: 148px; background: #fff; }
.topic-links-grid { grid-template-columns: repeat(2, 1fr); }
.topic-advanced { padding: 0; overflow: hidden; }
.topic-advanced summary { display: flex; align-items: center; gap: 8px; padding: 15px 18px; cursor: pointer; color: var(--ink); font-size: 11px; font-weight: 800; list-style-position: inside; }
.topic-advanced summary small { color: var(--muted); font-size: 9px; font-weight: 500; }
.topic-advanced-grid { border-top: 1px solid var(--line); padding: 17px 18px 4px; }
.topic-assets { display: flex; flex-wrap: wrap; gap: 5px; }
.topic-assets span { border: 1px solid rgba(100,119,93,.15); border-radius: 6px; background: rgba(226,234,224,.58); padding: 4px 7px; color: #657265; font-size: 8px; font-weight: 700; }
.topic-modal-card .modal-actions { position: sticky; z-index: 3; bottom: -28px; margin: 18px -28px -28px; border-top: 1px solid var(--line); background: rgba(250,248,242,.97); padding: 16px 28px; backdrop-filter: blur(10px); }

@media (max-width: 900px) {
  .title-variants, .copy-variants { grid-template-columns: 1fr; }
  .topic-core-grid { grid-template-columns: 1fr 1fr; }
  .topic-value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .topic-modal-card { padding: 18px; }
  .topic-modal-card .modal-heading { top: -18px; margin: -18px -18px 16px; padding: 18px; }
  .topic-modal-card .modal-actions { bottom: -18px; margin: 16px -18px -18px; padding: 14px 18px; }
  .topic-core-grid, .topic-reason-section, .topic-links-grid, .topic-value-grid { grid-template-columns: 1fr; }
  .topic-section { padding: 14px; }
}

/* Adjustable, reorderable navigation */
:root { --sidebar-width: 188px; }
.sidebar { width: var(--sidebar-width); transition: width 180ms ease; }
.main-content { margin-left: var(--sidebar-width); transition: margin-left 180ms ease; }
.sidebar-controls { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 1px 7px 4px; color: #99a29c; font-size: 7px; white-space: nowrap; }
.sidebar-controls > div { display: flex; gap: 3px; }
.sidebar-controls button { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #718078; padding: 0; cursor: pointer; font-size: 12px; line-height: 1; }
.sidebar-controls button:hover { border-color: var(--sage); background: var(--sage-soft); color: var(--sage-dark); }
.sidebar-resize-handle { position: absolute; z-index: 5; top: 0; right: -5px; bottom: 0; width: 10px; cursor: ew-resize; outline: none; }
.sidebar-resize-handle::after { content: ""; position: absolute; top: 42%; right: 3px; width: 2px; height: 38px; border-radius: 3px; background: transparent; transition: 150ms ease; }
.sidebar-resize-handle:hover::after, .sidebar-resize-handle:focus::after, .sidebar.resizing .sidebar-resize-handle::after { background: var(--sage); }
.nav-item { position: relative; cursor: grab; }
.nav-item:active { cursor: grabbing; }
.nav-item.nav-dragging { opacity: .38; background: var(--clay-soft); }
.nav-icon { font-size: 14px; font-weight: 700; }
.sidebar.collapsed { padding-right: 9px; padding-left: 9px; }
.sidebar.collapsed .brand-lockup { display: grid; place-items: center; padding-right: 0; padding-left: 0; }
.sidebar.collapsed .brand-mark { width: 46px; height: 46px; margin: 0 0 8px; }
.sidebar.collapsed .brand-lockup > div:last-child,
.sidebar.collapsed .sidebar-controls > span,
.sidebar.collapsed #sidebar-smaller,
.sidebar.collapsed #sidebar-larger,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .sidebar-note,
.sidebar.collapsed .sidebar-actions,
.sidebar.collapsed .save-status { display: none; }
.sidebar.collapsed .sidebar-controls { justify-content: center; margin: 0 0 7px; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 0; }
.sidebar.collapsed .nav-icon { width: 24px; font-size: 16px; }

/* Account colors and status colors stay visually distinct */
.topic-card { border-left-color: var(--account-color, var(--sage-dark)); }
.topic-meta .topic-account-chip { border: 1px solid color-mix(in srgb, var(--account-color) 35%, white); background: color-mix(in srgb, var(--account-color) 12%, white); color: var(--account-color); font-weight: 800; }
.topic-assets .topic-work-chip { border-color: color-mix(in srgb, var(--work-status-color) 34%, white); background: color-mix(in srgb, var(--work-status-color) 12%, white); color: var(--work-status-color); }
.topic-stage-chip { border-radius: 999px; background: color-mix(in srgb, var(--stage-color) 13%, white); padding: 4px 7px; color: var(--stage-color); font-weight: 800; }
.calendar-card { border-left: 4px solid var(--account-color, var(--sage-dark)); }
.calendar-card small { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.calendar-card small span { border-radius: 999px; padding: 3px 5px; font-style: normal; font-weight: 700; line-height: 1.2; }
.calendar-account { max-width: 100%; overflow: hidden; background: color-mix(in srgb, var(--account-color) 13%, white); color: var(--account-color); text-overflow: ellipsis; white-space: nowrap; }
.calendar-stage { background: color-mix(in srgb, var(--stage-color) 13%, white); color: var(--stage-color); }
.calendar-work { background: color-mix(in srgb, var(--work-status-color) 13%, white); color: var(--work-status-color); }
.topic-account-field select { border-left: 4px solid var(--topic-account-color, var(--sage-dark)); }
.topic-stage-field select { border-left: 4px solid var(--topic-stage-color, var(--gold)); }
.topic-work-status-field select { border-left: 4px solid var(--topic-work-color, var(--sage)); }

/* Keep quick-entry copy fully inside each card */
.quick-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-link { min-width: 0; min-height: 72px; overflow: hidden; }
.quick-link .link-logo { flex: 0 0 38px; width: 38px; height: 38px; }
.quick-link-copy { display: block; min-width: 0; max-width: 100%; overflow: hidden; }
.quick-link-copy strong { display: -webkit-box; overflow: hidden; white-space: normal; overflow-wrap: anywhere; font-size: 10px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.quick-link-copy small { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1050px) {
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .sidebar, .sidebar.collapsed { width: auto; padding: 14px; }
  .main-content { margin-left: 0; }
  .sidebar-controls, .sidebar-resize-handle { display: none; }
  .sidebar.collapsed .brand-lockup { display: flex; place-items: initial; }
  .sidebar.collapsed .brand-mark { width: 104px; height: 55px; margin: 0; }
  .sidebar.collapsed .brand-lockup > div:last-child, .sidebar.collapsed .nav-label { display: initial; }
  .sidebar.collapsed .nav-item { justify-content: center; padding: 0 10px; }
}

@media (max-width: 520px) {
  .quick-links { grid-template-columns: 1fr; }
}

/* Timeline zoom scales both columns and the content inside each date box */
.week-calendar { --timeline-scale: 1; }
.day-column { box-sizing: border-box; min-width: var(--day-width); overflow: hidden; padding: clamp(6px, calc(9px * var(--timeline-scale)), 15px); }
.day-head { margin-bottom: clamp(10px, calc(18px * var(--timeline-scale)), 25px); font-size: clamp(8px, calc(10px * var(--timeline-scale)), 14px); }
.day-head strong { margin-top: calc(4px * var(--timeline-scale)); font-size: clamp(15px, calc(19px * var(--timeline-scale)), 27px); }
.calendar-cards { min-width: 0; gap: clamp(4px, calc(7px * var(--timeline-scale)), 11px); }
.calendar-card { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; overflow: hidden; padding: clamp(6px, calc(9px * var(--timeline-scale)), 15px) clamp(5px, calc(8px * var(--timeline-scale)), 13px); }
.calendar-card strong { overflow-wrap: anywhere; font-size: clamp(8px, calc(10px * var(--timeline-scale)), 14px); line-height: 1.42; }
.calendar-card small { min-width: 0; margin-top: clamp(4px, calc(7px * var(--timeline-scale)), 10px); gap: clamp(2px, calc(4px * var(--timeline-scale)), 6px); font-size: clamp(6px, calc(8px * var(--timeline-scale)), 11px); }
.calendar-card small span { box-sizing: border-box; max-width: 100%; overflow: hidden; padding: clamp(2px, calc(3px * var(--timeline-scale)), 5px) clamp(3px, calc(5px * var(--timeline-scale)), 8px); text-overflow: ellipsis; white-space: nowrap; }
.week-calendar.zoom-compact .calendar-card strong { -webkit-line-clamp: 2; }
.week-calendar.zoom-compact .calendar-work { display: none; }
.week-calendar.zoom-expanded .calendar-card strong { -webkit-line-clamp: 5; }

/* One account matrix: brand group first, platform accounts and access details below */
.channel-hero-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.account-hierarchy { display: grid; gap: 14px; }
.account-brand-group { overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--group-color, var(--sage-dark)); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.account-brand-heading { display: grid; grid-template-columns: auto auto minmax(0,1fr) auto auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--group-color) 7%, white); padding: 14px 16px; cursor: grab; }
.account-brand-heading:active { cursor: grabbing; }
.account-drag-handle, .child-drag-handle { color: color-mix(in srgb, var(--group-color, var(--sage-dark)) 65%, #aab2ac); font-size: 13px; letter-spacing: -4px; }
.account-brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: var(--group-color, var(--sage-dark)); color: #fff; font-size: 13px; font-weight: 800; }
.account-brand-heading p { margin: 0 0 3px; color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.account-brand-heading h3 { overflow: hidden; margin: 0; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.account-child-count { border-radius: 999px; background: #fff; padding: 6px 9px; color: var(--muted); font-size: 8px; font-weight: 800; }
.account-child-grid { display: grid; min-height: 54px; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 12px; transition: 140ms ease; }
.account-child-grid.account-drop-active { background: var(--sage-soft); box-shadow: inset 0 0 0 2px var(--sage); }
.matrix-account-card { display: flex; min-width: 0; min-height: 252px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfa; padding: 13px; cursor: grab; }
.matrix-account-card:active { cursor: grabbing; }
.matrix-account-card.account-dragging, .account-brand-group.account-dragging { opacity: .38; }
.matrix-account-head { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 5px; }
.matrix-account-head .access-state { margin-left: auto; }
.matrix-account-card h4 { margin: 12px 0 6px; font-size: 13px; line-height: 1.4; }
.matrix-account-card > p { display: -webkit-box; min-height: 43px; overflow: hidden; margin: 0; color: var(--muted); font-size: 8px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.matrix-credentials { display: grid; gap: 5px; margin-top: 10px; }
.matrix-credentials > div { display: grid; min-width: 0; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 5px; border-top: 1px solid var(--line); padding-top: 6px; }
.matrix-credentials span { color: var(--muted); font-size: 7px; }
.matrix-credentials strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.matrix-credentials button { border: 0; background: transparent; color: var(--sage-dark); padding: 2px; cursor: pointer; font-size: 7px; font-weight: 800; }
.matrix-credentials .credential-actions { display: flex; gap: 3px; }
.matrix-account-card .account-card-actions { align-items: center; margin-top: auto; padding-top: 10px; }
.matrix-account-card .account-card-actions .danger { margin-left: auto; font-size: 8px; }

@media (max-width: 1150px) {
  .account-child-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .account-brand-heading { grid-template-columns: auto auto minmax(0,1fr); }
  .account-child-count, .account-brand-heading .secondary-button { grid-column: 2 / -1; justify-self: start; }
  .account-child-grid { grid-template-columns: 1fr; }
}
