
:root{--bg:#f4efe7;--surface:#fff;--line:#dfd5c6;--text:#1b1b1b;--muted:#666;--accent:#1f6f43;--radius:18px;--shadow:0 16px 38px rgba(0,0,0,.08)}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}img{max-width:100%;display:block}
.admin-shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.admin-sidebar{background:#151515;color:#fff;padding:24px;position:sticky;top:0;height:100vh}
.admin-brand{display:block;font-weight:800;margin-bottom:22px}.admin-nav{display:grid;gap:8px}.admin-nav a{padding:12px 14px;border-radius:14px;color:#ddd}.admin-nav a.is-active,.admin-nav a:hover{background:#2a2a2a;color:#fff}
.admin-main{padding:24px}.admin-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:20px}
.admin-view-link{color:var(--accent);font-weight:700}
.panel,.card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius);padding:20px}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
input,textarea,select{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;font:inherit}textarea{min-height:120px;resize:vertical}
label span{display:block;margin-bottom:6px;font-size:14px;font-weight:700}.button{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--accent);color:#fff;padding:12px 18px;border-radius:999px;cursor:pointer;font-weight:700}.button--ghost{background:#fff;color:var(--text);border:1px solid var(--line)}.button--danger{background:#b42318}.button--small{padding:8px 12px;font-size:14px}
.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.notice{padding:12px 14px;border-radius:14px;background:#edf7ee;border:1px solid #b8ddbe;color:#1f6f43;margin-bottom:16px}.notice--error{background:#fef1f0;border-color:#f3c2be;color:#b42318}
.builder{display:grid;grid-template-columns:380px 1fr;gap:18px}.module-list{display:grid;gap:12px}.module-item{padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:grab}.module-item h3{margin:0 0 6px;font-size:16px}.module-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.preview-frame{width:100%;min-height:920px;border:1px solid var(--line);border-radius:18px;background:#fff}
.badge{display:inline-flex;background:#efe7da;color:#5c4c31;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700}
.collection-item{padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}.collection-toolbar{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;align-items:center}
@media (max-width:1100px){.builder,.grid-2,.grid-3,.admin-shell{grid-template-columns:1fr}.admin-sidebar{position:static;height:auto}.preview-frame{min-height:560px}}


.is-filter.is-active{background:#111827;color:#fff;border-color:#111827}
#admin-availability .calendar-day.is-closed{background:#111827;color:#fff;border-color:#111827}
#admin-availability .calendar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#admin-availability .calendar-month{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px}
#admin-availability .calendar-weekdays,#admin-availability .calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
#admin-availability .calendar-day{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;border:1px solid #e5e7eb;border-radius:10px;background:#fff;cursor:pointer}
#admin-availability .calendar-day--empty{border:0;background:transparent}
#admin-availability .calendar-day.is-disabled{opacity:.3;cursor:not-allowed}
@media (max-width:900px){#admin-availability .calendar-grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){#admin-availability .calendar-grid{grid-template-columns:1fr}}


.collection-item[data-repeatable-item]{position:relative}
.collection-item[data-repeatable-item]:before{content:"Сущность";position:absolute;right:16px;top:16px;font-size:11px;font-weight:700;color:#7c6a52;background:#f3eadc;padding:5px 8px;border-radius:999px}
#admin-availability .calendar-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
#admin-availability .calendar-head__title{font-weight:800;font-size:20px}
#admin-availability .calendar-head__nav{width:42px;height:42px;border-radius:999px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;font-size:28px;line-height:1}
#admin-availability .calendar-month{max-width:760px}
#admin-availability .calendar-grid{display:block}
#admin-availability .calendar-target-title{font-size:15px;color:#555;margin-bottom:6px}
@media (max-width:640px){#admin-availability .calendar-head__title{font-size:17px}.collection-item[data-repeatable-item]:before{position:static;display:inline-flex;margin-bottom:10px}}

/* 2026-04-07 admin calendar refresh */
#admin-availability .calendar-month{max-width:620px;border-radius:18px}
#admin-availability .calendar-head{margin:10px 0 12px}
#admin-availability .calendar-head__title{font-size:18px}
#admin-availability .calendar-head__nav{width:38px;height:38px;font-size:24px}
#admin-availability .calendar-weekdays,#admin-availability .calendar-days{gap:4px}
#admin-availability .calendar-day{border-radius:9px;font-size:13px;min-height:38px;aspect-ratio:auto;padding:0}
#admin-availability .calendar-day.is-closed{background:#111827;color:#fff;border-color:#111827}
#admin-availability .calendar-target-title{margin-bottom:4px}


/* 2026-04-07 collections upgrade */
.collection-toolbar .button{white-space:nowrap}
.collection-item textarea[name$="[gallery]"], .collection-item textarea[name$="[photos]"]{min-height:140px}


/* 2026-04-08 admin UX upgrade */
.admin-sidebar{background:linear-gradient(180deg,#121212,#1b1b1b)}
.admin-brand{font-size:20px;letter-spacing:.02em}
.admin-main{padding:28px}
.admin-header h1{margin:0;font-size:34px}
.collection-item{border-radius:20px;padding:18px;background:linear-gradient(180deg,#fff,#fdfaf5)}
.collection-item__head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.collection-item__head strong{font-size:18px}
.collection-item__head .muted{font-size:13px;color:#6b6257;margin-top:4px}
.admin-image-preview{max-width:220px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#f7f2ea}
.admin-image-preview img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.collection-item textarea[name$="[gallery]"], .collection-item textarea[name$="[photos]"]{min-height:160px}
.button--ghost.button--small{padding:9px 12px}
@media (max-width:760px){
  .collection-item__head{flex-direction:column}
  .admin-main{padding:18px}
  .admin-header h1{font-size:28px}
}


.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.admin-table{width:100%;border-collapse:collapse;font-size:14px}.admin-table th,.admin-table td{padding:10px;border-bottom:1px solid #ece7de;vertical-align:top;text-align:left}.table-wrap{overflow:auto}.stats-mini{display:flex;gap:12px;flex-wrap:wrap}.stats-mini>div{padding:14px 16px;border-radius:14px;background:#f6f1e8;min-width:140px}.stats-mini strong{display:block;font-size:26px}.stats-mini span{color:#6d665b}.pill{display:inline-flex;gap:8px;align-items:center;padding:8px 12px;border-radius:999px;background:#f6f1e8}.pill.danger{background:#fee9e7}
@media (max-width:1100px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:720px){.grid-4{grid-template-columns:1fr;}}


/* v21 admin polish */
.admin-sidebar__caption{margin:0 0 18px;color:#9e9e9e;font-size:13px;line-height:1.4}
.sticky-actions{position:sticky;top:12px;z-index:5}
.admin-helper-text{margin:10px 0 0;color:#6e6558}
.admin-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin-top:10px}
.admin-preview-grid__item{background:#f7f2ea;border:1px solid var(--line);border-radius:14px;overflow:hidden;aspect-ratio:1/1}
.admin-preview-grid__item img{width:100%;height:100%;object-fit:cover}
.review-editor textarea,.review-editor__textarea{min-height:180px}
.collection-item input[type=file]{padding:10px;background:#fcfaf6}
.collection-item .grid{align-items:start}
.card img{object-fit:cover}
@media (min-width:1200px){.admin-main{padding:32px 36px}.collection-item{padding:22px}}

/* v30 header studio */
.header-preview-panel{position:sticky;top:24px}
.header-preview{border-radius:24px;padding:18px;background:linear-gradient(180deg,#faf7f2,#efe7da);border:1px solid #e5dccd;min-height:220px;display:flex;align-items:flex-start}
.header-preview--light{background:linear-gradient(180deg,#fffdf9,#f5ede2)}
.header-preview--dark{background:linear-gradient(180deg,#131714,#232a25);color:#fff;border-color:#303b34}
.header-preview--glass{background:linear-gradient(180deg,rgba(255,251,245,.9),rgba(240,231,218,.82))}
.header-preview__bar{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;border-radius:18px;padding:16px 18px;background:rgba(255,255,255,.72);backdrop-filter:blur(12px);box-shadow:0 20px 40px rgba(0,0,0,.08)}
.header-preview--dark .header-preview__bar{background:rgba(255,255,255,.06)}
.header-preview--compact .header-preview__bar{padding:12px 16px}
.header-preview__brand{font-size:24px;font-weight:900;line-height:1.05}
.header-preview__tagline{font-size:12px;opacity:.75;margin-top:4px;max-width:260px}
.header-preview__nav{font-size:13px;opacity:.72;white-space:nowrap}
.header-preview__actions{display:flex;align-items:center;gap:10px;justify-content:flex-end}
.header-preview__phone{font-weight:700;white-space:nowrap}
.header-preview__socials{display:flex;gap:8px}
.header-preview .button{padding:11px 16px}
.sw{display:inline-block;width:28px;height:28px;border-radius:999px}.sw--wa{background:linear-gradient(135deg,#25d366,#128c7e)}.sw--tg{background:linear-gradient(135deg,#27a7e7,#1f8fd1)}.sw--ig{background:linear-gradient(135deg,#f58529,#dd2a7b 55%,#8134af)}
.is-hidden{display:none!important}
.mini-card{display:grid;gap:8px}.mini-card strong{font-size:17px}
.admin-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}.admin-media-grid--houses{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.admin-media-card{background:#f8f2e9;border:1px solid var(--line);border-radius:16px;padding:10px;display:grid;gap:8px;align-content:start}.admin-media-card img{width:100%;height:120px;object-fit:cover;border-radius:12px;background:#fff}.admin-media-card--editable img{height:140px}.admin-media-card__caption{font-size:12px;color:#6c6559;word-break:break-all}
.house-media-manager--pro{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px}
@media (max-width:1180px){.header-preview-panel{position:static}.header-preview__bar{grid-template-columns:1fr}.header-preview__actions{justify-content:flex-start}.house-media-manager--pro{grid-template-columns:1fr}}


/* v40 CRM + media manager */
.crm-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap}
.crm-filters{display:flex;gap:8px;flex-wrap:wrap}.crm-filter{text-decoration:none}.crm-filter.is-active{background:#111827;color:#fff}
.crm-search{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.crm-search input{min-width:260px}
.crm-card__heading{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800}
.status-badge.is-new{background:#eef4ff;color:#2643a2}
.status-badge.is-progress{background:#fff5dd;color:#9a6a00}
.status-badge.is-confirmed{background:#e8f8ef;color:#18794e}
.status-badge.is-done{background:#e6f7f0;color:#0c7a43}
.status-badge.is-cancelled{background:#fdecec;color:#b42318}
.status-badge.is-hidden{background:#f1f1f1;color:#555}
.crm-card.is-muted{opacity:.72}
.admin-media-card[data-sort-item]{cursor:grab}.admin-media-card.is-dragging{opacity:.5;transform:scale(.98)}
.admin-media-grid[data-sortable-gallery]{align-items:start}
@media (max-width:760px){.crm-search input{min-width:0;width:100%}.crm-search{width:100%}.crm-toolbar{align-items:stretch}}


/* v40 crm + sortable media + status */
.status-chip{border:1px solid rgba(35,65,47,.14);padding:.45rem .7rem;border-radius:999px;font-size:12px;font-weight:700;background:#fff;color:#23412f;display:inline-flex;align-items:center;gap:8px}
.status-chip--new{background:#eff6ff;color:#1d4ed8}
.status-chip--in_progress{background:#fff7ed;color:#c2410c}
.status-chip--confirmed,.status-chip--done{background:#ecfdf3;color:#027a48}
.status-chip--cancelled,.status-chip--hidden{background:#f3f4f6;color:#4b5563}
.pill--active{box-shadow:inset 0 0 0 2px rgba(35,65,47,.18)}
.crm-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}
.crm-filters{display:flex;gap:10px;flex-wrap:wrap}
.crm-lead{border-left:4px solid rgba(35,65,47,.08)}
.crm-lead.status-chip--new{border-left-color:#1d4ed8}
.crm-lead.status-chip--in_progress{border-left-color:#c2410c}
.crm-lead.status-chip--confirmed,.crm-lead.status-chip--done{border-left-color:#027a48}
.crm-lead.status-chip--cancelled,.crm-lead.status-chip--hidden{border-left-color:#6b7280}
.admin-media-grid--sortable .admin-media-card{cursor:grab}
.admin-media-grid--sortable .admin-media-card.is-dragging{opacity:.55;transform:scale(.98)}
.admin-media-grid--sortable .admin-media-card img{pointer-events:none}
@media (max-width:900px){.crm-toolbar{align-items:stretch}.crm-toolbar form{width:100%}}


/* v24 activity + crm collapse */
.button--sm{padding:8px 12px;font-size:13px}
.button--ghost{background:#fff;border:1px solid var(--line);color:#23412f}
.crm-lead__summary{display:flex;gap:12px;flex-wrap:wrap;color:#6d665b;font-size:14px}
.crm-lead__summary span{background:#f8f2e9;border-radius:999px;padding:7px 10px}
.crm-lead__body.is-collapsed{display:none}
.accordion-panel__head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}
.accordion-panel__head h3,.accordion-panel__head h4{margin:0}
.accordion-panel.is-collapsed .accordion-panel__body{display:none}
.activity-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.activity-bars{display:grid;gap:10px}
.activity-bar{display:grid;grid-template-columns:72px minmax(0,1fr) 42px;gap:10px;align-items:center}
.activity-bar div{height:10px;border-radius:999px;background:#efe7db;overflow:hidden}
.activity-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#23412f,#8fb89c)}
.activity-session{background:#fbf7f0;border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:14px}
.activity-session__meta{display:grid;gap:10px;margin:0 0 12px;color:#625a4f;font-size:14px}
.activity-sessions{display:grid;gap:14px}
.activity-hero__head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
@media (max-width:900px){.activity-columns{grid-template-columns:1fr}.accordion-panel__head{flex-direction:column}.crm-lead__summary{flex-direction:column}}

/* v41 activity refresh */
.activity-hero{background:linear-gradient(180deg,#fff,#f8f2e8)}
.activity-metrics .card{min-height:132px}
.activity-pagination{display:flex;justify-content:flex-end;margin-top:14px}
.activity-pagination__inner{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.activity-session{background:linear-gradient(180deg,#fff,#faf5ed);box-shadow:0 10px 30px rgba(34,41,30,.05)}
.activity-session .accordion-panel__body{padding-top:4px}
.activity-session__meta{grid-template-columns:repeat(2,minmax(0,1fr));background:#fff;border:1px solid #eee3d4;border-radius:16px;padding:14px}
.activity-session__meta span{display:block;min-width:0;overflow-wrap:anywhere}
.activity-session__head .muted{max-width:100%;overflow-wrap:anywhere}
.activity-sessions{grid-template-columns:repeat(2,minmax(0,1fr))}
.activity-columns > div{background:#fff;border:1px solid #eee3d4;border-radius:18px;padding:16px}
.activity-columns h4{margin:0 0 12px}
.activity-bars{max-height:360px;overflow:auto;padding-right:6px}
.activity-bar span,.activity-bar strong{font-size:13px}
.accordion-panel .accordion-panel__body{overflow:hidden}
.crm-lead__body{overflow:hidden}
@media (max-width:1100px){.activity-sessions{grid-template-columns:1fr}.activity-session__meta{grid-template-columns:1fr}}

/* v26 activity pro */
.activity-pro{background:linear-gradient(180deg,#fffdf8,#f7efe3)}
.activity-toolbar{align-items:center}
.activity-panel{background:linear-gradient(180deg,#fff,#fbf6ee);border:1px solid #eadfce;box-shadow:0 12px 30px rgba(41,43,31,.05)}
.activity-mini-metrics .card{min-height:96px;padding:14px}
.activity-mini-metrics strong{display:block;font-size:24px;margin-top:8px}
.flag-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:#f3eadb;border:1px solid #e5d7c1;font-size:13px;white-space:nowrap}
.lead-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid transparent}
.lead-badge--hot{background:#ffe2de;color:#8b2c1e;border-color:#f1b6ac}
.lead-badge--warm{background:#fff2da;color:#8a5a16;border-color:#ecd29d}
.lead-badge--cold{background:#e7f1ea;color:#25543a;border-color:#bfd7c8}
.activity-calendar{margin-top:14px;border:1px solid #eadfce;border-radius:18px;background:#fff;padding:14px}
.activity-calendar__head,.activity-calendar__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.activity-calendar__head span{font-size:12px;color:#857b6f;text-align:center;padding-bottom:4px}
.activity-calendar__day,.activity-calendar__empty{min-height:62px;border-radius:14px}
.activity-calendar__day{border:1px solid #eadfce;background:rgba(47,85,61,var(--intensity,.15));color:#1b2d22;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:10px;cursor:pointer;transition:.18s transform,.18s box-shadow,.18s border-color}
.activity-calendar__day strong{font-size:15px}
.activity-calendar__day small{opacity:.78}
.activity-calendar__day:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(32,51,39,.08)}
.activity-calendar__day.is-active{border-color:#23412f;box-shadow:0 0 0 2px rgba(35,65,47,.18)}
.activity-calendar__empty{background:transparent}
.activity-lists-grid{display:grid;grid-template-columns:1fr;gap:14px}
.activity-session__head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.activity-session h4{margin:0 0 6px}
.activity-session__meta strong{display:block;margin-bottom:4px;color:#2a2f26}
.activity-session__meta span{padding:12px;border-radius:14px;background:#fcfaf6;border:1px solid #efe2d2}
.activity-bars .muted{padding:10px 0}
@media (max-width:900px){.activity-calendar__day,.activity-calendar__empty{min-height:54px}.flag-badge{font-size:12px}}

/* v27 activity polish */
.activity-page-v2 .activity-shell--hero{background:linear-gradient(135deg,#fbf7f1 0%,#f4eee2 52%,#eef5ef 100%);border:1px solid #eadfce;box-shadow:0 20px 45px rgba(42,52,44,.08)}
.activity-shell__top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}
.activity-top-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.activity-kpis .activity-kpi{min-height:118px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(180deg,#fffdfa 0%,#f8f4ec 100%)}
.activity-kpi strong{font-size:36px;line-height:1;color:#213728}
.activity-kpi span{color:#6d756e;font-size:13px}
.activity-card{border:1px solid #ebdfcf;box-shadow:0 10px 26px rgba(38,47,40,.05)}
.activity-card__head,.activity-session__head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
.activity-card__head h3,.activity-session__head h4{margin:0}
.activity-card__head p,.activity-session__head p{margin:6px 0 0}
.activity-card__body,.activity-session__body{margin-top:16px}
.activity-card.is-collapsed .activity-card__body,.activity-session.is-collapsed .activity-session__body{display:none}
.activity-calendar-pro{margin-top:16px;border:1px solid #eadfce;border-radius:22px;padding:16px;background:linear-gradient(180deg,#fffefa 0%,#f8f4ec 100%)}
.activity-calendar-pro__header,.activity-calendar-pro__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.activity-calendar-pro__header{margin-bottom:10px}
.activity-calendar-pro__header span{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#6f736f;text-align:center;padding:4px 0}
.activity-calendar-pro__empty,.activity-calendar-pro__day{min-height:82px;border-radius:18px}
.activity-calendar-pro__empty{background:rgba(120,112,96,.05);border:1px dashed rgba(136,125,105,.12)}
.activity-calendar-pro__day{border:1px solid #e6d8c4;background:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:12px;transition:.16s transform,.16s box-shadow,.16s border-color;box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
.activity-calendar-pro__day:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(41,58,44,.08)}
.activity-calendar-pro__day strong{font-size:18px;color:#203126}
.activity-calendar-pro__day small{font-size:12px;color:#57625b}
.activity-calendar-pro__day.lv0{background:#fffdfa}
.activity-calendar-pro__day.lv1{background:linear-gradient(180deg,#f5fbf5 0%,#edf6ee 100%)}
.activity-calendar-pro__day.lv2{background:linear-gradient(180deg,#e4f2e6 0%,#d6ead8 100%);border-color:#c7dfcb}
.activity-calendar-pro__day.lv3{background:linear-gradient(180deg,#d0ead5 0%,#bfe0c7 100%);border-color:#aacfb4}
.activity-calendar-pro__day.is-active{border-color:#23412f;box-shadow:0 0 0 2px rgba(35,65,47,.18),0 10px 24px rgba(35,65,47,.12)}
.activity-calendar-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px;color:#68716b;font-size:12px}
.activity-calendar-legend span{display:flex;align-items:center;gap:7px}
.activity-calendar-legend i{display:inline-block;width:18px;height:10px;border-radius:999px;background:#eef4ef}
.activity-calendar-legend .lv1{background:#edf6ee}.activity-calendar-legend .lv2{background:#d6ead8}.activity-calendar-legend .lv3{background:#bfe0c7}
.flag-badge--rich{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;border:1px solid #eadfce;background:#fffdf9;max-width:100%}
.flag-badge--rich span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
.activity-mini-kpis .card strong{font-size:26px;display:block;margin-top:8px}
.activity-split{display:grid;grid-template-columns:1.15fr .85fr;gap:18px}
.activity-two-bars{display:grid;grid-template-columns:1fr;gap:14px}
.activity-session-grid{display:grid;gap:14px}
.activity-session{border:1px solid #eaddcb;border-radius:22px;padding:16px;background:linear-gradient(180deg,#fffefa 0%,#f7f3eb 100%)}
.activity-session__head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.activity-session__meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.activity-session__meta span{padding:12px;border-radius:16px;background:#fffdfa;border:1px solid #efe3d3;display:flex;flex-direction:column;gap:6px;min-width:0}
.activity-session__meta strong{font-size:12px;color:#667069;text-transform:uppercase;letter-spacing:.04em}
.activity-bar{display:grid;grid-template-columns:minmax(90px,150px) 1fr 44px;gap:12px;align-items:center;margin:10px 0}
.activity-bar > div{height:10px;border-radius:999px;background:#f0ede6;overflow:hidden}
.activity-bar > div i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#23412f 0%,#4d7758 100%)}
.activity-pagination__inner{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}
@media (max-width:1100px){.activity-split{grid-template-columns:1fr}.activity-session__meta{grid-template-columns:1fr}.flag-badge--rich span{max-width:120px}}
@media (max-width:700px){.activity-calendar-pro__header,.activity-calendar-pro__grid{gap:6px}.activity-calendar-pro__day,.activity-calendar-pro__empty{min-height:66px;padding:10px;border-radius:14px}.activity-kpi strong{font-size:28px}}

.sw--max{background:#1f6fff;color:#fff;position:relative}.sw--max::before{content:"M";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:11px;font-weight:800;color:#fff}


.booking-admin-preview{display:flex;flex-wrap:wrap;gap:10px}
.booking-admin-preview__item{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#f6f1e8;border:1px solid #eadfce;font-size:13px}
.booking-admin-preview__item.is-muted{opacity:.55}
.booking-admin-fields{align-items:start}
.booking-admin-field{display:grid;gap:14px;padding:18px;border:1px solid #eadfce;border-radius:18px;background:#fffdf9;box-shadow:0 10px 24px rgba(38,47,40,.04)}
.booking-admin-field__head{display:flex;gap:14px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}
.booking-admin-field__meta{margin-top:6px;font-size:12px;color:#7a715f;line-height:1.4}
.booking-admin-order{width:90px}
.booking-admin-field code{font-size:12px;background:#f5efe5;border-radius:8px;padding:2px 6px}

/* v48 cms navigation + animals editor + health */
.admin-nav{gap:14px;align-content:start}
.admin-nav__section{display:grid;gap:8px}
.admin-nav__section-title{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#8f8f8f;padding:0 6px}
.admin-nav__section--logout{margin-top:8px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
.admin-health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.admin-health-item{padding:14px;border-radius:16px;border:1px solid var(--line);background:#fcfaf6;display:grid;gap:6px}
.admin-health-item strong{font-size:15px}
.admin-health-item span{font-size:13px;color:#6d665b}
.admin-health-item code{font-size:12px;word-break:break-all;color:#6d665b}
.admin-health-item.is-ok{border-color:#cfe2d2;background:#f4fbf5}
.admin-health-item.is-warn{border-color:#f0cabd;background:#fff5f2}
.admin-checklist{display:grid;gap:10px}
.admin-checklist>div{padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fcfaf6}
.media-card{display:grid;gap:12px}
.media-card__preview{border-radius:16px;overflow:hidden;border:1px solid var(--line);background:#f7f2ea;aspect-ratio:4/3}
.media-card__preview img{width:100%;height:100%;object-fit:cover}
.media-card__meta{display:grid;gap:6px}
.media-card__path{font-size:13px;line-height:1.45;word-break:break-all}
.animals-preview-card{display:grid;grid-template-columns:220px 1fr;gap:18px;padding:18px;border-radius:20px;border:1px solid var(--line);background:linear-gradient(180deg,#fff,#f8f3ea)}
.animals-preview-card__button-wrap{display:flex;flex-direction:column;justify-content:center;gap:12px}
.button--animals-preview{justify-content:center}
.animals-preview-card__modal{padding:20px;border-radius:20px;background:#fff;border:1px solid var(--line);box-shadow:0 18px 40px rgba(0,0,0,.06)}
.animals-preview-card__eyebrow{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8f6c3d;margin-bottom:10px}
.animals-preview-card__modal h3{margin:0 0 12px;font-size:28px;line-height:1.1}
.animals-preview-card__text{line-height:1.65;color:#4c443b}
@media (max-width:900px){.animals-preview-card{grid-template-columns:1fr}.admin-health-grid{grid-template-columns:1fr}}
