/* GraSnoW bug log — matches the provider signup palette */

:root {
  --forest: #12372a;
  --forest-deep: #0b271d;
  --forest-soft: #1e4b3a;
  --lime: #c8f064;
  --lime-soft: #ecf9c8;
  --ink: #17221c;
  --ink-soft: #536159;
  --ink-faint: #7b887f;
  --canvas: #f5f5ef;
  --paper: #fffef9;
  --line: #dfe2da;
  --line-strong: #cbd0c6;
  --error: #b74236;
  --error-soft: #fff0ed;
  --success: #287a4b;
  --warn: #8a5a10;
  --warn-soft: #fff3d6;
  --shadow: 0 24px 70px rgba(28, 42, 34, 0.09);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Manrope", system-ui, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sidebar-w: clamp(360px, 38vw, 560px);
  --nav-w: 248px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--canvas);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; touch-action: manipulation; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

/* Login */
.shell {
  display: flex;
  min-height: 100dvh;
  background: var(--canvas);
}

.panel-brand {
  position: sticky;
  top: 0;
  width: var(--sidebar-w);
  height: 100dvh;
  flex: 0 0 var(--sidebar-w);
  overflow: hidden;
  color: #fff;
  background: var(--forest);
}

.brand-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.brand-bg::before,
.side-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(rgba(255,255,255,.8) .6px, transparent .6px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.brand-sun {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -275px;
  top: 58%;
  border-radius: 50%;
  background: var(--lime);
  opacity: .92;
}

.contour {
  position: absolute;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 46% 54% 63% 37% / 44% 32% 68% 56%;
  transform: rotate(-14deg);
}
.contour::before,
.contour::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: inherit;
}
.contour::before { inset: 22px; }
.contour::after { inset: 48px; }
.contour-one { width: 470px; height: 390px; left: -230px; bottom: 10%; }
.contour-two { width: 360px; height: 300px; right: -180px; top: -70px; transform: rotate(28deg); }

.brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(28px, 4vw, 52px);
}

.brand-top,
.brand-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  width: 126px;
  filter: brightness(0) invert(1);
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.06);
  font-size: 11px;
  font-weight: 600;
}

.partner-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(200,240,100,.12);
}

.brand-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  max-width: 440px;
  padding: 40px 0 28px;
}

.brand-eyebrow,
.auth-kicker,
.page-kicker {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brand-headline {
  max-width: 420px;
  margin: 0 0 18px;
  color: #fff;
  font: 800 clamp(2.6rem, 4.6vw, 4.4rem)/.98 var(--display);
  letter-spacing: -.065em;
}

.brand-copy {
  max-width: 400px;
  margin: 0 0 36px;
  color: rgba(255,255,255,.68);
  font-size: 16px;
  line-height: 1.65;
}

.brand-points {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,.13);
}

.brand-points li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

.brand-points strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.point-icon {
  color: var(--lime);
  font: 700 10px var(--display);
  letter-spacing: .08em;
}

.brand-proof {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
}

.proof-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.proof-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand-proof span { display: block; color: #fff; font-size: 12px; font-weight: 600; }
.brand-proof small { color: rgba(255,255,255,.52); font-size: 11px; }
.brand-foot { color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: .04em; }

.panel-form {
  position: relative;
  display: grid;
  flex: 1;
  min-width: 0;
  background:
    radial-gradient(circle at 85% 8%, rgba(200,240,100,.18), transparent 22rem),
    var(--canvas);
}

.login-main {
  display: grid;
  place-items: center;
  padding: 32px 24px;
}

.login-card {
  display: flex;
  width: min(440px, 100%);
  flex-direction: column;
  gap: 16px;
  padding: clamp(28px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0;
  font: 800 clamp(2rem, 4vw, 3rem)/1 var(--display);
  letter-spacing: -.055em;
}

.login-lead,
.login-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.login-note { font-size: 12px; }
.auth-kicker { margin: 0; color: var(--forest); }

.alert {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.alert-error {
  color: var(--error);
  border: 1px solid #efc5bd;
  background: var(--error-soft);
}

.field { display: flex; flex-direction: column; gap: 7px; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.field label,
.section-label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.select-field select {
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field input,
.field select,
.field textarea,
.select-field select,
.search-wrap input { font-size: 16px; }

.field input,
.field select,
.select-field select { height: 50px; }

.field input[readonly] { color: var(--ink-faint); background: #f3f4ef; }

.field textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder { color: #a2aaa4; }

.field input:hover,
.field select:hover,
.field textarea:hover,
.select-field select:hover { border-color: #a8b0a9; }

.field input:focus,
.field select:focus,
.field textarea:focus,
.select-field select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(18,55,42,.09);
}

.field-hint {
  margin: 0;
  padding: 12px 14px;
  color: var(--ink-soft);
  border-radius: 10px;
  background: #f2f5ed;
  font-size: 12px;
  line-height: 1.5;
}

.field-hint::before {
  content: "i";
  display: inline-grid;
  width: 17px;
  height: 17px;
  margin-right: 8px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--forest);
  font: 700 10px var(--font);
}

.field-hint strong { color: var(--ink); font-weight: 700; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.choice {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.choice:hover { border-color: #9ca79f; }
.choice.is-selected { border-color: var(--forest); background: #f0f6e8; color: var(--forest); }
.choice.sev-critical.is-selected { border-color: var(--error); background: var(--error-soft); color: var(--error); }
.choice.sev-high.is-selected { border-color: #e0b07a; background: var(--warn-soft); color: var(--warn); }

.btn {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
}
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }

.btn-primary {
  color: #fff;
  background: var(--forest);
  box-shadow: 0 10px 24px rgba(18,55,42,.18);
}

.btn-primary:hover { background: var(--forest-deep); }
.btn-primary:focus-visible { outline-color: var(--lime); }
.login-card .btn-primary { width: 100%; margin-top: 4px; }

.btn-ghost {
  color: var(--ink-soft);
  background: transparent;
  box-shadow: none;
}

.btn-ghost:hover { color: var(--forest); background: rgba(18,55,42,.06); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 12px; }
.btn-danger { color: var(--error); background: var(--error-soft); }
.btn-danger:hover { background: #ffe1db; }

.text-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
}

.text-btn:hover { text-decoration: underline; }
.text-btn-light { color: rgba(255,255,255,.72); }
.text-btn-light:hover { color: #fff; }
.text-btn-danger { color: var(--error); }

/* App shell */
.app {
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
  background: var(--canvas);
}

.sidebar {
  position: relative;
  display: flex;
  height: 100dvh;
  flex-direction: column;
  padding: 22px 16px 18px;
  overflow: auto;
  color: #fff;
  background: var(--forest);
}

.side-bg { position: absolute; inset: 0; pointer-events: none; }
.side-top, .side-nav, .side-foot { position: relative; z-index: 1; }

.side-top .brand-logo { width: 112px; }
.side-kicker {
  display: block;
  margin-top: 10px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 6px;
  margin-top: 32px;
}

.nav-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: rgba(255,255,255,.72);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.nav-btn:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-btn.is-active { color: var(--forest); background: var(--lime); }
.nav-btn:focus-visible { outline-color: var(--lime); }
.nav-count {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: 11px;
  text-align: center;
}
.nav-btn.is-active .nav-count { background: rgba(18,55,42,.12); }

.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; }

.user-chip {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.05);
  text-align: left;
}

.user-chip:hover { background: rgba(255,255,255,.09); }
.user-chip:focus-visible { outline-color: var(--lime); }
.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 10px;
  color: var(--forest);
  background: var(--lime);
  font: 800 13px var(--display);
}
.user-copy { display: grid; min-width: 0; }
.user-copy strong,
.user-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: 13px; }
.user-copy small { color: rgba(255,255,255,.6); font-size: 11px; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; min-height: 0; }
.workspace.has-detail { grid-template-columns: minmax(0, 1fr) 440px; }

.main {
  height: 100dvh;
  overflow: auto;
  padding: 28px 28px 48px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-title { display: flex; align-items: center; gap: 12px; }
.page-kicker { margin: 0 0 4px; color: var(--forest); }
.page-head h2 {
  margin: 0;
  font: 800 clamp(2rem, 3vw, 2.6rem)/1 var(--display);
  letter-spacing: -.05em;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.filters { display: grid; gap: 12px; margin-bottom: 16px; }

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-faint);
}

.search-wrap:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(18,55,42,.09);
}

.search-wrap input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

.product-switch { display: flex; flex-wrap: wrap; gap: 8px; }

.seg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.seg:hover { border-color: #9ca79f; }
.seg.is-selected { border-color: var(--forest); background: var(--forest); color: #fff; }
.seg b { font-weight: 700; opacity: .7; }
.seg.is-selected b { color: var(--lime); opacity: 1; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.select-field { display: grid; gap: 6px; min-width: 150px; }
.select-field span { color: var(--ink-faint); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.select-field select { height: 42px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; padding: 0 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.stat {
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,254,249,.8);
  text-align: left;
}

.stat:hover { border-color: var(--line-strong); }
@media (hover: hover) and (pointer: fine) {
  .stat:hover { transform: translateY(-1px); }
}
.stat.is-selected { border-color: var(--forest); background: #f3f8ea; }
.stat span { display: block; color: var(--ink-faint); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stat strong { display: block; margin-top: 6px; font: 800 1.7rem/1 var(--display); letter-spacing: -.04em; }
.stat small { color: var(--ink-soft); font-size: 12px; }

.storage-line { margin: 0 0 14px; color: var(--ink-faint); font-size: 12px; }
.result-line { min-height: 1.2em; margin: 10px 0; color: var(--ink-faint); font-size: 12px; font-weight: 600; }

.bug-list { display: grid; gap: 8px; }

.bug-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 14px;
  background: var(--paper);
  text-align: left;
}

.bug-row:hover { border-color: var(--line-strong); box-shadow: 0 10px 24px rgba(28,42,34,.05); }
.bug-row.is-selected { border-color: var(--forest); background: #f4f8ee; }
.bug-row.sev-critical { border-left-color: var(--error); }
.bug-row.sev-high { border-left-color: #d4893a; }
.bug-row.sev-medium { border-left-color: #8aaa3a; }
.bug-row.sev-low { border-left-color: #b7c0b6; }

.bug-code {
  color: var(--ink-faint);
  font: 700 12px var(--display);
  letter-spacing: .04em;
}

.bug-title {
  margin: 0 0 4px;
  font: 700 15px/1.35 var(--display);
  letter-spacing: -.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bug-meta { margin: 0; color: var(--ink-faint); font-size: 12px; }
.bug-side { display: grid; justify-items: end; gap: 6px; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pill-open { background: var(--lime-soft); color: var(--forest); }
.pill-in_progress { background: var(--warn-soft); color: var(--warn); }
.pill-fixed { background: #e5f6ea; color: var(--success); }
.pill-verified { background: var(--forest); color: var(--lime); }
.pill-wont_fix { background: #eef0ea; color: var(--ink-soft); }
.pill-critical { background: var(--error); color: #fff; }
.pill-high { background: #f8e2cc; color: #8a3e12; }
.pill-medium { background: var(--lime-soft); color: var(--forest-deep); }
.pill-low { background: #eef0ea; color: var(--ink-soft); }
.pill-off { background: #f0f1ec; color: var(--ink-faint); }

.empty {
  padding: 42px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255,254,249,.55);
  text-align: center;
}

.empty h3 { margin: 0 0 8px; font: 800 1.6rem/1.1 var(--display); letter-spacing: -.04em; }
.empty p { margin: 0 auto 18px; max-width: 420px; color: var(--ink-soft); }

.critical-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--error-soft);
  color: var(--error);
  font-size: 13px;
  font-weight: 700;
}

/* Detail */
.detail {
  height: 100dvh;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.detail-inner { display: flex; min-height: 100%; flex-direction: column; gap: 18px; padding: 22px 22px 32px; }
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-actions { display: flex; gap: 8px; }
.detail h3 {
  margin: 8px 0 0;
  font: 800 1.7rem/1.15 var(--display);
  letter-spacing: -.04em;
}
.detail-kicker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.detail-sub { margin: 0; color: var(--ink-faint); font-size: 12px; }

.block h4 {
  margin: 0 0 6px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.prose { margin: 0; white-space: pre-wrap; word-break: break-word; color: var(--ink); font-size: 14px; }

.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f6f6f1;
}

.shot img { width: 100%; max-height: 240px; object-fit: contain; cursor: zoom-in; background: #eef1ea; }
.shot.is-open img { max-height: none; cursor: zoom-out; }

.status-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.status-switch button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}
.status-switch button[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: #fff; }

.comments { display: grid; gap: 10px; }
.comment {
  padding: 12px;
  border-radius: 12px;
  background: #f4f6f0;
}
.comment header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.comment header strong { font-size: 13px; }
.comment header span { color: var(--ink-faint); }
.comment p { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 14px; }

.composer { display: grid; gap: 8px; }
.history { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.history li { color: var(--ink-soft); font-size: 12px; }
.history time { color: var(--ink-faint); }

details.fold { border-top: 1px solid var(--line); padding-top: 8px; }
details.fold summary { cursor: pointer; color: var(--ink-soft); font-size: 12px; font-weight: 700; }

/* People */
.people-note {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #d9e9a9;
  border-radius: var(--radius);
  background: var(--lime-soft);
}

.people-note p { margin: 0; color: var(--forest-deep); font-size: 13px; }
.people-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.people-list { display: grid; gap: 8px; }

.person {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(140px, .6fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.person h3 { margin: 0; font: 700 15px/1.3 var(--display); }
.person p { margin: 2px 0 0; color: var(--ink-faint); font-size: 12px; }
.person-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.person select { height: 40px; }

/* Modal */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 34, 25, .46);
  backdrop-filter: blur(6px);
}

.modal {
  width: min(680px, 100%);
  max-height: min(860px, calc(100dvh - 40px));
  overflow: auto;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal.narrow { width: min(480px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-head h3 { margin: 0; font: 800 1.7rem/1.1 var(--display); letter-spacing: -.04em; }
.modal-head p { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }
.icon-btn {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.form-grid { display: grid; gap: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.preview-shot { width: 100%; max-height: 180px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #f4f5ef; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 70;
  transform: translateX(-50%);
  max-width: min(440px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--forest);
  box-shadow: 0 16px 40px rgba(18,55,42,.25);
  font-size: 13px;
  font-weight: 700;
}
.toast.error { background: var(--error); }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(11, 24, 18, .45);
}

body.modal-open { overflow: hidden; }

@media (max-width: 1100px) {
  :root { --sidebar-w: 320px; }
  .workspace.has-detail { grid-template-columns: minmax(0, 1fr) 380px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .workspace.has-detail { grid-template-columns: 1fr; }
  .detail {
    position: fixed;
    inset: 0;
    z-index: 30;
    height: auto;
    border-left: 0;
  }
}

@media (max-width: 860px) {
  .shell { display: block; }
  .panel-brand { position: relative; width: 100%; height: auto; min-height: 168px; }
  .brand-inner { min-height: 168px; padding: 22px; }
  .brand-body { padding: 8px 0 0; }
  .brand-points, .brand-proof, .brand-foot { display: none; }
  .brand-copy { margin-bottom: 0; }
  .brand-sun { width: 220px; height: 220px; right: -130px; top: auto; bottom: -140px; }
  .partner-pill { display: none; }
  .login-main { display: block; padding: 18px 16px 48px; }
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: min(300px, 88vw);
    transform: translateX(-105%);
    transition: transform .25s var(--ease);
  }
  .sidebar.is-open { transform: none; }
  .menu-btn { display: grid; }
  .main { padding: 18px 16px 40px; }
  .bug-row { grid-template-columns: 72px minmax(0, 1fr); }
  .bug-side { grid-column: 2; justify-items: start; }
  .person { grid-template-columns: 1fr; }
  .person-actions { justify-content: flex-start; }
  .choice-grid.cols-4,
  .choice-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { align-items: center; }
}

@media (max-width: 560px) {
  .brand-headline { font-size: 2.4rem; }
  .login-card { padding: 22px 18px; border-radius: 20px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
