:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
  font-size: 14px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --blue: #0071e3;
  --muted: #6e6e73;
  --border: #e8e8ed;
  --shadow: 0 3px 8px #1d1d1f02, 0 12px 28px #1d1d1f03;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.guest-link { max-width: 580px; margin: 48px auto; padding: 32px 24px; }
.guest-link h1 { font-size: 32px; }
#guest-qr { display: block; max-width: 100%; height: auto; margin: 24px auto; }
#invitation-url { overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid transparent; border-radius: 10px; background: var(--blue); color: #fff; padding: 10px 16px; cursor: pointer; font-size: 13px; font-weight: 500; line-height: 1.2; text-decoration: none; transition: background .16s, box-shadow .16s, transform .16s; }
button:hover, .button:hover { background: #0077ed; box-shadow: 0 3px 8px #0071e318; }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #0071e365; outline-offset: 4px; }
.secondary { background: #fff; border-color: #dedee3; color: #424247; box-shadow: 0 1px 2px #00000004; }
.secondary:hover { background: #f5f5f7; box-shadow: none; }
.danger { background: #fff; border-color: #f0d8d6; color: #bf352c; }
.danger:hover { background: #fff3f1; box-shadow: none; }
.text-button { background: transparent; color: var(--muted); padding: 8px 0; justify-content: flex-start; }
.text-button:hover { background: transparent; color: var(--blue); box-shadow: none; }
input, select, textarea { display: block; width: 100%; min-height: 44px; border: 1px solid #d9d9df; border-radius: 10px; padding: 11px 12px; background: #fff; color: #1d1d1f; margin-top: 9px; font-size: 13px; line-height: 1.4; transition: border-color .16s, box-shadow .16s; }
input::placeholder, textarea::placeholder { color: #85858b; }
input:hover, select:hover, textarea:hover { border-color: #b8b8be; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #0071e31f; }
input:disabled, select:disabled, textarea:disabled { background: #f5f5f7; color: #85858b; }
select { padding-right: 28px; }
textarea { resize: vertical; min-height: 140px; }
label { display: block; min-width: 0; font-size: 12px; font-weight: 500; color: #49494f; }
form { display: grid; gap: 22px; }
form button { justify-self: start; align-self: end; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 18px; }
.inline { display: flex; gap: 16px; align-items: end; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.inline label { flex: 1; }
.inline button { flex-shrink: 0; min-height: 44px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.optional { margin-left: 5px; font-size: 11px; font-weight: 400; color: var(--muted); }
.field-help { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.7; }
.eyebrow { display: block; font-size: 10px; letter-spacing: .15em; font-weight: 600; color: var(--muted); }
h1 { font-size: 40px; line-height: 1.12; font-weight: 650; letter-spacing: -1.6px; margin: 10px 0 0; }
h2 { font-size: 17px; line-height: 1.4; letter-spacing: -.4px; font-weight: 600; margin: 0 0 16px; }
p { line-height: 1.6; }
a { color: var(--blue); }
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 200; background: white; border-radius: 8px; padding: 12px; }
.skip-link:focus { top: 12px; }
#shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: #eeeef1e6; border-right: 1px solid #dfdfe5; padding: 38px 18px 22px; display: flex; flex-direction: column; gap: 48px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 13px; font-size: 22px; font-weight: 650; letter-spacing: -.8px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; flex-shrink: 0; background: linear-gradient(145deg, #399cff, #0064d3); color: white; border-radius: 10px; box-shadow: inset 0 1px 1px #ffffff55, 0 3px 7px #0064d31a; }
.brand-mark .icon { width: 25px; height: 25px; stroke-width: 1.9; }
.brand-caption { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .1px; }
.sidebar-label { display: block; margin: 0 14px 12px; color: #77777e; font-size: 11px; font-weight: 500; }
nav { display: grid; gap: 5px; }
nav button { justify-content: flex-start; text-align: left; gap: 12px; background: transparent; color: #54545b; font-weight: 400; padding: 12px 14px; min-height: 44px; font-size: 13px; }
nav button .icon { width: 18px; height: 18px; color: #777780; }
nav button:hover { background: #e4e4ea; box-shadow: none; }
nav button.active { background: #fff; color: var(--blue); font-weight: 600; box-shadow: 0 2px 5px #1d1d1f06, 0 0 0 1px #1d1d1f03; }
nav button.active .icon { color: var(--blue); }
.sidebar-note { margin-top: auto; padding: 0 14px; color: var(--muted); }
.sidebar-note > .icon { display: block; margin-bottom: 13px; width: 21px; height: 21px; color: #8b8b92; }
.sidebar-note strong { font-size: 11px; font-weight: 500; color: #5e5e65; }
.sidebar-note p { font-size: 11px; line-height: 1.8; margin: 7px 0 0; }
.sidebar-bottom { padding: 20px 12px 0; border-top: 1px solid #dcdce3; display: grid; gap: 15px; font-size: 11px; color: var(--muted); }
.session-info { display: flex; align-items: center; gap: 10px; }
.session-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e1e1e8; color: #72727a; }
.session-info strong { display: block; margin-bottom: 4px; color: #49494f; font-weight: 500; font-size: 11px; }
#role { font-size: 10px; }
.sidebar-bottom button { min-height: 28px; font-size: 12px; }
main { padding: 0 48px 28px; max-width: 1580px; width: 100%; min-width: 0; margin: 0 auto; }
main:focus { outline: none; }
.toolbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; gap: 14px; font-size: 12px; color: #77777e; }
.breadcrumb > span:first-child { color: #b8b8c0; }
.breadcrumb > span:last-child { color: #49494f; }
.toolbar-actions { display: flex; gap: 12px; align-items: center; min-width: 0; }
.toolbar select { margin: 0; min-height: 36px; max-width: 230px; padding-top: 7px; padding-bottom: 7px; background: transparent; }
.toolbar button { min-height: 36px; font-size: 12px; padding: 8px 12px; }
.toolbar button .icon { width: 15px; height: 15px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 43px 0 37px; }
.page-header p { font-size: 14px; margin: 13px 0 0; color: var(--muted); }
.page-header .button { margin-top: 13px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 15px; }
.section-heading h2 { font-size: 13px; margin: 0; letter-spacing: -.1px; }
.quiet-label { display: inline-flex; align-items: center; gap: 6px; color: #727278; font-size: 11px; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: #85858b; }
.health { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.health-card { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 20px; box-shadow: var(--shadow); }
.health-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 23px; }
.provider-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: #eaf3ff; color: #0071e3; }
.provider-icon.wppconnect { color: #8054c7; background: #f2edfc; }
.provider-icon.infobip { color: #cb711e; background: #fff2e6; }
.provider-icon.baileys { color: #368278; background: #eaf6f2; }
.health-card strong { display: block; font-weight: 600; font-size: 13px; letter-spacing: -.2px; }
.health-card-bottom { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.health-card-bottom b { font-size: 26px; line-height: 1; font-weight: 550; letter-spacing: -.8px; color: #1d1d1f; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px; margin-bottom: 24px; box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.panel-heading h2 { margin: 0; }
.panel-heading p { margin: 6px 0 0; font-size: 12px; }
.heading-with-icon { display: flex; align-items: center; gap: 14px; }
.section-icon { width: 38px; height: 38px; border-radius: 12px; background: #f0f5fc; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.count { display: inline-block; margin-left: 7px; background: #f1f1f4; color: #77777e; border-radius: 7px; min-width: 23px; text-align: center; padding: 2px 6px; font-size: 11px; font-weight: 500; vertical-align: middle; }
.channels-panel { padding: 0; }
.channels-panel > .panel-heading { padding: 25px 28px 0; margin-bottom: 22px; }
.table-scroll { overflow-x: auto; padding-bottom: 6px; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { font-size: 10px; letter-spacing: .03em; font-weight: 500; color: #77777e; padding: 12px 18px; background: #fafafb; border-top: 1px solid #f0f0f3; border-bottom: 1px solid #f0f0f3; white-space: nowrap; }
td { padding: 20px 18px; border-bottom: 1px solid #f0f0f3; vertical-align: middle; font-size: 12px; }
th:first-child, td:first-child { padding-left: 28px; }
th:last-child, td:last-child { padding-right: 28px; }
tr:last-child td { border-bottom: 0; }
td strong { display: block; font-weight: 550; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-subtitle { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; max-width: 300px; overflow-wrap: anywhere; }
.provider-label { color: #5c5c65; white-space: nowrap; font-size: 11px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.actions button { font-size: 11px; min-height: 30px; padding: 6px 10px; border-radius: 7px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; background: #f1f1f4; color: #696970; font-size: 10px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.badge::before { content: ""; width: 4px; height: 4px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.badge.ready, .badge.succeeded, .badge.online, .badge.active { background: #edf7f0; color: #287b45; }
.badge.error, .badge.failed, .badge.unknown { background: #fff0ed; color: #b43b2d; }
.badge.qr, .badge.verifying, .badge.queued, .badge.running { background: #fff6e5; color: #93660d; }
.empty { padding: 44px 24px; color: var(--muted); text-align: center; font-size: 13px; }
.empty .section-icon { width: 48px; height: 48px; border-radius: 15px; margin-bottom: 15px; }
.empty strong { white-space: normal; font-size: 15px; color: #414147; }
.empty p { margin: 8px 0 0; font-size: 12px; }
.empty .text-button { margin-top: 12px; justify-content: center; color: var(--blue); }
.add-channel-panel { scroll-margin-top: 24px; }
.add-channel-panel .form-grid { grid-template-columns: 1.1fr 1fr 1.1fr auto; gap: 16px; }
.add-channel-panel button { min-height: 44px; }
.form-note { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 18px 0 0; }
form .form-note { margin: -10px 0 0; }
.workspace-footer { display: flex; align-items: center; justify-content: center; gap: 6px; color: #7b7b82; font-size: 10px; margin: 28px 0 0; }
.workspace-footer .icon { width: 12px; height: 12px; }
.narrow { max-width: 800px; }
.info-note { border: 1px solid #e5edf8; background: #f6f9fd; border-radius: 10px; padding: 13px 16px; color: #58677b; font-size: 12px; margin: 0 0 24px; }
.event { padding: 20px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.event:last-child { border-bottom: 0; }
.event-header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.event-header strong { font-size: 13px; font-weight: 500; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; max-height: 420px; overflow: auto; line-height: 1.7; background: #f7f7f9; border: 1px solid #ededf1; padding: 18px; border-radius: 10px; }
pre:empty { display: none; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
code { overflow-wrap: anywhere; }
details summary { cursor: pointer; font-weight: 500; font-size: 13px; line-height: 1.7; }
.summary-caption { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 8px; }
.details-content { margin-top: 24px; }
.details-content > .button-row { margin-top: 16px; }
.secret { border: 1px solid #eed5a3; border-radius: 12px; background: #fffbf2; padding: 22px; margin-top: 24px; display: grid; gap: 16px; }
.secret button { justify-self: start; }
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: radial-gradient(ellipse at 50% 38%, #e4edfa66, transparent 60%), #f5f5f7; }
.login-brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -.6px; margin-bottom: 36px; }
.login-brand .brand-mark { width: 29px; height: 29px; border-radius: 8px; }
.login-brand .icon { width: 22px; height: 22px; }
.login-card { width: min(460px, 100%); background: #ffffffed; border: 1px solid #fff; padding: 44px 42px 30px; border-radius: 26px; box-shadow: 0 4px 10px #1d1d1f02, 0 22px 70px #273b5810; text-align: center; }
.login-symbol { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 26px; border-radius: 21px; background: linear-gradient(145deg, #f3f8ff, #e6effd); color: #0071e3; border: 1px solid #dfeafa; box-shadow: inset 0 2px 2px #fff; }
.login-symbol .icon { width: 31px; height: 31px; stroke-width: 1.4; }
.login .eyebrow { font-size: 9px; letter-spacing: .17em; }
.login h1 { margin-top: 14px; font-size: 42px; line-height: 1.1; letter-spacing: -1.8px; }
.login-description { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 18px 0 0; }
.login form { margin: 30px 0 22px; text-align: left; gap: 16px; }
.login input { min-height: 48px; }
.login form button { width: 100%; min-height: 46px; }
.login-security { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); margin: 0; }
.login-security .icon { width: 12px; height: 12px; }
.login-footer { font-size: 11px; color: #7b7b82; margin: 28px 0 0; }
#notification { position: fixed; bottom: 24px; right: 24px; max-width: min(460px, calc(100vw - 32px)); background: #ffffffed; backdrop-filter: blur(20px); color: #1d1d1f; border: 1px solid #dcdce3; padding: 17px 22px; border-radius: 14px; box-shadow: 0 8px 36px #1d1d1f1a; z-index: 100; font-size: 13px; line-height: 1.6; }
#notification.error { color: #a52d25; border-color: #efcec9; background: #fff8f5f5; }
dialog { border: 1px solid var(--border); border-radius: 22px; padding: 30px; width: 430px; max-width: calc(100vw - 32px); box-shadow: 0 24px 100px #00000026; }
dialog::backdrop { background: #1d1d1f44; backdrop-filter: blur(5px); }
dialog .section-icon { margin-bottom: 20px; }
dialog h2 { margin-bottom: 10px; }
dialog img { display: block; margin: 24px auto; max-width: 100%; height: auto; border-radius: 12px; }
dialog button { float: right; }
.provider-choices { display: grid; gap: 12px; margin: 22px 0; }
.provider-choices button { width: 100%; justify-content: space-between; float: none; min-height: 48px; }
.provider-choices button { text-align: left; gap: 12px; padding: 14px; }
.provider-method { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.5; }
#link-workspace { margin: 0 0 18px; overflow-wrap: anywhere; }
#link-mark.infobip { background: #fff2e6; color: #cb711e; }
#infobip-form { gap: 20px; margin-top: 16px; }
#infobip-form > p { margin: 0; font-size: 13px; }
#infobip-form .info-note { font-size: 12px; }
#infobip-form input[aria-invalid="true"] { border-color: #b43b2d; }
#infobip-form .link-error button { float: none; margin-top: 10px; }
#infobip-back { margin-right: auto; }
.infobip-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 22px 0; }
.infobip-summary > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.infobip-summary p { margin: 5px 0 0; }
.infobip-sending { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; width: 100%; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; }
#infobip-success h3 { font-size: 14px; margin: 0 0 8px; }
#infobip-success > p { margin: 0; }
#infobip-setup-warning { margin-top: 20px !important; }
.event-channel-context { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.event-channel-context > .button-row { align-items: center; justify-content: space-between; }
#event-channel-label { overflow-wrap: anywhere; }
#event-channel-help p { margin-bottom: 0; }
.link-actions { justify-content: flex-end; margin-top: 24px; }
.link-actions button { float: none; }
.link-error { color: #a52d25; overflow-wrap: anywhere; }
#link-status { font-weight: 600; }
#link-account { overflow-wrap: anywhere; }
@media (min-width: 1600px) { main { padding-right: 64px; padding-left: 64px; } .health-card { padding: 24px; } }
@media (max-width: 1180px) { #shell { grid-template-columns: 210px minmax(0, 1fr); } .sidebar { padding-left: 12px; padding-right: 12px; } main { padding-right: 28px; padding-left: 28px; } .health { gap: 10px; } .health-card { padding: 16px 12px; } .health-card-top { gap: 4px; } .health-card .badge { font-size: 9px; padding: 4px 6px; } .add-channel-panel .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .add-channel-panel button { justify-self: stretch; } }
@media (max-width: 900px) { .health { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .health-card { padding: 18px; } .health-card-top { margin-bottom: 16px; } .health-card .badge { font-size: 10px; } .panel { padding: 24px; } .channels-panel { padding: 0; } .page-header { padding-top: 32px; } .summary-caption { display: block; margin-left: 17px; } }
@media (max-width: 700px) {
  #shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid #dfdfe5; padding: 18px 16px 12px; gap: 18px; }
  .brand { padding: 0 4px; font-size: 20px; }
  .brand-caption, .sidebar-label, .sidebar-note { display: none; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  nav { display: flex; overflow-x: auto; gap: 5px; padding: 2px 2px 5px; }
  nav button { white-space: nowrap; padding: 10px 12px; min-height: 42px; gap: 7px; font-size: 12px; }
  nav button .icon { width: 15px; height: 15px; }
  .sidebar-bottom { position: absolute; right: 20px; top: 19px; padding: 0; border: 0; }
  .session-info { display: none; }
  .sidebar-bottom button { padding: 4px; }
  main { padding: 0 20px 24px; }
  .toolbar { min-height: 68px; gap: 12px; }
  .breadcrumb { gap: 8px; font-size: 11px; }
  .toolbar-actions { gap: 8px; }
  .toolbar select { max-width: 140px; font-size: 12px; }
  .toolbar button { padding: 9px; }
  .toolbar button span { display: none; }
  .toolbar button::after { content: none; }
  .page-header { padding: 30px 0; gap: 14px; }
  h1 { font-size: 34px; letter-spacing: -1.2px; }
  .page-header .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .page-header p { font-size: 12px; margin-top: 10px; }
  .page-header .button { font-size: 12px; padding: 10px 12px; gap: 5px; flex-shrink: 0; }
  .section-heading h2 { font-size: 12px; }
  .quiet-label { font-size: 10px; }
  .health { gap: 12px; margin-bottom: 22px; }
  .health-card { padding: 16px; border-radius: 14px; }
  .health-card strong { font-size: 12px; }
  .health-card-bottom b { font-size: 24px; }
  .panel { padding: 20px; border-radius: 16px; margin-bottom: 20px; }
  .panel-heading { flex-wrap: wrap; gap: 12px; }
  .panel-heading h2 { font-size: 16px; }
  .channels-panel { padding: 0; }
  .channels-panel > .panel-heading { padding: 21px 20px 0; }
  .channels-panel .quiet-label { display: none; }
  th:first-child, td:first-child { padding-left: 20px; }
  .table-scroll { overflow: visible; }
  .table-scroll table, .table-scroll tbody { display: block; }
  .table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table-scroll tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; padding: 22px 20px; border-top: 1px solid var(--border); }
  .table-scroll td { display: block; padding: 0; border: 0; }
  .table-scroll td:first-child { grid-column: 1; grid-row: 1; }
  .table-scroll td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .table-scroll td:nth-child(3) { grid-column: 2; grid-row: 1 / 3; }
  .table-scroll td:last-child:not(:first-child) { grid-column: 1 / -1; margin-top: 7px; }
  .table-scroll td.empty { grid-column: 1 / -1; padding: 12px 0; }
  .table-scroll .actions { gap: 8px; }
  .table-scroll .actions button { min-height: 36px; }
  .table-scroll .row-subtitle { max-width: 180px; }
  .table-scroll td:nth-child(3) .row-subtitle { max-width: 100px; }
  .form-grid, .add-channel-panel .form-grid { grid-template-columns: minmax(0, 1fr); }
  .add-channel-panel .panel-heading { margin-bottom: 22px; }
  .heading-with-icon { gap: 10px; }
  .heading-with-icon .section-icon { width: 33px; height: 33px; border-radius: 10px; }
  .add-channel-panel h2 { font-size: 15px; }
  .inline { flex-direction: column; align-items: stretch; }
  .inline button { align-self: stretch; }
  input, select, textarea { font-size: 16px; }
  #notification { right: 16px; bottom: 16px; }
}
@media (max-width: 380px) { main { padding-right: 14px; padding-left: 14px; } .health-card { padding: 14px 11px; } .breadcrumb { display: none; } .toolbar { justify-content: flex-end; } .page-header .button { padding: 9px; } .login-card { padding: 36px 24px 28px; } .login h1 { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
#image-preview { display: block; max-width: 100%; max-height: 240px; margin: 12px auto; object-fit: contain; border-radius: 8px; }
#image-preview[hidden] { display: none; }
#legacy-dialog { width: min(680px, calc(100% - 32px)); }
#legacy-paths { white-space: pre-wrap; overflow-wrap: anywhere; }
