/* Мускатный кит — смены и заявки. Костяной фон, асфальт вместо чёрного, акцент Tahitian Teal. Шрифт Inter. */
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff') format('woff'); font-weight: 400 700; font-style: normal; font-display: swap; }
:root {
  --bg: #EFEDE3;            /* Paper */
  --surface: #F8F7F2;       /* карточки — чуть светлее бумаги */
  --surface-2: #E7E4D8;     /* нажатое, подложки */
  --line: #DAD6C8; --line-2: #E6E3D7;
  --ink: #302F2C;           /* Asphalt */
  --ink-2: #66635B; --ink-3: #9A968A;
  --primary: #302F2C; --primary-hover: #1E1D1B; --on-primary: #F3F1E8;
  --teal: #00899B;          /* Pantone 17-4725 Tahitian Teal */
  --teal-ink: #00697A; --teal-soft: #D2E5E2;
  --ok: #00697A;  --ok-soft: #D6E8E4;
  --wait: #8E6417; --wait-soft: #F0E3C4;
  --gap: #A5443A; --gap-soft: #F1DCD5;
  --k-morning: #EADCAE; --k-morning-ink: #5A4610;
  --k-day: #C9E1DD;     --k-day-ink: #0A5762;
  --k-evening: #4A4842; --k-evening-ink: #F3F1E8;
  --r: 10px; --r-lg: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--font); font-feature-settings: 'tnum' 1, 'cv11' 1; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal-ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
[hidden] { display: none !important; }
::selection { background: var(--teal-soft); }
.art path, svg.art path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ---------- каркас ---------- */
.shell { min-height: 100vh; min-height: 100dvh; }
.side { display: none; }
.top { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 12px 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { flex: none; width: 36px; height: 12.4px; }
.logo span { font-weight: 600; font-size: 11px; letter-spacing: .26em; white-space: nowrap; }
.top .logo span { display: none; }
.top .today-label { display: none; }
.locbtn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13px; margin-left: 4px; min-width: 0; }
.locbtn i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }
.locbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locbtn svg { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
.locbtn:hover { border-color: var(--ink-3); }
.top .spacer { flex: 1; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.bell:hover { background: var(--surface-2); }
.bell svg { width: 22px; height: 22px; }
.bell b { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--bg); }
.hello { display: flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; color: inherit; }
.hello .nm { display: none; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; color: var(--on-primary); background: var(--primary); }
.main { padding: 18px 16px calc(92px + var(--safe-b)); max-width: 1360px; margin: 0 auto; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
.tabs a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px; border-radius: 10px; text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 500; }
.tabs a svg { width: 22px; height: 22px; }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after { content: ''; position: absolute; top: -6px; width: 22px; height: 2px; border-radius: 2px; background: var(--teal); }
.cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 600; margin-left: auto; }
.tabs .cnt { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; }

@media (min-width: 1000px) {
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: 64px 1fr; }
  .side { grid-row: 1 / 3; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 24px 16px 20px; background: var(--surface); border-right: 1px solid var(--line); }
  .side .logo { flex-direction: column; align-items: center; gap: 9px; margin: 4px 0 30px; }
  .side .logo svg { width: 46px; height: 16px; }
  .side .logo span { font-size: 12px; letter-spacing: .3em; padding-left: .3em; }
  .side a.nav { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: var(--r); text-decoration: none; color: var(--ink-2); font-weight: 500; }
  .side a.nav svg { width: 20px; height: 20px; }
  .side a.nav:hover { background: var(--bg); color: var(--ink); }
  .side a.nav[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
  .side a.nav[aria-current="page"] .cnt { background: var(--teal); }
  /* иллюстрация «врастает» в низ панели: арка-лепнина и линия, уходящая за край */
  .side .deco { position: relative; margin: auto -16px -20px; height: 250px; overflow: hidden; pointer-events: none; flex: none; }
  .side .deco .frame { position: absolute; left: 50%; bottom: -2px; width: 156px; height: 226px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 78px 78px 0 0; }
  .side .deco .frame::before { content: ''; position: absolute; top: 7px; right: 7px; bottom: -2px; left: 7px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 71px 71px 0 0; }
  .side .deco svg { position: absolute; left: 50%; bottom: -34px; width: 164px; height: auto; transform: translateX(-56%); color: var(--ink-2); overflow: visible; }
  .side .deco path { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .side .deco path.eye { stroke: var(--teal); stroke-width: 2.2; }
  .side .deco.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.45, .05, .25, 1) forwards; }
  .side .deco.draw path:nth-child(2) { animation-delay: .35s; } .side .deco.draw path:nth-child(3) { animation-delay: 1.6s; animation-duration: .7s; }
  .side .deco.draw path:nth-child(4) { animation-delay: .9s; } .side .deco.draw path:nth-child(5) { animation-delay: 1.1s; }
  .side .deco.draw .frame { animation: fadein 1.2s ease-out; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .top { height: 64px; padding: 0 28px; }
  .top .logo { display: none; }
  .top .today-label { display: inline; color: var(--ink-2); margin-left: 6px; }
  .hello .nm { display: inline; }
  .tabs { display: none; }
  .main { padding: 28px 32px 48px; width: 100%; }
}

/* ---------- заголовки ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-bottom: 2px; }
h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin: 0; font-weight: 700; }
h2 { font-size: 16px; line-height: 1.3; margin: 0 0 12px; font-weight: 600; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.money { font-weight: 600; }

/* ---------- элементы ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--primary); color: var(--on-primary); font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.btn.teal { background: var(--teal); color: #fff; }
.btn.teal:hover { background: var(--teal-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface); border-color: var(--ink-3); }
.btn.danger { background: transparent; color: var(--gap); border: 1px solid #E4C3BB; }
.btn.danger:hover { background: var(--gap-soft); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.icon { width: 42px; padding: 0; }
.btn.sm.icon { width: 34px; }
.btn.block { width: 100%; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--teal-ink); cursor: pointer; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .field .lbl { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.input { height: 44px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); outline: none; width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 76px; padding: 10px 14px; resize: vertical; }
.input::placeholder { color: var(--ink-3); }
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 137, 155, .14); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A968A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 36px; }
.row { display: flex; gap: 10px; align-items: center; }
.wrap { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip .cnt { margin: 0; height: 18px; min-width: 18px; font-size: 10.5px; }
.seg { display: inline-flex; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.seg .cnt { margin: 0; height: 18px; min-width: 18px; font-size: 10.5px; }
.err { background: var(--gap-soft); color: #7E2E25; border-radius: var(--r); padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.note { background: var(--bg); border-radius: var(--r); padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.empty { text-align: center; padding: 26px 12px; color: var(--ink-3); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--wait-soft); color: var(--wait); }
.badge.off { background: var(--gap-soft); color: var(--gap); }
.badge.ink { background: var(--primary); color: var(--on-primary); }
.badge svg { width: 13px; height: 13px; }

/* ---------- вход ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.auth-art { display: none; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; position: relative; overflow: hidden; }
.auth-form .inner { width: 100%; max-width: 360px; position: relative; z-index: 1; }
.auth .logo { flex-direction: column; gap: 10px; margin-bottom: 34px; align-items: center; }
.auth .logo svg { width: 60px; height: 21px; }
.auth .logo span { font-size: 13px; letter-spacing: .32em; padding-left: .32em; }
.auth h1 { font-size: 30px; margin-bottom: 24px; text-align: center; letter-spacing: -.025em; }
.auth .lead { margin: -12px 0 24px; color: var(--ink-2); text-align: center; }
.auth .or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-3); font-size: 12px; }
.auth .or::before, .auth .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-form .ghost-art { position: absolute; right: -50px; bottom: -120px; width: 170px; color: var(--line); pointer-events: none; }
.auth .btn.ghost { background: var(--surface); }
.auth-form .ghost-art svg { width: 100%; }
.pw { position: relative; }
.pw .input { padding-right: 96px; }
.pw input::-ms-reveal, .pw input::-ms-clear { display: none; }
.pw button { position: absolute; right: 6px; top: 6px; height: 32px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 13px; padding: 0 10px; border-radius: 999px; }
.pw button:hover { background: var(--surface-2); }
@media (min-width: 900px) {
  .auth { grid-template-columns: minmax(380px, 46%) 1fr; }
  .auth-art { display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; background: var(--primary); color: var(--on-primary); position: relative; overflow: hidden; }
  .auth-art .logo { flex-direction: row; margin: 0; color: var(--on-primary); align-items: center; }
  .auth-art .logo svg { width: 46px; height: 16px; }
  .auth-art .logo span { font-size: 12px; }
  .auth-art .arches { display: flex; gap: 22px; align-items: center; justify-content: center; flex: 1; padding: 40px 0 28px; }
  .auth-art .arch { position: relative; width: 30%; max-width: 210px; aspect-ratio: 200 / 340; border: 1px solid rgba(243, 241, 232, .28); border-radius: 999px 999px 10px 10px; padding: 18% 10% 6%; color: var(--on-primary); }
  .auth-art .arch::before { content: ''; position: absolute; top: 7px; right: 7px; bottom: 7px; left: 7px; border: 1px solid rgba(243, 241, 232, .12); border-radius: 999px 999px 6px 6px; }
  .auth-art .arch:nth-child(2) { transform: translateY(-36px); color: var(--teal); }
  .auth-art .arch svg { position: absolute; left: 12%; right: 12%; top: 14%; bottom: 6%; width: 76%; height: 80%; }
  .auth-art .quote { font-size: 13px; color: rgba(243, 241, 232, .6); max-width: 300px; }
  .auth-form .ghost-art { display: none; }
}

/* ---------- выбор ресторана ---------- */
.pick { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 28px 18px 40px; }
.pick .logo { flex-direction: column; gap: 9px; }
.pick .logo svg { width: 52px; height: 18px; }
.pick .logo span { font-size: 12px; letter-spacing: .32em; padding-left: .32em; }
.pick h1 { font-size: 38px; letter-spacing: -.03em; text-align: center; margin: 40px 0 8px; }
.pick .lead { color: var(--ink-2); text-align: center; margin: 0 0 34px; }
.spots { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 34px; justify-content: center; width: 100%; }
.spot { position: relative; display: flex; flex-direction: column; align-items: center; border: 0; background: none; padding: 0; cursor: pointer; text-align: center; color: var(--ink); }
.spot .arch { position: relative; width: 100%; aspect-ratio: 260 / 330; border-radius: 999px 999px 18px 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .2s; }
.spot .arch::before { content: ''; position: absolute; top: 9px; right: 9px; bottom: 9px; left: 9px; border: 1px solid var(--line-2); border-radius: 999px 999px 12px 12px; pointer-events: none; }
.spot .arch .art { position: absolute; left: 20%; right: 20%; top: 10%; bottom: 36%; color: var(--ink); opacity: .82; }
.spot .arch .art svg { width: 100%; height: 100%; }
.spot picture { display: contents; }
.spot .whale { position: absolute; left: 50%; top: 50%; width: 104%; max-width: none; height: auto; transform: translateX(-50%) rotate(-5deg); transition: transform .5s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 14px 12px rgba(48, 47, 44, .22)); pointer-events: none; }
.spot:nth-child(2) .whale { transform: translateX(-50%) scaleX(-1) rotate(-5deg); }
.spot .wave { position: absolute; left: 0; right: 0; bottom: 9%; height: 16px; color: var(--teal); }
.spot .meta { margin-top: 18px; display: flex; flex-direction: column; align-items: center; }
.spot .meta b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.spot .meta .addr { display: block; font-size: 13px; color: var(--ink-3); min-height: 20px; }
.spot .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 500; transition: background .2s; }
.spot .go svg { width: 16px; height: 16px; transition: transform .2s; }
.spot .last { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2; }
.spot:hover .arch, .spot:focus-visible .arch { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(48, 47, 44, .35); border-color: var(--ink-3); }
.spot:hover .whale { transform: translateX(-50%) translateY(-10px) rotate(-8deg); }
.spot:nth-child(2):hover .whale { transform: translateX(-50%) translateY(-10px) scaleX(-1) rotate(-8deg); }
.spot:hover .go { background: var(--teal); }
.spot:hover .go svg { transform: translateX(3px); }
.spot:focus-visible { outline: none; }
.pick .foot { margin-top: 36px; color: var(--ink-3); font-size: 13px; text-align: center; }
@media (max-width: 560px) {
  .pick h1 { font-size: 28px; margin-top: 28px; }
  .spots { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spot .meta b { font-size: 17px; }
  .spot .go { height: 32px; padding: 0 12px; font-size: 12px; }
  .spot .whale { width: 94%; }
  .filters .chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .filters .chips .chip { flex: none; }
}

/* ---------- график: сетка как табель ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.week { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.week button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.week button:hover { background: var(--bg); }
.week button svg { width: 16px; height: 16px; }
.week b { min-width: 128px; text-align: center; font-weight: 600; font-size: 13px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); margin-left: auto; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend .k-morning { background: var(--k-morning); } .legend .k-day { background: var(--k-day); } .legend .k-evening { background: var(--k-evening); }
.legend .k-wait { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink-3); position: relative; }
.legend .k-wait::after { content: ''; position: absolute; top: 2px; right: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
@media (max-width: 999px) { .legend { margin-left: 0; width: 100%; } }

.gridwrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; -webkit-overflow-scrolling: touch; max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); }
.sched { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 820px; table-layout: fixed; }
.sched col.who { width: 210px; }
.sched th, .sched td { border-bottom: 1px solid var(--line-2); border-left: 1px solid var(--line-2); padding: 0; }
.sched th:first-child, .sched td:first-child { border-left: 0; }
.sched thead th { position: sticky; top: 0; z-index: 3; background: var(--surface); padding: 12px 6px 10px; font-weight: 500; border-bottom: 1px solid var(--line); text-align: center; }
.sched thead th:first-child { left: 0; z-index: 4; text-align: left; padding-left: 18px; color: var(--ink-3); font-size: 12px; }
.sched .dh { display: flex; flex-direction: column; align-items: center; line-height: 1.15; gap: 3px; }
.sched .dh small { font-size: 12px; color: var(--ink-3); font-weight: 500; text-transform: capitalize; }
.sched .dh b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.sched .dh b em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.sched th.today { background: var(--teal); }
.sched th.today .dh small, .sched th.today .dh b, .sched th.today .dh b em { color: #fff; }
.sched th.past .dh b { color: var(--ink-3); }
.sched td.today { background: rgba(0, 137, 155, .05); }
.sched td.name { position: sticky; left: 0; z-index: 2; background: var(--surface); padding: 8px 12px 8px 18px; }
.sched td.name .nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sched td.name .av { width: 32px; height: 32px; font-size: 11px; }
.sched td.name .tx b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched td.name .tx span { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched tr.me td.name { box-shadow: inset 3px 0 0 var(--teal); }
.sched tr.me td.name .av { background: var(--teal); }
.sched tr.grp td { background: var(--bg); padding: 7px 18px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-left: 0; }
.sched tr.grp td .gn { position: sticky; left: 18px; }
.sched tr.grp td .gn em { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 18px; border-radius: 9px; background: var(--surface-2); margin-left: 8px; font-size: 11px; letter-spacing: 0; color: var(--ink-2); }
.sched td.c { height: 60px; padding: 6px; vertical-align: middle; }
.sched td.c.can { cursor: pointer; }
.sched td.c .none { display: grid; place-items: center; height: 46px; color: var(--line); font-size: 15px; border-radius: 10px; transition: background .15s, color .15s; }
.sched td.c.can:hover .none { background: var(--teal-soft); color: var(--teal-ink); }
.sched td.c.can:hover .none::after { content: '+'; font-size: 20px; font-weight: 400; }
.sched td.c.can:hover .none span { display: none; }
.sched td.c.past { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(48, 47, 44, .018) 8px 9px); }
.blk { position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; min-height: 46px; padding: 5px 9px; border-radius: 10px; border: 0; text-align: left; cursor: default; font-weight: 600; font-size: 13.5px; line-height: 1.2; letter-spacing: -.005em; }
.blk + .blk { margin-top: 4px; }
.blk small { font-weight: 500; font-size: 11px; opacity: .75; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk.tap { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.blk.tap:hover { transform: translateY(-1px); box-shadow: 0 4px 10px -4px rgba(48, 47, 44, .35); }
.blk.k-morning { --kc: var(--k-morning); --kt: var(--k-morning-ink); --kw: #B39446; --kp: #EFE9D6; }
.blk.k-day { --kc: var(--k-day); --kt: var(--k-day-ink); --kw: #4F9C98; --kp: #E5EEEA; }
.blk.k-evening { --kc: var(--k-evening); --kt: var(--k-evening-ink); --kw: #4A4842; --kp: #D8D6CF; }
.blk { background: var(--kc); color: var(--kt); }
.blk.wait { background: var(--kp); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--kw); outline: 0; }
.blk.wait { background-image: none; border: 0; }
.blk.wait::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; border: 1.5px dashed var(--surface); opacity: .9; pointer-events: none; }
.blk.wait.tap:hover { box-shadow: inset 0 0 0 1.5px var(--kw), 0 4px 10px -4px rgba(48, 47, 44, .35); }
.blk .ok { position: absolute; top: 5px; right: 6px; width: 12px; height: 12px; opacity: .7; }
.blk.wait::after { content: ''; position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--kw); }
.sched tfoot td { background: var(--surface); padding: 8px 6px; font-size: 11.5px; line-height: 1.3; text-align: center; color: var(--ink-3); border-bottom: 0; }
.sched tfoot td.name { font-size: 12px; text-align: left; color: var(--ink-3); font-weight: 500; }
.sched tfoot .gap { color: var(--gap); font-weight: 500; }
.sched tfoot .full { color: var(--teal-ink); }
.sched-empty { padding: 40px 18px; text-align: center; color: var(--ink-3); }
@media (max-width: 999px) {
  .gridwrap { max-height: none; margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .sched { min-width: 0; width: max-content; }
  .sched col.who { width: 118px; }
  .sched col.day { width: 74px; }
  .sched td.name { padding: 8px 8px 8px 14px; }
  .sched td.name .av { display: none; }
  .sched td.name b { font-size: 13px; }
  .sched thead th:first-child { padding-left: 14px; }
  .sched .dh b { font-size: 16px; }
  .blk { padding: 5px 7px; font-size: 12.5px; }
  .blk small { font-size: 10.5px; }
  .sched tr.grp td { padding-left: 14px; }
}

/* ---------- заявки ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.rqlist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.rq { display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.rq:hover { border-color: var(--ink-3); transform: translateY(-1px); box-shadow: 0 10px 24px -18px rgba(48, 47, 44, .5); }
.rq .hd { display: flex; align-items: center; gap: 8px; }
.rq .hd .no { font-weight: 600; color: var(--ink-3); font-size: 13px; }
.rq .hd .st { margin-left: auto; }
.route { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.route svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.rq .items { color: var(--ink-2); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rq .ft { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.rq .ft .grow { flex: 1; }
.prog { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.prog .bar { width: 64px; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; display: flex; }
.prog .bar i { display: block; height: 100%; background: var(--teal); }
.prog .bar i.miss { background: var(--gap); }
.rq-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 20px; text-align: center; color: var(--ink-3); }
.rq-empty .archmini { width: 120px; height: 160px; border: 1px solid var(--line); border-radius: 60px 60px 8px 8px; padding: 14px 10px 0; color: var(--ink-2); }
.rq-empty .archmini svg { width: 100%; height: 100%; }
.itemrows { display: flex; flex-direction: column; gap: 8px; }
.itemrow { display: grid; grid-template-columns: 1fr 96px 36px; gap: 8px; align-items: center; }
.itemrow .x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.itemrow .x:hover { background: var(--gap-soft); color: var(--gap); }
.itemrow .x svg { width: 16px; height: 16px; }
.addrow { margin-top: 10px; height: 38px; width: 100%; border: 1px dashed var(--line); border-radius: var(--r); background: transparent; color: var(--ink-2); cursor: pointer; font-weight: 500; }
.addrow:hover { border-color: var(--teal); color: var(--teal-ink); background: var(--teal-soft); }
.ritems { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 4px 0 16px; }
.ritem { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line-2); background: var(--surface); }
.ritem:first-child { border-top: 0; }
.ritem .grow { flex: 1; min-width: 0; }
.ritem .grow b { display: block; font-weight: 600; }
.ritem .grow span { font-size: 12px; color: var(--ink-3); }
.ritem .qty { font-weight: 600; white-space: nowrap; }
.ritem.ready { background: linear-gradient(90deg, var(--ok-soft), var(--surface) 60%); }
.ritem.missing { background: linear-gradient(90deg, var(--gap-soft), var(--surface) 60%); }
.ritem.missing .grow b { text-decoration: line-through; text-decoration-color: rgba(165, 68, 58, .5); }
.mark { display: inline-flex; gap: 4px; }
.mark button { height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.mark button svg { width: 13px; height: 13px; }
.mark button.y[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.mark button.n[aria-pressed="true"] { background: var(--gap); border-color: var(--gap); color: #fff; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin: 0 0 14px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }
.decision { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }

/* ---------- уведомления ---------- */
.ntf { display: flex; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line-2); cursor: pointer; border-radius: 8px; }
.ntf:first-child { border-top: 0; }
.ntf:hover { background: var(--bg); }
.ntf .dot { margin-top: 7px; background: var(--line); }
.ntf.new .dot { background: var(--teal); }
.ntf .grow { flex: 1; }
.ntf .grow span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ---------- панели ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.stat span { display: block; font-size: 12px; color: var(--ink-3); }
.stat b { display: block; font-size: 21px; font-weight: 700; margin-top: 2px; white-space: nowrap; letter-spacing: -.015em; }
@media (max-width: 420px) { .stat { padding: 12px; } .stat b { font-size: 16px; } }
.list { display: flex; flex-direction: column; }
.list .li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.list .li:first-child { border-top: 0; padding-top: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .grow b { display: block; font-weight: 600; }
.li .grow > span { display: block; }
.li .end { display: flex; align-items: center; gap: 10px; flex: none; }
.li .tags { display: flex !important; flex-wrap: wrap; gap: 4px; margin: 3px 0 2px; }
.li.person .av { width: 36px; height: 36px; align-self: flex-start; margin-top: 2px; }
.li.person .av.off { background: var(--line); }
@media (max-width: 640px) {
  .list .li.stack { flex-wrap: wrap; row-gap: 8px; }
  .li.stack .grow { flex: 1 1 calc(100% - 60px); }
  .li.stack .end { width: 100%; justify-content: space-between; }
  .li.person .end { padding-left: 48px; }
  .li.stack .end .btn { flex: none; }
}
.section { margin-bottom: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--teal-soft); border-radius: var(--r); padding: 8px 8px 8px 12px; margin: 12px 0; }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; font-size: 13px; color: var(--teal-ink); }
.weekbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.weekbar .range { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-right: auto; }
@media (max-width: 599px) { .weekbar .range { font-size: 21px; } }

.ptable { width: 100%; border-collapse: collapse; }
.ptable th { text-align: right; font-weight: 500; font-size: 12px; color: var(--ink-3); padding: 0 10px 10px; white-space: nowrap; }
.ptable th:first-child, .ptable td:first-child { text-align: left; padding-left: 0; }
.ptable td { text-align: right; padding: 12px 10px; border-top: 1px solid var(--line-2); white-space: nowrap; }
.ptable td:first-child b { display: block; font-weight: 600; }
.ptable td:first-child span { font-size: 12px; color: var(--ink-3); }
.ptable tr.expand td { background: var(--bg); white-space: normal; text-align: left; }
.ptable tfoot td { font-weight: 700; border-top: 1px solid var(--line); }
.ptable .toggle { border: 0; background: transparent; color: var(--teal-ink); cursor: pointer; font-size: 12px; padding: 0; }
.pcards { display: none; }
@media (max-width: 760px) {
  .ptable { display: none; }
  .pcards { display: flex; flex-direction: column; gap: 10px; }
  .pcard { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
  .pcard .top2 { display: flex; justify-content: space-between; gap: 10px; }
  .pcard dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 10px 0 0; font-size: 13px; }
  .pcard dt { color: var(--ink-3); } .pcard dd { margin: 0; text-align: right; }
}

/* ---------- шторка ---------- */
.overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 40; background: rgba(48, 47, 44, .38); display: flex; align-items: flex-end; justify-content: center; animation: fadein .15s ease-out; }
.sheet { width: 100%; max-width: 500px; max-height: 92vh; max-height: 92dvh; overflow: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 18px 20px calc(20px + var(--safe-b)); animation: up .22s cubic-bezier(.2, .8, .2, 1); }
.sheet.wide { max-width: 580px; }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: -6px auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sheet-head h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.actions { display: flex; gap: 10px; margin-top: 6px; }
.actions .btn { flex: 1; }
@media (min-width: 640px) { .overlay { align-items: center; } .sheet { border-radius: 20px; padding: 22px 24px 24px; } .grab { display: none; } }
@keyframes up { from { transform: translateY(20px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fadein { from { opacity: 0; } }
.info-sheet { text-align: center; }
.info-sheet .archmini { width: 110px; height: 150px; margin: 0 auto 14px; border: 1px solid var(--line); border-radius: 55px 55px 8px 8px; padding: 14px 10px 0; color: var(--teal-ink); }
.info-sheet .archmini svg { width: 100%; height: 100%; }
.info-sheet p { color: var(--ink-2); margin: 0 0 12px; }
.steps { text-align: left; margin: 6px 0 18px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: 12px; font-weight: 600; }

#toast { position: fixed; left: 50%; bottom: calc(88px + var(--safe-b)); transform: translateX(-50%) translateY(8px); z-index: 60; background: var(--primary); color: var(--on-primary); padding: 11px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%); }
@media (min-width: 1000px) { #toast { bottom: 28px; } }
.loading { padding: 40px; text-align: center; color: var(--ink-3); }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; text-align: center; position: relative; overflow: hidden; }
.nf .inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.nf .arch { width: 190px; height: 260px; border: 1px solid var(--line); border-radius: 95px 95px 10px 10px; padding: 26px 18px 6px; color: var(--ink); position: relative; background: var(--surface); }
.nf .arch::before { content: ''; position: absolute; top: 8px; right: 8px; bottom: 8px; left: 8px; border: 1px solid var(--line-2); border-radius: 88px 88px 6px 6px; }
.nf .arch svg { width: 100%; height: 100%; position: relative; }
.nf .arch .tail-waves { color: var(--teal); }
.nf .code { margin-top: 26px; font-size: 13px; font-weight: 600; letter-spacing: .32em; padding-left: .32em; color: var(--ink-3); }
.nf h1 { font-size: 56px; letter-spacing: -.04em; margin: 6px 0 10px; line-height: 1; }
.nf p { color: var(--ink-2); margin: 0 0 24px; max-width: 320px; }
.nf .whale { position: absolute; width: 150px; right: 6%; bottom: 8%; opacity: .9; transform: rotate(168deg); filter: drop-shadow(0 -8px 10px rgba(48, 47, 44, .15)); }
@media (max-width: 640px) { .nf .whale { display: none; } .nf h1 { font-size: 46px; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.nf .arch svg .tail { animation: bob 3.2s ease-in-out infinite; transform-box: fill-box; }

/* ---------- старые браузеры и слабые устройства ---------- */
@supports not (aspect-ratio: 1 / 1) {
  .spot .arch { height: 330px; }
  .auth-art .arch { height: 330px; }
}
@media (max-width: 560px) { @supports not (aspect-ratio: 1 / 1) { .spot .arch { height: 220px; } } }
/* на телефоне шрифт полей 16px — иначе iPhone приближает страницу при вводе */
@media (max-width: 999px) { .input, textarea.input, select.input { font-size: 16px; } }
.only-m { display: none; }
@media (max-width: 999px) { .only-m { display: block; } }
.menu-links { padding: 6px 0; }
.menu-links a { display: flex; align-items: center; gap: 12px; padding: 12px 18px; text-decoration: none; color: var(--ink); font-weight: 500; border-top: 1px solid var(--line-2); }
.menu-links a:first-child { border-top: 0; }
.menu-links a svg { width: 20px; height: 20px; color: var(--ink-2); }
.menu-links a .chev { margin-left: auto; width: 16px; height: 16px; color: var(--ink-3); }
/* на сенсорных экранах без мыши hover-анимации не нужны — меньше перерисовок на слабых телефонах */
@media (hover: none) {
  .rq:hover, .blk.tap:hover, .spot:hover .arch { transform: none; box-shadow: none; }
  .spot:hover .whale { transform: translateX(-50%) rotate(-5deg); }
  .spot:nth-child(2):hover .whale { transform: translateX(-50%) scaleX(-1) rotate(-5deg); }
}

/* ---------- график на месяц ---------- */
.toolbar .seg button { height: 34px; }
.sched.month { min-width: 0; width: max-content; }
.sched.month col.who { width: 200px; }
.sched.month col.day { width: 46px; }
.sched.month col.tot { width: 78px; }
.sched.month thead th { padding: 9px 2px 8px; }
.sched.month .dh small { font-size: 10.5px; }
.sched.month .dh b { font-size: 15px; }
.sched.month .dh b em { display: none; }
.sched.month th.we { background: #F1EFE6; }
.sched.month th.we .dh small { color: var(--gap); }
.sched.month th.today { background: var(--teal); }
.sched.month td.we { background: rgba(48, 47, 44, .03); }
.sched.month td.today { background: rgba(0, 137, 155, .06); }
.sched.month td.c { height: 52px; padding: 4px 3px; }
.sched.month td.c .none { height: 42px; font-size: 13px; }
.sched.month td.c.can:hover .none::after { font-size: 17px; }
.blk.mb { align-items: center; min-height: 42px; padding: 3px 0; font-size: 12px; line-height: 1.12; letter-spacing: 0; gap: 1px; border-radius: 8px; }
.blk.mb span:last-child { font-weight: 500; opacity: .8; }
.blk.mb + .blk.mb { margin-top: 3px; }
.blk.mb.wait::after { top: 3px; right: 3px; width: 5px; height: 5px; }
.sched.month .tot { position: sticky; right: 0; z-index: 2; background: var(--surface); text-align: center; border-left: 1px solid var(--line); }
.sched.month thead th.tot { z-index: 4; font-size: 11px; line-height: 1.25; color: var(--ink-3); background: var(--surface); }
.sched.month td.tot b { display: block; font-size: 15px; font-weight: 700; }
.sched.month td.tot span { display: block; font-size: 11px; color: var(--ink-3); }
.sched.month tr.grp td { position: static; }
.sched.month tfoot td { padding: 8px 2px; }
.gdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gap); box-shadow: 0 0 0 3px var(--gap-soft); }
@media (max-width: 999px) {
  .sched.month col.who { width: 112px; }
  .sched.month col.day { width: 44px; }
  .sched.month col.tot { width: 64px; }
  .toolbar .seg { order: -1; }
}
@media (min-width: 1000px) {
  /* на компьютере месяц помещается целиком, без прокрутки */
  .sched.month { width: 100%; min-width: 1060px; }
  .sched.month col.who { width: 172px; }
  .sched.month col.day { width: auto; }
  .sched.month col.tot { width: 66px; }
  .sched.month td.name { padding: 6px 8px 6px 14px; }
  .sched.month td.name .av { width: 28px; height: 28px; font-size: 10px; }
  .sched.month td.name .nm { gap: 8px; }
  .sched.month td.c { padding: 3px 2px; height: 48px; }
  .sched.month .blk.mb { font-size: 11.5px; min-height: 40px; border-radius: 6px; }
  .sched.month .dh b { font-size: 14px; }
  .sched.month thead th:first-child { padding-left: 14px; }
}

/* ---------- дни выплат ---------- */
.paychip { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.paychip svg { width: 18px; height: 18px; color: var(--teal-ink); flex: none; }
.paychip b { color: var(--ink); font-weight: 600; }
.sched .dh .pd { font-style: normal; font-size: 10px; font-weight: 700; line-height: 1; padding: 2px 5px; border-radius: 99px; background: var(--wait-soft); color: var(--wait); margin-top: 2px; }
.sched th.today .dh .pd { background: rgba(255, 255, 255, .25); color: #fff; }
.prow { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr 36px; gap: 10px; align-items: end; padding: 10px 0; border-top: 1px solid var(--line-2); }
.prow:first-child { border-top: 0; padding-top: 0; }
.prow .field { margin: 0; }
.prow .inl { display: flex; align-items: center; gap: 8px; }
.prow .num { width: 72px; flex: none; text-align: center; padding: 0 8px; }
.prow .till { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.prow .x { width: 36px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.prow .x:hover:not(:disabled) { background: var(--gap-soft); color: var(--gap); }
.prow .x:disabled { opacity: .3; cursor: default; }
.prow .x svg { width: 16px; height: 16px; }
.preview { margin-top: 14px; background: var(--bg); border-radius: var(--r); padding: 12px 14px; font-size: 13px; }
.preview b { display: block; margin-bottom: 6px; }
.preview .pv { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; padding: 3px 0; }
.preview .pv .d { font-weight: 600; color: var(--teal-ink); }
@media (max-width: 640px) {
  .prow { grid-template-columns: 1fr 1fr 36px; }
  .prow .field:nth-child(1) { grid-column: 1 / 3; }
  .prow .x { grid-row: 1; grid-column: 3; }
  .prow .field:nth-child(3) { grid-column: 1 / 4; }
  .preview .pv { grid-template-columns: 90px 1fr; } .preview .pv .muted { grid-column: 1 / 3; margin-top: -4px; }
}

/* ---------- сбор пожеланий: баннер, запуск ---------- */
.rbanner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--teal); box-shadow: inset 4px 0 0 var(--teal); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; animation: up .3s ease-out; }
.rbanner:hover { transform: translateY(-1px); box-shadow: inset 4px 0 0 var(--teal), 0 10px 24px -18px rgba(0, 105, 122, .7); }
.rbanner .rb-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-ink); display: grid; place-items: center; flex: none; }
.rbanner .rb-ic svg { width: 22px; height: 22px; }
.rbanner .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rbanner b { font-size: 15px; letter-spacing: -.01em; }
.rbanner .rb-sub { font-size: 13px; color: var(--ink-2); }
.rbanner .rb-bar { display: block; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 6px; max-width: 280px; }
.rbanner .rb-bar i { display: block; height: 100%; background: var(--teal); border-radius: 3px; transition: width .6s; }
.rbanner .btn { flex: none; }
.rbanner .btn svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .rbanner { flex-wrap: wrap; } .rbanner .btn { width: 100%; } .rbanner .rb-ic { display: none; } }
.rc-step { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 4px 0 12px; }
.rc-step span { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: 12px; }
.rc-step ~ .rc-step { margin-top: 20px; }
.rt-all { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--bg); font-weight: 500; margin-bottom: 10px; cursor: pointer; }
.rtrees { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .rtrees { grid-template-columns: 1fr; } }
.rtree { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.rt-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); cursor: pointer; border-bottom: 1px solid var(--line-2); }
.rt-head b { display: block; font-size: 14px; }
.rt-head small { display: block; font-size: 12px; color: var(--ink-3); }
.rt-head em { font-style: normal; font-size: 12px; color: var(--teal-ink); font-weight: 600; }
.rt-list { padding: 4px; }
.rt-u { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.rt-u:hover { background: var(--bg); }
.rt-u .av { width: 30px; height: 30px; font-size: 10.5px; }
.rt-u b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.rt-u small { display: block; font-size: 12px; color: var(--ink-3); }
.rt-u .both { color: var(--teal-ink); font-weight: 500; }
.rt-u .grow, .rt-head .grow { flex: 1; min-width: 0; }
.rtree input[type=checkbox], .rt-all input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--teal); flex: none; margin: 0; }
.rt-u:has(input:checked) { background: var(--teal-soft); }
.chip small { font-size: 11.5px; opacity: .7; font-weight: 400; }

/* ---------- составление графика ---------- */
.plan-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; max-width: 640px; }
.stat.hot { border-color: #E4C3BB; background: var(--gap-soft); }
.stat.hot b { color: var(--gap); }
.plan-wait { margin: 0 0 14px; }
.plan-hint { margin: 12px 2px 0; }
.sched.month.plan { width: 100%; min-width: 980px; }
.sched.month.plan col.who { width: 180px; }
.sched.month.plan col.day { width: auto; }
.sched.month.plan col.tot { width: 84px; }
.sched.plan td.pc { height: auto; min-height: 60px; padding: 4px 3px; vertical-align: top; cursor: pointer; transition: background .12s; }
.sched.plan td.pc:hover { background: var(--teal-soft); }
.sched.plan td.pc.bad { background: rgba(165, 68, 58, .07); }
.sched.plan td.pc.warn { box-shadow: inset 0 0 0 2px var(--wait); }
.sched.plan td.pc > * + * { margin-top: 3px; }
.wish { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 11px; font-weight: 600; line-height: 1.15; padding: 3px 1px; border-radius: 6px; border: 1.5px dashed var(--teal); color: var(--teal-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wish span + span { font-weight: 500; opacity: .85; }
.wish.off { border-color: var(--line); color: var(--ink-3); font-weight: 500; background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(48, 47, 44, .05) 4px 5px); }
.wish.none { border: 0; color: var(--line); font-weight: 400; }
.wish.bad { border-color: var(--gap); color: var(--gap); background: var(--gap-soft); }
.sched.plan .blk.mb { min-height: 34px; cursor: pointer; }
.blk.draft { box-shadow: inset 0 0 0 1.5px rgba(48, 47, 44, .35); background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, .35) 6px 9px); }
.else { display: block; text-align: center; font-size: 10px; color: var(--ink-3); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched.plan th.dayh { cursor: pointer; }
.sched.plan th.dayh:hover { background: var(--teal-soft); }
.sched.plan th.today.dayh:hover { background: var(--teal-ink); }
.sched.plan .dh { position: relative; }
.cf { position: absolute; top: -6px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--gap); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; display: grid; place-items: center; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(165, 68, 58, .18); } }
.sdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--wait); margin-right: 5px; vertical-align: 1px; }
.sdot.ok { background: var(--teal); }
.legend .lg-wish { border: 1.5px dashed var(--teal); }
.legend .lg-off { border: 1px solid var(--line); background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(48, 47, 44, .12) 3px 4px); }
.legend .lg-draft { background: var(--k-day) repeating-linear-gradient(135deg, transparent 0 3px, rgba(255, 255, 255, .6) 3px 5px); box-shadow: inset 0 0 0 1px rgba(48, 47, 44, .35); }
.legend .lg-bad { background: var(--gap-soft); border: 1.5px solid var(--gap); }
@media (max-width: 999px) {
  .plan-stats { max-width: none; }
  .plan-stats .stat { padding: 10px 12px; } .plan-stats .stat b { font-size: 16px; }
  .sched.month.plan { width: max-content; min-width: 0; }
  .sched.month.plan col.who { width: 112px; }
  .sched.month.plan col.day { width: 60px; }
  .sched.month.plan col.tot { width: 70px; }
}
.pc-info { display: grid; gap: 1px; background: var(--line-2); border-radius: var(--r); overflow: hidden; margin-bottom: 14px; }
.pc-info div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--bg); font-size: 13.5px; }
.pc-info span { color: var(--ink-2); }
.pd-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.pd-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; transition: border-color .12s; }
.pd-row:hover { border-color: var(--ink-3); }
.pd-row.bad { border-color: var(--gap); background: var(--gap-soft); }
.pd-row .av { width: 30px; height: 30px; font-size: 10.5px; }
.pd-row b { display: block; font-size: 13.5px; } .pd-row small { display: block; font-size: 11.5px; color: var(--ink-3); }
.pd-w { font-size: 12px; color: var(--teal-ink); font-weight: 500; }
.pd-row.bad .pd-w { color: var(--gap); }
.pd-s { font-size: 12px; font-weight: 600; min-width: 64px; text-align: right; }
@media (max-width: 480px) { .pd-row { grid-template-columns: auto 1fr auto; } .pd-s { grid-column: 2 / 4; text-align: left; } }
.split { border-top: 1px solid var(--line); padding-top: 16px; }
.split h3 { margin: 0 0 4px; font-size: 16px; }
.split p { margin: 0 0 14px; }
.sbar { display: flex; gap: 3px; height: 54px; margin: 4px 0 10px; }
.sbar > div { display: flex; flex-direction: column; justify-content: center; padding: 0 10px; border-radius: 10px; min-width: 0; transition: flex .2s; overflow: hidden; white-space: nowrap; }
.sbar b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; } .sbar span { font-size: 11.5px; opacity: .8; }
.sbar .sa { background: var(--k-morning); color: var(--k-morning-ink); }
.sbar .sb { background: var(--k-evening); color: var(--k-evening-ink); }
.srange { width: 100%; accent-color: var(--teal); }

/* ---------- мой график: пошаговый мастер ---------- */
.wz { max-width: 760px; margin: 0 auto; }
.wz-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.wz-back { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.wz-back:hover { border-color: var(--ink-3); transform: translateX(-2px); }
.wz-back svg { width: 16px; height: 16px; }
.wz-of { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); }
.wz-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 14px; counter-reset: s; }
.wz-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); padding-bottom: 10px; border-bottom: 3px solid var(--line); transition: border-color .3s, color .3s; }
.wz-steps li span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.wz-steps li span svg { width: 12px; height: 12px; }
.wz-steps li.cur { color: var(--ink); border-color: var(--teal); }
.wz-steps li.cur span { background: var(--teal); border-color: var(--teal); color: #fff; }
.wz-steps li.done { color: var(--teal-ink); border-color: var(--teal-soft); }
.wz-steps li.done span { background: var(--teal-soft); border-color: transparent; }
@media (max-width: 520px) { .wz-steps li { font-size: 0; gap: 0; justify-content: center; } .wz-steps li span { font-size: 11px; } .wz-steps li.cur { font-size: 12px; gap: 6px; } }
.wz-place { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.wz-place b { color: var(--ink); }
.wz-body { animation: wzin .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes wzin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.wz-h { font-size: 26px; letter-spacing: -.02em; margin: 0 0 4px; line-height: 1.15; }
.wz-sub { color: var(--ink-2); margin: 0 0 16px; }
.wz-intro { text-align: center; padding: 10px 0 20px; }
.wz-intro .archmini, .wz-empty .archmini { width: 120px; height: 164px; margin: 0 auto 18px; border: 1px solid var(--line); border-radius: 60px 60px 8px 8px; padding: 16px 12px 0; color: var(--teal-ink); }
.wz-intro .archmini svg, .wz-empty .archmini svg { width: 100%; height: 100%; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; animation: rise .5s both; }
.wz-dates { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 32px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; animation: rise .55s .1s both; flex-wrap: wrap; }
.wz-dates i { width: 34px; height: 2px; background: var(--teal); border-radius: 1px; }
.wz-rest { margin: 18px auto 0; display: inline-flex; flex-direction: column; align-items: center; padding: 10px 26px; border-radius: 999px; background: var(--primary); color: var(--on-primary); animation: rise .55s .75s both; }
.wz-rest small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.wz-rest b { font-size: 20px; letter-spacing: -.01em; }
.wz-intro .lead { max-width: 460px; margin: 18px auto; color: var(--ink-2); animation: rise .5s 1s both; }
.wz-intro .note { max-width: 460px; margin: 0 auto 16px; animation: rise .5s 1.05s both; }
.wz-intro .btn { animation: rise .5s 1.1s both; }
.wz-intro .btn svg { width: 16px; height: 16px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wcal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.wcal .wh, .wcal .wg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wcal .wh { margin-bottom: 6px; }
.wcal .wh span { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.wcal .wh span:nth-child(n+6) { color: var(--gap); }
.wd { position: relative; min-height: 78px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; overflow: hidden; transition: border-color .15s, background .2s, transform .12s; }
.wd:hover { border-color: var(--teal); }
.wd:active { transform: scale(.96); }
.wd .dn { font-size: 17px; font-weight: 700; line-height: 1.1; }
.wd .dn em { display: block; font-style: normal; font-size: 10px; font-weight: 500; color: var(--ink-3); text-transform: uppercase; }
.wd .v { font-size: 12px; font-weight: 600; white-space: nowrap; }
.wd .v b { font-weight: 600; }
.wd .v i { font-style: normal; }
.wd .h { font-size: 10.5px; opacity: .8; }
.wd .hint { margin-top: auto; font-size: 16px; color: var(--line); }
.step-2 .wd .hint { font-size: 10px; opacity: 0; transition: opacity .15s; color: var(--ink-3); }
.step-2 .wd.empty:hover .hint { opacity: 1; }
.wd .oth { margin-top: auto; font-size: 9.5px; color: var(--ink-3); line-height: 1.15; text-align: center; }
.wd.today { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.wd.work { background: var(--teal); border-color: var(--teal); color: #fff; }
.wd.work .dn em { color: rgba(255, 255, 255, .75); }
.wd.work.lock { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--teal-ink); cursor: default; }
.wd.work.lock .dn em { color: var(--teal-ink); }
.wd.off { background: var(--surface-2); border-color: var(--surface-2); color: var(--ink-2); }
.wd .stamp { margin-top: auto; margin-bottom: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gap); border: 1.5px solid var(--gap); border-radius: 4px; padding: 1px 4px; transform: rotate(-8deg); }
.wd.pop { animation: pop .42s cubic-bezier(.3, 1.6, .5, 1); }
.wd.off.pop .stamp { animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { 0% { transform: scale(.82); } 100% { transform: scale(1); } }
@keyframes stamp { 0% { transform: rotate(-8deg) scale(2.2); opacity: 0; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }
.wd.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.blank { min-height: 1px; }
@media (max-width: 520px) { .wcal { padding: 8px; margin: 0 -6px; } .wcal .wh, .wcal .wg { gap: 4px; } .wd { min-height: 70px; padding: 5px 2px; border-radius: 10px; } .wd .dn { font-size: 15px; } .wd .v { font-size: 10.5px; } .wd .h { display: none; } .wd .oth { display: none; } .wd .v { display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-size: 11px; } .wd .v i { display: none; } .wd .v b + b { font-weight: 500; opacity: .85; } .wd .stamp .full { display: none; } .wd .stamp { font-size: 10px; padding: 1px 5px; } }
@media (max-width: 520px) { .wz-dates { flex-direction: column; gap: 6px; font-size: 28px; } .wz-dates i { width: 2px; height: 16px; } }
.wz-foot { position: sticky; bottom: calc(72px + var(--safe-b)); z-index: 5; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 -10px 30px -22px rgba(48, 47, 44, .6); }
@media (min-width: 1000px) { .wz-foot { bottom: 16px; } }
.wz-foot .btn svg { width: 16px; height: 16px; }
.wz-sum { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.wz-sum b { font-size: 14px; } .wz-sum span { font-size: 12.5px; color: var(--ink-2); }
.step-3 .wz-foot { justify-content: flex-end; }
.step-3 .wz-foot .btn { flex: 1; max-width: 220px; }
.wz-stats { margin-bottom: 14px; }
.stat.accent { background: var(--teal); border-color: var(--teal); color: #fff; }
.stat.accent span { color: rgba(255, 255, 255, .8); }
.wrev { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.rv { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); animation: rise .35s both; }
.rv .d { display: flex; align-items: baseline; gap: 5px; font-size: 12px; color: var(--ink-3); text-transform: capitalize; }
.rv .d b { font-size: 17px; color: var(--ink); }
.rv .t { font-weight: 600; font-size: 13.5px; }
.rv .h { font-size: 12px; color: var(--ink-2); }
.rv.work { border-left: 4px solid var(--teal); }
.rv.off { background: var(--bg); } .rv.off .t { color: var(--ink-3); font-weight: 500; }
.rv.hole { border: 1.5px dashed var(--gap); } .rv.hole .t { color: var(--gap); }
.wz-done { text-align: center; padding: 30px 0 10px; }
.wz-done h1 { font-size: 26px; letter-spacing: -.02em; max-width: 480px; margin: 18px auto 8px; line-height: 1.2; animation: rise .5s .55s both; }
.wz-done p { color: var(--ink-2); max-width: 440px; margin: 0 auto 20px; animation: rise .5s .7s both; }
.wz-done .btn { animation: rise .5s .85s both; }
.wz-done .btn svg { width: 16px; height: 16px; }
.okc { width: 96px; height: 96px; }
.okc circle { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 3; stroke-dasharray: 227; stroke-dashoffset: 227; animation: dash .6s ease-out forwards; }
.okc path { fill: none; stroke: var(--teal-ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: dash .4s .45s ease-out forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.wz-wave { display: block; width: 220px; height: 16px; margin: 28px auto 0; color: var(--teal); }
.wz-wave path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; animation: dash 1.4s 1s ease-in-out forwards; }
.wz-empty { text-align: center; padding: 40px 10px; max-width: 460px; margin: 0 auto; }
.wz-empty h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 8px; }
.wz-empty p { color: var(--ink-2); margin: 0 0 18px; }
.wopts { display: grid; gap: 8px; margin-bottom: 14px; }
.wopt { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; transition: border-color .12s, background .12s, transform .1s; }
.wopt:hover { border-color: var(--teal); background: var(--teal-soft); }
.wopt:active { transform: scale(.98); }
.wopt.on { border-color: var(--teal); background: var(--teal); color: #fff; }
.wopt b { font-size: 15px; } .wopt span { font-weight: 600; } .wopt em { font-style: normal; font-size: 12px; opacity: .7; }
.wcustom { padding: 12px; border-radius: 14px; background: var(--bg); }
.wcustom .lbl { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.wcustom .err { margin: 0 0 8px; }
.wcustom .input { flex: 1; min-width: 0; }

/* готовый график рядом с пожеланиями */
.wd.has-ready { box-shadow: inset 0 -3px 0 var(--ink); }
.wd .ready { margin-top: auto; font-size: 9.5px; font-weight: 600; line-height: 1.15; padding: 1px 5px; border-radius: 4px; background: var(--ink); color: var(--on-primary); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.wd.has-ready .stamp, .wd.has-ready .hint { margin-top: 2px; }
.wd.has-ready .stamp { margin-bottom: 2px; }
.wcal-key { margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.wcal-key i.k-ready { display: inline-block; width: 18px; height: 10px; border-radius: 3px; background: var(--ink); vertical-align: -1px; margin-right: 6px; }
.wz-ready { text-align: left; max-width: 460px; margin: 18px auto 0; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--ink); animation: rise .5s 1s both; }
.wz-ready > b { display: block; font-size: 14px; }
.wz-ready > span { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.wz-ready-list { display: grid; gap: 4px; }
.wz-ready-list div, .wz-ready.inline div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line-2); }
.wz-ready-list div:first-child { border-top: 0; }
.wz-ready .t { font-weight: 600; } .wz-ready .l { color: var(--ink-3); } .wz-ready .d { color: var(--ink-2); }
.wz-ready.inline { margin: 0 0 14px; max-width: none; animation: none; }
.wz-ready.inline div { grid-template-columns: auto 1fr; }
.wz-ready.inline > b { margin-bottom: 2px; }
.wopt.clash { opacity: .55; border-style: dashed; }
.wopt.clash em { color: var(--gap); opacity: 1; font-weight: 600; }
.rv .rdy { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink-2); padding-top: 6px; margin-top: 2px; border-top: 1px dashed var(--line); }
.rv.warn { border-color: var(--wait); } .rv.warn .rdy { color: var(--wait); font-weight: 600; }
@media (max-width: 520px) { .wd .ready { font-size: 8.5px; padding: 1px 3px; } }
.wz-ready.rr { margin: 0 0 14px; }
.wz-ready.rr > span { margin-bottom: 6px; }
.wz-ready.rr div { grid-template-columns: 1fr auto auto; }
.rr-none { margin: -4px 0 14px; }

/* шапка дней: место под ₽ есть у каждого дня, чтобы числа стояли ровно в одну линию */
.sched .dh .pd.none { visibility: hidden; }
.sched thead th:not(:first-child):not(.tot) { vertical-align: top; }
.blk.mb span { white-space: nowrap; }

/* ---------- техподдержка: значок, аватары ---------- */
.tsb { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; margin-left: 6px; border-radius: 6px; background: #12313A; color: #7FE3E8; font: 600 10.5px/1 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .02em; vertical-align: 2px; white-space: nowrap; text-transform: none; }
.hello .nm { align-items: center; }
.av.img { background: var(--surface-2); overflow: hidden; padding: 0; }
.av.img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.av.xl { width: 72px; height: 72px; font-size: 22px; }
.prof-head { display: flex; align-items: center; gap: 16px; }
.prof-head h2 { margin: 0 0 4px; }
.prof label.btn svg { width: 16px; height: 16px; }

/* ---------- обращения ---------- */
.sup-new { display: flex; flex-direction: column; gap: 4px; }
.sup-hero { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.sup-hero h2 { margin: 0 0 4px; }
.sup-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-ink); flex: none; }
.sup-ic svg { width: 22px; height: 22px; }
.sup-h { font-size: 17px; margin: 22px 0 10px; }
.tklist { display: flex; flex-direction: column; gap: 8px; }
.tk { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.tk:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.tk-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-hd .badge { margin-left: auto; }
.tk-who { font-size: 13px; color: var(--ink-2); }
.tk-tx { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-ft { font-size: 12px; color: var(--ink-3); }
.tk-page { max-width: 760px; }
.tk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tk-top h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 86%; }
.msg .av { width: 32px; height: 32px; font-size: 11px; }
.msg.mine { flex-direction: row-reverse; align-self: flex-end; }
.bub { background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.msg.mine .bub { background: var(--primary); color: var(--on-primary); border-color: var(--primary); border-radius: 16px 16px 4px 16px; }
.msg.sup:not(.mine) .bub { border-color: #9ED6D9; background: #EAF5F4; }
.bub .who { font-size: 12px; font-weight: 600; opacity: .8; }
.bub p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bub .tm { font-size: 11px; opacity: .6; }
.reply { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.reply textarea { min-height: 84px; resize: vertical; margin-bottom: 10px; }

/* ---------- мастер: выходные и «точно не могу» ---------- */
.wd .stamp.soft { color: var(--ink-3); border-color: var(--ink-3); transform: rotate(-4deg); }
.wd.block { background: #F6E1DC; border-color: #E9B8AE; color: #7E2E25; }
.wd.block .stamp { animation: none; }
.wd.block.pop .stamp { animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.step-2.auto .wd.off .stamp { animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.step-2.auto .wd.off:nth-child(3n) .stamp { animation-delay: .08s; } .step-2.auto .wd.off:nth-child(3n+1) .stamp { animation-delay: .16s; }
.wz-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.wz-key span { display: inline-flex; align-items: center; gap: 6px; }
.wz-key i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.wz-key .k-work { background: var(--teal-soft); } .wz-key .k-off { background: var(--surface-2); } .wz-key .k-block { background: #F6E1DC; box-shadow: inset 0 0 0 1.5px #E9B8AE; }
.rv.block { border-left: 4px solid var(--gap); } .rv.block .t { color: var(--gap); }
.wish.block { border: 1.5px solid var(--gap); color: var(--gap); background: var(--gap-soft); font-weight: 600; font-size: 10px; }
.legend .lg-block { background: var(--gap-soft); border: 1.5px solid var(--gap); }
.wd .stamp .s-short { display: none; }
@media (max-width: 520px) { .wd .stamp .s-long { display: none; } .wd .stamp .s-short { display: inline; } }
