:root {
    --lm-primary: #0f7a52;
    --lm-primary-strong: #095f3f;
    --lm-primary-soft: #e9f7f0;
    --lm-primary-softer: #f4fbf7;
    --lm-bg: #f5f7f8;
    --lm-surface: #ffffff;
    --lm-text: #15211b;
    --lm-muted: #6f7b75;
    --lm-border: #e4e9e6;
    --lm-border-strong: #d8dfdb;
    --lm-shadow: 0 10px 30px rgba(20, 52, 38, .08);
    --lm-shadow-sm: 0 4px 14px rgba(20, 52, 38, .06);
    --lm-radius-sm: 10px;
    --lm-radius: 16px;
    --lm-radius-lg: 22px;
    --lm-available: #2f9e69;
    --lm-available-soft: #e9f8f0;
    --lm-reserved: #dcae24;
    --lm-reserved-soft: #fff7dc;
    --lm-playing: #dc4d52;
    --lm-playing-soft: #fff0f0;
    --lm-warning: #ed8a28;
    --lm-warning-soft: #fff2df;
    --lm-maintenance: #7b8790;
    --lm-maintenance-soft: #eef1f3;
    --lm-overtime: #b42335;
    --lm-overtime-soft: #fde9ec;
    --lm-manual: #2879c7;
    --lm-manual-soft: #edf5fd;
    --lm-matic: #7a4cc2;
    --lm-matic-soft: #f3edfb;
    --lm-header-height: 72px;
    --lm-desktop-nav-width: 238px;
    --lm-bottom-nav-height: 72px;
    --lm-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--lm-bg);
    color: var(--lm-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.lm-app { min-height: 100vh; }
.lm-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--lm-header-height);
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--lm-border);
    backdrop-filter: blur(14px);
}
.lm-header-inner {
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.lm-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.lm-brand-mark {
    flex: 0 0 auto;
    width: 40px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbe7d9;
    border-radius: 10px;
    color: var(--lm-primary);
    background: linear-gradient(145deg, #fff 0%, #eaf8f0 100%);
    font-family: Georgia, serif;
    font-weight: 800;
    font-size: 22px;
    box-shadow: 0 6px 12px rgba(15,122,82,.10);
    transform: rotate(-4deg);
}
.lm-brand-mark-lg { width: 52px; height: 58px; font-size: 29px; border-radius: 14px; }
.lm-brand-copy { display: flex; flex-direction: column; min-width: 0; }
.lm-brand-copy strong { font-size: 15px; line-height: 1.2; white-space: nowrap; }
.lm-brand-copy small { font-size: 11px; color: var(--lm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-header-actions { display: flex; align-items: center; gap: 10px; }
.lm-clock { align-items: center; gap: 8px; padding-right: 12px; border-right: 1px solid var(--lm-border); }
.lm-clock-icon { color: var(--lm-primary); font-size: 20px; }
.lm-clock > span:last-child { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.lm-clock small { color: var(--lm-muted); font-size: 10px; }
.lm-clock strong { font-size: 14px; }
.lm-user-button { border: 0; padding: 4px 6px; display: inline-flex; gap: 8px; align-items: center; background: transparent; }
.lm-user-button:hover, .lm-user-button:focus { background: var(--lm-primary-softer); }
.lm-user-button strong, .lm-user-button small { display: block; line-height: 1.15; }
.lm-user-button strong { font-size: 12px; }
.lm-user-button small { color: var(--lm-muted); font-size: 10px; }
.lm-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--lm-primary-soft); color: var(--lm-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.lm-dropdown-menu { border: 1px solid var(--lm-border); border-radius: 14px; box-shadow: var(--lm-shadow); padding: 8px; }
.lm-dropdown-menu .dropdown-item { border-radius: 8px; padding: 9px 11px; font-size: 13px; }

.lm-shell { display: flex; min-height: calc(100vh - var(--lm-header-height)); }
.lm-desktop-nav { display: none; }
.lm-main { flex: 1 1 auto; min-width: 0; padding-bottom: calc(var(--lm-bottom-nav-height) + var(--lm-safe-bottom) + 18px); }
.lm-page { max-width: 1460px; margin: 0 auto; padding: 18px 14px 26px; }
.lm-page-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.lm-page-head h1 { font-size: clamp(25px, 4vw, 34px); margin: 2px 0 6px; font-weight: 800; letter-spacing: -.03em; }
.lm-page-head p { margin: 0; color: var(--lm-muted); font-size: 13px; max-width: 760px; }
.lm-eyebrow { font-size: 10px; letter-spacing: .13em; font-weight: 800; color: var(--lm-primary); text-transform: uppercase; }
.lm-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.lm-section-head h2 { font-size: 18px; font-weight: 800; margin: 2px 0 0; }
.lm-text-link { color: var(--lm-primary); text-decoration: none; font-size: 12px; font-weight: 700; }

.lm-btn { min-height: 44px; border-radius: 11px; font-weight: 700; font-size: 13px; padding: 9px 15px; }
.btn-success { --bs-btn-bg: var(--lm-primary); --bs-btn-border-color: var(--lm-primary); --bs-btn-hover-bg: var(--lm-primary-strong); --bs-btn-hover-border-color: var(--lm-primary-strong); }
.btn-outline-success { --bs-btn-color: var(--lm-primary); --bs-btn-border-color: #a8d9c2; --bs-btn-hover-bg: var(--lm-primary); --bs-btn-hover-border-color: var(--lm-primary); }
.btn-warning { --bs-btn-bg: #efc34a; --bs-btn-border-color: #efc34a; --bs-btn-color: #4f3d08; }
.btn-light { --bs-btn-bg: #f2f5f3; --bs-btn-border-color: #e5ebe7; --bs-btn-color: #33443a; }

.lm-bottom-nav {
    position: fixed;
    z-index: 1025;
    left: 0; right: 0; bottom: 0;
    height: calc(var(--lm-bottom-nav-height) + var(--lm-safe-bottom));
    padding: 6px 5px calc(6px + var(--lm-safe-bottom));
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--lm-border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    box-shadow: 0 -8px 30px rgba(20, 52, 38, .07);
}
.lm-bottom-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: #7a857f; font-size: 10px; min-width: 0; border-radius: 12px; }
.lm-bottom-link.active { color: var(--lm-primary); background: var(--lm-primary-softer); font-weight: 800; }
.lm-bottom-icon { font-size: 20px; line-height: 1; min-height: 22px; display: inline-flex; align-items: center; }

.lm-status-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.lm-status-strip-item { background: #fff; border: 1px solid var(--lm-border); border-radius: 13px; padding: 10px 11px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 6px; box-shadow: var(--lm-shadow-sm); }
.lm-status-strip-item strong { font-size: 16px; }
.lm-status-strip-item span:last-child { color: var(--lm-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--lm-maintenance); }
.lm-status-dot.available { background: var(--lm-available); }
.lm-status-dot.reserved { background: var(--lm-reserved); }
.lm-status-dot.playing { background: var(--lm-playing); }
.lm-status-dot.warning { background: var(--lm-warning); box-shadow: 0 0 0 4px rgba(237,138,40,.14); }
.lm-status-dot.maintenance { background: var(--lm-maintenance); }
.lm-status-dot.overtime { background: var(--lm-overtime); box-shadow: 0 0 0 4px rgba(180,35,53,.12); }

.lm-table-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.lm-table-card {
    --status-color: var(--lm-available);
    position: relative;
    overflow: hidden;
    background: var(--lm-surface);
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius);
    box-shadow: var(--lm-shadow-sm);
    padding: 14px;
}
.lm-table-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--status-color); }
.lm-table-card.status-reserved { --status-color: var(--lm-reserved); }
.lm-table-card.status-playing { --status-color: var(--lm-playing); }
.lm-table-card.status-warning { --status-color: var(--lm-warning); background: linear-gradient(180deg, #fff 0%, #fffaf3 100%); }
.lm-table-card.status-maintenance { --status-color: var(--lm-maintenance); background: #fafbfb; }
.lm-table-card.status-overtime { --status-color: var(--lm-overtime); background: linear-gradient(180deg, #fff 0%, #fff7f8 100%); }
.lm-table-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lm-table-card h2 { margin: 0; font-size: 18px; font-weight: 800; }
.lm-rate { color: var(--lm-muted); font-size: 12px; margin-top: 3px; }
.lm-rate span { font-size: 10px; }
.lm-type-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.lm-type-badge.manual { color: var(--lm-manual); background: var(--lm-manual-soft); }
.lm-type-badge.matic { color: var(--lm-matic); background: var(--lm-matic-soft); }
.lm-status-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 8px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.lm-status-badge.available { color: #1f7850; background: var(--lm-available-soft); }
.lm-status-badge.reserved { color: #7c6108; background: var(--lm-reserved-soft); }
.lm-status-badge.playing { color: #a52f34; background: var(--lm-playing-soft); }
.lm-status-badge.warning { color: #9b5210; background: var(--lm-warning-soft); }
.lm-status-badge.maintenance { color: #5d6870; background: var(--lm-maintenance-soft); }
.lm-status-badge.overtime { color: #8e1526; background: var(--lm-overtime-soft); }
.lm-table-visual-row { display: grid; grid-template-columns: 68px 1fr; gap: 13px; align-items: center; margin: 14px 0; }
.lm-mini-table { position: relative; width: 64px; height: 52px; border-radius: 10px; transform: perspective(120px) rotateX(8deg); background: linear-gradient(145deg,#158b5b,#086b45); border: 5px solid #6d5139; box-shadow: 0 8px 16px rgba(45,56,50,.15); display: flex; align-items: center; justify-content: center; }
.lm-mini-table span { color: rgba(255,255,255,.74); font-family: Georgia, serif; font-size: 20px; }
.lm-table-meta { min-width: 0; }
.lm-meta-row, .lm-countdown-wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 0; }
.lm-meta-row span, .lm-countdown-wrap span { color: var(--lm-muted); font-size: 10px; }
.lm-meta-row strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-countdown { font-variant-numeric: tabular-nums; font-size: 24px; line-height: 1; letter-spacing: .02em; color: var(--status-color); }
.lm-table-card-footer { display: flex; gap: 8px; align-items: center; }

.lm-panel { background: #fff; border: 1px solid var(--lm-border); border-radius: var(--lm-radius); box-shadow: var(--lm-shadow-sm); padding: 15px; }
.lm-kpi-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.lm-kpi-card { background: #fff; border: 1px solid var(--lm-border); border-radius: var(--lm-radius); padding: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--lm-shadow-sm); }
.lm-kpi-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--lm-primary); background: var(--lm-primary-soft); font-size: 16px; font-weight: 800; }
.lm-kpi-card > div { display: flex; flex-direction: column; min-width: 0; }
.lm-kpi-card span:not(.lm-kpi-icon) { font-size: 11px; color: var(--lm-muted); }
.lm-kpi-card strong { font-size: 19px; line-height: 1.2; margin: 2px 0; }
.lm-kpi-card small { color: var(--lm-muted); font-size: 10px; }
.lm-quick-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }
.lm-quick-card { text-decoration: none; background: #fff; border: 1px solid var(--lm-border); border-radius: 14px; padding: 12px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; box-shadow: var(--lm-shadow-sm); }
.lm-quick-card:hover { border-color: #bddccc; transform: translateY(-1px); }
.lm-quick-card strong { display: block; font-size: 13px; }
.lm-quick-card small { display: block; color: var(--lm-muted); font-size: 10px; margin-top: 2px; }
.lm-quick-icon { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.lm-quick-icon.green { color: var(--lm-primary); background: var(--lm-primary-soft); }
.lm-quick-icon.mint { color: #278d78; background: #e8f9f5; }
.lm-quick-icon.amber { color: #a56b00; background: #fff4d3; }
.lm-quick-icon.purple { color: #7350b7; background: #f1ebfc; }
.lm-quick-icon.blue { color: #2b6eb4; background: #eaf3fc; }
.lm-quick-icon.gray { color: #66736d; background: #eff2f0; }
.lm-activity-list { display: flex; flex-direction: column; }
.lm-activity-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--lm-border); }
.lm-activity-item:last-child { border-bottom: 0; }
.lm-activity-item strong { display: block; font-size: 12px; }
.lm-activity-item small { color: var(--lm-muted); font-size: 10px; }
.lm-activity-item time { color: var(--lm-muted); font-size: 10px; }
.lm-activity-bullet { width: 10px; height: 10px; border-radius: 50%; background: var(--lm-maintenance); }
.lm-activity-bullet.success { background: var(--lm-available); }
.lm-activity-bullet.warning { background: var(--lm-warning); }
.lm-activity-bullet.reserved { background: var(--lm-reserved); }
.lm-activity-bullet.playing { background: var(--lm-playing); }
.lm-status-summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lm-status-summary { border: 1px solid var(--lm-border); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 7px; align-items: center; }
.lm-status-summary span:nth-child(2) { color: var(--lm-muted); font-size: 11px; }
.lm-status-summary strong { font-size: 17px; }
.lm-summary-stack { display: flex; flex-direction: column; }
.lm-summary-stack > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--lm-border); padding: 11px 0; }
.lm-summary-stack > div:last-child { border-bottom: 0; }
.lm-summary-stack span { color: var(--lm-muted); font-size: 11px; }
.lm-summary-stack strong { font-size: 12px; }
.lm-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.lm-chip.success { color: var(--lm-primary); background: var(--lm-primary-soft); }
.lm-chart-wrap { min-height: 220px; }

.lm-control { min-height: 48px; border-radius: 11px; border-color: var(--lm-border-strong); font-size: 13px; padding: 10px 12px; }
.lm-control:focus { border-color: #75bc99; box-shadow: 0 0 0 .2rem rgba(15,122,82,.12); }
textarea.lm-control { min-height: 96px; }
.form-label { font-size: 12px; font-weight: 700; color: #37453d; }
.form-check-input:checked { background-color: var(--lm-primary); border-color: var(--lm-primary); }
.lm-summary-card { border: 1px solid var(--lm-border); border-radius: 13px; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lm-summary-card h3 { font-size: 15px; margin: 6px 0 2px; font-weight: 800; }
.lm-summary-card p { margin: 0; color: var(--lm-muted); font-size: 11px; }
.lm-summary-card > strong { color: var(--lm-primary); white-space: nowrap; }

.lm-alert { display: flex; align-items: flex-start; gap: 10px; border-radius: 12px; border: 1px solid; padding: 12px 13px; font-size: 12px; }
.lm-alert strong { font-size: 12px; }
.lm-alert span { color: #536159; }
.lm-alert-icon { flex: 0 0 auto; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 900; }
.lm-alert-info { background: #eff7fc; border-color: #d7eaf6; color: #275f82; }
.lm-alert-info .lm-alert-icon { background: #dfeff9; color: #276b92; }
.lm-alert-success { background: var(--lm-available-soft); border-color: #ccebdc; color: #236b49; }
.lm-alert-success .lm-alert-icon { background: #d7f0e3; color: var(--lm-primary); }
.lm-alert-warning { background: var(--lm-warning-soft); border-color: #f3d8b6; color: #8b541c; }
.lm-alert-warning .lm-alert-icon { background: #f8e0bf; color: #9e5917; }
.lm-alert-danger { background: var(--lm-playing-soft); border-color: #f1cfd0; color: #8b2b30; }
.lm-alert-danger .lm-alert-icon { background: #f7dcdd; color: #a32c32; }

.lm-modal-content { border: 0; border-radius: 18px; box-shadow: 0 20px 60px rgba(20, 52, 38, .2); }
.lm-summary-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--lm-border); padding: 10px 0; font-size: 12px; }
.lm-summary-row:last-child { border-bottom: 0; }
.lm-summary-row span { color: var(--lm-muted); }

/* Login */
.lm-login-page { min-height: 100vh; background: #eff7f2; }
.lm-login-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.lm-login-visual { min-height: 250px; position: relative; overflow: hidden; padding: 22px; background: radial-gradient(circle at 78% 10%, #d6f0e1 0, transparent 36%), linear-gradient(145deg, #f5fbf7 0%, #e7f5ed 100%); }
.lm-login-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.lm-login-brand div { display: flex; flex-direction: column; }
.lm-login-brand strong { font-size: 17px; }
.lm-login-brand span:last-child { color: var(--lm-muted); font-size: 11px; }
.lm-login-hero-card { max-width: 520px; margin: 34px auto 0; position: relative; z-index: 2; text-align: center; }
.lm-login-hero-card h1 { font-size: clamp(23px, 6vw, 36px); font-weight: 850; letter-spacing: -.04em; margin: 22px 0 8px; }
.lm-login-hero-card p { color: var(--lm-muted); font-size: 12px; max-width: 440px; margin: auto; }
.lm-login-caption { position: absolute; left: 22px; bottom: 16px; color: #769084; }
.lm-table-illustration { width: 150px; height: 95px; margin: 0 auto; position: relative; }
.lm-table-illustration .table-top { position: absolute; left: 27px; right: 27px; bottom: 7px; height: 62px; border-radius: 12px; background: linear-gradient(145deg, #178e5f, #0b6947); border: 9px solid #7a5b3e; transform: perspective(180px) rotateX(16deg); box-shadow: 0 18px 24px rgba(15,77,53,.18); }
.lm-table-illustration .tile { position: absolute; z-index: 3; width: 30px; height: 38px; border-radius: 5px; background: #fff; border: 1px solid #cddbd3; display: inline-flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-weight: 800; box-shadow: 0 5px 9px rgba(0,0,0,.09); }
.lm-table-illustration .tile-a { left: 22px; top: 10px; transform: rotate(-13deg); color: #3371a6; }
.lm-table-illustration .tile-b { left: 60px; top: 0; color: var(--lm-primary); }
.lm-table-illustration .tile-c { right: 22px; top: 12px; transform: rotate(12deg); color: #bd3239; }
.lm-login-panel { background: #fff; display: flex; align-items: center; justify-content: center; padding: 28px 18px; }
.lm-login-form-wrap { width: min(100%, 440px); }
.lm-login-form-wrap h2 { font-size: 27px; font-weight: 850; letter-spacing: -.03em; }
.lm-login-form-wrap p { font-size: 12px; }
.lm-demo-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; color: #8a958f; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.lm-demo-divider::before, .lm-demo-divider::after { content: ""; height: 1px; flex: 1; background: var(--lm-border); }

@media (min-width: 480px) {
    .lm-table-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .lm-kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .lm-quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (min-width: 768px) {
    .lm-header-inner { padding-inline: 22px; }
    .lm-page { padding: 24px 20px 34px; }
    .lm-page-head { flex-direction: row; align-items: center; justify-content: space-between; }
    .lm-page-head p { font-size: 14px; }
    .lm-status-strip { grid-template-columns: repeat(5, 1fr); }
    .lm-table-grid { gap: 14px; }
    .lm-kpi-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .lm-quick-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .lm-panel { padding: 18px; }
    .lm-login-shell { grid-template-columns: minmax(0,1.1fr) minmax(430px,.9fr); }
    .lm-login-visual { min-height: 100vh; padding: 34px; }
    .lm-login-hero-card { margin-top: 18vh; }
    .lm-login-panel { padding: 40px; }
}

@media (min-width: 992px) {
    .lm-table-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .lm-table-card { padding: 15px; }
}

@media (min-width: 1200px) {
    .lm-bottom-nav { display: none; }
    .lm-main { padding-bottom: 0; }
    .lm-desktop-nav {
        width: var(--lm-desktop-nav-width);
        flex: 0 0 var(--lm-desktop-nav-width);
        position: sticky;
        top: var(--lm-header-height);
        height: calc(100vh - var(--lm-header-height));
        display: flex;
        flex-direction: column;
        background: #fff;
        border-right: 1px solid var(--lm-border);
        padding: 16px 12px;
    }
    .lm-desktop-nav-list { display: flex; flex-direction: column; gap: 4px; }
    .lm-nav-link { display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 9px 11px; border-radius: 11px; text-decoration: none; color: #66736d; font-size: 13px; font-weight: 700; }
    .lm-nav-link:hover { background: #f5f8f6; color: var(--lm-primary); }
    .lm-nav-link.active { background: var(--lm-primary-soft); color: var(--lm-primary); }
    .lm-nav-icon { width: 24px; text-align: center; font-weight: 900; font-size: 17px; }
    .lm-nav-section-label { color: #98a19c; font-size: 9px; letter-spacing: .13em; font-weight: 800; padding: 0 11px 6px; }
    .lm-admin-nav { border-top: 1px solid var(--lm-border); margin-top: 14px; padding-top: 14px; }
    .lm-nav-footer { margin-top: auto; padding: 12px 11px; border-radius: 11px; background: #f7faf8; color: var(--lm-muted); font-size: 10px; display: flex; align-items: center; gap: 7px; }
    .lm-page { padding: 28px 26px 40px; }
    .lm-table-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (max-width: 380px) {
    .lm-brand-copy small { display: none; }
    .lm-bottom-link { font-size: 9px; }
    .lm-table-visual-row { grid-template-columns: 54px 1fr; }
    .lm-mini-table { width: 52px; height: 44px; }
    .lm-status-strip { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.lm-settings-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.lm-settings-card { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; text-decoration: none; background: #fff; border: 1px solid var(--lm-border); border-radius: var(--lm-radius); padding: 14px; box-shadow: var(--lm-shadow-sm); }
.lm-settings-card:hover { border-color: #bddccc; transform: translateY(-1px); }
.lm-settings-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--lm-primary-soft); color: var(--lm-primary); font-weight: 900; }
.lm-settings-card h2 { margin: 0 0 3px; font-size: 14px; font-weight: 800; }
.lm-settings-card p { margin: 0; color: var(--lm-muted); font-size: 11px; }
.lm-settings-arrow { color: #9aa49f; font-size: 24px; }
@media (min-width: 768px) { .lm-settings-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
