:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#172c40;background:#f3f6f9;font-size:16px;--navy:#10273c;--teal:#007e75;--muted:#637585;--line:#dce4eb}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}aside{position:fixed;inset:0 auto 0 0;width:250px;background:var(--navy);color:#fff;padding:34px 20px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none;font-size:13px;letter-spacing:2px;line-height:1.7}.brand strong{font-size:14px;letter-spacing:1px}.mark{background:#5ce0c2;color:#103a42;padding:6px 8px;border-radius:8px;font-size:26px;font-weight:800;letter-spacing:-3px}.nav-caption{font-size:11px;letter-spacing:1.5px;color:#93a8ba;margin:50px 10px 17px}nav{display:grid;gap:8px}nav button{border:0;background:transparent;color:#b4c4d2;text-align:left;font-size:14px;line-height:1.4;padding:15px 11px;border-radius:6px;display:flex;align-items:center;gap:12px}nav button span{font:12px ui-monospace,monospace;color:#8ba3b7}nav button.active{background:#22465a;color:#fff;box-shadow:inset 3px 0 #5ce0c2}nav button.active span{color:#5ce0c2}nav button:hover{background:#203d52}.aside-foot{margin-top:auto;padding:28px 10px 0}.small-label{font-size:10px;letter-spacing:1.4px;color:#5ce0c2}.aside-foot p{line-height:1.6;font-size:15px}.aside-foot small{font-size:12px;color:#9eb2c3;line-height:1.7}.shell{margin-left:250px}header{height:74px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:#fff;padding:0 36px;font-size:14px;color:var(--muted)}header div span{margin:0 14px;color:#b9c5cd}.badge{font-size:11px;letter-spacing:1.5px;border:1px solid var(--line);padding:8px 10px;border-radius:4px}main{max-width:1570px;margin:auto;padding:35px 36px 20px}.title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.eyebrow{font-size:12px;color:var(--teal);font-weight:700;letter-spacing:1.8px}h1{font-size:32px;letter-spacing:-1px;margin:9px 0 10px;font-weight:650}p{color:var(--muted);line-height:1.6;margin:0}.source-tag{font-size:12px;border:1px solid #cbdcd9;color:#286b62;background:#eaf5f1;padding:8px 12px;border-radius:20px;white-space:nowrap}.panel{background:#fff;border:1px solid var(--line);border-radius:10px}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:19px 22px;border-bottom:1px solid #e9eef3}.panel-title h2{font-size:16px;margin:0}.panel-title>span{font-size:12px;color:var(--muted)}.fields{padding:23px 22px;display:grid;grid-template-columns:.65fr 1.2fr .6fr 1.45fr .7fr .8fr .9fr 1.2fr;gap:16px}label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:500}input,select,textarea{min-width:0;max-width:100%;width:100%;border:1px solid #cdd8e1;border-radius:5px;padding:11px 10px;background:#fff;color:#20384a;font-size:14px}input:focus,select:focus,textarea:focus{outline:2px solid #53c6b5;border-color:transparent}label small{font-size:11px;font-weight:400;color:var(--muted);line-height:1.4}.upper{text-transform:uppercase}.toolbar{display:flex;justify-content:space-between;align-items:center;margin:28px 0 18px}.status-flow{display:flex;gap:15px;font-size:12px;align-items:center}.status-flow b{color:#436777;font-weight:600}.status-flow i{font-style:normal;color:#bbc8d2}.inline{flex-direction:row;align-items:center;font-size:12px;color:var(--muted)}.inline select{width:auto;padding:7px 9px;font-size:12px}.message-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.message-card{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}.message-card:last-child{grid-column:1/-1}.card-top{display:flex;justify-content:space-between;align-items:center;padding:17px 20px}.card-title{display:flex;align-items:center;gap:12px}.code-badge{background:#e5f4f1;color:#007c6f;padding:8px 9px;border-radius:5px;font:700 14px ui-monospace,monospace}.card-title h2{font-size:15px;margin:0 0 4px}.card-title small{font-size:11px;color:var(--muted)}button{border:1px solid #cdd8e1;background:#fff;color:#27465b;padding:9px 12px;border-radius:5px;font-size:13px;font-weight:600}button:hover{background:#edf6f5;border-color:#91b8b1}.primary{background:var(--teal);border-color:var(--teal);color:#fff}.primary:hover{background:#00685f;color:#fff}.message-card pre{margin:0 15px;padding:19px 16px;background:#10283c;color:#d9f2f0;border-radius:6px;font:14px/1.9 Consolas,ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;min-height:118px}.card-bottom{display:flex;align-items:center;gap:10px;padding:12px 20px;color:var(--muted);font-size:12px;flex-wrap:wrap}.card-bottom label{flex-direction:row;align-items:center;font-size:12px}.card-bottom input{font-size:12px;padding:5px;width:135px}.card-bottom input[type=time]{width:100px}.card-bottom .error{color:#b33034}.format-settings{margin-top:22px;padding:19px 22px}summary{cursor:pointer;font-size:14px;font-weight:600}summary span{float:right;font-weight:400;font-size:12px;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:22px 0}.format-settings p{font-size:13px}.template-notice{margin:22px 0;background:#eaf2f7;border-left:3px solid #4f87a6;padding:16px 20px;display:flex;gap:8px;flex-direction:column;font-size:14px}.template-notice span{line-height:1.5;color:#506879}.request-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.request-fields{display:grid;grid-template-columns:1fr 1fr;gap:17px;padding:22px}.wide{grid-column:1/-1}textarea{resize:vertical;font-family:Consolas,monospace;line-height:1.6}.request-code{margin:20px;padding:20px;background:var(--navy);color:#d9f2f0;min-height:220px;white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.7 Consolas,monospace}.button-row{display:flex;gap:10px;flex-wrap:wrap;margin:20px}.tokens{border-top:1px solid var(--line);padding:22px}.tokens h3{font-size:14px;margin-top:0}.tokens p,.tokens small{font-size:13px;color:var(--muted);line-height:1.6}.tokens #token-list{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0}.tokens code{background:#edf2f6;color:#30566a;border-radius:3px;padding:5px 7px;font-size:12px}#request-validation{margin:0 20px;font-size:13px;color:#a34a22}footer{display:flex;justify-content:space-between;gap:20px;margin:28px 0 0;font-size:11px;color:#748694;line-height:1.5}footer b{margin:0 10px;color:#bac5ce}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#123d38;color:#fff;padding:13px 22px;border-radius:6px;box-shadow:0 6px 25px #0002;display:none;font-size:14px;z-index:5}[hidden]{display:none!important}@media(min-width:1550px){.message-grid{grid-template-columns:repeat(3,1fr)}.message-card:last-child{grid-column:auto}}@media(max-width:1200px){aside{width:218px;padding:25px 14px}.shell{margin-left:218px}main{padding:28px 24px}.fields{grid-template-columns:repeat(4,1fr)}.settings-grid{grid-template-columns:1fr 1fr}.source-tag{display:none}.card-top{padding:16px 12px}.request-grid{grid-template-columns:1fr}}@media(max-width:850px){aside{position:static;width:auto;padding:16px 20px}.brand{font-size:11px}.brand br{display:none}.brand strong{margin-left:8px}.mark{font-size:20px}.nav-caption,.aside-foot{display:none}nav{display:flex;overflow:auto;margin-top:18px}nav button{white-space:nowrap;font-size:12px;padding:12px}nav button span{display:none}.shell{margin:0}header{padding:0 22px;height:55px}.badge{display:none}.message-grid{grid-template-columns:1fr}.message-card:last-child{grid-column:auto}h1{font-size:27px}main{padding:24px 18px}.title-row{margin-bottom:22px}.fields{grid-template-columns:1fr 1fr}.toolbar{flex-wrap:wrap;gap:18px}.settings-grid{grid-template-columns:1fr}.panel-title>span{display:none}summary span{display:none}footer{flex-direction:column}.card-top{padding:17px}.card-bottom{padding:12px 17px}}

.weight-input{display:flex;gap:5px}.weight-input input{flex:1;width:60px}.weight-input select{width:64px;flex-shrink:0;padding-left:5px;padding-right:3px}

.flight-lookup{margin-top:22px}.flight-lookup a{font-size:12px;color:var(--teal)}.lookup-controls{display:flex;align-items:end;gap:12px;padding:20px 22px 12px;flex-wrap:wrap}.lookup-controls label{width:155px}.lookup-controls span{align-self:center;font-size:14px}.lookup-help{padding:0 22px;font-size:13px}.flight-lookup #flight-status{margin:14px 22px 20px;font-size:14px;color:#426276}.flight-result{margin:0 22px 12px;padding:12px;background:#eff6f5;border-radius:5px;display:flex;gap:15px;justify-content:space-between;align-items:center;font-size:14px}.flight-result button{white-space:nowrap}@media(max-width:850px){.flight-result{align-items:start;flex-direction:column}}

.flight-attribution{padding:0 22px 18px}.flight-lookup:has(#flight-lookup-body[hidden]) .panel-title{border-bottom:0}

.header-actions{display:flex;align-items:center;gap:14px}#theme-toggle{white-space:nowrap;min-width:98px}html{color-scheme:light}html[data-theme="dark"]{color-scheme:dark;--muted:#a4b6c6;--line:#344759;--teal:#69d7c3;background:#0d1722;color:#e1e9f0}html[data-theme="dark"] header,html[data-theme="dark"] .panel,html[data-theme="dark"] .message-card{background:#172431}html[data-theme="dark"] .panel-title{border-color:#344759}html[data-theme="dark"] aside{background:#101f2e}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0e1b28;border-color:#466074;color:#e2edf5}html[data-theme="dark"] button{background:#22394b;border-color:#486376;color:#e4eef6}html[data-theme="dark"] button:hover{background:#304e61;border-color:#71b4b1}html[data-theme="dark"] button.primary{background:#13786e;color:#fff;border-color:#30988c}html[data-theme="dark"] button.primary:hover{background:#198a7f}html[data-theme="dark"] nav button{background:transparent;border:0;color:#b8c9d7}html[data-theme="dark"] nav button.active,html[data-theme="dark"] nav button:hover{background:#25485a;color:#fff}html[data-theme="dark"] .code-badge,html[data-theme="dark"] .source-tag{background:#183f3d;color:#8be4d3;border-color:#366c65}html[data-theme="dark"] .message-card pre,html[data-theme="dark"] .request-code{background:#0b1722;color:#d7ebe9}html[data-theme="dark"] .status-flow b{color:#a9c9d9}html[data-theme="dark"] .status-flow i{color:#6f8799}html[data-theme="dark"] .template-notice{background:#1c3447;border-color:#5e9abb}html[data-theme="dark"] .template-notice span,html[data-theme="dark"] .flight-lookup #flight-status{color:#b8cddb}html[data-theme="dark"] .flight-result{background:#1c383b}html[data-theme="dark"] .tokens code{background:#263e50;color:#c5e4ee}html[data-theme="dark"] #request-validation,html[data-theme="dark"] .card-bottom .error{color:#ffb195}html[data-theme="dark"] footer{color:#9cabb8}html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8fa3b4}html[data-theme="dark"] #toast{background:#24544a;color:#f0fff9}@media(max-width:850px){.header-actions{gap:0}header{gap:12px;height:auto;min-height:60px;padding-top:10px;padding-bottom:10px}header>div:first-child{font-size:12px}}
.message-grid{grid-template-columns:repeat(5,minmax(210px,1fr));overflow-x:auto;padding-bottom:8px;align-items:start}.message-card:last-child{grid-column:auto}.message-card .card-top{flex-direction:column;align-items:stretch;gap:14px;padding:16px 12px}.message-card .card-title{gap:8px}.message-card .card-title h2{font-size:14px}.message-card pre{margin:0 10px;padding:14px 10px;font-size:12px;white-space:pre;overflow-x:auto;overflow-wrap:normal;min-height:108px}.message-card .card-bottom{padding:12px;flex-direction:column;align-items:stretch;gap:8px;min-height:108px}.message-card .card-bottom label{justify-content:space-between}.message-card .card-bottom input{width:140px}.message-card .card-bottom input[type=time]{width:140px}.message-card .card-bottom>span{font-size:11px}.message-card{min-width:0}

.status-graphic{height:88px;display:flex;align-items:center;justify-content:center;position:relative;background:#eaf3f6;border-bottom:1px solid #dce6ec}.stage-icon{font-size:38px;line-height:1}.stage-number{position:absolute;top:13px;left:13px;font:12px Consolas,monospace;color:#587182}.message-card:nth-child(2) .status-graphic,.message-card:nth-child(3) .status-graphic{background:#e9f1fa}.message-card:nth-child(5) .status-graphic{background:#e7f4ef}html[data-theme="dark"] .status-graphic{background:#203646;border-color:#344759}html[data-theme="dark"] .message-card:nth-child(2) .status-graphic,html[data-theme="dark"] .message-card:nth-child(3) .status-graphic{background:#21354d}html[data-theme="dark"] .message-card:nth-child(5) .status-graphic{background:#1d3b36}html[data-theme="dark"] .stage-number{color:#a6bfcc}

.lookup-controls label.schedule-field{width:250px}#schedule-status{margin:12px 0 18px}.card-bottom span[id^="schedule-"]{line-height:1.5;color:var(--muted)}

.flowlab-brand{display:block;background:#fff;padding:10px 8px;border-radius:8px;line-height:0}.flowlab-brand img{display:block;width:100%;height:auto}.flowlab-brand+.nav-caption{margin-top:28px}@media(max-width:850px){.flowlab-brand{width:200px;padding:7px 10px}}

#workspace-loading{padding:12px;color:#b4c4d2;font-size:13px}#admin-preview-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eaf3fa;color:#355c74;border:1px solid #b4cbdc;padding:14px 18px;border-radius:8px;margin-bottom:24px;font-size:14px}.visibility-row{display:flex;flex-direction:row;align-items:center;padding:22px;border-bottom:1px solid var(--line);gap:18px}.visibility-row>span:first-child{flex:1}.visibility-row input{width:40px;height:23px;accent-color:#007e75}.visibility-value{color:var(--muted);font-size:13px}.admin-actions{padding:22px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.admin-help{padding:0 22px 22px;font-size:14px}#admin-view .panel-title p{font-size:14px;margin-top:8px}#admin-save-status{font-size:14px;color:var(--muted)}nav .admin-hidden-section{opacity:.65}nav .admin-hidden-section:after{content:'Hidden';font-size:10px;margin-left:auto}#workspace-unavailable{padding:24px}#workspace-unavailable button{margin-top:16px}html[data-theme="dark"] #admin-preview-banner{background:#203b51;color:#d1e7f5;border-color:#486477}@media(max-width:850px){.header-actions{gap:8px;flex-wrap:wrap}#admin-preview-banner{flex-direction:column;align-items:start}}

dialog{width:min(440px,92vw);border:1px solid var(--line);border-radius:12px;padding:26px;background:#fff;color:#172c40}dialog::backdrop{background:#071421aa}dialog h2{font-size:20px;margin:0 0 22px}dialog .button-row{margin:22px 0 0}#admin-login-error{color:#b33034;font-size:14px;margin-top:14px}html[data-theme="dark"] dialog{background:#172431;color:#e1e9f0}html[data-theme="dark"] #admin-login-error{color:#ffb195}
