/* SGA Phone Portal — SGA red, black, white and grey. No inline styles (strict CSP). */
:root {
  --red: #b5121b; --red-dark: #7e0c13; --ink: #141414; --sub: #555; --line: #dadada; --bg: #f4f4f4; --white: #fff;
  --ok-bg: #e3f1e6; --ok: #1d5e2c; --warn-bg: #fff1d6; --warn: #7a4a00; --bad-bg: #fbe3e4; --bad: #8e0f16; --info-bg: #e2ecfa; --info: #1b4a8a;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; }
a { color: var(--red); } a:hover { color: var(--red-dark); }
h1 { margin: 0; font-size: 26px; line-height: 32px; }
h2 { margin: 0; font-size: 17px; }
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.nav { flex: 0 0 240px; background: var(--ink); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.brand { padding: 4px 14px 18px; display: flex; flex-direction: column; color: #fff; }
.brand strong { font-size: 17px; } .brand span { color: #bdbdbd; font-size: 12px; }
.nav a, .nav .soon { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; text-decoration: none; color: #e8e8e8; }
.nav a:hover { background: #2a2a2a; color: #fff; }
.nav a.on { background: var(--red); color: #fff; font-weight: 600; }
.nav .soon { color: #9a9a9a; cursor: default; display: flex; justify-content: space-between; gap: 6px; }
.nav .soon small { font-size: 11px; }
.nav-group { margin: 14px 14px 4px; color: #9a9a9a; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 32px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar .who { display: flex; align-items: center; gap: 12px; color: var(--sub); font-size: 14px; flex-wrap: wrap; }
.content { padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 22px; max-width: 1240px; width: 100%; }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pagehead p { margin: 6px 0 0; color: var(--sub); font-size: 14px; max-width: 760px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.panel-head span { color: var(--sub); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.tile .label { font-size: 13px; color: var(--sub); }
.tile .value { font-size: 26px; font-weight: 700; line-height: 32px; }
.tile .note { font-size: 13px; color: var(--sub); }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > .wide { flex: 3 1 560px; min-width: 0; } .row > .narrow { flex: 2 1 320px; min-width: 0; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th { text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 600; color: var(--sub); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; font-size: 14px; border-bottom: 1px solid #eee; vertical-align: top; }
td.muted, .muted { color: var(--sub); }
table.compact { min-width: 0; }
td.cell-actions { white-space: nowrap; width: 1%; }
td.cell-actions form { display: block; margin: 0 0 6px; }
tbody th { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); vertical-align: top; padding: 12px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #ececec; color: #3d3d3d; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--info); }
.banner { padding: 14px 16px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.banner.warn { background: #fff6e5; border-color: #e8b04b; color: #5e3a00; }
.banner.info { background: #eef3fb; border-color: #9db7e0; color: #1b3a66; }
.banner.ok { background: #eef7f0; border-color: #94c9a2; color: #1d5e2c; }
.banner.bad { background: #fdf0f0; border-color: #e3a0a4; color: #7e0c13; }
.warnings { list-style: none; margin: 0; padding: 0; }
.warnings li { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.warnings li > :first-child { flex: 0 0 160px; }
.warnings li > :nth-child(2) { flex: 1 1 320px; }
.button, button { font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid #bdbdbd; background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.button.primary, button.primary { background: var(--red); border-color: var(--red); color: #fff; }
.button.primary:hover, button.primary:hover { background: var(--red-dark); color: #fff; }
button:disabled, .button[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
button.link { min-height: 0; padding: 0; border: 0; background: none; color: var(--red); font-weight: 400; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions.end { justify-content: flex-end; }
form.stack { display: flex; flex-direction: column; gap: 16px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--sub); }
input[type=text], input[type=email], input[type=number], input[type=tel], input[type=search], input[type=date], input[type=time], input[type=file], select { font: inherit; font-size: 15px; color: var(--ink); min-height: 44px; padding: 0 10px; border: 1px solid #bdbdbd; border-radius: 8px; background: #fff; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #1b4a8a; outline-offset: 2px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0; }
legend { font-size: 13px; color: var(--sub); padding: 0 4px; }
label.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; min-height: 32px; }
label.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); flex: none; }
label.check span small { display: block; color: var(--sub); font-size: 13px; }
.hint { font-size: 13px; color: var(--sub); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { font-size: 14px; padding: 8px 14px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.matrix select { min-height: 36px; font-size: 14px; }
.matrix td, .matrix th { padding: 8px 12px; }
.group-row th { background: var(--bg); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--sub); }
.signin { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--ink); }
.signin .card { background: #fff; border-radius: 14px; padding: 36px; max-width: 440px; width: 100%; display: flex; flex-direction: column; gap: 18px; }
.signin .mark { color: var(--red); font-weight: 700; letter-spacing: .02em; }
.signin .ms { display: inline-flex; gap: 10px; justify-content: center; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) {
  .nav { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; }
  .brand { flex-basis: 100%; padding-bottom: 6px; }
  .nav-group, .nav .soon { display: none; }
  .content { padding: 20px 16px 40px; }
  .topbar { padding: 12px 16px; }
}
/* Public SMS pages */
body.public { background: #fff; }
.public-head { background: var(--red); padding: 16px 24px; }
.public-brand { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
.public-brand:hover { color: #fff; text-decoration: underline; }
.public-main { max-width: 820px; margin: 0 auto; padding: 32px 20px 48px; }
.prose h1 { font-size: 28px; line-height: 34px; margin: 0 0 12px; }
.prose h2 { font-size: 18px; margin: 24px 0 6px; }
.prose p { margin: 0 0 12px; line-height: 1.6; }
.prose.narrow { max-width: 560px; }
.consent span { font-size: 14px; line-height: 1.5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.public-foot { border-top: 1px solid var(--line); padding: 20px 24px; color: var(--sub); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; max-width: 1100px; margin: 0 auto; }
/* Phase 2 */
ol.steps { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; }
ol.steps li { margin-bottom: 6px; }
button.link.danger { color: #9b1c1c; }
.panel hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
fieldset.field legend { font-size: 13px; color: var(--sub); padding: 0 4px; }
fieldset.field .check { margin: 6px 0; }
/* Call flow */
.now-panel { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.now-text { display: flex; flex-direction: column; gap: 2px; }
.now-text strong { font-size: 17px; }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--sub); }
.ai-switch { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 14px; }
button.switch { min-width: 120px; border-radius: 999px; border: 0; color: #fff; font-weight: 700; }
button.switch.on { background: var(--ok); } button.switch.off { background: var(--bad); }
.flow-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.flow-lane.active { border: 2px solid var(--ok); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.flow-steps:not(.editable) li { counter-increment: step; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 50px; border: 1px solid #d0d0d0; border-radius: 10px; position: relative; margin-bottom: 18px; }
.flow-steps:not(.editable) li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow-steps li span { font-size: 13px; color: #444; }
.editor-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.editor-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.palette { flex: 0 1 250px; gap: 10px; }
.palette h2 { font-size: 15px; }
.palette-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafafa; cursor: grab; }
.palette-item span { display: flex; flex-direction: column; } .palette-item small { font-size: 12px; color: var(--sub); }
.grip { width: 12px; height: 18px; flex: 0 0 12px; background-image: radial-gradient(circle, #8a8a8a 1.6px, transparent 1.7px); background-size: 6px 6px; }
.flow-steps.editable li.step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #d0d0d0; border-radius: 10px; background: #fff; cursor: grab; }
.step-num { flex: 0 0 26px; height: 26px; border-radius: 999px; background: var(--ink); color: #fff !important; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.step-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.step-tools button { min-height: 36px; min-width: 40px; padding: 0 10px; font-size: 13px; }
.step-edit-row { list-style: none; border: 1px dashed #bdbdbd; border-radius: 10px; padding: 12px; margin-top: 6px; }
.step-edit { display: flex; flex-direction: column; gap: 10px; }
.menu-option { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.drop-zone { min-height: 14px; margin: 3px 0; border-radius: 8px; font-size: 13px; color: var(--sub); text-align: center; }
.drop-zone:last-child { border: 2px dashed #c9c9c9; padding: 12px; margin-top: 10px; }
.drop-zone.over { background: var(--info-bg); outline: 2px dashed var(--info); }
.add-step { display: flex; gap: 8px; flex-wrap: wrap; }
.unsaved { display: none; } .unsaved.show { display: block; color: var(--warn); font-weight: 600; }
.tile.closed { border: 2px solid var(--bad); background: var(--bad-bg); }
table.hours td input { width: 100%; min-width: 170px; min-height: 40px; font-size: 14px; }
.clip { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
textarea { font: inherit; font-size: 15px; padding: 10px; border: 1px solid #bdbdbd; border-radius: 8px; }
audio { width: 100%; max-width: 420px; }
.vm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vm-list li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.vm-list li.unheard .vm-head strong { color: var(--red); }
.vm-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.vm-head span { color: var(--sub); font-size: 13px; }
.vm-list form { display: flex; gap: 12px; }
.inline-setting { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.holiday-form { border-top: 1px solid var(--line); padding-top: 14px; }
.holiday-form h3 { margin: 0; font-size: 15px; }
/* Voice and vibe tiles (like openai.fm) */
fieldset.tiles { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
fieldset.tiles legend { font-size: 13px; color: var(--sub); margin-bottom: 8px; padding: 0; }
fieldset.voices { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
fieldset.vibes { grid-template-columns: 1fr; gap: 8px; }
fieldset.vibes .tile-radio span { flex-direction: row; justify-content: flex-start; text-align: left; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-height: 48px; }
fieldset.vibes .tile-radio span::before { top: 50%; }
/* The custom box only appears when Custom is chosen. */
fieldset.vibes:not(:has(input[value="custom"]:checked)) ~ .custom-vibe { display: none; }
.tile-radio { position: relative; display: flex; }
.tile-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-radio span { flex: 1; min-height: 56px; padding: 12px 14px 12px 34px; border: 1px solid #cfcfcf; border-radius: 10px; background: #fafafa; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 4px; font-size: 14px; font-weight: 600; position: relative; }
.tile-radio span::before { content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 999px; background: #c4c4c4; }
.tile-radio small { font-size: 12px; font-weight: 400; color: var(--sub); }
.tile-radio input:checked + span { border: 2px solid var(--ink); background: #fff; }
.tile-radio input:checked + span::before { background: var(--red); }
.tile-radio input:focus-visible + span { outline: 3px solid #1b4a8a; outline-offset: 2px; }
.vibe-details summary { cursor: pointer; font-size: 14px; color: var(--red); }
.vibe-details h4 { margin: 12px 0 4px; font-size: 14px; }
.pre { white-space: pre-line; font-size: 13px; color: #333; margin: 0; }
.brand .version { margin-top: 6px; font-size: 11px; color: #9a9a9a; letter-spacing: .02em; }
.source-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.source-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- texts (1.3.0) ---------- */
.nav-count { display: inline-block; min-width: 1.4em; margin-left: .4em; padding: 0 .35em; border-radius: 999px; background: var(--red); color: #fff; font-size: .75em; text-align: center; line-height: 1.4em; }
.row-form { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.row-form .grow { flex: 1 1 16rem; }
ul.sms-threads { list-style: none; margin: 0; padding: 0; }
ul.sms-threads li { border-bottom: 1px solid #e5e5e5; }
ul.sms-threads li:last-child { border-bottom: 0; }
ul.sms-threads a { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr auto; gap: .75rem; padding: .7rem .25rem; color: inherit; text-decoration: none; align-items: center; }
ul.sms-threads a:hover { background: #f6f6f6; }
ul.sms-threads .who { display: flex; flex-direction: column; }
ul.sms-threads .who small { color: #666; }
ul.sms-threads .preview { color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.sms-threads .meta { color: #666; font-size: .9em; white-space: nowrap; }
ul.sms-threads li.unread .preview { color: #111; font-weight: 600; }
@media (max-width: 700px) { ul.sms-threads a { grid-template-columns: 1fr auto; } ul.sms-threads .preview { grid-column: 1 / -1; } }
.sms-thread { max-height: 60vh; overflow-y: auto; }
ol.sms-bubbles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
ol.sms-bubbles li { display: flex; flex-direction: column; max-width: 75%; }
ol.sms-bubbles li.in { align-self: flex-start; }
ol.sms-bubbles li.out { align-self: flex-end; align-items: flex-end; }
ol.sms-bubbles .bubble { padding: .55rem .8rem; border-radius: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
ol.sms-bubbles li.in .bubble { background: #eeeeee; color: #111; border-bottom-left-radius: .3rem; }
ol.sms-bubbles li.out .bubble { background: var(--red); color: #fff; border-bottom-right-radius: .3rem; }
ol.sms-bubbles small { color: #666; margin-top: .15rem; font-size: .8em; }
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
label.check { display: inline-flex; gap: .4rem; align-items: center; font-size: .9em; }
td.cell-actions form.point-form { display: flex; white-space: normal; width: 17rem; flex-direction: column; align-items: flex-start; gap: .3rem; max-width: 22rem; }
td .point-form label.check { white-space: normal; }

/* ---------- calls (1.4.0) ---------- */
table.calls audio { width: 17rem; max-width: 100%; height: 36px; }
table.calls td.nowrap, .nowrap { white-space: nowrap; }
.usage p { margin: .35rem 0; }

/* ---------- texts: pictures and saved replies (1.5.0) ---------- */
.sms-media { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.sms-media img { max-width: 14rem; max-height: 14rem; border-radius: .6rem; display: block; }
li.in .sms-media a { color: inherit; }
td.pre { white-space: pre-wrap; }
fieldset.auto-reply { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem .3rem; margin: 0; }
fieldset.auto-reply legend { font-weight: 600; padding: 0 .3rem; }
details.fields-help { margin: .4rem 0; }
details.fields-help summary { cursor: pointer; color: var(--red); }
details.fields-help table { margin-top: .4rem; }
details.fields-help th, details.fields-help td { padding: .25rem .5rem; text-align: left; vertical-align: top; }

/* ---------- contact page: texts and calls together (1.7.0) ---------- */
ol.sms-bubbles li.call { align-self: center; align-items: center; max-width: 90%; }
.call-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .5rem .8rem; text-align: center; }
.call-card audio { margin-top: .4rem; width: 17rem; max-width: 100%; height: 34px; }
ul.contact-people { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.compose-tools { display: flex; gap: .75rem; flex-wrap: wrap; }
.compose-tools .field { flex: 1 1 14rem; }

/* ---------- special schedules (1.8.0) ---------- */
ul.special-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .8rem; }
ul.special-list > li { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; }
ol.setup-steps { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.next-steps ol.setup-steps { margin-top: .6rem; }
.tabs a.custom { font-style: italic; }
[hidden] { display: none !important; }

/* ---------- people & extensions (1.9.0) ---------- */
.digit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .75rem; }
input.ext-input { width: 6rem; font-family: ui-monospace, monospace; }
.digit-grid input.ext-input { width: 4rem; }
tr.clash td, tr.clash th { background: #fff1f1; }
.person-form fieldset.checks { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; display: grid; gap: .35rem; }
.conflicts .field { margin-top: .5rem; }

fieldset.loc-checks { border: 1px solid var(--line); border-radius: 10px; padding: .7rem 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .6rem 1.2rem; }
fieldset.loc-checks legend, fieldset.loc-checks .hint { grid-column: 1 / -1; margin: 0; }
fieldset.loc-checks label.check { align-items: center; gap: .5rem; }
.ai-summary { display: block; margin-top: .35rem; color: var(--ink-2, #445); text-align: left; max-width: 40rem; }

fieldset.ability-group { border: 1px solid var(--line); border-radius: 10px; padding: .6rem 1rem .8rem; margin: 0 0 .8rem; display: grid; gap: .45rem; }
fieldset.ability-group legend { font-weight: 600; padding: 0 .3rem; }
ul.policy-status { margin: .2rem 0 .6rem; padding-left: 1.1rem; font-size: 14px; }
small.pre { white-space: pre-line; }
table.activity td { vertical-align: top; }
table.activity td:nth-child(4), table.activity td:nth-child(5) { min-width: 14rem; max-width: 28rem; }

ol.sms-bubbles li.out.from-ai .bubble { background: #2f343b; color: #fff; }
ol.sms-bubbles li.out.from-system .bubble { background: #f4f4f4; color: #222; border: 1px dashed #9a9a9a; }
ol.sms-bubbles li.out.from-system .sms-media a { color: inherit; }
ol.sms-bubbles .sender-tag { font-size: .72em; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #555; margin-bottom: .15rem; }
.sms-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-size: 13px; color: var(--sub); margin: 0 0 .8rem; }
.sms-legend .key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: -.5rem; vertical-align: -2px; }
.sms-legend .key.from-staff { background: var(--red); }
.sms-legend .key.from-ai { background: #2f343b; }
.sms-legend .key.from-system { background: #f4f4f4; border: 1px dashed #9a9a9a; }

ol.verify-order { margin: .4rem 0 .6rem; padding-left: 1.4rem; display: grid; gap: .6rem; }
ol.verify-order li { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .4rem 1rem; }
ol.verify-order .order-buttons { display: inline-flex; gap: .8rem; white-space: nowrap; }
