:root {
  --forest: #153b32;
  --forest-2: #214d42;
  --forest-dark: #0d2822;
  --bone: #f5f1e9;
  --paper: #fbfaf6;
  --white: #ffffff;
  --clay: #d27b57;
  --clay-soft: #f3ded5;
  --sage: #dde8df;
  --ink: #14231f;
  --muted: #69736f;
  --line: #e3e2dc;
  --blue: #4f758e;
  --gold: #c69645;
  --red: #b8544b;
  --green: #153b32;
  --soft: #f2f5f1;
  --sidebar: 252px;
  --header: 74px;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(21, 59, 50, .09);
  --app-visual-height: 100dvh;
}

/* Find boarding: explicit opt-in directory and privacy-reduced inquiries. */
.boarding-callout{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px;padding:26px;border-radius:24px;background:linear-gradient(135deg,#0d493f,#146a5b);color:#fff;box-shadow:0 18px 40px rgba(13,73,63,.17);margin-bottom:22px}.boarding-callout h2{margin:2px 0 6px;font-size:clamp(1.45rem,3vw,2.1rem)}.boarding-callout p{margin:0;max-width:720px;color:rgba(255,255,255,.82)}.boarding-callout .kicker{color:#bde8dd}.boarding-callout-icon{width:58px;height:58px;border-radius:18px;background:rgba(255,255,255,.14);display:grid;place-items:center}.boarding-callout-icon svg{width:28px;height:28px}.boarding-callout-horses{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.boarding-callout-horses span{padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.12);font-size:.78rem}.boarding-callout .button{background:#fff;color:#0d493f;border-color:#fff;white-space:nowrap}.owner-stable-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:18px;margin-bottom:18px}.owner-location-list{display:grid;gap:8px}.owner-location-list article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:15px}.owner-location-list small{display:block;color:var(--muted);margin-top:2px}.owner-facility-summary{display:flex;gap:12px;align-items:center;padding:14px;border-radius:16px;background:var(--soft);margin-bottom:12px}.owner-facility-summary svg{color:var(--green)}.owner-facility-summary span{display:block;color:var(--muted);font-size:.82rem;margin-top:2px}.boarding-empty,.boarding-map-empty{padding:22px;border:1px dashed var(--line);border-radius:16px;text-align:center;color:var(--muted)}.boarding-empty strong,.boarding-empty span{display:block}.boarding-empty strong{color:var(--ink);margin-bottom:4px}.boarding-owner-panel{margin:18px 0}.boarding-owner-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.boarding-owner-stats>div{padding:13px;border-radius:14px;background:var(--soft)}.boarding-owner-stats small,.boarding-owner-stats strong{display:block}.boarding-owner-stats small{color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.04em}.boarding-owner-stats strong{margin-top:5px}.boarding-owner-stats .published{color:var(--green)}.boarding-privacy-note,.boarding-confirm-note{display:flex;gap:9px;align-items:flex-start;padding:11px 13px;border-radius:13px;background:#eef8f5;color:#235b51;font-size:.82rem}.boarding-owner-panel>section{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.boarding-inquiry-list{display:grid;gap:10px}.boarding-inquiry{padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}.boarding-inquiry header{display:flex;justify-content:space-between;gap:12px}.boarding-inquiry header small,.boarding-inquiry header strong{display:block}.boarding-inquiry header small{color:var(--muted);margin-bottom:2px}.boarding-inquiry header>span{align-self:flex-start;padding:5px 9px;border-radius:999px;background:var(--soft);font-size:.72rem;font-weight:700}.boarding-inquiry p{margin:10px 0 0}.boarding-inquiry footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.boarding-response{display:flex;gap:7px;align-items:flex-start;margin-top:9px;padding:9px;border-radius:10px;background:#fff6e9;color:#7d551c;font-size:.8rem}.boarding-filter{margin-bottom:14px}.boarding-filter-primary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.boarding-filter details{margin-top:14px;padding-top:13px;border-top:1px solid var(--line)}.boarding-filter summary{cursor:pointer;font-weight:750;color:var(--green)}.boarding-filter-groups,.boarding-profile-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.boarding-filter-groups fieldset,.boarding-profile-options fieldset{display:grid;gap:7px;border:1px solid var(--line);border-radius:14px;padding:12px}.boarding-filter-groups legend,.boarding-profile-options legend{font-weight:750;padding:0 5px}.boarding-filter-groups label,.boarding-profile-options label{font-size:.82rem}.boarding-filter-actions{display:flex;justify-content:flex-end;margin-top:13px}.boarding-ori-query{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;align-items:center;gap:12px;padding:13px 15px;border:1px solid #b9dcd3;border-radius:17px;background:#f2faf7;margin-bottom:18px}.boarding-ori-query>div{display:flex;gap:9px;align-items:center}.boarding-ori-query strong,.boarding-ori-query small{display:block}.boarding-ori-query small{color:var(--muted);font-size:.72rem}.boarding-ori-query input{min-width:0}.boarding-results-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.42fr);gap:20px;align-items:start}.boarding-results-layout>aside{position:sticky;top:85px;padding:17px;border:1px solid var(--line);border-radius:19px;background:#fff}.boarding-results-layout>aside h2{margin:0 0 12px;font-size:1rem}.boarding-results-head{display:flex;justify-content:space-between;gap:18px;align-items:end;margin-bottom:12px}.boarding-results-head h2,.boarding-results-head p{margin:0}.boarding-results-head>small{max-width:330px;color:var(--muted);text-align:right}.boarding-results{display:grid;gap:12px}.boarding-result{padding:17px;border:1px solid var(--line);border-radius:19px;background:#fff;scroll-margin-top:100px}.boarding-result header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:start}.boarding-result-number{width:30px;height:30px;border-radius:10px;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:800}.boarding-result h2,.boarding-result p{margin:0}.boarding-result header p{font-size:.82rem;color:var(--muted);margin-top:3px}.boarding-result header>b{padding:6px 9px;border-radius:999px;background:#edf8f3;color:#23634f;font-size:.7rem}.boarding-result header>b.waitlist{background:#fff3db;color:#80601f}.boarding-result-price{display:flex;justify-content:space-between;align-items:center;margin:14px 0 10px;padding:10px 12px;border-radius:12px;background:var(--soft)}.boarding-result-price small{color:var(--muted)}.boarding-result-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.boarding-result-tags span{padding:5px 8px;border-radius:999px;background:#f3f4f0;font-size:.72rem}.boarding-result footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.boarding-result footer small{color:var(--muted);text-align:right}.boarding-map{height:330px;position:relative;overflow:hidden;border-radius:16px;background:linear-gradient(145deg,#eef4eb,#dbeae3)}.boarding-map:before,.boarding-map:after{content:"";position:absolute;inset:0;background:linear-gradient(31deg,transparent 47%,rgba(255,255,255,.6) 48%,rgba(255,255,255,.6) 50%,transparent 51%)}.boarding-map:after{transform:rotate(65deg)}.boarding-map button{position:absolute;left:var(--map-x);top:var(--map-y);transform:translate(-50%,-50%);border:0;background:transparent;display:grid;justify-items:center;z-index:2;color:var(--green);cursor:pointer}.boarding-map button span{width:29px;height:29px;border-radius:50% 50% 50% 8px;transform:rotate(-45deg);display:grid;place-items:center;background:var(--green);color:#fff;box-shadow:0 4px 10px rgba(0,0,0,.2)}.boarding-map button span::first-letter{transform:rotate(45deg)}.boarding-map button b{font-size:.67rem;padding:3px 5px;background:rgba(255,255,255,.9);border-radius:6px;white-space:nowrap}.boarding-map>small{position:absolute;left:8px;right:8px;bottom:8px;padding:7px 8px;border-radius:9px;background:rgba(255,255,255,.9);z-index:3;font-size:.66rem}.boarding-error{display:flex;gap:10px;align-items:center;padding:13px;border-radius:14px;background:#fff0ee;color:#9c352c;margin-bottom:14px}.boarding-error button{margin-left:auto}.boarding-request-summary,.horse-find-boarding{display:flex;gap:12px;align-items:center;padding:13px;border-radius:14px;background:var(--soft)}.boarding-request-summary>div,.horse-find-boarding span{flex:1}.boarding-request-summary strong,.boarding-request-summary span,.horse-find-boarding strong,.horse-find-boarding small{display:block}.boarding-request-summary span,.horse-find-boarding small{color:var(--muted);margin-top:2px}.horse-find-boarding{justify-content:space-between}.horse-find-boarding>div{display:flex;gap:10px;align-items:center}.boarding-owner-message{padding:13px;border:1px solid var(--line);border-radius:14px}.boarding-owner-message p{margin:5px 0 0}.boarding-profile-options{grid-column:1/-1}.modal-inline-actions{display:flex;justify-content:flex-end;gap:9px}
@media (max-width:900px){.boarding-filter-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.boarding-results-layout{grid-template-columns:1fr}.boarding-results-layout>aside{position:static;order:-1}.boarding-map{height:220px}.boarding-owner-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-stable-grid{grid-template-columns:1fr}.boarding-callout{grid-template-columns:auto minmax(0,1fr)}.boarding-callout>.button{grid-column:1/-1;justify-self:stretch}.boarding-filter-groups,.boarding-profile-options{grid-template-columns:1fr}}
@media (max-width:640px){.boarding-callout{grid-template-columns:1fr;padding:20px}.boarding-callout-icon{width:48px;height:48px}.boarding-filter-primary{grid-template-columns:1fr}.boarding-ori-query{grid-template-columns:1fr}.boarding-ori-query .button{width:100%}.boarding-results-head{display:block}.boarding-results-head>small{display:block;text-align:left;margin-top:7px}.boarding-result header{grid-template-columns:auto minmax(0,1fr)}.boarding-result header>b{grid-column:2}.boarding-result footer{align-items:stretch;flex-direction:column}.boarding-result footer small{text-align:left}.owner-location-list article{grid-template-columns:auto minmax(0,1fr)}.owner-location-list button{grid-column:2;justify-self:start}.horse-find-boarding{align-items:stretch;flex-direction:column}.boarding-owner-stats{grid-template-columns:1fr 1fr}.modal-inline-actions{flex-direction:column-reverse}.modal-inline-actions .button{width:100%}}

/* Trainer workspace ------------------------------------------------------- */
.trainer-workspace-page{--trainer-ink:#263d36;--trainer-soft:#edf4f0}.trainer-loading{padding:36px;text-align:center;color:var(--muted)}
.trainer-setup-card{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:20px 22px;margin-bottom:18px;border-radius:18px;background:linear-gradient(135deg,#315d50,#638779);color:#fff;box-shadow:0 12px 32px rgba(49,93,80,.18)}
.trainer-setup-card>div{display:flex;gap:14px;align-items:center}.trainer-setup-card svg{width:28px;height:28px}.trainer-setup-card span{display:grid;gap:3px}.trainer-setup-card small{color:rgba(255,255,255,.78)}
.trainer-filter-row{display:flex;gap:8px;overflow:auto;padding:0 0 14px;scrollbar-width:none}.trainer-filter-row::-webkit-scrollbar{display:none}.trainer-filter-row button{white-space:nowrap;border:1px solid var(--line);border-radius:999px;background:#fff;padding:9px 13px;color:var(--muted);font:inherit}.trainer-filter-row button.active{background:var(--trainer-ink);border-color:var(--trainer-ink);color:#fff}
.trainer-workspace-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.75fr);gap:18px;align-items:start}.trainer-workspace-grid>main{display:grid;gap:18px}.trainer-session-list{display:grid;gap:10px}.trainer-session-card{display:grid;grid-template-columns:82px minmax(0,1fr) auto;gap:16px;align-items:center;padding:15px;border:1px solid var(--line);border-radius:16px;background:#fff}.trainer-session-card.past{background:#fafbf9}.trainer-session-date{display:grid;gap:4px;padding:10px;border-radius:12px;background:var(--trainer-soft);text-align:center}.trainer-session-date strong{font-size:17px;color:var(--trainer-ink)}.trainer-session-date span{font-size:12px;color:var(--muted)}
.trainer-session-main>div:first-child{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.trainer-session-main h3{margin:6px 0 3px;font-size:16px}.trainer-session-main p,.trainer-session-main small{margin:0;color:var(--muted)}.trainer-session-main small{display:flex;align-items:center;gap:5px;margin-top:7px}.trainer-session-main small svg{width:14px}.trainer-discipline-tag{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#4f7669}.trainer-session-actions{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.trainer-session-actions button{border:0;background:none}.trainer-session-resources{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.trainer-session-resources a{display:inline-flex;gap:4px;align-items:center;padding:5px 8px;border-radius:8px;background:#f1f4f2;font-size:12px;color:var(--trainer-ink)}.trainer-session-resources svg{width:13px}.trainer-empty{padding:24px;border:1px dashed var(--line);border-radius:14px;color:var(--muted);text-align:center}
.trainer-resource-grid{display:grid;gap:10px}.trainer-resource-card{display:grid;grid-template-columns:70px minmax(0,1fr);gap:11px;align-items:center}.trainer-resource-card>a{height:62px;border-radius:11px;overflow:hidden;background:#eef2ef;display:grid;place-items:center}.trainer-resource-card img{width:100%;height:100%;object-fit:cover}.trainer-resource-file{font-weight:900;color:#8e4c46}.trainer-resource-card>div{display:grid;gap:2px;min-width:0}.trainer-resource-card small,.trainer-resource-card span{font-size:11px;color:var(--muted)}.trainer-resource-card strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.trainer-choice-grid,.trainer-participant-picker{border:1px solid var(--line);border-radius:14px;padding:14px}.trainer-choice-grid legend,.trainer-participant-picker legend{font-weight:800;padding:0 6px}.trainer-choice-grid legend small,.trainer-participant-picker legend small{font-weight:400;color:var(--muted)}.trainer-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.trainer-choice-grid label,.trainer-participant-picker label{display:flex;gap:9px;align-items:center;padding:10px;border-radius:10px;background:#f6f8f6}.trainer-participant-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.trainer-participant-picker label span{display:grid}.trainer-participant-picker label small{color:var(--muted)}
@media(max-width:900px){.trainer-workspace-grid{grid-template-columns:1fr}.trainer-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.trainer-setup-card{align-items:flex-start;flex-direction:column}.trainer-setup-card .button{width:100%}.trainer-session-card{grid-template-columns:68px minmax(0,1fr);align-items:start}.trainer-session-actions{grid-column:1/-1;flex-direction:row;justify-content:flex-end}.trainer-choice-grid,.trainer-participant-picker{grid-template-columns:1fr}.trainer-resource-grid{grid-template-columns:1fr}.trainer-workspace-page .page-actions{display:grid;grid-template-columns:1fr 1fr}.trainer-workspace-page .page-actions .button.primary{grid-column:1/-1}}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }

.auth-root { min-height: 100vh; background: var(--bone); }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr); }
.auth-story { padding: clamp(38px, 6vw, 82px); color: var(--white); background: var(--forest-dark); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.auth-story::before, .auth-story::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.auth-story::before { width: 560px; height: 560px; right: -310px; top: -180px; }
.auth-story::after { width: 420px; height: 420px; left: -230px; bottom: -250px; box-shadow: 0 0 0 90px rgba(255,255,255,.025); }
.auth-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; color: var(--bone); font-size: 15px; font-weight: 800; letter-spacing: .23em; }
.auth-brand img { padding: 2px; border-radius: 50%; background: var(--bone); box-sizing: border-box; }
.auth-story-copy { max-width: 590px; margin: auto 0; position: relative; z-index: 2; }
.auth-story-copy .kicker { color: #bad1c2; }
.auth-story-copy h1 { margin: 18px 0 22px; font-size: clamp(48px, 6vw, 82px); line-height: .94; letter-spacing: -.065em; font-weight: 570; }
.auth-story-copy p { max-width: 500px; margin: 0; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.7; }
.auth-points { margin-top: 36px; display: grid; gap: 12px; }
.auth-point { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.72); font-size: 10px; }
.auth-point span { width: 25px; height: 25px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; color: var(--forest-dark); background: var(--sage); }
.auth-point svg { width: 13px; height: 13px; }
.auth-story-foot { position: relative; z-index: 2; color: rgba(255,255,255,.48); font-size: 9px; letter-spacing: .035em; }
.auth-story-foot strong { color: rgba(255,255,255,.78); font-weight: 720; }
.auth-panel { padding: 40px clamp(24px, 8vw, 110px); display: grid; place-items: center; }
.auth-card { width: min(440px, 100%); }
.auth-mobile-brand { display: none; }
.auth-mobile-brand > span { display: grid; gap: 3px; letter-spacing: 0; }
.auth-mobile-brand > span > strong { font-size: 13px; letter-spacing: .2em; }
.auth-mobile-brand > span > small { color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: 0; }
.auth-card .kicker { margin-bottom: 12px; }
.auth-card h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -.055em; font-weight: 630; }
.auth-intro { margin: 14px 0 29px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.auth-form { display: grid; gap: 14px; }
.auth-form .field input, .auth-form .field select { min-height: 49px; border-radius: 13px; }
.registration-roles { min-width: 0; margin: 0; padding: 0; border: 0; }
.registration-roles legend { padding: 0; color: var(--text); font-size: 10px; font-weight: 720; }
.registration-roles > p { margin: 5px 0 10px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.registration-roles > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.registration-roles label { min-width: 0; min-height: 62px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: flex-start; gap: 8px; background: var(--white); cursor: pointer; }
.registration-roles label:last-child { grid-column: 1 / -1; }
.registration-roles label:has(input:checked) { border-color: #93ad9a; background: var(--sage); box-shadow: inset 0 0 0 1px rgba(21,59,50,.08); }
.registration-roles input { margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--forest); }
.registration-roles span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.registration-roles strong { font-size: 9px; }
.registration-roles small { color: var(--muted); font-size: 7px; line-height: 1.35; }
.registration-legal { min-width: 0; margin: 5px 0 0; padding: 18px; border: 2px solid #a8bdae; border-radius: 15px; display: grid; gap: 14px; background: #f3f8f4; box-shadow: 0 9px 24px rgba(21, 59, 50, .06); }
.registration-legal legend { padding: 0 8px; color: var(--forest); font-size: 15px; font-weight: 800; }
.registration-legal > p, .registration-legal > small { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.registration-legal .registration-legal-intro strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13px; }
.registration-legal label { min-height: 29px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 10px; color: var(--text); font-size: 13px; line-height: 1.5; cursor: pointer; }
.registration-legal input { width: 21px; height: 21px; margin: 0; accent-color: var(--forest); }
.registration-legal a { color: var(--forest); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 72px; }
.password-toggle { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); padding: 7px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 8px; }
.auth-submit { width: 100%; min-height: 50px; margin-top: 4px; border-radius: 13px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-check { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.auth-check input { margin: 1px 0 0; accent-color: var(--forest); }
.auth-link { padding: 0; border: 0; color: var(--forest); background: transparent; cursor: pointer; font-size: 9px; font-weight: 740; }
.auth-separator { margin: 24px 0; display: flex; align-items: center; gap: 12px; color: #a1a7a4; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.auth-separator::before, .auth-separator::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-switch { color: var(--muted); text-align: center; font-size: 10px; }
.auth-switch a { color: var(--forest); font-weight: 760; }
.auth-message { margin-bottom: 17px; padding: 12px 13px; border: 1px solid #d4e1d6; border-radius: 11px; color: #426052; background: #edf5ee; font-size: 9px; line-height: 1.5; }
.auth-message.error { border-color: #ead1cd; color: #8a433c; background: #faece9; }
.auth-resend { margin: 8px auto 0; padding: 6px 9px; border: 1px solid currentColor; border-radius: 8px; display: block; color: inherit; background: transparent; cursor: pointer; font: inherit; font-weight: 720; }
.auth-direct-verify { color: var(--forest); font-weight: 780; }
.auth-state { text-align: center; }
.auth-state-icon { width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 21px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.auth-state-icon svg { width: 31px; height: 31px; }
.auth-state h2 { font-size: 34px; }
.auth-state .button { margin-top: 10px; }
.auth-state .local-mail-button { margin-left: 7px; }
.auth-invitation-note { margin: -12px 0 16px; padding: 13px 14px; border: 1px solid #cbdacf; border-radius: 12px; color: #426052; background: #edf5ee; font-size: 10px; line-height: 1.55; }
.horse-invitation-state .auth-intro { max-width: 460px; margin-inline: auto; }
.horse-invitation-actions { display: flex; justify-content: center; gap: 9px; }
.horse-invitation-state > small { margin-top: 16px; display: block; color: var(--muted); font-size: 9px; }
.mailpit-link { margin-top: 13px; display: inline-flex; color: var(--clay); font-size: 9px; font-weight: 720; }
.auth-loading { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.auth-loading img { width: 55px; height: 55px; color: var(--forest); animation: authPulse 1.2s ease-in-out infinite alternate; }
.auth-loading p { margin: 14px 0 0; color: var(--muted); font-size: 10px; }
@keyframes authPulse { to { transform: scale(1.08); opacity: .55; } }

.app-shell { min-height: 100vh; }
.data-sync-status { position: fixed; z-index: 79; top: calc(72px + env(safe-area-inset-top)); left: 50%; translate: -50% 0; max-width: min(92vw, 480px); padding: 9px 14px; border: 1px solid rgba(21, 59, 50, .14); border-radius: 999px; display: flex; align-items: center; gap: 9px; color: var(--forest); background: rgba(255, 255, 255, .96); box-shadow: 0 8px 24px rgba(31, 53, 45, .12); backdrop-filter: blur(10px); font-size: 10px; }
.data-sync-status[hidden] { display: none; }
.data-sync-status > span { width: 9px; height: 9px; flex: 0 0 auto; border: 2px solid rgba(21, 59, 50, .22); border-top-color: var(--forest); border-radius: 50%; animation: syncStatusSpin .8s linear infinite; }
.data-sync-status[data-state="ready"] > span { border: 0; background: #4d8d65; animation: none; }
.data-sync-status[data-state="error"] { color: #7f3329; border-color: rgba(127, 51, 41, .2); background: rgba(255, 248, 246, .97); }
.data-sync-status[data-state="error"] > span { border: 0; background: #b85848; animation: none; }
@keyframes syncStatusSpin { to { transform: rotate(360deg); } }
.fast-start-shell { min-height: min(70vh, 680px); padding: clamp(18px, 4vw, 42px); display: grid; align-content: start; gap: 16px; }
.fast-start-shell > div:first-child { display: flex; align-items: center; gap: 12px; }
.fast-start-shell img { width: 38px; height: 38px; }
.fast-start-shell h1 { margin: 0 0 3px; font-size: clamp(21px, 4vw, 32px); }
.fast-start-shell p { margin: 0; color: var(--muted); }
.fast-start-skeleton { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.fast-start-skeleton span { min-height: 112px; border: 1px solid rgba(21, 59, 50, .08); border-radius: 18px; background: linear-gradient(100deg, #f5f1e9 20%, #fff 36%, #f5f1e9 52%); background-size: 220% 100%; animation: fastStartShimmer 1.45s ease-in-out infinite; }
@keyframes fastStartShimmer { to { background-position-x: -220%; } }
.offline-start { min-height: 100vh; padding: 28px; display: grid; place-items: center; background: var(--paper); }
.offline-start > div { width: min(100%, 440px); padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.offline-start img { width: 54px; height: 54px; }
.offline-start h1 { margin: 16px 0 8px; }
.offline-start p { color: var(--muted); line-height: 1.55; }
.sidebar { width: var(--sidebar); position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; padding: 24px 16px 18px; color: #edf3ef; background: var(--forest-dark); }
.brand { min-height: 54px; padding: 0 10px; display: flex; align-items: center; gap: 10px; color: var(--bone); }
.brand img { padding: 3px; border-radius: 50%; color: var(--bone); background: var(--bone); box-sizing: border-box; }
.brand-lockup { min-width: 0; display: grid; gap: 3px; }
.brand-lockup strong { font-size: 15px; font-weight: 800; letter-spacing: .22em; }
.brand-lockup small { color: rgba(255,255,255,.44); font-size: 7px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.side-nav { min-height: 0; margin-top: 28px; padding-right: 2px; display: flex; flex: 1; flex-direction: column; gap: 5px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.nav-section-label { padding: 16px 13px 6px; color: rgba(255,255,255,.35); font-size: 9px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.nav-item { min-height: 44px; padding: 0 13px; border-radius: 12px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.64); font-size: 13px; font-weight: 610; transition: .18s ease; }
.nav-item svg { width: 19px; height: 19px; stroke-width: 1.7; }
.nav-item:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-item.active { color: var(--white); background: rgba(221,232,223,.13); }
.nav-item.nav-logout { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; }
.nav-item.nav-logout:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-item.active .nav-icon { color: #b9d4c2; }
.nav-order-tools { margin: 0 6px 8px; }
.nav-order-tools > button { width: 100%; min-height: 34px; padding: 0 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.045); cursor: pointer; font-size: 9px; font-weight: 720; }
.nav-order-tools > button:hover, .nav-order-tools > button:focus-visible { color: #fff; background: rgba(255,255,255,.1); outline: none; }
.nav-order-editor { margin-top: 7px; padding: 6px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; display: grid; gap: 3px; background: rgba(0,0,0,.12); }
.nav-order-editor > div { min-height: 36px; padding-left: 7px; display: flex; align-items: center; justify-content: space-between; gap: 5px; color: rgba(255,255,255,.74); font-size: 9px; }
.nav-order-editor > div > span:last-child { display: flex; gap: 3px; }
.nav-order-editor button { width: 31px; height: 31px; border: 0; border-radius: 8px; color: #e4eee6; background: rgba(255,255,255,.09); cursor: pointer; font-size: 14px; }
.nav-order-editor button:disabled { opacity: .25; cursor: default; }
.nav-count { margin-left: auto; min-width: 22px; padding: 3px 6px; border-radius: 99px; color: #ffd9ca; background: rgba(210,123,87,.2); text-align: center; font-size: 9px; }
.nav-tree-root { display: grid; grid-template-columns: minmax(0, 1fr) 31px; gap: 3px; }
.nav-tree-root .nav-item { min-width: 0; padding-right: 8px; }
.nav-tree-root > button, .nav-horse-row > button { padding: 0; border: 0; border-radius: 9px; color: rgba(255,255,255,.55); background: transparent; cursor: pointer; font-size: 17px; }
.nav-tree-root > button:hover, .nav-horse-row > button:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-horse-count { color: rgba(255,255,255,.58); background: rgba(255,255,255,.08); }
.nav-horse-list { margin: 3px 0 5px 22px; padding: 3px 0 3px 10px; border-left: 1px solid rgba(255,255,255,.12); display: grid; gap: 3px; }
.nav-horse-group { border-radius: 11px; }
.nav-horse-group.current { background: rgba(255,255,255,.035); }
.nav-horse-row { min-height: 36px; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 3px; }
.nav-horse-row > a { min-width: 0; padding: 0 7px; border-radius: 9px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.67); }
.nav-horse-row > a:hover { color: var(--white); background: rgba(255,255,255,.055); }
.nav-horse-row > a > span:first-child { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--horse-nav-color); box-shadow: 0 0 0 3px rgba(255,255,255,.07); }
.nav-horse-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.nav-horse-title { min-width:0; display:grid; gap:1px; }
.nav-horse-title small { overflow:hidden; color:rgba(255,255,255,.45); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.nav-horse-sections { margin: 0 5px 5px 15px; padding: 2px 0 4px 10px; border-left: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: 1fr 1fr; gap: 2px 4px; }
.nav-horse-sections a { min-width: 0; padding: 6px 7px; border-radius: 8px; overflow: hidden; color: rgba(255,255,255,.47); font-size: 9px; font-weight: 630; text-overflow: ellipsis; white-space: nowrap; }
.nav-horse-sections a:hover { color: var(--white); background: rgba(255,255,255,.055); }
.nav-horse-sections a.active { color: #d9eadc; background: rgba(185,212,194,.12); }
.nav-horse-empty { padding: 9px 7px; color: rgba(255,255,255,.38); font-size: 9px; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.workspace-badge { width: 100%; border: 0; display: flex; align-items: center; gap: 10px; padding: 8px; color: var(--white); background: transparent; text-align: left; cursor: pointer; }
.workspace-badge > span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--forest-dark); background: var(--sage); font-size: 10px; font-weight: 800; }
.workspace-badge div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.workspace-badge strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-badge small { color: rgba(255,255,255,.4); font-size: 8px; }
.workspace-badge > b { margin-left: auto; color: rgba(255,255,255,.42); font-size: 10px; font-weight: 600; transform: rotate(90deg); }
.workspace-badge:hover { border-radius: 12px; background: rgba(255,255,255,.05); }

.app-body { min-height: 100vh; margin-left: var(--sidebar); }
.app-header { height: var(--header); position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; padding: 0 clamp(20px, 3vw, 42px); border-bottom: 1px solid var(--line); background: rgba(251,250,246,.92); backdrop-filter: blur(18px); }
.mobile-brand, .menu-button { display: none; }
.search-trigger { width: min(460px, 42vw); height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; gap: 10px; color: var(--muted); background: var(--white); cursor: pointer; text-align: left; }
.search-trigger svg { width: 18px; }
.search-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
kbd { margin-left: auto; padding: 3px 7px; border: 1px solid #dadbd6; border-radius: 6px; color: #8b918e; background: #f7f7f4; font-family: inherit; font-size: 9px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.profile-menu-wrap { position: relative; }
.icon-button { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; background: var(--white); cursor: pointer; position: relative; }
.icon-button svg { width: 19px; height: 19px; }
.notification-dot { min-width: 17px; height: 17px; padding: 0 4px; position: absolute; top: -4px; right: -4px; border: 2px solid var(--white); border-radius: 99px; display: grid; place-items: center; color: var(--white); background: var(--clay); font-size: 7px; font-weight: 850; line-height: 1; }
.notification-dot[hidden] { display: none; }
.profile-button { min-height: 46px; padding: 4px 7px 4px 4px; border: 1px solid transparent; border-radius: 14px; display: flex; align-items: center; gap: 9px; background: transparent; cursor: pointer; text-align: left; transition: .18s ease; }
.profile-button:hover, .profile-button[aria-expanded="true"] { border-color: var(--line); background: var(--white); }
.profile-button > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--bone); background: var(--forest); font-size: 10px; font-weight: 800; }
.profile-button div { display: flex; flex-direction: column; gap: 2px; }
.profile-button strong { font-size: 11px; }
.profile-button small { color: var(--muted); font-size: 8px; }
.profile-chevron { margin-left: 2px; color: var(--muted); font-size: 12px; font-weight: 500; transition: transform .18s ease; }
.profile-button[aria-expanded="true"] .profile-chevron { transform: rotate(180deg); }
.profile-menu { width: 286px; position: absolute; top: calc(100% + 9px); right: 0; z-index: 90; padding: 9px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: 0 20px 55px rgba(13,40,34,.16); }
.profile-menu-identity { padding: 9px 9px 11px; display: flex; align-items: center; gap: 10px; }
.profile-menu-identity > span { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; color: var(--bone); background: var(--forest); font-size: 9px; font-weight: 800; }
.profile-menu-identity div, .profile-menu button div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.profile-menu-identity strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-identity small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-divider { height: 1px; margin: 0 5px 5px; background: var(--line); }
.profile-role-switcher { padding: 7px 5px 9px; }
.profile-role-head { margin: 0 4px 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.profile-role-head strong { font-size: 9px; }
.profile-role-head small { padding: 3px 6px; border-radius: 99px; color: #7a5947; background: var(--clay-soft); font-size: 7px; font-weight: 700; }
.profile-role-options { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.profile-role-scope-note { margin: 8px 4px 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.ori-expense-plan { margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.ori-expense-plan > strong { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ori-expense-plan dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.ori-expense-plan dl div { padding: 9px 10px; border-radius: 12px; background: var(--surface); }
.ori-expense-plan dt { color: var(--muted); font-size: 11px; }
.ori-expense-plan dd { margin: 3px 0 0; font-weight: 700; }
.ori-expense-plan p { margin: 10px 0 0; font-size: 13px; line-height: 1.45; }
@media (max-width: 650px) { .ori-expense-plan dl { grid-template-columns: 1fr; } }
.profile-menu .profile-role-option { min-height: 38px; padding: 6px 7px; border: 1px solid var(--line); gap: 6px; background: #fbfbf8; }
.profile-menu .profile-role-option > span { width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: transparent; background: #e8ece7; font-size: 9px; }
.profile-menu .profile-role-option > strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu .profile-role-option.active { border-color: #a9c0ae; color: var(--forest); background: var(--sage); }
.profile-menu .profile-role-option.active > span { color: var(--white); background: var(--forest); }
.profile-menu .profile-role-option:disabled { cursor: wait; opacity: .7; }
.profile-menu button { width: 100%; min-height: 54px; padding: 8px; border: 0; border-radius: 11px; display: flex; align-items: center; gap: 10px; background: transparent; cursor: pointer; text-align: left; }
.profile-menu button:hover, .profile-menu button:focus-visible { outline: none; background: #f4f6f2; }
.profile-menu button strong { font-size: 10px; }
.profile-menu button small { color: var(--muted); font-size: 8px; }
.profile-menu-icon { width: 31px; height: 31px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; color: var(--forest); background: var(--sage); font-size: 14px; font-weight: 700; }
.profile-menu .profile-menu-logout strong { color: #8d423b; }
.profile-menu .profile-menu-logout .profile-menu-icon { color: #994d45; background: #fae8e4; }

.main-content { min-height: calc(100vh - var(--header)); padding: 38px clamp(20px, 3.7vw, 56px) 80px; outline: none; }
.page { max-width: 1420px; margin: 0 auto; animation: pageIn .28s ease; }
@keyframes pageIn { from { opacity: .35; transform: translateY(5px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-head h1 { margin: 4px 0 0; font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -.055em; font-weight: 650; }
.page-head p:not(.kicker) { max-width: 660px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.kicker { margin: 0; color: var(--clay); font-size: 9px; font-weight: 780; letter-spacing: .16em; text-transform: uppercase; }
.head-actions { display: flex; gap: 10px; }
.button { min-height: 43px; padding: 0 17px; border: 1px solid transparent; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-size: 11px; font-weight: 740; transition: .18s ease; }
.button svg { width: 16px; height: 16px; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: var(--white); background: var(--forest); }
.button.primary:hover { background: var(--forest-dark); }
.button.secondary { border-color: var(--line); background: var(--white); }
.button.ghost { color: var(--forest); background: var(--sage); }
.button.danger { border-color: #a9342a; color: #fff; background: #b73d32; }
.button.danger:hover { background: #972f27; }
.button.danger-outline { border-color: #d9a7a2; color: #a02f27; background: #fff7f6; }
.button.danger-outline:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.modal-actions-spacer { flex: 1; }
.modal-delete-confirm { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 16px; border: 1px solid #e1aaa4; border-radius: 16px; background: #fff4f2; color: #742a24; }
.modal-delete-confirm > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: #b73d32; }
.modal-delete-confirm strong { display: block; margin-bottom: 4px; color: #75251f; }
.modal-delete-confirm p { margin: 0; color: #82443e; line-height: 1.45; }
.modal-delete-confirm-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.text-button { padding: 0; border: 0; color: var(--forest); background: none; cursor: pointer; font-size: 10px; font-weight: 750; }

.dashboard-small-tip { margin-bottom: 25px; padding: 11px 14px; border: 1px solid #d4e1d6; border-radius: 13px; display: flex; align-items: flex-start; gap: 10px; color: #426052; background: #edf5ee; }
.dashboard-small-tip > span { width: 27px; height: 27px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; color: var(--forest); background: rgba(255,255,255,.72); }
.dashboard-small-tip > span svg { width: 15px; height: 15px; }
.dashboard-small-tip > div { min-width: 0; display: grid; gap: 2px; }
.dashboard-small-tip strong { color: var(--forest); font-size: 10px; }
.dashboard-small-tip p { margin: 0; color: #587064; font-size: 10px; line-height: 1.45; }
.feed-dashboard-alert { width: 100%; min-height: 62px; margin: -11px 0 25px; padding: 11px 14px; border: 1px solid #efcec3; border-radius: 14px; display: flex; align-items: center; gap: 11px; color: #8e473e; background: #fff3ef; cursor: pointer; text-align: left; }
.feed-dashboard-alert > svg { width: 21px; height: 21px; flex: 0 0 auto; }
.feed-dashboard-alert > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.feed-dashboard-alert strong { font-size: 10px; }
.feed-dashboard-alert span { overflow: hidden; color: #91635d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.feed-dashboard-alert > b { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 8px; white-space: nowrap; }
.feed-dashboard-alert > b svg { width: 13px; height: 13px; }
.stable-dashboard-alert { border-color: #bad8c4; color: var(--forest); background: #f0f8f2; text-decoration: none; }
.stable-dashboard-alert span { color: #5f7768; }

.hero-card { min-height: 290px; padding: clamp(27px, 4vw, 48px); border-radius: 27px; color: var(--white); background: var(--forest); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.hero-card::before, .hero-card::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.hero-card::before { width: 430px; height: 430px; right: -150px; top: -190px; }
.hero-card::after { width: 280px; height: 280px; right: -20px; bottom: -210px; }
.hero-top, .hero-bottom { position: relative; z-index: 2; }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.hero-card .kicker { color: #b7d0c0; }
.hero-card h2 { max-width: 720px; margin: 13px 0 0; font-size: clamp(31px, 4vw, 53px); line-height: 1.02; letter-spacing: -.055em; font-weight: 570; }
.weather-chip { min-width: 80px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.08); text-align: right; }
.weather-chip strong { display: block; font-size: 20px; }
.weather-chip span { color: rgba(255,255,255,.55); font-size: 8px; }
.weather-overview { width: min(500px, 50%); padding: 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 17px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.weather-current { display: flex; align-items: center; gap: 11px; }
.weather-current-icon { width: 39px; height: 39px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 22px; }
.weather-current > div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; }
.weather-current strong { font-size: 24px; line-height: 1; }
.weather-current span { color: rgba(255,255,255,.76); font-size: 9px; }
.weather-current small { grid-column: 1 / -1; margin-top: 4px; color: rgba(255,255,255,.48); font-size: 7px; }
.weather-hours { margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: repeat(6, minmax(42px, 1fr)); gap: 5px; }
.weather-hour { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.weather-hour time, .weather-hour small { color: rgba(255,255,255,.48); font-size: 6.5px; }
.weather-hour > span { font-size: 14px; }
.weather-hour strong { font-size: 10px; }
.weather-overview.unavailable { display: flex; align-items: center; gap: 9px; }
.weather-overview.unavailable > span svg { width: 20px; }
.weather-overview.unavailable > div { display: flex; flex-direction: column; gap: 3px; }
.weather-overview.unavailable strong { font-size: 10px; }
.weather-overview.unavailable small { color: rgba(255,255,255,.55); font-size: 8px; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.next-event { display: flex; align-items: center; gap: 12px; }
.dashboard-next-event { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.dashboard-next-event > svg { width: 15px; margin-left: 3px; color: rgba(255,255,255,.55); transition: transform .18s ease; }
.dashboard-next-event:hover > svg, .dashboard-next-event:focus-visible > svg { transform: translateX(3px); }
.dashboard-next-event:focus-visible { border-radius: 12px; outline: 2px solid rgba(255,255,255,.45); outline-offset: 5px; }
.event-time { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--forest-dark); background: var(--clay); font-size: 11px; font-weight: 800; }
.next-event div { display: flex; flex-direction: column; gap: 3px; }
.next-event strong { font-size: 12px; }
.next-event span { color: rgba(255,255,255,.55); font-size: 9px; }
.hero-link { min-height: 39px; padding: 0 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; display: inline-flex; align-items: center; gap: 8px; color: var(--white); background: rgba(255,255,255,.08); font-size: 9px; font-weight: 700; }

.horse-live-overview { margin-top: 16px; padding: 20px; border: 1px solid #d8e2dc; border-radius: var(--radius); background: linear-gradient(135deg, #fbfdfb, #f2f7f3); }
.horse-live-heading { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.horse-live-heading .kicker { margin: 0 0 4px; }
.horse-live-heading h2 { margin: 0; color: var(--ink); font-size: 17px; letter-spacing: -.025em; }
.horse-live-heading > a { display: inline-flex; align-items: center; gap: 5px; }
.horse-live-heading > a svg { width: 13px; }
.horse-live-grid { display: grid; gap: 11px; }
.horse-live-grid.single { grid-template-columns: minmax(0, 1fr); }
.horse-live-grid:not(.single) { margin-right: -20px; padding: 0 20px 5px 0; grid-auto-flow: column; grid-auto-columns: minmax(290px, 360px); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; scrollbar-width: thin; scrollbar-color: #bdccc2 transparent; }
.horse-live-grid:not(.single) .horse-live-card { scroll-snap-align: start; }
.horse-live-card { min-width: 0; padding: 14px; border: 1px solid #dbe4de; border-radius: 17px; background: var(--white); box-shadow: 0 8px 24px rgba(20,49,40,.045); }
.horse-live-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.horse-live-horse { min-width: 0; display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.horse-live-avatar { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; overflow: hidden; color: var(--forest); background: var(--sage); }
.horse-live-avatar svg { width: 19px; }
.horse-live-avatar img { width: 100%; height: 100%; object-fit: cover; }
.horse-live-horse > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.horse-live-horse small { color: var(--muted); font-size: 6.5px; font-weight: 800; letter-spacing: .11em; }
.horse-live-horse strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.horse-live-open { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; color: var(--forest); background: #f1f6f2; }
.horse-live-open svg { width: 13px; }
.horse-live-current { margin-top: 12px; padding: 12px; border-radius: 13px; display: flex; align-items: center; gap: 10px; color: var(--forest); background: #edf5ef; }
.horse-live-current > span { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.75); }
.horse-live-current > span svg { width: 16px; }
.horse-live-current > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.horse-live-current small { color: #63806d; font-size: 6.5px; font-weight: 800; letter-spacing: .08em; }
.horse-live-current strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.horse-live-current em { overflow: hidden; color: #6c7d72; font-size: 7.5px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.horse-live-facts { min-height: 54px; margin-top: 7px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.horse-live-facts > div, .horse-live-facts > button { min-width: 0; padding: 8px; border: 1px solid #edf0ed; border-radius: 11px; display: flex; align-items: center; gap: 7px; }
.horse-live-facts > div:only-child { grid-column: 1 / -1; }
.horse-live-facts > div > span, .horse-live-facts > button > span.blanket { width: 25px; height: 25px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; }
.horse-live-facts > div > span.done { color: #39704c; background: #e8f3eb; }
.horse-live-facts > div > span.next { color: #8a672d; background: #f8efd9; }
.horse-live-facts > div > span.blanket { color: #426b8a; background: #e8f1f7; }
.horse-live-facts > button.horse-live-blanket { position: relative; appearance: none; grid-column: 1 / -1; color: var(--ink); background: linear-gradient(135deg, #f7fbfc, #edf5f8); cursor: pointer; text-align: left; font: inherit; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.horse-live-facts > button.horse-live-blanket:hover, .horse-live-facts > button.horse-live-blanket:focus-visible { border-color: #a9c3d1; background: #eef6fa; outline: none; transform: translateY(-1px); }
.horse-live-facts > button.horse-live-blanket.warning { border-color: #e3b49d; background: #fff7f1; }
.horse-live-facts > button.horse-live-blanket.warning strong { color: #984a2c; }
.horse-live-facts svg { width: 13px; }
.horse-live-facts p { min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.horse-live-facts strong, .horse-live-facts small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.horse-live-facts strong { font-size: 8px; }
.horse-live-facts small { color: var(--muted); font-size: 6.5px; }
.horse-live-facts .horse-live-blanket p { flex: 1; }
.horse-live-facts .horse-live-blanket p > small { color: #567181; font-size: 6px; font-weight: 850; letter-spacing: .09em; }
.horse-live-facts .horse-live-blanket-fill { color: #27566f; font-family: var(--serif); font-size: 17px; line-height: 1; }
.horse-live-facts .horse-live-blanket em { overflow: hidden; color: var(--muted); font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.horse-live-facts .horse-live-blanket-open { width: 22px; height: 22px; margin-left: auto; color: #416c83; background: rgba(255,255,255,.75); }

.live-blanket-detail { display: grid; gap: 12px; }
.live-blanket-main { min-height: 116px; padding: 18px; border: 1px solid #c9dce5; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #28576e; background: linear-gradient(145deg, #f5fbfd, #e8f3f7); text-align: center; }
.live-blanket-main.warning { border-color: #e3b49d; color: #93492d; background: linear-gradient(145deg, #fffaf5, #fcece3); }
.live-blanket-main small { font-size: 7px; font-weight: 850; letter-spacing: .12em; }
.live-blanket-main strong { font-family: var(--serif); font-size: clamp(31px, 6vw, 45px); line-height: 1; }
.live-blanket-main span { color: var(--muted); font-size: 9px; }
.live-blanket-status { min-height: 42px; padding: 10px 12px; border-radius: 12px; display: flex; align-items: center; gap: 8px; font-size: 9px; line-height: 1.45; }
.live-blanket-status svg { width: 15px; flex: 0 0 auto; }
.live-blanket-status.suitable { color: #2c6541; background: #edf7f0; }
.live-blanket-status.warning { color: #8f4c32; background: #fff3ec; }
.live-blanket-weather { padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 9px; color: var(--muted); background: var(--surface-soft); font-size: 8px; line-height: 1.4; }
.live-blanket-weather svg { width: 16px; flex: 0 0 auto; color: var(--forest); }
.live-blanket-explanation, .live-blanket-notes { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.live-blanket-explanation strong, .live-blanket-notes strong { color: var(--ink); font-size: 10px; }
.live-blanket-explanation p, .live-blanket-notes p { margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.live-blanket-explanation ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.live-blanket-facts { margin: 0; padding: 4px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.live-blanket-facts > div { min-height: 35px; border-bottom: 1px solid #eef1ef; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-blanket-facts > div:last-child { border-bottom: 0; }
.live-blanket-facts dt { color: var(--muted); font-size: 8px; }
.live-blanket-facts dd { margin: 0; color: var(--ink); font-size: 9px; font-weight: 750; text-align: right; }
.live-blanket-feedback { padding: 14px; border-radius: 15px; display: grid; gap: 11px; background: #eef5f0; }
.live-blanket-feedback > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.live-blanket-feedback strong { color: var(--forest); font-size: 10px; }
.live-blanket-feedback span, .live-blanket-feedback > small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.live-blanket-feedback > div:nth-child(2) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.live-blanket-feedback button { min-height: 38px; padding: 6px; border: 1px solid #c9d8ce; border-radius: 10px; color: var(--forest); background: var(--white); cursor: pointer; font: inherit; font-size: 8px; font-weight: 800; }
.live-blanket-feedback button:hover, .live-blanket-feedback button:focus-visible, .live-blanket-feedback button.active { border-color: var(--forest); color: var(--white); background: var(--forest); outline: none; }
.live-blanket-disclaimer { margin: 0; color: var(--muted); font-size: 7.5px; line-height: 1.5; }
.horse-live-note { width: 100%; min-height: 34px; margin-top: 7px; padding: 0 10px; border: 1px dashed #cbd8cf; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--forest); background: transparent; cursor: pointer; font: inherit; font-size: 8px; font-weight: 750; }
.horse-live-note:hover, .horse-live-note:focus-visible { border-style: solid; background: #f5f9f6; outline: none; }
.horse-live-note svg { width: 13px; }
.horse-live-note.attention { border-style: solid; border-color: #e4b765; color: #704b13; background: linear-gradient(135deg, #fff7df, #f9e6b7); box-shadow: 0 7px 18px rgba(150,101,27,.13); }
.horse-live-note.attention:hover, .horse-live-note.attention:focus-visible { border-color: #d79b38; background: linear-gradient(135deg, #fff3ce, #f6dda2); box-shadow: 0 9px 22px rgba(150,101,27,.2); }
.horse-live-note.attention svg { width: 15px; color: #b37317; }
.horse-live-note.event-followup { justify-content: flex-start; min-height: 42px; padding: 7px 11px; text-align: left; line-height: 1.35; }

.metric-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card { min-height: 138px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); display: flex; flex-direction: column; }
.metric-card.clickable { cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.metric-card.clickable:hover, .metric-card.clickable:focus-visible { border-color: #bdc9c0; box-shadow: 0 12px 30px rgba(21,59,50,.08); transform: translateY(-2px); outline: none; }
.metric-card-head { display: flex; align-items: center; justify-content: space-between; }
.metric-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.metric-icon svg { width: 17px; height: 17px; }
.metric-icon.sage { color: var(--forest); background: var(--sage); }
.metric-icon.clay { color: var(--red); background: var(--clay-soft); }
.metric-icon.blue { color: var(--blue); background: #e2edf3; }
.metric-icon.gold { color: #8a672d; background: #f5ead1; }
.metric-trend { color: #578265; font-size: 8px; }
.metric-card strong.value { margin-top: auto; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.metric-card small { margin-top: 6px; color: var(--muted); font-size: 9px; }

.dashboard-grid { margin-top: 16px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.panel-pad { padding: 21px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.schedule-list, .activity-list, .task-list { display: flex; flex-direction: column; }
.schedule-item { width: 100%; padding: 12px 0; border: 0; border-top: 1px solid #efefeb; display: grid; grid-template-columns: 56px 9px minmax(0, 1fr) auto 15px; align-items: center; gap: 12px; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.schedule-item:first-child { border-top: 0; }
.schedule-item:hover .schedule-info strong, .schedule-item:focus-visible .schedule-info strong { color: var(--forest); }
.schedule-item:focus-visible { border-radius: 9px; outline: 2px solid rgba(21,59,50,.2); outline-offset: 2px; }
.schedule-item > svg { width: 14px; color: #98a49e; }
.schedule-item.grouped { margin-block: 3px; padding-inline: 9px; border: 1px solid #d4e1d6; border-radius: 11px; background: #f5f9f5; }
.schedule-item.completed { opacity: .68; }
.completed-schedule { margin-top: 9px; border-top: 1px solid var(--line); }
.completed-schedule > summary { min-height: 48px; padding: 9px 3px; display: grid; grid-template-columns: 26px minmax(0, 1fr) 14px; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; list-style: none; }
.completed-schedule > summary::-webkit-details-marker { display: none; }
.completed-schedule > summary > svg:first-child { width: 18px; color: var(--forest); }
.completed-schedule > summary > svg:last-child { width: 13px; transition: transform .2s; }
.completed-schedule[open] > summary > svg:last-child { transform: rotate(90deg); }
.completed-schedule > summary span { display: grid; gap: 2px; }
.completed-schedule > summary strong { color: var(--ink); font-size: 9px; }
.completed-schedule > summary small { font-size: 8px; }
.schedule-item time { color: var(--muted); font-size: 10px; }
.schedule-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.schedule-item:nth-child(3n) .schedule-dot { background: var(--blue); }
.schedule-item:nth-child(2n) .schedule-dot { background: #6d9876; }
.schedule-info { display: flex; flex-direction: column; gap: 3px; }
.schedule-info strong { font-size: 11px; }
.schedule-info span { color: var(--muted); font-size: 8px; }
.schedule-tag { padding: 5px 7px; border-radius: 7px; color: var(--forest); background: var(--sage); font-size: 8px; }
.activity-item { padding: 13px 0; border-top: 1px solid #efefeb; display: flex; gap: 10px; }
.activity-item:is(button) { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; align-items: center; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.activity-item:is(button):hover p { color: var(--forest); }
.activity-item:first-child { border-top: 0; }
.activity-avatar { width: 31px; height: 31px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; color: var(--forest); background: var(--sage); font-size: 9px; font-weight: 800; }
.activity-item div { min-width: 0; }
.activity-item p { margin: 0; font-size: 10px; line-height: 1.45; }
.activity-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.activity-item > svg { width: 14px; margin-left: auto; flex: 0 0 auto; color: #98a49e; }
.dashboard-empty { min-height: 86px; padding: 15px 0; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.dashboard-empty > span { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.dashboard-empty > span svg { width: 17px; height: 17px; }
.dashboard-empty div { display: flex; flex-direction: column; gap: 4px; }
.dashboard-empty strong { color: var(--ink); font-size: 10px; }
.dashboard-empty small { font-size: 8px; }
.daily-routine-panel { padding-bottom: 22px; }
.daily-routine-note { margin: 0 22px 18px; padding: 11px 13px; border-radius: 12px; display: flex; align-items: center; gap: 9px; color: var(--forest); background: var(--sage); font-size: 9px; line-height: 1.45; }
.daily-routine-note svg { width: 17px; flex: 0 0 auto; }
.daily-routine-columns { padding: 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.daily-routine-columns > section { min-width: 0; }
.daily-routine-section-head { min-height: 42px; margin-bottom: 5px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.daily-routine-section-head h3 { margin: 0; font-size: 13px; }
.daily-routine-section-head span { color: var(--muted); font-size: 7px; }
.daily-routine-item { min-height: 82px; padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 62px 34px 1fr auto; align-items: center; gap: 10px; }
.daily-routine-item time { color: var(--muted); font-size: 9px; }
.daily-routine-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.daily-routine-item.calendar .daily-routine-mark { color: var(--blue); background: #e2edf3; }
.daily-routine-mark svg { width: 16px; }
.daily-routine-item > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.daily-routine-item small { color: var(--muted); font-size: 7px; }
.daily-routine-item strong { font-size: 10px; }
.daily-routine-item p { margin: 0; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.daily-routine-item > button, .daily-routine-requests button { padding: 6px 8px; border: 1px solid #ccd8d0; border-radius: 8px; color: var(--forest); background: var(--white); cursor: pointer; font-size: 7px; font-weight: 750; }
.daily-routine-lock { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 7px; white-space: nowrap; }
.daily-routine-lock svg { width: 12px; }
.daily-routine-empty { min-height: 100px; padding: 20px; border: 1px dashed #ccd6cf; border-radius: 13px; display: flex; flex-direction: column; justify-content: center; gap: 6px; color: var(--muted); background: #fbfcfa; }
.daily-routine-empty.compact { min-height: 82px; }
.daily-routine-empty strong { color: var(--ink); font-size: 10px; }
.daily-routine-empty span { font-size: 8px; line-height: 1.45; }
.daily-routine-requests { margin: 20px 22px 0; padding: 16px; border: 1px solid #efd9c6; border-radius: 14px; background: #fffaf5; }
.daily-routine-requests article { padding: 10px 0; border-top: 1px solid #f1dfd0; display: flex; justify-content: space-between; gap: 12px; }
.daily-routine-requests article > div:first-child { min-width: 0; }
.daily-routine-requests article strong, .daily-routine-requests article span { font-size: 8px; }
.daily-routine-requests article p { margin: 5px 0 0; font-size: 9px; }
.daily-routine-requests article > div:last-child { display: flex; gap: 6px; align-items: center; }
.weekday-picker { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.weekday-picker label { cursor: pointer; }
.weekday-picker input { position: absolute; opacity: 0; pointer-events: none; }
.weekday-picker span { min-height: 34px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: var(--white); font-size: 8px; font-weight: 750; }
.weekday-picker input:checked + span { border-color: var(--forest); color: var(--forest); background: var(--sage); }

.filter-row { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-search { min-width: 230px; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); outline: none; font-size: 11px; }
.filter-search:focus { border-color: #9ab2a3; box-shadow: 0 0 0 3px rgba(21,59,50,.07); }
.filter-chip { min-height: 37px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; font-size: 9px; }
.filter-chip.active { border-color: var(--forest); color: var(--white); background: var(--forest); }

.horse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.horse-workspace-notices { display: grid; gap: 10px; margin: 0 0 16px; }
.horse-workspace-notice { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #c7d8cb; border-radius: 16px; background: linear-gradient(135deg, #f2f7f1, #fbfcf9); box-shadow: var(--shadow-sm); }
.horse-workspace-notice > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--bone); background: var(--forest); }
.horse-workspace-notice > span svg { width: 20px; height: 20px; }
.horse-workspace-notice > div { min-width: 0; display: grid; gap: 2px; }
.horse-workspace-notice small { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.horse-workspace-notice strong { color: var(--ink); font-size: 14px; }
.horse-workspace-notice p { margin: 0; color: var(--muted); font-size: 11px; }
.horse-workspace-notice .button b { font: inherit; }
.horse-card { min-height: 270px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); overflow: hidden; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.horse-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.horse-art { height: 125px; position: relative; overflow: hidden; background: linear-gradient(145deg, var(--sage), #b7cec0); }
.horse-art::before { content: ""; width: 170px; height: 170px; position: absolute; right: -34px; top: -61px; border: 1px solid rgba(21,59,50,.14); border-radius: 50%; }
.horse-art::after { content: ""; width: 74px; height: 94px; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%) rotate(8deg); border-radius: 48% 52% 44% 50%; background: rgba(21,59,50,.8); clip-path: polygon(33% 0, 48% 13%, 61% 0, 68% 22%, 86% 40%, 80% 78%, 59% 100%, 38% 88%, 22% 60%, 17% 30%); }
.horse-art.has-photo::before, .horse-art.has-photo::after { display: none; }
.horse-art > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.horse-card:nth-child(2n) .horse-art { background: linear-gradient(145deg, #ecd8cb, #d3a68e); }
.horse-card:nth-child(3n) .horse-art { background: linear-gradient(145deg, #dae5ea, #a7c0cc); }
.horse-color { position: absolute; top: 14px; left: 14px; width: 8px; height: 8px; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; background: var(--clay); z-index: 2; }
.horse-card-body { padding: 17px; }
.horse-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.horse-card h3 { margin: 0; font-size: 19px; letter-spacing: -.04em; }
.horse-card-title span { padding: 5px 7px; border-radius: 7px; color: #4e7158; background: #e7f1e8; font-size: 8px; }
.horse-card p { margin: 5px 0 15px; color: var(--muted); font-size: 9px; }
.horse-meta { padding-top: 13px; border-top: 1px solid #efefeb; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.horse-meta span { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 8px; }
.horse-meta strong { color: var(--ink); font-size: 10px; }
.empty-add-card { min-height: 270px; border: 1px dashed #cfd3cd; border-radius: 22px; display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.45); cursor: pointer; text-align: center; }
.empty-add-card div { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; }
.empty-add-card span { width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.empty-add-card svg { width: 20px; }

.back-link { margin-bottom: 18px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.back-link svg { width: 15px; }
.horse-profile-head { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); display: flex; align-items: center; gap: 18px; }
.profile-horse-art { width: 88px; height: 88px; flex: 0 0 auto; border-radius: 22px; background: linear-gradient(145deg, var(--sage), #a9c8b4); position: relative; overflow: hidden; }
.profile-horse-art::after { content: ""; width: 55px; height: 72px; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%) rotate(8deg); border-radius: 48%; background: var(--forest); clip-path: polygon(33% 0, 48% 13%, 61% 0, 68% 22%, 86% 40%, 80% 78%, 59% 100%, 38% 88%, 22% 60%, 17% 30%); }
.profile-horse-art.has-photo::after { display: none; }
.profile-horse-art > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-horse-art > button { width: 28px; height: 28px; padding: 0; border: 2px solid var(--white); border-radius: 9px; position: absolute; right: 6px; bottom: 6px; z-index: 2; display: grid; place-items: center; color: var(--white); background: var(--forest); box-shadow: 0 4px 12px rgba(8,31,24,.24); cursor: pointer; }
.profile-horse-art > button svg { width: 13px; height: 13px; }
.horse-photo-editor { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(220px, 1fr); align-items: center; gap: 18px; }
.horse-photo-preview { min-height: 220px; border: 1px dashed #bdccc4; border-radius: 20px; overflow: hidden; display: grid; place-items: center; align-content: center; gap: 9px; color: var(--muted); background: linear-gradient(145deg, #eef5f0, #d9e8df); }
.horse-photo-preview > span { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--forest); background: rgba(255,255,255,.72); }
.horse-photo-preview > span svg { width: 25px; height: 25px; }
.horse-photo-preview > strong { font-size: 11px; }
.horse-photo-preview.has-photo { border-style: solid; }
.horse-photo-preview img { width: 100%; height: 100%; min-height: 220px; max-height: 360px; display: block; object-fit: cover; }
.horse-photo-copy { display: grid; gap: 7px; }
.horse-photo-copy strong { font-size: 17px; }
.horse-photo-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.horse-photo-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.horse-photo-actions label { cursor: pointer; }
.horse-photo-status { min-height: 18px; grid-column: 1 / -1; color: var(--forest); font-size: 10px; }
.profile-info { min-width: 0; }
.profile-info h1 { margin: 0; font-size: 31px; letter-spacing: -.05em; }
.profile-horse-owner { display:block; margin-top:5px; color:var(--forest); font-size:12px; font-weight:700; letter-spacing:0; }
.profile-info p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.profile-chips { margin: 11px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.profile-chips span { padding: 5px 8px; border-radius: 7px; color: var(--forest); background: var(--sage); font-size: 8px; }
.profile-inline-actions { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 7px; }
.profile-inline-actions .button { min-height: 34px; padding: 0 11px; font-size: 8px; }
.public-care-mobile-action { display: none; }
.profile-actions { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.public-care-card-editor { display: grid; gap: 15px; }
.public-care-status, .public-care-privacy { padding: 15px; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; background: #f8faf8; }
.public-care-status > svg, .public-care-privacy > svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; color: var(--forest); background: var(--sage); }
.public-care-status.enabled { border-color: #9cc3ae; background: #f1f8f3; }
.public-care-status.enabled > svg { color: #fff; background: var(--forest); }
.public-care-status strong, .public-care-privacy strong { display: block; color: var(--forest); font-size: 13px; }
.public-care-status span, .public-care-privacy p, .public-care-privacy small { margin: 4px 0 0; display: block; color: var(--muted); font-size: 9px; line-height: 1.55; }
.public-care-privacy { border-color: #d8cfc4; background: #fbf8f2; }
.public-care-fields { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }
.public-care-fields .field { margin: 0; }
.public-care-fields .field > span { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; font-weight: 750; }
.public-care-fields .field > span em { color: var(--muted); font-size: 8px; font-style: normal; font-weight: 600; }
.public-care-fields textarea { min-height: 94px; resize: vertical; }
.public-care-options { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.public-care-options legend { padding: 0 7px; color: var(--forest); font-size: 10px; font-weight: 800; }
.public-care-options > label { min-width: 0; padding: 11px; border: 1px solid #dbe4de; border-radius: 13px; display: flex; gap: 9px; align-items: flex-start; cursor: pointer; background: #fff; }
.public-care-options input { margin-top: 2px; accent-color: var(--forest); }
.public-care-options label > span { min-width: 0; display: grid; grid-template-columns: 19px minmax(0, 1fr); gap: 2px 6px; }
.public-care-options label svg { width: 17px; height: 17px; grid-row: 1 / 3; color: var(--forest); }
.public-care-options label strong { font-size: 10px; }
.public-care-options label small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.public-care-share { padding: 16px; border: 1px solid #abc8b8; border-radius: 18px; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: center; background: #f0f7f2; }
.public-care-share.focus { box-shadow: 0 0 0 3px rgba(23,61,52,.08); }
.public-care-share-icon { width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--forest); }
.public-care-share-icon svg { width: 31px; height: 31px; }
.public-care-share small { color: var(--clay); font-size: 7px; font-weight: 850; letter-spacing: .1em; }
.public-care-share strong { margin-top: 2px; display: block; color: var(--forest); font-size: 14px; }
.public-care-share p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.public-care-share-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.public-care-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.public-care-loading, .public-care-error { min-height: 180px; padding: 30px; border: 1px dashed var(--line); border-radius: 18px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); text-align: center; }
.public-care-loading svg, .public-care-error svg { width: 42px; height: 42px; color: var(--forest); }
.public-care-error svg { color: var(--clay); }
.public-care-error p { margin: 0; }
.tabs-wrap { margin: 16px 0; border: 1px solid var(--line); border-radius: 15px; background: var(--white); overflow: hidden; }
.tabs { padding: 5px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 9px; font-weight: 650; }
.tab.active { color: var(--forest); background: var(--sage); }
.horse-section-switcher { display: none; }
.horse-mobile-section-tools, .horse-mobile-flow { display: none; }
.horse-desktop-section { display: block; }
.detail-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.horse-overview-main { display: grid; gap: 16px; }
.vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vital { min-height: 110px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); display: flex; flex-direction: column; }
.vital span { color: var(--muted); font-size: 8px; }
.vital strong { margin-top: auto; font-size: 23px; }
.vital small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.info-table { display: grid; grid-template-columns: 1fr 1fr; }
.info-cell { padding: 15px 0; border-top: 1px solid #efefeb; display: flex; flex-direction: column; gap: 5px; }
.info-cell:nth-child(-n+2) { border-top: 0; }
.info-cell span { color: var(--muted); font-size: 8px; }
.info-cell strong { font-size: 11px; }
.horse-basic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 16px; align-items: start; }
.horse-basic-main { padding: 24px; }
.horse-basic-head { margin-bottom: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.horse-basic-head h2 { margin: 5px 0 6px; font-size: 24px; letter-spacing: -.04em; }
.horse-basic-head p:not(.kicker) { margin: 0; color: var(--muted); font-size: 9px; }
.horse-info-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.horse-info-group { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #fdfdfb; }
.horse-info-group h3 { margin: 0 0 9px; color: var(--forest); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.horse-info-row { min-height: 41px; padding: 8px 0; border-top: 1px solid #eeefeb; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.horse-info-row:first-of-type { border-top: 0; }
.horse-info-row > span { color: var(--muted); font-size: 8px; }
.horse-info-row strong { max-width: 62%; font-size: 10px; text-align: right; overflow-wrap: anywhere; }
.horse-info-row .empty-value { color: #a2a8a4; font-size: 8px; font-weight: 500; }
.horse-basic-notes { margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--sage); }
.horse-basic-notes span { color: var(--forest); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.horse-basic-notes p { margin: 7px 0 0; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.horse-completion { padding: 22px; position: sticky; top: 84px; }
.horse-completion-value { display: block; color: var(--forest); font-size: 38px; font-weight: 780; letter-spacing: -.05em; }
.horse-completion h3 { margin: 5px 0 8px; font-size: 12px; }
.horse-completion p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.completion-track { height: 7px; margin: 18px 0 8px; border-radius: 999px; overflow: hidden; background: #e7e9e5; }
.completion-track span { height: 100%; display: block; border-radius: inherit; background: var(--forest); }
.horse-completion small { color: var(--muted); font-size: 7px; }
.horse-tab-panel { padding: 24px; }
.horse-tab-head { margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.horse-tab-head h2 { margin: 5px 0 6px; font-size: 25px; letter-spacing: -.04em; }
.horse-tab-head p:not(.kicker) { max-width: 620px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.horse-tab-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.horse-tab-actions .button { min-width: 0; }
.training-summary-grid { margin-bottom: 22px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 12px; }
.training-goal-card, .training-recommendation { min-height: 150px; padding: 20px; border-radius: 17px; }
.training-goal-card { border: 1px solid #cddfd2; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; color: #f9fbf8; background: linear-gradient(135deg, var(--forest), #285949); }
.training-goal-card small, .training-recommendation small { display: block; margin-bottom: 7px; font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.training-goal-card h3 { max-width: 580px; margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.training-goal-card p { margin: 9px 0 0; color: rgba(255,255,255,.72); font-size: 8px; line-height: 1.5; }
.training-goal-card time { min-width: 115px; padding: 10px; border-radius: 11px; display: flex; flex-direction: column; gap: 4px; color: rgba(255,255,255,.68); background: rgba(255,255,255,.1); font-size: 7px; }
.training-goal-card time strong { color: #fff; font-size: 9px; }
.training-goal-card.empty { color: var(--ink); border-style: dashed; background: #f7faf6; }
.training-goal-card.empty p { color: var(--muted); }
.training-goal-card.empty button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; flex: 0 0 auto; color: #fff; background: var(--forest); font-size: 8px; font-weight: 750; cursor: pointer; }
.training-recommendation { border: 1px solid #dbe3da; display: flex; gap: 14px; align-items: flex-start; background: #f6f8f3; }
.training-recommendation > span { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.training-recommendation > span svg { width: 20px; }
.training-recommendation strong { display: block; font-size: 11px; line-height: 1.45; }
.training-recommendation p { margin: 9px 0 0; color: var(--muted); font-size: 8px; }
.training-recommendation.recovery { border-color: #e5cda9; background: #fbf4e7; }
.training-recommendation.recovery > span { color: #875a2d; background: #f2dfbf; }
.training-section { padding-top: 20px; border-top: 1px solid var(--line); }
.training-section + .training-section { margin-top: 22px; }
.training-section-head { margin-bottom: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.training-section-head small { color: var(--muted); font-size: 7px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.training-section-head h3 { margin: 4px 0 0; font-size: 15px; }
.training-section-head > span { color: var(--muted); font-size: 8px; }
.training-event-list, .training-feedback-list { display: grid; gap: 8px; }
.training-event-row { min-height: 76px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: 80px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; background: #fdfdfb; }
.training-event-row.completed { border-color: #cfe0d2; background: #f7faf6; }
.training-event-row time { display: flex; flex-direction: column; gap: 3px; color: var(--forest); font-size: 8px; font-weight: 750; }
.training-event-row time small { color: var(--muted); font-size: 7px; font-weight: 500; }
.training-event-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.training-event-mark svg { width: 16px; }
.training-event-row > div { min-width: 0; }
.training-event-row strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.training-event-row p { margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.training-event-row > button, .training-feedback-actions button { min-height: 31px; padding: 0 9px; border: 1px solid #cbd8ce; border-radius: 9px; color: var(--forest); background: #fff; font-size: 8px; font-weight: 750; cursor: pointer; }
.training-event-done, .training-event-muted { color: #52705f; font-size: 8px; font-weight: 750; }
.training-event-muted { color: var(--muted); }
.training-list-empty { padding: 18px; border: 1px dashed #d5dad4; border-radius: 13px; color: var(--muted); background: #fafbf8; font-size: 8px; line-height: 1.55; text-align: center; }
.training-feedback-card { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fdfdfb; }
.training-feedback-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.training-feedback-head span { display: block; color: var(--muted); font-size: 7px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.training-feedback-head strong { display: block; margin-top: 4px; font-size: 12px; }
.training-feedback-actions { display: flex; align-items: center; gap: 5px; }
.training-feedback-actions small { padding: 5px 7px; border-radius: 7px; color: var(--forest); background: var(--sage); font-size: 7px; font-weight: 800; }
.training-feedback-actions button { display: inline-flex; align-items: center; gap: 4px; }
.training-feedback-actions button svg { width: 13px; }
.training-facts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.training-facts span { padding: 5px 7px; border-radius: 7px; color: #496054; background: #edf1eb; font-size: 7px; font-weight: 750; }
.training-feedback-grid { margin-top: 11px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.training-feedback-grid > div { padding: 11px; border-radius: 10px; background: #f2f3ef; }
.training-feedback-grid > div.success { background: #eaf4ec; }
.training-feedback-grid > div.attention { background: #fbefe7; }
.training-feedback-grid small, .ori-training-note small { color: var(--muted); font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.training-feedback-grid p { margin: 5px 0 0; color: #3e4c45; font-size: 8px; line-height: 1.5; white-space: pre-wrap; }
.training-feedback-card footer { margin-top: 11px; color: var(--muted); font-size: 7px; }
.training-modal-event { padding: 12px; border-radius: 12px; display: flex; align-items: center; gap: 10px; color: var(--forest); background: var(--sage); }
.training-modal-event > svg { width: 20px; }
.training-modal-event small, .training-modal-event strong { display: block; }
.training-modal-event small { margin-bottom: 3px; font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.training-modal-event strong { font-size: 10px; }
.training-feedback-field.success textarea { border-color: #bcd6c1; background: #f8fcf8; }
.training-feedback-field.attention textarea { border-color: #e4c6b5; background: #fffaf7; }
.horse-entry-list { display: flex; flex-direction: column; }
.horse-entry-card { padding: 15px 0; border-top: 1px solid #edeee9; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
.horse-entry-card:first-child { border-top: 0; }
.horse-entry-card > .record-kind { width: 42px; height: 42px; border-radius: 13px; }
.horse-entry-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.horse-entry-top strong { font-size: 11px; }
.horse-entry-top time { flex: 0 0 auto; color: var(--muted); font-size: 8px; }
.horse-entry-card p { margin: 6px 0 9px; color: #4e5652; font-size: 9px; line-height: 1.55; white-space: pre-wrap; }
.horse-tab-empty { min-height: 230px; padding: 28px; border: 1px dashed #cfd4ce; border-radius: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); background: rgba(255,255,255,.42); text-align: center; }
.horse-tab-empty > span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.horse-tab-empty > span svg { width: 20px; }
.horse-tab-empty strong { color: var(--ink); font-size: 11px; }
.horse-tab-empty p { max-width: 430px; margin: 0; font-size: 8px; line-height: 1.55; }
.horse-bcs-summary { margin-bottom: 15px; padding: 18px; border-radius: 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; color: var(--forest); background: var(--sage); }
.horse-bcs-summary span { font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.horse-bcs-summary strong { grid-row: 1 / 3; grid-column: 2; font-size: 34px; }
.horse-bcs-summary small { color: #587267; font-size: 8px; }
.horse-task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.horse-task-grid .task-card { margin-top: 0; }
.horse-event-list { display: flex; flex-direction: column; }
.horse-event-card { width: 100%; padding: 14px 0; border: 0; border-top: 1px solid #edeee9; display: grid; grid-template-columns: 62px 8px minmax(0, 1fr) auto; align-items: center; gap: 12px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; transition: color .16s ease, transform .16s ease; }
.horse-event-card:first-child { border-top: 0; }
.horse-event-card:hover { color: var(--forest); transform: translateX(2px); }
.horse-event-card:focus-visible { border-radius: 10px; outline: 2px solid var(--forest); outline-offset: 3px; }
.horse-event-card time { display: flex; flex-direction: column; gap: 3px; color: var(--forest); font-size: 10px; font-weight: 750; }
.horse-event-card time small { color: var(--muted); font-size: 7px; font-weight: 500; }
.event-mark { width: 8px; height: 38px; border-radius: 999px; background: var(--clay); }
.event-mark.green { background: #6f9879; }
.event-mark.blue { background: var(--blue); }
.horse-event-card div { display: flex; flex-direction: column; gap: 4px; }
.horse-event-card strong { font-size: 11px; }
.horse-event-card div span { color: var(--muted); font-size: 8px; }
.horse-event-open { display: inline-flex; align-items: center; gap: 5px; color: var(--forest); font-size: 8px; font-weight: 750; white-space: nowrap; }
.horse-event-open svg { width: 14px; height: 14px; }
.care-plan-note { margin-bottom: 13px; padding: 11px 13px; border-radius: 12px; display: flex; align-items: flex-start; gap: 8px; color: #526c5c; background: var(--sage); font-size: 8px; line-height: 1.5; }
.care-plan-note svg { width: 16px; flex: 0 0 auto; }
.care-plan-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.care-plan-item { min-height: 94px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 11px; color: var(--ink); background: #fdfdfb; cursor: pointer; text-align: left; }
.care-plan-item:hover { border-color: #b9cbbf; background: #f7faf6; }
.care-plan-item.planned { border-color: #cddfd2; background: #f6faf6; }
.care-plan-icon { width: 37px; height: 37px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; color: #8a6a4d; background: #f5eadf; }
.care-plan-item.planned .care-plan-icon { color: var(--forest); background: #dfeee2; }
.care-plan-icon svg { width: 18px; }
.care-plan-item > div { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.care-plan-item small { color: var(--muted); font-size: 7px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.care-plan-item strong { font-size: 11px; }
.care-plan-item p { margin: 0; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.care-plan-action { display: flex; align-items: center; gap: 4px; color: var(--forest); font-size: 8px; font-weight: 750; }
.care-plan-action svg { width: 13px; }
.horse-overview-events-empty { min-height: 82px; padding: 14px; border: 1px dashed #d5dbd4; border-radius: 13px; display: flex; align-items: center; gap: 12px; color: var(--muted); background: #fafbf8; }
.horse-overview-events-empty > span { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.horse-overview-events-empty svg { width: 18px; }
.horse-overview-events-empty strong { display: block; color: var(--ink); font-size: 10px; }
.horse-overview-events-empty p { margin: 4px 0 0; font-size: 8px; line-height: 1.45; }
.horse-analytics-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.horse-analytics-grid article { min-height: 100px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; display: flex; flex-direction: column; justify-content: flex-end; background: #fdfdfb; }
.horse-analytics-grid strong { color: var(--forest); font-size: 25px; letter-spacing: -.04em; }
.horse-analytics-grid span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.horse-tab-guidance { margin-bottom: 14px; padding: 13px 14px; border-radius: 13px; background: #f2f3ef; }
.horse-tab-guidance > strong { color: var(--forest); font-size: 8px; }
.horse-tab-guidance > div { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.horse-tab-guidance span { padding: 5px 7px; border: 1px solid #dce1da; border-radius: 7px; color: #5e6d65; background: var(--white); font-size: 7px; }
.horse-access-note { margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; display: flex; align-items: center; gap: 9px; color: var(--forest); background: var(--sage); font-size: 8px; line-height: 1.45; }
.horse-access-note svg { width: 17px; height: 17px; flex: 0 0 auto; }
.horse-access-list { display: flex; flex-direction: column; }
.horse-tab-head-actions,.vacation-care-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.horse-vacation-section{margin:0 0 22px;padding:18px;border:1px solid rgba(22,73,60,.14);border-radius:22px;background:linear-gradient(145deg,#f7fbf7,#fff)}.horse-vacation-section .panel-head{margin-bottom:14px}.vacation-care-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}.vacation-care-card{display:flex;gap:13px;padding:16px;border:1px solid rgba(22,73,60,.14);border-radius:18px;background:#fff;box-shadow:0 7px 22px rgba(24,55,45,.05)}.vacation-care-card.active{border-color:#3f7965;box-shadow:0 0 0 2px rgba(63,121,101,.1)}.vacation-care-card.revoked,.vacation-care-card.expired{opacity:.7}.vacation-care-card-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:14px;background:#e8f2ec;color:#235849}.vacation-care-card-icon svg{width:21px}.vacation-care-card-main{min-width:0;flex:1}.vacation-care-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.vacation-care-card-head div{display:grid;gap:2px}.vacation-care-card-head small{text-transform:uppercase;letter-spacing:.08em;font-size:10px;color:#91715f}.vacation-care-card-head strong{font-size:18px}.vacation-care-card-head>span{font-size:12px;color:#63716b;white-space:nowrap}.vacation-care-card-main>p{margin:7px 0;color:#52615b}.vacation-care-progress{height:7px;border-radius:99px;background:#e8ece9;overflow:hidden;margin:10px 0 5px}.vacation-care-progress span{display:block;height:100%;border-radius:inherit;background:#3f7965}.vacation-care-card-main>small{color:#68756f}.vacation-care-actions{margin-top:12px}.vacation-care-locked{font-size:12px;color:#776b65}.vacation-care-dashboard{margin:0 0 18px;padding:18px;border-radius:24px;background:linear-gradient(135deg,#eaf3ec,#f8f4ec);border:1px solid rgba(25,72,58,.1)}.vacation-care-dashboard-head{display:flex;justify-content:space-between;margin-bottom:12px}.vacation-care-dashboard-head h2{margin:3px 0 0;font-size:21px}.vacation-care-card.compact{background:rgba(255,255,255,.86)}.vacation-care-security,.vacation-care-emergency{display:flex;gap:13px;padding:15px;border-radius:17px;background:#edf5ef;color:#244d40}.vacation-care-security>svg,.vacation-care-emergency>svg{width:24px;flex:0 0 24px}.vacation-care-security p,.vacation-care-emergency p{margin:4px 0 0;color:#53685f}.vacation-care-detail-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-radius:17px;background:#f4f5f2}.vacation-care-detail-head>div{display:grid}.vacation-care-detail-head small{color:#6c756f}.vacation-care-detail-head>span{font-weight:700;color:#2d6452}.vacation-care-emergency a{display:block;font-size:18px;font-weight:800;color:#194f40;margin-top:4px}.vacation-care-days{display:grid;gap:10px}.vacation-care-day{border:1px solid #dde5df;border-radius:17px;background:#fff;overflow:hidden}.vacation-care-day summary{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;cursor:pointer;list-style:none}.vacation-care-day summary span{display:grid}.vacation-care-day summary small{color:#69756f;margin-top:2px}.vacation-care-day summary>svg{width:18px}.vacation-care-day[open] summary>svg{transform:rotate(90deg)}.vacation-care-day-body{padding:0 15px 15px;display:grid;gap:10px}.vacation-care-facts,.vacation-care-instruction{display:grid;gap:4px;padding:12px;border-radius:13px;background:#f5f7f4}.vacation-care-facts>span{font-size:13px}.vacation-care-facts b{display:inline-block;min-width:48px}.vacation-care-instruction.warning{background:#fff2e8}.vacation-care-instruction p{margin:0}.vacation-care-task-list{display:grid;gap:8px}.vacation-care-task{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;border:1px solid #e1e6e2;border-radius:14px}.vacation-care-task.done{background:#f0f7f2}.vacation-care-task-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#edf1ee;color:#315f50}.vacation-care-task-icon svg{width:18px}.vacation-care-task p{margin:3px 0;color:#5f6964;font-size:13px}.vacation-task-completion{display:flex;gap:6px;align-items:flex-start;color:#286147;margin-top:5px}.vacation-task-completion svg{width:15px;flex:0 0 15px}.vacation-task-completion span{display:grid}.vacation-task-pending{font-size:12px;color:#856d5d}.vacation-care-contacts{padding:12px 14px;border:1px solid #e1e6e2;border-radius:15px}.vacation-care-contacts summary{cursor:pointer;font-weight:700}.vacation-care-contacts a{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #edf0ed;color:inherit}.vacation-care-contacts a:first-of-type{margin-top:8px}.vacation-care-contacts span{color:#315f50}.horse-tab-empty.small{padding:16px}
@media (max-width:700px){.horse-tab-head-actions{width:100%}.horse-tab-head-actions .button{flex:1 1 170px}.horse-vacation-section{padding:13px;margin-inline:-3px}.vacation-care-grid{grid-template-columns:1fr}.vacation-care-card{padding:13px}.vacation-care-card-head{display:grid;gap:4px}.vacation-care-card-head>span{white-space:normal}.vacation-care-dashboard{padding:14px;margin-inline:-2px}.vacation-care-task{grid-template-columns:34px minmax(0,1fr)}.vacation-care-task>.button{grid-column:1/-1;width:100%}.vacation-care-detail-head{align-items:flex-start}.vacation-care-emergency{align-items:flex-start}.vacation-care-contacts a{display:grid;gap:2px}}
.horse-access-card { padding: 15px 0; border-top: 1px solid #edeee9; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
.horse-access-card:first-child { border-top: 0; }
.horse-access-card.inactive { opacity: .55; }
.horse-access-card.pending { margin-top: 8px; padding: 15px; border: 1px dashed #cfb887; border-radius: 13px; opacity: 1; background: #fffaf0; }
.horse-access-card.pending + .horse-access-card { border-top: 0; }
.horse-access-card.pending .horse-access-avatar { color: #7b5d28; background: #f3e7c8; }
.horse-access-card.pending .horse-access-name span { color: #7b5d28; background: #f3e7c8; }
.horse-access-avatar { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--forest); background: var(--sage); font-size: 9px; font-weight: 800; }
.horse-access-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.horse-access-name strong { font-size: 11px; }
.horse-access-name span { padding: 5px 7px; border-radius: 7px; color: #4e7158; background: #e7f1e8; font-size: 8px; }
.horse-access-card p { margin: 4px 0 6px; color: var(--muted); font-size: 8px; }
.horse-access-card small { color: #59635e; font-size: 8px; line-height: 1.45; }
.access-modal-help { padding: 14px; border-radius: 13px; color: #496158; background: var(--sage); }
.access-modal-help strong { font-size: 9px; }
.access-modal-help p { margin: 6px 0 0; font-size: 8px; line-height: 1.5; }
.horse-access-card .text-button { margin-top: 8px; }
.horse-access-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.horse-access-card-actions .text-button { margin-top: 8px; }
.horse-access-card-actions svg { width: 14px; height: 14px; flex: 0 0 14px; }
.professional-entry-share-safety { padding: 14px; border: 1px solid #d8e6dc; border-radius: 15px; display: flex; align-items: flex-start; gap: 11px; color: #31594b; background: #f1f7f2; }
.professional-entry-share-safety > svg { width: 20px; height: 20px; flex: 0 0 20px; }
.professional-entry-share-safety strong { display: block; font-size: 10px; }
.professional-entry-share-safety p { margin: 5px 0 0; color: #5c6d65; font-size: 8px; line-height: 1.5; }
.professional-entry-future { min-height: 64px; padding: 13px 14px; border: 1px solid #e1e4df; border-radius: 14px; display: flex; align-items: flex-start; gap: 11px; background: #fff; cursor: pointer; }
.professional-entry-future input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--forest); }
.professional-entry-future span { display: grid; gap: 4px; }
.professional-entry-future strong { font-size: 9px; }
.professional-entry-future small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.professional-entry-share-section { overflow: hidden; border: 1px solid #e1e4df; border-radius: 15px; background: #fff; }
.professional-entry-share-section > header { min-height: 58px; padding: 12px 14px; border-bottom: 1px solid #edf0eb; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fafbf9; }
.professional-entry-share-section > header > div:first-child { display: grid; gap: 3px; }
.professional-entry-share-section > header strong { font-size: 9px; }
.professional-entry-share-section > header small { color: var(--muted); font-size: 8px; }
.professional-entry-share-section > header > div:last-child { display: flex; align-items: center; gap: 9px; }
.professional-entry-share-section .text-button { margin: 0; font-size: 8px; }
.professional-entry-share-list { max-height: min(390px, 48vh); overflow: auto; overscroll-behavior: contain; }
.professional-entry-share-row { min-height: 58px; padding: 11px 14px; border-top: 1px solid #edf0eb; display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.professional-entry-share-row:first-child { border-top: 0; }
.professional-entry-share-row:hover { background: #fafcf9; }
.professional-entry-share-row:has(input:checked) { background: #f0f6f1; }
.professional-entry-share-row input { width: 17px; height: 17px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--forest); }
.professional-entry-share-row span { min-width: 0; display: grid; gap: 4px; }
.professional-entry-share-row strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.professional-entry-share-row small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.horse-invitation-card-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.horse-invitation-card-actions .text-button.danger { color: #9d4238; }
.horse-collaboration-settings { display: contents; }
.horse-collaboration-settings[hidden] { display: none !important; }
.horse-access-email input { min-height: 49px; font-size: 16px; }
.horse-access-email small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
.horse-collaboration-permissions { overflow: hidden; border: 1px solid #dfe6df; border-radius: 14px; background: #fff; }
.horse-collaboration-permission { min-height: 44px; padding: 9px 12px; border-top: 1px solid #edf0ec; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.horse-collaboration-permission:first-child { border-top: 0; }
.horse-collaboration-permission > span:first-child { color: #293f35; font-size: 9px; font-weight: 700; }
.horse-collaboration-permission label { display: flex; align-items: center; gap: 5px; color: #59635e; font-size: 8px; white-space: nowrap; }
.horse-collaboration-permission input, .horse-collaboration-notes input { width: 16px; height: 16px; accent-color: var(--forest); }
.horse-collaboration-notes { padding: 12px; border-top: 1px solid #edf0ec; display: flex; align-items: flex-start; gap: 9px; background: #f7faf7; }
.horse-collaboration-notes span { display: grid; gap: 3px; }
.horse-collaboration-notes strong { color: #293f35; font-size: 9px; }
.horse-collaboration-notes small { color: var(--muted); font-size: 8px; line-height: 1.4; }
@media (max-width: 640px) {
  .horse-collaboration-permission { grid-template-columns: 1fr 68px 82px; gap: 7px; }
  .horse-invitation-actions { flex-direction: column; }
  .horse-invitation-actions .button { width: 100%; }
  .professional-entry-share-section > header { align-items: flex-start; flex-direction: column; }
  .professional-entry-share-section > header > div:last-child { width: 100%; justify-content: space-between; }
  .professional-entry-share-list { max-height: 42vh; }
}
.professional-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.professional-list .horse-tab-empty { grid-column: 1 / -1; }
.professional-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; background: #fdfdfb; }
.professional-avatar { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--forest); background: var(--sage); font-size: 9px; font-weight: 800; }
.professional-card > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.professional-card > div > span { color: var(--clay); font-size: 7px; font-weight: 780; text-transform: uppercase; letter-spacing: .08em; }
.professional-card strong { font-size: 11px; }
.professional-card p { overflow: hidden; margin: 0; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.professional-card small { margin-top: 7px; display: flex; align-items: flex-start; gap: 5px; color: #7c655d; font-size: 7px; line-height: 1.4; }
.professional-card small.linked { color: #4e765a; }
.professional-card small svg { width: 13px; height: 13px; flex: 0 0 auto; }
.professional-modal-help, .event-sharing-note { padding: 13px 14px; border-radius: 13px; display: flex; align-items: flex-start; gap: 9px; color: #53645c; background: var(--sage); font-size: 8px; line-height: 1.5; }
.professional-modal-help svg, .event-sharing-note svg { width: 17px; height: 17px; flex: 0 0 auto; }
.event-sharing-note span { display: flex; flex-direction: column; gap: 2px; }
.event-sharing-note.linked { color: #426b50; background: #e5f2e7; }
.feed-summary { margin-bottom: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.feed-summary > div { min-height: 78px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; justify-content: flex-end; background: #fdfdfb; }
.feed-summary strong { color: var(--forest); font-size: 22px; letter-spacing: -.04em; }
.feed-summary span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.feed-summary .warning { border-color: #edcfc5; background: #fff5f1; }
.feed-summary .warning strong { color: #9e4f44; }
.feed-alert { margin-bottom: 12px; padding: 13px 14px; border: 1px solid #efcec3; border-radius: 13px; display: flex; align-items: center; gap: 10px; color: #8e473e; background: #fff3ef; }
.feed-alert > svg { width: 20px; height: 20px; flex: 0 0 auto; }
.feed-alert div { display: flex; flex-direction: column; gap: 3px; }
.feed-alert strong { font-size: 9px; }
.feed-alert span { color: #91635d; font-size: 8px; }
.feed-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feed-plan-card { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fdfdfb; }
.feed-plan-card.low-stock { border-color: #ebcfc6; }
.feed-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.feed-category { display: block; margin-bottom: 4px; color: var(--clay); font-size: 7px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.feed-card-head h3 { margin: 0; font-size: 16px; letter-spacing: -.03em; }
.feed-provider { width: fit-content; margin-top: 6px; padding: 4px 6px; border-radius: 6px; display: block; color: #52675c; background: #edf1eb; font-size: 7px; font-weight: 750; }
.feed-provider.stable { color: #365a6b; background: #e4eff3; }
.feed-provider-help { padding: 11px 13px; border-radius: 12px; display: flex; flex-direction: column; gap: 3px; color: #52675c; background: #edf1eb; }
.feed-provider-help.stable { color: #365a6b; background: #e4eff3; }
.feed-provider-help strong { font-size: 9px; }
.feed-provider-help span { font-size: 8px; line-height: 1.45; }
.feed-stock-status { flex: 0 0 auto; padding: 5px 7px; border-radius: 7px; color: #477157; background: #e7f1e8; font-size: 7px; font-weight: 730; }
.feed-stock-status.low, .feed-stock-status.empty { color: #934b42; background: #fae7e2; }
.feed-stock-status.unused { color: #6d746f; background: #edeeda; }
.feed-meals { margin: 15px 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.feed-meals > div { min-width: 0; padding: 10px; border-radius: 11px; display: flex; flex-direction: column; gap: 4px; background: var(--sage); }
.feed-meals span { overflow: hidden; color: #5e756a; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.feed-meals strong { color: var(--forest); font-size: 10px; }
.feed-daily { padding: 0 2px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feed-daily span { color: var(--muted); font-size: 8px; }
.feed-daily strong { font-size: 9px; }
.feed-stock-block { padding: 14px; border-radius: 13px; background: #f2f3ef; }
.feed-stock-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feed-stock-top > div { display: flex; flex-direction: column; gap: 3px; }
.feed-stock-top span { color: var(--muted); font-size: 7px; }
.feed-stock-top strong { font-size: 11px; }
.feed-stock-track { height: 6px; margin: 12px 0 8px; border-radius: 99px; overflow: hidden; background: #dbddd8; }
.feed-stock-track span { height: 100%; display: block; border-radius: inherit; background: var(--forest); }
.low-stock .feed-stock-track span { background: var(--clay); }
.feed-stock-dates { display: flex; flex-direction: column; gap: 3px; }
.feed-stock-dates span { color: var(--muted); font-size: 7px; }
.feed-stock-dates b { color: var(--forest); font-size: 8px; font-weight: 700; }
.low-stock .feed-stock-dates b { color: #994d44; }
.feed-notes { margin: 12px 2px 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.feed-edit-button { margin-top: 12px; padding: 8px 0 0; border: 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; color: var(--forest); background: transparent; cursor: pointer; font-size: 8px; font-weight: 740; }
.feed-edit-button svg { width: 14px; height: 14px; }
.feed-same-toggle { min-height: 58px; padding: 12px 14px; border: 1px solid #c8d8cc; border-radius: 13px; display: flex; align-items: flex-start; gap: 10px; background: var(--sage); }
.feed-same-toggle input { margin: 2px 0 0; accent-color: var(--forest); }
.feed-same-toggle span { display: flex; flex-direction: column; gap: 3px; }
.feed-same-toggle strong { font-size: 9px; }
.feed-same-toggle small { color: var(--muted); font-size: 8px; }
.feed-unit-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.feed-unit-input input { border-radius: 10px 0 0 10px !important; }
.feed-unit-input > span { min-width: 41px; padding: 0 9px; border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; display: grid; place-items: center; color: var(--muted); background: #f4f5f1; font-size: 8px; }
.stable-restock-new-fields, .stable-restock-package-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stable-restock-new-fields[hidden], .stable-restock-package-fields[hidden], .stable-restock-amount-field[hidden], .stable-restock-custom-category[hidden] { display: none; }
.stable-restock-new-fields > .full { grid-column: 1 / -1; }
.feed-restock-history { display:grid; gap:10px; margin-top:8px; padding-top:16px; border-top:1px solid var(--line); }
.feed-restock-history-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.feed-restock-history-row > div { display:grid; gap:3px; min-width:0; }
.feed-restock-history-row > div:last-child { justify-items:end; }
.feed-restock-history-row span,.feed-restock-history-row small { color:var(--muted); font-size:11px; }
.feed-restock-history-row strong,.feed-restock-history-row b { font-size:12px; }
.feed-shopping-safety,.feed-shopping-offers { display:flex; align-items:flex-start; gap:12px; padding:14px 16px; border:1px solid #bfd3ca; border-radius:14px; background:#f3f8f5; color:var(--forest); }
.feed-shopping-safety > svg,.feed-shopping-offers > svg { width:21px; min-width:21px; margin-top:1px; }
.feed-shopping-safety > div,.feed-shopping-offers > div { display:grid; gap:4px; }
.feed-shopping-safety strong,.feed-shopping-offers strong { font-size:13px; }
.feed-shopping-safety span,.feed-shopping-offers span { color:var(--muted); font-size:11px; line-height:1.5; }
.feed-shopping-controls { display:grid; grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto; align-items:end; gap:12px; }
.feed-shopping-controls label { display:grid; gap:6px; color:var(--muted); font-size:10px; font-weight:700; }
.feed-shopping-controls select { min-height:44px; }
.feed-shopping-plan,.feed-shopping-group { display:grid; gap:13px; }
.feed-shopping-group + .feed-shopping-group { margin-top:4px; padding-top:16px; border-top:1px solid var(--line); }
.feed-shopping-item { display:grid; gap:13px; padding:16px; border:1px solid var(--line); border-radius:15px; background:var(--white); transition:opacity .2s,border-color .2s; }
.feed-shopping-item.dismissed { opacity:.5; border-style:dashed; }
.feed-shopping-item > header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:11px; }
.feed-shopping-item > header h3 { margin:2px 0 4px; font-size:16px; }
.feed-shopping-item > header small { color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; }
.feed-shopping-item > header p { margin:0; color:var(--muted); font-size:11px; line-height:1.45; }
.feed-shopping-include { display:block; cursor:pointer; }
.feed-shopping-include input { position:absolute; opacity:0; pointer-events:none; }
.feed-shopping-include span { width:27px; height:27px; display:grid; place-items:center; border:1px solid var(--line); border-radius:8px; color:transparent; background:var(--paper); }
.feed-shopping-include input:checked + span { border-color:var(--forest); background:var(--forest); color:#fff; }
.feed-shopping-include svg { width:15px; }
.feed-shopping-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.feed-shopping-metrics > span { display:grid; gap:4px; padding:10px; border-radius:10px; background:var(--paper); }
.feed-shopping-metrics small,.feed-shopping-result small,.feed-shopping-adjust > span small { color:var(--muted); font-size:9px; }
.feed-shopping-metrics strong,.feed-shopping-result strong,.feed-shopping-adjust > span strong { font-size:12px; }
.feed-shopping-adjust { display:grid; grid-template-columns:minmax(160px,1fr) minmax(130px,.7fr) minmax(160px,1fr); align-items:end; gap:10px; }
.feed-shopping-adjust > label,.feed-shopping-adjust > span { min-height:70px; display:grid; align-content:center; gap:5px; padding:10px 12px; border:1px solid var(--line); border-radius:11px; }
.feed-shopping-adjust > label > span { color:var(--muted); font-size:9px; font-weight:700; }
.feed-shopping-adjust input { min-height:37px; }
.feed-shopping-adjust em { color:var(--muted); font-size:8px; font-style:normal; }
.feed-shopping-expiry { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:10px; }
.feed-shopping-expiry svg { width:15px; min-width:15px; }
.feed-shopping-expiry.expired { color:#a24236; font-weight:700; }
.feed-shopping-expiry.soon { color:#8a6324; }
.feed-shopping-product-link { justify-self:start; display:inline-flex; align-items:center; gap:6px; color:var(--forest); font-size:10px; font-weight:700; }
.feed-shopping-product-link svg { width:14px; }
.feed-shopping-offers { border-color:var(--line); background:var(--paper); }
.feed-shopping-actions { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
@media (max-width: 700px) {
  .feed-shopping-controls { grid-template-columns:1fr 1fr; }
  .feed-shopping-controls .button { grid-column:1 / -1; }
  .feed-shopping-item { padding:13px; }
  .feed-shopping-item > header { grid-template-columns:auto minmax(0,1fr); }
  .feed-shopping-item > header .text-button { grid-column:2; justify-self:start; }
  .feed-shopping-metrics { grid-template-columns:1fr 1fr; }
  .feed-shopping-adjust { grid-template-columns:1fr; }
  .feed-shopping-actions { display:grid; grid-template-columns:1fr; }
}
.feed-meal-grid { display: grid; gap: 8px; }
.feed-meal-row { padding: 11px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: 75px 1fr 1fr; align-items: end; gap: 10px; background: #fdfdfb; }
.feed-meal-row.inactive { background: #f4f5f1; border-style: dashed; }
.feed-meal-row.inactive > strong, .feed-meal-row.inactive input { color: var(--muted); }
.feed-meal-row > strong { align-self: center; color: var(--forest); font-size: 9px; }
.feed-meal-row > label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 7px; }
.feed-meal-row input { width: 100%; min-height: 39px; padding: 0 9px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); }
.feed-time-input, .feed-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.feed-time-input button { min-width: 102px; min-height: 39px; padding: 0 9px; border: 1px solid var(--line); border-radius: 10px; color: var(--forest); background: var(--white); cursor: pointer; font-size: 8px; font-weight: 750; }
.feed-url-row .button { min-height: 42px; white-space: nowrap; }
.optional-label { color: var(--muted); font-size: 7px; font-weight: 500; }
.feed-product-advice { padding: 14px; border: 1px solid #cddfd2; border-radius: 13px; color: var(--forest); background: #edf5ee; }
.feed-product-advice strong { display: flex; align-items: center; gap: 7px; font-size: 9px; }
.feed-product-advice svg { width: 15px; height: 15px; }
.feed-product-advice p { margin: 7px 0 4px; font-size: 9px; line-height: 1.5; }
.feed-product-advice small { color: #66786f; font-size: 7px; line-height: 1.45; }
.feed-package-verification { padding: 13px 14px; border: 1px solid #bad5c4; border-radius: 13px; display: grid; gap: 10px; color: #285c43; background: #eef8f1; }
.feed-package-verification[hidden] { display: none; }
.feed-package-verification.warning { border-color: #e1b79c; color: #7d432d; background: #fff4ec; }
.feed-package-verification > div:first-child { display: flex; align-items: flex-start; gap: 9px; }
.feed-package-verification svg { width: 18px; height: 18px; flex: 0 0 auto; }
.feed-package-verification span { display: grid; gap: 3px; }
.feed-package-verification strong { font-size: 9px; }
.feed-package-verification small, .feed-package-verification p, .feed-package-verification a { margin: 0; font-size: 8px; line-height: 1.45; }
.feed-package-verification a { width: fit-content; color: inherit; font-weight: 800; }
.feed-package-candidates { display: flex; flex-wrap: wrap; gap: 7px; }
.feed-package-candidates button { min-height: 34px; padding: 7px 10px; border: 1px solid currentColor; border-radius: 9px; color: inherit; background: #fff; cursor: pointer; font: inherit; font-size: 8px; font-weight: 800; }
.feed-dosage-advice { padding: 15px; border: 1px solid #b9d0c1; border-radius: 14px; color: var(--forest); background: linear-gradient(135deg, #edf5ee, #f8f8f2); }
.feed-dosage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feed-dosage-head strong { display: flex; align-items: center; gap: 7px; font-size: 9px; }
.feed-dosage-head strong svg { width: 15px; height: 15px; }
.feed-dosage-head > span { padding: 5px 8px; border-radius: 99px; color: #547064; background: rgba(255,255,255,.72); font-size: 7px; font-weight: 750; }
.feed-dosage-advice p { margin: 10px 0; color: #31473e; font-size: 9px; line-height: 1.55; }
.feed-dosage-actions { margin: 4px 0 9px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.feed-dosage-actions a { color: var(--forest); font-size: 8px; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.feed-dosage-actions .button { min-height: 34px; padding: 0 11px; font-size: 8px; }
.feed-dosage-advice > small { display: block; color: #66786f; font-size: 7px; line-height: 1.5; }
.stock-list { display: flex; flex-direction: column; }
.stock-row { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(90px, .7fr)) auto; align-items: center; gap: 13px; }
.stock-row:first-child { border-top: 0; }
.stock-row.low-stock { color: #924a41; }
.stock-row > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.stock-row > div > span:not(.feed-category), .stock-row small { color: var(--muted); font-size: 7px; }
.stock-row strong, .stock-row b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.stock-actions { align-items: flex-start; }
.stock-actions .stock-owner-lock { max-width: 150px; color: var(--muted); font-size: 7px; line-height: 1.35; }
.text-button.danger { color:#9d4238; }
.stock-delete-blocked { max-width:190px; color:#8a5b51 !important; font-size:7px !important; line-height:1.4; }
.feed-supply-delete-review { padding:16px; border:1px solid #e2c3bd; border-radius:14px; display:flex; align-items:flex-start; gap:12px; color:#743d35; background:#fff5f2; }
.feed-supply-delete-review > span { width:34px; height:34px; flex:0 0 34px; border-radius:10px; display:grid; place-items:center; color:#fff; background:#9d4238; }
.feed-supply-delete-review svg { width:18px; }
.feed-supply-delete-review > div { display:grid; gap:6px; }
.feed-supply-delete-review strong { font-size:14px; }
.feed-supply-delete-review p,.feed-supply-delete-review small { margin:0; font-size:12px; line-height:1.55; }
.feed-supply-delete-review small { color:#7b625d; }
.blanket-weather { margin-bottom: 16px; padding: 15px; border-radius: 15px; background: var(--sage); }
.blanket-weather-head span { color: var(--forest); font-size: 9px; font-weight: 750; }
.blanket-weather-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; }
.blanket-weather-grid { margin-top: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.blanket-weather-grid article { padding: 13px; border: 1px solid #d3dfd6; border-radius: 12px; display: flex; flex-direction: column; background: rgba(255,255,255,.65); }
.blanket-weather-grid article.unsuitable { border-color: #e3b49d; background: #fff4ed; }
.blanket-weather-grid article > span { color: var(--muted); font-size: 7px; }
.blanket-weather-grid article > strong { margin-top: 3px; font-size: 15px; }
.blanket-weather-grid article > small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.blanket-weather-grid article > b { margin-top: 10px; color: var(--forest); font-size: 10px; }
.blanket-weather-grid article.unsuitable > b { color: #a44d2b; }
.blanket-weather-grid article > p { margin: 4px 0 0; color: #60736a; font-size: 8px; line-height: 1.4; }
.blanket-context-grid { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.blanket-context { min-width: 0; padding: 10px; border: 1px solid #d5e2d9; border-radius: 11px; background: rgba(255,255,255,.82); }
.blanket-context.unsuitable { border-color: #e3b49d; background: #fff4ed; }
.blanket-context header { display: flex; align-items: center; gap: 7px; }
.blanket-context header > span { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.blanket-context header svg { width: 13px; }
.blanket-context header > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.blanket-context header strong { font-size: 8px; }
.blanket-context header small { color: var(--muted); font-size: 6.5px; line-height: 1.25; }
.blanket-context > b { display: block; margin-top: 8px; color: var(--forest); font-size: 9px; }
.blanket-context.unsuitable > b { color: #a44d2b; }
.blanket-context > p { margin: 4px 0 0; color: #60736a; font-size: 7px; line-height: 1.4; }
.blanket-disclaimer { margin: 10px 2px 0; color: #66786f; font-size: 7px; line-height: 1.45; }
.blanket-feedback { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(69, 96, 80, .16); display: grid; gap: 7px; }
.blanket-feedback > strong, .blanket-feedback-saved { color: var(--forest); font-size: 8px; }
.blanket-feedback > span:not(.blanket-feedback-saved) { color: var(--muted); font-size: 7px; line-height: 1.4; }
.blanket-feedback-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.blanket-feedback-actions button, .blanket-feedback-remove { min-height: 28px; padding: 5px 8px; border: 1px solid #c9d7cd; border-radius: 999px; color: var(--forest); background: #fff; font: inherit; font-size: 7px; font-weight: 750; cursor: pointer; }
.blanket-feedback-actions button.active { border-color: var(--forest); color: #fff; background: var(--forest); }
.blanket-feedback-remove { width: fit-content; border: 0; padding: 0; min-height: auto; color: #8a5445; background: transparent; text-decoration: underline; }
.blanket-feedback button:disabled { opacity: .55; cursor: wait; }
.event-regular-location { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.event-competition-fields { padding: 14px; border: 1px solid #d4dfd6; border-radius: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #f7faf7; }
.event-competition-fields[hidden], .event-regular-location[hidden] { display: none; }
.event-competition-fields .modal-section-title { margin: 0 0 2px; }
.equipment-photo-category-check { padding: 11px 13px; border: 1px solid #cfe0d3; border-radius: 12px; display: flex; gap: 10px; align-items: flex-start; color: var(--forest); background: #f4faf5; }
.equipment-photo-category-check[hidden] { display: none; }
.equipment-photo-category-check.warning { border-color: #e4b89f; color: #86472f; background: #fff5ee; }
.equipment-photo-category-check > svg { width: 18px; height: 18px; flex: 0 0 auto; }
.equipment-photo-category-check span, .equipment-photo-category-check strong, .equipment-photo-category-check small { display: block; }
.equipment-photo-category-check small { margin-top: 3px; color: var(--muted); }
.equipment-photo-check-actions { margin-top: 9px; display: flex !important; flex-wrap: wrap; gap: 7px; }
.weather-unavailable { display: flex; align-items: center; gap: 8px; color: #6b736e; font-size: 8px; }
.weather-unavailable svg { width: 16px; }
.blanket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.blanket-import-note { padding: 12px 13px; border-radius: 12px; display: flex; align-items: flex-start; gap: 8px; color: #4e6f59; background: #e8f2e9; font-size: 8px; line-height: 1.45; }
.blanket-import-note svg { width: 17px; height: 17px; flex: 0 0 auto; }
.blanket-import-note span { display: flex; flex-direction: column; gap: 2px; }
.blanket-import-note strong { font-size: 9px; }
.blanket-fill-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; border: 1px solid #d7e2da; border-radius: 13px; background: #f5f8f4; }
.blanket-fill-range[hidden] { display: none; }
.blanket-card { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fdfdfb; }
.blanket-card-head { display: flex; justify-content: space-between; gap: 10px; }
.blanket-card-head span { color: var(--clay); font-size: 7px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.blanket-card-head h3 { margin: 4px 0 0; font-size: 15px; }
.blanket-card-head > b { color: var(--forest); font-size: 15px; }
.blanket-meta { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 5px; }
.blanket-meta span { padding: 5px 7px; border-radius: 7px; color: #5f7268; background: var(--sage); font-size: 7px; }
.blanket-card > p { margin: 10px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.equipment-summary { margin-bottom: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.equipment-receipt-reminder { margin: 0 0 14px; padding: 14px; border: 1px solid #cbded4; border-radius: 15px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; color: var(--forest); background: linear-gradient(135deg, #f0f8f3, #fffaf4); }
.equipment-receipt-reminder > svg { width: 24px; height: 24px; color: var(--clay); }
.equipment-receipt-reminder > div { display: grid; gap: 3px; }
.equipment-receipt-reminder strong { font-size: 12px; }
.equipment-receipt-reminder span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.equipment-summary > div { min-height: 78px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; display: flex; flex-direction: column; justify-content: flex-end; background: #fdfdfb; }
.equipment-summary strong { color: var(--forest); font-size: 20px; letter-spacing: -.04em; }
.equipment-summary span { margin-top: 3px; color: var(--muted); font-size: 7px; }
.list-search-control { margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-search-control label { min-width: 0; width: min(100%, 440px); min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 9px; background: #fff; }
.list-search-control label:focus-within { border-color: #7c9f89; box-shadow: 0 0 0 3px rgba(85, 122, 98, .11); }
.list-search-control svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--forest); }
.list-search-control input { min-width: 0; width: 100%; min-height: 40px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 12px; }
.list-search-control > span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.list-search-empty { margin-top: 12px; }
.list-search-empty[hidden], [data-list-search-item][hidden], [data-list-search-group][hidden] { display: none !important; }
.equipment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.equipment-card { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fdfdfb; }
.equipment-card.blanket-item { border-color: #d8e1d8; background: #fbfcf9; }
.equipment-card-head { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.equipment-card-head > span { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.equipment-card-head > span svg { width: 17px; }
.equipment-card-head > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.equipment-card-head small { color: var(--clay); font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.equipment-card-head strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.equipment-card-head b { color: var(--forest); font-size: 10px; }
.equipment-tags { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 5px; }
.equipment-tags span { padding: 5px 7px; border-radius: 7px; color: #5b6861; background: #f0f1ed; font-size: 7px; }
.equipment-card > p { margin: 10px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.expense-total { padding: 20px; border-radius: 17px; color: var(--bone); background: var(--forest); }
.expense-total span, .expense-total small { display: block; color: rgba(255,255,255,.62); font-size: 8px; }
.expense-total strong { display: block; margin: 5px 0; font-size: 30px; letter-spacing: -.05em; }
.expense-categories { margin: 11px 0 15px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.expense-categories > div { padding: 11px; border: 1px solid var(--line); border-radius: 11px; display: flex; flex-direction: column; gap: 4px; background: #fdfdfb; }
.expense-categories span { color: var(--muted); font-size: 7px; }
.expense-categories strong { font-size: 10px; }
.expense-list { display: flex; flex-direction: column; }
.expense-row { padding: 12px 0; border-top: 1px solid #eceeea; display: grid; grid-template-columns: 80px minmax(0, 1fr) auto 14px; align-items: center; gap: 10px; }
.expense-row:first-child { border-top: 0; }
.expense-category { padding: 5px 7px; border-radius: 7px; color: var(--forest); background: var(--sage); font-size: 7px; text-align: center; }
.expense-row > div { display: flex; flex-direction: column; gap: 3px; }
.expense-row strong { font-size: 9px; }
.expense-row small { color: var(--muted); font-size: 7px; }
.expense-row > b { color: var(--forest); font-size: 10px; }
.expense-row > svg { width: 14px; height: 14px; color: #98a49e; }
.ori-feed-restock { margin-top: 13px; padding: 14px; border: 1px solid #cddfd2; border-radius: 13px; background: #edf5ee; }
.ori-feed-restock > strong { display: flex; align-items: center; gap: 7px; color: var(--forest); font-size: 9px; }
.ori-feed-restock > strong svg { width: 15px; }
.ori-feed-restock-grid { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 95px; gap: 8px; }
.ori-feed-restock label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 7px; }
.ori-feed-restock select, .ori-feed-restock input { min-height: 40px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--white); font: inherit; }
.ori-new-feed { margin-top: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ori-new-feed .button { grid-column: 1 / -1; justify-content: center; }
.ori-restock-summary { margin-top: 10px; padding-top: 10px; border-top: 1px solid #d4e1d7; display: flex; flex-direction: column; gap: 3px; }
.ori-restock-summary span, .ori-restock-summary small { color: #66786f; font-size: 7px; }
.ori-restock-summary b { color: var(--forest); font-size: 10px; }
.ori-ration-horses { display: grid; gap: 8px; margin-top: 12px; }
.ori-ration-horses article { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #d4e1d7; border-radius: 11px; background: rgba(255,255,255,.72); }
.ori-ration-horses strong { color: var(--forest); font-size: 10px; }
.ori-ration-horses span { color: #52675d; font-size: 8px; }
.workspace-switch-list { display: flex; flex-direction: column; gap: 8px; }
.workspace-switch-item { width: 100%; min-height: 64px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; color: var(--ink); background: var(--white); text-align: left; cursor: pointer; }
.workspace-switch-item:hover:not(:disabled) { border-color: #a8bcae; background: #fbfcf9; }
.workspace-switch-item.active { border-color: #b9cdbf; background: var(--sage); }
.workspace-switch-item:disabled { cursor: default; }
.workspace-switch-item > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--bone); background: var(--forest); font-size: 9px; font-weight: 800; }
.workspace-switch-item > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.workspace-switch-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-switch-item small { color: var(--muted); font-size: 8px; }
.workspace-switch-item > b { color: var(--forest); font-size: 8px; }
.module-placeholder { min-height: 310px; padding: 38px; display: grid; place-items: center; text-align: center; }
.module-placeholder .module-symbol { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.module-placeholder h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.module-placeholder p { max-width: 510px; margin: 10px auto 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.task-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.task-column { min-height: 480px; padding: 16px; border-radius: 19px; background: #f0f1ed; }
.task-column-head { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; }
.task-column-head h3 { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.task-column-head span { min-width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); background: var(--white); font-size: 8px; }
.task-card { margin-top: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; }
.task-card-top { display: flex; align-items: flex-start; gap: 9px; }
.task-check { width: 18px; height: 18px; flex: 0 0 auto; border: 1px solid #c7cbc5; border-radius: 6px; display: grid; place-items: center; background: var(--white); }
.task-check svg { display: none; width: 12px; }
.task-card.done .task-check { color: var(--white); border-color: var(--forest); background: var(--forest); }
.task-card.done .task-check svg { display: block; }
.task-card.done h4 { text-decoration: line-through; color: var(--muted); }
.task-card.priority-critical { border-color: #d59687; background: #fff9f7; }
.task-card.escalated { box-shadow: inset 4px 0 #b64e3d; }
.task-critical-reason { display: block; margin-top: 6px; color: #8f4335; font-size: 8px; line-height: 1.45; }
.task-escalated { margin-top: 9px; padding: 7px 9px; border-radius: 8px; color: #8f3428; background: #fce8e3; font-size: 8px; font-weight: 800; }
.task-card h4 { margin: 1px 0 7px; font-size: 11px; line-height: 1.4; }
.task-card p { margin: 0; color: var(--muted); font-size: 8px; }
.task-card-foot { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; }
.task-card-completion { margin-top: 11px; padding: 10px 11px; border-radius: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 9px; color: #315d3d; background: #edf5ee; }
.task-card-completion strong { display: flex; align-items: center; gap: 5px; font-size: 8px; }
.task-card-completion strong svg { width: 13px; }
.task-card-completion time { color: #5b7363; font-size: 7px; white-space: nowrap; }
.task-card-completion p, .task-card-completion small { grid-column: 1 / -1; color: #4f6556; font-size: 8px; line-height: 1.45; }
.task-assignee-name { min-width: 0; margin-left: auto; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.priority { padding: 4px 6px; border-radius: 6px; color: var(--red); background: #f7e5e2; font-size: 7px; text-transform: uppercase; }
.priority.low { color: var(--blue); background: #e5edf2; }
.priority.critical { color: #fff; background: #a83c2e; }
.priority.today { color: #8d482f; background: #fae7dc; }
.priority.scheduled { color: var(--blue); background: #e5edf2; }
.priority.low { color: #5e6a61; background: #eef1ee; }
.stable-health-care-requests { margin-bottom: 16px; border-color: #e2b3a8; background: linear-gradient(135deg,#fff8f5,#fff); }
.stable-health-care-requests>.panel-head>span { display:grid;place-items:center;min-width:34px;height:34px;border-radius:11px;color:#fff;background:#a83c2e;font-weight:850; }
.stable-health-care-requests>div:last-child { display:grid;gap:9px; }
.stable-health-care-request { display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#fff; }
.stable-health-care-request>div:first-child { display:grid;gap:4px;min-width:0; }
.stable-health-care-request small,.stable-health-care-request p { margin:0;color:var(--muted);font-size:10px;line-height:1.45; }
.stable-health-care-request>div:last-child { display:flex;gap:7px;flex-wrap:wrap; }
.stable-health-care-request>b { color:var(--muted);font-size:10px; }
.assignee { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: var(--forest); background: var(--sage); font-size: 7px; font-weight: 800; }

.calendar-shell { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
.calendar-main { min-width: 0; padding: 18px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.calendar-toolbar h2 { margin: 0; font-size: 17px; }
.calendar-range-state { margin: -4px 0 13px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; gap: 9px; color: var(--muted); background: var(--surface-soft); }
.calendar-range-state > svg { width: 18px; flex: 0 0 auto; }
.calendar-range-state > span:not(.calendar-range-spinner) { min-width: 0; display: grid; gap: 2px; }
.calendar-range-state strong { color: var(--ink); font-size: 10px; }
.calendar-range-state small { font-size: 8px; line-height: 1.4; }
.calendar-range-state.error { border-color: #e1bcb3; color: #924c3b; background: #fff4f0; }
.calendar-range-state.error button { min-height: 34px; margin-left: auto; padding: 0 10px; border: 1px solid #d5a89d; border-radius: 9px; color: #873f31; background: var(--white); font-size: 8px; font-weight: 800; }
.calendar-range-spinner { width: 17px; height: 17px; border: 2px solid #c9d5cd; border-top-color: var(--forest); border-radius: 50%; flex: 0 0 auto; animation: calendar-range-spin .75s linear infinite; }
@keyframes calendar-range-spin { to { transform: rotate(360deg); } }
.calendar-nav { display: flex; gap: 5px; }
.calendar-nav button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
.calendar-nav .calendar-today { width: auto; padding: 0 11px; color: var(--forest); font-size: 8px; font-weight: 750; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.day-column { min-height: 460px; border-left: 1px solid var(--line); background: #fdfdfb; cursor: pointer; outline: none; transition: background .15s ease, box-shadow .15s ease; }
.day-column:first-child { border-left: 0; }
.day-column:hover, .day-column:focus-visible { background: #f6f8f3; box-shadow: inset 0 0 0 2px rgba(21,59,50,.12); }
.day-column.selected { background: #f8faf6; }
.day-head { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.day-head span { display: block; color: var(--muted); font-size: 7px; text-transform: uppercase; }
.day-head strong { display: grid; place-items: center; width: 28px; height: 28px; margin: 5px auto 0; border-radius: 9px; font-size: 10px; }
.day-column.today .day-head strong { color: var(--white); background: var(--forest); }
.day-column.selected .day-head { background: rgba(220,231,213,.45); }
.day-events { min-height: 190px; padding: 7px; display: flex; flex-direction: column; gap: 6px; }
.day-add-hint { margin: auto auto 4px; padding: 6px; display: flex; align-items: center; gap: 3px; color: #98a19c; font-size: 7px; opacity: 0; transition: opacity .15s ease; }
.day-add-hint svg { width: 10px; height: 10px; }
.day-column:hover .day-add-hint, .day-column:focus-visible .day-add-hint { opacity: 1; }
.cal-event { width: 100%; padding: 8px; border: 0; border-left: 3px solid var(--clay); border-radius: 7px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: #694133; background: #f7e4db; font: inherit; font-size: 7px; line-height: 1.35; text-align: left; cursor: pointer; }
.cal-event:hover { filter: brightness(.97); }
.cal-event span { font-weight: 800; }
.cal-event strong { font-size: 7px; }
.cal-event small { color: inherit; font-size: 6.5px; opacity: .78; }
.cal-event.green { border-color: #668a70; color: #405b48; background: #e6efe7; }
.cal-event.blue { border-color: var(--blue); color: #3f596a; background: #e6eff3; }
.cal-event.facility { border-color: #8669a5; color: #59466d; background: #eee8f5; }
.cal-event.closure, .timeline-event.closure, .month-event.closure { border-color: #b65d50; color: #783d35; background: repeating-linear-gradient(135deg, #f9e4df, #f9e4df 7px, #f4d9d3 7px, #f4d9d3 14px); }
.cal-event.paused, .timeline-event.paused, .month-event.paused { filter: grayscale(.45); opacity: .6; }
.cal-event.relocation-required, .timeline-event.relocation-required, .month-event.relocation-required { border-color: #c1493e; box-shadow: inset 0 0 0 1px rgba(193,73,62,.2); }
.agenda-panel { padding: 19px; }
.agenda-date { margin-bottom: 17px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.agenda-date strong { display: block; font-size: 30px; letter-spacing: -.04em; }
.agenda-date span { color: var(--muted); font-size: 9px; }
.agenda-item { width: 100%; padding: 13px 0; border: 0; border-top: 1px solid #efefeb; display: flex; gap: 10px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.agenda-item:first-of-type { border-top: 0; }
.agenda-item time { width: 36px; color: var(--muted); font-size: 8px; }
.agenda-item div { display: flex; flex-direction: column; gap: 3px; }
.agenda-item strong { font-size: 10px; }
.agenda-item span { color: var(--muted); font-size: 8px; }
.agenda-empty { width: 100%; min-height: 140px; padding: 18px; border: 1px dashed #ccd3cd; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); background: transparent; cursor: pointer; text-align: center; }
.agenda-empty svg { width: 18px; color: var(--forest); }
.agenda-empty strong { color: var(--ink); font-size: 10px; }
.agenda-empty span { font-size: 8px; }
.calendar-view-switch-wrap { margin: -6px 0 14px; display: flex; justify-content: flex-end; }
.calendar-view-switch { padding: 3px; border: 1px solid var(--line); border-radius: 11px; display: inline-flex; gap: 3px; background: #f2f4f0; }
.calendar-view-switch button { min-height: 31px; padding: 0 11px; border: 0; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); background: transparent; cursor: pointer; font-size: 8px; font-weight: 750; }
.calendar-view-switch button svg { width: 12px; }
.calendar-view-switch button.active { color: var(--forest); background: var(--white); box-shadow: 0 1px 4px rgba(19,47,39,.1); }
.calendar-horse-controls { margin-bottom: 12px; padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.calendar-horse-controls > div:first-child { display: grid; gap: 3px; }
.calendar-horse-controls > div:first-child strong { font-size: 9px; }
.calendar-horse-controls > div:first-child span { color: var(--muted); font-size: 7px; }
.calendar-horse-filter-list { display: flex; flex-wrap: wrap; gap: 6px; }
.calendar-horse-filter { min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: var(--white); cursor: pointer; font-size: 7.5px; font-weight: 800; }
.calendar-horse-filter > span { width: 7px; height: 7px; border: 1px solid #93a39a; border-radius: 50%; }
.calendar-horse-filter.active { color: var(--forest); border-color: #a9c3b2; background: #edf5ef; }
.calendar-horse-filter.active > span { border-color: var(--forest); background: var(--forest); box-shadow: 0 0 0 2px #d7e8dc; }
.calendar-all-day-overview { margin-bottom: 12px; border: 1px solid #cbd8cf; border-radius: 14px; overflow: hidden; background: #f7faf7; }
.calendar-all-day-overview > header { padding: 10px 12px; border-bottom: 1px solid #dbe4dd; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #edf4ee; }
.calendar-all-day-overview > header > div { display: flex; align-items: center; gap: 7px; }
.calendar-all-day-overview > header strong { color: var(--forest); font-size: 9px; }
.calendar-all-day-overview > header span { min-width: 22px; padding: 3px 6px; border-radius: 999px; color: var(--forest); background: var(--white); font-size: 7px; font-weight: 800; text-align: center; }
.calendar-all-day-overview > header small { color: var(--muted); font-size: 7px; }
.calendar-all-day-overview-list { padding: 8px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; display: flex; align-items: flex-start; gap: 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.calendar-all-day-overview-list:focus-visible { outline: 2px solid var(--forest); outline-offset: -3px; }
.calendar-all-day-group { flex: 0 0 min(310px, 72vw); min-width: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--white); scroll-snap-align: start; }
.calendar-all-day-date { width: 100%; min-height: 34px; padding: 6px 9px; border: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); background: #fafbf8; cursor: pointer; text-align: left; }
.calendar-all-day-date strong { font-size: 8px; text-transform: capitalize; }
.calendar-all-day-date span { min-width: 19px; height: 19px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); background: #eef1ec; font-size: 7px; font-weight: 800; }
.calendar-all-day-group > div { display: grid; }
.calendar-all-day-item { width: 100%; min-height: 45px; border: 0; border-bottom: 1px solid #edf0eb; display: flex; align-items: center; color: var(--ink); background: var(--white); text-align: left; }
.calendar-all-day-item:last-child { border-bottom: 0; }
.calendar-all-day-item:hover { background: #f8faf7; }
.calendar-all-day-item-main { min-width: 0; flex: 1; padding: 8px 9px; border: 0; display: grid; grid-template-columns: 4px minmax(0, 1fr) 13px; align-items: center; gap: 8px; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.calendar-all-day-item-main > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.calendar-all-day-item strong, .calendar-all-day-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-all-day-item strong { font-size: 8.5px; }
.calendar-all-day-item small { color: var(--muted); font-size: 7px; }
.calendar-all-day-item-main > svg { width: 13px; color: var(--muted); }
.calendar-all-day-item-mark { width: 4px; height: 28px; border-radius: 4px; background: var(--clay); }
.calendar-all-day-item.green .calendar-all-day-item-mark { background: #668a70; }
.calendar-all-day-item.blue .calendar-all-day-item-mark { background: var(--blue); }
.calendar-all-day-item.facility .calendar-all-day-item-mark { background: #8669a5; }
.calendar-all-day-item.closure .calendar-all-day-item-mark { background: #b65d50; }
.calendar-all-day-item.paused { opacity: .62; }
.calendar-all-day-item.relocation-required { background: #fff4f1; }
.calendar-all-day-complete { margin-right: 7px; padding: 5px 7px; border: 1px solid #b9cfc0; border-radius: 8px; display: inline-flex; align-items: center; gap: 3px; color: var(--forest); background: #f3f8f4; font-size: 7px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.calendar-all-day-complete svg { width: 10px; }
.calendar-all-day-completed { margin-right: 8px; color: #52715d; font-size: 7px; font-weight: 800; white-space: nowrap; }
.calendar-timeline-scroll { max-height: min(72vh, 780px); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 15px; background: var(--white); scrollbar-gutter: stable; }
.calendar-timeline { min-width: 720px; display: grid; grid-template-columns: 50px repeat(7, minmax(95px, 1fr)); }
.timeline-hours, .timeline-day { min-width: 0; border-left: 1px solid var(--line); }
.timeline-hours { position: sticky; left: 0; z-index: 8; border-left: 0; background: var(--white); }
.timeline-day-spacer, .timeline-day-head { height: 66px; border-bottom: 1px solid var(--line); }
.timeline-day-spacer, .timeline-day-head { position: sticky; top: 0; z-index: 7; background: #fafbf8; }
.timeline-day-head { width: 100%; border: 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: inherit; cursor: pointer; }
.timeline-day-head span { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.timeline-day-head strong { width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; font-size: 10px; }
.timeline-day.today .timeline-day-head strong { color: var(--white); background: var(--forest); }
.timeline-all-day, .timeline-all-day-label { height: 48px; position: sticky; top: 66px; z-index: 6; border-bottom: 1px solid var(--line); background: #fbfcfa; }
.timeline-all-day { padding: 3px; overflow: hidden; display: grid; align-content: start; gap: 3px; }
.timeline-all-day.scrollable { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.timeline-all-day:empty { padding: 0; }
.timeline-all-day-label { padding: 6px 7px; display: flex; align-items: flex-end; justify-content: flex-start; flex-direction: column; color: var(--muted); font-size: 6.5px; }
.timeline-all-day-label small { font-size: 5.5px; font-weight: 750; }
.timeline-all-day-label.scrollable { color: var(--forest); }
.timeline-hour-body, .timeline-day-body { position: relative; }
.timeline-hour-body span { position: absolute; right: 8px; color: var(--muted); font-size: 7px; transform: translateY(-50%); }
.timeline-day-body > i { width: 100%; height: 1px; position: absolute; left: 0; background: #eceeea; }
.timeline-event { width: calc(100% - 8px); min-height: 26px; padding: 4px 6px; border: 0; border-left: 3px solid var(--clay); border-radius: 7px; position: absolute; left: 4px; z-index: 2; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; color: #694133; background: #f7e4db; cursor: pointer; text-align: left; }
.timeline-event span, .timeline-event strong, .timeline-event small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-event span { font-size: 6.5px; font-weight: 800; }
.timeline-event strong { font-size: 7.5px; }
.timeline-event small { color: inherit; font-size: 6px; opacity: .75; }
.timeline-event.green { border-color: #668a70; color: #405b48; background: #e6efe7; }
.timeline-event.blue { border-color: var(--blue); color: #3f596a; background: #e6eff3; }
.timeline-event.facility, .month-event.facility { border-color: #8669a5; color: #59466d; background: #eee8f5; }
.timeline-event.pending, .month-event.pending { border-style: dashed; opacity: .76; }
.timeline-now { width: 100%; height: 2px; position: absolute; left: 0; z-index: 3; background: #d96d58; pointer-events: none; }
.timeline-now::before { content: ""; width: 7px; height: 7px; position: absolute; left: -1px; top: -3px; border-radius: 50%; background: #d96d58; }
.calendar-month { overflow: auto; border: 1px solid var(--line); border-radius: 15px; }
.month-weekdays, .month-grid { min-width: 720px; display: grid; grid-template-columns: repeat(7, 1fr); }
.month-weekdays span { padding: 9px; color: var(--muted); background: #f7f8f5; font-size: 7px; font-weight: 800; text-align: center; text-transform: uppercase; }
.month-cell { min-height: 120px; padding: 6px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); cursor: pointer; }
.month-cell:focus-visible { position: relative; z-index: 2; outline: 2px solid var(--forest); outline-offset: -2px; }
.month-cell:nth-child(7n+1) { border-left: 0; }
.month-cell.outside { background: #f7f8f5; opacity: .58; }
.month-date { width: 25px; height: 25px; border: 0; border-radius: 8px; display: grid; place-items: center; color: inherit; background: transparent; font-size: 8px; font-weight: 800; }
.month-cell.today .month-date { color: var(--white); background: var(--forest); }
.month-cell > div { display: grid; gap: 3px; }
.month-cell > div > small { color: var(--muted); font-size: 6.5px; }
.month-event { min-height: 23px; padding: 4px 5px; border: 0; border-left: 2px solid var(--clay); border-radius: 5px; overflow: hidden; color: #694133; background: #f7e4db; cursor: pointer; font-size: 6.5px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.month-event span { margin-right: 4px; font-weight: 800; }
.month-event.green { border-color: #668a70; color: #405b48; background: #e6efe7; }
.month-event.blue { border-color: var(--blue); color: #3f596a; background: #e6eff3; }
.facility-calendar-controls { margin-bottom: 14px; padding: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.facility-calendar-controls > div:first-child strong, .facility-calendar-controls > div:first-child span { display: block; }
.facility-calendar-controls > div:first-child strong { font-size: 9px; }
.facility-calendar-controls > div:first-child span { margin-top: 3px; color: var(--muted); font-size: 7px; }
.facility-filter-list { display: flex; flex-wrap: wrap; gap: 6px; }
.facility-filter { min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: var(--white); cursor: pointer; font-size: 7.5px; font-weight: 750; }
.facility-filter > span { width: 7px; height: 7px; border: 1px solid #93a39a; border-radius: 50%; }
.facility-filter.active { color: #59466d; border-color: #cfc0dd; background: #f3eef8; }
.facility-filter.active > span { border-color: #8669a5; background: #8669a5; box-shadow: 0 0 0 2px #e5ddec; }
.facility-booking-rules { padding: 13px; border: 1px solid #d8cce5; border-radius: 13px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 1fr); align-items: center; gap: 12px; background: #f7f3fa; }
.facility-booking-rules > div:first-child strong, .facility-booking-rules > div:first-child span { display: block; }
.facility-booking-rules > div:first-child strong { font-size: 9px; }
.facility-booking-rules > div:first-child span { margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.facility-rule-hint { padding: 10px 12px; border-radius: 10px; color: #59466d; background: #f2edf7; font-size: 8px; line-height: 1.45; }
.facility-reservation-inline-error { padding: 13px 14px; border: 1px solid #d98a7e; border-radius: 12px; display: flex; align-items: flex-start; gap: 10px; color: #7c332b; background: #fff1ee; box-shadow: 0 8px 22px rgba(124,51,43,.09); }
.facility-reservation-inline-error[hidden] { display: none; }
.facility-reservation-inline-error.notice-priority { border-width: 2px; background: #ffebe7; }
.facility-reservation-inline-error > svg { width: 20px; height: 20px; flex: 0 0 auto; }
.facility-reservation-inline-error strong { display: block; font-size: 9px; line-height: 1.35; }
.facility-reservation-inline-error p { margin: 4px 0 0; font-size: 8px; line-height: 1.5; }
.facility-reservation-inline-error:focus-visible { outline: 3px solid rgba(169,75,64,.28); outline-offset: 3px; }
.modal .field input[aria-invalid="true"] { border-color: #c45b4e; background: #fff8f6; box-shadow: 0 0 0 2px rgba(196,91,78,.13); }

.inventory-card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.inventory-card-actions .feed-edit-button { width: auto; margin-top: 0; flex: 1 1 120px; justify-content: center; }
.inventory-card-actions .feed-edit-button.sell { color: #6f4b27; border-color: #d8c3a8; background: #fbf3e8; }
.marketplace-loading, .marketplace-empty { min-height: 210px; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; }
.marketplace-loading svg, .marketplace-empty > svg { width: 30px; color: var(--forest); }
.marketplace-loading strong, .marketplace-empty strong { color: var(--ink); font-size: 12px; }
.marketplace-empty span { max-width: 390px; font-size: 8px; line-height: 1.5; }
.marketplace-empty button { min-height: 34px; margin-top: 6px; padding: 0 13px; border: 0; border-radius: 9px; color: var(--white); background: var(--forest); cursor: pointer; font: inherit; font-size: 8px; font-weight: 800; }
.marketplace-hero { min-height: 190px; margin-bottom: 14px; padding: 27px 30px; border-radius: 23px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--white); background: linear-gradient(125deg, #143a30, #365f4f); overflow: hidden; position: relative; }
.marketplace-hero::after { content: ""; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; position: absolute; right: -95px; bottom: -155px; box-shadow: 0 0 0 48px rgba(255,255,255,.025); }
.marketplace-hero > div { min-width: 0; display: flex; align-items: flex-start; gap: 16px; position: relative; z-index: 1; }
.marketplace-hero > div > span { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; flex: 0 0 auto; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.marketplace-hero > div > span svg { width: 23px; }
.marketplace-hero .kicker { color: #c8b492; }
.marketplace-hero h2 { margin: 6px 0; color: var(--white); font-family: var(--serif); font-size: 28px; }
.marketplace-hero p:not(.kicker) { max-width: 530px; color: rgba(255,255,255,.64); font-size: 9px; line-height: 1.55; }
.marketplace-hero > strong { min-width: 105px; position: relative; z-index: 1; font-family: var(--serif); font-size: 34px; text-align: center; }
.marketplace-hero > strong small { margin-top: 2px; display: block; color: rgba(255,255,255,.6); font-family: var(--sans); font-size: 7px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.marketplace-controls { margin-bottom: 14px; padding: 12px; display: flex; align-items: center; gap: 12px; }
.marketplace-controls label { min-width: 245px; min-height: 37px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 8px; background: var(--white); }
.marketplace-controls label svg { width: 14px; color: var(--muted); }
.marketplace-controls input { width: 100%; border: 0; color: var(--ink); background: transparent; outline: 0; font: inherit; font-size: 9px; }
.marketplace-controls > div { display: flex; flex-wrap: wrap; gap: 5px; }
.marketplace-controls > div button { min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--white); cursor: pointer; font: inherit; font-size: 7.5px; font-weight: 750; }
.marketplace-controls > div button.active { color: var(--white); border-color: var(--forest); background: var(--forest); }
.marketplace-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 11px; }
.marketplace-grid .grid-empty { grid-column: 1 / -1; }
.marketplace-card { min-width: 0; min-height: 330px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: var(--white); box-shadow: 0 8px 24px rgba(19,47,39,.045); }
.marketplace-card-art { min-height: 145px; padding: 16px; overflow: hidden; position: relative; display: flex; align-items: flex-end; justify-content: space-between; color: #644d34; background: linear-gradient(140deg, #efe6d9, #f9f5ee); }
.marketplace-card-art svg { width: 40px; height: 40px; opacity: .55; }
.marketplace-card-art img { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 1; object-fit: cover; }
.marketplace-card-art span { padding: 5px 8px; border-radius: 8px; position: relative; z-index: 2; background: rgba(255,255,255,.82); font-size: 7px; font-weight: 800; backdrop-filter: blur(5px); }
.marketplace-card-art.photo-error img { display: none; }
.marketplace-card-body { min-height: 0; padding: 15px; display: flex; flex: 1; flex-direction: column; }
.marketplace-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.marketplace-condition { color: #577063; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.marketplace-card h3 { margin: 7px 0 5px; font-size: 15px; line-height: 1.2; }
.marketplace-card p { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.marketplace-card p.muted { opacity: .65; }
.marketplace-card-meta { margin-top: 12px; display: grid; gap: 6px; }
.marketplace-card-meta span { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--muted); font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.marketplace-card-meta svg { width: 13px; flex: 0 0 auto; color: #788c81; }
.marketplace-card-foot { margin-top: auto; padding-top: 13px; border-top: 1px solid #eceeea; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.marketplace-card-foot strong { color: var(--forest); font-size: 17px; }
.marketplace-card-foot > span { color: var(--muted); font-size: 7px; }
.marketplace-contact-button { min-height: 36px; padding: 0 11px; border: 1px solid #b9cdbf; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--forest); background: #eef5ef; cursor: pointer; font: inherit; font-size: 8px; font-weight: 850; }
.marketplace-contact-button svg { width: 14px; }
.marketplace-status { width: fit-content; padding: 4px 7px; border-radius: 999px; color: #365d43; background: #e2efe5; font-size: 6.5px; font-weight: 850; white-space: nowrap; }
.marketplace-status.reserved { color: #75521f; background: #f7e8c8; }
.marketplace-status.sold { color: #475a65; background: #e5ebee; }
.marketplace-status.withdrawn { color: #766d68; background: #ece9e7; }
.marketplace-own { margin-top: 30px; }
.marketplace-section-head { margin-bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.marketplace-section-head h2 { margin-top: 3px; font-size: 25px; }
.marketplace-own-list { display: grid; gap: 8px; }
.marketplace-own-row { padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto minmax(190px, auto); align-items: center; gap: 11px; background: var(--white); }
.marketplace-own-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #684f34; background: #f3eadf; }
.marketplace-own-icon svg { width: 19px; }
.marketplace-own-row > div:nth-child(2) { min-width: 0; }
.marketplace-own-row > div:nth-child(2) span, .marketplace-own-row > div:nth-child(2) strong, .marketplace-own-row > div:nth-child(2) small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marketplace-own-row > div:nth-child(2) span { color: var(--muted); font-size: 6.5px; text-transform: uppercase; }
.marketplace-own-row > div:nth-child(2) strong { margin-top: 3px; font-size: 9px; }
.marketplace-own-row > div:nth-child(2) small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.marketplace-own-edit { display: flex; justify-content: flex-end; gap: 6px; }
.marketplace-own-edit > button, .marketplace-own-actions button { min-height: 30px; padding: 0 9px; border: 1px solid #cbd6ce; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: var(--forest); background: var(--white); cursor: pointer; font: inherit; font-size: 7px; font-weight: 800; }
.marketplace-own-edit > button svg { width: 12px; }
.marketplace-own-actions { display: flex; gap: 5px; }
.marketplace-own-actions button.danger { color: #8a493f; border-color: #e0c0b9; }
.marketplace-source-note { padding: 12px 13px; border: 1px solid #c9dacd; border-radius: 12px; display: flex; align-items: flex-start; gap: 10px; color: var(--forest); background: #edf5ef; }
.marketplace-source-note > svg { width: 18px; flex: 0 0 auto; }
.marketplace-source-note strong, .marketplace-source-note span { display: block; }
.marketplace-source-note strong { font-size: 9px; }
.marketplace-source-note span { margin-top: 4px; color: #597066; font-size: 7.5px; line-height: 1.45; }
.marketplace-inline-error { padding: 13px 14px; border: 2px solid #d8a49b; border-radius: 12px; display: flex; align-items: flex-start; gap: 10px; color: #7e352d; background: #fff4f1; outline: none; }
.marketplace-inline-error[hidden] { display: none; }

.horse-owner-more { margin-top: 22px; border-top: 1px solid var(--line, #d8dfda); padding-top: 14px; }
.horse-owner-more > summary { cursor: pointer; color: var(--muted, #65736e); font-size: 13px; font-weight: 750; list-style-position: inside; }
.horse-owner-more > div { display: grid; gap: 5px; justify-items: start; padding: 10px 2px 2px; }
.horse-owner-more small { max-width: 620px; color: var(--muted, #65736e); }
.marketplace-horse-privacy { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #bed1c5; border-radius: 15px; background: #f0f7f2; color: #24473d; }
.marketplace-horse-privacy svg { width: 22px; flex: 0 0 22px; }
.marketplace-horse-privacy div { display: grid; gap: 3px; }
.marketplace-horse-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0; padding: 14px; border: 1px solid var(--line, #d8dfda); border-radius: 15px; }
.marketplace-horse-fields legend { padding: 0 6px; font-weight: 800; }
.marketplace-horse-fields label { display: flex; gap: 8px; align-items: center; min-height: 34px; }
.marketplace-horse-fields label.wide { grid-column: 1 / -1; padding-top: 7px; border-top: 1px solid var(--line, #d8dfda); }
.marketplace-horse-fields input { width: 18px; height: 18px; }
.market-horse-public { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.market-horse-public span { display: grid; padding: 9px 11px; border-radius: 10px; background: #f3f6f3; }
.market-horse-public small { color: var(--muted, #65736e); }
.marketplace-public-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.marketplace-public-actions button { font-size: 12px; }
@media (max-width: 640px) {
  .marketplace-horse-fields, .market-horse-public { grid-template-columns: 1fr; }
  .marketplace-public-actions { width: 100%; }
  .marketplace-public-actions button { flex: 1 1 auto; min-height: 38px; }
}
.marketplace-inline-error > svg { width: 20px; flex: 0 0 auto; }
.marketplace-inline-error strong, .marketplace-inline-error p { display: block; }
.marketplace-inline-error strong { font-size: 9px; }
.marketplace-inline-error p { margin: 4px 0 0; font-size: 7.5px; line-height: 1.45; }
.marketplace-price-note { min-height: 17px; margin-top: 6px; display: block; color: #5c7066; font-size: 7px; line-height: 1.45; }
.marketplace-photo-field > label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.marketplace-photo-field > label small { color: var(--muted); font-size: 7px; font-weight: 550; }
.marketplace-photo-field > input[type="file"] { padding: 8px; }
.marketplace-photo-grid { margin-top: 9px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.marketplace-photo-grid article { aspect-ratio: 4 / 3; overflow: hidden; position: relative; border: 1px solid var(--line); border-radius: 11px; background: #eef1ec; }
.marketplace-photo-grid article img { width: 100%; height: 100%; display: block; object-fit: cover; }
.marketplace-photo-grid article button { width: 30px; height: 30px; border: 0; border-radius: 50%; position: absolute; top: 5px; right: 5px; z-index: 2; color: var(--white); background: rgba(91,41,35,.88); cursor: pointer; font: inherit; font-size: 18px; line-height: 1; }
.marketplace-photo-grid article small { padding: 3px 6px; border-radius: 6px; position: absolute; left: 5px; bottom: 5px; color: var(--white); background: rgba(19,47,39,.78); font-size: 6px; font-weight: 800; }
.marketplace-photo-grid > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 7px; }
.marketplace-photo-grid > p.empty { min-height: 70px; padding: 16px; border: 1px dashed #cbd4cd; border-radius: 11px; display: grid; place-items: center; background: #fafbf8; text-align: center; }

.community-summary { margin-bottom: 13px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.community-summary > div { min-height: 67px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 32px auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; background: var(--white); }
.community-summary svg { width: 17px; height: 17px; grid-row: 1 / 3; justify-self: center; color: var(--forest); }
.community-summary strong { align-self: end; color: var(--forest); font-size: 18px; line-height: 1; }
.community-summary span { align-self: start; color: var(--muted); font-size: 7px; }
.community-load-error { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #e0bbb5; border-radius: 11px; display: flex; align-items: center; gap: 8px; color: #873d34; background: #fff7f5; font-size: 8px; }
.community-load-error svg { width: 16px; flex: 0 0 auto; }
.community-load-error span { flex: 1; }
.community-load-error button { min-height: 29px; padding: 0 9px; border: 1px solid #d7a9a2; border-radius: 8px; color: inherit; background: var(--white); cursor: pointer; font: inherit; font-weight: 800; }
.community-layout { min-height: 520px; height: min(680px, calc(100vh - 255px)); display: grid; grid-template-columns: minmax(290px, 345px) minmax(0, 1fr); gap: 12px; }
.community-sidebar { min-height: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; }
.community-user-search { padding: 12px; border-bottom: 1px solid var(--line); background: #fbfcfa; position: sticky; top: 0; z-index: 3; }
.community-user-search > form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.community-user-search > form > label { min-height: 41px; padding: 0 11px; border: 1px solid #ced8d1; border-radius: 11px; display: flex; align-items: center; gap: 8px; background: var(--white); }
.community-user-search > form > label:focus-within { border-color: #8aa494; box-shadow: 0 0 0 3px rgba(90,126,105,.1); }
.community-user-search > form > label svg { width: 15px; color: var(--muted); }
.community-user-search > form > button { min-height: 41px; padding: 0 11px; border: 0; border-radius: 11px; color: var(--white); background: var(--forest); cursor: pointer; font: inherit; font-size: 8px; font-weight: 800; }
.community-user-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 9px; }
.community-search-results { display: grid; gap: 5px; }
.community-search-hint { padding: 9px 5px 0; color: var(--muted); font-size: 7.5px; line-height: 1.4; }
.community-search-hint.error { color: #9c433a; }
.community-search-result { min-height: 45px; margin-top: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; background: var(--white); }
.community-search-result > div { min-width: 0; display: grid; gap: 2px; }
.community-search-result > div strong { overflow: hidden; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.community-search-result > div small { overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.community-search-result > span, .community-search-result > button { color: var(--muted); font-size: 7px; font-weight: 750; }
.community-search-result > button { min-height: 28px; padding: 0 8px; border: 1px solid #b8cabe; border-radius: 8px; color: var(--forest); background: #edf4ee; cursor: pointer; font: inherit; font-weight: 800; }
.community-avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; color: var(--forest); background: #dfeade; font-size: 9px; font-weight: 850; }
.community-avatar.has-photo { overflow:hidden; background:#e7ece8; }
.community-avatar.has-photo img { width:100%; height:100%; display:block; object-fit:cover; }
.community-side-section { padding: 12px; border-bottom: 1px solid var(--line); }
.community-side-title { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.community-side-title strong { font-size: 9px; }
.community-side-title span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; color: var(--forest); background: var(--sage); font-size: 7px; font-weight: 800; }
.community-request-card { padding: 8px 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; }
.community-request-card + .community-request-card { border-top: 1px solid #edf0ec; }
.community-request-card > div:nth-child(2) { min-width: 0; padding-top: 3px; }
.community-request-card strong, .community-request-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-request-card strong { font-size: 8px; }
.community-request-card small { margin-top: 3px; color: var(--muted); font-size: 6.5px; }
.community-request-card > div:last-child { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.community-request-card button, .community-request-card > div:last-child > span { min-height: 27px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; display: inline-flex; align-items: center; color: var(--forest); background: var(--white); cursor: pointer; font: inherit; font-size: 6.5px; font-weight: 800; }
.community-request-card button.primary { color: var(--white); border-color: var(--forest); background: var(--forest); }
.community-request-card > div:last-child > span { border: 0; color: var(--muted); background: transparent; }
.community-friend-list { display: grid; gap: 4px; }
.community-friend-row { border: 1px solid transparent; border-radius: 11px; display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; position: relative; }
.community-friend-row:hover, .community-friend-row.active { border-color: #d3ddd5; background: #f3f7f3; }
.community-friend-open { min-width: 0; min-height: 54px; padding: 7px; border: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: 1fr 1fr; align-items: center; gap: 0 8px; text-align: left; color: inherit; background: transparent; cursor: pointer; font: inherit; }
.community-friend-open .community-avatar { grid-row: 1 / 3; }
.community-friend-open > span { min-width: 0; grid-row: 1 / 3; }
.community-friend-open strong, .community-friend-open small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-friend-open strong { font-size: 8.5px; }
.community-friend-open small { margin-top: 4px; color: var(--muted); font-size: 6.5px; }
.community-friend-open time { align-self: end; color: var(--muted); font-size: 6px; }
.community-friend-open > b { min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; color: var(--white); background: #b26a55; font-size: 6px; }
.community-friend-menu { position: relative; z-index: 2; }
.community-friend-menu summary, .community-chat-panel header details summary { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); cursor: pointer; font-size: 10px; list-style: none; }
.community-friend-menu summary::-webkit-details-marker, .community-chat-panel header details summary::-webkit-details-marker { display: none; }
.community-friend-menu[open] summary, .community-chat-panel header details[open] summary { background: #e6ede7; }
.community-friend-menu > div, .community-chat-panel header details > div { min-width: 145px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; position: absolute; top: 30px; right: 0; display: grid; gap: 2px; background: var(--white); box-shadow: 0 10px 28px rgba(18,44,36,.14); }
.community-friend-menu button, .community-chat-panel header details button { min-height: 29px; padding: 0 7px; border: 0; border-radius: 6px; color: var(--ink); background: transparent; cursor: pointer; text-align: left; font: inherit; font-size: 7px; }
.community-friend-menu button:hover, .community-chat-panel header details button:hover { background: #f1f4f1; }
.community-friend-menu button.danger, .community-chat-panel header details button.danger { color: #963c34; }
.community-side-empty { min-height: 120px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--muted); text-align: center; }
.community-side-empty svg { width: 24px; color: #8ca092; }
.community-side-empty strong { color: var(--forest); font-size: 9px; }
.community-side-empty span { font-size: 7px; }
.community-blocked { padding: 11px 12px; color: var(--muted); font-size: 7.5px; }
.community-blocked > summary { cursor: pointer; font-weight: 800; }
.community-blocked > div { margin-top: 8px; display: grid; gap: 5px; }
.community-blocked-row { min-height: 42px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.community-blocked-row .community-avatar { width: 30px; height: 30px; border-radius: 9px; }
.community-blocked-row strong { overflow: hidden; color: var(--ink); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.community-blocked-row button { min-height: 27px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--forest); background: var(--white); cursor: pointer; font: inherit; font-size: 6.5px; font-weight: 800; }
.community-chat-panel { min-width: 0; min-height: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.community-chat-panel.empty { align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.community-chat-panel.empty > div { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.community-chat-panel.empty svg { width: 36px; color: #8fa496; }
.community-chat-panel.empty strong { color: var(--forest); font-family: var(--serif); font-size: 20px; }
.community-chat-panel.empty p { max-width: 280px; font-size: 8px; line-height: 1.5; }
.community-chat-panel > header { min-height: 64px; padding: 10px 13px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; background: #fbfcfa; position: relative; z-index: 4; }
.community-chat-panel > header > div { min-width: 0; flex: 1; }
.community-chat-panel > header strong, .community-chat-panel > header small { display: block; }
.community-chat-panel > header strong { font-size: 9px; }
.community-chat-panel > header small { margin-top: 3px; color: var(--muted); font-size: 6.5px; }
.community-chat-panel > header details { position: relative; }
.community-chat-back, .community-chat-close { display: none; }
.community-messages { min-height: 0; padding: 18px; display: flex; flex: 1; flex-direction: column; gap: 7px; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(#f8faf7, #f4f7f3); }
.community-message { display: flex; }
.community-message.mine { justify-content: flex-end; }
.community-message > div { max-width: min(72%, 520px); padding: 9px 11px 7px; border: 1px solid #dce3dd; border-radius: 5px 14px 14px; background: var(--white); box-shadow: 0 3px 9px rgba(25,50,42,.035); }
.community-message.mine > div { color: var(--white); border-color: var(--forest); border-radius: 14px 5px 14px 14px; background: var(--forest); }
.community-message p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 8.5px; line-height: 1.45; }
.community-message time { margin-top: 4px; display: block; color: var(--muted); font-size: 5.8px; text-align: right; }
.community-message.mine time { color: rgba(255,255,255,.6); }
.community-chat-empty { margin: auto; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); text-align: center; }
.community-chat-empty svg { width: 24px; color: #8ca092; }
.community-chat-empty strong { color: var(--forest); font-size: 9px; }
.community-chat-empty span { font-size: 7px; }
.community-chat-empty.error strong, .community-chat-empty.error span { color: #984239; }
.community-chat-empty button, .community-load-older { min-height: 29px; padding: 0 9px; border: 1px solid #c7d3ca; border-radius: 8px; color: var(--forest); background: var(--white); cursor: pointer; font: inherit; font-size: 7px; font-weight: 800; }
.community-chat-warning { margin-bottom: 7px; padding: 8px 10px; border: 1px solid #e2c0ba; border-radius: 9px; display: flex; align-items: center; gap: 7px; color: #91433a; background: #fff8f6; font-size: 7px; }
.community-chat-warning svg { width: 14px; flex: 0 0 auto; }
.community-chat-warning span { flex: 1; }
.community-chat-warning button { min-height: 26px; padding: 0 7px; border: 1px solid #d7aaa3; border-radius: 7px; color: inherit; background: var(--white); cursor: pointer; font: inherit; font-weight: 800; }
.community-load-older { margin: 0 auto 8px; flex: 0 0 auto; }
.community-chat-form { padding: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; background: var(--white); }
.community-chat-form textarea { min-height: 38px; max-height: 110px; padding: 10px 11px; border: 1px solid #cdd7d0; border-radius: 12px; resize: vertical; outline: 0; color: var(--ink); background: #fafbf9; font: inherit; font-size: 9px; line-height: 1.4; }
.community-chat-form textarea:focus { border-color: #829d8b; box-shadow: 0 0 0 3px rgba(82,118,96,.1); }
.community-chat-form button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 11px; display: inline-flex; align-items: center; gap: 6px; color: var(--white); background: var(--forest); cursor: pointer; font: inherit; font-size: 7.5px; font-weight: 850; }
.community-chat-form button svg { width: 14px; }
.bottom-nav-count { min-width: 15px; height: 15px; padding: 0 4px; border: 2px solid #fbfaf6; border-radius: 999px; position: absolute; top: 3px; left: calc(50% + 4px); display: grid; place-items: center; color: var(--white); background: #b75e4e; font-size: 5.5px; line-height: 1; }

.stable-hero { min-height: 240px; padding: 34px; border-radius: 26px; color: var(--white); background: linear-gradient(125deg, var(--forest-dark), var(--forest-2)); position: relative; overflow: hidden; }
.stable-hero::after { content: ""; width: 300px; height: 300px; position: absolute; right: -80px; bottom: -170px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025); }
.stable-hero h2 { max-width: 650px; margin: 12px 0 8px; font-size: 40px; letter-spacing: -.055em; }
.stable-hero p { max-width: 560px; color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.6; }
.stable-stats { margin-top: 27px; display: flex; flex-wrap: wrap; gap: 9px; }
.stable-stat { min-width: 110px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(255,255,255,.06); }
.stable-stat strong { display: block; font-size: 17px; }
.stable-stat span { color: rgba(255,255,255,.47); font-size: 7px; text-transform: uppercase; letter-spacing: .1em; }
.box-section-list { display: grid; gap: 16px; }
.box-section-group { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #f7f8f5; }
.box-section-group > header { margin-bottom: 11px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.box-section-group > header span { display: block; color: var(--muted); font-size: 7px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.box-section-group > header h3 { margin: 3px 0 0; font-family: var(--serif); font-size: 18px; }
.box-section-group > header small { color: var(--muted); font-size: 8px; white-space: nowrap; }
.box-section-meta { display: flex; align-items: center; gap: 9px; }
.box-section-delete { min-height: 28px; padding: 0 8px; border: 1px solid #e2bbb6; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; color: #9b342d; background: #fff8f7; cursor: pointer; font-size: 7px; font-weight: 750; }
.box-section-delete svg { width: 12px; }
.box-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.box-card-wrap { min-width: 0; position: relative; }
.box { width: 100%; min-height: 105px; padding: 10px 36px 10px 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); display: flex; flex-direction: column; text-align: left; cursor: pointer; }
.box.free { border-style: dashed; color: var(--muted); background: transparent; }
.box-number { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.box strong { margin-top: auto; font-size: 10px; }
.box span:last-child { margin-top: 3px; color: var(--muted); font-size: 7px; }
.box-edit-button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 9px; position: absolute; top: 8px; right: 8px; display: grid; place-items: center; color: var(--forest); background: rgba(255,255,255,.92); cursor: pointer; }
.box-edit-button:hover { border-color: #9eb2a4; background: var(--sage); }
.box-edit-button svg { width: 13px; height: 13px; }
.box-create-single[hidden], .box-create-batch[hidden] { display: none; }
.box-create-batch { padding: 13px; border: 1px solid #d7e2da; border-radius: 13px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; background: #f5f8f4; }
.box-range-preview { min-height: 35px; padding: 9px 11px; border-radius: 10px; grid-column: 1 / -1; color: var(--forest); background: #e4eee2; font-size: 9px; font-weight: 750; }
.box-edit-occupancy { padding: 13px; border: 1px solid #d7e2da; border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f5f8f4; }
.box-edit-occupancy > div { display: flex; flex-direction: column; gap: 3px; }
.box-edit-occupancy strong { font-size: 10px; }
.box-edit-occupancy span { color: var(--muted); font-size: 8px; }
.stable-delete-zone { padding: 13px; border: 1px solid #e6b6b1; border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff5f4; }
.stable-delete-zone > div { min-width: 0; display: flex; align-items: flex-start; gap: 9px; color: #9d332b; }
.stable-delete-zone > div > svg { width: 18px; flex: 0 0 auto; }
.stable-delete-zone span, .stable-delete-zone strong, .stable-delete-zone small { display: block; }
.stable-delete-zone strong { font-size: 9px; }
.stable-delete-zone small { margin-top: 3px; color: #86534e; font-size: 7px; }
.destructive-confirmation { padding: 15px; border: 2px solid #c94a40; border-radius: 14px; display: flex; gap: 11px; color: #8f2b24; background: #fff0ee; }
.destructive-confirmation > svg { width: 24px; flex: 0 0 auto; }
.destructive-confirmation strong { font-size: 11px; }
.destructive-confirmation p { margin: 5px 0 0; font-size: 9px; line-height: 1.5; }
.stable-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stable-loading { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.stable-loading svg { width: 34px; color: var(--forest); }
.stable-operation-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 16px; align-items: start; }
.stable-facility-panel { margin-top: 16px; }
.stable-facility-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 18px; align-items: start; }
.stable-facility-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stable-reservation-list { display: grid; gap: 9px; }
.stable-facility-card { min-width: 0; padding: 16px; border: 1px solid #d4ddd6; border-radius: 17px; display: flex; flex-direction: column; gap: 13px; background: #fff; box-shadow: 0 5px 18px rgba(25,58,45,.045); }
.stable-facility-card.inactive { opacity: .58; background: #f2f3f0; }
.stable-public-empty { min-height: 220px; padding: 28px; border: 1px dashed #cbd4cc; border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--muted); background: #fafbf9; text-align: center; }
.stable-public-empty svg { width: 30px; height: 30px; margin-bottom: 3px; color: var(--forest); }
.stable-public-empty strong { color: var(--forest); font-size: 11px; }
.stable-public-empty span { max-width: 480px; font-size: 8px; line-height: 1.55; }
.stable-facility-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stable-facility-card > header > div { min-width: 0; }
.stable-facility-type { color: #8a5c45; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.stable-facility-card h3 { margin: 4px 0 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.stable-facility-status { flex: 0 0 auto; padding: 5px 7px; border-radius: 999px; color: #34604a; background: #e7f2e8; font-size: 7px; }
.stable-facility-card.inactive .stable-facility-status { color: #6d716d; background: #e2e4e0; }
.stable-facility-card > dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.stable-facility-card > dl > div { min-width: 0; padding: 9px 10px; border-radius: 10px; background: #f5f7f3; }
.stable-facility-card dt { color: var(--muted); font-size: 7px; }
.stable-facility-card dd { margin: 3px 0 0; overflow: hidden; font-size: 8.5px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.stable-facility-card > p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.stable-facility-actions { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.stable-facility-actions button, .stable-reservation-actions button { min-height: 36px; padding: 0 10px; border: 1px solid #c5d2c8; border-radius: 10px; color: var(--forest); background: #edf4eb; cursor: pointer; font-size: 8px; font-weight: 780; }
.stable-facility-actions button.primary { color: white; border-color: var(--forest); background: var(--forest); }
.stable-facility-actions button.secondary, .stable-reservation-actions button { border-color: var(--line); background: var(--white); }
.stable-reservation-list { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #f7f8f5; }
.stable-reservation-head { min-height: 27px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stable-reservation-head strong { font-size: 10px; }
.stable-reservation-head span { color: var(--muted); font-size: 8px; }
.stable-reservation-row { padding: 11px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 10px; background: var(--white); }
.stable-reservation-row time strong, .stable-reservation-row time span { display: block; }
.stable-reservation-row time strong { color: var(--forest); font-size: 9px; }
.stable-reservation-row time span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.stable-reservation-row > div { min-width: 0; }
.stable-reservation-row > div strong, .stable-reservation-row > div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stable-reservation-row > div strong { font-size: 9px; }
.stable-reservation-row > div span { margin-top: 3px; color: var(--muted); font-size: 7.5px; }
.stable-reservation-space { margin: 0 0 3px !important; color: #8a5c45 !important; font-size: 6.5px !important; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.stable-reservation-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 5px; }
.facility-reservation-detail { padding: 15px; border: 1px solid #d8cce5; border-radius: 15px; display: flex; align-items: center; gap: 12px; background: #f6f2fa; }
.facility-reservation-detail-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; color: #67517f; background: #e7ddef; }
.facility-reservation-detail-icon svg { width: 20px; height: 20px; }
.facility-reservation-detail > div:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.facility-reservation-detail span, .facility-reservation-note span { color: #725c85; font-size: 7.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.facility-reservation-detail strong { color: var(--forest); font-size: 11px; }
.facility-reservation-detail small { color: var(--muted); font-size: 8px; }
.facility-reservation-status { width: fit-content; margin-top: 3px; padding: 4px 7px; border-radius: 999px; color: #42644e; background: #dfeee2; font-size: 6.5px; font-style: normal; font-weight: 800; }
.facility-reservation-status.pending { color: #78582a; background: #f6e8c9; }
.facility-reservation-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.facility-reservation-facts > div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; display: flex; flex-direction: column; gap: 4px; background: var(--white); }
.facility-reservation-facts span { color: var(--muted); font-size: 7px; }
.facility-reservation-facts strong { overflow-wrap: anywhere; font-size: 8.5px; }
.facility-reservation-note { padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf9; }
.facility-reservation-note p { margin: 5px 0 0; white-space: pre-wrap; line-height: 1.55; }
.facility-reservation-detail-actions { display: flex; justify-content: flex-end; gap: 8px; }
.facility-toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.facility-toggle-grid label { min-height: 67px; padding: 11px; border: 1px solid #d7e2da; border-radius: 12px; display: flex; align-items: flex-start; gap: 9px; background: #f5f8f4; cursor: pointer; }
.facility-toggle-grid input { margin-top: 2px; accent-color: var(--forest); }
.facility-toggle-grid span, .facility-toggle-grid strong, .facility-toggle-grid small { display: block; }
.facility-toggle-grid strong { font-size: 9px; }
.facility-toggle-grid small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.4; }
.facility-form-card, .routine-lot-form-card { padding: 15px; border: 1px solid #d7e0d9; border-radius: 15px; background: #f8faf7; }
.facility-form-card > header, .routine-lot-form-card > header { margin-bottom: 13px; display: flex; align-items: center; gap: 10px; }
.facility-form-card > header > span, .routine-lot-form-card > header > span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--forest); font-size: 9px; font-weight: 850; }
.facility-form-card > header strong, .facility-form-card > header small, .routine-lot-form-card > header strong, .routine-lot-form-card > header small { display: block; }
.facility-form-card > header strong, .routine-lot-form-card > header strong { font-size: 10px; }
.facility-form-card > header small, .routine-lot-form-card > header small { margin-top: 2px; color: var(--muted); font-size: 7.5px; }
.facility-form-grid, .routine-lot-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facility-form-grid > .full, .routine-lot-form-grid > .full { grid-column: 1 / -1; }
.stable-facility-flags { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px; }
.stable-facility-flags span { padding: 4px 7px; border-radius: 999px; color: #6d726d; background: #eef0ed; font-size: 6.5px; font-weight: 800; }
.stable-facility-flags span.quota { color: #5d4873; background: #eee7f4; }
.stable-facility-flags span.winter { color: #315d70; background: #e4f1f5; }
.facility-capacity-help { padding: 10px 12px; border: 1px solid #cadce2; border-radius: 11px; display: flex; align-items: flex-start; gap: 8px; color: #3f6470; background: #f0f8fa; font-size: 7.5px; line-height: 1.45; }
.facility-capacity-help svg { width: 16px; flex: 0 0 auto; }
.facility-capacity-help strong { display: block; margin-bottom: 2px; font-size: 8px; }
.reservation-policy-panel { margin-top: 16px; }
.reservation-policy-panel .panel-head { align-items: flex-start; }
.reservation-policy-overview { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.reservation-policy-overview > div { min-height: 94px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; display: flex; flex-direction: column; background: #fafbf9; }
.reservation-policy-overview > div.reservation-policy-current { color: var(--white); border-color: var(--forest); background: linear-gradient(135deg, var(--forest), #3e6a58); }
.reservation-policy-overview span, .reservation-policy-overview strong, .reservation-policy-overview small { display: block; }
.reservation-policy-overview span { color: var(--muted); font-size: 6.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.reservation-policy-overview strong { margin: 8px 0 5px; color: var(--forest); font-size: 15px; }
.reservation-policy-overview small { margin-top: auto; color: var(--muted); font-size: 6.8px; line-height: 1.4; }
.reservation-policy-current span, .reservation-policy-current strong, .reservation-policy-current small { color: inherit; }
.reservation-policy-current span, .reservation-policy-current small { opacity: .7; }
.reservation-policy-explanation { margin-top: 9px; padding: 10px 12px; border-radius: 11px; display: flex; align-items: flex-start; gap: 8px; color: #546c5e; background: #eef4ed; font-size: 7.5px; line-height: 1.5; }
.reservation-policy-explanation svg, .reservation-policy-note svg { width: 16px; flex: 0 0 auto; }
.reservation-policy-options, .reservation-scope-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.reservation-scope-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reservation-policy-option { min-height: 88px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: flex-start; gap: 8px; background: #fafbf9; cursor: pointer; }
.reservation-policy-option.selected { border-color: #789582; background: #edf5ed; box-shadow: inset 0 0 0 1px #789582; }
.reservation-policy-option.compact { min-height: 70px; }
.reservation-policy-option input { margin-top: 2px; accent-color: var(--forest); }
.reservation-policy-option span, .reservation-policy-option strong, .reservation-policy-option small { display: block; }
.reservation-policy-option strong { font-size: 9px; }
.reservation-policy-option small { margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.reservation-policy-recommendation { padding: 12px; border: 1px solid #d8cde2; border-radius: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #f8f4fa; }
.reservation-policy-recommendation > div { padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.72); }
.reservation-policy-recommendation span, .reservation-policy-recommendation strong, .reservation-policy-recommendation small { display: block; }
.reservation-policy-recommendation span { color: #725c85; font-size: 6.5px; font-weight: 800; text-transform: uppercase; }
.reservation-policy-recommendation strong { margin-top: 5px; color: var(--forest); font-size: 11px; }
.reservation-policy-recommendation small { margin-top: 3px; color: var(--muted); font-size: 6.5px; }
.reservation-policy-recommendation p { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 7px; color: #675675; font-size: 7px; line-height: 1.45; }
.reservation-policy-recommendation p svg { width: 14px; flex: 0 0 auto; }
.reservation-custom-limit[hidden] { display: none; }
.reservation-policy-note { padding: 10px 12px; border-radius: 11px; display: flex; align-items: flex-start; gap: 8px; color: #53685a; background: #edf4ed; font-size: 7.5px; line-height: 1.45; }
.facility-closures-panel { margin-top: 14px; }
.facility-closure-list { display: grid; gap: 8px; }
.facility-closure-card { padding: 12px; border: 1px solid #dfbbb5; border-radius: 14px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; background: #fff9f7; }
.facility-closure-card.paused { border-color: var(--line); background: #f6f6f3; opacity: .78; }
.facility-closure-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #96453b; background: #f5ddd8; }
.facility-closure-card.paused .facility-closure-icon { color: var(--muted); background: #e8ebe7; }
.facility-closure-icon svg { width: 18px; }
.facility-closure-card > div:nth-child(2) { min-width: 0; }
.facility-closure-title { margin-bottom: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.facility-closure-title span, .facility-closure-title b { padding: 3px 6px; border-radius: 999px; color: #864138; background: #f5ddd8; font-size: 6px; font-weight: 850; text-transform: uppercase; }
.facility-closure-title b { color: #744d20; background: #f6e7c9; }
.facility-closure-card strong { font-size: 10px; }
.facility-closure-card small { margin-top: 3px; display: block; color: var(--muted); font-size: 7px; }
.facility-closure-card p { margin: 5px 0 0; color: #6d554f; font-size: 7.5px; line-height: 1.4; }
.facility-closure-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.facility-closure-actions button { min-height: 29px; padding: 0 8px; border: 1px solid #d8c5c1; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; color: #654943; background: var(--white); cursor: pointer; font: inherit; font-size: 6.8px; font-weight: 800; }
.facility-closure-actions button svg { width: 12px; }
.facility-closure-actions button.danger { color: #9c3f35; border-color: #dda9a2; }
.facility-closure-detail { padding: 14px; border: 1px solid #dfbbb5; border-radius: 14px; display: flex; align-items: flex-start; gap: 11px; color: #7f4139; background: #fff7f5; }
.facility-closure-detail > svg { width: 22px; flex: 0 0 auto; }
.facility-closure-detail span, .facility-closure-detail strong { display: block; }
.facility-closure-detail span { font-size: 7px; font-weight: 850; text-transform: uppercase; }
.facility-closure-detail strong { margin-top: 4px; color: var(--forest); font-size: 10px; }
.facility-closure-detail p { margin: 6px 0 0; font-size: 8px; line-height: 1.5; }
.closure-weekday-picker { padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf9; }
.closure-weekday-picker > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.closure-weekday-picker > div { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.closure-weekday-picker label { min-height: 36px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: var(--white); cursor: pointer; font-size: 8px; font-weight: 800; position: relative; }
.closure-weekday-picker input { position: absolute; opacity: 0; }
.closure-weekday-picker label:has(input:checked) { color: var(--white); border-color: var(--forest); background: var(--forest); }
.closure-all-day { min-height: 64px; padding: 11px; border: 1px solid #d5dfd7; border-radius: 12px; display: flex; align-items: flex-start; gap: 9px; background: #f5f8f4; cursor: pointer; }
.closure-all-day input { margin-top: 2px; accent-color: var(--forest); }
.closure-all-day strong, .closure-all-day small { display: block; }
.closure-all-day strong { font-size: 9px; }
.closure-all-day small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.closure-confirmation-note { padding: 11px 12px; border: 1px solid #c9dacd; border-radius: 11px; display: flex; align-items: flex-start; gap: 8px; color: #456452; background: #edf5ef; font-size: 7.5px; line-height: 1.5; }
.closure-confirmation-note svg { width: 16px; flex: 0 0 auto; }
.closure-impacted-preview { padding: 11px 12px; border: 1px solid #e4c596; border-radius: 11px; display: grid; gap: 4px; color: #6f4e25; background: #fbf3e5; }
.closure-impacted-preview strong { margin-bottom: 3px; font-size: 8.5px; }
.closure-impacted-preview span, .closure-impacted-preview small { font-size: 7px; }
.reservation-relocation-warning { padding: 12px 13px; border: 1px solid #ddaaa2; border-radius: 13px; display: flex; align-items: flex-start; gap: 10px; color: #8e3f36; background: #fff5f3; }
.reservation-relocation-warning > svg { width: 20px; flex: 0 0 auto; }
.reservation-relocation-warning strong { font-size: 9px; }
.reservation-relocation-warning p { margin: 4px 0 0; font-size: 7.5px; line-height: 1.45; }
.reservation-relocation-warning small { margin-top: 5px; display: block; font-size: 7px; }
.reservation-relocation-warning button { min-height: 32px; margin-top: 8px; padding: 0 10px; border: 0; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; color: var(--white); background: #a94b40; cursor: pointer; font: inherit; font-size: 7px; font-weight: 850; }
.reservation-relocation-warning button svg { width: 12px; }
.stable-reservation-row.relocation-required { border-color: #dfa9a1; background: #fff7f5; }
.stable-reservation-row.relocation-required > div > small { margin-top: 5px; display: flex; align-items: center; gap: 4px; color: #99443a; font-size: 6.5px; }
.stable-reservation-row.relocation-required > div > small svg { width: 11px; flex: 0 0 auto; }
.stable-reservation-actions button.relocate { color: #8f4036; border-color: #dba8a0; background: #fff0ed; }
.stable-stat.warning { border-color: rgba(245,195,123,.45); background: rgba(203,128,46,.18); }
.stable-unassigned { margin-top: 14px; padding: 13px 15px; border: 1px solid #e1c294; border-radius: 14px; display: flex; align-items: center; gap: 11px; color: #6d4b23; background: #fbf2e3; }
.stable-unassigned > svg { width: 20px; flex: 0 0 auto; }
.stable-unassigned > div { min-width: 0; flex: 1; }
.stable-unassigned strong, .stable-unassigned span { display: block; }
.stable-unassigned strong { font-size: 9px; }
.stable-unassigned span { margin-top: 3px; font-size: 8px; }
.stable-unassigned button, .stable-routine-row button, .stable-feed-row > button { min-height: 32px; padding: 0 10px; border: 1px solid #c9d6cc; border-radius: 9px; color: var(--forest); background: #fff; font-size: 8px; font-weight: 750; cursor: pointer; }
.stable-empty-action { min-height: 105px; padding: 12px; border: 1px dashed #cbd4cc; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--forest); background: transparent; cursor: pointer; }
.stable-empty-action svg { width: 18px; }
.stable-empty-action strong { font-size: 9px; }
.stable-empty-action span { color: var(--muted); font-size: 7px; }
.stable-routine-list, .stable-feed-list { display: grid; gap: 7px; }
.stable-routine-group { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #fdfdfb; }
.stable-routine-group.override { border-color: #b7cfbd; background: #f3f8f2; }
.stable-routine-group > summary { min-height: 72px; padding: 11px; display: grid; grid-template-columns: 58px 32px minmax(0, 1fr) 20px; align-items: center; gap: 9px; cursor: pointer; list-style: none; }
.stable-routine-group > summary::-webkit-details-marker { display: none; }
.stable-routine-group > summary time { color: var(--forest); font-size: 9px; font-weight: 750; }
.stable-routine-group > summary time small { display: block; color: var(--muted); font-size: 7px; }
.stable-routine-group > summary > span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.stable-routine-group > summary > span svg { width: 15px; }
.stable-routine-group > summary div { min-width: 0; }
.stable-routine-group > summary div small { display: block; color: var(--muted); font-size: 7px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.stable-routine-group > summary strong { display: block; margin-top: 2px; font-size: 10px; }
.stable-routine-group > summary p { margin: 3px 0 0; color: var(--muted); font-size: 7.5px; line-height: 1.4; }
.stable-routine-group > summary > b { color: var(--muted); transition: transform .2s ease; }
.stable-routine-group > summary > b svg { width: 14px; }
.stable-routine-group[open] > summary > b { transform: rotate(90deg); }
.stable-routine-group-detail { padding: 11px; border-top: 1px solid var(--line); background: white; }
.stable-routine-group-actions { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stable-routine-group-actions span { color: var(--muted); font-size: 8px; font-weight: 750; }
.stable-routine-group-actions button { min-height: 30px; padding: 0 9px; border: 1px solid #c9d6cc; border-radius: 8px; display: flex; align-items: center; gap: 5px; color: var(--forest); background: var(--white); cursor: pointer; font-size: 7.5px; font-weight: 750; }
.stable-routine-group-actions button svg { width: 12px; }
.stable-routine-horses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.stable-routine-horses button { min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 8px; color: inherit; background: #f8f9f6; text-align: left; cursor: pointer; }
.stable-routine-horses button span { min-width: 48px; color: var(--muted); font-size: 7px; }
.stable-routine-horses button strong { overflow: hidden; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.routine-lots-panel { margin-top: 16px; }
.routine-lot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.routine-lot-grid > .stable-section-empty, .routine-lot-grid > .routine-lot-empty { grid-column: 1 / -1; }
.routine-lot-card { min-width: 0; padding: 17px; border: 1px solid #d2ddd5; border-radius: 17px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; background: #fff; box-shadow: 0 5px 18px rgba(25,58,45,.045); }
.routine-lot-card::before { width: 4px; position: absolute; inset: 0 auto 0 0; content: ''; background: #7d9a84; }
.routine-lot-card.inactive { opacity: .68; background: #f2f3f0; }
.routine-lot-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.routine-lot-card-head > div { min-width: 0; }
.routine-lot-type { color: #8a5c45; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.routine-lot-card h3 { margin: 4px 0 0; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.routine-lot-card-head p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.routine-lot-status { flex: 0 0 auto; padding: 5px 7px; border-radius: 999px; color: #356348; background: #e5f2e9; font-size: 7px; }
.routine-lot-card.inactive .routine-lot-status { color: #6d716d; background: #e2e4e0; }
.routine-lot-time { padding: 12px 13px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--forest); background: #edf4ec; }
.routine-lot-time strong { font-size: 16px; letter-spacing: -.02em; }
.routine-lot-time span { color: #587164; font-size: 8px; text-align: right; }
.routine-lot-card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.routine-lot-card dl div { min-width: 0; padding: 9px 10px; border-radius: 10px; background: #f5f7f3; }
.routine-lot-card dt { color: var(--muted); font-size: 7px; }
.routine-lot-card dd { margin: 3px 0 0; overflow: hidden; font-size: 9px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.routine-lot-horse-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.routine-lot-horse-head strong { font-size: 8.5px; }
.routine-lot-horse-head span { color: var(--muted); font-size: 7px; }
.routine-lot-horses { min-height: 29px; display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-start; }
.routine-lot-horses span { padding: 5px 8px; border: 1px solid #d8e2da; border-radius: 999px; color: var(--forest); background: #f7faf6; font-size: 7px; font-weight: 750; }
.routine-lot-horses span.more { color: #785b43; border-color: #eadccf; background: #fff7ef; }
.routine-lot-horses em { color: var(--muted); font-size: 8px; font-style: normal; }
.routine-lot-card footer { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.routine-lot-card footer button { min-height: 38px; padding: 0 10px; border: 1px solid #c5d2c8; border-radius: 10px; color: var(--forest); background: #fff; cursor: pointer; font-size: 8px; font-weight: 780; }
.routine-lot-card footer button.primary { color: white; border-color: var(--forest); background: var(--forest); }
.routine-lot-selection { margin: 0; padding: 15px; border: 1px solid #d4ded6; border-radius: 15px; background: #f7f9f5; }
.routine-lot-selection legend { padding: 0 5px; color: var(--ink); font-size: 9px; font-weight: 800; }
.routine-lot-selection > p { margin: 0 0 11px; display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.routine-lot-selection > p svg { width: 15px; flex: 0 0 auto; color: var(--forest); }
.routine-lot-selection > div:last-child { max-height: 280px; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.routine-lot-horse-choice { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: flex-start; gap: 8px; background: white; cursor: pointer; }
.routine-lot-horse-choice.assigned { border-color: #dac8ae; background: #fffaf1; }
.routine-lot-horse-choice input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--forest); }
.routine-lot-horse-choice span { min-width: 0; }
.routine-lot-horse-choice strong, .routine-lot-horse-choice small { display: block; }
.routine-lot-horse-choice strong { font-size: 9px; }
.routine-lot-horse-choice small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.35; }
.routine-lot-transfer-note { margin-bottom: 9px; padding: 9px 10px; border: 1px solid #e2c69e; border-radius: 10px; display: flex; align-items: flex-start; gap: 8px; color: #704e24; background: #fff6e8; font-size: 8px; line-height: 1.4; }
.routine-lot-transfer-note[hidden] { display: none; }
.routine-lot-transfer-note svg { width: 15px; flex: 0 0 auto; }
.routine-lot-transfer-note strong { display: block; margin-bottom: 2px; }
.routine-lot-no-horses { grid-column: 1 / -1; padding: 16px; color: var(--muted); text-align: center; font-size: 8px; }
.placement-approval-summary { padding: 13px; border-radius: 14px; display: flex; align-items: center; gap: 11px; color: var(--forest); background: var(--sage); }
.placement-approval-summary > svg { width: 24px; flex: 0 0 auto; }
.placement-approval-summary strong, .placement-approval-summary span { display: block; }
.placement-approval-summary strong { font-size: 11px; }
.placement-approval-summary span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.placement-approval-note { padding: 11px; border: 1px solid #c6dccd; border-radius: 12px; display: flex; align-items: flex-start; gap: 9px; color: #315c40; background: #eff8f1; font-size: 8px; line-height: 1.45; }
.placement-approval-note svg { width: 17px; flex: 0 0 auto; }
.placement-approval-note strong { display: block; margin-bottom: 2px; }
.quarantine-intake-choice { padding: 13px; border: 1px solid #c9d9cd; border-radius: 14px; display: grid; gap: 10px; background: #f5faf6; }
.quarantine-intake-choice > strong { color: var(--forest); font-size: 11px; }
.quarantine-intake-choice > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quarantine-intake-choice label { min-height: 42px; padding: 9px 11px; border: 1px solid #c8d6cc; border-radius: 11px; display: flex; align-items: center; gap: 8px; background: var(--white); font-size: 10px; font-weight: 800; cursor: pointer; }
.quarantine-intake-choice label:has(input:checked) { border-color: var(--forest); color: var(--forest); background: #eaf4ec; }
.quarantine-intake-choice small, .quarantine-safety-note { color: var(--muted); font-size: 8px; line-height: 1.45; }
.quarantine-intake-details { display: grid; gap: 12px; }
.quarantine-intake-details[hidden] { display: none; }
.quarantine-date-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quarantine-explicit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quarantine-explicit-grid fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 8px; background: var(--surface-soft); }
.quarantine-explicit-grid legend { padding: 0 5px; color: var(--forest); font-size: 9px; font-weight: 850; }
.quarantine-explicit-grid label { display: flex; align-items: center; gap: 7px; font-size: 9px; }
.quarantine-explicit-grid textarea { width: 100%; min-height: 58px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; font: inherit; font-size: 9px; }
.quarantine-safety-note { margin: 0; padding: 10px; border-radius: 11px; display: flex; align-items: flex-start; gap: 8px; color: #6b5834; background: #fff7e7; }
.quarantine-safety-note svg { width: 15px; flex: 0 0 auto; }
.horse-quarantine-panel { padding: 15px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-color: #d8c58f; background: linear-gradient(135deg, #fffaf0, #fff); }
.horse-quarantine-panel.not_required, .horse-quarantine-panel.completed { border-color: #cbd9ce; background: linear-gradient(135deg, #f1f8f3, #fff); }
.horse-quarantine-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #76591f; background: #fff0c9; }
.horse-quarantine-panel.not_required .horse-quarantine-icon, .horse-quarantine-panel.completed .horse-quarantine-icon { color: var(--forest); background: var(--sage); }
.horse-quarantine-icon svg { width: 19px; }
.horse-quarantine-panel > div { min-width: 0; display: grid; gap: 3px; }
.horse-quarantine-panel small { color: var(--clay); font-size: 7px; font-weight: 850; letter-spacing: .08em; }
.horse-quarantine-panel h3 { margin: 0; font-family: var(--serif); font-size: 18px; }
.horse-quarantine-panel p, .horse-quarantine-panel em { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.horse-quarantine-panel em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quarantine-detail-summary { padding: 14px; border-radius: 14px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; background: #fff7e7; }
.quarantine-detail-summary.not_required, .quarantine-detail-summary.completed { background: #eff7f1; }
.quarantine-detail-summary > span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #76591f; background: rgba(255,255,255,.75); }
.quarantine-detail-summary > span svg { width: 19px; }
.quarantine-detail-summary small, .quarantine-detail-summary strong, .quarantine-detail-summary p { display: block; }
.quarantine-detail-summary small { color: var(--clay); font-size: 7px; font-weight: 850; }
.quarantine-detail-summary strong { margin-top: 2px; font-size: 14px; }
.quarantine-detail-summary p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.quarantine-detail-note { padding: 12px; border-left: 3px solid var(--clay); border-radius: 0 10px 10px 0; background: var(--surface-soft); }
.quarantine-detail-note strong { font-size: 9px; }
.quarantine-detail-note p { margin: 5px 0 0; font-size: 9px; line-height: 1.5; }
.quarantine-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quarantine-detail-grid article { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.quarantine-detail-grid article > small { color: var(--forest); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.quarantine-detail-grid ul { margin: 9px 0 0; padding-left: 17px; display: grid; gap: 6px; }
.quarantine-detail-grid li { font-size: 9px; }
.quarantine-detail-grid li.done { color: var(--muted); text-decoration: line-through; }
.quarantine-detail-grid li svg { width: 13px; margin-right: 5px; vertical-align: middle; }
.quarantine-detail-grid li span small { display: block; margin-left: 19px; color: var(--muted); font-size: 7px; text-decoration: none; }
.quarantine-detail-grid p { margin: 9px 0 0; color: var(--muted); font-size: 9px; }
.quarantine-detail-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.quarantine-audit { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.quarantine-audit summary { padding: 11px 12px; cursor: pointer; font-size: 9px; font-weight: 800; }
.quarantine-audit > div { padding: 9px 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.quarantine-audit strong, .quarantine-audit span { font-size: 8px; }
.quarantine-audit span { color: var(--muted); }
.stable-horse-shortcuts { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.stable-horse-shortcuts > span { margin-right: 2px; color: var(--muted); font-size: 8px; font-weight: 700; }
.stable-horse-shortcuts button { min-height: 32px; padding: 0 10px; border: 1px solid #c9d6cc; border-radius: 9px; display: inline-flex; align-items: center; gap: 4px; color: var(--forest); background: #fff; font-size: 8px; font-weight: 750; cursor: pointer; }
.stable-horse-shortcuts button svg { width: 12px; }
.stable-routine-row { padding: 11px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 58px 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; background: #fdfdfb; }
.stable-routine-row time { color: var(--forest); font-size: 9px; font-weight: 750; }
.stable-routine-row time small { color: var(--muted); font-size: 7px; }
.stable-routine-row > span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.stable-routine-row > span svg { width: 15px; }
.stable-routine-row strong { display: block; font-size: 9px; }
.stable-routine-row p { margin: 3px 0 0; color: var(--muted); font-size: 7px; }
.stable-section-empty { min-height: 110px; padding: 18px; border: 1px dashed #d1d6d1; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--muted); background: #fafbf8; text-align: center; }
.stable-section-empty strong { color: var(--ink); font-size: 9px; }
.stable-section-empty span { max-width: 420px; font-size: 8px; line-height: 1.5; }
.stable-feeding-panel { margin-top: 16px; }
.stable-feed-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.stable-feed-source { width: fit-content; padding: 4px 6px; border-radius: 6px; color: #52675c; background: #edf1eb; font-size: 7px; font-weight: 750; }
.stable-feed-source.stable { color: #365a6b; background: #e4eff3; }
.stable-feed-row { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(190px, 1fr) minmax(280px, 1.4fr) auto; align-items: center; gap: 13px; }
.stable-feed-row:first-child { border-top: 0; }
.stable-feed-row.low-stock { border-left: 3px solid #c27258; padding-left: 10px; }
.stable-feed-row > div:first-child { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.stable-feed-row strong { overflow: hidden; max-width: 100%; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.stable-feed-row > div:first-child > small { color: var(--muted); font-size: 7px; }
.stable-feed-row.private-feed-summary { grid-template-columns: minmax(190px, 1fr) auto; padding: 13px 12px; border: 1px solid #dfe4df; border-radius: 12px; background: #fafbf9; }
.private-feed-lock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; font-weight: 700; }
.private-feed-lock svg { width: 14px; }
.private-stock-summary { min-height: 92px; padding: 16px; border: 1px solid #dfe4df; border-radius: 13px; display: flex; align-items: center; gap: 12px; color: var(--muted); background: #fafbf9; }
.private-stock-summary > svg { width: 22px; flex: 0 0 auto; color: var(--forest); }
.private-stock-summary strong, .private-stock-summary span { display: block; }
.private-stock-summary strong { color: var(--ink); font-size: 10px; }
.private-stock-summary span { margin-top: 4px; font-size: 8px; line-height: 1.5; }
.stable-feed-meals { display: flex; flex-wrap: wrap; gap: 6px; }
.stable-feed-meals > span { min-width: 82px; padding: 7px 8px; border-radius: 9px; display: flex; flex-direction: column; gap: 2px; background: #f1f3ef; }
.stable-feed-meals small { color: var(--muted); font-size: 7px; }
.stable-feed-meals b { font-size: 9px; }
.stable-feed-pending-list { display: grid; gap: 8px; }
.stable-feed-pending-list > article { padding: 11px 12px; border: 1px dashed #b8cdbf; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f7fbf8; }
.stable-feed-pending-list > article > div { min-width: 0; display: grid; gap: 4px; }
.stable-feed-pending-list strong { font-size: 10px; }
.stable-feed-pending-list small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.stable-feed-pending-list button { min-height: 36px; padding: 0 11px; border: 1px solid #aac4b2; border-radius: 9px; color: var(--forest); background: #fff; cursor: pointer; font-size: 8px; font-weight: 750; white-space: nowrap; }
.stable-assignment-note { padding: 11px; border-radius: 10px; color: #5f6c65; background: #f0f2ee; font-size: 8px; }
.stable-feed-selection { padding: 13px; border: 1px solid #c9d9cd; border-radius: 13px; display: grid; gap: 11px; background: #f5faf6; }
.stable-feed-selection[hidden] { display: none; }
.stable-feed-selection > div:first-child strong, .stable-feed-selection > div:first-child span { display: block; }
.stable-feed-selection > div:first-child strong { color: var(--forest); font-size: 10px; }
.stable-feed-selection > div:first-child span { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.stable-supply-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.stable-supply-choice { min-height: 49px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 9px; background: #fff; cursor: pointer; }
.stable-supply-choice:has(input:checked) { border-color: #88aa93; background: #edf6ef; }
.stable-supply-choice input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--forest); }
.stable-supply-choice span { min-width: 0; }
.stable-supply-choice strong, .stable-supply-choice small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stable-supply-choice strong { font-size: 9px; }
.stable-supply-choice small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.stable-supply-empty { padding: 13px; border: 1px dashed #d8bda9; border-radius: 10px; color: #845a42; background: #fff8f1; font-size: 8px; line-height: 1.45; }
.boarding-price-suggestion { margin-top: 6px; display: flex !important; align-items: flex-start; gap: 5px; color: #49715a !important; line-height: 1.4; }
.boarding-price-suggestion svg { width: 13px; flex: 0 0 auto; }

.routine-group-detail { padding: 13px; border: 1px solid #d4e1d6; border-radius: 14px; display: flex; align-items: center; gap: 12px; background: #f5f9f5; }
.routine-group-detail-icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.routine-group-detail-icon svg { width: 20px; }
.routine-group-detail > div:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.routine-group-detail span, .routine-group-detail small { color: var(--muted); font-size: 8px; }
.routine-group-detail strong { font-size: 13px; }
.routine-group-horses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.routine-group-horses button { min-height: 45px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; gap: 8px; color: var(--ink); background: var(--white); cursor: pointer; text-align: left; }
.routine-group-horses button:disabled { cursor: default; opacity: .65; }
.routine-group-horses button svg { width: 15px; flex: 0 0 auto; color: var(--forest); }
.routine-group-horses button svg:last-child { width: 12px; margin-left: auto; color: var(--muted); }
.routine-group-horses button span { overflow: hidden; font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.routine-group-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.module-controls { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.module-controls .filter-search { flex: 1; }
.category-select { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--white); outline: none; font-size: 10px; }
.module-summary { margin-bottom: 18px; color: var(--muted); font-size: 10px; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.module-card { min-height: 150px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); display: flex; flex-direction: column; cursor: pointer; transition: .18s ease; }
.module-card:hover { transform: translateY(-2px); border-color: #bcc9bf; box-shadow: 0 12px 30px rgba(21,59,50,.07); }
.module-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.module-card-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.module-card-icon svg { width: 17px; height: 17px; }
.module-status { padding: 4px 6px; border-radius: 6px; color: #4e7158; background: #e7f1e8; font-size: 7px; }
.module-status.plan { color: #86652e; background: #f7ecd6; }
.module-card h3 { margin: 17px 0 5px; font-size: 12px; line-height: 1.3; }
.module-card p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.module-card small { margin-top: auto; padding-top: 13px; color: #989e9b; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.module-detail-hero { padding: 34px; border-radius: 24px; color: var(--white); background: var(--forest); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.module-detail-hero .module-card-icon { width: 52px; height: 52px; color: var(--forest); background: var(--sage); }
.module-detail-hero h1 { margin: 20px 0 10px; font-size: 38px; letter-spacing: -.05em; }
.module-detail-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.65; }
.module-phase { padding: 8px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; color: rgba(255,255,255,.7); font-size: 8px; }
.feature-list { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-card { min-height: 130px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.feature-card span { width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; color: var(--forest); background: var(--sage); font-size: 9px; font-weight: 800; }
.feature-card h3 { margin: 14px 0 7px; font-size: 11px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }

.modal { width: min(580px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 22px; background: var(--paper); box-shadow: 0 30px 90px rgba(6,22,18,.28); }
.modal::backdrop, .search-dialog::backdrop, .notification-dialog::backdrop { background: rgba(7,25,20,.54); backdrop-filter: blur(4px); }
.modal form { margin: 0; }
.modal-head { padding: 22px 23px 17px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; }
.modal-head h2 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.04em; }
.close-button::before, .close-button::after { content: ""; width: 14px; height: 1.5px; position: absolute; background: var(--ink); transform: rotate(45deg); }
.close-button::after { transform: rotate(-45deg); }
.modal-body { max-height: 65vh; padding: 22px 23px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-body > .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.field input, .field select, .field textarea { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--white); outline: none; font-size: 11px; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #91ab9b; box-shadow: 0 0 0 3px rgba(21,59,50,.07); }
.field-invalid > input, .field-invalid > select, .field-invalid > textarea, .field-invalid .feed-unit-input, .field-invalid .feed-time-input { border-color: #c45b4e; background: #fff8f6; box-shadow: 0 0 0 2px rgba(196,91,78,.13); }
.field[hidden], [data-event-time-field][hidden] { display: none; }
.field-help { color: var(--muted); font-size: 7px; }
.event-all-day { min-height: 43px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.event-all-day input { width: 17px; height: 17px; accent-color: var(--forest); }
.event-all-day span { display: flex; flex-direction: column; gap: 2px; }
.event-all-day strong { font-size: 9px; }
.event-all-day small { color: var(--muted); font-size: 7px; }
.modal-section-title { padding-top: 4px; display: flex; flex-direction: column; gap: 3px; }
.modal-section-title:not(:first-child) { margin-top: 6px; padding-top: 15px; border-top: 1px solid var(--line); }
.modal-section-title strong { color: var(--forest); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.modal-section-title span { color: var(--muted); font-size: 8px; }
.modal-feedback { min-height: 48px; padding: 12px 14px; border: 1px solid #e1c2b8; border-radius: 13px; position: sticky; top: 0; z-index: 5; grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; color: #7f3d31; background: #fff1ed; box-shadow: 0 10px 26px rgba(84,34,26,.14); font-size: 9px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.modal-feedback::before { content: "!"; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; color: #fff; background: #a54f40; font-size: 12px; font-weight: 900; }
.modal-feedback.success, .modal-feedback[data-kind="success"] { color: #255d41; border-color: #b9d8c4; background: #edf8f0; }
.modal-feedback.success::before, .modal-feedback[data-kind="success"]::before { content: "✓"; background: #397552; }
.modal-feedback[hidden] { display: none !important; }
.horse-location-manual { padding: 13px; border: 1px solid #d7e2da; border-radius: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #f5f8f4; }
.horse-location-manual[hidden] { display: none; }
.stable-catalog-attribution { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: -4px; color: #697a73; font-size: 8px; line-height: 1.45; }
.stable-catalog-attribution a { flex: 0 0 auto; color: #2f6857; font-weight: 750; text-decoration: none; }
.stable-catalog-attribution a:hover { text-decoration: underline; }
.modal-actions { padding: 16px 23px 22px; display: flex; justify-content: flex-end; gap: 9px; }

.search-dialog { width: min(670px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 90px rgba(6,22,18,.28); transform: translateY(-12vh); }
.search-dialog-head { height: 63px; padding: 0 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 11px; }
.search-dialog-head svg { width: 21px; color: var(--muted); }
.search-dialog-head input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search-submit { min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; color: var(--white); background: var(--forest); cursor: pointer; font: inherit; font-size: 8px; font-weight: 800; }
.key-close { min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink); background: var(--white); font: inherit; font-size: 9px; cursor: pointer; white-space: nowrap; }
.key-close:hover, .key-close:focus-visible { border-color: #91ab9b; background: var(--sage); outline: none; box-shadow: 0 0 0 3px rgba(21,59,50,.07); }
.key-close span { font-size: 18px; font-weight: 400; line-height: 1; }
.key-close b { font-size: 9px; }
.search-results { max-height: 420px; padding: 9px; overflow-y: auto; }
.search-empty { padding: 40px 20px; display: flex; flex-direction: column; gap: 7px; color: var(--muted); text-align: center; font-size: 10px; }
.search-empty strong { color: var(--ink); font-size: 12px; }
.search-empty span { line-height: 1.55; }
.search-result { width: 100%; min-height: 54px; padding: 8px 10px; border: 0; border-radius: 11px; display: flex; align-items: center; gap: 10px; background: transparent; cursor: pointer; text-align: left; }
.search-result:hover { background: var(--sage); }
.search-result-icon { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; color: var(--forest); background: var(--white); }
.search-result-icon svg { width: 17px; }
.search-result div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.search-result-category { color: var(--clay); font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.search-result strong { font-size: 10px; }
.search-result small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.search-result-arrow { width: 15px; margin-left: auto; flex: 0 0 auto; color: #9aa59f; }
.search-page-form { margin-bottom: 16px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.search-page-form input { min-width: 0; height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--white); font: inherit; font-size: 14px; }
.search-page-form button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 13px; color: var(--white); background: var(--forest); cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; }
.search-page-results { display: grid; gap: 15px; }
.search-page-group { padding: 15px; }
.search-page-group > header { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-page-group > header h2 { margin: 0; font-family: var(--serif); font-size: 20px; }
.search-page-group > header span { min-width: 25px; height: 25px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; color: var(--forest); background: var(--sage); font-size: 8px; font-weight: 800; }
.search-page-group .search-result { border-top: 1px solid var(--line); border-radius: 0; }
.search-page-group .search-result:first-of-type { border-top: 0; }

.notification-dialog { width: min(480px, calc(100vw - 24px)); max-height: min(700px, calc(100vh - 32px)); padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 90px rgba(6,22,18,.28); }
.notification-dialog-head { padding: 20px 20px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; }
.notification-dialog-head h2 { margin: 3px 0 0; font-size: 24px; }
.emergency-button { border-color: #e3bcb6; color: #923f38; background: #fff8f6; }
.emergency-button:hover, .emergency-button:focus-visible { border-color: #cf8d84; outline: none; background: #fcece8; }
.emergency-button > span { position: absolute; right: -4px; bottom: -4px; padding: 2px 4px; border: 2px solid var(--paper); border-radius: 7px; color: #fff; background: #a9443b; font-size: 6px; font-weight: 850; letter-spacing: .05em; }
.emergency-dialog { width: min(940px, calc(100vw - 28px)); max-height: min(860px, calc(100vh - 28px)); padding: 0; border: 0; border-radius: 23px; overflow: hidden; color: var(--ink); background: var(--paper); box-shadow: 0 30px 90px rgba(6,22,18,.3); }
.emergency-dialog::backdrop { background: rgba(7,25,20,.58); backdrop-filter: blur(5px); }
.emergency-dialog-head { min-height: 82px; padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(251,250,246,.96); }
.emergency-dialog-head h2 { margin: 4px 0 0; font-size: 25px; }
.emergency-dialog-head > div:last-child { display: flex; align-items: center; gap: 9px; }
.emergency-content { max-height: calc(min(860px, 100vh - 28px) - 82px); padding: 21px 22px 30px; overflow-y: auto; overscroll-behavior: contain; }
.emergency-warning { padding: 14px 16px; border: 1px solid #e6b7af; border-radius: 15px; display: flex; align-items: flex-start; gap: 12px; color: #7c3731; background: #fff2ef; }
.emergency-warning > svg { width: 22px; height: 22px; flex: 0 0 auto; }
.emergency-warning > div { display: flex; flex-direction: column; gap: 4px; }
.emergency-warning strong { font-size: 11px; }
.emergency-warning span { font-size: 9px; line-height: 1.5; }
.emergency-location { margin: 13px 2px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); }
.emergency-location span { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 720; }
.emergency-location svg { width: 15px; height: 15px; }
.emergency-location small { font-size: 8px; }
.emergency-section + .emergency-section { margin-top: 27px; }
.emergency-section-head { margin-bottom: 11px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.emergency-section-head h3 { margin: 0; font-size: 16px; }
.emergency-section-head p { max-width: 620px; margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.emergency-section-head > span { min-width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--forest); background: var(--sage); font-size: 9px; font-weight: 800; }
.emergency-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.emergency-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 17px; display: flex; flex-direction: column; gap: 11px; background: var(--white); box-shadow: 0 7px 20px rgba(18,47,38,.035); }
.emergency-card.contract { border-color: #b8d0be; background: #fbfefb; }
.emergency-card-head { display: flex; align-items: flex-start; gap: 10px; }
.emergency-card-head > span { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; color: #8d413a; background: #fae9e6; }
.emergency-card.contract .emergency-card-head > span { color: var(--forest); background: var(--sage); }
.emergency-card-head svg { width: 18px; height: 18px; }
.emergency-card-head > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.emergency-card-head small { color: #8c4b44; font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.emergency-card-head strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.emergency-card-head p { margin: 0; color: var(--muted); font-size: 8px; }
.emergency-capability, .emergency-availability { margin: 0; font-size: 9px; line-height: 1.45; }
.emergency-availability { padding: 8px 9px; border-radius: 10px; display: flex; align-items: flex-start; gap: 6px; color: #576d60; background: #f2f6f1; }
.emergency-availability svg { width: 13px; height: 13px; flex: 0 0 auto; }
.emergency-card-actions { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 7px; }
.emergency-card-actions a { min-height: 48px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--forest); background: #fff; font-size: 9px; font-weight: 770; text-decoration: none; }
.emergency-card-actions a:hover, .emergency-card-actions a:focus-visible { border-color: #a8bfae; outline: none; background: #f1f6f1; }
.emergency-card-actions a.emergency-call { border-color: #9bb7a3; color: #fff; background: var(--forest); justify-content: flex-start; }
.emergency-card-actions svg { width: 17px; height: 17px; flex: 0 0 auto; }
.emergency-call > span { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.emergency-call small { color: rgba(255,255,255,.65); font-size: 6px; text-transform: uppercase; letter-spacing: .07em; }
.emergency-call strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.emergency-card-foot { min-height: 25px; padding-top: 9px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.emergency-source { color: var(--muted); font-size: 7px; line-height: 1.4; }
a.emergency-source:hover { color: var(--forest); }
.emergency-owner-actions { display: flex; gap: 4px; }
.emergency-owner-actions button { min-height: 30px; padding: 0 7px; border: 0; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; color: var(--forest); background: var(--sage); cursor: pointer; font-size: 7px; font-weight: 750; }
.emergency-owner-actions button.danger { color: #963d35; background: #fae9e6; }
.emergency-owner-actions svg { width: 12px; height: 12px; }
.emergency-empty-add, .emergency-empty { min-height: 120px; padding: 16px; border: 1px dashed #b8c6bb; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--forest); background: rgba(255,255,255,.55); text-align: left; }
.emergency-empty-add { width: 100%; cursor: pointer; }
.emergency-empty-add svg { width: 22px; }
.emergency-empty-add span, .emergency-empty { flex-direction: column; }
.emergency-empty-add strong, .emergency-empty strong { font-size: 10px; }
.emergency-empty-add small, .emergency-empty span { color: var(--muted); font-size: 8px; line-height: 1.4; }
.emergency-directory { min-height: 62px; margin-top: 27px; padding: 12px 14px; border: 1px solid #cdd9cf; border-radius: 15px; display: flex; align-items: center; gap: 10px; color: var(--forest); background: #f3f7f2; text-decoration: none; }
.emergency-directory > svg { width: 20px; height: 20px; flex: 0 0 auto; }
.emergency-directory > svg:last-child { margin-left: auto; width: 16px; }
.emergency-directory span { display: flex; flex-direction: column; gap: 3px; }
.emergency-directory strong { font-size: 10px; }
.emergency-directory small { color: var(--muted); font-size: 8px; }
.emergency-loading, .emergency-error { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; color: var(--muted); text-align: center; }
.emergency-loading > svg, .emergency-error > svg { width: 34px; height: 34px; color: #9b4840; }
.emergency-loading strong, .emergency-error strong { color: var(--ink); font-size: 12px; }
.emergency-error span { max-width: 420px; font-size: 9px; line-height: 1.5; }
.emergency-form-note { padding: 11px 12px; border: 1px solid #d2ded4; border-radius: 12px; display: flex; align-items: flex-start; gap: 8px; color: #526c5c; background: #f2f7f2; font-size: 8px; line-height: 1.5; }
.emergency-form-note svg { width: 16px; height: 16px; flex: 0 0 auto; }
.emergency-button.has-active-sos { color: #fff; background: #a52f27; border-color: #8f241e; animation: sosPulse 2s ease-in-out infinite; }
@keyframes sosPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(165,47,39,.22); } 50% { box-shadow: 0 0 0 7px rgba(165,47,39,0); } }
.crisis-mode { margin-bottom: 24px; padding: 18px; border: 2px solid #b74338; border-radius: 19px; background: linear-gradient(145deg, #fff7f4, #fff); box-shadow: 0 12px 28px rgba(135,45,37,.08); }
.crisis-mode-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.crisis-mode-head small { color: #a03229; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.crisis-mode-head h2 { margin: 3px 0 4px; font-size: 21px; }
.crisis-mode-head p { max-width: 580px; margin: 0; color: #744b47; font-size: 9px; line-height: 1.5; }
.crisis-start { min-height: 58px; padding: 0 18px; border: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: #fff; background: #a9342a; cursor: pointer; font: inherit; font-size: 10px; font-weight: 850; }
.crisis-start svg { width: 21px; height: 21px; }
.crisis-active-card { margin-top: 16px; padding: 16px; border: 1px solid #d99b94; border-radius: 17px; display: grid; gap: 14px; background: #fff; }
.crisis-active-card > header { display: flex; align-items: flex-start; gap: 11px; }
.crisis-active-card > header > span { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; color: #fff; background: #a9342a; }
.crisis-active-card > header svg { width: 22px; }
.crisis-active-card > header small { color: #a9342a; font-size: 7px; font-weight: 900; letter-spacing: .09em; }
.crisis-active-card > header h3 { margin: 3px 0; font-size: 15px; }
.crisis-active-card > header p { margin: 0; color: var(--muted); font-size: 8px; }
.crisis-primary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.crisis-primary-actions > a, .crisis-primary-actions > button { min-height: 62px; padding: 9px 13px; border: 1px solid #d6aca7; border-radius: 14px; display: flex; align-items: center; gap: 10px; color: #8c3029; background: #fff7f5; cursor: pointer; text-align: left; text-decoration: none; }
.crisis-primary-actions > .crisis-call { border-color: #8c3029; color: #fff; background: #a9342a; }
.crisis-primary-actions svg { width: 23px; height: 23px; flex: 0 0 auto; }
.crisis-primary-actions span { display: flex; flex-direction: column; gap: 2px; }
.crisis-primary-actions strong { font-size: 11px; }
.crisis-primary-actions small { color: inherit; opacity: .75; font-size: 7px; }
.crisis-secondary-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.crisis-secondary-actions button { min-height: 48px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--forest); background: #fff; cursor: pointer; font: inherit; font-size: 8px; font-weight: 780; }
.crisis-secondary-actions svg { width: 16px; }
.crisis-guidance { border: 1px solid #e6c5c1; border-radius: 13px; background: #fffaf8; }
.crisis-guidance summary { min-height: 46px; padding: 10px 12px; display: flex; align-items: center; gap: 7px; color: #842f28; cursor: pointer; font-size: 9px; font-weight: 800; }
.crisis-guidance summary svg { width: 16px; }
.crisis-guidance > div, .crisis-guidance > ol { margin-inline: 13px; }
.crisis-disclaimer { padding: 10px; border-radius: 10px; color: #7e3933; background: #fcece9; font-size: 8px; line-height: 1.5; }
.crisis-disclaimer p { margin: 4px 0 0; }
.crisis-guidance ol { padding-left: 18px; color: #4e5f56; font-size: 8.5px; line-height: 1.55; }
.crisis-sources { padding: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.crisis-sources a { color: var(--forest); font-size: 7px; font-weight: 700; }
.crisis-timeline { display: grid; gap: 8px; }
.crisis-timeline > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.crisis-timeline > div:first-child strong { font-size: 11px; }
.crisis-timeline > div:first-child span { color: var(--muted); font-size: 7px; }
.crisis-timeline article { padding: 9px 10px; border-left: 3px solid #bd6b63; border-radius: 0 10px 10px 0; display: grid; grid-template-columns: 92px 1fr auto; align-items: start; gap: 8px; background: #f8f5f2; }
.crisis-timeline time, .crisis-timeline small { color: var(--muted); font-size: 7px; }
.crisis-timeline p { margin: 0; font-size: 8.5px; line-height: 1.45; }
.crisis-empty { margin: 0; color: var(--muted); font-size: 8px; }
.crisis-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.crisis-photo-grid img { width: 100%; aspect-ratio: 4/3; border-radius: 10px; object-fit: cover; }
.crisis-close-record { min-height: 42px; border: 1px solid #d7b3af; border-radius: 11px; color: #8c3029; background: #fff; cursor: pointer; font: inherit; font-size: 8px; font-weight: 780; }
.crisis-form-warning { padding: 13px; border: 1px solid #d5958e; border-radius: 14px; display: flex; align-items: flex-start; gap: 10px; color: #7f2d26; background: #fff1ee; }
.crisis-form-warning > svg { width: 24px; height: 24px; flex: 0 0 auto; }
.crisis-form-warning div { display: flex; flex-direction: column; gap: 4px; }
.crisis-form-warning strong { font-size: 11px; }
.crisis-form-warning span, .crisis-location-privacy { font-size: 8px; line-height: 1.5; }
.crisis-type-grid { padding: 12px; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.crisis-type-grid legend { padding: 0 5px; font-size: 9px; font-weight: 800; }
.crisis-type-grid label { min-height: 47px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; gap: 8px; background: #fff; cursor: pointer; font-size: 8.5px; font-weight: 700; }
.crisis-type-grid input { width: 18px; height: 18px; accent-color: #a9342a; }
.crisis-location-privacy { margin: -4px 0 0; color: var(--muted); }
.crisis-location-capture.captured { border-color: #8aad95; color: var(--forest); background: #eef7ef; }
.crisis-submit { min-height: 56px; font-size: 11px; }
.horse-sos-section { margin-bottom: 24px; padding: 17px; border: 1px solid #e1aaa3; border-radius: 18px; background: #fff8f6; }
.horse-sos-section > .button { margin-bottom: 12px; }
.sos-local-opt-in, .sos-confirm { padding: 12px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: flex-start; gap: 10px; background: #fff; }
.sos-local-opt-in input, .sos-confirm input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--forest); }
.sos-local-opt-in span, .sos-confirm span { display: flex; flex-direction: column; gap: 3px; }
.sos-local-opt-in strong, .sos-confirm strong { font-size: 10px; }
.sos-local-opt-in small, .sos-confirm small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.horse-sos-list { margin-top: 12px; display: grid; gap: 10px; }
.horse-sos-card { padding: 14px; border: 1px solid #e0aea7; border-radius: 15px; display: grid; gap: 9px; background: #fff; }
.horse-sos-card-photo { width: min(100%, 180px); height: 118px; border-radius: 13px; object-fit: cover; background: var(--soft); }
.horse-sos-map { width: 100%; height: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); }
.sos-public-page { min-height: 100vh; margin: 0; background: #f7f5ef; color: #173d32; font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.sos-public-main { width: min(100%, 716px); margin: 0 auto; padding: 28px 18px; box-sizing: border-box; }
.sos-public-card { overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 16px 50px #173d3220; }
.sos-public-hero { display: block !important; width: 100% !important; height: 240px !important; max-height: 240px !important; object-fit: cover !important; background: #e8eee9; }
.sos-public-content { padding: 24px; }
.sos-public-content h1 { margin: 10px 0 14px; color: #173d32; font-size: 31px; line-height: 1.12; }
.sos-public-status { padding: 12px 14px; border-radius: 12px; background: #ffe2dd; color: #8b2920; font-weight: 800; }
.sos-public-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 15px; margin: 0; }
.sos-public-facts dt { font-weight: 800; }
.sos-public-facts dd { margin: 0; }
.sos-public-map { position: relative; display: block !important; width: 100%; aspect-ratio: 16 / 9; margin-top: 16px; overflow: hidden; border: 1px solid #d7dfda; border-radius: 14px; background: #e8eee9; }
.sos-public-map > img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.sos-public-map-marker { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 2px 3px #0007); }
.sos-public-map-marker circle { fill: #c43d2f; stroke: #fff; stroke-width: 1.25; }
.sos-public-map span { position: absolute; right: 6px; bottom: 5px; margin: 0; padding: 3px 5px; border-radius: 5px; color: #173d32; background: #ffffffe8; font-size: 10px; }
.sos-public-button { display: block; margin-top: 12px; padding: 14px; border-radius: 12px; text-align: center; background: #0b4437; color: #fff; text-decoration: none; font-weight: 800; }
.sos-public-button:hover { color: #fff; }
.sos-public-share { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0 0; }
.sos-public-share a, .sos-public-notice a { color: #0b4437; font-weight: 700; }
.sos-public-notice { display: block; margin-top: 18px; color: #63756d; }
.sos-public-resolved { display: grid; place-items: center; }
.sos-public-message { width: min(100% - 36px, 560px); margin: 18px; padding: 32px; box-sizing: border-box; border-radius: 22px; background: #fff; box-shadow: 0 16px 50px #173d3220; text-align: center; }
.sos-public-message h1 { margin: 0 0 8px; color: #173d32; }
.sos-public-message p { margin: 0; color: #63756d; }
.sos-map-link { width: fit-content; display: inline-flex; align-items: center; gap: 6px; color: var(--forest); font-size: 8.5px; font-weight: 800; text-decoration: none; }
.sos-map-link svg { width: 15px; height: 15px; }
.horse-sos-card.found { border-color: #b9cfbe; background: #f8fcf8; }
.horse-sos-card > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.horse-sos-card > div:first-child span { color: #9c3c34; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.horse-sos-card.found > div:first-child span { color: var(--forest); }
.horse-sos-card strong { font-size: 13px; }
.horse-sos-card small, .horse-sos-card p { margin: 0; color: var(--muted); font-size: 8.5px; line-height: 1.5; }
.horse-sos-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.horse-sos-actions .button { min-height: 42px; }
.sos-photo-picker, .sos-location-picker { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfb; }
.sos-photo-picker legend { padding: 0 6px; font-weight: 800; }
.sos-photo-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.sos-photo-options label { display: grid; grid-template-columns: auto 62px 1fr; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.sos-photo-options label.disabled { opacity: .55; cursor: not-allowed; }
.sos-photo-options img { width: 62px; height: 62px; object-fit: cover; border-radius: 12px; background: var(--soft); }
.sos-photo-options span, .sos-location-picker { display: grid; gap: 4px; }
.sos-photo-options small, .sos-location-picker p, .sos-location-picker small { margin: 0; color: var(--muted); line-height: 1.45; }
.sos-location-picker > div:not(.sos-map) { display: flex; flex-wrap: wrap; gap: 8px; margin: 7px 0; }
.sos-location-picker [data-sos-location-status] { display: flex; align-items: center; gap: 7px; }
.sos-location-picker [data-sos-location-status] svg { width: 17px; height: 17px; color: var(--green); }
.sos-map { width: 100%; height: 320px; margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.sos-map-error { padding: 18px; color: var(--muted); }
.equori-map-fallback { position: absolute; z-index: 1001; left: 12px; right: 12px; bottom: 12px; display: block; padding: 10px 12px; border: 1px solid #d4ddd8; border-radius: 10px; color: var(--forest); background: #fffffff2; box-shadow: 0 6px 20px #173d3226; font-size: 12px; font-weight: 800; line-height: 1.35; text-align: center; text-decoration: none; }
@media (max-width: 640px) { .sos-photo-options { grid-template-columns: 1fr; } .sos-map { height: 260px; } .sos-location-picker > div:not(.sos-map) .button { width: 100%; } }
.sos-form-warning { padding: 13px; border: 1px solid #e1aaa3; border-radius: 14px; display: flex; gap: 10px; color: #842f28; background: #fff3f0; }
.sos-form-warning > svg { width: 22px; flex: 0 0 auto; }
.sos-form-warning div { display: flex; flex-direction: column; gap: 4px; }
.sos-form-warning strong { font-size: 11px; }
.sos-form-warning span { font-size: 9px; line-height: 1.45; }
.sos-scopes { padding: 13px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 9px; }
.sos-scopes legend { padding: 0 5px; font-size: 9px; font-weight: 800; }
.sos-scopes label { display: flex; align-items: center; gap: 8px; font-size: 9px; }
.sos-scopes small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.sos-public-preview { overflow: hidden; border: 1px solid #e1aaa3; border-radius: 18px; background: #fff; }
.sos-preview-photo { width: 100%; max-height: 220px; object-fit: cover; }
.sos-public-preview .horse-sos-map { margin-top: 13px; }
.sos-public-preview .sos-map-link { margin-top: 8px; padding: 0; color: var(--forest); background: transparent; text-align: left; }
.sos-public-preview > div { padding: 17px; }
.sos-public-preview span { color: #a1362d; font-size: 8px; font-weight: 850; letter-spacing: .09em; }
.sos-public-preview h3 { margin: 4px 0 12px; font-size: 24px; }
.sos-public-preview p { margin: 7px 0; font-size: 9px; line-height: 1.5; }
.sos-public-preview a { display: block; margin-top: 12px; padding: 12px; border-radius: 10px; color: #fff; background: var(--forest); text-align: center; text-decoration: none; font-weight: 800; }
.sos-privacy-note { margin: 0; padding: 10px 12px; border-radius: 11px; color: var(--muted); background: #f1f5f1; font-size: 8px; line-height: 1.5; }
.sos-confirm.danger { border-color: #dfa8a1; background: #fff5f2; }
.notification-list { max-height: min(570px, calc(100vh - 145px)); padding: 9px; overflow-y: auto; }
.notification-item { width: 100%; padding: 6px; border: 0; border-radius: 13px; color: var(--ink); background: transparent; }
.notification-item:hover { background: var(--sage); }
.notification-open { width: 100%; min-height: 54px; padding: 4px; border: 0; display: flex; align-items: center; gap: 11px; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.notification-open > span { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; color: var(--forest); background: var(--white); }
.notification-item.warning .notification-open > span { color: #9c4f30; background: #fff0e8; }
.notification-open > span svg { width: 18px; }
.notification-open > div { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 4px; }
.notification-open strong { font-size: 10px; }
.notification-open small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.notification-open > svg { width: 15px; flex: 0 0 auto; color: #9aa59f; }
.notification-actions { padding: 0 4px 5px 53px; display: flex; gap: 7px; }
.notification-actions button { padding: 5px 8px; border: 1px solid #cfd9d2; border-radius: 7px; color: var(--forest); background: var(--white); cursor: pointer; font-size: 7px; font-weight: 750; }
.notification-actions button:last-child { color: var(--muted); }
.notification-actions button:hover { border-color: #8ea597; }
.notification-empty { padding: 48px 25px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); text-align: center; }
.notification-empty svg { width: 30px; color: var(--forest); }
.notification-empty strong { color: var(--ink); font-size: 12px; }
.notification-empty span { max-width: 300px; font-size: 9px; line-height: 1.55; }

.toast { min-width: 230px; max-width: calc(100vw - 30px); position: fixed; right: 24px; bottom: 24px; z-index: 100; padding: 13px 16px; border-radius: 12px; color: var(--white); background: var(--forest-dark); box-shadow: var(--shadow); font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.bottom-nav, .scrim { display: none; }

.ori-fab { min-width: 82px; height: 58px; padding: 0 15px 0 11px; position: fixed; right: 24px; bottom: 24px; z-index: 68; border: 2px solid rgba(255,255,255,.84); border-radius: 19px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: #d77757; box-shadow: 0 17px 42px rgba(151,70,43,.3); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.ori-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(151,70,43,.38); }
.ori-fab[data-action="community-chat"] { color: #fff; background: linear-gradient(145deg,#3478d4,#225aa8); box-shadow: 0 17px 42px rgba(34,90,168,.34); }
.ori-fab[data-action="community-chat"]:hover { box-shadow: 0 20px 48px rgba(34,90,168,.44); }
.ori-fab[data-action="community-chat"] svg { width: 25px; height: 25px; stroke-width: 2.2; }
.ori-fab img { color: var(--bone); }
.ori-fab span { font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.ori-backdrop { position: fixed; inset: 0; z-index: 69; background: rgba(7,25,20,.34); backdrop-filter: blur(2px); }
.ori-panel { width: min(430px, calc(100vw - 28px)); max-height: calc(100vh - 114px); position: fixed; right: 22px; bottom: 94px; z-index: 70; border: 1px solid rgba(255,255,255,.66); border-radius: 25px; overflow: hidden; color: var(--ink); background: var(--paper); box-shadow: 0 28px 90px rgba(7,25,20,.28); animation: oriIn .2s ease; }
@keyframes oriIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.ori-head { min-height: 75px; padding: 13px 15px 13px 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.74); }
.ori-identity { display: flex; align-items: center; gap: 11px; }
.ori-avatar { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--bone); background: var(--forest); }
.ori-avatar img { color: inherit; }
.ori-identity div { display: flex; flex-direction: column; gap: 3px; }
.ori-identity strong { color: var(--forest); font-size: 12px; letter-spacing: .14em; }
.ori-identity small { color: var(--muted); font-size: 8px; }
.ori-body { max-height: calc(100vh - 190px); padding: 21px; overflow-y: auto; }
.ori-welcome h2 { margin: 7px 0 7px; font-size: 25px; letter-spacing: -.045em; }
.ori-welcome > p:not(.kicker) { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.ori-local-status { width: 100%; margin-top: 10px; padding: 0; border: 0; display: flex; align-items: center; gap: 7px; color: #547064; background: transparent; cursor: pointer; text-align: left; }
.ori-local-status span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #5f8b70; box-shadow: 0 0 0 4px rgba(95,139,112,.12); }
.ori-local-status small { font-size: 8px; }
.ori-local-status b { margin-left: auto; color: var(--forest); font-size: 8px; }
.ori-compose { margin-top: 18px; display: grid; gap: 12px; }
.ori-kinds { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ori-kinds::-webkit-scrollbar { display: none; }
.ori-kinds button { min-height: 31px; padding: 0 10px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--white); font-size: 8px; font-weight: 700; cursor: pointer; }
.ori-kinds button.active { border-color: var(--forest); color: var(--white); background: var(--forest); }
.ori-role-suggestions { display: grid; gap: 8px; padding: 10px; border: 1px solid #d6dfd8; border-radius: 12px; background: #f7faf7; }
.ori-role-suggestions > div:first-child { display: grid; gap: 2px; }
.ori-role-suggestions > div:first-child strong { color: var(--forest); font-size: 8px; letter-spacing: .04em; }
.ori-role-suggestions > div:first-child small { color: var(--muted); font-size: 7px; line-height: 1.35; }
.ori-role-suggestions > div:last-child { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ori-role-suggestions > div:last-child::-webkit-scrollbar { display: none; }
.ori-role-suggestions button { min-height: 36px; padding: 7px 9px; flex: 0 0 auto; border: 1px solid #ccd9cf; border-radius: 10px; display: flex; align-items: center; gap: 6px; color: #315446; background: var(--white); cursor: pointer; font-size: 8px; font-weight: 750; text-align: left; }
.ori-role-suggestions button:hover { border-color: #83a08d; background: #edf5ef; }
.ori-role-suggestions button svg { width: 15px; height: 15px; flex: 0 0 auto; color: #557968; }
.ori-horse-label, .ori-text-label { display: grid; gap: 6px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.ori-text-label { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.ori-horse-label small, .ori-submit-hint { font-size: 7px; font-weight: 550; letter-spacing: 0; line-height: 1.35; text-transform: none; }
.ori-submit-hint { color: #7d8781; text-align: right; }
.ori-horse-label select, .ori-compose textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--white); outline: none; }
.ori-horse-label select { min-height: 42px; padding: 0 11px; font-size: 10px; }
.ori-compose textarea { min-height: 112px; padding: 12px; resize: vertical; font-size: 11px; line-height: 1.5; }
.ori-horse-label select:focus, .ori-compose textarea:focus { border-color: #91ab9b; box-shadow: 0 0 0 3px rgba(21,59,50,.07); }
.ori-prepare { width: 100%; min-height: 46px; border-radius: 12px; }
.ori-proposal { margin-top: 18px; padding: 16px; border: 1px solid #ceddd1; border-radius: 15px; background: #edf4ee; }
.ori-submitted-prompt { margin: -3px 0 13px; padding: 10px 11px; border: 1px solid rgba(21,59,50,.12); border-radius: 10px; background: rgba(255,255,255,.72); }
.ori-submitted-prompt small { display: block; color: #6d7b74; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.ori-proposal .ori-submitted-prompt p { margin-top: 4px; color: var(--ink); font-size: 9px; white-space: pre-wrap; }
.ori-proposal .proposal-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #4f6d5a; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ori-proposal h3 { margin: 10px 0 6px; font-size: 15px; }
.ori-proposal p { margin: 0; color: #52635b; font-size: 9px; line-height: 1.55; }
.ori-proposal-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.ori-proposal-meta span { padding: 5px 7px; border-radius: 7px; color: var(--forest); background: rgba(255,255,255,.72); font-size: 8px; }
.ori-work-plan { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(21,59,50,.12); }
.ori-work-context { display: grid; gap: 5px; }
.ori-work-context span { padding: 7px 9px; border-radius: 8px; color: #425b4c; background: rgba(255,255,255,.72); font-size: 8px; line-height: 1.4; }
.ori-work-context span.ok { color: #315c42; }
.ori-work-context span.warning { color: #8a493f; background: #f8e5df; }
.ori-work-summary { margin: 12px 0 5px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ori-work-summary strong { font-size: 11px; color: var(--forest); }
.ori-work-summary span { font-size: 9px; font-weight: 800; color: #587062; }
.ori-work-plan ol { margin: 9px 0 0; padding-left: 17px; color: #40564b; font-size: 9px; line-height: 1.5; }
.ori-work-plan li + li { margin-top: 5px; }
.ori-plan-choice { margin-top: 13px; padding: 12px; border: 1px solid #d4c69e; border-radius: 12px; background: #fbf5e6; }
.ori-plan-choice > strong { display: block; color: #5e4a26; font-size: 11px; }
.ori-plan-choice > p { margin-top: 5px; color: #746342; }
.ori-plan-choice > div { margin-top: 10px; display: grid; gap: 7px; }
.ori-choice-card { width: 100%; min-height: 50px; padding: 10px 11px; border: 1px solid #d9d1bc; border-radius: 10px; display: grid; gap: 3px; color: var(--forest); background: rgba(255,255,255,.85); cursor: pointer; text-align: left; }
.ori-choice-card:hover, .ori-choice-card:focus-visible { border-color: #77907f; box-shadow: 0 0 0 3px rgba(21,59,50,.07); outline: none; }
.ori-choice-card.selected { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: #e4eee7; }
.ori-choice-card b { font-size: 9px; }
.ori-choice-card span { color: var(--muted); font-size: 8px; line-height: 1.4; }
.ori-choice-card.risk { border-color: #d9aaa1; color: #82463e; background: #fff6f3; }
.ori-choice-card.risk.selected { border-color: #914f46; box-shadow: inset 0 0 0 1px #914f46; background: #f9e5df; }
.ori-choice-card:disabled { opacity: .6; cursor: wait; }
.ori-override-warning { margin-top: 12px; padding: 10px; border: 1px solid #d9aaa1; border-radius: 10px; color: #7c433b; background: #fff3ef; }
.ori-override-warning strong { font-size: 9px; }
.ori-override-warning p { margin-top: 5px; color: #84554e; }
.ori-ai-insight { margin-top: 12px; padding: 11px; border-radius: 10px; background: rgba(255,255,255,.72); }
.ori-ai-insight strong { display: flex; align-items: center; gap: 6px; color: var(--forest); font-size: 9px; }
.ori-ai-insight strong svg { width: 14px; height: 14px; }
.ori-ai-insight p { margin-top: 7px; color: #304b3e; }
.ori-ai-insight small { display: block; margin-top: 6px; color: #66786f; font-size: 8px; line-height: 1.45; }
.ori-clarification { margin-top: 10px !important; color: #8a6731 !important; }
.ori-proposal-actions { margin-top: 15px; display: flex; gap: 7px; }
.ori-proposal-actions .button { flex: 1; min-height: 41px; border-radius: 10px; }
.ori-reservation-action-preview { margin-top: 13px; padding: 12px; border: 1px solid #bfd2c3; border-radius: 13px; background: rgba(247,252,247,.92); }
.ori-reservation-action-preview.destructive { border-color: #e0b3ad; background: #fff5f3; }
.ori-reservation-action-head { display: flex; align-items: flex-start; gap: 9px; }
.ori-reservation-action-head > svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--forest); }
.ori-reservation-action-preview.destructive .ori-reservation-action-head > svg { color: #a23f37; }
.ori-reservation-action-head > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ori-reservation-action-head small { color: var(--muted); font-size: 6.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.ori-reservation-action-head strong { font-size: 10px; }
.ori-reservation-action-head span { color: var(--muted); font-size: 7px; }
.ori-reservation-reason { margin: 10px 0 0; padding: 8px 9px; border-radius: 9px; color: #665c56; background: rgba(255,255,255,.75); font-size: 7.5px; line-height: 1.45; }
.ori-reservation-exact-list { margin-top: 10px; border-top: 1px solid rgba(21,59,50,.11); }
.ori-reservation-exact-list > summary { min-height: 38px; display: flex; align-items: center; color: var(--forest); cursor: pointer; font-size: 8px; font-weight: 780; }
.ori-reservation-preview-row { margin-top: 9px; padding: 9px; border: 1px solid rgba(21,59,50,.1); border-radius: 10px; background: rgba(255,255,255,.78); }
.ori-reservation-preview-row > div { display: flex; flex-direction: column; gap: 2px; }
.ori-reservation-preview-row > div span, .ori-reservation-preview-row > div small { color: var(--muted); font-size: 6.5px; }
.ori-reservation-preview-row > div strong { font-size: 8.5px; }
.ori-reservation-preview-row dl, .ori-closure-preview-facts { margin: 8px 0 0; display: grid; gap: 5px; }
.ori-reservation-preview-row dl > div, .ori-closure-preview-facts > div { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 6px; }
.ori-reservation-preview-row dt, .ori-closure-preview-facts dt { color: var(--muted); font-size: 6.5px; }
.ori-reservation-preview-row dd, .ori-closure-preview-facts dd { margin: 0; font-size: 7px; line-height: 1.4; }
.ori-reservation-preview-row dd b { color: #9b4a42; }
.ori-action-contract-wait { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid rgba(21,59,50,.11); display: flex; align-items: flex-start; gap: 6px; color: #526b5d; font-size: 7px; line-height: 1.45; }
.ori-action-contract-wait svg { width: 13px; height: 13px; flex: 0 0 auto; }
.ori-reservation-action-preview.closure .ori-closure-preview-facts { padding: 9px; border-radius: 9px; background: rgba(255,255,255,.72); }
.ori-dictation-field { position: relative; }
.ori-dictation-field textarea { width: 100%; }
.ori-input-tools { display:flex; flex-wrap:wrap; gap:6px; }
.ori-input-tools button, .ori-input-tools label { min-height:34px; padding:0 9px; border:1px solid #cbd7cd; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; gap:5px; color:var(--forest); background:#fff; font:inherit; font-size:8px; font-weight:750; cursor:pointer; }
.ori-input-tools button svg { width:15px; height:15px; }
.ori-input-tools button.listening { color:#8c3f37; border-color:#deb4ad; background:#fff0ed; animation:micPulse 1.1s ease-in-out infinite; }
@keyframes micPulse { 50% { box-shadow: 0 0 0 6px rgba(171,76,64,.09); } }
.ori-event-plan { margin-top: 13px; padding: 13px; border: 1px solid #cddbd0; border-radius: 13px; background: rgba(255,255,255,.72); }
.ori-event-plan > strong { display: flex; align-items: center; gap: 6px; color: var(--forest); font-size: 9px; }
.ori-training-feedback { margin-top: 13px; padding: 13px; border: 1px solid #cddbd0; border-radius: 13px; background: rgba(255,255,255,.74); }
.ori-training-feedback > strong { display: flex; align-items: center; gap: 6px; color: var(--forest); font-size: 9px; }
.ori-training-feedback > strong svg { width: 15px; }
.ori-training-target { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ori-training-target span { color: var(--muted); font-size: 8px; font-weight: 750; }
.ori-training-target b { color: var(--ink); font-size: 9px; text-align: right; }
.ori-training-note { margin-top: 8px; padding: 9px; border-radius: 9px; background: #f1f3ef; }
.ori-training-note.success { background: #eaf4ec; }
.ori-training-note.attention { background: #fbefe7; }
.ori-training-note p { margin-top: 4px; color: #3f5248; }
.ori-training-safety { display: block; margin-top: 9px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.ori-event-plan > strong svg { width: 16px; }
.ori-event-plan > div { margin-top: 10px; display: grid; gap: 7px; }
.ori-event-plan > div > span { display: flex; flex-direction: column; gap: 2px; }
.ori-event-plan small { color: var(--muted); font-size: 7px; }
.ori-event-plan b { color: var(--ink); font-size: 9px; }
.ori-event-choice, .ori-turnout-conflict { margin-top: 10px; padding: 12px; border: 1px solid #d9bd79; border-radius: 13px; background: #fff8e7; }
.ori-event-choice.resolved, .ori-turnout-conflict.resolved { border-color: #b9d0bf; background: #f1f8f2; }
.ori-event-choice.resolved { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ori-event-choice.resolved > div { min-width: 0; display: flex; align-items: center; gap: 8px; }
.ori-event-choice.resolved svg, .ori-choice-heading > svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--forest); }
.ori-event-choice.resolved span { min-width: 0; display: grid; gap: 2px; }
.ori-event-choice.resolved small, .ori-choice-heading small { color: #786530; font-size: 7px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ori-event-choice.resolved strong { font-size: 10px; }
.ori-choice-heading { display: flex; align-items: flex-start; gap: 9px; }
.ori-choice-heading > span { min-width: 0; display: grid; gap: 3px; }
.ori-choice-heading strong { color: var(--ink); font-size: 10px; line-height: 1.35; }
.ori-choice-heading p { color: #716441; font-size: 8px; }
.ori-time-choice { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.ori-time-choice label { display: grid; gap: 5px; color: var(--muted); font-size: 7px; font-weight: 750; }
.ori-time-choice input { min-height: 42px; padding: 0 10px; border: 1px solid #cfc5a9; border-radius: 9px; color: var(--ink); background: var(--white); font: inherit; font-size: 10px; }
.ori-time-choice .button { min-height: 42px; }
.ori-time-options { margin-top: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ori-time-options button { min-height: 38px; border: 1px solid #d6c89e; border-radius: 9px; color: #604f24; background: rgba(255,255,255,.9); font: inherit; font-size: 8px; font-weight: 800; cursor: pointer; }
.ori-time-options button:hover, .ori-time-options button:focus-visible { border-color: var(--forest); outline: 2px solid rgba(21,59,50,.1); }
.ori-all-day-choice { width: 100%; min-height: 42px; margin-top: 8px; justify-content: center; }
.ori-all-day-choice svg { width: 15px; height: 15px; }
.ori-turnout-conflict { border-color: #dfaaa1; background: #fff3ef; }
.ori-turnout-conflict .ori-choice-heading > svg { color: #9b463e; }
.ori-turnout-conflict .ori-choice-heading small { color: #9b463e; }
.ori-turnout-conflict.resolved .ori-choice-heading > svg, .ori-turnout-conflict.resolved .ori-choice-heading small { color: var(--forest); }
.ori-turnout-options { margin-top: 10px; display: grid; gap: 7px; }
.ori-turnout-options button { width: 100%; min-height: 50px; padding: 9px 10px; border: 1px solid #deb7b0; border-radius: 10px; display: grid; gap: 3px; color: #75423b; background: rgba(255,255,255,.88); font: inherit; cursor: pointer; text-align: left; }
.ori-turnout-options button span { display: flex; align-items: center; gap: 5px; }
.ori-turnout-options button svg { width: 13px; height: 13px; }
.ori-turnout-options button strong { font-size: 8.5px; }
.ori-turnout-options button small { color: #80605b; font-size: 7px; line-height: 1.4; }
.ori-turnout-options button.selected { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); color: var(--forest); background: #eaf4ec; }
.ori-turnout-options button:disabled { opacity: .55; cursor: not-allowed; }
.ori-proposal-actions.blocked .button:disabled { opacity: .68; cursor: not-allowed; }
.ori-equipment-plan { margin-top: 13px; padding: 13px; border: 1px solid #cddbd0; border-radius: 13px; background: rgba(255,255,255,.72); }
.ori-equipment-plan > div:first-child { display: flex; align-items: center; gap: 9px; }
.ori-equipment-plan > div:first-child > span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.ori-equipment-plan > div:first-child svg { width: 17px; }
.ori-equipment-plan > div:first-child div { display: flex; flex-direction: column; gap: 2px; }
.ori-equipment-plan small { color: var(--muted); font-size: 7px; }
.ori-equipment-plan strong { font-size: 10px; }
.ori-equipment-plan dl { margin: 11px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ori-equipment-plan dl div { padding: 7px; border-radius: 8px; display: flex; flex-direction: column; gap: 2px; background: #f1f4ef; }
.ori-equipment-plan dt { color: var(--muted); font-size: 7px; }
.ori-equipment-plan dd { margin: 0; color: var(--ink); font-size: 8px; font-weight: 750; }
.ori-saved { text-align: center; }
.ori-saved span { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; color: var(--white); background: var(--forest); }
.ori-saved svg { width: 21px; }
.ori-answer .proposal-label span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.ori-answer .proposal-label svg { width: 13px; height: 13px; }
.ori-answer-summary { color: #304b3e !important; font-size: 10px !important; }
.ori-answer-list { margin-top: 13px; display: grid; gap: 8px; }
.ori-answer-item { padding: 11px; border: 1px solid rgba(21,59,50,.1); border-radius: 11px; background: rgba(255,255,255,.78); }
.ori-answer-item > div { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.ori-answer-item strong { min-width: 0; color: var(--forest); font-size: 9px; overflow-wrap: anywhere; }
.ori-answer-item small { flex: 0 0 auto; color: var(--muted); font-size: 7px; text-align: right; }
.ori-answer-item ul { margin: 7px 0 0; padding-left: 16px; color: #506258; font-size: 8px; line-height: 1.5; }
.ori-answer-item li + li { margin-top: 3px; }
.ori-answer-sources { margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(21,59,50,.12); }
.ori-answer-sources > small { color: var(--muted); font-size: 7px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.ori-answer-sources > div { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.ori-answer-sources span { padding: 5px 7px; border-radius: 7px; color: var(--forest); background: rgba(255,255,255,.75); font-size: 7px; }
.ori-answer-safe { margin-top: 11px !important; display: flex; align-items: center; gap: 6px; color: #4d705b !important; font-size: 8px !important; font-weight: 750; }
.ori-answer-safe svg { width: 13px; height: 13px; }

.record-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; }
.record-feed { padding: 7px 20px; }
.record-item { padding: 19px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; }
.record-item:first-child { border-top: 0; }
.record-kind { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.record-kind svg { width: 19px; height: 19px; }
.record-kind.health, .record-kind.incident { color: #88463e; background: #f5dfda; }
.record-kind.training { color: #49677a; background: #e2edf2; }
.record-kind.plan { color: #4c6657; background: #dfece2; }
.record-kind.expense { color: #795d2d; background: #f5ead3; }
.record-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.record-top h3 { margin: 0; font-size: 12px; }
.record-top time { flex: 0 0 auto; color: var(--muted); font-size: 8px; }
.record-content { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.record-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.record-meta span { padding: 4px 6px; border-radius: 6px; color: var(--forest); background: var(--sage); font-size: 7px; }
.record-meta .ori-source { color: #785c2d; background: #f5ead3; }
.record-meta .record-edited { color: #49677a; background: #e2edf2; }
.record-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.record-actions button { min-height: 31px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; display: inline-flex; align-items: center; gap: 5px; color: var(--forest); background: var(--white); cursor: pointer; font: inherit; font-size: 8px; font-weight: 720; }
.record-actions button:hover { border-color: #aebfb4; background: var(--sage); }
.record-actions svg { width: 13px; height: 13px; }
.record-aside { padding: 20px; align-self: start; }
.record-aside h3 { margin: 0 0 8px; font-size: 15px; }
.record-aside p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.record-aside .button { width: 100%; margin-top: 16px; justify-content: center; }
.record-types { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.record-types span { padding: 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--white); font-size: 8px; }
.record-empty { padding: 70px 24px; text-align: center; }
.record-empty .module-symbol { margin: 0 auto 13px; }
.record-empty h3 { margin: 0; font-size: 18px; }
.record-empty p { max-width: 390px; margin: 8px auto 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.entry-change-note { padding: 14px; border: 1px solid #cddfd2; border-radius: 14px; background: var(--sage); }
.entry-change-note label { display: flex; justify-content: space-between; gap: 12px; color: var(--forest); font-size: 9px; font-weight: 740; }
.entry-change-note label span { color: var(--muted); font-size: 7px; font-weight: 500; }
.entry-change-note textarea { width: 100%; min-height: 80px; margin-top: 7px; padding: 11px; border: 1px solid #bfd1c4; border-radius: 10px; color: var(--ink); background: rgba(255,255,255,.82); font: inherit; font-size: 9px; line-height: 1.5; resize: vertical; }
.entry-sync-note { padding: 11px 13px; border-radius: 11px; display: flex; align-items: center; gap: 8px; color: #4e675b; background: #f1f4ef; font-size: 8px; line-height: 1.45; }
.entry-sync-note svg { width: 16px; height: 16px; flex: 0 0 auto; }
.entry-history-loading, .entry-history-empty { padding: 28px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); background: #fafbf8; font-size: 9px; text-align: center; }
.entry-history-summary { padding: 14px; border-radius: 14px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; background: var(--sage); }
.entry-history-summary strong { display: block; font-size: 11px; }
.entry-history-summary small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.entry-history-list { display: flex; flex-direction: column; }
.entry-history-item { padding: 17px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; }
.entry-history-item:first-child { border-top: 0; }
.entry-history-dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--white); background: var(--forest); font-size: 8px; font-weight: 800; }
.entry-history-item.created .entry-history-dot { color: var(--forest); background: var(--sage); }
.entry-history-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.entry-history-head strong { font-size: 10px; }
.entry-history-head time { flex: 0 0 auto; color: var(--muted); font-size: 7px; }
.entry-history-item.created p { margin: 5px 0 0; color: var(--muted); font-size: 8px; }
.entry-history-comment, .entry-history-note-only { margin: 8px 0 0; padding: 9px 10px; border-radius: 9px; color: #4b6659; background: var(--sage); font-size: 8px; line-height: 1.45; white-space: pre-wrap; }
.entry-history-change { margin-top: 9px; }
.entry-history-change > strong { color: var(--forest); font-size: 8px; }
.entry-history-change > div { margin-top: 5px; display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); align-items: stretch; gap: 5px; }
.entry-history-change span { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; white-space: pre-wrap; background: #fbfcf9; font-size: 8px; line-height: 1.4; }
.entry-history-change small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 6.5px; text-transform: uppercase; letter-spacing: .06em; }
.entry-history-change b { align-self: center; color: var(--muted); font-size: 9px; text-align: center; }

.ori-safety-strip { margin-bottom: 14px; padding: 15px 17px; border: 1px solid #cfe0d3; border-radius: 15px; display: flex; align-items: center; gap: 12px; color: var(--forest); background: #edf5ee; }
.ori-safety-strip > span { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; color: var(--white); background: var(--forest); }
.ori-safety-strip svg { width: 17px; }
.ori-safety-strip div { flex: 1; }
.ori-safety-strip strong { font-size: 10px; }
.ori-safety-strip p { margin: 3px 0 0; color: #60736a; font-size: 8px; }
.ori-safety-strip small { font-size: 8px; }
.ori-admin-stats { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ori-admin-stats article { min-height: 94px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; display: flex; flex-direction: column; justify-content: space-between; background: var(--white); }
.ori-admin-stats strong { color: var(--forest); font-size: 23px; }
.ori-admin-stats span { color: var(--muted); font-size: 8px; }
.ori-admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; }
.ori-rules-list, .ori-examples { padding: 20px; align-self: start; }
.ori-rule-card { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.ori-rule-card:first-of-type { border-top: 0; }
.ori-rule-card.inactive { opacity: .54; }
.ori-rule-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.ori-rule-icon svg { width: 17px; }
.ori-rule-main > div:first-child { display: flex; align-items: center; gap: 8px; }
.ori-rule-main h3 { margin: 0; font-size: 11px; }
.ori-rule-main small { padding: 3px 5px; border-radius: 5px; color: var(--forest); background: var(--sage); font-size: 7px; }
.ori-rule-main p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.ori-rule-terms { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.ori-rule-terms span { padding: 4px 6px; border-radius: 6px; color: #66756e; background: #f1f2ee; font-size: 7px; }
.ori-example { padding: 13px 0; border-top: 1px solid var(--line); }
.ori-example:first-of-type { border-top: 0; }
.ori-example span { color: var(--clay); font-size: 7px; font-weight: 780; text-transform: uppercase; letter-spacing: .08em; }
.ori-example p { margin: 5px 0; font-size: 9px; line-height: 1.45; }
.ori-example time { color: var(--muted); font-size: 7px; }
.ori-empty { padding: 30px 10px; text-align: center; }
.ori-empty strong { font-size: 10px; }
.ori-empty p { margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.field textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); font: inherit; resize: vertical; }
.rule-active { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 9px; }

.onboarding-card { margin-bottom: 18px; padding: 24px; border: 1px solid #c9dbcf; border-radius: 22px; display: grid; grid-template-columns: minmax(220px, .9fr) minmax(360px, 1.4fr); gap: 20px 30px; background: linear-gradient(135deg, #f1f6ee, #fffdf8); box-shadow: 0 12px 34px rgba(21,55,43,.06); }
.onboarding-copy h2 { margin: 5px 0 8px; color: var(--forest); font-family: var(--serif); font-size: 24px; }
.onboarding-copy > p:not(.kicker) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.onboarding-card ol { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.onboarding-card li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; background: rgba(255,255,255,.72); }
.onboarding-card li > span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: #eef0ec; font-size: 9px; font-weight: 800; }
.onboarding-card li.active > span { color: white; background: var(--forest); }
.onboarding-card li strong, .onboarding-card li small { display: block; }
.onboarding-card li strong { font-size: 12px; }
.onboarding-card li small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.onboarding-card li button { width: 100%; padding: 0; border: 0; grid-column: 1 / -1; display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 10px; align-items: center; color: inherit; background: transparent; text-align: left; cursor: pointer; font: inherit; }
.onboarding-card li button > span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: #eef0ec; font-size: 9px; font-weight: 800; }
.onboarding-card li button > span svg { width: 14px; height: 14px; }
.onboarding-card li button > svg { width: 14px; color: #9aaba1; }
.onboarding-card li.active button > span { color: white; background: var(--forest); }
.onboarding-card li.complete { border-color: #c9ddce; background: #f5faf5; }
.onboarding-card li.complete button > span { color: white; background: #668b70; }
.onboarding-progressive { grid-template-columns: minmax(240px, .9fr) minmax(400px, 1.35fr); }
.onboarding-horse-select, .onboarding-horse-name { margin-top: 14px; display: grid; gap: 5px; }
.onboarding-horse-select span, .onboarding-horse-name span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.onboarding-horse-select select { min-height: 42px; padding: 0 34px 0 11px; border: 1px solid #c9d7cc; border-radius: 10px; color: var(--forest); background: white; font: inherit; font-size: 12px; font-weight: 750; }
.onboarding-horse-name strong { color: var(--forest); font-size: 13px; }
.onboarding-progress { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; }
.onboarding-progress > span { height: 7px; overflow: hidden; border-radius: 20px; background: #dce8de; }
.onboarding-progress i { height: 100%; display: block; border-radius: inherit; background: var(--forest); }
.onboarding-progress b { color: var(--forest); font-size: 10px; }
.onboarding-ori-tip { grid-column: 1 / -1; padding: 12px 14px; border: 1px solid #ddcfaa; border-radius: 13px; display: flex; align-items: center; gap: 11px; background: #fffaf0; }
.onboarding-ori-tip > svg { width: 22px; flex: 0 0 auto; color: var(--clay); }
.onboarding-ori-tip strong, .onboarding-ori-tip span { display: block; }
.onboarding-ori-tip strong { font-size: 12px; }
.onboarding-ori-tip span { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.onboarding-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.onboarding-return-banner { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #c9dbcf; border-radius: 15px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; background: #f1f7f2; box-shadow: 0 7px 20px rgba(21,55,43,.06); }
.onboarding-return-banner > span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: white; background: var(--forest); }
.onboarding-return-banner > span svg { width: 17px; height: 17px; }
.onboarding-return-banner strong, .onboarding-return-banner small { display: block; }
.onboarding-return-banner strong { color: var(--forest); font-size: 12px; }
.onboarding-return-banner small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.onboarding-return-banner .button { min-height: 38px; white-space: nowrap; }
.onboarding-card.invite-only { grid-template-columns: 1fr 1fr; }

.blanket-horse-profile { margin: 0 22px 16px; padding: 14px; border: 1px solid #d4dfd6; border-radius: 15px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, .55fr) minmax(150px, .55fr); gap: 12px; align-items: end; background: #f6f9f5; }
.blanket-horse-profile > div strong, .blanket-horse-profile > div span { display: block; }
.blanket-horse-profile > div strong { color: var(--forest); font-size: 10px; }
.blanket-horse-profile > div span { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.blanket-horse-profile label { display: grid; gap: 5px; color: var(--muted); font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.blanket-horse-profile select { min-width: 0; min-height: 40px; padding: 0 32px 0 10px; border: 1px solid #c9d5cb; border-radius: 10px; color: var(--ink); background: white; font: inherit; font-size: 8.5px; text-transform: none; letter-spacing: 0; }
.blanket-horse-profile-mobile { display: none; }
.blanket-profile-needed { border-color: #dfd0aa; background: #fff9eb; }
.rule-active > span strong, .rule-active > span small { display: block; }
.rule-active > span small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }

.stable-feeding-groups { display: grid; gap: 14px; }
.stable-feed-horse .stable-feed-row { border-top: 1px solid var(--line); }
.stable-feed-horse .stable-feed-row:first-child { border-top: 0; }
.stable-feed-missing-panel { border-color: #e1b7aa; background: linear-gradient(135deg, #fffaf7, #fff3ed); }
.stable-feed-missing-title { display: flex; align-items: flex-start; gap: 10px; }
.stable-feed-missing-title > svg { width: 22px; height: 22px; flex: 0 0 auto; color: #b64f37; }
.stable-feed-missing-title h2 { color: #8f3828; }
.stable-feed-missing-count { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: white; background: #b64f37; font-size: 18px; }
.stable-horse-shortcuts.warning button { color: #8f3828; border-color: #e0b5a8; background: #fff; }
.stable-horse-shortcuts.warning button svg { color: #b64f37; }
.stable-change-requests { margin-bottom: 14px; }
.stable-change-requests .daily-routine-requests { margin: 0; }
.stable-placement-requests { margin-bottom: 14px; border-color: #bad8c4; background: linear-gradient(135deg, #fff 0%, #f2faf5 100%); }
.stable-placement-list { display: grid; gap: 9px; }
.stable-placement-list > article { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid #d5e5da; border-radius: 14px; background: #fff; }
.stable-placement-horse { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--forest); background: #e7f3eb; }
.stable-placement-horse svg { width: 22px; }
.stable-placement-list strong, .stable-placement-list span, .stable-placement-list p, .stable-placement-list small { display: block; }
.stable-placement-list strong { color: var(--forest); font-size: 10px; }
.stable-placement-list span, .stable-placement-list p, .stable-placement-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.stable-placement-actions { display: flex; gap: 7px; }
.stable-placement-actions .button { min-height: 34px; padding-inline: 12px; white-space: nowrap; }
.daily-routine-item.override { border-color: #b9d4bf; background: #f3f8f2; }
.daily-routine-requests article small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.routine-proposal-fields { padding: 14px; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #f7f8f4; }
.routine-proposal-fields[hidden] { display: none; }
.routine-proposal-fields .full { grid-column: 1 / -1; }
.bulk-routine-selection { margin: 0; padding: 14px; border: 1px solid #d8e1d8; border-radius: 14px; background: #f7f9f5; }
.bulk-routine-selection legend { padding: 0 5px; color: var(--ink); font-size: 9px; font-weight: 750; }
.bulk-routine-selection-head { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bulk-routine-selection-head small { color: var(--muted); font-size: 8px; }
.bulk-routine-selection-head button { padding: 6px 8px; border: 1px solid #c7d4ca; border-radius: 8px; color: var(--forest); background: white; cursor: pointer; font: inherit; font-size: 7.5px; font-weight: 750; }
.bulk-routine-selection > div:last-child { max-height: 260px; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.bulk-routine-selection > div:last-child label { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: flex-start; gap: 8px; background: white; cursor: pointer; }
.bulk-routine-selection input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--forest); }
.bulk-routine-selection label span { min-width: 0; }
.bulk-routine-selection label strong, .bulk-routine-selection label small { display: block; }
.bulk-routine-selection label strong { font-size: 8.5px; }
.bulk-routine-selection label small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.35; }

.training-rider-context { margin: 0 22px 18px; padding: 16px; border: 1px solid #dfd2b7; border-radius: 15px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; background: #fbf5e8; }
.training-rider-context.completed { border-color: #cadccf; background: #f0f6ef; }
.training-rider-context > span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--forest); background: white; }
.training-rider-context svg { width: 17px; }
.training-rider-context small, .training-rider-context strong, .training-rider-context p { display: block; }
.training-rider-context small { color: var(--clay); font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.training-rider-context strong { margin-top: 3px; font-size: 10px; }
.training-rider-context p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.training-rider-context button { min-height: 34px; padding: 0 11px; border: 1px solid #bdcfc2; border-radius: 9px; color: var(--forest); background: white; cursor: pointer; font: inherit; font-size: 8px; font-weight: 750; }
.training-rider-intro { padding: 14px; border-radius: 14px; display: flex; gap: 11px; color: var(--forest); background: var(--sage); }
.training-rider-intro > span { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; color: white; background: var(--forest); }
.training-rider-intro strong { font-size: 10px; }
.training-rider-intro p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.training-orientations { margin: 0; padding: 14px; border: 1px solid #d8e1d8; border-radius: 14px; background: #f7f9f5; }
.training-orientations legend { padding: 0 5px; color: var(--ink); font-size: 9px; font-weight: 750; }
.training-orientations > p { margin: 0 0 11px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.training-orientations > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.training-orientations > div label { min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 8px; color: var(--ink); background: white; cursor: pointer; font-size: 8.5px; }
.training-orientations input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--forest); }
.training-orientation-own { margin-top: 11px; display: grid; grid-template-columns: minmax(130px, .45fr) minmax(0, 1fr); align-items: center; gap: 10px; color: var(--muted); font-size: 8px; }
.training-orientation-own input { min-width: 0; }
.training-dictation-field .ori-dictation-field { margin-top: 6px; }
.training-dictation-field .ori-dictation-field textarea { min-height: 105px; padding-right: 108px; }
.training-dictation-field .ori-dictation-field button { min-height:34px; padding:0 9px; border:1px solid #cbd7cd; border-radius:9px; position:absolute; right:8px; bottom:8px; display:inline-flex; align-items:center; gap:5px; color:var(--forest); background:rgba(255,255,255,.92); font:inherit; font-size:8px; font-weight:750; cursor:pointer; }
.training-dictation-field .ori-dictation-field button svg { width:15px; height:15px; }
.training-dictation-field .ori-dictation-field button.listening { color:#8c3f37; border-color:#deb4ad; background:#fff0ed; animation:micPulse 1.1s ease-in-out infinite; }
.training-dictation-field [data-training-rider-dictate] { width: auto; min-width: 92px; height: 34px; padding: 0 10px; top: 9px; right: 9px; border-radius: 10px; display: flex; align-items: center; gap: 6px; color: var(--forest); background: var(--sage); font-size: 8px; font-weight: 750; }
.training-dictation-field [data-training-rider-dictate].listening { color: white; background: var(--clay); }
.training-dictation-field [data-training-rider-dictate] svg { width: 14px; height: 14px; }
.training-rider-later { padding: 11px 13px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #f4f5f1; }
.training-rider-later small { color: var(--muted); font-size: 7.5px; line-height: 1.4; }

.profile-settings-layout { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.profile-settings-stack { display:grid; gap:18px; min-width:0; }
.profile-summary-card { padding: 26px; text-align: center; position: sticky; top: 84px; }
.profile-summary-avatar { width: 78px; height: 78px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 25px; background: var(--forest); color: white; font-family: var(--serif); font-size: 27px; }
.profile-summary-card h2 { margin: 0; font-family: var(--serif); font-size: 26px; }
.profile-summary-card > p { margin: 5px 0 22px; color: var(--muted); overflow-wrap: anywhere; }
.profile-summary-card dl { margin: 0; display: grid; gap: 9px; text-align: left; }
.profile-summary-card dl > div { padding: 11px 12px; border-radius: 12px; background: var(--surface-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-summary-card dt { color: var(--muted); font-size: 12px; }
.profile-summary-card dd { margin: 0; font-weight: 750; text-align: right; }
.profile-onboarding-action { width: 100%; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 7px; }
.profile-onboarding-action svg { width: 15px; height: 15px; }
.profile-settings-form { padding: 0; overflow: hidden; }
.settings-section { padding: 25px; display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.4fr); gap: 30px; border-bottom: 1px solid var(--line); }
.settings-section h2 { margin: 2px 0 0; font-family: var(--serif); font-size: 23px; }
.settings-section-copy { margin:9px 0 0; color:var(--muted); font-size:12px; line-height:1.5; }
.settings-fields { display: grid; gap: 16px; }
.currency-conversion-info { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); display: grid; gap: 5px; }
.currency-conversion-info span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.currency-warning { padding: 12px; border-radius: 12px; background: #fff4df; color: #805c1f; display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.45; }
.currency-warning svg { width: 18px; flex: 0 0 auto; }
.profile-settings-notice { margin: 18px 25px 0; padding: 12px 14px; border-radius: 12px; background: var(--sage); color: var(--forest); }
.profile-settings-notice.error { background: #fff0ec; color: #963f2c; }
.morning-brief-consent{display:flex;gap:12px;align-items:flex-start;padding:15px;border:1px solid color-mix(in srgb,var(--forest) 20%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--sage) 55%,white);cursor:pointer}.morning-brief-consent input{width:20px;height:20px;margin-top:1px;accent-color:var(--forest)}.morning-brief-consent span{display:grid;gap:4px}.morning-brief-consent small{color:var(--muted);line-height:1.45}.morning-brief-settings-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:12px}.morning-brief-contents{display:grid;gap:5px;padding:13px 14px;border-radius:13px;background:var(--paper)}.morning-brief-contents span{color:var(--muted);font-size:12px;line-height:1.5}
.morning-brief-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border-radius:18px;background:linear-gradient(135deg,color-mix(in srgb,var(--sage) 75%,white),white)}.morning-brief-intro>div{display:flex;gap:12px;align-items:center}.morning-brief-intro>div>span{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;color:var(--forest);background:white;box-shadow:0 7px 20px rgba(34,62,51,.08)}.morning-brief-intro svg{width:22px;height:22px}.morning-brief-intro strong{display:block;text-transform:capitalize}.morning-brief-intro p{margin:3px 0 0;color:var(--muted);font-size:12px}.morning-brief-intro a{color:var(--forest);font-weight:800;font-size:12px}.morning-brief-priority{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #edc8a9;border-radius:16px;background:#fff7ef}.morning-brief-priority>span{color:#a95d32}.morning-brief-priority>span svg{width:23px;height:23px}.morning-brief-priority>div{display:grid;gap:3px;flex:1}.morning-brief-priority small,.morning-brief-horse header small{color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.11em}.morning-brief-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.morning-brief-horse{border:1px solid var(--line);border-radius:18px;background:white;overflow:hidden}.morning-brief-horse header{display:flex;align-items:center;gap:10px;padding:15px 16px;border-bottom:1px solid var(--line);background:var(--paper)}.morning-brief-horse header>span{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;color:var(--forest);background:var(--sage)}.morning-brief-horse header svg{width:19px;height:19px}.morning-brief-horse h3{margin:1px 0 0;font:700 20px/1.1 var(--serif)}.morning-brief-horse section{padding:13px 16px;border-bottom:1px solid var(--line)}.morning-brief-horse section:last-child{border-bottom:0}.morning-brief-horse h4{margin:0 0 9px;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.morning-brief-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 0}.morning-brief-row+.morning-brief-row{border-top:1px dashed var(--line)}.morning-brief-row>div{display:grid;gap:3px;min-width:0}.morning-brief-row strong{font-size:13px;line-height:1.35}.morning-brief-row span{color:var(--muted);font-size:11px;line-height:1.45}.morning-brief-source{display:inline-flex;align-items:center;gap:3px;border:0;background:transparent;color:var(--forest);font-size:10px;font-weight:850;cursor:pointer}.morning-brief-source svg{width:13px;height:13px}.morning-brief-routine{margin:0;padding:18px 16px;color:var(--muted)}.morning-brief-safety{margin:0;padding:11px 14px;border-radius:12px;color:var(--muted);background:var(--paper);font-size:11px;line-height:1.5}
.settings-actions { padding: 20px 25px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.settings-actions a { color: var(--muted); font-size: 12px; }
.password-settings-actions > span { max-width:520px; color:var(--muted); font-size:12px; line-height:1.5; }
.settings-legal-links { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.account-roles-panel { padding: 0; overflow: hidden; }
.account-roles-head { padding: 24px 25px 18px; border-bottom: 1px solid var(--line); }
.account-roles-head h2, .account-professional-intro h3, .admin-role-requests-head h2 { margin: 2px 0 5px; font-family: var(--serif); font-size: 23px; }
.account-roles-head p:last-child, .account-professional-intro p, .admin-role-requests-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-active-roles { padding: 16px 25px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.account-active-roles > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.account-active-roles > div { display: flex; flex-wrap: wrap; gap: 7px; }
.account-active-roles b { padding: 6px 9px; border-radius: 999px; color: var(--forest); background: #dcebe0; font-size: 11px; }
.account-role-guidance { padding: 17px 25px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-bottom: 1px solid var(--line); }
.account-role-guidance article { padding: 12px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 4px; }
.account-role-guidance strong { font-size: 12px; }
.account-role-guidance span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.account-professional-intro { padding: 19px 25px 12px; }
.account-role-list { padding: 0 25px 25px; display: grid; gap: 9px; }
.account-role-card { padding: 13px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.account-role-card > div { display: flex; align-items: center; gap: 10px; }
.account-role-card > div:first-child { min-width: 0; }
.account-role-card > div:last-child { flex: 0 0 auto; flex-direction: column; align-items: flex-end; }
.account-role-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--forest); background: var(--sage); flex: 0 0 auto; }
.account-role-icon svg { width: 19px; }
.account-role-card strong { font-size: 13px; }
.account-role-card p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.account-role-card .button { min-height: 34px; padding: 0 11px; font-size: 10px; }
.account-role-status { padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.account-role-status.active { color: #226342; background: #dff2e5; }
.account-role-status.pending { color: #7a5a1c; background: #fff0c9; }
.account-role-status.rejected { color: #8c3f37; background: #fde3df; }
.account-role-status.available { color: var(--muted); background: var(--surface-soft); }
.account-role-review { margin-top: 5px; display: block; color: #8c3f37; font-size: 10px; }
.admin-role-requests { margin-bottom: 15px; padding: 19px; }
.admin-role-requests-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-role-requests-head > span { min-width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: white; background: var(--clay); font-weight: 800; }
.admin-role-request-list { margin-top: 14px; display: grid; gap: 9px; }
.admin-role-request-list article { padding: 12px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: minmax(160px, 1.2fr) auto minmax(160px, 1fr) auto auto; align-items: center; gap: 12px; }
.admin-role-request-list article > div:first-child { display: grid; gap: 3px; }
.admin-role-request-list small, .admin-role-request-list p, .admin-role-request-list time { margin: 0; color: var(--muted); font-size: 10px; }
.admin-role-request-list article > div:last-child { display: flex; gap: 7px; }
.admin-role-request-list .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
.admin-role-requests-empty { margin-top: 13px; padding: 14px; border-radius: 12px; color: var(--muted); background: var(--surface-soft); text-align: center; font-size: 11px; }
.auth-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 8px; }
.auth-legal-links a { color: var(--muted); text-decoration: none; }
.auth-legal-links a:hover, .auth-legal-links a:focus-visible { color: var(--forest); text-decoration: underline; }

.stable-expense-filters { margin-bottom: 14px; padding: 15px; display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(6, minmax(110px, .7fr)) auto; align-items: end; gap: 10px; }
.stable-expense-filters > label { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.stable-expense-filters input, .stable-expense-filters select { width: 100%; min-height: 41px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); outline: none; font: inherit; font-size: 10px; text-transform: none; letter-spacing: 0; }
.stable-expense-filters input:focus, .stable-expense-filters select:focus { border-color: #91ab9b; box-shadow: 0 0 0 3px rgba(21,59,50,.07); }
.stable-expense-filters .stable-expense-search { min-height: 41px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: row; align-items: center; gap: 8px; background: var(--white); }
.stable-expense-search svg { width: 16px; flex: 0 0 auto; color: var(--muted); }
.stable-expense-search input { min-width: 0; padding: 0; border: 0; box-shadow: none; }
.stable-expense-search input:focus { box-shadow: none; }
.stable-expense-reset { min-height: 41px; white-space: nowrap; }
.stable-expense-kpis { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.stable-expense-kpis article { min-height: 118px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 7px; background: var(--white); box-shadow: 0 7px 20px rgba(18,47,38,.035); }
.stable-expense-kpis article.income { border-color: #bcd9c4; background: #f1f9f3; }
.stable-expense-kpis article.expense { border-color: #ead8ca; background: #fff9f4; }
.stable-expense-kpis article.balance { border-color: #cbd7dc; background: #f4f8fa; }
.stable-expense-kpis article.unpaid { border-color: #ead2c8; background: #fff7f3; }
.stable-expense-kpis span { color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.stable-expense-kpis strong { margin-top: auto; color: var(--forest); font-family: var(--serif); font-size: clamp(18px, 2vw, 25px); line-height: 1.05; }
.stable-expense-kpis article.unpaid strong { color: #984d3b; }
.stable-expense-kpis article.income strong { color: #2d7049; }
.stable-expense-kpis article.expense strong { color: #8a5039; }
.stable-expense-kpis small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.stable-expense-list-panel { padding: 19px; }
.stable-expense-count { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 9px; display: grid; place-items: center; color: var(--forest); background: var(--sage); font-size: 9px; font-weight: 800; }
.stable-expense-list { display: grid; }
.stable-expense-row { min-height: 68px; padding: 11px 4px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 135px minmax(160px, 1fr) 95px minmax(105px, auto) minmax(135px, auto); align-items: center; gap: 12px; cursor: pointer; border-radius: 10px; }
.stable-expense-row:first-child { border-top: 0; }
.stable-expense-row:hover, .stable-expense-row:focus-visible { background: var(--surface-soft); outline: none; box-shadow: inset 0 0 0 1px var(--line); }
.stable-expense-row time, .stable-expense-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.stable-expense-row time strong, .stable-expense-main strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.stable-expense-row time span, .stable-expense-main span { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.stable-expense-row > b { color: #8a5039; font-size: 11px; text-align: right; white-space: nowrap; }
.stable-expense-row.income > b { color: #267047; }
.stable-expense-row-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.stable-expense-edit-hint, .stable-expense-payment-done { color: var(--muted); font-size: 8px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.stable-expense-edit-hint svg, .stable-expense-payment-done svg { width: 13px; }
.stable-expense-payment { min-height: 34px; padding: 7px 9px; border: 1px solid #bcd9c4; border-radius: 9px; color: #286345; background: #eff8f1; display: inline-flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 800; }
.stable-expense-payment svg { width: 13px; }
.stable-expense-state { justify-self: start; padding: 5px 8px; border-radius: 999px; color: #2e6643; background: #e7f3eb; font-size: 7px; font-weight: 800; }
.stable-expense-state.unpaid { color: #934c38; background: #fbe9e2; }
.stable-expense-empty, .stable-expenses-loading { min-height: 210px; padding: 35px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: var(--muted); text-align: center; }
.stable-expense-empty svg { width: 28px; color: #9caf9f; }
.stable-expense-empty strong, .stable-expenses-loading strong { color: var(--ink); font-size: 12px; }
.stable-expense-empty span { font-size: 9px; }

@media (max-width: 1160px) {
  :root { --sidebar: 220px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .horse-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(3, 1fr); }
  .stable-modules { grid-template-columns: repeat(3, 1fr); }
  .box-grid { grid-template-columns: repeat(4, 1fr); }
  .stable-expense-filters { grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(120px, 1fr)); }
  .stable-expense-filters .stable-expense-search { grid-column: span 2; }
}

@media (max-width: 760px) {
  .data-sync-status { top: calc(58px + env(safe-area-inset-top)); font-size: 9px; }
  .fast-start-shell { padding: 18px 14px 100px; }
  .fast-start-skeleton { grid-template-columns: 1fr; }
  .fast-start-skeleton span { min-height: 88px; }
  :root { --header: 64px; }
  .auth-root, .auth-layout, .auth-panel, .auth-loading, .app-shell, .app-body { min-height: var(--app-visual-height); }
  .sidebar { width: 270px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 18px 0 60px rgba(4,20,15,.2); }
  body.menu-open .sidebar { transform: translateX(0); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(7,25,20,.48); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.menu-open .scrim { opacity: 1; pointer-events: auto; }
  .app-body { margin-left: 0; }
  .app-header { padding: 0 16px; gap: 10px; }
  .menu-button { display: grid; }
  .mobile-brand { display: flex; align-items: center; gap: 7px; color: var(--forest); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
  .mobile-brand img { color: var(--forest); }
  .search-trigger { margin-left: auto; width: 40px; padding: 0; justify-content: center; }
  .search-label, .search-trigger kbd { display: none; }
  .profile-button > div, .profile-chevron { display: none; }
  .profile-button { min-height: 42px; padding: 2px; }
  .main-content { padding: 28px 18px 96px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .horse-live-grid:not(.single) { grid-auto-columns: minmax(280px, 58vw); }
  .calendar-shell { grid-template-columns: 1fr; }
  .agenda-panel { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-panel { min-height: var(--app-visual-height); padding: max(30px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
  .auth-mobile-brand { margin-bottom: 50px; display: flex; align-items: center; gap: 9px; color: var(--forest); font-size: 13px; font-weight: 800; letter-spacing: .2em; }
  .auth-mobile-brand img { color: var(--forest); }
  .record-layout { grid-template-columns: 1fr; }
  .record-aside { order: -1; }
  .ori-admin-layout { grid-template-columns: 1fr; }
  .stable-facility-layout { grid-template-columns: 1fr; }
  .stable-expense-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stable-expense-row { grid-template-columns: 115px minmax(140px, 1fr) 85px auto; }
  .stable-expense-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 650px) {
  .search-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 24px); transform: none; }
  .search-dialog-head { min-height: 64px; height: auto; padding: 8px 10px; gap: 7px; }
  .search-dialog-head > #searchDialogIcon { display: none; }
  .search-submit { min-height: 40px; padding-inline: 10px; font-size: 10px; }
  .key-close { width: 42px; min-width: 42px; min-height: 42px; padding: 0; }
  .key-close b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .key-close span { font-size: 24px; }
  .search-results { max-height: calc(100dvh - 104px); }
  .search-page-form { grid-template-columns: 1fr; }
  .search-page-form button { width: 100%; }
  /* iOS Safari automaticky přibližuje textová pole menší než 16 px. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea { font-size: 16px; }
  .staff-batch-members, .staff-batch-grid { grid-template-columns: 1fr; }
  .staff-batch-grid > .full { grid-column: auto; }
  .staff-batch-members label { min-height: 58px; }
  .staff-batch-members strong { font-size: 13px; }
  .staff-batch-members small { font-size: 10px; }
  .staff-batch-preview { grid-template-columns: 1fr; }
  .staff-batch-preview span { padding: 6px; font-size: 10px; }
  .staff-batch-safety { font-size: 11px; }
  .stable-facility-list { grid-template-columns: 1fr; }
  .stable-facility-card { padding: 14px; }
  .stable-facility-actions { grid-template-columns: 1fr 1fr; }
  .facility-form-grid, .routine-lot-form-grid { grid-template-columns: 1fr; }
  .facility-form-grid > .full, .routine-lot-form-grid > .full { grid-column: auto; }
  .facility-form-card, .routine-lot-form-card { padding: 13px; }
  .nav-order-tools > button { min-height: 44px; font-size: 11px; }
  .nav-order-editor > div { min-height: 50px; font-size: 11px; }
  .nav-order-editor button { width: 44px; height: 44px; }
  .dashboard-next-event { min-height: 48px; }
  .metric-card.clickable { min-height: 112px; }
  .schedule-item { min-height: 58px; grid-template-columns: 47px 8px minmax(0, 1fr) 13px; gap: 8px; }
  .schedule-item .schedule-tag { display: none; }
  .schedule-item > svg { width: 13px; }
  .schedule-item.grouped { padding-inline: 9px; }
  .routine-group-horses { grid-template-columns: 1fr; }
  .routine-group-horses button { min-height: 48px; }
  .routine-group-actions { display: grid; grid-template-columns: 1fr; }
  .routine-group-actions .button { width: 100%; min-height: 44px; justify-content: center; }
  .registration-roles > div { grid-template-columns: 1fr; }
  .registration-roles label:last-child { grid-column: auto; }
  .auth-state .local-mail-button { margin-left: 0; }
  .profile-settings-layout { grid-template-columns: 1fr; }
  .profile-summary-card { position: static; padding: 20px; }
  .profile-summary-avatar { width: 62px; height: 62px; border-radius: 20px; font-size: 22px; }
  .settings-section { padding: 20px 16px; grid-template-columns: 1fr; gap: 16px; }
  .settings-actions { padding: 16px; align-items: stretch; flex-direction: column-reverse; }
  .settings-actions .button { width: 100%; justify-content: center; }
  .account-roles-head, .account-professional-intro { padding-inline: 16px; }
  .account-active-roles { padding-inline: 16px; align-items: flex-start; flex-direction: column; }
  .account-role-guidance { padding-inline: 16px; grid-template-columns: 1fr; }
  .account-role-list { padding-inline: 16px; }
  .account-role-card { align-items: stretch; flex-direction: column; }
  .account-role-card > div:last-child { align-items: stretch; flex-direction: row; justify-content: space-between; }
  .admin-role-request-list article { grid-template-columns: 1fr; }
  .admin-role-request-list article > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .app-header { height: 61px; }
  .app-header { padding: 0 9px; gap: 6px; }
  .mobile-brand span { display: none; }
  .header-actions #bellButton { display: grid; }
  .header-actions { gap: 5px; }
  .emergency-button, .header-actions #bellButton { width: 38px; height: 38px; min-width: 38px; }
  .emergency-button > span { display: none; }
  .emergency-dialog { width: 100vw; max-width: 100vw; height: min(94dvh, 900px); max-height: 94dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .emergency-dialog-head { min-height: 72px; padding: 13px 14px; align-items: flex-start; }
  .emergency-dialog-head h2 { font-size: 22px; }
  .emergency-dialog-head .button { min-width: 44px; min-height: 44px; padding: 0 11px; }
  .emergency-dialog-head .button svg { margin: 0; }
  .emergency-dialog-head .button { font-size: 0; }
  .emergency-content { max-height: calc(94dvh - 72px); padding: 14px 12px calc(25px + env(safe-area-inset-bottom)); }
  .crisis-mode { padding: 12px; }
  .crisis-mode-head { align-items: stretch; flex-direction: column; }
  .crisis-mode-head h2 { font-size: 19px; }
  .crisis-start { width: 100%; min-height: 62px; font-size: 12px; }
  .crisis-active-card { padding: 12px; }
  .crisis-active-card > header h3 { font-size: 14px; line-height: 1.3; }
  .crisis-primary-actions { grid-template-columns: 1fr; }
  .crisis-primary-actions > a, .crisis-primary-actions > button { min-height: 68px; }
  .crisis-primary-actions strong { font-size: 13px; }
  .crisis-secondary-actions { grid-template-columns: 1fr; }
  .crisis-secondary-actions button { min-height: 54px; justify-content: flex-start; padding-inline: 13px; font-size: 11px; }
  .crisis-guidance summary { min-height: 52px; font-size: 10px; }
  .crisis-guidance ol { font-size: 10px; }
  .crisis-timeline article { grid-template-columns: 1fr; gap: 4px; }
  .crisis-timeline p { font-size: 10px; }
  .crisis-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crisis-close-record { min-height: 50px; font-size: 10px; }
  .crisis-type-grid { grid-template-columns: 1fr; }
  .crisis-type-grid label { min-height: 52px; font-size: 11px; }
  .crisis-form-warning strong { font-size: 13px; }
  .crisis-form-warning span, .crisis-location-privacy { font-size: 10px; }
  .emergency-warning { padding: 12px; }
  .emergency-location { margin: 11px 2px 20px; align-items: flex-start; flex-direction: column; gap: 5px; }
  .emergency-grid { grid-template-columns: 1fr; }
  .emergency-section + .emergency-section { margin-top: 23px; }
  .emergency-section-head h3 { font-size: 15px; }
  .emergency-card { padding: 14px; }
  .emergency-card-actions a { min-height: 50px; }
  .emergency-owner-actions button { min-width: 44px; min-height: 44px; justify-content: center; }
  .emergency-owner-actions button { font-size: 0; }
  .emergency-owner-actions button svg { width: 17px; height: 17px; }
  .emergency-source { font-size: 7.5px; }
  .emergency-directory { min-height: 66px; }
  .horse-sos-section { padding: 13px; }
  .horse-sos-card-photo { width: 112px; height: 84px; }
  .horse-sos-map { height: 175px; }
  .horse-sos-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .horse-sos-actions .button { width: 100%; padding-inline: 8px; }
  .sos-public-preview h3 { font-size: 22px; }
  .notification-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); border-radius: 18px; }
  .profile-menu { width: min(286px, calc(100vw - 28px)); top: calc(100% + 7px); right: -2px; }
  .main-content { padding: 23px 14px 96px; }
  .onboarding-card, .onboarding-card.invite-only { width: 100%; min-width: 0; margin-bottom: 14px; padding: 16px; border-radius: 18px; display: flex; flex-direction: column; gap: 13px; overflow: hidden; }
  .onboarding-copy { min-width: 0; }
  .onboarding-copy h2 { margin: 4px 0 6px; font-size: 22px; line-height: 1.08; overflow-wrap: anywhere; }
  .onboarding-copy > p:not(.kicker) { font-size: 12px; line-height: 1.45; }
  .onboarding-card ol { width: 100%; gap: 6px; }
  .onboarding-card li { min-width: 0; padding: 9px 10px; grid-template-columns: 32px minmax(0, 1fr); gap: 9px; }
  .onboarding-card li button { grid-template-columns: 32px minmax(0, 1fr) 16px; }
  .onboarding-card li > span { width: 32px; height: 32px; }
  .onboarding-card li strong { font-size: 12px; }
  .onboarding-card li small { font-size: 10px; line-height: 1.35; }
  .onboarding-actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 7px; }
  .onboarding-return-banner { grid-template-columns: 32px minmax(0, 1fr); }
  .onboarding-return-banner .button { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .onboarding-actions .button { width: 100%; min-width: 0; min-height: 48px; justify-content: center; font-size: 12px; }
  .onboarding-ori-tip { width: 100%; align-items: flex-start; }
  .onboarding-ori-tip strong { font-size: 12px; }
  .onboarding-ori-tip span { font-size: 10px; }
  .onboarding-horse-select select { min-height: 46px; font-size: 12px; }
  .blanket-horse-profile { margin: 14px; grid-template-columns: 1fr; }
  .blanket-horse-profile-desktop { display: none; }
  .blanket-horse-profile-mobile { display: grid; }
  .blanket-horse-profile > div strong { font-size: 13px; }
  .blanket-horse-profile > div span { font-size: 10px; }
  .blanket-horse-profile label { font-size: 9px; }
  .blanket-horse-profile select { min-height: 46px; font-size: 12px; }
  .page-head { align-items: flex-start; margin-bottom: 22px; }
  .page-head h1 { font-size: 35px; }
  .page-head p:not(.kicker) { font-size: 11px; }
  .head-actions .button.secondary { display: none; }
  .button .button-label.optional { display: none; }
  .dashboard-small-tip { line-height: 1.45; }
  .hero-card { min-height: 310px; padding: 25px 22px; }
  .hero-card h2 { font-size: 35px; }
  .horse-live-overview { padding: 14px; border-radius: 18px; }
  .horse-live-grid:not(.single) { margin-right: -14px; padding-right: 14px; grid-auto-columns: minmax(275px, 88vw); }
  .horse-live-heading { margin-bottom: 11px; }
  .horse-live-heading h2 { font-size: 16px; }
  .horse-live-card { padding: 12px; }
  .horse-live-current { margin-top: 10px; }
  .horse-live-facts { grid-template-columns: 1fr 1fr; }
  .horse-live-facts > div, .horse-live-facts > button { padding: 7px; }
  .horse-live-facts > div > span { display: none; }
  .horse-live-facts > button > span.blanket { display: none; }
  .horse-live-facts strong { font-size: 9px; }
  .horse-live-facts small { font-size: 7px; }
  .horse-live-facts .horse-live-blanket-fill { font-size: 19px; }
  .live-blanket-feedback > div:nth-child(2) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .horse-live-note { min-height: 42px; font-size: 10px; }
  .weather-chip { min-width: 65px; }
  .hero-top { flex-direction: column; }
  .weather-overview { width: 100%; }
  .weather-hours { overflow-x: auto; grid-template-columns: repeat(6, minmax(45px, 1fr)); }
  .hero-bottom { align-items: flex-end; }
  .hero-link { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .metric-card { min-height: 125px; padding: 15px; }
  .dashboard-grid { gap: 10px; }
  .panel-pad { padding: 17px; }
  .schedule-item { grid-template-columns: 45px 8px 1fr; gap: 8px; }
  .schedule-tag { display: none; }
  .horse-grid { grid-template-columns: 1fr; gap: 11px; }
  .horse-workspace-notice { grid-template-columns: 38px minmax(0, 1fr); padding: 12px; }
  .horse-workspace-notice > span { width: 38px; height: 38px; }
  .horse-workspace-notice .button { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .horse-card, .empty-add-card { min-height: 245px; }
  .horse-art { height: 111px; }
  .filter-search { width: 100%; min-width: 0; }
  .horse-profile-head { align-items: flex-start; padding: 18px; }
  .profile-horse-art { width: 70px; height: 70px; border-radius: 18px; }
  .profile-info h1 { font-size: 25px; }
  .profile-inline-actions { margin-top: 10px; }
  .profile-inline-actions .button { min-height: 38px; padding-inline: 10px; font-size: 9px; }
  .public-care-mobile-action { display: inline-flex; }
  .profile-actions { display: none; }
  .public-care-fields, .public-care-options { grid-template-columns: 1fr; }
  .public-care-status, .public-care-privacy { grid-template-columns: 34px minmax(0, 1fr); padding: 12px; }
  .public-care-status > svg, .public-care-privacy > svg { width: 34px; height: 34px; padding: 8px; }
  .public-care-share { grid-template-columns: 48px minmax(0, 1fr); padding: 13px; }
  .public-care-share-icon { width: 48px; height: 48px; }
  .public-care-share-actions .button { width: 100%; justify-content: center; }
  .public-care-actions { display: grid; grid-template-columns: 1fr; }
  .public-care-actions .button { width: 100%; justify-content: center; }
  .tabs-wrap { display: none; }
  .horse-mobile-section-tools { display: none; }
  .horse-section-switcher { min-height: 64px; padding: 11px 46px 11px 14px; border: 1px solid #cdd8d0; border-radius: 15px; position: relative; display: flex; align-items: center; color: var(--forest); background: var(--white); box-shadow: 0 8px 22px rgba(20,49,40,.06); }
  .horse-section-switcher > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
  .horse-section-switcher small { color: var(--muted); font-size: 7px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
  .horse-section-switcher strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .horse-section-switcher select { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 2; opacity: 0; cursor: pointer; }
  .horse-section-switcher svg { width: 17px; height: 17px; position: absolute; right: 16px; transform: rotate(90deg); pointer-events: none; }
  .horse-mobile-mode-toggle { min-height: 44px; padding: 0 13px; border: 1px solid #d7dfda; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--forest); background: #f7faf8; font: inherit; font-size: 11px; font-weight: 760; cursor: pointer; }
  .horse-mobile-mode-toggle svg { width: 15px; height: 15px; }
  .horse-desktop-section { display: none; }
  .horse-mobile-flow { display: grid; gap: 14px; }
  .horse-mobile-pinned-overview { padding: 14px; border: 1px solid #b8cbbf; border-radius: 17px; display: grid; gap: 11px; background: linear-gradient(145deg, #f3f8f4, #fff); box-shadow: 0 9px 26px rgba(20,49,40,.08); }
  .horse-mobile-pinned-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .horse-mobile-pinned-head small { color: var(--clay); font-size: 7px; font-weight: 850; letter-spacing: .12em; }
  .horse-mobile-pinned-head h2 { margin: 2px 0 0; color: var(--forest); font-size: 18px; }
  .horse-mobile-pinned-head > span { padding: 6px 9px; border-radius: 999px; color: var(--forest); background: #dfece4; font-size: 9px; font-weight: 800; white-space: nowrap; }
  .horse-mobile-pinned-days { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .horse-mobile-pinned-days > section { min-width: 0; padding: 9px; border: 1px solid #dce5df; border-radius: 13px; background: rgba(255,255,255,.88); }
  .horse-mobile-pinned-days header { margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; }
  .horse-mobile-pinned-days header strong { color: var(--ink); font-size: 11px; }
  .horse-mobile-pinned-days header small { width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: #edf1ee; font-size: 8px; font-weight: 800; }
  .horse-mobile-pinned-days section > div { display: grid; gap: 6px; }
  .horse-mobile-pinned-days section > div > p { margin: 3px 0 2px; color: var(--muted); font-size: 9px; line-height: 1.35; }
  .horse-mobile-task-row { width: 100%; min-width: 0; padding: 7px; border: 0; border-radius: 10px; display: grid; grid-template-columns: 24px minmax(0, 1fr) 12px; gap: 6px; align-items: center; color: var(--ink); background: #f5f7f5; text-align: left; cursor: pointer; }
  .horse-mobile-task-row > span:first-child { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: var(--forest); background: #dfece4; }
  .horse-mobile-task-row.priority-critical > span:first-child { color: #9f3e2f; background: #fbe2dc; }
  .horse-mobile-task-row.horse-mobile-event-row > span:first-child { color: #9b563d; background: #f8e5dc; }
  .horse-mobile-task-row svg { width: 12px; height: 12px; }
  .horse-mobile-task-row > span:nth-child(2) { min-width: 0; }
  .horse-mobile-task-row strong, .horse-mobile-task-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .horse-mobile-task-row strong { font-size: 9px; }
  .horse-mobile-task-row small { margin-top: 2px; color: var(--muted); font-size: 7px; }
  .horse-mobile-flow-group { display: grid; gap: 7px; scroll-margin-top: 82px; }
  .horse-mobile-flow-group > h2 { margin: 6px 3px 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .horse-mobile-flow-section { border: 1px solid var(--line); border-radius: 14px; overflow: clip; scroll-margin-top: 76px; background: var(--white); box-shadow: 0 5px 16px rgba(20,49,40,.035); }
  .horse-mobile-flow-section > summary { min-height: 50px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink); font-size: 13px; font-weight: 760; cursor: pointer; list-style: none; }
  .horse-mobile-flow-section > summary::-webkit-details-marker { display: none; }
  .horse-mobile-flow-section > summary svg { width: 16px; height: 16px; color: var(--muted); transform: rotate(90deg); transition: transform .18s ease; }
  .horse-mobile-flow-section[open] > summary svg { transform: rotate(-90deg); }
  .horse-mobile-flow-section.active { border-color: #a9c2b4; box-shadow: 0 8px 24px rgba(20,49,40,.08); }
  .horse-mobile-flow-section.active > summary { color: var(--forest); background: #f4f8f5; }
  .horse-mobile-flow-content { border-top: 1px solid var(--line); }
  .horse-mobile-flow-content > .panel, .horse-mobile-flow-content > .detail-grid, .horse-mobile-flow-content > .horse-basic-layout { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .horse-mobile-flow-content .horse-tab-head { padding-top: 0; }
  .vitals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .vital { min-height: 94px; padding: 12px; }
  .vital strong { font-size: 19px; }
  .horse-basic-layout { grid-template-columns: 1fr; }
  .horse-basic-main { padding: 17px; }
  .horse-basic-head { flex-direction: column; }
  .horse-basic-head .button { width: 100%; }
  .horse-info-sections { grid-template-columns: 1fr; }
  .horse-completion { position: static; }
  .horse-tab-panel { padding: 17px; }
  .horse-tab-head { flex-direction: column; }
  .horse-tab-head .button { width: 100%; }
  .horse-tab-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .horse-tab-actions .button { padding-inline: 9px; font-size: 9px; }
  .horse-tab-actions [data-action="add-feed"] { grid-column: 1 / -1; }
  .training-summary-grid { grid-template-columns: 1fr; }
  .training-goal-card { min-height: 0; padding: 17px; flex-direction: column; }
  .training-goal-card time { width: 100%; }
  .training-goal-card.empty button { width: 100%; }
  .training-recommendation { min-height: 0; padding: 16px; }
  .training-section-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .training-event-row { grid-template-columns: 64px 32px minmax(0, 1fr); }
  .training-event-row > button, .training-event-row > .training-event-done, .training-event-row > .training-event-muted { grid-column: 2 / -1; width: 100%; text-align: center; }
  .training-event-row > button { min-height: 36px; }
  .training-feedback-head { flex-direction: column; }
  .training-feedback-actions { width: 100%; display: grid; grid-template-columns: auto 1fr 1fr; }
  .training-feedback-actions button { justify-content: center; }
  .training-feedback-grid { grid-template-columns: 1fr; }
  .horse-task-grid { grid-template-columns: 1fr; }
  .professional-list { grid-template-columns: 1fr; }
  .horse-event-card { grid-template-columns: 52px 7px minmax(0, 1fr) auto; gap: 9px; }
  .horse-event-open > span { display: none; }
  .feed-plan-grid { grid-template-columns: 1fr; }
  .feed-plan-card { padding: 15px; }
  .feed-summary { gap: 6px; }
  .feed-summary > div { min-height: 72px; padding: 10px; }
  .feed-summary strong { font-size: 19px; }
  .feed-meal-row { grid-template-columns: 58px minmax(0, 1fr); }
  .feed-meal-row [data-feed-variable] { grid-column: 2; }
  .feed-url-row { grid-template-columns: 1fr; }
  .feed-url-row .button { width: 100%; justify-content: center; }
  .stock-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stock-row > div:first-child, .stock-actions { grid-column: 1 / -1; }
  .stock-actions { flex-direction: row; }
  .blanket-weather-grid, .blanket-grid, .blanket-context-grid { grid-template-columns: 1fr; }
  .care-plan-list { grid-template-columns: minmax(0, 1fr); }
  .care-plan-item { width: 100%; min-width: 0; }
  .equipment-grid { grid-template-columns: 1fr; }
  .equipment-summary { grid-template-columns: 1fr 1fr; }
  .equipment-summary > div:last-child { grid-column: 1 / -1; }
  .list-search-control { align-items: stretch; flex-direction: column; gap: 6px; }
  .list-search-control label { width: 100%; }
  .list-search-control > span { padding-left: 2px; }
  .equipment-receipt-reminder { grid-template-columns: auto 1fr; align-items: start; }
  .equipment-receipt-reminder .button { grid-column: 1 / -1; width: 100%; }
  .inventory-card-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .marketplace-hero { min-height: 250px; padding: 23px 20px; align-items: flex-start; flex-direction: column; }
  .marketplace-hero > div > span { width: 42px; height: 42px; }
  .marketplace-hero h2 { font-size: 25px; }
  .marketplace-hero > strong { min-width: 0; text-align: left; }
  .marketplace-controls { align-items: stretch; flex-direction: column; }
  .marketplace-controls label { width: 100%; min-width: 0; }
  .marketplace-controls > div { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .marketplace-controls > div button { flex: 0 0 auto; }
  .marketplace-grid { grid-template-columns: 1fr; }
  .marketplace-card { min-height: 310px; }
  .marketplace-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketplace-photo-grid article button { width: 44px; height: 44px; top: 6px; right: 6px; }
  .marketplace-price-note, .marketplace-photo-field > label small, .marketplace-photo-grid > p, .marketplace-inline-error p { font-size: 12px; }
  .marketplace-inline-error strong { font-size: 14px; }
  .marketplace-section-head { align-items: flex-start; }
  .marketplace-own-row { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; }
  .marketplace-own-edit { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .marketplace-own-actions { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .marketplace-own-actions button { min-width: 0; height: auto; padding: 7px 6px; line-height: 1.25; }
  .marketplace-own-actions button:only-child { grid-column: 1 / -1; }
  .community-summary { gap: 6px; }
  .community-summary > div { min-height: 65px; padding: 10px 8px; grid-template-columns: 25px auto; column-gap: 6px; }
  .community-summary svg { width: 15px; }
  .community-summary strong { font-size: 16px; }
  .community-summary span { grid-column: 1 / -1; padding-left: 2px; }
  .community-layout { min-height: 520px; height: auto; grid-template-columns: 1fr; }
  .community-sidebar { max-height: none; overflow: visible; }
  .community-user-search { border-radius: 15px 15px 0 0; }
  .community-page:not(.chat-open) .community-chat-panel { display: none; }
  .community-page.chat-open { width: 100%; height: var(--app-visual-height, 100dvh); padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); position: fixed; top: var(--app-visual-offset-top, 0); right: 0; bottom: auto; left: 0; z-index: 80; overflow: hidden; background: var(--paper); }
  .community-page.chat-open > .page-head, .community-page.chat-open > .community-summary, .community-page.chat-open > .community-load-error { display: none; }
  .community-page.chat-open .community-sidebar { display: none; }
  .community-page.chat-open .community-layout { min-height: 0; height: 100%; }
  .community-page.chat-open .community-chat-panel { height: 100%; border: 0; border-radius: 0; }
  .community-chat-back, .community-chat-close { min-height: 31px; padding: 0 7px; border: 0; border-radius: 8px; display: inline-flex; align-items: center; gap: 3px; color: var(--forest); background: #e8efe9; cursor: pointer; font: inherit; font-size: 7px; font-weight: 800; }
  .community-chat-back svg { width: 14px; }
  .community-chat-panel > header { min-height: 58px; padding: 8px; gap: 7px; }
  .community-chat-panel > header .community-avatar { width: 32px; height: 32px; }
  .community-messages { padding: 13px 10px; }
  .community-message > div { max-width: 86%; padding: 9px 10px 7px; }
  .community-message p { font-size: 9.5px; }
  .community-chat-form { padding: 8px; grid-template-columns: minmax(0, 1fr) 40px; }
  .community-chat-form textarea { min-height: 41px; font-size: 16px; }
  .community-chat-form button { width: 40px; min-height: 40px; padding: 0; justify-content: center; }
  .community-chat-form button span { display: none; }
  .community-search-result { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .expense-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expense-row { padding: 13px 0; grid-template-columns: 68px minmax(0, 1fr) 14px; gap: 5px 9px; }
  .expense-row .expense-category { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .expense-row > div { grid-column: 2; grid-row: 1; }
  .expense-row > b { grid-column: 2; grid-row: 2; }
  .expense-row > svg { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .ori-feed-restock-grid, .ori-new-feed { grid-template-columns: 1fr; }
  .ori-new-feed .button { grid-column: auto; }
  .horse-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .horse-entry-top { align-items: flex-start; flex-direction: column; gap: 3px; }
  .task-layout { grid-template-columns: 1fr; }
  .task-column { min-height: auto; }
  .week-grid { overflow-x: auto; grid-template-columns: repeat(7, 85px); }
  .calendar-page .head-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .calendar-page .head-actions .button { min-width: 0; padding-inline: 9px; display: inline-flex; justify-content: center; font-size: 8px; }
  .calendar-horse-controls { padding: 11px; grid-template-columns: 1fr; gap: 9px; }
  .calendar-horse-filter-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
  .calendar-horse-filter { min-height: 38px; flex: 0 0 auto; font-size: 11px; }
  .calendar-horse-controls > .text-button { justify-self: start; min-height: 36px; }
  .calendar-all-day-overview { margin-bottom: 10px; }
  .calendar-all-day-overview > header { padding: 10px; align-items: flex-start; }
  .calendar-all-day-overview > header > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .calendar-all-day-overview > header strong { font-size: 14px; }
  .calendar-all-day-overview > header span { font-size: 11px; }
  .calendar-all-day-overview > header small { max-width: 122px; font-size: 10px; line-height: 1.3; text-align: right; }
  .calendar-all-day-overview-list { padding: 7px; gap: 7px; }
  .calendar-all-day-group { flex-basis: min(280px, 84vw); }
  .calendar-all-day-date { min-height: 40px; padding: 7px 10px; }
  .calendar-all-day-date strong { font-size: 12px; }
  .calendar-all-day-date span { min-width: 23px; height: 23px; font-size: 11px; }
  .calendar-all-day-item { min-height: 48px; }
  .calendar-all-day-item-main { padding: 7px 9px; grid-template-columns: 5px minmax(0, 1fr) 16px; gap: 9px; }
  .calendar-all-day-item-mark { width: 5px; height: 34px; }
  .calendar-all-day-item strong { font-size: 13px; }
  .calendar-all-day-item small { font-size: 11px; }
  .calendar-all-day-item-main > svg { width: 16px; }
  .calendar-all-day-complete { padding: 6px 7px; font-size: 10px; }
  .calendar-all-day-completed { font-size: 10px; }
  .calendar-view-switch-wrap { justify-content: stretch; }
  .calendar-view-switch { width: 100%; }
  .calendar-view-switch button { min-width: 0; flex: 1; justify-content: center; }
  .calendar-main { padding: 12px; overflow: hidden; }
  .calendar-toolbar { align-items: flex-start; gap: 10px; }
  .calendar-toolbar h2 { max-width: 135px; font-size: 16px; line-height: 1.15; }
  .calendar-range-state { min-height: 52px; padding: 10px; align-items: flex-start; }
  .calendar-range-state strong { font-size: 14px; }
  .calendar-range-state small { font-size: 12px; }
  .calendar-range-state.error { flex-wrap: wrap; }
  .calendar-range-state.error button { min-height: 44px; width: 100%; margin-left: 0; font-size: 13px; }
  .calendar-timeline-scroll { height: 33vh; max-height: 33vh; scroll-snap-type: x proximity; scrollbar-gutter: auto; }
  .calendar-timeline-scroll.compact-facility-timeline { height: 31vh; max-height: 31vh; }
  .calendar-timeline { min-width: 820px; grid-template-columns: 48px repeat(7, minmax(108px, 1fr)); }
  .calendar-timeline.three-day { width: 100%; min-width: max(100%, 306px); grid-template-columns: 48px repeat(3, minmax(86px, 1fr)); }
  .timeline-day { scroll-snap-align: start; }
  .timeline-all-day-label { padding-inline: 4px; font-size: 6px; }
  .calendar-month { scroll-snap-type: x proximity; }
  .month-weekdays, .month-grid { min-width: 700px; }
  .month-cell { min-height: 105px; scroll-snap-align: start; }
  .day-column { min-height: 400px; }
  .day-add-hint { opacity: .7; }
  .stable-hero { min-height: 300px; padding: 26px 22px; }
  .stable-hero h2 { font-size: 34px; }
  .stable-operation-grid { grid-template-columns: 1fr; }
  .stable-facility-card { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .stable-facility-icon { width: 38px; height: 38px; }
  .stable-facility-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .stable-facility-actions b { grid-column: 1 / -1; }
  .stable-facility-actions button { width: 100%; }
  .stable-reservation-row { grid-template-columns: 58px minmax(0, 1fr); }
  .stable-reservation-actions { grid-column: 2; }
  .stable-reservation-actions button { flex: 1; }
  .facility-toggle-grid { grid-template-columns: 1fr; }
  .reservation-policy-panel .panel-head { align-items: stretch; flex-direction: column; }
  .reservation-policy-panel .panel-head button { width: 100%; justify-content: center; }
  .reservation-policy-overview { grid-template-columns: 1fr 1fr; }
  .reservation-policy-overview > div { min-height: 100px; }
  .reservation-policy-options, .reservation-scope-options { grid-template-columns: 1fr; }
  .reservation-policy-option, .reservation-policy-option.compact { min-height: 0; }
  .reservation-policy-recommendation { grid-template-columns: 1fr; }
  .reservation-policy-recommendation p { grid-column: auto; }
  .facility-closure-card { grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
  .facility-closure-icon { width: 34px; height: 34px; }
  .facility-closure-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facility-closure-actions button { min-height: 44px; justify-content: center; }
  .closure-weekday-picker > div { gap: 3px; }
  .closure-weekday-picker label { min-height: 44px; }
  .reservation-relocation-warning button { width: 100%; min-height: 44px; justify-content: center; }
  .facility-reservation-inline-error { padding: 14px; }
  .facility-reservation-inline-error > svg { width: 22px; height: 22px; }
  .facility-reservation-inline-error strong { font-size: 16px; }
  .facility-reservation-inline-error p { margin-top: 6px; font-size: 14px; line-height: 1.45; }
  .modal .field input, .modal .field select, .modal .field textarea { min-height: 44px; }
  .modal-actions .button { min-height: 44px; }
  .facility-calendar-controls { grid-template-columns: 1fr; align-items: stretch; }
  .facility-filter-list { max-height: 112px; overflow: auto; }
  .facility-calendar-controls .calendar-view-switch { width: 100%; }
  .facility-booking-rules { grid-template-columns: 1fr; }
  .facility-reservation-facts { grid-template-columns: 1fr; }
  .facility-reservation-detail { align-items: flex-start; }
  .facility-reservation-detail-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .facility-reservation-detail-actions .button { width: 100%; justify-content: center; }
  .box-section-group > header { align-items: flex-start; }
  .box-section-meta { align-items: flex-end; flex-direction: column; }
  .box-section-delete span { display: none; }
  .stable-delete-zone { align-items: stretch; flex-direction: column; }
  .stable-delete-zone .button { width: 100%; }
  .stable-unassigned { align-items: flex-start; flex-wrap: wrap; }
  .stable-unassigned button { width: 100%; }
  .stable-placement-list > article { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .stable-placement-horse { width: 38px; height: 38px; }
  .stable-placement-actions { grid-column: 1 / -1; }
  .stable-placement-actions .button { flex: 1; }
  .stable-routine-row { grid-template-columns: 52px 30px minmax(0, 1fr); }
  .stable-routine-row button { grid-column: 2 / -1; width: 100%; }
  .stable-routine-group > summary { grid-template-columns: 50px 30px minmax(0, 1fr) 17px; padding: 10px; }
  .stable-routine-horses { grid-template-columns: 1fr; }
  .stable-routine-group-actions { align-items: stretch; flex-direction: column; }
  .stable-routine-group-actions button { justify-content: center; }
  .routine-lots-panel .panel-head { align-items: stretch; flex-direction: column; }
  .routine-lots-panel .panel-head button { min-height: 44px; justify-content: center; }
  .routine-lot-grid { grid-template-columns: 1fr; }
  .routine-lot-card { padding: 13px; }
  .routine-lot-card header { grid-template-columns: 38px minmax(0, 1fr); }
  .routine-lot-card header > b { grid-column: 2; justify-self: start; }
  .routine-lot-card dl { grid-template-columns: 1fr 1fr; }
  .routine-lot-card dl div:last-child { grid-column: auto; }
  .routine-lot-card footer { display: grid; grid-template-columns: 1fr 1fr; }
  .routine-lot-card footer button { min-height: 44px; justify-content: center; }
  .routine-lot-selection > p { font-size: 11px; }
  .routine-lot-selection > div:last-child { grid-template-columns: 1fr; }
  .routine-lot-horse-choice { min-height: 52px; align-items: center; }
  .routine-lot-horse-choice strong { font-size: 13px; }
  .routine-lot-horse-choice small { font-size: 10px; }
  .routine-lot-transfer-note { font-size: 11px; }
  .placement-approval-summary strong { font-size: 14px; }
  .placement-approval-summary span, .placement-approval-note { font-size: 11px; }
  .quarantine-intake-choice > strong { font-size: 14px; }
  .quarantine-intake-choice label, .quarantine-intake-choice small, .quarantine-safety-note { font-size: 12px; }
  .quarantine-date-grid, .quarantine-explicit-grid, .quarantine-detail-grid { grid-template-columns: 1fr; }
  .quarantine-explicit-grid legend, .quarantine-explicit-grid label, .quarantine-explicit-grid textarea { font-size: 12px; }
  .horse-quarantine-panel { grid-template-columns: 42px minmax(0, 1fr); }
  .horse-quarantine-panel > button { width: 100%; grid-column: 1 / -1; justify-content: center; }
  .horse-quarantine-panel h3 { font-size: 20px; }
  .horse-quarantine-panel p, .horse-quarantine-panel em, .quarantine-detail-summary p, .quarantine-detail-note p, .quarantine-detail-grid li, .quarantine-detail-grid p { font-size: 12px; }
  .quarantine-detail-summary strong { font-size: 17px; }
  .quarantine-detail-actions { display: grid; grid-template-columns: 1fr; }
  .quarantine-detail-actions .button { width: 100%; justify-content: center; }
  .quarantine-audit > div { align-items: flex-start; flex-direction: column; }
  .quarantine-audit summary, .quarantine-audit strong, .quarantine-audit span { font-size: 11px; }
  .stable-feed-selection { padding: 12px; }
  .stable-feed-selection > div:first-child strong { font-size: 14px; }
  .stable-feed-selection > div:first-child span, .stable-supply-empty { font-size: 11px; }
  .stable-supply-choice-grid { grid-template-columns: 1fr; }
  .stable-supply-choice { min-height: 52px; }
  .stable-supply-choice strong { font-size: 13px; }
  .stable-supply-choice small { font-size: 10px; }
  .stable-supply-choice input { width: 20px; height: 20px; }
  .stable-feeding-panel .panel-head { align-items: flex-start; flex-direction: column; }
  .stable-feed-legend { justify-content: flex-start; }
  .stable-feed-row { grid-template-columns: 1fr; }
  .stable-feed-row > button { width: 100%; }
  .stable-feed-row.private-feed-summary { grid-template-columns: 1fr; gap: 9px; }
  .private-feed-lock { min-height: 30px; }
  .private-stock-summary { align-items: flex-start; }
  .private-stock-summary strong { font-size: 14px; }
  .private-stock-summary span { font-size: 11px; }
  .stable-feed-meals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stable-feed-meals > span { min-width: 0; }
  .stable-feed-pending-list > article { align-items: stretch; flex-direction: column; }
  .stable-feed-pending-list strong { font-size: 13px; }
  .stable-feed-pending-list small { font-size: 10px; white-space: normal; }
  .stable-feed-pending-list button { min-height: 44px; font-size: 11px; }
  .stable-horse-shortcuts { align-items: stretch; }
  .stable-horse-shortcuts > span { width: 100%; }
  .stable-horse-shortcuts button { flex: 1 1 125px; justify-content: center; }
  .stable-expenses-page .page-head { display: grid; grid-template-columns: 1fr; }
  .stable-expenses-page .head-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .stable-expenses-page .head-actions .button.secondary { display: inline-flex; }
  .stable-expenses-page .head-actions .button { min-height: 46px; padding-inline: 10px; justify-content: center; font-size: 9px; }
  .stable-expense-filters { padding: 13px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .stable-expense-filters .stable-expense-search { grid-column: 1 / -1; min-height: 46px; }
  .stable-expense-filters input, .stable-expense-filters select { min-height: 46px; font-size: 16px; }
  .stable-expense-filters > label:nth-of-type(n+4) { grid-column: 1 / -1; }
  .stable-expense-reset { min-height: 44px; grid-column: 1 / -1; justify-content: center; }
  .stable-expense-kpis { gap: 8px; }
  .stable-expense-kpis article { min-height: 120px; padding: 14px; }
  .stable-expense-kpis strong { font-size: 19px; overflow-wrap: anywhere; }
  .stable-expense-kpis small { font-size: 9px; }
  .stable-expense-list-panel { padding: 14px; }
  .stable-expense-row { padding: 13px 1px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .stable-expense-row time { grid-column: 1; }
  .stable-expense-main { grid-column: 1; grid-row: 2; }
  .stable-expense-row > b { grid-column: 2; grid-row: 1; align-self: start; font-size: 13px; }
  .stable-expense-state { grid-column: 2; grid-row: 2; align-self: start; min-height: 28px; display: inline-flex; align-items: center; }
  .stable-expense-row time strong, .stable-expense-main strong { font-size: 13px; }
  .stable-expense-row time span, .stable-expense-main span { font-size: 11px; white-space: normal; }
  .box-grid { grid-template-columns: repeat(3, 1fr); }
  .stable-modules { grid-template-columns: repeat(2, 1fr); }
  .module-controls { flex-direction: column; align-items: stretch; }
  .module-controls .filter-search { width: 100%; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .module-card { min-height: 155px; padding: 14px; }
  .module-card h3 { font-size: 11px; }
  .module-detail-hero { padding: 26px 22px; grid-template-columns: 1fr; }
  .module-detail-hero h1 { font-size: 32px; }
  .feature-list { grid-template-columns: 1fr; }
  .modal-body { grid-template-columns: 1fr; }
  .modal .field input, .modal .field select, .modal .field textarea { font-size: 16px; }
  .field.full { grid-column: auto; }
  .modal-body > .full { grid-column: auto; }
  .horse-location-manual, .box-create-batch, .stable-restock-new-fields, .stable-restock-package-fields { grid-template-columns: 1fr; }
  .stable-catalog-attribution { align-items: flex-start; flex-direction: column; font-size: 10px; }
  .stable-restock-new-fields > .full { grid-column: auto; }
  .feed-restock-history-row { align-items:flex-start; }
  .bulk-routine-selection-head { align-items: stretch; flex-direction: column; }
  .bulk-routine-selection > div:last-child { grid-template-columns: 1fr; }
  .training-orientations > div, .training-orientation-own { grid-template-columns: 1fr; }
  .training-orientation-own input { font-size: 16px; }
  .box-range-preview { grid-column: auto; }
  .box-edit-occupancy { align-items: stretch; flex-direction: column; }
  .box-edit-occupancy .button { justify-content: center; }
  .bottom-nav { height: 72px; padding: 6px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); position: fixed; inset: auto 0 0; z-index: 32; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(251,250,246,.96); backdrop-filter: blur(18px); }
  .bottom-nav a { border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #8c9490; font-size: 7px; font-weight: 650; position: relative; }
  .bottom-nav svg { width: 19px; height: 19px; }
  .bottom-nav a.active { color: var(--forest); background: var(--sage); }
  .toast { right: 14px; bottom: 86px; }
  .ori-fab { width: 50px; min-width: 50px; height: 50px; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 0; border-radius: 17px; }
  .ori-fab span { display: none; }
  .ori-panel { width: 100%; height: min(calc(var(--app-visual-height) - 8px), 760px); max-height: calc(var(--app-visual-height) - 8px); inset: auto 0 0; border: 0; border-radius: 25px 25px 0 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
  .ori-body { min-height: 0; max-height: none; padding: 18px max(17px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(17px, env(safe-area-inset-left)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-padding: 18px 0 calc(100px + env(safe-area-inset-bottom)); }
  .ori-compose textarea, .ori-horse-label select { font-size: 16px; }
  .ori-compose textarea { min-height: 104px; max-height: min(34dvh, 220px); resize: none; }
  .ori-dictation-field { scroll-margin-block: 18px 110px; }
  .ori-input-tools button, .ori-input-tools label { min-height:42px; flex:1 1 calc(50% - 6px); font-size:12px; }
  .ori-prepare { min-height: 48px; font-size: 14px; }
  .ori-text-label { grid-template-columns: 1fr; gap: 3px; }
  .ori-submit-hint { text-align: left; }
  .ori-head { padding-left: 17px; }
  .ori-event-choice, .ori-turnout-conflict { padding: 14px; }
  .ori-choice-heading small, .ori-event-choice.resolved small { font-size: 12px; }
  .ori-choice-heading strong, .ori-event-choice.resolved strong { font-size: 15px; }
  .ori-choice-heading p, .ori-turnout-options button small { font-size: 14px; }
  .ori-time-choice { grid-template-columns: 1fr; }
  .ori-time-choice label { font-size: 13px; }
  .ori-time-choice input, .ori-time-choice .button, .ori-time-options button, .ori-all-day-choice, .ori-event-choice.resolved .button { min-height: 44px; font-size: 16px; }
  .ori-time-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ori-turnout-options button { min-height: 58px; padding: 11px 12px; }
  .ori-turnout-options button strong { font-size: 15px; }
  .ori-proposal-actions.blocked { flex-direction: column; }
  .ori-proposal-actions.blocked .button { min-height: 44px; }
  body.ori-open { overflow: hidden; overscroll-behavior: none; }
  body.ori-open .bottom-nav { transform: translateY(100%); }
  .record-feed { padding: 3px 16px; }
  .record-item { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .record-kind { width: 38px; height: 38px; border-radius: 12px; }
  .record-actions button { flex: 1; justify-content: center; }
  .entry-history-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .entry-history-change > div { grid-template-columns: 1fr; }
  .entry-history-change b { display: none; }
  .record-aside { padding: 17px; }
  .ori-admin-stats { grid-template-columns: 1fr 1fr; }
  .ori-admin-stats article:last-child { grid-column: auto; min-height: 94px; }
  .ori-rules-list, .ori-examples { padding: 16px; }
  .ori-rule-card { grid-template-columns: 36px minmax(0, 1fr); }
  .ori-rule-card > .text-button { grid-column: 2; justify-self: start; }
  .daily-routine-note { margin: 0 15px 14px; }
  .daily-routine-columns { padding: 0 15px; grid-template-columns: 1fr; gap: 22px; }
  .daily-routine-section-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .daily-routine-item { grid-template-columns: 52px 32px minmax(0, 1fr); }
  .daily-routine-item > button, .daily-routine-lock { grid-column: 3; justify-self: start; }
  .daily-routine-requests { margin: 18px 15px 0; }
  .daily-routine-requests article { align-items: flex-start; flex-direction: column; }
}


.staff-week-toolbar { margin-bottom: 14px; padding: 12px 16px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; }
.staff-week-toolbar > button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--forest); background: var(--white); font-size: 23px; }
.staff-week-toolbar > div { display: grid; place-items: center; gap: 4px; text-align: center; }
.staff-week-toolbar strong { font-family: var(--serif); font-size: 18px; }
.staff-week-toolbar div button { border: 0; color: var(--muted); background: transparent; font-size: 10px; text-decoration: underline; }
.staff-filter-panel { margin-bottom: 14px; padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.staff-filter-panel > div:first-child { display: grid; gap: 3px; }
.staff-filter-panel > div:first-child span { color: var(--muted); font-size: 10px; }
.staff-filter-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.staff-filter-list label { min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); background: var(--white); font-size: 10px; font-weight: 750; }
.staff-filter-list input { width: 17px; height: 17px; accent-color: var(--forest); }
.staff-fund-toolbar { margin-bottom: 14px; padding: 14px 16px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.staff-fund-toolbar > div { display: grid; gap: 4px; }
.staff-fund-toolbar > div span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.staff-fund-toolbar label, .employee-overview-actions label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.staff-fund-toolbar input, .employee-overview-actions input { min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); font: inherit; font-size: 12px; text-transform: none; }
.staff-workload-grid { margin-bottom: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.staff-workload-grid article { min-height: 190px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); display: flex; flex-direction: column; gap: 9px; }
.staff-workload-grid article.above_average { border-color: #e5c4b6; background: #fff7f3; }
.staff-workload-grid article.below_average { border-color: #d8dfe2; background: #f6f9fa; }
.staff-workload-grid article.over_fund { border-color: #dfaaa1; background: #fff1ee; }
.staff-workload-grid article.under_fund { border-color: #e4d2a8; background: #fffaf0; }
.staff-workload-grid span, .staff-workload-grid small, .staff-workload-grid p { color: var(--muted); font-size: 9px; line-height: 1.4; }
.staff-workload-grid header { display: grid; gap: 2px; }
.staff-workload-grid header span { color: var(--ink); font-size: 12px; font-weight: 850; }
.staff-workload-grid dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.staff-workload-grid dl div { padding: 8px; border-radius: 10px; background: rgba(255,255,255,.72); display: grid; gap: 2px; }
.staff-workload-grid dl dt { color: var(--muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.staff-workload-grid dl dd { margin: 0; color: var(--forest); font-size: 14px; font-weight: 850; }
.staff-workload-grid dl .over dd { color: #a34234; }
.staff-workload-grid p { margin: 2px 0 0; color: #944b38; }
.staff-workload-grid p.quiet { color: var(--muted); }
.staff-average { margin: 0 0 14px; color: var(--muted); font-size: 10px; text-align: right; }
.employee-overview-actions { display: flex; align-items: end; gap: 12px; }
.staff-shift-confirmation-note { padding: 11px 13px; border-radius: 12px; display: flex; align-items: flex-start; gap: 9px; color: #315b42; background: #edf5ee; font-size: 10px; line-height: 1.45; }
.staff-shift-confirmation-note svg { width: 17px; flex: 0 0 auto; }
.staff-schedule-panel { margin-bottom: 14px; padding: 12px; overflow-x: auto; }
.staff-work-shift-calendar { margin-bottom: 14px; }
.staff-work-shift-calendar > .staff-schedule-panel { margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.staff-week-grid { min-width: 850px; display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 8px; }
.staff-day { min-height: 250px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); overflow: hidden; }
.staff-day.today { border-color: #94b09e; box-shadow: inset 0 0 0 1px #b6cdbc; }
.staff-day header { min-height: 52px; padding: 9px 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 5px; background: var(--white); }
.staff-day header span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.staff-day header strong { color: var(--forest); font-size: 11px; }
.staff-day > div { padding: 8px; display: grid; gap: 7px; }
.staff-shift { width: 100%; min-height: 76px; padding: 9px; border: 1px solid #cbd9cf; border-radius: 11px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--ink); background: #f1f8f3; text-align: left; }
.staff-shift:hover, .staff-shift:focus-visible { border-color: var(--forest); outline: none; }
.staff-shift.completed { background: #eef5fa; border-color: #cbdbe5; }
.staff-shift.cancelled { opacity: .58; text-decoration: line-through; }
.staff-shift time { color: var(--forest); font-size: 10px; font-weight: 850; }
.staff-shift strong { font-size: 10px; }
.staff-shift small, .staff-day-empty { color: var(--muted); font-size: 8px; line-height: 1.35; }
.staff-day-empty { padding: 8px 3px; display: block; text-align: center; }
.staff-leave-panel { padding: 18px; }
.staff-leave-list { display: grid; gap: 8px; }
.staff-leave-row { padding: 13px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.staff-leave-row > div:first-child { display: grid; gap: 4px; }
.staff-leave-row span, .staff-leave-row p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.staff-leave-row > b { padding: 5px 8px; border-radius: 999px; color: #805c1f; background: #fff4df; font-size: 8px; }
.staff-leave-row.approved > b { color: #286345; background: #e7f3eb; }
.staff-leave-row.rejected > b { color: #934c38; background: #fbe9e2; }
.staff-leave-row > div:last-child { display: flex; gap: 7px; }
.staff-leave-row .button { min-height: 36px; padding: 7px 10px; font-size: 8px; }
.staff-empty, .staff-schedule-loading { min-height: 130px; padding: 25px; display: grid; place-items: center; gap: 9px; color: var(--muted); text-align: center; }
.staff-shift-detail, .staff-leave-note, .boarding-adjustment-intro, .boarding-preview-summary, .finance-period-payment-note { padding: 14px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: flex-start; gap: 10px; background: var(--surface-soft); }
.staff-shift-detail svg, .staff-leave-note svg, .boarding-adjustment-intro svg, .boarding-preview-summary svg, .finance-period-payment-note svg { width: 19px; flex: 0 0 auto; color: var(--forest); }
.staff-shift-detail > div, .boarding-adjustment-intro > div, .boarding-preview-summary > div, .finance-period-payment-note > div { display: grid; gap: 5px; }
.staff-shift-detail span, .staff-shift-detail p, .staff-leave-note span, .boarding-adjustment-intro span, .boarding-preview-summary span, .finance-period-payment-note span { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.staff-batch-card { padding: 15px; border: 1px solid #d7e0d9; border-radius: 15px; background: #f8faf7; }
.staff-batch-card > header { margin-bottom: 13px; display: flex; align-items: center; gap: 10px; }
.staff-batch-card > header > span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--forest); font-size: 9px; font-weight: 850; }
.staff-batch-card > header strong, .staff-batch-card > header small { display: block; }
.staff-batch-card > header strong { font-size: 10px; }
.staff-batch-card > header small { margin-top: 2px; color: var(--muted); font-size: 7.5px; }
.staff-batch-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.staff-batch-members label { min-height: 55px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; gap: 9px; background: white; cursor: pointer; }
.staff-batch-members input { width: 19px; height: 19px; accent-color: var(--forest); }
.staff-batch-members strong, .staff-batch-members small { display: block; }
.staff-batch-members strong { font-size: 9px; }
.staff-batch-members small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.staff-batch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.staff-batch-grid > .full { grid-column: 1 / -1; }
.staff-batch-preview { padding: 13px; border-radius: 13px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #e9f2e9; }
.staff-batch-preview span { min-width: 0; color: #587164; font-size: 7px; text-align: center; }
.staff-batch-preview strong { display: block; margin-bottom: 2px; color: var(--forest); font-size: 16px; }
.staff-batch-safety { padding: 11px 13px; border: 1px solid #d5dfd6; border-radius: 12px; display: flex; align-items: flex-start; gap: 9px; color: #52685c; background: #f5f8f4; font-size: 8px; line-height: 1.45; }
.staff-batch-safety svg { width: 17px; flex: 0 0 auto; }
.staff-batch-safety strong { display: block; margin-bottom: 2px; }
.boarding-horse-selection { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.boarding-horse-selection legend { padding: 0 6px; font-weight: 800; }
.boarding-horse-selection > p { margin: 0 0 10px; color: var(--muted); font-size: 10px; }
.boarding-horse-selection > div { max-height: 300px; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.boarding-horse-selection label { min-height: 48px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; gap: 9px; }
.boarding-horse-selection input { width: 19px; height: 19px; accent-color: var(--forest); }
.boarding-horse-selection label span { display: grid; gap: 3px; }
.boarding-horse-selection small { color: var(--muted); font-size: 9px; }
.boarding-preview-totals { display: flex; flex-wrap: wrap; gap: 8px; }
.boarding-preview-totals > span { flex: 1 1 180px; padding: 12px; border-radius: 12px; background: var(--surface-soft); display: grid; gap: 4px; }
.boarding-preview-totals small { color: var(--muted); font-size: 9px; }
.boarding-preview-list { max-height: 310px; overflow-y: auto; display: grid; gap: 6px; }
.boarding-preview-list article { min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.boarding-preview-list span { font-weight: 750; }
.boarding-preview-skipped { padding: 11px; border-radius: 11px; color: #805c1f; background: #fff4df; display: flex; gap: 8px; }
.boarding-preview-skipped svg { width: 17px; }
.boarding-preview-actions { display: flex; justify-content: flex-end; gap: 9px; }
.expense-row.editable { cursor: pointer; border-radius: 10px; }
.expense-row.editable:hover, .expense-row.editable:focus-visible { background: var(--surface-soft); outline: none; }
.staff-work-metrics { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.staff-duty-strip { margin-bottom: 14px; display: grid; gap: 8px; }
.staff-duty-card { min-height: 88px; padding: 14px 16px; border: 1px solid #bdd2c3; border-radius: 16px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: center; gap: 12px; color: var(--ink); background: #eff8f1; text-align: left; }
.staff-duty-card.empty { border-color: var(--line); background: var(--surface-soft); }
.staff-duty-card > span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--forest); background: var(--white); }
.staff-duty-card > span svg, .staff-duty-card > svg { width: 18px; }
.staff-duty-card > div { display: grid; gap: 3px; }
.staff-duty-card small, .staff-duty-card p { margin: 0; color: var(--muted); font-size: 10px; }
.staff-duty-card strong { font-family: var(--serif); font-size: 19px; }
.staff-work-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.staff-work-layout > article:last-child { grid-column: 1 / -1; }
.staff-assigned-tasks-priority { margin-bottom: 14px; border-color: #a9c2ae; background: linear-gradient(135deg, #f2f8f3, #fff); box-shadow: 0 8px 24px rgba(28, 69, 50, .07); }
.staff-assigned-tasks-priority .panel-head { align-items: center; }
.staff-assigned-tasks-priority .panel-head .kicker { margin: 0 0 3px; color: var(--clay); }
.staff-assigned-task-count { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--white); background: var(--forest); font-size: 14px; font-weight: 850; }
.staff-assigned-task-list { display: grid; gap: 9px; }
.staff-assigned-task { width: 100%; min-height: 70px; padding: 11px 13px; border: 1px solid #bdd2c3; border-radius: 13px; display: grid; grid-template-columns: 36px 58px minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; color: var(--ink); background: var(--white); text-align: left; }
.staff-assigned-task:hover, .staff-assigned-task:focus-visible { border-color: #7da088; background: #f8fcf8; outline: none; }
.staff-assigned-task.high { border-color: #d6a99e; background: #fff8f6; }
.staff-assigned-task-status { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--forest); background: var(--sage); }
.staff-assigned-task.high .staff-assigned-task-status { color: #924c3b; background: #f7e5e2; }
.staff-assigned-task-status svg { width: 17px; }
.staff-assigned-task time { color: var(--forest); font-size: 10px; font-weight: 850; }
.staff-assigned-task > div { min-width: 0; display: grid; gap: 4px; }
.staff-assigned-task strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.staff-assigned-task small { color: var(--muted); font-size: 9px; }
.staff-assigned-task > b { color: var(--forest); font-size: 9px; white-space: nowrap; }
.staff-assigned-task > svg { width: 16px; color: var(--muted); }
.staff-assigned-task-empty { min-height: 66px; padding: 12px 14px; border: 1px dashed #bad0c0; border-radius: 13px; display: flex; align-items: center; gap: 11px; color: var(--forest); background: rgba(255,255,255,.75); }
.staff-assigned-task-empty > svg { width: 22px; }
.staff-assigned-task-empty > div { display: grid; gap: 3px; }
.staff-assigned-task-empty strong { font-size: 11px; }
.staff-assigned-task-empty small { color: var(--muted); font-size: 9px; }
.staff-work-task-list, .staff-horse-list, .staff-maintenance-list { display: grid; gap: 7px; }
.staff-work-task, .staff-horse-card, .staff-maintenance-card { width: 100%; min-height: 64px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) 16px; align-items: center; gap: 10px; color: var(--ink); background: var(--white); text-align: left; }
.staff-work-task:hover, .staff-horse-card:hover, .staff-maintenance-card:hover { background: var(--surface-soft); }
.staff-work-task > div, .staff-horse-card > div, .staff-maintenance-card > div { min-width: 0; display: grid; gap: 4px; }
.staff-work-task strong, .staff-horse-card strong, .staff-maintenance-card strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.staff-work-task small, .staff-horse-card small, .staff-maintenance-card small { color: var(--muted); font-size: 9px; }
.staff-work-task > svg, .staff-horse-card > svg, .staff-maintenance-card > svg { width: 16px; color: var(--muted); }
.staff-work-task .priority { padding: 5px 7px; border-radius: 999px; color: #805c1f; background: #fff4df; font-size: 7px; font-weight: 800; }
.staff-horse-avatar { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--forest); background: var(--sage); font-size: 11px; font-weight: 850; }
.staff-maintenance-card time { color: var(--forest); font-size: 10px; font-weight: 850; }
.staff-routine-lots-panel { grid-column: 1 / -1; }
.staff-routine-priority { margin-bottom: 14px; }
.staff-duty-strip.embedded { margin: 0; }
.staff-routine-lot-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.staff-routine-lot { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); overflow: hidden; }
.staff-routine-lot.completed { opacity: .7; }
.staff-routine-lot > summary { min-height: 61px; padding: 11px; display: grid; grid-template-columns: auto minmax(0, 1fr) 15px; align-items: center; gap: 9px; cursor: pointer; list-style: none; }
.staff-routine-lot > summary::-webkit-details-marker { display: none; }
.staff-routine-lot > summary time { color: var(--forest); font-size: 10px; font-weight: 850; }
.staff-routine-lot > summary div { min-width: 0; display: grid; gap: 3px; }
.staff-routine-lot > summary strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.staff-routine-lot > summary small { color: var(--muted); font-size: 8px; }
.staff-routine-lot > summary > svg { width: 14px; color: var(--muted); transition: transform .2s; }
.staff-routine-lot[open] > summary > svg { transform: rotate(90deg); }
.staff-routine-lot > div { display: flex; flex-wrap: wrap; gap: 5px; }
.staff-routine-lot > div { padding: 9px 11px 11px; border-top: 1px solid var(--line); background: var(--white); }
.staff-routine-lot > div button, .staff-routine-lot > div > span { min-height: 32px; padding: 6px 8px; border: 1px solid #cbd8ce; border-radius: 999px; color: var(--forest); background: var(--white); font-size: 8px; font-weight: 800; }
.staff-routine-lot > div button:hover { background: #e7f1e8; }
.staff-completed-routines { grid-column: 1 / -1; }
.staff-completed-routines > summary, .staff-secondary-feeding > summary { min-height: 43px; padding: 9px 11px; border: 1px dashed #cfd6d0; border-radius: 11px; display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; list-style: none; font-size: 9px; font-weight: 750; }
.staff-completed-routines > summary::-webkit-details-marker, .staff-secondary-feeding > summary::-webkit-details-marker { display: none; }
.staff-completed-routines > summary svg, .staff-secondary-feeding > summary svg { width: 14px; }
.staff-completed-routines > summary svg:last-child, .staff-secondary-feeding > summary svg:last-child { margin-left: auto; transition: transform .2s; }
.staff-completed-routines[open] > summary svg:last-child, .staff-secondary-feeding[open] > summary svg:last-child { transform: rotate(90deg); }
.staff-completed-routines > div, .staff-secondary-feeding > div { margin-top: 7px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.staff-feeding-schedule-panel { grid-column: 1 / -1; }
.staff-feeding-schedule { display: grid; gap: 8px; }
.staff-feeding-group { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.staff-feeding-group.assigned { border-color: #9fbea8; background: #f1f8f2; }
.staff-feeding-group.completed { opacity: .7; }
.staff-feeding-group > summary { min-height: 58px; padding: 10px 12px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 15px; align-items: center; gap: 9px; cursor: pointer; list-style: none; }
.staff-feeding-group > summary::-webkit-details-marker { display: none; }
.staff-feeding-group > summary time { color: var(--forest); font-size: 12px; font-weight: 850; }
.staff-feeding-group > summary div { display: grid; gap: 3px; }
.staff-feeding-group > summary strong { font-size: 11px; }
.staff-feeding-group > summary small { color: var(--muted); font-size: 8px; }
.staff-feeding-group > summary > svg { width: 14px; color: var(--muted); transition: transform .2s; }
.staff-feeding-group[open] > summary > svg { transform: rotate(90deg); }
.staff-feeding-group > div { padding: 8px; border-top: 1px solid var(--line); display: grid; gap: 6px; background: var(--white); }
.staff-feeding-group > div > button { min-height: 56px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: minmax(90px, .75fr) minmax(0, 1.4fr) 14px; align-items: center; gap: 9px; color: var(--ink); background: var(--surface-soft); text-align: left; }
.staff-feeding-group > div > button > span { min-width: 0; display: grid; gap: 3px; }
.staff-feeding-group > div > button b { font-size: 9px; }
.staff-feeding-group > div > button small { color: var(--muted); font-size: 7px; }
.staff-feeding-group > div > button > svg { width: 14px; color: var(--muted); }
.staff-secondary-feeding > div { grid-template-columns: 1fr; }
.staff-empty.compact { min-height: 70px; padding: 14px; }
.staff-work-task > time { min-width: 43px; color: var(--forest); font-size: 10px; font-weight: 850; }
.staff-horse-summary { padding: 14px; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 11px; background: var(--surface-soft); }
.staff-horse-summary > div { display: grid; gap: 3px; }
.staff-horse-summary small { color: var(--muted); font-size: 10px; }
.staff-horse-summary > b { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-size: 9px; }
.staff-horse-summary > b svg { width: 14px; }
.staff-horse-detail-section { display: grid; gap: 8px; }
.staff-horse-detail-section h3, .staff-horse-equipment h3 { margin: 0; font-family: var(--serif); font-size: 17px; }
.staff-routine-readonly, .staff-feeding-readonly, .staff-task-readonly { display: grid; gap: 7px; }
.staff-routine-readonly article, .staff-task-readonly article { min-height: 50px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.staff-routine-readonly article > div, .staff-task-readonly article { gap: 4px; }
.staff-routine-readonly time { color: var(--forest); font-size: 10px; font-weight: 850; }
.staff-routine-readonly small, .staff-task-readonly small, .staff-readonly-empty { margin: 0; color: var(--muted); font-size: 10px; }
.staff-feeding-readonly article { padding: 10px; border: 1px solid var(--line); border-radius: 11px; display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: 10px; }
.staff-feeding-readonly article.private-feed { background: var(--surface-soft); }
.staff-feeding-readonly article > div { display: flex; flex-wrap: wrap; gap: 6px; }
.staff-feeding-readonly article > div:first-child { display: grid; }
.staff-feeding-readonly article span { min-width: 90px; padding: 7px; border-radius: 9px; background: var(--surface-soft); display: grid; gap: 3px; }
.staff-feeding-readonly small { color: var(--muted); font-size: 9px; }
.staff-feed-stock { margin: 0; padding: 7px 9px; border-radius: 9px; color: #286345; background: #e7f3eb; display: flex; align-items: center; gap: 6px; font-size: 9px; line-height: 1.35; grid-column: 1 / -1; }
.staff-feed-stock.low { color: #8a4b38; background: #fff1eb; }
.staff-feed-stock svg { width: 15px; flex: 0 0 auto; }
.staff-horse-equipment { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.staff-horse-equipment section { padding: 12px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 7px; }
.staff-horse-equipment span { color: var(--muted); font-size: 10px; }
.staff-stored-blankets { display: grid; gap: 5px; }
.staff-blanket-recommendation, .staff-blanket-warning { padding: 9px; border-radius: 10px; color: #286345; background: #e7f3eb; display: grid; gap: 4px; }
.staff-blanket-recommendation.warning, .staff-blanket-warning { color: #8a4b38; background: #fff1eb; }
.staff-blanket-recommendation strong { font-size: 11px; }
.staff-blanket-recommendation span, .staff-blanket-warning span { color: inherit; font-size: 9px; line-height: 1.4; }
.staff-blanket-recommendation small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.staff-blanket-warning { grid-template-columns: 16px 1fr; align-items: start; }
.staff-blanket-warning svg { width: 16px; }
.staff-maintenance-notice { padding: 13px; border: 1px solid #c9d9cd; border-radius: 13px; display: flex; align-items: flex-start; gap: 9px; color: var(--forest); background: #eff8f1; }
.staff-maintenance-notice svg { width: 18px; flex: 0 0 auto; }
.staff-maintenance-notice > div { display: grid; gap: 4px; }
.staff-maintenance-notice span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.inventory-location-panel, .inventory-receipt-panel { margin-bottom: 14px; padding: 18px; }
.inventory-location-list { display: flex; flex-wrap: wrap; gap: 8px; }
.inventory-location-list .inventory-location-card { min-height: 54px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 9px; background: var(--surface-soft); color: inherit; text-align: left; cursor: pointer; }
.inventory-location-list .inventory-location-card:hover { border-color: color-mix(in srgb, var(--forest) 45%, var(--line)); background: var(--white); }
.inventory-location-list .inventory-location-card > span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--forest); background: var(--white); }
.inventory-location-list .inventory-location-card > b { margin-left: 7px; color: var(--forest); font-size: 10px; }
.inventory-location-list .inventory-location-card > svg:last-child { width: 13px; color: var(--muted); }
.inventory-horse-selection { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, var(--sage-soft)); }
.inventory-horse-selection legend { padding: 0 .35rem; font-weight: 800; color: var(--ink); }
.inventory-all-horses, .inventory-horse-options label { display: flex; align-items: center; gap: .7rem; }
.inventory-all-horses span { display: grid; gap: .1rem; }
.inventory-all-horses small, .inventory-horse-summary { color: var(--muted); }
.inventory-horse-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .55rem; margin: .85rem 0; }
.inventory-horse-options label { padding: .6rem .7rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.inventory-horse-selection > .text-button { margin-top: .7rem; }
.inventory-horse-summary { display: block; margin-top: .3rem; font-size: .82rem; font-weight: 700; }
.inventory-location-list svg { width: 16px; }
.inventory-location-list div { display: grid; gap: 3px; }
.inventory-location-list small { color: var(--muted); font-size: 8px; }
.inventory-item-grid { margin-bottom: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 11px; }
.inventory-item-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); display: grid; gap: 13px; }
.inventory-item-card.low-stock { border-color: #e0bda9; background: #fff9f5; }
.inventory-item-card header { display: flex; justify-content: space-between; gap: 10px; }
.inventory-item-card header span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.inventory-item-card h3 { margin: 3px 0 0; font-family: var(--serif); font-size: 20px; }
.inventory-package-summary { margin-top: 5px; display: block; color: #486758 !important; font-size: 9px !important; font-weight: 750 !important; text-transform: none !important; }
.inventory-item-card header b { color: #994f39; display: inline-flex; align-items: center; gap: 4px; font-size: 9px; }
.inventory-item-card header b svg { width: 15px; }
.inventory-item-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.inventory-item-kpis span { min-width: 0; padding: 9px; border-radius: 10px; background: var(--surface-soft); display: grid; gap: 4px; }
.inventory-item-kpis small { color: var(--muted); font-size: 7px; }
.inventory-item-kpis strong { overflow-wrap: anywhere; font-size: 11px; }
.inventory-location-balances { display: flex; flex-wrap: wrap; gap: 6px; }
.inventory-location-balances > span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; display: grid; gap: 2px; }
.inventory-location-balances small, .inventory-location-balances em { color: var(--muted); font-size: 8px; }
.inventory-item-card footer { padding-top: 9px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inventory-item-card footer > span { color: var(--muted); font-size: 8px; line-height: 1.4; }
.inventory-item-card footer > div { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.inventory-stocktake-result { margin-bottom: 14px; padding: 14px 16px; border: 1px solid #cbdccf; border-radius: 15px; color: #285d42; background: #eff7f1; display: grid; gap: 8px; }
.inventory-stocktake-result.has-suggestion { border-color: #d9c78f; color: #6d5722; background: #fff9e7; }
.inventory-stocktake-result > div { display: flex; align-items: center; gap: 10px; }
.inventory-stocktake-result svg { width: 22px; flex: 0 0 auto; }
.inventory-stocktake-result span { display: grid; gap: 3px; }
.inventory-stocktake-result small { opacity: .78; font-size: 8px; }
.inventory-stocktake-result p { margin: 0; font-size: 10px; line-height: 1.55; }
.inventory-stocktake-result.applied { border-color: #b7d7c1; color: #285d42; background: #edf8f0; }
.inventory-stocktake-result.dismissed { border-color: var(--line); color: var(--muted); background: var(--surface-soft); }
.inventory-suggestion-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inventory-suggestion-actions .button { min-height: 38px; }
.inventory-receipt-list { display: grid; }
.inventory-receipt-list article { min-height: 57px; padding: 9px 2px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.inventory-receipt-list article:first-child { border-top: 0; }
.inventory-receipt-list time, .inventory-receipt-list small, .inventory-receipt-list > article > span { color: var(--muted); font-size: 8px; }
.inventory-receipt-list div { display: grid; gap: 4px; }
.inventory-allocation-fieldset { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.inventory-allocation-fieldset legend { padding: 0 6px; font-weight: 850; }
.inventory-allocation-fieldset > p { margin: 0 0 10px; color: var(--muted); font-size: 10px; }
.inventory-allocation-fieldset > div { display: grid; gap: 7px; }
.inventory-allocation-fieldset label { min-height: 52px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, .6fr); align-items: center; gap: 10px; }
.inventory-allocation-fieldset label > span { display: grid; gap: 3px; }
.inventory-allocation-fieldset small { color: var(--muted); font-size: 8px; }
.inventory-allocation-fieldset output { margin-top: 9px; padding: 9px; border-radius: 9px; color: #286345; background: #e7f3eb; display: block; font-size: 10px; font-weight: 800; }
.inventory-allocation-fieldset output.invalid { color: #934c38; background: #fbe9e2; }
.inventory-new-item { padding: 14px; border: 1px solid #cfddd2; border-radius: 15px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; background: #f3f7f2; }
.inventory-new-item > .full { grid-column: 1 / -1; }
.inventory-new-item > .modal-section-title { margin: 0; padding: 0 0 10px; border: 0; border-bottom: 1px solid #d7e2da; }
.inventory-new-item[hidden] { display: none !important; }
.inventory-package-fields { padding: 14px; border: 1px solid #d8e3da; border-radius: 14px; background: #f6f9f6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inventory-package-fields > .full { grid-column: 1 / -1; }
.inventory-package-fields[hidden] { display: none !important; }
.feed-dose-unit-input select { width: auto; min-width: 96px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
.feed-custom-dose-unit { padding: 13px; border: 1px solid #d8e3da; border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #f6f8f4; }
.feed-custom-dose-unit[hidden] { display: none !important; }
.feed-custom-conversion { min-height: 42px; display: flex; align-items: center; gap: 8px; }
.feed-custom-conversion > span { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.feed-custom-conversion input { min-width: 0; }
.ori-inventory-receipt { margin-top: 13px; padding: 14px; border: 1px solid #c9d9cd; border-radius: 14px; background: #f2f8f3; display: grid; gap: 12px; }
.ori-inventory-receipt.required { border-color: #e1c3a8; background: #fff9f1; }
.ori-inventory-receipt.resolved > div:first-child { display: flex; align-items: center; gap: 9px; }
.ori-inventory-receipt.resolved > div:first-child > svg { width: 19px; color: #28724a; flex: 0 0 auto; }
.ori-inventory-receipt.resolved > div:first-child span { display: grid; gap: 3px; }
.ori-inventory-receipt small { color: var(--muted); font-size: 9px; }
.ori-inventory-receipt label { display: grid; gap: 6px; font-size: 10px; font-weight: 800; }
.ori-inventory-receipt select { min-height: 44px; }
.ori-inventory-allocation-list { display: grid; gap: 7px; }
.ori-inventory-allocation-list label { min-height: 54px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); grid-template-columns: minmax(0, 1fr) minmax(125px, .55fr); align-items: center; gap: 10px; }
.ori-inventory-allocation-list label > span { display: grid; gap: 3px; }
.ori-inventory-allocation-list input { min-height: 42px; }
.ori-inventory-receipt output { padding: 9px 11px; border-radius: 9px; color: #286345; background: #e7f3eb; font-size: 10px; font-weight: 800; }
.ori-inventory-receipt output.invalid { color: #934c38; background: #fbe9e2; }
.ori-inventory-allocation-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.ori-inventory-allocation-summary span { padding: 6px 8px; border-radius: 8px; background: var(--white); font-size: 9px; }
.ori-inventory-missing { padding: 10px; border-radius: 10px; color: #8a4b38; background: #fbe9e2; display: flex; align-items: flex-start; gap: 8px; font-size: 10px; line-height: 1.4; }
.ori-inventory-missing svg { width: 17px; flex: 0 0 auto; }
.ori-routine-lot-completion { margin-top: 13px; padding: 14px; border: 1px solid #c9d9cd; border-radius: 14px; background: #f2f8f3; display: grid; gap: 10px; }
.ori-routine-lot-completion > strong { display: flex; align-items: center; gap: 8px; color: var(--forest); }
.ori-routine-lot-completion > strong svg { width: 18px; }
.ori-routine-lot-completion dl { margin: 0; display: grid; gap: 8px; }
.ori-routine-lot-completion dl div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
.ori-routine-lot-completion dt { color: var(--muted); font-size: 9px; }
.ori-routine-lot-completion dd { margin: 0; font-size: 10px; font-weight: 750; }
.staff-lot-completion-note { margin: 0 0 7px; padding: 8px 10px; border-radius: 9px; color: #315d3d; background: #edf5ee; font-size: 9px; line-height: 1.4; }
.community-friend-open strong em { margin-left: 5px; padding: 2px 5px; border-radius: 999px; color: #286345; background: #e7f3eb; font-size: 6px; font-style: normal; }
.community-friend-menu > div > span, .community-chat-panel header details > div > span { padding: 6px 7px; color: var(--muted); font-size: 7px; line-height: 1.35; }
.community-side-section.duty-roster { background: #f3f8f3; }
.community-side-section.duty-roster > p { margin: -3px 0 8px; color: var(--muted); font-size: 7px; line-height: 1.4; }
.community-side-section.duty-roster > button { width: 100%; min-height: 52px; padding: 7px; border: 1px solid #ccdbcf; border-radius: 11px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 14px; align-items: center; gap: 8px; color: var(--ink); background: var(--white); text-align: left; }
.community-side-section.duty-roster > button + button { margin-top: 5px; }
.community-side-section.duty-roster > button > span { min-width: 0; display: grid; gap: 3px; }
.community-side-section.duty-roster strong { font-size: 8px; }
.community-side-section.duty-roster small { overflow: hidden; color: var(--muted); font-size: 6.5px; text-overflow: ellipsis; white-space: nowrap; }
.community-side-section.duty-roster > button > svg { width: 14px; color: var(--muted); }

@media (max-width: 650px) {
  .staff-schedule-page .page-head { display: grid; grid-template-columns: 1fr; }
  .staff-schedule-page .head-actions, .staff-schedule-page .head-actions .button { width: 100%; }
  .staff-schedule-page .head-actions .button { min-height: 46px; justify-content: center; }
  .staff-filter-panel { align-items: stretch; flex-direction: column; }
  .staff-fund-toolbar { align-items: stretch; flex-direction: column; }
  .staff-fund-toolbar label, .staff-fund-toolbar input { width: 100%; }
  .staff-fund-toolbar input, .employee-overview-actions input { font-size: 16px; }
  .employee-history-search input { font-size: 16px; }
  .staff-filter-list { justify-content: flex-start; }
  .staff-filter-list label { min-height: 44px; font-size: 12px; }
  .staff-workload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-workload-grid article { min-height: 180px; padding: 12px; }
  .staff-workload-grid dl dd { font-size: 13px; }
  .employee-overview .panel-head { align-items: stretch; flex-direction: column; }
  .employee-overview-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .employee-overview-actions label, .employee-overview-actions input, .employee-overview-actions a { width: 100%; }
  .staff-schedule-panel { padding: 9px; }
  .staff-week-grid { min-width: 0; grid-template-columns: 1fr; }
  .staff-day { min-height: 0; }
  .staff-day header { min-height: 44px; }
  .staff-shift { min-height: 70px; }
  .staff-shift time, .staff-shift strong { font-size: 13px; }
  .staff-shift small, .staff-day-empty { font-size: 11px; }
  .staff-leave-row { grid-template-columns: 1fr auto; }
  .staff-leave-row > div:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .staff-leave-row .button { min-height: 44px; justify-content: center; font-size: 11px; }
  .stable-expense-row-actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; flex-wrap: wrap; }
  .stable-expense-payment { min-height: 44px; font-size: 11px; }
  .stable-expense-edit-hint, .stable-expense-payment-done { min-height: 36px; font-size: 11px; }
  .boarding-horse-selection > div { grid-template-columns: 1fr; }
  .boarding-horse-selection label { min-height: 52px; }
  .boarding-preview-actions { display: grid; grid-template-columns: 1fr; }
  .boarding-preview-actions .button { min-height: 46px; justify-content: center; }
  .staff-work-page .page-head { display: grid; grid-template-columns: 1fr; }
  .staff-work-page .head-actions, .staff-work-page .head-actions .button { width: 100%; }
  .staff-work-page .head-actions .button { min-height: 46px; justify-content: center; }
  .staff-work-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-work-layout { grid-template-columns: 1fr; }
  .staff-work-layout > article:last-child { grid-column: auto; }
  .staff-routine-lots-panel { grid-column: auto; }
  .staff-routine-lot-list { grid-template-columns: 1fr; }
  .staff-routine-lot > div button, .staff-routine-lot > div > span { min-height: 44px; padding-inline: 11px; font-size: 11px; }
  .staff-work-task, .staff-horse-card, .staff-maintenance-card { min-height: 58px; }
  .staff-work-task strong, .staff-horse-card strong, .staff-maintenance-card strong { font-size: 13px; }
  .staff-work-task small, .staff-horse-card small, .staff-maintenance-card small { font-size: 11px; white-space: normal; }
  .staff-horse-summary { grid-template-columns: 44px minmax(0, 1fr); }
  .staff-horse-summary > b { grid-column: 1 / -1; }
  .staff-feeding-readonly article, .staff-horse-equipment { grid-template-columns: 1fr; }
  .stable-inventory-page .page-head { display: grid; grid-template-columns: 1fr; }
  .stable-inventory-page .head-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .stable-inventory-page .head-actions .button { min-height: 46px; padding-inline: 8px; justify-content: center; font-size: 10px; }
  .inventory-item-grid { grid-template-columns: 1fr; }
  .inventory-item-kpis { grid-template-columns: 1fr 1fr; }
  .inventory-item-kpis span:last-child { grid-column: 1 / -1; }
  .inventory-item-card footer { align-items: stretch; flex-direction: column; }
  .inventory-item-card footer > div { width: 100%; display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .inventory-item-card footer > div > button { flex: 1; }
  .inventory-item-card footer .text-button { min-height: 44px; justify-content: center; }
  .inventory-item-card footer [data-inventory-delete] { grid-column: 1 / -1; border-color: #e6b9ad; color: #9c3f33; background: #fff6f3; }
  .inventory-stocktake-result { padding: 13px; }
  .inventory-stocktake-result small, .inventory-stocktake-result p { font-size: 13px; }
  .inventory-suggestion-actions .button { width: 100%; justify-content: center; }
  .inventory-receipt-list article { grid-template-columns: 1fr auto; }
  .inventory-receipt-list time { grid-column: 1; }
  .inventory-receipt-list div { grid-column: 1 / -1; grid-row: 2; }
  .inventory-allocation-fieldset label { grid-template-columns: 1fr; }
  .inventory-allocation-fieldset input { font-size: 16px; }
  .inventory-new-item { padding: 12px; grid-template-columns: 1fr; gap: 12px; }
  .inventory-new-item > .full { grid-column: auto; }
  .inventory-new-item .field input, .inventory-new-item .field select, .inventory-new-item .field textarea { font-size: 16px; }
  .inventory-package-fields { grid-template-columns: 1fr; padding: 12px; }
  .inventory-package-fields > .full { grid-column: auto; }
  .modal-feedback { min-height: 54px; padding: 13px; align-items: center; font-size: 13px; line-height: 1.4; }
  .modal-feedback::before { width: 28px; height: 28px; font-size: 14px; }
  .feed-custom-dose-unit { grid-template-columns: 1fr; }
  .feed-dose-unit-input select { min-width: 108px; font-size: 16px; }
  .ori-inventory-receipt { padding: 12px; }
  .ori-inventory-receipt select, .ori-inventory-receipt input { min-height: 44px; font-size: 16px; }
  .ori-inventory-allocation-list label { min-height: 0; grid-template-columns: 1fr; }
  .ori-inventory-receipt .button { min-height: 46px; justify-content: center; }
  .ori-inventory-receipt output, .ori-inventory-missing { font-size: 14px; }
}
@media (max-width: 430px) {
  .staff-workload-grid { grid-template-columns: 1fr; }
}

.task-completion-lock,
.task-completion-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f1e8;
  color: #5f543f;
}

.task-completion-success {
  background: #edf5ee;
  color: #315d3d;
}

.task-completion-success div { display: grid; gap: 2px; }

.task-completion-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.task-completion-summary > strong { font-size: 1.08rem; }
.task-completion-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 0; }
.task-completion-summary dl div { display: grid; gap: 2px; }
.task-completion-summary dt { color: var(--muted); font-size: .78rem; }
.task-completion-summary dd { margin: 0; font-weight: 700; }
.task-owner-completion { padding: 14px 16px; border: 1px solid #b8d0bd; border-radius: 14px; display: flex; align-items: flex-start; gap: 11px; color: #315d3d; background: #edf5ee; }
.task-owner-completion > svg { width: 22px; flex: 0 0 auto; }
.task-owner-completion > div { display: grid; gap: 4px; }
.task-owner-completion span, .task-owner-completion small { color: #5b7363; font-size: .82rem; }
.task-owner-completion p { margin: 5px 0 0; color: #3f5746; line-height: 1.45; }

@media (max-width: 620px) {
  .task-completion-summary dl { grid-template-columns: 1fr; }
  .staff-assigned-tasks-priority { padding: 14px; }
  .staff-assigned-task { min-height: 82px; grid-template-columns: 36px 52px minmax(0, 1fr) 15px; gap: 8px; }
  .staff-assigned-task > b { grid-column: 3; color: var(--clay); font-size: 10px; }
  .staff-assigned-task > svg { grid-column: 4; grid-row: 1 / span 2; }
  .staff-assigned-task strong { font-size: 14px; white-space: normal; }
  .staff-assigned-task small { font-size: 11px; line-height: 1.35; }
}

@media (max-width: 390px) {
  .module-grid { grid-template-columns: 1fr; }
  .stable-modules { grid-template-columns: 1fr 1fr; }
  .box-grid { grid-template-columns: 1fr 1fr; }
}

/* Fyzioterapie · původní třívrstvý 3D model EQUORI */
.physio-anatomy-page { max-width: 1480px; margin-inline: auto; }
.anatomy-prototype-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -10px 0 18px;
  padding: 12px 15px;
  border: 1px solid #e6d5a7;
  border-radius: 14px;
  background: #fff9e9;
  color: #745a1d;
}
.anatomy-prototype-notice > svg { width: 22px; height: 22px; flex: 0 0 auto; }
.anatomy-prototype-notice div { display: grid; gap: 2px; min-width: 0; }
.anatomy-prototype-notice strong { font-size: 12px; }
.anatomy-prototype-notice div > span { color: #8b7443; font-size: 10px; line-height: 1.45; }
.anatomy-prototype-notice strong span { color: inherit; font: inherit; }
.anatomy-prototype-notice > b { margin-left: auto; padding: 6px 9px; border-radius: 999px; background: #f0dfad; color: #6e5416; font-size: 10px; white-space: nowrap; }
.anatomy-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.anatomy-viewer-panel { min-width: 0; background: #edf4f0; }
.anatomy-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid rgba(23, 60, 50, .11);
  background: rgba(255, 255, 255, .88);
}
.anatomy-presets, .anatomy-view-actions { display: flex; align-items: center; gap: 7px; }
.anatomy-toolbar button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d8e1dc;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}
.anatomy-toolbar button:hover { border-color: #85aa9e; transform: translateY(-1px); }
.anatomy-toolbar button.active { border-color: #276a58; background: #276a58; color: #fff; box-shadow: 0 6px 18px rgba(39, 106, 88, .2); }
.anatomy-view-actions button { min-width: 38px; padding-inline: 10px; }
.anatomy-view-actions button:last-child { display: inline-flex; align-items: center; gap: 7px; }
.anatomy-view-actions svg { width: 15px; height: 15px; }
.anatomy-canvas {
  position: relative;
  height: clamp(480px, 63vh, 690px);
  min-height: 480px;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, .95) 0 24%, rgba(230, 241, 235, .94) 62%, rgba(207, 225, 216, .95) 100%),
    linear-gradient(145deg, #eef6f2, #dcebe4);
}
.anatomy-canvas::after {
  content: '';
  position: absolute;
  inset: auto 10% 7% 10%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(23, 60, 50, .13), transparent 70%);
  pointer-events: none;
}
.anatomy-canvas canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; position: relative; z-index: 1; }
.anatomy-canvas canvas:active { cursor: grabbing; }
.anatomy-loading {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 24px rgba(23, 60, 50, .1);
  color: #345b50;
  font-size: 9px;
  font-weight: 700;
  backdrop-filter: blur(12px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.anatomy-loading::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #3c8a72; box-shadow: 0 0 0 4px rgba(60, 138, 114, .13); }
.anatomy-loading[data-state="error"] { color: #97502f; }
.anatomy-loading[data-state="error"]::before { background: #c26c42; box-shadow: 0 0 0 4px rgba(194, 108, 66, .13); }
.anatomy-loading.hidden { opacity: 0; transform: translateY(-5px); }
.anatomy-canvas-hint {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 7px 24px rgba(23, 60, 50, .08);
  color: #47675e;
  font-size: 9px;
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.anatomy-canvas-hint span { font-size: 15px; color: #276a58; }
.anatomy-original-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(23, 60, 50, .83);
  color: #fff;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}
.anatomy-sidebar { display: grid; gap: 13px; }
.anatomy-detail { padding: 22px; min-height: 205px; background: linear-gradient(160deg, #173c32, #265f50); color: #fff; }
.anatomy-detail > span { display: block; color: #afcfc4; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.anatomy-detail h3 { margin: 11px 0 8px; font-size: 23px; letter-spacing: -.035em; }
.anatomy-detail p { min-height: 58px; margin: 0; color: #d5e5df; font-size: 11px; line-height: 1.6; }
.anatomy-detail small { display: block; margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .14); color: #9ebfb4; font-size: 8px; }
.anatomy-layer-guide { padding: 19px; }
.anatomy-layer-guide .kicker { margin: 0 0 13px; }
.anatomy-layer-guide ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.anatomy-layer-guide li { display: grid; grid-template-columns: 14px 1fr; align-items: start; gap: 10px; }
.anatomy-layer-guide i { width: 12px; height: 12px; margin-top: 2px; border-radius: 4px; background: #397667; }
.anatomy-layer-guide i.muscles { background: #b7443f; }
.anatomy-layer-guide i.skeleton { background: #e7c986; }
.anatomy-layer-guide li div { display: grid; gap: 2px; }
.anatomy-layer-guide strong { font-size: 10px; }
.anatomy-layer-guide span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.anatomy-catalog-panel { overflow: hidden; }
.anatomy-catalog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 17px 17px 12px; }
.anatomy-catalog-head > div { display: grid; gap: 3px; }
.anatomy-catalog-head p { margin: 0; }
.anatomy-catalog-head strong { font-size: 11px; }
.anatomy-catalog-head > span { padding: 5px 7px; border-radius: 999px; background: #edf4f0; color: #3b6a5d; font-size: 8px; font-weight: 750; white-space: nowrap; }
.anatomy-catalog-search { display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 7px; margin: 0 14px 12px; padding: 0 10px; border: 1px solid #d8e2dd; border-radius: 10px; background: #f8faf9; }
.anatomy-catalog-search span, .anatomy-catalog-search svg { width: 16px; height: 16px; color: #6b837c; }
.anatomy-catalog-search input { min-width: 0; height: 40px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 10px; }
.anatomy-catalog { max-height: 350px; overflow: auto; padding: 0 10px 12px; scrollbar-width: thin; scrollbar-color: #bdcec7 transparent; }
.anatomy-catalog section { display: grid; gap: 3px; padding-top: 9px; border-top: 1px solid #edf0ee; }
.anatomy-catalog section + section { margin-top: 9px; }
.anatomy-catalog section > div { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 5px; }
.anatomy-catalog section > div strong { color: #667c75; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.anatomy-catalog section > div span { color: #8a9b95; font-size: 8px; }
.anatomy-catalog button { display: grid; grid-template-columns: 8px 1fr; align-items: center; gap: 8px; width: 100%; padding: 8px 7px; border: 0; border-radius: 8px; background: transparent; color: #344d45; text-align: left; font: inherit; font-size: 9px; cursor: pointer; }
.anatomy-catalog button:hover { background: #f1f6f3; }
.anatomy-catalog button.active { background: #e1f0ea; color: #1e5c4b; font-weight: 750; }
.anatomy-catalog button i { width: 7px; height: 7px; border-radius: 50%; background: #397667; }
.anatomy-catalog button[data-anatomy-layer="muscles"] i { background: #b7443f; }
.anatomy-catalog button[data-anatomy-layer="skeleton"] i { background: #d5aa58; }
.anatomy-catalog-empty { margin: 12px; color: var(--muted); font-size: 10px; }
.anatomy-next-step { padding: 18px; border: 1px dashed #b9cec5; border-radius: var(--radius); background: #f2f7f4; }
.anatomy-next-step strong { color: #24584a; font-size: 11px; }
.anatomy-next-step p { margin: 7px 0 0; color: #668078; font-size: 9px; line-height: 1.55; }

@media (max-width: 1040px) {
  .anatomy-workspace { grid-template-columns: 1fr; }
  .anatomy-sidebar { grid-template-columns: 1fr 1fr; }
  .anatomy-detail { min-height: 0; }
  .anatomy-catalog-panel { grid-column: 1 / -1; }
  .anatomy-catalog { max-height: 280px; }
  .anatomy-next-step { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .anatomy-prototype-notice { align-items: flex-start; margin-top: -4px; }
  .anatomy-prototype-notice div > span { font-size: 11px; }
  .anatomy-prototype-notice > b { margin-top: 1px; }
  .anatomy-toolbar { align-items: stretch; flex-direction: column; padding: 10px; }
  .anatomy-presets { display: grid; grid-template-columns: repeat(2, 1fr); }
  .anatomy-presets button { min-height: 43px; }
  .anatomy-view-actions { justify-content: flex-end; }
  .anatomy-view-actions button { min-height: 42px; }
  .anatomy-view-actions button:last-child { margin-left: auto; }
  .anatomy-canvas { height: 52vh; min-height: 390px; }
  .anatomy-canvas-hint { right: 12px; justify-content: center; font-size: 10px; }
  .anatomy-original-badge { top: 10px; right: 10px; }
  .anatomy-sidebar { grid-template-columns: 1fr; }
  .anatomy-catalog-panel { grid-column: auto; }
  .anatomy-catalog { max-height: 360px; }
  .anatomy-catalog-search input { font-size: 16px; }
  .anatomy-next-step { grid-column: auto; }
  .anatomy-detail h3 { font-size: 22px; }
  .anatomy-detail p { min-height: 0; font-size: 12px; }
}

/* Fyzioterapie · původní 2D anatomický nález EQUORI */
.physio-anatomy-2d-page { max-width: 1500px; margin-inline: auto; }
.anatomy2d-safety {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -9px 0 18px;
  padding: 13px 15px;
  border: 1px solid #cfe0d8;
  border-radius: 15px;
  background: linear-gradient(120deg, #f4faf7, #edf6f2);
  color: #315e52;
}
.anatomy2d-safety > svg { width: 22px; height: 22px; flex: 0 0 auto; }
.anatomy2d-safety > div { display: grid; gap: 2px; min-width: 0; }
.anatomy2d-safety strong { font-size: 12px; }
.anatomy2d-safety span { color: #607b73; font-size: 10px; line-height: 1.45; }
.anatomy2d-safety > b { margin-left: auto; padding: 6px 9px; border-radius: 999px; background: #dcece5; color: #2f6858; font-size: 9px; white-space: nowrap; }
.anatomy2d-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .7fr); gap: 18px; align-items: start; }
.anatomy2d-viewer-panel { min-width: 0; overflow: hidden; background: #f4f8f6; }
.anatomy2d-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border-bottom: 1px solid #dce5e1; background: rgba(255, 255, 255, .92); }
.anatomy2d-presets { display: flex; align-items: center; gap: 7px; }
.anatomy2d-presets button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 12px; border: 1px solid #d8e1dc; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; transition: .18s ease; }
.anatomy2d-presets button:hover { border-color: #8cb4a7; transform: translateY(-1px); }
.anatomy2d-presets button.active { border-color: #276a58; background: #276a58; color: #fff; box-shadow: 0 7px 20px rgba(39, 106, 88, .18); }
.anatomy2d-presets i { width: 9px; height: 9px; border-radius: 3px; background: #8b5237; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.anatomy2d-presets i.soft { background: #b44743; }
.anatomy2d-presets i.hard { background: #ddc58e; }
.anatomy2d-presets i.all { background: conic-gradient(#8b5237 0 33%, #b44743 0 66%, #ddc58e 0); }
.anatomy2d-view-label { color: #70857e; font-size: 9px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.anatomy2d-canvas { position: relative; min-height: 520px; overflow: hidden; background: radial-gradient(circle at 47% 42%, #fff 0 24%, #eef5f1 62%, #dfece6 100%); }
.anatomy2d-svg { display: block; width: 100%; height: 100%; min-height: 520px; user-select: none; }
.anatomy2d-ground { fill: rgba(28, 70, 58, .1); filter: blur(2px); }
.anatomy2d-horse-silhouette { stroke: #3f261f; stroke-width: 4; stroke-linejoin: round; }
.anatomy2d-mane, .anatomy2d-tail { fill: #1f1816; opacity: .94; }
.anatomy2d-leg-shadow { fill: #3f251e; opacity: .28; }
.anatomy2d-face-highlight { fill: #c5855d; opacity: .24; }
.anatomy2d-eye { fill: #101716; stroke: #d7bd93; stroke-width: 3; }
.anatomy2d-eye-glint { fill: #fff; }
.anatomy2d-nostril { fill: #160f0e; opacity: .82; }
.anatomy2d-hoof { fill: #171a19; stroke: #777d78; stroke-width: 2; }
.anatomy2d-layer-backdrop { fill: #4e2a23; fill-opacity: .17; stroke: #77564a; stroke-opacity: .32; stroke-width: 3; }
.anatomy2d-layer-backdrop.hard { fill: #697872; fill-opacity: .1; stroke: #7b8b84; stroke-opacity: .28; }
.anatomy2d-structure { cursor: pointer; outline: none; transition: opacity .16s ease, filter .16s ease; }
.anatomy2d-surface-hit path { fill: #fff; fill-opacity: .001; stroke: #fff; stroke-opacity: .001; stroke-width: 7; transition: fill-opacity .16s ease, stroke-opacity .16s ease; }
.anatomy2d-surface-hit:hover path, .anatomy2d-surface-hit:focus-visible path { fill: #79c3aa; fill-opacity: .24; stroke: #d7fff0; stroke-opacity: .88; }
.anatomy2d-surface-hit.active path { fill: #53ad91; fill-opacity: .31; stroke: #d7fff0; stroke-opacity: .94; filter: url(#selectionGlow); }
.anatomy2d-muscle > path { stroke: rgba(77, 21, 25, .62); stroke-width: 2; stroke-linejoin: round; transition: filter .16s ease, opacity .16s ease; }
.anatomy2d-muscle:hover > path, .anatomy2d-muscle:focus-visible > path { filter: brightness(1.18) saturate(1.12); }
.anatomy2d-muscle.active > path { filter: url(#selectionGlow) brightness(1.12); stroke: #e2fff6; stroke-width: 3.5; }
.anatomy2d-fascia-overlay { pointer-events: none; }
.anatomy2d-fascia-overlay path { fill: #a4cdc4; fill-opacity: .14; stroke: #c6e6df; stroke-width: 2; stroke-dasharray: 8 6; }
.anatomy2d-bone-line path, .anatomy2d-bone-line line { fill: none; stroke: url(#bone); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.anatomy2d-bone-line line { stroke-width: 8; }
.anatomy2d-bone-line .anatomy2d-vertebrae circle { fill: url(#bone); stroke: #b49962; stroke-width: 2; }
.anatomy2d-bone-shape > path, .anatomy2d-bone-shape > ellipse { stroke: #b99e68; stroke-width: 2.5; stroke-linejoin: round; }
.anatomy2d-bone-shape > .anatomy2d-hit-area { fill: transparent !important; stroke: transparent !important; filter: none !important; }
.anatomy2d-ribs path { stroke-width: 7; opacity: .94; }
.anatomy2d-joints circle, .anatomy2d-joints rect, .anatomy2d-joints path { fill: #e1b654; fill-opacity: .48; stroke: #fff0bd; stroke-width: 5; }
.anatomy2d-bone-line:hover path, .anatomy2d-bone-line:hover line, .anatomy2d-bone-line:focus-visible path, .anatomy2d-bone-line:focus-visible line, .anatomy2d-bone-line.active path, .anatomy2d-bone-line.active line { stroke: #fff3be; filter: url(#selectionGlow); }
.anatomy2d-bone-shape:hover, .anatomy2d-bone-shape:focus-visible, .anatomy2d-bone-shape.active, .anatomy2d-joints .anatomy2d-structure:hover, .anatomy2d-joints .anatomy2d-structure:focus-visible, .anatomy2d-joints .anatomy2d-structure.active { filter: url(#selectionGlow) brightness(1.08); }
.anatomy2d-structure.is-clear:not(.active) { filter: drop-shadow(0 0 5px rgba(71, 148, 115, .88)); }
.anatomy2d-structure.is-finding:not(.active) { filter: drop-shadow(0 0 6px rgba(213, 85, 63, .95)); }
.anatomy2d-structure.is-treated:not(.active) { filter: drop-shadow(0 0 6px rgba(101, 94, 181, .92)); }
.anatomy2d-canvas-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-top: 1px solid #dce5e1; background: #fff; color: #6a8079; font-size: 9px; }
.anatomy2d-canvas-footer span { display: inline-flex; align-items: center; gap: 6px; }
.anatomy2d-canvas-footer svg { width: 15px; height: 15px; color: #397867; }
.anatomy2d-mobile-zoom { display: none; }
.anatomy2d-sidebar { display: grid; gap: 14px; }
.anatomy2d-finding-editor { padding: 20px; }
.anatomy2d-selection-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.anatomy2d-selection-head > div { min-width: 0; }
.anatomy2d-selection-head span { display: block; color: #7f938c; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.anatomy2d-selection-head h2 { margin: 5px 0 0; color: #1f4137; font-size: 22px; line-height: 1.1; letter-spacing: -.035em; }
.anatomy2d-selection-head > b { flex: 0 0 auto; padding: 6px 8px; border-radius: 8px; background: #edf5f1; color: #376e5e; font-size: 8px; }
.anatomy2d-finding-editor > p { min-height: 37px; margin: 10px 0 17px; color: #657a74; font-size: 10px; line-height: 1.55; }
.anatomy2d-fieldset { margin: 0 0 15px; padding: 0; border: 0; }
.anatomy2d-fieldset legend, .anatomy2d-field > span { display: block; margin: 0 0 7px; color: #516861; font-size: 9px; font-weight: 750; }
.anatomy2d-segment { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 4px; border-radius: 11px; background: #eef3f0; }
.anatomy2d-segment button { min-height: 36px; border: 0; border-radius: 8px; background: transparent; color: #6b7f79; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.anatomy2d-segment button.active { background: #fff; color: #275f50; box-shadow: 0 3px 12px rgba(38, 84, 70, .1); }
.anatomy2d-status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.anatomy2d-status-grid button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; border: 1px solid #dfe6e2; border-radius: 10px; background: #fff; color: #5b7069; font: inherit; font-size: 9px; font-weight: 700; text-align: left; cursor: pointer; transition: .15s ease; }
.anatomy2d-status-grid button i { width: 9px; height: 9px; flex: 0 0 auto; border: 2px solid #a9b8b3; border-radius: 50%; }
.anatomy2d-status-grid button:nth-child(2) i { border-color: #489475; background: #e4f4ed; }
.anatomy2d-status-grid button:nth-child(3) i { border-color: #d35c46; background: #fae6df; }
.anatomy2d-status-grid button:nth-child(4) i { border-color: #6a62ad; background: #ebe9f7; }
.anatomy2d-status-grid button:hover { border-color: #a9c5ba; }
.anatomy2d-status-grid button.active { border-color: #397867; background: #edf7f3; color: #285f50; box-shadow: inset 0 0 0 1px #397867; }
.anatomy2d-field { display: grid; margin-top: 14px; }
.anatomy2d-field select, .anatomy2d-field textarea { width: 100%; border: 1px solid #dce5e1; border-radius: 10px; background: #f9fbfa; color: var(--ink); font: inherit; font-size: 10px; outline: none; }
.anatomy2d-field select { min-height: 40px; padding: 0 10px; }
.anatomy2d-field textarea { resize: vertical; min-height: 88px; padding: 10px; line-height: 1.5; }
.anatomy2d-field select:focus, .anatomy2d-field textarea:focus { border-color: #6da693; box-shadow: 0 0 0 3px rgba(65, 133, 111, .12); }
.anatomy2d-field select:disabled { opacity: .58; cursor: not-allowed; }
.anatomy2d-voice-placeholder { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 9px; width: 100%; margin: 13px 0; padding: 10px; border: 1px dashed #cddbd5; border-radius: 11px; background: #f7faf8; color: #57716a; text-align: left; font: inherit; }
.anatomy2d-voice-placeholder > svg { width: 20px; height: 20px; margin: auto; }
.anatomy2d-voice-placeholder span { display: grid; gap: 2px; }
.anatomy2d-voice-placeholder strong { font-size: 9px; }
.anatomy2d-voice-placeholder small { color: #84968f; font-size: 8px; }
.anatomy2d-voice-placeholder b { padding: 4px 6px; border-radius: 6px; background: #e7eeeb; color: #82918c; font-size: 7px; text-transform: uppercase; }
.anatomy2d-save { width: 100%; justify-content: center; }
.anatomy2d-feedback { display: block; min-height: 15px; margin-top: 7px; color: #397867; font-size: 8px; text-align: center; }
.anatomy2d-report-card { overflow: hidden; padding-bottom: 15px; }
.anatomy2d-report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 18px 18px 11px; }
.anatomy2d-report-head p { margin: 0 0 4px; }
.anatomy2d-report-head h2 { margin: 0; color: #274b40; font-size: 17px; }
.anatomy2d-report-head > span { padding: 5px 7px; border-radius: 999px; background: #e8f2ed; color: #397867; font-size: 8px; font-weight: 750; }
.anatomy2d-report-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 0 13px 12px; }
.anatomy2d-report-summary span { display: grid; gap: 1px; padding: 7px; border-radius: 8px; background: #f3f7f5; color: #748780; font-size: 7px; text-align: center; }
.anatomy2d-report-summary b { color: #315f51; font-size: 13px; }
.anatomy2d-report-list { display: grid; max-height: 285px; overflow: auto; border-top: 1px solid #edf1ef; border-bottom: 1px solid #edf1ef; }
.anatomy2d-report-list > p { margin: 0; padding: 22px 18px; color: #82938e; font-size: 9px; text-align: center; }
.anatomy2d-report-list article { display: grid; grid-template-columns: 1fr 30px; align-items: center; border-bottom: 1px solid #edf1ef; }
.anatomy2d-report-list article:last-child { border-bottom: 0; }
.anatomy2d-report-list article > button { border: 0; background: transparent; font: inherit; cursor: pointer; }
.anatomy2d-report-list article > button:first-child { display: grid; grid-template-columns: 9px 1fr; align-items: start; gap: 8px; padding: 10px 5px 10px 14px; text-align: left; }
.anatomy2d-report-list article > button:last-child { width: 27px; height: 27px; border-radius: 8px; color: #a47a70; font-size: 16px; }
.anatomy2d-report-list article > button:last-child:hover { background: #faece8; color: #b7473d; }
.anatomy2d-report-list i { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: #489475; }
.anatomy2d-report-list i.finding { background: #d35c46; }
.anatomy2d-report-list i.treated { background: #6a62ad; }
.anatomy2d-report-list span { display: grid; min-width: 0; }
.anatomy2d-report-list strong { color: #405b53; font-size: 9px; }
.anatomy2d-report-list small { color: #84958f; font-size: 8px; }
.anatomy2d-report-list em { overflow: hidden; margin-top: 3px; color: #6a7c76; font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.anatomy2d-report-card > small { display: block; padding: 12px 16px 0; color: #81928c; font-size: 8px; line-height: 1.5; }
.anatomy2d-latin { display: block; margin-top: 3px; color: #6e827b; font-family: Georgia, serif; font-size: 11px; font-style: italic; letter-spacing: .01em; }
.anatomy2d-drawing-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 12px; border-top: 1px solid #edf2ef; border-bottom: 1px solid #dce5e1; background: #f8fbf9; }
.anatomy2d-drawing-toolbar > button { min-height: 32px; padding: 0 10px; border: 1px solid #d4e0db; border-radius: 9px; background: #fff; color: #46655c; font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; }
.anatomy2d-drawing-toolbar > button:hover, .anatomy2d-drawing-toolbar > button.active { border-color: #397867; background: #e8f5ef; color: #275f50; }
.anatomy2d-drawing-toolbar > small { margin-left: auto; color: #72867f; font-size: 8px; }
.anatomy2d-drawing-colors { display: inline-flex; gap: 5px; padding: 4px; border-radius: 999px; background: #e9f0ed; }
.anatomy2d-drawing-colors button { width: 25px; height: 25px; padding: 0; border: 3px solid transparent; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px rgba(35, 67, 57, .13); cursor: pointer; }
.anatomy2d-drawing-colors button.active { border-color: #fff; box-shadow: 0 0 0 2px #397867; }
.anatomy2d-canvas { position: relative; }
.anatomy2d-side-badge { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 5px 9px; border: 1px solid rgba(255,255,255,.58); border-radius: 999px; background: rgba(24, 62, 51, .8); color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; backdrop-filter: blur(7px); }
.anatomy2d-canvas .anatomy2d-svg { transition: transform .28s ease; transform-origin: center; }
.anatomy2d-canvas.is-right-side .anatomy2d-svg { transform: scaleX(-1); }
.anatomy2d-landmark-hit > * { fill: #fff; fill-opacity: .001; stroke: #fff; stroke-opacity: .001; stroke-width: 5; transition: fill-opacity .16s ease, stroke-opacity .16s ease; }
.anatomy2d-landmark-hit:hover > *, .anatomy2d-landmark-hit:focus-visible > * { fill: #62b99d; fill-opacity: .35; stroke: #e2fff4; stroke-opacity: .95; }
.anatomy2d-landmark-hit.active > * { fill: #44a584; fill-opacity: .46; stroke: #fff; stroke-opacity: 1; filter: url(#selectionGlow); }
.anatomy2d-photo-surface { pointer-events: none; }
.anatomy2d-photo-surface ~ :is(.anatomy2d-mane, .anatomy2d-tail, .anatomy2d-leg-shadow, .anatomy2d-face-highlight, .anatomy2d-eye, .anatomy2d-eye-glint, .anatomy2d-nostril, .anatomy2d-hoof) { display: none; }
.anatomy2d-photo-layer { pointer-events: none; filter: drop-shadow(0 14px 18px rgba(27, 54, 46, .11)); }
.anatomy2d-photo-layer, .anatomy2d-photo-surface { transition: opacity .2s ease, filter .2s ease; }
.anatomy2d-layer.has-sublayer-preview .anatomy2d-photo-layer,
[data-anatomy2d-layer].has-sublayer-preview .anatomy2d-photo-layer { opacity: .64; filter: saturate(.72) brightness(1.04) drop-shadow(0 14px 18px rgba(27, 54, 46, .09)); }
[data-anatomy2d-layer="surface"].has-sublayer-preview .anatomy2d-photo-surface { opacity: .8; filter: saturate(.82) brightness(1.03); }
.anatomy2d-hotspot-layer .anatomy2d-structure > * { opacity: .001 !important; pointer-events: visiblePainted; transition: opacity .16s ease, filter .16s ease, stroke-width .16s ease; }
.anatomy2d-hotspot-layer .anatomy2d-structure.is-sublayer-preview:not(.active) > * { opacity: .22 !important; stroke-width: 2.4; }
.anatomy2d-canvas.is-photo-backed-sublayer .anatomy2d-hotspot-layer .anatomy2d-structure.is-sublayer-preview:not(.active) > * { opacity: .001 !important; }
.anatomy2d-canvas.is-photo-backed-sublayer .anatomy2d-hotspot-layer .anatomy2d-structure.active > * { fill-opacity: .08; opacity: .72 !important; }
.anatomy2d-canvas.is-detail-zoom .anatomy2d-hotspot-layer .anatomy2d-structure.is-sublayer-preview:not(.active) > * { opacity: .025 !important; }
.anatomy2d-surface-atlas-hotspots .anatomy2d-structure.is-sublayer-preview:not(.active) > *,
.anatomy2d-landmarks .anatomy2d-structure.is-sublayer-preview:not(.active) > *,
.anatomy2d-surface-hit.is-sublayer-preview:not(.active) > * { fill: #4ba98b; fill-opacity: .18; stroke: #e5fff6; stroke-opacity: .78; }
.anatomy2d-soft-hotspots[data-anatomy2d-sublayer="superficial-muscles"] .is-sublayer-preview > *,
[data-anatomy2d-sublayer="superficial-muscles"] > .is-sublayer-preview > * { fill: #c85c55; stroke: #7e3538; }
.anatomy2d-soft-hotspots[data-anatomy2d-sublayer="deep-muscles"] .is-sublayer-preview > *,
[data-anatomy2d-sublayer="deep-muscles"] > .is-sublayer-preview > * { fill: #8e5ca2; stroke: #5e3c72; }
.anatomy2d-soft-hotspots[data-anatomy2d-sublayer="projected-muscles"] .is-sublayer-preview > * { fill: #6c5a96; stroke: #f0eaff; stroke-dasharray: 7 5; }
.anatomy2d-soft-hotspots[data-anatomy2d-sublayer="facial-muscles"] .is-sublayer-preview > * { fill: #d66876; stroke: #853d50; }
.anatomy2d-soft-hotspots[data-anatomy2d-sublayer="axial-muscles"] .is-sublayer-preview > * { fill: #ad4f59; stroke: #6d303a; }
.anatomy2d-soft-hotspots[data-anatomy2d-sublayer="forelimb-muscles"] .is-sublayer-preview > * { fill: #c8764f; stroke: #7c472f; }
.anatomy2d-soft-hotspots[data-anatomy2d-sublayer="hindlimb-muscles"] .is-sublayer-preview > * { fill: #af6255; stroke: #713b35; }
.anatomy2d-soft-hotspots[data-anatomy2d-sublayer="scapular-muscles"] .is-sublayer-preview > * { fill: #d3944e; stroke: #7e552c; }
.anatomy2d-soft-hotspots[data-anatomy2d-sublayer="tendons"] .is-sublayer-preview > * { fill: #ead49b; stroke: #9d7c3f; }
.anatomy2d-soft-hotspots[data-anatomy2d-sublayer="ligaments"] .is-sublayer-preview > * { fill: #e0ad54; stroke: #8c672d; }
.anatomy2d-soft-hotspots[data-anatomy2d-sublayer="fascia"] .is-sublayer-preview > * { fill: #58a6a5; stroke: #2f6f75; }
.anatomy2d-hard-hotspots .anatomy2d-structure.is-sublayer-preview:not(.active) > * { fill: #f0dda8; stroke: #9b7d43; opacity: .28 !important; }
.anatomy2d-soft-hotspots .anatomy2d-structure:hover > *, .anatomy2d-soft-hotspots .anatomy2d-structure:focus-visible > * { opacity: .34 !important; filter: url(#selectionGlow) brightness(1.18); }
.anatomy2d-soft-hotspots .anatomy2d-structure.active > * { opacity: .58 !important; filter: url(#selectionGlow) brightness(1.24) saturate(1.18); stroke: #e7fff7; stroke-width: 4.5; }
.anatomy2d-hard-hotspots .anatomy2d-structure:hover > *, .anatomy2d-hard-hotspots .anatomy2d-structure:focus-visible > * { opacity: .4 !important; filter: url(#selectionGlow); }
.anatomy2d-hard-hotspots .anatomy2d-structure.active > * { opacity: .68 !important; filter: url(#selectionGlow) brightness(1.18); stroke: #fff2bc; stroke-width: 4; }
.anatomy2d-hotspot-layer .anatomy2d-structure.is-clear:not(.active) > * { opacity: .2 !important; filter: drop-shadow(0 0 5px rgba(71, 148, 115, .95)); }
.anatomy2d-hotspot-layer .anatomy2d-structure.is-finding:not(.active) > * { opacity: .28 !important; filter: drop-shadow(0 0 7px rgba(213, 85, 63, 1)); }
.anatomy2d-hotspot-layer .anatomy2d-structure.is-treated:not(.active) > * { opacity: .24 !important; filter: drop-shadow(0 0 7px rgba(101, 94, 181, .98)); }
.anatomy2d-photo-fascia { opacity: .16; }
.anatomy2d-deep-muscles { opacity: 1; }
.anatomy2d-annotation-layer { pointer-events: none; }
.anatomy2d-drawing-mark { fill: none; stroke: var(--mark-color); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 2px rgba(20, 37, 32, .45)); }
.anatomy2d-drawing-mark:is(circle) { fill: color-mix(in srgb, var(--mark-color) 25%, transparent); stroke-width: 5; }
.anatomy2d-canvas.is-drawing .anatomy2d-svg { cursor: crosshair; touch-action: none; }

.ori-incident-response {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #e6b86b;
  border-radius: 16px;
  background: #fffaf0;
}
.ori-incident-response > strong { display: flex; gap: 8px; align-items: center; color: #7a4915; }
.ori-incident-response ol, .ori-incident-response ul { margin: 10px 0; padding-left: 22px; }
.ori-incident-tasks { display: grid; gap: 8px; margin: 12px 0; }
.ori-incident-tasks > span { display: flex; justify-content: space-between; gap: 12px; padding: 10px; border-radius: 12px; background: #fff; }
.ori-incident-tasks em { font-style: normal; color: var(--muted); text-align: right; }
.ori-required-details { display: grid; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 14px; background: #f4f8f7; }
.ori-required-details label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.ori-required-details select, .ori-required-details input { width: 100%; min-height: 44px; font-size: 16px; }
.ori-required-details .checkbox-line { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; }
.ori-required-details .checkbox-line input { width: 20px; min-height: 20px; }
@media (max-width: 640px) {
  .sos-public-main { padding: 12px; }
  .sos-public-hero { height: 190px !important; max-height: 190px !important; }
  .sos-public-content { padding: 17px; }
  .sos-public-content h1 { font-size: 26px; }
  .sos-public-message { padding: 24px 20px; }
  .ori-incident-tasks > span { flex-direction: column; }
  .ori-incident-tasks em { text-align: left; }
}
.anatomy2d-canvas.is-drawing .anatomy2d-structure { pointer-events: none; }
.anatomy2d-voice-placeholder:not(:disabled) { border-style: solid; border-color: #b9d3c9; background: #f3faf7; cursor: pointer; }
.anatomy2d-voice-placeholder:not(:disabled):hover { border-color: #659d8b; background: #eaf6f1; }
.anatomy2d-voice-placeholder:not(:disabled) b { background: #dfeee8; color: #397867; }
.anatomy2d-voice-placeholder.is-listening { border-color: #c85f52; background: #fff3f0; color: #8e392f; box-shadow: 0 0 0 3px rgba(200, 95, 82, .12); }
.anatomy2d-voice-placeholder.is-listening b { background: #c85f52; color: #fff; }
.anatomy2d-report-latin { color: #627971 !important; font-family: Georgia, serif; font-style: italic; }
.anatomy2d-presets[data-anatomy2d-sublayer-filter] { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-top: 1px solid #edf2ef; background: #fbfcfb; }
.anatomy2d-presets[data-anatomy2d-sublayer-filter] > span { display: block; width: 100%; color: #70857e; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.anatomy2d-layer-note { padding: 8px 12px; border-top: 1px solid #e9efec; background: #f4f8f6; color: #587068; font-size: 9px; line-height: 1.45; }
.anatomy2d-structure-picker { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid #edf2ef; background: #f7faf8; }
.anatomy2d-structure-picker > span { color: #536a62; font-size: 9px; font-weight: 800; }
.anatomy2d-structure-picker select { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #d5e1dc; border-radius: 9px; background: #fff; color: #29493f; font: inherit; font-size: 10px; outline: none; }
.anatomy2d-structure-picker select:focus { border-color: #6da693; box-shadow: 0 0 0 3px rgba(65, 133, 111, .12); }
.anatomy2d-structure-picker small { color: #7e918a; font-size: 8px; white-space: nowrap; }
.anatomy2d-label-toggle { min-height: 34px; padding: 0 10px; border: 1px solid #cddbd5; border-radius: 9px; background: #fff; color: #41645a; font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.anatomy2d-label-toggle.active { border-color: #397867; background: #e8f5ef; color: #275f50; }
.anatomy2d-detail-zoom { min-height: 34px; padding: 0 10px; border: 1px solid #cddbd5; border-radius: 9px; background: #fff; color: #41645a; font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.anatomy2d-detail-zoom[aria-pressed="true"] { border-color: #397867; background: #2f7964; color: #fff; }
.anatomy2d-map-labels { position: absolute; inset: 0; z-index: 4; min-width: 100%; min-height: 100%; pointer-events: none; }
.anatomy2d-label-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.anatomy2d-label-leader path { fill: none; stroke: rgba(37, 91, 74, .55); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke .15s ease, stroke-width .15s ease, opacity .15s ease; }
.anatomy2d-label-leader circle { fill: #f8fffc; stroke: rgba(37, 91, 74, .72); stroke-width: 1.4; vector-effect: non-scaling-stroke; transition: fill .15s ease, stroke .15s ease, r .15s ease; }
.anatomy2d-label-leader:is(.active, .is-hovered) path { stroke: #1f8065; stroke-width: 2.35; opacity: 1; }
.anatomy2d-label-leader:is(.active, .is-hovered) circle { fill: #36a482; stroke: #fff; stroke-width: 2; r: 5; }
.anatomy2d-map-labels button { position: absolute; z-index: 1; width: max-content; max-width: 146px; min-height: 25px; padding: 4px 8px; border: 1px solid rgba(60, 104, 89, .34); border-radius: 7px; background: rgba(255,255,255,.94); box-shadow: 0 3px 11px rgba(18, 42, 34, .13); color: #294f43; font: inherit; font-size: 8px; font-weight: 780; line-height: 1.18; text-align: center; white-space: normal; overflow-wrap: normal; hyphens: auto; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; backdrop-filter: blur(6px); transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.anatomy2d-map-labels button:hover, .anatomy2d-map-labels button:focus-visible, .anatomy2d-map-labels button.is-hovered { z-index: 3; max-width: 245px; border-color: #3d9b7d; background: #f4fffb; color: #165a47; outline: 2px solid rgba(79, 224, 179, .34); box-shadow: 0 5px 16px rgba(20, 67, 52, .22); transform: translate(-50%, -50%) scale(1.045); }
.anatomy2d-map-labels button.active { z-index: 2; border-color: #2e876c; background: #2f8b6e; color: #fff; box-shadow: 0 0 0 3px rgba(79, 224, 179, .22), 0 5px 15px rgba(20, 67, 52, .23); }
.anatomy2d-structure.is-label-hovered { filter: url(#selectionGlow) brightness(1.16) saturate(1.12); }
.anatomy2d-landmark-hit.is-label-hovered > * { fill: #62b99d; fill-opacity: .4; stroke: #e2fff4; stroke-opacity: 1; }
.anatomy2d-hotspot-layer .anatomy2d-structure.is-label-hovered > * { opacity: .58 !important; filter: url(#selectionGlow) brightness(1.2); stroke-width: 4.5; }
.anatomy2d-selection-callout { position: absolute; z-index: 6; display: grid; min-width: 110px; max-width: 220px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.9); border-radius: 9px; background: rgba(24, 67, 54, .94); box-shadow: 0 8px 22px rgba(18, 47, 38, .24); color: #fff; line-height: 1.15; text-align: center; transform: translate(-50%, -100%); pointer-events: none; backdrop-filter: blur(7px); }
.anatomy2d-selection-callout::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: inherit; border-right: 1px solid rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.8); transform: translateX(-50%) rotate(45deg); }
.anatomy2d-selection-callout b { font-size: 10px; }
.anatomy2d-selection-callout small { margin-top: 2px; color: #cfe8df; font-family: Georgia, serif; font-size: 8px; font-style: italic; }
[data-anatomy2d-atlas-meta] { display: grid; gap: 10px; margin: -3px 0 16px; padding: 13px; border: 1px solid #dce8e2; border-radius: 11px; background: #f8fbf9; color: #587068; font-size: 11px; line-height: 1.48; }
[data-anatomy2d-atlas-meta] > div { display: grid; gap: 2px; }
[data-anatomy2d-atlas-meta] > div > b { color: #315f51; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
[data-anatomy2d-verification] { display: inline-flex; width: max-content; max-width: 100%; padding: 5px 8px; border-radius: 999px; background: #fff1d9; color: #855d16; font-size: 10px; font-weight: 800; }
[data-anatomy2d-safety] { display: block; padding-top: 8px; border-top: 1px solid #e1e9e5; color: #70827c; font-size: 10px; line-height: 1.45; }
.anatomy2d-drawing-colors button[data-anatomy2d-draw-color="red"] { background: #c64f45; }
.anatomy2d-drawing-colors button[data-anatomy2d-draw-color="amber"] { background: #d99128; }
.anatomy2d-drawing-colors button[data-anatomy2d-draw-color="blue"] { background: #3277bf; }
.anatomy2d-drawing-colors button[data-anatomy2d-draw-color="green"] { background: #388b67; }

@media (max-width: 1120px) {
  .anatomy2d-layout { grid-template-columns: 1fr; }
  .anatomy2d-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

@media (max-width: 700px) {
  .anatomy2d-safety { align-items: flex-start; margin-top: -4px; }
  .anatomy2d-safety span { font-size: 11px; }
  .anatomy2d-safety > b { display: none; }
  .anatomy2d-toolbar { align-items: stretch; flex-direction: column; }
  .anatomy2d-presets { display: grid; grid-template-columns: repeat(2, 1fr); }
  .anatomy2d-presets button { justify-content: center; min-height: 44px; padding-inline: 7px; font-size: 10px; }
  .anatomy2d-view-label { text-align: center; }
  .anatomy2d-canvas { min-height: 340px; overflow-x: auto; overscroll-behavior-inline: contain; }
  .anatomy2d-svg { width: 760px; min-width: 760px; min-height: 410px; }
  .anatomy2d-canvas.is-fit { min-height: 250px; overflow-x: hidden; }
  .anatomy2d-canvas.is-fit .anatomy2d-svg { width: 100%; min-width: 0; min-height: 250px; height: auto; }
  .anatomy2d-structure-picker { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .anatomy2d-structure-picker > span { grid-column: 1 / -1; }
  .anatomy2d-structure-picker select { grid-column: 1 / -1; font-size: 16px; }
  .anatomy2d-map-labels button { max-width: 112px; min-height: 25px; font-size: 8px; }
  .anatomy2d-selection-callout { max-width: 170px; padding: 6px 8px; }
  .anatomy2d-canvas-footer { align-items: flex-start; flex-direction: column; font-size: 10px; }
  .anatomy2d-mobile-zoom { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; width: 100%; margin-top: 2px; border: 1px solid #cddbd5; border-radius: 10px; background: #f4f8f6; color: #315f51; font: inherit; font-weight: 750; }
  .anatomy2d-sidebar { grid-template-columns: 1fr; }
  .anatomy2d-finding-editor { padding: 17px; }
  .anatomy2d-finding-editor > p { font-size: 11px; }
  .anatomy2d-selection-head h2 { font-size: 21px; }
  .anatomy2d-fieldset legend, .anatomy2d-field > span { font-size: 11px; }
  .anatomy2d-status-grid button, .anatomy2d-segment button { min-height: 44px; font-size: 11px; }
  .anatomy2d-field select, .anatomy2d-field textarea { font-size: 16px; }
  .anatomy2d-voice-placeholder strong { font-size: 10px; }
  .anatomy2d-voice-placeholder small { font-size: 9px; }
  .anatomy2d-report-list strong { font-size: 10px; }
  .anatomy2d-report-list small, .anatomy2d-report-list em { font-size: 9px; }
  .anatomy2d-drawing-toolbar { display: grid; grid-template-columns: 1fr auto auto; padding: 9px; }
  .anatomy2d-drawing-toolbar > button { min-height: 42px; font-size: 10px; }
  .anatomy2d-drawing-toolbar > button:first-child { grid-column: 1 / -1; }
  .anatomy2d-drawing-toolbar > small { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 9px; }
  .anatomy2d-drawing-colors { min-height: 42px; align-items: center; justify-content: center; }
  .anatomy2d-drawing-colors button { width: 29px; height: 29px; }
  .anatomy2d-side-badge { top: 8px; right: 8px; font-size: 9px; }
  .anatomy2d-latin { font-size: 12px; }
  .anatomy2d-presets[data-anatomy2d-sublayer-filter] { display: flex; overflow-x: auto; flex-wrap: nowrap; padding: 9px; scrollbar-width: thin; }
  .anatomy2d-presets[data-anatomy2d-sublayer-filter] > span { position: sticky; left: 0; z-index: 1; width: auto; min-width: max-content; align-self: center; padding: 7px 8px 7px 3px; background: #fbfcfb; }
  .anatomy2d-presets[data-anatomy2d-sublayer-filter] button { min-width: max-content; }
  .anatomy2d-structure-picker { grid-template-columns: 1fr auto; padding: 10px; }
  .anatomy2d-structure-picker > span { grid-column: 1 / -1; font-size: 10px; }
  .anatomy2d-structure-picker select { min-height: 44px; font-size: 16px; }
  .anatomy2d-structure-picker small { font-size: 9px; }
  [data-anatomy2d-atlas-meta] { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 650px) {
  .horse-photo-editor { grid-template-columns: 1fr; gap: 13px; }
  .horse-photo-preview, .horse-photo-preview img { min-height: 190px; max-height: 270px; }
  .horse-photo-actions { grid-column: 1; display: grid; grid-template-columns: 1fr 1fr; }
  .horse-photo-actions .button { width: 100%; justify-content: center; min-height: 46px; }
  .horse-photo-actions .danger-outline { grid-column: 1 / -1; }
  .horse-photo-status { grid-column: 1; font-size: 12px; }
}

.event-treatment-panel,
.treatment-completion-summary,
.treatment-price-reminder {
  border: 1px solid #d8e4de;
  border-radius: 15px;
  background: #f3f8f5;
}
.event-treatment-panel { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.event-treatment-panel > div,
.treatment-completion-summary { display: flex; align-items: center; gap: 11px; }
.event-treatment-panel svg,
.treatment-completion-summary > svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--forest); }
.event-treatment-panel span,
.treatment-completion-summary div { min-width: 0; display: grid; gap: 3px; }
.event-treatment-panel small,
.treatment-completion-summary small { color: var(--muted); line-height: 1.45; }
.event-treatment-panel.completed { border-color: #bcd9cc; background: #edf8f2; }
.event-aftercare-panel:not(.completed) { border-color:#e6cfaa; background:#fff9ec; }
.event-aftercare-panel:not(.completed) svg { color:#b47335; }
.aftercare-completion-summary { border-color:#c9ded2; background:#f1f8f4; }
.treatment-completion-summary { padding: 16px; }
.treatment-completion-summary span { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.treatment-completion-summary strong { color: var(--forest); font-size: 17px; }
.treatment-price-reminder { padding: 11px 13px; display: flex; align-items: flex-start; gap: 9px; color: #4d665c; font-size: 12px; line-height: 1.45; }
.treatment-price-reminder svg { width: 17px; height: 17px; flex: 0 0 auto; }

@media (max-width: 650px) {
  .event-treatment-panel { align-items: stretch; flex-direction: column; }
  .event-treatment-panel .button { width: 100%; min-height: 46px; justify-content: center; }
}

.community-chat-form { grid-template-columns: 40px minmax(0, 1fr) auto; }
.community-photo-button { width: 40px; min-height: 38px; border: 1px solid #cdd7d0; border-radius: 11px; display: grid; place-items: center; align-self: end; color: var(--forest); background: #f3f7f4; cursor: pointer; }
.community-photo-button.selected { color: var(--white); border-color: var(--forest); background: var(--forest); }
.community-photo-button svg { width: 18px; height: 18px; }
.community-photo-button input { display: none; }
.community-photo-preview { grid-column: 1 / -1; min-height: 48px; padding: 7px; border: 1px solid #d9e2dc; border-radius: 10px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 32px; align-items: center; gap: 8px; background: #f7faf7; }
.community-photo-preview[hidden] { display: none; }
.community-photo-preview img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.community-photo-preview span { min-width: 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.community-photo-preview button { width: 32px !important; min-height: 32px !important; padding: 0 !important; justify-content: center; color: #8d433b !important; background: #f8e9e7 !important; font-size: 18px !important; }
.community-message-photo { margin: -5px -7px 7px; padding: 0; border: 0; border-radius: 9px; display: block; overflow: hidden; background: transparent; cursor: zoom-in; }
.community-message-photo img { width: min(360px, 100%); max-height: 360px; display: block; object-fit: cover; }
.community-message.mine .community-message-photo { margin-inline: -7px; }

@media (max-width: 650px) {
  .community-chat-form { grid-template-columns: 42px minmax(0, 1fr) 42px; }
  .community-photo-button { width: 42px; min-height: 42px; }
  .community-chat-form > button[type="submit"] { width: 42px; min-height: 42px; }
  .community-message-photo img { max-height: 300px; }
}

/* Private friend circle: deliberately quieter than a public social network. */
.community-social-layout { display:grid; grid-template-columns:minmax(0, 1fr) 360px; gap:22px; align-items:start; }
.community-social-layout > main { min-width:0; display:grid; gap:18px; }
.community-social-side { min-width:0; display:grid; gap:16px; position:sticky; top:18px; }
.community-composer { padding:22px; border-radius:24px; box-shadow:0 14px 44px rgba(21,59,50,.07); }
.community-composer > header { display:flex; align-items:center; gap:12px; }
.community-composer > header > div { min-width:0; flex:1; display:grid; gap:2px; }
.community-composer > header strong { font-size:16px; }
.community-composer > header small { color:var(--muted); font-size:12px; }
.community-composer > header button { min-height:36px; padding:0 12px; border:1px solid var(--line); border-radius:12px; color:var(--forest); background:#f4f7f3; font:inherit; font-size:12px; font-weight:750; cursor:pointer; }
.community-composer > header button svg { width:14px; vertical-align:middle; }
.community-composer form { margin-top:16px; display:grid; gap:14px; }
.community-composer textarea { width:100%; min-height:108px; padding:16px; border:1px solid #d5ddd7; border-radius:18px; resize:vertical; outline:0; color:var(--ink); background:#fafbf8; font:inherit; font-size:16px; line-height:1.55; }
.community-composer textarea:focus { border-color:#7f9c89; box-shadow:0 0 0 4px rgba(63,104,81,.09); }
.community-compose-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.community-compose-fields label { display:grid; gap:6px; color:var(--muted); font-size:11px; font-weight:700; }
.community-compose-fields select { min-width:0; min-height:44px; padding:0 12px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:#fff; font:inherit; font-size:13px; }
.community-visibility-compact { width:max-content; max-width:100%; min-height:34px; padding:3px 4px 3px 9px; border:1px solid #d9e2dc; border-radius:999px; display:inline-flex; align-items:center; gap:5px; color:#5f766a; background:#f5f8f5; font-size:11px; font-weight:750; }
.community-visibility-compact > span { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.community-visibility-compact svg { width:13px; }
.community-visibility-compact select { max-width:180px; min-height:26px; padding:0 24px 0 6px; border:0; border-radius:999px; outline:0; color:var(--forest); background:#fff; font:inherit; font-size:11px; font-weight:800; }
.community-selected-friends { padding:12px; border-radius:14px; display:flex; flex-wrap:wrap; gap:8px; background:#f1f6f1; }
.community-selected-friends[hidden] { display:none; }
.community-selected-friends > strong { width:100%; font-size:12px; }
.community-selected-friends label { padding:7px 10px; border:1px solid #d1ddd4; border-radius:999px; display:flex; gap:6px; background:#fff; font-size:12px; }
.community-compose-actions { display:flex; align-items:center; gap:10px; }
.community-compose-actions > small { flex:1; color:var(--muted); font-size:11px; }
.community-composer form > p { margin:0; display:flex; align-items:center; gap:6px; color:var(--muted); font-size:11px; }
.community-composer form > p svg { width:14px; color:var(--forest); }
.community-feed-list { display:grid; gap:18px; }
.community-feed-card { border:1px solid var(--line); border-radius:24px; overflow:hidden; background:#fff; box-shadow:0 12px 38px rgba(21,59,50,.055); }
.community-feed-card > header { padding:18px 20px 12px; display:flex; align-items:center; gap:11px; }
.community-feed-card > header > div { min-width:0; flex:1; display:grid; grid-template-columns:auto 1fr; gap:2px 8px; }
.community-feed-card > header strong { font-size:15px; }
.community-feed-card > header > div > button { padding:0; border:0; color:#648071; background:transparent; text-align:left; font:inherit; font-size:12px; cursor:pointer; }
.community-feed-card > header small { grid-column:1/-1; color:var(--muted); font-size:11px; }
.community-feed-card > header details { position:relative; }
.community-feed-card > header summary { width:36px; height:36px; border-radius:11px; display:grid; place-items:center; list-style:none; cursor:pointer; }
.community-feed-card > header summary::-webkit-details-marker { display:none; }
.community-feed-card > header details > div { min-width:170px; padding:6px; border:1px solid var(--line); border-radius:12px; position:absolute; top:38px; right:0; z-index:3; background:#fff; box-shadow:0 12px 30px rgba(21,59,50,.14); }
.community-feed-card > header details button { width:100%; min-height:38px; padding:0 9px; border:0; border-radius:8px; text-align:left; background:transparent; font:inherit; font-size:12px; cursor:pointer; }
.community-feed-card > header details button.danger { color:#963c34; }
.community-post-body { margin:0; padding:5px 20px 18px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:15px; line-height:1.6; }
.community-post-photos { display:grid; gap:3px; background:#eef2ed; }
.community-post-photos.count-1 { grid-template-columns:1fr; }
.community-post-photos.count-2 { grid-template-columns:1fr 1fr; }
.community-post-photos.count-3 { grid-template-columns:2fr 1fr; }
.community-post-photos > button { min-height:220px; padding:0; border:0; overflow:hidden; background:#e7ece6; cursor:zoom-in; }
.community-post-photos > button:first-child:last-child { min-height:390px; }
.community-post-photos img { width:100%; height:100%; max-height:520px; display:block; object-fit:cover; }
.community-post-photos.count-1 > button { min-height:0; display:flex; align-items:center; justify-content:center; background:#f1f3ef; }
.community-post-photos.count-1 img { width:auto; height:auto; max-width:100%; max-height:min(72vh,720px); object-fit:contain; }
.community-shared-story { margin:0 20px 18px; padding:16px; border:1px solid #cfdbd1; border-radius:16px; display:flex; gap:12px; color:var(--forest); background:linear-gradient(135deg,#edf5ec,#f8f4ea); }
.community-shared-story svg { width:22px; flex:0 0 auto; }
.community-shared-story div { display:grid; gap:3px; }
.community-shared-story small { font-size:9px; letter-spacing:.08em; }
.community-shared-story strong { font-family:var(--serif); font-size:20px; }
.community-shared-story span { color:var(--muted); font-size:11px; }
.community-feed-card > footer { padding:12px 20px; border-bottom:1px solid #edf0ec; display:flex; gap:18px; }
.community-feed-card > footer button,.community-feed-card > footer span { padding:0; border:0; display:flex; align-items:center; gap:6px; color:var(--muted); background:transparent; font:inherit; font-size:12px; }
.community-feed-card > footer button { cursor:pointer; }
.community-feed-card > footer button.selected { color:#b66057; }
.community-feed-card > footer svg { width:17px; }
.community-comments { padding:12px 20px 0; display:grid; gap:9px; }
.community-comments article { padding:10px 12px; border-radius:13px; background:#f4f6f2; }
.community-comments strong { font-size:12px; }
.community-comments p { margin:3px 0 0; font-size:13px; line-height:1.45; }
.community-comments time { margin-top:4px; display:block; color:var(--muted); font-size:9px; }
.community-comment-form { padding:12px 20px 18px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; scroll-margin-bottom:calc(env(safe-area-inset-bottom) + 96px); }
.community-comment-form input { min-width:0; min-height:42px; padding:0 13px; border:1px solid var(--line); border-radius:13px; background:#fafbf8; font:inherit; font-size:14px; }
.community-comment-form button { min-width:42px; min-height:42px; padding:0 12px; border:0; border-radius:12px; color:#fff; background:var(--forest); font:inherit; cursor:pointer; }
.community-comment-form button svg { width:16px; vertical-align:middle; }
.community-comment-form button span { margin-left:5px; }
.community-photo-open { overflow:hidden; }
.community-photo-dialog { width:min(1180px,calc(100vw - 34px)); height:min(820px,calc(100dvh - 34px)); max-width:none; max-height:none; padding:0; border:0; border-radius:24px; overflow:hidden; color:var(--ink); background:#fff; box-shadow:0 30px 100px rgba(2,18,13,.38); }
.community-photo-dialog::backdrop { background:rgba(6,18,14,.78); backdrop-filter:blur(7px); }
.community-photo-viewer { width:100%; height:100%; display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,390px); position:relative; background:#0d1512; }
.community-photo-viewer.standalone { grid-template-columns:1fr; }
.community-photo-close { width:42px; height:42px; padding:0; border:1px solid rgba(255,255,255,.34); border-radius:50%; display:grid; place-items:center; position:absolute; top:14px; right:14px; z-index:3; color:#fff; background:rgba(10,28,22,.76); box-shadow:0 5px 18px rgba(0,0,0,.22); cursor:pointer; font:inherit; font-size:28px; line-height:1; }
.community-photo-media { min-width:0; min-height:0; padding:24px; display:grid; grid-template-rows:minmax(0,1fr) auto; place-items:center; gap:12px; overflow:hidden; background:radial-gradient(circle at 50% 45%,#26342f,#0b1210 70%); }
.community-photo-media > img { max-width:100%; max-height:100%; display:block; object-fit:contain; border-radius:4px; box-shadow:0 12px 40px rgba(0,0,0,.24); }
.community-photo-thumbnails { max-width:100%; display:flex; align-items:center; justify-content:center; gap:7px; overflow:auto; scrollbar-width:thin; }
.community-photo-thumbnails button { width:52px; height:52px; padding:0; border:2px solid transparent; border-radius:10px; overflow:hidden; flex:0 0 auto; background:#24332d; cursor:pointer; }
.community-photo-thumbnails button.selected { border-color:#fff; }
.community-photo-thumbnails img { width:100%; height:100%; display:block; object-fit:cover; }
.community-photo-social { min-width:0; min-height:0; display:flex; flex-direction:column; background:#fff; }
.community-photo-social > header { padding:22px 54px 16px 20px; border-bottom:1px solid #e7ece8; display:flex; align-items:center; gap:11px; }
.community-photo-social > header > div { min-width:0; display:grid; grid-template-columns:auto 1fr; gap:2px 7px; }
.community-photo-social > header strong { font-size:14px; }
.community-photo-social > header span { color:#648071; font-size:11px; }
.community-photo-social > header small { grid-column:1/-1; color:var(--muted); font-size:10px; }
.community-photo-caption { max-height:120px; margin:0; padding:15px 20px; overflow:auto; border-bottom:1px solid #edf0ed; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.55; }
.community-photo-actions { min-height:48px; padding:0 20px; border-bottom:1px solid #e7ece8; display:flex; align-items:center; gap:18px; }
.community-photo-actions button,.community-photo-actions > span { padding:0; border:0; display:flex; align-items:center; gap:6px; color:var(--muted); background:transparent; font:inherit; font-size:12px; }
.community-photo-actions button { cursor:pointer; }
.community-photo-actions button.selected { color:#b66057; }
.community-photo-actions svg { width:17px; }
.community-photo-comments { min-height:0; padding:14px 18px; display:grid; align-content:start; gap:9px; overflow:auto; overscroll-behavior:contain; flex:1 1 auto; }
.community-photo-comments article { padding:10px 12px; border-radius:13px; background:#f4f6f2; }
.community-photo-comments strong { font-size:12px; }
.community-photo-comments p { margin:3px 0 0; overflow-wrap:anywhere; font-size:13px; line-height:1.45; }
.community-photo-comments time { margin-top:4px; display:block; color:var(--muted); font-size:9px; }
.community-photo-no-comments { margin:auto; padding:24px 0; color:var(--muted); text-align:center; font-size:12px; }
.community-photo-comment-form { padding:12px 16px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid #e7ece8; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; background:#fff; }
.community-photo-comment-form input { min-width:0; min-height:43px; padding:0 13px; border:1px solid var(--line); border-radius:13px; background:#fafbf8; font:inherit; font-size:14px; }
.community-photo-comment-form button { min-width:43px; min-height:43px; padding:0 12px; border:0; border-radius:12px; color:#fff; background:var(--forest); font:inherit; cursor:pointer; }
.community-photo-comment-form svg { width:16px; vertical-align:middle; }
.community-photo-comment-form button span { margin-left:5px; }
.community-privacy-current { padding:14px 16px; border:1px solid #dce8e1; border-radius:16px; display:flex; align-items:center; gap:12px; background:#f5faf7; }
.community-privacy-current > svg { width:22px; color:var(--forest); }
.community-privacy-current > div { display:grid; gap:3px; }
.community-privacy-current small { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.community-privacy-current strong { font-size:15px; }
.community-feed-empty { padding:46px 24px; display:grid; justify-items:center; gap:8px; text-align:center; }
.community-feed-empty svg { width:30px; color:#8ca092; }
.community-feed-empty strong { font-family:var(--serif); font-size:24px; }
.community-feed-empty p { max-width:480px; color:var(--muted); font-size:13px; line-height:1.55; }
.community-people { max-height:560px; overflow:auto; border-radius:22px; }
.community-profile-panel { padding:20px; border:1px solid var(--line); border-radius:22px; display:grid; justify-items:center; gap:5px; position:relative; background:#fff; box-shadow:0 10px 30px rgba(21,59,50,.06); text-align:center; }
.community-profile-panel .community-avatar { width:64px; height:64px; font-size:20px; }
.community-profile-panel > button[data-community-close-profile] { width:34px; height:34px; border:0; border-radius:10px; position:absolute; top:10px; right:10px; background:#f1f3ef; font-size:20px; cursor:pointer; }
.community-profile-panel > strong { margin-top:7px; font-size:17px; }
.community-profile-panel > span { color:#648071; font-size:12px; }
.community-profile-panel > p { margin:7px 0 12px; color:var(--muted); font-size:13px; line-height:1.5; }
.community-social-side > .community-chat-panel { height:520px; border-radius:22px; }
.community-profile-form { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.community-profile-avatar-editor { padding:14px; border:1px solid var(--line); border-radius:18px; display:grid; grid-template-columns:72px auto; align-items:center; gap:8px 14px; background:#f8faf7; }
.community-profile-avatar-editor .community-avatar { width:72px; height:72px; grid-row:1 / 4; border-radius:50%; font-size:20px; }
.community-profile-avatar-editor > .button { width:max-content; margin:0; }
.community-profile-avatar-editor > small { color:var(--muted); font-size:11px; line-height:1.4; }
.community-avatar-remove { display:flex; align-items:center; gap:7px; color:#7d4a44; font-size:12px; }
.community-mobile-chat-list-head { display:none; }

@media (max-width: 980px) {
  .community-social-layout { grid-template-columns:1fr; }
  .community-social-side { position:static; }
  .community-people { max-height:none; }
}

@media (max-width: 760px) {
  .community-profile-form { grid-template-columns:1fr; }
  .community-profile-avatar-editor { grid-template-columns:58px 1fr; }
  .community-profile-avatar-editor .community-avatar { width:58px; height:58px; }
  .community-visibility-compact select { max-width:145px; }
}
@media (max-width: 760px) {
  .community-page { padding-inline:12px; }
  .community-composer { padding:16px; border-radius:19px; }
  .community-compose-fields { grid-template-columns:1fr; }
  .community-compose-actions { align-items:stretch; flex-wrap:wrap; }
  .community-compose-actions > small { width:100%; order:3; }
  .community-compose-actions .button { flex:1; justify-content:center; }
  .community-feed-card { border-radius:19px; }
  .community-post-photos > button,.community-post-photos > button:first-child:last-child { min-height:280px; }
  .community-post-photos.count-1 > button { min-height:0; }
  .community-post-photos.count-1 img { max-height:72dvh; }
  .community-comment-form input { font-size:16px; }
  .community-comment-form button span { display:none; }
  .community-page.chat-open { width:100%; height:var(--app-visual-height,100dvh); padding:calc(env(safe-area-inset-top) + 8px) calc(env(safe-area-inset-right) + 8px) calc(env(safe-area-inset-bottom) + 8px) calc(env(safe-area-inset-left) + 8px); position:fixed; inset:var(--app-visual-offset-top,0) 0 auto; z-index:80; overflow:hidden; background:rgba(12,39,31,.2); backdrop-filter:blur(5px); }
  .community-page.chat-open > .page-head,.community-page.chat-open > .community-load-error,.community-page.chat-open .community-social-layout > main,.community-page.chat-open .community-people,.community-page.chat-open .community-profile-panel { display:none; }
  .community-page.chat-open .community-social-layout,.community-page.chat-open .community-social-side { height:100%; display:block; }
  .community-page.chat-open .community-chat-panel { height:100%; border:1px solid rgba(255,255,255,.75); border-radius:24px; overflow:hidden; background:#fff; box-shadow:0 22px 70px rgba(13,40,34,.28); }
  .community-chat-back, .community-chat-close { width:36px; height:36px; min-height:36px; padding:0; border:0; border-radius:12px; display:grid; place-items:center; color:var(--forest); background:#e8efe9; cursor:pointer; font:inherit; font-size:25px; line-height:1; }
  .community-chat-back svg { width:20px; height:20px; }
  body.community-chat-list-open { overflow:hidden; }
  body.community-chat-list-open .community-page { width:100%; height:var(--app-visual-height,100dvh); padding:calc(env(safe-area-inset-top) + 8px) calc(env(safe-area-inset-right) + 8px) calc(env(safe-area-inset-bottom) + 8px) calc(env(safe-area-inset-left) + 8px); position:fixed; inset:var(--app-visual-offset-top,0) 0 auto; z-index:80; overflow:hidden; background:rgba(12,39,31,.2); backdrop-filter:blur(5px); }
  body.community-chat-list-open .community-page > .page-head,body.community-chat-list-open .community-page > .community-load-error,body.community-chat-list-open .community-social-layout > main,body.community-chat-list-open .community-profile-panel,body.community-chat-list-open .community-chat-panel { display:none; }
  body.community-chat-list-open .community-social-layout,body.community-chat-list-open .community-social-side { height:100%; display:block; }
  body.community-chat-list-open .community-people { height:100%; max-height:none; display:block; overflow:auto; border:1px solid rgba(255,255,255,.75); border-radius:24px; background:#fff; box-shadow:0 22px 70px rgba(13,40,34,.28); }
  body.community-chat-list-open .community-mobile-chat-list-head { min-height:62px; padding:10px 12px; position:sticky; top:0; z-index:4; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); background:#fff; }
  .community-mobile-chat-list-head > div { display:flex; align-items:center; gap:10px; }
  .community-mobile-chat-list-head svg { width:22px; height:22px; color:var(--forest); }
  .community-mobile-chat-list-head button { width:40px; height:40px; border:0; border-radius:12px; color:var(--forest); background:#e8efe9; font-size:28px; line-height:1; }
  .community-photo-dialog { width:100vw; height:var(--app-visual-height,100dvh); border-radius:0; }
  .community-photo-viewer { grid-template-columns:1fr; grid-template-rows:minmax(260px,55dvh) minmax(0,1fr); }
  .community-photo-viewer.standalone { grid-template-rows:1fr; }
  .community-photo-close { width:40px; height:40px; top:calc(10px + env(safe-area-inset-top)); right:10px; }
  .community-photo-media { padding:calc(12px + env(safe-area-inset-top)) 10px 10px; }
  .community-photo-thumbnails button { width:44px; height:44px; }
  .community-photo-social { overflow:hidden; }
  .community-photo-social > header { padding:13px 50px 10px 14px; }
  .community-photo-caption { max-height:82px; padding:10px 14px; font-size:12px; }
  .community-photo-actions { min-height:42px; padding:0 14px; }
  .community-photo-comments { padding:10px 14px; }
  .community-photo-comment-form { padding:9px 10px calc(9px + env(safe-area-inset-bottom)); }
  .community-photo-comment-form input { font-size:16px; }
  .community-photo-comment-form button span { display:none; }
}

.ori-training-followup { margin-top: 14px; padding: 15px; border: 1px solid #cfe0d7; border-radius: 16px; display: grid; gap: 12px; background: linear-gradient(145deg, #f2f8f5, #fbfcfa); }
.ori-training-followup-head { display: flex; align-items: flex-start; gap: 10px; }
.ori-training-followup-head > svg { width: 21px; height: 21px; flex: 0 0 auto; color: var(--forest); }
.ori-training-followup-head span { display: grid; gap: 3px; }
.ori-training-followup-head strong { color: var(--forest); font-size: 13px; }
.ori-training-followup-head small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.ori-training-followup-quick { display: flex; flex-wrap: wrap; gap: 7px; }
.ori-training-followup-quick button { min-height: 38px; padding: 0 11px; border: 1px solid #bbd1c5; border-radius: 10px; color: var(--forest); background: var(--white); cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }
.ori-training-followup form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.ori-training-followup form label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 750; }
.ori-training-followup form input { min-height: 42px; padding: 0 11px; border: 1px solid #c8d7cf; border-radius: 10px; outline: 0; color: var(--ink); background: var(--white); font: inherit; }
.ori-training-followup form input:focus { border-color: #779987; box-shadow: 0 0 0 3px rgba(70,111,89,.1); }
.ori-training-followup-result[hidden] { display: none; }
.ori-training-followup-loading,
.ori-training-followup-error { padding: 12px; border-radius: 11px; display: flex; align-items: center; gap: 8px; color: var(--muted); background: #fff; font-size: 10px; }
.ori-training-followup-error { color: #9a443c; background: #fff5f3; }
.ori-training-followup-loading svg,
.ori-training-followup-error svg { width: 17px; height: 17px; }
.ori-training-followup-answer { padding-top: 12px; border-top: 1px solid #d9e5df; display: grid; gap: 10px; }
.ori-training-followup-answer > div:first-child { display: flex; align-items: center; gap: 8px; }
.ori-training-followup-answer > div:first-child svg { width: 19px; color: var(--forest); }
.ori-training-followup-answer > div:first-child span { display: grid; gap: 2px; }
.ori-training-followup-answer > div:first-child small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.ori-training-followup-answer > p { color: var(--ink); font-size: 11px; line-height: 1.55; }
.ori-training-followup-items { display: grid; gap: 7px; }
.ori-training-followup-items article { padding: 10px; border-radius: 10px; display: grid; gap: 4px; background: #fff; }
.ori-training-followup-items article strong { color: var(--forest); font-size: 11px; }
.ori-training-followup-items article small { color: var(--muted); font-size: 9px; }
.ori-training-followup-items ul { margin: 3px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 10px; line-height: 1.45; }
.ori-training-followup-answer > small { display: flex; align-items: center; gap: 5px; color: #587266; font-size: 9px; }
.ori-training-followup-answer > small svg { width: 14px; }

@media (max-width: 650px) {
  .ori-training-followup { padding: 13px; }
  .ori-training-followup-quick { display: grid; grid-template-columns: 1fr; }
  .ori-training-followup-quick button { min-height: 44px; font-size: 13px; }
  .ori-training-followup form { grid-template-columns: 1fr; }
  .ori-training-followup form label { font-size: 12px; }
  .ori-training-followup form .button { min-height: 44px; justify-content: center; }
}

.nav-horse-collections { margin: 5px 6px 7px 32px; display: grid; gap: 3px; }
.nav-horse-collections a { min-height: 34px; padding: 0 8px; border-radius: 9px; display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; align-items: center; gap: 7px; color: #6d7d76; font-size: 9px; font-weight: 750; }
.nav-horse-collections a:hover,
.nav-horse-collections a.active { color: var(--forest); background: #e9f0eb; }
.nav-horse-collections svg { width: 15px; height: 15px; }
.nav-horse-collections b { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: rgba(42,78,63,.08); font-size: 8px; }
.nav-horse-collection > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 3px; }
.nav-horse-collection > div:first-child > button { padding: 0; border: 0; border-radius: 8px; color: rgba(255,255,255,.5); background: transparent; cursor: pointer; }
.nav-horse-collection > div:first-child > button:hover { color: white; background: rgba(255,255,255,.08); }
.nav-horse-collection .nav-horse-list { margin-left: 15px; }

.staff-work-area-field .field-help { margin-top: 5px; color: var(--muted); font-size: 10px; }
.staff-work-area-chips { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.staff-work-area-chips > span { min-height: 29px; padding: 4px 4px 4px 10px; border: 1px solid #d5dfd6; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; color: #52685c; background: #f4f8f4; font-size: 10px; font-weight: 700; }
.staff-work-area-chips button { width: 21px; height: 21px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: #8a4d47; background: #f5e7e4; font-size: 15px; line-height: 1; cursor: pointer; }
.staff-work-area-chips button:hover { color: white; background: #a85349; }

.employee-overview, .payroll-export-panel { margin-top: 16px; }
.employee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.employee-card { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; color: inherit; background: var(--surface-soft); font: inherit; text-align: left; cursor: pointer; }
.employee-card:hover, .employee-card:focus-visible { border-color: #a9c1b1; outline: none; box-shadow: 0 7px 20px rgba(24, 60, 46, .08); }
.employee-avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: white; background: var(--forest); font-size: 12px; font-weight: 850; }
.employee-card > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.employee-card strong { font-size: 13px; }
.employee-card span, .employee-card small { color: var(--muted); font-size: 10px; }
.employee-card em { color: #4f715b; font-size: 9px; font-style: normal; font-weight: 750; }
.employee-card em.over { color: #a14d43; }
.employee-card em.former { color: #746f69; }
.employee-card.former { background: #f7f6f3; }
.employee-card.former .employee-avatar { color: #6f746f; background: #e6e7e2; }
.employee-card .employee-open { color: var(--forest); font-size: 10px; font-weight: 800; }
.employee-former-section { margin-top: 16px; border-top: 1px solid var(--line); }
.employee-former-section > summary { min-height: 62px; padding: 15px 2px 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) 22px; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.employee-former-section > summary::-webkit-details-marker { display: none; }
.employee-former-section > summary > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #5d6e62; background: #edf0eb; }
.employee-former-section > summary > span svg { width: 19px; }
.employee-former-section > summary > div { display: grid; gap: 2px; }
.employee-former-section > summary strong { font-size: 12px; }
.employee-former-section > summary small { color: var(--muted); font-size: 9px; }
.employee-former-section > summary > svg { width: 18px; color: var(--muted); transition: transform .18s ease; }
.employee-former-section[open] > summary > svg { transform: rotate(90deg); }
.employee-former-content { padding-top: 13px; display: grid; gap: 12px; }
.employee-history-search { min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 9px; background: var(--white); }
.employee-history-search span, .employee-history-search svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); }
.employee-history-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 12px; }
.staff-former-notice { padding: 13px; border: 1px solid #deddd7; border-radius: 13px; display: flex; align-items: flex-start; gap: 10px; color: #5d635e; background: #f7f6f2; }
.staff-former-notice > svg { width: 19px; flex: 0 0 auto; }
.staff-former-notice > div { display: grid; gap: 3px; }
.staff-former-notice strong { font-size: 11px; }
.staff-former-notice span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.staff-profile-identity { padding: 14px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 12px; background: var(--surface-soft); }
.staff-profile-identity > div:last-child { min-width: 0; display: grid; gap: 3px; }
.staff-profile-identity strong { font-size: 14px; }
.staff-profile-identity span { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.staff-profile-privacy { padding: 13px; border-radius: 13px; display: flex; align-items: flex-start; gap: 9px; color: #52685c; background: #eef5ef; font-size: 10px; line-height: 1.5; }
.staff-profile-privacy svg { width: 18px; flex: 0 0 auto; }
.payroll-export-controls { display: flex; align-items: end; gap: 12px; }
.payroll-export-controls .field { min-width: 210px; }
.payroll-export-columns { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.payroll-export-columns span { padding: 9px 11px; border-radius: 10px; display: flex; align-items: center; gap: 7px; color: #52685c; background: #eef5ef; font-size: 10px; font-weight: 700; }
.payroll-export-columns svg { width: 15px; color: var(--forest); }
.payroll-export-warning, .staff-member-intro, .staff-member-help { margin-top: 14px; padding: 13px; border: 1px solid #dfd8c6; border-radius: 13px; display: flex; align-items: flex-start; gap: 10px; color: #685e45; background: #faf6e9; }
.payroll-export-warning svg, .staff-member-intro svg { width: 18px; flex: 0 0 auto; }
.payroll-export-warning div, .staff-member-intro div { display: grid; gap: 4px; }
.payroll-export-warning span, .staff-member-intro span, .staff-member-help span { font-size: 10px; line-height: 1.45; }
.staff-member-help { display: grid; gap: 4px; }
.staff-payroll-panel { margin-top: 16px; }
.staff-payroll-status { min-height: 36px; padding: 7px 11px; border-radius: 11px; display: inline-flex; align-items: center; gap: 7px; color: #7b5b2d; background: #f8eed9; font-size: 12px; font-weight: 850; }
.staff-payroll-status.confirmed { color: #286148; background: #e7f3eb; }
.staff-payroll-status svg { width: 16px; }
.staff-payroll-totals { margin: 14px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.staff-payroll-totals article { padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 3px; background: var(--surface-soft); }
.staff-payroll-totals span,.staff-payroll-totals small { color: var(--muted); font-size: 10px; }
.staff-payroll-totals strong { color: var(--forest); font-size: 18px; }
.staff-payroll-list { display: grid; gap: 7px; }
.staff-payroll-row { min-height: 57px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; }
.staff-payroll-row > div { min-width: 0; display: grid; gap: 2px; }
.staff-payroll-row small,.staff-payroll-row > span { color: var(--muted); font-size: 10px; }
.staff-payroll-row b { min-width: 105px; text-align: right; }
.staff-payroll-row.missing_rate { border-color: #dfb3ad; background: #fff8f7; }
.staff-payroll-row.not_active,.staff-payroll-row.not_configured { opacity: .65; }
.staff-payroll-issues { margin-top: 12px; padding: 11px 13px; border: 1px solid #e0bcb5; border-radius: 12px; display: flex; gap: 9px; color: #8a433d; background: #fff5f3; }
.staff-payroll-issues svg { width: 17px; flex: 0 0 auto; }
.staff-payroll-issues ul { margin: 0; padding-left: 16px; font-size: 10px; line-height: 1.5; }
.staff-payroll-confirmation { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.staff-payroll-confirmation > div { display: grid; gap: 4px; }
.staff-payroll-confirmation strong { font-size: 11px; }
.staff-payroll-confirmation span { max-width: 780px; color: var(--muted); font-size: 9px; line-height: 1.45; }

.stable-feeding-priority, .stable-feeding-private { display: grid; gap: 12px; }
.stable-feeding-priority + .stable-feeding-private { margin-top: 22px; }
.stable-feeding-priority > header, .stable-feeding-private > header { padding: 13px 16px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; background: #eaf3ec; }
.stable-feeding-private > header { background: #f1f1ed; }
.stable-feeding-priority > header span, .stable-feeding-private > header span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.stable-feeding-priority > header h2, .stable-feeding-private > header h2 { margin: 2px 0 0; font-size: 16px; }
.stable-feeding-priority > header b, .stable-feeding-private > header b { min-width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--forest); }

@media (max-width: 760px) {
  .employee-grid, .payroll-export-columns { grid-template-columns: 1fr; }
  .employee-card { grid-template-columns: 42px minmax(0, 1fr); }
  .employee-card .employee-open { grid-column: 2; }
  .payroll-export-controls { align-items: stretch; flex-direction: column; }
  .payroll-export-controls .field, .payroll-export-controls .button { width: 100%; }
  .staff-payroll-totals { grid-template-columns: 1fr; }
  .staff-payroll-row { grid-template-columns: minmax(0,1fr) auto; }
  .staff-payroll-row > span { grid-column: 1; }
  .staff-payroll-row b { grid-column: 2; grid-row: 1 / 3; }
  .staff-payroll-confirmation { align-items: stretch; flex-direction: column; }
  .staff-payroll-confirmation .button { width: 100%; justify-content: center; }
}
.horse-collection-switch { margin-bottom: 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.horse-collection-switch a { min-height: 43px; padding: 0 13px; border: 1px solid #d4dfd8; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; color: #64766d; background: #fff; font-size: 11px; font-weight: 800; }
.horse-collection-switch a.active { color: var(--forest); border-color: #abc4b6; background: #edf5f0; box-shadow: 0 4px 14px rgba(28,65,50,.06); }
.horse-collection-switch svg { width: 17px; height: 17px; }
.horse-collection-switch b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; color: var(--forest); background: rgba(38,76,58,.1); font-size: 9px; }

@media (max-width: 650px) {
  .horse-collection-switch { display: grid; grid-template-columns: 1fr 1fr; }
  .horse-collection-switch a { min-height: 49px; padding: 0 10px; justify-content: center; font-size: 10px; }
}

.ori-proposal-editor { width: max-content; max-width: 100%; margin: 10px 0; border: 1px solid #d8dfda; border-radius: 999px; background: #f8faf8; overflow: hidden; }
.ori-proposal-editor[open] { width: 100%; border-radius: 16px; }
.ori-proposal-editor > summary { list-style: none; min-height: 36px; display: flex; align-items: center; gap: 7px; padding: 7px 11px; cursor: pointer; color: #214b3d; }
.ori-proposal-editor > summary::-webkit-details-marker { display: none; }
.ori-proposal-editor > summary > svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ori-proposal-editor > summary span { display: grid; gap: 2px; }
.ori-proposal-editor > summary strong { font-size: .78rem; }
.ori-proposal-editor > summary small { display: none; }
.ori-proposal-editor[open] > summary { border-bottom: 1px solid #d8dfda; background: #eef4f0; }
.ori-proposal-editor form { display: grid; gap: 14px; padding: 16px; }
.ori-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ori-edit-grid label, .ori-edit-section > label { display: grid; gap: 6px; color: #46524d; font-size: .82rem; font-weight: 700; }
.ori-edit-grid label.full { grid-column: 1 / -1; }
.ori-edit-grid input, .ori-edit-grid select, .ori-edit-grid textarea, .ori-edit-section input, .ori-edit-section textarea { width: 100%; min-height: 44px; border: 1px solid #cbd5d0; border-radius: 10px; padding: 10px 11px; background: #fff; color: #1f2925; font: inherit; font-size: 16px; }
.ori-edit-grid textarea, .ori-edit-section textarea { min-height: 76px; resize: vertical; }
.ori-edit-section { display: grid; gap: 10px; padding-top: 13px; border-top: 1px solid #e0e6e2; }
.ori-edit-section > strong { color: #24483c; }
.ori-edit-all-day { align-self: end; min-height: 44px; }
.ori-edit-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ori-edit-actions small { color: #68756f; }

@media (max-width: 650px) {
  .ori-edit-grid { grid-template-columns: 1fr; }
  .ori-edit-grid label.full { grid-column: auto; }
  .ori-edit-actions .button { width: 100%; }
}

/* Horse passport: review-only photo recognition in the new-horse form. */
.horse-passport-panel { display: grid; gap: 13px; padding: 18px; border: 1px solid #cbded5; border-radius: 18px; background: linear-gradient(145deg, #f3f8f5, #fff); box-shadow: 0 10px 24px rgba(24, 67, 53, .07); }
.horse-passport-intro { display: flex; align-items: flex-start; gap: 12px; }
.horse-passport-intro > div { display: grid; gap: 4px; }
.horse-passport-intro strong { color: #153f32; font-size: 1rem; }
.horse-passport-intro p { margin: 0; color: #5c6d66; font-size: .84rem; line-height: 1.5; }
.horse-passport-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; color: #fff; background: #286a56; font-size: 1.25rem; }
.horse-passport-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.horse-passport-actions .button { min-height: 43px; }
.horse-passport-privacy { color: #738078; font-size: .74rem; }
.horse-passport-status { margin: 0; color: #455850; font-size: .8rem; line-height: 1.45; }
.horse-passport-loading { display: flex; align-items: center; gap: 10px; padding: 13px; border-radius: 12px; color: #315448; background: #eaf3ee; font-size: .82rem; }
.horse-passport-loading > span { width: 18px; height: 18px; border: 2px solid #b9d4c8; border-top-color: #286a56; border-radius: 50%; animation: passport-spin .8s linear infinite; }
@keyframes passport-spin { to { transform: rotate(360deg); } }
.horse-passport-message { padding: 13px 14px; border-radius: 12px; border: 1px solid #d9dfdb; background: #f7f9f8; }
.horse-passport-message.unavailable { border-color: #ead7c0; background: #fff8ef; }
.horse-passport-message strong { color: #344c43; }
.horse-passport-message p { margin: 4px 0 0; color: #6c7772; font-size: .8rem; line-height: 1.45; }
.horse-passport-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 3px 0 9px; }
.horse-passport-result-head > div { display: grid; gap: 2px; }
.horse-passport-result-head strong { color: #1d493a; }
.horse-passport-result-head span { color: #68776f; font-size: .74rem; }
.horse-passport-results { display: grid; gap: 7px; }
.horse-passport-field-result { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid #dfe8e3; border-radius: 12px; background: #fff; cursor: pointer; }
.horse-passport-field-result input { width: 18px; height: 18px; accent-color: #286a56; }
.horse-passport-field-copy { display: grid; gap: 1px; min-width: 0; }
.horse-passport-field-copy small { color: #708078; font-size: .7rem; }
.horse-passport-field-copy strong { color: #263d34; overflow-wrap: anywhere; }
.horse-passport-field-copy span { color: #7a857f; font-size: .69rem; overflow-wrap: anywhere; }
.horse-passport-field-result > b { color: #2d6955; font-size: .74rem; white-space: nowrap; }
.horse-passport-apply { margin-top: 10px; }

@media (max-width: 650px) {
  .horse-passport-panel { padding: 15px; border-radius: 15px; }
  .horse-passport-actions { display: grid; grid-template-columns: 1fr; }
  .horse-passport-actions .button, .horse-passport-apply { width: 100%; min-height: 48px; }
  .horse-passport-result-head { display: grid; }
  .horse-passport-field-result { grid-template-columns: 22px minmax(0, 1fr); }
  .horse-passport-field-result > b { grid-column: 2; }
}

/* Equipment photos and named sets. */
.equipment-set { display: grid; gap: 13px; margin: 0 0 18px; padding: 16px; border: 1px solid #dbe5df; border-radius: 18px; background: linear-gradient(145deg, #f7faf8, #fff); }
.equipment-set > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.equipment-set > header > div { display: grid; gap: 2px; }
.equipment-set > header span { color: #718078; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.equipment-set > header h3 { margin: 0; color: #1b4939; font-size: 1.05rem; }
.equipment-set > header b { color: #527064; font-size: .72rem; }
.equipment-set.standalone { border-style: dashed; background: #fbfcfb; }
.equipment-card-photo { aspect-ratio: 16 / 9; margin: -1px -1px 11px; overflow: hidden; border-radius: 15px 15px 10px 10px; background: #edf2ef; }
.equipment-card-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.equipment-photo-editor { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 16px; align-items: center; padding: 15px; border: 1px solid #d3e0d9; border-radius: 17px; background: #f5f9f7; }
.equipment-photo-editor > div:last-child { display: grid; justify-items: start; gap: 7px; }
.equipment-photo-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.equipment-photo-editor strong { color: #1f4a3b; }
.equipment-photo-editor span { color: #64736c; font-size: .79rem; line-height: 1.45; }
.equipment-photo-preview { min-height: 108px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #b9ccc2; border-radius: 14px; color: #6e8a7c; background: #fff; }
.equipment-photo-preview svg { width: 34px; height: 34px; }
.equipment-photo-preview.has-photo { border-style: solid; }
.equipment-photo-preview img { width: 100%; height: 108px; display: block; object-fit: cover; }
.ori-form-shortcut { margin-top: 13px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border: 1px solid #bcd2c4; border-radius: 15px; background: #fff; }
.ori-form-shortcut > svg { width: 22px; height: 22px; padding: 10px; border-radius: 12px; color: #fff; background: var(--forest); }
.ori-form-shortcut > div { display: grid; gap: 5px; }
.ori-form-shortcut small { color: #658074; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.ori-form-shortcut strong { color: var(--forest); font-size: .96rem; }
.ori-form-shortcut p { font-size: .78rem; }
.ori-form-shortcut label { display: grid; gap: 5px; margin-top: 5px; color: #315c4c; font-size: .76rem; font-weight: 800; }
.ori-form-shortcut select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #c8d8ce; border-radius: 10px; background: #f8fbf9; }
.ori-form-shortcut div > span { display: inline-flex; align-items: center; gap: 6px; color: #315c4c; }
.ori-form-shortcut div > span svg { width: 16px; height: 16px; }
.equipment-vision-result { width: 100%; display: grid; gap: 8px; }
.equipment-vision-result p, .equipment-vision-result small { margin: 0; color: #66736d; line-height: 1.45; }
.equipment-vision-result ul { display: grid; gap: 5px; margin: 2px 0; padding: 0; list-style: none; }
.equipment-vision-result li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.75); }
.equipment-vision-result li span { color: #718078; font-size: .74rem; }
.equipment-vision-result li strong { color: #24483b; font-size: .78rem; text-align: right; overflow-wrap: anywhere; }
.equipment-vision-result li a { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; color: #27664c; font-size: .78rem; font-weight: 800; text-align: right; }
.equipment-vision-result li a svg { width: 14px; height: 14px; }
.equipment-product-matches { display: grid; gap: 8px; margin: 4px 0; padding-top: 9px; border-top: 1px solid rgba(50,92,72,.16); }
.equipment-product-matches > header { display: grid; gap: 3px; }
.equipment-product-matches > header small { color: #65756d; font-size: .75rem; }
.equipment-product-matches article { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid #d8e5dc; border-radius: 12px; background: #fff; }
.equipment-product-matches article > div { display: grid; gap: 3px; }
.equipment-product-matches article > div:first-child span { width: max-content; padding: 2px 7px; border-radius: 999px; color: #2f6c51; background: #e8f5ec; font-size: .65rem; font-weight: 850; text-transform: uppercase; }
.equipment-product-matches article > div:last-child { grid-template-columns: auto auto; }
.equipment-product-matches article .button { min-height: 34px; padding: 7px 10px; font-size: .7rem; }

@media (max-width: 650px) {
  .equipment-set { padding: 12px; border-radius: 15px; }
  .equipment-set > header { align-items: flex-start; }
  .equipment-photo-editor { grid-template-columns: 1fr; padding: 13px; }
  .equipment-photo-preview, .equipment-photo-preview img { min-height: 170px; height: 170px; }
  .equipment-photo-editor .button { width: 100%; min-height: 48px; }
  .equipment-photo-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .ori-form-shortcut { grid-template-columns: 1fr; }
  .equipment-product-matches article { grid-template-columns: 1fr; }
  .equipment-product-matches article > div:last-child { grid-template-columns: 1fr 1fr; }
  .equipment-product-matches article .button { width: 100%; min-height: 44px; }
}
.dashboard-schedule-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.dashboard-schedule-actions .text-button { white-space: nowrap; }
.dashboard-schedule-settings { display: grid; gap: 10px; }
.dashboard-schedule-settings > p { margin: 0 0 4px; color: var(--muted); line-height: 1.55; }
.dashboard-schedule-settings label { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft, #f8f7f4); cursor: pointer; }
.dashboard-schedule-settings input { margin-top: 3px; accent-color: var(--green, #426c59); }
.dashboard-schedule-settings span { display: grid; gap: 3px; }
.dashboard-schedule-settings strong { font-size: .94rem; }
.dashboard-schedule-settings small { color: var(--muted); line-height: 1.4; }


/* Chat: readable conversations and stable, submitted search results. */
.community-page { max-width: 1280px; }
.community-page > .community-summary { display: none; }
.community-layout { height: min(780px, calc(100dvh - 190px)); min-height: 520px; grid-template-columns: minmax(320px, 370px) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--white); box-shadow: 0 12px 36px #153b3208; }
.community-layout > .panel { border: 0; border-radius: 0; box-shadow: none; }
.community-sidebar { border-right: 1px solid var(--line) !important; background: #fff; }
.community-user-search { position: static; padding: 20px 16px 16px; background: #fff; }
.community-user-search > form { gap: 8px; }
.community-user-search > form > label { min-height: 46px; padding: 0 12px; background: #f4f6f3; border-color: transparent; border-radius: 13px; }
.community-user-search input { width: 100%; min-width: 0; font-size: 15px; }
.community-user-search > form > button { min-height: 46px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.community-search-results { max-height: none; overflow: visible; }
.community-search-hint { padding: 14px 2px 0; font-size: 13px; line-height: 1.5; }
.community-results-heading { display: flex; justify-content: space-between; gap: 10px; padding: 20px 0 8px; font-size: 13px; }
.community-results-heading strong { overflow-wrap: anywhere; }
.community-results-heading span { color: var(--muted); }
.community-search-result { padding: 12px 0; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
.community-search-result > div strong { font-size: 14px; }
.community-search-result > div small { margin-top: 4px; font-size: 12px; white-space: normal; }
.community-search-result > button, .community-search-result > span { min-height: 40px; padding: 0 10px; font-size: 12px; }
.community-more-results { width: 100%; min-height: 44px; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; background: #f4f7f3; color: var(--forest); font: inherit; font-size: 14px; cursor: pointer; }
.community-side-section { padding: 18px 12px; }
.community-side-title { margin: 0 6px 12px; }
.community-side-title strong { font-size: 14px; }
.community-side-title span { font-size: 12px; min-width: 25px; height: 25px; }
.community-avatar { width: 42px; height: 42px; border-radius: 50%; font-size: 14px; }
.community-friend-row { border-radius: 14px; grid-template-columns: minmax(0, 1fr) 36px; }
.community-friend-open { min-height: 82px; padding: 12px 8px; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 0 12px; }
.community-friend-open strong { font-size: 15px; font-weight: 750; }
.community-friend-open small { font-size: 13px; line-height: 1.4; }
.community-friend-open time { font-size: 11px; }
.community-friend-open > b { min-width: 22px; height: 22px; font-size: 11px; }
.community-friend-open strong em { font-size: 10px; }
.community-friend-menu summary, .community-chat-panel header details summary { width: 36px; height: 40px; font-size: 18px; }
.community-friend-menu button, .community-chat-panel header details button { min-height: 44px; font-size: 13px; }
.community-friend-menu > div, .community-chat-panel header details > div { min-width: 200px; top: 40px; }
.community-chat-panel { min-width: 0; background: #f5f6f1; }
.community-chat-panel > header { min-height: 84px; padding: 16px 24px; gap: 12px; background: #fff; }
.community-chat-panel > header strong { font-size: 17px; }
.community-chat-panel > header small { margin-top: 4px; font-size: 12px; }
.community-messages { padding: 24px; gap: 14px; overscroll-behavior: contain; }
.community-message > div { max-width: min(80%, 540px); padding: 13px 16px 10px; border-radius: 18px 18px 18px 5px; box-shadow: 0 2px 5px #153b3206; }
.community-message.mine > div { border-radius: 18px 18px 5px 18px; }
.community-message p { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.community-message time { display: block; margin-top: 7px; font-size: 10px; }
.community-chat-form { padding: 16px; gap: 10px; background: #fff; grid-template-columns: 46px minmax(0, 1fr) auto; }
.community-chat-form textarea { min-height: 46px; max-height: 150px; padding: 12px 14px; border-radius: 16px; font-size: 16px; line-height: 1.4; }
.community-chat-form > button[type=submit] { min-height: 46px; padding: 0 18px; border-radius: 14px; font-size: 14px; }
.community-photo-button { width: 46px; min-height: 46px; border-radius: 14px; }
.community-photo-preview span { font-size: 13px; }
.community-chat-panel.empty > div { max-width: 340px; gap: 12px; }
.community-chat-panel.empty strong, .community-chat-empty strong { font-size: 20px; }
.community-chat-panel.empty p, .community-chat-empty span, .community-side-empty span { font-size: 14px; line-height: 1.6; }
.community-side-empty strong { font-size: 16px; }
.community-request-card strong { font-size: 14px; }
.community-request-card small, .community-request-card button, .community-request-card > div:last-child > span { font-size: 12px; }
.community-request-card button { min-height: 40px; }
.community-blocked { font-size: 13px; }
.community-load-older, .community-chat-warning, .community-chat-warning button { font-size: 13px; min-height: 40px; }
.bottom-nav-count { position: absolute; top: 3px; right: calc(50% - 24px); min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border: 2px solid #fbfaf6; border-radius: 20px; color: #fff; background: #ad4d40; font-size: 10px; line-height: 1; }
@media(max-width: 760px) {
  .community-page > .page-head { margin-bottom: 18px; }
  .community-page > .page-head h1 { font-size: 30px; }
  .community-layout { height: auto; min-height: 320px; grid-template-columns: 1fr; border-radius: 18px; }
  .community-sidebar { border-right: 0 !important; }
  .community-user-search { padding: 16px; border-radius: 0; }
  .community-page.chat-open .community-layout { border: 0; border-radius: 0; height: 100%; min-height: 0; }
  .community-page.chat-open .community-chat-panel { min-height: 0; }
  .community-chat-panel > header { min-height: 72px; padding: 10px 12px; gap: 10px; }
  .community-chat-panel > header .community-avatar { width: 38px; height: 38px; }
  .community-chat-panel > header strong { font-size: 16px; }
  .community-chat-panel > header small { font-size: 11px; }
  .community-chat-back, .community-chat-close { width: 40px; min-height: 44px; padding: 0; justify-content: center; font-size: 0; background: transparent; }
  .community-chat-back svg { width: 22px; height: 22px; }
  .community-chat-close span { display: block; font-size: 30px; font-weight: 400; line-height: 1; }
  .community-page.chat-open .community-chat-back, .community-page.chat-open .community-chat-close { position: relative; z-index: 2; flex: 0 0 40px; color: var(--forest); background: #e8efe9; }
  .community-messages { padding: 18px 12px; }
  .community-message > div { max-width: 88%; padding: 12px 14px 9px; }
  .community-message p { font-size: 15px; }
  .community-chat-form { padding: 10px; gap: 8px; grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .community-chat-form > button[type=submit], .community-photo-button { width: 44px; min-height: 46px; padding: 0; }
  .community-chat-form > button[type=submit] span { display: none; }
}
.community-chat-panel { background: #fff; }
.community-messages { background: linear-gradient(180deg, #fff, #fafbf9); }
.community-message.theirs > div { background: #f0f2f5; border: 0; color: #202b26; box-shadow: none; }
.community-message.mine > div { background: linear-gradient(135deg, #287562, #184d40); border: 0; color: #fff; box-shadow: none; }
.community-message.mine p, .community-message.mine time { color: #fff; }
.community-message.mine time { opacity: .7; }
.community-chat-form textarea { background: #f2f4f3; border-color: transparent; }
.community-photo-button { background: transparent; border-color: transparent; color: #287562; }
.community-chat-form > button[type=submit] { background: #236b59; color: white; border: 0; }
.community-friend-row.active { background: #eaf4ef; border-color: transparent; }
.community-page > .page-head .kicker { display: none; }
.community-page > .page-head p { font-size: 14px; }
.community-layout { height: min(820px, calc(100dvh - 175px)); }
.community-results-heading { align-items: center; }
.community-results-heading > button { border: 0; border-radius: 50%; background: #eff2ef; color: var(--forest); width: 32px; height: 32px; font-size: 22px; cursor: pointer; flex: 0 0 auto; }
.community-side-section.duty-roster { background: #fafbf9; }
.community-side-section.duty-roster > p { font-size: 12px; }
.community-side-section.duty-roster strong { font-size: 13px; }
.community-side-section.duty-roster small { font-size: 11px; }
@media(max-width:760px) {
  .community-layout { height: auto; }
  .community-page > .page-head p { display: none; }
  .community-page > .page-head { margin-bottom: 12px; }
  .community-page > .page-head h1 { font-size: 32px; letter-spacing: -.04em; }
}
.ori-saved-links { display: grid; gap: 8px; margin: 18px 0; }
.ori-saved-links .button { width: 100%; min-height: 46px; justify-content: center; white-space: normal; text-align: center; }
/* Compact chat on desktop and phone. */
.community-user-search { padding: 12px; }
.community-user-search > form > label, .community-user-search > form > button { min-height: 40px; font-size: 12px; }
.community-user-search input { font-size: 14px; }
.community-search-hint { font-size: 11px; padding-top: 10px; }
.community-side-section { padding: 12px 8px; }
.community-side-title { margin-bottom: 6px; }
.community-side-title strong { font-size: 12px; }
.community-avatar { width: 34px; height: 34px; font-size: 11px; }
.community-friend-open { min-height: 62px; padding: 8px 6px; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 0 9px; }
.community-friend-open strong { font-size: 13px; }
.community-friend-open small { margin-top: 3px; font-size: 11px; }
.community-friend-open time { font-size: 9px; }
.community-friend-open strong em { font-size: 8px; }
.community-chat-panel > header { min-height: 64px; padding: 10px 16px; gap: 10px; }
.community-chat-panel > header strong { font-size: 14px; }
.community-chat-panel > header small { font-size: 10px; }
.community-messages { padding: 16px; gap: 9px; }
.community-message > div { max-width: min(76%, 460px); padding: 9px 12px 7px; border-radius: 15px 15px 15px 4px; }
.community-message.mine > div { border-radius: 15px 15px 4px 15px; }
.community-message p { font-size: 13px; line-height: 1.45; }
.community-message time { margin-top: 5px; font-size: 9px; }
.community-chat-form { padding: 10px 12px; gap: 7px; grid-template-columns: 42px minmax(0, 1fr) auto; }
.community-chat-form textarea { min-height: 42px; padding: 10px 12px; font-size: 14px; }
.community-chat-form > button[type=submit], .community-photo-button { min-height: 42px; font-size: 12px; }
.community-photo-button { width: 42px; }
.community-search-result { padding: 8px 0; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; }
.community-search-result > div strong { font-size: 13px; }
.community-search-result > div small { font-size: 11px; }
.community-page > .page-head { margin-bottom: 14px; }
.community-page > .page-head h1 { font-size: 30px; }
.community-page > .page-head p { font-size: 12px; }
@media(max-width:760px) {
  .community-user-search { padding: 12px; }
  .community-friend-open { min-height: 64px; }
  .community-chat-panel > header { min-height: 60px; padding: 8px 10px; }
  .community-chat-panel > header .community-avatar { width: 32px; height: 32px; }
  .community-chat-panel > header strong { font-size: 14px; }
  .community-chat-panel > header small { font-size: 10px; }
  .community-messages { padding: 12px 10px; }
  .community-message > div { max-width: 84%; padding: 9px 11px 7px; }
  .community-message p { font-size: 13px; }
  .community-chat-form { padding: 8px; grid-template-columns: 42px minmax(0, 1fr) 42px; }
  .community-chat-form textarea { font-size: 16px; }
  .community-chat-form > button[type=submit], .community-photo-button { width: 42px; min-height: 44px; }
}

.marketplace-card-art { width:100%; padding:0; border:0; cursor:pointer; text-align:left; }
.marketplace-title-link { padding:0; border:0; background:transparent; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.marketplace-title-link:hover { text-decoration:underline; }
.marketplace-favorite { margin-left:auto; order:2; width:38px; height:38px; border:1px solid var(--line); border-radius:50%; display:grid; place-items:center; background:white; color:var(--forest); cursor:pointer; }
.marketplace-favorite svg { width:18px; height:18px; }
.marketplace-favorite.selected svg { fill:#c87968; color:#a74736; }
.market-detail-gallery > img { display:block; width:100%; max-height:460px; object-fit:contain; border-radius:14px; background:#f3f4f0; }
.market-detail-gallery > div { display:flex; gap:8px; overflow:auto; margin:10px 0 18px; }
.market-detail-gallery button { width:64px; height:64px; padding:2px; flex-shrink:0; border:2px solid transparent; border-radius:10px; background:#f3f4f0; cursor:pointer; }
.market-detail-gallery button[aria-pressed=true] { border-color:var(--forest); }
.market-detail-gallery button img { width:100%; height:100%; object-fit:cover; border-radius:7px; }
.market-detail-info > strong { font-size:26px; color:var(--forest); display:block; }
.market-detail-info > span { display:inline-block; margin-top:8px; border-radius:20px; background:var(--sage); padding:5px 10px; font-size:12px; }
.market-detail-info p { white-space:pre-wrap; font-size:14px; line-height:1.6; }
.market-detail-info small { font-size:12px; color:var(--muted); }
.market-detail-actions { display:flex; flex-wrap:wrap; gap:10px; margin:20px 0; }
.market-detail-actions .button { min-height:44px; }
.market-detail-no-photo { padding:45px 20px; background:#f3f4f0; border-radius:14px; text-align:center; font-size:14px; }
@media(max-width:650px) { .market-detail-actions { display:grid; } .market-detail-gallery > img { max-height:320px; } }

.community-message-receipt { display:inline-block; margin-left:7px; font-size:9px; white-space:nowrap; }
.community-message.mine .community-message-receipt.read { font-weight:800; }

/* Expense receipt / invoice import */
.receipt-upload-intro, .receipt-source-card, .receipt-review-notice, .receipt-privacy, .receipt-analyzing { display:flex; align-items:flex-start; gap:14px; padding:16px; border:1px solid var(--line); border-radius:16px; background:#f8faf8; }
.receipt-upload-intro > svg, .receipt-source-card > svg, .receipt-review-notice > svg, .receipt-privacy > svg { width:24px; height:24px; flex:0 0 auto; color:var(--green); }
.receipt-upload-intro div, .receipt-source-card div, .receipt-review-notice span, .receipt-privacy span { display:grid; gap:5px; min-width:0; }
.receipt-upload-intro p, .receipt-analyzing p { margin:0; color:var(--muted); line-height:1.5; }
.receipt-upload-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.receipt-upload-option { min-height:112px; padding:16px; border:1px solid var(--line); border-radius:16px; background:#fff; display:flex; align-items:center; gap:12px; cursor:pointer; transition:.18s ease; }
.receipt-upload-option:hover { border-color:var(--green); box-shadow:0 8px 22px rgba(32,73,52,.08); transform:translateY(-1px); }
.receipt-upload-option > svg { width:26px; height:26px; color:var(--green); flex:0 0 auto; }
.receipt-upload-option span { display:grid; gap:5px; }
.receipt-upload-option small, .receipt-source-card small, .receipt-source-card span, .receipt-match small { color:var(--muted); }
.receipt-analyzing { min-height:280px; align-items:center; justify-content:center; flex-direction:column; text-align:center; }
.receipt-analyzing > small { color:var(--clay); font-size:10px; font-weight:900; letter-spacing:.12em; }
.receipt-analyzing > strong { max-width:560px; font-size:20px; color:var(--forest); }
.receipt-analyzing > p { max-width:560px; }
.receipt-analysis-spinner { width:56px; height:56px; border-radius:50%; display:grid; place-items:center; color:var(--green); background:#e8f2ec; }
.receipt-analysis-spinner .loading-spinner { width:30px; height:30px; }
.receipt-analysis-progress { width:min(520px,100%); height:10px; overflow:hidden; border-radius:999px; background:#e3e9e5; box-shadow:inset 0 1px 2px rgba(31,58,47,.08); }
.receipt-analysis-progress > span { width:5%; height:100%; display:block; border-radius:inherit; background:linear-gradient(90deg,var(--green),#78a991); transition:width .8s ease; position:relative; overflow:hidden; }
.receipt-analysis-progress > span:after { content:""; position:absolute; inset:0; transform:translateX(-100%); background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent); animation:receipt-progress-shimmer 1.7s infinite; }
.receipt-analysis-meta { width:min(520px,100%); display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:11px; font-weight:800; }
.receipt-analysis-note { padding:10px 12px; border-radius:12px; color:#53675c !important; background:#eef4f0; font-size:11px; }
@keyframes receipt-progress-shimmer { to { transform:translateX(100%); } }
.receipt-source-card { align-items:center; background:#f0f6f1; }
.receipt-source-card > div { flex:1; }
.receipt-source-card input { width:100%; min-height:42px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; background:#fff; font-weight:800; }
.receipt-source-card a, .receipt-product-url a { display:inline-flex; align-items:center; gap:5px; color:var(--green); font-weight:800; text-decoration:none; }
.receipt-source-card a svg, .receipt-product-url a svg { width:14px; height:14px; }
.receipt-document-link { width:max-content; max-width:100%; display:inline-flex; align-items:center; gap:5px; margin-top:3px; color:var(--green); font-size:8px; font-weight:800; text-decoration:none; }
.receipt-document-link:hover, .receipt-document-link:focus-visible { text-decoration:underline; outline:none; }
.receipt-document-link svg { width:13px; height:13px; flex:0 0 auto; }
.receipt-source-card > strong { white-space:nowrap; font-size:18px; }
.receipt-document-meta { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.receipt-review-notice { background:#fff9ed; border-color:#ead8ae; }
.receipt-review-notice > svg { color:#9a7122; }
.receipt-reconciliation { display:flex; align-items:flex-start; gap:11px; padding:13px 14px; border:1px solid var(--line); border-radius:14px; }
.receipt-reconciliation > svg { width:20px; height:20px; flex:0 0 auto; }
.receipt-reconciliation > span { display:grid; gap:4px; }
.receipt-reconciliation small { color:inherit; opacity:.78; line-height:1.45; }
.receipt-reconciliation.success { border-color:#bad8c3; color:#286c46; background:#edf8f0; }
.receipt-reconciliation.warning { border-color:#e2bd92; color:#86591b; background:#fff6e8; }
.receipt-reconciliation label { margin-top:5px; display:flex; align-items:flex-start; gap:8px; font-weight:750; line-height:1.4; }
.receipt-reconciliation input { width:18px; height:18px; flex:0 0 auto; accent-color:var(--green); }
.receipt-review-list { display:grid; gap:14px; }
.receipt-review-item { border:1px solid var(--line); border-radius:16px; background:#fff; overflow:hidden; transition:.18s ease; }
.receipt-review-item.excluded { opacity:.52; background:#f5f5f5; }
.receipt-review-item > header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:8px 11px; background:#f6f8f6; border-bottom:1px solid var(--line); }
.receipt-review-item > header div { display:flex; align-items:baseline; gap:7px; min-width:0; }
.receipt-review-item > header div strong { font-size:13px; white-space:nowrap; }
.receipt-review-item > header small { min-width:0; overflow:hidden; color:var(--muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.receipt-review-item > header > b { font-size:13px; white-space:nowrap; }
.receipt-include { display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.receipt-include em { color:#466052; font-size:11px; font-style:normal; font-weight:800; }
.receipt-include input { position:absolute; opacity:0; pointer-events:none; }
.receipt-include span { width:19px; height:19px; border:2px solid #9aaba0; border-radius:6px; display:block; background:#fff; }
.receipt-include input:checked + span { border-color:var(--green); background:var(--green); box-shadow:inset 0 0 0 4px #fff; }
.receipt-review-grid { padding:14px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.receipt-review-grid .field { margin:0; }
.receipt-review-grid .receipt-name, .receipt-review-grid .receipt-product-url { grid-column:1/-1; }
.receipt-product-url a { margin-top:7px; width:max-content; max-width:100%; }
.receipt-match { margin:0 14px 14px; padding:11px 12px; border-radius:12px; display:flex; gap:9px; background:#f6f7f6; color:#56635a; }
.receipt-match > svg { width:19px; height:19px; flex:0 0 auto; }
.receipt-match span { display:grid; gap:3px; }
.receipt-match.high { background:#eaf6ed; color:#287044; }
.receipt-match.medium, .receipt-match.low { background:#fff7e8; color:#87631d; }
.receipt-review-disclaimer { padding:11px 13px; border-radius:11px; color:var(--muted); background:#f5f5f4; font-size:12px; line-height:1.45; }

@media (max-width: 720px) {
  .receipt-analyzing { min-height:250px; padding:18px 14px; }
  .receipt-analyzing > strong { font-size:17px; }
  .receipt-analysis-meta { align-items:center; flex-direction:column; gap:4px; }
  .receipt-upload-options { grid-template-columns:1fr; }
  .receipt-upload-option { min-height:78px; }
  .receipt-document-meta, .receipt-review-grid { grid-template-columns:1fr; }
  .receipt-review-grid .receipt-name, .receipt-review-grid .receipt-product-url { grid-column:auto; }
  .receipt-source-card { align-items:flex-start; }
  .receipt-source-card > strong { font-size:15px; }
  .receipt-source-card input, .receipt-document-meta input, .receipt-document-meta select, .receipt-review-grid input, .receipt-review-grid select { font-size:16px; min-height:44px; }
  .receipt-review-item > header { grid-template-columns:auto minmax(0,1fr) auto; gap:7px; }
  .receipt-review-item > header div { display:grid; gap:0; }
  .receipt-review-item > header > b { grid-column:auto; }
  .receipt-include em { display:none; }
}

.dashboard-schedule-actions [data-dashboard-schedule-settings] { display:inline-flex; align-items:center; gap:6px; }
.dashboard-schedule-actions [data-dashboard-schedule-settings] svg { width:16px; height:16px; flex:0 0 16px; }

.horse-lifecycle-controls { border-top:1px solid var(--line); padding-top:20px; margin-top:16px; display:flex; flex-wrap:wrap; gap:10px; }
.horse-lifecycle-review { display:grid; gap:16px; font-size:14px; line-height:1.6; }
.horse-lifecycle-review p { margin:0; }
.horse-lifecycle-review label { display:grid; gap:7px; font-size:13px; }
.horse-lifecycle-review input { min-height:44px; border:1px solid var(--line); border-radius:10px; padding:10px; font-size:16px; }
.horse-transfers > article { padding:18px 0; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:16px; }
.horse-transfers h2 { font-size:20px; margin:5px 0; }
.horse-transfers p { font-size:13px; }
.horse-transfers small { font-size:11px; color:var(--muted); }
.horse-transfers article > div:last-child { display:grid; gap:8px; }
@media(max-width:650px){.horse-transfers > article{display:block;}.horse-lifecycle-controls{display:grid;}.horse-transfers article > div:last-child{margin-top:12px;}}

/* Keep this guard after component styles. iOS zooms focused text controls below
 * 16 px. Cover landscape/desktop-site mode and touch devices with a mouse too.
 * Manual pinch zoom remains available through the unchanged viewport meta tag.
 */
@media (max-width: 1024px), (any-pointer: coarse) {
  html { -webkit-text-size-adjust: 100%; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
  select,
  textarea,
  [contenteditable]:not([contenteditable="false"]) {
    font-size: 16px !important;
  }
}
/* Safari on iOS can report a desktop-sized viewport; do not rely on width or
 * the primary pointer to identify its editable controls. */
@supports (-webkit-touch-callout: none) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
  select,
  textarea,
  [contenteditable]:not([contenteditable="false"]) {
    font-size: 16px !important;
  }
}

/* Shared account: location weather must not inherit the old half-width twice. */
#workspaceButton[hidden] { display:none !important; }
.weather-locations { width:min(560px,52%); min-width:0; display:grid; gap:12px; align-content:start; }
.weather-place { min-width:0; }
.weather-place-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:0 0 7px; color:#fff; }
.weather-place-heading strong { font-size:13px; font-weight:600; }
.weather-place-heading span { min-width:0; max-width:65%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; opacity:.72; }
.weather-locations .weather-overview { width:100%; box-sizing:border-box; }
.weather-locations .weather-current span { font-size:11px; }
.weather-locations .weather-current small { font-size:10px; }
.weather-locations .weather-hour time, .weather-locations .weather-hour small { font-size:10px; }
.weather-locations .weather-hour strong { font-size:12px; }
.stock-panel .stock-row { grid-template-columns:minmax(190px,1.5fr) repeat(3,minmax(85px,.65fr)) minmax(100px,.8fr); padding:18px 0; gap:16px; }
.stock-panel .stock-row strong,.stock-panel .stock-row b { font-size:14px; line-height:1.4; }
.stock-panel .stock-row small,.stock-panel .stock-row > div > span:not(.feed-category) { font-size:11px; line-height:1.5; }
.stock-panel .stock-row .stock-actions { align-items:flex-start; gap:9px; }
.stock-panel .stock-row .text-button { font-size:12px; }
@media(max-width:1000px) {
  .stock-panel .stock-row { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
  .stock-panel .stock-row > div:first-child,.stock-panel .stock-row .stock-actions { grid-column:1/-1; }
  .stock-panel .stock-row .stock-actions { flex-direction:row; flex-wrap:wrap; }
}
@media(max-width:760px) {
  .weather-locations { width:100%; }
  .weather-place-heading span { max-width:60%; }
  .stock-panel .stock-row { padding:16px; border:1px solid var(--line); border-radius:14px; margin:12px 0; }
  .stock-panel .stock-row:first-child { border-top:1px solid var(--line); }
  .stock-panel .stock-row strong,.stock-panel .stock-row b { white-space:normal; overflow:visible; }
  .stock-panel .stock-row > div { grid-column:auto; }
  .stock-panel .stock-row > div:first-child,.stock-panel .stock-row .stock-actions { grid-column:1/-1; }
}

.feed-warehouse-form { display:grid; gap:18px; }
.feed-warehouse-intro { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
.feed-warehouse-form label { display:grid; min-width:0; gap:7px; margin:0; }
.feed-warehouse-form label > span { color:var(--ink); font-size:12px; font-weight:600; }
.feed-warehouse-form input,.feed-warehouse-form select { width:100%; box-sizing:border-box; min-height:44px; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); font-family:inherit; font-size:14px; }
.feed-warehouse-new-row,.feed-warehouse-name-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; }
.feed-warehouse-new-row .button,.feed-warehouse-name-row .button { min-height:44px; }
.feed-warehouse-section { display:grid; gap:12px; padding-top:16px; border-top:1px solid var(--line); }
.feed-warehouse-section h3 { display:flex; align-items:center; gap:8px; margin:0; font-size:14px; }
.feed-warehouse-section h3 > span { color:var(--muted); font-size:12px; font-weight:400; }
.feed-warehouse-assignments { display:grid; gap:15px; }
.feed-warehouse-assignment { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.feed-warehouse-assignment:last-child { padding-bottom:0; border-bottom:0; }
.feed-warehouse-assignments label > span { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.feed-warehouse-assignments strong { min-width:0; font-size:13px; overflow-wrap:anywhere; }
.feed-warehouse-assignments small { flex-shrink:0; color:var(--muted); font-size:11px; font-weight:400; }
.feed-warehouse-empty { margin:0; padding:12px; border-radius:10px; background:var(--paper); color:var(--muted); font-size:12px; line-height:1.5; }
.feed-warehouse-feedback { margin:0; padding:10px 12px; border-radius:10px; background:#edf5ef; color:var(--forest); font-size:12px; line-height:1.5; }
.feed-warehouse-feedback:empty { display:none; }
.stock-panel .horse-tab-head { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:10px; }
@media(max-width:760px) {
 .stock-panel .horse-tab-head { grid-template-columns:1fr 1fr; }
 .stock-panel .horse-tab-head > div { grid-column:1/-1; }
 .stock-panel .horse-tab-head > button { width:100%; padding-left:8px; padding-right:8px; }
 .feed-warehouse-assignments label > span { display:grid; gap:3px; }
 .feed-warehouse-assignment { grid-template-columns:1fr; align-items:stretch; }
 .feed-warehouse-assignment > button { width:max-content; max-width:100%; }
}

.routine-management-form { display:grid; gap:12px; }
.routine-management-form > p { margin:0 0 4px; font-size:13px; line-height:1.6; color:var(--muted); }
.routine-management-option { display:flex; width:100%; align-items:flex-start; gap:12px; padding:16px; border:1px solid var(--line); border-radius:14px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; font-family:inherit; }
.routine-management-option > span { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; border-radius:9px; background:var(--paper); }
.routine-management-option svg { width:18px; height:18px; }
.routine-management-option > div { display:grid; gap:6px; min-width:0; }
.routine-management-option strong { font-size:14px; font-weight:600; }
.routine-management-option small { font-size:12px; line-height:1.5; color:var(--muted); }
.routine-management-option.recommended { background:#f0f6f1; border-color:#b5caba; }
.routine-management-option:hover { border-color:var(--forest); }
.routine-management-option:disabled { opacity:.6; cursor:wait; }

.stock-panel .horse-tab-head p:not(.kicker) { font-size:12px; line-height:1.6; }
@media(max-width:760px) { .head-actions [data-onboarding-show] { display:inline-flex !important; min-height:40px; } }

/* Souhrnné soukromé výdaje a zásoby napříč více koňmi. */
.owner-overview-page { display:grid; gap:18px; }
.owner-overview-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr); gap:16px; }
.owner-overview-summary,.owner-overview-categories,.owner-stock-card { padding:22px; }
.owner-overview-summary > small,.owner-overview-categories > small { color:var(--muted); font-size:11px; }
.owner-overview-summary > h2 { margin:7px 0 3px; color:var(--forest); font-size:30px; letter-spacing:-.04em; }
.owner-overview-summary > p { margin:0 0 18px; color:var(--muted); font-size:12px; }
.owner-horse-totals { display:grid; gap:8px; }
.owner-horse-total { min-width:0; display:grid; grid-template-columns:8px minmax(0,1fr) auto 34px; align-items:center; gap:10px; padding:11px 12px; border-radius:12px; background:var(--paper); }
.owner-horse-total > span { width:8px; height:34px; border-radius:8px; background:var(--horse-summary-color); }
.owner-horse-total > div { display:grid; min-width:0; gap:2px; }
.owner-horse-total > div > i { display:block; width:100%; height:4px; margin-top:4px; overflow:hidden; border-radius:4px; background:#dde7e1; }
.owner-horse-total > div > i::after { content:""; display:block; width:var(--owner-horse-share); height:100%; border-radius:inherit; background:var(--horse-summary-color); }
.owner-horse-total strong { overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.owner-horse-total small { color:var(--muted); font-size:10px; }
.owner-horse-total > b { color:var(--forest); font-size:13px; white-space:nowrap; }
.owner-horse-total > button { display:grid; width:34px; height:34px; padding:0; place-items:center; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--forest); cursor:pointer; }
.owner-horse-total > button svg { width:15px; }
.owner-overview-categories .expense-categories { margin-top:12px; }
.owner-overview-list { min-width:0; }
.owner-expense-row { grid-template-columns:80px minmax(0,1fr) auto auto 14px; }
.owner-expense-row > div small { font-size:10px; }
.owner-expense-payment { justify-self:end; padding:5px 8px; border-radius:999px; font-size:9px; font-weight:800; white-space:nowrap; }
.owner-expense-payment.paid { color:#2c6850; background:#e6f2eb; }
.owner-expense-payment.pending { color:#8a5b17; background:#fff0d6; }
.owner-overview-loading { display:flex; align-items:center; justify-content:center; gap:12px; min-height:160px; }
.owner-finance-filters { display:grid; grid-template-columns:repeat(4,minmax(140px,1fr)) auto; gap:12px; align-items:end; padding:16px; }
.owner-finance-filters label { display:grid; gap:6px; }
.owner-finance-filters label span { color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.owner-finance-filters select { width:100%; min-height:42px; border:1px solid var(--line); border-radius:11px; padding:8px 34px 8px 11px; background:#fff; color:var(--ink); font:inherit; }
.owner-finance-filters .text-button { min-height:42px; white-space:nowrap; }
.owner-finance-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.owner-finance-kpis article { display:grid; gap:4px; padding:17px 18px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.owner-finance-kpis span,.owner-finance-kpis small { color:var(--muted); font-size:10px; }
.owner-finance-kpis strong { color:var(--forest); font-size:20px; line-height:1.2; }
.owner-finance-kpis .pending { border-color:#edd8b3; background:#fffaf0; }
.owner-finance-trend { display:grid; grid-template-columns:auto minmax(0,1fr); gap:24px; align-items:center; min-height:190px; padding:20px 22px; }
.owner-finance-trend > div:first-child { display:grid; gap:5px; }
.owner-finance-trend > div:first-child small { color:var(--muted); font-size:10px; }
.owner-finance-trend > div:first-child strong { color:var(--forest); }
.owner-finance-chart { display:grid; grid-template-columns:repeat(6,minmax(42px,1fr)); gap:10px; align-items:end; height:145px; }
.owner-finance-chart > div { display:grid; grid-template-rows:minmax(65px,1fr) auto auto; gap:4px; height:100%; min-width:0; align-items:end; text-align:center; }
.owner-finance-chart > div > span { display:block; width:min(36px,80%); height:var(--owner-trend-height); min-height:3px; max-height:100%; justify-self:center; border-radius:8px 8px 3px 3px; background:linear-gradient(180deg,#6f9b84,#285d49); }
.owner-finance-chart small { color:var(--muted); font-size:9px; text-transform:capitalize; }
.owner-finance-chart b { overflow:hidden; color:var(--ink); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.owner-stock-list { display:grid; gap:14px; }
.owner-stock-card { min-width:0; }
.owner-stock-card.low-stock { border-color:#e6b4aa; }
.owner-stock-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding-bottom:15px; border-bottom:1px solid var(--line); }
.owner-stock-card > header h3 { margin:5px 0 4px; font-size:17px; }
.owner-stock-card > header small { color:var(--muted); font-size:11px; }
.owner-stock-card > header > b { display:flex; align-items:center; gap:6px; color:#934c42; font-size:11px; }
.owner-stock-card > header > b svg { width:15px; }
.owner-stock-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:15px 0; }
.owner-stock-kpis > span { display:grid; gap:4px; padding:12px; border-radius:12px; background:var(--paper); }
.owner-stock-kpis small { color:var(--muted); font-size:10px; }
.owner-stock-kpis strong { color:var(--forest); font-size:14px; }
.owner-stock-private { display:flex; align-items:center; gap:10px; margin:15px 0; padding:13px; border-radius:12px; background:#f2f5f2; color:var(--forest); }
.owner-stock-private > svg { width:22px; }
.owner-stock-private > span { display:grid; gap:3px; }
.owner-stock-private strong { font-size:13px; }
.owner-stock-private small { color:var(--muted); font-size:10px; }
.owner-stock-horses { display:grid; gap:7px; }
.owner-stock-horses > small { color:var(--muted); font-size:11px; }
.owner-stock-dose { display:grid; grid-template-columns:minmax(100px,1fr) auto auto; align-items:center; gap:12px; padding:9px 11px; border:1px solid var(--line); border-radius:10px; }
.owner-stock-dose span { min-width:0; overflow:hidden; font-size:12px; font-weight:600; text-overflow:ellipsis; }
.owner-stock-dose strong { font-size:12px; }
.owner-stock-card > footer { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:9px; margin-top:14px; }
.owner-shared-stock { display:grid; gap:16px; padding:20px; border:1px solid #b9cec0; border-radius:22px; background:linear-gradient(145deg,#f0f7f2 0%,#fbf8f1 100%); box-shadow:0 14px 34px rgba(38,78,61,.06); }
.owner-shared-stock-empty { display:flex; justify-content:flex-end; margin-top:10px; }
.owner-shared-stock-empty .shared-supply-start { color:var(--forest); background:#f3f8f5; border-color:#c9dacf; box-shadow:0 6px 16px rgba(38,78,61,.08); }
.owner-shared-stock-empty .shared-supply-start:hover { background:#e7f1eb; }
.owner-shared-stock > .panel-head { align-items:center; margin:0; }
.owner-shared-stock > .panel-head h2 { margin:4px 0; }
.owner-shared-stock > .panel-head p { max-width:720px; margin:0; color:var(--muted); font-size:12px; line-height:1.55; }
.shared-stock-list { grid-template-columns:repeat(auto-fit,minmax(330px,1fr)); }
.shared-stock-card { display:flex; flex-direction:column; }
.shared-stock-card.pending { border-style:dashed; border-color:#d8bd88; background:#fffaf0; }
.shared-stock-card.pending > header > svg { width:28px; color:var(--forest); }
.shared-stock-card.pending > p { flex:1; margin:15px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }
.shared-stock-card .owner-stock-kpis > span > small:last-child:empty { display:none; }
.shared-stock-members { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:8px; margin:4px 0 12px; }
.shared-stock-member { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 8px; padding:10px 11px; border:1px solid #dfe8e2; border-radius:12px; background:#fff; }
.shared-stock-member span { overflow:hidden; font-size:11px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.shared-stock-member strong { color:var(--forest); font-size:11px; white-space:nowrap; }
.shared-stock-member small { grid-column:1 / -1; color:var(--muted); font-size:9px; }
.shared-stock-horses { display:flex; flex-wrap:wrap; gap:6px; }
.shared-stock-horses > span { padding:6px 9px; border-radius:999px; background:#edf3ef; color:#345a49; font-size:10px; }
.shared-stock-split-note,.shared-stock-consent { display:flex; align-items:flex-start; gap:9px; margin-top:12px; padding:11px 12px; border-radius:12px; background:#f2f5f2; color:#385c4b; font-size:11px; line-height:1.45; }
.shared-stock-split-note svg,.shared-stock-consent svg { flex:0 0 auto; width:17px; }
.shared-supply-horse-picker { display:grid; gap:8px; min-width:0; margin:0; padding:0; border:0; }
.shared-supply-horse-picker > legend { margin-bottom:8px; color:var(--ink); font-size:12px; font-weight:800; }
.shared-supply-horse-picker > small,.shared-supply-horse-picker > p { margin:2px 0 0; color:var(--muted); font-size:10px; line-height:1.5; }
.shared-supply-horse-row { display:grid; grid-template-columns:auto minmax(100px,1fr) minmax(120px,160px); align-items:center; gap:10px; padding:9px 10px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.shared-supply-horse-row > span { overflow:hidden; font-size:12px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.shared-supply-horse-row > input[type="number"] { min-width:0; min-height:38px; padding:7px 9px; border:1px solid var(--line); border-radius:9px; font:inherit; }
.shared-supply-horse-row > input[type="number"]:disabled { opacity:.45; background:#f3f3f1; }
.shared-stock-cost-preview { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:8px; }
.shared-stock-cost-preview > small { grid-column:1 / -1; color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.shared-stock-cost-preview > span { display:flex; justify-content:space-between; gap:10px; padding:10px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.shared-stock-cost-preview strong,.shared-stock-cost-preview small { font-size:11px; }
.shared-custom-split { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; }
.owner-private-stock-head { margin:4px 0 -2px; }
.field-help[data-package-conversion] { align-self:center; margin:-5px 0 3px; color:var(--muted); font-size:10px; line-height:1.45; }
@media(max-width:760px) {
  .owner-overview-grid { grid-template-columns:1fr; }
  .owner-overview-summary,.owner-overview-categories,.owner-stock-card { padding:16px; }
  .owner-overview-summary > h2 { font-size:24px; }
  .owner-horse-total { grid-template-columns:6px minmax(0,1fr) 34px; }
  .owner-horse-total > b { grid-column:2; grid-row:2; }
  .owner-horse-total > button { grid-column:3; grid-row:1 / span 2; }
  .owner-finance-filters { grid-template-columns:1fr 1fr; }
  .owner-finance-filters .text-button { grid-column:1 / -1; justify-self:start; }
  .owner-finance-kpis { grid-template-columns:1fr; }
  .owner-finance-trend { grid-template-columns:1fr; gap:10px; padding:16px; }
  .owner-finance-chart { gap:5px; overflow-x:auto; }
  .owner-finance-chart > div { min-width:46px; }
  .owner-expense-row { grid-template-columns:68px minmax(0,1fr) 14px; }
  .owner-expense-row .expense-category { grid-column:1; grid-row:1 / span 3; }
  .owner-expense-row > div { grid-column:2; grid-row:1; }
  .owner-expense-row .owner-expense-payment { grid-column:2; grid-row:2; justify-self:start; }
  .owner-expense-row > b { grid-column:2; grid-row:3; justify-self:start; }
  .owner-expense-row > svg { grid-column:3; grid-row:1 / span 3; }
  .owner-stock-kpis { grid-template-columns:1fr; }
  .owner-stock-dose { grid-template-columns:1fr auto; }
  .owner-stock-dose .text-button { grid-column:1 / -1; justify-self:start; }
  .owner-shared-stock { padding:14px; border-radius:18px; }
  .owner-shared-stock > .panel-head { align-items:stretch; }
  .owner-shared-stock > .panel-head > .button { width:100%; justify-content:center; }
  .shared-stock-list { grid-template-columns:1fr; }
  .shared-stock-card > footer .button { flex:1 1 140px; justify-content:center; }
  .shared-supply-horse-row { grid-template-columns:auto minmax(0,1fr); }
  .shared-supply-horse-row > input[type="number"] { grid-column:2; width:100%; }
}

@media(max-width:440px) {
  .owner-finance-filters { grid-template-columns:1fr; }
  .owner-finance-filters .text-button { grid-column:auto; }
}

/* Private platform overview: names are useful, private account content stays absent. */
.platform-admin-page { max-width:1500px; }
.platform-admin-privacy { display:grid; grid-template-columns:auto 1fr 1fr; align-items:start; gap:18px; margin:0 0 22px; padding:18px 20px; border:1px solid #bfd3c4; border-radius:18px; background:#f0f6f1; color:var(--forest); }
.platform-admin-privacy > svg { width:22px; height:22px; margin-top:2px; }
.platform-admin-privacy > div { display:grid; gap:5px; }
.platform-admin-privacy strong { font-size:12px; }
.platform-admin-privacy span { color:#587064; font-size:11px; line-height:1.55; }
.platform-admin-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.platform-admin-metrics article { display:grid; gap:5px; min-height:118px; padding:19px; }
.platform-admin-metrics article > span { color:var(--muted); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.07em; }
.platform-admin-metrics article > strong { color:var(--forest); font-size:34px; line-height:1; letter-spacing:-.05em; }
.platform-admin-metrics article > small { color:var(--muted); font-size:11px; }
.platform-admin-search { display:flex; align-items:center; gap:10px; margin-bottom:16px; padding:12px; }
.platform-admin-search label { display:flex; flex:1; min-width:180px; align-items:center; gap:9px; padding:0 12px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.platform-admin-search label svg { width:18px; height:18px; color:var(--muted); }
.platform-admin-search input { width:100%; min-height:43px; border:0; outline:0; background:transparent; color:var(--ink); font:inherit; font-size:14px; }
.platform-admin-state { display:flex; align-items:center; gap:13px; margin-bottom:14px; padding:18px; }
.platform-admin-state > svg { width:22px; height:22px; color:var(--forest); }
.platform-admin-state > div { display:grid; flex:1; gap:4px; }
.platform-admin-state strong { font-size:13px; }
.platform-admin-state span { color:var(--muted); font-size:11px; }
.platform-admin-state.error { border-color:#e1b9b4; color:#8b332d; }
.platform-admin-user-list { display:grid; gap:10px; }
.platform-admin-user { display:grid; grid-template-columns:minmax(190px,1.15fr) minmax(160px,.9fr) minmax(190px,1.1fr) minmax(145px,.8fr) minmax(155px,.9fr) minmax(105px,.55fr); align-items:center; gap:15px; padding:16px 18px; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 8px 25px rgba(22,55,46,.035); }
.platform-admin-identity { display:flex; min-width:0; align-items:center; gap:11px; }
.platform-admin-identity > span { display:grid; flex:0 0 38px; width:38px; height:38px; place-items:center; border-radius:12px; background:#e8f0ea; color:var(--forest); font-size:12px; font-weight:700; }
.platform-admin-identity > div,.platform-admin-cell { display:grid; min-width:0; gap:5px; }
.platform-admin-identity strong { overflow:hidden; text-overflow:ellipsis; color:var(--ink); font-size:13px; white-space:nowrap; }
.platform-admin-identity small,.platform-admin-cell > small { color:var(--muted); font-size:10px; }
.platform-admin-cell > strong { color:var(--ink); font-size:11px; line-height:1.45; }
.platform-admin-cell > span { color:var(--muted); font-size:10px; }
.platform-admin-pills,.platform-admin-horses { display:flex; flex-wrap:wrap; gap:5px; }
.platform-admin-pills span,.platform-admin-horses span { display:inline-flex; align-items:center; gap:4px; max-width:100%; padding:5px 7px; border-radius:8px; background:var(--paper); color:#40564c; font-size:10px; line-height:1.2; }
.platform-admin-horses span { background:#eef4ef; color:var(--forest); }
.platform-admin-horses svg { flex:0 0 12px; width:12px; height:12px; }
.platform-admin-pills em,.platform-admin-horses em { color:var(--muted); font-size:10px; font-style:normal; }
.platform-admin-empty { display:grid; justify-items:center; gap:8px; padding:38px 20px; text-align:center; }
.platform-admin-empty svg { width:28px; height:28px; color:var(--muted); }
.platform-admin-empty span { color:var(--muted); font-size:12px; }
.platform-admin-pagination { display:flex; align-items:center; justify-content:center; gap:16px; margin-top:18px; color:var(--muted); font-size:11px; }
.platform-admin-pagination button { min-height:38px; padding:0 13px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--forest); cursor:pointer; }
.platform-admin-pagination button:disabled { opacity:.45; cursor:default; }
@media(max-width:1120px) {
  .platform-admin-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .platform-admin-user { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; }
  .platform-admin-identity,.platform-admin-user .platform-admin-cell:nth-child(2),.platform-admin-user .platform-admin-cell:nth-child(3) { grid-column:auto; }
}
@media(max-width:760px) {
  .platform-admin-page .page-head p:not(.kicker) { display:block; }
  .platform-admin-privacy { grid-template-columns:auto 1fr; padding:15px; }
  .platform-admin-privacy > div:last-child { grid-column:2; }
  .platform-admin-metrics { gap:9px; }
  .platform-admin-metrics article { min-height:92px; padding:15px; }
  .platform-admin-metrics article > strong { font-size:28px; }
  .platform-admin-search { display:grid; grid-template-columns:1fr 1fr; }
  .platform-admin-search label { grid-column:1/-1; }
  .platform-admin-search .button { width:100%; }
  .platform-admin-user { grid-template-columns:1fr 1fr; padding:15px; }
  .platform-admin-identity,.platform-admin-user .platform-admin-cell:nth-child(2),.platform-admin-user .platform-admin-cell:nth-child(3) { grid-column:1/-1; }
  .platform-admin-identity strong { white-space:normal; }
  .platform-admin-pagination { justify-content:space-between; gap:8px; }
  .platform-admin-pagination span { text-align:center; }
}
/* Omezená karta koně založená odborníkem před připojením majitele. */
.professional-horse-notice,
.professional-horse-banner { display:flex; align-items:center; gap:14px; border:1px solid #d8c99f; border-radius:16px; background:#fffaf0; color:#493f2c; padding:14px 16px; }
.professional-horse-notice > svg,
.professional-horse-banner > svg { width:20px; height:20px; flex:0 0 20px; color:#8b6f2d; }
.professional-horse-notice > div,
.professional-horse-banner > div:first-of-type { display:grid; flex:1; gap:3px; }
.professional-horse-notice span,
.professional-horse-banner span { color:#75684e; font-size:12px; line-height:1.5; }
.professional-horse-banner { margin:14px 0 18px; }
.professional-horse-banner > div:last-child { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
@media(max-width:720px) {
  .professional-horse-banner { align-items:flex-start; flex-wrap:wrap; }
  .professional-horse-banner > div:last-child { width:100%; }
  .professional-horse-banner .button { flex:1; }
}

/* Přehled odborníka: pacienti, majitelé a ošetření místo denního provozu koně. */
.professional-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(260px,.75fr); gap:18px; }
.professional-dashboard-grid > .professional-recent { grid-column:1/-1; }
.professional-patient-list,.professional-client-list { display:grid; gap:9px; }
.professional-patient-card { min-width:0; padding:12px; border:1px solid var(--line); border-radius:14px; display:grid; grid-template-columns:46px minmax(0,1fr) 17px; align-items:center; gap:11px; color:inherit; background:#fff; text-decoration:none; transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease; }
.professional-patient-card:hover { border-color:#aac1b2; box-shadow:0 8px 22px rgba(17,54,44,.08); transform:translateY(-1px); }
.professional-patient-card > svg { width:17px; height:17px; color:var(--muted); }
.professional-patient-avatar { width:46px; height:46px; border-radius:13px; display:grid; place-items:center; overflow:hidden; color:var(--forest); background:var(--sage); }
.professional-patient-avatar svg { width:21px; height:21px; }
.professional-patient-avatar img { width:100%; height:100%; object-fit:cover; }
.professional-patient-card > span:nth-child(2) { min-width:0; display:grid; gap:3px; }
.professional-patient-card strong { font-size:11px; }
.professional-patient-card small { color:var(--forest); font-size:9px; font-weight:700; }
.professional-patient-card em { overflow:hidden; color:var(--muted); font-size:8px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.professional-client-card { padding:11px 0; border-bottom:1px solid var(--line); display:grid; grid-template-columns:36px minmax(0,1fr); align-items:center; gap:10px; }
.professional-client-card:last-child { border-bottom:0; }
.professional-client-card > span { width:36px; height:36px; border-radius:11px; display:grid; place-items:center; color:#fff; background:var(--forest); font-size:9px; font-weight:800; }
.professional-client-card div { min-width:0; display:grid; gap:3px; }
.professional-client-card strong { font-size:10px; }
.professional-client-card small { overflow:hidden; color:var(--muted); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.horse-card-owner { margin:10px 0 2px; padding:8px 9px; border-radius:10px; display:flex; align-items:center; gap:8px; color:var(--forest); background:#eef4ef; }
.horse-card-owner > svg { width:15px; height:15px; flex:0 0 15px; }
.horse-card-owner span { min-width:0; display:grid; gap:1px; color:var(--muted); font-size:8px; }
.horse-card-owner strong { overflow:hidden; color:var(--forest); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.professional-onboarding .onboarding-actions .button { min-height:44px; }
@media(max-width:860px) {
  .professional-dashboard-grid { grid-template-columns:1fr; }
  .professional-dashboard-grid > .professional-recent { grid-column:auto; }
}
.professional-directory-picker {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line, #dfe6e1);
  border-radius: 18px;
  background: #f8fbf9;
}

.professional-directory-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.professional-directory-search input {
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #ccd8d1;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.professional-directory-results {
  display: grid;
  gap: 8px;
}

.professional-directory-result {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #dce5df;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.professional-directory-result:hover,
.professional-directory-result:focus-visible {
  border-color: var(--primary, #2f7057);
  box-shadow: 0 0 0 3px rgba(47, 112, 87, .1);
}

.professional-directory-result > span:nth-child(2),
.professional-directory-selected > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.professional-directory-result small,
.professional-directory-selected small {
  color: var(--muted, #68756e);
}

.professional-directory-selected {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #b9d8c8;
  border-radius: 14px;
  background: #edf8f2;
}

.professional-directory-selected:not([hidden]) { display: grid; }

.professional-directory-empty {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--muted, #68756e);
}

.professional-directory-empty.error { color: #9d2c2c; background: #fff3f2; }

.professional-manual-contact {
  padding: 12px 14px;
  border: 1px dashed #c8d3cd;
  border-radius: 14px;
}

.professional-manual-contact summary {
  color: var(--primary, #2f7057);
  font-weight: 700;
  cursor: pointer;
}

.professional-manual-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.care-plan-professionals {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(0, 2fr);
  gap: 14px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #dce5df;
  border-radius: 16px;
  background: #f8fbf9;
}

.care-plan-professionals > div:first-child,
.care-plan-professional-chips span {
  display: grid;
  gap: 2px;
}

.care-plan-professionals small,
.care-plan-professional-chips em {
  color: var(--muted, #68756e);
  font-size: 12px;
  font-style: normal;
}

.care-plan-professional-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.care-plan-professional-chips span {
  padding: 7px 10px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #dce5df;
  font-weight: 700;
}

@media (max-width: 640px) {
  .professional-directory-search { grid-template-columns: 1fr; }
  .professional-directory-search .button { width: 100%; }
  .professional-manual-fields,
  .care-plan-professionals { grid-template-columns: 1fr; }
}

.professional-horse-view-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #eef3f0;
}

.professional-horse-view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #64716a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.professional-horse-view-switch button.active { background: #fff; color: var(--forest, #153b32); box-shadow: 0 2px 8px rgba(21, 59, 50, .08); }
.professional-horse-view-switch svg { width: 16px; height: 16px; }

.professional-horse-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e7e3;
  border-radius: 18px;
  background: #fff;
}

.professional-horse-table { width: 100%; border-collapse: collapse; }
.professional-horse-table th { padding: 11px 16px; background: #f6f9f7; color: #65736c; font-size: 12px; text-align: left; }
.professional-horse-table td { padding: 14px 16px; border-top: 1px solid #edf0ee; vertical-align: middle; }
.professional-horse-table tbody tr { cursor: pointer; }
.professional-horse-table tbody tr:hover { background: #f8fbf9; }
.professional-horse-table td:first-child { display: grid; gap: 3px; min-width: 190px; }
.professional-horse-table td small { color: #718078; }
.table-row-arrow { display: inline-flex; align-items: center; gap: 5px; color: var(--forest, #153b32); font-weight: 700; white-space: nowrap; }
.table-row-arrow svg { width: 16px; }

.professional-horse-search-modal,
.professional-horse-directory-results { display: grid; gap: 12px; }
.professional-horse-search-copy { display: flex; gap: 11px; align-items: flex-start; padding: 13px; border-radius: 14px; background: #eef8f3; }
.professional-horse-search-copy > svg { width: 22px; flex: 0 0 auto; color: #2f7057; }
.professional-horse-search-copy > div { display: grid; gap: 3px; }
.professional-horse-search-copy span { color: #627169; font-size: 13px; }
.professional-horse-directory-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid #dce5df; border-radius: 14px; background: #fff; }
.professional-horse-directory-card > div { display: grid; gap: 2px; min-width: 0; }
.professional-horse-directory-card span,
.professional-horse-directory-card small { color: #67756e; }
.directory-request-status { padding: 7px 9px; border-radius: 9px; background: #fff3d8; color: #7a5c12 !important; font-size: 12px; font-weight: 700; }
.professional-access-review { display: grid; gap: 13px; }
.professional-access-requester { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.professional-access-requester > span { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--forest); background: var(--sage); font-size: 11px; font-weight: 850; }
.professional-access-requester > div { min-width: 0; display: grid; gap: 2px; }
.professional-access-requester small { color: #35705a; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.professional-access-requester strong { font-size: 17px; }
.professional-access-requester p { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.professional-access-request-horse { padding: 13px 14px; border: 1px solid #cfe0d5; border-radius: 14px; display: flex; align-items: center; gap: 11px; background: #f3f8f5; }
.professional-access-request-horse > svg { width: 26px; height: 26px; color: var(--forest); }
.professional-access-request-horse > div { display: grid; gap: 2px; }
.professional-access-request-horse small { color: var(--muted); font-size: 10px; }
.professional-access-request-horse strong { font-size: 15px; }
.professional-access-message { padding: 11px 13px; border-left: 3px solid #b8c9bf; border-radius: 0 10px 10px 0; background: #f7f8f6; }
.professional-access-message small { color: var(--muted); font-size: 10px; }
.professional-access-message p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; }
.professional-access-safety, .professional-access-single { padding: 11px 13px; border-radius: 12px; display: flex; align-items: flex-start; gap: 9px; color: #456159; background: #eef6f1; font-size: 11px; line-height: 1.45; }
.professional-access-safety svg, .professional-access-single svg { width: 18px; height: 18px; flex: 0 0 auto; }
.professional-access-scope { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.professional-access-scope legend { margin-bottom: 7px; color: var(--forest); font-size: 12px; font-weight: 800; }
.professional-access-scope > label { min-height: 58px; padding: 10px 12px; border: 1px solid #dbe4de; border-radius: 12px; display: flex; align-items: center; gap: 10px; background: #fff; cursor: pointer; }
.professional-access-scope > label:has(input:checked) { border-color: #6f9582; box-shadow: 0 0 0 2px rgba(51,105,80,.08); background: #f3f8f5; }
.professional-access-scope input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--forest); }
.professional-access-scope label span { display: grid; gap: 2px; }
.professional-access-scope label strong { font-size: 12px; }
.professional-access-scope label small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.professional-access-horse-picker { padding: 12px; border: 1px solid #dbe4de; border-radius: 12px; display: grid; gap: 8px; background: #fafcfb; }
.professional-access-horse-picker[hidden] { display: none; }
.professional-access-horse-picker > strong { font-size: 11px; }
.professional-access-horse-picker label { min-height: 38px; padding: 7px 9px; border-radius: 9px; display: flex; align-items: center; gap: 9px; background: #fff; cursor: pointer; }
.professional-access-horse-picker input { width: 18px; height: 18px; accent-color: var(--forest); }
.professional-access-horse-picker span { font-size: 12px; font-weight: 700; }

@media (max-width: 640px) {
  .professional-horse-view-switch { width: 100%; }
  .professional-horse-view-switch button { flex: 1; justify-content: center; }
  .professional-horse-table th:nth-child(3), .professional-horse-table td:nth-child(3) { display: none; }
  .professional-horse-directory-card { grid-template-columns: auto minmax(0, 1fr); }
  .professional-horse-directory-card > .button,
  .professional-horse-directory-card > .directory-request-status { grid-column: 1 / -1; width: 100%; text-align: center; justify-content: center; }
  .professional-access-requester strong { font-size: 16px; }
  .professional-access-scope > label { min-height: 64px; }
}

/* Trainer recurrence: concrete weekdays with a readable date preview. */
.trainer-weekday-picker { border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; display: grid; gap: 9px; }
.trainer-weekday-picker[hidden] { display: none; }
.trainer-weekday-picker legend { font-weight: 800; padding: 0 6px; }
.trainer-weekday-picker > div { display: grid; grid-template-columns: repeat(7, minmax(48px, 1fr)); gap: 7px; }
.trainer-weekday-picker label { cursor: pointer; }
.trainer-weekday-picker label input { position: absolute; opacity: 0; pointer-events: none; }
.trainer-weekday-picker label span { display: grid; place-items: center; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #f6f8f6; font-weight: 800; }
.trainer-weekday-picker label input:focus-visible + span { outline: 3px solid rgba(47,112,91,.18); outline-offset: 2px; }
.trainer-weekday-picker label input:checked + span { border-color: #2f705b; background: #e3f1ea; color: #205643; box-shadow: inset 0 0 0 1px #2f705b; }
.trainer-weekday-picker > small { color: var(--muted); line-height: 1.4; }
.trainer-recurrence-preview { display: grid; gap: 4px; border: 1px solid #c9dfd5; background: #edf7f2; border-radius: 13px; padding: 12px 14px; }
.trainer-recurrence-preview[hidden] { display: none; }
.trainer-recurrence-preview strong { font-size: 12px; color: #245846; }
.trainer-recurrence-preview span { font-size: 13px; line-height: 1.5; color: #36594d; }

@media (max-width: 650px) {
  .trainer-weekday-picker > div { grid-template-columns: repeat(4, minmax(52px, 1fr)); }
}

.owner-deworming-repeat,.event-deworming-repeat { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #c9dfd5; background: #edf7f2; border-radius: 14px; padding: 13px 15px; }
.owner-deworming-repeat[hidden],.event-deworming-repeat[hidden] { display: none; }
.owner-deworming-repeat > div,.event-deworming-repeat > div { display: flex; align-items: center; gap: 10px; }
.owner-deworming-repeat > div > span,.event-deworming-repeat > div > span { display: grid; gap: 2px; }
.owner-deworming-repeat small,.event-deworming-repeat small { color: var(--muted); }
.owner-deworming-repeat label,.event-deworming-repeat label { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 750; }
.owner-deworming-repeat input,.event-deworming-repeat input { width: 70px; border: 1px solid var(--line); border-radius: 9px; padding: 8px; font: inherit; }

@media (max-width: 650px) {
  .owner-deworming-repeat,.event-deworming-repeat { align-items: stretch; flex-direction: column; }
  .owner-deworming-repeat label,.event-deworming-repeat label { justify-content: space-between; }
}

/* Soukromé finance odborných rolí */
.professional-finance-page { max-width: 1480px; margin-inline: auto; }
.professional-income-sources { margin-bottom: 18px; }
.professional-income-sources > div:last-child { display: grid; gap: 10px; }
.professional-income-source { display: grid; grid-template-columns: 42px minmax(0,1fr) auto auto; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.professional-income-source > span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); }
.professional-income-source > span svg { width: 21px; height: 21px; }
.professional-income-source div { min-width: 0; display: grid; gap: 2px; }
.professional-income-source small, .professional-income-source em { color: var(--muted); font-style: normal; }
.professional-income-source strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.professional-finance-filters { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.professional-finance-row .stable-expense-main span { display: block; }

@media (max-width: 760px) {
  .professional-income-source { grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; }
  .professional-income-source > span { width: 38px; height: 38px; }
  .professional-income-source > b { grid-column: 2 / 4; justify-self: start; }
  .professional-income-source .button { grid-column: 1 / -1; width: 100%; }
  .professional-finance-filters { grid-template-columns: 1fr 1fr; }
  .professional-finance-kpis { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .professional-finance-filters, .professional-finance-kpis { grid-template-columns: 1fr; }
}

/* Odborná zpráva ze zvonečku: nejdřív čitelný náhled, až potom vědomé uložení. */
.specialist-report-review { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.specialist-report-overview { grid-column: 1 / -1; padding: 15px 16px; border: 1px solid #cfe0d7; border-radius: 15px; display: flex; align-items: center; gap: 12px; background: #f0f7f3; }
.specialist-report-overview > span { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; color: var(--forest); background: #fff; box-shadow: 0 5px 15px rgba(26,72,52,.08); }
.specialist-report-overview > span svg { width: 22px; height: 22px; }
.specialist-report-overview > div { min-width: 0; display: grid; gap: 2px; }
.specialist-report-overview small { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.specialist-report-overview strong { color: var(--forest); font-size: 18px; }
.specialist-report-overview p { margin: 0; color: #476157; font-size: 12px; }
.specialist-report-review-grid { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.specialist-report-section, .specialist-report-facts { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.specialist-report-section h3 { margin: 0 0 7px; color: var(--forest); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.specialist-report-section > p { margin: 0; color: #31473f; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.specialist-report-items { display: grid; gap: 7px; }
.specialist-report-items article { padding: 9px 10px; border-radius: 10px; display: grid; gap: 3px; background: #f6f8f6; }
.specialist-report-items strong { font-size: 12px; }
.specialist-report-items small { color: var(--muted); font-size: 10px; }
.specialist-report-items p { margin: 0; font-size: 11px; line-height: 1.45; white-space: pre-wrap; }
.specialist-report-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; background: #f8faf8; }
.specialist-report-facts span { display: grid; gap: 3px; }
.specialist-report-facts small { color: var(--muted); font-size: 10px; }
.specialist-report-facts strong { font-size: 12px; }
.specialist-report-measurements { margin: 0; display: grid; gap: 6px; }
.specialist-report-measurements div { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.specialist-report-measurements dt { color: var(--muted); }
.specialist-report-measurements dd { margin: 0; font-weight: 800; text-align: right; }
.specialist-report-pending { grid-column: 1 / -1; padding: 12px 14px; border: 1px solid #efd6a5; border-radius: 13px; display: flex; align-items: flex-start; gap: 9px; color: #72531d; background: #fff8e9; }
.specialist-report-pending > svg { width: 18px; height: 18px; flex: 0 0 auto; }
.specialist-report-pending span { display: grid; gap: 2px; }
.specialist-report-pending strong { font-size: 11px; }
.specialist-report-pending small { color: #806839; font-size: 10px; line-height: 1.4; }
.specialist-report-linked-event { grid-column: 1 / -1; padding: 12px 14px; border-radius: 13px; background: #eef3fb; }
.specialist-report-linked-event div { display: grid; gap: 2px; }
.specialist-report-linked-event small, .specialist-report-linked-event span { color: #5e6e87; font-size: 10px; }
.specialist-report-linked-event strong { color: #2d466b; font-size: 12px; }
.horse-professional-protocol { margin-top: 12px; border: 1px solid #cfe0d7; border-radius: 13px; overflow: hidden; background: #f8fbf9; }
.horse-professional-protocol > summary { padding: 11px 13px; list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; color: var(--forest); cursor: pointer; }
.horse-professional-protocol > summary::-webkit-details-marker { display: none; }
.horse-professional-protocol > summary > svg { width: 18px; height: 18px; }
.horse-professional-protocol > summary > svg:last-child { transition: transform .2s ease; }
.horse-professional-protocol[open] > summary > svg:last-child { transform: rotate(90deg); }
.horse-professional-protocol > summary span { display: grid; gap: 2px; }
.horse-professional-protocol > summary strong { font-size: 12px; }
.horse-professional-protocol > summary small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.horse-professional-protocol > div { padding: 0 12px 12px; }
.horse-professional-protocol .specialist-report-overview { margin-bottom: 10px; }

@media (max-width: 650px) {
  .specialist-report-review, .specialist-report-review-grid { grid-template-columns: 1fr; }
  .specialist-report-facts { grid-template-columns: 1fr; }
  .specialist-report-review > .field { grid-column: 1 / -1; }
}

/* Jednotný editor ořezu pro všechny fotografie v aplikaci. */
.image-crop-dialog { width:min(920px,calc(100vw - 28px)); max-height:min(900px,calc(var(--app-visual-height,100vh) - 28px)); margin:auto; padding:0; overflow:auto; border:0; border-radius:22px; background:#fff; box-shadow:0 28px 90px rgba(8,25,18,.34); }
.image-crop-dialog::backdrop { background:rgba(8,22,17,.66); backdrop-filter:blur(5px); }
.image-crop-head { position:sticky; top:0; z-index:2; display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:18px 20px 14px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.96); }
.image-crop-head h2 { margin:2px 0 3px; font-size:20px; }
.image-crop-head small { display:block; max-width:70vw; overflow:hidden; color:var(--muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.image-crop-stage { position:relative; padding:14px 18px 8px; display:grid; gap:7px; background:#101915; }
.image-crop-stage canvas { display:block; width:100%; height:auto; max-height:58vh; border-radius:14px; background:#17221e; cursor:grab; touch-action:none; }
.image-crop-stage canvas:active { cursor:grabbing; }
.image-crop-stage > span { color:#c8d4ce; font-size:10px; text-align:center; }
.image-crop-controls { display:grid; grid-template-columns:minmax(160px,.8fr) minmax(190px,1.2fr) auto; align-items:end; gap:14px; padding:15px 20px; }
.image-crop-controls > label { display:grid; gap:6px; }
.image-crop-controls label > span { color:var(--muted); font-size:10px; font-weight:800; }
.image-crop-controls select { width:100%; min-height:42px; border:1px solid var(--line); border-radius:11px; padding:8px 34px 8px 11px; background:#fff; color:var(--ink); font:inherit; }
.image-crop-zoom input { width:100%; accent-color:var(--forest); }
.image-crop-controls > div { display:flex; gap:8px; }
.image-crop-actions { position:sticky; bottom:0; z-index:2; display:flex; justify-content:flex-end; gap:9px; padding:14px 20px 18px; border-top:1px solid var(--line); background:rgba(255,255,255,.97); }

@media(max-width:650px) {
  .image-crop-dialog { width:100vw; max-width:none; max-height:var(--app-visual-height,100vh); height:var(--app-visual-height,100vh); border-radius:0; }
  .image-crop-head { padding:calc(13px + env(safe-area-inset-top)) 15px 12px; }
  .image-crop-stage { padding:10px 8px 7px; }
  .image-crop-stage canvas { max-height:48vh; border-radius:10px; }
  .image-crop-controls { grid-template-columns:1fr; gap:11px; padding:13px 15px; }
  .image-crop-controls > div { display:grid; grid-template-columns:1fr 1fr; }
  .image-crop-actions { display:grid; grid-template-columns:1fr 1fr; padding:12px 15px calc(12px + env(safe-area-inset-bottom)); }
  .image-crop-actions #imageCropOriginal { grid-column:1 / -1; }
  .image-crop-actions .button { width:100%; min-height:44px; justify-content:center; }
}

/* Webové sledování vyjížďky; stejné API později používá nativní aplikace. */
.ride-launch-button { color:#fff!important; border-color:#214f3d!important; background:#214f3d!important; text-decoration:none; }
.ride-page { display:grid; gap:18px; }
.ride-hub-tabs { width:max-content; max-width:100%; padding:4px; border-radius:14px; display:flex; gap:4px; overflow:auto; background:#edf1ee; }
.ride-hub-tabs a { min-height:40px; padding:0 17px; border-radius:11px; display:inline-flex; align-items:center; justify-content:center; gap:7px; color:#607168; text-decoration:none; white-space:nowrap; font-size:10px; font-weight:850; }
.ride-hub-tabs a svg { width:16px; height:16px; }
.ride-hub-tabs a.active { color:#fff; background:var(--forest); box-shadow:0 5px 13px rgba(13,45,35,.2); }
.ride-hub-intro { padding:15px 17px; border:1px solid #ccded3; border-radius:16px; display:flex; align-items:flex-start; gap:12px; color:#214f3d; background:#eff6f1; }
.ride-hub-intro>svg { width:25px; height:25px; flex:0 0 auto; }
.ride-hub-intro>div { display:grid; gap:4px; }
.ride-hub-intro strong { font-size:13px; }
.ride-hub-intro span { color:#5d6c63; font-size:11px; line-height:1.5; }
.ride-motivation { padding:18px; display:grid; gap:15px; overflow:hidden; }
.ride-motivation>header { display:grid; grid-template-columns:46px minmax(0,1fr) auto; align-items:center; gap:13px; }
.ride-motivation>header>span { width:46px; height:46px; border-radius:15px; display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,#214f3d,#d08362); }
.ride-motivation>header>span svg { width:23px; }
.ride-motivation>header>div { min-width:0; display:grid; gap:3px; }
.ride-motivation>header small { color:#c26f50; font-size:8px; font-weight:900; letter-spacing:.09em; }
.ride-motivation>header h2 { margin:0; color:var(--forest); font-size:18px; }
.ride-motivation>header p { margin:0; max-width:850px; color:var(--muted); font-size:10px; line-height:1.5; }
.ride-motivation>header>b { min-width:52px; padding:8px 10px; border-radius:12px; color:var(--forest); background:#edf5f0; font-size:15px; text-align:center; }
.ride-goals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.ride-goals article { min-width:0; padding:12px; border:1px solid var(--line); border-radius:13px; display:grid; gap:8px; background:#fafbf9; }
.ride-goals article.complete { border-color:#b9d7c7; background:#f0f8f3; }
.ride-goals article>div { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.ride-goals strong { color:var(--forest); font-size:11px; }
.ride-goals span,.ride-goals small { color:var(--muted); font-size:9px; line-height:1.4; }
.ride-goals span { text-align:right; }
.ride-goals i { height:7px; border-radius:999px; display:block; overflow:hidden; background:#e4ebe6; }
.ride-goals i em { height:100%; border-radius:inherit; display:block; background:linear-gradient(90deg,#d08362,#315e4a); }
.ride-motivation>footer { padding-top:11px; border-top:1px solid var(--line); display:flex; align-items:flex-start; gap:8px; color:#66746d; font-size:9px; line-height:1.45; }
.ride-motivation>footer svg { width:16px; flex:0 0 auto; color:var(--forest); }
.ride-horse-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.ride-horse-grid.single { grid-template-columns:minmax(0,720px); }
.ride-horse-choice { overflow:hidden; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.ride-horse-choice:hover { transform:translateY(-2px); border-color:#9dbba9; box-shadow:0 15px 35px rgba(25,58,45,.08); }
.ride-horse-choice.active { border-color:#d38a67; box-shadow:0 0 0 3px rgba(211,138,103,.12); }
.ride-horse-choice>a { min-height:132px; padding:19px; display:grid; grid-template-columns:64px minmax(0,1fr) auto; align-items:center; gap:15px; color:inherit; text-decoration:none; }
.ride-horse-avatar { width:64px; height:64px; border-radius:20px; display:grid; place-items:center; overflow:hidden; color:#214f3d; background:#e4eee8; }
.ride-horse-avatar svg { width:30px; }
.ride-horse-avatar img { width:100%; height:100%; object-fit:cover; }
.ride-horse-copy { min-width:0; display:grid; gap:4px; }
.ride-horse-copy small { color:#c46f50; font-size:8px; font-weight:900; letter-spacing:.11em; }
.ride-horse-copy strong { overflow:hidden; font-size:19px; text-overflow:ellipsis; white-space:nowrap; }
.ride-horse-copy em { overflow:hidden; color:var(--muted); font-size:10px; font-style:normal; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.ride-horse-choice .button { min-height:43px; pointer-events:none; }
.ride-hub-empty { grid-column:1/-1; min-height:240px; padding:32px; display:grid; place-content:center; justify-items:center; gap:10px; text-align:center; }
.ride-hub-empty>svg { width:42px; color:var(--forest); }
.ride-hub-empty p { max-width:420px; margin:0 0 5px; color:var(--muted); font-size:11px; line-height:1.5; }
.dashboard-ride-action { white-space:nowrap; }
.ride-loading { min-height:260px; display:grid; place-content:center; justify-items:center; gap:12px; color:var(--muted); }
.ride-loading svg { width:42px; height:42px; color:var(--forest); }
.ride-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr); gap:18px; align-items:start; }
.ride-start-card { padding:24px; overflow:hidden; }
.ride-start-visual { margin:-24px -24px 22px; padding:25px 27px; display:grid; grid-template-columns:52px minmax(0,1fr); gap:16px; align-items:center; color:#fff; background:linear-gradient(135deg,#0d3025,#315e4a 70%,#cf8060); }
.ride-start-visual>svg { width:44px; height:44px; opacity:.9; }
.ride-start-visual small,.ride-history>div>small,.ride-safety-card small { font-size:9px; font-weight:850; letter-spacing:.1em; }
.ride-start-visual h2 { margin:3px 0 6px; font-size:22px; line-height:1.18; }
.ride-start-visual p { margin:0; max-width:620px; color:rgba(255,255,255,.8); font-size:12px; line-height:1.5; }
.ride-start-card form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.ride-start-card form label { display:grid; gap:7px; color:var(--ink); }
.ride-field-label { display:flex; align-items:baseline; gap:6px; color:var(--ink); font-size:12px; font-weight:800; }
.ride-field-label small { color:var(--muted); font-size:11px; font-weight:500; }
.ride-start-card form label>small { color:var(--muted); font-size:10px; font-weight:500; line-height:1.45; }
.ride-start-card form input,.ride-start-card form select,.ride-start-card form textarea { width:100%; min-height:46px; padding:11px 13px; border:1px solid var(--line); border-radius:12px; outline:none; color:var(--ink); background:#fff; font:inherit; font-size:16px; }
.ride-start-card form textarea { resize:vertical; }
.ride-start-card form input:focus,.ride-start-card form select:focus,.ride-start-card form textarea:focus { border-color:#6c9782; box-shadow:0 0 0 3px rgba(62,111,87,.1); }
.ride-start-card form .full { grid-column:1/-1; }
.ride-start { grid-column:1/-1; min-height:52px; justify-content:center; font-size:15px; }
.ride-web-limit { margin-top:16px; padding:13px 15px; border-radius:13px; display:flex; align-items:flex-start; gap:10px; color:#5b665f; background:#f3f5f1; font-size:11px; line-height:1.45; }
.ride-web-limit svg { width:19px; flex:0 0 auto; color:var(--forest); }
.ride-web-limit span { display:grid; gap:2px; }
.feed-warehouse-relocation { padding:12px 14px; border:1px solid #cfe1d8; border-radius:13px; display:flex; align-items:flex-start; gap:9px; color:#36584b; background:#f2f8f5; font-size:11px; line-height:1.45; }
.feed-warehouse-relocation svg { width:18px; flex:0 0 auto; }
.feed-warehouse-relocation span { display:grid; gap:2px; }
.modal-body .horse-tab-empty.small { min-height:150px; }
.ride-history { padding:22px; display:grid; gap:14px; }
.ride-history h2 { margin:3px 0 0; font-size:20px; }
.ride-history-card { padding:13px; border:1px solid var(--line); border-radius:14px; display:grid; grid-template-columns:36px minmax(0,1fr); gap:11px; background:#fff; }
.ride-history-card>span { width:36px; height:36px; border-radius:11px; display:grid; place-items:center; color:var(--forest); background:var(--sage); }
.ride-history-card svg { width:18px; }
.ride-history-card div { min-width:0; display:grid; gap:3px; }
.ride-history-card small,.ride-history-card p { margin:0; color:var(--muted); font-size:10px; line-height:1.4; }
.ride-history-card strong { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.ride-history-actions { margin-top:5px; display:flex!important; grid-template-columns:none!important; flex-wrap:wrap; gap:7px!important; }
.ride-history-actions .text-button { padding:4px 0; border:0; display:inline-flex; align-items:center; gap:5px; color:var(--forest); background:transparent; cursor:pointer; font:inherit; font-size:9px; font-weight:800; }
.ride-history-actions .text-button svg { width:14px; height:14px; }
.ride-edit-summary { padding:13px 14px; border:1px solid #cfe1d8; border-radius:14px; display:flex; align-items:flex-start; gap:10px; color:var(--forest); background:#f2f8f5; }
.ride-edit-summary>svg { width:20px; flex:none; }
.ride-edit-summary>span { display:grid; gap:3px; }
.ride-edit-summary small { color:var(--muted); line-height:1.45; }
.ride-training-history { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.ride-history-empty { padding:18px; border:1px dashed var(--line); border-radius:14px; color:var(--muted); font-size:11px; line-height:1.5; text-align:center; }
.ride-tracking-warning { padding:13px 16px; border:1px solid #efc88e; border-radius:14px; display:flex; align-items:center; gap:10px; color:#74551d; background:#fff8e9; font-size:12px; font-weight:700; }
.ride-tracking-warning svg { width:20px; flex:0 0 auto; }
.ride-active-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,.5fr); gap:18px; align-items:start; }
.ride-live-card { padding:20px; overflow:hidden; }
.ride-live-head { margin-bottom:15px; display:flex; align-items:center; gap:11px; }
.ride-live-head div { display:grid; gap:2px; }
.ride-live-head small { color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.1em; }
.ride-live-head strong { font-size:17px; }
.ride-live-dot { width:14px; height:14px; border:3px solid #cce3d7; border-radius:50%; display:block; background:#2c7a55; box-shadow:0 0 0 0 rgba(44,122,85,.45); animation:ridePulse 1.8s infinite; }
.ride-live-dot.paused { border-color:#ead9b7; background:#a37425; animation:none; }
@keyframes ridePulse { 70%{box-shadow:0 0 0 10px rgba(44,122,85,0)} 100%{box-shadow:0 0 0 0 rgba(44,122,85,0)} }
.ride-route-svg { width:100%; height:auto; max-height:410px; display:block; border-radius:20px; }
.ride-osm-map { position:relative; width:100%; min-height:330px; overflow:hidden; border:1px solid rgba(33,79,61,.14); border-radius:20px; background:#e8efe9; }
.ride-osm-map .leaflet-control-attribution { font-size:9px; }
.ride-osm-map .ride-route-empty { position:absolute; inset:0; z-index:500; margin:0; border:0; border-radius:0; background:linear-gradient(145deg,#eef3ee,#f8f7f2); }
.ride-map-detail { display:grid; gap:14px; min-width:min(760px,82vw); }
.ride-osm-map-detail { min-height:420px; }
.ride-map-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.ride-map-summary>div { display:grid; gap:3px; padding:11px 13px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.ride-map-summary small { color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.08em; }
.ride-map-summary strong { color:var(--forest); font-size:14px; }
.ride-map-private { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border:1px solid rgba(33,79,61,.18); border-radius:14px; color:var(--forest); background:var(--sage); }
.ride-map-private svg { width:18px; flex:0 0 auto; }
.ride-map-private span { display:grid; gap:2px; font-size:11px; line-height:1.45; }
.ride-route-empty { min-height:310px; border-radius:20px; display:grid; place-content:center; justify-items:center; gap:7px; color:rgba(255,255,255,.78); background:linear-gradient(145deg,#0d2d23,#234d3d); text-align:center; }
.ride-route-empty svg { width:48px; height:48px; margin-bottom:5px; }
.ride-route-empty strong { color:#fff; font-size:16px; }
.ride-route-empty span { font-size:11px; }
.community-routes-page { display:grid; gap:18px; }
.community-route-privacy,.community-route-navigation-notice { padding:14px 16px; border:1px solid #cfe1d8; border-radius:16px; display:flex; align-items:flex-start; gap:12px; color:#345347; background:#f2f8f5; }
.community-route-privacy>svg,.community-route-navigation-notice>svg { width:22px; height:22px; flex:none; color:var(--forest); }
.community-route-privacy>div { display:grid; gap:3px; }
.community-route-privacy strong { color:var(--forest); font-size:12px; }
.community-route-privacy span,.community-route-navigation-notice { font-size:10px; line-height:1.5; }
.community-route-tabs { padding:4px; border-radius:14px; display:flex; gap:4px; width:max-content; max-width:100%; overflow:auto; background:#edf1ee; }
.community-route-tabs button { min-height:38px; padding:0 16px; border:0; border-radius:11px; white-space:nowrap; color:#607168; background:transparent; font:inherit; font-size:10px; font-weight:850; cursor:pointer; }
.community-route-tabs button.active { color:#fff; background:var(--forest); box-shadow:0 5px 13px rgba(13,45,35,.2); }
.community-route-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.community-route-empty { min-height:250px; padding:28px; display:grid; place-content:center; justify-items:center; gap:10px; text-align:center; }
.community-route-empty>svg { width:46px; height:46px; color:#386850; }
.community-route-empty strong { color:var(--forest); font-size:17px; }
.community-route-empty p { max-width:480px; margin:0; color:var(--muted); font-size:10px; line-height:1.55; }
.community-route-empty .button { margin-top:5px; }
.community-route-empty.error>svg { color:#a64e45; }
.community-route-card { padding:0; overflow:hidden; display:grid; grid-template-rows:auto 1fr; }
.community-route-card.blocked { opacity:.84; }
.community-route-map { min-height:190px; padding:12px; display:grid; place-items:center; color:#fff; background:linear-gradient(145deg,#0d2d23,#285645); }
.community-route-map .ride-route-svg { max-height:230px; }
.community-route-copy { padding:17px; display:grid; align-content:start; gap:12px; }
.community-route-copy header { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.community-route-copy header>div { min-width:0; }
.community-route-copy header small { display:block; color:#708279; font-size:8px; font-weight:900; letter-spacing:.11em; }
.community-route-copy header h2 { margin:4px 0 0; color:var(--forest); font-size:18px; line-height:1.2; }
.community-route-copy header>span { padding:6px 9px; border-radius:999px; color:#2e654e; background:#e5f1eb; font-size:9px; font-weight:850; white-space:nowrap; }
.community-route-facts { display:flex; flex-wrap:wrap; gap:7px; }
.community-route-facts>* { padding:6px 9px; border-radius:999px; color:#52665c; background:#f1f4f2; font-size:9px; font-weight:750; }
.community-route-facts b { color:var(--forest); background:#dfece5; }
.community-route-copy>p { margin:0; color:#64736c; font-size:10px; line-height:1.5; }
.community-route-warning { padding:10px 11px; border:1px solid #ecc9a6; border-radius:12px; display:flex; gap:8px; align-items:flex-start; color:#795126; background:#fff8ed; font-size:9px; line-height:1.45; }
.community-route-warning>svg { width:18px; height:18px; flex:none; }
.community-route-actions { margin-top:auto; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.community-route-actions .button { min-height:40px; }
.community-route-actions .text-button { padding:8px 3px; border:0; color:#53665d; background:none; font:inherit; font-size:9px; font-weight:800; cursor:pointer; }
.community-route-actions .text-button.danger { color:#9e4840; }
.community-route-preview { overflow:hidden; border-radius:18px; color:#fff; background:linear-gradient(145deg,#0d2d23,#285645); }
.community-route-preview.full { grid-column:1/-1; }
.community-route-preview>.ride-route-svg { max-height:300px; padding:10px; }
.community-route-preview>div { padding:12px 14px; display:flex; align-items:flex-start; gap:9px; color:#e3eee9; background:rgba(0,0,0,.15); font-size:9px; line-height:1.45; }
.community-route-preview>div>svg { width:18px; flex:none; }
.community-route-preview>div span { display:grid; gap:2px; }
.community-route-visibility { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.community-route-visibility label { position:relative; }
.community-route-visibility input { position:absolute; opacity:0; pointer-events:none; }
.community-route-visibility span { min-height:84px; padding:12px; border:1px solid #d9e1dc; border-radius:13px; display:grid; align-content:center; gap:4px; cursor:pointer; background:#fff; }
.community-route-visibility strong { color:var(--forest); font-size:10px; }
.community-route-visibility small { color:#728078; font-size:8px; line-height:1.4; }
.community-route-visibility input:checked+span { border-color:#3b7a5d; background:#edf7f2; box-shadow:inset 0 0 0 1px #3b7a5d; }
.community-route-checks { display:flex; flex-wrap:wrap; gap:12px; }
.community-route-checks label { display:flex; gap:7px; align-items:center; color:#53665d; font-size:10px; }
.community-route-confirm { padding:13px; border:1px solid #dfc9a5; border-radius:13px; display:flex; align-items:flex-start; gap:10px; color:#6d5a39; background:#fff9ef; }
.community-route-confirm input { margin-top:3px; flex:none; }
.community-route-confirm span { display:grid; gap:3px; font-size:9px; line-height:1.45; }
.community-route-confirm strong { color:#5d4724; font-size:10px; }
.ride-live-stats { margin-top:14px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.ride-live-stats>div { min-height:78px; padding:13px; border-radius:14px; display:grid; align-content:center; gap:5px; background:#f2f5f2; }
.ride-live-stats small { color:var(--muted); font-size:9px; font-weight:800; }
.ride-live-stats strong { color:var(--forest); font-size:19px; }
.ride-stop-warning { margin-top:13px; padding:13px; border:1px solid #e8b8ad; border-radius:14px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; color:#7d3c35; background:#fff2ef; }
.ride-stop-warning[hidden] { display:none; }
.ride-stop-warning>svg { width:22px; }
.ride-stop-warning span { display:grid; gap:2px; font-size:11px; }
.ride-stop-warning button { min-height:36px; padding:0 11px; border:1px solid #d69b90; border-radius:10px; color:#7d3c35; background:#fff; font:inherit; font-size:10px; font-weight:800; cursor:pointer; }
.ride-controls { margin-top:16px; display:flex; flex-wrap:wrap; gap:9px; }
.ride-controls .button { min-height:46px; }
.ride-controls .finish { color:#fff; border:1px solid var(--forest); background:var(--forest); }
.ride-controls .danger { margin-left:auto; color:#a33e35; }
.ride-head-actions { display:flex; flex-wrap:wrap; gap:8px; }
.ride-head-actions .finish { color:#fff; border:1px solid var(--forest); background:var(--forest); }
.ride-safety-card { padding:22px; display:grid; gap:13px; }
.ride-safety-card>span { width:48px; height:48px; border-radius:15px; display:grid; place-items:center; color:var(--forest); background:var(--sage); }
.ride-safety-card>span svg { width:23px; }
.ride-safety-card h3 { margin:4px 0 5px; font-size:18px; }
.ride-safety-card p { margin:0; color:var(--muted); font-size:11px; line-height:1.55; }
.ride-safety-card ul { margin:0; padding-left:18px; display:grid; gap:9px; color:#56635c; font-size:10px; line-height:1.5; }
.danger-soft { color:#8c3f37!important; border-color:#deb6af!important; background:#fff4f2!important; }

@media(max-width:900px) {
  .ride-layout,.ride-active-layout { grid-template-columns:1fr; }
  .ride-history { order:2; }
  .community-route-grid { grid-template-columns:1fr; }
}

@media(max-width:650px) {
  .community-routes-page { gap:12px; padding-bottom:92px; }
  .community-route-privacy { padding:13px; }
  .community-route-tabs { width:100%; }
  .community-route-tabs button { flex:1; padding:0 10px; }
  .community-route-map { min-height:150px; }
  .community-route-empty { min-height:230px; padding:22px 16px; }
  .community-route-empty>svg { width:42px; height:42px; }
  .community-route-copy { padding:14px; }
  .community-route-copy header { display:grid; }
  .community-route-copy header>span { justify-self:start; }
  .community-route-actions { display:grid; grid-template-columns:1fr; }
  .community-route-actions .button,.community-route-actions .text-button { width:100%; justify-content:center; }
  .community-route-visibility { grid-template-columns:1fr; }
  .community-route-visibility span { min-height:66px; }
  .ride-page { gap:12px; padding-bottom:92px; }
  .ride-hub-tabs { width:100%; }
  .ride-hub-tabs a { min-width:0; flex:1; padding:0 10px; }
  .ride-horse-grid { grid-template-columns:1fr; }
  .ride-horse-choice>a { min-height:110px; padding:14px; grid-template-columns:52px minmax(0,1fr); gap:12px; }
  .ride-horse-avatar { width:52px; height:52px; border-radius:16px; }
  .ride-horse-choice .button { grid-column:1/-1; width:100%; justify-content:center; }
  .ride-hub-intro { padding:13px; }
  .ride-motivation { padding:14px; gap:12px; }
  .ride-motivation>header { grid-template-columns:40px minmax(0,1fr) auto; gap:10px; }
  .ride-motivation>header>span { width:40px; height:40px; border-radius:13px; }
  .ride-motivation>header h2 { font-size:15px; }
  .ride-motivation>header p { grid-column:1/-1; }
  .ride-goals { grid-template-columns:1fr; }
  .dashboard-page .page-actions:has(.dashboard-ride-action) { display:flex; flex-wrap:wrap; }
  .dashboard-page .dashboard-ride-action { flex:1 1 150px; justify-content:center; }
  .ride-start-card,.ride-live-card,.ride-history,.ride-safety-card { border-radius:18px; }
  .ride-start-card { padding:16px; }
  .ride-start-visual { margin:-16px -16px 17px; padding:19px 17px; grid-template-columns:42px minmax(0,1fr); gap:12px; }
  .ride-start-visual>svg { width:38px; height:38px; }
  .ride-start-visual h2 { font-size:20px; }
  .ride-start-visual p { font-size:11px; }
  .ride-start-card form { grid-template-columns:1fr; }
  .ride-start-card form .full,.ride-start { grid-column:auto; }
  .ride-live-card { padding:13px; }
  .ride-osm-map-live,.ride-osm-map-detail { min-height:260px; border-radius:16px; }
  .ride-map-detail { min-width:0; }
  .ride-map-summary { grid-template-columns:1fr; }
  .ride-route-empty { min-height:220px; }
  .ride-live-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ride-training-history { grid-template-columns:1fr; }
  .ride-live-stats>div { min-height:68px; padding:11px; }
  .ride-live-stats strong { font-size:18px; }
  .ride-controls { display:grid; grid-template-columns:1fr 1fr; }
  .ride-controls .button { width:100%; justify-content:center; }
  .ride-controls .danger { grid-column:1/-1; margin:0; min-height:40px; }
  .ride-head-actions { width:100%; display:grid; grid-template-columns:1fr; }
  .ride-head-actions .button { width:100%; min-height:48px; justify-content:center; }
  .ride-stop-warning { grid-template-columns:auto minmax(0,1fr); }
  .ride-stop-warning button { grid-column:1/-1; width:100%; }

  /* Hlavní akce stránky Dnes mají na telefonu vlastní řádek a nemačkají se vedle sebe. */
  .dashboard-page > .page-head { display:grid; grid-template-columns:1fr; gap:14px; }
  .dashboard-page > .page-head .head-actions { width:100%; display:grid; grid-template-columns:1fr; gap:8px; }
  .dashboard-page > .page-head .head-actions .button { width:100%; min-height:48px; padding-inline:14px; display:inline-flex !important; justify-content:center; font-size:12px; }
  .dashboard-page > .page-head .head-actions [data-onboarding-show] { color:var(--forest); border-color:#c8d9cf; background:#f3f8f4; }
}
.competition-packing-section,.competition-trip-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.competition-template-settings { width: auto; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-self: center; background: #fff; color: var(--muted); font-size: 11px; line-height: 1; white-space: nowrap; }
.competition-template-settings svg { width: 15px; height: 15px; flex: 0 0 15px; }
.competition-packing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 12px; }
.competition-packing-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--white); }
.competition-packing-card.complete { border-color: #a9c7b0; background: #f6fbf7; }
.competition-packing-card > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.competition-packing-card small { color: var(--coral-dark); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.competition-packing-card strong { font-size: 15px; }
.competition-packing-card span { color: var(--muted); font-size: 12px; }
.competition-packing-progress { height: 7px; border-radius: 999px; overflow: hidden; background: var(--sage); }
.competition-packing-progress i { height: 100%; display: block; border-radius: inherit; background: var(--forest); }
.competition-packing-loading { padding: 22px; border: 1px dashed var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); }
.competition-template-intro { padding: 14px; border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #f7faf7; }
.competition-template-intro > div { display: flex; flex-direction: column; gap: 4px; }
.competition-template-intro span,.competition-template-copy-note span { color: var(--muted); font-size: 12px; }
.competition-template-list { display: grid; gap: 10px; }
.competition-template-list article { padding: 14px; border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.competition-template-list article > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.competition-template-list article small { color: var(--coral-dark); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.competition-template-list article span { color: var(--muted); font-size: 11px; }
.competition-template-list article > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.competition-template-list article button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--forest); font-weight: 750; }
.competition-template-list article button.danger { color: #9b3c35; }
.competition-template-copy-note { padding: 13px; border-radius: 13px; display: flex; align-items: flex-start; gap: 9px; background: var(--sage); }
.competition-packing-editor { display: grid; gap: 10px; }
.competition-packing-editor [data-packing-rows] { display: grid; gap: 8px; }
.competition-packing-item-row { padding: 9px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: minmax(130px,.8fr) minmax(180px,1.6fr) auto; gap: 7px; align-items: center; background: var(--white); }
.competition-packing-editor.checklist .competition-packing-item-row { grid-template-columns: minmax(115px,.7fr) minmax(160px,1.25fr) minmax(130px,.8fr) minmax(140px,1fr) auto; }
.competition-packing-item-row input,.competition-packing-item-row select { width: 100%; min-width: 0; min-height: 41px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; }
.competition-packing-item-row > small { grid-column: 1 / -2; color: var(--muted); font-size: 10px; }
.competition-packing-row-actions { display: flex; align-items: center; gap: 4px; }
.competition-packing-row-actions button { width: 34px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: var(--forest); background: var(--white); font-size: 17px; font-weight: 800; }
.competition-packing-row-actions button.danger { color: #9b3c35; border-color: #f1c6bf; background: #fff0ed; font-size: 21px; }
.competition-packing-editor.checklist .competition-checklist-row { min-height: 62px; padding: 8px 9px 8px 11px; grid-template-columns: minmax(0,1fr) auto; gap: 8px; border-radius: 14px; transition: border-color .15s ease,background .15s ease; }
.competition-packing-editor.checklist .competition-checklist-row.ready { border-color: #9dc3aa; background: #f4faf6; }
.competition-packing-ready { min-width: 0; min-height: 44px; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 10px; cursor: pointer; }
.competition-packing-ready > input { position: absolute; width: 1px !important; height: 1px; min-height: 1px !important; padding: 0; opacity: 0; pointer-events: none; }
.competition-ready-box { width: 34px; height: 34px; border: 2px solid #aab9b0; border-radius: 10px; display: grid; place-items: center; background: #fff; color: transparent; transition: .15s ease; }
.competition-ready-box svg { width: 20px; height: 20px; }
.competition-packing-ready > input:focus-visible + .competition-ready-box { outline: 3px solid rgba(38,101,76,.2); outline-offset: 2px; }
.competition-packing-ready > input:checked + .competition-ready-box { border-color: var(--forest); background: var(--forest); color: #fff; }
.competition-ready-copy { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; align-items: center; }
.competition-ready-copy strong { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.competition-ready-copy small { grid-column: 1; color: var(--muted); font-size: 10px; line-height: 1.35; }
.competition-ready-copy small[hidden] { display: none; }
.competition-ready-copy em { grid-column: 2; grid-row: 1 / span 2; padding: 4px 7px; border-radius: 999px; background: #f1f3f1; color: #6c7771; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.competition-checklist-row.ready .competition-ready-copy em { background: #dceee2; color: #1f6348; }
.competition-packing-row-detail { align-self: center; }
.competition-packing-row-detail > summary { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; list-style: none; background: #fff; color: var(--muted); cursor: pointer; font-size: 16px; font-weight: 850; letter-spacing: 1px; }
.competition-packing-row-detail > summary::-webkit-details-marker { display: none; }
.competition-packing-row-detail[open] { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; }
.competition-packing-row-detail[open] > summary { grid-column: 2; }
.competition-packing-row-detail > div { grid-column: 1 / -1; margin-top: 8px; padding: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; background: #fafcfb; }
.competition-packing-row-detail > div > label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.competition-packing-row-detail > div > small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.competition-packing-row-detail .competition-packing-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
.competition-packing-save-template { padding: 12px; border: 1px dashed var(--line); border-radius: 12px; display: flex; align-items: center; gap: 10px; background: #fafcfb; }
.competition-packing-save-template small { color: var(--muted); }
.competition-trip-card .button { width: 100%; justify-content: center; }
.competition-trip-overview,.competition-readiness,.competition-trip-transport { padding: 15px; border: 1px solid var(--line); border-radius: 17px; display: grid; gap: 14px; background: #fbfcfb; }
.competition-trip-progress { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 14px; align-items: center; }
.competition-trip-progress > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.competition-trip-progress small { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.competition-trip-progress > span { color: var(--forest); font-size: 18px; font-weight: 850; }
.competition-trip-progress .competition-packing-progress { grid-column: 1 / -1; }
.competition-trip-event-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.competition-trip-event-fields .full { grid-column: 1 / -1; }
.competition-readiness-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.competition-readiness-card { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; background: var(--white); }
.competition-readiness-card > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sage); color: var(--forest); }
.competition-readiness-card > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.competition-readiness-card small { color: var(--coral-dark); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.competition-readiness-card strong { font-size: 13px; }
.competition-readiness-card p { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.competition-readiness-card.recorded { border-color: #aac9b4; background: #f5fbf7; }
.competition-readiness-card.missing { border-color: #e8b9b3; background: #fff8f6; }
.competition-readiness-card.review { border-color: #dfca92; background: #fffdf5; }
.competition-readiness-warning { padding: 10px 12px; border-radius: 12px; display: flex; align-items: flex-start; gap: 8px; color: #735f2c; background: #fff8dd; font-size: 11px; line-height: 1.5; }
.competition-packing-save-template summary { cursor: pointer; color: var(--forest); font-size: 12px; font-weight: 800; }
.competition-packing-save-template > div { margin-top: 10px; display: flex; align-items: center; gap: 10px; }

@media (max-width: 720px) {
  .competition-template-intro,.competition-template-list article { align-items: stretch; flex-direction: column; }
  .competition-template-list article > div:last-child { justify-content: flex-start; }
  .competition-packing-item-row,.competition-packing-editor.checklist .competition-packing-item-row { grid-template-columns: 1fr; }
  .competition-packing-item-row > small { grid-column: 1; }
  .competition-packing-row-actions { width: 100%; }
  .competition-packing-row-actions button { flex: 1; }
  .competition-packing-save-template { align-items: stretch; flex-direction: column; }
  .competition-trip-section { margin-top: 14px; padding-top: 14px; }
  .competition-trip-event-fields,.competition-readiness-grid { grid-template-columns: 1fr; }
  .competition-trip-event-fields .full { grid-column: 1; }
  .competition-trip-overview,.competition-readiness,.competition-trip-transport { padding: 12px; border-radius: 15px; }
  .competition-readiness-card { grid-template-columns: 34px minmax(0,1fr); }
  .competition-readiness-card > span { width: 34px; height: 34px; }
  .competition-packing-save-template > div { align-items: stretch; flex-direction: column; }
  .competition-template-settings { min-height: 36px; padding: 7px 9px; align-self: flex-start; }
  .competition-packing-editor.checklist .competition-checklist-row { grid-template-columns: minmax(0,1fr) auto; }
  .competition-ready-copy { grid-template-columns: minmax(0,1fr); }
  .competition-ready-copy em { grid-column: 1; grid-row: auto; justify-self: start; }
  .competition-packing-row-detail > div { grid-template-columns: 1fr; }
  .competition-packing-row-detail > div > small,.competition-packing-row-detail .competition-packing-row-actions { grid-column: 1; }
}
.horse-medication-section{margin:0 0 1.25rem;padding:1.1rem;border:1px solid rgba(16,91,76,.18);border-radius:22px;background:linear-gradient(145deg,#f7fbf8,#fff)}
.medication-empty>svg{width:28px;height:28px;flex:0 0 28px}
.medication-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.medication-section-head h3{margin:.15rem 0}.medication-section-head p{margin:.15rem 0;color:var(--muted)}
.medication-course-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:.9rem}.medication-course-card{border:1px solid rgba(16,91,76,.16);border-radius:18px;background:#fff;padding:1rem;box-shadow:0 8px 22px rgba(30,58,49,.05)}
.medication-course-card>header{display:flex;justify-content:space-between;gap:.75rem}.medication-course-card h3{margin:.15rem 0}.medication-course-card header p,.medication-course-card header small{margin:0;color:var(--muted)}.medication-status{align-self:flex-start;padding:.35rem .6rem;border-radius:999px;background:#eef4f0;font-size:.75rem;font-weight:800}.medication-status.active{background:#e3f4e9;color:#17663f}.medication-status.cancelled{background:#f9e7e3;color:#8d3828}
.medication-approval{display:flex;gap:9px;align-items:flex-start;margin:10px 0;padding:10px 12px;border-radius:12px}.medication-approval svg{width:18px;flex:0 0 auto}.medication-approval span{display:grid;gap:3px}.medication-approval small{line-height:1.4}.medication-approval.pending{color:#805820;background:#fff4df}.medication-approval.rejected{color:#8d3828;background:#f9e7e3}.medication-dose-row.overdue{border-color:#d58e7e;background:#fff6f3}
.medication-course-card dl{display:grid;gap:.45rem;margin:.9rem 0}.medication-course-card dl div{display:grid;grid-template-columns:7rem 1fr;gap:.65rem}.medication-course-card dt{color:var(--muted);font-size:.78rem}.medication-course-card dd{margin:0;font-weight:650}
.medication-withdrawal,.medication-feed-note,.medication-form-safety,.medication-confirm-summary{display:flex;gap:.7rem;padding:.75rem;border-radius:14px;background:#fff3df;color:#673c11}.medication-withdrawal.neutral{background:#eef5f2;color:#31584c}.medication-withdrawal svg,.medication-feed-note svg,.medication-form-safety svg,.medication-confirm-summary svg{flex:0 0 1.25rem}.medication-withdrawal span,.medication-feed-note>div,.medication-form-safety>div,.medication-confirm-summary>div{display:grid;gap:.2rem}.medication-withdrawal small,.medication-feed-note small,.medication-form-safety p,.medication-confirm-summary p{margin:0;opacity:.82}
.medication-doses{display:grid;gap:.55rem;margin-top:.9rem}.medication-dose-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.65rem;border:1px solid #e6ece8;border-radius:12px}.medication-dose-row>div{display:grid}.medication-dose-row time{font-weight:800}.medication-dose-row.given{background:#edf8f0}.medication-dose-row.skipped{background:#fff1ee}.medication-dose-row p{flex-basis:100%;margin:0}.medication-course-card footer{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.85rem}.medication-audit-list{display:grid;gap:.4rem;margin-top:.5rem}.medication-audit-list span{display:grid;font-size:.8rem}.medication-empty{display:flex;align-items:center;gap:.75rem;padding:1rem;border:1px dashed rgba(16,91,76,.25);border-radius:16px}.medication-empty span{display:grid}.medication-history{margin-top:1rem}.medication-history>summary{cursor:pointer;font-weight:750;margin-bottom:.7rem}
.medication-feed-note{margin-bottom:1rem;background:#edf6f2;color:#234f42}.medication-feed-note p{margin:.15rem 0}.medication-note{padding:.65rem;border-left:3px solid #8ab8a9;background:#f7faf8}.medication-times,.medication-withdrawal-fields{border:1px solid #dfe8e3;border-radius:16px;padding:.85rem}.medication-times legend{padding:0 .35rem;font-weight:800}.medication-times>p,.medication-withdrawal-fields p{margin:0 0 .65rem;color:var(--muted)}.medication-times>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}.medication-times label{display:grid;gap:.3rem}.medication-withdrawal-fields{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.medication-withdrawal-fields>div:first-child{grid-column:1/-1}
@media(max-width:720px){.horse-medication-section{padding:.85rem;border-radius:18px}.medication-section-head{display:grid}.medication-section-head .button{width:100%}.medication-course-grid{grid-template-columns:1fr}.medication-course-card dl div{grid-template-columns:1fr;gap:.1rem}.medication-course-card footer{align-items:flex-start;flex-direction:column}.medication-times>div,.medication-withdrawal-fields{grid-template-columns:1fr 1fr}}
@media(max-width:430px){.medication-times>div,.medication-withdrawal-fields{grid-template-columns:1fr}.medication-dose-row{align-items:stretch;flex-direction:column}.medication-dose-row .button{width:100%}}

/* Desktop story editor needs its own wide canvas; the generic modal is only 580 px. */
.modal:has(.horse-story-editor){width:min(1120px,calc(100vw - 48px))}
.modal:has(.horse-story-editor) .modal-body{max-height:min(76vh,820px)}
.modal:has(.horse-story-editor) .horse-story-editor{width:100%;min-width:0}
/* Horse story: private retrospective first, explicit sharing second. */
.horse-story-editor{display:grid;gap:16px;min-width:min(980px,calc(100vw - 72px))}.horse-story-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.horse-story-controls label{display:grid;gap:5px;font-size:12px;font-weight:800}.horse-story-controls select,.horse-story-controls input{width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit}.horse-story-privacy,.horse-story-private{padding:13px 14px;border-radius:15px;display:flex;align-items:flex-start;gap:11px}.horse-story-privacy{border:1px solid #b9d0c3;background:#f0f7f2;color:var(--forest)}.horse-story-private{border:1px solid #dfd2a7;background:#fff9e7;color:#6f5a21}.horse-story-privacy>svg,.horse-story-private>svg{width:22px;flex:0 0 22px}.horse-story-privacy div,.horse-story-private div{display:grid;gap:2px}.horse-story-privacy p,.horse-story-private p{margin:0;font-size:12px;line-height:1.5}.horse-story-layout{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(390px,1.3fr);gap:18px;align-items:start}.horse-story-layout>div:first-child>h3{margin:0 0 9px}.horse-story-options{display:grid;gap:7px}.horse-story-option{min-height:59px;padding:10px;border:1px solid var(--line);border-radius:13px;display:grid;grid-template-columns:20px 1fr;gap:9px;align-items:start;background:#fff;cursor:pointer}.horse-story-option:has(input:checked){border-color:#7ca792;background:#f2f8f4}.horse-story-option.disabled{opacity:.55;cursor:not-allowed}.horse-story-option input{margin:3px 0 0}.horse-story-option span{display:grid;gap:1px}.horse-story-option strong{font-size:12px}.horse-story-option small{color:var(--muted);font-size:10px;line-height:1.4}.horse-story-actions{margin-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.horse-story-card{overflow:hidden;border-radius:25px;background:linear-gradient(145deg,#f8f4eb,#e6efe9);box-shadow:0 18px 50px #163e3420}.horse-story-card>header{position:relative;overflow:hidden;min-height:215px;padding:24px;display:flex;align-items:flex-end;background:linear-gradient(140deg,#143d35,#376f5e);color:#fff}.horse-story-card>header:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#143d35 0%,#143d35d8 48%,transparent 86%)}.horse-story-card>header img{position:absolute;inset:0 0 0 auto;width:65%;height:100%;object-fit:cover}.horse-story-card>header div{position:relative;z-index:1}.horse-story-card>header small{font-size:10px;font-weight:850;letter-spacing:.15em;opacity:.82}.horse-story-card h3{margin:5px 0 0;color:#fff;font:700 40px/1.05 Georgia,serif}.horse-story-card>header p{margin:4px 0 0;opacity:.8}.horse-story-card-grid{padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:9px}.horse-story-card-grid article{min-height:118px;padding:13px;border:1px solid #cbd8d0;border-radius:16px;background:#fff}.horse-story-card-grid article small{color:var(--coral-dark);font-size:8px;font-weight:850;letter-spacing:.08em}.horse-story-card-grid article strong{margin:3px 0;display:block;color:var(--forest);font:700 24px Georgia,serif}.horse-story-card-grid article p{margin:0;color:var(--muted);font-size:9px;line-height:1.45}.horse-story-highlights{margin:0 12px 12px;padding:13px;border-radius:16px;background:#fff;display:grid;gap:4px}.horse-story-highlights>strong{font-size:12px}.horse-story-highlights span{color:var(--muted);font-size:9px}.horse-story-card>footer{padding:2px 12px 13px;text-align:center;color:var(--muted);font-size:9px;font-weight:750}.horse-story-empty{grid-column:1/-1;margin:0;padding:25px;text-align:center;color:var(--muted)}.horse-story-links{display:grid;gap:8px}.horse-story-links h3{margin:3px 0}.horse-story-links article{padding:10px 12px;border:1px solid var(--line);border-radius:13px;display:flex;align-items:center;gap:8px;background:#fff}.horse-story-links article>div{min-width:0;margin-right:auto;display:grid}.horse-story-links small{color:var(--muted)}.horse-story-loading,.horse-story-error{min-height:190px;display:grid;place-items:center;align-content:center;gap:9px;text-align:center;color:var(--forest)}.horse-story-loading svg,.horse-story-error svg{width:34px}.horse-story-error{color:#9b3c35}.horse-story-error p{margin:0;color:var(--muted)}
@media(max-width:900px){.horse-story-editor{min-width:0}.horse-story-layout{grid-template-columns:1fr}.horse-story-layout>[data-story-preview]{order:-1;max-width:560px;width:100%;margin:auto}.horse-story-card>header{min-height:190px}}
@media(max-width:600px){.horse-story-controls,.horse-story-actions{grid-template-columns:1fr}.horse-story-editor{gap:12px}.horse-story-privacy,.horse-story-private{padding:11px}.horse-story-card{border-radius:20px}.horse-story-card>header{min-height:176px;padding:18px}.horse-story-card h3{font-size:34px}.horse-story-card-grid{grid-template-columns:1fr}.horse-story-card-grid article{min-height:94px}.horse-story-links article{align-items:stretch;flex-wrap:wrap}.horse-story-links article>div{width:100%}.horse-story-links article .button{flex:1}}
.competition-readiness-card.clear{border-color:#aac9b4;background:#f5fbf7}.competition-readiness-card.blocked{border-color:#e1a29a;background:#fff1ef}.competition-readiness-card.blocked small{color:#8f312a}
@media(max-width:720px){.morning-brief-settings-grid,.morning-brief-grid{grid-template-columns:1fr}.morning-brief-intro{align-items:flex-start}.morning-brief-priority{align-items:flex-start;flex-wrap:wrap}.morning-brief-priority .morning-brief-source{margin-left:34px}.morning-brief-row{grid-template-columns:1fr}.morning-brief-source{justify-self:start}}
@media(max-width:720px){.stable-health-care-request{align-items:flex-start;flex-direction:column}.stable-health-care-request>div:last-child{width:100%}.stable-health-care-request>div:last-child .button{flex:1}.task-critical-reason,.task-escalated{font-size:11px}}
/* Verified professional directory and two-sided booking flow. */
.professional-booking-center{margin:18px 0}.professional-booking-badge{display:grid;place-items:center;min-width:32px;height:32px;border-radius:999px;background:#c96f55;color:#fff;font-weight:800}.professional-booking-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}.professional-booking-card{padding:16px;border:1px solid rgba(18,65,56,.12);border-radius:18px;background:#fff;box-shadow:0 8px 26px rgba(18,65,56,.05)}.professional-booking-card.proposed{border-color:rgba(201,111,85,.42);background:#fffaf7}.professional-booking-card.confirmed{border-color:rgba(25,119,96,.32);background:#f7fcfa}.professional-booking-card-head{display:flex;align-items:center;gap:12px}.professional-booking-card-head>div{min-width:0}.professional-booking-card-head small{display:block;color:#697c75;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.professional-booking-card-head strong{display:block;margin-top:3px;font-size:1rem}.professional-booking-card-head p{margin:2px 0 0;color:#697c75}.professional-booking-avatar{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:14px;background:#e9f2ee;color:#17483e;font-weight:800}.professional-booking-date{display:flex;gap:8px;align-items:center;margin:14px 0 8px;padding:10px 12px;border-radius:12px;background:#f4f7f5}.professional-booking-date svg{width:18px}.professional-booking-reason{margin:8px 0;color:#40554e;line-height:1.5}.professional-booking-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px}.professional-booking-actions .button{min-height:38px;padding:8px 13px}.text-button.danger{color:#a24332}.professional-search-form{padding:16px;border:1px solid rgba(18,65,56,.12);border-radius:18px;background:#f8fbf9}.professional-search-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.professional-search-privacy{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:14px;background:#eef6f2;color:#365b50}.professional-search-privacy svg{width:19px;flex:0 0 19px}.professional-booking-results{display:grid;gap:14px}.professional-search-card{overflow:hidden;border:1px solid rgba(18,65,56,.13);border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(18,65,56,.06)}.professional-search-card-main{display:flex;gap:15px;padding:18px}.professional-search-photo{display:grid;place-items:center;overflow:hidden;flex:0 0 62px;height:62px;border-radius:20px;background:#dfeee8;color:#17483e;font-size:1.15rem;font-weight:800}.professional-search-photo img{width:100%;height:100%;object-fit:cover}.professional-search-card-main h3{margin:4px 0}.professional-search-card-main p{margin:5px 0;color:#536860;line-height:1.45}.professional-search-card-main em{display:block;margin-top:8px;color:#62746e;font-size:.82rem}.professional-verified{display:inline-flex;align-items:center;gap:4px;color:#197760;font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.professional-verified svg{width:14px}.professional-search-services{border-top:1px solid rgba(18,65,56,.1)}.professional-search-services button{display:flex;width:100%;align-items:center;gap:12px;padding:13px 18px;border:0;border-bottom:1px solid rgba(18,65,56,.08);background:#fff;text-align:left;cursor:pointer}.professional-search-services button:last-child{border-bottom:0}.professional-search-services button:hover{background:#f5faf7}.professional-search-services button span{min-width:0;flex:1}.professional-search-services button strong,.professional-search-services button small{display:block}.professional-search-services button small{margin-top:2px;color:#697c75}.professional-search-services button b{white-space:nowrap;color:#17483e}.professional-search-services button>svg{width:18px}.professional-booking-selected{display:flex;align-items:center;gap:13px;padding:14px;border-radius:16px;background:#eef6f2}.professional-booking-selected>span{display:grid;place-items:center;overflow:hidden;width:50px;height:50px;border-radius:16px;background:#17483e;color:#fff;font-weight:800}.professional-booking-selected img{width:100%;height:100%;object-fit:cover}.professional-booking-selected small,.professional-booking-selected strong,.professional-booking-selected p{display:block;margin:0}.professional-booking-selected p{margin-top:3px;color:#536860}.professional-booking-time-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px}.professional-booking-form-actions{display:flex;justify-content:flex-end;gap:10px}.professional-public-profile-form{overflow:hidden}.professional-profile-location-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.professional-profile-list{display:grid;gap:10px}.professional-profile-service-row{display:grid;grid-template-columns:minmax(150px,2fr) 80px 100px 82px 42px;gap:8px;align-items:center}.professional-profile-availability-row{display:grid;grid-template-columns:minmax(130px,1fr) 120px auto 120px 42px;gap:8px;align-items:center}.professional-profile-service-row input,.professional-profile-service-row select,.professional-profile-availability-row input,.professional-profile-availability-row select{min-width:0}.professional-profile-service-row .icon-button,.professional-profile-availability-row .icon-button{width:40px;height:40px}.professional-booking-action-form{display:grid;gap:14px}
@media(max-width:720px){.professional-booking-list{grid-template-columns:1fr}.professional-search-grid,.professional-profile-location-grid{grid-template-columns:1fr}.professional-search-card-main{padding:14px}.professional-search-photo{flex-basis:52px;height:52px;border-radius:16px}.professional-search-services button{align-items:flex-start;padding:13px 14px}.professional-search-services button b{font-size:.82rem}.professional-booking-time-grid{grid-template-columns:1fr 1fr}.professional-booking-time-grid .field:first-child{grid-column:1/-1}.professional-booking-form-actions{flex-direction:column-reverse}.professional-booking-form-actions .button{width:100%}.professional-profile-service-row{grid-template-columns:1fr 72px 42px}.professional-profile-service-row [name="service_price"]{grid-column:1/2}.professional-profile-service-row [name="service_currency"]{grid-column:2/3}.professional-profile-service-row .icon-button{grid-column:3;grid-row:1}.professional-profile-availability-row{grid-template-columns:1fr 1fr 42px}.professional-profile-availability-row>span{display:none}.professional-profile-availability-row [name="availability_weekday"]{grid-column:1/-1}.professional-profile-availability-row .icon-button{grid-column:3;grid-row:2}.professional-booking-actions{align-items:stretch}.professional-booking-actions .button,.professional-booking-actions .text-button{flex:1 1 44%}}
/* Majitel koně: každá oprávněně viditelná stáj má vlastní, omezenou kartu. */
.owner-linked-stables{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:16px;margin-bottom:18px}.owner-linked-stable{padding:18px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 9px 26px rgba(35,67,58,.06)}.owner-linked-stable header{display:flex;gap:12px;align-items:center}.owner-linked-stable-icon{width:46px;height:46px;border-radius:14px;background:#edf7f3;color:var(--green);display:grid;place-items:center;flex:0 0 auto}.owner-linked-stable-icon svg{width:22px;height:22px}.owner-linked-stable h2,.owner-linked-stable p{margin:0}.owner-linked-stable header small{display:block;color:var(--muted);margin-bottom:2px}.owner-linked-stable header p{font-size:.82rem;color:var(--muted);margin-top:2px}.owner-linked-stable-horses{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.owner-linked-stable-horses span{padding:6px 10px;border-radius:999px;background:var(--soft);font-size:.78rem}.owner-linked-stable footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-top:14px;border-top:1px solid var(--line)}.owner-linked-stable footer strong,.owner-linked-stable footer small{display:block}.owner-linked-stable footer small{color:var(--muted);font-size:.76rem;margin-top:2px}.owner-location-shared{justify-self:end;padding:5px 8px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:.72rem}.owner-boarding-search-bottom{margin-top:18px;margin-bottom:0}@media (max-width:640px){.owner-linked-stables{grid-template-columns:1fr}.owner-linked-stable footer{align-items:stretch;flex-direction:column}.owner-linked-stable footer .button{width:100%}.owner-location-shared{grid-column:2;justify-self:start}}

/* Jednoznačný průvodce typem ustájení. */
.housing-guide-note{display:flex;gap:11px;align-items:flex-start;padding:13px 14px;border-radius:15px;background:#eef7f3;color:#28584c}.housing-guide-note>svg{width:20px;height:20px;flex:0 0 20px}.housing-guide-note div{display:grid;gap:3px}.housing-guide-note span{font-size:.82rem;line-height:1.45}.housing-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;border:0;padding:0;margin:0}.housing-choice-grid legend{grid-column:1/-1;margin-bottom:2px;font-weight:800}.housing-choice{display:grid;grid-template-columns:20px minmax(0,1fr);gap:9px;align-items:start;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer}.housing-choice:has(input:checked){border-color:#68a391;background:#f0f8f4;box-shadow:0 0 0 2px rgba(74,137,119,.1)}.housing-choice input{margin:3px 0 0}.housing-choice span{display:grid;gap:3px}.housing-choice small{color:var(--muted);line-height:1.4}
/* Nabídka ustájení je až doplňková část stránky a její ikony nesmí roztahovat panel. */
.stable-page>.boarding-owner-panel{margin-top:24px;margin-bottom:0}.boarding-owner-panel .panel-head .button svg,.boarding-owner-panel .boarding-privacy-note>svg,.boarding-owner-panel .boarding-confirm-note>svg{width:18px;height:18px;max-width:18px;max-height:18px;flex:0 0 18px}

/* Stable overview: keep location discoverable and every action icon compact. */
.stable-hero-location{position:relative;z-index:1;display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.stable-hero-location .kicker{margin:0;color:rgba(255,255,255,.78)}
.stable-hero-location button{min-height:31px;padding:5px 9px;border:1px solid rgba(255,255,255,.26);border-radius:999px;display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.1);color:#fff;font:inherit;font-size:10px;font-weight:800;cursor:pointer}
.stable-hero-location button:hover{background:rgba(255,255,255,.18)}
.stable-hero-location button svg{width:13px;height:13px;max-width:13px;max-height:13px;flex:0 0 13px}
.stable-page>.page-head .head-actions svg,
.stable-page .panel-head .button svg,
.stable-page .panel-head .text-button svg,
.stable-page .boarding-privacy-note>svg,
.stable-page .boarding-confirm-note>svg,
.stable-page .stable-empty-action svg{width:18px;height:18px;max-width:18px;max-height:18px;flex:0 0 18px}

@media(max-width:720px){
  .stable-page>.page-head{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;margin-bottom:16px}
  .stable-page>.page-head .head-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .stable-page>.page-head .head-actions .button,
  .stable-page>.page-head .head-actions .button.secondary{display:inline-flex!important;width:100%;min-width:0;min-height:44px;padding:8px 9px;justify-content:center;gap:6px;font-size:10px;line-height:1.2;text-align:center;white-space:normal}
  .stable-page>.page-head .head-actions .button span{min-width:0;overflow-wrap:anywhere}
  .stable-page>.page-head .head-actions svg{width:16px;height:16px;max-width:16px;max-height:16px;flex:0 0 16px}
  .stable-page .stable-hero{min-height:0;padding:22px 18px;border-radius:21px}
  .stable-page .stable-hero h2{margin-top:14px;font-size:30px;line-height:1.05}
  .stable-page .stable-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .stable-page .stable-stat{min-width:0;padding:12px 10px}
  .stable-page .stable-stat strong{font-size:24px}
  .stable-page .stable-stat span{font-size:9px;line-height:1.3}
  .stable-page .panel-head{align-items:flex-start}
  .stable-page .panel-head .head-actions{width:100%;display:grid;grid-template-columns:1fr;gap:7px}
  .stable-page .panel-head .head-actions .text-button{width:100%;min-height:42px;justify-content:center}
  .stable-page>.boarding-owner-panel .panel-head{align-items:stretch;flex-direction:column}
  .stable-page>.boarding-owner-panel .panel-head .button{width:100%;min-height:44px;justify-content:center}
  .stable-page .boarding-owner-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .stable-page .boarding-owner-stats>div{min-width:0;padding:11px}
}
.calendar-routine-detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
@media(max-width:640px){.housing-choice-grid{grid-template-columns:1fr}.housing-choice-grid legend{grid-column:1}}

/* Trial expiry: a calm read-only identification view, never a data-loss wall. */
.nav-subscription-horses{display:grid;gap:4px;margin:3px 0 9px;padding-left:12px}.nav-subscription-horse{min-height:34px;padding:5px 8px;border-radius:10px;display:flex;align-items:center;gap:8px;color:rgba(255,255,255,.62);font-size:10px;text-decoration:none}.nav-subscription-horse:hover,.nav-subscription-horse.active{color:#fff;background:rgba(255,255,255,.08)}.nav-subscription-horse>span{width:7px;height:7px;border-radius:50%;background:var(--horse-nav-color)}.nav-subscription-locked>b{margin-left:auto;font-size:9px}.subscription-locked-page{max-width:1080px}.subscription-lock-hero{padding:clamp(28px,6vw,68px);border-radius:30px;color:#fff;background:linear-gradient(145deg,#153b32,#24594b);box-shadow:0 24px 65px rgba(21,59,50,.18);text-align:center}.subscription-lock-icon{width:62px;height:62px;margin:0 auto 18px;border-radius:20px;display:grid;place-items:center;color:#153b32;background:#dceade}.subscription-lock-icon svg{width:28px;height:28px}.subscription-lock-hero .kicker{color:#dca07c}.subscription-lock-hero h1{max-width:700px;margin:8px auto 15px;font-size:clamp(34px,6vw,62px);line-height:1.02;letter-spacing:-.05em}.subscription-lock-hero>p:not(.kicker){max-width:720px;margin:0 auto;color:rgba(255,255,255,.72);font-size:15px;line-height:1.65}.subscription-lock-actions{margin:25px 0 15px;display:flex;justify-content:center;flex-wrap:wrap;gap:10px}.subscription-lock-actions .button.primary{color:#153b32;background:#e8b296}.subscription-lock-actions .button.secondary{border-color:rgba(255,255,255,.22);color:#fff;background:rgba(255,255,255,.08)}.subscription-lock-hero>small{color:rgba(255,255,255,.58)}.subscription-lock-grid{margin-top:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.subscription-lock-grid article{padding:18px;border:1px solid var(--line);border-radius:18px;display:flex;gap:12px;background:#fff}.subscription-lock-grid article>svg{width:22px;flex:0 0 22px;color:var(--forest)}.subscription-lock-grid article div{display:grid;gap:5px}.subscription-lock-grid article strong{font-size:12px}.subscription-lock-grid article span{color:var(--muted);font-size:11px;line-height:1.45}.subscription-horse-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:15px}.subscription-horse-card{min-height:132px;padding:15px;border:1px solid var(--line);border-radius:20px;display:grid;grid-template-columns:92px 1fr 20px;gap:16px;align-items:center;color:inherit;background:#fff;box-shadow:0 10px 28px rgba(27,65,54,.06);text-decoration:none;transition:.18s ease}.subscription-horse-card:hover{transform:translateY(-2px);border-color:#aec6b6}.subscription-horse-photo{width:92px;height:100px;border-radius:15px;display:grid;place-items:center;overflow:hidden;color:var(--forest);background:var(--sage)}.subscription-horse-photo img{width:100%;height:100%;object-fit:cover}.subscription-horse-photo>svg{width:34px}.subscription-horse-card h2{margin:0 0 6px;font-size:22px}.subscription-horse-card p{margin:0 0 10px;color:var(--muted);font-size:11px}.subscription-horse-card span{display:flex;align-items:center;gap:6px;color:#587267;font-size:10px}.subscription-horse-card span svg,.subscription-horse-card>svg{width:15px}.subscription-empty-horses{padding:40px;border:1px dashed var(--line);border-radius:20px;display:grid;justify-items:center;gap:8px;color:var(--muted);background:#fff}.subscription-empty-horses>svg{width:38px;color:var(--forest)}.subscription-horse-detail{max-width:980px}.subscription-horse-identity{margin-top:22px;padding:24px;border:1px solid var(--line);border-radius:24px;display:flex;align-items:center;gap:20px;background:#fff}.subscription-horse-detail-photo{width:150px;height:150px;border-radius:22px;display:grid;place-items:center;overflow:hidden;color:var(--forest);background:var(--sage)}.subscription-horse-detail-photo img{width:100%;height:100%;object-fit:cover}.subscription-horse-detail-photo>svg{width:52px}.subscription-horse-identity h1{margin:5px 0;font-size:clamp(36px,6vw,58px);letter-spacing:-.05em}.subscription-horse-identity p{margin:0;color:var(--muted)}.subscription-horse-identity div:last-child>span{display:inline-flex;margin-top:10px;padding:5px 9px;border-radius:999px;color:#785340;background:var(--clay-soft);font-size:9px;font-weight:800}.subscription-horse-facts{margin:16px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.subscription-horse-facts div{padding:15px;border:1px solid var(--line);border-radius:16px;background:#fff}.subscription-horse-facts dt{color:var(--muted);font-size:9px}.subscription-horse-facts dd{margin:5px 0 0;font-size:13px;font-weight:750}.subscription-inline-lock{padding:19px;border:1px solid #e2c4b4;border-radius:19px;display:grid;grid-template-columns:30px 1fr auto;gap:14px;align-items:center;background:#fff7f1}.subscription-inline-lock>svg{width:25px;color:#8b5c43}.subscription-inline-lock strong{font-size:12px}.subscription-inline-lock p{margin:4px 0 0;color:#775f52;font-size:11px;line-height:1.5}.subscription-trial-banner{max-width:1420px;margin:0 auto 20px;padding:12px 15px;border:1px solid #dfc1ae;border-radius:15px;display:flex;align-items:center;gap:11px;color:#704d3b;background:#fff6ef}.subscription-trial-banner>svg{width:20px;flex:0 0 20px}.subscription-trial-banner div{display:grid;gap:2px}.subscription-trial-banner span{font-size:10px}.subscription-trial-banner a{margin-left:auto;color:#704d3b;font-size:10px;font-weight:800}
@media(max-width:720px){.subscription-lock-grid{grid-template-columns:1fr}.subscription-lock-hero{padding:28px 18px;border-radius:22px}.subscription-lock-actions{display:grid}.subscription-lock-actions .button{width:100%}.subscription-horse-list{grid-template-columns:1fr}.subscription-horse-card{grid-template-columns:74px 1fr 17px}.subscription-horse-photo{width:74px;height:86px}.subscription-horse-identity{align-items:flex-start;flex-direction:column}.subscription-horse-detail-photo{width:100%;height:min(62vw,280px)}.subscription-inline-lock{grid-template-columns:25px 1fr}.subscription-inline-lock .button{grid-column:1/-1;width:100%}.subscription-trial-banner{align-items:flex-start;flex-wrap:wrap}.subscription-trial-banner a{margin-left:31px}}
