/* ===== Klientas: mobile-first ===== */
body.client { background: var(--surface); min-height: 100vh; display: flex; flex-direction: column; }
.only-desktop { display: none !important; }

.c-top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.c-top__in { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px; max-width: 1440px; margin: 0 auto; }
.c-top .brand { font-size: 16px; }
.stepper { display: none; list-style: none; margin: 0 0 0 auto; padding: 0; gap: 8px; align-items: center; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--faint); }
.stepper li + li::before { content: ""; width: 36px; height: 1px; background: var(--line-2); margin-right: 4px; }
.stepper li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 13px; }
.stepper li.is-current { color: var(--text); }
.stepper li.is-current span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.stepper li.is-done { color: var(--text); }
.stepper li.is-done span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.c-main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 18px 16px 120px; }
.panel { display: none; }
body[data-step="1"] [data-panel="1"], body[data-step="2"] [data-panel="2"], body[data-step="3"] [data-panel="3"], body[data-step="4"] [data-panel="4"] { display: block; }
.panel__title { font-size: 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.panel__title .ic { width: 22px; height: 22px; color: var(--accent-ink); }

.field { margin-bottom: 20px; }
.label { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.hint { font-size: 14px; color: var(--muted); margin: 8px 0 0; }

/* Lustai */
.chips { display: flex; gap: 8px; }
.chips--scroll { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; flex: 1; min-width: 0; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.chip { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font: 500 15px/1 var(--font); color: var(--text); cursor: pointer; flex: none; }
.chip:hover:not(:disabled) { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.chip:disabled { color: var(--faint); background: var(--surface-2); cursor: not-allowed; text-decoration: line-through; }
.chip--date { flex-direction: column; gap: 4px; width: 58px; min-height: 62px; padding: 0; }
.chip--date span { font-size: 12px; font-weight: 500; opacity: .85; }
.chip--date strong { font-size: 18px; }
.chip--icon { width: 52px; min-height: 62px; color: var(--muted); }
.date-row { display: flex; gap: 8px; }
.visually-hidden-input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }

/* Svečių skaičius */
.stepper-input { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.stepper-input__btn { height: 52px; border: 0; background: var(--surface); cursor: pointer; color: var(--text); display: grid; place-items: center; }
.stepper-input__btn:first-child { border-right: 1px solid var(--line-2); }
.stepper-input__btn:last-child { border-left: 1px solid var(--line-2); }
.stepper-input__btn:hover:not(:disabled) { background: var(--accent-soft); }
.stepper-input__btn:disabled { color: var(--busy); cursor: not-allowed; }
.stepper-input__val { text-align: center; display: flex; gap: 6px; align-items: baseline; justify-content: center; }
.stepper-input__val strong { font-size: 20px; }
.stepper-input__val span { color: var(--muted); }

/* Progos */
.occasions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.occasions button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; padding: 8px 4px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font: 500 13px/1.2 var(--font); color: var(--text); cursor: pointer; }
.occasions button svg { width: 22px; height: 22px; color: var(--muted); }
.occasions button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.occasions button[aria-pressed="true"] svg { color: var(--accent-ink); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks--col { display: grid; grid-template-columns: 1fr 1fr; }

/* Salių kortelės */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); cursor: pointer; font-family: var(--font); color: var(--text); text-align: left; }
.tab__name { font-weight: 600; font-size: 15px; }
.tab__sub { font-size: 12px; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tab[aria-selected="true"] .tab__sub { color: inherit; opacity: .8; }

.recommend { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--accent-line); border-radius: var(--r); background: var(--accent-soft); cursor: pointer; text-align: left; font-family: var(--font); color: var(--text); }
.recommend__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); flex: none; }
.recommend__ic svg { width: 18px; height: 18px; }
.recommend__txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.recommend__txt strong { font-size: 14px; }
.recommend__txt span { font-size: 13px; color: var(--muted); }
.recommend__go { color: var(--accent-ink); }
.recommend--none { background: var(--surface-2); border-color: var(--line); cursor: default; }
.recommend--none .recommend__ic { background: var(--busy); color: #fff; }
.recommend--none .recommend__go { display: none; }

.plan-wrap { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); overflow: hidden; }
.plan { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.plan .fp { min-width: 680px; }
.plan-wrap.is-loading .plan { opacity: .5; transition: opacity .2s; }
.plan-msg { padding: 40px 16px; text-align: center; color: var(--muted); }
.fp .el-table:focus { outline: none; }
.fp .el-table:focus-visible .surface { stroke: var(--primary); stroke-width: 3; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot--free { background: var(--accent); }
.dot--sel { background: var(--primary); }
.dot--busy { background: var(--busy); }

/* Apatinė kortelė */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: -6px auto 12px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 16px; }
.sheet__head .mono { font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.sheet__note { margin: 0 0 14px; font-size: 14px; color: var(--muted); }

/* Suvestinė */
.summary { margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.summary__row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-top: 1px solid var(--line); }
.summary__row:first-child { border-top: 0; }
.summary__row svg { color: var(--accent-ink); margin-top: 2px; }
.summary dt { font-size: 12px; color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.sum-table { padding: 16px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--r-lg); margin-bottom: 14px; }
.sum-big { font-size: 20px; font-weight: 700; }
.sum-big .mono { font-size: 22px; }
#booking-form { display: grid; gap: 10px; }
#booking-form .field { margin-bottom: 6px; }
.input-ic { position: relative; display: block; }
.input-ic svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 18px; height: 18px; pointer-events: none; }
.input-ic input { width: 100%; min-height: 50px; padding: 10px 14px 10px 44px; border: 1px solid var(--line-2); border-radius: var(--r); font: 400 15px var(--font); color: var(--text); background: var(--surface); }
.input-ic input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fine { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.fine svg { width: 16px; height: 16px; color: var(--accent-ink); }

/* Sėkmė */
.done { text-align: center; max-width: 460px; margin: 20px auto; }
.done__ic { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.done__ic svg { width: 36px; height: 36px; stroke-width: 2.4; }
.done h2 { font-size: 24px; margin-bottom: 6px; }
.done p { margin: 6px 0; }
.done__code { font-size: 28px; color: var(--primary); margin: 4px 0 20px !important; padding: 10px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.done .summary { text-align: left; }

/* Lipnus mygtukas */
.c-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.c-cta .btn { max-width: 608px; margin: 0 auto; display: flex; }

.c-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 16px 96px; font-size: 13px; color: var(--faint); border-top: 1px solid var(--line); max-width: 1440px; margin: 0 auto; width: 100%; }
.c-foot a { color: var(--muted); text-decoration: none; }
.c-foot__staff { opacity: .7; }
.c-foot__staff:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 380px) {
  .chips--grid { grid-template-columns: repeat(3, 1fr); }
  .checks--col { grid-template-columns: 1fr; }
}

/* ===== Kompiuteris: 3 stulpeliai ===== */
@media (min-width: 1080px) {
  .only-mobile { display: none !important; }
  .only-desktop { display: revert !important; }
  span.only-desktop { display: inline-flex !important; align-items: center; gap: 10px; }
  body.client { background: var(--bg); }
  .stepper { display: flex; }
  .c-back { display: none !important; }
  .c-top__in { height: 68px; padding: 0 28px; }
  .c-main { max-width: 1440px; padding: 24px 28px; display: grid; grid-template-columns: 340px minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
  body[data-step] .panel { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
  body[data-step] .panel--done { display: none; }
  body[data-step="4"] .panel { display: none; }
  body[data-step="4"] .panel--done { display: block; grid-column: 1 / -1; }
  .panel__title { font-size: 18px; }
  .panel--plan { position: relative; }
  .panel--plan .recommend { order: -1; }
  .panel--plan { display: flex !important; flex-direction: column; }
  .plan .fp { min-width: 0; }
  .panel--summary { position: sticky; top: 88px; }
  .chips--grid { grid-template-columns: repeat(4, 1fr); }
  .chip--date { width: 52px; }
  .checks--col { grid-template-columns: 1fr; }
  .sheet { position: static; border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: 14px; padding: 16px; }
  .sheet::before { display: none; }
  .c-cta { display: none !important; }
  .c-foot { padding: 20px 28px; }
  .toast { bottom: 28px; }
}
@media (min-width: 1080px) and (max-width: 1240px) {
  .c-main { grid-template-columns: 300px minmax(0, 1fr) 320px; }
}
