/* Писанка — кабінет власника */
:root {
	--pk-blue: #3553e8; --pk-blue-soft: #e6eaff; --pk-orange: #ff6a2c; --pk-orange-soft: #ffe8dc; --pk-pink: #f2559a;
	--pk-meadow: #6f9a4e; --pk-clay: #b8775a; --pk-ink: #141830; --pk-ink-2: #3c4160; --pk-muted: #6b6f86;
	--pk-paper: #f4f1ea; --pk-card: #fffdf9; --pk-line: rgba(20, 24, 48, .1); --pk-night: #0d1026;
	--pk-grad: linear-gradient(100deg, #3553e8, #7a5cf0 45%, #f2559a 75%, #ff6a2c);
	--st-new: #ff6a2c; --st-conf: #3553e8; --st-in: #2f9e6a; --st-out: #9497a8; --st-cancel: #d6d6de; --st-block: #141830;
	--cell: 46px; --lab: 150px;
	--f: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif; --fd: "Unbounded", "Onest", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.pko { font: 15px/1.5 var(--f); color: var(--pk-ink); background: var(--pk-paper); -webkit-font-smoothing: antialiased; }
.pko button, .pko input, .pko select, .pko textarea { font: inherit; color: inherit; }
.pko h1, .pko h2, .pko h3 { font-family: var(--fd); letter-spacing: -.02em; }
.pko a { color: inherit; }
.pko-muted { color: var(--pk-muted); margin: 0; }
.pko-spin { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--pk-blue-soft); border-top-color: var(--pk-blue); animation: s .8s linear infinite; vertical-align: middle; }
@keyframes s { to { transform: rotate(360deg); } }
.pko-loading { display: grid; place-items: center; min-height: 50vh; color: var(--pk-muted); gap: 12px; }
.pko-mark, .pk-mark { flex: none; }

/* Кнопки */
.pko-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--pk-ink); color: #fff !important; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; white-space: nowrap; }
.pko-btn:hover { transform: translateY(-1px); }
.pko-btn:disabled { opacity: .5; cursor: wait; transform: none; }
.pko-btn--primary { background: var(--pk-blue); box-shadow: 0 8px 22px -10px rgba(53,83,232,.8); }
.pko-btn--ghost { background: transparent; color: var(--pk-ink) !important; box-shadow: inset 0 0 0 1.5px var(--pk-line); }
.pko-btn--ghost:hover { background: #fff; }
.pko-btn--danger { background: transparent; color: #d13438 !important; box-shadow: inset 0 0 0 1.5px rgba(209,52,56,.3); }
.pko-btn--danger:hover { background: #fdecec; }
.pko-link { border: 0; background: none; padding: 0; color: var(--pk-blue); font-weight: 600; cursor: pointer; font-size: 13px; }
.pko-x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--pk-paper); display: grid; place-items: center; cursor: pointer; flex: none; }
.pko-in { min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--pk-line); background: #fff; }
.pko-in:focus, .pko-f input:focus, .pko-f select:focus, .pko-f textarea:focus { outline: 0; border-color: var(--pk-blue); box-shadow: 0 0 0 4px rgba(53,83,232,.14); }

/* Вхід */
.pko-login { min-height: 100svh; display: grid; place-items: center; align-content: center; gap: 20px; padding: 20px; background: radial-gradient(60% 50% at 20% 10%, rgba(53,83,232,.35), transparent), radial-gradient(50% 40% at 90% 90%, rgba(255,106,44,.25), transparent), var(--pk-night); }
.pko-login__card { width: min(420px, 100%); padding: 34px; border-radius: 30px; background: var(--pk-card); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); }
.pko-login__msg { color: var(--pk-ink-2); margin: 20px 0; }
.pko-login form p { margin: 0 0 14px; display: grid; gap: 6px; }
.pko-login label { font-weight: 600; font-size: 14px; }
.pko-login input[type=text], .pko-login input[type=password] { min-height: 52px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--pk-line); font-size: 16px; }
.pko-login .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.pko-login input[type=submit] { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--pk-blue); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
.pko-login__lost { font-size: 14px; color: var(--pk-muted); }
.pko-login__back { color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; }

/* Бренд */
.pko-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.pko-brand span { display: grid; line-height: 1.1; }
.pko-brand b { font: 800 19px/1 var(--fd); color: var(--pk-blue); letter-spacing: .01em; text-shadow: 1.5px 1.5px 0 #b9c4ff; }
.pko-brand small { font-size: 12px; color: var(--pk-muted); margin-top: 3px; }

/* Верхня панель */
.pko-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: rgba(255,253,249,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--pk-line); }
.pko-top .pko-brand small { color: var(--pk-muted); }
.pko-tabs { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border-radius: 999px; background: var(--pk-paper); }
.pko-tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-weight: 600; color: var(--pk-ink-2); cursor: pointer; }
.pko-tabs button:hover { background: rgba(255,255,255,.7); }
.pko-tabs button.is-on { background: var(--pk-ink); color: #fff; }
.pko-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--pk-orange); color: #fff; font: 700 12px/20px var(--f); font-style: normal; text-align: center; }
.pko-top__r { display: flex; align-items: center; gap: 10px; }
.pko-user { position: relative; }
.pko-user summary { list-style: none; width: 42px; height: 42px; border-radius: 50%; background: var(--pk-grad); color: #fff; display: grid; place-items: center; font-weight: 700; cursor: pointer; }
.pko-user summary::-webkit-details-marker { display: none; }
.pko-user > div { position: absolute; right: 0; top: 52px; min-width: 220px; display: grid; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px -15px rgba(20,24,48,.35); }
.pko-user b { padding: 10px 12px 6px; }
.pko-user a { padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.pko-user a:hover { background: var(--pk-paper); }

.pko-main { padding: 26px 20px 120px; max-width: 1500px; margin: 0 auto; }
.pko-h2 { font-size: 20px; margin: 34px 0 14px; font-weight: 600; }

/* Огляд */
.pko-hello h1 { font-size: clamp(24px, 3vw, 34px); margin: 0; font-weight: 600; }
.pko-hello p { margin: 6px 0 22px; color: var(--pk-muted); }
.pko-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pko-kpi { display: grid; gap: 4px; padding: 18px; border-radius: 22px; background: var(--pk-card); box-shadow: 0 1px 2px rgba(20,24,48,.04), 0 10px 30px -18px rgba(20,24,48,.25); }
.pko-kpi small { color: var(--pk-muted); font-weight: 600; font-size: 13px; }
.pko-kpi b { font: 700 30px/1.1 var(--fd); letter-spacing: -.03em; }
.pko-kpi span { font-size: 13px; color: var(--pk-muted); }
.pko-kpi.is-hot { background: var(--pk-ink); color: #fff; }
.pko-kpi.is-hot b { color: #ffb38a; }
.pko-kpi.is-hot small, .pko-kpi.is-hot span { color: rgba(255,255,255,.7); }
.pko-bar { display: block; height: 6px; border-radius: 6px; background: var(--pk-paper); margin-top: 6px; overflow: hidden; }
.pko-bar i { display: block; height: 100%; background: var(--pk-grad); border-radius: inherit; }
.pko-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.pko-panel { padding: 18px; border-radius: 22px; background: var(--pk-card); box-shadow: 0 1px 2px rgba(20,24,48,.04), 0 10px 30px -18px rgba(20,24,48,.25); display: grid; gap: 8px; align-content: start; }
.pko-panel h3 { display: flex; align-items: center; justify-content: space-between; font-size: 15px; margin: 0 0 4px; font-weight: 600; }
.pko-panel h3 i { font-style: normal; font: 600 13px var(--f); color: var(--pk-muted); background: var(--pk-paper); border-radius: 999px; padding: 2px 9px; }
.pko-card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px 10px 12px; border: 0; border-radius: 16px; background: var(--pk-paper); text-align: left; cursor: pointer; transition: background .2s; }
.pko-card:hover { background: #ebe6db; }
.pko-card__m { flex: 1; display: grid; min-width: 0; }
.pko-card__m b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pko-card__m small { color: var(--pk-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pko-quick { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: #fff; font-weight: 600; font-size: 13px; text-decoration: none; flex: none; }
.pko-quick:hover { background: var(--pk-blue); color: #fff; }
.pko-st { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pko-st--new { background: var(--st-new); box-shadow: 0 0 0 4px rgba(255,106,44,.2); }
.pko-st--conf { background: var(--st-conf); } .pko-st--in { background: var(--st-in); } .pko-st--out { background: var(--st-out); }
.pko-st--cancel { background: var(--st-cancel); } .pko-st--block { background: var(--st-block); }
.pko-mini { overflow-x: auto; border-radius: 22px; background: var(--pk-card); padding: 10px; box-shadow: 0 10px 30px -18px rgba(20,24,48,.25); }
.pko-mini table { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 760px; }
.pko-mini th { font-weight: 600; font-size: 13px; text-align: center; }
.pko-mini th small { display: block; color: var(--pk-muted); font-weight: 500; font-size: 11px; }
.pko-mini tbody th { text-align: left; white-space: nowrap; padding-right: 10px; }
.pko-mini th.is-we { color: var(--pk-orange); }
.pko-mini td { text-align: center; border-radius: 10px; font-weight: 700; height: 38px; }
.pko-mini td.is-ok { background: #e3f3e9; color: #1e7a4d; } .pko-mini td.is-low { background: var(--pk-orange-soft); color: #b2410f; } .pko-mini td.is-full { background: #f3e1e1; color: #b3261e; }

/* Шахматка */
.pko-gridbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.pko-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--pk-card); box-shadow: inset 0 0 0 1px var(--pk-line); }
.pko-seg button, .pko-seg label span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; cursor: pointer; }
.pko-seg button:hover { background: var(--pk-paper); }
.pko-seg input { position: absolute; opacity: 0; }
.pko-seg input:checked + span { background: var(--pk-ink); color: #fff; }
.pko-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--pk-muted); margin-left: auto; }
.pko-legend .pko-st { margin-right: -8px; }
.pko-grid { overflow: auto; max-height: calc(100svh - 190px); border-radius: 22px; background: var(--pk-card); box-shadow: 0 10px 30px -18px rgba(20,24,48,.3); }
.pko-grid__in { width: calc(var(--lab) + var(--days) * var(--cell)); }
.pko-row { display: flex; min-height: 50px; border-bottom: 1px solid var(--pk-line); }
.pko-row__l { position: sticky; left: 0; z-index: 3; flex: none; width: var(--lab); display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 14px; background: var(--pk-card); border-right: 1px solid var(--pk-line); font-size: 14px; }
.pko-row__l small { color: var(--pk-muted); }
.pko-row__cells { position: relative; display: flex; flex: none; }
.pko-row--head { position: sticky; top: 0; z-index: 4; background: var(--pk-card); min-height: 58px; }
.pko-row--head .pko-row__l { font-weight: 600; color: var(--pk-muted); z-index: 5; }
.pko-hc { position: relative; width: var(--cell); display: grid; place-items: center; align-content: center; line-height: 1.1; border-right: 1px solid var(--pk-line); }
.pko-hc small { font-size: 11px; color: var(--pk-muted); } .pko-hc b { font-size: 15px; }
.pko-hc em { position: absolute; top: 2px; left: 4px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--pk-blue); text-transform: uppercase; }
.pko-hc.is-we { background: #faf6ef; } .pko-hc.is-we small { color: var(--pk-orange); }
.pko-hc.is-today { background: var(--pk-blue); color: #fff; border-radius: 12px 12px 0 0; } .pko-hc.is-today small { color: rgba(255,255,255,.8); }
.pko-row--tier { min-height: 34px; background: var(--pk-paper); }
.pko-row--tier .pko-row__l { background: var(--pk-paper); font: 600 13px/1 var(--fd); }
.pko-fc { width: var(--cell); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #1e7a4d; }
.pko-fc.is-low { color: #b2410f; } .pko-fc.is-full { color: #b3261e; background: rgba(179,38,30,.06); }
.pko-c { width: var(--cell); border-right: 1px solid var(--pk-line); cursor: pointer; transition: background .15s; }
.pko-c:hover { background: var(--pk-blue-soft); }
.pko-c.is-today { background: rgba(53,83,232,.06); }
.pko-row--un { min-height: calc(var(--lanes) * 46px + 4px); background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(20,24,48,.025) 8px 16px); }
.pko-row--un .pko-c { cursor: default; } .pko-row--un .pko-c:hover { background: transparent; }
.pko-bk { --c: var(--st-conf); position: absolute; top: calc(4px + var(--lane) * 46px); left: calc(var(--l) * var(--cell) + var(--cell) / 2); width: calc(var(--w) * var(--cell) - 4px); height: 42px; padding: 4px 10px; border: 0; border-radius: 12px; background: var(--c); color: #fff; text-align: left; display: grid; align-content: center; line-height: 1.15; cursor: pointer; overflow: hidden; z-index: 2; box-shadow: 0 6px 14px -8px rgba(20,24,48,.5); transition: transform .15s, box-shadow .15s; }
.pko-bk:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(20,24,48,.55); z-index: 3; }
.pko-bk b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pko-bk small { font-size: 11px; opacity: .85; white-space: nowrap; }
.pko-bk--new { --c: var(--st-new); } .pko-bk--in { --c: var(--st-in); } .pko-bk--out { --c: var(--st-out); } .pko-bk--block { --c: var(--st-block); background: repeating-linear-gradient(135deg, #141830 0 8px, #2a2f52 8px 16px); color: #fff; text-shadow: 0 1px 2px #000; }
.pko-bk--cancel { --c: var(--st-cancel); color: var(--pk-ink); }
.pko-bk.is-cut-l { left: 0; width: calc(var(--w) * var(--cell) + var(--cell) / 2 - 4px); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.pko-bk.is-cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pko-hint { color: var(--pk-muted); font-size: 13px; margin: 12px 4px 0; }

/* Список */
.pko-listbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pko-listbar__r { display: flex; flex-wrap: wrap; gap: 8px; }
.pko-listbar__r input { min-width: 240px; }
.pko-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pko-chips button { border: 0; padding: 9px 14px; border-radius: 999px; background: var(--pk-card); font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px var(--pk-line); }
.pko-chips button i { font-style: normal; color: var(--pk-muted); font-weight: 500; margin-left: 2px; }
.pko-chips button.is-on { background: var(--pk-ink); color: #fff; box-shadow: none; }
.pko-chips button.is-on i { color: rgba(255,255,255,.65); }
.pko-table { display: grid; gap: 6px; }
.pko-tr { display: grid; grid-template-columns: 1fr 1.4fr 1.1fr 1.1fr .8fr 1fr; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px; background: var(--pk-card); cursor: pointer; transition: box-shadow .2s, transform .2s; }
.pko-tr:hover { box-shadow: 0 10px 24px -14px rgba(20,24,48,.35); transform: translateY(-1px); }
.pko-tr:focus-visible { outline: 3px solid var(--pk-blue); }
.pko-tr span { display: grid; min-width: 0; }
.pko-tr small { color: var(--pk-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pko-tr em { font-style: normal; font-weight: 700; color: var(--pk-blue); }
.pko-tr--h { background: transparent; cursor: default; padding-top: 0; padding-bottom: 0; color: var(--pk-muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.pko-tr--h:hover { box-shadow: none; transform: none; }
.pko-stsel { max-width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; border: 0; padding: 8px 30px 8px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; background: var(--pk-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23141830' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.pko-stsel--new { background-color: var(--pk-orange-soft); color: #b2410f; } .pko-stsel--conf { background-color: var(--pk-blue-soft); color: #2238b5; } .pko-stsel--in { background-color: #e3f3e9; color: #1e7a4d; }
.pko-empty { display: grid; justify-items: center; gap: 6px; padding: 60px 20px; text-align: center; border-radius: 22px; background: var(--pk-card); }
.pko-empty p { margin: 0; color: var(--pk-muted); }

/* Панель бронювання */
.pko-drawer { position: fixed; inset: 0; z-index: 100; }
.pko-dr__scrim { position: absolute; inset: 0; background: rgba(13,16,38,.45); opacity: 0; transition: opacity .25s; }
.pko-dr { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); display: flex; flex-direction: column; background: var(--pk-card); box-shadow: -30px 0 80px -30px rgba(0,0,0,.4); transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.pko-drawer.is-on .pko-dr__scrim { opacity: 1; }
.pko-drawer.is-on .pko-dr { transform: none; }
.pko-dr__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--pk-line); }
.pko-dr__head small { color: var(--pk-muted); font-size: 12.5px; }
.pko-dr__head h2 { margin: 4px 0 0; font-size: 22px; font-weight: 600; }
.pko-dr__body { flex: 1; overflow-y: auto; padding: 18px 22px; overscroll-behavior: contain; }
.pko-dr__foot { display: flex; align-items: center; gap: 10px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--pk-line); }
.pko-dr__foot span { flex: 1; }
.pko-dr fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.pko-dr legend { font: 600 12.5px/1 var(--f); letter-spacing: .1em; text-transform: uppercase; color: var(--pk-muted); margin-bottom: 12px; padding: 0; }
.pko-stseg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pko-stseg label { position: relative; }
.pko-stseg input { position: absolute; opacity: 0; }
.pko-stseg span { display: inline-flex; padding: 9px 13px; border-radius: 999px; background: var(--pk-paper); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.pko-stseg input:focus-visible + span { outline: 3px solid var(--pk-blue); }
.pko-stseg input:checked + span { color: #fff; background: var(--st-conf); }
.pko-st-new input:checked + span { background: var(--st-new); } .pko-st-in input:checked + span { background: var(--st-in); } .pko-st-out input:checked + span { background: var(--st-out); } .pko-st-cancel input:checked + span { background: #8a8da0; } .pko-st-block input:checked + span { background: var(--st-block); }
.pko-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pko-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pko-f { display: grid; gap: 5px; }
.pko-f--full { grid-column: 1 / -1; }
.pko-f > span { font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.pko-f input, .pko-f select, .pko-f textarea { width: 100%; min-height: 46px; padding: 10px 13px; border-radius: 14px; border: 1.5px solid var(--pk-line); background: #fff; font-size: 15px; }
.pko-f textarea { resize: vertical; }
.pko-svc { display: flex; flex-wrap: wrap; gap: 6px; }
.pko-svc label { position: relative; }
.pko-svc input { position: absolute; opacity: 0; }
.pko-svc span { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--pk-paper); font-size: 13px; cursor: pointer; }
.pko-svc input:checked + span { background: var(--pk-blue); color: #fff; }
.pko-svc input:focus-visible + span { outline: 3px solid var(--pk-orange); }
.pko-wish { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--pk-blue-soft); font-size: 14.5px; white-space: pre-wrap; }
.pko-wish small { display: block; font-weight: 700; color: var(--pk-blue); margin-bottom: 4px; }
.pko-debt { margin: 10px 0 0; } .pko-debt b { color: #b2410f; } .pko-debt b.ok { color: #1e7a4d; }
.pko-warn { padding: 14px 16px; border-radius: 16px; background: var(--pk-orange-soft); color: #7a2e0d; }
.pko-warn p { margin: 6px 0 0; }

/* Налаштування */
.pko-settings { display: grid; gap: 14px; max-width: 980px; }
.pko-settings .pko-panel { gap: 14px; padding: 22px; }
.pko-settings .pko-panel h3 { font-size: 18px; }
.pko-settings code { background: var(--pk-paper); padding: 2px 6px; border-radius: 6px; }
.pko-seg--unit { width: fit-content; }
.pko-seg--unit label { position: relative; }
.pko-tiers { display: grid; gap: 10px; }
.pko-tierset { padding: 14px; border-radius: 18px; background: var(--pk-paper); }
.pko-tierset .pko-f2 { grid-template-columns: 1.2fr .8fr .7fr 2fr; }
.pko-savebar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; }
.pko-savebar .pko-btn { min-height: 52px; padding: 0 28px; }

/* Тост */
.pko-toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 16px; background: var(--pk-ink); color: #fff; font-weight: 600; box-shadow: 0 20px 40px -10px rgba(0,0,0,.4); transform: translate(-50%, 150%); opacity: 0; transition: transform .3s, opacity .3s; }
.pko-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.pko-toast.is-bad { background: #b3261e; }

/* Адаптив */
@media (max-width: 1200px) {
	.pko-kpis { grid-template-columns: repeat(3, 1fr); }
	.pko-cols { grid-template-columns: 1fr 1fr; }
	.pko-tabs button span { display: none; }
	.pko-tabs button.is-on span { display: inline; }
}
@media (max-width: 860px) {
	:root { --lab: 92px; --cell: 42px; }
	/* backdrop-filter робить шапку контейнером для position:fixed — вимикаємо, щоб нижня навігація була внизу */
	.pko-top { padding: 8px 12px; gap: 8px; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--pk-card); justify-content: space-between; }
	.pko-top .pko-brand small, .pko-top .pko-brand b { display: none; }
	.pko-top__r .pko-btn span { display: none; }
	.pko-top__r .pko-btn { width: 44px; padding: 0; }
	/* вкладки — нижня навігація як у застосунку */
	.pko-tabs { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; justify-content: space-around; background: rgba(13,16,38,.92); backdrop-filter: blur(14px); padding: 6px; border-radius: 22px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.45); }
	.pko-tabs button { flex: 1; flex-direction: column; gap: 3px; padding: 8px 4px; color: rgba(255,255,255,.65); font-size: 11.5px; border-radius: 16px; }
	.pko-tabs button span, .pko-tabs button.is-on span { display: inline; }
	.pko-tabs button.is-on { background: rgba(255,255,255,.12); color: #fff; }
	.pko-tabs button:hover { background: rgba(255,255,255,.08); }
	.pko-badge { position: absolute; top: 2px; right: calc(50% - 22px); }
	.pko-main { padding: 18px 12px 120px; }
	.pko-kpis { grid-template-columns: 1fr 1fr; }
	.pko-kpi:first-child { grid-column: 1 / -1; }
	.pko-cols { grid-template-columns: 1fr; }
	.pko-legend { display: none; }
	.pko-grid { max-height: calc(100svh - 230px); }
	.pko-tr { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
	.pko-tr--h { display: none; }
	.pko-listbar__r { width: 100%; } .pko-listbar__r input { flex: 1; min-width: 0; }
	.pko-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
	.pko-chips button { flex: none; }
	.pko-f2, .pko-tierset .pko-f2 { grid-template-columns: 1fr 1fr; }
	.pko-dr { width: 100%; top: 6svh; border-radius: 24px 24px 0 0; transform: translateY(100%); }
	.pko-toast { bottom: 96px; }
	.pko-savebar { bottom: 96px; }
}
@media (max-width: 480px) {
	.pko-f2, .pko-tierset .pko-f2 { grid-template-columns: 1fr; }
}

/* ---------- Клієнти ---------- */
.pko-kpis--4 { grid-template-columns: repeat(4, 1fr); }
.pko-chip-tag { color: var(--pk-blue) !important; }
.pko-clients { display: grid; gap: 6px; }
.pko-client { display: grid; grid-template-columns: 46px minmax(0, 2.4fr) 1fr 1fr 1fr; gap: 14px; align-items: center; width: 100%; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--pk-card); text-align: left; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.pko-client:hover { box-shadow: 0 10px 24px -14px rgba(20,24,48,.35); transform: translateY(-1px); }
.pko-ava { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--fd); color: #fff; background: hsl(var(--h) 62% 52%); }
.pko-client__m { display: grid; gap: 2px; min-width: 0; }
.pko-client__m b { font-size: 15.5px; }
.pko-client__m small, .pko-client__s small { color: var(--pk-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pko-client__s { display: grid; }
.pko-client__s b { font-size: 15px; }
.pko-mk { font-style: normal; color: var(--pk-blue); font-size: 13px; }
.pko-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pko-tags em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--pk-blue-soft); color: #2238b5; }
.pko-tags em.is-auto { background: #e3f3e9; color: #1e7a4d; }
.pko-tags em.is-bad { background: #f3e1e1; color: #b3261e; }
.pko-cstats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 20px; }
.pko-cstats div { padding: 10px; border-radius: 14px; background: var(--pk-paper); display: grid; text-align: center; }
.pko-cstats b { font: 700 18px/1.1 var(--fd); }
.pko-cstats small { font-size: 11.5px; color: var(--pk-muted); }
.pko-cstats .is-bad b { color: #b3261e; }
.pko-check { display: flex; gap: 10px; align-items: center; font-size: 14px; margin-top: 12px; cursor: pointer; }
.pko-check input { width: 20px; height: 20px; accent-color: var(--pk-blue); margin: 0; }
.pko-merge { display: flex; gap: 8px; }
.pko-merge .pko-in { flex: 1; min-width: 0; }

/* ---------- Facebook ---------- */
.pko-fbhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.pko-fbpage { display: flex; align-items: center; gap: 12px; }
.pko-fbpage b { display: block; font: 600 20px/1.2 var(--fd); }
.pko-fbpage small { color: var(--pk-muted); }
.pko-fbicon { width: 48px; height: 48px; border-radius: 14px; background: #1877f2; color: #fff; display: grid; place-items: center; font: 800 28px/1 Arial, sans-serif; }
.pko-ok { color: #1e7a4d; font-style: normal; font-weight: 600; }
.pko-bad { color: #b3261e; font-style: normal; font-weight: 600; }
.pko-fbacts { display: flex; flex-wrap: wrap; gap: 8px; }
.pko-fbgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.pko-fbgrid .pko-panel { gap: 10px; min-width: 0; }
.pko-steps a, .pko-panel code { overflow-wrap: anywhere; }
.pko-steps { margin: 0; padding-left: 20px; display: grid; gap: 14px; font-size: 14px; }
.pko-steps a { color: var(--pk-blue); font-weight: 600; }
.pko-steps code, .pko-panel code { background: var(--pk-paper); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
.pko-link--bad { color: #b3261e; }
.pko-log { max-height: 260px; overflow-y: auto; display: grid; gap: 4px; }
.pko-log p { margin: 0; font-size: 13px; display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.pko-log small { color: var(--pk-muted); }
.pko-log .is-error { color: #b3261e; } .pko-log .is-ok { color: #1e7a4d; }
.pko-fbposts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.pko-fbpost { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 10px; border-radius: 16px; background: var(--pk-card); }
.pko-fbpost__img { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--pk-paper); display: grid; place-items: center; }
.pko-fbpost__img img { width: 100%; height: 100%; object-fit: cover; }
.pko-fbpost__img i { font-size: 11px; color: var(--pk-muted); text-align: center; padding: 4px; }
.pko-fbpost small { color: var(--pk-muted); font-size: 12px; }
.pko-fbpost b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; margin: 2px 0 6px; }
.pko-fbpost__a { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.pko-fbpost__a a { color: var(--pk-blue); font-weight: 600; text-decoration: none; }
@media (max-width: 1200px) { .pko-client { grid-template-columns: 46px minmax(0, 2fr) 1fr 1fr; } .pko-client__s:last-child { display: none; } }
@media (max-width: 860px) {
	.pko-kpis--4 { grid-template-columns: 1fr 1fr; }
	.pko-kpis--4 .pko-kpi:first-child { grid-column: auto; }
	.pko-client { grid-template-columns: 46px 1fr auto; }
	.pko-client__s:nth-of-type(n+3) { display: none; }
	.pko-cstats { grid-template-columns: repeat(3, 1fr); }
	.pko-fbgrid { grid-template-columns: minmax(0, 1fr); }
	.pko-tabs button { font-size: 10px; padding: 8px 2px; }
}
/* Мобільна нижня навігація на 6 вкладок і поля без переповнення */
.pko-f input, .pko-f select, .pko-f textarea, .pko-in { min-width: 0; }
@media (max-width: 860px) {
	.pko-tabs { gap: 2px; padding: 5px; }
	.pko-tabs button { flex: 1 1 0; min-width: 0; padding: 7px 1px; gap: 2px; }
	.pko-tabs button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; }
	.pko-steps { padding-left: 16px; }
}
.pko-panel { grid-template-columns: minmax(0, 1fr); }
.pko-kpis--4 .pko-kpi { min-width: 0; }
.pko-kpis--4 .pko-kpi span { overflow-wrap: anywhere; }
@media (max-width: 860px) {
	.pko-kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pko-kpis--4 .pko-kpi b { font-size: 22px; overflow-wrap: anywhere; }
	.pko-steps .pko-f2 { grid-template-columns: minmax(0, 1fr); }
}
.pko-steps { grid-template-columns: minmax(0, 1fr); }
.pko-steps li { min-width: 0; }

/* ---------- Редактор меню ---------- */
.pko-menuhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.pko-h1 { font-size: clamp(22px, 2.6vw, 30px); margin: 0; font-weight: 600; }
.pko-mcat { margin-bottom: 12px; }
.pko-mcat.is-off { opacity: .6; }
.pko-mcat__head { display: flex; gap: 10px; align-items: center; }
.pko-mcat__name { flex: 1; font: 600 17px/1 var(--fd) !important; border-radius: 12px !important; }
.pko-mcat__tools, .pko-mrow__tools { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex: none; }
.pko-ib { width: 32px; height: 32px; border: 0; border-radius: 10px; background: var(--pk-paper); cursor: pointer; font-size: 14px; display: grid; place-items: center; }
.pko-ib:hover:not(:disabled) { background: var(--pk-blue-soft); }
.pko-ib:disabled { opacity: .3; cursor: default; }
.pko-ib--bad:hover:not(:disabled) { background: #f3e1e1; color: #b3261e; }
.pko-tog { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--pk-muted); padding: 0 6px; cursor: pointer; }
.pko-tog input { accent-color: #b3261e; margin: 0; }
.pko-mrows { display: grid; gap: 4px; }
.pko-mrow { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr) 80px 84px 104px 236px; gap: 6px; align-items: center; padding: 4px; border-radius: 12px; }
.pko-mrow--h { font-size: 11.5px; font-weight: 600; color: var(--pk-muted); text-transform: uppercase; letter-spacing: .05em; padding-bottom: 0; }
.pko-mrow input:not([type=checkbox]) { width: 100%; min-width: 0; min-height: 38px; padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--pk-line); background: #fff; font-size: 14px; }
.pko-mrow input:focus { outline: 0; border-color: var(--pk-blue); box-shadow: 0 0 0 3px rgba(53,83,232,.14); }
.pko-mrow input[data-k="p"] { text-align: right; font-weight: 700; }
.pko-mrow.is-off { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(179,38,30,.05) 8px 16px); }
.pko-mrow.is-off input[data-k="n"] { text-decoration: line-through; color: var(--pk-muted); }
.pko-mrow.is-check { background: var(--pk-orange-soft); }
.pko-chk { border: 0; border-radius: 999px; padding: 6px 10px; background: var(--pk-orange); color: #fff; font-weight: 700; font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.pko-btn.is-dirty { background: var(--pk-orange); box-shadow: 0 8px 22px -10px rgba(255,106,44,.8); }
@media (max-width: 1100px) {
	.pko-mrow { grid-template-columns: 90px 90px minmax(0, 1fr); }
	.pko-mrow--h { display: none; }
	.pko-mrow input[data-k="d"] { grid-column: 1 / -1; }
	.pko-mrow input[data-k="n"] { grid-column: 1 / -1; }
	.pko-mrow__tools { grid-column: 1 / -1; justify-content: flex-end; }
	.pko-mrow { padding: 8px; border: 1px solid var(--pk-line); }
}
@media (max-width: 420px) {
	.pko-tabs button:not(.is-on) span { display: none; }
}
@media (max-width: 1440px) and (min-width: 861px) {
	.pko-tabs button span { display: none; }
	.pko-tabs button.is-on span { display: inline; }
}

/* ---------- Команда ---------- */
.pko-team { display: grid; gap: 6px; }
.pko-tmember { grid-template-columns: 46px minmax(0, 2.4fr) 1fr 1fr; }
.pko-role { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px !important; }
.pko-role--admin { background: var(--pk-ink); color: #fff; }
.pko-role--mgr { background: var(--pk-blue-soft); color: #2238b5; }
.pko-roles { display: grid; gap: 8px; }
.pko-rolecard { position: relative; display: block; cursor: pointer; }
.pko-rolecard input { position: absolute; opacity: 0; }
.pko-rolecard span { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--pk-paper); box-shadow: inset 0 0 0 1.5px transparent; }
.pko-rolecard small { color: var(--pk-muted); font-size: 12.5px; }
.pko-rolecard input:checked + span { background: var(--pk-blue-soft); box-shadow: inset 0 0 0 2px var(--pk-blue); }
.pko-rolecard input:disabled + span { opacity: .45; cursor: not-allowed; }
.pko-rolecard input:focus-visible + span { outline: 3px solid var(--pk-orange); }
.pko-passbox { display: grid; gap: 8px; margin-bottom: 14px; padding: 16px 18px; border-radius: 18px; background: #e3f3e9; color: #134e33; }
.pko-passbox__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pko-passbox__row span { width: 64px; font-size: 13px; color: #1e7a4d; }
.pko-passbox code { font: 600 15px/1.2 ui-monospace, Consolas, monospace; background: #fff; padding: 6px 10px; border-radius: 8px; user-select: all; }
.pko-passbox p { margin: 0; }
@media (max-width: 860px) { .pko-tmember { grid-template-columns: 46px 1fr auto; } .pko-tmember .pko-client__s:last-child { display: none; } }
/* ---------- Святкові ціни ---------- */
.pko-season { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #fff4ec, #eef1ff); margin-bottom: 10px; }
.pko-season.is-off { opacity: .55; }
.pko-season__top { display: flex; align-items: center; gap: 8px; }
.pko-season__top .pko-in { flex: 1; font-weight: 600; }
.pko-season__dates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pko-season__prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
@media (max-width: 480px) { .pko-season__dates { grid-template-columns: minmax(0, 1fr); } }