/* Field Honey — black and green */

:root {
  --display: "Segoe UI", "Avenir Next", system-ui, sans-serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --navy: #111111;
  --deep: #1A1A1A;
  --panel-dark: #111111;
  --gold: #1B8A3D;
  --gold-soft: #24A34A;
  --gold-deep: #146B30;
  --gold-ink: #0F5C28;
  --honey: #1B8A3D;
  --teal: #146B30;
  --cream: #F4FBF6;
  --page: #FFFFFF;
  --panel: #FFFFFF;
  --alt: #F4FBF6;
  --title: #111111;
  --text: #1A1A1A;
  --muted: #5C6570;
  --line: #D5DDD8;
  --soft-line: #E2EBE5;
  --shadow: 0 10px 28px rgba(17, 17, 17, 0.07);
  --radius: 14px;
  --sidebar: 268px;
  --ok: #1B8A3D;
  --warn: #B42318;
  --danger: #B42318;
  --info: #3D6B8C;
  --ink: #111111;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--page); color: var(--text); font-family: var(--sans); }
body { font-size: 15px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
a { color: var(--teal); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  background: var(--navy);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #2D3944;
}
.brand img { width: 92px; height: auto; display: block; }
.brand-wordmark {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #E8F6EE;
  font-size: 13px;
  line-height: 1.15;
}
.brand-sub {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav { display: flex; flex-direction: column; padding: 14px 12px; gap: 4px; flex: 1; overflow: auto; }
.nav a {
  color: #CBD1D6;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--radius);
}
.nav a:hover { background: #142D40; color: #fff; }
.nav a.active { background: #1B8A3D1A; color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.sidebar-foot { padding: 16px 20px 22px; border-top: 1px solid #2D3944; color: #CBD1D6; font-size: 12px; }
.sidebar-foot p { margin: 0 0 4px; }
.sidebar-foot a { color: var(--gold); text-decoration: none; }

.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px 12px;
  background: var(--page);
  position: sticky;
  top: 0;
  z-index: 20;
}
.menu-btn {
  display: none;
  background: var(--navy);
  color: var(--cream);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
}
.topbar-title { flex: 1; min-width: 0; }
.eyebrow {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold-deep);
  margin-bottom: 2px;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .005em;
  margin: 0;
  color: var(--title);
}
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search-wrap input {
  width: min(360px, 36vw);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 10px 12px;
}

.sample-banner {
  margin: 0 28px;
  background: #1B8A3D1A;
  border: 1px solid #1B8A3D66;
  color: var(--teal);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
}

.view { padding: 20px 28px 48px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 22px;
}
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  position: relative;
  overflow: hidden;
}
.kpi::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gold);
}
.kpi span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.kpi strong {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  margin: 6px 0 2px;
}
.kpi small { color: var(--muted); font-size: 12px; }

.grid-2 { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.card header a { font-size: 13px; font-weight: 600; text-decoration: none; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: var(--alt); }

.btn {
  appearance: none;
  border: 0;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.btn:hover { background: var(--gold-soft); }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--teal);
}
.btn.navy { background: var(--navy); color: var(--cream); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { padding: 7px 11px; font-size: 13px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.toolbar .grow { flex: 1; }
select, input[type="text"], input[type="date"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 9px 11px;
  color: var(--title);
}
textarea { min-height: 110px; width: 100%; resize: vertical; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--alt);
  color: var(--title);
}
.badge.sfr { background: #142D4014; color: #142D40; }
.badge.mf { background: #1B8A3D33; color: var(--teal); }
.badge.sample { background: #1B8A3D1A; color: var(--teal); }
.badge.priority-Emergency { background: #B423181A; color: var(--danger); }
.badge.priority-High { background: #B423181A; color: var(--warn); }
.badge.priority-Medium { background: #1B8A3D33; color: var(--teal); }
.badge.priority-Low { background: #CBD1D6; color: var(--muted); }
.badge.status-New { background: #1B8A3D33; color: var(--teal); }
.badge.status-Scheduled { background: #3D6B8C1A; color: var(--info); }
.badge.status-In-Progress,
.badge.status-In\ Progress { background: #1B8A3D22; color: #146B30; }
.badge.status-Waiting-on-Parts,
.badge.status-Waiting\ on\ Parts { background: #1B8A3D22; color: var(--teal); }
.badge.status-Completed { background: #2F6B4F1A; color: var(--ok); }
.badge.status-Invoiced { background: #1B243014; color: var(--title); }
.badge.status-Draft { background: var(--alt); color: var(--muted); }
.badge.status-Sent { background: #3D6B8C1A; color: var(--info); }
.badge.status-Approved { background: #2F6B4F1A; color: var(--ok); }
.badge.status-Declined { background: #B423181A; color: var(--danger); }
.badge.status-Paid { background: #2F6B4F1A; color: var(--ok); }
.badge.status-Ready { background: #2F6B4F1A; color: var(--ok); }
.badge.status-Delayed { background: #B423181A; color: var(--danger); }

/* Kanban */
.kanban {
  display: grid;
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.kanban-col {
  background: var(--alt);
  border-radius: var(--radius);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.kanban-col h3 {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 12px 8px;
  display: flex;
  justify-content: space-between;
}
.kanban-col h3 b { color: var(--muted); font-weight: 500; }
.kanban-list { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 12px; min-height: 120px; flex: 1; }
.wo-card, .turn-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 1px 0 #1B24300A;
}
.wo-card:hover, .turn-card:hover { border-color: var(--gold); }
.wo-card .wo-num, .muted { color: var(--muted); font-size: 12px; }
.wo-card h4 { font-size: 15px; margin: 4px 0; }
.wo-card p { margin: 0; font-size: 13px; color: var(--muted); }
.priority-bar { height: 3px; background: var(--line); margin: -12px -12px 10px; border-radius: 4px 4px 0 0; }
.priority-bar.Emergency { background: var(--danger); }
.priority-bar.High { background: var(--warn); }
.priority-bar.Medium { background: var(--gold); }
.priority-bar.Low { background: #9AA3AB; }

.turn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.turn-card h4 { margin-bottom: 4px; }
.progress {
  height: 8px;
  background: #D5DDD8;
  border-radius: 99px;
  overflow: hidden;
  margin: 10px 0 6px;
}
.progress > span { display: block; height: 100%; background: var(--gold); }
.check-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.check-pills span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 99px;
  background: var(--alt);
  color: var(--muted);
}
.check-pills span.done { background: #2F6B4F1A; color: var(--ok); }
.days-vacant.warn { color: var(--warn); font-weight: 700; }
.days-vacant.ok { color: var(--ok); font-weight: 700; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .full { grid-column: 1 / -1; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
label.field input, label.field select, label.field textarea { font-weight: 500; color: var(--title); }

.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.photos img, .photo-thumb {
  width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line);
}
.photo-preview img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 10px 0 10px 16px; border-left: 2px solid var(--gold); margin-left: 6px; }
.timeline time { display: block; font-size: 12px; color: var(--muted); }

.detail-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; }
.meta-list { display: grid; gap: 8px; }
.meta-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 600; text-align: right; }

.checklist { display: grid; gap: 8px; }
.checklist label {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--alt); border-radius: var(--radius); cursor: pointer; font-weight: 600;
}

.line-editor { width: 100%; }
.line-editor input { width: 100%; }
.totals { margin-left: auto; width: min(280px, 100%); }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .grand { font-family: var(--display); font-size: 22px; border-top: 2px solid var(--navy); padding-top: 10px; }

/* Invoice print sheet */
.invoice-sheet {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 40px 44px;
}
.inv-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.inv-head .co { display: flex; gap: 14px; align-items: center; }
.inv-head .co img { width: 148px; height: auto; }
.inv-head address { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.55; }
.inv-kicker {
  font-family: var(--display);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-size: 13px;
}
.inv-title { font-size: 36px; margin: 4px 0; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.inv-parties h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sample-stamp {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold-deep);
  font-family: var(--display);
  letter-spacing: .14em;
  padding: 4px 10px;
  margin-top: 8px;
}
.inv-foot {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* Calendar */
.cal-nav { display: flex; align-items: center; gap: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { font-family: var(--display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px; }
.cal-day {
  min-height: 104px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}
.cal-day.empty { background: transparent; border-color: transparent; }
.cal-day.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.cal-day .n { font-family: var(--display); font-weight: 600; }
.cal-event {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  padding: 2px 5px;
  border-radius: 3px;
  background: #1B8A3D33;
  color: var(--teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.cal-event.wo { background: #3D6B8C1A; color: var(--info); }
.cal-event.turn { background: #2F6B4F1A; color: var(--ok); }
.cal-event.job { background: #1B8A3D33; color: var(--teal); }

.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.prop-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.prop-card h3 { margin: 8px 0 4px; }

.empty { padding: 28px; text-align: center; color: var(--muted); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: #0C1218CC; display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 16px; z-index: 80; overflow: auto;
}
.modal {
  width: min(680px, 100%);
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 24px 80px #0006;
}
.modal h2 { margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

.toast {
  position: fixed; right: 20px; bottom: 20px; background: var(--navy); color: var(--cream);
  padding: 12px 16px; border-left: 4px solid var(--gold); border-radius: var(--radius); z-index: 90;
}

.portal-wrap { max-width: 720px; margin: 0 auto; }
.portal-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 28px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.portal-hero img { width: 110px; }
.portal-hero h2 { color: var(--cream); }
.portal-hero p { margin: 6px 0 0; color: #CBD1D6; }

.sidebar-backdrop { display: none; }

@media (max-width: 1100px) {
  .kpi-grid, .grid-2, .grid-3, .detail-grid, .form-grid, .inv-parties { grid-template-columns: 1fr; }
  .search-wrap input { width: 180px; }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 0 0 0 transparent;
  }
  body.nav-open .sidebar { transform: none; box-shadow: 8px 0 40px #0005; }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; background: #0C121866; z-index: 35; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .topbar, .sample-banner, .view { padding-left: 16px; padding-right: 16px; }
  .sample-banner { margin: 0 16px; }
  h1 { font-size: 24px; }
  .invoice-sheet { padding: 22px; }
}

@media print {
  body { background: #fff; }
  .sidebar, .topbar, .sample-banner, .toolbar, .no-print, #toast-root, #modal-root { display: none !important; }
  .app { display: block; }
  .view { padding: 0; }
  .invoice-sheet { box-shadow: none; border: 0; max-width: none; padding: 0; }
}

/* Login */
body.is-login { background: var(--navy); }
body.is-login .app, body.is-login #modal-root { display: none !important; }
.login-screen {
  display: none;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -10%, #1B8A3D22, transparent 60%),
    var(--navy);
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
body.is-login .login-screen { display: flex; }
.login-card {
  width: min(980px, 100%);
  background: #0C1218;
  border: 1px solid #2D3944;
  border-radius: 6px;
  padding: 36px 36px 28px;
  color: var(--cream);
}
.login-brand { text-align: center; margin-bottom: 8px; }
.login-brand img { width: 140px; margin: 0 auto 12px; display: block; }
.login-brand .brand-wordmark { font-size: 22px; letter-spacing: .14em; }
.login-lead { text-align: center; color: #CBD1D6; margin: 12px 0 16px; }
.login-note { margin: 0 0 20px; }
.demo-accounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.demo-card {
  background: #142D40;
  border: 1px solid #2D3944;
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  color: var(--cream);
  cursor: pointer;
  width: 100%;
}
.demo-card:hover { border-color: var(--gold); }
.demo-card .role-tag {
  display: inline-block;
  color: var(--navy);
  background: var(--gold);
  font-family: var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.demo-card h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.demo-card p { margin: 0 0 6px; color: #CBD1D6; font-size: 13px; }
.demo-card .email { color: var(--gold); font-size: 12px; font-weight: 600; }
.login-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  border-top: 1px solid #2D3944;
  padding-top: 18px;
}
.login-form .field { color: #CBD1D6; }
.login-form input { background: #111D28; border-color: #2D3944; color: #fff; }
.login-foot { text-align: center; color: #56616C; font-size: 12px; margin: 18px 0 0; }

/* User chip */
.user-chip { position: relative; }
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px 6px 6px;
  cursor: pointer;
  text-align: left;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 13px;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-meta strong { font-size: 13px; }
.user-meta em { font-style: normal; font-size: 11px; color: var(--muted); }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 180px; z-index: 30;
  display: flex; flex-direction: column;
}
.user-menu button {
  background: none; border: 0; text-align: left; padding: 10px 14px; cursor: pointer; font-weight: 600;
}
.user-menu button:hover { background: var(--alt); }

/* My Jobs */
.job-queue { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.job-queue-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; cursor: pointer;
}
.job-queue-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tm-list { list-style: none; padding: 0; margin: 0 0 12px; }
.tm-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

body.role-tech .view { padding-bottom: 32px; }
.split-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 860px) {
  .demo-accounts, .login-form, .ba-grid { grid-template-columns: 1fr; }
  .login-card { padding: 24px 18px; }
  .user-meta { display: none; }
  .topbar-actions { gap: 6px; }
  .search-wrap { display: none; }
  .topbar-title { min-width: 0; }
  .topbar-title h1 { font-size: 22px; }
}

/* Five admin KPI cards */
.kpi-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.badge.status-Submitted { background: #3D6B8C1A; color: var(--info); }
.badge.status-Rejected { background: #B423181A; color: var(--danger); }

.margin-box {
  background: #1B8A3D1A;
  border: 1px solid #1B8A3D66;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0;
}
.margin-box h3 { margin-bottom: 8px; }
.margin-box p { margin: 4px 0; }

/* Tech PWA shell */
.tech-tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 68px;
  background: var(--navy);
  border-top: 1px solid #2D3944;
  z-index: 45;
  justify-content: space-around;
  align-items: stretch;
  padding: 0 env(safe-area-inset-bottom);
}
body.role-tech .tech-tabbar { display: flex; }
body.role-tech .view { padding-bottom: 96px; }
.tech-tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #CBD1D6;
  text-decoration: none;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  min-width: 0;
  min-height: 48px;
}
.tech-tabbar a svg { width: 22px; height: 22px; flex: 0 0 22px; }
.tech-tabbar a.active { color: var(--gold); }
.tech-tabbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; }

body.role-tech .btn { min-height: 44px; padding: 12px 16px; }
body.role-tech .btn.small { min-height: 44px; }
body.role-tech input, body.role-tech select, body.role-tech textarea {
  min-height: 44px; font-size: 16px;
}
body.role-tech textarea { min-height: 110px; }
body.role-tech .job-queue-card { padding: 18px; }
body.role-tech .quick-row .btn { flex: 1 1 auto; justify-content: center; }

.checkin-panel { display: grid; gap: 10px; margin-top: 12px; }
.checkin-panel .btn { width: 100%; }
.photo-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.photo-masonry figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.photo-masonry img { width: 100%; height: 120px; object-fit: cover; display: block; }
.photo-masonry figcaption { padding: 8px; font-size: 12px; color: var(--muted); }

.guide ol { padding-left: 20px; }
.guide li { margin: 8px 0; }
.offline-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #B423181A; color: var(--danger);
  font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 99px;
}
.offline-pill.syncing { background: #1B8A3D33; color: var(--teal); }

.receipt-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

@media (min-width: 861px) {
  body.role-tech .tech-tabbar { left: var(--sidebar); }
}

@media (max-width: 860px) {
  body.role-tech .sidebar { /* keep drawer */ }
  body.role-tech .tech-tabbar { display: flex; }
}

@media print {
  .tech-tabbar { display: none !important; }
  .margin-box { break-inside: avoid; }
}

/* Notifications */
.notif-wrap { position: relative; }
.notif-btn {
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notif-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--gold); color: var(--navy);
  font-family: var(--display); font-size: 11px; font-weight: 700;
  border-radius: 99px; display: inline-flex; align-items: center; justify-content: center;
}
.notif-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(380px, 86vw);
  max-height: 70vh; overflow: auto;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); border-radius: var(--radius);
  z-index: 60; padding: 8px 0;
}
.notif-panel h3 { margin: 8px 16px; font-family: var(--display); font-size: 16px; }
.notif-item {
  display: block; padding: 10px 16px; text-decoration: none; color: inherit;
  border-top: 1px solid var(--line);
}
.notif-item.unread { background: #1B8A3D14; }
.notif-item time { display: block; color: var(--muted); font-size: 12px; }
.login-apply { text-align: center; margin: 16px 0 0; }
.login-apply a { font-weight: 600; }
.login-card-wide { max-width: 640px; }

/* Rent-ready stages */
.stage-track { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 12px; }
.stage-pill {
  flex: 1 0 auto;
  min-width: 88px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
}
.stage-pill.done { background: #2F6B4F1A; color: var(--ok); border-color: #2F6B4F44; }
.stage-pill.current { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.stage-pill.locked { opacity: .55; }

/* Scope of work */
.scope-table input[type="range"] { width: 100%; }
.progress-label { font-size: 12px; font-weight: 700; color: var(--teal); }

/* Scorecard */
.scorecard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scorecard .kpi { padding: 12px; }
.lockbox {
  background: var(--navy); color: var(--gold);
  font-family: var(--display); letter-spacing: .12em;
  padding: 10px 14px; border-radius: var(--radius);
  display: inline-block; font-size: 20px;
}
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.doc-chip { display: inline-block; padding: 6px 10px; background: var(--alt); border-radius: 99px; margin: 4px 4px 0 0; font-size: 13px; }

/* Help */
.help-doc { max-width: 860px; }
.help-doc h2 {
  font-family: var(--display); color: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 8px; margin: 36px 0 16px;
  text-transform: uppercase; letter-spacing: .04em;
}
.help-doc h3 { font-family: var(--display); color: var(--navy); margin: 22px 0 10px; }
.help-doc h4 { margin: 16px 0 8px; }
.help-doc ol, .help-doc ul { padding-left: 22px; }
.help-doc li { margin: 6px 0; }
.help-toc { background: var(--cream); padding: 16px 20px; border-left: 4px solid var(--gold); }
.help-toc a { display: block; margin: 4px 0; }
.help-doc figure { margin: 16px 0 24px; }
.help-doc figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.help-doc img.help-shot { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.callout { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 12px 16px; margin: 12px 0; }

.est-group { margin: 14px 0; }
.est-group h4 { margin: 0 0 6px; font-family: var(--display); }

td.warn { color: var(--warn); font-weight: 700; }

body.role-tech .toast { bottom: 84px; left: 12px; right: 12px; }
.tech-tabbar { height: 70px; }
.tech-tabbar a { font-size: 9px; letter-spacing: 0; gap: 2px; padding: 6px 1px; }
.tech-tabbar a span { font-size: 9px; }


/* ===== Phone polish: Field Honey
html { -webkit-text-size-adjust: 100%; }
body { font-size: 16px; }
button, input, select, textarea { font-size: 16px; }
.card { border-radius: 12px; }
.job-queue-card { border-radius: 12px; }
.btn { min-height: 44px; padding: 12px 16px; font-size: 16px; }
.btn.small { min-height: 44px; padding: 12px 14px; font-size: 15px; }
.app-mark {
  display: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: .02em;
  line-height: 1.2;
}

.empty-state {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
}
.empty-state h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18px;
}
.empty-state p { margin: 0; font-size: 16px; line-height: 1.45; }

input[type="file"] {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--alt);
}

body.is-login .login-screen {
  padding-top: calc(28px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}
.demo-card { min-height: 44px; }
.login-form input { min-height: 48px; font-size: 16px; }
.login-form .btn { width: 100%; justify-content: center; min-height: 48px; }

@media (max-width: 860px) {
  html, body { overflow-x: hidden; }
  img, video { max-width: 100%; height: auto; }

  .app { min-height: 100dvh; }
  .shell { min-width: 0; }

  .app-mark { display: block; margin-bottom: 2px; }
  .topbar .eyebrow { display: none; }
  #reset-btn { display: none !important; }

  .topbar {
    background: var(--navy);
    color: var(--cream);
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 12px;
    min-height: calc(58px + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid #2D3944;
  }
  .topbar-title h1 {
    color: #E8F6EE;
    font-size: 20px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }
  .menu-btn {
    width: 44px;
    height: 44px;
    background: #142D40;
    color: var(--gold);
    flex: 0 0 44px;
  }
  .notif-btn {
    background: #142D40;
    border-color: #2D3944;
    color: var(--cream);
  }
  .user-menu-btn {
    background: #142D40;
    border-color: #2D3944;
    min-height: 44px;
    padding: 4px;
  }
  .avatar { width: 36px; height: 36px; }

  .sample-banner {
    margin: 10px 14px 0;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .view { padding: 14px 14px calc(110px + env(safe-area-inset-bottom, 0px)); }
  .view > .muted { font-size: 15px; overflow-wrap: anywhere; }

  .job-queue-card h3, .card h3, .card h4, p {
    overflow-wrap: anywhere;
  }
  .job-queue-card .quick-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .job-queue-card .quick-row .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .toolbar, .split-actions, .map-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .toolbar .btn, .split-actions .btn, .map-links .btn,
  .toolbar a.btn, .split-actions a.btn {
    width: 100%;
    justify-content: center;
  }

  select, input[type="text"], input[type="date"], input[type="email"],
  input[type="tel"], input[type="number"], input[type="password"],
  input[type="search"], textarea {
    min-height: 48px;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
  }
  textarea { min-height: 120px; }

  .kpi-grid, .grid-2, .grid-3, .detail-grid, .form-grid,
  .inv-parties, .scorecard, .ba-grid {
    grid-template-columns: 1fr !important;
  }

  .kanban {
    display: flex;
    flex-direction: column;
    overflow-x: visible;
    gap: 12px;
  }
  .kanban-col { min-width: 0; }

  .stage-track {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .stage-pill { min-width: calc(50% - 6px); }

  .table-wrap { overflow: visible; }
  .table-wrap table { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tbody { display: flex; flex-direction: column; gap: 12px; }
  .table-wrap tr {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
  }
  .table-wrap td {
    border: 0;
    padding: 4px 0;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 16px;
  }
  .table-wrap td:first-child {
    font-weight: 700;
    color: var(--navy);
  }

  .meta-list div { flex-wrap: wrap; }
  .cal-day { min-height: 72px; }

  .tech-tabbar {
    display: flex !important;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 4px 4px env(safe-area-inset-bottom, 0px);
    align-items: stretch;
  }
  .tech-tabbar a {
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: none;
    font-weight: 600;
    gap: 4px;
    min-height: 44px;
    padding: 6px 2px 4px;
  }
  .tech-tabbar a span { font-size: 12px; white-space: nowrap; }
  .tech-tabbar a svg { width: 22px; height: 22px; }

  .invoice-sheet, .inv-title { overflow-wrap: anywhere; }
  .inv-title { font-size: 28px; }
  .help-doc img.help-shot { height: auto; }
}

@media (min-width: 861px) {
  body:not(.role-tech) .tech-tabbar { display: none !important; }
}

body.role-tech .toast, body:not(.is-login) .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

/* Keep the display name in the exact requested casing */
.login-brand .brand-sub,
.brand .brand-sub,
#brand-sub {
  text-transform: none;
  letter-spacing: 0.03em;
}


/* Field Honey light theme overrides */
html, body { background: var(--page); color: var(--text); }
.sidebar {
  background: #FFFFFF;
  color: var(--text);
  border-right: 1px solid var(--line);
}
.brand { border-bottom-color: var(--line); }
.brand-wordmark { color: var(--navy); letter-spacing: 0.02em; text-transform: none; font-size: 15px; }
.brand-sub { color: var(--gold-deep); text-transform: none; letter-spacing: 0.03em; font-size: 13px; }
.nav a { color: var(--deep); }
.nav a:hover { background: #E8F6EE; color: var(--navy); }
.nav a.active { background: #E8F6EE; color: var(--gold-deep); box-shadow: inset 3px 0 0 var(--gold); }
.sidebar-foot { border-top-color: var(--line); color: var(--muted); }
.sidebar-foot a { color: var(--gold-deep); }
.card, .job-queue-card, .kpi { border-radius: 16px; }
.job-queue { gap: 16px; }
.job-queue-card { padding: 20px; }
.sample-banner { background: #E8F6EE; border-color: #A9D4B8; color: var(--gold-deep); font-weight: 500; }

body.is-login { background: var(--page); }
.login-screen {
  background:
    radial-gradient(900px 420px at 50% -8%, #1B8A3D24, transparent 62%),
    var(--page);
}
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow);
}
.login-lead, .demo-card p { color: var(--muted); }
.demo-card {
  background: #F4FBF6;
  border: 1px solid var(--line);
  color: var(--text);
}
.demo-card:hover { border-color: var(--gold); }
.demo-card h3 { color: var(--navy); }
.demo-card .email { color: var(--gold-deep); }
.login-form { border-top-color: var(--line); }
.login-form .field { color: var(--muted); }
.login-form input { background: #fff; border-color: var(--line); color: var(--text); }
.login-foot { color: var(--muted); }

.tech-tabbar {
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(17,17,17,0.04);
}
.tech-tabbar a { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 12px; }
.tech-tabbar a.active { color: var(--gold-deep); }
.tech-tabbar a span { font-size: 12px; }

.portal-hero { background: #E8F6EE; color: var(--navy); }
.portal-hero h2 { color: var(--navy); }
.portal-hero p { color: var(--muted); }

.lockbox { background: var(--navy); color: var(--gold); }

@media (max-width: 860px) {
  .topbar {
    background: #fff;
    color: var(--navy);
    border-bottom: 1px solid var(--line);
  }
  .topbar-title h1 { color: var(--navy); }
  .app-mark { color: var(--gold-deep); }
  .menu-btn { background: var(--alt); color: var(--navy); }
  .notif-btn { background: #fff; border-color: var(--line); color: var(--navy); }
  .user-menu-btn { background: #fff; border-color: var(--line); }
}


/* Field team ease: big taps, guided photos, plan card */
.trial-banner {
  background: linear-gradient(135deg, #E8F6EE, #CDEBD8);
  border: 1px solid #1B8A3D;
  color: #0F5C28;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 16px;
}
.plan-card h2 {
  font-size: 40px;
  letter-spacing: -0.03em;
  margin: 4px 0 8px;
  color: var(--ink);
}
.plan-card .eyebrow { letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; color: var(--gold-ink); font-weight: 700; }
.plan-perks { margin: 12px 0 20px; padding-left: 20px; }
.plan-perks li { margin: 8px 0; font-size: 16px; }
.offline-banner {
  background: #111111;
  color: #F4FBF6;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 14px;
  font-size: 15px;
}
.photo-guide { display: grid; gap: 12px; margin-top: 8px; }
.photo-step {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.photo-step h4 { margin: 0 0 6px; font-size: 17px; }
.photo-step .btn { width: 100%; min-height: 52px; font-size: 16px; }
.today-later { margin: 20px 0 10px; font-size: 18px; }
.voice-btn { min-height: 48px; }
body.role-tech .quick-row,
.job-queue-card .quick-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
body.role-tech .quick-row .btn,
.job-queue-card .quick-row .btn {
  min-height: 52px;
  font-size: 16px;
  width: 100%;
}
.checkin-panel .btn {
  min-height: 52px;
  font-size: 16px;
  width: 100%;
}
@media (min-width: 720px) {
  body.role-tech .quick-row,
  .job-queue-card .quick-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-guide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  #reset-btn { display: none !important; }
  .topbar .eyebrow { letter-spacing: 0.08em; }
}

.plan-banner {
  background: linear-gradient(135deg, #E8F6EE, #CDEBD8);
  border: 1px solid #1B8A3D;
  color: #0F5C28;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 16px;
}
.plan-calc {
  margin: 16px 0;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.plan-calc h3 { margin: 0 0 10px; font-size: 17px; }
.plan-total { font-size: 20px; margin: 10px 0 6px; }
.signup-steps {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 13px;
  flex-wrap: wrap;
}
.signup-steps li { color: var(--muted); }
.signup-steps li.active { color: var(--gold-deep); font-weight: 700; }
.signup-billing-form .btn,
#plan-subscribe-btn {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  margin-top: 8px;
}
#public-view h2 { margin: 0 0 10px; font-size: 24px; }
#public-view .field { margin-bottom: 12px; }
#public-view .btn { min-height: 48px; }

.scope-card { margin: 0 0 16px; }
.scope-card header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.task-list { display: grid; gap: 12px; margin: 12px 0; }
.task-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #FFFFFF; }
.task-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.task-card h4 { margin: 0 0 6px; font-size: 17px; }
.task-card .quick-row { margin-top: 10px; }
.qc-box { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #E8F6EE; border: 1px solid #1B8A3D; }
.qc-box ul { margin: 8px 0 12px; padding-left: 20px; }
.workcode-picks { display: grid; gap: 8px; margin: 8px 0 12px; }
.workcode-picks .check, .client-rule .check { font-size: 15px; }
.client-rule { padding: 12px 0; border-bottom: 1px solid var(--line); }
.client-rule:last-of-type { border-bottom: 0; }

.plan-price-line {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 6px 0 8px;
  color: var(--ink, #111111);
}
.plan-price-extra {
  font-size: 16px;
  margin: 0 0 16px;
  color: var(--muted);
}

.app-wordmark { white-space: nowrap; font-weight: 700; letter-spacing: 0.01em; text-transform: none; }
.app-wordmark .wm-field { color: #111111 !important; }
.app-wordmark .wm-honey { color: #1B8A3D !important; }
.login-brand .brand-sub,
.brand .brand-sub,
#brand-sub,
.app-mark {
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Black + green wordmark, login hero, plan stepper, billing, trial */
.login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.login-brand img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 22px;
  margin: 0 auto 8px;
  display: block;
}
.login-brand .brand-sub,
.login-brand .brand-sub .app-wordmark {
  font-size: 44px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  text-transform: none !important;
  margin: 12px 0 8px !important;
  line-height: 1.1 !important;
  color: inherit;
}
.login-brand .brand-wordmark {
  font-size: 15px !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: #5C6570 !important;
  font-weight: 500 !important;
  margin: 0 0 4px;
}
.app-mark,
.app-mark .app-wordmark,
#app-mark {
  display: block !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  text-transform: none !important;
}
.app-wordmark { white-space: nowrap; font-weight: 700; letter-spacing: 0.01em; text-transform: none; }
.app-wordmark .wm-field { color: #111111 !important; }
.app-wordmark .wm-honey { color: #1B8A3D !important; }
.sample-banner,
.login-note {
  background: #E8F6EE !important;
  border: 1px solid #1B8A3D !important;
  color: #0F5C28 !important;
}
.demo-card { background: #FFFFFF !important; border: 1px solid #D5DDD8 !important; }
.demo-card .role-tag { background: #1B8A3D !important; color: #FFFFFF !important; }
.demo-card .email { color: #1B8A3D !important; }
.trial-badge {
  margin: 0 28px 10px;
  background: #E8F6EE;
  border: 1px solid #1B8A3D;
  color: #0F5C28;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
}
@media (max-width: 860px) {
  .trial-badge { margin: 0 16px 10px; }
}
.plan-headline {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0 14px;
  color: #111111;
  line-height: 1.3;
}
.plan-price-base, .plan-price-extra {
  font-size: 16px;
  margin: 6px 0;
  color: #1A1A1A;
  font-weight: 500;
}
.plan-price-line { font-size: 16px; font-weight: 600; margin: 6px 0; }
.plan-total {
  font-size: 22px;
  font-weight: 700;
  margin: 14px 0 10px;
  color: #111111;
}
.plan-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 16px;
}
.plan-stepper-label { font-weight: 700; margin-right: auto; font-size: 16px; }
.plan-stepper-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #D5DDD8;
  background: #fff;
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  cursor: pointer;
}
.plan-stepper-btn:active { background: #E8F6EE; border-color: #1B8A3D; }
.plan-stepper-value {
  min-width: 2.2ch;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #111111;
}
#plan-subscribe-btn,
.plan-subscribe-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  line-height: 1.2;
  background: #1B8A3D;
  color: #fff;
  border: 0;
}
#plan-subscribe-btn:hover,
.plan-subscribe-btn:hover { background: #146B30; }
#plan-subscribe-btn .btn-label { font-weight: 700; font-size: 16px; }
#plan-subscribe-btn .btn-price { font-weight: 700; font-size: 20px; }
.billing-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #D5DDD8;
}
.billing-row:last-child { border-bottom: 0; }
.badge.status-Paid { background: #E8F6EE; color: #0F5C28; }
.badge.status-Due { background: #111111; color: #fff; }
.card { background: #fff; border: 1px solid #D5DDD8; }
