@font-face {
    font-family: 'Aboreto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/aboreto/Aboreto-Regular.ttf') format('truetype');
}

:root {
    --orsay-red: #e30613;
    --orsay-red-dark: #c00510;
    --orsay-black: #000000;
    --orsay-text: #1a1a1a;
    --orsay-muted: #767676;
    --orsay-light: #f5f5f5;
    --orsay-border: #e5e5e5;
    --orsay-bg: #ffffff;
    --orsay-image-bg: #f0f0f0;
    --font-display: 'Aboreto', Georgia, 'Times New Roman', serif;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --header-h: 52px;
    --bottom-nav-h: 56px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--orsay-bg);
    color: var(--orsay-text);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.has-bottom-nav {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Header ── */

.orsay-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--orsay-bg);
    border-bottom: 1px solid var(--orsay-border);
}

.orsay-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--header-h);
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.orsay-header-side {
    display: flex;
    align-items: center;
}

.orsay-header-left {
    justify-content: flex-start;
}

.orsay-header-right {
    justify-content: flex-end;
}

.orsay-header-center {
    text-align: center;
}

.orsay-header-spacer {
    width: 40px;
}

.orsay-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--orsay-black);
    text-decoration: none;
    text-transform: uppercase;
}

.orsay-logo:hover {
    text-decoration: none;
}

.orsay-page-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    color: var(--orsay-black);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    letter-spacing: 0.04em;
}

.orsay-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--orsay-black);
    cursor: pointer;
    border-radius: 50%;
    text-decoration: none;
}

.orsay-icon-btn:hover {
    background: var(--orsay-light);
    text-decoration: none;
}

.orsay-icon-btn svg {
    width: 22px;
    height: 22px;
}

/* ── Main ── */

.orsay-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 24px;
    width: 100%;
    min-width: 0;
}

body.has-bottom-nav .orsay-main {
    padding-bottom: calc(var(--bottom-nav-h) + 24px);
}

.orsay-flash {
    margin: 12px 0;
    padding: 12px 16px;
    background: var(--orsay-light);
    border: 1px solid var(--orsay-border);
    font-size: 0.875rem;
}

.orsay-flash-error {
    background: #fff5f5;
    border-color: #fecaca;
    color: var(--orsay-red);
}

/* ── Upload page ── */

.upload-page {
    padding: 24px 0 16px;
}

.upload-intro {
    text-align: center;
    margin-bottom: 28px;
}

.upload-intro h1 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    margin: 0 0 8px;
    color: var(--orsay-black);
    letter-spacing: 0.02em;
}

.upload-intro p {
    margin: 0;
    color: var(--orsay-muted);
    font-size: 0.8125rem;
    line-height: 1.55;
    max-width: 340px;
    margin-inline: auto;
}

.upload-dropzone {
    background: var(--orsay-light);
    border: 1px dashed var(--orsay-border);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    margin-bottom: 20px;
    transition: border-color 0.2s, background 0.2s;
}

.upload-dropzone.dragover {
    border-color: var(--orsay-black);
    background: #fafafa;
}

.upload-dropzone.has-file {
    border-style: solid;
    background: var(--orsay-bg);
}

.upload-placeholder,
.upload-preview {
    width: 100%;
    text-align: center;
}

.upload-icon svg {
    color: var(--orsay-muted);
    margin-bottom: 16px;
}

.upload-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--orsay-black);
}

.upload-or {
    color: var(--orsay-muted);
    font-size: 0.8125rem;
    margin: 12px 0;
}

.upload-hint,
.upload-note {
    color: var(--orsay-muted);
    font-size: 0.75rem;
    margin: 12px 0 0;
}

.upload-filename {
    margin: 12px 0;
    font-size: 0.8125rem;
    color: var(--orsay-muted);
    word-break: break-all;
}

.preview-img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: var(--orsay-image-bg);
}

.upload-actions {
    text-align: center;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
    letter-spacing: 0.02em;
}

.btn:hover {
    text-decoration: none;
    opacity: 0.88;
}

.btn-primary {
    background: var(--orsay-black);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    color: #fff;
}

.btn-secondary {
    background: var(--orsay-bg);
    color: var(--orsay-black);
    border: 1px solid var(--orsay-black);
}

.btn-secondary:hover {
    color: var(--orsay-black);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--orsay-border);
    color: var(--orsay-black);
    padding: 10px 20px;
}

/* ── Results page ── */

.results-page {
    padding: 0 0 16px;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.results-toolbar {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin: 16px 0;
    min-width: 0;
}

.results-search {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid var(--orsay-border);
    background: var(--orsay-light);
    min-height: 44px;
    border-radius: 2px;
}

.results-search.is-readonly {
    cursor: default;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.results-search-label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--orsay-muted);
    line-height: 1.2;
}

.results-search-body {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.results-search svg {
    flex-shrink: 0;
    color: var(--orsay-muted);
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.results-search-text {
    font-size: 0.8125rem;
    color: #9a9a9a;
    line-height: 1.4;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.results-refine-btn {
    flex-shrink: 0;
    padding: 0 20px;
    background: var(--orsay-black);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.results-refine-btn:hover {
    opacity: 0.88;
    color: #fff;
    text-decoration: none;
}

.results-refine-hint {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--orsay-black);
}

.results-refine-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: stretch;
    min-width: 0;
    max-width: 100%;
}

.results-refine-input {
    flex: 1;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--orsay-border);
    font-family: inherit;
    font-size: 0.8125rem;
    background: var(--orsay-bg);
}

.results-refine-input:focus {
    outline: 2px solid var(--orsay-black);
    outline-offset: 0;
}

.results-refine-submit {
    flex-shrink: 0;
    white-space: nowrap;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.upload-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--orsay-muted);
    font-size: 0.8125rem;
}

.upload-divider::before,
.upload-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--orsay-border);
}

.upload-text-search textarea {
    width: 100%;
    min-height: 88px;
    padding: 12px 14px;
    border: 1px solid var(--orsay-border);
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    background: var(--orsay-bg);
}

.upload-text-search textarea:focus {
    outline: 2px solid var(--orsay-black);
    outline-offset: 0;
}

.results-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.results-tag {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--orsay-border);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--orsay-text);
    background: var(--orsay-bg);
}

.results-count {
    font-size: 0.8125rem;
    color: var(--orsay-muted);
    margin: 0 0 16px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.results-photo {
    margin-bottom: 16px;
}

.results-photo img {
    width: 100px;
    height: 130px;
    object-fit: cover;
    background: var(--orsay-image-bg);
}

.results-summary {
    font-size: 0.8125rem;
    color: var(--orsay-muted);
    margin: 0 0 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ── Product grid (ORSAY 2-col) ── */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px 16px;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    position: relative;
    min-width: 0;
}

.product-card-image-wrap {
    position: relative;
    background: var(--orsay-image-bg);
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-wishlist {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.product-wishlist svg {
    width: 18px;
    height: 18px;
    color: var(--orsay-red);
    fill: none;
    stroke: var(--orsay-red);
    stroke-width: 1.5;
}

.product-card-badges {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    pointer-events: none;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 2px;
}

.badge-score {
    background: var(--orsay-red);
    color: #fff;
    font-size: 0.75rem;
}

.badge-ai {
    background: rgba(255, 255, 255, 0.95);
    color: var(--orsay-black);
    border: 1px solid var(--orsay-border);
}

.product-meta {
    font-size: 0.6875rem;
    color: var(--orsay-muted);
    margin-bottom: 4px;
    line-height: 1.4;
}

.product-name {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--orsay-text);
    margin: 0 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    color: inherit;
    text-decoration: none;
}

.product-name a:hover {
    text-decoration: underline;
}

.product-match {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--orsay-red);
    margin: 0;
}

.product-match-label {
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--orsay-red);
    margin: 2px 0 0;
}

.match-reasons {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.6875rem;
    color: var(--orsay-muted);
}

.match-reasons li {
    margin: 0;
}

/* ── Bottom navigation ── */

.orsay-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-h);
    background: var(--orsay-bg);
    border-top: 1px solid var(--orsay-border);
    display: flex;
    z-index: 100;
}

.orsay-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--orsay-muted);
    text-decoration: none;
    position: relative;
    padding-top: 4px;
}

.orsay-bottom-nav a:hover {
    text-decoration: none;
    color: var(--orsay-black);
}

.orsay-bottom-nav a.active {
    color: var(--orsay-black);
}

.orsay-bottom-nav a.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--orsay-black);
}

.orsay-bottom-nav svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    overflow: visible;
}

.orsay-nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 22px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--orsay-red);
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .orsay-page-title {
        max-width: min(180px, 42vw);
    }

    .results-refine-form {
        flex-direction: column;
    }

    .results-refine-submit {
        width: 100%;
    }

    .results-photo img {
        max-width: 100%;
        height: auto;
    }

    .product-grid {
        gap: 10px;
    }
}

@media (min-width: 768px) {
    .orsay-bottom-nav {
        display: none;
    }

    body.has-bottom-nav .orsay-main {
        padding-bottom: 24px;
    }

    .results-search-text {
        -webkit-line-clamp: 2;
    }
}

/* ── Login ── */

.login-page {
    padding: 48px 0;
}

.login-wrap {
    max-width: 380px;
    margin: 0 auto;
    padding: 32px 24px;
    border: 1px solid var(--orsay-border);
}

.login-wrap h1 {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}

.login-wrap .login-sub {
    text-align: center;
    color: var(--orsay-muted);
    font-size: 0.8125rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--orsay-muted);
}

input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--orsay-border);
    font-family: inherit;
    font-size: 0.875rem;
    background: var(--orsay-bg);
    border-radius: 0;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--orsay-black);
}

.login-back {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8125rem;
}

.login-back a {
    color: var(--orsay-muted);
}

/* ── Results pagination ── */

.results-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 32px 0 8px;
}

.results-pagination-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--orsay-border);
    background: var(--orsay-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    color: var(--orsay-black);
    text-decoration: none;
}

.results-pagination-btn:hover {
    border-color: var(--orsay-black);
    text-decoration: none;
}

.results-pagination-btn.is-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.results-pagination-label {
    font-size: 0.8125rem;
    color: var(--orsay-muted);
    min-width: 100px;
    text-align: center;
}

.results-explanation {
    font-size: 0.875rem;
    color: var(--orsay-muted);
    margin: 0 0 12px;
    line-height: 1.5;
}

.results-alert {
    font-size: 0.8125rem;
    padding: 10px 14px;
    margin: 0 0 10px;
    border: 1px solid var(--orsay-border);
    background: var(--orsay-light);
}

.results-alert-warning {
    background: #fff9e6;
    border-color: #e6d9a8;
}

.results-empty {
    text-align: center;
    padding: 48px 16px;
    border: 1px dashed var(--orsay-border);
    margin: 24px 0;
}

.results-empty-text {
    font-size: 0.9375rem;
    color: var(--orsay-muted);
    margin-bottom: 20px;
}

.results-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.match-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 28px 0 12px;
    color: var(--orsay-muted);
}

.product-meta {
    font-size: 0.75rem;
    color: var(--orsay-muted);
}

.product-dimensions,
.product-meta {
    line-height: 1.35;
}

.results-refine-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.results-refine-chip-form {
    margin: 0;
}

.results-refine-chip {
    font-family: inherit;
    font-size: 0.75rem;
    padding: 6px 12px;
    border: 1px solid var(--orsay-border);
    border-radius: 999px;
    background: var(--orsay-bg);
    cursor: pointer;
}

.results-refine-chip:hover {
    border-color: var(--orsay-black);
}

.results-tag-highlight {
    border-color: var(--orsay-red);
    color: var(--orsay-red);
}

.results-tag-mode {
    background: var(--orsay-light);
}

.upload-tips {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    font-size: 0.75rem;
    color: var(--orsay-muted);
}

.upload-tips li::before {
    content: "· ";
}

/* ── Disambiguate (výběr kusu z fotky) ── */

.disambiguate-page {
    padding: 8px 0 24px;
    max-width: 420px;
    margin: 0 auto;
}

.disambiguate-intro {
    text-align: center;
    margin-bottom: 24px;
}

.disambiguate-eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--orsay-red);
    background: #fff5f5;
    border: 1px solid #f5c4c7;
}

.disambiguate-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    margin: 0 0 8px;
    color: var(--orsay-black);
    letter-spacing: 0.02em;
}

.disambiguate-lead {
    margin: 0;
    color: var(--orsay-muted);
    font-size: 0.8125rem;
    line-height: 1.55;
}

.disambiguate-photo {
    margin: 0 0 24px;
    padding: 12px;
    background: var(--orsay-light);
    border: 1px solid var(--orsay-border);
    text-align: center;
}

.disambiguate-photo img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: var(--orsay-image-bg);
    margin: 0 auto;
}

.disambiguate-photo figcaption {
    margin-top: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--orsay-muted);
}

.disambiguate-form {
    display: flex;
    flex-direction: column;
}

.disambiguate-section-label {
    margin: 0 0 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--orsay-muted);
}

.disambiguate-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 4px;
}

.disambiguate-card {
    display: block;
    cursor: pointer;
    margin: 0;
}

.disambiguate-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.disambiguate-card-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--orsay-border);
    background: var(--orsay-bg);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.disambiguate-card:hover .disambiguate-card-inner {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.disambiguate-input:focus-visible + .disambiguate-card-inner {
    outline: 2px solid var(--orsay-black);
    outline-offset: 2px;
}

.disambiguate-input:checked + .disambiguate-card-inner {
    border-color: var(--orsay-black);
    background: var(--orsay-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.disambiguate-radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--orsay-border);
    border-radius: 50%;
    background: var(--orsay-bg);
    position: relative;
    transition: border-color 0.2s;
}

.disambiguate-input:checked + .disambiguate-card-inner .disambiguate-radio {
    border-color: var(--orsay-black);
}

.disambiguate-input:checked + .disambiguate-card-inner .disambiguate-radio::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--orsay-red);
}

.disambiguate-card-label {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--orsay-black);
    text-transform: capitalize;
}

.disambiguate-card-chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--orsay-muted);
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}

.disambiguate-input:checked + .disambiguate-card-inner .disambiguate-card-chevron {
    opacity: 1;
    color: var(--orsay-black);
    transform: translateX(2px);
}

.disambiguate-divider {
    margin: 20px 0 16px;
}

.disambiguate-custom {
    margin-bottom: 24px;
}

.disambiguate-custom-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--orsay-muted);
}

.disambiguate-custom-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--orsay-border);
    font-family: inherit;
    font-size: 0.9375rem;
    background: var(--orsay-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.disambiguate-custom-input::placeholder {
    color: #aaa;
}

.disambiguate-custom-input:focus {
    outline: none;
    border-color: var(--orsay-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.disambiguate-actions {
    margin-top: auto;
}

.disambiguate-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.disambiguate-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.disambiguate-hint {
    margin: 10px 0 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--orsay-muted);
}

.disambiguate-hint[hidden] {
    display: none;
}

@media (min-width: 480px) {
    .disambiguate-options {
        gap: 10px;
    }

    .disambiguate-card-inner {
        padding: 16px 18px;
    }
}

/* ── Legacy helpers kept for admin redirects ── */

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.page-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 24px 0 8px;
}

.page-intro {
    color: var(--orsay-muted);
    font-size: 0.8125rem;
    margin-bottom: 20px;
}

.card {
    border: 1px solid var(--orsay-border);
    padding: 20px;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.flash {
    padding: 12px 16px;
    margin: 12px 0;
    background: var(--orsay-light);
    border: 1px solid var(--orsay-border);
}

.flash-error {
    background: #fff5f5;
    color: var(--orsay-red);
}

.orsay-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.share-menu {
    position: relative;
}

.share-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    min-width: 220px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--orsay-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
}

.share-menu-title {
    margin: 0;
    padding: 8px 14px 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--orsay-muted);
}

.share-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.875rem;
    color: var(--orsay-black);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}

.share-menu-item:hover {
    background: var(--orsay-light);
    text-decoration: none;
}

.share-menu-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.share-menu-feedback {
    margin: 0;
    padding: 8px 14px 10px;
    font-size: 0.8125rem;
    color: var(--orsay-red);
}
