/* Client workspace: navigation, daily focus and readable records. */
:root {
  --bg: #f7f7f9;
  --surface: #fff;
  --surface-soft: #f3f3f6;
  --ink: #18181c;
  --muted: #62626e;
  --border: #e6e6ec;
  --border-strong: #b4b4c1;
  --main: #ffbd32;
  --main-hi: #ffcc5d;
  --accent-soft: #fff2d3;
  --accent-ink: #29200e;
  --shadow: 0 30px 100px #13131e38;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root[data-theme=dark] {
  --bg: #101013;
  --surface: #1b1b20;
  --surface-soft: #25252c;
  --ink: #f4f4f7;
  --muted: #b7b7c2;
  --border: #35353f;
  --border-strong: #6e6e7b;
  --accent-soft: #3a2f18;
}
body { letter-spacing: -.2px; }
.app { display: block; }
.content { width: 100%; }
.studio-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.studio-header-inner { max-width: 1360px; margin: auto; padding: 20px 40px; min-height: 98px; display: flex; align-items: center; gap: 28px; justify-content: space-between; }
.studio-brand { display: flex; align-items: center; gap: 12px; text-align: left; padding: 0; background: none; border: 0; color: var(--ink); font-size: 22px; font-weight: 650; letter-spacing: -.9px; flex-shrink: 0; }
.studio-mark { width: 46px; height: 46px; display: grid; place-items: center; background: var(--main); color: var(--accent-ink); font-size: 32px; font-weight: 700; border-radius: 15px; padding-bottom: 5px; }
.studio-brand small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 400; letter-spacing: 0; }
.desktop-nav { display: flex; align-items: center; gap: 3px; padding: 5px; background: var(--surface-soft); border-radius: 30px; }
.desktop-nav button { border: 0; background: transparent; border-radius: 23px; min-height: 44px; padding: 10px 17px; font-size: 15px; color: var(--muted); font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 6px; }
.desktop-nav button.active { background: var(--accent-soft); color: var(--ink); }
.desktop-nav button:not(.active):hover { background: var(--border); color: var(--ink); }
.desktop-nav .icon { width: 17px; height: 17px; }
.studio-account { display: flex; gap: 12px; align-items: center; }
.studio-account .theme-button { padding: 10px; border: 0; background: transparent; min-height: 44px; }
.studio-account .theme-button span { display: none; }
.studio-account .theme-button .icon { width: 22px; height: 22px; }
.account-button { width: 43px; height: 43px; background: var(--surface-soft); color: var(--ink); border: 1px solid var(--border); border-radius: 50%; font-size: 15px; }
#root { max-width: 1280px; padding: 38px 40px 60px; margin: auto; }
.top { margin-bottom: 28px; align-items: flex-end; }
.top .eyebrow { font-size: 14px; font-weight: 450; color: var(--muted); margin-bottom: 11px; letter-spacing: 0; }
.top h1 { font-size: clamp(38px, 4vw, 54px); font-weight: 600; line-height: 1.1; letter-spacing: -2.2px; }
.top p:not(.eyebrow) { margin-top: 11px; font-size: 17px; color: var(--muted); line-height: 1.6; }
.top-right:empty { display: none; }
.btn { min-height: 50px; font-size: 16px; font-weight: 600; padding: 13px 20px; border-radius: 14px; box-shadow: none; }
.btn.small { min-height: 46px; padding: 11px 15px; border-radius: 12px; font-size: 15px; }
.btn.secondary, .btn.neutral { background: var(--surface); border: 1px solid var(--border-strong); }
.btn.secondary:hover, .btn.neutral:hover { background: var(--surface-soft); }
.mini { border-radius: 12px; border-color: var(--border); min-height: 46px; font-size: 15px; padding: 10px 15px; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 7px 0; background: transparent; border: 0; font-size: 15px; font-weight: 550; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.text-link .icon { width: 18px; height: 18px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.studio-stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; margin-bottom: 30px; }
.focus-card { border-radius: 26px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); padding: 28px 30px; min-width: 0; display: flex; flex-direction: column; }
.focus-label { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.live-dot { width: 7px; height: 7px; background: var(--main); border-radius: 50%; flex-shrink: 0; }
.focus-label-end { color: var(--muted); margin-left: auto; font-size: 13px; }
.focus-content { display: flex; align-items: center; gap: 19px; margin: auto 0; padding: 30px 0; min-width: 0; }
.focus-avatar { display: grid; place-items: center; width: 66px; height: 66px; background: var(--surface-soft); color: var(--ink); border-radius: 22px; font-size: 22px; font-weight: 500; flex-shrink: 0; }
.focus-purpose { margin: 0 0 8px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.focus-content h2 { font-size: clamp(25px, 2.8vw, 35px); font-weight: 550; line-height: 1.22; letter-spacing: -1px; margin: 0; max-width: 450px; }
.focus-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.focus-bottom>span { color: var(--muted); font-size: 15px; max-width: 45%; overflow-wrap: anywhere; }
.focus-bottom .btn { flex-shrink: 0; }
.focus-empty { margin: 22px 0 24px; }
.focus-empty h2 { font-size: 32px; line-height: 1.25; letter-spacing: -1px; font-weight: 550; margin: 0; }
.focus-empty p { font-size: 17px; color: var(--muted); }
.focus-card>.btn { align-self: flex-start; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -.8px; line-height: 1.25; }
.section-heading .section-caption { margin: 0; font-size: 14px; color: var(--muted); }
.section-overline { font-size: 13px; color: var(--muted); font-weight: 400; margin: 0 0 7px; }
.create-panel { padding: 27px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; min-width: 0; }
.create-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.create-tile { border: 0; background: var(--surface-soft); border-radius: 17px; padding: 16px; min-height: 112px; display: grid; grid-template-columns: minmax(0,1fr) 16px; gap: 12px 6px; text-align: left; align-content: space-between; }
.create-tile>span:nth-child(2) { grid-row: 2; grid-column: 1/-1; }
.create-icon { display: grid; place-items: center; width: 26px; height: 26px; color: var(--ink); }
.create-icon .icon { width: 25px; height: 25px; }
.create-tile>.icon { width: 16px; height: 16px; color: var(--muted); justify-self: end; }
.create-tile strong { display: block; font-size: 17px; font-weight: 550; line-height: 1.3; }
.create-tile small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.5; }
.create-tile:hover { background: var(--accent-soft); }
.studio-columns { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 30px; align-items: start; }
.agenda-panel { min-width: 0; padding: 9px 2px 0; }
.agenda-panel>.section-heading { margin-bottom: 18px; }
.reminder { padding: 18px 0; gap: 18px; min-height: 98px; }
.reminder:first-child { padding-top: 16px; }
.day { width: 49px; min-height: 60px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.day strong { font-size: 23px; font-weight: 550; }
.day>span { font-size: 12px; }
.day.today { background: var(--accent-soft); border-color: transparent; }
.reminder-copy>strong { font-size: 17px; font-weight: 500; line-height: 1.45; }
.reminder-kind { font-size: 14px; color: var(--muted); margin-bottom: 7px; font-weight: 400; }
.reminder-time { white-space: normal; }
.agenda-summary { display: flex; align-items: center; gap: 8px; color: var(--muted); padding: 18px 0 0; font-size: 14px; }
.agenda-summary .icon { width: 17px; height: 17px; }
.base-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 26px 28px; min-width: 0; }
.studio-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-bottom: 1px solid var(--border); padding: 0 0 24px; margin-bottom: 5px; }
.studio-metrics .metric { background: none; border: 0; border-radius: 0; padding: 0; }
.studio-metrics .metric+ .metric { padding-left: 25px; border-left: 1px solid var(--border); }
.studio-metrics .metric-heading { font-size: 14px; }
.studio-metrics .metric-heading .icon { display: none; }
.studio-metrics .metric-value { font-size: 38px; line-height: 1.1; margin: 14px 0 6px; font-weight: 550; }
.studio-metrics .metric-note { font-size: 13px; color: var(--muted); }
.finance-list { display: grid; margin-bottom: 9px; }
.finance-list>div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.finance-list>div:last-child { border: 0; }
.finance-list span { color: var(--muted); }
.finance-list strong { white-space: nowrap; font-size: 18px; font-weight: 550; }
.base-panel>.text-link { width: 100%; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 2px; }
.recent-section { margin-top: 42px; }
.recent-section>.section-heading { margin-bottom: 20px; }
.recent-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.recent-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 21px; padding: 23px; text-align: left; min-width: 0; display: flex; flex-direction: column; }
.recent-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); }
.recent-top>.icon { width: 18px; height: 18px; }
.recent-label { font-size: 13px; }
.recent-tile h3 { font-size: 18px; font-weight: 550; margin: 19px 0 7px; line-height: 1.45; }
.recent-tile p { font-size: 15px; color: var(--muted); margin: 0 0 23px; line-height: 1.55; }
.recent-bottom { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 17px; margin-top: auto; }
.recent-bottom strong { font-size: 21px; font-weight: 550; white-space: nowrap; }
.recent-bottom span { font-size: 13px; color: var(--muted); }
.recent-tile:hover { border-color: var(--border-strong); }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 27px; padding: 0; background: none; border: 0; }
.search { min-height: 54px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); font-size: 17px; padding: 14px 18px; }
.toolbar>.btn { min-height: 52px; font-size: 15px; border-color: var(--border); }
.client-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.clientcard { display: flex; flex-direction: column; align-items: stretch; border: 1px solid var(--border); background: var(--surface); border-radius: 24px; padding: 26px; gap: 0; min-width: 0; }
.client-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 22px; }
.client-top .bubble { width: 58px; height: 58px; border-radius: 19px; background: #e9edf6; color: #535e7e; border: 0; font-size: 19px; font-weight: 500; }
.clientcard:nth-child(3n+2) .bubble { background: #f7ebdf; color: #8d6444; }
.clientcard:nth-child(3n) .bubble { background: #e6efea; color: #476854; }
[data-theme=dark] .client-top .bubble { background: var(--surface-soft); color: var(--ink); }
.client-caption { font-size: 13px; color: var(--muted); background: var(--surface-soft); padding: 5px 9px; border-radius: 7px; }
.clientcard h3 { font-size: 22px; line-height: 1.3; font-weight: 550; letter-spacing: -.5px; margin: 0 0 15px; }
.client-phone { font-size: 17px; margin: 0 0 6px; }
.clientcard .note { font-size: 14px; margin: 0; }
.client-request { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 23px 0 0; }
.clientcard .meta-tags { display: grid; gap: 7px; margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--border); }
.tag { border: 0; padding: 0; background: transparent; border-radius: 0; font-size: 14px; line-height: 1.5; color: var(--muted); justify-content: flex-start; gap: 7px; }
.tag .icon { width: 16px; height: 16px; }
.clientcard .inline-actions { margin-top: auto; margin-left: 0; width: 100%; padding-top: 25px; display: flex; flex-wrap: wrap; gap: 9px; }
.clientcard .inline-actions>.btn { background: var(--ink); color: var(--surface); border-color: transparent; flex: 1; }
.clientcard .inline-actions>.btn:hover { opacity: .88; }
.clientcard .inline-actions>.mini { padding: 10px 12px; }
.client-grid>.empty { grid-column: 1/-1; }
.panel { border-radius: 23px; margin-bottom: 24px; border-color: var(--border); }
.panelhead { padding: 25px 27px 21px; }
.panelhead h2 { font-size: 23px; font-weight: 550; letter-spacing: -.6px; }
.panel-body { padding: 0 27px 25px; }
.pill { border: 0; background: var(--surface-soft); min-width: 28px; border-radius: 8px; text-align: center; font-size: 14px; }
.ordercard, .data-row, .meeting-entry { padding: 27px; border-radius: 23px; background: var(--surface); border: 1px solid var(--border); }
.list { gap: 20px; }
.order-heading h3 { font-size: 21px; font-weight: 550; }
.order-total { font-size: 29px; font-weight: 550; }
.order-icon { border: 0; background: var(--surface-soft); border-radius: 15px; width: 50px; height: 50px; }
.payment-track { height: 6px; border: 0; }
.order-payment strong { font-size: 20px; }
.tag.green, .tag.urgent { padding: 5px 9px; border-radius: 7px; }
.tag.urgent { color: var(--red); background: var(--red-bg); }
.notice { border-radius: 15px; border: 0; padding: 18px 21px; font-size: 16px; }
.section-caption, .hint { font-size: 15px; }
.overlay { background: #17172265; backdrop-filter: none; padding: 16px; }
.modal { width: 720px; max-height: calc(100dvh - 32px); border: 0; border-radius: 25px; box-shadow: var(--shadow); }
.modal-header { padding: 26px 30px; }
.modal-header h2 { font-size: 27px; font-weight: 550; line-height: 1.3; letter-spacing: -.7px; }
.x { border: 0; border-radius: 50%; background: var(--surface-soft); width: 46px; height: 46px; }
.modal-body { padding: 28px 30px; }
.modal #record-form>.formgrid { padding: 28px 30px; gap: 26px 21px; }
.modal #record-form>.formfooter { padding: 19px 30px; background: var(--surface-soft); }
.field label { font-size: 16px; font-weight: 550; }
.field input, .field select, .field textarea { min-height: 54px; border-radius: 12px; font-size: 18px; padding: 13px 15px; border-color: var(--border-strong); }
.form-section { padding-top: 25px; }
.card-tabs { padding: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: var(--surface); gap: 15px; margin-bottom: 25px; position: sticky; top: -28px; z-index: 2; }
.card-tabs button { background: transparent; border-radius: 0; font-size: 17px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; min-height: 58px; padding: 12px 6px; }
.card-tabs button[aria-pressed=true] { background: transparent; color: var(--ink); border-bottom-color: var(--ink); box-shadow: none; }
.details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px 25px; }
.detail { min-width: 0; }
.detail dt { font-size: 15px; margin-bottom: 7px; }
.detail dd { font-size: 18px; line-height: 1.6; }
.detail-wide { grid-column: 1/-1; }
.inlinebar h3 { font-size: 21px; font-weight: 550; margin: 0; }
.subsection { background: var(--surface-soft); border: 0; border-radius: 20px; padding: 25px; }
.subsection h3 { font-size: 22px; font-weight: 550; }
.subsection .details, .history-card .details { grid-template-columns: 1fr; }
.history-card, .task-card { padding: 23px; border: 1px solid var(--border); background: var(--surface); border-radius: 18px; margin-bottom: 15px; }
.history-card:first-child, .task-card:first-child { padding-top: 23px; }
.history-card:last-child, .task-card:last-child { border-bottom: 1px solid var(--border); }
.history-card h3, .task-card h3 { margin: 14px 0 6px; font-size: 22px; font-weight: 550; }
.task-card .tag { display: inline-flex; background: var(--surface-soft); padding: 6px 9px; border-radius: 7px; }
.task-card .tag.urgent { background: var(--red-bg); }
.task-client { font-size: 16px; font-weight: 450; color: var(--muted); }
.task-card .inline-actions { margin-top: 20px; gap: 9px; }
.meeting-entry .history-card { border: 0; padding: 0; }
.meeting-entry .tiny-action { color: var(--muted); font-weight: 450; }
.completed-tasks { padding: 20px 23px; border-radius: 18px; background: var(--surface-soft); }
.completed-tasks[open] summary { margin-bottom: 18px; }
.plan-step { border-radius: 15px; padding: 20px; }
.more-menu .navbtn { color: var(--ink); min-height: 60px; font-size: 19px; border-radius: 13px; }
.auth-story { background: var(--accent-soft); color: var(--ink); }
.auth-story-copy .eyebrow, .auth-story-copy>p:not(.eyebrow), .auth-story-foot { color: var(--muted); }
.auth-story h2 { font-weight: 550; }
.auth-card h1 { font-size: 36px; font-weight: 550; }
.auth-tabs { border: 0; border-radius: 15px; }
.auth-tabs button { min-height: 50px; border-radius: 11px; }
@media(max-width:1150px) {
  .studio-header-inner { padding: 18px 30px; gap: 20px; }
  .desktop-nav button { padding: 10px 14px; }
  .studio-brand { font-size: 20px; }
  .studio-brand small { font-size: 11px; }
  #root { padding: 32px 30px 55px; }
  .studio-stage { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 20px; }
  .focus-card { padding: 25px; }
  .focus-content { gap: 15px; }
  .focus-avatar { width: 55px; height: 55px; border-radius: 18px; font-size: 19px; }
  .focus-content h2 { font-size: 29px; }
  .focus-bottom { align-items: flex-start; flex-direction: column; gap: 16px; }
  .focus-bottom>span { max-width: 100%; }
  .focus-bottom .btn { width: 100%; }
  .create-panel { padding: 25px; }
  .create-tile { padding: 15px; }
  .section-heading h2 { font-size: 22px; }
  .studio-columns { gap: 25px; }
  .client-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .recent-tile { padding: 20px; }
}
@media(max-width:900px) and (min-width:801px) {
  .studio-brand small { display: none; }
  .studio-mark { width: 42px; height: 42px; }
  .studio-header-inner { gap: 14px; padding-left: 24px; padding-right: 24px; }
  .studio-account { gap: 4px; }
  .desktop-nav button { padding: 9px 12px; font-size: 14px; }
}
@media(max-width:800px) {
  .desktop-nav { display: none; }
  .studio-header-inner { min-height: 82px; padding: 17px 24px; }
  .studio-brand { font-size: 21px; }
  .studio-brand small { font-size: 11px; }
  .studio-account .account-button { display: grid; }
  #root { padding: 30px 24px 118px; }
  .top { margin-bottom: 25px; }
  .top h1 { font-size: 43px; }
  .studio-stage { grid-template-columns: 1fr; gap: 20px; }
  .focus-card { padding: 27px; }
  .focus-content { padding: 26px 0; }
  .focus-content h2 { font-size: 33px; max-width: 100%; }
  .focus-bottom { flex-direction: row; align-items: center; }
  .focus-bottom .btn { width: auto; }
  .focus-bottom>span { max-width: 45%; }
  .create-panel { padding: 25px; }
  .create-tile { min-height: 105px; grid-template-columns: 34px minmax(0,1fr) 16px; align-items: center; align-content: center; gap: 12px; }
  .create-tile>span:nth-child(2) { grid-row: 1; grid-column: 2; }
  .create-tile>.icon { grid-column: 3; }
  .studio-columns { grid-template-columns: 1fr; gap: 27px; }
  .base-panel { padding: 26px; }
  .recent-grid { grid-template-columns: 1fr; }
  .recent-tile { padding: 24px; }
  .recent-tile h3 { margin-top: 15px; }
  .client-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .clientcard { padding: 23px; }
  .clientcard h3 { font-size: 21px; }
  .clientcard .inline-actions { flex-wrap: wrap; }
  .mobile-nav { background: var(--surface); padding: 9px 8px max(10px,env(safe-area-inset-bottom)); box-shadow: 0 -4px 22px #14141e06; }
  .mobile-nav button { min-height: 58px; font-size: 13px; gap: 6px; border-radius: 14px; }
  .mobile-nav button.active { background: var(--accent-soft); }
  .mobile-nav .icon { width: 22px; height: 22px; }
  .auth-story { display: none; }
}
@media(max-width:520px) {
  .studio-header-inner { min-height: 77px; padding: 15px 18px; gap: 12px; }
  .studio-brand { font-size: 19px; gap: 10px; }
  .studio-mark { width: 40px; height: 40px; border-radius: 13px; font-size: 28px; }
  .studio-brand small { font-size: 10px; }
  .studio-account { gap: 4px; }
  .studio-account .theme-button { padding: 9px; }
  .studio-account .account-button { width: 44px; height: 44px; font-size: 14px; }
  #root { padding: 28px 18px 115px; }
  .top { display: block; margin-bottom: 23px; }
  .top h1 { font-size: 39px; letter-spacing: -1.5px; }
  .top .eyebrow { display: block; font-size: 13px; }
  .top p:not(.eyebrow) { font-size: 17px; line-height: 1.6; }
  .top-right { margin-top: 22px; }
  .top-right .btn { width: 100%; min-height: 53px; font-size: 17px; }
  .studio-stage { gap: 18px; margin-bottom: 31px; }
  .focus-card { padding: 23px; border-radius: 24px; }
  .focus-label { font-size: 14px; }
  .focus-label-end { display: none; }
  .focus-content { align-items: flex-start; gap: 13px; padding: 26px 0; }
  .focus-avatar { width: 45px; height: 45px; font-size: 16px; border-radius: 15px; margin-top: 4px; }
  .focus-content h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.8px; }
  .focus-purpose { font-size: 15px; margin-bottom: 9px; }
  .focus-bottom { display: block; padding-top: 18px; }
  .focus-bottom>span { display: block; max-width: 100%; font-size: 16px; margin-bottom: 17px; }
  .focus-bottom .btn { width: 100%; min-height: 52px; font-size: 17px; }
  .create-panel { padding: 0; background: transparent; border: 0; border-radius: 0; }
  .create-panel>.section-heading { margin: 5px 1px 18px; }
  .create-panel .section-caption { display: none; }
  .create-grid { gap: 11px; }
  .create-tile { grid-template-columns: minmax(0,1fr) 16px; min-height: 118px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 17px; gap: 13px 6px; align-content: space-between; }
  .create-tile>span:nth-child(2) { grid-column: 1/-1; grid-row: 2; }
  .create-tile>.icon { grid-column: 2; grid-row: 1; }
  .create-tile strong { font-size: 18px; }
  .create-tile small { font-size: 13px; line-height: 1.5; }
  .create-icon .icon { width: 25px; height: 25px; }
  .section-heading { gap: 12px; }
  .section-heading h2 { font-size: 23px; }
  .section-overline { display: none; }
  .text-link { font-size: 14px; gap: 7px; }
  .studio-columns { gap: 30px; }
  .agenda-panel { padding: 0; }
  .reminder { gap: 13px; min-height: 106px; }
  .day { width: 45px; min-height: 58px; border-radius: 13px; }
  .reminder-copy>strong { font-size: 17px; }
  .reminder-kind { font-size: 14px; }
  .reminder>.icon { display: none; }
  .base-panel { padding: 23px; border-radius: 23px; }
  .studio-metrics .metric-value { font-size: 36px; }
  .finance-list>div { font-size: 14px; }
  .finance-list strong { font-size: 18px; }
  .recent-section { margin-top: 32px; }
  .recent-section .section-heading h2 { font-size: 22px; }
  .recent-tile h3 { font-size: 20px; }
  .recent-tile p { font-size: 16px; }
  .recent-bottom span { font-size: 14px; }
  .toolbar { gap: 12px; margin-bottom: 23px; }
  .search { font-size: 17px; min-width: 0; width: 100%; flex-basis: 100%; }
  .toolbar>.btn { width: 100%; min-height: 49px; }
  .client-grid { grid-template-columns: 1fr; gap: 20px; }
  .clientcard { padding: 25px; }
  .clientcard h3 { font-size: 24px; }
  .client-top .bubble { width: 58px; height: 58px; border-radius: 19px; }
  .clientcard .inline-actions { width: 100%; margin-left: 0; }
  .clientcard .inline-actions>.btn { min-height: 49px; font-size: 16px; }
  .clientcard .inline-actions>.mini { flex: 0; min-height: 49px; font-size: 15px; }
  .ordercard, .data-row, .meeting-entry { padding: 22px; border-radius: 21px; }
  .order-heading { grid-template-columns: 42px minmax(0,1fr); }
  .order-heading h3 { font-size: 20px; }
  .order-icon { width: 42px; height: 42px; border-radius: 13px; }
  .order-total { font-size: 29px; }
  .panelhead { padding: 23px 21px 20px; }
  .panelhead h2 { font-size: 22px; }
  .panel-body { padding: 0 21px 23px; }
  .panel { border-radius: 22px; }
  .overlay { padding: 0; }
  .modal { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .modal-header { padding: 21px 20px; }
  .modal-header h2 { font-size: 25px; }
  .modal-body { padding: 24px 20px; }
  .modal #record-form>.formgrid { padding: 26px 20px; }
  .modal #record-form>.formfooter { padding: 16px 20px max(16px,env(safe-area-inset-bottom)); }
  .card-tabs { top: -24px; gap: 10px; }
  .card-tabs button { font-size: 16px; padding: 13px 3px; min-height: 58px; }
  .details { grid-template-columns: 1fr; gap: 21px; }
  .subsection { padding: 23px 19px; border-radius: 18px; }
  .history-card, .task-card { padding: 22px 18px; }
  .history-card:first-child, .task-card:first-child { padding-top: 22px; }
  .history-card h3, .task-card h3 { font-size: 22px; }
  .task-card .inline-actions>* { min-height: 48px; }
  .task-card .inline-actions .mini { font-size: 15px; padding: 10px 12px; }
  .plan-step { padding: 19px; }
  .auth-card h1 { font-size: 32px; }
}
@media(max-width:360px) {
  .studio-brand small { display: none; }
  .studio-brand { font-size: 17px; gap: 8px; }
  .studio-header-inner { padding: 15px; gap: 10px; }
  .studio-mark { width: 36px; height: 36px; }
  .studio-account { gap: 0; }
}
@media(prefers-reduced-motion:no-preference) {
  .create-tile, .recent-tile, .clientcard { transition: background .15s ease, border-color .15s ease; }
  .clientcard:hover { border-color: var(--border-strong); }
}
/* Daily work, progressive forms and recovery tools share the existing studio palette. */
.connection-bar{display:flex;align-items:center;justify-content:flex-end;gap:15px;color:var(--muted);font-size:13px;margin-bottom:14px;min-height:35px}.connection-bar .tiny-action{font-size:13px;min-height:36px}.error,.save-state.error{color:var(--red)}
.save-state{font-size:14px;color:var(--muted);line-height:1.5;padding:14px 24px;margin:0;overflow-wrap:anywhere}.draft-banner{padding:17px 22px;background:var(--accent-soft);border-bottom:1px solid var(--border)}.draft-banner p{margin:0 0 10px;font-size:15px}.draft-banner .inline-actions{display:flex;gap:9px;flex-wrap:wrap}
.form-details{grid-column:1/-1;border-top:1px solid var(--border);padding-top:18px}.form-details summary{cursor:pointer;min-height:48px;font-weight:600;font-size:16px}.form-details>.formgrid{padding-top:20px}.getting-started{border:1px solid var(--border);background:var(--surface);padding:22px 26px;margin-bottom:25px;border-radius:14px}.getting-started h2{margin:0 0 16px;font-size:21px}.getting-started ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;padding-left:22px}.getting-started li{padding-left:3px;font-size:15px}.getting-started li>*{display:block}.getting-started .btn{margin-top:10px}.getting-started li.complete{color:var(--green)}
.trash-item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;border-bottom:1px solid var(--border)}.trash-item>div{min-width:0}.trash-item p{margin:6px 0;overflow-wrap:anywhere}.trash-item .btn{flex-shrink:0}.next-payment{font-size:15px;margin:17px 0 10px}.debt-filter{font-size:13px;color:var(--muted);display:grid;gap:4px}.debt-filter select{min-height:45px;padding:7px 10px;background:var(--surface);border:1px solid var(--border);border-radius:8px;color:var(--ink);max-width:100%}.schedule-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px;margin:18px 0}.schedule-row label{font-size:14px;display:grid;gap:6px}.schedule-row input{min-width:0;width:100%;min-height:48px;border:1px solid var(--border-strong);border-radius:8px;padding:8px;background:var(--surface);color:var(--ink)}.restore-confirm{display:flex;gap:12px;align-items:flex-start;line-height:1.6}.restore-confirm input{width:24px;height:24px;flex-shrink:0;accent-color:#b36d00;margin-top:2px}.file-label{display:grid;gap:14px;font-size:16px}.file-label input{width:100%;font-size:15px;min-height:48px}.panel .inline-actions{display:flex;gap:10px;flex-wrap:wrap}.pending-freeze .formgrid{opacity:.65}
@media(max-width:600px){.connection-bar{justify-content:space-between}.getting-started{padding:20px}.getting-started ol{grid-template-columns:1fr;gap:18px}.getting-started li{display:list-item}.getting-started li>span{display:inline}.getting-started .btn{display:inline-flex;float:right;margin:0 0 6px 8px}.trash-item{flex-wrap:wrap;gap:12px}.schedule-row{gap:9px}.schedule-row .mini{grid-column:1/-1;justify-self:end}.schedule-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.save-state{padding:16px 20px}.form-details>.formgrid{padding:20px 0 0}.next-payment{font-size:16px}}

/* Scroll the whole editor on phones and short windows. A separate field
   scroller leaves almost no space when actions wrap above the keyboard. */
@media (max-width:600px), (max-height:520px) {
  .modal-body:has(>#record-form) { display:block; overflow:auto; }
  .modal #record-form { display:block; }
  .modal #record-form>.formgrid { overflow:visible; }
}
.confirm-overlay{position:fixed;inset:0;background:#1118;z-index:500;display:flex;align-items:center;justify-content:center;padding:20px}.confirm-overlay section{width:min(480px,100%);background:var(--surface);color:var(--ink);padding:28px;border-radius:16px;box-shadow:var(--shadow)}.confirm-overlay h2{font-size:22px;margin:0 0 15px}.confirm-overlay .inline-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}
.ordercard{min-width:0}.order-heading h3,.next-payment{overflow-wrap:anywhere}.order-footer .inline-actions{flex-wrap:wrap;max-width:100%}.order-footer .inline-actions>*{white-space:normal;overflow-wrap:anywhere;min-width:0}
.focus-payment{font-size:21px;line-height:1.45;margin:10px 0 0;overflow-wrap:anywhere}.focus-payment small{font-size:14px;font-weight:400;color:var(--muted)}.phone-actions{margin-top:12px}.phone-actions .btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
@media(max-width:600px){.order-footer .inline-actions>*{flex:1 1 140px}.order-payment{flex-wrap:wrap}.order-payment .payment-status{margin-left:auto}.order-total,.order-payment strong{white-space:normal;overflow-wrap:anywhere}.focus-content>div:last-child{min-width:0}.focus-payment{font-size:19px}.phone-actions>*{flex:1 1 130px}}

/* Client details and attendance share the existing mobile scrolling layout. */
.update-row{display:flex;align-items:end;gap:10px;padding:12px 0;border-bottom:1px solid var(--border);flex-wrap:wrap}
.update-row>label{display:flex;flex:1 1 150px;min-width:0;flex-direction:column;gap:6px;font-size:13px}
.update-row input,.update-row select{width:100%;min-width:0;box-sizing:border-box}
.update-row .update-check,.update-check{display:flex;align-items:center;gap:9px;font-size:14px}
.update-check input[type=checkbox]{width:19px;height:19px;flex:0 0 19px}
.item-row>label:first-child,.step-row>label:nth-child(2){flex:2 1 220px}
.client-photo-panel{display:flex;align-items:center;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.client-photo{width:88px;height:88px;object-fit:cover;border-radius:18px}
.preview-photo{width:160px;height:160px;margin-bottom:18px}
.order-items{padding-left:20px;font-size:14px;overflow-wrap:anywhere}
.report-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.report-stats>div{padding:14px;background:var(--surface-soft);border-radius:12px}
.report-stats dt{font-size:13px}.report-stats dd{margin:4px 0 0;font-size:26px;font-weight:650}
.due-alert{position:fixed;right:18px;bottom:92px;z-index:65;max-width:360px;background:var(--surface);color:var(--ink,#282b36);border:1px solid var(--border);border-radius:16px;padding:16px;box-shadow:0 8px 32px #0002;font-size:14px}
.due-alert>div{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
@media(max-width:520px){.update-row>label,.item-row>label:first-child,.step-row>label:nth-child(2){flex:1 1 100%}.update-row>.update-check{flex-direction:row}.update-row>.mini{margin-left:auto}.due-alert{left:12px;right:12px;max-width:none;bottom:86px}}

.client-list-photo{object-fit:cover;padding:0}
