@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap");

:root {
    color-scheme: light;
    --canvas: #f7f7f8;
    --surface: #fff;
    --sidebar: #f7f7f8;
    --ink: #212121;
    --muted: #595959;
    --subtle: #595959;
    --line: #e3e3e3;
    --line-strong: #999696;
    --accent: #e36759;
    --accent-hover: #cf5343;
    --accent-ink: #0d0d0d;
    /* JetCode cabinet: Dialogue Coral and cold blue-gray navigation. */
    --accent-soft: #fcece9;
    --accent-strong: #9f4337;
    --nav-active: #e9eef5;
    --chart-color: #056ebd;
    --chart-fill: #d9ebf8;
    --chart-fill-soft: #eff6ff;
    --success: #047857;
    --success-soft: #ecfdf5;
    --warning: #b45309;
    --warning-soft: #fffbeb;
    --danger: #b91c1c;
    --danger-soft: #fef2f2;
    --info: #2563eb;
    --info-soft: #eff6ff;
    --lavender: #eeeafa;
    --peach: #faecdf;
    --mint: #e4f0e8;
    --blue: #e6edf8;
    --pink: #f6e8ef;
    --sand: #f0edde;
    --radius: 12px;
    --radius-sm: 7px;
    --shadow: 0 16px 64px #2121211c;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --text-xs: 11.7px;
    --text-sm: 12.6px;
    --text-base: 14.4px;
    --text-lg: 16.2px;
    --text-xl: 18px;
    --font:
        "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "Fira Code", ui-monospace, monospace;
}
* {
    box-sizing: border-box;
}
/* Programmatic focus identifies the main landmark after navigation.
   Interactive controls keep their separate visible focus indicators. */
main:focus {
    outline: none;
}
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font: 14.4px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}
button,
a {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
button {
    color: inherit;
}
a {
    color: inherit;
    text-decoration: none;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
button,
input,
select,
textarea {
    transition:
        background 0.16s,
        border-color 0.16s,
        box-shadow 0.16s;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--accent-strong);
    outline-offset: 3px;
}
button:active:not(:disabled) {
    filter: brightness(0.96);
}
button svg {
    flex-shrink: 0;
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1 {
    font-size: 30.6px;
    line-height: 1.2;
    font-weight: 550;
    letter-spacing: -1px;
    text-wrap: balance;
}
h2 {
    font-size: var(--text-xl);
    font-weight: 550;
    letter-spacing: -0.25px;
}
h3 {
    font-size: var(--text-lg);
    font-weight: 550;
}
small {
    font-size: var(--text-sm);
}
svg {
    vertical-align: middle;
    flex-shrink: 0;
}
.icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.muted {
    color: var(--muted);
}
.mono {
    font-family: var(--mono);
    font-size: var(--text-xs);
}
.nowrap {
    white-space: nowrap;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
[hidden] {
    display: none !important;
}
.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 100;
    padding: 12px;
    background: var(--ink);
    color: white;
}
.skip-link:focus {
    top: 12px;
}
.app-shell {
    display: flex;
    min-height: 100dvh;
}
.sidebar {
    overflow-y: auto;
    overscroll-behavior: contain;
    width: 248px;
    flex-shrink: 0;
    position: fixed;
    inset: 0 auto 0 0;
    background: var(--sidebar);
    border-right: 1px solid var(--line);
    padding: 28px 16px 16px;
    display: flex;
    flex-direction: column;
    z-index: 30;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 12px 30px;
    font-size: 25.2px;
    font-weight: 650;
    letter-spacing: -0.8px;
}
.brand-logo {
    width: 31px;
    height: 31px;
    background: var(--ink);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--accent);
}
.brand-logo svg {
    width: 23px;
    height: 23px;
}
.brand sup {
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.2px;
    margin-left: 1px;
    align-self: center;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: 1px 4px;
    color: var(--muted);
}
.workspace-switch {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px;
    padding: 11px 12px;
    margin-bottom: 25px;
    text-align: left;
}
.workspace-switch .workspace-symbol {
    width: 30px;
    height: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    display: grid;
    place-items: center;
}
.workspace-switch strong {
    display: block;
    font-size: var(--text-base);
    font-weight: 550;
}
.workspace-switch small {
    display: block;
    font-size: var(--text-xs);
    color: var(--muted);
}
.workspace-switch > .icon {
    margin-left: auto;
    width: 15px;
}
.nav-group {
    margin-bottom: 22px;
}
.nav-caption {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1.25px;
    color: var(--muted);
    margin: 0 12px 9px;
    font-weight: 500;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--muted);
    font-size: var(--text-base);
    margin: 2px 0;
}
.nav-link:hover {
    background: var(--nav-active);
    color: var(--ink);
}
.nav-link.active {
    background: var(--nav-active);
    color: var(--ink);
    font-weight: 550;
}
.nav-link.active > .icon {
    stroke-width: 2;
}
.nav-count {
    margin-left: auto;
    font-size: var(--text-xs);
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.nav-link.active .nav-count {
    background: var(--surface);
    padding: 0 5px;
    border-radius: 4px;
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: 24px;
}
.help-card {
    padding: 14px 12px;
    margin: 14px 0 12px;
    border-top: 1px solid var(--line);
}
.help-card p {
    font-size: var(--text-sm);
    color: var(--muted);
    margin: 5px 0 11px;
}
.help-card button {
    font-size: var(--text-sm);
    border: 0;
    background: none;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0;
    font-weight: 500;
}
.demo-label {
    font-size: var(--text-xs);
    color: var(--muted);
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.demo-label:before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--subtle);
    border-radius: 50%;
}
.workspace {
    margin-left: 248px;
    min-width: 0;
    width: calc(100% - 248px);
}
.topbar {
    height: 76px;
    padding: 0 34px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--canvas);
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--muted);
    font-size: var(--text-sm);
}
.breadcrumb strong {
    color: var(--ink);
    font-weight: 500;
}
.breadcrumb .icon {
    width: 15px;
    height: 15px;
}
.topbar-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}
.search-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    background: none;
    border: 0;
    font-size: var(--text-sm);
    padding: 6px;
}
.search-trigger .icon {
    width: 16px;
}
.keycap {
    font-family: var(--font);
    font-size: var(--text-xs);
    border: 1px solid var(--line);
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--muted);
    background: var(--surface);
}
.topbar-divider {
    width: 1px;
    height: 22px;
    background: var(--line);
    margin: 0 2px;
}
.icon-button {
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    border-radius: 7px;
    position: relative;
    color: var(--muted);
}
.icon-button:hover {
    background: var(--sidebar);
    color: var(--ink);
}
.notification-dot {
    position: absolute;
    right: 8px;
    top: 6px;
    background: var(--danger);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--canvas);
}
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sand);
    color: #6e6240;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: var(--text-xs);
    flex-shrink: 0;
}
.avatar.small {
    width: 28px;
    height: 28px;
    font-size: var(--text-xs);
}
.avatar.lavender,
.project-symbol.lavender {
    background: var(--lavender);
    color: #6d5e98;
}
.avatar.peach,
.project-symbol.peach {
    background: var(--peach);
    color: #855632;
}
.avatar.mint,
.project-symbol.mint {
    background: var(--mint);
    color: #436a50;
}
.avatar.blue,
.project-symbol.blue {
    background: var(--blue);
    color: #3f6190;
}
.avatar.pink,
.project-symbol.pink {
    background: var(--pink);
    color: #8c4f70;
}
.avatar.sand,
.project-symbol.sand {
    background: var(--sand);
    color: #756a3b;
}
.profile-button {
    padding: 0;
    border: 0;
    background: none;
    border-radius: 50%;
}
.mobile-menu {
    display: none;
}
main {
    padding: 32px 34px 24px;
    max-width: 1680px;
    margin: 0 auto;
    min-height: calc(100dvh - 130px);
}
.page-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 27px;
}
.eyebrow {
    color: var(--muted);
    font-size: var(--text-xs);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.page-subtitle {
    color: var(--muted);
    font-size: var(--text-base);
    margin-top: 8px;
}
.heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.btn {
    min-height: 38px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
}
.btn .icon {
    width: 16px;
    height: 16px;
}
.btn:hover {
    background: var(--sidebar);
    border-color: var(--line-strong);
}
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}
.btn-dark {
    background: var(--ink);
    color: var(--surface);
    border-color: var(--ink);
}
.btn-dark:hover {
    background: #2f2f2f;
    color: white;
}
.btn-danger {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: #efd0cb;
}
.btn-small {
    min-height: 32px;
    padding: 5px 10px;
    font-size: var(--text-xs);
}
.btn-ghost {
    background: none;
    border-color: transparent;
    color: var(--muted);
}
.btn-ghost:hover {
    border-color: transparent;
}
.text-link {
    border: 0;
    background: none;
    color: var(--ink);
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
    font-weight: 500;
}
.text-link:hover {
    color: var(--success);
}
.text-link .icon {
    width: 15px;
    height: 15px;
}
.status-indicator {
    font-size: var(--text-xs);
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 22px;
    overflow: hidden;
}
.metric {
    padding: 20px 22px;
    position: relative;
}
.metric + .metric {
    border-left: 1px solid var(--line);
}
.metric-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: var(--text-sm);
}
.metric-label > .icon {
    width: 15px;
    height: 15px;
    color: var(--subtle);
}
.metric-value-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 8px;
}
.metric-value {
    font-size: 32.4px;
    font-weight: 500;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.metric-change {
    font-size: var(--text-xs);
    color: var(--success);
    background: var(--success-soft);
    border-radius: 4px;
    padding: 2px 5px;
    white-space: nowrap;
}
.metric-description {
    font-size: var(--text-xs);
    color: var(--muted);
}
.metric-description strong {
    color: var(--ink);
    font-weight: 500;
}
.metric-sparkline {
    position: absolute;
    width: 70px;
    height: 28px;
    right: 20px;
    bottom: 21px;
}
.metric-warning .metric-value {
    color: var(--warning);
}
.metric-warning .metric-description {
    max-width: 130px;
}
.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 22px;
}
.overview-primary,
.overview-secondary {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-width: 0;
    overflow: hidden;
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 19px 22px 0;
}
.panel-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-lg);
}
.count-pill {
    font-size: var(--text-xs);
    background: var(--sidebar);
    color: var(--muted);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
}
.queue-panel {
    background: var(--surface);
}
.queue-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
}
.queue-item:last-child {
    border: 0;
    padding-bottom: 20px;
}
.queue-item:first-of-type {
    margin-top: 5px;
}
.issue-icon {
    width: 31px;
    height: 31px;
    border-radius: 8px;
    background: var(--warning-soft);
    color: var(--warning);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.issue-icon.danger {
    background: var(--danger-soft);
    color: var(--danger);
}
.issue-icon.info {
    background: var(--info-soft);
    color: var(--info);
}
.issue-icon .icon {
    width: 16px;
    height: 16px;
}
.queue-content {
    min-width: 0;
    flex: 1;
}
.queue-content strong {
    font-size: var(--text-sm);
    font-weight: 500;
    display: block;
}
.queue-content p {
    font-size: var(--text-xs);
    color: var(--muted);
    margin-top: 2px;
}
.queue-item > .btn {
    min-height: 30px;
    font-size: var(--text-xs);
    padding: 5px 9px;
}
.queue-empty {
    padding: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--success);
}
.chart-meta {
    padding: 15px 22px 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.chart-meta strong {
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -0.7px;
}
.chart-meta span {
    font-size: var(--text-xs);
    color: var(--muted);
}
.segmented {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--canvas);
}
.segmented button {
    border: 0;
    background: transparent;
    padding: 3px 8px;
    font-size: var(--text-xs);
    color: var(--muted);
    border-radius: 4px;
    min-height: 25px;
}
.segmented button[aria-pressed="true"] {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 3px #21212112;
}
.chart-wrap {
    padding: 8px 20px 14px;
    position: relative;
}
.activity-chart {
    display: block;
    width: 100%;
    height: 142px;
    overflow: visible;
}
.chart-grid {
    stroke: var(--line);
    stroke-dasharray: 3 5;
    stroke-width: 1;
}
.chart-axis {
    font: 11.7px var(--font);
    fill: var(--muted);
}
.chart-line {
    fill: none;
    stroke: var(--chart-color);
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.chart-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px 16px;
    color: var(--muted);
    font-size: var(--text-xs);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-square {
    height: 7px;
    width: 7px;
    background: var(--chart-color);
    border-radius: 2px;
}
.chart-tooltip {
    position: absolute;
    pointer-events: none;
    padding: 7px 10px;
    background: var(--ink);
    color: white;
    box-shadow: var(--shadow);
    border-radius: 6px;
    font-size: var(--text-xs);
    z-index: 1;
}
.chart-hit {
    fill: transparent;
    cursor: crosshair;
}
.chart-hit:focus {
    outline: none;
    fill: #056ebd12;
}
.chart-hit:focus-visible {
    stroke: var(--success);
    stroke-width: 1;
}
.activity-list {
    padding: 16px 22px 8px;
}
.activity-item {
    display: flex;
    gap: 11px;
    padding-bottom: 20px;
    position: relative;
}
.activity-item:not(:last-child):before {
    content: "";
    position: absolute;
    width: 1px;
    left: 10px;
    top: 24px;
    bottom: 3px;
    background: var(--line);
}
.activity-icon {
    height: 21px;
    width: 21px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--canvas);
    display: grid;
    place-items: center;
    color: var(--muted);
    flex-shrink: 0;
    z-index: 1;
}
.activity-icon .icon {
    width: 11px;
    height: 11px;
}
.activity-icon.success {
    color: var(--success);
    background: var(--success-soft);
    border-color: #d6e6d1;
}
.activity-icon.warning {
    color: var(--warning);
    background: var(--warning-soft);
    border-color: #f0e3c5;
}
.activity-body {
    min-width: 0;
}
.activity-body button {
    font-size: var(--text-xs);
    font-weight: 500;
    text-align: left;
    border: 0;
    background: none;
    padding: 0;
    line-height: 1.5;
}
.activity-body button:hover {
    text-decoration: underline;
}
.activity-body p {
    font-size: var(--text-xs);
    color: var(--muted);
    margin: 3px 0;
}
.activity-body time {
    font-size: var(--text-xs);
    color: var(--subtle);
    font-variant-numeric: tabular-nums;
}
.panel-footer-link {
    border-top: 1px solid var(--line);
    padding: 10px 22px;
    display: flex;
    justify-content: center;
}
.panel-footer-link .text-link {
    font-size: var(--text-xs);
    color: var(--muted);
}
.infra-body {
    padding: 17px 22px;
}
.infra-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    color: var(--success);
    margin-bottom: 17px;
}
.resource-line {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    margin-bottom: 7px;
    color: var(--muted);
}
.resource-line span:last-child {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.progress {
    height: 5px;
    border-radius: 6px;
    background: var(--nav-active);
    overflow: hidden;
    margin-bottom: 16px;
}
.progress > span {
    height: 100%;
    display: block;
    background: var(--chart-color);
    border-radius: 6px;
}
.progress.warning > span {
    background: #ceaa63;
}
.infra-footnote {
    font-size: var(--text-xs);
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.infra-footnote .icon {
    width: 12px;
    height: 12px;
}
.tip-panel {
    padding: 20px 22px;
    background: var(--nav-active);
    border-color: #d7e0eb;
}
.tip-panel > .icon {
    width: 21px;
    color: #42556b;
    margin-bottom: 10px;
}
.tip-panel h3 {
    font-size: var(--text-base);
}
.tip-panel p {
    font-size: var(--text-xs);
    color: var(--muted);
    margin: 6px 0 12px;
    line-height: 1.6;
}
.tip-panel .text-link {
    font-size: var(--text-xs);
}
.projects-section {
    margin-top: 22px;
}
.projects-section .panel-header {
    padding-bottom: 16px;
}
.section-heading-note {
    font-size: var(--text-xs);
    color: var(--muted);
    margin-top: 3px;
}
.tabs-toolbar {
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 22px;
}
.tabs {
    display: flex;
    gap: 20px;
    min-width: 0;
    overflow: auto;
    scrollbar-width: none;
}
.tab {
    min-height: 43px;
    padding: 10px 0 11px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    font-size: var(--text-xs);
    color: var(--muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
}
.tab[aria-pressed="true"] {
    color: var(--ink);
    border-bottom-color: var(--ink);
    font-weight: 550;
}
.tab .count-pill {
    font-size: var(--text-xs);
}
.table-tools {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.input-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 10px;
    background: var(--surface);
}
.input-wrap .icon {
    width: 15px;
    height: 15px;
    color: var(--muted);
}
.input-wrap input {
    border: 0;
    background: none;
    outline: none;
    min-height: 34px;
    width: 205px;
    font-size: var(--text-xs);
    color: var(--ink);
    padding: 6px 0;
}
.input-wrap:focus-within {
    border-color: var(--success);
    box-shadow: 0 0 0 2px #04785722;
}
.input-wrap input:focus-visible {
    outline: 0;
}
.input-wrap input::placeholder {
    color: var(--muted);
}
.toolbar-spacer {
    margin-left: auto;
}
.filter-summary {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 22px;
    background: var(--canvas);
    font-size: var(--text-xs);
}
.filter-chip {
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 3px 7px;
    background: var(--surface);
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.filter-chip .icon {
    width: 12px;
    height: 12px;
}
.table-scroll {
    position: relative;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}
table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    font-size: var(--text-xs);
}
th {
    font-weight: 450;
    color: var(--muted);
    background: var(--canvas);
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
th:first-child,
td:first-child {
    padding-left: 22px;
}
th:last-child,
td:last-child {
    padding-right: 22px;
}
tbody tr:last-child td {
    border-bottom: 0;
}
tbody tr:hover {
    background: var(--canvas);
}
tbody tr.selected {
    background: var(--nav-active);
}
.sort-button {
    border: 0;
    background: none;
    color: inherit;
    font-size: inherit;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
}
.sort-button .icon {
    width: 12px;
    height: 12px;
}
.checkbox-cell {
    width: 36px;
    padding-right: 0 !important;
}
input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--accent-strong);
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}
.project-cell {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 180px;
}
.project-symbol {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: var(--text-lg);
    font-weight: 500;
}
.project-name {
    border: 0;
    background: none;
    padding: 0;
    text-align: left;
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--ink);
    display: block;
}
.project-name:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.project-id {
    font-family: var(--mono);
    font-size: var(--text-xs);
    color: var(--muted);
    margin-top: 3px;
}
.owner-name {
    font-size: var(--text-xs);
    font-weight: 450;
    display: block;
}
.owner-company {
    font-size: var(--text-xs);
    color: var(--muted);
    display: block;
    margin-top: 3px;
}
.badge {
    font-size: var(--text-xs);
    line-height: 1.4;
    padding: 3px 7px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
    white-space: nowrap;
    font-weight: 450;
}
.badge .icon {
    width: 11px;
    height: 11px;
    stroke-width: 1.9;
}
.badge.success {
    color: var(--success);
    background: var(--success-soft);
}
.badge.warning {
    color: var(--warning);
    background: var(--warning-soft);
}
.badge.danger {
    color: var(--danger);
    background: var(--danger-soft);
}
.badge.neutral {
    color: var(--muted);
    background: var(--sidebar);
}
.badge.info {
    color: var(--info);
    background: var(--info-soft);
}
.engine-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    white-space: nowrap;
}
.engine-mark {
    font-size: var(--text-sm);
    color: #997356;
    width: 17px;
    text-align: center;
}
.engine-mark.codex {
    font-family: var(--mono);
    font-weight: 500;
    font-size: var(--text-xs);
    color: var(--ink);
}
.plan-tag {
    font-size: var(--text-xs);
    padding: 2px 6px;
    background: var(--sidebar);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
}
.plan-tag.pro {
    color: #6c5f40;
    background: #f5f1e6;
    border-color: #ece5d3;
}
.date-small {
    display: block;
    font-size: var(--text-xs);
    color: var(--muted);
    margin-top: 4px;
}
.date-small.soon {
    color: var(--warning);
}
.row-open {
    min-height: 28px;
    min-width: 28px;
}
.row-open .icon {
    width: 15px;
}
.table-footer {
    padding: 12px 22px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: var(--text-xs);
}
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pagination .icon-button {
    min-height: 26px;
    min-width: 26px;
}
.pagination .icon {
    width: 14px;
    height: 14px;
}
.pagination .current-page {
    display: grid;
    place-items: center;
    background: var(--sidebar);
    border-radius: 4px;
    min-width: 25px;
    min-height: 25px;
    color: var(--ink);
}
.bulk-bar {
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-bottom: 1px solid var(--line);
    font-size: var(--text-xs);
    flex-wrap: wrap;
}
.empty-state {
    text-align: center;
    padding: 52px 20px;
    color: var(--muted);
}
.empty-state > .icon {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    color: var(--subtle);
}
.empty-state h3 {
    color: var(--ink);
    margin-bottom: 6px;
}
.empty-state .btn {
    margin-top: 16px;
}
.workspace-footer {
    padding: 14px 34px 20px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: var(--text-xs);
    max-width: 1680px;
    margin: auto;
    gap: 12px;
}
.footer-dot {
    padding: 0 6px;
    color: var(--line-strong);
}
.summary-strip {
    display: flex;
    gap: 24px;
    padding: 17px 22px;
    margin-bottom: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    flex-wrap: wrap;
}
.summary-stat {
    font-size: var(--text-xs);
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.summary-stat strong {
    font-size: 19.8px;
    color: var(--ink);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.summary-stat .icon {
    width: 15px;
}
.person-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.person-cell strong {
    font-size: var(--text-sm);
    font-weight: 500;
    display: block;
}
.person-cell small {
    font-size: var(--text-xs);
    color: var(--muted);
    display: block;
    margin-top: 3px;
}
.compact-usage {
    width: 90px;
}
.compact-usage .progress {
    margin: 5px 0 0;
    height: 4px;
}
.compact-usage > span {
    font-size: var(--text-xs);
    color: var(--muted);
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.server-card {
    padding: 22px;
}
.server-card-head {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-bottom: 22px;
}
.server-card-head > .issue-icon {
    background: var(--sidebar);
    color: var(--ink);
    width: 40px;
    height: 40px;
}
.server-card-head h2 {
    font-size: var(--text-base);
}
.server-card-head p {
    font-size: var(--text-xs);
    color: var(--muted);
    margin-top: 3px;
}
.server-card-head .status-dot {
    margin-left: auto;
}
.server-card-footer {
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
    color: var(--muted);
}
.server-card .btn {
    width: 100%;
    margin-top: 17px;
}
.section-intro {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: var(--text-base);
    max-width: 700px;
    line-height: 1.7;
}
.skill-card {
    padding: 23px;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}
.skill-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.skill-icon {
    height: 40px;
    width: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--canvas);
    display: grid;
    place-items: center;
}
.skill-card h2 {
    font-size: var(--text-lg);
    margin-bottom: 8px;
}
.skill-card p {
    font-size: var(--text-sm);
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 22px;
}
.skill-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    font-size: var(--text-xs);
    color: var(--muted);
}
.skills-filter {
    display: flex;
    gap: 8px;
    margin: 0 0 22px;
    flex-wrap: wrap;
}
.skills-filter button[aria-pressed="true"] {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}
.audit-table td {
    padding-top: 16px;
    padding-bottom: 16px;
}
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.settings-panel {
    padding: 24px;
}
.settings-panel h2 {
    margin-bottom: 9px;
}
.settings-panel p {
    font-size: var(--text-sm);
    color: var(--muted);
    margin-bottom: 22px;
    line-height: 1.7;
}
.definition-list {
    margin: 0;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
    font-size: var(--text-sm);
}
.definition-list dt {
    color: var(--muted);
}
.definition-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.note {
    font-size: var(--text-sm);
    color: var(--muted);
    line-height: 1.65;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 13px 15px;
    display: flex;
    gap: 10px;
}
.note > .icon {
    width: 16px;
    margin-top: 2px;
}
.note.warning {
    background: var(--warning-soft);
    border-color: #f2e4c5;
    color: var(--warning);
}
.note.success {
    background: var(--success-soft);
    border-color: #d9e8d6;
    color: var(--success);
}
.note strong {
    font-weight: 550;
}
.settings-panel .note {
    margin-top: 20px;
}
.blank-space {
    height: 20px;
}

dialog {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
    padding: 0;
    max-height: 92dvh;
}
dialog::backdrop {
    background: #2121214d;
    backdrop-filter: blur(2px);
}
dialog[open] {
    animation: dialog-enter 0.18s ease-out;
}
.modal-dialog {
    width: min(560px, calc(100% - 32px));
    border-radius: 14px;
}
.dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 26px 18px;
    gap: 16px;
}
.dialog-head h2 {
    font-size: 21.6px;
}
.dialog-head p {
    font-size: var(--text-sm);
    color: var(--muted);
    margin-top: 5px;
}
.dialog-content {
    padding: 6px 26px 26px;
}
.dialog-footer {
    border-top: 1px solid var(--line);
    padding: 16px 26px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: var(--canvas);
}
.dialog-footer .btn {
    min-height: 39px;
}
.dialog-footer .back-btn {
    margin-right: auto;
}
.form-field {
    margin: 0 0 19px;
}
.form-field > label,
.field-label {
    font-size: var(--text-sm);
    font-weight: 500;
    display: block;
    margin-bottom: 7px;
}
.form-field label span {
    font-weight: 400;
    color: var(--muted);
}
.field-input {
    display: block;
    min-height: 42px;
    width: 100%;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    border-radius: 7px;
    padding: 9px 11px;
    font-size: var(--text-base);
    color: var(--ink);
}
textarea.field-input {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}
.field-input:focus {
    border-color: var(--success);
}
.field-hint {
    font-size: var(--text-xs);
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.6;
}
.field-error {
    color: var(--danger);
    font-size: var(--text-xs);
    margin-top: 6px;
}
.field-input[aria-invalid="true"] {
    border-color: var(--danger);
}
.wizard-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 26px 23px;
    color: var(--muted);
    font-size: var(--text-xs);
}
.wizard-step {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.wizard-step > span {
    width: 20px;
    height: 20px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: var(--text-xs);
}
.wizard-step.active {
    color: var(--ink);
    font-weight: 500;
}
.wizard-step.active > span {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}
.wizard-step.done > span {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}
.wizard-connector {
    height: 1px;
    background: var(--line);
    flex: 1;
}
.review-card {
    border: 1px solid var(--line);
    background: var(--canvas);
    border-radius: 9px;
    padding: 18px;
    margin-bottom: 18px;
}
.review-card .definition-list {
    grid-template-columns: 110px 1fr;
    font-size: var(--text-sm);
    gap: 12px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.radio-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.radio-option {
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 13px;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}
.radio-option:has(input:checked) {
    border-color: var(--success);
    background: var(--success-soft);
}
.radio-option input {
    accent-color: var(--success);
}
.error-summary {
    border: 1px solid var(--danger);
    padding: 12px;
    background: var(--danger-soft);
    border-radius: 7px;
    font-size: var(--text-sm);
    margin-bottom: 18px;
    color: var(--danger);
}
.error-summary a {
    text-decoration: underline;
}
.detail-dialog {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: min(540px, 100%);
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 14px 0 0 14px;
    border-right: 0;
    overflow-y: auto;
}
.detail-dialog[open] {
    animation: sheet-enter 0.2s ease-out;
}
.detail-dialog .dialog-head {
    padding: 25px 26px 20px;
}
.detail-header-project {
    display: flex;
    gap: 12px;
    align-items: center;
}
.detail-header-project .project-symbol {
    width: 43px;
    height: 43px;
    font-size: 21.6px;
}
.detail-header-project h2 {
    font-size: var(--text-xl);
    line-height: 1.4;
}
.detail-header-project .mono {
    font-size: var(--text-xs);
    color: var(--muted);
    margin-top: 4px;
}
.detail-status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 26px 20px;
}
.detail-dialog .tabs-toolbar {
    padding: 0 26px;
}
.detail-dialog .tabs {
    gap: 25px;
}
.detail-section {
    padding: 23px 26px;
    border-bottom: 1px solid var(--line);
}
.detail-section h3 {
    font-size: var(--text-base);
    margin-bottom: 17px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.detail-section h3 .icon {
    height: 16px;
    width: 16px;
    color: var(--muted);
}
.detail-section .definition-list {
    font-size: var(--text-sm);
    grid-template-columns: 135px 1fr;
    gap: 14px;
}
.detail-section .note {
    margin-bottom: 18px;
}
.detail-section .note:last-child {
    margin-bottom: 0;
}
.detail-section .btn {
    margin-top: 16px;
}
.detail-section .person-cell {
    margin: 0 0 20px;
}
.detail-bottom {
    padding: 22px 26px;
    background: var(--canvas);
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}
.onboarding-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.onboarding-list li {
    display: flex;
    gap: 13px;
    position: relative;
    padding-bottom: 24px;
}
.onboarding-list li:not(:last-child):before {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 3px;
    left: 12px;
    width: 1px;
    background: var(--line);
}
.step-circle {
    height: 26px;
    width: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    font-size: var(--text-xs);
    flex-shrink: 0;
    background: var(--surface);
    z-index: 1;
}
.step-circle.complete {
    background: var(--success-soft);
    border-color: #d9e8d6;
    color: var(--success);
}
.step-circle .icon {
    width: 13px;
    height: 13px;
}
.onboarding-list strong {
    font-size: var(--text-sm);
    font-weight: 500;
}
.onboarding-list p {
    font-size: var(--text-xs);
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.6;
}
.onboarding-list .btn {
    margin-top: 10px;
}
.detail-activity {
    padding: 10px 0 0;
}
.search-dialog {
    width: min(620px, calc(100% - 28px));
    border-radius: 12px;
    margin-top: 15dvh;
}
.command-input {
    display: flex;
    align-items: center;
    padding: 15px 19px;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}
.command-input > .icon {
    width: 20px;
    color: var(--muted);
}
.command-input input {
    border: 0;
    outline: none;
    min-height: 32px;
    width: 100%;
    font-size: var(--text-lg);
    background: none;
}
.command-input input:focus-visible {
    outline: 0;
}
.search-results {
    max-height: 50dvh;
    overflow: auto;
    padding: 8px;
}
.search-category {
    padding: 7px 10px;
    font-size: var(--text-xs);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}
.search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    width: 100%;
    padding: 11px;
    border-radius: 7px;
    background: none;
    text-align: left;
    font-size: var(--text-base);
}
.search-result[aria-selected="true"],
.search-result:hover {
    background: var(--sidebar);
}
.search-result small {
    display: block;
    color: var(--muted);
    font-size: var(--text-xs);
    margin-top: 2px;
}
.search-result > .icon {
    margin-left: auto;
    width: 15px;
    color: var(--muted);
}
.search-hint {
    padding: 11px 19px;
    background: var(--canvas);
    border-top: 1px solid var(--line);
    font-size: var(--text-xs);
    color: var(--muted);
    display: flex;
    gap: 14px;
    align-items: center;
}
.toast-stack {
    position: fixed;
    bottom: 24px;
    left: calc(50% + 112px);
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
}
.toast {
    padding: 13px 18px;
    background: var(--ink);
    border: 1px solid #595959;
    color: white;
    border-radius: 9px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-sm);
    max-width: calc(100vw - 32px);
    animation: dialog-enter 0.18s ease-out;
}
.toast > .icon {
    color: var(--accent);
    width: 17px;
}
.filter-dialog {
    width: 420px;
}
.filter-dialog .dialog-content {
    padding-top: 5px;
}
.filter-dialog .form-grid {
    gap: 14px;
}
.alert-row {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.alert-row:last-child {
    border: 0;
}
.alert-row h3 {
    font-size: var(--text-base);
}
.alert-row p {
    font-size: var(--text-sm);
    color: var(--muted);
    margin: 4px 0 8px;
}
.alert-row .btn {
    font-size: var(--text-xs);
    min-height: 30px;
}
.mobile-scrim {
    position: fixed;
    inset: 0;
    background: #21212166;
    z-index: 25;
}
.mobile-sidebar-head {
    display: none;
}
.wide-only {
    display: table-cell;
}
@keyframes dialog-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes sheet-enter {
    from {
        opacity: 0.5;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.overview-projects .panel-header {
    padding-bottom: 16px;
}
.overview-projects .owner-cell,
.overview-projects .engine-column,
.overview-projects .activity-column,
.overview-projects th:nth-child(3),
.overview-projects th:nth-child(5),
.overview-projects th:nth-child(7) {
    display: none;
}
.overview-projects .table-tools {
    gap: 8px;
}
.overview-projects .save-view-btn {
    display: none;
}
.engine-mark > .icon {
    width: 15px;
    height: 15px;
}
.session-card {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 16px;
}
.session-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.session-card-heading strong {
    font-size: var(--text-sm);
    font-weight: 500;
}
.session-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.transcript-message {
    border: 1px solid var(--line);
    padding: 16px;
    border-radius: 9px;
    margin-bottom: 14px;
    font-size: var(--text-base);
    line-height: 1.7;
}
.transcript-message.ai {
    background: var(--canvas);
}
@media (min-width: 1600px) {
    .overview-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
    }
    .activity-chart {
        height: 165px;
    }
    .queue-item {
        padding-top: 17px;
        padding-bottom: 17px;
    }
    .metric {
        padding: 24px;
    }
}
@media (max-width: 1250px) {
    .sidebar {
        width: 224px;
        padding-left: 12px;
        padding-right: 12px;
    }
    .workspace {
        margin-left: 224px;
        width: calc(100% - 224px);
    }
    main {
        padding: 28px 25px;
    }
    .topbar {
        padding: 0 25px;
    }
    .overview-grid {
        grid-template-columns: minmax(0, 1fr) 255px;
        gap: 18px;
    }
    .overview-primary,
    .overview-secondary {
        gap: 18px;
    }
    .panel-header {
        padding-left: 18px;
        padding-right: 18px;
    }
    .queue-item {
        padding-left: 18px;
        padding-right: 18px;
    }
    .queue-item > .btn {
        font-size: var(--text-xs);
    }
    .queue-content strong {
        font-size: var(--text-xs);
    }
    .queue-content p {
        font-size: var(--text-xs);
    }
    .metric {
        padding: 18px;
    }
    .metric-sparkline {
        width: 52px;
        right: 15px;
        bottom: 20px;
    }
    .metric-description {
        font-size: var(--text-xs);
    }
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .toast-stack {
        left: calc(50% + 102px);
    }
    .table-tools {
        padding-left: 18px;
        padding-right: 18px;
    }
}
@media (max-width: 1050px) {
    .sidebar {
        width: 208px;
    }
    .workspace {
        margin-left: 208px;
        width: calc(100% - 208px);
    }
    .nav-link {
        font-size: var(--text-sm);
        padding-left: 9px;
        padding-right: 9px;
    }
    .brand {
        font-size: 21.6px;
        margin-left: 9px;
    }
    .brand sup {
        display: none;
    }
    .overview-grid {
        grid-template-columns: 1fr;
    }
    .overview-secondary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
    .overview-secondary > .panel:first-child {
        grid-row: span 2;
    }
    .tip-panel {
        padding: 16px 20px;
    }
    .metric-sparkline {
        display: none;
    }
    .metric-description {
        font-size: var(--text-xs);
    }
    .page-heading {
        align-items: flex-start;
    }
    h1 {
        font-size: 27px;
    }
    .heading-actions {
        gap: 7px;
    }
    .heading-actions .btn {
        font-size: var(--text-xs);
        padding: 8px 10px;
    }
    .heading-actions .date-button {
        display: none;
    }
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .toast-stack {
        left: calc(50% + 95px);
    }
    .topbar-actions {
        gap: 10px;
    }
    .workspace-footer {
        padding: 14px 25px;
        flex-wrap: wrap;
    }
    .topbar {
        height: 66px;
    }
    .page-subtitle {
        font-size: var(--text-sm);
    }
    .wide-only {
        display: none;
    }
}
@media (max-width: 767px) {
    .sidebar {
        width: 240px;
        transform: translateX(-100%);
        transition: transform 0.2s ease-out;
        padding: 20px 16px;
        overflow-y: auto;
    }
    .sidebar.is-open {
        transform: translateX(0);
    }
    .sidebar .brand {
        font-size: 25.2px;
    }
    .sidebar .brand sup {
        display: inline;
    }
    .nav-link {
        min-height: 44px;
        font-size: var(--text-base);
    }
    .workspace {
        margin: 0;
        width: 100%;
    }
    .topbar {
        height: 62px;
        padding: 0 20px;
        gap: 12px;
    }
    .mobile-menu {
        display: inline-flex;
        flex-shrink: 0;
    }
    .breadcrumb {
        font-size: var(--text-xs);
        gap: 8px;
        flex: 1;
    }
    .breadcrumb > span:first-of-type {
        display: none;
    }
    .breadcrumb > .icon {
        display: none;
    }
    .topbar-actions {
        gap: 7px;
    }
    .search-trigger {
        padding: 5px;
        min-height: 36px;
        min-width: 36px;
        justify-content: center;
    }
    .search-trigger > span,
    .search-trigger > .keycap,
    .topbar-divider {
        display: none;
    }
    .topbar .avatar {
        width: 29px;
        height: 29px;
        font-size: var(--text-xs);
    }
    .topbar .icon-button {
        min-width: 32px;
    }
    .mobile-sidebar-head {
        display: flex;
        justify-content: space-between;
    }
    .mobile-sidebar-head + .brand {
        display: none;
    }
    .mobile-sidebar-head .brand {
        margin-left: 0;
        margin-bottom: 20px;
    }
    .mobile-sidebar-head .icon-button {
        margin-top: -3px;
    }
    main {
        padding: 25px 20px 20px;
    }
    .page-heading {
        gap: 14px;
        margin-bottom: 22px;
        flex-wrap: wrap;
    }
    .eyebrow {
        font-size: var(--text-xs);
    }
    h1 {
        font-size: 27px;
    }
    .heading-actions {
        margin-left: auto;
    }
    .page-subtitle {
        line-height: 1.7;
    }
    .heading-actions .status-indicator {
        display: none;
    }
    .heading-actions .btn {
        font-size: var(--text-sm);
        min-height: 40px;
    }
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 18px;
    }
    .metric {
        padding: 17px;
    }
    .metric + .metric {
        border-left: 0;
    }
    .metric:nth-child(even) {
        border-left: 1px solid var(--line);
    }
    .metric:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
    .metric-value {
        font-size: 28.8px;
    }
    .metric-label {
        font-size: var(--text-xs);
    }
    .metric-description {
        font-size: var(--text-xs);
    }
    .metric-change {
        font-size: var(--text-xs);
    }
    .overview-primary {
        gap: 18px;
    }
    .overview-secondary {
        display: flex;
        gap: 18px;
    }
    .overview-grid {
        gap: 18px;
    }
    .queue-item {
        gap: 9px;
        align-items: flex-start;
        padding: 14px 17px;
    }
    .queue-content strong {
        font-size: var(--text-sm);
    }
    .queue-content p {
        font-size: var(--text-xs);
    }
    .queue-item > .btn {
        font-size: var(--text-xs);
        white-space: normal;
        max-width: 95px;
        min-height: 36px;
        flex-shrink: 0;
        margin-top: 2px;
    }
    .issue-icon {
        width: 28px;
        height: 28px;
    }
    .panel-header {
        padding: 17px 17px 0;
    }
    .panel-header h2 {
        font-size: var(--text-base);
    }
    .chart-meta {
        padding-left: 17px;
    }
    .chart-wrap {
        padding-left: 14px;
        padding-right: 14px;
    }
    .chart-meta strong {
        font-size: 25.2px;
    }
    .chart-meta span {
        font-size: var(--text-xs);
    }
    .activity-chart {
        height: 145px;
    }
    .overview-secondary {
        display: grid;
        grid-template-columns: 1fr;
    }
    .tip-panel {
        display: none;
    }
    .activity-list {
        padding: 18px;
    }
    .activity-body button {
        font-size: var(--text-sm);
    }
    .activity-body p,
    .activity-body time {
        font-size: var(--text-xs);
    }
    .activity-item {
        padding-bottom: 18px;
    }
    .projects-section {
        margin-top: 18px;
    }
    .projects-section .panel-header {
        flex-wrap: wrap;
        padding-bottom: 15px;
    }
    .tabs-toolbar {
        padding: 0 17px;
    }
    .tabs {
        gap: 17px;
    }
    .tab {
        font-size: var(--text-xs);
        min-height: 45px;
    }
    .table-tools {
        padding: 12px 17px;
        gap: 7px;
    }
    .input-wrap {
        flex: 1;
        min-width: 120px;
    }
    .input-wrap input {
        width: 100%;
        font-size: var(--text-sm);
        min-height: 38px;
    }
    .table-tools > .btn {
        min-height: 38px;
    }
    .table-tools > .toolbar-spacer {
        display: none;
    }
    .table-tools > .save-view-btn {
        display: none;
    }
    .table-footer {
        padding: 13px 17px;
        font-size: var(--text-xs);
    }
    .table-scroll table.project-table {
        min-width: 0;
    }
    .project-table thead {
        display: none;
    }
    .project-table tbody {
        display: block;
    }
    .project-table tr {
        display: grid;
        grid-template-columns: 24px 1fr auto;
        gap: 8px;
        padding: 15px 17px;
        border-bottom: 1px solid var(--line);
        align-items: center;
    }
    .project-table tr:last-child {
        border-bottom: 0;
    }
    .project-table td {
        padding: 0 !important;
        border: 0;
    }
    .project-table .checkbox-cell {
        width: auto;
        grid-column: 1;
        grid-row: 1;
    }
    .project-table .project-main-cell {
        grid-column: 2;
        grid-row: 1;
    }
    .project-table .project-status-cell {
        grid-column: 2;
        grid-row: 2;
        margin-left: 44px;
    }
    .project-table .owner-cell,
    .project-table .engine-column,
    .project-table .plan-column,
    .project-table .activity-column {
        display: none;
    }
    .project-table .project-action-cell {
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: center;
    }
    .project-symbol {
        width: 33px;
        height: 33px;
    }
    .project-cell {
        min-width: 0;
        gap: 10px;
    }
    .project-name {
        font-size: var(--text-sm);
    }
    .project-id {
        font-size: var(--text-xs);
    }
    .project-table .row-open {
        min-height: 40px;
        min-width: 30px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .server-card,
    .skill-card {
        padding: 20px;
    }
    .summary-strip {
        gap: 15px;
        padding: 17px;
        margin-bottom: 18px;
    }
    .summary-stat {
        font-size: var(--text-xs);
    }
    .summary-stat strong {
        font-size: var(--text-xl);
    }
    .workspace-footer {
        font-size: var(--text-xs);
        padding: 10px 20px 20px;
        gap: 7px;
        display: flex;
        flex-direction: column;
    }
    .toast-stack {
        left: 50%;
        bottom: 18px;
        width: max-content;
        max-width: calc(100vw - 32px);
    }
    .toast {
        font-size: var(--text-sm);
    }
    .page-table {
        min-width: 650px;
    }
    .simple-table {
        min-width: 500px;
    }
    .skill-card {
        min-height: 230px;
    }
    .settings-panel {
        padding: 20px;
    }
    .settings-panel .definition-list {
        grid-template-columns: 105px 1fr;
        gap: 12px;
        font-size: var(--text-xs);
    }
    .dialog-head {
        padding: 22px 20px 16px;
    }
    .dialog-head h2 {
        font-size: 19.8px;
    }
    .dialog-content {
        padding: 5px 20px 22px;
    }
    .dialog-footer {
        padding: 15px 20px;
    }
    .field-input {
        font-size: var(--text-lg);
        min-height: 44px;
    }
    .form-field > label {
        font-size: var(--text-base);
    }
    .wizard-steps {
        padding: 0 20px 20px;
        gap: 6px;
    }
    .wizard-step {
        font-size: var(--text-xs);
        gap: 5px;
    }
    .wizard-step > span {
        width: 19px;
        height: 19px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .detail-dialog {
        border-radius: 0;
    }
    .detail-dialog .dialog-head {
        padding: 23px 20px 18px;
    }
    .detail-dialog .tabs-toolbar {
        padding: 0 20px;
    }
    .detail-header-project h2 {
        font-size: var(--text-xl);
    }
    .detail-section {
        padding: 22px 20px;
    }
    .detail-section .definition-list {
        grid-template-columns: 115px 1fr;
        font-size: var(--text-sm);
    }
    .detail-status-line {
        padding-left: 20px;
        padding-right: 20px;
    }
    .detail-bottom {
        padding: 20px;
    }
    .search-dialog {
        margin-top: 8dvh;
    }
    .search-hint {
        font-size: var(--text-xs);
        gap: 8px;
    }
    .command-input input {
        font-size: var(--text-lg);
    }
    .btn {
        min-height: 40px;
    }
    .icon-button {
        min-width: 40px;
        min-height: 40px;
    }
    .review-card .definition-list {
        grid-template-columns: 88px 1fr;
    }
    .search-results {
        max-height: 60dvh;
    }
    .search-category {
        font-size: var(--text-xs);
    }
    .search-result {
        min-height: 54px;
    }
    .field-hint,
    .field-error {
        font-size: var(--text-sm);
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.checkbox-target {
    display: inline-flex;
    min-width: 28px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
