:root {
  --bg: #f5f7f5; --surface: #fff; --line: #e1e7e3; --text: #13201a; --muted: #5f6f66;
  --brand: #04140d; --brand-2: #0b2a1b; --accent: #16a864; --accent-2: #0f8a50; --accent-soft: #e5f6ed;
  --warn: #b7791f; --warn-soft: #fdf4e3; --danger: #c0392b; --danger-soft: #fbeceb; --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 Inter, system-ui, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.2; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 600; white-space: nowrap; text-decoration: none; transition: .15s; }
.btn:hover { background: var(--accent-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.danger { background: #fff; color: var(--danger); border-color: #f0c9c5; }
.btn.sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn.lg { padding: 13px 22px; font-size: 1rem; }
input[type=text], input[type=email], input[type=number], input[type=time], input[type=url], input[type=date], input[type=tel], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: 0; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 84px; resize: vertical; }
label.f { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: #34443b; }
label.f small { font-weight: 400; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* Top bar */
.top { background: var(--brand); color: #eef7f1; }
.top .in { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 18px; }
.logo { font: 700 1rem "Space Grotesk", sans-serif; letter-spacing: .08em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo i { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-style: normal; color: var(--brand); font-size: .9rem; }
.top nav { display: flex; gap: 6px; margin-left: 10px; }
.top nav a { padding: 7px 12px; border-radius: 8px; text-decoration: none; color: #9bb5a6; font-weight: 500; }
.top nav a.on, .top nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.top .who { margin-left: auto; display: flex; align-items: center; gap: 12px; color: #9bb5a6; font-size: .88rem; }
.top .who button { color: #eef7f1; border: 1px solid rgba(255,255,255,.2); padding: 6px 12px; border-radius: 8px; }

.page { max-width: 1240px; margin: 0 auto; padding: 32px 20px 80px; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.head h1 { font-size: 1.8rem; }
.head p { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.muted { color: var(--muted); }
.empty { text-align: center; padding: 60px 20px; }
.empty h2 { margin-bottom: 8px; }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login .side { background: radial-gradient(600px 400px at 70% 20%, rgba(34,201,122,.25), transparent 60%), var(--brand); color: #eef7f1; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login .side h2 { font-size: 2.4rem; max-width: 460px; margin: 18px 0 14px; }
.login .side p { color: #9bb5a6; max-width: 440px; }
.login .side ul { list-style: none; display: grid; gap: 10px; margin-top: 24px; }
.login .side li::before { content: "✓  "; color: #22c97a; font-weight: 700; }
.login .form { display: grid; place-items: center; padding: 32px 20px; }
.login .box { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.login .box h1 { font-size: 1.7rem; }
.code-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-weight: 700; }
.err { color: var(--danger); font-size: .9rem; }
.devnote { background: var(--warn-soft); color: #7a5512; padding: 10px 12px; border-radius: 10px; font-size: .88rem; }

/* Sites */
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.site-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.site-card .thumb { aspect-ratio: 16/9; background: #dfe7e2 center/cover no-repeat; }
.site-card .body { padding: 18px; display: grid; gap: 8px; flex: 1; }
.site-card h3 { font-size: 1.15rem; }
.site-card .addr { font-size: .88rem; color: var(--muted); word-break: break-all; }
.site-card .acts { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; width: max-content; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-active { background: var(--accent-soft); color: var(--accent-2); }
.b-draft { background: #eef1f4; color: #55606b; }
.b-past_due { background: var(--warn-soft); color: var(--warn); }
.b-suspended, .b-cancelled { background: var(--danger-soft); color: var(--danger); }

/* New site wizard */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.theme { text-align: left; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: .15s; }
.theme:hover { border-color: #b9dcc9; }
.theme.on { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.theme .img { aspect-ratio: 4/3; background: #e7ece9 center/cover no-repeat; }
.theme .t { padding: 14px 16px; }
.theme b { font-size: 1.05rem; }
.theme small { display: block; color: var(--muted); }
.addr-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.addr-input input { border: 0; box-shadow: none !important; }
.addr-input span { padding: 0 12px; color: var(--muted); white-space: nowrap; }
.ok { color: var(--accent-2); font-size: .88rem; }

/* Editor */
.editor { display: grid; grid-template-columns: 430px 1fr; height: calc(100vh - 60px); }
.panel { border-right: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; min-height: 0; }
.panel .ph { padding: 16px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.panel .ph .row { display: flex; align-items: center; gap: 10px; }
.panel .ph h2 { font-size: 1.15rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-state { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 7px 11px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.tabs button.on { background: var(--accent-soft); color: var(--accent-2); }
.panel .pb { flex: 1; overflow-y: auto; padding: 18px; display: grid; gap: 16px; align-content: start; }
.group { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 12px; }
.group > .gh { font-weight: 700; font-size: .9rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.group > .gh small { font-weight: 400; color: var(--muted); }
.items { display: grid; gap: 8px; }
details.item { border: 1px solid var(--line); border-radius: 10px; background: #fafcfb; }
details.item > summary { list-style: none; cursor: pointer; padding: 10px 12px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
details.item > summary::-webkit-details-marker { display: none; }
details.item > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
details.item[open] > summary::before { transform: rotate(90deg); }
details.item > summary span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.item .ib { padding: 4px 12px 12px; display: grid; gap: 10px; }
.mini { display: flex; gap: 2px; }
.mini button { width: 26px; height: 26px; border-radius: 6px; color: var(--muted); font-size: .85rem; }
.mini button:hover { background: #eef2ef; color: var(--text); }
.hours { display: grid; gap: 8px; }
.hours .day { display: grid; grid-template-columns: 52px 1fr 1fr 80px; gap: 8px; align-items: center; font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.photo { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.photo .pi { aspect-ratio: 4/3; background: #e7ece9 center/cover no-repeat; position: relative; }
.photo .pi .tag { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: 2px 7px; border-radius: 6px; }
.photo .pf { padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: .8rem; }
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.style { border: 2px solid var(--line); border-radius: 12px; padding: 14px; text-transform: capitalize; font-weight: 600; background: #fff; }
.style.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plans { display: grid; gap: 12px; }
.plan { border: 2px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 8px; }
.plan .price { font: 700 1.5rem "Space Grotesk", sans-serif; }
.plan .price small { font: 500 .85rem Inter, sans-serif; color: var(--muted); }
.plan ul { list-style: none; display: grid; gap: 4px; font-size: .88rem; color: #34443b; }
.plan li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.notice { padding: 12px 14px; border-radius: 10px; font-size: .9rem; }
.notice.good { background: var(--accent-soft); color: #0d5c37; }
.notice.warn { background: var(--warn-soft); color: #7a5512; }
.notice.bad { background: var(--danger-soft); color: #8e2a20; }

.preview { display: flex; flex-direction: column; min-height: 0; background: #e9eeeb; }
.preview .pt { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.preview .pt .tabs button { font-size: .82rem; }
.devices { display: flex; gap: 2px; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.devices button { padding: 5px 9px; border-radius: 6px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.devices button.on { background: var(--accent-soft); color: var(--accent-2); }
.preview .stage { flex: 1; display: flex; justify-content: center; padding: 16px; min-height: 0; overflow: auto; }
.preview iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 10px 40px -20px rgba(0,0,0,.4); transition: width .3s; }
.preview .stage[data-d="tablet"] iframe { width: 820px; flex: none; }
.preview .stage[data-d="mobile"] iframe { width: 390px; flex: none; }

/* Admin */
table.admin { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .88rem; }
table.admin th, table.admin td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.admin th { background: #f1f5f2; font-weight: 600; color: var(--muted); }
table.admin select, table.admin input { padding: 6px 8px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%); background: var(--brand); color: #eef7f1; padding: 12px 18px; border-radius: 10px; font-weight: 500; transition: transform .25s; z-index: 50; max-width: 90vw; }
#toast.show { transform: translate(-50%, 0); }
#toast.bad { background: var(--danger); }

.mob-switch { display: none; }
@media (max-width: 1000px) {
  .login { grid-template-columns: 1fr; }
  .login .side { display: none; }
  .themes { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; height: auto; }
  .editor.show-preview .panel, .editor:not(.show-preview) .preview { display: none; }
  .preview { height: calc(100vh - 110px); }
  .mob-switch { display: flex; position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px; gap: 8px; }
  .mob-switch button { flex: 1; }
  .top nav { display: none; }
}

[hidden]{display:none!important}
.panel .tabs { flex-wrap: wrap; overflow: visible; }
.panel .tabs button { padding: 6px 10px; }

.auth-switch { display: grid; grid-template-columns: 1fr 1fr; background: #eef2ef; border-radius: 10px; padding: 4px; }
.auth-switch a { text-align: center; padding: 9px; border-radius: 8px; font-weight: 600; color: var(--muted); text-decoration: none; }
.auth-switch a.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.plan.pick { text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.plan.pick.on { border-color: var(--accent, #1a7f4b); box-shadow: 0 0 0 3px rgba(26,127,75,.15); }

/* AI builder + free trial */
.badge.b-trial { background: #fff4d6; color: #8a5a00; }
.ai-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-bottom: 18px;
  background: linear-gradient(135deg, #04140d, #0b3a24); color: #eef7f1; border: 0; }
.ai-card p { color: #b9d3c4; max-width: 560px; margin-top: 6px; }
.ai-card h2 { color: #fff; display: inline; margin-left: 6px; }
.ai-spark { font-size: 1.4rem; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kind { text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; gap: 4px; cursor: pointer; font: inherit; }
.kind small { color: var(--muted); }
.kind.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,168,100,.15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.intro-tag { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: #fff4d6; color: #8a5a00; font-weight: 700; font-size: .82rem; }
.built-note ul { margin: 8px 0 0 18px; }
@media (max-width: 720px) { .kinds, .row2 { grid-template-columns: 1fr; } }
.row2 { align-items: start; }
label.f small.opt { display: inline; margin-left: 4px; }

.trial-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trial-steps div { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: var(--accent-soft); }
.trial-steps span { color: var(--muted); font-size: .88rem; }
@media (max-width: 720px) { .trial-steps { grid-template-columns: 1fr; } }

/* AI builder steps + photo tiles */
.steps-head { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.steps-head span { padding: 6px 12px; border-radius: 999px; background: #eef2ef; color: var(--muted); font-size: .82rem; font-weight: 600; }
.steps-head span.on { background: var(--accent); color: #fff; }
.steps-head span.done { background: var(--accent-soft); color: var(--accent-2); }
.upgroup { display: grid; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 12px; background: #f1f4f2 center/cover no-repeat; border: 1px solid var(--line); }
.tile button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: 0; cursor: pointer; }
.tile.add { display: grid; place-items: center; border-style: dashed; cursor: pointer; color: var(--accent-2); font-weight: 600; font-size: .88rem; text-align: center; padding: 8px; }
.tile.add:hover { border-color: var(--accent); background-color: var(--accent-soft); }

/* =====================================================================
   Dashboard look: light canvas, white rounded cards, pill menu, icon rail
   ===================================================================== */
:root { --bg: #eceeeb; --line: #e6e9e6; --radius: 24px; --rail: 76px; --shadow: 0 1px 2px rgba(16,24,20,.04), 0 8px 24px -12px rgba(16,24,20,.08); }
body { background: var(--bg); }
h1, h2, h3 { font-family: Inter, system-ui, sans-serif; letter-spacing: -.02em; }
.btn { border-radius: 999px; }
.btn.sm { border-radius: 999px; padding: 8px 14px; }
.btn svg { width: 16px; height: 16px; }
.card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
input[type=text], input[type=email], input[type=number], input[type=time], input[type=url], select, textarea { border-radius: 12px; }

/* Top bar */
.top { background: transparent; color: var(--text); }
.top .in { max-width: none; height: 74px; padding: 0 22px; gap: 16px; }
.top .logo { color: var(--text); }
.top .logo i { background: var(--accent); color: #fff; width: 34px; height: 34px; font-size: 1rem; }
.pills { display: flex; gap: 4px; margin: 0 auto; background: #fff; padding: 5px; border-radius: 999px; box-shadow: var(--shadow); }
.pills a { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .9rem; }
.pills a.on { background: var(--bg); color: var(--text); font-weight: 600; }
.pills a:hover { color: var(--text); }
.top .who { margin-left: 0; color: var(--text); gap: 10px; }
.new-btn { padding: 9px 16px !important; }
.me { position: relative; }
.me summary { list-style: none; cursor: pointer; }
.me summary::-webkit-details-marker { display: none; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #0b5d36); color: #fff; font-weight: 700; box-shadow: 0 0 0 3px #fff; }
.me .menu { position: absolute; right: 0; top: 52px; z-index: 60; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.2); padding: 10px; min-width: 230px; display: grid; gap: 2px; }
.me .menu b { padding: 8px 10px; font-size: .82rem; color: var(--muted); font-weight: 500; word-break: break-all; }
.me .menu a, .me .menu button { padding: 9px 10px; border-radius: 10px; text-align: left; text-decoration: none; font-size: .92rem; }
.me .menu a:hover, .me .menu button:hover { background: var(--bg); }

/* Left icon rail */
.rail { position: fixed; left: 18px; top: 92px; bottom: 18px; width: 58px; z-index: 40; display: flex; flex-direction: column; justify-content: space-between; }
.rail .grp { background: #fff; border-radius: 999px; padding: 7px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.rail a, .rail button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); text-decoration: none; }
.rail a:hover, .rail button:hover { background: var(--bg); color: var(--text); }
.rail a.on { background: var(--accent); color: #fff; }
.rail svg { width: 21px; height: 21px; }
.rail ~ .page, .rail ~ .boot { margin-left: calc(var(--rail) + 18px); }
.rail ~ .editor, .rail ~ .mob-switch { margin-left: calc(var(--rail) + 18px); margin-right: 18px; }
.rail ~ .editor { height: calc(100vh - 92px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.page { max-width: 1320px; padding: 14px 24px 80px; }

/* Welcome */
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.welcome h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 500; letter-spacing: -.03em; }
.welcome h1 span { color: var(--muted); font-weight: 400; }
.welcome-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chip-date { background: #fff; padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; box-shadow: var(--shadow); }

/* Dashboard grid */
.dash { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.55fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.dash .span2 { grid-column: span 2; }
.dash .span3 { grid-column: 1 / -1; }
.stack { display: grid; gap: 18px; }
.card .ch { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.card .ch h3 { font-size: 1rem; font-weight: 600; }
.card .ch small { color: var(--muted); font-size: .82rem; }
.round { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); flex: none; }
.round:hover { background: var(--bg); }
.round svg { width: 17px; height: 17px; }
.title-ic { display: flex; gap: 10px; align-items: center; }
.title-ic .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.title-ic .ic svg { width: 18px; height: 18px; }
.row-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.row-acts.center { justify-content: center; }
.big { font-size: 2.1rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.big .cents { color: var(--muted); font-weight: 400; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; }
.pill.down { background: #fbeceb; color: var(--danger); }
.small { font-size: .85rem; }
.stat { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; }
.stat small { grid-column: 1 / -1; color: var(--muted); }

/* Website card (the bold green one) */
.site-hero { display: grid; gap: 22px; padding: 20px; border-radius: 18px; color: #fff; text-decoration: none;
  background: radial-gradient(320px 160px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #1a8a52, #0b5d36); box-shadow: 0 16px 34px -16px rgba(11,93,54,.7); }
.sh-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.sh-top b { font-size: 1.05rem; }
.sh-badge { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.2); }
.sh-mid { font-size: 1.15rem; font-weight: 600; word-break: break-all; }
.sh-bot { display: flex; justify-content: space-between; font-size: .8rem; opacity: .85; gap: 10px; }

/* Bar chart */
.chart-card { min-height: 100%; }
.seg-toggle { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; }
.seg-toggle button { padding: 7px 14px; border-radius: 999px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.seg-toggle button.on { background: var(--accent); color: #fff; }
.bars { display: grid; grid-template-columns: 34px 1fr; gap: 8px; height: 280px; margin-top: 8px; }
.yax { display: flex; flex-direction: column; justify-content: space-between; font-size: .72rem; color: var(--muted); padding-bottom: 26px; text-align: right; }
.yax span { transform: translateY(-50%); }
.yax span:last-child { transform: none; }
.plot { position: relative; display: flex; align-items: flex-end; gap: 10px; padding-bottom: 26px; }
.plot .grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.plot .grid:nth-child(1) { top: 0; }
.plot .grid:nth-child(2) { top: calc((100% - 26px) * .25); }
.plot .grid:nth-child(3) { top: calc((100% - 26px) * .5); }
.plot .grid:nth-child(4) { top: calc((100% - 26px) * .75); }
.plot .grid:nth-child(5) { top: calc(100% - 26px); }
.col { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline: 0; }
.bar { width: min(100%, 54px); border-radius: 999px 999px 8px 8px; transition: filter .15s; background: repeating-linear-gradient(135deg, #9fd2b7 0 4px, #b9dfca 4px 8px); }
.col.now .bar { background: var(--accent); }
.col:hover .bar, .col:focus .bar { filter: brightness(.92); }
.lbl { position: absolute; bottom: -24px; font-size: .74rem; color: var(--muted); }
.tip { position: absolute; top: -36px; white-space: nowrap; background: var(--text); color: #fff; font-size: .74rem; font-weight: 600; padding: 5px 9px; border-radius: 8px; display: none; text-align: center; line-height: 1.3; z-index: 2; }
.tip small { display: block; font-weight: 400; opacity: .7; }
.col:hover .tip, .col:focus .tip { display: block; }

/* Sparkline + plan */
.center-num { text-align: center; }
.center-num small { color: var(--muted); font-size: .82rem; }
.spark { width: 100%; height: 100px; display: block; margin-top: 8px; }
.plan-num { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }

/* Payment table */
.ptable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ptable th { text-align: left; font-weight: 500; color: var(--muted); font-size: .8rem; padding: 8px 10px; }
.ptable td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.ptable tbody tr:nth-child(even) td { background: #f7f8f7; }
.ptable td:first-child { display: flex; gap: 12px; align-items: center; }
.ptable td small { display: block; color: var(--muted); font-size: .78rem; }
.pav { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-weight: 700; flex: none; }
.ok-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list p { margin-top: 8px; }

/* My websites cards in the new style */
.site-card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.site-card .thumb { margin: 10px 10px 0; border-radius: 16px; }
.badge { border-radius: 999px; }

/* Tablets: two columns. Phones: one column, the rail becomes a bottom tab bar */
@media (max-width: 1100px) {
  .dash { grid-template-columns: 1fr 1fr; }
  .dash .chart-card { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 860px) {
  .pills, .new-btn span { display: none; }
  .top .who { margin-left: auto; }
  .rail { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; flex-direction: row; justify-content: center; gap: 8px; }
  .rail .grp { display: flex; padding: 6px; }
  .rail .grp.end { display: none; }
  .rail ~ .page, .rail ~ .boot, .rail ~ .editor, .rail ~ .mob-switch { margin-left: 0; margin-right: 0; }
  .rail ~ .editor { height: auto; border-radius: 0; margin-bottom: 80px; }
  .dash { grid-template-columns: 1fr; }
  .dash .span2, .dash .span3, .dash .chart-card { grid-column: auto; grid-row: auto; }
  .bars { height: 220px; }
  .plot { gap: 6px; }
  .ptable th:nth-child(3), .ptable td:nth-child(3) { display: none; }
  .page { padding: 8px 14px 110px; }
}
@media (max-width: 520px) {
  .ptable th:nth-child(2), .ptable td:nth-child(2) { display: none; }
  .top .logo span { display: none; }
}

.top .pills a { color: var(--muted); background: none; }
.top .pills a.on { background: var(--bg); color: var(--text); }
.top .pills a:hover { color: var(--text); background: none; }
.top .pills a.on:hover { background: var(--bg); }
.top .pills { margin: 0 auto; }

.me .menu b small { display: block; font-weight: 400; font-size: .78rem; }
input:disabled { background: var(--bg); color: var(--muted); }

/* Free plan + AI credits */
.badge.b-free { background: var(--accent-soft); color: var(--accent-2); }
.badge.b-review { background: #fff4d6; color: #8a5a00; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pack { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 18px; background: var(--bg); }
.pack .btn { justify-self: start; margin-top: 6px; }
.hist { margin-top: 16px; }
.hist summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
table.admin tr.hold td { background: #fff8e6; color: #7a5200; font-size: .85rem; }

/* Verification */
.verified-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.verified-row > div { flex: 1; display: grid; }
.verified-row small { color: var(--muted); font-size: .8rem; }
.vcheck { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.phone-form { display: grid; gap: 12px; }
.phone-form .btn { justify-self: start; }
.verify-group { border: 1.5px solid #f2d27a; background: #fffbef; }
input[type=tel] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; outline: 0; }

/* Settings layout (sidebar + panel), used by Account and Billing */
.settings-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.snav { position: sticky; top: 92px; padding: 14px; display: grid; gap: 10px; }
.snav-acct { display: flex; gap: 10px; align-items: center; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); }
.snav-acct .avatar { width: 36px; height: 36px; box-shadow: none; font-size: .9rem; }
.snav-acct div { display: grid; min-width: 0; }
.snav-acct small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snav nav { display: grid; gap: 2px; }
.snav nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .92rem; }
.snav nav a svg { width: 18px; height: 18px; }
.snav nav a:hover { background: var(--bg); color: var(--text); }
.snav nav a.on { background: var(--bg); color: var(--text); font-weight: 600; }
.spanel { display: grid; gap: 14px; max-width: 900px; }
.spanel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.spanel-head h1 { font-size: 1.9rem; font-weight: 600; }
.sec { font-size: 1rem; font-weight: 600; margin-top: 14px; }
.sec-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.sec-row .sec { margin: 0; }

/* Billing details */
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: .92rem; }
.kv span { color: var(--muted); }
.ok-tag { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--accent-2); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

/* Current billing cycle */
.cycle { padding: 0; overflow: hidden; }
.cycle-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px; text-align: left; }
.cycle-top:hover { background: #fafbfa; }
.cycle-top .cur { color: var(--muted); font-weight: 600; margin-left: 4px; }
.cycle-sub { display: block; margin-top: 4px; font-size: .85rem; }
.chev { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: transform .2s; flex: none; }
.chev svg { width: 16px; height: 16px; transform: rotate(45deg); }
.chev.open { transform: rotate(90deg); }
.cycle-detail { padding: 0 22px 12px; display: grid; gap: 8px; }
.cyc-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg); flex-wrap: wrap; font-size: .9rem; }
.cyc-row .grow, .cyc-line .grow { flex: 1; display: grid; min-width: 160px; }
.cyc-row small, .cyc-line small { color: var(--muted); font-size: .8rem; }
.cyc-line { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; font-size: .9rem; }
.cyc-line.link:hover { background: #fafbfa; }
.warn-line { background: #fff8e6; color: #7a5200; justify-content: space-between; }
.ic-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; }
.ic-dot svg { width: 17px; height: 17px; }

/* AI credits panel */
.credit-panel { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; }
.credit-bal { display: grid; gap: 2px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, #1a8a52, #0b5d36); color: #fff; }
.credit-bal small { color: rgba(255,255,255,.75) !important; }
.credit-panel .hist { grid-column: 1 / -1; margin: 0; }

/* Past bills */
.bills { padding: 14px 16px; }
.bills-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; }
.chips-row { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 12px; }
.fchip { padding: 7px 14px; border-radius: 9px; font-size: .85rem; font-weight: 500; color: var(--muted); }
.fchip.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.bills-tools { display: flex; gap: 8px; align-items: center; }
.bills-tools select { width: auto; padding: 8px 10px; font-size: .85rem; }
.bills-tools input[type=search] { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .85rem; width: 170px; }
.sm-round { width: 34px; height: 34px; font-size: 1rem; }
.btable th { background: #f7f8f7; }
.btable th.r, .btable td.r { text-align: right; }
.btable td:first-child { display: table-cell; }
.btable td small { display: block; color: var(--muted); font-size: .76rem; }
.spill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.spill.paid { background: #d9f7e5; color: #106b3d; }
.spill.open { background: #fff1c7; color: #7a5200; }

@media (max-width: 900px) {
  .settings-wrap { grid-template-columns: 1fr; }
  .snav { position: static; }
  .snav nav { display: flex; overflow-x: auto; }
  .snav nav a span { white-space: nowrap; }
  .snav-acct { display: none; }
  .credit-panel { grid-template-columns: 1fr; }
  .bills-tools { width: 100%; }
  .bills-tools input[type=search] { flex: 1; width: auto; }
  .btable th:nth-child(3), .btable td:nth-child(3) { display: none; }
}
.settings-wrap > *, .spanel, .spanel > * { min-width: 0; }
.warn-line, .cyc-line { flex-wrap: wrap; }
#billTable { overflow-x: auto; }
.spanel-head { flex-wrap: wrap; }
@media (max-width: 900px) { .cycle-top { padding: 18px; } .cyc-line { padding: 14px 18px; } .kv { grid-template-columns: 1fr; gap: 2px; } .kv b { margin-bottom: 8px; word-break: break-all; } .bills-bar { flex-direction: column; align-items: stretch; } .chips-row { align-self: start; } }
.snav > * { min-width: 0; }
.snav nav { scrollbar-width: none; }
.bills-tools input[type=search] { min-width: 0; }
.bills-tools select { flex: none; }

/* Upcoming bills */
.upcoming { padding: 6px 16px; }
.up-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.up-row:first-child { border-top: 0; }
.up-row.overdue { background: #fff8e6; margin: 0 -16px; padding: 14px 20px; }
.up-date { width: 52px; height: 56px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; align-content: center; line-height: 1.1; flex: none; }
.up-date b { font-size: 1.25rem; }
.up-date small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.up-row .grow { flex: 1; display: grid; min-width: 180px; }
.up-row .grow small { font-size: .8rem; color: var(--muted); }
.up-amt { display: grid; justify-items: end; gap: 4px; min-width: 90px; }
.spill.sched { background: var(--bg); color: var(--muted); }
.up-empty { display: flex; gap: 12px; align-items: center; padding: 14px 4px; }
.up-empty div { display: grid; }
@media (max-width: 600px) { .up-amt { justify-items: start; } .up-row .btn { margin-left: 66px; } }
/* Sticky top bar: the CINNOVATORY logo and menu stay put while the page scrolls */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.top .in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.top .who { justify-self: end; margin-left: 0; }
@media (min-width: 861px) { .top .pills { display: flex; } }
@media (max-width: 860px) { .top .in { grid-template-columns: 1fr auto; } }

/* =====================================================================
   Shopify-style layout: fixed sidebar, everything else scrolls
   ===================================================================== */
:root { --side: 236px; }
.top { position: static; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top .in { display: flex; justify-content: flex-end; height: 72px; padding: 0 24px; }
.top .logo, .top .pills { display: none !important; }
.top .who { margin-left: auto; }

.rail { position: fixed; left: 14px; top: 14px; bottom: 14px; width: var(--side); z-index: 40; display: flex; flex-direction: column; gap: 10px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 12px; overflow-y: auto; justify-content: flex-start; }
.side-logo { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; text-decoration: none; color: var(--text); font: 700 1rem "Space Grotesk", sans-serif; letter-spacing: .08em; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.side-logo i { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 1rem; flex: none; }
.rail .grp { background: none; box-shadow: none; padding: 0; border-radius: 0; display: grid; gap: 2px; }
.rail .grp.end { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.rail a, .rail button { width: 100%; height: auto; border-radius: 12px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; justify-content: flex-start;
  color: var(--muted); font-weight: 500; font-size: .92rem; text-decoration: none; text-align: left; }
.rail a span, .rail button span { white-space: nowrap; }
.rail a:hover, .rail button:hover { background: var(--bg); color: var(--text); }
.rail a.on { background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.rail svg { width: 20px; height: 20px; flex: none; }
.rail ~ .page, .rail ~ .boot, .rail ~ .top { margin-left: calc(var(--side) + 28px); }
.rail ~ .editor, .rail ~ .mob-switch { margin-left: calc(var(--side) + 28px); margin-right: 14px; }
.rail ~ .editor { height: calc(100vh - 86px); }
.snav { position: static; }

/* Tablets: icons only */
@media (max-width: 1180px) {
  :root { --side: 64px; }
  .rail { padding: 12px 8px; align-items: center; }
  .side-logo { padding: 4px 0 14px; justify-content: center; width: 100%; }
  .side-logo span, .rail a span, .rail button span { display: none; }
  .rail a, .rail button { justify-content: center; padding: 11px 0; }
}
/* Phones: bottom tab bar, logo back in the top bar */
@media (max-width: 860px) {
  .rail { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; height: auto; flex-direction: row; justify-content: center; padding: 6px; border-radius: 999px; overflow: visible; }
  .side-logo, .rail .grp.end { display: none; }
  .rail .grp { display: flex; gap: 4px; }
  .rail a { width: 46px; height: 46px; padding: 0; border-radius: 50%; }
  .rail a.on { background: var(--accent); color: #fff; }
  .rail ~ .page, .rail ~ .boot, .rail ~ .top, .rail ~ .editor, .rail ~ .mob-switch { margin-left: 0; margin-right: 0; }
  .top .in { justify-content: space-between; padding: 0 14px; }
  .top .logo { display: flex !important; }
  .top .logo span { display: none; }
}
.big { white-space: nowrap; }
.plan-num { flex-wrap: wrap; }
.dash > *, .stack > *, .card { min-width: 0; }
@media (max-width: 860px) { .ptable { display: block; overflow-x: auto; } }
/* Settings menu (Account, Billing, AI credits...) stays in place while the page scrolls */
@media (min-width: 901px) { .snav { position: sticky; top: 14px; align-self: start; } }

/* Website settings */
.snav-acct .pav { width: 36px; height: 36px; }
.seo-form { display: grid; gap: 14px; }
.seo-form small[id] { float: right; font-weight: 400; color: var(--muted); }
.toggle { padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.gpreview { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); font-family: Arial, sans-serif; display: grid; gap: 4px; }
.g-url { font-size: .82rem; color: #202124; }
.g-title { font-size: 1.15rem; color: #1a0dab; line-height: 1.3; }
.g-desc { font-size: .88rem; color: #4d5156; line-height: 1.5; }
.share-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.share-img { width: 240px; aspect-ratio: 1200 / 630; border-radius: 12px; background: var(--bg) center/cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: .85rem; border: 1px dashed var(--line); }
.fav-img { width: 64px; height: 64px; border-radius: 14px; background: var(--bg) center/cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: .72rem; border: 1px dashed var(--line); }
.dom-card { display: grid; gap: 14px; }
.dom-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); flex-wrap: wrap; }
.dom-row .grow { flex: 1; word-break: break-all; }
.dns { display: grid; gap: 10px; }
.dns code { background: var(--bg); padding: 3px 8px; border-radius: 6px; font-size: .85rem; }
.danger-txt { color: var(--danger) !important; }
.danger-card { border: 1px solid #f3d4d0; }
.ph .row .round { width: 32px; height: 32px; margin-left: 4px; }
.ph .row .round svg { width: 16px; height: 16px; }

/* Domains (Framer-style) */
.fr-sec { display: grid; gap: 16px; }
.fr-sec h3 { font-size: 1.05rem; }
.fr-kv { display: grid; grid-template-columns: 140px 1fr; gap: 14px 18px; font-size: .92rem; align-items: center; }
.fr-kv > span:nth-child(odd) { font-weight: 600; }
.fr-kv a { color: var(--accent-2); }
.dopts { display: grid; gap: 4px; }
.dopt { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; cursor: pointer; flex-wrap: wrap; }
.dopt:hover { background: #fafbfa; }
.dopt.on { background: var(--bg); }
.dopt input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.dopt .grow { flex: 1; display: grid; min-width: 220px; }
.dopt small { color: var(--muted); font-size: .84rem; }
.mini-badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #e6f0ff; color: #1d5fd1; margin-left: 6px; vertical-align: middle; }
.mini-badge.soon { background: var(--bg); color: var(--muted); }
.addr-mini { display: flex; gap: 8px; align-items: center; }
.addr-mini .addr-input { min-width: 260px; }
.connect-box { display: grid; gap: 14px; padding: 4px 4px 0; }
@media (max-width: 600px) { .fr-kv { grid-template-columns: 1fr; gap: 2px; } .fr-kv > span:nth-child(even), .fr-kv > a { margin-bottom: 10px; } .addr-mini { width: 100%; } .addr-mini .addr-input { min-width: 0; flex: 1; } }

/* Website settings: the main sidebar hides; the website's own menu becomes the fixed sidebar */
.site-mode-page, .site-mode-page ~ * { margin-left: 0; }
@media (min-width: 901px) {
  .site-mode-page { margin-left: calc(var(--side, 236px) + 28px) !important; }
  .site-mode { grid-template-columns: 1fr; }
  .site-side { position: fixed !important; left: 14px; top: 14px; bottom: 14px; width: var(--side, 236px); z-index: 40; align-content: start; overflow-y: auto; }
  .top:has(+ .site-mode-page) { margin-left: calc(var(--side, 236px) + 28px); }
}
@media (min-width: 901px) and (max-width: 1180px) { .site-mode-page, .top:has(+ .site-mode-page) { --side: 236px; } }
.back-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .88rem; }
.back-link:hover { background: var(--bg); color: var(--text); }
@media (min-width: 901px) { .site-side { align-self: auto !important; height: auto; display: flex; flex-direction: column; gap: 10px; } }
/* Website settings: list of pages, each with its own SEO */
.snav-pages { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.snav-pages > b { font-size: .8rem; color: var(--muted); padding: 0 12px; font-weight: 600; }
.snav-pages nav a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snav-pages nav a em { font-style: normal; font-size: .72rem; color: var(--muted); }

/* Page settings (one page of a website), laid out like Framer */
.page-set { display: grid; gap: 18px; }
.page-set h2 { margin: 0; font-size: 1.15rem; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.ps-grid .f { margin: 0; }
.ps-grid .f > span { font-weight: 600; font-size: .9rem; }
.ps-grid textarea { min-height: 120px; }
.ps-grid .gpreview { margin-top: 6px; min-height: 120px; }
.gpreview .g-url { display: flex; align-items: center; gap: 8px; }
.gpreview .g-url img, .gpreview .g-url i { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.gpreview .g-url i { display: grid; place-items: center; background: var(--accent); color: #fff; font-style: normal; font-size: .72rem; font-weight: 700; }
.ps-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.ps-row.top { align-items: flex-start; }
.ps-row > div:first-child { display: grid; gap: 4px; }
.ps-row small { color: var(--muted); }
.ps-img { display: grid; gap: 10px; justify-items: end; }
.ps-img .share-img { width: 240px; }
.switch { position: relative; width: 42px; height: 24px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) { .ps-grid { grid-template-columns: 1fr; } .ps-row.top { flex-direction: column; } .ps-img { justify-items: start; } .ps-img .share-img { width: 100%; } }

/* Website settings: custom code */
.code-slot { display: grid; gap: 10px; }
.code-slot textarea { font: .82rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; min-height: 110px; resize: vertical; tab-size: 2; white-space: pre; }
.note-card { display: grid; gap: 6px; border: 1px solid var(--line); }
.note-card small { color: var(--muted); }

/* "Upgrade plan" pop-up */
dialog.upgrade { border: 0; border-radius: 22px; padding: 28px; width: min(440px, calc(100vw - 32px)); background: var(--card, #fff); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.25); display: grid; gap: 14px; text-align: center; justify-items: center; }
dialog.upgrade:not([open]) { display: none; }
dialog.upgrade::backdrop { background: rgba(15,20,18,.45); backdrop-filter: blur(3px); }
dialog.upgrade h2 { margin: 0; font-size: 1.4rem; }
dialog.upgrade p { margin: 0; color: var(--muted); line-height: 1.5; }
dialog.upgrade p b { color: var(--text); }
dialog.upgrade .x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; }
dialog.upgrade .up-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
dialog.upgrade .up-icon svg { width: 26px; height: 26px; }
.up-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; width: 100%; }
.up-plan { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 2px; }
.up-plan span { font-size: 1.15rem; font-weight: 700; }
.up-plan small { font-size: .78rem; color: var(--muted); font-weight: 500; }
.up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: left; width: 100%; }
.up-list li { padding-left: 24px; position: relative; font-size: .92rem; }
.up-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.up-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; }
.up-acts .btn { flex: 1; min-width: 140px; }
.snav nav a .pro-tag { margin-left: auto; font-style: normal; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
dialog.upgrade { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100vh - 32px); overflow-y: auto; }
.snav nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Website settings: usage */
.use-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.use-head div { display: grid; gap: 2px; }
.use-head small { color: var(--muted); font-size: .8rem; }
.use-head b { font-size: 1.2rem; }
.use-big { display: grid; justify-items: end; gap: 2px; }
.use-big b { font-size: 1.8rem; line-height: 1; }
.use-big small { font-size: .78rem; color: var(--muted); }
.use-big small.up { color: var(--accent); }
.use-list { display: grid; gap: 0; }
.use-list h3 { margin: 0 0 6px; }
.use-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.use-row > div { display: grid; gap: 4px; min-width: 0; flex: 1; }
.use-row small { color: var(--muted); }
.use-row small.warn { color: #b45309; }
.use-val { font-weight: 600; white-space: nowrap; text-align: right; }
.use-val small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.meter { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; max-width: 320px; margin-top: 4px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.meter.full i { background: #d97706; }

/* Usage (Framer-style) */
.usage-card { display: grid; gap: 20px; }
.use-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.use-top p { margin: 0; color: var(--muted); max-width: 520px; line-height: 1.5; font-size: .92rem; }
.use-top select { flex: none; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; color: var(--text); }
.use-tabs { display: flex; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.use-tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--muted); cursor: pointer; }
.use-tabs button.on { background: var(--bg); color: var(--text); }
.use-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.use-stats div { display: grid; gap: 6px; }
.use-stats small { color: var(--muted); }
.use-stats b { font-size: 1.3rem; }
.use-stats .warn { color: #d97706; }
.use-stats .dash { display: inline-block; width: 28px; height: 3px; border-radius: 3px; background: var(--line); vertical-align: middle; }
.meter.wide { max-width: none; margin: -6px 0 0; }
.run-chart { position: relative; display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.run-chart svg { width: 100%; height: 190px; display: block; border-bottom: 1px solid var(--line); }
.run-max { font-size: .8rem; color: var(--muted); }
.run-x { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.bl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bl-grid.one { grid-template-columns: 1fr; }
.bl-grid > div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.bl-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.bl-head span { color: var(--muted); font-size: .88rem; }
.bl-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 8px; }
.bl-name { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; padding: 7px 10px; font-size: .9rem; }
.bl-name::before { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 9px; background: var(--bg); z-index: 0; }
.bl-name > * { position: relative; z-index: 1; }
.bl-name svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.bl-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-row b { white-space: nowrap; font-size: .9rem; }
.use-up { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg); }
@media (max-width: 760px) { .use-top { flex-direction: column; } .bl-grid { grid-template-columns: 1fr; } .bl-grid > div + div { border-left: 0; padding-left: 0; } .use-stats b { font-size: 1.05rem; } }
.use-top select { width: auto !important; min-width: 0; max-width: 220px; }
.use-top p { flex: 1; min-width: 0; }
.usage-card { min-width: 0; overflow: hidden; }

/* Website settings: socials */
.soc-row { display: grid; grid-template-columns: 36px 120px 1fr 28px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.soc-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); }
.soc-ic svg { width: 18px; height: 18px; }
.soc-name { font-weight: 600; font-size: .92rem; }
.soc-row input { width: 100%; min-width: 0; }
.soc-open { text-decoration: none; color: var(--muted); font-size: 1.1rem; text-align: center; }
@media (max-width: 760px) { .soc-row { grid-template-columns: 36px 1fr 28px; } .soc-row input { grid-column: 1 / -1; } }

/* Move from Shopify */
.sh-wrap { max-width: 760px; }
.sh-card { display: grid; gap: 16px; }
.sh-card h2 { margin: 0; }
.sh-card p { margin: 0; line-height: 1.5; }
.sh-link { display: flex; gap: 10px; }
.sh-link input { flex: 1; min-width: 0; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.sh-store { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.sh-store small { color: var(--muted); }
.sh-sample { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.sh-sample > div { display: grid; gap: 4px; font-size: .85rem; }
.sh-sample .frame { aspect-ratio: 1; border-radius: 12px; background: var(--bg); overflow: hidden; }
.sh-sample img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-sample b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-sample small { color: var(--muted); }
.sh-warn { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, #d97706 12%, transparent); color: #92400e; font-size: .9rem; }
.sh-proof { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.sh-code { display: flex; align-items: center; gap: 10px; }
.sh-code code { font-size: 1.15rem; font-weight: 700; padding: 8px 14px; border-radius: 10px; background: var(--bg); letter-spacing: .02em; }
.sh-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.sh-steps b { color: var(--text); }
.sh-dest { display: grid; gap: 10px; }
.sh-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; margin: 0; }
.sh-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.sh-opt input { margin-top: 3px; accent-color: var(--accent); }
.sh-opt span { display: grid; gap: 2px; }
.sh-opt small { color: var(--muted); }
.sh-addr { display: grid; gap: 6px; padding-left: 4px; }
.sh-addr small { color: var(--muted); }
.sh-file { display: flex; align-items: center; justify-content: center; padding: 22px; border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; color: var(--muted); font-weight: 600; position: relative; }
.sh-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.up-icon.ok { font-size: 1.5rem; font-weight: 700; }
.btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .sh-link { flex-direction: column; } }

/* Website settings: integrations */
.integ { display: grid; gap: 0; }
.integ-head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; }
.integ-head h3 { margin: 0 0 2px; }
.integ-head small { color: var(--muted); }
.integ-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.integ-logo svg { width: 22px; height: 22px; }
.integ-logo.shopify { background: #95bf47; color: #fff; }
.integ-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.integ-row > div { display: grid; gap: 4px; }
.integ-row small { color: var(--muted); }
.integ-row .btn { flex: none; }
.site-side { overflow-x: hidden; }
.snav nav a { min-width: 0; }
.snav nav a .pro-tag { flex: none; padding: 2px 7px; }

/* Settings pages sized like Shopify admin: centred ~960px column, compact 13px text,
   section title above each card, 12px cards with a hairline border, rows inside a bordered box */
.spanel { max-width: 966px; width: 100%; margin: 0 auto; gap: 12px; font-size: 13.5px; line-height: 1.45; }
.site-mode .spanel { padding-top: 24px; }
.spanel-head { margin: 10px 0 0; }
.spanel-head h1 { font-size: 1.05rem; font-weight: 650; letter-spacing: 0; }
.spanel > small.muted { margin-top: -6px; font-size: 12.5px; }
.spanel .card { border-radius: 12px; padding: 16px; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.07); border: 0; }
.spanel .card + .card { margin-top: 8px; }
.spanel .card h2 { font-size: 1rem; font-weight: 650; }
.spanel .card h3 { font-size: .9rem; font-weight: 650; margin: 0; }
.spanel small, .spanel .muted { font-size: 12.5px; }
.spanel b { font-weight: 600; }
.spanel .ch { margin-bottom: 10px !important; }
.spanel input[type=text], .spanel input[type=email], .spanel input[type=url], .spanel input[type=tel], .spanel select, .spanel textarea {
  font-size: 13.5px; padding: 7px 11px; border-radius: 8px; border: 1px solid #c9ccc9; min-height: 34px; background: #fff; }
.spanel input:focus, .spanel select:focus, .spanel textarea:focus { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.spanel input:disabled { background: #f3f4f3; color: var(--muted); }
.spanel .f { gap: 5px; font-size: 13px; font-weight: 550; }
.spanel .btn { font-size: 13px; padding: 7px 14px; border-radius: 10px; min-height: 32px; }
.spanel .btn.sm { padding: 5px 12px; min-height: 28px; font-size: 12.5px; }
/* rows: inside a hairline box, like Shopify's toggle lists */
.spanel .integ-row, .spanel .use-row, .spanel .ps-row, .spanel .soc-row { padding: 12px 0; }
.spanel .integ, .spanel .use-list { padding-bottom: 8px; }
.spanel .gpreview { border-radius: 10px; padding: 12px 14px; }
.spanel .g-title { font-size: 1rem; }
.spanel .switch { width: 36px; height: 20px; }
.spanel .switch span::after { width: 14px; height: 14px; }
.spanel .switch input:checked + span::after { transform: translateX(16px); }
.spanel .soc-row { grid-template-columns: 32px 110px 1fr 24px; }
.spanel .soc-ic { width: 32px; height: 32px; border-radius: 8px; }
.spanel .integ-logo { width: 36px; height: 36px; border-radius: 9px; }
.spanel .use-stats b { font-size: 1.1rem; }
.spanel .use-big b { font-size: 1.5rem; }
.spanel .page-set h2 { font-size: .95rem; }
.spanel .page-set { gap: 14px; }
/* website settings sidebar: tighter, like Shopify's nav */
.site-side { padding: 10px !important; gap: 6px !important; }
.site-side nav a { padding: 7px 10px !important; font-size: 13.5px !important; border-radius: 8px !important; }
.site-side nav a svg { width: 16px !important; height: 16px !important; }
.site-side .snav-acct { padding: 4px 6px 10px; }
.site-side .back-link { font-size: 12.5px; padding: 6px 8px; }
.site-side .snav-pages > b { font-size: 12px; padding: 0 10px; }
.spanel .card + .spanel-head { margin-top: 18px; }
.spanel .page-set > .ps-row:first-child { border-top: 0; padding-top: 0; }

/* Plan picker: three plans, "Most popular" on Pro */
.plans { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; }
.plan.popular { position: relative; border-color: var(--accent) !important; }
.pop-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }

/* Custom ("build your own") plan */
.plan.custom { border-style: dashed !important; }
.cbuild { display: grid; gap: 12px; margin-top: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); }
.cbuild > small { margin-top: -6px; }
.cbuild .f { margin: 0; }
.cbuild-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.cbuild-total b { font-size: 1.4rem; }
.cbuild-total small { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* Settings > Plans */
.plans-site { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.plans-site .f { margin: 0; }
.warn-txt { color: #b45309; font-weight: 600; }
@media (max-width: 760px) { .plans-site { grid-template-columns: 1fr; } }

/* Settings > Plans: get more AI credits */
.plans-credits { display: grid; gap: 14px; }
.plans-credits .ch { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cr-balance { display: grid; justify-items: end; flex: none; }
.cr-balance b { font-size: 1.6rem; line-height: 1.1; }

/* Settings > Region */
.region-form { display: grid; gap: 16px; }
.region-form .f { margin: 0; }
.region-example { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--bg); font-weight: 600; }

.trial-terms { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: .9rem; line-height: 1.5; }

/* Settings > Region: searchable country box */
.country-pick { position: relative; display: grid; gap: 6px; margin: 0; }
.country-pick > span { font-weight: 550; font-size: 13px; }
#countryList { position: absolute; top: 62px; left: 0; right: 0; z-index: 20; list-style: none; margin: 0; padding: 6px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.2); max-height: 280px; overflow-y: auto; }
#countryList li { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
#countryList li.on, #countryList li:hover { background: var(--bg); }
#countryList li.none { color: var(--muted); cursor: default; }
.spanel input[type=search] { font-size: 13.5px; padding: 7px 11px; border-radius: 8px; border: 1px solid #c9ccc9; min-height: 34px; background: #fff; width: 100%; outline: 0; }
.spanel input[type=search]:focus { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.country-pick > small { color: var(--muted); font-weight: 400; font-size: 12.5px; }

/* Edit your Shopify store */
.sh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sh-list li { display: grid; gap: 2px; padding-left: 28px; position: relative; }
.sh-list li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--accent); font-weight: 700; }
.sh-list small { color: var(--muted); }
.sh-soon { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: .9rem; }
.soon-tag { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; white-space: nowrap; }

/* Shopify page icon (was unsized) */
.sh-card .up-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.sh-card .up-icon svg { width: 26px; height: 26px; }

/* Profile picture */
.avatar.has-img { padding: 0; overflow: hidden; background: var(--bg); }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.avatar-edit { display: flex; gap: 16px; align-items: center; }
.avatar-edit > div { display: grid; gap: 2px; }
.avatar.lg { width: 72px !important; height: 72px !important; font-size: 1.6rem !important; flex: none; }

/* Themes (free for the first 10,000) */
.offer-band { display: grid; gap: 4px; margin-bottom: 18px; background: color-mix(in srgb, var(--accent) 9%, var(--surface, #fff)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent) !important; }
.offer-band.done { background: var(--surface, #fff); border-color: var(--line) !important; }
.offer-band span { color: var(--muted); font-size: .92rem; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tcard { padding: 0 !important; overflow: hidden; display: grid; }
.tcover { aspect-ratio: 4 / 3; background: var(--bg) center / cover no-repeat; }
.tbody { padding: 16px; display: grid; gap: 4px; }
.tmeta { display: flex; justify-content: space-between; align-items: center; }
.tplat { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg); }
.tprice { font-weight: 700; color: var(--accent); }
.tprice s { color: var(--muted); font-weight: 500; margin-right: 4px; }
.tnote { font-size: .78rem; color: var(--muted); }
.tmeta { gap: 8px; flex-wrap: wrap; }
.tprice { white-space: nowrap; }

/* Get more AI credits: choose your own amount */
.cr-own { display: grid; gap: 12px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line); }
.cr-own > div:first-child { display: grid; gap: 2px; }
.cr-own-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.cr-step { display: flex; align-items: center; gap: 6px; }
.cr-step input { width: 90px !important; text-align: center; font-weight: 700; }
.cr-own-row input[type=range] { width: 100%; accent-color: var(--accent); }
.cr-own-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .cr-own-row { grid-template-columns: 1fr; } }

/* Enquiries inbox */
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 .7rem/20px system-ui, sans-serif; font-style: normal; text-align: center; }
.enq-site { width: auto !important; min-width: 200px; }
.enq-tabs { margin-bottom: 16px; }
.enq-tabs small { margin-left: 4px; opacity: .7; font-weight: 700; }
.enq { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 16px; align-items: start; }
.enq-list { padding: 6px; display: grid; gap: 2px; max-height: 72vh; overflow: auto; }
.enq-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 11px 12px; border-radius: 10px; background: none; }
.enq-row:hover { background: #f5f8f6; }
.enq-row.on { background: var(--accent-soft); }
.enq-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #eef2ef; color: var(--brand-2); font-weight: 700; }
.enq-row.unread .enq-av { background: var(--accent); color: #fff; }
.enq-main { min-width: 0; display: grid; gap: 2px; }
.enq-main b { font-size: .95rem; }
.enq-row.unread .enq-main b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.enq-main small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enq-side { display: grid; justify-items: end; gap: 5px; }
.enq-side small { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.enq-side .badge { font-size: .68rem; padding: 2px 8px; }
.e-new { background: var(--accent-soft); color: var(--accent-2); }
.e-replied { background: #eaf1fb; color: #2f5f9e; }
.e-booked { background: #f2ecfb; color: #6a43a8; }
.e-done { background: #eef1f4; color: #55606b; }
.e-archived { background: #f4f4f4; color: #8a8f8c; }
.enq-detail { min-height: 360px; }
.enq-pick { height: 100%; min-height: 320px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.enq-pick svg, .enq-list .empty svg { width: 34px; height: 34px; opacity: .45; }
.enq-d { display: grid; gap: 20px; }
.enq-dh { display: flex; gap: 12px; align-items: flex-start; }
.enq-dh h2 { font-size: 1.4rem; }
.enq-back { display: none; }
.enq-tags { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.enq-kind { font-size: .8rem; font-weight: 600; color: var(--muted); }
.enq-reply .btn svg { width: 16px; height: 16px; }
.enq-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 20px; margin: 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.enq-facts dt { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.enq-facts dd { margin: 3px 0 0; font-weight: 600; word-break: break-word; }
.enq-facts a { color: inherit; }
.enq-svc h3, .enq-msg h3 { font-size: .95rem; margin-bottom: 8px; }
.enq-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.enq-line small { display: block; color: var(--muted); font-size: .78rem; }
.enq-total { border-bottom: 0; font-weight: 700; }
.enq-msg p { white-space: pre-wrap; padding: 14px 16px; border-radius: 12px; background: #f5f8f6; margin: 0; }
.enq-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-soon { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #eef1f4; color: #55606b; font-size: .68rem; font-weight: 700; }
.enq-note { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.enq-note label { display: grid; gap: 2px; }
.link-danger { background: none; border: 0; color: var(--danger); font-weight: 600; font-size: .85rem; cursor: pointer; margin-left: auto; }
.enq-settings { margin-top: 16px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.enq-settings > div:first-child { display: grid; gap: 2px; }
.enq-notify { display: grid; gap: 8px; min-width: 260px; }
.enq-n { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-weight: 600; font-size: .9rem; }
@media (max-width: 900px) {
  .enq { grid-template-columns: 1fr; }
  .enq .enq-detail { display: none; }
  .enq.has-open .enq-list { display: none; }
  .enq.has-open .enq-detail { display: block; }
  .enq-back { display: inline-flex; }
  .enq-list { max-height: none; }
}

/* Invoices */
.back-link { display: inline-block; margin-bottom: 6px; color: var(--muted); font-weight: 600; font-size: .85rem; text-decoration: none; }
.head h1 .badge { vertical-align: middle; margin-left: 6px; }
.i-draft { background: #eef1f4; color: #55606b; }
.i-sent { background: #eaf1fb; color: #2f5f9e; }
.i-paid { background: var(--accent-soft); color: var(--accent-2); }
.i-void { background: var(--danger-soft); color: var(--danger); }
.inv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.inv-stats .card { display: grid; gap: 2px; padding: 18px; }
.inv-stats small { color: var(--muted); font-weight: 600; }
.inv-stats b { font-size: 1.45rem; }
.inv-list { padding: 6px; }
.inv-row { display: grid; grid-template-columns: 120px 1fr 120px 130px 100px; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; color: inherit; text-decoration: none; }
a.inv-row:hover { background: #f5f8f6; }
.inv-headrow { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 6px; }
.inv-row .r { text-align: right; }
.inv-cust { min-width: 0; display: grid; }
.inv-cust small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.inv-view { grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr); }
.inv-form { display: grid; gap: 14px; }
.inv-form .card { display: grid; gap: 12px; }
.inv-form h3 { font-size: 1rem; }
.inv-prev { position: sticky; top: 16px; }
.inv-prev-in { display: grid; gap: 8px; }
.inv-frame { width: 100%; min-height: 560px; border: 0; border-radius: 14px; background: #f2f4f3; }
.inv-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.inv-style { display: grid; gap: 8px; justify-items: center; padding: 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; font-size: .85rem; }
.inv-style.on { border-color: var(--accent); background: var(--accent-soft); }
.inv-style i { width: 100%; height: 46px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.inv-style .sw-classic { border-top: 5px solid var(--accent); }
.inv-style .sw-modern { background: linear-gradient(var(--accent) 0 45%, #fff 45%); }
.inv-style .sw-minimal { background: repeating-linear-gradient(#fff 0 8px, #e9ecea 8px 9px); }
.inv-color { display: flex; align-items: center; gap: 10px; }
.inv-color input[type=color] { width: 46px !important; height: 38px; padding: 3px !important; cursor: pointer; }
.inv-logo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inv-logo-img { min-width: 64px; height: 40px; display: grid; place-items: center; padding: 0 8px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: .8rem; }
.inv-logo-img img { max-height: 34px; max-width: 120px; }
.inv-tog { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.inv-tog > span { display: grid; gap: 2px; }
.inv-seg { width: max-content; }
.inv-save { display: flex; gap: 10px; flex-wrap: wrap; }
.inv-hint { padding: 12px 16px; margin-bottom: 14px; background: var(--accent-soft); border-color: transparent; font-size: .9rem; }
.inv-svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.inv-svc { display: grid; gap: 2px; text-align: left; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; transition: .15s; }
.inv-svc span { color: var(--muted); font-size: .85rem; }
.inv-svc:hover { border-color: var(--accent); }
.inv-svc.on { border-color: var(--accent); background: var(--accent-soft); }
.inv-svc.on b::before { content: "✓ "; color: var(--accent-2); }
.inv-item { display: grid; grid-template-columns: 1fr 64px 120px 30px; gap: 8px; align-items: center; margin-bottom: 8px; }
.inv-iprice { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding-left: 10px; }
.inv-iprice span { color: var(--muted); font-size: .9rem; }
.inv-iprice input { border: 0 !important; padding-left: 6px !important; }
.inv-idel { width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; font-size: 1.3rem; color: var(--muted); cursor: pointer; }
.inv-idel:hover { background: var(--danger-soft); color: var(--danger); }
.inv-acts { align-content: start; }
.inv-acts .btn { width: 100%; justify-content: center; }
.inv-link { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.inv-link .addr-input input { border: 0; padding: 9px 10px; font-size: .8rem; }
.inv-link a svg { width: 14px; height: 14px; vertical-align: -2px; }
@media (max-width: 980px) {
  .inv-split, .inv-view { grid-template-columns: 1fr; }
  .inv-prev { position: static; }
  .inv-view .inv-prev { order: 2; }
}
@media (max-width: 700px) {
  .inv-stats { grid-template-columns: 1fr; }
  .inv-row { grid-template-columns: 1fr auto; }
  .inv-row > span:nth-child(3), .inv-headrow { display: none; }
  .inv-row > span:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .inv-item { grid-template-columns: 1fr 56px; }
  .inv-iprice { grid-column: 1; }
}
.inv-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inv-form .field { display: grid; gap: 6px; }
.inv-form .field label { font-weight: 600; font-size: .85rem; }
@media (max-width: 600px) { .inv-form .row-2 { grid-template-columns: 1fr; } }

.inv-locked { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 16px 18px; background: #fff8ea; border-color: #f1dfb6; }
.inv-locked > div { flex: 1; display: grid; gap: 2px; }
.inv-locked .up-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--warn); flex: none; }
.inv-locked .up-icon svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .inv-locked { flex-wrap: wrap; } .inv-locked .btn { width: 100%; justify-content: center; } }

/* CINNOVATORY logo mark (white arrow on dark green) */
.logo-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; display: block; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.logo .logo-img { width: 30px; height: 30px; }
.top .logo .logo-img, .side-logo .logo-img { width: 34px; height: 34px; }

.enq-chat { padding-top: 8px; border-top: 1px dashed var(--line); }
.enq-chat small { display: block; font-weight: 400; }

/* ---------- Build with AI ---------- */
.page.aib { max-width: 1120px; }
.aib-hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 34px 36px; margin-bottom: 18px; border-radius: 22px; overflow: hidden; color: #fff;
  background: radial-gradient(600px 260px at 90% 0%, rgba(34,201,122,.35), transparent 65%), linear-gradient(135deg, #04140d, #0b2a1b 70%); box-shadow: 0 26px 50px -34px rgba(4,20,13,.9); }
.aib-hero > div:first-child { max-width: 620px; }
.aib-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.1; margin: 10px 0 10px; letter-spacing: -.02em; }
.aib-hero p { color: #b9d3c4; font-size: 1.02rem; line-height: 1.55; }
.aib-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #8fe6bb; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.aib-eyebrow svg { width: 15px; height: 15px; }
.aib-credits { display: grid; gap: 2px; min-width: 150px; padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); text-align: center; }
.aib-credits span, .aib-credits small { color: #9fbdad; font-size: .78rem; }
.aib-credits b { font-size: 1.7rem; letter-spacing: -.02em; }
.aib-steps { display: flex; gap: 0; list-style: none; margin: 0 0 22px; padding: 0; counter-reset: s; }
.aib-steps li { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.aib-steps li:not(:last-child) { flex: 1; }
.aib-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin: 0 16px; border-radius: 2px; background: var(--line); }
.aib-steps li.done::after { background: var(--accent); }
.aib-steps i { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-style: normal; font-size: .82rem; background: #fff; border: 2px solid var(--line); color: var(--muted); }
.aib-steps li.on i { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px var(--accent-soft); }
.aib-steps li.done i { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
.aib-steps li.on { color: var(--text); }
.aib-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.aib-form { display: grid; gap: 16px; }
.aib-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 18px 36px -30px rgba(4,20,13,.35); }
.aib-sec > header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.aib-sec > header i { width: 30px; height: 30px; border-radius: 10px; flex: none; display: grid; place-items: center; font-style: normal; font-size: .85rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-2); }
.aib-sec h2 { font-size: 1.08rem; margin: 0 0 2px; }
.aib-sec header p { color: var(--muted); font-size: .88rem; margin: 0; }
.aib-fields { display: grid; gap: 16px; }
.aib-form .f { display: grid; gap: 7px; font-weight: 600; font-size: .86rem; }
.aib-form .f small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.aib-form .f > small { margin-top: 1px; }
.aib-form .row2 { gap: 16px; }
.aib-form textarea { min-height: 96px; resize: vertical; }
.aib-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 4px 2px 0; }
.aib-actions .btn { min-width: 260px; justify-content: center; }
.aib-side { position: sticky; top: 16px; display: grid; gap: 14px; }
.aib-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.aib-card h3 { font-size: 1rem; margin-bottom: 14px; }
.aib-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.aib-card li { display: flex; gap: 12px; align-items: flex-start; }
.aib-card li > span { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.aib-card li svg { width: 16px; height: 16px; }
.aib-card li b { display: block; font-size: .9rem; }
.aib-card li small { color: var(--muted); font-size: .82rem; line-height: 1.45; display: block; margin-top: 1px; }
.aib-tip { padding: 18px 20px; border-radius: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.aib-tip b { display: block; color: var(--accent-2); font-size: .9rem; margin-bottom: 4px; }
.aib-tip p { color: #3f5a4c; font-size: .85rem; line-height: 1.5; margin: 0; }
.aib .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
@media (max-width: 960px) { .aib-grid { grid-template-columns: 1fr; } .aib-side { position: static; order: 2; } }
@media (max-width: 620px) {
  .aib-hero { padding: 24px 22px; } .aib-credits { width: 100%; grid-auto-flow: column; justify-content: space-between; align-items: center; text-align: left; }
  .aib-steps li span { display: none; } .aib-steps li.on span { display: inline; font-size: .82rem; }
  .aib-sec { padding: 20px 18px; } .aib-actions .btn { width: 100%; min-width: 0; }
}

.aib-form .f > span small { display: inline; }

/* support session banner: shown the whole time a CINNOVATORY team member is in a customer's dashboard */
.support-bar { position: sticky; top: 0; z-index: 90; display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 9px 16px; background: #1f2a24; color: #fff4d6; font-size: .9rem; text-align: center; }
.support-bar button { background: #fff4d6; color: #1f2a24; border: 0; border-radius: 999px; padding: 5px 14px; font-weight: 700; cursor: pointer; }
