:root {
    --ink: #15231e;
    --ink-soft: #53625c;
    --muted: #607068;
    --line: #e3e8e4;
    --line-strong: #d5ddd8;
    --surface: #ffffff;
    --canvas: #f4f6f3;
    --canvas-warm: #f8f8f5;
    --sidebar: #13231d;
    --sidebar-soft: #1c3028;
    --green: #1c7652;
    --green-dark: #135d40;
    --green-soft: #e8f5ee;
    --lime: #b8e178;
    --blue: #4d65c7;
    --blue-soft: #eef1ff;
    --amber: #c77a25;
    --amber-soft: #fff3df;
    --red: #b9473f;
    --red-soft: #fff0ee;
    --purple: #755ab6;
    --purple-soft: #f2edfb;
    --shadow-sm: 0 1px 2px rgb(19 35 29 / 4%), 0 7px 22px rgb(19 35 29 / 3%);
    --shadow-md: 0 18px 50px rgb(19 35 29 / 12%), 0 4px 12px rgb(19 35 29 / 6%);
    --radius: 16px;
    --radius-sm: 10px;
    --ease: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.has-modal { overflow: hidden; }

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #477963;
    outline-offset: 2px;
}

svg:not(.icon-sprite) {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

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

.sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    width: 246px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    padding: 26px 16px 18px;
    color: #dae6df;
    background:
        radial-gradient(circle at 15% 5%, rgb(79 142 105 / 12%), transparent 27%),
        var(--sidebar);
    border-right: 1px solid rgb(255 255 255 / 4%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 7px 36px;
    text-decoration: none;
}

.brand__mark {
    position: relative;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #15241e;
    background: var(--lime);
    border-radius: 10px 10px 10px 3px;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -2px;
}

.brand__mark::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -7px;
    width: 15px;
    height: 15px;
    background: var(--sidebar);
    transform: rotate(40deg);
}

.brand__name { color: #f8fbf9; font-size: 18px; font-weight: 520; letter-spacing: -.35px; }
.brand__name strong { font-weight: 780; }

.nav-group + .nav-group { margin-top: 28px; }
.nav-label { margin: 0 10px 8px; color: #789087; font-size: 10px; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; }

.nav-item {
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 11px;
    border: 0;
    border-radius: 10px;
    color: #9eb0a8;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: color var(--ease), background var(--ease), transform var(--ease);
}

.nav-item:hover { color: #edf4f0; background: rgb(255 255 255 / 5%); }
.nav-item:active { transform: translateY(1px); }
.nav-item svg { width: 18px; height: 18px; }
.nav-item > span:nth-child(2) { flex: 1; font-weight: 610; }
.nav-item.is-active { color: #fff; background: rgb(255 255 255 / 9%); box-shadow: inset 3px 0 var(--lime); }
.nav-item--accent { color: #cdd9d3; }
.nav-item--accent svg { color: var(--lime); }
.nav-item.is-muted { opacity: .64; }
.nav-count { min-width: 22px; padding: 2px 6px; color: #b9ccc2; background: rgb(255 255 255 / 8%); border-radius: 6px; font-size: 11px; text-align: center; }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgb(184 225 120 / 10%); }
.soon-label { padding: 2px 6px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 5px; font-size: 9px; font-weight: 740; text-transform: uppercase; }

.sidebar__bottom { display: grid; gap: 3px; margin-top: 32px; }
.sidebar-storage { margin: 14px 4px 12px; padding: 13px; border: 1px solid rgb(255 255 255 / 7%); border-radius: 11px; background: rgb(255 255 255 / 3%); }
.sidebar-storage__top { display: flex; justify-content: space-between; color: #b8c9c0; font-size: 11px; }
.sidebar-storage__top strong { color: #edf5f0; }
.storage-track { height: 5px; overflow: hidden; margin: 9px 0 7px; background: #e5eae6; border-radius: 999px; }
.storage-track span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.sidebar-storage .storage-track { background: rgb(255 255 255 / 10%); }
.sidebar-storage .storage-track span { background: var(--lime); }
.sidebar-storage small { color: #71887d; font-size: 10px; }

.profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 8px 2px;
    border: 0;
    border-top: 1px solid rgb(255 255 255 / 7%);
    color: #dbe6e0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.profile-card__copy { min-width: 0; flex: 1; display: grid; }
.profile-card__copy strong { overflow: hidden; color: #edf4f0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-card__copy small { color: #738a7f; font-size: 10px; }
.profile-card > svg { width: 15px; color: #6f857b; }

.avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #ecf5ef; background: linear-gradient(145deg, #2d7658, #1b4f3a); border: 2px solid #d6e7dd; border-radius: 50%; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.avatar--photo { border-color: rgb(255 255 255 / 13%); }

.sidebar-backdrop { display: none; }

.workspace { min-height: 100vh; margin-left: 246px; }

.topbar {
    position: sticky;
    z-index: 40;
    top: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 30px;
    background: rgb(255 255 255 / 92%);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.topbar__left, .topbar__right, .page-context, .global-search, .topbar-profile { display: flex; align-items: center; }
.topbar__left { min-width: 0; }
.page-context { gap: 8px; color: #8a9691; font-size: 12px; white-space: nowrap; }
.page-context svg { width: 13px; height: 13px; color: #b3bdb8; }
.page-context strong { overflow: hidden; max-width: 260px; color: #33443d; font-weight: 680; text-overflow: ellipsis; }
.prototype-badge { padding: 2px 6px; color: #557066; background: #edf3ef; border: 1px solid #dce6e0; border-radius: 5px; font-size: 8px; font-style: normal; font-weight: 730; letter-spacing: .06em; text-transform: uppercase; }
.topbar__right { position: relative; gap: 10px; }

.global-search {
    width: 248px;
    height: 38px;
    gap: 9px;
    padding: 0 9px 0 12px;
    color: #82908a;
    background: #f5f7f5;
    border: 1px solid #e5e9e6;
    border-radius: 9px;
    transition: border var(--ease), box-shadow var(--ease), background var(--ease);
}

.global-search:focus-within { background: #fff; border-color: #9bc5b1; box-shadow: 0 0 0 3px rgb(28 118 82 / 8%); }
.global-search svg { width: 17px; height: 17px; }
.global-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.global-search input::placeholder { color: #9da8a3; }
.global-search kbd { min-width: 20px; padding: 1px 6px; color: #8e9a95; background: #fff; border: 1px solid #dfe5e1; border-radius: 5px; box-shadow: 0 1px 1px rgb(0 0 0 / 3%); font-family: inherit; font-size: 10px; text-align: center; }

.icon-button {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #55665f;
    background: #fff;
    cursor: pointer;
    transition: color var(--ease), border var(--ease), background var(--ease), transform var(--ease);
}

.icon-button:hover { color: var(--green); border-color: #c9d9d1; background: #f8fbf9; }
.icon-button:active { transform: scale(.97); }
.icon-button svg { width: 18px; height: 18px; }
.mobile-menu { display: none; margin-right: 12px; }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; background: #df6e45; border: 1.5px solid #fff; border-radius: 50%; }
.topbar-profile { gap: 5px; padding: 0 2px 0 4px; border: 0; background: transparent; cursor: pointer; }
.topbar-profile > svg { width: 14px; height: 14px; color: #71827a; }

.popover { position: absolute; z-index: 70; top: calc(100% + 14px); right: 42px; width: 335px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-md); }
.popover__header { display: flex; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); }
.popover__header strong { font-size: 14px; }
.popover__header button { padding: 0; border: 0; color: var(--green); background: none; cursor: pointer; font-size: 11px; font-weight: 680; }
.notification-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 13px 16px; border: 0; border-bottom: 1px solid #eef1ef; background: #fff; cursor: pointer; text-align: left; }
.notification-item:hover { background: #f8faf8; }
.notification-item > span:last-child { display: grid; }
.notification-item strong { font-size: 12px; }
.notification-item small { color: var(--muted); font-size: 10px; }

.main { width: 100%; max-width: 1660px; margin: 0 auto; padding: 30px 30px 56px; }
.view { display: none; animation: viewIn 240ms ease both; }
.view.is-visible { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.welcome-row--compact { align-items: center; }
.eyebrow { margin: 0 0 5px !important; color: var(--green) !important; font-size: 10px !important; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.welcome-row h1, .detail-header h1 { margin: 0; color: #192721; font-size: clamp(25px, 2vw, 32px); font-weight: 730; letter-spacing: -.04em; line-height: 1.2; }
.welcome-row p { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }

.button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 680;
    letter-spacing: -.01em;
    white-space: nowrap;
    transition: background var(--ease), border var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button svg { width: 17px; height: 17px; }
.button--primary { color: #fff; background: var(--green); border-color: var(--green); box-shadow: 0 5px 12px rgb(28 118 82 / 15%); }
.button--primary:hover:not(:disabled) { background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 7px 18px rgb(28 118 82 / 20%); }
.button--secondary { color: #34483f; background: #fff; border-color: #d9e0dc; }
.button--secondary:hover:not(:disabled) { color: var(--green); border-color: #b9cfc4; background: #fbfdfc; }
.button--ghost { color: #64726c; background: transparent; }
.button--danger { color: #fff; background: var(--red); border-color: var(--red); }
.button--danger:hover:not(:disabled) { background: #a73b35; border-color: #a73b35; }
.button--small { min-height: 34px; padding: 0 11px; font-size: 11px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.stat-card__icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; }
.stat-card__icon svg { width: 20px; height: 20px; }
.stat-card--green .stat-card__icon { color: var(--green); background: var(--green-soft); }
.stat-card--blue .stat-card__icon { color: var(--blue); background: var(--blue-soft); }
.stat-card--amber .stat-card__icon { color: var(--amber); background: var(--amber-soft); }
.stat-card--purple .stat-card__icon { color: var(--purple); background: var(--purple-soft); }
.stat-card > div:last-child { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; }
.stat-card span { grid-column: 1; color: #64736d; font-size: 11px; font-weight: 630; }
.stat-card strong { grid-column: 2; grid-row: 1 / 3; justify-self: end; color: #1b2923; font-size: 27px; font-weight: 730; letter-spacing: -.04em; line-height: 1; }
.stat-card small { grid-column: 1; overflow: hidden; margin-top: 4px; color: #68776f; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.stat-card small b { color: #50635a; }

.dashboard-layout { display: grid; grid-template-columns: minmax(650px, 1fr) 322px; align-items: start; gap: 18px; }
.dashboard-aside { display: grid; gap: 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-heading { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border-bottom: 1px solid #edf0ee; }
.panel-heading--compact { min-height: auto; padding: 18px; }
.panel-heading h2, .section-title h2 { margin: 0; color: #1c2924; font-size: 15px; font-weight: 720; letter-spacing: -.02em; }
.panel-heading p, .section-title p { margin: 3px 0 0; color: #65746d; font-size: 10.5px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; border: 0; color: var(--green); background: none; cursor: pointer; font-size: 11px; font-weight: 690; white-space: nowrap; }
.text-button svg { width: 15px; height: 15px; transition: transform var(--ease); }
.text-button:hover svg { transform: translateX(3px); }

.project-toolbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 14px 8px 20px; border-bottom: 1px solid #edf0ee; }
.filter-tabs { display: flex; align-items: center; gap: 3px; }
.filter-tab { min-height: 33px; padding: 0 10px; border: 0; border-radius: 8px; color: #718079; background: transparent; cursor: pointer; font-size: 10.5px; font-weight: 620; white-space: nowrap; }
.filter-tab span { margin-left: 4px; color: #5f6e67; }
.filter-tab:hover { color: #31453c; background: #f4f7f5; }
.filter-tab.is-active { color: var(--green); background: var(--green-soft); }
.filter-tab.is-active span { color: var(--green); }
.project-search-wrap { display: flex; align-items: center; gap: 7px; }
.table-search { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 10px; color: #84918b; background: #f8faf8; border: 1px solid #e6ebe7; border-radius: 8px; }
.table-search:focus-within { border-color: #a8c9b9; background: #fff; }
.table-search svg { width: 15px; height: 15px; }
.table-search input { width: 110px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10.5px; }
.table-search input::placeholder { color: #9aa59f; }
.filter-button { width: 34px; height: 34px; }

.project-table-wrap { overflow-x: auto; }
.project-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.project-table th { height: 37px; padding: 0 14px; color: #68766f; background: #fbfcfb; border-bottom: 1px solid #edf0ee; font-size: 9px; font-weight: 720; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.project-table th:first-child, .project-table td:first-child { padding-left: 20px; }
.project-table th:nth-child(1) { width: 31%; }
.project-table th:nth-child(2) { width: 18%; }
.project-table th:nth-child(3) { width: 22%; }
.project-table th:nth-child(4) { width: 23%; }
.project-table td { height: 69px; padding: 9px 14px; border-bottom: 1px solid #edf0ee; vertical-align: middle; }
.project-table tbody tr { cursor: pointer; transition: background var(--ease); }
.project-table tbody tr:last-child td { border-bottom: 0; }
.project-table tbody tr:hover { background: #f9fbf9; }
.project-table tbody tr.is-filtered { display: none; }
.project-table tbody tr.is-extra { display: none; }
.project-table.is-expanded tbody tr.is-extra { display: table-row; }
.project-name { min-width: 175px; display: flex; align-items: center; gap: 10px; }
.project-name > span:last-child { min-width: 0; display: grid; }
.project-name strong { overflow: hidden; color: #23322c; font-size: 11.5px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
.project-name small, .cell-note { display: block; overflow: hidden; margin-top: 2px; color: #68766f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.site-mark { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 9px; font-size: 10px; font-weight: 780; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%); }
.site-mark--large { width: 48px; height: 48px; border-radius: 13px; font-size: 14px; }
.site-mark--forest { background: linear-gradient(145deg, #376755, #193d30); }
.site-mark--violet { background: linear-gradient(145deg, #8a75c8, #5c4798); }
.site-mark--orange { background: linear-gradient(145deg, #d38a4b, #a85b2d); }
.site-mark--blue { background: linear-gradient(145deg, #6681d1, #3d58a6); }
.site-mark--cyan { background: linear-gradient(145deg, #4c9da8, #2d707a); }
.site-mark--pink { background: linear-gradient(145deg, #c8798d, #985066); }
.site-mark--yellow { color: #4a381c; background: linear-gradient(145deg, #e5bf69, #ba8830); }
.site-mark--slate { background: linear-gradient(145deg, #65746e, #384b43); }

.status-line, .git-state, .muted-state { display: inline-flex; align-items: center; gap: 6px; color: #3f5149; font-size: 10.5px; font-weight: 620; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot--success { background: #45a579; box-shadow: 0 0 0 3px #e6f4ed; }
.git-state { color: #a46527; }
.git-state svg, .muted-state svg { width: 14px; height: 14px; }
.git-state--ok { color: #416c59; }
.muted-state { color: #89958f; font-weight: 540; }
.status-pill { width: fit-content; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 680; white-space: nowrap; }
.status-pill i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status-pill--success { color: #2d7858; background: #eaf6ef; }
.status-pill--warning { color: #a46422; background: #fff2df; }
.status-pill--info { color: #5269b0; background: #edf0ff; }
.status-pill--danger { color: #a64840; background: #fff0ee; }
.status-pill--neutral { color: #68766f; background: #f0f3f1; }
.row-action { width: 29px; height: 29px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; color: #89958f; background: transparent; cursor: pointer; }
.row-action:hover { color: var(--green); border-color: #d9e4de; background: #fff; }
.row-action svg { width: 15px; height: 15px; }
.inline-create { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px dashed #a8c3b5; border-radius: 7px; color: var(--green); background: #f8fbf9; cursor: pointer; font-size: 9.5px; font-weight: 670; white-space: nowrap; }
.inline-create:hover { border-style: solid; background: var(--green-soft); }
.inline-create svg { width: 13px; height: 13px; }
.empty-state { min-height: 250px; display: grid; place-items: center; align-content: center; color: #82908a; text-align: center; }
.empty-state svg { width: 30px; height: 30px; margin-bottom: 10px; }
.empty-state strong { color: #3b4c45; }
.empty-state span { margin-top: 3px; font-size: 11px; }

.activity-list { padding: 4px 12px; }
.activity-item { position: relative; width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 4px; border: 0; border-bottom: 1px solid #eef1ef; background: transparent; cursor: pointer; text-align: left; }
.activity-item:last-child { border-bottom: 0; }
.activity-item:hover strong { color: var(--green); }
.activity-item > span:last-child { min-width: 0; flex: 1; display: grid; grid-template-columns: 1fr auto; }
.activity-item strong { grid-column: 1; color: #35463f; font-size: 10.5px; font-weight: 670; transition: color var(--ease); }
.activity-item small { grid-column: 1; color: #68766f; font-size: 9.5px; }
.activity-item time { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #68766f; font-size: 9px; }
.event-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; }
.event-icon svg { width: 15px; height: 15px; }
.event-icon--warning { color: var(--amber); background: var(--amber-soft); }
.event-icon--success { color: var(--green); background: var(--green-soft); }
.event-icon--sync { color: var(--blue); background: var(--blue-soft); }
.event-icon--info { color: var(--purple); background: var(--purple-soft); }
.panel-footer-link { width: 100%; height: 43px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-top: 1px solid #edf0ee; color: var(--green); background: #fcfdfc; cursor: pointer; font-size: 10px; font-weight: 680; }
.panel-footer-link:hover { background: #f4f9f6; }
.panel-footer-link svg { width: 14px; height: 14px; }

.health-badge { display: flex; align-items: center; gap: 5px; color: #438062; font-size: 8px; font-weight: 670; white-space: nowrap; }
.health-badge i { width: 6px; height: 6px; background: #4da77e; border-radius: 50%; box-shadow: 0 0 0 3px #e6f4ed; }
.storage-visual { display: flex; align-items: center; justify-content: center; gap: 23px; padding: 20px 14px 18px; }
.storage-ring { position: relative; width: 88px; height: 88px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--value) * 1%), #e9eeeb 0); }
.storage-ring::before { content: ""; position: absolute; inset: 8px; background: #fff; border-radius: 50%; }
.storage-ring > span { position: relative; display: grid; text-align: center; }
.storage-ring strong { font-size: 17px; line-height: 1.1; }
.storage-ring small { color: #8b9791; font-size: 8px; }
.storage-copy { display: grid; gap: 10px; }
.storage-copy > span { display: grid; grid-template-columns: 8px 1fr; align-items: center; column-gap: 7px; color: #83908a; font-size: 9px; }
.storage-copy strong { grid-column: 2; color: #41534b; font-size: 10px; }
.legend-dot { width: 7px; height: 7px; grid-row: 1 / 3; background: #e0e6e2; border-radius: 2px; }
.legend-dot--used { background: var(--green); }
.health-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 16px; padding: 11px 2px; border-top: 1px solid #edf0ee; font-size: 9.5px; }
.health-row span { display: flex; align-items: center; gap: 7px; color: #61716a; }
.health-row svg { width: 14px; height: 14px; color: #71847b; }
.health-row strong { color: #3b7a5c; font-size: 9px; }

/* Project detail */
.back-button { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 17px; padding: 0; border: 0; color: #708079; background: transparent; cursor: pointer; font-size: 11px; font-weight: 610; }
.back-button:hover { color: var(--green); }
.back-button svg { width: 16px; height: 16px; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 21px; }
.detail-title-wrap, .title-line, .detail-actions { display: flex; align-items: center; }
.detail-title-wrap { gap: 13px; }
.title-line { gap: 12px; }
.title-line .status-line { color: #39805f; font-size: 9px; }
.detail-title-wrap a { display: inline-block; margin-top: 3px; color: #72817a; text-decoration: none; font-size: 11px; }
.detail-title-wrap a:hover { color: var(--green); text-decoration: underline; }
.detail-actions { gap: 8px; }
.more-button { width: 40px; height: 40px; }

.alert { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 13px 15px; border: 1px solid #f0d7b4; border-radius: 12px; background: #fff9ee; }
.alert__icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #ae6f2b; background: #ffedcf; border-radius: 9px; }
.alert__icon svg { width: 17px; height: 17px; }
.alert > div { min-width: 0; flex: 1; }
.alert strong { color: #744b20; font-size: 11.5px; }
.alert p { margin: 2px 0 0; color: #967449; font-size: 9.5px; }
.alert > button { display: inline-flex; align-items: center; gap: 5px; padding: 6px; border: 0; color: #98601f; background: transparent; cursor: pointer; font-size: 10px; font-weight: 680; white-space: nowrap; }
.alert > button:hover { color: #704313; }
.alert > button svg { width: 14px; height: 14px; }
.alert--danger { border-color: #efcbc7; background: #fff3f1; }
.alert--danger .alert__icon { color: var(--red); background: #f9dcd8; }
.alert--danger strong { color: #823f39; }
.alert--danger p { color: #9c6a66; }
.alert--danger > button { color: #a14942; }

.detail-tabs { display: flex; align-items: center; gap: 3px; margin-bottom: 17px; border-bottom: 1px solid var(--line-strong); }
.detail-tab { position: relative; min-height: 39px; padding: 0 13px; border: 0; color: #718079; background: transparent; cursor: pointer; font-size: 11px; font-weight: 620; }
.detail-tab::after { content: ""; position: absolute; right: 13px; bottom: -1px; left: 13px; height: 2px; background: transparent; border-radius: 2px 2px 0 0; }
.detail-tab:hover { color: #33483e; }
.detail-tab.is-active { color: var(--green); }
.detail-tab.is-active::after { background: var(--green); }
.detail-tab span { display: inline-grid; place-items: center; min-width: 18px; margin-left: 3px; padding: 1px 5px; background: #eef2ef; border-radius: 999px; font-size: 8px; }
.detail-tab-panel { display: none; animation: viewIn 180ms ease both; }
.detail-tab-panel.is-active { display: block; }

.environment-flow { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; margin-bottom: 18px; }
.environment-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.environment-card--live { border-top: 3px solid #4a9b75; }
.environment-card--staging { border-top: 3px solid #c8944d; }
.environment-card--staging.is-empty { border: 1px dashed #cbd6d0; box-shadow: none; }
.environment-card--staging.is-empty .environment-url { color: var(--green); background: var(--green-soft); cursor: pointer; }
.environment-card--staging.is-empty .environment-meta { opacity: .58; }
.environment-card__head { display: flex; align-items: center; gap: 10px; padding: 17px 18px 13px; }
.environment-card__head > div { flex: 1; }
.environment-card__head > div > span { color: #86938d; font-size: 8.5px; font-weight: 630; letter-spacing: .04em; text-transform: uppercase; }
.environment-card__head h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.environment-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 9px; }
.environment-card--staging .environment-icon { color: #9c672e; background: var(--amber-soft); }
.environment-icon svg { width: 17px; height: 17px; }
.environment-url { display: flex; align-items: center; justify-content: space-between; margin: 0 18px; padding: 10px 11px; color: #365f4c; background: #f5f8f6; border-radius: 8px; text-decoration: none; font-size: 10.5px; font-weight: 650; }
.environment-url:hover { background: #edf5f0; }
.environment-url svg { width: 14px; height: 14px; }
.environment-meta { display: grid; grid-template-columns: 1fr 1fr; margin: 15px 18px 17px; }
.environment-meta > div { padding: 7px 0; }
.environment-meta > div:nth-child(even) { padding-left: 18px; border-left: 1px solid #edf0ee; }
.environment-meta dt { color: #8c9892; font-size: 8.5px; }
.environment-meta dd { margin: 2px 0 0; color: #384a42; font-size: 10px; font-weight: 640; }
.environment-footer { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; color: #53816a; background: #fbfcfb; border-top: 1px solid #edf0ee; font-size: 9px; }
.environment-footer > span { display: flex; align-items: center; gap: 5px; }
.environment-footer svg { width: 13px; height: 13px; }
.environment-footer time { color: #919d97; }
.environment-footer--actions > button:first-child { display: flex; align-items: center; gap: 5px; padding: 0; border: 0; color: var(--green); background: transparent; cursor: pointer; font-size: 9px; font-weight: 660; }
.environment-footer--actions .button { min-height: 29px; }
.flow-connector { display: grid; place-items: center; gap: 5px; }
.flow-connector span { width: 34px; height: 34px; display: grid; place-items: center; color: #7b8f85; background: #fff; border: 1px solid #dce4df; border-radius: 50%; box-shadow: var(--shadow-sm); }
.flow-connector svg { width: 16px; height: 16px; }
.flow-connector small { color: #82918a; font-size: 7.5px; font-weight: 660; white-space: nowrap; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.detail-grid.is-single { grid-template-columns: 1fr; }
.detail-grid.is-single .git-panel { max-width: none; }
.git-panel, .safety-panel { padding: 18px; }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.section-title > div { min-width: 0; flex: 1; }
.section-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; }
.section-icon svg { width: 17px; height: 17px; }
.section-icon--git { color: var(--purple); background: var(--purple-soft); }
.section-icon--shield { color: var(--green); background: var(--green-soft); }
.section-icon--danger { color: var(--red); background: var(--red-soft); }
.git-summary { display: grid; grid-template-columns: 1fr 1fr 1.2fr; overflow: hidden; margin-bottom: 13px; background: #f7f9f7; border: 1px solid #edf0ee; border-radius: 9px; }
.git-summary > div { display: grid; gap: 3px; padding: 11px; border-right: 1px solid #e7ebe8; }
.git-summary > div:last-child { border-right: 0; }
.git-summary span { color: #87948e; font-size: 8px; }
.git-summary strong { overflow: hidden; color: #40524a; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.git-summary code { padding: 1px 4px; color: #65499c; background: #ebe6f7; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 8px; }
.warning-text { display: inline-flex; align-items: center; gap: 4px; color: #a66725 !important; }
.warning-text svg { width: 12px; height: 12px; }
.git-note { display: flex; align-items: center; gap: 10px; padding: 11px; color: #715631; background: #fff9ef; border: 1px solid #f1e0c8; border-radius: 9px; }
.git-note > svg { width: 17px; height: 17px; flex: 0 0 auto; color: #a27031; }
.git-note > div { min-width: 0; flex: 1; }
.git-note strong { display: block; font-size: 9.5px; }
.git-note p { margin: 2px 0 0; color: #9b7b52; font-size: 8.5px; }
.git-note button { padding: 4px; border: 0; color: #8b5b20; background: none; cursor: pointer; font-size: 9px; font-weight: 670; }
.safety-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.safety-list > div { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px; border: 1px solid #e8edea; border-radius: 9px; }
.safety-list > div > span:nth-child(2) { min-width: 0; flex: 1; display: grid; }
.safety-list strong { overflow: hidden; color: #3c4e46; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.safety-list small { overflow: hidden; color: #8a9791; font-size: 7.8px; text-overflow: ellipsis; white-space: nowrap; }
.safety-check { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green); background: var(--green-soft); border-radius: 7px; }
.safety-check svg { width: 13px; height: 13px; }
.check-badge { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: #4b9b74; border-radius: 50%; }
.check-badge svg { width: 11px; height: 11px; stroke-width: 2.4; }

.history-preview .panel-heading { min-height: 67px; }
.history-table { padding: 0 20px 5px; }
.history-row { display: grid; grid-template-columns: 13px 1fr auto; align-items: center; gap: 10px; min-height: 54px; border-bottom: 1px solid #edf0ee; }
.history-row:last-child { border-bottom: 0; }
.history-row > div { display: grid; }
.history-row strong { color: #3c4d45; font-size: 10px; }
.history-row small, .history-row time { color: #68766f; font-size: 8.5px; }
.timeline-dot { width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px; }
.timeline-dot--warning { color: #d39a52; background: #d39a52; }
.timeline-dot--success { color: #55a680; background: #55a680; }
.timeline-dot--sync { color: #6a7ed0; background: #6a7ed0; }

.full-activity-panel { overflow: hidden; }
.activity-timeline { padding: 10px 24px 24px; }
.timeline-entry { position: relative; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; min-height: 68px; align-items: start; }
.timeline-entry::before { content: ""; position: absolute; top: 31px; bottom: 0; left: 17px; width: 1px; background: #e2e8e4; }
.timeline-entry:last-child::before { display: none; }
.timeline-entry .event-icon { position: relative; z-index: 1; }
.timeline-entry > div { display: grid; padding-top: 5px; }
.timeline-entry strong { font-size: 11px; }
.timeline-entry small { color: var(--muted); font-size: 9px; }
.timeline-entry time { padding-top: 7px; color: var(--muted); font-size: 9px; }

.settings-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .8fr); gap: 18px; align-items: start; }
.settings-card { padding-bottom: 19px; }
.settings-card > .field, .settings-card > .setting-row, .settings-card > .button { margin-right: 20px; margin-left: 20px; }
.settings-card > .field { margin-top: 17px; }
.field { display: grid; gap: 6px; }
.field > span { color: #4f6058; font-size: 10px; font-weight: 640; }
.field > small { color: #8a9690; font-size: 8.5px; }
.field input, .field select, .activity-filters select { width: 100%; height: 39px; padding: 0 11px; color: #30443a; background: #fff; border: 1px solid #dce3df; border-radius: 8px; outline: 0; font-size: 11px; }
.field input:focus, .field select:focus, .activity-filters select:focus { border-color: #9dc5b1; box-shadow: 0 0 0 3px rgb(28 118 82 / 8%); }
.domain-field { display: flex; align-items: center; overflow: hidden; border: 1px solid #dce3df; border-radius: 8px; }
.domain-field:focus-within { border-color: #9dc5b1; box-shadow: 0 0 0 3px rgb(28 118 82 / 8%); }
.domain-field:has(input[aria-invalid="true"]), .domain-field:has(input:invalid:not(:placeholder-shown)) { border-color: #d48a83; box-shadow: 0 0 0 3px rgb(185 71 63 / 8%); }
.domain-field input { min-width: 80px; flex: 1; border: 0; border-radius: 0; box-shadow: none !important; }
.domain-field span { height: 39px; display: flex; align-items: center; padding: 0 11px; color: #77847e; background: #f3f6f4; border-left: 1px solid #dce3df; font-size: 10px; white-space: nowrap; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; margin-bottom: 16px; padding: 13px 0; border-top: 1px solid #edf0ee; border-bottom: 1px solid #edf0ee; }
.setting-row > span { display: grid; }
.setting-row strong { font-size: 10.5px; }
.setting-row small { color: var(--muted); font-size: 9px; }
.toggle { position: relative; width: 36px; height: 20px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 999px; background: #cbd4cf; cursor: pointer; transition: background var(--ease); }
.toggle i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgb(0 0 0 / 18%); transition: transform var(--ease); }
.toggle.is-on { background: var(--green); }
.toggle.is-on i { transform: translateX(16px); }
.danger-card { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 20px; border-color: #f0d6d2; }
.danger-card .section-icon { margin-bottom: 13px; }
.danger-card h2 { margin: 0; color: #713a36; font-size: 14px; }
.danger-card p { margin: 5px 0 0; color: #8c6b68; font-size: 9.5px; }

/* Activity view */
.activity-overview-panel { overflow: hidden; }
.activity-filters { display: flex; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.activity-filters .table-search { width: min(360px, 100%); margin-right: auto; }
.activity-filters .table-search input { width: 100%; }
.activity-filters select { width: auto; height: 34px; color: #65736d; font-size: 10px; }
.day-group { padding: 18px 20px 3px; }
.day-group + .day-group { border-top: 1px solid #edf0ee; }
.day-group > h2 { margin: 0 0 8px; color: #8b9791; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.activity-log > button { width: 100%; display: grid; grid-template-columns: 36px 1fr auto 18px; align-items: center; gap: 12px; padding: 12px 0; border: 0; border-bottom: 1px solid #edf0ee; background: #fff; cursor: pointer; text-align: left; }
.activity-log > button:last-child { border-bottom: 0; }
.activity-log > button:hover strong { color: var(--green); }
.activity-log > button > span:nth-child(2) { display: grid; }
.activity-log strong { font-size: 10.5px; transition: color var(--ease); }
.activity-log small, .activity-log time { color: var(--muted); font-size: 9px; }
.activity-log > button > svg { width: 15px; height: 15px; color: #9ba6a0; }

/* Dialogs */
.modal { width: min(680px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: visible; color: var(--ink); background: transparent; border: 0; }
.modal::backdrop { background: rgb(11 22 17 / 58%); backdrop-filter: blur(3px); }
.modal[open] { animation: modalIn 220ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-shell { max-height: calc(100dvh - 32px); display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid rgb(255 255 255 / 30%); border-radius: 18px; box-shadow: 0 30px 90px rgb(0 0 0 / 22%); }
.modal-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2, .progress-hero h2, .progress-complete h2 { margin: 1px 0 0; color: #1b2a23; font-size: 19px; letter-spacing: -.03em; }
.modal-kicker { display: block; color: var(--green); font-size: 8.5px; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.modal-kicker--danger { color: var(--red); }
.modal-body { flex: 1; overflow-y: auto; padding: 21px 22px; }
.modal-foot { min-height: 68px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 13px 20px; background: #fbfcfb; border-top: 1px solid var(--line); }
.modal-foot__space { flex: 1; }

.stepper { height: 58px; display: flex; align-items: center; justify-content: center; padding: 0 70px; background: #fbfcfb; border-bottom: 1px solid var(--line); }
.stepper > i { height: 1px; flex: 1; margin: 0 9px 17px; background: #dfe5e1; }
.step { display: grid; grid-template-columns: 23px auto; align-items: center; gap: 7px; color: #65736d; }
.step > span { width: 23px; height: 23px; display: grid; place-items: center; grid-row: 1; color: #65736d; background: #eef1ef; border-radius: 50%; font-size: 8.5px; font-weight: 730; }
.step > strong { grid-row: 1; font-size: 8.5px; font-weight: 660; }
.step.is-active { color: var(--green); }
.step.is-active > span { color: #fff; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.step.is-complete { color: #5a7769; }
.step.is-complete > span { color: #fff; background: #78a990; }
.create-step { display: none; min-height: 365px; animation: viewIn 180ms ease both; }
.create-step.is-active { display: block; }
.step-intro { margin-bottom: 16px; }
.step-intro h3, .analysis-state h3, .result-heading h3 { margin: 0; color: #27372f; font-size: 15px; letter-spacing: -.02em; }
.step-intro p, .analysis-state > p, .result-heading p { margin: 3px 0 0; color: #819089; font-size: 10px; }
.project-choice-list { display: grid; gap: 9px; }
.project-choice { position: relative; display: grid; grid-template-columns: 18px 36px 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e0e6e2; border-radius: 11px; cursor: pointer; transition: border var(--ease), background var(--ease), box-shadow var(--ease); }
.project-choice:hover { background: #fafcfa; border-color: #c9d8d0; }
.project-choice:has(input:checked) { background: #f5faf7; border-color: #84b49e; box-shadow: 0 0 0 2px rgb(28 118 82 / 7%); }
.project-choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-radio { width: 17px; height: 17px; border: 1.5px solid #b6c2bc; border-radius: 50%; }
.project-choice input:checked + .choice-radio { border: 5px solid var(--green); }
.project-choice > span:nth-of-type(3) { min-width: 0; display: grid; }
.project-choice strong { color: #32443b; font-size: 11px; }
.project-choice small { color: #63716a; font-size: 9px; }
.source-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 17px; padding: 11px; color: #456252; background: #eff7f2; border: 1px solid #dbece2; border-radius: 10px; }
.source-note > svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--green); }
.source-note > div { display: grid; }
.source-note strong { font-size: 9.5px; }
.source-note p { margin: 2px 0 0; color: #6e8378; font-size: 8.5px; }

.analysis-state { display: grid; justify-items: center; padding: 11px 0; text-align: center; }
.analysis-orbit { position: relative; width: 70px; height: 70px; display: grid; place-items: center; margin-bottom: 13px; color: var(--green); background: var(--green-soft); border-radius: 50%; }
.analysis-orbit::before, .analysis-orbit::after { content: ""; position: absolute; inset: -6px; border: 1px dashed #8cbca5; border-radius: 50%; animation: orbit 9s linear infinite; }
.analysis-orbit::after { inset: 8px; border-style: solid; border-color: rgb(28 118 82 / 13%); animation-direction: reverse; animation-duration: 5s; }
.analysis-orbit svg { width: 25px; height: 25px; }
@keyframes orbit { to { transform: rotate(360deg); } }
.analysis-list { width: min(360px, 100%); display: grid; gap: 4px; margin-top: 17px; text-align: left; }
.analysis-list > span { display: flex; align-items: center; gap: 8px; padding: 7px 10px; color: #75837d; background: #f7f9f7; border-radius: 7px; font-size: 9.5px; }
.analysis-list i { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #d7dfda; border-radius: 50%; }
.analysis-list i svg { display: none; width: 10px; height: 10px; }
.analysis-list .is-done { color: #46735d; }
.analysis-list .is-done i { color: #fff; background: var(--green); border-color: var(--green); }
.analysis-list .is-done i svg { display: block; }
.analysis-list .is-active i { border: 2px solid #cbd8d1; border-top-color: var(--green); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.result-heading > div { flex: 1; }
.result-icon { width: 35px; height: 35px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px var(--green-soft); }
.result-icon svg { width: 18px; height: 18px; }
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-bottom: 12px; border: 1px solid #e3e8e5; border-radius: 10px; }
.analysis-grid > div { display: grid; padding: 11px 12px; }
.analysis-grid > div:nth-child(odd) { border-right: 1px solid #e8ece9; }
.analysis-grid > div:nth-child(-n+2) { border-bottom: 1px solid #e8ece9; }
.analysis-grid span { color: #8b9791; font-size: 8px; }
.analysis-grid strong { color: #36483f; font-size: 10px; }
.analysis-grid small { color: #95a09b; font-size: 8px; }
.copy-plan { margin-bottom: 12px; padding: 12px; background: #f8faf8; border: 1px solid #e8ece9; border-radius: 10px; }
.copy-plan__head { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 9.5px; }
.copy-plan__head span { color: var(--green); font-size: 8.5px; font-weight: 680; }
.copy-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.copy-chips span { display: flex; align-items: center; gap: 4px; padding: 4px 6px; color: #577166; background: #fff; border: 1px solid #e1e7e3; border-radius: 6px; font-size: 8px; }
.copy-chips svg { width: 10px; height: 10px; color: var(--green); }
.storage-check { display: flex; align-items: center; gap: 11px; padding: 11px 12px; background: #f2f7f4; border-radius: 10px; }
.storage-check > svg { width: 19px; height: 19px; color: var(--green); }
.storage-check > div { flex: 1; }
.storage-check > div > span { color: #50635a; font-size: 8.5px; font-weight: 650; }
.storage-check .storage-track { margin: 6px 0 4px; }
.storage-check small { display: flex; justify-content: space-between; color: #86938d; font-size: 7.5px; }
.storage-check small b:first-child { color: #577166; }

.create-step > .field { margin-bottom: 14px; }
.safety-confirm { overflow: hidden; margin-bottom: 13px; border: 1px solid #dce9e2; border-radius: 11px; }
.safety-confirm__head { display: flex; align-items: center; gap: 9px; padding: 11px 13px; background: #f1f8f4; border-bottom: 1px solid #e2ece6; }
.safety-confirm__head > span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--green); background: #dff0e7; border-radius: 8px; }
.safety-confirm__head svg { width: 15px; height: 15px; }
.safety-confirm__head > div { display: grid; }
.safety-confirm__head strong { font-size: 10px; }
.safety-confirm__head small { color: #788a81; font-size: 8px; }
.safety-confirm ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; padding: 12px 14px; list-style: none; }
.safety-confirm li { display: flex; align-items: center; gap: 6px; color: #576a61; font-size: 8.5px; }
.safety-confirm li svg { width: 12px; height: 12px; color: var(--green); stroke-width: 2.4; }
.confirm-check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.confirm-check input { position: absolute; opacity: 0; }
.confirm-check > span { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; color: transparent; border: 1px solid #b9c5bf; border-radius: 5px; }
.confirm-check input:checked + span { color: #fff; background: var(--green); border-color: var(--green); }
.project-choice:has(input:focus-visible), .confirm-check:has(input:focus-visible) { outline: 2px solid #477963; outline-offset: 2px; }
.confirm-check svg { width: 12px; height: 12px; stroke-width: 2.5; }
.confirm-check p { margin: 0; color: #66756e; font-size: 9.5px; }
.confirm-check p strong { color: #40534a; }

.modal--progress { width: min(520px, calc(100vw - 28px)); }
.modal--progress .modal-shell { padding: 26px; }
.progress-hero { display: grid; justify-items: center; padding: 3px 0 20px; text-align: center; border-bottom: 1px solid var(--line); }
.progress-hero > p, .progress-complete p { max-width: 340px; margin: 5px auto 0; color: var(--muted); font-size: 9.5px; }
.progress-ring { position: relative; width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 13px; }
.progress-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke: #e7ece9; stroke-width: 5; }
.progress-ring__value { stroke: var(--green) !important; stroke-linecap: round; stroke-dasharray: 195; stroke-dashoffset: 195; transition: stroke-dashoffset 450ms ease; }
.progress-ring strong { position: relative; font-size: 15px; }
.job-steps { padding: 13px 22px 0; }
.job-step { position: relative; display: grid; grid-template-columns: 27px 1fr; gap: 10px; min-height: 56px; color: #88948e; }
.job-step::after { content: ""; position: absolute; top: 27px; bottom: 0; left: 12px; width: 1px; background: #e1e7e3; }
.job-step:last-child::after { display: none; }
.job-step > i { position: relative; z-index: 1; width: 25px; height: 25px; display: grid; place-items: center; background: #edf1ee; border-radius: 50%; }
.job-step > i > span { width: 6px; height: 6px; background: #aebbb4; border-radius: 50%; }
.job-step > i svg { display: none; width: 13px; height: 13px; }
.job-step > span { display: grid; align-content: start; padding-top: 2px; }
.job-step strong { font-size: 10px; }
.job-step small { font-size: 8.5px; }
.job-step.is-active { color: #3e5b4d; }
.job-step.is-active > i { background: #dcefe5; box-shadow: 0 0 0 4px #f0f8f4; }
.job-step.is-active > i > span { background: var(--green); animation: pulse 1s ease infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .6; } }
.job-step.is-done { color: #416d58; }
.job-step.is-done > i { color: #fff; background: var(--green); }
.job-step.is-done > i > span { display: none; }
.job-step.is-done > i svg { display: block; }
.progress-complete { display: grid; justify-items: center; padding: 17px 5px 3px; text-align: center; animation: viewIn 220ms ease both; }
.complete-check { width: 55px; height: 55px; display: grid; place-items: center; margin-bottom: 12px; color: #fff; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 8px var(--green-soft); }
.complete-check svg { width: 27px; height: 27px; stroke-width: 2.3; }
.progress-complete .button { margin-top: 17px; }

.modal--confirm { width: min(540px, calc(100vw - 28px)); }
.warning-block { display: flex; align-items: flex-start; gap: 10px; padding: 12px; color: #74501f; background: #fff7e9; border: 1px solid #efdaba; border-radius: 10px; }
.warning-block > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: #a86d27; background: #ffebca; border-radius: 8px; }
.warning-block svg { width: 16px; height: 16px; }
.warning-block strong { font-size: 10.5px; }
.warning-block p { margin: 2px 0 0; color: #96774f; font-size: 9px; }
.warning-block--danger { color: #7d3e39; background: var(--red-soft); border-color: #efd1cd; }
.warning-block--danger > span { color: var(--red); background: #f9dbd7; }
.warning-block--danger p { color: #9b6e6a; }
.sync-summary { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 0; border: 1px solid #e4e9e6; border-radius: 10px; }
.sync-summary > div { display: grid; padding: 10px 12px; }
.sync-summary > div:nth-child(odd) { border-right: 1px solid #e8ece9; }
.sync-summary > div:nth-child(-n+2) { border-bottom: 1px solid #e8ece9; }
.sync-summary span { color: #89958f; font-size: 8px; }
.sync-summary strong { color: #43544c; font-size: 9px; }
.modal--confirm .confirm-check { margin-top: 15px; }
.delete-visual { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; padding: 11px; background: #f7f9f7; border-radius: 10px; }
.delete-visual > span { width: 35px; height: 35px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border-radius: 9px; }
.delete-visual svg { width: 17px; height: 17px; }
.delete-visual > div { display: grid; }
.delete-visual strong { font-size: 10.5px; }
.delete-visual small { color: var(--muted); font-size: 8.5px; }
.modal--confirm .field { margin-top: 15px; }

.toast-region { position: fixed; z-index: 100; right: 24px; bottom: 22px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 280px; max-width: 390px; display: flex; align-items: center; gap: 10px; padding: 12px 13px; color: #eaf3ee; background: #1a2d25; border: 1px solid rgb(255 255 255 / 9%); border-radius: 11px; box-shadow: var(--shadow-md); animation: toastIn 220ms ease both; pointer-events: auto; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.toast.is-leaving { animation: toastOut 180ms ease both; }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }
.toast > span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; color: #173025; background: var(--lime); border-radius: 7px; }
.toast > span svg { width: 14px; height: 14px; stroke-width: 2.2; }
.toast > div { display: grid; }
.toast strong { font-size: 10.5px; }
.toast small { color: #9db1a7; font-size: 8.5px; }

@media (max-width: 1320px) {
    .dashboard-layout { grid-template-columns: minmax(600px, 1fr) 285px; }
    .stat-card { padding: 15px; }
    .stat-card__icon { width: 38px; height: 38px; }
    .stat-card small { max-width: 105px; }
    .project-table th:nth-child(4), .project-table td:nth-child(4) { display: none; }
    .safety-list { grid-template-columns: 1fr; }
}

@media (max-width: 1210px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-aside { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-aside { grid-template-columns: 1fr 1fr; }
    .project-table th:nth-child(4), .project-table td:nth-child(4) { display: table-cell; }
    .environment-flow { grid-template-columns: 1fr; gap: 9px; }
    .flow-connector { min-height: 37px; }
    .flow-connector span { width: 30px; height: 30px; transform: rotate(90deg); }
    .flow-connector small { display: none; }
    .detail-grid { grid-template-columns: 1fr; }
    .safety-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-101%); box-shadow: 20px 0 50px rgb(0 0 0 / 18%); transition: transform 230ms cubic-bezier(.2,.8,.2,1); }
    body.sidebar-open .sidebar { transform: none; }
    .sidebar-backdrop { position: fixed; z-index: 45; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgb(10 20 16 / 42%); opacity: 0; pointer-events: none; transition: opacity var(--ease); }
    body.sidebar-open .sidebar-backdrop { display: block; opacity: 1; pointer-events: auto; }
    .workspace { margin-left: 0; }
    .mobile-menu { display: inline-grid; }
    .main { padding-right: 22px; padding-left: 22px; }
    .topbar { padding: 0 22px; }
}

@media (max-width: 720px) {
    .topbar { height: 62px; padding: 0 15px; }
    .page-context > span, .page-context > svg, .prototype-badge { display: none; }
    .global-search { width: 38px; padding: 0; justify-content: center; border: 0; background: transparent; }
    .global-search input, .global-search kbd { display: none; }
    .topbar-profile > svg { display: none; }
    .main { padding: 21px 15px 42px; }
    .welcome-row { align-items: center; margin-bottom: 20px; }
    .welcome-row h1 { font-size: 25px; }
    #dashboardView > .welcome-row > .button { min-width: 41px; width: 41px; padding: 0; font-size: 0; }
    #dashboardView > .welcome-row > .button svg { margin: 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { gap: 10px; padding: 13px; }
    .stat-card__icon { width: 34px; height: 34px; }
    .stat-card strong { font-size: 22px; }
    .stat-card small { display: none; }
    .dashboard-aside { grid-template-columns: 1fr; }
    .panel-heading { padding: 15px; }
    .project-toolbar { align-items: stretch; flex-direction: column; padding: 10px 14px; }
    .filter-tabs { overflow-x: auto; }
    .project-search-wrap .table-search { flex: 1; }
    .project-search-wrap .table-search input { width: 100%; }
    .project-table-wrap { overflow: visible; padding: 7px 12px 13px; }
    .project-table, .project-table tbody { display: block; }
    .project-table thead { display: none; }
    .project-table tbody tr, .project-table.is-expanded tbody tr.is-extra { display: grid; grid-template-columns: 1fr auto; margin: 7px 0; padding: 12px; border: 1px solid #e5eae7; border-radius: 11px; }
    .project-table tbody tr.is-filtered, .project-table tbody tr.is-extra { display: none; }
    .project-table td { height: auto; padding: 0 !important; border: 0; }
    .project-table td:first-child { grid-column: 1; }
    .project-table td:nth-child(2) { grid-column: 1; margin: 9px 0 0 44px; }
    .project-table td:nth-child(3) { grid-column: 1; margin: 6px 0 0 44px; }
    .project-table td:nth-child(4) { display: none; }
    .project-table td:last-child { grid-column: 2; grid-row: 1 / 4; align-self: center; }
    .project-name { min-width: 0; }
    .cell-note { display: inline; margin-left: 5px; }
    .project-table td:nth-child(3) .cell-note { display: block; margin-left: 0; }
    .detail-header { align-items: flex-start; }
    .detail-actions .button { width: 40px; padding: 0; font-size: 0; }
    .alert { align-items: flex-start; }
    .alert > button { display: none; }
    .environment-meta { grid-template-columns: 1fr; }
    .environment-meta > div:nth-child(even) { padding-left: 0; border-left: 0; }
    .environment-meta > div { border-bottom: 1px solid #edf0ee; }
    .environment-meta > div:last-child { border-bottom: 0; }
    .safety-list { grid-template-columns: 1fr; }
    .git-summary { grid-template-columns: 1fr; }
    .git-summary > div { border-right: 0; border-bottom: 1px solid #e7ebe8; }
    .git-summary > div:last-child { border-bottom: 0; }
    .history-row { grid-template-columns: 12px 1fr; }
    .history-row time { grid-column: 2; }
    .settings-layout { grid-template-columns: 1fr; }
    .danger-card { align-items: flex-start; flex-direction: column; }
    .activity-filters { flex-wrap: wrap; }
    .activity-filters .table-search { width: 100%; }
    .activity-filters select { flex: 1; }
    .activity-log > button { grid-template-columns: 34px 1fr auto; }
    .activity-log > button > svg { display: none; }
    .activity-log small { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .popover { position: fixed; top: 69px; right: 12px; left: 12px; width: auto; }
    .stepper { padding: 0 18px; }
    .step > strong { display: none; }
    .step { grid-template-columns: 23px; }
    .project-choice { grid-template-columns: 18px 36px 1fr; }
    .project-choice > .status-pill { display: none; }
    .analysis-grid { grid-template-columns: 1fr; }
    .analysis-grid > div { border-right: 0 !important; border-bottom: 1px solid #e8ece9; }
    .analysis-grid > div:last-child { border-bottom: 0; }
    .safety-confirm ul { grid-template-columns: 1fr; }
    .sync-summary { grid-template-columns: 1fr; }
    .sync-summary > div { border-right: 0 !important; border-bottom: 1px solid #e8ece9; }
    .sync-summary > div:last-child { border-bottom: 0; }
    .modal-foot { padding: 11px 14px; }
    .modal-foot .button { padding: 0 11px; }
    .toast-region { right: 12px; bottom: 12px; left: 12px; }
    .toast { min-width: 0; max-width: none; }
}

@media (max-width: 430px) {
    .welcome-row p:not(.eyebrow) { max-width: 240px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card > div:last-child { width: 100%; }
    .filter-tab { padding: 0 8px; }
    .panel-heading .text-button { font-size: 0; }
    .panel-heading .text-button svg { width: 18px; height: 18px; }
    .detail-title-wrap { min-width: 0; }
    .detail-title-wrap h1 { overflow: hidden; max-width: 160px; font-size: 23px; text-overflow: ellipsis; white-space: nowrap; }
    .title-line .status-line { display: none; }
    .environment-card__head { padding-right: 13px; padding-left: 13px; }
    .environment-url, .environment-meta { margin-right: 13px; margin-left: 13px; }
    .git-panel, .safety-panel { padding: 15px; }
    .activity-log small { max-width: 150px; }
    .modal-body { padding: 18px 15px; }
    .modal-head { padding: 13px 15px; }
    .modal-head h2 { font-size: 17px; }
    .modal-foot .button--secondary[value="cancel"] { display: none; }
    .job-steps { padding-right: 4px; padding-left: 4px; }
    .progress-hero h2 { font-size: 17px; }
    .domain-field span { padding: 0 7px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
