/* ==========================================================================
   Work-Flow page v2 — plain-language flow map, simpler phone apps,
   distinct dashboard views, phone-friendly cashier preview
   ========================================================================== */
:root {
  --fm-accent: #9a7bff;
  --fm-in: #5aa9ff;
  --fm-out: #3ddc97;
  --fm-card: color-mix(in srgb, var(--surface) 88%, transparent);
  --fm-card-2: color-mix(in srgb, var(--surface) 70%, #9a7bff 6%);
}

/* ---------- Flow map ---------- */
.fm-section { scroll-margin-top: 90px; }
.fm {
  margin-top: clamp(26px, 4vw, 44px);
  border: 1px solid color-mix(in srgb, var(--line) 80%, var(--fm-accent) 20%);
  border-radius: 28px;
  background: radial-gradient(120% 80% at 50% 0, color-mix(in srgb, var(--fm-accent) 9%, transparent), transparent 60%), var(--fm-card);
  padding: clamp(14px, 2.4vw, 28px);
  overflow: hidden;
}
.fm-scenes { display: flex; flex-wrap: wrap; gap: 10px; }
.fm-scenes button {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text); font: 600 14px/1 var(--sans); cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.fm-scenes button span { font-size: 17px; }
.fm-scenes button:hover { border-color: color-mix(in srgb, var(--fm-accent) 60%, transparent); }
.fm-scenes button:active { transform: scale(.97); }
.fm-scenes button[aria-pressed="true"] { background: var(--fm-accent); border-color: var(--fm-accent); color: #fff; box-shadow: 0 8px 30px -10px var(--fm-accent); }
.fm-stage { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: clamp(16px, 2.4vw, 30px); margin-top: 20px; align-items: stretch; }
.fm-map-wrap { position: relative; min-width: 0; }
.fm-map-legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.fm-map-legend span { display: inline-flex; gap: 7px; align-items: center; }
.fm-map-legend i { width: 10px; height: 10px; border-radius: 50%; }
.fm-lg-in { background: var(--fm-in); }
.fm-lg-out { background: var(--fm-out); }
.fm-map { width: 100%; margin-top: 6px; }
.fm-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.fm-tip { margin: 4px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.fm-line { fill: none; stroke: color-mix(in srgb, var(--text) 16%, transparent); stroke-width: 2; }
.fm-line-flow { fill: none; stroke: var(--fm-accent); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 10 14; opacity: 0; transition: opacity .3s; animation: fm-dash 1s linear infinite; }
.fm-line-flow.is-on { opacity: 1; }
.fm-line-flow.is-rev { animation-direction: reverse; }
@keyframes fm-dash { to { stroke-dashoffset: -24; } }
.fm-amb { fill: color-mix(in srgb, var(--fm-accent) 70%, var(--text) 30%); opacity: .55; }
.fm-packet { fill: #fff; stroke: var(--fm-accent); stroke-width: 3; filter: drop-shadow(0 0 8px var(--fm-accent)) drop-shadow(0 0 16px var(--fm-accent)); }

.fm-node, .fm-brain { cursor: pointer; outline: none; }
.fm-card { fill: var(--surface); stroke: color-mix(in srgb, var(--line) 100%, transparent); stroke-width: 1.4; transition: stroke .3s, fill .3s; }
.fm-node:hover .fm-card, .fm-node:focus-visible .fm-card { stroke: color-mix(in srgb, var(--fm-accent) 70%, transparent); }
.fm-ic-bg { fill: color-mix(in srgb, var(--fm-in) 16%, transparent); transition: fill .3s; }
.fm-out .fm-ic-bg { fill: color-mix(in srgb, var(--fm-out) 16%, transparent); }
.fm-ic { fill: none; stroke: var(--fm-in); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fm-out .fm-ic { stroke: var(--fm-out); }
.fm-label { fill: var(--text); font-size: 15px; font-weight: 700; }
.fm-label-c { text-anchor: middle; font-size: 13.5px; }
.fm-sub { fill: var(--muted); font-size: 12.5px; }
.fm-status { fill: var(--muted); font-size: 12px; font-weight: 600; }
.fm-led { fill: color-mix(in srgb, var(--text) 18%, transparent); transition: fill .3s; }
.fm-node.is-touched .fm-led { fill: var(--fm-out); }
.fm-node.is-active .fm-card { stroke: var(--fm-accent); stroke-width: 2.4; fill: color-mix(in srgb, var(--surface) 86%, var(--fm-accent) 14%); }
.fm-node.is-active .fm-status { fill: var(--text); }
.fm-node.is-active .fm-led { fill: var(--fm-accent); animation: fm-blink 1s ease-in-out infinite; }
.fm-node.is-picked .fm-card { stroke: var(--text); stroke-width: 2.4; }
@keyframes fm-blink { 50% { opacity: .3; } }
.fm-brain-halo { fill: color-mix(in srgb, var(--fm-accent) 10%, transparent); transform-origin: 0 0; }
.fm-brain-ring { fill: none; stroke: color-mix(in srgb, var(--fm-accent) 50%, transparent); stroke-width: 1.5; stroke-dasharray: 4 7; transform-origin: 0 0; animation: fm-spin 18s linear infinite; }
.fm-brain-core { fill: var(--surface); stroke: var(--fm-accent); stroke-width: 2; }
.fm-brain-t { fill: var(--text); text-anchor: middle; font-size: 14px; font-weight: 800; }
.fm-brain-s { fill: var(--muted); text-anchor: middle; font-size: 11px; }
.fm-brain.is-active .fm-brain-halo { animation: fm-pulse 1.8s ease-out infinite; }
.fm-brain.is-think .fm-brain-ring { animation-duration: 3s; stroke: var(--fm-accent); }
.fm-brain.is-picked .fm-brain-core { stroke-width: 4; }
@keyframes fm-spin { to { transform: rotate(360deg); } }
@keyframes fm-pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }

.fm-panel {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 2vw, 24px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.fm-panel.is-in .fm-title, .fm-panel.is-in .fm-text, .fm-panel.is-in .fm-screen { animation: fm-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.fm-panel.is-in .fm-text { animation-delay: .05s; }
.fm-panel.is-in .fm-screen { animation-delay: .1s; }
@keyframes fm-in { from { opacity: 0; transform: translateY(10px); } }
.fm-count { color: var(--fm-accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fm-title { margin: 8px 0 8px; font-size: clamp(21px, 2vw, 26px); line-height: 1.15; letter-spacing: -.02em; }
.fm-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.fm-screen { flex: 1; display: flex; align-items: center; justify-content: center; margin: 18px 0; min-height: 190px; }
.fm-controls { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; }
.fm-btn { min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 600 14px var(--sans); cursor: pointer; transition: background .2s, opacity .2s; }
.fm-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--text) 7%, transparent); }
.fm-btn:disabled { opacity: .35; cursor: default; }
.fm-btn.primary { background: var(--fm-accent); border-color: var(--fm-accent); color: #fff; }
.fm-btn.primary:hover { background: color-mix(in srgb, var(--fm-accent) 85%, #fff); }
.fm-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.fm-dots button { width: 26px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--text) 15%, transparent); cursor: pointer; transition: background .3s, width .3s; }
.fm-dots button.is-done { background: color-mix(in srgb, var(--fm-accent) 50%, transparent); }
.fm-dots button.is-on { width: 40px; background: var(--fm-accent); }
.fm-panel.is-about .fm-controls, .fm-panel.is-about .fm-dots { visibility: hidden; }
.fm-back { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 12px 20px; font: 600 14px var(--sans); cursor: pointer; }

/* mini screens shown in the panel */
.fm-s { width: min(100%, 300px); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .5); font-size: 13px; color: var(--text); }
.fm-s-body { padding: 14px; display: grid; gap: 9px; }
.fm-s-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--text) 4%, transparent); }
.fm-s-bar i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--text) 25%, transparent); }
.fm-s-bar span { margin-left: 6px; font-size: 11px; color: var(--muted); }
.fm-s-phone { width: min(100%, 250px); border-radius: 26px; border: 6px solid #1d1e22; }
.fm-s-kds { background: #0b0c10; color: #f5f5f7; border-color: #2a2b31; }
.fm-big { font-size: 16px; }
.fm-huge { font-size: 28px; letter-spacing: -.02em; }
.fm-muted { color: var(--muted); }
.fm-row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.fm-row b { color: var(--text); }
.fm-row.is-warn b { color: #f5a524; }
.fm-paid { margin-top: 4px; padding: 9px; border-radius: 10px; text-align: center; font-weight: 700; color: #0b3d24; background: var(--fm-out); }
.fm-check { display: flex; gap: 9px; align-items: center; font-weight: 600; }
.fm-check i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 12px; color: #fff; background: var(--fm-out); flex: none; }
.fm-ticket { border-radius: 10px; background: #fff; color: #111; overflow: hidden; }
.fm-ticket-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f5a524; color: #111; }
.fm-ticket-h span { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: #111; color: #fff; }
.fm-ticket-h em { margin-left: auto; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.fm-ticket p { margin: 0; padding: 8px 10px; border-top: 1px dashed #ddd; font-weight: 600; }
.fm-notif { display: flex; gap: 10px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.fm-notif-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: #e8473b; color: #fff; font: italic 700 17px var(--serif); }
.fm-notif small { color: var(--muted); font-size: 10.5px; }
.fm-notif b { display: block; margin: 2px 0; }
.fm-notif p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.fm-driver { display: flex; gap: 12px; align-items: center; }
.fm-driver small { display: block; color: var(--muted); }
.fm-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f5a524; color: #111; font-weight: 800; }
.fm-progress { height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.fm-progress i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #f5a524, #ffcf6b); animation: fm-grow 1.4s ease both; }
@keyframes fm-grow { from { width: 0 !important; } }
.fm-up { color: var(--fm-out); font-weight: 700; }
.fm-spark { display: flex; align-items: end; gap: 5px; height: 54px; }
.fm-spark i { flex: 1; border-radius: 4px 4px 1px 1px; background: color-mix(in srgb, var(--fm-accent) 45%, transparent); }
.fm-spark i:last-child { background: var(--fm-accent); }
.fm-split { display: flex; height: 26px; border-radius: 8px; overflow: hidden; font-size: 10.5px; font-weight: 700; color: #fff; }
.fm-split span { display: grid; place-items: center; }
.fm-split span:nth-child(1) { background: #9a7bff; }
.fm-split span:nth-child(2) { background: #5aa9ff; }
.fm-split span:nth-child(3) { background: #3ddc97; color: #0b3d24; }
.fm-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.fm-item small { display: block; color: var(--muted); font-size: 11px; }
.fm-item em { margin-left: auto; font-style: normal; font-weight: 700; }
.fm-item.is-out { opacity: .55; }
.fm-item.is-out small { color: #ff6b6b; font-weight: 700; }
.fm-dot-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--text) 8%, transparent); font-size: 18px; }
.fm-soldbtn { padding: 14px; border-radius: 10px; text-align: center; font-weight: 800; background: #24262d; }
.fm-soldbtn.is-on { background: #e5484d; color: #fff; }
.fm-approve { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.fm-approve span, .fm-approve b { padding: 10px; border-radius: 12px; text-align: center; font-weight: 700; }
.fm-approve span { background: color-mix(in srgb, var(--text) 8%, transparent); }
.fm-approve b { background: var(--fm-out); color: #0b3d24; }
.fm-endcard { display: grid; gap: 14px; justify-items: center; width: 100%; }
.fm-endnext { display: grid; gap: 8px; width: 100%; }
.fm-endnext button { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); font: 600 14px var(--sans); cursor: pointer; }
.fm-endnext button:hover { border-color: var(--fm-accent); }

@media (max-width: 980px) {
  .fm-stage { grid-template-columns: 1fr; }
  .fm-screen { min-height: 0; }
}
@media (max-width: 620px) {
  .fm { border-radius: 22px; padding: 12px; }
  .fm-scenes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 4px; scroll-snap-type: x mandatory; }
  .fm-scenes::-webkit-scrollbar { display: none; }
  .fm-scenes button { flex: none; scroll-snap-align: start; font-size: 13.5px; }
  .fm-map-legend { justify-content: center; font-size: 11.5px; }
  .fm-panel { padding: 16px; border-radius: 18px; }
  .fm-title { font-size: 20px; }
  .fm-text { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .fm-line-flow, .fm-brain-ring, .fm-brain-halo { animation: none !important; }
}

/* ---------- Phone apps (inside .wp-screen, sized with cqw) ---------- */
.wf-page .wp-screen { color: #f4f2fb; font-family: var(--sans); }
.wf-page .wp-body { gap: 3.2cqw; padding: 1.5cqw 4.6cqw 4cqw; position: relative; }
.wf-page .wp-body[data-tab="map"] { padding: 0; }
.wp-screen h4 { margin: 0; font-size: 6.4cqw; letter-spacing: -.02em; }
.pp-title small, .pp-hello small { color: #a3a3b2; font-size: 3.3cqw; }
.pp-title { display: grid; gap: .8cqw; margin-top: 1cqw; }
.pp-hello { display: grid; gap: .4cqw; }
.pp-hero { position: relative; padding: 4.2cqw 4.2cqw 0; border-radius: 5cqw; background: linear-gradient(160deg, color-mix(in srgb, var(--a) 26%, #14141c), #101016); color: var(--a); overflow: hidden; }
.pp-hero small { color: #c9c9d6; font-size: 3.3cqw; }
.pp-hero b { display: block; color: #fff; font-size: 9cqw; letter-spacing: -.03em; margin: .8cqw 0; font-variant-numeric: tabular-nums; }
.pp-up { color: #4ade80; font-size: 3.2cqw; font-weight: 700; }
.pp-area { display: block; width: calc(100% + 8.4cqw); height: 15cqw; margin: 2cqw -4.2cqw 0; }
.pp-live-dot { animation: pp-blink 1.4s ease-in-out infinite; }
@keyframes pp-blink { 50% { opacity: .3; } }
.pp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.pp-tile { display: grid; justify-items: start; gap: .6cqw; padding: 3.2cqw; border: 0; border-radius: 4cqw; background: #ffffff0d; color: #f4f2fb; font: inherit; cursor: pointer; text-align: left; }
.pp-tile .wp-ic { color: var(--a); }
.pp-tile b { font-size: 6.2cqw; }
.pp-tile small { color: #a3a3b2; font-size: 3cqw; }
.pp-tile:active, .pp-btn:active, .pp-sys:active, .pp-order:active { transform: scale(.97); }
.pp-section-t { color: #a3a3b2; font-size: 3.2cqw; font-weight: 600; margin-top: 1cqw; }
.pp-systems { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4cqw; }
.pp-sys { position: relative; display: grid; justify-items: center; gap: 1.2cqw; padding: 2.6cqw 0 2cqw; border: 0; border-radius: 3.6cqw; background: #ffffff0b; color: #e5e5ee; font: inherit; cursor: pointer; }
.pp-sys i { position: absolute; top: 1.8cqw; right: 2.6cqw; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 .7cqw #4ade8030; }
.pp-sys small { font-size: 2.6cqw; color: #a3a3b2; }
.pp-sys.is-warn { background: #f5a5241f; color: #f5a524; }
.pp-sys.is-warn i { background: #f5a524; box-shadow: 0 0 0 .7cqw #f5a52440; animation: pp-blink 1s infinite; }
.pp-sys.is-busy i { background: #5aa9ff; animation: pp-blink .7s infinite; }
.pp-warnbar { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; padding: 3.4cqw 4cqw; border: 0; border-radius: 4cqw; background: #f5a524; color: #1a1205; font: inherit; font-size: 3.5cqw; cursor: pointer; text-align: left; }
.pp-warnbar span { font-weight: 700; white-space: nowrap; }
.pp-warnbar.is-static { cursor: default; background: #f5a5242a; color: #f5c56b; }
.pp-ok { display: flex; align-items: center; gap: 2cqw; padding: 3.4cqw 4cqw; border-radius: 4cqw; background: #4ade801c; color: #4ade80; font-size: 3.5cqw; font-weight: 700; }
.pp-order { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8cqw 2.8cqw; width: 100%; padding: 3.2cqw; border: 0; border-radius: 4cqw; background: #ffffff0b; color: #f4f2fb; font: inherit; text-align: left; cursor: pointer; }
.pp-ch { display: grid; place-items: center; width: 9.5cqw; height: 9.5cqw; border-radius: 3cqw; background: color-mix(in srgb, var(--a) 18%, transparent); color: var(--a); grid-row: span 2; }
.pp-o-main b { display: block; font-size: 3.6cqw; }
.pp-o-main small { color: #a3a3b2; font-size: 3cqw; }
.pp-order em { font-style: normal; font-weight: 700; font-size: 3.4cqw; }
.pp-steps { grid-column: 2 / 4; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1cqw; }
.pp-steps i { height: 1.3cqw; border-radius: 1cqw; background: #ffffff1a; }
.pp-steps i.is-done { background: #4ade80; }
.pp-steps i.is-now { background: var(--a); animation: pp-blink 1.2s infinite; }
.pp-o-items { grid-column: 1 / 4; padding-top: 2cqw; border-top: .3cqw solid #ffffff14; color: #c9c9d6; font-size: 3.3cqw; }
.pp-alert { display: flex; gap: 3cqw; padding: 4cqw; border-radius: 4.4cqw; background: #ffffff0b; }
.pp-alert > .wp-ic { flex: none; width: 7cqw; height: 7cqw; padding: 1.6cqw; border-radius: 50%; box-sizing: content-box; }
.pp-alert.is-warn > .wp-ic { color: #f5a524; background: #f5a52422; }
.pp-alert.is-busy > .wp-ic { color: #5aa9ff; background: #5aa9ff22; }
.pp-alert.is-ok > .wp-ic { color: #4ade80; background: #4ade8022; }
.pp-alert.is-info > .wp-ic { color: var(--a); background: color-mix(in srgb, var(--a) 18%, transparent); }
.pp-alert > div { flex: 1; min-width: 0; }
.pp-alert b { font-size: 3.7cqw; }
.pp-alert p { margin: 1cqw 0 0; color: #a3a3b2; font-size: 3.2cqw; line-height: 1.4; }
.pp-alert .pp-btn { margin-top: 3cqw; width: 100%; }
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 2cqw; min-height: 10.5cqw; padding: 0 4cqw; border: .3cqw solid #ffffff22; border-radius: 3.4cqw; background: #ffffff0d; color: #f4f2fb; font: inherit; font-size: 3.5cqw; font-weight: 700; cursor: pointer; transition: transform .12s, background .2s; }
.pp-btn.primary { background: var(--a); border-color: var(--a); color: #111; }
.pp-btn.sm { min-height: 8.6cqw; padding: 0 3cqw; font-size: 3.1cqw; flex: none; }
.pp-bar { height: 1.6cqw; margin-top: 2.2cqw; border-radius: 2cqw; background: #ffffff1a; overflow: hidden; }
.pp-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--a); transform-origin: left; animation: pp-fill 2.6s linear both; }
@keyframes pp-fill { from { transform: scaleX(.05); } }
.pp-toast { position: absolute; left: 5cqw; right: 5cqw; bottom: 25cqw; z-index: 20; padding: 3.2cqw 4cqw; border-radius: 4cqw; background: #f4f2fb; color: #111; font-size: 3.4cqw; font-weight: 700; text-align: center; box-shadow: 0 3cqw 8cqw #0008; opacity: 0; transform: translateY(3cqw); transition: opacity .25s, transform .25s; pointer-events: none; }
.pp-toast.is-on { opacity: 1; transform: none; }
.pp-card { display: grid; gap: 1.6cqw; padding: 4cqw; border: 0; border-radius: 4.4cqw; background: #ffffff0b; color: #f4f2fb; font: inherit; text-align: left; }
.pp-card small { color: #a3a3b2; font-size: 3.2cqw; }
.pp-card .pp-btn { margin-top: 1.4cqw; }
.pp-card-h { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; font-size: 3.7cqw; }
.pp-row { grid-template-columns: auto 1fr auto; align-items: center; gap: 3cqw; cursor: pointer; }
.pp-row b { display: block; font-size: 3.6cqw; }
.pp-row em { font-style: normal; color: var(--a); font-size: 3.2cqw; font-weight: 700; }
.pp-pill { padding: 1cqw 2.6cqw; border-radius: 9cqw; background: color-mix(in srgb, var(--a) 22%, transparent); color: var(--a); font-size: 2.8cqw; font-weight: 800; }
.pp-pill.ok { background: #4ade8022; color: #4ade80; }
.pp-av { display: grid; place-items: center; width: 10cqw; height: 10cqw; flex: none; border-radius: 50%; color: #111; font-weight: 800; font-size: 4cqw; }
.pp-av.sm { width: 6.4cqw; height: 6.4cqw; font-size: 3cqw; border: .5cqw solid #111; }
.pp-muted { color: #a3a3b2; }
/* delivery map */
.pp-map { position: relative; height: 100%; min-height: 100%; }
.pp-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pp-m-bg { fill: #14151b; }
.pp-m-water { fill: #15304a; }
.pp-m-park { fill: #173525; }
.pp-m-road { stroke: #262833; stroke-width: 7; }
.pp-m-main { stroke: #34374a; stroke-width: 12; }
.pp-m-route { fill: none; stroke: var(--c); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 9; opacity: .55; animation: pp-dash 1.1s linear infinite; }
.pp-m-route.is-sel { stroke-width: 5.5; stroke-dasharray: 3 9; opacity: 1; filter: drop-shadow(0 0 4px var(--c)); }
@keyframes pp-dash { to { stroke-dashoffset: -11; } }
.pp-m-shop circle { fill: #fff; stroke: #f5a524; stroke-width: 3; }
.pp-m-shop text { text-anchor: middle; font-size: 15px; }
.pp-m-driver { cursor: pointer; }
.pp-m-halo { animation: pp-halo 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pp-halo { from { transform: scale(.7); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
.pp-m-chips { position: absolute; top: 2cqw; left: 4cqw; right: 4cqw; display: flex; gap: 1.6cqw; flex-wrap: wrap; }
.pp-m-chips button { display: inline-flex; align-items: center; gap: 1.4cqw; padding: 1.6cqw 3cqw; border: 0; border-radius: 9cqw; background: #000000b0; color: #f4f2fb; font: inherit; font-size: 3.1cqw; font-weight: 700; backdrop-filter: blur(6px); cursor: pointer; }
.pp-m-chips button.is-on { background: #f4f2fb; color: #111; }
.pp-m-chips i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; }
.pp-sheet { position: absolute; left: 3cqw; right: 3cqw; bottom: 3cqw; display: flex; align-items: center; gap: 3cqw; padding: 3.6cqw; border-radius: 5cqw; background: #0c0c11ee; border: .3cqw solid #ffffff18; backdrop-filter: blur(10px); }
.pp-sheet > div { flex: 1; min-width: 0; }
.pp-sheet b { font-size: 3.7cqw; }
.pp-sheet small { display: block; color: #a3a3b2; font-size: 3cqw; }
.pp-sheet em { display: grid; justify-items: center; font-style: normal; color: #a3a3b2; font-size: 2.8cqw; }
.pp-sheet em b { color: var(--a); font-size: 6.4cqw; line-height: 1; }
/* stock */
.pp-stock { display: flex; align-items: center; gap: 3cqw; padding: 3.2cqw; border-radius: 4cqw; background: #ffffff0b; --lv: #4ade80; }
.pp-stock.is-mid { --lv: #f5a524; }
.pp-stock.is-low { --lv: #ff5d5d; background: #ff5d5d12; }
.pp-stock.is-coming { --lv: #5aa9ff; }
.pp-emoji { display: grid; place-items: center; width: 10cqw; height: 10cqw; flex: none; border-radius: 3cqw; background: #ffffff10; font-size: 5.4cqw; }
.pp-emoji.lg { width: 13cqw; height: 13cqw; font-size: 7cqw; }
.pp-stock-main { flex: 1; min-width: 0; display: grid; gap: 1.2cqw; }
.pp-stock-main b { font-size: 3.6cqw; }
.pp-stock-main small { color: var(--lv); font-size: 3cqw; font-weight: 600; }
.pp-level { height: 2cqw; border-radius: 2cqw; background: #ffffff14; overflow: hidden; }
.pp-level i { display: block; height: 100%; border-radius: inherit; background: var(--lv); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.pp-stock.is-coming .pp-level i { background: repeating-linear-gradient(90deg, #5aa9ff 0 3cqw, #5aa9ff80 3cqw 6cqw); animation: pp-move 1s linear infinite; background-size: 6cqw 100%; }
@keyframes pp-move { to { background-position: 6cqw 0; } }
.pp-scrim { position: absolute; inset: -40cqw 0 0; z-index: 10; background: #0009; animation: pp-fade .2s both; }
.pp-bottom { position: sticky; bottom: -4cqw; z-index: 11; margin: auto -4.6cqw -4cqw; display: grid; gap: 3.6cqw; padding: 3cqw 5cqw 6cqw; border-radius: 6cqw 6cqw 0 0; background: #17171f; border-top: .3cqw solid #ffffff1a; animation: pp-up .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pp-up { from { transform: translateY(100%); } }
@keyframes pp-fade { from { opacity: 0; } }
.pp-grab { justify-self: center; width: 10cqw; height: 1.2cqw; border-radius: 1cqw; background: #ffffff30; }
.pp-b-h { display: flex; gap: 3cqw; align-items: center; }
.pp-b-h b { font-size: 4.2cqw; }
.pp-b-h small { display: block; color: #a3a3b2; font-size: 3.1cqw; }
.pp-qty { display: grid; grid-template-columns: 13cqw 1fr 13cqw; align-items: center; text-align: center; }
.pp-qty button { height: 13cqw; border: 0; border-radius: 50%; background: #ffffff14; color: #fff; font-size: 7cqw; cursor: pointer; }
.pp-qty b { display: block; font-size: 10cqw; letter-spacing: -.03em; }
.pp-qty small { color: #a3a3b2; font-size: 3.2cqw; }
.pp-total { display: flex; justify-content: space-between; padding-top: 3cqw; border-top: .3cqw solid #ffffff14; font-size: 3.8cqw; color: #a3a3b2; }
.pp-total b { color: #fff; }
.pp-2btn { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2.4cqw; }
.pp-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqw; margin-top: 1cqw; }
.pp-track i { padding-top: 2.4cqw; border-top: 1.2cqw solid #ffffff1a; color: #a3a3b2; font-style: normal; font-size: 2.8cqw; }
.pp-track i.is-done { border-color: #4ade80; color: #4ade80; }
.pp-empty { display: grid; justify-items: center; gap: 2cqw; padding: 12cqw 4cqw; text-align: center; color: #a3a3b2; }
.pp-empty .wp-ic { width: 12cqw; height: 12cqw; color: var(--a); }
.pp-empty b { color: #f4f2fb; font-size: 4cqw; }
.pp-empty small { font-size: 3.2cqw; }
.wf-page .wp-tabs button span:not(.wp-badge) { font-size: 2.9cqw; }
/* carousel arrows */
.wp-arrows { display: none; justify-content: center; gap: 12px; margin-top: 18px; }
.wp-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 20px; cursor: pointer; }
.wp-arrow:disabled { opacity: .3; cursor: default; }
@media (max-width: 900px) { .wp-arrows { display: flex; } }

/* ---------- AI dashboard: distinct section screens ---------- */
.cf-ai-bar-track { position: relative; flex: 1; width: 100%; display: flex; justify-content: center; align-items: flex-end; min-height: 0; }
.cf-ai-bar-item { justify-content: flex-end; }
.cf-ai-chart { height: 170px; }
.cf-ai-visual:empty { display: none; }
[data-ai-dashboard]:not([data-view="overview"]) .cf-ai-chart-panel,
[data-ai-dashboard]:not([data-view="overview"]) .cf-ai-table-panel { display: none; }
[data-ai-dashboard][data-view="inventory"] .cf-ai-kpis, [data-ai-dashboard][data-view="team"] .cf-ai-kpis { display: none; }
.cf-ai-visual { display: grid; gap: 14px; animation: fm-in .4s ease both; }
.av-panel { padding: 17px; }
.av-h h4 { margin: 0; font-size: 15px; }
.av-h p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.av-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.av-span2 { grid-column: 1 / -1; }
.av-line { margin-top: 14px; }
.av-line svg { display: block; width: 100%; height: 190px; overflow: visible; }
.av-grid { stroke: var(--line); stroke-dasharray: 3 5; }
.av-stroke { fill: none; stroke: #9a7bff; stroke-width: 2.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: av-draw 1.1s ease forwards; }
@keyframes av-draw { to { stroke-dashoffset: 0; } }
.av-pt circle:last-of-type { fill: var(--surface); stroke: #9a7bff; stroke-width: 2; vector-effect: non-scaling-stroke; transition: r .15s; }
.av-pt:hover circle:last-of-type { r: 7; fill: #9a7bff; }
.av-xl { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 11px; }
.av-rank { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.av-rank li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.av-rank b { font-size: 13px; }
.av-rank em { font-style: normal; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.av-emoji { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--text) 7%, transparent); font-size: 17px; }
.av-hbar { height: 7px; margin-top: 6px; border-radius: 7px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.av-hbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7b5ce2, #b3a2ff); animation: av-grow .9s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
@keyframes av-grow { from { transform: scaleX(0); } }
.av-donut { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.av-donut svg { width: 120px; height: 120px; flex: none; transform: rotate(-90deg); }
.av-d-bg { fill: none; stroke: color-mix(in srgb, var(--text) 7%, transparent); stroke-width: 14; }
.av-d-seg { fill: none; stroke-width: 14; animation: fm-in .6s ease both; }
.av-donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1; font-size: 13px; }
.av-donut li { display: flex; align-items: center; gap: 8px; }
.av-donut li i { width: 10px; height: 10px; border-radius: 3px; }
.av-donut li b { margin-left: auto; }
.av-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.av-s { padding: 16px; border-radius: 16px; border: 1px solid var(--ai-border, var(--line)); display: grid; gap: 2px; }
.av-s b { font-size: 30px; letter-spacing: -.03em; }
.av-s span { color: var(--muted); font-size: 12.5px; }
.av-s.low { background: #ff5d5d14; } .av-s.low b { color: #ff6b6b; }
.av-s.mid { background: #f5a52414; } .av-s.mid b { color: #f5a524; }
.av-s.ok { background: #3ddc9714; } .av-s.ok b { color: #3ddc97; }
.av-stock { display: grid; gap: 8px; margin-top: 14px; }
.av-st { --lv: #3ddc97; display: grid; grid-template-columns: auto minmax(110px, 1.1fr) 1.4fr 100px 96px; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.av-st.is-mid { --lv: #f5a524; } .av-st.is-low { --lv: #ff5d5d; background: #ff5d5d0f; } .av-st.is-coming { --lv: #5aa9ff; }
.av-st-main b { display: block; font-size: 13.5px; }
.av-st-main small { color: var(--muted); font-size: 11.5px; }
.av-gauge { height: 10px; border-radius: 10px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.av-gauge i { display: block; height: 100%; border-radius: inherit; background: var(--lv); animation: av-grow .9s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.av-days { color: var(--lv); font-size: 12.5px; font-weight: 700; }
.av-st .cf-ai-button { justify-self: end; }
.av-done, .av-fine { justify-self: end; font-size: 12px; font-weight: 700; color: var(--muted); }
.av-done { color: #5aa9ff; }
.av-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 14px; }
.av-person { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.av-person.is-off { opacity: .5; }
.av-person b { display: block; font-size: 13.5px; }
.av-person small { color: var(--muted); font-size: 11.5px; }
.av-person-n { grid-column: 2 / 4; display: flex; align-items: baseline; gap: 6px; }
.av-person-n b { font-size: 20px; }
.av-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #111; font-weight: 800; grid-row: span 2; }
.av-av.sm { width: 34px; height: 34px; grid-row: auto; background: color-mix(in srgb, #9a7bff 30%, transparent); color: var(--text); }
.av-pill { padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--muted); }
.av-pill.ok { background: #3ddc9722; color: #3ddc97; }
.av-pill.go { background: #f5a52422; color: #f5a524; }
.av-heat { display: grid; grid-template-columns: 40px repeat(6, 1fr); gap: 5px; margin-top: 14px; align-items: center; }
.av-hl { color: var(--muted); font-size: 11px; text-align: center; }
.av-heat i { height: 26px; border-radius: 6px; background: color-mix(in srgb, #9a7bff calc(var(--v) * 100%), color-mix(in srgb, var(--text) 5%, transparent)); }
.av-score { display: grid; justify-items: center; gap: 4px; margin-top: 18px; }
.av-score b { font-size: 48px; letter-spacing: -.04em; line-height: 1; }
.av-stars { font-size: 24px; letter-spacing: 3px; background: linear-gradient(90deg, #f5a524 calc(var(--r) / 5 * 100%), color-mix(in srgb, var(--text) 18%, transparent) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.av-stars.sm { font-size: 14px; letter-spacing: 1px; }
.av-score small { color: var(--muted); }
.av-top { display: grid; gap: 8px; margin-top: 14px; }
.av-top > div { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--text) 3.5%, transparent); font-size: 13px; }
.av-top small { color: var(--muted); }
.av-top em { font-style: normal; font-weight: 700; }
.av-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.av-reviews blockquote { margin: 0; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.av-reviews p { margin: 8px 0; font-size: 13px; line-height: 1.5; }
.av-reviews cite { color: var(--muted); font-size: 12px; font-style: normal; }
@media (max-width: 760px) {
  .av-grid2 { grid-template-columns: 1fr; }
  .av-st { grid-template-columns: auto 1fr auto; gap: 6px 12px; }
  .av-gauge { grid-column: 2 / 4; grid-row: 2; }
  .av-days { grid-column: 2; grid-row: 3; }
  .av-st .cf-ai-button, .av-done, .av-fine { grid-column: 3; grid-row: 1; }
  .av-top > div { grid-template-columns: auto 1fr auto; }
  .av-top small { grid-column: 2; grid-row: 2; }
  .av-top em { grid-column: 3; grid-row: 1; }
  .av-top .cf-ai-button { grid-column: 3; grid-row: 2; }
  .av-reviews { grid-template-columns: 1fr; }
  .av-heat { grid-template-columns: 34px repeat(6, 1fr); gap: 3px; }
  .av-hl { font-size: 9.5px; }
  .av-s b { font-size: 24px; }
  /* phone: lighter dashboard — table becomes simple rows, fewer knobs */
  .cf-ai-table thead { display: none; }
  .cf-ai-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cf-ai-table td { padding: 0 !important; border: 0 !important; }
  .cf-ai-table td:nth-child(2) { display: none; }
  .cf-ai-table td:nth-child(3) { grid-row: 2; }
  .cf-ai-table td:nth-child(4) { grid-row: 1 / 3; grid-column: 2; align-self: center; }
  .cf-ai-table-wrap { overflow: visible !important; }
}

/* ---------- Cashier: phone preview + full-screen mode ---------- */
.pos-open, .pos-close { display: none; }
.wf-page .wf-cashier-viewport.is-preview { position: relative; min-height: 0 !important; overflow: hidden; }
.wf-cashier-viewport.is-preview iframe { position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; border: 0; }
.wf-cashier-viewport.is-preview .pos-open { display: flex; position: absolute; inset: 0; z-index: 2; align-items: flex-end; justify-content: center; gap: 10px; padding-bottom: 18px; border: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .65)); color: #fff; font: 700 15px var(--sans); cursor: pointer; }
.pos-open span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #9a7bff; font-size: 12px; }
.pos-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; background: var(--bg); }
.pos-overlay iframe { flex: 1; width: 100%; border: 0; }
.pos-overlay .pos-close { display: block; flex: none; height: 52px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--text); font: 700 15px var(--sans); cursor: pointer; }
html.pos-locked, html.pos-locked body { overflow: hidden; }

/* ---------- "Built to be used" — working mini demos ---------- */
.bw-vis { padding: 22px !important; }
.bw-vis button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bw-vis button:active:not(:disabled) { transform: scale(.96); }
.bw-pos, .bw-book, .bw-own { position: relative; width: 100%; max-width: 560px; border-radius: 18px; overflow: hidden; background: #0f1016; color: #f3f2f8; border: 1px solid #ffffff1a; box-shadow: 0 24px 60px -30px #000; font-size: 13px; }
.bw-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #ffffff14; }
.bw-bar span { display: flex; gap: 5px; } .bw-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ffffff30; }
.bw-bar small { color: #a6a5b3; font-weight: 600; }
.bw-pos-in { display: grid; grid-template-columns: 1.3fr 1fr; }
.bw-pos-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
.bw-pos-menu button { display: grid; justify-items: center; gap: 3px; padding: 12px 6px; border: 1px solid #ffffff14; border-radius: 14px; background: #1a1b24; color: #f3f2f8; font-weight: 600; transition: border-color .2s, background .2s; }
.bw-pos-menu button:hover { border-color: #9a7bff; }
.bw-pos-menu button span { font-size: 26px; }
.bw-pos-menu button b { color: #b9a6ff; font-size: 12px; }
.bw-pos-menu button.is-pop { animation: bw-pop .3s ease; }
@keyframes bw-pop { 50% { background: #9a7bff40; transform: scale(1.04); } }
.bw-pos-bill { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-left: 1px solid #ffffff14; background: #13141b; }
.bw-pos-bill > small { color: #a6a5b3; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.bw-pos-lines { flex: 1; display: grid; align-content: start; gap: 6px; min-height: 110px; }
.bw-empty { margin: 0; color: #7c7b88; }
.bw-line { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; animation: fm-in .25s ease both; }
.bw-line button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: #ffffff14; color: #fff; }
.bw-pos-total { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px dashed #ffffff24; font-size: 15px; }
.bw-pay { min-height: 42px; border: 0; border-radius: 12px; background: #3ddc97; color: #08321d; font-weight: 800; }
.bw-pay:disabled { background: #ffffff14; color: #7c7b88; cursor: default; }
.bw-done { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; background: #0f1016ee; animation: fm-in .3s ease both; }
.bw-done b { font-size: 26px; color: #3ddc97; } .bw-done span { color: #c9c8d4; }
/* shop */
.bw-shop { width: 100%; max-width: 360px; border-radius: 18px; overflow: hidden; background: #f6f2ec; color: #26221e; box-shadow: 0 24px 60px -30px #000; position: relative; font-size: 13px; }
.bw-shop-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #0000000f; }
.bw-shop-top b { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.bw-bag i { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; border-radius: 10px; background: #26221e; color: #fff; font-style: normal; font-size: 11px; }
.bw-shop-item { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; padding: 16px; }
.bw-shirt { aspect-ratio: 3/4; border-radius: 12px; background: linear-gradient(160deg, #fff6, transparent 60%), var(--c); transition: background-color .4s; position: relative; }
.bw-shirt::after { content: ""; position: absolute; inset: 18% 22% 10%; border-radius: 30% 30% 8px 8px; background: #0000000d; box-shadow: inset 0 10px 0 #0000000a; }
.bw-shop-info { display: grid; align-content: start; gap: 9px; }
.bw-shop-info > span { color: #7a6f63; }
.bw-swatches, .bw-sizes { display: flex; gap: 6px; }
.bw-swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px #0002; }
.bw-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px #26221e; }
.bw-sizes button { width: 38px; height: 34px; border-radius: 9px; border: 1px solid #0002; background: #fff; color: #26221e; font-weight: 700; }
.bw-sizes button.is-on { background: #26221e; color: #fff; }
.bw-add { min-height: 40px; border: 0; border-radius: 10px; background: #d9d2c7; color: #6d655b; font-weight: 700; }
.bw-add.is-ready { background: #26221e; color: #fff; }
.bw-add.is-shake { animation: bw-shake .35s; }
@keyframes bw-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.bw-ping { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; border-radius: 12px; background: #25d366; color: #05300f; font-weight: 700; animation: fm-in .3s ease both; }
/* booking */
.bw-book { max-width: 360px; }
.bw-book-top, .bw-own-top { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-bottom: 1px solid #ffffff14; }
.bw-book-top small, .bw-own-top small { color: #a6a5b3; }
.bw-days, .bw-branches { display: flex; gap: 6px; padding: 12px 14px 0; flex-wrap: wrap; }
.bw-days button { flex: 1; display: grid; padding: 8px 0; border: 1px solid #ffffff1a; border-radius: 12px; background: #1a1b24; color: #a6a5b3; font-size: 11px; }
.bw-days button b { color: #f3f2f8; font-size: 17px; }
.bw-days button[aria-pressed="true"], .bw-branches button[aria-pressed="true"] { background: #5aa9ff; border-color: #5aa9ff; color: #04203d; }
.bw-days button[aria-pressed="true"] b { color: #04203d; }
.bw-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 14px 14px; }
.bw-slots button { display: grid; padding: 8px 0; border: 1px solid #5aa9ff55; border-radius: 10px; background: #5aa9ff14; color: #f3f2f8; font-weight: 700; }
.bw-slots button small { color: #5aa9ff; font-weight: 600; font-size: 10px; }
.bw-slots button:disabled { border-color: #ffffff10; background: transparent; color: #5c5b68; cursor: default; text-decoration: line-through; }
.bw-slots button:disabled small { color: #5c5b68; }
.bw-booked { display: grid; gap: 3px; margin: 0 14px 14px; padding: 10px 12px; border-radius: 12px; background: #3ddc9722; animation: fm-in .3s ease both; }
.bw-booked b { color: #3ddc97; } .bw-booked span { color: #c9c8d4; font-size: 12px; }
/* owner */
.bw-own { max-width: 360px; }
.bw-branches button { padding: 7px 11px; border: 1px solid #ffffff1a; border-radius: 99px; background: #1a1b24; color: #c9c8d4; font-size: 12px; font-weight: 600; }
.bw-own-sales { padding: 12px 14px 0; }
.bw-own-sales small { color: #a6a5b3; }
.bw-own-sales > b { display: block; font-size: 24px; letter-spacing: -.02em; margin: 2px 0 8px; }
.bw-own-bars { display: flex; align-items: flex-end; gap: 5px; height: 60px; }
.bw-own-bars i { flex: 1; border-radius: 4px 4px 1px 1px; background: #9a7bff66; transition: height .5s cubic-bezier(.2, .8, .2, 1); }
.bw-own-bars i:last-child { background: #9a7bff; }
.bw-own-alert { display: flex; align-items: center; gap: 9px; margin: 12px 14px 14px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; }
.bw-own-alert.is-warn { background: #f5a5241f; } .bw-own-alert.is-ok { background: #3ddc971c; }
.bw-own-alert b { flex: 1; }
.bw-own-alert button { padding: 6px 10px; border: 0; border-radius: 8px; background: #f5a524; color: #2a1a02; font-weight: 800; font-size: 12px; }
.bw-own-alert em { font-style: normal; color: #3ddc97; font-weight: 700; }
@media (max-width: 620px) {
  .bw-vis { padding: 14px !important; }
  .bw-pos-in { grid-template-columns: 1fr; }
  .bw-pos-bill { border-left: 0; border-top: 1px solid #ffffff14; }
  .bw-pos-lines { min-height: 60px; }
}
