/* Shared app styling — booking wizard, learner portal, instructor backend */
body.app { background: var(--bone); min-height: 100vh; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.h-display { font-family: var(--f-display); font-stretch: 115%; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: .95; letter-spacing: -.005em; }

/* Top bar (wizard) */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 40px); background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar img { height: 44px; width: auto; }
.topbar a.back { font-weight: 700; text-decoration: none; font-size: 14px; color: var(--muted); }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-h h3, .card h3 { margin: 0; font-family: var(--f-display); font-stretch: 108%; font-weight: 800; font-size: 18px; }
.kicker { font: 700 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------------- Booking wizard ---------------- */
.wiz { width: min(1180px, 100% - 32px); margin: 32px auto 80px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.wiz-main { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.wiz-head { padding: 22px 28px 20px; background: #fafaf7; border-bottom: 1px solid var(--line); }
.wiz-head .row { justify-content: space-between; }
.wiz-head .kicker { color: var(--ink); }
.wiz-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 16px; }
.wiz-steps button { all: unset; cursor: default; display: grid; gap: 8px; }
.wiz-steps i { height: 6px; border-radius: 99px; background: #e6e6e0; transform: skewX(-20deg); transition: background .4s var(--ease); position: relative; overflow: hidden; }
.wiz-steps .done i { background: var(--ink); }
.wiz-steps .cur i { background: var(--lime); }
.wiz-steps span { font: 700 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.wiz-steps .cur span, .wiz-steps .done span { color: var(--ink); }
.wiz-steps .done { cursor: pointer; }
@media (max-width: 640px) { .wiz-steps span { display: none; } }
.wiz-body { padding: 30px 28px 10px; min-height: 420px; }
.wiz-body h2 { margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 36px); }
.wiz-body .lede { color: var(--muted); margin: 0 0 26px; }
.wiz-foot { display: flex; gap: 12px; padding: 18px 28px 26px; }
.wiz-foot .btn { flex: 1; padding: 16px; }
.step { animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } }
.sub-h { font-weight: 800; font-size: 14px; margin: 28px 0 12px; display: flex; align-items: center; gap: 10px; }
.sub-h::before { content: ''; width: 12px; height: 4px; background: var(--lime); transform: skewX(-24deg); }

/* Choice cards (radio-like) */
.choices { display: grid; gap: 12px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choices.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .choices.two, .choices.three { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #fff; transition: border-color .15s, box-shadow .2s, transform .2s; text-align: left; width: 100%; }
.choice:hover { border-color: #bdbdb5; transform: translateY(-1px); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice.on, .choice:has(input:checked) { border-color: var(--ink); box-shadow: 5px 5px 0 var(--lime); }
.choice .c-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.choice b { font-size: 17px; display: block; }
.choice p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.choice .tag { font: 700 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lime-700); margin-top: 12px; display: block; }
.choice .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9c9c1; display: grid; place-items: center; transition: .2s; }
.choice.on .radio, .choice:has(input:checked) .radio { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--lime); }
.choice .big { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 54px; line-height: .85; }
.choice .price { font-family: var(--f-mono); font-weight: 800; font-size: 20px; white-space: nowrap; }
.choice.pkg-row .c-top { align-items: center; }
.choice.pkg-row .pkg-l { display: flex; align-items: center; gap: 18px; }
.choice.pkg-row .hrs { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 34px; width: 74px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 15px; font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s; }
.chip.on { background: var(--ink); color: var(--lime); border-color: var(--ink); }

/* Calendar strip + slots */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day { flex: none; scroll-snap-align: start; width: 72px; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 6px; text-align: center; cursor: pointer; transition: .15s; }
.day small { display: block; font: 700 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.day b { display: block; font-family: var(--f-display); font-stretch: 120%; font-weight: 900; font-size: 26px; line-height: 1.1; }
.day .free { display: block; font-size: 11px; color: var(--lime-700); font-weight: 700; }
.day.full .free { color: var(--muted-2); }
.day.closed { opacity: .4; cursor: not-allowed; }
.day.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.day.on small { color: #aaa; } .day.on .free { color: var(--lime); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 6px; font: 700 14px var(--f-mono); cursor: pointer; transition: .12s; }
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot:disabled { background: repeating-linear-gradient(-45deg, #f4f4f0 0 6px, #ececE6 6px 12px); color: #b3b3ab; cursor: not-allowed; text-decoration: line-through; }
.slot.on { background: var(--lime); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.slot.in-range { background: var(--lime-50); border-color: var(--lime-600); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--line); vertical-align: -2px; margin-right: 6px; }
.legend .l-on { background: var(--lime); border-color: var(--ink); }
.legend .l-off { background: repeating-linear-gradient(-45deg, #f4f4f0 0 3px, #e6e6e0 3px 6px); }

/* Dropzone */
.drop { border: 2px dashed #c9c9c1; border-radius: 16px; padding: 22px; text-align: center; cursor: pointer; transition: .15s; background: #fafaf7; position: relative; }
.drop:hover, .drop.drag { border-color: var(--ink); background: var(--lime-50); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .d-ico { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 12px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-size: 22px; }
.drop b { display: block; }
.drop.has { border-style: solid; border-color: var(--ink); background: #fff; text-align: left; display: flex; gap: 16px; align-items: center; }
.drop.has img { width: 120px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.drop.has .d-ico { margin: 0; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #f4f4ef; border: 1px solid var(--line); font-size: 14px; color: #3d3d39; }
.notice b { color: var(--ink); }
.notice.lime { background: var(--lime-50); border-color: #d8f3a0; }
.notice.warn { background: #fff8e6; border-color: #f7dfa3; }
.notice.bad { background: #fdeeee; border-color: #f4c7c9; }
.notice .n-ico { flex: none; font-weight: 900; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin-top: 1px; flex: none; }
.check a { color: var(--ink); font-weight: 700; }
.inline-btn { display: flex; gap: 8px; } .inline-btn input { flex: 1; } .inline-btn .btn { flex: none; }

/* Summary rail */
.rail { position: sticky; top: 92px; display: grid; gap: 14px; }
.sum { background: var(--ink); color: #fff; border-radius: 22px; padding: 24px; overflow: hidden; position: relative; }
.sum::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border: 22px solid var(--lime); border-radius: 50%; opacity: .14; }
.sum h3 { font-family: var(--f-display); font-stretch: 115%; font-style: italic; font-weight: 900; text-transform: uppercase; margin: 0 0 16px; font-size: 20px; }
.sum dl { margin: 0; display: grid; gap: 0; }
.sum dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #262624; font-size: 14px; }
.sum dt { color: #9a9a93; } .sum dd { margin: 0; text-align: right; font-weight: 700; }
.sum .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.sum .total b { font: 800 28px var(--f-mono); color: var(--lime); }
.rail .help { font-size: 13px; color: var(--muted); padding: 0 6px; }
.rail .help a { color: var(--ink); font-weight: 700; }
@media (max-width: 980px) { .wiz { grid-template-columns: 1fr; } .rail { position: static; order: -1; } .sum dl, .rail .help { display: none; } .sum { padding: 16px 20px; } .sum h3 { margin: 0; font-size: 15px; } .sum .total { margin-top: 6px; } .sum .total b { font-size: 22px; } }

/* Success */
.done-hero { text-align: center; padding: 20px 0 10px; }
.done-hero .ok { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 24px; background: var(--lime); display: grid; place-items: center; font-size: 40px; font-weight: 900; box-shadow: 6px 6px 0 var(--ink); animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.3) rotate(-25deg); opacity: 0; } }
.ref { display: inline-block; font: 800 22px var(--f-mono); background: var(--bone); border: 1.5px dashed var(--ink); border-radius: 10px; padding: 8px 16px; margin: 6px 0 18px; letter-spacing: .06em; }
pre.bank { background: var(--bone); border-radius: 12px; padding: 16px; font: 500 14px/1.6 var(--f-mono); white-space: pre-wrap; margin: 0; }

/* Modal */
.modal-wrap { position: fixed; inset: 0; z-index: 1000; background: rgba(11,11,11,.55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; background: #fff; border-radius: 20px; padding: 26px; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); animation: modalIn .3s var(--ease); }
.modal.wide { width: min(820px, 100%); }
@keyframes modalIn { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.modal h3 { margin: 0 0 8px; font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: 22px; }
.modal p { color: var(--muted); margin: 0 0 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--bone); font-size: 22px; cursor: pointer; line-height: 1; }

/* ---------------- Portal / admin shell ---------------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-logo { display: block; background: #fff; border-radius: 14px; padding: 8px 12px; margin: 0 4px 18px; }
.side-logo img { height: 52px; width: auto; margin: 0 auto; }
.side-role { font: 700 10px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: #777; padding: 8px 12px 6px; }
.side a.nav-i { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #cfcfc9; text-decoration: none; font-weight: 700; font-size: 14px; transition: background .15s, color .15s; position: relative; }
.side a.nav-i svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.side a.nav-i:hover { background: #1c1c1b; color: #fff; }
.side a.nav-i.on { background: var(--lime); color: var(--ink); }
.side a.nav-i.on svg { opacity: 1; }
.side .count { margin-left: auto; background: var(--lime); color: var(--ink); font: 800 11px var(--f-mono); padding: 2px 7px; border-radius: 99px; }
.side a.nav-i.on .count { background: var(--ink); color: var(--lime); }
.side-foot { margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid #222; display: grid; gap: 10px; font-size: 13px; color: #999; }
.side-foot b { color: #fff; display: block; font-size: 14px; }
.side-foot button { all: unset; cursor: pointer; color: var(--lime); font-weight: 700; }
.main { padding: 26px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-h h1 { margin: 0; font-size: clamp(28px, 3.6vw, 44px); }
.page-h p { margin: 6px 0 0; color: var(--muted); }
.bell { position: relative; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; }
.bell .dot { position: absolute; top: 7px; right: 7px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--danger); color: #fff; font: 800 10px/18px var(--f-mono); text-align: center; padding: 0 4px; border: 2px solid #fff; }
.mob-bar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .shell.nav-open .side { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,.4); }
  .mob-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--ink); position: sticky; top: 0; z-index: 30; }
  .mob-bar img { height: 36px; background: #fff; border-radius: 8px; padding: 2px 6px; }
  .mob-bar button { width: 42px; height: 42px; border-radius: 10px; border: 0; background: var(--lime); font-size: 20px; font-weight: 900; }
}

/* Grids & stats */
.g { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.g > * { min-width: 0; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 1100px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-21, .g-12, .g-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .g-4, .g-2 { grid-template-columns: 1fr; } }
.stat-c { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 4px; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.stat-c:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-c .k { font: 700 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat-c .v { font-family: var(--f-display); font-stretch: 118%; font-style: italic; font-weight: 900; font-size: 36px; line-height: 1.05; }
.stat-c .s { font-size: 13px; color: var(--muted); }
.stat-c.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat-c.dark .v { color: var(--lime); }
.stat-c.lime { background: var(--lime); border-color: var(--lime); }
.stat-c.lime .k, .stat-c.lime .s { color: #27360a; }

/* Lists / tables */
.list { display: grid; }
.li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li > .badge, .li > .btn, .li > .stars, .li > b { flex: none; }
.li .when { flex: none; width: 58px; text-align: center; border-radius: 12px; background: var(--bone); padding: 6px 0; }
.li .when small { display: block; font: 700 10px var(--f-mono); text-transform: uppercase; color: var(--muted); letter-spacing: .1em; }
.li .when b { font-family: var(--f-display); font-stretch: 120%; font-weight: 900; font-size: 22px; line-height: 1.05; }
.li .when.dark { background: var(--ink); color: #fff; } .li .when.dark small { color: var(--lime); }
.li .info:not(.badge) { flex: 1; min-width: 0; }
.li .info:not(.badge) b { display: block; }
.li .info:not(.badge) span { color: var(--muted); font-size: 13px; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; font-size: 14px; }
.empty .e-ico { font-size: 26px; margin-bottom: 6px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font: 700 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.t td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: #fafaf6; }
.t-wrap { overflow-x: auto; }
.person { display: flex; align-items: center; gap: 12px; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font: 800 14px var(--f-mono); }
.avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.mini-bar { width: 100px; height: 8px; border-radius: 99px; background: #eee; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.mini-bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.mini-bar i.hi { background: var(--lime-600); }

/* Gauge, sparkline, objective bars */
.gauge { width: 100%; max-width: 260px; display: block; margin: 0 auto; }
.g-bg { fill: none; stroke: #ececE6; stroke-width: 16; stroke-linecap: round; }
.g-fg { fill: none; stroke: var(--lime); stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
.g-tick { stroke: #c9c9c1; stroke-width: 2; }
.gauge-wrap { position: relative; text-align: center; }
.gauge-wrap .card-h { flex-direction: column; gap: 8px; }
.gauge-wrap .num { margin-top: -54px; font-family: var(--f-display); font-stretch: 125%; font-style: italic; font-weight: 900; font-size: 52px; line-height: 1; }
.gauge-wrap .num small { font-size: 22px; }
.gauge-wrap .lbl { margin-top: 10px; }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.parts div { background: var(--bone); border-radius: 10px; padding: 8px; text-align: center; }
.parts b { display: block; font: 800 16px var(--f-mono); }
.parts span { font-size: 11px; color: var(--muted); font-weight: 700; }
.spark { width: 100%; height: auto; }
.sp-grid { stroke: #eee; stroke-width: 1; }
.sp-area { fill: rgba(171,246,20,.18); }
.sp-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sp-dot { fill: var(--lime); stroke: var(--ink); stroke-width: 2; }
.objs { display: grid; gap: 4px; }
.obj { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 54px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.obj:last-child { border-bottom: 0; }
.obj .o-t b { font-weight: 700; } .obj .o-t small { display: block; color: var(--muted); font-size: 12px; }
.crit-tag { font: 700 9px var(--f-mono); background: var(--ink); color: var(--lime); padding: 2px 5px; border-radius: 4px; letter-spacing: .08em; margin-left: 6px; vertical-align: 2px; }
.segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.segs i { height: 12px; background: #ececE6; border-radius: 3px; transform: skewX(-16deg); }
.segs i.on { background: var(--ink); }
.segs.good i.on { background: var(--lime-600); }
.obj .o-s { font: 800 13px var(--f-mono); text-align: right; }
.trend-up { color: var(--lime-700); font-size: 11px; }
.cat-h { font: 700 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 18px 0 2px; display: flex; justify-content: space-between; }
.blockers { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.blockers li { display: flex; gap: 10px; font-size: 14px; padding: 10px 12px; background: #fff7f7; border: 1px solid #f6d5d6; border-radius: 10px; }
.blockers li::before { content: '!'; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--danger); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 12px; }
.blockers li.soft { background: #fffaf0; border-color: #f4e2b8; } .blockers li.soft::before { background: var(--warn); }
.blockers li.ok { background: var(--lime-50); border-color: #d8f3a0; } .blockers li.ok::before { content: '✓'; background: var(--ink); color: var(--lime); }

/* Feedback cards */
.fb { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fff; display: grid; gap: 12px; }
.fb-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-h b { font-family: var(--f-display); font-stretch: 108%; font-weight: 800; }
.stars { color: var(--ink); letter-spacing: 2px; font-size: 16px; }
.stars em { font-style: normal; color: #d6d6cf; }
.fb .note { margin: 0; }
.fb .strong { background: #f4f4ef; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.fb .hint { background: var(--lime-50); border-left: 4px solid var(--lime); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.score-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.score-chips span { font-size: 12px; font-weight: 700; background: var(--bone); border-radius: 99px; padding: 4px 10px; }
.score-chips span b { font-family: var(--f-mono); margin-left: 4px; }

/* Notifications */
.notes-list .n { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.notes-list .n.unread { background: linear-gradient(90deg, var(--lime-50), transparent); }
.n-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--bone); display: grid; place-items: center; font-size: 16px; }
.n .n-t { font-weight: 700; } .n .n-b { color: var(--muted); font-size: 14px; } .n .n-a { color: var(--muted-2); font-size: 12px; font-family: var(--f-mono); }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art .logo-chip { background: #fff; border-radius: 16px; padding: 10px 16px; align-self: flex-start; }
.login-art .logo-chip img { height: 64px; width: auto; }
.login-art h1 { font-size: clamp(40px, 5vw, 76px); margin: 0; position: relative; z-index: 1; }
.login-art p { color: #aaa; max-width: 420px; position: relative; z-index: 1; }
.login-art .rings { position: absolute; right: -140px; bottom: -140px; width: 520px; height: 520px; border-radius: 50%; border: 60px solid var(--lime); opacity: .12; }
.login-art .rings::after { content: ''; position: absolute; inset: 70px; border-radius: 50%; border: 30px solid var(--lime); }
.login-form { display: grid; place-items: center; padding: 32px 20px; }
.login-form form { width: min(400px, 100%); display: grid; gap: 16px; }
.login-form h2 { margin: 0; font-size: 34px; }
.login-form .alt { font-size: 14px; color: var(--muted); text-align: center; }
.login-form .alt a, .linkish { color: var(--ink); font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-art { padding: 28px; min-height: 260px; } .login-art p { display: none; } }

/* Schedule (admin week grid) */
.week { display: grid; grid-template-columns: 56px repeat(7, minmax(110px, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; min-width: 860px; }
.week .wh { padding: 10px 8px; background: #fafaf6; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); text-align: center; font-size: 13px; }
.week .wh b { display: block; font-family: var(--f-display); font-stretch: 115%; font-weight: 900; font-size: 20px; }
.week .wh.today { background: var(--ink); color: #fff; } .week .wh.today b { color: var(--lime); }
.week .wt { font: 600 11px var(--f-mono); color: var(--muted); text-align: right; padding: 4px 8px 0 0; border-bottom: 1px solid #f0f0ea; height: 54px; }
.week .wc { border-left: 1px solid var(--line); border-bottom: 1px solid #f0f0ea; height: 54px; position: relative; }
.week .wc.blocked { background: repeating-linear-gradient(-45deg, #f6f6f2 0 6px, #eeeee8 6px 12px); }
.week .wc.closed { background: #f6f6f2; }
.ev { position: absolute; left: 4px; right: 4px; top: 3px; z-index: 2; border-radius: 9px; padding: 6px 8px; font-size: 12px; line-height: 1.3; cursor: pointer; overflow: hidden; background: var(--ink); color: #fff; border-left: 4px solid var(--lime); transition: transform .15s; }
.ev:hover { transform: scale(1.02); }
.ev b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.completed { background: #e9f8d2; color: var(--ink); border-left-color: var(--lime-700); }
.ev.no_show { background: #fdeaea; color: #8b2024; border-left-color: var(--danger); }
.ev.unverified { border-left-color: var(--warn); }
.ev .ev-warn { color: var(--warn); font-weight: 800; }

/* Licence viewer */
.lic-view { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #f6f6f2; display: grid; place-items: center; min-height: 220px; }
.lic-view img { max-height: 420px; width: auto; cursor: zoom-in; }
.lic-view iframe { width: 100%; height: 420px; border: 0; }
.checks { display: grid; gap: 6px; }
.checks div { display: grid; grid-template-columns: 22px 150px 1fr; gap: 8px; font-size: 13px; align-items: start; }
.checks .r { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-weight: 900; font-size: 11px; }
.checks .pass .r { background: var(--ink); color: var(--lime); }
.checks .warn .r { background: var(--warn); color: #fff; }
.checks .fail .r { background: var(--danger); color: #fff; }
.checklist { display: grid; gap: 10px; }

/* Rating input */
.rate { display: flex; gap: 6px; }
.rate button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; transition: .12s; }
.rate button.on { background: var(--lime); border-color: var(--ink); }
.score-grid { display: grid; gap: 4px; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f0f0ea; font-size: 14px; }
.score-row:last-child { border-bottom: 0; }
.score-row .seg-in { display: flex; gap: 3px; }
.score-row .seg-in button { width: 30px; height: 28px; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; font: 700 12px var(--f-mono); cursor: pointer; }
.score-row .seg-in button.on { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.score-row .prev { font: 600 11px var(--f-mono); color: var(--muted); }
.tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; width: fit-content; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 9px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; cursor: pointer; }
.tabs button.on { background: var(--ink); color: var(--lime); }
iframe.mail { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 12px; background: #f2f2ee; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.load-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.load-bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.load-bars i { width: 100%; border-radius: 6px 6px 3px 3px; background: var(--ink); min-height: 3px; transform-origin: bottom; animation: grow .9s var(--ease) both; }
.load-bars i.hi { background: var(--lime-600); }
.load-bars span { font: 600 10px var(--f-mono); color: var(--muted); }
@keyframes grow { from { transform: scaleY(0); } }
