:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20364a;background:#f3f6f9;font-size:16px;font-synthesis:none;--blue:#174c73;--muted:#5c7082;--line:#dae3eb;--soft:#eff5fa}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{border-radius:8px}button{cursor:pointer;min-height:46px;padding:10px 16px;border:1px solid var(--line);background:#fff;color:var(--blue);font-weight:600}button:hover{background:#eaf1f7}button.primary{background:var(--blue);color:white;border-color:var(--blue)}button.primary:hover{background:#0b3656}button:disabled{opacity:.5;cursor:wait}input,select,textarea{width:100%;min-height:46px;padding:10px 12px;border:1px solid #b5c7d5;background:white;color:#20364a}textarea{min-height:85px}label{display:block;font-size:.9rem;font-weight:600;margin-bottom:6px}a{color:var(--blue)}:focus-visible{outline:3px solid #00a3ba;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;letter-spacing:-.04em;margin-bottom:8px}h2{font-size:1.15rem;letter-spacing:-.015em}h3{font-size:1rem}small,.muted{color:var(--muted)}small{font-size:.8rem;line-height:1.5}.shell{display:grid;grid-template-columns:246px minmax(0,1fr);min-height:100vh}.sidebar{background:white;border-right:1px solid var(--line);padding:28px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:0 10px 30px;font-size:1.3rem;font-weight:750;letter-spacing:-.04em}.brand img{width:34px;height:34px}.brand small{display:block;font-size:.75rem;letter-spacing:.05em;font-weight:600;text-transform:uppercase}.nav{display:flex;flex-direction:column;gap:6px}.nav button{display:flex;gap:12px;align-items:center;border:0;text-align:left;font-weight:500;color:#566c7d;background:transparent}.nav button.active{background:#e8f2f9;color:var(--blue);font-weight:700}.nav svg{width:21px;height:21px;flex-shrink:0}.sidebar-foot{margin-top:auto;padding:20px 10px 0}.user{display:flex;align-items:center;gap:10px;margin-bottom:16px}.avatar{background:#e3eef6;color:var(--blue);border-radius:50%;width:40px;height:40px;display:grid;place-items:center;font-size:.9rem;font-weight:700}.sidebar-foot button{width:100%;font-size:.9rem}.main{min-width:0}.topbar{background:white;border-bottom:1px solid var(--line);min-height:78px;display:flex;align-items:center;justify-content:space-between;padding:16px 34px;gap:16px}.topbar .left{font-size:.85rem;color:var(--muted)}.top-controls{display:flex;align-items:center;gap:10px}.top-controls select{width:auto;max-width:140px}.content{max-width:1560px;margin:auto;padding:30px 34px 48px}.notice{display:flex;gap:12px;align-items:center;padding:12px 16px;border:1px solid #b6d9e8;background:#eaf5fb;color:#245b77;border-radius:9px;margin-bottom:28px;font-size:.9rem}.notice strong{white-space:nowrap}.heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:26px}.heading p{color:var(--muted);margin-bottom:0;line-height:1.5}.actions{display:flex;gap:10px;flex-wrap:wrap}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.kpi{background:white;border:1px solid var(--line);padding:22px;border-radius:12px}.kpi .label{font-size:.9rem;color:var(--muted);margin-bottom:12px}.kpi .value{font-size:2rem;font-weight:700;color:var(--blue);letter-spacing:-.04em}.kpi small{display:block;margin-top:8px}.kpi.warn{border-top:3px solid #d99b22;padding-top:20px}.grid2{display:grid;grid-template-columns:1.55fr 1fr;gap:22px;margin-bottom:24px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.panel-head h2{margin:0}.panel-head button{font-size:.9rem}.review-item{display:flex;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid var(--line)}.review-item:last-child{border:0;padding-bottom:0}.review-item p{margin:6px 0;font-size:.9rem;color:var(--muted)}.review-item button{align-self:center}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:6px;background:#edf2f6;color:#506a7c;font-weight:600;font-size:.8rem;white-space:nowrap}.badge.confirmed{background:#e2f3eb;color:#226345}.badge.review{background:#fff1d7;color:#825507}.badge.incomplete{background:#fce9e7;color:#993c36}.badge.cancelled{background:#edf0f3;color:#616a73}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;text-align:left}.table th{font-size:.8rem;font-weight:600;color:var(--muted);background:#f7f9fb;border-bottom:1px solid var(--line);padding:14px 12px;white-space:nowrap}.table td{padding:16px 12px;border-bottom:1px solid #e9eef2;font-size:.9rem}.table tr:last-child td{border-bottom:0}.table td strong{font-weight:650}.table td small{display:block;margin-top:4px}.table .rowbtn{border:0;background:#edf4fa;font-size:.85rem;min-height:42px}.table-panel{padding:0;overflow:hidden}.table-panel .panel-head{padding:22px 24px 0}.filters{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr 1fr;gap:12px;margin-bottom:22px}.filters label{font-size:.8rem}.empty{padding:50px 20px;text-align:center;color:var(--muted)}.export{display:flex;gap:8px;align-items:center;margin:22px 0}.export button{font-size:.85rem}.chart{display:flex;align-items:flex-end;gap:14px;height:170px;padding-top:12px}.bar-group{flex:1;text-align:center;min-width:0}.bar-bg{height:126px;display:flex;align-items:flex-end;justify-content:center}.bar{background:#4b9abb;width:70%;border-radius:5px 5px 0 0;min-height:3px}.bar-group small{font-size:.8rem}.chart-note{margin:16px 0 0;font-size:.85rem;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.cards .panel h2{font-size:1.4rem;color:var(--blue)}.data-line{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--line);font-size:.9rem}.data-line:last-child{border:0}.card-actions{margin-top:20px;display:flex;gap:10px}.login{max-width:450px;margin:12vh auto;padding:34px;background:white;border:1px solid var(--line);border-radius:14px}.login .brand{padding:0 0 30px}.login label{margin-top:16px}.login button{margin-top:18px;width:100%}.login p{line-height:1.6}.error{color:#a1392f;background:#fff0ed;border-radius:8px;padding:12px;line-height:1.5}.success{color:#226345}dialog{border:0;border-radius:14px;width:min(1000px,96vw);max-height:92vh;padding:0;color:#20364a;box-shadow:0 24px 100px #162d4755}dialog::backdrop{background:#152d4b70}.dialog-head{padding:24px 28px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;align-items:center;position:sticky;top:0;background:white;z-index:3}.dialog-head h2{margin:0;font-size:1.5rem}.dialog-body{padding:26px 28px}.dialog-body section{margin-bottom:25px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.events{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.provenance{font-size:.8rem;color:var(--muted);margin:7px 0 0}.issue-list{margin:12px 0;padding-left:22px;line-height:1.8;font-size:.9rem}.activity{padding:20px;border:1px solid var(--line);background:#f8fafc;border-radius:10px;margin-bottom:14px}.activity .formgrid{grid-template-columns:repeat(4,minmax(0,1fr))}.activity h3{margin-bottom:15px}.activity .bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px}.check{display:flex;gap:10px;align-items:center;font-size:.9rem}.check input{width:22px;min-height:22px}.history{padding:13px 0;border-bottom:1px solid var(--line);font-size:.9rem}.history pre{white-space:pre-wrap;word-break:break-word;background:var(--soft);padding:10px;max-height:150px;overflow:auto;font-size:.8rem}details summary{cursor:pointer;font-weight:600;padding:12px 0}pre.raw{background:#f3f6f9;padding:16px;overflow:auto;font-size:.8rem;max-height:320px;white-space:pre-wrap;word-break:break-word}.dialog-foot{border-top:1px solid var(--line);padding-top:22px;display:flex;gap:12px;flex-wrap:wrap}.settings{max-width:850px}.settings .panel{margin-bottom:22px}.settings p{line-height:1.65}.settings code{font-size:.85rem}#toast{position:fixed;bottom:24px;right:24px;max-width:430px;background:#203e56;color:white;padding:15px 22px;border-radius:10px;box-shadow:0 8px 30px #18354e33;z-index:20;display:none}.mobile-cards{display:none}.ledger-meta{margin-bottom:20px;display:flex;gap:20px;flex-wrap:wrap;align-items:center}.ledger-meta select{width:auto;min-width:230px}.technical{padding:12px;border-left:3px solid #d99b22;background:#fff8e8}.no-wrap{white-space:nowrap}@media(max-width:1150px){.shell{grid-template-columns:210px minmax(0,1fr)}.content{padding:25px 24px}.topbar{padding:14px 24px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:repeat(3,minmax(0,1fr))}.grid2{grid-template-columns:1fr}.kpi{padding:18px}.kpi .value{font-size:1.75rem}}@media(max-width:760px){.shell{display:block}.sidebar{height:auto;position:static;padding:18px 16px 10px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0 0 16px;font-size:1.2rem}.brand small{display:none}.nav{flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:6px}.nav button{flex-shrink:0;min-height:44px;padding:10px 12px;gap:8px;font-size:.9rem}.nav svg{width:18px;height:18px}.sidebar-foot{display:none}.topbar{padding:12px 16px;min-height:66px;flex-wrap:wrap}.topbar .left{display:none}.top-controls{width:100%;justify-content:space-between}.top-controls select{max-width:105px;font-size:.9rem}.top-controls button{font-size:.85rem;padding:10px 12px}.content{padding:22px 16px 40px}h1{font-size:1.65rem}.heading{gap:10px;flex-direction:column}.notice{display:block;font-size:.85rem;margin-bottom:22px}.notice strong{display:block;margin-bottom:4px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.kpi{padding:16px}.kpi .value{font-size:1.6rem}.kpi .label{font-size:.85rem}.panel{padding:20px}.cards{grid-template-columns:1fr}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.table-wrap{display:none}.mobile-cards{display:block;padding:0 16px 10px}.flight-card{padding:18px 0;border-bottom:1px solid var(--line)}.flight-card .top{display:flex;justify-content:space-between;gap:12px}.flight-card .times{display:flex;gap:20px;font-size:.9rem;margin:14px 0}.flight-card button{width:100%}.table-panel .panel-head{padding:20px 16px 0}.formgrid,.events{grid-template-columns:1fr}.activity .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.dialog-head{padding:18px}.dialog-body{padding:20px 18px}.dialog-head h2{font-size:1.3rem}.activity{padding:15px}.activity .bottom{flex-direction:column;align-items:stretch}.login{margin:30px 16px;padding:25px}.ledger-meta select{width:100%}#toast{left:16px;right:16px;bottom:16px}.review-item{gap:10px}.review-item button{padding:10px}.panel-head{flex-wrap:wrap}.export{flex-wrap:wrap}}
