/* === GLOBAL THEME: Project Wasteland === */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background-color: #111111;
    color: #c8b89a;
    font-family: 'Share Tech Mono', Consolas, monospace;
    min-height: 100vh;
}

h1, h2, h3 {
    color: #e5b567;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

a { color: #e5b567; }
a:hover { color: #fff; }

/* === VALIDATION === */
h1:focus { outline: none; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #4a7c4a; }
.invalid { outline: 1px solid #8b1a1a; }
.validation-message { color: #cc4444; font-size: 0.8rem; margin-top: 2px; }
.error-message { color: #cc4444; margin: 0.5rem 0; }

.blazor-error-boundary {
    background: #1a0a0a;
    border: 1px solid #8b1a1a;
    padding: 1rem 1rem 1rem 3.7rem;
    color: #cc4444;
}
.blazor-error-boundary::after { content: "SYSTEM FAILURE – Reload required." }

/* === TOP NAVIGATION === */
.top-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.6rem 1.5rem;
    background: #0a0a0a;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.9rem;
}
.top-nav a { color: #e5b567; text-decoration: none; font-weight: bold; }
.top-nav a:hover { color: #fff; }
.top-nav span { color: #888; }
.top-nav strong { color: #e5b567; }
.nav-brand { font-size: 1rem; letter-spacing: 0.15em; margin-right: auto; }
.nav-user { color: #888; font-size: 0.85rem; }
.nav-admin { color: #cc4444 !important; }
.nav-admin:hover { color: #ff6666 !important; }
.top-nav button {
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    padding: 0.2rem 0.7rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}
.top-nav button:hover { border-color: #e5b567; color: #e5b567; }

main { padding: 1.5rem; }

/* Remove padding so the game screen fills the viewport without causing a scroll */
main:has(.game-screen) { padding: 0; }

/* === AUTH FORMS (Login / Register) === */
.auth-form {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background: #1c1c1c;
    border: 1px solid #333;
    border-top: 2px solid #e5b567;
}
.auth-form h1 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.auth-form p { color: #888; font-size: 0.85rem; margin-top: 1.2rem; }

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    gap: 0.3rem;
}
.form-field label {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.form-field input,
.form-field textarea,
.form-field .form-control {
    background: #0d0d0d;
    border: 1px solid #333;
    color: #c8b89a;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 2px;
    outline: none;
}
.form-field input:focus,
.form-field textarea:focus { border-color: #e5b567; }
.form-field textarea { resize: vertical; width: 100%; }

/* === BUTTONS === */
.btn-wasteland {
    background: transparent;
    border: 1px solid #e5b567;
    color: #e5b567;
    padding: 0.5rem 1.2rem;
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s, color 0.15s;
    margin-top: 0.5rem;
}
.btn-wasteland:hover:not(:disabled) { background: #e5b567; color: #111; }
.btn-wasteland:disabled,
.btn-disabled { opacity: 0.35; cursor: not-allowed; }

button[type="submit"]:not(.btn-wasteland) {
    background: transparent;
    border: 1px solid #e5b567;
    color: #e5b567;
    padding: 0.5rem 1.4rem;
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s, color 0.15s;
    margin-top: 0.5rem;
}
button[type="submit"]:not(.btn-wasteland):hover:not(:disabled) { background: #e5b567; color: #111; }
button[type="submit"]:disabled { opacity: 0.35; cursor: not-allowed; }

/* === CHARACTER SELECTION === */
.character-screen {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-bottom: 1px solid #e5b567;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: #888;
}
.terminal-header .accent { color: #e5b567; font-weight: bold; }

.section-label {
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #1e1e1e;
    padding-bottom: 0.3rem;
}

.terminal-text { color: #666; font-size: 0.9rem; }
.terminal-text.dim { color: #444; }

.character-list { margin-bottom: 2rem; }

.character-card {
    background: #161616;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #e5b567;
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.character-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.char-name { color: #e5b567; font-size: 1rem; font-weight: bold; }
.char-class { color: #555; font-size: 0.8rem; }
.character-card-stats { color: #666; font-size: 0.8rem; display: flex; gap: 1.5rem; }

.create-section {
    background: #161616;
    border: 1px solid #2a2a2a;
    padding: 1.2rem 1.4rem;
    margin-top: 0.5rem;
}

/* === CLASS SELECTOR === */
.class-selector {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.3rem;
}
.class-option {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border: 1px solid #2a2a2a;
    padding: 0.6rem 1rem;
    cursor: pointer;
    flex: 1;
    color: #666;
    transition: border-color 0.15s;
}
.class-option input[type="radio"] { display: none; }
.class-option:hover { border-color: #555; }
.class-selected { border-color: #e5b567 !important; color: #c8b89a; }
.class-name { font-size: 0.9rem; color: #e5b567; letter-spacing: 0.05em; }
.class-desc { font-size: 0.72rem; color: #555; }
.class-selected .class-desc { color: #888; }

/* === CHARACTER CARD ACTIONS === */
.character-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid #8b1a1a;
    color: #a03030;
    padding: 0.3rem 0.9rem;
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    align-self: flex-start;
    transition: background 0.15s, color 0.15s;
}
.btn-danger-outline:hover { background: #8b1a1a; color: #fff; }

.btn-danger {
    background: transparent;
    border: 1px solid #cc2222;
    color: #cc2222;
    padding: 0.3rem 0.9rem;
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s, color 0.15s;
}
.btn-danger:hover:not(:disabled) { background: #cc2222; color: #fff; }
.btn-danger:disabled { opacity: 0.3; cursor: not-allowed; }

.delete-confirm {
    background: #120808;
    border: 1px solid #5a1010;
    padding: 0.75rem 1rem;
    margin-top: 0.3rem;
}
.delete-confirm-label {
    color: #a05050;
    font-size: 0.8rem;
    margin: 0 0 0.5rem 0;
}
.delete-confirm-label strong { color: #cc4444; }
.delete-confirm-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.delete-input {
    background: #0d0d0d;
    border: 1px solid #5a1010;
    color: #c8b89a;
    padding: 0.35rem 0.6rem;
    font-family: inherit;
    font-size: 0.9rem;
    border-radius: 2px;
    outline: none;
    flex: 1;
    min-width: 120px;
}
.delete-input:focus { border-color: #cc2222; }

/* === ERROR BOX === */
.error-box {
    background: #120808;
    border: 1px solid #8b1a1a;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ==================== GAME INTERFACE ==================== */

.game-screen {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 42px);
    overflow: hidden;
    background: #0a0a0a;
}

/* --- HUD bar --- */
.game-hud {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.4rem 1.2rem;
    background: #111;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.hud-stat { color: #c8b89a; }
.hud-back {
    margin-left: auto;
    color: #e5b567;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}
.hud-back:hover { color: #fff; }

/* --- Loading state --- */
.game-loading {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Three-column layout --- */
.game-main {
    display: grid;
    grid-template-columns: 210px 1fr 200px;
    flex: 1;
    min-height: 0;
}

/* --- Left: character panel --- */
.game-left-panel {
    padding: 0.9rem 1rem;
    border-right: 1px solid #1e1e1e;
    overflow-y: auto;
    background: #0d0d0d;
}
/* --- Center: location + log --- */
.game-center {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.game-room-panel {
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid #1e1e1e;
    flex-shrink: 0;
}
.room-name {
    color: #e5b567;
    font-size: 0.95rem;
    margin: 0 0 0.2rem;
}
.room-zone {
    font-size: 0.75rem;
    margin: 0 0 0.6rem;
}
.room-desc {
    font-size: 0.8rem;
    line-height: 1.55;
    color: #aaa;
    margin: 0 0 0.9rem;
}
.room-exits { margin-top: 0.4rem; }

/* --- Room type badge --- */
.room-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.67rem;
    letter-spacing: 0.1em;
    font-weight: bold;
    padding: 0.1rem 0.45rem;
    border: 1px solid;
    cursor: default;
    user-select: none;
    margin: 0 0 0.45rem;
    opacity: 0.65;
    transition: opacity 0.15s;
}
.room-badge:hover { opacity: 1; }
.room-badge-tip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #131313;
    border: 1px solid #2a2a2a;
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
    color: #999;
    white-space: normal;
    min-width: 190px;
    max-width: 250px;
    line-height: 1.6;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.15s;
    font-weight: normal;
    letter-spacing: 0;
}
.room-badge-tip strong { display: block; margin-bottom: 0.2rem; }
.room-badge:hover .room-badge-tip { visibility: visible; opacity: 1; }

.room-badge-safe       { color: #4caf50; border-color: #254525; }
.room-badge-gateway    { color: #5dade2; border-color: #1e3850; }
.room-badge-lowrisk    { color: #e5b567; border-color: #4a3818; }
.room-badge-mediumrisk { color: #e67e22; border-color: #4a2810; }
.room-badge-highrisk   { color: #e74c3c; border-color: #4a1818; }
.room-badge-boss       { color: #c0392b; border-color: #3a1010; }
.room-badge-puzzle     { color: #9b59b6; border-color: #38204a; }
.room-badge-rest       { color: #2ecc71; border-color: #1e4a28; }
.room-badge-unknown    { color: #666;    border-color: #303030; }

.room-badge-safe .room-badge-tip strong       { color: #4caf50; }
.room-badge-gateway .room-badge-tip strong    { color: #5dade2; }
.room-badge-lowrisk .room-badge-tip strong    { color: #e5b567; }
.room-badge-mediumrisk .room-badge-tip strong { color: #e67e22; }
.room-badge-highrisk .room-badge-tip strong   { color: #e74c3c; }
.room-badge-boss .room-badge-tip strong       { color: #c0392b; }
.room-badge-puzzle .room-badge-tip strong     { color: #9b59b6; }
.room-badge-rest .room-badge-tip strong       { color: #2ecc71; }

.exit-compass {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.3rem;
}
.exit-row        { display: flex; gap: 0.2rem; }
.exit-center-row { justify-content: center; }
.exit-we-row     { justify-content: space-between; }
.exit-btn {
    width: calc(50% - 0.1rem);
    padding: 0.3rem 0.6rem;
    background: transparent;
    color: #e5b567;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    text-align: left;
    transition: background 0.15s, border-color 0.15s;
    box-sizing: border-box;
}
.exit-btn-right  { text-align: right; }
.exit-center-row .exit-btn { text-align: center; }
.exit-btn-closed {
    opacity: 0.15;
    cursor: default;
    pointer-events: none;
    border: 1px dashed #3a3a3a;
}
.exit-btn:hover {
    background: #161616;
    border-color: #e5b567;
}
.map-btn {
    width: 100%;
    margin-top: 0.4rem;
    text-align: center;
    color: #5dade2;
    border-color: #1a3a4a;
}
.map-btn:hover {
    color: #74b9ff;
    border-color: #5dade2;
}
.map-btn-active {
    color: #e5b567 !important;
    border-color: #e5b567 !important;
    animation: pulse 1.2s infinite;
}
.map-panel-label {
    padding: 0 0.9rem;
    flex-shrink: 0;
}

/* --- Center: log panel --- */
.game-log-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0.5rem 0 0;
    flex: 1;
}
.game-log-panel > .section-label { padding: 0 0.9rem; flex-shrink: 0; }
.log-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.9rem;
    flex-shrink: 0;
}
.log-panel-header > .section-label { padding: 0; }
.log-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #444;
    cursor: pointer;
    user-select: none;
    font-family: inherit;
}
.log-toggle:hover { color: #888; }
.log-toggle input[type="checkbox"] { accent-color: #e5b567; cursor: pointer; }
.game-log {
    flex: 1;
    overflow-y: auto;
    padding: 0.4rem 0.9rem 0.6rem;
    scroll-behavior: smooth;
}
.log-line {
    margin: 0;
    padding: 0.08rem 0;
    font-size: 0.82rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}
.log-room      { color: #e5b567; }
.log-room-desc { color: #bbb; }
.log-system    { color: #555; font-style: italic; }
.log-info      { color: #999; }
.log-error     { color: #c0392b; }
.log-threat    { color: #e74c3c; }
.log-say       { color: #d4a843; }
.log-cmd       { color: #444; }
.log-join      { color: #27ae60; }
.log-leave     { color: #888; font-style: italic; }
.log-combat    { color: #e67e22; font-weight: bold; }
.log-xp        { color: #f1c40f; font-weight: bold; }
.log-death     { color: #e74c3c; font-weight: bold; }
.log-item      { color: #5dade2; }

/* --- Right: world panel --- */
.game-right-panel {
    border-left: 1px solid #1e1e1e;
    padding: 0.9rem 0.8rem;
    overflow-y: auto;
    background: #0d0d0d;
    font-size: 0.8rem;
}
.world-clock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    margin-bottom: 0.6rem;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}
.clock-icon {
    font-size: 1.1rem;
}
.clock-time {
    font-size: 1rem;
    color: #e5b567;
    letter-spacing: 0.12em;
}
.presence-entry { margin: 0.2rem 0; color: #999; }
.presence-entry.threat { color: #e74c3c; }
.presence-entry.item   { color: #5dade2; }

/* --- Minimap --- */
.minimap-container {
    margin-bottom: 0.5rem;
}
.minimap-svg {
    width: 100%;
    height: auto;
    display: block;
}
.minimap-line {
    stroke: #2a2a2a;
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
}
.minimap-node {
    stroke-width: 1;
}
.minimap-node-current {
    fill: #1a1608;
    stroke: #e5b567;
}
.minimap-node-adj {
    fill: #111;
    stroke: #3a3a3a;
    cursor: pointer;
    transition: stroke 0.15s, fill 0.15s;
}
.minimap-node-adj:hover {
    stroke: #e5b567;
    fill: #1a1608;
}
.minimap-text {
    text-anchor: middle;
    font-family: 'Share Tech Mono', Consolas, monospace;
    font-size: 8px;
    pointer-events: none;
}
.minimap-text-current {
    fill: #e5b567;
}
.minimap-text-adj {
    fill: #666;
}
.minimap-node-fog {
    fill: #0a0a0a;
    stroke: #1e1e1e;
    stroke-dasharray: 3 2;
    cursor: pointer;
    transition: stroke 0.15s;
}
.minimap-node-fog:hover {
    stroke: #3a3a3a;
}
.minimap-text-fog {
    fill: #2a2a2a;
}

/* --- HUD combat/HP states --- */
.hud-combat { color: #e67e22; font-weight: bold; animation: pulse 1.2s infinite; }
.hp-low      { /* colour handled by inline style */ }
.hp-critical { font-weight: bold; animation: pulse 0.8s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

/* --- Bottom: command input --- */
.game-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: #111;
    border-top: 1px solid #1e1e1e;
    flex-shrink: 0;
}
.input-prompt { color: #e5b567; font-weight: bold; }
.game-input {
    flex: 1;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    color: #e0e0e0;
    padding: 0.45rem 0.75rem;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
}
.game-input:focus { border-color: #e5b567; }
.game-input:disabled { opacity: 0.5; }

/* --- Monster HP bars (presence panel) --- */
.monster-hp-track {
    height: 4px;
    background: #1a0a0a;
    margin: 1px 0 2px 14px;
    border: 1px solid #2a1010;
}
.monster-hp-fill {
    height: 100%;
    background: #c0392b;
    transition: width 0.25s ease;
}
.monster-hp-text {
    font-size: 0.68rem;
    color: #664444;
    margin: 0 0 5px 14px;
}

/* --- Clickable presence entries --- */
.clickable-threat {
    cursor: crosshair;
    user-select: none;
    transition: color 0.15s, text-shadow 0.15s;
}
.clickable-threat:hover {
    color: #ff6b6b;
    text-shadow: 0 0 8px rgba(192, 57, 43, 0.8);
}
.clickable-item {
    cursor: grab;
    user-select: none;
    transition: color 0.15s, text-shadow 0.15s;
}
.clickable-item:hover {
    color: #74b9ff;
    text-shadow: 0 0 8px rgba(41, 128, 185, 0.7);
}

/* --- Character sheet panel --- */
.char-sheet {
    padding: 0.2rem 0 0.4rem;
}
.char-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.1rem 0;
    font-size: 0.78rem;
}
.cs-label {
    color: #555;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}
.cs-value {
    color: #bbb;
    text-align: right;
}
.cs-item { color: #e5b567; }

/* --- Inline world map panel (GameInterface) --- */
.game-map-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border-bottom: 1px solid #1e1e1e;
}
.world-map-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.world-map-grid {
    display: grid;
    align-content: start;
    overflow: auto;
    padding: 0.5rem;
    background: #0a0a0a;
    flex: 1;
    min-height: 0;
}
.map-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    font-size: 0;
    user-select: none;
    position: relative;
}

/* ── Terrain tiles ────────────────────────────────── */
.tile-deep_water { background: #060d1a; }
.tile-water      { background: #0c1c2e; }
.tile-grassland  { background: #0f1e0d; }
.tile-forest     { background: #081408; }
.tile-road       { background: #1a1208; }
.tile-mountain   { background: #161616; }
.tile-plains     { background: #0d110d; }
.tile-blocked    { background: #0a0a0a; }
.tile-poi        { background: #1a0a0a; cursor: pointer; box-shadow: inset 0 0 3px #5dade2; }
.tile-hub        { background: #1a1608; cursor: pointer; box-shadow: inset 0 0 3px #e5b567; }
.tile-poi:hover, .tile-hub:hover { filter: brightness(1.6); }

/* Player marker */
.tile-player { background: #1a1608; }
.tile-player::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e5b567;
    box-shadow: 0 0 4px #e5b567;
}
.world-map-sidebar {
    flex: 1;
    min-width: 0;
    padding: 0.8rem;
    border-left: 1px solid #1e1e1e;
    overflow-y: auto;
    background: #0d0d0d;
}
.map-location-name {
    color: #e5b567;
    font-size: 0.9rem;
    margin: 0.2rem 0;
}
.map-location-desc {
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0.3rem 0 0.8rem;
}
.map-status-msg {
    color: #e67e22;
    font-size: 0.78rem;
    margin: 0.3rem 0;
}
.map-direction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    margin: 0.8rem 0;
    max-width: 140px;
}
.map-dir-btn {
    padding: 0.35rem 0;
    font-size: 0.8rem;
    text-align: center;
}
.map-dir-center {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}
.map-enter-btn {
    display: block;
    width: 100%;
    margin-bottom: 0.4rem;
    color: #5dade2;
    border-color: #1a3a4a;
}
.map-enter-btn:hover:not(:disabled) { color: #74b9ff; border-color: #5dade2; background: transparent; }
.map-close-btn {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    color: #666;
    border-color: #222;
}
.map-close-btn:hover:not(:disabled) { color: #aaa; border-color: #444; background: transparent; }

/* Compact log strip when world map is open */
.game-log-compact {
    flex: 0 0 auto !important;
    max-height: 110px;
}
.game-log-compact .game-log {
    flex: 1;
}
.cs-none { color: #333; }
.cs-trait {
    color: #4a4a4a;
    font-size: 0.72rem;
    font-style: italic;
    margin-top: 0.3rem;
    line-height: 1.5;
}
.char-stat-divider {
    border: none;
    border-top: 1px solid #1a1a1a;
    margin: 0.3rem 0;
}

/* --- Character sheet inventory --- */
.cs-inv-header {
    color: #444;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    margin: 0.3rem 0 0.2rem;
    text-transform: uppercase;
}
.inv-empty { font-size: 0.72rem; margin: 0.1rem 0; }
.inv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.15rem 0;
    gap: 0.4rem;
}
.inv-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.inv-name {
    color: #777;
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inv-name.equipped { color: #e5b567; }
.inv-stats {
    color: #3a3a3a;
    font-size: 0.66rem;
}
.inv-btn {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #555;
    font-family: inherit;
    font-size: 0.64rem;
    padding: 0.1rem 0.3rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
}
.inv-btn:hover          { border-color: #e5b567; color: #e5b567; }
.inv-btn-remove         { border-color: #2a1a1a; color: #4a2a2a; }
.inv-btn-remove:hover   { border-color: #e74c3c; color: #e74c3c; }

/* ==================== ADMIN PANEL ==================== */
.admin-screen {
    max-width: 1400px;
    width: calc(100% - 2rem);
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ── Admin tab bar ────────────────────────────────────────────────── */
.admin-tab-bar {
    display: flex;
    background: #0d0d0d;
    border-bottom: 2px solid #2a2a2a;
    margin-bottom: 0;
}
.admin-tab {
    padding: 0.65rem 1.6rem;
    color: #555;
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    font-family: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    outline: none;
}
.admin-tab:hover { color: #c8b89a; background: #141414; }
.admin-tab.active {
    color: #e5b567;
    border-bottom-color: #e5b567;
    background: #161616;
}
.admin-tab-badge {
    font-size: 0.68rem;
    color: #444;
    margin-left: 0.45rem;
    background: #1a1a1a;
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
}
.admin-tab.active .admin-tab-badge { color: #888; background: #222; }
.admin-tab-badge-danger { color: #cc4444 !important; background: #1a0a0a !important; }

/* ── Admin tab content area ───────────────────────────────────────── */
.admin-tab-content {
    background: #161616;
    border: 1px solid #2a2a2a;
    border-top: none;
}
.admin-tab-count {
    color: #555;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 1.4rem;
    background: #111;
    border-bottom: 1px solid #1e1e1e;
}

.admin-section {
    background: #161616;
    border: 1px solid #2a2a2a;
    margin-bottom: 1rem;
}

/* --- Section header bar --- */
.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1.4rem;
    background: #0d0d0d;
    border-bottom: 1px solid #2a2a2a;
}
.admin-section-title {
    color: #e5b567;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.admin-section-count {
    color: #555;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

/* --- Section body padding --- */
.admin-section-body {
    padding: 1rem 1.4rem 1.2rem;
}

.admin-maintenance-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.admin-maintenance-form { margin-top: 0.75rem; }

.status-badge {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 2px;
}
.status-ok     { color: #4a7c4a; border-color: #2a4a2a; background: #0a150a; }
.status-danger { color: #cc4444; border-color: #5a1a1a; background: #150a0a; }

/* === ADMIN TABLE === */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.admin-table th {
    color: #555;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-align: left;
    padding: 0.45rem 0.75rem;
    border-bottom: 2px solid #2a2a2a;
    background: #111;
    text-transform: uppercase;
}
.admin-expand-header {
    width: 28px;
    padding: 0.45rem 0.4rem !important;
}
.admin-table td {
    padding: 0.5rem 0.75rem;
    color: #aaa;
    border-bottom: 1px solid #1a1a1a;
    vertical-align: middle;
}

/* --- Striped rows --- */
.admin-player-row.row-even { background: #161616; }
.admin-player-row.row-odd  { background: #121212; }

/* --- Clickable row states --- */
.admin-player-row {
    cursor: pointer;
    transition: background 0.1s, border-left-color 0.1s;
    border-left: 3px solid transparent;
}
.admin-player-row:hover {
    background: #1d1d1d !important;
    border-left-color: #555;
}
.admin-player-row.expanded {
    background: #1a1a1a !important;
    border-left-color: #e5b567;
}

/* --- Expand icon cell --- */
.admin-expand-cell {
    color: #333;
    font-size: 0.65rem;
    width: 28px;
    text-align: center;
    padding: 0.5rem 0.4rem !important;
    transition: color 0.1s;
    user-select: none;
}
.admin-player-row:hover .admin-expand-cell { color: #777; }
.admin-player-row.expanded .admin-expand-cell { color: #e5b567; }

/* --- Expanded detail row --- */
.admin-character-detail-row > td {
    background: #0e0e0e;
    padding: 1rem 1.2rem !important;
    border-bottom: 2px solid #2a2a2a;
    border-left: 3px solid #e5b567;
}

.admin-subtable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}
.admin-subtable th {
    color: #444;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-align: left;
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid #1e1e1e;
    text-transform: uppercase;
}
.admin-subtable td {
    padding: 0.32rem 0.5rem;
    color: #888;
    border-bottom: 1px solid #111;
}
.admin-subtable tbody tr:nth-child(odd)  { background: #111; }
.admin-subtable tbody tr:nth-child(even) { background: #0d0d0d; }

/* === ADMIN ACCESS LEVEL === */
.admin-access-level {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid #1e1e1e;
}
.admin-access-level label {
    color: #555;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.admin-access-level select {
    background: #0d0d0d;
    border: 1px solid #333;
    color: #c8b89a;
    padding: 0.25rem 0.5rem;
    font-family: inherit;
    font-size: 0.82rem;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.admin-access-level select:focus { border-color: #e5b567; }

/* ==================== ADMIN — ZONE MANAGEMENT ==================== */

/* Gateway status indicators in table */
.zone-gateway-ok      { color: #4a7c4a !important; }
.zone-gateway-missing { color: #cc4444 !important; font-weight: bold; }

/* Detail panel: side-by-side info + mini-map */
.zone-detail-panel {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.zone-detail-info {
    flex: 1;
    min-width: 0;
}

/* Placement form */
.zone-placement-form {
    margin-top: 0.75rem;
}
.zone-placement-form .form-field {
    margin-bottom: 0.5rem;
}
.zone-placement-form .form-field label {
    display: block;
    color: #555;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}
.zone-placement-form select,
.zone-placement-form input[type="number"] {
    background: #0d0d0d;
    border: 1px solid #333;
    color: #c8b89a;
    padding: 0.3rem 0.5rem;
    font-family: inherit;
    font-size: 0.82rem;
    border-radius: 2px;
    outline: none;
    width: 100%;
}
.zone-placement-form select:focus,
.zone-placement-form input[type="number"]:focus {
    border-color: #e5b567;
}

.zone-coord-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-top: 0.5rem;
}
.zone-coord-row .form-field {
    width: 80px;
    margin-bottom: 0;
}
.zone-coord-row .btn-wasteland {
    white-space: nowrap;
    margin-bottom: 0;
}

.zone-placement-ok {
    color: #4a7c4a;
    font-size: 0.78rem;
    margin-top: 0.4rem;
}

/* ── Mini-map ───────────────────────────────────────────────────── */
.zone-minimap-container {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.zone-minimap-title {
    color: #555;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}
.zone-minimap {
    display: grid;
    grid-template-columns: repeat(var(--map-cols, 60), 4px);
    grid-template-rows: repeat(var(--map-rows, 60), 4px);
    gap: 0;
    border: 1px solid #2a2a2a;
    background: #0a0a0a;
    cursor: crosshair;
    overflow: hidden;
    max-width: 420px;
    max-height: 420px;
}

/* Map cells */
.mc {
    width: 4px;
    height: 4px;
    background: #111;
    transition: background 0.05s;
}
.mc:hover          { background: #2a2a2a; }
.mc-deep_water     { background: #0a1530; }
.mc-water          { background: #102844; }
.mc-grassland      { background: #1a3a1a; }
.mc-forest         { background: #0e2a0e; }
.mc-road           { background: #3a2810; }
.mc-mountain       { background: #2a2a2a; }
.mc-plains         { background: #151a15; }
.mc-blocked        { background: #1a1210; }
.mc-poi            { background: #4a7c4a; }
.mc-hub            { background: #e5b567; }
.mc-current        { background: #5e9bcf; box-shadow: 0 0 3px #5e9bcf; }
.mc-target         { background: #e74c3c; box-shadow: 0 0 4px #e74c3c; }

/* Legend below mini-map */
.zone-minimap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.35rem;
    font-size: 0.65rem;
    color: #555;
}
.zone-minimap-legend > span { display: flex; align-items: center; gap: 0.25rem; }

.mc-swatch {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 1px;
}
.mc-swatch-hub      { background: #e5b567; }
.mc-swatch-poi      { background: #4a7c4a; }
.mc-swatch-current  { background: #5e9bcf; }
.mc-swatch-target   { background: #e74c3c; }
.mc-swatch-blocked  { background: #1a1210; }
.mc-swatch-grassland{ background: #1a3a1a; }
.mc-swatch-forest   { background: #0e2a0e; }
.mc-swatch-water    { background: #102844; }
.mc-swatch-road     { background: #3a2810; }
.mc-swatch-mountain { background: #2a2a2a; }

/* ── Create Zone Form ────────────────────────────────────────────── */
.create-zone-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.4rem;
    background: #0f130f;
    border-bottom: 1px solid #1e2e1e;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}
.create-zone-toggle:hover { background: #141a14; }
.create-zone-toggle-title {
    color: #4a7c4a;
    font-size: 0.77rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.create-zone-form {
    padding: 1.1rem 1.4rem 0.9rem;
    background: #101510;
    border-bottom: 2px solid #2a2a2a;
}
.create-zone-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.3rem;
}
.create-zone-form-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.create-zone-form-field {
    display: flex;
    flex-direction: column;
}
.create-zone-form-field label {
    color: #4a6a4a;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}
.create-zone-form-field input[type="text"],
.create-zone-form-field input[type="number"],
.create-zone-form-field textarea,
.create-zone-form-field select {
    background: #0a0f0a;
    border: 1px solid #2a3a2a;
    color: #c8b89a;
    padding: 0.3rem 0.5rem;
    font-family: inherit;
    font-size: 0.82rem;
    border-radius: 2px;
    outline: none;
    resize: vertical;
}
.create-zone-form-field input:focus,
.create-zone-form-field textarea:focus,
.create-zone-form-field select:focus { border-color: #4a7c4a; }
.create-zone-level-row {
    display: flex;
    gap: 0.5rem;
}
.create-zone-level-row .create-zone-form-field { flex: 1; }
.create-zone-level-row .create-zone-form-field input[type="number"] { width: 100%; }
.create-zone-divider {
    color: #2a4a2a;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0.8rem 0 0.7rem;
    overflow: hidden;
    white-space: nowrap;
}
.create-zone-actions {
    margin-top: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px solid #1a2a1a;
}
.create-zone-btn-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-top: 0.5rem;
}
.btn-secondary {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #555;
    font-family: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    padding: 0.4rem 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: #444; color: #888; }


.attr-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.5rem 0;
}

.attr-row {
    display: grid;
    grid-template-columns: 3.5rem 1.5rem 2rem 1.5rem 2.5rem 1fr;
    align-items: center;
    gap: 0.25rem;
}

.attr-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #7ecf7e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.attr-btn {
    background: #1e2a1e;
    border: 1px solid #3a5a3a;
    color: #7ecf7e;
    font-size: 0.8rem;
    line-height: 1;
    padding: 0.1rem 0.3rem;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s;
}
.attr-btn:hover:not(:disabled) { background: #2e4a2e; }
.attr-btn:disabled { opacity: 0.35; cursor: default; }

.attr-val {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: #e0e0e0;
    text-align: center;
}

.attr-mod {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    min-width: 2rem;
    text-align: center;
}
.mod-pos  { color: #7ecf7e; }
.mod-zero { color: #888; }
.mod-neg  { color: #e07070; }

.attr-desc {
    font-size: 0.65rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attr-preview {
    display: flex;
    gap: 1.5rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: #a0c0a0;
    background: #0f1a0f;
    border: 1px solid #2a3a2a;
    border-radius: 3px;
    padding: 0.4rem 0.6rem;
    margin: 0.4rem 0;
}

.attr-budget {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    text-align: center;
    padding: 0.25rem;
    border-radius: 3px;
    margin-bottom: 0.25rem;
}
.budget-ok   { color: #7ecf7e; background: #0f2a0f; }
.budget-warn { color: #e0a060; background: #2a1a0a; }

.attr-note {
    font-size: 0.65rem;
    color: #556655;
    text-align: center;
    margin-bottom: 0.4rem;
}

.attr-error {
    font-size: 0.75rem;
    color: #e07070;
    text-align: center;
    margin-top: 0.25rem;
}

/* ==================== ADMIN — BRANCH MANAGEMENT ==================== */

.admin-branches-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 1.4rem;
    background: #111;
    border-bottom: 1px solid #1e1e1e;
}

.admin-branch-tier-header {
    padding: 0.5rem 1.4rem;
    color: #e5b567;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: #0d0d0d;
    border-bottom: 1px solid #1e1e1e;
    border-top: 1px solid #1e1e1e;
    margin-top: 0.5rem;
}
.admin-branch-tier-header:first-of-type { margin-top: 0; }

.admin-branch-placeholder {
    padding: 1rem 1.4rem;
    background: #0f0f0f;
    border-bottom: 1px solid #1a1a1a;
}

/* ── Branch edit panel (expanded detail row) ───────────────────── */
.branch-edit-panel {
    padding: 0.25rem 0.25rem 0.75rem;
}

.branch-edit-header {
    color: #e5b567;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #2a2a2a;
}

.branch-edit-meta {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.branch-boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.branch-box-edit {
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.branch-box-slot {
    color: #e5b567;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #222;
}

.branch-box-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.branch-bonus-error {
    display: block;
    color: #cc4444;
    font-size: 0.68rem;
    margin-top: 0.2rem;
}

.branch-edit-keys {
    color: #444;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.5rem;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
}

.branch-edit-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Shared form-field style (used in branch panels too) */
.branch-edit-panel .form-field,
.branch-box-edit .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.branch-edit-panel .form-field label,
.branch-box-edit .form-field label {
    color: #555;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.branch-edit-panel .form-field input,
.branch-edit-panel .form-field textarea,
.branch-edit-panel .form-field select,
.branch-box-edit .form-field input,
.branch-box-edit .form-field textarea {
    background: #111;
    border: 1px solid #2a2a2a;
    color: #c8b89a;
    padding: 0.3rem 0.5rem;
    font-family: inherit;
    font-size: 0.8rem;
    border-radius: 2px;
    outline: none;
    width: 100%;
    resize: vertical;
}
.branch-edit-panel .form-field input:focus,
.branch-edit-panel .form-field textarea:focus,
.branch-edit-panel .form-field select:focus,
.branch-box-edit .form-field input:focus,
.branch-box-edit .form-field textarea:focus {
    border-color: #e5b567;
}

/* ── Create Branch Modal ────────────────────────────────────────── */
.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal {
    background: #161616;
    border: 1px solid #3a3a3a;
    border-top: 2px solid #e5b567;
    max-width: 860px;
    width: calc(100% - 2rem);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.2rem;
    background: #0d0d0d;
    border-bottom: 1px solid #2a2a2a;
    color: #e5b567;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.admin-modal-close {
    background: transparent;
    border: 1px solid #333;
    color: #555;
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    cursor: pointer;
    line-height: 1.4;
    transition: color 0.1s, border-color 0.1s;
}
.admin-modal-close:hover { color: #cc4444; border-color: #cc4444; }

.admin-modal-body {
    padding: 1rem 1.2rem 0.5rem;
    flex: 1;
}

.admin-create-divider {
    color: #555;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0.75rem 0 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #1e1e1e;
}

.branch-create-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.admin-modal-footer {
    padding: 0.75rem 1.2rem 1rem;
    border-top: 1px solid #1e1e1e;
    background: #111;
    flex-shrink: 0;
}

.admin-modal-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.5rem;
}

/* Modal form fields share the branch-box-edit field style */
.admin-modal .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.admin-modal .form-field label {
    color: #555;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.admin-modal .form-field input,
.admin-modal .form-field textarea,
.admin-modal .form-field select {
    background: #111;
    border: 1px solid #2a2a2a;
    color: #c8b89a;
    padding: 0.3rem 0.5rem;
    font-family: inherit;
    font-size: 0.8rem;
    border-radius: 2px;
    outline: none;
    width: 100%;
    resize: vertical;
}
.admin-modal .form-field input:focus,
.admin-modal .form-field textarea:focus,
.admin-modal .form-field select:focus {
    border-color: #e5b567;
}

