/* rent.eusm.ru — стили сайта. Цвета задаются в админке и приходят CSS-переменными из base.html. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:Manrope,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--ground);font-size:16px;line-height:1.5}
a{color:var(--ink)}a:hover{color:var(--accent)}
img{max-width:100%}
h1,h2,h3{margin:0;letter-spacing:-.02em}
button,input,select,textarea{font:inherit;color:inherit}
[hidden]{display:none!important}
.wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.muted{color:var(--muted)}
.small{font-size:14px}
.page{padding:32px 0 64px}
.page h1{font-size:36px;font-weight:800;margin-bottom:24px}
.crumbs{font-size:14px;color:var(--muted);margin-bottom:8px}.crumbs a{color:var(--muted)}

/* Кнопки */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:8px;border:1px solid transparent;font-size:15px;font-weight:700;text-decoration:none;cursor:pointer;background:none;white-space:nowrap}
.btn--dark{background:var(--ink);color:#fff}.btn--dark:hover{color:#fff;opacity:.9}
.btn--outline{border-color:var(--border);background:var(--surface);font-weight:600}
.btn--ghost{border-color:#cfcfca;background:var(--surface);font-weight:600}
.btn--danger{border-color:#fecdd3;background:var(--surface);color:#9f1239;font-weight:600}.btn--danger:hover{color:#881337;background:#fff1f2}
.btn--lg{min-height:52px;padding:0 26px;font-size:16px}
.btn--block{width:100%}
.btn[disabled],.btn.is-disabled{background:#e4e4e0;color:#8a8a85;border-color:#e4e4e0;cursor:not-allowed}
.icon-btn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid var(--border);background:var(--surface);cursor:pointer;color:var(--ink)}
.badge{display:inline-block;background:var(--ink);color:#fff;border-radius:10px;padding:1px 8px;font-size:13px;font-weight:700;line-height:1.4}
.badge--accent{background:var(--accent)}

/* Шапка */
.hdr{background:var(--surface);border-bottom:1px solid var(--border)}
.hdr__in{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none}
.logo__mark{width:32px;height:32px;border-radius:6px;background:var(--ink);display:flex;align-items:center;justify-content:center}
.logo__img{height:32px;width:auto}
.logo__text{font-weight:800;font-size:18px}.logo__text span{font-weight:500;color:var(--muted)}
.hdr__nav{display:flex;gap:24px;font-size:15px;font-weight:500;flex-wrap:wrap}
.hdr__nav a{text-decoration:none}.hdr__nav a.is-active{color:var(--accent);font-weight:700}
.hdr__actions{display:flex;gap:12px;align-items:center}
.user-chip{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;border-radius:8px;background:#f0f0ed;text-decoration:none;font-weight:700;font-size:15px}
.avatar{width:28px;height:28px;border-radius:50%;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px}

/* Уведомления */
.toasts{position:fixed;right:16px;top:84px;z-index:60;display:flex;flex-direction:column;gap:8px;max-width:min(420px,calc(100vw - 32px))}
.toast{padding:12px 16px;border-radius:10px;background:var(--surface);border:1px solid var(--border);box-shadow:0 8px 24px rgba(0,0,0,.12);font-size:15px;font-weight:600}
.toast--success{background:#eef6ee;border-color:#b9d7ba;color:#166534}
.toast--error{background:#fff1f2;border-color:#fecdd3;color:#881337}
.toast--info{background:#f0f0ed}

/* Лендинг */
.hero{padding:88px 0 72px;display:flex;flex-wrap:wrap;gap:56px;align-items:center}
.hero__text{flex:1 1 480px;min-width:0}
.kicker{font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.hero h1{margin-top:16px;font-size:clamp(36px,5vw,56px);line-height:1.05;font-weight:800;letter-spacing:-.03em}
.hero p{margin:24px 0 0;font-size:19px;line-height:1.55;color:#4a4a46;max-width:560px}
.hero__cta{margin-top:36px;display:flex;gap:12px;flex-wrap:wrap}
.hero__img{flex:1 1 440px;min-width:0;aspect-ratio:4/3;border-radius:16px;background:#e6e6e2;overflow:hidden;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.hero__img img{width:100%;height:100%;object-fit:cover}
.band{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.section{padding:72px 0}
.section h2{font-size:36px;font-weight:800}
.section__head{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap}
.steps{margin-top:40px;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.step{padding:28px;border-radius:12px;background:var(--ground);display:flex;flex-direction:column;gap:10px}
.step__n{font-size:32px;font-weight:800;color:var(--accent)}
.step__t{font-size:19px;font-weight:700}
.step__d{font-size:15px;color:#4a4a46}
.tiles{margin-top:32px;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.tile{display:flex;flex-direction:column;text-decoration:none;background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.tile__img{height:160px;background:#e6e6e2;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px}
.tile__img img{width:100%;height:100%;object-fit:cover}
.tile__b{padding:20px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.tile__b b{font-size:18px}
.about{background:var(--ink);color:#fff}
.about__in{padding:80px 24px;display:flex;flex-wrap:wrap;gap:56px}
.about__in>div{flex:1 1 420px;min-width:0}
.about p{font-size:17px;line-height:1.6;color:#d4d4cf;white-space:pre-line}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.stat{padding:24px;border:1px solid #3a3a37;border-radius:12px}
.stat b{font-size:36px;font-weight:800;display:block}
.stat span{font-size:15px;color:#bdbdb7}
.about__img{border-radius:12px;overflow:hidden;margin-top:24px}

/* Каталог */
.cat{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start}
.tree{flex:1 1 260px;max-width:300px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px}
.tree__h{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:4px 8px 12px}
.tree a{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:40px;padding-right:10px;border-radius:8px;text-decoration:none;font-size:15px}
.tree a.is-parent{font-weight:700}
.tree a.is-active{background:var(--ink);color:#fff;font-weight:600}
.tree a span:last-child{font-size:13px;opacity:.75}
.cat__main{flex:999 1 560px;min-width:0}
.cat__bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.cat__bar h2{font-size:22px;font-weight:800}
.seg{display:flex;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:4px;gap:4px}
.seg button{min-height:40px;display:flex;align-items:center;gap:6px;padding:0 12px;border:0;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;background:transparent}
.seg button[aria-pressed="true"]{background:var(--ink);color:#fff}
.search{display:flex;gap:8px}
.search input{height:44px;padding:0 12px;border:1px solid #cfcfca;border-radius:8px;min-width:0}
.items{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.card__img{height:180px;background:#e6e6e2;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px;overflow:hidden}
.card__img img{width:100%;height:100%;object-fit:cover}
.card__b{padding:20px;display:flex;flex-direction:column;gap:12px;flex:1}
.card__grp{font-size:13px;color:var(--muted)}
.card h3{font-size:19px;font-weight:700;line-height:1.25;margin-top:4px}
.specs{margin:0;display:flex;flex-direction:column;gap:6px;font-size:14px}
.specs div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dotted #dcdcd7;padding-bottom:4px}
.specs dt{color:var(--muted)}.specs dd{margin:0;font-weight:600;text-align:right}
.card__desc{margin:0;font-size:14px;color:#4a4a46}
.card__foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:4px}
.price b{font-size:20px;font-weight:800;display:block}.price span{font-size:12px;color:var(--muted)}
.items--list{grid-template-columns:1fr;gap:12px}
.items--list .card{flex-direction:row;flex-wrap:wrap;padding:16px;gap:20px}
.items--list .card__img{flex:0 0 180px;height:130px;border-radius:8px}
.items--list .card__b{padding:0;flex:1 1 300px;min-width:0}
.items--list .specs{flex-direction:row;flex-wrap:wrap;gap:6px 16px}
.items--list .specs div{border:0;padding:0;gap:4px}
.items--list .specs dt::after{content:":"}
.empty{background:var(--surface);border:1px dashed #cfcfca;border-radius:12px;padding:48px;text-align:center;color:var(--muted)}

/* Модальное окно */
.modal{position:fixed;inset:0;z-index:50;background:rgba(26,26,26,.55);display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}
.dialog{width:min(600px,100%);background:var(--surface);border-radius:16px;box-shadow:0 24px 64px rgba(0,0,0,.25);overflow:hidden;margin:auto}
.dialog__head{padding:24px 28px 20px;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-bottom:1px solid var(--border)}
.dialog__head h2{font-size:22px;font-weight:800;margin-top:4px}
.dialog__body{padding:20px 28px 8px}
.dialog__foot{margin-top:16px;padding:20px 28px 24px;background:var(--ground);border-top:1px solid var(--border)}
.dialog__sum{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}
.dialog__sum b.total{font-size:28px;font-weight:800}
.dialog__btns{margin-top:18px;display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}
.errors{margin:12px 0 0;padding:12px 14px;border-radius:8px;background:#fff1f2;border:1px solid #fecdd3;color:#881337;font-size:14px}
.errors ul{margin:0;padding-left:18px}

/* Календарь */
.cal__nav{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cal__nav b{font-size:18px}
.cal__nav button{width:44px;height:44px;border-radius:8px;border:1px solid var(--border);background:var(--surface);display:flex;align-items:center;justify-content:center;cursor:pointer}
.cal__nav button:disabled{color:#c4c4bf;cursor:not-allowed}
.cal__wd,.cal__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.cal__wd{margin-top:16px;font-size:13px;font-weight:600;color:var(--muted);text-align:center}
.cal__wd .we{color:var(--wk-fg)}
.cal__grid{margin-top:8px}
.day{position:relative;height:52px;width:100%;border-radius:8px;font-size:16px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--border);background:var(--surface);font-weight:600;cursor:pointer;padding:0}
.day:hover:not(:disabled){border-color:var(--ink)}
.day--pad{visibility:hidden}
.day--past{border:0;background:transparent;color:#b5b5b0;cursor:default;font-weight:500}
.day--off{border:0;background:var(--wk-bg);color:var(--wk-fg);cursor:not-allowed}
.day--nw{border:0;background:var(--nw-bg);color:var(--nw-fg);cursor:not-allowed}
.day--busy{border-color:#cfcfca;background:var(--busy-bg);color:#6b6b66;cursor:not-allowed}
.day--busy::before,.day--busy::after{content:"";position:absolute;left:50%;top:50%;width:70%;height:1.5px;background:#a3a39e;transform:translate(-50%,-50%) rotate(45deg)}
.day--busy::after{transform:translate(-50%,-50%) rotate(-45deg)}
.day--sel{border:0;background:var(--accent);color:#fff;font-weight:800}
.day--today:not(.day--sel){box-shadow:inset 0 0 0 2px var(--ink)}
.cal__legend{margin-top:16px;display:flex;flex-wrap:wrap;gap:8px 18px;font-size:13px;color:#4a4a46}
.cal__legend span{display:inline-flex;align-items:center;gap:6px}
.sw{width:14px;height:14px;border-radius:4px;display:inline-block}
.cal__hint{margin-top:10px;font-size:13px;color:#4a4a46}
kbd{font:inherit;font-size:12px;font-weight:700;padding:2px 7px;border:1px solid #cfcfca;border-bottom-width:2px;border-radius:5px;background:var(--surface)}

/* Корзина */
.two{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start}
.two__main{flex:999 1 600px;min-width:0;display:flex;flex-direction:column;gap:12px}
.two__side{flex:1 1 300px;max-width:380px}
.panel{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px}
.panel h2{font-size:20px;font-weight:800}
.buyer-pick{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 20px;margin-bottom:8px}
.buyer-pick label{flex:1 1 360px}
.row-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:0 20px}
.check{display:flex;align-items:center;gap:12px;font-weight:600;cursor:pointer;min-height:44px}
.check input{width:20px;height:20px;accent-color:var(--ink)}
.cline{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.cline__img{flex:0 0 140px;height:104px;border-radius:8px;background:#e6e6e2;overflow:hidden;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px}
.cline__img img{width:100%;height:100%;object-fit:cover}
.cline__info{flex:1 1 260px;min-width:0;display:flex;flex-direction:column;gap:6px}
.cline__info h3{font-size:18px;font-weight:700}
.cline__sum{flex:0 0 150px;text-align:right;display:flex;flex-direction:column;gap:4px;align-items:flex-end}
.cline__sum b{font-size:20px;font-weight:800}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{font-size:13px;font-weight:600;padding:4px 10px;border-radius:6px;background:#f6ede3;color:#7c2d12}
.chip--plain{background:#f0f0ed;color:var(--ink)}
.chip--bad{background:#fff1f2;color:#9f1239;border:1px solid #fecdd3;text-decoration:line-through;font-weight:700}
.linkbtn{border:0;background:none;padding:0;font-weight:600;font-size:14px;text-decoration:underline;cursor:pointer;align-self:flex-start;min-height:32px}
.sumrow{display:flex;justify-content:space-between;font-size:15px;gap:12px}
.sumrow b.big{font-size:26px;font-weight:800}
.hr{height:1px;background:var(--border);margin:4px 0}
.side-stack{display:flex;flex-direction:column;gap:16px}

/* Формы */
.fld{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;min-width:0}
.fld input,.fld select,.fld textarea,select.inp,input.inp,textarea.inp{height:46px;padding:0 12px;border:1px solid #cfcfca;border-radius:8px;font-size:15px;font-weight:500;background:var(--surface);min-width:0;width:100%}
.fld textarea,textarea.inp{height:auto;padding:12px;resize:vertical}
.fld .err,.err{color:#9f1239;font-size:13px;font-weight:600}
.fld .help{font-size:12px;font-weight:500;color:var(--muted)}
.fld .help ul{margin:4px 0 0;padding-left:16px}
.form{display:flex;flex-direction:column;gap:14px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.grid2 .full{grid-column:1/-1}
@media (max-width:560px){.grid2{grid-template-columns:1fr}}

/* Вход */
.auth{min-height:calc(100vh - 160px);display:flex;align-items:center;justify-content:center;padding:32px 16px}
.auth .dialog{width:min(460px,100%);padding:28px}
.tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;background:#f0f0ed;border-radius:10px;margin:20px 0}
.tabs a{min-height:44px;display:flex;align-items:center;justify-content:center;border-radius:8px;font-weight:700;text-decoration:none;color:#4a4a46}
.tabs a.is-active{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}

/* Личный кабинет */
.ptabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:24px}
.ptabs a{min-height:48px;padding:0 20px;display:flex;align-items:center;text-decoration:none;font-size:16px;font-weight:600;color:#4a4a46;border-bottom:3px solid transparent;margin-bottom:-1px}
.ptabs a.is-active{color:var(--ink);font-weight:800;border-bottom-color:var(--ink)}
.pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.pills a{min-height:40px;padding:0 14px;display:inline-flex;align-items:center;gap:6px;border-radius:20px;font-size:14px;font-weight:600;text-decoration:none;border:1px solid #cfcfca;background:var(--surface)}
.pills a.is-active{border-color:var(--ink);background:var(--ink);color:#fff}
.ocard{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:18px 20px;display:flex;flex-direction:column;gap:10px}
.ocard__top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.ocard__top>div{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.ocard__no{font-size:17px;font-weight:800}
.ocard__sum{font-size:18px;font-weight:800}
.note{background:#fff7ed;border:1px solid #f5d0a9;border-radius:8px;padding:12px 14px;font-size:14px;color:#7c2d12;white-space:pre-line}
.st{font-size:13px;font-weight:700;padding:4px 10px;border-radius:6px;white-space:nowrap}
.st-new{background:#f0f0ed;color:var(--ink);border:1px solid #cfcfca}
.st-confirmed{background:#e8eefc;color:#1e3a8a;border:1px solid #bfcdf5}
.st-changes{background:#fff7ed;color:#7c2d12;border:1px solid #f5d0a9}
.st-done{background:#eef6ee;color:#166534;border:1px solid #b9d7ba}
.st-cancelled{background:var(--ground);color:var(--muted);border:1px solid var(--border);text-decoration:line-through}
.buyer{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px 20px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.buyer__ico{width:44px;height:44px;flex:0 0 44px;border-radius:10px;background:#f0f0ed;display:flex;align-items:center;justify-content:center}
.buyer__info{flex:1 1 240px;min-width:0}
.buyer__name{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-weight:700}
.tag{font-size:12px;font-weight:700;padding:2px 8px;border-radius:6px;background:#f0f0ed;color:#4a4a46}
.bcard{background:var(--surface);border:2px solid var(--ink);border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:16px}
.bcard__head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.bcard__head h3{font-size:17px;font-weight:800}
.radio-seg{display:flex;gap:4px;padding:4px;background:#f0f0ed;border-radius:8px}
.radio-seg label{display:flex;align-items:center;min-height:36px;padding:0 12px;border-radius:6px;font-size:13px;font-weight:700;cursor:pointer;color:#4a4a46}
.radio-seg input{position:absolute;opacity:0;pointer-events:none}
.radio-seg label:has(input:checked){background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.radio-seg label:has(input:focus-visible){outline:2px solid var(--ink)}
.bcard__foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--border)}
.bcard__foot>div{display:flex;gap:10px;flex-wrap:wrap}

/* Панель менеджера */
.mgr{display:flex;flex-wrap:wrap;min-height:100vh}
.mgr__nav{flex:1 1 220px;max-width:250px;background:var(--ink);color:#fff;padding:20px 14px;display:flex;flex-direction:column;gap:4px}
.mgr__nav .logo__text{color:#fff;padding:6px 10px 18px}.mgr__nav .logo__text span{color:#bdbdb7}
.mgr__nav a{display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;color:#e5e5e0;text-decoration:none;font-size:15px}
.mgr__nav a.is-active{background:var(--surface);color:var(--ink);font-weight:700}
.mgr__nav a:hover:not(.is-active){background:#2c2c2a;color:#fff}
.mgr__main{flex:999 1 640px;min-width:0;padding:28px 28px 56px}
.mgr__main h1{font-size:30px;font-weight:800;margin-bottom:20px}
.olist{display:flex;flex-direction:column;gap:8px}
.orow{display:grid;grid-template-columns:90px 1fr auto auto;gap:8px 16px;align-items:center;padding:14px 16px;border-radius:10px;background:var(--surface);border:1px solid var(--border);text-decoration:none}
.orow:hover{border-color:var(--ink);color:var(--ink)}
.orow b{font-size:16px}
@media (max-width:700px){.orow{grid-template-columns:1fr auto}}
.alert{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:10px;background:#fff1f2;border:1px solid #fecdd3;color:#881337;font-size:14px}
.conflict{font-size:13px;font-weight:700;color:#9f1239}
.events{font-size:13px;color:#4a4a46;display:flex;flex-direction:column;gap:6px}
.events div{display:flex;gap:10px;flex-wrap:wrap}
.events time{color:var(--muted);min-width:110px}
.pre{white-space:pre-line}

/* Подвал */
.ftr{background:var(--surface);border-top:1px solid var(--border)}
.ftr__in{padding:48px 24px;display:flex;flex-wrap:wrap;gap:40px;justify-content:space-between;font-size:15px;color:#4a4a46}
.ftr__in>div{display:flex;flex-direction:column;gap:8px}
.ftr__title{font-weight:800;color:var(--ink);font-size:17px}
.ftr__h{font-weight:700;color:var(--ink)}

@media (max-width:640px){
  .page h1{font-size:28px}
  .section h2{font-size:28px}
  .dialog__head,.dialog__body,.dialog__foot{padding-left:16px;padding-right:16px}
  .day{height:44px;font-size:15px}
  .cline__sum{flex-basis:100%;align-items:flex-start;text-align:left}
}

/* Панель управления: общие элементы */
.mgr__foot{margin-top:auto;display:flex;flex-direction:column;gap:4px;padding-top:16px;border-top:1px solid #3a3a37}
.mgr__head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.mgr__head h1{margin:0}
.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
.filters input,.filters select{height:44px;padding:0 12px;border:1px solid #cfcfca;border-radius:8px;background:var(--surface);min-width:0}
.tbl-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--border);border-radius:12px}
.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th{text-align:left;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);padding:12px 14px;border-bottom:1px solid var(--border);white-space:nowrap}
.tbl td{padding:10px 14px;border-bottom:1px solid var(--border);vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}
.tbl tr:hover td{background:#fafaf8}
.tbl .num{text-align:right;white-space:nowrap}
.tbl .act{text-align:right;white-space:nowrap}
.thumb{width:64px;height:44px;border-radius:6px;background:#e6e6e2;object-fit:cover;display:block}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:middle}
.dot--on{background:#16a34a}.dot--off{background:#a3a39e}
.role{font-size:12px;font-weight:700;padding:3px 8px;border-radius:6px;white-space:nowrap}
.role-admin{background:#1a1a1a;color:#fff}.role-manager{background:#e8eefc;color:#1e3a8a}.role-client{background:#f0f0ed;color:#4a4a46}
.pform{display:flex;flex-direction:column;gap:20px;max-width:880px}
.psec{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px 24px;display:flex;flex-direction:column;gap:14px}
.psec>h2{font-size:18px;font-weight:800}
.psec>.muted{margin-top:-8px}
.check-row{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;min-height:44px;cursor:pointer}
.check-row input{width:20px;height:20px;accent-color:var(--ink)}
.spec-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:center}
.spec-row input[type=text]{height:44px;padding:0 12px;border:1px solid #cfcfca;border-radius:8px;width:100%;min-width:0}
.colors{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.color-f{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:600;padding:8px;border:1px solid var(--border);border-radius:8px}
.color-f input[type=color]{width:48px;height:36px;padding:2px;border:1px solid #cfcfca;border-radius:6px;background:var(--surface);flex:0 0 48px;cursor:pointer}
.inline-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) 90px auto;gap:10px;align-items:center}
.inline-row input{height:44px;padding:0 12px;border:1px solid #cfcfca;border-radius:8px;width:100%;min-width:0}
.sticky-bar{position:sticky;bottom:0;background:var(--ground);padding:12px 0;display:flex;gap:12px;flex-wrap:wrap;border-top:1px solid var(--border);z-index:5}
.cal-year{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.cal-month h3{font-size:16px;font-weight:800;margin-bottom:8px}
.cal-day{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px dotted var(--border);font-size:14px}
.cal-day:last-child{border-bottom:0}
.cal-day__d{font-weight:800;width:56px}
.cal-day__k{font-size:12px;font-weight:700;padding:2px 8px;border-radius:6px}
.k-holiday{background:var(--wk-bg);color:var(--wk-fg)}.k-nonworking{background:var(--nw-bg);color:var(--nw-fg)}
.cal-day form{margin-left:auto}
.mini-x{width:32px;height:32px;border-radius:6px;border:1px solid var(--border);background:var(--surface);cursor:pointer;display:flex;align-items:center;justify-content:center;color:#9f1239}
@media (max-width:640px){.spec-row,.inline-row{grid-template-columns:1fr}}

/* Виджет картинки в стиле сайта */
.img-paste{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap;padding:12px;border:1px dashed #cfcfca;border-radius:10px;outline:none;background:var(--surface)}
.img-paste:focus{border-color:var(--ink);box-shadow:0 0 0 2px rgba(0,0,0,.08)}
.img-paste.is-drag{border-style:solid;border-color:var(--accent)}
.img-paste__preview{flex:0 0 180px;height:120px;border-radius:8px;background:#e6e6e2;display:flex;align-items:center;justify-content:center;overflow:hidden}
.img-paste__preview img{max-width:100%;max-height:100%;object-fit:contain}
.img-paste__empty{font-size:13px;color:var(--muted)}
.img-paste__body{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1 1 220px}
.img-paste__buttons{display:flex;gap:8px;flex-wrap:wrap}
.img-paste__buttons .button{min-height:40px;padding:0 14px;border-radius:8px;border:1px solid #cfcfca;background:var(--surface);font-size:14px;font-weight:600;cursor:pointer}
.img-paste__buttons .img-paste__paste{background:var(--ink);color:#fff;border-color:var(--ink)}
.img-paste__hint,.img-paste__file{font-size:12px;font-weight:500;color:var(--muted);word-break:break-all}
.img-paste__input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.img-paste__msg{font-size:12px;color:#9f1239;min-height:1em}
.img-paste__clear{font-size:13px;font-weight:500;display:flex;gap:6px;align-items:center}
.tbl td:has(.dot),.cal-day__k{white-space:nowrap}

/* Отчёты */
.occ{display:flex;flex-direction:column;gap:14px;margin-bottom:16px}
.occ__head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.tl-wrap{overflow-x:auto;padding-bottom:4px}
.tl{display:grid;grid-template-columns:repeat(42,minmax(24px,1fr));gap:2px;min-width:1050px}
.tl-h{display:flex;flex-direction:column;align-items:center;font-size:11px;color:var(--muted);line-height:1.2;padding-bottom:2px}
.tl-h b{font-size:12px;color:var(--ink)}
.tl-h.is-off b,.tl-h.is-off span:last-child{color:var(--wk-fg)}
.tl-h.is-today b{background:var(--ink);color:#fff;border-radius:4px;padding:0 4px}
.tl-m{height:13px;font-weight:700;color:var(--ink)!important}
.tl-c{height:22px;border-radius:4px;background:#f0f0ed}
.tl-c.is-off{background:var(--wk-bg)}
.tl-res{background:#1e3a8a!important}
.tl-pend{background:repeating-linear-gradient(45deg,#f59e0b,#f59e0b 4px,#fcd34d 4px,#fcd34d 8px)!important}
.tl-both{background:#be123c!important}
.tl-sw{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.chip--res{background:#e8eefc;color:#1e3a8a}
.stats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:16px}
.stats-row b{font-size:24px;font-weight:800;display:block;margin-top:4px}
