@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");
@font-face {
    font-family: "HK Nova";
    src: url("../fonts/hk-nova-regular-os0TVA4.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "HK Nova";
    src: url("../fonts/hk-nova-medium-sWNO-YK.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "HK Nova";
    src: url("../fonts/hk-nova-semibold-3eEft-r.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
:root {
    --ink: #242424;
    --muted: #77776f;
    --line: #e2e1d8;
    --bg: #f7f6f2;
    --surface: #ffffff;
    --surface-soft: #efeee6;
    --accent: #99957a;
    --accent-soft: #efeee6;
    --green: #3a8e70;
    --sidebar: 246px;
    color-scheme: light;
    font-family: "HK Nova", system-ui, sans-serif;
    color: var(--ink);
    font-size: 14px;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select {
    font: inherit;
}
button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #99957a;
    outline-offset: 4px;
}
button,
input,
select {
    border-radius: 7px;
}
input,
select {
    color: var(--ink);
}
[hidden] {
    display: none !important;
}
.sidebar {
    position: fixed;
    width: var(--sidebar);
    inset: 0 auto 0 0;
    background: white;
    border-right: 1px solid var(--line);
    padding: 38px 22px 24px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 32px;
    letter-spacing: -1.9px;
    margin-left: 8px;
    line-height: 1.1;
}
.brand-mark {
    width: 39px;
    height: 41px;
    border-radius: 11px;
    background: var(--accent);
    color: white;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 43px;
    text-align: center;
    padding-right: 6px;
}
.brand-dot {
    color: var(--accent);
}
.brand small {
    display: block;
    font:
        9px "HK Nova",
        sans-serif;
    letter-spacing: 3.1px;
    color: #99957a;
    margin-top: 8px;
}
.workspace {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 12px 10px;
    margin-top: 37px;
    font-size: 11px;
    font-weight: 600;
}
.workspace small,
.profile small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    font-weight: 400;
    margin-top: 4px;
}
.workspace-icon {
    background: #f1f2f5;
    border-radius: 6px;
    width: 27px;
    height: 28px;
    display: grid;
    place-items: center;
    font-size: 12px;
}
.workspace-check {
    color: var(--green);
    margin-left: auto;
}
.nav-label {
    font-size: 9px;
    letter-spacing: 1.6px;
    color: #99957a;
    margin: 35px 12px 13px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-radius: 7px;
    color: #72726a;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 500;
    position: relative;
}
.nav-item:hover {
    background: #f7f6f2;
}
.nav-item.active {
    background: var(--accent-soft);
    color: #5f5c48;
}
.nav-icon {
    font-size: 19px;
    line-height: 16px;
    width: 20px;
    text-align: center;
}
.nav-indicator {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: auto;
}
.sidebar-bottom {
    margin-top: auto;
}
.private-note {
    padding: 18px 9px;
    font-size: 11px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}
.private-note small {
    display: block;
    color: #a0a6af;
    font-size: 10px;
    margin-top: 7px;
}
.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    padding: 0 8px;
}
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #efe8df;
    color: #9f806a;
    display: grid;
    place-items: center;
}
.shell {
    margin-left: var(--sidebar);
}
.topbar {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 0 44px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}
.breadcrumb {
    margin: 0 15px;
    color: #b7bcc4;
}
.topbar-tag {
    font-size: 9px;
    letter-spacing: 1.6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.muted {
    color: var(--muted);
}
main {
    max-width: 1640px;
    margin: auto;
    padding: 41px 44px 32px;
    min-height: calc(100vh - 150px);
}
turbo-frame {
    display: block;
}
turbo-frame[busy] .button {
    opacity: 0.55;
}
#deployments {
    position: relative;
}
#deployments[busy] {
    pointer-events: none;
}
#deployments[busy] .deployments-body {
    opacity: 0.45;
}
#deployments[busy] .service-tabs a[aria-current="page"] {
    opacity: 0.7;
}
.repo-loader {
    display: none;
    position: absolute;
    top: 118px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgb(36 36 36 / 6%);
}
#deployments[busy] .repo-loader {
    display: inline-flex;
}
.repo-loader-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: frame-spin 0.7s linear infinite;
}
@keyframes frame-spin {
    to {
        transform: rotate(360deg);
    }
}
.eyebrow {
    font-size: 9px;
    letter-spacing: 1.6px;
    font-weight: 600;
    color: #8e96a3;
    margin-bottom: 12px;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1 {
    font-family: Manrope, sans-serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -1.1px;
    line-height: 1.4;
}
.heading-dot {
    color: var(--accent);
}
.page-heading p {
    font-size: 12px;
    color: #77776f;
    margin-top: 8px;
    line-height: 1.7;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 15px;
    font-weight: 500;
    font-size: 11px;
    white-space: nowrap;
    border: 1px solid var(--line);
    min-height: 40px;
}
.button.secondary {
    background: white;
    color: #5e5e54;
    box-shadow: 0 2px 3px #00000002;
}
.button:hover {
    filter: brightness(0.98);
}
.button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 2px 4px #99957a22;
}
.context-line {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-bottom: 29px;
    color: #77776f;
    font-size: 10px;
    flex-wrap: wrap;
}
.context-line > span:not(:first-child)::before {
    content: "·";
    margin-right: 16px;
    color: #bec3ca;
}
.context-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 6px 9px;
    border-radius: 5px;
    font-size: 10px;
    color: #78818d;
}
.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.dot.green {
    background: #4c9a79;
}
.dot.orange {
    background: #e69749;
}
.dot.red {
    background: #d86969;
}
.dot.gray {
    background: #a9b0ba;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 27px;
}
.stats-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px 21px;
    min-height: 144px;
}
.stat.accent {
    background: #efeee6;
    border-color: #dedccf;
}
.stat-label {
    color: #72726a;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stat-icon {
    color: #a9b0b9;
    font-size: 17px;
}
.stat.accent .stat-icon {
    color: var(--accent);
}
.stat-value {
    font:
        650 34px Manrope,
        sans-serif;
    letter-spacing: -1px;
    margin: 11px 0;
}
.stat-unit {
    font:
        10px "HK Nova",
        sans-serif;
    color: #77776f;
    letter-spacing: 0;
    margin-left: 9px;
}
.stat-detail {
    font-size: 10px;
    color: #77776f;
    display: flex;
    align-items: center;
    gap: 6px;
}
.commit-value {
    font-family: monospace;
    font-size: 29px;
    margin: 15px 0;
}
.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
}
.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 23px 24px;
}
.panel-heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.confirm-field select {
    width: 100%;
    padding: 11px 12px;
    background: white;
    border: 1px solid #d8d5c7;
    border-radius: 3px;
    font-size: 14px;
    color: var(--ink);
}
.panel-heading h2 {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.1px;
}
.panel-heading p {
    font-size: 10px;
    color: #77776f;
    margin-top: 6px;
    line-height: 1.6;
}
.count {
    background: #f1f3f5;
    color: #9099a5;
    border-radius: 5px;
    font-size: 9px;
    padding: 3px 6px;
    font-weight: 500;
}
.provider-label {
    font-size: 21px;
    letter-spacing: -1px;
    color: #72726a;
    font-weight: 600;
}
.provider-label span {
    font-size: 9px;
    letter-spacing: 1px;
    color: #a9afb8;
    padding-left: 6px;
}
.toolbar {
    padding: 0 24px 20px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.search {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    min-width: 260px;
    padding: 0 11px;
    height: 35px;
    color: #86867c;
}
.search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-size: 10px;
    height: 100%;
    border-radius: 0;
}
.search input::placeholder {
    color: #86867c;
}
.toolbar select {
    border: 1px solid var(--line);
    background: #fff;
    padding: 8px 12px;
    font-size: 10px;
    max-width: 200px;
    color: #8a939f;
}
.mfa-modal {
    margin: auto;
    padding: 28px;
    width: min(480px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    color: var(--ink);
}
.mfa-modal::backdrop {
    background: rgb(0 0 0 / 40%);
}
.mfa-modal h2,
.mfa-modal p {
    margin-bottom: 16px;
}
.mfa-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.service-tabs {
    display: flex;
    gap: 8px;
    padding: 0 24px 20px;
    flex-wrap: wrap;
}
turbo-frame > .service-tabs {
    padding-left: 0;
    padding-right: 0;
}
.service-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
}
.service-tabs a[aria-current="page"] {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--ink);
    font-weight: 600;
}
.service-tabs a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.table-scroll {
    width: 100%;
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}
thead {
    background: #f7f6f2;
    color: #77776f;
    font-size: 8px;
    letter-spacing: 1px;
}
th {
    font-weight: 500;
    padding: 13px 20px;
    border-block: 1px solid #eeede7;
}
th:first-child,
td:first-child {
    padding-left: 24px;
}
td {
    padding: 17px 20px;
    font-size: 10px;
    border-bottom: 1px solid #eeede7;
    color: #7f8996;
}
tbody tr:last-child td {
    border-bottom: 0;
}
td strong {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #33332e;
}
td small {
    display: block;
    margin-top: 5px;
    color: #77776f;
    font-size: 9px;
}
.mono,
code {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.94em;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 5px;
    white-space: nowrap;
}
.badge.green {
    color: #44866a;
    background: #edf6f0;
}
.badge.orange {
    color: #c38c47;
    background: #fcf4e8;
}
.badge.red {
    color: #bd6363;
    background: #fceeee;
}
.badge.gray {
    color: #8a929f;
    background: #eeede7;
}
.env-tag {
    background: #efeee6;
    color: #746f52;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 9px;
}
.env-tag.production {
    background: #efeee6;
    color: #625f4a;
}
.external {
    font-size: 17px;
    color: #9aa4b1;
}
.external:hover,
.text-link:hover {
    color: var(--accent);
}
.empty {
    padding: 38px 24px;
    text-align: center;
    width: 100%;
    color: #77776f;
}
.empty-icon {
    display: block;
    margin: auto auto 13px;
    width: 39px;
    height: 39px;
    background: #f4f3ed;
    border-radius: 10px;
    line-height: 39px;
    font-size: 22px;
    color: #9ea8b6;
}
.empty strong {
    font-size: 12px;
    font-weight: 500;
    color: #7e8998;
}
.empty p {
    font-size: 10px;
    margin-top: 8px;
    line-height: 1.8;
}
.table-empty {
    text-align: center;
    padding: 34px !important;
    color: #77776f;
}
.notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
    line-height: 1.8;
    padding: 14px 18px;
    border: 1px solid;
    border-radius: 8px;
    margin-bottom: 14px;
}
.notice strong {
    font-weight: 500;
}
.notice.warning {
    background: #fff9ef;
    border-color: #f4e9d3;
    color: #a68650;
}
.notice.info {
    background: #f1f0e8;
    border-color: #e2e0d2;
    color: #726e56;
    margin-bottom: 25px;
}
.notice.success {
    background: #edf8f1;
    border-color: #d8ecde;
    color: #3d8462;
}
.chip {
    background: #f7f6f2;
    border: 1px solid var(--line);
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 9px;
    color: #77776f;
}
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0 24px 24px;
}
.preview-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 17px;
    min-width: 0;
}
.preview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.preview-icon {
    width: 30px;
    height: 30px;
    background: #efeee6;
    color: #99957a;
    font-size: 21px;
    display: grid;
    place-items: center;
    border-radius: 7px;
}
.preview-card h3 {
    font-size: 13px;
    margin-top: 16px;
    letter-spacing: -0.1px;
}
.branch {
    font-size: 10px;
    color: #9aa3af;
    margin-top: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #77776f;
    font-size: 9px;
    margin-top: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}
.preview-meta code {
    background: #f4f3ed;
    padding: 3px 5px;
    border-radius: 3px;
    color: #929dac;
}
.preview-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: #6c674b;
    padding-top: 14px;
}
.subtle-link {
    display: block;
    font-size: 9px;
    color: #a0a8b4;
    margin-top: 10px;
}
.preview-ci {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.preview-ci-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.preview-ci-label {
    font-size: 9px;
    color: #86867c;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.preview-progress {
    height: 4px;
    margin-top: 10px;
    background: #efeee6;
    border-radius: 2px;
    overflow: hidden;
}
.preview-progress-bar {
    height: 100%;
    width: 100%;
    border-radius: 2px;
    transform-origin: left center;
}
.preview-progress.green .preview-progress-bar {
    background: #3a8e70;
}
.preview-progress.red .preview-progress-bar {
    background: #bd6363;
}
.preview-progress.orange .preview-progress-bar {
    background: #c38c47;
}
.preview-progress.active .preview-progress-bar {
    width: 40%;
    animation: preview-progress-slide 1.25s ease-in-out infinite;
}
@keyframes preview-progress-slide {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(280%);
    }
}
.panel-foot {
    font-size: 9px;
    color: #86867c;
    border-top: 1px solid var(--line);
    padding: 13px 24px;
    line-height: 1.8;
}
.full-width {
    grid-column: 1/-1;
}
.updated {
    color: #77776f;
    font-size: 9px;
    line-height: 1.8;
    text-align: right;
    margin-top: 5px;
}
.text-orange {
    color: #bf8c66;
}
.text-link {
    font-size: 10px;
    color: #9ba4b1;
    white-space: nowrap;
}
.truncate {
    max-width: 270px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.commit-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 24px;
    border-top: 1px solid var(--line);
}
.commit-row:hover {
    background: #fcfcfd;
}
.commit-node {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #efeee6;
    color: #99957a;
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}
.commit-row > div {
    flex: 1;
    min-width: 0;
}
.commit-row strong {
    font-size: 11px;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #53534e;
}
.commit-row small {
    font-size: 9px;
    color: #a2aab5;
    display: block;
    margin-top: 6px;
}
.commit-row code {
    color: #9da6b2;
    font-size: 10px;
}
.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 25px;
    margin-top: 30px;
    align-items: start;
}
.preferences .panel-heading {
    padding-block: 26px;
}
.preferences .preferences-subsection {
    border-top: 1px solid var(--line);
    margin-top: 8px;
}
.preference-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 23px 24px;
    border-top: 1px solid var(--line);
    cursor: pointer;
    position: relative;
}
.preference-row:hover {
    background: #faf9f5;
}
.event-icon {
    background: #f4f3ed;
    color: #9ba6b4;
    width: 33px;
    height: 33px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 17px;
    flex-shrink: 0;
}
.preference-text {
    flex: 1;
}
.preference-text strong {
    font-size: 11px;
    font-weight: 500;
    display: block;
    color: #53534e;
}
.preference-text small {
    display: block;
    font-size: 10px;
    line-height: 1.7;
    color: #77776f;
    margin-top: 5px;
}
.switch {
    position: absolute;
    right: 24px;
    width: 33px;
    height: 20px;
    opacity: 0;
    cursor: pointer;
}
.switch-track {
    width: 33px;
    height: 20px;
    border-radius: 20px;
    background: #e4e8ed;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s;
}
.switch-track::after {
    content: "";
    position: absolute;
    inset: 3px auto auto 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 2px #0001;
    transition: transform 0.2s;
}
.switch:checked + .switch-track {
    background: var(--accent);
}
.switch:checked + .switch-track::after {
    transform: translateX(13px);
}
.switch:focus-visible + .switch-track {
    outline: 3px solid #99957a;
    outline-offset: 4px;
}
.save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 24px;
    border-top: 1px solid var(--line);
    background: #fdfdfe;
}
.save-bar > span {
    font-size: 9px;
    color: #77776f;
    max-width: 170px;
    line-height: 1.7;
}
.slack-card {
    padding: 26px;
}
.slack-mark {
    font-size: 35px;
    font-weight: 600;
    color: var(--accent);
    width: 46px;
    height: 46px;
    border: 1px solid #dedccf;
    background: #f7f6f2;
    display: grid;
    place-items: center;
    border-radius: 12px;
    margin-bottom: 22px;
}
.slack-card h2 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}
.slack-card p,
.monitor-card p {
    font-size: 11px;
    color: #77776f;
    line-height: 1.9;
    margin-bottom: 20px;
}
.setup-note {
    font-size: 10px;
    line-height: 1.9;
    color: #77776f;
    border-top: 1px solid var(--line);
    padding-top: 19px;
    margin-top: 21px;
}
.config-code {
    display: block;
    background: #f7f6f2;
    border: 1px solid var(--line);
    padding: 11px 13px;
    border-radius: 6px;
    margin-block: 13px;
    color: #909aa7;
}
.setup-note small {
    font-size: 9px;
}
.monitor-card {
    padding: 24px;
}
.monitor-card h3 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}
.monitor-card .small {
    margin: 15px 0 0;
    font-size: 10px;
}
.quiet-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 10px;
    color: #a4acb6;
    font-size: 11px;
    line-height: 1.8;
}
.quiet-note > span {
    font-size: 19px;
}
.quiet-note strong {
    font-size: 10px;
    font-weight: 500;
}
.quiet-note p {
    font-size: 10px;
    margin-top: 5px;
}
.small {
    font-size: 10px;
}
footer {
    border-top: 1px solid var(--line);
    margin: 10px 44px 0;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #88887a;
    font-size: 9px;
}
footer span:first-child {
    letter-spacing: 1.7px;
    font-size: 8px;
}
.skip-link {
    position: fixed;
    top: -100px;
    left: 15px;
    background: white;
    padding: 15px;
    z-index: 100;
}
.skip-link:focus {
    top: 10px;
}
@media (min-width: 1500px) {
    main {
        padding-inline: 60px;
    }
    .topbar {
        padding-inline: 60px;
    }
}
@media (max-width: 1200px) {
    :root {
        --sidebar: 216px;
    }
    .sidebar {
        padding-inline: 15px;
    }
    main {
        padding: 30px 26px;
    }
    .topbar {
        padding-inline: 26px;
    }
    .stat {
        padding: 17px 15px;
    }
    .stat-unit {
        display: block;
        margin-left: 0;
        margin-top: 3px;
    }
    .settings-layout {
        grid-template-columns: minmax(0, 1fr) 255px;
        gap: 18px;
    }
    .preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .save-bar {
        align-items: flex-start;
        flex-direction: column;
    }
    .save-bar > span {
        max-width: none;
    }
    .stat-value {
        margin-block: 9px;
    }
}
@media (max-width: 900px) {
    :root {
        --sidebar: 180px;
    }
    .brand {
        font-size: 27px;
        gap: 8px;
        margin-left: 0;
    }
    .brand-mark {
        width: 33px;
        height: 36px;
        font-size: 37px;
    }
    .workspace {
        font-size: 10px;
        gap: 5px;
    }
    .workspace small {
        font-size: 8px;
    }
    .workspace-check {
        display: none;
    }
    .nav-item {
        font-size: 10px;
        gap: 7px;
        padding-inline: 8px;
    }
    .nav-icon {
        font-size: 17px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .settings-layout {
        grid-template-columns: 1fr;
    }
    .settings-aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
    .settings-aside .panel {
        margin-bottom: 0;
    }
    .quiet-note {
        grid-column: 1/-1;
    }
    .stat-unit {
        display: inline;
        margin-left: 7px;
    }
    .stats-grid.three .stat-unit {
        display: block;
        margin-left: 0;
    }
    .topbar {
        height: 65px;
    }
    .page-heading {
        align-items: flex-start;
    }
    h1 {
        font-size: 26px;
    }
    .page-heading p {
        max-width: 340px;
    }
    .save-bar {
        flex-direction: row;
        align-items: center;
    }
    footer {
        margin-inline: 26px;
    }
}
@media (max-width: 640px) {
    :root {
        --sidebar: 0px;
    }
    .sidebar {
        position: static;
        width: 100%;
        padding: 20px 18px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .brand {
        font-size: 25px;
        align-self: flex-start;
    }
    .brand-mark {
        width: 31px;
        height: 33px;
        font-size: 34px;
    }
    .brand small {
        font-size: 7px;
        letter-spacing: 2.5px;
        margin-top: 4px;
    }
    .workspace,
    .nav-label,
    .sidebar-bottom {
        display: none;
    }
    .sidebar nav {
        display: flex;
        gap: 5px;
        margin-top: 21px;
        overflow-x: auto;
    }
    .nav-item {
        font-size: 10px;
        padding: 12px 8px;
        margin-bottom: 0;
        white-space: nowrap;
        border-radius: 6px 6px 0 0;
        justify-content: center;
        flex: 1;
    }
    .nav-indicator {
        display: none;
    }
    .nav-icon {
        width: 13px;
        font-size: 16px;
    }
    .shell {
        margin-left: 0;
    }
    .topbar {
        display: none;
    }
    main {
        padding: 27px 18px 20px;
    }
    .eyebrow {
        font-size: 8px;
        letter-spacing: 1.2px;
        margin-bottom: 9px;
    }
    .page-heading {
        gap: 10px;
        margin-bottom: 18px;
    }
    .page-heading p {
        font-size: 11px;
    }
    .page-heading > .context-pill {
        display: none;
    }
    h1 {
        font-size: 24px;
    }
    .button {
        padding: 9px 11px;
        font-size: 10px;
    }
    .page-heading .button {
        margin-top: 20px;
        min-height: 34px;
    }
    .context-line {
        font-size: 9px;
        gap: 10px;
        margin-bottom: 22px;
    }
    .context-line > span:not(:first-child)::before {
        margin-right: 9px;
    }
    .context-pill {
        font-size: 9px;
    }
    .stats-grid,
    .stats-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .stats-grid.three .stat:first-child {
        grid-column: 1/-1;
    }
    .stat {
        padding: 16px;
        min-height: 129px;
    }
    .stat-value {
        font-size: 28px;
    }
    .stat-label,
    .stat-detail {
        font-size: 9px;
    }
    .stat-unit {
        font-size: 9px;
    }
    .notice {
        font-size: 10px;
        padding: 12px;
    }
    .panel-heading {
        padding: 19px 17px;
    }
    .panel-heading h2 {
        font-size: 12px;
    }
    .panel-heading p {
        font-size: 9px;
    }
    .panel-heading .chip {
        font-size: 8px;
    }
    .toolbar {
        padding: 0 17px 17px;
        gap: 8px;
    }
    .search {
        min-width: 0;
        width: 100%;
    }
    .toolbar select {
        max-width: 125px;
        font-size: 9px;
    }
    .preview-grid {
        grid-template-columns: 1fr;
        padding: 0 17px 17px;
    }
    .preview-card {
        padding: 17px;
    }
    .preview-card h3 {
        font-size: 14px;
    }
    .panel-foot {
        padding: 12px 17px;
    }
    .settings-layout {
        margin-top: 23px;
    }
    .preference-row {
        padding: 21px 17px;
        gap: 10px;
    }
    .preference-text small {
        font-size: 9px;
    }
    .preference-text strong {
        font-size: 10px;
    }
    .event-icon {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }
    .switch {
        right: 17px;
    }
    .save-bar {
        padding: 18px 17px;
        flex-direction: column;
        align-items: stretch;
    }
    .save-bar .button {
        width: 100%;
    }
    .settings-aside {
        grid-template-columns: 1fr;
    }
    .quiet-note {
        margin-top: 5px;
    }
    .updated {
        text-align: left;
        font-size: 8px;
    }
    footer {
        margin-inline: 18px;
        font-size: 8px;
        line-height: 1.6;
    }
    footer span:last-child {
        max-width: 155px;
        text-align: right;
    }
    .commit-row {
        padding: 17px;
        gap: 10px;
    }
    .commit-row strong {
        font-size: 10px;
    }
    .commit-row code {
        font-size: 9px;
    }
    .text-link {
        font-size: 9px;
    }
    .truncate {
        max-width: 220px;
    }
}

.switch {
    z-index: 1;
}
.switch-track {
    pointer-events: none;
}
/* Keep secondary information readable on white and pale backgrounds. */
.page-heading p,
.panel-heading p,
.preference-text small,
.setup-note,
.slack-card p,
.monitor-card p,
.stat-detail,
.stat-unit,
.updated,
.branch,
td small,
.commit-row small {
    color: #72726a;
}
.notice.warning {
    color: #88652e;
}
.badge.orange {
    color: #94672c;
}
.context-line,
.context-pill {
    color: #737f90;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 3px 8px 0;
}
.brand-logo {
    display: block;
    width: 155px;
    height: auto;
}
.brand > small {
    font:
        400 9px "HK Nova",
        sans-serif;
    letter-spacing: 3.5px;
    color: #99957a;
}
.brand-mark,
.brand-dot {
    display: none;
}
.heading-dot {
    color: inherit;
}
.dot.olive {
    background: #99957a;
}
.workspace {
    border-radius: 3px;
    margin-top: 34px;
}
.workspace-icon {
    background: #efeee6;
    color: #746f52;
    border-radius: 2px;
}
.nav-item {
    border-radius: 3px;
    font-size: 12px;
}
.nav-item.active {
    background: #efeee6;
    color: #242424;
}
.nav-indicator {
    background: #99957a;
}
.topbar {
    background: #f7f6f2;
    border-color: #e2e1d8;
}
.topbar-tag {
    color: #77776f;
}
h1 {
    font-size: 37px;
    font-weight: 500;
    letter-spacing: -1.3px;
}
.page-heading {
    margin-bottom: 25px;
}
.page-heading p {
    font-size: 13px;
    line-height: 1.8;
}
.eyebrow {
    display: table;
    padding: 8px 10px;
    background: #eae8dd;
    color: #767258;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 1.8px;
}
.stat,
.panel {
    border-radius: 4px;
}
.stat {
    padding-top: 23px;
    padding-bottom: 23px;
}
.stat-label {
    font-size: 12px;
    color: #72726a;
}
.stat-value {
    font-family: "HK Nova", sans-serif;
    font-weight: 500;
}
.stat.accent {
    background: #efeee6;
    border-color: #dedccf;
}
.stat.accent .stat-icon {
    color: #777258;
}
.stat-unit,
.stat-detail {
    font-size: 11px;
}
.panel-heading h2 {
    font-size: 15px;
    font-weight: 500;
}
.panel-heading p {
    font-size: 11px;
}
.button {
    border-radius: 3px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2px;
    padding: 12px 18px;
}
.button.primary {
    background: #0a0a0a;
    border-color: #0a0a0a;
    box-shadow: none;
}
.button.primary:hover {
    background: #33332e;
}
.button.secondary {
    color: #242424;
    border-color: #c3c0af;
    background: transparent;
    box-shadow: none;
}
.badge {
    border-radius: 3px;
    font-size: 10px;
}
.notice {
    border-radius: 3px;
    font-size: 12px;
}
.search,
.toolbar select,
.context-pill,
.preview-card,
.chip {
    border-radius: 3px;
}
.search input,
.toolbar select {
    font-size: 11px;
}
th {
    font-size: 9px;
    font-weight: 400;
}
td {
    font-size: 11px;
}
td strong {
    font-size: 12px;
    font-weight: 500;
}
td small {
    font-size: 10px;
}
.preview-icon,
.event-icon,
.commit-node {
    background: #efeee6;
    color: #99957a;
    border-radius: 3px;
}
.preview-card h3 {
    font-size: 15px;
    font-weight: 500;
}
.preview-link,
.branch,
.preview-meta,
.subtle-link {
    font-size: 11px;
}
.preview-link {
    color: #6c674b;
}
.previews .badge {
    font-size: 10px;
}
.preference-text strong {
    font-size: 13px;
    font-weight: 500;
}
.preference-text small {
    font-size: 11px;
}
.switch:checked + .switch-track {
    background: #99957a;
}
.slack-card h2 {
    font-size: 17px;
    font-weight: 500;
}
.slack-card p,
.monitor-card p {
    font-size: 12px;
}
.slack-mark {
    color: #99957a;
    background: #efeee6;
    border-color: #dedccf;
    border-radius: 4px;
}
.setup-note {
    font-size: 11px;
}
.config-code {
    background: #f7f6f2;
}
.monitor-card .eyebrow {
    background: transparent;
    padding: 0;
}
.monitor-card h3 {
    font-size: 15px;
    font-weight: 500;
}
.save-bar {
    background: #faf9f6;
}
.save-bar > span {
    font-size: 10px;
}
.commit-row strong {
    font-size: 12px;
    font-weight: 500;
}
.commit-row small {
    font-size: 10px;
}
footer {
    color: #88887a;
}
@media (max-width: 900px) {
    .brand-logo {
        width: 132px;
    }
    .nav-item {
        font-size: 10px;
    }
    h1 {
        font-size: 30px;
    }
}
@media (max-width: 640px) {
    .sidebar {
        background: #f7f6f2;
    }
    .brand {
        margin: 4px 0 0;
        gap: 9px;
    }
    .brand-logo {
        width: 126px;
    }
    .brand > small {
        font-size: 7px;
        letter-spacing: 3px;
    }
    .nav-item {
        border-radius: 3px 3px 0 0;
        font-size: 10px;
    }
    h1 {
        font-size: 28px;
    }
    .page-heading p {
        font-size: 12px;
    }
    .page-heading .button {
        padding: 9px 10px;
        font-size: 10px;
    }
    .eyebrow {
        font-size: 7px;
        padding: 7px 9px;
        letter-spacing: 1.4px;
    }
    .stat {
        padding: 17px;
    }
    .stat-label,
    .stat-unit,
    .stat-detail {
        font-size: 10px;
    }
    .panel-heading h2 {
        font-size: 14px;
    }
    .panel-heading p {
        font-size: 10px;
    }
    .notice {
        font-size: 11px;
    }
    .preference-text strong {
        font-size: 12px;
    }
    .preference-text small {
        font-size: 10px;
    }
}

.login-page {
    min-height: 100vh;
    background: #f7f6f2;
}
.login-page main.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 90px;
    max-width: 1170px;
    padding: 80px 45px;
    min-height: 100vh;
}
.login-logo {
    display: block;
    width: 185px;
    margin-bottom: 55px;
}
.login-intro h1 {
    font-size: 46px;
    line-height: 1.3;
    margin: 25px 0;
}
.login-intro > p {
    font-size: 15px;
    color: #72726a;
    line-height: 1.9;
    max-width: 430px;
}
.login-note {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #dedccf;
    color: #87826a;
    font-size: 12px;
    line-height: 1.9;
}
.login-card {
    padding: 38px;
    margin: 0;
}
.login-card h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 22px 0 12px;
}
.login-card > p {
    color: #72726a;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 25px;
}
.login-field {
    margin: 25px 0;
}
.login-field label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
}
.login-field select,
.login-field input {
    width: 100%;
    padding: 14px 12px;
    background: white;
    border: 1px solid #d8d5c7;
    border-radius: 3px;
    font-size: 14px;
}
.login-field input {
    letter-spacing: 9px;
}
.login-card .button.primary {
    width: 100%;
    margin-top: 8px;
    white-space: normal;
}
.login-card > p.login-security {
    font-size: 11px;
    border-top: 1px solid #e2e1d8;
    padding-top: 23px;
    margin: 26px 0 0;
}
.logout-form {
    padding: 18px 7px 0;
}
.logout-form .button {
    width: 100%;
    font-size: 11px;
    padding: 9px;
}
.preferences .save-bar {
    flex-wrap: wrap;
}
.unsaved-toast {
    position: fixed;
    z-index: 20;
    left: calc(var(--sidebar) + 24px);
    right: 24px;
    bottom: 24px;
    max-width: 520px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #f4e9d3;
    border-radius: 10px;
    background: #fff9ef;
    color: #a68650;
    box-shadow: 0 10px 28px rgba(36, 36, 36, 0.08);
    font-size: 12px;
    line-height: 1.5;
}
.unsaved-toast .button {
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .unsaved-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}
@media (max-width: 900px) {
    .login-page main.login-layout {
        gap: 35px;
        padding: 45px 25px;
    }
    .login-intro h1 {
        font-size: 34px;
    }
    .login-card {
        padding: 28px;
    }
}
@media (max-width: 640px) {
    .login-page main.login-layout {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }
    .login-logo {
        width: 142px;
        margin-bottom: 25px;
    }
    .login-intro h1 {
        font-size: 29px;
        margin-block: 20px;
    }
    .login-intro > p {
        font-size: 13px;
    }
    .login-note {
        margin-top: 22px;
        font-size: 11px;
    }
    .login-card {
        padding: 25px;
    }
    .login-card h2 {
        font-size: 23px;
    }
    .logout-form {
        position: absolute;
        top: 20px;
        right: 18px;
        padding: 0;
    }
    .logout-form .button {
        font-size: 9px;
    }
    .sidebar {
        position: relative;
    }
}
@media (max-width: 640px) {
    .sidebar .sidebar-bottom {
        display: contents;
    }
    .sidebar .private-note,
    .sidebar .profile {
        display: none;
    }
}

/* Actions sur les préprods, modale de confirmation et journal d'activité */
.preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.button.small {
    min-height: 30px;
    padding: 6px 11px;
    font-size: 11px;
}
.button.secondary.danger {
    color: #a24848;
    border-color: #e4c4c4;
}
.button.primary.danger {
    background: #a24848;
    border-color: #a24848;
}
.button.primary.danger:hover {
    background: #8a3a3a;
}
.button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.notice.error {
    background: #fdf1f1;
    border-color: #f0d4d4;
    color: #a24848;
}
.preview-facts {
    margin: 0 0 20px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 12px;
}
.preview-facts div {
    display: flex;
    gap: 12px;
    padding: 4px 0;
}
.preview-facts dt {
    width: 70px;
    flex: none;
    color: var(--muted);
}
.preview-facts dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}
.confirm-field {
    margin-bottom: 16px;
}
.confirm-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
}
.confirm-field input {
    width: 100%;
    padding: 11px 12px;
    background: white;
    border: 1px solid #d8d5c7;
    border-radius: 3px;
    font-size: 14px;
}

/* Onglet Moniteur (dashboard Sentry) */
.monitor-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.monitor-card {
    margin-bottom: 0;
    min-width: 0;
}
.monitor-value {
    font: 650 34px Manrope, sans-serif;
    letter-spacing: -1px;
    padding: 4px 24px 22px;
}
.monitor-series {
    padding: 0 24px 18px;
}
.monitor-series-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #77776f;
    margin-bottom: 6px;
}
.sparkline {
    width: 100%;
    height: 56px;
    display: block;
}
.sparkline polyline {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}
@media (max-width: 900px) {
    .monitor-grid {
        grid-template-columns: 1fr;
    }
    .monitor-card {
        grid-column: auto !important;
    }
}

/* Onglet Moniteur : tendances groupées (graphique interactif + récapitulatif) */
.trend-s0 { --c: #c9753d; }
.trend-s1 { --c: #4a7bb0; }
.trend-s2 { --c: #8a6bb0; }
.trend-s3 { --c: #3a8e70; }
.trend-s4 { --c: #c2a03b; }
.trend-s5 { --c: #77776f; }
.trend-s6 { --c: #b0546b; }
.trend-s7 { --c: #4f9aa3; }
.trend-chart {
    position: relative;
    padding: 0 10px;
    min-height: 230px;
}
.trend-svg {
    display: block;
    overflow: visible;
}
.trend-grid {
    stroke: var(--line);
    stroke-width: 1;
}
.trend-axis {
    fill: #77776f;
    font-size: 11px;
}
.trend-line {
    fill: none;
    stroke: var(--c);
    stroke-width: 1.75;
    stroke-linejoin: round;
}
.trend-guide {
    stroke: #b9b8ad;
    stroke-width: 1;
    stroke-dasharray: 3 3;
}
.trend-dot {
    fill: var(--c);
    stroke: white;
    stroke-width: 1.5;
}
.trend-tooltip {
    position: absolute;
    pointer-events: none;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(36, 36, 36, 0.08);
    padding: 8px 10px;
    font-size: 11px;
    min-width: 170px;
}
.trend-tooltip[hidden] {
    display: none;
}
.trend-tooltip strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}
.trend-tooltip div {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 1px 0;
}
.trend-tooltip div span:nth-child(2) {
    flex: 1;
}
.trend-swatch {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--c);
}
.trend-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}
.trend-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.trend-table tr.is-hidden {
    color: #a9a89f;
}
.trend-table tr.is-hidden .trend-swatch {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--c);
}

.theme-toggle {
    width: 100%;
    margin-top: 12px;
    font-size: 11px;
}
.theme-toggle-float {
    position: fixed;
    top: 20px;
    right: 18px;
    z-index: 20;
    width: auto;
    margin: 0;
}

/* Thème sombre — surfaces, texte et états sur tout le SaaS */
[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e8e6de;
    --muted: #9b978a;
    --line: #32312c;
    --bg: #121211;
    --surface: #1c1b18;
    --surface-soft: #26251f;
    --accent: #b0ab8f;
    --accent-soft: #26251f;
    --green: #4fa882;
}
[data-theme="dark"] body,
[data-theme="dark"] .login-page {
    background: var(--bg);
    color: var(--ink);
}
[data-theme="dark"] .sidebar,
[data-theme="dark"] .topbar,
[data-theme="dark"] .stat,
[data-theme="dark"] .panel,
[data-theme="dark"] .repo-loader,
[data-theme="dark"] .skip-link,
[data-theme="dark"] .mfa-modal,
[data-theme="dark"] .trend-tooltip {
    background: var(--surface);
}
[data-theme="dark"] .topbar {
    background: var(--bg);
    border-color: var(--line);
}
[data-theme="dark"] .brand-logo,
[data-theme="dark"] .login-logo {
    filter: invert(1);
}
[data-theme="dark"] .brand > small,
[data-theme="dark"] .brand small,
[data-theme="dark"] .nav-label,
[data-theme="dark"] .topbar-tag,
[data-theme="dark"] footer {
    color: var(--accent);
}
[data-theme="dark"] .workspace,
[data-theme="dark"] .context-pill,
[data-theme="dark"] .search,
[data-theme="dark"] .preview-card,
[data-theme="dark"] .chip,
[data-theme="dark"] .service-tabs a,
[data-theme="dark"] .config-code,
[data-theme="dark"] .preview-facts,
[data-theme="dark"] .confirm-field input,
[data-theme="dark"] .confirm-field select,
[data-theme="dark"] .login-field select,
[data-theme="dark"] .login-field input,
[data-theme="dark"] .toolbar select {
    background: var(--bg);
    border-color: var(--line);
    color: var(--muted);
}
[data-theme="dark"] .workspace-icon,
[data-theme="dark"] .preview-icon,
[data-theme="dark"] .event-icon,
[data-theme="dark"] .commit-node,
[data-theme="dark"] .empty-icon,
[data-theme="dark"] .slack-mark,
[data-theme="dark"] .count {
    background: var(--surface-soft);
    color: var(--accent);
    border-color: var(--line);
}
[data-theme="dark"] .nav-item {
    color: #a7a395;
}
[data-theme="dark"] .nav-item:hover {
    background: #1a1916;
}
[data-theme="dark"] .nav-item.active {
    background: var(--accent-soft);
    color: var(--ink);
}
[data-theme="dark"] .avatar {
    background: #3a322a;
    color: #c9b09a;
}
[data-theme="dark"] .private-note {
    border-color: var(--line);
}
[data-theme="dark"] .private-note small,
[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .external,
[data-theme="dark"] .text-link,
[data-theme="dark"] .subtle-link,
[data-theme="dark"] .quiet-note,
[data-theme="dark"] .panel-foot,
[data-theme="dark"] .branch,
[data-theme="dark"] .provider-label span {
    color: #8f8a7c;
}
[data-theme="dark"] .eyebrow {
    background: var(--surface-soft);
    color: #b0aa8e;
}
[data-theme="dark"] .page-heading p,
[data-theme="dark"] .panel-heading p,
[data-theme="dark"] .preference-text small,
[data-theme="dark"] .setup-note,
[data-theme="dark"] .slack-card p,
[data-theme="dark"] .monitor-card p,
[data-theme="dark"] .stat-detail,
[data-theme="dark"] .stat-unit,
[data-theme="dark"] .updated,
[data-theme="dark"] td small,
[data-theme="dark"] .commit-row small,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .login-intro > p,
[data-theme="dark"] .login-card > p,
[data-theme="dark"] .login-note,
[data-theme="dark"] .context-line,
[data-theme="dark"] .monitor-series-head,
[data-theme="dark"] .trend-axis,
[data-theme="dark"] .save-bar > span {
    color: #a49f91;
}
[data-theme="dark"] .button.secondary,
[data-theme="dark"] .theme-toggle {
    background: transparent;
    color: var(--ink);
    border-color: #5a574a;
}
[data-theme="dark"] .button.primary {
    background: #e8e6de;
    border-color: #e8e6de;
    color: #121211;
}
[data-theme="dark"] .button.primary:hover {
    background: #d2d0c6;
}
[data-theme="dark"] .button.secondary.danger {
    color: #e08a8a;
    border-color: #6a3d3d;
}
[data-theme="dark"] .button.primary.danger {
    background: #a24848;
    border-color: #a24848;
    color: #fff;
}
[data-theme="dark"] .stat.accent {
    background: var(--accent-soft);
    border-color: #3a3830;
}
[data-theme="dark"] .stat.accent .stat-icon {
    color: var(--accent);
}
[data-theme="dark"] thead {
    background: #181714;
    color: var(--muted);
}
[data-theme="dark"] th,
[data-theme="dark"] td {
    border-color: #2a2925;
    color: #a7b0bb;
}
[data-theme="dark"] td strong,
[data-theme="dark"] .preference-text strong,
[data-theme="dark"] .commit-row strong,
[data-theme="dark"] .provider-label {
    color: #ddd9cf;
}
[data-theme="dark"] .commit-row:hover,
[data-theme="dark"] .preference-row:hover {
    background: #181714;
}
[data-theme="dark"] .badge.green {
    color: #7dba9a;
    background: #1c2a23;
}
[data-theme="dark"] .badge.orange {
    color: #d4a56a;
    background: #2c2418;
}
[data-theme="dark"] .badge.red {
    color: #d98989;
    background: #2c1c1c;
}
[data-theme="dark"] .badge.gray,
[data-theme="dark"] .env-tag,
[data-theme="dark"] .env-tag.production {
    color: #b0aa8e;
    background: var(--surface-soft);
}
[data-theme="dark"] .notice.warning,
[data-theme="dark"] .unsaved-toast {
    background: #2a2318;
    border-color: #4a3d28;
    color: #d4b278;
}
[data-theme="dark"] .notice.info {
    background: var(--surface-soft);
    border-color: #3a3830;
    color: #b0aa8e;
}
[data-theme="dark"] .notice.success {
    background: #1c2a23;
    border-color: #2f4a3b;
    color: #7dba9a;
}
[data-theme="dark"] .notice.error {
    background: #2c1c1c;
    border-color: #5a3434;
    color: #e08a8a;
}
[data-theme="dark"] .empty,
[data-theme="dark"] .table-empty {
    color: var(--muted);
}
[data-theme="dark"] .preview-meta code,
[data-theme="dark"] .preview-progress {
    background: var(--surface-soft);
    color: #a7b0bb;
}
[data-theme="dark"] .preview-link {
    color: #c4bea0;
}
[data-theme="dark"] .service-tabs a[aria-current="page"] {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--ink);
}
[data-theme="dark"] .save-bar {
    background: #181714;
    border-color: var(--line);
}
[data-theme="dark"] .switch-track {
    background: #3a3934;
}
[data-theme="dark"] .login-note,
[data-theme="dark"] .login-card > p.login-security {
    border-color: var(--line);
}
[data-theme="dark"] .trend-dot {
    stroke: var(--surface);
}
[data-theme="dark"] .trend-guide {
    stroke: #5a574a;
}
[data-theme="dark"] .trend-table tr.is-hidden {
    color: #6a675c;
}
@media (max-width: 640px) {
    [data-theme="dark"] .sidebar {
        background: var(--bg);
        border-color: var(--line);
    }
    .sidebar .theme-toggle {
        position: absolute;
        top: 20px;
        right: 118px;
        z-index: 5;
        width: auto;
        margin: 0;
        font-size: 9px;
        padding: 9px 10px;
        min-height: 0;
    }
}
