/* OnlyERP, light blue theme. Edit the variables below to retune colors. */
:root {
  --bg: #F3F8FD;
  --bg-2: #EAF3FC;
  --surface: #FFFFFF;
  --ink: #0F2740;
  --ink-2: #27486A;
  --muted: #5A6F86;
  --line: #D8E5F2;
  --line-2: #C3D7EC;
  --accent: #1E78C8;
  --accent-strong: #135A9B;
  --accent-soft: #E5F1FC;
  --sky: #CFE5F8;
  --warm: #F4B03E;
  --warm-soft: #FFF4DF;
  --ok: #1E8A5A;
  --ok-soft: #E3F5EC;
  --danger: #C23B2E;
  --danger-soft: #FCE9E7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 39, 64, .05), 0 6px 20px -8px rgba(15, 39, 64, .14);
  --shadow-lift: 0 2px 4px rgba(15, 39, 64, .06), 0 14px 32px -12px rgba(30, 120, 200, .35);
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.62 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .45em; letter-spacing: -.018em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 38px; width: auto; display: block; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 11px; border-radius: 9px; font-weight: 500; font-size: .96rem; white-space: nowrap; }
.nav a:hover { background: var(--accent-soft); color: var(--accent-strong); }
.nav a.on { color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }
.top-search { position: relative; width: 240px; flex: none; }
.top-search input { width: 100%; padding: 9px 12px 9px 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235A6F86' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E") 12px 50% no-repeat; font: inherit; font-size: .94rem; color: var(--ink); }
.top-search input:focus { outline: none; border-color: var(--accent); background-color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.who { display: flex; align-items: center; gap: 8px; flex: none; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; font: 600 .95rem var(--font); color: var(--ink); cursor: pointer; }
@media (max-width: 1180px) { .top-search { width: 190px; } .nav a { padding: 8px 8px; font-size: .93rem; } }
@media (max-width: 1040px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: #fff; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; font-size: 1rem; }
  .menu-btn { display: block; margin-left: auto; }
  .top-search { display: none; }
}

/* suggestions dropdown */
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); overflow: hidden; z-index: 40; }
.suggest a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--bg-2); font-size: .94rem; }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.hl { background: var(--accent-soft); }
.suggest .kind { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.suggest .all { justify-content: center; font-weight: 600; color: var(--accent-strong); }

/* ---------- buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: 600 .98rem var(--font); padding: 10px 18px; border-radius: 10px; cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s; }
.btn:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn.ghost { background: #fff; color: var(--accent-strong); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-strong); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); padding: 8px 12px; }
.btn.quiet:hover { background: var(--accent-soft); box-shadow: none; transform: none; }
.btn.warm { background: var(--warm); border-color: var(--warm); color: #2B1D00; }
.btn.warm:hover { background: #E59E22; color: #2B1D00; }
.btn.danger { background: #fff; color: var(--danger); border-color: #F1C9C4; }
.btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: .88rem; border-radius: 8px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: .86rem; }
.field { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=url], input[type=search], input[type=number], input[type=date], input[type=password], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 680px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- surfaces */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel.soft { background: var(--accent-soft); border-color: var(--sky); box-shadow: none; }
.panel.warmnote { background: var(--warm-soft); border-color: #F6DEAD; box-shadow: none; }
.flash { border-radius: 12px; padding: 12px 16px; margin: 18px 0; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.flash.ok { background: var(--ok-soft); color: #105C3B; }
.flash.info { background: var(--accent-soft); color: var(--accent-strong); }
.flash.error { background: var(--danger-soft); color: #8A2318; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); margin: 0 6px 6px 0; white-space: nowrap; }
.tag.warm { background: var(--warm-soft); color: #7A4E00; }
.tag.ok { background: var(--ok-soft); color: #105C3B; }
.tag.grey { background: var(--bg-2); color: var(--ink-2); }
.tag.demo { background: #F1F3F6; color: #7A8796; font-weight: 500; }
.av { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 600; font-size: .9rem; flex: none; letter-spacing: .02em; }
.av.lg { width: 72px; height: 72px; font-size: 1.5rem; }
.av.sm { width: 30px; height: 30px; font-size: .75rem; }
.empty { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--muted); background: rgba(255,255,255,.5); }
.empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

/* ---------- page frame */
main { min-height: 62vh; }
.page { padding: 38px 0 72px; }
.page-head { margin-bottom: 26px; }
.page-head p { max-width: 64ch; font-size: 1.06rem; }
.crumb { font-size: .9rem; margin-bottom: 10px; color: var(--muted); }
.crumb a { text-decoration: none; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.sticky-side { position: sticky; top: 90px; }
@media (max-width: 920px) { .layout-side { grid-template-columns: 1fr; } .sticky-side { position: static; } }

/* ---------- hero */
.hero { position: relative; padding: 56px 0 46px; background: radial-gradient(1100px 380px at 85% -10%, var(--sky), transparent 70%), radial-gradient(700px 300px at -5% 110%, #E1EEFB, transparent 70%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: 1.16rem; color: var(--ink-2); max-width: 54ch; }
.bigsearch { position: relative; display: flex; background: #fff; border: 2px solid var(--accent); border-radius: 16px; box-shadow: 0 10px 30px -14px rgba(30, 120, 200, .55); max-width: 640px; }
.bigsearch input { border: 0; box-shadow: none !important; font-size: 1.1rem; padding: 16px 18px; background: transparent; border-radius: 16px 0 0 16px; }
.bigsearch button { border: 0; background: var(--accent); color: #fff; font: 600 1rem var(--font); padding: 0 24px; border-radius: 0 13px 13px 0; cursor: pointer; }
.bigsearch button:hover { background: var(--accent-strong); }
.bigsearch .suggest { top: calc(100% + 8px); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; text-decoration: none; color: var(--ink-2); background: #fff; border: 1px solid var(--line-2); padding: 6px 13px; border-radius: 999px; cursor: pointer; font-family: inherit; transition: all .12s; }
.chip:hover, .chip.on { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.note-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); position: relative; }
.note-card .who-line { display: flex; gap: 12px; align-items: center; margin-top: 14px; font-size: .92rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.stat { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--ink); }
.stat b { display: block; font-size: 1.55rem; font-weight: 700; color: var(--accent-strong); line-height: 1.1; }
.stat span { font-size: .86rem; color: var(--muted); }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections */
section.band { padding: 54px 0; }
section.band.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { display: inline-block; font-size: .84rem; font-weight: 600; color: var(--accent-strong); background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; margin-bottom: 10px; }

/* persona picker */
.persona-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 22px; }
.persona-tabs button { font: 600 1rem var(--font); padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer; display: flex; gap: 10px; align-items: center; transition: all .15s; }
.persona-tabs button svg { width: 22px; height: 22px; color: var(--accent); }
.persona-tabs button[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-lift); }
.persona-tabs button[aria-selected="true"] svg { color: #fff; }
.persona-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.persona-panel[hidden] { display: none; }
@media (max-width: 820px) { .persona-panel { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); display: block; transition: transform .15s, box-shadow .15s, border-color .15s; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--sky); color: var(--ink); }
.step .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; margin-bottom: 10px; }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* cards & lists */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--sky); }
.card h3 { margin: 2px 0 4px; font-size: 1.08rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card .meta { color: var(--muted); font-size: .9rem; }
.card p { font-size: .95rem; margin: 8px 0 10px; color: var(--ink-2); }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 8px; }
.card .save, .card .foot a, .card .foot button { position: relative; z-index: 2; }
.card.featured { border-color: var(--warm); box-shadow: 0 0 0 1px var(--warm) inset, var(--shadow); }
.list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--bg-2); align-items: start; transition: background .12s; }
.item:last-child { border-bottom: 0; }
.item:hover { background: #F8FBFF; }
.item .t { font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.item .t::after { content: ""; position: absolute; inset: 0; }
.item .t:hover { color: var(--accent-strong); }
.item .meta { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.item .side { text-align: right; position: relative; z-index: 2; }
.item .logo-dot { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); flex: none; }
@media (max-width: 640px) { .item { grid-template-columns: auto minmax(0, 1fr); } .item .side { grid-column: 2; text-align: left; } }

.save { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; width: 36px; height: 36px; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); transition: all .15s; }
.save svg { width: 18px; height: 18px; }
.save:hover { color: var(--accent); border-color: var(--accent); }
.save.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.save.pop { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.25); } }

/* filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters input[type=search] { flex: 1 1 260px; width: auto; }
.filters select { flex: 0 1 200px; width: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { text-decoration: none; color: var(--ink-2); font-weight: 600; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: .95rem; }
.tabs a:hover { border-color: var(--accent); color: var(--accent-strong); }
.tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tabs a .n { opacity: .7; font-weight: 500; margin-left: 4px; }
.result-line { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }

/* pager */
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 26px 0 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 10px; text-decoration: none; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 500; }
.pager a:hover { border-color: var(--accent); color: var(--accent-strong); }
.pager .cur { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager .gap { border: 0; background: none; min-width: 20px; }

/* detail pages */
.detail-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.prose { font-size: 1.05rem; }
.prose p, .prose li { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.2em; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: .95rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.body-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { padding: 9px 0; border-bottom: 1px solid var(--bg-2); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { text-decoration: none; font-weight: 500; }

/* chat */
.chat-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
@media (max-width: 920px) { .chat-wrap { grid-template-columns: 1fr; } }
.chat { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 520px; }
.chat-log { flex: 1; overflow: auto; padding: 22px; max-height: 62vh; }
.msg { display: flex; gap: 12px; margin-bottom: 18px; animation: rise .25s ease both; }
.msg .bubble { padding: 12px 16px; border-radius: 16px; max-width: 78ch; }
.msg.me { flex-direction: row-reverse; }
.msg.me .bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai .bubble { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.ai .bubble p:last-child, .msg.ai .bubble ul:last-child { margin-bottom: 0; }
.msg.ai .bubble ul { padding-left: 1.2em; margin: 0 0 .8em; }
.bot { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; flex: none; color: var(--accent-strong); font-weight: 700; font-size: .8rem; }
.sources { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: .88rem; }
.sources ol { margin: 4px 0 0; padding-left: 1.3em; }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 4px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { min-height: 52px; max-height: 180px; border-radius: 12px; }
.chat-note { padding: 0 22px 10px; font-size: .86rem; color: var(--muted); }

/* tables (admin + account) */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.t th, table.t td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--bg-2); vertical-align: top; }
table.t th { background: var(--bg); color: var(--muted); font-weight: 600; font-size: .82rem; white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t form { display: inline; }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tier.pick { border: 2px solid var(--accent); box-shadow: var(--shadow-lift); }
.tier .price { font-size: 2rem; font-weight: 700; color: var(--accent-strong); }
.tier ul { padding-left: 1.1em; margin: 12px 0 0; }

/* agreement */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; max-height: 60vh; overflow: auto; }
.doc h1 { font-size: 1.7rem; } .doc h2 { font-size: 1.15rem; margin-top: 1.3em; }
.sigpad { border: 2px dashed var(--line-2); border-radius: 12px; background: #fff; width: 100%; max-width: 520px; height: 150px; touch-action: none; display: block; cursor: crosshair; }

/* footer */
.foot { background: #0F2740; color: #C9D8E8; margin-top: 30px; }
.foot a { color: #E6EFF8; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; padding: 50px 0 34px; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } }
.foot h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; font-size: .94rem; }
.foot .brand img { height: 46px; margin-bottom: 12px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 26px; font-size: .88rem; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.newsletter { display: flex; gap: 8px; margin-top: 10px; }
.newsletter input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.newsletter input::placeholder { color: #9FB6CE; }

/* motion */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 500; z-index: 60; box-shadow: var(--shadow-lift); animation: rise .2s ease; }

/* admin */
.admin-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 90px; }
.admin-nav a { text-decoration: none; color: var(--ink-2); padding: 9px 12px; border-radius: 9px; font-weight: 500; display: flex; justify-content: space-between; }
.admin-nav a:hover { background: #fff; }
.admin-nav a.on { background: var(--accent); color: #fff; }
.admin-nav .badge { background: var(--warm); color: #2B1D00; border-radius: 999px; padding: 0 8px; font-size: .78rem; font-weight: 700; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi b { display: block; font-size: 1.6rem; color: var(--accent-strong); }
.setup-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.setup-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; flex: none; }
.dot.yes { background: var(--ok); }

@media print {
  .top, .foot, .noprint { display: none !important; }
  body { background: #fff; }
  .doc { max-height: none; border: 0; padding: 0; }
}
