﻿/* chemrytrds-main.css â€” ChemrytRDS module styles */

.chemrytrds-wrap {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 24px 16px 60px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ---- Header ---- */
.chemrytrds-header {
    border-bottom: 2px solid #e8eaf0;
    margin-bottom: 28px;
    padding-bottom: 16px;
}
.chemrytrds-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a2340;
    margin: 0 0 4px;
}
.chemrytrds-subtitle {
    font-size: 0.92rem;
    color: #5a6480;
    margin: 0;
}

/* ---- Search bar ---- */
.chemrytrds-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.chemrytrds-search-input {
    flex: 1 1 260px;
    padding: 10px 14px;
    border: 1.5px solid #c8cdd8;
    border-radius: 6px;
    font-size: 0.97rem;
    outline: none;
    transition: border-color 0.2s;
}
.chemrytrds-search-input:focus {
    border-color: #3b5bdb;
    box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.15);
}

/* ---- Modern Input Wrapper ---- */
.chemrytrds-input-wrapper {
    position: relative;
    display: flex;
    flex: 1 1 260px;
    align-items: center;
}
.chemrytrds-input-wrapper .chemrytrds-search-input {
    width: 100%;
    padding-right: 70px; /* Space for icons */
}
.chemrytrds-input-icons {
    position: absolute;
    right: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    color: #8a90a8;
}
.chemrytrds-input-icon {
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    transition: color 0.15s, transform 0.1s;
    opacity: 0.7;
}
.chemrytrds-input-icon:hover {
    color: #3b5bdb;
    transform: scale(1.15);
    opacity: 1;
}
.chemrytrds-input-icon.clear-btn {
    display: none; /* Hidden by default, shown via JS */
}
.chemrytrds-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.18s;
}
.chemrytrds-btn-primary {
    background: #3b5bdb;
    color: #fff;
}
.chemrytrds-btn-primary:hover { background: #2f4ab5; }
.chemrytrds-btn-secondary {
    background: #f0f2f8;
    color: #1a2340;
}
.chemrytrds-btn-secondary:hover { background: #e0e4f0; }

.chemrytrds-ra-toolbar__button {
    height: 21px;
    min-height: 21px;
    border: 1px solid #cbd9e4;
    background: #ffffff;
    color: #214a67;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
}

.chemrytrds-ra-toolbar__button:hover {
    background: #eef6fb;
}

/* ---- Status / error messages ---- */
.chemrytrds-msg {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 0.93rem;
}
.chemrytrds-msg-info    { background: #e8f0fe; color: #1a3a8f; border-left: 4px solid #3b5bdb; }
.chemrytrds-msg-error   { background: #fde8e8; color: #8f1a1a; border-left: 4px solid #db3b3b; }
.chemrytrds-msg-success { background: #e8fde8; color: #1a6b1a; border-left: 4px solid #3bdb3b; }
.chemrytrds-msg-warning { background: #fdf5e8; color: #7a4a00; border-left: 4px solid #f0a020; }

/* ---- Prediction cards ---- */
.chemrytrds-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}
.chemrytrds-card {
    background: #fff;
    border: 1.5px solid #e4e8f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(30,40,80,0.05);
}
.chemrytrds-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #3b5bdb;
    margin: 0 0 14px;
}
.chemrytrds-card-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}
.chemrytrds-badge-valid   { background: #d4f5d4; color: #1a6b1a; }
.chemrytrds-badge-invalid { background: #f5d4d4; color: #6b1a1a; }

/* ---- Property table ---- */
.chemrytrds-prop-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.chemrytrds-prop-table tr:nth-child(even) td { background: #f7f8fc; }
.chemrytrds-prop-table td {
    padding: 5px 8px;
    border-bottom: 1px solid #eceef4;
}
.chemrytrds-prop-table td:first-child { color: #5a6480; width: 55%; }
.chemrytrds-prop-table td:last-child  { font-weight: 600; color: #1a2340; }

/* ---- Browse table ---- */
.chemrytrds-table-wrap { overflow-x: auto; }
.chemrytrds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.chemrytrds-table th {
    background: #f0f2f8;
    padding: 9px 12px;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a6480;
    border-bottom: 2px solid #d8dcec;
}
.chemrytrds-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #eceef4;
    vertical-align: middle;
}
.chemrytrds-table tr:hover td { background: #f4f6fc; }
.chemrytrds-table .rxn-link {
    color: #3b5bdb;
    font-weight: 600;
    text-decoration: none;
    font-family: monospace;
}
.chemrytrds-table .rxn-link:hover { text-decoration: underline; }

/* ---- Pagination ---- */
.chemrytrds-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.chemrytrds-page-btn {
    padding: 6px 13px;
    border: 1.5px solid #c8cdd8;
    border-radius: 5px;
    background: #fff;
    color: #1a2340;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s;
}
.chemrytrds-page-btn:hover    { background: #e8eaf8; border-color: #3b5bdb; }
.chemrytrds-page-btn.active   { background: #3b5bdb; color: #fff; border-color: #3b5bdb; }
.chemrytrds-page-btn:disabled { opacity: 0.4; cursor: default; }

/* ---- Loading spinner ---- */
.chemrytrds-spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 3px solid #d0d5e8;
    border-top-color: #3b5bdb;
    border-radius: 50%;
    animation: chemrytrds-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes chemrytrds-spin { to { transform: rotate(360deg); } }

/* ---- Reaction SMILES display ---- */
.chemrytrds-smiles {
    font-family: monospace;
    font-size: 0.8rem;
    background: #f7f8fc;
    padding: 8px 10px;
    border-radius: 5px;
    word-break: break-all;
    color: #2a3560;
    margin-top: 8px;
    max-height: 80px;
    overflow-y: auto;
}

/* ---- No predictions placeholder ---- */
.chemrytrds-no-pred {
    text-align: center;
    padding: 40px 20px;
    color: #8a90a8;
    font-size: 0.95rem;
}
.chemrytrds-no-pred i { font-size: 2.5rem; margin-bottom: 12px; display: block; }

@media (max-width: 600px) {
    .chemrytrds-cards { grid-template-columns: 1fr; }
    .chemrytrds-search-row { flex-direction: column; }
}

/* ============================================================
   Module-level section tab switcher (Forward / Retrosynthesis)
   ============================================================ */
.chemrytrds-section-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e8eaf0;
    padding-bottom: 0;
}
.chemrytrds-section-tab {
    padding: 10px 22px;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    font-size: 0.97rem;
    font-weight: 600;
    color: #5a6480;
    cursor: pointer;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.chemrytrds-section-tab:hover  { color: #3b5bdb; }
.chemrytrds-section-tab.active { color: #3b5bdb; border-bottom-color: #3b5bdb; }

/* ============================================================
   ChemrytRetro styles (retrosynthesis section, namespaced)
   ============================================================ */
.chemrytretro-page {
  min-height: unset;
  background: none;
  color: #183449;
}
.chemrytretro-page *,
.chemrytretro-page *::before,
.chemrytretro-page *::after { box-sizing: border-box; }
.chemrytretro-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}
.chemrytretro-card {
  background: #ffffff;
  border: 1px solid #d9e4ed;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(17,47,72,0.09);
}
.chemrytretro-hero {
  display: flex; justify-content: space-between; gap: 1.2rem;
  padding: 1.4rem 1.6rem; margin-bottom: 1rem;
  background: linear-gradient(135deg,#103751,#1f6783); color:#f5fbff;
}
.chemrytretro-hero__copy { max-width: 720px; }
.chemrytretro-hero__meta,
.chemrytretro-route-card__meta,
.chemrytretro-route-card__warnings,
.chemrytretro-route-detail__metrics { display:flex; flex-wrap:wrap; gap:0.6rem; }
.chemrytretro-kicker,
.chemrytretro-card__kicker { margin:0 0 0.3rem; text-transform:uppercase; letter-spacing:0.18em; font-size:0.76rem; font-weight:700; }
.chemrytretro-kicker { color:#eef7fb; }
.chemrytretro-title,
.chemrytretro-card__title { margin:0; line-height:1.08; }
.chemrytretro-title { font-size:1.52rem; }
.chemrytretro-card__title { font-size:1.16rem; color:#19364d; }
.chemrytretro-subtitle,
.chemrytretro-help,
.chemrytretro-inline-note,
.chemrytretro-muted { color:#5c7487; }
.chemrytretro-subtitle { margin:0.35rem 0 0; color:#f2f9fc; font-size:0.94rem; line-height:1.55; }
.chemrytretro-status { margin:0 0 1rem; padding:0.95rem 1.1rem; border-radius:16px; border:1px solid #d7e5ee; font-weight:600; }
.chemrytretro-status--info    { background:#ebf6fb; color:#1f5875; }
.chemrytretro-status--success { background:#ebf7ef; color:#246647; }
.chemrytretro-status--error   { background:#fff1ee; color:#9d392d; }
.chemrytretro-grid { display:grid; grid-template-columns:minmax(420px,0.95fr) minmax(360px,0.8fr); gap:1.1rem; margin-bottom:1.1rem; }
.chemrytretro-grid--below { display:grid; grid-template-columns:1fr 1fr; gap:1.1rem; margin-bottom:1.1rem; }
.chemrytretro-settings-row { display:grid; grid-template-columns:1fr 1fr; gap:1.1rem; }
.chemrytretro-column { display:flex; flex-direction:column; gap:1.1rem; }
.chemrytretro-card__head,
.chemrytretro-card__body { padding:1.35rem 1.45rem; }
.chemrytretro-card__head { display:flex; align-items:center; justify-content:space-between; gap:1rem; border-bottom:1px solid #e6edf4; }
.chemrytretro-card__head--results { align-items:flex-start; }
/* Full-width Ketcher editor card */
.chemrytretro-ketcher-card { margin-bottom:1.1rem; }
.chemrytretro-ketcher-body { padding:0.6rem 0.6rem 0.5rem !important; }
.chemrytretro-ketcher-frame { display:block; width:100%; height:400px; border:none; border-radius:12px; }
.chemrytretro-form-grid,
.chemrytretro-summary-grid,
.chemrytretro-step-card__grid,
.chemrytretro-compare-grid { display:grid; gap:1rem; }
.chemrytretro-form-grid,
.chemrytretro-summary-grid,
.chemrytretro-step-card__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.chemrytretro-compare-grid { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.chemrytretro-field { display:flex; flex-direction:column; gap:0.42rem; }
.chemrytretro-field--compact { min-width:240px; }
.chemrytretro-label { font-size:0.88rem; font-weight:700; color:#24445d; }
.chemrytretro-input,
.chemrytretro-select,
.chemrytretro-textarea,
.chemrytretro-btn,
.chemrytretro-route-card__toggle,
.chemrytretro-tab { font:inherit; }
.chemrytretro-input,
.chemrytretro-select,
.chemrytretro-textarea { min-height:46px; width:100%; padding:0.78rem 0.95rem; border:1px solid #cfdce7; border-radius:14px; background:#fbfdff; color:#163044; transition:border-color 0.15s ease,box-shadow 0.15s ease,background-color 0.15s ease; }
.chemrytretro-textarea { min-height:110px; resize:vertical; }
.chemrytretro-textarea--mono,
.chemrytretro-summary-value--mono { font-family:"Consolas","Courier New",monospace; word-break:break-all; }
.chemrytretro-input:focus,
.chemrytretro-select:focus,
.chemrytretro-textarea:focus,
.chemrytretro-btn:focus,
.chemrytretro-route-card__toggle:focus,
.chemrytretro-tab:focus { outline:none; border-color:#4a81bb; box-shadow:0 0 0 4px rgba(74,129,187,0.15); }
.chemrytretro-controls-row,
.chemrytretro-actions,
.chemrytretro-tablist,
.chemrytretro-route-card__primary,
.chemrytretro-route-card__stats,
.chemrytretro-step-card__head,
.chemrytretro-step-card__score { display:flex; gap:0.8rem; flex-wrap:wrap; align-items:center; }
.chemrytretro-controls-row { justify-content:space-between; align-items:flex-end; }
.chemrytretro-btn { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0.72rem 1.15rem; border-radius:999px; border:1px solid transparent; cursor:pointer; font-size:0.94rem; font-weight:700; transition:transform 0.15s ease,box-shadow 0.15s ease,border-color 0.15s ease,background-color 0.15s ease,color 0.15s ease; }
.chemrytretro-btn:hover,
.chemrytretro-tab:hover,
.chemrytretro-route-card__toggle:hover { transform:translateY(-1px); }
.chemrytretro-btn--primary { color:#ffffff; background:linear-gradient(135deg,#2563eb,#1d4ed8); border-color:#1d4ed8; box-shadow:0 12px 24px rgba(37,99,235,0.22); }
.chemrytretro-btn--secondary { background:#eff6ff; color:#1d4ed8; border-color:#bfd6ff; }
.chemrytretro-btn--ghost { background:#f7fbff; color:#31506c; border-color:#d5e2ec; }
.chemrytretro-summary-item,
.chemrytretro-compare-card,
.chemrytretro-precursor-group { padding:0.95rem 1rem; border-radius:18px; background:#f8fbfd; border:1px solid #e1ebf3; }
.chemrytretro-summary-item--wide { grid-column:1/-1; }
.chemrytretro-summary-label,
.chemrytretro-step-card__label { display:block; margin-bottom:0.35rem; color:#60798b; font-size:0.78rem; text-transform:uppercase; letter-spacing:0.1em; font-weight:700; }
.chemrytretro-summary-value,
.chemrytretro-step-card__value { color:#173449; font-weight:700; line-height:1.5; }
.chemrytretro-results-card { overflow:hidden; }
.chemrytretro-tab { min-height:40px; padding:0.6rem 0.95rem; border:1px solid #d4e1eb; border-radius:999px; background:#f7fbff; color:#35506c; cursor:pointer; }
.chemrytretro-tab.is-active { background:#dbeafe; color:#1c4f8b; border-color:#b8d1ff; }
.chemrytretro-empty-state,
.chemrytretro-empty-inline { padding:1.35rem; border-radius:20px; background:#f8fbfd; border:1px dashed #c7d8e5; color:#4b677d; }
.chemrytretro-empty-state--loading { background:#eef5fb; }
.chemrytretro-empty-state--error   { background:#fff4f1; }
.chemrytretro-empty-state--warning { background:#fff9ec; }
.is-hidden { display:none !important; }
.chemrytretro-route-card { margin-bottom:1rem; border-radius:22px; border:1px solid #d8e4ed; background:#fbfdff; overflow:hidden; }
.chemrytretro-route-card__toggle { width:100%; display:block; padding:1.1rem 1.15rem; border:0; background:transparent; text-align:left; cursor:pointer; }
.chemrytretro-route-card__stats { justify-content:flex-start; margin-top:0.9rem; color:#456176; font-size:0.93rem; }
.chemrytretro-route-card__warnings { justify-content:flex-start; margin-top:0.9rem; }
.chemrytretro-route-card__detail { padding:0 1.15rem 1.15rem; border-top:1px solid #e6edf4; }
.chemrytretro-route-card__title,
.chemrytretro-step-card__title,
.chemrytretro-compare-card__title,
.chemrytretro-precursor-group__title { margin:0.2rem 0 0; color:#17384f; }
.chemrytretro-route-card__eyebrow,
.chemrytretro-step-card__eyebrow { margin:0; color:#5f7a8f; text-transform:uppercase; letter-spacing:0.14em; font-size:0.72rem; font-weight:700; }
.chemrytretro-chip,
.chemrytretro-badge { display:inline-flex; align-items:center; justify-content:center; min-height:30px; padding:0.32rem 0.72rem; border-radius:999px; font-size:0.8rem; font-weight:700; white-space:nowrap; }
.chemrytretro-chip--soft { background:rgba(255,255,255,0.14); color:#f4fbff; border:1px solid rgba(255,255,255,0.18); }
.chemrytretro-badge--neutral    { background:#eef5fa; color:#42627a; border:1px solid #d2e1eb; }
.chemrytretro-badge--score      { background:#ecf5ff; color:#1d4ed8; }
.chemrytretro-badge--confidence { background:#ebf7ef; color:#246647; }
.chemrytretro-badge--warning    { background:#fff4df; color:#9b6211; }
.chemrytretro-tree { display:flex; flex-direction:column; gap:1rem; margin-top:1rem; }
.chemrytretro-tree__node { display:grid; grid-template-columns:52px minmax(0,1fr); gap:1rem; align-items:flex-start; }
.chemrytretro-tree__marker { display:flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:18px; background:linear-gradient(135deg,#dbeafe,#eef6ff); color:#1b4d86; font-weight:800; box-shadow:inset 0 0 0 1px #bfd6ff; }
.chemrytretro-step-card { padding:1rem 1.05rem; border-radius:22px; border:1px solid #dce7ef; background:#ffffff; box-shadow:0 10px 26px rgba(16,44,66,0.06); }
.chemrytretro-step-card__head,
.chemrytretro-step-card__score { justify-content:space-between; align-items:flex-start; }
.chemrytretro-step-card__block { margin-top:1rem; }
.chemrytretro-list { margin:0; padding-left:1.15rem; color:#29455d; }
.chemrytretro-list li { margin:0.35rem 0; display:grid; gap:0.12rem; }
.chemrytretro-compare-card__list { margin:0.85rem 0 0; display:grid; gap:0.7rem; }
.chemrytretro-compare-card__list div { display:flex; justify-content:space-between; gap:1rem; }
.chemrytretro-compare-card__list dt { color:#60798b; font-weight:600; }
.chemrytretro-compare-card__list dd { margin:0; color:#17384f; font-weight:700; }
.chemrytretro-precursor-groups,
.chemrytretro-feedback-form { display:grid; gap:1rem; }
.chemrytretro-feedback-form { max-width:720px; }
@media (max-width:1040px) {
  .chemrytretro-grid,.chemrytretro-grid--below,.chemrytretro-settings-row,.chemrytretro-hero,.chemrytretro-form-grid,.chemrytretro-summary-grid,.chemrytretro-step-card__grid { grid-template-columns:1fr; }
  .chemrytretro-hero { display:flex; flex-direction:column; }
  .chemrytretro-ketcher-frame { height:340px; }
}
@media (max-width:720px) {
  .chemrytretro-card__head,.chemrytretro-card__body { padding:1rem; }
  .chemrytretro-tab { flex:1 1 calc(50% - 0.55rem); text-align:center; }
  .chemrytretro-tree__node { grid-template-columns:1fr; }
  .chemrytretro-tree__marker { width:44px; height:44px; }
}


/* chemrytrds-reaction-analyzer.css - Reaction Analyzer section */

.chemrytrds-ra {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.chemrytrds-ra-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.35rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #113652, #285b7b 58%, #4d84a2);
    color: #f6fbff;
    box-shadow: 0 18px 40px rgba(18, 46, 68, 0.16);
}

.chemrytrds-ra-hero__copy {
    max-width: 760px;
}

.chemrytrds-ra-kicker {
    margin: 0 0 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(246, 251, 255, 0.88);
}

.chemrytrds-ra-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    font-weight: 700;
    line-height: 1.05;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(8, 25, 39, 0.35);
}

.chemrytrds-ra-subtitle {
    margin: 0.6rem 0 0;
    max-width: 720px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(244, 250, 255, 0.92);
}

.chemrytrds-ra-chipset {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.chemrytrds-ra-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: #f6fbff;
    font-size: 0.8rem;
    font-weight: 700;
}

.chemrytrds-ra-status {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #d7e3eb;
    font-size: 0.92rem;
    font-weight: 600;
}

.chemrytrds-ra-status--info {
    background: #ecf5fb;
    color: #205577;
}

.chemrytrds-ra-status--success {
    background: #edf8f0;
    color: #256648;
}

.chemrytrds-ra-status--warning {
    background: #fff8eb;
    color: #8a5b11;
}

.chemrytrds-ra-status--error {
    background: #fff1ef;
    color: #9a332d;
}

.chemrytrds-ra-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
    gap: 18px;
}

.chemrytrds-ra-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.chemrytrds-ra-card {
    background: #ffffff;
    border: 1px solid #dbe5ed;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(20, 41, 60, 0.08);
    overflow: hidden;
}

.chemrytrds-ra-card__head,
.chemrytrds-ra-card__body {
    padding: 18px 20px;
}

.chemrytrds-ra-card__head {
    border-bottom: 1px solid #e7edf3;
}

.chemrytrds-ra-card__title {
    margin: 0;
    color: #1a3650;
    font-size: 1.08rem;
    font-weight: 700;
}

.chemrytrds-ra-card__subtitle {
    margin: 6px 0 0;
    color: #5d7387;
    font-size: 0.9rem;
    line-height: 1.55;
}

.chemrytrds-ra-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chemrytrds-ra-label {
    font-size: 0.86rem;
    font-weight: 700;
    color: #274660;
}

.chemrytrds-ra-textarea {
    width: 100%;
    min-height: 74px;
    padding: 12px 16px;
    border: 1px solid #c9d6e0;
    border-radius: 14px;
    resize: vertical;
    background: #fbfdff;
    color: #18344b;
    font: 0.92rem "Consolas", "Courier New", monospace;
    line-height: 1.55;
}

.chemrytrds-ra-text-input {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #c9d6e0;
    border-radius: 14px;
    background: #fbfdff;
    color: #18344b;
    font: 0.92rem "Consolas", "Courier New", monospace;
}

.chemrytrds-ra-text-input:focus {
    outline: none;
    border-color: #3b5bdb;
    box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.15);
}

.chemrytrds-ra-load-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-top: 12px;
}

.chemrytrds-ra-load-field {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chemrytrds-ra-load-btn {
    min-width: 158px;
    height: 42px;
}

/* Full-width Ketcher editor card */
.chemrytrds-ra-ketcher-card { margin-bottom: 1.1rem; }
.chemrytrds-ra-ketcher-body { padding: 8px 8px 6px !important; }
.chemrytrds-ra-ketcher-frame {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
    /* Prevent browser auto-dark-mode from inverting Ketcher's light UI */
    color-scheme: light;
}

.chemrytrds-ra-ketcher-card__head {
    flex-wrap: wrap;
    gap: 14px;
}

.chemrytrds-ra-ketcher-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}


.chemrytrds-ra-ketcher-card.is-expanded {
    position: fixed;
    inset: 20px;
    z-index: 1200;
    margin: 0;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(15, 30, 45, 0.28);
}

.chemrytrds-ra-ketcher-card.is-expanded .chemrytrds-ra-ketcher-body {
    height: calc(100% - 88px);
    display: flex;
    flex-direction: column;
}

.chemrytrds-ra-ketcher-card.is-expanded .chemrytrds-ra-ketcher-frame {
    flex: 1 1 auto;
    height: 100%;
    min-height: 520px;
}

body.chemrytrds-ra-ketcher-open {
    overflow: hidden;
}

.chemrytrds-ra-inline-note {
    margin-top: 10px;
    color: #61788b;
    font-size: 0.84rem;
    line-height: 1.55;
}

.chemrytrds-ra-textarea:focus {
    outline: none;
    border-color: #3b5bdb;
    box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.15);
}

/* ---- Modern Input Wrapper (Textarea version) ---- */
.chemrytrds-ra-input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}
.chemrytrds-ra-input-icons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    color: #8a90a8;
    z-index: 5;
}
.chemrytrds-ra-input-icon {
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    transition: color 0.15s, transform 0.1s;
    opacity: 0.7;
}
.chemrytrds-ra-input-icon:hover {
    color: #3b5bdb;
    transform: scale(1.15);
    opacity: 1;
}
.chemrytrds-ra-input-icon.clear-btn {
    display: none; /* Hidden by default */
}

/* ---- Syntax Status ---- */
.chemrytrds-ra-syntax-status {
    font-size: 0.78rem;
    font-weight: 700;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.chemrytrds-ra-syntax-status--valid   { color: #236848; }
.chemrytrds-ra-syntax-status--invalid { color: #9d372f; }

.chemrytrds-ra-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.chemrytrds-ra-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 21px;
    min-height: 21px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.93rem;
    font-weight: 700;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.chemrytrds-ra-btn:hover {
    transform: translateY(-1px);
}

.chemrytrds-ra-btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.chemrytrds-ra-btn--primary {
    background: linear-gradient(135deg, #3b5bdb, #2e4fb7);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(59, 91, 219, 0.18);
}

.chemrytrds-ra-btn--secondary {
    background: #eef4fb;
    color: #23435f;
    border-color: #d3deea;
}

.chemrytrds-ra-btn--ghost {
    background: #ffffff;
    color: #35506c;
    border-color: #d3deea;
}

.chemrytrds-ra-help-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chemrytrds-ra-help-list li {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7fafc;
    border: 1px solid #e1e9f0;
    color: #35506a;
    font-size: 0.89rem;
    line-height: 1.55;
}

.chemrytrds-ra-note {
    margin: 0;
    color: #5c7287;
    font-size: 0.86rem;
    line-height: 1.55;
}

.chemrytrds-ra-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.chemrytrds-ra-summary-item {
    padding: 14px 14px 12px;
    border-radius: 14px;
    background: #f8fbfd;
    border: 1px solid #e2eaf1;
}

.chemrytrds-ra-summary-item--wide {
    grid-column: span 2;
}

.chemrytrds-ra-summary-label {
    display: block;
    margin-bottom: 6px;
    color: #687f91;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.chemrytrds-ra-summary-value {
    color: #18344b;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

.chemrytrds-ra-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.chemrytrds-ra-toolbar__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f8fb;
    border: 1px solid #d6e4ed;
    color: #274a64;
    font-size: 0.83rem;
    font-weight: 700;
}

.chemrytrds-ra-toolbar__toggle input {
    accent-color: #2f6ea0;
}

.chemrytrds-ra-delta-badge,
.chemrytrds-ra-trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.chemrytrds-ra-delta-badge__arrow {
    font-size: 0.92rem;
}

.chemrytrds-ra-delta-badge--up {
    background: #eaf8ee;
    color: #226645;
}

.chemrytrds-ra-delta-badge--down {
    background: #eaf2ff;
    color: #2557a6;
}

.chemrytrds-ra-delta-badge--flat {
    background: #f2f5f8;
    color: #5d7184;
}

.chemrytrds-ra-trend-badge--neutral {
    background: #f2f5f8;
    color: #53697c;
}

.chemrytrds-ra-trend-badge--cool,
.chemrytrds-ra-trend-badge--blue {
    background: #eaf2ff;
    color: #2b5da8;
}

.chemrytrds-ra-trend-badge--warm {
    background: #fff1e8;
    color: #975221;
}

.chemrytrds-ra-trend-badge--green {
    background: #eaf8ee;
    color: #246746;
}

.chemrytrds-ra-trend-badge--violet {
    background: #f1ebff;
    color: #6648a5;
}

.chemrytrds-ra-trend-badge--slate {
    background: #eef2f5;
    color: #536a7e;
}

.chemrytrds-ra-summary-value--small {
    font-size: 0.86rem;
}

.chemrytrds-ra-disclaimer {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff9ee;
    border: 1px solid #f0dfb7;
    color: #7d5917;
    font-size: 0.84rem;
    line-height: 1.55;
}

.chemrytrds-ra-interpretation {
    display: grid;
    gap: 12px;
}

.chemrytrds-ra-interpretation__label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: #3059ab;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.chemrytrds-ra-interpretation__text {
    margin: 0;
    color: #234057;
    font-size: 0.95rem;
    line-height: 1.7;
}

.chemrytrds-ra-sections {
    display: grid;
    gap: 18px;
}

.chemrytrds-ra-role-card {
    background: #ffffff;
    border: 1px solid #dce6ee;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(20, 41, 60, 0.08);
    overflow: hidden;
}

.chemrytrds-ra-role-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #e8eef4;
}

.chemrytrds-ra-role-card__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 21px;
    padding: 10px 20px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.chemrytrds-ra-role-card__toggle:hover {
    background: #f8fbfd;
}

.chemrytrds-ra-role-card__toggle:focus {
    outline: none;
    box-shadow: inset 0 0 0 3px rgba(59, 91, 219, 0.12);
}

.chemrytrds-ra-role-card__title {
    margin: 0;
    font-size: 1.04rem;
    color: #1b3850;
}

.chemrytrds-ra-role-card__meta {
    color: #60788c;
    font-size: 0.86rem;
    font-weight: 600;
}

.chemrytrds-ra-role-card__caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #eef4fb;
    color: #33546e;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 0.18s ease;
}

.chemrytrds-ra-role-card.is-collapsed .chemrytrds-ra-role-card__caret {
    transform: rotate(-90deg);
}

.chemrytrds-ra-role-card__body {
    border-top: 1px solid #e8eef4;
}

.chemrytrds-ra-role-card.is-collapsed .chemrytrds-ra-role-card__body {
    display: none;
}

.chemrytrds-ra-fragment-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 18px;
    padding: 18px 20px 20px;
    align-items: start;
}

.chemrytrds-ra-filter-row {
    grid-column: 1 / -1;
}

.chemrytrds-ra-filter-input {
    width: 100%;
    padding: 11px 13px;
    border-radius: 12px;
    border: 1px solid #d6e3ec;
    background: #fbfdff;
    color: #173a53;
    font-size: 0.88rem;
}

.chemrytrds-ra-filter-input:focus {
    outline: none;
    border-color: #7da8ca;
    box-shadow: 0 0 0 4px rgba(89, 137, 178, 0.14);
}

.chemrytrds-ra-fragment-nav {
    display: grid;
    gap: 10px;
    align-content: start;
}

.chemrytrds-ra-fragment-chip {
    width: 100%;
    text-align: left;
    min-height: 21px;
    border: 1px solid #d8e5ee;
    border-radius: 14px;
    background: #f8fbfd;
    color: #26465f;
    padding: 8px 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.chemrytrds-ra-fragment-chip:hover,
.chemrytrds-ra-fragment-chip:focus-visible {
    border-color: #9fc2dd;
    background: #f1f7fc;
    outline: none;
}

.chemrytrds-ra-fragment-chip.is-active {
    border-color: #6ea7d2;
    background: linear-gradient(180deg, #eef7ff, #e1f0fb);
    box-shadow: 0 10px 24px rgba(56, 107, 143, 0.12);
    transform: translateY(-1px);
}

.chemrytrds-ra-fragment-chip__title {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-weight: 700;
}

.chemrytrds-ra-fragment-chip__meta {
    display: block;
    color: #628097;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chemrytrds-ra-fragment-stage {
    min-width: 0;
}

.chemrytrds-ra-card--summary-sticky {
    position: sticky;
    top: 82px;
    z-index: 3;
}

.chemrytrds-ra-fragment-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dfe8ef;
    border-radius: 16px;
    background: #fbfdff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.chemrytrds-ra-fragment-card--invalid {
    background: #fff6f4;
    border-color: #f0d2cc;
}

/* Role-based color coding */
.ra-fragment--reactants {
    background: #f0f7ff;
    border-color: #d1e3f8;
}
.ra-fragment--agents {
    background: #f8f9fa;
    border-color: #e2e8ee;
}
.ra-fragment--products {
    background: #f0fff4;
    border-color: #d1f8dd;
}

.chemrytrds-ra-fragment-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.chemrytrds-ra-fragment-title {
    margin: 0;
    font-size: 0.98rem;
    color: #19374e;
}

.chemrytrds-ra-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chemrytrds-ra-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.chemrytrds-ra-badge--role {
    background: #ebf4ff;
    color: #21559d;
}

.chemrytrds-ra-badge--valid {
    background: #e9f8ee;
    color: #236848;
}

.chemrytrds-ra-badge--invalid {
    background: #fff0ee;
    color: #9d372f;
}

.chemrytrds-ra-badge--type {
    background: #f0f5f9;
    color: #476377;
}

.chemrytrds-ra-structure {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbfd, #edf3f7);
    border: 1px solid #d9e5ec;
    overflow: hidden;
}

.chemrytrds-ra-structure svg {
    max-width: 100%;
    height: auto;
}

.chemrytrds-ra-placeholder {
    color: #74889a;
    font-size: 0.88rem;
    text-align: center;
    line-height: 1.55;
}

.chemrytrds-ra-smiles-block {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.chemrytrds-ra-smiles-panel {
    border: 1px solid #dce7ee;
    border-radius: 14px;
    background: #fcfeff;
    padding: 10px 12px 12px;
}

.chemrytrds-ra-smiles-toggle {
    cursor: pointer;
    list-style: none;
    color: #28506d;
    font-size: 0.84rem;
    font-weight: 700;
}

.chemrytrds-ra-smiles-toggle::-webkit-details-marker {
    display: none;
}

.chemrytrds-ra-smiles-toggle::before {
    content: '+';
    display: inline-block;
    margin-right: 8px;
    color: #3b6b8f;
    font-weight: 700;
}

.chemrytrds-ra-smiles-panel[open] .chemrytrds-ra-smiles-toggle::before {
    content: '-';
}

.chemrytrds-ra-smiles-row {
    display: grid;
    gap: 6px;
}

.chemrytrds-ra-smiles-label {
    color: #61788b;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chemrytrds-ra-smiles-value {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7fafc;
    border: 1px solid #e1e9ef;
    color: #17344b;
    font: 0.82rem "Roboto Mono", "Consolas", "Courier New", monospace;
    line-height: 1.6;
    word-break: break-all;
}

.chemrytrds-ra-pharma-summary {
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef7ff, #f6fbff);
    border: 1px solid #d8e8f7;
}

.chemrytrds-ra-pharma-summary__title {
    margin: 0 0 8px;
    color: #214865;
    font-size: 0.9rem;
    font-weight: 700;
}

.chemrytrds-ra-pharma-summary__text {
    margin: 0;
    color: #35556d;
    font-size: 0.88rem;
    line-height: 1.6;
}

.chemrytrds-ra-groups {
    display: grid;
    gap: 10px;
}

.chemrytrds-ra-group {
    border: 1px solid #dfe8ef;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.chemrytrds-ra-group summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    font-size: 0.87rem;
    font-weight: 700;
    color: #1f425d;
    background: #f8fbfd;
}

.chemrytrds-ra-group summary::-webkit-details-marker {
    display: none;
}

.chemrytrds-ra-group[open] summary {
    border-bottom: 1px solid #e6edf3;
}

.chemrytrds-ra-group__body {
    padding: 10px 14px 14px;
}

.chemrytrds-ra-prop-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.chemrytrds-ra-prop-table th,
.chemrytrds-ra-prop-table td {
    padding: 8px 8px;
    border-bottom: 1px solid #edf2f6;
    vertical-align: top;
}

.chemrytrds-ra-prop-table th {
    color: #647b8f;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
}

.chemrytrds-ra-prop-table td:first-child {
    color: #26445e;
    font-weight: 600;
    width: 48%;
}

.chemrytrds-ra-prop-table td:nth-child(2) {
    color: #17344b;
    font-weight: 700;
    width: 34%;
}

.chemrytrds-ra-prop-table td:last-child {
    width: 18%;
}

.chemrytrds-ra-prop-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.chemrytrds-ra-prop-tag--actual {
    background: #ecf6ff;
    color: #2556a1;
}

.chemrytrds-ra-prop-tag--proxy {
    background: #fff7e8;
    color: #8c5f14;
}

.chemrytrds-ra-prop-tag--text {
    background: #f0f5f9;
    color: #496276;
}

.chemrytrds-ra-prop-tag--na {
    background: #f5f6f9;
    color: #7a8694;
}

.chemrytrds-ra-empty {
    padding: 24px 20px;
    border: 1px dashed #ccd9e3;
    border-radius: 14px;
    color: #647c8f;
    background: #f8fbfd;
    font-size: 0.92rem;
    line-height: 1.6;
}

.chemrytrds-ra-empty--compact {
    padding: 14px 16px;
    font-size: 0.84rem;
}

.chemrytrds-ra-getting-started {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 18px;
    align-items: start;
}

.chemrytrds-ra-getting-started__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: linear-gradient(135deg, #e9f4ff, #dcecff);
    color: #285c90;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.chemrytrds-ra-getting-started__title {
    margin: 0 0 8px;
    color: #18364e;
    font-size: 1.05rem;
}

.chemrytrds-ra-getting-started__text {
    margin: 0 0 10px;
    color: #48657b;
    line-height: 1.7;
}

.chemrytrds-ra-getting-started__list {
    margin: 0;
    padding-left: 18px;
    color: #496678;
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .chemrytrds-ra-ketcher-frame { height: 320px; }
    .chemrytrds-ra-grid,
    .chemrytrds-ra-summary-grid {
        grid-template-columns: 1fr;
    }

    .chemrytrds-ra-summary-item--wide {
        grid-column: auto;
    }

    .chemrytrds-ra-card--summary-sticky {
        position: static;
    }

    .chemrytrds-ra-ketcher-card.is-expanded {
        inset: 10px;
    }
}

@media (max-width: 860px) {
    .chemrytrds-ra-hero {
        flex-direction: column;
    }

    .chemrytrds-ra-fragment-layout {
        grid-template-columns: 1fr;
    }

    .chemrytrds-ra-fragment-nav {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }

    .chemrytrds-ra-getting-started {
        grid-template-columns: 1fr;
    }

    .chemrytrds-ra-ketcher-card__head {
        flex-direction: column;
        align-items: stretch;
    }

    .chemrytrds-ra-ketcher-actions {
        justify-content: stretch;
    }

    .chemrytrds-ra-ketcher-actions .chemrytrds-ra-btn {
        flex: 1 1 calc(50% - 4px);
    }

    .chemrytrds-ra-ketcher-actions .chemrytrds-ra-btn--primary {
        flex: 1 1 100%;
    }
}

/* Force light mode — dark mode is not supported */
.chemrytrds-wrap,
.chemrytrds-ra-card,
.chemrytrds-ra-role-card,
.chemrytrds-ra-fragment-card,
.chemrytrds-ra-group,
.chemrytrds-ra-smiles-panel,
.chemrytrds-ra-ketcher-card {
    color-scheme: light;
}

/* ============================================================
   Sticky action bar
   ============================================================ */
.chemrytrds-ra-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 20px;
    background: #ffffff;
    border-bottom: 2px solid #dbe5ed;
    box-shadow: 0 4px 16px rgba(20, 41, 60, 0.10);
    /* Hidden by default — JS adds .is-visible */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 0.22s ease, transform 0.22s ease;
    color-scheme: light;
}

.chemrytrds-ra-sticky-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chemrytrds-ra-sticky-bar__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #3b5bdb;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.chemrytrds-ra-sticky-bar__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .chemrytrds-ra-sticky-bar__label { display: none; }
    .chemrytrds-ra-sticky-bar { padding: 8px 12px; }
}

/* ============================================================
   Minimize / Restore Ketcher editor
   ============================================================ */
.chemrytrds-ra-ketcher-card.is-minimized .chemrytrds-ra-ketcher-body {
    display: none;
}

.chemrytrds-ra-ketcher-card.is-minimized {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

/* ============================================================
   Prop table — stronger zebra striping
   ============================================================ */
.chemrytrds-ra-prop-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.chemrytrds-ra-prop-table tbody tr:nth-child(even) td {
    background: #eaf2f8;
}

.chemrytrds-ra-prop-table tbody tr:hover td {
    background: #dcedf8;
}

/* ---- Module navbar always stays in light mode ---- */
.chemryt-module-navbar {
    background: #ffffff !important;
    border-top-color: #dbe3f0 !important;
    border-bottom-color: #dbe3f0 !important;
    color-scheme: light;
}
.chemryt-module-navbar__link {
    background: #f3f7fb !important;
    color: #35507b !important;
}
.chemryt-module-navbar__link:hover,
.chemryt-module-navbar__link.is-active {
    background: #dbeafe !important;
    color: #1d4e89 !important;
}
