:root {
    --ink: #172333;
    --muted: #6d6963;
    --line: #ece7de;
    --panel: #fdfcf8;
    --page: #fbfaf7;
    --accent: #9b8a6b;
    --accent-dark: #172333;
    --danger: #b42318;
    --client-ink: #17191d;
    --client-muted: #6f6a66;
    --client-line: #1f2024;
    --client-soft-line: #dedbd8;
    --client-bg: #f7f6f5;
    --client-panel: #ffffff;
    --client-accent: #7b746d;
    --client-accent-dark: #423f3b;
    --client-subtle: #e8e5df;
    --stone-hi: #fbfaf7;
    --stone-mid: #d9d5cd;
    --stone-low: #8c867c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, #fbfaf7 0%, #f3f0ea 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body:has(.client-hero) {
    background:
        radial-gradient(circle at 32% 18%, rgb(255 255 255 / 82%), transparent 34%),
        radial-gradient(circle at 68% 8%, rgb(255 255 255 / 48%), transparent 24%),
        linear-gradient(145deg, #f8f7f3 0%, #e7e3dc 48%, #d4cec4 100%);
}

body:has(.client-hero)::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgb(66 63 59 / 4%) 1px, transparent 1px),
        linear-gradient(rgb(66 63 59 / 3%) 1px, transparent 1px);
    background-size: 42px 42px;
    mix-blend-mode: multiply;
}

a {
    color: var(--accent-dark);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1440px, calc(100% - 72px));
    min-height: 86px;
    margin: 0 auto;
    padding: 18px 0;
    background: transparent;
    border-bottom: 0;
}

.brand {
    color: #c9c5bd;
    font-family: "Caviar Dreams", "Century Gothic", "Avenir Next", sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 5px;
    text-decoration: none;
    text-transform: uppercase;
}

.shell {
    width: min(1280px, calc(100% - 72px));
    margin: 44px auto;
}

.narrow {
    max-width: 640px;
    margin: 0 auto;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.page-actions form {
    margin: 0;
}

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

.danger-button:hover {
    background: #7a1b12;
}

h1,
h2 {
    margin: 0 0 8px;
    line-height: 1.15;
}

h1 {
    color: var(--ink);
    font-family: "Caviar Dreams", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
    font-size: clamp(22px, 5vw, 40px);
    font-weight: 300;
}

h2 {
    font-size: 19px;
}

.muted {
    margin-top: 0;
    color: var(--muted);
}

.panel,
.empty,
.table-wrap {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: none;
}

.panel {
    padding: 24px;
}

.empty {
    padding: 32px;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

form.panel,
label {
    display: grid;
    gap: 8px;
}

form.panel {
    gap: 18px;
}

.project-create-form {
    display: grid;
    gap: 18px;
}

.form-section {
    display: grid;
    gap: 20px;
}

.form-section-head {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
}

.form-section-head > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--ink);
    background: #e7e0d5;
    border-radius: 12px;
    font-family: "Caviar Dreams", "Century Gothic", "Avenir Next", sans-serif;
    font-weight: 300;
}

.form-section-head h2,
.resource-block h3 {
    margin: 0 0 4px;
}

.form-section-head p,
.resource-block p,
.drop-zone span {
    margin: 0;
    color: var(--muted);
}

.form-grid,
.resource-grid,
.file-list {
    display: grid;
    gap: 16px;
}

.resource-block {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: #f5f2ec;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.file-drop,
.drop-zone {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 94px;
    padding: 18px;
    background: #fdfcf8;
    border: 1px dashed #d3c29f;
    border-radius: 18px;
    text-align: center;
}

.file-drop.compact {
    min-height: 68px;
}

.file-drop input {
    width: auto;
    min-height: auto;
}

.file-drop span {
    color: var(--accent-dark);
    font-weight: 750;
}

.drop-zone.is-dragging,
.file-drop.is-dragging {
    background: #f5f2ec;
    border-color: #d3c29f;
}

label {
    color: var(--ink);
    font-weight: 650;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #ddd5c6;
    border-radius: 14px;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: #d3c29f;
    box-shadow: 0 0 0 3px rgb(211 194 159 / 22%);
}

textarea {
    resize: vertical;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    color: var(--ink);
    background: transparent;
    border: 1px solid #d3c29f;
    border-radius: 999px;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

button[hidden],
.button[hidden] {
    display: none !important;
}

button:hover,
.button:hover {
    background: #f5f2ec;
}

.button.secondary,
.ghost-button {
    color: var(--ink);
    background: #f5f2ec;
    border: 1px solid #e0d6c3;
}

.ghost-button {
    min-height: 36px;
    padding: 0 12px;
}

.button.secondary:hover,
.ghost-button:hover {
    background: #ebe4d8;
}

.inline-status-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.inline-status-form select {
    max-width: 260px;
}

.alert {
    margin: 18px 0;
    padding: 14px 16px;
    color: var(--danger);
    background: #fff1f0;
    border: 1px solid #ffd6d2;
    border-radius: 8px;
}

.alert p {
    margin: 0;
}

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

.admin-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) minmax(190px, 0.8fr) minmax(160px, 0.7fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.table-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 10px;
    color: var(--muted);
}

.admin-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-kpis article {
    display: grid;
    gap: 4px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-kpis span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 720;
}

.admin-kpis strong {
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
}

.admin-kpis article.has-alert {
    border-color: #d3c29f;
    background: #f5f2ec;
}

.admin-kpis article.is-muted strong {
    color: var(--muted);
    font-size: 16px;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.table-actions form {
    margin: 0;
}

.danger-link {
    min-height: auto;
    padding: 0;
    color: var(--danger);
    background: transparent;
    border: 0;
    font-weight: 750;
}

.danger-link:hover {
    color: #7a1b12;
    background: transparent;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 16px;
}

.pagination [aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.45;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 750;
}

.page-link.is-active {
    color: var(--ink);
    background: #e7e0d5;
    border-color: #d3c29f;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 760;
    white-space: nowrap;
}

.status-pill.is-ok {
    color: #172333;
    background: #e7e0d5;
}

.status-pill.is-waiting {
    color: #6d6963;
    background: #f5f2ec;
}

.status-pill.is-attention {
    color: #594013;
    background: #fff3d6;
}

.project-progress {
    display: grid;
    gap: 10px;
    min-width: 190px;
}

.project-progress--compact {
    max-width: 240px;
}

.project-progress-panel {
    margin-bottom: 20px;
}

.progress-head,
.panel-title-row,
.form-step-card header,
.step-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.progress-head strong {
    font-size: 15px;
}

.progress-track {
    height: 8px;
    overflow: hidden;
    background: #efe8dc;
    border-radius: 999px;
}

.progress-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), #d3c29f);
    border-radius: inherit;
}

.notification-badge {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 0 9px;
    color: var(--ink);
    background: #fff3d6;
    border: 1px solid #ead08a;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 820;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 4px 0 0;
    list-style: none;
}

.progress-steps li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 720;
}

.progress-steps li span,
.step-number {
    display: grid;
    place-items: center;
    border-radius: 999px;
}

.progress-steps li span {
    width: 18px;
    height: 18px;
    background: #efe8dc;
    border: 1px solid #ddd5c6;
}

.progress-steps li.is-complete {
    color: var(--ink);
}

.progress-steps li.is-complete span {
    background: #d3c29f;
    border-color: #b9a06b;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

td span,
small {
    color: var(--muted);
}

code,
pre {
    font-family: "SFMono-Regular", Consolas, monospace;
}

code {
    overflow-wrap: anywhere;
}

pre {
    white-space: pre-wrap;
    padding: 16px;
    background: #f5f2ec;
    border-radius: 16px;
}

dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

dt {
    color: var(--muted);
    font-size: 13px;
}

dd {
    margin: 0 0 8px;
}

.list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.panel-title-row {
    margin-bottom: 18px;
}

.panel-title-row h2,
.panel-title-row p {
    margin: 0;
}

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

.form-step-card {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.form-step-card.is-started {
    border-color: #ead08a;
    background: #fffaf0;
}

.form-step-card.is-complete {
    border-color: #d3c29f;
    background: #f8f4ec;
}

.step-number {
    width: 38px;
    height: 38px;
    color: var(--ink);
    background: #efe8dc;
    font-weight: 820;
}

.form-step-card h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.form-step-card p,
.step-meta {
    margin: 0;
    color: var(--muted);
}

.step-meta {
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 13px;
}

.help-text {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.admin-repeatable,
.repeatable-list,
.builder-list,
.template-builder {
    display: grid;
    gap: 12px;
}

.repeatable-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-block {
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.section-block p {
    margin: 0;
    color: var(--muted);
}

.builder-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: #f5f2ec;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.builder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.builder-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.builder-check input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    accent-color: var(--accent);
}

.response + .response {
    margin-top: 20px;
}

.response time {
    color: var(--muted);
}

.response-card {
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.response-card:first-of-type {
    border-top: 0;
}

.response-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.response-head strong,
.response-head time,
.response-head span {
    display: block;
}

.response-head time,
.response-head span {
    color: var(--muted);
}

.answer-section {
    padding: 18px;
    margin-top: 14px;
    background: #f5f2ec;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.answer-section h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.answer-section > p {
    margin: 0 0 14px;
    color: var(--muted);
}

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

.answer-item {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid #ece7de;
    border-radius: 16px;
}

.answer-item dt {
    color: #3a3f45;
    font-size: 14px;
    font-weight: 760;
}

.answer-item dd {
    margin: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.answer-item dd.is-empty {
    color: var(--muted);
    font-style: italic;
}

.answer-detail {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding: 10px;
    background: #fbfaf7;
    border: 1px solid #d8ccb5;
    border-radius: 14px;
}

.answer-detail span {
    color: #594013;
    font-size: 12px;
    font-weight: 820;
    text-transform: uppercase;
}

.raw-response {
    margin-top: 14px;
}

.raw-response summary {
    color: var(--muted);
    cursor: pointer;
}

.success {
    border-color: #b8e0d6;
}

.client-hero {
    display: grid;
    gap: 40px;
    max-width: 900px;
    margin-bottom: 34px;
    padding-top: 34px;
    border-top: 1px solid var(--client-line);
    text-shadow: 0 1px 0 #fff;
}

.client-hero .eyebrow {
    margin: 0;
    color: var(--client-muted);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.client-hero h1 {
    margin: 0;
    color: var(--client-accent);
    font-family: "Caviar Dreams", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
    font-size: clamp(58px, 8vw, 104px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
    text-shadow:
        0 1px 0 #fff,
        0 10px 22px rgb(66 63 59 / 18%),
        -1px -1px 0 rgb(255 255 255 / 72%),
        1px 1px 0 rgb(66 63 59 / 20%);
}

.client-hero h2 {
    margin: 0;
    color: var(--client-ink);
    font-size: 18px;
    font-weight: 850;
}

.client-hero p {
    max-width: 560px;
    margin: 0;
    color: var(--client-ink);
    font-size: 16px;
    font-weight: 700;
}

.client-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1120px);
    gap: 18px;
    align-items: start;
    justify-content: center;
}

.client-hero,
.client-form-layout {
    width: min(1280px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.client-sidebar,
.client-form-card {
    background:
        linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(226 222 214 / 76%)),
        var(--client-panel);
    border: 1px solid var(--client-soft-line);
    border-radius: 4px;
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 88%),
        inset 0 -18px 38px rgb(66 63 59 / 6%),
        0 22px 58px rgb(66 63 59 / 14%);
}

.client-sidebar {
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.client-sidebar::before,
.client-form-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    pointer-events: none;
    border: 1px solid rgb(66 63 59 / 16%);
}

.client-form-card {
    position: relative;
    overflow: hidden;
}

.client-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.client-brand span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 30% 24%, var(--stone-hi), var(--stone-mid) 42%, var(--client-accent));
    border-radius: 50%;
    box-shadow:
        inset 1px 1px 2px rgb(255 255 255 / 80%),
        inset -2px -3px 5px rgb(66 63 59 / 38%),
        0 4px 10px rgb(66 63 59 / 18%);
    font-weight: 850;
}

.client-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.client-step-pill {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 10px;
    color: #49515d;
    background: rgb(255 255 255 / 34%);
    border: 1px solid rgb(66 63 59 / 10%);
    border-radius: 8px;
    text-align: left;
}

.client-step-pill span:first-child {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--client-accent-dark);
    background:
        linear-gradient(145deg, var(--stone-hi), var(--client-subtle));
    border-radius: 999px;
    font-weight: 850;
    box-shadow:
        inset 1px 1px 2px rgb(255 255 255 / 90%),
        inset -1px -2px 4px rgb(66 63 59 / 18%);
}

.client-step-pill strong,
.client-step-pill small {
    display: block;
}

.client-step-pill small {
    color: var(--client-muted);
}

.client-step-pill.is-active {
    background:
        linear-gradient(145deg, #fff, var(--client-subtle));
    border-color: var(--client-accent);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 90%),
        0 8px 18px rgb(66 63 59 / 10%);
}

.client-progress {
    height: 8px;
    margin-top: 16px;
    overflow: hidden;
    background: var(--client-subtle);
    box-shadow: inset 0 2px 4px rgb(66 63 59 / 16%);
    border-radius: 999px;
}

.client-progress-bar {
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg, var(--client-accent-dark), var(--client-accent));
    border-radius: inherit;
    transition: width 180ms ease;
}

.client-form-card {
    padding: 32px;
}

.client-form-step {
    display: none;
}

.client-form-step.is-active {
    display: block;
}

.client-section-head {
    margin-bottom: 22px;
}

.client-section-head h2 {
    margin: 0 0 8px;
    color: var(--client-accent);
    font-family: "Caviar Dreams", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
    font-size: 36px;
    line-height: 1;
    text-shadow:
        0 1px 0 #fff,
        1px 1px 0 rgb(66 63 59 / 16%),
        0 8px 18px rgb(66 63 59 / 10%);
}

.client-section-head p {
    margin: 0;
    color: var(--client-muted);
}

.client-field-grid {
    display: grid;
    gap: 20px;
}

.client-section-block,
.client-notice,
.client-media {
    display: grid;
    gap: 10px;
}

.client-section-block {
    padding-top: 8px;
    border-top: 1px solid rgb(66 63 59 / 22%);
}

.client-section-block h3 {
    margin: 0;
    font-size: 21px;
}

.client-section-block p,
.client-field p {
    margin: 0;
    color: var(--client-muted);
}

.client-notice {
    padding: 16px;
    color: var(--client-ink);
    background:
        linear-gradient(145deg, rgb(255 255 255 / 70%), rgb(226 222 214 / 82%));
    border: 1px solid var(--client-soft-line);
    border-radius: 4px;
    box-shadow:
        inset 1px 1px 0 rgb(255 255 255 / 86%),
        inset -8px -10px 22px rgb(66 63 59 / 7%);
}

.client-notice ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 20px;
}

.client-image {
    min-height: 310px;
    background-color: var(--client-subtle);
    background-position: center;
    background-size: cover;
    border: 1px solid var(--client-soft-line);
    border-radius: 4px;
}

.client-gallery {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 10px;
}

.client-gallery div {
    min-height: 150px;
    background-color: var(--client-subtle);
    background-position: center;
    background-size: cover;
    border: 1px solid var(--client-soft-line);
    border-radius: 4px;
}

.client-gallery div:first-child {
    grid-row: span 2;
    min-height: 310px;
}

.client-gallery-image {
    min-height: 150px;
    padding: 0;
    background-color: var(--client-subtle);
    background-position: center;
    background-size: cover;
    border: 1px solid var(--client-soft-line);
    border-radius: 4px;
    cursor: zoom-in;
}

.client-gallery-image:first-child {
    grid-row: span 2;
    min-height: 310px;
}

.client-carousel {
    display: grid;
    gap: 12px;
}

.carousel-stage {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #111820;
    border: 1px solid var(--client-soft-line);
    border-radius: 4px;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 560px;
    padding: 0;
    background: #111820;
    border: 0;
    cursor: zoom-in;
}

.carousel-slide.is-active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-slide span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    padding: 7px 10px;
    color: #fff;
    background: rgb(17 24 32 / 72%);
    border-radius: 4px;
    overflow-wrap: anywhere;
}

.carousel-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 42px;
    min-height: 54px;
    padding: 0;
    transform: translateY(-50%);
    background: rgb(17 24 32 / 72%);
    border-radius: 4px;
    font-size: 32px;
}

.carousel-nav:hover {
    background: rgb(17 24 32 / 92%);
}

.carousel-nav[data-carousel-prev] {
    left: 12px;
}

.carousel-nav[data-carousel-next] {
    right: 12px;
}

.carousel-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 8px;
}

.carousel-thumbs button {
    min-height: 64px;
    padding: 0;
    background-color: var(--client-subtle);
    background-position: center;
    background-size: cover;
    border: 2px solid transparent;
    border-radius: 4px;
}

.carousel-thumbs button.is-active {
    border-color: var(--client-accent);
}

.carousel-counter {
    justify-self: end;
    color: var(--client-muted);
    font-weight: 720;
}

.client-embed {
    min-height: 420px;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 20%, rgb(255 255 255 / 24%), transparent 30%),
        #151719;
    border: 1px solid var(--client-soft-line);
    border-radius: 4px;
    box-shadow:
        inset 0 0 36px rgb(0 0 0 / 34%),
        0 12px 28px rgb(66 63 59 / 14%);
}

.client-embed iframe {
    width: 100%;
    height: 420px;
    border: 0;
}

.client-document {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background:
        linear-gradient(145deg, rgb(255 255 255 / 86%), var(--client-bg));
    border: 1px solid var(--client-soft-line);
    border-radius: 4px;
    box-shadow:
        inset 1px 1px 0 rgb(255 255 255 / 86%),
        inset -7px -9px 18px rgb(66 63 59 / 6%);
}

.client-document span,
.client-document small {
    display: block;
}

.client-document small {
    color: var(--client-muted);
}

.client-pdf iframe {
    height: 540px;
}

.client-plan {
    padding: 16px;
    background:
        linear-gradient(145deg, rgb(255 255 255 / 78%), var(--client-bg));
    border: 1px solid var(--client-soft-line);
    border-radius: 4px;
    box-shadow:
        inset 1px 1px 0 rgb(255 255 255 / 80%),
        0 14px 32px rgb(66 63 59 / 11%);
}

.client-plan .client-pdf iframe {
    height: 640px;
}

.image-lightbox {
    width: min(1400px, calc(100% - 28px));
    padding: 0;
    background: transparent;
    border: 0;
}

.image-lightbox::backdrop {
    background: rgb(20 24 28 / 72%);
}

.image-lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgb(0 0 0 / 35%);
}

.image-lightbox button {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 42px;
    min-height: 42px;
    padding: 0;
    color: #fff;
    background: rgb(20 24 28 / 70%);
}

.image-lightbox button:hover {
    background: rgb(20 24 28 / 90%);
}

.client-field {
    display: grid;
    gap: 8px;
}

.client-field-row {
    display: grid;
    gap: 16px;
}

.client-field-row.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-field label,
.client-field legend,
.client-media strong,
.client-notice strong {
    color: var(--client-ink);
    font-weight: 780;
}

.client-field legend {
    margin-bottom: 8px;
}

.client-choice-grid,
.client-rating {
    display: grid;
    gap: 10px;
}

.client-rating {
    grid-template-columns: repeat(5, 1fr);
}

.client-choice {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    background:
        linear-gradient(145deg, #fff, #f1efeb);
    border: 1px solid var(--client-soft-line);
    border-radius: 4px;
    cursor: pointer;
    box-shadow:
        inset 1px 1px 0 rgb(255 255 255 / 88%),
        inset -5px -6px 12px rgb(66 63 59 / 5%);
}

.client-rating .client-choice {
    display: block;
    text-align: center;
}

.client-choice:hover,
.client-choice:has(input:checked) {
    border-color: var(--client-accent);
    background:
        linear-gradient(145deg, #fff, var(--client-subtle));
}

.client-choice input {
    width: 18px;
    min-height: 18px;
    margin-top: 3px;
    accent-color: var(--client-accent);
}

.client-terms {
    padding: 16px;
    background: var(--client-bg);
    border: 1px solid var(--client-soft-line);
    border-radius: 4px;
}

.client-terms .client-choice {
    background: #fff;
}

.link-button {
    justify-self: start;
    min-height: auto;
    padding: 0;
    color: var(--client-accent-dark);
    background: transparent;
    border: 0;
    font-weight: 780;
    text-decoration: underline;
}

.link-button:hover {
    color: var(--client-accent);
    background: transparent;
}

.terms-modal {
    width: min(760px, calc(100% - 28px));
    padding: 0;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgb(20 24 28 / 28%);
}

.terms-modal::backdrop {
    background: rgb(20 24 28 / 42%);
}

.terms-modal-body {
    display: grid;
    max-height: min(720px, calc(100vh - 48px));
    background: #fff;
}

.terms-modal header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--client-soft-line);
}

.terms-modal h3 {
    margin: 0;
}

.terms-modal header button {
    width: 36px;
    min-height: 36px;
    padding: 0;
    color: var(--client-ink);
    background: var(--client-subtle);
}

.terms-content {
    display: grid;
    gap: 12px;
    overflow: auto;
    padding: 20px;
}

.terms-content p {
    margin: 0;
    color: #3a3f45;
}

.client-conditional {
    display: none;
    gap: 8px;
    margin-top: 10px;
}

.client-conditional.is-visible {
    display: grid;
}

.client-field.has-error input,
.client-field.has-error textarea,
.client-radio-group.has-error .client-choice-grid,
.client-radio-group.has-error .client-rating {
    border-color: var(--danger);
}

.client-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.client-actions button {
    min-width: 160px;
}

/* Volumeria client visual direction */
body:has(.client-hero) {
    color: #172333;
    background: #fbfaf7;
}

body:has(.client-hero)::before {
    display: none;
}

body:has(.client-hero) .topbar {
    width: min(1440px, calc(100% - 96px));
    min-height: 92px;
    margin: 0 auto;
    padding: 18px 0;
    background: transparent;
    border-bottom: 0;
}

body:has(.client-hero) .brand {
    color: #c9c5bd;
    font-family: "Caviar Dreams", "Century Gothic", "Avenir Next", sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
}

body:has(.client-hero) .shell {
    width: min(1440px, calc(100% - 96px));
    margin-top: 70px;
}

.client-hero {
    max-width: 980px;
    padding-top: 0;
    border-top: 0;
    text-shadow: none;
}

.client-hero .eyebrow {
    color: #9b8a6b;
    font-size: 12px;
    letter-spacing: 2px;
}

.client-hero h1 {
    color: #172333;
    font-family: "Caviar Dreams", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
    font-size: clamp(64px, 8vw, 40px);
    font-weight: 300;
    line-height: 0.92;
    text-shadow: none;
    
}

.client-hero h2 {
    color: #172333;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.client-hero p {
    color: #172333;
    max-width: 620px;
    font-size: 17px;
    font-weight: 500;
}

.client-sidebar,
.client-form-card {
    background: #fdfcf8;
    border: 1px solid #ece7de;
    border-radius: 24px;
    box-shadow: none;
}

.client-sidebar::before,
.client-form-card::before {
    display: none;
}

.client-brand span {
    color: #172333;
    background: #e7e0d5;
    border-radius: 12px;
    box-shadow: none;
}

.client-step-pill {
    min-height: 76px;
    padding: 14px;
    color: #172333;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 18px;
}

.client-step-pill span:first-child {
    color: #172333;
    background: transparent;
    border-radius: 0;
    font-family: "Caviar Dreams", "Century Gothic", "Avenir Next", sans-serif;
    font-size: 42px;
    font-weight: 300;
    box-shadow: none;
}

.client-step-pill small {
    color: #7b756d;
}

.client-step-pill.is-active {
    background: #f5f2ec;
    border-color: #d8ccb5;
    box-shadow: none;
}

.client-progress {
    height: 2px;
    background: #e6ded1;
    box-shadow: none;
}

.client-progress-bar {
    background: #9b8a6b;
}

.client-form-card {
    padding: 42px;
}

.client-section-head h2 {
    color: #172333;
    font-family: "Caviar Dreams", "Century Gothic", "Avenir Next", sans-serif;
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 300;
    text-shadow: none;
}

.client-section-head p,
.client-section-block p,
.client-field p,
.client-document small,
.carousel-counter {
    color: #6d6963;
}

.client-section-block {
    border-top-color: #d8ccb5;
}

.client-notice,
.client-plan,
.client-document,
.client-terms {
    color: #172333;
    background: #f5f2ec;
    border: 1px solid #ece7de;
    border-radius: 18px;
    box-shadow: none;
}

.client-choice {
    background: #fdfcf8;
    border: 1px solid #ece7de;
    border-radius: 16px;
    box-shadow: none;
}

.client-choice:hover,
.client-choice:has(input:checked) {
    background: #f5f2ec;
    border-color: #d3c29f;
}

.client-choice input {
    accent-color: #9b8a6b;
}

.client-field label,
.client-field legend,
.client-media strong,
.client-notice strong {
    color: #172333;
}

.client-embed,
.client-image,
.carousel-stage {
    background: #f0ede7;
    border: 1px solid #ece7de;
    border-radius: 22px;
    box-shadow: none;
}

.carousel-slide,
.carousel-nav {
    background: #f0ede7;
}

.carousel-slide span {
    color: #172333;
    background: rgb(253 252 248 / 82%);
    border-radius: 12px;
}

.carousel-nav {
    color: #172333;
    background: rgb(253 252 248 / 78%);
}

.carousel-nav:hover {
    background: #fdfcf8;
}

.carousel-thumbs button {
    background-color: #f0ede7;
    border-radius: 14px;
}

.carousel-thumbs button.is-active {
    border-color: #9b8a6b;
}

.link-button {
    color: #172333;
}

.link-button:hover {
    color: #9b8a6b;
}

.client-actions {
    border-top-color: #ece7de;
}

.client-actions button,
body:has(.client-hero) button[type="submit"],
body:has(.client-hero) .button {
    color: #172333;
    background: transparent;
    border: 1px solid #d3c29f;
    border-radius: 999px;
    font-weight: 850;
    letter-spacing: 0.5px;
}

.client-actions button:hover,
body:has(.client-hero) button[type="submit"]:hover,
body:has(.client-hero) .button:hover {
    background: #f5f2ec;
}

body:has(.client-hero) a {
    color: #172333;
}

body:has(.client-hero) input:focus,
body:has(.client-hero) textarea:focus,
body:has(.client-hero) select:focus {
    border-color: #d3c29f;
    box-shadow: 0 0 0 3px rgb(211 194 159 / 22%);
}

body:has(.client-hero) .button.secondary:hover,
body:has(.client-hero) .ghost-button:hover {
    color: #172333;
    background: #f5f2ec;
}

body:has(.client-hero) .drop-zone.is-dragging,
body:has(.client-hero) .file-drop.is-dragging {
    background: #f5f2ec;
    border-color: #d3c29f;
}

body:has(.client-hero) button:hover {
    background: #f5f2ec;
}

@media (max-width: 760px) {
    .topbar,
    .page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar {
        gap: 12px;
        padding: 16px;
    }

    .shell {
        margin: 24px auto;
    }

    h1 {
        font-size: 28px;
    }

    .grid.two {
        grid-template-columns: 1fr;
    }

    .builder-grid {
        grid-template-columns: 1fr;
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-kpis,
    .progress-steps {
        grid-template-columns: 1fr;
    }

    .table-meta,
    .pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .panel-title-row,
    .inline-status-form,
    .form-step-card header {
        align-items: flex-start;
        flex-direction: column;
    }

    .inline-status-form select,
    .inline-status-form button {
        width: 100%;
        max-width: none;
    }

    .form-step-card {
        grid-template-columns: 1fr;
    }

    .answer-item {
        grid-template-columns: 1fr;
    }

    .client-form-layout,
    .client-gallery,
    .client-document {
        grid-template-columns: 1fr;
    }

    .client-sidebar {
        position: static;
    }

    .client-gallery div:first-child,
    .client-gallery-image:first-child {
        grid-row: auto;
        min-height: 210px;
    }

    .carousel-stage,
    .carousel-slide {
        height: 340px;
        min-height: 340px;
    }

    .client-rating {
        grid-template-columns: 1fr;
    }

    .client-field-row.two {
        grid-template-columns: 1fr;
    }

    .client-actions {
        flex-direction: column-reverse;
    }

    .client-actions button {
        width: 100%;
    }
}
