/* 管理后台：清晰的信息网格、浅色浏览器框架与深度文化标识。 */
.app-shell {
  background: #f8f8fb;
}
.app-shell .sidebar {
  background: #fff;
  border-right-color: #e4dfe7;
  box-shadow: 5px 0 24px rgba(27, 44, 76, .035);
}
.app-shell .brand { align-items: flex-start; flex-direction: column; gap: 14px; padding: 0 4px 25px; }
.app-shell .admin-company-logo { display: block; width: 190px; max-width: 100%; height: auto; object-fit: contain; background: #fff; }
.app-shell .brand-title { letter-spacing: -.02em; color: #312737; }
.app-shell .brand-subtitle { color: #6f6474; letter-spacing: .015em; }
.app-shell .nav-item {
  border: 1px solid transparent;
  border-radius: 9px;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.app-shell .nav-item:hover { background: #f8f1f5; }
.app-shell .nav-item[aria-current="page"] {
  background: #fae9f0;
  color: #a5104b;
  border-color: #f1d7e1;
  box-shadow: inset 3px 0 0 #a5104b;
}
/* Brand blue and yellow remain restrained, secondary accents. */
.app-shell .sidebar { border-bottom: 3px solid #e9c02c; }
.app-shell .local-dot { background: #218ec2; }
.app-shell .workspace { min-height: 100dvh; }
.app-shell .tab[aria-selected="true"] { color: #a5104b; border-color: #a5104b; }
.app-shell .search-field:focus-within { outline-color: #a5104b; }
.app-shell :is(input, textarea, select):focus-visible { outline-color: #a5104b; }
.app-shell :is(input, textarea) { caret-color: #a5104b; }
.app-shell ::selection { background: #a5104b; color: #fff; }
.app-shell .topbar {
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid #e4dfe7;
  box-shadow: 0 1px 0 rgba(255,255,255,.9), 0 8px 24px rgba(30,47,80,.035);
  backdrop-filter: blur(16px);
}
.app-shell .topbar-trail {
  padding: 8px 14px;
  border: 1px solid #e9e1e9;
  border-radius: 9px;
  background: #fcf9fb;
  color: #6f6474;
}
.app-shell .button, #editor-dialog .button {
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.app-shell .button.primary, #editor-dialog .button.primary {
  background: linear-gradient(180deg, #ba1758, #a5104b);
  border-color: #970d43;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.23), 0 3px 7px rgba(165,16,75,.17);
}
.app-shell .button.primary:hover:not(:disabled), #editor-dialog .button.primary:hover:not(:disabled) {
  background: #820d3d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 5px 12px rgba(165,16,75,.22);
}
.app-shell .button.secondary, #editor-dialog .button.secondary {
  background: linear-gradient(#fff, #fcfafc);
  border-color: #dcd3dd;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(27,44,76,.06);
}
.app-shell .button.secondary:hover:not(:disabled), #editor-dialog .button.secondary:hover:not(:disabled) {
  background: #fbf3f7;
  border-color: #c9b7c3;
}
.app-shell .button:active:not(:disabled), #editor-dialog .button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(15,32,63,.12);
}
.app-shell .button:focus-visible, #editor-dialog .button:focus-visible { outline: 2px solid #a5104b; outline-offset: 3px; }
/* Quiet actions, tabs, and disabled controls remain distinct from primary actions. */
.app-shell .button.quiet:hover:not(:disabled),
#editor-dialog .button.quiet:hover:not(:disabled),
.app-shell .button.icon-button:hover:not(:disabled),
#editor-dialog .button.icon-button:hover:not(:disabled) {
  background: #f9eaf0;
  color: #820d3d;
}
.app-shell .button.danger:hover:not(:disabled),
#editor-dialog .button.danger:hover:not(:disabled) {
  background: #8f2536;
  border-color: #8f2536;
  color: #fff;
}
.app-shell .button.danger:not(:hover):not(:disabled),
#editor-dialog .button.danger:not(:hover):not(:disabled) { color: #8f2536; }
.app-shell .button:disabled, #editor-dialog .button:disabled {
  background: #f1edf1;
  border-color: #dfd7df;
  color: #655d66;
  box-shadow: none;
  opacity: 1;
}
.app-shell .button[data-disabled-by-busy="true"],
#editor-dialog .button[data-disabled-by-busy="true"] { cursor: progress; }
.app-shell .nav-item:focus-visible,
.app-shell .tabbar :is(button, .tab):focus-visible {
  outline: 2px solid #a5104b;
  outline-offset: -2px;
}
.app-shell .tabbar :is(button, .tab):hover { color: #a5104b; }
.app-shell .tabbar :is(button, .tab) { transition: color 150ms ease, box-shadow 150ms ease; }
.app-shell .mode-switch { border-radius: 9px; padding: 4px; background: #f3eef2; }
.app-shell .mode-switch a, .app-shell .mode-switch button { border-radius: 6px; }
.app-shell .mode-switch [aria-pressed="true"], .app-shell .mode-switch [aria-current="page"], .app-shell .mode-switch .active { box-shadow: 0 1px 4px rgba(27,44,76,.12); }
@media (max-width: 700px) {
  .app-shell .brand { flex-direction: row; align-items: center; gap: 12px; }
  .app-shell .admin-company-logo { width: 142px; }
  .app-shell .topbar { flex-wrap: wrap; }
  .app-shell .topbar-trail { padding: 6px 9px; white-space: nowrap; }
  .app-shell .topbar-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell .button, .app-shell .nav-item, .app-shell .tabbar :is(button, .tab), #editor-dialog .button { transition: none; }
}
