:root {
  --ink: #152d32;
  --muted: #65767a;
  --line: #dce5e6;
  --paper: #f4f7f7;
  --white: #fff;
  --teal: #007568;
  --teal-dark: #005b52;
  --nav: #102d32;
  --danger: #ae303e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #3c9fca; outline-offset: 3px; }
.app-shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar { width: 238px; flex-shrink: 0; background: var(--nav); color: #dae9e7; padding: 35px 24px 25px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-size: 30px; font-weight: 750; letter-spacing: -1.2px; line-height: 1.1; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; background: #a9e3c5; color: var(--nav); font-size: 25px; border-radius: 12px; }
.brand-subtitle { display: block; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; font-weight: 400; color: #a9c5c6; margin-top: 7px; }
.nav-label { margin: 48px 10px 12px; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #91afb0; }
.nav-business { margin-top: 33px; overflow-wrap: anywhere; }
.sidebar nav a { display: block; padding: 11px 12px; margin: 4px 0; color: #d8e5e4; border-radius: 8px; font-size: 14px; }
.sidebar nav a:hover { background: #1c4044; text-decoration: none; }
.sidebar nav a.selected { background: #254b4d; color: #c4f1db; }
.sidebar-footer { margin-top: auto; padding: 60px 8px 0; color: #96b6b6; font-size: 12px; }
.sidebar-footer p { line-height: 1.7; }
.main-shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 81px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 42px; background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-label { font-size: 13px; color: var(--muted); }
.account-menu { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.account-email { font-size: 13px; overflow-wrap: anywhere; }
.account-menu form { margin: 0; }
.text-button { border: 0; background: none; padding: 0; color: var(--teal); font-size: 13px; }
.text-button:hover { text-decoration: underline; }
.content { flex: 1; width: 100%; max-width: 1480px; padding: 39px 42px 60px; margin-inline: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 7px 0 10px; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; font-weight: 650; letter-spacing: -1.2px; overflow-wrap: anywhere; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -.35px; margin-bottom: 12px; }
.page-heading p { margin: 0; color: var(--muted); max-width: 670px; }
.eyebrow { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.5px; color: var(--teal); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 19px; border-radius: 7px; border: 1px solid transparent; font-size: 13px; font-weight: 600; text-align: center; transition: background-color .15s; }
.button:hover { text-decoration: none; }
.primary { background: var(--teal); color: white; }
.primary:hover { background: var(--teal-dark); }
.secondary { background: white; color: var(--ink); border-color: var(--line); }
.secondary:hover { background: #edf4f3; }
.danger { background: #fff0f0; color: var(--danger); border-color: #efc6cb; }
.danger:hover { background: #ffe1e4; }
.button-full { width: 100%; }
.metrics { display: flex; gap: 0; padding: 0 0 27px; margin: 8px 0 30px; border-bottom: 1px solid var(--line); }
.metrics > div { padding-right: 40px; display: flex; flex-direction: column; gap: 1px; color: var(--muted); font-size: 13px; }
.metrics > div + div { padding-left: 40px; border-left: 1px solid var(--line); }
.metric-value { font-size: 30px; font-weight: 650; color: var(--ink); line-height: 1.4; }
.business-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 21px; }
.business-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 25px 23px 0; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.business-card:hover { text-decoration: none; border-color: #87b8ae; box-shadow: 0 6px 20px #112d3208; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 23px; }
.business-initial { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: #edf6f0; color: #397259; font-weight: 650; font-size: 20px; }
.business-card h2 { margin-bottom: 4px; overflow-wrap: anywhere; }
.business-card p { font-size: 13px; color: var(--muted); margin-bottom: 25px; }
.card-bottom { border-top: 1px solid #edf1f1; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; color: var(--teal); font-size: 13px; font-weight: 600; }
.badge { display: inline-flex; padding: 4px 10px; font-size: 11px; font-weight: 600; border-radius: 20px; white-space: nowrap; }
.badge-neutral { color: #53686b; background: #eef2f2; }
.badge-green { color: #236348; background: #e7f4eb; }
.panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.table-panel { overflow: hidden; }
.table-scroll { position: relative; max-width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { background: #fafcfc; padding: 14px 18px; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .65px; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 19px 18px; border-bottom: 1px solid #edf1f1; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td a { white-space: nowrap; }
.cell-title { display: block; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
td .cell-title { white-space: normal; }
.cell-subtitle { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 15px; }
.section-heading h2 { margin: 0; }
.section-heading a { font-size: 13px; }
.spaced { margin-top: 30px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 620px) minmax(220px, 340px); gap: 40px; align-items: start; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: 27px; align-items: start; }
.form-layout > *, .split-layout > *, .login-layout > * { min-width: 0; }
.form-panel { padding: 29px; }
.form-panel > p { font-size: 14px; }
.field { margin-bottom: 21px; }
.field label { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.optional { font-size: 11px; color: var(--muted); font-weight: 400; }
input:not([type="checkbox"]), select { width: 100%; min-height: 44px; padding: 10px 12px; background: white; color: var(--ink); border: 1px solid #cdd9db; border-radius: 6px; }
input::placeholder { color: #8d9b9e; }
input:focus, select:focus { border-color: var(--teal); }
.checkbox-field { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.checkbox-field label { margin: 0; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal); }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 27px; }
.help-text { color: var(--muted); font-size: 12px; margin-top: 7px; }
.help-text ul { padding-left: 18px; }
.errorlist { padding: 0; margin: 7px 0 0; list-style: none; color: var(--danger); font-size: 13px; }
.form-error { margin-bottom: 22px; padding: 12px 15px; background: #fff0f0; border-radius: 7px; }
.form-error .errorlist { margin: 0; }
.context-note { padding: 12px 0; color: var(--muted); font-size: 14px; }
.context-note h2 { font-size: 16px; color: var(--ink); }
.context-note p { margin-bottom: 18px; }
.steps { padding-left: 21px; }
.steps li { padding-left: 5px; margin-bottom: 17px; }
.back-link { display: inline-block; font-size: 13px; margin-bottom: 19px; }
.empty-state { padding: 65px 30px; text-align: center; border: 1px dashed #cddbdc; border-radius: 12px; background: #fbfdfd; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto 22px; font-size: 14px; }
.empty-state h2 { margin-bottom: 10px; }
.empty-state.compact { padding: 48px 25px; }
.empty-symbol { display: grid; place-items: center; width: 58px; height: 58px; background: #e7f2ef; color: var(--teal); border-radius: 50%; font-size: 30px; margin: 0 auto 22px; }
.monitor-symbol { display: block; width: 54px; height: 36px; border: 2px solid #4b887d; border-radius: 5px; position: relative; margin: 0 auto 30px; }
.monitor-symbol::before { content: ""; position: absolute; width: 2px; height: 7px; background: #4b887d; left: 24px; top: 35px; }
.monitor-symbol::after { content: ""; position: absolute; width: 24px; height: 2px; background: #4b887d; left: 13px; top: 42px; }
.notice { border-radius: 8px; padding: 15px 18px; margin-bottom: 22px; font-size: 14px; overflow-wrap: anywhere; }
.notice p { margin-top: 6px; margin-bottom: 6px; }
.notice-success { color: #205a43; background: #e6f3ea; border: 1px solid #c5e3cd; }
.notice-error { color: #94313e; background: #fff0f0; border: 1px solid #efc6cb; }
.notice-info { color: #255669; background: #eaf4f9; border: 1px solid #cce2ec; }
.danger-panel { margin-top: 25px; padding: 20px 24px; border: 1px solid #e7cdd2; border-radius: 10px; background: #fffbfb; font-size: 13px; }
.danger-panel summary { color: var(--danger); font-weight: 600; }
.danger-panel p { margin-top: 15px; color: var(--muted); }
.detail-list { margin: 0 0 23px; }
.detail-list dt { font-size: 12px; color: var(--muted); margin-top: 17px; }
.detail-list dd { margin: 4px 0 0; color: var(--ink); font-size: 14px; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); align-items: center; gap: 70px; padding-block: 50px; max-width: 1000px; margin: auto; }
.login-intro h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.12; margin: 21px 0; letter-spacing: -1.8px; }
.login-intro p { max-width: 360px; color: var(--muted); }
.login-panel { padding: 33px; }
.login-panel h2 { font-size: 23px; }
.login-panel .small { margin-top: 23px; margin-bottom: 0; }
.login-decoration { display: flex; align-items: flex-end; gap: 12px; margin-top: 32px; }
.login-decoration span { width: 56px; height: 38px; border: 2px solid #a8c8c0; border-radius: 5px; background: #e5f1ed; }
.login-decoration span:nth-child(2) { height: 50px; width: 75px; border-color: #5e9d8e; }
.narrow-content { max-width: 610px; margin: 15px auto; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.break-word { overflow-wrap: anywhere; }
.sr-only { position: absolute; height: 1px; width: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 15px; top: -100px; background: white; color: var(--ink); padding: 10px 15px; z-index: 10; }
.skip-link:focus { top: 15px; }
@media (max-width: 1150px) {
  .sidebar { width: 205px; padding-inline: 17px; }
  .topbar { padding-inline: 28px; }
  .content { padding-inline: 28px; }
  .split-layout { grid-template-columns: 1fr; }
  .split-layout > .form-panel { max-width: 560px; }
  .login-layout { gap: 35px; }
  .form-layout { gap: 26px; grid-template-columns: minmax(0, 1.5fr) minmax(190px, 1fr); }
}
@media (max-width: 850px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; padding: 18px 25px; }
  .brand { font-size: 26px; }
  .brand-subtitle { font-size: 9px; }
  .sidebar > .nav-label, .sidebar-footer, .nav-business { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 14px; }
  .sidebar nav a { padding: 8px 11px; margin: 0; font-size: 13px; }
  .topbar { min-height: 64px; padding: 14px 25px; }
  .topbar-label { display: none; }
  .account-menu { justify-content: flex-start; gap: 13px; }
  .content { padding: 28px 25px 42px; }
  .page-heading { align-items: flex-start; }
  .login-layout { padding-block: 12px; }
}
@media (max-width: 620px) {
  .sidebar { padding-inline: 18px; }
  .topbar, .content { padding-inline: 18px; }
  .page-heading { flex-direction: column; align-items: stretch; gap: 18px; }
  .page-heading > .button { align-self: flex-start; }
  .metrics > div { padding-right: 24px; }
  .metrics > div + div { padding-left: 24px; }
  .form-layout, .login-layout { grid-template-columns: 1fr; gap: 22px; }
  .login-intro h1 { font-size: 37px; }
  .login-decoration { display: none; }
  .login-panel, .form-panel { padding: 23px 20px; }
  .context-note { padding: 4px 3px; }
  .account-email { max-width: 100%; flex-basis: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .empty-state { padding: 40px 20px; }
  .badge { white-space: normal; }
  input:not([type="checkbox"]), select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.inline-form { margin-top: 4px; }


.membership-overview { margin-top: 32px; }
.business-actions { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }

/* Public entry pages share the footer without workspace navigation. */
.public-page .content { max-width: 1200px; }
.public-page .topbar { flex-wrap: wrap; }
.public-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 24px; font-weight: 750; letter-spacing: -.8px; }
.public-brand:hover { text-decoration: none; }
.public-brand img { flex: none; }
.public-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .public-page .topbar { gap: 14px; }
  .public-actions { width: 100%; }
  .public-page .login-layout { padding-top: 6px; }
}
