:root {
  color-scheme: light;
  --forest: #005e34;
  --forest-deep: #004d2b;
  --lime: #c2fb69;
  --ink: #17221c;
  --muted: #727b76;
  --line: #e5eae6;
  --surface: #fff;
  --soft: #f3f7f3;
  --warning: #80552a;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; background: #eff2eb; color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .58; }
button, a { color: inherit; }
button { border: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #77ac49; outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #81b95a; outline-offset: 1px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.4; font-weight: 650; letter-spacing: -.6px; }
h2 { font-size: 18px; line-height: 1.5; font-weight: 650; }
h3 { font-size: 15px; line-height: 1.6; }
p { line-height: 1.8; }
small { font-size: 12px; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.7; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.icon-green { filter: invert(27%) sepia(71%) saturate(825%) hue-rotate(112deg) brightness(83%) contrast(110%); }
.icon-white { filter: brightness(0) invert(1); }
.app-stage { min-width: 0; padding: 30px; display: flex; justify-content: center; align-items: flex-start; }
.app-window { background: #fff; display: flex; flex-direction: column; width: min(100%, 1200px); height: calc(100dvh - 60px); min-height: 600px; max-height: 1100px; border: 1px solid #dce4dc; border-radius: 22px; overflow: hidden; box-shadow: 0 16px 50px #17331c0c; }
.app-window.customer-mode { width: 430px; max-height: 950px; }
.app-header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; background: #fff; border-bottom: 1px solid #eef1ec; flex: 0 0 auto; }
.app-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { width: 142px; height: 48px; object-fit: contain; object-position: left center; }
.header-name { font-size: 13px; font-weight: 650; white-space: nowrap; }
.customer-head { display: flex; align-items: center; gap: 8px; }
.customer-mode .app-header { padding: 9px 18px; min-height: 60px; gap: 8px; }
.customer-mode .brand-logo { width: 132px; height: 38px; }
.app-main { overflow: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; scrollbar-width: thin; scrollbar-color: #ccd8ca transparent; outline: none; }
.app-window:not(.customer-mode) .app-main { padding: 28px; background: #f6f8f5; }
.bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #fff; border-top: 1px solid var(--line); padding: 7px 8px max(9px, env(safe-area-inset-bottom)); min-height: 72px; flex-shrink: 0; }
.nav-item { background: none; color: #747c77; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 51px; border-radius: 10px; position: relative; padding: 4px; }
.nav-item .icon { width: 24px; height: 24px; opacity: .65; }
.nav-label { font-size: 12px; line-height: 1.5; }
.nav-item.active { color: var(--forest); font-weight: 650; }
.nav-item.active .icon { filter: invert(27%) sepia(71%) saturate(825%) hue-rotate(112deg) brightness(83%) contrast(110%); opacity: 1; }
.nav-item.active::after { content: ""; width: 14px; height: 3px; border-radius: 3px; background: #84b653; margin-top: 1px; }
.nav-item:not(.active)::after { content: ""; height: 3px; margin-top: 1px; }
.customer-page { background: #fff; }
.hero { background: var(--forest); color: #fff; padding: 24px 22px 40px; }
.hero-label { font-size: 16px; color: #e0ebdf; line-height: 1.6; margin-bottom: 9px; }
.hero-title { color: #fff; font-size: 28px; line-height: 1.45; letter-spacing: -.65px; margin-bottom: 19px; font-weight: 650; }
.hero-facts { display: grid; gap: 13px; }
.fact-line { display: flex; align-items: center; gap: 11px; line-height: 1.6; font-size: 15px; }
.fact-line > span { color: #ccded2; }
.fact-line strong { font-size: 16px; font-weight: 600; }
.fact-line .icon { opacity: .85; }
.hero .icon { filter: brightness(0) invert(1); }
.hero-button .icon { filter: none; }
.next-step { display: flex; align-items: flex-start; gap: 11px; margin-top: 21px; padding-top: 18px; border-top: 1px solid #ffffff42; font-size: 15px; line-height: 1.75; }
.next-step > .icon { margin-top: 3px; }
.hero-button, .btn-lime { display: flex; width: 100%; align-items: center; justify-content: center; gap: 11px; background: var(--lime); color: #063e23; border-radius: 30px; min-height: 47px; margin-top: 17px; font-size: 17px; font-weight: 650; padding: 10px 16px; }
.hero-button:active, .btn-lime:active { background: #b3ed5b; transform: scale(.985); }
.customer-surface { position: relative; z-index: 1; border-radius: 25px 25px 0 0; background: #fff; margin-top: -18px; padding: 0 22px; }
.detail-section { border-bottom: 1px solid var(--line); padding: 22px 0; }
.detail-section:last-child { border-bottom: 0; }
.section-trigger { display: flex; align-items: center; width: 100%; min-height: 44px; gap: 10px; background: none; text-align: left; padding: 0; }
.section-trigger > .icon:last-child { margin-left: auto; width: 20px; height: 20px; opacity: .75; }
.progress-row { display: flex; align-items: center; min-height: 28px; gap: 12px; }
.progress-row .muted { border-left: 1px solid #dadeda; padding-left: 12px; font-size: 14px; }
.progress-row > .icon:last-child { margin-left: auto; }
.service-project { font-size: 18px; font-weight: 600; line-height: 1.65; margin-top: 7px; }
.customer-page > .page-head, .customer-page > .section, .customer-page > .notice { margin: 22px; }
.customer-page > .page-head h1 { font-size: 25px; }
.customer-page .record-item { margin: 0 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.record-item h3 { margin: 9px 0 5px; font-size: 18px; }
.record-item .action-row { margin-top: 12px; }
.profile-card { padding: 26px 22px; display: flex; align-items: center; gap: 15px; }
.profile-avatar { height: 57px; width: 57px; display: flex; align-items: center; justify-content: center; color: var(--forest); background: #edf5e7; border-radius: 50%; font-size: 24px; font-weight: 500; flex-shrink: 0; }
.profile-card h1 { font-size: 24px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; padding: 18px 0; }
.detail-pair { display: flex; flex-direction: column; gap: 6px; }
.detail-pair > span:first-child { color: var(--muted); font-size: 12px; }
.detail-value { font-size: 15px; line-height: 1.7; word-break: break-word; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.page-head p { margin-top: 7px; }
.eyebrow { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.7; color: var(--forest); margin-bottom: 5px; }
.section { margin-bottom: 22px; min-width: 0; }
.section:last-child { margin-bottom: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.section-head .muted { font-size: 12px; }
.card { background: #fff; border: 1px solid #e5ece2; border-radius: var(--radius); padding: 22px; min-width: 0; }
.stat { background: #fff; border: 1px solid #e3ebe1; border-radius: 16px; padding: 19px 20px; }
.stat > span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.stat strong { display: block; font-size: 27px; font-weight: 650; color: var(--forest); letter-spacing: -.5px; }
.stat strong small { color: var(--muted); font-weight: 400; font-size: 12px; letter-spacing: 0; }
.metric { text-align: right; }
.metric strong { color: var(--forest); font-size: 28px; font-weight: 600; display: block; line-height: 1.2; }
.metric span { color: var(--muted); font-size: 11px; }
.tag { display: inline-flex; align-items: center; font-size: 11px; line-height: 1.5; padding: 4px 9px; border-radius: 20px; color: #626a64; background: #f0f2ef; white-space: nowrap; font-weight: 500; }
.tag-green { background: #eaf5e7; color: var(--forest); }
.tag-warn { color: var(--warning); background: #faf0df; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; padding: 10px 16px; font-size: 13px; line-height: 1.6; font-weight: 600; border: 1px solid transparent; background: #f4f7f2; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary .icon { filter: brightness(0) invert(1); }
.btn-outline { border-color: #c9d9c4; background: #fff; color: var(--forest); }
.btn.hero-button { background: var(--lime); color: #063e23; border-radius: 30px; font-size: 17px; font-weight: 650; min-height: 46px; }
.btn.hero-button:hover { background: #b9f462; }
.btn.hero-button .icon { filter: none; }
.btn-quiet { background: transparent; color: #677569; }
.btn-small { font-size: 12px; padding: 9px 12px; min-height: 44px; }
.btn:active { transform: translateY(1px); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-outline:hover, .btn-quiet:hover { background: #eff5e9; }
.text-link { display: inline-flex; gap: 4px; align-items: center; color: var(--forest); min-height: 44px; padding: 7px 0; font-size: 12px; line-height: 1.6; text-align: left; background: none; }
.text-link:hover { color: #237b35; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row:last-child { padding-bottom: 0; }
.row-main { min-width: 0; flex: 1; }
.row-main strong { font-size: 14px; line-height: 1.7; }
.row-main > p { font-size: 13px; margin-top: 4px; }
.meta { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 5px; }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.row .action-row { justify-content: flex-end; }
.amount { color: var(--forest); font-weight: 650; }
.revoked-amount { color: #858b84; text-decoration: line-through; }
.filters { background: #fff; border: 1px solid #e3ebe1; border-radius: 14px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 18px; margin-bottom: 22px; }
.filters .field { flex: 1 1 120px; }
.filters .btn { flex-shrink: 0; }
.field { display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-width: 0; }
.field > span:first-child, .field legend { font-size: 12px; color: #667165; line-height: 1.7; }
.field input, .field select, .field textarea { display: block; border: 1px solid #d7e1d3; border-radius: 9px; padding: 10px 11px; width: 100%; min-height: 44px; background: #fff; color: var(--ink); line-height: 1.7; }
.field select { padding-right: 28px; }
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: #9aaba0; font-size: 12px; }
.field > strong { min-height: 44px; display: flex; align-items: center; font-size: 14px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 9px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 20px 0; }
.span-all { grid-column: 1 / -1; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.check { display: flex; align-items: center; gap: 9px; min-height: 44px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--forest); margin: 0; flex-shrink: 0; }
.check span { font-size: 12px; line-height: 1.7; }
.check small { margin-left: 5px; color: var(--muted); font-size: 11px; }
.empty { text-align: center; padding: 34px 18px; color: #849080; font-size: 13px; line-height: 1.9; }
.note, .notice { background: #f3f7ef; border-radius: 10px; padding: 13px 15px; color: #5b7257; font-size: 12px; line-height: 1.9; }
.note p { margin-top: 4px; }
.note + .section { margin-top: 22px; }
.toolbar { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 22px; }
.search-field { flex: 1; max-width: 460px; }
.client-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.person-card h2 { font-size: 19px; }
.person-card .section-head { margin-bottom: 15px; }
.person-card .action-row { margin-top: 18px; }
.person-card > p { margin: 10px 0; font-size: 13px; }
.client-goal { font-weight: 500; font-size: 14px; }
.person-card .note { margin-top: 13px; }
.person-card .note p { margin-top: 1px; }
.sheet { border: 1px solid #dfe7db; border-radius: 23px; padding: 0; width: min(600px,calc(100vw - 40px)); max-height: min(88dvh,920px); color: var(--ink); background: #fff; box-shadow: 0 24px 80px #17362326; overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: #14291c65; backdrop-filter: blur(2px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 23px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.sheet-head h2 { font-size: 19px; }
.icon-button { height: 44px; width: 44px; border-radius: 50%; display: flex; justify-content: center; align-items: center; background: #f1f5ee; color: #566452; flex-shrink: 0; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 23px; scrollbar-width: thin; }
.sheet-body .card { padding: 18px; }
.sheet-body > p, .sheet-body form > p { margin-bottom: 14px; }
.sheet-body > h3 { margin: 18px 0 9px; }
.dialog-footer { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 23px; display: flex; align-items: center; gap: 10px; }
.dialog-footer .btn-primary { flex: 1; }
.form-error { color: #a13e26; background: #fff2ec; font-size: 12px; line-height: 1.8; padding: 12px 14px; border-radius: 9px; margin-top: 14px; }
.form-error:empty { display: none; }
.review-score { font-size: 38px; color: var(--forest); line-height: 1.3; font-weight: 600; }
.review-score small { font-size: 15px; font-weight: 400; }
@media (max-width: 1250px) {
  .app-stage { padding: 24px; }
  .app-window { height: calc(100dvh - 48px); }
  .app-window:not(.customer-mode) .app-main { padding: 22px; }
  .client-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat { padding: 16px 13px; }
  .stat strong { font-size: 23px; }
}
@media (max-width: 1000px) {
  .app-stage { padding: 20px; }
  .app-window { height: calc(100dvh - 40px); }
  .page-head { flex-wrap: wrap; }
  .app-window:not(.customer-mode) .app-header { padding: 10px 18px; }
}
@media (max-width: 760px) {
  body { background: #fff; }
  .app-stage { padding: 0; display: block; }
  .app-window, .app-window.customer-mode { width: 100%; height: calc(100dvh - 45px); min-height: 440px; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  .app-header { min-height: 59px; }
  .app-window:not(.customer-mode) .app-main { padding: 21px 16px; }
  .app-window:not(.customer-mode) .brand-logo { width: 120px; height: 38px; }
  .header-name { font-size: 12px; }
  .bottom-nav { min-height: 66px; padding-top: 6px; }
  .nav-item { min-height: 49px; }
  .nav-item .icon { width: 23px; height: 23px; }
  .nav-label { font-size: 11px; }
  .hero { padding: 23px 22px 38px; }
  .hero-title { font-size: 28px; }
  .hero-label { font-size: 16px; }
  .fact-line { font-size: 14px; gap: 10px; }
  .fact-line strong { font-size: 15px; }
  .customer-surface { padding: 0 22px; }
  .detail-section { padding: 20px 0; }
  .progress-row { gap: 11px; }
  .progress-row .muted { font-size: 13px; }
  .card { padding: 18px; border-radius: 15px; }
  .client-grid { grid-template-columns: 1fr; gap: 15px; }
  .page-head { gap: 15px; margin-bottom: 19px; }
  .page-head h1 { font-size: 25px; }
  .page-head > .btn { width: 100%; }
  .page-head .action-row { width: 100%; }
  .page-head .action-row .btn { flex: 1; }
  .stat { padding: 16px; }
  .stat > span { font-size: 12px; margin-bottom: 9px; }
  .stat strong { font-size: 25px; }
  .section-head { margin-bottom: 14px; }
  .section-head h2 { font-size: 17px; }
  .row { flex-wrap: wrap; align-items: flex-start; gap: 9px; }
  .row .action-row { justify-content: flex-start; }
  .row-main { min-width: 200px; }
  .filters { padding: 15px; gap: 12px; }
  .filters .field { flex-basis: calc(50% - 8px); }
  .filters > .btn { flex: 1; }
  .sheet { margin: auto 0 0; max-height: 93dvh; width: 100%; max-width: 100%; border-radius: 23px 23px 0 0; border: 0; padding-bottom: env(safe-area-inset-bottom); }
  .sheet-head { padding: 16px 20px 12px; }
  .sheet-head h2 { font-size: 18px; }
  .sheet-body { padding: 20px; }
  .dialog-footer { position: sticky; bottom: -20px; background: #fff; padding-bottom: 20px; margin-bottom: -20px; }
  .form-grid { gap: 16px; }
}
@media (max-width: 380px) {
  .customer-mode .app-header { padding-left: 16px; padding-right: 16px; }
  .customer-mode .brand-logo { width: 115px; }
  .hero, .customer-surface { padding-left: 18px; padding-right: 18px; }
  .hero-title { font-size: 25px; }
  .progress-row .muted { font-size: 12px; }
  .form-grid, .checkbox-grid { grid-template-columns: 1fr; }
  .detail-grid { gap: 16px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:active, .hero-button:active, .btn-lime:active { transform: none; }
}
/* Match the selected compact green / white customer composition. */
.customer-mode .app-header { min-height: 54px; padding: 4px 20px; }
.customer-mode .brand-logo { width: 144px; height: 44px; }
.customer-mode .hero { padding: 18px 20px 30px; }
.customer-mode .hero-label { line-height: 1.5; margin-bottom: 7px; }
.customer-mode .hero-title { line-height: 1.3; margin-bottom: 10px; font-weight: 700; }
.customer-mode .hero-facts { gap: 6px; }
.customer-mode .fact-line { font-size: 13px; line-height: 1.5; }
.customer-mode .fact-line strong { font-size: 15px; }
.customer-mode .next-step { margin-top: 10px; padding-top: 10px; font-size: 14px; }
.customer-mode .btn.hero-button { min-height: 44px; padding: 8px 16px; margin-top: 9px; font-size: 16px; }
.customer-mode .detail-section { padding: 14px 0; }
.customer-mode .detail-section:first-child { padding: 8px 0; }
.customer-mode .progress-row { min-height: 44px; }
.customer-mode .service-project { font-size: 16px; line-height: 1.5; margin-top: 3px; }
.customer-mode .nav-item { gap: 3px; }
.customer-mode .nav-label { font-size: 13px; line-height: 1.4; }
.customer-mode .nav-item::after { display: none; }
@media (max-width: 380px) {
  .customer-mode .brand-logo { width: 125px; }
  .customer-mode .hero { padding-left: 18px; padding-right: 18px; }
}

/* Owner overview: three numbers, actionable reminders, short performance rows. */
.boss-dashboard { max-width: 1100px; margin: 0 auto; }
.boss-decision { margin-bottom: 22px; }
.boss-decision-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.boss-decision-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf7; display: flex; flex-direction: column; align-items: flex-start; }
.boss-decision-label { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; width: 100%; margin-bottom: 13px; }
.boss-decision-label h3 { font-size: 15px; line-height: 1.5; margin: 0; }
.boss-decision-number { width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--forest); display: grid; place-items: center; flex-shrink: 0; font-size: 13px; }
.boss-decision-headline { font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
.boss-decision-card p { font-size: 14px; line-height: 1.65; margin: 9px 0; }
.boss-decision-suggestion { color: #3d5146; }
.boss-decision-card .btn { margin-top: auto; min-height: 44px; }
.boss-decision-card .notice { font-size: 13px; }
.boss-decision-encouragement { margin: 16px 0 0; padding: 12px 15px; border-left: 3px solid #8bab63; background: #f3f7ed; color: #385540; font-size: 14px; line-height: 1.7; }
.boss-decision-evidence { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.boss-decision-evidence .btn { min-height: 44px; }
.boss-decision-focus { padding-left: 22px; line-height: 1.75; }
.boss-decision-focus li { margin-bottom: 8px; }
@media (max-width: 780px) { .boss-decision-grid { grid-template-columns: 1fr; gap: 10px; } .boss-decision-label h3 { font-size: 16px; } .boss-decision-headline { font-size: 18px; } .boss-decision-card { padding: 15px; } }
.boss-stats { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.boss-stat { background: #fff; padding: 21px 24px; border: 1px solid var(--line); border-radius: 16px; }
.boss-stat > span { font-size: 14px; color: #53634f; }
.boss-stat > strong { display: block; font-size: 36px; line-height: 1.4; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--forest); margin: 7px 0 3px; }
.boss-stat small { font-size: 12px; font-weight: 400; color: #637160; }
.boss-stat > strong small { margin-left: 4px; }
.boss-panel { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.boss-panel .section-head { margin-bottom: 7px; }
.boss-panel h2 { font-size: 19px; }
.boss-panel-note { font-size: 12px; color: #637160; margin: 0 0 14px; line-height: 1.6; }
.boss-detail-row { padding: 13px 14px; background: #f6f8f4; border-radius: 10px; margin-bottom: 10px; font-size: 14px; }
.boss-detail-row:last-child { margin-bottom: 0; }
.boss-detail-row p { margin: 5px 0; overflow-wrap: anywhere; }
.boss-detail-row .action-row { margin-top: 9px; }
.boss-person { width: 100%; display: flex; align-items: center; gap: 10px; background: #fff; min-height: 68px; padding: 12px 0; text-align: left; border-top: 1px solid var(--line); }
.boss-person-info { flex: 1; min-width: 0; }
.boss-person-info > strong { display: block; font-size: 15px; color: var(--ink); }
.boss-person-info > span { display: block; color: #637160; font-size: 12px; margin-top: 4px; }
.boss-person-amount { color: var(--forest); font-size: 19px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.boss-people + .boss-panel-note { margin: 11px 0 0; }
.boss-dashboard summary:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; border-radius: 5px; }
.cash-hero { padding: 26px 30px; margin-bottom: 12px; border-radius: 20px; background: var(--forest); color: #fff; }
.cash-hero-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cash-hero-head > span:first-child { font-size: 19px; font-weight: 600; }
.cash-hero-head > span:last-child { font-size: 13px; color: #d5e7d8; }
.cash-total { display: block; font-size: clamp(36px,5vw,58px); font-weight: 650; line-height: 1.25; letter-spacing: -1px; margin: 14px 0 10px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cash-formula { margin: 0; font-size: 14px; color: #e3eee4; }
.cash-formula > span { padding: 0 12px; }
.cash-hero-actions { display: flex; gap: 12px; margin: 21px 0; }
.cash-hero-actions > .btn { margin: 0; width: auto; min-height: 44px; font-size: 14px; border-radius: 11px; padding: 0 20px; }
.btn-cash-light { color: #fff; background: #ffffff13; border: 1px solid #ffffff55; }
.cash-channels { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #ffffff30; padding-top: 17px; gap: 12px; }
.cash-channels > div > span { display: block; color: #d5e7d8; font-size: 12px; margin-bottom: 5px; }
.cash-channels > div > strong { font-size: 18px; font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cash-hero-note { color: #d5e7d8; font-size: 12px; line-height: 1.6; margin: 17px 0 0; }
.cash-pending-bar { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 1px solid var(--line); padding: 14px 20px; border-radius: 12px; margin-bottom: 20px; text-align: left; color: var(--ink); }
.cash-pending-bar > span { flex: 1; font-size: 14px; }
.cash-pending-bar small { display: inline-block; color: var(--muted); font-size: 12px; margin-left: 12px; }
.cash-pending-bar > strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.cash-ledger-row { display: flex; align-items: center; text-align: left; gap: 10px; width: 100%; background: #fff; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line); }
.cash-ledger-row > span { flex: 1; min-width: 0; }
.cash-ledger-row > span > strong { font-size: 15px; display: block; }
.cash-ledger-row small { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 3px; overflow-wrap: anywhere; }
.cash-ledger-row > strong { font-size: 17px; white-space: nowrap; }
.cash-refund { color: #966020; }
[data-cash-platform][hidden] { display: none; }
.ease-arrival-note { color: var(--forest); font-size: 13px; padding: 8px 10px; background: #edf5e9; border-radius: 8px; margin: 8px 0; }
@media (max-width: 600px) {
  .cash-hero { padding: 22px 19px; border-radius: 16px; }
  .cash-total { font-size: clamp(34px,10vw,47px); margin-top: 15px; }
  .cash-hero-head > span:first-child { font-size: 17px; }
  .cash-formula { font-size: 12px; }
  .cash-formula > span { padding: 0 6px; }
  .cash-hero-actions > .btn { flex: 1; padding: 0 12px; }
  .cash-channels { grid-template-columns: repeat(2,1fr); gap: 17px 16px; }
  .cash-channels > div > strong { font-size: 17px; }
  .cash-pending-bar { padding: 13px 15px; gap: 8px; }
  .cash-pending-bar small { display: block; margin: 4px 0 0; font-size: 11px; }
}
@media (max-width: 760px) {
  .boss-stats { gap: 8px; grid-template-columns: 1.35fr 1fr 1fr; margin-bottom: 16px; }
  .boss-stat { padding: 13px 11px; border-radius: 12px; }
  .boss-stat > span { font-size: 12px; white-space: nowrap; }
  .boss-stat > strong { font-size: 26px; margin: 7px 0 1px; }
  .boss-stat > small { display: block; font-size: 10px; line-height: 1.5; }
  .boss-stat > strong small { font-size: 11px; margin-left: 1px; }
  .boss-panel { padding: 17px; border-radius: 14px; }
  .boss-panel h2 { font-size: 18px; }
  .boss-panel .section-head .text-link { font-size: 12px; }
  .boss-person-amount { font-size: 18px; }
}

/* Customer paths: a clear plan, the next appointment, and direct actions. */
.ease-customer-home .hero { padding: 16px 20px 29px; }
.ease-customer-home .hero-label { font-size: 14px; margin-bottom: 6px; }
.ease-customer-home .hero-title { font-size: 26px; margin-bottom: 10px; line-height: 1.35; }
.ease-customer-home .next-step { font-size: 13px; margin-top: 10px; padding-top: 9px; }
.ease-customer-home .btn.hero-button { margin-top: 10px; font-size: 15px; }
.ease-customer-home .customer-surface { padding: 0 20px; }
.ease-customer-home .detail-section { padding: 14px 0; }
.ease-customer-home .detail-section.ease-usage-section { padding: 13px 0; }
.ease-usage { background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; width: 100%; padding: 0; min-height: 54px; }
.ease-usage-value { display: flex; align-items: center; gap: 6px; color: var(--forest); font-size: 13px; white-space: nowrap; }
.ease-usage-value strong { font-size: 36px; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; }
.ease-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ease-section-head h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.ease-section-head .text-link { font-size: 12px; padding: 0; min-height: 44px; white-space: nowrap; }
.ease-customer-home .ease-next .service-project { font-size: 15px; margin-top: 3px; }
.ease-customer-home .progress-row .muted { color: #5f6d64; font-size: 12px; padding-left: 9px; }
.ease-customer-home .progress-row { gap: 10px; }
.ease-customer-home .ease-recent h3 { font-size: 15px; margin-top: 1px; }
.ease-customer-home .ease-recent .meta { margin-top: 3px; color: #5f6d64; }
.ease-customer-page { padding-bottom: 18px; }
.ease-customer-page .page-head { margin: 20px; }
.ease-record-list { padding: 0 20px; display: grid; gap: 14px; }
.ease-record-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.ease-record-card h2 { font-size: 17px; margin: 7px 0 3px; }
.ease-page-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 20px 0; }
.ease-page-links .text-link { min-height: 44px; font-size: 12px; }
.ease-customer-page .profile-card { padding: 23px 20px 19px; }
.ease-customer-page .profile-card h1 { font-size: 22px; }
.ease-team { padding: 15px 17px; border-radius: 14px; background: #f3f7f0; margin: 0 20px 18px; }
.ease-team h2 { font-size: 16px; }
.ease-team .text-link { min-height: 44px; padding: 0; font-size: 12px; }
.ease-profile-menu { margin: 0 20px; }
.ease-menu-item, .ease-home-advice > summary { display: flex; gap: 11px; align-items: center; min-height: 56px; width: 100%; text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); background: none; font-size: 14px; list-style: none; cursor: pointer; }
.ease-menu-item > .icon:last-child, .ease-home-advice > summary > .icon:last-child { margin-left: auto; }
@media (max-width: 380px) {
  .ease-customer-home .hero-title { font-size: 24px; }
  .ease-customer-home .fact-line { font-size: 12px; gap: 9px; }
  .ease-customer-home .fact-line strong { font-size: 14px; }
}

/* Therapist paths: today's service cards and complete, collapsible follow-ups. */
.ease-work, .ease-client-list, .ease-performance { max-width: 1080px; margin: 0 auto; }
.ease-work-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 20px; }
.ease-work-stat { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 17px 20px; min-width: 0; }
.ease-work-stat > span { display: block; color: #5f6d64; font-size: 13px; }
.ease-work-stat > strong { display: block; color: var(--forest); font-size: 29px; line-height: 1.4; margin: 6px 0 3px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ease-work-stat small { font-size: 11px; color: #5f6d64; font-weight: 400; }
.ease-work-stat-amount { background: var(--forest); border-color: var(--forest); }
.ease-work-stat-amount > span, .ease-work-stat-amount > strong { color: #fff; }
.ease-work-stat-amount > small { color: #deeedf; }
.ease-work-main, .ease-work-more { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 18px; }
.ease-work-main .section-head, .ease-work-more .section-head { margin-bottom: 13px; }
.ease-work-more .section-head .text-link { font-size: 12px; min-height: 44px; padding: 0; }
.ease-service-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,310px),1fr)); gap: 14px; align-items: start; }
.ease-service-card { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.ease-service-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ease-service-head h3 { font-size: 19px; margin-top: 3px; }
.ease-service-time { font-size: 16px; color: var(--forest); font-weight: 650; }
.ease-service-project { font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.ease-service-card .meta { color: #5f6d64; font-size: 12px; }
.ease-service-options { border-top: 1px solid var(--line); margin-top: 12px; }
.ease-service-options > summary { display: flex; align-items: center; gap: 7px; min-height: 44px; cursor: pointer; font-size: 12px; color: #5f6d64; list-style: none; }
.ease-service-options > summary::-webkit-details-marker { display: none; }
.ease-service-options .action-row { margin: 0; }
.ease-work-notice { border-top: 1px solid var(--line); background: #fff; }
.ease-work-notice > summary { min-height: 58px; display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; font-size: 14px; }
.ease-work-notice > summary::-webkit-details-marker { display: none; }
.ease-work-notice > summary strong { font-weight: 500; }
.ease-work-notice[open] > summary > .icon:last-child, .ease-service-options[open] > summary > .icon:last-child, .ease-performance-filters[open] > summary > .icon:last-child { transform: rotate(90deg); }
@media (max-width: 760px) {
  .ease-work .page-head, .ease-client-list .page-head { gap: 13px; margin-bottom: 17px; }
  .ease-work h1, .ease-client-list h1, .ease-performance h1 { font-size: 24px; }
  .ease-work-stats { gap: 8px; margin-bottom: 16px; }
  .ease-work-stat { padding: 12px 10px; border-radius: 12px; }
  .ease-work-stat > span { font-size: 11px; }
  .ease-work-stat > strong { font-size: 25px; }
  .ease-work-stat-amount > strong { font-size: clamp(20px,5.8vw,25px); }
  .ease-work-stat small { font-size: 10px; line-height: 1.6; }
  .ease-work-main, .ease-work-more { padding: 15px; border-radius: 14px; margin-bottom: 16px; }
  .ease-work-main h2, .ease-work-more h2 { font-size: 17px; }
  .ease-service-card { padding: 14px; }
  .ease-service-head h3 { font-size: 18px; }
  .ease-service-list { grid-template-columns: 1fr; }
  .ease-work-more > .section-head { gap: 8px; margin-bottom: 4px; }
  .ease-work-more > .section-head .text-link { font-size: 11px; }
  .ease-work-notice > summary { min-height: 55px; font-size: 13px; gap: 8px; }
  .ease-performance .section.card { border: 0; background: transparent; padding: 0; }
}

.ease-work-alert { padding: 0 20px; background: #fff; border: 1px solid #e8dbc6; border-radius: 14px; margin-bottom: 18px; }
.ease-work-alert .ease-work-notice { border-top: 0; }
@media (max-width: 760px) { .ease-work-alert { padding: 0 15px; margin-bottom: 16px; } }
.field input[data-evidence-picker][hidden] { display: none; }
.evidence-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.evidence-tile { min-width: 0; margin: 0; }
.evidence-tile figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px; min-height: 44px; font-size: 12px; color: #5f6d64; }
.evidence-tile .text-link { font-size: 12px; min-height: 44px; }
.service-evidence { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0; padding: 14px 0; }
.service-evidence .section-head h3 { margin: 0; }
.service-evidence .evidence-grid { margin-top: 12px; }
@media (max-width: 760px) {
  .evidence-grid { gap: 8px; }
}

/* Same brand, with a fixed authenticated shell instead of preview controls. */
.formal-app { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.formal-app .app-stage { padding: 12px 24px 24px; }
.formal-app .app-stage { flex: 1 1 auto; min-height: 0; }
.formal-app .app-window { height: 100%; min-height: 0; }
.formal-app > :is(.formal-toolbar, .app-notice, .fixture-toolbar) { flex: 0 0 auto; width: 100%; }
.formal-app .hero > .text-link { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.formal-app .hero > .text-link:hover { color: var(--lime); }
.formal-toolbar { max-width: 1200px; margin: 0 auto; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 6px 24px; color: var(--forest); font-size: 12px; }
.app-notice { max-width: 1200px; margin: 0 auto; padding: 10px 24px; background: #edf6e7; }
.app-notice[data-tone="error"] { background: #fff0e6; color: #743e22; }
.login-panel { padding: 40px 24px; display: grid; gap: 22px; }
.login-panel h1 { color: var(--forest); font-size: 30px; }
.login-panel p { color: var(--muted); }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 10; padding: 10px 16px; background: #fff; border: 2px solid var(--forest); border-radius: 8px; }
.skip-link:focus { top: 8px; }
.sheet-state { padding: 0 24px 20px; display: grid; gap: 12px; }
.sheet-state:empty { padding: 0; }
.saved-panel { display: grid; gap: 18px; text-align: center; justify-items: center; padding: 24px 0; }
.authenticated-photo { max-height: 70dvh; width: 100%; object-fit: contain; }
.import-table { overflow-x: auto; width: 100%; }
.import-table table { width: 100%; min-width: 420px; border-collapse: collapse; }
.import-table th, .import-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.formal-app .header-name, .formal-app .detail-value { white-space: normal; overflow-wrap: anywhere; }
.formal-app .evidence-grid figcaption { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.formal-app .evidence-tile > img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; }
@media (max-width: 620px) {
 .formal-app .app-stage { padding: 0; }
 .formal-app .app-window { width: 100%; height: 100%; min-height: 0; max-height: none; border: 0; border-radius: 0; }
 .formal-toolbar { padding: 6px 16px; }
 .formal-app .app-header { padding: 8px 14px; }
 .formal-app .brand-logo { width: 120px; }
 .formal-app .sheet-state { padding: 0 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.fixture-toolbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; padding: 10px 14px; background: #fff4d7; border-bottom: 1px solid #e8d6a5; font-size: 12px; }
.fixture-toolbar select { min-height: 36px; }

.desktop-login-code { display:block; letter-spacing:.16em; font-size:clamp(1.4rem,5vw,2.4rem); color:#005b35; margin:1rem 0; }

/* Employee workspaces keep the daily task and its next action close together. */
.manager-workspace, .staff-appointments { min-width: 0; }
.manager-business-fold, .staff-filter-fold { margin: 0 0 18px; min-width: 0; }
.manager-business-fold > summary, .staff-filter-fold > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; padding: 10px 0; color: var(--forest); font-weight: 600; }
.manager-business-fold[open] > summary, .staff-filter-fold[open] > summary { margin-bottom: 10px; }
.staff-today-schedule { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; margin: 0 0 18px; border: 1px solid #ccdece; border-left: 4px solid var(--forest); border-radius: 12px; background: #fff; }
.staff-today-schedule > div { min-width: 0; }
.staff-today-schedule strong { display: block; font-size: 21px; color: var(--forest); }
.staff-today-schedule .eyebrow { margin-bottom: 3px; }
.staff-today-schedule .text-link { flex: 0 0 auto; }
.client-chooser { display: grid; gap: 10px; margin-top: 16px; }
.client-chooser-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; min-height: 72px; }
.client-chooser-item strong { font-size: 16px; }
.client-chooser-item > span:not(.client-chooser-next) { grid-column: 1; font-size: 12px; color: #5f6d64; overflow-wrap: anywhere; }
.client-chooser-next { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 12px; color: var(--forest); }
.availability-feedback { min-width: 0; }
.availability-feedback .btn { margin-top: 8px; }
.availability-feedback [hidden] { display: none; }

@media (max-width: 620px) {
  .formal-app { overflow-wrap: anywhere; }
  .formal-app .app-window, .formal-app .app-main, .formal-app .sheet-body { min-width: 0; }
  .formal-app .app-header { display: grid; grid-template-columns: minmax(90px,1fr) minmax(0,1.4fr); gap: 2px 8px; padding: 6px 12px; padding-top: max(6px,env(safe-area-inset-top)); }
  .formal-app .app-brand { min-width: 0; }
  .formal-app .brand-logo { width: min(120px,100%); height: 38px; }
  .formal-app .customer-head { justify-content: flex-end; min-width: 0; gap: 4px; }
  .formal-app .header-name { min-width: 0; line-height: 1.5; text-align: right; }
  .formal-app .customer-head .btn { padding: 6px; min-width: 44px; flex: 0 0 auto; }
  .formal-app .app-header > [data-action="desktop-confirm"] { grid-column: 1 / -1; justify-self: end; min-height: 44px; padding: 6px 8px; font-size: 12px; }
  .formal-app .app-window:not(.customer-mode) .app-main { padding: 16px 12px; }
  .formal-app .bottom-nav { grid-auto-columns: minmax(0,1fr); padding-left: max(6px,env(safe-area-inset-left)); padding-right: max(6px,env(safe-area-inset-right)); }
  .formal-app .nav-item { min-width: 0; min-height: 52px; }
  .formal-app .nav-label { font-size: 12px; line-height: 1.4; }
  .formal-app .field input, .formal-app .field select, .formal-app .field textarea, .formal-app input, .formal-app select, .formal-app textarea { font-size: 16px; min-width: 0; max-width: 100%; }
  .formal-app .field input, .formal-app .field select, .formal-app .field textarea { min-height: 48px; }
  .formal-app .form-grid, .formal-app .checkbox-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .formal-app .field input::placeholder, .formal-app .field textarea::placeholder { font-size: 14px; }
  .formal-app .filters { padding: 12px; gap: 12px; }
  .formal-app .filters .field { flex-basis: 100%; }
  .formal-app .filters > .btn { min-height: 48px; }
  .formal-app .sheet { max-height: 94dvh; }
  .formal-app .sheet-head { padding: 14px 16px 10px; }
  .formal-app .sheet-body { padding: 16px; padding-bottom: max(16px,env(safe-area-inset-bottom)); }
  .formal-app .dialog-footer { bottom: -16px; margin-bottom: -16px; padding-bottom: max(16px,env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .formal-app .dialog-footer .btn { min-height: 48px; }
  .formal-app .sheet-state { padding: 0 16px 16px; }
  .formal-app .page-head h1 { font-size: 23px; }
  .formal-app .page-head .action-row { gap: 8px; }
  .formal-app .page-head .action-row .btn { flex-basis: 100%; }
  .formal-app .row > div, .formal-app .row > strong, .formal-app .row > span { min-width: 0; max-width: 100%; }
  .formal-app .row-main { min-width: 0; flex-basis: 100%; }
  .formal-app .section-head, .formal-app .ease-service-head { flex-wrap: wrap; gap: 8px; }
  .formal-app .ease-service-head > div { min-width: 0; }
  .formal-app .ease-service-time { font-size: 16px; }
  .formal-app .ease-service-card .action-row { margin-top: 10px; align-items: stretch; }
  .formal-app .ease-service-card .action-row > .btn-primary, .formal-app .manager-appointment-card .action-row > .btn-outline { flex-basis: 100%; }
  .formal-app .ease-service-card .text-link { padding: 8px 10px; min-width: 44px; }
  .formal-app .ease-service-card { padding: 13px; margin-top: 10px; }
  .formal-app .ease-service-list .ease-service-card { margin-top: 0; }
  .formal-app .ease-work-main, .formal-app .ease-work-more, .formal-app .boss-panel { padding: 14px; }
  .formal-app .ease-work-stats, .formal-app .manager-workspace .boss-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .formal-app .ease-work-stat-amount, .formal-app .manager-workspace .boss-stat:first-child { grid-column: 1 / -1; }
  .formal-app .boss-stat > strong { overflow-wrap: anywhere; font-size: 25px; }
  .formal-app .staff-today-schedule { padding: 13px; gap: 10px; }
  .formal-app .staff-today-schedule strong { font-size: 20px; }
  .formal-app .empty { padding: 24px 12px; color: #5f6d64; }
  .formal-app summary { min-height: 44px; }
  .formal-app .client-chooser-item { grid-template-columns: minmax(0,1fr); }
  .formal-app .client-chooser-next { grid-column: 1; grid-row: auto; margin-top: 5px; }
}

/* One client can plan several visits without repeating the same form. */
.hero-batch-button { width: 100%; margin: 10px 0 4px; min-height: 48px; color: #fff; border: 1px solid #b9d2a6; background: transparent; border-radius: 24px; }
.multi-day-list { display: grid; gap: 16px; margin: 16px 0; min-width: 0; }
.multi-day-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fafcf8; min-width: 0; }
.multi-day-card legend { padding: 0 7px; font-weight: 700; color: var(--forest); }
.multi-day-card .form-grid { margin: 0; }
.multi-day-card .field input, .multi-day-card .field select { min-width: 0; max-width: 100%; font-size: 16px; min-height: 48px; }
.multi-day-card .btn, .multi-day-add { min-height: 44px; }
.multi-day-review { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.multi-day-review h3 { margin-bottom: 12px; color: var(--forest); }
.multi-day-summary { margin: 10px 0 16px; padding-left: 22px; }
.multi-day-summary li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.multi-day-summary li strong, .multi-day-summary li span { display: block; overflow-wrap: anywhere; }
.multi-day-summary li span { color: var(--muted); margin-top: 3px; }
.multi-day-review .check { min-height: 48px; }
@media (max-width: 620px) {
 .multi-day-card { padding: 12px; }
 .multi-day-card .form-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
 .multi-day-add { width: 100%; }
}

/* Standalone folds and older form groups share the existing card spacing. */
.formal-app .boss-dashboard > .ease-work-notice {
  padding: 0 20px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
}
.formal-app .boss-dashboard > .ease-work-notice[open] { padding-bottom: 20px; }
.formal-app .ease-work-main > h2 + .ease-service-card,
.formal-app .ease-work-alert > h2 + .ease-service-card,
.formal-app .ease-work-main > .ease-service-card + .ease-service-card,
.formal-app .ease-work-alert > .ease-service-card + .ease-service-card,
.formal-app .ease-work-notice > .ease-service-card + .ease-service-card { margin-top: 12px; }
.formal-app .ease-work-alert { padding-top: 16px; padding-bottom: 16px; }
.formal-app .boss-attention-group { border-top: 1px solid var(--line); min-width: 0; }
.formal-app .boss-attention-group > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
}
.formal-app .boss-attention-group > summary::-webkit-details-marker { display: none; }
.formal-app .boss-attention-group > summary::after,
.formal-app .boss-dashboard > .ease-work-notice > summary::after { content: '›'; color: #5f6d64; font-size: 20px; flex: 0 0 auto; }
.formal-app .boss-attention-group[open] > summary::after,
.formal-app .boss-dashboard > .ease-work-notice[open] > summary::after { transform: rotate(90deg); }
.formal-app :is(.boss-attention-group, .ease-work-notice) > summary > strong { min-width: 0; overflow-wrap: anywhere; }
.formal-app :is(.boss-attention-group, .ease-work-notice) > summary > span {
  margin-left: auto;
  flex: 0 0 auto;
  color: #5f6d64;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.formal-app .boss-attention-group[open] { padding-bottom: 14px; }
.formal-app :is(.boss-panel, .sheet-body) details:not([class]),
.formal-app .sheet-body details.span-all { border-top: 1px solid var(--line); margin-top: 14px; min-width: 0; }
.formal-app :is(.boss-panel, .sheet-body) details:not([class]) > summary,
.formal-app .sheet-body details.span-all > summary,
.formal-app details.boss-panel > summary,
.formal-app details.record-item > summary { min-height: 44px; padding: 10px 0; cursor: pointer; line-height: 1.7; overflow-wrap: anywhere; }
.formal-app :is(.boss-panel, .sheet-body) details:not([class])[open] > summary,
.formal-app .sheet-body details.span-all[open] > summary,
.formal-app details.boss-panel[open] > summary { margin-bottom: 8px; }
.formal-app .boss-panel + .boss-panel,
.formal-app .app-main > .boss-panel { margin-top: 18px; }
.formal-app .boss-dashboard > .boss-panel { margin-bottom: 18px; }
.formal-app .boss-panel > .card + .card,
.formal-app .sheet-body details > .card + .card { margin-top: 14px; }
.formal-app .boss-panel > .card > .action-row,
.formal-app .boss-panel > .card > .btn,
.formal-app .boss-panel > .card > .note { margin-top: 12px; }
.formal-app .sheet-body fieldset:not(.field):not(.multi-day-card) {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.formal-app .sheet-body fieldset:not(.field):not(.multi-day-card) > legend { padding: 0 6px; color: var(--forest); font-size: 13px; font-weight: 600; line-height: 1.7; }
.formal-app .sheet-body fieldset:not(.field):not(.multi-day-card) > .field { margin-top: 12px; }
.formal-app .sheet-body fieldset:not(.field):not(.multi-day-card) > label:not(.field),
.formal-app .check-line { display: flex; align-items: flex-start; gap: 8px; min-height: 44px; padding: 10px 0; line-height: 1.7; }
.formal-app .sheet-body fieldset:not(.field):not(.multi-day-card) input[type="checkbox"],
.formal-app :is(.check, .check-line) input:is([type="checkbox"], [type="radio"]) { flex: 0 0 auto; width: 17px; height: 17px; min-height: 0; padding: 0; margin: 3px 0 0; accent-color: var(--forest); }
.formal-app [data-group-availability] > fieldset + fieldset { margin-top: 14px; }
.formal-app [data-group-availability] > .field { margin-top: 14px; }
.formal-app [data-service-item] > .field + .field { margin-top: 12px; }
.formal-app :is(.card, .boss-panel, .ease-service-card, .sheet-body, .page-head, .section-head, .boss-heading, .profile-card) { overflow-wrap: anywhere; }
.formal-app :is(.page-head, .section-head, .boss-heading, .ease-service-head, .profile-card) > div,
.formal-app .row > div,
.formal-app :is(.boss-stat, .stat, .cash-channels > div) { min-width: 0; }
.formal-app :is(.stat, .boss-stat) > strong { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.formal-app .ease-work-stat { text-align: left; }
.formal-app :is(.btn, .text-link) { max-width: 100%; overflow-wrap: anywhere; }
.formal-app .sheet-head h2 { min-width: 0; overflow-wrap: anywhere; }
.formal-app :is(.sheet-body, .boss-panel) .record-item + .record-item { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
@media (max-width: 620px) {
  .formal-app .boss-dashboard > .ease-work-notice { padding: 0 14px; border-radius: 14px; margin-bottom: 16px; }
  .formal-app .boss-dashboard > .ease-work-notice[open] { padding-bottom: 14px; }
  .formal-app .boss-stat > span { white-space: normal; line-height: 1.6; }
  .formal-app .boss-person { flex-wrap: wrap; }
  .formal-app .boss-person-info { flex-basis: min(100%, 140px); }
  .formal-app .cash-ledger-row > strong { max-width: 50%; white-space: normal; overflow-wrap: anywhere; text-align: right; }
  .formal-app .sheet-body fieldset:not(.field):not(.multi-day-card) { padding: 12px; }
}

/* Optional form details stay one tap away; required facts remain in view. */
.optional-fields { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fafcf8; padding: 0 14px; }
.optional-fields > summary { min-height: 48px; display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; color: var(--forest); font-size: 13px; line-height: 1.6; }
.optional-fields > summary::-webkit-details-marker { display: none; }
.optional-fields > summary::after { content: '+'; margin-left: auto; flex-shrink: 0; font-size: 20px; }
.optional-fields[open] > summary::after { content: '−'; }
.optional-fields[open] { padding-bottom: 14px; }
.optional-fields > .field + .field { margin-top: 14px; }
.optional-fields > .form-grid { margin: 8px 0; }
.service-summary-field textarea { min-height: 76px; }

.initial-case-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.initial-case-choices .check-line { min-width: 0; min-height: 44px; margin: 0; font-size: 13px; }

/* Keep the daily cash result in the owner's first screen. */
.dashboard-tool{border:1px solid var(--line);border-radius:12px;background:#fff;margin:0 0 12px;overflow:hidden}
.dashboard-tool>summary{min-height:44px;padding:12px 16px;cursor:pointer;color:var(--green);font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.dashboard-tool[open]>summary{border-bottom:1px solid var(--line)}
.formal-app .dashboard-tool>.filters{margin:0;padding:16px;border:0;border-radius:0}
@media(max-width:620px){.dashboard-tool>summary{padding:10px 12px}.formal-app .dashboard-tool>.filters{padding:12px}}
