:root {
    --bg: #050606;
    --bg-2: #0a0c0b;
    --surface: rgba(22, 24, 22, 0.78);
    --surface-solid: #141714;
    --surface-soft: rgba(255, 255, 255, 0.06);
    --light: #f4f8ef;
    --ink: #f4f7f2;
    --ink-dark: #101411;
    --muted: #a8b0a7;
    --muted-dark: #5f675f;
    --line: rgba(255, 255, 255, 0.11);
    --line-dark: rgba(17, 24, 39, 0.12);
    --lime: #d8ff65;
    --lime-2: #b9f13d;
    --teal: #25d0b0;
    --cyan: #49b9ff;
    --violet: #8b5cf6;
    --red: #ff5d7d;
    --amber: #ffb45f;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 78% 6%, rgba(216, 255, 101, 0.12), transparent 24%),
        radial-gradient(circle at 20% 38%, rgba(37, 208, 176, 0.10), transparent 22%),
        linear-gradient(180deg, #060706 0%, #030403 52%, #070807 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(216, 255, 101, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 255, 101, 0.045) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.74), transparent 62%);
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.wide-layout {
    width: min(100%, 1320px);
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(300px, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 70px;
    padding: 12px 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 8, 7, 0.82);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(216, 255, 101, 0.26);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--lime);
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.topnav,
.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topnav {
    justify-content: center;
}

.top-actions {
    justify-content: flex-end;
}

.topnav a,
.admin-link {
    min-height: 34px;
    padding: 8px 10px;
    color: var(--muted);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.topnav a:hover,
.admin-link:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.07);
}

.primary-button,
.secondary-button,
.ghost-button,
.quick-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-button,
.quick-upload-button {
    color: #0d1209;
    background: linear-gradient(180deg, var(--lime), var(--lime-2));
    box-shadow: 0 18px 42px rgba(216, 255, 101, 0.18);
}

.secondary-button {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line);
}

.ghost-button {
    color: var(--ink);
    background: transparent;
    border-color: var(--line);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.quick-upload-button:hover {
    transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.button-icon {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    font-weight: 900;
}

.hero-section {
    min-height: 720px;
    padding: 76px 32px 64px;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(180deg, transparent, rgba(5, 6, 6, 0.98));
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 650px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--lime);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(44px, 5vw, 74px);
}

h2 {
    font-size: clamp(30px, 3.2vw, 48px);
}

h3 {
    font-size: 22px;
}

.hero-copy > p:not(.eyebrow),
.section-note,
.lead {
    color: var(--muted);
    max-width: 720px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 36px;
}

.metric-row span {
    min-height: 78px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.metric-row strong {
    display: block;
    color: var(--ink);
    font-size: 28px;
}

.logo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    color: #d7ddd2;
}

.logo-strip span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 900;
    font-size: 12px;
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.5));
}

.floating-card {
    position: absolute;
    display: grid;
    gap: 3px;
    min-width: 190px;
    padding: 14px;
    border: 1px solid rgba(216, 255, 101, 0.22);
    border-radius: var(--radius);
    background: rgba(8, 10, 8, 0.76);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.floating-card strong {
    color: var(--lime);
}

.floating-card span {
    color: var(--muted);
    font-size: 13px;
}

.card-a {
    top: 110px;
    left: 0;
}

.card-b {
    right: 22px;
    bottom: 80px;
}

.dark-band,
.portal-band,
.review-section,
.assistant-section {
    padding: 82px 32px;
    background: linear-gradient(180deg, rgba(5,6,6,0.98), rgba(8,9,8,0.98));
}

.light-band {
    padding: 82px 32px;
    color: var(--ink-dark);
    background:
        radial-gradient(circle at 20% 0%, rgba(216, 255, 101, 0.38), transparent 34%),
        linear-gradient(135deg, #f8ffe9, #f3f8ee);
}

.center-head {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 34px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 22px;
    margin-bottom: 26px;
}

.platform-tabs,
.assistant-roles,
.prompt-chips,
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-tabs {
    justify-content: center;
    margin-bottom: 24px;
}

.platform-tabs a,
.assistant-roles button,
.prompt-chips button,
.filter-tabs button {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.07);
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 800;
}

.assistant-roles button.active,
.filter-tabs button.active {
    color: #0d1209;
    background: var(--lime);
    border-color: transparent;
}

.platform-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, minmax(0, 0.75fr));
    gap: 16px;
}

.platform-card,
.glass-panel,
.content-card,
.tariff-card,
.history-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.platform-card {
    min-height: 250px;
    padding: 24px;
}

.highlight-card {
    background:
        linear-gradient(135deg, rgba(216,255,101,0.15), rgba(255,255,255,0.055)),
        var(--surface);
}

.platform-card p {
    color: var(--muted);
}

.platform-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border-radius: var(--radius);
    background: var(--lime);
    color: #0d1209;
    font-weight: 900;
}

.review-layout,
.assistant-layout,
.split-layout {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(300px, 0.52fr);
    gap: 22px;
    align-items: start;
}

.review-console,
.account-panel,
.chat-panel {
    padding: 24px;
}

.console-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: var(--radius);
    color: #0d1209;
    background: var(--lime);
    font-size: 13px;
    font-weight: 900;
}

.dropzone {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 190px;
    margin: 22px 0;
    padding: 24px;
    border: 1px dashed rgba(216,255,101,0.38);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(216,255,101,0.07), rgba(255,255,255,0.035));
    text-align: center;
}

.dropzone.dragover {
    border-color: var(--lime);
    background: rgba(216, 255, 101, 0.12);
}

.dropzone-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-weight: 900;
}

.dropzone-symbol {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius);
    background: var(--lime);
    color: #0d1209;
    font-size: 24px;
}

.dropzone p,
.status-line {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 14px;
}

label span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    color: var(--ink);
    padding: 11px 12px;
    outline: none;
}

select option {
    color: #111827;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 3px rgba(216, 255, 101, 0.16);
}

.full-field {
    display: block;
    margin-top: 14px;
}

.console-actions,
.profile-actions,
.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.profile-box,
.rail-list {
    padding: 0 0 24px;
}

.rail-list {
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

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

.category-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.category-chip i {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.assistant-copy {
    padding-top: 20px;
}

.assistant-copy p:not(.eyebrow) {
    color: var(--muted);
}

.assistant-roles,
.prompt-chips {
    margin-top: 18px;
}

.prompt-chips button {
    color: var(--muted);
    font-size: 13px;
}

.chat-panel {
    min-height: 530px;
    display: flex;
    flex-direction: column;
}

.chat-log {
    display: grid;
    gap: 12px;
    overflow: auto;
    max-height: 360px;
    padding-right: 4px;
}

.chat-message {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.07);
}

.chat-message.user {
    justify-self: end;
    color: #0d1209;
    background: var(--lime);
    border-color: transparent;
}

.chat-message.bot {
    justify-self: start;
}

.chat-message p {
    margin: 6px 0 0;
}

.chat-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

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

.content-card,
.tariff-card {
    padding: 22px;
}

.content-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.content-card:hover,
.tariff-card:hover {
    transform: translateY(-2px);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
}

.category-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: var(--radius);
    color: #0d1209;
    background: var(--lime);
    font-weight: 900;
}

.content-card p,
.tariff-card li {
    color: var(--muted);
}

.card-footer {
    margin-top: auto;
    color: var(--lime);
    font-weight: 900;
}

.people-strip {
    padding: 0 32px 70px;
    background: #050606;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.role-grid article {
    min-height: 120px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.04));
}

.role-grid strong,
.role-grid span {
    display: block;
}

.role-grid strong {
    margin-bottom: 8px;
    color: var(--lime);
}

.role-grid span {
    color: var(--muted);
    font-size: 14px;
}

.blacklist-table {
    overflow: hidden;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.blacklist-row {
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) minmax(100px, 0.35fr) minmax(160px, 1fr) minmax(110px, 0.35fr);
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-dark);
    color: var(--ink-dark);
}

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

.blacklist-row.header {
    background: #111411;
    color: var(--lime);
    font-weight: 900;
}

.tariff-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
}

.tariff-card.popular {
    border-color: rgba(216, 255, 101, 0.7);
    box-shadow: 0 26px 70px rgba(216, 255, 101, 0.12);
}

.tariff-price {
    margin: 18px 0;
    color: var(--ink);
    font-size: 38px;
    font-weight: 950;
}

.tariff-card ul {
    padding-left: 18px;
}

.tariff-card button {
    margin-top: auto;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.compliance-grid article {
    min-height: 150px;
    padding: 20px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    text-align: left;
}

.compliance-grid strong,
.compliance-grid span {
    display: block;
}

.compliance-grid strong {
    margin-bottom: 12px;
}

.compliance-grid span {
    color: var(--muted-dark);
}

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

.history-item {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 120px 120px 170px;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
}

.score-badge {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #0d1209;
    background: var(--lime);
    font-weight: 950;
}

.empty-state {
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
}

.site-footer {
    padding: 38px 32px;
    border-top: 1px solid var(--line);
    background: #070807;
    color: var(--ink);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-grid span:nth-child(2),
.footer-grid a {
    color: var(--muted);
}

.modal {
    width: min(92vw, 560px);
    border: 0;
    padding: 0;
    background: transparent;
}

.wide-modal {
    width: min(94vw, 980px);
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.74);
}

.modal-panel {
    position: relative;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #111411;
    box-shadow: var(--shadow);
}

.modal-panel label {
    display: block;
    margin-top: 14px;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-size: 22px;
}

.result-panel {
    max-height: 86vh;
    overflow: auto;
}

.result-summary {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
    margin: 12px 0 18px;
}

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

.issue-list li {
    padding: 12px;
    border-left: 4px solid var(--red);
    background: rgba(255, 93, 125, 0.12);
    border-radius: var(--radius);
}

.ok-text {
    color: var(--lime);
}

.error-text {
    color: var(--red);
}

/* Admin */
.admin-body {
    background: #eef2f6;
    color: #111827;
}

.admin-body .topbar,
.admin-topbar {
    grid-template-columns: minmax(220px, 1fr) minmax(120px, 1fr) minmax(180px, 1fr);
    background: rgba(255,255,255,0.96);
}

.admin-body .brand-mark {
    color: white;
    background: #111827;
}

.admin-body .brand small,
.admin-body .topnav a,
.admin-body .admin-link {
    color: #64748b;
}

.admin-body .ghost-button,
.admin-body input,
.admin-body select,
.admin-body textarea {
    color: #111827;
    background: white;
    border-color: #dce3e8;
}

.admin-shell {
    width: min(100%, 1560px);
    margin: 0 auto;
    padding: 28px;
}

.admin-login {
    width: min(100%, 520px);
    margin: 70px auto;
}

.admin-login h1,
.admin-workspace h1 {
    font-size: 34px;
}

.admin-login .primary-button {
    width: 100%;
    margin-top: 16px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.admin-sidebar,
.admin-workspace,
.admin-login .modal-panel {
    background: white;
    color: #111827;
    border: 1px solid #dce3e8;
    border-radius: var(--radius);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.admin-sidebar {
    display: grid;
    gap: 4px;
    padding: 10px;
    position: sticky;
    top: 94px;
}

.admin-sidebar button {
    min-height: 40px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: #111827;
    text-align: left;
    cursor: pointer;
    padding: 10px 12px;
    font-weight: 800;
}

.admin-sidebar button.active,
.admin-sidebar button:hover {
    background: #ecfccb;
}

.admin-workspace {
    min-height: 720px;
    padding: 24px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-stat {
    min-height: 112px;
    padding: 16px;
    border: 1px solid #dce3e8;
    border-radius: var(--radius);
    background: #f8fbfb;
}

.admin-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
}

.admin-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #dce3e8;
    border-radius: var(--radius);
    background: #f8fbfb;
}

.table-wrap {
    overflow: auto;
    border: 1px solid #dce3e8;
    border-radius: var(--radius);
    background: white;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #dce3e8;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: #f3f7f7;
    font-size: 13px;
    text-transform: uppercase;
}

.editor-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid #dce3e8;
    border-radius: var(--radius);
    background: #f8fbfb;
}

.editor-form .span-2,
.editor-form .form-actions {
    grid-column: 1 / -1;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.row-actions button {
    min-height: 32px;
    border: 1px solid #dce3e8;
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    padding: 6px 9px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .topbar,
    .hero-grid,
    .review-layout,
    .assistant-layout,
    .split-layout,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .topnav,
    .top-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .platform-grid,
    .content-grid,
    .tariff-grid,
    .compliance-grid,
    .role-grid,
    .admin-stats,
    .editor-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-visual {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .topbar,
    .hero-section,
    .dark-band,
    .portal-band,
    .review-section,
    .assistant-section,
    .light-band,
    .site-footer,
    .people-strip,
    .admin-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-section {
        padding-top: 38px;
    }

    h1 {
        font-size: 40px;
    }

    .metric-row,
    .form-grid,
    .platform-grid,
    .content-grid,
    .tariff-grid,
    .compliance-grid,
    .role-grid,
    .blacklist-row,
    .history-item,
    .chat-input-row,
    .admin-stats,
    .editor-form,
    .result-summary {
        grid-template-columns: 1fr;
    }

    .section-head,
    .footer-grid,
    .admin-tools {
        align-items: flex-start;
        flex-direction: column;
    }

    .primary-button,
    .secondary-button,
    .ghost-button,
    .quick-upload-button {
        width: 100%;
    }

    .floating-card {
        position: static;
        margin-top: 10px;
    }
}

@media print {
    body > *:not(.modal[open]) {
        display: none !important;
    }

    .modal[open] {
        position: static;
        width: 100%;
    }

    .modal::backdrop,
    .modal-close,
    .modal-actions {
        display: none !important;
    }

    .result-panel {
        max-height: none;
        box-shadow: none;
    }
}
