:root {
  --ink-950: #0b1d29;
  --ink-900: #102b3c;
  --ink-800: #173c50;
  --ink-700: #27566c;
  --ink-600: #477083;
  --ink-500: #688a99;
  --ink-300: #b9cbd2;
  --ink-200: #d7e2e6;
  --ink-100: #eaf0f2;
  --ink-50: #f4f7f8;
  --paper: #ffffff;
  --canvas: #f3f4ef;
  --amber-600: #a96210;
  --amber-500: #d18a2f;
  --amber-200: #f3d8a8;
  --amber-100: #fbefd8;
  --red-700: #a12c2c;
  --red-100: #fbe8e7;
  --green-700: #20704c;
  --green-100: #e4f3ea;
  --blue-700: #245d8c;
  --blue-100: #e3eef7;
  --shadow-sm: 0 1px 2px rgba(11, 29, 41, .06);
  --shadow-md: 0 14px 36px rgba(11, 29, 41, .10);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --sidebar: 256px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-950);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
:focus-visible { outline: 3px solid rgba(209, 138, 47, .42); outline-offset: 2px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--paper);
  background: var(--ink-950);
}
.skip-link:focus { transform: translateY(0); }

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(420px, 1.15fr);
  background: var(--paper);
}
.login__story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(32px, 7vw, 92px);
  color: var(--paper);
  background: var(--ink-950);
}
.login__story::before,
.login__story::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.login__story::before {
  width: 440px;
  height: 440px;
  right: -190px;
  top: -90px;
  border: 74px solid rgba(209, 138, 47, .14);
}
.login__story::after {
  width: 320px;
  height: 320px;
  left: -150px;
  bottom: -170px;
  background: rgba(39, 86, 108, .32);
}
.brand-mark { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.brand-mark__symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--ink-950);
  background: var(--amber-500);
  font-size: 15px;
}
.login__message { position: relative; z-index: 1; max-width: 580px; }
.login__message h1 { margin: 0 0 18px; font-size: clamp(38px, 5vw, 70px); line-height: .98; letter-spacing: -.05em; }
.login__message p { margin: 0; max-width: 490px; color: var(--ink-300); font-size: 18px; }
.login__foot { position: relative; z-index: 1; color: var(--ink-500); font-size: 13px; }
.login__access { position: relative; display: grid; place-items: center; padding: 28px; background: var(--canvas); }
.login__language { position: absolute; top: 24px; right: 28px; }
.login-card { width: min(100%, 440px); }
.eyebrow { margin: 0 0 9px; color: var(--amber-600); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-card h2 { margin: 0 0 10px; font-size: 34px; letter-spacing: -.035em; }
.login-card__intro { margin: 0 0 30px; color: var(--ink-600); }

.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label, .field__label { color: var(--ink-800); font-size: 13px; font-weight: 750; }
.field input, .field select, .field textarea, .control {
  width: 100%;
  min-height: 45px;
  padding: 10px 13px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  color: var(--ink-950);
  background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .control:focus {
  outline: none;
  border-color: var(--ink-700);
  box-shadow: 0 0 0 3px rgba(39, 86, 108, .12);
}
.field__hint { color: var(--ink-500); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.field--full { grid-column: 1 / -1; }
.form-error { min-height: 20px; margin: 10px 0; color: var(--red-700); font-size: 13px; font-weight: 700; }

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 750;
  text-decoration: none;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { color: var(--paper); background: var(--ink-900); }
.btn--primary:hover { background: var(--ink-800); }
.btn--accent { color: var(--ink-950); background: var(--amber-500); }
.btn--accent:hover { background: #df983d; }
.btn--secondary { color: var(--ink-900); border-color: var(--ink-200); background: var(--paper); }
.btn--secondary:hover { border-color: var(--ink-300); background: var(--ink-50); }
.btn--quiet { min-height: 36px; padding: 6px 10px; color: var(--ink-700); background: transparent; }
.btn--danger { color: var(--red-700); border-color: #edc5c3; background: var(--red-100); }
.btn--wide { width: 100%; }
.btn--small { min-height: 34px; padding: 6px 10px; font-size: 12px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  color: var(--ink-100);
  background: var(--ink-950);
}
.sidebar .brand-mark { padding: 0 10px 26px; }
.nav { display: grid; gap: 5px; }
.nav__label { padding: 20px 11px 6px; color: var(--ink-500); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav__item {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--ink-300);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.nav__item svg { width: 18px; height: 18px; }
.nav__item:hover { color: var(--paper); background: rgba(255,255,255,.06); }
.nav__item.is-active { color: var(--paper); background: var(--ink-800); box-shadow: inset 3px 0 var(--amber-500); }
.sidebar__footer { margin-top: auto; padding: 18px 10px 0; border-top: 1px solid rgba(255,255,255,.09); }
.user-chip { display: grid; grid-template-columns: 35px minmax(0,1fr); gap: 10px; align-items: center; }
.user-chip__avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-950); background: var(--amber-200); font-size: 12px; font-weight: 850; }
.user-chip__name, .user-chip__role { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip__name { color: var(--paper); font-size: 12px; font-weight: 750; }
.user-chip__role { color: var(--ink-500); font-size: 11px; }
.sidebar__actions { display: flex; gap: 6px; margin-top: 10px; }
.sidebar__actions button { padding: 4px 0; border: 0; color: var(--ink-500); background: transparent; font-size: 11px; }
.sidebar__actions button:hover { color: var(--paper); }

.workspace { min-width: 0; grid-column: 2; }
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid rgba(16, 43, 60, .09);
  background: rgba(243, 244, 239, .92);
  backdrop-filter: blur(15px);
}
.topbar__context { color: var(--ink-600); font-size: 13px; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.language-control { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-600); font-size: 12px; font-weight: 700; }
.language-control select { min-height: 36px; padding: 6px 28px 6px 10px; border: 1px solid var(--ink-200); border-radius: var(--radius-sm); color: var(--ink-900); background: var(--paper); }
.topbar .menu-button { display: none; }
.content { width: min(100%, 1500px); margin: 0 auto; padding: 36px clamp(20px, 4vw, 48px) 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.page-head h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.045em; }
.page-head__copy { max-width: 720px; }
.page-head__copy p { margin: 10px 0 0; color: var(--ink-600); font-size: 15px; }
.page-head__actions { display: flex; gap: 9px; flex-wrap: wrap; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--aside { grid-template-columns: minmax(0, 1.5fr) minmax(300px, .65fr); align-items: start; }
.stack { display: grid; gap: 18px; }
.card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(16, 43, 60, .09);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card--accent { border-color: var(--amber-200); background: linear-gradient(135deg, var(--amber-100), var(--paper) 72%); }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.card__head h2, .card__head h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.card__head p { margin: 5px 0 0; color: var(--ink-500); font-size: 13px; }

.metric { min-height: 136px; display: flex; flex-direction: column; justify-content: space-between; }
.metric__label { color: var(--ink-600); font-size: 12px; font-weight: 750; }
.metric__value { margin-top: 10px; font-size: 34px; font-weight: 800; letter-spacing: -.045em; }
.metric__detail { color: var(--ink-500); font-size: 12px; }
.metric--critical { border-top: 4px solid var(--red-700); }
.metric--waiting { border-top: 4px solid var(--amber-500); }
.metric--positive { border-top: 4px solid var(--green-700); }

.action-list { display: grid; gap: 2px; }
.action-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 10px;
  border: 0;
  border-bottom: 1px solid var(--ink-100);
  color: inherit;
  background: transparent;
  text-align: left;
}
.action-row:last-child { border-bottom: 0; }
.action-row:hover { background: var(--ink-50); }
.action-row__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--ink-700); background: var(--ink-100); font-weight: 850; }
.action-row__title { display: block; margin-bottom: 3px; font-size: 14px; font-weight: 780; }
.action-row__meta { color: var(--ink-500); font-size: 12px; }
.action-row__time { color: var(--ink-500); font-size: 12px; white-space: nowrap; }

.table-card { overflow: hidden; padding: 0; }
.table-toolbar { display: flex; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--ink-100); }
.search { position: relative; flex: 1; max-width: 440px; }
.search input { width: 100%; min-height: 40px; padding: 8px 12px 8px 38px; border: 1px solid var(--ink-200); border-radius: var(--radius-sm); background: var(--ink-50); }
.search svg { position: absolute; top: 11px; left: 12px; width: 18px; color: var(--ink-500); }
.filters { display: flex; gap: 8px; }
.filters select { min-height: 40px; padding: 7px 30px 7px 10px; border: 1px solid var(--ink-200); border-radius: var(--radius-sm); background: var(--paper); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 20px; border-bottom: 1px solid var(--ink-100); text-align: left; vertical-align: middle; }
th { color: var(--ink-500); background: #fafbf9; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
td { font-size: 13px; }
tr:last-child td { border-bottom: 0; }
tbody tr[data-href] { cursor: pointer; }
tbody tr[data-href]:hover { background: var(--ink-50); }
.cell-title { font-weight: 780; }
.cell-subtitle { margin-top: 3px; color: var(--ink-500); font-size: 11px; }

.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 4px 9px; border-radius: 999px; color: var(--ink-700); background: var(--ink-100); font-size: 11px; font-weight: 800; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--danger { color: var(--red-700); background: var(--red-100); }
.badge--warning { color: var(--amber-600); background: var(--amber-100); }
.badge--success { color: var(--green-700); background: var(--green-100); }
.badge--info { color: var(--blue-700); background: var(--blue-100); }
.badge--neutral::before { display: none; }

.case-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px; border-radius: var(--radius-lg); color: var(--paper); background: var(--ink-900); box-shadow: var(--shadow-md); }
.case-hero__back { display: inline-flex; margin-bottom: 15px; color: var(--ink-300); font-size: 12px; text-decoration: none; }
.case-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.045em; }
.case-hero__meta { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 12px; color: var(--ink-300); font-size: 13px; }
.case-hero__meta .badge { color: var(--paper); background: rgba(255,255,255,.12); }
.case-hero__sla { min-width: 180px; padding: 17px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); background: rgba(255,255,255,.06); }
.case-hero__sla span { color: var(--ink-300); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.case-hero__sla strong { display: block; margin-top: 4px; font-size: 25px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 24px 0 18px; padding-bottom: 1px; border-bottom: 1px solid var(--ink-200); }
.tab { position: relative; padding: 12px 15px; border: 0; color: var(--ink-600); background: transparent; font-size: 13px; font-weight: 750; white-space: nowrap; }
.tab.is-active { color: var(--ink-950); }
.tab.is-active::after { content: ""; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 3px; border-radius: 3px 3px 0 0; background: var(--amber-500); }

.next-action { padding: 22px; border-left: 5px solid var(--amber-500); border-radius: var(--radius-md); background: var(--amber-100); }
.next-action__label { color: var(--amber-600); font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.next-action h2 { margin: 6px 0 5px; font-size: 23px; letter-spacing: -.03em; }
.next-action p { margin: 0; color: #80501a; font-size: 13px; }
.progress-list { display: grid; gap: 12px; }
.progress-row { display: grid; grid-template-columns: minmax(100px, 1fr) 2fr auto; gap: 12px; align-items: center; font-size: 12px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: var(--ink-100); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green-700); }

.channel-list { display: grid; gap: 12px; }
.channel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, .8fr) minmax(170px, 1.2fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--ink-100);
  border-left: 4px solid var(--ink-300);
  border-radius: 11px;
}
.channel--red { border-left-color: var(--red-700); }
.channel--amber { border-left-color: var(--amber-500); }
.channel--blue { border-left-color: var(--blue-700); }
.channel--green { border-left-color: var(--green-700); }
.channel__name { font-weight: 800; }
.channel__meta { margin-top: 3px; color: var(--ink-500); font-size: 11px; overflow-wrap: anywhere; }
.channel__actions { display: flex; gap: 6px; }

.timeline { display: grid; gap: 0; }
.timeline__item { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 0 0 22px; }
.timeline__item::before { content: ""; position: absolute; top: 17px; bottom: -2px; left: 7px; width: 1px; background: var(--ink-200); }
.timeline__item:last-child::before { display: none; }
.timeline__dot { position: relative; z-index: 1; width: 15px; height: 15px; margin-top: 3px; border: 3px solid var(--paper); border-radius: 50%; background: var(--ink-700); box-shadow: 0 0 0 1px var(--ink-300); }
.timeline__title { font-size: 13px; font-weight: 780; }
.timeline__detail { margin-top: 3px; color: var(--ink-500); font-size: 12px; }
.timeline__time { color: var(--ink-500); font-size: 11px; white-space: nowrap; }

.empty { padding: 44px 22px; text-align: center; }
.empty__icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 16px; color: var(--ink-600); background: var(--ink-100); }
.empty h3 { margin: 0 0 5px; }
.empty p { margin: 0 auto 17px; max-width: 460px; color: var(--ink-500); font-size: 13px; }
.loading { min-height: 260px; display: grid; place-items: center; color: var(--ink-500); }
.loading__dot { width: 28px; height: 28px; border: 3px solid var(--ink-200); border-top-color: var(--amber-500); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { padding: 13px 15px; border-radius: var(--radius-sm); color: var(--ink-700); background: var(--ink-100); font-size: 13px; }
.alert--warning { color: #7a4a12; background: var(--amber-100); }
.alert--danger { color: var(--red-700); background: var(--red-100); }
.alert--success { color: var(--green-700); background: var(--green-100); }
.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 9px; }
.toast { width: min(360px, calc(100vw - 40px)); padding: 13px 16px; border-radius: 10px; color: var(--paper); background: var(--ink-900); box-shadow: var(--shadow-md); font-size: 13px; animation: enter .18s ease-out; }
.toast--error { background: var(--red-700); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

.drawer-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; justify-items: end; background: rgba(11,29,41,.48); }
.drawer { width: min(620px, 100%); height: 100%; overflow-y: auto; padding: 26px; background: var(--canvas); box-shadow: -18px 0 50px rgba(11,29,41,.18); }
.drawer--wide { width: min(820px, 100%); }
.drawer__head { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.drawer__head h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--ink-200); border-radius: 50%; color: var(--ink-700); background: var(--paper); }

.admin-group { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ink-100); }
.admin-group:last-child { border-bottom: 0; }
.admin-group__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--ink-700); background: var(--ink-100); }
.admin-group h3 { margin: 0; font-size: 15px; }
.admin-group p { margin: 3px 0 0; color: var(--ink-500); font-size: 12px; }
.admin-card { display: flex; flex-direction: column; min-height: 285px; }
.admin-card .btn { margin-top: auto; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.admin-actions--end { margin-top: 18px; }
.manager-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 18px; }
.manager-head h3, .manager-head p { margin: 0; }
.manager-head p, .muted { margin-top: 4px; color: var(--ink-500); font-size: 13px; }
.admin-editor { padding: 24px; }
.check-row { display: flex; gap: 10px; align-items: center; margin: 4px 0 18px; color: var(--ink-700); font-size: 13px; font-weight: 700; }
.check-row input { width: 18px; height: 18px; accent-color: var(--teal-700); }
.builder-section { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--ink-100); }
.builder-row { display: grid; grid-template-columns: minmax(150px,1fr) minmax(140px,.8fr) minmax(150px,1fr) 38px; gap: 12px; align-items: end; margin-bottom: 10px; padding: 14px; border: 1px solid var(--ink-100); border-radius: 14px; background: var(--canvas); }
.builder-row--action { grid-template-columns: minmax(180px,.7fr) minmax(240px,1.3fr) 38px; }
.builder-row .field { margin-bottom: 0; }
.builder-row__remove { margin-bottom: 1px; color: var(--red-700); font-size: 20px; }
.action-config { display: grid; gap: 12px; }
.recipient-preview { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--ink-200); border-radius: 10px; font-size: 12px; overflow-wrap: anywhere; }
.recipient-preview strong { font-size: 13px; }
.recipient-preview--ok { color: var(--green-700); border-color: #b9dcc7; background: var(--green-100); }
.recipient-preview--warning { color: var(--red-700); border-color: #efc2bf; background: var(--red-100); }
.rule-destination { margin: 7px 0 !important; padding: 7px 9px; border-radius: 8px; color: var(--green-700) !important; background: var(--green-100); }
.rule-destination--warning { color: var(--red-700) !important; background: var(--red-100); }
.divider { margin: 28px 0; border: 0; border-top: 1px solid var(--ink-100); }
.preview-panel { margin-top: 20px; padding: 20px; border: 1px solid var(--ink-100); border-radius: 14px; background: var(--canvas); }
.preview-panel pre { overflow: auto; max-height: 340px; margin: 14px 0 0; padding: 14px; border-radius: 10px; white-space: pre-wrap; color: var(--ink-700); background: var(--ink-100); font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.callout { margin-bottom: 18px; padding: 16px 18px; border: 1px solid #bfdde5; border-radius: 14px; color: var(--ink-700); background: #eff8fa; }
.callout p { margin: 5px 0 0; font-size: 13px; }
.version-list { margin-top: 22px; }

@media (max-width: 1180px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel { grid-template-columns: 1fr 1fr; }
  .channel__actions { justify-content: flex-start; }
}
@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .login { grid-template-columns: 1fr; }
  .login__story { min-height: 340px; padding: 32px; }
  .login__foot { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { z-index: 40; width: 270px; transform: translateX(-105%); transition: transform .2s ease; }
  .shell.menu-open .sidebar { transform: translateX(0); }
  .shell.menu-open::after { content: ""; position: fixed; z-index: 35; inset: 0; background: rgba(11,29,41,.45); }
  .workspace { grid-column: 1; }
  .topbar .menu-button { display: grid; }
  .topbar { padding: 0 20px; }
  .grid--aside, .grid--2 { grid-template-columns: 1fr; }
  .case-hero { grid-template-columns: 1fr; }
  .case-hero__sla { min-width: 0; }
}
@media (max-width: 650px) {
  .login__story { min-height: 280px; }
  .login__message h1 { font-size: 40px; }
  .login__access { padding: 30px 20px 48px; }
  .login__language { top: 14px; right: 20px; }
  .topbar__context { display: none; }
  .language-control > span { display: none; }
  .content { padding-top: 25px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head__actions, .page-head__actions .btn { width: 100%; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .manager-head { align-items: stretch; flex-direction: column; }
  .manager-head .admin-actions, .manager-head > .btn { width: 100%; }
  .builder-row, .builder-row--action { grid-template-columns: 1fr; }
  .builder-row__remove { justify-self: end; }
  .admin-group { grid-template-columns: 42px minmax(0, 1fr); }
  .admin-group > .admin-actions, .admin-group > .btn, .admin-group > .badge { grid-column: 2; justify-self: start; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .filters select { width: 100%; }
  .channel { grid-template-columns: 1fr; }
  .channel__actions .btn { flex: 1; }
  .timeline__item { grid-template-columns: 30px minmax(0,1fr); }
  .timeline__time { grid-column: 2; }
  .progress-row { grid-template-columns: 1fr auto; }
  .progress-track { grid-column: 1 / -1; grid-row: 2; }
}
