/* Administrative workspace: restrained colour, consistent controls and clear hierarchy.
   Screen-only and PC-scoped so field/QR screens and printed documents are unchanged. */
@media screen {
body:has(.pc-layout){background:#f2f4f7;font-family:"Segoe UI","Malgun Gothic",sans-serif;color:#253247}
@scope (.pc-layout) {
 :scope{--app-bg:#f2f4f7;--surface-subtle:#f5f7fa;--text-primary:#253247;--text-secondary:#68778a;--border:#dce2e9;--border-strong:#c4ceda;--primary:#2459a6;--primary-hover:#1b4787;--primary-soft:#edf3fb;--card-radius:7px;--control-radius:5px;font-size:14px;line-height:1.5}
 h1{font-size:24px;letter-spacing:-.6px;font-weight:650;color:#17283e}h2{font-size:17px;font-weight:650;letter-spacing:-.3px}h3{font-size:15px}.main{padding:24px 28px 36px}.pagehead,.review-heading{margin-bottom:20px}.sectionhead{margin-top:24px;margin-bottom:12px}
 .sidebar{background:#192c43;border-right:1px solid #192c43;padding:24px 12px 18px;gap:28px}.brand{color:#f4f7fc;font-size:21px;letter-spacing:-.6px}.brandmark{opacity:.95}.navgroup{gap:5px}.navgroup>small{color:#92a3b8;font-size:11px;letter-spacing:1px;padding-bottom:12px}.navlink{color:#bac8da;border-radius:5px;font-size:14px;min-height:44px}.navlink:hover{background:#233a55;color:#fff}.navlink.active{background:#2a4668;color:#fff;box-shadow:inset 3px 0 #8eb9f3;font-weight:600}.navicon{color:inherit;opacity:.9}.defect-subnav{border-left-color:#3a506b;margin-left:20px}.defect-subnav .navlink{font-size:13px;color:#aebfd3}.defect-subnav .navlink.active{color:#fff;background:#263f5d}.navlink[href="#settings"]{border-top-color:#35485f;margin-top:20px}.sidefoot{border-top-color:#35485f;color:#8da1b9;font-size:11px}.sidebar .sidebar-close{color:white}.nav-chevron{color:#8da1b9}
 .topbar{background:#fff;border-bottom:1px solid #dce2e9;box-shadow:none}.top-actions{gap:10px}.userchip{color:#536378;font-size:12px}.avatar{background:#eaf0f7;color:#31557f;border-radius:6px}.topbar .button.small{font-size:12px;border-color:#dce2e9;min-height:30px}.desktop-menu-toggle{box-shadow:none}.workspace-location{font-size:12px;color:#718095;padding-left:12px;border-left:1px solid #e0e5ec;white-space:nowrap}
 .panel,.registration-card,.master-list,.master-detail,.qrcard{border:1px solid #d9e0e9;border-radius:7px;background:#fff;box-shadow:0 1px 2px #17283e04}.panel{margin-bottom:16px}.field{font-size:12px;font-weight:600;color:#536378;gap:7px}input,select,textarea{border-color:#cbd4df;border-radius:5px;font-size:14px;background:#fff;box-shadow:none}input::placeholder{color:#8a96a5}input:disabled,select:disabled{color:#8a95a3;background:#f3f5f8;border-color:#e1e6ed}input:focus,select:focus,textarea:focus{border-color:#376bb5;outline:2px solid #2459a61a;outline-offset:0}.button{border-radius:5px;box-shadow:none;font-weight:600;border-color:#ccd5df;font-size:13px}.button.primary{background:#2459a6;border-color:#2459a6;color:#fff}.button.primary:hover{background:#1b4787}.button.mint{background:#fff;border-color:#b6c9e1;color:#2459a6}.button.small{font-size:12px}.button.delete-defect{color:#b33c36;background:#fff;border-color:#e9cecb}.button.delete-defect:hover{background:#fff3f1}
 .filters,#report-filter{background:#fff;border:1px solid #d9e0e9;border-radius:7px;padding:14px 16px;gap:10px;margin-bottom:16px;box-shadow:none}.filter-primary{gap:8px}.filter-secondary{padding-top:10px;border-top:1px solid #edf0f4;margin-top:2px;gap:20px}.filter-group{gap:6px}.filter-group>strong,.report-team-filter>strong{font-size:12px;color:#526276}.filters .button,#report-filter .button{font-size:12px;min-height:34px;border-color:#d4dce6;background:white;color:#526276}.filters .button.active,.filters [aria-pressed="true"],#report-filter .button.active,#report-filter [aria-pressed="true"]{background:#eaf1fb;border-color:#a9bfde;color:#234f8a;box-shadow:none;font-weight:650}.filters input,#report-filter input{height:36px;font-size:13px}.report-team-filter{padding-top:10px;border-top:1px solid #edf0f4;gap:6px}.filter-buttons,.date-presets{gap:4px}
 .registration-card{padding:22px 24px 0;border-top:3px solid #365d8c}.registration-primary,.registration-secondary{gap:16px}.registration-secondary{padding-top:20px;border-top:1px solid #edf0f4;margin-top:20px}.registration-fields .field>span{font-size:12px;color:#536378;font-weight:600}.registration-fields .required{color:#3262a3}.registration-fields .optional{color:#8793a3;font-size:11px}.registration-fields input,.registration-fields select{height:42px;font-size:14px}.registration-actions{margin:20px -24px 0;padding:13px 24px;background:#f8fafc;border-top:1px solid #e5eaf0;border-radius:0 0 7px 7px}.registration-actions .button{min-width:132px;height:38px;min-height:38px;font-size:13px}.registration-saved{border-radius:7px;overflow:hidden;border:1px solid #dce2e9;background:white;margin-top:20px}
 .stats{gap:12px}.stat{border-radius:7px;border:1px solid #dce2e9;box-shadow:none;padding:16px 18px;position:relative}.stat-label{font-size:12px;font-weight:600;color:#526276;gap:8px}.stat-label svg{width:16px;height:16px}.stat-value{font-size:30px;line-height:1.2;letter-spacing:-1px;font-weight:650;font-variant-numeric:tabular-nums;color:#1d314c}.stat-value small{font-size:12px;color:#68778a;font-weight:400;letter-spacing:0;margin-left:6px}.stat-note{font-size:11px;color:#738195;margin-top:6px}.stats .stat:nth-child(1){background:#edf3fb;border-color:#d0ddec}.stats .stat:nth-child(2){background:#fff8eb;border-color:#eddfc5}.stats .stat:nth-child(3){background:#f2eff8;border-color:#dfd7ec}.stats .stat:nth-child(4){background:#edf6f2;border-color:#d0e4db}
 .teamgrid{gap:12px}.teamcard{border-radius:7px;box-shadow:none;padding:14px 16px;border:1px solid #d8e1ed;border-top:3px solid #5275a1;transition:background .15s,border-color .15s}.teamcard:nth-child(1){background:#edf3fa;border-top-color:#5275a1}.teamcard:nth-child(2){background:#edf5f4;border-top-color:#548a85}.teamcard:nth-child(3){background:#f3f0f8;border-top-color:#84709d}.teamcard:nth-child(4){background:#faf4e9;border-top-color:#ac8c54}.teamcard:nth-child(5){background:#f7eff1;border-top-color:#a66f7e}.teamcard.active{outline:2px solid #456991;outline-offset:-2px;box-shadow:none}.teamcard:hover{border-color:#7997bb}.team-name{font-size:15px;font-weight:650;color:#263c57}.teamcard strong{font-size:25px;font-weight:650;letter-spacing:-.7px;color:#263c57}.team-count,.teamcard .muted{font-size:11px;color:#68778a}.teamcard .team-open{color:#7489a3}.sectionhead>h2 .small{color:#7a8798}
 table{font-size:13px}th{font-size:12px;color:#536378;background:#f2f5f9;font-weight:600;border-bottom-color:#d3dce7}td{color:#30435b;border-bottom-color:#e5eaf0}.tablewrap{border-radius:0}tbody tr:hover td{background:#f6f9fd}.worksheet td,.worksheet th{border-color:#dce3ec}.worksheet .column-groups th{background:#eaf0f7;color:#536b88;font-size:11px;letter-spacing:.2px}.worksheet thead tr:last-child th{background:#f5f7fa;color:#536378}.worksheet td{height:46px}.worksheet input,.worksheet select{border-color:#d1dae5;background:#fff;font-size:13px;height:34px;border-radius:4px}.worksheet .row-actions .button{font-size:12px;min-height:30px;border-radius:4px}.worksheet tr[data-dirty="1"] td{background:#fffaf0}.review-panel,.rework-panel{box-shadow:none}.review-save-note{font-size:11px;padding:10px 14px;color:#7a8798;background:#fff}.badge{border-radius:4px;font-size:11px;font-weight:500;padding:4px 7px}.badge.done{background:#eaf5ef;color:#377458;border:1px solid #d6e9de}.badge.working{background:#edf0f8;color:#5d658d;border:1px solid #dee2ef}.badge:not(.done):not(.working){background:#fff5df;color:#9a6b25;border:1px solid #f1e3c4}
 .tabs{gap:0;border-bottom:1px solid #d4deea;margin-bottom:16px}.tabs button{font-size:13px;padding:10px 18px;min-height:42px;color:#68778a}.tabs button.active{color:#234f8a;border-bottom-color:#2459a6}.report-banner{padding:2px 0 12px}.report-banner h2{font-size:13px}.report-banner p{font-size:11px}.report-unified{border-radius:7px}.report-unified-head{padding:18px 20px;border-bottom:1px solid #e5eaf0}.report-unified-head h2{font-size:16px}.report-unified .chartnote{font-size:11px}.report-total{border:0;background:#edf2f8;border-radius:4px;color:#365779;padding:6px 10px}.report-total strong{font-size:22px}.report-unified .report-team-total th,.report-unified .report-team-total td{background:#eef3f9;color:#345676;border-color:#dce5ef}.report-unified .report-table th,.report-unified .report-table td{padding:10px 18px;font-size:13px}.report-analysis-table .barfill{background:#6688b2;border-radius:2px}.report-analysis-table .bartrack{height:7px;background:#edf1f6;border-radius:2px}.report-rank,.report-rank.is-leading{background:transparent;color:#71829a;font-weight:500}.report-group-tag{border-color:#d3deea;border-radius:4px;color:#687d96;background:white}
 .master-subtabs{border-radius:5px;background:#e8edf3}.master-subtabs button{border-radius:4px;font-size:13px}.master-subtabs button.active{box-shadow:0 1px 2px #1c314015;color:#2459a6}.master-list-heading{padding:14px 18px}.master-list-heading h2{font-size:15px}.master-detail .panelhead h2{font-size:16px}.master-connection{border-radius:5px}.settings-tab{font-size:13px}.qrcard h2{font-size:16px}.qrcard .url{font-size:12px;background:#f4f6f9;border-radius:4px}.rework-panel>.sectionhead{background:#fafbfd;padding:12px 16px}.rework-panel>.sectionhead h2{font-size:15px}
 @media(min-width:1280px){.registration-primary{grid-template-columns:1.05fr 1.35fr 160px 1.15fr 1.7fr}.registration-secondary{grid-template-columns:1.6fr 1.6fr 110px 1fr}}
 @media(max-width:1023px){.main{padding:20px 16px}.workspace-location{display:none}}
}
body:has(.pc-layout) #modal{border-radius:8px;border-color:#d3dce7;box-shadow:0 20px 60px #14243b26;font-family:"Segoe UI","Malgun Gothic",sans-serif}
body:has(.pc-layout) #modal .button{border-radius:5px}body:has(.pc-layout) #modal .button.primary{background:#2459a6;border-color:#2459a6}body:has(.pc-layout) #modal input,body:has(.pc-layout) #modal select{border-radius:5px}
}
@media screen {
.mobile-layout .workspace-location{display:none}
@scope (.pc-layout){.registration-fields{gap:0}.registration-secondary{margin-top:18px;padding-top:18px}.registration-actions{margin-top:18px}.registration-primary{margin:0}.registration-fields .field{margin-bottom:0}}
}
@media screen { @scope (.pc-layout) {
.main:not(.mobile-workspace) .worksheet{min-width:1493px}
.main:not(.mobile-workspace) .worksheet.has-weld{min-width:1603px}
.main:not(.mobile-workspace) .worksheet td.row-actions,.main:not(.mobile-workspace) .worksheet thead tr:last-child th:last-child{position:sticky;right:0;z-index:4;background:#fff;box-shadow:-1px 0 #dce3ec}
.main:not(.mobile-workspace) .worksheet thead tr:last-child th:last-child{background:#f5f7fa;z-index:12}
.main:not(.mobile-workspace) .worksheet td:nth-last-child(2),.main:not(.mobile-workspace) .worksheet thead tr:last-child th:nth-last-child(2){position:static;box-shadow:none}
.report-unified .report-table .report-team-total th{background:#eef3f9}
.barfill{background:#6688b2}
}}

/* Final readability pass: bounded entry forms, work priority and comfortable type. */
@media screen { @scope (.pc-layout) {
.main.desktop-registration{max-width:1440px;margin-inline:auto;padding-top:28px}
.desktop-registration .pagehead{margin-bottom:22px}
h1{font-size:26px;line-height:1.35}.sectionhead h2{font-size:18px}
.registration-card{padding:22px 26px 0;border-top:1px solid #d9e0e9;border-radius:8px}
.registration-group-title{grid-column:1/-1;font-size:14px;line-height:20px;font-weight:700;letter-spacing:0;color:#243f60;margin:0 0 2px;display:flex;align-items:center;gap:9px}
.registration-group-title::before{content:'';width:3px;height:14px;border-radius:1px;background:#5e7ea7;flex-shrink:0}
.registration-primary,.registration-secondary{gap:12px 16px}
.registration-secondary{margin-top:24px;padding-top:22px;border-top:1px solid #e6ebf1}
.registration-fields .field{gap:8px}.registration-fields .field>span{font-size:13px;font-weight:600;color:#536176}
.registration-fields input,.registration-fields select{font-size:15px;height:44px;line-height:1.4;padding:9px 11px;border-color:#c4cfdd}
.registration-fields input:disabled,.registration-fields select:disabled{border-color:#e0e6ed}
.registration-actions{margin:24px -26px 0;padding:14px 26px;border-radius:0 0 8px 8px;background:#f8fafc}
.registration-actions .button{height:40px;min-width:144px;font-size:14px}
.registration-saved th,.registration-saved td{font-size:13px;padding:10px 12px}
.navlink{font-size:14px}.defect-subnav .navlink{font-size:13px}.workspace-location{font-size:13px}
.filters .button,#report-filter .button{font-size:13px;min-height:36px;font-weight:500}
.filters input,#report-filter input{font-size:14px;height:38px}.filter-group>span,.report-team-filter>strong{font-size:13px;font-weight:600}
.stats .stat{padding:16px 18px;min-height:112px}.stat-label{font-size:14px;font-weight:500;color:#536176}.stat-label svg{width:18px;height:18px}
.stat-value{font-size:32px;line-height:38px;letter-spacing:-1px;margin-top:6px}.stat-value small{font-size:13px}
.stat-note{font-size:12px;line-height:18px;color:#64748b}.stats .stat:nth-child(1){background:#f0f5fb}.stats .stat:nth-child(3){background:#f6f4fa}.stats .stat:nth-child(4){background:#f1f7f4}
.dashboard-page .stats .stat.attention{background:#fff7e8;border-color:#ddb976;box-shadow:inset 0 3px #b88837}
.dashboard-page .stat.attention .stat-label{font-weight:650;color:#8c5d18}.dashboard-page .stat.attention .stat-value{font-size:36px;color:#895b19}
.teamcard{padding:16px 18px}.team-name{font-size:16px}.teamcard strong{font-size:28px;line-height:34px;margin:6px 0}.team-count,.teamcard .muted{font-size:12px;line-height:19px}.teamcard strong small{font-size:12px;font-weight:400;letter-spacing:0}
.teamcard.is-empty{border-top-color:#acb6c4;background:#f8fafc}.teamcard.is-empty .team-name{color:#64748b}.teamcard.is-empty strong{color:#8793a3}.teamcard.has-pending{border-color:#97acbf}.teamcard.has-pending .team-name{color:#193e63;font-weight:700}.teamcard.has-pending strong{color:#193e63}
.main:not(.mobile-workspace) .worksheet th{font-size:13px;line-height:20px;padding:8px 6px}
.main:not(.mobile-workspace) .worksheet td{font-size:14px;line-height:20px;height:46px;padding:6px}
.main:not(.mobile-workspace) .worksheet input,.main:not(.mobile-workspace) .worksheet select,.main:not(.mobile-workspace) .worksheet td:nth-child(n) input{height:36px;min-height:36px;font-size:14px;line-height:20px;padding:6px}
.main:not(.mobile-workspace) .worksheet .row-actions .button{font-size:13px;min-height:32px;padding:5px 8px}
.main:not(.mobile-workspace) .worksheet .column-groups th{font-size:12px;height:30px;padding:5px 8px}
.worksheet .badge{font-size:12px;padding:4px 6px}.review-save-note{font-size:12px;line-height:18px}
.recent-records td,.recent-records th,.rework-table td,.rework-table th{font-size:14px}
.rework-panel table td{font-size:14px;padding:10px 8px}.rework-panel table th{font-size:13px;padding:9px 8px}
.report-unified .report-table td,.report-unified .report-table tbody th{font-size:14px;padding:12px 18px}
.report-unified .report-table thead th{font-size:13px}.report-unified-head h2{font-size:18px}.report-unified .chartnote,.report-banner p{font-size:12px}.tabs button{font-size:14px}
.master-list td{font-size:14px}.master-list th{font-size:13px}.master-list-heading p{font-size:12px}.master-detail .field{font-size:13px}
@media(min-width:1280px){.registration-primary{grid-template-columns:minmax(132px,1fr) minmax(190px,1.3fr) 160px minmax(150px,1fr) minmax(230px,1.65fr)}.registration-secondary{grid-template-columns:minmax(220px,1.5fr) minmax(220px,1.5fr) 100px minmax(150px,1fr)}}
@media(min-width:1024px) and (max-width:1279px){.registration-primary{grid-template-columns:repeat(6,minmax(0,1fr))}.registration-primary .field{grid-column:span 2}.registration-primary .field-2,.registration-primary .field-3{grid-column:span 3}.registration-secondary{grid-template-columns:repeat(6,minmax(0,1fr))}.registration-secondary .field-4,.registration-secondary .field-5{grid-column:span 3}.registration-secondary .field-6{grid-column:span 2}.registration-secondary .field-7{grid-column:span 4}}
@media(max-width:1023px){.registration-group-title{grid-column:1/-1}.main.desktop-registration{padding-top:20px}.registration-card{padding:20px 18px 0}.registration-actions{margin-left:-18px;margin-right:-18px;padding-inline:18px}}
}}
