:root{--bg:#f5f7fb;--surface:#fff;--text:#20293c;--muted:#7b8496;--border:#e7ebf2;--primary:#6555dc;--primary-dark:#5142bf;--green:#128466;--red:#c54457;--sidebar:#192337;--shadow:0 3px 14px rgba(22,35,58,.025)}*{box-sizing:border-box}body{margin:0;font:14px/1.55 "Pretendard","Malgun Gothic","Apple SD Gothic Neo",Arial,sans-serif;color:var(--text);background:var(--bg)}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}input,select{height:39px;border:1px solid #dce1eb;border-radius:7px;background:white;color:var(--text);padding:8px 11px;min-width:0;outline:none;transition:border-color .15s,box-shadow .15s}input:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6555dc17}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b7afff;outline-offset:3px}input[type=number]{appearance:textfield;-moz-appearance:textfield}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}h1,h2,p{margin:0}h1{font-size:29px;line-height:1.35;letter-spacing:-1.1px;font-weight:750}h2{font-size:16px;letter-spacing:-.35px;font-weight:700}.app-shell{display:flex;min-height:100vh}.sidebar{width:232px;background:var(--sidebar);color:#aab5ca;padding:34px 18px 20px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:11px;align-items:center;color:#fff;font-size:16px;font-weight:700;letter-spacing:-.4px;margin:0 10px 46px}.brand small{display:block;font-size:10px;font-weight:400;color:#94a0b8;letter-spacing:.2px;margin-top:2px}.brand-symbol{background:#7a68ed;color:#fff;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:27px;font-weight:600;flex-shrink:0}.nav-caption{text-transform:uppercase;font-size:10px;letter-spacing:1px;color:#73819c;padding:0 14px;margin-bottom:11px}.nav-item{display:flex;align-items:center;gap:11px;padding:13px 14px;border-radius:8px;margin:4px 0;font-size:13px;font-weight:600}.nav-item>span:first-child{font-size:20px;line-height:1;font-weight:400}.nav-item:hover{background:#ffffff09;color:#fff}.nav-item.is-active{background:#7565df;color:#fff;box-shadow:0 4px 14px #11172f33}.nav-arrow{margin-left:auto;opacity:.6}.sidebar-bottom{margin-top:auto;padding:24px 12px 0}.timezone{font-size:12px;color:#d7deeb}.timezone small{display:block;font-size:10px;color:#78859d;margin:6px 0 20px 15px}.live-dot{display:inline-block;width:6px;height:6px;background:#30b28b;border-radius:50%;margin-right:6px;vertical-align:2px}.logout{display:flex;justify-content:space-between;align-items:center;border:0;border-top:1px solid #ffffff14;background:none;color:#acb7cb;font-size:11px;width:100%;padding:17px 0 0}.logout:hover{color:#fff}.logout span{font-size:17px}.workspace{margin-left:232px;width:calc(100% - 232px);min-width:0}.topbar{height:72px;background:white;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 38px;font-size:12px;color:#8992a2}.breadcrumb-divider{margin:0 13px;color:#c3c9d4}.admin-indicator{display:flex;gap:9px;align-items:center;color:#596273;font-size:11px}.avatar{display:grid;place-items:center;width:29px;height:29px;background:#f0edff;border:1px solid #e9e3ff;border-radius:50%;color:#7865d7;font-weight:700;font-size:12px}.page-content{padding:34px 38px 0;max-width:2100px;margin:auto}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:20px}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:700;color:#8b84b7;margin-bottom:8px}.page-header p{color:#828b9b;font-size:12px;margin-top:9px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:7px;height:39px;padding:0 16px;font-weight:600;font-size:12px;white-space:nowrap;line-height:1;text-decoration:none}.button.primary{background:var(--primary);color:#fff;box-shadow:0 3px 7px #6555dc13}.button.primary:hover{background:var(--primary-dark)}.button.secondary{border-color:#dce1eb;background:white;color:#536075}.button.secondary:hover{background:#f6f7fb;border-color:#c7cedc}.button.small{height:31px;padding:0 13px;font-size:11px}.add-program{height:40px}.add-program>span{font-size:18px;font-weight:400}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:21px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:20px 23px;box-shadow:var(--shadow)}.stat-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#747e91;font-weight:600;min-height:28px}.stat-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#f1effc;color:#8b7fd1;font-size:15px}.stat-icon.green{background:#ebf7f2;color:var(--green)}.stat-icon.amber{background:#fff5e5;color:#bc8525}.stat-value{font-size:30px;font-weight:750;line-height:1.3;letter-spacing:-.6px;margin:7px 0}.stat-value small{font-size:11px;font-weight:400;color:#969eac;letter-spacing:0;margin-left:7px}.stat-card p{font-size:10px;color:#949cab;margin-top:6px}.green{color:var(--green)}.negative{color:var(--red)}.info-banner{display:flex;align-items:flex-start;gap:11px;padding:14px 17px;border:1px solid #e0e4f8;border-radius:8px;background:#eff2fc;margin-bottom:23px;color:#727c99}.info-icon{display:grid;place-items:center;flex-shrink:0;width:17px;height:17px;margin-top:1px;border:1.5px solid #939bc9;border-radius:50%;font-size:11px;font-weight:700;color:#808abb}.info-banner strong{font-size:11px;color:#677194;font-weight:600}.info-banner p{font-size:10px;line-height:1.7;margin-top:3px;color:#858eaa}.panel{background:white;border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow);margin-bottom:20px;overflow:hidden}.panel-toolbar{padding:21px 23px;display:flex;align-items:center;justify-content:space-between;gap:20px}.panel-toolbar p{font-size:10px;color:#9199a8;margin-top:5px}.count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 6px;border-radius:5px;margin-left:4px;background:#f0edff;color:#8a7ec7;font-size:10px;vertical-align:1px}.search-form{display:flex;align-items:center;gap:7px}.search-form input{width:205px;font-size:11px;height:35px;background:#fafbfe}.search-form .button{height:35px;font-size:11px;padding:0 13px}.reset-link{font-size:11px;color:#929aaa;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}.refresh-strip{display:flex;justify-content:space-between;gap:10px;background:#fbfcff;padding:10px 23px;font-size:10px;color:#959eaf;border-top:1px solid #f0f2f7}.refresh-strip .live-dot{width:5px;height:5px;vertical-align:1px;margin-right:5px}.table-scroll{position:relative;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#d8deea transparent}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:10px;font-weight:600;color:#80899b;white-space:nowrap;background:#f7f9fc;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:13px 16px}td{padding:20px 16px;border-bottom:1px solid #edf0f5;vertical-align:middle;font-size:12px}th:first-child,td:first-child{padding-left:23px}th:last-child,td:last-child{padding-right:23px}tbody tr:last-child td{border-bottom:0}.clients-table{min-width:1090px}.clients-table th:nth-child(1){width:19%}.clients-table th:nth-child(2){width:9%}.clients-table th:nth-child(3){width:13%}.clients-table th:nth-child(4){width:10%}.clients-table th:nth-child(5){width:19%}.clients-table th:nth-child(6){width:22%}.clients-table th:nth-child(7){width:8%}.clients-table input,.clients-table select{height:34px;font-size:11px}.seed-input{width:127px;text-align:right;font-variant-numeric:tabular-nums}.clients-table select{width:96px;padding:7px}.nickname{font-size:12px;font-weight:650;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-all}.version-tag{display:inline-block;font-size:9px;padding:1px 4px;margin:6px 0 1px;border-radius:3px;background:#f5f6fa;color:#a0a7b5}.table-meta{font-size:9px;color:#a0a8b6;line-height:1.65;margin-top:5px;font-variant-numeric:tabular-nums;white-space:nowrap}.align-right{text-align:right}.status-badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;line-height:1;padding:5px 8px;border-radius:4px;font-weight:600}.status-badge:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.status-badge.active,.status-badge.received{background:#eaf7f1;color:#2a9a76}.status-badge.inactive,.status-badge.missing-badge{background:#f1f3f7;color:#8c95a5}.applied-source{font-size:11px;font-weight:600;color:#666f86}.applied-source.fallback{color:#bc872b}.applied-cell .table-meta{font-size:9px}.token-form{margin-top:6px}.text-button{font-size:9px;color:#a0a8b6;padding:2px 0;background:none;border:0;white-space:nowrap}.text-button:hover{color:var(--primary);text-decoration:underline}.config-form{margin:0}.toggle{display:inline-flex;align-items:center;gap:7px;cursor:pointer;position:relative;min-height:28px}.toggle input{position:absolute;opacity:0;width:34px;height:22px;left:0;margin:0}.toggle-track{display:block;width:30px;height:17px;background:#d4dae5;border-radius:30px;transition:background .15s;position:relative}.toggle-track:after{content:"";position:absolute;left:3px;top:3px;background:white;width:11px;height:11px;border-radius:50%;transition:transform .15s;box-shadow:0 1px 2px #0002}.toggle input:checked+.toggle-track{background:#27a281}.toggle input:checked+.toggle-track:after{transform:translateX(13px)}.toggle input:focus-visible+.toggle-track{outline:3px solid #b7afff;outline-offset:3px}.toggle-label:after{content:"OFF";font-size:10px;color:#98a1b0}.toggle input:checked~.toggle-label:after{content:"ON";color:#329c7e}.panel-bottom{padding:12px 23px;border-top:1px solid #eff1f6;background:#fdfdff;font-size:9px;color:#a1a8b5}.panel-bottom span{margin:0 7px;color:#c6ccd8}.registration-panel summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:20px 23px}.registration-panel summary::-webkit-details-marker{display:none}.registration-panel summary strong{display:block;font-size:13px}.registration-panel summary small{display:block;font-size:10px;color:#939cab;margin-top:5px}.details-plus{color:#a1a7b8;font-size:21px;line-height:1;font-weight:300}.registration-panel[open] .details-plus{transform:rotate(45deg)}.registration-form{display:flex;align-items:flex-start;gap:17px;padding:6px 23px 25px}.field{display:flex;flex-direction:column;gap:7px}.field label,.field-label{font-size:10px;font-weight:600;color:#798397}.field input,.field select{font-size:11px;min-width:0;width:100%}.field small{font-size:9px;color:#a2a9b6;margin-top:0}.required{color:#917ede}.nickname-field{flex:1;min-width:200px}.registration-form>.field:nth-of-type(2){width:170px}.registration-form>.field:nth-of-type(3){width:110px}.registration-form>.field:nth-of-type(4){width:75px;flex-shrink:0}.registration-form>.button{margin-top:22px}.registration-toggle{margin-top:5px}.notice{padding:13px 16px;border-radius:7px;font-size:11px;line-height:1.65;margin-bottom:20px;overflow-wrap:anywhere}.notice.success{background:#ecf8f2;border:1px solid #d3eddf;color:#298563}.notice.error{background:#fff0f1;border:1px solid #f4d6db;color:#b45564}.notice.warning{background:#fff8e9;border:1px solid #f3e6c6;color:#a1813b}.notice.warning a{text-decoration:underline}.clients-panel>.notice{margin:12px 23px}.hidden{display:none!important}.empty-state{text-align:center;padding:48px 23px!important}.empty-state strong{display:block;font-size:13px;color:#778197;margin-top:10px}.empty-state p{font-size:10px;color:#a0a7b5;margin:7px 0 0}.empty-icon{width:40px;height:40px;margin:auto;background:#f3f2fb;border-radius:10px;display:grid;place-items:center;color:#b0a7da;font-size:24px;font-weight:400}.date-pill{border:1px solid #e2e6ef;color:#939aab;border-radius:6px;padding:7px 11px;font-size:10px;background:#fff}.filter-panel{padding:21px 23px}.filter-panel h2{font-size:13px;margin-bottom:17px}.profit-filters{display:flex;align-items:flex-end;gap:13px}.profit-filters .field{width:176px}.profit-filters .filter-nickname{width:240px}.profit-filters input{font-size:11px}.date-separator{color:#b6bdca;align-self:flex-end;height:39px;display:grid;place-items:center}.profit-filters .reset-link{margin:0 0 11px 2px}.filter-help{font-size:9px;color:#a0a7b7;margin-top:13px}.table-note{font-size:9px;color:#a0a8b7;white-space:nowrap}.profit-table{min-width:750px}.profit-table th{padding-top:14px;padding-bottom:14px}.profit-table td{padding-top:21px;padding-bottom:21px}.profit-table th:nth-child(1){width:17%}.profit-table th:nth-child(2){width:28%}.profit-table th:nth-child(3){width:20%}.profit-table th:nth-child(4){width:15%}.profit-table th:nth-child(5){width:20%}.date-cell{font-size:11px;color:#8490a3;font-variant-numeric:tabular-nums}.profit-amount{font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}.received-time{font-size:11px;color:#929bad;font-variant-numeric:tabular-nums}.missing{color:#b3bac6;font-size:11px;font-weight:400}footer{padding:10px 0 24px;display:flex;justify-content:center;align-items:center;gap:8px;font-size:9px;color:#adb4c1}footer span{color:#c4cad6}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{border:1px solid #e1e5ef;border-radius:14px;padding:0;width:min(570px,calc(100% - 32px));color:var(--text);box-shadow:0 25px 100px #15233733}dialog::backdrop{background:#111c355e;backdrop-filter:blur(2px)}.token-content{padding:30px}.token-content h2{font-size:21px;margin-bottom:12px}.token-content>p{font-size:12px;color:#8a93a3;margin-bottom:17px}.token-content .notice{font-size:11px;margin:18px 0}.token-content>label{display:block;font-size:11px;color:#81899b;margin-bottom:8px}.token-copy{display:flex;gap:7px}.token-copy input{flex:1;min-width:0;font:12px Consolas,monospace;background:#f8f9fd}.token-content .table-meta{margin:9px 0 22px;white-space:normal}.token-content>.button{width:100%}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 30% 5%,#eeeafd,transparent 60%),#f5f7fb;padding:24px}.login-card{background:#fff;border:1px solid #e5e8f2;box-shadow:0 15px 60px #23314e08;border-radius:16px;width:390px;padding:37px 35px 25px}.login-symbol{width:43px;height:43px;border-radius:12px;margin-bottom:26px;font-size:32px}.login-card h1{font-size:25px;letter-spacing:-.7px}.login-card>.muted{color:#929aaa;font-size:12px;line-height:1.8;margin-top:11px;margin-bottom:25px}.login-form{display:flex;flex-direction:column;gap:8px}.login-form>label{font-size:11px;font-weight:600;color:#818a9b}.login-form input{font-size:12px;margin-bottom:9px;height:42px}.login-form>.button{margin-top:6px;height:43px;justify-content:space-between;padding:0 17px}.login-form>.button span{font-size:18px}.login-footnote{text-align:center;border-top:1px solid #eff1f6;margin-top:26px;padding-top:19px;color:#b4bbc7;font-size:9px}.config-form.is-dirty~.nickname:after{content:" ●";color:#9c8eeb;font-size:10px}.save-button.has-changes{background:#f2efff;border-color:#c8bff7;color:#7561c9}.refresh-error{color:#b58b47}
@media(min-width:1700px){.page-content{padding-left:45px;padding-right:45px}.clients-table th,.clients-table td{padding-left:20px;padding-right:20px}.clients-table th:first-child,.clients-table td:first-child{padding-left:25px}.clients-table .table-meta{font-size:10px}.nickname{font-size:13px}}
@media(max-width:1250px){.sidebar{width:204px;padding-left:14px;padding-right:14px}.brand{font-size:14px;margin-left:8px;margin-right:0;gap:9px}.workspace{margin-left:204px;width:calc(100% - 204px)}.page-content{padding:27px 25px 0}.topbar{padding:0 25px}.registration-form{flex-wrap:wrap}.nickname-field{flex-basis:40%}.registration-form>.button{margin-top:22px}.stat-card{padding:17px 19px}.stats-grid{gap:13px}.profit-filters .filter-nickname{width:190px}.profit-filters .field{width:155px}}
@media(max-width:950px){.sidebar{width:180px;padding:27px 10px 18px}.workspace{margin-left:180px;width:calc(100% - 180px)}.brand{font-size:12px;gap:8px}.brand-symbol{width:29px;height:29px;border-radius:8px;font-size:23px}.brand small{font-size:9px}.nav-item{padding:12px 10px;font-size:11px;gap:9px}.nav-item>span:first-child{font-size:18px}.nav-caption{font-size:9px;padding:0 10px}.sidebar-bottom{padding-left:9px;padding-right:9px}.topbar{height:61px}.page-content{padding:25px 22px 0}.page-header{margin-bottom:22px;align-items:flex-start}.page-header h1{font-size:25px}.page-header p{font-size:11px;max-width:300px;line-height:1.8}.stat-label{font-size:10px}.stat-value{font-size:25px}.stat-card{padding:16px}.stat-card p{font-size:9px}.panel-toolbar{align-items:flex-start;flex-wrap:wrap;padding:19px 20px;gap:13px}.search-form{width:100%}.search-form input{flex:1;width:auto}.refresh-strip{padding:10px 20px;font-size:9px}.registration-form{gap:15px}.registration-form>.field:nth-of-type(2){width:160px}.registration-form>.button{margin-top:22px}.profit-filters{flex-wrap:wrap}.profit-filters .field{width:calc(50% - 17px)}.profit-filters .filter-nickname{width:calc(100% - 143px)}.profit-filters .button{min-width:70px}.profit-filters .reset-link{margin-left:0}.date-separator{width:7px}.table-note{font-size:9px}}
@media(max-width:700px){.app-shell{display:block}.sidebar{position:static;width:100%;padding:15px 18px 0;display:block}.brand{margin:0 0 17px;font-size:15px;gap:10px}.brand small{display:none}.brand-symbol{width:29px;height:29px}.nav-caption{display:none}.sidebar nav{display:flex;gap:15px}.nav-item{margin:0;border-radius:6px 6px 0 0;padding:12px 12px;font-size:11px;gap:8px}.nav-item.is-active{box-shadow:none;background:#ffffff13;border-bottom:2px solid #ae9fff}.nav-arrow{display:none}.sidebar-bottom{position:absolute;right:18px;top:21px;padding:0;margin:0}.timezone{display:none}.logout{border:0;padding:0;font-size:10px;gap:9px}.logout span{font-size:14px}.workspace{margin:0;width:100%}.topbar{height:47px;padding:0 20px;font-size:10px}.admin-indicator{font-size:10px}.avatar{width:22px;height:22px;font-size:9px}.breadcrumb-divider{margin:0 8px}.page-content{padding:24px 16px 0}.page-header{gap:12px;margin-bottom:22px}.eyebrow{font-size:9px}.page-header h1{font-size:24px}.page-header p{font-size:10px;max-width:225px}.add-program{font-size:10px;padding:0 11px;height:34px;margin-top:23px;gap:4px}.add-program>span{font-size:14px}.stats-grid{gap:8px;margin-bottom:16px}.stat-card{padding:12px 11px;border-radius:8px}.stat-label{font-size:9px;gap:4px;min-height:20px}.stat-icon{display:none}.stat-value{font-size:22px;letter-spacing:-.5px;margin:7px 0}.stat-value small{font-size:9px;margin-left:4px}.stat-card p{font-size:8px;line-height:1.65}.info-banner{padding:12px;margin-bottom:17px;gap:8px}.info-banner strong{font-size:10px}.info-banner p{font-size:9px;line-height:1.75}.panel-toolbar{padding:17px 16px}.panel-toolbar p{font-size:9px}.panel-toolbar h2{font-size:14px}.refresh-strip{padding:9px 16px;font-size:8px;flex-wrap:wrap;gap:3px}.panel-bottom{padding:11px 16px;line-height:1.9;font-size:8px}.panel-bottom span{margin:0 4px}.registration-panel summary{padding:17px 16px;gap:12px}.registration-panel summary strong{font-size:12px}.registration-panel summary small{font-size:9px;line-height:1.8}.registration-form{padding:4px 16px 18px;gap:13px}.nickname-field{flex-basis:100%;min-width:0}.registration-form>.field:nth-of-type(2){flex:1;width:auto}.registration-form>.field:nth-of-type(3){width:95px}.registration-form>.field:nth-of-type(4){width:65px}.registration-form>.button{width:100%;margin-top:4px}.empty-state{padding:35px 18px!important}.empty-state p{font-size:9px}.date-pill{font-size:9px;padding:6px 9px;margin-top:25px;white-space:nowrap}.filter-panel{padding:18px 16px}.profit-filters{gap:12px}.profit-filters .field{width:calc(50% - 17px)}.profit-filters .filter-nickname{width:calc(100% - 132px)}.profit-filters .button{padding:0 15px}.profit-filters .reset-link{font-size:10px}.filter-help{font-size:8px;line-height:1.8}.table-note{font-size:8px}.profit-table{min-width:650px}.profit-table th{font-size:9px}.profit-table td.nickname{font-size:11px}.profit-amount{font-size:12px}.token-content{padding:25px 20px}.token-content h2{font-size:19px}.token-content>p{font-size:11px}.token-copy input{font-size:10px}.token-content .notice{font-size:10px}footer{font-size:8px;gap:5px;padding-top:5px}.login-card{padding:32px 28px 23px}.notice{font-size:10px}.clients-panel>.notice{margin:10px 16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}


/* Shared security controls and mobile cards use the same forms and state data. */
.skip-link{position:absolute;left:16px;top:-80px;z-index:20;background:white;border:2px solid var(--primary);border-radius:8px;padding:12px 18px;color:var(--primary)}
.skip-link:focus{top:12px}
.sidebar-security{font-size:11px;color:#deb66b;margin-bottom:17px}
.sidebar-security .live-dot{background:#deb66b}
.sidebar-security.is-protected{color:#a0dbca}
.sidebar-security.is-protected .live-dot{background:#30b28b}
.input-help{font-size:11px;line-height:1.75;color:#7b879b;margin-top:7px;overflow-wrap:anywhere}
.login-mfa-status{font-size:11px;line-height:1.75;color:#568d7d;background:#f0f8f5;border-radius:7px;padding:11px 12px;margin:0 0 20px}
.login-mfa-status.is-unprepared{color:#9a814a;background:#fff8e9}
.login-form .input-help{margin-top:-10px;margin-bottom:10px}
.otp-input{font-variant-numeric:tabular-nums;letter-spacing:3px}
.otp-input::placeholder{letter-spacing:0;font-size:12px}
button:disabled{cursor:not-allowed}
.unsaved-note{display:none;font-size:11px;color:#8870c8;line-height:1.7;margin-top:7px}
.config-form.is-dirty~.unsaved-note{display:block}
.security-state{font-size:11px;font-weight:600;padding:9px 13px;border:1px solid;border-radius:7px;white-space:nowrap}
.security-state.is-enabled{color:#278b6c;background:#edf8f3;border-color:#d7eee3}
.security-state.is-pending{color:#a2833a;background:#fff8e9;border-color:#efe3c5}
.security-overview{display:flex;align-items:center;gap:20px;padding:25px}
.security-emblem{display:grid;place-items:center;width:58px;height:58px;flex-shrink:0;background:#f0edff;border:1px solid #e3ddfb;border-radius:16px;color:#8a76db;font-size:38px}
.security-overview p{font-size:12px;color:#8b95a6;margin-top:8px;line-height:1.8}
.security-policy{display:inline-block;margin-top:12px;font-size:10px;color:#8992a5;background:#f4f6fa;padding:4px 7px;border-radius:4px}
.security-panel{padding:26px;max-width:850px}
.section-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:24px}
.step-number{display:grid;place-items:center;flex-shrink:0;width:27px;height:27px;border-radius:7px;font-size:12px;font-weight:700;background:#f0edff;color:#8973d4}
.section-heading h2{font-size:16px;margin-top:1px}
.section-heading p{font-size:11px;line-height:1.85;color:#8e98a9;margin-top:6px}
.security-form{display:flex;align-items:flex-end;gap:15px;flex-wrap:wrap}
.security-form .field{flex:1;min-width:190px;max-width:280px}
.security-form .field input{width:100%}
.security-form .button{align-self:flex-end}
.security-footnote{font-size:10px;color:#99a2b2;line-height:1.8;margin-top:20px}
.enrollment-instructions{display:flex;gap:50px;margin-bottom:24px;padding:16px;border-radius:7px;background:#f6f8fc}
.enrollment-instructions span{display:block;font-size:10px;color:#9ca4b3;margin-bottom:5px}
.enrollment-instructions strong{font-size:12px;color:#66718a;font-weight:600}
.secret-copy{display:flex;gap:9px;margin-top:8px}
.secret-copy input{flex:1;min-width:0;font:14px Consolas,monospace;letter-spacing:1px;background:#fbfcff}
.enrollment-uri{margin:18px 0 21px}
.enrollment-uri summary{font-size:11px;color:#8e83bc;cursor:pointer;padding:6px 0}
.enrollment-uri input{width:100%;font:11px Consolas,monospace;margin:9px 0}
.enrollment-uri .button{font-size:11px;height:33px}
.confirm-heading{padding-top:9px;border-top:1px solid var(--border);margin-top:25px;padding-top:24px}
.security-confirm-form{display:flex;align-items:flex-end;gap:13px}
.security-confirm-form .field{min-width:180px;max-width:240px;flex:1}
.security-disable summary{font-size:12px;color:#9c7280;cursor:pointer;font-weight:600}
.security-disable>p{font-size:11px;color:#9ca4b4;line-height:1.8;margin:16px 0 20px}
.button.danger{color:#b76576;border-color:#e9c9d1;background:#fff5f7}
.sensitive-input{font-variant-numeric:tabular-nums}
@media(max-width:700px){
  body{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .sidebar{padding:15px 16px 0;position:relative}
  .brand{font-size:14px;margin-bottom:15px;gap:8px;max-width:calc(100% - 92px)}
  .sidebar nav{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px}
  .nav-item{justify-content:center;min-height:48px;padding:12px 5px;font-size:11px;gap:6px;text-align:center}
  .nav-item>span:first-child{font-size:17px}
  .sidebar-bottom{top:8px;right:15px}
  .sidebar-security,.timezone{display:none}
  .logout{min-height:44px;min-width:76px;font-size:12px;justify-content:center;gap:8px}
  .page-content{padding:25px 16px 0}
  .topbar{height:51px;font-size:11px;padding:0 17px}
  .admin-indicator{font-size:11px}
  .page-header{align-items:flex-start;flex-wrap:wrap;gap:13px;margin-bottom:23px}
  .page-header>div{min-width:0;flex:1}
  .page-header h1{font-size:25px;line-height:1.4}
  .page-header p{font-size:12px;line-height:1.85;max-width:none;margin-top:8px}
  .eyebrow{font-size:10px;letter-spacing:1.4px}
  .add-program{height:44px;margin-top:23px;font-size:12px;padding:0 12px;gap:5px}
  .date-pill{font-size:11px;margin-top:26px}
  .stats-grid{gap:8px;margin-bottom:19px}
  .stat-card{padding:14px 11px;border-radius:10px;min-width:0}
  .stat-label{font-size:11px;color:#758096;min-height:34px;line-height:1.55;align-items:flex-start}
  .stat-value{font-size:26px;margin:7px 0;line-height:1.25;overflow-wrap:anywhere}
  .stat-value small{font-size:11px;color:#8893a6;white-space:nowrap;margin-left:4px}
  .stat-card p{font-size:10px;color:#8d97aa;line-height:1.75;margin-top:6px;overflow-wrap:anywhere}
  .info-banner{padding:15px 13px;gap:9px;border-radius:10px;margin-bottom:20px}
  .info-banner>div{min-width:0}
  .info-banner strong{font-size:12px;line-height:1.8}
  .info-banner p{font-size:11px;line-height:1.9;color:#7e8aa6;margin-top:6px}
  .info-icon{margin-top:3px}
  .button,.button.small{min-height:44px;height:44px;font-size:14px;padding:0 16px}
  input,select,.field input,.field select,.clients-table input,.clients-table select{height:46px;max-width:100%;font-size:16px;border-radius:8px;padding:10px 12px}
  .field label,.field-label{font-size:12px;line-height:1.6;color:#768198}
  .field{gap:8px;min-width:0}
  .field small{font-size:11px;line-height:1.8}
  .clients-panel,.profits-panel{background:transparent;border:0;box-shadow:none;overflow:visible}
  .clients-panel>.panel-toolbar,.profits-panel>.panel-toolbar{background:white;border:1px solid var(--border);border-bottom:0;border-radius:12px 12px 0 0;padding:18px 16px;gap:17px}
  .panel-toolbar h2{font-size:16px;line-height:1.5}
  .panel-toolbar p{font-size:11px;line-height:1.8;margin-top:6px}
  .count-badge{font-size:11px;min-height:22px;min-width:24px;vertical-align:1px}
  .search-form{gap:8px;min-width:0;flex-wrap:wrap}
  .search-form input{height:46px;font-size:16px;width:0;flex:1;min-width:0}
  .search-form .button{min-height:46px;height:46px;min-width:60px;font-size:13px;padding:0 12px}
  .reset-link{display:inline-flex;min-height:44px;align-items:center;justify-content:center;font-size:12px;padding:0 5px}
  .search-form .reset-link{flex-basis:100%;justify-content:flex-end;min-height:28px}
  .refresh-strip{border:1px solid var(--border);border-top:1px solid #f0f2f7;border-radius:0 0 12px 12px;font-size:10px;color:#8b96ab;padding:12px 16px;gap:7px;line-height:1.8}
  .clients-panel>.notice{margin:12px 0}
  .table-scroll{overflow:visible;position:relative}
  .clients-table,.clients-table tbody,.profit-table,.profit-table tbody{display:block;min-width:0;width:100%}
  .clients-table thead,.profit-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .clients-table tr,.profit-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 14px;margin:14px 0 0;padding:18px 16px;background:white;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow)}
  .clients-table td,.profit-table td{display:block;min-width:0;width:auto;padding:0!important;border:0;font-size:13px}
  .clients-table td:before,.profit-table td[data-label]:before{content:attr(data-label);display:block;font-size:11px;font-weight:500;line-height:1.6;letter-spacing:0;color:#8590a5;margin-bottom:8px;text-align:left}
  .clients-table td:not([data-label]):before{display:none}
  .clients-table .client-identity{grid-column:1/-1;order:0;padding-bottom:14px!important;border-bottom:1px solid #eff1f6!important}
  .clients-table .nickname{font-size:17px;line-height:1.65;letter-spacing:-.4px;font-weight:700}
  .version-tag{font-size:10px;margin-top:8px;padding:2px 6px}
  .clients-table .table-meta{font-size:11px;color:#8e99ac;white-space:normal;line-height:1.8;margin-top:6px;overflow-wrap:anywhere}
  .clients-table .client-state{order:1;grid-column:1/-1;background:#f6f8fc;border-radius:8px;padding:12px!important}
  .client-state .table-meta{font-size:10px;line-height:1.8}
  .status-badge{font-size:11px;padding:7px 9px;gap:6px;border-radius:5px;line-height:1.3;max-width:100%}
  .status-badge:before{flex-shrink:0;width:5px;height:5px}
  .client-permission{order:2}
  .client-log{order:3}
  .client-seed{order:4;grid-column:1/-1}
  .clients-table .seed-input,.clients-table select{width:100%;height:46px;font-size:16px}
  .clients-table .seed-input{text-align:left;font-weight:600;font-variant-numeric:tabular-nums}
  .toggle{min-height:46px;min-width:88px;gap:10px}
  .toggle input{width:100%;height:46px;padding:0;top:0;left:0}
  .toggle-track{width:40px;height:23px}
  .toggle-track:after{width:17px;height:17px}
  .toggle input:checked+.toggle-track:after{transform:translateX(17px)}
  .toggle-label:after{font-size:13px;font-weight:600}
  .clients-table .applied-cell{order:5;grid-column:1/-1;background:#f7f6fc;border:1px solid #efedf8!important;border-radius:8px;padding:13px!important}
  .applied-source{font-size:14px;font-weight:700;line-height:1.5}
  .applied-cell .table-meta{font-size:12px;color:#858da3;line-height:1.8}
  .client-actions{order:6;grid-column:1/-1;display:grid!important;grid-template-columns:1fr 1fr;align-items:center;gap:10px;padding-top:1px!important}
  .client-actions .button{width:100%;font-size:14px}
  .client-actions .save-button{color:#fff;background:var(--primary);border-color:var(--primary)}
  .client-actions .save-button.has-changes{color:#fff;background:#7864d8;border-color:#7864d8;box-shadow:0 0 0 3px #8a78db1a}
  .client-actions .token-form{margin:0}
  .client-actions .text-button{display:block;border:1px solid #dce1eb;border-radius:7px;background:#fff;width:100%;min-height:44px;font-size:12px;color:#7c879b;padding:0 10px}
  .config-form.is-dirty~.nickname:after{font-size:12px}
  .panel-bottom{font-size:10px;line-height:1.85;color:#8f99ac;padding:15px 3px;background:transparent;border:0}
  .panel-bottom span{margin:0 5px}
  .registration-panel{border-radius:12px;margin-top:5px}
  .registration-panel summary{min-height:76px;padding:18px 16px;gap:15px}
  .registration-panel summary strong{font-size:15px}
  .registration-panel summary small{font-size:11px;line-height:1.8;margin-top:7px}
  .details-plus{font-size:24px;flex-shrink:0}
  .registration-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 14px;padding:4px 16px 20px;align-items:start}
  .registration-form>.field,.registration-form>.field:nth-of-type(2),.registration-form>.field:nth-of-type(3),.registration-form>.field:nth-of-type(4){width:auto;min-width:0;margin:0}
  .registration-form .nickname-field,.registration-form>.field:nth-of-type(2),.registration-form>.button{grid-column:1/-1}
  .registration-form>.button{width:100%;margin:0;font-size:14px}
  .registration-toggle{margin-top:0}
  .profits-stats{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .profits-stats .stat-card:first-child{grid-column:1/-1;padding:18px}
  .profits-stats .stat-card:first-child .stat-label{min-height:0}
  .profits-stats .stat-card:first-child .stat-value{font-size:29px;line-height:1.5;word-break:break-all;overflow-wrap:anywhere}
  .filter-panel{padding:19px 16px;border-radius:12px}
  .filter-panel h2{font-size:15px;margin-bottom:18px}
  .profit-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:17px 12px;align-items:end}
  .profit-filters .field,.profit-filters .filter-nickname{width:auto;min-width:0}
  .profit-filters .date-separator{display:none}
  .profit-filters .filter-nickname{grid-column:1/-1}
  .profit-filters input{width:100%;min-width:0;max-width:100%;height:46px;font-size:16px}
  .profit-filters .button{width:100%;margin:0}
  .profit-filters .reset-link{margin:0;min-height:44px;font-size:13px}
  .filter-help{font-size:11px;line-height:1.8;margin-top:15px;color:#8c97aa}
  .profits-panel>.panel-toolbar{border-bottom:1px solid var(--border);border-radius:12px;gap:12px}
  .table-note{font-size:10px;color:#8f99ac;white-space:normal;line-height:1.7}
  .profit-table tr{gap:12px 10px;padding:19px 16px}
  .profit-table .date-cell{order:0;font-size:12px;color:#8b95a8;grid-column:1;align-self:center}
  .profit-table .date-cell:before{display:none}
  .profit-received{order:1;grid-column:2;text-align:right}
  .profit-table .profit-nickname{order:2;grid-column:1/-1;font-size:16px;line-height:1.7;letter-spacing:-.3px;margin:0}
  .profit-table .profit-amount{order:3;grid-column:1/-1;font-size:24px;line-height:1.5;letter-spacing:-.5px;text-align:left;border-top:1px solid #eff1f6!important;padding-top:13px!important;word-break:break-all;overflow-wrap:anywhere}
  .profit-table .profit-amount:before{font-size:11px;font-weight:500;letter-spacing:0;margin-bottom:4px}
  .profit-table .profit-amount .missing{font-size:20px;color:#a4adbc;font-weight:500}
  .profit-table .received-time{order:4;grid-column:1/-1;font-size:12px;line-height:1.75;color:#8793a8}
  .profit-table .received-time:before{font-size:10px;margin:0 0 3px}
  .profit-table .received-time .missing{font-size:12px;color:#a0a9b9}
  .clients-table .empty-row,.profit-table .empty-row{display:block}
  .empty-state{width:100%;padding:25px 0!important}
  .empty-state strong{font-size:14px;line-height:1.7}
  .empty-state p{font-size:12px;line-height:1.85;margin-top:10px}
  .empty-icon{width:48px;height:48px}
  .notice{font-size:12px;line-height:1.8;padding:14px}
  footer{font-size:9px;line-height:1.8;flex-wrap:wrap;padding:3px 2px 27px;color:#a2acbc}
  dialog{width:calc(100% - 24px);max-height:calc(100dvh - 30px);border-radius:14px;overflow-y:auto}
  .token-content{padding:23px 18px}
  .token-content h2{font-size:21px;line-height:1.6}
  .token-content>p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}
  .token-content>.notice{font-size:12px;line-height:1.85}
  .token-content>label{font-size:12px}
  .token-copy{flex-wrap:wrap;gap:10px}
  .token-copy input{height:46px;flex-basis:100%;font-size:13px;width:100%}
  .token-copy .button{width:100%}
  .token-content .table-meta{font-size:11px;line-height:1.8}
  .login-page{padding:20px 16px;min-height:100svh;align-items:center}
  .login-card{width:100%;max-width:420px;padding:28px 23px 23px;border-radius:15px}
  .login-symbol{margin-bottom:24px}
  .login-card h1{font-size:26px}
  .login-card>.muted{font-size:13px;line-height:1.85;margin-bottom:23px}
  .login-form{gap:9px}
  .login-form>label{font-size:12px}
  .login-form input{height:48px;font-size:16px;margin-bottom:12px}
  .login-form>.button{height:48px;font-size:15px;margin-top:4px}
  .login-mfa-status{font-size:12px;line-height:1.85;padding:13px;margin-bottom:22px}
  .login-footnote{font-size:10px;line-height:1.8}
  .input-help{font-size:12px;line-height:1.85}
  .otp-input::placeholder{font-size:14px}
  .security-state{font-size:11px;white-space:normal;padding:8px 10px;max-width:132px;margin-top:26px}
  .security-overview{padding:20px 16px;gap:14px;align-items:flex-start;border-radius:12px}
  .security-emblem{width:43px;height:43px;border-radius:12px;font-size:29px}
  .security-overview>div:last-child{min-width:0}
  .security-overview h2{font-size:15px;line-height:1.7}
  .security-overview p{font-size:12px;line-height:1.85}
  .security-policy{font-size:10px;line-height:1.8;margin-top:11px}
  .security-panel{padding:21px 16px;border-radius:12px}
  .section-heading{gap:10px;margin-bottom:22px}
  .step-number{width:25px;height:25px;font-size:12px;border-radius:6px}
  .section-heading h2{font-size:16px;line-height:1.6;margin:0}
  .section-heading p{font-size:12px;line-height:1.85;margin-top:7px}
  .security-form,.security-confirm-form{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
  .security-form .field,.security-confirm-form .field{min-width:0;width:100%;max-width:none}
  .security-form .button,.security-confirm-form .button{width:100%;height:46px;font-size:14px;min-width:0;white-space:normal;line-height:1.6;padding:8px}
  .security-footnote{font-size:11px;line-height:1.9;margin-top:20px}
  .enrollment-instructions{display:grid;gap:15px;padding:15px;margin-bottom:23px}
  .enrollment-instructions span{font-size:11px}
  .enrollment-instructions strong{font-size:13px}
  .secret-copy{flex-wrap:wrap;gap:11px}
  .secret-copy input{width:100%;flex-basis:100%;font-size:15px;letter-spacing:.5px;min-width:0}
  .secret-copy .button{width:100%;font-size:13px}
  .enrollment-uri summary{font-size:12px;min-height:44px;display:flex;align-items:center}
  .enrollment-uri input{font-size:12px;height:46px}
  .enrollment-uri .button{height:44px;width:100%;font-size:13px}
  .confirm-heading{padding-top:23px;margin-top:25px}
  .security-disable summary{font-size:12px;min-height:30px;line-height:1.8}
  .security-disable>p{font-size:12px;line-height:1.85}
}
@media(max-width:375px){
  .brand{font-size:13px;gap:7px}
  .brand-symbol{width:28px;height:28px}
  .nav-item{font-size:10px;gap:5px}
  .page-header h1{font-size:23px}
  .add-program{padding:0 10px;font-size:11px}
  .stat-card{padding:13px 9px}
  .stat-label{font-size:10px}
  .stat-card p{font-size:9px}
  .security-state{max-width:111px;font-size:10px;padding:8px}
}
@media(max-width:700px){
  .profits-stats .stat-value.is-large-amount{font-size:clamp(17px,4.8vw,22px)!important;white-space:nowrap;word-break:normal}
}

/* Profit colors are separate from green operational status badges. */
.pnl-positive{color:#cf3546}
.pnl-negative{color:#246fc0}
.pnl-neutral{color:#354158}
.streak-group{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin-top:9px;white-space:normal;font-weight:400}
.streak-badge{display:inline-flex;align-items:center;min-height:23px;padding:3px 7px;border:1px solid;border-radius:5px;font-size:10px;font-weight:650;line-height:1.45;white-space:nowrap}
.streak-profit{color:#c74554;background:#fff0f2;border-color:#f2d7dc}
.streak-loss{color:#3979be;background:#eef6ff;border-color:#dceafa}
.streak-anchor{font-size:9px;color:#98a1b2;line-height:1.7;white-space:nowrap}
.streak-placeholder{font-size:10px;color:#a3acbc;line-height:1.8}
.profit-table .profit-nickname>.nickname{font-size:inherit}
.summary-header{align-items:flex-end}
.summary-date-form{flex-shrink:0;max-width:100%}
.summary-date-form>label{display:block;font-size:10px;font-weight:600;color:#8993a7;margin-bottom:8px}
.summary-date-form>div{display:flex;align-items:center;gap:8px}
.summary-date-form input{width:164px;font-size:12px}
.summary-date-form .button{font-size:11px;height:39px;padding:0 14px}
.summary-date-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px 0 13px;font-size:11px;color:#8b94a6}
.summary-date-caption strong{font-weight:650;color:#68758f;margin-right:5px;font-variant-numeric:tabular-nums}
.summary-tracking{font-size:10px;color:#9da6b6;white-space:nowrap}
.summary-stats .stat-card:first-child .stat-value.is-large-amount{font-size:24px}
.summary-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:29px 0 17px}
.summary-section-heading h2{font-size:17px}
.summary-section-heading p{font-size:10px;color:#929daf;margin-top:6px;line-height:1.8}
.summary-section-heading strong{font-weight:600}
.summary-refresh{font-size:10px;line-height:1.8;white-space:nowrap;color:#96a1b2;padding-top:4px}
.summary-refresh.refresh-error{color:#b28b4a}
.summary-client-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.summary-client-card{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid var(--border);border-radius:12px;padding:21px 21px 18px;box-shadow:var(--shadow)}
.summary-card-heading{min-width:0;padding-bottom:17px;border-bottom:1px solid #edf0f6}
.summary-card-heading h3{font-size:15px;font-weight:700;line-height:1.7;margin:0;letter-spacing:-.2px}
.summary-card-status{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px;margin:17px 0 9px}
.summary-card-status div{min-width:0}
.summary-card-status dt{font-size:10px;color:#98a2b4;line-height:1.6;margin:0 0 7px}
.summary-card-status dd{margin:0;min-height:25px;display:flex;align-items:center}
.permission-badge{display:inline-flex;align-items:center;max-width:100%;font-size:10px;font-weight:600;line-height:1.5;padding:4px 7px;border-radius:5px;white-space:nowrap}
.permission-badge.is-enabled{color:#8b70cd;background:#f4f0fd}
.permission-badge.is-disabled{color:#959eae;background:#f1f3f7}
.summary-cycle{font-size:9px;color:#a2acbc;line-height:1.8;font-variant-numeric:tabular-nums}
.summary-card-profit{border-top:1px solid #edf0f6;margin-top:16px;padding-top:16px}
.summary-profit-label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;color:#929eb2;line-height:1.7}
.summary-profit-label .status-badge{font-size:9px;padding:5px 7px}
.summary-profit-value{font-size:28px;line-height:1.5;letter-spacing:-.6px;font-weight:750;margin-top:8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.summary-profit-value.is-large-amount{font-size:21px;letter-spacing:-.5px}
.summary-profit-value.is-missing{font-size:24px;font-weight:500;color:#b0b9c7}
.summary-streak{min-height:33px;margin-top:3px;margin-bottom:16px}
.summary-streak .streak-group{margin-top:5px}
.summary-received-at{margin-top:auto;border-top:1px solid #edf0f6;padding-top:12px;display:flex;flex-direction:column;gap:4px;line-height:1.7}
.summary-received-at>span{font-size:9px;color:#a4adbd}
.summary-received-at>time{font-size:10px;color:#8c99ae;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.summary-empty{grid-column:1/-1;border:1px solid var(--border);background:white;border-radius:12px}
.summary-empty .button{margin-top:20px}
.summary-help{font-size:10px;color:#99a4b6;line-height:1.9;margin:20px 1px 23px}
.summary-help p+p{margin-top:7px}
.summary-help strong{font-weight:600;color:#8b98af}
@media(max-width:1300px){.summary-client-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-header{flex-wrap:wrap;align-items:flex-start}.summary-date-form{align-self:flex-end}}
@media(max-width:700px){
  .sidebar nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
  .nav-item{flex-direction:column;gap:6px;min-height:62px;font-size:11px;padding:10px 2px;white-space:nowrap}
  .nav-item>span:first-child{font-size:19px}
  .summary-header{gap:20px;margin-bottom:18px}
  .summary-header>div{flex-basis:100%}
  .summary-header p{font-size:12px;line-height:1.85}
  .summary-date-form{width:100%}
  .summary-date-form>label{font-size:12px;color:#7e8ca3;margin-bottom:9px}
  .summary-date-form>div{display:grid;grid-template-columns:minmax(0,1fr) 64px 64px;gap:8px}
  .summary-date-form input{width:100%;height:46px;font-size:16px;min-width:0}
  .summary-date-form .button{height:46px;min-height:46px;font-size:13px;padding:0 8px}
  .summary-date-caption{font-size:11px;line-height:1.8;gap:8px;margin:0 0 13px;flex-wrap:wrap}
  .summary-date-caption strong{font-size:12px}
  .summary-tracking{font-size:10px}
  .summary-stats .stat-card:first-child .stat-value.is-large-amount{font-size:clamp(17px,4.8vw,22px)!important}
  .summary-section-heading{gap:12px;flex-wrap:wrap;margin:25px 0 16px}
  .summary-section-heading h2{font-size:17px}
  .summary-section-heading p{font-size:11px;line-height:1.9;margin-top:7px}
  .summary-refresh{font-size:11px;padding:0;white-space:normal;line-height:1.8}
  .summary-client-grid{grid-template-columns:minmax(0,1fr);gap:15px}
  .summary-client-card{padding:20px 18px 18px;border-radius:12px}
  .summary-card-heading{padding-bottom:16px}
  .summary-card-heading h3{font-size:17px;line-height:1.75;letter-spacing:-.4px}
  .summary-card-status{gap:12px;margin:18px 0 10px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
  .summary-card-status dt{font-size:11px;line-height:1.7;margin-bottom:8px}
  .summary-card-status dd{min-height:29px}
  .permission-badge{font-size:11px;padding:5px 8px;line-height:1.6}
  .summary-card-status .status-badge{font-size:11px;padding:7px 9px}
  .summary-cycle{font-size:11px;line-height:1.8}
  .summary-card-profit{margin-top:17px;padding-top:17px}
  .summary-profit-label{font-size:12px;line-height:1.8}
  .summary-profit-label .status-badge{font-size:10px;padding:6px 8px}
  .summary-profit-value{font-size:30px;line-height:1.55;margin-top:8px;letter-spacing:-.7px}
  .summary-profit-value.is-large-amount{font-size:21px;letter-spacing:-.5px}
  .summary-profit-value.is-missing{font-size:26px}
  .summary-streak{margin-top:7px;margin-bottom:17px;min-height:29px}
  .streak-group{gap:6px 8px;margin-top:10px}
  .streak-badge{font-size:11px;min-height:27px;padding:4px 8px;line-height:1.5;border-radius:5px}
  .streak-anchor{font-size:10px;line-height:1.8;color:#8f9bb0}
  .streak-placeholder{font-size:11px;color:#9eabbd;line-height:1.8}
  .summary-received-at{padding-top:13px;gap:5px}
  .summary-received-at>span{font-size:10px;color:#99a6ba}
  .summary-received-at>time{font-size:12px;line-height:1.8}
  .summary-help{font-size:11px;line-height:1.95;color:#8f9eb5;margin:19px 2px 25px}
  .summary-help p+p{margin-top:11px}
  .profit-table .profit-nickname>.nickname{font-size:16px;line-height:1.75}
  .profit-table .profit-nickname .streak-group{margin-top:10px}
}
@media(max-width:375px){.nav-item{font-size:10px}.summary-client-card{padding:19px 16px 17px}.summary-profit-value.is-large-amount{font-size:20px}.permission-badge{font-size:10px}.summary-card-status dt{font-size:10px}}

/* The two money cards share the same exact-value formatting and sign colors. */
.summary-stats{grid-template-columns:minmax(0,1.25fr) minmax(0,1.25fr) minmax(0,.8fr) minmax(0,.8fr)}
.summary-stats .summary-money-card{min-width:0}
.summary-stats .summary-money-card .stat-value{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.summary-stats .summary-money-card .stat-value.is-large-amount{font-size:clamp(16px,1.25vw,21px);line-height:1.5}
.summary-stats .summary-month-range{font-variant-numeric:tabular-nums;line-height:1.8;overflow-wrap:anywhere}
.summary-month-card strong{font-weight:600}
@media(max-width:1250px){
  .summary-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .summary-stats .summary-money-card .stat-value.is-large-amount{font-size:24px}
}
@media(max-width:700px){
  .summary-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .summary-stats .summary-month-card{grid-column:1/-1;padding:18px}
  .summary-stats .summary-month-card .stat-label{min-height:0}
  .summary-stats .summary-month-card .stat-value{font-size:29px;line-height:1.5;margin:7px 0}
  .summary-stats .summary-money-card .stat-value.is-large-amount{font-size:clamp(17px,4.8vw,22px)!important;white-space:normal;word-break:normal;overflow-wrap:anywhere}
  .summary-stats .summary-month-range{font-size:11px;line-height:1.9;color:#8391a8}
}


/* Optional BUY window: paired HH:MM inputs, full-width mobile card row. */
.clients-table{min-width:1310px}
.clients-table th:nth-child(n){width:auto}
.clients-table .client-buy-window{min-width:244px}
.buy-window-inputs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px;align-items:end;min-width:0}
.buy-window-inputs>label{min-width:0;display:block}
.buy-window-inputs>label>span{display:block;font-size:9px;color:#929db0;margin-bottom:5px;font-weight:500}
.buy-window-inputs>span{padding-bottom:7px;color:#9ca6b7}
.buy-window-inputs input[type=time]{width:100%;min-width:0;max-width:100%;padding:7px 6px;font-variant-numeric:tabular-nums}
.buy-window-help{font-size:9px;color:#9ca6b7;margin-top:6px;line-height:1.7}
.clear-buy-window{min-height:26px;margin-top:3px;font-size:9px}
.registration-buy-window{min-width:250px}
.registration-buy-window .buy-window-inputs>label>span{font-size:10px}
.registration-buy-window .buy-window-inputs input{height:39px}
.registration-buy-window>small{display:block;max-width:280px}
.summary-buy-window{font-size:10px;color:#99a4b6;line-height:1.8;margin:4px 0 7px;overflow-wrap:anywhere}
.summary-buy-window>span{font-weight:600;color:#7b88a1;font-variant-numeric:tabular-nums;margin-left:5px}
.applied-cell [data-field=applied-buy-window]{white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){
  .clients-table{min-width:0}
  .clients-table .client-buy-window{order:5;grid-column:1/-1;min-width:0}
  .clients-table .applied-cell{order:6}
  .clients-table .client-actions{order:7}
  .buy-window-inputs{gap:8px}
  .buy-window-inputs>label>span{font-size:11px;line-height:1.6;margin-bottom:6px}
  .buy-window-inputs>span{padding-bottom:12px}
  .buy-window-inputs input[type=time],.registration-buy-window .buy-window-inputs input{height:46px;font-size:16px;padding:10px 9px}
  .buy-window-help{font-size:11px;margin-top:8px;line-height:1.8}
  .clear-buy-window{min-height:44px;font-size:12px;padding:5px 0}
  .registration-form>.registration-buy-window{grid-column:1/-1;width:auto;min-width:0}
  .registration-buy-window .buy-window-inputs>label>span{font-size:11px}
  .registration-buy-window>small{max-width:none;line-height:1.8}
  .summary-buy-window{font-size:11px;line-height:1.9;margin:5px 0 8px}
  .summary-buy-window>span{margin-left:4px}
}
