/* MudAxis: dense operational records, with fluid-layer brand geometry. */
:root { --bg:#f3f6f8; --surface:#fff; --surface-2:#eaf0f4; --text:#132c42; --muted:#526575; --line:#d6e0e7; --border:var(--line); --accent:#17679b; --accent-dark:#11557f; --teal:#087f83; --radius:5px; --shadow:none; --control-height:34px; font-family:"Segoe UI",Arial,system-ui,sans-serif; }
html[data-theme="dark"] { --bg:#101b25; --surface:#162632; --surface-2:#203440; --text:#edf4f8; --muted:#a9bdca; --line:#36505f; --accent:#76bce5; --accent-dark:#95cee9; --teal:#6bd0c5; --shadow:none; }
body { font-size:14px; }
.brand { font-size:21px; letter-spacing:-.035em; }
.brand-symbol { width:32px; height:32px; flex:none; }
.brand-mark { border-radius:0; background:none; }
.brand-mark img { width:30px; height:30px; }
.topbar, html[data-theme="dark"] .topbar { background:var(--surface); }
.page { padding-top:22px; }
.page-heading { gap:16px; margin-bottom:18px; align-items:center; }
.page-heading h1 { font-size:25px; letter-spacing:-.025em; }
.page-heading p { margin-top:4px; font-size:13px; }
.eyebrow { text-transform:none; letter-spacing:0; font-size:12px; color:var(--muted); }
.panel { padding:16px; margin-bottom:14px; }
.section-heading { margin-bottom:12px; }
.section-heading h2 { font-size:16px; }
.section-heading p { font-size:12px; }
.primary-button,.secondary-button,.danger-button,.menu-button,.theme-toggle { min-height:34px; border-radius:4px; padding:6px 10px; font-size:12px; line-height:1.4; font-weight:650; }
.primary-button { background:#17679b; color:#fff; }
.primary-button:hover { background:#11557f; }
html[data-theme="dark"] .primary-button { background:#17679b; color:#fff; }
html[data-theme="dark"] .primary-button:hover { background:#11557f; }
.badge { min-height:21px; border-radius:3px; padding:2px 6px; font-size:11px; }
.badge-success { color:#08625f; background:#e5f4f1; border-color:#acd5ce; }
html[data-theme="dark"] .badge-success { color:#9de5d8; background:#193d3b; border-color:#3c6b65; }
.table-wrap { border-radius:4px; }
.data-table th { text-transform:none; letter-spacing:0; font-weight:650; font-size:12px; background:var(--surface-2); }
.data-table th,.data-table td { padding:10px 12px; }
.data-table td { font-size:13px; vertical-align:middle; }
.data-table tbody tr:hover { background:var(--surface-2); }
.data-table .row-actions { flex-wrap:nowrap; gap:5px; }
.cell-note,.mobile-record-meta { display:block; color:var(--muted); font-size:12px; font-weight:400; margin-top:3px; }
.mobile-record-meta { display:none; }
.record-actions { width:1%; white-space:nowrap; }
.record-primary strong { font-size:13px; }
.record-table { min-width:0; }
.record-table td { overflow-wrap:anywhere; }
.record-table .text-link { white-space:normal; }
.record-table-wrap { overflow:visible; }
.list-toolbar { gap:8px; margin-bottom:12px; }
.list-toolbar label { flex:1 1 150px; font-size:11px; }
.list-toolbar input,.list-toolbar select { min-height:34px; padding:6px 9px; border-radius:4px; margin-top:3px; font-size:13px; }
.list-toolbar label:nth-child(2) { flex:0 1 150px; }
.list-toolbar p { margin:0 3px 8px 0; font-size:11px; }
.list-toolbar button { min-height:34px; }
.create-drawer:not([open]) { display:none; }
.create-drawer summary { font-size:16px; font-weight:650; cursor:pointer; margin-bottom:14px; }
.create-drawer .section-heading h2 { display:none; }
.create-drawer { border-color:var(--accent); }
.form-grid { gap:12px; }
.form-grid input,.form-grid select,.form-grid textarea { border-radius:4px; min-height:38px; }
.management-row { padding:10px 0; gap:12px; }
.management-main > strong { font-size:14px; }
.management-main > p { font-size:12px; margin:2px 0 4px; }
.responsive-list { gap:0; }
.action-menu { position:relative; }
.action-menu > summary { list-style:none; border:1px solid var(--line); border-radius:4px; min-width:34px; min-height:34px; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:13px; }
.action-menu > summary::-webkit-details-marker { display:none; }
.action-menu-content { position:absolute; right:0; top:calc(100% + 4px); background:var(--surface); border:1px solid var(--line); padding:8px; z-index:12; min-width:185px; box-shadow:0 4px 12px #102c4220; display:grid; gap:7px; white-space:normal; }
.action-menu-content button,.action-menu-content a { width:100%; justify-content:flex-start; }
.action-menu:not([open]) .action-menu-content { display:none; }
.action-menu-content.action-menu-portal { position:fixed; z-index:90; overflow-y:auto; overscroll-behavior:contain; box-sizing:border-box; right:auto; min-width:185px; }
.action-menu-content[hidden] { display:none; }
.action-menu-content.action-menu-portal a,.action-menu-content.action-menu-portal button { min-height:44px; }
.backup-history { min-width:780px; }
.backup-history td { white-space:normal; vertical-align:top; }
.backup-history td:last-child { min-width:185px; }
.backup-history td:last-child > * { margin:2px; }
.detail-grid { gap:14px; }
.detail-grid > .detail-card { margin-bottom:0; }
.detail-grid { margin-bottom:14px; }
.kv-grid { gap:12px 16px; }
.kv-grid dt { font-size:11px; }
.kv-grid dd { font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
.well-information-grid { grid-template-columns:1fr; }
.well-information-grid .kv-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.report-actions-panel { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.report-actions-copy { max-width:650px; font-size:12px; }
.report-actions-copy strong,.report-actions-copy span { display:block; }
.heading-actions { flex-wrap:wrap; }
.report-control-actions { flex:none; }
.equipment-card { border-radius:4px; padding:12px; }
.equipment-label { text-transform:none; letter-spacing:0; }
.empty-state { padding:20px; border-radius:4px; font-size:13px; }
.stat-card { padding:14px 16px; border-radius:5px; }
.stat-card strong { font-size:27px; margin-top:4px; }
.auth-shell { min-height:calc(100dvh - 60px); }
.login-panel { border-radius:6px; padding:24px; }
.login-panel h1 { font-size:24px; }
.login-toolbar { margin-bottom:20px; }
.login-panel > p { font-size:13px; }
.brand-tagline { display:block; margin-top:4px; font-size:11px; font-weight:400; color:var(--muted); letter-spacing:0; }
.info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 20px; margin:12px 0; }
.info-grid > div { min-width:0; }
.info-grid dt { color:var(--muted); font-size:11px; }
.info-grid dd { margin:3px 0 0; font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.filter-bar { display:flex; gap:8px; flex-wrap:wrap; align-items:flex-end; margin-top:12px; }
.filter-bar label { display:grid; gap:4px; color:var(--muted); font-size:12px; }
.filter-bar input { min-height:34px; width:180px; max-width:100%; border:1px solid var(--line); border-radius:4px; padding:6px 9px; color:var(--text); background:var(--surface); }
@media(min-width:1024px) {
 .authenticated .topbar { min-height:60px; padding:8px 24px; }
 .authenticated .brand { top:17px; left:20px; }
 .authenticated .desktop-nav { padding-top:80px; gap:4px; }
 .desktop-nav a { padding:10px 12px; border-radius:4px; font-size:13px; }
 .desktop-nav a.active { border-left:0; color:var(--accent-dark); background:var(--surface-2); }
 .authenticated .page { width:calc(100% - 40px); }
}
@media(max-width:1023px) {
 .topbar { min-height:58px; padding:calc(8px + env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 8px max(14px,env(safe-area-inset-left)); gap:12px; }
 .mobile-nav { position:static; max-height:none; box-shadow:none; }
 .brand { font-size:20px; }
 .topbar .brand { position:static; }
 .well-information-grid .kv-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
 .page { width:calc(100% - 24px); padding:18px 0 calc(32px + env(safe-area-inset-bottom)); }
 .page-heading { display:flex; align-items:flex-start; flex-wrap:wrap; margin-bottom:16px; }
 .page-heading h1 { font-size:23px; }
 .page-heading > .primary-button { margin-top:0; }
 .panel { padding:12px; }
 .list-toolbar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .list-toolbar label,.list-toolbar label:nth-child(2) { min-width:0; }
 .list-toolbar p { grid-column:1/-1; margin:0; }
 .list-toolbar button { min-height:44px; }
 .record-table { display:block; width:100%; }
 .record-table thead { display:none; }
 .record-table tbody { display:block; width:100%; }
 .record-table tr { display:grid; width:100%; min-width:0; grid-template-columns:minmax(0,1fr) auto; align-items:center; border-bottom:1px solid var(--line); padding:10px; gap:8px; }
 .record-table tr:last-child { border-bottom:0; }
 .record-table td { display:block; padding:0; border:0; max-width:none; min-width:0; }
 .record-table .record-secondary { display:none; }
 .record-table .record-actions { width:auto; white-space:normal; }
 .record-table .record-primary { min-width:0; }
 .mobile-record-meta { display:block; font-size:11px; line-height:1.6; }
 .record-table .row-actions { width:auto; flex-wrap:wrap; justify-content:flex-end; max-width:150px; gap:5px; }
 .record-table .row-actions > a,.record-table .row-actions button,.record-table .secondary-button,.record-table .action-menu > summary { min-height:44px; font-size:11px; padding:7px 9px; }
 .record-table .action-menu > summary { padding:7px; }
 .report-table tr { grid-template-columns:minmax(0,1fr) 132px; }
 .report-table .row-actions { flex-wrap:nowrap; gap:4px; }
 .project-table .row-actions { max-width:none; flex-wrap:nowrap; }
 .project-table .action-menu { width:44px; min-width:0; flex:none; }
 .management-row { flex-direction:row; align-items:center; gap:10px; }
 .management-row .row-actions { width:auto; flex:0 0 auto; max-width:145px; justify-content:flex-end; gap:5px; }
 .management-row .row-actions > a,.management-row .row-actions button { min-height:44px; font-size:11px; }
 .kv-grid,.well-information-grid .kv-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .report-heading .heading-actions { width:auto; margin-top:0; gap:6px; }
 .report-heading .heading-actions .primary-button,.report-heading .heading-actions .secondary-button { flex:none; }
 .report-actions-panel { flex-wrap:wrap; gap:10px; }
 .report-control-actions { width:auto; }
 .heading-actions { gap:6px; margin-top:0; }
 .form-actions > button,.primary-button,.secondary-button,.danger-button,.menu-button,.theme-toggle { min-height:44px; }
 .action-menu > summary { min-height:44px; min-width:44px; }
 .stats-grid .stat-card:last-child { grid-column:auto; }
 .form-grid { grid-template-columns:1fr; }
 .security-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .info-grid { gap:12px; }
 .filter-bar input { min-height:44px; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; transition:none !important; } }
