/* Customer Hub · Teleperformance × América Móvil · Powered by Voicing AI
   Enterprise, Apple-inspired: neutral surfaces, one restrained accent, colour only where it carries meaning. */
:root, [data-theme="light"] {
  --bg: #f5f5f7; --panel: #ffffff; --panel-2: #fafafa; --fill: #f0f0f2; --fill-2: #e5e5ea; --fill-3: #d1d1d6;
  --ink: #1d1d1f; --ink-2: #48484a; --ink-3: #86868b; --line: rgba(0,0,0,.09); --line-2: rgba(0,0,0,.055);
  --side: #fbfbfd; --top: rgba(245,245,247,.82);
  --accent: #0a5fc2; --accent-ink: #ffffff; --accent-soft: rgba(10,95,194,.09);
  --chart: #0a5fc2; --chart-soft: rgba(10,95,194,.12); --chart-2: #c7c7cc;
  --ok: #1f7a3a; --warn: #a05a00; --bad: #c42b1c; --live: #2fb350;
  --bubble: #2c2c2e; --bubble-ink: #ffffff;
  --r: 16px; --r-2: 12px;
  --shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(0,0,0,.03);
  --shadow-lift: 0 0 0 1px var(--line-2), 0 8px 28px rgba(0,0,0,.08);
  --ease: cubic-bezier(.25,.1,.25,1); --spring: cubic-bezier(.34,1.4,.64,1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0e0e10; --panel: #1c1c1e; --panel-2: #222224; --fill: #2a2a2d; --fill-2: #3a3a3c; --fill-3: #48484a;
  --ink: #f2f2f7; --ink-2: #c7c7cc; --ink-3: #8e8e93; --line: rgba(255,255,255,.10); --line-2: rgba(255,255,255,.06);
  --side: #151517; --top: rgba(14,14,16,.8);
  --accent: #0a84ff; --accent-ink: #ffffff; --accent-soft: rgba(10,132,255,.16);
  --chart: #5b9dff; --chart-soft: rgba(91,157,255,.16); --chart-2: #48484a;
  --ok: #3ccf6a; --warn: #f0a63a; --bad: #ff6b5f; --live: #34d158;
  --bubble: #3a3a3c; --bubble-ink: #f2f2f7;
  --shadow: 0 0 0 1px var(--line-2); --shadow-lift: 0 0 0 1px var(--line), 0 12px 32px rgba(0,0,0,.5);
  color-scheme: dark;
}
:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Helvetica Neue", system-ui, sans-serif;
  font-size: 14px; color: var(--ink); letter-spacing: -.003em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { transition: background .25s var(--ease); }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
i[data-ic], i.ic { display: inline-grid; font-style: normal; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ================================================================ shell */
.app { display: grid; grid-template-columns: 252px minmax(0,1fr); min-height: 100vh; transition: grid-template-columns .28s var(--ease); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px 14px; background: var(--side); border-right: 1px solid var(--line); z-index: 30; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 8px; }
.brand .tp { width: 26px; height: 29px; color: var(--ink); flex: none; }
.brand-sep { width: 1px; height: 24px; background: var(--line); flex: none; }
.brand .amx { height: 30px; width: auto; max-width: 140px; object-fit: contain; }
[data-theme="dark"] .brand .amx { filter: brightness(0) invert(.92); }
.product { margin: 18px 10px 6px; font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; height: 14px; }
.navlinks { display: grid; gap: 2px; }
.navlinks a { color: var(--ink-2); height: 38px; padding: 0 10px; border-radius: 10px; display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; position: relative; }
.navlinks a i { color: var(--ink-3); }
.navlinks a:hover { background: var(--fill); color: var(--ink); }
.navlinks a.on { background: var(--fill); color: var(--ink); font-weight: 600; }
.navlinks a.on i { color: var(--accent); }
.navlinks .count { margin-left: auto; font-style: normal; background: var(--ink); color: var(--panel); border-radius: 10px; font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; font-weight: 600; }
.navlinks .count:empty { display: none; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding: 12px 10px 2px; border-top: 1px solid var(--line-2); white-space: nowrap; }
.side-foot .status { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.powered { font-size: 12px; color: var(--ink-3); }
.powered b { color: var(--ink); font-weight: 600; }
/* collapsed rail (desktop only; phones use the drawer) */
@media (min-width: 901px) {
  html.nav-collapsed .app { grid-template-columns: 72px minmax(0,1fr); }
  html.nav-collapsed .brand { padding: 0; justify-content: center; }
  html.nav-collapsed .brand-sep, html.nav-collapsed .brand .amx, html.nav-collapsed .navlinks span,
  html.nav-collapsed .side-foot .status, html.nav-collapsed .powered span { display: none; }
  html.nav-collapsed .product { visibility: hidden; }
  html.nav-collapsed .navlinks a { justify-content: center; padding: 0; }
  html.nav-collapsed .navlinks .count { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  html.nav-collapsed .side-foot { padding: 12px 0 2px; text-align: center; }
  html.nav-collapsed .powered { font-size: 10px; white-space: normal; line-height: 1.2; }
}
.shell { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 28px 0 16px;
  background: var(--top); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line-2); }
.iconbtn { width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); transition: background .15s; flex: none; }
.iconbtn:hover { background: var(--fill); color: var(--ink); }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; min-width: 0; }
.crumb svg.i { width: 14px; height: 14px; color: var(--ink-3); }
.env { font-size: 12px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.livepill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.seg.theme button { padding: 4px 9px; display: grid; place-items: center; }
.seg.theme svg.i { width: 15px; height: 15px; }
.scrim { display: none; }
main { padding: 28px 32px 56px; min-width: 0; width: 100%; max-width: 1640px; }
header.top { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
header.top h1 { font-size: 28px; line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -.022em; }
header.top .sub { color: var(--ink-3); font-size: 14px; margin-top: 6px; max-width: 680px; line-height: 1.45; }
header.top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; }

/* ================================================================ controls */
.btn { border: 0; background: var(--fill); color: var(--ink); border-radius: 980px; height: 34px; padding: 0 16px; font-weight: 500; font-size: 13.5px;
  display: inline-flex; gap: 7px; align-items: center; transition: transform .12s var(--ease), background .15s, filter .15s; white-space: nowrap; }
.btn:hover { background: var(--fill-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; }
[data-theme="dark"] .btn.primary { color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.dark { background: var(--ink); color: var(--panel); }
.btn.ghost { background: transparent; color: var(--accent); padding: 0 6px; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.sm { height: 28px; padding: 0 12px; font-size: 12.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg.i { width: 15px; height: 15px; }
input.inp, select.inp, textarea.inp { border: 1px solid var(--line); border-radius: 10px; height: 34px; padding: 0 12px; background: var(--panel); width: 100%; transition: box-shadow .15s, border-color .15s; }
textarea.inp { height: auto; padding: 10px 12px; resize: vertical; }
input.inp:focus, select.inp:focus, textarea.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238e8e93' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.search { width: 320px; padding-left: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; }
.seg { display: inline-flex; background: var(--fill); border-radius: 9px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 13px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); transition: background .15s, box-shadow .15s, color .15s; white-space: nowrap; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.05); }
[data-theme="dark"] .seg button.on { background: var(--fill-3); }
.seg.scroll { max-width: 100%; overflow-x: auto; }
.check { width: 16px; height: 16px; accent-color: var(--accent); }

/* ================================================================ surfaces */
.card { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.card .h { min-height: 52px; padding: 14px 20px 10px; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.card .h .meta { margin-left: auto; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.card .b { padding: 2px 20px 20px; }
.grid { display: grid; gap: 18px; align-content: start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sp { flex: 1; }
.muted { color: var(--ink-3); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mono { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 0; }
.empty { padding: 36px 24px; text-align: center; color: var(--ink-3); line-height: 1.55; }
.empty svg.i { width: 26px; height: 26px; margin-bottom: 6px; opacity: .55; }

/* badges: neutral chips; meaning carried by a small dot */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; height: 22px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.badge.ok::before, .badge.warn::before, .badge.bad::before, .badge.info::before, .badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.ok::before { background: var(--ok); } .badge.warn::before { background: var(--warn); } .badge.bad::before { background: var(--bad); }
.badge.info::before { background: var(--accent); } .badge.live::before { background: var(--live); }
.badge.solid { background: var(--ink); color: var(--panel); }
.badge.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.badge svg.i { width: 12px; height: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--fill-3); flex: none; }
.dot.live { background: var(--live); animation: pulse 1.8s infinite; }
.dot.bad { background: var(--bad); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,179,80,.5); } 70% { box-shadow: 0 0 0 7px rgba(47,179,80,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,80,0); } }

/* ================================================================ KPI cards (reactive, each with a chart) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { position: relative; padding: 16px 18px 14px; border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .3s var(--spring), box-shadow .25s var(--ease); display: flex; flex-direction: column; min-height: 168px; }
.kpi.click { cursor: pointer; }
.kpi.click:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.kpi.active { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-lift); }
.kpi .top { display: flex; align-items: center; gap: 8px; }
.kpi .l { color: var(--ink-3); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .l svg.i { width: 15px; height: 15px; }
.kpi .delta { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--fill); border-radius: 999px; padding: 2px 8px; opacity: 0; transform: translateY(-3px); transition: opacity .25s, transform .25s; white-space: nowrap; }
.kpi.hold .delta { opacity: 1; transform: none; }
.kpi .vrow { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.kpi .v { font-size: 30px; font-weight: 600; letter-spacing: -.028em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.kpi .v.alert { color: var(--bad); }
.kpi .unit { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.kpi .s { font-size: 12px; color: var(--ink-3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .chart { margin-top: auto; padding-top: 12px; height: 62px; position: relative; }
.kpi .chart svg { width: 100%; height: 44px; display: block; overflow: visible; }
.kpi .chart .axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.kpi .chart path.line { fill: none; stroke: var(--chart); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.kpi .chart path.area { fill: url(#kgrad); }
.kpi .chart .base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.kpi .chart .enddot { position: absolute; right: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--panel); border: 2px solid var(--chart); transform: translate(50%, -50%); }
.kpi.hold .chart .enddot { animation: ping 1.1s var(--ease) 3; }
@keyframes ping { 50% { box-shadow: 0 0 0 5px var(--chart-soft); } }
.kpi .bars { display: flex; align-items: flex-end; gap: 6px; height: 44px; }
.kpi .bars .bc { flex: 1; display: flex; flex-direction: column; align-items: stretch; height: 100%; justify-content: flex-end; min-width: 0; }
.kpi .bars .bar { background: var(--chart-2); border-radius: 4px 4px 2px 2px; min-height: 3px; transition: height .7s var(--ease), background .3s; }
.kpi .bars .bar.hl { background: var(--chart); }
.kpi .bars + .axis span { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi .bars + .axis { gap: 6px; }
.kpi .ringwrap { display: flex; align-items: center; gap: 12px; height: 44px; }
.kpi .chart svg.ring { width: 44px; height: 44px; flex: none; }
.kpi .ring circle { fill: none; stroke-width: 5; }
.kpi .ring .track { stroke: var(--fill); }
.kpi .ring .val { stroke: var(--chart); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .9s var(--ease); }
.kpi .ringwrap .legend { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.kpi .ringwrap .legend b { color: var(--ink); font-weight: 600; }
.kpi .meter { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; display: flex; }
.kpi .meter span { height: 100%; background: var(--chart); transition: width .8s var(--ease); }
.kpi .meter span.b2 { background: var(--chart-2); }
.kpi.bump { animation: bump .6s var(--spring); }
.kpi::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1.5px var(--accent); opacity: 0; transition: opacity .8s; }
.kpi.hold::after { opacity: .45; transition: opacity .1s; }
@keyframes bump { 35% { transform: scale(1.015); } }

/* ================================================================ tables */
.tablewrap { overflow-x: auto; padding: 0 6px 6px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tr.click { transition: background .12s; }
tr.click:hover td { background: var(--panel-2); cursor: pointer; }

/* ================================================================ live calls */
.live-grid { display: grid; grid-template-columns: 330px minmax(0,1fr) 360px; gap: 18px; align-items: start; }
.calls { max-height: calc(100vh - 420px); min-height: 260px; overflow: auto; padding: 0 8px 8px; }
.callrow { padding: 11px 12px; border-radius: 11px; cursor: pointer; display: grid; gap: 6px; transition: background .12s; margin-bottom: 2px; position: relative; }
.callrow:hover { background: var(--fill); }
.callrow.sel { background: var(--accent-soft); }
.callrow .t { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; min-width: 0; }
.callrow .t .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.callrow .t .when { margin-left: auto; font-weight: 400; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.callrow .last { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.callrow.enter { animation: slidein .45s var(--ease); }
.callrow.ring { box-shadow: inset 3px 0 0 var(--accent); background: var(--accent-soft); }
.feed { max-height: calc(100vh - 420px); min-height: 260px; overflow: auto; padding: 2px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 76%; padding: 9px 13px; border-radius: 16px; line-height: 1.42; font-size: 14px; animation: slidein .3s var(--ease); }
.msg.bot { background: var(--fill); align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.customer { background: var(--bubble); color: var(--bubble-ink); align-self: flex-end; border-bottom-right-radius: 5px; }
.msg .who { font-size: 11px; font-weight: 600; opacity: .6; margin-bottom: 2px; }
.act { align-self: stretch; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); animation: slidein .35s var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.act .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--fill); color: var(--ink-2); }
.act .ic svg.i { width: 15px; height: 15px; }
.act.success .ic { color: var(--ok); } .act.warn .ic { color: var(--warn); } .act.danger .ic { color: var(--bad); } .act.handoff .ic { color: var(--accent); }
.act .txt { font-size: 13.5px; line-height: 1.38; }
.act .tool { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.act .tm { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.act details { grid-column: 2 / 4; } .act summary { font-size: 12px; color: var(--accent); cursor: pointer; list-style: none; }
.act summary::-webkit-details-marker { display: none; }
pre.json { background: var(--fill); color: var(--ink-2); padding: 12px; border-radius: 10px; font-size: 11px; overflow: auto; max-height: 260px; margin: 8px 0 0; }
.sysline { align-self: center; font-size: 12px; color: var(--ink-3); padding: 3px 12px; border-radius: 999px; background: var(--fill); animation: slidein .35s var(--ease); text-align: center; }

/* ================================================================ people */
.cust-head { display: flex; gap: 14px; align-items: center; padding: 18px 20px 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--fill-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 600; font-size: 16px; flex: none; letter-spacing: .02em; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.cust-head h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -.018em; }
.kv { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 9px 14px; font-size: 13.5px; }
.kv .k { color: var(--ink-3); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.c360 { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 18px; align-items: start; }
.linecard { border-radius: 12px; padding: 13px 14px; margin-bottom: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.linecard.note { box-shadow: inset 3px 0 0 var(--warn), inset 0 0 0 1px var(--line-2); }
.linecard .big { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); } 100% { box-shadow: var(--shadow); } }
.tabbar { padding: 14px 16px 6px; }

/* ================================================================ agent desktop */
.desk { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 18px; align-items: start; }
.desk-left { display: grid; gap: 18px; position: sticky; top: 74px; }
.desk-left .calls { max-height: 340px; min-height: 0; }
.ringing { display: inline-grid; color: var(--accent); animation: ring 1.2s infinite; }
.ringing svg.i { width: 15px; height: 15px; }
@keyframes ring { 0%,100% { transform: rotate(0); } 10% { transform: rotate(-14deg); } 20% { transform: rotate(14deg); } 30% { transform: rotate(-10deg); } 40% { transform: rotate(0); } }
.team { display: grid; gap: 4px; padding: 0 8px 10px; }
.team .mem { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.team .mem:hover { background: var(--fill); }
.team .mem .nm { font-weight: 600; font-size: 13.5px; }
.team .mem .q { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx { background: var(--panel-2); border-radius: 14px; padding: 18px 18px 16px; box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px var(--line-2); }
.ctx h4 { margin: 0 0 8px; font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; display: flex; align-items: center; gap: 6px; text-transform: uppercase; }
.ctx h4 svg.i { width: 14px; height: 14px; color: var(--accent); }
.ctx .summary { font-size: 17px; line-height: 1.45; font-weight: 500; letter-spacing: -.01em; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.facts > div { min-width: 0; }
.facts .k { font-size: 11.5px; color: var(--ink-3); }
.facts .v { font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; font-size: 13.5px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.steps li:last-child { border-bottom: 0; }
.steps li .ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--fill); color: var(--ink-2); }
.steps li .ico svg.i { width: 14px; height: 14px; }
.steps li .tm { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.howto { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; padding: 4px 20px 20px; }
.howto div { background: var(--panel-2); border-radius: 12px; padding: 14px; box-shadow: inset 0 0 0 1px var(--line-2); }
.howto b { display: block; margin: 8px 0 4px; font-size: 13.5px; }
.howto span { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.howto .n { width: 24px; height: 24px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }

/* ================================================================ campaigns */
.camps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 22px; }
.camp { padding: 16px 18px; cursor: pointer; transition: transform .25s var(--spring), box-shadow .2s; border: 0; text-align: left; background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); }
.camp:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.camp.on { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-lift); }
.camp .name { font-weight: 600; font-size: 15.5px; letter-spacing: -.012em; margin: 10px 0 12px; }
.camp .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.camp .stats div { display: grid; }
.camp .stats b { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.camp .stats span { font-size: 11.5px; color: var(--ink-3); }
.camp .progress { height: 5px; border-radius: 3px; background: var(--fill); margin-top: 14px; overflow: hidden; display: flex; }
.camp .progress span { height: 100%; transition: width .9s var(--ease); }
.edit { border-radius: 7px; padding: 2px 6px; margin: -2px -6px; transition: background .12s; }
.edit:hover { background: var(--fill); cursor: text; }
.banner { margin: 0 20px 12px; padding: 11px 14px; border-radius: 11px; background: var(--fill); color: var(--ink-2); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.banner svg.i { color: var(--warn); margin-top: 1px; width: 16px; height: 16px; }

/* ================================================================ settings */
.switch { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.switch:last-child { border-bottom: 0; }
.toggle { width: 46px; height: 28px; border-radius: 14px; background: var(--fill-3); position: relative; border: 0; flex: none; transition: background .2s var(--ease); }
.toggle::after { content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: left .22s var(--spring); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.toggle.on { background: var(--ok); } .toggle.on::after { left: 20px; }
code.u { background: var(--fill); padding: 3px 8px; border-radius: 6px; font-size: 12px; word-break: break-all; font-family: "SF Mono", ui-monospace, Menlo, monospace; }
.phone { width: 290px; border-radius: 42px; background: var(--fill); padding: 46px 12px 20px; min-height: 470px; position: relative; box-shadow: inset 0 0 0 9px var(--ink); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 86px; height: 22px; border-radius: 12px; background: var(--ink); }
.phone .inner { padding: 0 6px; }
.sms { background: var(--panel); border-radius: 14px; padding: 9px 12px; margin-bottom: 8px; font-size: 13px; line-height: 1.4; box-shadow: var(--shadow); animation: slidein .3s var(--ease); }
.sms .meta { font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }

/* ================================================================ toasts & sheet */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 60; }
.toast { background: color-mix(in srgb, var(--panel) 86%, transparent); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  color: var(--ink); border-radius: 14px; padding: 12px 14px; width: 360px; box-shadow: var(--shadow-lift); animation: drop .4s var(--spring); cursor: pointer;
  display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; }
.toast .ti { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--fill); color: var(--ink-2); }
.toast.ho .ti { color: var(--accent); } .toast.danger .ti { color: var(--bad); } .toast.ok .ti { color: var(--ok); }
.toast b { display: block; font-size: 13.5px; font-weight: 600; } .toast .small { color: var(--ink-2); }
.toast.out { animation: lift .28s var(--ease) forwards; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lift { to { opacity: 0; transform: translateY(-8px) scale(.98); } }
.sheet-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.32); display: grid; place-items: center; z-index: 70; animation: fade .18s; }
.sheet-wrap[hidden] { display: none; }
.sheet { background: var(--panel); border-radius: 18px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.35); padding: 22px; animation: rise .3s var(--spring); }
.sheet h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.sheet .hint { color: var(--ink-3); font-size: 13px; margin-bottom: 16px; line-height: 1.45; }
.sheet label { display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; margin-bottom: 14px; }
.sheet .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ================================================================ responsive */
@media (max-width: 1380px) { .live-grid { grid-template-columns: 300px minmax(0,1fr); } .live-grid > :nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 1100px) {
  .c360, .desk, .two { grid-template-columns: minmax(0,1fr); }
  .desk-left { position: static; grid-template-columns: 1fr 1fr; }
  .howto { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0,1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .28s var(--ease); box-shadow: 0 0 40px rgba(0,0,0,.2); }
  html.nav-open .side { transform: none; }
  html.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 25; animation: fade .2s; }
  .env { display: none; }
  .topbar { padding: 0 14px 0 10px; }
  main { padding: 20px 16px 40px; }
  header.top h1 { font-size: 24px; }
  header.top .right { width: 100%; margin-left: 0; }
  header.top .right > select, header.top .right > input { flex: 1 1 100%; min-width: 0; width: 100% !important; }
  .live-grid { grid-template-columns: minmax(0,1fr); }
  .desk-left { grid-template-columns: minmax(0,1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .kv { grid-template-columns: 100px minmax(0,1fr); }
  .camp .stats { grid-template-columns: repeat(2, 1fr); }
  .card .h { flex-wrap: wrap; }
  .search { width: 100%; }
  .toast-wrap { left: 16px; right: 16px; }
  .toast { width: auto; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: minmax(0,1fr); }
  .livepill { display: none; }
  .crumb .muted, .crumb svg.i { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ================================================================ fixed frame: sidebar, top bar and status bar stay put;
   each page pins its title and KPI row, and only the working panes scroll */
html, body { height: 100%; overflow: hidden; }
.app { height: 100vh; height: 100dvh; min-height: 0; }
.side { height: 100vh; height: 100dvh; }
.shell { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.topbar { flex: none; }
main#view { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 20px 28px 16px; max-width: none; }
.statusbar { flex: none; height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 20px; border-top: 1px solid var(--line-2); background: var(--side); font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; z-index: 20; }
.statusbar .sb-item { display: inline-flex; align-items: center; gap: 6px; }
.statusbar b { color: var(--ink); font-weight: 600; }
.page { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 1640px; margin: 0 auto; }
.page > header.top { flex: none; margin-bottom: 16px; }
.page > .kpis, .page > .camps { flex: none; margin-bottom: 16px; }
header.top h1 { font-size: 26px; }
.fill { flex: 1; min-height: 0; }
.col { display: flex; flex-direction: column; min-height: 0; }
.col > .h, .col > .tabbar, .col > .banner { flex: none; }
.scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.pane { min-height: 0; overflow: auto; overscroll-behavior: contain; border-radius: var(--r); }
.live-grid.fill, .desk.fill, .c360.fill, .two.fill { align-items: stretch; }
.live-grid.fill > *, .desk.fill > *, .c360.fill > *, .two.fill > * { min-height: 0; }
.calls, .feed, .desk-left .calls { max-height: none; min-height: 0; }
.desk-left { position: static; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.desk-left > .col.grow { flex: 1 1 auto; min-height: 140px; }
.desk-left > .col.side2 { flex: 0 1 auto; max-height: 46%; }
.scroll thead th, .pane thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
.kpi { min-height: 148px; }
.kpi .chart { padding-top: 10px; height: 58px; }
.live-grid, .desk, .c360, .two { gap: 16px; }
@media (min-width: 1101px) and (max-width: 1380px) {
  .live-grid.fill { grid-template-columns: 270px minmax(0,1fr) 300px; }
  .live-grid.fill > :nth-child(3) { grid-column: auto; }
}

/* role switch */
.seg.role button { display: inline-flex; align-items: center; gap: 6px; }
.seg.role svg.i { width: 14px; height: 14px; }
.persona { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 4px 2px; }
.persona .nm { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.persona .rl { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nav-collapsed .persona { grid-template-columns: 34px; justify-content: center; }
@media (min-width: 901px) { html.nav-collapsed .persona > div:last-child { display: none; } }
.team .mem .badge.click { cursor: pointer; }
.team .mem .badge.click:hover { box-shadow: inset 0 0 0 1px var(--line); }
.assign { display: flex; gap: 8px; align-items: center; }
.assign select { width: auto; min-width: 190px; }

/* smaller or shorter screens: the page scrolls inside the frame, top bar and status bar stay fixed */
@media (max-width: 1100px), (max-height: 700px) {
  main#view { overflow: auto; display: block; padding-bottom: 24px; }
  .page { display: block; }
  .fill, .scroll, .pane { flex: none; min-height: 0; overflow: visible; }
  .col { display: block; }
  .calls, .feed { max-height: 460px; overflow: auto; }
  .desk-left > .col.side2 { max-height: none; }
  .scroll thead th, .pane thead th { position: static; }
}
@media (max-width: 900px) {
  .seg.role span { display: none; }
  .statusbar .hide-sm { display: none; }
}

/* campaigns: campaign list on the left, contacts fill the right */
.campwrap { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 16px; align-items: stretch; }
.campwrap > * { min-height: 0; }
.campwrap .camps { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 2px; }
.campwrap .camp { padding: 14px 16px; flex: none; }
.campwrap .camp .name { font-size: 14.5px; margin: 8px 0 10px; }
.campwrap .camp .stats b { font-size: 17px; }
@media (max-width: 1100px), (max-height: 700px) {
  .campwrap { grid-template-columns: minmax(0,1fr); }
  .campwrap .camps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ---------------- sign-in (login only; the rest of the UI is unchanged) */
.role-locked #role { display: none; }
.signed-out .app { visibility: hidden; }
#login { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg, #f5f6f8); padding: 16px; }
.login-card { width: 100%; max-width: 360px; background: var(--panel, #fff); border: 1px solid var(--line, #e3e6eb); border-radius: 10px; padding: 28px 24px; display: grid; gap: 12px; }
.login-brand .brand { justify-content: center; margin: 0 0 4px; padding: 0; border: 0; }
.login-title { font-size: 18px; font-weight: 600; text-align: center; }
.login-sub { font-size: 13px; color: var(--muted, #6b7280); text-align: center; margin-top: -6px; }
.login-card label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted, #6b7280); }
.login-card input { font: inherit; font-size: 14px; padding: 9px 10px; border: 1px solid var(--line, #d1d5db); border-radius: 6px; background: var(--panel, #fff); color: var(--text, #111); }
.login-card input:focus { outline: 2px solid var(--accent, #0a5fc2); outline-offset: -1px; }
.login-card .btn { justify-content: center; padding: 10px; }
.login-err { min-height: 16px; font-size: 12px; color: var(--bad, #c53030); }
.topbar .who { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.topbar .who-mail { font-size: 12px; color: var(--muted, #6b7280); }
@media (max-width: 700px) { .topbar .who-mail { display: none; } }
#login .brand .amx, #login .brand .brand-sep { display: inline-block !important; }
#login .brand { display: flex !important; align-items: center; gap: 12px; }

/* ---------------- sidebar actions: collapse + sign out */
.side-actions { display: grid; gap: 2px; padding: 8px 10px 10px; border-top: 1px solid var(--line-2); }
.side-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.side-btn:hover { background: var(--hover, rgba(0,0,0,.05)); color: var(--ink); }
.side-btn svg { width: 18px; height: 18px; flex: none; }
#logout:hover { color: var(--bad); }
html.nav-collapsed #collapse svg { transform: rotate(180deg); }
@media (min-width: 901px) {
  #navtoggle { display: none; }
  html.nav-collapsed .side-actions { padding: 8px 0 10px; }
  html.nav-collapsed .side-btn { justify-content: center; padding: 0; }
  html.nav-collapsed .side-btn span { display: none; }
}
@media (max-width: 900px) { #collapse { display: none; } }

/* ---------------- transfers page */
.ttable td { vertical-align: top; }
.ttable td.why { max-width: 520px; color: var(--ink-2); }
.ttable .nowrap { white-space: nowrap; }

/* ---------------- no coloured accent bars on boxes */
.linecard.note { box-shadow: inset 0 0 0 1px var(--line-2); }
.ctx { box-shadow: inset 0 0 0 1px var(--line-2); }
.callrow.ring { box-shadow: none; }
/* ---------------- live calls: transcript full width */
.live-grid.wide { grid-template-columns: minmax(0, 1fr) !important; }
.live-grid.wide > :first-child, .live-grid.wide > #pop { display: none !important; }
.live-grid.wide .feed .msg { max-width: 72%; }

/* ---------------- live calls: centred idle states with a soft pulse */
.live-grid .empty { height: 100%; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--ink-3); }
.live-grid .empty > svg.i { width: 26px; height: 26px; padding: 14px; box-sizing: content-box; border-radius: 50%; color: var(--accent); background: var(--accent-soft, rgba(10,95,194,.08)); animation: idlepulse 2.4s ease-out infinite; }
.live-grid .empty br { display: none; }
#pop > .card { height: 100%; } #pop > .card > .b { height: 100%; }
@keyframes idlepulse {
  0% { box-shadow: 0 0 0 0 rgba(10,95,194,.28); transform: scale(1); }
  50% { transform: scale(1.04); }
  70% { box-shadow: 0 0 0 16px rgba(10,95,194,0); }
  100% { box-shadow: 0 0 0 0 rgba(10,95,194,0); transform: scale(1); }
}

/* ---------------- campaigns: tabs + one clean table */
.ctabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; flex: none; }
.ctab { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line, var(--fill-3)); background: var(--panel); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.ctab:hover { border-color: var(--ink-3); }
.ctab.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.ctab .k { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.ctab.on .k { color: var(--accent); }
.ctab .o { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.ctab .n { font-size: 12.5px; color: var(--ink-3); }
.ctable td { vertical-align: middle; }
.ctable tr.dim td { opacity: .55; }
.ctable .who { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.ctable .dialnum { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: inherit; font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; white-space: nowrap; }
.ctable .dialnum svg.i { width: 13px; height: 13px; opacity: .45; color: var(--ink-3); transition: opacity .15s; }
.ctable tr:hover .dialnum svg.i { opacity: 1; }
.btn.sm svg.i { width: 13px; height: 13px; }

.ctable { height: auto !important; }
.ctable tbody tr { height: auto; }
.card .tablewrap:has(.ctable) { flex: 1; align-content: start; }

.ctable .dialnum:hover { color: var(--accent); }

/* ---------------- outbound calls */
.ofilters { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex: none; flex-wrap: wrap; }
.otag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; background: var(--fill); color: var(--ink-2); font-family: inherit; }
.otag.won { background: color-mix(in srgb, #1f9d55 16%, transparent); color: #1f9d55; }
.otag.warm { background: color-mix(in srgb, #d98a10 16%, transparent); color: #c27a0a; }
.otag.lost { background: color-mix(in srgb, #d64545 14%, transparent); color: #d64545; }
.otag.other { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.otag.pick { cursor: pointer; background: transparent; border-color: var(--line, var(--fill-3)); color: var(--ink-2); }
.otag.pick:hover { border-color: var(--ink-3); }
.otag.pick.on.won { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.otag.pick.on.warm { background: #d98a10; border-color: #d98a10; color: #fff; }
.otag.pick.on.lost { background: #d64545; border-color: #d64545; color: #fff; }
.otag.pick.on.no_contact, .otag.pick.on.other { background: var(--ink-2); border-color: var(--ink-2); color: var(--panel); }
.otable tr.sel td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.otable tr.odrow > td { padding: 0; }
.odetail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 18px 20px 20px; border-bottom: 1px solid var(--line, var(--fill-3)); background: color-mix(in srgb, var(--accent) 3%, transparent); }
.odetail .olbl { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 0 0 8px; }
.odetail .ocol > .olbl:not(:first-child) { margin-top: 16px; }
.odetail .osum { line-height: 1.5; }
.odetail .oups { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.odetail .ogrp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.odetail .ogrp .gl { width: 78px; font-size: 12px; color: var(--ink-3); }
.odetail textarea.inp { width: 100%; margin-top: 6px; resize: vertical; }
.odetail .ofollow { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.odetail .ofollow .inp { width: auto; }
@media (max-width: 900px) { .odetail { grid-template-columns: minmax(0, 1fr); } }

.odetail .oquote { font-style: italic; color: var(--ink-2); margin-bottom: 10px; line-height: 1.5; }
