:root{color-scheme:light;--bg:#f5f6fa;--surface:#fff;--surface-2:#f8f9fb;--ink:#182032;--muted:#7c8595;--line:#e9ebf0;--nav:#151e30;--nav-text:#8996ac;--primary:#f05c4b;--primary-pale:#fff0ec;--blue:#5575e9;--blue-pale:#edf0ff;--green:#259b73;--green-pale:#e5f8f0;--yellow:#d59b24;--yellow-pale:#fff7e4;--radius:20px;--shadow:0 12px 38px rgba(23,36,66,.055);font-family:'DM Sans','Segoe UI',system-ui,-apple-system,sans-serif}
:root[data-theme='dark']{color-scheme:dark;--bg:#111722;--surface:#1b2332;--surface-2:#232d3e;--ink:#f5f7fb;--muted:#a0adbf;--line:#354154;--nav:#0c121d;--nav-text:#9caac0;--primary:#ff7262;--primary-pale:#442c30;--blue:#8ca3ff;--blue-pale:#283355;--green:#6be0ae;--green-pale:#213b35;--yellow:#ffcf74;--yellow-pale:#473b2b;--shadow:0 15px 42px rgba(0,0,0,.12)}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}input,textarea,select{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px;outline:none;min-height:44px;padding:10px 13px;width:100%;transition:border-color .15s,box-shadow .15s}textarea{min-height:106px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(240,92,75,.11)}input[type=checkbox]{width:17px;min-height:17px;accent-color:var(--primary)}label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:12px;color:var(--muted)}small,.small{font-size:12px}.muted{color:var(--muted)}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{font-family:'Manrope','DM Sans',sans-serif;letter-spacing:-.045em}h1{font-size:30px;line-height:1.18}h2{font-size:20px;line-height:1.28}h3{font-size:16px;line-height:1.34}p{line-height:1.55}button:focus-visible,a:focus-visible{outline:3px solid var(--primary);outline-offset:3px}.i{width:19px;height:19px;flex:0 0 auto;display:inline-block;vertical-align:middle}.i.small-icon{width:16px;height:16px}.i.large-icon{width:23px;height:23px}
.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;z-index:30;left:0;top:0;bottom:0;width:245px;background:var(--nav);color:#fff;display:flex;flex-direction:column;padding:30px 17px 19px}.brand{display:flex;align-items:center;gap:14px;margin:2px 9px 43px}.brand-mark{display:grid;place-items:center;width:64px;height:64px;flex:none;border-radius:16px;background:#000 url('pcs-logo.webp') center/cover no-repeat;color:transparent;font-size:0;line-height:0;box-shadow:0 10px 26px rgba(240,92,75,.22);border:1px solid rgba(255,255,255,.08);overflow:hidden}.brand-word{font:800 17px 'Manrope',sans-serif;letter-spacing:-.04em;line-height:1}.brand-word span{display:block;margin-top:5px;font:700 9px 'DM Sans',sans-serif;letter-spacing:.21em;color:#929daf}.nav-group-title{font-size:10px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:#63718a;padding:0 13px;margin-bottom:13px}.nav{display:grid;gap:4px;margin-bottom:30px}.nav-link{display:flex;align-items:center;gap:13px;border:0;border-radius:12px;background:transparent;color:var(--nav-text);font-weight:700;font-size:13px;padding:12px 13px;width:100%;text-align:left;transition:.15s}.nav-link:hover{background:#242e42;color:#fff}.nav-link.active{background:#2d3445;color:#fff}.nav-link.active .i{color:var(--primary)}.nav-link .counter{margin-left:auto;background:var(--primary);padding:2px 7px;border-radius:99px;color:#fff;font-size:10px}.sidebar-bottom{margin-top:auto;border-top:1px solid #293246;padding-top:21px}.sidebar-bottom .member-pill{background:#202b3d;border:1px solid #29364a;display:flex;align-items:center;gap:10px;padding:11px;border-radius:14px}.sidebar-bottom .member-pill .label-wrap{min-width:0}.sidebar-bottom strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.sidebar-bottom small{color:#8c9ab0}
.avatar{width:38px;height:38px;flex:0 0 auto;border-radius:13px;display:grid;place-items:center;background:#ffe3dc;color:#ba4c3e;font-weight:800;font-size:13px}.avatar.blue{background:#dce7ff;color:#4968a8}.avatar.purple{background:#eee1fa;color:#8664b5}.avatar.green{background:#ddf4e9;color:#278265}.avatar.cream{background:#f8edcf;color:#927533}.avatar.large{width:48px;height:48px;font-size:16px}.workspace{margin-left:245px;min-width:0;flex:1;max-width:calc(100% - 245px)}.topbar{height:82px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(24px,4vw,60px)}.crumb{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px;font-weight:700}.crumb .slash{color:#c2c8d1}.crumb strong{color:var(--ink)}.top-actions{display:flex;align-items:center;gap:12px}.crumb:before{content:'';display:block;width:34px;height:34px;border-radius:10px;background:#000 url('pcs-logo.webp') center/cover no-repeat;box-shadow:0 8px 18px rgba(240,92,75,.12);flex:none}.top-actions .small-avatar{display:flex;align-items:center;gap:11px;margin-left:7px;padding-left:19px;border-left:1px solid var(--line);font-weight:800;font-size:12px}.icon-btn{width:40px;height:40px;border:1px solid var(--line);border-radius:12px;display:grid;place-items:center;background:var(--surface);color:var(--ink);position:relative}.icon-btn:hover{background:var(--surface-2)}.dot{position:absolute;right:8px;top:7px;background:var(--primary);width:8px;height:8px;border-radius:50%;border:2px solid var(--surface)}.content{max-width:1550px;margin:0 auto;padding:34px clamp(22px,4vw,60px) 80px}.demo-ribbon{padding:11px 24px;background:#fff2db;color:#84610a;border-bottom:1px solid #f9e3bc;text-align:center;font-weight:750;font-size:12px}.page-eyebrow,.eyebrow{color:var(--primary);font-size:11px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:24px}.page-heading h1{margin:9px 0 6px}.page-heading p{margin:0;color:var(--muted)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.section-heading h2{margin:0;font-size:19px}.section-heading p{margin:5px 0 0;color:var(--muted);font-size:12px}.link-btn{background:none;border:0;display:inline-flex;align-items:center;gap:6px;padding:7px;color:var(--primary);font-weight:800;font-size:12px}.link-btn:hover{text-decoration:underline}
.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:43px;padding:11px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-weight:800;white-space:nowrap;text-align:center;transition:transform .14s,background .14s;line-height:1.15}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--primary);color:white;border-color:var(--primary);box-shadow:0 6px 16px rgba(240,92,75,.16)}.btn.dark{background:#212c40;border-color:#212c40;color:#fff}.btn.ghost{background:transparent}.btn.soft{background:var(--primary-pale);border-color:transparent;color:var(--primary)}.btn.success{background:var(--green-pale);border-color:transparent;color:var(--green)}.btn.danger{color:#d54242;background:#ffeded;border-color:transparent}.btn.tiny{font-size:11px;padding:8px 11px;min-height:32px;border-radius:9px}.btn:disabled{opacity:.5;cursor:not-allowed}.inline-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.hero{border-radius:23px;min-height:238px;position:relative;overflow:hidden;color:#fff;background:radial-gradient(circle at 89% 52%,#39445b 0,#273349 33%,#172235 74%);padding:36px 40px;display:flex;justify-content:space-between;align-items:center;gap:18px;box-shadow:var(--shadow);margin-bottom:21px}.hero::before{content:'';position:absolute;width:300px;height:300px;right:6%;top:-95px;border:55px solid rgba(255,255,255,.035);border-radius:50%;transform:rotate(-25deg)}.hero::after{content:'';position:absolute;width:240px;height:240px;right:-68px;bottom:-160px;border:42px solid rgba(239,88,73,.1);border-radius:50%}.hero-copy{position:relative;z-index:1;max-width:530px}.hero-kicker{color:#ff9b8c;text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:800;margin-bottom:13px}.hero h1{font-size:clamp(25px,3vw,37px);line-height:1.19;margin-bottom:12px}.hero p{color:#bec8d7;max-width:420px;font-size:13px;margin-bottom:20px}.hero .btn{background:#f05c4b;color:#fff;border-color:#f05c4b}.hero-decoration{position:relative;display:grid;place-items:center;min-width:185px;min-height:170px}.hero-insignia{font:800 55px 'Manrope',sans-serif;letter-spacing:-.12em;border:2px solid rgba(255,255,255,.15);border-radius:46px;transform:rotate(-11deg);padding:38px 25px;color:rgba(255,255,255,.83);box-shadow:0 0 0 17px rgba(255,255,255,.035)}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:29px}.stat-card{padding:22px 24px;display:flex;justify-content:space-between;align-items:center;min-height:117px}.card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.stat-card .stat-value{display:block;font:800 28px 'Manrope',sans-serif;letter-spacing:-.07em;color:var(--ink);margin:7px 0 4px}.stat-card small{color:var(--muted);font-weight:700}.stat-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:15px}.stat-icon.red{background:var(--primary-pale);color:var(--primary)}.stat-icon.blue{background:var(--blue-pale);color:var(--blue)}.stat-icon.green{background:var(--green-pale);color:var(--green)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr);gap:26px}.card-list{padding:0 22px}.item-row{display:flex;align-items:center;gap:14px;padding:19px 0;border-bottom:1px solid var(--line)}.item-row:last-child{border-bottom:0}.item-main{min-width:0;flex:1}.item-title{font-weight:800;color:var(--ink);line-height:1.45}.item-desc{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.5}.date-tile{width:51px;height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;background:var(--primary-pale);border-radius:13px;color:var(--primary)}.date-tile b{font:800 23px 'Manrope',sans-serif;line-height:1}.date-tile span{font-size:10px;text-transform:uppercase;font-weight:800;margin-top:3px}.news-symbol{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:var(--blue-pale);color:var(--blue);flex:none}.status{padding:5px 10px;border-radius:30px;font-weight:800;font-size:10px;white-space:nowrap}.status.going,.status.delivered{background:var(--green-pale);color:var(--green)}.status.new{background:var(--yellow-pale);color:var(--yellow)}.status.ordered{background:var(--blue-pale);color:var(--blue)}.status.muted-status{background:var(--surface-2);color:var(--muted)}.quick-links{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.quick-link{border:1px solid var(--line);background:var(--surface);border-radius:15px;padding:19px;display:flex;align-items:center;gap:12px;text-align:left;color:var(--ink);font-weight:800}.quick-link:hover{border-color:var(--primary)}.quick-link .symbol{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--primary-pale);color:var(--primary)}
.panel{padding:24px;margin-bottom:18px}.panel .panel-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:21px}.panel .panel-header h2{margin:0}.grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.training-card{padding:23px;display:flex;flex-direction:column;gap:16px;min-height:215px}.training-card .training-head{display:flex;align-items:start;justify-content:space-between;gap:10px}.training-card h3{margin:0 0 7px}.training-card p{font-size:12px;color:var(--muted);margin-bottom:6px}.training-card .train-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto}.training-card .train-actions .btn{flex:1}.subtle-divider{border:0;height:1px;background:var(--line);margin:15px 0}.empty{padding:48px 22px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:16px}.empty .i{width:35px;height:35px;color:var(--muted)}.empty h3{color:var(--ink);margin:14px 0 6px}.empty p{margin:0}
.news-card{padding:23px;margin-bottom:16px}.news-card .news-meta{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;margin-bottom:15px}.news-card h3{font-size:18px;margin:0 0 11px}.news-card p{white-space:pre-wrap;color:var(--muted);margin:0}.news-card .news-tools{display:flex;justify-content:end;margin-top:10px}.table-wrap{width:100%;overflow-x:auto}.data-table{border-collapse:collapse;width:100%;text-align:left}.data-table th{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-weight:800;padding:14px 16px;background:var(--surface-2)}.data-table td{border-bottom:1px solid var(--line);padding:15px 16px;font-size:12px;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table td strong{font-size:12px}.member-id{display:flex;align-items:center;gap:11px}.member-id .avatar{width:33px;height:33px;border-radius:10px}.search-wrap{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--surface);padding:0 12px;border-radius:11px}.search-wrap input{border:0;box-shadow:none;min-width:190px}.search-wrap input:focus{box-shadow:none}.tag{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:8px;background:var(--surface-2);font-size:11px;color:var(--muted);font-weight:800}.total-sum{display:flex;align-items:center;justify-content:space-between;padding:18px;background:var(--surface-2);border-radius:12px;margin-top:14px}.total-sum strong{font-size:22px}
.profile-box{display:flex;align-items:center;gap:18px;background:var(--surface);border:1px solid var(--line);padding:24px;border-radius:var(--radius);margin-bottom:18px}.profile-box .avatar{width:64px;height:64px;border-radius:18px;font-size:21px}.profile-box h2{margin:0 0 4px}.stack{display:grid;gap:15px}.stack.compact{gap:10px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-row{display:flex;gap:10px;align-items:end}.form-row label{flex:1}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border-bottom:0}.switch{width:50px;height:27px;border-radius:40px;display:inline-flex;align-items:center;padding:4px;border:0;background:#bec5d0;flex:none;transition:.2s}.switch.on{background:var(--primary)}.switch .switch-thumb{background:#fff;width:19px;height:19px;border-radius:100%;transform:translateX(0);box-shadow:0 2px 6px rgba(0,0,0,.12);transition:.2s}.switch.on .switch-thumb{transform:translateX(22px)}.notice-row{padding:17px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);display:flex;gap:14px;align-items:center;margin-bottom:10px}.notice-row.unread{border-left:3px solid var(--primary)}.notice-icon{height:40px;width:40px;border-radius:12px;display:grid;place-items:center;background:var(--primary-pale);color:var(--primary);flex:none}.chat-messages{display:flex;flex-direction:column;gap:17px;min-height:240px;max-height:460px;overflow:auto;padding:7px 2px}.chat-msg{display:flex;align-items:start;gap:11px;max-width:90%}.chat-msg.own{margin-left:auto;flex-direction:row-reverse}.bubble{background:var(--surface-2);padding:12px 15px;border-radius:3px 14px 14px 14px;line-height:1.5;white-space:pre-wrap}.chat-msg.own .bubble{background:var(--primary-pale);border-radius:14px 3px 14px 14px}.chat-person{font-size:11px;font-weight:800;color:var(--muted);margin-bottom:5px}.chat-input{display:flex;gap:11px;margin-top:16px}.chat-input input{flex:1}.media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.media-tile{position:relative;overflow:hidden;border-radius:16px;background:var(--surface);border:1px solid var(--line)}.media-view{aspect-ratio:4/3;background:var(--surface-2);display:grid;place-items:center;overflow:hidden}.media-view img,.media-view video{width:100%;height:100%;object-fit:cover}.media-info{padding:14px}.media-info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-info small{display:block;margin-top:5px;color:var(--muted)}.order-person{padding:14px;background:var(--surface-2);border-radius:12px;margin-top:8px}
.modal-overlay{position:fixed;inset:0;z-index:90;background:rgba(12,19,30,.64);backdrop-filter:blur(4px);display:grid;place-items:center;padding:20px}.modal{background:var(--surface);border-radius:21px;border:1px solid var(--line);width:min(100%,590px);max-height:min(90vh,900px);overflow:auto;box-shadow:0 25px 90px rgba(0,0,0,.22)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:22px 25px;border-bottom:1px solid var(--line)}.modal-header h2{margin:0}.modal-body{padding:23px 25px 27px}.modal-footer{display:flex;justify-content:flex-end;gap:9px;padding-top:10px}.toast{position:fixed;right:24px;bottom:27px;z-index:110;max-width:360px;background:#202b40;color:white;display:flex;align-items:center;gap:10px;padding:14px 19px;border-radius:13px;box-shadow:0 15px 45px rgba(0,0,0,.19);font-weight:750}.toast.error{background:#b33d34}.loader{width:35px;height:35px;border:3px solid var(--line);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-initial{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:16px}.loading-initial .brand-mark{width:124px;height:124px;border-radius:26px;box-shadow:0 16px 40px rgba(240,92,75,.18)}.loading-initial p{font-size:13px;color:var(--muted)}.login-page{display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 20% 20%,#314059 0,transparent 32%),#111827;min-height:100vh}.auth-card{width:min(100%,435px);padding:35px;background:var(--surface);border-radius:24px;box-shadow:0 25px 90px rgba(0,0,0,.22)}.auth-card h1{font-size:30px;margin:18px 0 10px}.auth-card>p{margin-bottom:26px}.auth-card .brand-mark{width:122px;height:122px;border-radius:26px;margin:0 auto 12px}.error-banner{background:#ffebea;border:1px solid #ffc4be;padding:13px;border-radius:11px;color:#ae302f;font-size:12px}.login-foot{color:#8f9aab;text-align:center;font-size:11px;margin-top:27px}.footnote{font-size:11px;color:var(--muted);line-height:1.7}.mobile-bottom{display:none}
@media(max-width:1100px){.dashboard-grid{grid-template-columns:1fr}.sidebar{width:215px}.workspace{margin-left:215px;max-width:calc(100% - 215px)}.topbar{padding:0 24px}.content{padding:28px 24px 70px}.grid-three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.sidebar{display:none}.workspace{margin:0;max-width:100%}.topbar{height:70px;padding:0 19px}.crumb span.slash,.crumb span.first-crumb{display:none}.top-actions .small-avatar{margin:0;padding:0;border:0}.top-actions .small-avatar>span{display:none}.crumb:before{width:28px;height:28px;border-radius:9px}.content{padding:21px 17px 105px}.mobile-bottom{display:flex;position:fixed;z-index:55;bottom:0;left:0;right:0;padding:8px 9px calc(9px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);justify-content:space-around;box-shadow:0 -7px 24px rgba(28,35,58,.055)}.mobile-tab{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:60px;flex:1;border:0;background:none;color:var(--muted);font-weight:800;font-size:9px;padding:6px 2px}.mobile-tab.active{color:var(--primary)}.mobile-tab .i{width:21px;height:21px}.page-heading{align-items:start}.page-heading h1{font-size:26px}.page-heading .btn{padding:10px 11px;min-height:39px;font-size:11px}.hero{min-height:207px;padding:24px 24px}.hero h1{font-size:25px}.hero p{font-size:12px}.hero-decoration{display:none}.stats-grid{gap:9px}.stat-card{min-height:94px;padding:15px 12px;align-items:flex-start;gap:7px}.stat-card .stat-value{font-size:22px;margin:5px 0 3px}.stat-card small{font-size:10px}.stat-icon{width:31px;height:31px;border-radius:10px}.stat-icon .i{width:16px;height:16px}.grid-three{grid-template-columns:1fr}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:1fr}.card-list{padding:0 16px}.item-row{padding:14px 0}.panel{padding:18px}.modal-overlay{padding:10px;align-items:end}.modal{max-height:92vh;border-radius:20px 20px 15px 15px}.modal-body{padding:21px 18px 24px}.modal-header{padding:19px}.toast{bottom:95px;left:13px;right:13px;max-width:none}.grid-two{grid-template-columns:1fr}}
@media(max-width:390px){.top-actions{gap:6px}.top-actions .icon-btn{width:35px;height:35px}.stats-grid{grid-template-columns:1fr 1fr}.stats-grid .stat-card:last-child{grid-column:span 2}.page-heading p{font-size:12px}.hero h1{font-size:23px}.quick-links{gap:9px}.quick-link{padding:14px;gap:8px;font-size:12px}}
@media print{
 @page{size:A4 landscape;margin:11mm}
 :root{color-scheme:light!important;--bg:#fff;--surface:#fff;--ink:#111;--muted:#555;--line:#ddd}
 body{background:#fff!important;color:#111!important;font-size:10px}
 .sidebar,.topbar,.mobile-bottom,.demo-ribbon,.page-heading .btn,.panel-header .btn,.modal-overlay,.toast,.link-btn,.hero,.quick-links,.icon-btn{display:none!important}
 .workspace{margin:0!important;max-width:100%!important}.content{max-width:none!important;padding:0!important}
 .card,.panel{box-shadow:none!important;border:1px solid #ddd!important;border-radius:4px!important;break-inside:avoid}
 .panel{padding:9px!important}.data-table th,.data-table td{font-size:9px!important;padding:6px!important;color:#111!important}
 .table-wrap{overflow:visible!important}.data-table{width:100%!important}
 select{border:0!important;appearance:none!important;background:transparent!important;padding:0!important;min-height:0!important}
 .page-heading{display:block;margin-bottom:12px}.page-heading h1{font-size:19px}
}

/* v1.1: every available module accessible on mobile, incl. admin. */
.sidebar{overflow-y:auto;scrollbar-width:thin}.sidebar .nav{flex-shrink:0}
.sidebar-preview{background:#29354a;color:#f4f6fa;border:1px solid #39475b;border-radius:11px;padding:10px 12px;display:flex;align-items:center;gap:9px;font-weight:800;margin:0 3px 25px;font-size:12px}
.sidebar-preview:hover{background:#35465e}.top-preview{display:flex;gap:7px;align-items:center;justify-content:center;background:var(--primary-pale);border:1px solid var(--line);color:var(--primary);border-radius:10px;padding:10px 12px;font-size:12px;font-weight:800;white-space:nowrap}
.preview-banner{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--surface);border-left:3px solid var(--primary);border-radius:12px;padding:11px 15px;margin-bottom:20px;font-size:12px;color:var(--muted)}.preview-banner strong{color:var(--ink)}.preview-banner button{margin-left:auto;flex:none;color:var(--primary);background:transparent;border:0;font-weight:800}
.admin-overview{margin-top:24px}.admin-function-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.admin-function{display:flex;align-items:center;gap:10px;text-align:left;min-width:0;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);border-radius:13px;padding:13px;font-size:12px}.admin-function:hover,.admin-function:focus-visible{border-color:var(--primary)}.admin-function strong{flex:1;min-width:0}.admin-function>span{color:var(--primary)}.admin-function>.i{width:15px;height:15px;color:var(--muted)}
.more-overlay{display:none}.more-panel .counter{color:var(--primary);background:var(--primary-pale);padding:4px 8px;border-radius:30px;font-weight:800;font-size:11px}
@media(max-width:750px){
.top-preview{padding:9px}.top-preview span{display:none}.admin-function-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-overview .section-heading{align-items:flex-start;flex-wrap:wrap}
.more-overlay{display:flex;position:fixed;inset:0;z-index:70;background:rgba(12,19,30,.56);align-items:flex-end}
.more-panel{background:var(--surface);width:100%;border-radius:24px 24px 0 0;max-height:calc(100dvh - 50px);overflow:hidden;display:flex;flex-direction:column;padding-bottom:calc(78px + env(safe-area-inset-bottom));box-shadow:0 -16px 50px rgba(0,0,0,.16)}
.more-header{display:flex;justify-content:space-between;align-items:start;padding:20px 21px 16px;border-bottom:1px solid var(--line)}.more-header strong{font-size:20px;font-weight:850}.more-header p{color:var(--muted);font-size:12px;margin:5px 0 0}
.more-scroll{padding:6px 16px 20px;overflow-y:auto;overscroll-behavior:contain}.more-scroll h3{margin:16px 7px 10px;font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.12em}.more-item{width:100%;display:flex;align-items:center;gap:13px;padding:13px 10px;background:transparent;border:0;border-bottom:1px solid var(--line);color:var(--ink);text-align:left;font-size:13px;font-weight:750}.more-item>span:nth-child(2){flex:1}.more-item.active{color:var(--primary)}.more-item-icon{color:var(--primary)}.more-item>.i:last-child{width:16px;height:16px;color:var(--muted)}
.preview-row{display:flex;align-items:center;gap:12px;margin:15px 16px 4px;padding:14px 15px;border-radius:12px;border:1px solid var(--line);background:var(--primary-pale);color:var(--ink);font-weight:800}.preview-row span{flex:1;text-align:left}.preview-row .i{color:var(--primary)}
.preview-banner{flex-wrap:wrap}.preview-banner button{margin-left:0;width:100%;text-align:left;padding:5px 0}
}
@media(max-width:390px){.admin-function-grid{grid-template-columns:1fr 1fr}.admin-function{padding:11px 9px;gap:6px}}
@media print{.more-overlay,.preview-banner,.admin-overview,.top-preview{display:none!important}}

/* v1.2: leesbare proefleskaarten op smalle schermen */
.trial-mobile{display:none}
@media(max-width:650px){.trial-desktop{display:none}.trial-mobile{display:grid;gap:12px;margin-top:12px}.trial-card{padding:15px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.trial-card p{font-size:13px;color:var(--muted);overflow-wrap:anywhere}.trial-card .muted{overflow-wrap:anywhere}.trial-card .inline-actions{flex-wrap:wrap}}
/* v1.3 • duidelijke acties, RSVP-groepen en serieplanner */
.clickable-stat{appearance:none;text-align:left;color:inherit;font:inherit;width:100%;cursor:pointer}
.clickable-stat:hover{border-color:var(--primary);transform:translateY(-2px)}
.clickable-stat:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
.rsvp-details{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.rsvp-details summary{font-size:12px;font-weight:800;cursor:pointer;color:var(--ink);padding:6px 0}
.rsvp-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:11px}
.rsvp-group{background:var(--surface-2);border:1px solid var(--line);padding:10px 12px;border-radius:11px;min-width:0}
.rsvp-group strong{font-size:12px}
.rsvp-group p{font-size:12px;color:var(--muted);line-height:1.5;margin:5px 0 0;overflow-wrap:anywhere}
.btn.selected-maybe{background:var(--yellow-pale);color:var(--yellow);border-color:var(--yellow)}
.weekday-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:9px}
.weekday-grid label{font-size:12px;display:flex;flex-direction:column;align-items:center;gap:7px;border:1px solid var(--line);border-radius:8px;padding:8px 2px;color:var(--ink)}
.weekday-grid input{width:17px;min-height:17px}
.report-bar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}
.birthday-admin .section-heading{margin-bottom:12px}
.birthday-admin .setting-row:last-child{border-bottom:0}
[hidden]{display:none!important}
@media(max-width:650px){.rsvp-groups{grid-template-columns:1fr}.weekday-grid{gap:3px}.weekday-grid label{font-size:10px}.train-actions{gap:6px}.training-card .btn.tiny{white-space:normal}}

.dashboard-item-button{width:100%;text-align:left;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.dashboard-item-button:hover{background:var(--surface-2)}

/* Actieknoppen blijven op mobiel leesbaar */
.training-card .train-actions button[data-action="attendance"]{flex:1 1 28%;min-width:78px}
.training-card .train-actions button[data-action="view-roster"],.training-card .train-actions button[data-action="edit-training"]{flex:1 1 40%;min-width:90px}

/* PCS Connect v1.4 — uitgebreid ledenprofiel */
.member-modal{width:min(100%,710px);max-height:min(94vh,1000px)}
.member-modal .modal-header{position:sticky;top:0;background:var(--surface);z-index:2}
.member-modal .modal-footer{position:sticky;bottom:-27px;background:var(--surface);border-top:1px solid var(--line);padding:14px 0 0;margin-top:10px;z-index:2}
.member-form-content{display:grid;gap:16px}
.member-profile-header{display:flex;align-items:center;gap:17px;padding:4px 0 10px}
.member-profile-avatar .avatar{width:81px;height:81px;border-radius:50%;font-size:22px}
.avatar.member-picture{padding:0;overflow:hidden;background:var(--surface-2)}
.avatar.member-picture img{width:100%;height:100%;object-fit:cover}
.member-file-label{position:relative;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;cursor:pointer;border:1px solid var(--line);border-radius:10px;padding:9px 12px;font-size:12px;width:max-content;color:var(--ink);font-weight:800}
.member-file-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.member-file-label:focus-within{outline:2px solid var(--primary)}
.member-subhead{margin:8px 0 -5px;font-size:14px;font-weight:850;border-bottom:1px solid var(--line);padding-bottom:10px;color:var(--ink)}
.member-toggle-list{border:1px solid var(--line);background:var(--surface-2);padding:4px 14px;border-radius:13px;display:grid;gap:0}
.member-toggle-list>.muted{padding:0 0 8px;font-size:11px}
.member-toggle{display:flex;align-items:center;justify-content:space-between;flex-direction:row;gap:12px;border-bottom:1px solid var(--line);padding:12px 0;color:var(--ink);font-size:12px;cursor:pointer}
.member-toggle:last-child{border-bottom:0}
.member-toggle input{width:21px;min-height:21px;height:21px;flex:none;accent-color:var(--primary);cursor:pointer}
.member-history{padding-top:5px}
.member-section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:4px 0 11px;flex-wrap:wrap}
.member-section-title h3{margin:0;font-size:17px}
.member-history-controls{display:flex;gap:10px;align-items:end;margin-bottom:13px}
.member-history-controls label{flex:1;min-width:0}
.member-history-controls .btn{margin-bottom:0;min-height:44px}
.member-history-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 13px}
.member-history-stats>div{border:1px solid var(--line);border-radius:12px;padding:12px;display:grid;gap:5px;text-align:center}
.member-history-stats strong{font-size:21px;font-weight:850;color:var(--ink)}
.member-history-stats small{font-size:11px;color:var(--muted)}
.member-history-rows{max-height:320px;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;padding:0 12px}
.member-history-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--line);padding:11px 3px;font-size:12px}
.member-history-row:last-child{border-bottom:0}
.member-history-row span:first-child{display:grid;gap:4px}
.member-history-row small{color:var(--muted);display:block;font-size:11px}
.history-chip{font-weight:800;font-size:10px;padding:6px 9px;border-radius:8px;white-space:nowrap}
.history-chip.present{background:var(--green-pale);color:var(--green)}
.history-chip.excused{background:var(--yellow-pale);color:var(--yellow)}
.history-chip.absent{background:var(--primary-pale);color:var(--primary)}
@media(max-width:750px){.member-modal{max-height:95dvh}.member-modal .modal-body{padding:15px 17px 23px}.member-form-content{gap:14px}.member-profile-header{align-items:flex-start}.member-profile-avatar .avatar{width:67px;height:67px}.member-history-controls .btn{padding:11px}.member-section-title .muted{font-size:11px}}
@media(max-width:375px){.member-history-stats{gap:5px}.member-history-stats>div{padding:9px 5px}.member-history-stats strong{font-size:18px}}


/* v1.4.1 — breedtes veilig houden op alle schermen */
.workspace,.content,.card,.panel,.page-heading,.panel-header,.table-wrap,.grid-two,.grid-three{min-width:0}
.page-heading>div:first-child,.panel-header>div:first-child{min-width:0}
.page-heading h1,.panel-header h2,.card h2,.card h3{overflow-wrap:break-word}
.panel .panel-header{flex-wrap:wrap;align-items:flex-start}
.panel .panel-header>h2,.panel .panel-header>div:first-child{flex:1 1 180px}
.panel-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;max-width:100%;min-width:0}
.panel-actions .btn{white-space:normal;min-width:0}
.table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.data-table{min-width:580px}
.mobile-order-list{display:none}
/* Acties staan onder de uitleg; mobiele bestellingen worden kaarten */
@media(max-width:750px){
 .page-heading{flex-direction:column;align-items:stretch;gap:15px}
 .page-heading>div:first-child{width:100%}
 .page-heading>.btn{width:100%;align-self:stretch;min-height:44px;font-size:13px}
 .panel .panel-header{flex-direction:column;align-items:stretch;gap:12px}
 .panel .panel-header>h2,.panel .panel-header>div:first-child{flex:0 1 auto;width:100%}
 .panel-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .panel-actions .btn{width:100%;font-size:12px;min-height:42px;padding:10px 8px;white-space:normal;overflow-wrap:anywhere}
 .panel .panel-header>.inline-actions{width:100%;justify-content:flex-start}
 .order-table-wrap{display:none}
 .mobile-order-list{display:grid;gap:12px}
 .mobile-order-card{min-width:0;padding:15px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line);display:grid;gap:11px}
 .mobile-order-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
 .mobile-order-title{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}
 .mobile-order-title strong{font-size:14px}
 .mobile-order-meta{display:grid;grid-template-columns:minmax(88px,35%) minmax(0,1fr);gap:12px;align-items:start;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
 .mobile-order-meta>div{min-width:0}
 .mobile-order-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding-top:9px;border-top:1px solid var(--line)}
 .mobile-order-status{flex:1;min-width:0;font-size:11px}
 .mobile-order-status select{max-width:100%;min-width:0;min-height:40px}
 .mobile-order-footer .btn{min-height:40px}
 .panel .search-wrap{max-width:100%;width:100%}
 .panel .search-wrap input{min-width:0}
 .form-row{flex-wrap:wrap}
 .form-row>label{min-width:min(100%,180px)}
 .modal-footer{flex-wrap:wrap}
}
@media(max-width:350px){
 .panel-actions{grid-template-columns:1fr}
 .mobile-order-meta{grid-template-columns:1fr;gap:2px}
 .panel{padding:14px}
 .content{padding-left:12px;padding-right:12px}
 .top-actions{gap:5px}
}
@media print{
 .order-table-wrap{display:block!important}
 .mobile-order-list{display:none!important}
}


/* Kleine telefoons: 2 kolommen zonder vaste minimale inhoudsbreedte */
.quick-links{grid-template-columns:repeat(2,minmax(0,1fr))}
.quick-link,.quick-link strong,.admin-function strong{min-width:0;overflow-wrap:anywhere}
@media(min-width:751px) and (max-width:1100px){
 .topbar{gap:9px}
 .topbar .crumb{min-width:0;flex:1;overflow:hidden;white-space:nowrap}
 .topbar .top-actions{flex:0 0 auto;gap:7px}
 .topbar .top-actions .small-avatar{margin-left:0;padding-left:8px}
 .topbar .top-actions .small-avatar>span{display:none}
}

/* v1.4.2 — training check-in by RSVP filters; mobile-first roster */
.checkin-modal{width:min(100%,790px);max-height:min(95dvh,1000px)}
.checkin-modal .modal-header{position:sticky;top:0;z-index:3;background:var(--surface)}
.checkin-modal .modal-footer{position:sticky;bottom:-27px;z-index:3;background:var(--surface);border-top:1px solid var(--line);margin-top:10px;padding:14px 0 0}
.checkin-panel{min-width:0;display:grid;gap:14px}
.checkin-intro{display:grid;gap:4px}
.checkin-intro strong{font-size:16px;overflow-wrap:anywhere}
.checkin-intro span{font-size:12px;color:var(--muted)}
.checkin-panel>.footnote{margin:0}
.checkin-summary{background:var(--surface-2);border:1px solid var(--line);border-radius:13px;display:flex;justify-content:space-between;align-items:center;gap:7px;flex-wrap:wrap;padding:12px 14px}
.checkin-summary strong{color:var(--ink);font-size:13px}
.checkin-summary span{color:var(--muted);font-size:12px}
.checkin-filter-label{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:800}
.checkin-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.checkin-filter{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:42px;padding:8px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);border-radius:11px;font-size:12px;font-weight:700;cursor:pointer;flex-wrap:wrap}
.checkin-filter.is-active{background:var(--primary-pale);color:var(--primary);border-color:var(--primary)}
.checkin-filter:focus-visible,.checkin-choice:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
.checkin-filter-count{font-size:11px;border-radius:99px;min-width:22px;line-height:19px;padding:0 5px;background:var(--surface);color:var(--ink);text-align:center}
.checkin-search-label{font-size:12px;font-weight:700;color:var(--muted)}
.checkin-search{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:12px;padding:0 12px;min-width:0;background:var(--surface)}
.checkin-search svg{flex:none;color:var(--muted)}
.checkin-search input{width:100%;min-width:0;border:0;background:transparent;box-shadow:none;padding:12px 0;font-size:14px;color:var(--ink)}
.checkin-list-header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.checkin-list-header strong{font-size:14px}.checkin-list-header span{font-size:12px;color:var(--muted)}
.checkin-list{display:grid;gap:9px;min-width:0}
.checkin-row{min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);padding:13px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.checkin-member{min-width:0;flex:1}
.checkin-member-name{font-size:13px;font-weight:800;overflow-wrap:anywhere}
.checkin-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
.checkin-rsvp,.checkin-actual{display:inline-block;border-radius:8px;font-weight:700;padding:3px 7px;font-size:10px;background:var(--surface);color:var(--muted)}
.checkin-rsvp.going,.checkin-actual.present{background:#e2f7ed;color:#166c4b}
.checkin-rsvp.maybe,.checkin-actual.excused{background:#fff3d3;color:#936600}
.checkin-rsvp.not_going,.checkin-actual.absent{background:#fee8e8;color:#ac3338}
.checkin-choices{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.checkin-choice{background:var(--surface);color:var(--muted);border:1px solid var(--line);min-height:37px;border-radius:9px;padding:7px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;font-weight:800;cursor:pointer}
.checkin-choice .i{width:14px;height:14px}
.checkin-choice.is-selected.present{color:#176b49;background:#e2f7ed;border-color:#73cba4}
.checkin-choice.is-selected.excused{color:#936600;background:#fff3d3;border-color:#e8c578}
.checkin-choice.is-selected.absent{color:#ad3539;background:#fee8e8;border-color:#ef9b9f}
.checkin-choice:disabled{opacity:.6;cursor:progress}
.checkin-empty{padding:22px 12px;text-align:center;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:13px;line-height:1.5}
@media(max-width:750px){.checkin-modal{max-height:95dvh}.checkin-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.checkin-row{align-items:stretch;flex-direction:column;gap:10px}.checkin-choices{justify-content:stretch;width:100%}.checkin-choice{flex:1;min-width:0}.checkin-summary{align-items:flex-start}}
@media(max-width:350px){.checkin-filters{gap:5px}.checkin-filter{font-size:11px;padding:7px 4px}.checkin-choice span{font-size:10px}}

/* v1.5 Exportcentrum: aparte pagina, geschikt voor elk scherm */
.export-layout{display:grid;gap:18px;max-width:1080px}
.export-step{margin-bottom:0;min-width:0}
.export-step-head{display:flex;align-items:flex-start;gap:13px;margin-bottom:19px}
.export-step-head h2{margin:1px 0 5px;font-size:19px}
.export-step-head p{margin:0;font-size:12px;color:var(--muted)}
.export-step-bubble{display:grid;place-items:center;flex:none;background:var(--primary-pale);color:var(--primary);font-size:14px;font-weight:900;width:34px;height:34px;border-radius:11px}
.export-kind-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.export-kind{display:flex;text-align:left;align-items:flex-start;gap:12px;border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:15px;color:var(--ink);min-width:0}
.export-kind.current{border:2px solid var(--primary);padding:14px;background:var(--primary-pale)}
.export-kind>.i{width:23px;height:23px;flex:none;color:var(--primary)}
.export-kind span{display:grid;gap:6px;min-width:0}.export-kind strong{font-size:13px}.export-kind small{font-size:11px;color:var(--muted);line-height:1.5}
.export-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.export-filters label{min-width:0}.export-filters select,.export-filters input{min-width:0;width:100%}
.export-column-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:13px}
.export-column-toolbar>span{font-size:12px;color:var(--muted);font-weight:750}
.export-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.export-column{display:flex;flex-direction:row;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);border-radius:11px;min-width:0;font-size:12px;line-height:1.3;cursor:pointer}
.export-column.checked{border-color:var(--primary);background:var(--primary-pale)}
.export-column input{flex:none;margin:0;width:17px;min-height:17px;height:17px}.export-column span{overflow-wrap:anywhere}
.export-privacy{margin:14px 0 0;display:flex;gap:9px;align-items:flex-start;font-size:11px;color:var(--muted);line-height:1.5}
.export-no-fields{border:1px dashed var(--primary);padding:15px;border-radius:12px;font-size:13px}
.export-preview-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:12px;flex-wrap:wrap;font-size:13px}
.export-table-wrap{width:100%;max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.export-table{border-collapse:collapse;min-width:100%;width:max-content;max-width:none}
.export-table th,.export-table td{text-align:left;padding:12px 13px;border-bottom:1px solid var(--line);font-size:12px;min-width:105px;max-width:255px;overflow-wrap:anywhere}
.export-table th{background:var(--surface-2);text-transform:uppercase;letter-spacing:.06em;font-size:10px;color:var(--muted)}
.export-table tbody tr:last-child td{border-bottom:0}
.export-downloads{display:flex;gap:10px;flex-wrap:wrap;margin:19px 0 10px}.export-downloads .btn{min-width:162px}
@media(max-width:750px){.export-layout{gap:13px}.export-kind-grid{grid-template-columns:1fr 1fr}.export-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.export-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.export-step-head h2{font-size:17px}.export-column-toolbar .inline-actions{gap:5px}.export-column-toolbar .btn{padding:7px 8px}}
@media(max-width:390px){.export-kind-grid{grid-template-columns:1fr}.export-filters{grid-template-columns:1fr}.export-columns{grid-template-columns:1fr 1fr;gap:6px}.export-column{padding:9px 7px;font-size:11px}.export-downloads .btn{flex:1 1 100%}}
@media print{.export-step:not(:last-child),.export-downloads{display:none!important}}

/* v1.6: de langere beheernavigatie blijft ook op kleine desktops bereikbaar. */
@media (min-width:751px) {.sidebar{overflow-y:auto;overscroll-behavior:contain;} .sidebar .nav{flex-shrink:0;} .sidebar-bottom{position:relative;}}

/* v1.6.5 Website-inschrijvingen: compacte mobiele kaarten */
.webreg-cards{display:none}
.webreg-card{display:grid;gap:8px;border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--surface-2);min-width:0;overflow-wrap:anywhere}
.webreg-card .btn{justify-self:start;min-height:40px}
.webreg-warning{font-size:12px;font-weight:700;color:#9b541c}
@media(max-width:750px){.webreg-table{display:none}.webreg-cards{display:grid;gap:10px}}

/* v1.7 privéberichten: responsieve gesprekken zonder horizontale schermoverloop */
.dm-layout{display:grid;grid-template-columns:minmax(220px,0.38fr) minmax(0,1fr);gap:16px;align-items:start;min-width:0}
.dm-layout .panel{min-width:0;overflow-wrap:anywhere}
.dm-peers{display:grid;gap:6px;margin-top:18px}
.dm-peer{display:flex;gap:9px;align-items:center;text-align:left;min-width:0;padding:9px;border:1px solid var(--border);border-radius:12px;background:transparent;color:var(--ink);cursor:pointer}
.dm-peer.active{border-color:var(--primary);background:var(--surface-hover,rgba(120,120,120,.07))}
.dm-peer span:nth-child(2){min-width:0;flex:1;overflow-wrap:anywhere}
.dm-thread{display:flex;flex-direction:column;gap:10px;max-height:430px;overflow-y:auto;min-height:80px;margin:14px 0;padding:4px}
.dm-msg{max-width:88%;align-self:flex-start;padding:10px 13px;border-radius:12px;background:var(--surface-hover,rgba(120,120,120,.09));overflow-wrap:anywhere}
.dm-msg.own{align-self:flex-end;background:var(--accent-soft,rgba(223,90,77,.13))}
.dm-msg p{margin:6px 0 0;white-space:pre-wrap}
.dm-msg small{opacity:.7}
@media(max-width:780px){.dm-layout{grid-template-columns:minmax(0,1fr)}.dm-thread{max-height:340px}.dm-msg{max-width:95%}}

/* PCS Connect v1.8 bestelbeheer */
.shop-filter-bar{padding:14px 18px}.shop-filters{flex-wrap:wrap;gap:7px}
.shop-round-grid,.shop-orders-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.shop-round-card,.shop-order-card{padding:17px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2);min-width:0}
.shop-round-title,.shop-order-header{display:flex;justify-content:space-between;align-items:start;gap:10px;min-width:0;flex-wrap:wrap}
.shop-round-title strong,.shop-order-header strong{overflow-wrap:anywhere}
.shop-product-tags{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.shop-product-tags span{border:1px solid var(--line);padding:7px 9px;border-radius:9px;font-size:11px;overflow-wrap:anywhere}
.shop-round-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:12px}
.shop-order-header{border-bottom:1px solid var(--line);padding-bottom:12px}
.shop-order-lines{display:grid;gap:8px;margin:12px 0}
.shop-item-row{display:flex;justify-content:space-between;gap:10px;border:1px solid var(--line);padding:10px;border-radius:11px;min-width:0;align-items:center}
.shop-item-row>div:first-child{min-width:0;overflow-wrap:anywhere}.shop-item-row p{margin:4px 0}.shop-delivery-cell{flex:0 0 auto}
.shop-delivery-cell input{max-width:78px;min-height:39px}.shop-delivery-cell label{font-size:11px}
.shop-order-footer,.shop-summary{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding-top:11px;border-top:1px solid var(--line)}
.shop-summary{margin-top:18px;padding-top:15px}
.shop-select-filter{max-width:350px;margin-bottom:13px}.shop-product-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.shop-product-option{display:flex;flex-direction:row;gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:10px;color:var(--ink);min-width:0}.shop-product-option input{width:20px;height:20px;flex:none}.shop-product-option span{min-width:0}.shop-product-option small{display:block;color:var(--muted);margin-top:4px}
@media(max-width:850px){.shop-round-grid,.shop-orders-grid{grid-template-columns:1fr}}
@media(max-width:430px){.shop-product-options{grid-template-columns:1fr}.shop-round-card,.shop-order-card{padding:13px}.shop-item-row{align-items:flex-start}.shop-round-actions .btn{white-space:normal}.shop-filter-bar{padding:12px}.shop-filters .btn{flex:1 1 auto}}

/* v1.9 – direct filters shared by everyday lists, not just exports */
.quick-panel{padding:20px 22px;margin:0 0 20px;min-width:0}
.quick-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.quick-heading strong{display:flex;gap:8px;align-items:center;font-size:16px;color:var(--ink)}
.quick-heading strong .i{color:var(--primary)}
.quick-heading p{margin:5px 0 0;color:var(--muted);font-size:12px}
.quick-count{font-size:12px;flex:0 0 auto;background:var(--surface-2);border:1px solid var(--line);padding:10px 12px;border-radius:999px;font-weight:700;color:var(--muted)}
.quick-count b{color:var(--primary);font-size:17px;margin-right:3px}
.quick-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}
.quick-controls label{min-width:0;overflow-wrap:anywhere}
.quick-search{grid-column:span 2}
.quick-controls input,.quick-controls select{width:100%;min-width:0;margin:0}
.quick-controls .search-wrap{width:100%;max-width:none;position:relative}
.quick-controls .search-wrap .i{position:absolute;top:50%;left:13px;transform:translateY(-50%);pointer-events:none;color:var(--muted)}
.quick-controls .search-wrap input{padding-left:40px;width:100%}
.quick-presets{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:15px}
.quick-presets>span{font-size:12px;color:var(--muted);font-weight:700;margin-right:4px}
.quick-chip{display:inline-flex;align-items:center;min-height:34px;padding:7px 11px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);border-radius:999px;font-size:12px;font-weight:700;white-space:normal;text-align:center}
.quick-chip.chosen{background:var(--primary-pale);border-color:var(--primary);color:var(--primary)}
.quick-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:1000px){.quick-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.quick-panel{padding:15px 14px}.quick-controls{grid-template-columns:minmax(0,1fr)}.quick-search{grid-column:auto}.quick-heading{align-items:center}.quick-count{font-size:11px}.quick-count b{font-size:15px}.quick-controls label{font-size:12px}.quick-foot{align-items:center}}
.quick-expand{margin-top:13px;width:100%;padding:10px 11px;text-align:left;border:1px solid var(--line);background:var(--surface-2);border-radius:10px;color:var(--ink);font-weight:750;font-size:12px;min-height:40px}
.quick-expand span{font-weight:500;color:var(--muted)}
.quick-controls.advanced{margin-top:13px}
.member-quick-cards{display:none}
.member-quick-card{padding:14px 2px;border-bottom:1px solid var(--line);display:grid;gap:10px}
.member-quick-card:last-child{border-bottom:0}
.member-quick-title{display:flex;align-items:center;gap:12px;min-width:0}
.member-quick-title span{min-width:0}
.member-quick-title strong,.member-quick-title small{display:block;overflow-wrap:anywhere}
.member-quick-title small{font-size:11px;color:var(--muted);margin-top:4px}
.member-quick-meta{display:flex;gap:5px;flex-wrap:wrap}
.member-quick-card .btn{justify-self:start}
@media(max-width:640px){.member-quick-cards{display:block}.member-quick-cards~.empty{display:block}.member-quick-cards+.empty{display:block}.member-quick-cards .member-quick-card:first-child{padding-top:2px}.quick-presets>span{width:100%}.quick-panel{margin-bottom:14px}.quick-controls{grid-template-columns:1fr}}
@media(max-width:640px){.members-table-wrap{display:none}}

/* PCS Connect v1.12 — responsive professional branding */

/* The emblem has a quiet framing, and enough pixels to remain legible. */
.brand-mark{width:82px;height:82px;border-radius:18px;box-shadow:0 10px 30px rgba(0,0,0,.24);background-color:#000;background-position:center;background-size:cover;background-repeat:no-repeat;border:1px solid rgba(255,255,255,.13);flex:none}
.brand{gap:13px;margin:0 3px 35px;align-items:center;min-width:0}
.brand-word{font-size:16px;letter-spacing:-.025em}
.brand-word span{margin-top:7px;letter-spacing:.2em}
/* One clear identity mark per area: desktop sidebar, mobile header. */
.crumb:before{display:none}
.auth-card{box-shadow:0 24px 85px rgba(2,8,20,.32)}
.auth-card .brand-mark{width:172px;height:172px;border-radius:28px;margin:0 auto 18px;border:1px solid rgba(255,255,255,.13);box-shadow:0 16px 44px rgba(0,0,0,.23)}
.auth-card>.eyebrow,.auth-card>h1,.auth-card>p{text-align:center}
.auth-card h1{line-height:1.14;letter-spacing:-.035em}
/* Custom in-app launch screen, matching the OS install colors. */
.loading-initial{min-height:100vh;min-height:100dvh;background:radial-gradient(circle at 50% 40%,#243147 0%,#111926 45%,#080d14 100%);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center}
.loading-initial .brand-mark{width:224px;height:224px;border-radius:34px;box-shadow:0 20px 70px rgba(0,0,0,.35);border:1px solid #313b4b;margin-bottom:20px}
.loading-initial .loading-app-title{font-size:29px;letter-spacing:.055em;font-weight:850;line-height:1.15}
.loading-initial .loading-app-subtitle{font-size:10px;letter-spacing:.24em;font-weight:750;color:#aab7c9}
.loading-initial p{color:#aab7c9;font-size:12px;margin:15px 0 0}
.loading-initial .launch-indicator{display:block;margin-top:16px;width:76px;height:3px;border-radius:999px;background:rgba(255,255,255,.17);overflow:hidden}
.loading-initial .launch-indicator:after{content:'';display:block;width:43%;height:100%;border-radius:inherit;background:#ef4d3e;animation:pcsLaunch 1.3s ease-in-out infinite alternate}
@keyframes pcsLaunch{from{transform:translateX(0)}to{transform:translateX(133%)}}
/* Optional presentation of the brand launch screen from Settings. */
.pcs-brand-preview{position:fixed;inset:0;z-index:120;display:grid;place-items:center;background:radial-gradient(circle at 50% 42%,#243147 0%,#111926 45%,#080d14 100%);color:#fff;padding:20px;text-align:center}
.pcs-brand-preview-inner{display:flex;flex-direction:column;align-items:center;gap:14px}
.pcs-brand-preview .brand-mark{width:220px;height:220px;border-radius:34px;margin:0 0 12px;border:1px solid #313b4b;box-shadow:0 20px 70px rgba(0,0,0,.35)}
.pcs-brand-preview strong{font-size:27px;letter-spacing:.055em}
.pcs-brand-preview small{font-size:10px;letter-spacing:.24em;color:#aab7c9;font-weight:700}
.pcs-brand-preview .btn{margin-top:22px;min-width:160px}
@media(max-width:750px){
 .topbar{height:76px;padding:0 14px;gap:8px}
 .crumb{min-width:0;gap:9px;font-size:13px}
 .crumb:before{display:block;width:43px;height:43px;border-radius:12px;background-size:cover;box-shadow:0 5px 15px rgba(0,0,0,.12);border:1px solid var(--line)}
 .top-actions{gap:5px}
 .top-actions .small-avatar{margin:0;padding:0;border:0}
 .auth-card{padding:28px 24px}
 .auth-card .brand-mark{width:164px;height:164px;border-radius:28px}
 .loading-initial .brand-mark,.pcs-brand-preview .brand-mark{width:210px;height:210px}
}
@media(max-width:359px){
 .topbar{padding:0 10px}
 .crumb{font-size:12px;gap:6px}
 .crumb:before{width:38px;height:38px}
 .top-actions{gap:3px}
 .auth-card{padding:24px 18px}
 .auth-card .brand-mark{width:152px;height:152px}
}
@media(prefers-reduced-motion:reduce){.loading-initial .launch-indicator:after{animation:none;transform:none}}

.brand-mark{background-image:url('pcs-logo.webp')}
.crumb:before{background-image:url('pcs-logo.webp')}

/* v1.12.3 — uniforme statistiekkaarten en compacte snelkoppelingen */
.stats-grid .stat-card{min-width:0;gap:16px;text-align:left}
.stats-grid .stat-card>div{min-width:0;flex:1}
.stats-grid .stat-card>.stat-icon{flex:0 0 46px;align-self:center}
.quick-links .quick-link{min-width:0;padding:15px 17px;min-height:66px}
.quick-links .quick-link>.symbol{flex:0 0 36px}
.quick-links .quick-link>.small-icon{margin-left:auto;flex-shrink:0;opacity:.65}
@media(max-width:750px){
 .stats-grid .stat-card{gap:8px}
 .stats-grid .stat-card>.stat-icon{flex-basis:31px}
 .quick-links .quick-link{min-height:58px;padding:12px;gap:9px}
 .quick-links .quick-link>.symbol{flex-basis:33px;width:33px;height:33px}
}

/* v1.12.4 — meldingen zijn zichtbaar en met toetsenbord te openen. */
.notice-row{gap:9px}
.notice-open{flex:1;min-width:0;border:0;background:transparent;color:var(--ink);display:flex;align-items:center;gap:14px;text-align:left;font:inherit;cursor:pointer;padding:3px 0}
.notice-open:hover .notice-copy strong{color:var(--primary)}
.notice-open:focus-visible{outline:2px solid var(--primary);outline-offset:5px;border-radius:6px}
.notice-copy{min-width:0;display:block;overflow-wrap:anywhere}
.notice-copy strong,.notice-copy .item-desc,.notice-copy .notice-date{display:block}
.notice-date{margin-top:5px}
.notice-next{display:flex;align-items:center;gap:6px;color:var(--primary);font-size:11px;font-weight:800;white-space:nowrap;margin-left:auto}
.shop-order-card.shop-order-highlight{outline:3px solid var(--primary);outline-offset:2px;scroll-margin:110px}
@media(max-width:650px){.notice-row{align-items:flex-start;flex-wrap:wrap}.notice-open{align-items:flex-start;width:100%}.notice-next{font-size:0;margin-left:auto}.notice-next svg{width:22px;height:22px}.notice-row>.btn{margin-left:auto}.notice-copy{flex:1}}
