/* Source: base.css */
@font-face {
    font-family: Gateway;
    src: local('Inter'), local('Segoe UI'), local('Arial');
}
:root {
    --bg: #11161e;
    --sidebar: #151b24;
    --panel: #1a222d;
    --panel2: #202b38;
    --input: #141c26;
    --line: #2b3543;
    --text: #edf1f6;
    --muted: #96a3b6;
    --accent: #efa05a;
    --accent-hover: #ffb474;
    --accent-bg: #352b25;
    --green: #7cd6ae;
    --green-bg: #1f3631;
    --red: #f79293;
    --red-bg: #3a262c;
    --blue: #8fbaff;
    --blue-bg: #24334c;
    --shadow: 0 20px 60px #0004;
    --radius: 15px;
    color-scheme: dark;
}
[data-theme='light'] {
    --bg: #f3f5f8;
    --sidebar: #fff;
    --panel: #fff;
    --panel2: #f6f8fb;
    --input: #f7f9fc;
    --line: #e2e7ef;
    --text: #202b3c;
    --muted: #65758a;
    --accent: #b65a17;
    --accent-hover: #d37432;
    --accent-bg: #fff1e5;
    --green: #198d64;
    --green-bg: #e9f8f1;
    --red: #c44357;
    --red-bg: #ffedf0;
    --blue: #336bba;
    --blue-bg: #eaf1ff;
    --shadow: 0 20px 60px #24324b15;
    color-scheme: light;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family:
        Gateway,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    font-size: 14px;
    line-height: 1.55;
    background: var(--bg);
    color: var(--text);
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: wait;
    opacity: 0.55;
}
a {
    color: inherit;
    text-decoration: none;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 10px;
}
h2 {
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}
h3 {
    font-size: 15px;
}
p {
    margin-bottom: 14px;
}
.muted {
    color: var(--muted);
}
.small,
small {
    font-size: 12px;
}
.eyebrow {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.8px;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}
.icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
    width: 38px;
    height: 38px;
    border-radius: 9px;
}
.icon-button:hover {
    background: var(--panel2);
    border-color: var(--line);
    color: var(--text);
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px 15px;
    font-weight: 650;
    font-size: 12px;
    background: var(--panel);
    color: var(--text);
    min-height: 40px;
    white-space: nowrap;
}
.button:hover {
    background: var(--panel2);
}
.button.primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}
[data-theme='light'] .button.primary {
    color: #fff;
}
.button.primary:hover {
    background: var(--accent-hover);
}
.button.danger {
    color: var(--red);
    border-color: var(--red-bg);
}
.button.ghost {
    background: transparent;
}
.button .icon {
    width: 16px;
    height: 16px;
}
.button.full {
    width: 100%;
    justify-content: space-between;
    font-size: 14px;
    padding: 13px 16px;
}
.button.small {
    padding: 7px 10px;
    min-height: 34px;
    font-size: 11px;
}
.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: var(--muted);
    flex-shrink: 0;
}
.dot.green {
    background: var(--green);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 12%, transparent);
}
.dot.red {
    background: var(--red);
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
    color: var(--muted);
    background: var(--panel2);
}
.badge.queued {
    color: var(--accent);
    background: var(--accent-bg);
}
.badge.processing,
.badge.retry_wait {
    color: var(--blue);
    background: var(--blue-bg);
}
.badge.submitted,
.badge.active {
    color: var(--green);
    background: var(--green-bg);
}
.badge.failed,
.badge.error {
    color: var(--red);
    background: var(--red-bg);
}
.badge.warning {
    color: var(--accent);
    background: var(--accent-bg);
}
.mono,
code,
pre {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
}
.break {
    overflow-wrap: anywhere;
}
.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background: radial-gradient(ellipse at 10% 80%, #27364355, transparent 65%), var(--bg);
}
.auth-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    width: min(980px, 100%);
    min-height: 600px;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: var(--shadow);
}
.auth-story {
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, var(--sidebar), var(--panel2));
}
.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.auth-brand img {
    width: 160px;
    max-height: 56px;
    object-fit: contain;
}
.auth-brand span {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--muted);
}
.auth-story h1 {
    font-size: 42px;
    line-height: 1.16;
    margin: 18px 0;
}
.auth-story p {
    color: var(--muted);
    font-size: 13px;
}
.story-flow {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 25px;
}
.story-flow span:nth-child(odd) {
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-family: monospace;
    font-size: 12px;
    color: var(--accent);
}
.story-flow span:nth-child(even) {
    color: var(--muted);
}
.auth-card {
    padding: 60px 46px;
    align-self: center;
    width: 100%;
    max-width: 480px;
}
.auth-card h2 {
    font-size: 27px;
    margin: 10px 0;
}
.brand-mark {
    height: 54px;
    width: 54px;
    border-radius: 16px;
    background: var(--accent);
    color: #192330;
    font-size: 26px;
    display: grid;
    place-items: center;
    font-weight: 750;
    margin-bottom: 28px;
    position: relative;
}
.brand-mark span {
    font-size: 13px;
    position: absolute;
    top: 8px;
    right: 8px;
}
.auth-card form {
    margin-top: 32px;
}
.auth-note {
    margin-top: 22px;
    text-align: center;
}
.form-error {
    color: var(--red);
    font-size: 12px;
    min-height: 20px;
    overflow-wrap: anywhere;
}
label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 17px;
    color: var(--muted);
}
input,
textarea,
select {
    background: var(--input);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 11px 12px;
    min-width: 0;
    width: 100%;
    font-weight: 400;
    outline: none;
}
input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}
textarea {
    resize: vertical;
    min-height: 86px;
}
input::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: 0.6;
}
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
label.check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 400;
}
input[type='checkbox'] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    box-shadow: none;
}
.hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: -10px;
    margin-bottom: 18px;
}
.dashboard-body {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 238px;
    background: var(--sidebar);
    border-right: 1px solid var(--line);
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    padding: 26px 17px 16px;
    z-index: 30;
}
.brand {
    padding: 0 11px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.brand img {
    max-width: 151px;
    max-height: 46px;
    object-fit: contain;
    object-position: left;
}
.brand > span {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.4px;
}
.brand b {
    font-size: 9px;
    letter-spacing: 0;
    color: var(--accent);
    border: 1px solid var(--accent-bg);
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 6px;
}
.workspace-label {
    font-size: 10px;
    color: var(--muted);
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 12px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0 4px 18px;
}
.nav-label {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--muted);
    padding: 12px 13px 8px;
    font-weight: 600;
}
.sidebar nav {
    overflow-y: auto;
}
.sidebar nav > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border-radius: 8px;
    color: var(--muted);
    margin: 3px 0;
    font-size: 12px;
    min-height: 42px;
    border: 1px solid transparent;
}
.sidebar nav > a:hover {
    background: var(--panel);
}
.sidebar nav > a.active {
    color: var(--accent);
    background: var(--accent-bg);
    border-color: color-mix(in srgb, var(--accent) 15%, transparent);
}
.nav-count {
    margin-left: auto;
    background: var(--panel2);
    border-radius: 5px;
    font-size: 10px;
    min-width: 22px;
    padding: 1px 5px;
    text-align: center;
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
}
.worker-mini {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 13px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 14px;
}
.worker-mini strong {
    font-size: 11px;
    display: block;
    font-weight: 550;
}
.worker-mini span:not(.dot) {
    display: block;
    color: var(--muted);
    font-size: 9px;
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 5px;
}
.avatar {
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--panel2);
    border: 1px solid var(--line);
    width: 35px;
    height: 35px;
    color: var(--accent);
    font-weight: 650;
}
.user-chip strong {
    display: block;
    font-size: 11px;
}
.user-chip small {
    color: var(--muted);
    display: block;
    font-size: 9px;
}
.user-chip .icon {
    margin-left: auto;
    width: 14px;
}
.main-shell {
    margin-left: 238px;
    width: calc(100% - 238px);
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.topbar {
    height: 75px;
    border-bottom: 1px solid var(--line);
    padding: 0 33px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: var(--bg);
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    white-space: nowrap;
}
.top-context,
.breadcrumb-slash {
    color: var(--muted);
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}
.global-search {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    margin-right: 10px;
    color: var(--muted);
    max-width: 290px;
}
.global-search .icon {
    position: absolute;
    left: 10px;
    width: 14px;
}
.global-search input {
    height: 35px;
    width: 255px;
    border-radius: 7px;
    padding: 8px 66px 8px 33px;
    font-size: 10px;
    background: var(--panel);
}
kbd {
    font:
        9px ui-monospace,
        monospace;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2px 4px;
    position: absolute;
    right: 8px;
}
.menu-toggle {
    display: none;
}
.content {
    padding: 33px;
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}
.page-head {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}
.page-head h1 {
    font-size: 29px;
}
.page-head .eyebrow {
    margin-bottom: 8px;
}
.page-head p {
    font-size: 12px;
    margin-bottom: 0;
}
.page-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 33px;
    color: var(--muted);
    font-size: 9px;
    border-top: 1px solid var(--line);
}
.footer b {
    font-weight: 400;
    margin-left: 5px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 23px;
}
.stat-card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.stat-label {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
}
.stat-label .icon {
    width: 17px;
    color: var(--accent);
}
.stat-value {
    font-size: 34px;
    line-height: 1.4;
    font-weight: 650;
    letter-spacing: -1.2px;
    margin-top: 10px;
}
.stat-foot {
    font-size: 9px;
    color: var(--muted);
    margin-top: 5px;
}
.stat-foot strong {
    color: var(--green);
    font-weight: 500;
}
.stat-line {
    height: 3px;
    position: absolute;
    inset: auto 0 0;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.5;
}
.stat-card.success .stat-line {
    background: linear-gradient(90deg, var(--green), transparent);
}
.stat-card.error .stat-line {
    background: linear-gradient(90deg, var(--red), transparent);
}
.stat-card.error .stat-label .icon {
    color: var(--red);
}
.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(255px, 1fr);
    gap: 22px;
    margin-bottom: 22px;
}
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-width: 0;
    overflow: hidden;
}
.panel-header {
    padding: 19px 21px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}
.panel-header h2 {
    font-size: 13px;
    margin: 0;
}
.panel-header .muted {
    font-size: 10px;
}
.panel-body {
    padding: 22px;
}
.panel-header .button {
    font-size: 10px;
    min-height: 30px;
    padding: 5px 9px;
}
.chart-legend {
    display: flex;
    gap: 14px;
    font-size: 9px;
    color: var(--muted);
    align-items: center;
}
.chart-legend .dot {
    width: 6px;
    height: 6px;
    margin-right: 5px;
}
.chart-legend .submitted-dot {
    background: var(--green);
}
.chart-legend .queued-dot {
    background: var(--accent);
}
.chart-wrap {
    height: 208px;
    padding: 12px 2px 0;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.chart-day {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
}
.chart-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    justify-content: center;
    height: 155px;
    border-bottom: 1px solid var(--line);
    background: repeating-linear-gradient(to top, transparent 0, transparent 37px, var(--line) 38px, transparent 39px);
}
.chart-bar {
    width: 13px;
    max-width: 40%;
    min-height: 2px;
    background: var(--accent);
    border-radius: 4px 4px 0 0;
    opacity: 0.86;
    height: calc(var(--value) * 1%);
}
.chart-bar.submitted {
    background: var(--green);
}
.chart-day > span {
    font-size: 9px;
    color: var(--muted);
    margin-top: 12px;
}
.chart-note {
    font-size: 9px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    margin: 16px 0 0;
}
.connection-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}
.connection-line:last-child {
    margin-bottom: 0;
}
.connection-label {
    display: flex;
    gap: 11px;
    align-items: center;
    min-width: 0;
}
.connection-label .icon {
    color: var(--muted);
}
.connection-label strong {
    font-size: 11px;
    display: block;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.connection-label small {
    color: var(--muted);
    display: block;
    font-size: 9px;
}
.info-banner {
    display: flex;
    gap: 13px;
    border: 1px solid var(--line);
    background: var(--panel2);
    padding: 14px 17px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 11px;
    color: var(--muted);
}
.info-banner .icon {
    color: var(--accent);
    margin-top: 2px;
}
.info-banner strong {
    color: var(--text);
}
.onboarding {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.step-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}
.step-card .step-number {
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}
.step-card h3 {
    font-size: 13px;
    margin-bottom: 7px;
}
.step-card p {
    font-size: 10px;
    color: var(--muted);
}
.step-card a {
    font-size: 11px;
    color: var(--accent);
}
.table-wrap {
    overflow: auto;
    max-width: 100%;
    scrollbar-width: thin;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    text-align: left;
    white-space: nowrap;
}
th {
    color: var(--muted);
    font-size: 9px;
    font-weight: 500;
    padding: 13px 18px;
    letter-spacing: 0.5px;
    background: var(--panel2);
    border-bottom: 1px solid var(--line);
}
td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
tbody tr:last-child td {
    border-bottom: 0;
}
tbody tr:hover {
    background: color-mix(in srgb, var(--panel2) 60%, transparent);
}
td strong {
    font-weight: 550;
    display: block;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}
td small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}
td .mono {
    font-size: 10px;
    color: var(--muted);
}
.table-actions {
    display: flex;
    gap: 5px;
}
.text-button {
    font-size: 11px;
    color: var(--accent);
    background: none;
    border: 0;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.text-button .icon {
    width: 13px;
    height: 13px;
}
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.toolbar-fields {
    display: flex;
    gap: 9px;
    flex: 1;
    max-width: 650px;
}
.toolbar input,
.toolbar select {
    font-size: 11px;
    padding: 9px 11px;
    height: 37px;
}
.toolbar input {
    max-width: 300px;
}
.toolbar select {
    max-width: 190px;
}
.pagination {
    padding: 14px 19px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--muted);
    gap: 10px;
}
.pagination .buttons {
    display: flex;
    gap: 7px;
}
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 44px 25px;
    text-align: center;
    color: var(--muted);
    min-height: 190px;
}
.empty-state .icon {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    opacity: 0.6;
}
.empty-state h3 {
    font-size: 13px;
    color: var(--text);
    margin: 0;
}
.empty-state p {
    font-size: 11px;
    margin: 0;
    max-width: 360px;
}
.loading-panel {
    padding: 60px;
    text-align: center;
    color: var(--muted);
}
.event-list {
    padding: 6px 20px;
}
.event-row {
    display: flex;
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    align-items: flex-start;
}
.event-row:last-child {
    border-bottom: 0;
}
.event-row .dot {
    margin-top: 5px;
}
.event-row strong {
    display: block;
    font-size: 11px;
    font-weight: 500;
}
.event-row small {
    color: var(--muted);
    font-size: 9px;
}
.event-row time {
    margin-left: auto;
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
}
.entity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.entity-card {
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    min-width: 0;
}
.entity-title {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 19px;
}
.entity-icon {
    height: 40px;
    width: 40px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--accent-bg);
    color: var(--accent);
    border-radius: 10px;
}
.entity-title h2 {
    font-size: 14px;
    margin: 0 0 4px;
}
.entity-title p {
    font-size: 10px;
    color: var(--muted);
    margin: 0;
    overflow-wrap: anywhere;
}
.entity-title .badge {
    margin-left: auto;
}
.entity-details {
    font-size: 11px;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px 16px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
}
.entity-details dt {
    color: var(--muted);
}
.entity-details dd {
    margin: 0;
    text-align: right;
}
.entity-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}
.form-grid .span2 {
    grid-column: span 2;
}
.form-section {
    margin: 25px 0 18px;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1.2px;
    color: var(--muted);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    margin-top: 7px;
}
.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
    gap: 22px;
}
.settings-form {
    padding: 24px;
}
.settings-info {
    padding: 25px;
}
.settings-info h3 {
    font-size: 13px;
}
.settings-info p {
    font-size: 11px;
    color: var(--muted);
}
.settings-info .info-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    margin-bottom: 15px;
}
.modal {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    border-radius: 18px;
    box-shadow: var(--shadow);
    width: min(660px, calc(100% - 28px));
    padding: 0;
    max-height: 90vh;
    overflow: auto;
}
.modal::backdrop {
    background: #080d17bb;
    backdrop-filter: blur(4px);
}
.modal-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 24px 25px 19px;
    border-bottom: 1px solid var(--line);
}
.modal-head .eyebrow {
    font-size: 9px;
    margin-bottom: 5px;
}
.modal-head h2 {
    margin: 0;
    font-size: 22px;
}
#modal-content {
    padding: 24px 25px;
}
.key-display {
    background: var(--input);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
    overflow-wrap: anywhere;
    color: var(--accent);
    font-family: monospace;
    font-size: 13px;
    margin: 20px 0;
}
.detail-grid {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    font-size: 11px;
}
.detail-grid dt {
    color: var(--muted);
}
.detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.content-preview {
    background: var(--input);
    border: 1px solid var(--line);
    padding: 14px;
    border-radius: 9px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 260px;
    overflow: auto;
    font-size: 11px;
}
.detail-section {
    margin-top: 24px;
}
.detail-section h3 {
    font-size: 12px;
}
.attempt {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 11px;
}
.attempt small {
    color: var(--muted);
    display: block;
}
.toast-stack {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: min(370px, calc(100% - 44px));
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    padding: 15px 17px;
    border: 1px solid var(--line);
    background: var(--panel2);
    box-shadow: var(--shadow);
    border-radius: 12px;
    font-size: 12px;
    animation: toast-in 0.18s ease;
    overflow-wrap: anywhere;
}
.toast.error {
    border-color: var(--red);
    color: var(--red);
}
.toast.success {
    border-color: var(--green);
}
@keyframes toast-in {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.sidebar-overlay {
    display: none;
}
.list-error {
    padding: 22px;
    border: 1px solid var(--red);
    border-radius: 12px;
    background: var(--red-bg);
    color: var(--red);
    font-size: 12px;
}
.divider {
    height: 1px;
    background: var(--line);
    margin: 20px 0;
}
pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
details summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 11px;
    margin: 15px 0;
}
details pre {
    font-size: 10px;
}
.inline-checks {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.scope-box {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    margin-bottom: 18px;
}
.scope-box .check:last-child {
    margin: 0;
}
@media (min-width: 1400px) {
    .content {
        padding: 40px;
    }
    .topbar {
        padding: 0 40px;
    }
    .stats-grid {
        gap: 22px;
    }
    .stat-card {
        padding: 25px;
    }
    .stat-value {
        font-size: 39px;
    }
    .chart-wrap {
        gap: 18px;
    }
}
@media (max-width: 1150px) {
    .sidebar {
        width: 216px;
    }
    .main-shell {
        margin-left: 216px;
        width: calc(100% - 216px);
    }
    .content {
        padding: 25px;
    }
    .topbar {
        padding: 0 25px;
    }
    .stats-grid {
        gap: 12px;
    }
    .stat-card {
        padding: 16px;
    }
    .stat-value {
        font-size: 30px;
    }
    .overview-grid {
        grid-template-columns: 1fr;
    }
    .entity-grid {
        grid-template-columns: 1fr;
    }
    .global-search input {
        width: 210px;
    }
    .settings-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 800px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.18s ease;
        width: 245px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-overlay:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        background: #0008;
        border: 0;
        z-index: 25;
    }
    .main-shell {
        margin: 0;
        width: 100%;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .topbar {
        height: 65px;
        padding: 0 18px;
    }
    .top-context,
    .breadcrumb-slash {
        display: none;
    }
    .content {
        padding: 23px 18px;
    }
    .footer {
        padding: 18px;
    }
    .global-search input {
        width: 200px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .page-head {
        align-items: flex-start;
    }
    .page-head h1 {
        font-size: 25px;
    }
    .page-description {
        max-width: 220px;
    }
    .page-actions .button span {
        display: none;
    }
    .onboarding {
        grid-template-columns: 1fr;
    }
    .auth-layout {
        grid-template-columns: 1fr;
        max-width: 430px;
        min-height: 0;
    }
    .auth-story {
        display: none;
    }
    .auth-card {
        padding: 38px 30px;
    }
    .auth-page {
        padding: 16px;
    }
}
@media (max-width: 500px) {
    .global-search {
        display: none;
    }
    .page-head {
        gap: 10px;
    }
    .page-head p {
        font-size: 11px;
        max-width: 225px;
    }
    .page-head h1 {
        font-size: 24px;
    }
    .page-actions {
        padding-top: 20px;
    }
    .page-actions .button {
        padding: 9px;
        gap: 5px;
        min-width: 38px;
    }
    .page-actions .button .action-label {
        display: none;
    }
    .stats-grid {
        gap: 10px;
    }
    .stat-card {
        padding: 15px;
    }
    .stat-value {
        font-size: 30px;
    }
    .stat-foot {
        font-size: 8px;
    }
    .stat-label {
        font-size: 10px;
    }
    .stat-label .icon {
        width: 14px;
    }
    .overview-grid {
        gap: 16px;
    }
    .panel-header {
        padding: 16px;
    }
    .panel-body {
        padding: 17px;
    }
    .toolbar {
        padding: 12px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .toolbar-fields {
        flex-wrap: wrap;
        max-width: none;
    }
    .toolbar-fields input {
        max-width: none;
        flex-basis: 100%;
    }
    .toolbar select {
        max-width: none;
        flex: 1;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-grid .span2 {
        grid-column: auto;
    }
    .footer span:last-child {
        display: none;
    }
    .entity-card {
        padding: 18px;
    }
    .entity-details {
        grid-template-columns: 90px minmax(0, 1fr);
    }
    .modal-head {
        padding: 20px;
    }
    #modal-content {
        padding: 20px;
    }
    .modal-head h2 {
        font-size: 19px;
    }
    .chart-wrap {
        gap: 5px;
    }
    .chart-bars {
        gap: 3px;
    }
    .chart-legend {
        gap: 10px;
    }
    .chart-note {
        gap: 10px;
    }
    .pagination {
        padding: 13px;
        flex-wrap: wrap;
    }
    .detail-grid {
        grid-template-columns: 90px minmax(0, 1fr);
    }
    .event-row time {
        font-size: 8px;
    }
    .event-row strong {
        font-size: 10px;
    }
    .attempt {
        flex-wrap: wrap;
    }
    .settings-form {
        padding: 18px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.chart-bar.h0 {
    height: 0%;
}
.chart-bar.h1 {
    height: 1%;
}
.chart-bar.h2 {
    height: 2%;
}
.chart-bar.h3 {
    height: 3%;
}
.chart-bar.h4 {
    height: 4%;
}
.chart-bar.h5 {
    height: 5%;
}
.chart-bar.h6 {
    height: 6%;
}
.chart-bar.h7 {
    height: 7%;
}
.chart-bar.h8 {
    height: 8%;
}
.chart-bar.h9 {
    height: 9%;
}
.chart-bar.h10 {
    height: 10%;
}
.chart-bar.h11 {
    height: 11%;
}
.chart-bar.h12 {
    height: 12%;
}
.chart-bar.h13 {
    height: 13%;
}
.chart-bar.h14 {
    height: 14%;
}
.chart-bar.h15 {
    height: 15%;
}
.chart-bar.h16 {
    height: 16%;
}
.chart-bar.h17 {
    height: 17%;
}
.chart-bar.h18 {
    height: 18%;
}
.chart-bar.h19 {
    height: 19%;
}
.chart-bar.h20 {
    height: 20%;
}
.chart-bar.h21 {
    height: 21%;
}
.chart-bar.h22 {
    height: 22%;
}
.chart-bar.h23 {
    height: 23%;
}
.chart-bar.h24 {
    height: 24%;
}
.chart-bar.h25 {
    height: 25%;
}
.chart-bar.h26 {
    height: 26%;
}
.chart-bar.h27 {
    height: 27%;
}
.chart-bar.h28 {
    height: 28%;
}
.chart-bar.h29 {
    height: 29%;
}
.chart-bar.h30 {
    height: 30%;
}
.chart-bar.h31 {
    height: 31%;
}
.chart-bar.h32 {
    height: 32%;
}
.chart-bar.h33 {
    height: 33%;
}
.chart-bar.h34 {
    height: 34%;
}
.chart-bar.h35 {
    height: 35%;
}
.chart-bar.h36 {
    height: 36%;
}
.chart-bar.h37 {
    height: 37%;
}
.chart-bar.h38 {
    height: 38%;
}
.chart-bar.h39 {
    height: 39%;
}
.chart-bar.h40 {
    height: 40%;
}
.chart-bar.h41 {
    height: 41%;
}
.chart-bar.h42 {
    height: 42%;
}
.chart-bar.h43 {
    height: 43%;
}
.chart-bar.h44 {
    height: 44%;
}
.chart-bar.h45 {
    height: 45%;
}
.chart-bar.h46 {
    height: 46%;
}
.chart-bar.h47 {
    height: 47%;
}
.chart-bar.h48 {
    height: 48%;
}
.chart-bar.h49 {
    height: 49%;
}
.chart-bar.h50 {
    height: 50%;
}
.chart-bar.h51 {
    height: 51%;
}
.chart-bar.h52 {
    height: 52%;
}
.chart-bar.h53 {
    height: 53%;
}
.chart-bar.h54 {
    height: 54%;
}
.chart-bar.h55 {
    height: 55%;
}
.chart-bar.h56 {
    height: 56%;
}
.chart-bar.h57 {
    height: 57%;
}
.chart-bar.h58 {
    height: 58%;
}
.chart-bar.h59 {
    height: 59%;
}
.chart-bar.h60 {
    height: 60%;
}
.chart-bar.h61 {
    height: 61%;
}
.chart-bar.h62 {
    height: 62%;
}
.chart-bar.h63 {
    height: 63%;
}
.chart-bar.h64 {
    height: 64%;
}
.chart-bar.h65 {
    height: 65%;
}
.chart-bar.h66 {
    height: 66%;
}
.chart-bar.h67 {
    height: 67%;
}
.chart-bar.h68 {
    height: 68%;
}
.chart-bar.h69 {
    height: 69%;
}
.chart-bar.h70 {
    height: 70%;
}
.chart-bar.h71 {
    height: 71%;
}
.chart-bar.h72 {
    height: 72%;
}
.chart-bar.h73 {
    height: 73%;
}
.chart-bar.h74 {
    height: 74%;
}
.chart-bar.h75 {
    height: 75%;
}
.chart-bar.h76 {
    height: 76%;
}
.chart-bar.h77 {
    height: 77%;
}
.chart-bar.h78 {
    height: 78%;
}
.chart-bar.h79 {
    height: 79%;
}
.chart-bar.h80 {
    height: 80%;
}
.chart-bar.h81 {
    height: 81%;
}
.chart-bar.h82 {
    height: 82%;
}
.chart-bar.h83 {
    height: 83%;
}
.chart-bar.h84 {
    height: 84%;
}
.chart-bar.h85 {
    height: 85%;
}
.chart-bar.h86 {
    height: 86%;
}
.chart-bar.h87 {
    height: 87%;
}
.chart-bar.h88 {
    height: 88%;
}
.chart-bar.h89 {
    height: 89%;
}
.chart-bar.h90 {
    height: 90%;
}
.chart-bar.h91 {
    height: 91%;
}
.chart-bar.h92 {
    height: 92%;
}
.chart-bar.h93 {
    height: 93%;
}
.chart-bar.h94 {
    height: 94%;
}
.chart-bar.h95 {
    height: 95%;
}
.chart-bar.h96 {
    height: 96%;
}
.chart-bar.h97 {
    height: 97%;
}
.chart-bar.h98 {
    height: 98%;
}
.chart-bar.h99 {
    height: 99%;
}
.chart-bar.h100 {
    height: 100%;
}
.overview-grid .table-wrap table {
    table-layout: fixed;
    white-space: normal;
}
.overview-grid .table-wrap th,
.overview-grid .table-wrap td {
    padding: 14px 11px;
}
.overview-grid .table-wrap th:nth-child(1) {
    width: 116px;
}
.overview-grid .table-wrap th:nth-child(3) {
    width: 133px;
}
.overview-grid .table-wrap th:nth-child(4) {
    width: 95px;
}
.overview-grid .table-wrap th:nth-child(5) {
    width: 76px;
}
.overview-grid .table-wrap td strong,
.overview-grid .table-wrap td small {
    max-width: 100%;
}
.overview-grid .table-wrap td strong {
    white-space: nowrap;
}
.overview-grid .table-wrap td small {
    white-space: nowrap;
}
@media (max-width: 600px) {
    .overview-grid .table-wrap table {
        table-layout: auto;
        white-space: nowrap;
    }
    .overview-grid .table-wrap td strong,
    .overview-grid .table-wrap td small {
        max-width: 170px;
    }
}

.badge.captured {
    color: var(--accent);
    background: var(--accent-bg);
    border-color: var(--accent);
}

/* Source: workspace.css */
/* MailGateway Workspace 3.7 — shared visual language from Intranet 2.4. */
:root {
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    color-scheme: light;
    --bg: #f5f7fb;
    --surface: #fff;
    --surface-2: #f8fafc;
    --line: #e9edf4;
    --line-strong: #dce3ee;
    --text: #1b2941;
    --text-strong: #14223c;
    --strong: var(--text-strong);
    --muted: #8490a5;
    --muted-strong: #64738a;
    --primary: #3b60de;
    --primary-hover: #2d4fcb;
    --primary-soft: #edf1ff;
    --soft: var(--primary-soft);
    --sidebar: #101c32;
    --sidebar-text: #a1b1ca;
    --sidebar-muted: #677b98;
    --accent-violet: #7456cb;
    --accent-teal: #158b83;
    --accent-amber: #bb7a20;
    --tone-violet: #f1edfc;
    --tone-teal: #eaf7f3;
    --tone-amber: #fff5e4;
    --green: #178767;
    --green-soft: #e9f7f1;
    --amber: #a56a19;
    --amber-soft: #fff5e5;
    --red: #c24454;
    --red-soft: #fff0f2;
    --radius: 16px;
    --shadow: 0 3px 16px #17243a04;
    --focus: #7695ff;
    --panel: var(--surface);
    --panel2: var(--surface-2);
    --input: var(--surface);
    --accent: var(--primary);
    --accent-hover: var(--primary-hover);
    --accent-bg: var(--primary-soft);
    --green-bg: var(--green-soft);
    --red-bg: var(--red-soft);
    --amber-bg: var(--amber-soft);
    --workspace-accent: var(--primary);
    --workspace-tint: var(--primary-soft);
}
html[data-theme='dark'] {
    color-scheme: dark;
    --bg: #0e1727;
    --surface: #172235;
    --surface-2: #1c2a40;
    --line: #293950;
    --line-strong: #37506a;
    --text: #e7eef9;
    --text-strong: #f4f7ff;
    --strong: var(--text-strong);
    --muted: #93a3b7;
    --muted-strong: #b5c2d4;
    --primary: #7897ff;
    --primary-hover: #92a9ff;
    --primary-soft: #28395d;
    --soft: var(--primary-soft);
    --sidebar: #0b1423;
    --accent-violet: #b7a3fb;
    --accent-teal: #6ed2be;
    --accent-amber: #efbd69;
    --tone-violet: #302847;
    --tone-teal: #173d3b;
    --tone-amber: #403320;
    --green: #68d0ac;
    --green-soft: #173d35;
    --amber: #e8b76b;
    --amber-soft: #3c3020;
    --red: #ff95a4;
    --red-soft: #442632;
    --shadow: 0 3px 16px #0000000b;
    --panel: var(--surface);
    --panel2: var(--surface-2);
    --input: var(--surface);
    --accent: var(--primary);
    --accent-hover: var(--primary-hover);
    --accent-bg: var(--primary-soft);
    --green-bg: var(--green-soft);
    --red-bg: var(--red-soft);
    --amber-bg: var(--amber-soft);
}
body {
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
body[data-app='logs'] {
    --workspace-accent: var(--accent-teal);
    --workspace-tint: var(--tone-teal);
}
body[data-app='deploy'] {
    --workspace-accent: var(--accent-violet);
    --workspace-tint: var(--tone-violet);
}
body.dashboard-body {
    --workspace-accent: var(--accent-teal);
    --workspace-tint: var(--tone-teal);
}
h1,
h2,
h3,
h4 {
    color: var(--text-strong);
}
h1 {
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -0.9px;
    font-weight: 750;
}
h2 {
    letter-spacing: -0.3px;
}
p {
    color: var(--muted-strong);
}
small {
    line-height: 1.6;
}
button,
input,
select,
textarea {
    font: inherit;
}
button:disabled {
    cursor: default;
}
button,
a,
input,
select,
textarea {
    outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--focus);
}
[hidden] {
    display: none !important;
}
svg {
    flex: none;
}
.muted,
.small.muted {
    color: var(--muted-strong);
}
code,
pre,
.mono {
    overflow-wrap: anywhere;
}
/* A single content column owns header, main and footer. */
.app-shell {
    display: block;
    min-height: 100dvh;
}
.main-area,
.main-shell {
    margin-left: 256px;
    width: calc(100% - 256px);
    min-width: 0;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 75px minmax(min-content, 1fr) auto;
    grid-template-areas: 'topbar' 'content' 'footer';
}
.main-area > .topbar,
.main-shell > .topbar {
    grid-area: topbar;
}
.main-area > .main-content,
.main-shell > .content {
    grid-area: content;
}
.main-area > .main-footer,
.main-shell > .footer {
    grid-area: footer;
}
.main-content,
.content {
    width: 100%;
    max-width: 1700px;
    min-width: 0;
    min-height: 0;
    margin: 0 auto;
    padding: 32px clamp(23px, 3.1vw, 48px) 35px;
}
.main-footer,
.footer {
    position: static;
    float: none;
    clear: both;
    align-self: end;
    min-width: 0;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 18px clamp(23px, 3.1vw, 48px) 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: transparent;
    font-size: 10.5px;
    line-height: 1.6;
}
.footer b {
    font-weight: 600;
}
.topbar {
    height: 75px;
    min-width: 0;
    padding: 0 clamp(23px, 3.1vw, 48px);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
}
.topbar-start,
.topbar-end,
.topbar-left,
.topbar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    min-width: 0;
}
.breadcrumbs,
.top-context,
#breadcrumb {
    font-size: 11px;
    letter-spacing: 0;
    color: var(--muted-strong);
}
.breadcrumbs strong,
#breadcrumb {
    font-weight: 650;
    color: var(--text-strong);
}
.top-context {
    color: var(--muted);
}
.topbar-divider,
.breadcrumb-slash {
    color: var(--line-strong);
}
.search-trigger,
.global-search {
    background: var(--surface-2);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 9px;
}
.search-trigger {
    min-width: 210px;
    justify-content: space-between;
    padding: 8px 11px;
    font-size: 11px;
}
.search-trigger kbd,
.global-search kbd {
    font:
        10px ui-sans-serif,
        sans-serif;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    color: var(--muted-strong);
    padding: 0 4px;
}
.icon-btn,
.icon-button {
    background: transparent;
    border: 0;
    color: var(--muted-strong);
    width: 35px;
    height: 35px;
    padding: 7px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
}
.icon-btn:hover,
.icon-button:hover {
    background: var(--primary-soft);
    color: var(--primary);
}
.icon {
    width: 19px;
    height: 19px;
}
.avatar {
    background: #e9e3ff;
    color: #7561bb;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 11px;
    font-weight: 750;
}
.page-heading,
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 26px;
    padding: 0;
}
.page-heading h1,
.page-head h1 {
    margin: 0 0 9px;
}
.page-heading p,
.page-head p {
    font-size: 13px;
    max-width: 800px;
    line-height: 1.7;
    margin: 0;
}
.page-actions {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}
.eyebrow {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 9px;
    letter-spacing: 1.2px;
    font-weight: 750;
    color: var(--primary);
    margin-bottom: 13px;
}
.eyebrow-dot {
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
}
.task-path {
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 20px;
    color: var(--muted-strong);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.task-path a:hover {
    color: var(--primary);
}
/* The selected area has its own menu, as in the Intranet. */
.sidebar {
    width: 256px;
    padding: 0;
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
    background: var(--sidebar);
    border: 0;
    color: var(--sidebar-text);
    z-index: 40;
    transition: none;
}
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 75px;
    padding: 17px 18px 14px;
    margin: 0;
    color: white;
    border: 0;
}
.brand-symbol {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex: none;
    background: #fff;
    border: 3px solid #fff;
    border-radius: 12px;
    overflow: hidden;
}
.brand-symbol img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}
.brand-type {
    display: block !important;
    min-width: 0;
}
.brand-type strong {
    display: block;
    color: #f5f8ff;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: -0.6px;
    font-weight: 750;
}
.brand-type small {
    display: block;
    color: #829cbe;
    font-size: 8px;
    letter-spacing: 1.5px;
    font-weight: 750;
    margin-top: 5px;
}
.sidebar .workspace,
.sidebar .workspace-label {
    display: none;
}
.side-nav {
    flex: 1;
    min-height: 0;
    overflow: hidden !important;
    padding: 8px 14px;
}
.nav-browser-head {
    padding: 5px 4px 15px;
}
.nav-browser-head > span {
    display: block;
    color: var(--sidebar-muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.nav-browser-head button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px;
    color: #d2def1;
    border: 1px solid #324462;
    border-radius: 9px;
    background: #192a43;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.5;
}
.nav-browser-head button svg:last-child {
    margin-left: auto;
}
.side-nav .nav-group {
    display: none;
    margin: 0;
}
.side-nav .nav-group.group-open {
    display: block;
}
.nav-group-switch {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    height: 39px;
    padding: 0 10px;
    margin: 0 0 7px;
    text-align: left;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
}
.nav-group-switch .nav-area-icon {
    display: flex;
    color: #8da7c9;
}
.nav-group-switch .nav-area-label {
    flex: 1;
    min-width: 0;
}
.nav-group-switch .nav-area-chevron {
    display: none;
}
.side-nav .nav-submenu {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
}
.side-nav .nav-link,
.sidebar .side-nav a[data-nav] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 33px;
    padding: 7px 11px;
    margin: 1px 0;
    font-size: 11.6px;
    font-weight: 550;
    line-height: 1.4;
    color: #afc0d9;
    background: transparent;
    border-radius: 7px;
    box-shadow: none;
}
.nav-link svg,
.sidebar .side-nav a[data-nav] > .icon {
    color: #7c93b5;
    width: 16px;
    height: 16px;
}
.side-nav .nav-link:hover,
.sidebar .side-nav a[data-nav]:hover {
    background: #22344d;
    color: #fff;
}
.side-nav .nav-link.active,
.sidebar .side-nav a[data-nav].active {
    box-shadow: inset 2px 0 0 #91afff;
    background: #354d73;
    color: #fff;
}
.side-nav .nav-link.active svg {
    color: #c4d5ff;
}
.nav-browsing .nav-group {
    display: block;
}
.nav-browsing .nav-submenu {
    display: none !important;
}
.nav-browsing .nav-group-switch {
    height: 38px;
    margin: 3px 0;
    background: #192a43;
    border: 1px solid #283d5e;
    font-size: 12px;
    color: #c9d7ed;
}
.nav-browsing .nav-group-switch.selected {
    border-color: #7396e7;
    color: white;
}
.nav-browsing .nav-area-chevron {
    display: flex;
}
.sidebar-bottom {
    padding: 9px 14px 10px;
    margin-top: auto;
    border-top: 1px solid #223653;
}
.sidebar-bottom .support-box {
    display: none;
}
.sidebar-user,
.user-chip {
    border: 0;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    width: 100%;
    background: transparent;
    color: #c6d2e8;
    text-align: left;
}
.sidebar-user strong,
.user-chip strong {
    color: #eaf0fc;
    display: block;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.5;
}
.sidebar-user small,
.user-chip small {
    color: #7a91ae;
    font-size: 10px;
    line-height: 1.6;
}
.user-chip .avatar {
    width: 35px;
    height: 35px;
    background: #e9e3ff;
    color: #7561bb;
}
.user-chip > .icon {
    margin-left: auto;
    width: 16px;
    height: 16px;
}
.sidebar a:focus-visible,
.sidebar button:focus-visible {
    outline: 2px solid #91afff;
}
.nav-count {
    margin-left: auto;
    min-width: 21px;
    background: #2c4263;
    color: #cfddfa;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 5px;
}
.worker-mini {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 3px 2px 13px;
    margin-bottom: 12px;
    border: 0;
    border-bottom: 1px solid #223653;
    font-size: 11px;
}
.worker-mini strong {
    color: #d4dfef;
    font-size: 11px;
}
.worker-mini span {
    font-size: 10px;
    color: #88a1c3;
}
.sidebar-overlay:not([hidden]),
.mobile-overlay:not([hidden]) {
    background: #0c172a99;
}
/* Surfaces and controls share the reference spacing and hierarchy. */
.btn,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 37px;
    padding: 9px 13px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    transition:
        background 0.16s,
        border-color 0.16s,
        box-shadow 0.16s;
    white-space: nowrap;
}
.btn:hover,
.button:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-soft);
}
.btn.primary,
.button.primary {
    background: #3b60de;
    border-color: #3b60de;
    color: white;
    box-shadow: 0 3px 8px #3b60de16;
}
.btn.primary:hover,
.button.primary:hover {
    background: #2d4fcb;
    border-color: #2d4fcb;
    box-shadow: 0 4px 13px #3b60de2b;
}
.btn.soft,
.button.soft {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--line);
}
.btn.danger,
.button.danger {
    color: var(--red);
    border-color: var(--red);
}
.btn.small,
.button.small {
    min-height: 31px;
    padding: 6px 10px;
    font-size: 11px;
}
.text-link,
.text-button {
    color: var(--primary);
    font-size: 12px;
    font-weight: 650;
}
.text-link:hover,
.text-button:hover {
    text-decoration: underline;
}
.badge {
    font-size: 10px;
    border-radius: 5px;
    padding: 4px 8px;
    line-height: 1.5;
    font-weight: 700;
    white-space: normal;
    border: 0;
}
.badge:not(.demo):before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}
.badge.demo {
    padding: 2px 6px;
    font-size: 8px;
    background: var(--primary-soft);
    color: var(--primary);
}
.badge.captured {
    color: var(--accent-teal);
    background: var(--tone-teal);
}
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: visible;
}
.panel-head,
.panel-header {
    padding: 21px 23px 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.panel-head h2,
.panel-header h2 {
    font-size: 16px;
    margin: 0 0 5px;
    font-weight: 700;
}
.panel-head p,
.panel-header p {
    font-size: 12px;
    line-height: 1.65;
    margin: 0;
    color: var(--muted-strong);
}
.panel-body {
    padding: 0 23px 23px;
}
.padded,
.settings-form,
.settings-info {
    padding: 24px;
}
.section-title {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.section-title h2 {
    font-size: 18px;
}
.section-title p {
    font-size: 12px;
}
.hero,
.area-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 25px 28px;
    margin: 0 0 23px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--workspace-accent);
    border-radius: 16px;
    background: linear-gradient(112deg, var(--workspace-tint), var(--surface) 75%);
    overflow: hidden;
}
.hero h2,
.area-banner h2 {
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: var(--text-strong);
    margin: 7px 0 10px;
    font-weight: 750;
}
.hero p,
.area-banner p {
    max-width: 700px;
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.75;
    margin: 0 0 15px;
}
.hero .eyebrow,
.area-banner .eyebrow {
    color: var(--workspace-accent);
    font-size: 10px;
    letter-spacing: 1.4px;
    margin: 0;
}
.hero-art,
.banner-graphic {
    height: 68px;
    width: 68px;
    flex: none;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--workspace-accent);
    border-radius: 20px;
    transform: none;
    box-shadow: none;
}
.hero-art svg,
.banner-graphic svg {
    width: 30px;
    height: 30px;
    transform: none;
}
.hero-art .float-tag {
    display: none;
}
.hero .actions:empty {
    display: none;
}
.hero p:last-child,
.area-banner p:last-child {
    margin-bottom: 0;
}
.task-guide {
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--workspace-accent);
    border-radius: 14px;
    background: linear-gradient(112deg, var(--workspace-tint), var(--surface) 80%);
}
.task-guide strong {
    font-size: 17px;
    color: var(--text-strong);
}
.task-guide p {
    font-size: 13px;
    line-height: 1.7;
    margin-top: 7px;
}
.task-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 24px;
}
.task-card {
    display: flex;
    gap: 14px;
    min-width: 0;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: var(--surface);
    transition:
        border-color 0.16s,
        transform 0.16s;
}
.task-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.task-card strong {
    font-size: 15px;
    font-weight: 700;
    margin: 1px 0 9px;
    line-height: 1.5;
}
.task-card small {
    font-size: 12px;
    line-height: 1.75;
    color: var(--muted-strong);
}
.task-card > span.task-symbol {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
}
.task-card:nth-child(3n + 2) > span.task-symbol {
    background: var(--tone-teal);
    color: var(--accent-teal);
}
.task-card:nth-child(3n) > span.task-symbol {
    background: var(--tone-violet);
    color: var(--accent-violet);
}
.task-card > .task-copy {
    flex: 1;
    min-width: 0;
}
.task-card > .task-arrow {
    flex: none;
    display: flex;
    width: auto;
    height: auto;
    color: var(--muted);
    margin-top: 3px;
}
.tile-icon,
.entity-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 11px;
}
.tile-icon.green {
    background: var(--tone-teal);
    color: var(--accent-teal);
}
.tile-icon.amber {
    background: var(--tone-amber);
    color: var(--accent-amber);
}
.stats,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stat,
.stat-card {
    position: relative;
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.stat-head,
.stat-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: var(--muted-strong);
    font-weight: 600;
}
.stat-icon,
.stat-label > .icon {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--primary);
}
.stat-label > .icon {
    padding: 7px;
}
.stat strong,
.stat-value {
    display: block;
    color: var(--text-strong);
    font-size: 29px;
    line-height: 1.3;
    letter-spacing: -0.7px;
    font-weight: 750;
    margin: 9px 0 5px;
}
.stat small,
.stat-foot {
    font-size: 10px;
    color: var(--muted-strong);
    line-height: 1.7;
}
.stat-line {
    display: none;
}
.stat-card.success .stat-label > .icon {
    color: var(--accent-teal);
    background: var(--tone-teal);
}
.stat-card.error .stat-label > .icon {
    color: var(--red);
    background: var(--red-soft);
}
.grid-2,
.overview-grid {
    gap: 20px;
    min-width: 0;
    align-items: start;
}
.grid-3,
.entity-grid {
    gap: 18px;
    min-width: 0;
}
.grid-2 > *,
.grid-3 > *,
.overview-grid > *,
.entity-grid > * {
    min-width: 0;
}
.entity-card {
    padding: 0;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.entity-title {
    padding: 19px 22px;
    margin: 0;
    border-bottom: 1px solid var(--line);
    background: var(--primary-soft);
    align-items: center;
}
.entity-title h2 {
    font-size: 16px;
    margin: 0 0 5px;
}
.entity-title p {
    font-size: 12px;
}
.entity-title .badge {
    margin-left: auto;
    align-self: flex-start;
}
.entity-details {
    padding: 19px 22px;
    margin: 0;
    gap: 12px;
    border: 0;
    font-size: 12px;
}
.entity-actions {
    padding: 14px 22px;
    background: var(--surface-2);
    border-top: 1px solid var(--line);
    margin: 0;
    gap: 8px;
}
.entity-details dd {
    text-align: right;
    overflow-wrap: anywhere;
}
.server-card {
    padding: 0;
    overflow: hidden;
    border-color: var(--line-strong);
}
.server-top {
    padding: 21px 23px;
    background: var(--primary-soft);
    border-bottom: 1px solid var(--line);
}
.server-top h2 {
    font-size: 18px;
}
.server-top p {
    font-size: 12px;
    line-height: 1.6;
}
.server-card .metrics {
    margin: 0;
    padding: 20px 23px;
}
.server-card .server-meta {
    margin: 0;
    padding: 4px 23px 20px;
    font-size: 12px;
}
.server-card > .actions {
    padding: 14px 23px;
    background: var(--surface-2);
    border-top: 1px solid var(--line);
}
.server-card .metrics small,
.server-card .metrics b {
    font-size: 11px;
}
.server-card .bar {
    margin-top: 10px;
}
.list-row {
    padding: 16px 0;
    gap: 13px;
}
.list-row strong {
    font-size: 13px;
    line-height: 1.6;
}
.list-row small {
    font-size: 11px;
    line-height: 1.65;
}
.notice,
.info-banner {
    font-size: 12px;
    line-height: 1.75;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 17px;
    background: var(--primary-soft);
    color: var(--muted-strong);
    gap: 11px;
}
.notice.amber {
    background: var(--tone-amber);
    color: var(--accent-amber);
}
.notice.green {
    background: var(--tone-teal);
    color: var(--accent-teal);
}
.notice.red {
    background: var(--red-soft);
    color: var(--red);
}
.notice p,
.info-banner p {
    color: inherit;
}
.notice small,
.info-banner small {
    font-size: 11px;
}
.info-banner .icon {
    color: var(--primary);
    flex: none;
}
.table-wrap {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border-radius: 0 0 16px 16px;
}
table {
    width: 100%;
    font-size: 12px;
}
th {
    font-size: 10px;
    letter-spacing: 0.4px;
    padding: 13px 20px;
    background: var(--surface-2);
    color: var(--muted-strong);
    font-weight: 700;
    line-height: 1.5;
}
td {
    padding: 16px 20px;
    font-size: 12px;
    line-height: 1.6;
    border-bottom: 1px solid var(--line);
}
td strong {
    font-size: 13px;
    font-weight: 650;
}
td small {
    font-size: 11px;
    color: var(--muted-strong);
    line-height: 1.6;
}
tbody tr:hover {
    background: var(--primary-soft);
}
.toolbar {
    gap: 11px;
    padding: 17px 21px;
    align-items: center;
    flex-wrap: wrap;
}
.toolbar-fields {
    min-width: 0;
}
.toolbar label,
.filters label {
    font-size: 11px;
}
.toolbar input,
.toolbar select,
.filters input,
.filters select {
    font-size: 12px;
    min-height: 37px;
}
.toolbar .search-input {
    max-width: 360px;
    min-width: 170px;
}
.table-footer,
.pagination {
    font-size: 11px;
    line-height: 1.7;
    padding: 14px 20px;
    color: var(--muted-strong);
}
.tabs,
.task-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    padding-bottom: 10px;
    min-width: 0;
}
.tab,
.task-nav a {
    padding: 10px 13px;
    font-size: 12px;
    border-radius: 8px;
    color: var(--muted-strong);
    font-weight: 600;
}
.tab.active,
.task-nav a[aria-current='page'] {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--line);
}
.field,
.form-grid > *,
.form-stack > *,
.form-grid label {
    min-width: 0;
}
.field > span,
.field > label,
.form-stack > label,
.form-grid > label,
.settings-form label {
    font-size: 12px;
    font-weight: 650;
    color: var(--text);
    line-height: 1.6;
}
.field input:not([type='checkbox']):not([type='radio']),
.field select,
.field textarea,
.form-stack input:not([type='checkbox']):not([type='radio']),
.form-stack select,
.form-stack textarea,
.form-grid input:not([type='checkbox']):not([type='radio']),
.form-grid select,
.form-grid textarea,
.settings-form input:not([type='checkbox']):not([type='radio']),
.settings-form select,
.settings-form textarea,
.modal label > input:not([type='checkbox']):not([type='radio']),
.modal label > select,
.modal label > textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    padding: 11px 12px;
    font-size: 13px;
    line-height: 1.6;
    min-height: 42px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
}
textarea {
    resize: vertical;
}
.form-grid {
    gap: 14px 18px;
}
.form-stack {
    gap: 14px;
}
.field {
    margin-bottom: 14px;
}
.field small,
.hint,
.field-hint {
    color: var(--muted-strong);
    font-size: 11px;
    line-height: 1.7;
}
input[type='checkbox'],
input[type='radio'] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    flex: none;
}
.check-row,
.check {
    gap: 10px;
    font-size: 12px;
    line-height: 1.7;
}
.form-actions,
.dialog-actions {
    margin-top: 23px;
    padding-top: 18px;
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    border-top: 1px solid var(--line);
}
.app-dialog,
.modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(740px, calc(100vw - 24px));
    max-width: none;
    max-height: min(86dvh, 840px);
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    padding: 0;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 30px 110px #0b183359;
}
.app-dialog::backdrop,
.modal::backdrop {
    background: #0913289e;
    backdrop-filter: blur(5px);
}
.dialog-top,
.modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 25px 28px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.dialog-top h2,
.modal-head h2 {
    font-size: 21px;
    line-height: 1.35;
    letter-spacing: -0.3px;
    margin: 0;
}
.dialog-top .eyebrow,
.modal-head .eyebrow {
    font-size: 9px;
    margin-bottom: 8px;
}
.dialog-top > .icon-btn,
.modal-head > .icon-button {
    flex: none;
}
#dialog-content,
#modal-content {
    padding: 24px 28px 28px;
}
.app-dialog .form-error,
.modal .form-error {
    font-size: 12px;
}
.empty-state {
    padding: 35px 22px;
    text-align: center;
    font-size: 12px;
    color: var(--muted-strong);
}
.empty-state h3 {
    font-size: 16px;
    margin: 0 0 10px;
}
.empty-state p {
    font-size: 13px;
    line-height: 1.75;
}
.terminal {
    border-radius: 12px;
    overflow: hidden;
    border-color: var(--line-strong);
}
.terminal-output,
.code-editor {
    font-size: 12px;
    line-height: 1.75;
}
.step {
    padding: 13px 15px;
    border-color: var(--line);
    border-radius: 10px;
    font-size: 12px;
}
.step > span {
    background: var(--primary-soft);
    color: var(--primary);
}
.step-card {
    padding: 22px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    border-radius: 14px;
}
.step-card h3 {
    font-size: 15px;
}
.step-card p {
    font-size: 12px;
    line-height: 1.75;
}
.step-card > a {
    font-size: 12px;
    color: var(--primary);
}
.event-row {
    font-size: 12px;
    padding: 15px 20px;
}
.event-row strong {
    font-size: 12px;
    line-height: 1.65;
}
.event-row small,
.event-row time {
    font-size: 10px;
    color: var(--muted-strong);
}
.toast {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 15px 18px;
    font-size: 13px;
    box-shadow: 0 12px 35px #17243a17;
}
.toast.error {
    border-color: var(--red);
    color: var(--red);
}
@media (max-width: 1250px) {
    .task-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .topbar {
        padding-inline: 28px;
    }
    .content,
    .main-content {
        padding: 30px 28px 34px;
    }
    .stats,
    .stats-grid {
        gap: 12px;
    }
    .stat,
    .stat-card {
        padding: 17px;
    }
    .settings-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1000px) {
    .stats,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero,
    .area-banner {
        padding: 22px;
    }
    .hero h2,
    .area-banner h2 {
        font-size: 21px;
    }
    .hero-art,
    .banner-graphic {
        width: 58px;
        height: 58px;
    }
    .page-heading,
    .page-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .page-actions {
        padding: 0;
    }
    .overview-grid {
        grid-template-columns: 1fr;
    }
    .entity-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 850px) {
    .sidebar {
        width: 270px;
        transform: translateX(-100%);
        transition: transform 0.18s ease;
    }
    .sidebar.mobile-open,
    .sidebar.open {
        width: 270px;
        transform: translateX(0);
    }
    .main-area,
    .main-shell {
        margin-left: 0;
        width: 100%;
        grid-template-rows: 65px minmax(min-content, 1fr) auto;
    }
    .topbar {
        height: 65px;
        padding: 0 18px;
    }
    .mobile-menu,
    .menu-toggle {
        display: inline-grid;
    }
    .sidebar-overlay:not([hidden]),
    .mobile-overlay:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        background: #0c172a99;
        z-index: 35;
        border: 0;
    }
    .main-content,
    .content {
        padding: 26px 20px 30px;
    }
    .main-footer,
    .footer {
        padding: 17px 20px 20px;
    }
    .search-trigger {
        min-width: 0;
    }
    .search-trigger span,
    .search-trigger kbd {
        display: none;
    }
    .search-trigger {
        height: 34px;
        width: 34px;
        padding: 8px;
        justify-content: center;
        border-color: transparent;
        background: transparent;
    }
    .breadcrumbs > span:first-child,
    .breadcrumbs > svg {
        display: none;
    }
    .top-context,
    .breadcrumb-slash {
        display: none;
    }
    .global-search input {
        max-width: 160px;
    }
    .topbar-start,
    .topbar-end,
    .topbar-left,
    .topbar-actions {
        gap: 10px;
    }
    .page-heading h1,
    .page-head h1 {
        font-size: 28px;
    }
    .page-heading p,
    .page-head p {
        font-size: 12px;
        max-width: 100%;
    }
    .page-actions {
        width: 100%;
    }
    .page-actions .button span,
    .page-actions .button .action-label {
        display: inline;
    }
    .sidebar .nav-submenu .nav-link {
        min-height: 36px;
    }
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 680px) {
    .task-cards,
    .grid-2,
    .grid-equal,
    .grid-3,
    .entity-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-grid .span2,
    .form-grid > .span-2 {
        grid-column: auto;
    }
    .content,
    .main-content {
        padding: 23px 16px 27px;
    }
    .hero,
    .area-banner {
        padding: 22px 20px;
        align-items: flex-start;
        gap: 16px;
    }
    .hero-art,
    .banner-graphic {
        display: none;
    }
    .hero h2,
    .area-banner h2 {
        font-size: 21px;
    }
    .hero p,
    .area-banner p {
        font-size: 12px;
    }
    .page-heading,
    .page-head {
        gap: 16px;
        margin-bottom: 22px;
    }
    .page-heading h1,
    .page-head h1 {
        font-size: 26px;
    }
    .panel-head,
    .panel-header {
        padding: 19px 19px 15px;
        flex-wrap: wrap;
    }
    .panel-body {
        padding: 0 19px 20px;
    }
    .padded,
    .settings-form,
    .settings-info {
        padding: 20px;
    }
    .panel {
        margin-bottom: 18px;
    }
    .btn,
    .button {
        font-size: 11px;
        padding: 9px 12px;
    }
    .page-actions .button {
        min-width: 0;
    }
    .task-card {
        padding: 20px;
    }
    .stat strong,
    .stat-value {
        font-size: 27px;
    }
    .stat-head,
    .stat-label {
        font-size: 10px;
    }
    .stat small,
    .stat-foot {
        font-size: 10px;
    }
    .toolbar {
        padding: 14px;
        align-items: stretch;
    }
    .toolbar input,
    .toolbar select {
        max-width: none;
    }
    .toolbar-fields {
        flex-wrap: wrap;
    }
    .toolbar-fields > input {
        flex-basis: 100%;
        max-width: none;
    }
    .toolbar-fields > select {
        flex: 1;
        max-width: none;
    }
    .table-wrap table {
        min-width: 580px;
    }
    .table-wrap .table-input {
        min-width: 100px;
    }
    td,
    th {
        padding-left: 15px;
        padding-right: 15px;
    }
    .entity-title {
        padding: 18px;
    }
    .entity-details {
        padding: 18px;
        font-size: 12px;
        grid-template-columns: 90px minmax(0, 1fr);
    }
    .entity-actions {
        padding: 14px 18px;
    }
    .server-top {
        padding: 19px;
        flex-wrap: wrap;
    }
    .server-card .metrics {
        padding: 18px 19px;
    }
    .server-card .server-meta {
        padding: 0 19px 18px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .server-card > .actions {
        padding: 14px 19px;
    }
    .tabs,
    .task-nav {
        gap: 4px;
    }
    .tab,
    .task-nav a {
        font-size: 11px;
        padding: 9px 10px;
    }
    .app-dialog,
    .modal {
        width: calc(100vw - 20px);
        max-height: 90dvh;
        border-radius: 16px;
    }
    .dialog-top,
    .modal-head {
        padding: 20px;
    }
    .dialog-top h2,
    .modal-head h2 {
        font-size: 19px;
    }
    #dialog-content,
    #modal-content {
        padding: 20px;
    }
    .notice,
    .info-banner {
        padding: 13px 15px;
        font-size: 11px;
    }
    .main-footer,
    .footer {
        font-size: 10px;
        padding: 16px;
    }
    .footer span:last-child {
        display: inline;
    }
    .global-search {
        display: none;
    }
    .page-head p {
        max-width: 100%;
    }
    .event-row {
        padding: 14px 17px;
    }
    .task-guide {
        padding: 19px 20px;
    }
    .onboarding {
        grid-template-columns: 1fr;
    }
    .form-actions .button,
    .dialog-actions .btn {
        min-width: 90px;
    }
    .hero .actions {
        gap: 8px;
    }
}
@media (max-width: 430px) {
    .stats,
    .stats-grid {
        gap: 10px;
    }
    .stat,
    .stat-card {
        padding: 14px;
    }
    .stat strong,
    .stat-value {
        font-size: 25px;
    }
    .stat-icon,
    .stat-label > .icon {
        width: 25px;
        height: 25px;
    }
    .stat-icon svg {
        width: 14px;
        height: 14px;
    }
    .stat-head {
        gap: 5px;
    }
    .stat-foot {
        font-size: 9px;
    }
    .task-card {
        gap: 12px;
    }
    .task-card strong {
        font-size: 14px;
    }
    .page-actions {
        gap: 7px;
    }
    .form-actions {
        justify-content: stretch;
    }
    .form-actions .button {
        flex: 1;
    }
    .topbar-actions {
        gap: 7px;
    }
    .topbar-actions .chip {
        font-size: 9px;
        padding: 3px 5px;
    }
    .page-head h1 {
        font-size: 25px;
    }
    .settings-info .info-line {
        flex-wrap: wrap;
    }
    .entity-title {
        gap: 10px;
    }
    .entity-title .badge {
        font-size: 9px;
    }
    .entity-details {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 10px;
    }
    .worker-mini {
        padding-bottom: 10px;
        margin-bottom: 9px;
    }
}
@media (max-height: 710px) {
    .brand {
        min-height: 58px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .nav-browser-head > span {
        display: none;
    }
    .nav-browser-head {
        padding: 2px 4px 10px;
    }
    .nav-browser-head button {
        padding: 9px 10px;
    }
    .nav-group-switch {
        height: 32px;
        margin-bottom: 5px;
    }
    .nav-browsing .nav-group-switch {
        height: 35px;
        margin: 2px 0;
    }
    .sidebar-bottom {
        padding-top: 6px;
        padding-bottom: 6px;
    }
    .worker-mini {
        display: none;
    }
    .sidebar .side-nav .nav-link,
    .sidebar .side-nav a[data-nav] {
        min-height: 31px;
        font-size: 11px;
    }
    .sidebar .nav-submenu {
        padding: 0;
    }
}
@media (max-height: 560px) {
    .brand {
        min-height: 48px;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .sidebar-bottom {
        display: none;
    }
    .side-nav {
        padding-top: 3px;
    }
    .nav-browsing .nav-group-switch {
        height: 31px;
    }
    .nav-browser-head {
        padding-bottom: 7px;
    }
    .nav-browser-head button {
        padding: 7px 10px;
    }
    .sidebar .side-nav .nav-link,
    .sidebar .side-nav a[data-nav] {
        min-height: 28px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .task-card:hover {
        transform: none;
    }
}
@media (min-width: 851px) {
    .mobile-menu,
    .menu-toggle {
        display: none;
    }
}

.nav-directory-help {
    display: none;
}
.nav-browsing .nav-directory-help {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 12px 4px 0;
    color: #9db4d7;
    font-size: 11px;
    padding: 8px 6px;
    border-top: 1px solid #324462;
}
.nav-directory-help svg:last-child {
    margin-left: auto;
}

/* Source: project.css */
/* MailGateway: presentation only; mail status and API behaviour remain owned by the app. */
.sidebar .brand {
    flex-direction: row;
    align-items: center;
}
.sidebar .brand-symbol img {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
}
.sidebar .side-nav {
    padding: 8px 14px;
    margin: 0;
    flex: 1;
    min-height: 0;
}
.sidebar .side-nav .nav-browser-head > span {
    color: #677b98;
}
.sidebar .side-nav .nav-browser-head button > .icon {
    width: 16px;
    height: 16px;
    color: #a8bbd9;
}
.sidebar .side-nav .nav-group-switch > .nav-area-icon > .icon {
    width: 18px;
    height: 18px;
}
.sidebar .nav-count {
    background: #2c4263;
    color: #cfddfa;
}
.sidebar .side-nav .nav-submenu > a {
    font-weight: 550;
}
.topbar .global-search input {
    background: transparent;
    border: 0;
    color: var(--text);
    height: 34px;
    font-size: 12px;
}
.topbar .global-search {
    padding: 0 11px;
    height: 36px;
}
.topbar .global-search > .icon {
    width: 16px;
    height: 16px;
    color: var(--muted);
}
.dashboard-body .panel-body {
    padding-top: 20px;
}
.dashboard-body .badge.submitted,
.dashboard-body .badge.captured {
    color: var(--accent-teal);
    background: var(--tone-teal);
}
.dashboard-body .badge.processing {
    color: var(--primary);
    background: var(--primary-soft);
}
.dashboard-body .badge.failed {
    color: var(--red);
    background: var(--red-soft);
}
.dashboard-body .info-banner {
    display: flex;
    align-items: flex-start;
    margin: 0 0 22px;
}
.dashboard-body #environment-banner {
    background: var(--tone-amber);
    color: var(--accent-amber);
    border-color: var(--line);
}
.dashboard-body #environment-banner > .icon {
    color: var(--accent-amber);
}
.dashboard-body #environment-banner strong {
    font-size: 12px;
}
.connection-label strong {
    font-size: 13px;
}
.connection-label small {
    font-size: 11px;
    color: var(--muted-strong);
}
.connection-label .icon {
    width: 19px;
    height: 19px;
    color: var(--primary);
}
.chart-wrap {
    padding: 8px 0 0;
    gap: 12px;
}
.chart-bar {
    background: var(--primary);
}
.chart-bar.submitted {
    background: var(--accent-teal);
}
.chart-note,
.chart-legend {
    color: var(--muted-strong);
    font-size: 11px;
}
.chart-legend i {
    background: var(--primary);
}
.chart-legend i.submitted {
    background: var(--accent-teal);
}
.detail-grid {
    font-size: 12px;
    gap: 13px;
    line-height: 1.75;
}
.detail-grid dd {
    min-width: 0;
}
.content-preview {
    font-size: 12px;
    line-height: 1.75;
    border-color: var(--line-strong);
    background: var(--surface-2);
}
.key-display {
    font-size: 13px;
    border-color: var(--line-strong);
    background: var(--primary-soft);
    color: var(--primary);
    padding: 18px;
}
.scope-box {
    border-color: var(--line-strong);
    border-radius: 10px;
}
.modal label {
    font-size: 12px;
    color: var(--text);
    font-weight: 650;
}
.modal label > input:not([type='checkbox']):not([type='radio']),
.modal label > select,
.modal label > textarea {
    margin-top: 7px;
}
.modal .check {
    font-weight: 500;
}
.modal .form-section {
    font-size: 10px;
    color: var(--muted-strong);
}
.inline-checks {
    gap: 13px;
}
.sidebar-bottom .user-chip small {
    display: block;
}
.worker-mini .dot.green {
    background: #63c8aa;
}
.auth-page {
    background: radial-gradient(ellipse at 15% 90%, var(--primary-soft), transparent 70%), var(--bg);
    font-family: inherit;
}
.auth-layout {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    box-shadow: 0 15px 70px #1b2e5510;
    overflow: hidden;
}
.auth-story {
    background: linear-gradient(145deg, #233d88, #3457b7 68%, #5078de);
    color: #fff;
}
.auth-story h1 {
    color: #fff;
    font-size: 42px;
    letter-spacing: -1.4px;
    line-height: 1.15;
}
.auth-story p,
.auth-story .muted {
    color: #c6d7ff;
    font-size: 13px;
    line-height: 1.8;
}
.auth-story .eyebrow {
    color: #aebfe7;
    font-size: 9px;
}
.auth-brand img {
    width: 36px;
    height: 36px;
    border: 3px solid #fff;
    border-radius: 11px;
    object-fit: contain;
}
.auth-brand span {
    color: #e9f0ff;
    font-size: 10px;
    letter-spacing: 1.7px;
    font-weight: 750;
}
.auth-card {
    background: var(--surface);
    padding: 45px 40px;
}
.auth-card h2 {
    font-size: 28px;
    letter-spacing: -0.7px;
    line-height: 1.25;
    color: var(--text-strong);
}
.auth-card > .brand-mark {
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--line);
    box-shadow: none;
}
.auth-card > .brand-mark > span {
    color: var(--accent-teal);
}
.auth-card > .muted {
    font-size: 13px;
    line-height: 1.7;
}
.auth-card label {
    font-size: 12px;
    font-weight: 650;
    line-height: 1.6;
}
.auth-card input {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--text);
    border-radius: 10px;
    padding: 12px 13px;
    font-size: 13px;
    min-height: 44px;
}
.auth-card .button.full {
    margin-top: 10px;
    width: 100%;
    min-height: 43px;
}
.auth-card .auth-note {
    font-size: 11px;
    line-height: 1.8;
    color: var(--muted-strong);
}
.story-flow {
    gap: 10px;
}
.story-flow > span {
    border-color: #ffffff30;
    background: #ffffff10;
    color: #f4f7ff;
}
.loading-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 13px;
    color: var(--muted-strong);
}
.settings-info h3 {
    font-size: 15px;
}
.settings-info p,
.settings-info .info-line {
    font-size: 12px;
    line-height: 1.8;
}
.settings-info .info-line strong {
    overflow-wrap: anywhere;
}
.entity-icon .icon {
    width: 21px;
    height: 21px;
}
.toast-stack {
    z-index: 80;
}
@media (max-width: 850px) {
    .sidebar .side-nav {
        padding: 8px 14px;
    }
    .topbar .global-search input {
        max-width: 145px;
    }
    .topbar .topbar-left {
        gap: 10px;
    }
}
@media (max-width: 680px) {
    .auth-page {
        padding: 16px;
    }
    .auth-layout {
        max-width: 430px;
    }
    .auth-card {
        padding: 30px 25px;
    }
    .auth-card h2 {
        font-size: 26px;
    }
    .global-search {
        display: none;
    }
    .dashboard-body .panel-body {
        padding-top: 18px;
    }
    .worker-mini {
        margin-bottom: 10px;
    }
    .sidebar .side-nav .nav-submenu > a {
        font-size: 12px;
    }
    .footer span:last-child {
        display: block;
    }
    .entity-actions {
        gap: 8px;
    }
    .onboarding {
        gap: 15px;
    }
    .chart-wrap {
        gap: 5px;
    }
    .chart-note {
        font-size: 10px;
        flex-wrap: wrap;
        gap: 5px;
    }
}
@media (max-height: 710px) {
    .sidebar .side-nav {
        padding-top: 5px;
    }
    .sidebar .side-nav .nav-submenu > a {
        min-height: 31px;
        font-size: 11px;
    }
}

.auth-story .story-flow span {
    color: #f4f7ff;
    border-color: #ffffff30;
    background: #ffffff10;
}
.auth-story .story-flow span:nth-child(even) {
    background: transparent;
    color: #c6d7ff;
}
.setup-layout {
    width: min(860px, calc(100% - 32px));
    margin: 48px auto;
}
.setup-layout h1 {
    font-size: 34px;
}
.setup-steps {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 28px 0;
}
.setup-layout > .panel {
    margin: 20px 0;
}
.danger-zone {
    border: 2px solid #d83939 !important;
    background: color-mix(in srgb, #d83939 5%, var(--surface));
    border-radius: 14px;
    padding: 24px;
}
.danger-zone h2 {
    color: #c62d35;
}
.mail-form-page {
    padding: 24px;
}
.mail-form-page .form-grid {
    margin-top: 24px;
}

/* Incoming administration */
#incoming-feedback:empty {
    display: none;
}
.filter-condition {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    margin: 0 0 14px;
}
.filter-condition button {
    align-self: end;
}
#decision-form .form-actions {
    flex-wrap: wrap;
}
.entity-card .mono {
    overflow-wrap: anywhere;
}

.dashboard-body .info-banner[hidden] {
    display: none;
}
#incoming-notice {
    background: var(--primary-soft);
    border-color: var(--line);
}

/* Shared card, form and narrow-screen corrections across all administration pages. */
[hidden] {
    display: none !important;
}
.main-shell,
.content,
.main-content,
#view,
.panel,
.entity-card,
.form-grid > *,
.entity-title > div {
    min-width: 0;
}
.entity-title {
    align-items: flex-start;
}
.entity-title > div:not(.entity-icon) {
    flex: 1;
}
.entity-title h2,
.entity-title p,
.entity-details dd,
.detail-grid dd,
.settings-info p,
.panel-header h2,
.panel-header p {
    overflow-wrap: anywhere;
}
.entity-title .badge {
    flex-shrink: 0;
}
.entity-card {
    display: flex;
    flex-direction: column;
}
.entity-card > .entity-details {
    flex: 1;
}
.entity-card > .entity-actions {
    margin-top: auto;
}
.entity-details dd small {
    display: block;
    margin-top: 4px;
}
.entity-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}
.panel-header > div {
    min-width: 0;
}
.mailbox-grid {
    padding: 20px 22px 22px;
}
.entity-actions,
.form-actions,
#page-actions {
    flex-wrap: wrap;
}
.entity-actions .button,
.form-actions .button,
#page-actions .button {
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}
.table-scroll,
.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}
.table-scroll table {
    min-width: 580px;
}
.scope-box legend {
    padding: 0 8px;
    font-size: 12px;
    font-weight: 650;
}
.scope-box .check {
    overflow-wrap: anywhere;
}
.scope-box input[type='checkbox'] {
    flex-shrink: 0;
}
.schedule-card .entity-details {
    grid-template-columns: 105px minmax(0, 1fr);
}
.form-grid input,
.form-grid select,
.form-grid textarea {
    max-width: 100%;
}
.content-preview,
.key-display {
    max-width: 100%;
    overflow-wrap: anywhere;
}
#view > .panel + .panel {
    margin-top: 20px;
}
@media (max-width: 1100px) {
    .entity-grid {
        grid-template-columns: 1fr 1fr;
    }
    .panel-header {
        flex-wrap: wrap;
        gap: 16px;
    }
    .entity-title {
        flex-wrap: wrap;
    }
    .entity-title .badge {
        margin-left: 0;
    }
    .entity-header-actions {
        flex-shrink: 1;
    }
}
@media (max-width: 760px) {
    .entity-grid {
        grid-template-columns: 1fr;
    }
    .mailbox-grid {
        padding: 16px 18px 18px;
    }
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .detail-grid dd {
        margin: 0 0 10px;
    }
    .form-actions {
        gap: 9px;
    }
    .entity-header-actions {
        width: 100%;
    }
    .entity-header-actions .button {
        flex: 1;
    }
    .panel-header .button {
        white-space: normal;
    }
    .stats-grid {
        min-width: 0;
    }
    .stat-value {
        overflow-wrap: anywhere;
    }
}
@media (max-width: 430px) {
    .mail-form-page {
        padding: 18px;
    }
    .entity-title {
        gap: 10px;
    }
    .entity-title > div:not(.entity-icon) {
        flex-basis: 65%;
    }
    .schedule-card .entity-details {
        grid-template-columns: 95px minmax(0, 1fr);
    }
    .entity-actions .button {
        flex: 1;
    }
    .scope-box {
        padding: 14px;
    }
    .entity-header-actions {
        flex-direction: column;
    }
}

.dashboard-body .info-banner.source-format-hint {
    display: block;
    overflow-wrap: anywhere;
}
.info-banner > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

#schedule-feedback:empty {
    display: none;
}
.schedule-intro {
    margin-bottom: 20px;
}

/* Environment profile switch (DEV/PROD both send real SMTP mail). */
.environment-switch-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}
.environment-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.environment-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.environment-switch-track {
    width: 3.8rem;
    height: 2rem;
    border-radius: 999px;
    background: #94a3b8;
    position: relative;
    transition: background 0.2s;
}
.environment-switch-track::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 4px #0003;
    transition: transform 0.2s;
}
.environment-switch input:checked + .environment-switch-track {
    background: #365ee6;
}
.environment-switch input:checked + .environment-switch-track::before {
    transform: translateX(1.8rem);
}
.environment-switch input:focus-visible + .environment-switch-track {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}
.environment-switch input:disabled + .environment-switch-track {
    opacity: 0.5;
    cursor: wait;
}

/* Incoming administration */
#incoming-feedback:empty {
    display: none;
}
.filter-condition {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    margin: 0 0 14px;
}
.filter-condition button {
    align-self: end;
}
#decision-form .form-actions {
    flex-wrap: wrap;
}
.entity-card .mono {
    overflow-wrap: anywhere;
}

.dashboard-body .info-banner[hidden] {
    display: none;
}
#incoming-notice {
    background: var(--primary-soft);
    border-color: var(--line);
}

#delivery-feedback:empty {
    display: none;
}

/* Templates, recipient assignments and configuration transfer. */
.parameter-row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    padding: 16px 0;
    border-bottom: 1px solid var(--border, #dde3e9);
}
.parameter-row label {
    min-width: 0;
}
.parameter-row .check {
    align-self: center;
}
.assignment-box {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border, #dde3e9);
    border-radius: 10px;
}
.assignment-box legend {
    padding: 0 6px;
    font-weight: 600;
}
.assignment-box .check {
    margin: 10px 0;
}
.template-preview {
    width: 100%;
    height: 420px;
    border: 1px solid var(--border, #dde3e9);
    border-radius: 8px;
    background: white;
}
.transfer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.transfer-grid form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}
.transfer-grid input {
    min-width: 0;
    max-width: 100%;
}
.entity-card code {
    overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
    .parameter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .transfer-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .parameter-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .template-preview {
        height: 320px;
    }
}
.source-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.template-schedule {
    border-top: 1px solid var(--border, #dde3e9);
    padding-top: 22px;
    margin-top: 12px;
}
.template-schedule > .check {
    margin: 12px 0 22px;
}
.template-schedule .form-grid {
    margin-top: 16px;
}
.directory-card-content {
    min-width: 0;
    flex: 1;
    padding: 22px;
}
.directory-card-content h2 {
    margin: 0 0 12px;
    font-size: 18px;
    overflow-wrap: anywhere;
}
.directory-card-content p {
    margin: 10px 0;
}
.template-card .entity-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}
.template-card code {
    display: block;
    margin-top: 18px;
}

/* Named send automations and the shared functional parameter reference. */
.schedule-group {
    margin-top: 28px;
    min-width: 0;
}
.schedule-group > h2 {
    margin-bottom: 16px;
    font-size: 20px;
}
.schedule-day-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.functional-parameters {
    min-width: 0;
    border: 1px solid var(--border, #dde3e9);
    border-radius: 12px;
    padding: 16px;
}
.functional-parameters summary {
    cursor: pointer;
    font-weight: 600;
}
.functional-parameters p,
.functional-parameters code,
.schedule-card dd,
.schedule-group h3 {
    overflow-wrap: anywhere;
}
.functional-parameters .table-wrap {
    overflow-x: auto;
    max-width: 100%;
}
#schedule-weekdays,
#template-schedule-weekdays {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}
#schedule-weekdays .schedule-day-actions {
    flex-basis: 100%;
}
#schedule-weekdays .check,
#template-schedule-weekdays .check {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}
.functional-parameters table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}
.functional-parameters th:first-child {
    width: 42%;
}
.functional-parameters th,
.functional-parameters td {
    white-space: normal;
    overflow-wrap: anywhere;
}
@media (max-width: 600px) {
    .functional-parameters th,
    .functional-parameters td {
        padding: 10px 6px;
    }
}
