
/* === globals.css === */
:root{--navy:#102c3b;--teal:#167a71;--ink:#183341;--muted:#7a8991;--line:#e6ebed;--bg:#f5f7f8;--red:#b44e55;--mint:#e9f5f1;--radius:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.7 'Cairo',sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button,a{touch-action:manipulation}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #58b8ad;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid #78bcb5;outline-offset:1px}input,select,textarea{min-width:0}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.6;font-weight:700}h2{font-size:17px;font-weight:700;line-height:1.7}h3{font-size:19px}small{font-size:11px}svg{flex-shrink:0}button{border:0;background:none}b,strong{font-weight:600}.app-shell{min-height:100dvh}.sidebar{position:fixed;inset:0 0 0 auto;width:246px;background:var(--navy);color:#d6e0e4;display:flex;flex-direction:column;padding:34px 20px 18px;z-index:30}.brand{display:flex;gap:13px;align-items:center;padding:0 13px 38px}.brandmark{width:48px;height:52px;display:grid;place-items:center;border:1px solid #708e99;border-radius:15px;color:#a5d8d1;background:#ffffff08}.brand strong{font-size:29px;color:white;line-height:1.5;display:flex;align-items:center;gap:11px}.brand strong span{font-family:sans-serif;font-size:8px;letter-spacing:2px;opacity:.6;writing-mode:vertical-rl}.brand small{font-size:10px;color:#91a7b2}.sidebar-caption{color:#74909e;font-size:11px;padding:0 15px 14px}.sidebar nav{display:flex;flex-direction:column;gap:6px}.sidebar nav button{min-height:50px;display:flex;gap:13px;align-items:center;color:#acbec7;text-align:right;padding:12px 15px;border-radius:10px;font-size:12px;position:relative;transition:background .15s,color .15s}.sidebar nav button:hover{background:#ffffff08;color:#fff}.sidebar nav button.active{background:#254350;color:#fff}.sidebar nav button.active svg{color:#8bcfc4}.nav-mark{width:5px;height:21px;border-radius:3px;background:#9bd8c8;position:absolute;left:0}.sidebar-bottom{margin-top:auto;padding-top:35px}.private-label{display:flex;gap:10px;padding:18px 12px 24px;color:#9cb6bf}.private-label b,.private-label small{display:block}.private-label b{font-size:11px;color:#cfdbdf}.private-label small{font-size:9px;margin-top:2px}.profile{border-top:1px solid #ffffff15;padding:20px 4px 0;display:flex;gap:10px;align-items:center}.avatar{height:42px;width:42px;flex-shrink:0;border-radius:13px;display:grid;place-items:center;background:#e2eeeb;color:#22796f;font-size:18px;font-weight:600}.profile .avatar{background:#33545e;color:#d7ede6}.profile div{min-width:0;flex:1}.profile b{font-size:11px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:120px}.profile small{display:block;font-size:9px;color:#91abb6}.profile a{padding:5px;color:#a6b9c3}.workspace{margin-right:246px;min-width:0}.topbar{height:83px;background:#ffffffd9;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:20px}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:11px}.breadcrumb span{color:var(--muted)}.topbar-actions{display:flex;align-items:center;gap:17px}.connection{display:flex;gap:7px;align-items:center;font-size:10px;color:#5f7e70}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#539b81;flex-shrink:0}.dot.green{background:#2a8e72}.dot.red{background:#be6870}.connection.offline{color:var(--red)}.connection.offline .dot{background:var(--red)}.site-select{display:flex;align-items:center;gap:6px;background:#f7f9f9;border:1px solid var(--line);padding:5px 10px;border-radius:9px;color:#526c78}.site-select select{border:0;background:transparent;font-size:11px;max-width:190px;padding:3px;min-height:30px;color:var(--ink)}.top-avatar{height:34px;width:34px;border-radius:50%;display:grid;place-items:center;background:#e9f1ef;color:var(--teal);font-size:13px}.icon-button{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:#7c8d95;flex-shrink:0}.icon-button:hover{background:#edf2f3;color:var(--ink)}.content{max-width:1590px;margin:0 auto;padding:30px 38px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:29px}.eyebrow{font-size:10px;color:#74878f;display:flex;align-items:center;gap:8px;margin-bottom:6px}.sep{color:#c1cdd1;margin:0 2px}.page-heading p{font-size:12px;color:var(--muted);margin-top:4px}.btn{border-radius:9px;min-height:44px;padding:10px 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:11px;font-weight:600;white-space:nowrap;transition:background .15s,transform .15s}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--navy);color:white;box-shadow:0 3px 6px #102c3b0d}.btn.primary:hover{background:#214958}.btn.subtle{background:#f1f5f5;color:#526b75;border:1px solid #e5ebed}.btn.subtle:hover{background:#e5eeed}.btn.danger{background:#ad4650;color:white}.btn.full{width:100%}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:30px}.stat{padding:23px 23px 19px;border-radius:var(--radius);background:#fff;border:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start;gap:12px;box-shadow:0 2px 2px #102c3b01}.stat>div>span{font-size:11px;color:#6d808b}.stat strong{font-family:'Cairo',sans-serif;display:block;font-size:39px;font-weight:500;line-height:1.5;letter-spacing:-1px;margin:4px 0 2px}.stat small{font-size:9px;color:#8a989f;display:flex;align-items:center;gap:6px}.stat-icon{height:43px;width:43px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.stat-icon.navy{color:#4d7287;background:#edf2f5}.stat-icon.mint{color:#278b74;background:#eaf6f0}.stat-icon.rose{color:#bf626b;background:#fbefef}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 15px}.section-heading p{font-size:10px;color:var(--muted);margin-top:3px}.auto-tag{border:1px solid var(--line);padding:5px 11px;border-radius:7px;font-size:10px;display:flex;gap:6px;align-items:center;color:#819098;background:#fff}.inspection-cards{display:grid;grid-template-columns:1fr 1fr;gap:19px;margin-bottom:27px}.inspection-card{background:#fff;border:1px solid #dce5e8;padding:22px 24px 0;position:relative;overflow:hidden;text-align:right;border-radius:var(--radius);transition:box-shadow .2s,border-color .2s}.inspection-card:hover{border-color:#82aaa9;box-shadow:0 7px 20px #102c3b09}.inspection-card-top{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}.inspection-icon{height:58px;width:62px;background:#ecf3f7;border:1px solid #e5edf1;border-radius:15px;display:flex;align-items:center;justify-content:center;color:#36627a}.inspection-card.jet .inspection-icon{color:#3c8b7c;background:#eff7f3;border-color:#e0eee6}.count-label{font-size:10px;color:#8b9ba3;background:#f7f9fa;padding:5px 9px;border-radius:7px}.count-label b{font-size:13px;color:#426071;margin-left:4px}.inspection-card h3{margin:15px 0 4px;font-size:20px;position:relative;z-index:1}.inspection-card p{font-size:11px;color:#82949d;margin-bottom:19px;position:relative;z-index:1}.inspection-card-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e8eff1;padding:14px 0;color:#356175;position:relative;z-index:1}.inspection-card.jet .inspection-card-footer{color:#277e70}.inspection-card-footer b{display:flex;gap:7px;align-items:center;font-size:12px}.round-arrow{border:1px solid #e3ecee;border-radius:50%;height:29px;width:29px;display:grid;place-items:center;background:#fff}.wave-art{position:absolute;left:24px;top:48px;color:#f0f5f7;transform:rotate(-12deg);pointer-events:none}.jet .wave-art{color:#f0f6f2}.lower-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(245px,1fr);gap:20px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:20px;min-width:0}.panel-heading{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1f2}.panel-heading h2{font-size:14px}.panel-heading span{font-size:10px;color:#91a0a8}.panel-heading>div>span{display:block;margin-top:3px}.text-button{display:inline-flex;gap:5px;align-items:center;font-size:10px;font-weight:600;color:#4e7b84;padding:5px 0;white-space:nowrap}.text-button:hover{color:#154c61}.empty{min-height:230px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:9px;padding:28px;color:#a3b2b8}.empty b{color:#58727e;font-size:13px}.empty p{font-size:11px;color:#93a2aa;max-width:340px}.empty .btn{margin-top:7px}.empty.compact{min-height:175px}.daily-summary .panel-heading{border:0}.mini-icon{width:34px;height:34px;display:inline-grid;place-items:center;background:#f5f8f9;border-radius:9px;color:#8098a2}.donut{height:144px;width:144px;margin:0 auto 17px;border-radius:50%;background:conic-gradient(from -90deg,#398a77 var(--percent),#e9edef 0);padding:11px;transform:rotate(0)}.donut>div{border-radius:50%;height:100%;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column}.donut strong{font-size:30px;line-height:1.3;font-weight:500}.donut small{font-size:14px;color:#879aa2}.donut span{font-size:9px;color:#93a2a9;margin-top:5px}.legend{display:flex;justify-content:center;gap:25px;margin:0 20px 24px;font-size:10px}.legend span{display:flex;gap:7px;align-items:center;color:#899aa2}.legend b{font-size:13px;color:#375765;margin-right:2px}.crew-summary{border-top:1px solid var(--line);margin:0 19px;padding:17px 0;display:flex;align-items:center;gap:9px}.crew-summary>div{flex:1}.crew-summary b{display:block;font-size:10px}.crew-summary small{display:block;color:#9aa8ae;font-size:8px}.footer{display:flex;align-items:center;justify-content:space-between;color:#9aa8ae;font-size:9px;padding:20px 0 26px;gap:15px}.footer span{display:flex;gap:6px;align-items:center}.table-scroll{overflow:auto}.records{border-collapse:collapse;width:100%;text-align:right;white-space:nowrap;font-size:11px}.records th{font-weight:500;font-size:9px;color:#8d9ea6;background:#fafcfc;padding:11px 18px;border-bottom:1px solid #edf1f3}.records td{padding:14px 18px;border-bottom:1px solid #f0f3f4;vertical-align:middle}.records tr:last-child td{border-bottom:0}.vessel-cell{display:flex;align-items:center;gap:10px}.vessel-cell b{font-size:11px;display:block}.vessel-cell small{display:block;font-size:9px;color:#93a1a8;max-width:170px;overflow:hidden;text-overflow:ellipsis}.vessel-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:8px;background:#eef4f7;color:#51798d}.vessel-icon.jet{background:#edf6f0;color:#4f9480}.badge{display:inline-flex;gap:4px;align-items:center;border-radius:6px;padding:3px 8px;font-size:9px;white-space:nowrap}.badge.allowed{color:#32876c;background:#edf7f0}.badge.denied{color:#b75e65;background:#fff0f1}.badge.muted{color:#81939d;background:#f0f3f4}.reason-cell{display:block;max-width:210px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#7f939d;font-size:10px}.note-cell{display:block;white-space:normal;max-width:230px;color:#93a2a9;font-size:9px}.records td>small{display:block;color:#8c9da5;font-size:9px}.time-cell{font-size:10px;color:#8da0a9}.voided{opacity:.55}.toolbar{padding:20px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.search{display:flex;align-items:center;gap:8px;background:#f7f9fa;border:1px solid #e8edef;border-radius:8px;padding:7px 12px;flex:1;min-width:210px;color:#90a1aa}.search input{border:0;outline:0;background:transparent;width:100%;font-size:11px;min-height:26px}.segmented{display:flex;background:#f3f6f7;padding:4px;border-radius:8px;gap:3px}.segmented button{padding:6px 12px;color:#8c9ba3;font-size:10px;border-radius:5px}.segmented .selected{color:var(--ink);background:#fff;box-shadow:0 1px 3px #102c3b0a}.archive-filter{padding:24px}.archive-filter>div:first-child{display:flex;gap:14px;align-items:center}.archive-filter h2{font-size:14px}.archive-filter p{font-size:10px;color:#8da0a8}.date-fields{display:flex;align-items:flex-end;gap:15px;margin-top:20px}.date-fields label{display:flex;flex:1;flex-direction:column;gap:6px;font-size:10px}.date-fields input,.field input,.field select,.field textarea,.crew-edit input{padding:10px 13px;background:#fbfcfc;border:1px solid #dfe7ea;border-radius:8px;width:100%;color:var(--ink);font-size:12px;min-height:44px}.date-fields input{font-family:inherit}.warning{display:block;color:#ad7b35;margin-top:10px}.archive-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}.day-card{display:flex;align-items:center;gap:15px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px;text-align:right}.day-card>div{flex:1}.day-card b{display:block;font-size:12px}.day-card small{font-size:9px;display:block;color:#8c9ca5}.day-card>svg{color:#8099a2}.date-tile{background:#edf4f3;border-radius:8px;min-width:49px;padding:4px;text-align:center;color:var(--teal)}.date-tile b{font-size:21px;line-height:1.5}.date-tile small{font-size:8px;color:var(--teal)}.saved-reports{padding:5px 20px}.saved-reports>button{display:flex;align-items:center;gap:13px;width:100%;text-align:right;padding:15px 0;border-bottom:1px solid var(--line)}.saved-reports>button:last-child{border:0}.saved-reports>button>div{flex:1}.saved-reports b{font-size:12px;display:block}.saved-reports small{font-size:9px;color:#8296a0;display:block}.crew-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:23px}.crew-card{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:17px}.crew-card>div{flex:1}.crew-card h3{font-size:13px}.crew-card span:not(.avatar):not(.badge){font-size:10px;color:#8d9fa6}.panel-footnote{display:flex;align-items:center;gap:9px;background:#fafcfc;padding:16px 23px;border-top:1px solid var(--line);font-size:10px;color:#8499a3}.sites-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.site-card{padding:24px;margin:0}.site-card-top{display:flex;gap:12px;align-items:center;margin-bottom:18px}.site-card-top .icon-button{margin-right:auto}.site-card h2{font-size:20px}.site-card p{font-size:11px;color:#8fa0a9}.site-stats{display:flex;margin:24px 0;gap:20px}.site-stats span{font-size:9px;color:#8ea0a9;flex:1;border-left:1px solid var(--line)}.site-stats span:last-child{border:0}.site-stats b{display:block;font-size:24px;color:var(--ink)}.add-site{border:1px dashed #bccfd3;min-height:260px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#f1f6f5;color:#73908d}.add-site>span{background:#e4eeeb;padding:10px;border-radius:50%;display:grid;place-items:center}.add-site b{font-size:13px;color:#567770}.add-site small{font-size:10px}.members-list{padding:0 23px}.members-list>div{display:flex;gap:15px;align-items:center;padding:23px 0;border-bottom:1px solid var(--line)}.members-list>div:last-child{border:0}.member-info{flex:1;min-width:0}.member-info b{font-size:12px;display:block}.member-info small{display:block;color:#8fa0a9;text-align:right;overflow-wrap:anywhere}.access-notice{display:flex;align-items:flex-start;gap:12px;background:#f5f9fa;margin:20px;padding:14px;border-radius:9px;color:#78939f}.access-notice p{font-size:10px}.audit-list{padding:5px 23px}.audit-list>div{display:flex;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}.audit-list b{font-size:12px}.audit-list p{font-size:11px;color:#7a939e;overflow-wrap:anywhere}.audit-list small{font-size:9px;color:#9aaab1}.mobile-nav,.mobile-brand,.more-menu{display:none}.alert{display:flex;gap:10px;align-items:center;background:#fff5e8;color:#97652b;border:1px solid #f4e5d0;padding:12px 16px;border-radius:10px;margin-bottom:18px;font-size:11px}.alert span{flex:1}.alert button{font-size:10px;text-decoration:underline}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);padding:14px 18px;background:#173e42;color:#fff;border:1px solid #365d60;box-shadow:0 7px 26px #102c3b30;border-radius:12px;display:flex;align-items:center;gap:12px;font-size:12px;z-index:200;max-width:min(650px,calc(100vw - 30px))}.toast>svg{color:#9fd8c1}.toast>span{min-width:0}.toast button{color:#c5e6da;font-size:11px;padding:4px}.toast-close{display:grid;place-items:center}.modal-backdrop{position:fixed;inset:0;background:#0b273267;backdrop-filter:blur(4px);z-index:100;display:flex;align-items:center;justify-content:center;padding:25px;overflow:hidden}.modal{width:100%;max-width:610px;background:#fff;border-radius:19px;box-shadow:0 20px 80px #102c3b36;max-height:calc(100dvh - 50px);overflow:auto;overscroll-behavior:contain}.modal-heading{position:sticky;top:0;z-index:4;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 26px;border-bottom:1px solid var(--line)}.modal-heading h2{font-size:20px}.modal-heading .eyebrow{font-size:10px}.modal-body{padding:23px 26px}.modal-footer{display:flex;gap:10px;padding:17px 26px;background:#fafcfc;border-top:1px solid var(--line);position:sticky;bottom:0;z-index:4}.field{display:flex;flex-direction:column;gap:7px;margin:19px 0;font-size:12px;font-weight:500}.field>span{font-size:9px;color:#93a3ab;font-weight:400;margin-top:-5px}.field textarea{resize:vertical;line-height:1.8}.type-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px}.type-choice button{border:1px solid #e2eaec;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:13px;padding:14px;font-size:13px;color:#8a9ca5}.type-choice .selected{background:#edf5f5;color:#256a70;border-color:#76aaa7}.checklist-heading{display:flex;align-items:center;justify-content:space-between;margin:22px 0 10px}.checklist-heading b{font-size:12px}.checklist{border:1px solid #e6ecee;border-radius:11px;overflow:hidden}.checklist>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;border-bottom:1px solid var(--line)}.checklist>div:last-child{border:0}.checklist b{font-size:11px;display:block}.checklist small{display:block;font-size:9px;color:#96a5ac}.check-options{display:flex;gap:6px}.check-options button{display:flex;align-items:center;gap:4px;font-size:9px;padding:8px;border:1px solid var(--line);border-radius:7px;color:#8da0a8;white-space:nowrap}.check-options .ok{background:#eaf6f0;border-color:#9dcbb7;color:#338268}.check-options .bad{background:#fff0f0;border-color:#dda6a8;color:#b15560}.field-title{display:block;font-size:12px;margin:19px 0 9px}.decision-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}.decision-choice button{display:flex;gap:9px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;padding:12px;color:#8ca1ab;font-size:12px}.decision-choice .allow{background:#eef7f2;border-color:#82b9a2;color:#23775c}.decision-choice .deny{background:#fff0f1;border-color:#d6959e;color:#a64350}.reason-options{display:flex;gap:7px;flex-wrap:wrap}.reason-options button{border:1px solid var(--line);padding:7px 12px;border-radius:7px;font-size:10px;color:#8a9da7}.reason-options .selected{color:#a64d57;border-color:#d79ca3;background:#fff3f4}.note-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:-8px}.note-chips button{display:flex;align-items:center;gap:3px;font-size:8px;padding:5px 7px;color:#7c96a0;background:#f3f7f8;border-radius:5px}.auto-save-hint{display:flex;gap:7px;align-items:center;font-size:9px;color:#8aa0aa;margin-top:22px}.muted-text{color:#899da6;font-size:11px;line-height:1.9}.crew-edit{display:grid;grid-template-columns:20px minmax(0,1.4fr) minmax(0,1fr) 30px;gap:8px;align-items:center;margin:12px 0}.crew-edit>span{font-size:10px;color:#94a6ae}.crew-edit input{font-size:11px;padding:9px}.shift-actions{display:flex;align-items:center;justify-content:space-between;margin-top:17px;gap:10px}.info-box{display:flex;align-items:flex-start;gap:12px;background:#f1f7f6;border:1px solid #e2eeeb;color:#6f928b;padding:16px;border-radius:10px;font-size:10px}.switch-field{display:flex;gap:10px;align-items:center;font-size:12px;margin:20px 0}.switch-field input{width:19px;height:19px;accent-color:var(--teal)}.report-modal{max-width:1000px;background:#eef2f3}.report-toolbar{padding:15px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#f9fbfb;border-bottom:1px solid #dce6e9;position:sticky;top:96px;z-index:3}.report-toolbar>span{font-size:10px;color:#78909a;display:flex;gap:7px;align-items:center}.report-pages{padding:24px;display:flex;flex-direction:column;align-items:center;gap:25px}.report-pages img{width:100%;max-width:794px;height:auto;box-shadow:0 3px 16px #102c3b15}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-screen,.sign-in{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:17px;color:#547680;background:#f1f6f5;padding:25px;text-align:center}.loading-screen h1,.sign-in h1{font-size:38px;color:var(--navy)}.sign-in .brandmark{background:var(--navy);width:77px;height:82px;font-size:42px;border-radius:24px}.sign-in p{color:#7e989f}.sign-in small{margin-top:22px;color:#9caeb2}.sign-in .btn{margin-top:12px;padding:15px 30px}
@media(min-width:1600px){.content{padding-top:42px}.inspection-card{padding-top:28px}.inspection-card p{margin-bottom:28px}.stat{padding:28px}.lower-grid{grid-template-columns:minmax(0,2.3fr) minmax(270px,1fr)}}
@media(max-width:1200px){.sidebar{width:215px;padding-right:13px;padding-left:13px}.workspace{margin-right:215px}.content{padding:25px 24px 0}.topbar{padding:0 24px}.page-heading h1{font-size:26px}.page-heading p{font-size:10px}.stat{padding:20px 17px}.stat-icon{width:37px;height:37px}.stat strong{font-size:34px}.lower-grid{grid-template-columns:1fr}.daily-summary{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center}.daily-summary .panel-heading{grid-column:1 / -1;padding-bottom:12px}.daily-summary .donut{margin:8px auto 24px;width:120px;height:120px}.daily-summary .legend{display:flex;flex-direction:column;margin:0;gap:17px}.daily-summary .crew-summary{border:0;margin:0;padding:10px;flex-wrap:wrap}.records td{padding:14px}.stats{gap:12px}.inspection-card p{font-size:10px}.brand strong{font-size:26px}.brand{gap:10px;padding-left:7px;padding-right:7px}.sidebar nav button{font-size:11px}.brandmark{width:44px}}
@media(max-width:900px){.sidebar{display:none}.workspace{margin:0}.topbar{height:70px;padding:0 23px}.topbar .breadcrumb{font-size:10px}.content{padding:25px 23px 90px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:#ffffffed;backdrop-filter:blur(15px);border-top:1px solid #e0e8ea;display:flex;justify-content:space-around;padding:9px 10px calc(9px + env(safe-area-inset-bottom));z-index:40;box-shadow:0 -2px 15px #102c3b03}.mobile-nav button{min-height:49px;min-width:50px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#9aabb3;font-size:9px}.mobile-nav button.active{color:#206c70}.mobile-nav button.active svg{stroke-width:2.3}.mobile-nav button.active span{font-weight:700}.mobile-brand{display:flex;align-items:center;gap:8px;margin-bottom:20px;color:#315766}.mobile-brand b{font-size:20px;color:var(--navy)}.mobile-brand span{font-size:9px;color:#95a7af;border-right:1px solid #d9e3e6;padding-right:10px;margin-right:3px}.more-menu{display:flex;flex-direction:column;position:fixed;bottom:calc(84px + env(safe-area-inset-bottom));left:15px;z-index:50;background:white;border:1px solid var(--line);border-radius:13px;box-shadow:0 6px 35px #102c3b20;padding:10px;min-width:230px}.more-menu button,.more-menu a{display:flex;align-items:center;gap:12px;padding:13px 12px;font-size:12px}.toast{bottom:calc(92px + env(safe-area-inset-bottom))}.page-heading h1{font-size:28px}.footer{padding-bottom:5px}}
@media(max-width:600px){body{font-size:13px}.topbar{padding:0 17px;height:62px}.breadcrumb{display:none}.topbar-actions{width:100%;gap:10px;justify-content:flex-end}.connection{margin-left:auto;font-size:9px}.top-avatar{display:none}.site-select{margin-left:3px}.site-select select{max-width:180px;font-size:11px}.refresh{width:30px}.content{padding:19px 16px 100px}.mobile-brand{margin-bottom:20px}.page-heading{align-items:flex-start;margin-bottom:23px;gap:12px;flex-wrap:wrap}.page-heading>div{width:100%}.page-heading h1{font-size:26px}.eyebrow{font-size:9px;gap:6px}.page-heading p{font-size:10px;max-width:340px;line-height:1.9}.page-heading>.btn{min-height:41px;font-size:10px;padding:8px 13px}.stats{gap:8px;margin-bottom:26px}.stat{padding:14px 10px 12px;border-radius:12px;display:block;position:relative;overflow:hidden}.stat>div>span{font-size:9px;position:relative;z-index:1}.stat strong{font-size:30px;margin:8px 0 0}.stat small{font-size:7px;line-height:1.9;max-width:90px;min-height:26px}.stat small .dot{width:4px;height:4px}.stat-icon{width:28px;height:28px;border-radius:8px}.stat>.stat-icon{position:absolute;bottom:18px;left:9px;opacity:.7;display:none}.stat-icon svg{width:17px}.section-heading{gap:10px;align-items:flex-start}.section-heading h2{font-size:14px}.section-heading p{font-size:9px;max-width:235px;line-height:1.9}.auto-tag{font-size:8px;padding:5px 6px;white-space:nowrap}.auto-tag svg{width:11px}.inspection-cards{gap:10px;margin-bottom:21px}.inspection-card{padding:16px 13px 0;border-radius:13px}.inspection-icon{height:46px;width:47px;border-radius:12px}.inspection-icon svg{width:29px}.inspection-card-top{align-items:flex-start}.count-label{font-size:7px;background:none;padding:0;margin-top:3px}.count-label b{font-size:10px;display:block;text-align:left;margin:0}.inspection-card h3{font-size:16px;margin-top:16px}.inspection-card p{font-size:8px;margin-bottom:15px;max-width:150px;min-height:32px;line-height:1.8}.inspection-card-footer{padding:11px 0}.inspection-card-footer b{font-size:9px;gap:4px}.inspection-card-footer b svg{width:14px}.round-arrow{height:25px;width:25px}.round-arrow svg{width:14px}.wave-art{left:8px;top:55px;opacity:.7}.wave-art svg{width:110px}.lower-grid{gap:0}.panel{border-radius:13px;margin-bottom:16px}.panel-heading{padding:16px}.panel-heading h2{font-size:13px}.panel-heading>div>span{font-size:8px}.panel-heading .text-button{font-size:9px}.empty{min-height:210px;padding:23px}.empty b{font-size:12px}.empty p{font-size:10px}.daily-summary{grid-template-columns:1fr 1fr}.daily-summary .donut{margin:6px auto 18px;width:126px;height:126px}.daily-summary .legend{gap:15px;margin:0 auto 15px;font-size:10px}.daily-summary .crew-summary{border-top:1px solid var(--line);grid-column:1 / -1;margin:0 16px;padding:16px 0;flex-wrap:nowrap}.daily-summary .crew-summary small{font-size:9px}.daily-summary .crew-summary b{font-size:11px}.footer{font-size:7px;gap:6px;flex-wrap:wrap;padding-top:15px}.footer svg{width:11px}.records td{padding:12px;font-size:10px}.records th{padding:10px 12px;font-size:8px}.vessel-cell small{font-size:8px}.reason-cell{max-width:145px;font-size:9px}.toolbar{padding:15px;gap:12px}.toolbar>.search{flex-basis:100%}.toolbar>.segmented{flex:1}.toolbar .btn{font-size:9px;padding:8px 10px;min-height:37px}.segmented button{font-size:9px;padding:5px 8px}.toolbar .btn svg{width:14px}.archive-filter{padding:16px}.archive-filter h2{font-size:12px}.archive-filter p{font-size:9px}.date-fields{gap:10px;flex-wrap:wrap}.date-fields label{font-size:9px;flex-basis:40%}.date-fields input{font-size:11px;padding:9px 8px}.date-fields .btn{width:100%;margin-top:4px}.archive-days{grid-template-columns:1fr}.saved-reports{padding:0 15px}.saved-reports b{font-size:10px}.saved-reports small{font-size:8px}.saved-reports>button>svg{width:17px}.crew-grid{grid-template-columns:1fr;padding:16px}.crew-card{padding:13px}.panel-heading .btn{font-size:9px;padding:8px 10px;min-height:37px}.panel-footnote{font-size:9px;padding:13px 16px}.sites-grid{grid-template-columns:1fr}.site-card{padding:21px}.section-heading .btn{font-size:10px;padding:8px 11px}.members-list{padding:0 15px}.members-list>div{gap:10px;flex-wrap:wrap;padding:18px 0}.member-info{flex-basis:calc(100% - 65px)}.members-list .badge{margin-right:51px}.members-list .icon-button{margin-right:auto}.access-notice{margin:15px;font-size:9px}.modal-backdrop{padding:0;align-items:flex-end}.modal{border-radius:19px 19px 0 0;max-height:94dvh;padding-bottom:env(safe-area-inset-bottom)}.modal-heading{padding:17px 18px}.modal-heading h2{font-size:18px}.modal-body{padding:17px 18px}.modal-footer{padding:14px 18px}.modal-footer>.btn:first-child{flex:1}.type-choice button{padding:12px;font-size:12px}.field{font-size:11px}.field input,.field textarea,.field select{font-size:16px}.checklist>div{padding:12px 10px;gap:8px}.checklist b{font-size:10px}.checklist small{font-size:7px;max-width:115px}.check-options{gap:4px}.check-options button{padding:8px 6px;font-size:8px;min-height:36px}.check-options svg{width:12px}.checklist-heading b{font-size:11px}.decision-choice button{font-size:11px;gap:5px}.reason-options button{font-size:10px;min-height:39px}.note-chips button{font-size:8px;min-height:29px}.auto-save-hint{font-size:8px}.crew-edit{grid-template-columns:14px minmax(0,1.3fr) minmax(0,1fr) 24px;gap:5px}.crew-edit input{font-size:14px;padding:7px}.crew-edit .icon-button{width:24px}.report-backdrop{align-items:stretch}.report-modal{border-radius:0;max-height:100dvh;max-width:100%;height:100dvh}.report-toolbar{padding:12px 16px;flex-wrap:wrap;top:87px;gap:8px}.report-toolbar>span{font-size:8px}.report-toolbar .btn{width:100%;font-size:11px}.report-pages{padding:14px 10px;gap:16px}.report-modal .modal-heading{padding-top:calc(17px + env(safe-area-inset-top))}.toast{font-size:10px;padding:11px 12px;gap:8px;width:max-content}.toast>svg{width:17px}.alert{font-size:9px;padding:10px;gap:7px}.alert>svg{width:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body *{visibility:hidden}.report-pages,.report-pages *{visibility:visible}.report-pages{position:absolute;top:0;left:0;padding:0;gap:0;width:100%}.report-pages img{width:100%;max-width:none;box-shadow:none;page-break-after:always}@page{size:A4;margin:0}}

/* The everyday task gets one quiet screen; secondary tools live under More. */
.simple-home .content{padding-top:31px}.quick-home{max-width:680px;margin:0 auto;padding:0 0 30px}.quick-heading{margin:0 0 25px}.quick-heading h1{font-size:25px;letter-spacing:-.6px}.quick-heading p{font-size:11px;color:#8699a2;margin-top:3px}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.quick-action{border:1px solid #dce9e3;background:#f7fcf9;border-radius:18px;min-height:185px;position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:right;padding:22px 24px;color:#226f59;transition:background .15s,border-color .15s,transform .15s}.quick-action:hover{background:#edf7f0;border-color:#8db8a6}.quick-action:active{transform:scale(.985)}.quick-action.denied{background:#fffafa;border-color:#eee0e2;color:#a44e59}.quick-action.denied:hover{background:#fff0f1;border-color:#d7a4ab}.quick-symbol{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:43px;margin-bottom:12px}.quick-state{position:absolute;bottom:0;left:-5px;border-radius:50%;background:#dbeee3;width:18px;height:18px;display:grid;place-items:center;border:2px solid #f7fcf9;color:#2e8066}.denied .quick-state{background:#f3dfe2;border-color:#fffafa;color:#ad4e5d}.quick-label{font-size:16px;font-weight:600}.quick-number{position:absolute;left:26px;top:19px;font-size:47px;font-weight:500;line-height:1.4;letter-spacing:-1px;font-variant-numeric:tabular-nums}.quick-add{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e8f3ec;margin-top:12px}.denied .quick-add{background:#f8ebed}.quick-total{display:flex;align-items:center;justify-content:space-between;padding:17px 22px;margin:20px 0 14px;border:1px solid #e5ebed;background:#fff;border-radius:12px;color:#738995;font-size:13px}.quick-total strong{color:var(--navy);font-size:24px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums}.quick-report{width:100%;font-size:13px;min-height:52px;border-radius:11px}.quick-report svg:last-child{margin-right:auto}.quick-report svg:first-child{margin-left:auto}.simple-home .refresh,.simple-home .top-avatar{display:none}.simple-home .mobile-brand{margin-bottom:24px}.completion-prompt{text-align:center;padding:8px 0 23px}.completion-prompt>span{display:grid;place-items:center;width:70px;height:70px;border-radius:22px;background:#eaf5ee;color:#2c8267;margin:0 auto 16px}.completion-prompt h3{font-size:23px;margin-bottom:6px}.completion-prompt p{font-size:12px;color:#81979e;line-height:1.9}.optional-details{border:1px solid #e5ebed;border-radius:10px;padding:0 14px}.optional-details summary{display:flex;align-items:center;gap:8px;padding:13px 0;cursor:pointer;font-size:11px;color:#758e98;list-style:none}.optional-details summary::-webkit-details-marker{display:none}.optional-details summary>span{font-size:9px;color:#a2b0b6}.optional-details summary>svg{margin-right:auto}.optional-details[open] summary>svg{transform:rotate(45deg)}.optional-details .field:first-child{margin-top:8px}.quick-form .modal-body{padding-top:21px}.quick-form .modal-footer>.btn:first-child{flex:1}.quick-form.allowed .modal-footer>.btn:first-child{background:#226f59}.quick-form.allowed .modal-footer>.btn:first-child:hover{background:#175943}.quick-context{display:flex;align-items:center;gap:6px;color:#8da0a9;font-size:9px;margin-top:19px}.quick-reasons{border:0;padding:0;margin:20px 0 0;min-width:0}.quick-reasons legend{font-size:12px;margin-bottom:10px;font-weight:500}.quick-reasons .reason-options button{min-height:40px;font-size:11px;padding:8px 13px}.more-page{max-width:740px;margin:0 auto}.more-links{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.more-links>button{width:100%;display:flex;align-items:center;gap:15px;padding:21px 23px;text-align:right;border-bottom:1px solid #edf1f2;min-height:77px}.more-links>button:last-child{border:0}.more-links>button:hover{background:#f6f9f9}.more-links>button>b{flex:1;font-size:13px}.more-links>button>svg{color:#91a4ad}.more-icon{width:39px;height:39px;border-radius:11px;background:#edf4f3;color:#5c8782;display:grid;place-items:center}.more-account{display:flex;align-items:center;gap:13px;margin-top:20px;padding:17px 8px}.more-account>div{flex:1}.more-account b{font-size:12px;display:block}.more-account small{font-size:10px;color:#8a9fa8;display:block}.more-account>a{display:grid;place-items:center;width:42px;height:42px;border-radius:9px;color:#8a9da5}.more-account>a:hover{background:#e9eff0}
@media(min-width:901px){.simple-home .topbar{background:transparent}.simple-home .content{padding-top:45px}.simple-home .connection{font-size:10px}.quick-home{padding-bottom:45px}}
@media(max-width:900px){.mobile-nav button{max-width:150px;min-height:51px}.quick-home{max-width:600px}}
@media(max-width:600px){.simple-home .content{padding-top:16px;padding-bottom:calc(89px + env(safe-area-inset-bottom))}.simple-home .mobile-brand{margin-bottom:18px}.quick-heading{margin-bottom:19px}.quick-heading h1{font-size:23px}.quick-heading p{font-size:10px}.quick-grid{gap:11px}.quick-action{min-height:156px;padding:17px 15px;border-radius:14px}.quick-symbol{height:35px;width:34px;margin-bottom:11px}.quick-symbol>svg{width:28px}.quick-number{font-size:39px;top:15px;left:16px}.quick-label{font-size:13px}.quick-add{margin-top:10px;width:25px;height:25px}.quick-add svg{width:15px}.quick-total{margin-top:16px;margin-bottom:12px;padding:14px 17px;font-size:11px}.quick-total strong{font-size:22px}.quick-report{min-height:49px;font-size:12px}.quick-home{padding-bottom:0}.completion-prompt{padding:5px 0 24px}.completion-prompt>span{width:63px;height:63px;border-radius:19px;margin-bottom:15px}.completion-prompt h3{font-size:21px}.completion-prompt p{font-size:11px}.optional-details summary{font-size:10px}.quick-context{font-size:8px}.quick-form .modal-footer>.btn{font-size:11px}.quick-form .field:first-child{margin-top:0}.more-links>button{padding:17px;min-height:73px}.more-links>button>b{font-size:12px}.more-icon{width:36px;height:36px}.more-icon svg{width:21px}.more-account{padding:12px 2px}.quick-reasons .reason-options button{font-size:10px;min-height:41px}.quick-form .modal-body{padding-top:20px}}
@media(max-width:350px){.quick-action{min-height:139px;padding:13px 12px}.quick-number{font-size:34px;left:12px;top:12px}.quick-label{font-size:11px}.quick-heading{margin-bottom:16px}.quick-heading h1{font-size:21px}.quick-symbol{margin-bottom:9px}.quick-add{margin-top:8px;width:23px;height:23px}.simple-home .mobile-brand{margin-bottom:15px}.quick-total{margin-top:13px;padding:12px 14px}.quick-report{min-height:46px}.quick-home{padding-bottom:0}}

/* Group the decision controls by vessel; keep additions next to their live counts. */
.registration-home{max-width:920px;margin:0 auto;padding-bottom:30px}.registration-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:23px}.registration-heading h1{font-size:26px}.registration-heading p{font-size:11px;color:#8a9da6;margin-top:3px}.today-chip{font-size:10px;color:#6b858e;border:1px solid #dde7e9;background:#fff;border-radius:7px;padding:6px 11px}.overview-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px}.overview-tile{background:#fff;border:1px solid #e2e9ec;border-radius:13px;padding:16px 19px;display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:6px 8px;position:relative}.overview-icon{display:inline-flex;color:#7794a4}.overview-tile>span:not(.overview-icon){font-size:11px;color:#7b919c}.overview-tile>strong{grid-column:1/-1;font-size:33px;font-weight:500;line-height:1.5;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.overview-tile.allowed .overview-icon,.overview-tile.allowed>strong{color:#2a7a61}.overview-tile.denied .overview-icon,.overview-tile.denied>strong{color:#ad525e}.vessel-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:19px}.vessel-panel{background:#fff;border:1px solid #e0e8eb;border-radius:17px;padding:22px;min-width:0}.vessel-panel-heading{display:flex;align-items:center;gap:12px;margin-bottom:22px}.vessel-panel-icon{height:46px;width:46px;border-radius:13px;display:grid;place-items:center;background:#edf3f7;color:#466e84}.jet .vessel-panel-icon{background:#edf5f2;color:#458979}.vessel-panel-heading h2{font-size:18px}.vessel-panel-heading p{font-size:9px;color:#8b9fa8;display:flex;align-items:center;gap:7px;margin-top:2px}.vessel-panel-heading p b{color:#597886;font-size:11px}.vessel-action-row{display:flex;align-items:center;gap:10px;border:1px solid #e0ede5;border-radius:11px;background:#f5faf7;padding:10px 12px;min-height:67px}.vessel-action-row+.vessel-action-row{margin-top:10px}.vessel-action-row.denied{border-color:#f0e3e6;background:#fff9fa}.decision-marker{width:24px;height:24px;border-radius:50%;background:#e5f1e9;color:#3a896b;display:grid;place-items:center;flex-shrink:0}.denied .decision-marker{background:#f9e9ec;color:#b25a67}.decision-count{display:flex;gap:13px;align-items:center;flex:1;min-width:0}.decision-count>span{font-size:12px;font-weight:500;color:#4e826c}.decision-count>strong{font-weight:500;font-size:28px;line-height:1.5;color:#2b735b;margin-right:auto;margin-left:9px;font-variant-numeric:tabular-nums}.denied .decision-count>span{color:#a4616b}.denied .decision-count>strong{color:#a84e5b}.add-decision{min-height:42px;min-width:83px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:11px;font-weight:600;border-radius:8px;color:#fff;background:#2c7b60;padding:8px 12px;transition:background .15s,transform .15s}.add-decision:hover{background:#21664e}.add-decision:active{transform:scale(.97)}.denied .add-decision{background:#fff;border:1px solid #e9cdd2;color:#ae5663}.denied .add-decision:hover,.denied .add-decision.expanded{background:#f8e9ec;border-color:#ddaeb8}.registration-report{display:flex;width:100%;min-height:52px;font-size:12px;border-radius:11px;margin-top:20px;padding:12px 20px}.registration-report span{flex:1;text-align:center}.inline-denial{margin-top:14px;padding:17px 0 0;border-top:1px dashed #e8d2d7}.inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:11px}.inline-fields label,.inline-note{display:flex;flex-direction:column;gap:7px;font-size:10px;color:#617e8d}.inline-fields input,.inline-fields select,.inline-note textarea,.inline-note-details textarea{width:100%;padding:10px;background:#fff;border:1px solid #dfe7ea;border-radius:8px;min-height:43px;color:#243f4c;font-size:11px}.inline-fields select{padding-right:7px;padding-left:4px}.inline-note{margin-top:13px}.inline-note textarea,.inline-note-details textarea{resize:vertical;line-height:1.8}.inline-note-details{margin-top:13px}.inline-note-details summary{display:flex;align-items:center;gap:5px;font-size:9px;color:#8b9da7;cursor:pointer;list-style:none;padding:3px 0 9px}.inline-note-details summary::-webkit-details-marker{display:none}.inline-note-details summary svg{margin-right:auto}.inline-denial-actions{display:flex;gap:10px;align-items:center;margin-top:16px}.inline-denial-actions>.danger{flex:1;min-height:42px}.inline-cancel{color:#81949f;background:#f4f7f8;min-height:42px;font-size:10px}.retry-inspection{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;margin-bottom:20px;border:1px solid #ead6b3;background:#fff9ee;border-radius:11px;color:#926a36}.retry-inspection b{font-size:11px;display:block}.retry-inspection p{font-size:10px}.retry-inspection .btn{font-size:10px;min-height:40px}
@media(min-width:901px){.simple-home .content:has(.registration-home){padding-top:33px}}
@media(max-width:1200px) and (min-width:901px){.vessel-panel{padding:17px}.vessel-action-row{gap:7px;padding:9px}.add-decision{min-width:68px;padding:8px;font-size:10px}.decision-count{gap:7px}.decision-count>strong{font-size:24px;margin-left:3px}.decision-count>span{font-size:11px}}
@media(max-width:700px){.vessel-panels{grid-template-columns:1fr;gap:14px}.vessel-panel{padding:16px}.vessel-panel-heading{margin-bottom:14px}.vessel-panel-heading h2{font-size:17px}.vessel-panel-heading p{margin:0}.vessel-panel-icon{width:40px;height:40px;border-radius:11px}.vessel-action-row{min-height:59px;padding:7px 11px}.decision-count>strong{font-size:26px;margin-left:10px}.overview-tiles{gap:10px}.overview-tile{padding:13px}.overview-tile>strong{font-size:29px}}
@media(max-width:600px){.simple-home .mobile-brand:has(+ .registration-home){display:none}.simple-home .mobile-brand{display:none}.simple-home .content:has(.registration-home){padding-top:18px}.registration-home{padding-bottom:0}.registration-heading{margin-bottom:16px}.registration-heading h1{font-size:23px}.registration-heading p{font-size:9px}.today-chip{display:none}.overview-tiles{gap:9px;margin-bottom:17px}.overview-tile{padding:10px 11px;border-radius:11px;grid-template-columns:17px minmax(0,1fr);gap:2px 4px}.overview-icon svg{width:15px;height:15px}.overview-tile>span:not(.overview-icon){font-size:8px}.overview-tile>strong{font-size:27px;line-height:1.5}.vessel-panels{gap:12px}.vessel-panel{padding:12px;border-radius:13px}.vessel-panel-heading{gap:9px;margin-bottom:10px}.vessel-panel-icon{width:36px;height:36px;border-radius:10px}.vessel-panel-icon svg{width:23px}.vessel-panel-heading h2{font-size:15px;line-height:1.4}.vessel-panel-heading p{font-size:8px}.vessel-panel-heading p b{font-size:9px}.vessel-action-row{min-height:53px;padding:5px 9px;gap:9px;border-radius:9px}.vessel-action-row+.vessel-action-row{margin-top:7px}.decision-marker{width:22px;height:22px}.decision-marker svg{width:13px}.decision-count{gap:10px}.decision-count>span{font-size:11px}.decision-count>strong{font-size:25px;margin-left:12px}.add-decision{min-height:41px;min-width:84px;font-size:11px;padding:8px 11px}.registration-report{margin-top:14px;min-height:48px;font-size:11px;padding:11px 15px}.inline-denial{margin-top:13px;padding-top:14px}.inline-fields{gap:10px}.inline-fields label{font-size:10px}.inline-fields input,.inline-fields select,.inline-note textarea,.inline-note-details textarea{font-size:16px;padding:9px;min-height:44px}.inline-fields select{font-size:13px}.inline-note-details summary{font-size:9px;min-height:31px}.inline-denial-actions{margin-top:12px}.inline-denial-actions .btn{min-height:43px;font-size:11px}.retry-inspection{flex-wrap:wrap;padding:12px;gap:9px}.retry-inspection .btn{width:100%}.retry-inspection b{font-size:10px}.retry-inspection p{font-size:9px}}
@media(max-width:350px){.registration-heading h1{font-size:21px}.registration-heading{margin-bottom:14px}.overview-tile{padding:9px 7px;gap:2px 2px;grid-template-columns:15px minmax(0,1fr)}.overview-tile>span:not(.overview-icon){font-size:7px}.overview-icon svg{width:13px}.overview-tile>strong{font-size:25px}.overview-tiles{gap:7px;margin-bottom:14px}.vessel-panel{padding:10px}.add-decision{min-width:75px;font-size:10px}.decision-count>strong{margin-left:5px;font-size:24px}.vessel-action-row{gap:7px;padding:5px 7px}.vessel-panel-heading h2{font-size:14px}.inline-fields{grid-template-columns:1fr}.inline-fields select{font-size:14px}.registration-report{font-size:10px}}
/* === theme.css === */
:root{--navy:#007aff;--ink:#1c1c1e;--teal:#248a3d;--muted:#8e8e93;--line:#e5e5ea;--bg:#f2f2f7;--red:#d70015;color-scheme:light}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Cairo',sans-serif;background:#f2f2f7;color:#1c1c1e;font-size:15px;-webkit-text-size-adjust:100%}button,input,select,textarea{font-family:inherit}h1,h2,h3{color:#1c1c1e}.sidebar{width:232px;background:#fafafc;color:#3a3a3c;border-left:1px solid #e5e5ea;padding:31px 16px 18px}.workspace{margin-right:232px}.brand{padding:0 10px 35px;gap:12px}.brandmark{background:#007aff;color:white;border:0;border-radius:12px;width:43px;height:43px}.brandmark svg{width:26px}.brand strong{color:#1c1c1e;font-size:29px;letter-spacing:-.5px}.brand strong span{display:none}.brand small{color:#8e8e93;font-size:11px}.sidebar-caption{font-size:11px;color:#8e8e93;padding-bottom:10px}.sidebar nav{gap:4px}.sidebar nav button{color:#636366;font-size:13px;min-height:48px;border-radius:10px;padding:11px 13px;gap:12px}.sidebar nav button:hover{background:#eeeeF3;color:#3a3a3c}.sidebar nav button.active{background:#e6efff;color:#007aff}.sidebar nav button.active svg{color:#007aff}.nav-mark{display:none!important}.private-label{color:#8e8e93;padding:18px 9px}.private-label b{color:#636366;font-size:11px}.private-label small{color:#a1a1a6;font-size:10px}.profile{border-color:#e5e5ea;padding-top:17px}.profile .avatar{background:#e5e5ea;color:#636366}.profile b{font-size:12px;color:#3a3a3c}.profile small,.profile a{color:#8e8e93}.avatar{background:#f2f2f7;color:#636366;border-radius:50%}.workspace>.topbar,.simple-home .topbar{background:#f2f2f7d9;backdrop-filter:blur(20px);border:0;height:72px;min-height:72px;padding:0 38px}.breadcrumb{font-size:12px;color:#3a3a3c}.breadcrumb span{color:#8e8e93}.topbar-actions{gap:13px}.site-select{border:0;box-shadow:none;background:#e9e9ef;border-radius:10px;padding:5px 10px;color:#636366}.site-select select{font-size:13px;color:#3a3a3c;padding:3px}.top-avatar{background:#e5e5ea;color:#636366}.header-brand{display:none}.icon-button{color:#8e8e93;border-radius:50%}.icon-button:hover{background:#e9e9ef;color:#007aff}.content{max-width:1260px;padding:25px 38px 0;margin:0 auto}.simple-home .content:has(.registration-home){padding-top:24px}.registration-home{max-width:1020px;margin:auto}.registration-heading{margin-bottom:25px;gap:15px}.registration-heading h1{font-size:33px;font-weight:700;letter-spacing:-.8px;line-height:1.45}.registration-heading p{font-size:13px;color:#8e8e93;margin-top:7px}.today-chip{display:none}.overview-tiles{background:white;border:0;border-radius:16px;overflow:hidden;gap:0;margin-bottom:24px;box-shadow:none}.overview-tile,.overview-tile.total,.overview-tile.allowed,.overview-tile.denied{background:transparent;border:0!important;border-radius:0;box-shadow:none;padding:17px 23px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;position:relative}.overview-tile:not(:last-child)::after{content:'';position:absolute;left:0;top:19px;bottom:19px;width:1px;background:#e5e5ea}.overview-icon{display:none}.overview-tile>span:not(.overview-icon),.overview-tile.total>span:not(.overview-icon){color:#8e8e93;font-size:13px;font-weight:400}.overview-tile>strong,.overview-tile.total>strong{font-size:34px;color:#1c1c1e;font-weight:600;line-height:1.45;letter-spacing:-.7px}.overview-tile.allowed>strong{color:#248a3d}.overview-tile.denied>strong{color:#d70015}.ios-crew{background:#fff;border:0;border-radius:16px;margin:0 0 24px;overflow:hidden}.ios-crew-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 21px 17px}.ios-crew-header h2{font-size:17px;font-weight:600}.ios-crew-header>div>span{display:block;font-size:12px;color:#8e8e93;margin-top:3px}.ios-save-state{font-size:11px;color:#aeaeb2;white-space:nowrap}.ios-save-state.saved{color:#8e8e93}.ios-crew-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0 6px 0}.ios-person{min-width:0;display:flex;align-items:center;gap:9px;padding:13px 15px;margin-bottom:15px}.ios-person.supervisor{grid-column:1/-1;border:0;background:#eef4ff;border-radius:12px;margin:0 15px 10px;padding:15px 16px}.ios-person.employee:not(:last-child){border-left:1px solid #ececf1}.ios-person-symbol{width:31px;height:34px;flex-shrink:0;display:grid;place-items:center;color:#aeaeb2;font-size:14px}.supervisor .ios-person-symbol{width:38px;color:#007aff}.ios-person>label{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.ios-person>label>span{font-size:11px;color:#8e8e93;line-height:1.5}.supervisor>label>span{color:#007aff;font-size:12px;font-weight:500}.ios-person input{padding:0;min-height:29px;background:transparent;border:0;border-radius:0;font-size:16px;color:#3a3a3c;font-weight:500;width:100%;min-width:0;outline:0}.ios-person input::placeholder{color:#c7c7cc;font-weight:400}.supervisor input{font-size:19px;color:#174986;font-weight:600}.ios-person input:focus{outline:0}.ios-person:focus-within{box-shadow:inset 0 0 0 2px #007aff25;border-radius:10px}.ios-presence{flex-shrink:0;background:#f2f2f7;color:#8e8e93;border:0;border-radius:20px;font-size:10px;min-width:45px;min-height:31px;padding:4px 8px}.supervisor .ios-presence{background:#e1ebff;color:#5778a7}.ios-presence.is-absent,.supervisor .ios-presence.is-absent{background:#fff0f0;color:#d70015}.ios-person.absent input{color:#aeaeb2}.ios-ranks{padding:0 21px 14px}.ios-ranks summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;color:#8e8e93;font-size:11px;min-height:27px}.ios-ranks summary::-webkit-details-marker{display:none}.ios-ranks[open] summary{margin-bottom:11px}.ios-ranks[open] summary svg{transform:rotate(180deg)}.ios-ranks>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.ios-ranks label{font-size:11px;color:#8e8e93;display:flex;flex-direction:column;gap:5px}.ios-ranks input{background:#f2f2f7;border:0;border-radius:8px;padding:9px 11px;min-height:40px;width:100%;font-size:13px;color:#3a3a3c}.ios-crew-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 21px;border-top:1px solid #f2f2f7}.ios-remember{display:flex;align-items:center;gap:8px;color:#8e8e93;font-size:12px;cursor:pointer}.ios-remember input{width:17px;height:17px;accent-color:#007aff;margin:0}.ios-save-crew{display:flex;align-items:center;justify-content:center;gap:7px;color:#fff;background:#007aff;border:0;box-shadow:none;border-radius:10px;min-height:43px;min-width:140px;padding:9px 17px;font-size:13px;font-weight:600}.ios-save-crew:disabled{background:#f2f2f7;color:#8e8e93;opacity:1}.ios-save-crew:not(:disabled):hover{background:#0067d9}.ios-legacy-note{font-size:11px;color:#8e8e93;padding:0 21px 15px}.ios-shift-page{max-width:1020px;margin:auto}.vessel-panels{gap:20px;align-items:start}.vessel-panel{background:#fff;border:0;border-radius:16px;padding:0;overflow:hidden;box-shadow:none}.vessel-panel-heading{padding:18px 20px;margin:0;gap:10px}.vessel-panel-icon,.jet .vessel-panel-icon{background:transparent;color:#007aff;border:0;box-shadow:none;border-radius:0;width:33px;height:37px}.vessel-panel-icon svg{width:27px}.vessel-panel-heading h2{font-size:17px;font-weight:600;color:#1c1c1e}.vessel-panel-heading p{font-size:11px;color:#aeaeb2;margin-top:3px}.vessel-panel-heading p b{font-size:12px;font-weight:500;color:#8e8e93}.vessel-action-row,.vessel-action-row.denied{border:0;background:white;border-radius:0;margin:0;min-height:72px;padding:12px 20px;gap:10px}.vessel-action-row+.vessel-action-row{margin:0;border-top:1px solid #f2f2f7}.decision-marker,.denied .decision-marker{background:transparent;color:#aeaeb2;width:21px;height:25px}.decision-marker svg{width:17px}.decision-count{gap:14px}.decision-count>span,.denied .decision-count>span{font-size:15px;color:#636366;font-weight:400}.decision-count>strong{font-size:28px;color:#248a3d;font-weight:500;line-height:1.4;margin-left:12px}.denied .decision-count>strong{color:#d70015}.add-decision,.denied .add-decision{border:0;box-shadow:none;background:#eaf3ff;color:#007aff;border-radius:22px;min-height:39px;min-width:84px;padding:8px 12px;font-size:12px;font-weight:600}.add-decision:hover,.denied .add-decision:hover,.denied .add-decision.expanded{background:#dfecff;border:0;color:#007aff}.add-decision svg{width:17px}.inline-denial{padding:14px 20px 20px;border:0;margin:0;background:white}.inline-fields{gap:12px}.inline-fields label,.inline-note{font-size:12px;color:#8e8e93}.inline-fields input,.inline-fields select,.inline-note textarea,.inline-note-details textarea{border:0;background:#f2f2f7;border-radius:9px;padding:11px 12px;min-height:44px;font-size:14px;color:#1c1c1e}.inline-note-details summary{font-size:11px;color:#8e8e93}.inline-denial-actions{margin-top:15px}.btn{font-size:13px;font-weight:600;border-radius:11px;min-height:44px}.btn.primary{background:#007aff;border:0;color:white;box-shadow:none}.btn.primary:hover{background:#0068d9}.btn.subtle{background:#e9e9ef;border:0;color:#636366}.btn.subtle:hover{background:#e2e2e9}.btn.danger{background:#ff3b30;color:#fff;border:0;box-shadow:none}.registration-report{background:#007aff;border:0;box-shadow:none;min-height:51px;font-size:14px;border-radius:13px;margin-top:22px}.registration-report:hover{background:#0068d9}.registration-report span{font-weight:600}.panel,.more-links{background:white;border:0;border-radius:16px;box-shadow:none}.panel-heading{border-bottom:1px solid #f2f2f7;padding:20px 21px}.panel-heading h2{font-size:17px;font-weight:600;color:#1c1c1e}.panel-heading>div>span{font-size:12px;color:#8e8e93}.page-heading h1{font-size:31px;color:#1c1c1e;letter-spacing:-.6px}.page-heading p,.eyebrow{color:#8e8e93}.more-icon{background:transparent;color:#007aff;border-radius:0}.more-links>button{padding:19px 21px;border-color:#f2f2f7;min-height:71px;gap:12px}.more-links>button>b{font-size:16px;font-weight:400;color:#1c1c1e}.more-links>button>svg{color:#c7c7cc}.more-links>button:hover{background:#fafafa}.more-account{padding:17px 8px}.more-account b{font-size:14px;color:#3a3a3c}.more-account small{font-size:12px;color:#8e8e93}.records th{background:#fafafa;font-size:12px;color:#8e8e93;font-weight:400;border-color:#f2f2f7}.records td{font-size:13px;border-color:#f2f2f7}.vessel-cell b{font-size:13px;font-weight:500}.vessel-cell small{font-size:11px;color:#aeaeb2}.vessel-icon{background:#f2f2f7;color:#8e8e93;border-radius:9px}.vessel-icon.jet{background:#f2f2f7;color:#8e8e93}.badge{font-size:11px;padding:4px 8px;border-radius:6px}.badge.allowed{background:#ecf7ee;color:#248a3d}.badge.denied{background:#fff0f0;color:#d70015}.badge.muted{background:#f2f2f7;color:#8e8e93}.reason-cell{font-size:12px;color:#8e8e93}.note-cell,.time-cell{font-size:11px;color:#8e8e93}.toolbar{padding:18px 20px}.search{border:0;background:#e9e9ef;border-radius:10px;padding:8px 12px;color:#8e8e93}.search input{font-size:13px}.segmented{background:#e9e9ef;border-radius:9px;padding:3px;gap:0}.segmented button{font-size:12px;padding:6px 12px;color:#636366}.segmented .selected{background:white;box-shadow:0 1px 4px #00000016;color:#1c1c1e}.field{font-size:14px;color:#636366}.field input,.field select,.field textarea,.date-fields input{border:0;border-radius:10px;background:#f2f2f7;color:#1c1c1e;font-size:15px;min-height:45px}.field>span{font-size:11px;color:#aeaeb2}.field input:focus,.field textarea:focus,.field select:focus,.inline-fields input:focus,.inline-fields select:focus{outline:2px solid #007aff55;outline-offset:1px}.switch-field input{accent-color:#007aff}.modal{border:0;border-radius:20px;box-shadow:0 18px 70px #0000002b}.modal-backdrop{background:#00000040;backdrop-filter:blur(3px)}.modal-heading{background:#fff;border-bottom:1px solid #f2f2f7;padding:20px 24px}.modal-heading h2{font-size:21px;font-weight:600}.modal-footer{border:0;background:#fafafa;padding:15px 24px}.modal-body{padding:22px 24px}.report-toolbar{background:#fafafa;border-color:#e5e5ea}.report-toolbar>span{color:#8e8e93}.report-pages{background:#f2f2f7}.toast{background:#2c2c2e;border:0;border-radius:16px;box-shadow:0 8px 25px #0000001a;font-size:13px;padding:14px 18px}.toast>svg{color:#fff}.toast button{color:#91c3ff;font-size:12px}.toast-close{color:#c7c7cc!important}.mobile-nav{background:#fafafae8;backdrop-filter:blur(24px);border-top:1px solid #dcdce150;box-shadow:none}.mobile-nav button{font-size:10px;color:#8e8e93;font-weight:400}.mobile-nav button.active{color:#007aff}.mobile-nav button.active svg{stroke-width:2}.mobile-nav button.active span{font-weight:500}.footer{font-size:10px;color:#aeaeb2}.stat{border:0;box-shadow:none;background:white;border-radius:15px}.stat strong{font-family:inherit;font-size:36px;font-weight:500;color:#1c1c1e}.stat>div>span{font-size:12px;color:#8e8e93}.stat small{font-size:10px;color:#aeaeb2}.stat-icon{background:#f2f2f7!important;color:#8e8e93!important;border-radius:11px}.empty{color:#c7c7cc}.empty b{font-size:15px;color:#8e8e93;font-weight:500}.empty p{font-size:12px;color:#aeaeb2}.text-button{color:#007aff;font-size:12px}.access-notice,.info-box{background:#f2f2f7;border:0;color:#8e8e93}.site-card{border:0;box-shadow:none}.site-card-top{margin-bottom:16px}.site-card h2{color:#1c1c1e;font-size:21px}.site-card p{font-size:12px;color:#8e8e93}.site-stats b{color:#3a3a3c}.site-stats span{color:#8e8e93;border-color:#e5e5ea}.add-site{background:#eaeaf0;border:0;color:#8e8e93;border-radius:16px}.add-site>span{background:#e2e2e9}.add-site b{color:#636366}.members-list>div{border-color:#f2f2f7}.member-info b{font-size:14px}.member-info small{font-size:12px;color:#8e8e93}.saved-reports b{font-size:14px;color:#3a3a3c}.saved-reports small{font-size:11px;color:#8e8e93}.day-card{border:0;background:#fff;border-radius:13px}.day-card b{font-size:14px}.day-card small{font-size:11px;color:#8e8e93}.date-tile{background:#f2f2f7;color:#3a3a3c}.date-tile small{color:#8e8e93}.loading-screen,.sign-in{background:#f2f2f7;color:#8e8e93}.loading-screen h1,.sign-in h1{color:#1c1c1e}
@media(min-width:1400px){.registration-home{max-width:1050px}.ios-person{padding:15px 20px}.vessel-panel-heading{padding:21px 23px}.vessel-action-row,.vessel-action-row.denied{padding:14px 23px;min-height:77px}}
@media(max-width:1200px) and (min-width:901px){.sidebar{width:202px;padding-left:12px;padding-right:12px}.workspace{margin-right:202px}.content{padding:25px 25px 0}.workspace>.topbar{padding:0 25px}.ios-person{gap:7px;padding:12px 9px}.ios-person-symbol{width:21px}.ios-person input{font-size:15px}.ios-presence{min-width:39px;font-size:9px;padding:4px 6px}.vessel-action-row,.vessel-action-row.denied{padding:12px 15px;gap:8px}.decision-count>strong{margin-left:5px}.decision-count>span{font-size:14px}.add-decision,.denied .add-decision{min-width:72px;font-size:11px}}
@media(max-width:900px){.sidebar{display:none}.workspace{margin:0}.workspace>.topbar,.simple-home .topbar{height:65px;min-height:65px;padding:0 23px;position:sticky;top:0;z-index:30}.header-brand{display:flex;gap:7px;align-items:center;color:#007aff;padding:0}.header-brand b{color:#1c1c1e;font-size:23px;font-weight:600}.header-brand svg{width:22px}.breadcrumb{display:none}.topbar .topbar-actions{width:auto;margin-right:auto;gap:10px}.topbar .top-avatar{display:none}.content{padding:23px 23px 105px}.simple-home .content:has(.registration-home){padding-top:22px}.content>.mobile-brand{display:none}.mobile-nav{display:flex;padding:9px 10px calc(9px + env(safe-area-inset-bottom))}.mobile-nav button{min-height:50px;max-width:150px}.mobile-nav button svg{width:23px;height:23px}.ios-person{gap:9px;padding:12px}.ios-person-symbol{width:24px}.ios-presence{min-width:41px;font-size:9px}.ios-person input{font-size:16px}.registration-heading h1{font-size:31px}.overview-tile{padding:16px 20px}}
@media(max-width:600px){body{font-size:15px}.workspace>.topbar,.simple-home .topbar{height:61px;min-height:61px;padding:0 17px}.header-brand b{font-size:22px}.header-brand svg{width:21px}.site-select{border-radius:9px;padding:3px 7px}.site-select select{font-size:12px;max-width:158px;min-height:31px}.topbar .refresh{width:28px}.content{padding:20px 16px calc(99px + env(safe-area-inset-bottom))}.simple-home .content:has(.registration-home){padding-top:22px}.registration-heading{margin-bottom:20px}.registration-heading h1{font-size:29px;letter-spacing:-.5px}.registration-heading p{font-size:12px;margin-top:5px}.overview-tiles{border-radius:14px;margin-bottom:20px}.overview-tile,.overview-tile.total,.overview-tile.allowed,.overview-tile.denied{padding:13px 13px;gap:2px}.overview-tile>span:not(.overview-icon),.overview-tile.total>span:not(.overview-icon){font-size:11px;white-space:nowrap}.overview-tile>strong,.overview-tile.total>strong{font-size:29px;line-height:1.5}.overview-tile:not(:last-child)::after{top:16px;bottom:16px}.ios-crew{border-radius:14px;margin-bottom:20px}.ios-crew-header{padding:17px 17px 14px;gap:10px}.ios-crew-header h2{font-size:16px}.ios-crew-header>div>span{font-size:11px;margin-top:3px}.ios-save-state{font-size:9px}.ios-crew-slots{display:flex;flex-direction:column;padding:0}.ios-person{padding:13px 16px;margin:0;min-height:72px;gap:11px}.ios-person.supervisor{margin:0 11px 2px;padding:14px 13px;min-height:78px;border-radius:11px}.ios-person.employee:not(:last-child){border-left:0;border-bottom:1px solid #f2f2f7}.ios-person-symbol{width:27px;font-size:13px}.supervisor .ios-person-symbol{width:30px}.ios-person>label{gap:3px}.ios-person>label>span{font-size:10px}.supervisor>label>span{font-size:11px}.ios-person input{font-size:17px;min-height:29px;font-weight:400}.supervisor input{font-size:19px;font-weight:600}.ios-presence{font-size:10px;min-width:47px;min-height:32px;padding:4px 8px}.ios-ranks{padding:4px 17px 12px}.ios-ranks summary{font-size:10px;min-height:30px}.ios-ranks>div{grid-template-columns:1fr 1fr;gap:10px}.ios-ranks input{font-size:16px;min-height:43px}.ios-ranks label{font-size:10px}.ios-crew-footer{padding:13px 17px;gap:13px;flex-wrap:wrap}.ios-remember{font-size:11px;gap:7px;min-height:28px}.ios-remember input{width:17px;height:17px}.ios-save-crew{min-height:44px;font-size:12px;min-width:128px;border-radius:10px;padding:10px 13px;flex:1}.ios-legacy-note{padding:0 17px 13px;font-size:10px}.vessel-panels{grid-template-columns:1fr;gap:17px}.vessel-panel{border-radius:14px;padding:0}.vessel-panel-heading{padding:16px 17px;gap:9px}.vessel-panel-heading h2{font-size:16px}.vessel-panel-heading p{font-size:10px;margin-top:3px}.vessel-panel-heading p b{font-size:11px}.vessel-panel-icon,.jet .vessel-panel-icon{width:29px;height:32px}.vessel-panel-icon svg{width:25px}.vessel-action-row,.vessel-action-row.denied{min-height:68px;padding:12px 17px;gap:10px}.decision-count>span,.denied .decision-count>span{font-size:14px}.decision-count>strong{font-size:27px;margin-left:12px}.decision-marker,.denied .decision-marker{width:20px;height:25px}.add-decision,.denied .add-decision{min-height:38px;min-width:84px;font-size:12px;border-radius:22px;padding:8px 12px}.inline-denial{padding:9px 17px 17px}.inline-fields input,.inline-fields select,.inline-note textarea,.inline-note-details textarea{font-size:16px;min-height:44px}.inline-fields label,.inline-note{font-size:11px}.inline-fields select{font-size:14px}.registration-report{font-size:14px;min-height:51px;margin-top:20px;border-radius:12px}.btn{font-size:12px;min-height:44px}.mobile-nav{padding:8px 8px calc(8px + env(safe-area-inset-bottom))}.mobile-nav button{font-size:9px;min-height:49px}.mobile-nav button svg{width:23px}.page-heading{gap:12px}.page-heading h1{font-size:28px}.eyebrow{font-size:11px}.page-heading>.btn{font-size:11px}.panel-heading{padding:17px}.panel-heading h2{font-size:15px}.panel-heading>div>span{font-size:10px}.field{font-size:13px}.field input,.field textarea,.field select{font-size:16px}.modal{border-radius:19px 19px 0 0}.modal-heading{padding:18px}.modal-heading h2{font-size:20px}.modal-body{padding:19px 18px}.modal-footer{padding:14px 18px}.modal-footer .btn{font-size:12px}.more-links>button{padding:17px;min-height:67px}.more-links>button>b{font-size:15px}.more-icon{width:29px}.more-icon svg{width:22px}.member-info b{font-size:13px}.member-info small{font-size:11px}.toolbar{padding:15px}.search input{font-size:13px}.segmented button{font-size:11px}.records td{font-size:12px}.records th{font-size:11px}.reason-cell{font-size:11px}.vessel-cell b{font-size:12px}.vessel-cell small{font-size:10px}.toast{font-size:12px;padding:13px 15px;max-width:calc(100vw - 28px)}.toast button{font-size:11px}.site-card{padding:21px}.site-card p{font-size:12px}.stat{padding:15px 11px}.stat strong{font-size:30px}.stat>div>span{font-size:10px}.stat small{font-size:8px}.archive-filter{padding:17px}.archive-filter h2{font-size:15px}.archive-filter p{font-size:11px}.date-fields label{font-size:11px}.date-fields input{font-size:14px}}
@media(max-width:350px){.content{padding-left:12px;padding-right:12px}.registration-heading h1{font-size:27px}.overview-tile,.overview-tile.total,.overview-tile.allowed,.overview-tile.denied{padding:12px 10px}.overview-tile>span:not(.overview-icon),.overview-tile.total>span:not(.overview-icon){font-size:10px}.overview-tile>strong,.overview-tile.total>strong{font-size:27px}.ios-crew-header{padding:16px 14px 13px}.ios-save-state{font-size:8px}.ios-person{padding:12px 13px;gap:8px}.ios-person.supervisor{padding:13px 11px;margin-left:9px;margin-right:9px}.ios-person-symbol{width:22px}.ios-person input{font-size:16px}.supervisor input{font-size:18px}.ios-presence{min-width:42px;font-size:9px}.ios-crew-footer{padding:12px 14px;gap:8px}.ios-remember{font-size:10px;width:100%}.ios-save-crew{width:100%;flex-basis:100%;font-size:12px}.vessel-action-row,.vessel-action-row.denied{padding:11px 14px;gap:8px}.add-decision,.denied .add-decision{min-width:77px;font-size:11px}.decision-count>strong{margin-left:6px;font-size:26px}.decision-count>span,.denied .decision-count>span{font-size:13px}.header-brand b{font-size:21px}.site-select select{max-width:130px}.registration-report{font-size:13px}}
/* === appearance.css === */
.theme-toggle{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:#e9e9ef;color:#636366;flex-shrink:0}.theme-toggle:hover{background:#e1e1e8}html:has(.app-shell[data-theme=dark]){background:#111418;color-scheme:dark}body:has(.app-shell[data-theme=dark]){background:#111418;color:#e9edf2;color-scheme:dark}.app-shell[data-theme=dark]{--bg:#111418;--ink:#eef1f5;--muted:#8c97a6;--line:#303741;--navy:#e7edf5;--teal:#76d0a1;--red:#f58b9a;color:#e9edf2;background:#111418;min-height:100dvh;color-scheme:dark}
.app-shell[data-theme=dark] :is(h1,h2,h3){color:#f1f3f6}.app-shell[data-theme=dark] .sidebar{background:#15191e;border-color:#292f37}.app-shell[data-theme=dark] .brandmark{background:#242c36;color:#d5e4f7}.app-shell[data-theme=dark] .brand strong{color:#f1f3f6}.app-shell[data-theme=dark] :is(.brand small,.sidebar-caption){color:#778493}.app-shell[data-theme=dark] .sidebar nav button{color:#8896a8}.app-shell[data-theme=dark] .sidebar nav button:hover{background:#20262e;color:#d9e0e9}.app-shell[data-theme=dark] .sidebar nav button.active{background:#2a323d;color:#f0f4fa}.app-shell[data-theme=dark] .sidebar nav button.active svg{color:#bed5f7}.app-shell[data-theme=dark] .private-label{color:#627183}.app-shell[data-theme=dark] .private-label b{color:#8c98a8}.app-shell[data-theme=dark] .private-label small{color:#5c6a7b}.app-shell[data-theme=dark] .profile{border-color:#2c323b}.app-shell[data-theme=dark] .profile b{color:#d0d7e2}.app-shell[data-theme=dark] :is(.profile small,.profile a){color:#748194}.app-shell[data-theme=dark] :is(.workspace>.topbar,.simple-home .topbar){background:#111418d9;border:0}.app-shell[data-theme=dark] .topbar{backdrop-filter:blur(22px)}.app-shell[data-theme=dark] .breadcrumb{color:#aeb8c7}.app-shell[data-theme=dark] .breadcrumb span{color:#8794a7}.app-shell[data-theme=dark] .site-select{background:#232a33;color:#8b9aad}.app-shell[data-theme=dark] .site-select select{color:#c8d2df;background:transparent}.app-shell[data-theme=dark] .top-avatar{background:#29313d;color:#adbacb}.app-shell[data-theme=dark] .theme-toggle{background:#232a33;color:#aab9cf}.app-shell[data-theme=dark] .theme-toggle:hover{background:#303a47}.app-shell[data-theme=dark] .header-brand{color:#aac8f7}.app-shell[data-theme=dark] .header-brand b{color:#eef1f6}.app-shell[data-theme=dark] .icon-button{color:#7f8ea1}.app-shell[data-theme=dark] .icon-button:hover{background:#2a323e;color:#c8dafa}.app-shell[data-theme=dark] .registration-heading h1{color:#f5f6f8;font-weight:650;letter-spacing:-.9px}.app-shell[data-theme=dark] .registration-heading p{color:#738297}.app-shell[data-theme=dark] :is(.overview-tiles,.ios-crew,.vessel-panel,.panel,.more-links){background:#1c2129;border:0;box-shadow:none}.app-shell[data-theme=dark] .overview-tile:not(:last-child)::after{background:#303742}.app-shell[data-theme=dark] .overview-tile>span:not(.overview-icon){color:#8995a5}.app-shell[data-theme=dark] .overview-tile>strong{color:#e8edf4}.app-shell[data-theme=dark] .overview-tile.allowed>strong{color:#82d4ac}.app-shell[data-theme=dark] .overview-tile.denied>strong{color:#f092a3}.app-shell[data-theme=dark] .ios-crew-header h2{color:#e2e8f0}.app-shell[data-theme=dark] .ios-crew-header>div>span{color:#8a9ab0}.app-shell[data-theme=dark] .ios-save-state{color:#8a9ab0}.app-shell[data-theme=dark] .ios-save-state.saved{color:#8998a9}.app-shell[data-theme=dark] .ios-person.supervisor{background:#293b54}.app-shell[data-theme=dark] .ios-person.employee:not(:last-child){border-color:#303742}.app-shell[data-theme=dark] .ios-person-symbol{color:#8191a6}.app-shell[data-theme=dark] .supervisor .ios-person-symbol{color:#b2d0ff}.app-shell[data-theme=dark] .ios-person>label>span{color:#8d9fb6}.app-shell[data-theme=dark] .supervisor>label>span{color:#b5d2ff}.app-shell[data-theme=dark] .ios-person input{color:#dce4ef}.app-shell[data-theme=dark] .supervisor input{color:#f1f6ff}.app-shell[data-theme=dark] .ios-person input::placeholder{color:#7e8fa7}.app-shell[data-theme=dark] .ios-person:focus-within{box-shadow:inset 0 0 0 2px #a4c8ff28}.app-shell[data-theme=dark] .ios-person.absent input{color:#65758c}.app-shell[data-theme=dark] .ios-presence{background:#2a323e;color:#8396ae}.app-shell[data-theme=dark] .supervisor .ios-presence{background:#354d6b;color:#c4d9f5}.app-shell[data-theme=dark] .ios-presence.is-absent{background:#402b36;color:#e6a0af}.app-shell[data-theme=dark] .ios-ranks summary{color:#8a9ab0}.app-shell[data-theme=dark] .ios-ranks label{color:#8d9db1}.app-shell[data-theme=dark] .ios-ranks input{background:#28313e;color:#d5dfec}.app-shell[data-theme=dark] .ios-crew-footer{border-color:#2b333f}.app-shell[data-theme=dark] .ios-remember{color:#8799af}.app-shell[data-theme=dark] .ios-remember input{accent-color:#b1cdf6}.app-shell[data-theme=dark] .ios-save-crew{background:#dce7f7;color:#1d2c42}.app-shell[data-theme=dark] .ios-save-crew:not(:disabled):hover{background:#eff5ff}.app-shell[data-theme=dark] .ios-save-crew:disabled{background:#29333f;color:#6b819c}.app-shell[data-theme=dark] .ios-legacy-note{color:#b0a084}.app-shell[data-theme=dark] .vessel-panel-heading h2{color:#dce5f2}.app-shell[data-theme=dark] .vessel-panel-heading p{color:#8395af}.app-shell[data-theme=dark] .vessel-panel-heading p b{color:#8197b1}.app-shell[data-theme=dark] :is(.vessel-panel-icon,.jet .vessel-panel-icon){color:#8eadd9;background:transparent}.app-shell[data-theme=dark] :is(.vessel-action-row,.vessel-action-row.denied){background:transparent;border-color:#2a323e}.app-shell[data-theme=dark] :is(.decision-marker,.denied .decision-marker){color:#71859f;background:transparent}.app-shell[data-theme=dark] :is(.decision-count>span,.denied .decision-count>span){color:#91a5c0}.app-shell[data-theme=dark] .decision-count>strong{color:#82d4ac}.app-shell[data-theme=dark] .denied .decision-count>strong{color:#ed95a6}.app-shell[data-theme=dark] :is(.add-decision,.denied .add-decision){background:#2c3d55;color:#c4dbff;border:0}.app-shell[data-theme=dark] :is(.add-decision:hover,.denied .add-decision:hover,.denied .add-decision.expanded){background:#3a5273;color:#edf5ff}.app-shell[data-theme=dark] .inline-denial{background:transparent}.app-shell[data-theme=dark] :is(.inline-fields label,.inline-note){color:#859bb9}.app-shell[data-theme=dark] :is(.inline-fields input,.inline-fields select,.inline-note textarea,.inline-note-details textarea){background:#293344;color:#d4e2f5}.app-shell[data-theme=dark] .inline-note-details summary{color:#899db8}.app-shell[data-theme=dark] .btn.primary{background:#dce7f7;color:#1d2c42;box-shadow:none}.app-shell[data-theme=dark] .btn.primary:hover{background:#eff5ff}.app-shell[data-theme=dark] .btn.subtle{background:#293344;color:#a7bfde;border:0}.app-shell[data-theme=dark] .btn.subtle:hover{background:#35445b}.app-shell[data-theme=dark] .btn.danger{background:#ad4d62;color:#fff}.app-shell[data-theme=dark] .registration-report{background:#dce7f7;color:#1d2c42;border:0;box-shadow:none}.app-shell[data-theme=dark] .registration-report:hover{background:#f0f6ff}.app-shell[data-theme=dark] .inline-cancel{background:#293344;color:#9eb5d3}.app-shell[data-theme=dark] .panel-heading{background:transparent;border-color:#293547}.app-shell[data-theme=dark] .panel-heading h2{color:#d7e5f8}.app-shell[data-theme=dark] .panel-heading>div>span{color:#7088a8}.app-shell[data-theme=dark] .page-heading h1{color:#eff4fc}.app-shell[data-theme=dark] :is(.page-heading p,.eyebrow){color:#8a9ab0}.app-shell[data-theme=dark] .more-icon{color:#a4c1e9;background:transparent}.app-shell[data-theme=dark] .more-links>button{border-color:#2b3749}.app-shell[data-theme=dark] .more-links>button>b{color:#cfdef4}.app-shell[data-theme=dark] .more-links>button>svg{color:#7b8ea7}.app-shell[data-theme=dark] .more-links>button:hover{background:#262e39}.app-shell[data-theme=dark] .more-account b{color:#c5d7f1}.app-shell[data-theme=dark] .more-account small{color:#879bb8}.app-shell[data-theme=dark] .more-account>a{color:#688bb7}.app-shell[data-theme=dark] .more-account>a:hover{background:#26344a}.app-shell[data-theme=dark] .avatar{background:#2a3545;color:#9eb5d3}.app-shell[data-theme=dark] .search{background:#283245;color:#7290b7}.app-shell[data-theme=dark] .search input{color:#c8dbf6}.app-shell[data-theme=dark] input::placeholder,.app-shell[data-theme=dark] textarea::placeholder{color:#7f90a9}.app-shell[data-theme=dark] .segmented{background:#111c2c}.app-shell[data-theme=dark] .segmented button{color:#8d9eb7}.app-shell[data-theme=dark] .segmented .selected{background:#314561;color:#dceaff;box-shadow:none}.app-shell[data-theme=dark] .records th{background:#242c36;color:#7191ba;border-color:#303a47}.app-shell[data-theme=dark] .records td{border-color:#303a47;color:#a5bddf}.app-shell[data-theme=dark] .vessel-cell b{color:#c6daf7}.app-shell[data-theme=dark] .vessel-cell small{color:#899db8}.app-shell[data-theme=dark] :is(.vessel-icon,.vessel-icon.jet){background:#26354d;color:#7a9dce}.app-shell[data-theme=dark] .badge.allowed{background:#203c35;color:#88cfb3}.app-shell[data-theme=dark] .badge.denied{background:#402c40;color:#e2a2b9}.app-shell[data-theme=dark] .badge.muted{background:#2b3549;color:#7a97bf}.app-shell[data-theme=dark] :is(.reason-cell,.note-cell,.time-cell,.records td>small){color:#8f9fb9}.app-shell[data-theme=dark] .field{color:#8caad2}.app-shell[data-theme=dark] :is(.field input,.field select,.field textarea,.date-fields input){background:#2b333f;color:#cadcf6}.app-shell[data-theme=dark] .field>span{color:#8498b4}.app-shell[data-theme=dark] .switch-field{color:#9ab6dc}.app-shell[data-theme=dark] .switch-field input{accent-color:#a8ccff}.app-shell[data-theme=dark] .modal-backdrop{background:#00000085;backdrop-filter:blur(6px)}.app-shell[data-theme=dark] .modal{background:#1f252e;border:0;box-shadow:0 25px 90px #00000085}.app-shell[data-theme=dark] .modal-heading{background:#1f252e;border-color:#303a47}.app-shell[data-theme=dark] .modal-heading h2{color:#e1edff}.app-shell[data-theme=dark] .modal-footer{background:#1b2028;border-color:#303a47}.app-shell[data-theme=dark] .report-toolbar{background:#222a35;border-color:#303a47}.app-shell[data-theme=dark] .report-toolbar>span{color:#7c9fcf}.app-shell[data-theme=dark] .report-pages{background:#101419}.app-shell[data-theme=dark] .empty{color:#37537b}.app-shell[data-theme=dark] .empty b{color:#7ea3d8}.app-shell[data-theme=dark] .empty p{color:#8797ad}.app-shell[data-theme=dark] .stat{background:#1c2129;border:0}.app-shell[data-theme=dark] .stat strong{color:#e3eeff}.app-shell[data-theme=dark] .stat>div>span{color:#94a7c0}.app-shell[data-theme=dark] .stat small{color:#8493a8}.app-shell[data-theme=dark] .stat-icon{background:#2c3643!important;color:#94a7c0!important}.app-shell[data-theme=dark] .archive-filter h2{color:#c9ddfa}.app-shell[data-theme=dark] .archive-filter p{color:#8b9fb9}.app-shell[data-theme=dark] .date-fields label{color:#8aaee0}.app-shell[data-theme=dark] .day-card{background:#1c2129;border:0}.app-shell[data-theme=dark] .day-card b{color:#b6d3fb}.app-shell[data-theme=dark] .day-card small{color:#899db8}.app-shell[data-theme=dark] .date-tile{background:#2c3948;color:#accdfd}.app-shell[data-theme=dark] .date-tile small{color:#648fc6}.app-shell[data-theme=dark] .saved-reports>button{border-color:#303a47}.app-shell[data-theme=dark] .saved-reports b{color:#bfd7f9}.app-shell[data-theme=dark] .saved-reports small{color:#8b9fb9}.app-shell[data-theme=dark] .access-notice,.app-shell[data-theme=dark] .info-box{background:#2a343f;color:#8aaddd}.app-shell[data-theme=dark] .access-notice p{color:#8aaddd}.app-shell[data-theme=dark] .site-card{background:#1c2129;border:0}.app-shell[data-theme=dark] .site-card h2{color:#d8e8ff}.app-shell[data-theme=dark] .site-card p{color:#8f9fb9}.app-shell[data-theme=dark] .site-stats b{color:#bfd8ff}.app-shell[data-theme=dark] .site-stats span{color:#899db8;border-color:#303a47}.app-shell[data-theme=dark] .add-site{background:#1c252f;color:#8f9fb9}.app-shell[data-theme=dark] .add-site>span{background:#2b3745}.app-shell[data-theme=dark] .add-site b{color:#8cb0e3}.app-shell[data-theme=dark] .add-site small{color:#8797ad}.app-shell[data-theme=dark] .members-list>div{border-color:#303a47}.app-shell[data-theme=dark] .member-info b{color:#b7d0f2}.app-shell[data-theme=dark] .member-info small{color:#8f9fb9}.app-shell[data-theme=dark] .audit-list>div{border-color:#303a47}.app-shell[data-theme=dark] .audit-list b{color:#b4d0f5}.app-shell[data-theme=dark] .audit-list p{color:#94a7c0}.app-shell[data-theme=dark] .audit-list small{color:#8797ad}.app-shell[data-theme=dark] .mini-icon{background:#2a333f;color:#729bce}.app-shell[data-theme=dark] .footer{color:#738094}.app-shell[data-theme=dark] .alert,.app-shell[data-theme=dark] .retry-inspection{background:#382f25;border-color:#574a36;color:#c6ac80}.app-shell[data-theme=dark] .warning{color:#b79865}.app-shell[data-theme=dark] .toast{background:#d8e8ff;color:#14283f;border:0;box-shadow:0 8px 30px #00000045}.app-shell[data-theme=dark] .toast>svg{color:#284a6b}.app-shell[data-theme=dark] .toast button{color:#254f87}.app-shell[data-theme=dark] .toast-close{color:#5c789c!important}.app-shell[data-theme=dark] .mobile-nav{background:#141c29ed;border-color:#2a3b55;backdrop-filter:blur(25px)}.app-shell[data-theme=dark] .mobile-nav button{color:#8396b0}.app-shell[data-theme=dark] .mobile-nav button.active{color:#bed6ff}.app-shell[data-theme=dark] .text-button{color:#9abef3}.app-shell[data-theme=dark] :is(.field input:focus,.field select:focus,.field textarea:focus,.inline-fields input:focus,.inline-fields select:focus){outline-color:#b2cfff55}.sign-in,.loading-screen{background:#111418;color:#7d8b9e}.sign-in h1,.loading-screen h1{color:#edf1f7}.sign-in .brandmark{background:#273546;color:#c4d9fa}.sign-in p{color:#8fa0b8}.sign-in small{color:#526782}.sign-in .btn.primary{background:#dce7f7;color:#20334e}
@media(max-width:600px){.theme-toggle{width:34px;height:34px}.theme-toggle svg{width:18px}.app-shell[data-theme=dark] .topbar{background:#111418e8}.app-shell[data-theme=dark] .ios-crew-slots .ios-person.employee{border-color:#303742}.app-shell[data-theme=dark] .mobile-nav{background:#141c29f5}.app-shell[data-theme=dark] .modal{background:#1f252e}.app-shell[data-theme=dark] .modal-heading{background:#1f252e}}
/* === home-preview.css === */
/* Home components: sizes, structure and responsive behavior. Colors live in ios-theme. */
.home-preview-shell .workspace>.topbar{display:none}.home-preview-shell>.mobile-nav,.mobile-brand{display:none!important}
.app-shell .workspace{margin-right:252px}.app-shell .content{max-width:1200px;width:100%;padding:30px 36px 38px;margin:auto}.harbor-home{font-size:16px;line-height:1.7}
.harbor-context{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;font-size:14px}.harbor-context>span{display:flex;align-items:center;gap:7px}.harbor-site{display:none}.harbor-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:26px}.harbor-kicker{display:block;font-size:14px;margin-bottom:4px}.harbor-heading h1{font-size:30px;line-height:1.4;letter-spacing:-.5px;font-weight:600;margin:0}.harbor-report{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:14px;text-align:right;min-height:52px}.harbor-report b{display:block;font-size:15px;font-weight:500}.harbor-report small{display:block;font-size:14px;margin-top:2px}.harbor-report>svg{width:17px;margin-right:8px}
.harbor-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 13px}.harbor-section-heading h2{font-size:19px;font-weight:600;margin:0}.harbor-section-heading>span{font-size:14px}.roster-section-heading{margin-top:0}
.harbor-roster{border-radius:20px;overflow:hidden;border:1px solid var(--line);margin-bottom:28px}.roster-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:8px 18px}.roster-person{display:flex;align-items:center;gap:12px;padding:16px 12px;min-width:0;border-left:1px solid var(--line)}.roster-person:last-child{border-left:0}.roster-chief{grid-column:1/-1;border-left:0;border-bottom:1px solid var(--line);padding:12px 12px 16px;margin-bottom:4px}.roster-index{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;flex-shrink:0;font-size:16px;font-weight:500}.roster-person label{min-width:0;flex:1}.roster-person label>span{font-size:14px;display:block;margin-bottom:2px}.roster-person input{width:100%;min-width:0;font-size:18px;min-height:36px;line-height:1.6;font-weight:500;background:transparent;border:0;padding:2px 3px;border-radius:6px;text-overflow:ellipsis}.roster-chief input{font-size:20px}.roster-person input::placeholder{font-size:17px;font-weight:400;opacity:1}.roster-person input:focus{outline:2px solid var(--accent);outline-offset:3px}.roster-ranks{border-top:1px solid var(--line);padding:0 24px}.roster-ranks summary{display:flex;align-items:center;gap:8px;list-style:none;min-height:46px;cursor:pointer;font-size:14px;width:max-content}.roster-ranks>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding-bottom:18px}.roster-ranks label{font-size:14px}.roster-ranks input{display:block;width:100%;padding:10px;margin-top:6px;border:1px solid var(--line);border-radius:10px;font-size:16px;min-height:44px}.roster-exclude{display:flex;align-items:center;gap:7px;margin-top:9px;font-size:14px;cursor:pointer}.roster-ranks .roster-exclude input{width:17px;height:17px;min-height:0;margin:0;flex-shrink:0}.roster-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 24px;border-top:1px solid var(--line)}.roster-footer>div{display:flex;align-items:center;gap:14px}.roster-remember{display:flex;align-items:center;gap:10px;position:relative;cursor:pointer}.roster-remember>input{position:absolute;width:1px;height:1px;opacity:0}.roster-remember b{display:block;font-size:15px;font-weight:500}.roster-remember small{display:block;font-size:14px}.roster-switch{width:42px;height:26px;border-radius:20px;position:relative;flex-shrink:0;transition:background .18s}.roster-switch:after{content:'';position:absolute;top:3px;right:3px;width:20px;height:20px;background:white;border-radius:50%;box-shadow:0 1px 4px #0002;transition:transform .18s}.roster-remember input:checked+.roster-switch:after{transform:translateX(-16px)}.roster-remember input:focus-visible+.roster-switch{outline:2px solid var(--accent);outline-offset:3px}.roster-state{font-size:14px;max-width:170px;line-height:1.6}.roster-save{display:flex;align-items:center;justify-content:center;gap:7px;font-size:15px;font-weight:500;min-height:44px;padding:10px 17px;border-radius:11px;white-space:nowrap}.roster-legacy{font-size:14px;padding:12px 24px}
.quick-inspection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.quick-inspection-card{border-radius:20px;padding:20px;border:1px solid var(--line)}.quick-inspection-card header{display:flex;align-items:center;gap:10px;margin-bottom:18px}.quick-craft-icon{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:12px}.quick-inspection-card h3{font-size:18px;font-weight:500;margin:0;line-height:1.5}.quick-inspection-card header>strong{margin-right:auto;font-size:27px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums}.quick-add{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;border-radius:12px;width:100%;font-size:16px;font-weight:500;transition:background .15s,transform .15s}.quick-add:active{transform:scale(.98)}.console-ledger{display:flex;align-items:center;gap:12px;width:100%;padding:17px 3px;font-size:15px;text-align:right}.console-ledger b{font-size:14px;font-weight:400;margin-right:auto}.totals-heading{margin-top:20px}.harbor-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:18px;padding:18px 0}.daily-total{display:flex;align-items:center;gap:9px;padding:0 20px;border-left:1px solid var(--line)}.daily-total:last-child{border:0}.total-symbol{display:grid;place-items:center}.daily-total>span:nth-child(2){font-size:15px}.daily-total strong{margin-right:auto;font-size:25px;line-height:1.4;font-weight:600;font-variant-numeric:tabular-nums}.harbor-footnote{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px;padding:22px 0 0}
.harbor-denial{margin-top:16px;padding:22px;border:1px solid var(--line);border-radius:20px;display:grid;gap:18px}.denial-caption{display:flex;align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--line)}.denial-caption>span{font-size:18px;font-weight:500}.denial-caption small{font-size:14px;padding:4px 10px;border-radius:8px}.denial-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.harbor-denial label{display:grid;gap:7px;font-size:15px}.harbor-denial input,.harbor-denial select,.harbor-denial textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:11px;font-size:16px;min-height:48px}.harbor-denial textarea{margin-top:8px;resize:vertical}.harbor-denial summary{font-size:14px;cursor:pointer}.harbor-denial footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:16px}.denial-save,.denial-cancel{min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 19px;border-radius:11px;font-size:15px}.harbor-retry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border:1px solid var(--line);border-radius:14px;margin-bottom:16px}.harbor-retry p,.harbor-retry b,.harbor-retry button{font-size:14px}.harbor-retry button{display:flex;align-items:center;gap:7px}.harbor-tabbar{display:none}
/* One navigation system for all desktop pages. */
.app-shell .marine-sidebar{position:fixed;inset:0 0 0 auto;display:flex;flex-direction:column;width:252px;padding:28px 16px 18px;border-left:1px solid var(--line);z-index:35;overflow-y:auto}.marine-brand{display:flex;align-items:center;gap:12px;text-align:right;padding:0 12px;margin-bottom:26px}.marine-brand b{display:block;font-size:35px;font-weight:600;line-height:1.4;letter-spacing:-.7px}.marine-brand small{display:block;font-size:14px}.marine-emblem{display:grid;place-items:center;width:50px;height:50px;border-radius:16px;flex-shrink:0}.marine-site-picker{padding:14px 13px;border:1px solid var(--line);border-radius:15px;margin-bottom:24px}.marine-site-picker>label{display:block;font-size:14px;margin-bottom:5px}.marine-site-picker>div{display:flex;align-items:center;gap:8px}.marine-site-picker select{appearance:none;border:0;background:transparent;font-size:16px;font-weight:500;width:100%;min-width:0;padding:4px 0}.marine-site-picker svg{flex-shrink:0}.marine-sidebar>nav{flex:1}.marine-nav-group{margin-bottom:24px}.marine-nav-group h2{font-size:14px;font-weight:400;margin:0 13px 9px}.marine-nav-group button{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:11px 13px;margin:3px 0;border-radius:12px;font-size:16px;text-align:right}.marine-nav-group button>span{flex:1}.marine-nav-group button>svg{flex-shrink:0}.sidebar-appearance{display:flex;align-items:center;gap:12px;padding:12px 13px;font-size:15px;min-height:46px;margin-bottom:14px;border-radius:12px}.marine-account{padding:14px 4px 0;display:flex;align-items:center;gap:7px;border-top:1px solid var(--line)}.marine-account-details{display:flex;align-items:center;gap:10px;text-align:right;flex:1;min-width:0}.marine-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;flex-shrink:0;font-size:17px}.marine-account-details>span:last-child{min-width:0}.marine-account-details b{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:145px;font-weight:500}.marine-account-details small{display:block;font-size:14px}.marine-account>a{padding:9px;border-radius:9px}
@media(max-width:1200px){.app-shell .content{padding-left:26px;padding-right:26px}.roster-footer{flex-wrap:wrap}.roster-footer>div{flex-wrap:wrap}.roster-ranks>div{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-total{padding:0 14px}.total-symbol{display:none}}
@media(max-width:900px){.app-shell .marine-sidebar{display:none}.app-shell .workspace{margin:0!important}.home-preview-shell .workspace>.topbar{display:flex!important}.app-shell .workspace>.topbar{position:sticky;top:0;z-index:32;min-height:72px;height:72px;padding:12px 24px;border-bottom:1px solid var(--line)}.header-brand{display:flex;align-items:center;gap:8px}.header-brand b{font-size:27px;font-weight:600}.header-brand svg{width:23px}.topbar .top-avatar,.topbar .refresh,.breadcrumb{display:none}.topbar .topbar-actions{margin-right:auto;gap:10px}.theme-toggle{width:40px;height:40px}.site-select{padding:3px 8px;border-radius:11px}.site-select select{font-size:15px;max-width:180px;min-height:34px}.app-shell .content{padding:24px 24px 112px}.harbor-context{margin-bottom:18px}.harbor-location-name{display:none!important}.harbor-context>span:last-child{font-size:14px}.harbor-heading h1{font-size:29px}.harbor-kicker{display:none}.harbor-tabbar{display:flex;position:fixed;inset:auto 0 0;border-top:1px solid var(--line);z-index:40;padding:8px 8px calc(8px + env(safe-area-inset-bottom))}.harbor-tabbar button{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:48px;font-size:14px}.harbor-tabbar button.selected{font-weight:500}.harbor-tabbar button svg{width:23px;height:23px}.total-symbol{display:grid}.daily-total{padding:0 20px}.roster-footer>div{margin-right:auto}.roster-state{max-width:none}.roster-ranks>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.app-shell .workspace>.topbar{height:66px;min-height:66px;padding:10px 16px}.header-brand b{font-size:25px}.header-brand{gap:6px}.topbar .topbar-actions{gap:8px}.theme-toggle{width:36px;height:36px}.site-select select{font-size:14px;max-width:125px}.site-select>svg{width:15px}.app-shell .content{padding:20px 16px 110px}.harbor-context{margin-bottom:14px}.harbor-heading{gap:10px;align-items:center;margin-bottom:23px}.harbor-heading h1{font-size:25px}.harbor-report{padding:9px 12px;min-height:44px;border-radius:11px;gap:7px}.harbor-report b{font-size:14px}.harbor-report small,.harbor-report>svg{display:none}.harbor-report>span>svg{width:18px}.harbor-section-heading{align-items:center;flex-wrap:wrap;gap:5px;margin-top:24px}.harbor-section-heading h2{font-size:18px}.harbor-section-heading>span{font-size:14px}.roster-section-heading{margin-top:0}.roster-editor{grid-template-columns:1fr;padding:4px 16px}.roster-person,.roster-chief{grid-column:auto;border-left:0;border-bottom:1px solid var(--line);padding:12px 0;min-height:63px;margin:0;gap:12px}.roster-person:last-child{border-bottom:0}.roster-chief{padding-top:14px;padding-bottom:14px}.roster-person input{font-size:18px;min-height:34px}.roster-chief input{font-size:19px}.roster-person input::placeholder{font-size:17px}.roster-index{width:28px;height:28px;font-size:15px;border-radius:9px}.roster-person label>span{font-size:14px}.harbor-roster{border-radius:18px;margin-bottom:23px}.roster-ranks{padding:0 16px}.roster-footer{padding:14px 16px;gap:14px}.roster-remember b{font-size:15px}.roster-remember small{font-size:14px}.roster-footer>div{width:100%;justify-content:space-between;gap:10px}.roster-state{font-size:14px;max-width:150px}.roster-save{font-size:14px;padding:9px 12px;min-height:42px}.quick-inspection-grid{gap:12px}.quick-inspection-card{padding:15px 12px;border-radius:18px}.quick-inspection-card header{position:relative;flex-wrap:wrap;gap:8px;margin-bottom:14px}.quick-craft-icon{width:32px;height:32px;border-radius:10px}.quick-craft-icon svg{width:23px;height:23px}.quick-inspection-card header>strong{font-size:25px}.quick-inspection-card h3{order:3;flex-basis:100%;font-size:16px}.quick-add{font-size:15px;min-height:44px;gap:5px;border-radius:11px}.quick-add svg{width:17px}.console-ledger{font-size:14px;padding:16px 1px;gap:7px}.console-ledger b{font-size:14px}.harbor-totals{padding:16px 0;border-radius:18px}.daily-total{padding:0 12px;display:flex;flex-direction:column;align-items:flex-start;gap:7px}.total-symbol{display:none}.daily-total>span:nth-child(2){font-size:14px;white-space:nowrap}.daily-total strong{font-size:25px;margin:0}.harbor-footnote{font-size:14px;gap:6px;padding-top:20px}.denial-fields{grid-template-columns:1fr;gap:15px}.harbor-denial{padding:18px 16px;border-radius:18px}.denial-caption>span{font-size:17px}.harbor-denial label{font-size:15px}.harbor-denial footer{justify-content:stretch}.denial-save{flex:1}.harbor-retry{align-items:flex-start;flex-direction:column}}
@media(max-width:370px){.app-shell .content{padding-left:12px;padding-right:12px}.quick-inspection-card{padding:13px 10px}.quick-add{font-size:14px}.quick-inspection-card h3{font-size:15px}.harbor-heading h1{font-size:23px}.harbor-report{padding:8px 9px}.site-select select{max-width:100px}.daily-total{padding:0 9px}.daily-total>span:nth-child(2){font-size:14px}}

/* Full names grow naturally; the same crew editor is used on both pages. */
.roster-editor{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 20px;align-items:stretch}
.roster-person,.roster-chief{grid-column:auto;align-items:flex-start;min-width:0;border:0;border-bottom:1px solid var(--line);padding:20px 14px;margin:0;min-height:91px;gap:12px}
.roster-person:nth-child(odd){border-left:1px solid var(--line)}.roster-person:nth-child(n+3){border-bottom:0}.roster-person .roster-index{margin-top:6px}
.roster-person label{display:block;min-width:0;width:100%}.roster-person label>div.roster-name-field{display:grid;min-width:0;width:100%;align-items:stretch}
.roster-name-field .roster-name-measure,.roster-name-field textarea{grid-area:1 / 1;box-sizing:border-box;width:100%;min-width:0;min-height:36px;margin:0;padding:3px 4px;border:0;font:500 18px/1.85 'Cairo',sans-serif;letter-spacing:normal;text-align:right;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;border-radius:6px}
.roster-name-measure{visibility:hidden;pointer-events:none}.roster-name-field textarea{height:100%;resize:none;overflow:hidden;background:transparent;display:block;outline-offset:2px;appearance:none;-webkit-appearance:none;text-overflow:clip}
.roster-chief .roster-name-measure,.roster-chief textarea{font-weight:600;font-size:19px}.roster-name-field textarea::placeholder{font-weight:400;font-size:17px;opacity:1}.roster-person label>span{margin-bottom:2px}
.roster-ranks label{overflow-wrap:anywhere}.roster-person.is-absent textarea{text-decoration:line-through}
@media(max-width:600px){.roster-editor{grid-template-columns:1fr;padding:0 16px}.roster-person,.roster-chief{grid-column:auto;min-height:67px;padding:12px 0;border:0;border-bottom:1px solid var(--line);gap:12px}.roster-person:nth-child(odd){border-left:0}.roster-person:nth-child(n+3){border-bottom:1px solid var(--line)}.roster-person:last-child{border-bottom:0}.roster-chief{padding-top:16px;padding-bottom:16px}.roster-name-field .roster-name-measure,.roster-name-field textarea{font-size:18px;line-height:1.8}.roster-chief .roster-name-measure,.roster-chief textarea{font-size:19px}}
/* === ios-theme.css === */
/* Masna: neutral iOS-style surfaces with independent action colors. */
.app-shell[data-theme]{--bg:#f2f2f7;--surface:#fff;--surface-2:#f7f7fa;--field:#f2f2f7;--ink:#1c1c1e;--muted:#636366;--line:#e5e5ea;--accent:#007aff;--accent-hover:#0066d6;--accent-soft:#eaf2ff;--red:#c93432;--red-soft:#fff0ef;--green:#248a3d;--navy:#007aff;--teal:#248a3d;--shadow:0 2px 10px #00000004;color:var(--ink);background:var(--bg);font-family:'Cairo',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;color-scheme:light;min-height:100dvh}
.app-shell[data-theme=dark]{--bg:#000;--surface:#1c1c1e;--surface-2:#242426;--field:#2c2c2e;--ink:#f5f5f7;--muted:#b0b0b8;--line:#38383a;--accent:#0a84ff;--accent-hover:#349aff;--accent-soft:#172b43;--red:#ff6961;--red-soft:#38211f;--green:#48d06e;--navy:#0a84ff;--teal:#48d06e;--shadow:none;color-scheme:dark}
html:has(.app-shell[data-theme=light]),body:has(.app-shell[data-theme=light]){background:#f2f2f7;color-scheme:light}html:has(.app-shell[data-theme=dark]),body:has(.app-shell[data-theme=dark]){background:#000;color-scheme:dark}
.app-shell[data-theme] :is(h1,h2,h3){color:var(--ink)}.app-shell[data-theme] :is(button,input,select,textarea){font-family:inherit}.app-shell[data-theme] button:focus-visible,.app-shell[data-theme] a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.app-shell[data-theme] button:disabled{opacity:.45;cursor:not-allowed}.app-shell[data-theme] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}.app-shell[data-theme] :is(input,textarea,select):focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app-shell[data-theme] select option{color:var(--ink);background:var(--surface)}
.app-shell[data-theme] .harbor-home{color:var(--ink)}.app-shell[data-theme] :is(.harbor-context,.harbor-kicker,.harbor-section-heading>span,.harbor-footnote,.console-ledger b){color:var(--muted)}.app-shell[data-theme] .harbor-report{background:var(--surface);color:var(--accent);border:1px solid var(--line);box-shadow:var(--shadow)}.app-shell[data-theme] .harbor-report b{color:var(--accent)}.app-shell[data-theme] .harbor-report small{color:var(--muted)}.app-shell[data-theme] .harbor-report:hover{background:var(--accent-soft)}
.app-shell[data-theme] :is(.harbor-roster,.quick-inspection-card,.quick-inspection-card.denied,.harbor-totals,.harbor-denial){background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}.app-shell[data-theme] .roster-person{background:transparent;border-color:var(--line)}.app-shell[data-theme] .roster-chief{background:transparent;border-color:var(--line)}.app-shell[data-theme] .roster-index{background:var(--field);color:var(--muted)}.app-shell[data-theme] .roster-chief .roster-index{background:var(--accent);color:#fff}.app-shell[data-theme] .roster-person input{color:var(--ink);background:transparent}.app-shell[data-theme] .roster-chief input,.app-shell[data-theme] .roster-chief label>span{color:var(--accent)}.app-shell[data-theme] .roster-person label>span{color:var(--accent)}.app-shell[data-theme] .roster-person input::placeholder{color:var(--muted)}.app-shell[data-theme] .roster-person.is-absent input{color:var(--muted);text-decoration:line-through}.app-shell[data-theme] :is(.roster-ranks,.roster-footer){border-color:var(--line)}.app-shell[data-theme] :is(.roster-ranks summary,.roster-ranks label,.roster-exclude,.roster-remember small,.roster-state){color:var(--muted)}.app-shell[data-theme] .roster-ranks input{background:var(--field);border-color:var(--line);color:var(--ink)}.app-shell[data-theme] .roster-footer{background:var(--surface-2)}.app-shell[data-theme] .roster-remember b{color:var(--ink)}.app-shell[data-theme] .roster-switch{background:#b7b7bf}.app-shell[data-theme] .roster-remember input:checked+.roster-switch{background:#30ad56}.app-shell[data-theme] .roster-state.saved{color:var(--green)}.app-shell[data-theme] .roster-save{background:var(--accent);color:#fff;border:0}.app-shell[data-theme] .roster-save:disabled{background:var(--field);color:var(--muted);opacity:1}.app-shell[data-theme] .roster-legacy{background:var(--red-soft);color:var(--red)}
.app-shell[data-theme] .quick-inspection-card h3,.app-shell[data-theme] .quick-inspection-card header>strong{color:var(--ink)}.app-shell[data-theme] .quick-craft-icon{background:var(--field);color:var(--muted)}.app-shell[data-theme] .quick-add{background:var(--accent);color:#fff;border:0}.app-shell[data-theme] .quick-add:hover{background:var(--accent-hover)}.app-shell[data-theme] .denied .quick-craft-icon{background:var(--red-soft);color:var(--red)}.app-shell[data-theme] .denied h3,.app-shell[data-theme] .denied header>strong{color:var(--ink)}.app-shell[data-theme] .denied .quick-add{background:var(--red-soft);color:var(--red);border:1px solid var(--red)}.app-shell[data-theme] .denied .quick-add:hover{background:var(--red);color:#fff}.app-shell[data-theme] .console-ledger{color:var(--accent)}.app-shell[data-theme] .daily-total{border-color:var(--line)}.app-shell[data-theme] .daily-total>span{color:var(--muted)}.app-shell[data-theme] .daily-total strong{color:var(--ink)}.app-shell[data-theme] .daily-total.allowed strong{color:var(--green)}.app-shell[data-theme] .daily-total.denied strong{color:var(--red)}
.app-shell[data-theme] .denial-caption{border-color:var(--line);color:var(--ink)}.app-shell[data-theme] .denial-caption small{color:var(--red);background:var(--red-soft)}.app-shell[data-theme] .harbor-denial label{color:var(--muted)}.app-shell[data-theme] .harbor-denial :is(input,select,textarea){background:var(--field);color:var(--ink);border-color:var(--line)}.app-shell[data-theme] .harbor-denial summary{color:var(--accent)}.app-shell[data-theme] .harbor-denial footer{border-color:var(--line)}.app-shell[data-theme] .denial-save{background:var(--red);color:#fff;border:0}.app-shell[data-theme] .denial-save:disabled{background:var(--field);color:var(--muted);opacity:1}.app-shell[data-theme] .denial-cancel{background:var(--field);color:var(--ink);border:0}.app-shell[data-theme] .harbor-retry,.app-shell[data-theme] .alert{background:var(--surface);color:var(--red);border-color:var(--line)}.app-shell[data-theme] .harbor-retry button{color:var(--accent)}
.app-shell[data-theme] .marine-sidebar{background:var(--surface);border-color:var(--line)}.app-shell[data-theme] .marine-brand b{color:var(--ink)}.app-shell[data-theme] .marine-brand small{color:var(--muted)}.app-shell[data-theme] .marine-emblem{background:var(--accent);color:#fff;box-shadow:0 4px 10px #007aff22}.app-shell[data-theme] .marine-site-picker{background:var(--surface-2);border-color:var(--line)}.app-shell[data-theme] .marine-site-picker>label{color:var(--muted)}.app-shell[data-theme] .marine-site-picker :is(select,svg){color:var(--ink)}.app-shell[data-theme] .marine-nav-group h2{color:var(--muted)}.app-shell[data-theme] .marine-nav-group button{background:transparent;color:var(--muted)}.app-shell[data-theme] .marine-nav-group button:hover{background:var(--field);color:var(--ink)}.app-shell[data-theme] .marine-nav-group button.selected{background:var(--accent-soft);color:var(--accent);font-weight:500;box-shadow:none}.app-shell[data-theme] .sidebar-appearance{color:var(--muted);background:transparent}.app-shell[data-theme] .sidebar-appearance:hover{background:var(--field)}.app-shell[data-theme] .marine-account{background:transparent;border-color:var(--line)}.app-shell[data-theme] .marine-avatar{background:var(--field);color:var(--muted)}.app-shell[data-theme] .marine-account-details b{color:var(--ink)}.app-shell[data-theme] .marine-account-details small{color:var(--muted)}.app-shell[data-theme] .marine-account>a{color:var(--muted)}
/* Shared pages, sheets, forms and reports use the same semantic palette. */
.app-shell[data-theme] .workspace>.topbar{background:var(--surface);border-color:var(--line)}.app-shell[data-theme] .header-brand{color:var(--accent)}.app-shell[data-theme] .header-brand b{color:var(--ink)}.app-shell[data-theme] :is(.theme-toggle,.site-select,.search,.segmented,.date-tile,.avatar,.mini-icon,.top-avatar){background:var(--field);color:var(--muted)}.app-shell[data-theme] .site-select select{color:var(--ink)}.app-shell[data-theme] .breadcrumb{color:var(--ink)}.app-shell[data-theme] .breadcrumb span{color:var(--muted)}.app-shell[data-theme] :is(.panel,.stat,.site-card,.day-card,.more-links,.more-account,.modal){background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;color:var(--ink)}.app-shell[data-theme] :is(.panel-heading,.modal-heading,.modal-footer,.report-toolbar,.panel-footnote){background:var(--surface);border-color:var(--line)}.app-shell[data-theme] :is(.page-heading h1,.panel-heading h2,.stat strong,.site-card h2,.day-card b,.more-links>button>b,.more-account b,.member-info b,.audit-list b,.saved-reports b,.empty b,.modal-heading h2){color:var(--ink)}.app-shell[data-theme] :is(.page-heading p,.eyebrow,.panel-heading>div>span,.stat small,.stat>div>span,.site-card p,.day-card small,.more-account small,.member-info small,.audit-list p,.audit-list small,.saved-reports small,.empty p,.muted-text,.modal .muted-text,.field,.field>span,.date-fields label,.archive-filter p,.report-toolbar>span,.panel-footnote,.auto-save-hint){color:var(--muted)!important;font-size:14px;line-height:1.8}.app-shell[data-theme] .page-heading h1{font-size:29px}.app-shell[data-theme] .panel-heading h2{font-size:19px}.app-shell[data-theme] .stat strong{font-size:29px}.app-shell[data-theme] :is(.btn,.segmented button,.search input,.records td,.records th,.badge,.reason-cell,.note-cell,.time-cell,.records td>small,.vessel-cell b,.vessel-cell small,.members-list b,.more-links>button>b,.saved-reports b,.day-card b,.site-stats span,.audit-list b,.switch-field){font-size:14px}.app-shell[data-theme] .btn{min-height:44px;border-radius:11px}.app-shell[data-theme] .btn.primary{background:var(--accent);color:white;border:0;box-shadow:none}.app-shell[data-theme] .btn.primary:hover{background:var(--accent-hover)}.app-shell[data-theme] .btn.subtle,.app-shell[data-theme] .icon-button:hover{background:var(--field);color:var(--accent)}.app-shell[data-theme] .btn.danger{background:var(--red);color:#fff}.app-shell[data-theme] :is(.field input,.field select,.field textarea,.date-fields input,.crew-edit input){background:var(--field);border:1px solid var(--line);color:var(--ink);font-size:16px;border-radius:11px;min-height:46px}.app-shell[data-theme] :is(.field input,.field select,.field textarea)::placeholder{color:var(--muted)}.app-shell[data-theme] .records th{background:var(--surface-2);color:var(--muted);border-color:var(--line)}.app-shell[data-theme] .records td{border-color:var(--line);color:var(--ink)}.app-shell[data-theme] .vessel-cell b{color:var(--ink)}.app-shell[data-theme] :is(.vessel-cell small,.reason-cell,.note-cell,.time-cell){color:var(--muted)}.app-shell[data-theme] :is(.vessel-icon,.vessel-icon.jet,.stat-icon){color:var(--accent)!important;background:var(--accent-soft)!important}.app-shell[data-theme] .badge.allowed{background:var(--accent-soft);color:var(--green)}.app-shell[data-theme] .badge.denied{background:var(--red-soft);color:var(--red)}.app-shell[data-theme] .badge.muted{background:var(--field);color:var(--muted)}.app-shell[data-theme] .segmented button{color:var(--muted)}.app-shell[data-theme] .segmented .selected{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px #0001}.app-shell[data-theme] .search input{color:var(--ink)}.app-shell[data-theme] :is(.saved-reports>button,.members-list>div,.audit-list>div,.more-links>button,.site-stats span){border-color:var(--line)}.app-shell[data-theme] :is(.more-icon,.icon-button,.day-card>svg){color:var(--accent)}.app-shell[data-theme] :is(.info-box,.access-notice,.add-site){background:var(--surface-2);color:var(--muted);border-color:var(--line)}.app-shell[data-theme] .info-box p,.app-shell[data-theme] .access-notice p{font-size:14px;color:var(--muted)}.app-shell[data-theme] .site-stats b{color:var(--ink);font-size:26px}.app-shell[data-theme] .add-site b{color:var(--accent)}.app-shell[data-theme] .add-site small{font-size:14px}.app-shell[data-theme] .more-account>a{color:var(--accent)}.app-shell[data-theme] .modal-backdrop{background:#0007;backdrop-filter:blur(8px)}.app-shell[data-theme] .report-pages{background:var(--bg)}.app-shell[data-theme] .report-pages img{background:#fff}.app-shell[data-theme] .toast{background:var(--ink);color:var(--surface);border:0;font-size:15px}.app-shell[data-theme] .toast button{color:var(--surface);font-size:14px}.app-shell[data-theme] .toast>svg{color:var(--surface)}.app-shell[data-theme] :is(.mobile-nav,.harbor-tabbar){background:var(--surface);border-color:var(--line);box-shadow:none}.app-shell[data-theme] :is(.mobile-nav,.harbor-tabbar) button{color:var(--muted);font-size:14px}.app-shell[data-theme] :is(.mobile-nav,.harbor-tabbar) button.selected,.app-shell[data-theme] .mobile-nav button.active{color:var(--accent)}
.loading-screen,.sign-in{background:#f2f2f7;color:#636366;font-family:'Cairo',sans-serif}.loading-screen h1,.sign-in h1{color:#1c1c1e}.loading-screen p,.sign-in p,.sign-in small{font-size:16px;color:#636366}.sign-in .brandmark{background:#007aff;color:white}
@media(max-width:900px){.app-shell[data-theme] .workspace>.topbar{backdrop-filter:blur(20px)}.device-preview-original .app-shell .workspace>.topbar{top:var(--device-toolbar-height,0px)}}
@media(max-width:600px){.app-shell[data-theme] .modal{border-radius:22px 22px 0 0}.app-shell[data-theme] .page-heading h1{font-size:26px}.app-shell[data-theme] .panel-heading h2{font-size:18px}.app-shell[data-theme] .modal-heading h2{font-size:22px}.app-shell[data-theme] .modal-body{font-size:15px}.app-shell[data-theme] .mobile-nav button{font-size:14px}}
.app-shell[data-theme] :is(.footer,.footer small,.warning,.checklist small,.note-chips button,.check-options button,.reason-options button,.field-title,.date-tile small){font-size:14px;line-height:1.7}.app-shell[data-theme] .footer{color:var(--muted)}.app-shell[data-theme] .voided{opacity:.7}.app-shell[data-theme] .crew-card{border-color:var(--line)}.app-shell[data-theme] .crew-card h3{font-size:17px}.app-shell[data-theme] .crew-card span:not(.avatar):not(.badge){font-size:14px;color:var(--muted)}.app-shell[data-theme] .type-choice button,.app-shell[data-theme] .decision-choice button,.app-shell[data-theme] .reason-options button{color:var(--muted);border-color:var(--line);font-size:15px}.app-shell[data-theme] .type-choice .selected{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}

.app-shell[data-theme] .roster-name-field textarea{color:var(--ink);background:transparent;box-shadow:none}.app-shell[data-theme] .roster-chief textarea{color:var(--accent)}.app-shell[data-theme] .roster-name-field textarea::placeholder{color:var(--muted)}.app-shell[data-theme] .roster-person.is-absent textarea{color:var(--muted)}
/* Scroll remains native by touch, wheel and keyboard; only the visible tracks are removed. */
html,body,.app-shell,.app-shell *,.device-preview-root,.device-preview-root *{scrollbar-width:none;-ms-overflow-style:none}
html::-webkit-scrollbar,body::-webkit-scrollbar,.app-shell::-webkit-scrollbar,.app-shell *::-webkit-scrollbar,.device-preview-root::-webkit-scrollbar,.device-preview-root *::-webkit-scrollbar{display:none;width:0;height:0}
/* === device-preview.css === */
.device-preview-root{--device-toolbar-height:64px;min-height:100dvh;background:#0a1827}
.device-preview-toolbar{height:var(--device-toolbar-height);position:sticky;top:0;z-index:160;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px 25px;background:#071522;border-bottom:1px solid #294158;color:#e4edf5;font-family:'Cairo',sans-serif;direction:rtl}
.device-preview-caption{display:flex;align-items:center;gap:14px}.device-preview-caption b{font-size:15px;font-weight:500}.device-preview-caption>span{font-size:14px;color:#91aac0;direction:ltr}
.device-preview-options{display:flex;align-items:center;gap:6px;padding:4px;background:#11283c;border:1px solid #28435a;border-radius:10px}.device-preview-options button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:6px 14px;border-radius:6px;font:500 14px/1.6 'Cairo',sans-serif;color:#b2c8d9;border:0;background:none;cursor:pointer}.device-preview-options button[aria-pressed=true]{background:#2d6188;color:#fff}.device-preview-options button:disabled{opacity:.45;cursor:not-allowed}.device-preview-options button:focus-visible{outline:2px solid #91cbea;outline-offset:3px}
.device-preview-stage{position:fixed;inset:var(--device-toolbar-height) 0 0;z-index:150;background:#06111d;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;overflow:hidden;padding:12px 16px 16px;font-family:'Cairo',sans-serif;color:#c2d3e2}.device-preview-stage[hidden]{display:none}.device-preview-stage>p{font-size:14px;line-height:1.7;margin:0 0 12px;text-align:center}.device-preview-stage>p>span{margin-right:13px;color:#7f9bb1}
.device-preview-frame{position:relative;flex-shrink:0;background:#10273a;box-shadow:0 10px 45px #00000040;border-radius:20px;outline:5px solid #243b4f;direction:ltr;overflow:hidden}.device-preview-frame.tablet{border-radius:13px}.device-preview-frame iframe{display:block;position:absolute;top:0;left:0;max-width:none;border:0;background:#0a1928;transform-origin:top left;outline:none}.device-preview-loading{display:block;text-align:center;color:#c2d3e2;font-size:15px;padding-top:30px}
.device-preview-root>.device-preview-original>.app-shell .marine-sidebar,.device-preview-root>.device-preview-original>.app-shell .sidebar{top:var(--device-toolbar-height);height:calc(100dvh - var(--device-toolbar-height))}
@media(max-width:600px){.device-preview-root{--device-toolbar-height:106px}.device-preview-toolbar{padding:8px 13px;gap:7px;flex-wrap:wrap;justify-content:center}.device-preview-caption{justify-content:space-between;width:100%;gap:10px}.device-preview-caption b,.device-preview-caption>span{font-size:14px}.device-preview-options{width:100%;gap:4px;padding:3px}.device-preview-options button{flex:1;padding:5px 7px;font-size:14px;gap:6px;min-height:35px}.device-preview-stage>p{font-size:14px;line-height:1.7}.device-preview-stage>p>span{display:block;margin:0}.device-preview-stage{padding-top:10px}}

.device-preview-original[hidden]{display:none}.device-preview-stage.browser{padding:0;display:block}.device-preview-frame.browser{border-radius:0;outline:none;box-shadow:none;background:#0b1928}

/* Neutral preview chrome, independent of the app appearance. */
.device-preview-root{background:#e9e9ee}.device-preview-toolbar{background:#fff;color:#1c1c1e;border-color:#d8d8df}.device-preview-caption>span{color:#636366}.device-preview-options{background:#f0f0f5;border-color:#e0e0e7;padding:3px;border-radius:11px}.device-preview-options button{color:#636366;border-radius:8px}.device-preview-options button[aria-pressed=true]{background:#fff;color:#007aff;box-shadow:0 2px 5px #0001}.device-preview-stage{background:#e9e9ee;color:#1c1c1e}.device-preview-stage>p>span{color:#636366}.device-preview-frame{background:#fff;outline-color:#343438;box-shadow:0 12px 40px #0002}.device-preview-frame iframe{background:#f2f2f7}.device-preview-loading{color:#636366}.device-preview-frame.browser{background:#f2f2f7}
/* === field-home.css === */
/* Field home: a compact, task-first composition. Scoped to home for review. */
.app-shell.home-preview-shell[data-theme]{--action:var(--accent);--action-text:#fff;background:var(--bg);color:var(--ink)}
.app-shell.home-preview-shell[data-theme] .workspace{margin-right:224px!important}.app-shell.home-preview-shell[data-theme] .content{max-width:1050px;padding:28px 38px 32px}.app-shell.home-preview-shell[data-theme] .harbor-home{font-size:15px;line-height:1.7}.app-shell.home-preview-shell[data-theme] .field-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.app-shell.home-preview-shell[data-theme] .field-heading h1{font-size:26px;line-height:1.4;letter-spacing:-.5px;font-weight:600;margin:0 0 6px}.app-shell.home-preview-shell[data-theme] .field-heading p{display:flex;align-items:center;gap:7px;font-size:14px;color:var(--muted);margin:0}.app-shell.home-preview-shell[data-theme] .field-location{display:flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;padding:8px 12px;font-size:14px;max-width:40%;overflow-wrap:anywhere}
/* Crew is a grouped editable list rather than a bank of cards. */
.app-shell.home-preview-shell[data-theme] .field-crew-group{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:23px}.app-shell.home-preview-shell[data-theme] .roster-section-heading{padding:13px 18px;margin:0;background:var(--surface);border-bottom:1px solid var(--line)}.app-shell.home-preview-shell[data-theme] .harbor-section-heading h2{font-size:17px;font-weight:600}.app-shell.home-preview-shell[data-theme] .harbor-section-heading>span{font-size:14px;color:var(--muted)}.app-shell.home-preview-shell[data-theme] .harbor-roster{margin:0;border:0;border-radius:0;box-shadow:none;background:var(--surface)}.app-shell.home-preview-shell[data-theme] .roster-editor{display:flex;flex-direction:column;padding:0 18px}.app-shell.home-preview-shell[data-theme] .roster-person,.app-shell.home-preview-shell[data-theme] .roster-chief,.app-shell.home-preview-shell[data-theme] .roster-person:nth-child(n){display:flex;align-items:flex-start;min-height:47px;padding:9px 0;gap:12px;margin:0;border:0;border-bottom:1px solid var(--line);background:transparent}.app-shell.home-preview-shell[data-theme] .roster-person:last-child{border-bottom:0}.app-shell.home-preview-shell[data-theme] .roster-index,.app-shell.home-preview-shell[data-theme] .roster-chief .roster-index{width:23px;height:27px;margin:2px 0 0;background:none;color:var(--muted);border-radius:0;font-size:14px;font-weight:500}.app-shell.home-preview-shell[data-theme] .roster-chief .roster-index{color:var(--accent)}.app-shell.home-preview-shell[data-theme] .roster-person label{display:flex;align-items:flex-start;gap:13px;min-width:0}.app-shell.home-preview-shell[data-theme] .roster-chief label>span{flex-shrink:0;font-size:14px;line-height:30px;margin:0;color:var(--accent)}.app-shell.home-preview-shell[data-theme] .roster-person label>div.roster-name-field{flex:1;min-width:0}.app-shell.home-preview-shell[data-theme] .roster-name-field .roster-name-measure,.app-shell.home-preview-shell[data-theme] .roster-name-field textarea,.app-shell.home-preview-shell[data-theme] .roster-chief .roster-name-measure,.app-shell.home-preview-shell[data-theme] .roster-chief textarea{font-size:17px;font-weight:400;line-height:1.7;min-height:29px;padding:0 3px;letter-spacing:0}.app-shell.home-preview-shell[data-theme] .roster-chief textarea,.app-shell.home-preview-shell[data-theme] .roster-chief .roster-name-measure{font-weight:500}.app-shell.home-preview-shell[data-theme] .roster-name-field textarea{color:var(--ink)}.app-shell.home-preview-shell[data-theme] .roster-chief textarea{color:var(--accent)}.app-shell.home-preview-shell[data-theme] .roster-name-field textarea::placeholder{font-size:16px;color:var(--muted)}.app-shell.home-preview-shell[data-theme] .roster-ranks{padding:0 18px;border-color:var(--line)}.app-shell.home-preview-shell[data-theme] .roster-ranks summary{font-size:14px;min-height:32px;color:var(--muted);gap:7px}.app-shell.home-preview-shell[data-theme] .roster-ranks>div{gap:12px}.app-shell.home-preview-shell[data-theme] .roster-ranks input{border-radius:7px;min-height:42px;padding:8px;font-size:16px}.app-shell.home-preview-shell[data-theme] .roster-footer{padding:11px 18px;gap:12px;background:var(--surface-2);border-color:var(--line);flex-wrap:wrap}.app-shell.home-preview-shell[data-theme] .roster-remember{gap:9px}.app-shell.home-preview-shell[data-theme] .roster-remember b{font-size:14px;font-weight:400;white-space:nowrap}.app-shell.home-preview-shell[data-theme] .roster-remember small{display:none}.app-shell.home-preview-shell[data-theme] .roster-switch{width:34px;height:21px;background:#9daab4}.app-shell.home-preview-shell[data-theme] .roster-switch:after{width:17px;height:17px;top:2px;right:2px}.app-shell.home-preview-shell[data-theme] .roster-remember input:checked+.roster-switch{background:var(--action)}.app-shell.home-preview-shell[data-theme] .roster-remember input:checked+.roster-switch:after{transform:translateX(-13px)}.app-shell.home-preview-shell[data-theme] .roster-footer>div{gap:12px;flex-wrap:wrap;margin-right:auto}.app-shell.home-preview-shell[data-theme] .roster-state{font-size:14px;max-width:none;color:var(--muted)}.app-shell.home-preview-shell[data-theme] .roster-state.saved{color:var(--green)}.app-shell.home-preview-shell[data-theme] .roster-save{font-size:14px;min-height:40px;padding:8px 12px;border-radius:7px;background:var(--action);color:var(--action-text)}.app-shell.home-preview-shell[data-theme] .roster-save:disabled{background:transparent;border:1px solid var(--line);color:var(--muted);opacity:1}
/* Four compact counters, each with a distinct, reachable action. */
.app-shell.home-preview-shell[data-theme] .field-inspection-heading{margin:0 0 11px}.app-shell.home-preview-shell[data-theme] .quick-inspection-grid{gap:12px}.app-shell.home-preview-shell[data-theme] .quick-inspection-card,.app-shell.home-preview-shell[data-theme] .quick-inspection-card.denied{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:14px 16px;box-shadow:none;overflow:visible}.app-shell.home-preview-shell[data-theme] .quick-inspection-card header{display:flex;align-items:center;gap:9px;margin:0 0 11px}.app-shell.home-preview-shell[data-theme] .quick-craft-icon,.app-shell.home-preview-shell[data-theme] .denied .quick-craft-icon{width:28px;height:28px;flex-shrink:0;border-radius:0;background:none;color:var(--muted)}.app-shell.home-preview-shell[data-theme] .quick-inspection-card h3{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:500;line-height:1.5;color:var(--ink);margin:0;flex:1}.app-shell.home-preview-shell[data-theme] .field-decision{font-size:14px;font-weight:400;color:var(--green);margin-right:auto;display:flex;align-items:center;gap:5px}.app-shell.home-preview-shell[data-theme] .field-decision:before{content:'';height:5px;width:5px;border-radius:50%;background:currentColor}.app-shell.home-preview-shell[data-theme] .denied .field-decision{color:var(--red)}.app-shell.home-preview-shell[data-theme] .field-card-action{display:flex;align-items:center;justify-content:space-between;gap:12px}.app-shell.home-preview-shell[data-theme] .field-count{display:flex;align-items:baseline;gap:7px;padding-right:3px}.app-shell.home-preview-shell[data-theme] .field-count strong{font-size:24px;font-weight:500;line-height:1.4;color:var(--ink);font-variant-numeric:tabular-nums}.app-shell.home-preview-shell[data-theme] .field-count small{font-size:14px;color:var(--muted)}.app-shell.home-preview-shell[data-theme] .quick-add{width:auto;min-width:85px;min-height:42px;border:1px solid var(--action);border-radius:8px;background:var(--action);color:var(--action-text);font-size:14px;font-weight:500;padding:8px 13px;gap:6px}.app-shell.home-preview-shell[data-theme] .quick-add:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:var(--action-text)}.app-shell.home-preview-shell[data-theme][data-theme=dark] .quick-add:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.app-shell.home-preview-shell[data-theme] .denied .quick-add{background:transparent;color:var(--red);border-color:var(--line)}.app-shell.home-preview-shell[data-theme] .denied .quick-add:hover,.app-shell.home-preview-shell[data-theme] .denied .quick-add[aria-expanded=true]{background:var(--red-soft);color:var(--red);border-color:var(--red)}.app-shell.home-preview-shell[data-theme] .console-ledger{font-size:14px;padding:12px 2px 17px;gap:8px;color:var(--accent)}.app-shell.home-preview-shell[data-theme] .console-ledger b{font-size:14px;color:var(--muted)}
/* A single report group replaces the separate counters and header action. */
.app-shell.home-preview-shell[data-theme] .field-summary{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}.app-shell.home-preview-shell[data-theme] .totals-heading{margin:0;padding:13px 18px;border-bottom:1px solid var(--line)}.app-shell.home-preview-shell[data-theme] .harbor-totals{border:0;border-radius:0;background:transparent;padding:16px 0;box-shadow:none}.app-shell.home-preview-shell[data-theme] .daily-total{display:flex;flex-direction:column;align-items:flex-start;padding:0 18px;gap:6px;border-color:var(--line)}.app-shell.home-preview-shell[data-theme] .total-symbol{display:none}.app-shell.home-preview-shell[data-theme] .daily-total>span:nth-child(2){font-size:14px;color:var(--muted);white-space:nowrap;min-height:0}.app-shell.home-preview-shell[data-theme] .daily-total strong{font-size:23px;font-weight:500;line-height:1.3;margin:0;color:var(--ink)}.app-shell.home-preview-shell[data-theme] .daily-total.allowed strong{color:var(--green)}.app-shell.home-preview-shell[data-theme] .daily-total.denied strong{color:var(--red)}.app-shell.home-preview-shell[data-theme] .field-report-action{display:flex;align-items:center;gap:10px;min-height:48px;padding:12px 18px;width:100%;border-top:1px solid var(--line);background:var(--surface-2);color:var(--accent);font-size:15px;font-weight:500;text-align:right}.app-shell.home-preview-shell[data-theme] .field-report-action>span{flex:1}.app-shell.home-preview-shell[data-theme] .field-report-action:hover{background:var(--accent-soft)}.app-shell.home-preview-shell[data-theme] .harbor-footnote{font-size:14px;color:var(--muted);padding-top:16px;gap:8px}.app-shell.home-preview-shell[data-theme] .harbor-footnote>span:last-child{display:none}
/* Refined home navigation. */
.app-shell.home-preview-shell[data-theme] .marine-sidebar{width:224px;background:var(--surface);border-color:var(--line);padding:24px 14px 14px}.app-shell.home-preview-shell[data-theme] .marine-brand{gap:10px;margin:0 9px 24px;padding:0}.app-shell.home-preview-shell[data-theme] .marine-emblem{width:40px;height:40px;border-radius:12px;background:var(--action);color:#fff;box-shadow:none}.app-shell.home-preview-shell[data-theme] .marine-emblem svg{width:26px}.app-shell.home-preview-shell[data-theme] .marine-brand b{font-size:29px;line-height:1.3;color:var(--ink)}.app-shell.home-preview-shell[data-theme] .marine-brand small{font-size:14px;color:var(--muted)}.app-shell.home-preview-shell[data-theme] .marine-site-picker{border:0;border-radius:9px;padding:11px 12px;background:var(--field);margin-bottom:22px}.app-shell.home-preview-shell[data-theme] .marine-site-picker>label{font-size:14px;color:var(--muted);margin-bottom:2px}.app-shell.home-preview-shell[data-theme] .marine-site-picker select{font-size:15px;color:var(--ink)}.app-shell.home-preview-shell[data-theme] .marine-nav-group{margin-bottom:20px}.app-shell.home-preview-shell[data-theme] .marine-nav-group h2{font-size:14px;margin:0 10px 7px}.app-shell.home-preview-shell[data-theme] .marine-nav-group button{min-height:43px;font-size:15px;border-radius:8px;padding:9px 11px;gap:10px;margin:2px 0;color:var(--muted)}.app-shell.home-preview-shell[data-theme] .marine-nav-group button svg{width:19px;height:19px}.app-shell.home-preview-shell[data-theme] .marine-nav-group button.selected{background:var(--accent-soft);color:var(--accent);font-weight:500}.app-shell.home-preview-shell[data-theme] .sidebar-appearance{font-size:14px;min-height:42px;padding:9px 11px;margin-bottom:12px;color:var(--muted)}.app-shell.home-preview-shell[data-theme] .marine-account{border-color:var(--line);gap:6px;padding-top:12px}.app-shell.home-preview-shell[data-theme] .marine-avatar{width:32px;height:32px;font-size:15px;background:var(--field)}.app-shell.home-preview-shell[data-theme] .marine-account-details b{max-width:122px;font-size:14px}.app-shell.home-preview-shell[data-theme] .marine-account-details small{font-size:14px}.app-shell.home-preview-shell[data-theme] .marine-account>a{padding:6px}
/* Rebuilt inline form and compact navigation, using the same neutral surfaces. */
.app-shell.home-preview-shell[data-theme] .harbor-denial{border-radius:12px;padding:18px;gap:15px;margin-top:12px;background:var(--surface);border-color:var(--line)}.app-shell.home-preview-shell[data-theme] .denial-caption{padding-bottom:11px;gap:9px}.app-shell.home-preview-shell[data-theme] .denial-caption>span{font-size:17px}.app-shell.home-preview-shell[data-theme] .denial-caption small{font-size:14px;background:var(--red-soft);color:var(--red);padding:3px 8px;border-radius:5px}.app-shell.home-preview-shell[data-theme] .denial-fields{gap:14px}.app-shell.home-preview-shell[data-theme] .harbor-denial label{font-size:14px}.app-shell.home-preview-shell[data-theme] .harbor-denial input,.app-shell.home-preview-shell[data-theme] .harbor-denial select,.app-shell.home-preview-shell[data-theme] .harbor-denial textarea{min-height:44px;padding:10px 12px;font-size:16px;border-radius:7px;border-color:var(--line);background:var(--surface-2)}.app-shell.home-preview-shell[data-theme] .denial-save{background:var(--action);color:var(--action-text);border-radius:7px;font-size:14px;min-height:42px}.app-shell.home-preview-shell[data-theme] .denial-cancel{border-radius:7px;background:var(--field);color:var(--muted);font-size:14px;min-height:42px}.app-shell.home-preview-shell[data-theme] .harbor-denial footer{padding-top:12px}.app-shell.home-preview-shell[data-theme] .harbor-tabbar{background:var(--surface);border-color:var(--line);padding-top:5px;padding-bottom:calc(5px + env(safe-area-inset-bottom))}.app-shell.home-preview-shell[data-theme] .harbor-tabbar button{font-size:14px;min-height:46px;gap:3px;color:var(--muted)}.app-shell.home-preview-shell[data-theme] .harbor-tabbar button.selected{color:var(--accent)}.app-shell.home-preview-shell[data-theme] .harbor-tabbar button.selected svg{background:var(--accent-soft);border-radius:6px;box-shadow:0 0 0 5px var(--accent-soft)}
@media(max-width:1100px){.app-shell.home-preview-shell[data-theme] .content{padding-left:26px;padding-right:26px}.app-shell.home-preview-shell[data-theme] .roster-state{display:none}}
@media(max-width:900px){.app-shell.home-preview-shell[data-theme] .workspace{margin:0!important}.app-shell.home-preview-shell[data-theme] .content{padding:20px 24px 100px}.app-shell.home-preview-shell[data-theme] .workspace>.topbar{height:62px;min-height:62px;padding:10px 24px;background:var(--surface);border-color:var(--line)}.app-shell.home-preview-shell[data-theme] .header-brand b{font-size:25px;color:var(--ink)}.app-shell.home-preview-shell[data-theme] .header-brand{color:var(--accent)}.app-shell.home-preview-shell[data-theme] .theme-toggle{background:var(--field);color:var(--muted);width:36px;height:36px;border-radius:9px}.app-shell.home-preview-shell[data-theme] .site-select{background:var(--field);border-radius:8px}.app-shell.home-preview-shell[data-theme] .site-select select{font-size:14px}.app-shell.home-preview-shell[data-theme] .field-heading{margin-bottom:18px}.app-shell.home-preview-shell[data-theme] .field-heading h1{font-size:24px}.app-shell.home-preview-shell[data-theme] .field-location{display:none}.app-shell.home-preview-shell[data-theme] .field-crew-group{margin-bottom:20px}.app-shell.home-preview-shell[data-theme] .roster-state{display:block}.app-shell.home-preview-shell[data-theme] .roster-footer>div{width:auto;margin-right:auto}.app-shell.home-preview-shell[data-theme] .roster-ranks>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.app-shell.home-preview-shell[data-theme] .content{padding:18px 16px 98px}.app-shell.home-preview-shell[data-theme] .workspace>.topbar{height:58px;min-height:58px;padding:8px 16px}.app-shell.home-preview-shell[data-theme] .header-brand b{font-size:24px}.app-shell.home-preview-shell[data-theme] .header-brand svg{width:21px}.app-shell.home-preview-shell[data-theme] .field-heading{margin-bottom:16px}.app-shell.home-preview-shell[data-theme] .field-heading h1{font-size:23px;margin-bottom:5px}.app-shell.home-preview-shell[data-theme] .field-heading p{font-size:14px}.app-shell.home-preview-shell[data-theme] .field-heading p svg{width:14px}.app-shell.home-preview-shell[data-theme] .roster-section-heading,.app-shell.home-preview-shell[data-theme] .totals-heading{padding:11px 13px;gap:8px}.app-shell.home-preview-shell[data-theme] .harbor-section-heading h2{font-size:16px}.app-shell.home-preview-shell[data-theme] .harbor-section-heading>span{font-size:14px}.app-shell.home-preview-shell[data-theme] .roster-editor{padding:0 13px}.app-shell.home-preview-shell[data-theme] .roster-person,.app-shell.home-preview-shell[data-theme] .roster-chief,.app-shell.home-preview-shell[data-theme] .roster-person:nth-child(n){min-height:44px;padding:8px 0;gap:8px}.app-shell.home-preview-shell[data-theme] .roster-index,.app-shell.home-preview-shell[data-theme] .roster-chief .roster-index{width:20px;font-size:14px}.app-shell.home-preview-shell[data-theme] .roster-chief label{display:block}.app-shell.home-preview-shell[data-theme] .roster-chief label>span{font-size:14px;line-height:1.6;display:block;margin-bottom:2px}.app-shell.home-preview-shell[data-theme] .roster-name-field .roster-name-measure,.app-shell.home-preview-shell[data-theme] .roster-name-field textarea,.app-shell.home-preview-shell[data-theme] .roster-chief .roster-name-measure,.app-shell.home-preview-shell[data-theme] .roster-chief textarea{font-size:17px;line-height:1.7;min-height:29px}.app-shell.home-preview-shell[data-theme] .roster-footer{padding:10px 13px;gap:10px;flex-wrap:wrap}.app-shell.home-preview-shell[data-theme] .roster-footer>div{width:auto;margin-right:auto;gap:8px}.app-shell.home-preview-shell[data-theme] .roster-state{display:none}.app-shell.home-preview-shell[data-theme] .roster-save{min-height:40px;padding:8px 10px;gap:5px;font-size:14px}.app-shell.home-preview-shell[data-theme] .roster-save svg{width:15px}.app-shell.home-preview-shell[data-theme] .roster-remember{gap:7px}.app-shell.home-preview-shell[data-theme] .roster-remember b{font-size:14px}.app-shell.home-preview-shell[data-theme] .roster-ranks{padding:0 13px}.app-shell.home-preview-shell[data-theme] .roster-ranks summary{min-height:32px;font-size:14px}.app-shell.home-preview-shell[data-theme] .quick-inspection-grid{gap:10px}.app-shell.home-preview-shell[data-theme] .quick-inspection-card,.app-shell.home-preview-shell[data-theme] .quick-inspection-card.denied{padding:12px;border-radius:11px}.app-shell.home-preview-shell[data-theme] .quick-inspection-card header{flex-wrap:nowrap;gap:5px;margin-bottom:10px}.app-shell.home-preview-shell[data-theme] .quick-craft-icon{width:23px;height:23px}.app-shell.home-preview-shell[data-theme] .quick-craft-icon svg{width:21px;height:21px}.app-shell.home-preview-shell[data-theme] .quick-inspection-card h3{order:initial;flex-basis:auto;font-size:16px;display:block;line-height:1.45}.app-shell.home-preview-shell[data-theme] .field-decision{font-size:14px;line-height:1.5;margin:1px 0 0;gap:4px}.app-shell.home-preview-shell[data-theme] .field-decision:before{width:4px;height:4px}.app-shell.home-preview-shell[data-theme] .field-count{gap:0;display:flex;flex-direction:column;align-items:flex-start;padding:0}.app-shell.home-preview-shell[data-theme] .field-count strong{font-size:23px;line-height:1.2}.app-shell.home-preview-shell[data-theme] .field-count small{font-size:14px;line-height:1.3}.app-shell.home-preview-shell[data-theme] .quick-add{min-width:0;min-height:42px;gap:4px;padding:8px 10px;font-size:14px}.app-shell.home-preview-shell[data-theme] .quick-add svg{width:17px}.app-shell.home-preview-shell[data-theme] .field-card-action{gap:6px}.app-shell.home-preview-shell[data-theme] .console-ledger{padding:11px 0 16px;font-size:14px;gap:7px}.app-shell.home-preview-shell[data-theme] .console-ledger b{font-size:14px}.app-shell.home-preview-shell[data-theme] .harbor-totals{padding:14px 0}.app-shell.home-preview-shell[data-theme] .daily-total{padding:0 13px;gap:5px}.app-shell.home-preview-shell[data-theme] .daily-total strong{font-size:23px}.app-shell.home-preview-shell[data-theme] .daily-total>span:nth-child(2){font-size:14px}.app-shell.home-preview-shell[data-theme] .field-report-action{padding:11px 13px;font-size:14px;min-height:46px}.app-shell.home-preview-shell[data-theme] .harbor-footnote{font-size:14px;padding-top:14px}.app-shell.home-preview-shell[data-theme] .harbor-denial{padding:16px 13px}.app-shell.home-preview-shell[data-theme] .harbor-tabbar button{font-size:14px}.app-shell.home-preview-shell[data-theme] .harbor-tabbar button svg{width:21px;height:21px}}
@media(max-width:370px){.app-shell.home-preview-shell[data-theme] .content{padding-left:12px;padding-right:12px}.app-shell.home-preview-shell[data-theme] .roster-footer{gap:8px}.app-shell.home-preview-shell[data-theme] .roster-footer>div{margin-right:0}.app-shell.home-preview-shell[data-theme] .quick-inspection-card,.app-shell.home-preview-shell[data-theme] .quick-inspection-card.denied{padding:10px}.app-shell.home-preview-shell[data-theme] .quick-add{padding:8px;gap:3px}.app-shell.home-preview-shell[data-theme] .quick-inspection-card h3{font-size:15px}.app-shell.home-preview-shell[data-theme] .daily-total{padding:0 10px}.app-shell.home-preview-shell[data-theme] .totals-heading>span{display:none}}

.app-shell.home-preview-shell[data-theme] .quick-add,.app-shell.home-preview-shell[data-theme] .denial-save,.app-shell.home-preview-shell[data-theme] .denial-cancel{min-height:44px}

/* Preserve the existing home shadows while colors come from the shared palette. */
.app-shell.home-preview-shell[data-theme=light] .field-crew-group,
.app-shell.home-preview-shell[data-theme=light] .quick-inspection-card,
.app-shell.home-preview-shell[data-theme=light] .field-summary{box-shadow:0 2px 6px #00000008}
/* === roster-refinements.css === */
/* Fixed identity columns shared by the home and shift editors. */
.app-shell[data-theme] .roster-aligned .roster-editor{display:flex;flex-direction:column;padding:0 18px}
.app-shell[data-theme] .roster-aligned .roster-column-head{display:grid;grid-template-columns:28px 145px minmax(0,1fr);align-items:center;gap:14px;padding:9px 18px;border-bottom:1px solid var(--line);background:var(--surface-2);color:var(--muted);font-size:14px}
.app-shell[data-theme] .roster-aligned .roster-person:nth-child(n){display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:14px;min-height:54px;padding:10px 0;border:0;border-bottom:1px solid var(--line);margin:0;background:transparent}
.app-shell[data-theme] .roster-aligned .roster-person:last-child{border-bottom:0}
.app-shell[data-theme] .roster-aligned .roster-index{width:28px;height:28px;align-self:center;font-size:14px;margin:0;display:grid;place-items:center;background:transparent;color:var(--muted)}
.app-shell[data-theme] .roster-aligned .roster-chief .roster-index{color:var(--accent)}
.app-shell[data-theme] .roster-aligned .roster-identity{display:grid;grid-template-columns:145px minmax(0,1fr);gap:14px;align-items:center;min-width:0}
.app-shell[data-theme] .roster-aligned .roster-person label{display:block;min-width:0;width:100%;margin:0}
.app-shell[data-theme] .roster-aligned .roster-person label>div.roster-name-field{display:grid;width:100%;min-width:0}
.app-shell[data-theme] .roster-aligned .roster-name-field textarea,.app-shell[data-theme] .roster-aligned .roster-name-field .roster-name-measure{font-size:17px;font-weight:400;line-height:1.8;min-height:31px;padding:0 3px;margin:0}
.app-shell[data-theme] .roster-aligned .roster-rank-field .roster-name-field textarea,.app-shell[data-theme] .roster-aligned .roster-rank-field .roster-name-measure{font-size:15px;color:var(--muted);font-weight:400;line-height:2.04}
.app-shell[data-theme] .roster-aligned .roster-person textarea{color:var(--ink)}
.app-shell[data-theme] .roster-aligned .roster-chief .roster-fullname-field textarea{color:var(--accent);font-weight:500}
.app-shell[data-theme] .roster-aligned .roster-chief .roster-fullname-field .roster-name-measure{font-weight:500}
.app-shell[data-theme] .roster-aligned .roster-person label>span.roster-supervisor-label{display:block;width:max-content;max-width:100%;font-size:14px;line-height:1.5;margin:0 3px 2px;padding:0;position:static;color:var(--accent)}
.app-shell[data-theme] .roster-aligned .roster-absence-name{display:block;overflow-wrap:anywhere;color:var(--ink);font-size:15px}
.app-shell[data-theme] .roster-aligned .roster-ranks>div{padding-top:10px}
.app-shell[data-theme] .roster-aligned .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app-shell.home-preview-shell[data-theme] .denied .quick-add{background:#a54845;border-color:#a54845;color:#fff}
.app-shell.home-preview-shell[data-theme] .denied .quick-add:hover,.app-shell.home-preview-shell[data-theme] .denied .quick-add[aria-expanded=true]{background:#8d3937;border-color:#8d3937;color:#fff}
.app-shell.home-preview-shell[data-theme=dark] .denied .quick-add{background:#a34b47;border-color:#c16962;color:#fff}
.app-shell.home-preview-shell[data-theme=dark] .denied .quick-add:hover,.app-shell.home-preview-shell[data-theme=dark] .denied .quick-add[aria-expanded=true]{background:#b75751;border-color:#d08078;color:#fff}
.app-shell[data-theme] .quick-add[aria-busy=true]{opacity:1!important;cursor:wait}
.app-shell[data-theme] .field-count small{transition:none}
@media(max-width:600px){
 .app-shell[data-theme] .roster-aligned .roster-column-head{display:none}
 .app-shell[data-theme] .roster-aligned .roster-editor{padding:0 13px}
 .app-shell[data-theme] .roster-aligned .roster-person:nth-child(n){grid-template-columns:23px minmax(0,1fr);gap:10px;padding:11px 0;min-height:72px}
 .app-shell[data-theme] .roster-aligned .roster-index{width:23px;height:28px;align-self:center;margin:0}
 .app-shell[data-theme] .roster-aligned .roster-identity{grid-template-columns:1fr;gap:1px;align-items:start}
 .app-shell[data-theme] .roster-aligned .roster-rank-field .roster-name-field textarea,.app-shell[data-theme] .roster-aligned .roster-rank-field .roster-name-measure{font-size:14px;line-height:1.65;min-height:24px}
 .app-shell[data-theme] .roster-aligned .roster-person label>span.roster-supervisor-label{font-size:14px;position:static;line-height:1.5;display:inline-block;margin:0 3px 2px}
 .app-shell[data-theme] .roster-aligned .roster-chief .roster-identity{position:relative}
 .app-shell[data-theme] .roster-aligned .roster-chief .roster-rank-field{padding-left:63px}
 .app-shell[data-theme] .roster-aligned .roster-chief .roster-fullname-field>span.roster-supervisor-label{position:absolute;top:0;left:0;margin:0;padding:0 5px;border-radius:4px;background:var(--accent-soft)}
}
/* === home-balance.css === */
/* Put frequent inspection actions in the main column and crew in a compact side panel. */
.app-shell.home-preview-shell[data-theme] .field-inspection-group{min-width:0;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:18px}
.app-shell.home-preview-shell[data-theme] .field-inspection-heading{margin:0 0 15px;align-items:center;gap:8px}
.app-shell.home-preview-shell[data-theme] .field-inspection-heading h2{font-size:20px;line-height:1.5}
.app-shell.home-preview-shell[data-theme] .quick-inspection-card{box-shadow:none;border-color:var(--line)}
.app-shell.home-preview-shell[data-theme] .quick-add{min-height:46px;min-width:91px}
.app-shell.home-preview-shell[data-theme] .console-ledger{padding:13px 0 0}
.app-shell.home-preview-shell[data-theme] .field-crew-group{min-width:0;margin-bottom:18px}
.app-shell.home-preview-shell[data-theme] .field-crew-group .roster-column-head{padding:7px 14px;font-size:14px}
.app-shell.home-preview-shell[data-theme] .field-crew-group .roster-section-heading{padding:11px 14px}
.app-shell.home-preview-shell[data-theme] .field-crew-group .roster-editor{padding:0 14px}
.app-shell.home-preview-shell[data-theme] .field-crew-group .roster-person:nth-child(n){min-height:46px;padding:7px 0;gap:10px}
.app-shell.home-preview-shell[data-theme] .field-crew-group .roster-name-field textarea,
.app-shell.home-preview-shell[data-theme] .field-crew-group .roster-name-field .roster-name-measure{font-size:17px;line-height:1.7;min-height:29px}
.app-shell.home-preview-shell[data-theme] .field-crew-group .roster-rank-field .roster-name-field textarea,
.app-shell.home-preview-shell[data-theme] .field-crew-group .roster-rank-field .roster-name-measure{font-size:15px;line-height:1.94}
.app-shell.home-preview-shell[data-theme] .field-crew-group .roster-person label>span.roster-supervisor-label{font-size:14px;line-height:1.5;margin-bottom:1px}
.app-shell.home-preview-shell[data-theme] .field-crew-group .roster-footer{padding:10px 14px;gap:10px}
/* Account text wraps naturally, including long Arabic and Latin names. */
.app-shell[data-theme] .marine-account{align-items:center}
.app-shell[data-theme] .marine-account-details{min-width:0;align-items:flex-start}
.app-shell[data-theme] .marine-account-details>span:last-child{flex:1;min-width:0}
.app-shell[data-theme] .marine-account-details b{display:block;max-width:none;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.65}
.app-shell[data-theme] .marine-account-details small{white-space:normal;overflow-wrap:anywhere;line-height:1.6}
.app-shell[data-theme] .marine-account>a{flex-shrink:0}
@media(min-width:1200px){
 .app-shell.home-preview-shell[data-theme] .content{max-width:1320px;padding-left:30px;padding-right:30px}
 .app-shell.home-preview-shell[data-theme] .harbor-home{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.67fr);grid-template-areas:'heading heading' 'inspection crew' 'summary crew' 'footnote footnote';gap:18px;align-items:start}
 .app-shell.home-preview-shell[data-theme] .field-heading{grid-area:heading;margin-bottom:3px}
 .app-shell.home-preview-shell[data-theme] .field-inspection-group{grid-area:inspection;margin:0;padding:18px}
 .app-shell.home-preview-shell[data-theme] .field-crew-group{grid-area:crew;margin:0}
 .app-shell.home-preview-shell[data-theme] .field-summary{grid-area:summary}
 .app-shell.home-preview-shell[data-theme] .harbor-footnote{grid-area:footnote;padding-top:0}
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-column-head{grid-template-columns:23px 85px minmax(0,1fr);gap:10px}
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-person:nth-child(n){grid-template-columns:23px minmax(0,1fr)}
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-identity{grid-template-columns:85px minmax(0,1fr);gap:10px}
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-index{width:23px}
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-section-heading{flex-wrap:wrap;gap:3px}
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-section-heading>span{font-size:14px}
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-footer{flex-direction:column;align-items:stretch}
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-footer>div{margin:0;justify-content:space-between;width:100%;gap:8px}
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-state{display:none}
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-save{width:100%}
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-ranks{padding-left:14px;padding-right:14px}
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-ranks>div{grid-template-columns:1fr}
 .app-shell.home-preview-shell[data-theme] .field-inspection-heading{flex-wrap:wrap;gap:3px}
}
@media(max-width:900px){.app-shell.home-preview-shell[data-theme] .field-inspection-heading h2{font-size:19px}}
@media(max-width:600px){
 .app-shell.home-preview-shell[data-theme] .field-inspection-group{padding:13px;margin-bottom:16px}
 .app-shell.home-preview-shell[data-theme] .field-inspection-heading{margin-bottom:12px;flex-wrap:wrap}
 .app-shell.home-preview-shell[data-theme] .field-inspection-heading h2{font-size:18px}
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-person:nth-child(n){min-height:63px;padding:8px 0}
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-rank-field .roster-name-field textarea,
 .app-shell.home-preview-shell[data-theme] .field-crew-group .roster-rank-field .roster-name-measure{font-size:14px;line-height:1.65;min-height:24px}
 .app-shell.home-preview-shell[data-theme] .field-inspection-group .quick-inspection-grid{gap:8px}
 .app-shell.home-preview-shell[data-theme] .field-inspection-group .quick-inspection-card{padding:11px 10px}
 .app-shell.home-preview-shell[data-theme] .quick-add{min-width:0;min-height:44px;padding-left:9px;padding-right:9px}
}
.app-shell.home-preview-shell[data-theme] .field-inspection-group .quick-add[aria-busy=true]{min-width:44px;width:44px;padding-left:8px;padding-right:8px}
.app-shell.home-preview-shell[data-theme] .field-inspection-group .quick-add[aria-busy=true] span{display:none}
/* === home-palette.css === */
/* Color-only mapping to the shared page palette in ios-theme.css.
   All dimensions, typography, ordering, grids and spacing stay in the existing component styles. */
.app-shell.home-preview-shell[data-theme] .field-heading h1,
.app-shell.home-preview-shell[data-theme] .harbor-section-heading h2,
.app-shell.home-preview-shell[data-theme] .quick-inspection-card h3,
.app-shell.home-preview-shell[data-theme] .field-count strong{color:var(--ink)}
.app-shell.home-preview-shell[data-theme] .roster-section-heading,
.app-shell.home-preview-shell[data-theme] .totals-heading{background:var(--surface);border-color:var(--line)}
.app-shell.home-preview-shell[data-theme] .roster-column-head,
.app-shell.home-preview-shell[data-theme] .roster-footer,
.app-shell.home-preview-shell[data-theme] .field-report-action{background:var(--surface-2);border-color:var(--line)}
.app-shell.home-preview-shell[data-theme] .field-crew-group,
.app-shell.home-preview-shell[data-theme] .field-summary,
.app-shell.home-preview-shell[data-theme] .field-inspection-group,
.app-shell.home-preview-shell[data-theme] .quick-inspection-card{background:var(--surface);border-color:var(--line)}
.app-shell.home-preview-shell[data-theme] .roster-aligned .roster-rank-field textarea,
.app-shell.home-preview-shell[data-theme] .roster-aligned .roster-index,
.app-shell.home-preview-shell[data-theme] .roster-ranks summary{color:var(--muted)}
.app-shell.home-preview-shell[data-theme] .roster-aligned .roster-chief .roster-index,
.app-shell.home-preview-shell[data-theme] .roster-aligned .roster-chief .roster-fullname-field textarea,
.app-shell.home-preview-shell[data-theme] .roster-supervisor-label{color:var(--accent)}
.app-shell.home-preview-shell[data-theme] .roster-name-field textarea::placeholder{color:var(--muted)}
.app-shell.home-preview-shell[data-theme] .quick-craft-icon{color:var(--accent)}
.app-shell.home-preview-shell[data-theme] .denied .quick-craft-icon{color:var(--red)}
.app-shell.home-preview-shell[data-theme] .quick-add,
.app-shell.home-preview-shell[data-theme] .roster-save,
.app-shell.home-preview-shell[data-theme] .denial-save{background:var(--accent);border-color:var(--accent);color:#fff}
.app-shell.home-preview-shell[data-theme] .quick-add:hover,
.app-shell.home-preview-shell[data-theme] .roster-save:hover:not(:disabled),
.app-shell.home-preview-shell[data-theme] .denial-save:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover);color:#fff}
.app-shell.home-preview-shell[data-theme] .denied .quick-add,
.app-shell.home-preview-shell[data-theme] .denied .quick-add:hover,
.app-shell.home-preview-shell[data-theme] .denied .quick-add[aria-expanded=true]{background:var(--red);border-color:var(--red);color:#fff}
.app-shell.home-preview-shell[data-theme] .roster-save:disabled,
.app-shell.home-preview-shell[data-theme] .denial-save:disabled{background:var(--field);border-color:var(--line);color:var(--muted)}
.app-shell.home-preview-shell[data-theme] .marine-nav-group button.selected{background:var(--accent-soft);color:var(--accent)}
.app-shell.home-preview-shell[data-theme] .marine-brand b,
.app-shell.home-preview-shell[data-theme] .header-brand b{color:var(--ink)}
.app-shell.home-preview-shell[data-theme] .marine-emblem{background:var(--accent);color:#fff}
.app-shell.home-preview-shell[data-theme] .roster-remember input:checked+.roster-switch{background:#30ad56}
/* === craft-roster.css === */
/* Two craft groups, each with independent allowed and denied actions. */
.app-shell[data-theme] .craft-inspection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.app-shell[data-theme] .craft-inspection-card{min-width:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.app-shell[data-theme] .craft-inspection-card>header{display:flex;align-items:center;gap:10px;padding:15px 14px;border-bottom:1px solid var(--line);color:var(--ink)}
.app-shell[data-theme=light] .craft-inspection-card>header>svg{color:#000}
.app-shell[data-theme=dark] .craft-inspection-card>header>svg{color:#fff}
.app-shell[data-theme] .craft-inspection-card h3{font-size:18px;font-weight:600;margin:0}
.app-shell[data-theme] .craft-decisions{padding:0 14px}
.app-shell[data-theme] .craft-decision{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0}
.app-shell[data-theme] .craft-decision+.craft-decision{border-top:1px solid var(--line)}
.app-shell[data-theme] .craft-counter{display:flex;flex-direction:column;gap:5px;min-width:0}
.app-shell[data-theme] .craft-counter>span{font-size:15px;color:var(--muted)}
.app-shell[data-theme] .craft-counter>strong{font-size:25px;font-weight:500;line-height:1.4;color:var(--ink);font-variant-numeric:tabular-nums}
.app-shell[data-theme] .craft-add{display:flex;align-items:center;justify-content:center;gap:7px;background:var(--accent);color:#fff;border:0;border-radius:9px;min-height:44px;padding:10px 12px;font-size:15px;font-weight:500;white-space:nowrap}
.app-shell[data-theme] .craft-add:hover{background:var(--accent-hover)}
.app-shell[data-theme] .craft-decision.denied .craft-add{background:var(--red);color:#fff}
.app-shell[data-theme] .craft-add:active{transform:scale(.98)}
.app-shell[data-theme] .craft-add:disabled{cursor:default}
.app-shell[data-theme] .roster-aligned .roster-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);background:var(--surface)}
.app-shell[data-theme] .roster-toolbar h2{font-size:18px;line-height:1.5;margin:0;font-weight:600;color:var(--ink)}
.app-shell[data-theme] .roster-add-menu{position:relative;flex-shrink:0}
.app-shell[data-theme] .roster-add-toggle{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:9px;background:var(--accent-soft);color:var(--accent)}
.app-shell[data-theme] .roster-add-toggle:disabled{opacity:.5}
.app-shell[data-theme] .roster-add-options{position:absolute;left:0;top:42px;z-index:20;min-width:170px;padding:5px;border:1px solid var(--line);border-radius:11px;background:var(--surface);box-shadow:0 6px 24px #0002}
.app-shell[data-theme] .roster-add-options button{width:100%;text-align:right;font-size:16px;padding:11px 12px;color:var(--ink);background:transparent;border:0;border-radius:7px;white-space:nowrap}
.app-shell[data-theme] .roster-add-options button:hover{background:var(--field)}
/* Aligned table columns keep headers, ranks and names on one shared grid. */
.app-shell[data-theme] .roster-aligned.roster-tabular .roster-table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0;margin:0;color:var(--ink)}
.app-shell[data-theme] .roster-table .roster-number-col{width:40px}
.app-shell[data-theme] .roster-table .roster-rank-col{width:106px}
.app-shell[data-theme] .roster-table th{padding:10px 10px;background:var(--surface-2);border-bottom:1px solid var(--line);color:var(--muted);font-size:14px;font-weight:500;text-align:right;line-height:1.6}
.app-shell[data-theme] .roster-table th:first-child{text-align:center;padding-right:6px;padding-left:6px}
.app-shell[data-theme] .roster-table th:last-child{padding-left:18px;padding-right:14px}
.app-shell[data-theme] .roster-table td{padding:13px 10px;border-bottom:1px solid var(--line);vertical-align:middle;background:transparent}
.app-shell[data-theme] .roster-table tbody tr:last-child td{border-bottom:0}
.app-shell[data-theme] .roster-table td.roster-number-cell{padding-right:6px;padding-left:6px;text-align:center;font-size:14px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--muted)}
.app-shell[data-theme] .roster-table td.roster-name-cell{padding-left:18px;padding-right:14px}
.app-shell[data-theme] .roster-table label{display:block;margin:0;width:100%;min-width:0}
.app-shell[data-theme] .roster-aligned.roster-tabular .roster-table .roster-name-field{display:grid;width:100%;min-width:0;align-items:stretch}
.app-shell[data-theme] .roster-aligned.roster-tabular .roster-table .roster-name-field textarea,
.app-shell[data-theme] .roster-aligned.roster-tabular .roster-table .roster-name-field .roster-name-measure{grid-area:1/1;box-sizing:border-box;width:100%;min-width:0;min-height:32px;padding:0;margin:0;border:0;background:transparent;font-family:"Cairo",sans-serif;font-size:17px;font-weight:400;line-height:1.9;color:var(--ink);letter-spacing:0;white-space:pre-wrap;overflow-wrap:anywhere;text-align:right}
.app-shell[data-theme] .roster-aligned.roster-tabular .roster-table .roster-rank-cell .roster-name-field textarea,
.app-shell[data-theme] .roster-aligned.roster-tabular .roster-table .roster-rank-cell .roster-name-measure{font-size:16px;font-weight:600;line-height:2}
.app-shell[data-theme] .roster-aligned.roster-tabular .roster-table textarea:focus{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.app-shell[data-theme] .roster-table .roster-role-caption{display:block;font-size:14px;line-height:1.6;margin-top:1px;color:var(--ink);font-weight:400}
.app-shell[data-theme] .roster-aligned.roster-tabular .roster-toolbar{padding:13px 16px}
.app-shell[data-theme] .roster-aligned.roster-tabular .roster-toolbar h2{font-size:18px;font-weight:600}
.app-shell[data-theme] .roster-aligned.roster-tabular .roster-footer{border-top:1px solid var(--line)}
@media(max-width:650px){.app-shell[data-theme] .craft-inspection-grid{grid-template-columns:1fr;gap:12px}.app-shell[data-theme] .craft-decision{padding:12px 0}.app-shell[data-theme] .craft-counter{flex-direction:row;align-items:center;gap:12px}.app-shell[data-theme] .craft-counter>strong{font-size:24px}.app-shell[data-theme] .craft-add{min-width:132px}}
@media(max-width:420px){
 .app-shell[data-theme] .roster-table .roster-number-col{width:34px}
 .app-shell[data-theme] .roster-table .roster-rank-col{width:90px}
 .app-shell[data-theme] .roster-table th,.app-shell[data-theme] .roster-table td{padding-left:7px;padding-right:7px}
 .app-shell[data-theme] .roster-table th:last-child,.app-shell[data-theme] .roster-table td.roster-name-cell{padding-right:10px;padding-left:12px}
 .app-shell[data-theme] .roster-aligned.roster-tabular .roster-table .roster-name-field textarea,.app-shell[data-theme] .roster-aligned.roster-tabular .roster-table .roster-name-field .roster-name-measure{font-size:16px;line-height:2}
 .app-shell[data-theme] .roster-aligned.roster-tabular .roster-table .roster-rank-cell .roster-name-field textarea,.app-shell[data-theme] .roster-aligned.roster-tabular .roster-table .roster-rank-cell .roster-name-measure{font-size:15px;line-height:2.13}
}
/* === masna-refresh.css === */
/* Formal navy and neutral gray. Only the shared color tokens change. */
.app-shell.masna-refresh.home-preview-shell[data-theme]{
 --bg:#eef0f3;--surface:#fff;--surface-2:#f6f7f9;--field:#edf1f5;
 --ink:#172c42;--muted:#5d6a78;--line:#dde3e9;--accent:#244b70;--accent-hover:#173a5c;
 --accent-soft:#eaf0f6;--red:#b8424c;--red-soft:#fbf0f1;--green:#267653;
 --shadow:0 2px 6px #172c4204;--action:#234c72;--action-hover:#173a5c;--danger:#b63e48;--action-text:#fff;
 background:var(--bg);color:var(--ink);font-family:'Cairo',sans-serif;font-size:16px;
}
.app-shell.masna-refresh.home-preview-shell[data-theme=dark]{
 --bg:#12171d;--surface:#1d252e;--surface-2:#252f3a;--field:#2c3744;
 --ink:#eef3f8;--muted:#b1becb;--line:#3a4655;--accent:#9ebede;--accent-hover:#bed6ec;
 --action:#3d6086;--action-hover:#4c729b;--danger:#b84b55;
 --accent-soft:#283d52;--red:#e9a0a6;--red-soft:#3b2b32;--green:#8bc6ab;--shadow:none;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] :is(button,a,input,select,textarea){font-family:inherit}
.app-shell.masna-refresh.home-preview-shell[data-theme] button{transition:background .15s,box-shadow .15s}
.app-shell.masna-refresh.home-preview-shell[data-theme] button:disabled{cursor:default}
.app-shell.masna-refresh.home-preview-shell[data-theme] .workspace{margin-right:240px!important}
.app-shell.masna-refresh.home-preview-shell[data-theme] .content{max-width:1320px;padding:32px 32px 28px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-home{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(350px,1fr);grid-template-areas:'heading heading' 'inspection crew' 'summary crew' 'footnote footnote';gap:22px;align-items:start;font-size:16px;line-height:1.8}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading{grid-area:heading;align-items:center;margin:0 0 4px;padding-bottom:22px;border-bottom:1px solid var(--line);gap:20px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-eyebrow{display:block;font-size:14px;font-weight:500;color:var(--muted);margin-bottom:4px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading h1{font-size:29px;line-height:1.6;font-weight:700;letter-spacing:0;margin:0 0 5px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading p{font-size:14px;line-height:1.8;gap:8px;color:var(--muted)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading p svg{width:16px;height:16px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-location{padding:9px 14px;min-height:44px;gap:8px;border-radius:11px;background:var(--surface);border:1px solid var(--line);font-size:14px;font-weight:600;box-shadow:none}

/* Navigation has its own quiet surface and a clear selected row. */
.app-shell.masna-refresh[data-theme] .marine-sidebar{width:240px;padding:28px 16px 16px;background:var(--surface-2);border-left:1px solid var(--line);gap:0}
.app-shell.masna-refresh[data-theme] .marine-brand{margin:0 6px 30px;padding:0;gap:12px;align-items:center}
.app-shell.masna-refresh[data-theme] .marine-emblem{height:46px;width:46px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:none}
.app-shell.masna-refresh[data-theme] .marine-emblem svg{width:29px;height:29px;stroke-width:1.5}
.app-shell.masna-refresh[data-theme] .marine-brand b{font-size:31px;line-height:1.4;font-weight:700;color:var(--ink);letter-spacing:0}
.app-shell.masna-refresh[data-theme] .marine-brand small{font-size:14px;line-height:1.8;color:var(--muted);margin-top:2px}
.app-shell.masna-refresh[data-theme] .marine-site-picker{background:var(--surface);border:1px solid var(--line);padding:12px 13px;border-radius:13px;margin-bottom:28px}
.app-shell.masna-refresh[data-theme] .marine-site-picker>label{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 7px;display:block}
.app-shell.masna-refresh[data-theme] .marine-site-picker>div{gap:9px;min-height:28px}
.app-shell.masna-refresh[data-theme] .marine-site-picker select{font-size:15px;line-height:1.8;font-weight:600;color:var(--ink);width:100%;min-width:0;padding:0;background:transparent}
.app-shell.masna-refresh[data-theme] .marine-site-picker svg{color:var(--muted);flex-shrink:0}
.app-shell.masna-refresh[data-theme] .marine-nav-group{margin-bottom:25px}
.app-shell.masna-refresh[data-theme] .marine-nav-group h2{font-size:14px;line-height:1.8;font-weight:500;color:var(--muted);padding:0;margin:0 12px 9px}
.app-shell.masna-refresh[data-theme] .marine-nav-group button{min-height:48px;margin:4px 0;padding:11px 12px;border:1px solid transparent;border-radius:11px;gap:11px;font-size:15px;font-weight:500;line-height:1.6;color:var(--muted);background:transparent}
.app-shell.masna-refresh[data-theme] .marine-nav-group button>svg{width:20px;height:20px;flex-shrink:0}
.app-shell.masna-refresh[data-theme] .marine-nav-group button:hover{background:var(--field);color:var(--ink)}
.app-shell.masna-refresh[data-theme] .marine-nav-group button.selected{background:var(--surface);border-color:var(--line);color:var(--accent);box-shadow:0 2px 4px #20273304;font-weight:600}
.app-shell.masna-refresh[data-theme] .marine-nav-group button.selected>svg:last-child{width:15px;height:15px}
.app-shell[data-theme] .sidebar-appearance .appearance-value{margin-right:auto;font-size:14px;font-weight:500;background:var(--field);padding:3px 9px;border-radius:6px;color:var(--muted)}
.app-shell.masna-refresh[data-theme] .sidebar-appearance{padding:11px 12px;gap:10px;border:1px solid var(--line);border-radius:11px;min-height:46px;font-size:14px;color:var(--muted);background:var(--surface);margin-bottom:16px}
.app-shell.masna-refresh[data-theme] .marine-account{padding:16px 0 0;gap:8px;border-top:1px solid var(--line);align-items:center}
.app-shell.masna-refresh[data-theme] .marine-avatar{width:36px;height:36px;min-width:36px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);font-size:15px;font-weight:600}
.app-shell.masna-refresh[data-theme] .marine-account-details{gap:9px;align-items:center}
.app-shell.masna-refresh[data-theme] .marine-account-details b{font-size:14px;line-height:1.8;font-weight:600;max-width:none;color:var(--ink)}
.app-shell.masna-refresh[data-theme] .marine-account-details small{font-size:14px;line-height:1.7;color:var(--muted)}
.app-shell.masna-refresh[data-theme] .marine-account>a{padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted)}

/* Two distinct craft groups; each keeps its two original independent actions. */
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-inspection-group{grid-area:inspection;padding:0;margin:0;min-width:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-inspection-heading{margin:0 0 15px;align-items:center;gap:8px;flex-wrap:wrap}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-inspection-heading h2{font-size:20px;line-height:1.7;font-weight:700}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-inspection-heading>span{font-size:14px;line-height:1.7;color:var(--muted)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-grid{gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card{border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card>header{padding:17px 16px;gap:11px;min-height:70px;background:var(--surface);border-bottom:1px solid var(--line)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card>header>svg{width:27px;height:27px;flex-shrink:0}
.app-shell.masna-refresh.home-preview-shell[data-theme=light] .craft-inspection-card>header>svg{color:#000}
.app-shell.masna-refresh.home-preview-shell[data-theme=dark] .craft-inspection-card>header>svg{color:#fff}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card h3{font-size:18px;line-height:1.6;font-weight:700;margin:0}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decisions{padding:0 16px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision{display:grid;grid-template-columns:1fr;gap:12px;padding:16px 0}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision+.craft-decision{border-top:1px solid var(--line)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-counter{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-counter>span{font-size:14px;line-height:1.8;font-weight:500;color:var(--green)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision.denied .craft-counter>span{color:var(--red)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-counter>strong{font-size:25px;line-height:1.4;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-add{width:100%;min-width:0;min-height:44px;font-size:14px;line-height:1.8;font-weight:600;gap:7px;padding:9px 10px;border:1px solid var(--action);border-radius:10px;background:var(--action);color:#fff;box-shadow:none}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-add:hover{background:var(--action-hover);border-color:var(--action-hover)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision.denied .craft-add{background:var(--danger);border-color:var(--danger);color:#fff}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision.denied .craft-add:hover{filter:brightness(.94)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-add:disabled{opacity:.55}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-add[aria-busy=true]{opacity:1}
.app-shell.masna-refresh.home-preview-shell[data-theme] .console-ledger{padding:13px 3px 0;gap:9px;font-size:14px;font-weight:500;color:var(--accent)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .console-ledger b{font-size:14px;font-weight:400;color:var(--muted)}

/* A compact roster table with a calm, consistent footer. */
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-crew-group{grid-area:crew;min-width:0;margin:0;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
.app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-roster{background:var(--surface);border:0;border-radius:0;box-shadow:none}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-aligned.roster-tabular .roster-toolbar{padding:16px 18px;border-bottom:1px solid var(--line);background:var(--surface);gap:12px;min-height:70px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-toolbar h2{font-size:18px;line-height:1.7;font-weight:700}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-add-toggle{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--accent)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-add-toggle:hover{background:var(--accent-soft);border-color:var(--accent-soft)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-add-options{top:42px;background:var(--surface);border-color:var(--line);border-radius:11px;box-shadow:0 8px 24px #0002}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-add-options button{min-height:44px;font-size:14px;line-height:1.8}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-table .roster-number-col{width:38px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-table .roster-rank-col{width:105px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-table th{font-size:14px;font-weight:500;line-height:1.8;padding-top:9px;padding-bottom:9px;background:var(--surface-2);color:var(--muted)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-table td{padding-top:12px;padding-bottom:12px;border-color:var(--line)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-table td.roster-number-cell{font-size:14px;color:var(--muted)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-aligned.roster-tabular .roster-table .roster-name-field textarea,
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-aligned.roster-tabular .roster-table .roster-name-field .roster-name-measure{font-family:inherit;font-size:16px;line-height:2;min-height:32px;font-weight:500;color:var(--ink)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-aligned.roster-tabular .roster-table .roster-rank-cell .roster-name-field textarea,
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-aligned.roster-tabular .roster-table .roster-rank-cell .roster-name-measure{font-size:15px;font-weight:700;line-height:2.1333}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-table .roster-role-caption{font-size:14px;line-height:1.8;color:var(--ink);margin-top:0}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-footer{display:flex;flex-direction:column;align-items:stretch;padding:14px 16px;gap:13px;background:var(--surface-2);border-top:1px solid var(--line)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-remember{justify-content:space-between;flex-direction:row-reverse;gap:10px;min-height:28px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-remember b{font-size:14px;line-height:1.8;font-weight:500;color:var(--ink)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-switch{width:38px;height:24px;background:#919ba8}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-switch:after{width:20px;height:20px;top:2px;right:2px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-remember input:checked+.roster-switch{background:#30a866}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-remember input:checked+.roster-switch:after{transform:translateX(-14px)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-footer>div{margin:0;width:100%;display:flex;flex-direction:column;gap:7px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-state{display:none}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-save{width:100%;min-height:42px;padding:9px 12px;border-radius:9px;font-size:14px;font-weight:600;border:1px solid var(--action);background:var(--action);color:#fff}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-save:disabled{border:1px solid var(--line);background:var(--surface);color:var(--muted);opacity:1}

/* Daily totals and the report link share one compact section. */
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-summary{grid-area:summary;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}
.app-shell.masna-refresh.home-preview-shell[data-theme] .totals-heading{padding:15px 18px;margin:0;background:var(--surface);border-bottom:1px solid var(--line);gap:8px;flex-wrap:wrap}
.app-shell.masna-refresh.home-preview-shell[data-theme] .totals-heading h2{font-size:18px;font-weight:700;line-height:1.7}
.app-shell.masna-refresh.home-preview-shell[data-theme] .totals-heading>span{font-size:14px;line-height:1.8;color:var(--muted)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-totals{padding:19px 0;background:var(--surface);grid-template-columns:repeat(3,minmax(0,1fr))}
.app-shell.masna-refresh.home-preview-shell[data-theme] .daily-total{padding:0 18px;gap:8px;border-color:var(--line)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .daily-total>span:nth-child(2){font-size:14px;line-height:1.8;font-weight:500;color:var(--muted)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .daily-total strong{font-size:24px;font-weight:600;line-height:1.5;color:var(--ink)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .daily-total.allowed strong{color:var(--green)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .daily-total.denied strong{color:var(--red)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-report-action{padding:13px 18px;min-height:50px;gap:10px;font-size:14px;line-height:1.8;font-weight:600;background:var(--surface-2);color:var(--ink);border-color:var(--line)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-report-action>svg:first-child{color:var(--accent);width:19px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-report-action>svg:last-child{width:17px;color:var(--muted)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-report-action:hover{background:var(--accent-soft)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-footnote{grid-area:footnote;margin:0;padding:2px 2px 0;font-size:14px;line-height:1.8;color:var(--muted)}

/* Form, feedback and navigation controls use the same measurements. */
.app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-denial{margin-top:15px;padding:18px;gap:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .denial-caption{gap:10px;padding-bottom:12px;align-items:center}
.app-shell.masna-refresh.home-preview-shell[data-theme] .denial-caption>span{font-size:17px;font-weight:700}
.app-shell.masna-refresh.home-preview-shell[data-theme] .denial-caption small{font-size:14px;background:var(--red-soft);color:var(--red);border-radius:6px;padding:4px 8px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .denial-fields{gap:14px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-denial label{font-size:14px;font-weight:500;color:var(--ink);gap:7px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-denial :is(input,select,textarea){background:var(--surface-2);border:1px solid var(--line);border-radius:9px;color:var(--ink);font-size:16px;min-height:46px;padding:10px 12px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-denial summary{font-size:14px;color:var(--muted)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-denial footer{padding-top:14px;gap:9px;border-color:var(--line)}
.app-shell.masna-refresh.home-preview-shell[data-theme] :is(.denial-save,.denial-cancel){border-radius:9px;min-height:44px;font-size:14px;line-height:1.8;font-weight:600;padding:9px 17px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .denial-save{border:1px solid var(--danger);background:var(--danger);color:#fff}
.app-shell.masna-refresh.home-preview-shell[data-theme] .denial-save:disabled{background:var(--field);border-color:var(--line);color:var(--muted);opacity:1}
.app-shell.masna-refresh.home-preview-shell[data-theme] .denial-cancel{background:var(--field);color:var(--muted)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-retry{background:var(--surface);border-color:var(--red);border-radius:12px;padding:16px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-retry :is(b,p,button){font-size:14px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .toast{border-radius:13px;font-size:14px;padding:13px 16px;box-shadow:0 8px 25px #0002}
.app-shell.masna-refresh.home-preview-shell[data-theme] :is(.modal,.report-modal){border-radius:18px;border-color:var(--line);background:var(--surface)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .modal-heading{padding:18px 22px;background:var(--surface);border-color:var(--line)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .modal-heading h2{font-size:20px;font-weight:700}
.app-shell.masna-refresh.home-preview-shell[data-theme] .btn{min-height:44px;border-radius:10px;font-size:14px;font-weight:600}

@media(max-width:1199px){
 .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-home{grid-template-columns:minmax(0,1fr);grid-template-areas:'heading' 'crew' 'inspection' 'summary' 'footnote';gap:22px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .content{padding:28px 26px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .roster-footer{flex-direction:row;align-items:center;gap:18px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .roster-remember{flex:1}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .roster-footer>div{width:auto;min-width:150px}
}
@media(max-width:900px){
 .app-shell.masna-refresh.home-preview-shell[data-theme] .workspace{margin:0!important}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .marine-sidebar{display:none}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .workspace>.topbar{display:flex!important;height:72px;min-height:72px;padding:12px 24px;background:var(--surface);border-bottom:1px solid var(--line);box-shadow:none;backdrop-filter:none;gap:14px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .header-brand{display:flex;align-items:center;gap:9px;color:var(--ink);min-width:0}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .header-brand>svg{width:23px;height:23px;color:var(--ink)}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .header-brand b{font-size:27px;font-weight:700;line-height:1.4;color:var(--ink);letter-spacing:0}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .topbar .topbar-actions{gap:9px;margin-right:auto}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .topbar :is(.theme-toggle,.site-select){border:1px solid var(--line);border-radius:11px;background:var(--surface-2);min-height:40px;box-shadow:none}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .topbar .theme-toggle{width:40px;height:40px;color:var(--ink)}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .site-select{padding:6px 10px;gap:6px;color:var(--muted)}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .site-select select{font-size:14px;font-weight:600;color:var(--ink);max-width:150px;padding:0}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .content{padding:24px 24px 110px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-location{display:none}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-eyebrow{display:none}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading{padding-bottom:18px;margin-bottom:0}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading h1{font-size:27px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-tabbar{display:flex;background:var(--surface);border-top:1px solid var(--line);padding:8px 12px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -3px 15px #00000003}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-tabbar button{min-height:48px;gap:5px;font-size:14px;line-height:1.5;font-weight:500;color:var(--muted);border-radius:10px;padding:4px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-tabbar button svg{width:21px;height:21px;box-shadow:none;background:transparent;border-radius:0}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-tabbar button.selected{color:var(--accent);font-weight:700;background:var(--accent-soft)}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-tabbar button.selected svg{box-shadow:none;background:none}
}
@media(max-width:600px){
 .app-shell.masna-refresh.home-preview-shell[data-theme] .content{padding:20px 16px 108px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-home{gap:20px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .workspace>.topbar{height:66px;min-height:66px;padding:10px 16px;gap:10px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .header-brand{gap:7px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .header-brand b{font-size:25px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .header-brand>svg{width:21px;height:21px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .topbar .topbar-actions{gap:7px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .site-select select{max-width:108px;font-size:14px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .site-select>svg{width:15px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading h1{font-size:24px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading p{font-size:14px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-inspection-heading h2{font-size:18px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-inspection-heading>span{font-size:14px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-grid{grid-template-columns:1fr;gap:14px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card>header{min-height:63px;padding:14px 16px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card h3{font-size:18px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .craft-counter{justify-content:flex-start;gap:12px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .craft-counter>strong{font-size:23px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .craft-counter>span{font-size:14px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .craft-add{width:auto;min-width:132px;min-height:44px;padding:9px 12px;font-size:14px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .roster-aligned.roster-tabular .roster-toolbar{padding:14px 14px;min-height:65px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .roster-toolbar h2{font-size:18px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .roster-table .roster-number-col{width:32px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .roster-table .roster-rank-col{width:108px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .roster-table td{padding-top:11px;padding-bottom:11px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .roster-footer{flex-direction:column;align-items:stretch;padding:12px 14px;gap:12px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .roster-footer>div{width:100%}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .roster-remember{flex:auto}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .totals-heading{padding:14px 16px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .totals-heading h2{font-size:18px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-totals{padding:18px 0}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .daily-total{padding:0 12px;gap:7px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .daily-total>span:nth-child(2){font-size:13px;white-space:normal}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .daily-total strong{font-size:23px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-report-action{padding:13px 16px;font-size:14px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-denial{padding:16px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .denial-fields{grid-template-columns:1fr}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-denial footer{justify-content:stretch}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .denial-save{flex:1}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-tabbar{padding-left:8px;padding-right:8px;gap:3px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-tabbar button{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.app-shell.masna-refresh.home-preview-shell[data-theme] button{transition:none}}
/* === marine-identity.css === */
/* Masna studio: restrained ink, aligned section titles and quiet surfaces. */
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme]{
 --bg:#f2f4f7;--surface:#fff;--surface-2:#f8f9fb;--field:#eef2f6;
 --ink:#1d2c3b;--muted:#5f6f7e;--line:#e0e6ed;--accent:#245b80;--accent-hover:#163f5e;
 --accent-soft:#e7f0f7;--action:#173f61;--action-hover:#0c2e49;--danger:#b43e4d;
 --red:#a93647;--red-soft:#faeef1;--green:#267252;
 --nav:#112638;--nav-panel:#1a3449;--nav-line:#304d63;--nav-text:#f4f8fb;--nav-muted:#b8cad8;
 --shadow:0 3px 14px #172b3e04;background:var(--bg);color:var(--ink);
}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme=dark]{
 --bg:#111a23;--surface:#192632;--surface-2:#1e2e3c;--field:#253746;
 --ink:#edf4f9;--muted:#b4c5d2;--line:#344958;--accent:#a3cee8;--accent-hover:#d6eaf6;
 --accent-soft:#2a465b;--action:#315f80;--action-hover:#3f7598;--danger:#ae4150;
 --red:#f2a6b2;--red-soft:#412c37;--green:#96d4b6;
 --nav:#0b1824;--nav-panel:#172e40;--nav-line:#2b465a;--nav-text:#f1f7fa;--nav-muted:#b3c8d9;--shadow:none;
}
/* A quiet, independent navigation rail. */
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-sidebar{background:var(--nav);border-color:var(--nav-line);box-shadow:none}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-brand b{color:var(--nav-text);font-weight:700}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-brand small{color:var(--nav-muted)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-emblem{background:var(--nav-panel);border:1px solid var(--nav-line);color:var(--nav-text);border-radius:14px;box-shadow:none}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-site-picker{background:var(--nav-panel);border:1px solid var(--nav-line);border-radius:12px}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-site-picker>label{color:var(--nav-muted)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-site-picker :is(select,svg){color:var(--nav-text)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-site-picker option{background:var(--nav);color:var(--nav-text)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-nav-group h2{color:var(--nav-muted);font-weight:400}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-nav-group button{color:var(--nav-muted);background:transparent;border-color:transparent;border-radius:11px}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-nav-group button:hover{background:var(--nav-panel);color:var(--nav-text)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-nav-group button.selected{background:#284960;color:#fff;border-color:#3a5c74;box-shadow:none;font-weight:600}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .sidebar-appearance{background:transparent;color:var(--nav-muted);border:1px solid var(--nav-line);border-radius:11px}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .sidebar-appearance:hover{background:var(--nav-panel)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .sidebar-appearance .appearance-value{background:var(--nav-panel);color:var(--nav-text)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-account{border-color:var(--nav-line)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-account-details b{color:var(--nav-text)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-account-details small{color:var(--nav-muted)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-avatar{background:var(--nav-panel);border-color:var(--nav-line);color:var(--nav-text)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .marine-account>a{background:transparent;border-color:var(--nav-line);color:var(--nav-muted)}

/* Titles live on the canvas; the cards begin on one shared baseline. */
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading{padding:0 2px 8px;margin:0 0 2px;background:none;border:0;border-radius:0;box-shadow:none}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-eyebrow{display:none}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading h1{font-size:28px;line-height:1.55;font-weight:700;letter-spacing:0;color:var(--ink);margin-bottom:7px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading p{color:var(--muted);font-size:14px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-location{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:11px;box-shadow:none}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-inspection-heading{min-height:38px;margin:0 0 15px;align-items:center}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-inspection-heading h2{font-size:19px;font-weight:700;color:var(--ink)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-inspection-heading>span{font-size:14px;color:var(--muted)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-crew-group{background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .roster-aligned.roster-tabular{background:transparent;border:0;border-radius:0;overflow:visible;box-shadow:none}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .roster-aligned.roster-tabular .roster-toolbar{min-height:38px;padding:0 2px;margin:0 0 15px;gap:12px;background:transparent;border:0}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .roster-toolbar h2{font-size:19px;font-weight:700;color:var(--ink)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .roster-add-toggle{height:36px;width:36px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--accent)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .roster-add-toggle:hover{background:var(--accent-soft);border-color:var(--accent-soft)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .roster-table{border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-bottom:0;border-radius:16px 16px 0 0;overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .roster-table th{background:var(--surface-2);color:var(--muted);border-color:var(--line);font-weight:500;padding-top:11px;padding-bottom:11px}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .roster-table th:first-child{border-top-right-radius:15px}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .roster-table th:last-child{border-top-left-radius:15px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .roster-table td{background:var(--surface);padding-top:13px;padding-bottom:13px}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .roster-tabular .roster-footer{border:1px solid var(--line);border-radius:0 0 16px 16px;background:var(--surface-2);padding:14px 16px}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .roster-save:disabled{background:var(--surface);color:var(--muted);border-color:var(--line);opacity:1}

/* White, independent craft cards with a consistent action hierarchy. */
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-grid{gap:18px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card{border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card>header{min-height:72px;padding:17px 18px;gap:12px;background:transparent;border-bottom:1px solid var(--line)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card>header>svg{box-sizing:content-box;width:24px;height:24px;padding:7px;background:var(--field);border:0;border-radius:11px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card h3{font-size:18px;font-weight:600;color:var(--ink)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decisions{padding:0 18px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision{padding:17px 0;gap:12px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-counter>span{font-size:14px;font-weight:500}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-counter>strong{min-width:0;min-height:0;padding:0;background:transparent;border-radius:0;font-size:25px;font-weight:500;line-height:1.4;color:var(--ink)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-add{min-height:46px;border-radius:11px;border-color:var(--action);background:var(--action);color:#fff;font-weight:600;box-shadow:none}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-add:hover{background:var(--action-hover)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision.denied .craft-add{background:var(--danger);border-color:var(--danger);color:#fff}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-add>svg{width:18px;height:18px}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-add:active{transform:translateY(1px)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .console-ledger{padding:14px 2px 0;color:var(--accent)}

/* The report is a grouped list, with one restrained secondary action. */
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-summary{border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);background:var(--surface)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .totals-heading{padding:17px 20px;background:transparent;border-color:var(--line)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .totals-heading h2{font-size:18px;font-weight:700;color:var(--ink)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .totals-heading>span{font-size:14px;color:var(--muted)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-totals{padding:22px 0}
.app-shell.masna-refresh.home-preview-shell[data-theme] .daily-total>span:nth-child(2){color:var(--muted)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .daily-total strong{font-size:24px;font-weight:500}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-report-action{min-height:52px;padding:14px 20px;background:var(--surface-2);border-color:var(--line);color:var(--ink);font-weight:600}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-report-action>svg:first-child{color:var(--accent)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-report-action>svg:last-child{color:var(--muted)}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-report-action:hover{background:var(--accent-soft)}

/* Shared chrome and dialogs stay quiet on every page. */
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .workspace>.topbar{background:var(--surface);border-color:var(--line)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .header-brand,
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .header-brand b,
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .header-brand>svg{color:var(--ink)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .breadcrumb{color:var(--ink)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .breadcrumb span{color:var(--muted)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .topbar :is(.theme-toggle,.site-select){background:var(--field);border:1px solid var(--line);color:var(--ink);border-radius:11px}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .topbar .site-select select{color:var(--ink)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .topbar .top-avatar{background:var(--field);color:var(--muted)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] :is(.panel-heading,.modal-heading){background:var(--surface);border-color:var(--line);color:var(--ink)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] :is(.panel-heading,.modal-heading) h2{color:var(--ink)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .panel-heading>div>span,
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .modal-heading .eyebrow{color:var(--muted)!important}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .modal-heading .icon-button{color:var(--muted)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .modal-heading .icon-button:hover{background:var(--field);color:var(--ink)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] :is(.btn.primary,.roster-save:not(:disabled)){background:var(--action);border-color:var(--action);color:#fff}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] :is(.btn.primary,.roster-save:not(:disabled)):hover{background:var(--action-hover)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .records th{background:var(--surface-2);color:var(--muted);font-weight:500}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .segmented .selected{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px #0000000d}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] :is(.harbor-tabbar,.mobile-nav){background:var(--surface);border-color:var(--line)}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .harbor-tabbar button.selected,
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .mobile-nav button.active{background:var(--accent-soft);color:var(--accent);border-radius:11px}
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .harbor-tabbar button.selected svg,
:is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .mobile-nav button.active svg{background:none;box-shadow:none;color:var(--accent)}
/* The same proportions, typography and surfaces extend through the workspace. */
.app-shell.masna-refresh[data-theme]{font-family:'Cairo',sans-serif;font-size:16px;line-height:1.8}
.app-shell.masna-refresh[data-theme] .workspace{margin-right:240px!important}
.app-shell.masna-refresh[data-theme] .content{max-width:1320px;padding:32px 32px 28px}
.app-shell.masna-refresh[data-theme] .workspace>.topbar{box-shadow:none;backdrop-filter:none}
.app-shell.masna-refresh[data-theme] .page-heading{align-items:center;gap:18px;margin-bottom:25px}
.app-shell.masna-refresh[data-theme] .page-heading h1{font-size:28px;line-height:1.55;letter-spacing:0;font-weight:700;color:var(--ink)}
.app-shell.masna-refresh[data-theme] .page-heading .eyebrow{font-size:14px;line-height:1.8;margin-bottom:7px;color:var(--muted)}
.app-shell.masna-refresh[data-theme] .page-heading .eyebrow>.dot{display:none}
.app-shell.masna-refresh[data-theme] :is(.panel,.stat,.day-card,.more-links,.more-account,.modal){border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);color:var(--ink)}
.app-shell.masna-refresh[data-theme] .stats{gap:18px;margin-bottom:22px}
.app-shell.masna-refresh[data-theme] .stat{padding:19px 20px;align-items:flex-start;gap:12px;min-width:0}
.app-shell.masna-refresh[data-theme] .stat strong{font-size:27px;font-weight:500;line-height:1.55;margin:7px 0;color:var(--ink)}
.app-shell.masna-refresh[data-theme] .stat>div>span{font-size:15px;color:var(--ink)!important;font-weight:500}
.app-shell.masna-refresh[data-theme] .stat small{font-size:14px;line-height:1.8;color:var(--muted)}
.app-shell.masna-refresh[data-theme] :is(.stat-icon,.vessel-icon,.vessel-icon.jet,.mini-icon,.more-icon){background:var(--field)!important;color:var(--ink)!important;border:0;box-shadow:none;border-radius:11px}
.app-shell.masna-refresh[data-theme] .stat-icon{width:38px;height:38px;min-width:38px}
.app-shell.masna-refresh[data-theme] .stat-icon svg{width:21px;height:21px}
.app-shell.masna-refresh[data-theme] .panel-heading{padding:18px 20px;gap:15px;min-height:70px}
.app-shell.masna-refresh[data-theme] .panel-heading h2{font-size:19px;font-weight:700;line-height:1.7;color:var(--ink)}
.app-shell.masna-refresh[data-theme] .panel-heading>div>span{display:block;margin-top:3px;font-size:14px}
.app-shell.masna-refresh[data-theme] .toolbar{padding:18px 20px;gap:13px;align-items:center}
.app-shell.masna-refresh[data-theme] :is(.search,.segmented){background:var(--field);border:1px solid var(--line);border-radius:11px;color:var(--muted)}
.app-shell.masna-refresh[data-theme] .search{min-height:46px;padding:8px 12px}
.app-shell.masna-refresh[data-theme] .search input{font-size:15px;color:var(--ink)}
.app-shell.masna-refresh[data-theme] .segmented{padding:4px;gap:2px}
.app-shell.masna-refresh[data-theme] .segmented button{padding:7px 13px;min-height:36px;border-radius:8px;font-size:14px}
.app-shell.masna-refresh[data-theme] .btn{min-height:46px;padding:10px 16px;border-radius:11px;font-size:14px;line-height:1.8;font-weight:600;box-shadow:none}
.app-shell.masna-refresh[data-theme] .btn.primary{background:var(--action);border:1px solid var(--action);color:#fff}
.app-shell.masna-refresh[data-theme] .btn.primary:hover{background:var(--action-hover);border-color:var(--action-hover)}
.app-shell.masna-refresh[data-theme] .btn.subtle{background:var(--surface-2);border:1px solid var(--line);color:var(--ink)}
.app-shell.masna-refresh[data-theme] .btn.danger{background:var(--danger);color:#fff}
.app-shell.masna-refresh[data-theme] .records th{padding:13px 18px;font-size:14px;background:var(--surface-2);border-color:var(--line)}
.app-shell.masna-refresh[data-theme] .records td{padding:16px 18px;font-size:15px;color:var(--ink);border-color:var(--line)}
.app-shell.masna-refresh[data-theme] .records tr:hover td{background:var(--surface-2)}
.app-shell.masna-refresh[data-theme] .vessel-cell{gap:11px}
.app-shell.masna-refresh[data-theme] .vessel-cell b{font-size:15px;font-weight:600;color:var(--ink)}
.app-shell.masna-refresh[data-theme] :is(.vessel-cell small,.reason-cell,.note-cell,.time-cell,.records td>small){font-size:14px;line-height:1.8;color:var(--muted)}
.app-shell.masna-refresh[data-theme] .badge{font-size:14px;padding:4px 9px;border-radius:7px;font-weight:500;white-space:nowrap}
.app-shell.masna-refresh[data-theme] .icon-button{color:var(--muted);border-radius:9px;min-height:36px;min-width:36px}
.app-shell.masna-refresh[data-theme] .archive-filter{padding:21px;gap:20px}
.app-shell.masna-refresh[data-theme] .archive-filter h2{font-size:19px;color:var(--ink)}
.app-shell.masna-refresh[data-theme] .date-fields{gap:12px;align-items:end}
.app-shell.masna-refresh[data-theme] :is(.field input,.field select,.field textarea,.date-fields input){background:var(--field);color:var(--ink);border:1px solid var(--line);border-radius:11px;min-height:46px;font-size:16px;box-shadow:none}
.app-shell.masna-refresh[data-theme] .archive-days{gap:16px}
.app-shell.masna-refresh[data-theme] .day-card{padding:17px;gap:14px}
.app-shell.masna-refresh[data-theme] :is(.day-card b,.saved-reports b,.member-info b,.audit-list b){font-size:16px;color:var(--ink);font-weight:600}
.app-shell.masna-refresh[data-theme] :is(.day-card small,.saved-reports small,.member-info small,.audit-list p,.audit-list small){font-size:14px;color:var(--muted);line-height:1.8}
.app-shell.masna-refresh[data-theme] .date-tile{background:var(--field);color:var(--ink);border-radius:11px}
.app-shell.masna-refresh[data-theme] .date-tile b{font-size:23px;font-weight:500}
.app-shell.masna-refresh[data-theme] :is(.saved-reports>button,.members-list>div,.audit-list>div){padding:18px 20px;border-color:var(--line);gap:13px}
.app-shell.masna-refresh[data-theme] .site-card{padding:21px}
.app-shell.masna-refresh[data-theme] .site-card h2{font-size:21px;line-height:1.8;color:var(--ink)}
.app-shell.masna-refresh[data-theme] .site-stats{padding:17px 0;margin:17px 0;border-color:var(--line)}
.app-shell.masna-refresh[data-theme] .site-stats b{font-size:24px;line-height:1.5;font-weight:500}
.app-shell.masna-refresh[data-theme] .add-site{border:1px dashed var(--line);border-radius:16px;background:var(--surface-2);color:var(--muted)}
.app-shell.masna-refresh[data-theme] .add-site b{font-size:17px;color:var(--ink)}
.app-shell.masna-refresh[data-theme] .more-page{max-width:860px;margin:0 auto}
.app-shell.masna-refresh[data-theme] .more-links>button{padding:17px 20px;gap:14px;min-height:78px;border-color:var(--line)}
.app-shell.masna-refresh[data-theme] .more-links>button>b{font-size:16px;font-weight:600;color:var(--ink)}
.app-shell.masna-refresh[data-theme] .more-links>button:hover{background:var(--surface-2)}
.app-shell.masna-refresh[data-theme] .more-icon{width:40px;height:40px;display:grid;place-items:center}
.app-shell.masna-refresh[data-theme] .more-account{padding:18px 20px;margin-top:18px}
.app-shell.masna-refresh[data-theme] :is(.info-box,.access-notice){background:var(--surface-2);border-color:var(--line);color:var(--muted)}
.app-shell.masna-refresh[data-theme] .empty{padding:35px 20px;color:var(--muted)}
.app-shell.masna-refresh[data-theme] .empty b{font-size:17px;color:var(--ink)}
.app-shell.masna-refresh[data-theme] .empty p{font-size:14px;line-height:1.8}
.app-shell.masna-refresh[data-theme] .modal-heading{padding:19px 22px}
.app-shell.masna-refresh[data-theme] .modal-heading h2{font-size:21px;line-height:1.7;font-weight:700}
.app-shell.masna-refresh[data-theme] .modal-body{padding:22px;font-size:15px}
.app-shell.masna-refresh[data-theme] :is(.modal-footer,.report-toolbar){background:var(--surface-2);border-color:var(--line);padding:16px 22px}
.app-shell.masna-refresh[data-theme] .footer{font-size:14px;color:var(--muted);padding-top:26px}
/* The role sits at the outside edge, alongside the name rather than beneath it. */
.app-shell.masna-refresh[data-theme] .roster-name-content{display:flex;align-items:center;gap:12px;min-width:0}
.app-shell.masna-refresh[data-theme] .roster-name-content>label{flex:1;min-width:0}
.app-shell.masna-refresh[data-theme] .roster-table .roster-role-caption{display:inline-flex;align-items:center;flex-shrink:0;margin:0;padding:3px 8px;border:1px solid var(--line);border-radius:7px;background:var(--surface-2);color:var(--ink);font-size:13px;line-height:1.8;font-weight:600;white-space:nowrap}
@media(max-width:900px){
 .app-shell.masna-refresh[data-theme] .workspace{margin:0!important}
 .app-shell.masna-refresh[data-theme] .content{padding:24px 24px 112px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading{padding:0 0 3px;margin-bottom:0;border:0;background:none;border-radius:0;box-shadow:none}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading h1{font-size:26px;color:var(--ink)}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading p{color:var(--muted)}
}
@media(max-width:600px){
 .app-shell.masna-refresh[data-theme] .content{padding:20px 16px 110px}
 .app-shell.masna-refresh[data-theme] .page-heading{align-items:flex-start;flex-wrap:wrap;margin-bottom:22px;gap:14px}
 .app-shell.masna-refresh[data-theme] .page-heading h1{font-size:24px}
 .app-shell.masna-refresh[data-theme] .stats{gap:10px}
 .app-shell.masna-refresh[data-theme] .stat{padding:15px 12px;gap:8px}
 .app-shell.masna-refresh[data-theme] .stat strong{font-size:24px}
 .app-shell.masna-refresh[data-theme] .stat-icon{display:none}
 .app-shell.masna-refresh[data-theme] :is(.panel-heading,.toolbar,.archive-filter,.site-card){padding:16px}
 .app-shell.masna-refresh[data-theme] .panel-heading{flex-wrap:wrap}
 .app-shell.masna-refresh[data-theme] .panel-heading h2{font-size:18px}
 .app-shell.masna-refresh[data-theme] .toolbar .search{width:100%;flex-basis:100%}
 .app-shell.masna-refresh[data-theme] .toolbar .segmented{flex:1}
 .app-shell.masna-refresh[data-theme] .segmented button{padding:7px 10px;flex:1}
 .app-shell.masna-refresh[data-theme] .date-fields{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .app-shell.masna-refresh[data-theme] .date-fields .btn{grid-column:1/-1}
 .app-shell.masna-refresh[data-theme] :is(.members-list>div,.audit-list>div,.saved-reports>button){padding:16px;gap:10px}
 .app-shell.masna-refresh[data-theme] .members-list>div{flex-wrap:wrap}
 .app-shell.masna-refresh[data-theme] .member-info{min-width:0;flex:1}
 .app-shell.masna-refresh[data-theme] .member-info small{overflow-wrap:anywhere}
 .app-shell.masna-refresh[data-theme] .roster-name-content{gap:7px}
 .app-shell.masna-refresh[data-theme] .roster-table .roster-role-caption{padding:2px 6px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading h1{font-size:24px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card>header{min-height:64px;padding:13px 16px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card>header>svg{width:23px;height:23px;padding:6px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decisions{padding:0 16px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision{padding:15px 0}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .craft-add{min-height:44px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-inspection-heading h2,
 :is(.app-shell.masna-refresh.home-preview-shell,.app-shell)[data-theme] .roster-toolbar h2{font-size:18px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-inspection-heading{align-items:center;gap:5px;min-height:38px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .totals-heading{padding:15px 16px}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-totals{padding:19px 0}
 .app-shell.masna-refresh.home-preview-shell[data-theme] .field-report-action{padding:13px 16px}
}

/* =========================================================
   CLEAN REFINED DESIGNS: ROSTER CARDS, EQUAL BUTTONS, PHONE HEADER
   ========================================================= */

/* Card-based Roster items */
.roster-cards-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 12px 14px !important;
  background: var(--surface) !important;
}
.roster-member-card {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  border-radius: 11px !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--line) !important;
}
.roster-member-card.is-supervisor {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line)) !important;
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface-2)) !important;
}
.roster-card-num {
  width: 24px !important;
  height: 24px !important;
  border-radius: 6px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
  flex-shrink: 0 !important;
}
.roster-member-card.is-supervisor .roster-card-num {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
}
.roster-card-rank-field {
  width: 95px !important;
  flex-shrink: 0 !important;
}
.roster-card-name-field {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.roster-card-input {
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  font-family: inherit !important;
  color: var(--ink) !important;
  outline: none !important;
  padding: 2px 4px !important;
}
.roster-card-input.rank {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
}
.roster-card-input.name {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}
.roster-member-card .roster-role-caption {
  padding: 2px 8px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.roster-row-remove-btn {
  width: 26px !important;
  height: 26px !important;
  border-radius: 7px !important;
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
  color: var(--muted) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease !important;
}
.roster-row-remove-btn:hover {
  background: var(--red-soft, #fef2f2) !important;
  color: var(--red, #ef4444) !important;
  border-color: var(--red, #ef4444) !important;
}

/* Polished Auto-Save Footer (Fixed & Unified) */
.roster-tabular .roster-footer {
  padding: 10px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: var(--surface-2) !important;
  border-top: 1px solid var(--line) !important;
  min-height: 44px !important;
  box-shadow: none !important;
}
.roster-footer-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--green) 12%, var(--surface)) !important;
  border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line)) !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin-right: auto !important;
}
.roster-status-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--green, #10b981) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 25%, transparent) !important;
}
.roster-status-dot.saving {
  background: #f59e0b !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25) !important;
}
.roster-status-text {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--green, #065f46) !important;
}
.roster-footer-count {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
}

/* Presets menu */
.roster-presets-menu {
  position: absolute;
  top: 42px;
  left: 0;
  z-index: 50;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.roster-preset-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: right !important;
  cursor: pointer !important;
}
.roster-preset-item:hover {
  background: var(--surface-2) !important;
  color: var(--accent) !important;
}
.roster-preset-item small {
  color: var(--muted) !important;
  font-size: 11px !important;
}

/* Craft action pair with equal, proportional buttons */
.craft-action-pair {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}
.craft-step-btn {
  width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid var(--line) !important;
  background: var(--surface-2) !important;
  color: var(--muted) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
}
.craft-step-btn:hover:not(:disabled) {
  background: var(--red-soft, #fef2f2) !important;
  color: var(--red, #ef4444) !important;
  border-color: var(--red, #ef4444) !important;
}
.craft-step-btn:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
}

/* Equal Proportional Craft Buttons on Phone */
body[data-device="phone"] .craft-action-pair {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
body[data-device="phone"] .craft-add {
  height: 42px !important;
  min-height: 42px !important;
  min-width: 112px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
}
body[data-device="phone"] .craft-step-btn {
  width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 10px !important;
  font-size: 19px !important;
}


body[data-device="phone"] .roster-tabular .roster-footer {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  min-height: 40px !important;
}
body[data-device="phone"] .roster-footer-status {
  padding: 3px 8px !important;
  font-size: 11px !important;
  margin-right: 0 !important;
}
body[data-device="phone"] .roster-footer-count {
  font-size: 11.5px !important;
}
body[data-device="phone"] .roster-cards-container {
  padding: 10px 10px !important;
  gap: 6px !important;
}
body[data-device="phone"] .roster-member-card {
  padding: 6px 10px !important;
  gap: 8px !important;
}
body[data-device="phone"] .roster-card-rank-field {
  width: 82px !important;
}

/* Fix Mobile Topbar Inset Inside Phone Frame (Never Clamped or Cut by Rounded Corners) */
body[data-device="phone"] .device-frame-phone {
  overflow-x: hidden !important;
}
body[data-device="phone"] .workspace > .topbar {
  height: 60px !important;
  min-height: 60px !important;
  padding: 12px 20px 8px 20px !important;
  box-sizing: border-box !important;
}

/* === NEW MARITIME COMMAND THEME & RESPONSIVE MULTI-LAYOUT SYSTEM === */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme="light"] {
  --bg: #e3ebf3;
  --bg-gradient: linear-gradient(180deg, #e7eef6 0%, #dce6f0 100%);
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --field: #e8eff6;
  --card-header-bg: #102a43;
  --card-header-text: #ffffff;
  --ink: #0b2239;
  --muted: #4a5d70;
  --line: #c8d5e3;
  --accent: #0f4c81;
  --accent-hover: #09355c;
  --accent-soft: #e3effb;
  --action: #0d5c75;
  --action-hover: #084357;
  --danger: #c83a4b;
  --red: #be2e3f;
  --red-soft: #fdf0f2;
  --green: #0b7a5c;
  --green-soft: #eaf8f3;
  --gold: #c6922c;
  --gold-soft: #fef8ec;
  --nav: #071d33;
  --nav-gradient: linear-gradient(180deg, #09233d 0%, #051628 100%);
  --nav-panel: rgba(255, 255, 255, 0.07);
  --nav-line: rgba(148, 184, 218, 0.16);
  --nav-text: #f8fbff;
  --nav-muted: #9cb5cc;
  --shadow: 0 8px 24px -6px rgba(11, 34, 57, 0.07), 0 2px 6px -1px rgba(11, 34, 57, 0.04);
  --shadow-lg: 0 16px 36px -10px rgba(11, 34, 57, 0.12);
  --boat-accent: #0f4c81;
  --boat-soft: #e6f0fa;
  --jet-accent: #0d7a8a;
  --jet-soft: #e5f6f8;
}

:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme="dark"] {
  --bg: #071320;
  --bg-gradient: radial-gradient(1100px 500px at 85% -10%, rgba(14, 165, 233, 0.12), transparent 65%),
                 radial-gradient(900px 400px at 10% 0%, rgba(16, 185, 129, 0.08), transparent 60%),
                 linear-gradient(180deg, #081523 0%, #050e18 100%);
  --surface: #0e2033;
  --surface-2: #152c44;
  --field: #1b3754;
  --card-header-bg: #173452;
  --card-header-text: #ffffff;
  --ink: #f0f6fc;
  --muted: #94aec8;
  --line: #213c58;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --action: #0284c7;
  --action-hover: #0369a1;
  --danger: #e11d48;
  --red: #fb7185;
  --red-soft: rgba(244, 63, 94, 0.14);
  --green: #34d399;
  --green-soft: rgba(16, 185, 129, 0.14);
  --gold: #fbbf24;
  --gold-soft: rgba(251, 191, 36, 0.14);
  --nav: #040d17;
  --nav-gradient: linear-gradient(180deg, #061322 0%, #030911 100%);
  --nav-panel: rgba(255, 255, 255, 0.06);
  --nav-line: rgba(148, 184, 218, 0.14);
  --nav-text: #f0f7ff;
  --nav-muted: #8aa5c0;
  --shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 20px 46px -10px rgba(0, 0, 0, 0.55);
  --boat-accent: #38bdf8;
  --boat-soft: rgba(56, 189, 248, 0.14);
  --jet-accent: #2dd4bf;
  --jet-soft: rgba(45, 212, 191, 0.14);
}

/* Palette 2: Lagoon Teal (المرسى الفيروزي) */
body[data-palette="lagoon"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme="light"] {
  --bg: #edf6f5;
  --bg-gradient: radial-gradient(1100px 480px at 85% -10%, rgba(13, 148, 136, 0.13), transparent 65%),
                 linear-gradient(180deg, #f2fbf9 0%, #e6f2f0 100%);
  --ink: #092c29;
  --muted: #4b6b68;
  --line: #cde2df;
  --accent: #0d746e;
  --accent-hover: #095752;
  --accent-soft: #dff4f1;
  --action: #0d746e;
  --action-hover: #085550;
  --card-header-bg: #0b3d3a;
  --nav: #062523;
  --nav-gradient: linear-gradient(180deg, #08302d 0%, #041918 100%);
  --boat-accent: #0d746e;
  --boat-soft: #e0f5f3;
  --jet-accent: #0284c7;
  --jet-soft: #e0f2fe;
}

/* Palette 3: Coast Guard Tactical (خفر السواحل التكتيكي) */
body[data-palette="coastguard"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme="light"] {
  --bg: #f4f3ef;
  --bg-gradient: radial-gradient(1100px 480px at 85% -10%, rgba(180, 120, 40, 0.10), transparent 65%),
                 linear-gradient(180deg, #f8f7f3 0%, #eceae2 100%);
  --surface: #ffffff;
  --surface-2: #f9f8f4;
  --field: #f0eee8;
  --ink: #162436;
  --muted: #5e6873;
  --line: #dedad0;
  --accent: #1b3b5c;
  --accent-hover: #10273f;
  --accent-soft: #e8eef5;
  --action: #1b3b5c;
  --action-hover: #112840;
  --card-header-bg: #182c42;
  --nav: #0f1d2d;
  --nav-gradient: linear-gradient(180deg, #15273c 0%, #0b1522 100%);
  --boat-accent: #1b3b5c;
  --boat-soft: #e8eef5;
  --jet-accent: #b4691e;
  --jet-soft: #fcf1e3;
}

:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] {
  background: var(--bg-gradient) !important;
  color: var(--ink);
}

/* =========================================================
   RIGHT SIDEBAR (DESKTOP) WITH INTEGRATED LAYOUT & THEME CONTROLS
   ========================================================= */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .marine-sidebar {
  width: 242px !important;
  background: var(--nav-gradient) !important;
  border-left: 1px solid var(--nav-line) !important;
  box-shadow: -8px 0 28px rgba(5, 20, 36, 0.12) !important;
  padding: 20px 14px 16px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .workspace {
  margin-right: 242px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .content {
  padding: 26px 26px 40px !important;
  max-width: 1340px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .marine-brand {
  margin: 0 4px 20px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .marine-site-picker {
  margin-bottom: 18px !important;
  padding: 10px 12px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .marine-nav-group {
  margin-bottom: 16px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .marine-emblem {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)) !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  color: #fbbf24 !important;
  border-radius: 14px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .marine-nav-group button.selected {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0.08)) !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
  color: #ffffff !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .marine-nav-group button.selected > svg:first-child {
  color: #fbbf24 !important;
}

/* =========================================================
   2. COLLAPSIBLE DROPDOWN BUTTONS FOR LAYOUT & THEME
      (IN RIGHT SIDEBAR ON DESKTOP & IN المزيد ON TABLET/PHONE)
   ========================================================= */
.sidebar-dropdown-group {
  margin-bottom: 10px;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .sidebar-dropdown-trigger {
  width: 100%;
  margin-bottom: 0 !important;
  cursor: pointer;
}
.sidebar-studio-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 6px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--nav-line);
  border-radius: 10px;
}
.sidebar-studio-pill {
  padding: 6px 4px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--nav-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}
.sidebar-studio-pill:hover {
  color: var(--nav-text);
  background: rgba(255, 255, 255, 0.12);
}
.sidebar-studio-pill.active {
  background: rgba(251, 191, 36, 0.20);
  border-color: rgba(251, 191, 36, 0.60);
  color: #fbbf24;
  font-weight: 700;
}

/* More Page Collapsible Dropdown Card (Tablet & Phone 'المزيد' Page) */
.more-studio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
@media (min-width: 901px) {
  body[data-device="browser"] .more-studio-card {
    display: none !important;
  }
}
.more-dropdown-group + .more-dropdown-group {
  border-top: 1px solid var(--line);
}
.more-dropdown-trigger {
  width: 100%;
  min-height: 72px;
  padding: 15px 18px;
  background: var(--surface);
  border: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
  cursor: pointer;
  color: var(--ink);
}
.more-dropdown-trigger:hover {
  background: var(--surface-2);
}
.more-dropdown-trigger > b {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}
.more-dropdown-trigger > b > small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.more-dropdown-badge {
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.more-studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 18px 16px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
.more-studio-btn {
  min-height: 42px;
  padding: 8px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.more-studio-btn.active {
  background: var(--action);
  border-color: var(--action);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(13, 92, 117, 0.22);
}

/* =========================================================
   4. RESPONSIVE LAYOUTS: حصيلة اليوم (summary) IS ALWAYS
      DIRECTLY BELOW تسجيل التفتيش (inspection)!
   ========================================================= */
.field-radar {
  grid-area: radar;
  margin-top: 0 !important;
}

/* Default & Narrow/Medium Screens (< 1280px):
   heading -> crew (أفراد المناوبة) -> inspection (تسجيل التفتيش) -> summary (حصيلة اليوم) -> radar -> footnote */
.app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-home {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-areas:
    "heading"
    "crew"
    "inspection"
    "summary"
    "radar"
    "footnote" !important;
  gap: 18px !important;
  align-items: start !important;
}

/* Layout 2: Field Priority (ميداني سريع) on < 1280px:
   inspection (تسجيل التفتيش) -> summary (حصيلة اليوم) -> crew -> radar */
body[data-device="browser"][data-layout="field"] .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-home {
  grid-template-columns: 1fr !important;
  grid-template-areas:
    "heading"
    "inspection"
    "summary"
    "crew"
    "radar"
    "footnote" !important;
}

/* Layout 3: Compact Board (مدمج متجاور) on < 1280px:
   crew -> inspection (تسجيل التفتيش) -> summary (حصيلة اليوم) -> radar */
body[data-device="browser"][data-layout="board"] .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-home {
  grid-template-columns: 1fr !important;
  grid-template-areas:
    "heading"
    "crew"
    "inspection"
    "summary"
    "radar"
    "footnote" !important;
}

/* In Tablet & Phone preview modes (and <= 900px viewports):
   ALWAYS: heading -> crew (أفراد المناوبة) -> inspection (تسجيل التفتيش) -> summary (حصيلة اليوم) -> radar */
body:is([data-device="tablet"], [data-device="phone"]) .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-home {
  grid-template-columns: 1fr !important;
  grid-template-areas:
    "heading"
    "crew"
    "inspection"
    "summary"
    "radar"
    "footnote" !important;
}

/* Desktop Screens (>= 1024px):
   Symmetric 2x2 Command Grid:
   Row 1: inspection (تسجيل التفتيش) + crew (أفراد المناوبة)
   Row 2: summary (حصيلة اليوم directly under تسجيل التفتيش) + radar (رصد أسباب المنع directly under أفراد المناوبة) */
@media (min-width: 1280px) {
  body[data-device="browser"][data-layout="command"] .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-home {
    grid-template-columns: minmax(520px, 1.35fr) minmax(380px, 1fr) !important;
    grid-template-areas:
      "heading heading"
      "inspection crew"
      "summary crew"
      "radar radar"
      "footnote footnote" !important;
    align-items: start !important;
  }
  body[data-device="browser"][data-layout="field"] .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-home {
    grid-template-columns: minmax(450px, 1.15fr) minmax(400px, 1fr) !important;
    grid-template-areas:
      "heading heading"
      "inspection inspection"
      "summary crew"
      "radar crew"
      "footnote footnote" !important;
    align-items: start !important;
  }
  body[data-device="browser"][data-layout="board"] .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-home {
    grid-template-columns: minmax(420px, 1fr) minmax(480px, 1.2fr) !important;
    grid-template-areas:
      "heading heading"
      "crew inspection"
      "crew summary"
      "radar radar"
      "footnote footnote" !important;
    align-items: start !important;
  }
}

/* =========================================================
   3 & 6. UNIFIED DESIGN ACROSS ALL PAGES & HEADINGS
   ========================================================= */
/* Hide redundant topbar on ALL pages when in Desktop Browser mode (> 900px) */
@media (min-width: 901px) {
  body[data-device="browser"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .workspace > .topbar {
    display: none !important;
  }
}

/* =========================================================
   SLIM MINIMALIST HEADER BAR (.ops-slim-bar)
   CLEAN SINGLE ROW WITH FEWER DETAILS & BALANCED ALIGNMENT
   ========================================================= */
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading.ops-slim-bar {
  grid-area: heading;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  padding: 13px 18px !important;
  box-shadow: var(--shadow) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 0 !important;
}
.ops-slim-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ops-slim-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--card-header-bg, #102a43);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ops-slim-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .ops-slim-title h1 {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}
.ops-slim-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.ops-slim-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ops-slim-site {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.ops-slim-site svg {
  color: var(--accent);
}
body:is([data-device="tablet"], [data-device="phone"]) .ops-slim-site {
  display: none !important;
}
.ops-slim-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.ops-slim-date svg {
  color: var(--accent);
}
.ops-slim-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--card-header-bg, #102a43);
  color: #ffffff;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ops-slim-btn:hover {
  opacity: 0.92;
}

/* Unified Slim Bar on ALL Pages (.field-heading AND .page-heading) */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.field-heading.ops-slim-bar, .page-heading.ops-slim-bar) {
  grid-area: heading;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  padding: 13px 18px !important;
  box-shadow: var(--shadow) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 0 0 20px !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading.ops-slim-bar {
  margin: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .ops-slim-title h1 {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}

/* Unified & Pixel-Aligned Roster Section (أفراد المناوبة) - Previous Design Restored */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-inspection-heading {
  min-height: 38px !important;
  margin: 0 0 14px !important;
  padding: 0 2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-crew-group,
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .ios-shift-page .harbor-roster {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden !important;
}

:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular {
  background: var(--surface) !important;
  border: 0 !important;
  box-shadow: none !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular .roster-toolbar {
  background: var(--card-header-bg, #102a43) !important;
  color: #ffffff !important;
  padding: 13px 18px !important;
  min-height: 62px !important;
  border-bottom: 1px solid var(--line) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular .roster-toolbar h2 {
  color: #ffffff !important;
  font-size: 17.5px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-add-toggle {
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-add-toggle:hover {
  background: rgba(255, 255, 255, 0.24) !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-table {
  border-collapse: collapse !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--surface) !important;
  box-shadow: none !important;
  height: auto !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-table .roster-number-col {
  width: 38px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-table .roster-rank-col {
  width: 98px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-table th {
  background: var(--surface-2) !important;
  color: var(--muted) !important;
  border-bottom: 1px solid var(--line) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  height: 38px !important;
  padding: 8px 10px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-table td {
  padding: 9px 10px !important;
  height: auto !important;
  background: var(--surface) !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular .roster-table .roster-name-field textarea,
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular .roster-table .roster-name-field .roster-name-measure {
  font-size: 15px !important;
  line-height: 1.4 !important;
  min-height: 22px !important;
  padding: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular .roster-table .roster-rank-cell .roster-name-field textarea,
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular .roster-table .roster-rank-cell .roster-name-measure {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  min-height: 22px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-name-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-table .roster-role-caption {
  padding: 2px 8px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  border-radius: 6px !important;
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)) !important;
  font-weight: 700 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-tabular .roster-footer {
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: var(--surface-2) !important;
  padding: 13px 16px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  box-shadow: none !important;
}
@media (max-width: 520px) {
  :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-tabular .roster-footer {
    flex-wrap: wrap !important;
  }
}

:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-remember {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer;
}
.roster-remember-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-remember-text b {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  line-height: 1.4 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-remember-text small {
  display: block !important;
  font-size: 12px !important;
  color: var(--muted) !important;
  line-height: 1.4 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-actions-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  margin-right: auto !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-state {
  display: inline-flex !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: var(--green-soft) !important;
  color: var(--green) !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-state.dirty {
  background: var(--gold-soft, #fef8ec) !important;
  color: #b45309 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-save {
  width: auto !important;
  min-width: 170px !important;
  min-height: 42px !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-save.is-saved:disabled {
  background: var(--surface) !important;
  color: var(--green) !important;
  border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line)) !important;
  opacity: 1 !important;
}

/* Unified Summary Card on Operations & Archive (.unified-summary-card) */
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .unified-summary-card {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden !important;
  margin-bottom: 20px !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .unified-summary-card .totals-heading {
  padding: 14px 18px !important;
  background: var(--card-header-bg, #102a43) !important;
  color: #ffffff !important;
  border-bottom: 1px solid var(--line) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .unified-summary-card .totals-heading h2 {
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .unified-summary-card .totals-heading > span {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 12.5px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .unified-summary-card .harbor-totals {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 16px !important;
  background: var(--surface) !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .unified-summary-card .daily-total {
  background: var(--surface-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 14px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 6px !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .unified-summary-card .daily-total .total-symbol {
  display: none !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .unified-summary-card .daily-total > span:nth-child(2) {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .unified-summary-card .daily-total strong {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .unified-summary-card .daily-total.allowed strong {
  color: var(--green) !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .unified-summary-card .daily-total.denied strong {
  color: var(--red) !important;
}

/* Unified Archive Filter & Records Table */
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .panel.archive-filter {
  padding: 0 !important;
  border-top: 1px solid var(--line) !important;
  overflow: hidden !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .archive-date-body {
  padding: 18px 20px !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .records th {
  background: var(--surface-2) !important;
  color: var(--muted) !important;
  font-weight: 700 !important;
  border-bottom: 1px solid var(--line) !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .date-tile {
  background: var(--card-header-bg, #102a43) !important;
  color: #ffffff !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .date-tile small {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Unified Page Heading Card (.field-heading on Home AND .page-heading on Operations, Archive, Shift, More) */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .page-heading {
  grid-area: heading;
  background: var(--surface) !important;
  color: var(--ink) !important;
  padding: 16px 20px !important;
  border-radius: 16px !important;
  border: 1px solid var(--line) !important;
  border-right: 5px solid var(--card-header-bg, var(--accent)) !important;
  box-shadow: var(--shadow) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin: 0 0 20px !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading {
  margin: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.field-eyebrow, .page-heading .eyebrow) {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
  border: 0 !important;
  padding: 2px 10px !important;
  border-radius: 6px !important;
  margin: 0 0 5px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.field-heading h1, .page-heading h1) {
  color: var(--ink) !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 3px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.field-heading p, .page-heading p) {
  color: var(--muted) !important;
  font-size: 13.5px !important;
  margin: 0 !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-location {
  background: var(--surface-2) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  padding: 7px 14px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-location svg {
  color: var(--accent) !important;
}
body:is([data-device="tablet"], [data-device="phone"]) .app-shell.masna-refresh.home-preview-shell[data-theme] .field-location {
  display: none !important;
}

/* Unified Stat Cards on Operations & Archive pages (.stats / .stat) */
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 20px !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .stat {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-top: 4px solid var(--card-header-bg, #102a43) !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
  box-shadow: var(--shadow) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .stat:nth-child(2) {
  border-top-color: var(--green) !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .stat:nth-child(3) {
  border-top-color: var(--red) !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .stat strong {
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 4px 0 !important;
  font-variant-numeric: tabular-nums;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .stat:nth-child(2) strong {
  color: var(--green) !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .stat:nth-child(3) strong {
  color: var(--red) !important;
}

/* Unified Tables, Panels, Filters & Site Cards across all pages */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records th {
  background: var(--surface-2) !important;
  color: var(--muted) !important;
  font-weight: 700 !important;
  padding-top: 11px !important;
  padding-bottom: 11px !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
}
:is(.app-shell.masna-refresh, .app-shell)[data-theme] .archive-filter {
  border: 1px solid var(--line) !important;
  border-top: 4px solid var(--card-header-bg, #102a43) !important;
  border-radius: 16px !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow) !important;
  margin-bottom: 20px !important;
}
.app-shell:not(.home-preview-shell) .roster-toolbar h2 {
  font-size: 16px !important;
  color: var(--muted) !important;
}

/* =========================================================
   REDESIGNED DAILY SUMMARY (.field-summary - حصيلة اليوم)
   ========================================================= */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-summary {
  grid-area: summary;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
  width: 100%;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .totals-heading {
  padding: 14px 18px !important;
  background: var(--card-header-bg, #102a43) !important;
  color: #ffffff !important;
  border-bottom: 1px solid var(--line) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .totals-heading h2 {
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .totals-heading > span {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 12.5px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .harbor-totals {
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 16px !important;
  background: var(--surface) !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .daily-total {
  background: var(--surface-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 14px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .daily-total .total-symbol {
  display: none !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .daily-total > span:nth-child(2) {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .daily-total strong {
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--ink) !important;
  font-variant-numeric: tabular-nums;
  margin: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .daily-total.allowed strong {
  color: var(--green) !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .daily-total.denied strong {
  color: var(--red) !important;
}

.app-shell.masna-refresh.home-preview-shell[data-theme] .field-report-action {
  background: var(--surface-2) !important;
  color: var(--ink) !important;
  border-top: 1px solid var(--line) !important;
  padding: 13px 18px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-report-action:hover {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-report-action > svg:first-child {
  color: var(--accent) !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-report-action > svg:last-child {
  color: var(--muted) !important;
}

/* =========================================================
   CRAFT INSPECTION CARDS
   ========================================================= */
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 16px !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card {
  border-radius: 16px !important;
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
  min-width: 0;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card > header {
  padding: 14px 18px !important;
  background: var(--card-header-bg, #102a43) !important;
  color: #ffffff !important;
  border-bottom: 1px solid var(--line) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 62px !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card > header h3 {
  color: #ffffff !important;
  font-size: 17.5px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-card > header > svg {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  padding: 7px !important;
  border-radius: 10px !important;
}
.craft-total-pill {
  margin-right: auto;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  white-space: nowrap;
}

.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decisions {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 18px !important;
  background: var(--surface) !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision,
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision.allowed,
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision.denied {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 16px 0 !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision + .craft-decision {
  border-top: 1px solid var(--line) !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-counter {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-counter > span,
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision.denied .craft-counter > span {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  white-space: nowrap;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-counter > strong {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-add {
  width: auto !important;
  min-width: 136px !important;
  min-height: 44px !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  flex-shrink: 0;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision.allowed .craft-add {
  background: var(--action) !important;
  border: 1px solid var(--action) !important;
  color: #ffffff !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision.allowed .craft-add:hover {
  background: var(--action-hover) !important;
  border-color: var(--action-hover) !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .craft-decision.denied .craft-add {
  background: var(--danger) !important;
  border: 1px solid var(--danger) !important;
  color: #ffffff !important;
}

/* =========================================================
   SAFETY RADAR & DENIAL REASONS BREAKDOWN
   ========================================================= */
.safety-radar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.safety-radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 18px;
  background: var(--card-header-bg, #102a43);
  color: #ffffff;
  border-bottom: 1px solid var(--line);
}
.safety-radar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}
.whatsapp-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.4);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}


.toast {
  pointer-events: none !important;
}
.toolbar-reset-btn {
  margin-right: 8px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--line, #c8d5e3);
  background: var(--surface-2, #f1f5f9);
  color: var(--muted, #4a5d70);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.toolbar-reset-btn:hover {
  background: var(--accent-soft, #e3effb);
  color: var(--accent, #0f4c81);
}
.wa-inline-drawer {
  margin: 0 18px 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2, #f1f5f9);
  border: 1px solid var(--line, #c8d5e3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wa-inline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.wa-inline-top strong {
  font-size: 13px;
  color: var(--green, #0b7a5c);
}
.wa-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.whatsapp-copy-btn.copied {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}
.wa-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 29, 51, 0.62);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-family: 'Cairo', sans-serif;
}
.wa-modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface, #ffffff);
  color: var(--ink, #0b2239);
  border: 1px solid var(--line, #c8d5e3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.wa-modal-header {
  background: var(--card-header-bg, #102a43);
  color: #ffffff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wa-modal-header h3 {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}
.wa-modal-header span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
}
.wa-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
}
.wa-modal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wa-copied-notice {
  padding: 10px 14px;
  border-radius: 10px;
  background: #eaf8f3;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 13px;
  font-weight: 700;
}
.wa-modal-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line, #c8d5e3);
  background: var(--surface-2, #f1f5f9);
  color: var(--ink, #0b2239);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  resize: vertical;
}
.wa-modal-footer {
  padding: 13px 20px;
  background: var(--surface-2, #f1f5f9);
  border-top: 1px solid var(--line, #c8d5e3);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wa-btn-copy {
  flex: 1;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 0;
  background: #0b7a5c;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.wa-btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--card-header-bg, #102a43);
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
}
.wa-btn-cancel {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line, #c8d5e3);
  background: var(--surface, #ffffff);
  color: var(--muted, #4a5d70);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.whatsapp-copy-btn:hover {
  background: var(--green);
  color: #ffffff;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .panel-heading {
  background: var(--card-header-bg, #102a43) !important;
  color: #ffffff !important;
  border-bottom: 1px solid var(--line) !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .panel-heading h2 {
  color: #ffffff !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .panel-heading > div > span {
  color: rgba(255, 255, 255, 0.78) !important;
}
.safety-reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 8px;
  padding: 14px 18px;
}
.safety-reason-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.safety-reason-chip.has-count {
  background: var(--red-soft);
  border-color: color-mix(in srgb, var(--red) 35%, var(--line));
  color: var(--red);
  font-weight: 700;
}
.safety-reason-chip b {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   1. IPHONE / IOS BOTTOM TAB BAR (.mobile-nav) & DEVICE FRAMES
   ========================================================= */
.device-preview-banner {
  margin: 10px auto 0;
  max-width: 820px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #071d33;
  color: #f8fbff;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.device-preview-banner button {
  background: #fbbf24;
  color: #071d33;
  border: 0;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.device-frame-tablet {
  width: min(calc(100% - 24px), 820px);
  height: calc(100dvh - 126px);
  max-height: 1080px;
  margin: 12px auto 20px;
  border-radius: 26px;
  outline: 6px solid #283a4d;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  position: relative;
}
.device-frame-phone {
  width: min(calc(100% - 20px), 392px);
  height: calc(100dvh - 126px);
  max-height: 844px;
  margin: 12px auto 20px;
  border-radius: 38px;
  outline: 8px solid #1e2d3d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  position: relative;
}

/* Authentic iPhone iOS Tab Bar proportions for .mobile-nav (both in preview & real mobile) */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] > .mobile-nav {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-around !important;
  gap: 2px !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 5px 8px 14px !important;
  background: color-mix(in srgb, var(--surface) 92%, transparent) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-top: 0.5px solid var(--line) !important;
  box-shadow: 0 -4px 18px rgba(11, 34, 57, 0.06) !important;
  box-sizing: border-box !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] > .mobile-nav::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  pointer-events: none;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] > .mobile-nav > button {
  flex: 1 1 0% !important;
  max-width: 68px !important;
  min-width: 0 !important;
  height: 43px !important;
  min-height: 43px !important;
  padding: 3px 2px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  border-radius: 10px !important;
  color: var(--muted) !important;
  background: transparent !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] > .mobile-nav > button > svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2 !important;
  flex-shrink: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] > .mobile-nav > button > span {
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] > .mobile-nav > button.active {
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
  font-weight: 700 !important;
}

body:is([data-device="tablet"], [data-device="phone"]) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] {
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
body:is([data-device="tablet"], [data-device="phone"]) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .marine-sidebar {
  display: none !important;
}
body:is([data-device="tablet"], [data-device="phone"]) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .workspace {
  margin: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  flex: 1 0 auto !important;
}
body:is([data-device="tablet"], [data-device="phone"]) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .workspace > .topbar {
  display: flex !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 32;
  height: 58px !important;
  min-height: 58px !important;
  padding: 8px 14px !important;
  background: color-mix(in srgb, var(--surface) 92%, transparent) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 0.5px solid var(--line) !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}
body:is([data-device="tablet"], [data-device="phone"]) .topbar :is(.top-avatar, .refresh, .breadcrumb) {
  display: none !important;
}
body:is([data-device="tablet"], [data-device="phone"]) .topbar .header-brand {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
body:is([data-device="tablet"], [data-device="phone"]) .topbar .topbar-actions {
  margin-right: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
body[data-device="tablet"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .content {
  padding: 18px 18px 24px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .content {
  padding: 14px 12px 24px !important;
}
body:is([data-device="tablet"], [data-device="phone"]) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] > .mobile-nav {
  display: flex !important;
  position: sticky !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  width: 100% !important;
  margin-top: auto !important;
  flex-shrink: 0 !important;
  z-index: 60 !important;
  border-radius: 0 !important;
}
body:is([data-device="tablet"], [data-device="phone"]) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .harbor-tabbar {
  display: none !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.craft-inspection-grid, .sites-grid, .archive-days, .stats, .more-studio-grid) {
  grid-template-columns: 1fr !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .harbor-totals {
  gap: 8px !important;
  padding: 14px 10px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .daily-total {
  padding: 12px 6px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .daily-total > span:nth-child(2) {
  font-size: 12px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .daily-total strong {
  font-size: 22px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.field-heading h1, .page-heading h1) {
  font-size: 20px !important;
}

@media (max-width: 900px) {
  :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .marine-sidebar {
    display: none !important;
  }
  :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .workspace {
    margin: 0 !important;
    margin-right: 0 !important;
  }
  :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .content {
    padding: 18px 16px 90px !important;
  }
  :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] > .mobile-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 60 !important;
  }
  :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .harbor-tabbar {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .app-shell.masna-refresh.home-preview-shell[data-theme] .craft-inspection-grid,
  :is(.app-shell.masna-refresh, .app-shell)[data-theme] .stats {
    grid-template-columns: 1fr !important;
  }
  .more-studio-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   PLATFORM-TAILORED RESPONSIVE DESIGNS (BROWSER / TABLET / PHONE)
   ========================================================= */

/* --- TABLET PLATFORM (820px iPad Frame) --- */
body[data-device="tablet"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.field-heading.ops-slim-bar, .page-heading.ops-slim-bar) {
  padding: 13px 16px !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
}
body[data-device="tablet"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .ops-slim-title h1 {
  font-size: 18px !important;
}
body[data-device="tablet"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-table .roster-rank-col {
  width: 98px !important;
}
body[data-device="tablet"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-inspection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
body[data-device="tablet"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records th,
body[data-device="tablet"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records td {
  padding: 11px 12px !important;
  font-size: 13px !important;
}

/* --- PHONE PLATFORM (390px iPhone Frame & <=640px Viewports) --- */
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .workspace > .topbar {
  height: 52px !important;
  min-height: 52px !important;
  padding: 6px 12px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .content {
  padding: 12px 12px 24px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.field-heading.ops-slim-bar, .page-heading.ops-slim-bar) {
  padding: 12px 14px !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
  border-radius: 14px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .ops-slim-right {
  width: 100% !important;
  gap: 10px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .ops-slim-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .ops-slim-title h1 {
  font-size: 16.5px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .ops-slim-meta {
  font-size: 11.5px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .ops-slim-left {
  width: 100% !important;
  justify-content: space-between !important;
  padding-top: 8px !important;
  border-top: 1px solid var(--line) !important;
  gap: 6px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.ops-slim-date, .ops-slim-site, .ops-slim-btn) {
  font-size: 11.5px !important;
  padding: 5px 10px !important;
  min-height: 32px !important;
}

/* Phone Roster Table & Footer (Zero Overflow) */
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular .roster-toolbar {
  min-height: 34px !important;
  margin: 0 0 8px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular .roster-toolbar h2,
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-inspection-heading h2 {
  font-size: 16.5px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-inspection-heading > span {
  font-size: 11.5px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-table .roster-number-col {
  width: 30px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-table .roster-rank-col {
  width: 88px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-table th {
  height: 38px !important;
  padding: 6px 8px !important;
  font-size: 12.5px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-table td {
  padding: 7px 8px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular .roster-table .roster-name-field textarea,
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular .roster-table .roster-name-field .roster-name-measure {
  font-size: 14px !important;
  line-height: 1.35 !important;
  min-height: 20px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular .roster-table .roster-rank-cell .roster-name-field textarea,
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular .roster-table .roster-rank-cell .roster-name-measure {
  font-size: 13px !important;
  line-height: 1.35 !important;
  min-height: 20px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-table .roster-role-caption {
  padding: 1px 6px !important;
  font-size: 11px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-tabular .roster-footer {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  padding: 8px 12px !important;
  min-height: 42px !important;
}
body[data-device="phone"] .roster-footer-status {
  width: auto !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  padding: 4px 10px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-remember {
  width: 100% !important;
  justify-content: space-between !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-remember-text b {
  font-size: 13px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-remember-text small {
  font-size: 11px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-actions-wrap {
  width: 100% !important;
  margin: 0 !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-save {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  font-size: 13px !important;
  justify-content: center !important;
}

/* Phone Craft Cards, Summary & Radar */
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-inspection-card > header {
  min-height: 50px !important;
  padding: 10px 14px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-inspection-card > header h3 {
  font-size: 16px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-decisions {
  padding: 0 14px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-decision {
  padding: 12px 0 !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-add {
  min-width: 120px !important;
  min-height: 40px !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
}
body[data-device="phone"] .safety-radar-header {
  padding: 11px 14px !important;
}
body[data-device="phone"] .safety-radar-title {
  font-size: 13.5px !important;
}
body[data-device="phone"] .whatsapp-copy-btn {
  width: 100% !important;
  justify-content: center !important;
  padding: 7px 12px !important;
}
body[data-device="phone"] .safety-reasons-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  padding: 12px 14px !important;
  gap: 8px !important;
}

/* Phone Operations & Archive Toolbar, Date Fields & Mobile Record Cards (Zero Clipped Words) */
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .toolbar {
  padding: 12px 14px !important;
  gap: 10px !important;
  flex-direction: column !important;
  align-items: stretch !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .toolbar > .search {
  width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .toolbar > .segmented {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .toolbar > .segmented button {
  padding: 6px 4px !important;
  font-size: 12px !important;
  text-align: center !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .toolbar > .btn {
  width: 100% !important;
  justify-content: center !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .archive-date-body,
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .date-fields {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 14px !important;
  width: 100% !important;
  margin-top: 0 !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .date-fields label {
  min-width: 0 !important;
  font-size: 12px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .date-fields input {
  font-size: 13px !important;
  padding: 8px 10px !important;
  min-height: 40px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .date-fields .btn {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 0 !important;
  justify-content: center !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .table-scroll {
  overflow-x: hidden !important;
  padding: 10px 12px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records,
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records tbody {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records thead {
  display: none !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records tbody tr {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px 10px !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: var(--surface-2) !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records tbody tr:last-child {
  margin-bottom: 0 !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records tbody td {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  font-size: 13px !important;
  min-width: 0 !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records tbody tr {
  display: grid !important;
  grid-template-columns: 1fr auto auto !important;
  align-items: center !important;
  gap: 8px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records tbody td:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1;
  min-width: 0 !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records tbody td:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records tbody td:nth-child(6) {
  grid-column: 3 / 4;
  grid-row: 1;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records tbody td:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 2;
  padding-top: 7px !important;
  border-top: 1px dashed var(--line) !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records tbody td:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 2;
  padding-top: 7px !important;
  border-top: 1px dashed var(--line) !important;
  font-size: 12px !important;
  color: var(--muted) !important;
  text-align: left !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .records tbody td:nth-child(5) {
  grid-column: 3 / 4;
  grid-row: 2;
  padding-top: 7px !important;
  border-top: 1px dashed var(--line) !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 12px !important;
  color: var(--muted) !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .reason-cell,
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .vessel-cell small {
  max-width: 100% !important;
  white-space: normal !important;
}

/* Phone Members, Sites & More Sub-pages */
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .panel-heading {
  padding: 13px 14px !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .panel-heading h2 {
  font-size: 15.5px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .panel-heading > div > span {
  font-size: 11.5px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .members-list {
  padding: 0 14px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .members-list > div {
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 14px 0 !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .member-info {
  flex: 1 1 calc(100% - 58px) !important;
  min-width: 170px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .members-list .badge {
  margin-right: 52px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .members-list .icon-button {
  margin-right: auto !important;
}




/* =========================================================================
   BRAND-NEW MARITIME OPERATIONS STUDIO DESIGN (ZERO WASTE, COMPACT BENTO)
   ========================================================================= */

/* 1. Focused, Balanced Workspace Container (Never Stupidly Wide!) */
@media (min-width: 901px) {
  body[data-device="browser"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .content {
    max-width: 1020px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px 24px 28px !important;
  }
}

/* 2. Symmetric 2x2 Bento Grid on Desktop (>= 960px):
      Right Column (560px): تسجيل التفتيش (top) + حصيلة اليوم (bottom)
      Left Column  (390px): أفراد المناوبة (top) + رصد أسباب المنع (bottom)
      Zero empty holes, zero wide bars! */
@media (min-width: 960px) {
  body[data-device="browser"][data-layout="command"] .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-home {
    display: grid !important;
    grid-template-columns: minmax(0, 1.38fr) minmax(350px, 0.96fr) !important;
    grid-template-areas:
      "heading heading"
      "inspection crew"
      "summary radar"
      "footnote footnote" !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
  body[data-device="browser"][data-layout="field"] .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-home {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(350px, 1fr) !important;
    grid-template-areas:
      "heading heading"
      "inspection inspection"
      "summary crew"
      "radar radar"
      "footnote footnote" !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
  body[data-device="browser"][data-layout="board"] .app-shell.masna-refresh.home-preview-shell[data-theme] .harbor-home {
    display: grid !important;
    grid-template-columns: minmax(350px, 0.96fr) minmax(0, 1.38fr) !important;
    grid-template-areas:
      "heading heading"
      "crew inspection"
      "radar summary"
      "footnote footnote" !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
}

/* 3. Rich Command Header Banner (.ops-slim-bar) */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.field-heading.ops-slim-bar, .page-heading.ops-slim-bar) {
  background: linear-gradient(135deg, var(--card-header-bg, #0d273d) 0%, color-mix(in srgb, var(--card-header-bg, #0d273d) 82%, var(--accent, #0f4c81)) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  padding: 14px 20px !important;
  box-shadow: 0 8px 24px rgba(9, 30, 52, 0.12) !important;
  margin: 0 0 16px !important;
}
.app-shell.masna-refresh.home-preview-shell[data-theme] .field-heading.ops-slim-bar {
  margin: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .ops-slim-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: rgba(251, 191, 36, 0.16) !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  color: #fbbf24 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .ops-slim-title h1 {
  color: #ffffff !important;
  font-size: 18.5px !important;
  font-weight: 700 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .ops-slim-meta {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 12px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.ops-slim-date, .ops-slim-site) {
  background: rgba(255, 255, 255, 0.11) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.ops-slim-date svg, .ops-slim-site svg) {
  color: #fbbf24 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .ops-slim-btn {
  background: #fbbf24 !important;
  color: #0b2239 !important;
  border: 0 !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 10px !important;
}

/* 4. Unified Card 1: تسجيل التفتيش (.field-inspection-group) */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-inspection-group {
  grid-area: inspection;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-inspection-heading {
  background: var(--card-header-bg, #102a43) !important;
  color: #ffffff !important;
  padding: 12px 18px !important;
  min-height: 54px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-inspection-heading h2 {
  color: #ffffff !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-inspection-heading > span {
  background: rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-inspection-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 14px !important;
  flex: 1 1 auto !important;
  background: var(--surface) !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-inspection-card {
  border-radius: 13px !important;
  border: 1px solid var(--line) !important;
  background: var(--surface-2) !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-inspection-card > header {
  background: var(--surface) !important;
  color: var(--ink) !important;
  padding: 10px 12px !important;
  min-height: 46px !important;
  border-bottom: 1px solid var(--line) !important;
  gap: 8px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-inspection-card > header h3 {
  color: var(--ink) !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-inspection-card > header > svg {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  padding: 6px !important;
  border-radius: 8px !important;
  width: 30px !important;
  height: 30px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-total-pill {
  background: var(--surface-2) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-decisions {
  padding: 10px !important;
  gap: 8px !important;
  background: transparent !important;
  flex: 1 1 auto !important;
  justify-content: center !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-decision,
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-decision.allowed,
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-decision.denied {
  padding: 8px 10px !important;
  border-radius: 10px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  gap: 8px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-decision + .craft-decision {
  border-top: 1px solid var(--line) !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-counter {
  gap: 6px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-counter > span {
  font-size: 11.5px !important;
  line-height: 1.2 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-counter > strong {
  font-size: 21px !important;
  line-height: 1.1 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-decision.allowed .craft-counter > strong {
  color: var(--green) !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-decision.denied .craft-counter > strong {
  color: var(--red) !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-add {
  min-width: 104px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  font-size: 12.5px !important;
  border-radius: 9px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-step-btn {
  width: 34px !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 9px !important;
  font-size: 17px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .console-ledger {
  margin: 0 !important;
  padding: 10px 16px !important;
  min-height: 42px !important;
  background: var(--surface-2) !important;
  border-top: 1px solid var(--line) !important;
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

/* 5. Unified Card 2: أفراد المناوبة (.field-crew-group) */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-crew-group {
  grid-area: crew;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular .roster-toolbar {
  min-height: 54px !important;
  padding: 10px 16px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-aligned.roster-tabular .roster-toolbar h2 {
  font-size: 16.5px !important;
}
.roster-cards-container {
  flex: 1 1 auto !important;
  padding: 10px 12px !important;
  gap: 6px !important;
  justify-content: center !important;
}
.roster-member-card {
  padding: 6px 10px !important;
  gap: 8px !important;
  border-radius: 10px !important;
}
.roster-card-rank-field {
  width: 78px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
  padding: 1px 6px !important;
}
.roster-card-input.rank {
  font-size: 12.5px !important;
  text-align: center !important;
}
.roster-card-input.name {
  font-size: 13.5px !important;
}
.roster-tabular .roster-footer {
  margin-top: auto !important;
  min-height: 42px !important;
  padding: 8px 14px !important;
}

/* 6. Unified Card 3 & Card 4: حصيلة اليوم (.field-summary) & رصد أسباب المنع (.safety-radar-card) */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-summary {
  grid-area: summary;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .totals-heading {
  min-height: 48px !important;
  padding: 10px 16px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .totals-heading h2 {
  font-size: 16px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .harbor-totals {
  flex: 1 1 auto !important;
  padding: 12px 14px !important;
  gap: 10px !important;
  align-items: stretch !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .daily-total {
  padding: 10px 8px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-report-action {
  margin-top: auto !important;
  min-height: 42px !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .safety-radar-card {
  grid-area: radar;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .safety-radar-header {
  min-height: 48px !important;
  padding: 10px 14px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .safety-radar-title {
  font-size: 14px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .safety-reasons-grid {
  flex: 1 1 auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 12px !important;
  align-content: center !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .safety-reason-chip {
  padding: 8px 10px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* Phone Overrides for Craft Grid */
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-inspection-grid {
  grid-template-columns: 1fr !important;
  padding: 12px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-add {
  min-width: 112px !important;
  height: 40px !important;
  min-height: 40px !important;
}
body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-step-btn {
  width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
}



/* === FINAL VISUAL POLISH OVERRIDES (HIGH SPECIFICITY) === */
/* 1. Fix .roster-footer-status so green dot sits inline beside text, never stacked */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-tabular .roster-footer > .roster-footer-status,
.roster-tabular .roster-footer > div.roster-footer-status,
.roster-footer-status {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  width: auto !important;
  flex: 0 0 auto !important;
}
.roster-footer-status .roster-status-dot {
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}
.roster-footer-status .roster-status-text {
  display: inline-block !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* 2. Widen .roster-card-rank-field to 92px so two-word ranks like "مشرف ثالث" never clip */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-card-rank-field,
.roster-card-rank-field {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  padding: 1px 4px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .roster-card-input.rank,
.roster-card-input.rank {
  font-size: 12px !important;
  text-align: center !important;
  padding: 0 !important;
}

/* 3. Keep Safety Radar Header on a single clean row on Desktop */
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .safety-radar-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  min-height: 48px !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .safety-radar-title {
  font-size: 12.5px !important;
  white-space: nowrap !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .safety-radar-header button,
:is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .safety-radar-wa-btn {
  padding: 4px 10px !important;
  font-size: 11px !important;
  height: 28px !important;
  min-height: 28px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 8px !important;
}

/* 4. On Phone & Tablet single-column view, order Inspection ("الطراريد" & "الجت سكي") FIRST right below the banner */
:is(body[data-device="phone"], body[data-device="tablet"]) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .harbor-home {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  gap: 12px !important;
}
:is(body[data-device="phone"], body[data-device="tablet"]) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .harbor-home > * {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
:is(body[data-device="phone"], body[data-device="tablet"]) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-heading.ops-slim-bar {
  order: 1 !important;
}
:is(body[data-device="phone"], body[data-device="tablet"]) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-inspection-group {
  order: 2 !important;
}
:is(body[data-device="phone"], body[data-device="tablet"]) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-summary {
  order: 3 !important;
}
:is(body[data-device="phone"], body[data-device="tablet"]) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .field-crew-group {
  order: 4 !important;
}
:is(body[data-device="phone"], body[data-device="tablet"]) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .safety-radar-card {
  order: 5 !important;
}
:is(body[data-device="phone"], body[data-device="tablet"]) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .harbor-footnote {
  order: 6 !important;
}



/* === POINT 1 & 2: IDENTICAL CRAFT BUTTONS, UNIFORM FONTS & UNCLIPPED PHONE PADDING === */
:is(body[data-device="browser"], body[data-device="tablet"], body[data-device="phone"], body) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-decisions {
  padding: 10px 12px !important;
  gap: 8px !important;
  background: transparent !important;
}

:is(body[data-device="browser"], body[data-device="tablet"], body[data-device="phone"], body) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.craft-decision, .craft-decision.allowed, .craft-decision.denied) {
  padding: 9px 14px !important;
  border-radius: 11px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-decisions {
  padding: 12px 14px !important;
  gap: 10px !important;
}

body[data-device="phone"] :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.craft-decision, .craft-decision.allowed, .craft-decision.denied) {
  padding: 11px 16px !important;
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
}

/* Uniform font sizes for "المسموح" and "الممنوع" labels & counters */
:is(body[data-device="browser"], body[data-device="tablet"], body[data-device="phone"], body) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.craft-counter, .craft-decision.allowed .craft-counter, .craft-decision.denied .craft-counter) {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 0 2px !important;
  min-width: 54px !important;
}

:is(body[data-device="browser"], body[data-device="tablet"], body[data-device="phone"], body) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.craft-counter > span, .craft-decision.allowed .craft-counter > span, .craft-decision.denied .craft-counter > span) {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--muted) !important;
  white-space: nowrap !important;
}

:is(body[data-device="browser"], body[data-device="tablet"], body[data-device="phone"], body) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.craft-counter > strong, .craft-decision.allowed .craft-counter > strong, .craft-decision.denied .craft-counter > strong) {
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

/* Strictly identical dimensions and font size for "+ إضافة مسموح" and "+ تسجيل منع" */
:is(body[data-device="browser"], body[data-device="tablet"], body[data-device="phone"], body) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-action-pair {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

:is(body[data-device="browser"], body[data-device="tablet"], body[data-device="phone"], body) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.craft-add, .craft-decision.allowed .craft-add, .craft-decision.denied .craft-add) {
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
  height: 35px !important;
  min-height: 35px !important;
  max-height: 35px !important;
  padding: 0 8px !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

:is(body[data-device="browser"], body[data-device="tablet"], body[data-device="phone"], body) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] :is(.craft-add svg, .craft-decision.allowed .craft-add svg, .craft-decision.denied .craft-add svg) {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

:is(body[data-device="browser"], body[data-device="tablet"], body[data-device="phone"], body) :is(.app-shell.masna-refresh.home-preview-shell, .app-shell)[data-theme] .craft-step-btn {
  width: 35px !important;
  min-width: 35px !important;
  max-width: 35px !important;
  height: 35px !important;
  min-height: 35px !important;
  max-height: 35px !important;
  border-radius: 9px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

/* === POINT 3: AUTH PORTAL & ADMIN PERMISSIONS MANAGEMENT STYLING === */
.auth-portal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(7, 29, 51, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Cairo', sans-serif;
}
.auth-portal-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #c8d5e3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
.auth-portal-header {
  background: var(--card-header-bg, #102a43);
  color: #ffffff;
  padding: 18px 22px;
  text-align: center;
}
.auth-portal-header h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
}
.auth-portal-header p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
}
.auth-portal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: 6px;
  gap: 6px;
}
.auth-portal-tab {
  padding: 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.auth-portal-tab.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.auth-portal-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.auth-field input, .auth-field select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
}
.auth-shift-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.auth-shift-pill {
  padding: 9px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.auth-shift-pill.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.auth-portal-footer {
  padding: 14px 22px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.auth-submit-btn {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.masna-sim-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.masna-sim-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.masna-sim-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.member-role-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.member-quick-role-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.member-quick-role-btn.is-admin {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.35);
}



/* Ensure Auth Portal (mounted on body) has explicit fallback theme colors */
.auth-portal-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}
.auth-portal-header {
  background: linear-gradient(135deg, #0d273d 0%, #103c5c 100%) !important;
  color: #ffffff !important;
}
.auth-portal-tabs {
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.auth-portal-tab {
  color: #475569 !important;
}
.auth-portal-tab.active {
  background: #ffffff !important;
  color: #0f4c81 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}
.auth-field label {
  color: #0f172a !important;
}
.auth-field input, .auth-field select {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}
.auth-shift-pill {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}
.auth-shift-pill.active {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #0284c7 !important;
}
.auth-portal-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}
.auth-submit-btn {
  background: linear-gradient(135deg, #0f4c81 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}


.virtual-server-badge {
  display: none !important;
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #071d33;
  color: #e9f5f1;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(7, 29, 51, 0.28);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.virtual-server-badge .vs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
.virtual-server-badge button {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
}
.virtual-server-badge button:hover {
  background: rgba(255, 255, 255, 0.24);
}
body:is([data-device="tablet"], [data-device="phone"]) .virtual-server-badge {
  bottom: 84px;
}
@media (max-width: 900px) {
  .virtual-server-badge {
    bottom: 84px;
    left: 10px;
    font-size: 11px;
    padding: 5px 10px;
  }
}


/* Authentication reuses Masna's existing marine design tokens. */
[hidden]{display:none!important}
.login-page{min-height:100dvh;display:grid;place-items:center;background:#e6edf4;padding:24px;color:#122e44}
.login-card{width:min(100%,480px);background:#fff;border:1px solid #cad8e5;border-radius:20px;overflow:hidden;box-shadow:0 16px 60px #0c263c18}
.login-card .auth-portal-header{background:#102e48;color:#fff;padding:24px}
.login-card .auth-portal-body{padding:24px;display:grid;gap:18px}
.login-card .auth-field{display:grid;gap:8px;margin-block:12px;font-size:16px}
.login-card input{width:100%;min-height:46px;border:1px solid #b8cbdc;border-radius:10px;background:#fff;color:#102e48;padding:10px;font:inherit;box-sizing:border-box}
.login-card button,.login-card a{min-height:44px;font:inherit;background:#0c6078;color:#fff;border:0;border-radius:10px;padding:10px 18px;cursor:pointer;text-align:center;text-decoration:none}
.login-card button:disabled{opacity:.6;cursor:wait}
.login-card p{line-height:1.7}.login-card [role=status]{color:#a22536}

/* Preserve the roster arrangement while letting full names wrap on every screen. */
.roster-card-name-field{display:grid!important;min-width:0!important}
.roster-card-name-measure,.roster-card-name-field textarea.roster-card-input.name{grid-area:1/1;font:inherit;font-weight:700;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;padding:6px 8px;box-sizing:border-box;min-height:34px;width:100%;text-align:right}
.roster-card-name-measure{visibility:hidden;pointer-events:none}
.roster-card-name-field textarea.roster-card-input.name{resize:none;height:100%;overflow:hidden;min-width:0}

.credential-status{display:block;color:var(--red,#b12c40);font-weight:700;margin-block:4px}

#toggle-password{background:transparent;color:#0c6078;justify-self:start;padding:0;min-height:30px;border:0;font-size:14px}

.login-card .auth-portal-header h1{color:#fff!important}
.login-card .login-version{display:inline-block;color:#d7e9f4;font-size:14px;margin-top:10px}
.login-card .password-control{display:flex;align-items:stretch;gap:8px;direction:ltr;min-width:0}
.login-card .password-control input{flex:1;min-width:0;margin:0}
.login-card .password-control #toggle-password{flex:none;min-width:72px;min-height:46px;padding:8px 12px;background:#e9f2f8;color:#10334d;border:1px solid #9db9ce;border-radius:10px;font-size:16px;font-weight:700;cursor:pointer}

/* Saving must not move the tapped control or block scrolling in device previews. */
.craft-add{white-space:nowrap;min-inline-size:116px;touch-action:manipulation}
.craft-add .spin{flex-shrink:0}
.device-frame-phone,.device-frame-tablet{touch-action:pan-y pinch-zoom;scrollbar-gutter:stable}
.toast button{pointer-events:auto}
@media(prefers-reduced-motion:reduce){.spin{animation:none!important}}

/* The actual viewport and the device preview use the same narrow-screen rules. */
@media(max-width:600px){
  .app-shell.masna-refresh.home-preview-shell[data-theme] .field-inspection-group .craft-inspection-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .app-shell[data-theme] .craft-inspection-card{width:auto!important;min-width:0!important}
  .app-shell[data-theme] .craft-decision{flex-wrap:wrap!important;gap:10px!important}
  .app-shell[data-theme] .craft-action-pair{flex-shrink:0!important;max-width:100%}
  .device-preview-toolbar{position:relative!important;flex-wrap:wrap!important;height:auto!important;gap:8px!important;padding:8px!important}
  .device-preview-caption{display:flex!important;flex-wrap:wrap!important;gap:6px!important;min-width:0!important;width:100%!important}
  .device-preview-caption .toolbar-reset-btn{margin:0!important;min-height:36px!important;font-size:11px!important;flex:1 1 95px!important;white-space:normal!important}
  .device-preview-options{width:100%!important}
}
body[data-device="phone"] .app-shell.masna-refresh.home-preview-shell[data-theme] .field-inspection-group .craft-inspection-grid{grid-template-columns:minmax(0,1fr)!important}
body[data-device="phone"] .app-shell[data-theme] .craft-decision{flex-wrap:wrap!important;gap:10px!important}

@media(max-width:900px){
  .device-preview-toolbar{position:relative!important;flex-wrap:wrap!important;height:auto!important;gap:8px!important;padding:8px!important}
  .device-preview-caption{display:flex!important;flex-wrap:wrap!important;gap:6px!important;min-width:0!important;width:100%!important}
  .device-preview-options{max-width:100%!important;margin-inline:auto!important}
}

/* Dialogs and their validation feedback must stay above the preview toolbar on touch screens. */
.app-shell[data-theme] .modal-backdrop{z-index:1000!important}
.app-shell[data-theme] .toast{z-index:1100!important}
