/* Palm Coast Pet Sitters — the office. The Fridge Door at working density.
   Loads after /css/site.css and reuses its tokens, magnets, cards, pins,
   fields and stickies. Working surfaces sit flat (no tilt); tilt lives only
   on the sign-in card and the stickies. Status is form, not hue. */

.office { font-size: 15px; line-height: 1.45; }
.office h1, .office h2, .office h3 { text-wrap: initial; }
.office h1 { font-size: 1.75rem; letter-spacing: -0.02em; }
.office h2 { font-size: 1.25rem; }
.office h3, .office .h3 { font-size: 1rem; }
.office .card { --tilt: 0deg; transform: none; padding: 18px 20px; }
.office .card--index { padding-top: 46px; background-position: 0 34px, 0 36px; }
.office .card--index p:not(.hand), .office .card--index li { line-height: 28px; }
.office .pin { font-size: .95rem; padding: 10px 16px; --tilt: 0deg; transform: none; }
.office .pin:hover, .office .pin:focus-visible { transform: translateY(-1px); }
.office .pin--sm { font-size: .85rem; padding: 7px 12px; }
.office .pin--paper { box-shadow: inset 0 0 0 1px rgba(20,20,20,.12); }
.office .pin--ghost { background: transparent; box-shadow: none; color: var(--green-deep); padding-inline: 8px; }
.office .pin--ghost:hover { background: var(--green-tint); }
.office .pin--danger { background: var(--paper); color: var(--orange-ink); box-shadow: inset 0 0 0 1.5px var(--orange-ink); }
.office .pin svg { width: 17px; height: 17px; }
.office .field { margin-bottom: 12px; }
.office .field label { font-size: .85rem; }
.office .field input, .office .field select, .office .field textarea { font-size: .95rem; padding: 7px 4px; }
.office .field select { appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6B4F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 2px center / 14px no-repeat; padding-right: 22px; }
.office ::-webkit-scrollbar { width: 10px; height: 10px; }
.office ::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 6px; border: 2px solid var(--enamel); }
.office ::-webkit-scrollbar-track { background: transparent; }
.office .num { font-variant-numeric: tabular-nums; }
.office [hidden] { display: none !important; }
.office .muted { color: var(--ink-3); }
.office .small { font-size: .85rem; }
.office .hand { font-size: 1.05rem; }
.office .sub { font-style: italic; color: var(--ink-3); font-size: .98rem; }
.office .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.office .grow { flex: 1; }
.office .stack { gap: 14px; }
.office .kbd { font: 600 .75rem/1 var(--font-body); padding: 2px 6px; border-radius: 3px; background: var(--enamel-lo); color: var(--ink-2); }

/* ---- gate --------------------------------------------------------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate__card { width: min(420px, 100%); transform: rotate(var(--tilt)); }
.office .gate__card.card { transform: rotate(var(--tilt)); padding: 46px 28px 26px; }
.gate__card .magnet { left: 28px; margin-left: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; }
.back svg { width: 14px; height: 14px; }
.gate__sub { margin: 0 0 18px; }
.gate__foot { font-size: .85rem; margin-top: 18px; }

/* ---- the clip strip -------------------------------------------------- */
.office__strip-in { display: flex; align-items: center; gap: 18px; min-height: 64px; padding: 6px var(--gutter); }
.office .bizcard { padding: 6px 12px; margin-top: 4px; }
.office .bizcard__name { font-size: .95rem; }
.tabs { display: flex; gap: 2px; margin-left: 8px; }
.tabs a { position: relative; white-space: nowrap; font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none; padding: 16px 12px 8px; border-radius: 3px; }
.tabs a::before { content: ""; position: absolute; top: -2px; left: 50%; width: 20px; height: 20px; margin-left: -10px; background: url("/img/magnet-green@2x.png") center / contain no-repeat; opacity: .9; }
.tabs a:nth-child(even)::before { background-image: url("/img/magnet-ink@2x.png"); }
.tabs a:hover { color: var(--green-deep); }
.tabs a[aria-current="page"] { color: var(--green-deep); box-shadow: inset 0 -3px 0 var(--green); }
.tabs a .count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px; border-radius: 9px; background: var(--yellow); color: var(--ink); font: 700 .72rem/18px var(--font-body); text-align: center; vertical-align: 1px; }
.me { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.me__name { font-weight: 700; }
.me__role { color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 700; }
.me button { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--green-deep); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; padding: 6px; }
.dock { display: none; }

/* ---- views ----------------------------------------------------------- */
.view { width: min(1400px, 100% - 2 * var(--gutter)); margin: 22px auto 60px; }
.view__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.view__head h1 { margin: 0; }
.view__head .sub { margin: 2px 0 0; }
.view__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.empty { padding: 28px 24px; text-align: center; color: var(--ink-2); }
.empty .sub { font-size: 1.05rem; color: var(--green-deep); font-style: normal; font-weight: 600; }
.skeleton { display: grid; gap: 12px; }
.skeleton span { display: block; height: 58px; border-radius: 3px; background: linear-gradient(90deg, var(--enamel-lo), var(--paper), var(--enamel-lo)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton span { animation: none; } }

/* ---- stickies: the queues ------------------------------------------- */
.stickies { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; padding-top: 6px; }
.office .sticky { font-family: var(--font-body); font-size: .9rem; padding: 22px 16px 14px; min-width: 168px; text-align: left; border: 0; cursor: pointer; transform: rotate(var(--tilt)); transition: transform .2s var(--ease-out), opacity .2s, box-shadow .2s; }
.office .sticky:hover, .office .sticky:focus-visible { transform: rotate(var(--tilt)) translateY(-2px); box-shadow: 0 2px 2px rgba(20,20,20,.05), 0 14px 22px -10px rgba(20,20,20,.35); }
.sticky__n { display: block; font-family: var(--font-hand); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--ink); }
.sticky__l { display: block; font-weight: 700; margin-top: 4px; }
.sticky__s { display: block; font-size: .78rem; color: var(--yellow-ink); margin-top: 2px; }
.sticky.is-peeling { transform: rotate(calc(var(--tilt) + 6deg)) translate(6px, -18px) scale(.96); opacity: 0; }
.nothing { max-width: 420px; }

/* ---- the agenda (today) --------------------------------------------- */
.today { display: grid; grid-template-columns: 7fr 5fr; gap: 26px; align-items: start; }
.agenda { display: grid; gap: 10px; }
.appt { position: relative; display: grid; grid-template-columns: 92px 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 16px 12px 18px; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-1); text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.appt:hover, .appt:focus-visible { box-shadow: var(--shadow-2); }
.appt[data-status="requested"] { box-shadow: none; outline: 2px dashed var(--rule-strong); outline-offset: -2px; }
.appt[data-status="in_progress"] { box-shadow: var(--shadow-1), inset 0 0 0 2px var(--green); }
.appt[data-status="completed"] { background: var(--enamel-hi); }
.appt[data-status="completed"] .appt__svc { color: var(--ink-3); }
.appt[data-status="cancelled"] { opacity: .55; }
.appt[data-status="cancelled"] .appt__svc, .appt[data-status="cancelled"] .appt__who { text-decoration: line-through; }
.appt[data-status="missed"] { box-shadow: var(--shadow-1), inset 0 0 0 2px var(--orange); }
.appt__time { font-weight: 700; font-variant-numeric: tabular-nums; }
.appt__time small { display: block; font-weight: 400; color: var(--ink-3); font-size: .78rem; }
.appt__svc { font-weight: 700; }
.appt__who { color: var(--ink-2); font-size: .92rem; }
.appt__who b { color: var(--ink); font-weight: 600; }
.appt__sitter { text-align: right; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.appt__sitter b { display: block; font-weight: 700; color: var(--ink); }
.appt__sitter b::before, .gcard__s i, .week__day .gcard__s i { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--green)); margin-right: 6px; vertical-align: 0; }
.appt__sitter .unassigned { color: var(--red); font-weight: 700; letter-spacing: .06em; font-size: .72rem; text-transform: uppercase; }
.appt__flags { grid-column: 2 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.flag { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 2px 7px; border-radius: 2px; background: var(--yellow); color: var(--ink); }
.flag svg { width: 13px; height: 13px; }
.flag--soft { background: var(--enamel-lo); color: var(--ink-2); }
.flag--green { background: var(--green-tint); color: var(--green-deep); }
.flag--orange { background: transparent; box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red); }
.agenda__day { font-family: var(--font-display); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green-deep); margin: 8px 0 2px; }

.where { display: grid; gap: 12px; }
.where__sitter { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-1); }
.where__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rule-strong); }
.where__dot.is-on { background: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.where__name { font-weight: 700; }
.where__next { font-size: .85rem; color: var(--ink-2); }
.where__count { font-size: .8rem; color: var(--ink-3); text-align: right; }
.mapprint { padding: 10px 10px 30px; background: var(--paper); border-radius: 2px; box-shadow: var(--shadow-1); position: relative; }
.mapprint .map { height: 320px; border-radius: 1px; background: #EEF1EA; }
.mapprint figcaption { position: absolute; left: 12px; right: 12px; bottom: 6px; font-size: 12.5px; font-style: italic; color: var(--ink-3); display: flex; justify-content: space-between; }
.leaflet-container { font: inherit; }
.leaflet-container a { color: var(--green-deep); }
.pinlabel { font: 700 11px/1 var(--font-body); background: var(--paper); color: var(--ink); padding: 3px 6px; border-radius: 2px; box-shadow: var(--shadow-1); white-space: nowrap; }
.pinlabel.is-done { color: var(--ink-3); text-decoration: line-through; }
.pinlabel.is-now { background: var(--green); color: #fff; }
.leaflet-div-icon { background: transparent; border: 0; }

/* ---- schedule ---------------------------------------------------------- */
.sched__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--paper); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(20,20,20,.12); overflow: hidden; }
.seg button { font: inherit; font-weight: 600; font-size: .88rem; padding: 7px 12px; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--green); color: #fff; }
.seg button:focus-visible { outline-offset: -3px; }
.datenav { display: inline-flex; align-items: center; gap: 4px; }
.datenav button { font: inherit; width: 34px; height: 34px; border: 0; background: var(--paper); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(20,20,20,.12); cursor: pointer; display: grid; place-items: center; }
.datenav button svg { width: 16px; height: 16px; }
.datenav h2 { margin: 0 8px; font-size: 1.15rem; min-width: 190px; text-align: center; }
.datenav input[type="date"] { font: inherit; border: 0; background: transparent; width: 26px; color: transparent; cursor: pointer; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 600 .82rem/1 var(--font-body); padding: 7px 10px 7px 8px; border-radius: 3px; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(20,20,20,.12); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; border: 0; color: var(--ink-2); }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--green)); display: inline-block; }
.chip[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 2px var(--green); background: var(--green-tint); }
.chip[aria-pressed="false"] i { opacity: .35; }
.toggle { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.toggle input { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.paint { --tilt: 0deg; }
.paint[aria-pressed="true"] { background: var(--green-tint); box-shadow: inset 0 0 0 2px var(--green); color: var(--green-deep); }

.grid { position: relative; display: grid; grid-template-columns: 64px 1fr; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-1); overflow: auto; max-height: calc(100vh - 220px); }
.grid__hours { position: sticky; left: 0; z-index: 4; background: var(--paper); border-right: 1px solid var(--rule-strong); }
.grid__hours div { height: var(--cell, 12px); position: relative; }
.grid__hours div span { position: absolute; top: -8px; right: 8px; font-size: .72rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.grid__cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); }
.grid__head { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 64px 1fr; background: var(--paper); border-bottom: 2px solid var(--green); }
.grid__head .grid__cols { grid-auto-columns: minmax(170px, 1fr); }
.grid__col-h { padding: 10px 10px 8px; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--rule); }
.grid__col-h i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--green)); }
.grid__col-h small { color: var(--ink-3); font-weight: 400; margin-left: auto; }
.grid__col-h.is-unassigned { color: var(--red); font-variant: small-caps; letter-spacing: .04em; }
.grid__col-h svg { width: 16px; height: 16px; flex: none; }
.grid__col { position: relative; border-left: 1px solid var(--rule); background-image: repeating-linear-gradient(180deg, transparent 0 calc(var(--cell) - 1px), var(--rule) calc(var(--cell) - 1px) var(--cell)), repeating-linear-gradient(180deg, transparent 0 calc(var(--cell) * 4 - 1px), var(--rule-strong) calc(var(--cell) * 4 - 1px) calc(var(--cell) * 4)); }
.grid__col.is-unassigned { background-color: rgba(180, 35, 24, .035); }
.cell { position: absolute; left: 0; right: 0; height: var(--cell); border: 0; background: transparent; padding: 0; cursor: pointer; }
.cell:hover { background: var(--green-tint); }
.cell:focus-visible { outline-offset: -2px; }
.grid.is-painting .cell:hover { background: rgba(46, 107, 79, .25); }
.avail { position: absolute; left: 0; right: 0; background: rgba(46,107,79,.06); pointer-events: none; }
.off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(20,20,20,.05) 6px 8px); pointer-events: none; }
.slot { position: absolute; left: 4px; right: 4px; background: var(--green-tint); border: 1.5px dashed var(--green); border-radius: 3px; font: 700 .72rem/1.2 var(--font-body); color: var(--green-deep); padding: 5px 7px; text-align: left; cursor: pointer; z-index: 1; }
.slot.is-booked { border-style: solid; background: var(--paper); }
.gcard { position: absolute; left: 6px; right: 6px; z-index: 2; min-height: 22px; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(20,20,20,.06); padding: 3px 8px; text-align: left; font: inherit; color: inherit; border: 0; cursor: pointer; overflow: hidden; display: block; line-height: 1.25; }
.gcard > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard:hover, .gcard:focus-visible { box-shadow: var(--shadow-2); z-index: 3; }
.gcard[data-status="requested"] { box-shadow: none; outline: 2px dashed var(--rule-strong); outline-offset: -2px; background: var(--enamel-hi); }
.gcard[data-status="in_progress"] { box-shadow: var(--shadow-1), inset 0 0 0 2px var(--green); }
.gcard[data-status="completed"] { opacity: .7; }
.gcard[data-status="cancelled"] { opacity: .5; text-decoration: line-through; }
.gcard__t { font-weight: 700; font-size: .78rem; font-variant-numeric: tabular-nums; }
.gcard__t b { font-weight: 700; margin-left: 5px; }
.gcard__n { font-size: .78rem; color: var(--ink-2); }
.gcard__s { font-size: .76rem; color: var(--ink-2); }
.gcard__f { position: absolute; right: 5px; top: 4px; width: 14px; height: 14px; color: var(--yellow-ink); background: var(--yellow); border-radius: 2px; padding: 1px; }
.gcard.is-short .gcard__s { display: none; }
.gcard.is-tiny .gcard__n, .gcard.is-tiny .gcard__s { display: none; }
.gcard.is-tiny { padding-top: 2px; padding-bottom: 2px; }
.grid__now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--green-deep); z-index: 3; pointer-events: none; }
.grid__now::before { content: ""; position: absolute; left: -5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }

/* week */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.week__day { background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-1); min-height: 260px; padding: 8px; }
.week__day.is-today { box-shadow: var(--shadow-1), inset 0 0 0 2px var(--green); }
.week__day.is-holiday .week__h::after { content: "holiday"; background: var(--yellow); font-size: .62rem; padding: 1px 5px; border-radius: 2px; margin-left: 6px; }
.week__h { font-weight: 700; font-size: .85rem; padding: 2px 4px 8px; border-bottom: 2px solid var(--green); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; }
.week__h a { text-decoration: none; color: inherit; }
.week__h small { color: var(--ink-3); font-weight: 400; }
.week__day .gcard { position: static; margin: 0 0 6px; }
.week__off { font-size: .74rem; color: var(--ink-3); padding: 3px 4px; background: var(--enamel); border-radius: 2px; margin-bottom: 6px; }
.week__slot { font: 700 .72rem/1.2 var(--font-body); color: var(--green-deep); border: 1.5px dashed var(--green); background: var(--green-tint); border-radius: 3px; padding: 4px 6px; margin-bottom: 6px; }

/* month */
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.month__dow { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 0 6px 4px; }
.month__day { min-height: 96px; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-1); padding: 6px 8px; text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; position: relative; }
.month__day.is-other { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.month__day.is-today { box-shadow: var(--shadow-1), inset 0 0 0 2px var(--green); }
.month__day.is-holiday .month__n::after { content: "H"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); font-size: .62rem; margin-left: 5px; }
.month__n { font-weight: 700; font-size: .88rem; }
.month__mags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.mag { display: inline-flex; align-items: center; gap: 4px; font: 700 .72rem/1 var(--font-body); padding: 3px 6px 3px 4px; border-radius: 10px; background: var(--enamel); color: var(--ink-2); }
.mag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--green)); }
.mag.is-unassigned { background: transparent; box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red); }
.mag.is-requested { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.month__slots { font-size: .7rem; color: var(--green-deep); font-weight: 700; margin-top: 4px; }

/* ---- drawer ------------------------------------------------------------ */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(31,31,31,.28); display: flex; justify-content: flex-end; }
.drawer__panel { width: min(520px, 100%); height: 100%; overflow: auto; border-radius: 0; box-shadow: -20px 0 40px -20px rgba(20,20,20,.5); }
.office .drawer__panel.card { padding: 0; }
.drawer__in { padding: 22px 24px 40px; }
.drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.drawer__head h2 { font-size: 1.35rem; margin: 0; }
.drawer__close { width: 36px; height: 36px; border: 0; background: var(--enamel); border-radius: 3px; cursor: pointer; display: grid; place-items: center; flex: none; }
.drawer__close svg { width: 18px; height: 18px; }
.drawer .section { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.drawer .section h3 { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; color: var(--ink-3); font-family: var(--font-body); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; font-size: .92rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.office .sticky--pinned { --tilt: -1deg; font-size: 1rem; padding: 22px 18px 16px; width: auto; cursor: default; }
.office .sticky--pinned, .office .sticky--pinned:hover { transform: rotate(var(--tilt)); box-shadow: 0 1px 1px rgba(20,20,20,.04), 0 10px 20px -10px rgba(20,20,20,.3); }
.office .sticky--pinned { padding-top: 26px; }
.office .sticky--pinned .sticky__pet { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.office .sticky--pinned .magnet { left: 18px; margin-left: 0; top: -18px; }
.office .sticky--pinned, .office .sticky--pinned .sticky__body { font-family: var(--font-hand); font-size: 1.05rem; }
.office .sticky--pinned textarea { width: 100%; font: inherit; font-family: var(--font-hand); font-size: 1.05rem; background: transparent; border: 0; border-bottom: 1px dashed var(--yellow-ink); resize: vertical; min-height: 60px; }
.office .sticky--pinned textarea:focus { outline: none; border-bottom-style: solid; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li { padding: 8px 10px; background: var(--enamel); border-radius: 3px; font-size: .9rem; }
.notes li .hand { font-size: 1rem; color: var(--ink); }
.notes li small { display: block; color: var(--ink-3); font-size: .74rem; margin-top: 4px; }
.statusbar { display: flex; gap: 6px; flex-wrap: wrap; }
.statusbar .seg button { padding: 6px 10px; font-size: .8rem; }

/* ---- rolodex / clients ------------------------------------------------- */
.split { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.rolodex { background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-1); overflow: hidden; position: sticky; top: 80px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
.rolodex__search { padding: 12px 12px 8px; border-bottom: 1px solid var(--rule); }
.rolodex__search input { width: 100%; font: inherit; font-size: .95rem; border: 0; border-bottom: 2px solid var(--rule-strong); padding: 7px 4px; }
.rolodex__search input:focus { outline: none; border-bottom-color: var(--green); }
.rolodex__list { list-style: none; margin: 0; padding: 4px 0 10px; overflow: auto; }
.rolodex__tab { position: sticky; top: 0; background: var(--paper); font: 700 .7rem/1 var(--font-body); letter-spacing: .1em; color: var(--green-deep); padding: 10px 14px 4px; border-bottom: 1px solid var(--rule); }
.rolodex__item { display: block; width: 100%; text-align: left; font: inherit; border: 0; background: transparent; padding: 9px 14px; cursor: pointer; border-left: 3px solid transparent; }
.rolodex__item:hover { background: var(--enamel); }
.rolodex__item[aria-current="true"] { background: var(--green-tint); border-left-color: var(--green); }
.rolodex__item b { display: block; font-weight: 700; }
.rolodex__item small { color: var(--ink-3); font-size: .8rem; }
.rolodex__item .lead { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); float: right; margin-top: 3px; }
.file { display: grid; gap: 18px; }
.file__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.file__head h1 { margin: 0 0 2px; }
.file__meta { color: var(--ink-2); font-size: .92rem; }
.file__meta a { color: var(--green-deep); }
.file__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.pets { display: grid; gap: 10px; }
.pet { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; padding: 12px; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-1); }
.pet__photo { width: 56px; height: 56px; border-radius: 3px; background: var(--enamel-lo); object-fit: cover; display: grid; place-items: center; color: var(--green); }
.pet__photo svg { width: 26px; height: 26px; }
.pet__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.pet__sub { color: var(--ink-3); font-size: .82rem; }
.pet__flags { margin-top: 6px; font-size: .88rem; }
.pet__flags b { color: var(--orange-ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-1); overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; background: var(--enamel-hi); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr[data-href] { cursor: pointer; }
.tbl tr[data-href]:hover td { background: var(--enamel); }
.status { display: inline-block; font: 700 .7rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 2px; background: var(--enamel-lo); color: var(--ink-2); }
.status--open { background: var(--yellow); color: var(--ink); }
.status--paid { background: var(--green-tint); color: var(--green-deep); }
.status--approved { background: var(--green-tint); color: var(--green-deep); }
.status--pending { background: var(--yellow); color: var(--ink); }
.status--denied, .status--void, .status--missed { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rule-strong); text-decoration: line-through; }
.status--in_progress { background: var(--green); color: #fff; }
.status--requested { background: transparent; outline: 1.5px dashed var(--rule-strong); outline-offset: -1px; }

/* thread */
.thread { display: grid; gap: 8px; max-height: 480px; overflow: auto; padding: 12px; background: var(--enamel); border-radius: 3px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 3px; background: var(--paper); box-shadow: var(--shadow-1); font-size: .92rem; position: relative; }
.msg--team { margin-left: auto; background: var(--green-tint); }
.msg--card { background: var(--paper); box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(46,107,79,.35); }
.msg small { display: block; font-size: .72rem; color: var(--ink-3); margin-top: 4px; }
.msg .kind { font-weight: 700; color: var(--green-deep); }
.msg--request { box-shadow: none; outline: 2px dashed var(--rule-strong); outline-offset: -2px; background: var(--enamel-hi); }
.composer { display: flex; gap: 8px; margin-top: 10px; }
.composer input { flex: 1; font: inherit; font-size: .95rem; border: 0; border-bottom: 2px solid var(--rule-strong); padding: 8px 4px; }
.composer input:focus { outline: none; border-bottom-color: var(--green); }

/* ---- sitters ------------------------------------------------------------ */
.avail-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.avail-day { background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-1); padding: 10px; }
.avail-day h4 { margin: 0 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green-deep); font-family: var(--font-body); }
.avail-day .range { display: grid; grid-template-columns: 1fr 1fr auto; gap: 4px; align-items: center; margin-bottom: 4px; }
.avail-day input { font: inherit; font-size: .8rem; border: 0; border-bottom: 1.5px solid var(--rule-strong); padding: 4px 2px; width: 100%; }
.avail-day .range button, .avail-day .add { font: inherit; font-size: .78rem; border: 0; background: transparent; color: var(--green-deep); cursor: pointer; padding: 4px; }
.avail-day .off { position: static; font-size: .78rem; color: var(--ink-3); background: none; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.team__card { text-align: left; font: inherit; color: inherit; border: 0; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-1); padding: 14px 16px; cursor: pointer; display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: center; }
.team__card i { width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--green)); }
.team__card b { display: block; }
.team__card small { color: var(--ink-3); }
.team__card[aria-current="true"] { box-shadow: var(--shadow-1), inset 0 0 0 2px var(--green); }

/* ---- visits / report ---------------------------------------------------- */
.report-view { display: grid; grid-template-columns: 7fr 5fr; gap: 22px; align-items: start; }
.report-card { padding: 26px 22px 20px; }
.report-card .magnet { left: auto; right: 18px; margin-left: 0; }
.report-card h2 { font-size: 1.25rem; margin: 0 0 4px; }
.report-card .report__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; color: var(--ink-3); margin: 0 0 12px; }
.report-card .report__meta b { color: var(--ink); }
.strip-prints { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.strip-prints .print { width: 176px; }
.office .print { --tilt: 0deg; transform: none; padding: 6px 6px 26px; }
.office .print img { --ar: 3 / 4; }
.office .print figcaption { left: 8px; right: 8px; bottom: 5px; font-size: 13px; }
.office .print:hover { transform: translateY(-2px); }
.report-map .map { height: 300px; border-radius: 1px; }
.checks--report li { line-height: 1.5; padding: 3px 0; font-size: .92rem; }
.checks--report li.is-off { color: var(--ink-3); }
.checks--report li.is-off svg { color: var(--rule-strong); }
.video-frame { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 2px; background: #111; }
.timer { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }

/* ---- money ------------------------------------------------------------- */
.money__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.inv { display: grid; gap: 12px; }
.inv .card { cursor: pointer; }
.inv .card:hover { box-shadow: var(--shadow-2); }
.inv__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.inv__num { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.inv__total { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.exports { display: grid; gap: 8px; }
.exports .pin { justify-content: flex-start; }
.items { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.items li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dotted var(--rule-strong); }
.items li:last-child { border-bottom: 0; }
.items .total { font-weight: 700; font-size: 1rem; border-top: 2px solid var(--green); border-bottom: 0; margin-top: 4px; padding-top: 8px; }

/* ---- sitter phone: my day + the visit screen ---------------------------- */
.myday { display: grid; gap: 12px; max-width: 640px; }
.clock { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-1); }
.clock b { display: block; }
.clock .pin { white-space: nowrap; flex: none; }
.clock small { color: var(--ink-3); }
.visit { max-width: 640px; display: grid; gap: 14px; }
.visit__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.visit .checks--report li { padding: 0; }
.visit .check { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; font-size: 1rem; padding: 12px 14px; border: 0; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-1); cursor: pointer; }
.visit .check svg { width: 22px; height: 22px; color: var(--rule-strong); flex: none; }
.visit .check[aria-pressed="true"] svg { color: var(--green); }
.visit .check[aria-pressed="true"] { box-shadow: var(--shadow-1), inset 0 0 0 2px var(--green); }
.visit textarea { font-family: var(--font-hand); font-size: 1.15rem; }
.shots { display: flex; gap: 8px; flex-wrap: wrap; }
.shots .print { width: 96px; padding: 4px 4px 4px; }
.shots .print img { --ar: 1; }
.uploader { display: grid; gap: 4px; }
.bar { height: 6px; background: var(--enamel-lo); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); transition: transform .2s; }

/* ---- toast ------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 3px; font-size: .9rem; box-shadow: var(--shadow-2); max-width: min(520px, 90vw); }
.toast.is-error { background: var(--orange-ink); }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .today, .report-view, .money__grid { grid-template-columns: 1fr; }
  .file__grid { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(4, 1fr); }
  .avail-week { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 800px) {
  .office__strip-in { min-height: 56px; }
  .tabs { display: none; }
  .me__role { display: none; }
  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); border-top: 1px solid rgba(20,20,20,.1); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 24px -18px rgba(20,20,20,.4); }
  .dock a { flex: 1; display: grid; justify-items: center; gap: 3px; font: 700 .68rem/1 var(--font-body); color: var(--ink-2); text-decoration: none; padding: 6px 2px; border-radius: 3px; position: relative; }
  .dock a svg { width: 22px; height: 22px; }
  .dock a[aria-current="page"] { color: var(--green-deep); background: var(--green-tint); }
  .dock a .count { position: absolute; top: 2px; right: 14%; min-width: 16px; height: 16px; border-radius: 8px; background: var(--yellow); font-size: .64rem; line-height: 16px; text-align: center; padding: 0 4px; }
  .view { margin-bottom: 90px; width: min(1400px, 100% - 2 * 12px); }
  .split { grid-template-columns: 1fr; }
  .rolodex { position: static; max-height: 60vh; }
  .rolodex.is-hidden { display: none; }
  .week { grid-template-columns: 1fr 1fr; }
  .month__day { min-height: 64px; padding: 4px 6px; }
  .mag { font-size: .64rem; padding: 2px 5px 2px 3px; }
  .avail-week { grid-template-columns: 1fr 1fr; }
  .drawer__panel { width: 100%; }
  .grid { max-height: none; }
  .datenav h2 { min-width: 0; font-size: 1rem; }
  .appt { grid-template-columns: 70px 1fr; }
  .appt__sitter { grid-column: 2; text-align: left; }
  .appt__sitter b { display: inline; margin-right: 6px; }
  .stickies { gap: 10px; }
  .office .sticky { min-width: 140px; flex: 1; }
}
@media (max-width: 480px) {
  .week { grid-template-columns: 1fr; }
  .strip-prints { grid-template-columns: repeat(3, 1fr); }
}

/* ---- print ----------------------------------------------------------------- */
@media print {
  @page { margin: 12mm; }
  body.office { background: #fff; font-size: 11pt; }
  .strip, .dock, .drawer, .toast, .view__tools, .sched__tools, .datenav button, .datenav input, .stickies, .where, .mapprint, .pin, .composer, .skip { display: none !important; }
  .view { width: 100%; margin: 0; }
  .grid { max-height: none; overflow: visible; box-shadow: none; border: 1px solid #999; }
  .grid__cols, .grid__head .grid__cols { grid-auto-columns: minmax(0, 1fr); }
  .gcard, .appt, .week__day, .month__day, .card, .tbl, .rolodex { box-shadow: none !important; border: 1px solid #bbb; }
  .gcard[data-status="in_progress"], .appt[data-status="in_progress"] { box-shadow: inset 0 0 0 2px #333 !important; }
  .gcard[data-status="requested"] { outline: 1.5px dashed #555; }
  .gcard[data-status="in_progress"] { box-shadow: inset 0 0 0 2px #333 !important; }
  .today { grid-template-columns: 1fr; }
  .print-only { display: block !important; }
  a[href]::after { content: none; }
  .run { page-break-after: always; }
  .run:last-child { page-break-after: auto; }
}
.print-only { display: none; }
.run { display: grid; gap: 8px; margin-bottom: 24px; }
.run h2 { margin: 0; font-size: 1.35rem; border-bottom: 2px solid #000; padding-bottom: 4px; }
.run__stop { display: grid; grid-template-columns: 84px 1fr; gap: 4px 14px; padding: 8px 0; border-bottom: 1px dotted #999; }
.run__stop b.num { white-space: nowrap; }
.run__stop .inst svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--green); }
.run__stop b { font-size: 1.05rem; }
.run__stop .addr { font-size: .95rem; }
.run__stop .inst { font-family: var(--font-hand); font-size: 1rem; margin-top: 2px; }
.run__stop .boxes { display: flex; gap: 14px; margin-top: 6px; font-size: .85rem; }
.run__stop .boxes span::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 1.5px solid #000; vertical-align: -2px; margin-right: 5px; }
