:root {
    --ie-border: #d7ddd9;
    --ie-border-strong: #c4cec9;
    --ie-bg: #f1f3f0;
    --ie-surface: #ffffff;
    --ie-surface-soft: #f7f8f6;
    --ie-ink: #24312e;
    --ie-muted: #697570;
    --ie-accent: #24584d;
    --ie-accent-deep: #173c34;
    --ie-accent-soft: #e7f0ed;
    --ie-material: #a86442;
    --ie-material-soft: #f5ece6;
    --ie-drawing: #3b5265;
    --ie-sidebar: #172b26;
    --ie-sidebar-line: rgba(255, 255, 255, .1);
    --ie-shadow: 0 12px 30px rgba(30, 48, 42, .07);
}

html { scrollbar-color: #9eaaa5 transparent; }

body {
    background: var(--ie-bg);
    color: var(--ie-ink);
    font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
    font-size: .94rem;
}

body::selection { color: #fff; background: var(--ie-accent); }

.navbar {
    min-height: 64px;
    border-bottom: 1px solid var(--ie-border);
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: none;
}

.navbar-brand { color: var(--ie-accent-deep); }

.brand-logo-icon {
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(36, 88, 77, .16);
    border-radius: 6px;
    background: #fff;
}

.brand-wordmark { display: grid; line-height: 1.05; }
.brand-wordmark > span { font-size: 1rem; font-weight: 800; }
.brand-wordmark > small {
    margin-top: .22rem;
    color: var(--ie-muted);
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
}

.has-app-sidebar .app-action-sidebar {
    background: var(--ie-sidebar) !important;
    color: #fff;
}

.app-action-sidebar .offcanvas-header {
    min-height: 72px;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--ie-sidebar-line) !important;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
}

.sidebar-brand-copy { min-width: 0; }
.sidebar-brand-copy strong { display: block; color: #fff; font-size: .95rem; }
.sidebar-brand-copy small {
    display: block;
    margin-top: .15rem;
    color: rgba(255, 255, 255, .55);
    font-size: .72rem;
}

.app-action-sidebar .btn-close {
    filter: invert(1) grayscale(1);
    opacity: .76;
}

.app-action-sidebar .offcanvas-body { padding: .9rem; }

.sidebar-action-heading {
    margin: 1.25rem 0 .45rem;
    padding: 0 .55rem;
    color: rgba(255, 255, 255, .48);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sidebar-action-group { gap: .25rem; }

.sidebar-action-group .btn {
    min-height: 42px;
    padding: .55rem .65rem;
    border-color: transparent !important;
    border-radius: 6px;
    color: rgba(255, 255, 255, .76) !important;
    background: transparent !important;
    font-weight: 600;
    box-shadow: none !important;
}

.sidebar-action-group .btn:hover,
.sidebar-action-group .btn:focus-visible {
    color: #fff !important;
    background: rgba(255, 255, 255, .09) !important;
}

.sidebar-action-group .btn i {
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 5px;
    color: #b9d0c9;
    background: rgba(255, 255, 255, .07);
}

.sidebar-action-group .btn.btn-outline-danger i { color: #e4b8aa; }

.page-section,
.stat-card,
.admin-main .panel {
    border-color: var(--ie-border);
    border-radius: 7px;
    background: var(--ie-surface);
    box-shadow: 0 1px 0 rgba(25, 47, 40, .02);
}

.page-section { overflow: hidden; }

.project-summary-strip {
    position: relative;
    padding: .9rem 1rem .9rem 1.15rem;
    border-left: 4px solid var(--ie-material);
    box-shadow: var(--ie-shadow);
}

.project-summary-title { color: var(--ie-accent-deep); font-size: 1.12rem; }

.project-summary-strip .badge {
    border: 1px solid #cbd9d4;
    color: var(--ie-accent-deep) !important;
    background: var(--ie-accent-soft) !important;
}

.project-meta-cards {
    grid-template-columns: repeat(5, minmax(105px, 1fr));
    gap: .4rem;
}

.project-meta-card {
    border: 0;
    border-left: 1px solid var(--ie-border);
    border-radius: 0;
    background: transparent;
    padding: .3rem .7rem;
}

.project-meta-card .label { color: var(--ie-muted); font-size: .66rem; font-weight: 700; }
.project-meta-card .value {
    margin-top: .18rem;
    color: var(--ie-ink);
    font-size: .82rem;
}

#projectMenu {
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--ie-border);
}

#projectMenu .btn {
    position: relative;
    min-height: 43px;
    padding: .55rem .9rem;
    border: 0 !important;
    border-radius: 0;
    color: var(--ie-muted);
    background: transparent;
    font-weight: 700;
    box-shadow: none;
}

#projectMenu .btn:hover {
    color: var(--ie-accent);
    background: var(--ie-surface-soft);
}

#projectMenu .btn.btn-success {
    color: var(--ie-accent-deep);
    background: var(--ie-accent-soft);
}

#projectMenu .btn.btn-success::after {
    content: "";
    position: absolute;
    right: .8rem;
    bottom: 0;
    left: .8rem;
    height: 3px;
    background: var(--ie-accent);
}

#projectMenu .btn i { margin-right: .25rem; }

.project-menu-actions {
    gap: .4rem;
    margin: 0;
    padding: .75rem .2rem .05rem;
    border-top: 0;
}

.project-menu-actions .btn {
    min-height: 36px;
    border-color: var(--ie-border-strong);
    border-radius: 5px;
    color: #40514c;
    background: #fff;
    font-weight: 650;
}

.project-menu-actions .btn:hover {
    border-color: #aebcb7;
    color: var(--ie-accent-deep);
    background: var(--ie-surface-soft);
}

.project-menu-actions .btn.btn-warning {
    border-color: #dfc0aa;
    color: #75432b;
    background: var(--ie-material-soft);
}

.stat-card {
    position: relative;
    min-height: 106px;
    padding-left: 1.1rem !important;
    overflow: hidden;
}

.stat-card::before,
.admin-main .metric::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--ie-accent);
}

.stat-label,
.admin-main .metric-label {
    color: var(--ie-muted);
    font-size: .76rem;
    font-weight: 700;
}

.stat-value,
.admin-main .metric-value {
    margin-top: .35rem;
    color: var(--ie-accent-deep);
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
}

.has-app-sidebar h1,
.has-app-sidebar h2,
.has-app-sidebar h3,
.admin-main h1,
.admin-main h2,
.admin-main h3 { color: var(--ie-ink); }

.page-section h2.h5,
.page-section h3.h5 {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .96rem;
}

.page-section h2.h5::before,
.page-section h3.h5::before {
    content: "";
    width: 3px;
    height: 1rem;
    border-radius: 2px;
    background: var(--ie-material);
}

.table-responsive {
    scrollbar-color: #b0bbb6 #f1f3f0;
    scrollbar-width: thin;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: #f5f8f6;
    color: var(--ie-ink);
    font-size: .86rem;
}

.table > :not(caption) > * > * {
    padding: .62rem .7rem;
    border-bottom-color: #e4e8e5;
}

.table th {
    color: #53635e;
    background: #f2f5f3;
    font-size: .74rem;
    font-weight: 800;
}

.table tbody tr:last-child td { border-bottom: 0; }
.table .form-control,
.table .form-select { min-width: 84px; font-size: .82rem; }

.space-tabs,
.module-tabs,
.record-type-tabs {
    gap: .35rem;
    padding: .15rem 0 .45rem;
    scrollbar-width: thin;
}

.space-tabs .btn,
.module-tabs .btn,
.record-type-tabs .btn {
    min-height: 34px;
    border-color: var(--ie-border-strong);
    border-radius: 5px;
    color: #53635e;
    background: #fff;
    font-weight: 650;
}

.space-tabs .btn.btn-success,
.module-tabs .btn.btn-success,
.record-type-tabs .btn.btn-success,
.space-tabs .btn.btn-primary,
.module-tabs .btn.btn-primary,
.record-type-tabs .btn.btn-primary {
    border-color: var(--ie-accent);
    color: #fff;
    background: var(--ie-accent);
}

.form-label {
    margin-bottom: .38rem;
    color: #46554f;
    font-size: .8rem;
    font-weight: 750;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 40px;
    border-color: var(--ie-border-strong);
    border-radius: 5px;
    color: var(--ie-ink);
    background-color: #fff;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #6f978e;
    box-shadow: 0 0 0 .2rem rgba(36, 88, 77, .12);
}

.form-check-input:checked {
    border-color: var(--ie-accent);
    background-color: var(--ie-accent);
}

.btn { border-radius: 5px; font-weight: 650; }

.btn-success,
.btn-primary {
    border-color: var(--ie-accent);
    background: var(--ie-accent);
}

.btn-success:hover,
.btn-primary:hover {
    border-color: var(--ie-accent-deep);
    background: var(--ie-accent-deep);
}

.btn-outline-primary,
.btn-outline-success {
    border-color: #8ea9a1;
    color: var(--ie-accent);
}

.btn-outline-primary:hover,
.btn-outline-success:hover {
    border-color: var(--ie-accent);
    color: #fff;
    background: var(--ie-accent);
}

.badge { border-radius: 4px; font-weight: 700; }

.modal-content {
    border: 1px solid var(--ie-border);
    border-radius: 7px;
    box-shadow: 0 24px 70px rgba(20, 36, 31, .2);
}

.modal-header {
    border-bottom-color: var(--ie-border);
    background: var(--ie-surface-soft);
}

.modal-footer {
    border-top-color: var(--ie-border);
    background: #fbfcfb;
}

.alert { border-radius: 6px; }

.gantt-wrap,
.gantt-timeline,
.drawing-preview,
.pdf-preview,
.panorama-preview,
.panorama-image-viewer {
    border-color: var(--ie-border);
    border-radius: 6px;
}

.gantt-task-meta,
.gantt-scale { background: var(--ie-surface-soft); }

.gantt-bar,
.gantt-progress > span { background: var(--ie-accent); }

.site-footer {
    border-top-color: var(--ie-border);
    background: #f8f9f7;
}

.site-footer-security { color: var(--ie-accent); }

/* Space-to-drawing positioning */
.space-plan-panel {
    overflow: hidden;
    border: 1px solid var(--ie-border);
    border-radius: 6px;
    background: #f7f8f6;
}

.space-plan-toolbar,
.space-plan-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .75rem .85rem;
}

.space-plan-toolbar { border-bottom: 1px solid var(--ie-border); }
.space-plan-footer { border-top: 1px solid var(--ie-border); }

.space-plan-heading { min-width: 170px; }

.space-plan-source {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    min-width: 0;
}

.space-plan-source .form-select {
    width: min(320px, 32vw);
    min-width: 160px;
}

.space-plan-page-label {
    display: flex;
    align-items: center;
    gap: .25rem;
    color: var(--ie-muted);
    font-size: .78rem;
    white-space: nowrap;
}

.space-plan-page-label .form-control { width: 68px; }

.space-plan-stage {
    position: relative;
    width: 100%;
    min-height: 180px;
    overflow: hidden;
    background: #dfe3df;
}

.space-plan-stage.is-marking {
    cursor: crosshair;
    touch-action: none;
    box-shadow: inset 0 0 0 3px rgba(39, 101, 86, .45);
}

.space-plan-stage.is-polygon-editing {
    cursor: crosshair;
    touch-action: none;
    box-shadow: inset 0 0 0 3px rgba(39, 101, 86, .45);
}

.space-plan-stage.is-saving { cursor: wait; }
.space-plan-stage:has(.space-plan-image),
.space-plan-stage:has(.space-ai-source-pdf canvas) { min-height: 0; }

.space-plan-image,
.space-plan-stage .space-ai-source-pdf,
.space-plan-stage .space-ai-source-pdf canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: none;
    border: 0;
    border-radius: 0;
}

.space-plan-stage .space-ai-source-pdf {
    min-height: 180px;
    padding: 0;
}

.space-plan-stage .space-ai-source-pdf:has(canvas) { min-height: 0; }

.space-plan-stage .pdf-preview-status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.space-plan-highlight,
.space-plan-draft {
    position: absolute;
    z-index: 4;
    min-width: 2px;
    min-height: 2px;
    border: 3px solid #dc3545;
    background: rgba(220, 53, 69, .16);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .88), 0 8px 22px rgba(74, 22, 27, .22);
    pointer-events: none;
}

.space-plan-highlight { animation: space-plan-focus .7s ease-out; }
.space-plan-highlight.is-muted { opacity: .3; }

.space-plan-highlight span {
    position: absolute;
    top: 4px;
    left: 4px;
    max-width: calc(100% - 8px);
    overflow: hidden;
    padding: .2rem .4rem;
    color: #fff;
    background: #b82d3b;
    border-radius: 3px;
    font-size: .74rem;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.space-plan-draft {
    z-index: 5;
    border-color: #146c5a;
    background: rgba(20, 108, 90, .18);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}

.space-plan-polygon-overlay,
.space-plan-polygon-draft,
.space-plan-polygon-nodes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.space-plan-polygon-overlay { z-index: 4; animation: space-plan-focus .7s ease-out; }
.space-plan-polygon-overlay.is-muted { opacity: .3; }
.space-plan-polygon-overlay polygon {
    fill: rgba(220, 53, 69, .16);
    stroke: #dc3545;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.space-plan-polygon-label {
    position: absolute;
    z-index: 6;
    max-width: 45%;
    overflow: hidden;
    transform: translate(4px, 4px);
    padding: .2rem .4rem;
    color: #fff;
    background: #b82d3b;
    border-radius: 3px;
    font-size: .74rem;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

.space-plan-polygon-draft { z-index: 5; }
.space-plan-polygon-draft polygon,
.space-plan-polygon-draft polyline {
    fill: rgba(20, 108, 90, .2);
    stroke: #146c5a;
    stroke-width: 3;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.space-plan-polygon-draft polyline { fill: none; }

.space-plan-polygon-nodes { z-index: 7; }
.space-plan-node,
.space-plan-midpoint {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: auto;
    touch-action: none;
}

.space-plan-node {
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    background: #146c5a;
    box-shadow: 0 0 0 2px #0b493d, 0 2px 7px rgba(0, 0, 0, .28);
    cursor: grab;
}
.space-plan-node:active { cursor: grabbing; }
.space-plan-node.is-selected { background: #ffc107; box-shadow: 0 0 0 3px #765900, 0 2px 7px rgba(0, 0, 0, .28); }
.space-plan-node.is-first::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.space-plan-midpoint {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid #146c5a;
    color: #146c5a;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    font-size: 12px;
    cursor: pointer;
}
.space-plan-midpoint:hover { color: #fff; background: #146c5a; }

@keyframes space-plan-focus {
    0% { opacity: 0; transform: scale(.96); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 767.98px) {
    .space-plan-toolbar,
    .space-plan-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .space-plan-source { justify-content: stretch; }
    .space-plan-source .form-select { width: 100%; min-width: 0; }
    .space-plan-footer .d-flex { width: 100%; }
    .space-plan-footer .btn { flex: 1 1 auto; }
    .space-plan-node { width: 28px; height: 28px; }
    .space-plan-midpoint { width: 24px; height: 24px; }
}

/* Management center */
.admin-sidebar {
    width: min(88vw, 276px);
    background: var(--ie-sidebar);
}

.admin-sidebar .offcanvas-header {
    min-height: 72px;
    padding: .9rem 1rem;
}

.admin-sidebar .nav-link {
    position: relative;
    min-height: 43px;
    padding: .58rem .7rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, .68);
    font-weight: 650;
}

.admin-sidebar .nav-link i {
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 5px;
    color: #b9d0c9;
    background: rgba(255, 255, 255, .07);
}

.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.admin-sidebar .nav-link.active::before {
    content: "";
    position: absolute;
    inset: .5rem auto .5rem -.9rem;
    width: 3px;
    background: #cf8c63;
}

.admin-topbar {
    min-height: 64px;
    border-bottom-color: var(--ie-border);
    background: rgba(255, 255, 255, .96);
    box-shadow: none;
}

.admin-main { padding-top: 1.4rem !important; }

.admin-main .admin-section > .d-flex:first-child {
    margin-bottom: 1rem !important;
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--ie-border);
}

.admin-main .admin-section > .d-flex:first-child h2 {
    color: var(--ie-accent-deep);
    font-size: 1.35rem;
}

.admin-main .panel { box-shadow: var(--ie-shadow); }

.admin-main .metric {
    position: relative;
    min-height: 104px;
    overflow: hidden;
}

.admin-main .vstack > .border.rounded {
    border-color: var(--ie-border) !important;
    border-radius: 6px !important;
    background: var(--ie-surface-soft);
}

@media (min-width: 992px) {
    .has-app-sidebar .app-action-sidebar { width: 264px; }
    .has-app-sidebar > .navbar,
    .has-app-sidebar > main,
    .has-app-sidebar > .site-footer {
        margin-left: 264px;
        width: calc(100% - 264px);
        max-width: calc(100vw - 264px);
    }

    .admin-sidebar { width: 276px; }
    .admin-main,
    .admin-topbar {
        margin-left: 276px;
        width: calc(100% - 276px);
        max-width: calc(100vw - 276px);
    }
}

@media (max-width: 991.98px) {
    .navbar { min-height: 58px; }
    .app-action-sidebar { width: min(88vw, 320px); }
    .project-meta-cards {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .project-meta-card:first-child { border-left: 0; }
}

@media (max-width: 767.98px) {
    body { font-size: .9rem; }

    .has-app-sidebar > main.container-fluid { padding: .85rem !important; }

    .project-summary-strip { padding: .8rem; }
    .project-summary-strip > .d-flex { align-items: flex-start !important; }

    .project-meta-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        border-top: 1px solid var(--ie-border);
        padding-top: .45rem;
    }

    .project-meta-card {
        border-left: 0;
        padding: .4rem .5rem;
    }

    #projectMenu .btn {
        min-height: 40px;
        padding-inline: .75rem;
    }

    .project-menu-actions { padding-top: .65rem; }
    .project-menu-actions .btn { flex: 0 0 auto; }
    .page-section > .d-flex:first-child { align-items: flex-start !important; }
    .table > :not(caption) > * > * { padding: .55rem .6rem; }

    .admin-main { padding: .9rem !important; }
    .admin-main .admin-section > .d-flex:first-child { align-items: flex-start !important; }
}

@media (max-width: 575.98px) {
    .brand-wordmark > small { display: none; }
    .project-meta-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .toolbar .btn { width: auto; }
    .stat-card { min-height: 90px; }
    .admin-topbar .btn span { display: none; }
}

@media print {
    .app-action-sidebar,
    .admin-sidebar,
    .admin-topbar { display: none !important; }
}



/* Official website - interior design studio presentation */
.official-site {
    background: #eeefeb;
    color: #26312e;
}

.official-site .navbar {
    min-height: 68px;
    background: rgba(250, 251, 248, .97) !important;
}

.official-site .navbar .container-fluid {
    width: 100%;
    max-width: 1260px;
    margin-inline: auto;
}

.official-site .navbar-brand {
    color: #173c34;
}

.official-site .official-nav-links {
    gap: 1.4rem;
}

.official-site .official-nav-links > a:not(.btn) {
    position: relative;
    padding-block: .65rem;
    color: #4e5b56;
    font-size: .84rem;
    font-weight: 700;
}

.official-site .official-nav-links > a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: .35rem;
    left: 0;
    height: 2px;
    background: #a86442;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.official-site .official-nav-links > a:not(.btn):hover::after {
    transform: scaleX(1);
}

.official-mobile-entry {
    min-height: 36px;
    padding-inline: .85rem;
}

.official-page {
    background: #eeefeb;
}

.official-hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - 116px);
    align-items: center;
    background-color: #18312b;
    background-image: url("interiorflow-dashboard.png");
    background-size: cover;
    background-position: center 34%;
}

.official-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(13, 28, 24, .78);
}

.official-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, .28);
}

.official-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1260px;
    padding: 5.8rem 1.25rem 4.7rem;
}

.official-eyebrow {
    margin-bottom: 1.2rem;
    color: #c6ded6;
    font-size: .76rem;
    font-weight: 800;
}

.official-eyebrow i {
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 4px;
    color: #e3b28f;
}

.official-title {
    max-width: 850px;
    margin-bottom: .8rem;
    color: #fff;
    font-size: 4.6rem;
    line-height: .98;
    font-weight: 800;
    letter-spacing: 0;
}

.official-hero-lead {
    max-width: 760px;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.55rem;
    line-height: 1.45;
    font-weight: 650;
}

.official-subtitle {
    max-width: 680px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 1rem;
    line-height: 1.8;
}

.official-hero-actions {
    gap: .65rem;
    margin-top: 1.8rem;
}

.official-hero-actions .btn {
    min-height: 46px;
    border-radius: 5px;
    font-size: .9rem;
}

.official-hero-actions .btn-light {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.official-hero-actions .btn-light:hover {
    border-color: #fff;
    color: #173c34;
    background: #fff;
}

.official-hero-metrics {
    max-width: 880px;
    gap: 0;
    margin-top: 2.4rem;
    border-top: 1px solid rgba(255, 255, 255, .22);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.official-metric {
    min-height: 78px;
    padding: 1rem 1.15rem;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .18);
    border-radius: 0;
    background: transparent;
}

.official-metric:last-child {
    border-right: 0;
}

.official-metric .value {
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
}

.official-metric .label {
    margin-top: .22rem;
    color: rgba(255, 255, 255, .58);
    font-size: .72rem;
}

.official-section {
    padding: 5.2rem 0;
}

.official-section-tight {
    padding: 3.8rem 0;
}

.official-section-title {
    max-width: 820px;
    margin-bottom: 2.5rem;
}

.official-section-kicker {
    margin-bottom: .65rem;
    color: #a05f3e;
    font-size: .7rem;
    font-weight: 850;
}

.official-section-kicker.is-light {
    color: #d8a17e;
}

.official-section-title h2 {
    margin-bottom: .9rem;
    color: #1d332d;
    font-size: 2.15rem;
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: 0;
}

.official-section-title p {
    max-width: 720px;
    color: #66716d;
    font-size: .96rem;
    line-height: 1.8;
}

.official-features-section {
    background: #eeefeb;
}

.official-features-section .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.official-feature-card {
    position: relative;
    min-height: 210px;
    padding: 1.45rem;
    border-color: #d5dad5;
    border-radius: 7px;
    background: #f9faf7;
    box-shadow: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.official-feature-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 1.45rem;
    width: 42px;
    height: 3px;
    background: #a86442;
}

.official-feature-card:hover {
    border-color: #bfc9c3;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(25, 45, 38, .08);
}

.official-feature-card > i {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid #cbd8d3;
    border-radius: 5px;
    color: #24584d;
    background: #e9f0ed;
    font-size: 1.15rem;
}

.official-feature-card h3 {
    margin: 1rem 0 .55rem;
    color: #24312e;
    font-size: 1rem;
    font-weight: 800;
}

.official-feature-card p {
    color: #68736f;
    font-size: .86rem;
    line-height: 1.75;
}

.official-entry-band {
    position: relative;
    border-top: 1px solid #2b463f;
    border-bottom: 1px solid #2b463f;
    background: #172d27;
}

.official-entry-band .container {
    max-width: 1180px;
}

.official-entry-band .official-section-title h2 {
    color: #fff;
}

.official-entry-band .official-section-title p {
    color: rgba(255, 255, 255, .6) !important;
}

.official-entry-card {
    padding: 1.6rem;
    border-color: rgba(255, 255, 255, .12);
    border-radius: 7px;
    background: #fbfcfa;
    box-shadow: 0 20px 50px rgba(5, 18, 14, .24);
}

.official-entry-card h3 {
    color: #1d332d;
}

.official-entry-card .btn-lg {
    min-height: 50px;
    border-radius: 5px;
    font-size: .94rem;
}

.official-pricing-section {
    background: #fafbf8;
}

.official-pricing-section .row {
    --bs-gutter-x: .9rem;
    --bs-gutter-y: .9rem;
}

.official-price-card {
    position: relative;
    padding: 1.55rem 1.4rem;
    border-color: #d5dad5;
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
}

.official-price-card::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 1.4rem;
    left: 1.4rem;
    height: 2px;
    background: #c7d0cc;
}

.official-price-card.featured {
    border-color: #94ada5;
    background: #f5f8f6;
    box-shadow: 0 16px 36px rgba(30, 66, 56, .1);
}

.official-price-card.featured::before {
    height: 3px;
    background: #24584d;
}

.official-price-name {
    color: #26332f;
    font-size: .96rem;
    font-weight: 800;
}

.official-price {
    margin: .75rem 0 .4rem;
    color: #24584d;
    font-size: 1.75rem;
    font-weight: 850;
}

.official-price-card p {
    min-height: 48px;
    color: #727c78 !important;
    font-size: .82rem;
    line-height: 1.6;
}

.official-price-card ul {
    display: grid;
    gap: .38rem;
    padding-left: 1.05rem;
    margin-top: 1rem;
}

.official-price-card li {
    color: #626e69;
    font-size: .79rem;
    line-height: 1.55;
}

.official-plan-label {
    border-color: #bfd0ca;
    border-radius: 4px;
    color: #24584d;
    background: #e7efec;
    font-size: .68rem;
}

.official-commerce-band {
    border-top: 1px solid #d6dcd7;
    border-bottom: 1px solid #d6dcd7;
    background: #e7ebe7;
}

.official-policy-card {
    border-color: #d1d8d3;
    border-radius: 7px;
    background: #f7f8f5;
}

.official-policy-card h2 {
    color: #273630;
    font-size: 1.05rem !important;
}

.official-policy-card p,
.official-policy-card li,
.official-addon-table {
    color: #68736f !important;
    font-size: .84rem;
}

.official-addon-table th {
    color: #43524d;
    background: transparent;
}

.official-maintenance-section {
    background: #f4f5f2;
}

.official-maintenance-section .official-policy-card {
    min-height: 190px;
    padding: 1.6rem !important;
    background: #fff;
}

.official-maintenance-section > .container > .border-top {
    border-color: #ced6d1 !important;
}

.official-site .site-footer {
    border-top-color: #263d36;
    color: rgba(255, 255, 255, .58);
    background: #152923;
}

.official-site .site-footer-security {
    color: #bad1c9;
}

.official-site .site-footer a {
    color: #fff;
}

@media (max-width: 991.98px) {
    .official-title {
        font-size: 3.55rem;
    }

    .official-hero-lead {
        font-size: 1.3rem;
    }

    .official-hero {
        min-height: calc(100svh - 98px);
        background-position: 58% center;
    }

    .official-hero::before {
        background: rgba(13, 28, 24, .82);
    }

    .official-feature-card {
        min-height: 190px;
    }
}

@media (max-width: 767.98px) {
    .official-site .navbar {
        min-height: 58px;
    }

    .official-site .navbar .container-fluid {
        padding-inline: .85rem !important;
    }

    .official-hero {
        min-height: auto;
        background-position: 62% center;
    }

    .official-hero::before {
        background: rgba(13, 28, 24, .86);
    }

    .official-hero-inner {
        padding: 4.6rem 1rem 3.4rem;
    }

    .official-title {
        font-size: 2.7rem;
        line-height: 1;
    }

    .official-hero-lead {
        max-width: 330px;
        font-size: 1.16rem;
        line-height: 1.5;
    }

    .official-subtitle {
        max-width: 340px;
        font-size: .9rem;
        line-height: 1.75;
    }

    .official-hero-actions {
        margin-top: 1.45rem;
    }

    .official-hero-actions .btn {
        min-height: 43px;
        padding-inline: 1rem !important;
        font-size: .84rem;
    }

    .official-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 1.8rem;
    }

    .official-metric {
        min-height: 68px;
        padding: .8rem .7rem;
        border-right: 1px solid rgba(255, 255, 255, .16);
        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }

    .official-metric:nth-child(2) {
        border-right: 0;
    }

    .official-metric:nth-child(n+3) {
        border-bottom: 0;
    }

    .official-section {
        padding: 3.8rem 0;
    }

    .official-section-tight {
        padding: 2.8rem 0;
    }

    .official-section-title {
        margin-bottom: 1.7rem;
    }

    .official-section-title h2 {
        font-size: 1.65rem;
        line-height: 1.35;
    }

    .official-feature-card {
        min-height: 0;
    }

    .official-entry-card {
        padding: 1.25rem;
    }

    .official-price-card p {
        min-height: 0;
    }

    .official-maintenance-section .official-policy-card {
        min-height: 0;
    }
}

@media (max-width: 420px) {
    .official-mobile-entry span {
        display: none;
    }

    .official-mobile-entry {
        width: 38px;
        padding: 0;
    }

    .official-eyebrow {
        font-size: .68rem;
    }

    .official-title {
        font-size: 2.5rem;
    }
}


#designer-pain,
#features,
#system-entry,
#pricing,
#maintenance {
    scroll-margin-top: 82px;
}

/* Space-based 3D design review studio */
.visual-studio {
    --vs-ink: #182420;
    --vs-deep: #12251f;
    --vs-line: #d8ded9;
    --vs-warm: #bb7752;
    --vs-ready: #2d705e;
    overflow: visible;
    border-color: #ccd5cf;
    background: #f8f9f6;
    box-shadow: 0 18px 48px rgba(24, 48, 40, .08);
}

.visual-studio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.55rem 1.7rem 1.35rem;
    border-bottom: 1px solid var(--vs-line);
    background: #fff;
}

.visual-studio-kicker,
.visual-panel-label {
    display: block;
    margin-bottom: .3rem;
    color: #9a5b3c;
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .12em;
}

.visual-studio-header h2 {
    color: var(--vs-ink);
    font-size: 1.48rem;
    line-height: 1.35;
    font-weight: 820;
}

.visual-studio-header p {
    max-width: 760px;
    color: #6a7671;
    font-size: .87rem;
    line-height: 1.65;
}

.visual-studio-status {
    display: grid;
    grid-template-columns: repeat(2, minmax(98px, 1fr));
    flex: 0 0 auto;
    border: 1px solid var(--vs-line);
    background: #f6f8f5;
}

.visual-studio-status > div {
    min-width: 112px;
    padding: .75rem .9rem;
    border-right: 1px solid var(--vs-line);
}

.visual-studio-status > div:last-child { border-right: 0; }

.visual-studio-status strong {
    display: block;
    color: var(--vs-deep);
    font-size: 1.15rem;
    line-height: 1;
}

.visual-studio-status strong span { color: #8a9691; font-size: .72rem; }
.visual-studio-status small { display: block; margin-top: .28rem; color: #75817c; font-size: .66rem; }

.design-flow {
    display: grid;
    grid-template-columns: repeat(8, minmax(118px, 1fr));
    overflow-x: auto;
    border-bottom: 1px solid var(--vs-line);
    background: #eef1ed;
    scrollbar-width: thin;
}

.design-flow-step {
    position: relative;
    min-width: 118px;
    padding: .9rem .75rem .85rem;
    border-right: 1px solid #d6ddd8;
}

.design-flow-step:last-child { border-right: 0; }
.design-flow-step.is-done { background: #f5f7f4; }
.design-flow-step.is-done::after {
    content: "✓";
    position: absolute;
    top: .75rem;
    right: .65rem;
    color: #3c7966;
    font-size: .64rem;
    font-weight: 900;
}
.design-flow-step.is-current { background: #fff; box-shadow: inset 0 -3px 0 var(--vs-warm); }

.design-flow-step span {
    color: #a06545;
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.design-flow-step strong {
    display: block;
    margin-top: .18rem;
    color: #33423d;
    font-size: .75rem;
}

.design-flow-step small {
    display: block;
    margin-top: .16rem;
    color: #7a8581;
    font-size: .62rem;
    white-space: nowrap;
}

.visual-studio-grid {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr) 318px;
    min-height: 650px;
    border-bottom: 1px solid var(--vs-line);
}

.visual-space-panel,
.visual-decision-panel {
    min-width: 0;
    background: #fff;
}

.visual-space-panel { border-right: 1px solid var(--vs-line); }
.visual-decision-panel {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--vs-line);
}

.visual-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 70px;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--vs-line);
}

.visual-panel-heading strong { color: #293934; font-size: .84rem; }
.visual-panel-heading .visual-panel-label { margin-bottom: .16rem; }

.visual-space-list {
    display: grid;
    align-content: start;
    max-height: 578px;
    overflow-y: auto;
    padding: .55rem;
    scrollbar-width: thin;
}

.visual-space-item {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: .55rem;
    align-items: center;
    width: 100%;
    min-height: 68px;
    padding: .7rem .55rem;
    border: 0;
    border-bottom: 1px solid #e6e9e6;
    color: #31403b;
    background: transparent;
    text-align: left;
}

.visual-space-item:hover { background: #f4f6f3; }

.visual-space-item.is-active {
    color: #fff;
    background: var(--vs-deep);
}

.visual-space-index {
    color: #a36848;
    font-size: .62rem;
    font-weight: 850;
}

.visual-space-item.is-active .visual-space-index { color: #dfad8f; }
.visual-space-copy { min-width: 0; }
.visual-space-copy strong { display: block; overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.visual-space-copy small { display: block; overflow: hidden; margin-top: .18rem; color: #7a8581; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.visual-space-item.is-active .visual-space-copy small { color: rgba(255, 255, 255, .58); }

.visual-space-progress {
    padding: .22rem .35rem;
    border: 1px solid #d9dfdb;
    color: #7a8581;
    background: #fff;
    font-size: .58rem;
    font-weight: 750;
    white-space: nowrap;
}

.visual-space-progress.is-ready { border-color: #b9d1c8; color: #276350; background: #edf5f1; }
.visual-space-item.is-active .visual-space-progress { border-color: rgba(255,255,255,.15); color: #dbe9e4; background: rgba(255,255,255,.07); }

.visual-space-alert {
    position: absolute;
    top: .3rem;
    right: .3rem;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    color: #fff;
    background: #b45743;
    font-size: .56rem;
    font-weight: 800;
}

.visual-render-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: #e9ece8;
}

.visual-render-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 70px;
    padding: .75rem 1rem;
    border-bottom: 1px solid #d2d9d4;
    background: #f7f8f5;
}

.visual-render-toolbar h3 { color: var(--vs-deep); font-size: 1rem; font-weight: 800; }
.visual-version-meta { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.visual-version-meta span { padding: .28rem .45rem; border: 1px solid #d2dad5; color: #6d7974; background: #fff; font-size: .62rem; }

.visual-render-stage {
    position: relative;
    display: grid;
    min-height: 410px;
    flex: 1 1 auto;
    overflow: hidden;
    background: #1a2723;
}

.visual-hero-render { position: relative; display: grid; min-height: 410px; }
.visual-hero-render > img { width: 100%; height: 100%; min-height: 410px; max-height: 560px; object-fit: cover; }

.visual-render-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1rem .9rem;
    color: #fff;
    background: rgba(12, 23, 19, .78);
}

.visual-render-overlay span { display: block; font-size: .8rem; font-weight: 750; }
.visual-render-overlay small { display: block; margin-top: .18rem; color: rgba(255,255,255,.62); font-size: .62rem; }

.visual-version-strip {
    position: absolute;
    z-index: 3;
    top: .75rem;
    right: .75rem;
    display: flex;
    gap: .4rem;
    padding: .35rem;
    background: rgba(15, 29, 24, .82);
}

.visual-version-thumb {
    position: relative;
    width: 58px;
    height: 42px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    background: #263933;
}

.visual-version-thumb.is-active { border-color: #e7b08f; }
.visual-version-thumb img { width: 100%; height: 100%; object-fit: cover; }
.visual-version-thumb span { position: absolute; right: 2px; bottom: 1px; padding: 0 .18rem; color: #fff; background: rgba(0,0,0,.62); font-size: .52rem; font-weight: 800; }

.visual-render-empty {
    display: grid;
    place-content: center;
    justify-items: center;
    min-height: 410px;
    padding: 2.5rem;
    color: rgba(255,255,255,.72);
    text-align: center;
}

.visual-render-empty > i { margin-bottom: 1rem; color: #d89c76; font-size: 2.7rem; }
.visual-render-empty h4 { max-width: 510px; color: #fff; font-size: 1.1rem; }
.visual-render-empty p { max-width: 500px; margin: .55rem 0 0; color: rgba(255,255,255,.58); font-size: .78rem; line-height: 1.7; }

.visual-render-blueprint {
    grid-template-columns: minmax(190px, 300px) minmax(220px, 390px);
    gap: 2rem;
    align-items: center;
    text-align: left;
}

.visual-render-blueprint .badge { margin-bottom: .75rem; border: 1px solid rgba(229,176,143,.48); color: #e5b08f; background: transparent; }

.visual-blueprint-room {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 3px solid rgba(220, 235, 228, .52);
    box-shadow: inset 0 0 0 8px rgba(219, 233, 227, .06);
}

.visual-blueprint-room::before,
.visual-blueprint-room::after,
.bp-sofa,
.bp-table,
.bp-window {
    content: "";
    position: absolute;
    display: block;
    border: 2px solid rgba(219, 233, 227, .35);
}

.visual-blueprint-room::before { inset: 12% 10% 48% 58%; }
.visual-blueprint-room::after { inset: 58% 52% 10% 10%; border-radius: 50% 50% 8px 8px; }
.bp-sofa { inset: 14% 52% 58% 8%; border-width: 5px; }
.bp-table { width: 22%; aspect-ratio: 1; top: 44%; left: 39%; border-radius: 50%; }
.bp-window { width: 32%; top: -3px; right: 8%; border-color: #d49a75; }

.visual-render-controls {
    display: grid;
    grid-template-columns: minmax(150px, 1.35fr) minmax(140px, 1fr) minmax(135px, .9fr) auto;
    gap: .6rem;
    align-items: end;
    padding: .8rem 1rem;
    border-top: 1px solid #d2d9d4;
    background: #fff;
}

.visual-render-controls .form-label { margin-bottom: .25rem; font-size: .67rem; }
.visual-render-controls .form-select { min-height: 36px; font-size: .74rem; }
.visual-generate-btn { min-height: 36px; white-space: nowrap; }

.visual-note-row {
    display: flex;
    gap: .5rem;
    padding: 0 1rem .85rem;
    background: #fff;
}

.visual-note-row .form-control { min-height: 36px; font-size: .74rem; }
.visual-note-row .btn { flex: 0 0 auto; }

.decision-count {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    background: #a95841;
    font-size: .7rem;
    font-weight: 800;
}

.visual-feedback-list {
    display: grid;
    align-content: start;
    gap: .55rem;
    max-height: 420px;
    overflow-y: auto;
    padding: .75rem;
    scrollbar-width: thin;
}

.visual-feedback-item {
    padding: .72rem;
    border: 1px solid #dce2de;
    border-left: 3px solid #7b958b;
    background: #fafbf9;
}

.visual-feedback-item.is-client { border-left-color: var(--vs-warm); background: #fbf7f3; }
.visual-feedback-meta,
.visual-feedback-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.visual-feedback-author { color: #465650; font-size: .64rem; font-weight: 800; }
.visual-feedback-status { padding: .18rem .3rem; border: 1px solid #d3dad6; color: #68736f; background: #fff; font-size: .54rem; font-weight: 800; }
.visual-feedback-status.is-approved { border-color: #a9c9bc; color: #276450; background: #eaf4f0; }
.visual-feedback-status.is-changes_requested { border-color: #dfb5a6; color: #914b38; background: #faece7; }
.visual-feedback-item p { margin: .55rem 0; color: #35443f; font-size: .72rem; line-height: 1.6; white-space: pre-wrap; }
.visual-feedback-foot { color: #88918e; font-size: .58rem; }
.visual-feedback-foot .btn-link { color: #486c60; font-size: .6rem; }

.visual-feedback-form {
    display: grid;
    gap: .5rem;
    margin-top: auto;
    padding: .75rem;
    border-top: 1px solid var(--vs-line);
    background: #f4f6f3;
}

.visual-feedback-form .form-control,
.visual-feedback-form .form-select { min-height: 34px; font-size: .72rem; }

.visual-empty-compact {
    display: grid;
    justify-items: center;
    padding: 1.4rem .8rem;
    color: #77837e;
    text-align: center;
}

.visual-empty-compact i { margin-bottom: .5rem; color: #a66a49; font-size: 1.5rem; }
.visual-empty-compact strong { color: #43514c; font-size: .78rem; }
.visual-empty-compact span { margin-top: .3rem; font-size: .66rem; line-height: 1.55; }

.drawing-deliverables {
    padding: 1.35rem 1.45rem 1.5rem;
    border-bottom: 1px solid var(--vs-line);
    background: #eef1ed;
}

.drawing-deliverables-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.drawing-deliverables-heading h3 { color: var(--vs-deep); font-size: 1rem; font-weight: 800; }
.drawing-deliverables-heading p { color: #74807b; font-size: .72rem; }

.drawing-deliverable-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
}

.drawing-deliverable-card {
    position: relative;
    min-width: 0;
    padding: .9rem;
    border: 1px solid #d2d9d4;
    background: #fff;
}

.drawing-deliverable-card::before {
    content: "";
    position: absolute;
    top: -1px;
    right: .9rem;
    left: .9rem;
    height: 2px;
    background: #cad3ce;
}

.drawing-deliverable-card.is-ready::before { background: var(--vs-ready); }
.drawing-deliverable-top { display: flex; align-items: center; justify-content: space-between; }
.drawing-deliverable-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #326353; background: #eaf1ed; }
.drawing-deliverable-number { color: #a36a4b; font-size: .62rem; font-weight: 850; }
.drawing-deliverable-card h4 { margin: .75rem 0 .35rem; color: #2f403a; font-size: .82rem; font-weight: 800; }
.drawing-deliverable-card p { min-height: 38px; margin: 0; color: #74807b; font-size: .66rem; line-height: 1.55; }

.drawing-deliverable-preview {
    display: block;
    height: 86px;
    margin-top: .7rem;
    overflow: hidden;
    border: 1px solid #e0e4e1;
    background: #f3f5f2;
}

.drawing-deliverable-preview img { width: 100%; height: 100%; object-fit: cover; }
.drawing-deliverable-state { margin-top: .75rem; padding-top: .6rem; border-top: 1px solid #e7eae8; }
.drawing-deliverable-state span { color: #87918d; font-size: .62rem; font-weight: 700; }
.drawing-deliverable-state span.is-ready { color: #2d705e; }
.drawing-deliverable-state i { margin-right: .28rem; }
.drawing-deliverable-actions { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .65rem; }
.drawing-deliverable-actions .btn { flex: 1 1 auto; justify-content: center; padding-inline: .45rem; font-size: .66rem; }

.designer-core-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: #172b25;
}

.designer-core-grid article {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: .65rem;
    min-height: 112px;
    padding: 1rem;
    border-right: 1px solid rgba(255,255,255,.1);
}

.designer-core-grid article:last-child { border-right: 0; }
.designer-core-grid i { color: #daa07d; font-size: 1.05rem; }
.designer-core-grid strong { display: block; color: #fff; font-size: .72rem; }
.designer-core-grid small { display: block; margin-top: .3rem; color: rgba(255,255,255,.52); font-size: .62rem; line-height: 1.55; }

@media (max-width: 1399.98px) {
    .visual-studio-grid { grid-template-columns: 218px minmax(0, 1fr) 288px; }
    .visual-render-controls { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
    .visual-generate-btn { grid-column: 1 / -1; justify-content: center; }
    .designer-core-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .designer-core-grid article:nth-child(3) { border-right: 0; }
}

@media (max-width: 1199.98px) {
    .visual-studio-grid { grid-template-columns: 210px minmax(0, 1fr); }
    .visual-decision-panel { grid-column: 1 / -1; min-height: 380px; border-top: 1px solid var(--vs-line); border-left: 0; }
    .visual-feedback-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 310px; }
    .drawing-deliverable-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .visual-studio-header { align-items: stretch; flex-direction: column; padding: 1.15rem; }
    .visual-studio-header h2 { font-size: 1.2rem; }
    .visual-studio-status { width: 100%; }
    .visual-studio-status > div { min-width: 0; }
    .design-flow { grid-template-columns: repeat(8, 126px); }
    .visual-studio-grid { display: block; }
    .visual-space-panel { border-right: 0; border-bottom: 1px solid var(--vs-line); }
    .visual-space-list { grid-auto-flow: column; grid-auto-columns: minmax(190px, 74vw); overflow-x: auto; overflow-y: hidden; padding: .55rem; }
    .visual-space-item { border-right: 1px solid #e3e7e4; border-bottom: 0; }
    .visual-render-toolbar { align-items: flex-start; }
    .visual-version-meta { display: none; }
    .visual-render-stage,
    .visual-hero-render,
    .visual-hero-render > img,
    .visual-render-empty { min-height: 340px; }
    .visual-render-blueprint { display: flex; flex-direction: column; gap: 1.2rem; text-align: center; }
    .visual-blueprint-room { max-width: 250px; }
    .visual-render-overlay { align-items: flex-start; flex-direction: column; }
    .visual-render-controls { grid-template-columns: 1fr; }
    .visual-generate-btn { grid-column: auto; }
    .visual-note-row { flex-direction: column; }
    .visual-note-row .btn { justify-content: center; }
    .visual-feedback-list { grid-template-columns: 1fr; }
    .drawing-deliverables { padding: 1.1rem; }
    .drawing-deliverable-grid { grid-template-columns: 1fr; }
    .drawing-deliverable-card p { min-height: 0; }
    .designer-core-grid { grid-template-columns: 1fr; }
    .designer-core-grid article,
    .designer-core-grid article:nth-child(3) { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
}

.floor-plan-confirm-panel {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--vs-line);
    background: #fffaf4;
}

.floor-plan-confirm-heading,
.floor-plan-confirm-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.floor-plan-confirm-heading { margin-bottom: 1rem; }
.floor-plan-confirm-actions { padding-top: .85rem; }
.floor-plan-confirm-panel th { color: #65716c; font-size: .68rem; white-space: nowrap; }
.floor-plan-confirm-panel td { min-width: 105px; }
.floor-plan-confirm-panel td:nth-child(2) { min-width: 150px; }
.floor-plan-confirm-panel td:nth-child(5) { min-width: 260px; }
.floor-ai-value { display: block; color: #9a5b3c; font-size: .72rem; font-weight: 800; }
.floor-ai-value + small { color: #a8785f; font-size: .58rem; }
.floor-confirm-dimensions { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: .3rem; align-items: center; }

.visual-brief-panel,
.visual-edit-panel {
    margin: .75rem 1rem 1rem;
    padding: .85rem;
    border: 1px solid #d4dbd6;
    background: #fff;
}

.visual-brief-panel summary { cursor: pointer; color: #31403b; font-size: .78rem; font-weight: 800; }
.visual-brief-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; margin-top: .85rem; }
.visual-brief-grid label { color: #6c7772; font-size: .64rem; font-weight: 700; }
.visual-brief-grid input { margin-top: .25rem; }
.visual-needs,
.visual-scene-locks { display: flex; flex-wrap: wrap; gap: .45rem .8rem; padding: .65rem 0; }
.visual-needs label,
.visual-scene-locks label { color: #56615c; font-size: .66rem; }

.visual-edit-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.visual-edit-heading strong { color: #293934; font-size: .78rem; }
.visual-edit-heading span { color: #74807b; font-size: .64rem; }
.visual-edit-grid { display: grid; grid-template-columns: minmax(130px, .65fr) minmax(220px, 1.6fr) auto; gap: .55rem; }

.visual-compare-panel {
    padding: .75rem;
    color: #fff;
    background: #101c18;
}
.visual-compare-panel:fullscreen { overflow: auto; padding: 1.5rem; background: #101c18; }
.visual-compare-toolbar { display: grid; grid-template-columns: auto minmax(150px, 1fr) minmax(150px, 1fr) auto auto; gap: .5rem; align-items: center; margin-bottom: .65rem; }
.visual-compare-toolbar strong { font-size: .75rem; white-space: nowrap; }
.visual-compare-canvas { position: relative; min-height: 260px; overflow: hidden; background: #24302c; }
.visual-compare-canvas > img,
.visual-compare-top img { width: 100%; height: 100%; min-height: 260px; max-height: 560px; object-fit: cover; }
.visual-compare-top { position: absolute; inset: 0 auto 0 0; overflow: hidden; border-right: 2px solid #fff; }
.visual-compare-top img { width: calc(100vw - 320px); max-width: none; }
.visual-compare-label { position: absolute; top: .6rem; padding: .25rem .45rem; color: #fff; background: rgba(0,0,0,.68); font-size: .62rem; font-weight: 850; }
.visual-compare-label.is-a { left: .6rem; }
.visual-compare-label.is-b { right: .6rem; }

@media (max-width: 991.98px) {
    .visual-brief-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .visual-edit-grid { grid-template-columns: 1fr; }
    .visual-compare-top img { width: 100vw; }
}

@media (max-width: 575.98px) {
    .floor-plan-confirm-panel { padding: .85rem; }
    .floor-plan-confirm-actions .ms-auto { width: 100%; margin-left: 0 !important; justify-content: space-between; }
    .visual-brief-grid { grid-template-columns: 1fr 1fr; }
    .visual-compare-toolbar { grid-template-columns: 1fr auto auto; }
    .visual-compare-toolbar strong { grid-column: 1 / -1; }
    .visual-compare-toolbar select { grid-column: 1 / -1; }
    .visual-compare-canvas,
    .visual-compare-canvas > img,
    .visual-compare-top img { min-height: 220px; }
}
/* Designer pain points and admin perspective */
.official-pain-section {
    border-bottom: 1px solid #d6dcd7;
    background: #e6e9e5;
}

.official-pain-section .official-section-title {
    max-width: 900px;
}

.official-pain-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1.1rem;
    height: 100%;
    min-height: 280px;
    padding: 1.55rem;
    border: 1px solid #cfd6d1;
    border-radius: 7px;
    background: #f8f9f6;
}

.official-pain-index {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #c0ccc6;
    border-radius: 5px;
    color: #8f5739;
    background: #f2e9e3;
    font-size: .75rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.official-pain-label {
    margin-bottom: .55rem;
    color: #8f5739;
    font-size: .7rem;
    font-weight: 850;
}

.official-pain-card h3 {
    margin-bottom: .65rem;
    color: #20332d;
    font-size: 1.12rem;
    line-height: 1.45;
    font-weight: 800;
}

.official-pain-card p {
    margin-bottom: 1.1rem;
    color: #65716c;
    font-size: .86rem;
    line-height: 1.75;
}

.official-pain-solutions {
    display: flex;
    flex-wrap: wrap;
    gap: .38rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.official-pain-solutions li {
    padding: .32rem .5rem;
    border: 1px solid #c9d3ce;
    border-radius: 4px;
    color: #40574f;
    background: #edf2ef;
    font-size: .72rem;
    font-weight: 700;
}

.impersonation-banner {
    position: sticky;
    top: 64px;
    z-index: 1025;
    border-bottom: 1px solid #d7b396;
    color: #553520;
    background: #f5e7dc;
}

.impersonation-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
    padding: .45rem 1rem;
}

.impersonation-copy {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    font-size: .83rem;
}

.impersonation-copy i {
    color: #a86442;
    font-size: 1rem;
}

.impersonation-banner .btn {
    flex: 0 0 auto;
    border-color: #d6b59e;
    color: #623c25;
    background: rgba(255, 255, 255, .68);
}

@media (min-width: 992px) {
    .has-app-sidebar > .impersonation-banner {
        margin-left: 264px;
        width: calc(100% - 264px);
        max-width: calc(100vw - 264px);
    }
}

@media (max-width: 767.98px) {
    .official-pain-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: .8rem;
        min-height: 0;
        padding: 1.15rem;
    }

    .official-pain-index {
        width: 38px;
        height: 38px;
    }

    .official-pain-card h3 {
        font-size: 1rem;
    }

    .impersonation-banner {
        top: 58px;
    }

    .impersonation-banner-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: .5rem;
        padding: .55rem .85rem;
    }

    .impersonation-banner .btn {
        width: 100%;
        justify-content: center;
    }
}


/* On-demand project creation modal */
.project-home-page {
    max-width: 1320px;
}

.project-home-page > .page-section {
    min-height: calc(100svh - 190px);
}

.project-home-header {
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--ie-border);
}

.project-home-kicker {
    margin-bottom: .35rem;
    color: var(--ie-material);
    font-size: .66rem;
    font-weight: 850;
}

.project-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: .75rem;
}

.project-list-grid > a {
    position: relative;
    min-height: 150px;
    padding: 1rem !important;
    border-color: var(--ie-border) !important;
    border-radius: 6px !important;
    color: var(--ie-ink) !important;
    background: var(--ie-surface-soft) !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.project-list-grid > a::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 1rem;
    width: 34px;
    height: 3px;
    background: var(--ie-material);
}

.project-list-grid > a:hover {
    border-color: #afbeb8 !important;
    box-shadow: 0 12px 28px rgba(26, 49, 41, .08);
    transform: translateY(-2px);
}

#createProjectModal .modal-dialog {
    max-width: 760px;
}

#createProjectModal .modal-header {
    padding: 1rem 1.25rem;
}

#createProjectModal .modal-footer {
    padding: .85rem 1.25rem;
}

@media (max-width: 767.98px) {
    .project-home-page {
        padding: .85rem !important;
    }

    .project-home-page > .page-section {
        min-height: calc(100svh - 120px);
    }

    .project-home-header > .d-flex {
        width: 100%;
    }

    .project-home-header > .d-flex .btn {
        flex: 1 1 0;
        justify-content: center;
    }

    .project-list-grid {
        grid-template-columns: 1fr;
    }

    .project-list-grid > a {
        min-height: 138px;
    }

    #createProjectModal .modal-dialog {
        margin: .65rem;
    }

    #createProjectModal .modal-body {
        padding: 1rem !important;
    }
}

/* Operations workspace: clear two-level navigation and compact command menus. */
#operationsSection {
    overflow: visible;
}

.operations-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ie-border);
}

.operations-heading {
    min-width: 260px;
    max-width: 560px;
}

.operations-eyebrow {
    margin-bottom: .3rem;
    color: var(--ie-material);
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.operations-command-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.operations-command-bar > .btn,
.operations-command-bar > .dropdown > .btn {
    min-height: 38px;
    border-radius: 6px;
    white-space: nowrap;
}

.operations-command-menu {
    min-width: 230px;
    padding: .4rem;
    border-color: var(--ie-border);
    border-radius: 7px;
    box-shadow: 0 14px 36px rgba(23, 60, 52, .16);
}

.operations-command-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 40px;
    padding: .55rem .65rem;
    border-radius: 5px;
    color: var(--ie-ink);
    font-size: .86rem;
    font-weight: 650;
}

.operations-command-menu .dropdown-item i {
    display: inline-grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 5px;
    color: var(--ie-accent);
    background: var(--ie-accent-soft);
}

.operations-command-menu .dropdown-item.text-danger i {
    color: #a83d3d;
    background: #fbeaea;
}

.operations-command-menu .dropdown-item:disabled {
    opacity: .45;
}

.operations-mobile-navigation {
    display: none;
}

.operations-workspace {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.operations-module-panel {
    position: sticky;
    top: 82px;
    padding: .8rem;
    border: 1px solid var(--ie-border);
    border-radius: 7px;
    background: var(--ie-surface-soft);
}

.operations-nav-heading {
    color: var(--ie-accent-deep);
    font-size: .82rem;
    font-weight: 800;
}

.operations-nav-hint {
    margin: .08rem 0 .7rem;
    color: var(--ie-muted);
    font-size: .7rem;
}

#operationsSection .module-tabs {
    display: grid;
    gap: .25rem;
    overflow: visible;
    padding: 0;
}

#operationsSection .module-tabs .btn {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    width: 100%;
    min-height: 52px;
    padding: .5rem .55rem;
    border: 0;
    border-radius: 6px;
    color: #4f5f5a;
    background: transparent;
    text-align: left;
    white-space: normal;
    box-shadow: none;
}

#operationsSection .module-tabs .btn:hover {
    color: var(--ie-accent-deep);
    background: #edf2f0;
}

#operationsSection .module-tabs .btn.btn-success {
    color: var(--ie-accent-deep);
    background: var(--ie-accent-soft);
}

.operations-module-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: var(--ie-accent);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(36, 88, 77, .12);
}

.module-tab-copy {
    display: grid;
    min-width: 0;
    line-height: 1.15;
}

.module-tab-copy strong {
    overflow: hidden;
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-tab-copy small {
    margin-top: .2rem;
    color: var(--ie-muted);
    font-size: .65rem;
    font-weight: 500;
}

#operationsSection .module-tabs .badge {
    min-width: 24px;
    color: #53625d !important;
    background: #fff !important;
    font-size: .66rem;
}

.operations-record-panel {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--ie-border);
    border-radius: 7px;
    background: #fff;
}

.operations-content-heading {
    display: grid;
    gap: .8rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ie-border);
}

.operations-active-module {
    color: var(--ie-accent-deep);
    font-size: 1rem;
    font-weight: 800;
}

#operationsSection .record-type-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .45rem;
    overflow: visible;
    padding: 0;
}

#operationsSection .record-type-tabs .btn {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: .45rem;
    min-height: 46px;
    padding: .5rem .65rem;
    border-color: var(--ie-border-strong);
    border-radius: 6px;
    color: #4b5b56;
    background: #fff;
    text-align: left;
    white-space: normal;
    box-shadow: none;
}

#operationsSection .record-type-tabs .btn:hover {
    border-color: #9eb2aa;
    color: var(--ie-accent-deep);
    background: var(--ie-surface-soft);
}

#operationsSection .record-type-tabs .btn.btn-dark {
    border-color: var(--ie-accent);
    color: #fff;
    background: var(--ie-accent);
}

#operationsSection .record-type-tabs .btn i {
    color: var(--ie-accent);
    font-size: .9rem;
}

#operationsSection .record-type-tabs .btn.btn-dark i {
    color: #fff;
}

#operationsSection .record-type-tabs .badge {
    min-width: 23px;
    font-size: .66rem;
}

.operations-record-table {
    max-height: 560px;
    overflow: auto;
}

.operations-record-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

#operationsSection.is-worklog-view .operations-section-header {
    margin-bottom: 1rem;
}

#operationsSection.is-worklog-view .operations-mobile-navigation,
#operationsSection.is-worklog-view .operations-module-panel,
#operationsSection.is-worklog-view .operations-content-heading {
    display: none !important;
}

#operationsSection.is-worklog-view .operations-workspace {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1199.98px) {
    .operations-section-header {
        display: grid;
    }

    .operations-command-bar {
        justify-content: flex-start;
    }
}

@media (max-width: 991.98px) {
    .operations-mobile-navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
        margin-bottom: 1rem;
        padding: .85rem;
        border: 1px solid var(--ie-border);
        border-radius: 7px;
        background: var(--ie-surface-soft);
    }

    .operations-mobile-navigation .form-label {
        margin-bottom: .35rem;
        color: var(--ie-muted);
        font-size: .72rem;
        font-weight: 750;
    }

    .operations-module-panel {
        display: none;
    }

    .operations-workspace {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .operations-section-header {
        gap: .85rem;
    }

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

    .operations-command-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .operations-command-bar > .btn,
    .operations-command-bar > .dropdown,
    .operations-command-bar > .dropdown > .btn {
        width: 100%;
    }

    .operations-command-bar > .btn,
    .operations-command-bar > .dropdown > .btn {
        justify-content: center;
    }

    .operations-mobile-navigation {
        grid-template-columns: 1fr;
    }

    .operations-record-panel {
        padding: .75rem;
    }

    #operationsSection .record-type-tabs {
        grid-template-columns: 1fr;
    }
}
