:root {
  --app-bg: #f7f8fa;
  --sidebar-bg: #fbfbfc;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-subtle: #f4f5f7;
  --surface-hover: #f0f2f5;
  --text: #20242c;
  --text-strong: #111318;
  --muted: #687080;
  --muted-soft: #9097a5;
  --line: #e4e6ea;
  --line-strong: #d6d9df;
  --brand-navy: #182e73;
  --brand-yellow: #f7b23b;
  --primary: #182e73;
  --primary-hover: #12245d;
  --primary-soft: #edf1ff;
  --primary-text: #182e73;
  --on-primary: #ffffff;
  --danger: #d92d20;
  --danger-soft: #fff0ee;
  --warning: #b54708;
  --warning-soft: #fff4e8;
  --success: #067647;
  --success-soft: #eafaf1;
  --info: #175cd3;
  --info-soft: #eaf2ff;
  --control-bg: #ffffff;
  --control-line: #d7dbe2;
  --board-column: #f0f1f4;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 14px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --app-bg: #0c1221;
  --sidebar-bg: #10182a;
  --surface: #151e31;
  --surface-raised: #19243a;
  --surface-subtle: #1d2941;
  --surface-hover: #202d47;
  --text: #dce2ed;
  --text-strong: #f5f7fa;
  --muted: #9da9bd;
  --muted-soft: #748198;
  --line: #27344c;
  --line-strong: #394a68;
  --brand-navy: #182e73;
  --brand-yellow: #f7b23b;
  --primary: #f7b23b;
  --primary-hover: #ffc35d;
  --primary-soft: #382d19;
  --primary-text: #ffcb70;
  --on-primary: #17213a;
  --danger: #ff8a80;
  --danger-soft: #402321;
  --warning: #fdb022;
  --warning-soft: #3e3020;
  --success: #75e0a7;
  --success-soft: #17392b;
  --info: #84adff;
  --info-soft: #1d3154;
  --control-bg: #111a2b;
  --control-line: #394a68;
  --board-column: #10182a;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .22);
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, .22);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--app-bg); }
body { margin: 0; min-height: 100vh; background: var(--app-bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent); outline-offset: 2px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--text-strong); letter-spacing: -.025em; }
h1 { margin: 0; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.18; font-weight: 720; }
h2 { font-size: 16px; line-height: 1.35; }
h3 { font-size: 14px; line-height: 1.4; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 15px 14px 14px; background: var(--sidebar-bg); border-top: 3px solid var(--brand-yellow); border-right: 1px solid var(--line); z-index: 30; }
.sidebar-brand { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 3px 7px; color: var(--text-strong); text-decoration: none; }
.sidebar-brand > span:last-child { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sidebar-brand strong { font-size: 14px; font-weight: 750; letter-spacing: -.01em; }
.sidebar-brand small { color: var(--muted); font-size: 10px; letter-spacing: .025em; }
.salure-logo-wrap { flex: 0 0 auto; display: flex; align-items: center; width: 92px; height: 39px; padding: 4px 6px; border: 1px solid rgba(24, 46, 115, .08); border-radius: 8px; background: #ffffff; }
.salure-logo { display: block; width: 100%; height: auto; }
.product-lockup { padding-left: 10px; border-left: 1px solid var(--line); }
.brand-mark, .mobile-brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border-radius: 8px; background: var(--brand-navy); color: #ffffff; font-weight: 800; font-size: 14px; box-shadow: var(--shadow-xs); }
:root[data-theme="dark"] .mobile-brand-mark { background: var(--brand-yellow); color: var(--brand-navy); }
.workspace-switcher { margin: 20px 3px 12px; padding: 9px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.workspace-switcher > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.workspace-switcher strong { color: var(--text-strong); font-size: 12px; }
.workspace-switcher small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-avatar, .user-avatar { display: grid; place-items: center; border-radius: 8px; background: var(--brand-yellow); color: var(--brand-navy); font-size: 10px; font-weight: 800; }
.workspace-avatar { width: 30px; height: 30px; }
.workspace-chevron { color: var(--muted-soft); }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label { margin: 15px 9px 5px; color: var(--muted-soft); font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.nav-label-secondary { margin-top: 22px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 560; text-decoration: none; }
.nav-item:hover { background: var(--surface-hover); color: var(--text-strong); }
.nav-item.is-active { background: var(--primary-soft); color: var(--primary-text); font-weight: 680; }
.nav-item.is-active::before { content: ""; position: absolute; left: -11px; top: 9px; width: 3px; height: 20px; border-radius: 0 4px 4px 0; background: var(--primary); }
.nav-symbol { position: relative; width: 16px; height: 16px; flex: 0 0 16px; color: currentColor; }
.nav-symbol::before, .nav-symbol::after { content: ""; position: absolute; border: 1.5px solid currentColor; }
.nav-symbol-today::before { inset: 1px; border-radius: 50%; }
.nav-symbol-today::after { left: 7px; top: 4px; width: 3px; height: 4px; border-width: 0 0 1.5px 1.5px; }
.nav-symbol-inbox::before { inset: 3px 1px 2px; border-radius: 3px; }
.nav-symbol-inbox::after { left: 4px; right: 4px; bottom: 5px; height: 3px; border-width: 0 0 1.5px; }
.nav-symbol-list::before { inset: 2px 1px; border-radius: 3px; }
.nav-symbol-list::after { left: 5px; right: 3px; top: 6px; height: 4px; border-width: 1.5px 0; }
.nav-symbol-board::before { inset: 2px 1px; border-radius: 3px; }
.nav-symbol-board::after { top: 3px; bottom: 3px; left: 7px; border-width: 0 0 0 1.5px; }
.nav-symbol-calendar::before { inset: 2px 1px 1px; border-radius: 3px; }
.nav-symbol-calendar::after { left: 3px; right: 3px; top: 6px; height: 1px; border-width: 1.5px 0 0; box-shadow: 0 3px 0 currentColor; }
.nav-symbol-plus::before { width: 12px; left: 2px; top: 7px; border-width: 1.5px 0 0; }
.nav-symbol-plus::after { height: 12px; left: 7px; top: 2px; border-width: 0 0 0 1.5px; }
.nav-count { margin-left: auto; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #ffffff; font-size: 9px; font-weight: 800; }
.sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.account-card { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 7px 5px; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; }
.account-copy { min-width: 0; display: flex; flex-direction: column; }
.account-copy strong, .account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { color: var(--text-strong); font-size: 11px; }
.account-copy small { color: var(--muted); font-size: 9px; }
.icon-button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-button:hover { background: var(--surface-hover); color: var(--text-strong); }

.workspace-shell { min-width: 0; }
.utilitybar { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 32px; background: color-mix(in srgb, var(--app-bg) 88%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.utility-context, .utility-actions { display: flex; align-items: center; gap: 12px; }
.utility-context > span:last-child { display: flex; flex-direction: column; }
.utility-context strong { color: var(--text-strong); font-size: 12px; }
.utility-context small { color: var(--muted); font-size: 10px; }
.mobile-brand-mark { display: none; }
.theme-control { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 5px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-xs); }
.theme-control select { width: auto; min-width: 105px; padding: 4px 22px 4px 2px; border: 0; background: transparent; color: var(--muted); font-size: 11px; outline: 0; cursor: pointer; }
.theme-indicator { width: 11px; height: 11px; border: 3px solid var(--text-strong); border-radius: 50%; box-shadow: inset 5px 0 0 var(--surface); }
.page { width: min(100%, 1540px); margin: 0 auto; padding: 36px 40px 72px; }
.public-page { min-height: calc(100vh - 68px); padding: 24px; }
.public-topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; border-top: 3px solid var(--brand-yellow); border-bottom: 1px solid var(--line); background: var(--surface); }

.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; margin-bottom: 26px; }
.page-heading-copy { max-width: 680px; }
.page-heading p:not(.eyebrow) { max-width: 620px; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.eyebrow { margin: 0 0 7px; color: var(--primary); font-size: 9px; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button { min-height: 38px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 650; font-size: 12px; line-height: 1; text-decoration: none; box-shadow: var(--shadow-xs); cursor: pointer; }
.button:hover { transform: translateY(-1px); border-color: var(--muted-soft); background: var(--surface-hover); box-shadow: var(--shadow-sm); }
.button-primary, .button:not(.button-secondary) { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.button-primary:hover, .button:not(.button-secondary):hover { border-color: var(--primary-hover); background: var(--primary-hover); }
.button-secondary { background: var(--surface); color: var(--text); }
.button-small, .button-compact { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--primary); font: inherit; cursor: pointer; text-decoration: none; }
.link-button:hover { text-decoration: underline; }

.flash { margin-bottom: 18px; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); border-radius: 9px; background: var(--info-soft); color: var(--info); font-size: 12px; }
.flash-error, .text-error { color: var(--danger); }
.flash-error { border-color: color-mix(in srgb, var(--danger) 25%, transparent); background: var(--danger-soft); }
.flash-success { border-color: color-mix(in srgb, var(--success) 25%, transparent); background: var(--success-soft); color: var(--success); }

.sync-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 0 0 18px; }
.sync-state { position: relative; min-height: 74px; display: grid; grid-template-columns: 8px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-content: center; padding: 14px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.sync-state::before { content: ""; grid-row: 1 / 3; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.sync-state strong { color: var(--text-strong); font-size: 11px; }
.sync-state span, .sync-state small { color: var(--muted); font-size: 10px; }

.filters { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(130px, auto)) auto; gap: 8px; margin: 0 0 16px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
input, select, textarea { width: 100%; border: 1px solid var(--control-line); border-radius: 7px; background: var(--control-bg); padding: 9px 10px; color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--muted-soft); }
input:hover, select:hover, textarea:hover { border-color: var(--muted-soft); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent); outline: 0; }
textarea { min-height: 98px; resize: vertical; }
label > span { display: block; margin-bottom: 6px; color: var(--text-strong); font-size: 11px; font-weight: 680; }
label small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.errorlist { margin: 5px 0 0; padding-left: 16px; color: var(--danger); font-size: 10px; }

.mail-list { display: grid; gap: 8px; }
.mail-card { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; padding: 15px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.mail-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.mail-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary-text); font-size: 11px; font-weight: 760; }
.mail-content { min-width: 0; }
.mail-content h2 { margin: 0 0 2px; font-size: 13px; }
.mail-content p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.mail-content .sender { margin: 0; color: var(--muted); font-size: 10px; }
.mail-side { min-width: 150px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mail-meta, .board-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.mail-card .actions { justify-content: flex-end; }
.attachment { display: inline-flex; align-items: center; margin-top: 9px; color: var(--warning); font-size: 9px; }
.attachment::before { content: "⌕"; margin-right: 4px; }

.badge, .status { display: inline-flex; align-items: center; gap: 5px; width: fit-content; min-height: 21px; padding: 2px 7px; border-radius: 999px; background: var(--surface-subtle); color: var(--muted); font-size: 9px; font-weight: 700; white-space: nowrap; }
.badge-alert { background: var(--danger-soft); color: var(--danger); }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-todo { background: var(--info-soft); color: var(--info); }
.status-in_progress { background: var(--warning-soft); color: var(--warning); }
.status-waiting { background: var(--primary-soft); color: var(--primary-text); }
.status-done { background: var(--success-soft); color: var(--success); }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--surface-subtle); color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
tbody tr { transition: background-color .14s ease; }
tbody tr:hover { background: var(--surface-hover); }
tbody tr:last-child td { border-bottom: 0; }
td { font-size: 11px; }
td small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.ticket-link { margin-right: 7px; color: var(--text-strong); font-size: 12px; font-weight: 680; text-decoration: none; }
.ticket-link:hover { color: var(--primary); }
td:last-child { width: 190px; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }

.ticket-quick-actions { position: relative; display: flex; align-items: center; gap: 4px; }
.ticket-quick-actions form { margin: 0; }
.quick-action-button { width: 29px; height: 29px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1; box-shadow: var(--shadow-xs); cursor: pointer; list-style: none; }
.quick-action-button::-webkit-details-marker { display: none; }
.quick-action-button:hover { border-color: var(--line-strong); background: var(--surface-hover); color: var(--text-strong); }
.quick-action-button.is-active { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); background: var(--primary-soft); color: var(--primary-text); }
.snooze-menu { position: relative; }
.snooze-popover { position: absolute; z-index: 60; top: 35px; right: 0; width: 210px; display: grid; gap: 3px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-raised); box-shadow: var(--shadow-md); }
.snooze-popover strong { padding: 5px 7px; color: var(--text-strong); font-size: 10px; }
.snooze-popover button { width: 100%; padding: 7px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-size: 10px; text-align: left; cursor: pointer; }
.snooze-popover button:hover { background: var(--surface-hover); }
.custom-snooze { display: grid; grid-template-columns: 1fr; gap: 4px; padding-top: 5px; margin-top: 3px !important; border-top: 1px solid var(--line); }
.custom-snooze input { padding: 6px 7px; font-size: 9px; }
.inline-status select { width: auto; min-width: 92px; padding: 6px 24px 6px 8px; border-color: var(--line); font-size: 9px; }

.dashboard-heading { margin-bottom: 22px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-bottom: 20px; }
.metric-card { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); text-decoration: none; }
.metric-card:hover { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.metric-card > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.metric-card strong { color: var(--text-strong); font-size: 20px; line-height: 1.05; letter-spacing: -.04em; }
.metric-card small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.metric-card-alert strong { color: var(--danger); }
.metric-icon { position: relative; width: 29px; height: 29px; flex: 0 0 29px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-text); }
.metric-icon::before, .metric-icon::after { content: ""; position: absolute; border: 1.5px solid currentColor; }
.metric-inbox::before { inset: 8px 6px 6px; border-radius: 3px; }
.metric-inbox::after { left: 10px; right: 10px; bottom: 9px; border-width: 0 0 1.5px; }
.metric-reply::before { left: 7px; top: 7px; width: 14px; height: 10px; border-radius: 3px; }
.metric-reply::after { left: 10px; bottom: 7px; width: 5px; height: 5px; border-width: 0 0 1.5px 1.5px; transform: skew(-25deg); }
.metric-today::before { inset: 6px; border-radius: 4px; }
.metric-today::after { left: 10px; right: 10px; top: 12px; border-width: 1.5px 0 0; }
.metric-overdue { background: var(--danger-soft); color: var(--danger); }
.metric-overdue::before { inset: 5px; border-radius: 50%; }
.metric-overdue::after { left: 13px; top: 9px; height: 8px; border-width: 0 0 0 1.5px; }
.metric-follow::before { inset: 6px; border-radius: 50%; }
.metric-follow::after { left: 13px; top: 10px; width: 5px; height: 4px; border-width: 0 0 1.5px 1.5px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr); gap: 14px; align-items: start; }
.dashboard-panel { padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 3px 13px; }
.panel-heading h2 { margin: 0; font-size: 14px; }
.panel-heading .eyebrow { margin-bottom: 3px; }
.panel-heading > a { color: var(--muted); font-size: 10px; text-decoration: none; }
.panel-heading > a:hover { color: var(--primary); }
.panel-count { min-width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-subtle); color: var(--muted); font-size: 10px; font-weight: 750; }
.focus-list, .follow-up-list { display: grid; gap: 7px; }
.focus-ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-raised); }
.focus-ticket.is-pinned { border-left: 3px solid var(--brand-yellow); }
.focus-ticket-heading { display: flex; align-items: center; gap: 7px; }
.focus-ticket-heading > a { color: var(--text-strong); font-size: 11px; font-weight: 690; text-decoration: none; }
.focus-ticket-heading > a:hover { color: var(--primary); }
.pin-label { padding: 2px 5px; border-radius: 5px; background: var(--primary-soft); color: var(--primary-text); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.focus-ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 5px; color: var(--muted); font-size: 9px; }
.focus-ticket-actions { display: flex; align-items: center; gap: 7px; }
.reason-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.reason-list span { padding: 3px 6px; border-radius: 999px; background: var(--surface-subtle); color: var(--muted); font-size: 8px; font-weight: 650; }
.reason-list span:first-child { background: var(--primary-soft); color: var(--primary-text); }
.follow-up-panel { position: sticky; top: 80px; }
.follow-up-card { position: relative; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-raised); }
.follow-up-card > a { display: block; padding-right: 60px; color: var(--text-strong); font-size: 10px; font-weight: 680; text-decoration: none; }
.follow-up-card > span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.follow-up-card > .ticket-quick-actions { position: absolute; top: 9px; right: 9px; }
.empty-state-compact { padding: 30px 14px; }

.board { display: grid; grid-template-columns: repeat(4, minmax(245px, 1fr)); gap: 10px; overflow-x: auto; align-items: start; padding-bottom: 10px; }
.board-column { min-height: 430px; padding: 10px; background: var(--board-column); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.board-column > header { display: flex; justify-content: space-between; align-items: center; padding: 3px 4px 11px; }
.board-column > header h2 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 11px; letter-spacing: 0; }
.board-column > header h2::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted-soft); }
.board-column > header > span { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 9px; font-weight: 700; }
.board-card { margin-bottom: 8px; padding: 13px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow-xs); }
.board-card:hover { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.board-card > a { display: block; margin-bottom: 8px; color: var(--text-strong); font-size: 11px; font-weight: 680; text-decoration: none; }
.board-card p, .column-empty { margin: 7px 0; color: var(--muted); font-size: 9px; }
.board-card select { margin-top: 9px; padding: 6px 8px; border-color: var(--line); font-size: 9px; }
.column-empty { padding: 22px 5px; text-align: center; }

.board-heading { margin-bottom: 14px; }
.view-switcher { width: fit-content; display: inline-flex; gap: 3px; padding: 3px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-subtle); box-shadow: var(--shadow-xs); }
.view-switcher a { min-width: 74px; padding: 7px 12px; border-radius: 6px; color: var(--muted); font-size: 10px; font-weight: 680; text-align: center; text-decoration: none; }
.view-switcher a:hover { color: var(--text-strong); }
.view-switcher a.is-active { background: var(--surface); color: var(--text-strong); box-shadow: var(--shadow-xs); }
.board-filters { grid-template-columns: minmax(220px, 1fr) 130px 145px auto auto; margin-bottom: 16px; }
.filter-check { min-height: 35px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.filter-check input { width: 14px; height: 14px; margin: 0; accent-color: var(--primary); }
.filter-check span { margin: 0; color: var(--muted); font-size: 9px; white-space: nowrap; }

.calendar-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding: 11px 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); }
.calendar-toolbar h2 { margin: 0; font-size: 14px; text-align: center; text-transform: capitalize; }
.calendar-period-nav, .calendar-date-jump { display: flex; align-items: center; gap: 6px; }
.calendar-date-jump { justify-content: flex-end; }
.calendar-date-jump input { width: 132px; padding-block: 7px; font-size: 9px; }
.calendar-date-jump .button, .calendar-today { min-height: 31px; padding-block: 6px; font-size: 9px; }
.calendar-nav-button { display: grid; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }

.calendar-exceptions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.exception-strip { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); }
.exception-strip summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--text-strong); font-size: 10px; font-weight: 700; cursor: pointer; list-style: none; }
.exception-strip summary::-webkit-details-marker { display: none; }
.exception-strip summary::before { content: "›"; color: var(--muted); font-size: 15px; transform-origin: center; transition: transform .16s ease; }
.exception-strip[open] summary::before { transform: rotate(90deg); }
.exception-strip summary strong { min-width: 20px; height: 20px; display: grid; place-items: center; margin-left: auto; border-radius: 6px; background: var(--surface-subtle); color: var(--muted); font-size: 9px; }
.exception-ticket-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px; padding: 0 8px 8px; }
.exception-ticket-list > p { margin: 0; padding: 8px 4px; color: var(--muted); font-size: 9px; }

.week-calendar { display: grid; grid-template-columns: repeat(7, minmax(145px, 1fr)); gap: 7px; overflow-x: auto; padding-bottom: 8px; }
.calendar-day { min-width: 0; border: 1px solid var(--line); background: var(--surface); transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.week-day { min-height: 390px; padding: 8px; border-radius: var(--radius); }
.week-day > header { display: grid; grid-template-columns: auto 1fr auto; gap: 5px; align-items: center; min-height: 34px; padding: 2px 3px 9px; border-bottom: 1px solid var(--line); }
.week-day > header span { color: var(--muted); font-size: 8px; font-weight: 760; text-transform: uppercase; }
.week-day > header time { color: var(--text-strong); font-size: 9px; font-weight: 680; text-transform: capitalize; }
.week-day > header strong { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; background: var(--surface-subtle); color: var(--muted); font-size: 8px; }
.calendar-day.is-today { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); box-shadow: inset 0 2px 0 var(--primary); }
.calendar-day.is-drop-target { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 28%, transparent); }
.calendar-day-tickets { display: grid; align-content: start; gap: 5px; padding-top: 7px; }
.calendar-day-empty { margin: 22px 0; color: var(--muted-soft); font-size: 8px; text-align: center; }

.month-calendar { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.calendar-weekdays, .month-week { min-width: 805px; display: grid; grid-template-columns: repeat(7, minmax(115px, 1fr)); }
.calendar-weekdays { border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.calendar-weekdays span { padding: 9px 10px; color: var(--muted); font-size: 8px; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.month-week:not(:last-child) { border-bottom: 1px solid var(--line); }
.month-day { min-height: 132px; padding: 7px; border: 0; border-radius: 0; }
.month-day:not(:last-child) { border-right: 1px solid var(--line); }
.month-day > header { display: flex; justify-content: flex-end; min-height: 20px; }
.month-day > header time { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); font-size: 9px; font-weight: 700; }
.month-day.is-today > header time { background: var(--primary); color: #ffffff; }
.month-day.is-outside { background: var(--surface-subtle); }
.month-day.is-outside > header, .month-day.is-outside .calendar-ticket { opacity: .55; }
.calendar-more { display: block; padding: 5px 4px 2px; color: var(--primary-text); font-size: 8px; font-weight: 700; text-decoration: none; }

.calendar-ticket { position: relative; min-width: 0; padding: 8px 27px 8px 9px; border: 1px solid var(--line); border-left: 3px solid var(--muted-soft); border-radius: 7px; background: var(--surface-raised); box-shadow: var(--shadow-xs); }
.calendar-ticket[draggable="true"] { cursor: grab; }
.calendar-ticket[draggable="true"]:active { cursor: grabbing; }
.calendar-ticket.is-dragging { opacity: .45; }
.calendar-ticket.priority-urgent { border-left-color: var(--danger); }
.calendar-ticket.priority-high { border-left-color: var(--warning); }
.calendar-ticket.priority-normal { border-left-color: var(--info); }
.calendar-ticket.priority-low { border-left-color: var(--success); }
.calendar-ticket.is-complete { opacity: .68; }
.calendar-ticket > a { display: block; overflow: hidden; color: var(--text-strong); font-size: 9px; font-weight: 690; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.calendar-ticket > a:hover { color: var(--primary); }
.calendar-ticket-meta { min-width: 0; display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--muted); font-size: 7px; }
.calendar-ticket-meta > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-ticket-meta .status { min-height: 17px; padding: 1px 5px; font-size: 7px; }
.calendar-replan-button { position: absolute; top: 6px; right: 5px; width: 21px; height: 21px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.calendar-replan-button:hover { background: var(--surface-hover); color: var(--text-strong); }

.calendar-integration-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.calendar-legend, .calendar-integration-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.calendar-legend span, .calendar-integration-actions, .calendar-last-sync { color: var(--muted); font-size: 8px; }
.calendar-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 3px; vertical-align: -1px; }
.legend-ticket { background: var(--info); }
.legend-outlook { background: #7950f2; }
.calendar-integration-actions form { margin: 0; }
.calendar-integration-actions > a { font-size: 8px; font-weight: 700; text-decoration: none; }
.compact-switch { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.compact-switch input { margin: 0; accent-color: var(--primary); }
.calendar-notice, .calendar-warning { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--info) 30%, var(--line)); border-radius: var(--radius); background: var(--info-soft); color: var(--text); }
.calendar-notice { font-size: 9px; }
.calendar-notice a { font-weight: 750; }
.calendar-warning { border-color: color-mix(in srgb, var(--warning) 35%, var(--line)); background: var(--warning-soft); }
.calendar-warning strong { display: block; color: var(--text-strong); font-size: 11px; }
.calendar-warning p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.compact-warning { padding: 9px 12px; }

.outlook-event { position: relative; min-width: 0; padding: 7px 8px; border: 1px solid var(--line); border-left: 3px solid #7950f2; border-radius: 7px; background: color-mix(in srgb, #7950f2 7%, var(--surface-raised)); box-shadow: var(--shadow-xs); }
.outlook-event-time { display: block; margin-bottom: 2px; color: var(--muted); font-size: 7px; font-weight: 750; }
.outlook-event > a, .outlook-event > strong { display: block; overflow: hidden; color: var(--text-strong); font-size: 9px; font-weight: 690; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.outlook-event > a:hover { color: var(--primary); }
.outlook-event-calendar { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.outlook-event.is-all-day { background: color-mix(in srgb, #7950f2 12%, var(--surface-raised)); }
.calendar-color-lightblue { border-left-color: #3b82f6; }
.calendar-color-lightgreen { border-left-color: #22c55e; }
.calendar-color-lightorange { border-left-color: #f97316; }
.calendar-color-lightgray { border-left-color: #94a3b8; }
.calendar-color-lightyellow { border-left-color: #eab308; }
.calendar-color-lightteal { border-left-color: #14b8a6; }
.calendar-color-lightpink { border-left-color: #ec4899; }
.calendar-color-lightbrown { border-left-color: #a16207; }
.calendar-color-lightred { border-left-color: #ef4444; }
.calendar-color-dot { width: 10px; height: 10px; border-radius: 50%; background: #7950f2; }
.calendar-color-dot.calendar-color-lightblue { background: #3b82f6; }
.calendar-color-dot.calendar-color-lightgreen { background: #22c55e; }
.calendar-color-dot.calendar-color-lightorange { background: #f97316; }
.calendar-color-dot.calendar-color-lightgray { background: #94a3b8; }
.calendar-color-dot.calendar-color-lightyellow { background: #eab308; }
.calendar-color-dot.calendar-color-lightteal { background: #14b8a6; }
.calendar-color-dot.calendar-color-lightpink { background: #ec4899; }
.calendar-color-dot.calendar-color-lightbrown { background: #a16207; }
.calendar-color-dot.calendar-color-lightred { background: #ef4444; }

.calendar-settings-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); gap: 14px; align-items: start; }
.settings-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.settings-panel > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.settings-panel h2, .settings-panel .eyebrow { margin: 0; }
.read-only-badge { padding: 4px 7px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 8px; font-weight: 780; text-transform: uppercase; letter-spacing: .05em; }
.calendar-option-list { display: grid; padding: 8px; }
.calendar-option { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px; cursor: pointer; }
.calendar-option:hover { background: var(--surface-hover); }
.calendar-option input { position: absolute; opacity: 0; pointer-events: none; }
.calendar-option-copy { min-width: 0; display: flex; flex-direction: column; }
.calendar-option-copy strong { overflow: hidden; color: var(--text-strong); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-option-copy small { color: var(--muted); font-size: 8px; }
.calendar-checkmark { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--control-line); border-radius: 6px; color: transparent; font-size: 11px; }
.calendar-option input:checked ~ .calendar-checkmark { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.settings-actions { display: flex; justify-content: flex-end; padding: 12px 20px 18px; border-top: 1px solid var(--line); }
.privacy-panel { padding: 20px; }
.privacy-list { display: grid; gap: 10px; margin: 16px 0 20px; padding: 0; list-style: none; color: var(--muted); font-size: 9px; }
.privacy-list li { padding-left: 17px; position: relative; }
.privacy-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.privacy-list strong { color: var(--text-strong); }
.settings-toggle-form { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.preference-switch { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; cursor: pointer; }
.preference-switch input { margin-top: 3px; accent-color: var(--primary); }
.preference-switch span { display: flex; flex-direction: column; }
.preference-switch strong { color: var(--text-strong); font-size: 10px; }
.preference-switch small { color: var(--muted); font-size: 8px; }
.compact-empty { padding: 25px; }

.deadline-dialog { width: min(430px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow-md); }
.deadline-dialog::backdrop { background: rgba(4, 8, 18, .58); backdrop-filter: blur(2px); }
.deadline-dialog form { display: grid; gap: 15px; padding: 20px; }
.dialog-heading { display: flex; align-items: center; gap: 11px; }
.dialog-heading h2, .dialog-heading p { margin: 0; }
.calendar-dialog-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary-text); }
.deadline-dialog > form > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.deadline-dialog input { width: 100%; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.detail-main > h2 { margin: 25px 0 11px; font-size: 12px; }
.description { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow-xs); }
.description p { margin: 0; }
.timeline { position: relative; display: grid; gap: 9px; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.timeline-item { position: relative; margin-left: 36px; padding: 15px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.timeline-item::before { content: ""; position: absolute; left: -25px; top: 18px; width: 9px; height: 9px; border: 3px solid var(--app-bg); border-radius: 50%; background: var(--info); box-shadow: 0 0 0 1px var(--line); }
.timeline-note::before { background: var(--primary); }
.timeline-reply::before { background: var(--success); }
.timeline-item header { display: grid; grid-template-columns: 1fr auto; gap: 1px 14px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.timeline-item header strong { color: var(--text-strong); font-size: 11px; }
.timeline-item header span, .timeline-item time { color: var(--muted); font-size: 9px; }
.timeline-item time { grid-column: 2; grid-row: 1 / 3; }
.timeline-item h3 { margin: 0 0 8px; }
.mail-body { overflow-x: auto; color: var(--text); font-size: 11px; }
.detail-aside { position: sticky; top: 84px; }
.side-card { margin-bottom: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.side-card h2 { margin: 0 0 13px; font-size: 11px; letter-spacing: 0; }
.side-card form { display: grid; gap: 10px; }
.side-card dl { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; margin: 0 0 14px; }
.side-card dt { color: var(--muted); font-size: 9px; }
.side-card dd { margin: 0; color: var(--text-strong); font-size: 10px; font-weight: 570; overflow-wrap: anywhere; }
.ticket-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }

.form-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 320px); gap: 18px; align-items: start; }
.form-card, .source-preview { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.form-card { display: grid; gap: 16px; }
.form-card > label { display: block; }
.source-preview { display: flex; flex-direction: column; }
.source-preview strong { color: var(--text-strong); font-size: 11px; }
.source-preview span, .source-preview p { color: var(--muted); font-size: 10px; }
.source-preview p { margin-bottom: 0; }
.empty-state { padding: 56px 24px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); text-align: center; }
.empty-state h2 { margin-top: 0; }

.hero { min-height: calc(100vh - 116px); display: grid; place-items: center; text-align: center; }
.hero > div { width: min(720px, 100%); }
.hero h1 { margin: 10px 0 18px; font-size: clamp(42px, 7vw, 78px); line-height: 1.02; letter-spacing: -.055em; }
.hero p:not(.eyebrow) { max-width: 580px; margin: 0 auto 26px; color: var(--muted); font-size: 16px; }
.narrow { max-width: 640px; margin: 80px auto; }
.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; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .page { padding-inline: 28px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .board-filters input[type="search"] { grid-column: 1 / -1; }
  .calendar-toolbar { grid-template-columns: 1fr auto; }
  .calendar-toolbar h2 { grid-column: 1 / -1; grid-row: 1; }
  .calendar-period-nav, .calendar-date-jump { grid-row: 2; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-brand, .workspace-switcher, .sidebar-footer, .nav-label { display: none; }
  .sidebar-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .nav-item { white-space: nowrap; }
  .nav-item.is-active::before { left: 10px; right: 10px; top: auto; bottom: -10px; width: auto; height: 2px; border-radius: 2px 2px 0 0; }
  .utilitybar { top: 0; height: 58px; padding-inline: 18px; }
  .mobile-brand-mark { display: grid; width: 27px; height: 27px; }
  .utility-context small { display: none; }
  .page { padding: 26px 18px 60px; }
  .detail-grid, .form-layout { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .calendar-exceptions { grid-template-columns: 1fr; }
  .calendar-settings-grid { grid-template-columns: 1fr; }
  .calendar-integration-bar { align-items: flex-start; flex-direction: column; }
  .week-calendar { grid-template-columns: 1fr; overflow: visible; }
  .week-day { min-height: 105px; }
  .follow-up-panel { position: static; }
  .detail-aside { position: static; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input[type="search"] { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .utility-context > span:last-child { display: none; }
  .utility-actions { margin-left: auto; }
  .button-compact { font-size: 0; }
  .button-compact span { font-size: 15px; }
  .page-heading { flex-direction: column; }
  .filters { grid-template-columns: 1fr; }
  .filters input[type="search"] { grid-column: auto; }
  .mail-card { grid-template-columns: 34px minmax(0, 1fr); }
  .mail-avatar { width: 34px; height: 34px; }
  .mail-side { grid-column: 1 / -1; min-width: 0; align-items: flex-start; padding-left: 46px; }
  .mail-card .actions { justify-content: flex-start; }
  .theme-control select { min-width: 90px; }
  .public-topbar { padding-inline: 18px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view-switcher { width: 100%; }
  .view-switcher a { min-width: 0; flex: 1; }
  .calendar-toolbar { display: flex; flex-direction: column; align-items: stretch; }
  .calendar-toolbar h2 { order: -1; }
  .calendar-period-nav, .calendar-date-jump { justify-content: center; }
  .calendar-date-jump input { width: 100%; }
  .calendar-date-jump label { flex: 1; }
  .calendar-integration-actions { align-items: flex-start; flex-direction: column; }
  .calendar-warning { align-items: flex-start; flex-direction: column; }
  .focus-ticket { grid-template-columns: 1fr; }
  .focus-ticket-actions { justify-content: space-between; }
}
