/* ============================================================
   Share — 静态汇报管理系统
   Theme reference: D:\JunRepos\report
   Style language: 精致暗色 + 琥珀高亮 + 云盘卡片 + 类型徽章
   ============================================================ */

:root {
  --bg-base: #0d0f14;
  --bg-surface: #141720;
  --bg-panel: #11141c;
  --bg-card: #1a1e2b;
  --bg-card-hover: #1f2434;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(245, 166, 35, 0.36);
  --accent: #f5a623;
  --accent-soft: rgba(245, 166, 35, 0.12);
  --accent-glow: rgba(245, 166, 35, 0.25);
  --blue: #6378dc;
  --blue-soft: rgba(99, 120, 220, 0.18);
  --green: #26c97a;
  --green-soft: rgba(38, 201, 122, 0.12);
  --text-primary: #e8eaf0;
  --text-secondary: #a4a9bb;
  --text-muted: #5d6374;
  --radius-card: 14px;
  --radius-panel: 16px;
  --radius-badge: 6px;
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-hover);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font-title: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

:root[data-theme="emerald"] {
  --accent: #26c97a;
  --accent-soft: rgba(38, 201, 122, 0.13);
  --accent-glow: rgba(38, 201, 122, 0.25);
  --border-hover: rgba(38, 201, 122, 0.36);
}

:root[data-theme="violet"] {
  --accent: #9d7cff;
  --accent-soft: rgba(157, 124, 255, 0.13);
  --accent-glow: rgba(157, 124, 255, 0.25);
  --border-hover: rgba(157, 124, 255, 0.36);
}

:root[data-mode="light"] {
  --bg-base: #f6f7f4;
  --bg-surface: #ffffff;
  --bg-panel: #f0f2ee;
  --bg-card: #ffffff;
  --bg-card-hover: #fffaf0;
  --border: rgba(19, 24, 32, 0.1);
  --border-strong: rgba(19, 24, 32, 0.16);
  --text-primary: #15191f;
  --text-secondary: #4b5563;
  --text-muted: #7a8290;
  --shadow-card: 0 8px 28px rgba(20, 24, 32, 0.08);
  --shadow-hover: 0 14px 42px rgba(20, 24, 32, 0.14), 0 0 0 1px var(--border-hover);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(99, 120, 220, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28rem);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  transform: translateY(-180%);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  background: var(--bg-card);
  color: var(--accent);
  text-decoration: none;
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100% - 56px, 1400px);
  margin: 0 auto;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 60px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-base) 86%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(18rem, 650px) minmax(18rem, 1fr);
  gap: 16px;
  align-items: center;
  padding: 11px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 18%, transparent);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.4px;
}

.brand strong span {
  color: var(--accent);
}

.brand small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 42px 0 40px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.search-form input::placeholder {
  color: var(--text-muted);
}

.search-form input:focus {
  border-color: var(--accent);
  background: rgba(245, 166, 35, 0.04);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  pointer-events: none;
}

.clear-search {
  position: absolute;
  right: 6px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
}

.clear-search:hover,
.clear-search:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

.clear-search svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.page-shell {
  padding: 18px 0 60px;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  overflow: hidden;
  min-height: 42px;
  margin-bottom: 38px;
}

.toolbar.breadcrumbs-hidden .breadcrumbs {
  display: none;
}

.toolbar.breadcrumbs-hidden {
  min-height: 0;
  height: 0;
  gap: 0;
  margin-bottom: 0;
}

.toolbar.breadcrumbs-hidden .tool-button {
  display: none;
}

.toolbar.is-pending {
  min-height: 0;
  height: 0;
  gap: 0;
  margin-bottom: 0;
}

.toolbar.is-pending .tool-button,
.toolbar.is-pending .breadcrumbs {
  display: none;
}

.tool-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.tool-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.tool-button[hidden] {
  display: none;
}

.tool-button:hover:not(:disabled),
.tool-button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--border-hover);
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

.tool-button:disabled {
  cursor: not-allowed;
  color: var(--text-muted);
  opacity: 0.55;
}

.breadcrumbs {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 14px;
  list-style: none;
  scrollbar-width: thin;
  white-space: nowrap;
}

.breadcrumbs li {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.breadcrumbs li + li::before {
  content: "›";
  color: var(--accent);
  opacity: 0.72;
}

.breadcrumb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: min(26vw, 220px);
  border: 1px solid transparent;
  border-radius: 999px;
  height: 34px;
  padding: 0 11px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1;
}

.breadcrumb-button span,
.breadcrumb-button {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb-button[aria-current="page"] {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-weight: 700;
  cursor: default;
}

.breadcrumb-button:not([aria-current="page"]):hover,
.breadcrumb-button:not([aria-current="page"]):focus-visible {
  border-color: var(--border-hover);
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

.breadcrumb-home svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

h1 {
  margin-bottom: 0;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.status-text {
  max-width: 42rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.content-panel {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 20px;
  padding: 0;
}

.project-card {
  min-width: 0;
  animation: card-in 0.42s ease both;
}

.project-card:nth-child(1) { animation-delay: 0.03s; }
.project-card:nth-child(2) { animation-delay: 0.07s; }
.project-card:nth-child(3) { animation-delay: 0.11s; }
.project-card:nth-child(4) { animation-delay: 0.15s; }
.project-card:nth-child(5) { animation-delay: 0.19s; }
.project-card:nth-child(6) { animation-delay: 0.23s; }
.project-card:nth-child(7) { animation-delay: 0.27s; }
.project-card:nth-child(8) { animation-delay: 0.31s; }

.card-link {
  position: relative;
  display: flex;
  min-height: 218px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px 18px 24px;
  background: var(--bg-card);
  color: var(--text-primary);
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 62%);
  opacity: 0;
  transition: opacity var(--transition);
}

.card-link::after {
  content: attr(data-badge);
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: var(--radius-badge);
  padding: 2px 7px;
  background: rgba(245, 166, 35, 0.14);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.card-link[data-type="directory"]::after {
  border-color: rgba(99, 120, 220, 0.3);
  background: var(--blue-soft);
  color: #8ea3ff;
}

.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.card-link:hover::before,
.card-link:focus-visible::before {
  opacity: 1;
}

.card-link:active {
  transform: translateY(-1px) scale(0.99);
}

.card-icon,
.card-title,
.card-path,
.card-action {
  position: relative;
  z-index: 1;
}

.card-icon {
  display: grid;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 16px;
  background: rgba(245, 166, 35, 0.12);
  color: var(--accent);
  transition: transform var(--transition);
}

.card-link:hover .card-icon,
.card-link:focus-visible .card-icon {
  transform: scale(1.08);
}

.card-icon svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.card-link[data-type="directory"] .card-icon {
  background: rgba(99, 120, 220, 0.12);
  color: #7b96ff;
}

.card-link[data-icon="table"] .card-icon {
  background: rgba(245, 166, 35, 0.12);
  color: var(--accent);
}

.card-link[data-icon="chart"] .card-icon {
  background: rgba(99, 120, 220, 0.12);
  color: #7b96ff;
}

.card-link[data-icon="media"] .card-icon {
  background: var(--green-soft);
  color: var(--green);
}

.card-title {
  display: block;
  width: 100%;
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.card-path {
  display: block;
  margin-top: -6px;
  max-width: 100%;
  min-height: 1.25rem;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-action {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.header-tools {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-button:hover,
.icon-button:focus-visible,
.icon-button[aria-expanded="true"] {
  border-color: var(--border-hover);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

.index-time {
  gap: 8px;
  max-width: 260px;
}

.index-time span {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-search-toggle {
  display: none;
}

.index-time-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 180px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--bg-surface) 94%, black);
  box-shadow: var(--shadow-hover);
}

.index-time-popover[hidden] {
  display: none;
}

.index-time-popover span,
.index-time-popover strong {
  display: block;
}

.index-time-popover span {
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.index-time-popover strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 750;
}

.icon-sun {
  display: none;
}

:root[data-mode="light"] .icon-moon {
  display: none;
}

:root[data-mode="light"] .icon-sun {
  display: block;
}

.theme-menu-wrap {
  position: relative;
}

.settings-menu-wrap {
  position: relative;
}

.theme-menu,
.settings-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 132px;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  background: color-mix(in srgb, var(--bg-surface) 94%, black);
  box-shadow: var(--shadow-hover);
}

.settings-menu {
  min-width: 196px;
  padding: 8px;
}

.theme-menu[hidden],
.settings-menu[hidden] {
  display: none;
}

.theme-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
}

.theme-menu button:hover,
.theme-menu button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--text-primary);
}

.settings-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
}

.settings-option:hover,
.settings-option:focus-visible {
  background: var(--accent-soft);
  color: var(--text-primary);
  outline: none;
}

.switch-track {
  position: relative;
  width: 32px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background var(--transition);
}

.switch-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--text-secondary);
  transition: transform var(--transition), background var(--transition);
}

.settings-option[aria-checked="true"] .switch-track {
  background: var(--accent-soft);
}

.settings-option[aria-checked="true"] .switch-track span {
  transform: translateX(14px);
  background: var(--accent);
}

.design-signature {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 10px;
  padding: 10px 12px;
  background:
    radial-gradient(circle at 14% 18%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 32%),
    color-mix(in srgb, var(--bg-card) 78%, black);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 24px color-mix(in srgb, var(--accent) 20%, transparent);
}

.design-signature::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 42%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  animation: signature-shine 3.6s ease-in-out infinite;
}

.design-signature span,
.design-signature strong {
  position: relative;
  z-index: 1;
  display: block;
}

.design-signature span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.design-signature strong {
  margin-top: 2px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 54%, transparent);
}

.theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.theme-amber { background: #f5a623; }
.theme-emerald { background: #26c97a; }
.theme-violet { background: #9d7cff; }

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 16px;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signature-shine {
  0%,
  58% {
    transform: translateX(0) rotate(18deg);
    opacity: 0;
  }
  68% {
    opacity: 1;
  }
  100% {
    transform: translateX(410%) rotate(18deg);
    opacity: 0;
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Report pages share the same dark presentation language. */
.report-body {
  background: var(--bg-base);
}

.report-page {
  position: relative;
  z-index: 1;
  width: min(100% - 56px, 1180px);
  margin: 0 auto;
  padding: 44px 0 64px;
}

.report-header,
.report-section,
.metric-card,
.table-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.report-header {
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(245, 166, 35, 0.08), transparent 58%),
    var(--bg-surface);
}

.report-header h1 {
  margin-bottom: 10px;
}

.report-header p,
.report-section p,
.table-card p,
.metric-card span {
  color: var(--text-secondary);
}

.report-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.report-section,
.metric-card,
.table-card {
  padding: 20px;
}

.report-section {
  margin-top: 16px;
}

.metric-card strong {
  display: block;
  color: var(--text-primary);
  font-size: 32px;
  line-height: 1.2;
}

.data-table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 10px;
  font-size: 14px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.data-table th {
  background: rgba(245, 166, 35, 0.08);
  color: var(--accent);
}

.bar-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.bar-list li {
  display: grid;
  grid-template-columns: 8rem 1fr 3rem;
  gap: 12px;
  align-items: center;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ffd17a);
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.22);
}

@media (max-width: 900px) {
  .shell,
  .report-page {
    width: min(100% - 32px, 100%);
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 10px;
    min-height: 72px;
    padding: 12px 0;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .search-form {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    margin-top: 8px;
  }

  .search-form.is-mobile-open {
    display: flex;
  }

  .search-form input {
    height: 36px;
  }

  .header-tools {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .mobile-search-toggle {
    display: inline-flex;
  }

  .icon-button {
    min-width: 34px;
    height: 34px;
    border-radius: 9px;
    padding: 0 8px;
  }

  .icon-button svg {
    width: 17px;
    height: 17px;
  }

  .index-time {
    max-width: none;
    gap: 0;
    padding: 0;
  }

  .index-time span {
    display: none;
  }

  .index-time-popover {
    top: calc(100% + 12px);
    right: 0;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .bar-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .shell,
  .report-page {
    width: min(100% - 24px, 100%);
  }

  .app-header {
    min-height: 0;
  }

  .header-inner {
    gap: 0 8px;
    min-height: 72px;
    padding: 12px 0;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand strong {
    font-size: 18px;
  }

  .page-shell {
    padding-top: 10px;
  }

  .toolbar {
    min-height: 34px;
    margin-bottom: 22px;
    gap: 8px;
  }

  .tool-button {
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
  }

  .tool-button svg {
    width: 18px;
    height: 18px;
  }

  .tool-button span {
    display: none;
  }

  .breadcrumb-button {
    justify-content: center;
    max-width: 112px;
    min-width: 36px;
    height: 36px;
    padding: 0 9px;
  }

  .breadcrumb-home svg {
    width: 18px;
    height: 18px;
  }

  .breadcrumb-home span {
    display: none;
  }

  .icon-button {
    min-width: 36px;
    height: 36px;
    border-radius: 9px;
    padding: 0 8px;
  }

  .index-time {
    display: inline-flex;
  }

  .icon-button svg {
    width: 16px;
    height: 16px;
  }

  .content-panel {
    padding: 0;
  }

  .report-header,
  .report-section,
  .metric-card,
  .table-card {
    padding: 18px 14px;
  }

  h1 {
    font-size: 24px;
  }

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

  .card-link {
    min-height: 172px;
    padding: 18px 12px 16px;
  }

  .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .card-icon svg {
    width: 28px;
    height: 28px;
  }
}
