:root {
    --blue-800: #1546c7;
    --blue-700: #1f5eff;
    --blue-650: #2b67fb;
    --blue-600: #3a73ff;
    --blue-100: #e8efff;
    --blue-75: #edf3ff;
    --blue-50: #f4f7ff;
    --ink-950: #172033;
    --ink-900: #24314a;
    --ink-800: #34415a;
    --ink-700: #526079;
    --ink-600: #6d788b;
    --ink-500: #8791a4;
    --line-strong: #d9e1ed;
    --line: #e7edf4;
    --surface: #ffffff;
    --surface-soft: #f6f8fc;
    --surface-muted: #eff3f8;
    --surface-panel: rgba(255, 255, 255, .90);
    --surface-table: rgba(255, 255, 255, .76);
    --success: #16875a;
    --success-bg: #e7f7ef;
    --warning: #a96500;
    --warning-bg: #fff4db;
    --danger: #c53f4c;
    --danger-bg: #fff0f2;
    --info: #2865d7;
    --info-bg: #eaf1ff;
    --shadow-soft: 0 12px 28px rgba(27, 45, 78, .07);
    --shadow-float: 0 22px 56px rgba(27, 45, 78, .15);
    --radius-xs: 8px;
    --radius-sm: 11px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --sidebar-width: 266px;
    --font: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--surface-soft);
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink-950);
    background: var(--surface-soft);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -.015em;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

a {
    color: inherit;
    text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(31, 94, 255, .26);
    outline-offset: 2px;
}

.app-shell {
    min-height: 100vh;
}

.boot-screen {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 100vh;
    color: var(--ink-800);
    gap: 8px;
}

.boot-screen strong {
    font-size: 17px;
    letter-spacing: -.04em;
}

.boot-screen p {
    margin: 0;
    color: var(--ink-600);
}

.boot-mark,
.brand-mark {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 4px;
    background: var(--blue-700);
    box-shadow: 6px 6px 0 rgba(31, 94, 255, .16);
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar-scrim {
    display: none;
}

.sidebar {
    position: fixed;
    z-index: 20;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    overflow: hidden;
    padding: 26px 16px 18px;
    background: rgba(255, 255, 255, .96);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 11px 28px;
    border-bottom: 1px solid var(--line);
}

.brand-copy {
    min-width: 0;
}

.brand-name {
    color: var(--ink-950);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.brand-subtitle {
    margin-top: 2px;
    color: var(--ink-600);
    font-size: 11px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    min-height: 0;
    padding: 21px 0;
    overflow-y: auto;
}

.nav-group + .nav-group {
    margin-top: 24px;
}

.nav-group-label {
    display: block;
    padding: 0 12px 8px;
    color: var(--ink-500);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    margin: 3px 0;
    padding: 9px 11px;
    color: var(--ink-700);
    border: 0;
    border-radius: 11px;
    background: transparent;
    font-weight: 700;
    text-align: left;
    transition: background .18s ease, color .18s ease, transform .18s ease;
    width: 100%;
}

.nav-link:hover {
    color: var(--blue-800);
    background: var(--blue-50);
}

.nav-link.is-active {
    color: var(--blue-800);
    background: var(--blue-100);
}

.nav-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.9;
    flex: 0 0 auto;
}

.nav-badge {
    min-width: 20px;
    margin-left: auto;
    padding: 1px 6px;
    color: var(--blue-800);
    border-radius: 99px;
    background: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.sidebar-footer {
    display: grid;
    gap: 9px;
    padding: 16px 9px 2px;
    border-top: 1px solid var(--line);
}

.current-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sidebar-footer .current-user {
    width: 100%;
    padding: 8px;
    color: inherit;
    border: 0;
    border-radius: 12px;
    background: transparent;
    appearance: none;
    text-align: left;
    transition: background .16s ease, transform .16s ease;
}

.sidebar-footer .current-user:hover {
    background: var(--blue-50);
}

.sidebar-footer .current-user:active {
    transform: translateY(1px);
}

.avatar {
    display: grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--blue-800);
    border-radius: 11px;
    background: var(--blue-100);
    font-size: 12px;
    font-weight: 800;
}

.current-user-copy {
    min-width: 0;
}

.current-user-name,
.current-user-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.current-user-name {
    color: var(--ink-900);
    font-size: 12px;
    font-weight: 800;
}

.current-user-role {
    margin-top: 1px;
    color: var(--ink-600);
    font-size: 11px;
}

.content {
    width: calc(100% - var(--sidebar-width));
    min-width: 0;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background:
        radial-gradient(circle at 92% 4%, rgba(58, 115, 255, .08), transparent 28%),
        linear-gradient(180deg, #f1f5fb 0%, #eef3f9 100%);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 0 36px;
    background: rgba(246, 248, 252, .88);
    border-bottom: 1px solid rgba(231, 237, 244, .8);
    backdrop-filter: blur(16px);
}

.topbar-title {
    color: var(--ink-900);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.menu-button {
    display: none;
}

.main-content {
    width: min(1540px, 100%);
    min-height: calc(100vh - 76px);
    padding: 33px 36px 56px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .38));
    border-left: 1px solid rgba(255, 255, 255, .7);
    border-radius: 26px 0 0 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
    backdrop-filter: blur(8px);
}

.page-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 0;
    color: var(--ink-950);
    font-size: clamp(23px, 2.3vw, 30px);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: 1.25;
}

.page-heading p {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--ink-600);
}

.page-heading-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    color: var(--ink-800);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 2px 3px rgba(30, 48, 79, .02);
    font-size: 13px;
    font-weight: 750;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.button:hover:not(:disabled) {
    border-color: #bfcce1;
    background: #fbfcfe;
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    border-color: var(--blue-700);
    background: var(--blue-700);
    box-shadow: 0 7px 15px rgba(31, 94, 255, .18);
}

.button-primary:hover:not(:disabled) {
    border-color: var(--blue-800);
    background: var(--blue-800);
}

.button-danger {
    color: #fff;
    border-color: var(--danger);
    background: var(--danger);
}

.button-quiet {
    color: var(--ink-600);
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.button svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.icon-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
}

.icon-button svg {
    width: 18px;
    height: 18px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.summary-card,
.panel,
.project-card,
.metric-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-panel);
    box-shadow: var(--shadow-soft);
}

.summary-card {
    position: relative;
    overflow: hidden;
    min-height: 136px;
    padding: 19px;
}

.summary-card::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    content: "";
    opacity: .9;
}

.summary-card.tone-blue::after { background: var(--blue-600); }
.summary-card.tone-success::after { background: var(--success); }
.summary-card.tone-warning::after { background: #e4a829; }
.summary-card.tone-danger::after { background: #e2626d; }

.summary-label {
    color: var(--ink-600);
    font-size: 12px;
    font-weight: 750;
}

.summary-number {
    margin-top: 11px;
    color: var(--ink-950);
    font-size: 31px;
    font-weight: 850;
    letter-spacing: -.065em;
    line-height: 1;
}

.summary-description {
    margin: 10px 0 0;
    color: var(--ink-600);
    font-size: 12px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 18px;
}

.content-grid + .content-grid,
.content-grid + .panel,
.panel + .panel,
.section-spacer {
    margin-top: 18px;
}

.panel {
    overflow: hidden;
}

.panel-head {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
}

.panel-heading {
    min-width: 0;
}

.panel-title {
    margin: 0;
    color: var(--ink-900);
    font-size: 15px;
    font-weight: 820;
    letter-spacing: -.035em;
}

.panel-description {
    margin: 3px 0 0;
    color: var(--ink-600);
    font-size: 12px;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.panel-body {
    padding: 20px;
}

.panel-body-flush {
    padding: 0;
}

.project-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 13px;
    padding: 15px 20px;
    color: inherit;
    border: 0;
    background: transparent;
    appearance: none;
    text-align: left;
    transition: background .16s ease;
}

.project-row:hover {
    background: rgba(232, 239, 255, .58);
}

.project-row + .project-row {
    border-top: 1px solid var(--line);
}

.project-row-copy {
    min-width: 0;
}

.project-row-name {
    overflow: hidden;
    color: var(--ink-900);
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-row-meta {
    margin-top: 3px;
    color: var(--ink-600);
    font-size: 12px;
}

.project-row .status-pill {
    margin-left: auto;
}

.project-ident {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--blue-800);
    border-radius: 13px;
    background: var(--blue-100);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.project-ident.tone-lms {
    color: #6e55c7;
    background: #f0ecff;
}

.project-ident.tone-neutral {
    color: var(--ink-600);
    background: var(--surface-muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.status-pill::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status-normal,
.status-success,
.status-resolved,
.status-healthy {
    color: var(--success);
    background: var(--success-bg);
}

.status-warning,
.status-pending,
.status-waiting,
.status-maintenance,
.status-rolled-back {
    color: var(--warning);
    background: var(--warning-bg);
}

.status-danger,
.status-error,
.status-open,
.status-critical,
.status-locked {
    color: var(--danger);
    background: var(--danger-bg);
}

.status-info,
.status-progress,
.status-active,
.status-acknowledged {
    color: var(--info);
    background: var(--info-bg);
}

.status-neutral,
.status-unknown,
.status-disabled,
.status-closed,
.status-archived {
    color: var(--ink-600);
    background: var(--surface-muted);
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
}

.alert-item + .alert-item {
    border-top: 1px solid var(--line);
}

.severity-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--info);
}

.severity-dot.warning { background: #e2a129; }
.severity-dot.danger,
.severity-dot.critical { background: var(--danger); }
.severity-dot.success { background: var(--success); }

.alert-item-copy {
    min-width: 0;
    flex: 1;
}

.alert-item-title {
    color: var(--ink-900);
    font-size: 13px;
    font-weight: 760;
}

.alert-item-meta {
    margin-top: 4px;
    color: var(--ink-600);
    font-size: 11px;
}

.alert-item-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.alert-item-actions .button {
    min-height: 34px;
}

.text-link {
    color: var(--blue-800);
    font-size: 12px;
    font-weight: 800;
}

button.text-link {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
}

.text-link:hover {
    text-decoration: underline;
}

.list-empty,
.empty-state {
    display: grid;
    min-height: 190px;
    padding: 32px 20px;
    place-items: center;
    align-content: center;
    color: var(--ink-600);
    text-align: center;
}

.empty-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 11px;
    place-items: center;
    color: var(--ink-500);
    border-radius: 14px;
    background: var(--surface-muted);
}

.empty-icon svg {
    width: 21px;
    height: 21px;
}

.empty-state h2,
.list-empty strong {
    margin: 0;
    color: var(--ink-800);
    font-size: 14px;
    font-weight: 800;
}

.empty-state p,
.list-empty p {
    max-width: 440px;
    margin: 6px 0 0;
    font-size: 12px;
}

.empty-state .button {
    margin-top: 15px;
}

.loading-block {
    min-height: 210px;
    display: grid;
    place-items: center;
    color: var(--ink-600);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: -5px;
    border: 2px solid var(--blue-100);
    border-top-color: var(--blue-700);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-table);
}

.data-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: transparent;
}

.data-table th,
.data-table td {
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--ink-500);
    background: rgba(246, 249, 254, .92);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
    white-space: nowrap;
}

.data-table td {
    color: var(--ink-700);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.data-table tbody tr {
    background: rgba(255, 255, 255, .34);
}

.data-table tbody tr:hover {
    background: rgba(232, 239, 255, .48);
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table td strong {
    color: var(--ink-900);
    font-size: 12px;
}

.table-subtext {
    margin-top: 5px;
    color: var(--ink-600);
    font-size: 11px;
    line-height: 1.45;
}

.health-details {
    margin-top: 9px;
    border: 1px solid rgba(137, 158, 194, .24);
    border-radius: 9px;
    background: rgba(243, 247, 255, .72);
    color: var(--ink-700);
}

.health-details summary {
    padding: 8px 10px;
    color: var(--ink-700);
    cursor: pointer;
    font-size: 11px;
    font-weight: 760;
}

.health-detail-list {
    padding: 0 10px 8px;
}

.health-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px solid rgba(137, 158, 194, .18);
    color: var(--ink-600);
    font-size: 11px;
}

.health-detail-row strong {
    color: var(--ink-900);
    font-size: 11px;
}

.table-primary {
    display: block;
    color: var(--ink-900);
    font-weight: 800;
}

.table-secondary {
    display: block;
    margin-top: 3px;
    color: var(--ink-600);
    font-size: 11px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 244px;
    padding: 20px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.project-card:hover {
    border-color: #c8d5ea;
    box-shadow: 0 16px 30px rgba(27, 45, 78, .1);
    transform: translateY(-2px);
}

.project-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.project-card-status {
    margin-left: auto;
}

.project-card-name {
    margin: 0;
    color: var(--ink-900);
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -.04em;
}

.project-card-code {
    margin: 3px 0 0;
    color: var(--ink-600);
    font-size: 11px;
}

.project-card-description {
    display: -webkit-box;
    margin: 18px 0;
    overflow: hidden;
    color: var(--ink-700);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.project-meta-label {
    color: var(--ink-500);
    font-size: 10px;
    font-weight: 800;
}

.project-meta-value {
    margin-top: 3px;
    overflow: hidden;
    color: var(--ink-800);
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-table);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.filter-chip {
    min-height: 31px;
    padding: 5px 10px;
    color: var(--ink-600);
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--surface);
    font-size: 12px;
    font-weight: 750;
}

.filter-chip:hover {
    border-color: #bfd0ee;
    color: var(--blue-800);
}

.filter-chip.is-active {
    color: var(--blue-800);
    border-color: #c8d7fa;
    background: var(--blue-75);
}

.search-field {
    position: relative;
    display: flex;
    min-width: 180px;
    max-width: 300px;
    align-items: center;
    margin-left: auto;
}

.search-field svg {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: var(--ink-500);
    pointer-events: none;
}

.search-field input {
    width: 100%;
    min-height: 35px;
    padding: 7px 10px 7px 33px;
    color: var(--ink-800);
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface);
    font-size: 12px;
}

.search-field input::placeholder {
    color: var(--ink-500);
}

.tabs {
    display: flex;
    gap: 19px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    background: var(--surface-table);
}

.tab {
    position: relative;
    flex: 0 0 auto;
    min-height: 52px;
    padding: 16px 0;
    color: var(--ink-600);
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 780;
}

.tab:first-child {
    margin-left: 20px;
}

.tab:last-child {
    margin-right: 20px;
}

.tab::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 99px;
    background: transparent;
    content: "";
}

.tab.is-active {
    color: var(--blue-800);
}

.tab.is-active::after {
    background: var(--blue-700);
}

.detail-hero {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 24px;
}

.detail-hero-copy {
    min-width: 0;
    flex: 1;
}

.detail-hero h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.045em;
}

.detail-hero p {
    margin: 5px 0 0;
    color: var(--ink-600);
}

.detail-hero-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.key-value-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}

.key-value {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.key-value-label {
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 800;
}

.key-value-value {
    margin-top: 4px;
    color: var(--ink-800);
    font-size: 13px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.timeline {
    padding: 2px 0;
}

.timeline-row {
    position: relative;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 11px;
    padding: 12px 0;
}

.timeline-row + .timeline-row::before {
    position: absolute;
    top: -11px;
    left: 5px;
    width: 1px;
    height: 24px;
    background: var(--line-strong);
    content: "";
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    margin-top: 4px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--blue-600);
    box-shadow: 0 0 0 1px #cbd8ef;
}

.timeline-title {
    color: var(--ink-800);
    font-size: 13px;
    font-weight: 750;
}

.timeline-meta {
    margin-top: 3px;
    color: var(--ink-600);
    font-size: 11px;
}

.diagnostic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.diagnostic-card {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-table);
}

.diagnostic-card-label {
    color: var(--ink-600);
    font-size: 11px;
    font-weight: 780;
}

.diagnostic-card-value {
    margin-top: 7px;
    color: var(--ink-900);
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -.04em;
}

.diagnostic-card-note {
    margin-top: 5px;
    color: var(--ink-600);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.developer-details {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-table);
    overflow: hidden;
}

.developer-details summary {
    padding: 12px 14px;
    color: var(--ink-700);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.developer-details[open] summary {
    border-bottom: 1px solid var(--line);
}

.developer-details-body {
    padding: 13px 14px;
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 15px;
    border: 1px solid #d3def4;
    border-radius: 12px;
    background: var(--blue-50);
    color: #345488;
    font-size: 12px;
}

.notice.warning {
    border-color: #f0dbab;
    background: #fff9ed;
    color: #8b6424;
}

.notice.success {
    border-color: #b9e5cb;
    background: #f0fbf4;
    color: #237348;
}

.notice svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 1px;
}

.auth-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1fr) minmax(400px, .78fr);
    background: var(--surface);
}

.auth-aside {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 620px;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(32px, 5vw, 72px);
    color: #fff;
    background: radial-gradient(circle at 12% 14%, rgba(113, 161, 255, .42), transparent 30%), linear-gradient(143deg, #10234a 0%, #184cce 56%, #5f8cff 135%);
}

.auth-aside::before,
.auth-aside::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.auth-aside::before {
    right: -180px;
    bottom: -140px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(255,255,255,.17);
    box-shadow: 0 0 0 72px rgba(255,255,255,.06), 0 0 0 144px rgba(255,255,255,.035);
}

.auth-aside::after {
    top: 22%;
    right: 14%;
    width: 14px;
    height: 14px;
    background: rgba(255,255,255,.82);
    box-shadow: 70px 78px 0 rgba(255,255,255,.35), -108px 150px 0 rgba(255,255,255,.2);
}

.auth-brand,
.auth-copy,
.auth-aside-note {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    font-weight: 850;
    letter-spacing: -.04em;
}

.auth-brand .brand-mark {
    background: #fff;
    box-shadow: 6px 6px 0 rgba(255,255,255,.24);
}

.auth-copy {
    max-width: 570px;
}

.auth-copy h1 {
    margin: 0;
    font-size: clamp(36px, 4.5vw, 57px);
    font-weight: 850;
    letter-spacing: -.075em;
    line-height: 1.14;
}

.auth-copy p {
    max-width: 425px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.65;
}

.auth-aside-note {
    display: flex;
    gap: 8px;
    color: rgba(255,255,255,.65);
    font-size: 12px;
}

.auth-panel {
    display: grid;
    align-items: center;
    padding: clamp(30px, 7vw, 88px);
    background: #fff;
}

.auth-card {
    width: min(100%, 400px);
    margin: 0 auto;
}

.auth-card h2 {
    margin: 0;
    color: var(--ink-950);
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -.06em;
}

.auth-card > p {
    margin: 8px 0 30px;
    color: var(--ink-600);
}

.form-field + .form-field {
    margin-top: 17px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-800);
    font-size: 12px;
    font-weight: 800;
}

.form-optional {
    margin-left: 4px;
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    color: var(--ink-900);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #a1aaba;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #becce0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--blue-600);
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 94, 255, .12);
}

.form-textarea {
    min-height: 92px;
    resize: vertical;
}

.form-static-value {
    display: flex;
    align-items: center;
    min-height: 45px;
    padding: 10px 12px;
    color: var(--ink-700);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-muted);
}

.form-help {
    margin: 6px 0 0;
    color: var(--ink-600);
    font-size: 11px;
}

.form-error {
    display: none;
    margin: 0 0 18px;
    padding: 10px 12px;
    color: #a53742;
    border: 1px solid #f3c9ce;
    border-radius: 10px;
    background: var(--danger-bg);
    font-size: 12px;
}

.form-error.is-visible {
    display: block;
}

.auth-submit {
    width: 100%;
    min-height: 47px;
    margin-top: 25px;
}

.auth-footer {
    margin: 22px 0 0;
    color: var(--ink-500);
    font-size: 11px;
    text-align: center;
}

.modal-backdrop {
    position: fixed;
    z-index: 50;
    display: grid;
    inset: 0;
    padding: 20px;
    place-items: center;
    background: rgba(16, 28, 51, .42);
    animation: fade-in .16s ease;
}

.modal {
    width: min(100%, 560px);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: var(--shadow-float);
    animation: modal-in .18s ease;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.modal-header h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -.045em;
}

.modal-header p {
    margin: 4px 0 0;
    color: var(--ink-600);
    font-size: 12px;
}

.modal-close {
    margin-left: auto;
}

.modal-body {
    padding: 20px 22px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 15px 22px;
    border-top: 1px solid var(--line);
    background: #fcfdff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid .form-field-full {
    grid-column: 1 / -1;
}

.toast-region {
    position: fixed;
    z-index: 60;
    right: 20px;
    bottom: 20px;
    display: grid;
    width: min(360px, calc(100vw - 40px));
    gap: 9px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    color: var(--ink-800);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 34px rgba(27, 45, 78, .15);
    animation: toast-in .2s ease;
    font-size: 12px;
}

.toast.success { border-color: #bfe7d0; }
.toast.error { border-color: #f1c6cc; }
.toast.info { border-color: #cad8f5; }

.toast-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--blue-600);
}

.toast.success .toast-dot { background: var(--success); }
.toast.error .toast-dot { background: var(--danger); }

.toast strong {
    display: block;
    color: var(--ink-900);
    font-size: 12px;
}

.toast p {
    margin: 2px 0 0;
    color: var(--ink-600);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.noscript-notice {
    max-width: 650px;
    margin: 8vh auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.noscript-notice h1 {
    margin-top: 0;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .diagnostic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    :root {
        --sidebar-width: 250px;
    }

    .topbar,
    .main-content {
        padding-right: 24px;
        padding-left: 24px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
    }
}

@media (max-width: 760px) {
    .sidebar {
        transform: translateX(-102%);
        transition: transform .22s ease;
        box-shadow: var(--shadow-float);
    }

    .app-layout.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .app-layout.sidebar-open .sidebar-scrim {
        display: block;
        position: fixed;
        z-index: 19;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(18, 32, 58, .28);
        cursor: default;
    }

    .content {
        width: 100%;
        margin-left: 0;
    }

    .topbar {
        min-height: 64px;
        padding: 0 18px;
    }

    .menu-button {
        display: inline-grid;
        margin-right: 9px;
    }

    .topbar-title {
        font-size: 15px;
    }

    .main-content {
        padding: 24px 18px 42px;
        border-left: 0;
        border-radius: 0;
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .page-heading-actions {
        flex-wrap: wrap;
    }

    .summary-grid,
    .card-grid,
    .diagnostic-grid {
        grid-template-columns: 1fr;
    }

    .key-value-list,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 0;
    }

    .detail-hero {
        flex-wrap: wrap;
        padding: 20px;
    }

    .detail-hero-actions {
        width: 100%;
        margin-left: 0;
    }

    .filter-bar {
        align-items: stretch;
    }

    .search-field {
        max-width: none;
        margin-left: 0;
    }

    .panel-head {
        padding: 14px 16px;
    }

    .panel-body {
        padding: 16px;
    }

    .project-row,
    .alert-item {
        padding-right: 16px;
        padding-left: 16px;
    }

    .data-table th,
    .data-table td {
        padding-right: 16px;
        padding-left: 16px;
    }

    .modal-backdrop {
        padding: 10px;
    }

    .modal-header,
    .modal-body {
        padding-right: 17px;
        padding-left: 17px;
    }

    .modal-footer {
        padding-right: 17px;
        padding-left: 17px;
    }
}

@media (max-width: 420px) {
    .topbar-actions .button:not(.icon-button) {
        display: none;
    }

    .summary-card {
        min-height: 120px;
    }

    .project-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .project-row .status-pill {
        margin-left: 55px;
    }
}
