:root {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#243a34;
  background:#f6f8f5;
  font-synthesis:none;
  --muted:#6c7c75;
  --line:#e0e7df;
  --green:#285c49;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

a {
  color:inherit;
}

button {
  font:inherit;
}

button,a {
  -webkit-tap-highlight-color:transparent;
}

button:focus-visible,a:focus-visible {
  outline:3px solid #b88428;
  outline-offset:4px;
}

button {
  cursor:pointer;
}

button:disabled {
  opacity:.6;
  cursor:wait;
}

.shell {
  min-height:100vh;
  display:grid;
  grid-template-columns:244px minmax(0,1fr);
}

.sidebar {
  padding:33px 22px 24px;
  background:#edf2eb;
  border-right:1px solid #dce4d9;
  display:flex;
  flex-direction:column;
}

.brand {
  display:flex;
  gap:11px;
  align-items:center;
  text-decoration:none;
  font-size:16px;
  font-weight:650;
  letter-spacing:-.4px;
}

.brand small {
  display:block;
  font-size:8px;
  letter-spacing:2px;
  color:#738471;
  margin-top:7px;
}

.brand-icon {
  background:#285c49;
  color:#fff;
  width:37px;
  height:37px;
  display:grid;
  place-content:center;
  border-radius:11px;
  font:italic 26px Georgia;
  position:relative;
}

.brand-icon span {
  position:absolute;
  font-size:19px;
  right:6px;
  top:7px;
}

.business-switch {
  display:flex;
  align-items:center;
  gap:10px;
  padding:16px 0;
  margin-top:37px;
  border-top:1px solid #d9e2d5;
  border-bottom:1px solid #d9e2d5;
}

.business-avatar {
  width:34px;
  height:34px;
  border:1px solid #cedac7;
  background:#f6f8f1;
  border-radius:9px;
  display:grid;
  place-content:center;
  font:20px Georgia;
  color:#567143;
}

.business-switch strong {
  display:block;
  font-size:13px;
}

.business-switch div>span {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:5px;
}

.nav-label {
  font-size:9px;
  font-weight:700;
  letter-spacing:1.6px;
  color:#7d8b78;
  margin:30px 12px 12px;
}

nav a {
  padding:13px 12px;
  border-radius:7px;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:12px;
  font-weight:600;
}

.nav-active {
  background:#dfe9dc;
  color:#30583c;
}

.nav-active>span:first-child {
  font-size:19px;
}

.nav-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#608951;
  margin-left:auto;
}

.coming-next>p:not(.nav-label) {
  margin:20px 12px;
  font-size:12px;
  color:#82907e;
}

.sidebar-footer {
  margin-top:auto;
  padding-top:80px;
  font-size:10px;
  color:#5b7157;
}

.status-dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:#6a9260;
  border-radius:50%;
  margin-right:6px;
}

.sidebar-footer small {
  display:block;
  padding:9px 14px;
  color:#82907e;
  font-size:10px;
}

.workspace {
  display:flex;
  flex-direction:column;
  min-width:0;
}

.topbar {
  height:78px;
  padding:0 46px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  background:#fafbf8;
}

.breadcrumb {
  color:#819085;
  margin-left:17px;
}

.demo-pill {
  font-size:9px;
  font-weight:700;
  letter-spacing:1px;
  padding:6px 9px;
  border:1px solid #d8dfd4;
  border-radius:5px;
  color:#687d5b;
}

main {
  padding:41px 46px 25px;
  max-width:1370px;
  width:100%;
  margin:0 auto;
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:27px;
}

.eyebrow {
  font-size:9px;
  font-weight:650;
  letter-spacing:1.8px;
  color:#7f8f74;
  margin:0 0 11px;
}

h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-size:38px;
  letter-spacing:-1.3px;
  line-height:1.15;
  font-weight:400;
  margin:0;
}

.page-heading div>p:last-child {
  font-size:12px;
  color:var(--muted);
  line-height:1.6;
  margin:12px 0 0;
}

.workspace-label {
  font-size:10px;
  white-space:nowrap;
  color:#718369;
  padding-top:27px;
}

.demo-notice {
  display:flex;
  align-items:center;
  gap:12px;
  background:#eef2e8;
  border:1px solid #dde5d3;
  border-radius:8px;
  padding:14px 17px;
  font-size:11px;
  line-height:1.65;
  color:#61734f;
}

.demo-notice strong {
  font-weight:650;
}

.notice-icon {
  flex-shrink:0;
  width:18px;
  height:18px;
  border:1px solid #8d9e76;
  border-radius:50%;
  text-align:center;
  font-family:Georgia;
  line-height:16px;
}

.stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin:24px 0 27px;
}

.stat {
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  padding:19px 21px;
  display:flex;
  flex-direction:column;
}

.stat-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  color:#52635b;
  gap:8px;
}

.stat-symbol {
  display:grid;
  place-content:center;
  border-radius:7px;
  width:28px;
  height:28px;
  font-size:17px;
}

.amber {
  color:#9d772f;
  background:#f9f2de;
}

.purple {
  color:#847499;
  background:#f0ecf6;
}

.green {
  color:#68816b;
  background:#edf3ec;
}

.stat>strong {
  font-size:32px;
  line-height:1.2;
  font-weight:500;
  letter-spacing:-1px;
  margin:9px 0;
}

.stat>span:last-child {
  font-size:10px;
  color:#7e8a82;
}

.inbox-panel {
  background:#fff;
  border:1px solid var(--line);
  border-radius:11px;
  overflow:hidden;
}

.panel-header {
  padding:23px 23px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

h2 {
  font-size:15px;
  font-weight:600;
  margin:0;
  display:flex;
  gap:10px;
  align-items:center;
}

.count {
  font-size:10px;
  background:#f0f3ef;
  padding:4px 7px;
  border-radius:5px;
  font-weight:500;
  color:#6d7e67;
}

.panel-header p {
  font-size:11px;
  color:var(--muted);
  margin:9px 0 0;
  line-height:1.6;
}

.panel-header button {
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  background:#fff;
  border:1px solid #d4dfd1;
  border-radius:6px;
  padding:9px 12px;
  color:#45633c;
  font-size:11px;
  min-height:38px;
}

.panel-header button:hover {
  background:#f4f7f0;
}

.panel-header button>span:first-child {
  font-size:18px;
  line-height:1;
}

.refresh-status {
  font-size:9px;
  color:#7f8d81;
  margin:13px 23px 19px;
}

.request-list {
  border-top:1px solid var(--line);
}

.request {
  padding:22px 23px 13px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:15px;
}

.request+.request {
  border-top:1px solid #e9ede6;
}

.request-person {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.pet-avatar {
  width:38px;
  height:38px;
  flex-shrink:0;
  border-radius:12px;
  background:#edf2e7;
  color:#668154;
  display:grid;
  place-content:center;
  font:20px Georgia;
}

.request:nth-child(2) .pet-avatar {
  background:#f4eee4;
  color:#a3865d;
}

.request:nth-child(3) .pet-avatar {
  background:#f1edf5;
  color:#947fa7;
}

.request:nth-child(4) .pet-avatar {
  background:#edf0f6;
  color:#7c8aa7;
}

h3 {
  font-size:13px;
  font-weight:650;
  margin:0;
  line-height:1.5;
}

h3>span {
  font-weight:400;
  color:#51665a;
  font-size:12px;
}

.request-person p {
  font-size:10px;
  color:#77867b;
  margin:5px 0 0;
  line-height:1.6;
}

.separator {
  color:#b4beb1;
  margin:0 7px;
}

.badge {
  font-size:9px;
  align-self:start;
  padding:6px 9px;
  border-radius:5px;
  white-space:nowrap;
  font-weight:550;
}

.pending {
  background:#fcf3db;
  color:#896b29;
}

.alternative_proposed {
  background:#f0ebf7;
  color:#7e639b;
}

.declined {
  background:#f0f1ee;
  color:#727a70;
}

.confirmed {
  background:#e9f4ed;
  color:#386b48;
}

.request-details {
  grid-column:1/-1;
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:17px;
  padding-left:50px;
}

.detail-label {
  display:block;
  font-size:8px;
  letter-spacing:1px;
  color:#84907d;
  margin:0 0 6px;
}

.preferred strong {
  display:block;
  font-size:11px;
  font-weight:500;
  line-height:1.6;
}

.request-note {
  font-size:11px;
  line-height:1.75;
  color:#788475;
  margin:0;
  border-left:1px solid #e6eae1;
  padding-left:17px;
  align-self:center;
}

.request-footer {
  grid-column:1/-1;
  display:flex;
  gap:13px;
  margin-left:50px;
  font-size:8px;
  color:#94a08e;
  letter-spacing:.2px;
}

.request-footer span+span:before {
  content:'·';
  margin-right:13px;
}

.bottom-note {
  display:flex;
  gap:12px;
  align-items:baseline;
  color:#88937f;
  margin:20px 3px 0;
}

.bottom-note>span {
  font-size:20px;
}

.bottom-note p {
  font-size:10px;
  line-height:1.8;
  margin:0;
  max-width:730px;
}

.bottom-note strong {
  color:#728468;
  font-weight:550;
}

.page-footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:18px 46px 23px;
  font-size:9px;
  color:#96a18e;
  margin-top:auto;
}

.refresh-error,.no-script {
  font-size:12px;
  color:#a44737;
  margin:15px 23px;
}

.empty-state {
  text-align:center;
  padding:45px 20px;
  color:var(--muted);
}

.skip-link {
  position:absolute;
  left:10px;
  top:-50px;
  background:#fff;
  padding:10px;
  z-index:2;
}

.skip-link:focus {
  top:10px;
}

@media(min-width:1600px) {
  main {
    padding-top:55px;
  }
  .stats {
    margin-top:30px;
  }
  .request {
    padding-top:26px;
    padding-bottom:18px;
  }
}

@media(max-width:1100px) {
  .shell {
    grid-template-columns:210px minmax(0,1fr);
  }
  .sidebar {
    padding-left:16px;
    padding-right:16px;
  }
  main {
    padding:32px 25px 20px;
  }
  .topbar {
    padding:0 25px;
  }
  .workspace-label {
    display:none;
  }
  .request-details {
    grid-template-columns:155px minmax(0,1fr);
  }
  .stat {
    padding:16px;
  }
  .page-footer {
    padding-left:25px;
    padding-right:25px;
  }
}

@media(max-width:760px) {
  .shell {
    display:block;
  }
  .stats {
    gap:9px;
  }
  .stat {
    padding:13px 11px;
  }
  .stat-label {
    font-size:10px;
    line-height:1.5;
  }
  .stat-symbol {
    display:none;
  }
  .stat>strong {
    font-size:28px;
  }
  .stat>span:last-child {
    font-size:9px;
    line-height:1.55;
  }
  .panel-header {
    padding:19px 17px 0;
  }
  .panel-header p {
    max-width:220px;
    font-size:10px;
  }
  .panel-header button {
    min-height:44px;
    padding:9px;
    font-size:10px;
  }
  .refresh-status {
    margin-left:17px;
  }
  .request {
    padding:20px 17px 14px;
    gap:13px;
  }
  h3>span {
    display:block;
    font-size:11px;
  }
  .request-person p {
    font-size:9px;
  }
  .pet-avatar {
    width:32px;
    height:35px;
  }
  .request-details {
    padding-left:0;
    grid-template-columns:1fr;
    gap:8px;
  }
  .preferred {
    display:flex;
    align-items:baseline;
    gap:10px;
    flex-wrap:wrap;
  }
  .detail-label {
    font-size:7px;
  }
  .preferred strong {
    font-size:10px;
  }
  .request-note {
    border-left:0;
    padding-left:0;
    font-size:10px;
  }
  .request-footer {
    margin-left:0;
  }
  .badge {
    font-size:8px;
    padding:6px 7px;
  }
  .page-footer {
    padding:17px 20px;
  }
  .page-footer span:last-child {
    display:none;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
  }
}
/* Owner access and workflow */
.owner-menu { display: flex; align-items: center; gap: 14px; }
.owner-email { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.logout-button { background: transparent; border: 0; color: var(--green); padding: 10px 0 10px 8px; font-size: 12px; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; background: #edf2eb; }
.login-card { max-width: 460px; padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 60px #28452b08; }
.login-card .brand { margin-bottom: 45px; }
.login-card h1 { font-size: 33px; }
.login-card .eyebrow { margin-top: 0; }
.login-intro { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 18px 0 26px; }
.stacked-form { display: flex; flex-direction: column; gap: 20px; }
.stacked-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 550; color: #4d6357; }
.stacked-form input:not([type=checkbox]), .stacked-form textarea, .stacked-form select { width: 100%; min-width: 0; border: 1px solid #cedacd; border-radius: 6px; background: #fff; color: #2e4338; font: inherit; font-size: 14px; line-height: 1.6; padding: 10px 12px; }
.stacked-form textarea { resize: vertical; }
/* iOS Safari keeps date and time inputs at their own width, wider than a phone column,
   and centres their value, unless their native look is off; empty, they'd also collapse. */
.stacked-form input[type=date], .stacked-form input[type=time] { -webkit-appearance: none; appearance: none; display: block; min-height: calc(1.6em + 22px); text-align: left; }
.stacked-form input::-webkit-date-and-time-value { text-align: left; }
/* Optional dates get a Clear button: iOS's own picker has none (its Reset goes back to the
   date the page loaded with). It shows only while the field has a date (app.js). */
.clearable-date { display: flex; flex-direction: column; min-width: 0; }
.text-button.clear-date { align-self: flex-start; min-height: 32px; margin-top: 2px; color: var(--green); font-weight: 600; }
/* Settings autosave (app.js): the form's Save button is for browsers without JavaScript */
.settings-form.autosaving > .form-actions { display: none; }
.autosave-hint { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.section-save { margin-top: 6px; }
.save-state { margin-left: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); transition: opacity .4s ease; }
.save-state.saved { color: var(--green); }
.save-state.failed { color: #a2402f; }
.save-state.fade { opacity: 0; }
.stacked-form input.field-error, .stacked-form textarea.field-error, .stacked-form select.field-error, .stacked-form button.field-error { border-color: #c4553f; animation: field-blink .5s ease 2; }
.stacked-form input[type=checkbox].field-error { outline: 2px solid #c4553f; outline-offset: 2px; }
@keyframes field-blink { 50% { box-shadow: 0 0 0 4px rgba(196, 85, 63, .3); } }
@media(prefers-reduced-motion:reduce) { .stacked-form .field-error { animation: none; } }
.field-problem { display: block; margin-top: -2px; font-size: 12px; line-height: 1.5; color: #a2402f; }
.toast { position: fixed; z-index: 30; left: 16px; right: 16px; bottom: 24px; max-width: 460px; margin: 0 auto; padding: 12px 16px; border-radius: 12px; background: #2f2422; color: #fff; font-size: 14px; line-height: 1.5; box-shadow: 0 10px 30px rgba(20, 44, 32, .25); cursor: pointer; }
.stacked-form input:focus-visible, .stacked-form textarea:focus-visible, .stacked-form select:focus-visible { outline: 2px solid #6e9366; outline-offset: 2px; }
.primary-button, .secondary-button { border: 1px solid var(--green); border-radius: 6px; padding: 11px 17px; font-size: 13px; font-weight: 550; min-height: 44px; }
.primary-button { background: var(--green); color: white; }
.primary-button:hover { background: #1e4939; }
.secondary-button { background: white; color: var(--green); }
.secondary-button:hover { background: #edf2eb; }
.local-login-note { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 25px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.form-error, .form-success { padding: 14px 16px; border-radius: 6px; font-size: 13px; line-height: 1.7; margin: 20px 0; }
.form-error { background: #fff0eb; border: 1px solid #edc9be; color: #963d2e; }
.form-success { background: #eaf3e8; border: 1px solid #cbdfc8; color: #3d6a36; }
.note-status { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--green); }
.request-extra { grid-column: 1 / -1; margin: 0 0 0 50px; font-size: 12px; line-height: 1.7; color: #5c7254; overflow-wrap: anywhere; }
.request-actions { grid-column: 1 / -1; margin: 0 0 0 50px; }
.request-actions summary { cursor: pointer; font-size: 12px; color: var(--green); padding: 10px 0; width: fit-content; }
.request-actions summary:focus-visible { outline: 2px solid #6e9366; outline-offset: 2px; }
.request-actions .stacked-form { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fafcf8; max-width: 650px; margin: 8px 0; }
.field-help { display: block; font-size: 11px; font-weight: 400; line-height: 1.7; color: #73816b; }
.stacked-form label.checkbox-label { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; line-height: 1.7; }
.checkbox-label input { width: 17px; height: 17px; flex-shrink: 0; margin: 3px 0 0; accent-color: var(--green); }
.form-actions { display: flex; align-items: center; gap: 16px; }
.form-actions button { flex-shrink: 0; }
.settings-form { margin-top: 26px; }
.form-section { background: #fff; padding: 26px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 22px; }
.form-section > p { margin: -10px 0 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.form-section > h2 { font-size: 17px; }
/* minmax(0, …): a column may be narrower than its fields' natural width (date inputs). */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.form-section fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-section legend { font-size: 13px; margin-bottom: 13px; }
.checkbox-group { display: flex; gap: 22px; flex-wrap: wrap; }
.activity-list, .history-list { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.activity-card { background: #fff; border: 1px solid var(--line); padding: 24px; border-radius: 10px; }
.activity-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.activity-body { font-size: 14px; line-height: 1.9; color: #5c6f5b; overflow-wrap: anywhere; white-space: pre-wrap; }
.activity-meta { display: flex; gap: 18px; font-size: 11px; color: var(--muted); margin: 16px 0; }
.activity-callback { font-size: 14px; margin-top: 12px; }
.activity-callback a { display: inline-block; min-height: 44px; line-height: 44px; font-weight: 600; color: inherit; }
.history-item { padding: 22px; border: 1px solid var(--line); background: #fff; border-radius: 8px; display: flex; justify-content: space-between; gap: 15px; }
.history-item h2 { font-size: 14px; line-height: 1.6; }
.history-item p { font-size: 11px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.history-change { text-align: right; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.call-list { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.call-card, .call-section { background: #fff; border: 1px solid var(--line); padding: 22px 24px; border-radius: 10px; }
.call-section { margin-top: 18px; }
.call-section > h2, .call-heading h2 { font-size: 15px; margin: 0; }
.call-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.call-heading h2 a { color: inherit; text-decoration: none; }
.call-heading h2 a:hover { text-decoration: underline; }
.call-meta { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.call-meta a, .page-heading a { color: inherit; font-weight: 600; }
.call-labels { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.call-summary { font-size: 14px; line-height: 1.8; color: #44584f; margin: 14px 0 0; overflow-wrap: anywhere; }
.call-summary-note { color: var(--muted); font-style: italic; }
.call-open { display: inline-block; margin-top: 10px; min-height: 44px; line-height: 44px; font-size: 12px; font-weight: 600; color: var(--green); text-decoration: none; }
.call-open:hover { text-decoration: underline; }
.call-limit { margin-top: 18px; }
.back-link { margin: 0 0 12px; font-size: 12px; }
.back-link a { display: inline-block; min-height: 44px; line-height: 44px; color: var(--green); text-decoration: none; }
.tone-good { background: #e9f4ed; color: #386b48; }
.tone-warn { background: #fcf3db; color: #896b29; }
.tone-info { background: #e8f0f6; color: #3c6584; }
.tone-neutral { background: #f0f1ee; color: #727a70; }
.call-actions { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.call-actions li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; line-height: 1.6; }
.call-message { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.call-message h3 { font-size: 14px; margin: 0; }
.transcript { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.transcript li { max-width: 80%; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.7; }
.transcript p { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.transcript-who { font-size: 10px; font-weight: 600; color: var(--muted); }
.transcript-who time { font-weight: 400; margin-left: 4px; }
.transcript-caller { align-self: flex-start; background: #f1f4ef; }
.transcript-assistant { align-self: flex-end; background: #e9f1ec; }
.transcript-note, .transcript-action { align-self: center; max-width: 100%; background: none; padding: 2px 8px; text-align: center; color: var(--muted); }
.transcript-note p, .transcript-action p { font-size: 12px; }
.transcript-note p { font-style: italic; }
.transcript-action p { color: var(--green); font-weight: 550; }
.install-button { margin-top: 16px; }
.call-section .form-actions { margin-top: 16px; }
.device-list { list-style: none; padding: 0; margin: 14px 0 0; }
.device { padding: 18px 0; border-top: 1px solid var(--line); }
.device-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.device-heading h3 { font-size: 14px; margin: 0; display: flex; align-items: center; gap: 8px; }
.device-heading .call-meta { margin: 0; }
.device-choices fieldset { margin: 12px 0 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; }
.device-choices .checkbox-label { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; padding: 8px 0; font-size: 13px; line-height: 1.6; cursor: pointer; }
.device-actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.text-button { background: none; border: 0; color: #963d2e; font-size: 13px; min-height: 44px; padding: 0 4px; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.device-status { font-size: 12px; color: var(--green); margin: 8px 0 0; min-height: 1em; }
.device-status:empty { display: none; }
@media(max-width:1100px) {
  .owner-email { display: none; }
}
@media(max-width:760px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  /* Two short dates (first and last day) stay side by side on phones */
  .form-grid.date-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .date-pair input[type=date] { padding-left: 10px; padding-right: 10px; }
  /* Above the floating tab bar */
  .toast { bottom: calc(max(10px, calc(env(safe-area-inset-bottom) - 14px)) + 62px + 12px); }
  .form-section { padding: 20px 17px; }
  .form-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .request-actions, .request-extra { margin-left: 0; }
  .request-actions .stacked-form { padding: 16px 12px; }
  .stacked-form input:not([type=checkbox]), .stacked-form textarea, .stacked-form select { font-size: 16px; }
  .activity-card { padding: 20px 17px; }
  .activity-meta { flex-wrap: wrap; gap: 9px; }
  .history-item { flex-direction: column; gap: 0; }
  .history-change { text-align: left; margin: 0; }
  .call-card, .call-section { padding: 18px 16px; }
  .call-heading { flex-direction: column; gap: 10px; }
  .call-labels { justify-content: flex-start; }
  .call-actions li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .transcript li { max-width: 92%; }
  .login-card { padding: 28px 24px; }
  .login-card h1 { font-size: 30px; }
}

/* App feel: no swipe-to-go-back (trackpads and Chromium; iOS needs the edge guard in
   app.js), no double-tap zoom delay, page changes cross-fade */
html, body { overscroll-behavior-x: none; }
/* The installed iOS app can size a short page's viewport short by the status bar's height,
   pinning the tab bar to a false bottom; a document at least as tall as the screen keeps
   it full size. Standalone only: in a Safari tab, 100lvh would make every short page scroll. */
html.is-standalone { min-height: 100lvh; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, input, select, textarea, summary, label { touch-action: manipulation; }
@media(prefers-reduced-motion:no-preference) {
  @view-transition { navigation: auto; }
}
.topbar { view-transition-name: app-bar; }
.tab-bar { view-transition-name: tab-bar; }
.topbar-business { text-decoration: none; }
.tab-bar, .account-button, .topbar-mark { display: none; }

/* More page */
.more-account, .more-list, .more-sign-out { max-width: 640px; }
.more-account { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.more-avatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: grid; place-content: center; background: var(--green); color: #fff; font-size: 20px; font-weight: 600; }
.more-account div { min-width: 0; }
.more-account strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.more-account div > span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.more-list { list-style: none; margin: 18px 0 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.more-list li + li { border-top: 1px solid var(--line); }
.more-list a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 18px; text-decoration: none; font-size: 15px; font-weight: 600; }
.more-list a::after { content: ""; width: 8px; height: 8px; margin-left: auto; flex-shrink: 0; border-top: 2px solid #a7b3a5; border-right: 2px solid #a7b3a5; transform: rotate(45deg); }
.more-list a:active { background: #f1f5ef; }
.more-list small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.more-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: grid; place-content: center; background: #e6eee3; color: var(--green); }
.more-icon svg, .tab-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.more-sign-out button { width: 100%; min-height: 52px; margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: #a2402f; font-size: 15px; font-weight: 600; }
.more-sign-out button:active { background: #fbf1ee; }

/* Phones: an app bar on top, a floating tab bar at the bottom, larger text */
@media(max-width:760px) {
  body { font-size: 15px; }
  .sidebar, .page-footer, .page-heading .eyebrow, .owner-email, .owner-menu form { display: none; }
  /* Fixed, not sticky: iOS rubber-bands sticky bars along with the page when it's pulled
     down at the top, opening a gap above them; a fixed bar stays put while the page
     bounces under it. The workspace leaves room for it. */
  .workspace { padding-top: calc(56px + env(safe-area-inset-top)); }
  .topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); background: var(--green); border: 0; color: #fff; -webkit-user-select: none; user-select: none; }
  .topbar-business { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; font-size: 17px; font-weight: 650; letter-spacing: -.2px; }
  .topbar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-business .breadcrumb { display: none; }
  .topbar-mark { display: grid; flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; background: #fff; color: var(--green); font-size: 22px; }
  .topbar-mark span { font-size: 16px; right: 5px; top: 5px; }
  .owner-menu { gap: 10px; flex-shrink: 0; }
  .demo-pill { color: #fff; border-color: #ffffff59; }
  .account-button { display: grid; place-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid #ffffffb3; background: #ffffff1a; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
  /* Frosted glass floating over the home-indicator strip, after the iOS 26 tab bar */
  .tab-bar { display: flex; position: fixed; z-index: 20; left: max(20px, env(safe-area-inset-left)); right: max(20px, env(safe-area-inset-right)); bottom: max(10px, calc(env(safe-area-inset-bottom) - 14px)); height: 62px; max-width: 460px; margin: 0 auto; padding: 4px; gap: 4px; background: rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(10px) saturate(180%); backdrop-filter: blur(10px) saturate(180%); border: 1px solid rgba(255, 255, 255, .75); border-radius: 999px; box-shadow: 0 10px 30px rgba(20, 44, 32, .14), 0 1px 3px rgba(20, 44, 32, .08), inset 0 1px 0 rgba(255, 255, 255, .85); -webkit-user-select: none; user-select: none; }
  .tab-bar a { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 999px; color: #4c5f53; font-size: 10px; line-height: 1; font-weight: 500; text-decoration: none; -webkit-touch-callout: none; transition: color .2s ease; }
  .tab-bar .tab-active { color: var(--green); }
  /* Icons lead and labels are small, as in the iOS tab bar. The sidebar's `nav a` padding
     doesn't apply here: it left too little height, and the icons were squashed to fit. */
  .tab-bar a { padding: 0; }
  .tab-bar svg { flex-shrink: 0; width: 26px; height: 26px; stroke-width: 1.7; transition: transform .15s ease; }
  .tab-bar a:active svg { transform: scale(.88); }
  .tab-bar a:focus-visible { outline-offset: -3px; }
  .tab-bar[data-tabs="3"] { --tabs: 3; }
  /* One highlight for all the tabs, placed by the server's data-active so it is right on
     first paint; tab i sits i * (its width + gap) along. app.js slides it on tap. */
  .tab-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px - (var(--tabs, 4) - 1) * 4px) / var(--tabs, 4)); border-radius: 999px; background: rgba(40, 92, 73, .12); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .tab-bar[data-active] .tab-pill { opacity: 1; }
  .tab-bar[data-active="1"] .tab-pill { transform: translateX(calc(100% + 4px)); }
  .tab-bar[data-active="2"] .tab-pill { transform: translateX(calc(2 * (100% + 4px))); }
  .tab-bar[data-active="3"] .tab-pill { transform: translateX(calc(3 * (100% + 4px))); }
  main { padding: 22px max(16px, env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  h1 { font-family: inherit; font-size: 30px; font-weight: 700; letter-spacing: -.7px; line-height: 1.2; }
  .page-heading { margin-bottom: 18px; }
  .page-heading div>p:last-child { font-size: 15px; margin-top: 6px; }
  .eyebrow { font-size: 10px; }
  .demo-notice { font-size: 13px; padding: 14px; border-radius: 12px; }
  .stats { margin: 18px 0; }
  .stat { border-radius: 12px; }
  .stat-label { font-size: 12px; }
  .stat>strong { font-size: 26px; }
  .stat>span:last-child { font-size: 11px; }
  .inbox-panel, .activity-card, .call-card, .call-section, .history-item, .form-section { border-radius: 14px; }
  h2 { font-size: 17px; }
  .count { font-size: 12px; }
  .panel-header p { max-width: none; font-size: 13px; }
  .panel-header button { font-size: 13px; }
  .refresh-status { font-size: 12px; }
  h3 { font-size: 16px; }
  h3>span { display: inline; font-size: 15px; }
  .request-person p { font-size: 13px; }
  .pet-avatar { width: 40px; height: 40px; }
  .badge { font-size: 11px; padding: 5px 8px; border-radius: 6px; }
  .detail-label { font-size: 10px; }
  .preferred strong { font-size: 14px; }
  .request-note { font-size: 14px; line-height: 1.6; }
  .request-extra { font-size: 13px; }
  .request-footer { font-size: 11px; }
  .request-actions summary { font-size: 14px; min-height: 44px; display: flex; align-items: center; gap: 6px; }
  .bottom-note p { font-size: 12px; }
  .activity-body { font-size: 15px; line-height: 1.7; }
  .activity-meta { font-size: 12px; }
  .call-meta { font-size: 13px; }
  .call-summary { font-size: 15px; line-height: 1.6; }
  .call-open, .back-link { font-size: 14px; }
  .call-actions li, .transcript li { font-size: 14px; }
  .transcript-who { font-size: 11px; }
  .history-item h2 { font-size: 15px; }
  .history-item p { font-size: 12px; }
  .field-help { font-size: 12px; }
  .form-section > p { font-size: 13px; }
  .device-status { font-size: 13px; }
}

/* Calendar: a column per person on wide screens, a list with a staff filter on phones */
.calendar-heading { align-items: flex-end; }
.calendar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.calendar-actions a { display: inline-flex; align-items: center; text-decoration: none; }
.calendar-actions .primary-button { color: #fff; }
.calendar-actions .secondary-button { color: var(--green); }
.day-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.day-step { display: grid; place-content: center; width: 40px; height: 44px; flex-shrink: 0; border-radius: 8px; color: var(--green); }
.day-step:hover { background: #edf2eb; }
.day-step svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.week-strip { display: flex; gap: 4px; flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; }
.week-strip li { flex: 1; min-width: 0; }
.week-strip a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; text-decoration: none; color: #4d6357; }
.week-strip a:hover { background: #edf2eb; }
.week-strip span { font-size: 11px; color: var(--muted); }
.week-strip strong { font-size: 16px; font-weight: 600; }
.week-strip .day-today strong { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.week-strip .day-selected { background: var(--green); color: #fff; }
.week-strip .day-selected span, .week-strip .day-selected.day-today strong { color: #fff; }
.week-strip .day-selected:hover { background: #1e4939; }
.day-jump { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.day-jump input { border: 1px solid #cedacd; border-radius: 6px; background: #fff; color: #2e4338; font: inherit; font-size: 13px; padding: 9px 10px; min-height: 44px; }
.day-jump .text-button { color: var(--green); text-decoration: none; display: inline-flex; align-items: center; font-weight: 600; }

.day-grid { --gutter: 54px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.day-grid-head, .day-grid-body { display: grid; grid-template-columns: var(--gutter) repeat(var(--columns), minmax(150px, 1fr)); min-width: calc(var(--gutter) + var(--columns) * 150px); }
.day-grid-head { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--line); }
.staff-head { padding: 12px 10px; border-left: 1px solid var(--line); min-width: 0; }
.staff-head strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-head span { font-size: 11px; color: var(--muted); }
.day-grid-body { position: relative; box-sizing: content-box; padding: 10px 0; }
.hour-marks { position: relative; }
.hour-marks span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; }
.staff-column { position: relative; border-left: 1px solid var(--line); background: #f3f5f1; }
.open-hours { position: absolute; left: 0; right: 0; background: #fff; }
.hour-line { position: absolute; left: 0; right: 0; border-top: 1px solid #eef2ec; pointer-events: none; }
.slot { position: absolute; left: 0; right: 0; height: 48px; z-index: 1; border-radius: 4px; }
.slot:hover { background: rgba(40, 92, 73, .07); }
.slot:hover::after { content: "+"; position: absolute; left: 8px; top: 2px; font-size: 14px; color: var(--green); }
.slot:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.block { position: absolute; left: 4px; right: 4px; z-index: 2; display: flex; flex-direction: column; gap: 1px; overflow: hidden; padding: 4px 8px; border-radius: 6px; border-left: 3px solid var(--green); background: #e5efe8; color: #1f3d31; text-decoration: none; font-size: 12px; line-height: 1.35; }
.block:hover { background: #d8e8dd; }
.block strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block span { color: #4d6357; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-off { z-index: 1; border-left-color: #a7b3a5; background: repeating-linear-gradient(135deg, #eceeea, #eceeea 6px, #e4e7e2 6px, #e4e7e2 12px); color: #5b6a62; }
.block-off:hover { background: #e2e6df; }
.agenda { display: none; }
.staff-filter { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 2px; scrollbar-width: none; }
.staff-filter::-webkit-scrollbar { display: none; }
.staff-filter a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 550; text-decoration: none; color: #4d6357; }
.staff-filter .filter-selected { background: var(--green); border-color: var(--green); color: #fff; }
.agenda-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.agenda-list li + li { border-top: 1px solid var(--line); }
.agenda-item { display: flex; gap: 14px; padding: 14px 16px; text-decoration: none; }
.agenda-item:active { background: #f1f5ef; }
.agenda-time { width: 76px; flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--green); line-height: 1.4; }
.agenda-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--green); padding-left: 12px; }
.agenda-body strong { font-size: 15px; overflow-wrap: anywhere; }
.agenda-body span { font-size: 13px; color: var(--muted); }
.agenda-off .agenda-time { color: var(--muted); }
.agenda-off .agenda-body { border-left-color: #a7b3a5; }

.calendar-form { margin-top: 18px; }
.calendar-form + .calendar-form { margin-top: 18px; }
.slot-picker { display: flex; flex-direction: column; gap: 20px; }
.date-field { max-width: 260px; }
.open-times { display: flex; flex-direction: column; gap: 12px; }
.open-times fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.open-times legend { font-size: 13px; font-weight: 550; color: #4d6357; margin-bottom: 10px; }
.time-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stacked-form label.time-chip { display: block; position: relative; }
.stacked-form .time-chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.time-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #cedacd; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 550; color: #2e4338; cursor: pointer; }
.time-chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.time-chip input:focus-visible + span { outline: 2px solid #6e9366; outline-offset: 2px; }
.custom-time { max-width: 260px; }
.appointment-facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 16px 0 0; font-size: 14px; }
.appointment-facts div { display: contents; }
.appointment-facts dt { color: var(--muted); }
.appointment-facts dd { margin: 0; overflow-wrap: anywhere; }
.appointment-facts a { color: var(--green); font-weight: 600; }
.appointment-notes { white-space: pre-wrap; }
.calendar-cancel { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.time-off-list { list-style: none; padding: 0; margin: 12px 0 0; }
.time-off-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.time-off-list strong { display: block; font-size: 14px; }
.time-off-list span { font-size: 13px; color: var(--muted); }

.team-section { margin-top: 26px; }
.team-section > h2 { font-size: 20px; margin: 0 0 12px; }
.team-add { display: flex; gap: 10px; align-items: stretch; max-width: 560px; }
.team-add label { flex: 1; min-width: 0; }
.team-add .team-add-length { flex: 0 0 96px; }
.team-add input { width: 100%; border: 1px solid #cedacd; border-radius: 6px; background: #fff; color: #2e4338; font: inherit; font-size: 14px; padding: 10px 12px; min-height: 44px; }
.team-add button { flex-shrink: 0; }
.team-section > .field-help { margin: 8px 0 0; }
.team-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; }
.team-card-heading { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.team-card-heading .call-meta { margin: 0 0 12px; }
.team-name { flex: 1; min-width: 200px; max-width: 360px; }
.team-card fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.team-card legend { font-size: 13px; font-weight: 550; color: #4d6357; margin-bottom: 10px; }
.week-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 6px 32px; }
.week-day { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.stacked-form .week-day label.checkbox-label { align-items: center; min-width: 110px; }
.stacked-form .week-day .checkbox-label input { margin: 0; }
.day-times { display: flex; align-items: center; gap: 6px; }
.stacked-form .day-times input { width: 140px; padding: 8px 10px; }
.week-day:has(input[type=checkbox]:not(:checked)) .day-times { opacity: .35; }
.service-grid { grid-template-columns: 2fr 1fr 1fr; }
.team-saved { font-size: 13px; color: var(--green); font-weight: 600; }
.team-remove { margin-top: 6px; }

@media(max-width:760px) {
  .calendar-heading { flex-direction: column; align-items: stretch; gap: 14px; }
  .calendar-actions a { flex: 1; justify-content: center; }
  .day-nav { flex-wrap: wrap; gap: 4px; }
  .week-strip { order: 1; }
  .day-step { order: 0; width: 32px; }
  .day-step:nth-of-type(2) { order: 2; }
  .day-jump { order: 3; width: 100%; justify-content: space-between; margin-top: 6px; }
  .day-jump input { flex: 1; font-size: 16px; }
  .day-grid { display: none; }
  .agenda { display: block; }
  .week-strip strong { font-size: 15px; }
  .team-card { padding: 18px 16px; border-radius: 14px; }
  .team-add { max-width: none; flex-wrap: wrap; }
  .team-add label { flex-basis: 100%; }
  .team-add .team-add-length { flex: 1; }
  .team-add input { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid label:first-child { grid-column: 1 / -1; }
  /* Each working day's times go on their own line; days off show only the day */
  .week-hours { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .week-day { flex-wrap: wrap; gap: 6px 10px; min-height: 0; padding: 8px 0; border-top: 1px solid var(--line); }
  .stacked-form .week-day label.checkbox-label { flex-basis: 100%; min-height: 28px; font-size: 15px; }
  .week-day:has(input[type=checkbox]:not(:checked)) .day-times { display: none; }
  .day-times { flex: 1; min-width: 0; padding-left: 27px; }
  .day-times label { flex: 1; min-width: 0; }
  .stacked-form .day-times input { width: 100%; font-size: 16px; }
  .day-times input::-webkit-calendar-picker-indicator { display: none; }
  .date-field, .custom-time { max-width: none; }
  .appointment-facts { font-size: 15px; }
}
@media(max-width:360px) {
  .day-times { padding-left: 0; }
  .agenda-time { width: 64px; font-size: 12px; }
}
