/* Crystal Combiner · David Alloza F4HTQ */
:root {
    --ink: #172e3f;
    --muted: #586c7b;
    --muted-light: #82919a;
    --border: #dce5eb;
    --light-border: #e8eef2;
    --paper: #ffffff;
    --canvas: #f3f6f8;
    --primary: #0a756e;
    --primary-hover: #075d57;
    --primary-tint: #e8f6f3;
    --dark: #102537;
    --error: #b34c46;
    --round: 13px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Segoe UI", "Inter", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

button, input, select {
    font: inherit;
}

button, select, input[type="checkbox"], input[type="radio"] {
    cursor: pointer;
}

button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
    outline: 3px solid #73c8bd;
    outline-offset: 3px;
}

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

h1, h2, h3 {
    line-height: 1.2;
}

.shell {
    max-width: 1470px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.site-header {
    background: linear-gradient(110deg, #102537 0%, #15364b 72%, #0b4546 100%);
    color: #fff;
    border-bottom: 3px solid #0d8279;
}

.header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 154px;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand-mark {
    width: 86px;
    height: 78px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(130, 225, 213, .35);
    display: grid;
    place-items: center;
    padding: 3px;
    flex: none;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.eyebrow {
    color: #8cd6ca;
    font-size: 10px;
    letter-spacing: .18em;
    font-weight: 800;
}

.brand h1 {
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -.035em;
    margin: 7px 0 6px;
}

.version {
    display: inline-block;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 5px;
    padding: 2px 7px;
    font-weight: 500;
    vertical-align: middle;
    letter-spacing: 0;
}

.brand p {
    color: #c5d6df;
    margin: 0;
    max-width: 560px;
}

.author-block {
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255,255,255,.23);
    padding-left: 25px;
    min-width: 160px;
    gap: 1px;
}

.author-block span:first-child {
    color: #a8bec9;
    font-size: 12px;
}

.author-block strong {
    font-size: 17px;
    white-space: nowrap;
}

.callsign {
    color: #8de1d3;
    letter-spacing: .16em;
    font-weight: 800;
    font-size: 12px;
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(292px, 352px) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding-top: 28px;
    padding-bottom: 34px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.panel {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--round);
    box-shadow: 0 2px 10px rgba(25, 45, 60, .025);
}

.database-panel, .search-panel {
    padding: 20px;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.panel-heading h2 {
    font-size: 16px;
    letter-spacing: -.015em;
    margin: 0;
}

.pill {
    background: #edf1f4;
    color: #556b79;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.pill.ready {
    color: #066d60;
    background: #dff2eb;
}

.pill.error {
    color: #a03e37;
    background: #fce8e6;
}

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

.subtle {
    color: #748694;
}

.small {
    font-size: 11px;
}

#databaseMessage {
    margin-bottom: 12px;
}

.progress-area {
    /* Keep the sidebar still while the automatic search shows/hides progress. */
    height: 32px;
    margin: 10px 0 14px;
}

.progress-area[hidden] {
    display: block !important;
    visibility: hidden;
}

progress {
    display: block;
    width: 100%;
    height: 8px;
    appearance: none;
    overflow: hidden;
    border-radius: 20px;
    background: #e9f0f2;
}

progress::-webkit-progress-bar {
    background: #e9f0f2;
    border-radius: 20px;
}

progress::-webkit-progress-value {
    background: #0c8176;
    border-radius: 20px;
}

progress::-moz-progress-bar {
    background: #0c8176;
    border-radius: 20px;
}

#progressMessage {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats {
    margin: 15px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stats div {
    background: #f6f9fa;
    border: 1px solid #eef2f4;
    border-radius: 7px;
    padding: 9px 10px;
}

.stats dt {
    color: var(--muted);
    font-size: 10px;
}

.stats dd {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.stats div:last-child dd {
    font-size: 12px;
}

.database-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.secondary-button, .quiet-button {
    border-radius: 7px;
    padding: 9px 13px;
    font-weight: 650;
    transition: background-color .15s;
}

.secondary-button {
    background: #fff;
    color: var(--ink);
    border: 1px solid #c9d8df;
}

.secondary-button:hover {
    background: #f3f7f8;
}

.quiet-button {
    background: transparent;
    color: #0e756c;
    border: 1px solid transparent;
}

.quiet-button:hover {
    background: #eff7f5;
}

#fileHint {
    margin: 11px 0 0;
    line-height: 1.5;
}

.section-number {
    font-size: 11px;
    color: #a4b0b8;
    font-weight: 750;
}

.frequency-input {
    display: flex;
    gap: 7px;
    align-items: center;
}

.frequency-input input {
    width: 100%;
    min-width: 0;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -.04em;
    padding: 10px 12px;
    border: 1px solid #bfd0da;
    border-radius: 7px;
    color: var(--dark);
    font-variant-numeric: tabular-nums;
}

.frequency-input select {
    width: 77px;
    flex: none;
    padding: 15px 6px;
    border: 1px solid #c7d5dd;
    border-radius: 7px;
    background: #f8fafb;
    color: var(--ink);
    font-weight: 700;
}

.field-section {
    border: 0;
    padding: 0;
    margin: 18px 0 0;
    min-width: 0;
}

.field-section legend {
    padding: 0;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    color: #426070;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.radio-option {
    display: flex;
    gap: 10px;
    padding: 10px 11px;
    margin: 7px 0;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    cursor: pointer;
}

.radio-option:has(input:checked) {
    background: var(--primary-tint);
    border-color: #acd9d0;
}

.radio-option input {
    margin: 4px 0 0;
    accent-color: var(--primary);
}

.radio-option strong, .radio-option small {
    display: block;
}

.radio-option strong {
    font-size: 12px;
}

.radio-option small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
    margin-top: 3px;
}

.check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 3px;
}

.check-grid label {
    font-size: 12px;
    display: flex;
    gap: 7px;
    align-items: flex-start;
    cursor: pointer;
}

.check-grid .wide {
    grid-column: 1 / -1;
}

input[type="checkbox"] {
    accent-color: var(--primary);
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.settings-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
    min-width: 0;
}

.settings-grid input, .settings-grid select {
    width: 100%;
    min-width: 0;
    background: #fff;
    color: var(--ink);
    border: 1px solid #cbd9df;
    border-radius: 6px;
    padding: 8px 9px;
    font-size: 13px;
}

.settings-grid + .small {
    margin: 10px 0 1px;
}
/* Automatic search replaces the former Find solutions button. */
.auto-search-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 7px;
    border: 1px solid #c8e4de;
    background: #eff8f5;
    color: #146459;
    font-size: 12px;
    line-height: 1.45;
}

.auto-search-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16937e;
    flex: 0 0 8px;
}

.results-panel.is-updating .results-table-wrap {
    opacity: 0.55;
    pointer-events: none;
}

.full-width {
    width: 100%;
    margin-top: 8px;
}

.inline-error {
    margin: 10px 0 0;
    color: var(--error);
    background: #fff1ee;
    padding: 9px;
    border-radius: 5px;
    font-size: 12px;
}

.results-area {
    min-width: 0;
}

.results-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 122px;
    gap: 20px;
    padding: 0 3px 22px;
}

.dark-eyebrow {
    color: #087e71;
}

.results-intro h2 {
    margin: 7px 0 9px;
    font-size: clamp(21px, 2.5vw, 28px);
    letter-spacing: -.035em;
}

.results-intro p {
    color: #667c88;
    max-width: 650px;
    margin: 0;
    font-size: 12px;
}

.signal-decor {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0 13px;
    opacity: .8;
}

.signal-decor span {
    width: 5px;
    border-radius: 5px;
    height: 24px;
    background: #80baad;
}

.signal-decor span:nth-child(2), .signal-decor span:nth-child(4) {
    height: 53px;
}

.signal-decor span:nth-child(3) {
    height: 79px;
    background: #10796d;
}

.results-panel {
    overflow: hidden;
    min-height: 420px;
}

.results-heading {
    padding: 20px 21px 15px;
    margin-bottom: 0;
    align-items: flex-start;
    border-bottom: 1px solid var(--light-border);
}

.results-heading h2 {
    font-size: 17px;
    margin-bottom: 5px;
}

.results-heading p {
    margin: 0;
}

.welcome-state {
    text-align: center;
    padding: 85px 25px 70px;
    max-width: 500px;
    margin: 0 auto;
}

.wave-icon {
    font-size: 72px;
    color: #4da497;
    line-height: 1;
    margin-bottom: 22px;
}

.welcome-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.welcome-state p {
    margin-bottom: 21px;
    color: #6b7d89;
    font-size: 12px;
}

.target-examples {
    margin: 10px 0 14px;
}

.target-examples > span {
    display: block;
    margin-bottom: 6px;
}

.target-examples .example-button {
    padding: 6px 9px;
    font-size: 10px;
}

.example-tags {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 7px;
}

.example-button {
    background: #f3f8f7;
    border: 1px solid #c6e0d9;
    padding: 7px 11px;
    border-radius: 40px;
    color: #0b766a;
    font-size: 11px;
}

.example-button:hover {
    background: #e1f1ed;
}

.results-table-wrap {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.results-table thead {
    background: #f5f8fa;
}

.results-table th {
    font-size: 10px;
    color: #617784;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-align: left;
    white-space: nowrap;
    padding: 13px 12px;
}

.results-table th:first-child, .results-table td:first-child {
    padding-left: 20px;
}

.results-table td {
    border-top: 1px solid #edf1f3;
    padding: 12px;
    vertical-align: middle;
    font-size: 11px;
}

.results-table td:nth-child(2), .results-table td:nth-child(3) {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.result-rank {
    color: #94a5af;
    font-weight: 700;
}

.value-primary {
    display: block;
    color: var(--ink);
    font-size: 12px;
    font-weight: 750;
}

.value-secondary {
    display: block;
    color: #637786;
    font-size: 10px;
    margin-top: 3px;
}

.zero-error {
    color: #087c5f;
}

.method-tag {
    display: inline-block;
    border-radius: 5px;
    padding: 4px 7px;
    background: #edf4f5;
    color: #305763;
    font-size: 10px;
    white-space: nowrap;
    font-weight: 700;
}

.formula {
    max-width: 280px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.reference-button {
    border: 1px solid #bbd4d1;
    background: #fff;
    border-radius: 6px;
    padding: 6px 8px;
    color: #0a7269;
    white-space: nowrap;
    font-size: 11px;
}

.reference-button[aria-expanded="true"] {
    background: #e7f5f2;
}

.reference-details td {
    padding: 0 15px 18px 20px;
    background: #fbfdfd;
}

.part-details {
    padding: 13px;
    border: 1px solid #deebe9;
    border-radius: 7px;
}

.part-details h4 {
    margin: 0 0 10px;
    font-size: 11px;
    color: #4d6874;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    gap: 11px;
}

.part-group {
    border: 1px solid #e8eef1;
    background: #fff;
    border-radius: 6px;
    padding: 11px;
    min-width: 0;
}

.part-group h5 {
    margin: 0 0 7px;
    font-size: 12px;
}

.part-entry {
    padding: 8px 0;
    border-top: 1px solid #edf1f3;
    overflow-wrap: anywhere;
}

.part-entry:first-of-type {
    border-top: 0;
}

.part-entry strong {
    font-size: 11px;
}

.part-entry p {
    margin: 3px 0;
    color: #72848f;
    font-size: 10px;
}

.part-entry a {
    color: #086f67;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-right: 9px;
    font-size: 10px;
    font-weight: 650;
}

.part-entry .review {
    color: #9c681c;
}

.result-notice {
    border-top: 1px solid #e5ebef;
    background: #fff8eb;
    color: #78551f;
    font-size: 11px;
    padding: 13px 20px;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 28px;
    color: #7b8b95;
    padding: 20px 4px;
    font-size: 11px;
}

.site-footer p {
    margin: 0;
    max-width: 480px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .shell {
        padding-left: 20px;
        padding-right: 20px;
    }

    .main-layout {
        grid-template-columns: minmax(270px, 315px) minmax(0, 1fr);
        gap: 17px;
    }

    .database-panel, .search-panel {
        padding: 16px;
    }

    .signal-decor {
        display: none;
    }
}

@media (max-width: 820px) {
    .header-layout {
        min-height: 130px;
    }

    .main-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .results-intro {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .header-layout {
        padding-top: 24px;
        padding-bottom: 24px;
        align-items: flex-start;
    }

    .brand {
        align-items: flex-start;
        gap: 12px;
    }

    .brand-mark {
        width: 58px;
        height: 55px;
        border-radius: 9px;
        padding: 2px;
    }

    .brand p {
        font-size: 11px;
    }

    .author-block {
        display: none;
    }

    .main-layout {
        padding-top: 15px;
    }

    .sidebar {
        display: flex;
    }

    .database-panel, .search-panel {
        padding: 18px;
    }

    .results-intro {
        padding-top: 10px;
    }

    .results-panel {
        min-height: 330px;
    }

    .welcome-state {
        padding: 40px 18px 44px;
    }
}

/* v1.2 - Show the simplest exact direct solution first. */
.exact-match {
    margin: 17px 20px 0;
    border: 1px solid #c2e3dc;
    border-radius: 10px;
    padding: 18px;
    background: #f2faf7;
}

.exact-match.historical-match {
    background: #fffaf0;
    border-color: #e8d8b9;
}

.exact-match-heading {
    margin-bottom: 14px;
}

.exact-match-label {
    display: inline-block;
    color: #13776e;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 800;
    margin-bottom: 8px;
}

.historical-match .exact-match-label {
    color: #98671f;
}

.exact-match-heading h3 {
    margin: 0 0 8px;
    font-size: 19px;
    letter-spacing: -.02em;
}

.exact-match-heading p {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
    max-width: 690px;
}

.exact-match .part-group {
    border-color: #cfe3df;
}

.exact-match.historical-match .part-group {
    border-color: #eadfcd;
}

.alternative-action {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.alternative-button {
    color: #086e65;
    border-color: #9ccfc6;
    background: #fff;
}

.alternative-action .small {
    flex: 1;
    min-width: 180px;
}

.alternatives-heading {
    background: #f5f8fa;
    padding: 14px 20px;
    border-top: 1px solid var(--light-border);
}

.alternatives-heading h3 {
    font-size: 13px;
    margin: 0 0 5px;
}

.alternatives-heading p {
    margin: 0;
    font-size: 11px;
}

@media (max-width: 620px) {
    .exact-match {
        margin: 12px 13px 0;
        padding: 14px;
    }

    .alternative-action {
        padding: 13px;
        align-items: stretch;
        flex-direction: column;
    }

    .alternative-button {
        width: 100%;
    }

    .alternatives-heading {
        padding: 13px;
    }
}

/* v1.4 - Full-precision crystal catalog browser. */
.browse-button {
    flex: 1 0 100%;
    border-color: #9accc5;
    background: #eaf7f3;
    color: #095f57;
}

.browse-button:hover:not(:disabled) {
    background: #d9f0e9;
}

.catalog-browser {
    overflow: hidden;
}

.catalog-browser-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 23px 22px 18px;
    border-bottom: 1px solid var(--light-border);
}

.catalog-browser-heading h2 {
    margin: 8px 0 8px;
    font-size: clamp(20px, 2.2vw, 26px);
    letter-spacing: -.025em;
}

.catalog-browser-heading p {
    max-width: 610px;
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.catalog-browser-heading button {
    flex: none;
}

.catalog-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
    gap: 14px;
    padding: 17px 22px;
    background: #f9fbfc;
}

.catalog-controls label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #486575;
    min-width: 0;
}

.catalog-controls input,
.catalog-controls select {
    width: 100%;
    min-width: 0;
    border: 1px solid #bed1d9;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    padding: 10px 11px;
    min-height: 42px;
}

.catalog-summary {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    padding: 11px 22px;
    border-top: 1px solid var(--light-border);
    border-bottom: 1px solid var(--light-border);
}

.catalog-table-wrap {
    overflow-x: auto;
}

.catalog-table {
    width: 100%;
    min-width: 705px;
    border-collapse: collapse;
    font-size: 12px;
}

.catalog-table th {
    text-align: left;
    padding: 12px 12px;
    background: #f3f7f8;
    color: #516c7a;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .045em;
    white-space: nowrap;
}

.catalog-table th:first-child,
.catalog-table td:first-child {
    padding-left: 22px;
}

.catalog-table td {
    border-top: 1px solid #edf1f3;
    padding: 12px 12px;
    vertical-align: middle;
    font-size: 11px;
}

.catalog-record:nth-of-type(4n + 3) {
    background: #fcfdfd;
}

.catalog-frequency {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.catalog-frequency .value-primary {
    font-size: 13px;
}

.catalog-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.catalog-status.commercial {
    background: #ddf4e9;
    color: #06634e;
}

.catalog-status.historical {
    background: #fff3da;
    color: #8b5d11;
}

.catalog-status.documentary {
    background: #e9eff5;
    color: #456177;
}

.catalog-review {
    display: block;
    color: #966622;
    font-size: 10px;
    margin-top: 4px;
}

.catalog-part-summary {
    max-width: 240px;
    overflow-wrap: anywhere;
}

.catalog-part-summary strong {
    display: block;
    font-weight: 650;
}

.catalog-expanded-row td {
    padding: 0 18px 18px 22px;
    background: #f9fcfc;
}

.catalog-reference-details {
    border: 1px solid #dce9e8;
    background: #fff;
    border-radius: 9px;
    padding: 15px;
    font-size: 12px;
}

.catalog-reference-details h4 {
    font-size: 11px;
    margin: 0 0 7px;
    color: #305868;
}

.catalog-reference-details .catalog-sources-title {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.catalog-reference-entry {
    padding: 10px 0;
    border-top: 1px solid #f0f3f5;
    overflow-wrap: anywhere;
}

.catalog-reference-entry strong {
    font-size: 12px;
}

.catalog-reference-entry p {
    color: var(--muted);
    margin: 4px 0 5px;
    font-size: 11px;
}

.catalog-reference-entry a {
    display: inline-block;
    margin: 4px 12px 0 0;
    color: #0b766e;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
    font-size: 11px;
}

.catalog-empty-row td {
    padding: 26px;
    color: var(--muted);
}

.catalog-footnote {
    padding: 17px 22px 20px;
    border-top: 1px solid var(--light-border);
    margin: 0;
    line-height: 1.65;
    color: #6b7e89;
    font-size: 11px;
}

@media (max-width: 620px) {
    .catalog-browser-heading {
        flex-direction: column;
        padding: 18px 15px;
        gap: 14px;
    }

    .catalog-browser-heading button {
        width: 100%;
    }

    .catalog-controls {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .catalog-summary,
    .catalog-footnote {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.catalog-search-tip {
    padding: 0 22px 12px;
    margin: -4px 0 0;
    color: #697d88;
    background: #f9fbfc;
    font-size: 11px;
}

@media (max-width: 620px) {
    .catalog-search-tip {
        margin: -2px 0 0;
        padding: 0 15px 12px;
    }
}

/* Keep every catalog action visible on narrow screens, without sideways scrolling. */
@media (max-width: 620px) {
    .catalog-table-wrap {
        overflow-x: visible;
    }

    .catalog-table,
    .catalog-table tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .catalog-table thead {
        display: none;
    }

    .catalog-table tr.catalog-record {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 9px 10px;
        align-items: center;
        padding: 14px 15px;
        border-top: 1px solid #edf1f3;
    }

    .catalog-table tr.catalog-record td {
        display: block;
        border: 0;
        padding: 0;
        min-width: 0;
    }

    .catalog-table tr.catalog-record td:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .catalog-table tr.catalog-record td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    .catalog-table tr.catalog-record td:nth-child(3) {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .catalog-table tr.catalog-record td:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
        color: var(--muted);
    }

    .catalog-table tr.catalog-record td:nth-child(5) {
        grid-column: 2;
        grid-row: 3;
        text-align: right;
    }

    .catalog-table tr.catalog-expanded-row {
        display: block;
    }

    .catalog-table tr.catalog-expanded-row td {
        display: block;
        width: 100%;
        padding: 0 12px 14px;
    }

    .catalog-table tr.catalog-empty-row,
    .catalog-table tr.catalog-empty-row td {
        display: block;
    }
}
