
/* ==================== NAVIGATION BUTTONS ==================== */
.nav-btn-active {
    background: #10b981;
    color: #ffffff;
    border: 2px solid #10b981;
}
.nav-btn-active:hover {
    background: #059669;
    border-color: #059669;
}
.nav-btn-inactive {
    background: #f1f5f9;
    color: #334155;
}
.nav-btn-inactive:hover {
    background: #e2e8f0;
}

/* ==================== BONUS TAB BUTTONS ==================== */
.bonus-tab-button {
    padding: 0.625rem 1.25rem;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 0.625rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bonus-tab-button:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.bonus-tab-button.active {
    background: #22c55e;
    border-color: #16a34a;
    color: white;
}

/* ==================== BONUS VIEWPORT ==================== */
#bonus-viewport {
    min-height: 700px;
}

/* ==================== BONUSES COLUMNS ==================== */
/* No longer used - replaced with tab interface */

.stats-box {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 0.75rem;
}

.bonus-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    font-size: 0.95rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.bonus-row:last-child {
    border-bottom: none;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    background: #e0f2e9;
    border-radius: 0.5rem;
    margin-bottom: 0.625rem;
    font-weight: 700;
    font-size: 1rem;
    color: #166534;
}

.sub-name {
    color: #475569;
}

.sub-value {
    font-weight: 700;
    color: #0f766e;
}

/* ==================== GROUPED LAYOUT ==================== */
.bonus-group {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 0.75rem;
    padding: 0;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.group-header {
    background: #dcfce7;
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid #22c55e;
}

.group-header h4 {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f766e;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.group-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

/* ==================== COLUMN HEADER ==================== */
.column-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 1rem;
    padding: 0.75rem 1rem;
    background: #e0f2e9;
    border: 2px solid #22c55e;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f766e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    justify-items: start;
    position: sticky;
    top: 0;
    z-index: 10;
}

.col-name {
    justify-self: start;
}

.col-bonus {
    justify-self: center;
}

.col-threshold {
    justify-self: end;
}

/* ==================== SUB BREAKDOWN (3-COLUMN) ==================== */
.sub-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.93rem;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    justify-items: start;
}

.sub-breakdown:last-child {
    border-bottom: none;
}

.item-name {
    justify-self: start;
    font-weight: 400;
}

.item-bonus {
    justify-self: center;
    font-weight: 700;
    color: #0f766e;
}

.item-threshold {
    justify-self: end;
    font-weight: 600;
    color: #7c3aed;
}

.tree-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
    transition: background 0.2s ease;
}

.tree-header:hover {
    background: #e2e8f0;
}

.tree-header .arrow {
    display: inline-block;
    margin-right: 0.625rem;
    transition: transform 0.25s ease;
    font-size: 1rem;
}

.tree-header.expanded .arrow {
    transform: rotate(90deg);
}

.tree-children {
    display: none;
    padding-left: 2rem;
    position: relative;
    margin-left: 0.75rem;
}

.tree-children::before {
    content: '';
    position: absolute;
    left: 0.875rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #cbd5e1;
}

.tree-children.expanded {
    display: block;
}


.sub-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.93rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.sub-breakdown:last-child {
    border-bottom: none;
}
.sub-breakdown .value {
    font-weight: 700;
    color: #0f766e;
}

/* ==================== COMPANION ITEMS ==================== */
.companions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    width: 100%;
}

.companion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    transition: all 0.25s ease;
    cursor: pointer;
    min-height: 240px;
    position: relative;
}

.companion-item:hover {
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    transform: translateY(-2px);
}

.companion-item.selected {
    border-color: #22c55e;
    background: #f0fdf4;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}

.companion-item.selected .companion-checkmark {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
    font-weight: bold;
}

.companion-checkbox-wrapper {
    position: absolute;
    top: -9999px;
    left: -9999px;
    visibility: hidden;
}

.companion-checkbox {
    display: none;
}

.companion-checkmark {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid #10b981;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #10b981;
    transition: all 0.2s ease;
    pointer-events: none;
    font-weight: bold;
}

.companion-image {
    width: 100%;
    height: 70px;
    background: transparent;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.companion-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.companion-info {
    width: 100%;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    overflow: hidden;
}

.companion-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.companion-bonus {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.35;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ==================== LAB ITEMS ==================== */
.lab-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
    width: 100%;
}

.lab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    transition: all 0.25s ease;
    cursor: pointer;
    min-height: 80px;
    position: relative;
    justify-content: center;
}

.lab-item:hover {
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    transform: translateY(-2px);
}

.lab-item.selected {
    border-color: #22c55e;
    background: #f0fdf4;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}

.lab-item.selected .lab-checkmark {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
    font-weight: bold;
}

.lab-checkbox-wrapper {
    position: absolute;
    top: -9999px;
    left: -9999px;
    visibility: hidden;
}

.lab-checkbox {
    display: none;
}

.lab-checkmark {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid #10b981;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #10b981;
    transition: all 0.2s ease;
    pointer-events: none;
    font-weight: bold;
}

.lab-image {
    width: 100%;
    height: 70px;
    background: transparent;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.lab-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.lab-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f766e;
    text-align: center;
    line-height: 1.3;
}

/* ==================== STATE INSPECTOR ==================== */
.inspector-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.inspector-section:last-child {
    margin-bottom: 0;
}

.inspector-section h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #22c55e;
}

.inspector-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.inspector-field label {
    min-width: 140px;
    color: #475569;
    font-weight: 500;
}

.inspector-field .inspector-input {
    flex: 1;
    max-width: 150px;
    padding: 0.375rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.inspector-field .inspector-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.inspector-field .inspector-input[type="checkbox"] {
    max-width: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #22c55e;
}

.inspector-field .inspector-value {
    min-width: 80px;
    padding: 0.25rem 0.5rem;
    background: #f1f5f9;
    border-radius: 0.25rem;
    color: #0f766e;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: right;
}

/* ==================== LAND RANK DATABASE PANEL ==================== */
.landrank-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.landrank-db-panel {
    background: #3b1c07;
    border: 4px solid #7a3f18;
    border-radius: 16px;
    padding: 14px 16px 16px;
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.55), 0 6px 20px rgba(0,0,0,0.45);
    flex-shrink: 0;
}

.landrank-db-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #f0c060;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9), 0 0 12px rgba(200,120,0,0.4);
    margin: 0;
    letter-spacing: 1px;
    border-bottom: 2px solid #7a3f18;
    padding-bottom: 10px;
}

.landrank-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.landrank-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: transform 0.12s ease;
    padding: 4px;
    border-radius: 8px;
    border: 2px solid transparent;
}

.landrank-slot-threshold {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.55rem;
    font-weight: 700;
    color: #a8d8a0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

.landrank-slot:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.05);
}

.landrank-slot.selected {
    border-color: #f0c060;
    background: rgba(240,192,96,0.12);
}

.landrank-slot-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 38%, #3d1a08, #1a0803);
    border: 2px solid #5a2a0c;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.landrank-slot-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.landrank-slot-level {
    font-size: 0.7rem;
    font-weight: 700;
    color: #e8a030;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
    letter-spacing: 0.5px;
    font-family: Arial, sans-serif;
    line-height: 1;
}

/* ==================== LAND RANK STATS PANEL ==================== */
.landrank-stats-panel {
    background: #3b1c07;
    border: 4px solid #7a3f18;
    border-radius: 16px;
    padding: 14px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 200px;
    flex-shrink: 0;
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.55), 0 6px 20px rgba(0,0,0,0.45);
    align-self: flex-start;
}

.landrank-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    flex: 1;
}

.landrank-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    padding: 5px 6px;
    border-bottom: 1px solid #5a2a0c;
    font-family: Arial, sans-serif;
}

.landrank-stat-row:last-child {
    border-bottom: none;
}

.landrank-stat-name {
    font-size: 0.72rem;
    color: #d4bfa0;
    line-height: 1.3;
    flex: 1;
}

.landrank-stat-val {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f0c060;
    text-align: right;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* ==================== LAND RANK OPTIMIZE BUTTON ==================== */
.landrank-optimize-btn {
    margin-top: 6px;
    width: 100%;
    padding: 8px 0;
    background: linear-gradient(180deg, #c47c20 0%, #7a3f18 100%);
    border: 2px solid #f0c060;
    border-radius: 8px;
    color: #fff8e0;
    font-family: Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
    transition: filter 0.15s, transform 0.1s;
}
.landrank-optimize-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}
.landrank-optimize-btn:active {
    filter: brightness(0.9);
    transform: translateY(0);
}

.landrank-btn-reset {
    background: linear-gradient(180deg, #8b2020 0%, #4a0e0e 100%);
    border-color: #e05050;
}

.landrank-btn-default {
    background: linear-gradient(180deg, #1c5c8b 0%, #0e2a4a 100%);
    border-color: #50a0e0;
}

/* Action bar below stats panel */
.landrank-action-bar {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.landrank-action-bar .landrank-optimize-btn {
    flex: 1;
    min-width: 100px;
}

/* ==================== LAND RANK RULE SET PANEL ==================== */
.landrank-ruleset-panel {
    background: #3b1c07;
    border: 4px solid #7a3f18;
    border-radius: 16px;
    padding: 14px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 180px;
    flex-shrink: 0;
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.55), 0 6px 20px rgba(0,0,0,0.45);
    align-self: flex-start;
}

.landrank-ruleset-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.landrank-rule-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 5px 4px;
    border-radius: 6px;
    transition: background 0.15s;
}
.landrank-rule-row:hover {
    background: rgba(255,255,255,0.06);
}

.landrank-rule-check {
    margin-top: 2px;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: #f0c060;
    cursor: pointer;
}

.landrank-rule-label {
    font-size: 0.75rem;
    color: #d4bfa0;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

.landrank-rule-sub {
    font-size: 0.65rem;
    color: #a07850;
}

.landrank-rule-divider {
    height: 1px;
    background: #5a2a0c;
    margin: 4px 0;
}

/* Crop picker side panel */
.landrank-crop-picker-panel {
    background: #3b1c07;
    border: 4px solid #7a3f18;
    border-radius: 16px;
    padding: 12px 10px 14px;
    width: 180px;
    flex-shrink: 0;
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.55), 0 6px 20px rgba(0,0,0,0.45);
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow: hidden;
}

.crop-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    overflow-y: auto;
    max-height: 360px;
    padding-right: 2px;
}

.crop-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    padding: 4px 3px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: border-color 0.12s, background 0.12s;
    width: 46px;
}

.crop-picker-item:hover {
    border-color: #f0c060;
    background: rgba(240,192,96,0.1);
}

.crop-picker-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.crop-picker-item span {
    font-size: 0.55rem;
    color: #d4bfa0;
    text-align: center;
    font-family: Arial, sans-serif;
    line-height: 1.2;
    max-width: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Evo pick buttons (crop type / crop selector) */
.evo-pick-btn {
    background: #2a1204;
    border: 1px solid #7a3f18;
    border-radius: 4px;
    color: #f0c060;
    font-size: 0.65rem;
    font-family: Arial, sans-serif;
    padding: 2px 5px;
    cursor: pointer;
    width: 80px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: center;
    min-height: 22px;
}

.evo-pick-btn:hover:not(:disabled) {
    border-color: #f0c060;
}

.evo-pick-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.evo-pick-btn img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Tooltip question mark */
.landrank-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.landrank-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #5a2a0c;
    border: 1px solid #f0c060;
    color: #f0c060;
    font-size: 0.6rem;
    font-weight: 700;
    font-family: Georgia, serif;
    cursor: help;
    flex-shrink: 0;
    line-height: 1;
}

.landrank-tooltip-box {
    display: none;
    position: fixed;
    width: 200px;
    background: #1e0e04;
    border: 1px solid #7a3f18;
    border-radius: 6px;
    padding: 7px 9px;
    color: #d4bfa0;
    font-size: 0.68rem;
    font-family: Arial, sans-serif;
    line-height: 1.45;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    white-space: normal;
    word-wrap: break-word;
}

.landrank-tooltip-wrap:hover .landrank-tooltip-box {
    display: block;
}

.landrank-tooltip-icon:hover + .landrank-tooltip-box,
.landrank-tooltip-wrap:focus-within .landrank-tooltip-box {
    display: block;
}

/* Manual Point Allocation inputs */
.landrank-manual-alloc {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.landrank-manual-divider {
    height: 1px;
    background: #5a2a0c;
    margin: 2px 0 4px;
}

.landrank-manual-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.landrank-manual-label {
    font-size: 0.68rem;
    color: #d4bfa0;
    font-family: Arial, sans-serif;
    flex: 1;
}

.landrank-manual-input {
    width: 44px;
    background: #2a1204;
    border: 1px solid #7a3f18;
    border-radius: 4px;
    color: #f0c060;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    padding: 2px 4px;
    outline: none;
    -moz-appearance: textfield;
}

.landrank-manual-input::-webkit-outer-spin-button,
.landrank-manual-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.landrank-manual-input:focus {
    border-color: #f0c060;
}

/* Image picker custom dropdown */
.img-picker {
    position: relative;
    width: 100px;
    font-size: 0.72rem;
    font-family: Arial, sans-serif;
    user-select: none;
}

.img-picker-selected {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #2a1204;
    border: 1px solid #7a3f18;
    border-radius: 4px;
    padding: 2px 5px;
    cursor: pointer;
    color: #f0c060;
    min-height: 22px;
    white-space: nowrap;
    overflow: hidden;
}

.img-picker-selected:hover {
    border-color: #f0c060;
}

.img-picker-selected img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.img-picker-placeholder {
    color: #a08060;
    font-size: 0.68rem;
}

.img-picker-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
    background: #1e0e02;
    border: 1px solid #7a3f18;
    border-radius: 4px;
    z-index: 999;
    max-height: 180px;
    overflow-y: auto;
    min-width: 130px;
}

.img-picker-dropdown.open {
    display: block;
}

.img-picker-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 7px;
    cursor: pointer;
    color: #d4bfa0;
    white-space: nowrap;
}

.img-picker-item:hover {
    background: #3a1a06;
    color: #f0c060;
}

.img-picker-item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Threshold two-input rows */
.landrank-threshold-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 2px 3px;
    border-bottom: 1px solid #5a2a0c;
    margin-bottom: 3px;
}

.landrank-threshold-col-lbl {
    font-size: 0.6rem;
    color: #a07850;
    font-family: Arial, sans-serif;
    width: 44px;
    text-align: center;
    flex-shrink: 0;
}

.landrank-threshold-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

/* ==================== LAND RANK INFO BAR ==================== */
.landrank-info-bar {
    background: #2a1204;
    border: 2px solid #5a2a0c;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.landrank-info-name {
    font-family: Arial Black, Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.landrank-info-desc {
    font-size: 0.78rem;
    color: #d4bfa0;
    line-height: 1.35;
}


