@import url("../fonts/satoshi-fonts.css");

:root {
    --color-grey-000-rgb:  0 0 0;
    --color-grey-100-rgb:  26 26 26;
    --color-grey-200-rgb:  51 51 51;
    --color-grey-300-rgb:  77 77 77;
    --color-grey-400-rgb:  102 102 102;
    --color-grey-500-rgb:  128 128 128;
    --color-grey-600-rgb:  153 153 153;
    --color-grey-700-rgb:  179 179 179;
    --color-grey-800-rgb:  204 204 204;
    --color-grey-900-rgb:  230 230 230;
    --color-grey-1000-rgb: 255 255 255;
    --color-grey-000:  rgb(var(--color-grey-000-rgb));
    --color-grey-100:  rgb(var(--color-grey-100-rgb));
    --color-grey-200:  rgb(var(--color-grey-200-rgb));
    --color-grey-300:  rgb(var(--color-grey-300-rgb));
    --color-grey-400:  rgb(var(--color-grey-400-rgb));
    --color-grey-500:  rgb(var(--color-grey-500-rgb));
    --color-grey-600:  rgb(var(--color-grey-600-rgb));
    --color-grey-700:  rgb(var(--color-grey-700-rgb));
    --color-grey-800:  rgb(var(--color-grey-800-rgb));
    --color-grey-900:  rgb(var(--color-grey-900-rgb));
    --color-grey-1000: rgb(var(--color-grey-1000-rgb));
    --color-brand-teal-800-rgb: 8 82 84;
    --color-brand-teal-700-rgb: 11 114 112;
    --color-brand-teal-500-rgb: 20 156 156;
    --color-brand-teal-300-rgb: 104 181 183;
    --color-brand-teal-200-rgb: 166 203 204;
    --color-brand-teal-100-rgb: 221 236 238;
    --color-brand-teal-50-rgb:  232 244 245;
    --color-brand-teal-20-rgb:  242 249 249;
    --color-brand-teal-10-rgb:  247 252 252;
    --color-brand-teal-800: rgb(var(--color-brand-teal-800-rgb));
    --color-brand-teal-700: rgb(var(--color-brand-teal-700-rgb));
    --color-brand-teal-500: rgb(var(--color-brand-teal-500-rgb));
    --color-brand-teal-300: rgb(var(--color-brand-teal-300-rgb));
    --color-brand-teal-200: rgb(var(--color-brand-teal-200-rgb));
    --color-brand-teal-100: rgb(var(--color-brand-teal-100-rgb));
    --color-brand-teal-50:  rgb(var(--color-brand-teal-50-rgb));
    --color-brand-teal-20:  rgb(var(--color-brand-teal-20-rgb));
    --color-brand-teal-10:  rgb(var(--color-brand-teal-10-rgb));
    --color-brand-berry-700-rgb: 112 40 77;
    --color-brand-berry-500-rgb: 158 74 113;
    --color-brand-berry-300-rgb: 194 140 165;
    --color-brand-berry-100-rgb: 232 205 220;
    --color-brand-berry-50-rgb:  243 230 237;
    --color-brand-berry-20-rgb:  250 244 248;
    --color-brand-berry-10-rgb:  252 249 251;
    --color-brand-berry-700: rgb(var(--color-brand-berry-700-rgb));
    --color-brand-berry-500: rgb(var(--color-brand-berry-500-rgb));
    --color-brand-berry-300: rgb(var(--color-brand-berry-300-rgb));
    --color-brand-berry-100: rgb(var(--color-brand-berry-100-rgb));
    --color-brand-berry-50:  rgb(var(--color-brand-berry-50-rgb));
    --color-brand-berry-20:  rgb(var(--color-brand-berry-20-rgb));
    --color-brand-berry-10:  rgb(var(--color-brand-berry-10-rgb));
    --color-brand-forest-700-rgb: 38 63 55;
    --color-brand-forest-500-rgb: 62 102 89;
    --color-brand-forest-300-rgb: 132 163 150;
    --color-brand-forest-100-rgb: 203 219 212;
    --color-brand-forest-50-rgb:  229 237 234;
    --color-brand-forest-20-rgb:  244 247 246;
    --color-brand-forest-10-rgb:  250 251 250;
    --color-brand-forest-700: rgb(var(--color-brand-forest-700-rgb));
    --color-brand-forest-500: rgb(var(--color-brand-forest-500-rgb));
    --color-brand-forest-300: rgb(var(--color-brand-forest-300-rgb));
    --color-brand-forest-100: rgb(var(--color-brand-forest-100-rgb));
    --color-brand-forest-50:  rgb(var(--color-brand-forest-50-rgb));
    --color-brand-forest-20:  rgb(var(--color-brand-forest-20-rgb));
    --color-brand-forest-10:  rgb(var(--color-brand-forest-10-rgb));
    --color-brand-bronze-700-rgb: 128 88 14;
    --color-brand-bronze-500-rgb: 243 188 28;
    --color-brand-bronze-300-rgb: 219 178 102;
    --color-brand-bronze-100-rgb: 243 225 188;
    --color-brand-bronze-50-rgb:  249 240 222;
    --color-brand-bronze-20-rgb:  253 249 242;
    --color-brand-bronze-10-rgb:  254 252 248;
    --color-brand-bronze-700: rgb(var(--color-brand-bronze-700-rgb));
    --color-brand-bronze-500: rgb(var(--color-brand-bronze-500-rgb));
    --color-brand-bronze-300: rgb(var(--color-brand-bronze-300-rgb));
    --color-brand-bronze-100: rgb(var(--color-brand-bronze-100-rgb));
    --color-brand-bronze-50:  rgb(var(--color-brand-bronze-50-rgb));
    --color-brand-bronze-20:  rgb(var(--color-brand-bronze-20-rgb));
    --color-brand-bronze-10:  rgb(var(--color-brand-bronze-10-rgb));
    --color-state-success-soft-rgb: 88 158 112;
    --color-state-warning-soft-rgb: 219 178 72;
    --color-state-error-soft-rgb: 189 82 82;
    --color-state-success-soft: rgb(var(--color-state-success-soft-rgb));
    --color-state-warning-soft: rgb(var(--color-state-warning-soft-rgb));
    --color-state-error-soft: rgb(var(--color-state-error-soft-rgb));
    --color-highlight-neon-green-rgb: 57 255 20;
    --color-highlight-violet-rgb: 181 0 255;
    --color-highlight-orange-rgb: 255 140 0;
    --color-highlight-pink-red-rgb: 255 0 85;
    --color-highlight-mint-rgb: 0 255 191;
    --color-highlight-neon-green: rgb(var(--color-highlight-neon-green-rgb));
    --color-highlight-violet: rgb(var(--color-highlight-violet-rgb));
    --color-highlight-orange: rgb(var(--color-highlight-orange-rgb));
    --color-highlight-pink-red: rgb(var(--color-highlight-pink-red-rgb));
    --color-highlight-mint: rgb(var(--color-highlight-mint-rgb));
    --color-field-bg-rgb: var(--color-brand-teal-100-rgb);
    --color-field-bg: rgb(var(--color-field-bg-rgb));
    --color-table-head-bg-rgb: var(--color-grey-900-rgb);
    --color-table-head-bg: rgb(var(--color-table-head-bg-rgb));
    --color-table-head-text-rgb: var(--color-grey-100-rgb);
    --color-table-head-text: rgb(var(--color-table-head-text-rgb));
    --color-table-head-border-rgb: var(--color-grey-800-rgb);
    --color-table-head-border: rgb(var(--color-table-head-border-rgb));
    --color-surface-floating: linear-gradient(180deg, rgb(var(--color-brand-teal-100-rgb) / 0.88), rgb(var(--color-grey-900-rgb) / 0.9));
    --shadow-surface: 0 10px 28px rgb(var(--color-grey-000-rgb) / 0.08);
    --shadow-surface-floating: 0 18px 38px rgb(var(--color-grey-000-rgb) / 0.14), 0 2px 0 rgb(var(--color-grey-1000-rgb) / 0.28) inset;
    --radius-s: 8px;
    --radius-m: 12px;
    --radius-l: 16px;
    --btn-height: 44px;
    --btn-radius: 8px;
    --btn-padding-x: 16px;
    --btn-focus-ring: 0 0 0 3px rgb(var(--color-brand-teal-500-rgb) / 0.28);
    --btn-transition: background-color 130ms ease, border-color 130ms ease, color 130ms ease, box-shadow 130ms ease;
    --icon-btn-size: 36px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    /* transitions-dev — modal (06-modal.md) */
    --modal-open-dur: 250ms;
    --modal-close-dur: 150ms;
    --modal-scale: 0.96;
    --modal-scale-close: 0.96;
    --modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 3 4;
    hyphenate-limit-lines: 2;
    overflow-wrap: break-word;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-grey-100);
    background:
        radial-gradient(circle at 100% -20%, rgb(var(--color-brand-teal-500-rgb) / 0.2) 0%, rgb(var(--color-brand-teal-500-rgb) / 0) 45%),
        radial-gradient(circle at -20% 20%, rgb(var(--color-brand-bronze-100-rgb) / 0.36) 0%, rgb(var(--color-brand-bronze-100-rgb) / 0) 42%),
        var(--color-grey-900);
    padding: calc(24px + var(--safe-area-top)) calc(24px + var(--safe-area-right)) calc(24px + var(--safe-area-bottom)) calc(24px + var(--safe-area-left));
    box-sizing: border-box;
}

body.dibo-confirm-open {
    overflow: hidden;
}

.dibo-confirm-overlay {
    position: fixed;
    inset: 0;
    width: 100dvw;
    min-height: 100dvh;
    z-index: 2200;
    align-items: center;
    justify-content: center;
    padding: calc(16px + var(--safe-area-top)) calc(16px + var(--safe-area-right)) calc(16px + var(--safe-area-bottom)) calc(16px + var(--safe-area-left));
    background: rgb(var(--color-grey-000-rgb) / 0.24);
    backdrop-filter: blur(18px) saturate(1.18);
    -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.dibo-confirm-dialog {
    width: min(430px, calc(100dvw - 24px));
    border: 1px solid rgb(var(--color-grey-000-rgb) / 0.08);
    border-radius: 16px;
    background: rgb(var(--color-grey-1000-rgb) / 0.88);
    box-shadow: 0 24px 64px rgb(var(--color-grey-000-rgb) / 0.24);
    padding: 16px;
}

.dibo-confirm-dialog h3 {
    margin: 0;
    color: var(--color-grey-100);
    font-size: 1.04rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dibo-confirm-dialog p {
    margin: 10px 0 0;
    color: var(--color-grey-100);
    line-height: 1.42;
    font-size: 0.96rem;
}

.dibo-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.dibo-confirm-dialog .dibo-confirm-actions .button-link {
    min-height: var(--btn-height);
    height: var(--btn-height);
    border-radius: 8px;
    padding: 0 var(--btn-padding-x);
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--btn-transition);
}

.dibo-confirm-dialog .dibo-confirm-actions .button-link#diboConfirmCancel {
    background: rgb(var(--color-grey-900-rgb) / 0.7);
    color: var(--color-grey-100);
    border-color: rgb(var(--color-grey-500-rgb) / 0.65);
}

.dibo-confirm-dialog .dibo-confirm-actions .button-link#diboConfirmCancel:hover {
    background: rgb(var(--color-grey-900-rgb) / 0.9);
    color: var(--color-grey-100);
    border-color: rgb(var(--color-grey-500-rgb) / 0.8);
}

.dibo-confirm-dialog .dibo-confirm-actions .button-link#diboConfirmAccept.is-primary,
.dibo-confirm-dialog .dibo-confirm-actions .button-link#diboConfirmAccept.is-neutral {
    background: var(--color-grey-200);
    border-color: var(--color-grey-200);
    color: var(--color-grey-1000);
}

.dibo-confirm-dialog .dibo-confirm-actions .button-link#diboConfirmAccept.is-primary:hover,
.dibo-confirm-dialog .dibo-confirm-actions .button-link#diboConfirmAccept.is-neutral:hover {
    background: var(--color-grey-300);
    border-color: var(--color-grey-300);
    color: var(--color-grey-1000);
}

.dibo-confirm-dialog .dibo-confirm-actions .button-link#diboConfirmAccept.is-danger {
    background: var(--color-state-error-soft);
    border-color: var(--color-state-error-soft);
    color: var(--color-grey-1000);
}

.dibo-confirm-dialog .dibo-confirm-actions .button-link#diboConfirmAccept.is-danger:hover {
    background: rgb(var(--color-state-error-soft-rgb) / 0.86);
    border-color: rgb(var(--color-state-error-soft-rgb) / 0.86);
    color: var(--color-grey-1000);
}

form,
body > div,
body > main {
    width: min(1080px, 100%);
    margin: 0 auto;
    background: rgb(var(--color-grey-1000-rgb) / 0.9);
    border: 1px solid var(--color-grey-800);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-surface);
    padding: 24px;
    box-sizing: border-box;
}

body.workspace-editor form,
body.workspace-moderator form,
body.workspace-participant form {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

h1,
h2,
h3 {
    margin: 0 0 12px;
    color: var(--color-grey-100);
    line-height: 1.2;
}

h1 {
    font-weight: 700;
    font-size: clamp(1.6rem, 2.8dvw, 2.15rem);
}

h2 {
    margin-top: 24px;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.1dvw, 1.5rem);
}

h3 {
    font-size: clamp(1.02rem, 1.8dvw, 1.2rem);
}

p,
ul,
ol {
    margin: 0 0 12px;
}

ul,
ol {
    padding-left: 20px;
}

a {
    color: var(--color-brand-teal-700);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--color-brand-teal-500);
}

label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 500;
}

input,
textarea,
select,
button,
.aspNetDisabled,
input[type="submit"],
input[type="button"] {
    font: inherit;
    min-height: 44px;
    border-radius: var(--radius-s);
    border: 1px solid var(--color-grey-700);
    padding: 8px 12px;
    box-sizing: border-box;
}

input,
select {
    width: min(100%, 700px);
    background: var(--color-field-bg);
    border: none;
}

textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--color-field-bg);
    border: none;
}

input.code-input {
    width: min(100%, 16ch);
    min-width: 12ch;
}

input.code-input-invalid-flash,
input.code-input-invalid-flash:focus {
    animation: code-input-invalid-flash 220ms ease-in-out;
}

@keyframes code-input-invalid-flash {
    0% {
        box-shadow: 0 0 0 rgb(var(--color-state-error-soft-rgb) / 0);
        border-color: var(--color-grey-700);
        background-color: var(--color-field-bg);
    }
    50% {
        box-shadow: 0 0 0 3px rgb(var(--color-state-error-soft-rgb) / 0.24);
        border-color: var(--color-state-error-soft);
        background-color: rgb(var(--color-state-error-soft-rgb) / 0.18);
    }
    100% {
        box-shadow: 0 0 0 rgb(var(--color-state-error-soft-rgb) / 0);
        border-color: var(--color-grey-700);
        background-color: var(--color-field-bg);
    }
}

textarea {
    min-height: 120px;
    resize: vertical;
}

textarea[style*="width"] {
    width: 100% !important;
    max-width: 100% !important;
}

button,
input[type="submit"],
input[type="button"] {
    width: auto;
    background: var(--color-brand-teal-500);
    color: var(--color-grey-1000);
    border-color: var(--color-brand-teal-500);
    font-weight: 700;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--color-brand-teal-700);
    border-color: var(--color-brand-teal-700);
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.live-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgb(var(--color-brand-teal-700-rgb) / 0.24);
    border-radius: 999px;
    height: 44px;
    padding: 0 8px;
    background: rgb(var(--color-grey-1000-rgb) / 0.94);
}

.live-stepper-button {
    min-height: 0;
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--color-brand-teal-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    text-decoration: none;
    transition: var(--btn-transition);
}

.live-stepper-button:hover {
    background: rgb(var(--color-brand-teal-100-rgb) / 0.6);
    border-color: transparent;
}

.live-stepper-button[disabled],
.live-stepper-button[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    background: transparent;
}

.live-stepper-button img {
    width: 24px;
    height: 24px;
}

.live-stepper-divider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--color-brand-teal-700);
}

.live-stepper-divider img {
    width: 16px;
    height: 16px;
    display: block;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
    outline: none;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible,
.button-link:focus-visible,
.symbol-button:focus-visible,
.live-stepper-button:focus-visible,
.share-options-close:focus-visible,
.builder-type-overlay-close:focus-visible,
.builder-icon-button:focus-visible,
.builder-image-action:focus-visible {
    outline: none;
    box-shadow: var(--btn-focus-ring);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    background: var(--color-grey-1000);
    border-radius: var(--radius-m);
    overflow: hidden;
}

th,
td {
    border: 1px solid var(--color-grey-800);
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: linear-gradient(180deg, rgb(var(--color-grey-1000-rgb) / 0.88), var(--color-table-head-bg));
    color: var(--color-table-head-text);
    border-color: var(--color-table-head-border);
    font-weight: 700;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-grey-800);
    position: relative;
}

.brand-header .brand-menu-toggle {
    margin-left: auto;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgb(var(--color-brand-teal-700-rgb) / 0.35);
    background: var(--color-grey-1000);
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 1301;
}

.brand-header .brand-menu-toggle:hover {
    background: rgb(var(--color-brand-teal-500-rgb) / 0.1);
}

.brand-header .brand-menu-toggle-bar {
    width: 18px;
    height: 2px;
    background: var(--color-brand-teal-700);
    display: block;
    border-radius: 1px;
    margin: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-header .brand-menu-toggle.is-open .brand-menu-toggle-bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.brand-header .brand-menu-toggle.is-open .brand-menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.brand-header .brand-menu-toggle.is-open .brand-menu-toggle-bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .brand-header .brand-menu-toggle-bar {
        transition: none;
    }
}

.brand-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgb(var(--color-grey-000-rgb) / 0.55);
}

.brand-menu-panel {
    position: fixed;
    /* top und right werden per JS beim &Ouml;ffnen gesetzt */
    width: clamp(280px, 32dvw, 380px);
    max-width: calc(100dvw - 16px);
    z-index: 1250;
    background: var(--color-grey-1000);
    border: 1px solid var(--color-grey-800);
    border-radius: var(--radius-m);
    box-shadow: 0 8px 32px rgb(var(--color-grey-000-rgb) / 0.24);
    padding: 20px 16px;
    box-sizing: border-box;
    overflow-y: auto;
    opacity: 0;
    transform: scale(0.93) translateY(-8px);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity var(--modal-open-dur) var(--modal-ease),
                transform var(--modal-open-dur) var(--modal-ease);
    will-change: opacity, transform;
}

.brand-menu-panel.is-open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.brand-menu-panel.is-closing {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
    pointer-events: none;
    transition: opacity var(--modal-close-dur) var(--modal-ease),
                transform var(--modal-close-dur) var(--modal-ease);
}

.brand-menu-divider {
    border: none;
    border-top: 1px solid var(--color-grey-800);
    margin: 36px 0;
}

.brand-menu-title {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
}

.brand-menu-account {
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.brand-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px;
    border-radius: var(--radius-s);
    text-decoration: none;
    color: var(--color-grey-100);
    font-weight: 500;
}

.brand-menu-item:hover {
    background: rgb(var(--color-brand-teal-500-rgb) / 0.12);
}

.brand-menu-account-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex: 0 1 auto;
    min-width: 0;
}

.brand-menu-inline-link {
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 0.9rem;
    color: var(--color-grey-400);
    text-decoration: none;
    padding: 2px 4px;
}

.brand-menu-inline-link:hover {
    color: var(--color-grey-100);
}

.brand-menu-item.brand-menu-item-compact {
    min-height: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.brand-menu-item.brand-menu-item-tight {
    min-height: 24px;
    padding-top: 1px;
    padding-bottom: 1px;
    font-size: 0.95rem;
}

.brand-menu-avatar,
.brand-menu-avatar-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.brand-menu-avatar {
    object-fit: cover;
    border: 1px solid rgb(var(--color-brand-teal-700-rgb) / 0.35);
}

.brand-menu-avatar-fallback {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgb(var(--color-brand-teal-500-rgb) / 0.16);
    border: 1px solid rgb(var(--color-brand-teal-700-rgb) / 0.35);
    color: var(--color-brand-teal-700);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    flex: 0 0 auto;
}

.brand-logo {
    width: 66px;
    height: 66px;
    border-radius: 8px;
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--color-brand-teal-700);
}

.brand-tagline {
    font-size: 13px;
    color: var(--color-grey-500);
    margin-top: 2px;
}

.status-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-s);
    background: var(--color-brand-teal-200);
    border: 1px solid var(--color-brand-teal-300);
    color: var(--color-brand-teal-700);
    font-weight: 600;
}

.status-message.warn {
    background: rgb(var(--color-state-warning-soft-rgb) / 0.18);
    border-color: rgb(var(--color-state-warning-soft-rgb) / 0.4);
    color: var(--color-state-warning-soft);
}

.status-message.error {
    background: rgb(var(--color-state-error-soft-rgb) / 0.18);
    border-color: rgb(var(--color-state-error-soft-rgb) / 0.4);
    color: var(--color-state-error-soft);
}

.status-message.success {
    background: rgb(var(--color-state-success-soft-rgb) / 0.18);
    border-color: rgb(var(--color-state-success-soft-rgb) / 0.4);
    color: var(--color-state-success-soft);
}

.qr-generator-shell {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.qr-controls {
    min-width: 280px;
    max-width: 460px;
}

.qr-preview-area {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
}

.qr-stage {
    position: relative;
    width: min(92dvw, 520px);
    height: min(92dvw, 520px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-grey-1000);
    border: 1px solid var(--color-grey-800);
    border-radius: 16px;
    padding: 12px;
    box-sizing: border-box;
}

.qr-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.qr-logo-shell {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: var(--color-grey-1000);
    box-shadow: 0 0 0 2px rgb(var(--color-brand-teal-700-rgb) / 0.08);
}

.qr-logo {
    width: 74px;
    height: 74px;
    border-radius: 16px;
}

.qr-status {
    min-height: 20px;
    color: var(--color-brand-teal-700);
    font-weight: 600;
}

.survey-create-cta {
    margin: 16px 0 18px;
    padding: 16px;
    border: 1px dashed rgb(var(--color-brand-teal-700-rgb) / 0.45);
    border-radius: var(--radius-m);
    background: rgb(var(--color-brand-teal-500-rgb) / 0.06);
}

.survey-create-plus {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgb(var(--color-brand-teal-700-rgb) / 0.42);
    background: var(--color-grey-1000);
    color: var(--color-brand-teal-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.survey-tile-shell {
    margin: 8px 0 8px;
}

.survey-tile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.survey-tile {
    border: 1px solid rgb(var(--color-brand-teal-700-rgb) / 0.22);
    border-radius: var(--radius-m);
    background: var(--color-grey-1000);
    box-shadow: 0 6px 18px rgb(var(--color-grey-000-rgb) / 0.06);
    padding: 16px;
}

.survey-tile h3 {
    margin: 0 0 8px;
}

.survey-tile-description {
    margin: 0 0 10px;
    color: var(--color-grey-400);
}

.survey-meta-list {
    margin: 0;
}

.survey-meta-list div {
    display: grid;
    grid-template-columns: minmax(150px, 200px) 1fr;
    gap: 8px;
    border-top: 1px solid var(--color-brand-teal-100);
    padding: 7px 0;
}

.survey-meta-list dt,
.survey-meta-list dd {
    margin: 0;
}

.survey-meta-list dt {
    font-weight: 700;
    color: var(--color-brand-teal-700);
}

.survey-tile-actions {
    margin: 10px 0 0;
}

.app-shell {
    display: grid;
    gap: 20px;
}

.third-party-license-panel {
    margin-top: 1.25rem;
}

.license-preformatted {
    white-space: pre-wrap;
    margin: 0;
}

.probe-result-card {
    background: var(--color-grey-1000);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgb(var(--color-grey-000-rgb) / 0.1);
}

.probe-status-ok {
    color: var(--color-state-success-soft);
    font-weight: 700;
}

.probe-status-warn {
    color: var(--color-state-warning-soft);
}

.probe-status-error {
    color: var(--color-state-error-soft);
}

.hero-panel {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-l);
    border: 1px solid var(--color-brand-teal-300);
    background:
        linear-gradient(135deg, rgb(var(--color-grey-1000-rgb) / 0.96), var(--color-brand-teal-200)),
        radial-gradient(circle at top right, var(--color-brand-teal-300), transparent);
}

.hero-panel-with-qr {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.hero-panel-main {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.hero-kicker {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand-teal-700);
}

.hero-body {
    display: grid;
    gap: 8px;
}

.hero-text {
    max-width: 62ch;
    color: var(--color-brand-teal-700);
}

.hero-actions,
.inline-actions,
.action-cluster {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.auto-nav-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0;
    margin-top: 10px;
    width: 100%;
}

.auto-nav-bar-left {
    display: flex;
    justify-content: flex-start;
    min-width: 0;
}

.auto-nav-bar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.auto-nav-bar-right {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
    position: relative;
}

.auto-nav-bar-right.has-next-button::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    background-color: var(--color-grey-1000);
    -webkit-mask-image: url('/assets/icons/chevron-right.svg');
    mask-image: url('/assets/icons/chevron-right.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 20px 20px;
    mask-size: 20px 20px;
    pointer-events: none;
}

.auto-nav-bar.is-readonly .auto-nav-bar-right input[type="submit"],
.auto-nav-bar.is-readonly .auto-nav-bar-right button {
    background: var(--color-grey-600);
    border-color: var(--color-grey-600);
    color: var(--color-grey-1000);
}

.auto-nav-bar.is-readonly .auto-nav-bar-right.has-next-button::after {
    background-color: var(--color-grey-1000);
}

.page-indicator {
    display: block;
    width: 100%;
    margin: 0;
    text-align: center;
    color: var(--color-text-secondary, var(--color-grey-400));
    font-size: 14px;
}

.action-cluster .status-message {
    margin: 0;
    flex: 1;
    padding: 8px 12px;
    font-size: 0.9rem;
    line-height: 1.3;
    align-self: center;
}

.hero-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.hero-actions.hero-actions-end {
    justify-content: flex-end;
    margin-left: auto;
}

.hero-actions.hero-actions-with-status {
    justify-content: flex-start;
}

.hero-actions.hero-actions-with-status .survey-state-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    box-sizing: border-box;
    border-radius: var(--radius-s);
    border: 1px solid var(--color-brand-teal-300);
    background: linear-gradient(180deg, rgb(var(--color-grey-1000-rgb) / 0.98), var(--color-brand-teal-200));
    color: var(--color-brand-teal-700);
    font-weight: 700;
    white-space: nowrap;
    margin-right: auto;
}

.hero-actions.hero-actions-with-status .survey-state-chip-label {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-brand-teal-700);
    font-weight: 700;
}

.hero-actions.hero-actions-with-status .survey-state-chip-value {
    font-size: 0.95rem;
    line-height: 1;
    color: var(--color-brand-teal-700);
    font-weight: 700;
}

.start-join-card {
    align-content: center;
    justify-content: center;
}

.start-join-layout {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 16px;
    flex: 1 1 auto;
}

.start-join-field,
.start-join-actions {
    display: grid;
    width: min(100%, 360px);
}

.start-join-field {
    gap: 8px;
}

.start-join-actions {
    gap: 8px;
    align-content: stretch;
}

.start-join-control {
    width: 100% !important;
    max-width: none !important;
}

.start-join-hint {
    margin: 4px 0 0;
    color: var(--color-brand-teal-700);
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: center;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--btn-height);
    padding: 8px var(--btn-padding-x);
    border-radius: var(--btn-radius);
    border: 1px solid var(--color-brand-teal-500);
    background: var(--color-brand-teal-500);
    color: var(--color-grey-1000);
    text-decoration: none;
    font-weight: 700;
    transition: var(--btn-transition);
}

.button-link:hover {
    background: var(--color-brand-teal-700);
    border-color: var(--color-brand-teal-700);
    color: var(--color-grey-1000);
}

.button-link.secondary,
.button-link.ghost {
    background: var(--color-grey-1000);
    color: var(--color-brand-teal-700);
}

.button-link.secondary:hover,
.button-link.ghost:hover {
    background: rgb(var(--color-brand-teal-500-rgb) / 0.1);
    border-color: var(--color-brand-teal-500);
    color: var(--color-brand-teal-700);
}

.button-link.ghost {
    border-color: var(--color-brand-teal-300);
}

.button-link.is-danger,
.button-link.danger {
    border-color: var(--color-state-error-soft);
    background: var(--color-state-error-soft);
    color: var(--color-grey-1000);
}

.button-link.is-danger:hover,
.button-link.danger:hover {
    border-color: rgb(var(--color-state-error-soft-rgb) / 0.86);
    background: rgb(var(--color-state-error-soft-rgb) / 0.86);
    color: var(--color-grey-1000);
}

.button-link.full-width {
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
}

/* Participant auto navigation icons: keep icon backgrounds after generic button rules. */
input[type="submit"].participant-back-button,
input[type="button"].participant-back-button {
    width: 44px;
    min-width: 44px;
    padding: 8px;
    background-image: url('/assets/icons/chevron-left.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    color: transparent;
    font-size: 0;
}

input[type="submit"].participant-next-button,
input[type="button"].participant-next-button {
    padding-right: 38px;
}

input[type="submit"].participant-back-button:hover,
input[type="button"].participant-back-button:hover {
    background-image: url('/assets/icons/chevron-left.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}

input[type="submit"].participant-next-button:hover,
input[type="button"].participant-next-button:hover {
    padding-right: 38px;
}

.logout-icon-link {
    width: var(--icon-btn-size);
    min-width: var(--icon-btn-size);
    height: var(--icon-btn-size);
    min-height: var(--icon-btn-size);
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logout-icon-link img {
    width: 18px;
    height: 18px;
    display: block;
}

.panel-grid {
    display: grid;
    gap: 16px;
}

.panel-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-card,
.info-card,
.workspace-card,
.form-card,
.data-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-m);
    background: rgb(var(--color-grey-1000-rgb) / 0.94);
    border: 1px solid var(--color-brand-teal-300);
    box-shadow: 0 16px 34px rgb(var(--color-grey-000-rgb) / 0.16), 0 1px 0 rgb(var(--color-grey-1000-rgb) / 0.55) inset;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.panel-card.tight,
.info-card.tight,
.workspace-card.tight {
    gap: 8px;
}

.eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand-teal-700);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    padding: 16px;
    border-radius: var(--radius-m);
    background: linear-gradient(180deg, rgb(var(--color-grey-1000-rgb) / 0.98), var(--color-brand-teal-200));
    border: 1px solid var(--color-brand-teal-300);
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.metric-card-button {
    width: 100%;
    text-align: center;
    cursor: pointer;
    font: inherit;
    background: linear-gradient(180deg, var(--color-brand-teal-200), var(--color-brand-teal-300));
    border-color: var(--color-brand-teal-300);
    box-shadow: inset 0 1px 0 rgb(var(--color-grey-1000-rgb) / 0.72);
}

.metric-card-button:hover {
    border-color: var(--color-brand-teal-500);
    box-shadow: 0 4px 12px rgb(var(--color-grey-000-rgb) / 0.16);
}

.metric-card-button strong {
    color: var(--color-brand-teal-700);
}

.metric-card-button span {
    color: var(--color-brand-teal-700);
}

.metric-card-button:focus-visible {
    outline: 2px solid var(--color-brand-teal-700);
    outline-offset: 2px;
}

.metric-card strong,
.metric-value {
    display: block;
    font-size: 1.35rem;
    line-height: 1.15;
    color: var(--color-grey-100);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.metric-card span,
.metric-label {
    display: block;
    margin-top: 4px;
    color: var(--color-brand-teal-700);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.metric-grid.metric-grid-compact {
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    grid-auto-rows: 112px;
    align-items: stretch;
}

.metric-grid.metric-grid-compact .metric-card {
    padding: 8px;
    background: rgb(var(--color-grey-1000-rgb) / 0.78);
    border-color: var(--color-brand-teal-300);
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.metric-grid.metric-grid-compact .metric-card strong {
    font-size: clamp(0.84rem, 0.95dvw, 1.02rem);
    font-weight: 600;
    max-width: 100%;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-brand-teal-700);
}

.metric-grid.metric-grid-compact .metric-card span {
    margin-top: 2px;
    font-size: 0.78rem;
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: var(--color-brand-teal-700);
    letter-spacing: 0.03em;
}

.metric-grid.metric-grid-compact .metric-card.metric-card-button {
    background: linear-gradient(180deg, var(--color-brand-teal-200), var(--color-brand-teal-300));
    border-color: var(--color-brand-teal-300);
    box-shadow: inset 0 1px 0 rgb(var(--color-grey-1000-rgb) / 0.72);
}

.metric-grid.metric-grid-compact .metric-card.metric-card-button:hover {
    border-color: var(--color-brand-teal-500);
    box-shadow: 0 4px 12px rgb(var(--color-grey-000-rgb) / 0.16);
}

.metric-grid.metric-grid-compact .metric-card.metric-card-button strong {
    color: var(--color-brand-teal-700);
}

.metric-grid.metric-grid-compact .metric-card.metric-card-button span {
    color: var(--color-brand-teal-700);
}

.stack,
.content-stack {
    display: grid;
    gap: 12px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
}

.toolbar > * {
    margin: 0;
}

.field-grid {
    display: grid;
    gap: 16px;
}

.field-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field,
.field-block {
    display: grid;
    gap: 8px;
}

.login-inline-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.form-card .login-inline-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100%;
}

.login-inline-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100% !important;
    max-width: none !important;
}

.form-card .login-inline-row > input[type="text"].login-inline-input,
.form-card .login-inline-row > input[type="email"].login-inline-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
}

.login-inline-button {
    flex: 0 0 160px;
    width: 160px;
    min-width: 160px;
    white-space: nowrap;
}

.form-card .login-inline-row > input[type="submit"].login-inline-button,
.form-card .login-inline-row > button.login-inline-button {
    flex: 0 0 160px !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
}

.register-card .button-link.full-width {
    width: 100% !important;
    max-width: none !important;
}

.register-card .field,
.register-card .field-grid {
    width: 100%;
}

.register-card .button-link.full-width {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.register-card.register-card-muted {
    background: linear-gradient(180deg, rgb(var(--color-brand-teal-20-rgb) / 0.98), rgb(var(--color-brand-teal-100-rgb) / 0.98));
    border-color: var(--color-brand-teal-200);
}

#loginCard {
    background: linear-gradient(180deg, rgb(var(--color-brand-teal-20-rgb) / 0.98), rgb(var(--color-brand-teal-100-rgb) / 0.98));
    border-color: var(--color-brand-teal-200);
}

#loginCard label {
    color: var(--color-brand-teal-700);
}

#loginCard .login-inline-input {
    background: rgb(var(--color-brand-teal-10-rgb) / 0.96);
    border: 1px solid var(--color-brand-teal-200);
    color: var(--color-grey-100);
}

#loginCard .login-inline-input:focus {
    outline-color: rgb(var(--color-brand-teal-500-rgb) / 0.26);
    border-color: var(--color-brand-teal-500);
}

#loginCard .login-inline-button {
    background: linear-gradient(180deg, var(--color-brand-teal-500), var(--color-brand-teal-700));
    border-color: var(--color-brand-teal-700);
    color: var(--color-grey-1000);
}

.register-card.register-card-muted label,
.register-card.register-card-muted .register-note {
    color: var(--color-brand-teal-700);
}

.register-card.register-card-muted .login-inline-input {
    background: rgb(var(--color-brand-teal-10-rgb) / 0.96);
    border: 1px solid var(--color-brand-teal-200);
    color: var(--color-grey-100);
}

.register-card.register-card-muted .login-inline-input:focus {
    outline-color: rgb(var(--color-brand-teal-500-rgb) / 0.26);
    border-color: var(--color-brand-teal-500);
}

.register-card.register-card-muted .login-inline-button {
    background: linear-gradient(180deg, var(--color-brand-teal-500), var(--color-brand-teal-700));
    border-color: var(--color-brand-teal-700);
    color: var(--color-grey-1000);
}

.register-card.register-card-muted .login-inline-button:hover {
    background: linear-gradient(180deg, var(--color-brand-teal-700), var(--color-brand-teal-800));
    border-color: var(--color-brand-teal-800);
}

.register-card .register-note {
    margin: 2px 0 0;
    font-size: 0.9rem;
    line-height: 1.35;
}

.login-switch-line {
    margin: 12px 0 0;
    text-align: center;
}

.login-switch-link {
    display: inline-block;
    font-size: 0.7rem;
    line-height: 1.2;
    color: var(--color-grey-400);
    text-decoration: none;
}

.login-switch-link:hover,
.login-switch-link:focus {
    color: var(--color-grey-200);
}

/* === Login Tab Navigation === */
.login-tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-brand-teal-300);
}

.login-tab {
    flex: 1 1 auto;
    padding: 11px 20px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--color-brand-teal-700);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    border-radius: var(--radius-s) var(--radius-s) 0 0;
    cursor: pointer;
    text-align: center;
    transition: color 120ms ease, border-bottom-color 120ms ease;
}

.login-tab[aria-selected="true"] {
    color: var(--color-grey-100);
    background: rgb(var(--color-brand-teal-700-rgb) / 0.18);
    border-bottom-color: var(--color-brand-teal-500);
}

.login-tab:not([aria-selected="true"]):hover {
    color: var(--color-grey-200);
    border-bottom-color: var(--color-brand-teal-200);
}

.login-tab:focus-visible {
    outline: 2px solid var(--color-brand-teal-500);
    outline-offset: -2px;
    border-radius: var(--radius-s);
}

@media (prefers-reduced-motion: reduce) {
    .login-tab {
        transition: none;
    }
}

.field-hint,
.muted-text,
.subtle-text {
    color: var(--color-brand-teal-700);
    font-size: 0.92rem;
}

.surface-list,
.link-list,
.summary-list {
    display: grid;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.surface-list li,
.summary-list li {
    padding: 12px 16px;
    border-radius: var(--radius-s);
    background: var(--color-brand-teal-200);
    border: 1px solid var(--color-brand-teal-300);
}

.summary-table {
    border: 1px solid var(--color-grey-800);
    border-radius: var(--radius-m);
    background: var(--color-grey-1000);
    overflow: hidden;
    overflow-x: auto;
}

.summary-table > table {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
}

.summary-table > table.survey-list-table {
    table-layout: auto;
}

.summary-table > table.survey-list-table th,
.summary-table > table.survey-list-table td {
    vertical-align: middle;
    border: 0 !important;
}

.summary-table > table.survey-list-table > tbody > tr:not(:first-child):nth-child(odd) > td {
    background: var(--color-grey-1000);
}

.summary-table > table.survey-list-table > tbody > tr:not(:first-child):nth-child(even) > td {
    background: var(--color-grey-900);
}

.summary-table > table.survey-list-table th:nth-child(1),
.summary-table > table.survey-list-table td:nth-child(1) {
    width: 35%;
    min-width: 280px;
    text-align: center;
}

.summary-table > table.survey-list-table > tbody > tr > td:nth-child(1) {
    font-size: inherit;
    font-weight: 700;
}

.summary-table > table.survey-list-table > tbody > tr > td:nth-child(1) > .survey-list-title-link {
    font-size: inherit;
    font-weight: inherit;
}

.summary-table > table.survey-list-table th:nth-child(2),
.summary-table > table.survey-list-table td:nth-child(2),
.summary-table > table.survey-list-table th:nth-child(3),
.summary-table > table.survey-list-table td:nth-child(3),
.summary-table > table.survey-list-table th:nth-child(4),
.summary-table > table.survey-list-table td:nth-child(4),
.summary-table > table.survey-list-table th:nth-child(6),
.summary-table > table.survey-list-table td:nth-child(6) {
    width: 1%;
    white-space: nowrap;
}

.summary-table > table.survey-list-table th:nth-child(5),
.summary-table > table.survey-list-table td:nth-child(5) {
    width: 25%;
    min-width: 180px;
    max-width: 320px;
}

.summary-table > table tr > th:first-child,
.summary-table > table tr > td:first-child {
    border-left: 0;
}

.summary-table > table tr:first-child > th,
.summary-table > table tr:first-child > td {
    border-top: 0;
}

.summary-table > table tr > th:last-child,
.summary-table > table tr > td:last-child {
    border-right: 0;
}

.summary-table > table tr:last-child > th,
.summary-table > table tr:last-child > td {
    border-bottom: 0;
}

.page-list-table td {
    vertical-align: middle;
}

.page-order-actions,
.page-row-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-row-actions {
    flex-direction: column;
    align-items: stretch;
    min-width: 160px;
}

.page-row-actions .table-chip {
    width: 100%;
}

#shareOptionsOverlay,
#structureWaveOverlay,
#imageUploadOverlay,
#choiceImagePoolOverlay,
#choiceImageZoomOverlay {
    position: fixed;
    inset: 0;
    background: rgb(var(--color-grey-000-rgb) / 0.55);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    padding: calc(16px + var(--safe-area-top)) calc(16px + var(--safe-area-right)) calc(16px + var(--safe-area-bottom)) calc(16px + var(--safe-area-left));
}

#structureWaveOverlay .structure-wave-overlay-card {
    width: min(520px, 100%);
}

#structureWaveOverlay .structure-wave-actions {
    justify-content: flex-start;
}

.share-options-card {
    width: min(380px, 100%);
    background: var(--color-brand-teal-200);
    border: 1px solid var(--color-brand-teal-300);
    border-radius: 16px;
    padding: 16px;
}

.share-options-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.share-options-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-options-close {
    border: 1px solid var(--color-brand-teal-300);
    background: var(--color-grey-1000);
    color: var(--color-brand-teal-700);
    border-radius: 8px;
    width: var(--icon-btn-size);
    min-width: var(--icon-btn-size);
    height: var(--icon-btn-size);
    min-height: var(--icon-btn-size);
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--btn-transition);
}

.overlay-close-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.overlay-close-icon-light {
    filter: brightness(0) invert(1);
}

.share-options-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.share-survey-meta {
    margin: 10px 0 12px;
    padding: 8px 12px;
    border: 1px solid var(--color-brand-teal-300);
    border-radius: 8px;
    background: var(--color-grey-1000);
    display: grid;
    gap: 8px;
}

.share-survey-meta p {
    margin: 0;
}

.share-field-label {
    display: inline-block;
    margin-top: 2px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-brand-teal-700);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.share-link-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--color-brand-teal-300);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--color-brand-teal-700);
    background: var(--color-grey-1000);
}

.share-send-email-section {
    margin-top: 16px;
    border-top: 1px solid var(--color-brand-teal-100);
    padding-top: 16px;
}
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-top: 8px;
}

.share-send-row .share-recipient-input {
    flex: 1 1 0;
    min-width: 0;
}

.share-email-status {
    margin: 8px 0 0;
    font-size: 0.88rem;
    min-height: 1.2em;
}

.share-email-status.is-success {
    color: var(--color-state-success-soft);
}

.share-email-status.is-error {
    color: var(--color-state-error-soft);
}

#shareOptionsOverlay {
    --share-dialog-accent-700: var(--color-brand-teal-700);
    --share-dialog-accent-500: var(--color-brand-teal-500);
    --share-dialog-accent-300: var(--color-brand-teal-300);
    --share-dialog-accent-100: var(--color-brand-teal-100);
    --share-dialog-accent-700-rgb: var(--color-brand-teal-700-rgb);
    --share-dialog-accent-500-rgb: var(--color-brand-teal-500-rgb);
}

body.workspace-editor #shareOptionsOverlay {
    --share-dialog-accent-700: var(--color-brand-bronze-700);
    --share-dialog-accent-500: var(--color-brand-bronze-500);
    --share-dialog-accent-300: var(--color-brand-bronze-300);
    --share-dialog-accent-100: var(--color-brand-bronze-100);
    --share-dialog-accent-700-rgb: var(--color-brand-bronze-700-rgb);
    --share-dialog-accent-500-rgb: var(--color-brand-bronze-500-rgb);
}

body.workspace-moderator #shareOptionsOverlay {
    --share-dialog-accent-700: var(--color-brand-forest-700);
    --share-dialog-accent-500: var(--color-brand-forest-500);
    --share-dialog-accent-300: var(--color-brand-forest-300);
    --share-dialog-accent-100: var(--color-brand-forest-100);
    --share-dialog-accent-700-rgb: var(--color-brand-forest-700-rgb);
    --share-dialog-accent-500-rgb: var(--color-brand-forest-500-rgb);
}

body.workspace-reviewer #shareOptionsOverlay {
    --share-dialog-accent-700: var(--color-brand-teal-700);
    --share-dialog-accent-500: var(--color-brand-teal-500);
    --share-dialog-accent-300: var(--color-brand-teal-300);
    --share-dialog-accent-100: var(--color-brand-teal-100);
    --share-dialog-accent-700-rgb: var(--color-brand-teal-700-rgb);
    --share-dialog-accent-500-rgb: var(--color-brand-teal-500-rgb);
}

#shareOptionsOverlay .share-dialog-card {
    width: min(420px, calc(100dvw - 30px));
    border-radius: 16px;
    border: 1px solid rgb(var(--color-grey-000-rgb) / 0.09);
    background: rgb(var(--color-grey-1000-rgb) / 0.95);
    box-shadow: 0 24px 56px rgb(var(--color-grey-000-rgb) / 0.16);
    padding: 16px;
}

#shareOptionsOverlay .share-dialog-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 640;
    letter-spacing: -0.01em;
    color: var(--color-grey-100);
}

#shareOptionsOverlay .share-dialog-link-wrap {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--share-dialog-accent-300);
    border-radius: 8px;
    background: rgb(var(--color-grey-1000-rgb) / 0.96);
    padding: 8px;
}

#shareOptionsOverlay .share-dialog-link-icon {
    width: 18px;
    height: 18px;
    display: block;
    opacity: 0.85;
}

#shareOptionsOverlay .share-dialog-link-input {
    width: 100%;
    min-height: 30px;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: var(--share-dialog-accent-700);
    background: transparent;
}

#shareOptionsOverlay .share-dialog-link-input:focus {
    outline: none;
}

#shareOptionsOverlay .share-dialog-status {
    min-height: 1.2em;
    margin: 8px 0 0;
    font-size: 0.84rem;
    color: var(--color-grey-400);
}

#shareOptionsOverlay .share-dialog-status.is-success {
    color: var(--share-dialog-accent-700);
}

#shareOptionsOverlay .share-dialog-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

#shareOptionsOverlay .share-dialog-actions .button-link {
    min-height: var(--btn-height);
    height: var(--btn-height);
    border-radius: 8px;
    padding: 0 var(--btn-padding-x);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    justify-content: center;
}

#shareOptionsOverlay .share-dialog-actions #shareCopyLinkButton {
    background: var(--share-dialog-accent-700);
    border-color: var(--share-dialog-accent-700);
    color: var(--color-grey-1000);
}

#shareOptionsOverlay .share-dialog-actions #shareCopyLinkButton:hover {
    background: rgb(var(--share-dialog-accent-500-rgb));
    border-color: rgb(var(--share-dialog-accent-500-rgb));
    color: var(--color-grey-1000);
}

#shareOptionsOverlay .share-dialog-actions #shareEmailLinkButton {
    background: rgb(var(--color-grey-1000-rgb) / 0.9);
    border-color: var(--share-dialog-accent-300);
    color: var(--share-dialog-accent-700);
    text-decoration: none;
}

#shareOptionsOverlay .share-dialog-actions #shareEmailLinkButton:hover {
    background: rgb(var(--share-dialog-accent-100-rgb) / 0.5);
    border-color: var(--share-dialog-accent-500);
    color: var(--share-dialog-accent-700);
}

@media (max-width: 520px) {
    #shareOptionsOverlay .share-dialog-actions {
        grid-template-columns: 1fr;
    }
}

.share-trigger-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-share {
    width: 20px;
    height: 20px;
    display: block;
    background-color: currentColor;
    -webkit-mask-image: url('/assets/icons/arrow-up-on-square.svg');
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 18px 18px;
    mask-image: url('/assets/icons/arrow-up-on-square.svg');
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 18px 18px;
}

.symbol-button {
    width: var(--icon-btn-size);
    min-width: var(--icon-btn-size);
    height: var(--icon-btn-size);
    min-height: var(--icon-btn-size);
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.94rem;
    transition: var(--btn-transition);
}

.symbol-button.is-disabled-mode,
.symbol-button[aria-disabled="true"] {
    background: var(--color-grey-1000) !important;
    border-color: var(--color-grey-300) !important;
    color: var(--color-grey-500) !important;
    cursor: not-allowed;
}

.symbol-button.is-disabled-mode:hover,
.symbol-button[aria-disabled="true"]:hover {
    background: var(--color-grey-1000) !important;
    border-color: var(--color-grey-300) !important;
    color: var(--color-grey-500) !important;
}

.symbol-button.is-disabled-mode .symbol-icon,
.symbol-button[aria-disabled="true"] .symbol-icon,
.symbol-button.is-disabled-mode:hover .symbol-icon,
.symbol-button[aria-disabled="true"]:hover .symbol-icon {
    background-color: var(--color-grey-500);
}

.symbol-icon {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
    background-color: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 18px 18px;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 18px 18px;
}

.icon-x {
    -webkit-mask-image: url('/assets/icons/x-mark.svg');
    mask-image: url('/assets/icons/x-mark.svg');
}

.icon-rotate {
    -webkit-mask-image: url('/assets/icons/arrow-path.svg');
    mask-image: url('/assets/icons/arrow-path.svg');
}

.icon-stop-filled {
    -webkit-mask-image: url('/assets/icons/stop-solid.svg');
    mask-image: url('/assets/icons/stop-solid.svg');
}

.icon-stop-outline {
    -webkit-mask-image: url('/assets/icons/stop.svg');
    mask-image: url('/assets/icons/stop.svg');
}

.symbol-status-button {
    position: relative;
}

.icon-play {
    display: block;
    width: 18px;
    height: 18px;
    background-color: var(--color-state-success-soft);
    -webkit-mask-image: url('/assets/icons/play-solid.svg');
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 18px 18px;
    mask-image: url('/assets/icons/play-solid.svg');
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 18px 18px;
}

.icon-pause {
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask-image: url('/assets/icons/pause.svg');
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 18px 18px;
    mask-image: url('/assets/icons/pause.svg');
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 18px 18px;
}

.icon-pause-bar {
    display: none;
}

.moderator-control-head {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.moderator-property-head {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.moderator-qr-button {
    color: var(--color-brand-teal-700);
}

.icon-qr {
    width: 18px;
    height: 18px;
    display: block;
    background-color: currentColor;
    -webkit-mask-image: url('/assets/icons/qr-code.svg');
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 18px 18px;
    mask-image: url('/assets/icons/qr-code.svg');
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 18px 18px;
}

.icon-printer {
    -webkit-mask-image: url('/assets/icons/printer.svg');
    mask-image: url('/assets/icons/printer.svg');
}

.icon-photo {
    width: 18px;
    height: 18px;
    display: block;
    background-color: currentColor;
    -webkit-mask-image: url('/assets/icons/photo.svg');
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 18px 18px;
    mask-image: url('/assets/icons/photo.svg');
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 18px 18px;
}

.icon-gear {
    -webkit-mask-image: url('/assets/icons/cog-6-tooth.svg');
    mask-image: url('/assets/icons/cog-6-tooth.svg');
}

.icon-page {
    -webkit-mask-image: url('/assets/icons/clipboard-document.svg');
    mask-image: url('/assets/icons/clipboard-document.svg');
}

.icon-document-text {
    -webkit-mask-image: url('/assets/icons/document-text.svg');
    mask-image: url('/assets/icons/document-text.svg');
}

.icon-plus {
    -webkit-mask-image: url('/assets/icons/plus.svg');
    mask-image: url('/assets/icons/plus.svg');
}

.icon-duplicate {
    -webkit-mask-image: url('/assets/icons/clipboard-document.svg');
    mask-image: url('/assets/icons/clipboard-document.svg');
}

.icon-clipboard-document-list {
    -webkit-mask-image: url('/assets/icons/clipboard-document-list.svg');
    mask-image: url('/assets/icons/clipboard-document-list.svg');
}

.icon-pencil {
    -webkit-mask-image: url('/assets/icons/pencil-square.svg');
    mask-image: url('/assets/icons/pencil-square.svg');
}

.icon-trash {
    -webkit-mask-image: url('/assets/icons/trash.svg');
    mask-image: url('/assets/icons/trash.svg');
}

.icon-archive-box {
    -webkit-mask-image: url('/assets/icons/archive-box.svg');
    mask-image: url('/assets/icons/archive-box.svg');
}

.icon-ellipsis-vertical {
    -webkit-mask-image: url('/assets/icons/ellipsis-vertical.svg');
    mask-image: url('/assets/icons/ellipsis-vertical.svg');
}

.moderator-control-gap {
    display: inline-block;
    width: calc(var(--moderator-symbol-size, 32px) * 0.5);
    flex-shrink: 0;
}

.moderator-control-gap-wide {
    width: calc(var(--moderator-symbol-size, 32px) * 1.25);
}

.icon-test {
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask-image: url('/assets/icons/beaker.svg');
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url('/assets/icons/beaker.svg');
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.button-link.ghost.moderator-results-link {
    color: var(--color-brand-teal-700);
    border-color: var(--color-brand-teal-300);
    background: var(--color-grey-1000);
    padding: 0;
}

.button-link.ghost.moderator-results-link:hover {
    color: var(--color-brand-teal-800);
    border-color: var(--color-brand-teal-500);
    background: var(--color-brand-teal-50);
}

.icon-results {
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask-image: url('/assets/icons/magnifying-glass.svg');
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url('/assets/icons/magnifying-glass.svg');
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.moderator-control-symbols {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    max-width: 100%;
    flex-wrap: wrap;
    margin-left: auto;
}

.moderator-control-symbols.is-wave-finished .symbol-button:not(.symbol-status-button),
.moderator-control-symbols.is-wave-finished .symbol-button:not(.symbol-status-button):hover {
    background: var(--color-grey-1000) !important;
    border-color: var(--color-grey-300) !important;
    color: var(--color-grey-500) !important;
    cursor: not-allowed;
    pointer-events: none;
}

.moderator-control-symbols.is-wave-finished .symbol-button:not(.symbol-status-button) .symbol-icon,
.moderator-control-symbols.is-wave-finished .symbol-button:not(.symbol-status-button):hover .symbol-icon,
.moderator-control-symbols.is-wave-finished .symbol-button:not(.symbol-status-button) .icon-play,
.moderator-control-symbols.is-wave-finished .symbol-button:not(.symbol-status-button):hover .icon-play,
.moderator-control-symbols.is-wave-finished .symbol-button:not(.symbol-status-button) .icon-pause,
.moderator-control-symbols.is-wave-finished .symbol-button:not(.symbol-status-button):hover .icon-pause,
.moderator-control-symbols.is-wave-finished .symbol-button:not(.symbol-status-button) .icon-qr,
.moderator-control-symbols.is-wave-finished .symbol-button:not(.symbol-status-button):hover .icon-qr,
.moderator-control-symbols.is-wave-finished .symbol-button:not(.symbol-status-button) .icon-photo,
.moderator-control-symbols.is-wave-finished .symbol-button:not(.symbol-status-button):hover .icon-photo,
.moderator-control-symbols.is-wave-finished .symbol-button:not(.symbol-status-button) .icon-test,
.moderator-control-symbols.is-wave-finished .symbol-button:not(.symbol-status-button):hover .icon-test {
    background-color: var(--color-grey-500) !important;
}

.symbol-mode-button {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-grey-1000) !important;
    border-color: transparent !important;
}

.symbol-mode-button.is-auto-mode {
    background: var(--color-state-success-soft) !important;
}

.symbol-mode-button.is-moderated-mode {
    background: var(--color-brand-teal-700) !important;
}

.symbol-mode-button:hover {
    color: var(--color-grey-1000) !important;
    border-color: transparent !important;
}

.symbol-mode-button.is-disabled-mode,
.symbol-mode-button.is-disabled-mode:hover {
    background: var(--color-grey-1000) !important;
    border-color: var(--color-grey-300) !important;
    color: var(--color-grey-500) !important;
    cursor: not-allowed;
}

.symbol-stop {
    color: var(--color-state-error-soft);
}

.symbol-stop .symbol-icon {
    background-color: var(--color-state-error-soft);
}

.symbol-stop:hover {
    background: rgb(var(--color-state-error-soft-rgb) / 0.12) !important;
    border-color: rgb(var(--color-state-error-soft-rgb) / 0.85) !important;
    color: var(--color-state-error-soft) !important;
}

.symbol-stop:hover .symbol-icon {
    background-color: var(--color-state-error-soft);
}

.symbol-stop.is-disabled-mode,
.symbol-stop.is-disabled-mode:hover {
    background: var(--color-grey-1000) !important;
    border-color: var(--color-grey-300) !important;
    color: var(--color-grey-500) !important;
    cursor: not-allowed;
}

.symbol-stop.is-disabled-mode .symbol-icon,
.symbol-stop.is-disabled-mode:hover .symbol-icon {
    background-color: var(--color-grey-500);
}

.status-symbol-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.status-symbol-actions .symbol-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0;
    flex: 0 0 auto;
}

.status-symbol-actions .symbol-stop {
    font-size: 0;
}

.status-symbol-actions .status-stop-glyph {
    display: block;
    font-size: 14px;
    line-height: 1;
}

.status-symbol-actions .symbol-mode-button > span {
    display: block;
    line-height: 1;
}

.status-symbol-actions .symbol-status-button.is-status-started {
    color: var(--color-state-success-soft);
}

.status-symbol-actions .symbol-status-button.is-status-paused {
    color: var(--color-brand-teal-700);
}

.status-symbol-actions .symbol-status-button.is-status-stopped {
    color: var(--color-state-error-soft);
}

.survey-list-option-symbols {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.survey-list-option-symbols .symbol-button {
    width: 34px;
    min-width: 34px;
    height: 30px;
    min-height: 30px;
}

.survey-list-create-input {
    width: 100%;
    min-height: 36px;
}

.survey-list-create-input::placeholder {
    color: var(--color-grey-1000);
    opacity: 1;
}

.survey-list-create-option-cell {
    text-align: left;
}

.survey-create-symbol-button {
    color: var(--color-grey-1000);
    border-color: var(--color-state-success-soft);
    background: var(--color-state-success-soft);
}

.survey-create-symbol-button:hover {
    color: var(--color-grey-1000);
    border-color: var(--color-state-success-soft);
    background: var(--color-state-success-soft);
    filter: brightness(0.95);
}

.survey-wave-list-text {
    display: block;
}

.survey-wave-table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    background: transparent;
    table-layout: fixed;
}

.survey-wave-table tr {
    border: 0 !important;
    box-shadow: none !important;
}

.survey-wave-table td,
.survey-wave-table th {
    border: 0 !important;
    background: transparent;
    box-shadow: none !important;
    padding: 0 8px 0 0;
    vertical-align: middle;
}

.survey-wave-table td:last-child,
.survey-wave-table th:last-child {
    padding-right: 0;
}

.survey-wave-table .survey-wave-col-icon {
    width: 18px;
}

.survey-wave-table .survey-wave-col-label {
    width: 56px;
}

.survey-wave-table .survey-wave-col-start {
    width: 146px;
}

.survey-wave-table .survey-wave-col-end {
    width: 146px;
}

.survey-wave-table td {
    padding: 0;
}

.survey-wave-row-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    color: var(--color-brand-teal-700);
    text-decoration: none;
}

.survey-wave-row-link > .symbol-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    overflow: visible;
}

.survey-wave-row-link > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.survey-wave-row-link:hover {
    text-decoration: underline;
}

.survey-wave-row-link.is-archived-wave {
    color: var(--color-grey-500);
}

.survey-list-title-link,
.survey-list-title-link:visited,
.survey-list-title-link:hover,
.survey-list-title-link:active,
.survey-list-title-link:focus {
    color: var(--color-grey-100);
    text-decoration: none;
}

.survey-wave-line {
    display: inline-block;
    font-size: 0.86rem;
    line-height: 1.3;
    white-space: nowrap;
    color: var(--color-brand-teal-700);
    text-decoration: none;
}

.survey-wave-line:hover {
    text-decoration: underline;
}

.survey-wave-icon-link {
    width: 18px;
    min-width: 18px;
}

.page-order-actions {
    justify-content: center;
}

.page-order-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--color-brand-teal-700);
    text-decoration: none;
}

.page-order-control.disabled {
    opacity: 0.35;
}

.page-order-triangle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.page-order-control.up .page-order-triangle {
    border-bottom: 12px solid currentColor;
}

.page-order-control.down .page-order-triangle {
    border-top: 12px solid currentColor;
}

.table-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--color-brand-teal-300);
    background: var(--color-brand-teal-200);
    color: var(--color-brand-teal-700);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
}

.table-chip.type-chip {
    background: var(--color-brand-teal-200);
    color: var(--color-brand-teal-700);
}

.table-chip.table-chip-link {
    text-decoration: none;
    background: var(--color-grey-1000);
}

.table-chip.table-chip-link:hover {
    background: var(--color-brand-teal-200);
    color: var(--color-brand-teal-700);
}

.table-chip.muted {
    opacity: 0.45;
}

.table-chip.danger {
    border-color: var(--color-highlight-pink-red);
    color: var(--color-grey-1000);
    background: var(--color-highlight-pink-red);
}

.table-chip.add {
    min-width: 140px;
    border-color: var(--color-highlight-mint);
    background: var(--color-highlight-mint);
    color: var(--color-grey-000);
}

.page-preview-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.page-preview-button:hover,
.page-preview-button:focus {
    background: transparent;
    border-color: transparent;
}

.page-preview-card {
    display: grid;
    gap: 8px;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid var(--color-brand-teal-300);
    border-radius: 8px;
    background: linear-gradient(180deg, rgb(var(--color-grey-1000-rgb) / 0.98), var(--color-brand-teal-200));
    box-shadow: inset 0 1px 0 rgb(var(--color-grey-1000-rgb) / 0.85);
}

.page-preview-card strong {
    margin: 0;
    color: var(--color-grey-100);
    line-height: 1.35;
}

.page-preview-card small {
    margin: 0;
    color: var(--color-grey-500);
    line-height: 1.45;
}

.page-preview-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-grey-500);
}

.page-add-row {
    text-align: center;
}

.tag,
.state-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--color-highlight-orange);
    color: var(--color-grey-000);
    font-size: 0.86rem;
    font-weight: 700;
}

.empty-state {
    padding: 16px;
    border-radius: var(--radius-m);
    background: rgb(var(--color-grey-1000-rgb) / 0.78);
    border: 1px dashed rgb(var(--color-brand-teal-700-rgb) / 0.32);
}

.login-panel {
    width: min(560px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 48px;
}

.login-form-group {
    display: grid;
    gap: 0;
}

.login-form-group .form-card {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.login-form-group .login-tab-bar {
    margin-bottom: 0;
}

.login-info-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-info-logo {
    width: 112px;
    height: auto;
    align-self: flex-end;
    margin-top: 4px;
}

.passkey-panel {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: var(--radius-m);
    background: rgb(var(--color-brand-teal-50-rgb) / 0.9);
    border: 1px solid rgb(var(--color-brand-teal-700-rgb) / 0.14);
    min-height: 80px;
    align-items: center;
    justify-items: center;
    text-align: center;
}

.question-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: var(--radius-m);
    border: 1px solid rgb(var(--color-brand-teal-700-rgb) / 0.12);
    background: rgb(var(--color-grey-1000-rgb) / 0.96);
}

.question-card.is-readonly {
    background: var(--color-grey-900);
    border-color: rgb(var(--color-grey-000-rgb) / 0.1);
}

.question-card.is-readonly .participant-input-group {
    filter: grayscale(1);
}

.question-meta-line {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.question-type-chip,
.question-position-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 8px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.question-type-chip {
    background: rgb(var(--color-brand-teal-500-rgb) / 0.14);
    color: var(--color-brand-teal-700);
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.question-position-chip {
    background: rgb(var(--color-brand-teal-700-rgb) / 0.1);
    color: var(--color-brand-teal-700);
}


@media (max-width: 1400px) {
    .workspace-editor h1 {
        font-size: 1.35rem;
    }

    .workspace-editor h2 {
        font-size: 1.1rem;
    }

    .workspace-editor h3 {
        font-size: 0.97rem;
    }

    .brand-name {
        font-size: 1rem;
    }
}

.hero-panel .status-message,
.panel-card .status-message,
.workspace-card .status-message,
.form-card .status-message {
    margin-top: 0;
}

.status-panel {
    margin: 0;
}

.role-meta-footer {
    margin-top: 16px;
    padding: 8px 12px;
    border-top: 1px solid rgb(var(--color-brand-teal-700-rgb) / 0.18);
    color: var(--color-grey-500);
    font-size: 0.84rem;
    line-height: 1.4;
}

.is-hidden {
    display: none !important;
}

.page-link-reset {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-text-stack {
    display: block;
}

.brand-text-stack .brand-name,
.brand-text-stack .brand-tagline {
    display: block;
}

.workspace-sections {
    display: grid;
    gap: 16px;
}

.workspace-summary {
    display: grid;
    gap: 12px;
}

.qr-preview-card {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.qr-preview-card.qr-preview-card-hero {
    align-self: stretch;
    min-width: 238px;
    max-width: 260px;
    margin: 0;
    padding: 12px;
    border-radius: var(--radius-m);
    border: 1px solid rgb(var(--color-brand-teal-700-rgb) / 0.14);
    background: rgb(var(--color-grey-1000-rgb) / 0.88);
}

.qr-preview-titleline {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
}

.qr-preview-titleline .eyebrow {
    margin: 0;
}

.qr-preview-code {
    font-size: 0.95rem;
    color: var(--qr-overlay-accent-700, var(--color-brand-teal-700));
    letter-spacing: 0.04em;
}

.qr-overlay-titleline {
    gap: 8px;
}

.qr-overlay-code {
    font-size: clamp(1.8rem, 4.8dvw, 3rem);
    line-height: 1;
    letter-spacing: 0.08em;
}

.qr-preview-button {
    border: 1px solid rgb(var(--qr-overlay-accent-700-rgb, var(--color-brand-teal-700-rgb)) / 0.2);
    background: var(--color-grey-1000);
    border-radius: var(--radius-m);
    padding: 8px;
    line-height: 0;
    cursor: pointer;
}

.qr-preview-button canvas {
    width: 180px;
    height: 180px;
    display: block;
}

.qr-overlay {
    --qr-overlay-accent-700: var(--color-brand-teal-700);
    --qr-overlay-accent-500: var(--color-brand-teal-500);
    --qr-overlay-accent-300: var(--color-brand-teal-300);
    --qr-overlay-accent-700-rgb: var(--color-brand-teal-700-rgb);
    --qr-overlay-accent-500-rgb: var(--color-brand-teal-500-rgb);
    position: fixed;
    inset: 0;
    z-index: 1500;
    align-items: center;
    justify-content: center;
    padding: calc(20px + var(--safe-area-top)) calc(20px + var(--safe-area-right)) calc(20px + var(--safe-area-bottom)) calc(20px + var(--safe-area-left));
    background: rgb(var(--color-grey-000-rgb) / 0.55);
    box-sizing: border-box;
}

.qr-overlay-card {
    width: min(92dvw, 760px);
    max-height: 92dvh;
    overflow: auto;
    background: var(--color-grey-1000);
    border-radius: var(--radius-l);
    border: 1px solid var(--color-grey-800);
    padding: 16px;
    box-sizing: border-box;
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
}

.qr-overlay-close {
    justify-self: end;
    min-height: 36px;
    padding: 0 8px;
    line-height: 1;
    border: 1px solid var(--qr-overlay-accent-300, var(--color-brand-teal-300));
    background: var(--color-grey-1000);
    color: var(--qr-overlay-accent-700, var(--color-brand-teal-700));
    border-radius: 8px;
    cursor: pointer;
}

.qr-overlay-close:hover {
    background: rgb(var(--qr-overlay-accent-500-rgb, var(--color-brand-teal-500-rgb)) / 0.1);
    border-color: var(--qr-overlay-accent-500, var(--color-brand-teal-500));
    color: var(--qr-overlay-accent-700, var(--color-brand-teal-700));
}

.qr-overlay-close-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.qr-overlay-canvas {
    width: min(78dvw, 72dvh, 620px);
    height: min(78dvw, 72dvh, 620px);
    max-width: 620px;
    max-height: 620px;
    border: 1px solid rgb(var(--qr-overlay-accent-700-rgb, var(--color-brand-teal-700-rgb)) / 0.2);
    border-radius: 16px;
    background: var(--color-grey-1000);
    padding: 12px;
    box-sizing: border-box;
}

/* Workspace themes: default/general keeps current base palette. */
body.workspace-editor {
    --qr-overlay-accent-700: var(--color-brand-bronze-700);
    --qr-overlay-accent-500: var(--color-brand-bronze-500);
    --qr-overlay-accent-300: var(--color-brand-bronze-300);
    --qr-overlay-accent-700-rgb: var(--color-brand-bronze-700-rgb);
    --qr-overlay-accent-500-rgb: var(--color-brand-bronze-500-rgb);
    --color-brand-teal-800-rgb: var(--color-brand-bronze-700-rgb);
    --color-brand-teal-700-rgb: var(--color-brand-bronze-700-rgb);
    --color-brand-teal-500-rgb: var(--color-brand-bronze-500-rgb);
    --color-brand-teal-300-rgb: var(--color-brand-bronze-300-rgb);
    --color-brand-teal-200-rgb: var(--color-brand-bronze-100-rgb);
    --color-brand-teal-100-rgb: var(--color-brand-bronze-100-rgb);
    --color-brand-teal-50-rgb: var(--color-brand-bronze-50-rgb);
    --color-brand-teal-20-rgb: var(--color-brand-bronze-20-rgb);
    --color-brand-teal-10-rgb: var(--color-brand-bronze-10-rgb);
    --color-brand-teal-800: var(--color-brand-bronze-700);
    --color-brand-teal-700: var(--color-brand-bronze-700);
    --color-brand-teal-500: var(--color-brand-bronze-500);
    --color-brand-teal-300: var(--color-brand-bronze-300);
    --color-brand-teal-200: var(--color-brand-bronze-100);
    --color-brand-teal-100: var(--color-brand-bronze-100);
    --color-brand-teal-50: var(--color-brand-bronze-50);
    --color-brand-teal-20: var(--color-brand-bronze-20);
    --color-brand-teal-10: var(--color-brand-bronze-10);
    --color-field-bg: var(--color-brand-bronze-100);
    --color-table-head-bg: var(--color-brand-bronze-100);
    --color-table-head-text: var(--color-brand-bronze-700);
    --color-table-head-border: var(--color-brand-bronze-300);
    background:
        radial-gradient(circle at 100% -20%, rgb(var(--color-brand-bronze-500-rgb) / 0.2) 0%, rgb(var(--color-brand-bronze-500-rgb) / 0) 45%),
        radial-gradient(circle at -20% 20%, rgb(var(--color-brand-bronze-100-rgb) / 0.36) 0%, rgb(var(--color-brand-bronze-100-rgb) / 0) 42%),
        var(--color-grey-900);
}

body.workspace-moderator {
    --qr-overlay-accent-700: var(--color-brand-forest-700);
    --qr-overlay-accent-500: var(--color-brand-forest-500);
    --qr-overlay-accent-300: var(--color-brand-forest-300);
    --qr-overlay-accent-700-rgb: var(--color-brand-forest-700-rgb);
    --qr-overlay-accent-500-rgb: var(--color-brand-forest-500-rgb);
    --color-field-bg: rgb(var(--color-brand-forest-100-rgb));
    --color-table-head-bg: rgb(var(--color-brand-forest-100-rgb));
    --color-table-head-text: rgb(var(--color-brand-forest-700-rgb));
    --color-table-head-border: rgb(var(--color-brand-forest-300-rgb));
    --color-table-head-bg-rgb: var(--color-brand-forest-100-rgb);
    --color-table-head-text-rgb: var(--color-brand-forest-700-rgb);
    --color-table-head-border-rgb: var(--color-brand-forest-300-rgb);
    --color-field-bg-rgb: var(--color-brand-forest-100-rgb);
    background:
        radial-gradient(circle at 100% -20%, rgb(var(--color-brand-forest-500-rgb) / 0.22) 0%, rgb(var(--color-brand-forest-500-rgb) / 0) 45%),
        radial-gradient(circle at -20% 20%, rgb(var(--color-brand-forest-100-rgb) / 0.36) 0%, rgb(var(--color-brand-forest-100-rgb) / 0) 42%),
        var(--color-grey-900);
}

body.workspace-participant {
    --color-brand-teal-800-rgb: 0 77 77;
    --color-brand-teal-700-rgb: 0 102 102;
    --color-brand-teal-500-rgb: 0 153 153;
    --color-brand-teal-300-rgb: 102 191 191;
    --color-brand-teal-200-rgb: 191 230 230;
    --color-brand-teal-100-rgb: 215 240 240;
    --color-brand-teal-50-rgb: 230 247 247;
    --color-brand-teal-20-rgb: 242 252 252;
    --color-brand-teal-10-rgb: 247 254 254;
    --color-field-bg-rgb: var(--color-brand-teal-200-rgb);
    --color-table-head-bg-rgb: var(--color-brand-teal-100-rgb);
    --color-table-head-text-rgb: var(--color-brand-teal-700-rgb);
    --color-table-head-border-rgb: var(--color-brand-teal-300-rgb);
}

body.workspace-participant form {
    padding: 16px;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}

body.workspace-editor .hero-panel,
body.workspace-participant .hero-panel {
    border-color: var(--color-brand-teal-300);
    background:
        linear-gradient(135deg, rgb(var(--color-grey-1000-rgb) / 0.96), var(--color-brand-teal-200)),
        radial-gradient(circle at top right, var(--color-brand-teal-300), transparent);
}

    body.workspace-moderator .hero-panel {
        border-color: var(--color-brand-forest-300);
        background:
        linear-gradient(135deg, rgb(var(--color-grey-1000-rgb) / 0.96), var(--color-brand-forest-100)),
        radial-gradient(circle at top right, var(--color-brand-forest-300), transparent);
    }

body.workspace-editor .panel-card,
body.workspace-editor .info-card,
body.workspace-editor .workspace-card,
body.workspace-editor .form-card,
body.workspace-editor .data-card,
body.workspace-editor .metric-card,
body.workspace-editor .surface-list li,
body.workspace-editor .summary-list li,
body.workspace-editor .question-card,
body.workspace-editor .passkey-panel,
body.workspace-editor .page-preview-card,
body.workspace-editor .qr-preview-card.qr-preview-card-hero,
body.workspace-editor .role-meta-footer,
body.workspace-participant .panel-card,
body.workspace-participant .info-card,
body.workspace-participant .workspace-card,
body.workspace-participant .form-card,
body.workspace-participant .data-card,
body.workspace-participant .metric-card,
body.workspace-participant .surface-list li,
body.workspace-participant .summary-list li,
body.workspace-participant .question-card,
body.workspace-participant .passkey-panel,
body.workspace-participant .page-preview-card,
body.workspace-participant .qr-preview-card.qr-preview-card-hero,
body.workspace-participant .role-meta-footer {
    border-color: var(--color-brand-teal-300);
}

body.workspace-moderator .panel-card,
body.workspace-moderator .info-card,
body.workspace-moderator .workspace-card,
body.workspace-moderator .form-card,
body.workspace-moderator .data-card,
body.workspace-moderator .metric-card,
body.workspace-moderator .surface-list li,
body.workspace-moderator .summary-list li,
body.workspace-moderator .question-card,
body.workspace-moderator .passkey-panel,
body.workspace-moderator .page-preview-card,
body.workspace-moderator .qr-preview-card.qr-preview-card-hero,
body.workspace-moderator .role-meta-footer {
    border-color: var(--color-brand-forest-300);
}

body.workspace-participant .brand-header {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Keep global warning/success/error colors unchanged across workspaces. */

@media (min-width: 980px) {
    .survey-tile-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@supports (-webkit-touch-callout: none) {
    @media (min-width: 721px) and (max-width: 1366px) {
        html {
            font-size: 19px;
        }

        body {
            font-size: 19px;
            line-height: 1.5;
        }

        h1 {
            font-size: clamp(1.7rem, 3.9dvw, 2.24rem);
        }

        h2 {
            font-size: clamp(1.3rem, 3.05dvw, 1.58rem);
        }

        h3 {
            font-size: clamp(1.12rem, 2.45dvw, 1.3rem);
        }
    }
}

@media (max-width: 720px) {
    html {
        font-size: 17px;
    }

    body {
        padding: calc(8px + var(--safe-area-top)) calc(8px + var(--safe-area-right)) calc(8px + var(--safe-area-bottom)) calc(8px + var(--safe-area-left));
    }

    form,
    body > div,
    body > main {
        padding: 12px;
    }

    body {
        font-size: 17px;
        line-height: 1.5;
    }

    h1 {
        font-size: clamp(1.28rem, 6dvw, 1.62rem);
        line-height: 1.24;
        margin-bottom: 10px;
    }

    h2 {
        font-size: clamp(1.08rem, 4.6dvw, 1.26rem);
        margin-top: 18px;
        margin-bottom: 8px;
    }

    h3 {
        font-size: clamp(1rem, 4.2dvw, 1.14rem);
    }

    p,
    ul,
    ol,
    label,
    li,
    th,
    td,
    input,
    textarea,
    select,
    button,
    input[type="submit"],
    input[type="button"] {
        font-size: 1.02rem;
    }

    .hero-kicker,
    .eyebrow {
        font-size: 0.9rem;
        letter-spacing: 0.06em;
    }

    .brand-name {
        font-size: clamp(1.18rem, 6dvw, 1.42rem);
    }

    .brand-tagline {
        font-size: 0.9rem;
    }

    .status-message {
        font-size: 1rem;
        padding: 8px 12px;
    }

    .brand-menu-panel {
        width: min(88dvw, 340px);
        max-width: calc(100dvw - 12px);
    }

    .brand-menu-item {
        font-size: 1rem;
    }

    .qr-stage {
        width: 92dvw;
        height: 92dvw;
    }

    .survey-meta-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .panel-grid.two-up,
    .field-grid.two-up,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel-with-qr {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .qr-preview-card.qr-preview-card-hero {
        min-width: 0;
        max-width: none;
        justify-self: center;
        width: min(100%, 320px);
    }

    .hero-heading-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions.hero-actions-end {
        margin-left: 0;
        justify-content: flex-start;
    }

    .start-join-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .start-join-field,
    .start-join-actions {
        width: min(100%, 360px);
    }

    .start-join-field label {
        text-align: center;
    }

    .hero-panel,
    .panel-card,
    .workspace-card,
    .form-card,
    .data-card,
    .question-card {
        padding: 16px;
    }

    input[style*="width"],
    textarea[style*="width"],
    select[style*="width"],
    .aspNetDisabled[style*="width"] {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 932px) and (max-height: 500px) and (orientation: landscape) {
    .qr-overlay {
        padding: calc(8px + var(--safe-area-top)) calc(12px + var(--safe-area-right)) calc(8px + var(--safe-area-bottom)) calc(12px + var(--safe-area-left));
    }

    .qr-overlay-card {
        max-height: 84dvh;
        padding: 8px;
        gap: 8px;
    }

    .qr-overlay-canvas {
        width: min(46dvw, 52dvh, 360px);
        height: min(46dvw, 52dvh, 360px);
        padding: 8px;
    }
}

@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
    .qr-overlay {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .qr-overlay-card {
        max-height: 88dvh;
        padding: 16px;
        gap: 8px;
    }

    .qr-overlay-canvas {
        width: min(62dvw, 58dvh, 520px);
        height: min(62dvw, 58dvh, 520px);
    }
}

@media (max-width: 520px) {
    .login-panel {
        width: 100%;
        min-width: 0;
    }

    .login-inline-row,
    .form-card .login-inline-row {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 12px;
    }

    .login-inline-button,
    .form-card .login-inline-row > input[type="submit"].login-inline-button,
    .form-card .login-inline-row > button.login-inline-button {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .form-card .login-inline-row > input[type="text"].login-inline-input,
    .form-card .login-inline-row > input[type="email"].login-inline-input {
        width: 100% !important;
    }

    .brand-menu-panel {
        width: calc(100dvw - 16px);
        max-width: calc(100dvw - 16px);
        border-radius: var(--radius-s);
    }

    .brand-menu-item {
        font-size: 1.05rem;
    }
}

@media (max-width: 420px) {
    html {
        font-size: 16px;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: clamp(1.2rem, 7.2dvw, 1.48rem);
    }

    h2 {
        font-size: clamp(1.04rem, 5.4dvw, 1.2rem);
    }

    .brand-name {
        font-size: clamp(1.12rem, 6.8dvw, 1.32rem);
    }

    .brand-tagline {
        font-size: 0.8rem;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
    }

    .brand-menu-inline-link {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

.completion-hero-body {
    display: flex;
    align-items: center;
    gap: 28px;
}

.completion-hero-body .completion-logo {
    width: 288px;
    height: 288px;
    flex-shrink: 0;
}

.completion-hero-body .completion-text {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Global scroll accessibility policy (except device preview frames) */
.dibo-scrollable {
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    .dibo-scrollable {
        scrollbar-width: none;
    }

    .dibo-scrollable::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .dibo-scrollable:hover,
    .dibo-scrollable:focus,
    .dibo-scrollable:focus-within,
    .dibo-scrollable.is-scroll-active {
        scrollbar-width: thin;
        scrollbar-color: rgb(var(--color-brand-teal-700-rgb) / 0.55) transparent;
    }

    .dibo-scrollable:hover::-webkit-scrollbar,
    .dibo-scrollable:focus::-webkit-scrollbar,
    .dibo-scrollable:focus-within::-webkit-scrollbar,
    .dibo-scrollable.is-scroll-active::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    .dibo-scrollable:hover::-webkit-scrollbar-thumb,
    .dibo-scrollable:focus::-webkit-scrollbar-thumb,
    .dibo-scrollable:focus-within::-webkit-scrollbar-thumb,
    .dibo-scrollable.is-scroll-active::-webkit-scrollbar-thumb {
        background: rgb(var(--color-brand-teal-700-rgb) / 0.55);
        border-radius: 999px;
        border: 2px solid transparent;
        background-clip: padding-box;
    }

    .dibo-scrollable.show-scroll-chevron::after {
        content: "";
        position: absolute;
        right: 12px;
        bottom: 10px;
        width: 10px;
        height: 10px;
        border-right: 2px solid rgb(var(--color-brand-teal-700-rgb) / 0.8);
        border-bottom: 2px solid rgb(var(--color-brand-teal-700-rgb) / 0.8);
        transform: rotate(45deg);
        pointer-events: none;
        opacity: 0.88;
    }

    .dibo-scrollable.show-scroll-chevron:hover::after {
        animation: dibo-scroll-chevron-pulse 1.2s ease-in-out infinite;
    }

    .dibo-scrollable.is-scroll-active.show-scroll-chevron::after,
    .dibo-scrollable.is-scroll-at-end.show-scroll-chevron::after,
    .dibo-scrollable:hover.show-scroll-chevron::after,
    .dibo-scrollable:focus.show-scroll-chevron::after,
    .dibo-scrollable:focus-within.show-scroll-chevron::after {
        opacity: 0;
    }
}

@keyframes dibo-scroll-chevron-pulse {
    0% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.72;
    }

    50% {
        transform: rotate(45deg) translateY(3px);
        opacity: 1;
    }

    100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.72;
    }
}

/* --- Input tooltip --- */
.input-tooltip-wrap {
    position: relative;
    display: inline-block;
}

.input-tooltip-wrap::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    white-space: nowrap;
    background: var(--color-grey-200);
    color: var(--color-grey-1000);
    font-size: 0.78rem;
    padding: 4px 8px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 200;
}

.input-tooltip-wrap:hover::after,
.input-tooltip-wrap:focus-within::after {
    opacity: 1;
}

/* ============================================================
   Modal transitions (transitions-dev / 06-modal.md)
   ============================================================ */

/* Backdrops: always rendered for transition support, hidden by opacity */
.dibo-confirm-overlay,
#shareOptionsOverlay,
#structureWaveOverlay,
#imageUploadOverlay,
#choiceImagePoolOverlay,
#choiceImageZoomOverlay,
.qr-overlay {
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--modal-open-dur) var(--modal-ease);
    will-change: opacity;
}

.brand-menu-overlay {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--modal-open-dur) var(--modal-ease);
    will-change: opacity;
}

/* Open */
.dibo-confirm-overlay.is-open,
.brand-menu-overlay.is-open,
#shareOptionsOverlay.is-open,
#structureWaveOverlay.is-open,
#imageUploadOverlay.is-open,
#choiceImagePoolOverlay.is-open,
#choiceImageZoomOverlay.is-open,
.qr-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Closing */
.dibo-confirm-overlay.is-closing,
.brand-menu-overlay.is-closing,
#shareOptionsOverlay.is-closing,
#structureWaveOverlay.is-closing,
#imageUploadOverlay.is-closing,
#choiceImagePoolOverlay.is-closing,
#choiceImageZoomOverlay.is-closing,
.qr-overlay.is-closing {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--modal-close-dur) var(--modal-ease);
}

/* Inner cards: scale on enter */
.dibo-confirm-overlay .dibo-confirm-dialog,
#shareOptionsOverlay .share-options-card,
#structureWaveOverlay .structure-wave-overlay-card,
#imageUploadOverlay .share-options-card,
#choiceImagePoolOverlay .choice-image-pool-overlay-card,
#choiceImageZoomOverlay .choice-image-zoom-overlay-card,
.qr-overlay .qr-overlay-card {
    transform: scale(var(--modal-scale));
    transition: transform var(--modal-open-dur) var(--modal-ease);
    will-change: transform;
}

.dibo-confirm-overlay.is-open .dibo-confirm-dialog,
#shareOptionsOverlay.is-open .share-options-card,
#structureWaveOverlay.is-open .structure-wave-overlay-card,
#imageUploadOverlay.is-open .share-options-card,
#choiceImagePoolOverlay.is-open .choice-image-pool-overlay-card,
#choiceImageZoomOverlay.is-open .choice-image-zoom-overlay-card,
.qr-overlay.is-open .qr-overlay-card {
    transform: scale(1);
}

.dibo-confirm-overlay.is-closing .dibo-confirm-dialog,
#shareOptionsOverlay.is-closing .share-options-card,
#structureWaveOverlay.is-closing .structure-wave-overlay-card,
#imageUploadOverlay.is-closing .share-options-card,
#choiceImagePoolOverlay.is-closing .choice-image-pool-overlay-card,
#choiceImageZoomOverlay.is-closing .choice-image-zoom-overlay-card,
.qr-overlay.is-closing .qr-overlay-card {
    transform: scale(var(--modal-scale-close));
    transition: transform var(--modal-close-dur) var(--modal-ease);
}

@media (prefers-reduced-motion: reduce) {
    .dibo-confirm-overlay,
    .brand-menu-overlay,
    .brand-menu-panel,
    #shareOptionsOverlay,
    #structureWaveOverlay,
    #imageUploadOverlay,
    #choiceImagePoolOverlay,
    #choiceImageZoomOverlay,
    .qr-overlay,
    .dibo-confirm-overlay .dibo-confirm-dialog,
    #shareOptionsOverlay .share-options-card,
    #structureWaveOverlay .structure-wave-overlay-card,
    #imageUploadOverlay .share-options-card,
    #choiceImagePoolOverlay .choice-image-pool-overlay-card,
    #choiceImageZoomOverlay .choice-image-zoom-overlay-card,
    .qr-overlay .qr-overlay-card {
        transition: none !important;
    }
}

