/* Proposal PM · 참가자격 검토 대시보드 */

:root {
  --sidebar: #0f1a16;
  --sidebar-hover: #17251f;
  --sidebar-active: #1e2f27;
  --sidebar-text: #a4b1a9;
  --sidebar-line: rgba(255, 255, 255, 0.07);
  --lime: #c9f25a;

  --bg: #f4f5f2;
  --card: #ffffff;
  --line: #e4e7e2;
  --line-strong: #d3d9d2;
  --ink: #151f1a;
  --ink-2: #3d4842;
  --muted: #6f7a74;
  --muted-2: #98a19b;

  --brand: #0f3b2e;
  --brand-hover: #145040;
  --focus: #3f9a68;

  --green: #1b7f4c;  --green-bg: #e3f3e9;
  --amber: #b06f0a;  --amber-bg: #fbf0d9;
  --blue: #2f5ea6;   --blue-bg: #e6edf9;
  --red: #c23e2f;    --red-bg: #fbe9e6;
  --gray: #5b665f;   --gray-bg: #eef0ec;

  --bar: #cf5b49;
  --bar-track: #eceeea;

  --r-lg: 16px;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 31, 26, 0.04), 0 6px 20px rgba(21, 31, 26, 0.04);

  --sidebar-w: 240px;
  --content-w: 1240px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- Layout ---------- */
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 18px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px 20px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--sidebar-line);
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--sidebar);
  display: grid;
  place-items: center;
  flex: none;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand strong { display: block; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.2; }
.brand small { display: block; font-size: 11px; color: var(--sidebar-text); margin-top: 3px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--sidebar-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.nav-item svg { width: 16px; height: 16px; flex: none; }
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.is-active { background: var(--sidebar-active); color: #fff; font-weight: 600; }
.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  background: #2a3a33;
  color: #d3e0d7;
}
.nav-badge.is-warn { background: #f0a83a; color: #1b1a15; }
#navDocs { display: none; }

.sync {
  margin-top: auto;
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--sidebar-line);
  background: #14211c;
  font-size: 11px;
  color: var(--sidebar-text);
  text-align: left;
  line-height: 1.5;
  transition: background 0.15s;
}
.sync:hover { background: #18271f; }
.sync b { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.sync .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #5fd88f; box-shadow: 0 0 0 3px rgba(95, 216, 143, 0.18); }
.sync.is-loading .dot { background: #8d9a93; box-shadow: 0 0 0 3px rgba(141, 154, 147, 0.2); animation: pulse 1.2s ease-in-out infinite; }
.sync.is-error .dot { background: #f0a83a; box-shadow: 0 0 0 3px rgba(240, 168, 58, 0.2); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.nav-settings { margin-top: 8px; }

/* ---------- Workspace ---------- */
.workspace { min-width: 0; }
.topbar {
  height: 64px;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar-title p { font-size: 11px; color: var(--muted); }
.topbar-title h1 { font-size: 18px; font-weight: 700; margin-top: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  display: grid;
  place-items: center;
}
.icon-btn:hover { background: var(--gray-bg); }
.icon-btn svg { width: 18px; height: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: #f7f8f5; }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

.content {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 28px 32px 56px;
}

/* ---------- Loading / notice ---------- */
.load-state {
  margin-top: 20px;
  padding: 44px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: #fff;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.load-bar {
  display: block;
  width: 160px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--bar-track);
  overflow: hidden;
}
.load-bar i { display: block; width: 40%; height: 100%; border-radius: 999px; background: var(--brand); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border: 1px solid #f1dcb4;
  border-radius: var(--r);
  background: #fff8ec;
  font-size: 13px;
  color: var(--ink-2);
}
.notice-btn {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--amber);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
}
.notice-btn:hover { background: var(--amber-bg); }

/* ---------- Page head ---------- */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.page-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.page-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
}
.link-btn:hover { color: var(--brand); }
.link-btn svg { width: 14px; height: 14px; }
.link-btn.is-open svg { transform: rotate(180deg); }

/* ---------- Metrics ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.metric:hover { transform: translateY(-1px); border-color: #b9cec0; }
.metric.is-active { border-color: var(--line); }
.metric:nth-child(1) { order: 1; }
.metric:nth-child(2) { order: 2; }
.metric:nth-child(3) { order: 3; }
.metric:nth-child(5) { order: 4; }
.metric:nth-child(4) { order: 5; }
.metric:nth-child(6) { order: 6; }
.metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.metric-icon svg { width: 17px; height: 17px; }
.metric-body span { display: block; font-size: 12px; color: var(--muted); }
.metric-body strong { display: block; font-size: 26px; font-weight: 700; line-height: 1.15; margin: 3px 0 2px; letter-spacing: -0.01em; }
.metric-body small { display: block; font-size: 11px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tint-gray  { background: var(--gray-bg);  color: var(--gray); }
.tint-green { background: var(--green-bg); color: var(--green); }
.tint-amber { background: var(--amber-bg); color: var(--amber); }
.tint-blue  { background: var(--blue-bg);  color: var(--blue); }
.tint-red   { background: var(--red-bg);   color: var(--red); }

/* ---------- Cards ---------- */
.card {
  margin-top: 16px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.card-head.has-icon { grid-template-columns: auto minmax(0, 1fr) auto; }
.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--red-bg);
  color: var(--bar);
  display: grid;
  place-items: center;
}
.card-icon svg { width: 18px; height: 18px; }
.card-head h3 { font-size: 16px; font-weight: 700; }
.card-head p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.card-stats { display: flex; gap: 8px; }
.card-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
}
.card-stats b { font-size: 14px; color: var(--ink); }
.pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
}
.card-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ---------- Restriction categories ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 2px;
  margin-top: 18px;
}
.cat-row {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr) 72px 44px;
  gap: 16px;
  align-items: center;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.cat-row:hover { background: #f7f8f5; }
.cat-row.is-active { background: #f1f7f2; border-color: #cfe3d4; }
.cat-name strong { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; }
.cat-name small { display: block; font-size: 11px; color: var(--muted-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 6px; border-radius: 999px; background: var(--bar-track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--bar); }
.cat-count { text-align: right; white-space: nowrap; font-size: 11px; color: var(--muted); }
.cat-count b { font-size: 14px; color: var(--ink); margin-right: 3px; }

.prio {
  display: inline-flex;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.prio-1 { background: var(--red-bg); color: var(--red); }
.prio-2 { background: var(--amber-bg); color: var(--amber); }
.prio-3 { background: var(--blue-bg); color: var(--blue); }

.details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 20px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.details h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.details h4 span { color: var(--muted); font-weight: 500; }
.detail-list, .impact-list { display: grid; gap: 8px; align-content: start; }
.impact-list { max-height: 560px; overflow-y: auto; padding-right: 2px; }
.detail-row, .impact-row {
  display: grid;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.detail-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.impact-row { grid-template-columns: minmax(0, 1fr) auto; }
.detail-row:hover, .impact-row:hover { background: #f9faf8; }
.detail-row.is-active { border-color: #cfe3d4; background: #f1f7f2; }
.detail-row b, .impact-row b { display: block; font-size: 13px; font-weight: 700; }
.detail-row small, .impact-row small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.impact-row small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.detail-row .count { font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ---------- Status badges ---------- */
.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.status.green { background: var(--green-bg); color: var(--green); }
.status.amber { background: var(--amber-bg); color: var(--amber); }
.status.blue  { background: var(--blue-bg);  color: var(--blue); }
.status.red   { background: var(--red-bg);   color: var(--red); }
.status.gray  { background: var(--gray-bg); color: var(--gray); }

/* ---------- Priority strip ---------- */
.priority-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.priority-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.priority-card:hover { background: #f9faf8; border-color: var(--line-strong); }
.priority-card .flag { font-size: 12px; font-weight: 700; color: var(--red); white-space: nowrap; }
.priority-card b { display: block; font-size: 13px; font-weight: 700; }
.priority-card small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 3px;
}
.priority-card svg, .td-arrow svg { width: 16px; height: 16px; color: var(--muted); }
.priority-empty { grid-column: 1 / -1; padding: 24px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Projects table ---------- */
.tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  width: min(100%, 320px);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
}
.search:focus-within { border-color: var(--focus); }
.search svg { width: 15px; height: 15px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.search input::placeholder { color: var(--muted-2); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.filters {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow-x: auto;
  max-width: 100%;
}
.filter {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.filter:hover { background: var(--gray-bg); }
.filter.is-active { background: var(--brand); color: #fff; font-weight: 600; }

.table-wrap { margin-top: 14px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1260px; }
th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}
td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
tbody tr { cursor: pointer; transition: background 0.12s; }
tbody tr:hover { background: #f9faf8; }
tbody tr:last-child td { border-bottom: 0; }
.project-id { display: block; font-size: 11px; color: var(--muted-2); letter-spacing: 0.02em; margin-bottom: 3px; }
.project-title { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; }
.project-meta { display: block; font-size: 11px; color: var(--muted-2); margin-top: 4px; }
.td-due { font-weight: 600; white-space: nowrap; }
.td-due.is-empty { color: var(--muted); font-weight: 500; }
.astate { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.astate i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.astate.wait i { background: var(--amber); }
.astate.check i { background: var(--blue); }
.td-flag b { font-weight: 700; white-space: nowrap; }
.td-flag .t-red { color: var(--red); }
.td-flag .t-blue { color: var(--blue); }
.td-flag .t-muted { color: var(--muted); }
.td-flag small { display: block; font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.td-limits { max-width: 280px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-count { color: var(--brand); font-weight: 700; white-space: nowrap; }
.strategy-badge { display: inline-block; max-width: 150px; font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.td-arrow { width: 32px; text-align: right; }
.empty { padding: 36px; text-align: center; font-size: 13px; color: var(--muted); }

.more-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.more-btn:hover { color: var(--brand); background: #f9faf8; }

.footer { margin-top: 28px; text-align: center; font-size: 11px; color: var(--muted-2); }

/* ---------- Drawer ---------- */
.drawer-bg {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(15, 26, 22, 0.45);
}
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(720px, 96vw);
  background: #fff;
  padding: 28px;
  overflow: auto;
  box-shadow: -16px 0 40px rgba(15, 26, 22, 0.18);
}
.drawer .close {
  float: right;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: var(--gray-bg);
  color: var(--ink-2);
  display: grid;
  place-items: center;
}
.drawer .close svg { width: 16px; height: 16px; }
.drawer .project-id { margin-top: 6px; }
.drawer h2 { font-size: 20px; font-weight: 700; line-height: 1.35; margin: 4px 44px 6px 0; }
.drawer-client { font-size: 13px; color: var(--muted); }
.drawer-status { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.info { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); }
.info label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.info strong { font-size: 13px; font-weight: 600; line-height: 1.4; word-break: keep-all; }
.warning { padding: 14px 16px; border: 1px solid #f1dcb4; border-radius: 12px; background: #fff8ec; line-height: 1.55; }
.warning strong { display: block; font-size: 12px; color: var(--amber); margin-bottom: 4px; }
.warning p { font-size: 13px; color: var(--ink-2); }
.links { display: grid; gap: 8px; margin-top: 16px; }
.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.links a:hover { background: #f7f8f5; }
.links a svg { width: 14px; height: 14px; }
body.drawer-open { overflow: hidden; }

/* ---------- Accuracy, strategy and documents ---------- */
.data-chip, .updated-label { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; background: #eef5f0; color: var(--brand); font-size: 12px; font-weight: 650; }
.updated-label { background: transparent; color: var(--muted); padding-right: 0; }
.integrity { margin-top: 10px; padding: 11px 14px; border: 1px solid #efc7c2; border-radius: 10px; background: #fff2f0; color: var(--red); font-size: 13px; }
.strategy-icon { background: var(--blue-bg); color: var(--blue); }
.pill.neutral { background: var(--gray-bg); color: var(--ink-2); }
.strategy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.strategy-group { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.strategy-group h4 { margin-bottom: 10px; font-size: 13px; }
.strategy-row { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 8px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink-2); text-align: left; font-size: 13px; }
.strategy-row:first-of-type { border-top: 0; }
.strategy-row:hover { color: var(--brand); background: #f3f7f4; }
.strategy-row b { color: var(--ink); white-space: nowrap; }
.strategy-cat .bar i { background: #4b8eae; }
.strategy-cat .cat-count b, .strategy-cat { color: #3e7898; }
.strategy-cat:hover { background: #f0f7fa; }
.strategy-prio { background: #e8f2f7; color: #3e7898; }
.document-stats { display: grid; grid-template-columns: repeat(4, auto) minmax(180px, 1fr); gap: 12px; align-items: center; margin-top: 18px; }
.document-stats > div { display: flex; align-items: center; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.document-stats strong { font-size: 18px; }
.document-stats small, .document-stats p { color: var(--muted); font-size: 12px; }
.doc-status { display: inline-flex; align-items: center; width: max-content; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.doc-check { background: var(--blue-bg); color: var(--blue); }
.doc-missing { background: var(--red-bg); color: var(--red); }
.doc-renew { background: var(--amber-bg); color: var(--amber); }
.doc-optional { background: var(--gray-bg); color: var(--gray); }
.drawer-section { margin-top: 20px; }
.drawer-section h3 { font-size: 15px; margin-bottom: 10px; }
.drawer-section-head p { color: var(--muted); font-size: 12px; }
.strategy-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.strategy-detail > div { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); }
.strategy-detail label, .strategy-detail small { display: block; font-size: 11px; color: var(--muted); }
.strategy-detail strong { display: block; margin: 4px 0; font-size: 14px; }
.doc-tools { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px; align-items: center; margin: 12px 0; }
.doc-tools .search { width: 100%; }
.document-list { display: grid; gap: 10px; }
.document-item { padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.document-title { display: flex; align-items: center; gap: 9px; }
.document-title h4 { font-size: 14px; line-height: 1.4; }
.document-item dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 14px; }
.document-item dl > div:last-child { grid-column: 1 / -1; }
.document-item dt { font-size: 11px; color: var(--muted); }
.document-item dd { margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; }
.document-empty { padding: 28px 16px; border: 1px dashed var(--line-strong); border-radius: 11px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 30;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(15, 26, 22, 0.25);
  max-width: min(92vw, 480px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: 1fr; column-gap: 0; }
  .priority-strip { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; min-width: 0; padding: 12px 14px; }
  .brand { padding: 4px 4px 12px; margin-bottom: 8px; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .nav-item { width: auto; padding: 8px 11px; white-space: nowrap; }
  .sync, .nav-settings { display: none; }
  .topbar { height: auto; padding: 12px 18px; }
  .topbar-title p { display: none; }
  .topbar-title h1 { font-size: 16px; }
  #installBtn { display: none; }
  .content { padding: 20px 16px 40px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-head h2 { font-size: 21px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:first-child { grid-column: 1 / -1; }
  .card { padding: 16px; }
  .card-head, .card-head.has-icon { grid-template-columns: 1fr; }
  .card-stats { flex-wrap: wrap; }
  .cat-row { grid-template-columns: minmax(0, 1fr) 72px 44px; }
  .cat-row .bar { grid-column: 1 / -1; order: 4; }
  .tools { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .info-grid { grid-template-columns: 1fr; }
  .drawer { padding: 20px; }
  .document-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-stats p { grid-column: 1 / -1; }
  .strategy-grid { grid-template-columns: 1fr; }
  .doc-tools { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .metric { padding: 14px; gap: 10px; }
  .metric-body strong { font-size: 22px; }
  .strategy-detail, .document-item dl { grid-template-columns: 1fr; }
  .document-item dl > div:last-child { grid-column: auto; }
  .document-stats { grid-template-columns: 1fr; }
  .document-stats p { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
