:root{--accent:#ed151b;--accent-dark:#c70f14;--bg:#f5f5f5;--card:#fff;--text:#222;--ink:#222;--muted:#707070;--line:#e2e2e2;--blue:#2e6da4;--shadow:0 5px 18px rgba(0,0,0,.07);--fatm-red:#ed151b}
html{scroll-behavior:smooth}
body{margin:0!important;background:var(--bg)!important;color:var(--text)!important;font-family:Arial,Helvetica,sans-serif!important;line-height:1.45!important;font-size:14px}
a{color:inherit}.shell,.wrap,.fatm-page{max-width:1180px!important;margin-left:auto!important;margin-right:auto!important;padding-left:24px!important;padding-right:24px!important}
main.shell{padding-top:22px!important;padding-bottom:28px!important}
.hero{margin:0 0 20px!important;padding:25px 0 22px!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;box-shadow:none!important;display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:18px!important}
.hero.compact{padding-top:22px!important;padding-bottom:19px!important}
.hero h1,.fatm-page-title{margin:0!important;color:#171717!important;font-size:clamp(27px,3.7vw,39px)!important;line-height:1.08!important;font-weight:800!important;letter-spacing:-.025em!important}
.hero h1:after,.fatm-page-title:after{content:"";display:block;width:68px;height:4px;background:var(--accent);margin:14px 0 9px}
.hero p{margin:0!important;color:var(--muted)!important;font-size:13px!important}
.hero-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
.panel,.filter-panel,.table-card,.fatm-card{background:#fff!important;border:1px solid var(--line)!important;border-radius:0!important;box-shadow:var(--shadow)!important;padding:17px!important}
.panel{margin-bottom:16px!important}
.panel h2,.panel h3,.filter-panel h2,.table-card h2{color:#222!important;font-weight:800!important}
.panel h2,.filter-panel h2,.table-card h2{margin:0 0 14px!important;font-size:18px!important;padding-bottom:10px!important;border-bottom:2px solid #222!important}
.panel h2:after,.filter-panel h2:after,.table-card h2:after{content:"";display:block;width:44px;height:3px;background:var(--accent);margin-top:8px;margin-bottom:-13px}
.panel h3{margin:0 0 10px!important;font-size:17px!important}
label{color:#333!important;font-weight:700}
input[type=text],input[type=password],input[type=number],input[type=date],input[type=time],input[type=email],select,textarea{min-height:40px!important;padding:9px 10px!important;border:1px solid #cfcfcf!important;border-radius:2px!important;background:#fff!important;color:#222!important;font:inherit!important}
input:focus,select:focus,textarea:focus{outline:none!important;border-color:var(--accent)!important;box-shadow:0 0 0 1px var(--accent)!important}
.btn,button,input[type=submit],input[type=button]{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:10px 14px!important;border:1px solid #222!important;border-radius:2px!important;background:#222!important;color:#fff!important;font:700 13px Arial,Helvetica,sans-serif!important;text-decoration:none!important;cursor:pointer!important}
.btn:hover,button:hover,input[type=submit]:hover,input[type=button]:hover{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important}
.btn.secondary{background:#fff!important;color:#222!important;border-color:var(--line)!important}.btn.secondary:hover{background:#f4f4f4!important;color:var(--accent)!important}
.table-scroll,.scroll{overflow-x:auto!important;max-width:100%!important;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;background:#fff;color:#222}
thead th,table th{padding:10px 9px!important;background:#262626!important;color:#fff!important;border-bottom:3px solid var(--accent)!important;font-size:11px!important;text-transform:uppercase;letter-spacing:.025em}
tbody td,table td{padding:10px 9px!important;border-bottom:1px solid #e7e7e7!important;vertical-align:middle}
tbody tr:nth-child(even) td{background:#fafafa}tbody tr:hover td{background:#fff6f6}
.calendar-grid,.form-grid,.fields-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.calendar-field,.form-field{min-width:0;padding:13px!important;background:#fafafa!important;border:1px solid #e5e5e5!important}
.calendar-field label,.form-field label{display:block;margin-bottom:6px}.calendar-field select,.calendar-field input,.form-field select,.form-field input{width:100%!important}
.calendar-note,.help,.status{color:var(--muted)!important;font-size:12px!important}.calendar-actions,.form-actions{display:flex!important;gap:9px!important;flex-wrap:wrap!important;margin-top:16px!important}
.fatm-results>nav{display:flex!important;gap:7px!important;flex-wrap:wrap!important;align-items:center!important;padding:12px 14px!important;margin:12px 0!important;background:#fff!important;border:1px solid var(--line)!important;border-left:4px solid var(--accent)!important;border-radius:0!important;box-shadow:var(--shadow)!important}
.fatm-results>nav[aria-label]::before{content:attr(aria-label);font-size:11px;font-weight:800;color:var(--muted);margin-right:5px;text-transform:uppercase}
.fatm-results>nav a{display:inline-flex!important;align-items:center!important;min-height:35px!important;padding:7px 10px!important;background:#f3f3f3!important;border:1px solid #e3e3e3!important;border-radius:2px!important;font-size:12px!important;font-weight:700!important;text-decoration:none!important}
.fatm-results>nav a:hover{color:var(--accent)!important;background:#fff!important;border-color:var(--accent)!important}
.fatm-results summary{cursor:pointer;font-weight:800;padding:11px 0;color:#222}.fatm-results summary:hover{color:var(--accent)}
.footer{margin-top:22px!important;padding:17px 0 10px!important;border-top:1px solid var(--line)!important;color:#777!important;font-size:12px!important;display:flex!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important}
.fatm-legacy-main{max-width:1180px;margin:0 auto;padding:22px 24px 30px}.fatm-legacy-head{padding:22px 0 18px;border-bottom:1px solid var(--line);margin-bottom:18px}
.fatm-legacy-head h1{margin:0;color:#171717;font-size:34px;line-height:1.08;font-weight:800;letter-spacing:-.02em}.fatm-legacy-head h1:after{content:"";display:block;width:68px;height:4px;background:var(--accent);margin:14px 0 9px}.fatm-legacy-head p{margin:0;color:var(--muted)}
.fatm-legacy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.fatm-legacy-link{display:block;padding:14px 14px 13px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--accent);box-shadow:var(--shadow);text-decoration:none!important;font-weight:700;font-size:13px}.fatm-legacy-link:hover{background:#fff8f8;color:var(--accent)}
.fatm-legacy-form{background:#fff;border:1px solid var(--line);border-left:4px solid var(--accent);box-shadow:var(--shadow);padding:18px}.fatm-legacy-form .field{margin-bottom:15px}.fatm-legacy-form .field label{display:block;margin-bottom:6px}.fatm-legacy-form .actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}
@media(max-width:900px){.fatm-legacy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.shell,.wrap,.fatm-page,.fatm-legacy-main{padding-left:14px!important;padding-right:14px!important}.hero{align-items:flex-start!important;flex-direction:column!important}.hero-actions{justify-content:flex-start!important}.calendar-grid,.form-grid,.fields-grid{grid-template-columns:1fr!important}}
@media(max-width:560px){.fatm-legacy-grid{grid-template-columns:1fr}.fatm-results>nav[aria-label]::before{flex-basis:100%}}
