/* Auftragspuls: extracted from layouts/app.blade.php (security review 26.11.2026, Fund 2 and 13). */
:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f4f6fa; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; transform: translateY(calc(-100% - 1rem)); border-radius: .5rem; padding: .7rem 1rem; color: #fff; background: #172033; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.card { width: min(100%, 28rem); border: 1px solid #dfe4ec; border-radius: 1rem; background: #fff; box-shadow: 0 1rem 2.5rem rgb(32 46 74 / 9%); padding: clamp(1.5rem, 5vw, 2.5rem); }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 750; letter-spacing: -.02em; }
.brand-link { text-decoration: none; }
.brand-mark { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 22%; color: #fff; background: #1d4ed8; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.eyebrow { margin: 2rem 0 .5rem; color: #1d4ed8; font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.35rem); line-height: 1.1; letter-spacing: -.035em; }
.lead { margin: .8rem 0 0; color: #5b6578; line-height: 1.6; }
.field { margin-top: 1.25rem; }
label { display: block; margin-bottom: .45rem; font-size: .9rem; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #7b879b; border-radius: .65rem; padding: .75rem .85rem; color: #172033; background: #fff; }
textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus, summary:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; border-color: #1d4ed8; }
[aria-invalid="true"] { border-color: #b42318; }
.error { margin: .45rem 0 0; color: #b42318; font-size: .875rem; }
.button { width: 100%; margin-top: 1.5rem; border: 0; border-radius: .65rem; padding: .8rem 1rem; color: #fff; background: #1d4ed8; font-weight: 700; cursor: pointer; }
.button:hover { background: #1e40af; }
.button:disabled { cursor: wait; opacity: .65; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid #dfe4ec; background: #fff; }
.user-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; color: #5b6578; font-size: .9rem; }
.link-button { min-height: 2.75rem; border: 0; padding: .45rem .25rem; color: #1d4ed8; background: transparent; font-weight: 650; cursor: pointer; }
.user-nav-link { color: #1d4ed8; font-weight: 650; text-decoration: none; }
.user-nav-link:hover { text-decoration: underline; }
/* Shared customer header (UX review 27.11.2026): main points, two menus, "Betrieb" only for operators. */
.app-topbar { flex-wrap: wrap; }
.topbar-start { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.topbar-organisation { border-left: 1px solid #dfe4ec; padding-left: .9rem; color: #5b6578; font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.app-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; font-size: .92rem; }
.main-nav { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.main-nav a, .nav-operator, .nav-menu > summary { display: inline-flex; align-items: center; min-height: 2.75rem; border-radius: .55rem; padding: .35rem .7rem; color: #253047; font-weight: 650; text-decoration: none; cursor: pointer; }
.main-nav a:hover, .nav-operator:hover, .nav-menu > summary:hover { background: #eef3fb; }
.main-nav a[aria-current="page"], .nav-menu > summary[aria-current="true"] { color: #1d4ed8; background: #e8f0ff; }
.nav-operator { color: #8a3b00; background: #fff4e5; }
.nav-operator:hover { background: #ffe9cc; }
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: ""; width: .4rem; height: .4rem; margin-left: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15rem) rotate(45deg); }
.nav-menu[open] > summary::after { transform: translateY(.1rem) rotate(-135deg); }
.nav-menu > ul { position: absolute; z-index: 30; right: 0; min-width: 13rem; margin: .35rem 0 0; border: 1px solid #dfe4ec; border-radius: .75rem; padding: .4rem; background: #fff; box-shadow: 0 12px 30px rgb(23 32 51 / 12%); list-style: none; }
.nav-menu > ul a, .nav-menu > ul .link-button { display: flex; align-items: center; width: 100%; min-height: 2.75rem; border-radius: .5rem; padding: .35rem .7rem; color: #253047; font-size: inherit; font-weight: 600; text-align: left; text-decoration: none; }
.nav-menu > ul a:hover, .nav-menu > ul .link-button:hover { background: #eef3fb; }
.nav-menu > ul a[aria-current="page"] { color: #1d4ed8; }
.nav-account .user-name { display: inline; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle { display: none; }
@media (max-width: 52rem) {
    .js .nav-toggle { display: inline-flex; align-items: center; min-height: 2.75rem; border: 1px solid #c9d3e3; border-radius: .55rem; padding: .35rem .9rem; color: #253047; background: #fff; font: inherit; font-weight: 650; cursor: pointer; }
    .app-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: .25rem; padding-top: .5rem; }
    .js .app-topbar:not(.nav-open) .app-nav { display: none; }
    .main-nav { flex-direction: column; }
    .main-nav a, .nav-operator, .nav-menu > summary { display: flex; }
    .nav-menu > ul { position: static; min-width: 0; margin: 0; border: 0; padding: 0 0 0 .75rem; box-shadow: none; }
}
@media (max-width: 36rem) { .topbar-organisation { display: none; } }
.content { width: min(100% - 2rem, 72rem); margin: 0 auto; padding: clamp(2rem, 7vw, 5rem) 0; }
.content-card { border: 1px solid #dfe4ec; border-radius: 1rem; background: #fff; padding: clamp(1.5rem, 5vw, 3rem); }
.organisation-list { display: grid; gap: .8rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.organisation-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid #dfe4ec; border-radius: .8rem; padding: 1rem 1.1rem; text-decoration: none; }
.organisation-card:hover { border-color: #9db6eb; background: #f8faff; }
.organisation-card > div { min-width: 0; }
.organisation-card h2 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.organisation-card p { margin: .25rem 0 0; color: #5b6578; font-size: .875rem; }
.organisation-action { flex: none; color: #1d4ed8; font-size: .85rem; font-weight: 700; text-align: right; }
.empty-state { margin: 2rem 0 0; border-radius: .75rem; padding: 1rem; color: #5b6578; background: #f4f6fa; }
.notification-settings-list { display: grid; gap: .8rem; margin-top: 1.5rem; }
.notification-setting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem); align-items: end; gap: 1rem; border: 1px solid #dfe4ec; border-radius: .8rem; padding: 1rem; }
.notification-setting h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.notification-setting-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .6rem; }
.notification-setting-action label { grid-column: 1 / -1; margin: 0; }
.notification-setting-action .button { width: auto; min-height: 2.75rem; margin: 0; }
.calendar-feed-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.calendar-feed-actions .button { width: auto; min-height: 2.75rem; margin: 0; }
.calendar-feed-secret { margin: 1rem 0; }
.calendar-feed-url { width: 100%; margin: .5rem 0 0; padding: .55rem .7rem; border: 1px solid #b9c9e8; border-radius: .5rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; overflow-wrap: anywhere; }
.content-wide { width: min(100% - 2rem, 90rem); padding-top: clamp(1.5rem, 4vw, 3rem); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-heading .eyebrow { margin-top: 1rem; }
.back-link, .reset-link { color: #1d4ed8; font-size: .9rem; font-weight: 650; }
.alert { margin-bottom: 1rem; border: 1px solid #f3b6b0; border-radius: .75rem; padding: .9rem 1rem; color: #8f251d; background: #fff7f6; }
.alert p { margin: 0; }
.alert ul { margin: .45rem 0 0; padding-left: 1.25rem; }
.publication-layout { display: grid; grid-template-columns: minmax(14rem, 19rem) minmax(0, 1fr); align-items: start; gap: 1.25rem; }
.filter-card { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #dfe4ec; border-radius: 1rem; padding: 1.25rem; background: #fff; }
/* The apply button stays visible at the bottom of the scrolling filter card (UX review 27.11.2026). */
.filter-actions { position: sticky; z-index: 2; bottom: -1.25rem; margin: 0 -1.25rem -1.25rem; border-top: 1px solid #eef1f6; padding: .25rem 1.25rem 1rem; background: #fff; }
.filter-actions .button { margin-top: .75rem; }
.button-inline { display: inline-block; width: auto; text-align: center; text-decoration: none; }
.empty-state .button-inline { margin-top: .75rem; }
.filter-card h2 { margin: 0; font-size: 1.1rem; }
.filter-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.filter-card .filter-toggle { display: none; width: auto; min-height: 2.75rem; margin: 0; padding: .55rem .75rem; }
.filter-card .button { margin-top: 1.25rem; }
.list-feedback { margin-bottom: 1rem; }
.feedback-action { display: inline-block; margin-left: .5rem; color: #1d4ed8; font-weight: 700; }
.field-first { margin-top: 1rem; }
.filter-details { margin-top: 1.25rem; }
.filter-details summary { color: #1d4ed8; cursor: pointer; font-weight: 700; }
fieldset { min-width: 0; margin: 1.25rem 0 0; border: 0; padding: 0; }
legend { margin-bottom: .55rem; font-size: .9rem; font-weight: 700; }
.checkbox-list { display: grid; gap: .45rem; }
.checkbox-field { display: grid; grid-template-columns: 1rem 1fr; align-items: start; gap: .55rem; margin: 0; color: #3e485b; font-weight: 500; line-height: 1.35; }
.checkbox-field input { width: 1rem; height: 1rem; margin: .1rem 0 0; padding: 0; }
.cpv-picker { margin-top: 1.25rem; }
.cpv-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; margin-bottom: .7rem; }
.cpv-search-row .button { width: auto; margin: 0; white-space: nowrap; }
.cpv-option-list { max-height: 18rem; overflow-y: auto; padding: .2rem .35rem .2rem .1rem; }
.cpv-option-list .checkbox-field > span { display: grid; gap: .1rem; }
.cpv-option-list strong { color: #172033; font-size: .78rem; letter-spacing: .02em; }
.cpv-option-status { min-height: 1.2rem; }
.cpv-load-more { min-height: 2.75rem; margin-top: .55rem !important; }
.office-picker { margin-top: 1.25rem; }
.office-option-list { max-height: 18rem; overflow-y: auto; padding: .2rem .35rem .2rem .1rem; }
.office-reference { display: block; margin-top: .15rem; color: #5f6b80; font-size: .7rem; overflow-wrap: anywhere; }
.office-option-status { min-height: 1.2rem; }
.office-load-more { min-height: 2.75rem; margin-top: .55rem !important; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.date-grid label { font-size: .8rem; }
.reset-link { display: block; margin-top: .8rem; text-align: center; }
.saved-searches { margin-top: 1.5rem; border-top: 1px solid #e2e6ed; padding-top: 1.25rem; }
.saved-searches h2 { margin: 0; font-size: 1.05rem; }
.saved-search-create { margin-top: 1rem; }
.saved-search-create .button { margin-top: .7rem; }
.saved-search-empty { margin-bottom: 0; font-size: .85rem; }
.saved-search-list { display: grid; gap: .65rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.saved-search-list > li { border: 1px solid #e1e6ee; border-radius: .7rem; padding: .75rem; background: #fbfcfe; }
.saved-search-heading { display: flex; align-items: start; justify-content: space-between; gap: .7rem; font-size: .88rem; }
.saved-search-heading strong { overflow-wrap: anywhere; }
.saved-search-heading a { flex: none; color: #1d4ed8; font-weight: 700; }
.saved-search-incompatible { color: #8a4b12; font-size: .75rem; text-align: right; }
.saved-search-manage { margin-top: .65rem; }
.saved-search-manage summary { color: #5b6578; cursor: pointer; font-size: .8rem; font-weight: 650; }
.saved-search-manage form { margin-top: .65rem; }
.saved-search-manage .button-compact { min-height: 2.5rem; margin-top: .45rem; padding: .6rem .75rem; }
.danger-button { color: #b42318; }
.saved-search-pagination { display: flex; justify-content: space-between; gap: .7rem; margin-top: .9rem; }
.saved-search-pagination a { color: #1d4ed8; font-size: .8rem; font-weight: 700; }
.publication-list { display: grid; gap: 1rem; }
.publication-card { border: 1px solid #dfe4ec; border-radius: 1rem; padding: clamp(1.1rem, 3vw, 1.5rem); background: #fff; box-shadow: 0 .35rem 1.4rem rgb(32 46 74 / 5%); }
.publication-card h2 { margin: .8rem 0 0; font-size: clamp(1.15rem, 2.5vw, 1.4rem); line-height: 1.3; }
.publication-title-link { text-decoration: none; }
.publication-title-link:hover { color: #1d4ed8; text-decoration: underline; text-underline-offset: .18em; }
.badge-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge { display: inline-flex; border-radius: 999px; padding: .25rem .55rem; color: #244575; background: #edf3ff; font-size: .72rem; font-weight: 750; }
.badge-warning { color: #854d0e; background: #fef3c7; }
.badge-favorite { color: #7c3f00; background: #fff1d6; }
.badge-document { color: #0f4c3a; background: #dff3ec; }
.list-notice { margin: 0 0 1rem; border-left: .25rem solid #2f6fb3; border-radius: .5rem; padding: .7rem .9rem; color: #2c3a52; background: #f1f6fd; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.badge-ai-strong { color: #14532d; background: #dcfce7; }
.badge-ai-possible { color: #713f12; background: #fef9c3; }
.badge-ai-weak { color: #515c70; background: #eef0f4; }
.ai-feedback-form { margin: 1rem 0 0; border-top: 1px solid #e3e8f0; padding-top: .9rem; }
.ai-feedback-question { margin: 0 0 .6rem; }
.ai-feedback-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ai-feedback-actions .button { width: auto; min-height: 2.5rem; margin: 0; }
.authority { margin: .55rem 0 0; color: #3e485b; font-size: .9rem; font-weight: 650; }
.description { margin: .85rem 0 0; color: #5b6578; line-height: 1.55; }
.publication-meta { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin: 1rem 0 0; }
.publication-meta div { display: grid; gap: .15rem; }
.publication-meta dt { color: #5f6b80; font-size: .7rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.publication-meta dd { margin: 0; font-size: .88rem; }
.workspace-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; border-top: 1px solid #edf0f5; padding-top: .8rem; color: #5b6578; font-size: .82rem; }
.source-link { display: inline-block; margin-top: .9rem; color: #1d4ed8; font-size: .9rem; font-weight: 700; }
.next-page { display: block; margin-top: 1rem; border: 1px solid #c7d5ee; border-radius: .7rem; padding: .8rem 1rem; color: #1d4ed8; background: #fff; font-weight: 700; text-align: center; text-decoration: none; }
.empty-state-large { margin-top: 0; border: 1px solid #dfe4ec; padding: 2rem; background: #fff; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.content-detail { width: min(100% - 2rem, 88rem); padding-top: clamp(1.5rem, 4vw, 3rem); }
.detail-alert { margin-top: 1rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); align-items: start; gap: 1.25rem; margin-top: 1rem; }
.detail-main { display: grid; gap: 1rem; }
.detail-hero, .detail-section, .workspace-card { border: 1px solid #dfe4ec; border-radius: 1rem; background: #fff; padding: clamp(1.25rem, 4vw, 2rem); }
.detail-hero .eyebrow { margin-top: 0; }
.detail-hero h1 { margin-top: .8rem; overflow-wrap: anywhere; }
.detail-meta { margin-top: 1.25rem; }
.source-link-prominent { margin-top: 1.25rem; }
.source-notice { margin-top: 1.25rem; border-left: 3px solid #9db6eb; padding: .8rem 1rem; color: #526078; background: #f5f8ff; font-size: .85rem; line-height: 1.5; }
.source-notice p { margin: .25rem 0 0; }
.partial-evaluation-notice { margin: 1rem 0 0; border-left-color: #b45309; color: #5c3d0e; background: #fffbeb; }
.partial-evaluation-notice p { margin: .25rem 0 0; }
.partial-evaluation-notice .source-link { margin-top: .5rem; }
.detail-section h2, .workspace-card h2 { margin: 0; font-size: 1.25rem; }
.detail-section h3 { margin: 1.15rem 0 .5rem; font-size: 1.05rem; }
.detail-section h4, .detail-section h3.detail-subheading { margin: 0 0 .5rem; font-size: .9rem; }
.long-text { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.65; }
.muted-text { color: #687386; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.55; }
.scope-list { display: grid; gap: .8rem; margin-top: 1rem; }
.scope-card { border: 1px solid #e1e6ee; border-radius: .8rem; padding: 1rem; background: #fbfcfe; }
.scope-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.scope-heading h3 { margin-top: .2rem; }
.scope-kicker { margin: 0; color: #657087; font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.badge-neutral { color: #515c70; background: #eef0f4; }
.detail-subsection { margin-top: 1rem; border-top: 1px solid #e5e9f0; padding-top: .9rem; }
.compact-list, .relation-list { display: grid; gap: .45rem; margin: 0; padding-left: 1.2rem; line-height: 1.5; }
.fact-list { display: grid; gap: .7rem; margin: 0; }
.fact-list div { display: grid; gap: .1rem; }
.fact-list dt { color: #6f788a; font-size: .72rem; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.fact-list dd { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.party-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.party-card, .recipient-card { border: 1px solid #e1e6ee; border-radius: .8rem; padding: 1rem; background: #fbfcfe; }
.party-card h3, .recipient-card h4 { margin: .25rem 0 .6rem; }
address { color: #4e586b; font-style: normal; line-height: 1.5; }
.contact-block { margin-top: .7rem; color: #4e586b; line-height: 1.5; }
.break-anywhere { overflow-wrap: anywhere; }
.recipient-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
.recipient-card p { margin: .4rem 0; }
.positive-note { border-left: 3px solid #83bd95; padding-left: .7rem; color: #356447; }
.timeline { display: grid; gap: .8rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.timeline li { border-left: 3px solid #b8caed; padding: .2rem 0 .2rem 1rem; }
.timeline li p { margin: .35rem 0 0; }
.timeline-heading { display: flex; justify-content: space-between; gap: 1rem; }
.workspace-card { position: sticky; top: 1rem; }
.workspace-facts { margin-top: 1rem; }
.workspace-jump { display: inline-block; margin-top: 1rem; color: #1d4ed8; font-size: .9rem; font-weight: 700; }
.workspace-feedback { margin-top: 1rem; border: 1px solid #9fd3ae; border-radius: .65rem; padding: .75rem; color: #27603a; background: #f2fbf5; font-size: .9rem; }
.workspace-form { margin-top: 1.25rem; border-top: 1px solid #e2e6ed; padding-top: 1rem; }
.workspace-form .button { min-height: 2.75rem; margin-top: .8rem; }
.button-secondary { border: 1px solid #b9c9e8; color: #1d4ed8; background: #f7f9ff; }
.button-secondary:hover { background: #edf3ff; }
.form-help.export-action { margin-bottom: 1rem; }
.export-action .button { display: inline-block; width: auto; min-height: 2.5rem; margin: 0 .6rem .35rem 0; padding: .55rem .9rem; }
.form-help { margin: .45rem 0 0; color: #687386; font-size: .8rem; line-height: 1.45; }
.consent-field { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; align-items: start; }
.consent-field input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; }
.consent-field label { margin: 0; font-weight: 500; line-height: 1.5; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; font-size: .85rem; color: #5b6578; }
.app-footer { max-width: 72rem; margin: 2rem auto 0; padding: 1rem 1rem 2rem; border-top: 1px solid #e3e8ef; font-size: .85rem; color: #5b6578; overflow-wrap: anywhere; }
.app-footer p { margin: 0; }
.app-footer .legal-links { margin-top: .5rem; }
.legal-content { line-height: 1.65; }
.legal-content h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
.legal-content h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal-content p, .legal-content li { overflow-wrap: anywhere; }
.legal-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.legal-content th, .legal-content td { padding: .35rem .6rem .35rem 0; text-align: left; vertical-align: top; overflow-wrap: anywhere; hyphens: auto; }
.legal-placeholder { display: inline-block; border-radius: .35rem; padding: .1rem .35rem; background: #fff1c2; color: #6b4b00; }
.landing-button { width: auto; min-width: 12rem; margin: 0; text-align: center; text-decoration: none; }
.billing-status, .billing-plans { margin-top: 1.5rem; border-top: 1px solid #e2e6ed; padding-top: 1rem; }
.billing-status h2, .billing-plans h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.billing-plan-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.billing-plan-actions form { flex: 1 1 14rem; }
.billing-plan-actions .button { margin-top: 0; }
.member-table { width: 100%; margin-top: 1.25rem; border-collapse: collapse; font-size: .92rem; }
.member-table th, .member-table td { border-bottom: 1px solid #e2e6ed; padding: .7rem .5rem; text-align: left; vertical-align: top; }
.member-table th { color: #5f6b80; font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.member-table .badge { margin-left: .35rem; vertical-align: middle; }
.member-role-form { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.member-role-form select { width: auto; min-width: 9rem; padding: .45rem .6rem; }
.member-role-form .button { width: auto; min-height: 2.4rem; margin: 0; padding: .45rem .7rem; }
.member-role-help { margin: 1rem 0 0; padding-left: 1.2rem; }
.member-section { margin-top: 1.25rem; }
.member-invite-heading { margin: 1.5rem 0 .4rem; font-size: 1.05rem; }
.member-invite-form { max-width: 32rem; }
.member-invite-form .button { width: auto; min-width: 12rem; }
.invitation-list { display: grid; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.invitation-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; border: 1px solid #e1e6ee; border-radius: .7rem; padding: .75rem; background: #fbfcfe; }
.invitation-list p { margin: .25rem 0 0; color: #5b6578; font-size: .85rem; }
.notes-section { margin-top: 1.25rem; border-top: 1px solid #e2e6ed; padding-top: 1rem; }
.notes-section h3 { margin: 0; font-size: 1rem; }
.notes-list { display: grid; gap: .7rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.notes-list li { border-radius: .65rem; padding: .75rem; background: #f5f7fa; }
.notes-list p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; }
.notes-list small { display: block; margin-top: .5rem; color: #70798a; }
@media (max-width: 66rem) { .detail-grid { grid-template-columns: 1fr; } .workspace-card { position: static; } }
@media (max-width: 44rem) { .party-grid, .recipient-list { grid-template-columns: 1fr; } .scope-heading, .timeline-heading { display: grid; } }
@media (max-width: 52rem) {
    .member-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
    .member-table tr { display: block; margin-top: .8rem; border: 1px solid #e1e6ee; border-radius: .7rem; padding: .3rem .6rem; }
    .member-table td { display: grid; grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr); gap: .5rem; border: 0; padding: .4rem 0; overflow-wrap: anywhere; }
    .member-table td::before { content: attr(data-label); color: #5f6b80; font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
}
@media (max-width: 52rem) {
    .publication-layout { grid-template-columns: 1fr; }
    .filter-card { position: static; max-height: none; overflow: visible; }
    .filter-actions { position: static; margin: 0; border-top: 0; padding: 0; }
    .filter-card .filter-toggle { display: inline-flex; align-items: center; }
    .filter-body[hidden] { display: none; }
}
@media (max-width: 36rem) {
    .member-table td { grid-template-columns: 1fr; gap: .15rem; }
    .member-role-form select { min-width: 0; flex: 1 1 8rem; }
    .topbar { flex-wrap: wrap; padding: .75rem 1rem; }
    .user-name { display: none; }
    .date-grid, .cpv-search-row { grid-template-columns: 1fr; }
    .cpv-search-row .button { width: 100%; }
    .organisation-card { align-items: flex-start; }
    .content, .content-wide, .content-detail { width: min(100% - 1rem, 90rem); }
    .publication-card, .detail-hero, .detail-section, .workspace-card { overflow-wrap: anywhere; }
    .notification-setting, .notification-setting-action { grid-template-columns: 1fr; }
    .notification-setting-action label { grid-column: auto; }
    .notification-setting-action .button { width: 100%; }
}

.totp-qr-frame { margin: 1rem 0; display: inline-block; padding: .5rem; border: 1px solid #d5dbe3; border-radius: .5rem; background: #fff; line-height: 0; }
.totp-qr { width: 200px; height: 200px; max-width: 100%; display: block; }

/* UX review 27.11.2026: search profiles above the results, favourite and status in the detail head,
   saving on change, collapsible long lists and workspace tabs. */
.profile-bar { margin: 0 0 1.25rem; border: 1px solid #dfe4ec; border-top: 1px solid #dfe4ec; border-radius: 1rem; padding: 1rem 1.25rem; background: #fff; }
.profile-bar-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; }
.profile-bar-manage { color: #1d4ed8; font-size: .85rem; font-weight: 650; }
.profile-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 0; }
.saved-search-list.profile-chips > li { border: 0; padding: 0; background: none; }
.profile-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-height: 2.75rem; border: 1px solid #b9c9e8; border-radius: 999px; padding: .4rem .9rem; color: #1d4ed8; background: #f7f9ff; font-size: .88rem; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
a.profile-chip:hover { background: #edf3ff; }
.profile-chip-unavailable { border-color: #e1e6ee; color: #5b6578; background: #f8f9fb; }
.profile-chip-unavailable .saved-search-incompatible { text-align: left; }
.saved-search-create-toggle { margin-top: .9rem; }
.saved-search-create-toggle > summary { display: inline-flex; align-items: center; min-height: 2.75rem; color: #1d4ed8; font-size: .9rem; font-weight: 700; cursor: pointer; }
.saved-search-create-toggle .saved-search-create { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem .75rem; margin-top: .5rem; }
.saved-search-create-toggle .saved-search-create label { flex-basis: 100%; }
.saved-search-create-toggle .saved-search-create input[type="text"] { flex: 1 1 14rem; width: auto; }
.saved-search-create-toggle .saved-search-create .button { width: auto; margin-top: 0; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1rem; }
.detail-actions form { margin: 0; }
.favorite-toggle { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; border: 1px solid #b9c9e8; border-radius: .65rem; padding: .45rem .9rem; color: #1d4ed8; background: #f7f9ff; font: inherit; font-weight: 650; cursor: pointer; }
.favorite-toggle[aria-pressed="true"] { border-color: #e7b400; color: #7a5200; background: #fff8db; }
.favorite-toggle span { font-size: 1.15rem; line-height: 1; }
.detail-status-form { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.detail-status-form label { margin: 0; font-weight: 650; }
.detail-status-form select { width: auto; min-width: 11rem; }
.detail-status-form .button { width: auto; margin-top: 0; }
.autosave-status { color: #5b6578; font-size: .85rem; }
.autosave-status:empty { display: none; }
.autosave-status[data-state="saved"] { color: #166534; font-weight: 650; }
.autosave-status[data-state="failed"] { color: #b42318; font-weight: 650; }
.notification-setting-action .autosave-status, .member-role-form .autosave-status { flex-basis: 100%; }
.detail-collapsible > summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; }
.detail-collapsible > summary::-webkit-details-marker { display: none; }
.detail-collapsible > summary::after { content: ""; flex: none; width: .45rem; height: .45rem; margin-left: auto; border-right: 2px solid #5b6578; border-bottom: 2px solid #5b6578; transform: rotate(45deg); }
.detail-collapsible[open] > summary::after { transform: rotate(-135deg); }
.detail-collapsible > summary h2, .detail-collapsible > summary h4 { margin: 0; }
.collapsible-count { color: #5b6578; font-weight: 500; }
.workspace-tabs ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.workspace-tabs a { display: inline-flex; align-items: center; min-height: 2.75rem; border: 1px solid #dfe4ec; border-radius: 999px; padding: .35rem .95rem; color: #253047; background: #fff; font-size: .9rem; font-weight: 650; text-decoration: none; }
.workspace-tabs a:hover { background: #eef3fb; }
.workspace-tabs a[aria-current="page"] { border-color: #1d4ed8; color: #fff; background: #1d4ed8; }
@media (max-width: 36rem) {
    /* One swipeable row instead of four rows of tabs; the page itself never scrolls sideways. */
    .workspace-tabs ul { flex-wrap: nowrap; overflow-x: auto; margin-right: -.5rem; padding-bottom: .25rem; scrollbar-width: thin; }
    .workspace-tabs a { white-space: nowrap; }
}
.workspace-ai-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin: 0 0 1rem; }
.workspace-ai-filter select { width: auto; }
.workspace-ai-filter .button { width: auto; margin-top: 0; }
.workspace-ai-filter .form-help { flex-basis: 100%; margin: 0; }
.notification-profile { display: grid; gap: .25rem; }
.notification-profile .saved-search-manage { margin: 0 0 .75rem; }
.notification-profile .reset-link { display: inline-block; margin-top: .3rem; text-align: left; }
.notification-profile .saved-search-manage form { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem .75rem; }
.notification-profile .saved-search-manage label { flex-basis: 100%; }
.notification-profile .saved-search-manage input[type="text"] { flex: 1 1 14rem; width: auto; }
.notification-profile .saved-search-manage .button { width: auto; margin-top: 0; }

/* Language choice of the pages before sign-in (28.11.2026). */
.guest-languages { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #dfe4ec; font-size: .85rem; }
.guest-languages a { color: #5b6578; }
.guest-languages a[aria-current="page"] { color: #172033; font-weight: 700; text-decoration: none; }
