@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-500i.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(fonts/montserrat-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(fonts/montserrat-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(fonts/montserrat-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --bg: #FAF7F2; --surface: #FDFCF9; --line: #E9E4D9;
  --primary: #6B7A4B; --primary-soft: #E8EADF; --primary-ink: #fff;
  --accent: #C5A46D; --accent-soft: #EFE4CF; --accent-ink: #7D6A49;
  --text: #34362B; --muted: #8F8F82; --danger: #A5523F;
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(60 50 30 / 4%), 0 8px 24px -12px rgb(60 50 30 / 14%);
  --sat: max(env(safe-area-inset-top), var(--safe-area-inset-top, 0px));
  --sab: max(env(safe-area-inset-bottom), var(--safe-area-inset-bottom, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overscroll-behavior: none; transition: background .3s; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
h1, h2, h3, p { margin: 0; }
code { font-size: .85em; background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; justify-content: center; }
.center-block { display: block; margin: 12px auto 0; }
.grow { flex: 1; min-width: 0; }
.err { color: var(--danger); font-size: 13.5px; margin: 4px 0 10px; }
.ic { width: 20px; height: 20px; flex: none; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Ornamentos e marca ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--accent); margin: 10px 0; }
.ornament span { height: 1px; width: 44px; background: linear-gradient(90deg, transparent, var(--accent)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--accent), transparent); }
.ornament .ic { width: 14px; height: 14px; }
.brand { text-align: center; margin: 12px 0 26px; }
.brand-rings { width: 72px; margin: 0 auto 4px; color: var(--accent); }
.brand h1 { font-family: var(--serif); font-weight: 600; font-size: 44px; letter-spacing: .02em; color: var(--primary); line-height: 1.1; }
.brand p { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 19px; }

/* ---------- Logo / monograma ---------- */
.logo { display: grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.monogram { border: 1.5px solid var(--accent); color: var(--primary); font-family: var(--serif); font-weight: 600; display: flex; gap: .12em; align-items: center; justify-content: center; background: var(--surface); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px var(--accent-soft); }
.monogram em { color: var(--accent); font-style: italic; font-weight: 500; font-size: .8em; }
.logo.xs { width: 34px; height: 34px; font-size: 13px; }
.logo.xs.monogram { box-shadow: none; }
.logo.sm { width: 48px; height: 48px; font-size: 17px; }
.logo.lg { width: 112px; height: 112px; font-size: 36px; }
.logo.xl { width: 150px; height: 150px; font-size: 48px; }
.logo:not(.monogram) { border-radius: 16px; }

/* ---------- Botões e formulários ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 500; font-size: 14.5px; letter-spacing: .02em; transition: transform .1s, opacity .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; }
.btn.primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 16px -8px var(--primary); }
.btn.ghost { border: 1px solid var(--line); background: var(--surface); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger.ghost { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.btn.block { width: 100%; margin-top: 6px; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn.icon-only { width: 46px; padding: 0; flex: none; }
.link { color: var(--accent-ink); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; margin-top: 10px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
input:not([type=checkbox]):not([type=color]):not([type=file]), select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  font-size: 15.5px; text-transform: none; letter-spacing: 0; color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.toggle { flex-direction: row; align-items: center; gap: 10px; text-transform: none; font-size: 15px; color: var(--text); letter-spacing: 0; }
.toggle input { width: 22px; height: 22px; accent-color: var(--primary); }
.code-input { text-transform: uppercase; letter-spacing: .3em; font-weight: 600; text-align: center; }
.label-sm { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; }

/* ---------- Cards e seções ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card.soft { background: transparent; box-shadow: none; }
.card h3 { font-size: 16px; font-weight: 600; display: flex; gap: 8px; align-items: center; margin-bottom: 6px; color: var(--text); }
.card h3 .ic { color: var(--accent); }
.card p.muted { margin-bottom: 12px; }
.section-title { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 22px 4px 10px; color: var(--text); }
.page-title { font-size: 32px; color: var(--primary); margin: 4px 4px 12px; line-height: 1.15; }
.page-sub { margin: -6px 4px 14px; font-size: 13.5px; }
.empty { text-align: center; color: var(--muted); padding: 22px 12px; font-family: var(--serif); font-style: italic; font-size: 18px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-family: var(--serif); font-style: italic; margin: 6px 0 16px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.foot { text-align: center; margin: 18px 0 8px; }

.seg { display: flex; background: var(--primary-soft); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.seg button { flex: 1; min-height: 40px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s, color .2s; }
.seg button .ic { width: 17px; height: 17px; }
.seg button.on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.small-seg button { min-height: 34px; font-size: 13px; }

.chips { display: flex; gap: 8px; margin: 0 -16px 14px; padding: 2px 16px 4px; }
.scroll-x { overflow-x: auto; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; white-space: nowrap; transition: all .2s; }
.chip small { color: var(--muted); margin-left: 4px; font-size: 11.5px; }
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip.on small { color: inherit; opacity: .8; }

.bar { display: block; height: 5px; background: var(--primary-soft); border-radius: 9px; overflow: hidden; margin: 6px 0; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--accent))); border-radius: 9px; transition: width .4s; }

/* ---------- Telas de entrada ---------- */
.center-screen, .auth-screen { min-height: 100%; padding: calc(var(--sat) + 32px) 20px calc(var(--sab) + 28px); max-width: 480px; margin: 0 auto; }
.center-screen { display: flex; flex-direction: column; justify-content: center; }
.spinner { width: 28px; height: 28px; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; margin: 18px auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Onboarding ---------- */
.onboard { min-height: 100%; max-width: 520px; margin: 0 auto; padding: calc(var(--sat) + 20px) 20px calc(var(--sab) + 20px); display: flex; flex-direction: column; }
.ob-top { display: flex; align-items: center; justify-content: space-between; }
.dots { display: flex; gap: 6px; margin: 18px 0 8px; }
.dots span { flex: 1; height: 3px; border-radius: 3px; background: var(--line); transition: background .3s; }
.dots span.on { background: var(--accent); }
.title { font-size: 34px; color: var(--primary); margin: 6px 0 14px; }
.ob-body { flex: 1; }
.ob-actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; }
.ob-actions .btn { min-width: 130px; }
.logo-drop { align-items: center; text-transform: none; letter-spacing: 0; gap: 14px; padding: 26px 16px; border: 1.5px dashed var(--accent); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preset { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 8px 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; background: var(--surface); transition: border-color .2s; }
.preset .sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgb(0 0 0 / 8%); }
.preset small { width: 100%; text-align: center; font-size: 12px; margin-top: 4px; }
.preset.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.color { align-items: center; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.color input { width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 50%; padding: 0; background: none; overflow: hidden; cursor: pointer; }
.color input::-webkit-color-swatch-wrapper { padding: 0; }
.color input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.preview-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; background: var(--bg); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.preview-card strong { font-size: 24px; color: var(--primary); }

/* ---------- Shell ---------- */
.shell { position: fixed; inset: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(var(--sat) + 10px) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 2; }
.tb-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-title { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--primary); }
.amp { color: var(--accent); font-style: italic; font-weight: 500; }
.sync { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); flex: none; }
.sync .ic { width: 16px; height: 16px; }
.sync.ok .ic { color: var(--primary); }
.sync.busy .ic { color: var(--accent); animation: pulse 1s ease-in-out infinite; }
.sync.off .ic { color: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }
.content { flex: 1; overflow-y: auto; padding: 18px 16px 28px; -webkit-overflow-scrolling: touch; }
.content > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.content > .chips { max-width: none; margin-left: -16px; margin-right: -16px; }
.tabbar { display: flex; justify-content: space-around; padding: 6px 4px calc(var(--sab) + 6px); background: var(--surface); border-top: 1px solid var(--line); z-index: 2; }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; color: var(--muted); letter-spacing: .02em; transition: color .2s; }
.tabbar button .ic { width: 23px; height: 23px; }
.tabbar button.on { color: var(--primary); font-weight: 600; }
.tabbar button.on .ic { stroke-width: 2; }

/* ---------- Início ---------- */
.hero { text-align: center; padding: 10px 8px 22px; display: flex; flex-direction: column; align-items: center; }
.hero .logo { margin-bottom: 14px; box-shadow: var(--shadow); }
.names { font-size: 40px; line-height: 1.1; color: var(--primary); }
.hero-line { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 14px; margin-top: 2px; }
.hero-line .ic { width: 16px; height: 16px; color: var(--accent); }
.count { margin-top: 16px; padding: 12px 28px; border-radius: 999px; background: var(--accent-soft); display: flex; align-items: baseline; gap: 8px; }
.count strong { font-family: var(--serif); font-size: 32px; color: var(--accent-ink); line-height: 1; }
.count span { color: var(--accent-ink); font-size: 13.5px; }
.invite { text-align: center; display: flex; flex-direction: column; align-items: center; border-color: var(--accent); }
.invite h3 { justify-content: center; }
.code { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: .25em; color: var(--primary); padding: 6px 4px 8px .25em; }
.progress-card { display: flex; align-items: center; gap: 18px; }
.progress-card h3 { font-size: 22px; margin-bottom: 0; }
.ring { flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: var(--primary-soft); }
.ring-fg { stroke: var(--primary); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .6s; }
.ring text { font: 600 15px var(--sans); fill: var(--primary); }
.cat-list { display: flex; flex-direction: column; gap: 8px; }
.cat-row, .set-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.cat-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.cat-ic .ic { width: 19px; height: 19px; }
.cat-ic.big { width: 50px; height: 50px; }
.cat-ic.big .ic { width: 24px; height: 24px; }
.cat-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cat-name { font-weight: 500; font-size: 14.5px; }
.cat-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chev { width: 16px; height: 16px; color: var(--muted); }

/* ---------- Checklist ---------- */
.cat-head { display: flex; gap: 14px; align-items: flex-start; }
.cat-head h3 { font-size: 23px; margin: 0; }
.list-card { padding: 4px 0; }
.item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.item:last-of-type { border-bottom: 0; }
.check { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; color: transparent; flex: none; margin-top: 1px; transition: all .2s; }
.check .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.item.done .check { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.item-body { flex: 1; min-width: 0; cursor: pointer; }
.item-text { font-size: 14.5px; line-height: 1.45; }
.item.done .item-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent); }
.item-meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.item-meta .ic { width: 13px; height: 13px; }
.add-row { display: flex; gap: 8px; padding: 12px 12px 10px; border-top: 1px solid var(--line); }

/* ---------- Arquivos ---------- */
.upload-box { flex-direction: row; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed var(--accent); border-radius: var(--radius); background: var(--surface); text-transform: none; letter-spacing: 0; color: var(--text); cursor: pointer; margin-bottom: 14px; }
.upload-box > .ic { width: 28px; height: 28px; color: var(--accent); }
.upload-box span { display: flex; flex-direction: column; font-size: 14.5px; }
.upload-box small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.thumb { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--primary-soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file-row .grow { display: flex; flex-direction: column; }
.file-name { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.file-preview { position: relative; display: grid; place-items: center; min-height: 140px; margin-bottom: 16px; border-radius: 14px; background: var(--primary-soft); overflow: hidden; }
.file-preview img { max-width: 100%; max-height: 55vh; display: block; }
.file-preview img.blur { filter: blur(6px); opacity: .6; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-height: none; }
.file-preview .spinner { position: relative; }
.big-file { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--primary); padding: 20px; font-weight: 600; font-size: 13px; }
.big-file .ic { width: 48px; height: 48px; }

/* ---------- Pessoal ---------- */
.private-banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px; }
.private-banner > .ic { width: 26px; height: 26px; }
.private-banner div { display: flex; flex-direction: column; font-size: 13px; }
.private-banner strong { font-size: 14.5px; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.note { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 120px; }
.note strong { font-family: var(--serif); font-size: 19px; color: var(--primary); line-height: 1.2; }
.note span { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; flex: 1; white-space: pre-line; }

/* ---------- Ajustes ---------- */
.set-row { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; }
.set-row:last-child { border-bottom: 0; }
.set-row .grow { display: flex; flex-direction: column; font-size: 14.5px; }
.set-row small { font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.mini-sw { display: inline-flex; gap: 3px; }
.mini-sw i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgb(0 0 0 / 10%); }

/* ---------- Sheet, diálogo, toast ---------- */
#sheet { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#sheet.open { pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; background: rgb(30 28 20 / 38%); opacity: 0; transition: opacity .25s; }
#sheet.open .sheet-backdrop { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 8px 18px calc(var(--sab) + 20px); transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); max-width: 640px; margin: 0 auto; }
#sheet.open .sheet { transform: none; }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 10px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.sheet-head h2 { font-family: var(--serif); font-size: 26px; color: var(--primary); line-height: 1.15; word-break: break-word; }
.sheet-head p { font-size: 12.5px; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.sheet-head p .ic { width: 14px; height: 14px; }
.sheet > .btn.block { margin-top: 18px; }
#dialog { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; padding: 24px; }
#dialog.open { display: flex; }
.dialog-backdrop { position: absolute; inset: 0; background: rgb(30 28 20 / 45%); }
.dialog { position: relative; background: var(--bg); border-radius: 20px; padding: 22px; max-width: 360px; width: 100%; box-shadow: var(--shadow); }
.dialog p { margin-bottom: 18px; font-size: 15px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--sab) + 84px); transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 14px; font-size: 13.5px; max-width: calc(100% - 32px); width: max-content; opacity: 0; pointer-events: none; transition: all .25s; z-index: 40; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Topo / navegação extra ---------- */
.tb-right { display: flex; align-items: center; gap: 2px; flex: none; }
.side-brand, .side-only { display: none !important; }
.shell > .content { order: 2; }
.shell > .tabbar { order: 3; }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm .ic { width: 18px; height: 18px; }
.row.wrap { flex-wrap: wrap; }
.spinner.sm { width: 20px; height: 20px; margin: 0; border-width: 2px; flex: none; }
.empty.sm { font-size: 16px; padding: 14px 8px; }
.sheet.tall { max-height: 96%; }
.item .open-item { color: var(--muted); align-self: center; margin-right: -8px; }

/* ---------- Página do tópico ---------- */
.page { display: flex; flex-direction: column; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink); font-size: 13.5px; font-weight: 500; margin: -4px 0 8px -4px; padding: 4px; align-self: flex-start; }
.back-link .ic { width: 18px; height: 18px; }
.page-h { font-size: 30px; line-height: 1.15; color: var(--primary); margin-bottom: 12px; cursor: text; }
.page-props { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; position: relative; text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 500; flex-direction: row; }
.pill .ic { width: 16px; height: 16px; color: var(--accent); }
.pill.done { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pill.done .ic { color: inherit; }
.date-pill input { position: absolute; inset: 0; opacity: 0; width: 100%; min-height: 0 !important; padding: 0 !important; cursor: pointer; }
.blk { padding: 14px 16px; }
.blk-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.blk-head h3 { flex: 1; margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--text); }
.blk-heading { margin: 18px 2px 6px; padding-bottom: 6px; border-bottom: 1px solid var(--accent); }
.blk-heading h3 { font-size: 26px; color: var(--primary); }
.blk-text { white-space: normal; line-height: 1.6; font-size: 14.5px; cursor: text; min-height: 28px; word-break: break-word; }
.blk-text.placeholder { color: var(--muted); font-style: italic; }
.blk-text a, .link-main strong { color: var(--accent-ink); }
.blk-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.thumb.add-thumb, .thumb.file-thumb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--accent); background: var(--surface); color: var(--accent-ink); text-transform: none; letter-spacing: 0; font-size: 11.5px; cursor: pointer; }
.thumb.file-thumb { border-style: solid; border-color: var(--line); padding: 6px; text-align: center; }
.thumb.file-thumb small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.link-row { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.link-row:last-of-type { margin-bottom: 10px; }
.link-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.link-main > .ic { color: var(--accent); }
.link-main span { display: flex; flex-direction: column; min-width: 0; }
.link-main strong, .link-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-main strong { font-weight: 500; font-size: 14px; }
.link-main small { color: var(--muted); font-size: 12px; }
.item.mini { padding: 8px 0; }
.item.mini .check { width: 22px; height: 22px; }
.add-row.flat { padding: 10px 0 0; border-top: 0; }
.add-row.flat input { min-height: 42px; padding: 8px 12px; }
.btn.icon-only.sm { width: 42px; min-height: 42px; }
.add-block { margin: 10px 0 20px; }
.block-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.block-types button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1px dashed var(--line); border-radius: 14px; font-size: 12.5px; color: var(--muted); background: transparent; }
.block-types button .ic { color: var(--accent); }
.col-edit { padding: 12px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Tabelas (convidados, padrinhos, orçamentos) ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.tag .ic { width: 13px; height: 13px; }
.sum-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.sum-row .label-sm { font-size: 11px; margin-right: 2px; }
.chip.xs { padding: 4px 10px; font-size: 12px; }
.chip.xs small { font-size: 11px; }
.opt-0 { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.opt-1 { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.opt-2 { background: #E5ECEF; border-color: transparent; color: #45606B; }
.opt-3 { background: #F1E3E1; border-color: transparent; color: #8D514A; }
.opt-4 { background: #ECE6F0; border-color: transparent; color: #66577A; }
.opt-5 { background: #EEEDE6; border-color: transparent; color: #66654F; }
.chip.ok { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.chip.xs.on { outline: 2px solid currentColor; outline-offset: 1px; }
.search { margin: 4px 0 10px; min-height: 42px !important; padding: 8px 14px !important; }
.recs { display: flex; flex-direction: column; gap: 8px; }
.rec { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.rec strong { font-weight: 600; font-size: 14.5px; }
.rec-tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.rec-kv { font-size: 12.5px; }
.rec-kv small { color: var(--muted); }
.rec-note { font-size: 12px; color: var(--muted); width: 100%; }
.tbl-wrap { display: none; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td.long { white-space: normal; min-width: 180px; color: var(--muted); font-size: 12.5px; }
.tbl tr { cursor: pointer; }
.tbl tbody tr:hover { background: var(--primary-soft); }
.tbl-actions { gap: 16px; }
@media (min-width: 760px) {
  .recs { display: none; }
  .tbl-wrap { display: block; max-height: 70vh; }
}

/* ---------- Estúdio IA ---------- */
.ai-seg { margin-bottom: 18px; }
.notice { display: flex; gap: 12px; align-items: flex-start; border-color: var(--accent); }
.notice > .ic { color: var(--accent); width: 26px; height: 26px; }
.notice p { margin: 4px 0 10px !important; }
.upload-box.big { flex-direction: column; text-align: center; padding: 40px 20px; }
.upload-box.big > .ic { width: 40px; height: 40px; }
.add-chip { flex-direction: row; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--accent-ink); border-style: dashed; border-color: var(--accent); cursor: pointer; font-weight: 400; }
.add-chip .ic { width: 15px; height: 15px; }
.studio { display: flex; flex-direction: column; gap: 0; }
.stage { padding: 10px; }
.stage-img { position: relative; border-radius: 12px; overflow: hidden; background: var(--primary-soft); min-height: 180px; display: grid; place-items: center; }
.stage-img img { width: 100%; display: block; max-height: 62vh; object-fit: contain; }
.stage-tag { position: absolute; left: 10px; top: 10px; background: rgb(255 255 255 / 85%); color: var(--text); font-size: 11.5px; padding: 3px 10px; border-radius: 999px; font-weight: 500; }
.stage-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 2px 2px; }
.stage-bar .icon-btn { margin-left: auto; }
.chat { display: flex; flex-direction: column; padding: 14px; }
.msgs { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 92%; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.ai { align-self: flex-start; }
.bubble { padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; }
.msg.user .bubble { background: var(--primary); color: var(--primary-ink); border-bottom-right-radius: 6px; }
.msg.ai .bubble { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg small { font-size: 11px; }
.bubble.gen { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.bubble.err-b { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--danger); }
.msg-refs { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.msg-refs img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; border: 2px solid rgb(255 255 255 / 50%); }
.result { border-radius: 14px; overflow: hidden; display: block; background: var(--primary-soft); max-width: 420px; }
.result img { width: 100%; display: block; }
img.blur { filter: blur(4px); }
.result-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.result-actions .chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 6px 12px; }
.result-actions .ic { width: 15px; height: 15px; }
.ideas { display: flex; gap: 6px; margin: 0 -14px 8px; padding: 0 14px 2px; }
.ref-strip { display: flex; gap: 6px; margin-bottom: 8px; }
.ref { position: relative; }
.ref img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; display: block; }
.ref button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; }
.ref button .ic { width: 12px; height: 12px; }
.composer { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { min-height: 46px !important; max-height: 160px; resize: none; }
.attach { flex: none; border: 1px solid var(--line); background: var(--surface); width: 46px; height: 46px; cursor: pointer; text-transform: none; color: var(--accent-ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.g-item { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.g-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; display: block; box-shadow: var(--shadow); }
.g-item span { font-size: 12.5px; color: var(--muted); padding: 0 4px; }
.private-banner.slim { padding: 10px 14px; }
.private-banner.slim > .ic { width: 20px; height: 20px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.slot { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--primary-soft); border: 2px solid transparent; text-transform: none; letter-spacing: 0; color: var(--primary); cursor: pointer; }
.slot.empty { border: 1.5px dashed var(--accent); background: var(--surface); color: var(--accent-ink); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot small { position: relative; font-size: 11px; font-weight: 600; }
.slot:not(.empty) small { position: absolute; bottom: 4px; left: 4px; background: rgb(255 255 255 / 88%); color: var(--text); padding: 1px 7px; border-radius: 999px; }
.slot.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.slot-menu { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgb(255 255 255 / 88%); color: var(--text); display: grid; place-items: center; }
.slot-menu .ic { width: 14px; height: 14px; }
.thumb.sel { position: relative; border: 2px solid transparent; }
.thumb.sel i { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 80%); color: transparent; border: 1.5px solid var(--accent); }
.thumb.sel i .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.thumb.sel.on { border-color: var(--primary); }
.thumb.sel.on i { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chips.inner { margin: 0 -18px 10px; padding: 2px 18px 4px; }
.try-summary { margin: 0 0 8px; }
.ai-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.ai-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; border-radius: var(--radius); background: linear-gradient(140deg, var(--accent-soft), var(--surface)); border: 1px solid var(--line); text-align: left; }
.ai-card > .ic { color: var(--accent-ink); width: 24px; height: 24px; }
.ai-card span { display: flex; flex-direction: column; gap: 2px; }
.ai-card strong { font-family: var(--serif); font-size: 18px; line-height: 1.15; color: var(--primary); }
.ai-card small { font-size: 12px; color: var(--muted); }

/* ---------- Telas grandes: barra lateral e colunas ---------- */
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 230px 1fr; grid-template-rows: auto 1fr; }
  .topbar { grid-column: 2; grid-row: 1; }
  .tabbar { grid-column: 1; grid-row: 1 / 3; flex-direction: column; justify-content: flex-start; gap: 4px; padding: calc(var(--sat) + 18px) 14px 18px; border-top: 0; border-right: 1px solid var(--line); }
  .tabbar button { flex: none; flex-direction: row; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 14px; }
  .tabbar button.on { background: var(--primary-soft); }
  .side-brand { display: block !important; font-size: 28px; color: var(--primary); padding: 0 14px 18px; }
  .side-only { display: flex !important; margin-top: auto; }
  .topbar .icon-btn[data-tab=settings] { display: none; }
  .content { grid-column: 2; grid-row: 2; padding: 26px 32px 40px; }
  .content > * { max-width: 980px; }
  .home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .home-grid .section-title:first-child { margin-top: 0; }
  .studio { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
  .studio .chat { position: sticky; top: 0; max-height: calc(100vh - 140px); }
  .studio .chat .msgs { overflow-y: auto; flex: 1; min-height: 200px; }
  .try-side { display: flex; flex-direction: column; }
  .block-types { grid-template-columns: repeat(6, 1fr); }
  .page { max-width: 820px; }
}

@media (max-width: 360px) {
  .grid2 { grid-template-columns: 1fr; }
  .names { font-size: 34px; }
  .notes { grid-template-columns: 1fr; }
}

/* ==================================================================== */
/* SmartWed 2.0 — vidro, quadro do checklist, ferramentas e responsivo  */
/* ==================================================================== */
:root { --glass: color-mix(in srgb, var(--surface) 62%, transparent); --glass-line: color-mix(in srgb, #fff 70%, var(--line)); --glass-shadow: 0 1px 1px rgb(255 255 255 / 60%) inset, 0 10px 30px -14px rgb(60 50 30 / 28%); }
.glass { background: linear-gradient(150deg, color-mix(in srgb, var(--surface) 78%, transparent), color-mix(in srgb, var(--surface) 44%, transparent)); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-radius: 20px; }
.glass-card { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(16px); }
.g-ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--accent-ink); background: linear-gradient(140deg, color-mix(in srgb, var(--accent-soft) 90%, #fff), color-mix(in srgb, var(--accent) 22%, transparent)); box-shadow: 0 1px 0 rgb(255 255 255 / 70%) inset; }
.g-ic .ic { width: 21px; height: 21px; }
.g-ic.big { width: 64px; height: 64px; border-radius: 22px; margin: 0 auto 10px; }
.g-ic.big .ic { width: 32px; height: 32px; }
.shell { isolation: isolate; }
.bg-blobs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.bg-blobs i:nth-child(1) { width: 52vmax; height: 52vmax; left: -18vmax; top: -14vmax; background: color-mix(in srgb, var(--accent) 38%, transparent); }
.bg-blobs i:nth-child(2) { width: 46vmax; height: 46vmax; right: -16vmax; top: 28vh; background: color-mix(in srgb, var(--primary) 26%, transparent); }
.bg-blobs i:nth-child(3) { width: 40vmax; height: 40vmax; left: 10vw; bottom: -22vmax; background: color-mix(in srgb, var(--accent-soft) 90%, transparent); }
.topbar { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.tabbar { background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.card { background: color-mix(in srgb, var(--surface) 86%, transparent); }
.side-tools { display: none; }
.wrap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sheet.wide { max-width: 860px; }

/* ---------- Quadro do checklist ---------- */
.content > .board-page { max-width: 1280px; }
.board-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.board-top .page-title { margin-bottom: 2px; }
.pct-pill { display: flex; flex-direction: column; align-items: flex-end; min-width: 120px; }
.pct-pill strong { font-family: var(--serif); font-size: 30px; color: var(--primary); line-height: 1; }
.pct-pill .bar { width: 120px; }
.board-seg { max-width: 460px; }
.jump .chip { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }
.cat-0 { --c: #9A8F7A; } .cat-1 { --c: var(--primary); } .cat-2 { --c: #5B86A8; } .cat-3 { --c: #6E9C78; } .cat-4 { --c: #C07A8A; } .cat-5 { --c: #7F86B5; }
.board { display: flex; flex-direction: column; gap: 22px; }
.board-col { scroll-margin-top: 12px; }
.board-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; }
.board-head h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--c) 16%, transparent); padding: 4px 10px; border-radius: 8px; }
.board-head .cnt { font-size: 12.5px; color: var(--muted); flex: 1; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; display: flex; min-height: 104px; transition: transform .15s, box-shadow .2s; overflow: hidden; }
.tile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); opacity: .7; }
.tile:active { transform: scale(.97); }
.tile-main { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 12px 12px 15px; text-align: left; min-width: 0; }
.tile-main .g-ic { width: 34px; height: 34px; border-radius: 11px; }
.tile-main .g-ic .ic { width: 18px; height: 18px; }
.tile-title { font-weight: 600; font-size: 13.5px; line-height: 1.3; letter-spacing: .01em; overflow-wrap: anywhere; }
.tile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.tile-meta .ic { width: 12px; height: 12px; }
.tile-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.tile-check { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; color: transparent; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tile-check .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.tile.done .tile-check { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.tile.done .tile-title { color: var(--muted); }
.add-tile { flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--accent-ink); border-style: dashed; font-size: 13px; min-height: 104px; background: transparent; box-shadow: none; }
.add-tile::before { display: none; }

/* ---------- Início ---------- */
.couple-photo { width: 116px; height: 116px; border-radius: 50%; overflow: hidden; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--accent), var(--shadow); margin-bottom: 14px; }
.couple-photo img { width: 100%; height: 100%; object-fit: cover; }
.couple-photo.lg { width: 160px; height: 160px; margin: 0 auto 16px; }
.chat-cta { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; margin-bottom: 14px; text-align: left; }
.chat-cta strong { font-size: 20px; color: var(--primary); display: block; }
.chat-cta small { color: var(--muted); font-size: 12.5px; }
.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.widget { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; text-align: left; min-height: 120px; }
.widget .w-title { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin-top: 4px; }
.widget strong { font-family: var(--serif); font-size: 24px; color: var(--primary); line-height: 1.1; }
.widget small { font-size: 12px; color: var(--muted); }
.widget .ring { margin: -4px 0 -2px -4px; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tool { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; text-align: left; min-height: 116px; }
.tool strong { font-size: 14px; font-weight: 600; line-height: 1.25; }
.tool small { font-size: 12px; color: var(--muted); }
.file-ic.late { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* ---------- Bloco "ferramenta" dentro dos tópicos ---------- */
.tool-blk { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.tool-link { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; }
.tool-link strong { display: block; font-size: 15px; color: var(--primary); }
.tool-link small { color: var(--muted); font-size: 12.5px; }
.compare-btn { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.compare-btn .ic { width: 14px; height: 14px; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.cmp { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.cmp th { background: var(--primary-soft); color: var(--primary); text-align: left; padding: 10px 12px; font-weight: 600; min-width: 150px; }
.cmp td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.cmp .cmp-k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; background: var(--bg); }
.cmp td.best { color: var(--primary); font-weight: 600; }
.cmp td small { font-size: 10.5px; color: var(--accent-ink); }

/* ---------- Orçamento e fornecedores ---------- */
.budget-hero { padding: 18px; margin-bottom: 6px; }
.bh-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bh-total small { width: 100%; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.bh-total strong { font-family: var(--serif); font-size: 36px; color: var(--primary); line-height: 1.1; }
.bh-total .ic { width: 16px; height: 16px; color: var(--muted); }
.bar.big { height: 8px; margin: 12px 0 4px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.kpis div, .kpis-row div { background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.kpis small, .kpis-row small { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kpis strong, .kpis-row strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.kpis .neg strong { color: var(--danger); }
.kpis-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; margin-bottom: 12px; }
.cat-bars { display: flex; flex-direction: column; gap: 14px; }
.cb-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cb-top span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.cb-bar { display: flex; height: 10px; border-radius: 6px; background: var(--primary-soft); overflow: hidden; margin: 6px 0 4px; }
.cb-bar i { background: var(--c); }
.cb-bar b { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--c) 45%, transparent) 0 4px, transparent 4px 8px); }
.legend { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 8px; border-radius: 3px; display: inline-block; }
.lg-a { background: var(--primary); } .lg-b { background: repeating-linear-gradient(45deg, var(--primary) 0 3px, transparent 3px 6px); }
.cat-label { margin: 16px 4px 6px; }
.file-row strong { font-variant-numeric: tabular-nums; font-size: 14px; }
.ai-search { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 14px; }
.ai-search form { gap: 8px; }
.ai-search input { min-height: 42px !important; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; margin: 12px -16px 6px; padding-left: 16px; padding-right: 16px; scrollbar-width: thin; }
.kb-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kb-col header { display: flex; align-items: center; justify-content: space-between; }
.kb-card { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; text-align: left; border-radius: 14px; }
.kb-card strong { font-size: 14px; } .kb-card small { color: var(--muted); font-size: 12px; } .kb-card span { font-size: 13px; color: var(--primary); font-weight: 600; }
.kb-empty { padding: 6px 4px; }

/* ---------- Cronograma ---------- */
.tl-actions { margin-bottom: 14px; }
.warn { display: flex; gap: 12px; align-items: flex-start; border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.warn > .ic { color: var(--danger); width: 22px; height: 22px; }
.warn-t { color: var(--danger); display: flex; align-items: center; gap: 5px; }
.warn-t .ic { width: 14px; height: 14px; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 66px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent-soft), var(--line)); }
.tl-item { display: grid; grid-template-columns: 54px 26px 1fr; align-items: start; margin-bottom: 10px; cursor: pointer; --c: var(--accent); }
.tl-item.cat-0 { --c: #B09A6E; } .tl-item.cat-1 { --c: #8C8C80; } .tl-item.cat-2 { --c: var(--primary); } .tl-item.cat-3 { --c: #5B86A8; } .tl-item.cat-4 { --c: #C07A8A; } .tl-item.cat-5 { --c: #7F86B5; }
.tl-time { text-align: right; padding-top: 10px; display: flex; flex-direction: column; }
.tl-time strong { font-variant-numeric: tabular-nums; font-size: 14px; }
.tl-time small { color: var(--muted); font-size: 11px; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin: 14px auto 0; box-shadow: 0 0 0 4px var(--bg); position: relative; z-index: 1; }
.tl-card { padding: 11px 14px; border-radius: 16px; border-left: 3px solid var(--c); }
.tl-title { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tl-title strong { font-size: 14.5px; }
.tl-card p { margin-top: 4px; }
.tl-item.done .tl-title strong { text-decoration: line-through; color: var(--muted); }
.empty-hero { text-align: center; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 14px; }
.empty-hero > .ic { width: 38px; height: 38px; color: var(--accent); }
.empty-hero h3 { font-size: 24px; color: var(--primary); }
.empty-hero.sm { padding: 18px; }
.empty-hero .form { width: 100%; max-width: 420px; text-align: left; }
.notice > div { flex: 1; }

/* ---------- Locais / mapa ---------- */
.place-card strong { font-size: 16px; }
.map-box { height: 260px; border-radius: 16px; overflow: hidden; margin: 12px 0; border: 1px solid var(--line); background: var(--primary-soft); }
.map-box .maplibregl-ctrl-attrib { font-size: 9px; }
.map-box canvas { outline: none; }
.sw-pin { display: grid; place-items: center; width: 40px; height: 48px; opacity: 0; transition: opacity .3s; }
.sw-pin.show { opacity: 1; }
.sw-pin.show span { animation: drop .7s cubic-bezier(.3, 1.5, .5, 1); }
.sw-pin span { width: 38px; height: 38px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--primary); display: grid; place-items: center; box-shadow: 0 6px 16px -4px rgb(0 0 0 / 45%); }
.sw-pin .ic { transform: rotate(45deg); color: var(--primary-ink); width: 18px; height: 18px; fill: currentColor; }
@keyframes drop { from { transform: translateY(-40px) rotate(-45deg); opacity: 0; } to { transform: rotate(-45deg); opacity: 1; } }

/* ---------- Presentes / Pix ---------- */
.pix-row { display: flex; gap: 14px; align-items: center; }
.qr { width: 120px; height: 120px; border-radius: 12px; background: #fff; padding: 6px; flex: none; border: 1px solid var(--line); }
.qr.big { width: 190px; height: 190px; }
.gifts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gift { display: flex; flex-direction: column; text-align: left; overflow: hidden; padding: 0; }
.gift img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gift > .g-ic { margin: 14px 14px 0; }
.gift-info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.gift-info strong { font-size: 13.5px; line-height: 1.3; } .gift-info small { color: var(--muted); font-size: 12px; } .gift-info b { color: var(--primary); }
.gift-prev { width: 120px; border-radius: 12px; }
.store-btns { gap: 6px; }
.upload-box.slim { padding: 12px 14px; margin-bottom: 0; }

/* ---------- Site ---------- */
.slug-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding-left: 12px; text-transform: none; letter-spacing: 0; }
.slug-field span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.slug-field input { border: 0 !important; box-shadow: none !important; background: transparent !important; padding-left: 4px !important; }
.site-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 8px; }
.site-url { display: block; font-size: 15px; color: var(--primary); word-break: break-all; }
.site-hero-prev { width: 100%; max-height: 200px; object-fit: cover; border-radius: 14px; }
.qr-card, .qr-hero { display: flex; gap: 16px; align-items: center; }
.qr-hero { padding: 18px; margin-bottom: 8px; flex-wrap: wrap; justify-content: center; }
.qr-hero strong { font-size: 24px; color: var(--primary); display: block; }
.qr-hero > div { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
details.help summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 500; }
details.help p { margin-top: 10px; }

/* ---------- Smart Cerimonial (chat) ---------- */
.content > .chat-page { max-width: 860px; }
.chat-page { display: flex; flex-direction: column; height: 100%; }
.chat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.chat-top .page-title { margin-bottom: 0; }
.chat-box { display: flex; flex-direction: column; padding: 12px; flex: 1; min-height: 0; }
.chat-box .msgs { flex: 1; overflow-y: auto; min-height: 50vh; max-height: calc(100vh - 290px); padding: 4px 2px; }
.content[data-view=chat] { padding-bottom: 12px; }
.chat-empty { text-align: center; padding: 18px 8px; }
.chat-empty p.serif { font-size: 24px; color: var(--primary); }
.sugs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.sugs .chip { white-space: normal; text-align: left; }
.bubble.md { line-height: 1.55; }
.bubble.md p { margin: 0 0 8px; } .bubble.md p:last-child { margin-bottom: 0; }
.bubble.md h4 { font-family: var(--serif); font-size: 19px; color: var(--primary); margin: 10px 0 4px; }
.bubble.md ul, .bubble.md ol { margin: 4px 0 8px; padding-left: 20px; }
.bubble.md li { margin: 2px 0; }
.bubble.md li.ck { list-style: '✓  '; color: var(--primary); }
.bubble.md a, .sources a { color: var(--accent-ink); text-decoration: underline; cursor: pointer; }
.md-tbl { overflow-x: auto; margin: 6px 0 10px; }
.md-tbl table { border-collapse: collapse; font-size: 13px; }
.md-tbl th, .md-tbl td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; }
.md-tbl th { background: var(--primary-soft); }
.sources { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 2px; }
.act-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.act-pill.no { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.act-pill .ic { width: 13px; height: 13px; }
.confirm-b { display: flex; flex-direction: column; gap: 8px; border-color: var(--accent) !important; }
.confirm-b strong { display: flex; align-items: center; gap: 6px; color: var(--accent-ink); }
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
#chatInput { min-height: 46px; max-height: 160px; resize: none; }

/* ---------- Estúdio e provador ---------- */
.quota { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 12px; }
.quota .ic { width: 16px; height: 16px; } .quota span { flex: 1; }
.quota.empty { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.quota-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0 12px; }
.quota-grid span { display: flex; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.angles { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.angles .label-sm { margin-right: 4px; }
.angle { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--primary-soft); display: grid; place-items: center; cursor: pointer; text-transform: none; color: var(--accent-ink); }
.angle img { width: 100%; height: 100%; object-fit: cover; }
.angle.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.angle.add { border: 1.5px dashed var(--accent); background: var(--surface); }
.slots.six { grid-template-columns: repeat(3, 1fr); }
.slot small { text-align: center; line-height: 1.15; }
.tip { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; background: var(--accent-soft); color: var(--accent-ink); padding: 9px 11px; border-radius: 12px; margin-bottom: 10px; }
.tip .ic { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.v360 { position: relative; aspect-ratio: 9/16; max-height: 62vh; margin: 0 auto 12px; border-radius: 16px; overflow: hidden; background: var(--primary-soft); display: grid; place-items: center; touch-action: pan-y; }
.v360 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s, transform .35s; transform: scale(.98); }
.v360 img.on { opacity: 1; transform: none; }
.notes-list { padding-left: 18px; margin: 0 0 12px; font-size: 14px; }
.set-row.hl { background: var(--accent-soft); }
.google-btn { margin-bottom: 4px; }
.google-btn .ic { width: 20px; height: 20px; }
.note.glass { background: linear-gradient(150deg, color-mix(in srgb, var(--surface) 80%, transparent), color-mix(in srgb, var(--surface) 50%, transparent)); }

/* ---------- Responsivo ---------- */
@media (min-width: 560px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .widgets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .gifts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .tabbar { overflow-y: auto; }
  .tabbar .mob-only { display: none; }
  .side-tools { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
  .side-tools .label-sm { padding: 0 14px 6px; font-size: 11px; }
  .side-tools button { padding: 8px 14px; font-size: 13.5px; }
  .side-tools button .ic { width: 19px; height: 19px; }
  .board { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; align-items: start; }
  .board-col { background: color-mix(in srgb, var(--surface) 35%, transparent); border: 1px solid var(--glass-line); border-radius: 22px; padding: 12px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .widgets { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid .widgets { grid-template-columns: 1fr 1fr; }
  .kanban { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; margin: 12px 0; padding: 0; overflow: visible; }
  .gifts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map-box { height: 340px; }
  .chat-box .msgs { max-height: calc(100vh - 260px); }
  .content[data-view=tools] .tools-grid, .content[data-view=home] > .home-grid { max-width: 1100px; }
  .content > .home-grid { max-width: 1100px; }
}
@media (min-width: 1300px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content[data-view=tools] .tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .tabbar button { font-size: 10px; }
  .tiles { gap: 8px; }
  .tile-title { font-size: 13px; }
  .kpis-row strong { font-size: 15px; }
}
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: var(--surface); }
}

/* ---------- Ajustes finos 2.0 ---------- */
.tl-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tl-meta .ic { width: 13px; height: 13px; margin-right: 2px; }
.tl-meta i { font-style: normal; opacity: .6; }
.board-top { flex-wrap: nowrap; align-items: flex-start; }
.pct-pill { min-width: 0; padding-top: 8px; }
.pct-pill strong { font-size: 26px; }
.pct-pill .bar { width: 76px; }
.chat-top .page-title { font-size: 28px; }
.chat-top .btn .ic { width: 18px; height: 18px; }
@media (max-width: 520px) { .hide-xs { display: none; } .chat-top .btn.sm { width: 40px; padding: 0; } .chat-top p.small { font-size: 12.5px; } }


/* ================= 2.1: quadros, tipo de local, cobrança de RSVP ================= */
.hint { font-size: 12px; color: var(--muted); margin: 6px 2px 0; }
p.warn { display: block; color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); border-radius: 12px; padding: 8px 12px; }
p.warn .ic { width: 14px; height: 14px; vertical-align: -2px; }

/* Quadros */
.q-body { display: grid; gap: 12px; padding: 4px 0 2px; }
.q-sec { display: grid; gap: 6px; }
.q-lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.q-lbl .ic { width: 13px; height: 13px; }
.q-lbl strong { color: var(--text); letter-spacing: 0; text-transform: none; font-size: 12px; }
.q-sec > .btn.sm { justify-self: start; }
.q-children { display: grid; gap: 8px; }
.q-add { justify-self: start; }
.qcard { border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.qcard.depth-3 { background: color-mix(in srgb, var(--primary-soft) 35%, var(--surface)); }
.qcard-head { display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 4px; }
.qcard.open > .q-body { padding: 0 12px 12px; }
.q-toggle { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 6px; text-align: left; }
.q-toggle strong { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-chev { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform .2s; }
.open > .qcard-head .q-chev, .step.open .q-chev { transform: rotate(90deg); }
.q-counts { display: inline-flex; gap: 8px; margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.q-counts .ic { width: 12px; height: 12px; margin-right: 2px; vertical-align: -2px; }
.step { border-radius: 12px; }
.step .item-body.q-toggle { flex: 1; padding: 6px 4px; }
.step .item-body .item-text { flex: 1; min-width: 0; }
.step.open { background: color-mix(in srgb, var(--primary-soft) 30%, transparent); padding-bottom: 10px; }
.step.open > .q-body { padding: 4px 12px 0 44px; }
@media (max-width: 559px) { .step.open > .q-body { padding-left: 10px; } }
.exp-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.exp-row small { display: block; color: var(--muted); font-size: 11px; }
.exp-val { text-align: right; font-weight: 600; white-space: nowrap; }
.exp-val small { font-weight: 400; }
.qboard > .q-body { padding-top: 6px; }
.sortable-imgs .thumb { touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.drag-ghost { opacity: .35; }
.drag-chosen { transform: scale(1.04); box-shadow: var(--shadow); }
.blk-text a { word-break: break-all; }

/* Tipo de local */
.venue-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.venue { padding: 8px 12px; }
.chip.venue .ic { width: 15px; height: 15px; }
.venue-card { display: grid; gap: 10px; }
.venue-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.set-row.static { cursor: default; }

/* Checklist pessoal */
.private-banner.shared { background: color-mix(in srgb, var(--primary-soft) 60%, transparent); }
.personal-tiles { margin-bottom: 14px; }
@media (min-width: 560px) { .personal-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .personal-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Cobrança de confirmações */
.nudge-card { display: grid; gap: 10px; margin-bottom: 14px; }
.nudge-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.chip .x { margin-left: 6px; font-size: 15px; line-height: 1; color: inherit; opacity: .7; }
.chip.muted { opacity: .55; }
.chip.ok { background: var(--primary-soft); }
.add-date { position: relative; cursor: pointer; }
.add-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.nudge-list { display: grid; gap: 6px; margin: 8px 0; }
.nudge-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.nudge-row small { display: block; color: var(--muted); font-size: 11px; }
.nudge-row.sent { opacity: .7; }
.nudge-cta .g-ic { background: var(--accent-soft); color: var(--accent-ink); }

.q-body .blk-imgs { grid-template-columns: repeat(auto-fill, minmax(76px, 92px)); }
.q-body .add-thumb small { font-size: 11px; }

.nudge-card .chip, .nudge-card label.chip { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; height: auto; min-height: 34px; padding: 6px 12px; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
.nudge-card label.chip .ic { width: 14px; height: 14px; }


/* ================= 2.2: painel, convites, cadeiras, acessos, mídia ================= */
:root { --logo-scale: 1; --photo-scale: 1; }
.hero .logo.lg { width: calc(112px * var(--logo-scale)); height: calc(112px * var(--logo-scale)); }
.hero .couple-photo { width: calc(116px * var(--photo-scale)); height: calc(116px * var(--photo-scale)); }
.tb-left .logo.xs { width: calc(34px * min(var(--logo-scale), 1.25)); height: calc(34px * min(var(--logo-scale), 1.25)); }
.scale-ctl { display: grid; gap: 6px; margin: 10px 0; font-size: 13px; }
.scale-ctl span { display: flex; justify-content: space-between; color: var(--muted); }
.scale-ctl input { width: 100%; accent-color: var(--primary); }
.crop-box { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 6px auto 12px; border-radius: 18px; overflow: hidden; background: var(--primary-soft); touch-action: none; }
.crop-box canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.crop-box canvas:active { cursor: grabbing; }
.crop-ring { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; box-shadow: 0 0 0 999px rgb(0 0 0 / 45%); border: 2px solid rgb(255 255 255 / 85%); }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.crop-zoom input { flex: 1; accent-color: var(--primary); }
.priv-note { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); background: var(--primary-soft); padding: 5px 10px; border-radius: 99px; margin: 0 0 10px; }
.priv-note .ic { width: 13px; height: 13px; }
.small-kpis { grid-template-columns: repeat(2, 1fr); margin: 10px 0 14px; }
@media (min-width: 560px) { .small-kpis { grid-template-columns: repeat(4, 1fr); } }
.small-kpis:has(> div:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.tool-links { gap: 8px; margin: 10px 0 14px; }
.widgets.two { grid-template-columns: 1fr 1fr !important; }

/* Painel gamificado */
.dash { display: grid; gap: 12px; margin: 14px 0; }
.dash-level { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); }
.lv-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--primary))); color: #fff; flex: none; }
.lv-ic .ic { width: 22px; height: 22px; }
.dash-level small { display: block; font-size: 11.5px; color: var(--muted); }
.dash-level strong { display: block; font-size: 20px; color: var(--primary); line-height: 1.2; }
.lv-bar { display: block; height: 6px; border-radius: 99px; background: var(--primary-soft); margin: 6px 0 4px; overflow: hidden; }
.lv-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: inherit; transition: width .6s; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .dash-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.dcard { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 14px 10px 12px; border-radius: var(--radius); }
.dcard-ring { position: relative; display: grid; place-items: center; }
.dcard-ring strong { position: absolute; font-size: 15px; font-variant-numeric: tabular-nums; }
.dcard-t { font-weight: 600; font-size: 13.5px; }
.dcard small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.dcard small .ic { width: 11px; height: 11px; vertical-align: -1px; }
.dring .bg { fill: none; stroke: var(--primary-soft); stroke-width: 6; }
.dring .fg { fill: none; stroke: var(--primary); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.dring.alt .fg { stroke: color-mix(in srgb, var(--primary) 70%, var(--accent)); }
.dring.gold .fg { stroke: var(--accent); }
.dnew { position: absolute; top: 8px; right: 8px; font-size: 10.5px; background: var(--danger); color: #fff; border-radius: 99px; padding: 2px 7px; }
.ach-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.ach-row::-webkit-scrollbar { display: none; }
.ach { flex: none; display: grid; justify-items: center; gap: 4px; width: 78px; text-align: center; opacity: .38; filter: grayscale(1); }
.ach .ic { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.ach small { font-size: 10.5px; line-height: 1.2; color: var(--muted); }
.ach.ok { opacity: 1; filter: none; }
.ach.ok .ic { background: linear-gradient(135deg, var(--accent-soft), var(--primary-soft)); color: var(--accent-ink); border-color: var(--accent); }

/* Convites */
.inv-hero { display: grid; gap: 12px; }
.inv-preview { background: var(--ib); border: 1px solid var(--ia); outline: 1px solid var(--ia); outline-offset: -6px; border-radius: 10px; padding: 22px 18px; display: grid; justify-items: center; text-align: center; gap: 6px; max-width: 340px; margin: 0 auto; color: #444; }
.inv-preview .inv-ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.inv-preview small { color: var(--ia); letter-spacing: .14em; font-size: 10px; }
.inv-preview strong { font-size: 28px; color: var(--ip); font-style: italic; line-height: 1.1; }
.inv-preview span { font-size: 12.5px; }
.inv-preview em { font-family: var(--serif); font-size: 15px; color: #666; }
.inv-preview b { background: var(--ip); color: #fff; border-radius: 99px; padding: 7px 16px; font-size: 12px; margin-top: 4px; }
.inv-list { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 900px) { .inv-list { grid-template-columns: 1fr 1fr; } }
.inv-card { display: grid; gap: 8px; }
.inv-card .serif { font-size: 18px; }
.inv-people { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.xs.no { background: color-mix(in srgb, var(--danger) 14%, transparent); }
.inv-card.st-ok .st { background: var(--primary); color: var(--primary-ink); }
.inv-card.st-sent .st { background: var(--accent-soft); }
.inv-pick { display: grid; gap: 4px; max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.inv-opt { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; text-align: left; width: 100%; cursor: pointer; }
.inv-opt:hover, .inv-opt.on { background: var(--primary-soft); }
.inv-opt small { display: block; color: var(--muted); font-size: 11px; }
.inv-opt.taken { opacity: .6; }
.inv-opt input { width: 18px; height: 18px; accent-color: var(--primary); }
section.card.warn { display: flex; gap: 12px; margin-bottom: 12px; }
section.card.warn > span .ic { color: var(--danger); width: 22px; height: 22px; }

/* Mapa de cadeiras */
.seat-card { overflow: hidden; }
.seat-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; margin-bottom: 8px; }
.seat-ctrl span { color: var(--muted); margin-left: 6px; }
.seat-ctrl strong { min-width: 20px; text-align: center; }
.seat-sides { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 0 6px; }
.seat-wrap { overflow-x: auto; }
.seat-svg { display: block; width: 100%; min-width: 300px; max-width: 760px; margin: 0 auto; height: auto; }
.seat-svg .altar-arch { fill: none; stroke: var(--accent); stroke-width: 3; }
.seat-svg .altar-table { fill: var(--accent-soft); stroke: var(--accent); }
.seat-svg .altar-t, .seat-svg .aisle-t { font: 600 11px var(--sans); fill: var(--accent-ink); text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }
.seat-svg .aisle { fill: color-mix(in srgb, var(--accent-soft) 60%, transparent); stroke: var(--accent); stroke-dasharray: 3 4; }
.seat-svg .row-n { font: 10px var(--sans); fill: var(--muted); }
.seat-svg .seat { cursor: pointer; }
.seat-svg .seat rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; transition: fill .15s; }
.seat-svg .seat .seat-back { fill: var(--line); stroke: none; }
.seat-svg .seat:hover rect:first-child { stroke: var(--primary); }
.seat-svg .seat.guest rect:first-child { fill: var(--primary); stroke: var(--primary); }
.seat-svg .seat.group rect:first-child { fill: var(--accent); stroke: var(--accent); }
.seat-svg .seat text { font: 700 10px var(--sans); fill: #fff; text-anchor: middle; pointer-events: none; }
.seat-legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.seat-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; border: 1.5px solid var(--line); background: var(--surface); }
.seat-legend .lg.guest { background: var(--primary); border-color: var(--primary); }
.seat-legend .lg.group { background: var(--accent); border-color: var(--accent); }

/* Acessos */
.perm-list { display: grid; gap: 6px; }
.perm-list .toggle span small { display: block; font-size: 11.5px; color: var(--muted); }

.seat-ctrl { justify-content: space-between; }
.seat-ctrl > div { display: flex; align-items: center; gap: 6px; }
.seat-ctrl > div span { margin: 0 4px 0 0; }

/* Presentes: foto inteira, sem cortar */
.gift img { object-fit: contain; background: #fff; padding: 6px; }

.seat-svg .seat.memorial rect:first-child { fill: #fff; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 2; }
.seat-svg .seat.memorial text { fill: var(--accent); font-size: 13px; }
.seat-legend .lg.memorial { background: #fff; border: 1.5px dashed var(--accent); }
.memorial-btn { justify-self: start; }

/* Arrastar e recolher */
.drag-h { cursor: grab; color: var(--muted); opacity: .55; font-size: 15px; line-height: 1; padding: 4px 2px; user-select: none; -webkit-user-select: none; touch-action: none; flex: none; }
.drag-h:hover { opacity: 1; }
.blk-head { display: flex; align-items: center; gap: 6px; }
.blk-head h3 { flex: 1; }
.step .item.mini { align-items: center; }
.col-toggle { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; text-align: left; padding: 0; }
.col-chev { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .2s; color: var(--muted); flex: none; }
.board-col.closed .col-chev { transform: rotate(0deg); }
.board-col.closed { padding-bottom: 6px; }
.board-tools { gap: 14px; margin: 4px 0 10px; align-items: center; }
.tile.drag-chosen, .pb.drag-chosen, .qcard.drag-chosen, .step.drag-chosen { box-shadow: 0 14px 30px -12px rgb(0 0 0 / 35%); }
.pb + .pb { margin-top: 12px; }

.dress-field { display: grid; gap: 6px; }
.dress-sum { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; width: 100%; }
.dress-sum small { display: block; color: var(--muted); font-size: 12px; }
.sw-row { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: -2px; }
.sw-row i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); }
.dress-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.dc { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); }
.dc.on { outline: 3px solid var(--primary); outline-offset: 2px; }

.smart-row { display: flex; align-items: center; gap: 8px; padding: 0 4px 6px; flex-wrap: wrap; }
.smart-row small { font-size: 11.5px; }

.venue-desc { display: grid; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.venue-desc textarea { font: inherit; color: var(--text); }

.imp-link { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.imp-link .ic { width: 14px; height: 14px; }
.imp-wrap { max-height: 55vh; overflow: auto; margin-bottom: 10px; }
.imp-wrap td input { width: 18px; height: 18px; accent-color: var(--primary); }

.lock-card { display: flex; gap: 12px; align-items: flex-start; border: 1.5px dashed var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); margin-bottom: 12px; }
.lock-card .lock-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.lock-card p { margin: 4px 0 10px; }
.cer-card { padding: 6px; margin-bottom: 12px; }
.cer-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 12px; text-align: left; }
.cer-row small { display: block; color: var(--muted); font-size: 12px; }
.shop-list { display: grid; gap: 10px; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.shop-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.shop-item.focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* ================= 2.4: leveza — degradê, vidro, toque e entrada das páginas ================= */
body { background: radial-gradient(120% 80% at 0% 0%, var(--grad-a, transparent) 0%, transparent 55%), radial-gradient(110% 70% at 100% 100%, var(--grad-b, transparent) 0%, transparent 60%), var(--bg); background-attachment: fixed; }
[data-mode=dark] .bg-blobs i { opacity: .22; }
/* Botões e chips como widgets de vidro */
.btn.ghost, .chip, .icon-btn, .pill, .link-row, .exp-row, .set-row, .file-row, .rec, .q-toggle, .cer-row, .dress-sum {
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
}
.btn.ghost, .chip:not(.on), .pill { background: var(--glass, rgb(255 255 255 / 55%)); border-color: var(--glass-line, rgb(255 255 255 / 70%)); box-shadow: 0 1px 0 rgb(255 255 255 / 35%) inset, 0 6px 16px -10px rgb(40 30 20 / 35%); }
.btn.primary { box-shadow: 0 10px 22px -12px var(--primary), 0 1px 0 rgb(255 255 255 / 25%) inset; }
.card, .glass { box-shadow: 0 1px 0 rgb(255 255 255 / 30%) inset, 0 14px 34px -22px rgb(40 30 20 / 40%); }
[data-mode=dark] .card { background: color-mix(in srgb, var(--surface) 88%, transparent); }
/* Toque: leve afundar + onda */
.btn, .chip, .icon-btn, .pill, .tile, .widget, .dcard, .tool, .file-row, .set-row, .rec, .q-toggle, .tabbar button, .glass { transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s; }
.btn:active, .chip:active, .icon-btn:active, .pill:active, .tile:active, .widget:active, .dcard:active, .tool:active, .file-row:active, .set-row:active, .rec:active, .tabbar button:active { transform: scale(.965); }
.rp-host { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .16; transform: scale(0); animation: ripple .55s ease-out forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
/* Entrada das páginas */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.content.enter > * { animation: fadeUp .38s cubic-bezier(.2,.8,.2,1) both; }
.content.enter > *:nth-child(2) { animation-delay: .04s; } .content.enter > *:nth-child(3) { animation-delay: .08s; }
.content.enter > *:nth-child(4) { animation-delay: .12s; } .content.enter > *:nth-child(n+5) { animation-delay: .16s; }
.tabbar button.on .ic { animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(.8); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .content.enter > *, .ripple, .tabbar button.on .ic { animation: none !important; } .btn:active, .chip:active, .tile:active { transform: none; } }
/* Modo escuro: ajustes finos */
[data-mode=dark] img.qr, [data-mode=dark] .seat-svg .seat.memorial rect:first-child { filter: none; }
[data-mode=dark] .inv-preview { color: #333; }
.mode-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.reminder-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.reminder-row small { display: block; color: var(--muted); font-size: 12px; }
.notif-cta .g-ic { background: var(--primary-soft); color: var(--primary); }

.theme-field { display: grid; gap: 8px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.theme-card { display: grid; gap: 4px; text-align: left; padding: 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); }
.theme-card.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.tc-prev { display: grid; place-items: center; height: 64px; border-radius: 10px; background: var(--tb); position: relative; overflow: hidden; }
.tc-prev b { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--tp); }
.tc-prev i { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--tp); opacity: .85; }
.tc-prev em { position: absolute; bottom: 8px; width: 34px; height: 2px; background: var(--ta); }
.theme-card strong { font-size: 13px; }
.theme-card small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.crown { color: #E0A93B; }

.mock-card { display: grid; gap: 8px; margin-bottom: 12px; }
.mock-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.mock-result { width: 100%; border-radius: 14px; margin: 6px 0; box-shadow: var(--shadow); }

.brand-logo { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 8px; display: block; box-shadow: 0 10px 26px -16px rgb(60 50 30 / 45%); }
.brand h1, .side-brand { color: #6B7A4B !important; }
.brand .ornament { color: #C5A46D; }
[data-mode=dark] .brand h1, [data-mode=dark] .side-brand { color: #B9C69A !important; }
.side-brand { display: flex; align-items: center; gap: 10px; }
.side-brand img { width: 34px; height: 34px; border-radius: 9px; }
.cat-tabs .chip.on { color: var(--primary-ink); }
.cat-tabs .chip small { opacity: .7; margin-left: 2px; }
.board-hint { margin: 2px 0 10px; }

.quick-exp { display: grid; gap: 8px; margin: 12px 0; }
.quick-exp h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.quick-row { display: flex; gap: 6px; align-items: center; }
.quick-row input { flex: 1; min-width: 0; }
.mic.listening { background: var(--danger); color: #fff; animation: pop .8s ease-in-out infinite alternate; }
.composer .mic { flex: none; }

.q-item { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 4px 6px 4px 4px; }
.q-item-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; padding: 4px; }
.q-item-main img, .q-item-ic { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.q-item-main strong { display: block; font-size: 14px; }
.q-item-main small { display: block; color: var(--muted); font-size: 12px; }
.q-sec > .q-item + .q-item { margin-top: 0; }

.logo-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.logo-style { text-align: left; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); }
.logo-style.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.logo-style small { display: block; color: var(--muted); font-size: 11.5px; }
.logo-out img { width: min(100%, 320px); display: block; margin: 8px auto; border-radius: 16px; background: #fff; }
.std-card { display: grid; gap: 8px; margin-bottom: 12px; }
.std-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.std-prev img { width: min(100%, 360px); display: block; margin: 6px auto; border-radius: 12px; box-shadow: var(--shadow); }
.center-block { display: flex; margin: 8px auto 0; }

.dress-pick { display: flex; gap: 12px; align-items: center; }
.dress-pick img { width: 120px; height: 120px; flex: none; border-radius: 16px; }

.chal-card { display: grid; gap: 8px; margin-bottom: 12px; }
.chal-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.chal-list { display: flex; flex-wrap: wrap; gap: 6px; }
