:root {
    --ink: #16231e;
    --ink-soft: #52615b;
    --ink-faint: #82908a;
    --paper: #f5f6f2;
    --surface: #ffffff;
    --surface-soft: #f9faf7;
    --line: #e2e7e2;
    --line-dark: #cbd4cd;
    --forest: #163d31;
    --forest-2: #215947;
    --lime: #c8f06b;
    --lime-dark: #8dbb2d;
    --sand: #f1e6cf;
    --blue: #dcecf6;
    --green-soft: #dcefe5;
    --warning: #9a6517;
    --warning-soft: #fff2d9;
    --danger: #a33c3c;
    --danger-soft: #fce7e7;
    --shadow: 0 18px 50px rgba(24, 53, 43, .08);
    --sidebar-width: 264px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

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

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

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

button {
    cursor: pointer;
}

button:disabled,
.button:disabled {
    cursor: not-allowed;
    opacity: .48;
    transform: none;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3,
.brand {
    font-family: "Manrope", "DM Sans", sans-serif;
}

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

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    padding: 28px 18px 22px;
    color: #eaf1ed;
    background: var(--forest);
}

.brand-row,
.brand,
.workspace-card,
.profile-row,
.nav-item,
.integration-health__top,
.topbar,
.project-switcher,
.topbar-actions,
.page-heading-split,
.heading-actions,
.project-hero,
.project-hero__identity,
.tag-row,
.panel-heading,
.compact-row,
.activity-item,
.inline-metrics,
.table-toolbar,
.filter-row,
.section-heading-row,
.plan-card__top,
.plan-step,
.price-list-row,
.change-row,
.delivery-row,
.endpoint-card__top,
.permission-card,
.construction-card,
.flash {
    display: flex;
    align-items: center;
}

.brand-row {
    justify-content: space-between;
    padding: 0 9px;
}

.brand {
    gap: 11px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 29px;
    height: 29px;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    padding: 4px;
    border-radius: 9px 9px 9px 3px;
    background: var(--lime);
    transform: rotate(-3deg);
}

.brand-mark i {
    display: block;
    border-radius: 2px;
    background: var(--forest);
}

.brand-mark i:nth-child(3) {
    grid-column: 1 / -1;
}

.workspace-card {
    gap: 10px;
    margin: 29px 0 23px;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 14px;
    background: rgba(255,255,255,.055);
}

.workspace-card > div:nth-child(2),
.profile-row > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.workspace-card strong,
.profile-row strong {
    display: block;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-card span,
.profile-row span {
    color: rgba(232,242,236,.55);
    font-size: 11px;
}

.chevron {
    margin-left: auto;
    font-size: 16px !important;
}

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

.avatar-soft {
    color: #fff;
    background: rgba(200,240,107,.16);
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-heading {
    margin: 0 11px 7px;
    color: rgba(232,242,236,.42);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.nav-item {
    position: relative;
    gap: 11px;
    min-height: 43px;
    padding: 8px 11px;
    border-radius: 11px;
    color: rgba(237,246,241,.68);
    font-size: 13px;
    font-weight: 500;
    transition: .2s ease;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
}

.nav-item.is-active {
    color: var(--forest);
    background: var(--lime);
    font-weight: 700;
}

.nav-icon {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    opacity: .9;
}

.nav-count {
    min-width: 21px;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 99px;
    color: #fff;
    background: var(--forest-2);
    font-size: 10px;
    text-align: center;
}

.sidebar-create-project {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: -10px 0 20px;
    border: 1px solid rgba(200,240,107,.35);
    border-radius: 11px;
    color: var(--lime);
    background: rgba(200,240,107,.07);
    font-size: 12px;
    font-weight: 700;
}

.sidebar-create-project span {
    font-size: 17px;
    line-height: 1;
}

.sidebar-create-project:hover,
.sidebar-create-project.is-active {
    color: var(--forest);
    background: var(--lime);
}

.nav-empty {
    display: flex;
    gap: 10px;
    padding: 12px 10px;
    color: rgba(237,246,241,.55);
}

.nav-empty span {
    font-family: "Manrope", sans-serif;
    font-size: 9px;
}

.nav-empty p {
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
}

.system-nav {
    margin-top: 20px;
}

.sidebar-spacer {
    flex: 1;
}

.integration-health {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(8, 28, 21, .18);
}

.integration-health__top {
    gap: 7px;
    font-size: 11px;
}

.integration-health__top strong {
    margin-left: auto;
    color: var(--lime);
}

.integration-health p {
    margin: 7px 0 0 15px;
    color: rgba(232,242,236,.48);
    font-size: 10px;
}

.health-dot,
.live-pill i,
.autosave-state i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 3px rgba(200,240,107,.12);
}

.profile-row {
    gap: 10px;
    padding: 14px 5px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}

.sidebar .icon-button {
    color: rgba(255,255,255,.65);
}

.sidebar-close,
.menu-button {
    display: none !important;
}

.main-area {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 74px;
    padding: 12px clamp(24px, 3.2vw, 52px);
    border-bottom: 1px solid var(--line);
    background: rgba(245,246,242,.92);
    backdrop-filter: blur(18px);
}

.project-switcher-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-label {
    color: var(--ink-faint);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
}

.project-switcher {
    position: relative;
    gap: 9px;
}

.project-monogram {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: var(--forest);
    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 800;
}

.project-switcher select {
    max-width: 210px;
    padding: 7px 28px 7px 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-weight: 700;
    appearance: none;
    cursor: pointer;
}

.select-chevron {
    position: absolute;
    right: 2px;
    color: var(--ink-faint);
    pointer-events: none;
}

.topbar-actions {
    gap: 9px;
    margin-left: auto;
}

.empty-project-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.empty-project-topbar span,
.empty-project-topbar strong {
    display: block;
}

.empty-project-topbar > div > span {
    color: var(--ink-faint);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.empty-project-topbar strong {
    font-size: 13px;
}

.icon-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: var(--ink-soft);
    background: transparent;
    font-weight: 700;
}

.icon-button:hover {
    background: rgba(21,61,48,.07);
}

.notification-button {
    position: relative;
    border: 1px solid var(--line);
    background: var(--surface);
}

.notification-button span {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--lime-dark);
    font-size: 8px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-small {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 12px;
}

.button-dark {
    color: #fff;
    background: var(--forest);
}

.button-dark:hover {
    background: var(--forest-2);
}

.button-ghost {
    border-color: var(--line-dark);
    background: var(--surface);
}

.button-ghost:hover {
    border-color: var(--forest);
}

.button-accent {
    color: var(--forest);
    background: var(--lime);
}

.button-full {
    width: 100%;
}

.page-wrap {
    width: min(100%, 1540px);
    margin: 0 auto;
    padding: 42px clamp(24px, 3.2vw, 52px) 70px;
}

.page-heading {
    margin-bottom: 30px;
}

.page-heading-split {
    justify-content: space-between;
    gap: 32px;
}

.page-heading h1 {
    max-width: 780px;
    margin-bottom: 11px;
    font-size: clamp(32px, 3vw, 48px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.compact-heading h1 {
    font-size: clamp(30px, 2.6vw, 42px);
}

.eyebrow {
    margin-bottom: 9px;
    color: var(--forest-2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.page-lead {
    max-width: 690px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 16px;
}

.heading-meta {
    min-width: 160px;
    padding-left: 26px;
    border-left: 1px solid var(--line-dark);
}

.heading-meta span,
.heading-meta strong {
    display: block;
}

.heading-meta span {
    color: var(--ink-faint);
    font-size: 11px;
}

.heading-meta strong {
    margin-top: 3px;
    font-size: 13px;
}

.heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.autosave-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
    color: var(--ink-soft);
    font-size: 12px;
}

.project-hero {
    position: relative;
    gap: clamp(24px, 4vw, 70px);
    margin-bottom: 20px;
    padding: 25px 28px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #fff;
    background: var(--forest);
}

.project-hero::after {
    position: absolute;
    right: 10%;
    bottom: -94px;
    width: 250px;
    height: 250px;
    border: 42px solid rgba(200,240,107,.06);
    border-radius: 50%;
    content: "";
}

.project-hero__identity {
    min-width: 0;
    flex: 1;
    gap: 16px;
}

.project-wordmark {
    display: grid;
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 18px;
    color: var(--forest);
    background: var(--lime);
    font-family: "Manrope", sans-serif;
    font-size: 30px;
    font-weight: 800;
}

.project-hero h2 {
    margin: 8px 0 2px;
    font-size: 26px;
    letter-spacing: -.03em;
}

.project-hero p {
    margin: 0;
    color: rgba(255,255,255,.62);
    font-size: 12px;
}

.tag-row {
    gap: 7px;
}

.status,
.soft-tag,
.live-pill,
.micro-status,
.quality-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.project-hero .status-under_construction {
    color: var(--lime);
    background: rgba(200,240,107,.12);
}

.project-hero .soft-tag {
    color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.08);
}

.status-available,
.status-delivered {
    color: #2f7554;
    background: #e4f3e9;
}

.status-reserved,
.status-pending {
    color: #8a641c;
    background: #fff1d3;
}

.status-sold,
.status-blocked,
.status-failed,
.status-abandoned {
    color: #99504d;
    background: #f9e7e5;
}

.status-under_construction {
    color: var(--forest-2);
    background: var(--green-soft);
}

.soft-tag {
    color: var(--ink-soft);
    background: #eef1ed;
}

.project-hero__summary {
    position: relative;
    z-index: 1;
    min-width: 120px;
}

.project-hero__summary span,
.project-hero__summary strong {
    display: block;
}

.project-hero__summary span {
    color: rgba(255,255,255,.55);
    font-size: 10px;
}

.project-hero__summary strong {
    margin-top: 4px;
    font-size: 14px;
}

.circle-link {
    position: relative;
    z-index: 1;
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--forest);
    background: var(--lime);
    font-size: 19px;
}

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

.metric-card {
    position: relative;
    display: flex;
    min-height: 132px;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.metric-card-accent {
    color: #fff;
    border-color: var(--forest-2);
    background: var(--forest-2);
}

.metric-card__icon {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    color: var(--forest);
    background: var(--lime);
    font-size: 11px;
    font-weight: 800;
}

.metric-card__icon-sand { background: var(--sand); }
.metric-card__icon-blue { background: var(--blue); }
.metric-card__icon-green { background: var(--green-soft); }

.metric-card span,
.metric-card strong,
.metric-card p {
    display: block;
}

.metric-card > div:nth-child(2) > span {
    color: var(--ink-faint);
    font-size: 10px;
    font-weight: 600;
}

.metric-card-accent > div:nth-child(2) > span,
.metric-card-accent p {
    color: rgba(255,255,255,.55) !important;
}

.metric-card strong {
    margin: 5px 0 1px;
    font-family: "Manrope", sans-serif;
    font-size: 27px;
    letter-spacing: -.04em;
}

.metric-card strong small {
    color: var(--ink-faint);
    font-size: 14px;
}

.metric-card-accent strong small {
    color: rgba(255,255,255,.5);
}

.metric-card p {
    margin: 0;
    color: var(--ink-faint);
    font-size: 10px;
}

.mini-bars {
    position: absolute;
    right: 15px;
    bottom: 18px;
    display: flex;
    height: 44px;
    align-items: flex-end;
    gap: 4px;
}

.mini-bars i {
    width: 5px;
    border-radius: 5px;
    background: rgba(200,240,107,.72);
}

.quality-ring {
    --value: 50;
    position: absolute;
    right: 17px;
    bottom: 17px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--forest-2) calc(var(--value) * 1%), #edf0ec 0);
}

.quality-ring::before {
    position: absolute;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: #fff;
    content: "";
}

.quality-ring span {
    position: relative;
    font-size: 9px;
    font-weight: 800;
}

.text-link {
    color: var(--forest-2);
    font-size: 11px;
    font-weight: 700;
}

.metric-card .text-link {
    position: absolute;
    right: 18px;
    bottom: 17px;
}

.micro-status {
    position: absolute;
    right: 17px;
    bottom: 16px;
    color: #317351;
    background: var(--green-soft);
}

.content-grid {
    display: grid;
    gap: 20px;
}

.content-grid-main {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.panel-heading {
    justify-content: space-between;
    gap: 18px;
    padding: 23px 24px 18px;
}

.panel-heading h3 {
    margin-bottom: 0;
    font-size: 18px;
    letter-spacing: -.025em;
}

.panel-heading .eyebrow {
    margin-bottom: 4px;
}

.inventory-summary {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 22px;
    padding: 4px 24px 23px;
}

.inventory-chart {
    position: relative;
    display: grid;
    width: 148px;
    height: 148px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(
        var(--forest-2) 0 calc(var(--available) / var(--total) * 100%),
        #e4c875 0 calc((var(--available) + var(--reserved)) / var(--total) * 100%),
        #dde3de 0
    );
}

.inventory-chart::before {
    position: absolute;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: #fff;
    content: "";
}

.inventory-chart div {
    position: relative;
    text-align: center;
}

.inventory-chart strong,
.inventory-chart span {
    display: block;
}

.inventory-chart strong {
    font-family: "Manrope", sans-serif;
    font-size: 27px;
}

.inventory-chart span {
    color: var(--ink-faint);
    font-size: 9px;
}

.legend-list {
    display: grid;
    gap: 12px;
}

.legend-list > div {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 9px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 11px;
}

.legend-list > div:last-child {
    border-bottom: 0;
}

.legend-list strong {
    color: var(--ink);
}

.legend-key {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.key-available { background: var(--forest-2); }
.key-reserved { background: #e4c875; }
.key-sold { background: #dbe1dc; }

.compact-table {
    border-top: 1px solid var(--line);
}

.compact-row {
    display: grid;
    grid-template-columns: 38px 1.2fr .8fr auto;
    gap: 13px;
    min-height: 69px;
    padding: 11px 24px;
    border-bottom: 1px solid var(--line);
}

.compact-row:last-child {
    border-bottom: 0;
}

.unit-chip {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    color: var(--forest);
    background: #eef2ed;
    font-size: 10px;
    font-weight: 800;
}

.compact-row strong,
.compact-row span,
.activity-item strong,
.activity-item span,
.price-list-row strong,
.price-list-row span {
    display: block;
}

.compact-row strong,
.activity-item strong {
    font-size: 11px;
}

.compact-row span,
.activity-item span {
    color: var(--ink-faint);
    font-size: 9px;
}

.row-price {
    text-align: right;
}

.stacked-panels {
    display: grid;
    align-content: start;
    gap: 20px;
}

.panel-highlight {
    background: linear-gradient(145deg, #fff 0%, #f1f6e6 100%);
}

.progress-number {
    color: var(--forest-2);
    font-family: "Manrope", sans-serif;
    font-size: 22px;
}

.progress-track {
    height: 7px;
    margin: 0 24px;
    overflow: hidden;
    border-radius: 99px;
    background: #e2e8df;
}

.progress-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--forest-2);
}

.panel-footnote {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px 20px;
    color: var(--ink-faint);
    font-size: 9px;
}

.panel-footnote a {
    color: var(--forest-2);
    font-weight: 700;
}

.live-pill {
    color: #317351;
    background: var(--green-soft);
}

.activity-list {
    padding: 0 24px 13px;
}

.activity-item {
    gap: 10px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.activity-item > div {
    flex: 1;
}

.activity-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
}

.activity-icon.is-success {
    color: #317351;
    background: var(--green-soft);
}

.activity-icon.is-warning {
    color: var(--warning);
    background: var(--warning-soft);
}

.activity-item code,
.delivery-row code {
    padding: 4px 7px;
    border-radius: 6px;
    color: var(--ink-soft);
    background: #f0f2ef;
    font-size: 9px;
}

.flash {
    position: fixed;
    z-index: 80;
    top: 88px;
    right: 26px;
    max-width: 440px;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #bcdcc9;
    border-radius: 15px;
    background: #f2fbf5;
    box-shadow: var(--shadow);
    animation: slideIn .25s ease;
}

.flash > div {
    flex: 1;
}

.flash strong {
    display: block;
    font-size: 12px;
}

.flash p {
    margin: 2px 0 0;
    color: var(--ink-soft);
    font-size: 11px;
}

.flash-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: var(--forest-2);
}

.flash-error {
    border-color: #e6b8b8;
    background: #fff3f3;
}

.flash-error .flash-icon {
    background: var(--danger);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
}

/* Project editor */
.editor-layout {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr) 245px;
    align-items: start;
    gap: 21px;
}

.section-nav,
.quality-panel {
    position: sticky;
    top: 96px;
}

.section-nav {
    display: grid;
    gap: 4px;
}

.section-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-left: 2px solid transparent;
    border-radius: 0 8px 8px 0;
    color: var(--ink-faint);
    font-size: 11px;
}

.section-nav a span {
    font-family: "Manrope", sans-serif;
    font-size: 9px;
}

.section-nav a:hover,
.section-nav a.is-active {
    color: var(--forest);
    border-left-color: var(--forest-2);
    background: #e9eee8;
    font-weight: 700;
}

.editor-content {
    display: grid;
    gap: 18px;
}

.form-section {
    scroll-margin-top: 95px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.form-section__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 24px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}

.form-section__heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section__heading > div > span {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 8px;
    color: var(--forest-2);
    background: #ebf1e8;
    font-size: 9px;
    font-weight: 800;
}

.form-section__heading h2 {
    margin: 0;
    font-size: 17px;
}

.form-section__heading p {
    margin: 4px 0 0;
    color: var(--ink-faint);
    font-size: 10px;
}

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

.field {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.field-span-2 { grid-column: span 2; }
.field-span-4 { grid-column: 1 / -1; }

.field > span {
    font-size: 10px;
    font-weight: 700;
}

.field em {
    margin-left: 5px;
    color: var(--ink-faint);
    font-size: 8px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    outline: none;
    background: #fff;
    transition: border .15s ease, box-shadow .15s ease;
}

.field input,
.field select {
    height: 42px;
    padding: 0 12px;
}

.field textarea {
    min-height: 80px;
    padding: 11px 12px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--forest-2);
    box-shadow: 0 0 0 3px rgba(33,89,71,.08);
}

.field small {
    position: absolute;
    right: 8px;
    bottom: 5px;
    color: var(--ink-faint);
    background: #fff;
    font-size: 8px;
}

.map-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid #d8e2ca;
    border-radius: 13px;
    background: #f7faed;
}

.map-tools strong,
.map-tools p {
    display: block;
}

.map-tools strong {
    font-size: 11px;
}

.map-tools p {
    margin: 2px 0 0;
    color: var(--ink-faint);
    font-size: 9px;
}

.map-link-field small {
    position: static;
    margin-top: -1px;
    padding: 0;
    background: transparent;
    font-size: 9px;
}

.map-link-field small.is-success {
    color: #317351;
}

.map-link-field small.is-error {
    color: var(--danger);
}

.catalog-explainer {
    margin: -5px 0 17px;
    color: var(--ink-soft);
    font-size: 11px;
}

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

.amenity-choice {
    position: relative;
    display: flex;
    min-height: 66px;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--line-dark);
    border-radius: 13px;
    background: var(--surface-soft);
    cursor: pointer;
    transition: border .15s ease, background .15s ease;
}

.amenity-choice > input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.amenity-check {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line-dark);
    border-radius: 9px;
    color: transparent;
    background: #fff;
    font-size: 11px;
    font-weight: 800;
}

.amenity-choice strong,
.amenity-choice small {
    display: block;
}

.amenity-choice strong {
    font-size: 11px;
}

.amenity-choice small {
    margin-top: 3px;
    color: var(--ink-faint);
    font-size: 8px;
}

.amenity-choice small code {
    font-size: inherit;
}

.amenity-choice.is-selected {
    border-color: #9bc24a;
    background: #f3f9df;
}

.amenity-choice.is-selected .amenity-check {
    border-color: var(--lime);
    color: var(--forest);
    background: var(--lime);
}

.amenity-choice.is-inactive {
    cursor: default;
    opacity: .58;
}

.tag-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.editable-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-soft);
    font-size: 10px;
    font-weight: 600;
}

.editable-tag i {
    color: var(--ink-faint);
    font-style: normal;
}

.construction-card,
.permission-card {
    gap: 16px;
    padding: 17px;
    border-radius: 15px;
    background: var(--surface-soft);
}

.construction-date {
    display: grid;
    width: 52px;
    height: 57px;
    flex: 0 0 auto;
    place-content: center;
    border-radius: 12px;
    color: #fff;
    background: var(--forest);
    text-align: center;
}

.construction-date strong,
.construction-date span {
    display: block;
}

.construction-date strong { font-size: 18px; line-height: 1; }
.construction-date span { margin-top: 3px; color: var(--lime); font-size: 8px; }

.construction-card > div:nth-child(2) {
    flex: 1;
}

.construction-card h3 {
    margin: 7px 0 3px;
    font-size: 13px;
}

.construction-card p,
.permission-card p {
    margin: 0;
    color: var(--ink-faint);
    font-size: 10px;
}

.permission-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: var(--forest-2);
}

.permission-card > div {
    flex: 1;
}

.permission-card strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
}

.quality-panel {
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.quality-score {
    margin: 7px 0 12px;
}

.quality-score strong {
    font-family: "Manrope", sans-serif;
    font-size: 40px;
    letter-spacing: -.05em;
}

.quality-score span {
    color: var(--ink-faint);
    font-size: 12px;
}

.quality-panel .progress-track {
    margin: 0;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 20px 0 22px;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 10px;
}

.check-list i {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 7px;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
}

.check-list .is-complete i {
    color: #317351;
    background: var(--green-soft);
}

.check-list .is-warning i {
    color: var(--warning);
    background: var(--warning-soft);
}

/* Units table */
.inline-metrics {
    gap: 0;
    margin-bottom: 17px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
}

.inline-metrics > div {
    display: flex;
    min-width: 150px;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-right: 1px solid var(--line);
}

.inline-metrics > div:last-child { border-right: 0; }
.inline-metrics span { color: var(--ink-faint); font-size: 10px; }
.inline-metrics strong { margin-left: auto; font-size: 14px; }
.inline-metrics .metric-warning strong { color: var(--warning); }

.table-panel {
    overflow: hidden;
}

.table-toolbar {
    justify-content: space-between;
    gap: 16px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--line);
}

.search-field {
    display: flex;
    width: min(390px, 45%);
    height: 39px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    background: #fff;
}

.search-field span { color: var(--ink-faint); font-size: 18px; }
.search-field input { width: 100%; border: 0; outline: 0; font-size: 11px; }

.filter-row { gap: 8px; }

.compact-select {
    position: relative;
}

.compact-select select {
    height: 39px;
    padding: 0 31px 0 12px;
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    outline: 0;
    background: #fff;
    font-size: 10px;
    appearance: none;
}

.compact-select span {
    position: absolute;
    top: 9px;
    right: 10px;
    color: var(--ink-faint);
    pointer-events: none;
}

.filter-button {
    border: 1px solid var(--line-dark);
}

.data-table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.data-table th {
    padding: 11px 14px;
    color: var(--ink-faint);
    background: #f8f9f6;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}

.data-table td {
    padding: 13px 14px;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

.data-table tbody tr:hover {
    background: #fafbf8;
}

.data-table input[type="checkbox"] {
    accent-color: var(--forest-2);
}

.primary-cell strong,
.primary-cell span,
.area-cell strong,
.area-cell span {
    display: block;
}

.primary-cell strong,
.area-cell strong { font-size: 11px; }
.primary-cell span,
.area-cell span { margin-top: 2px; color: var(--ink-faint); font-size: 9px; }
.price-cell span { color: #4f815f; }

.orientation-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-soft);
}

.orientation-badge i {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 7px;
    background: #eef1ed;
    font-style: normal;
}

.quality-badge.is-good {
    color: #317351;
    background: var(--green-soft);
}

.quality-badge.is-warning {
    color: var(--warning);
    background: var(--warning-soft);
}

.empty-state {
    padding: 55px 20px;
    text-align: center;
}

.empty-state strong { display: block; }
.empty-state p { margin: 4px 0 0; color: var(--ink-faint); font-size: 11px; }

.empty-state-panel {
    grid-column: 1 / -1;
    width: 100%;
    border: 1px dashed var(--line-dark);
    border-radius: 16px;
    background: rgba(255,255,255,.45);
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 10px;
}

.unit-dialog {
    width: min(760px, calc(100vw - 30px));
    max-height: calc(100vh - 40px);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 35px 90px rgba(8, 28, 21, .28);
}

.unit-dialog::backdrop {
    background: rgba(10, 27, 21, .52);
    backdrop-filter: blur(3px);
}

.unit-form {
    padding: 25px;
}

.dialog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}

.dialog-heading h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.035em;
}

.dialog-heading .eyebrow {
    margin-bottom: 3px;
}

.unit-form-grid .check-field {
    align-self: end;
    min-height: 42px;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    border: 1px solid var(--line-dark);
    border-radius: 10px;
}

.check-field input {
    width: 16px;
    height: 16px;
    accent-color: var(--forest-2);
}

.check-field span {
    font-size: 10px;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.pagination { display: flex; gap: 5px; }
.pagination button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 10px; }
.pagination button.is-active { color: #fff; border-color: var(--forest); background: var(--forest); }

/* Prices */
.price-overview {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.price-overview article {
    min-height: 125px;
    padding: 22px;
    border-right: 1px solid var(--line);
}

.price-overview article:last-child { border-right: 0; }
.price-overview__primary { color: #fff; background: var(--forest); }
.price-overview span,
.price-overview strong,
.price-overview p { display: block; }
.price-overview span { color: var(--ink-faint); font-size: 10px; }
.price-overview__primary span,
.price-overview__primary p { color: rgba(255,255,255,.58); }
.price-overview strong { margin: 9px 0 1px; font-family: "Manrope", sans-serif; font-size: 25px; letter-spacing: -.04em; }
.price-overview p { margin: 0; color: var(--ink-faint); font-size: 9px; }

.section-heading-row {
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-heading-row h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.03em;
}

.section-heading-row .eyebrow { margin-bottom: 3px; }

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.plan-card {
    display: flex;
    min-height: 380px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.plan-card-featured {
    border-color: #9ebda7;
    box-shadow: 0 0 0 3px rgba(33,89,71,.045);
}

.plan-card__top { justify-content: space-between; }
.plan-card h3 { margin: 19px 0 7px; font-size: 20px; letter-spacing: -.03em; }
.plan-card > p { min-height: 43px; margin-bottom: 16px; color: var(--ink-soft); font-size: 11px; }

.discount-callout {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-bottom: 13px;
    padding: 11px 13px;
    border-radius: 12px;
    color: var(--forest);
    background: var(--lime);
}

.discount-callout strong { font-family: "Manrope", sans-serif; font-size: 22px; }
.discount-callout span { font-size: 9px; font-weight: 700; }

.plan-steps {
    display: grid;
    gap: 0;
}

.plan-step {
    position: relative;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.plan-step > span {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    color: var(--forest-2);
    background: #ebf1e8;
    font-size: 9px;
    font-weight: 800;
}

.plan-step strong,
.plan-step small { display: block; }
.plan-step strong { font-size: 10px; }
.plan-step small { margin-top: 2px; color: var(--ink-faint); font-size: 8px; }

.missing-callout {
    display: flex;
    gap: 10px;
    padding: 13px;
    border-radius: 12px;
    color: var(--warning);
    background: var(--warning-soft);
}

.missing-callout span { font-weight: 800; }
.missing-callout p { margin: 0; font-size: 10px; }

.plan-card__footer {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    color: var(--ink-faint);
    font-size: 9px;
}

.plan-card__footer strong { color: var(--ink); }

.price-table-panel { overflow: hidden; }
.price-list { border-top: 1px solid var(--line); }
.price-list-row { display: grid; grid-template-columns: 40px 1.3fr 1fr 1fr auto; gap: 12px; padding: 13px 24px; border-bottom: 1px solid var(--line); }
.price-list-row:last-child { border-bottom: 0; }
.price-list-row > div:not(.unit-chip) > span { color: var(--ink-faint); font-size: 9px; }
.price-list-row > div:not(.unit-chip) > strong { font-size: 11px; }

/* Publish */
.version-chip {
    min-width: 140px;
    padding: 13px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.version-chip span,
.version-chip strong { display: block; }
.version-chip span { color: var(--ink-faint); font-size: 9px; }
.version-chip strong { margin-top: 3px; font-size: 17px; }

.publish-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 20px;
}

.publish-main,
.publish-sidebar {
    display: grid;
    gap: 18px;
}

.publish-sidebar {
    position: sticky;
    top: 95px;
}

.readiness-card {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px solid #b7d4c1;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f5fbf6, #eff7e6);
}

.readiness-card.has-warnings {
    border-color: #e1c486;
    background: linear-gradient(135deg, #fffaf0, #fff3d9);
}

.readiness-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 17px;
    color: #fff;
    background: var(--forest-2);
    font-size: 20px;
    font-weight: 800;
}

.has-warnings .readiness-icon { color: var(--warning); background: #f1d69c; }
.readiness-card h2 { margin: 0 0 4px; font-size: 20px; }
.readiness-card p { margin: 0; color: var(--ink-soft); font-size: 10px; }
.readiness-card .eyebrow { margin-bottom: 4px; }
.readiness-score strong { font-family: "Manrope", sans-serif; font-size: 34px; }
.readiness-score span { color: var(--ink-faint); font-size: 10px; }

.changes-panel { overflow: hidden; }
.changes-list { border-top: 1px solid var(--line); }
.change-row { display: grid; grid-template-columns: 29px 1.1fr 1fr 25px 1fr; gap: 12px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.change-row:last-child { border-bottom: 0; }
.change-marker { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: var(--forest-2); background: #ebf1e8; font-size: 10px; font-weight: 800; }
.change-warning .change-marker { color: var(--warning); background: var(--warning-soft); }
.change-field strong,
.change-field span,
.change-value span,
.change-value strong,
.change-value del { display: block; }
.change-field strong { font-size: 11px; }
.change-field span,
.change-value span { color: var(--ink-faint); font-size: 8px; }
.change-value strong,
.change-value del { margin-top: 2px; font-size: 10px; }
.old-value del { color: var(--ink-soft); }
.new-value strong { color: var(--forest-2); }
.change-arrow { color: var(--ink-faint); text-align: center; }

.delivery-list { border-top: 1px solid var(--line); }
.delivery-row { display: grid; grid-template-columns: 29px 1.2fr 1fr auto auto auto; gap: 11px; padding: 13px 22px; border-bottom: 1px solid var(--line); }
.delivery-row:last-child { border-bottom: 0; }
.delivery-row > div > strong,
.delivery-row > div > span { display: block; }
.delivery-row > div > strong { font-size: 10px; }
.delivery-row > div > span { color: var(--ink-faint); font-size: 8px; }

.publish-card,
.endpoint-card,
.recovery-note {
    border-radius: var(--radius-lg);
}

.publish-card {
    padding: 24px;
    color: #fff;
    background: var(--forest);
    box-shadow: var(--shadow);
}

.publish-card h3 { margin: 0; color: var(--lime); font-size: 33px; }
.publish-card > p:not(.eyebrow) { margin: 6px 0 19px; color: rgba(255,255,255,.6); font-size: 11px; }
.publish-card .eyebrow { color: rgba(255,255,255,.5); }
.publish-card small { display: block; margin-top: 12px; color: rgba(255,255,255,.42); font-size: 8px; line-height: 1.5; text-align: center; }

.publish-summary {
    display: grid;
    gap: 9px;
    margin-bottom: 18px;
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.publish-summary div { display: flex; justify-content: space-between; }
.publish-summary span { color: rgba(255,255,255,.5); font-size: 9px; }
.publish-summary strong { font-size: 9px; }

.endpoint-card {
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.endpoint-card__top { gap: 10px; }
.endpoint-card__top > div { flex: 1; }
.endpoint-card__top strong,
.endpoint-card__top span { display: block; }
.endpoint-card__top strong { font-size: 11px; }
.endpoint-card__top span { color: var(--ink-faint); font-size: 9px; }
.endpoint-logo { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: #315cc9; font-weight: 800; }
.endpoint-card code { display: block; margin: 15px 0 11px; padding: 9px; overflow: hidden; border-radius: 8px; color: var(--ink-soft); background: #f1f3f0; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-meta { display: flex; justify-content: space-between; color: var(--ink-faint); font-size: 9px; }
.endpoint-meta strong { color: #317351; }

.recovery-note {
    display: flex;
    gap: 11px;
    padding: 15px;
    border: 1px solid #c8d9ba;
    background: #f0f6e7;
}

.recovery-note > span { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--forest); background: var(--lime); font-weight: 800; }
.recovery-note strong { display: block; font-size: 10px; }
.recovery-note p { margin: 3px 0 0; color: var(--ink-soft); font-size: 9px; }

.toast {
    position: fixed;
    z-index: 100;
    right: 25px;
    bottom: 25px;
    max-width: 350px;
    padding: 13px 16px;
    border-radius: 13px;
    color: #fff;
    background: var(--forest);
    box-shadow: var(--shadow);
    font-size: 11px;
    animation: slideIn .2s ease;
}

.sidebar-scrim { display: none; }

/* Amenity catalog */
.migration-notice,
.catalog-rule {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    border-radius: 15px;
}

.migration-notice {
    margin-bottom: 18px;
    border: 1px solid #efd39e;
    background: var(--warning-soft);
}

.migration-notice > span,
.catalog-rule > span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    font-weight: 800;
}

.migration-notice > span {
    color: var(--warning);
    background: #fff;
}

.migration-notice strong,
.migration-notice p,
.catalog-rule strong,
.catalog-rule p {
    display: block;
}

.migration-notice p,
.catalog-rule p {
    margin: 2px 0 0;
    color: var(--ink-soft);
    font-size: 10px;
}

.catalog-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
}

.catalog-metrics article {
    min-height: 112px;
    padding: 20px;
}

.catalog-metrics article:not(:last-child) {
    border-right: 1px solid var(--line);
}

.catalog-metrics span,
.catalog-metrics strong,
.catalog-metrics p {
    display: block;
}

.catalog-metrics span {
    color: var(--ink-faint);
    font-size: 10px;
}

.catalog-metrics strong {
    margin-top: 5px;
    font-family: "Manrope", sans-serif;
    font-size: 27px;
}

.catalog-metrics p {
    margin: 0;
    color: var(--ink-faint);
    font-size: 9px;
}

.catalog-panel {
    overflow: hidden;
}

.catalog-list {
    overflow-x: auto;
    border-top: 1px solid var(--line);
}

.catalog-row {
    display: grid;
    grid-template-columns: minmax(230px, 1.4fr) minmax(140px, 1fr) 110px 60px 105px 36px;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    padding: 10px 22px;
    border-bottom: 1px solid var(--line);
}

.catalog-row:last-child {
    border-bottom: 0;
}

.catalog-row-heading {
    min-height: 42px;
    color: var(--ink-faint);
    background: var(--surface-soft);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.catalog-row > code {
    overflow: hidden;
    color: var(--forest-2);
    font-size: 10px;
    text-overflow: ellipsis;
}

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

.catalog-name strong,
.catalog-name small {
    display: block;
}

.catalog-name strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-name small {
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 8px;
}

.catalog-symbol {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    color: var(--forest);
    background: var(--green-soft);
    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 800;
}

.catalog-row.is-inactive {
    opacity: .58;
}

.catalog-rule {
    margin-top: 16px;
    border: 1px solid #d7e0d9;
    background: #eef3ef;
}

.catalog-rule > span {
    color: var(--forest-2);
    background: #fff;
}

.amenity-dialog {
    max-width: 640px;
}

.amenity-dialog input[readonly] {
    color: var(--ink-faint);
    background: var(--surface-soft);
}

/* Project creation */
.creation-heading {
    align-items: flex-end;
}

.creation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    align-items: start;
    gap: 22px;
}

.creation-form {
    display: grid;
    gap: 17px;
}

.creation-intro {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 17px 20px;
    border: 1px solid #d9e5bd;
    border-radius: 17px;
    background: #f7fbe9;
}

.creation-intro__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    color: var(--forest);
    background: var(--lime);
    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 800;
}

.creation-intro strong,
.creation-intro p {
    display: block;
}

.creation-intro p {
    margin: 2px 0 0;
    color: var(--ink-soft);
    font-size: 11px;
}

.creation-section {
    border-radius: 19px;
}

.creation-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 21px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
}

.creation-actions strong,
.creation-actions span {
    display: block;
}

.creation-actions strong {
    font-size: 12px;
}

.creation-actions > div > span {
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 10px;
}

.creation-actions .button span {
    font-size: 15px;
}

.creation-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 15px;
}

.creation-guide,
.privacy-note {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: var(--surface);
}

.creation-guide h2 {
    margin-bottom: 20px;
    font-size: 19px;
}

.creation-guide ol {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.creation-guide li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 58px;
    color: var(--ink-faint);
}

.creation-guide li:not(:last-child)::after {
    position: absolute;
    top: 40px;
    bottom: -4px;
    left: 15px;
    width: 1px;
    background: var(--line-dark);
    content: "";
}

.creation-guide li > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    background: var(--surface);
    font-family: "Manrope", sans-serif;
    font-size: 9px;
    font-weight: 800;
}

.creation-guide li strong,
.creation-guide li small {
    display: block;
}

.creation-guide li strong {
    color: var(--ink-soft);
    font-size: 11px;
}

.creation-guide li small {
    margin-top: 2px;
    font-size: 9px;
}

.creation-guide li.is-current > span {
    border-color: var(--lime);
    color: var(--forest);
    background: var(--lime);
}

.creation-guide li.is-current strong {
    color: var(--forest);
}

.privacy-note {
    display: flex;
    gap: 12px;
    background: var(--forest);
}

.privacy-note > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    color: var(--forest);
    background: var(--lime);
    font-weight: 800;
}

.privacy-note strong {
    color: #fff;
    font-size: 11px;
}

.privacy-note p {
    margin: 4px 0 0;
    color: rgba(255,255,255,.56);
    font-size: 9px;
}

/* Authentication */
.auth-body {
    min-height: 100vh;
    background: var(--paper);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, .9fr) minmax(480px, 1.1fr);
}

.auth-story {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    padding: 45px clamp(38px, 6vw, 85px);
    overflow: hidden;
    color: #fff;
    background: var(--forest);
}

.auth-story::before,
.auth-story::after {
    position: absolute;
    border: 1px solid rgba(200,240,107,.18);
    border-radius: 50%;
    content: "";
}

.auth-story::before {
    right: -180px;
    bottom: -120px;
    width: 520px;
    height: 520px;
}

.auth-story::after {
    right: -60px;
    bottom: 0;
    width: 270px;
    height: 270px;
    background: rgba(200,240,107,.035);
}

.auth-brand {
    position: relative;
    z-index: 1;
    width: fit-content;
}

.auth-story__content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: auto 0;
}

.auth-story__content .eyebrow {
    color: var(--lime);
}

.auth-story__content h1 {
    margin-bottom: 23px;
    font-size: clamp(42px, 5vw, 70px);
    line-height: .98;
    letter-spacing: -.06em;
}

.auth-story__content > p:last-child {
    max-width: 450px;
    color: rgba(255,255,255,.58);
    font-size: 16px;
}

.auth-signal {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.55);
    font-size: 10px;
}

.auth-signal i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 4px rgba(200,240,107,.1);
}

.auth-panel {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 40px;
}

.login-card {
    width: min(100%, 430px);
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-heading {
    margin-bottom: 27px;
}

.login-heading h2 {
    margin: 0 0 6px;
    font-size: 30px;
    letter-spacing: -.045em;
}

.login-heading > p:last-child {
    margin: 0;
    color: var(--ink-faint);
    font-size: 12px;
}

.auth-mobile-mark {
    display: none;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 18px;
    padding: 11px 12px;
    border: 1px solid #e6b8b8;
    border-radius: 11px;
    color: var(--danger);
    background: var(--danger-soft);
}

.login-alert-info {
    color: var(--warning);
    border-color: #e2c887;
    background: var(--warning-soft);
}

.login-alert span {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 6px;
    background: rgba(255,255,255,.6);
    font-size: 9px;
    font-weight: 800;
}

.login-alert p {
    margin: 1px 0 0;
    font-size: 10px;
}

.auth-field {
    display: grid;
    gap: 7px;
    margin-bottom: 17px;
}

.auth-field > span {
    font-size: 10px;
    font-weight: 700;
}

.auth-field > input,
.password-field {
    height: 47px;
    border: 1px solid var(--line-dark);
    border-radius: 11px;
    background: #fff;
}

.auth-field > input {
    width: 100%;
    padding: 0 13px;
    outline: 0;
}

.auth-field > input:focus,
.password-field:focus-within {
    border-color: var(--forest-2);
    box-shadow: 0 0 0 3px rgba(33,89,71,.08);
}

.password-field {
    display: flex;
    overflow: hidden;
}

.password-field input {
    min-width: 0;
    flex: 1;
    padding: 0 13px;
    border: 0;
    outline: 0;
    background: transparent;
}

.password-field button {
    padding: 0 13px;
    border: 0;
    color: var(--forest-2);
    background: transparent;
    font-size: 9px;
    font-weight: 800;
}

.auth-submit {
    margin-top: 7px;
    min-height: 48px;
}

.auth-help {
    margin: 16px 0 0;
    color: var(--ink-faint);
    font-size: 9px;
    text-align: center;
}

.setup-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 25px;
}

.setup-card {
    width: min(100%, 530px);
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.setup-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 16px;
    color: var(--warning);
    background: var(--warning-soft);
    font-size: 19px;
    font-weight: 800;
}

.setup-card h1 {
    margin-bottom: 9px;
    font-size: 28px;
}

.setup-card > p {
    color: var(--ink-soft);
}

.setup-card .setup-note {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 10px;
}

@media (max-width: 1180px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .editor-layout { grid-template-columns: 150px minmax(0, 1fr); }
    .quality-panel { position: static; grid-column: 2; }
    .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-span-4 { grid-column: 1 / -1; }
    .price-overview { grid-template-columns: repeat(2, 1fr); }
    .price-overview article:nth-child(2) { border-right: 0; }
    .price-overview article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .publish-layout { grid-template-columns: minmax(0, 1fr) 270px; }
    .change-row { grid-template-columns: 29px 1fr 1fr; }
    .change-arrow { display: none; }
    .new-value { grid-column: 3; }
    .delivery-row { grid-template-columns: 29px 1fr auto auto; }
    .delivery-row > div:nth-child(3) { display: none; }
    .creation-layout { grid-template-columns: minmax(0, 1fr) 250px; }
}

@media (max-width: 900px) {
    :root { --sidebar-width: 250px; }
    .sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: 18px 0 50px rgba(7,26,20,.2); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-close,
    .menu-button { display: inline-grid !important; }
    .main-area { margin-left: 0; }
    .sidebar-scrim { position: fixed; z-index: 35; inset: 0; background: rgba(10,25,20,.42); }
    body.sidebar-open .sidebar-scrim { display: block; }
    .topbar-label { display: none; }
    .menu-button { margin-right: 10px; border: 1px solid var(--line-dark); }
    .content-grid-main { grid-template-columns: 1fr; }
    .editor-layout { grid-template-columns: 1fr; }
    .section-nav { position: static; display: flex; overflow-x: auto; padding-bottom: 4px; }
    .section-nav a { flex: 0 0 auto; border-left: 0; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; }
    .section-nav a:hover,
    .section-nav a.is-active { border-left: 0; border-bottom-color: var(--forest-2); }
    .quality-panel { grid-column: auto; }
    .publish-layout { grid-template-columns: 1fr; }
    .publish-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .publish-card { grid-row: span 2; }
    .auth-shell { grid-template-columns: minmax(330px, .8fr) minmax(400px, 1.2fr); }
    .auth-story { padding: 38px; }
    .auth-panel { padding: 25px; }
    .creation-layout { grid-template-columns: 1fr; }
    .creation-sidebar { position: static; grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 680px) {
    .topbar { min-height: 64px; padding: 9px 14px; }
    .topbar .button-ghost,
    .topbar .button-dark { display: none; }
    .project-switcher select { max-width: 135px; }
    .page-wrap { padding: 28px 15px 55px; }
    .page-heading-split { align-items: flex-start; flex-direction: column; gap: 17px; }
    .page-heading h1 { font-size: 32px; }
    .heading-meta { padding: 0; border-left: 0; }
    .heading-actions { width: 100%; justify-content: flex-start; }
    .heading-actions .button { flex: 1; }
    .project-hero { align-items: flex-start; flex-wrap: wrap; gap: 17px; padding: 20px; }
    .project-hero__identity { width: 100%; flex-basis: 100%; }
    .project-wordmark { width: 54px; height: 54px; border-radius: 15px; }
    .circle-link { position: absolute; right: 18px; bottom: 18px; }
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 118px; }
    .inventory-summary { grid-template-columns: 1fr; justify-items: center; }
    .legend-list { width: 100%; }
    .compact-row { grid-template-columns: 36px 1fr auto; padding-inline: 17px; }
    .row-price { display: none; }
    .panel-heading { padding-inline: 18px; }
    .inline-metrics { align-items: stretch; overflow-x: auto; }
    .inline-metrics > div { min-width: 135px; }
    .table-toolbar { align-items: stretch; flex-direction: column; }
    .search-field { width: 100%; }
    .filter-row { overflow-x: auto; }
    .form-section { padding: 18px; }
    .form-section__heading { align-items: flex-start; flex-direction: column; }
    .form-section__heading > p { margin-left: 39px; }
    .form-grid { grid-template-columns: 1fr; }
    .field-span-2,
    .field-span-4 { grid-column: auto; }
    .permission-card { align-items: flex-start; flex-wrap: wrap; }
    .permission-card .button { margin-left: 54px; }
    .construction-card { align-items: flex-start; }
    .construction-card .progress-number { display: none; }
    .price-overview { grid-template-columns: 1fr 1fr; }
    .price-overview article { min-height: 110px; padding: 17px; }
    .price-overview strong { font-size: 20px; }
    .plan-grid { grid-template-columns: 1fr; }
    .price-list-row { grid-template-columns: 40px 1fr auto; padding-inline: 16px; }
    .price-list-row > div:nth-child(4) { display: none; }
    .readiness-card { grid-template-columns: 48px 1fr; }
    .readiness-icon { width: 48px; height: 48px; }
    .readiness-score { display: none; }
    .change-row { grid-template-columns: 27px 1fr; }
    .change-value { grid-column: 2; }
    .delivery-row { grid-template-columns: 29px 1fr auto; }
    .delivery-row code { display: none; }
    .delivery-row .status { grid-column: 2; }
    .publish-sidebar { grid-template-columns: 1fr; }
    .publish-card { grid-row: auto; }
    .flash { top: 74px; right: 12px; left: 12px; }
    .unit-form { padding: 18px; }
    .unit-form-grid { grid-template-columns: 1fr 1fr; }
    .auth-shell { display: block; }
    .auth-story { display: none; }
    .auth-panel { min-height: 100vh; padding: 18px; }
    .login-card { padding: 28px 22px; border-radius: 22px; }
    .auth-mobile-mark { display: grid; width: 42px; height: 42px; margin-bottom: 23px; place-items: center; border-radius: 12px; color: var(--forest); background: var(--lime); font-family: "Manrope", sans-serif; font-weight: 800; }
    .creation-intro { grid-template-columns: 42px 1fr; padding: 15px; }
    .creation-intro .status { grid-column: 2; justify-self: start; }
    .creation-actions { align-items: stretch; flex-direction: column; }
    .creation-actions .button { width: 100%; }
    .creation-sidebar { grid-template-columns: 1fr; }
    .map-tools { align-items: stretch; flex-direction: column; }
    .map-tools .button { width: 100%; }
    .amenity-selector { grid-template-columns: 1fr; }
    .catalog-metrics { grid-template-columns: 1fr 1fr; }
    .catalog-metrics article:nth-child(2) { border-right: 0; }
    .catalog-metrics article:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
    .catalog-row { min-width: 760px; }
}

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