:root {
    --bg: #eef0e8;
    --bg-deep: #d8e4d7;
    --panel: rgba(255, 251, 245, 0.78);
    --panel-strong: rgba(255, 251, 245, 0.94);
    --line: rgba(29, 44, 33, 0.12);
    --line-strong: rgba(29, 44, 33, 0.2);
    --text: #142219;
    --muted: #5b685c;
    --accent: #0f766e;
    --accent-soft: #d9f1eb;
    --accent-strong: #115e59;
    --warm: #ca8a04;
    --danger: #b42318;
    --danger-soft: #fde7e3;
    --shadow-lg: 0 24px 60px rgba(28, 46, 35, 0.14);
    --shadow-md: 0 16px 34px rgba(28, 46, 35, 0.1);
    --shadow-sm: 0 10px 20px rgba(28, 46, 35, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --connector: rgba(15, 118, 110, 0.28);
    --grid: rgba(29, 44, 33, 0.06);
}

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

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.17), transparent 36%),
        radial-gradient(circle at top right, rgba(202, 138, 4, 0.16), transparent 30%),
        linear-gradient(180deg, #f7f5ee 0%, var(--bg) 42%, #edf2e6 100%);
    color: var(--text);
    font-family: Aptos, "Segoe UI", "Trebuchet MS", sans-serif;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 34rem;
    height: 34rem;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(50px);
    opacity: 0.35;
    z-index: 0;
}

body::before {
    top: -10rem;
    right: -8rem;
    background: rgba(15, 118, 110, 0.18);
}

body::after {
    bottom: -12rem;
    left: -8rem;
    background: rgba(202, 138, 4, 0.14);
}

button,
input:not([type="checkbox"]):not([type="range"]),
select,
textarea {
    font: inherit;
}

button {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.78rem 1rem;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

button:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, 0.24);
    box-shadow: var(--shadow-sm);
}

button.primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #f4fffc;
}

button.danger {
    background: linear-gradient(135deg, #cf4337 0%, var(--danger) 100%);
    color: #fff8f7;
}

button.ghost {
    background: transparent;
    border-color: rgba(180, 35, 24, 0.18);
    color: var(--danger);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.85rem 0.95rem;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:not([type="checkbox"]):not([type="range"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(15, 118, 110, 0.6);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

textarea {
    resize: vertical;
    min-height: 5.5rem;
}

input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    padding: 0;
    accent-color: var(--accent);
}

input[type="range"] {
    width: 9rem;
    accent-color: var(--accent);
}

.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.4rem;
    backdrop-filter: blur(18px);
    background: rgba(245, 243, 236, 0.74);
    border-bottom: 1px solid rgba(29, 44, 33, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.brand-badge {
    width: 3.4rem;
    height: 3.4rem;
    display: grid;
    place-items: center;
    border-radius: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #f4fffc;
    background: linear-gradient(145deg, #0f766e 0%, #1d4b43 100%);
    box-shadow: var(--shadow-md);
}

.brand-copy h1,
.brand-copy p {
    margin: 0;
}

.eyebrow,
.section-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand-copy h1 {
    margin-top: 0.12rem;
    font-size: 1.6rem;
}

.top-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

.view-toggle {
    display: inline-flex;
    padding: 0.25rem;
    gap: 0.25rem;
    border-radius: 999px;
    background: rgba(20, 34, 25, 0.06);
    border: 1px solid rgba(20, 34, 25, 0.08);
}

.toggle-chip {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.toggle-chip.active {
    background: rgba(255, 255, 255, 0.96);
    color: var(--accent-strong);
    box-shadow: 0 10px 18px rgba(20, 34, 25, 0.08);
}

.toggle-chip:hover,
.card-action:hover {
    transform: none;
}

.workspace {
    display: grid;
    grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr) minmax(20rem, 24rem);
    gap: 1rem;
    padding: 1rem;
    min-height: 0;
    flex: 1;
}

.panel,
.board-panel {
    min-height: 0;
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-section,
.board-panel {
    border: 1px solid rgba(29, 44, 33, 0.09);
    border-radius: var(--radius-xl);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
}

.panel-section {
    padding: 1.15rem;
}

.intro-card {
    overflow: hidden;
    position: relative;
}

.intro-card::before {
    content: "";
    position: absolute;
    inset: -30% auto auto 62%;
    width: 12rem;
    height: 12rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    filter: blur(14px);
}

.intro-card h2,
.panel-section h2,
.preview-card h2 {
    margin: 0;
    font-size: 1.15rem;
}

.intro-card p:last-child,
.inspector-intro p:last-child {
    margin-bottom: 0;
}

.stats-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.stat-card {
    padding: 0.85rem 0.95rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(29, 44, 33, 0.06);
}

.stat-card strong {
    display: block;
    font-size: 1.3rem;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.field,
.field-row {
    display: flex;
    gap: 0.9rem;
}

.field {
    flex-direction: column;
    margin-bottom: 0.9rem;
}

.field:last-child {
    margin-bottom: 0;
}

.field > span {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--muted);
}

.field-row > .field {
    flex: 1;
}

.button-row,
.button-column,
.inspector-actions {
    display: flex;
    gap: 0.7rem;
}

.button-row > *,
.button-column > *,
.inspector-actions > * {
    flex: 1;
}

.button-column,
.inspector-actions {
    flex-wrap: wrap;
}

.flag-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.flag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(29, 44, 33, 0.08);
    background: rgba(255, 255, 255, 0.64);
    padding: 0.85rem 0.95rem;
    border-radius: var(--radius-md);
}

.flag input {
    flex: none;
}

.mini-pill {
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent-strong);
    font-size: 0.82rem;
}

.outline-tree {
    max-height: 28rem;
    overflow: auto;
    padding-right: 0.2rem;
}

.outline-group {
    margin: 0;
    padding-left: 1rem;
    list-style: none;
    border-left: 1px dashed rgba(29, 44, 33, 0.1);
}

.outline-group.root {
    padding-left: 0;
    border-left: 0;
}

.outline-node {
    margin-bottom: 0.4rem;
}

.outline-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.58rem 0.7rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.outline-item:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.62);
}

.outline-item.selected {
    background: rgba(15, 118, 110, 0.12);
    border-color: rgba(15, 118, 110, 0.16);
}

.outline-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.outline-count,
.outline-status {
    font-size: 0.76rem;
    color: var(--muted);
    border-radius: 999px;
    padding: 0.16rem 0.5rem;
    background: rgba(20, 34, 25, 0.06);
}

.outline-caret {
    width: 1.6rem;
    height: 1.6rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.hint-list {
    margin: 0;
    padding-left: 1rem;
    color: var(--muted);
    display: grid;
    gap: 0.55rem;
}

.board-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.board-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem 0.85rem;
    border-bottom: 1px solid rgba(29, 44, 33, 0.08);
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.breadcrumbs-group {
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
}

.toolbar-label,
.toolbar-value {
    font-size: 0.88rem;
    color: var(--muted);
}

.breadcrumbs {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.94rem;
    font-weight: 600;
}

.board-stage {
    position: relative;
    min-height: 0;
    flex: 1;
}

.board-viewport,
.preview-board {
    height: 100%;
}

.board-viewport {
    overflow: auto;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.3) 40%, transparent 70%),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: auto, 2rem 2rem, 2rem 2rem;
}

.board {
    display: flex;
    justify-content: center;
    width: max-content;
    min-width: 100%;
    padding: 1rem 2rem 3rem;
    transform-origin: top center;
    transition: transform 180ms ease;
}

.tree-root,
.tree-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree-children-wrap {
    position: relative;
    padding-top: 1.9rem;
}

.tree-children-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 1.1rem;
    transform: translateX(-50%);
    background: var(--connector);
}

.tree-children {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.7rem;
    padding-top: 1.2rem;
}

.tree-children::before {
    content: "";
    position: absolute;
    top: 0;
    left: 7.6rem;
    right: 7.6rem;
    height: 2px;
    background: var(--connector);
}

.tree-children.single::before {
    display: none;
}

.tree-child {
    position: relative;
    padding-top: 1.15rem;
}

.tree-child::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 1.15rem;
    transform: translateX(-50%);
    background: var(--connector);
}

.page-card {
    position: relative;
    width: 15.2rem;
    padding: 1rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(29, 44, 33, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 250, 242, 0.86) 100%);
    box-shadow: var(--shadow-md);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
    cursor: pointer;
}

.page-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 0.34rem;
    border-radius: 1.4rem 1.4rem 0.8rem 0.8rem;
    background: linear-gradient(90deg, var(--accent) 0%, var(--warm) 100%);
    opacity: 0.82;
}

.page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 34px rgba(28, 46, 35, 0.12);
}

.page-card.selected {
    border-color: rgba(15, 118, 110, 0.34);
    box-shadow: 0 24px 44px rgba(15, 118, 110, 0.18);
}

.page-card.drag-source {
    opacity: 0.45;
}

.page-card.drag-target {
    background: linear-gradient(180deg, rgba(217, 241, 235, 0.96) 0%, rgba(255, 250, 242, 0.92) 100%);
    border-color: rgba(15, 118, 110, 0.4);
}

.page-card.search-match {
    outline: 3px solid rgba(202, 138, 4, 0.22);
    outline-offset: 0.18rem;
}

.page-card[data-page-type="hub"]::before {
    background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
}

.page-card[data-page-type="landing"]::before {
    background: linear-gradient(90deg, #ca8a04 0%, #f59e0b 100%);
}

.page-card[data-page-type="resource"]::before {
    background: linear-gradient(90deg, #0f5b9d 0%, #38bdf8 100%);
}

.page-card[data-page-type="system"]::before {
    background: linear-gradient(90deg, #52525b 0%, #a1a1aa 100%);
}

.page-card-top,
.page-card-meta,
.page-card-tags,
.page-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.page-card-top {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.page-card h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.25;
}

.page-card-path {
    margin: 0.35rem 0 0.8rem;
    color: var(--muted);
    font-size: 0.82rem;
    word-break: break-all;
}

.page-card-goal {
    margin: 0 0 0.8rem;
    min-height: 2.5rem;
    color: rgba(20, 34, 25, 0.82);
    font-size: 0.86rem;
    line-height: 1.45;
}

.page-card-meta {
    margin-bottom: 0.7rem;
}

.badge,
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
}

.badge {
    background: rgba(20, 34, 25, 0.08);
    color: var(--muted);
}

.badge.status-live {
    background: rgba(15, 118, 110, 0.12);
    color: var(--accent-strong);
}

.badge.status-planned {
    background: rgba(202, 138, 4, 0.12);
    color: #8b5f02;
}

.badge.status-draft {
    background: rgba(17, 94, 89, 0.08);
    color: #155e59;
}

.badge.status-blocked {
    background: var(--danger-soft);
    color: var(--danger);
}

.chip {
    background: rgba(15, 118, 110, 0.08);
    color: var(--accent-strong);
}

.page-card-actions {
    margin-top: 0.85rem;
}

.card-action {
    padding: 0.48rem 0.72rem;
    border-radius: 999px;
    background: rgba(20, 34, 25, 0.05);
    border: 1px solid transparent;
    box-shadow: none;
}

.card-action:hover {
    box-shadow: none;
}

.preview-board {
    overflow: auto;
    padding: 1.3rem;
}

.preview-grid {
    display: grid;
    gap: 1rem;
}

.preview-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.preview-columns {
    display: grid;
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: 1rem;
}

.preview-card {
    padding: 1.15rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(29, 44, 33, 0.08);
    background: var(--panel-strong);
    box-shadow: var(--shadow-md);
}

.preview-card + .preview-card {
    margin-top: 1rem;
}

.preview-list,
.preview-list ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.preview-list ul {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px dashed rgba(29, 44, 33, 0.14);
}

.preview-list li {
    margin-bottom: 0.7rem;
}

.preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--accent-strong);
    text-decoration: none;
}

.inventory-group {
    margin-top: 1rem;
}

.inventory-group:first-child {
    margin-top: 0;
}

.inventory-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
}

.inventory-item {
    padding: 0.9rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(29, 44, 33, 0.07);
}

.inventory-item h3,
.inventory-item p {
    margin: 0;
}

.inventory-item p {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.inventory-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.45rem;
}

.status-message {
    min-height: 1.35rem;
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.status-message.success {
    color: var(--accent-strong);
}

.status-message.error {
    color: var(--danger);
}

.page-form {
    display: grid;
    gap: 1rem;
}

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

.page-card,
.preview-card,
.stat-card {
    animation: rise-in 320ms ease;
}

@media (max-width: 1320px) {
    .workspace {
        grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
    }

    .inspector {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .inspector .panel-section,
    .inspector .page-form {
        height: fit-content;
    }
}

@media (max-width: 980px) {
    .app-header,
    .board-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .workspace,
    .inspector,
    .preview-columns,
    .preview-summary {
        grid-template-columns: 1fr;
    }

    .board {
        justify-content: flex-start;
        min-width: max-content;
    }

    .breadcrumbs-group {
        justify-content: flex-start;
    }

    .flag-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .workspace {
        padding: 0.85rem;
    }

    .panel-section,
    .board-panel {
        border-radius: 1.3rem;
    }

    .top-actions,
    .button-row,
    .toolbar-group,
    .field-row {
        flex-direction: column;
        align-items: stretch;
    }

    .tree-children {
        gap: 1rem;
    }

    .tree-children::before {
        left: 7rem;
        right: 7rem;
    }

    .page-card {
        width: 14rem;
    }
}

#workspace.inspector-hidden {
    grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
}

.stats-grid.compact {
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid.compact .stat-card {
    padding: 0.8rem;
    text-align: center;
}

.stats-grid.compact .stat-card strong {
    font-size: 1.15rem;
}

.outline-tree {
    max-height: none;
}

.outline-item {
    grid-template-columns: 1fr;
    padding: 0.48rem 0.55rem;
}

.outline-status,
.outline-count,
.outline-caret {
    display: none;
}

.board-stage.simple {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.board-status {
    padding: 1rem 1.2rem 0;
    margin: 0;
}

.simple-board {
    justify-content: center;
    padding: 2rem 2rem 3rem;
}

.tree-children-wrap {
    padding-top: 1.25rem;
}

.tree-children-wrap::before {
    height: 0.85rem;
}

.tree-children {
    gap: 1.35rem;
    padding-top: 1rem;
}

.simple-node {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.page-card {
    width: 12.8rem;
    min-height: 4.6rem;
    display: grid;
    place-items: center;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 1.2rem;
}

.page-card::before,
.page-card-path,
.page-card-goal,
.page-card-meta,
.page-card-tags,
.page-card-actions {
    display: none;
}

.page-card h3 {
    text-align: center;
    font-size: 1rem;
}

.page-card:hover {
    transform: translateY(-2px);
}

.node-plus {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    border: 1px solid rgba(15, 118, 110, 0.18);
    color: var(--accent-strong);
    font-size: 1.1rem;
    line-height: 1;
    box-shadow: none;
}

.node-plus:hover {
    transform: none;
    background: rgba(15, 118, 110, 0.16);
    box-shadow: none;
}

.node-plus.child {
    margin-top: 0.7rem;
}

.inspector {
    align-self: start;
}

.inspector-meta {
    margin-bottom: 0.9rem;
}

.inspector .mini-pill {
    display: inline-flex;
    margin-bottom: 0.2rem;
}

@media (max-width: 1320px) {
    #workspace.inspector-hidden {
        grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
    }
}

@media (max-width: 980px) {
    #workspace.inspector-hidden {
        grid-template-columns: 1fr;
    }

    .stats-grid.compact {
        grid-template-columns: 1fr;
    }

    .simple-node {
        gap: 0.45rem;
    }
}

:root {
    --tree-card-width: 12.8rem;
    --tree-card-height: 4.6rem;
    --tree-side-slot: 2.75rem;
    --tree-side-gap: 0.45rem;
    --tree-sibling-gap: 1.4rem;
    --tree-parent-gap: 1.55rem;
    --tree-child-gap: 1.8rem;
    --tree-connector-width: 1px;
    --tree-connector-color: rgba(133, 204, 196, 0.9);
}

.board-panel {
    background: rgba(250, 246, 238, 0.88);
}

.board-stage.simple {
    min-height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(248, 244, 235, 0.74) 100%);
}

.board-viewport {
    padding: 2rem 2rem 4rem;
    background:
        linear-gradient(rgba(206, 191, 166, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(206, 191, 166, 0.16) 1px, transparent 1px),
        linear-gradient(180deg, #faf7f1 0%, #f5efe5 100%);
    background-size: 2.15rem 2.15rem, 2.15rem 2.15rem, auto;
}

.simple-board {
    justify-content: center;
    align-items: flex-start;
    padding: 1rem 1.5rem 4rem;
}

.tree-root,
.tree-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree-branch {
    position: relative;
}

.tree-node-row {
    position: relative;
    display: grid;
    grid-template-columns: var(--tree-side-slot) var(--tree-card-width) var(--tree-side-slot);
    gap: var(--tree-side-gap);
    align-items: center;
    z-index: 1;
}

.tree-node-row.root {
    grid-template-columns: var(--tree-card-width);
    gap: 0;
}

.tree-side-slot {
    min-width: var(--tree-side-slot);
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-card {
    width: var(--tree-card-width);
    min-height: var(--tree-card-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(29, 44, 33, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(54, 48, 36, 0.08);
}

.page-card::before,
.page-card-path,
.page-card-goal,
.page-card-meta,
.page-card-tags,
.page-card-actions {
    display: none;
}

.page-card h3 {
    margin: 0;
    text-align: center;
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.25;
}

.page-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(54, 48, 36, 0.1);
}

.page-card.selected {
    border-color: rgba(15, 118, 110, 0.32);
    box-shadow: 0 18px 30px rgba(15, 118, 110, 0.14);
}

.tree-leaf-action {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.7rem;
}

.tree-children-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: var(--tree-parent-gap);
}

.tree-children-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--tree-connector-width);
    height: calc(var(--tree-parent-gap) + 1px);
    transform: translateX(-50%);
    background: var(--tree-connector-color);
}

.tree-children {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.35rem;
    padding-top: 0;
}

.tree-children::before {
    content: "";
    position: absolute;
    top: 0;
    left: 7.6rem;
    right: 7.6rem;
    height: 2px;
    background: var(--connector);
}

.tree-child {
    position: relative;
    display: flex;
    justify-content: center;
    padding: var(--tree-child-gap) calc(var(--tree-sibling-gap) / 2) 0;
}

.tree-child::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--tree-connector-width);
    background: var(--tree-connector-color);
}

.tree-child::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--tree-connector-width);
    height: calc(var(--tree-child-gap) + 1px);
    transform: translateX(-50%);
    background: var(--tree-connector-color);
}

.tree-child:first-child::before {
    left: calc(50% + 1px);
}

.tree-child:last-child::before {
    right: calc(50% + 1px);
}

.tree-child:only-child::before {
    display: none;
}

.tree-children-wrap.single .tree-child {
    padding-inline: 0;
}

.node-plus {
    width: 2.15rem;
    height: 2.15rem;
    min-width: 2.15rem;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(15, 118, 110, 0.2);
    background: rgba(217, 241, 235, 0.88);
    color: var(--accent-strong);
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: none;
}

.node-plus:hover {
    transform: none;
    border-color: rgba(15, 118, 110, 0.34);
    background: rgba(217, 241, 235, 1);
}

.node-plus.side {
    z-index: 2;
}

.node-plus.child {
    margin-top: 0;
}

.tree-branch.has-children > .tree-node-row .page-card {
    box-shadow: 0 14px 28px rgba(54, 48, 36, 0.08), 0 0 0 1px rgba(133, 204, 196, 0.08);
}

.board-status {
    padding: 1rem 1.2rem 0;
    margin: 0;
}

@media (max-width: 980px) {
    :root {
        --tree-card-width: 11.6rem;
        --tree-side-slot: 2.25rem;
        --tree-side-gap: 0.3rem;
        --tree-sibling-gap: 1rem;
    }

    .board-viewport {
        padding: 1.4rem 0.9rem 3rem;
    }

    .simple-board {
        padding: 0.8rem 0.8rem 3rem;
    }
}

.mode-switch {
    display: inline-flex;
    padding: 0.24rem;
    border-radius: 999px;
    background: rgba(20, 34, 25, 0.08);
    border: 1px solid rgba(20, 34, 25, 0.1);
}

.mode-switch .toggle-chip {
    min-width: 7.2rem;
    padding-inline: 1.05rem;
}

.inspector[hidden],
.inspector-panel[hidden],
.catalog-modal[hidden] {
    display: none !important;
}

.workspace.inspector-hidden .inspector {
    display: none !important;
}

.catalog-card {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(29, 44, 33, 0.08);
    background: rgba(255, 255, 255, 0.68);
    margin-bottom: 1rem;
}

.catalog-card-copy {
    display: grid;
    gap: 0.2rem;
}

.catalog-card-copy strong,
.catalog-card-copy p {
    margin: 0;
}

.catalog-card-copy p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.dynamic-form {
    display: grid;
    gap: 0.9rem;
}

.catalog-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
}

.catalog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 19, 17, 0.36);
    backdrop-filter: blur(6px);
}

.catalog-dialog {
    position: relative;
    z-index: 1;
    width: min(64rem, calc(100vw - 2rem));
    max-height: calc(100vh - 3rem);
    overflow: auto;
    padding: 1.2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(29, 44, 33, 0.08);
    background: rgba(251, 248, 241, 0.96);
    box-shadow: var(--shadow-lg);
}

.catalog-hint {
    margin: 0 0 1rem;
    color: var(--muted);
}

.catalog-grid {
    display: grid;
    gap: 0.9rem;
}

.catalog-category {
    border-radius: 1.4rem;
    border: 1px solid rgba(29, 44, 33, 0.08);
    background: rgba(255, 255, 255, 0.62);
    overflow: hidden;
}

.catalog-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.catalog-summary::-webkit-details-marker {
    display: none;
}

.catalog-summary-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.9rem;
    height: 1.9rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent-strong);
    font-size: 0.82rem;
}

.catalog-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.9rem;
    padding: 0 1rem 1rem;
}

.catalog-item {
    display: grid;
    gap: 0.85rem;
    padding: 0.85rem;
    text-align: left;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(29, 44, 33, 0.08);
    background: rgba(255, 255, 255, 0.84);
}

.catalog-item-copy {
    display: grid;
    gap: 0.25rem;
}

.catalog-item-copy strong,
.catalog-item-copy p {
    margin: 0;
}

.catalog-item-copy p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.catalog-item-preview {
    overflow: hidden;
    min-height: 10.25rem;
    padding: 0.7rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(29, 44, 33, 0.07);
    background: linear-gradient(180deg, rgba(248, 244, 236, 0.96) 0%, rgba(240, 247, 243, 0.92) 100%);
}

.catalog-item-preview .wf-preview {
    gap: 0.55rem;
}

.catalog-item-preview .wf-preview h3 {
    font-size: 0.86rem;
}

.catalog-item-preview .wf-preview p,
.catalog-item-preview .wf-preview blockquote,
.catalog-item-preview .wf-kicker,
.catalog-item-preview .wf-author,
.catalog-item-preview .wf-nav-links span,
.catalog-item-preview .wf-nav-utility,
.catalog-item-preview .wf-footer-columns span,
.catalog-item-preview .wf-mini-card,
.catalog-item-preview .wf-faq-item,
.catalog-item-preview .wf-stat,
.catalog-item-preview .wf-map-copy p {
    font-size: 0.72rem;
}

.wireframe-board {
    min-width: 100%;
    width: 100%;
    padding: 1rem 1.5rem 4rem;
}

.wireframe-shell {
    width: min(100%, 58rem);
}

.wireframe-page-frame {
    padding: 1.4rem;
    border-radius: 2rem;
    border: 1px solid rgba(29, 44, 33, 0.08);
    background: rgba(255, 255, 255, 0.56);
    box-shadow: 0 24px 44px rgba(37, 33, 24, 0.08);
}

.wireframe-page-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wireframe-page-header h2 {
    margin: 0.15rem 0 0;
    font-size: 1.45rem;
}

.wireframe-stack {
    display: grid;
    gap: 0.9rem;
}

.wireframe-stack.is-empty {
    min-height: 18rem;
    align-content: center;
}

.wireframe-insert-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 2.5rem;
}

.wireframe-insert-slot::before {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(15, 118, 110, 0.18);
    margin-right: 0.9rem;
}

.wireframe-insert-slot::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(15, 118, 110, 0.18);
    margin-left: 0.9rem;
}

.wireframe-insert {
    position: relative;
    z-index: 1;
}

.wireframe-block {
    display: grid;
    gap: 0.95rem;
    padding: 1.15rem;
    border-radius: 1.6rem;
    border: 1px solid rgba(29, 44, 33, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 30px rgba(44, 38, 28, 0.08);
    cursor: pointer;
}

.wireframe-block.selected {
    border-color: rgba(15, 118, 110, 0.34);
    box-shadow: 0 20px 34px rgba(15, 118, 110, 0.14);
}

.wireframe-block-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.block-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wireframe-block-order {
    color: var(--muted);
    font-size: 0.82rem;
}

.wf-preview {
    display: grid;
    gap: 0.9rem;
}

.wf-preview h3,
.wf-preview p,
.wf-preview blockquote {
    margin: 0;
}

.wf-kicker,
.wf-author {
    color: var(--muted);
    font-size: 0.83rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wf-nav-line,
.wf-nav-links,
.wf-stat-row,
.wf-stat-grid {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.wf-nav-line {
    justify-content: space-between;
    padding: 0.4rem 0.55rem;
    border-radius: 1rem;
    background: rgba(20, 34, 25, 0.04);
}

.wf-nav-links {
    flex-wrap: wrap;
    justify-content: center;
}

.wf-nav-links span,
.wf-nav-utility {
    color: var(--muted);
    font-size: 0.82rem;
}

.wf-nav-links.centered {
    justify-content: center;
}

.wf-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.wf-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--accent-strong);
    font-weight: 600;
}

.wf-pill.ghost {
    background: rgba(20, 34, 25, 0.06);
    color: var(--muted);
}

.wf-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.65rem;
}

.wf-mini-card {
    min-height: 5rem;
    padding: 0.85rem;
    border-radius: 1rem;
    border: 1px dashed rgba(15, 118, 110, 0.22);
    background: rgba(217, 241, 235, 0.36);
    font-weight: 600;
}

.wf-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1rem;
}

.wf-columns.hero-layout,
.wf-columns.case-layout,
.wf-columns.form-layout,
.wf-columns.map-layout {
    align-items: stretch;
}

.wf-columns aside {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(20, 34, 25, 0.05);
    color: var(--muted);
}

.wf-media-panel,
.wf-map-panel {
    min-height: 10rem;
    border-radius: 1.2rem;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0.05)),
        rgba(20, 34, 25, 0.05);
    border: 1px dashed rgba(15, 118, 110, 0.22);
}

.wf-media-panel.tall {
    min-height: 12rem;
}

.wf-hero-copy,
.wf-case-copy,
.wf-map-copy {
    display: grid;
    gap: 0.7rem;
}

.wf-stat-row,
.wf-stat-grid {
    flex-wrap: wrap;
}

.wf-stat {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(20, 34, 25, 0.06);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.wf-faq-list {
    display: grid;
    gap: 0.5rem;
}

.wf-faq-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.9rem;
    background: rgba(20, 34, 25, 0.05);
}

.wf-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.75rem;
}

.wf-portfolio-card {
    display: grid;
    gap: 0.5rem;
}

.wf-portfolio-thumb {
    min-height: 6rem;
    border-radius: 1rem;
    border: 1px dashed rgba(15, 118, 110, 0.24);
    background:
        linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(15, 118, 110, 0.04)),
        rgba(255, 255, 255, 0.62);
}

.wf-form-card {
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: 1.1rem;
    background: rgba(20, 34, 25, 0.04);
}

.wf-form-field {
    min-height: 2.3rem;
    display: flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(29, 44, 33, 0.08);
    background: rgba(255, 255, 255, 0.88);
    color: var(--muted);
}

.wf-map-panel {
    position: relative;
    display: grid;
    place-items: center;
}

.wf-map-pin {
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.84);
    box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.14);
}

.wf-preview blockquote {
    padding: 1rem 1.1rem;
    border-left: 3px solid rgba(15, 118, 110, 0.34);
    border-radius: 0 1rem 1rem 0;
    background: rgba(20, 34, 25, 0.04);
}

.wf-footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.wf-footer-columns span {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(20, 34, 25, 0.06);
    color: var(--muted);
}

.wireframe-empty {
    display: grid;
    place-items: center;
    min-height: 15rem;
    padding: 1.5rem;
    border: 1px dashed rgba(15, 118, 110, 0.18);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.4);
    color: var(--muted);
}

@media (max-width: 1320px) {
    .workspace {
        grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr) minmax(18rem, 22rem);
    }

    .inspector {
        grid-column: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .inspector .panel-section,
    .inspector .page-form {
        height: auto;
    }

    #workspace.inspector-hidden {
        grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
    }
}

@media (max-width: 980px) {
    .top-actions {
        justify-content: stretch;
    }

    .mode-switch {
        width: 100%;
        justify-content: stretch;
    }

    .mode-switch .toggle-chip {
        flex: 1;
        min-width: 0;
    }

    .wireframe-board {
        padding-inline: 0.75rem;
    }

    .wireframe-page-header,
    .wf-columns {
        grid-template-columns: 1fr;
        display: grid;
    }

    .catalog-items {
        grid-template-columns: 1fr;
    }
}

:root {
    --bg: #f7eef0;
    --bg-deep: #f3dde3;
    --panel: rgba(255, 250, 251, 0.88);
    --panel-strong: rgba(255, 255, 255, 0.96);
    --line: rgba(71, 71, 71, 0.11);
    --line-strong: rgba(71, 71, 71, 0.2);
    --text: #474747;
    --muted: #75646a;
    --accent: #dc475a;
    --accent-soft: rgba(220, 71, 90, 0.12);
    --accent-strong: #b93a4d;
    --warm: #e96f2d;
    --danger: #b33c4d;
    --danger-soft: rgba(179, 60, 77, 0.1);
    --shadow-lg: 0 24px 60px rgba(71, 71, 71, 0.14);
    --shadow-md: 0 18px 36px rgba(71, 71, 71, 0.12);
    --shadow-sm: 0 10px 20px rgba(71, 71, 71, 0.08);
    --connector: rgba(220, 71, 90, 0.26);
    --grid: rgba(71, 71, 71, 0.045);
    --wf-bg: #f5f5f5;
    --wf-surface: #ffffff;
    --wf-surface-2: #efefef;
    --wf-surface-3: #e3e3e3;
    --wf-line: #d6d6d6;
    --wf-line-strong: #bdbdbd;
    --wf-text: #424242;
    --wf-muted: #858585;
    --wf-shadow: 0 14px 28px rgba(24, 24, 24, 0.08);
}

body {
    background:
        radial-gradient(circle at top left, rgba(220, 71, 90, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(71, 71, 71, 0.08), transparent 26%),
        linear-gradient(180deg, #fff9fa 0%, #f8eef0 100%);
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

body::before {
    width: auto;
    height: auto;
    inset: 0;
    border-radius: 0;
    filter: none;
    opacity: 1;
    background-image:
        linear-gradient(rgba(71, 71, 71, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(71, 71, 71, 0.018) 1px, transparent 1px);
    background-size: 32px 32px;
}

body::after {
    width: 32rem;
    height: 32rem;
    right: -6rem;
    bottom: -12rem;
    left: auto;
    background: rgba(220, 71, 90, 0.1);
}

.app-header {
    gap: 1.4rem;
    padding: 1rem 1.3rem;
    background:
        linear-gradient(145deg, rgba(71, 71, 71, 0.98), rgba(52, 52, 52, 0.96)),
        linear-gradient(180deg, rgba(220, 71, 90, 0.14), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 42px rgba(32, 24, 27, 0.18);
}

.brand-badge {
    border-radius: 1.15rem;
    background: linear-gradient(145deg, var(--accent), var(--accent-strong));
    box-shadow: 0 14px 26px rgba(220, 71, 90, 0.26);
}

.brand-copy .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.brand-copy h1 {
    margin-top: 0;
    color: #ffffff;
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    font-size: clamp(1.55rem, 2vw, 2.2rem);
    letter-spacing: 0.02em;
}

.top-actions {
    align-items: center;
}

.app-header .top-actions > button,
.app-header .mode-switch {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.app-header .top-actions > button:hover,
.app-header .mode-switch:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.app-header .top-actions > .primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.view-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.toggle-chip {
    color: rgba(255, 255, 255, 0.76);
}

.toggle-chip.active {
    background: #ffffff;
    color: var(--accent-strong);
    box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.panel-section,
.board-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 250, 0.84));
    border-color: rgba(71, 71, 71, 0.08);
}

.panel-section h2,
.section-kicker,
.block-chip,
.mini-pill,
.status-message.success {
    color: var(--accent-strong);
}

.mini-pill,
.block-chip {
    background: var(--accent-soft);
}

.outline-item.selected {
    background: rgba(220, 71, 90, 0.1);
    border-color: rgba(220, 71, 90, 0.16);
}

.page-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 249, 0.9));
}

.page-card.selected {
    border-color: rgba(220, 71, 90, 0.3);
    box-shadow: 0 24px 44px rgba(220, 71, 90, 0.14);
}

.page-card.drag-target {
    background: linear-gradient(180deg, rgba(255, 244, 246, 0.98), rgba(255, 250, 252, 0.92));
    border-color: rgba(220, 71, 90, 0.34);
}

.page-card[data-page-type="hub"]::before {
    background: linear-gradient(90deg, var(--accent) 0%, #f06d88 100%);
}

.page-card[data-page-type="landing"]::before {
    background: linear-gradient(90deg, var(--warm) 0%, #f4a261 100%);
}

.page-card[data-page-type="resource"]::before {
    background: linear-gradient(90deg, #7a6373 0%, #aa8f9d 100%);
}

.board-viewport {
    background:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.38) 44%, transparent 70%),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: auto, 2rem 2rem, 2rem 2rem;
}

.catalog-dialog {
    width: min(94rem, calc(100vw - 2rem));
    padding: 1.25rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 250, 0.96));
    border-color: rgba(71, 71, 71, 0.08);
}

.catalog-category {
    background: rgba(255, 255, 255, 0.74);
}

.catalog-summary-count {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.catalog-items {
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 1rem;
}

.catalog-empty {
    display: grid;
    place-items: center;
    min-height: 9rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(71, 71, 71, 0.14);
    background: rgba(255, 255, 255, 0.74);
    color: #8a8a8a;
    text-align: center;
    font-weight: 600;
}

.catalog-item {
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: start;
    min-height: 20rem;
    padding: 0.95rem;
}

.catalog-item-preview {
    min-height: 13.5rem;
    padding: 0;
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.98), rgba(242, 242, 242, 0.94));
}

.catalog-desktop {
    display: grid;
    height: 100%;
    grid-template-rows: auto 1fr;
    background: #f8f8f8;
}

.catalog-desktop-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.7rem;
    background: #ececec;
    border-bottom: 1px solid #dddddd;
}

.catalog-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #cfcfcf;
}

.catalog-desktop-url {
    margin-left: 0.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: #ffffff;
    color: #8a8a8a;
    font-size: 0.72rem;
}

.catalog-desktop-canvas {
    padding: 0.8rem 0.9rem 0.95rem;
}

.catalog-item-preview .wf-preview {
    gap: 0.65rem;
}

.catalog-item-preview .wf-preview h3 {
    font-size: 0.9rem;
}

.catalog-item-preview .wf-preview strong,
.catalog-item-preview .wf-preview p,
.catalog-item-preview .wf-preview blockquote,
.catalog-item-preview .wf-preview span {
    font-size: 0.72rem;
}

.wireframe-page-frame {
    background: rgba(255, 255, 255, 0.72);
}

.wireframe-block {
    background: rgba(255, 255, 255, 0.98);
}

.wireframe-block.selected {
    border-color: rgba(220, 71, 90, 0.26);
    box-shadow: 0 18px 32px rgba(220, 71, 90, 0.1);
}

.wireframe-insert-slot::before,
.wireframe-insert-slot::after {
    background: rgba(189, 189, 189, 0.7);
}

.wf-preview,
.wf-preview h3,
.wf-preview p,
.wf-preview strong,
.wf-preview blockquote,
.wf-preview span {
    color: var(--wf-text);
}

.wf-preview {
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, var(--wf-surface) 0%, #fafafa 100%);
    border: 1px solid var(--wf-line);
    box-shadow: var(--wf-shadow);
}

.wf-kicker,
.wf-author,
.wf-nav-utility,
.wf-map-copy p,
.wf-footer-columns span,
.wf-stat,
.wf-nav-links span,
.wf-mini-card,
.wf-faq-item,
.wf-form-field {
    color: var(--wf-muted);
}

.wf-nav-line,
.wf-utility-strip,
.wf-subnav-row,
.wf-proof-strip,
.wf-nav-brand-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.wf-nav-line {
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    border-radius: 0.9rem;
    background: var(--wf-surface-2);
}

.wf-nav-line.is-dark {
    background: #4a4a4a;
}

.wf-nav-line.is-dark,
.wf-nav-line.is-dark strong,
.wf-nav-line.is-dark span {
    color: #f6f6f6;
}

.wf-nav-brand-row {
    justify-content: space-between;
}

.wf-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.wf-nav-links.centered {
    justify-content: center;
}

.wf-nav-links.spread {
    justify-content: center;
    flex: 1;
}

.wf-nav-links.compact span,
.wf-nav-links.pills span {
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    background: var(--wf-surface);
    border: 1px solid var(--wf-line);
}

.wf-button-cluster {
    display: flex;
    gap: 0.45rem;
}

.wf-utility-strip,
.wf-subnav-row,
.wf-proof-strip {
    justify-content: space-between;
    padding: 0.45rem 0.7rem;
    border-radius: 0.8rem;
    background: var(--wf-surface-2);
}

.wf-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.wf-brand-dot,
.wf-map-pin,
.wf-timeline-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: var(--wf-line-strong);
}

.wf-pill {
    min-height: 2rem;
    padding: 0.45rem 0.8rem;
    background: var(--wf-surface-3);
    color: var(--wf-text);
    border: 1px solid var(--wf-line);
}

.wf-pill.ghost {
    background: var(--wf-surface);
    color: var(--wf-muted);
}

.wf-stat,
.wf-footer-columns span,
.wf-form-field {
    background: var(--wf-surface);
    border: 1px solid var(--wf-line);
}

.wf-form-card {
    background: var(--wf-surface-2);
    border: 1px solid var(--wf-line);
}

.wf-preview blockquote {
    border-left-color: var(--wf-line-strong);
    background: var(--wf-surface-2);
}

.wf-columns aside,
.wf-support-card,
.wf-contact-card,
.wf-cta-card,
.wf-proof-panel,
.wf-booking-card {
    padding: 0.95rem;
    border-radius: 1rem;
    background: var(--wf-surface-2);
    border: 1px solid var(--wf-line);
}

.wf-media-panel,
.wf-map-panel,
.wf-app-shot,
.wf-gallery-cell,
.wf-masonry-card,
.wf-portfolio-thumb,
.wf-proof-card {
    border: 1px solid var(--wf-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(0, 0, 0, 0)),
        linear-gradient(135deg, #ededed, #f7f7f7);
}

.wf-media-panel,
.wf-map-panel {
    min-height: 10rem;
}

.wf-media-panel.wide {
    min-height: 13rem;
}

.wf-gallery-strip,
.wf-gallery-stack,
.wf-gallery-wall,
.wf-card-stack,
.wf-project-list,
.wf-timeline-list {
    display: grid;
    gap: 0.7rem;
}

.wf-gallery-strip {
    grid-template-columns: minmax(0, 1fr) 0.8fr;
}

.wf-gallery-cell {
    min-height: 5rem;
    border-radius: 1rem;
}

.wf-gallery-cell.tall {
    min-height: 11rem;
}

.wf-app-shot {
    display: grid;
    gap: 0.7rem;
    min-height: 12rem;
    padding: 0.85rem;
    border-radius: 1rem;
}

.wf-app-toolbar {
    height: 1rem;
    border-radius: 999px;
    background: var(--wf-surface);
    border: 1px solid var(--wf-line);
}

.wf-app-grid,
.wf-calendar-grid,
.wf-pricing-lines,
.wf-cta-lines {
    border-radius: 0.9rem;
    background-image:
        linear-gradient(var(--wf-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--wf-line) 1px, transparent 1px);
    background-size: 1rem 1rem;
    background-color: rgba(255, 255, 255, 0.65);
}

.wf-app-grid {
    min-height: 8rem;
}

.wf-bullet-list,
.wf-logo-row,
.wf-legal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wf-bullet-list span,
.wf-logo,
.wf-legal-row span {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: var(--wf-surface-2);
    border: 1px solid var(--wf-line);
}

.wf-card-stack.horizontal,
.wf-slider-row,
.wf-before-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.wf-step-grid,
.wf-pricing-grid,
.wf-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.wf-step-card,
.wf-pricing-card,
.wf-slider-card,
.wf-case-card,
.wf-before-card,
.wf-team-card,
.wf-quote-card {
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: var(--wf-surface-2);
    border: 1px solid var(--wf-line);
}

.wf-pricing-card.highlighted {
    background: #e8e8e8;
    border-color: var(--wf-line-strong);
}

.wf-step-index {
    font-size: 0.72rem;
    color: var(--wf-muted);
}

.wf-mini-card,
.wf-contact-card {
    min-height: 4.75rem;
    border: 1px solid var(--wf-line);
    background: var(--wf-surface-2);
    color: var(--wf-text);
}

.wf-team-card {
    place-items: start;
}

.wf-team-card.small {
    padding: 0.7rem;
}

.wf-avatar {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: var(--wf-surface-3);
    border: 1px solid var(--wf-line);
}

.wf-masonry-card {
    min-height: 7rem;
    display: flex;
    align-items: end;
    padding: 0.8rem;
    border-radius: 1rem;
}

.wf-masonry-card.tall {
    min-height: 10rem;
}

.wf-slider-card,
.wf-case-card,
.wf-before-card {
    align-content: start;
}

.wf-before-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.wf-portfolio-thumb {
    min-height: 6rem;
    border-radius: 0.95rem;
}

.wf-portfolio-thumb.alt {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0)),
        linear-gradient(135deg, #dfdfdf, #f4f4f4);
}

.wf-project-row,
.wf-comparison-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    background: var(--wf-surface-2);
    border: 1px solid var(--wf-line);
}

.wf-comparison-grid {
    display: grid;
    gap: 0.55rem;
}

.wf-newsletter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.wf-cta-lines {
    min-height: 4rem;
}

.wf-calendar-grid {
    min-height: 6rem;
}

.wf-proof-panel,
.wf-booking-card,
.wf-form-card.compact {
    gap: 0.6rem;
}

.wf-footer-columns.dense,
.wf-footer-columns.mega {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    width: 100%;
}

.wf-footer-topline,
.wf-footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.wireframe-empty {
    border-color: var(--wf-line);
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1100px) {
    .catalog-items {
        grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    }
}

@media (max-width: 980px) {
    .app-header {
        padding: 1rem;
    }

    .app-header .top-actions > button,
    .app-header .mode-switch {
        width: 100%;
    }

    .catalog-dialog {
        width: min(100vw - 1rem, 94rem);
    }

    .catalog-items,
    .wf-step-grid,
    .wf-pricing-grid,
    .wf-masonry-grid,
    .wf-card-stack.horizontal,
    .wf-slider-row,
    .wf-before-grid {
        grid-template-columns: 1fr;
    }

    .catalog-desktop-canvas {
        padding: 0.7rem;
    }
}

.image-field-card {
    display: grid;
    gap: 0.7rem;
    padding: 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(71, 71, 71, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.image-field-preview {
    overflow: hidden;
    min-height: 10rem;
    border-radius: 0.95rem;
    border: 1px dashed var(--wf-line-strong);
    background: linear-gradient(180deg, #f2f2f2, #e6e6e6);
}

.image-field-preview img {
    display: block;
    width: 100%;
    height: 10rem;
    object-fit: cover;
    filter: grayscale(100%);
}

.image-field-placeholder {
    display: grid;
    place-items: center;
    min-height: 10rem;
    color: var(--wf-muted);
    font-weight: 600;
}

.image-field-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.image-field-actions > * {
    flex: 1;
}

.wf-preview {
    position: relative;
    overflow: hidden;
}

.wf-content-copy,
.wf-feature-copy,
.wf-story-copy {
    display: grid;
    gap: 0.7rem;
}

.wf-image-frame {
    position: relative;
    overflow: hidden;
    min-height: 10rem;
    border-radius: 1rem;
    border: 1px solid var(--wf-line);
    background: linear-gradient(135deg, #ededed, #f7f7f7);
}

.wf-image-frame.cover {
    position: absolute;
    inset: 0;
    min-height: 100%;
    border-radius: inherit;
}

.wf-image-frame.portrait-panel {
    min-height: 15rem;
}

.wf-image-frame.content-photo,
.wf-image-frame.portrait-panel.small {
    min-height: 12.5rem;
}

.wf-image-fill {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.wf-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    color: var(--wf-muted);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wf-preview.wf-hero-shell.full-bleed,
.wf-preview.wf-content-shell.image-band,
.wf-preview.wf-portfolio-shell.feature-image,
.wf-preview.wf-conversion-shell.cta-image,
.wf-preview.wf-contact-shell.cover-image,
.wf-preview.wf-footer-shell.image-band {
    min-height: 16rem;
}

.wf-cover-overlay {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.7rem;
    min-height: 14rem;
    align-content: end;
    padding: 1.2rem;
    background: linear-gradient(180deg, rgba(245, 245, 245, 0.08), rgba(255, 255, 255, 0.78));
}

.wf-cover-overlay.compact {
    min-height: 10rem;
}

.wf-image-collage {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 0.8fr;
    gap: 0.7rem;
}

.wf-image-collage .collage-main {
    min-height: 12rem;
}

.wf-hero-shell.photo-split .hero-layout,
.wf-contact-shell.studio-photo .wf-columns,
.wf-content-shell.image-split .wf-columns,
.wf-conversion-shell.testimonial-portrait .wf-columns {
    align-items: center;
}

.live-preview-modal[hidden] {
    display: none;
}

.live-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.live-preview-dialog {
    position: relative;
    z-index: 1;
    width: min(110rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    margin: 1rem auto;
    padding: 1.2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(71, 71, 71, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-lg);
}

.live-preview-canvas {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1.5rem;
    background:
        linear-gradient(rgba(71, 71, 71, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(71, 71, 71, 0.018) 1px, transparent 1px),
        linear-gradient(180deg, #fbfbfb 0%, #f3f3f3 100%);
    background-size: 24px 24px, 24px 24px, auto;
    border: 1px solid rgba(71, 71, 71, 0.06);
}

.live-preview-shell {
    display: grid;
    gap: 1rem;
    width: min(100%, 88rem);
    margin: 0 auto;
}

.live-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(71, 71, 71, 0.08);
}

.live-preview-header h3 {
    margin: 0.15rem 0 0;
    font-size: 1.2rem;
}

.live-preview-page {
    display: grid;
    gap: 1rem;
}

.live-preview-section .wf-preview {
    min-height: auto;
    padding: 1.2rem;
}

.live-preview-section .wf-preview.wf-hero-shell.full-bleed,
.live-preview-section .wf-preview.wf-content-shell.image-band,
.live-preview-section .wf-preview.wf-portfolio-shell.feature-image,
.live-preview-section .wf-preview.wf-conversion-shell.cta-image,
.live-preview-section .wf-preview.wf-contact-shell.cover-image,
.live-preview-section .wf-preview.wf-footer-shell.image-band {
    min-height: 20rem;
}

@media (max-width: 980px) {
    .image-field-actions {
        flex-direction: column;
    }

    .live-preview-dialog {
        width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .live-preview-canvas {
        padding: 0.7rem;
    }

    .live-preview-header,
    .wf-image-collage {
        grid-template-columns: 1fr;
        display: grid;
    }
}

.wf-image-frame.is-action {
    padding: 0;
    cursor: pointer;
    background: linear-gradient(135deg, #ededed, #f7f7f7);
}

.wf-image-frame.is-action:hover {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 3px rgba(220, 71, 90, 0.08);
}

.wf-image-action {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    z-index: 1;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--wf-text);
    font-size: 0.72rem;
    font-weight: 700;
}

.site-preview-shell {
    width: min(100%, 92rem);
}

.site-preview-browser {
    overflow: hidden;
    border-radius: 1.6rem;
    border: 1px solid rgba(71, 71, 71, 0.08);
    background: #ffffff;
    box-shadow: 0 24px 54px rgba(41, 33, 36, 0.16);
}

.site-preview-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.85rem;
    background: #f5edf0;
    border-bottom: 1px solid rgba(71, 71, 71, 0.08);
}

.site-preview-page {
    background: #fffafc;
}

.site-section,
.site-footer {
    position: relative;
    overflow: hidden;
}

.site-section.muted {
    background: linear-gradient(180deg, #fff4f6 0%, #ffffff 100%);
}

.site-container {
    width: min(100%, 75rem);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-container.narrow {
    width: min(100%, 62rem);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255, 250, 252, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(71, 71, 71, 0.08);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5rem;
}

.site-brand {
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    font-size: 1.35rem;
    color: #2e2e2e;
}

.site-nav-links,
.site-footer-links,
.site-logo-row,
.site-btn-row,
.site-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.site-nav-links span,
.site-footer-links span,
.site-logo,
.site-stat {
    color: #6c5b63;
    font-size: 0.95rem;
}

.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.site-btn.secondary {
    background: rgba(220, 71, 90, 0.1);
    color: var(--accent-strong);
}

.site-hero,
.site-section {
    padding: 5rem 0;
}

.site-grid {
    display: grid;
    gap: 2rem;
}

.site-grid.two-up {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
}

.site-copy {
    display: grid;
    gap: 1rem;
}

.site-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--accent-strong);
}

.site-copy h1,
.site-copy h2,
.site-section-head h2,
.site-feature-copy h2,
.site-testimonial h2,
.site-note-card h2 {
    margin: 0;
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    line-height: 0.96;
    color: #2f2b2d;
}

.site-copy h1 {
    font-size: clamp(2.7rem, 5vw, 4.7rem);
}

.site-copy h2,
.site-section-head h2,
.site-feature-copy h2,
.site-testimonial h2,
.site-note-card h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.site-copy p,
.site-section-head p,
.site-card p,
.site-note-card p,
.site-testimonial blockquote,
.site-feature-copy p {
    margin: 0;
    color: #62555b;
    line-height: 1.7;
}

.site-stat {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(220, 71, 90, 0.08);
    color: var(--accent-strong);
    font-weight: 700;
}

.site-media,
.site-feature-media,
.site-cover-media,
.site-map-card,
.site-media-fill {
    position: relative;
    overflow: hidden;
    min-height: 20rem;
    border-radius: 1.6rem;
    background: linear-gradient(135deg, #ede4e8, #f8f2f4);
    border: 1px solid rgba(71, 71, 71, 0.08);
}

.site-media.portrait {
    min-height: 29rem;
}

.site-cover-media {
    position: absolute;
    inset: 0;
    min-height: 100%;
    border-radius: 0;
}

.site-media img,
.site-feature-media img,
.site-cover-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-media-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    color: #8e7f86;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-app-frame,
.site-form-card,
.site-note-card,
.site-testimonial,
.site-pricing-card,
.site-project-card,
.site-card,
.site-feature-project,
.site-cta-panel {
    border-radius: 1.6rem;
    border: 1px solid rgba(71, 71, 71, 0.08);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(41, 33, 36, 0.08);
}

.site-app-frame {
    display: grid;
    gap: 1rem;
    min-height: 24rem;
    padding: 1rem;
}

.site-app-toolbar {
    height: 1rem;
    border-radius: 999px;
    background: rgba(220, 71, 90, 0.14);
}

.site-app-canvas,
.site-project-thumb {
    flex: 1;
    min-height: 16rem;
    border-radius: 1.2rem;
    background-image:
        linear-gradient(rgba(220, 71, 90, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 71, 90, 0.08) 1px, transparent 1px);
    background-size: 18px 18px;
    background-color: #fff7f9;
}

.site-collage,
.site-stack {
    display: grid;
    gap: 0.8rem;
}

.site-collage {
    grid-template-columns: minmax(0, 1.1fr) 0.8fr;
}

.site-media-fill.small {
    min-height: 9rem;
}

.site-cover-overlay {
    position: relative;
    z-index: 1;
    padding: 6.5rem 0 5rem;
    background: linear-gradient(180deg, rgba(30, 21, 25, 0.16), rgba(52, 35, 42, 0.58));
}

.site-cover-overlay.soft {
    background: linear-gradient(180deg, rgba(30, 21, 25, 0.1), rgba(255, 250, 252, 0.76));
}

.site-cover-overlay h1,
.site-cover-overlay h2,
.site-cover-overlay p,
.site-cover-overlay strong,
.site-cover-overlay .site-kicker {
    color: #ffffff;
}

.site-cover-overlay.soft h2,
.site-cover-overlay.soft p,
.site-cover-overlay.soft strong,
.site-cover-overlay.soft .site-kicker {
    color: #2f2b2d;
}

.site-section-head {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.site-section-head.compact {
    margin-bottom: 1.1rem;
}

.site-card-grid {
    display: grid;
    gap: 1rem;
}

.site-card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-card-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-card,
.site-project-card,
.site-pricing-card,
.site-testimonial,
.site-form-card,
.site-note-card {
    padding: 1.2rem;
}

.site-card strong,
.site-project-card strong,
.site-pricing-card strong,
.site-footer-brand {
    color: #2f2b2d;
    font-size: 1.05rem;
}

.site-card.person,
.site-card.step {
    gap: 0.7rem;
    display: grid;
}

.site-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(220, 71, 90, 0.14), rgba(233, 111, 45, 0.14));
}

.site-step-index {
    color: var(--accent-strong);
    font-weight: 800;
}

.site-list {
    display: grid;
    gap: 0.8rem;
}

.site-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(71, 71, 71, 0.08);
    background: #ffffff;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(71, 71, 71, 0.08);
    background: #ffffff;
    font-weight: 700;
}

.site-feature-project {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0;
    overflow: hidden;
    padding: 0;
}

.site-feature-copy {
    display: grid;
    gap: 1rem;
    padding: 1.6rem;
}

.site-testimonial blockquote {
    padding: 0;
    border: 0;
}

.site-testimonial.large {
    display: grid;
    gap: 1rem;
}

.site-pricing-card.featured {
    background: linear-gradient(180deg, #fff2f5 0%, #ffffff 100%);
}

.site-pricing-card,
.site-project-card {
    display: grid;
    gap: 0.9rem;
}

.site-form-card {
    display: grid;
    gap: 0.8rem;
}

.site-form-field {
    min-height: 3rem;
    display: flex;
    align-items: center;
    padding: 0.7rem 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(71, 71, 71, 0.08);
    background: #fdf7f9;
    color: #7a6870;
}

.site-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
}

.site-footer {
    padding: 3rem 0;
    background: #2f2b2d;
}

.site-footer-cover {
    background: transparent;
}

.site-footer .site-footer-brand,
.site-footer .site-footer-links span {
    color: #ffffff;
}

.site-footer .site-container {
    display: grid;
    gap: 1rem;
}

@media (max-width: 1100px) {
    .site-grid.two-up,
    .site-feature-project,
    .site-card-grid.three,
    .site-card-grid.four,
    .site-collage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .site-nav-inner,
    .site-cta-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav-links,
    .site-btn-row,
    .site-stat-row,
    .site-footer-links {
        justify-content: flex-start;
    }

    .site-copy h1 {
        font-size: 2.4rem;
    }

    .site-hero,
    .site-section {
        padding: 3.5rem 0;
    }
}
.wf-block-shell,
.site-block-shell {
    display: contents;
}
