:root {
  --navy: #17324d;
  --navy-2: #214866;
  --blue: #2b6f9f;
  --blue-soft: #e8f1f7;
  --orange: #d96b2b;
  --orange-soft: #fff0e6;
  --red: #b83b3b;
  --red-soft: #fbeaea;
  --yellow: #9a690d;
  --yellow-soft: #fff4d6;
  --green: #2f7a52;
  --green-soft: #e7f4ec;
  --purple: #6a56a5;
  --purple-soft: #f0edfa;
  --ink: #1f2933;
  --muted: #677482;
  --line: #dce2e8;
  --line-strong: #c6d0d9;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --sidebar: #122b42;
  --sidebar-2: #173852;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(23, 50, 77, 0.08);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--canvas);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
  background: #f4f6f8;
}

.boot-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  font-size: 19px;
  font-weight: 800;
}

.boot-title {
  font-size: 18px;
  font-weight: 700;
}

.boot-line {
  width: 180px;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: #e0e6eb;
}

.boot-line::after {
  content: "";
  display: block;
  width: 60px;
  height: 100%;
  background: var(--orange);
  animation: loading 1.1s infinite ease-in-out;
}

@keyframes loading {
  0% { transform: translateX(-60px); }
  100% { transform: translateX(180px); }
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  background: #eef2f5;
}

.login-side {
  padding: 52px 44px;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: white;
  color: var(--navy);
  font-weight: 800;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
}

.brand-subtitle {
  color: #b8cad8;
  font-size: 12px;
  margin-top: 3px;
}

.login-side h1 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.14;
  max-width: 540px;
  margin: 76px 0 18px;
  font-weight: 750;
}

.login-side p {
  max-width: 500px;
  color: #c7d6e2;
  line-height: 1.8;
  margin: 0;
}

.login-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.login-status div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.login-status b {
  display: block;
  font-size: 18px;
}

.login-status span {
  font-size: 11px;
  color: #b8cad8;
}

.login-main {
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-panel {
  width: 100vw;
}

.login-panel h2 {
  font-size: 25px;
  margin: 0 0 8px;
}

.login-panel > p {
  color: var(--muted);
  margin: 0 0 24px;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.user-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: white;
  transition: border-color 0.16s, transform 0.16s, box-shadow 0.16s;
}

.user-card:hover {
  transform: translateY(-1px);
  border-color: #9eb7ca;
  box-shadow: var(--shadow);
}

.user-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-soft);
}

.user-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.user-card span {
  color: var(--muted);
  font-size: 12px;
}

.login-form-row {
  display: flex;
  gap: 10px;
}

.login-form-row input {
  flex: 1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 13px;
  background: var(--navy);
  color: white;
  font-weight: 650;
  min-height: 38px;
}

.btn:hover {
  background: var(--navy-2);
}

.btn.secondary {
  background: white;
  color: var(--navy);
  border-color: var(--line-strong);
}

.btn.secondary:hover {
  background: #f3f6f8;
}

.btn.ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
}

.btn.danger {
  background: var(--red);
}

.btn.small {
  padding: 6px 9px;
  min-height: 31px;
  font-size: 12px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  display: grid;
  place-items: center;
  color: var(--navy);
}

.login-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  background: var(--sidebar);
  color: white;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--orange);
}

.sidebar-brand strong {
  display: block;
  font-size: 14px;
}

.sidebar-brand span {
  display: block;
  color: #9eb6c8;
  font-size: 10px;
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #c9d8e4;
  text-align: left;
}

.nav-btn:hover,
.nav-btn.active {
  background: var(--sidebar-2);
  color: white;
}

.nav-btn.active {
  box-shadow: inset 3px 0 0 var(--orange);
}

.nav-count {
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  text-align: center;
}

.sidebar-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4eef5;
  color: var(--navy);
  font-weight: 750;
  font-size: 13px;
}

.sidebar-user strong {
  display: block;
  font-size: 12px;
}

.sidebar-user span {
  display: block;
  color: #9eb6c8;
  font-size: 10px;
  margin-top: 2px;
}

.workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar-title {
  min-width: 0;
}

.topbar-title h1 {
  margin: 0;
  font-size: 18px;
}

.topbar-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-chip,
.role-chip,
.chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sync-chip {
  color: var(--green);
  background: var(--green-soft);
}

.sync-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.role-chip {
  color: var(--navy);
  background: var(--blue-soft);
}

.content {
  min-width: 0;
  padding: 20px 22px 44px;
}

.view-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.view-head h2 {
  margin: 0;
  font-size: 22px;
}

.view-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.view-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 7px;
}

.metric strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.metric.red strong { color: var(--red); }
.metric.yellow strong { color: var(--yellow); }
.metric.green strong { color: var(--green); }
.metric.purple strong { color: var(--purple); }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.panel + .panel {
  margin-top: 14px;
}

.panel-head {
  min-height: 52px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  margin: 0;
  font-size: 14px;
}

.panel-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.panel-head-actions {
  margin-left: auto;
  display: flex;
  gap: 7px;
}

.panel-body {
  padding: 14px;
}

.panel-body.flush {
  padding: 0;
}

.focus-list,
.decision-list,
.activity-list,
.standard-list,
.review-list,
.comm-list {
  display: grid;
  gap: 8px;
}

.focus-item,
.decision-item,
.activity-item,
.review-item,
.comm-item {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
}

.focus-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.focus-item strong,
.decision-item strong,
.review-item strong,
.comm-item strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.focus-item p,
.decision-item p,
.activity-item p,
.review-item p,
.comm-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.priority-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.priority-dot.high { background: var(--red); }
.priority-dot.medium { background: var(--yellow); }
.priority-dot.low { background: var(--green); }

.editor-panel {
  margin-bottom: 14px;
}

.standard-tile.inactive {
  opacity: 0.65;
}

.item-actions {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.assignment-select {
  width: 100%;
  min-width: 108px;
  max-width: 160px;
}

.activity-item .item-actions {
  margin-top: 8px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 8px;
}

.store-tile {
  text-align: left;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.store-tile:hover {
  border-color: #a9bdcd;
}

.store-tile-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.store-tile-head strong {
  font-size: 13px;
}

.store-tile-head span {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}

.store-bars {
  display: flex;
  height: 7px;
  overflow: hidden;
  border-radius: 2px;
  background: #edf0f3;
}

.store-bars i {
  display: block;
  min-width: 0;
}

.store-bars .red { background: var(--red); }
.store-bars .yellow { background: #d6a329; }
.store-bars .green { background: var(--green); }
.store-bars .noData { background: #aab5be; }

.store-meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.filter-bar input,
.filter-bar select {
  width: auto;
  min-width: 140px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

th,
td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #edf3f7;
  color: var(--navy);
  font-size: 11px;
}

tbody tr:hover {
  background: #f8fafb;
}

td.wrap {
  min-width: 220px;
  white-space: normal;
  line-height: 1.5;
}

.status-badge.green { color: var(--green); background: var(--green-soft); }
.status-badge.yellow { color: var(--yellow); background: var(--yellow-soft); }
.status-badge.red { color: var(--red); background: var(--red-soft); }
.status-badge.no-data { color: var(--muted); background: #edf0f3; }
.status-badge.pending { color: var(--navy); background: var(--blue-soft); }
.status-badge.in-progress { color: var(--blue); background: var(--blue-soft); }
.status-badge.done { color: var(--green); background: var(--green-soft); }
.status-badge.blocked { color: var(--purple); background: var(--purple-soft); }
.status-badge.overdue { color: var(--red); background: var(--red-soft); }

.progress {
  min-width: 82px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #e8edf1;
}

.progress-track i {
  display: block;
  height: 100%;
  background: var(--blue);
}

.progress span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.action-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(320px, 1fr));
  gap: 11px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 4px;
}

.action-column {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafb;
}

.action-column-head {
  padding: 10px 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: white;
  font-size: 12px;
  font-weight: 700;
}

.action-stack {
  display: grid;
  gap: 8px;
  padding: 9px;
}

.action-item {
  padding: 11px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 6px;
  background: white;
}

.action-item.high { border-left-color: var(--red); }
.action-item.medium { border-left-color: var(--yellow); }
.action-item.low { border-left-color: var(--green); }

.action-item-head {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 7px;
}

.action-item-head strong {
  font-size: 12px;
}

.action-item-head span {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}

.action-item p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.action-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 7px;
  border-radius: 4px;
  background: #eef2f5;
  color: var(--muted);
  font-size: 10px;
}

.action-timeline {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.action-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
}

.action-event strong {
  font-size: 11px;
}

.action-event span {
  color: var(--muted);
  font-size: 10px;
}

.action-event p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.communication-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.record-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.record-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.score-ring {
  --score: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--blue) calc(var(--score) * 1%), #e9eef2 0);
  position: relative;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: white;
}

.score-ring strong {
  position: relative;
  font-size: 28px;
}

.score-ring span {
  position: absolute;
  bottom: 24px;
  font-size: 10px;
  color: var(--muted);
}

.score-summary {
  display: flex;
  align-items: center;
  gap: 18px;
}

.score-summary h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.score-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.rubric-list {
  display: grid;
  gap: 8px;
}

.rubric-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 9px;
}

.rubric-item span {
  font-size: 11px;
}

.rubric-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 3px;
  background: #edf0f3;
}

.rubric-bar i {
  display: block;
  height: 100%;
  background: var(--blue);
}

.rubric-item b {
  text-align: right;
  font-size: 11px;
}

.check-list {
  display: grid;
  gap: 7px;
}

.check-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
}

.check-item::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}

.warning-list {
  display: grid;
  gap: 8px;
}

.warning-item {
  padding: 10px 11px;
  border-left: 3px solid var(--yellow);
  background: var(--yellow-soft);
  color: #6f4a09;
  font-size: 11px;
  line-height: 1.55;
}

.empty {
  padding: 26px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.mobile-nav {
  display: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(18, 43, 66, 0.34);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 51;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  padding: 18px;
  background: white;
  box-shadow: -12px 0 34px rgba(18, 43, 66, 0.18);
}

.drawer-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.drawer-head h2 {
  margin: 0;
  font-size: 19px;
}

.drawer-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.drawer-head .icon-btn {
  margin-left: auto;
}

.detail-list {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.detail-list dt,
.detail-list dd {
  margin: 0;
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55;
}

.detail-list dt {
  color: var(--muted);
  background: #f7f9fa;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  position: relative;
}

.timeline-item::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--blue);
  z-index: 1;
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 13px;
  bottom: -6px;
  width: 1px;
  background: var(--line-strong);
}

.timeline-item div {
  padding-bottom: 14px;
}

.timeline-item strong {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}

.timeline-item span {
  color: var(--muted);
  font-size: 10px;
}

#toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 11px 13px;
  border-radius: 7px;
  background: var(--navy);
  color: white;
  box-shadow: 0 10px 30px rgba(18, 43, 66, 0.25);
  font-size: 12px;
}

.toast.error {
  background: var(--red);
}

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

.right {
  text-align: right;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid,
  .communication-layout { grid-template-columns: 1fr; }
  .action-columns { grid-template-columns: repeat(4, minmax(250px, 1fr)); }
}

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-side { min-height: 280px; padding: 28px 22px; }
  .login-side h1 { margin: 36px 0 12px; font-size: 30px; }
  .login-status { display: none; }
  .login-main { padding: 22px; align-items: start; }
  .user-grid { grid-template-columns: 1fr; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { padding: 10px 14px; }
  .topbar-title h1 { font-size: 15px; }
  .topbar-title p { display: none; }
  .sync-chip { display: none; }
  .content { padding: 14px 12px 86px; }
  .view-head { display: block; }
  .view-actions { margin-top: 12px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric strong { font-size: 23px; }
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  .mobile-nav button {
    border: 0;
    background: transparent;
    color: var(--muted);
    min-height: 42px;
    font-size: 10px;
    border-radius: 6px;
  }
  .mobile-nav button.active {
    color: var(--navy);
    background: var(--blue-soft);
    font-weight: 700;
  }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-bar input,
  .filter-bar select { width: 100%; min-width: 0; }
  .filter-bar input:first-child { grid-column: 1 / -1; }
  .score-summary { align-items: flex-start; }
}

@media (max-width: 520px) {
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric { padding: 12px; }
  .metric strong { font-size: 21px; }
  .panel-body { padding: 11px; }
  .focus-item { grid-template-columns: auto minmax(0, 1fr); }
  .focus-item .btn { grid-column: 1 / -1; width: 100%; }
  .store-grid { grid-template-columns: 1fr 1fr; }
  .score-summary { display: block; }
  .score-ring { margin-bottom: 14px; }
  .rubric-item { grid-template-columns: 84px minmax(0, 1fr) 34px; }
  .detail-list { grid-template-columns: 92px minmax(0, 1fr); }
}

.goal-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
  align-items: start;
}

.goal-store-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.goal-store-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
}

.goal-store-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.goal-store-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.goal-kpi-list {
  display: grid;
}

.goal-kpi-row {
  display: grid;
  grid-template-columns: minmax(86px, 0.65fr) minmax(160px, 1.35fr);
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #eef1f4;
  background: white;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.goal-kpi-row:hover {
  background: #f8fafb;
}

.goal-kpi-name {
  font-size: 12px;
  font-weight: 700;
}

.goal-kpi-value {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.goal-kpi-value strong {
  font-size: 14px;
}

.goal-kpi-value small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-progress {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8edf1;
}

.goal-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.goal-progress.red i { background: var(--red); }
.goal-progress.yellow i { background: var(--yellow); }
.goal-progress.green i { background: var(--green); }
.goal-progress.no-data i { background: #aab7c1; }

.goal-kpi-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.goal-kpi-meta em {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-kpi-meta b {
  color: var(--text);
  white-space: nowrap;
}

.goal-store-foot {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 11px;
}

.goal-store-foot strong {
  color: var(--text);
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.report-summary-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.report-summary-card > span,
.report-summary-card > small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-summary-card > strong {
  display: block;
  margin: 5px 0 3px;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-progress {
  height: 6px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 3px;
  background: #e8edf1;
}

.report-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.report-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.report-metric-input {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.report-metric-input > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.report-metric-input em {
  color: var(--blue);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.report-metric-input input {
  width: 100%;
}

.report-metric-input small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-daily-table {
  min-width: 880px;
}

.task-composer {
  margin-bottom: 14px;
}

@media (max-width: 1180px) {
  .report-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .goal-card-grid { grid-template-columns: 1fr; }
  .report-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .goal-kpi-row { grid-template-columns: 80px minmax(0, 1fr); padding: 11px; }
  .goal-kpi-value strong { font-size: 13px; }
  .report-summary-grid,
  .report-metric-grid { grid-template-columns: 1fr; }
}

.revenue-progress-panel {
  margin-bottom: 14px;
}

.revenue-chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.revenue-chart-summary > div {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
}

.revenue-chart-summary span,
.revenue-progress-values small,
.revenue-progress-head small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.revenue-chart-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.revenue-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.revenue-progress-item {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  text-align: left;
}

.revenue-progress-item:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.revenue-progress-head,
.revenue-progress-values {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.revenue-progress-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.revenue-progress-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.revenue-progress-track {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef2;
}

.revenue-progress-track b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.revenue-progress-item.red .revenue-progress-track b { background: var(--red); }
.revenue-progress-item.yellow .revenue-progress-track b { background: #d6a329; }
.revenue-progress-item.green .revenue-progress-track b { background: var(--green); }
.revenue-progress-item.no-data .revenue-progress-track b { background: #aab7c1; }

.revenue-progress-line em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

.revenue-progress-values > span {
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .revenue-chart-summary,
  .revenue-progress-grid {
    grid-template-columns: 1fr;
  }
}
.revenue-project-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.revenue-project-column {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
}

.revenue-project-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.revenue-project-head > div:last-child {
  text-align: right;
}

.revenue-project-head strong,
.revenue-project-head b {
  display: block;
  color: #17324d;
}

.revenue-project-head strong {
  font-size: 14px;
}

.revenue-project-head b {
  font-size: 16px;
}

.revenue-project-head span,
.revenue-project-head small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.revenue-project-columns .revenue-progress-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .revenue-project-columns {
    grid-template-columns: 1fr;
  }
}
.store-switch {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.store-switch button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: #425466;
  font-size: 11px;
  font-weight: 700;
}

.store-switch button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.staff-report-panel {
  max-width: 920px;
}

.staff-report-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.staff-report-meta > div span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.staff-report-meta > div strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.staff-metric-list {
  display: grid;
  gap: 8px;
}

.staff-metric-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 150px minmax(130px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
}

.staff-metric-name strong {
  display: block;
  font-size: 12px;
}

.staff-metric-name small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.staff-metric-input span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.staff-metric-input input {
  width: 100%;
  min-height: 38px;
  font-size: 16px;
  font-weight: 700;
}

.staff-metric-progress {
  display: grid;
  gap: 5px;
}

.staff-metric-progress i {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef2;
  position: relative;
}

.staff-metric-progress i::after {
  content: "";
  display: block;
  height: 100%;
  width: inherit;
  background: var(--blue);
  border-radius: inherit;
}

.staff-metric-progress small {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.staff-report-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-top: 14px;
}

.staff-report-foot label {
  flex: 1;
}

@media (max-width: 760px) {
  .staff-report-meta,
  .staff-report-foot {
    display: grid;
  }

  .staff-metric-row {
    grid-template-columns: 1fr;
  }
}
.staff-metric-progress i::after {
  display: none;
}

.staff-metric-progress i b {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
}
.subsection-title {
  margin-bottom: 8px;
  color: #17324d;
  font-size: 13px;
  font-weight: 800;
}

.visit-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 8px;
}

.visit-category-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}

.visit-category-grid input,
.channel-table input {
  width: 100%;
  min-height: 36px;
  font-weight: 700;
}

.visit-total {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--blue-soft);
}

.visit-total span {
  color: var(--muted);
  font-size: 10px;
}

.visit-total strong {
  color: var(--blue);
  font-size: 18px;
}

.channel-table-wrap {
  overflow-x: auto;
}

.channel-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.channel-table th,
.channel-table td {
  padding: 7px 8px;
  border: 1px solid var(--line);
  text-align: center;
  font-size: 11px;
}

.channel-table th {
  background: #eef4f8;
  color: #17324d;
}

.channel-total td {
  background: #f7fafc;
  font-weight: 800;
}

@media (max-width: 900px) {
  .visit-category-grid {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
  }
}

@media (max-width: 560px) {
  .visit-category-grid {
    grid-template-columns: repeat(2, minmax(92px, 1fr));
  }
}
.weekly-total-row td {
  position: sticky;
  bottom: 0;
  background: #eef4f8;
  color: #17324d;
}
.roi-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
}

.roi-badge.low {
  color: #c62828;
  background: #fdecea;
  border: 1px solid #f3b6b0;
  border-radius: 5px;
  padding: 3px 6px;
}

.report-summary-card.roi-low {
  border-color: #e05a4f;
  background: #fff4f2;
}

.report-summary-card.roi-low strong {
  color: #c62828;
}
.reminder-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.reminder-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 7px;
  background: white;
  text-align: left;
}

.reminder-item.red { border-left-color: var(--red); background: #fff6f5; }
.reminder-item.yellow { border-left-color: #d6a329; background: #fffaf0; }
.reminder-item strong { grid-row: 1 / 3; font-size: 21px; color: #17324d; }
.reminder-item span { font-size: 12px; font-weight: 800; color: #17324d; }
.reminder-item small { color: var(--muted); font-size: 10px; }
.reminder-empty { grid-column: 1 / -1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafb; color: var(--muted); font-size: 11px; }

@media (max-width: 760px) {
  .reminder-strip { grid-template-columns: 1fr; }
}
/* Modern workspace theme */
:root {
  --navy: #1d4ed8;
  --navy-2: #1e40af;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --orange: #ea580c;
  --orange-soft: #fff7ed;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --yellow: #d97706;
  --yellow-soft: #fffbeb;
  --green: #16a34a;
  --green-soft: #ecfdf3;
  --purple: #7c3aed;
  --purple-soft: #f5f3ff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --surface: #ffffff;
  --canvas: #f7f8fb;
  --sidebar: #ffffff;
  --sidebar-2: #f8fafc;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.04);
}

body {
  background: var(--canvas);
  color: var(--ink);
}

.app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  background: var(--canvas);
}

.sidebar {
  background: var(--sidebar);
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  box-shadow: none;
}

.sidebar-brand {
  padding: 4px 8px 18px;
  border-bottom: 1px solid #eef0f4;
}

.sidebar-brand .brand-mark,
.boot-mark {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.sidebar-brand strong {
  color: #111827;
}

.sidebar-brand span,
.sidebar-user span {
  color: #94a3b8;
}

.sidebar-user {
  border-top: 1px solid #eef0f4;
}

.sidebar-user strong {
  color: #111827;
}

.avatar {
  background: #eff6ff;
  color: #2563eb;
}

.nav-list {
  gap: 5px;
  padding-top: 14px;
}

.nav-btn {
  min-height: 42px;
  color: #475569;
  border-radius: 8px;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.nav-btn:hover {
  background: #f1f5f9;
  color: #111827;
}

.nav-btn.active {
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 3px 0 0 #2563eb;
}

.nav-count {
  background: #e2e8f0;
  color: #475569;
}

.nav-btn.active .nav-count {
  background: #dbeafe;
  color: #1d4ed8;
}

.topbar {
  min-height: 68px;
  padding: 13px 24px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar-title h1 {
  font-size: 17px;
  font-weight: 760;
}

.topbar-title p {
  color: #94a3b8;
}

.content {
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px 26px 52px;
}

.view-head {
  margin-bottom: 18px;
}

.view-head h2 {
  font-size: 22px;
  letter-spacing: 0;
}

.view-head p {
  color: #6b7280;
  line-height: 1.6;
}

.panel,
.metric,
.store-tile,
.action-column,
.action-item,
.table-wrap,
.editor-panel {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  background: var(--surface);
}

.panel-head {
  padding: 13px 16px;
  background: #fff;
}

.panel-head h3 {
  font-size: 14px;
  font-weight: 760;
}

.panel-body {
  padding: 16px;
}

.metric-grid {
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.metric span {
  color: #64748b;
  font-weight: 650;
}

.metric strong {
  font-size: 28px;
  font-weight: 780;
  color: #1d4ed8;
}

.metric.red strong { color: #dc2626; }
.metric.yellow strong { color: #d97706; }
.metric.green strong { color: #16a34a; }
.metric.purple strong { color: #7c3aed; }

.btn {
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .14);
}

.btn:hover {
  background: #1d4ed8;
}

.btn.secondary {
  background: #fff;
  color: #334155;
  border-color: #dbe1e8;
  box-shadow: none;
}

.btn.secondary:hover {
  background: #f8fafc;
  color: #111827;
}

.btn.danger {
  background: #dc2626;
}

.chip,
.status-badge,
.role-chip,
.sync-chip {
  border-radius: 999px;
  font-weight: 650;
}

.chip {
  background: #f1f5f9;
  color: #475569;
}

.action-columns {
  gap: 14px;
}

.action-column {
  background: #f2f5f9;
  border-color: #e2e8f0;
  box-shadow: none;
}

.action-column-head {
  padding: 11px 12px;
  background: #fff;
  color: #334155;
}

.action-item {
  padding: 13px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.action-item-head strong {
  font-size: 13px;
}

.action-item p {
  color: #64748b;
}

.action-footer {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

input,
select,
textarea {
  border: 1px solid #d8dee7;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  min-height: 40px;
  padding: 9px 10px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

label {
  color: #475569;
  font-weight: 650;
}

.form-grid {
  gap: 14px;
}

/* AI 分析：录音文本输入框 + 旁边的分析按钮 */
.transcript-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.transcript-field > label {
  font-size: 13px;
  color: var(--muted);
}
.transcript-input {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.transcript-input > textarea,
.transcript-input > select {
  flex: 1 1 auto;
  min-width: 0;
}
.transcript-side {
  flex: 0 0 104px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.transcript-side .muted {
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}
.ai-result {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
  padding: 12px 14px;
}
.ai-result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.ai-result-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
}
.ai-result-foot {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.ai-result-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ai-score {
  color: var(--blue);
  font-weight: 600;
}
.comm-preview {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 沟通情况完整展示，不限高 */
.comm-body {
  max-height: 62vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 10px 4px 4px;
}
.comm-body::-webkit-scrollbar {
  width: 8px;
}
.comm-body::-webkit-scrollbar-thumb {
  background: rgba(99, 115, 133, .35);
  border-radius: 4px;
}
.comm-body::-webkit-scrollbar-track {
  background: transparent;
}

/* 沟通情况（左）与 AI 分析结果（右）并排 */
.result-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 1100px) {
  .result-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .transcript-input {
    flex-direction: column;
  }
  .transcript-side {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
  }
}

table {
  color: #334155;
}

th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 760;
}

td,
th {
  border-color: #eef1f5;
}

tr:hover td {
  background: #fafcff;
}

.drawer {
  background: #f7f8fb;
  box-shadow: -16px 0 40px rgba(15, 23, 42, .13);
  padding: 20px;
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 14px;
  background: #f7f8fb;
  border-bottom: 1px solid var(--line);
}

.drawer-head > div {
  flex: 1;
  min-width: 0;
}

.drawer-head > .btn,
.drawer-head > .icon-btn {
  flex: 0 0 auto;
  margin-left: auto;
}

.detail-list {
  background: #fff;
  border-color: var(--line);
  border-radius: 8px;
}

.store-switch button {
  border-radius: 999px;
  border-color: #dbe1e8;
}

.store-switch button.active {
  background: #2563eb;
  border-color: #2563eb;
}

.login-shell {
  background: #f7f8fb;
}

.login-side {
  background: #0f172a;
}

.login-main {
  background:
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, .08), transparent 28%),
    #f7f8fb;
}

.login-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.user-card {
  border-radius: 8px;
  background: #fff;
}

.user-card.active {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .content { padding: 18px 16px 42px; }
}

@media (max-width: 640px) {
  .topbar { padding: 10px 14px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .login-panel { padding: 22px; }
}
.task-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.task-filter button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.task-filter button:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.task-filter button.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.task-filter button span {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  text-align: center;
}

.task-filter button.active span {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.task-list {
  display: grid;
  gap: 10px;
  max-width: 1180px;
}

.task-list .action-item {
  width: 100%;
}
.coordination-block {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.coordination-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.coordination-item {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.coordination-item > span,
.check-row {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.coordination-item input[type="checkbox"],
.check-row input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 0;
}

.coordination-item textarea {
  min-height: 62px;
}

@media (max-width: 760px) {
  .coordination-grid {
    grid-template-columns: 1fr;
  }
}
.task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 16px;
  align-items: center;
}

.task-card-main {
  min-width: 0;
}

.task-card-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.task-card-kicker span {
  padding: 2px 7px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
}

.task-card-kicker em {
  color: #94a3b8;
  font-size: 10px;
  font-style: normal;
}

.task-card h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 15px;
  font-weight: 760;
}

.task-card-main > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #94a3b8;
  font-size: 10px;
}

.task-card-side {
  display: grid;
  justify-items: end;
  gap: 7px;
  text-align: right;
}

.task-card-side > span:not(.status-badge) {
  color: #94a3b8;
  font-size: 10px;
}

.task-card-side .btn {
  margin-top: 3px;
}

@media (max-width: 760px) {
  .task-card {
    grid-template-columns: 1fr;
  }

  .task-card-side {
    justify-items: start;
    text-align: left;
  }
}

/* 品牌标识：统一用白底衬托公司 logo */
.brand-mark,
.sidebar-brand .brand-mark,
.boot-mark {
  background: #fff;
  background-image: none;
  padding: 3px;
  overflow: hidden;
  box-shadow: none;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}
.sidebar-brand .brand-mark img {
  border-radius: 5px;
}

/* 处理情况上传的现场图片 */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.image-gallery a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.image-gallery img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  display: block;
}

/* 录音转写：按讲话人分段 */
.talk-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.talk-turn {
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}
.talk-turn:nth-child(even) {
  background: #f7f9fc;
}
.talk-who {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  font-size: 13px;
  margin-bottom: 4px;
}
.talk-who em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.talk-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
}
.talk-header {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}
