@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f3f5f8;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --ink: #101828;
  --muted: #667085;
  --line: #e6eaf0;
  --nav: #0b1120;
  --nav-2: #111a2d;
  --accent: #f15a24;
  --accent-dark: #d84713;
  --accent-soft: #fff1eb;
  --green: #16a36a;
  --green-soft: #e9f8f1;
  --yellow: #e4a11b;
  --yellow-soft: #fff7df;
  --red: #e04747;
  --red-soft: #ffeded;
  --blue: #3676e8;
  --blue-soft: #edf4ff;
  --shadow: 0 14px 35px rgba(16, 24, 40, .065);
  --radius: 18px;
  --sidebar: 245px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(54, 118, 232, .22);
  outline-offset: 2px;
}
.truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.muted { color: var(--muted); }
.text-danger { color: var(--red) !important; }
.eyebrow {
  margin: 0 0 6px;
  color: #8a94a6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar);
  padding: 26px 18px 20px;
  flex-direction: column;
  overflow-y: auto;
  color: #cbd3df;
  background:
    radial-gradient(circle at 20% 18%, rgba(241, 90, 36, .12), transparent 25%),
    linear-gradient(165deg, var(--nav-2), var(--nav) 55%);
  box-shadow: 8px 0 30px rgba(8, 13, 24, .14);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 28px;
  color: #fff;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  font-size: 21px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(241, 90, 36, .28);
}
.brand strong { display: block; font-size: 19px; line-height: 1.05; }
.brand small { display: block; margin-top: 4px; color: #7f899a; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.main-nav { display: grid; gap: 4px; }
.main-nav a, .sidebar-bottom a, .sidebar-bottom button {
  display: flex;
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 10px;
  color: #9ea9b9;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  transition: .18s ease;
}
.main-nav a:hover, .sidebar-bottom a:hover, .sidebar-bottom button:hover { color: #fff; background: rgba(255,255,255,.055); }
.main-nav a.active, .sidebar-bottom a.active {
  color: #fff;
  background: rgba(255,255,255,.085);
  box-shadow: inset 3px 0 var(--accent);
}
.nav-icon { display: grid; width: 20px; height: 20px; place-items: center; color: #79869a; font-size: 20px; font-weight: 800; }
.active .nav-icon { color: var(--accent); }
.codex-icon { border: 1px solid currentColor; border-radius: 6px; font-size: 14px; }
.sidebar-projects { margin-top: 28px; padding: 0 8px; }
.sidebar-label { margin-bottom: 10px; color: #5c6879; font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.sidebar-projects a { display: flex; min-height: 37px; align-items: center; gap: 9px; color: #8f9aac; font-size: 14px; }
.sidebar-projects a:hover { color: #fff; }
.project-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #657184; }
.project-dot.status-active { background: var(--green); box-shadow: 0 0 0 3px rgba(22,163,106,.12); }
.score-mini { margin-left: auto; padding: 2px 5px; border-radius: 5px; background: rgba(255,255,255,.07); font-size: 12px; }
.sidebar-bottom { display: grid; gap: 4px; margin-top: auto; padding-top: 25px; }
.sidebar-bottom form { margin: 0; }

.main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  display: flex;
  height: 86px;
  padding: 0 34px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(222, 227, 234, .8);
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar h1 { margin: 0; font-size: 23px; line-height: 1.1; letter-spacing: -.035em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.quick-action { display: flex; height: 36px; padding: 0 12px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; color: #455267; background: #fff; font-size: 14px; font-weight: 700; }
.quick-action span { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid #aab3c0; border-radius: 5px; font-size: 12px; }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #fff; background: #1f2a3d; font-size: 16px; font-weight: 800; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; }
.page-content { max-width: 1500px; margin: 0 auto; padding: 30px 34px 55px; }
.toast {
  position: fixed;
  right: 30px;
  top: 102px;
  z-index: 50;
  display: flex;
  max-width: 420px;
  padding: 13px 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid #caeddb;
  border-radius: 12px;
  color: #176544;
  background: #effaf5;
  box-shadow: var(--shadow);
}
.toast > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 14px; }
.toast p { margin: 0; font-size: 15px; font-weight: 700; }
.toast button { margin-left: auto; border: 0; color: #6f8e80; background: transparent; cursor: pointer; font-size: 21px; }

.button {
  display: inline-flex;
  min-height: 41px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button.primary { color: #fff; background: var(--accent); box-shadow: 0 8px 18px rgba(241,90,36,.18); }
.button.primary:hover:not(:disabled) { background: var(--accent-dark); box-shadow: 0 10px 22px rgba(241,90,36,.23); }
.button.ghost { border-color: var(--line); color: #465267; background: #fff; }
.button.ghost:hover:not(:disabled) { border-color: #cad1db; }
.button.light { color: #101828; background: #fff; }
.button.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.button.full { width: 100%; }
.text-link { padding: 0; border: 0; color: var(--accent); background: transparent; cursor: pointer; font-size: 13px; font-weight: 800; }

.overview-hero {
  position: relative;
  display: grid;
  min-height: 300px;
  padding: 42px 48px;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, .55fr);
  align-items: center;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(12, 18, 32, .98) 15%, rgba(21, 32, 52, .97) 72%),
    #101828;
  box-shadow: 0 22px 50px rgba(9, 15, 29, .16);
}
.overview-hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -130px;
  top: -190px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255,255,255,.015), 0 0 0 120px rgba(255,255,255,.012);
}
.overview-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 2px;
  right: 30%;
  bottom: 32px;
  transform: rotate(-18deg);
  background: linear-gradient(90deg, transparent, rgba(241,90,36,.5), transparent);
}
.hero-copy { position: relative; z-index: 2; max-width: 670px; }
.hero-copy h2 { margin: 4px 0 12px; font-size: clamp(29px, 3vw, 47px); line-height: 1.06; letter-spacing: -.05em; }
.hero-copy > p:not(.eyebrow) { max-width: 580px; margin: 0; color: #99a5b8; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; margin-top: 25px; gap: 10px; }
.hero-actions form { margin: 0; }
.health-orbit { position: relative; z-index: 2; display: grid; justify-items: center; }
.orbit-ring { display: grid; width: 170px; height: 170px; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: inset 0 0 35px rgba(255,255,255,.03), 0 0 0 18px rgba(255,255,255,.018); }
.health-score { display: grid; width: 118px; height: 118px; place-content: center; text-align: center; border: 6px solid currentColor; border-radius: 50%; background: #121d31; }
.health-score strong { color: #fff; font-size: 42px; line-height: 1; letter-spacing: -.05em; }
.health-score span { margin-top: 6px; color: #8290a4; font-size: 12px; text-transform: uppercase; }
.health-orbit p { margin: 22px 0 0; color: #818da0; font-size: 13px; font-weight: 700; }
.score-good { color: var(--green) !important; }
.score-warn { color: var(--yellow) !important; }
.score-bad { color: var(--red) !important; }

.metric-grid { display: grid; margin: 20px 0; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(16,24,40,.035);
}
.metric-card.danger-tint { background: linear-gradient(140deg, #fff, #fff9f9); }
.metric-kicker { display: block; margin-bottom: 8px; color: #8d97a6; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.metric-card > strong { display: block; font-size: 28px; line-height: 1; letter-spacing: -.045em; }
.metric-card p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 9px 26px rgba(16, 24, 40, .035);
}
.panel-head { display: flex; min-height: 36px; margin-bottom: 17px; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-head h3 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.project-list, .audit-list, .issue-feed, .job-list, .content-list { display: grid; }
.project-row {
  display: grid;
  padding: 12px 4px;
  grid-template-columns: 38px minmax(130px, 1fr) 64px 64px 44px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eef1f4;
  transition: background .15s ease;
}
.project-row:hover { background: #fafbfd; }
.project-row:first-child { border-top: 0; }
.project-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #23314a, #111a2b); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.project-avatar.large { width: 46px; height: 46px; border-radius: 13px; font-size: 15px; }
.project-avatar.xlarge { width: 58px; height: 58px; border-radius: 16px; font-size: 19px; }
.project-main { min-width: 0; }
.project-main strong { display: block; overflow: hidden; color: #263043; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.project-main small { display: block; margin-top: 4px; overflow: hidden; color: #929baa; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.project-meta { text-align: center; }
.project-meta small { display: block; color: #9ca5b2; font-size: 11px; }
.project-meta strong { display: block; margin-top: 3px; font-size: 15px; }
.score-pill { display: grid; width: 39px; height: 28px; place-items: center; border-radius: 8px; background: #f2f4f7; font-size: 13px; font-weight: 800; }
.issue-feed a {
  display: grid;
  padding: 10px 0;
  grid-template-columns: 8px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 11px;
  border-top: 1px solid #eff2f5;
}
.issue-feed a:first-child { border-top: 0; }
.issue-feed a:hover strong { color: var(--accent); }
.issue-feed strong { display: block; font-size: 13px; }
.issue-feed small { display: block; margin-top: 4px; color: #929baa; font-size: 11px; }
.severity-dot { width: 7px; height: 7px; border-radius: 50%; }
.severity-critical, .severity-high { color: var(--red) !important; background: var(--red-soft); }
.severity-medium { color: #b47b00 !important; background: var(--yellow-soft); }
.severity-low { color: var(--blue) !important; background: var(--blue-soft); }
.severity-dot.severity-critical, .severity-dot.severity-high { background: var(--red); }
.severity-dot.severity-medium { background: var(--yellow); }
.severity-dot.severity-low { background: var(--blue); }
.audit-row { display: grid; min-height: 49px; padding: 7px 3px; grid-template-columns: 9px minmax(0,1fr) auto 30px; align-items: center; gap: 11px; border-top: 1px solid #eff2f5; }
.audit-row:first-child { border-top: 0; }
.audit-status { width: 7px; height: 7px; border-radius: 50%; background: #98a2b3; }
.audit-status.status-completed { background: var(--green); }
.audit-status.status-running, .audit-status.status-queued { background: var(--yellow); box-shadow: 0 0 0 4px rgba(228,161,27,.12); }
.audit-status.status-failed { background: var(--red); }
.audit-score { font-size: 14px; }
.badge { display: inline-flex; min-height: 23px; padding: 0 8px; align-items: center; border-radius: 99px; color: #596579; background: #f0f2f5; font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge-completed, .badge-succeeded, .status-active, .badge-published { color: #137a4f; background: var(--green-soft); }
.badge-running, .badge-queued, .status-paused, .badge-writing { color: #9b6900; background: var(--yellow-soft); }
.badge-failed, .badge-cancelled { color: #be3838; background: var(--red-soft); }
.muted-badge { color: #768194; background: #eef1f5; }
.codex-panel { position: relative; overflow: hidden; color: #dce4ef; border-color: #1b2940; background: linear-gradient(145deg, #101b2f, #0b1323); }
.codex-panel .panel-head h3 { color: #fff; }
.codex-panel > p { position: relative; max-width: 400px; margin: 8px 0 21px; color: #8693a7; font-size: 13px; line-height: 1.65; }
.codex-glow { position: absolute; width: 170px; height: 170px; right: -40px; bottom: -70px; border-radius: 50%; background: rgba(241,90,36,.1); filter: blur(2px); }
.worker-chip { display: inline-flex; min-height: 24px; padding: 0 8px; align-items: center; gap: 6px; border-radius: 99px; color: #a0aaba; background: rgba(255,255,255,.06); font-size: 11px; font-weight: 800; white-space: nowrap; }
.worker-chip i { width: 6px; height: 6px; border-radius: 50%; background: #7d8796; }
.worker-chip.online { color: #64dfa8; background: rgba(22,163,106,.13); }
.worker-chip.online i { background: #39c98b; box-shadow: 0 0 0 4px rgba(57,201,139,.11); }
.last-job { position: relative; display: flex; padding: 12px; align-items: center; gap: 11px; margin-bottom: 15px; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; background: rgba(255,255,255,.04); }
.last-job > span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #66738a; border-radius: 8px; font-weight: 800; }
.last-job small, .last-job strong { display: block; }
.last-job small { color: #788599; font-size: 11px; }
.last-job strong { margin-top: 3px; color: #dce4ef; font-size: 12px; }
.empty-state { padding: 32px 20px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; color: var(--ink); font-size: 15px; }
.empty-state p { margin: 7px 0 0; font-size: 13px; }
.empty-state.compact { padding: 20px 10px; font-size: 13px; }

.page-intro { display: flex; margin-bottom: 22px; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-intro h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.page-intro p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.project-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.site-card { display: flex; min-height: 300px; padding: 22px; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 9px 26px rgba(16,24,40,.035); }
.site-card-top { display: flex; margin-bottom: 18px; align-items: center; justify-content: space-between; }
.site-card h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.03em; }
.site-card a:not(.button) { color: #7b8798; font-size: 12px; }
.site-health { display: grid; margin: 24px 0 17px; grid-template-columns: auto 1fr; align-items: end; gap: 20px; }
.site-health small { display: block; color: #929baa; font-size: 11px; }
.site-health strong { display: block; margin-top: 4px; font-size: 25px; }
.site-health strong span { color: #a5aebc; font-size: 12px; }
.mini-bar { height: 5px; margin-bottom: 8px; overflow: hidden; border-radius: 99px; background: #edf0f3; }
.mini-bar i { display: block; width: var(--score); height: 100%; border-radius: inherit; background: currentColor; }
.site-stats { display: grid; padding: 14px 0; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; }
.site-stats span { text-align: center; border-left: 1px solid #edf0f3; }
.site-stats span:first-child { border-left: 0; }
.site-stats small, .site-stats strong { display: block; }
.site-stats small { color: #929baa; font-size: 11px; }
.site-stats strong { margin-top: 4px; font-size: 16px; }
.site-card-footer { display: flex; margin-top: auto; padding-top: 18px; align-items: center; justify-content: space-between; }
.site-card-footer > small { color: #9ca5b3; font-size: 11px; }
.add-site-card { align-items: center; justify-content: center; border-style: dashed; color: #7f8997; cursor: pointer; }
.add-site-card:hover { border-color: var(--accent); color: var(--accent); }
.add-site-card > span { display: grid; width: 48px; height: 48px; margin-bottom: 13px; place-items: center; border: 1px dashed currentColor; border-radius: 50%; font-size: 22px; }
.add-site-card strong { color: var(--ink); font-size: 15px; }
.add-site-card small { margin-top: 5px; font-size: 12px; }

.project-header { display: flex; margin-bottom: 23px; align-items: center; justify-content: space-between; gap: 18px; }
.project-identity { display: flex; align-items: center; gap: 15px; }
.project-identity h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.project-identity a { display: block; margin-top: 6px; color: #758195; font-size: 12px; }
.title-line { display: flex; align-items: center; gap: 10px; }
.project-actions { display: flex; align-items: center; gap: 9px; }
.project-actions form { margin: 0; }
.audit-progress { display: grid; margin-bottom: 18px; padding: 14px 18px; grid-template-columns: minmax(250px, auto) minmax(180px, 1fr); align-items: center; gap: 25px; border: 1px solid #f2d5c9; border-radius: 13px; background: #fff8f4; }
.audit-progress > div:first-child { display: grid; grid-template-columns: 20px auto; align-items: center; column-gap: 10px; }
.audit-progress small { grid-column: 2; margin-top: 2px; color: #9a7768; font-size: 11px; }
.spinner { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; border: 2px solid rgba(241,90,36,.22); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
.spinner.large { width: 27px; height: 27px; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: #f1ddd4; }
.progress-track i { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--accent); animation: progress 2s ease-in-out infinite alternate; }
@keyframes progress { to { transform: translateX(145%); } }
.tabs { display: flex; margin-bottom: 18px; gap: 5px; border-bottom: 1px solid #dfe4ea; overflow-x: auto; }
.tabs button { position: relative; min-height: 43px; padding: 0 13px; border: 0; color: #7d8898; background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tabs button::after { content: ""; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; background: transparent; }
.tabs button.active { color: var(--ink); }
.tabs button.active::after { background: var(--accent); }
.tabs button span { margin-left: 4px; padding: 2px 5px; border-radius: 99px; color: #8a94a3; background: #e9edf2; font-size: 10px; }
.project-metrics { display: grid; margin-bottom: 18px; grid-template-columns: minmax(310px, 2fr) repeat(3, 1fr); gap: 14px; }
.score-card { display: flex; padding: 18px; align-items: center; gap: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.score-disc { display: grid; width: 73px; height: 73px; place-content: center; flex: 0 0 auto; border: 5px solid currentColor; border-radius: 50%; text-align: center; }
.score-disc strong { color: var(--ink); font-size: 24px; line-height: 1; }
.score-disc small { margin-top: 2px; color: #929baa; font-size: 10px; }
.score-card h3 { margin: 0; font-size: 17px; }
.score-card p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.issue-table-row { display: grid; min-height: 49px; padding: 8px 2px; grid-template-columns: 62px minmax(0,1fr) 72px; align-items: center; gap: 11px; border-top: 1px solid #edf0f3; }
.issue-table-row:first-child { border-top: 0; }
.severity-label { display: inline-flex; min-height: 21px; padding: 0 7px; align-items: center; justify-content: center; border-radius: 6px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.category { color: #8a94a3; font-size: 11px; text-transform: capitalize; }
.issue-table-row strong { display: block; font-size: 13px; }
.issue-table-row small { margin-top: 3px; color: #9aa3b0; font-size: 11px; }

.table-panel { padding: 0; overflow: hidden; }
.table-panel .panel-head { margin: 0; padding: 20px 22px 16px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #8b95a4; background: #f8fafc; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
td { max-width: 300px; padding: 13px 15px; border-bottom: 1px solid #edf0f3; color: #515d70; font-size: 12px; }
tbody tr:hover { background: #fbfcfd; }
td strong, td small { display: block; }
td strong { color: #263043; font-size: 13px; }
td small { margin-top: 4px; color: #929baa; font-size: 11px; }
.url-cell { display: block; max-width: 360px; overflow: hidden; color: #376daf; text-overflow: ellipsis; white-space: nowrap; }
.http-code { display: inline-flex; min-width: 35px; padding: 3px 5px; justify-content: center; border-radius: 5px; font-size: 11px; font-weight: 800; }
.http-code.code-ok { color: #137a4f; background: var(--green-soft); }
.http-code.code-bad { color: #be3838; background: var(--red-soft); }
.table-empty { padding: 38px !important; color: var(--muted); text-align: center; }
.table-search { display: flex; min-width: 220px; height: 35px; padding: 0 10px; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.table-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.truncate-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.position { font-size: 17px !important; }
.delta { display: inline-flex; min-width: 28px; justify-content: center; color: #8490a0; font-weight: 800; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.issue-cards { display: grid; padding: 0 22px 22px; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.issue-card { display: flex; min-height: 180px; padding: 16px; flex-direction: column; border: 1px solid var(--line); border-left-width: 3px; border-radius: 12px; background: #fff; }
.severity-border-critical, .severity-border-high { border-left-color: var(--red) !important; }
.severity-border-medium { border-left-color: var(--yellow) !important; }
.severity-border-low { border-left-color: var(--blue) !important; }
.issue-card-head { display: flex; align-items: center; justify-content: space-between; }
.issue-card h4 { margin: 14px 0 7px; font-size: 15px; }
.issue-card p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.issue-card > a { margin-top: auto; color: #7d8897; font-size: 11px; }
.issue-card form { margin-top: 12px; }

.filter-bar { display: flex; margin-bottom: 16px; padding: 14px 16px; align-items: flex-end; gap: 11px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.filter-bar label > span, .dialog label > span, .codex-compose label > span, .login-form label > span {
  display: block;
  margin-bottom: 6px;
  color: #687487;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.filter-bar select, .filter-bar input, .dialog input, .dialog select, .dialog textarea, .codex-compose select, .codex-compose textarea, .content-card select {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #dfe4ea;
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}
.filter-bar label { min-width: 170px; }
.filter-bar.compact-filter { justify-content: space-between; }
.filter-bar.compact-filter .table-search { align-self: flex-end; min-width: 280px; }
.filter-bar input:focus, .filter-bar select:focus, .dialog input:focus, .dialog select:focus, .dialog textarea:focus, .codex-compose select:focus, .codex-compose textarea:focus { border-color: #9bb3dc; box-shadow: 0 0 0 3px rgba(54,118,232,.09); }
.issue-worklist { display: grid; gap: 10px; }
.work-issue { display: flex; padding: 18px 20px; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-left-width: 3px; border-radius: 13px; background: #fff; }
.work-issue-main { min-width: 0; }
.work-issue-main > div:first-child { display: flex; align-items: center; gap: 8px; }
.work-issue h3 { margin: 10px 0 5px; font-size: 16px; }
.work-issue p { margin: 0; color: var(--muted); font-size: 12px; }
.work-issue a { display: block; max-width: 650px; margin-top: 8px; color: #5978a5; font-size: 11px; }
.issue-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.inline-position { display: flex; align-items: center; gap: 4px; }
.inline-position input { width: 49px; height: 30px; border: 1px solid var(--line); border-radius: 7px; text-align: center; }
.inline-position button, .icon-button { display: grid; width: 29px; height: 29px; place-items: center; border: 0; border-radius: 7px; color: #778294; background: #f0f3f6; cursor: pointer; }
.inline-position button:hover { color: #fff; background: var(--green); }
.icon-button:hover { color: #fff; background: var(--red); }
.info-strip { display: flex; margin-top: 14px; padding: 13px 16px; align-items: flex-start; gap: 10px; border: 1px solid #dce8f8; border-radius: 12px; color: #516b8f; background: #f5f9ff; }
.info-strip > span { display: grid; width: 20px; height: 20px; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--blue); font-size: 13px; font-weight: 800; }
.info-strip p { margin: 2px 0 0; font-size: 12px; line-height: 1.5; }

.task-board { display: grid; grid-template-columns: repeat(5, minmax(180px,1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.task-column { min-width: 200px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: #edf0f4; }
.task-column-head { display: flex; padding: 3px 5px 11px; align-items: center; justify-content: space-between; }
.task-column-head h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.task-column-head span { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 7px; color: #778293; background: #fff; font-size: 11px; font-weight: 800; }
.task-stack { display: grid; gap: 8px; }
.content-card { padding: 13px; border: 1px solid #e1e5ea; border-radius: 11px; background: #fff; box-shadow: 0 4px 12px rgba(16,24,40,.035); }
.content-card > div:first-child { display: flex; align-items: center; gap: 7px; }
.content-card small { color: #8b95a4; font-size: 10px; }
.content-card h4 { margin: 10px 0 8px; font-size: 13px; line-height: 1.4; }
.content-card p { margin: 5px 0; color: #5f6a7d; font-size: 11px; line-height: 1.45; }
.content-card select { min-height: 30px; margin-top: 10px; padding: 0 7px; font-size: 11px; }
.priority { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #95a0ae; }
.priority-high { background: var(--red); }
.priority-medium { background: var(--yellow); }
.priority-low { background: var(--blue); }
.column-empty { padding: 22px 8px; border: 1px dashed #cfd5dc; border-radius: 9px; color: #99a2af; font-size: 11px; text-align: center; }
.content-row { display: grid; min-height: 50px; padding: 8px 3px; grid-template-columns: 8px minmax(0,1fr) auto; align-items: center; gap: 12px; border-top: 1px solid #edf0f3; }
.content-row:first-child { border-top: 0; }

.planning-overview { display: grid; margin-bottom: 16px; grid-template-columns: minmax(330px, 2fr) repeat(3, minmax(135px, .55fr)); gap: 12px; }
.planning-overview > article { display: flex; min-height: 104px; padding: 20px; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.planning-overview > article:not(.planning-progress-card) strong { display: block; font-size: 24px; line-height: 1; }
.planning-overview > article:not(.planning-progress-card) small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.planning-progress-card { display: block !important; color: #fff; border-color: #1d2940 !important; background: linear-gradient(135deg, #101a2e, #0b1322) !important; }
.planning-progress-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.planning-progress-head > div { display: flex; align-items: flex-end; gap: 12px; }
.planning-progress-head .metric-kicker { margin: 0 0 4px; color: #78869b; }
.planning-progress-head strong { font-size: 28px; line-height: 1; }
.planning-progress-head > span { color: #8e9aad; font-size: 12px; }
.planning-progress-track { height: 7px; margin-top: 18px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.planning-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ff895f); box-shadow: 0 0 16px rgba(241,90,36,.35); }
.plan-stat-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #9aa4b2; }
.plan-stat-dot.todo { background: #7f8b9d; }
.plan-stat-dot.doing { background: var(--yellow); box-shadow: 0 0 0 5px rgba(228,161,27,.1); }
.plan-stat-dot.done { background: var(--green); box-shadow: 0 0 0 5px rgba(22,163,106,.1); }
.planning-board { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 14px; }
.planning-column { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #eceff3; }
.planning-column-head { display: flex; min-height: 40px; padding: 3px 4px 12px; align-items: center; justify-content: space-between; }
.planning-column-head > div { display: flex; align-items: center; gap: 10px; }
.planning-column-head h3 { margin: 0; font-size: 15px; }
.planning-column-head > strong { display: grid; min-width: 27px; height: 27px; padding: 0 7px; place-items: center; border-radius: 8px; color: #657184; background: #fff; font-size: 12px; }
.planning-stack { display: grid; align-content: start; gap: 10px; }
.planning-card { padding: 16px; border: 1px solid #dde2e8; border-radius: 12px; outline: 0; background: #fff; box-shadow: 0 5px 16px rgba(16,24,40,.035); cursor: pointer; transition: border-color .16s, box-shadow .16s, transform .16s; }
.planning-card:hover, .planning-card:focus-visible { border-color: #f2aa90; box-shadow: 0 10px 25px rgba(16,24,40,.08); transform: translateY(-1px); }
.planning-card.completed { opacity: .72; }
.planning-card.completed h4 { text-decoration: line-through; text-decoration-color: #aab2be; }
.planning-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7e8999; font-size: 11px; }
.plan-priority { display: inline-flex; min-height: 24px; padding: 0 8px; align-items: center; border-radius: 99px; font-size: 10px; font-weight: 800; }
.plan-priority.priority-high { color: #b43b3b; background: var(--red-soft); }
.plan-priority.priority-medium { color: #9a6810; background: var(--yellow-soft); }
.plan-priority.priority-low { color: #315fae; background: var(--blue-soft); }
.planning-card h4 { margin: 13px 0 8px; color: #243044; font-size: 15px; line-height: 1.4; }
.planning-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.planning-card-context { display: flex; margin-top: 15px; padding-top: 11px; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #edf0f3; color: #8b95a4; font-size: 11px; }
.planning-card-actions { display: flex; margin-top: 11px; align-items: center; justify-content: space-between; gap: 7px; }
.planning-open { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 800; }
.planning-open span { transition: transform .16s; }
.planning-open:hover span { transform: translateX(3px); }
.plan-delete { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: #9aa3b0; background: #fff; cursor: pointer; font-size: 18px; }
.plan-delete:hover { color: #fff; border-color: var(--red); background: var(--red); }

.planning-detail-header .title-line { align-items: center; }
.planning-detail-actions { display: flex; align-items: center; gap: 10px; }
.plan-task-status.status-doing { color: #96630c; background: var(--yellow-soft); }
.plan-task-status.status-done { color: #13734c; background: var(--green-soft); }
.workflow-summary { display: grid; margin-bottom: 18px; padding: 23px 25px; grid-template-columns: minmax(0, 1.25fr) minmax(460px, .75fr); align-items: center; gap: 32px; border: 1px solid #1d2940; border-radius: 17px; color: #dce4ef; background: linear-gradient(135deg, #101a2e, #0b1322); }
.workflow-summary > div > p { max-width: 720px; margin: 8px 0 0; color: #9aa6b8; font-size: 14px; line-height: 1.65; }
.workflow-summary dl { display: grid; margin: 0; grid-template-columns: 1fr 1fr; gap: 10px; }
.workflow-summary dl div { padding: 11px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: rgba(255,255,255,.035); }
.workflow-summary dt { color: #758399; font-size: 10px; text-transform: uppercase; }
.workflow-summary dd { margin: 5px 0 0; font-size: 12px; font-weight: 800; }
.planning-detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, .62fr); align-items: start; gap: 18px; }
.workflow-panel { padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.workflow-timeline { display: grid; margin-top: 8px; }
.workflow-step { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
.workflow-step-marker { display: flex; align-items: center; flex-direction: column; }
.workflow-step-marker > span { position: relative; z-index: 2; display: grid; width: 32px; height: 32px; place-items: center; border: 2px solid #dfe4eb; border-radius: 50%; color: #7f8a9b; background: #fff; font-size: 12px; font-weight: 800; }
.workflow-step-marker > i { width: 2px; min-height: 42px; flex: 1; background: #e8ebf0; }
.workflow-step.step-completed .workflow-step-marker > span, .workflow-step.step-approved .workflow-step-marker > span { color: #fff; border-color: var(--green); background: var(--green); }
.workflow-step.step-running .workflow-step-marker > span { color: #fff; border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(241,90,36,.1); }
.workflow-step.step-awaiting_approval .workflow-step-marker > span, .workflow-step.step-awaiting_input .workflow-step-marker > span { color: #99640e; border-color: var(--yellow); background: var(--yellow-soft); }
.workflow-step.step-rejected .workflow-step-marker > span, .workflow-step.step-failed .workflow-step-marker > span { color: #fff; border-color: var(--red); background: var(--red); }
.workflow-step-body { min-width: 0; padding: 0 0 25px; }
.workflow-step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.workflow-step-head > div { min-width: 0; }
.workflow-step-head h4 { margin: 7px 0 0; font-size: 16px; }
.workflow-step-body > p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.workflow-actor { display: inline-flex; min-height: 22px; padding: 0 7px; align-items: center; border-radius: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.workflow-actor.actor-system { color: #48617f; background: #edf3fa; }
.workflow-actor.actor-codex { color: #fff; background: #182338; }
.workflow-actor.actor-user { color: #a3411d; background: var(--accent-soft); }
.workflow-status { display: inline-flex; min-height: 26px; padding: 0 9px; align-items: center; border-radius: 99px; color: #677386; background: #f0f2f5; font-size: 10px; font-weight: 800; white-space: nowrap; }
.workflow-status.status-running { color: #a43c18; background: var(--accent-soft); }
.workflow-status.status-awaiting_approval, .workflow-status.status-awaiting_input { color: #8c5c08; background: var(--yellow-soft); }
.workflow-status.status-completed, .workflow-status.status-approved { color: #13734c; background: var(--green-soft); }
.workflow-status.status-rejected, .workflow-status.status-failed { color: #ae3a3a; background: var(--red-soft); }
.workflow-output { margin-top: 13px; overflow: hidden; border: 1px solid #dfe4eb; border-radius: 11px; background: #f8fafc; }
.workflow-output > div { display: flex; min-height: 37px; padding: 0 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5e9ee; color: #7a8697; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.workflow-output > div a { color: var(--accent); text-transform: none; }
.workflow-output pre { max-height: 460px; margin: 0; padding: 14px; overflow: auto; color: #344054; font-family: "Manrope", sans-serif; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.approval-box { display: grid; margin-top: 14px; padding: 15px; gap: 11px; border: 1px solid #f0cf9a; border-radius: 12px; background: #fffaf0; }
.approval-box label > span, .credential-form label > span { display: block; margin-bottom: 6px; color: #687487; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.approval-box textarea, .credential-form input, .credential-form textarea { width: 100%; padding: 10px 11px; border: 1px solid #dfe4ea; border-radius: 9px; outline: 0; color: var(--ink); background: #fff; font-size: 12px; resize: vertical; }
.approval-box textarea:focus, .credential-form input:focus, .credential-form textarea:focus { border-color: #9bb3dc; box-shadow: 0 0 0 3px rgba(54,118,232,.09); }
.approval-box > div { display: flex; justify-content: flex-end; gap: 8px; }
.reject-button { color: #a83a3a !important; border-color: #efcaca !important; }
.workflow-sidebar { display: grid; gap: 18px; }
.security-note { display: flex; padding: 12px; align-items: flex-start; gap: 9px; border: 1px solid #d7e8df; border-radius: 10px; color: #486858; background: #f3faf6; }
.security-note > span { color: var(--green); font-size: 17px; }
.security-note p { margin: 0; font-size: 11px; line-height: 1.55; }
.security-note strong { display: block; margin-bottom: 2px; color: #285440; }
.credential-list { display: grid; margin-top: 14px; gap: 8px; }
.credential-list > div { display: grid; min-height: 52px; padding: 9px 10px; grid-template-columns: 25px minmax(0,1fr) 28px; align-items: center; gap: 8px; border: 1px solid #e7eaee; border-radius: 10px; }
.credential-lock { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: 9px; }
.credential-list strong, .credential-list small { display: block; }
.credential-list strong { font-size: 12px; }
.credential-list small { margin-top: 4px; color: #8b95a4; font-size: 10px; }
.credential-list button { width: 27px; height: 27px; border: 0; border-radius: 7px; color: #9aa3b0; background: #f2f4f7; cursor: pointer; font-size: 16px; }
.credential-form { display: grid; margin-top: 15px; padding-top: 15px; gap: 11px; border-top: 1px solid #edf0f3; }
.credential-form input { min-height: 39px; }
.ssh-account-card { display: grid; min-height: 62px; margin-top: 14px; padding: 11px 12px; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 9px; border: 1px solid #e3e7ec; border-radius: 11px; background: #fafbfc; }
.ssh-account-card strong, .ssh-account-card small { display: block; }
.ssh-account-card strong { font-size: 13px; }
.ssh-account-card small { margin-top: 4px; color: #7f8a9b; font-size: 11px; line-height: 1.45; }
.ssh-actions { display: grid; margin-top: 12px; grid-template-columns: 1fr 1fr; gap: 8px; }
.ssh-actions form, .ssh-actions button { width: 100%; }
.ssh-check-result { display: grid; margin-top: 13px; padding: 12px; gap: 5px; border: 1px solid #dfe5eb; border-radius: 10px; background: #f8fafc; }
.ssh-check-result strong { font-size: 12px; line-height: 1.5; }
.ssh-check-result small { color: #788496; font-size: 10px; }
.ssh-check-result code { margin-top: 3px; overflow-wrap: anywhere; color: #5d6878; font-size: 9px; }
.ssh-check-success { color: #276248; border-color: #cfe6da; background: #f2faf6; }
.ssh-check-error { color: #923f3f; border-color: #efcece; background: #fff5f5; }
.ssh-server-facts { display: grid; margin: 12px 0 0; gap: 0; border: 1px solid #e5e9ee; border-radius: 10px; overflow: hidden; }
.ssh-server-facts > div { display: grid; padding: 9px 10px; grid-template-columns: 92px minmax(0,1fr); gap: 8px; border-top: 1px solid #edf0f3; }
.ssh-server-facts > div:first-child { border-top: 0; }
.ssh-server-facts dt { color: #8791a0; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.ssh-server-facts dd { margin: 0; color: #344054; font-size: 10px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.ssh-paths { display: grid; margin-top: 11px; padding: 11px; gap: 5px; border: 1px solid #e4e8ed; border-radius: 10px; background: #fafbfc; }
.ssh-paths strong { margin-top: 6px; color: #556173; font-size: 10px; }
.ssh-paths strong:first-child { margin-top: 0; }
.ssh-paths code { padding: 6px 7px; overflow-wrap: anywhere; border-radius: 6px; color: #445064; background: #fff; font-size: 9px; }
.ssh-credential-form input[readonly] { color: #637083; background: #f4f6f8; }
.oauth-status { display: inline-flex; min-height: 25px; padding: 0 9px; align-items: center; border-radius: 99px; color: #556274; background: #eef1f5; font-size: 10px; font-weight: 800; white-space: nowrap; }
.oauth-status.oauth-ready { color: #13734c; background: var(--green-soft); }
.oauth-status.oauth-pending { color: #8c5c08; background: var(--yellow-soft); }
.oauth-status.oauth-error { color: #ae3a3a; background: var(--red-soft); }
.yandex-security-note { margin-top: 3px; border-color: #f0d6a5; color: #695b38; background: #fffaf0; }
.yandex-security-note > span { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 7px; color: #fff; background: #fc3f1d; font-size: 12px; font-weight: 900; }
.yandex-security-note strong { color: #4d4124; }
.oauth-setup-steps { display: grid; margin: 15px 0; gap: 11px; }
.oauth-setup-steps > div { display: grid; grid-template-columns: 26px minmax(0,1fr); align-items: start; gap: 9px; }
.oauth-setup-steps > div > span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #e1e5eb; border-radius: 50%; color: #697486; background: #fff; font-size: 10px; font-weight: 800; }
.oauth-setup-steps p { margin: 0; }
.oauth-setup-steps strong, .oauth-setup-steps small { display: block; }
.oauth-setup-steps strong { color: #303a49; font-size: 12px; }
.oauth-setup-steps small { margin-top: 3px; color: #8a94a3; font-size: 10px; line-height: 1.45; }
.button.yandex-button { color: #fff; border-color: #fc3f1d; background: #fc3f1d; box-shadow: 0 8px 18px rgba(252,63,29,.17); }
.button.yandex-button:hover { background: #e93617; }
.oauth-copy-field { display: block; margin-top: 14px; }
.oauth-copy-field > span { display: block; margin-bottom: 6px; color: #687487; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.oauth-copy-field input { width: 100%; min-height: 39px; padding: 10px 11px; border: 1px solid #dfe4ea; border-radius: 9px; color: #5d6878; background: #f8fafc; font-size: 10px; }
.oauth-config-form { margin-top: 12px; padding-top: 12px; }
.oauth-account-card { display: grid; margin-top: 14px; padding: 12px; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid #e3e7ec; border-radius: 11px; background: #fafbfc; }
.oauth-account-mark { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 10px; color: #fff; background: #fc3f1d; font-size: 15px; font-weight: 900; }
.oauth-account-card span, .oauth-account-card strong { display: block; }
.oauth-account-card span { color: #7a8595; font-size: 10px; }
.oauth-account-card strong { margin-top: 3px; color: #293445; font-size: 12px; }
.oauth-message { margin-top: 11px; padding: 10px 11px; border: 1px solid #e2e7ed; border-radius: 9px; color: #566276; background: #f8fafc; font-size: 10px; line-height: 1.5; }
.oauth-message.oauth-warning { color: #795813; border-color: #f0d9a8; background: #fffaf0; }
.oauth-message.oauth-danger { color: #963d3d; border-color: #efcece; background: #fff5f5; }
.oauth-main-action { margin-top: 13px; }
.oauth-help { margin: 9px 3px 0; color: #8993a2; font-size: 10px; line-height: 1.5; }
.oauth-actions { display: grid; margin-top: 13px; gap: 8px; }
.oauth-api-request { margin-top: 13px; padding: 12px; border: 1px solid #f0d49f; border-radius: 10px; color: #6d5a32; background: #fffaf0; }
.oauth-api-request strong { color: #4e4024; font-size: 12px; }
.oauth-api-request p { margin: 6px 0; font-size: 10px; line-height: 1.5; }
.oauth-api-request code { display: block; padding: 8px; overflow-wrap: anywhere; border-radius: 7px; color: #4b5565; background: #fff; font-size: 10px; }
.oauth-api-request a { display: inline-block; margin-top: 8px; color: #b34a22; font-size: 10px; font-weight: 800; }
.oauth-settings { margin-top: 14px; padding-top: 13px; border-top: 1px solid #edf0f3; }
.oauth-settings summary { color: #697486; cursor: pointer; font-size: 10px; font-weight: 800; }
.oauth-settings[open] summary { margin-bottom: 4px; }
.oauth-disconnect { margin-top: 11px; text-align: center; }
.oauth-disconnect button { padding: 4px 8px; border: 0; color: #a24545; background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.workflow-events { display: grid; gap: 10px; }
.workflow-events > div:not(.column-empty) { display: grid; grid-template-columns: 9px minmax(0,1fr); align-items: start; gap: 10px; }
.workflow-events i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #9aa4b2; }
.workflow-events i.actor-system { background: var(--blue); }
.workflow-events i.actor-codex { background: #1d293d; }
.workflow-events i.actor-user { background: var(--accent); }
.workflow-events strong, .workflow-events small { display: block; }
.workflow-events strong { color: #4a5669; font-size: 11px; line-height: 1.4; }
.workflow-events small { margin-top: 4px; color: #98a1ae; font-size: 10px; }

.codex-hero { position: relative; display: grid; margin-bottom: 18px; padding: 30px 32px; grid-template-columns: minmax(0,1.45fr) minmax(260px,.55fr); align-items: center; gap: 30px; overflow: hidden; border-radius: 20px; color: #fff; background: linear-gradient(125deg, #101a2e, #0a1222); }
.codex-hero::after { content:""; position:absolute; width:260px; height:260px; right:-80px; top:-120px; border:1px solid rgba(241,90,36,.15); border-radius:50%; box-shadow: 0 0 0 50px rgba(241,90,36,.03); }
.codex-title { display: flex; align-items: center; gap: 15px; }
.codex-title > span, .codex-icon-large { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #66738a; border-radius: 14px; color: #fff; background: rgba(255,255,255,.03); font-size: 20px; font-weight: 800; }
.codex-title h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.codex-hero > div:first-child > p { max-width: 720px; margin: 15px 0 0; color: #8b97aa; font-size: 13px; line-height: 1.65; }
.worker-card { position: relative; z-index: 2; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.045); }
.worker-card > div { display: flex; align-items: center; gap: 11px; }
.worker-card i { width: 8px; height: 8px; border-radius: 50%; background: #727d8d; }
.worker-card.online i { background: #37c889; box-shadow: 0 0 0 5px rgba(55,200,137,.1); }
.worker-card strong, .worker-card small { display: block; }
.worker-card strong { font-size: 13px; }
.worker-card small { margin-top: 3px; color: #7f8da1; font-size: 11px; }
.worker-card > small { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.codex-layout { display: grid; grid-template-columns: minmax(340px,.8fr) minmax(420px,1.2fr); gap: 18px; }
.codex-compose form { display: grid; gap: 15px; }
.codex-compose textarea, .dialog textarea { min-height: 100px; padding: 10px 11px; resize: vertical; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-switch label { position: relative; cursor: pointer; }
.mode-switch input { position: absolute; opacity: 0; }
.mode-switch span { display: block; min-height: 64px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mode-switch input:checked + span { border-color: #f3a286; background: var(--accent-soft); box-shadow: 0 0 0 2px rgba(241,90,36,.08); }
.mode-switch strong, .mode-switch small { display: block; }
.mode-switch strong { font-size: 12px; }
.mode-switch small { margin-top: 4px; color: #8b95a4; font-size: 10px; }
.prompt-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.prompt-presets button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: #6e7a8d; background: #fafbfd; cursor: pointer; font-size: 10px; }
.prompt-presets button:hover { border-color: #f0a086; color: var(--accent); }
.form-hint { margin: 0; color: #8b95a4; font-size: 11px; line-height: 1.5; }
.form-hint.warning { color: #a46f00; }
.job-row { display: grid; min-height: 62px; padding: 10px 2px; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 12px; border-top: 1px solid #edf0f3; }
.job-row:first-child { border-top: 0; }
.job-row:hover .job-main strong { color: var(--accent); }
.job-id { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: #6e798b; background: #f0f3f6; font-size: 11px; font-weight: 800; }
.job-main { min-width: 0; }
.job-main strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
.job-main small { display: block; margin-top: 5px; color: #929baa; font-size: 10px; }
.safety-grid { display: grid; margin-top: 18px; grid-template-columns: repeat(3,1fr); gap: 12px; }
.safety-grid article { display: flex; padding: 15px; align-items: flex-start; gap: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.safety-grid article > span { color: var(--accent); font-size: 11px; font-weight: 800; }
.safety-grid strong { display: block; font-size: 12px; }
.safety-grid p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.back-link { display: inline-block; margin-bottom: 11px; color: #788497; font-size: 12px; }
.job-detail-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }
.prompt-box { padding: 16px; border: 1px solid var(--line); border-radius: 11px; color: #3e4a5d; background: #f8fafc; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.job-meta { display: grid; margin: 18px 0 0; grid-template-columns: 1fr 1fr; gap: 10px; }
.job-meta div { padding: 10px; border: 1px solid #edf0f3; border-radius: 9px; }
.job-meta dt { color: #8e98a6; font-size: 10px; text-transform: uppercase; }
.job-meta dd { margin: 4px 0 0; font-size: 12px; font-weight: 700; }
.codex-response { min-height: 250px; max-height: 600px; margin: 0; padding: 17px; overflow: auto; border: 1px solid #26334a; border-radius: 11px; color: #dbe5f2; background: #0d1628; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.event-panel { margin-top: 18px; }
.event-log { display: grid; gap: 8px; }
.event-log > div { padding: 10px 12px; border-radius: 9px; background: #f7f9fb; }
.event-log span { color: #8a94a3; font-family: ui-monospace, monospace; font-size: 10px; text-transform: uppercase; }
.event-log pre { margin: 7px 0 0; overflow-x: auto; color: #3f4b5e; font-family: ui-monospace, monospace; font-size: 11px; white-space: pre-wrap; }

.integration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.integration-card { display: flex; min-height: 145px; padding: 20px; align-items: flex-start; gap: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.integration-card.featured { grid-column: 1 / -1; min-height: 170px; color: #dce4ef; border-color: #1e2b42; background: linear-gradient(145deg, #101b2f, #0b1323); }
.integration-card.next { border-color: #f3c8b9; box-shadow: inset 3px 0 0 var(--accent); }
.integration-icon { display: grid; width: 45px; height: 45px; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 13px; color: #344054; background: #f7f9fb; font-size: 20px; font-weight: 800; }
.integration-copy { flex: 1; }
.integration-copy h3 { margin: 0; font-size: 18px; }
.integration-copy p { margin: 9px 0 0; color: #7d8899; font-size: 12px; line-height: 1.55; }
.integration-copy dl { display: grid; margin: 18px 0 0; grid-template-columns: repeat(3,1fr); gap: 10px; }
.integration-copy dl div { padding: 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: rgba(255,255,255,.03); }
.integration-copy dt { color: #707e93; font-size: 10px; text-transform: uppercase; }
.integration-copy dd { margin: 4px 0 0; color: #cdd7e4; font-size: 11px; font-weight: 700; }
.roadmap-badge { color: #a63f1b; border-color: #f3c8b9; background: #fff1eb; }
.integration-result { display: block; margin-top: 13px; color: #536074; font-size: 11px; font-weight: 700; }
.system-panel { margin-top: 16px; }
.settings-list { display: grid; margin: 0; }
.settings-list div { display: grid; padding: 13px 0; grid-template-columns: 190px 1fr; border-top: 1px solid #edf0f3; }
.settings-list div:first-child { border-top: 0; }
.settings-list dt { color: #838e9e; font-size: 12px; }
.settings-list dd { margin: 0; color: #344054; font-size: 12px; font-weight: 700; }

.dialog { width: min(520px, calc(100vw - 30px)); padding: 0; border: 0; border-radius: 17px; background: #fff; box-shadow: 0 30px 80px rgba(10,16,28,.28); }
.dialog::backdrop { background: rgba(8, 13, 24, .58); backdrop-filter: blur(3px); }
.dialog form { display: grid; padding: 23px; gap: 14px; }
.dialog-head { display: flex; margin-bottom: 4px; align-items: flex-start; justify-content: space-between; }
.dialog-head h3 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.dialog-head button { width: 30px; height: 30px; border: 0; border-radius: 8px; color: #7d8796; background: #f0f3f6; cursor: pointer; font-size: 21px; }
.dialog-actions { display: flex; margin-top: 5px; justify-content: flex-end; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.public-page { background: #0c1322; }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, 1.15fr) minmax(390px, .85fr); }
.login-story { position: relative; display: flex; padding: 42px 55px; flex-direction: column; overflow: hidden; color: #fff; background: radial-gradient(circle at 25% 30%, rgba(241,90,36,.12), transparent 30%), linear-gradient(145deg, #111b2f, #09101d); }
.login-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.login-brand strong, .login-brand small { display: block; }
.login-brand small { margin-top: 4px; color: #748196; font-size: 11px; letter-spacing: .16em; }
.login-copy { position: relative; z-index: 2; max-width: 690px; margin: auto 0; }
.login-copy h1 { margin: 10px 0 20px; font-size: clamp(46px, 6vw, 85px); line-height: .98; letter-spacing: -.07em; }
.login-copy h1 em { color: var(--accent); font-style: normal; }
.login-copy > p:not(.eyebrow) { max-width: 600px; margin: 0; color: #8d99aa; font-size: 16px; line-height: 1.8; }
.login-points { display: flex; margin-top: 32px; gap: 8px; flex-wrap: wrap; }
.login-points span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 99px; color: #9aa6b7; background: rgba(255,255,255,.03); font-size: 12px; }
.login-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 60px 60px; mask-image: linear-gradient(to bottom, transparent, black 30%, transparent); }
.login-panel { display: grid; padding: 35px; place-items: center; background: #f5f7fa; }
.login-form { display: grid; width: min(380px, 100%); padding: 34px; gap: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 25px 60px rgba(16,24,40,.12); }
.login-form h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.login-form .muted { margin: 7px 0 0; font-size: 13px; }
.login-form input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #dfe4ea; border-radius: 10px; outline: 0; }
.login-form input:focus { border-color: #9bb3dc; box-shadow: 0 0 0 3px rgba(54,118,232,.09); }
.login-note { color: #99a2af; font-size: 11px; text-align: center; }
.form-error { padding: 11px 12px; border: 1px solid #f5caca; border-radius: 9px; color: #af3333; background: #fff1f1; font-size: 12px; }

.report-page-head { align-items: flex-end; }
.report-filter { margin-bottom: 16px; }
.report-goal { display: grid; min-height: 170px; margin-bottom: 14px; padding: 28px 30px; grid-template-columns: minmax(0,1fr) 230px; align-items: center; gap: 30px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(241,90,36,.16), transparent 30%), linear-gradient(130deg, #101a2e, #0a1222); box-shadow: 0 16px 40px rgba(13,23,41,.12); }
.report-goal h3 { max-width: 760px; margin: 10px 0 8px; font-size: 27px; line-height: 1.2; letter-spacing: -.04em; }
.report-goal > div:first-child > p:last-child { margin: 0; color: #8e9bae; font-size: 13px; }
.report-target { display: grid; padding: 20px; gap: 8px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.04); }
.report-target small { color: #8794a7; font-size: 11px; }
.report-target strong { font-size: 38px; line-height: 1; letter-spacing: -.05em; }
.report-target span { display: inline-flex; margin-top: 5px; align-items: center; gap: 7px; color: #9aa6b6; font-size: 10px; font-weight: 800; }
.report-target span i { width: 8px; height: 8px; border-radius: 50%; }
.report-target .automation-on i { background: #45bf86; box-shadow: 0 0 0 5px rgba(69,191,134,.1); }
.report-target .automation-off i { background: #8590a0; }
.report-audit-progress { margin-bottom: 14px; }
.report-metrics { display: grid; margin-bottom: 14px; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.report-metrics article { min-height: 118px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.report-metrics span, .report-metrics small { display: block; color: var(--muted); font-size: 11px; }
.report-metrics span { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.report-metrics strong { display: block; margin: 10px 0 6px; font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.report-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(340px,.72fr); align-items: start; gap: 14px; }
.report-side { display: grid; gap: 14px; }
.report-roadmap { display: grid; gap: 8px; }
.report-roadmap > a { display: grid; min-height: 68px; padding: 11px 12px; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid #e4e8ed; border-radius: 11px; background: #fff; transition: border-color .16s, transform .16s; }
.report-roadmap > a:hover { border-color: #f2a88e; transform: translateY(-1px); }
.roadmap-number { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: #fff; background: #182338; font-size: 11px; font-weight: 800; }
.report-roadmap strong, .report-roadmap small { display: block; }
.report-roadmap strong { color: #273347; font-size: 12px; line-height: 1.4; }
.report-roadmap small { margin-top: 4px; color: #8a94a3; font-size: 10px; }
.integration-health { display: grid; gap: 0; }
.integration-health > div { display: grid; padding: 12px 0; grid-template-columns: 12px minmax(0,1fr); align-items: start; gap: 10px; border-top: 1px solid #edf0f3; }
.integration-health > div:first-child { border-top: 0; }
.integration-health i { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; }
.integration-health i.ready { background: #42b87e; box-shadow: 0 0 0 5px rgba(66,184,126,.1); }
.integration-health i.missing { background: #e7a928; box-shadow: 0 0 0 5px rgba(231,169,40,.1); }
.integration-health strong, .integration-health small { display: block; }
.integration-health strong { font-size: 12px; }
.integration-health small { margin-top: 4px; color: #8792a1; font-size: 10px; line-height: 1.45; }
.automation-panel form { display: grid; gap: 11px; }
.toggle-row { display: flex; min-height: 52px; padding: 10px 0; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #edf0f3; }
.toggle-row:first-of-type { border-top: 0; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { font-size: 12px; }
.toggle-row small { margin-top: 3px; color: #8a94a3; font-size: 10px; }
.toggle-row input { width: 38px; height: 20px; accent-color: var(--accent); }
.automation-panel form > label:not(.toggle-row) > span, .automation-fields label > span { display: block; margin-bottom: 6px; color: #687487; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.automation-panel textarea, .automation-panel input:not([type="checkbox"]) { width: 100%; padding: 10px; border: 1px solid #dfe4ea; border-radius: 8px; outline: 0; color: var(--ink); background: #fff; font-size: 11px; resize: vertical; }
.automation-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.report-secondary { margin-top: 14px; grid-template-columns: 1fr 1fr; }
.report-issue-groups { display: grid; gap: 0; }
.report-issue-groups > div:not(.empty-state) { display: grid; min-height: 52px; padding: 9px 0; grid-template-columns: 68px minmax(0,1fr) auto; align-items: center; gap: 9px; border-top: 1px solid #edf0f3; }
.report-issue-groups > div:first-child { border-top: 0; }
.report-issue-groups strong { font-size: 11px; }
.report-issue-groups small { color: #8893a2; font-size: 10px; }

@media (max-width: 1180px) {
  .project-card-grid { grid-template-columns: 1fr 1fr; }
  .project-metrics { grid-template-columns: 1.7fr 1fr 1fr; }
  .project-metrics > article:last-child { display: none; }
  .task-board { grid-template-columns: repeat(5, 210px); }
  .report-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --sidebar: 220px; }
  .overview-hero { padding: 35px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .span-7, .span-5 { grid-column: 1 / -1; }
  .codex-layout, .job-detail-grid { grid-template-columns: 1fr; }
  .project-metrics { grid-template-columns: 1.5fr 1fr 1fr; }
  .planning-overview { grid-template-columns: 1fr 1fr 1fr; }
  .planning-progress-card { grid-column: 1 / -1; }
  .planning-board { overflow-x: auto; }
  .workflow-summary { grid-template-columns: 1fr; }
  .planning-detail-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .report-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .sidebar { width: min(285px, 82vw); transform: translateX(-105%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { height: 75px; padding: 0 18px; }
  .topbar h1 { font-size: 19px; }
  .mobile-menu { display: block; margin-right: 11px; }
  .topbar > div:first-of-type { margin-right: auto; }
  .quick-action { display: none; }
  .page-content { padding: 22px 16px 45px; }
  .overview-hero { min-height: 0; padding: 28px 23px; grid-template-columns: 1fr; }
  .health-orbit { display: none; }
  .hero-copy h2 { font-size: 32px; }
  .hero-actions { flex-wrap: wrap; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { padding: 17px; }
  .metric-card > strong { font-size: 24px; }
  .dashboard-grid { display: block; }
  .dashboard-grid .panel { margin-bottom: 13px; }
  .project-row { grid-template-columns: 36px minmax(100px,1fr) 42px; }
  .project-row .project-meta { display: none; }
  .project-card-grid { grid-template-columns: 1fr; }
  .page-intro, .project-header { align-items: flex-start; flex-direction: column; }
  .project-actions { width: 100%; }
  .project-actions form, .project-actions .button { flex: 1; }
  .project-actions .button { width: 100%; }
  .audit-progress { grid-template-columns: 1fr; }
  .project-metrics { grid-template-columns: 1fr 1fr; }
  .score-card { grid-column: 1 / -1; }
  .issue-cards { grid-template-columns: 1fr; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar label { min-width: 0; }
  .filter-bar.compact-filter .table-search { min-width: 0; align-self: stretch; }
  .work-issue { align-items: flex-start; flex-direction: column; }
  .issue-actions { width: 100%; }
  .planning-overview { grid-template-columns: 1fr; }
  .planning-progress-card { grid-column: auto; }
  .planning-board { grid-template-columns: 1fr; overflow: visible; }
  .planning-detail-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .planning-detail-actions form, .planning-detail-actions .button { width: 100%; }
  .workflow-summary { padding: 20px; }
  .workflow-summary dl { grid-template-columns: 1fr; }
  .workflow-panel { padding: 17px; }
  .workflow-step-head { align-items: flex-start; flex-direction: column; }
  .approval-box > div { flex-direction: column-reverse; }
  .approval-box .button { width: 100%; }
  .codex-hero { padding: 23px; grid-template-columns: 1fr; }
  .codex-title h2 { font-size: 21px; }
  .safety-grid, .integration-grid { grid-template-columns: 1fr; }
  .integration-card.featured { grid-column: auto; }
  .integration-copy dl { grid-template-columns: 1fr; }
  .settings-list div { grid-template-columns: 1fr; gap: 6px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 18px; }
  .report-goal { padding: 23px; grid-template-columns: 1fr; }
  .report-target { width: 100%; }
  .report-side, .report-secondary { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card p { min-height: 24px; }
  .project-metrics { grid-template-columns: 1fr; }
  .project-metrics .metric-card { display: block !important; }
  .mode-switch, .form-grid { grid-template-columns: 1fr; }
  .toast { right: 12px; left: 12px; top: 85px; }
  .report-metrics { grid-template-columns: 1fr 1fr; }
  .report-roadmap > a { grid-template-columns: 30px minmax(0,1fr); }
  .report-roadmap .badge { grid-column: 2; justify-self: start; }
  .automation-fields { grid-template-columns: 1fr; }
}
