:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; } :root[data-theme="dark"] { color-scheme: dark; }
:root {
  --bg: #f6f5f2; --panel: #ffffff; --ink: #1d1d1f; --muted: #6b6b73; --line: #e4e2dc; --hover: #f0eee9;
  --accent: #0b8f8a; --accent-ink: #fff; --accent-soft: #dcf3f1; --danger: #c93a3a; --ok: #1f8a4c; --warn: #b7791f;
  --rail: #18181b; --rail-ink: #d4d4d8; --rail-active: #2a2a30; --rail-strong: #fff; --rail-muted: #71717a; --rail-line: #2a2a30; --rail-soft: #a1a1aa; --shadow: 0 8px 30px rgba(0,0,0,.12);
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
    --bg: #131316; --panel: #1c1c21; --ink: #ececef; --muted: #9a9aa5; --line: #2c2c33; --hover: #26262d;
    --accent: #2dd4cb; --accent-ink: #062a2c; --accent-soft: #123a3d; --danger: #ff6b6b; --ok: #4cc380; --warn: #e0a84a;
    --rail: #0c0c0e; --rail-active: #1f1f25; --shadow: 0 8px 30px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
    --bg: #131316; --panel: #1c1c21; --ink: #ececef; --muted: #9a9aa5; --line: #2c2c33; --hover: #26262d;
    --accent: #2dd4cb; --accent-ink: #062a2c; --accent-soft: #123a3d; --danger: #ff6b6b; --ok: #4cc380; --warn: #e0a84a;
    --rail: #0c0c0e; --rail-active: #1f1f25; --shadow: 0 8px 30px rgba(0,0,0,.5);
  }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 15px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 16px; }

/* shell */
#app { display: flex; height: 100vh; }
.rail { width: 208px; background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; padding: 14px 10px; flex-shrink: 0; overflow-y: auto; }
.brand { font-weight: 700; font-size: 16px; color: var(--rail-strong); padding: 6px 10px 14px; letter-spacing: -.01em; }
.brand b { color: var(--accent); }
.nav a { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; color: var(--rail-ink); }
.nav a:hover { background: var(--rail-active); }
.nav a.active { background: var(--rail-active); color: var(--rail-strong); box-shadow: inset 2px 0 0 var(--accent); }
.nav details.setup { margin-top: 2px; } .nav summary.sep { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; user-select: none; } .nav summary.sep::-webkit-details-marker { display: none; } .nav summary.sep::after { content: '▸'; font-size: 10px; } .nav details[open] > summary.sep::after { content: '▾'; } .nav summary.sep:hover { color: #a1a1aa; }
.nav .sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--rail-muted); padding: 14px 10px 4px; }
.me { margin-top: auto; padding: 10px; border-top: 1px solid var(--rail-line); font-size: 12px; }
.me button { background: none; border: 0; color: var(--rail-soft); padding: 0; cursor: pointer; text-decoration: underline; margin-right: 10px; }
/* menu styles: the company picks one in Settings → Branding, each person may choose another in Settings → Appearance */
:root[data-nav="light"] { --rail: var(--panel); --rail-ink: var(--ink); --rail-active: var(--hover); --rail-strong: var(--ink); --rail-muted: var(--muted); --rail-line: var(--line); --rail-soft: var(--muted); }
:root[data-nav="light"] .rail { border-right: 1px solid var(--line); } :root[data-nav="light"] .nav a.active { background: var(--accent-soft); color: var(--ink); }
:root[data-nav="brand"] { --rail: var(--accent); --rail-ink: var(--accent-ink); --rail-strong: var(--accent-ink); --rail-active: color-mix(in srgb, var(--accent-ink) 16%, transparent); --rail-muted: color-mix(in srgb, var(--accent-ink) 62%, transparent); --rail-line: color-mix(in srgb, var(--accent-ink) 22%, transparent); --rail-soft: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
:root[data-nav="brand"] .nav a.active { box-shadow: inset 3px 0 0 var(--accent-ink); } :root[data-nav="brand"] .brand b { color: inherit; opacity: .75; }
.navpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .navpick button { border: 2px solid var(--line); border-radius: 12px; background: var(--panel); padding: 8px; cursor: pointer; text-align: left; } .navpick button.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.navpick .mock { display: flex; height: 86px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 6px; } .navpick .mock i { display: block; height: 7px; border-radius: 4px; margin: 6px 7px 0; opacity: .8; } .navpick .mock .r { width: 44%; padding-top: 4px; } .navpick .mock .m { flex: 1; background: var(--bg); }
main { flex: 1; overflow: auto; padding: 24px 32px 110px; min-width: 0; } /* room at the bottom: the Ask Cyremo and notification buttons float over the corner */
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

/* controls */
.btn { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.ghost { border-color: transparent; background: none; }
.btn.sm { padding: 3px 8px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: default; }
input, select, textarea { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input[type=checkbox] { width: auto; }
textarea { min-height: 72px; resize: vertical; }
label.f { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.search { max-width: 260px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: 12px; cursor: pointer; background: var(--panel); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: 5px 12px; cursor: pointer; }
.seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* cards, tables */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.stat { cursor: pointer; } .stat:hover { border-color: var(--accent); }
.stat .n { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--panel); position: sticky; top: 0; cursor: default; white-space: nowrap; }
th.sortable { cursor: pointer; } th.sortable:hover { color: var(--ink); }
tbody tr { cursor: pointer; } tbody tr:hover { background: var(--hover); } tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.badge.c1 { background: #e6f4ec; color: #1f7a45; } .badge.c2 { background: #fdf0d9; color: #96600f; }
.badge.c3 { background: #e3effc; color: #2a62a8; } .badge.c4 { background: #fbe4e4; color: #b03333; } .badge.c5 { background: #efe6fa; color: #7a43b5; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .badge.c1 { background: #17321f; color: #6bd493; }
:root:not([data-theme="light"]) .badge.c2 { background: #3a2c10; color: #f0bf68; }
:root:not([data-theme="light"]) .badge.c3 { background: #15293f; color: #7db5f0; }
:root:not([data-theme="light"]) .badge.c4 { background: #3d1a1a; color: #ff9b9b; }
:root:not([data-theme="light"]) .badge.c5 { background: #2c1d40; color: #c39bf0; }
}
:root[data-theme="dark"] .badge.c1 { background: #17321f; color: #6bd493; }
:root[data-theme="dark"] .badge.c2 { background: #3a2c10; color: #f0bf68; }
:root[data-theme="dark"] .badge.c3 { background: #15293f; color: #7db5f0; }
:root[data-theme="dark"] .badge.c4 { background: #3d1a1a; color: #ff9b9b; }
:root[data-theme="dark"] .badge.c5 { background: #2c1d40; color: #c39bf0; }

.empty { text-align: center; padding: 40px; color: var(--muted); }

/* board */
.board { display: flex; gap: 12px; align-items: flex-start; overflow-x: auto; padding-bottom: 12px; }
.col { background: var(--hover); border-radius: var(--radius); width: 270px; flex-shrink: 0; padding: 10px; min-height: 120px; }
.col.over { outline: 2px dashed var(--accent); }
.col h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; }
.kcard { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin-bottom: 8px; cursor: grab; }
.kcard:hover { border-color: var(--accent); } .kcard b { display: block; }

/* drawer / modal */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 20; display: flex; justify-content: flex-end; }
.overlay.center { justify-content: center; align-items: center; }
.drawer { width: min(560px, 100vw); background: var(--panel); height: 100%; overflow-y: auto; box-shadow: var(--shadow); padding: 22px; }
.modal { width: auto; min-width: min(560px, 94vw); max-width: 94vw; background: var(--panel); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .full { grid-column: 1 / -1; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 14px; }
.tabs button { background: none; border: 0; padding: 8px 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.tl { border-left: 2px solid var(--line); padding-left: 12px; margin: 0 0 14px 4px; }
.tl .meta { font-size: 12px; color: var(--muted); }
.tl pre { white-space: pre-wrap; margin: 4px 0 0; font: inherit; }

/* flow builder */
.flow { max-width: 640px; margin: 0 auto; }
.node { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; position: relative; }
.node.trigger { border-color: var(--accent); }
.node .tag { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.node .tag .tools { margin-left: auto; display: flex; gap: 2px; }
.link { width: 2px; height: 22px; background: var(--line); margin: 0 auto; position: relative; }
.link.add::after { content: ''; }
.addbtn { display: block; margin: 0 auto; border: 1px dashed var(--accent); color: var(--accent); background: none; border-radius: 99px; padding: 3px 14px; cursor: pointer; }
.addbtn:hover { background: var(--accent-soft); }
.vars { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.vars code, code.k { background: var(--hover); padding: 1px 6px; border-radius: 5px; font-size: 12px; cursor: pointer; }
pre.code { background: #111114; color: #e8e8ee; padding: 12px 14px; border-radius: 8px; overflow-x: auto; font-size: 12.5px; margin: 6px 0 14px; }
.bar { height: 22px; background: var(--accent); border-radius: 5px; min-width: 2px; }
.barrow { display: grid; grid-template-columns: 150px 1fr 70px; gap: 10px; align-items: center; margin: 5px 0; font-size: 13px; }
.barrow span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 8px; z-index: 50; box-shadow: var(--shadow); }
.toast.err { background: var(--danger); color: #fff; }
.callout { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 8px; padding: 10px 12px; margin: 10px 0; word-break: break-all; }
.login { width: 100%; max-width: 400px; }
.authwrap { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 1fr) minmax(380px, 1fr); }
.authside { background: linear-gradient(145deg, var(--accent), #2b2470 85%); color: #fff; padding: 56px clamp(32px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; gap: 28px; position: relative; overflow: hidden; }
.authside::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.08); }
.authside h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; margin: 0; max-width: 460px; } .authside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; } .authside li { display: flex; gap: 12px; align-items: center; font-size: 16px; opacity: .95; }
.authside li span { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.16); display: grid; place-items: center; } .authfoot { font-size: 13px; opacity: .7; }
.authmain { display: grid; place-items: center; padding: 32px 24px; background: var(--bg, var(--panel)); }
.authbrand { color: var(--ink); padding-left: 0; font-size: 26px; margin-bottom: 18px; } .authbrand.light { color: #fff; }
.authtitle { font-size: 28px; margin: 0 0 4px; } .login input { padding: 11px 12px; font-size: 15px; } .login .btn.primary { padding: 12px; font-size: 16px; }
@media (max-width: 820px) { .authwrap { grid-template-columns: 1fr; } .authside { display: none; } .authmain { min-height: 100vh; align-items: start; padding-top: 12vh; } }
.ok { color: var(--ok); } .bad { color: var(--danger); }
/* phones & small tablets: the menu becomes a drawer behind a top bar, so the page gets the whole width */
.topbar, .scrim { display: none; }
@media (max-width: 800px) {
  #app { display: block; height: auto; min-height: 100vh; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; padding: 8px 12px; background: var(--rail); color: var(--rail-strong); }
  .burger { background: none; border: 0; color: var(--rail-strong); font-size: 24px; line-height: 1; padding: 4px 8px; cursor: pointer; }
  .rail { position: fixed; top: 0; bottom: 0; left: 0; width: 270px; max-width: 84vw; z-index: 50; transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .rail.open { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); } .scrim.open { display: block; }
  main { padding: 16px 14px 110px; overflow: visible; } .grid2 { grid-template-columns: 1fr; }
  .head { flex-wrap: wrap; } .drawer { padding: 16px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.row.wrap > select, .row.wrap > input:not([type=checkbox]) { width: auto; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.cal .dow { padding: 6px 8px; font-size: 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); background: var(--panel); }
.cal .day { min-height: 104px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; position: relative; overflow: hidden; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.off { background: var(--bg); } .cal .day.off .dn { opacity: .45; }
.cal .dn { font-size: 12px; color: var(--muted); padding: 0 2px 2px; display: flex; justify-content: space-between; }
.cal .today .dn span:first-child { background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 0 7px; font-weight: 700; }
.cal .add { visibility: hidden; border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0 4px; }
.cal .day:hover .add { visibility: visible; }
.ev { display: block; width: 100%; text-align: left; border: 0; font-size: 12px; padding: 2px 6px; border-radius: 5px; margin-bottom: 2px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--accent-soft); color: var(--accent); }
.ev.done { text-decoration: line-through; opacity: .55; }
.ev.c1 { background: #e6f4ec; color: #1f7a45; } .ev.c2 { background: #fdf0d9; color: #96600f; } .ev.c3 { background: #e3effc; color: #2a62a8; } .ev.c4 { background: #fbe4e4; color: #b03333; } .ev.c5 { background: #efe6fa; color: #7a43b5; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .ev.c1 { background: #17321f; color: #6bd493; }
:root:not([data-theme="light"]) .ev.c2 { background: #3a2c10; color: #f0bf68; }
:root:not([data-theme="light"]) .ev.c3 { background: #15293f; color: #7db5f0; }
:root:not([data-theme="light"]) .ev.c4 { background: #3d1a1a; color: #ff9b9b; }
:root:not([data-theme="light"]) .ev.c5 { background: #2c1d40; color: #c39bf0; }
}
:root[data-theme="dark"] .ev.c1 { background: #17321f; color: #6bd493; }
:root[data-theme="dark"] .ev.c2 { background: #3a2c10; color: #f0bf68; }
:root[data-theme="dark"] .ev.c3 { background: #15293f; color: #7db5f0; }
:root[data-theme="dark"] .ev.c4 { background: #3d1a1a; color: #ff9b9b; }
:root[data-theme="dark"] .ev.c5 { background: #2c1d40; color: #c39bf0; }

.more { font-size: 11px; color: var(--muted); cursor: pointer; padding: 0 6px; }
@media (max-width: 760px) { .cal .day { min-height: 70px; } .ev { font-size: 10px; } }

/* dashboard widgets */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.w { position: relative; } .w.s { grid-column: span 1; } .w.m { grid-column: span 2; } .w.l { grid-column: span 3; }
@media (max-width: 760px) { .w.m, .w.l { grid-column: span 1; } }
.w .wt { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.w .big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.w .tools { display: flex; gap: 2px; margin-bottom: 6px; }
.w.editing { outline: 2px dashed var(--accent); }
.donut { display: flex; gap: 16px; align-items: center; }
.donut .ring { width: 110px; height: 110px; border-radius: 50%; flex-shrink: 0; -webkit-mask: radial-gradient(circle 32px, transparent 98%, #000 100%); mask: radial-gradient(circle 32px, transparent 98%, #000 100%); }
.donut .lg div { font-size: 12.5px; display: flex; gap: 6px; align-items: center; } .donut .lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.wl { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; } .wl:last-child { border: 0; } .wl:hover b { color: var(--accent); }
.notif { padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; } .notif.unread { font-weight: 600; } .notif .muted { font-weight: 400; }
.dot { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; text-align: center; margin-left: 4px; }
.grid2 > * { min-width: 0; }
pre.code { max-width: 100%; }

/* landing page builder */
.pgbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.pg { display: grid; grid-template-columns: 230px minmax(0, 1fr) 320px; gap: 12px; height: calc(100vh - 140px); min-height: 520px; }
.pg > div { overflow: auto; min-height: 0; }
.pal { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pchip { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 8px 4px; cursor: grab; text-align: center; font-size: 12px; user-select: none; }
.pchip:hover { border-color: var(--accent); background: var(--accent-soft); }
.srow { display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; cursor: pointer; font-size: 13px; }
.srow.sel { border-color: var(--accent); background: var(--accent-soft); }
.srow.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.sl { min-height: 60px; padding-bottom: 8px; } .sl.drop-end { box-shadow: inset 0 -3px 0 var(--accent); }
.stage { background: #e4e2dd; border-radius: 10px; padding: 10px; display: flex; justify-content: center; position: relative; overflow: hidden !important; }
.stage iframe { border: 0; background: #fff; border-radius: 6px; height: 100%; width: 100%; transition: width .2s; }
.stage.mobile iframe { width: 390px; }
.dropov { position: absolute; inset: 10px; background: rgba(91, 75, 219, .18); border: 3px dashed var(--accent); border-radius: 8px; display: none; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); z-index: 2; }
.dropov.on { display: flex; }
.imgp { display: flex; gap: 10px; align-items: center; } .imgp img { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.litem { border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 8px; background: var(--bg); }
@media (max-width: 1100px) { .pg { grid-template-columns: 1fr; height: auto; } .stage { height: 560px; } }
input[type=radio] { width: auto; }

/* affiliates */
.tabs.sub { margin-top: 0; }
.permgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; }
.permgrid label { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: 13.5px; }
.codebox { background: var(--hover); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.portal-top { display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.portal-top img { height: 30px; } .portal-top .nav2 { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.portal-top .nav2 a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; cursor: pointer; } .portal-top .nav2 a.on { background: var(--accent-soft); color: var(--accent); }
.portal-main { max-width: 1180px; margin: 0 auto; padding: 24px 28px 60px; }

.big { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }

.portal #app { display: block; height: auto; min-height: 100vh; }
.portal .portal-top { position: sticky; top: 0; z-index: 5; }

.rel { color: var(--accent); text-decoration: none; cursor: pointer; } .rel:hover { text-decoration: underline; }
.branch { margin: 12px 0 0 14px; padding-left: 14px; border-left: 3px solid var(--line); }
.branch > b { display: inline-block; margin-bottom: 4px; }

.dropzone { border:2px dashed var(--line); border-radius:10px; padding:18px; text-align:center; color:var(--muted); cursor:pointer; } .dropzone.over, .dropzone:hover { border-color:var(--brand,#3b5bdb); background:rgba(59,91,219,.05); }
.hide { display:none !important; }

.nbadge { margin-left: auto; background: #e03131; color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 0 6px; min-width: 18px; text-align: center; }
.nbadge:empty { display: none; }
/* live chat */
.chat { display: grid; grid-template-columns: 320px 1fr; gap: 14px; height: calc(100vh - 190px); min-height: 420px; }
.chat-list, .chat-thread { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-y: auto; }
.chat-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; } .chat-thread { display: flex; flex-direction: column; overflow: hidden; }
.chat-item { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; } .chat-item:hover, .chat-item.on { border-color: var(--accent); background: var(--accent-soft); }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.cm-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.cm { max-width: 78%; } .cm.me { align-self: flex-end; text-align: right; } .cm .who { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.cm .txt { display: inline-block; text-align: left; padding: 8px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; } .cm.me .txt { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chat-reply { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); } .chat-reply textarea { flex: 1; resize: none; }
@media (max-width: 800px) { .chat { grid-template-columns: 1fr; height: auto; } .chat-list { max-height: 260px; } .chat-thread { min-height: 420px; } }

/* surveys */
.sbar { display: grid; grid-template-columns: 110px 1fr 56px; gap: 8px; align-items: center; margin: 5px 0; font-size: 13px; } .sbar .st { background: var(--hover); border-radius: 99px; height: 10px; overflow: hidden; display: block; } .sbar .st i { display: block; height: 100%; background: var(--accent); border-radius: 99px; } .sbar .sl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sbar .sn { text-align: right; color: var(--muted); }
.kpis { gap: 12px; } .kpi { background: var(--hover); border-radius: 10px; padding: 10px 16px; min-width: 110px; } .kpi b { font-size: 24px; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 40px; } .spark i { flex: 1; background: var(--accent); border-radius: 2px; opacity: .8; }
.quote { border-left: 3px solid var(--accent); padding: 4px 10px; margin: 8px 0; white-space: pre-wrap; }

/* alerts: a big round bell on the right + phone-style banners */
.fab-bell { position: fixed; right: 22px; bottom: 26px; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 28px; cursor: pointer; z-index: 60; box-shadow: 0 8px 28px rgba(0,0,0,.28); display: grid; place-items: center; transition: transform .15s; }
.fab-bell:hover { transform: scale(1.06); } .fab-bell .ico { line-height: 1; }
.fab-bell .cnt { position: absolute; top: -4px; right: -4px; } .fab-bell .cnt:empty { display: none; }
.fab-bell .cnt span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: #e03131; color: #fff; font-size: 13px; font-weight: 800; border: 2px solid var(--bg); }
.fab-bell.has { animation: bellpulse 2s infinite; } .fab-bell.has .ico { animation: bellring 2.4s infinite; transform-origin: 50% 12%; }
@keyframes bellpulse { 0%, 100% { box-shadow: 0 8px 28px rgba(0,0,0,.28), 0 0 0 0 rgba(224,49,49,.5); } 50% { box-shadow: 0 8px 28px rgba(0,0,0,.28), 0 0 0 14px rgba(224,49,49,0); } }
@keyframes bellring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-5deg); } }
.banners { position: fixed; top: 16px; right: 16px; z-index: 70; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 24px)); pointer-events: none; }
.banner { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.28); cursor: pointer; animation: bannerin .35s cubic-bezier(.2,.9,.3,1.2); }
.banner.out { opacity: 0; transform: translateY(-14px) scale(.97); transition: opacity .3s, transform .3s; }
.banner .bi { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 18px; }
.banner .bt { flex: 1; min-width: 0; } .banner .bh { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; } .banner .bb { color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.banner .bx { background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
@keyframes bannerin { from { opacity: 0; transform: translateY(-24px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fab-bell.has, .fab-bell.has .ico, .banner { animation: none; } }
@media (max-width: 800px) { .fab-bell { width: 56px; height: 56px; right: 16px; bottom: 20px; font-size: 25px; } .banners { top: 60px; } }

/* record page layout (sections) */
.grid1 { display: grid; grid-template-columns: 1fr; gap: 12px; } .grid1 > * { min-width: 0; }
.lsec { margin-bottom: 14px; } .lsec-h { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 4px 0 6px; margin-bottom: 10px; cursor: pointer; user-select: none; } .lsec-h .car { width: 12px; }
.lsec.shut > .grid1, .lsec.shut > .grid2 { display: none; }
/* layout editor */
.lay-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; align-items: start; } .lay, .lay-tray { min-width: 0; } @media (max-width: 900px) { .lay-wrap { grid-template-columns: minmax(0, 1fr); } .lay-tray { position: static; } }
.lay { display: flex; flex-direction: column; gap: 12px; } .lay-sec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); } .lay-sec.over { outline: 2px dashed var(--accent); } .lay-sec.dragging, .chip.dragging { opacity: .4; }
.lay-head { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--hover); border-radius: var(--radius) var(--radius) 0 0; } .lay-head input { flex: 1; font-weight: 600; } .lay-head select { width: auto; }
.grip { cursor: grab; color: var(--muted); padding: 0 4px; user-select: none; }
.lay-body { display: grid; gap: 8px; padding: 10px; min-height: 52px; border-radius: 0 0 var(--radius) var(--radius); } .lay-body.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lay-body.c1 { grid-template-columns: minmax(0, 1fr); } .lay-body.over { background: var(--accent-soft); }
.chip { display: flex; align-items: center; gap: 6px; padding: 7px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; cursor: grab; min-width: 0; } .chip:hover { border-color: var(--accent); } .chip .cl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chip .req { color: var(--danger); } .chip .mv { width: 34px; padding: 2px; font-size: 12px; } .chip.wide { grid-column: 1 / -1; }
.lay-empty { grid-column: 1 / -1; text-align: center; padding: 10px; border: 1px dashed var(--line); border-radius: 8px; } .lay-tray { background: var(--hover); border-radius: var(--radius); padding: 10px; position: sticky; top: 0; } .lay-trayh { margin-bottom: 8px; }

/* routing */
.rbar { display: grid; grid-template-columns: 170px 1fr 44px minmax(120px, auto); gap: 8px; align-items: center; margin: 4px 0; font-size: 13px; } .rbar .rt { background: var(--hover); border-radius: 99px; height: 10px; overflow: hidden; display: block; } .rbar .rt i { display: block; height: 100%; background: var(--accent); border-radius: 99px; } .rbar .rp { text-align: right; font-weight: 700; } .rbar .rn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 800px) { .rbar { grid-template-columns: 1fr 1fr; } }

/* accounting + charts */
.pie { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; } .pie svg { flex: none; } .pie-total { font: 700 15px system-ui; fill: var(--ink); } .pie-sub { font: 12px system-ui; fill: var(--muted); }
.legend { flex: 1; min-width: 160px; } .legend .lg { display: grid; grid-template-columns: 14px 1fr auto 42px; gap: 8px; align-items: center; padding: 3px 0; font-size: 13px; } .legend .lg i { width: 12px; height: 12px; border-radius: 3px; display: block; } .legend .ln { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .legend .lp { color: var(--muted); text-align: right; }
.legend.row { display: flex; gap: 14px; margin-top: 6px; font-size: 12px; color: var(--muted); } .legend .lk { display: inline-flex; gap: 5px; align-items: center; } .legend .lk i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; } .sw-inc { background: #12b886; } .sw-exp { background: #e8590c; } .sw-net { background: #3b5bdb; border-radius: 50% !important; }
.mbwrap { overflow-x: auto; } .mbars { width: 100%; min-width: 520px; height: auto; } .mbars .inc { fill: #12b886; } .mbars .exp { fill: #e8590c; } .mbars .axis { stroke: var(--line); } .mbars .xl { font: 11px system-ui; fill: var(--muted); } .mbars .netline { stroke: #3b5bdb; stroke-width: 2; } .mbars .netdot { fill: #3b5bdb; }
.kpi.inc b { color: #12805c; } .kpi.exp b { color: #c2410c; } .chg { font-size: 12px; display: block; } .chg.good, .good { color: #12805c; } .chg.bad, .bad { color: #c92a2a; }
.bud { margin: 8px 0; } .btrack { background: var(--hover); border-radius: 99px; height: 8px; overflow: hidden; margin-top: 3px; } .btrack i { display: block; height: 100%; background: var(--accent); border-radius: 99px; } .btrack i.over { background: #e03131; }
input.amt { width: 140px; text-align: right; } .ygrid td, .ygrid th { text-align: right; font-size: 12px; white-space: nowrap; } .ygrid td:first-child, .ygrid th:first-child { text-align: left; } .ygrid td.cell { cursor: pointer; } .ygrid td.cell:hover { background: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .chip2 { display: inline-flex; gap: 4px; align-items: center; background: var(--accent-soft); border-radius: 99px; padding: 3px 4px 3px 10px; font-size: 13px; } .chip2 button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; } .chips input { width: 240px; }
@media print { .rail, .topbar, .fab-bell, .banners, .head .btn, .tabs, .noprint { display: none !important; } main { padding: 0 !important; overflow: visible !important; } #app { display: block !important; height: auto !important; } }

.cbars { display: flex; align-items: flex-end; gap: 6px; height: 150px; } .ccol { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.cstack { width: 100%; max-width: 26px; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; } .cseg.paid, .cdot.paid { background: #12805c; } .cseg.approved, .cdot.approved { background: var(--accent); } .cseg.pending, .cdot.pending { background: #f5a524; }
.cdot { display: inline-block; width: 9px; height: 9px; border-radius: 99px; vertical-align: middle; } .rulerow { margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--border, #ddd); } tr.me td { background: var(--hover); font-weight: 600; }
.tablewrap { overflow-x: auto; }

.freezebar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: #c92a2a; color: #fff; padding: 9px 16px; text-align: center; font-size: 14px; height: 38px; box-sizing: border-box; overflow: hidden; } body.frozen #app { margin-top: 38px; height: calc(100vh - 38px); }
@media (max-width: 820px) { body.frozen #app { height: auto; } }

/* itinerary builder */
body.tb-open { overflow: hidden; } .tb { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column; }
.tb-head { display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tb-body { flex: 1; display: grid; grid-template-columns: 290px 1fr 330px; min-height: 0; } .tb-cat, .tb-side { padding: 12px; overflow-y: auto; background: var(--panel); } .tb-cat { border-right: 1px solid var(--line); display: flex; flex-direction: column; } .tb-side { border-left: 1px solid var(--line); }
.tb-h { font-weight: 700; margin: 2px 0 8px; } .tb-catlist { flex: 1; overflow-y: auto; margin-top: 4px; } .tb-svc { display: flex; gap: 8px; align-items: center; padding: 7px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; background: var(--bg); cursor: grab; } .tb-svc img, .tb-ph { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; } .tb-ph { background: var(--hover); display: grid; place-items: center; font-size: 20px; }
.clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-days { overflow-y: auto; padding: 16px 20px; } .tb-day { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; } .tb-day.open { border-color: var(--accent); } .tb-dt { flex: 1; border: 0 !important; background: transparent !important; font-weight: 600; padding: 4px 6px !important; } .tb-notes { min-height: 34px !important; height: 34px; margin: 6px 0; font-size: 13px; }
.tb-list { min-height: 46px; padding: 2px 0; } .tb-item { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; margin: 6px 0; background: var(--bg); cursor: pointer; } .tb-item.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); } .tb-item.opt { border-style: dashed; } .tb-grip { cursor: grab; color: var(--muted); user-select: none; } .tb-ico { font-size: 18px; } .tb-price { font-weight: 600; white-space: nowrap; }
.tb-item.drop-before { box-shadow: 0 -3px 0 var(--accent); } .tb-list.drop-end { box-shadow: inset 0 -3px 0 var(--accent); } .tb-empty { border: 2px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 1000px) { .tb-body { display: block; overflow-y: auto; } .tb-cat { display: none; } .tb-side { border: 0; border-top: 1px solid var(--line); overflow: visible; } .tb-days { overflow: visible; padding: 12px; } }
/* itinerary builder: dialogs and toasts must sit above the full-screen editor */
body.tb-open .overlay { z-index: 100; } body.tb-open .toast { z-index: 120; }
.tb-state { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--hover); color: var(--muted); white-space: nowrap; } .tb-state.ok { color: #2b8a3e; background: rgba(43,138,62,.12); } .tb-state.warn { color: #b26a00; background: rgba(240,160,0,.15); } .tb-state.bad { color: #fff; background: var(--danger); }
.tb-head { position: sticky; top: 0; z-index: 2; } .tb-day .btn.ghost.sm { font-size: 15px; padding: 2px 6px; } .tb-days { background: var(--bg); padding: 18px 24px; } .tb-days > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.tb-day { box-shadow: 0 1px 2px rgba(0,0,0,.04); } .tb-day.closed { padding-bottom: 8px; } .tb-day.closed .tb-list { display: none; }
.tb-item { transition: border-color .12s, box-shadow .12s; } .tb-item:hover { border-color: var(--accent); }
.tb-add { width: 100%; margin-top: 8px; padding: 10px; border: 1.5px dashed var(--line); border-radius: 10px; background: transparent; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; } .tb-add:hover { background: var(--accent-soft); border-color: var(--accent); }
.tb-empty { cursor: pointer; } .tb-empty:hover { border-color: var(--accent); color: var(--accent); }
.tb-pick { max-height: 52vh; overflow-y: auto; } .tb-pick .tb-svc { cursor: pointer; font: inherit; color: inherit; } .tb-pick .tb-svc:hover { border-color: var(--accent); }
.tb-side { background: var(--panel); } .tb-cat { background: var(--panel); }
.tb-svc .clip, .tb-item .clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tb-svc > button, .tb-svc > .btn { flex: none; } .tb-svc > .grow { flex: 1 1 0; min-width: 0; }
/* record opened as a full page (the choice is remembered per browser) */
.overlay.full { background: var(--bg); } .drawer.full { width: 100vw; box-shadow: none; padding: 26px max(22px, calc((100vw - 1040px) / 2)); }
/* full-page record: the fields on the left, Activity / Related / Travel / Documents… on the right, at the top */
@media (min-width: 1100px) {
  .drawer.full { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 500px); column-gap: 32px; align-content: start; max-width: none; padding-left: max(22px, calc((100vw - 1320px) / 2)); padding-right: max(22px, calc((100vw - 1320px) / 2)); }
  .drawer.full > * { grid-column: 1; } .drawer.full > :nth-child(-n+2) { grid-column: 1 / -1; }
  .drawer.full > .tabpane { grid-column: 2; grid-row: 3 / span 40; align-self: start; position: sticky; top: 0; max-height: calc(100vh - 60px); overflow-y: auto; border-left: 1px solid var(--line); padding-left: 20px; }
}
/* Cyremo sign-in screens: teal and deep navy (scoped here, so the colours inside a customer's CRM stay their own) */
.authwrap { --accent: #0b8f8a; --accent-soft: #dcf3f1; --accent-ink: #fff; }
.authside { background: linear-gradient(150deg, #0e9f9a 0%, #0b5f72 45%, #0b2a3c 100%); }
.authside::after { background: rgba(255,255,255,.07); }
.authbrand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -.02em; } .authbrand b { font-weight: 800; color: var(--accent); } .authbrand.light b { color: #8ff0e8; }
.cymark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(145deg, #12b5ae, #0b6f78); margin-right: -2px; } .authbrand.light .cymark { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.authwrap .login a { color: var(--accent); } .authwrap .login input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
@media (prefers-color-scheme: dark) { .authwrap { --accent: #2dd4cb; --accent-soft: #123a3d; --accent-ink: #062a2c; } .authbrand b { color: var(--accent); } }
.helpq { width: 30px; height: 30px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; color: var(--muted); border: 1px solid var(--line); text-decoration: none; } .helpq:hover { color: var(--accent); border-color: var(--accent); }
/* a record opened to read: the fields look like plain text until Edit is pressed */
.drawer.viewmode input:disabled, .drawer.viewmode select:disabled, .drawer.viewmode textarea:disabled { background: transparent; border-color: transparent; color: var(--ink); opacity: 1; -webkit-text-fill-color: var(--ink); padding-left: 0; resize: none; appearance: none; -webkit-appearance: none; }
.drawer.viewmode select:disabled { background-image: none; }
.drawer.viewmode input[type=checkbox]:disabled { opacity: .85; }
.drawer input:disabled, .drawer select:disabled, .drawer textarea:disabled { -webkit-text-fill-color: var(--muted); }
/* record panel: soft page, white section cards, clear label / value pairs */
.drawer.rec { background: var(--bg); } .drawer.rec.full { padding-top: 22px; }
.drawer.rec > .row:first-child h2 { font-size: 22px !important; letter-spacing: -.01em; } .drawer.rec > .row:first-child { align-items: center; gap: 8px; margin-bottom: 2px; }
.drawer.rec .lsec { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px 10px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.drawer.rec .lsec-h { text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 700; color: var(--muted); padding: 14px 0 6px; border: 0; }
.drawer.rec .lsec .grid2, .drawer.rec .lsec .grid1 { gap: 0 28px; }
.drawer.rec label.f { font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 0 4px; }
.drawer.viewmode .lsec .grid2 > div, .drawer.viewmode .lsec .grid1 > div { border-bottom: 1px solid var(--line); padding-bottom: 10px; min-width: 0; }
.drawer.viewmode input:disabled, .drawer.viewmode select:disabled, .drawer.viewmode textarea:disabled { font-size: 15px; font-weight: 500; line-height: 1.45; padding: 2px 0; height: auto; min-height: 0; field-sizing: content; overflow: visible; text-overflow: ellipsis; }
.drawer.viewmode textarea:disabled { white-space: pre-wrap; font-weight: 400; }
.drawer.viewmode input:disabled::placeholder, .drawer.viewmode textarea:disabled::placeholder { color: var(--muted); opacity: .6; -webkit-text-fill-color: var(--muted); }
.drawer.viewmode .tabs { margin-top: 8px; }
.drawer.rec .tabpane { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px 16px; }
@media (min-width: 1100px) { .drawer.rec.full > .tabpane { border-left: 1px solid var(--line); padding-left: 18px; } }
.drawer.rec .muted.small { margin-bottom: 12px; }

/* ---- customize menu ---- */
.ne-modal { width: min(560px, 88vw); }
.ne-scope { flex-direction: column; align-items: flex-start; gap: 6px; margin: 4px 0 10px; font-size: 13px; }
.ne-fixed { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; margin-bottom: 10px; font-size: 14px; }
.ne-sec { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: var(--panel); }
.ne-head { padding: 8px; border-bottom: 1px solid var(--line); gap: 4px; } .ne-head input { font-weight: 600; flex: 1; min-width: 0; }
.ne-list { padding: 6px; min-height: 44px; border-radius: 0 0 10px 10px; } .ne-list.drop { background: var(--accent-soft); }
.ne-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; cursor: grab; font-size: 14px; border: 1px solid transparent; }
.ne-row:hover { background: var(--hover); } .ne-row.dragging { opacity: .4; } .ne-row.drop { border-color: var(--accent); background: var(--accent-soft); }
.ne-row .btn { padding: 2px 8px; } .ne-handle { color: var(--muted); cursor: grab; user-select: none; } .ne-ico { width: 20px; text-align: center; }
.ne-off .ne-name, .ne-off .ne-ico { opacity: .45; text-decoration: line-through; }
.ne-empty { padding: 8px; text-align: center; }

/* ---- campaigns ---- */
.kpi .n { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0; }
.badge.warn { background: #fdf0d5; color: #8a5a00; } .badge.bad { background: #fde2e2; color: #a12a2a; } .badge.on { background: var(--accent-soft); color: var(--accent); }
.callout.warn { background: #fff7e0; border-color: #f0d28a; color: #6b4a00; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--hover); }
.cbars { display: flex; align-items: flex-end; gap: 3px; margin-top: 10px; overflow-x: auto; } .cbar { flex: 1; min-width: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); }
.cbp { width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; } .cbp i { display: block; flex: 1; max-width: 12px; min-height: 1px; border-radius: 3px 3px 0 0; }
.tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 8px; } .tplgrid.small { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-bottom: 12px; }
.tpl { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; color: inherit; font: inherit; } .tpl:hover, .tpl.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.tplwrap { height: 190px; overflow: hidden; border-radius: 8px; background: var(--hover); position: relative; margin-bottom: 4px; } .tplprev { width: 600px; height: 760px; border: 0; transform: scale(.29); transform-origin: top left; pointer-events: none; background: #fff; }
.tplblank { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--muted); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } .pageprev { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 10px; background: #f6f5f2; }
.eb { display: grid; grid-template-columns: minmax(360px, 44%) 1fr; gap: 16px; align-items: start; } .ebl { min-width: 0; } .ebr { position: sticky; top: 8px; min-width: 0; }
.ebname { font-size: 18px; font-weight: 600; max-width: 340px; } .ebsubj { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ebframe { background: #e9e8e4; border-radius: 12px; padding: 10px; display: flex; justify-content: center; } .ebprev { height: calc(100vh - 230px); min-height: 480px; border: 0; background: #fff; border-radius: 8px; width: 100%; transition: width .2s; }
.blk { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--panel); } .blk.dragging { opacity: .4; } .blk.drop { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.blkh { padding: 8px 10px; cursor: pointer; gap: 6px; } .blkb { padding: 4px 12px 12px; border-top: 1px solid var(--line); padding-top: 12px; } .addrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
@media (max-width: 900px) { .eb, .pgrid { grid-template-columns: 1fr; } .ebr { position: static; } .ebprev { height: 460px; } }
.callout.n { word-break: normal; }
.addbox { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); } .addrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 4px; } .palb { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; font: inherit; color: inherit; text-align: left; } .palb.on, .palb:hover { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.pdots { display: inline-flex; } .pdots i { width: 16px; height: 22px; display: block; } .pdots i:first-child { border-radius: 6px 0 0 6px; } .pdots i:last-child { border-radius: 0 6px 6px 0; border: 1px solid var(--line); }
.blkstyle { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; } .blkstyle summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.blkcols { display: grid; gap: 10px; grid-template-columns: 1fr; }

/* visual email builder (GrapesJS engine, our own interface) */
.ebx { display: grid; grid-template-columns: 210px minmax(0, 1fr) 290px; position: relative; height: calc(100vh - 200px); min-height: 580px; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.ebx-rail { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; } .ebx-searchbox { padding: 10px; } .ebx-search { width: 100%; }
.ebx-cats { overflow: auto; padding: 0 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.ebx-cat { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; border-radius: 10px; cursor: pointer; font: inherit; color: inherit; text-align: left; } .ebx-cat:hover { background: var(--hover); } .ebx-cat.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ebx-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--hover); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: none; } .ebx-cat.on .ebx-ico { background: var(--accent); color: #fff; }
.ebx-fly { position: absolute; left: 210px; top: 0; bottom: 0; width: 290px; z-index: 6; background: var(--panel); border-right: 1px solid var(--line); box-shadow: 8px 0 24px rgba(0,0,0,.08); overflow: auto; padding: 10px 14px 20px; }
.ebx-fly-h { font-weight: 700; margin: 4px 0 10px; } .ebx-card { cursor: grab; margin-bottom: 14px; } .ebx-card-t { font-size: 13px; color: var(--muted); margin: 5px 2px 0; } .ebx-card:hover .ebx-card-t { color: var(--accent); }
.ebx-thumb { width: 100%; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; position: relative; } .ebx-card:hover .ebx-thumb { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.ebx-thumb-in table[style*="inline-table"] { width: auto; } .ebx-thumb-in td { border: 0; padding-left: 0; } .ebx-thumb-in { width: 600px; transform-origin: top left; pointer-events: none; } .ebx-thumb-in img[src=""], .ebx-thumb-in img:not([src]) { background: #e3e7ea; color: transparent; display: block; }
.ebx-center { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--hover); }
.ebx-bar, .ebx-fmt { display: flex; align-items: center; gap: 4px; padding: 6px 10px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ebx-b { min-width: 30px; height: 30px; padding: 0 7px; border: 0; background: none; border-radius: 8px; cursor: pointer; font: inherit; color: inherit; display: inline-flex; align-items: center; justify-content: center; position: relative; } .ebx-b:hover { background: var(--hover); } .ebx-b.on { background: var(--accent-soft); color: var(--accent); } .ebx-wide { padding: 0 12px; }
.ebx-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; } .ebx-sel { height: 30px; max-width: 120px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: 12px; padding: 0 6px; } .ebx-clr input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ebx-stage { flex: 1; min-height: 0; } .ebx-host { height: 100%; } .ebx-host .gjs-editor { height: 100%; } .ebx-host .gjs-cv-canvas { top: 0; width: 100%; height: 100%; } .ebx-host .gjs-rte-toolbar, .ebx-host .gjs-pn-panels, .ebx-host .gjs-pn-views-container { display: none; }
.ebx-code { background: var(--panel); border-top: 1px solid var(--line); padding: 8px 12px 10px; height: 250px; display: flex; flex-direction: column; } .ebx-code-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; min-height: 0; } .ebx-code-in > div { display: flex; flex-direction: column; min-height: 0; }
.ebx-ta { flex: 1; min-height: 0; font: 12px/1.45 ui-monospace, Menlo, monospace; white-space: pre; overflow: auto; tab-size: 2; resize: none; }
.ebx-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--panel); } .ebx-tabs { display: flex; border-bottom: 1px solid var(--line); } .ebx-tabs button { flex: 1; padding: 11px 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--muted); border-bottom: 2px solid transparent; } .ebx-tabs button.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.ebx-panel { overflow: auto; padding: 14px; flex: 1; } .ebx-h { font-weight: 700; margin-bottom: 12px; } .ebx-h2 { font-weight: 700; margin: 16px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ebx-row { margin-bottom: 12px; } .ebx-row > label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; } .ebx-ctrl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .ebx-ctrl input:not([type=color]):not([type=range]), .ebx-ctrl select { flex: 1; min-width: 0; } .ebx-ctrl input[type=range] { flex: 1; } .ebx-num { max-width: 70px; flex: none !important; }
.ebx-colour { display: inline-flex; align-items: center; gap: 6px; } .ebx-colour input { width: 44px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; }
.ebx-switch { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); cursor: pointer; } .ebx-switch input { display: none; } .ebx-switch i { width: 38px; height: 22px; border-radius: 11px; background: #cfd4d9; position: relative; transition: .15s; flex: none; } .ebx-switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; } .ebx-switch input:checked + i { background: var(--accent); } .ebx-switch input:checked + i::after { left: 19px; }
.ebx-trail { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; } .ebx-trail button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 2px 9px; font-size: 12px; cursor: pointer; color: inherit; } .ebx-trail button.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); } .ebx-acts { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 1100px) { .ebx { grid-template-columns: 190px minmax(0, 1fr); } .ebx-side { display: none; } .ebx-fly { left: 190px; } }
@media (max-width: 760px) { .ebx { grid-template-columns: 1fr; height: auto; } .ebx-rail { max-height: 180px; } .ebx-fly { left: 0; top: 180px; width: 100%; } .ebx-stage { height: 520px; } .ebx-code-in { grid-template-columns: 1fr; } }
/* journeys */
.jlist { margin: 8px 0 4px; } .jstep { padding: 10px 12px; } .jbranch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; } .jbranch > div { border-left: 3px solid var(--line); padding-left: 10px; min-width: 0; }
.jtag { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; } .jtag.yes { color: var(--accent); } .jtag.no { color: var(--muted); }
@media (max-width: 900px) { .jbranch { grid-template-columns: 1fr; } }

/* Ask Cyremo */
.askbox { position: relative; margin: 14px 0; } .askinput { width: 100%; font-size: 17px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.asksug { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 20; overflow: hidden; }
.asksugrow { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; border-bottom: 1px solid var(--line); } .asksugrow:hover { background: var(--hover); } .asksugrow:last-child { border-bottom: 0; }
.askhome { margin-bottom: 14px; } .askrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; } .askpill { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; color: inherit; } .askpill:hover { border-color: var(--accent); color: var(--accent); }
.askcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; } .askcat { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; font: inherit; color: inherit; } .askcat:hover { border-color: var(--accent); background: var(--accent-soft); }
.asklist { margin-bottom: 14px; } .askqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; } .askq { text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; font: inherit; color: inherit; } .askq:hover { border-color: var(--accent); color: var(--accent); }
.askcard { margin-bottom: 14px; } .askchips { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; } .askchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); } .askchip select { font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.asksay { margin: 8px 0 12px; color: var(--muted); } .asknum .big { font-size: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; } .askdelta { font-weight: 600; margin-top: 4px; } .askdelta.up { color: #2f8f4e; } .askdelta.down { color: #c0392b; }
.asktable { overflow: auto; max-height: 420px; } .asktable td.num { text-align: right; }
/* Ask Cyremo: answers as pictures (askviz.js), views, "Cyremo noticed" */
.askhero { margin-bottom: 4px; }
.askcard { border-radius: 14px; padding: 18px 20px; animation: askin .28s ease-out; transition: opacity .15s; } .askcard.loading > :not(.askskel) { opacity: .55; }
@keyframes askin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.askhead { display: flex; align-items: center; gap: 10px; } .askhead b { font-size: 15.5px; letter-spacing: -.005em; }
.askico { width: 28px; height: 28px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px; flex: none; }
.askchip > span { white-space: nowrap; } .askchip.view { background: var(--hover); border-radius: 999px; padding: 2px 4px 2px 10px; } .askchip.view.on { background: var(--accent-soft); color: var(--ink); } .askchip.view select { border: 0; background: transparent; }
.askchip.add { border: 1px dashed var(--line); background: none; border-radius: 999px; padding: 4px 12px; cursor: pointer; font-weight: 600; color: var(--accent); } .askchip.add:hover { border-color: var(--accent); }
.askfchip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--ink); border-radius: 999px; padding: 3px 4px 3px 12px; font-size: 12.5px; font-weight: 500; }
.askfchip button { border: 0; background: color-mix(in srgb, var(--ink) 10%, transparent); color: inherit; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; }
.askfilter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .askfilter select, .askfilter input { max-width: 100%; }
.asksay { font-size: 14px; color: var(--ink); opacity: .82; }
.askseeall { margin-top: 8px; padding-left: 0; }
.asksw { margin-bottom: 8px; } .askdrill > .row { margin-bottom: 8px; } .asktitle a { font-weight: 600; }
.asktable table { width: 100%; border-collapse: collapse; } .asktable th { position: sticky; top: 0; background: var(--panel); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); z-index: 1; }
.asktable td { padding: 8px 10px; border-bottom: 1px solid var(--line); } .asktable tbody tr:hover td { background: var(--hover); } .asktable th.num { text-align: right; }
.askskel { display: grid; gap: 10px; padding: 4px 0; } .askskel i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--hover), color-mix(in srgb, var(--hover) 40%, var(--panel)), var(--hover)); background-size: 200% 100%; animation: askshim 1.2s infinite linear; } .askskel i:first-child { width: 55%; height: 18px; } .askskel i:nth-child(2) { width: 85%; } .askskel i:nth-child(3) { width: 70%; }
@keyframes askshim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.av-empty { color: var(--muted); padding: 18px 0; text-align: center; }
.av-tip { position: absolute; display: none; pointer-events: none; background: var(--ink); color: var(--panel); padding: 6px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; z-index: 5; box-shadow: var(--shadow); } .av-tip .muted { color: inherit; opacity: .7; }
.av-seg { display: inline-flex; background: var(--hover); border-radius: 9px; padding: 2px; gap: 2px; } .av-seg button { border: 0; background: none; padding: 4px 10px; border-radius: 7px; font-size: 12px; cursor: pointer; color: var(--muted); } .av-seg button.on { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.av-num .av-numhead { display: flex; gap: 16px; align-items: center; } .av-big { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.av-deltarow { margin-top: 6px; } .av-delta { display: inline-block; font-weight: 700; font-size: 12.5px; padding: 2px 8px; border-radius: 999px; } .av-delta.up { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); } .av-delta.down { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); } .av-delta.flat { background: var(--hover); color: var(--muted); }
.av-gauge .trk { fill: none; stroke: var(--hover); stroke-width: 9; } .av-gauge .val { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.av-spark { position: relative; margin-top: 14px; max-width: 420px; } .av-spark svg { width: 100%; height: 64px; display: block; overflow: visible; } .av-spark .ln, .av-line .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.av-spark .pt, .av-line .pt { fill: var(--panel); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; } .av-spark .pt.last, .av-line .pt.last { fill: var(--accent); }
.av-sparklabels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: -8px; }
.av-bars { display: grid; gap: 4px; } .av-bar { display: grid; grid-template-columns: minmax(90px, 180px) 1fr auto 40px; gap: 10px; align-items: center; padding: 5px 6px; border: 0; background: none; border-radius: 8px; font: inherit; color: inherit; text-align: left; font-size: 13px; }
button.av-bar { cursor: pointer; } button.av-bar:hover { background: var(--hover); } .av-bar .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .av-bar .tk { height: 12px; border-radius: 6px; background: var(--hover); overflow: hidden; } .av-bar .tk i { display: block; height: 100%; border-radius: 6px; animation: avgrow .5s ease-out; transform-origin: left; } .av-bar .pc { color: var(--muted); font-size: 12px; text-align: right; }
@keyframes avgrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.av-donut { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; } .av-donutc { position: relative; flex: none; } .av-donut path { transition: opacity .15s, transform .15s; transform-origin: 90px 90px; } .av-donut path.pick { cursor: pointer; } .av-donut path:hover { transform: scale(1.035); } .av-donut .tot { font: 700 16px system-ui; fill: var(--ink); } .av-donut .sub { font: 12px system-ui; fill: var(--muted); }
.av-legend { flex: 1; min-width: 200px; display: grid; gap: 2px; } .av-legend .lg { display: grid; grid-template-columns: 12px 1fr auto 40px; gap: 8px; align-items: center; padding: 4px 6px; border: 0; background: none; border-radius: 6px; font: inherit; color: inherit; text-align: left; font-size: 13px; } .av-legend button.lg { cursor: pointer; } .av-legend button.lg:hover { background: var(--hover); } .av-legend i { width: 12px; height: 12px; border-radius: 4px; } .av-legend .ln { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .av-legend .lp { color: var(--muted); text-align: right; font-size: 12px; }
.av-cols, .av-line { position: relative; } .av-cols svg, .av-line svg { width: 100%; height: auto; display: block; overflow: visible; } .av-cols rect.pick, .av-line rect.pick { cursor: pointer; } .av-cols rect { transition: opacity .15s; } .av-cols rect:hover { opacity: .8; }
.av-cols .axis, .av-line .axis { stroke: var(--line); } .av-line .grid { stroke: var(--line); stroke-dasharray: 2 4; } .av-line .avg { stroke: var(--muted); stroke-dasharray: 5 4; opacity: .7; } .av-line .avgl { font-size: 11px; fill: var(--muted); }
.av-cols .xl, .av-line .xl { font-size: 11px; fill: var(--muted); } .av-cols .vl, .av-line .vl { font-size: 11px; font-weight: 700; fill: var(--ink); }
.av-who { display: inline-flex; align-items: center; gap: 7px; } .av-who i { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-style: normal; font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; flex: none; }
.av-amt { position: relative; display: inline-block; min-width: 90px; text-align: right; } .av-amt i { position: absolute; right: 0; bottom: -3px; height: 3px; border-radius: 2px; background: var(--accent); opacity: .45; } .av-yes { color: var(--ok); font-weight: 700; }
.noticed { border-radius: 14px; margin: 14px 0; padding: 14px 16px; background: linear-gradient(135deg, var(--accent-soft), var(--panel) 55%); }
.nhead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .nhead b { font-size: 15px; } .nspark { font-size: 16px; }
.nlist { display: grid; gap: 8px; } .noticed.compact .nlist { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.nitem { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--muted); animation: askin .3s ease-out; }
.nitem.warn { border-left-color: var(--warn); } .nitem.good { border-left-color: var(--ok); } .nitem.info { border-left-color: var(--accent); }
.nico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; flex: none; background: var(--hover); }
.nitem.warn .nico { background: color-mix(in srgb, var(--warn) 16%, transparent); } .nitem.good .nico { background: color-mix(in srgb, var(--ok) 16%, transparent); } .nitem.info .nico { background: var(--accent-soft); }
.ntext { flex: 1; min-width: 0; } .ntext b { display: block; margin-bottom: 2px; }
.nacts { display: flex; gap: 4px; align-items: center; flex: none; } .noticed.compact .nitem { flex-wrap: wrap; } .noticed.compact .nacts { width: 100%; justify-content: flex-end; }
.nclear { display: flex; gap: 10px; align-items: center; color: var(--muted); } .nclear span { width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); display: grid; place-items: center; font-weight: 800; }
@media (max-width: 640px) { .av-bar { grid-template-columns: minmax(70px, 110px) 1fr auto; } .av-bar .pc { display: none; } .av-big { font-size: 36px; } .nitem { flex-wrap: wrap; } .nacts { width: 100%; justify-content: flex-end; } }

.askacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; } .asksel { display: block; margin-top: 6px; }
.askkind { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; } .askkind.howto { background: #fdf0d5; color: #8a5a00; } .askkind.guide { background: var(--hover); color: var(--muted); } .asksugrow.locked { opacity: .7; } .askstep { margin: 10px 0 0 18px; padding: 0; line-height: 1.6; } .askstep li { margin-bottom: 6px; }
.askslot { margin-bottom: 12px; } .askmulti { display: flex; flex-direction: column; gap: 4px; } .askkind.build { background: #e4f1fb; color: #1b5e8e; }
.fab-ask { position: fixed; right: 30px; bottom: 100px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 20px; cursor: pointer; z-index: 60; box-shadow: 0 6px 20px rgba(0,0,0,.18); } .fab-ask:hover { transform: scale(1.08); border-color: var(--accent); } .askdrawer { width: min(560px, 94vw); }

.askcomposer .askstep { border: 1px solid var(--border, #e3e6ea); border-radius: 10px; padding: 10px 12px; margin: 8px 0; } .askcomposer select, .askcomposer input:not([type=checkbox]), .askcomposer textarea { max-width: 100%; } .askcomposer textarea { width: 100%; } .asksummary { margin: 6px 0 0 18px; padding: 0; } .asksummary li { margin: 3px 0; }

.ebx-thumb-pg { width: 1100px; height: 1600px; border: 0; display: block; background: #fff; }
.av-keys { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); } .av-keys span { display: inline-flex; align-items: center; gap: 5px; } .av-keys i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
/* Reports (reports.js) */
.rpsearch { width: min(360px, 100%); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.rplist table { width: 100%; border-collapse: collapse; } .rplist th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); } .rplist td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; } .rplist tr.click { cursor: pointer; } .rplist tr.click:hover td { background: var(--hover); }
.rpico { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-right: 8px; font-size: 13px; }
.rphead { gap: 10px; } .rpname { font-size: 19px; font-weight: 700; border: 1px solid transparent; background: transparent; padding: 5px 8px; border-radius: 8px; min-width: 200px; flex: 1; max-width: 520px; } .rpname:hover, .rpname:focus { border-color: var(--line); background: var(--panel); }
.rpbuild { display: grid; grid-template-columns: 330px 1fr; gap: 16px; align-items: start; }
.rppanel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px 14px; position: sticky; top: 10px; max-height: calc(100vh - 110px); overflow: auto; }
.rpsec { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; } .rpsec:last-child { border-bottom: 0; } .rpsech { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rpsec select, .rpsec input { max-width: 100%; min-width: 0; } .rprow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .rprow > select { flex: 1; } .rpcond { background: var(--hover); border-radius: 10px; padding: 6px; } .rpadd { justify-self: start; color: var(--accent); font-weight: 600; }
.rpcols { display: flex; flex-wrap: wrap; gap: 6px; } .rpchip { display: inline-flex; align-items: center; gap: 2px; background: var(--accent-soft); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 12.5px; } .rpchip button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 4px; font-size: 14px; }
.rppreview { min-width: 0; transition: opacity .15s; } .rppreview.loading { opacity: .55; }
.rpsum { margin: 2px 0 10px; font-size: 14px; } .rpchart { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 8px; }
.rptable { padding: 0; overflow: auto; max-height: 70vh; border-radius: 14px; } .rptable table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rptable th { position: sticky; top: 0; background: var(--panel); text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); z-index: 1; white-space: nowrap; }
.rptable td, .rptable tbody th { padding: 8px 12px; border-bottom: 1px solid var(--line); } .rptable .num { text-align: right; white-space: nowrap; } .rptable tbody tr:hover td, .rptable tbody tr:hover th { background: var(--hover); }
.rptable tbody td:first-child { white-space: nowrap; } .rptable tr.g1 td { font-weight: 700; background: color-mix(in srgb, var(--hover) 60%, transparent); } .rptable tr.g2 td:first-child { padding-left: 30px; }
.rptable tfoot td, .rptable tfoot th, .rptable .tot { font-weight: 800; } .rptable tfoot td, .rptable tfoot th { position: sticky; bottom: 0; background: var(--panel); border-top: 2px solid var(--line); }
.rpmatrix tbody th { position: static; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--ink); font-weight: 600; text-align: left; }
.rpcell { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0; } .rpcell:hover { color: var(--accent); text-decoration: underline; } .rpcell.lab { font-weight: inherit; text-align: left; }
.rpdrill { margin-top: 10px; } .rpdrill .rptable { max-height: 60vh; }
@media (max-width: 980px) { .rpbuild { grid-template-columns: 1fr; } .rppanel { position: static; max-height: none; } }
.rplayout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; } .rpmain { min-width: 0; }
.rpside { display: grid; gap: 2px; position: sticky; top: 10px; } .rpsidehead { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 8px 4px; }
.rpsideitem { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 7px 10px; border-radius: 9px; font: inherit; color: inherit; cursor: pointer; text-align: left; } .rpsideitem:hover { background: var(--hover); } .rpsideitem.on { background: var(--accent-soft); font-weight: 600; }
.rpsideitem .ic { width: 18px; text-align: center; } .rpsideitem .n { font-size: 11.5px; color: var(--muted); } .rpside .rpadd { margin: 4px 0 0 4px; }
.rpfolderhead { margin-bottom: 2px; } .rpstar { border: 0; background: none; cursor: pointer; font-size: 17px; color: var(--muted); padding: 0 2px; line-height: 1; } .rpstar.on { color: #f59f00; } .rpfav { font-size: 18px; color: #f59f00; }
.rpacts { white-space: nowrap; text-align: right; }
.rplibcat { margin-bottom: 18px; display: grid; gap: 8px; } .rplibgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.rplib { display: grid; gap: 6px; padding: 14px; color: inherit; border-radius: 12px; transition: border-color .15s, transform .15s; } .rplib:hover { border-color: var(--accent); transform: translateY(-1px); } .rplibobj { margin-top: auto; }
@media (max-width: 860px) { .rplayout { grid-template-columns: 1fr; } .rpside { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .rpsidehead { grid-column: 1 / -1; } }
/* Dashboards (dashboards.js) */
.rptabs { display: inline-flex; gap: 4px; background: var(--hover); border-radius: 12px; padding: 3px; } .rptabs a { padding: 6px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 15px; } .rptabs a.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.dbhead { gap: 10px; } .dbhead.embedded { margin: 6px 0 8px; }
.dbfilters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.dbgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; transition: opacity .15s; } .dbgrid.loading { opacity: .55; }
.dbcard { grid-column: span 2; border-radius: 14px; padding: 14px 16px; min-width: 0; display: grid; gap: 8px; align-content: start; } .dbcard.m { grid-column: span 3; } .dbcard.l { grid-column: span 6; }
.dbt a { font-weight: 700; color: var(--ink); } .dbt a:hover { color: var(--accent); }
.dbtools { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; padding-bottom: 8px; border-bottom: 1px dashed var(--line); } .dbtools select { font-size: 12px; padding: 2px 4px; }
.dbna { padding: 18px 0; text-align: center; } .dbnum .av-big { font-size: 38px; }
.dbtable { width: 100%; border-collapse: collapse; font-size: 13px; } .dbtable td { padding: 6px 4px; border-bottom: 1px solid var(--line); } .dbtable td.num { text-align: right; white-space: nowrap; } .dbtable tfoot td { font-weight: 800; border-bottom: 0; }
@media (max-width: 900px) { .dbgrid { grid-template-columns: repeat(2, 1fr); } .dbcard, .dbcard.m { grid-column: span 1; } .dbcard.l { grid-column: span 2; } }
@media (max-width: 560px) { .dbgrid { grid-template-columns: 1fr; } .dbcard, .dbcard.m, .dbcard.l { grid-column: span 1; } }
/* Record page: real values when reading (recordview.js), one-field edits, key facts, stage path, sticky header */
.fld > .fv { display: none; }
.drawer.viewmode .fld:not(.inl) > :not(label):not(.fv):not(.rp-fic):not(.rp-act) { display: none; }
.drawer.viewmode .fld:not(.inl) > .fv { display: block; font-size: 15px; font-weight: 500; line-height: 1.45; padding: 2px 0 0; min-height: 24px; word-break: break-word; }
.fld label.f { display: flex; align-items: center; gap: 6px; }
.fv-edit { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 13px; padding: 0 4px; border-radius: 6px; opacity: 0; transition: opacity .12s; }
.drawer:not(.viewmode) .fv-edit { display: none; }
.fld:hover .fv-edit, .fv-edit:focus { opacity: 1; } .fv-edit:hover { background: var(--hover); color: var(--accent); }
@media (hover: none) { .fv-edit { opacity: .6; } }
.fld.inl { background: var(--accent-soft); border-radius: 10px; padding: 0 10px 10px !important; margin: 0 -10px; }
.fld.inl .fv-edit { display: none; } .fv-acts { display: flex; gap: 6px; margin-top: 8px; }
.fv-empty { color: var(--muted); opacity: .55; font-weight: 400; }
.fv-bool { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.fv-bool.yes { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); } .fv-bool.no { background: var(--hover); color: var(--muted); }
.fv-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.fv-link { color: var(--accent); } .fv-link:hover { text-decoration: underline; }
.fv-phone { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; } .fv-wa { font-size: 12px; font-weight: 600; color: #128c4b; background: #e6f6ec; border-radius: 999px; padding: 1px 9px; }
.fv-rel { color: var(--muted); font-weight: 400; font-size: 13px; }
.fv-chip a.rel, .fv-chip > a { display: inline-block; background: var(--hover); border-radius: 8px; padding: 2px 10px; color: var(--ink); font-weight: 600; }
.fv-chip a:hover { background: var(--accent-soft); color: var(--accent); }
.fv-img { max-height: 120px; max-width: 220px; border-radius: 10px; display: block; }
.fv-long { white-space: pre-wrap; font-weight: 400; } .fv-long.clip { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.fv-more { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 4px 0 0; font-weight: 600; font-size: 13px; }
.drawer.rec .rtop { position: sticky; top: -22px; z-index: 6; background: var(--bg); margin: -22px -22px 0; padding: 22px 22px 8px; }
@media (max-width: 640px) { .drawer.rec .rtop { top: -16px; margin: -16px -16px 0; padding: 16px 16px 8px; } }
.rhl { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 16px; }
.rhl-c { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; min-width: 120px; max-width: 100%; }
.rhl-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; }
.rhl-v { font-size: 15px; font-weight: 600; } .rhl-v .fv-rel { display: block; font-size: 12px; }
.rhl-owner { display: inline-flex; align-items: center; gap: 7px; } .rhl-owner i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 10px; font-weight: 800; display: inline-grid; place-items: center; }
.spath { display: flex; margin: 4px 0 14px; overflow-x: auto; border-radius: 10px; scrollbar-width: none; } .spath::-webkit-scrollbar { display: none; }
.spath .sp { flex: 1 0 auto; min-width: 84px; border: 0; background: var(--hover); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 9px 18px 9px 22px; cursor: pointer; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); margin-right: -6px; }
.spath .sp:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); padding-left: 14px; border-radius: 10px 0 0 10px; }
.spath .sp:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%); border-radius: 0 10px 10px 0; margin-right: 0; }
.spath .sp:not(:disabled):hover { background: color-mix(in srgb, var(--accent) 22%, var(--hover)); color: var(--ink); }
.spath .sp.done { background: color-mix(in srgb, var(--accent) 30%, var(--panel)); color: var(--ink); }
.spath .sp.on { background: var(--accent); color: var(--accent-ink); cursor: default; }
.spath.lost .sp.on { background: var(--danger); color: #fff; } .spath .sp:disabled { cursor: default; } .spath .sp.on:disabled { opacity: 1; }
/* Layout phase 2: 3 columns, help text, text blocks, dividers, the record's own tabs, hide empty values */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; } .grid3 .full, .grid1 .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.drawer.rec .lsec .grid3 { gap: 0 24px; } .drawer.viewmode .lsec .grid3 > div { border-bottom: 1px solid var(--line); padding-bottom: 10px; min-width: 0; }
.fhelp { font-size: 12px; color: var(--muted); margin: -2px 0 4px; line-height: 1.35; }
.drawer.viewmode .fhelp { display: none; } .fld.inl .fhelp { display: block; }
.ltext { padding: 10px 0 4px; color: var(--ink); white-space: pre-wrap; } .ltext.note { font-size: 13px; color: var(--muted); background: var(--hover); border-radius: 10px; padding: 9px 12px; margin: 10px 0 2px; }
.ltext.heading { font-weight: 700; font-size: 14px; padding-top: 14px; }
.drawer.viewmode .lsec .ltext, .drawer.viewmode .lsec .ldiv { border-bottom: 0 !important; }
.ldiv { border: 0; border-top: 1px solid var(--line); margin: 12px 0 2px; height: 0; padding: 0 !important; }
.ltabs { display: flex; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ltabs button { border: 0; background: none; padding: 9px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ltabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.drawer.viewmode .lsec.hide-empty .fld.is-empty { display: none; }
.lsec.shut > .grid3 { display: none; }
[hidden] { display: none !important; }
.reltable { width: 100%; border-collapse: collapse; font-size: 13px; } .reltable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--line); } .reltable td { padding: 6px; border-bottom: 1px solid var(--line); }
/* Page layout editor, phase 2 */
.lay-modal { width: min(1320px, calc(100vw - 80px)); } .lay-parts { margin-left: auto; }
.lay-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 16px; align-items: start; max-height: calc(100vh - 230px); }
.lay-split > div:first-child { max-height: calc(100vh - 230px); overflow: auto; padding-right: 4px; }
.lay-preview { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); max-height: calc(100vh - 230px); overflow: auto; position: sticky; top: 0; }
.lay-prevbar { padding: 10px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 3; gap: 8px; }
.drawer.lay-shell { width: auto; height: auto; box-shadow: none; overflow: visible; padding: 16px; background: transparent; }
.lay-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; background: var(--hover); border-radius: 12px; }
.lay-tabchip { display: inline-flex; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0 2px 0 10px; } .lay-tabchip input { border: 0; background: transparent; width: 110px; padding: 4px 0; font-weight: 600; }
.lay-opts { gap: 4px 14px; padding: 6px 10px 2px; } .lay-opt { gap: 6px; color: var(--muted); }
.lay-head .btn.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.lay-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--hover); color: var(--muted); border-radius: 6px; padding: 1px 5px; margin-left: 5px; } .lay-tag.when { background: var(--accent-soft); color: var(--accent); }
.chip.deco { background: var(--hover); border-style: dashed; } .chip .btn.sm.ghost { padding: 0 6px; }
.lay-list { display: grid; gap: 6px; } .lay-li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; } .lay-li.off { opacity: .55; } .lay-li label.row { gap: 8px; }
@media (max-width: 1000px) { .lay-split { grid-template-columns: 1fr; max-height: none; } .lay-split > div:first-child, .lay-preview { max-height: none; position: static; } }
code.snip { display: block; background: var(--hover); border-radius: 8px; padding: 8px 10px; font-size: 12px; word-break: break-all; }
.webhead { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 6px 0 14px; } .webhead > div { background: var(--hover); border-radius: 10px; padding: 8px 12px; }
.webvisit { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; } .webvisit > .row { margin-bottom: 6px; }
.webpage { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0 6px 12px; border-left: 2px solid var(--accent-soft); margin-left: 4px; font-size: 13px; } .webpage .muted.small { word-break: break-all; } .webpage.form { border-left-color: var(--ok); }
.livecard { margin-bottom: 14px; border-radius: 14px; } .livecard > .row { gap: 10px; }
.livedot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; } .livedot.on { background: #2fb36b; box-shadow: 0 0 0 0 rgba(47,179,107,.6); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(47,179,107,.55); } 70% { box-shadow: 0 0 0 9px rgba(47,179,107,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,107,0); } }
.livelist { display: grid; gap: 8px; margin-top: 12px; } .liveperson { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--hover); }
.liveav { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }

/* ---------- Affiliates → Overview (the operations dashboard) ---------- */
.ops { --ops-blue: #3b82f6; --ops-violet: #7c4dff; --ops-green: #22a06b; --ops-red: #e5484d; --ops-amber: #f59e0b; --ops-soft: color-mix(in srgb, var(--ink) 5%, var(--panel)); }
.ops .ops-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.ops .ops-bar select { border-radius: 10px; padding: 7px 10px; width: auto; max-width: 220px; }
.ops .ops-range select { width: auto; }
.ops .ops-range { margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; background: var(--panel); font-size: 13px; }
.ops .ops-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ops .ops-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04); min-width: 0; }
.ops .ops-card h3 { margin: 0; font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.ops .ops-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ops .ops-head .ops-link { margin-left: auto; font-size: 13px; color: var(--ops-blue); text-decoration: none; }
.ops .ops-kpi { display: flex; gap: 14px; align-items: center; }
.ops .ops-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex: none; background: color-mix(in srgb, var(--c, var(--ops-blue)) 14%, var(--panel)); color: var(--c, var(--ops-blue)); }
.ops .ops-kpi .lbl { font-size: 13px; color: var(--muted); }
.ops .ops-kpi .val { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ops .ops-kpi .val b { font-size: 27px; font-weight: 750; letter-spacing: -.02em; }
.ops .pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ops .pill.up { background: color-mix(in srgb, var(--ops-green) 14%, var(--panel)); color: var(--ops-green); }
.ops .pill.down { background: color-mix(in srgb, var(--ops-red) 14%, var(--panel)); color: var(--ops-red); }
.ops .pill.flat { background: var(--ops-soft); color: var(--muted); }
.ops .pill.ok { background: color-mix(in srgb, var(--ops-green) 14%, var(--panel)); color: var(--ops-green); }
.ops .ops-row { display: grid; gap: 12px; margin-bottom: 14px; }
.ops .ops-row.r21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ops .ops-row.r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ops .ops-row.r21, .ops .ops-row.r3 { grid-template-columns: 1fr; } }
.ops .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-left: auto; }
.ops .seg button { border: 0; background: none; padding: 5px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.ops .seg button.on { background: var(--ops-soft); color: var(--ink); font-weight: 600; }
.ops .legend { display: flex; gap: 14px; font-size: 13px; flex-wrap: wrap; }
.ops .legend span { display: inline-flex; align-items: center; gap: 6px; }
.ops .legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ops table.ops-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.ops table.ops-t th { text-align: right; font-weight: 500; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ops table.ops-t td { text-align: right; padding: 8px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); white-space: nowrap; }
.ops table.ops-t th:first-child, .ops table.ops-t td:first-child { text-align: left; }
.ops table.ops-t tr:last-child td { border-bottom: 0; }
.ops table.ops-t td:first-child { font-weight: 600; }
.ops .av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 12px; font-weight: 700; margin-right: 8px; vertical-align: middle; background: color-mix(in srgb, var(--c) 15%, var(--panel)); color: var(--c); }
.ops .stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ops .stats3 .l { font-size: 12px; color: var(--muted); } .ops .stats3 b { font-size: 21px; }
.ops .odot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.ops .ex { display: grid; grid-template-columns: 18px 88px minmax(0, 1fr) auto 18px; gap: 6px; align-items: center; font-size: 13px; padding: 5px 0; }
.ops .ex .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops .ok-check { width: 16px; height: 16px; border-radius: 50%; background: var(--ops-green); color: #fff; display: grid; place-items: center; font-size: 10px; }
.ops .reason { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.ops .big2 { font-size: 34px; font-weight: 750; letter-spacing: -.02em; }
.ops .health { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.ops .health:last-child { border-bottom: 0; }
.ops .action { border: 1px solid color-mix(in srgb, var(--ops-amber) 45%, var(--line)); background: color-mix(in srgb, var(--ops-amber) 9%, var(--panel)); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.ops .action a { color: inherit; font-weight: 600; }
.ops .fbar { height: 10px; border-radius: 6px; background: var(--ops-soft); overflow: hidden; } .ops .fbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--ops-blue), var(--ops-violet)); }

/* the two record page looks, as little previews (Settings → Branding) */
.recpick .rmock { position: relative; height: 74px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding: 6px; display: grid; gap: 4px; }
.rmock.banner { grid-template-columns: 1fr 1.4fr; grid-template-rows: 18px 1fr; } .rmock.banner .rb { grid-column: 1 / -1; background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 60%, #061317), var(--accent)); border-radius: 4px; }
.rmock.banner .rc { display: grid; gap: 3px; } .rmock .rc i, .rmock .rk i { display: block; height: auto; width: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; }
.rmock .rr { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.rmock.profile { grid-template-columns: 1fr 1.4fr; grid-template-rows: 14px 1fr; } .rmock.profile .rk { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.rmock .rp2 { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; } .rmock .rw { height: 12px; background: color-mix(in srgb, var(--accent) 70%, #fff); }
.rmock.banner .rb { min-height: 18px; } .rmock.profile .rk { min-height: 14px; } .rmock .rc, .rmock .rr, .rmock .rp2 { min-height: 40px; }

/* ===================== the record page (Settings → Branding → Record page: profile or banner) ===================== */
/* One look for every object and every tab; all colour comes from the brand colour (--accent) and shades mixed from it. */
.drawer.rec.rp-drawer { padding: 0; background: var(--bg); } .drawer.rec.rp-drawer.full { display: block; padding: 0; width: 100%; }
.drawer.viewmode .fld:not(.inl) > :not(label):not(.fv) { display: none; }
.rp { --rp-dark: color-mix(in srgb, var(--accent) 55%, #062030); --rp-deep: color-mix(in srgb, var(--accent) 72%, var(--ink)); --rp-soft: color-mix(in srgb, var(--accent) 13%, var(--panel)); --rp-tint: color-mix(in srgb, var(--accent) 6%, var(--panel));
  --rp-line: color-mix(in srgb, var(--accent) 9%, var(--line)); --rp-muted: var(--muted); --rp-shadow: 0 9px 26px rgba(18, 53, 75, .07);
  container-type: inline-size; max-width: 1750px; margin: 0 auto; padding: 22px clamp(17px, 2.8vw, 46px) 120px; color: var(--ink); font-size: 14px; }
.rp .ic { flex: none; vertical-align: -3px; }
.rp a { color: color-mix(in srgb, var(--accent) 70%, #0b4a8a); }
.rp .btn { padding: 9px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--rp-line); color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.rp .btn:hover { background: var(--rp-tint); }
.rp .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rp .btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.rp .btn.danger { color: var(--danger); }
.rp-ib { width: 40px; height: 40px; padding: 0 !important; justify-content: center; }
.rp-sbtn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--rp-line); border-radius: 9px; background: var(--panel); padding: 6px 10px; color: var(--rp-deep); font-size: 12px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.rp-sbtn:hover { background: var(--rp-tint); }
.rp-more { position: relative; }
.rp-menu { position: absolute; right: 0; top: 46px; z-index: 30; background: var(--panel); border: 1px solid var(--rp-line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 230px; display: flex; flex-direction: column; color: var(--ink); }
.rp-menu .btn { justify-content: flex-start; text-align: left; border: 0; width: 100%; padding: 8px 10px; border-radius: 8px; font-weight: 600; background: transparent; color: var(--ink); }
.rp-menu .btn:hover { background: var(--rp-soft); }
.rp-meta { display: flex; flex-wrap: wrap; gap: 6px 15px; color: var(--rp-muted); font-size: 12px; } .rp-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.rp-owner { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; } .rp-owner i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 10px; font-weight: 800; }
.rp-av { display: grid; place-items: center; width: 65px; height: 65px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, var(--panel)); color: var(--rp-deep); border: 4px solid var(--panel); font-size: 26px; font-weight: 800; flex: none; }
.rp-av.lg { width: 76px; height: 76px; border: 0; font-size: 31px; font-weight: 850; background: color-mix(in srgb, var(--accent) 22%, var(--panel)); }
.rp-row { display: inline-flex; align-items: center; gap: 10px; }
.rp-trend { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 16%, var(--panel)); color: var(--ok); } .rp-trend.down { background: color-mix(in srgb, var(--danger) 14%, var(--panel)); color: var(--danger); }
.rp-p, .rp-pill { border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; font-size: 11px; font-weight: 750; color: var(--muted); background: var(--line); white-space: nowrap; }
.rp-p.violet { color: color-mix(in srgb, #7350af 80%, var(--ink)); background: color-mix(in srgb, #7350af 16%, var(--panel)); } .rp-p.green, .rp-pill.ok { background: color-mix(in srgb, var(--ok) 16%, var(--panel)); color: var(--ok); } .rp-p.blue { background: color-mix(in srgb, var(--accent) 14%, var(--panel)); color: var(--rp-deep); } .rp-p.red, .rp-pill.bad { background: color-mix(in srgb, var(--danger) 14%, var(--panel)); color: var(--danger); } .rp-pill.warn { background: color-mix(in srgb, var(--warn) 16%, var(--panel)); color: var(--warn); }
.rp .tiny { font-size: 11px; color: var(--rp-muted); }
.rp-card, .rp-k { background: var(--panel); border: 1px solid var(--rp-line); border-radius: 16px; box-shadow: var(--rp-shadow); }
.rp-cols { display: grid; grid-template-columns: minmax(390px, 1.08fr) minmax(460px, .92fr); gap: 20px; align-items: start; }
.rp-right { min-width: 0; }
@container (max-width: 1120px) { .rp-cols { grid-template-columns: 1fr !important; } }
.rp .spath { margin: 0 0 18px; }
/* fact cards */
.rp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.rp-k { padding: 17px; display: flex; gap: 12px; align-items: center; min-width: 0; min-height: 96px; }
.rp-kic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--rp-soft); color: var(--rp-deep); flex-shrink: 0; }
.rp-kt { min-width: 0; flex: 1; } .rp-kl { font-size: 12px; color: var(--rp-muted); } .rp-kv { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; } .rp-ks { font-size: 11px; color: var(--rp-muted); }
.rp-kv .badge, .rp-kv .rp-pill { font-size: 11px; } .rp-kv .fv-rel { display: none; } .rp-kv .fv-link { font-size: 14px; }
.rp-k .rp-sbtn { margin-top: 6px; }
.rp-spark { flex: none; align-self: flex-end; }
/* the fields */
.drawer.rec .rp .lsec { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; border-radius: 0; }
.rp .lsec-h { text-transform: uppercase; font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: .8px; padding: 16px 0 2px; border: 0; } .rp .lsec-h .car { display: none; }
.rp .rp-fields .mt { margin-top: 0; }
.rp .fld { padding: 13px 0; border-bottom: 1px solid var(--line); min-width: 0; margin: 0; }
.rp .fld > label.f { display: block; font-size: 12px; color: var(--muted); margin: 0 0 4px; font-weight: 500; }
.drawer.viewmode .rp .fld:not(.inl) > .fv { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; min-height: 0; padding: 0; }
.rp .rp-fields .full:not(.fld) { padding: 13px 0; border-bottom: 1px solid var(--line); } .rp .rp-fields .full:not(.fld) > label.f { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.rp-quick { padding: 18px 23px; border-top: 1px solid var(--rp-line); display: flex; gap: 9px; flex-wrap: wrap; }
/* tabs */
.drawer.rec .rp .tabpane { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.rp .tabpane > .tabs { display: flex; background: var(--panel); border: 1px solid var(--rp-line); border-radius: 15px 15px 0 0; overflow-x: auto; margin: 0; padding: 0; gap: 0; }
.rp .tabpane > .tabs > button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 17px 16px; white-space: nowrap; border: 0; border-bottom: 3px solid transparent; background: var(--panel); color: var(--muted); font-weight: 650; font-size: 14px; border-radius: 0; margin: 0; }
.rp .tabpane > .tabs > button.on { background: var(--rp-soft); color: var(--rp-deep); border-bottom-color: var(--accent); font-weight: 800; }
.rp .tabpane > .tabs > button:first-child { border-top-left-radius: 15px; } .rp .tabpane > .tabs > button:last-child { border-top-right-radius: 15px; }
.rp .rp-tabbody { border: 1px solid var(--rp-line); border-top: 0; border-radius: 0 0 15px 15px; padding: 21px; background: var(--panel); min-height: 525px; box-shadow: var(--rp-shadow); }
@container (max-width: 640px) { .rp .tabpane > .tabs > button { padding: 13px 12px; } .rp .rp-tabbody { padding: 13px; } }
/* inside a tab */
.rp-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.rp-bar h2 { font-size: 19px; margin: 0 0 4px; } .rp-note { color: var(--rp-muted); font-size: 12px; margin: 0; } .rp-barr { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rp-search { border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; width: min(270px, 100%); background: var(--rp-tint); }
.rp-formrow { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 13px; }
.rp-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 20px; }
.rp-mini2 { padding: 13px; border: 1px solid var(--rp-line); background: linear-gradient(120deg, var(--rp-tint), var(--panel)); border-radius: 12px; }
.rp-mini2 small { display: block; color: var(--muted); font-size: 12px; } .rp-mini2 b { display: flex; align-items: center; gap: 8px; font-size: 19px; margin-top: 3px; }
.rp-timeline { position: relative; margin-left: 12px; padding-left: 25px; border-left: 2px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.rp-ev { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; margin-bottom: 11px; background: var(--rp-tint); }
.rp-ev::before { content: ''; position: absolute; left: -32px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 3px solid var(--panel); }
.rp-ev.dim { opacity: .7; }
.rp-evh { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .rp-evh b { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; } .rp-evh b .ic { color: var(--rp-deep); } .rp-evh time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.rp-ev p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.rp-evbody { white-space: pre-wrap; font: inherit; font-size: 13px; color: var(--ink); margin: 8px 0 0; }
.rp-pages { font-size: 12px; margin-top: 6px; color: var(--ink); } .rp-evact { margin-top: 8px; }
.rp-compose { border: 1px solid var(--rp-line); border-radius: 12px; padding: 12px; margin-bottom: 16px; background: var(--rp-tint); } .rp-compose textarea { min-height: 80px; background: var(--panel); }
.rp-relgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; } @container (max-width: 1150px) { .rp-relgrid { grid-template-columns: 1fr; } }
.rp-relcard { border: 1px solid var(--line); border-radius: 13px; background: var(--rp-tint); padding: 15px; min-width: 0; }
.rp-relcard[hidden] { display: none; }
.rp-reltop { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; } .rp-reltop h3 { margin: 0; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; } .rp-reltop h3 .ic { color: var(--rp-deep); }
.rp-count { color: var(--rp-deep); background: var(--rp-soft); border-radius: 100px; padding: 2px 8px; font-size: 11px; font-weight: 800; }
.rp-rec { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 10px 0; font-size: 12px; } .rp-rec small { color: var(--muted); white-space: nowrap; } .rp-rec a { font-weight: 650; }
.rp-empty { color: var(--muted); font-size: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.rp-tabbody > .rp-empty { border-top: 0; }
.rp-tablewrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.rp-tablewrap table { border-collapse: collapse; width: 100%; font-size: 12px; } .rp-tablewrap th { background: var(--rp-tint); text-align: left; color: var(--muted); font-size: 11px; padding: 11px 12px; white-space: nowrap; }
.rp-tablewrap td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; } .rp-tablewrap td:first-child { font-weight: 700; white-space: nowrap; }
.rp-tablewrap tr[hidden] { display: none; }
.rp-range { width: auto; border-radius: 9px; }
.rp-engcols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 16px; align-items: start; } @container (max-width: 900px) { .rp-engcols { grid-template-columns: 1fr; } }
.rp-side { display: flex; flex-direction: column; gap: 12px; } .rp-link { cursor: pointer; } .rp-link:hover { border-color: var(--accent); }
.rp-focus { background: var(--rp-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 12px; padding: 16px; }
.rp-focus strong { font-size: 22px; display: block; margin-top: 4px; } .rp-focus small { color: var(--muted); display: flex; align-items: center; gap: 5px; } .rp-insight > div { margin-top: 6px; font-size: 13px; }
.rp-infoarea { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 18px; } @container (max-width: 680px) { .rp-infoarea { grid-template-columns: 1fr; } }
.rp-consent .card { border-radius: 13px; border-color: var(--line); background: var(--rp-tint); } .rp-consent h3 { font-size: 14px; margin: 18px 0 8px; }
.rp .webhead { border-radius: 12px; } .rp .webvisit { border-radius: 12px; }

/* ---------- Profile card (company-design-2) ---------- */
.rp-crumb { color: var(--muted); font-size: 12px; margin-bottom: 20px; display: flex; gap: 8px; align-items: center; } .rp-crumb a { color: var(--muted); } .rp-crumb b { color: var(--ink); }
.rp-head { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 23px; } .rp-head h1 { margin: 0; font-size: 29px; letter-spacing: -.8px; }
.rp-a .rp-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 23px; } @container (max-width: 1200px) { .rp-a .rp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rp-a .rp-cols { grid-template-columns: minmax(295px, .72fr) minmax(560px, 1.45fr); }
.rp-profile { overflow: hidden; height: max-content; }
.rp-cover { height: 78px; background: radial-gradient(circle at 70% 0, color-mix(in srgb, var(--accent) 45%, #fff), transparent 55%), linear-gradient(115deg, var(--accent), var(--rp-deep)); }
.rp-pin { padding: 0 21px 21px; }
.rp-who { display: flex; align-items: center; gap: 13px; margin-top: -29px; margin-bottom: 15px; } .rp-who h2 { font-size: 21px; margin: 20px 0 0; }
.rp-lines { margin: -4px 0 10px; } .rp-line { display: flex; align-items: center; gap: 8px; margin: 4px 0; color: var(--rp-muted); font-size: 13px; } .rp-line .fv-link { overflow-wrap: anywhere; }
.rp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.rp-a .rp-fields .grid2, .rp-a .rp-fields .grid3 { display: block; }
.rp-a .fld { padding: 11px 0; }
.rp-a .rp-quick { padding: 19px 0 0; border-top: 0; }
.viewmode .rp-a .fld[data-f="first_name"], .viewmode .rp-a .fld[data-f="last_name"], .viewmode .rp-a .fld.ft-email, .viewmode .rp-a .fld.ft-phone { display: none; } /* shown at the top of the card */

/* ---------- Banner (company-design-1) ---------- */
.rp-b { padding-top: 0; }
.rp-hero { background: linear-gradient(118deg, var(--rp-dark), var(--rp-deep) 65%, color-mix(in srgb, var(--accent) 85%, #062030)); color: #fff; padding: 20px clamp(20px, 3vw, 48px) 32px; position: relative; overflow: hidden; margin: 0 calc(-1 * clamp(17px, 2.8vw, 46px)) 22px; }
.rp-hero::after { content: ''; position: absolute; right: 15%; top: -195px; border-radius: 50%; width: 620px; height: 310px; background: rgba(255,255,255,.045); pointer-events: none; }
.rp-back { font-size: 13px; color: rgba(255,255,255,.88) !important; margin-bottom: 18px; display: inline-block; white-space: pre; }
.rp-heroin { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rp-heroname { min-width: 0; } .rp-hero h1 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 7px; letter-spacing: -1.2px; color: #fff; }
.rp-hero .rp-meta { color: rgba(255,255,255,.85); }
.rp-heroact { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }
.rp-hero .btn.primary { border-color: color-mix(in srgb, var(--accent) 60%, #fff); }
.rp-hero .btn:not(.primary):not(.danger) { background: rgba(255,255,255,.05); color: #fff; border-color: rgba(255,255,255,.35); }
.rp-hero .btn:not(.primary):not(.danger):hover { background: rgba(255,255,255,.14); }
.rp-hero .btn.danger { background: #fff; color: #b32d3d; }
.rp-details { overflow: hidden; }
.rp-dhead { display: flex; align-items: center; gap: 11px; padding: 20px 23px; border-bottom: 1px solid var(--rp-line); } .rp-dhead h2 { font-size: 20px; margin: 0; } .rp-dhead .rp-editsm { margin-left: auto; }
.drawer:not(.viewmode) .rp-dhead .rp-editsm { display: none; }
.rp-dcontent { padding: 4px 23px 23px; }
.rp-b .rp-fields .grid2 { gap: 0 24px; } .rp-b .rp-fields .grid3 { gap: 0 24px; }
@container (max-width: 680px) { .rp-heroact { width: 100%; margin-left: 0; } .rp-av.lg { width: 56px; height: 56px; font-size: 23px; } .rp-facts, .rp-a .rp-facts { grid-template-columns: 1fr; } .rp-b .rp-fields .grid2 { display: block; } }
.rp-new .rp-cols { grid-template-columns: minmax(0, 820px) !important; }
.rp-wpages { margin-top: 8px; border-top: 1px solid var(--line); } .rp-wpage { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .rp-wpage:last-child { border-bottom: 0; }
.rp-mini2 b .tiny { font-weight: 500; }
.rp .tabpane > .tabs > button:focus { outline: none; } .rp .tabpane > .tabs > button:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 50%, #fff); }
.rp-strip2 { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.rp-sline { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; background: var(--panel); border: 1px solid var(--rp-line); border-radius: 12px; padding: 10px 16px; font-size: 13px; box-shadow: var(--rp-shadow); }
.rp-sline > span { display: inline-flex; align-items: center; gap: 5px; } .rp-sline .ic { color: var(--rp-deep); } .rp-sline .over b { color: var(--danger); } .rp-sline .rp-sbtn { margin-left: 4px; }
.rp-pinned { display: flex; gap: 10px; align-items: flex-start; background: color-mix(in srgb, var(--warn) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); border-radius: 12px; padding: 10px 14px; } .rp-pinbody { white-space: pre-wrap; font-size: 13px; }
.rp-qacts { display: contents; }
.rp-k.tone-bad .rp-kv { color: var(--danger); } .rp-k.tone-warn .rp-kv { color: var(--warn); } .rp-k.tone-good .rp-kv { color: var(--ok); }
.rp-av { position: relative; overflow: hidden; } .rp-av img { position: absolute; inset: 18%; width: 64%; height: 64%; object-fit: contain; } .rp-av.has-img { color: transparent; background: #fff; }
.rp-qa { padding: 8px 0; border-top: 1px solid var(--line); } .rp-qa b { font-weight: 650; }
.rp-stages { display: flex; flex-wrap: wrap; gap: 8px; } .rp-stage { flex: 1 1 120px; border: 1px solid var(--rp-line); border-radius: 10px; padding: 8px 10px; background: var(--panel); } .rp-stage.now { border-color: var(--accent); background: var(--rp-soft); }
.rp-quick .btn { padding: 7px 12px; font-size: 13px; }
/* ---------- page builder widgets (the looks) ---------- */
.rp-facts.rp-wrow, .rp-a .rp-facts.rp-wrow { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.rp-w-big { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; } .rp-w-big .rp-kl { display: flex; align-items: center; gap: 5px; } .rp-w-big .rp-kl .ic { color: var(--rp-deep); }
.rp-bignum { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.rp-w-compact { min-height: 0; padding: 12px 15px; gap: 10px; } .rp-w-compact b { font-size: 16px; white-space: nowrap; } .rp-kic.sm { width: 30px; height: 30px; border-radius: 9px; }
.rp-w-prog { flex-direction: column; align-items: stretch; gap: 10px; } .rp-w-prog .row { gap: 12px; }
.rp-progbar { height: 9px; border-radius: 99px; background: var(--line); overflow: hidden; } .rp-progbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent)); }
.rp-w-chart { align-items: center; } .rp-w-chart svg { flex: none; }
.rp-hbars { display: flex; flex-direction: column; gap: 4px; min-width: 120px; flex: 1; } .rp-hbar { display: grid; grid-template-columns: minmax(40px, auto) 1fr auto; gap: 6px; align-items: center; font-size: 11px; }
.rp-hbar .b { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; } .rp-hbar .b i { display: block; height: 100%; border-radius: 99px; } .rp-hbar .l { color: var(--rp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.rp-hbars.big .rp-hbar { font-size: 13px; grid-template-columns: 140px 1fr 60px; } .rp-hbars.big .rp-hbar .b { height: 12px; }
.rp-donutwrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; } .rp-legend { display: grid; gap: 6px; font-size: 13px; } .rp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }
.rp-bigchart svg { display: block; } .rp-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--rp-muted); margin-top: 4px; }
.rp-block { margin-bottom: 16px; } .rp-block > h3 { font-size: 14px; margin: 0 0 10px; } .rp-text p { margin: 0 0 8px; line-height: 1.55; }
.rp-kvgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 20px; } .rp-kvgrid .fld .fv { display: block; font-weight: 650; }
/* ---------- the builder ---------- */
.pb-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.pb-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel); }
.pb-item.off { opacity: .55; } .pb-item.over { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); } .pb-item.dragging { opacity: .4; } .pb-item .grip { cursor: grab; color: var(--muted); }
.pb-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); flex: none; }
.pb-dialog { width: min(640px, 94vw); max-height: 86vh; overflow: auto; } .pb-dialog.wide { width: min(760px, 96vw); }
.pb-icons { display: flex; flex-wrap: wrap; gap: 4px; } .pb-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; } .pb-ic.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pb-prev.rp { padding: 8px 0; max-width: none; } .pb-prev .rp-facts { margin: 0; }
/* brand setup: how the brand gets its leads, then only what that needs */
.bmethods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; } @media (max-width: 640px) { .bmethods { grid-template-columns: 1fr; } }
.bmethod { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; color: var(--ink); }
.bmethod.on { border-color: var(--accent); background: var(--accent-soft); } .bmic { font-size: 22px; }
.card.bset { margin-bottom: 12px; } .card.bset h3 { margin: 0 0 8px; font-size: 15px; } .card.bset summary { cursor: pointer; }
.rp-ftdflags { display: contents; } .rp-sbtn.warn { border-color: var(--warn); color: var(--warn); } .rp-sbtn input { margin: 0 4px 0 0; }
