:root {
    --primary: #5140d9;
    --primary-dark: #3f2dc4;
    --secondary: #1687f2;
    --surface: #ffffff;
    --bg: #f6f8ff;
    --border: #e2e7f3;
    --field-bg: #f7f9fe;
    --field-bg-hover: #f3f6fd;
    --field-bg-focus: #ffffff;
    --text-main: #16213f;
    --text-muted: #64708a;
}

body {
    background: var(--bg);
}

.app-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(81, 64, 217, 0.10), transparent 34rem),
        linear-gradient(180deg, #f8faff 0%, #f4f7fb 100%);
    font-family: Inter, Roboto, "Segoe UI", sans-serif;
    color: var(--text-main);
}

.topbar {
    height: 64px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    background: linear-gradient(135deg, #5543d8 0%, #3f2dc4 100%);
    box-shadow: 0 4px 16px rgba(63, 45, 196, 0.18);
}

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

.topbar-left {
    gap: 2px;
    min-width: 0;
}

.topbar-left .mud-icon-button {
    width: 40px;
    height: 40px;
}

.topbar-actions {
    gap: 8px;
}

.brand-logo {
    display: block;
    width: clamp(132px, 16vw, 176px);
    max-height: 42px;
    object-fit: contain;
    object-position: left center;
}

.decimal-btn {
    background: rgba(255, 255, 255, 0.12) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    font-weight: 700;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    min-height: 34px;
    padding-inline: 12px;
}

.decimal-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.main-container {
    padding: 18px 24px 30px;
}

.section-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(26, 39, 72, 0.055);
    margin-bottom: 12px;
}

.calculator-card {
    padding: 14px 18px;
}

.section-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 500;
}

.calculator-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    align-items: center;
}

.calc-option {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.calc-option .mud-typography {
    flex: 0 1 auto;
    min-width: 0;
}

.info-icon {
    flex: 0 0 auto;
    padding: 2px;
}

.patient-card {
    padding: 12px;
}

.chevron-button,
.action-button:not(.reset-button) {
    box-shadow: 0 8px 16px rgba(81, 64, 217, 0.22) !important;
}

.action-button:not(.reset-button):hover {
    background: var(--primary-dark) !important;
    box-shadow: 0 10px 18px rgba(81, 64, 217, 0.24) !important;
}

.chevron-button:hover {
    background: rgba(81, 64, 217, 0.08) !important;
    border-color: #c7d0eb;
    color: var(--primary) !important;
    box-shadow: 0 4px 10px rgba(26, 39, 72, 0.08) !important;
}

.biomapi-card {
    padding: 14px 18px;
    overflow: hidden;
}

.biomapi-card.collapsed {
    padding-block: 12px;
}

.biomapi-card-header {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.biomapi-card-header .section-label {
    margin-bottom: 0;
}

.biomapi-card-header:hover .section-label {
    color: var(--primary);
}

.biomapi-tabs {
    min-width: 0;
    margin-top: 12px;
}

.biomapi-tab-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    min-height: 34px;
    padding: 3px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f4f7fc;
}

.biomapi-tab-button {
    min-width: 0;
    min-height: 26px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 2px 10px;
    transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.biomapi-tab-button.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(26, 39, 72, 0.08);
}

.biomapi-tab-button:not(.active):hover {
    background: rgba(255, 255, 255, 0.58);
    color: var(--text-main);
}

.biomapi-panel {
    padding: 0;
}

.upload-panel {
    display: block;
}

.upload-dropzone {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field-bg);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    text-align: left;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.upload-dropzone:hover {
    background: var(--field-bg-hover);
    border-color: #c7d3e7;
    box-shadow: inset 0 0 0 1px rgba(81, 64, 217, 0.08);
}

.upload-title {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.biomapi-load-button {
    height: 36px;
    min-width: 88px;
    border-radius: 8px;
    background: #f5f7fb !important;
    border-color: #cfd7e6 !important;
    color: #41506b !important;
    box-shadow: none !important;
}

.biomapi-load-button:hover {
    background: #edf1f7 !important;
    border-color: #bbc7da !important;
    box-shadow: none !important;
}

.biompin-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.biompin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.biomapi-result-link {
    font-weight: 800;
}

.history-panel {
    display: grid;
    gap: 8px;
}

.history-search .mud-input,
.history-search input {
    font-size: 0.88rem;
}

.history-strip {
    position: relative;
    min-width: 0;
}

.history-strip::before,
.history-strip::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 64px;
    pointer-events: none;
}

.history-strip::before {
    left: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.94) 68%, #ffffff);
}

.history-strip::after {
    right: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.94) 68%, #ffffff);
}

.history-scroll-button {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid #d7deea;
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(26, 39, 72, 0.08);
}

.history-scroll-button.left {
    left: 10px;
}

.history-scroll-button.right {
    right: 10px;
}

.history-scroll-button.hidden {
    opacity: 0;
    pointer-events: none;
}

.history-scroll-button:hover {
    background: white;
    border-color: #c5d0e4;
    box-shadow: 0 6px 14px rgba(26, 39, 72, 0.12);
}

.history-list {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 46px 7px 1px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.history-item {
    flex: 0 0 220px;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-main);
    display: grid;
    gap: 3px;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.history-item:hover {
    border-color: #b8c9f4;
    box-shadow: 0 8px 16px rgba(26, 39, 72, 0.08);
    transform: translateY(-1px);
}

.history-muted {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.15;
}

.history-pin {
    color: var(--primary);
    font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
    font-weight: 800;
    white-space: nowrap;
    font-size: 0.82rem;
    line-height: 1.25;
}

.biomapi-alert,
.biomapi-warning {
    margin-top: 8px;
}

.biomapi-result-row {
    margin-top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.biomapi-result {
    padding: 8px 10px;
    border-radius: 8px;
    background: #effaf4;
    color: #047243;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.biomapi-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: #0b6b43;
    font-size: 0.82rem;
}

.biomapi-result-link {
    align-self: center;
    justify-self: end;
    white-space: nowrap;
    margin: 0;
}

.biomapi-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #edd38c;
    background: #fff9e8;
    color: #7b4a00;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
}

.patient-strip {
    border-radius: 12px;
    background: transparent;
    padding: 0;
}

.patient-strip .mud-grid {
    gap: 8px 0;
    margin: 0;
    width: 100%;
}

.patient-field-item {
    flex: 1 1 0 !important;
    max-width: none !important;
}

.field-cell {
    box-sizing: border-box;
    height: 63px;
    min-height: 63px;
    padding: 8px 12px;
    margin-inline: 4px;
    border-radius: 9px;
    background: var(--field-bg);
    display: block;
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

.patient-strip .mud-grid-item:first-child .field-cell {
    margin-left: 0;
}

.patient-strip .mud-grid-item:last-child .field-cell {
    margin-right: 0;
}

.field-cell:hover {
    background: var(--field-bg-hover);
    box-shadow: inset 0 0 0 1px rgba(81, 64, 217, 0.10);
}

.field-cell .mud-input-control,
.mini-field .mud-input-control {
    height: 100%;
    margin: 0 !important;
    width: 100%;
}

.field-cell .mud-input-control-input-container,
.mini-field .mud-input-control-input-container {
    display: block;
    height: 100%;
    position: relative;
    padding-top: 22px;
}

.field-cell .mud-input,
.mini-field .mud-input,
.field-cell .mud-input-filled,
.mini-field .mud-input-filled {
    background: transparent !important;
    border-radius: 0;
    display: flex;
    align-items: center;
    min-height: 28px;
    height: 28px;
    font-weight: 500;
    color: var(--text-main);
    width: 100%;
}

.field-cell .mud-input::before,
.field-cell .mud-input::after,
.mini-field .mud-input::before,
.mini-field .mud-input::after,
.field-cell .mud-input-filled::before,
.field-cell .mud-input-filled::after,
.mini-field .mud-input-filled::before,
.mini-field .mud-input-filled::after {
    display: none !important;
}

.field-cell .mud-input-slot,
.mini-field .mud-input-slot {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    height: 28px;
    min-width: 0;
    padding: 0 !important;
    padding-bottom: 0 !important;
}

.field-cell input,
.mini-field input {
    height: 28px !important;
    font-size: 0.93rem !important;
    line-height: 1.2 !important;
    min-width: 0;
    padding: 0 !important;
    text-align: left;
    width: 100% !important;
}

.field-cell .mud-input-adornment,
.mini-field .mud-input-adornment {
    align-items: center;
    align-self: center;
    height: 28px;
    margin-top: 0 !important;
}

.field-cell .mud-input-adornment-text,
.mini-field .mud-input-adornment-text {
    font-size: 0.74rem !important;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1 !important;
}

.field-cell .mud-input-adornment-end,
.mini-field .mud-input-adornment-end {
    gap: 2px;
}

.field-cell .mud-icon-button,
.mini-field .mud-icon-button,
.field-clear-button {
    width: 26px;
    height: 26px;
    padding: 4px;
    color: var(--text-muted);
}

.field-cell .mud-icon-button:hover,
.mini-field .mud-icon-button:hover,
.field-clear-button:hover,
.constant-row > .mud-icon-button:hover,
.info-icon:hover,
.topbar .mud-icon-button:hover {
    background: rgba(81, 64, 217, 0.08);
    color: var(--text-main);
    box-shadow: none !important;
}

.info-icon:hover {
    background: rgba(22, 135, 242, 0.08);
    color: var(--secondary);
}

.topbar .mud-icon-button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.field-cell .mud-input-label,
.mini-field .mud-input-label {
    color: var(--text-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    line-height: 1.15;
    left: 0 !important;
    margin: 0;
    position: absolute !important;
    top: 0 !important;
    transform: none !important;
    transform-origin: left top !important;
    width: auto;
}

.eye-card {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: white;
    box-shadow: 0 10px 26px rgba(26, 39, 72, 0.07);
}

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

.eye-badge {
    min-height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: #f1f3f9;
    color: #6b7293;
    border: 1px solid #d8deea;
    font-size: 0.88rem;
    font-weight: 800;
}

.eye-card.os-card {
    background: linear-gradient(0deg, rgba(81, 64, 217, 0.075), rgba(81, 64, 217, 0.075)), white;
    border-color: #c9c3ee;
    box-shadow: inset 3px 0 0 rgba(81, 64, 217, 0.18), 0 10px 26px rgba(26, 39, 72, 0.07);
}

.toric-segment {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 166px;
    padding: 3px;
    border: 1px solid #d8deea;
    border-radius: 999px;
    background: #f4f6fb;
    gap: 2px;
}

.toric-segment-button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    min-height: 26px;
    padding: 0 10px;
    white-space: nowrap;
}

.toric-segment-button.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(26, 39, 72, 0.10);
}

.toric-segment-button:hover {
    color: var(--text-main);
}

.toggle-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    justify-content: flex-end;
}

.toggle-chip {
    min-height: 28px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f4f6fb;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 4px 12px;
    white-space: nowrap;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.toggle-chip:hover {
    background: #eceff6;
    border-color: #c7d0eb;
    color: var(--text-main);
}

.toggle-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(81, 64, 217, 0.22);
}

.compound-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f4f6fb;
    overflow: hidden;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.compound-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(81, 64, 217, 0.22);
}

.compound-chip-toggle {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 4px 12px;
    white-space: nowrap;
    transition: color 140ms ease;
}

.compound-chip.active .compound-chip-toggle {
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.compound-chip-options {
    display: flex;
    gap: 2px;
    padding: 2px 6px;
}

.compound-chip-option {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    padding: 2px 8px;
    white-space: nowrap;
    transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.compound-chip-option.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

.subtype-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-left: 8px;
    border-left: 2px solid rgba(81, 64, 217, 0.12);
}

.subtype-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.subtype-segment {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 148px;
    padding: 2px;
    border: 1px solid #d8deea;
    border-radius: 999px;
    background: #f4f6fb;
    gap: 2px;
}

.subtype-segment-button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    min-height: 22px;
    padding: 0 8px;
    white-space: nowrap;
    transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.subtype-segment-button.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(26, 39, 72, 0.10);
}

.subtype-segment-button:not(.active):hover {
    color: var(--text-main);
}

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

.mini-field,
.mini-field-placeholder {
    box-sizing: border-box;
    height: 63px;
    min-height: 63px;
    border-radius: 9px;
}

.mini-field {
    background: var(--field-bg);
    padding: 8px 12px;
    display: block;
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

.mini-field-placeholder {
    display: block;
}

.mini-field:hover {
    background: var(--field-bg-hover);
    box-shadow: inset 0 0 0 1px rgba(81, 64, 217, 0.12), 0 4px 12px rgba(81, 64, 217, 0.05);
}

.constants-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    margin-top: 8px;
}

.constant-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}

.constant-field {
    min-height: 58px;
    border-radius: 9px;
    padding: 8px 12px;
    background: var(--field-bg);
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

.constant-field:hover {
    background: var(--field-bg-hover);
    box-shadow: inset 0 0 0 1px rgba(81, 64, 217, 0.12), 0 4px 12px rgba(81, 64, 217, 0.05);
}

.constant-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 3px;
}

.constant-value {
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text-main);
}

.constant-value.empty {
    color: var(--text-muted);
}

.constant-value-row {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.constant-value-row .constant-value {
    min-width: 0;
}

.constant-row > .mud-icon-button {
    width: 32px;
    height: 32px;
    padding: 5px;
}

.eye-nav {
    margin-top: 14px;
    display: flex;
}

.eye-nav.forward {
    justify-content: flex-end;
}

.eye-nav.back {
    justify-content: flex-start;
}

.chevron-button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #dbe2ee;
    background: rgba(247, 249, 254, 0.92) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
}

.bottom-actions {
    margin-top: 18px;
    margin-bottom: 34px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.action-button {
    height: 44px;
    border-radius: 9px;
    font-weight: 800;
    padding-inline: 20px;
}

.reset-button {
    background: #eef1f7 !important;
    color: #3b4663 !important;
    border: 1px solid #d9deea;
    box-shadow: none;
}

.reset-button:hover {
    background: #e5e9f2 !important;
    border-color: #cfd6e5;
    box-shadow: none !important;
}

.calculator-footer {
    margin-top: 18px;
}

.sponsor-banner {
    min-height: 150px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(26, 39, 72, 0.06);
}

.sponsor-banner img {
    display: block;
    width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.escrs-footer {
    min-height: 46px;
    padding: 26px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.escrs-footer img {
    display: block;
    width: clamp(72px, 10vw, 112px);
    max-height: 28px;
    object-fit: contain;
    opacity: 0.72;
}

.mud-input-control {
    margin-top: 0 !important;
}

@media (max-width: 960px) {
    .topbar {
        height: 58px;
        padding: 0 12px;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .brand-logo {
        width: clamp(108px, 32vw, 148px);
        max-height: 36px;
    }

    .main-container {
        padding: 14px;
    }

    .calculator-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px 8px;
    }

    .measurement-grid,
    .constants-grid {
        grid-template-columns: 1fr;
    }

    .mini-field-placeholder {
        display: none;
    }

    .field-cell {
        margin-inline: 0;
    }

    .patient-field-item {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }

    .topbar-actions {
        flex: 0 0 auto;
        gap: 8px;
        justify-content: flex-end;
    }

    .topbar-left {
        gap: 0;
    }

    .decimal-btn {
        min-width: 84px;
        padding-inline: 8px;
    }

    .biomapi-card {
        padding: 12px;
    }

    .biomapi-tab-button {
        padding-inline: 10px;
    }

    .history-item {
        flex-basis: 210px;
    }

    .sponsor-banner {
        min-height: 92px;
        border-radius: 10px;
    }

    .sponsor-banner img {
        max-height: 92px;
    }

    .escrs-footer {
        min-height: 40px;
        padding-top: 22px;
    }

    .escrs-footer img {
        width: 78px;
        max-height: 24px;
    }
}
