:root {
    --primary: #1E2444;
    --on-primary: #FBF6EC;
    --gold: #E2933F;
    --gold-dark: #C97A2E;
    --surface: #FFFFFF;
    --surface-variant: #F4F1FA;
    --on-surface: #1E2444;
    --muted: #6B6B7D;
    --outline: #E7E3EE;
    --warning: #B45309;
    --warning-surface: #FEF3E2;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--on-surface);
    min-height: 100vh;
    background:
        radial-gradient(60% 50% at 82% 8%, rgba(226, 147, 63, .14) 0%, rgba(226, 147, 63, 0) 70%),
        linear-gradient(180deg, #FBF6EC 0%, #FDFAF3 45%, #F4F1FA 100%);
    background-attachment: fixed;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.tracking-page {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(30, 36, 68, .10), 0 4px 8px rgba(30, 36, 68, .05);
    padding: 2rem;
}

.tracking-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin: 0 0 0.85rem;
}

.tracking-page .work-item-name {
    font-family: "Fraunces", ui-serif, Georgia, serif;
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.status-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface-variant);
    color: var(--accent, var(--primary));
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin: 0 0 1.75rem;
}

.status-label strong { font-weight: 700; }

.progress-track {
    position: relative;
    margin: 0 0 2rem;
}

.progress-track::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--outline);
}

.progress-bar {
    position: relative;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.progress-bar li {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    padding: 0;
}

.stage-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--surface);
    border: 2px solid var(--outline);
    color: var(--muted);
}

.progress-bar li.complete .stage-icon {
    background: var(--accent, var(--primary));
    border-color: var(--accent, var(--primary));
    color: #fff;
}

.progress-bar li.current .stage-icon {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(226, 147, 63, .2);
}

.stage-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--on-surface);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.progress-bar li.upcoming .stage-label {
    color: var(--muted);
}

@media (max-width: 480px) {
    .tracking-page {
        padding: 1.25rem;
    }

    .stage-icon {
        width: 24px;
        height: 24px;
    }

    .progress-track::before {
        top: 12px;
    }

    .progress-bar li {
        gap: 0.35rem;
    }

    .stage-label {
        font-size: 0.62rem;
    }
}

.meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1.25rem;
    font-size: 0.9rem;
    padding: 1rem 0 0;
    border-top: 1px solid var(--outline);
}

.meta dt {
    color: var(--muted);
}

.meta dd {
    margin: 0;
    font-weight: 500;
}

.milestones, .photos, .timeline {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--outline);
}

.milestones h2, .photos h2, .timeline h2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0 0 1rem;
}

.milestones ul, .timeline ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.milestones li, .timeline li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--outline);
    font-size: 0.9rem;
}

.milestones li:last-child, .timeline li:last-child {
    border-bottom: none;
}

.milestones li.done {
    color: var(--on-surface);
}

.milestones li.done::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent, var(--primary));
}

.milestones li.pending {
    color: var(--muted);
}

.milestones li.pending::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--outline);
}

.milestones li span, .timeline li span {
    color: var(--muted);
    font-size: 0.85rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.photo-grid figure {
    margin: 0;
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--outline);
    display: block;
}

.photo-grid figcaption {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.subscribe-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--surface);
    border: 1px solid var(--accent, var(--primary));
    color: var(--accent, var(--primary));
    border-radius: 9999px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.subscribe-trigger:hover {
    background: var(--surface-variant);
}

.subscribe-trigger[aria-expanded="true"] {
    background: var(--accent, var(--primary));
    color: #fff;
}

.subscribe-popover {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 10;
    width: 280px;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(30, 36, 68, .10), 0 4px 8px rgba(30, 36, 68, .05);
    padding: 1rem;
}

.subscribe-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--outline);
    margin-bottom: 0.85rem;
}

.subscribe-tabs [role="tab"] {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0.25rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

.subscribe-tabs [role="tab"][aria-selected="true"] {
    color: var(--accent, var(--primary));
    border-bottom-color: var(--accent, var(--primary));
}

.subscribe-panel form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.subscribe-panel label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.subscribe-panel input {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--outline);
    border-radius: 8px;
    background: var(--surface);
    color: var(--on-surface);
}

.subscribe-panel input:focus {
    outline: 2px solid var(--accent, var(--primary));
    outline-offset: 1px;
}

.subscribe-panel button[type="submit"] {
    background: var(--accent, var(--primary));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 0.35rem;
    transition: opacity 0.15s;
}

.subscribe-panel button[type="submit"]:hover {
    opacity: 0.9;
}

.subscribe-panel button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.subscribe-panel .subscribed-banner {
    margin: 0;
}

.subscribed-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(226, 147, 63, .1);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: var(--on-surface);
    font-size: 0.9rem;
    margin: 0;
}

.subscribed-banner::before {
    content: '\2726';
    color: var(--gold);
    flex-shrink: 0;
    line-height: 1.4;
}

.not-found {
    text-align: center;
    padding: 3rem 2rem;
}

.not-found h1 {
    font-family: "Fraunces", ui-serif, Georgia, serif;
    font-size: 1.6rem;
    margin: 0 0 0.75rem;
}

.not-found p {
    color: var(--muted);
    max-width: 40ch;
    margin: 0 auto;
    line-height: 1.5;
}

.node-details {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--outline);
}

.node-details h2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0 0 1rem;
}

.node-detail {
    border: 1px solid var(--outline);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.node-detail--current {
    border-color: var(--accent, var(--primary));
    box-shadow: 0 0 0 1px var(--accent, var(--primary));
}

.node-detail-body {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

details.node-detail summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

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

details.node-detail[open] summary {
    border-bottom: 1px solid var(--outline);
}

.node-detail-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.node-detail-title {
    font-family: "Fraunces", ui-serif, Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.node-detail-amount, .node-detail-datetime, .node-detail-signed {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.35rem 0 0;
}

.node-detail-error {
    color: #B3261E;
    font-size: 0.85rem;
}

.sign-container {
    margin-top: 0.75rem;
}

.sign-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--accent, var(--primary));
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
}

.sign-trigger:hover {
    opacity: 0.9;
}

.sign-panel {
    margin-top: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--outline);
    border-radius: 12px;
    background: var(--surface);
}

.sign-panel form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sign-panel label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.sign-panel input[type="text"] {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--outline);
    border-radius: 8px;
    background: var(--surface);
    color: var(--on-surface);
}

.sign-panel input[type="text"]:focus {
    outline: 2px solid var(--accent, var(--primary));
    outline-offset: 1px;
}

.signature-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--outline);
    margin-top: 0.25rem;
}

.signature-tabs [role="tab"] {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0.25rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

.signature-tabs [role="tab"][aria-selected="true"] {
    color: var(--accent, var(--primary));
    border-bottom-color: var(--accent, var(--primary));
}

.signature-canvas {
    width: 100%;
    height: 160px;
    display: block;
    border: 1px solid var(--outline);
    border-radius: 8px;
    background: var(--surface);
    touch-action: none;
    cursor: crosshair;
}

.signature-clear {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.25rem 0;
}

.sign-panel button[type="submit"] {
    background: var(--accent, var(--primary));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    align-self: flex-start;
}

.sign-panel button[type="submit"]:hover {
    opacity: 0.9;
}

.sign-panel button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.node-detail-signature-image {
    display: block;
    max-width: 260px;
    max-height: 100px;
    margin: 0.5rem 0 0;
    border: 1px solid var(--outline);
    border-radius: 8px;
    background: var(--surface);
}

.conversation-entries {
    max-height: 20rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding-right: 0.25rem;
}

.conversation-entries [data-entries-empty] {
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--outline);
    background: var(--surface-variant);
    margin: 0 0 0.75rem;
}

.entry-group {
    display: flex;
    flex-direction: column;
}

.entry-group--client {
    align-items: flex-end;
}

.entry-group--creator {
    align-items: flex-start;
}

.entry-date-divider {
    align-self: center;
    font-size: 0.72rem;
    color: var(--muted);
    margin: 0.5rem 0;
}

.entry-bubble-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin: 0 0 0.2rem;
}

.entry-bubble {
    position: relative;
    max-width: 80%;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--outline);
    background: var(--surface-variant);
    margin-top: 0.15rem;
}

.entry-bubble--client {
    background: var(--accent, var(--primary));
    color: #fff;
    border-color: transparent;
}

.entry-bubble--creator {
    background: var(--surface-variant);
}

.entry-bubble--pending {
    opacity: 0.6;
}

.entry-bubble--failed {
    background: #FCEEEE;
    border-color: #E7A9A9;
    color: #8A2C2C;
    cursor: pointer;
}

.entry-bubble-retry {
    margin: 0.3rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
}

.entry-bubble-body {
    font-size: 0.9rem;
    margin: 0;
    white-space: pre-wrap;
}

.entry-bubble-time {
    display: block;
    font-size: 0.68rem;
    opacity: 0;
    margin-top: 0.2rem;
    transition: opacity 0.15s ease;
}

.entry-bubble:hover .entry-bubble-time {
    opacity: 0.7;
}

.entry-bubble-images {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    margin-top: 0.4rem;
    padding-bottom: 2px;
}

.entry-bubble-image-thumb {
    flex: 0 0 110px;
    width: 110px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-variant);
    cursor: zoom-in;
    border: none;
    padding: 0;
}

.entry-bubble-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
}

.image-lightbox-close,
.image-lightbox-prev,
.image-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    cursor: pointer;
}

.image-lightbox-close { top: 1rem; right: 1rem; }
.image-lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.image-lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.unsubscribe-page {
    text-align: center;
    padding: 3rem 2rem;
}

.unsubscribe-page h1 {
    font-family: "Fraunces", ui-serif, Georgia, serif;
    font-size: 1.6rem;
    margin: 0 0 0.75rem;
}

.unsubscribe-page p {
    color: var(--muted);
    max-width: 40ch;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.unsubscribe-page button[type="submit"] {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.15s;
}

.unsubscribe-page button[type="submit"]:hover {
    opacity: 0.9;
}

.composer {
    margin-top: 0.5rem;
}

.composer-bar {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    border: 1px solid var(--outline);
    border-radius: 24px;
    background: var(--surface);
    padding: 0.4rem 0.5rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.composer-bar:focus-within {
    border-color: var(--accent, var(--primary));
    box-shadow: 0 0 0 3px rgba(30, 36, 68, 0.12);
}

.composer-attach {
    position: relative;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.composer-attach:hover {
    background: var(--surface-variant);
}

.composer-attach-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: var(--accent, var(--primary));
    color: #fff;
    font-size: 0.6rem;
    line-height: 1rem;
    text-align: center;
}

.composer-input {
    flex: 1 1 auto;
    resize: none;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    color: var(--on-surface);
    max-height: 10rem;
    overflow-y: auto;
    padding: 0.35rem 0;
}

.composer-send {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: none;
    background: var(--accent, var(--primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.composer-send:disabled {
    background: var(--outline);
    color: var(--muted);
    cursor: not-allowed;
}

.share-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--surface);
    border: 1px solid var(--accent, var(--primary));
    color: var(--accent, var(--primary));
    border-radius: 9999px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.share-trigger:hover {
    background: var(--surface-variant);
}

.share-trigger[aria-expanded="true"] {
    background: var(--accent, var(--primary));
    color: #fff;
}

.share-popover {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 10;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(30, 36, 68, .10), 0 4px 8px rgba(30, 36, 68, .05);
    padding: 1rem;
}

.share-popover[hidden] {
    display: none;
}

.share-link-section {
    border: 1px solid var(--outline);
    border-radius: 10px;
    padding: 0.75rem;
}

.share-link-section--editor {
    border-color: var(--warning);
    background: var(--warning-surface);
}

.share-link-heading {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.3rem;
}

.share-link-section--viewer .share-link-heading svg {
    color: var(--accent, var(--primary));
}

.share-link-section--editor .share-link-heading svg {
    color: var(--warning);
}

.share-link-desc {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0 0 0.6rem;
}

.share-link-row {
    display: flex;
    gap: 0.4rem;
}

.share-link-row input {
    flex: 1;
    min-width: 0;
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--outline);
    border-radius: 8px;
    background: var(--surface);
    color: var(--on-surface);
}

.share-link-row button {
    background: var(--accent, var(--primary));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.share-link-row button:hover {
    opacity: 0.9;
}

.intake-page {
    max-width: 480px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(30, 36, 68, .10), 0 4px 8px rgba(30, 36, 68, .05);
    padding: 2rem;
}

.intake-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.25rem;
}

.intake-brand-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
}

.intake-page h1 {
    font-family: "Fraunces", ui-serif, Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 1.5rem;
}

.intake-page form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.intake-page .field {
    position: relative;
}

.intake-page .field input,
.intake-page .field textarea {
    width: 100%;
    display: block;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 1.05rem 0.85rem 0.4rem;
    border: 1px solid var(--outline);
    border-radius: 8px;
    background: var(--surface);
    color: var(--on-surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.intake-page .field textarea {
    resize: vertical;
    min-height: 4.5rem;
}

.intake-page .field input:hover,
.intake-page .field textarea:hover {
    border-color: var(--muted);
}

.intake-page .field input:focus,
.intake-page .field textarea:focus {
    outline: none;
    border-color: var(--accent, var(--primary));
    box-shadow: 0 0 0 3px rgba(30, 36, 68, .10);
}

.intake-page .field label {
    position: absolute;
    left: 0.85rem;
    top: 0.75rem;
    font-size: 0.95rem;
    color: var(--muted);
    pointer-events: none;
    background: var(--surface);
    padding: 0 0.25rem;
    transform-origin: left top;
    transition: transform 0.15s ease, top 0.15s ease, color 0.15s ease;
}

.intake-page .field input:focus + label,
.intake-page .field input:not(:placeholder-shown) + label,
.intake-page .field textarea:focus + label,
.intake-page .field textarea:not(:placeholder-shown) + label {
    top: -0.55rem;
    left: 0.65rem;
    transform: scale(0.82);
    color: var(--accent, var(--primary));
}

.intake-page .field input:not(:focus):not(:placeholder-shown) + label,
.intake-page .field textarea:not(:focus):not(:placeholder-shown) + label {
    color: var(--muted);
}

.intake-page .success {
    color: #1E7A34;
    background: rgba(30, 122, 52, .08);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin: 0;
}

.intake-page .error {
    color: #B3261E;
    background: rgba(179, 38, 30, .08);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin: 0;
}

.intake-submit {
    align-self: flex-start;
    display: inline-block;
    background: var(--accent, var(--primary));
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s ease;
}

.intake-submit:hover:not(:disabled) {
    opacity: 0.9;
}

.intake-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .intake-page {
        padding: 1.25rem;
    }
}

.powered-by-footer {
    max-width: 480px;
    margin: 1rem auto 0;
    text-align: center;
    font-size: 0.8rem;
}

.powered-by-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    text-decoration: none;
    vertical-align: middle;
}

.powered-by-footer a img {
    display: block;
    flex-shrink: 0;
}

.powered-by-footer a:hover {
    color: var(--on-surface);
    text-decoration: underline;
}

.square-style-button {
    background-color: #000000;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: background-color 0.2s ease;
}
.square-style-button:hover {
    background-color: #333333;
}

.venmo-checkout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.venmo-style-button {
    background-color: #3d95ce;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.venmo-style-button:hover {
    background-color: #2f7aab;
}

.venmo-qr {
    width: 160px;
}
.venmo-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 480px) {
    .venmo-checkout {
        flex-direction: row;
        justify-content: center;
    }
}