/* =========================
   Global design
   ========================= */

:root {
    --ink: #101b18;
    --muted: #64736d;
    --line: rgba(113, 135, 125, 0.26);
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --page: #f4f8f5;
    --accent: #0b6f60;
    --accent-dark: #063d37;
    --accent-soft: rgba(11, 111, 96, 0.1);
    --danger: #9f2f2f;
    --warning-bg: #fff5d6;
    --warning-line: #e7cf83;
    --focus: rgba(11, 111, 96, 0.18);
    --shadow: 0 16px 40px rgba(14, 32, 25, 0.1);
    --shadow-soft: 0 8px 24px rgba(14, 32, 25, 0.07);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 28px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% -10%, rgba(41, 164, 139, 0.16), transparent 34%),
        radial-gradient(circle at 92% 8%, rgba(26, 91, 83, 0.1), transparent 28%),
        linear-gradient(145deg, #f7fbf8 0%, #eef6f1 45%, #f8faf7 100%);
}

main,
.navbar,
.site-footer {
    width: min(1120px, 100%);
    margin-right: auto;
    margin-left: auto;
}

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

h1 {
    margin-bottom: 22px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: 0;
}

h2 {
    font-size: 22px;
    line-height: 1.2;
}

p {
    color: var(--muted);
}

a {
    color: inherit;
}

hr {
    display: none;
}


/* =========================
   Navigation
   ========================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 44px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.logo {
    color: var(--ink);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
}

.nav-shell {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.nav-links a.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 8px 20px rgba(11, 111, 96, 0.26);
}

.account-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.nav-user {
    max-width: 240px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-form {
    max-width: none;
    margin: 0;
}

.nav-logout {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 13px;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 56px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}


/* =========================
   Buttons and actions
   ========================= */

.button,
button,
body > p > a,
body > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary,
button.secondary,
body > p > a,
body > a {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
}

.button:hover,
button:hover,
body > p > a:hover,
body > a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(23, 32, 27, 0.12);
}

.button.danger,
button.danger {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

.subtle-danger {
    min-height: 34px;
    padding: 8px 11px;
    border-color: rgba(159, 47, 47, 0.24);
    background: rgba(159, 47, 47, 0.08);
    color: var(--danger);
}

.page-actions,
.hero-actions,
.form-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}


/* =========================
   Homepage
   ========================= */

.hero {
    max-width: 760px;
    margin-bottom: 44px;
}

.hero h1 {
    margin-bottom: 18px;
    font-size: 54px;
    line-height: 1.05;
}

.hero-subtitle {
    max-width: 690px;
    margin-bottom: 26px;
    font-size: 19px;
}

.page-header {
    max-width: 780px;
    margin-bottom: 22px;
}

.page-header h1 {
    margin-bottom: 8px;
}

.page-header p {
    margin-bottom: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.feature-card,
.reaction-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.feature-card {
    padding: 22px;
}

.feature-card h3 {
    margin-bottom: 8px;
}

.support-card {
    max-width: 820px;
    margin-top: 28px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: var(--shadow-soft);
}

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

.beta-note {
    max-width: 680px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}


/* =========================
   About page
   ========================= */

.about-hero {
    max-width: 760px;
    margin-bottom: 34px;
}

.hero-kicker {
    color: var(--accent-dark);
    font-size: 17px;
    font-weight: 800;
}

.about-hero p {
    max-width: 720px;
    font-size: 18px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 34px;
}

.how-to-use {
    margin-bottom: 28px;
}

.step-list {
    display: grid;
    gap: 14px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.step-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.step-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}

.step-list h3 {
    margin-bottom: 4px;
}

.step-list p {
    margin-bottom: 0;
}

.subtle-card {
    max-width: 820px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--muted);
}


/* =========================
   Forms
   ========================= */

form {
    max-width: 860px;
}

form br {
    display: none;
}

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

input,
textarea,
select {
    width: 100%;
    margin: 0 0 16px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--focus);
    outline: none;
}

.structured-form {
    display: grid;
    gap: 18px;
    max-width: 980px;
}

.form-section,
.filter-panel,
.workbench-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.form-grid {
    display: grid;
    gap: 14px;
}

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

.search-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(180px, 220px) minmax(180px, 220px) auto;
    gap: 12px;
    align-items: end;
    max-width: none;
    margin-bottom: 0;
}

.search-field input,
.search-field select {
    margin: 0;
}

.search-submit button {
    width: 100%;
}

.filter-actions {
    margin-top: 12px;
}

.component-hidden-field {
    display: none;
}

.component-editor {
    max-width: 860px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: none;
}

.component-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.component-editor-header h2 {
    margin: 0;
}

.component-editor-header h3 {
    margin: 0;
    font-size: 18px;
}

.component-editor-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.component-rows {
    display: grid;
    gap: 12px;
}

.component-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(210px, 1.35fr) 140px auto auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.component-field label {
    margin-bottom: 5px;
}

.component-field input {
    margin: 0;
}

.small-button {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 13px;
}

.component-remove {
    color: var(--danger);
}

.component-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid #cbd5cf;
    border-radius: 999px;
    background: #f7faf8;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.status-valid-smiles {
    border-color: #8cbfa5;
    background: #e9f7ef;
    color: #1f6641;
}

.status-missing-smiles {
    border-color: #d7c56d;
    background: #fff7c9;
    color: #665511;
}

.status-invalid-smiles,
.status-no-confident-match {
    border-color: #c88a8a;
    background: #fff0f0;
    color: #7d2020;
}

.status-auto-filled {
    border-color: #8ea6c7;
    background: #edf4ff;
    color: #284d7a;
}

.status-looking-up {
    border-color: #b9c3bd;
    background: #eef2ef;
    color: #3f4b45;
}

.empty-state {
    margin: 22px 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.onboarding-empty {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
    padding: 30px;
}

.onboarding-empty h2 {
    margin-bottom: 8px;
}

.onboarding-empty .page-actions {
    justify-content: center;
}

.loading-card {
    max-width: 760px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid rgba(11, 111, 96, 0.18);
    border-radius: 8px;
    background: rgba(232, 248, 242, 0.92);
    color: var(--accent-dark);
    font-weight: 800;
}

.loading-card[hidden] {
    display: none;
}

.image-ocr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.notes-image-preview {
    display: block;
    width: min(100%, 360px);
    max-height: 260px;
    margin: 12px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

.ai-image-fallback {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.ai-image-fallback[hidden],
.notes-image-preview[hidden] {
    display: none;
}

.photo-upload-panel {
    max-width: 980px;
    margin-top: 14px;
}

.photo-section {
    margin-top: 14px;
}

.photo-section[hidden] {
    display: none;
}

button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}


/* =========================
   Cards / search results
   ========================= */

.reaction-card {
    margin: 18px 0;
    padding: 20px;
}

.reaction-card h2 {
    margin-bottom: 12px;
}

.reaction-card-title {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.reaction-card h2 a {
    color: var(--accent-dark);
    text-decoration: none;
}

.reaction-card h2 a:hover {
    text-decoration: underline;
}

.reaction-card p {
    margin-bottom: 8px;
}

.reaction-card form {
    margin-top: 14px;
}

.card-actions form {
    margin: 0;
}

.card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 12px 0 0;
}

.card-meta div {
    min-width: 0;
}

.card-meta dt {
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.card-meta dd {
    margin: 2px 0 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.outcome-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #cbd5cf;
    border-radius: 999px;
    background: #f7faf8;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.outcome-no-conversion {
    border-color: #b9c3bd;
    background: #eef2ef;
    color: #3f4b45;
}

.outcome-low-conversion {
    border-color: #d7c56d;
    background: #fff7c9;
    color: #665511;
}

.outcome-decomposition {
    border-color: #c88a8a;
    background: #fff0f0;
    color: #7d2020;
}

.outcome-wrong-product {
    border-color: #c5a16d;
    background: #fff1dd;
    color: #70440f;
}

.outcome-inseparable-mixture {
    border-color: #9ca6c9;
    background: #eef1ff;
    color: #303d72;
}

.outcome-purification-failed {
    border-color: #aeb27a;
    background: #f6f8d8;
    color: #545817;
}

.outcome-low-yield {
    border-color: #d3b36d;
    background: #fff4d8;
    color: #634b12;
}

.outcome-safety-issue {
    border-color: #b95454;
    background: #ffe5e5;
    color: #7a1515;
}

.outcome-other {
    border-color: #bfc7c8;
    background: #eef4f4;
    color: #3d4c4e;
}

.visibility-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #9ca6c9;
    border-radius: 999px;
    background: #eef1ff;
    color: #303d72;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.public-badge {
    border-color: #8cbfa5;
    background: #e9f7ef;
    color: #1f6641;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.stat-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    line-height: 1;
}

.auth-card {
    max-width: 640px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.account-card,
.legal-consent-card {
    margin-bottom: 20px;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
}

.checkbox-row input {
    margin-top: 4px;
    flex: 0 0 auto;
}

.checkbox-row label {
    margin: 0;
}

.danger-zone ul {
    color: var(--muted);
}

.turnstile-box {
    margin: 14px 0;
}

.login-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.legal-page {
    max-width: 820px;
}

.legal-section {
    margin: 24px 0;
}

.legal-page ul {
    color: var(--muted);
}

.legal-note,
.form-note {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.inline-note {
    display: block;
    margin-top: 4px;
}

.legal-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.legal-list div {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 12px;
}

.legal-list dt {
    font-weight: 800;
}

.legal-list dd {
    margin: 0;
    color: var(--muted);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    background: var(--surface);
}

.legal-table th,
.legal-table td {
    padding: 10px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    color: var(--ink);
}


/* =========================
   Duplicate review
   ========================= */

.duplicate-card {
    max-width: 760px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.duplicate-card h2 {
    margin-bottom: 16px;
}

.reaction-summary {
    display: grid;
    gap: 12px;
    margin: 0;
}

.reaction-summary div {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.reaction-summary div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.reaction-summary dt {
    color: var(--ink);
    font-weight: 800;
}

.reaction-summary dd {
    margin: 0;
    color: var(--muted);
}

.force-submit-form {
    margin-top: 12px;
}


/* =========================
   Reaction detail
   ========================= */

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 40px;
}

.detail-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.detail-card-wide {
    grid-column: 1 / -1;
}

.detail-card h2 {
    margin-bottom: 16px;
}

.detail-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-list div {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.detail-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-list dt {
    color: var(--ink);
    font-weight: 800;
}

.detail-list dd {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.notes-text {
    margin-bottom: 0;
    white-space: pre-wrap;
}


/* =========================
   Sanity checks
   ========================= */

.sanity-card {
    max-width: 760px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid var(--warning-line);
    border-radius: 8px;
    background: var(--warning-bg);
    box-shadow: 0 10px 28px rgba(23, 32, 27, 0.05);
}

.warning-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
    color: #5d4c15;
}

.warning-list li {
    padding-left: 4px;
}


/* =========================
   Reaction scheme layout
   ========================= */

.reaction-scheme {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 55px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px 18px;
    margin: 24px 0;
}

.scheme-title {
    font-size: 18px;
    font-weight: 800;
}

.molecule-box {
    min-height: 190px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
}

.single-molecule,
.molecule-img {
    object-fit: contain;
    display: block;
}

.molecule-component {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    min-width: 145px;
    max-width: 240px;
}

.reactants-box .single-molecule,
.reactant-img {
    width: 145px;
    height: 125px;
}

.product-box .single-molecule,
.product-img {
    width: 240px;
    height: 140px;
}

.component-name {
    max-width: 220px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.molecule-placeholder {
    display: grid;
    place-items: center;
    gap: 8px;
    width: 170px;
    min-height: 132px;
    padding: 14px;
    border: 1px dashed #a9b4ad;
    border-radius: 8px;
    background: #f8faf8;
    color: var(--muted);
    text-align: center;
}

.molecule-placeholder strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.25;
}

.molecule-placeholder span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.plus-sign {
    flex: 0 0 auto;
    font-size: 28px;
    font-weight: 800;
}

.reaction-arrow {
    align-self: center;
    font-size: 42px;
    font-weight: 800;
    text-align: center;
}


/* =========================
   Notices
   ========================= */

.notice,
.warning,
.error {
    padding: 12px 14px;
    border-radius: 8px;
    margin: 16px 0;
}

.notice,
.warning {
    border: 1px solid var(--warning-line);
    background: var(--warning-bg);
    color: #5d4c15;
}

.error {
    border: 1px solid #e4aaaa;
    background: #fff0f0;
    color: #7d2020;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 720px) {
    body {
        padding: 20px;
    }

    .navbar {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 34px;
    }

    .nav-shell {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-links,
    .account-area {
        justify-content: flex-start;
    }

    .hero h1 {
        font-size: 38px;
    }

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

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

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

    .two-column,
    .card-meta {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .component-editor-header {
        flex-direction: column;
    }

    .component-editor-actions {
        justify-content: flex-start;
    }

    .component-row {
        grid-template-columns: 1fr;
    }

    .component-status {
        justify-content: flex-start;
        border-radius: 8px;
        white-space: normal;
    }

    .reaction-summary div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

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

    .detail-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .reaction-scheme {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .reaction-scheme > div:nth-child(1) {
        order: 1;
    }

    .reaction-scheme > div:nth-child(2) {
        display: none;
    }

    .reaction-scheme > div:nth-child(3) {
        order: 4;
    }

    .reaction-scheme > div:nth-child(4) {
        order: 2;
    }

    .reaction-scheme > div:nth-child(5) {
        order: 3;
    }

    .reaction-scheme > div:nth-child(6) {
        order: 5;
    }

    .reaction-arrow {
        transform: rotate(90deg);
    }

    .molecule-box {
        justify-content: flex-start;
    }
}
