:root {
    color-scheme: dark;

    --background: #050608;
    --background-soft: #090b10;
    --surface: rgba(19, 21, 27, 0.72);
    --surface-strong: rgba(22, 24, 31, 0.9);
    --surface-soft: rgba(255, 255, 255, 0.035);

    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.14);

    --red: #dc1738;
    --red-bright: #ff3154;
    --red-dark: #7f0b20;
    --red-glow: rgba(220, 23, 56, 0.28);

    --text: #f7f8fb;
    --text-soft: #d7dae1;
    --muted: #969ca8;
    --muted-dark: #6d7380;

    --green: #55d98b;

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 28px;
    --radius-pill: 999px;

    --shadow:
        0 30px 80px rgba(0, 0, 0, 0.48),
        0 8px 24px rgba(0, 0, 0, 0.32);

    --glass-highlight:
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(220, 23, 56, 0.12),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #07080b 0%,
            var(--background) 55%,
            #06070a 100%
        );
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

body,
button,
input {
    font: inherit;
}

a {
    color: inherit;
}

button,
input {
    border: 0;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(220, 23, 56, 0.42);
    color: #ffffff;
}

.skip-link {
    background: var(--text);
    border-radius: 0 0 10px 10px;
    color: #08090c;
    font-size: 0.85rem;
    font-weight: 800;
    left: 20px;
    padding: 10px 14px;
    position: fixed;
    top: -60px;
    transition: top 160ms ease;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.ambient-light {
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.48;
    pointer-events: none;
    position: fixed;
    z-index: -2;
}

.ambient-light-one {
    background: rgba(220, 23, 56, 0.26);
    height: 440px;
    right: -170px;
    top: 110px;
    width: 440px;
}

.ambient-light-two {
    background: rgba(115, 23, 45, 0.17);
    bottom: -190px;
    height: 520px;
    left: -220px;
    width: 520px;
}

.page-grid {
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.022) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.022) 1px,
            transparent 1px
        );
    background-size: 68px 68px;
    inset: 0;
    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.72),
            transparent 78%
        );
    pointer-events: none;
    position: fixed;
    z-index: -3;
}

.topbar {
    backdrop-filter: blur(24px);
    background: rgba(5, 6, 8, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1400px;
    min-height: 78px;
    padding: 0 34px;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background:
        linear-gradient(
            145deg,
            rgba(255, 49, 84, 0.95),
            rgba(127, 11, 32, 0.92)
        );
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    box-shadow:
        0 8px 28px rgba(220, 23, 56, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    display: grid;
    height: 42px;
    place-items: center;
    position: relative;
    transform: rotate(-3deg);
    width: 42px;
}

.brand-mark::after {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    content: "";
    inset: 4px;
    position: absolute;
}

.brand-mark span {
    font-size: 1.15rem;
    font-weight: 900;
    position: relative;
    transform: rotate(3deg);
    z-index: 1;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-name {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    line-height: 1;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-actions,
.navigation {
    align-items: center;
    display: flex;
}

.topbar-actions {
    gap: 28px;
}

.navigation {
    gap: 6px;
}

.nav-link {
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 720;
    padding: 10px 15px;
    text-decoration: none;
    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    transform: translateY(-1px);
}

.nav-link-active {
    background: rgba(255, 255, 255, 0.065);
    color: var(--text);
}

.system-status {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--muted);
    display: flex;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 8px;
    padding: 8px 12px;
}

.status-dot,
.live-badge span,
.analysis-badge span {
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(85, 217, 139, 0.62);
    height: 7px;
    width: 7px;
}

.page {
    margin: 0 auto;
    max-width: 1400px;
    min-height: calc(100vh - 156px);
    padding: 48px 34px 90px;
    position: relative;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted-dark);
    font-size: 0.72rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1400px;
    padding: 26px 34px;
}

.glass-panel,
.glass-panel-inner {
    backdrop-filter: blur(22px);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.015)
        ),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--glass-highlight), var(--shadow);
    position: relative;
}

.glass-panel {
    border-radius: var(--radius-large);
    overflow: hidden;
}

.glass-panel::before {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.22),
            transparent
        );
    content: "";
    height: 1px;
    left: 9%;
    opacity: 0.52;
    position: absolute;
    right: 9%;
    top: 0;
}

.glass-panel-inner {
    border-radius: 22px;
}

.eyebrow {
    align-items: center;
    color: #ff627d;
    display: flex;
    font-size: 0.72rem;
    font-weight: 850;
    gap: 9px;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.eyebrow-dot {
    background: var(--red-bright);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(255, 49, 84, 0.72);
    height: 6px;
    width: 6px;
}

.panel-kicker,
.proof-label {
    color: var(--muted);
    display: block;
    font-size: 0.67rem;
    font-weight: 820;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: 0.98;
    margin-bottom: 24px;
}

h1 span {
    background:
        linear-gradient(
            95deg,
            #ffffff 0%,
            #ff7b91 54%,
            var(--red-bright) 100%
        );
    background-clip: text;
    color: transparent;
    display: block;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    line-height: 1.05;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.2;
}

.hero-copy {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 680px;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
    min-height: 620px;
}

.hero-shell::after {
    background: rgba(220, 23, 56, 0.42);
    border-radius: 50%;
    content: "";
    filter: blur(90px);
    height: 230px;
    position: absolute;
    right: 10%;
    top: 20%;
    width: 230px;
    z-index: 0;
}

.hero-content {
    align-self: center;
    padding: 72px 0 72px 66px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-top: 22px;
    max-width: 780px;
}

.hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.primary-link,
#generate-button {
    align-items: center;
    background:
        linear-gradient(
            135deg,
            var(--red-bright),
            var(--red) 58%,
            #a20f29
        );
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow:
        0 14px 30px rgba(220, 23, 56, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    color: #ffffff;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 820;
    gap: 22px;
    justify-content: center;
    min-height: 52px;
    padding: 0 19px;
    text-decoration: none;
    transition:
        box-shadow 180ms ease,
        filter 180ms ease,
        transform 180ms ease;
}

.primary-link:hover,
#generate-button:hover {
    box-shadow:
        0 18px 38px rgba(220, 23, 56, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.primary-link:focus-visible,
.secondary-link:focus-visible,
.nav-link:focus-visible,
#generate-button:focus-visible,
.example-chip:focus-visible,
.copy-button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 3px;
}

.button-arrow {
    font-size: 1.1rem;
    transition: transform 180ms ease;
}

.primary-link:hover .button-arrow,
#generate-button:hover .button-arrow {
    transform: translateX(3px);
}

.secondary-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-soft);
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 760;
    min-height: 52px;
    padding: 0 19px;
    text-decoration: none;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.secondary-link:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.hero-proof {
    align-items: center;
    display: flex;
    gap: 20px;
    margin-top: 48px;
}

.proof-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.proof-item strong {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 720;
}

.proof-divider {
    background: var(--border);
    height: 34px;
    width: 1px;
}

.hero-visual {
    align-items: center;
    display: flex;
    justify-content: center;
    min-width: 0;
    padding: 54px 54px 54px 40px;
    position: relative;
    z-index: 2;
}

.visual-backlight {
    background:
        radial-gradient(
            circle,
            rgba(255, 49, 84, 0.48),
            rgba(220, 23, 56, 0.09) 48%,
            transparent 72%
        );
    filter: blur(20px);
    height: 82%;
    position: absolute;
    width: 86%;
}

.signal-panel {
    background:
        linear-gradient(
            145deg,
            rgba(30, 32, 40, 0.94),
            rgba(10, 11, 15, 0.9)
        );
    box-shadow:
        0 36px 80px rgba(0, 0, 0, 0.58),
        0 0 70px rgba(220, 23, 56, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 470px;
    padding: 28px;
    transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
    width: 100%;
}

.signal-header,
.panel-heading,
.report-toolbar,
.report-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.signal-header h2 {
    font-size: 1.55rem;
    margin: 7px 0 0;
}

.live-badge,
.analysis-badge {
    align-items: center;
    background: rgba(85, 217, 139, 0.075);
    border: 1px solid rgba(85, 217, 139, 0.2);
    border-radius: var(--radius-pill);
    color: #9ce8bc;
    display: flex;
    font-size: 0.68rem;
    font-weight: 800;
    gap: 7px;
    padding: 8px 10px;
    text-transform: uppercase;
}

.signal-line {
    background:
        linear-gradient(
            90deg,
            var(--red-bright),
            rgba(220, 23, 56, 0.08)
        );
    height: 1px;
    margin: 24px 0 13px;
}

.intelligence-list {
    display: flex;
    flex-direction: column;
}

.intelligence-row {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    display: grid;
    gap: 13px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 17px 0;
}

.intelligence-row:last-child {
    border-bottom: 0;
}

.row-number {
    align-items: center;
    background: rgba(220, 23, 56, 0.09);
    border: 1px solid rgba(220, 23, 56, 0.18);
    border-radius: 9px;
    color: #ff7189;
    display: flex;
    font-size: 0.66rem;
    font-weight: 850;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.intelligence-row div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.intelligence-row strong {
    font-size: 0.86rem;
}

.intelligence-row div span {
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.35;
}

.row-status {
    color: var(--muted-dark);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.signal-footer {
    align-items: center;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 11px;
    color: var(--muted);
    display: flex;
    font-size: 0.69rem;
    gap: 9px;
    margin-top: 18px;
    padding: 11px 12px;
}

.signal-pulse {
    background: var(--red-bright);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(255, 49, 84, 0.48);
    height: 7px;
    width: 7px;
    animation: pulse 2.1s infinite;
}

.capability-section {
    padding: 104px 0 10px;
}

.section-heading {
    align-items: end;
    display: grid;
    gap: 60px;
    grid-template-columns: 1fr minmax(280px, 0.62fr);
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 14px 0 0;
}

.section-heading p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 2px;
}

.capability-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
}

.capability-card {
    min-height: 255px;
    padding: 30px;
    transition:
        border-color 180ms ease,
        transform 180ms ease;
}

.capability-card:hover {
    border-color: rgba(255, 49, 84, 0.24);
    transform: translateY(-4px);
}

.card-index {
    color: #ff647f;
    font-size: 0.69rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.capability-card h3 {
    margin: 42px 0 14px;
}

.capability-card p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.card-accent {
    background:
        linear-gradient(
            90deg,
            var(--red-bright),
            transparent
        );
    bottom: 0;
    height: 2px;
    left: 30px;
    opacity: 0.58;
    position: absolute;
    width: 72px;
}

.report-intro {
    align-items: end;
    display: grid;
    gap: 60px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 42px 0 40px;
}

.report-intro h1 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    margin: 20px 0 22px;
    max-width: 900px;
}

.intro-status {
    align-items: center;
    border-radius: var(--radius-medium);
    display: flex;
    gap: 13px;
    margin-bottom: 8px;
    min-width: 260px;
    padding: 16px 18px;
}

.intro-status-icon {
    background: rgba(220, 23, 56, 0.1);
    border: 1px solid rgba(220, 23, 56, 0.2);
    border-radius: 12px;
    display: grid;
    height: 42px;
    place-items: center;
    width: 42px;
}

.intro-status-icon span {
    background: var(--red-bright);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(255, 49, 84, 0.72);
    height: 8px;
    width: 8px;
}

.intro-status div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.intro-status div span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
}

.intro-status strong {
    font-size: 0.82rem;
}

.report-workspace {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
}

.search-panel,
.context-panel {
    padding: 29px;
}

.panel-heading {
    margin-bottom: 27px;
}

.panel-heading h2,
.context-panel h2 {
    font-size: 1.55rem;
    margin: 7px 0 0;
}

.panel-step {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 8px 11px;
    text-transform: uppercase;
}

.report-form {
    align-items: end;
    display: grid;
    gap: 13px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

label {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.input-shell {
    align-items: center;
    background: rgba(3, 4, 6, 0.62);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    min-height: 54px;
    transition:
        border-color 170ms ease,
        box-shadow 170ms ease,
        background 170ms ease;
}

.input-shell:focus-within {
    background: rgba(7, 8, 11, 0.92);
    border-color: rgba(255, 49, 84, 0.66);
    box-shadow:
        0 0 0 4px rgba(220, 23, 56, 0.12),
        0 0 28px rgba(220, 23, 56, 0.08);
}

.input-prefix {
    border-right: 1px solid var(--border);
    color: #ff667f;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 0 15px;
}

input {
    background: transparent;
    color: var(--text);
    font-size: 0.92rem;
    min-width: 0;
    outline: 0;
    padding: 0 16px;
    width: 100%;
}

input::placeholder {
    color: #5f6571;
}

#generate-button {
    min-width: 188px;
    position: relative;
}

#generate-button:disabled {
    cursor: wait;
    opacity: 0.82;
}

.button-spinner {
    animation: spin 750ms linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    border-top-color: #ffffff;
    display: none;
    height: 16px;
    width: 16px;
}

#generate-button.is-loading .button-arrow {
    display: none;
}

#generate-button.is-loading .button-spinner {
    display: block;
}

.example-row {
    align-items: center;
    color: var(--muted-dark);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.69rem;
    gap: 8px;
    margin-top: 17px;
}

.example-chip,
.copy-button {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    color: var(--muted);
    transition:
        background 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.example-chip {
    border-radius: var(--radius-pill);
    font-size: 0.67rem;
    padding: 7px 10px;
}

.example-chip:hover,
.copy-button:hover {
    background: rgba(220, 23, 56, 0.08);
    border-color: rgba(220, 23, 56, 0.25);
    color: var(--text);
}

.context-panel {
    background:
        linear-gradient(
            155deg,
            rgba(220, 23, 56, 0.07),
            rgba(255, 255, 255, 0.02) 55%
        ),
        var(--surface);
}

.context-list {
    display: flex;
    flex-direction: column;
    margin-top: 23px;
}

.context-item {
    align-items: start;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr;
    padding: 15px 0;
}

.context-item span {
    color: #ff627c;
    font-size: 0.65rem;
    font-weight: 850;
    padding-top: 2px;
}

.context-item p {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 0;
}

.alert {
    align-items: flex-start;
    display: flex;
    gap: 13px;
    margin-top: 20px;
    padding: 18px 20px;
}

.alert-error {
    background:
        linear-gradient(
            135deg,
            rgba(220, 23, 56, 0.12),
            rgba(35, 10, 16, 0.7)
        );
    border-color: rgba(255, 49, 84, 0.32);
}

.alert-icon {
    align-items: center;
    background: rgba(255, 49, 84, 0.14);
    border: 1px solid rgba(255, 49, 84, 0.3);
    border-radius: 9px;
    color: #ff7189;
    display: flex;
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.alert strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 5px;
}

.alert p {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 0;
}

.analysis-section {
    padding-top: 72px;
}

.report-heading {
    margin-bottom: 20px;
}

.report-heading h2 {
    font-size: 2.6rem;
    margin: 12px 0 0;
}

.report-output {
    background:
        linear-gradient(
            180deg,
            rgba(18, 20, 26, 0.92),
            rgba(5, 6, 9, 0.92)
        );
}

.report-toolbar {
    background: rgba(255, 255, 255, 0.022);
    border-bottom: 1px solid var(--border);
    min-height: 54px;
    padding: 0 17px;
}

.toolbar-title {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 0.69rem;
    font-weight: 750;
    gap: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.toolbar-lights {
    display: flex;
    gap: 5px;
}

.toolbar-lights i {
    background: #50545e;
    border-radius: 50%;
    display: block;
    height: 7px;
    width: 7px;
}

.toolbar-lights i:first-child {
    background: var(--red-bright);
    box-shadow: 0 0 9px rgba(255, 49, 84, 0.5);
}

.copy-button {
    border-radius: 9px;
    font-size: 0.66rem;
    font-weight: 750;
    padding: 7px 10px;
}

.report-output pre {
    color: #d9dce3;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.78rem;
    line-height: 1.75;
    margin: 0;
    max-height: 72vh;
    overflow: auto;
    padding: 27px;
    scrollbar-color:
        rgba(255, 255, 255, 0.18)
        transparent;
    white-space: pre-wrap;
    word-break: break-word;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 49, 84, 0.46);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(255, 49, 84, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 49, 84, 0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1080px) {
    .hero-shell {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 64px 54px 20px;
    }

    .hero-visual {
        padding: 30px 54px 64px;
    }

    .signal-panel {
        max-width: 650px;
        transform: none;
    }

    .report-workspace {
        grid-template-columns: 1fr;
    }

    .context-panel {
        display: none;
    }
}

@media (max-width: 820px) {
    .system-status {
        display: none;
    }

    .topbar-actions {
        gap: 10px;
    }

    .section-heading {
        align-items: start;
        gap: 20px;
        grid-template-columns: 1fr;
    }

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

    .capability-card {
        min-height: 210px;
    }

    .report-intro {
        align-items: start;
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .intro-status {
        margin: 0;
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        min-height: 70px;
        padding: 0 18px;
    }

    .brand-subtitle {
        display: none;
    }

    .brand-name {
        font-size: 0.88rem;
    }

    .brand-mark {
        border-radius: 10px;
        height: 36px;
        width: 36px;
    }

    .navigation {
        gap: 1px;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 9px 10px;
    }

    .page {
        padding: 28px 18px 64px;
    }

    .hero-shell {
        border-radius: 22px;
        min-height: 0;
    }

    .hero-content {
        padding: 42px 24px 20px;
    }

    .hero-content h1,
    .report-intro h1 {
        font-size: clamp(2.55rem, 13vw, 4rem);
    }

    .hero-copy {
        font-size: 0.92rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-link,
    .secondary-link {
        width: 100%;
    }

    .hero-proof {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-top: 38px;
    }

    .proof-divider {
        height: 1px;
        width: 100%;
    }

    .hero-visual {
        padding: 25px 18px 38px;
    }

    .signal-panel {
        padding: 20px;
    }

    .signal-header {
        align-items: flex-start;
        gap: 15px;
    }

    .row-status {
        display: none;
    }

    .intelligence-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .capability-section {
        padding-top: 74px;
    }

    .report-intro {
        padding-top: 24px;
    }

    .intro-status {
        min-width: 0;
        width: 100%;
    }

    .search-panel,
    .context-panel {
        padding: 22px;
    }

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

    #generate-button {
        width: 100%;
    }

    .panel-heading {
        align-items: flex-start;
        gap: 15px;
    }

    .analysis-section {
        padding-top: 54px;
    }

    .report-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .report-heading h2 {
        font-size: 2rem;
    }

    .report-output pre {
        font-size: 0.72rem;
        max-height: none;
        padding: 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        padding: 24px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* STRUCTURED REPORT COMPONENTS */

.report-form-expanded {
    grid-template-columns:
        minmax(240px, 0.85fr)
        minmax(330px, 1.15fr)
        auto;
}

.optional-label {
    color: var(--muted-dark);
    font-size: 0.6rem;
    margin-left: 6px;
}

.file-input {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.upload-shell {
    align-items: center;
    background: rgba(3, 4, 6, 0.62);
    border: 1px dashed rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 8px 11px;
    text-transform: none;
    transition:
        background 170ms ease,
        border-color 170ms ease,
        box-shadow 170ms ease;
}

.upload-shell:hover {
    background: rgba(220, 23, 56, 0.045);
    border-color: rgba(255, 49, 84, 0.38);
}

.upload-icon {
    align-items: center;
    background: rgba(220, 23, 56, 0.1);
    border: 1px solid rgba(220, 23, 56, 0.2);
    border-radius: 9px;
    color: #ff667f;
    display: flex;
    font-size: 0.9rem;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.upload-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.upload-copy strong {
    color: var(--text-soft);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-copy span {
    color: var(--muted-dark);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0;
}

.upload-action {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.63rem;
    padding: 7px 9px;
}

.part-description,
.section-subtitle {
    color: var(--muted);
    margin-bottom: 0;
}

.part-description {
    font-size: 0.88rem;
    margin-top: 8px;
}

.section-subtitle {
    font-size: 0.7rem;
    margin-top: 7px;
}

.decision-grid {
    display: grid;
    gap: 16px;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1.35fr)
        minmax(190px, 0.55fr);
}

.decision-card {
    min-height: 170px;
    padding: 26px;
}

.decision-card h3 {
    font-size: 1.35rem;
    line-height: 1.35;
    margin: 30px 0 0;
}

.decision-card p {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.65;
    margin: 28px 0 0;
}

.decision-card-primary {
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 49, 84, 0.2),
            transparent 55%
        ),
        linear-gradient(
            145deg,
            rgba(220, 23, 56, 0.12),
            rgba(15, 17, 22, 0.86)
        );
    border-color: rgba(255, 49, 84, 0.24);
}

.confidence-card {
    display: flex;
    flex-direction: column;
}

.confidence-card strong {
    color: #ff7189;
    font-size: 2.3rem;
    letter-spacing: -0.05em;
    margin-top: 27px;
}

.confidence-card > span:last-child {
    color: var(--muted-dark);
    font-size: 0.65rem;
    line-height: 1.4;
    margin-top: 7px;
}

.report-section {
    margin-top: 18px;
    padding: 30px;
}

.report-section-heading {
    align-items: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    padding-bottom: 23px;
}

.report-section-heading h2 {
    font-size: 1.65rem;
    margin: 7px 0 0;
}

.section-count,
.confidence-pill,
.market-health {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 780;
    padding: 8px 11px;
}

.confidence-pill,
.market-health {
    background: rgba(85, 217, 139, 0.075);
    border-color: rgba(85, 217, 139, 0.18);
    color: #9ce8bc;
}

.supplier-list {
    display: flex;
    flex-direction: column;
}

.supplier-result {
    display: grid;
    gap: 16px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 22px 2px;
}

.supplier-result + .supplier-result {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.supplier-rank {
    align-items: center;
    background:
        linear-gradient(
            145deg,
            rgba(220, 23, 56, 0.16),
            rgba(220, 23, 56, 0.05)
        );
    border: 1px solid rgba(255, 49, 84, 0.22);
    border-radius: 12px;
    color: #ff7189;
    display: flex;
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.supplier-content h3 {
    font-size: 1rem;
    letter-spacing: -0.02em;
    margin: 2px 0 8px;
}

.supplier-why {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.65;
    margin: 0;
    max-width: 1000px;
}

.supplier-why strong {
    color: var(--text-soft);
}

.supplier-details {
    margin-top: 12px;
}

.supplier-details summary,
.show-more-results > summary {
    color: #ff6c85;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 780;
    list-style: none;
    width: fit-content;
}

.supplier-details summary::after,
.show-more-results > summary::after {
    content: " +";
}

.supplier-details[open] summary::after,
.show-more-results[open] > summary::after {
    content: " −";
}

.supplier-details summary::-webkit-details-marker,
.show-more-results > summary::-webkit-details-marker {
    display: none;
}

.supplier-detail-content {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    margin-top: 11px;
    padding: 14px 16px;
}

.supplier-detail-content span {
    color: var(--muted-dark);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.supplier-detail-content ul,
.guidance-block ul,
.risk-list {
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 1.6;
    margin: 9px 0 0;
    padding-left: 18px;
}

.supplier-detail-content li + li,
.guidance-block li + li,
.risk-list li + li {
    margin-top: 7px;
}

.show-more-results {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.show-more-results > summary {
    align-items: center;
    background: rgba(220, 23, 56, 0.065);
    border: 1px solid rgba(220, 23, 56, 0.16);
    border-radius: var(--radius-pill);
    display: flex;
    justify-content: center;
    margin: 0 auto;
    min-height: 38px;
    padding: 0 15px;
}

.supplier-list-additional {
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.pricing-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 0.85fr 1.3fr 0.75fr;
    padding-top: 22px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    padding: 20px;
}

.metric-card-featured {
    background:
        linear-gradient(
            145deg,
            rgba(220, 23, 56, 0.12),
            rgba(255, 255, 255, 0.02)
        );
    border-color: rgba(255, 49, 84, 0.2);
}

.metric-card > span {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 760;
    text-transform: uppercase;
}

.metric-card strong {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: clamp(1.25rem, 2.3vw, 1.9rem);
    gap: 8px;
    letter-spacing: -0.04em;
    margin-top: auto;
}

.metric-card small {
    color: var(--muted-dark);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.guidance-block {
    background: rgba(255, 255, 255, 0.022);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 16px;
    margin-top: 13px;
    padding: 20px;
}

.guidance-block h3 {
    font-size: 0.84rem;
    margin-bottom: 0;
}

.market-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, 1fr);
    padding-top: 22px;
}

.market-metric {
    background: rgba(255, 255, 255, 0.024);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    min-height: 105px;
    padding: 17px;
}

.market-metric strong {
    font-size: 1.75rem;
    letter-spacing: -0.05em;
}

.market-metric span {
    color: var(--muted);
    font-size: 0.63rem;
    line-height: 1.4;
    margin-top: auto;
}

.market-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 13px;
}

.market-status-row > span {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: var(--radius-pill);
    color: var(--muted-dark);
    font-size: 0.62rem;
    padding: 8px 11px;
}

.market-status-row strong {
    color: var(--text-soft);
    margin-left: 5px;
}

.ils-list {
    display: flex;
    flex-direction: column;
}

.ils-result {
    align-items: center;
    display: grid;
    gap: 20px;
    grid-template-columns:
        minmax(190px, 0.85fr)
        minmax(390px, 1.3fr)
        auto;
    padding: 20px 2px;
}

.ils-result + .ils-result {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ils-supplier h3 {
    font-size: 0.9rem;
    margin: 0 0 8px;
}

.ils-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.matched-tag,
.stale-tag {
    border-radius: var(--radius-pill);
    font-size: 0.58rem;
    font-weight: 800;
    padding: 5px 7px;
    text-transform: uppercase;
}

.matched-tag {
    background: rgba(85, 217, 139, 0.07);
    border: 1px solid rgba(85, 217, 139, 0.18);
    color: #9ce8bc;
}

.stale-tag {
    background: rgba(255, 177, 64, 0.07);
    border: 1px solid rgba(255, 177, 64, 0.18);
    color: #efbf75;
}

.ils-facts {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, 1fr);
}

.ils-facts > span {
    color: var(--muted-dark);
    display: flex;
    flex-direction: column;
    font-size: 0.56rem;
    gap: 5px;
    text-transform: uppercase;
}

.ils-facts strong {
    color: var(--text-soft);
    font-size: 0.7rem;
    text-transform: none;
}

.ils-contact {
    color: var(--muted);
    font-size: 0.67rem;
    white-space: nowrap;
}

.risk-section {
    background:
        linear-gradient(
            145deg,
            rgba(220, 23, 56, 0.08),
            rgba(16, 17, 22, 0.85)
        );
    border-color: rgba(255, 49, 84, 0.16);
}

.risk-list {
    columns: 2;
    gap: 40px;
    margin-top: 22px;
}

.empty-state {
    color: var(--muted);
    font-size: 0.8rem;
    margin: 28px 0;
}

@media (max-width: 1180px) {
    .report-form-expanded {
        grid-template-columns: 1fr 1fr;
    }

    .report-form-expanded #generate-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .market-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .decision-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .decision-card {
        min-height: 145px;
    }

    .ils-result {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .ils-facts {
        grid-template-columns: repeat(4, 1fr);
    }

    .risk-list {
        columns: 1;
    }
}

@media (max-width: 640px) {
    .report-form-expanded {
        grid-template-columns: 1fr;
    }

    .report-form-expanded #generate-button {
        grid-column: auto;
    }

    .upload-shell {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .upload-action {
        display: none;
    }

    .report-section {
        padding: 22px;
    }

    .report-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .supplier-result {
        gap: 12px;
    }

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

    .ils-facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media print {
    .topbar,
    .footer,
    .report-intro,
    .report-workspace,
    .ambient-light,
    .page-grid {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #111111;
    }

    .page {
        max-width: none;
        padding: 0;
    }

    .glass-panel {
        background: #ffffff;
        border: 1px solid #d5d5d5;
        box-shadow: none;
        color: #111111;
    }

    .supplier-why,
    .decision-card p,
    .guidance-block ul,
    .risk-list {
        color: #333333;
    }

    .show-more-results[open] {
        display: block;
    }
}


/* AUTHENTICATION COMPONENTS */

.login-nav-label {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-menu {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    display: flex;
    gap: 9px;
    padding: 5px 6px 5px 7px;
}

.account-avatar {
    align-items: center;
    background:
        linear-gradient(
            145deg,
            var(--red-bright),
            var(--red-dark)
        );
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(220, 23, 56, 0.25);
    display: flex;
    font-size: 0.64rem;
    font-weight: 900;
    height: 27px;
    justify-content: center;
    text-transform: uppercase;
    width: 27px;
}

.account-name {
    color: var(--text-soft);
    font-size: 0.68rem;
    font-weight: 720;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu form {
    display: flex;
    margin: 0;
}

.logout-button {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 720;
    padding: 7px 9px;
    transition:
        background 160ms ease,
        color 160ms ease;
}

.logout-button:hover {
    background: rgba(220, 23, 56, 0.1);
    color: var(--text);
}

.login-layout {
    align-items: center;
    display: grid;
    gap: clamp(45px, 8vw, 120px);
    grid-template-columns:
        minmax(0, 1fr)
        minmax(390px, 0.72fr);
    min-height: calc(100vh - 240px);
    padding: 38px 4%;
}

.login-message h1 {
    font-size: clamp(3.3rem, 6vw, 5.8rem);
    margin: 22px 0 25px;
    max-width: 760px;
}

.login-proof {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 42px;
    max-width: 760px;
    padding: 5px 20px;
}

.login-proof > div {
    padding: 18px 16px;
}

.login-proof > div + div {
    border-left: 1px solid var(--border);
}

.proof-number {
    color: #ff667f;
    display: block;
    font-size: 0.62rem;
    font-weight: 900;
    margin-bottom: 9px;
}

.login-proof p {
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.45;
    margin: 0;
}

.login-card-wrap {
    position: relative;
}

.login-backlight {
    background: rgba(220, 23, 56, 0.36);
    border-radius: 50%;
    filter: blur(90px);
    height: 78%;
    left: 11%;
    position: absolute;
    top: 11%;
    width: 78%;
}

.login-card {
    background:
        linear-gradient(
            145deg,
            rgba(31, 33, 41, 0.94),
            rgba(10, 11, 15, 0.92)
        );
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow:
        0 45px 100px rgba(0, 0, 0, 0.62),
        0 0 80px rgba(220, 23, 56, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    max-width: 480px;
    padding: 38px;
}

.login-card-heading h2 {
    font-size: 2rem;
    margin: 10px 0 12px;
}

.login-card-heading p {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.login-error {
    align-items: center;
    background: rgba(220, 23, 56, 0.1);
    border: 1px solid rgba(255, 49, 84, 0.24);
    border-radius: 12px;
    color: #ff9aab;
    display: flex;
    font-size: 0.72rem;
    gap: 10px;
    margin-top: 22px;
    padding: 12px 13px;
}

.login-error span {
    align-items: center;
    background: rgba(255, 49, 84, 0.14);
    border-radius: 8px;
    display: flex;
    font-size: 0.65rem;
    font-weight: 900;
    height: 25px;
    justify-content: center;
    width: 25px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
    margin-top: 28px;
}

.password-shell {
    padding-right: 7px;
}

.password-toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 0.62rem;
    font-weight: 750;
    padding: 7px 9px;
}

.password-toggle:hover {
    color: var(--text);
}

.login-submit {
    align-items: center;
    background:
        linear-gradient(
            135deg,
            var(--red-bright),
            var(--red) 58%,
            #a20f29
        );
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow:
        0 15px 34px rgba(220, 23, 56, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    color: #ffffff;
    display: flex;
    font-size: 0.83rem;
    font-weight: 820;
    justify-content: space-between;
    margin-top: 3px;
    min-height: 52px;
    padding: 0 18px;
    transition:
        filter 170ms ease,
        transform 170ms ease;
}

.login-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.login-help {
    border-top: 1px solid var(--border);
    color: var(--muted-dark);
    font-size: 0.64rem;
    line-height: 1.5;
    margin: 26px 0 0;
    padding-top: 20px;
    text-align: center;
}

@media (max-width: 1050px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-message {
        text-align: center;
    }

    .login-message .eyebrow {
        justify-content: center;
    }

    .login-message .hero-copy,
    .login-proof {
        margin-left: auto;
        margin-right: auto;
    }

    .login-card-wrap {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .account-name,
    .system-status {
        display: none;
    }

    .topbar-actions {
        gap: 6px;
    }

    .login-layout {
        gap: 36px;
        padding: 22px 0;
    }

    .login-proof {
        grid-template-columns: 1fr;
    }

    .login-proof > div + div {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .login-card {
        padding: 28px 22px;
    }
}


/* ADMIN USER MANAGEMENT */

.admin-intro {
    padding: 42px 0 38px;
}

.admin-intro h1 {
    font-size: clamp(3rem, 5vw, 4.8rem);
    margin: 20px 0 22px;
    max-width: 780px;
}

.admin-success {
    align-items: center;
    background:
        linear-gradient(
            145deg,
            rgba(85, 217, 139, 0.1),
            rgba(14, 24, 19, 0.78)
        );
    border-color: rgba(85, 217, 139, 0.2);
    display: flex;
    gap: 13px;
    margin-bottom: 18px;
    padding: 17px 19px;
}

.admin-success > span {
    align-items: center;
    background: rgba(85, 217, 139, 0.12);
    border: 1px solid rgba(85, 217, 139, 0.24);
    border-radius: 10px;
    color: #9ce8bc;
    display: flex;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.admin-success strong {
    font-size: 0.78rem;
}

.admin-success p {
    color: var(--muted);
    font-size: 0.68rem;
    margin: 4px 0 0;
}

.admin-grid {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns:
        minmax(340px, 0.72fr)
        minmax(0, 1.28fr);
}

.admin-form-card,
.user-list-card {
    padding: 28px;
}

.admin-user-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
    padding-top: 22px;
}

.admin-checkbox {
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 13px;
    cursor: pointer;
    display: flex;
    gap: 11px;
    padding: 13px;
    text-transform: none;
}

.admin-checkbox input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.checkbox-mark {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    flex: 0 0 auto;
    height: 21px;
    position: relative;
    width: 21px;
}

.admin-checkbox input:checked + .checkbox-mark {
    background: var(--red);
    border-color: var(--red-bright);
}

.admin-checkbox input:checked + .checkbox-mark::after {
    color: #ffffff;
    content: "✓";
    font-size: 0.7rem;
    font-weight: 900;
    left: 5px;
    position: absolute;
    top: 2px;
}

.admin-checkbox > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-checkbox strong {
    color: var(--text-soft);
    font-size: 0.72rem;
}

.admin-checkbox small {
    color: var(--muted-dark);
    font-size: 0.62rem;
    font-weight: 600;
}

.admin-user-list {
    display: flex;
    flex-direction: column;
}

.admin-user-row {
    align-items: center;
    display: grid;
    gap: 13px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 18px 2px;
}

.admin-user-row + .admin-user-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-user-avatar {
    align-items: center;
    background:
        linear-gradient(
            145deg,
            rgba(255, 49, 84, 0.92),
            rgba(127, 11, 32, 0.9)
        );
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(220, 23, 56, 0.18);
    display: flex;
    font-size: 0.76rem;
    font-weight: 900;
    height: 40px;
    justify-content: center;
    text-transform: uppercase;
    width: 40px;
}

.admin-user-identity {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.admin-user-identity strong {
    font-size: 0.8rem;
}

.admin-user-identity span {
    color: var(--muted);
    font-size: 0.67rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.admin-badge,
.active-badge,
.inactive-badge {
    border-radius: var(--radius-pill);
    font-size: 0.56rem;
    font-weight: 800;
    padding: 5px 7px;
    text-transform: uppercase;
}

.admin-badge {
    background: rgba(220, 23, 56, 0.08);
    border: 1px solid rgba(220, 23, 56, 0.2);
    color: #ff7189;
}

.active-badge {
    background: rgba(85, 217, 139, 0.07);
    border: 1px solid rgba(85, 217, 139, 0.18);
    color: #9ce8bc;
}

.inactive-badge {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    color: var(--muted);
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .admin-form-card,
    .user-list-card {
        padding: 22px;
    }

    .admin-user-row {
        align-items: start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-user-badges {
        grid-column: 2;
        justify-content: flex-start;
    }
}


.admin-password-control {
    display: flex;
    justify-content: flex-end;
    margin-top: -7px;
}

/* Account editing */

.admin-back-link,
.admin-edit-link {
    align-items: center;
    color: var(--text);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 750;
    gap: 8px;
    text-decoration: none;
    transition:
        color 180ms ease,
        transform 180ms ease;
}

.admin-back-link:hover,
.admin-edit-link:hover {
    color: var(--red);
    transform: translateX(2px);
}

.admin-edit-link {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    margin-left: 8px;
    padding: 8px 13px;
}

.edit-error {
    margin-bottom: 24px;
}

.account-edit-grid {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 340px;
    padding-bottom: 80px;
}

.account-options {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.password-reset-section {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    margin-top: 8px;
    padding-top: 26px;
}

.password-reset-section h3 {
    font-size: 1.15rem;
    margin: 6px 0 8px;
}

.password-reset-section > p {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
    margin: 0 0 22px;
}

.account-sidebar {
    display: grid;
    gap: 20px;
}

.account-summary,
.danger-card {
    padding: 25px;
}

.account-summary {
    text-align: center;
}

.account-avatar {
    align-items: center;
    display: flex;
    font-size: 1.35rem;
    height: 58px;
    justify-content: center;
    margin: 0 auto 16px;
    width: 58px;
}

.account-summary h2 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.account-summary p {
    color: var(--muted);
    font-size: 0.82rem;
    margin: 0 0 17px;
    overflow-wrap: anywhere;
}

.account-summary .admin-user-badges {
    justify-content: center;
}

.danger-card {
    border-color: rgba(200, 16, 46, 0.35);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.danger-card h2 {
    font-size: 1.2rem;
    margin: 7px 0 9px;
}

.danger-card p {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
    margin: 0 0 18px;
}

.delete-confirmation {
    align-items: flex-start;
    display: flex;
    font-size: 0.77rem;
    gap: 9px;
    line-height: 1.4;
    margin-bottom: 14px;
    text-transform: none;
}

.delete-confirmation input {
    accent-color: var(--red);
    flex: 0 0 auto;
    min-height: auto;
    width: auto;
}

.danger-button {
    background: rgba(200, 16, 46, 0.13);
    border: 1px solid rgba(200, 16, 46, 0.6);
    color: #ff7890;
    width: 100%;
}

.danger-button:hover {
    background: var(--red);
    color: #ffffff;
}

@media (max-width: 900px) {
    .account-edit-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 650px) {
    .account-options,
    .account-sidebar {
        grid-template-columns: 1fr;
    }

    .admin-user-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-edit-link {
        margin-left: 0;
    }
}

/* Internal company ILS availability */

.ils-result-internal {
    border-color: rgba(200, 16, 46, 0.58);
    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.28),
        0 0 30px rgba(200, 16, 46, 0.09),
        inset 3px 0 0 rgba(200, 16, 46, 0.9);
}

.internal-tag {
    align-items: center;
    background:
        linear-gradient(
            135deg,
            rgba(200, 16, 46, 0.22),
            rgba(200, 16, 46, 0.08)
        );
    border: 1px solid rgba(255, 75, 105, 0.48);
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(200, 16, 46, 0.15);
    color: #ff8da0;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    text-transform: uppercase;
}

/* ILS drag-and-drop */

.upload-shell {
    transition:
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.upload-shell.is-dragging {
    background: rgba(200, 16, 46, 0.14);
    border-color: rgba(255, 74, 104, 0.85);
    box-shadow:
        0 0 0 4px rgba(200, 16, 46, 0.12),
        0 0 35px rgba(200, 16, 46, 0.2);
    transform: translateY(-2px);
}

.upload-shell.has-file {
    background: rgba(92, 185, 132, 0.07);
    border-color: rgba(92, 185, 132, 0.42);
}

.upload-shell.has-file .upload-icon,
.upload-shell.has-file #ils-file-name {
    color: #75d79e;
}

.upload-shell.has-error {
    background: rgba(200, 16, 46, 0.1);
    border-color: rgba(255, 74, 104, 0.62);
}

.upload-shell.has-error .upload-icon,
.upload-shell.has-error #ils-file-name {
    color: #ff7890;
}

/* Internal availability call-list notice */

.internal-availability {
    background:
        radial-gradient(
            circle at 0 0,
            rgba(200, 16, 46, 0.16),
            transparent 48%
        ),
        rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(200, 16, 46, 0.42);
    border-radius: 18px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.26),
        0 0 34px rgba(200, 16, 46, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    margin-bottom: 22px;
    overflow: hidden;
    padding: 22px;
}

.internal-availability-heading {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 17px;
}

.internal-availability-heading h3 {
    font-size: 1.08rem;
    margin: 4px 0 0;
}

.internal-availability-icon {
    align-items: center;
    background:
        linear-gradient(
            135deg,
            rgba(200, 16, 46, 0.92),
            rgba(128, 8, 28, 0.88)
        );
    border: 1px solid rgba(255, 140, 160, 0.34);
    border-radius: 12px;
    box-shadow: 0 0 24px rgba(200, 16, 46, 0.3);
    color: #ffffff;
    display: flex;
    font-size: 0.7rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    letter-spacing: 0.08em;
    width: 42px;
}

.internal-availability-list {
    display: grid;
    gap: 10px;
}

.internal-availability-row {
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
    display: flex;
    gap: 13px;
    padding: 13px 14px;
}

.internal-availability-row p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

.internal-availability-row p strong {
    color: var(--text);
}

.internal-availability-guidance {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #ff91a3;
    font-size: 0.78rem;
    font-weight: 700;
    margin: 16px 0 0;
    padding-top: 14px;
}

@media (max-width: 650px) {
    .internal-availability-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Authentic Bereon brand symbol */

.brand-mark {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    flex: 0 0 48px;
    height: 52px;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 48px;
}

.brand-mark::before,
.brand-mark::after {
    display: none;
}

.brand-symbol {
    display: block;
    filter:
        drop-shadow(0 0 10px rgba(235, 31, 59, 0.34));
    height: 72px;
    max-width: none;
    transform: translate(-12px, -6px);
    width: auto;
}
