:root {
  --bg: #f3f5f8;
  --panel: #fff;
  --ink: #17202b;
  --muted: #677385;
  --line: #e2e6ec;
  --side: #0e1a2b;
  --side-ink: #b8c3d3;
  --accent: #0a7cd6;
  --accent-2: #e8f3fc;
  --green: #18a058;
  --red: #d43c3c;
  --amber: #d88a00;
  --purple: #7a5af8;
  --radius: 10px;
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
h2 { font-size: 15px; margin: 0 0 12px; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 8px; }

/* brand */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: #fff; padding: 18px 18px 14px; letter-spacing: -.01em; }
.brand.big { color: var(--ink); font-size: 22px; padding: 0 0 6px; justify-content: center; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M10 8h4l2 5-2.5 1.5a11 11 0 0 0 4 4L19 16l5 2v4a2 2 0 0 1-2 2A14 14 0 0 1 8 10a2 2 0 0 1 2-2' fill='white'/%3E%3C/svg%3E") center/80% no-repeat; flex: none; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, #0e1a2b, #123a63); }
.login-card { background: #fff; padding: 32px; border-radius: 14px; width: 360px; display: grid; gap: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.3); text-align: center; }
.login-card label { text-align: left; }

/* shell */
.shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 100vh; }
.shell.has-sub { grid-template-columns: 210px 200px minmax(0, 1fr); }
nav a .chev { margin-left: auto; opacity: .55; font-size: 16px; }
.subnav { background: #fff; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 1px; }
.subnav .sub-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; padding: 6px 10px 10px; }
.subnav a { padding: 8px 10px; border-radius: 7px; color: var(--ink); }
.subnav a:hover { background: #f2f5f9; }
.subnav a.active { background: var(--accent-2); color: #075d9f; font-weight: 600; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
nav { display: flex; flex-direction: column; padding: 4px 10px; gap: 1px; flex: 1; }
nav .group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6c7b91; padding: 10px 10px 4px; }
nav a { color: var(--side-ink); padding: 9px 12px; border-radius: 8px; display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
nav a.active { background: var(--accent); color: #fff; }
nav a .ico { width: 18px; text-align: center; opacity: .9; }
.side-foot { padding: 12px 10px 18px; display: grid; gap: 2px; border-top: 1px solid rgba(255,255,255,.07); }
.side-link { background: none; border: 0; color: var(--side-ink); text-align: left; padding: 8px 10px; font: inherit; cursor: pointer; border-radius: 7px; }
.side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.main { min-width: 0; }
.top { height: 60px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 24px; gap: 14px; position: sticky; top: 0; z-index: 5; }
.top h1 { font-size: 18px; margin: 0; font-weight: 650; }
.top-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.hamburger { display: none; border: 0; background: none; font-size: 20px; cursor: pointer; }
.view { padding: 22px 24px 60px; max-width: 1400px; }
.apply { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.apply::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.apply.warn::before { background: var(--amber); }
.apply.bad::before { background: var(--red); }

/* panels, toolbars */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.grid > .panel + .panel { margin-top: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* stat cards */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-size: 30px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.stat .s { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* buttons + inputs */
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; font: inherit; cursor: pointer; font-weight: 550; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { border-color: #c5cdd8; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #0869b6; }
.btn.danger { color: var(--red); }
.btn.danger.solid { background: var(--red); color: #fff; border-color: var(--red); }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btn.wide { width: 100%; justify-content: center; padding: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid #d3d9e2; border-radius: 8px; padding: 8px 10px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(10,124,214,.25); border-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: auto; margin: 0; }
label { display: grid; gap: 5px; font-weight: 550; font-size: 13px; }
label .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.search { max-width: 280px; }
.error { color: var(--red); font-size: 13px; min-height: 1em; }

/* forms */
.form { display: grid; gap: 16px; }
.form-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.form-section > h2 { margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.fields .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.inline { display: flex; gap: 8px; align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-list { border: 1px solid #d3d9e2; border-radius: 8px; max-height: 240px; overflow-y: auto; }
.pick-list .row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-weight: 450; }
.pick-list .row:last-child { border-bottom: 0; }
.pick-list .row:hover { background: #f8fafc; }
.pick-list .row .ord { margin-left: auto; display: flex; gap: 4px; }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.key { border: 1px solid var(--line); border-radius: 9px; padding: 10px; display: grid; gap: 6px; background: #fbfcfd; }
.key b { font-size: 18px; }
.creds { background: #f7f9fc; border: 1px dashed #c9d3e0; border-radius: 9px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.creds dt { color: var(--muted); }
.creds dd { margin: 0; }

/* tables */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: #fafbfc; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: #f7fafd; }
td.wrap { white-space: normal; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* badges + presence */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef1f5; color: #415067; }
.badge.green { background: #e3f6ec; color: #0f7a41; }
.badge.red { background: #fde8e8; color: #b22b2b; }
.badge.amber { background: #fff3d6; color: #9a6200; }
.badge.blue { background: var(--accent-2); color: #075d9f; }
.badge.purple { background: #efeaff; color: #5b3fd6; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #b5bfcc; flex: none; }
.dot.idle { background: var(--green); }
.dot.busy, .dot.hold { background: var(--red); }
.dot.ringing { background: var(--amber); animation: pulse 1s infinite; }
.dot.offline, .dot.unknown { background: #b5bfcc; }
.dot.paused { background: var(--purple); }
.dot.away { background: var(--amber); }
.dot.dnd { background: var(--red); box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 3.5px #fff; }
@keyframes pulse { 50% { opacity: .35; } }
.presence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.presence { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: #fff; }
.presence .n { font-weight: 650; }
.presence .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* office hours */
.hours-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.range { display: inline-flex; gap: 6px; align-items: center; margin: 2px 10px 2px 0; }
.range input { width: 110px; }

/* wallboard */
.wall { background: #0b1624; color: #e6edf6; border-radius: 14px; padding: 20px; }
.wall.full { position: fixed; inset: 0; z-index: 50; border-radius: 0; overflow: auto; }
.wall h2 { color: #fff; font-size: 22px; }
.wall-q { background: #12243a; border-radius: 12px; padding: 18px; }
.wall-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 12px 0 16px; }
.wall-stat { background: #0e1d30; border-radius: 10px; padding: 12px; }
.wall-stat .k { font-size: 11px; color: #8aa0bb; text-transform: uppercase; letter-spacing: .06em; }
.wall-stat .v { font-size: 34px; font-weight: 750; margin-top: 4px; }
.wall-stat.alert .v { color: #ff8a8a; }
.wall-agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.wall-agent { background: #0e1d30; border-radius: 9px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
.wall-agent small { color: #8aa0bb; display: block; }

/* toasts + modal */
.toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 8px; z-index: 100; }
.toast { background: #17202b; color: #fff; padding: 11px 16px; border-radius: 9px; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: 420px; }
.toast.err { background: var(--red); }
.modal { position: fixed; inset: 0; background: rgba(14,26,43,.5); display: grid; place-items: center; z-index: 90; }
.modal-card { background: #fff; border-radius: 12px; padding: 22px; width: min(480px, 92vw); display: grid; gap: 14px; }

audio { height: 32px; max-width: 260px; }

@media (max-width: 1000px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .wall-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell, .shell.has-sub { grid-template-columns: 1fr; }
  .subnav { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .subnav .sub-title { display: none; }
  .subnav a { white-space: nowrap; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .hamburger { display: block; }
  .fields { grid-template-columns: 1fr; }
  .view { padding: 16px; }
}

/* ---- added for reports / system screens ---- */
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg { display: inline-flex; border: 1px solid #d3d9e2; border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 7px 12px; font: inherit; cursor: pointer; color: var(--ink); }
.seg button + button { border-left: 1px solid #d3d9e2; }
.seg button.on { background: var(--accent-2); color: #075d9f; font-weight: 600; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-right: 10px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; overflow: visible; }
.chart-wrap .ax { font-size: 11px; fill: var(--muted); }
.chart-wrap .hit { cursor: default; }
.tip { position: absolute; top: 0; width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(14,26,43,.14); padding: 8px 10px; font-size: 12.5px; display: grid; gap: 3px; pointer-events: none; z-index: 3; }
.meter { display: inline-block; width: 70px; height: 6px; border-radius: 99px; background: #eef1f5; vertical-align: middle; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.meter.big { width: 100%; margin-top: 8px; }
.logs { background: #0e1a2b; color: #cfd8e6; border-radius: 9px; padding: 12px 14px; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-height: 420px; overflow: auto; margin: 0; white-space: pre-wrap; word-break: break-all; }
.logs .warn { color: #ffb4a8; }
textarea { resize: vertical; }
@media (max-width: 1000px) { .cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.me { display: flex; gap: 10px; align-items: center; padding: 8px 10px 10px; color: #fff; }
.me .av { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.me small { display: block; color: var(--side-ink); font-size: 11.5px; }
.demo-accounts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.demo-accounts button { border: 1px solid var(--line); background: #f7f9fc; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.demo-accounts button:hover { border-color: var(--accent); color: var(--accent); }
.perm-group { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.perm-group + .perm-group { margin-top: 12px; }
.perm-group > div:first-child { background: #fafbfc; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.perm-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 400; }
.perm-row:last-child { border-bottom: 0; }
.perm-row b { font-weight: 600; }
.perm-row input { margin-top: 3px; }
.role-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.role-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; cursor: pointer; color: inherit; }
.role-card:hover { border-color: #b9c7d8; }
.role-card p { margin: 0; color: var(--muted); font-size: 13px; }
.sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.sys-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); min-height: 44px; }
.sys-row .lab { color: var(--muted); }
.sys-row .val { margin-left: auto; text-align: right; display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sys-row a { cursor: pointer; }
.alert-row { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid #f3c56b; background: #fffaf0; border-radius: var(--radius); margin-bottom: 12px; }
.alert-row a { margin-left: auto; white-space: nowrap; }
.panel > h2 .ico { color: var(--muted); margin-right: 6px; }
@media (max-width: 1000px) { .sys-grid { grid-template-columns: 1fr; } }

/* edit pages: header + tabs */
.edit-page { gap: 0; }
.edit-head { display: flex; align-items: center; gap: 12px; position: sticky; top: 60px; z-index: 4; background: var(--bg); padding: 4px 0 12px; }
.edit-head h2 { margin: 0; font-size: 18px; font-weight: 650; }
.edit-head .back { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--ink); font-size: 18px; border: 1px solid var(--line); background: #fff; }
.edit-head .back:hover { border-color: #b9c7d8; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.edit-page > .error:not(:empty) { margin-bottom: 12px; padding: 10px 14px; background: #fdecec; border: 1px solid #f5c2c2; border-radius: 8px; }
/* call forwarding: statuses down the left, rules on the right */
.fwd { display: grid; grid-template-columns: 190px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.fwd-list { background: #f7f9fc; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.fwd-list button { border: 0; background: none; text-align: left; padding: 13px 16px; font: inherit; cursor: pointer; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; color: var(--ink); }
.fwd-list button.on { background: #fff; font-weight: 650; box-shadow: inset 3px 0 0 var(--accent); margin-right: -1px; }
.fwd-pane { padding: 18px 20px; display: grid; gap: 14px; }
.fwd-pane h4 { margin: 6px 0 0; font-size: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.fwd-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.inline-num { display: inline-flex; align-items: center; border: 1px solid #d3d9e2; border-radius: 8px; overflow: hidden; }
.inline-num input { border: 0; width: 80px; border-radius: 0; }
.inline-num span { padding: 0 10px; background: #f3f5f8; align-self: stretch; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .fwd { grid-template-columns: 1fr; } .fwd-list { flex-direction: row; overflow-x: auto; } .fwd-row { grid-template-columns: 1fr; } }
/* phones list */
.sq { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sq.ok { background: var(--green); } .sq.bad { background: var(--red); }
.kebab { position: relative; }
.kebab-menu { position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(14,26,43,.16); min-width: 170px; padding: 4px; z-index: 10; display: grid; }
.kebab-menu button, .kebab-menu a { border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 7px; font: inherit; cursor: pointer; color: var(--ink); }
.kebab-menu button:hover, .kebab-menu a:hover { background: #f2f5f9; }
.filter-chip { border: 1px solid #9cc8ee; background: var(--accent-2); color: #075d9f; border-radius: 99px; padding: 4px 4px 4px 10px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.filter-chip select { border: 0; background: transparent; padding: 2px 4px; color: inherit; font-weight: 600; width: auto; font-size: 12.5px; }
.mem-sec + .mem-sec { margin-top: 22px; }
.mem-sec h3 { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }

/* member lists */
.mlist { display: grid; gap: 10px; }
.mrows { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.mrow:last-child { border-bottom: 0; }
.mrow:hover { background: #fafbfd; }
.mrow .grip { cursor: grab; color: #a5b1c2; letter-spacing: -2px; user-select: none; }
.mrow .pos { width: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mrow.dragging { opacity: .45; }
.mrow .btn.sm { padding: 3px 8px; }
.mempty { padding: 16px; text-align: center; }
.mpicker { border: 1px solid #9cc8ee; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(14,26,43,.12); overflow: hidden; }
.mpicker input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 12px; }
.mopts { max-height: 260px; overflow-y: auto; }
.mopts button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: #fff; padding: 9px 12px; font: inherit; text-align: left; cursor: pointer; }
.mopts button small { margin-left: auto; color: var(--muted); }
.mopts button:hover, .mopts button.sel { background: var(--accent-2); }

/* IVR */
.prompt-row { display: flex; align-items: center; gap: 6px; border: 1px solid #d3d9e2; border-radius: 8px; padding: 6px 6px 6px 12px; margin-top: 6px; background: #fff; }
.prompt-now { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.prompt-row .btn.sm { width: 34px; height: 32px; justify-content: center; padding: 0; }
.ivr-menu td { padding: 7px 14px; }
.ivr-menu select, .ivr-menu input { max-width: 340px; }
.keycap { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; border: 1px solid #c9d3e0; background: #f7f9fc; font-weight: 700; box-shadow: 0 2px 0 #d9e1ec; }
.recbar { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 12px; border: 1px solid #f5c2c2; background: #fff6f6; border-radius: 8px; }
.recdot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pulse 1s infinite; }

/* mobile app + QR */
.mobile-app { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; justify-items: center; }
.qr svg { width: 176px; height: 176px; display: block; }
.steps { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 760px) { .mobile-app { grid-template-columns: 1fr; } }

/* searchable dropdowns (js/combo.js) */
.combo { position: relative; display: block; width: 100%; min-width: 0; }
.toolbar .combo, .inline .combo, .filter-chip .combo { display: inline-block; width: auto; }
.combo-native { position: absolute !important; inset: 0; opacity: 0; pointer-events: none; width: 100%; height: 100%; }
.combo-btn { font: inherit; color: inherit; text-align: left; width: 100%; border: 1px solid #d3d9e2; border-radius: 8px; padding: 8px 30px 8px 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23677385' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 37px; }
.combo-btn:focus { outline: 2px solid rgba(10,124,214,.25); border-color: var(--accent); }
.combo-btn:disabled { background-color: #f3f5f8; color: var(--muted); cursor: default; }
.filter-chip .combo-btn { border: 0; background-color: transparent; padding: 2px 22px 2px 4px; font-weight: 600; font-size: 12.5px; min-height: 0; background-position: right 6px center; }
.combo-panel { position: fixed; z-index: 1000; background: #fff; border: 1px solid #cfd7e2; border-radius: 9px; box-shadow: 0 10px 30px rgba(15,30,50,.18); display: flex; flex-direction: column; overflow: hidden; max-width: min(520px, 94vw); }
.combo-q { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 9px 11px; outline: none !important; }
.combo-list { overflow-y: auto; padding: 4px 0; }
.combo-opt { padding: 7px 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-opt.hi { background: var(--accent-2); }
.combo-opt.cur { font-weight: 650; color: var(--accent); }
.combo-opt.dis { color: #a5b1c2; cursor: default; }
.combo-grp { padding: 8px 12px 3px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.combo-none { padding: 10px 12px; color: var(--muted); }

/* call history: one band per call, one row per leg */
.cdr th, .cdr td { vertical-align: top; }
.cdr tbody.c-odd td { background: #f6f8fb; }
.cdr tbody.c-even td { background: #fff; }
.cdr tbody td { border-top: 0; }
.cdr tbody tr:first-child td { border-top: 1px solid #dde3eb; }
.cdr tbody:hover td { background: #edf5fd; }
.cdr .cid { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--muted); }
.cdr tr:first-child .cid { color: var(--ink); font-weight: 650; }
.cdr .leg-n { display: inline-block; min-width: 16px; font-size: 11px; color: var(--muted); }
.cdr .detail { color: #3b4757; min-width: 280px; white-space: normal; }
.cdr .detail b { font-weight: 600; color: var(--ink); }
.cdr .acts { white-space: nowrap; text-align: right; }
.cdr .acts .btn { padding: 3px 7px; }
.cdr .sum { font-size: 12px; color: var(--muted); }
.nowrap { white-space: nowrap; }
.pp-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.pp-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #eef1f5; cursor: pointer; font-weight: 400; }
.pp-row:last-child { border-bottom: 0; }
.pp-row:hover { background: #f6f9fc; }
.next-run { background: #f3f8fd; border-radius: 8px; padding: 8px 12px; font-size: 13px; }
#modalCard:has(#pform) { width: min(640px, 94vw); }
label { align-content: start; }
.cdr th, .cdr td { padding: 7px 10px; font-size: 13px; }
.cdr td { white-space: normal; }
.cdr td.mono, .cdr td.cid, .cdr td.nowrap, .cdr td.acts { white-space: nowrap; }
.cdr .detail { min-width: 260px; }
.cdr th:nth-child(7), .cdr th:nth-child(8) { width: 1%; }
span.nowrap { white-space: nowrap; }
.cdr tbody.c-odd td { background: #eef3f9; }
.cdr tbody tr:first-child td { border-top: 2px solid #d3dce8; }
.cdr tbody:hover td { background: #e3eefb; }
.dir-tag { display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: #e6ebf1; color: #4a5668; }
.dir-tag.inbound { background: #e3effb; color: #1d5fa8; }
.dir-tag.outbound { background: #fcebe1; color: #a8481c; }
.dir-tag.internal { background: #e0f4ec; color: #157a55; }
.cdr .detail-row { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.cdr .detail-row .acts { display: inline-flex; gap: 4px; flex: none; }
.cdr .detail-row audio { height: 30px; }
/* user → phones & credentials: one phone at a time */
.phone-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; background: #fbfcfe; }
.phone-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phone-head .btn { margin-left: 2px; }
.phone-facts { display: grid; grid-template-columns: repeat(4, auto 1fr); gap: 6px 12px; margin: 12px 0 6px; font-size: 13px; }
.phone-facts dt { color: var(--muted); }
.phone-facts dd { margin: 0; }
.phone-settings { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.ps-group { border: 0; padding: 0; margin: 0 0 14px; }
.ps-group legend { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; }
.ps-group .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ps-label { display: flex; gap: 8px; align-items: baseline; }
.ps-reset { font-size: 11.5px; font-weight: 500; }
label.ps-set .ps-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); align-self: center; }
@media (max-width: 1100px) { .ps-group .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phone-facts { grid-template-columns: auto 1fr auto 1fr; } }
.sq.warn { background: var(--amber); }
/* user → Options tab */
.user-opts section { border-top: 1px solid var(--line); padding: 12px 0 6px; }
.user-opts section:first-child { border-top: 0; padding-top: 0; }
.user-opts h3 { margin: 0 0 10px; font-size: 14px; }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.opt-checks { display: grid; gap: 8px; align-content: start; }
.opt-grid > div > label:not(.check) { margin-bottom: 8px; }
.user-opts label.check { font-weight: 450; }
.user-opts label.dis, .input-addon.dis { opacity: .5; }
.opt-hint { color: var(--muted); cursor: help; font-size: 12px; }
.opt-note { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.opt-pin { gap: 8px; }
.input-addon { display: inline-flex; align-items: stretch; border: 1px solid #d3d9e2; border-radius: 8px; overflow: hidden; }
.input-addon input { border: 0; border-radius: 0; width: 80px; padding: 5px 8px; }
.input-addon span { background: #f1f4f8; padding: 5px 10px; color: var(--muted); font-size: 13px; display: flex; align-items: center; border-left: 1px solid #d3d9e2; }
@media (max-width: 900px) { .opt-grid { grid-template-columns: 1fr; } }
/* shared audio file row */
.lbl-wrap { display: grid; gap: 6px; align-content: start; }
.lbl-wrap > .lbl { font-weight: 600; font-size: 13px; }
.audio-row { display: flex; gap: 6px; align-items: center; }
.audio-row .combo, .audio-row select { flex: 1; min-width: 0; }
.audio-row .btn.icon { width: 36px; height: 37px; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.audio-extra:empty { display: none; }
.audio-extra audio { height: 34px; margin-top: 4px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); display: inline-block; animation: recblink 1s infinite; }
@keyframes recblink { 50% { opacity: .2; } }
.sec-head { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 18px 0 10px; }
.sec-head h3 { margin: 0; font-size: 14px; }
.sec-head:first-child { margin-top: 0; }
.sec-head label.check { font-weight: 650; font-size: 14px; }
.is-off { opacity: .5; pointer-events: none; }
.msel-btn { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; white-space: normal; min-height: 37px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-2); color: #0b4f8a; border-radius: 6px; padding: 1px 4px 1px 8px; font-size: 12.5px; font-weight: 600; }
.chip-x { cursor: pointer; padding: 0 4px; border-radius: 4px; color: #4a6b8a; }
.chip-x:hover { background: rgba(0,0,0,.08); }
.msel-opt { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.msel-foot { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.sys-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.req { color: var(--red); margin-left: 2px; }
.moh-list { display: grid; gap: 14px; }
.unpark { border-left: 3px solid var(--line); padding-left: 14px; }
.pl-card .mrow .pos { width: 22px; color: var(--muted); }
.qp .sec-head { margin-top: 20px; }
.qp .sec-head:first-child { margin-top: 0; }
.comfort-row { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 8px; }
.qp > .audio-row, .qp [data-secbody] > .audio-row { max-width: 640px; }
.ob-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ob-routes { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.ob-routes th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 0 8px 0 0; white-space: nowrap; }
.ob-routes td { padding: 0 8px 0 0; }
.ob-routes td:nth-child(3) { width: 110px; }
.ob-routes td:nth-child(4), .ob-routes td:nth-child(5) { width: 22%; }
.add-menu { position: relative; display: inline-block; }
.add-menu .kebab-menu { left: 0; right: auto; min-width: 260px; }
.add-menu .kebab-menu button { display: grid; width: 100%; }
.add-menu .kebab-menu small { color: var(--muted); font-weight: 400; }
.ata-box { background: #f6f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.back-link { font-weight: 600; }
.port-chips { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 2px; }
.port-chip { min-width: 22px; padding: 1px 5px; border-radius: 5px; font-size: 11px; text-align: center; background: #eef1f5; color: #8a96a8; font-family: ui-monospace, Menlo, Consolas, monospace; }
.port-chip.on { background: #dff3ea; color: #13704e; font-weight: 700; }
.port-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.port-table thead th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 10px 0 0; }
.port-table tbody th { text-align: left; white-space: nowrap; font-size: 13px; padding-right: 12px; width: 70px; }
.port-table td { padding-right: 10px; }
.port-table td:nth-child(2) { width: 38%; }
.gw-note { background: #f3f8fd; border: 1px solid #d8e6f5; border-radius: 9px; padding: 10px 14px; margin-bottom: 14px; line-height: 1.8; }

/* transcripts (voicemail and call recordings) */
.transcript { margin: 2px 0 4px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--accent-2); border-radius: 0 8px 8px 0; line-height: 1.45; white-space: pre-wrap; max-width: 920px; }
.transcript.pending, .transcript.failed { border-left-color: var(--line); background: transparent; color: var(--muted); padding: 4px 12px; }
.transcript.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.transcript .tr-label { font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-right: 6px; }
tr.tr-row td { padding-top: 0 !important; border-top: 0 !important; }
.model-row td { vertical-align: middle; }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; width: 140px; display: inline-block; vertical-align: middle; }
.progress > i { display: block; height: 100%; background: var(--accent); }

/* branding: custom logo on the sign-in screens, branding page previews */
.brand.big.custom { padding: 0 0 10px; }
.brand-logo { max-width: 260px; max-height: 90px; object-fit: contain; display: block; margin: 0 auto; }
.brand-slot { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.brand-preview { background: linear-gradient(160deg, #0e1a2b, #123a63); border-radius: 10px; padding: 18px; display: grid; place-items: center; min-height: 150px; }
.brand-preview .mini-card { background: #fff; border-radius: 10px; padding: 16px; width: 100%; max-width: 240px; display: grid; gap: 8px; text-align: center; }
.brand-preview .mini-card .bar { height: 10px; border-radius: 5px; background: #eef1f5; }
.brand-preview .mini-card .bar.btn-bar { background: var(--accent); opacity: .85; }
.phone-shots { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.phone-shot { display: grid; gap: 6px; justify-items: center; }
.phone-shot canvas, .phone-shot img { border: 8px solid #1d2733; border-radius: 10px; background: #000; display: block; max-width: 100%; height: auto; }
@media (max-width: 760px) { .brand-slot { grid-template-columns: 1fr; } }

/* admin console softphone (js/softphone.js) */
/* top bar: phone state, Dial, Status, account menu (the web client's controls, on the console's white header) */
.top .reg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.top .dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa6b6; display: inline-block; flex: none; }
.top .dot.ok, .top .dot.idle { background: var(--green); }
.top .dot.wait, .top .dot.away { background: var(--amber); }
.top .dot.err, .top .dot.dnd { background: var(--red); }
.top .pop-wrap { position: relative; }
.top .top-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.top .top-btn:hover { background: #f4f6f9; }
.top .top-btn.primary { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.top .top-btn.primary:hover { background: #12894a; }
.top .top-btn .caret { opacity: .6; font-size: 11px; }
.top .avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; }
.top .av { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: #2b4a6f; color: #fff; font-weight: 700; font-size: 13px; }
.top .pop { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(14,26,43,.22); z-index: 40; }
.top .pop.menu { min-width: 250px; padding: 6px; display: grid; }
.top .pop.menu > button, .top .pop.menu > a { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; flex-wrap: wrap; }
.top .pop.menu > button:hover, .top .pop.menu > a:hover { background: #f2f5f9; }
.top .pop.menu small { width: 100%; padding-left: 19px; color: var(--muted); font-size: 12px; margin-top: -4px; }
.top .me-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 2px; }
.top .me-head small { color: var(--muted); padding-left: 0; margin-top: 0; }
.top .dialer { width: 300px; padding: 14px; display: grid; gap: 10px; }
.top .dial-input { display: flex; align-items: center; border: 1px solid #d3d9e2; border-radius: 10px; padding: 0 4px 0 12px; }
.top .dial-input input { border: 0; font-size: 20px; padding: 10px 0; outline: none; width: 100%; }
.top .dial-input .icon { border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--muted); padding: 6px 8px; }
.top .suggest:empty { display: none; }
.top .suggest { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.top .suggest button { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 8px 10px; font: inherit; text-align: left; cursor: pointer; }
.top .suggest button:last-child { border-bottom: 0; }
.top .suggest button:hover, .top .suggest button.sel { background: var(--accent-2); }
.top .pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.top .pad .k { height: 48px; border-radius: 10px; border: 1px solid var(--line); background: #f7f9fc; font: inherit; font-size: 19px; cursor: pointer; display: grid; place-items: center; line-height: 1; }
.top .pad .k small { display: block; font-size: 9px; letter-spacing: .14em; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) { .top .top-btn .lbl, .top #cpText { display: none; } }
@media (max-width: 760px) { .top .dialer { position: fixed; left: 8px; right: 8px; top: 62px; width: auto; } }
/* the call card */
.cp-card { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 290px; background: var(--panel); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.25); padding: 14px; display: grid; gap: 10px; border: 1px solid var(--line); }
.cp-card.ringing { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,160,88,.25), 0 14px 40px rgba(0,0,0,.25); }
.cp-who { display: grid; gap: 2px; } .cp-who b { font-size: 16px; }
.cp-state { font-variant-numeric: tabular-nums; color: var(--muted); min-height: 1em; }
.cp-btns { display: flex; gap: 6px; flex-wrap: wrap; } .cp-btns .btn { flex: 1; } .cp-btns .btn.on { background: var(--accent-2); }
.cp-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .cp-pad button { padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 16px; cursor: pointer; }
@media (max-width: 760px) { .cp-card { left: 16px; right: 16px; width: auto; } }
/* Call History → Troubleshoot (js/trace.js) */
#modalCard:has(.trace) { width: min(1180px, 96vw); max-height: 92vh; overflow: auto; }
.trace { display: grid; gap: 10px; } .trace h2 { margin: 0; } .trace h3 { margin: 6px 0 0; font-size: 14px; }
.trace-findings { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.trace-findings li { padding: 8px 10px; border-radius: 8px; background: #f1f5f9; font-size: 13px; }
.trace-findings li.warn { background: #fff7e6; } .trace-findings li.ok { background: #ecfdf3; }
.ladder-wrap { overflow: auto; max-height: 46vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ladder { display: block; font: 12px system-ui, sans-serif; }
.ladder .lh { font-weight: 600; font-size: 13px; } .ladder .la { fill: #64748b; font-size: 11px; } .ladder .lt { fill: #64748b; font-size: 11px; }
.ladder .ll { stroke: #cbd5e1; stroke-dasharray: 3 3; }
.ladder .lm { cursor: pointer; color: #334155; } .ladder .lm line { stroke: currentColor; stroke-width: 1.4; } .ladder .lm text { fill: currentColor; }
.ladder .lr { fill: transparent; } .ladder .lm:hover .lr { fill: #f1f5f9; } .ladder .lm.sel .lr { fill: #e0edff; }
.ladder .lm.good { color: #15803d; } .ladder .lm.bad { color: #b91c1c; } .ladder .lm.prov { color: #64748b; }
.sip-msg { margin: 0; padding: 10px; background: #0f172a; color: #e2e8f0; border-radius: 8px; max-height: 30vh; overflow: auto; white-space: pre-wrap; word-break: break-all; }
/* Two-step sign-in (js/twofactor.js) */
.tfa-qr { display: flex; justify-content: center; } .tfa-qr svg { width: 200px; height: 200px; }
.tfa-key { margin: 6px 0; padding: 6px 8px; background: #f1f5f9; border-radius: 6px; color: var(--ink, #0f172a); word-break: break-all; user-select: all; }
.tfa-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; background: #f1f5f9; border-radius: 8px; font-size: 14px; user-select: all; }
/* System → Alerts (js/alerts.js) */
.alert-type { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 8px 0; border-bottom: 1px solid var(--line); } .alert-type:last-child { border-bottom: 0; }
.alert-type > .check { min-width: 240px; }
.alert-active { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; } .alert-active li { padding: 8px 10px; background: #fff7e6; border-radius: 8px; }
/* Notice boxes (System → Email, Alerts) */
.notice { padding: 10px 12px; border-radius: 8px; font-size: 13px; background: #f1f5f9; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.notice.warn { background: #fff7e6; border: 1px solid #f5d48a; } .notice.ok { background: #ecfdf3; border: 1px solid #a7e3bf; } .notice.info { background: #eef4ff; border: 1px solid #c3d6fb; }
.fields.three { grid-template-columns: 2fr 1fr 1.6fr; }
@media (max-width: 760px) { .fields.three { grid-template-columns: 1fr; } }
/* System → Storage: cloud archive block per section (js/storage.js) */
.cloud-box { margin-top: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; background: #f8fafc; display: grid; gap: 12px; }
/* System → Audit Log: entries that open to show what changed (js/access.js) */
tr.au-has { cursor: pointer; } tr.au-has:hover td { background: #f8fafc; } .au-tog { color: var(--accent); display: inline-block; width: 1em; }
tr.au-detail td { background: #f8fafc; font-size: 13px; padding: 10px 14px 14px 34px; }
.au-changes { width: auto; margin-top: 6px; border-collapse: collapse; } .au-changes th, .au-changes td { padding: 4px 14px 4px 0; text-align: left; vertical-align: top; word-break: break-word; } .au-changes th { font-size: 11px; color: #64748b; text-transform: uppercase; }
