/* =============================================================================
   Plandia — planning app layer
   Built on the Fresh design tokens defined in styles.css (:root).
   Covers: hero prompt composer, workspace shell, sidebar nav, category panels,
   contact rows, program poster, guest table, activities, decor tiers, food
   calculator, toasts. Client-side only (no backend); state persists to
   localStorage. Premium/soft look — no harsh outlines.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   Hero prompt composer
   -------------------------------------------------------------------------- */
.composer {
  margin-top: 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--hard);
  padding: 18px;
  max-width: 760px;
}
.composer-label {
  display: block;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.composer-input {
  width: 100%; resize: vertical; min-height: 84px;
  border: 1px solid var(--border-2); border-radius: 14px;
  background: var(--bg); color: var(--text);
  font-family: inherit; font-size: 16px; line-height: 1.5;
  padding: 14px 15px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.composer-input::placeholder { color: var(--muted); }
.composer-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-subtle); }
.composer-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.composer-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-chip {
  font-size: 12.5px; font-weight: 600; padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--surface); border: 1.5px solid var(--border-2); color: var(--text-2);
  cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.ex-chip:hover { border-color: var(--accent); color: var(--ink); }

/* ----------------------------------------------------------------------------
   Workspace shell
   -------------------------------------------------------------------------- */
#workspace {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.wb-top {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  flex: none;
}
.wb-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.wb-brand .logo-name { color: #fff; }
.wb-brief { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.wb-brief::-webkit-scrollbar { display: none; }
.brief-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85);
}
.brief-chip b { color: #fff; font-weight: 700; }
.brief-chip .k { color: rgba(255, 255, 255, .5); font-weight: 600; }
.brief-chip--ai { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* Generovanie briefu cez API — stav tlačidla počas čakania */
#generate[disabled] { opacity: .65; cursor: progress; transform: none !important; }

/* Hľadanie skutočných kontaktov (web search) — rozhodnutie 2a: príjemný vizuál */
.search-state { animation: fx-rise .4s ease both; }
.search-banner {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 16px; padding: 16px 18px;
  border: 1px solid color-mix(in oklab, var(--accent), var(--bg) 60%);
  border-radius: 16px;
  background:
    linear-gradient(110deg,
      color-mix(in oklab, var(--accent), var(--bg) 90%) 30%,
      color-mix(in oklab, var(--accent), var(--bg) 80%) 50%,
      color-mix(in oklab, var(--accent), var(--bg) 90%) 70%);
  background-size: 200% 100%;
  animation: sk-shimmer 2.6s ease-in-out infinite;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
}
.search-banner .spin { display: inline-flex; color: var(--accent); animation: fx-spin 2.4s linear infinite; }
.search-banner .sb-txt { flex: 1; min-width: 0; }
.search-banner .sb-txt b { color: var(--ink); font-size: 14.5px; }
.search-msg { margin-top: 3px; font-weight: 500; color: var(--text-2); }
.msg-in { animation: fx-rise .45s ease both; }
.search-eta {
  flex: none; font-family: var(--font-mono); font-size: 11px;
  padding: 5px 10px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); white-space: nowrap;
}

/* Skeleton karty počas hľadania */
@keyframes sk-shimmer { 0% { background-position: 120% 0; } 100% { background-position: -80% 0; } }
.skeleton-list { display: flex; flex-direction: column; gap: 12px; }
.skel-card {
  display: flex; gap: 14px; align-items: center;
  padding: 18px; border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface);
}
.skel-av, .skel-lines i {
  background: linear-gradient(110deg, var(--surface-2) 30%, color-mix(in oklab, var(--surface-2), #fff 55%) 50%, var(--surface-2) 70%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.8s ease-in-out infinite;
}
.skel-av { flex: none; width: 52px; height: 52px; border-radius: 14px; }
.skel-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skel-lines i { display: block; height: 12px; border-radius: 6px; }

/* Okruh hľadania + Hľadať znova */
.search-controls {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 0 0 16px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
}
.search-controls .sc-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-mono); }
.search-controls .sc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.search-controls [data-research] { margin-left: auto; }

/* Povinná obec pri „Mám miesto" */
.req { color: var(--coral); }
.input--warn { border-color: color-mix(in oklab, var(--coral), var(--border-2) 40%); }
.mail-note--warn { color: color-mix(in oklab, var(--coral), var(--text) 35%); }

/* ============================== ÚČTY & PRÉMIUM ============================ */
.hdr-right { display: flex; align-items: center; gap: 8px; }
.hdr-auth {
  height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85);
  border: none; font-family: inherit; font-weight: 700; font-size: 13.5px;
  cursor: pointer; transition: background .15s ease;
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hdr-auth:hover { background: rgba(255, 255, 255, .14); }
.hdr-link {
  color: rgba(255, 255, 255, .7); font-weight: 700; font-size: 13.5px;
  text-decoration: none; padding: 0 6px; transition: color .15s ease; white-space: nowrap;
}
.hdr-link:hover { color: #fff; }
@media (max-width: 620px) { .hdr-link { display: none; } }

/* Prihlasovacie okno */
.auth-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(11, 11, 13, .55); backdrop-filter: blur(3px); }
.auth-card {
  position: relative; width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 28px; box-shadow: var(--shadow-lg);
  animation: fx-rise .35s ease both;
}
.auth-x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 18px; line-height: 1; cursor: pointer; color: var(--text-2);
}
.auth-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-lead { font-size: 14px; color: var(--text-2); line-height: 1.5; margin: 0 0 18px; }
.auth-w { width: 100%; justify-content: center; margin-top: 12px; }
.auth-div { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; color: var(--muted); font-size: 12px; }
.auth-div::before, .auth-div::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-sent { font-size: 14.5px; line-height: 1.6; color: var(--text-2); background: var(--surface-2); border-radius: 14px; padding: 16px; }
.auth-terms { font-size: 11.5px; color: var(--muted); margin: 16px 0 0; line-height: 1.5; }
.auth-terms a { color: var(--text-2); text-decoration: underline; }

/* Zamknutá kategória */
.lock-panel {
  border: 1px solid var(--border); border-radius: 22px;
  background: var(--surface); box-shadow: var(--hard);
  padding: clamp(24px, 4vw, 40px); max-width: 560px;
  animation: fx-rise .4s ease both;
}
.lock-panel .lock-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink); margin-bottom: 16px;
}
.lock-panel h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.lock-panel > p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; margin: 0 0 14px; }
.lock-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lock-list li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); }
.lock-list li svg { color: var(--accent-deep); flex: none; }
.src-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; color: var(--text-2);
  padding: 3px 9px; border: 1px solid var(--border-2); border-radius: var(--radius-pill);
  text-decoration: none;
}
.src-link:hover { border-color: var(--accent); color: var(--ink); }
.wb-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.wb-saved { font-size: 12px; color: rgba(255, 255, 255, .55); font-family: var(--font-mono); }
.wb-saved.flash { color: var(--accent); }
.btn-ghost {
  height: 38px; padding: 0 16px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08); color: #fff; border: none;
  font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer;
  transition: background .15s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

.wb-layout { flex: 1; display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 0; }

/* Sidebar nav */
.wb-nav {
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 14px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.wb-progress { padding: 6px 10px 14px; }
.wb-progress .bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.wb-progress .bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.wb-progress .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 13px;
  cursor: pointer; border: 1px solid transparent;
  color: var(--text-2); font-weight: 600; font-size: 14.5px;
  text-align: left; background: none; width: 100%; font-family: inherit;
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-item.is-active .nav-ico { color: var(--accent); }
.nav-item.is-active .nav-idx { color: rgba(255, 255, 255, .5); }
.nav-ico { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.nav-item.is-active .nav-ico, .nav-item:hover .nav-ico { color: currentColor; }
.nav-item.is-active .nav-ico { color: var(--accent); }
.nav-label { flex: 1; min-width: 0; }
.nav-idx { flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.nav-done { flex: none; width: 16px; height: 16px; color: var(--accent); opacity: 0; }
.nav-item.done .nav-done { opacity: 1; }

/* Main panel */
.wb-main { overflow-y: auto; min-height: 0; }
.wb-panel { max-width: 920px; margin: 0 auto; padding: 34px 32px 80px; animation: fx-rise .3s ease both; }

.panel-head { margin-bottom: 24px; }
.panel-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.panel-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.panel-lead { font-size: 15.5px; line-height: 1.55; color: var(--text-2); margin-top: 12px; max-width: 60ch; }

/* ----------------------------------------------------------------------------
   Generic app pieces
   -------------------------------------------------------------------------- */
.card {
  border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  padding: 20px;
}
.card + .card { margin-top: 14px; }
.card-dark { background: var(--ink); color: #fff; border-color: rgba(255,255,255,.08); }

.section-title { font-size: 13px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 28px 0 14px; }

.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; padding: 0 14px; height: 46px;
  border-radius: 13px; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 14.5px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { height: auto; min-height: 90px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }

/* Buttons in-app */
.a-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  border: 1px solid transparent; transition: transform .14s ease, background .15s ease, border-color .15s ease;
}
.a-btn:hover { transform: translateY(-1px); }
.a-btn--ink { background: var(--ink); color: #fff; }
.a-btn--accent { background: var(--accent); color: var(--accent-ink); }
.a-btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border-2); }
.a-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.a-btn--icon { width: 36px; height: 36px; padding: 0; border-radius: 11px; }

.pill-toggle { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border-radius: var(--radius-pill); }
.pill-toggle button {
  border: none; background: none; cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: 13.5px; color: var(--text-2);
  padding: 9px 16px; border-radius: var(--radius-pill); transition: all .15s ease;
}
.pill-toggle button.is-active { background: var(--accent); color: var(--accent-ink); }

/* Selectable option chips */
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip {
  font-size: 13.5px; font-weight: 600; padding: 9px 15px;
  border-radius: var(--radius-pill); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border-2); color: var(--text-2);
  transition: all .15s ease;
}
.opt-chip.is-selected { font-weight: 700; background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* Status badges */
.badge-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); }
.badge-ok { background: color-mix(in oklab, var(--accent), var(--bg) 78%); color: var(--ink); }
.badge-ok .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent-deep); }
.badge-partner { background: var(--accent); color: var(--accent-ink); }
.badge-partner .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent-ink); }
.badge-warn { background: color-mix(in oklab, var(--coral), var(--bg) 80%); color: #7a2c19; }
.badge-warn .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--coral); }

/* ----------------------------------------------------------------------------
   Contact / supplier rows (shared by venue, suppliers, activities)
   -------------------------------------------------------------------------- */
.contact {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: start;
  padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact + .contact { margin-top: 12px; }
.contact.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
.contact .swatch { width: 48px; height: 48px; border-radius: 13px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; }
.contact .c-body { min-width: 0; }
.contact .c-name { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.contact .c-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.contact .c-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.contact .c-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-2); }
.contact .c-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; }
.contact .c-meta a, .contact .c-meta span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.contact .c-meta a:hover { color: var(--ink); }
.contact .c-meta svg { color: var(--muted); }
.contact .c-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; flex: none; }
.contact .c-actions .a-btn { white-space: nowrap; }

/* ----------------------------------------------------------------------------
   Email drawer (prepared Gmail message)
   -------------------------------------------------------------------------- */
.mail {
  margin-top: 12px; border: 1px dashed var(--border-2); border-radius: 14px;
  background: var(--bg); padding: 16px;
}
.mail .mail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mail .mail-head .t { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mail .mail-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.mail .mail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ----------------------------------------------------------------------------
   Program poster
   -------------------------------------------------------------------------- */
.program-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.poster {
  border-radius: 22px; overflow: hidden; box-shadow: var(--hard);
  border: 1px solid var(--border); position: relative;
}
.poster-a { background: var(--ink); color: #fff; }
.poster-b { background: var(--surface); color: var(--ink); }
.poster-head { padding: 30px 30px 22px; position: relative; }
.poster-a .poster-head { background: linear-gradient(150deg, color-mix(in oklab, var(--accent), var(--ink) 55%), var(--ink) 72%); }
.poster-b .poster-head { background: var(--accent); color: var(--accent-ink); }
.poster-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.poster-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: .98; margin-top: 12px; text-wrap: balance; }
.poster-sub { font-size: 15px; margin-top: 10px; opacity: .82; }
.poster-body { padding: 8px 30px 30px; }
.poster-item { display: grid; grid-template-columns: 78px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid; }
.poster-a .poster-item { border-color: rgba(255,255,255,.12); }
.poster-b .poster-item { border-color: var(--border); }
.poster-item:last-child { border-bottom: none; }
.poster-time { font-family: var(--font-mono); font-weight: 500; font-size: 15px; color: var(--accent); }
.poster-b .poster-time { color: var(--ink); background: var(--accent); display: inline-block; padding: 2px 8px; border-radius: 6px; height: fit-content; }
.poster-it { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.poster-note { font-size: 13.5px; opacity: .7; margin-top: 3px; }
.poster-foot { padding: 0 30px 26px; display: flex; align-items: center; gap: 10px; }
.poster-foot .mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.poster-foot .mark i { width: 8px; height: 8px; border: 2px solid var(--ink); border-radius: 2px; transform: rotate(45deg); }
.poster-foot .txt { font-size: 12px; opacity: .6; }

.program-side { position: sticky; top: 0; }
.prog-editor-item { display: grid; grid-template-columns: 66px 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.prog-editor-item .input { height: 40px; font-size: 13.5px; padding: 0 10px; }

/* ----------------------------------------------------------------------------
   Guest table
   -------------------------------------------------------------------------- */
.guest-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.guest-stat { display: inline-flex; align-items: baseline; gap: 6px; margin-right: 6px; }
.guest-stat b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.guest-stat span { font-size: 12.5px; color: var(--muted); }
.table-wrap { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
table.gtable { width: 100%; border-collapse: collapse; font-size: 14px; }
table.gtable th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
table.gtable td { padding: 6px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.gtable tr:last-child td { border-bottom: none; }
table.gtable input, table.gtable select { width: 100%; border: 1px solid transparent; background: none; height: 38px; padding: 0 8px; border-radius: 9px; font-family: inherit; font-size: 14px; color: var(--text); outline: none; }
table.gtable input:focus, table.gtable select:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-subtle); }
.rsvp-yes { color: #0f9d58; font-weight: 700; }
.rsvp-no { color: var(--coral); font-weight: 700; }
.row-del { color: var(--muted); cursor: pointer; border: none; background: none; padding: 6px; border-radius: 8px; }
.row-del:hover { color: var(--coral); background: var(--surface-2); }

.import-box { margin-top: 14px; }
.import-box .textarea { font-family: var(--font-mono); font-size: 13px; }

/* ----------------------------------------------------------------------------
   Decor budget tiers
   -------------------------------------------------------------------------- */
.tier-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tier-btn {
  font-weight: 800; font-size: 14px; padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-2); background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: all .15s ease;
}
.tier-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tier-btn.is-active b { color: var(--accent); }
.decor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.decor-card { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.decor-card .d-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.decor-card .d-name { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.decor-card .d-price { font-family: var(--font-mono); font-size: 13px; color: var(--ink); background: var(--accent); padding: 2px 8px; border-radius: 6px; font-weight: 500; }
.decor-card .d-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.5; flex: 1; }
.decor-card .d-buy { margin-top: 8px; }

/* ----------------------------------------------------------------------------
   Food & drink calculator
   -------------------------------------------------------------------------- */
.calc-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.calc-out { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.calc-out .co-head { padding: 18px 20px; background: var(--ink); color: #fff; display: flex; align-items: baseline; justify-content: space-between; }
.calc-out .co-head .big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.calc-out .co-head .lbl { font-size: 12px; color: rgba(255,255,255,.6); font-family: var(--font-mono); }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--border); }
.calc-row:last-child { border-bottom: none; }
.calc-row .cr-name { font-weight: 600; font-size: 14.5px; }
.calc-row .cr-name small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 2px; }
.calc-row .cr-val { font-family: var(--font-mono); font-size: 14.5px; font-weight: 500; text-align: right; white-space: nowrap; }
.calc-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* Empty state */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { color: var(--border-2); margin-bottom: 12px; }

/* ----------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(12px);
  z-index: 400; background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ok { color: var(--accent); }

/* ----------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .program-wrap { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .program-side { position: static; }
}
@media (max-width: 760px) {
  .wb-layout { grid-template-columns: 1fr; }
  .wb-nav {
    grid-row: 2; flex-direction: row; overflow-x: auto; gap: 8px;
    border-right: none; border-bottom: 1px solid var(--border); padding: 10px 12px;
  }
  .wb-nav .wb-progress { display: none; }
  .nav-item { flex: none; white-space: nowrap; }
  .nav-idx, .nav-done { display: none; }
  .wb-layout { display: flex; flex-direction: column; }
  .wb-panel { padding: 22px 18px 70px; }
  .contact { grid-template-columns: 44px 1fr; }
  .contact .c-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .wb-brief { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wb-panel, .a-btn { animation: none; transition: none; }
}
