:root {
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: #263d49;
  background: #f3f5f4;
  --blue: #315b71;
  --line: #e1e7e8;
}
* { box-sizing: border-box; }
body { margin: 0; display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.sidebar { width: 152px; flex: none; background: #fff; border-right: 1px solid var(--line); padding: 15px 10px; }
nav { display: flex; flex-direction: column; gap: 7px; }
.nav-item {
  min-height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 10px;
  color: #73848c; border-radius: 5px; font-size: 13px;
  transition: background .15s, color .15s; touch-action: manipulation;
}
.nav-item > svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: #f5f8f8; color: var(--blue); }
.nav-item.active { background: #eaf1f3; color: var(--blue); font-weight: 600; }
.nav-arrow { margin-left: auto; font-size: 21px; font-weight: 400; opacity: 0; }
.active .nav-arrow { opacity: 1; }

.workspace { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.topbar {
  height: 52px; flex: none; background: #fff; border-bottom: 1px solid var(--line); padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.report-heading { display: flex; align-items: center; gap: 13px; min-width: 0; }
h1 { margin: 0; font-size: 14px; font-weight: 600; white-space: nowrap; }
.date-badge { font-size: 10px; color: #66808b; background: #f1f5f6; padding: 4px 8px; border-radius: 3px; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 17px; font-size: 11px; white-space: nowrap; }
.updated-at { font-size: 10px; color: #94a1a7; font-variant-numeric: tabular-nums; }
.open-link { display: flex; align-items: center; gap: 5px; color: #77909a; touch-action: manipulation; }
.open-link:hover { color: var(--blue); }
.open-link svg { width: 12px; height: 12px; }
.refresh {
  height: 30px; border: 1px solid #dce4e6; background: #fff; border-radius: 4px; color: #587480;
  display: flex; align-items: center; gap: 5px; padding: 0 9px; font-size: 11px; cursor: pointer; touch-action: manipulation;
}
.refresh:hover { background: #f2f6f7; }
.refresh:disabled { opacity: .6; cursor: wait; }
.refresh svg { width: 14px; height: 14px; }
.connection-notice { padding: 8px 24px; background: #fff5e8; border-bottom: 1px solid #eddec7; color: #9b743d; font-size: 11px; }
.report-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
iframe { width: 100%; height: 100%; border: 0; display: block; background: #f3f5f4; }
.placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px; text-align: center; background: #f3f5f4; }
.placeholder-icon { width: 64px; height: 64px; color: #8ca3ad; background: #e8eeef; border-radius: 16px; display: grid; place-items: center; margin-bottom: 9px; }
.placeholder-icon svg { width: 32px; height: 32px; }
.placeholder h2 { font-size: 17px; font-weight: 500; margin: 15px 0 0; color: #557280; }
.placeholder p { font-size: 12px; line-height: 1.8; color: #91a0a7; margin: 10px 0; }
a:focus-visible, button:focus-visible { outline: 2px solid #59899c; outline-offset: 3px; }
noscript { position: fixed; bottom: 0; left: 0; right: 0; padding: 15px; background: #fff5e8; text-align: center; font-size: 13px; }

@media (max-width: 1000px) {
  .topbar { padding: 0 17px; }
  .topbar-actions { gap: 12px; }
  .updated-at { display: none; }
}
@media (max-width: 760px) {
  body { flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sidebar {
    width: 100%; border-right: 0; border-bottom: 1px solid var(--line);
    padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  }
  nav { flex-direction: row; gap: 16px; }
  .nav-item {
    flex: 1; min-height: 48px; justify-content: center; padding: 0 8px; gap: 8px;
    border-radius: 0; border-bottom: 2px solid transparent; font-size: 14px;
  }
  .nav-item.active { background: transparent; border-color: var(--blue); }
  .nav-arrow { display: none; }
  .topbar { height: 44px; padding: 0 12px; gap: 8px; }
  .report-heading h1 { display: none; }
  .date-badge { font-size: 10px; padding: 3px 6px; }
  .topbar-actions { gap: 10px; }
  .open-link { min-height: 44px; font-size: 11px; }
  .refresh { width: 44px; height: 44px; border: 0; background: transparent; padding: 0; justify-content: center; }
  .refresh svg { width: 18px; height: 18px; }
  .refresh span { display: none; }
  .connection-notice { padding: 8px 12px; font-size: 10px; }
}
