:root {
  color-scheme: light;
  --forest: #0f172a;
  --forest-deep: #0b1220;
  --green: #0f766e;
  --green-light: #ddeff0;
  --cream: #f4f8f9;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #5b6b7a;
  --line: #dce6e9;
  --amber: #875c16;
  --amber-light: #fcf2dc;
  --rose: #8a3f39;
  --rose-light: #fbece6;
  --radius: 18px;
  --shadow: 0 5px 24px rgba(21, 32, 58, .045);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--cream);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: var(--green); text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #61b4ac; outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(71, 152, 144, .22); border-color: #51938d; }
input, select, textarea { max-width: 100%; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); width: 20px; height: 20px; flex: 0 0 20px; margin: 3px 0 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.85rem, 3vw, 2.6rem); line-height: 1.18; letter-spacing: -.045em; font-weight: 650; margin-bottom: 12px; }
h2 { font-size: 1.34rem; line-height: 1.3; letter-spacing: -.025em; font-weight: 650; margin-bottom: 14px; }
h3 { font-size: 1.08rem; line-height: 1.4; margin-bottom: 8px; font-weight: 650; }
h1, h2, h3, p, .detail-strip > span { overflow-wrap: anywhere; }
p { margin-bottom: 18px; }
small { font-size: .85rem; }
strong { font-weight: 650; }
pre { font: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 15px; z-index: 100; padding: 12px 20px; background: white; border-radius: 10px; }
.skip-link:focus { top: 15px; }
.icon { display: inline-block; vertical-align: middle; width: 22px; height: 22px; flex: 0 0 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-size: 1.43rem; font-weight: 750; line-height: 1; letter-spacing: .03em; }
.brand-mark { width: 44px; height: 44px; display: block; flex: none; }
.brand-ops { color: #14b8a6; }
.brand-caption { display: block; font-size: .64rem; letter-spacing: .19em; font-weight: 500; margin-top: 7px; color: #c1d6d4; }
.eyebrow { font-size: .72rem; line-height: 1.4; letter-spacing: .135em; text-transform: uppercase; font-weight: 650; color: var(--muted); margin-bottom: 9px; }
.muted { color: var(--muted); }
.fine-print { color: var(--muted); font-size: .82rem; line-height: 1.6; margin: 15px 0 0; }
.optional { color: var(--muted); font-weight: 400; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; min-height: 48px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-size: .94rem; line-height: 1.4; font-weight: 600; transition: background .16s, border-color .16s, transform .16s; }
.button-primary { background: var(--forest); color: white; border-color: var(--forest); }
.button-primary:hover:not(:disabled) { background: #1f2f55; border-color: #1f2f55; }
.button-secondary { background: transparent; color: var(--forest); border-color: #c8d9d7; }
.button-secondary:hover:not(:disabled) { background: var(--green-light); border-color: #b3cfcc; }
.button-wide { width: 100%; }
.button-pause { background: #f6e8dd; border-color: #e1c9b9; color: #7c4736; }
.button-pause:hover:not(:disabled) { background: #f0dbcb; }
.export-blocked { opacity: .6; cursor: default; }
.button .icon { width: 19px; height: 19px; }
.text-link { font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.text-link:hover, .card-link:hover { text-decoration: underline; }
.back-link { display: inline-block; text-decoration: none; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.back-link:hover { color: var(--forest); }
.pill-light { display: inline-flex; align-items: center; max-width: 100%; overflow-wrap: anywhere; border: 1px solid rgba(255,255,255,.24); border-radius: 30px; padding: 5px 13px; font-size: .75rem; line-height: 1.5; color: #e4f2f1; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 30px; font-size: .72rem; line-height: 1.35; font-weight: 600; white-space: nowrap; }
.badge-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 100%; background: currentColor; }
.badge-green { background: #dfefed; color: #203159; }
.badge-amber { background: #fbefd4; color: #84571a; }
.badge-rose { background: #f8e8e1; color: #8b4133; }
.badge-neutral { background: #e7f0ef; color: #5d6e6c; }
.notice { display: flex; gap: 13px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 17px 20px; margin: 22px 0; font-size: .9rem; line-height: 1.65; }
.notice p { margin: 0; }
.notice .icon { margin-top: 3px; }
.notice-soft { background: #e6f1f0; border-color: #d7e6e5; }
.notice-amber { background: var(--amber-light); border-color: #eedfba; color: #72531f; }
.notice-success { background: #dff0ee; border-color: #c7e8e5; }
.notice-error, .form-error { background: var(--rose-light); color: #7e3931; border: 1px solid #efd3c9; border-radius: 10px; padding: 14px 17px; }
.compact-notice { padding: 13px 15px; font-size: .82rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); min-width: 0; }
.panel > :last-child { margin-bottom: 0; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading > .icon { color: #7a9f9c; }
.section-heading > .muted { font-size: .8rem; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: .94rem; font-weight: 600; margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field legend { margin-bottom: 10px; padding: 0; font-weight: 600; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #c7d9d7; border-radius: 9px; background: #fffefb; color: var(--ink); font-size: .96rem; font-weight: 400; line-height: 1.6; }
.field input { min-height: 48px; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a9388; opacity: 1; }
.field small, .field-help { font-weight: 400; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.field-help { display: block; margin-bottom: 12px; }
.field input[readonly] { background: #edf3f5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-panel > h2 { margin-bottom: 23px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 25px; }
.form-error { margin: 15px 0; font-size: .9rem; font-weight: 400; }
.form-progress { padding: 14px 16px 14px 42px; background: #e5f1f0; color: var(--green); border: 1px solid #c7e3e0; border-radius: 10px; font-size: .9rem; position: relative; }
.form-progress::before { content: ''; width: 14px; height: 14px; border: 2px solid #b3d8d5; border-top-color: var(--green); border-radius: 50%; position: absolute; top: 18px; left: 15px; animation: waiting 1s linear infinite; }
@keyframes waiting { to { transform: rotate(360deg); } }
.mode-options, .choice-list { display: grid; gap: 10px; }
.check-choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 15px; border: 1px solid var(--line); border-radius: 10px; background: #f6fafb; font-weight: 400; font-size: .91rem; cursor: pointer; line-height: 1.55; }
.check-choice > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.check-choice strong { display: block; margin-bottom: 2px; }
.check-choice small { display: block; color: var(--muted); font-size: .81rem; }
.check-choice:has(input:checked) { background: #e5f3f2; border-color: #9cc8c3; }
.choice-disabled { color: var(--muted); background: #edf2f3; cursor: default; }
.choice-list { max-height: 350px; overflow: auto; padding-right: 3px; }
.read-value { background: #ebf3f2; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; font-weight: 400; min-height: 50px; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 400; line-height: 1.8; }
.document-preview { white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f9fa; border: 1px solid #dee8e7; padding: 22px; border-radius: 10px; font-size: .94rem; line-height: 1.8; max-height: 850px; overflow: auto; margin: 0; }
.field .document-editor { background: #fffef9; line-height: 1.9; font-size: .95rem; }
.detail-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 22px; color: var(--muted); font-size: .81rem; margin-bottom: 26px; }
.detail-columns { grid-template-columns: minmax(0, 1.9fr) minmax(275px, 1fr); }
.detail-aside { display: grid; gap: 22px; min-width: 0; }
.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; overflow-wrap: anywhere; }
.simple-list li:last-child { border-bottom: 0; }
.simple-list .icon { color: #709592; width: 20px; height: 20px; flex-basis: 20px; margin-top: 2px; }
.fact-list { display: grid; grid-template-columns: 1fr; margin: 25px 0 0; }
.fact-list dt { font-size: .78rem; color: var(--muted); margin-top: 14px; }
.fact-list dd { margin: 3px 0 0; font-size: .93rem; overflow-wrap: anywhere; }
.stack-actions { display: grid; gap: 12px; margin-top: 22px; }
.plain-steps { padding-left: 23px; color: var(--muted); }
.plain-steps li { padding: 8px 0 8px 4px; }
.boundary-list { list-style: none; margin: 0; padding: 0; }
.boundary-list li { display: flex; align-items: flex-start; gap: 11px; padding: 10px 0; font-size: .91rem; }
.boundary-list .icon { color: #519b93; width: 19px; height: 19px; flex-basis: 19px; margin-top: 3px; }
.empty-state { text-align: center; background: var(--white); border: 1px dashed #bdd9d6; border-radius: var(--radius); padding: 55px 25px; margin: 20px 0; }
.empty-icon { display: grid; place-items: center; width: 65px; height: 65px; background: #e2f1f0; border-radius: 20px; color: #579791; margin: 0 auto 22px; }
.empty-icon .icon { width: 30px; height: 30px; }
.empty-state p { max-width: 520px; margin: 0 auto 25px; color: var(--muted); }
.quiet-state { padding: 30px 8px; text-align: center; color: var(--muted); }
.quiet-state .icon { width: 33px; height: 33px; color: #639d97; margin-bottom: 14px; }
.quiet-state h3 { color: var(--ink); }
.quiet-state p { font-size: .91rem; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80; max-width: min(640px, calc(100vw - 30px)); padding: 14px 22px; border: 1px solid #456663; background: var(--forest); color: white; border-radius: 12px; box-shadow: 0 8px 35px rgba(18, 28, 50, .2); font-size: .92rem; }
.toast-error { background: #813e31; border-color: #ac6553; }
.initial-state { padding: 15vh 30px; text-align: center; }
.initial-state .brand-mark { margin: 0 auto 25px; }
.initial-state p { color: var(--muted); }

/* A persistent company rail makes long work forms easy to find again. */
.app-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--forest); color: white; padding: 30px 19px; position: fixed; top: 0; bottom: 0; width: 244px; display: flex; flex-direction: column; overflow: auto; z-index: 40; }
.sidebar .brand { padding: 0 10px; margin-bottom: 35px; }
.company-chip { display: flex; align-items: center; gap: 10px; padding: 13px 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; margin-bottom: 25px; }
.company-monogram { width: 32px; height: 34px; flex: 0 0 32px; border-radius: 8px; display: grid; place-items: center; background: #c0e9e5; color: #1b2a4c; font-weight: 650; }
.company-chip > span:last-child { min-width: 0; }
.company-chip strong { display: block; font-size: .83rem; overflow-wrap: anywhere; line-height: 1.4; }
.company-chip small { font-size: .68rem; color: #b2cbc8; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; border-radius: 9px; padding: 12px 14px; min-height: 47px; color: #c4d5d3; text-decoration: none; font-size: .88rem; font-weight: 450; transition: background .15s; }
.nav-link .icon { color: #97bab7; width: 20px; height: 20px; flex-basis: 20px; }
.nav-link:hover { background: rgba(255,255,255,.07); }
.nav-link.active { background: #baeae5; color: #182442; font-weight: 650; }
.nav-link.active .icon { color: #21335c; }
.nav-count { font-size: .67rem; min-width: 20px; line-height: 20px; border-radius: 6px; text-align: center; background: rgba(255,255,255,.14); margin-left: auto; }
.nav-link.active .nav-count { background: rgba(20, 30, 55, .12); }
.sidebar-bottom { margin-top: auto; padding: 28px 11px 0; }
.control-note { display: flex; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: #c2e1de; font-size: .79rem; line-height: 1.6; }
.control-note .icon { width: 27px; height: 27px; color: #89d0c9; flex-basis: 27px; margin-top: 4px; }
.sidebar-bottom p { font-size: .7rem; color: #a6c1be; margin: 22px 0 0; }
.sidebar-bottom small { display: block; color: #a6c1be; font-size: .64rem; margin-top: 3px; }
.workspace-shell { grid-column: 2; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 88px; padding: 18px 38px; border-bottom: 1px solid #dce7e6; background: rgba(255,254,250,.9); }
.office-location { display: flex; align-items: center; gap: 9px; font-size: .81rem; color: var(--muted); }
.office-dot { width: 7px; height: 7px; border-radius: 50%; background: #68aaa4; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.user-label { text-align: right; line-height: 1.3; max-width: 210px; overflow-wrap: anywhere; }
.user-label strong { font-size: .81rem; display: block; }
.user-label small { color: var(--muted); font-size: .68rem; display: block; margin-top: 4px; }
.refresh-button, .signout-button { font-size: .74rem; color: var(--muted); border: 0; padding: 8px; background: transparent; border-radius: 6px; }
.refresh-button:hover, .signout-button:hover { background: #e5f0ef; color: var(--forest); }
.signout-button { border-left: 1px solid var(--line); border-radius: 0; padding-left: 18px; }
.menu-button { display: none; border: 0; padding: 8px; background: transparent; color: var(--forest); border-radius: 8px; }
.main-content { max-width: 1530px; margin: 0 auto; padding: 37px 38px 48px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-description { color: var(--muted); max-width: 710px; font-size: .95rem; line-height: 1.7; margin: 0; }
.heading-actions { flex: 0 0 auto; }
.workspace-footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 18px 38px; color: #7e918f; font-size: .69rem; }
.narrow-panel { max-width: 870px; }

.office-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 25px; border-radius: 20px; padding: 34px 39px; margin-bottom: 24px; background: var(--forest); color: #fffdf1; overflow: hidden; position: relative; }
.office-hero::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(138, 216, 208, .13); right: -70px; top: -130px; pointer-events: none; }
.office-hero h2 { font-size: clamp(1.6rem, 2.5vw, 2.3rem); line-height: 1.15; letter-spacing: -.04em; margin: 18px 0; }
.office-hero p { color: #c3d6d4; font-size: .86rem; max-width: 390px; line-height: 1.8; margin-bottom: 16px; }
.office-hero a { color: #ade9e3; font-size: .85rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.hero-workflow { display: flex; align-items: center; justify-content: center; position: relative; }
.hero-workflow > div { display: flex; flex-direction: column; align-items: center; min-width: 92px; text-align: center; }
.hero-workflow .icon { flex: none; width: 56px; height: 56px; padding: 16px; background: rgba(189, 236, 231, .1); border: 1px solid rgba(159, 233, 225, .27); border-radius: 17px; color: #ace9e3; margin-bottom: 13px; }
.hero-workflow span:not(.workflow-line) { font-size: .9rem; font-weight: 600; }
.hero-workflow small { display: block; font-size: .65rem; color: #a3bfbc; margin-top: 4px; }
.workflow-line { width: 40px; min-width: 10px; height: 1px; background: rgba(164, 223, 217, .4); align-self: flex-start; margin-top: 29px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { position: relative; min-width: 0; background: var(--white); border: 1px solid var(--line); padding: 21px 23px; border-radius: 14px; text-decoration: none; box-shadow: var(--shadow); }
.stat-card > span { display: block; font-size: .77rem; color: var(--muted); margin-bottom: 6px; }
.stat-card > strong { display: block; font-size: 2.15rem; font-weight: 600; line-height: 1.3; color: var(--forest); letter-spacing: -.04em; }
.stat-card small { font-size: 1rem; font-weight: 400; color: #869a98; letter-spacing: 0; }
.stat-card > .icon { position: absolute; right: 23px; bottom: 29px; color: #85afab; width: 24px; height: 24px; }
.stat-card:hover { border-color: #a2cdc9; }
.office-columns { grid-template-columns: 1fr 1.15fr; }
.next-steps { display: grid; }
.next-step { display: flex; gap: 15px; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; }
.step-number { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; background: #e2f1f0; color: #498983; font-size: .8rem; flex: 0 0 31px; margin-top: 3px; }
.next-step strong { font-size: .96rem; color: var(--ink); }
.next-step small { display: block; font-size: .82rem; color: var(--muted); margin: 5px 0 8px; line-height: 1.65; }
.next-step .text-link { font-size: .8rem; }
.record-list { display: grid; }
.record-row { display: flex; align-items: flex-start; gap: 13px; padding: 17px 0; border-top: 1px solid var(--line); text-decoration: none; min-width: 0; }
.row-icon { background: #e5f1f0; color: #609791; width: 40px; height: 42px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 11px; }
.row-icon .icon { width: 19px; height: 19px; }
.row-main { min-width: 0; flex: 1; }
.row-main > strong { color: var(--ink); font-size: .89rem; display: block; overflow-wrap: anywhere; }
.row-main > small { color: var(--muted); display: block; font-size: .73rem; margin-top: 4px; }
.row-main > .badge { margin-top: 9px; }
.row-date { color: #7e9290; font-size: .67rem; margin-top: 3px; white-space: nowrap; }

.employee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.employee-card { background: var(--white); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.employee-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 23px; }
.employee-avatar { width: 49px; height: 51px; border-radius: 13px; background: #dff0ee; color: #5c9993; display: grid; place-items: center; }
.employee-avatar .icon { width: 25px; height: 25px; }
.employee-card h2 { font-size: 1.26rem; overflow-wrap: anywhere; }
.employee-card h2 a { text-decoration: none; color: var(--ink); }
.employee-card > p:not(.eyebrow) { color: var(--muted); font-size: .86rem; line-height: 1.75; flex: 1; }
.employee-meta { display: grid; gap: 8px; padding-bottom: 21px; }
.employee-meta > span { display: flex; gap: 8px; font-size: .76rem; color: #5e7976; }
.employee-meta .icon { width: 17px; height: 17px; flex-basis: 17px; margin-top: 2px; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 17px; margin-top: auto; text-decoration: none; font-size: .86rem; font-weight: 600; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.role-choice { position: relative; cursor: pointer; }
.role-choice input { position: absolute; top: 18px; right: 17px; }
.role-choice > span { display: flex; flex-direction: column; gap: 8px; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.role-choice:has(input:checked) > span { border: 2px solid #61a19b; background: #e3f3f1; padding: 19px; }
.role-choice > span > strong { font-size: 1rem; }
.role-choice small { color: var(--muted); font-size: .82rem; line-height: 1.65; }
.role-icon { display: flex; color: #5e9791; margin: 2px 0 10px; }
.role-icon .icon { width: 26px; height: 26px; }

.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.filter-bar label { display: flex; align-items: center; gap: 11px; font-size: .85rem; color: var(--muted); }
.filter-bar select { padding: 11px 35px 11px 13px; min-height: 45px; max-width: 300px; background: var(--white); border: 1px solid #cadddb; border-radius: 9px; color: var(--ink); font-size: .85rem; }
.filter-bar > span { font-size: .78rem; color: var(--muted); margin-left: auto; }
.table-panel { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .82rem; }
th { background: #e7f2f1; color: #64827f; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 16px 20px; white-space: nowrap; }
td { padding: 21px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.table-title { display: inline-flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); text-decoration: none; min-width: 180px; max-width: 330px; overflow-wrap: anywhere; }
.table-title:hover { color: var(--green); text-decoration: underline; }
.table-title .icon { color: #71a09b; width: 19px; height: 19px; flex-basis: 19px; margin-top: 3px; }
.cell-note { display: block; margin-top: 7px; font-size: .71rem; color: var(--muted); }
.file-drop { display: flex; align-items: center; text-align: center; padding: 29px 22px; background: #ebf6f5; border: 1px dashed #9ccac5; border-radius: 13px; margin-top: 28px; }
.file-drop > .icon { width: 38px; height: 38px; color: #6ca7a1; margin-bottom: 9px; }
.file-drop > span { font-weight: 400; color: var(--muted); font-size: .85rem; }
.file-drop input { margin-top: 12px; max-width: 450px; font-size: .86rem !important; background: var(--white) !important; }
.file-drop input::file-selector-button { border: 0; background: #d6ebe9; color: var(--forest); padding: 6px 12px; margin-right: 12px; border-radius: 5px; font-family: inherit; cursor: pointer; }
.file-drop small { max-width: 520px; margin-top: 7px; }
.task-list { display: grid; gap: 18px; }
.task-card-title { display: flex; align-items: center; gap: 15px; }
.task-card-title > div { flex: 1; min-width: 0; }
.task-card-title .eyebrow { margin-bottom: 5px; }
.task-card h2 { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.task-card h2 a { color: var(--ink); text-decoration: none; }
.task-excerpt { font-size: .89rem; color: var(--muted); margin: 19px 0; max-width: 860px; line-height: 1.75; }
.task-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 15px; font-size: .76rem; color: var(--muted); }
.task-card-foot > span:last-child { display: flex; gap: 20px; align-items: center; }
.questions-box { background: #fcf5e4; border: 1px solid #e9dfc5; border-radius: 11px; padding: 20px; margin-top: 25px; }
.questions-box ul { padding-left: 20px; margin: 15px 0; color: #715b30; font-size: .91rem; }
.questions-box li { margin: 9px 0; }
.review-changes { margin-top: 23px; border-top: 1px solid var(--line); padding-top: 18px; font-size: .85rem; }
.review-changes summary, .instructions-details summary { color: var(--green); font-weight: 600; cursor: pointer; }
.review-changes form { margin-top: 20px; }
.instructions-details { margin-top: 20px; font-size: .86rem; }
.instructions-details p { margin: 15px 0 0; color: var(--muted); }
.source-trace { padding-top: 19px; margin-top: 21px; border-top: 1px solid var(--line); }
.source-trace > .fine-print { margin: 0 0 13px; }
.source-details { margin: 13px 0 0; padding: 12px 14px; background: #eff8f7; border: 1px solid #d5e5e3; border-radius: 10px; }
.source-details summary { cursor: pointer; color: var(--green); font-weight: 600; font-size: .85rem; overflow-wrap: anywhere; }
.source-details .document-preview { margin-top: 15px; padding: 13px; font-size: .85rem; max-height: 520px; }
.source-details .fine-print { margin-top: 12px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card { display: flex; flex-direction: column; }
.project-symbol { display: inline-grid; place-items: center; width: 45px; height: 47px; color: #5b9a94; background: #e2f1f0; border-radius: 12px; margin-bottom: 23px; }
.project-card h2 a { text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.project-card p { font-size: .85rem; }
.project-totals { display: flex; flex-wrap: wrap; gap: 14px; font-size: .74rem; color: var(--muted); margin: 10px 0 21px; }
.knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-topline .eyebrow { margin: 0; }
.knowledge-card h2 { overflow-wrap: anywhere; }
.knowledge-card .prose { font-size: .9rem; }
.knowledge-card form { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); }
.knowledge-card form .button { margin-top: 15px; }
.person-avatar { display: grid; place-items: center; width: 40px; height: 42px; border-radius: 11px; background: #d6ebe9; color: #43736e; flex: 0 0 40px; }
.person-role { display: block; margin-top: 8px; color: #6b8683; font-size: .74rem; }
.access-control { margin-top: 16px; }
.access-control > summary { list-style: none; cursor: pointer; min-height: 43px; padding: 10px 15px; font-size: .83rem; }
.access-control > summary::-webkit-details-marker { display: none; }
.access-explanation { margin-top: 14px; padding: 16px; border: 1px solid #dedccc; background: #ebf4f6; border-radius: 11px; }
.access-explanation p { font-size: .85rem; color: #6e634b; }
.invite-result { padding: 22px; background: #e2f3f1; border: 1px solid #bde1de; border-radius: 12px; margin-top: 25px; }
.invite-result p { font-size: .85rem; }
.invite-result .field { margin-bottom: 15px; }
.invite-result input { font-size: .8rem !important; }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.activity-list li:last-child { border-bottom: 0; }
.activity-dot { width: 36px; height: 37px; flex: 0 0 36px; border-radius: 50%; background: #e3f1f0; color: #69a19b; display: grid; place-items: center; }
.activity-dot .icon { width: 18px; height: 18px; }
.activity-list li > div { flex: 1; min-width: 0; }
.activity-title { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; font-size: .95rem; text-transform: capitalize; }
.activity-title time { color: #71928f; font-size: .72rem; text-transform: none; flex: 0 0 auto; }
.activity-list p { font-size: .86rem; margin: 7px 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.activity-list small { font-size: .74rem; color: #7c9794; }

.auth-layout { display: grid; grid-template-columns: .95fr 1.05fr; min-height: 100vh; }
.auth-story { color: white; background: var(--forest); padding: 47px 55px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-story::after { content: ''; position: absolute; width: 580px; height: 580px; bottom: -310px; right: -230px; border-radius: 100%; border: 1px solid rgba(168, 229, 223, .16); pointer-events: none; }
.auth-story-main { margin: auto 0; padding: 70px 0; position: relative; z-index: 1; }
.auth-story-main h1 { font-size: clamp(2.4rem, 4.5vw, 4.3rem); line-height: 1.13; letter-spacing: -.05em; margin: 23px 0; max-width: 590px; }
.auth-story-main > p { max-width: 410px; color: #bcd0ce; font-size: 1rem; line-height: 1.85; }
.auth-benefits { display: grid; gap: 20px; margin-top: 42px; max-width: 425px; }
.auth-benefits > div { display: flex; gap: 16px; align-items: flex-start; font-size: .87rem; color: #c8e4e1; }
.auth-benefits .icon { color: #86cfc7; }
.auth-domain { color: #b4d2cf; font-size: .8rem; margin: 0; position: relative; z-index: 1; }
.auth-domain span { display: block; font-size: .69rem; color: #92b2af; margin-top: 4px; }
.auth-content { display: flex; align-items: center; justify-content: center; padding: 55px 35px; }
.auth-card { width: 100%; max-width: 450px; }
.auth-card h2 { font-size: 1.85rem; letter-spacing: -.04em; margin-bottom: 15px; }
.auth-card > .muted { font-size: .91rem; line-height: 1.8; margin-bottom: 30px; }
.auth-card .field { margin-bottom: 18px; }
.auth-card form .button { margin-top: 10px; }
.auth-switch { text-align: center; font-size: .85rem; color: var(--muted); margin: 23px 0; }
.auth-switch a { margin-left: 5px; font-weight: 600; }
.auth-card .notice { margin-top: 28px; font-size: .79rem; }

@media (min-width: 1700px) { .main-content { padding-top: 48px; } .office-hero { padding: 44px; } }
@media (max-width: 1250px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .sidebar { width: 220px; padding-left: 15px; padding-right: 15px; }
  .main-content { padding: 30px 27px 40px; }
  .topbar { padding: 18px 27px; }
  .employee-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-hero { padding: 30px; }
  .hero-workflow > div { min-width: 76px; }
  .workflow-line { width: 25px; }
  .hero-workflow small { font-size: .6rem; }
  .stat-card { padding: 18px; }
  .stat-card > .icon { right: 17px; bottom: 27px; }
  .detail-columns { grid-template-columns: minmax(0, 1.6fr) minmax(265px, 1fr); gap: 20px; }
  .panel { padding: 22px; }
  .table-panel { padding: 0; }
  .heading-actions .button { max-width: 240px; }
}
@media (max-width: 1000px) {
  .office-hero { grid-template-columns: 1fr; }
  .hero-workflow { justify-content: flex-start; margin: 8px 0 0 -10px; }
  .hero-workflow > div { min-width: 110px; }
  .workflow-line { width: 50px; }
  .hero-workflow small { font-size: .65rem; }
  .hero-workflow .icon { width: 45px; height: 45px; padding: 12px; margin-bottom: 8px; }
  .workflow-line { margin-top: 23px; }
  .two-columns, .detail-columns, .office-columns { grid-template-columns: 1fr; }
  .detail-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knowledge-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 18px; }
  .auth-story { padding: 38px; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { top: 74px; transform: translateX(-100%); visibility: hidden; transition: transform .2s; width: 250px; box-shadow: 10px 0 35px rgba(15, 22, 41, .17); padding-top: 25px; }
  .navigation-open .sidebar { transform: translateX(0); visibility: visible; }
  .navigation-open .workspace-shell { margin-left: 0; }
  .workspace-shell { width: 100%; }
  .menu-button { display: inline-flex; padding: 9px; flex: 0 0 auto; }
  .navigation-open .menu-button { position: relative; z-index: 45; background: #cfeae7; }
  .topbar { padding: 13px 18px; min-height: 74px; gap: 12px; position: sticky; top: 0; z-index: 30; backdrop-filter: blur(10px); }
  .office-location { display: none; }
  .topbar-actions { flex: 1; justify-content: flex-end; gap: 12px; }
  .user-label { max-width: 170px; }
  .refresh-button { font-size: .72rem; }
  .signout-button { padding-left: 12px; font-size: .72rem; }
  .main-content { padding: 29px 20px 40px; }
  .workspace-footer { padding: 17px 20px; }
  .office-hero { padding: 28px; }
  .office-hero h2 { font-size: 2rem; }
  .office-hero p { max-width: 460px; }
  .hero-workflow { margin-left: -8px; }
  .hero-workflow > div { min-width: 95px; }
  .workflow-line { width: 40px; }
  .page-heading { margin-bottom: 24px; }
  .page-description { font-size: .91rem; }
  .heading-actions { width: 100%; }
  .heading-actions .button { max-width: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { padding: 28px 30px; }
  .auth-story-main { padding: 35px 0 15px; }
  .auth-story-main h1 { font-size: 2.35rem; }
  .auth-story-main > p { margin-bottom: 0; max-width: 570px; font-size: .9rem; }
  .auth-benefits, .auth-domain { display: none; }
  .auth-content { padding: 35px 25px 45px; }
  .auth-card { max-width: 520px; }
  .auth-card h2 { font-size: 1.65rem; }
  .filter-bar { gap: 12px; }
  .filter-bar label { flex: 1 1 auto; }
  .filter-bar select { max-width: 240px; width: 100%; }
  .filter-bar > span { flex-basis: 100%; margin: 0; }
  .table-scroll th, .table-scroll td { padding-left: 16px; padding-right: 16px; }
  .activity-title { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media (max-width: 520px) {
  .main-content { padding: 26px 16px 35px; }
  h1 { font-size: 1.85rem; }
  .employee-grid, .project-grid, .role-grid, .detail-aside, .form-grid { grid-template-columns: 1fr; }
  .employee-grid, .project-grid { gap: 16px; }
  .role-grid { gap: 11px; }
  .role-choice > span { padding: 17px; }
  .role-choice:has(input:checked) > span { padding: 16px; }
  .role-choice .role-icon { margin-bottom: 0; }
  .role-choice small { padding-right: 13px; }
  .office-hero { padding: 25px; border-radius: 16px; }
  .office-hero h2 { font-size: 1.85rem; }
  .hero-workflow { justify-content: space-between; gap: 0; margin-left: -7px; margin-right: -7px; }
  .hero-workflow > div { min-width: 74px; }
  .hero-workflow small { font-size: .58rem; }
  .hero-workflow span:not(.workflow-line) { font-size: .83rem; }
  .workflow-line { min-width: 7px; width: 20px; }
  .stats-grid { gap: 11px; }
  .stat-card { padding: 17px; }
  .stat-card > span { font-size: .72rem; }
  .stat-card > strong { font-size: 1.85rem; }
  .stat-card > .icon { width: 21px; height: 21px; right: 15px; bottom: 24px; }
  .panel, .employee-card { padding: 21px; border-radius: 14px; }
  .table-panel { padding: 0; }
  .section-heading { align-items: flex-start; gap: 12px; }
  .section-heading > .muted { max-width: 130px; text-align: right; font-size: .7rem; }
  .row-date { display: none; }
  .record-row { gap: 10px; }
  .row-main > strong { font-size: .86rem; }
  .task-card-title { flex-wrap: wrap; gap: 12px; }
  .task-card-title > .badge { margin-left: 53px; }
  .task-card-title h2 { font-size: 1.1rem; }
  .task-card-foot > span:last-child { width: 100%; justify-content: space-between; }
  .card-topline { align-items: flex-start; }
  .card-topline .eyebrow { max-width: 55%; }
  .document-preview { padding: 16px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .button { width: 100%; }
  .file-drop { padding: 23px 15px; }
  .file-drop input { padding: 10px !important; }
  .notice { padding: 16px; }
  .filter-bar label { flex-basis: 100%; }
  .filter-bar select { max-width: none; min-width: 0; }
  .topbar { padding: 12px; gap: 8px; }
  .topbar-actions { gap: 6px; }
  .user-label { max-width: 130px; }
  .signout-button { padding-left: 8px; }
  .toast { width: calc(100vw - 24px); bottom: 14px; padding: 13px 17px; font-size: .85rem; }
  .activity-list li { gap: 13px; }
  .empty-state { padding: 40px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Guided teaching questions */
.teach-group { margin-bottom: 4px; }
.teach-step > label { font-weight: 600; }
.teach-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.teach-chip { border: 1px solid #b9d8d5; background: #ecf7f6; color: var(--ink); border-radius: 999px; padding: 7px 13px; font-size: .84rem; font-weight: 500; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.teach-chip:hover { background: #d6eeec; }
.teach-chip:active { transform: scale(.97); }
.teach-chip:focus-visible { outline: 2px solid #61a19b; outline-offset: 2px; }

/* Live office floor */
.live-office { background: linear-gradient(180deg, #f4faf9 0%, #e6f3f2 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 10px; margin-bottom: 26px; box-shadow: var(--shadow); overflow: hidden; }
.live-office-empty { padding: 32px; }
.live-office-empty h2, .live-office-head h2 { margin: 4px 0 6px; }
.live-office-empty p { color: var(--muted); max-width: 560px; }
.live-office-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.live-office-head .muted { margin: 0; }
.live-legend { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 4px 0 0; padding: 0; font-size: .82rem; color: var(--muted); }
.live-legend li { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-ready { background: #4a948c; }
.legend-review { background: #d29a2e; }
.legend-duties { background: #8b95a3; }
.legend-paper { width: 13px; height: 10px; border: 1.5px solid #467e78; border-radius: 2px; background: #fff; display: inline-block; }
.live-office-stage { width: 100%; }
.office-floor { display: block; width: 100%; height: auto; max-height: 560px; overflow: visible; }
.floor-base { fill: #e9e2d2; stroke: #d6ccb7; stroke-width: 1.5; }
.floor-tiles line { stroke: #ddd4c1; stroke-width: 1.2; }
.floor-wall { stroke: #c2dad7; stroke-width: 1.2; }
.wall-left { fill: #d6e9e7; }
.wall-right { fill: #e2f1f0; }
.floor-window { fill: #cfe6ef; stroke: #b5d1ce; stroke-width: 2; }
.floor-window-bar { stroke: #b5d1ce; stroke-width: 2; }
.desk { cursor: pointer; outline: none; }
.desk-shadow { fill: rgba(60, 50, 30, .12); }
.desk-top { fill: #c49a6c; }
.desk-left { fill: #a37b52; }
.desk-right { fill: #8d6844; }
.desk-monitor { fill: #1e2e53; stroke: #16213c; stroke-width: 1.2; }
.desk-monitor-side { fill: #16213c; }
.desk-stand { fill: #4b5b59; }
.desk-screen { fill: #8ad5cd; }
.desk-paper { fill: #fffdf6; stroke: #d9cfba; stroke-width: 1; }
.person-head { stroke: rgba(0, 0, 0, .08); stroke-width: 1; }
.person-initials { fill: #fff; font-size: 11px; font-weight: 700; pointer-events: none; }
.role-dc .person-head, .role-dc .person-body { fill: #298077; }
.role-dr .person-head, .role-dr .person-body { fill: #b46a3c; }
.role-pl .person-head, .role-pl .person-body { fill: #4f6fae; }
.role-qa .person-head, .role-qa .person-body { fill: #8a5aa8; }
.role-sv .person-head, .role-sv .person-body { fill: #b8862b; }
.role-cu .person-head, .role-cu .person-body { fill: #5f6b73; }
.desk-bubble-link { cursor: pointer; }
.desk-bubble rect, .desk-bubble polygon { fill: #fffefa; stroke: #ccdddb; stroke-width: 1.2; }
.desk-bubble polygon { stroke: none; }
.desk-bubble text { fill: var(--ink); }
.bubble-name { font-size: 12.5px; font-weight: 700; }
.bubble-status { font-size: 11.5px; font-weight: 500; fill: var(--muted) !important; }
.bubble-dot { fill: #4a948c; }
.desk-review .bubble-dot { fill: #d29a2e; }
.desk-review .desk-bubble rect { stroke: #e2b86a; fill: #fff8e8; }
.desk-review .desk-bubble polygon { fill: #fff8e8; }
.desk-duties .bubble-dot, .desk-paused .bubble-dot { fill: #8b95a3; }
.desk-duties .person-head, .desk-duties .person-body, .desk-paused .person-head, .desk-paused .person-body { opacity: .55; }
.desk-ready .desk-screen { fill: #8ad5cd; }
.desk-review .desk-screen { fill: #f0c463; }
.desk-duties .desk-screen, .desk-paused .desk-screen { fill: #9aa3a0; }
.desk-name { fill: var(--ink); font-size: 13px; font-weight: 700; }
.desk:hover .desk-top, .desk:focus-visible .desk-top { fill: #d4ab7c; }
.desk:focus-visible .desk-bubble rect { stroke: var(--green); stroke-width: 2.5; }
.desk:hover .desk-name { text-decoration: underline; }
.desk-figure { animation: desk-breathe 4s ease-in-out infinite; transform-box: fill-box; }
.desk-delay-1 { animation-delay: -1s; }
.desk-delay-2 { animation-delay: -2s; }
.desk-delay-3 { animation-delay: -3s; }
.desk-ready .desk-screen { animation: screen-glow 3.2s ease-in-out infinite; }
.desk-review .bubble-dot { animation: review-pulse 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.desk-review .desk-bubble { animation: bubble-bob 2.2s ease-in-out infinite; }
.handoff-path { fill: none; stroke: #61a19b; stroke-width: 2; stroke-dasharray: 6 7; animation: dash-flow 1.2s linear infinite; opacity: .8; }
.flying-paper rect { fill: #fff; stroke: #467e78; stroke-width: 1.5; }
.flying-paper path { stroke: #87b3ae; stroke-width: 1.3; }
@keyframes desk-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes screen-glow { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
@keyframes review-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.45); } }
@keyframes bubble-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes dash-flow { to { stroke-dashoffset: -26; } }
@media (max-width: 760px) { .live-office { padding: 18px 12px 6px; } .live-office-head { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .desk-figure, .desk-screen, .bubble-dot, .desk-bubble, .handoff-path { animation: none !important; } }
.live-desk-list { display: none; list-style: none; margin: 8px 0 12px; padding: 0; }
.live-desk-list a { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.live-desk-list a span:last-child { margin-left: auto; color: var(--muted); font-size: .85rem; }
.live-desk-list .desk-ready .legend-dot { background: #4a948c; }
.live-desk-list .desk-review .legend-dot { background: #d29a2e; }
.live-desk-list .desk-duties .legend-dot, .live-desk-list .desk-paused .legend-dot { background: #8b95a3; }
@media (max-width: 760px) { .live-desk-list { display: block; } }

/* Training library */
.training-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 24px; }
.training-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.training-card:hover { border-color: #82bcb6; transform: translateY(-1px); }
.training-card span { color: var(--muted); font-size: .84rem; }
.training-body { line-height: 1.7; }
.training-body h2 { margin-top: 0; }
.training-body h3, .training-body h4 { margin: 26px 0 8px; }
.training-body ul, .training-body ol { padding-left: 22px; }
.md-table-wrap { overflow-x: auto; margin: 12px 0 18px; }
.md-table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.md-table th { background: #e6f3f2; }
.training-group { margin-bottom: 10px; }
.training-group h2 { margin: 6px 0 4px; }
.training-group > .muted { margin: 0 0 14px; }
.brand-word { display: block; height: 30px; width: auto; }

/* Platform owner: all company offices */
.platform-table td { vertical-align: top; }
@media (max-width: 760px) {
  .platform-panel .table-scroll { overflow: visible; }
  .platform-table, .platform-table tbody { display: block; width: 100%; }
  .platform-table thead { display: none; }
  .platform-table tr { display: grid; gap: 6px; padding: 16px; border-bottom: 1px solid var(--line, #dfe7e8); }
  .platform-table td { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
}
.platform-panel { margin-top: 24px; }
.platform-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.client-form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.client-form .form-error, .client-form .form-progress, .client-form button { grid-column: 1 / -1; justify-self: start; }

/* Public plans on the home page */
.plans { grid-column: 1 / -1; padding: 64px 55px 72px; background: var(--cream); border-top: 1px solid var(--line); }
.plans-head { max-width: 640px; margin-bottom: 28px; }
.plans-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; margin: 8px 0 10px; }
.plans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.plan-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.plan-featured { border-color: var(--green); box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.plan-card h3 { margin: 0; font-size: 1.1rem; }
.plan-count { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--forest); letter-spacing: -.02em; }
.plan-note { margin: 0; color: var(--muted, #5d6e6c); font-size: .9rem; line-height: 1.5; }
.plan-card ul, .plans-all { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.plan-card li, .plans-all li { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; line-height: 1.45; }
.plan-card li .icon, .plans-all li .icon { flex: none; width: 18px; height: 18px; color: var(--green); }
.plan-price { margin: auto 0 0; padding-top: 10px; font-weight: 600; font-size: .9rem; }
.plan-card .button { justify-content: center; }
.plans-all { margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plans-link { background: none; border: 0; padding: 0; margin-top: 4px; display: block; color: #a8e5df; font: inherit; font-size: .75rem; cursor: pointer; text-decoration: underline; }
@media (max-width: 1100px) { .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans { padding: 40px 18px 48px; } .plans-grid { grid-template-columns: 1fr; } }
.sample-panel { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px; }
.sample-panel h2 { margin: 6px 0; }
.sample-panel p.muted { max-width: 640px; margin: 0; }
.sample-note { color: #84571a; }
.button-danger { background: white; color: #8b4133; border: 1px solid #e5b9ad; }
.button-danger:hover { background: #f8e8e1; }
