.dashboard-phase-list,
.dashboard-summary,
.dashboard-sections,
.dashboard-record-list {
    display: grid;
}

.dashboard-onboarding {
    margin-bottom: 1.5rem;
}

.dashboard-onboarding-header {
    margin-bottom: 1.5rem;
}

.dashboard-onboarding-header h2 {
    margin: 0.25rem 0 0.5rem;
}

.dashboard-onboarding-steps {
    display: grid;
    gap: 1.1rem;
    padding: 0;
    margin: 0 0 1.5rem;
    list-style: none;
    counter-reset: none;
}

.dashboard-onboarding-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.dashboard-onboarding-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: rgba(195, 142, 56, 0.14);
    border: 1px solid rgba(195, 142, 56, 0.3);
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 700;
}

.dashboard-onboarding-step > div {
    display: grid;
    gap: 0.2rem;
}

.dashboard-onboarding-step p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.dashboard-onboarding-cta {
    display: inline-flex;
}

.dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0 0 1.5rem;
}

.dashboard-summary-item,
.dashboard-phase-row,
.dashboard-record-row {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--surface-border);
    background: transparent;
}

.dashboard-summary-item {
    position: relative;
    align-content: start;
    padding: 0.75rem 0.85rem 0.8rem;
    border-radius: var(--radius-medium);
    border: 1px solid rgba(202, 214, 205, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        linear-gradient(135deg, rgba(195, 142, 56, 0.08), transparent 45%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dashboard-summary-item:hover,
.dashboard-phase-row:hover,
.dashboard-record-row:hover {
    border-bottom-color: rgba(226, 173, 87, 0.3);
}

.dashboard-summary-item:hover {
    border-color: rgba(226, 173, 87, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, rgba(226, 173, 87, 0.14), transparent 48%);
}

.dashboard-summary-label,
.dashboard-phase-kicker {
    color: var(--text-muted);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-summary-item strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.1;
}

.dashboard-summary-note,
.dashboard-phase-copy,
.dashboard-demo-copy p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.dashboard-section {
    display: grid;
    gap: 0.4rem;
    align-content: start;
}
.dashboard-demo-copy h2 {
    margin: 0.2rem 0 0;
    font-family: var(--font-display);
    line-height: 1.02;
}
.dashboard-demo-actions {
    display: grid;
    gap: 0.65rem;
}

.dashboard-sections {
    gap: 1.2rem;
}

.dashboard-section {
    padding: 0.8rem 0.9rem 0.85rem;
    border: 1px solid rgba(202, 214, 205, 0.12);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.02);
}

.dashboard-section--activity {
    background: rgba(14, 18, 17, 0.72);
}

.dashboard-section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.dashboard-section-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.dashboard-section-header a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
}

.dashboard-record-list {
    gap: 0;
}

.dashboard-record-top,
.dashboard-record-end {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dashboard-record-row {
    gap: 0.35rem;
    padding: 0.75rem 0;
}

.dashboard-record-list .dashboard-record-row:first-child {
    padding-top: 0.35rem;
}

.dashboard-record-top strong {
    font-size: 1rem;
}

.dashboard-record-end {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.dashboard-demo-band {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.6rem;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid rgba(195, 142, 56, 0.18);
    border-radius: var(--radius-medium);
    background: linear-gradient(180deg, rgba(39, 49, 44, 0.42), rgba(16, 22, 20, 0.2));
}

.dashboard-demo-copy {
    display: grid;
    gap: 0.5rem;
}

.dashboard-demo-copy h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
}

.topbar-inline-link {
    color: var(--text-secondary);
    font-size: 0.92rem;
    letter-spacing: 0.03em;
}

.topbar-inline-link:hover {
    color: var(--text-primary);
}

.topbar-actions--demo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: end;
    gap: 0.55rem;
}

.topbar-actions--demo .primary-button {
    width: auto;
}

.topbar-actions--demo .secondary-button {
    min-width: 0;
}

.panel,
.detail-card {
    border-radius: var(--radius-medium);
    border: 1px solid rgba(202, 214, 205, 0.1);
    background: rgba(255, 255, 255, 0.015);
    box-shadow: none;
}

.panel {
    padding: 1.15rem 1.05rem;
}

.panel--hero {
    border-color: rgba(195, 142, 56, 0.18);
    background: linear-gradient(180deg, rgba(33, 42, 38, 0.42), rgba(18, 25, 23, 0.26));
    box-shadow: none;
    padding: 1.25rem 1.05rem;
}

.panel--subtle {
    background: transparent;
    box-shadow: none;
}

.panel--primary {
    border-color: rgba(226, 173, 87, 0.2);
    background: linear-gradient(180deg, rgba(34, 43, 39, 0.46), rgba(17, 22, 20, 0.24));
}

.panel--outlined {
    background: transparent;
    border-color: rgba(202, 214, 205, 0.16);
    box-shadow: none;
}

.panel-header,
.detail-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-header h2,
.detail-card-title {
    margin: 0;
    font-size: 1.05rem;
}

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

.form-section {
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-small);
    padding: 0;
    overflow: hidden;
}

.form-section-label {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.form-section-label::-webkit-details-marker {
    display: none;
}

.form-section-label::after {
    content: "▸";
    float: right;
    transition: transform 0.15s ease;
    color: var(--text-muted);
}

.form-section[open] > .form-section-label::after {
    transform: rotate(90deg);
}

.form-section[open] > .form-section-label {
    border-bottom: 1px solid var(--surface-border);
}

.form-section > .field-grid {
    padding: 1rem;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.full-width {
    grid-column: 1 / -1;
}

.toggle-field {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-small);
    border: 1px solid rgba(202, 214, 205, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.toggle-field input {
    width: auto;
    margin: 0.1rem 0 0;
    flex-shrink: 0;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.desktop-only {
    display: none;
}

.primary-button {
    background: var(--accent);
    color: #16110a;
    font-weight: 700;
}

.primary-button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-color: var(--surface-border);
}

.secondary-button:hover {
    border-color: var(--surface-border-strong);
    transform: translateY(-1px);
}

.alert-banner {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-small);
    background: rgba(197, 106, 85, 0.14);
    border: 1px solid rgba(197, 106, 85, 0.32);
    color: #ffd4cb;
}

.info-banner {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-small);
    background: rgba(94, 142, 183, 0.14);
    border: 1px solid rgba(94, 142, 183, 0.28);
    color: #c9ddef;
}

.sign-in-status-card {
    padding: 1rem 1.1rem;
}

.sign-in-secondary-actions {
    width: 100%;
}

.billing-plan-grid {
    align-content: start;
}

.billing-plan-panel {
    align-self: start;
}

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

.billing-plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.billing-plan-amount {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1;
}

.billing-plan-period {
    color: var(--text-muted);
    font-size: 1rem;
}

.billing-plan-description {
    color: var(--text-secondary);
    margin: 0;
}

.billing-plan-features {
    display: grid;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.billing-plan-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.billing-plan-features li::before {
    content: "";
    display: block;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.metric-grid,
.three-column-grid,
.two-column-grid,
.content-grid-wide {
    display: grid;
    gap: 1rem;
}

.metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    margin-bottom: 1rem;
}

.metric-card {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 0 1rem;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--surface-border);
}

.metric-card--link {
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.metric-card--link:hover {
    border-color: rgba(226, 173, 87, 0.26);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.metric-card span {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.metric-card strong {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 7vw, 2rem);
}

.metric-card-action {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.full-span {
    grid-column: 1 / -1;
}

.stack-list,
.activity-list,
.builder-list {
    display: grid;
    gap: 0.8rem;
}

.stack-row,
.stack-row-button,
.selection-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    gap: 0.85rem;
    padding: 1rem 0;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--surface-border);
    background: transparent;
}

.selection-row {
    display: grid;
    justify-content: initial;
    gap: 0.85rem 1rem;
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-small);
    border: 1px solid rgba(202, 214, 205, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.selection-row:has(> input) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
}

.selection-row:not(:has(> input)) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.stack-row strong,
.stack-row-button strong,
.selection-row strong {
    display: block;
}

.stack-row span,
.stack-row-button span,
.selection-row span,
.activity-row p {
    color: var(--text-secondary);
}

.stack-row-end {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.selection-row > .stack-row-end:last-child,
.selection-row > strong:last-child {
    justify-self: end;
    text-align: right;
}

.stack-row-button {
    width: 100%;
    text-align: left;
}

.stack-row-button.is-selected {
    border-bottom-color: rgba(226, 173, 87, 0.42);
    background: linear-gradient(90deg, rgba(195, 142, 56, 0.12) 0, rgba(195, 142, 56, 0.12) 0.18rem, transparent 0.18rem);
    padding-left: 0.9rem;
}

.segmented-control {
    display: grid;
    gap: 0.75rem;
}

.segmented-control__button {
    display: grid;
    gap: 0.15rem;
    align-content: start;
    min-height: 3.25rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-medium);
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    text-align: left;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.segmented-control__button strong {
    font-size: 0.98rem;
}

.segmented-control__button span {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
}

.segmented-control__button.is-selected {
    border-color: rgba(226, 173, 87, 0.4);
    background: rgba(226, 173, 87, 0.08);
    box-shadow: 0 0 0 1px rgba(226, 173, 87, 0.18);
}

.table-card {
    overflow-x: auto;
    padding: 0.35rem;
    border-radius: var(--radius-small);
    border: 1px solid rgba(202, 214, 205, 0.1);
    background: rgba(11, 16, 14, 0.2);
}

.table-card--listing {
    overflow: hidden;
}

.table-card--estimate-lines {
    padding: 0.55rem;
}

.data-table,
.print-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td,
.print-table th,
.print-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--surface-border);
    text-align: left;
    vertical-align: top;
}

.data-table th,
.print-table th {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
}

.data-table--customer-list,
.data-table--property-list {
    table-layout: fixed;
}

.data-table--customer-list th:first-child,
.data-table--customer-list td:first-child,
.data-table--property-list th:first-child,
.data-table--property-list td:first-child {
    width: 34%;
}

.data-table--customer-list th:nth-child(2),
.data-table--customer-list td:nth-child(2) {
    width: 26%;
}

.data-table--customer-list th:nth-child(3),
.data-table--customer-list td:nth-child(3) {
    width: 14%;
}

.data-table--property-list th:nth-child(2),
.data-table--property-list td:nth-child(2) {
    width: 22%;
}

.data-table--property-list th:nth-child(3),
.data-table--property-list td:nth-child(3),
.data-table--property-list th:nth-child(4),
.data-table--property-list td:nth-child(4) {
    width: 12%;
}

.data-table--customer-list th:last-child,
.data-table--customer-list td:last-child,
.data-table--property-list th:last-child,
.data-table--property-list td:last-child {
    width: 16%;
    white-space: nowrap;
}

.data-table--customer-list a,
.data-table--property-list a {
    white-space: nowrap;
}

.data-table--estimate-lines th:nth-child(1),
.data-table--estimate-lines td:nth-child(1) {
    width: 18%;
}

.data-table--estimate-lines th:nth-child(2),
.data-table--estimate-lines td:nth-child(2) {
    width: 26%;
}

.data-table--estimate-lines th:nth-child(3),
.data-table--estimate-lines td:nth-child(3) {
    width: 8%;
}

.data-table--estimate-lines th:nth-child(4),
.data-table--estimate-lines td:nth-child(4),
.data-table--estimate-lines th:nth-child(5),
.data-table--estimate-lines td:nth-child(5) {
    width: 11%;
}

.data-table--estimate-lines th:nth-child(6),
.data-table--estimate-lines td:nth-child(6) {
    width: 16%;
}

.data-table--estimate-lines th:last-child,
.data-table--estimate-lines td:last-child {
    width: 6.5rem;
    white-space: nowrap;
}

.data-table--invoice-lines th:nth-child(1),
.data-table--invoice-lines td:nth-child(1) {
    width: 52%;
}

.data-table--invoice-lines th:nth-child(2),
.data-table--invoice-lines td:nth-child(2) {
    width: 10%;
}

.data-table--invoice-lines th:nth-child(3),
.data-table--invoice-lines td:nth-child(3),
.data-table--invoice-lines th:nth-child(4),
.data-table--invoice-lines td:nth-child(4) {
    width: 19%;
}

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

.mobile-data-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: var(--radius-medium);
    border: 1px solid rgba(202, 214, 205, 0.1);
    background: rgba(255, 255, 255, 0.025);
}

.mobile-data-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem;
}

.mobile-data-card-title {
    display: grid;
    gap: 0.2rem;
}

.mobile-data-card-title strong {
    line-height: 1.35;
}

.mobile-data-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(202, 214, 205, 0.08);
}

.mobile-data-card-grid > div {
    display: grid;
    gap: 0.2rem;
}

.mobile-data-card-grid .detail-label {
    margin-bottom: 0;
}

.mobile-data-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.record-card-list {
    display: grid;
    gap: 0.9rem;
}

.record-card {
    display: grid;
    gap: 1rem;
    padding: 1rem 1rem 1.05rem;
    border-radius: var(--radius-medium);
    border: 1px solid rgba(202, 214, 205, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.record-card--expandable {
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.record-card--expandable.is-expanded {
    border-color: rgba(226, 173, 87, 0.3);
    box-shadow: 0 0 0 1px rgba(226, 173, 87, 0.12);
}

.record-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.record-card-header strong {
    font-size: 1.03rem;
}

.record-card-toggle {
    display: grid;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.record-card-toggle:hover {
    background: rgba(255, 255, 255, 0.02);
}

.record-card-body {
    display: grid;
    gap: 1rem;
    padding: 0 1rem 1rem;
    border-top: 1px solid rgba(202, 214, 205, 0.08);
}

.record-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* List-row actions use a subdued style — reserve primary-button for page-level CTAs */
.record-card-actions .primary-button {
    background: transparent;
    border-color: var(--surface-border-strong);
    color: var(--text-primary);
    box-shadow: none;
}

.record-card-actions .primary-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(226, 173, 87, 0.4);
    color: var(--accent-strong);
}

.record-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 173, 87, 0.18);
    background: rgba(226, 173, 87, 0.08);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.record-meta-grid {
    display: grid;
    gap: 0.9rem;
}

.record-meta-grid strong {
    display: block;
}

.record-meta-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card {
    padding: 1rem;
    border-radius: var(--radius-small);
    border: 1px solid rgba(202, 214, 205, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.mobile-disclosure {
    display: block;
    margin-bottom: 1rem;
}

.mobile-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0 0.85rem;
    list-style: none;
    border-bottom: 1px solid var(--surface-border);
    cursor: pointer;
}

.mobile-disclosure-body,
.mobile-disclosure > .mobile-disclosure-body {
    display: block;
    min-width: 0;
    padding-top: 0.9rem;
}

.mobile-disclosure > summary::-webkit-details-marker {
    display: none;
}

.mobile-disclosure:not([open]) > .mobile-disclosure-body {
    display: none;
}

.utility-disclosure {
    align-self: start;
    padding: 0;
    overflow: hidden;
}

.utility-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    padding: 1rem 1.05rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: 1.08rem;
}

.utility-disclosure-intro {
    display: grid;
    gap: 0.35rem;
}

.utility-disclosure-intro strong {
    font-family: var(--font-display);
    font-size: 1.08rem;
}

.utility-disclosure-intro span {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
}

.utility-disclosure-action {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 173, 87, 0.22);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.utility-disclosure--starter[open] .utility-disclosure-action {
    background: rgba(226, 173, 87, 0.08);
}

.utility-disclosure > summary::-webkit-details-marker {
    display: none;
}

.utility-disclosure-body {
    padding: 0 1.05rem 1.05rem;
    border-top: 1px solid rgba(202, 214, 205, 0.08);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.photo-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-medium);
    border: 1px solid var(--surface-border);
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state h3 {
    margin: 0 0 0.4rem;
    color: var(--text-primary);
}

.empty-state .primary-button,
.empty-state .secondary-button {
    margin-top: 1rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-pill.success {
    background: rgba(79, 157, 105, 0.18);
    color: #9ed0ad;
}

.status-pill.warning {
    background: rgba(214, 160, 70, 0.18);
    color: #f0c87e;
}

.status-pill.danger {
    background: rgba(197, 106, 85, 0.18);
    color: #f0b3a4;
}

.status-pill.info {
    background: rgba(94, 142, 183, 0.18);
    color: #a7c7e0;
}

.status-pill.neutral {
    background: rgba(255, 255, 255, 0.13);
    color: var(--text-secondary);
    border: 1px solid rgba(202, 214, 205, 0.14);
}

.status-pill::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.45rem;
    border-radius: 999px;
    background: currentColor;
}

.activity-row {
    padding: 1rem 0 1rem 0.9rem;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--surface-border);
    border-left: 3px solid rgba(202, 214, 205, 0.12);
}

.activity-row strong,
.activity-row p {
    margin: 0 0 0.3rem;
}

.activity-row--success {
    border-left-color: var(--success);
}

.activity-row--accent {
    border-left-color: var(--accent-strong);
}

.activity-row--warning {
    border-left-color: var(--warning);
}

.activity-row--info {
    border-left-color: var(--info);
}

.builder-tree-card {
    padding: 1rem;
    border-radius: var(--radius-small);
    border: 1px solid rgba(202, 214, 205, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.detail-card--danger {
    border-color: rgba(197, 106, 85, 0.3);
    background: rgba(197, 106, 85, 0.08);
}

.button-danger {
    border-color: rgba(197, 106, 85, 0.42);
    color: #f0b3a4;
}

.button-danger:hover {
    background: rgba(197, 106, 85, 0.12);
}

.modal-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.modal-dialog-close svg {
    width: 0.95rem;
    height: 0.95rem;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.modal-dialog > p {
    margin: 0 0 1rem;
}

.builder-tree-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.selection-row {
    margin-top: 0.75rem;
}

.selection-row input {
    width: auto;
    margin: 0.2rem 0 0;
    accent-color: var(--accent-strong);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.25rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.total-strip {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--surface-border);
    border-radius: 0;
    background: transparent;
}

.print-shell {
    padding: 2rem;
    background: #f6f2ea;
    color: #1e241f;
}

.print-actions {
    display: flex;
    justify-content: end;
    margin-bottom: 1rem;
}

.print-document {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 24px;
    background: white;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.print-document--paid {
    position: relative;
}

.print-stamp {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.45rem 0.9rem;
    border: 3px solid #2f7d32;
    border-radius: 999px;
    color: #2f7d32;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    transform: rotate(-12deg);
}

.print-document-frame {
    display: block;
    width: min(100%, 960px);
    min-height: 72rem;
    margin: 0 auto;
    border: 0;
    border-radius: 24px;
    background: white;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.print-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.print-header h1 {
    margin: 0.3rem 0 0;
}

.print-meta {
    display: grid;
    gap: 0.45rem;
    align-content: start;
    text-align: right;
}

.print-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #d6d2c8;
}

.panel,
.detail-card {
    animation: fadeInUp 0.35s ease both;
}

.stack-row,
.stack-row-button,
.selection-row,
.activity-row,
.builder-tree-card,
.metric-card {
    animation: fadeInUp 0.3s ease both;
}

.stack-list > *:nth-child(1),
.metric-grid > *:nth-child(1),
.builder-list > *:nth-child(1),
.activity-list > *:nth-child(1),
.detail-grid > *:nth-child(1) {
    animation-delay: 0s;
}

.stack-list > *:nth-child(2),
.metric-grid > *:nth-child(2),
.builder-list > *:nth-child(2),
.activity-list > *:nth-child(2),
.detail-grid > *:nth-child(2) {
    animation-delay: 0.04s;
}

.stack-list > *:nth-child(3),
.metric-grid > *:nth-child(3),
.builder-list > *:nth-child(3),
.activity-list > *:nth-child(3),
.detail-grid > *:nth-child(3) {
    animation-delay: 0.08s;
}

.stack-list > *:nth-child(4),
.metric-grid > *:nth-child(4),
.builder-list > *:nth-child(4),
.activity-list > *:nth-child(4),
.detail-grid > *:nth-child(4) {
    animation-delay: 0.12s;
}

.stack-list > *:nth-child(5),
.metric-grid > *:nth-child(5),
.builder-list > *:nth-child(5),
.activity-list > *:nth-child(5) {
    animation-delay: 0.16s;
}

.stack-list > *:nth-child(6),
.metric-grid > *:nth-child(6),
.builder-list > *:nth-child(6),
.activity-list > *:nth-child(6) {
    animation-delay: 0.2s;
}

.stack-list > *:nth-child(7),
.metric-grid > *:nth-child(7),
.builder-list > *:nth-child(7) {
    animation-delay: 0.24s;
}

.stack-list > *:nth-child(8),
.metric-grid > *:nth-child(8),
.builder-list > *:nth-child(8) {
    animation-delay: 0.28s;
}

.stack-list > *:nth-child(9),
.metric-grid > *:nth-child(9) {
    animation-delay: 0.32s;
}

.stack-list > *:nth-child(n+10),
.metric-grid > *:nth-child(n+10),
.builder-list > *:nth-child(n+10),
.activity-list > *:nth-child(n+10) {
    animation-delay: 0.36s;
}

.stack-row-button {
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.stack-row-button.is-selected {
    box-shadow: 0 0 0 1px rgba(226, 173, 87, 0.2);
}

.stack-row-button:active {
    transform: scale(0.985);
}

.table-card {
    animation: fadeIn 0.3s ease both;
}

.landing-hero {
    animation: fadeInUp 0.6s ease both;
}

.landing-hero-point:nth-child(1) { animation: fadeInUp 0.4s ease 0.15s both; }
.landing-hero-point:nth-child(2) { animation: fadeInUp 0.4s ease 0.22s both; }
.landing-hero-point:nth-child(3) { animation: fadeInUp 0.4s ease 0.29s both; }

.landing-product-frame { animation: scaleIn 0.7s ease 0.2s both; }

.landing-step-card { animation: fadeInUp 0.35s ease both; }
.landing-step-card:nth-child(1) { animation-delay: 0s; }
.landing-step-card:nth-child(2) { animation-delay: 0.06s; }
.landing-step-card:nth-child(3) { animation-delay: 0.12s; }
.landing-step-card:nth-child(4) { animation-delay: 0.18s; }

.landing-output-card { animation: fadeInUp 0.35s ease both; }
.landing-output-card:nth-child(1) { animation-delay: 0s; }
.landing-output-card:nth-child(2) { animation-delay: 0.06s; }
.landing-output-card:nth-child(3) { animation-delay: 0.12s; }

.landing-reason-card { animation: fadeInUp 0.35s ease both; }
.landing-reason-card:nth-child(1) { animation-delay: 0s; }
.landing-reason-card:nth-child(2) { animation-delay: 0.06s; }
.landing-reason-card:nth-child(3) { animation-delay: 0.12s; }

.landing-pricing-card { animation: fadeInUp 0.45s ease both; }
.landing-cta-card { animation: scaleIn 0.5s ease both; }

.skeleton-line {
    height: 0.9rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
}

.skeleton-block {
    height: 4rem;
    border-radius: var(--radius-small);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
}

@media (prefers-reduced-motion: reduce) {

/* ─── Action-needed strip ───────────────────────────────────────────────────── */
.action-needed {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.action-needed-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-medium);
    border: 1px solid rgba(226, 173, 87, 0.3);
    background:
        linear-gradient(135deg, rgba(226, 173, 87, 0.1), rgba(226, 173, 87, 0.03) 55%),
        rgba(255, 255, 255, 0.02);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.action-needed-item:hover {
    border-color: rgba(226, 173, 87, 0.5);
    background:
        linear-gradient(135deg, rgba(226, 173, 87, 0.16), rgba(226, 173, 87, 0.05) 55%),
        rgba(255, 255, 255, 0.03);
}

.action-needed-dot {
    width: 0.5rem;
    height: 0.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-strong);
    box-shadow: 0 0 8px rgba(226, 173, 87, 0.7);
}

.action-needed-body {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

.action-needed-body strong {
    color: var(--text-primary);
    font-size: 0.93rem;
}

.action-needed-body span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.action-needed-cta {
    color: var(--accent-strong);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.action-needed-item--urgent {
    border-color: rgba(220, 90, 80, 0.35);
    background:
        linear-gradient(135deg, rgba(220, 90, 80, 0.1), rgba(220, 90, 80, 0.03) 55%),
        rgba(255, 255, 255, 0.02);
}

.action-needed-item--urgent:hover {
    border-color: rgba(220, 90, 80, 0.55);
    background:
        linear-gradient(135deg, rgba(220, 90, 80, 0.16), rgba(220, 90, 80, 0.05) 55%),
        rgba(255, 255, 255, 0.03);
}

.action-needed-item--urgent .action-needed-dot {
    background: rgb(220, 90, 80);
    box-shadow: 0 0 8px rgba(220, 90, 80, 0.65);
}

.action-needed-item--urgent .action-needed-cta {
    color: rgb(220, 90, 80);
}

.action-needed-cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-small);
    border: 1px solid rgba(226, 173, 87, 0.45);
    background: rgba(226, 173, 87, 0.12);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.action-needed-cta-button:hover {
    border-color: rgba(226, 173, 87, 0.7);
    background: rgba(226, 173, 87, 0.2);
    color: var(--accent-strong);
    text-decoration: none;
}

.action-needed-cta-button--urgent {
    border-color: rgba(220, 90, 80, 0.45);
    background: rgba(220, 90, 80, 0.1);
    color: rgb(220, 90, 80);
}

.action-needed-cta-button--urgent:hover {
    border-color: rgba(220, 90, 80, 0.7);
    background: rgba(220, 90, 80, 0.18);
    color: rgb(220, 90, 80);
}

/* Urgent KPI tile modifier */
.dashboard-summary-item--urgent {
    border-color: rgba(226, 173, 87, 0.36);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(135deg, rgba(226, 173, 87, 0.15), transparent 50%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(226, 173, 87, 0.1);
}

.dashboard-summary-item--urgent .dashboard-summary-label {
    color: var(--accent-strong);
}
