/* Shared product surfaces. Feature styles own their content grids and states. */
:root {
  --studio-canvas:var(--chalk);
  --studio-paper:#fff;
  --studio-line:#dce1d6;
  --studio-forest:#125b47;
  --studio-mist:#edf4e9;
  --studio-sun:#faf0d7;
  --studio-shadow:0 8px 28px rgb(16 47 54 / .045);
}
body {background:var(--studio-canvas)}
#app .page-title {gap:12px;margin-block:0 22px}
#app #dateline {margin-bottom:5px;font-size:var(--type-meta);color:var(--studio-forest)}
#app main {max-width:1440px;padding-inline:clamp(16px,3.4vw,56px)}
#app :focus-visible,#auth :focus-visible,#modal :focus-visible {outline-color:#12806b}
#app .btn,#auth .btn,#modal .btn {border-radius:11px}
#app .btn.primary,#auth .btn.primary,#modal .btn.primary {background:var(--jade);color:var(--ink)}
#app .btn.primary:hover:not(:disabled),#auth .btn.primary:hover:not(:disabled),#modal .btn.primary:hover:not(:disabled) {background:#48e4bd}
#app .btn.secondary,#auth .btn.secondary,#modal .btn.secondary {background:var(--studio-paper);border-color:#a9bcb0}
#app .btn.secondary:hover:not(:disabled),#modal .btn.secondary:hover:not(:disabled) {background:var(--studio-mist)}
#app .panel,#auth .panel {border-radius:17px;border-color:var(--studio-line);box-shadow:var(--studio-shadow)}
.appbar {background:var(--studio-canvas);border-color:var(--studio-line)}
#section-label {color:var(--studio-forest)}
#top-actions #code-button {min-height:44px;border-radius:10px}
#code-button .ico {width:18px;height:18px}
#top-actions #code-button:hover {background:var(--studio-mist)}

@media (min-width:768px) {
  #app {grid-template-columns:clamp(205px,17vw,238px) minmax(0,1fr)}
  #sidebar {
    background:var(--studio-paper);
    color:var(--ink);
    border-inline-end:1px solid var(--studio-line);
    padding:26px 12px 9px;
  }
  #sidebar .brand {padding-inline:11px}
  #sidebar .brand img {width:127px;filter:none}
  #business-name {
    padding:9px 10px;
    background:var(--studio-mist);
    color:var(--studio-forest);
    border:1px solid #d5e0d3;
    margin-block:24px 5px;
  }
  #business-name .swatch {width:30px;height:30px;background:var(--studio-paper)}
  #business-name .swatch img {width:21px}
  #nav .more-group {margin-top:18px}
  #nav h3 {color:var(--muted);font-size:var(--type-meta)}
  #nav .nav-link {color:var(--ink);position:relative}
  #nav .nav-link:hover {background:var(--studio-mist)}
  #nav .nav-link.active {background:#def3e6;color:var(--studio-forest)}
  #nav .nav-link.active::before {
    content:"";position:absolute;inset-block:11px;inset-inline-start:0;
    width:3px;background:#147458;border-radius:0 3px 3px 0;
  }
  #sidebar-foot {border-color:var(--studio-line)}
  #sidebar-foot .account small {color:var(--muted)}
  #sidebar-foot button {color:var(--studio-forest)}
  #sidebar-foot .avatar {background:var(--ink);color:var(--studio-paper);flex:none}
  .appbar {height:60px;padding-inline:clamp(16px,3.4vw,56px)}
}

@media (width < 768px) {
  #app .page-title {margin-bottom:16px}
  #app main {padding-top:20px}
  .appbar #mobile-brand {gap:12px}
  #mobile-tabs {
    inset:auto max(8px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    padding:4px;
    background:var(--studio-paper);
    border:1px solid #b9cdc0;
    border-radius:20px;
    box-shadow:0 8px 32px rgb(16 47 54 / .18);
  }
  #mobile-tabs :is(.mobile-tab,button) {color:var(--ink);min-width:0}
  #mobile-tabs .active,#mobile-tabs button[aria-expanded=true] {color:var(--studio-forest)}
  #mobile-tabs .active .tab-symbol,#mobile-tabs button[aria-expanded=true] .tab-symbol {background:var(--jade);color:var(--ink)}
  #more-drawer {background:var(--studio-paper)}
  #more-links .nav-link {border-color:var(--studio-line);background:var(--studio-mist)}
  #more-links .nav-link.active {background:var(--mint);border-color:#4d907b}
  #app main {padding-bottom:calc(var(--tabs-height) + max(7px,env(safe-area-inset-bottom)) + 24px)}
  #toast {bottom:calc(var(--tabs-height) + max(7px,env(safe-area-inset-bottom)) + 16px)}
}

/* Entry uses the original artwork at full scale beside the account form. */
.auth-layout {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.auth-art {
  background:radial-gradient(ellipse at 82% 74%,#b9efc6 0%,transparent 50%),#70e5b7;
  margin:16px 0 16px 16px;padding:clamp(25px,4.5vw,64px);
  min-height:calc(100dvh - 32px);border-radius:24px;justify-content:flex-start;
}
.auth-art .auth-logo {width:clamp(120px,13vw,165px)}
.art-content {margin-block:auto;gap:18px}
.art-content h1 {font-size:var(--type-page);line-height:1.25;letter-spacing:-.025em}
.art-content img {height:auto;max-height:min(47vh,370px);max-width:min(85%,390px);justify-self:center}
.auth-art p {display:none}
.auth-side {width:min(100%,32.5rem)}
.auth-side h2 {font-size:var(--type-page);letter-spacing:-.025em}
.auth-switch button {min-height:44px;text-underline-offset:.2em}
@media (max-width:620px) {
  .auth-layout {display:block}
  .auth-art {min-height:0;margin:10px 10px 0;padding:16px;border-radius:16px;gap:11px}
  .art-content img {display:none}
  .auth-side {margin-inline:auto;padding:22px clamp(16px,5vw,32px)}
}

/* Short tasks take place in a dialog. The header stays visible when its contents scroll. */
#modal {
  padding:0;
  width:min(40rem,calc(100% - 28px));
  max-height:min(86dvh,52rem);
  background:var(--studio-paper);
  border:1px solid #b0c7b9;
  border-radius:20px;
  box-shadow:0 25px 80px rgb(16 47 54 / .24);
  overflow:auto;
  overscroll-behavior:contain;
}
#modal::backdrop,.booking-editor::backdrop,.bk-filter-dialog::backdrop {background:rgb(16 47 54 / .55)}
#modal .dialog-head {
  position:sticky;top:0;z-index:1;margin:0;gap:12px;
  padding:10px clamp(16px,4vw,24px);
  background:var(--studio-paper);border-bottom:1px solid var(--studio-line);
}
#modal .dialog-head h2 {font-size:var(--type-section);letter-spacing:-.02em;overflow-wrap:anywhere}
#modal-close {display:grid;place-items:center;flex:none;width:44px;height:44px}
#modal-body {padding:clamp(14px,4vw,24px)}
.booking-editor .booking-pair {grid-template-columns:minmax(9.5rem,1.2fr) minmax(0,1fr)}
@media (max-width:560px) {
  #modal,.booking-editor,.bk-filter-dialog {inset:auto 0 0;margin:0;width:100%;max-width:100%;border-radius:22px 22px 0 0;border-bottom:0}
  #modal-body {padding-bottom:max(18px,env(safe-area-inset-bottom))}
  .booking-editor,.bk-filter-dialog {padding-bottom:max(18px,env(safe-area-inset-bottom))}
  .booking-editor .booking-repeat-days {display:grid;grid-template-columns:repeat(7,minmax(44px,1fr));gap:3px}
}
@media (max-width:374px) {
  .booking-editor .booking-pair {grid-template-columns:1fr}
  .booking-editor .booking-repeat-days {grid-template-columns:repeat(4,minmax(44px,1fr))}
}

/* Account, invoices, messages and support share the same visual hierarchy. */
#app .account-sections {background:var(--studio-mist);border-color:var(--studio-line);gap:4px}
#app .account-sections a[aria-current] {background:var(--studio-paper);box-shadow:inset 3px 0 #158369}
#app .account-sections small {color:var(--muted)}
#app .intake-pets {gap:8px}
#app .intake-pet {background:var(--studio-mist);border:1px solid var(--studio-line);border-radius:13px;padding:10px 12px}
#app .bill-stats {gap:6px}
#app .bill-stat {background:var(--studio-paper);border-color:var(--studio-line)}
#app .bill-stat:first-child {background:var(--studio-forest);border-color:var(--studio-forest)}
#app .bill-record {border-bottom-color:var(--studio-line)}
#app .bill-record:hover {background:var(--studio-mist)}
#app .business-summary {background:#dff1e3}
#app .msg-layout {border-radius:18px;border-color:var(--studio-line);box-shadow:var(--studio-shadow)}
#app .msg-side {background:white}
#app .msg-chat-head {background:var(--studio-paper);box-shadow:inset 0 -1px #dce1d6}
#app .msg-stream {background:#f8f9f3}
#app .msg-bubble {border:1px solid var(--studio-line);background:var(--studio-paper)}
#app .msg-bubble.mine {background:#d9f7e9;border-color:#b9decc}
#app .msg-compose {background:var(--studio-paper)}
#app .support-desk {margin-inline:0}
#app .support-tools {padding:10px 12px;background:var(--studio-mist);border-radius:12px}
#app .notice-list {display:grid;gap:0}
#app .notice-date h3 {margin:1rem 0 .3rem;font-size:var(--type-meta);color:var(--muted)}
#app .notice-item {border:0;border-top:1px solid var(--studio-line);background:white}
#app .notice-item.unread {background:#f3faf6}
.offerings-list {container:offerings / inline-size}
.offerings-list>.panel {min-width:0}
.offering-row {display:grid;grid-template-columns:minmax(0,1fr);gap:2px 8px;padding-block:.35rem;border-top:1px solid var(--line)}
#app .offering-row .offering-detail {border:0}
.offering-actions {display:flex;align-items:start;flex-wrap:wrap;gap:6px}
.product-list-info {display:grid;align-content:center;gap:.2rem;padding:.4rem .375rem;overflow-wrap:anywhere}
.product-list-info small {color:var(--muted);font-variant-numeric:tabular-nums}
@container offerings (min-width:34rem) {
  .offering-row {grid-template-columns:minmax(0,1fr) auto;align-items:start}
  .offering-actions {padding-block:.25rem}
}
#content:has(.offerings-list) {container-type:inline-size}
@container (min-width:46rem) {
  #app[data-role=manager] [data-settings-screen]>.offerings-list {grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:start}
}
.offerings-list>.panel {container:offering-panel / inline-size}
@container offering-panel (max-width:29rem) {
  .offering-row {grid-template-columns:minmax(0,1fr)}
  .offering-actions {padding-inline:.375rem}
}

/* The shift card pairs a high-contrast live workspace with a quieter schedule. */
#app .business-home {background:transparent}
#app .business-home .walker-flow {border:1px solid #244d46;border-radius:20px;background:#143e39;box-shadow:0 6px 18px rgb(19 55 46 / .09)}
#app .business-home .flow-plan-head {background:transparent;border:0;color:#eff9ed;padding:16px 20px 0}
#app .business-home .flow-day-heading time {display:flex;align-items:baseline;gap:4px;background:#25534b;color:#d7fae8;border-radius:6px;padding:5px 7px}
#app .business-home .flow-day-heading time span {color:inherit;font-size:var(--type-meta)}
#app .business-home .flow-day-heading time b {font-size:var(--type-meta)}
#app .business-home .flow-plan-head h2 {border:0;padding:0;font-size:var(--type-card);font-weight:600;color:inherit}
#app .business-home .flow-current {background:transparent;color:white;grid-template-columns:minmax(0,1fr) minmax(90px,32%);min-height:158px}
#app .business-home .flow-now {color:#b6f2d9;font-size:var(--type-meta)}
#app .business-home .flow-now i {background:#55e7bc;box-shadow:none}
#app .business-home .flow-current h3 {color:#fffefa;font-size:var(--type-section);line-height:1.22;letter-spacing:-.025em}
#app .business-home .flow-current p {color:#e0eee4}
#app .business-home .flow-current .flow-review {color:#ffdda7}
#app .business-home .flow-current .btn {background:#78efbf;color:#133932;border-radius:10px}
#app .business-home .flow-current .btn:focus-visible {outline-color:white}
#app .business-home .flow-art {align-self:stretch}
#app .business-home .flow-art::before {inset:9% -12% -45% 8%;background:#5de1a8;border-radius:60% 46% 0 0;transform:rotate(-17deg)}
#app .business-home .flow-brand-art {width:90%;height:83%}
#app .business-home .day-next-visit {background:#eff7ec;min-height:64px;color:#153e36}
#app .business-home .day-next-visit>span {display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:2px 12px}
#app .business-home .day-next-visit small {color:#385c4e;font-weight:700}
#app .business-home .day-next-visit time {font-size:var(--type-meta);color:#385c4e}
#app .business-home .flow-shift-tools {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:1px 20px;background:white;border-top:1px solid #d9e5dc}
#app .business-home .flow-shift-tools span {color:#4c625a;font-size:var(--type-meta)}
#app .business-home .flow-shift-tools button {flex:none}
#app .business-home .dash-week {background:#edf2e9;border-radius:10px}
#app .business-home .dash-week button[aria-pressed=true] {background:#174e40;box-shadow:none}
@media(min-width:791px){
  #sidebar {background:#143e39;color:#f3f7ef;border:0}
  #sidebar .brand img {filter:brightness(0) invert(1)}
  #nav .nav-link,#sidebar-foot button,#sidebar-foot .account small,#nav h3 {color:#e1ece3}
  #nav .nav-link:hover {background:#23554b}
  #nav .nav-link.active {background:#b9f3d5;color:#173f36}
  #nav .nav-link.active::before {display:none}
  #sidebar-foot {border-color:#447065}
  #business-name {background:#244f47;border-color:#477065;color:white}
}
@media(max-width:790px){
  #app .appbar {height:50px;background:#fffefa}
  #app main {padding-top:14px}
  #app .page-title {margin-bottom:12px}
  #mobile-tabs {box-shadow:0 4px 18px rgb(16 47 54 / .13);border-radius:16px;padding:3px}
  #mobile-tabs :is(.mobile-tab.active,button[aria-expanded=true]) {background:#e2f4e8;border-radius:12px}
  #mobile-tabs .active .tab-symbol,#mobile-tabs button[aria-expanded=true] .tab-symbol {background:transparent}
  #app .business-home .flow-plan-head {padding:13px 14px 0}
  #app .business-home .flow-operation {padding:12px 0 16px 14px}
  #app .business-home .flow-shift-tools {padding-inline:14px}
}

/* Service editor */
#modal .service-editor .bill-form {gap:12px}
#modal .service-editor .service-basics {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:10px}
#modal .service-editor .service-option {border:1px solid #c6d8ce;border-radius:12px;background:#fff;min-width:0}
#modal .service-editor .service-option summary {min-height:44px;cursor:pointer;padding:9px 12px;overflow-wrap:anywhere}
#modal .service-editor .service-option summary small {display:block;margin:3px 0 0 1.1em;color:#496358;line-height:1.35;font-size:var(--type-meta)}
#modal .service-editor .service-option-body {display:grid;gap:10px;padding:12px;border-top:1px solid #d4dfd8}
#modal .service-editor fieldset {min-width:0;margin:0;border:0;padding:0}
#modal .service-editor .service-option-body legend {font-weight:600;margin-bottom:8px}
#modal .service-editor .bill-actions {position:sticky;z-index:1;bottom:0;justify-content:flex-end;padding:8px 0;background:var(--studio-paper);border-top:1px solid #cfdbd3}
#modal .service-editor :is(input,textarea,select,summary) {scroll-margin-block:80px}
#modal .service-editor [hidden] {display:none}
