/* ==========================================================================
   Builder (creare-invitatie) — desktop split (form + sticky preview),
   mobile full-width with sticky actions and a fullscreen preview sheet.
   ========================================================================== */
.builder-page { background: var(--bg); min-height: 100dvh; }
.builder-top { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding-top: var(--safe-top); }
.builder-top .container { height: 58px; display: flex; align-items: center; gap: var(--sp-3); }
.builder-top .brand-name { font-size: 1.25rem; }
.builder-top .save-state { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--text-3); white-space: nowrap; }
.builder-top .save-state .icon { width: 15px; height: 15px; }
.builder-top .save-state.saving .icon { animation: spin 0.9s linear infinite; }
.builder-top .save-state.saved { color: var(--success); }
.builder-top .exit { color: var(--text-2); }

.builder { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); align-items: start; padding-top: var(--sp-5); padding-bottom: calc(96px + var(--safe-bottom)); }
@media (min-width: 1024px) {
    .builder { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--sp-10); padding-top: var(--sp-8); padding-bottom: var(--sp-16); }
    .builder-preview { position: sticky; top: calc(58px + var(--safe-top) + 24px); }
}
@media (min-width: 1280px) { .builder { grid-template-columns: minmax(0, 1fr) 420px; gap: var(--sp-16); } }

/* Stepper */
.stepper { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.stepper .mobile { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.stepper .mobile .lbl { display: flex; justify-content: space-between; font-size: var(--fs-small); color: var(--text-2); }
.stepper .mobile .lbl strong { color: var(--ink); font-weight: 600; }
.stepper .desktop { display: none; width: 100%; }
@media (min-width: 760px) {
    .stepper .mobile { display: none; }
    .stepper .desktop { display: flex; align-items: center; }
    .stepper .st { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; position: relative; }
    .stepper .st::after { content: ''; flex: 1; height: 1px; background: var(--border); margin: 0 var(--sp-3); }
    .stepper .st:last-child::after { display: none; }
    .stepper .st .num { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-caption); font-weight: 600; color: var(--text-2); flex: none; background: var(--surface); transition: all var(--dur-2) var(--ease); }
    .stepper .st .num .icon { width: 14px; height: 14px; stroke-width: 2.5; }
    .stepper .st .name { font-size: var(--fs-label); color: var(--text-3); white-space: nowrap; }
    .stepper .st.is-active .num { background: var(--ink); border-color: var(--ink); color: #fff; }
    .stepper .st.is-active .name { color: var(--ink); font-weight: 600; }
    .stepper .st.is-done .num { background: var(--success-soft); border-color: var(--success); color: var(--success); }
    .stepper .st.is-done .name { color: var(--text-2); }
    .stepper .st button { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px; border-radius: var(--r-sm); cursor: pointer; }
    .stepper .st button:disabled { cursor: default; }
}

/* Step panels */
.step-panel { display: none; animation: stepIn var(--dur-3) var(--ease-out); }
.step-panel.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-head { margin-bottom: var(--sp-6); }
.step-head h1 { font-size: var(--fs-h2); font-family: var(--font-serif); font-weight: 500; letter-spacing: 0; }
.step-head h1:focus, .step-head h1:focus-visible { outline: none; box-shadow: none; }
.step-head p { color: var(--text-2); margin-top: var(--sp-2); max-width: 560px; }
.step-panel .card + .card { margin-top: var(--sp-4); }

/* Event type cards */
.event-cards { display: grid; gap: var(--sp-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .event-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.event-card .choice-body { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: var(--sp-4); align-items: center; padding: var(--sp-4); }
.event-card .thumb { width: 64px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card h3 { font-size: var(--fs-title); }
.event-card p { font-size: var(--fs-small); color: var(--text-2); margin-top: 2px; }

/* Optional section toggle */
.opt-toggle { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 52px; padding: var(--sp-3) var(--sp-4); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface); text-align: left; color: var(--ink); font-weight: 500; transition: all var(--dur-1) var(--ease); }
.opt-toggle:hover { border-color: var(--ink); }
.opt-toggle .icon { color: var(--text-3); }
.opt-toggle .hint { margin-left: auto; font-size: var(--fs-small); color: var(--text-3); font-weight: 400; }
.opt-body { margin-top: var(--sp-3); }
.opt-body[hidden] { display: none; }
.opt-group { padding: var(--sp-4); background: var(--surface-2); border-radius: var(--r-md); }
.opt-group + .opt-group { margin-top: var(--sp-3); }
.opt-group h4 { font-size: var(--fs-label); font-weight: 600; margin-bottom: var(--sp-3); }

/* Location cards */
.loc-card .card-head { align-items: center; }
.loc-card .kind { display: inline-flex; align-items: center; gap: 8px; }
.loc-card .kind .icon-tile { width: 36px; height: 36px; border-radius: 8px; }
.loc-card .kind .icon-tile .icon { width: 18px; height: 18px; }
.loc-card .visibility { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--text-2); }
.loc-card.is-hidden .card-body { display: none; }
.loc-card .hidden-note { padding: var(--sp-3) var(--sp-6) var(--sp-5); font-size: var(--fs-small); color: var(--text-3); display: none; }
.loc-card.is-hidden .hidden-note { display: block; }
.map-preview { margin-top: var(--sp-3); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); height: 180px; position: relative; }
.map-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-preview .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-3); font-size: var(--fs-small); background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 20px 20px; }
.map-preview .ph .icon { color: var(--accent); }
.add-location { display: grid; gap: var(--sp-2); }
.add-location .opt-toggle { border-style: dashed; }

/* Template picker */
.tpl-picker { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .tpl-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .tpl-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tpl-opt { position: relative; display: block; cursor: pointer; }
.tpl-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tpl-opt .frame { display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: all var(--dur-2) var(--ease); }
.tpl-opt .frame img { aspect-ratio: 9 / 14; width: 100%; object-fit: cover; display: block; }
.tpl-opt .frame .nm { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px; font-size: var(--fs-label); font-weight: 600; }
.tpl-opt .frame .nm small { font-weight: 400; color: var(--text-3); font-size: var(--fs-caption); }
.tpl-opt:hover .frame { border-color: var(--border-strong); box-shadow: var(--sh-2); }
.tpl-opt input:checked + .frame { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--sh-2); }
.tpl-opt input:focus-visible + .frame { box-shadow: var(--focus-ring); }
.tpl-opt .sel { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.6); transition: all var(--dur-2) var(--ease-out); }
.tpl-opt .sel .icon { width: 14px; height: 14px; stroke-width: 3; }
.tpl-opt input:checked ~ .sel { opacity: 1; transform: scale(1); }
.tpl-opt .lock { position: absolute; top: 10px; left: 10px; }
.tpl-opt .peek { position: absolute; left: 10px; bottom: 52px; }
.tpl-opt .peek .btn { background: rgba(255,255,255,0.94); color: var(--ink); border-color: transparent; }
.tpl-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); min-width: 0; }
.tpl-filters .chips { flex: 1 1 100%; }
@media (min-width: 560px) { .tpl-filters .chips { flex: 1 1 auto; } }
.own-design { display: grid; gap: var(--sp-2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .own-design { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.own-design button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); text-align: left; min-height: 44px; transition: border-color var(--dur-1) var(--ease); }
.own-design button:hover { border-color: var(--ink); }
.own-design button strong { font-size: var(--fs-label); }
.own-design button span { font-size: var(--fs-caption); color: var(--text-3); }
.own-design button .icon { color: var(--accent); }
.upload-zone { border: 1px dashed var(--border-strong); border-radius: var(--r-lg); padding: var(--sp-6); text-align: center; background: var(--surface-2); cursor: pointer; transition: all var(--dur-1) var(--ease); min-height: 160px; display: flex; align-items: center; justify-content: center; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--ink); background: var(--surface); }
.upload-zone img { max-height: 240px; border-radius: var(--r-md); margin: 0 auto; }

/* Plans in builder */
.plan-picker { display: grid; gap: var(--sp-3); }
@media (min-width: 700px) { .plan-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plan-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan-opt .choice-body { padding: var(--sp-4); min-height: 100%; }
.plan-opt .pname { font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* nowrap on the flex line + wrap between items: the badge moves to the next row, the plan name never breaks mid-word */
.plan-opt .pname { white-space: nowrap; }
.plan-opt .price { margin-top: 8px; display: flex; align-items: baseline; gap: 4px; }
.plan-opt .price b { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.plan-opt .price span { color: var(--text-3); font-size: var(--fs-small); }
.plan-opt ul { margin-top: var(--sp-3); display: grid; gap: 5px; }
.plan-opt li { font-size: var(--fs-small); color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.plan-opt li .icon { width: 14px; height: 14px; color: var(--success); margin-top: 2px; flex: none; }
.plan-opt .locked-note { margin-top: var(--sp-3); font-size: var(--fs-caption); color: var(--accent); display: none; }
.plan-opt.is-locked .locked-note { display: block; }

/* Summary */
.summary-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: var(--fs-label); }
.summary-card dt { color: var(--text-3); }
.summary-card dd { font-weight: 500; text-align: right; }
.summary-card .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--sp-3); margin-top: var(--sp-3); border-top: 1px solid var(--border); }
.summary-card .total b { font-size: 1.5rem; }

/* Sticky nav */
.builder-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + var(--safe-bottom)); display: flex; gap: var(--sp-2); align-items: center; }
.builder-nav .btn-back { flex: 0 0 auto; }
.builder-nav .btn-preview { flex: 0 0 auto; }
.builder-nav .btn-next { flex: 1; }
@media (min-width: 1024px) {
    .builder-nav { position: static; background: transparent; border: 0; padding: var(--sp-6) 0 0; backdrop-filter: none; margin-top: var(--sp-4); border-top: 1px solid var(--border); }
    .builder-nav .btn-preview { display: none; }
    .builder-nav .btn-next { flex: 0 0 auto; margin-left: auto; min-width: 200px; }
}
html.kb-open .builder-nav { position: static; } /* keyboard open on mobile: don't cover inputs */

/* Preview column */
.builder-preview { display: none; }
.builder-main { min-width: 0; }
@media (min-width: 1024px) { .builder-preview { display: block; } }
.preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.preview-head .label { color: var(--text-2); }
.device-sm { width: 100%; max-width: 380px; aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 40px; background: #1b1a18; padding: 9px; box-shadow: var(--sh-3); position: relative; }
.device-sm::before { content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 80px; height: 22px; background: #1b1a18; border-radius: 12px; z-index: 3; }
.device-sm iframe { width: 100%; height: 100%; border: 0; border-radius: 32px; background: #fff; display: block; }
.preview-note { text-align: center; font-size: var(--fs-caption); color: var(--text-3); margin-top: var(--sp-3); }

/* Fullscreen preview sheet (mobile) */
.preview-sheet { position: fixed; inset: 0; z-index: 120; background: var(--surface); display: flex; flex-direction: column; transform: translateY(100%); transition: transform var(--dur-3) var(--ease-out); visibility: hidden; }
.preview-sheet.is-open { transform: none; visibility: visible; }
.preview-sheet .ps-head { padding: calc(var(--safe-top) + 10px) var(--sp-4) 10px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.preview-sheet iframe { flex: 1; border: 0; width: 100%; }
.preview-sheet .ps-foot { padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + var(--safe-bottom)); border-top: 1px solid var(--border); display: flex; gap: var(--sp-2); }
.preview-sheet .ps-foot .btn { flex: 1; }

/* Template preview modal inside builder */
.tpl-modal .modal-panel { max-width: 520px; }
.tpl-modal iframe { width: 100%; height: min(72dvh, 760px); border: 0; border-radius: var(--r-md); background: #fff; }

/* IBAN notice */
.iban-warn { margin-top: var(--sp-3); }


/* ---------- Template Engine 2.0: collections, themes, personalization ---------- */
.tpl-tabs { max-width: 420px; }
.fam-picker { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 700px) { .fam-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fam-picker[hidden], .theme-picker[hidden] { display: none; }
.fam-opt { position: relative; display: block; cursor: pointer; }
.fam-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fam-opt .frame { display: grid; grid-template-columns: 84px 1fr; gap: var(--sp-3); align-items: center; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); padding: 10px; transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.fam-opt .frame img { width: 84px; aspect-ratio: 9 / 14; object-fit: cover; object-position: top; border-radius: var(--r-md); display: block; }
.fam-opt .body { display: grid; gap: 3px; min-width: 0; padding-right: 28px; }
.fam-opt .nm { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fam-opt .tg { font-size: var(--fs-small); color: var(--text-2); line-height: 1.4; }
.fam-opt .mt { font-size: var(--fs-caption); color: var(--text-3); }
.fam-opt:hover .frame { border-color: var(--border-strong); box-shadow: var(--sh-2); }
.fam-opt input:checked + .frame { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--sh-2); }
.fam-opt input:focus-visible + .frame { box-shadow: var(--focus-ring); }
.fam-opt .sel { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.6); transition: all var(--dur-1); }
.fam-opt .sel .icon { width: 14px; height: 14px; stroke-width: 3; }
.fam-opt input:checked ~ .sel { opacity: 1; transform: scale(1); }
.fam-opt .lock { position: absolute; bottom: 10px; right: 10px; }
.theme-picker .th-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.th-strip { display: flex; gap: var(--sp-2); overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.th-opt { position: relative; flex: 0 0 112px; scroll-snap-align: start; cursor: pointer; }
.th-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.th-opt .frame { display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.th-opt .frame img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; object-position: top; display: block; }
.th-opt .nm { display: block; padding: 6px 8px; font-size: var(--fs-caption); font-weight: 600; text-align: center; }
.th-opt input:checked + .frame { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.th-opt input:focus-visible + .frame { box-shadow: var(--focus-ring); }
.v2-body { display: grid; gap: var(--sp-6); }
.v2-sec h4 { font-size: var(--fs-title); font-weight: 600; margin-bottom: 4px; }
.v2-sec h4 .opt { font-weight: 400; color: var(--text-3); font-size: var(--fs-small); }
.v2-sec > p.small { margin-bottom: var(--sp-3); max-width: 60ch; }
.v2-drop { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: var(--sp-5); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface-2); cursor: pointer; }
.v2-drop:hover { border-color: var(--ink); }
.v2-drop .icon { color: var(--accent); width: 22px; height: 22px; }
.v2-drop strong { font-size: var(--fs-label); } .v2-drop span { font-size: var(--fs-caption); color: var(--text-3); }
.v2-hero-img { position: relative; aspect-ratio: 4 / 3; max-width: 420px; border-radius: var(--r-lg); overflow: hidden; cursor: crosshair; background: var(--surface-2); }
.v2-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-hero-img .focal { position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,0.4), 0 0 0 9999px rgba(0,0,0,0.18); transform: translate(-50%, -50%); pointer-events: none; }
.v2-hero-acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-top: var(--sp-3); }
.v2-hero-acts .segmented.small button { min-height: 32px; font-size: var(--fs-caption); }
.v2-gal { margin-top: var(--sp-4); }
.v2-gal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
@media (min-width: 700px) { .v2-gal-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.v2-gal-item { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.v2-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-gal-item .rm { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.v2-gal-item .rm .icon { width: 12px; height: 12px; }
.v2-gal-add { aspect-ratio: 1; border-radius: var(--r-md); border: 1px dashed var(--border-strong); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-3); }
.v2-gal-add:hover { border-color: var(--ink); color: var(--ink); }
.v2-music { display: grid; gap: var(--sp-2); grid-template-columns: 1fr 1fr; margin-bottom: var(--sp-3); }
.choice.compact { padding: 10px 12px; }
.v2-presets { display: grid; gap: 6px; }
@media (min-width: 900px) { .v2-presets { grid-template-columns: 1fr 1fr; } }
.v2-preset { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.v2-preset.is-on { border-color: var(--ink); }
.v2-preset .pl { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.v2-preset .pl.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.v2-preset .pl .icon { width: 16px; height: 16px; }
.v2-preset .nm b { display: block; font-size: var(--fs-label); }
.v2-preset .nm small { display: block; color: var(--text-3); font-size: var(--fs-caption); line-height: 1.3; }
.v2-sections { display: grid; gap: 6px; max-width: 520px; }
.v2-sections li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.v2-sections .nm { font-size: var(--fs-label); }
.v2-sections .mv { display: inline-flex; gap: 2px; }
.v2-sections .mv button { width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.v2-sections .mv button:disabled { opacity: 0.35; cursor: default; }
.v2-sections .mv .icon { width: 14px; height: 14px; }
/* the switch itself lives in app.css (.switch / .switch-sm); here only the "on" tint used in the section list */
.v2-sections .switch input:checked + .track { background: var(--success); }
.v2-det { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); margin-top: 8px; }
.v2-det summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: var(--fs-label); list-style: none; display: flex; justify-content: space-between; }
.v2-det summary small { font-weight: 400; color: var(--text-3); }
.v2-det summary::-webkit-details-marker { display: none; }
.v2-det-body { padding: 4px 14px 14px; display: grid; gap: 10px; }
.v2-row3 { display: grid; gap: 8px; grid-template-columns: 1fr; padding: 10px 0; border-top: 1px solid var(--border); }
.v2-row3:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 700px) { .v2-row3 { grid-template-columns: 130px 1fr; } .v2-row3 textarea, .v2-row3 > :nth-child(3) { grid-column: 1 / -1; } .v2-row3.sched { grid-template-columns: 110px 1fr 1fr; } .v2-row3.sched > :nth-child(3) { grid-column: auto; } }

.v2-body > * { min-width: 0; }
.v2-sec { min-width: 0; }
#v2Panel { overflow: hidden; }
.v2-hero-acts .segmented { flex-wrap: wrap; }
