:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#182033;background:#f4f6f9;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html,body,#root{width:100%;max-width:100%;overflow-x:hidden}body{margin:0;min-width:320px;min-height:100vh;background:#f4f6f9}button,input,select{font:inherit}button{cursor:pointer}.app-shell{display:grid;grid-template-columns:236px 1fr;min-height:100vh;width:100%;max-width:100vw;overflow-x:hidden}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid #e3e8f0;display:flex;flex-direction:column;z-index:20}.side-head{height:64px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf1f6}.brand{color:#2f62d6;font-weight:800;letter-spacing:0}.side-brand{display:grid;gap:3px}.side-brand span{color:#8b97a8;font-size:12px}.nav{padding:14px 10px;display:grid;gap:4px}.nav-item{width:100%;border:0;background:transparent;color:#617086;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:7px;text-align:left;min-height:40px}.nav-item:hover,.nav-item.active{color:#2459cf;background:#eef4ff}.nav-item.muted{color:#7a8798}.side-foot{margin-top:auto;padding:12px 10px 18px;border-top:1px solid #edf1f6}.main{min-width:0;padding:0 24px 32px}.topbar{height:76px;display:flex;align-items:center;gap:16px;justify-content:space-between}.topbar h1{margin:2px 0 0;font-size:22px;line-height:1.2}.crumb{color:#8b97a8;font-size:12px}.top-actions{display:flex;align-items:center;gap:12px}.profile{display:grid;justify-items:end;gap:2px;font-size:13px}.profile small{color:#8b97a8}.icon-btn{width:36px;height:36px;border:1px solid #dce3ee;background:#fff;color:#536175;border-radius:7px;display:inline-flex;align-items:center;justify-content:center}.icon-btn:hover{color:#2459cf;border-color:#b8c8ea}.icon-btn.small{width:30px;height:30px;border-radius:6px}.mobile-only{display:none}.content-stack{display:grid;gap:16px;min-width:0;max-width:100%}.content-stack>*{min-width:0;max-width:100%}.toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.toolbar.right{justify-content:flex-end}.refresh-status{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:4px 6px 4px 10px;border:1px solid #dde5f0;background:#fff;border-radius:8px;color:#617086;font-size:12px;white-space:nowrap}.refresh-dot{width:8px;height:8px;border-radius:50%;background:#cbd5e1;flex:0 0 auto}.refresh-dot.on{background:#18a058;box-shadow:0 0 0 3px #e8f7ef}.refresh-dot.off{background:#d6a021;box-shadow:0 0 0 3px #fff5e8}.segmented{position:relative;display:inline-grid;--tab-width: 136px;grid-template-columns:repeat(var(--tab-count),var(--tab-width));background:#fff;border:1px solid #dde5f0;border-radius:8px;padding:3px;overflow:hidden;width:max-content;max-width:100%}.segmented button{position:relative;z-index:1;border:0;border-radius:6px;background:transparent;color:#617086;min-height:32px;padding:0 12px;transition:color .18s ease;min-width:0;white-space:nowrap;width:100%}.segmented-indicator{position:absolute;z-index:0;top:3px;bottom:3px;left:3px;width:var(--tab-width);border-radius:6px;background:#2f62d6;transform:translate(calc(var(--tab-index) * 100%));transition:transform .22s ease;pointer-events:none}.segmented button.active{color:#fff}.segmented button:hover{background:transparent;color:#617086}.segmented button.active:hover{color:#fff}.segmented button:active{transform:none}.metric-grid{display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:14px}.metric{position:relative;min-height:104px;background:#fff;border:1px solid #e3e8f0;border-radius:8px;padding:16px;display:grid;align-content:space-between;gap:10px}.metric.compact{min-height:92px;padding:14px}.metric-help{position:absolute;top:12px;right:12px;z-index:2;width:24px;height:24px;border-radius:50%;color:#98a3b3;display:inline-flex;align-items:center;justify-content:center;cursor:help;outline:none}.metric-help:hover,.metric-help:focus-visible{color:#647186;background:#f1f5f9}.metric-tooltip{position:absolute;right:0;top:calc(100% + 8px);width:260px;max-width:min(260px,calc(100vw - 48px));border:1px solid #dfe7f2;border-radius:8px;background:#fff;box-shadow:0 14px 36px #0f172a29;color:#334155;font-size:12px;font-weight:500;line-height:1.45;padding:9px 10px;white-space:normal;opacity:0;visibility:hidden;transform:translateY(-3px);transition:opacity .14s ease,transform .14s ease,visibility .14s ease;pointer-events:none}.metric-help:hover .metric-tooltip,.metric-help:focus-visible .metric-tooltip{opacity:1;visibility:visible;transform:translateY(0)}.metric>span:not(.metric-help){color:#6d7a8e;font-size:13px}.metric strong{font-size:24px;line-height:1}.metric.compact strong{font-size:20px}.metric-icon{width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#2f62d6;background:#eef4ff}.metric.green .metric-icon,.metric.green strong{color:#188451}.metric.green .metric-icon{background:#e8f7ef}.metric.red .metric-icon,.metric.red strong{color:#c83b3b}.metric.red .metric-icon{background:#fff0f0}.metric.orange .metric-icon,.metric.orange strong{color:#b96713}.metric.orange .metric-icon{background:#fff5e8}.metric.blue .metric-icon,.metric.blue strong{color:#2459cf}.panel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.panel{background:#fff;border:1px solid #e3e8f0;border-radius:8px;min-width:0;max-width:100%}.panel-title{min-height:54px;padding:14px 16px;border-bottom:1px solid #edf1f6;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;max-width:100%}.panel-title h2{margin:0;font-size:15px}.panel-title-left{display:flex;align-items:center;gap:10px;min-width:0}.panel-title-left h2{overflow-wrap:anywhere}.panel-actions,.summary-chips{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.summary-chips span{min-height:30px;border:1px solid #edf1f6;border-radius:7px;background:#fbfcfe;color:#617086;display:inline-flex;align-items:center;gap:5px;padding:0 10px;font-size:12px}.summary-chips strong{color:#182033}.panel-loader{min-height:180px;display:flex;align-items:center;justify-content:center;gap:10px;color:#617086;font-size:14px}.mini-grid{padding:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.table-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain}.table-controls{padding:12px 16px;border-bottom:1px solid #edf1f6;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-width:0;max-width:100%}.filter-group{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;min-width:0}.table-search{display:inline-flex;align-items:center;gap:8px;min-height:36px;width:min(420px,100%);border:1px solid #dde5f0;background:#fff;border-radius:8px;padding:4px 6px 4px 10px;color:#617086}.table-search input{min-width:120px;flex:1;border:0;outline:0}.date-filters{display:inline-flex;align-items:center;gap:8px;color:#617086;font-size:14px;flex-wrap:wrap}.date-filters select{min-height:40px;border:1px solid #dfe7f2;border-radius:8px;background:#f8fafc;color:#334155;padding:0 12px;font-size:14px;outline:none;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}.date-filters select:hover,.date-chip:hover{background:#fff;border-color:#c8d5e6}.date-filters select:focus,.date-chip:focus-visible,.date-picker.open .date-chip{background:#fff;border-color:#2f62d6;box-shadow:0 0 0 3px #dbe7ff}.date-picker{position:relative;display:inline-flex}.date-chip{min-width:178px;min-height:40px;border:1px solid #dfe7f2;border-radius:8px;background:#f8fafc;color:#334155;display:inline-flex;align-items:center;gap:8px;padding:0 10px;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}.date-chip-label{color:#8b97a8;font-size:12px;font-weight:700}.date-chip-value{min-width:96px;text-align:left;color:#182033;font-size:14px;font-weight:500}.date-chip-value.placeholder{color:#98a3b3}.date-chip svg{color:#617086;flex:0 0 auto}.date-popover{position:absolute;z-index:80;top:calc(100% + 8px);left:0;width:292px;border:1px solid #dfe7f2;border-radius:12px;background:#fff;box-shadow:0 16px 40px #0f172a24;padding:12px}.date-popover-head{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;gap:8px;margin-bottom:12px}.date-month{min-height:34px;border-radius:8px;background:#f8fafc;color:#182033;display:flex;align-items:center;justify-content:center;font-weight:700}.date-nav{width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:#617086;display:inline-flex;align-items:center;justify-content:center}.date-nav:hover,.date-action:hover{background:#eef4ff;color:#2459cf}.date-weekdays,.date-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.date-weekdays{margin-bottom:6px}.date-weekdays span{min-height:24px;color:#8b97a8;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}.date-weekdays .weekend,.date-day.weekend{color:#e5484d}.date-day{height:34px;border:0;border-radius:8px;background:transparent;color:#182033;font-size:13px;font-weight:500;transition:background-color .16s ease,color .16s ease,transform .1s ease}.date-day:hover{background:#eef4ff;color:#2459cf}.date-day:active{transform:scale(.96)}.date-day.outside{color:#b7c0cd}.date-day.today{background:#f0f6ff;color:#2459cf;font-weight:800}.date-day.selected,.date-day.selected:hover{background:#2f62d6;color:#fff;box-shadow:0 6px 14px #2f62d638}.date-popover-actions{display:flex;justify-content:space-between;gap:8px;padding-top:10px;margin-top:8px;border-top:1px solid #edf1f6}.date-action{min-height:32px;border:0;border-radius:7px;background:#f8fafc;color:#2459cf;padding:0 10px;font-weight:700}.date-action.muted{color:#617086}.pagination{display:inline-flex;align-items:center;gap:8px;color:#617086;font-size:12px;white-space:nowrap}.pagination select{min-height:30px;border:1px solid #d7e0ec;border-radius:6px;background:#fff;color:#334155;padding:0 8px}table{width:100%;border-collapse:collapse;min-width:760px}.data-table{table-layout:fixed;width:100%}th,td{padding:12px 14px;border-bottom:1px solid #edf1f6;text-align:left;font-size:13px;vertical-align:middle;white-space:nowrap}.data-table th,.data-table td{overflow:hidden;text-overflow:ellipsis}th{color:#647186;font-weight:700;background:#fbfcfe}.sort-head{width:100%;border:0;background:transparent;color:inherit;display:inline-flex;align-items:center;gap:6px;padding:0;font-weight:700;text-align:left}.sort-head span{min-width:0;overflow:hidden;text-overflow:ellipsis}.sort-head.active{color:#2459cf}.data-table th.sorted-column,.data-table td.sorted-column{background:#eefaf2}tr:hover td{background:#fbfdff}tr:hover td.sorted-column{background:#e5f6eb}.clickable-row{cursor:pointer}.clickable-cell{display:inline-flex;align-items:center;gap:6px;color:#2459cf;font-weight:700}.empty{color:#8b97a8;text-align:center}.table-loading{height:72px}.table-loading,.table-loading span{color:#617086}.table-loading{text-align:center}.table-loading .spin{margin-right:8px;vertical-align:middle}.btn{border:1px solid #d7e0ec;background:#fff;color:#334155;min-height:36px;padding:0 12px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn,.icon-btn,.link-btn,.nav-item,.sort-head,.segmented button{cursor:pointer}.btn,.icon-btn,.nav-item,.sort-head{transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .1s ease,box-shadow .16s ease}.btn:hover,.icon-btn:hover,.nav-item:hover,.sort-head:hover{background-color:#eef4ff;color:#2459cf}.btn.primary:hover{background-color:#2459cf;border-color:#2459cf;color:#fff}.link-btn:hover{color:#174bb8;background-color:#eef4ff;border-radius:5px}.link-btn.danger:hover{color:#a82d2d;background-color:#fff0f0}.btn:active,.icon-btn:active,.link-btn:active,.nav-item:active,.sort-head:active{transform:translateY(1px) scale(.99)}.btn:focus-visible,.icon-btn:focus-visible,.link-btn:focus-visible,.nav-item:focus-visible,.sort-head:focus-visible,.segmented button:focus-visible{outline:0;box-shadow:0 0 0 3px #dbe7ff}.btn.primary{background:#2f62d6;border-color:#2f62d6;color:#fff}.btn.wide{width:100%}.btn.compact{min-height:38px;padding:0 12px;border-radius:6px;font-size:13px}.btn.danger{border-color:#ffd0d0;color:#c83b3b;background:#fff7f7}.btn.danger:hover{border-color:#f2a9a9;color:#a82d2d;background:#fff0f0}.btn:disabled,.link-btn:disabled{opacity:.55;cursor:not-allowed}.link-btn{border:0;background:transparent;color:#2459cf;padding:0}.link-btn.danger{color:#c83b3b}.row-actions{display:flex;gap:10px}.id-cell,.copyable-text,.profile-title-id{display:inline-flex;align-items:center;gap:7px;min-width:0}.copy-id-btn{width:24px;height:24px;border:0;border-radius:6px;background:transparent;color:#8b97a8;display:inline-flex;align-items:center;justify-content:center}.copy-id-btn:hover,.copy-id-btn:focus-visible{background:#eef4ff;color:#2459cf}.copy-id-btn:active{transform:scale(.94)}.action-select{min-height:32px;max-width:145px;border:1px solid #d7e0ec;border-radius:7px;background:#fff;color:#334155;padding:0 8px;outline:none;font-size:13px}.action-select:hover,.action-select:focus{border-color:#b8c8ea;background:#eef4ff;color:#2459cf}.status-select.ok{border-color:#cdebd9;background:#e8f7ef;color:#188451}.status-select.bad{border-color:#ffd0d0;background:#fff0f0;color:#c83b3b}.status-select:hover,.status-select:focus{background:#fff}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:120;background:#0f172a47;display:grid;place-items:center;padding:24px}.modal-panel{width:min(520px,100%);max-height:min(720px,calc(100vh - 48px));overflow:hidden;border:1px solid #dfe7f2;border-radius:10px;background:#fff;box-shadow:0 24px 60px #0f172a38;display:grid}.columns-modal{grid-template-rows:auto minmax(0,1fr) auto}.modal-head{padding:16px;border-bottom:1px solid #edf1f6;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.modal-head h2{margin:0;font-size:17px}.modal-head p{margin:5px 0 0;color:#7a8798;font-size:13px}.columns-list{padding:12px;display:grid;gap:8px;min-height:0;overflow-y:auto}.column-item{min-height:42px;border:1px solid #edf1f6;border-radius:8px;background:#fbfcfe;display:grid;grid-template-columns:28px 1fr;align-items:center;gap:8px;padding:0 10px}.column-item:hover{border-color:#c8d5e6;background:#fff}.column-item.dragging{opacity:.56;border-color:#2f62d6;background:#eef4ff}.drag-handle{color:#8b97a8;cursor:grab}.column-item label{display:flex;align-items:center;gap:9px;color:#334155;font-size:14px;min-width:0}.column-item input{width:16px;height:16px;accent-color:#2f62d6}.modal-actions{padding:14px 16px;border-top:1px solid #edf1f6;display:flex;justify-content:flex-end;gap:10px}.status{display:inline-flex;min-height:24px;align-items:center;border-radius:6px;padding:0 8px;font-size:12px;background:#eef1f5;color:#647186}.status.ok{background:#e8f7ef;color:#188451}.status.bad{background:#fff0f0;color:#c83b3b}.status.wait{background:#fff5e8;color:#b96713}.badges{display:flex;gap:6px}.badges span{background:#eef4ff;color:#2459cf;border-radius:6px;padding:3px 7px;font-size:12px}.muted-text{color:#98a3b3}.money-delta{color:#182033;font-weight:700}.money-delta.positive{color:#188451}.money-delta.negative{color:#c83b3b}.searchbar{background:#fff;border:1px solid #dde5f0;border-radius:8px;padding:8px 10px;display:flex;align-items:center;gap:10px;max-width:520px}.searchbar input{border:0;outline:0;flex:1;min-width:100px}.role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.role-card{background:#fff;border:1px solid #e3e8f0;border-radius:8px;padding:16px;display:grid;gap:12px}.role-card h3{margin:0 0 6px;font-size:15px}.role-card p{margin:0;color:#6d7a8e;font-size:13px;line-height:1.45}.role-card span{color:#2459cf;font-size:13px}.inline-edit{display:inline-flex;gap:8px;align-items:center}.inline-edit input{width:72px;min-height:32px;border:1px solid #d7e0ec;border-radius:7px;padding:0 8px}.assign-body{padding:16px;display:grid;gap:14px}.assign-body>input{max-width:220px;min-height:38px;border:1px solid #d7e0ec;border-radius:7px;padding:0 10px}.role-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.role-checks label{display:flex;align-items:center;gap:8px;color:#536175;font-size:13px}.ok-text{color:#188451;font-size:13px}.alert{border:1px solid #ffd0d0;background:#fff5f5;color:#b83030;border-radius:8px;padding:12px 14px}.success-box{border:1px solid #bfe8cf;background:#f0fbf5;color:#188451;border-radius:8px;padding:10px 12px;font-size:13px}.toast{position:fixed;z-index:1000;top:18px;left:50%;transform:translate(-50%);min-height:42px;min-width:180px;padding:10px 16px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 16px 36px #0f172a29;font-weight:700;font-size:13px}.toast.success{border:1px solid #bfe8cf;background:#f0fbf5;color:#188451}.profile-panel{overflow:visible}.profile-body{padding:16px;display:grid;gap:16px}.profile-info-table{display:grid;gap:10px;margin-top:8px}.profile-info-tables{display:grid;gap:10px}.profile-info-wrap table{min-width:0}.profile-info-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-info-head .subhead{margin:0}.profile-referrals{display:grid;gap:8px;margin-top:8px}.profile-referrals .subhead{margin:0}.profile-trades{display:grid;gap:8px;margin-top:10px}.profile-trades .subhead{margin:0}.profile-trade-stats{display:grid;gap:12px;margin-top:10px}.trade-stats-filters{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.trade-stats-filters>input,.trade-stats-filters>select{min-height:40px;border:1px solid #dfe7f2;border-radius:8px;background:#f8fafc;color:#334155;padding:0 12px;outline:none}.trade-stats-filters>input{width:180px}.trade-stats-filters>input:hover,.trade-stats-filters>select:hover,.trade-stats-filters>input:focus,.trade-stats-filters>select:focus{background:#fff;border-color:#c8d5e6}.trade-stats-metrics{grid-template-columns:repeat(6,minmax(150px,1fr))}.trade-stats-secondary{margin-top:-2px}.trade-stats-extremes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.extreme-box{min-height:82px;border:1px solid #e3e8f0;border-radius:8px;background:#fbfcfe;padding:14px;display:grid;gap:7px}.extreme-box span{color:#6d7a8e;font-size:13px}.extreme-box strong{font-size:20px}.extreme-box small{color:#647186}.trade-stats-tables{display:grid;gap:12px}.profile-package-select,.package-select{max-width:160px}.profile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.profile-metrics{grid-template-columns:repeat(5,minmax(150px,1fr))}.detail-item{min-height:72px;border:1px solid #edf1f6;border-radius:8px;padding:10px;display:grid;align-content:start;gap:7px;background:#fbfcfe}.detail-item span{color:#7a8798;font-size:12px}.detail-item strong{color:#182033;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.profile-edit,.notice-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:12px}.profile-edit label,.notice-form label,.combo-field{display:grid;gap:6px;color:#617086;font-size:12px}.profile-edit input,.profile-edit select,.notice-form input,.notice-form select,.notice-form textarea,.combo input{width:100%;min-height:36px;border:1px solid #d7e0ec;border-radius:7px;padding:0 10px;outline:none;background:#fff}.package-edit{grid-template-columns:minmax(220px,320px)}.readonly-input{background:#f8fafc!important;color:#647186}.combo-field,.combo{position:relative}.combo input{padding-right:30px}.combo.open input,.combo input:focus{border-color:#2f62d6;box-shadow:0 0 0 3px #dbe7ff}.combo-menu{position:absolute;z-index:60;top:calc(100% + 6px);left:0;right:0;max-height:240px;overflow-y:auto;border:1px solid #d7e0ec;border-radius:8px;background:#fff;box-shadow:0 14px 32px #0f172a24;padding:4px}.combo-option{width:100%;min-height:34px;border:0;border-radius:6px;background:transparent;color:#334155;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;text-align:left}.combo-option:hover,.combo-option.selected{background:#eef4ff;color:#2459cf}.combo-option small{color:#8b97a8;white-space:nowrap}.combo-option.empty-option{color:#8b97a8;cursor:default;justify-content:flex-start}.notice-form textarea{grid-column:span 2;min-height:72px;padding:9px 10px;resize:vertical}.subhead{margin:2px 0 10px;font-size:14px}.mini-table-wrap{overflow-x:auto;border:1px solid #edf1f6;border-radius:8px}.mini-table{min-width:620px}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#eef3fa}.login-panel{width:min(420px,100%);background:#fff;border:1px solid #dfe6f0;border-radius:8px;padding:28px;display:grid;gap:16px}.login-panel h1{margin:0;font-size:24px}.login-panel label{display:grid;gap:8px;color:#536175;font-size:13px}.login-panel input{min-height:42px;border:1px solid #d7e0ec;border-radius:7px;padding:0 12px;outline:none}.login-panel input:focus{border-color:#2f62d6;box-shadow:0 0 0 3px #dbe7ff}.boot{min-height:100vh;display:grid;place-items:center;align-content:center;gap:18px}.spin{animation:spin 1s linear infinite;color:#2f62d6}.skeleton{min-height:104px;background:linear-gradient(90deg,#fff,#edf2f8,#fff);background-size:200% 100%;animation:shimmer 1.2s ease-in-out infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media(max-width:1180px){.metric-grid{grid-template-columns:repeat(3,minmax(160px,1fr))}.panel-grid,.role-grid{grid-template-columns:1fr 1fr}.profile-grid,.profile-edit,.notice-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:820px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;transform:translate(-100%);transition:transform .18s ease;width:min(280px,86vw);box-shadow:0 16px 42px #0f172a29}.sidebar.open{transform:translate(0)}.mobile-only{display:inline-flex}.main{padding:0 14px 24px}.topbar{height:auto;min-height:66px;padding:10px 0}.profile{display:none}.metric-grid,.panel-grid,.role-grid,.role-checks,.mini-grid{grid-template-columns:1fr}.toolbar,.table-controls{align-items:stretch}.filter-group,.table-search,.date-filters,.pagination{width:100%}.date-filters select,.date-picker{flex:1 1 150px}.date-chip{width:100%}.date-popover{width:min(292px,calc(100vw - 40px))}.pagination{justify-content:space-between;flex-wrap:wrap;white-space:normal}.refresh-status{width:100%;flex-wrap:wrap;white-space:normal}.segmented{width:100%;overflow-x:auto}.segmented button{flex:1 0 auto}.searchbar{max-width:none}.profile-grid,.profile-edit,.notice-form{grid-template-columns:1fr}.notice-form textarea{grid-column:auto}}
