:root {
  --forest: #183d34;
  --forest-2: #245647;
  --ink: #202a25;
  --muted: #7c8780;
  --line: #e7eae5;
  --canvas: #f6f7f4;
  --paper: #fff;
  --mint: #dcebe1;
  --lime: #c5df75;
  --coral: #d8785e;
  --gold: #c79842;
  --red: #b95448;
  --shadow: 0 16px 44px rgba(28, 47, 38, .11);
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(90, 150, 108, .36); outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 252px; padding: 25px 17px 16px; color: #f5f8f3; background: var(--forest); }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; padding: 0 7px 33px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px 13px 13px 3px; background: var(--lime); color: var(--forest); font: 700 25px 'Playfair Display', serif; }
.brand strong { display: block; font: 600 23px 'Playfair Display', serif; line-height: 1.05; }
.brand small { display: block; margin-top: 5px; color: #adc4b8; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.workspace-label { padding: 0 11px 11px; color: #8ca79a; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.main-nav { display: grid; gap: 4px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 43px; width: 100%; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #c4d2cb; text-align: left; font-size: 13px; font-weight: 500; transition: color .16s, background .16s; }
.nav-link:hover { background: rgba(255,255,255,.07); color: white; }
.nav-link.active { background: #2c5748; color: white; }
.nav-link.active::before { position: absolute; left: -17px; width: 3px; height: 23px; border-radius: 0 4px 4px 0; background: var(--lime); content: ''; }
.nav-glyph { display: inline-grid; place-items: center; width: 17px; color: #adc5b8; font-size: 17px; }
.nav-link.active .nav-glyph { color: var(--lime); }
.nav-count { margin-left: auto; color: #a7bfb2; font-size: 11px; }
.sidebar-spacer { flex: 1; min-height: 22px; }
.studio-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 11px; margin: 0 2px 17px; padding: 15px 14px; border: 1px solid rgba(222,239,217,.14); border-radius: 7px; background: linear-gradient(140deg, rgba(236,242,204,.1), rgba(112,153,121,.08)); }
.studio-card::after { position: absolute; right: -28px; bottom: -35px; width: 112px; height: 112px; border: 1px solid rgba(213,229,181,.21); border-radius: 50%; content: ''; }
.studio-card-kicker { color: #a6c4b2; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.studio-card strong { font: 500 18px/1.35 'Playfair Display', serif; }
.studio-card-line { width: 26px; height: 2px; background: var(--lime); }
.studio-card small { color: #abc3b5; font-size: 8px; letter-spacing: .65px; }
.settings-link { margin-bottom: 9px; }
.user-mini { display: flex; align-items: center; gap: 10px; padding: 13px 5px 1px; border-top: 1px solid rgba(255,255,255,.12); }
.user-mini strong, .user-mini small { display: block; }
.user-mini strong { font-size: 11px; font-weight: 600; }
.user-mini small { margin-top: 3px; color: #a4bbaf; font-size: 10px; }
.user-more { margin-left: auto; color: #a4bbaf; font-size: 19px; }
.avatar { display: inline-grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #4c473d; font-size: 10px; font-weight: 700; }
.avatar-olive { background: #c4d7b7; }
.avatar-rose { background: #f0d5c9; }
.avatar-lilac { background: #ded9c5; }
.avatar-blue { background: #cbded8; }
.main-area { min-height: 100vh; margin-left: 252px; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; height: 70px; padding: 0 37px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.topbar-context { display: flex; align-items: center; gap: 10px; color: #59645d; font-size: 11px; font-weight: 600; }
.context-dot, .portal-dot { width: 7px; height: 7px; border-radius: 50%; background: #7bab68; }
.context-divider { color: #c4cbc4; }
.topbar-tools { display: flex; align-items: center; gap: 15px; }
.search-box { display: flex; align-items: center; gap: 8px; width: 210px; height: 35px; padding: 0 10px; border: 1px solid #e9ece7; border-radius: 5px; color: #9aa39b; }
.search-box span { font-size: 21px; transform: rotate(-15deg); }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.search-box input::placeholder { color: #a1a9a2; }
.portal-switch { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border: 1px solid #e2e9df; border-radius: 5px; background: #f8faf6; color: #506256; font-size: 10px; font-weight: 600; }
.portal-dot { width: 6px; height: 6px; background: var(--coral); }
.switch-arrow { margin-left: 3px; font-size: 13px; }
.icon-button { position: relative; display: grid; place-items: center; width: 35px; height: 35px; border: 0; border-radius: 5px; background: transparent; color: #59665d; font-size: 17px; }
.icon-button:hover { background: #f0f3ef; }
.notification-button i { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: var(--coral); }
.top-avatar { width: 30px; height: 30px; }
.menu-button { display: none; }
.page-content { max-width: 1500px; margin: 0 auto; padding: 34px 38px 55px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; animation: arrive .34s ease both; }
.eyebrow { margin: 0 0 8px; color: #75877b; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; color: var(--ink); font: 600 31px/1.13 'Playfair Display', serif; letter-spacing: 0; }
.heading-note { margin: 0; color: var(--muted); font-size: 11px; }
.heading-actions { display: flex; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 37px; padding: 0 14px; border: 1px solid transparent; border-radius: 5px; font-size: 10px; font-weight: 700; transition: transform .15s, background .15s; }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: var(--forest-2); }
.button-quiet { border-color: #e1e7e0; background: white; color: #41584a; }
.button-quiet:hover { background: #f3f6f1; }
.button-danger { border-color: #eedad5; background: #fff8f6; color: var(--red); }
.button-small { min-height: 30px; padding: 0 10px; font-size: 9px; }
.button-plus { font-size: 17px; font-weight: 400; line-height: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; animation: arrive .4s .04s ease both; }
.stat-card { min-height: 120px; padding: 16px 17px 13px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-label { color: #69766d; font-size: 10px; font-weight: 600; }
.stat-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 5px; background: #edf3ea; color: #51775c; font-size: 14px; }
.stat-value { display: flex; align-items: baseline; gap: 8px; }
.stat-value strong { font: 600 24px 'Playfair Display', serif; }
.stat-change { color: #5e8a63; font-size: 9px; font-weight: 600; }
.stat-foot { margin-top: 3px; color: #9aa39b; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .9fr); gap: 16px; }
.dashboard-column { display: grid; align-content: start; gap: 16px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.panel-header { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 17px; border-bottom: 1px solid #edf0eb; }
.panel-header h2 { margin: 0; color: #303c34; font: 600 15px 'Playfair Display', serif; }
.panel-subtitle { margin-top: 3px; color: #8a958d; font-size: 9px; }
.text-link { border: 0; background: transparent; color: #52765c; font-size: 9px; font-weight: 700; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.data-table th { height: 34px; padding: 0 14px; background: #fbfcfa; color: #8d9890; font-size: 8px; font-weight: 700; letter-spacing: .55px; text-transform: uppercase; }
.data-table td { height: 53px; padding: 7px 14px; border-top: 1px solid #f0f2ee; color: #58645c; font-size: 9px; }
.data-table tbody tr { cursor: pointer; transition: background .12s; }
.data-table tbody tr:hover { background: #fafcf9; }
.person-cell { display: flex; align-items: center; gap: 8px; color: #2f3a33; font-size: 10px; font-weight: 600; }
.person-cell .avatar { width: 27px; height: 27px; font-size: 8px; }
.cell-sub { display: block; margin-top: 3px; color: #98a19a; font-size: 8px; font-weight: 400; }
.category-label { color: #637268; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; background: #eff5ec; color: #52704e; font-size: 8px; font-weight: 700; }
.status::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ''; }
.status.progress { background: #edf3f6; color: #55717f; }
.status.fitting { background: #f7f0e1; color: #a4772b; }
.status.overdue, .status.due { background: #f9eae6; color: #b65f4c; }
.status.draft { background: #f0f0ec; color: #778078; }
.due-date { color: #45534a; font-weight: 600; }
.due-date.soon { color: #b5684e; }
.schedule-list { padding: 2px 16px 5px; }
.schedule-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; min-height: 57px; border-bottom: 1px solid #f0f2ee; }
.schedule-item:last-child { border-bottom: 0; }
.schedule-time { color: #6b826e; font-size: 9px; font-weight: 700; }
.schedule-person { display: flex; align-items: center; gap: 8px; }
.schedule-person .avatar { width: 27px; height: 27px; font-size: 8px; }
.schedule-person strong { display: block; color: #39453d; font-size: 9px; }
.schedule-person small { display: block; margin-top: 3px; color: #929d94; font-size: 8px; }
.schedule-type { padding: 5px 7px; border-radius: 3px; background: #f1f5ee; color: #668067; font-size: 8px; }
.revenue-panel { padding-bottom: 11px; }
.revenue-head { display: flex; align-items: center; gap: 12px; }
.revenue-select, .filter-select { height: 29px; padding: 0 8px; border: 1px solid #e8ece7; border-radius: 4px; background: white; color: #6c786f; font-size: 9px; }
.revenue-total { display: flex; align-items: baseline; gap: 9px; padding: 13px 17px 0; }
.revenue-total strong { font: 600 23px 'Playfair Display', serif; }
.revenue-total span { color: #69866a; font-size: 9px; font-weight: 600; }
.chart { display: flex; align-items: end; justify-content: space-between; gap: 9px; height: 91px; margin: 11px 20px 0; padding: 0 3px; border-bottom: 1px solid #edf0eb; }
.chart-column { display: flex; flex: 1; flex-direction: column; justify-content: end; align-items: center; height: 100%; gap: 5px; }
.chart-bar { width: min(22px, 75%); min-height: 6px; border-radius: 3px 3px 0 0; background: #c7dacb; transition: height .2s; }
.chart-bar.current { background: var(--forest-2); }
.chart-column small { position: absolute; margin-top: 4px; transform: translateY(100%); color: #a0aaa1; font-size: 8px; }
.category-mix { display: flex; gap: 15px; padding: 22px 17px 3px; }
.category-mix span { display: flex; align-items: center; gap: 5px; color: #778179; font-size: 8px; }
.category-mix i { width: 7px; height: 7px; border-radius: 50%; background: #779d77; }
.category-mix span:nth-child(2) i { background: #cf8d6c; }
.category-mix span:nth-child(3) i { background: #c8a851; }
.category-chart { padding: 11px 17px 15px; }
.category-summary { display: grid; gap: 13px; }
.category-row { display: grid; grid-template-columns: 78px minmax(0,1fr) 18px; align-items: center; gap: 9px; color: #6d796f; font-size: 9px; }
.category-row strong { color: #4d5d51; text-align: right; font-size: 9px; }
.category-track { overflow: hidden; height: 6px; border-radius: 6px; background: #eff2ed; }
.category-track i { display: block; height: 100%; border-radius: inherit; }
.empty-state { padding: 31px 18px; color: #869188; text-align: center; font-size: 11px; }
.empty-state strong { display: block; margin-bottom: 6px; color: #37463b; font: 500 17px 'Playfair Display', serif; }
.view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.view-toolbar .search-box { width: 240px; background: white; }
.toolbar-filters { display: flex; gap: 7px; }
.client-directory { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; }
.client-row { display: grid; grid-template-columns: minmax(190px,1.2fr) minmax(100px,.8fr) minmax(90px,.6fr) minmax(100px,.7fr) 45px; align-items: center; gap: 13px; min-height: 67px; padding: 8px 18px; border-bottom: 1px solid #eef1ed; cursor: pointer; }
.client-row:last-child { border-bottom: 0; }
.client-row:hover { background: #fafcf9; }
.client-name { display: flex; align-items: center; gap: 10px; }
.client-name strong { display: block; color: #303b34; font-size: 10px; }
.client-name small { display: block; margin-top: 4px; color: #99a29a; font-size: 8px; }
.row-meta strong { display: block; color: #536057; font-size: 9px; font-weight: 500; }
.row-meta small { display: block; margin-top: 4px; color: #9aa39b; font-size: 8px; }
.row-more { border: 0; background: transparent; color: #8e9b91; font-size: 19px; }
.profile-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 15px; align-items: start; }
.profile-summary { padding: 21px 18px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.profile-top { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 17px; border-bottom: 1px solid #edf0eb; }
.profile-top .avatar { width: 47px; height: 47px; margin-bottom: 12px; font-size: 12px; }
.profile-top h2 { margin: 0 0 4px; font: 600 18px 'Playfair Display', serif; }
.profile-top p { margin: 0; color: #849087; font-size: 9px; }
.profile-contact { display: grid; gap: 12px; padding: 16px 0; border-bottom: 1px solid #edf0eb; }
.profile-contact div { color: #67736a; font-size: 9px; overflow-wrap: anywhere; }
.profile-contact strong { display: block; margin-bottom: 4px; color: #9ba59d; font-size: 8px; font-weight: 600; }
.profile-summary .button { width: 100%; margin-top: 15px; }
.profile-main { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: white; }
.profile-tabs { display: flex; gap: 0; overflow-x: auto; padding: 0 15px; border-bottom: 1px solid #edf0eb; scrollbar-width: thin; }
.profile-tab { position: relative; flex: 0 0 auto; padding: 15px 10px 13px; border: 0; background: transparent; color: #818d83; font-size: 9px; font-weight: 600; }
.profile-tab.active { color: var(--forest); }
.profile-tab.active::after { position: absolute; right: 9px; bottom: -1px; left: 9px; height: 2px; background: var(--forest-2); content: ''; }
.profile-panel { min-height: 300px; padding: 18px; }
.record-note { margin-top: 17px; padding: 13px; border-radius: 4px; background: #f7f9f5; }
.record-note small { color: #8c988e; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.record-note p { margin: 7px 0 0; color: #627066; font-size: 10px; line-height: 1.6; }
.profile-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.profile-panel-head h3 { margin: 0 0 4px; font: 600 16px 'Playfair Display', serif; }
.profile-panel-head p { margin: 0; color: #8a958c; font-size: 9px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; border: 1px solid #edf0ec; border-radius: 5px; background: #edf0ec; overflow: hidden; }
.detail-item { min-height: 67px; padding: 12px; background: white; }
.detail-item small { display: block; margin-bottom: 7px; color: #929c94; font-size: 8px; }
.detail-item strong { color: #3d4a40; font-size: 10px; font-weight: 600; }
.measurement-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.measurement-item { padding: 12px; border: 1px solid #edf0eb; border-radius: 4px; background: #fcfdfb; }
.measurement-item small { display: block; color: #8b978d; font-size: 8px; }
.measurement-item strong { display: block; margin-top: 8px; font: 600 17px 'Playfair Display', serif; }
.measurement-item span { margin-left: 3px; color: #8b978d; font: 9px 'DM Sans', sans-serif; }
.record-list { display: grid; gap: 0; }
.record-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 8px 2px; border-bottom: 1px solid #edf0ec; }
.record-item:last-child { border-bottom: 0; }
.record-item strong { display: block; color: #3a473e; font-size: 10px; }
.record-item small { display: block; margin-top: 5px; color: #929c94; font-size: 8px; }
.image-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.inspiration-image { overflow: hidden; border-radius: 4px; background: #e7ebe3; }
.inspiration-image img { display: block; width: 100%; aspect-ratio: 1 / .83; object-fit: cover; }
.inspiration-image small { display: block; padding: 8px; background: white; color: #728077; font-size: 8px; }
.note-box { width: 100%; min-height: 150px; padding: 12px; border: 1px solid #e7ece5; border-radius: 4px; color: #516056; font-size: 10px; line-height: 1.7; }
.table-view { border: 1px solid var(--line); border-radius: 6px; background: white; }
.table-view .data-table td { height: 60px; }
.table-view .data-table th { padding-left: 17px; }
.table-view .data-table td { padding-left: 17px; }
.billing-panel { margin-bottom: 14px; }
.payment-table { overflow: hidden; }
.payment-table .panel-header .search-box { flex: 0 1 205px; width: 205px; }
.payment-table .panel-header .search-box input { display: block; }
.inline-link { color: #57775d; font-size: 9px; font-weight: 600; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }
.portal-next { margin: 21px 0 0; padding-top: 17px; border-top: 1px solid #edf0eb; }
.table-person { display: flex; align-items: center; gap: 8px; color: #39463d; font-weight: 600; }
.table-person .avatar { width: 27px; height: 27px; font-size: 8px; }
.amount { color: #344439 !important; font-weight: 700; }
.portal-view { max-width: 980px; margin: 2px auto; overflow: hidden; border: 1px solid #e4e9e1; border-radius: 7px; background: white; box-shadow: 0 10px 35px rgba(36,62,47,.06); }
.portal-masthead { display: flex; align-items: center; justify-content: space-between; min-height: 57px; padding: 0 24px; border-bottom: 1px solid #edf0eb; }
.portal-masthead .brand { padding: 0; color: var(--forest); }
.portal-masthead .brand-mark { width: 29px; height: 29px; border-radius: 9px 9px 9px 2px; font-size: 19px; }
.portal-masthead .brand strong { font-size: 18px; }
.portal-masthead .brand small { font-size: 7px; }
.portal-user { display: flex; align-items: center; gap: 8px; color: #617067; font-size: 9px; }
.portal-hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 258px; background: #e9eee4; }
.portal-hero-copy { align-self: center; padding: 30px 36px; }
.portal-hero-copy .eyebrow { color: #6f856c; }
.portal-hero-copy h2 { max-width: 400px; margin: 0 0 10px; font: 500 30px/1.12 'Playfair Display',serif; }
.portal-hero-copy p { max-width: 360px; margin: 0 0 17px; color: #69776c; font-size: 10px; line-height: 1.7; }
.portal-hero-image { min-height: 258px; background: linear-gradient(90deg, rgba(233,238,228,.15), transparent 30%), url('https://images.unsplash.com/photo-1594552072238-b8a33785b261?auto=format&fit=crop&w=1000&q=80') center 42% / cover; }
.portal-content { padding: 22px 26px 26px; }
.portal-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.portal-section-heading h3 { margin: 0; font: 600 17px 'Playfair Display',serif; }
.portal-section-heading button { border: 0; background: none; color: #668069; font-size: 9px; font-weight: 700; }
.portal-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.portal-card { min-height: 108px; padding: 13px; border: 1px solid #e8ece6; border-radius: 5px; }
.portal-card small { color: #8a968c; font-size: 8px; }
.portal-card strong { display: block; margin: 9px 0 5px; color: #344238; font: 600 17px 'Playfair Display',serif; }
.portal-card span { color: #708077; font-size: 8px; }
.category-chips { display: flex; gap: 7px; }
.category-chip { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 3px; background: #edf3e8; color: #617861; font-size: 8px; font-weight: 700; }
.auth-screen { min-height: 100vh; background: radial-gradient(circle at top right, #e8efe5, transparent 42%), var(--canvas); }
.auth-screen .sidebar, .auth-screen .topbar, .auth-screen .mobile-bottom-nav { display: none !important; }
.auth-screen .main-area { display: grid; min-height: 100vh; margin: 0; place-items: center; }
.auth-screen .page-content { width: min(100%, 520px); padding: 24px; }
.auth-card { padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); }
.auth-card > .brand-mark { margin-bottom: 26px; }
.auth-card h1 { margin-bottom: 10px; }
.auth-card .heading-note { margin-bottom: 23px; }
.auth-card form { display: grid; gap: 15px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 20px; padding: 4px; border-radius: 5px; background: #f2f5f0; }
.auth-tabs button { min-height: 36px; border: 0; border-radius: 4px; background: transparent; color: #758178; font-size: 12px; font-weight: 700; }
.auth-tabs button.active { background: white; color: #264b3d; box-shadow: 0 1px 4px rgba(31,55,40,.1); }
.auth-card form hr { width: 100%; margin: 6px 0 0; border: 0; border-top: 1px solid #e8ece6; }
.auth-card form .eyebrow { margin: 0; }
.auth-card input[type="file"] { height: auto; padding: 8px; }
.demo-login { margin-top: -5px !important; }
.auth-card .form-field { gap: 7px; }
.auth-card .form-field span { color: #5e6b61; font-size: 12px; font-weight: 700; }
.auth-card input, .auth-card select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #e3e9e1; border-radius: 4px; background: #fff; color: #344138; }
.auth-card .button { min-height: 43px; margin-top: 4px; }
.auth-card small { color: #7b887e; font-size: 11px; line-height: 1.5; }
.auth-error { margin: 0 0 17px; padding: 10px 12px; border-radius: 4px; background: #fff1ed; color: #9a453a; font-size: 12px; }
.topbar-context #demo-workspace-badge { margin-left: 8px; padding: 4px 7px; border-radius: 3px; background: #fff0d5; color: #80591d; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.studio-logo-preview { display: block; width: 72px; height: 72px; margin: 0 0 15px; border: 1px solid #e8ece6; border-radius: 6px; object-fit: contain; }
.portal-studio-logo { width: 42px; height: 42px; border: 1px solid #e8ece6; border-radius: 5px; object-fit: contain; }
.authenticated-portal .sidebar, .authenticated-portal #global-search-box, .authenticated-portal .notification-button, .authenticated-portal .top-avatar, .authenticated-portal .menu-button { display: none !important; }
.authenticated-portal .main-area { margin-left: 0; }
.authenticated-portal .topbar { padding-left: 24px; }
.modal-layer { position: fixed; z-index: 80; inset: 0; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(18,38,29,.45); backdrop-filter: blur(3px); }
.modal-layer.open { display: flex; animation: fade-in .16s ease both; }
.modal { width: min(100%, 510px); max-height: min(90vh, 760px); overflow-y: auto; border-radius: 7px; background: white; box-shadow: var(--shadow); animation: modal-in .19s ease both; }
.modal.wide { width: min(100%, 720px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid #edf0eb; }
.modal-header h2 { margin: 0 0 4px; font: 600 20px 'Playfair Display',serif; }
.modal-header p { margin: 0; color: #89948b; font-size: 9px; }
.modal-close { width: 29px; height: 29px; border: 0; border-radius: 4px; background: #f3f5f1; color: #6e7b71; font-size: 18px; }
.modal-form { padding: 17px 22px 21px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 12px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #5e6b61; font-size: 9px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { min-width: 0; width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #e3e9e1; border-radius: 4px; background: #fff; color: #344138; font-size: 10px; }
.form-field textarea { min-height: 75px; resize: vertical; }
.form-help { color: #98a29a; font-size: 8px; line-height: 1.5; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #edf0eb; }
.toast-stack { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.toast { min-width: 210px; max-width: calc(100vw - 36px); padding: 12px 15px; border-radius: 5px; background: var(--forest); color: white; box-shadow: var(--shadow); font-size: 10px; animation: toast-in .2s ease both; }
.toast.error { background: #a74f43; }
.mobile-scrim { display: none; }
.mobile-bottom-nav { display: none; }
.mobile-bottom-nav[hidden] { display: none; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.settings-card { padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.settings-card h2 { margin: 0 0 8px; font: 600 16px 'Playfair Display',serif; }
.settings-card p { margin: 0; color: #829087; font-size: 9px; line-height: 1.6; }
.settings-categories { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.settings-card .button { margin-top: 15px; }
.studio-summary p { line-height: 1.9; }
.search-results { display: grid; gap: 16px; }
.search-group { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; }
.search-group h2 { display: flex; align-items: center; gap: 8px; min-height: 50px; margin: 0; padding: 0 17px; border-bottom: 1px solid #edf0eb; font: 600 17px 'Playfair Display', serif; }
.search-group h2 span { display: inline-grid; place-items: center; min-width: 23px; height: 23px; border-radius: 12px; background: #edf3ea; color: #58705d; font: 700 12px 'DM Sans', sans-serif; }
.search-result-list { display: grid; }
.search-result { position: relative; display: grid; grid-template-columns: 90px minmax(180px, .7fr) minmax(240px, 1fr) 24px; align-items: center; gap: 12px; min-height: 58px; padding: 8px 17px; border: 0; border-bottom: 1px solid #edf0eb; background: white; color: #344138; text-align: left; }
.search-result:last-child { border-bottom: 0; }
.search-result:hover { background: #fafcf9; }
.search-result strong { font-size: 13px; }
.search-result small { color: #7c8980; font-size: 12px; }
.result-type { color: #728278; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.notification-list { display: grid; padding: 4px 22px; }
.notification-item { display: grid; grid-template-columns: 10px 1fr 20px; align-items: center; gap: 11px; min-height: 64px; padding: 8px 2px; border: 0; border-bottom: 1px solid #edf0eb; background: white; text-align: left; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: #fafcf9; }
.notification-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.notification-item strong, .notification-item small { display: block; }
.notification-item strong { color: #35423a; font-size: 13px; }
.notification-item small { margin-top: 4px; color: #849087; font-size: 12px; }
.info-footer { margin: 0 22px 20px; }

/* Core interface text remains readable at normal and enlarged browser zoom. */
.heading-note, .panel-subtitle, .stat-foot, .stat-change, .settings-card p, .profile-panel-head p, .record-note p, .form-help { font-size: 12px; }
.button, .portal-switch, .search-box input, .revenue-select, .filter-select, .form-field input, .form-field select, .form-field textarea, .note-box { font-size: 13px; }
.form-field label, .stat-label, .text-link, .schedule-time, .schedule-person strong, .schedule-type, .client-name strong, .row-meta strong, .profile-contact div, .profile-tab, .detail-item strong, .record-item strong, .inline-link, .portal-section-heading button { font-size: 12px; }
.data-table th, .eyebrow, .workspace-label, .profile-contact strong, .detail-item small, .measurement-item small, .record-item small, .category-chip, .portal-card small, .portal-card span { font-size: 11px; }
.data-table td, .client-name small, .row-meta small, .profile-top p { font-size: 12px; }
@keyframes arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(7px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1080px) {
  .sidebar { width: 220px; }
  .main-area { margin-left: 220px; }
  .topbar { padding: 0 25px; }
  .page-content { padding: 30px 25px 45px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.3fr) minmax(255px,.9fr); }
  .client-row { grid-template-columns: minmax(170px,1.2fr) minmax(90px,.75fr) minmax(80px,.6fr) 35px; }
  .client-row > :nth-child(4) { display: none; }
}
@media (max-width: 800px) {
  .sidebar { width: 252px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: 12px 0 35px rgba(12,31,22,.2); }
  .mobile-scrim.open { position: fixed; z-index: 25; inset: 0; display: block; background: rgba(18,38,29,.38); }
  .main-area { margin-left: 0; }
  .topbar { height: 60px; padding: 0 18px; }
  .menu-button { display: grid; margin-left: -8px; }
  .topbar-context { margin-right: auto; margin-left: 9px; }
  .topbar-tools { gap: 8px; }
  .search-box { width: 36px; height: 34px; justify-content: center; border-color: transparent; }
  .search-box input { display: none; }
  .payment-table .panel-header .search-box { flex-basis: 180px; width: 180px; }
  .payment-table .panel-header .search-box input { display: block; }
  .search-box span { font-size: 20px; }
  .search-box.expanded { position: absolute; right: 129px; left: 62px; z-index: 2; width: auto; justify-content: flex-start; border-color: #e3e9e1; background: white; }
  .search-box.expanded input { display: block; }
  .portal-switch { width: 35px; justify-content: center; padding: 0; }
  .portal-switch #portal-label, .switch-arrow { display: none; }
  .notification-button, .top-avatar { display: none; }
  .page-content { padding: 27px 20px 85px; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .stat-card { min-height: 107px; padding: 13px; }
  .stat-top { margin-bottom: 9px; }
  .stat-value strong { font-size: 22px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-column { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .dashboard-column:last-child { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; padding: 13px; }
  .profile-top { flex-direction: row; align-items: center; gap: 10px; padding: 0; border: 0; }
  .profile-top .avatar { margin: 0; }
  .profile-top h2 { font-size: 15px; }
  .profile-top p { font-size: 8px; }
  .profile-contact { display: none; }
  .profile-summary .button { grid-column: 2; grid-row: 1; width: auto; margin: 0; }
  .mobile-bottom-nav { position: fixed; z-index: 19; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5,1fr); height: 60px; padding: 4px 7px max(4px, env(safe-area-inset-bottom)); border-top: 1px solid #e7ebe4; background: rgba(255,255,255,.97); }
  .mobile-bottom-nav button { display: grid; place-content: center; gap: 3px; border: 0; background: transparent; color: #7b877d; font-size: 8px; }
  .mobile-bottom-nav button span:first-child { font-size: 15px; }
  .mobile-bottom-nav button.active { color: var(--forest); font-weight: 700; }
}
@media (max-width: 560px) {
  .payment-table .panel-header { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .payment-table .panel-header .search-box { flex: 1 1 100%; width: 100%; }
  .topbar { padding: 0 12px; }
  .topbar-context { gap: 6px; font-size: 9px; }
  .context-divider, #context-name { display: none; }
  .page-content { padding: 23px 13px 78px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  h1 { font-size: 27px; }
  .heading-note { max-width: 220px; line-height: 1.5; }
  .heading-actions { flex-direction: column; align-items: stretch; }
  .heading-actions .button { min-height: 33px; padding: 0 9px; white-space: nowrap; font-size: 9px; }
  .stat-grid { gap: 8px; margin-bottom: 12px; }
  .stat-card { min-height: 99px; padding: 11px; }
  .stat-label { font-size: 9px; }
  .stat-icon { width: 23px; height: 23px; }
  .stat-value strong { font-size: 20px; }
  .stat-change { font-size: 8px; }
  .dashboard-grid, .dashboard-column { gap: 11px; }
  .dashboard-column { grid-template-columns: 1fr; }
  .dashboard-column:last-child { grid-template-columns: 1fr; }
  .panel-header { min-height: 51px; padding: 0 12px; }
  .panel-header h2 { font-size: 14px; }
  .data-table th { padding: 0 10px; }
  .data-table td { padding: 6px 10px; }
  .table-wrap { scrollbar-width: thin; }
  .view-toolbar { align-items: stretch; flex-direction: column; }
  .view-toolbar .search-box { width: 100%; }
  .view-toolbar .search-box input { display: block; }
  .toolbar-filters { overflow-x: auto; }
  .client-row { grid-template-columns: minmax(150px,1fr) minmax(70px,.55fr) 29px; gap: 6px; padding: 8px 9px; }
  .client-row > :nth-child(3), .client-row > :nth-child(4) { display: none; }
  .client-name { gap: 7px; }
  .client-name .avatar { width: 27px; height: 27px; }
  .client-name strong { font-size: 9px; }
  .row-meta strong { font-size: 8px; }
  .profile-tabs { padding: 0 7px; }
  .profile-tab { padding: 13px 8px 11px; font-size: 8px; }
  .profile-panel { min-height: 260px; padding: 13px; }
  .profile-panel-head { align-items: center; }
  .profile-panel-head h3 { font-size: 15px; }
  .profile-panel-head .button { padding: 0 9px; font-size: 8px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .measurement-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .measurement-item { padding: 10px; }
  .image-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .table-view { margin: 0 -1px; }
  .table-view .data-table { min-width: 610px; }
  .portal-masthead { min-height: 51px; padding: 0 12px; }
  .portal-user { font-size: 8px; }
  .portal-hero { grid-template-columns: 1fr; }
  .portal-hero-copy { padding: 23px 18px 12px; }
  .portal-hero-copy h2 { max-width: 300px; font-size: 26px; }
  .portal-hero-image { min-height: 165px; background-position: center 35%; }
  .portal-content { padding: 17px 13px; }
  .portal-cards { grid-template-columns: 1fr; }
  .portal-card { min-height: 86px; }
  .settings-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 11px; }
  .form-field.full { grid-column: auto; }
  .modal-layer { align-items: flex-end; padding: 0; }
  .modal { width: 100%; max-height: 92vh; border-radius: 10px 10px 0 0; }
  .modal-header { padding: 17px 17px 12px; }
  .modal-form { padding: 14px 17px max(18px, env(safe-area-inset-bottom)); }
  .search-result { grid-template-columns: 62px minmax(0, 1fr) 20px; gap: 8px; padding: 10px 12px; }
  .search-result small { grid-column: 2; }
  .search-result .row-more { grid-column: 3; grid-row: 1 / span 2; }
  .client-name strong, .row-meta strong, .profile-tab, .profile-panel-head .button, .portal-user { font-size: 12px; }
}
