.solo-record-page{--sr-panel:var(--solo-card,#fff);--sr-soft:var(--surface-2,#f7f4ee);--sr-text:var(--solo-text,#17130d);--sr-muted:var(--solo-muted,#756d62);--sr-line:var(--solo-border,rgba(143,101,31,.2));--sr-gold:var(--solo-gold,#b67a1d);--sr-bright:var(--solo-gold-bright,#e5b85c);max-width:1500px;margin:auto;color:var(--sr-text)}
.solo-record-head,.solo-record-command,.solo-record-table-card,.solo-record-editor,.solo-record-cleanup,.solo-record-metrics article{border:1px solid var(--sr-line);background:var(--sr-panel);box-shadow:0 16px 42px rgba(35,23,6,.07)}
.solo-record-head{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:clamp(24px,3vw,38px);overflow:hidden;border-radius:24px;background:radial-gradient(circle at 88% 18%,color-mix(in srgb,var(--sr-gold) 16%,transparent),transparent 35%),var(--sr-panel)}
.solo-record-head:after{content:"";position:absolute;z-index:-1;right:-40px;bottom:-100px;width:300px;height:190px;border:1px solid color-mix(in srgb,var(--sr-gold) 35%,transparent);border-radius:50%;transform:rotate(-14deg)}
.solo-record-head span,.solo-record-command small,.solo-record-form header small,.solo-record-table-card header small,.solo-record-cleanup summary small{display:block;color:var(--sr-gold);font-size:.73rem;font-weight:850;letter-spacing:.16em}
.solo-record-head h1,.solo-record-command h2,.solo-record-form h2,.solo-record-table-card h2,.solo-record-cleanup h2{margin:5px 0 0;color:var(--sr-text);line-height:1.12}.solo-record-head h1{font-size:clamp(1.9rem,3vw,2.75rem)}
.solo-record-head p,.solo-record-table-card header p,.solo-record-cleanup p{margin:9px 0 0;color:var(--sr-muted);line-height:1.6}.solo-record-head>a,.solo-record-add,.solo-record-filter button,.solo-record-form>button,.solo-record-cleanup button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:0 18px;border:1px solid color-mix(in srgb,var(--sr-gold) 68%,transparent);border-radius:12px;background:linear-gradient(135deg,var(--sr-bright),var(--sr-gold));box-shadow:0 10px 24px color-mix(in srgb,var(--sr-gold) 18%,transparent);color:#241705;font:inherit;font-weight:850;text-decoration:none;white-space:nowrap;cursor:pointer}
.solo-record-tabs{display:flex;gap:7px;margin:17px 0;padding:7px;overflow-x:auto;border:1px solid var(--sr-line);border-radius:17px;background:var(--sr-panel);scrollbar-width:thin}.solo-record-tabs a{flex:1;min-width:125px;padding:11px 14px;border:1px solid transparent;border-radius:11px;color:var(--sr-muted);font-size:.88rem;font-weight:750;text-align:center;text-decoration:none}.solo-record-tabs a:hover{border-color:var(--sr-line);background:var(--sr-soft);color:var(--sr-text)}.solo-record-tabs a.active{border-color:color-mix(in srgb,var(--sr-gold) 65%,transparent);background:linear-gradient(135deg,var(--sr-bright),var(--sr-gold));color:#241705;box-shadow:0 6px 18px color-mix(in srgb,var(--sr-gold) 18%,transparent)}
.solo-record-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:17px}.solo-record-metrics article{position:relative;padding:18px 19px;border-radius:16px;overflow:hidden}.solo-record-metrics article:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--sr-gold)}.solo-record-metrics small,.solo-record-metrics span{display:block;color:var(--sr-muted)}.solo-record-metrics small{font-size:.73rem;font-weight:750}.solo-record-metrics strong{display:block;margin:7px 0 2px;font-size:1.65rem;line-height:1}.solo-record-metrics span{font-size:.7rem}
.solo-record-command{padding:21px;border-radius:20px}.solo-record-command-title{display:flex;align-items:center;justify-content:space-between;gap:16px}.solo-record-command h2,.solo-record-form h2,.solo-record-table-card h2,.solo-record-cleanup h2{font-size:1.25rem}.solo-record-add{min-height:40px;background:var(--sr-soft);box-shadow:none;color:var(--sr-text)}
.solo-record-filter{display:grid;grid-template-columns:1.45fr 1.2fr .85fr .8fr .8fr auto;gap:11px;align-items:end;margin-top:17px;padding-top:17px;border-top:1px solid var(--sr-line)}
.solo-record-filter label,.solo-record-form label,.solo-record-cleanup label{display:grid;gap:6px;color:var(--sr-text);font-size:.78rem;font-weight:760}.solo-record-filter label>span{color:var(--sr-muted);font-size:.69rem;letter-spacing:.07em;text-transform:uppercase}
.solo-record-page input,.solo-record-page select,.solo-record-page textarea{width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--sr-line);border-radius:10px;outline:0;background:color-mix(in srgb,var(--sr-soft) 87%,var(--sr-panel));color:var(--sr-text);font:inherit;color-scheme:inherit}.solo-record-page select option{background:var(--sr-panel);color:var(--sr-text)}.solo-record-page input:focus,.solo-record-page select:focus,.solo-record-page textarea:focus{border-color:var(--sr-gold);box-shadow:0 0 0 3px color-mix(in srgb,var(--sr-gold) 14%,transparent)}.solo-record-filter-actions{display:flex;gap:7px}.solo-record-filter-actions a{display:grid;min-height:44px;place-items:center;padding:0 13px;border:1px solid var(--sr-line);border-radius:10px;color:var(--sr-text);font-size:.78rem;font-weight:750;text-decoration:none}
.solo-record-editor{display:none;margin-top:17px;border-radius:20px}.solo-record-editor.is-open{display:block;animation:recordReveal .22s ease}.solo-record-form{display:grid;gap:18px;padding:clamp(21px,3vw,31px)}.solo-record-form header{display:flex;align-items:center;justify-content:space-between;padding-bottom:15px;border-bottom:1px solid var(--sr-line)}.solo-record-form header a{color:var(--sr-gold);font-size:.78rem;font-weight:800}.solo-record-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.solo-record-form label>small{color:var(--sr-muted);font-weight:500}.solo-record-form textarea{min-height:90px;resize:vertical}.solo-record-notes{grid-column:1/-1}.solo-check{display:flex!important;min-height:44px;align-items:center;gap:9px;padding:9px 11px;border:1px solid var(--sr-line);border-radius:10px;background:var(--sr-soft)}.solo-check input{width:18px;min-height:18px;margin:0;accent-color:var(--sr-gold)}.solo-record-form>button{justify-self:end}.solo-record-errors{padding:12px 14px;border:1px solid color-mix(in srgb,#dc2626 40%,transparent);border-radius:11px;background:color-mix(in srgb,#dc2626 9%,var(--sr-panel));color:color-mix(in srgb,#dc2626 76%,var(--sr-text))}.solo-record-errors ul{margin:0;padding-left:18px}
.solo-record-targeting{grid-column:1/-1;min-width:0;margin:0;padding:18px;border:1px solid var(--sr-line);border-radius:17px;background:linear-gradient(135deg,color-mix(in srgb,var(--sr-gold) 6%,var(--sr-panel)),var(--sr-panel))}.solo-record-targeting legend{display:grid;gap:4px;width:100%;padding:0 7px;color:var(--sr-text)}.solo-record-targeting legend>span,.solo-target-impact>span{color:var(--sr-gold);font-size:.67rem;font-weight:850;letter-spacing:.14em}.solo-record-targeting legend>strong{font-size:1rem}.solo-record-targeting legend>small{color:var(--sr-muted);font-weight:500;line-height:1.5}.solo-target-modes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:13px 0 15px}.solo-target-mode{position:relative;display:block!important;cursor:pointer}.solo-target-mode>input{position:absolute;width:1px!important;height:1px;min-height:0!important;opacity:0}.solo-target-mode>span{display:grid;min-height:70px;align-content:center;gap:4px;padding:11px;border:1px solid var(--sr-line);border-radius:12px;background:var(--sr-panel);transition:border-color .18s ease,background .18s ease,transform .18s ease}.solo-target-mode b{font-size:.76rem}.solo-target-mode small{color:var(--sr-muted);font-size:.65rem;font-weight:550}.solo-target-mode>input:checked+span{border-color:var(--sr-gold);background:color-mix(in srgb,var(--sr-gold) 12%,var(--sr-panel));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sr-gold) 28%,transparent);transform:translateY(-1px)}.solo-target-mode>input:focus-visible+span{outline:3px solid color-mix(in srgb,var(--sr-gold) 22%,transparent);outline-offset:2px}.solo-target-panel{display:none}.solo-target-panel.is-active{display:block}.solo-target-panel>label{max-width:620px}.solo-target-list-head{display:flex;align-items:end;justify-content:space-between;gap:12px}.solo-target-list-head>label{width:min(620px,100%)}.solo-target-list-head>div{display:flex;gap:7px}.solo-target-list-head button{min-height:38px;padding:0 12px;border:1px solid var(--sr-line);border-radius:9px;background:var(--sr-soft);color:var(--sr-text);font:inherit;font-size:.7rem;font-weight:800;cursor:pointer}.solo-target-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:310px;margin-top:11px;padding:5px;overflow:auto;border:1px solid var(--sr-line);border-radius:12px;background:var(--sr-soft)}.solo-target-employee{display:grid!important;grid-template-columns:19px minmax(0,1fr);align-items:center;gap:9px;padding:10px;border:1px solid transparent;border-radius:9px;background:var(--sr-panel);cursor:pointer}.solo-target-employee:hover{border-color:color-mix(in srgb,var(--sr-gold) 45%,var(--sr-line))}.solo-target-employee>input{width:17px!important;min-height:17px!important;margin:0;accent-color:var(--sr-gold)}.solo-target-employee span,.solo-target-employee b,.solo-target-employee small{display:block;min-width:0}.solo-target-employee b{overflow:hidden;font-size:.74rem;text-overflow:ellipsis;white-space:nowrap}.solo-target-employee small{margin-top:3px;overflow:hidden;color:var(--sr-muted);font-size:.62rem;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.solo-target-count{margin:9px 2px 0;color:var(--sr-muted);font-size:.7rem}.solo-target-count strong{color:var(--sr-gold);font-size:.84rem}.solo-target-company{align-items:center;gap:12px;padding:16px;border:1px solid color-mix(in srgb,var(--sr-gold) 35%,var(--sr-line));border-radius:12px;background:color-mix(in srgb,var(--sr-gold) 8%,var(--sr-panel))}.solo-target-company.is-active{display:flex}.solo-target-company>span{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border:1px solid color-mix(in srgb,var(--sr-gold) 50%,transparent);border-radius:50%;color:var(--sr-gold);font-size:1.2rem}.solo-target-company strong,.solo-target-company small{display:block}.solo-target-company small{margin-top:3px;color:var(--sr-muted);font-size:.68rem;font-weight:500}.solo-target-impact{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:13px;padding:10px 12px;border-top:1px solid var(--sr-line);color:var(--sr-muted)}.solo-target-impact strong{color:var(--sr-text);font-size:.74rem;text-align:right}
.solo-record-table-card{margin-top:17px;overflow:hidden;border-radius:20px}.solo-record-table-card>header{padding:21px 23px;border-bottom:1px solid var(--sr-line)}.solo-record-table-card header p{font-size:.78rem}.solo-record-table-scroll{overflow-x:auto}.solo-record-table{width:100%;min-width:900px;border-collapse:collapse}.solo-record-table th{padding:12px 16px;background:var(--sr-soft);color:var(--sr-muted);font-size:.69rem;letter-spacing:.07em;text-align:left;text-transform:uppercase}.solo-record-table td{padding:15px 16px;border-top:1px solid var(--sr-line);color:var(--sr-text);font-size:.8rem;vertical-align:middle}.solo-record-table tbody tr:hover{background:color-mix(in srgb,var(--sr-gold) 4%,transparent)}.solo-record-table td strong,.solo-record-table td small{display:block}.solo-record-table td small{margin-top:4px;color:var(--sr-muted);font-size:.69rem}.solo-record-table .solo-protected{width:max-content;padding:3px 7px;border-radius:999px;background:color-mix(in srgb,var(--sr-gold) 13%,var(--sr-panel));color:var(--sr-gold)}.solo-status{display:inline-flex;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--sr-gold) 13%,var(--sr-panel));color:var(--sr-gold);font-size:.68rem;font-weight:850;text-transform:uppercase}.solo-status.approved,.solo-status.completed{background:color-mix(in srgb,#16804b 12%,var(--sr-panel));color:color-mix(in srgb,#16804b 75%,var(--sr-text))}.solo-status.rejected,.solo-status.cancelled{background:color-mix(in srgb,#c43b31 11%,var(--sr-panel));color:color-mix(in srgb,#c43b31 78%,var(--sr-text))}.solo-record-table .actions{white-space:nowrap;text-align:right}.solo-record-table .actions>a,.solo-record-table .actions button{display:inline-flex;min-height:33px;align-items:center;padding:0 10px;border:1px solid var(--sr-line);border-radius:8px;background:var(--sr-soft);color:var(--sr-text);font:inherit;font-size:.72rem;font-weight:800;text-decoration:none;cursor:pointer}.solo-record-table .actions form{display:inline}.solo-record-table .actions button{color:#b52e26}.solo-record-table .actions button:disabled{cursor:not-allowed;opacity:.42}.solo-record-empty{display:grid;gap:6px;place-items:center;padding:52px 20px;color:var(--sr-muted);text-align:center}.solo-record-empty strong{color:var(--sr-text)}
.solo-record-pagination{display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:14px 18px;border-top:1px solid var(--sr-line);color:var(--sr-muted);font-size:.77rem}.solo-record-pagination a{padding:7px 11px;border:1px solid var(--sr-line);border-radius:8px;color:var(--sr-text);font-weight:750;text-decoration:none}.solo-record-pagination a.disabled{pointer-events:none;opacity:.4}
.solo-record-cleanup{margin-top:17px;border-radius:20px;overflow:hidden}.solo-record-cleanup summary{display:flex;align-items:center;justify-content:space-between;padding:19px 22px;cursor:pointer;list-style:none}.solo-record-cleanup summary::-webkit-details-marker{display:none}.solo-record-cleanup summary strong{display:block;margin-top:5px}.solo-record-cleanup summary b{color:var(--sr-gold);font-size:.75rem}.solo-record-cleanup[open] summary{border-bottom:1px solid var(--sr-line)}.solo-record-cleanup-body{display:grid;grid-template-columns:minmax(230px,.55fr) minmax(500px,1.45fr);gap:28px;padding:23px}.solo-record-cleanup-body form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.solo-cleanup-confirm{grid-column:1/4}.solo-record-cleanup button{align-self:end;background:color-mix(in srgb,#b52e26 85%,#240904);border-color:#b52e26;color:#fff}
@keyframes recordReveal{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:none}}
@media(max-width:1100px){.solo-record-filter{grid-template-columns:repeat(3,minmax(0,1fr))}.solo-record-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.solo-target-modes{grid-template-columns:repeat(3,minmax(0,1fr))}.solo-record-cleanup-body{grid-template-columns:1fr}.solo-record-cleanup-body form{grid-template-columns:repeat(3,minmax(0,1fr))}.solo-cleanup-confirm{grid-column:1/3}}
@media(max-width:760px){.solo-record-head{align-items:stretch;flex-direction:column;border-radius:18px}.solo-record-head>a{width:100%}.solo-record-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.solo-record-command{padding:17px}.solo-record-command-title{align-items:stretch;flex-direction:column}.solo-record-filter{grid-template-columns:1fr 1fr}.solo-record-filter label:first-of-type{grid-column:1/-1}.solo-record-filter-actions{grid-column:1/-1}.solo-record-filter-actions>*{flex:1}.solo-record-form-grid{grid-template-columns:1fr}.solo-record-notes{grid-column:auto}.solo-record-form>button{width:100%}.solo-target-modes{grid-template-columns:repeat(2,minmax(0,1fr))}.solo-target-list-head{align-items:stretch;flex-direction:column}.solo-target-list-head>div{width:100%}.solo-target-list-head button{flex:1}.solo-target-list{grid-template-columns:1fr}.solo-target-impact{align-items:flex-start;flex-direction:column}.solo-target-impact strong{text-align:left}.solo-record-table{min-width:0}.solo-record-table thead{display:none}.solo-record-table tbody{display:grid;gap:10px;padding:12px}.solo-record-table tr{display:grid;padding:13px;border:1px solid var(--sr-line);border-radius:13px;background:var(--sr-soft)}.solo-record-table td{display:grid;grid-template-columns:112px minmax(0,1fr);gap:8px;padding:8px 2px;border:0;text-align:left!important;white-space:normal!important}.solo-record-table td:before{content:attr(data-label);color:var(--sr-muted);font-size:.67rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.solo-record-table .actions form{display:inline}.solo-record-pagination{justify-content:space-between}.solo-record-cleanup-body form{grid-template-columns:1fr 1fr}.solo-cleanup-confirm{grid-column:1/-1}.solo-record-cleanup button{grid-column:1/-1}}
@media(max-width:460px){.solo-record-metrics{grid-template-columns:1fr}.solo-record-filter,.solo-record-cleanup-body form{grid-template-columns:1fr}.solo-record-filter label:first-of-type,.solo-cleanup-confirm,.solo-record-cleanup button{grid-column:auto}.solo-record-table td{grid-template-columns:92px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.solo-record-page *{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

/* Add and cleanup are two exclusive panels in the same record-control area. */
.solo-record-command-actions{display:flex;flex-wrap:wrap;gap:9px}
.solo-record-command-actions button{min-height:40px;box-shadow:none}
.solo-record-delete{display:inline-flex;align-items:center;justify-content:center;padding:0 18px;border:1px solid color-mix(in srgb,#b52e26 45%,var(--sr-line));border-radius:12px;background:var(--sr-soft);color:var(--sr-text);font:inherit;font-weight:800;white-space:nowrap;cursor:pointer}
.solo-record-add[aria-expanded="true"]{border-color:var(--sr-gold);background:color-mix(in srgb,var(--sr-gold) 12%,var(--sr-panel))}
.solo-record-delete[aria-expanded="true"]{background:color-mix(in srgb,#b52e26 10%,var(--sr-panel));color:color-mix(in srgb,#b52e26 70%,var(--sr-text))}
.solo-record-editor,.solo-record-cleanup{scroll-margin-top:95px}
.solo-record-form header{gap:15px}
.solo-record-panel-actions{display:flex;align-items:center;gap:13px}
.solo-record-panel-actions button,.solo-record-cleanup-head button{min-height:34px;padding:0 11px;border:1px solid var(--sr-line);border-radius:9px;background:var(--sr-soft);box-shadow:none;color:var(--sr-text);font:inherit;font-size:.75rem;font-weight:800;white-space:nowrap;cursor:pointer}
.solo-record-cleanup{display:none}
.solo-record-cleanup.is-open{display:block;animation:recordReveal .22s ease}
.solo-record-cleanup-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 23px;border-bottom:1px solid var(--sr-line)}
.solo-record-cleanup-head small{display:block;color:var(--sr-gold);font-size:.73rem;font-weight:850;letter-spacing:.16em}
.solo-record-cleanup-body h3{margin:0;color:var(--sr-text);font-size:1rem}
.solo-record-cleanup form>button{align-self:end;background:color-mix(in srgb,#b52e26 85%,#240904);border-color:#b52e26;color:#fff}
@media(max-width:760px){.solo-record-command-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.solo-record-command-actions button{min-width:0;padding-inline:9px}.solo-record-cleanup form>button{grid-column:1/-1}}
@media(max-width:460px){.solo-record-cleanup form>button{grid-column:auto}}

/* Password-authorized loan deletion keeps payroll history intact while allowing record cleanup. */
.solo-edit-locked{display:inline-flex;min-height:33px;align-items:center;padding:0 10px;border:1px solid var(--sr-line);border-radius:8px;background:color-mix(in srgb,var(--sr-gold) 9%,var(--sr-panel));color:var(--sr-muted);font-size:.7rem;font-weight:800}
.solo-cleanup-password{grid-column:1/4}.solo-cleanup-password small{color:var(--sr-muted);font-weight:500}
.solo-loan-delete-dialog{width:min(540px,calc(100vw - 28px));padding:0;border:1px solid var(--sr-line);border-radius:22px;background:var(--sr-panel);box-shadow:0 34px 100px rgba(13,9,3,.42);color:var(--sr-text)}.solo-loan-delete-dialog::backdrop{background:rgba(10,8,5,.62);backdrop-filter:blur(7px)}.solo-loan-delete-dialog form{display:grid}.solo-loan-delete-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid var(--sr-line);background:linear-gradient(135deg,color-mix(in srgb,#b52e26 7%,var(--sr-panel)),var(--sr-panel))}.solo-loan-delete-dialog header small{color:#b52e26;font-size:.68rem;font-weight:850;letter-spacing:.15em}.solo-loan-delete-dialog h2{margin:5px 0 0;font-size:1.3rem}.solo-loan-delete-dialog header button{width:35px;height:35px;border:1px solid var(--sr-line);border-radius:50%;background:var(--sr-soft);color:var(--sr-text);font-size:1.2rem;cursor:pointer}.solo-loan-delete-body{display:grid;gap:12px;padding:23px 24px}.solo-loan-delete-body p{margin:0;font-size:.96rem}.solo-loan-delete-body>span{color:var(--sr-muted);font-size:.78rem}.solo-loan-delete-note{display:grid;gap:4px;padding:13px 14px;border:1px solid color-mix(in srgb,var(--sr-gold) 28%,var(--sr-line));border-radius:12px;background:color-mix(in srgb,var(--sr-gold) 7%,var(--sr-panel))}.solo-loan-delete-note b{font-size:.75rem}.solo-loan-delete-note small{color:var(--sr-muted);font-size:.7rem;line-height:1.5}.solo-loan-delete-body label{display:grid;gap:6px;font-size:.78rem;font-weight:800}.solo-loan-delete-body input{width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--sr-line);border-radius:10px;background:var(--sr-soft);color:var(--sr-text);font:inherit}.solo-loan-delete-dialog footer{display:flex;justify-content:flex-end;gap:9px;padding:17px 24px;border-top:1px solid var(--sr-line)}.solo-loan-delete-dialog footer button{min-height:40px;padding:0 16px;border:1px solid var(--sr-line);border-radius:10px;background:var(--sr-soft);color:var(--sr-text);font:inherit;font-weight:800;cursor:pointer}.solo-loan-delete-dialog footer button[type="submit"]{border-color:#a52e26;background:linear-gradient(135deg,#c8493e,#8e201a);color:#fff}
@media(max-width:760px){.solo-cleanup-password{grid-column:1/-1}}
@media(max-width:460px){.solo-cleanup-password{grid-column:auto}.solo-loan-delete-dialog footer{display:grid;grid-template-columns:1fr 1fr}.solo-loan-delete-dialog footer button{padding-inline:8px}}

/* Mobile record console: compact navigation, progressive filters and scannable record cards. */
.solo-record-filter-toggle{display:none}
@media(max-width:760px){
    .solo-record-page{width:100%;padding-bottom:max(24px,env(safe-area-inset-bottom))}
    .solo-record-head{gap:17px;padding:21px 18px;border-radius:20px;background:radial-gradient(circle at 92% 8%,color-mix(in srgb,var(--sr-gold) 22%,transparent),transparent 42%),linear-gradient(155deg,color-mix(in srgb,var(--sr-gold) 5%,var(--sr-panel)),var(--sr-panel))}
    .solo-record-head:after{right:-96px;bottom:-118px;width:260px;height:210px}
    .solo-record-head span{font-size:.64rem;letter-spacing:.14em}
    .solo-record-head h1{margin-top:7px;font-size:1.72rem}
    .solo-record-head p{max-width:30rem;margin-top:7px;font-size:.82rem;line-height:1.5}
    .solo-record-head>a{min-height:46px;border-radius:13px;box-shadow:none}

    .solo-record-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0;padding:6px;overflow:visible;border-radius:16px}
    .solo-record-tabs a{display:grid;min-width:0;min-height:48px;place-items:center;padding:7px 5px;border-color:var(--sr-line);border-radius:10px;font-size:.7rem;line-height:1.16}
    .solo-record-tabs a.active{position:relative;box-shadow:0 6px 14px color-mix(in srgb,var(--sr-gold) 20%,transparent)}
    .solo-record-tabs a.active:after{content:"";position:absolute;right:7px;bottom:5px;left:7px;height:2px;border-radius:99px;background:#fff8dc;opacity:.72}

    .solo-record-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
    .solo-record-metrics article{min-height:92px;padding:14px 13px;border-radius:14px;box-shadow:0 9px 24px rgba(35,23,6,.055)}
    .solo-record-metrics small{max-width:9rem;font-size:.65rem;line-height:1.2}
    .solo-record-metrics strong{margin:8px 0 3px;font-size:1.4rem}
    .solo-record-metrics span{font-size:.61rem}

    .solo-record-command{padding:15px;border-radius:18px;background:linear-gradient(155deg,color-mix(in srgb,var(--sr-gold) 4%,var(--sr-panel)),var(--sr-panel))}
    .solo-record-command-title{gap:13px}
    .solo-record-command-title>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
    .solo-record-command-title>div:first-child small{font-size:.61rem}
    .solo-record-command h2{margin:0;font-size:1.05rem}
    .solo-record-command-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
    .solo-record-command-actions button{min-height:45px;padding:0 7px;border-radius:11px;font-size:.72rem}
    .solo-record-filter-toggle{display:inline-flex;position:relative;align-items:center;justify-content:center;border:1px solid var(--sr-line);background:var(--sr-soft);color:var(--sr-text);font:inherit;font-weight:800;cursor:pointer}
    .solo-record-filter-toggle span{display:grid;position:absolute;top:-6px;right:-4px;width:20px;height:20px;place-items:center;border:2px solid var(--sr-panel);border-radius:50%;background:var(--sr-gold);color:#fff;font-size:.61rem;letter-spacing:0}
    .solo-record-filter{display:none;grid-template-columns:1fr;gap:10px;margin-top:14px;padding-top:14px}
    .solo-record-filter.is-open{display:grid;animation:recordReveal .18s ease}
    .solo-record-filter label:first-of-type{grid-column:auto}
    .solo-record-filter-actions{grid-column:auto;gap:8px;margin-top:2px}
    .solo-record-filter-actions>*{min-height:46px}

    .solo-record-editor,.solo-record-cleanup{margin-top:12px;border-radius:18px;scroll-margin-top:18px}
    .solo-record-form{gap:15px;padding:16px}
    .solo-record-form header,.solo-record-cleanup-head{align-items:flex-start;padding:0 0 13px}
    .solo-record-cleanup-head{padding:16px;border-bottom:1px solid var(--sr-line)}
    .solo-record-form header h2,.solo-record-cleanup-head h2{font-size:1.12rem}
    .solo-record-panel-actions{align-items:flex-end;flex-direction:column;gap:7px}
    .solo-record-panel-actions button,.solo-record-cleanup-head button{min-height:38px}
    .solo-record-form-grid{gap:11px}
    .solo-record-form label,.solo-record-cleanup label{font-size:.76rem}
    .solo-record-page input,.solo-record-page select,.solo-record-page textarea{min-height:47px;border-radius:11px;font-size:16px}
    .solo-record-targeting{padding:14px 11px;border-radius:15px}
    .solo-record-targeting legend{padding-inline:3px}
    .solo-record-targeting legend>small{font-size:.68rem}
    .solo-target-modes{gap:6px;margin:11px 0 13px}
    .solo-target-mode>span{min-height:66px;padding:9px}
    .solo-target-mode b{font-size:.7rem}
    .solo-target-list{max-height:260px}
    .solo-target-impact{padding-inline:4px}
    .solo-record-form>button{min-height:49px;margin-top:2px;border-radius:12px}
    .solo-record-cleanup-body{gap:17px;padding:16px}
    .solo-record-cleanup-body form{grid-template-columns:1fr;gap:10px}
    .solo-cleanup-confirm,.solo-cleanup-password,.solo-record-cleanup form>button{grid-column:auto}
    .solo-record-cleanup form>button{min-height:48px;margin-top:3px}

    .solo-record-table-card{margin-top:12px;border-radius:18px;background:transparent;box-shadow:none}
    .solo-record-table-card>header{padding:17px 16px;border:1px solid var(--sr-line);border-radius:18px 18px 0 0;background:var(--sr-panel)}
    .solo-record-table-card header>div{display:grid;grid-template-columns:1fr auto;align-items:end;gap:2px 12px}
    .solo-record-table-card header small,.solo-record-table-card header h2{grid-column:1}
    .solo-record-table-card header p{grid-column:2;grid-row:1/3;align-self:center;margin:0;font-size:.67rem;text-align:right}
    .solo-record-table-scroll{overflow:visible}
    .solo-record-table tbody{gap:10px;padding:10px 0 0}
    .solo-record-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:0;overflow:hidden;border-radius:16px;background:var(--sr-panel);box-shadow:0 9px 25px rgba(35,23,6,.06)}
    .solo-record-table td{min-width:0;padding:0;border:0}
    .solo-record-table td:before{font-size:.61rem}
    .solo-record-table td:nth-child(1){display:block;grid-column:1;grid-row:1;padding:15px 8px 10px 15px}
    .solo-record-table td:nth-child(1):before,.solo-record-table td:nth-child(4):before,.solo-record-table td:nth-child(6):before{display:none}
    .solo-record-table td:nth-child(1) strong{overflow:hidden;font-size:.9rem;text-overflow:ellipsis;white-space:nowrap}
    .solo-record-table td:nth-child(1) small{margin-top:3px;font-size:.64rem}
    .solo-record-table td:nth-child(4){display:block;grid-column:2;grid-row:1;padding:14px 14px 8px 4px}
    .solo-record-table td:nth-child(2),.solo-record-table td:nth-child(5){display:grid;grid-column:1/-1;grid-template-columns:86px minmax(0,1fr);gap:8px;padding:8px 15px}
    .solo-record-table td:nth-child(2){border-top:1px solid var(--sr-line)}
    .solo-record-table td:nth-child(3){display:grid;grid-column:1/-1;grid-template-columns:86px minmax(0,1fr);gap:8px;margin:0 10px;padding:10px;border:1px solid color-mix(in srgb,var(--sr-gold) 15%,var(--sr-line));border-radius:10px;background:color-mix(in srgb,var(--sr-gold) 5%,var(--sr-soft));line-height:1.45}
    .solo-record-table td:nth-child(5){padding-bottom:11px;color:var(--sr-muted);font-size:.72rem}
    .solo-record-table td:nth-child(5) small{display:inline;margin:0 0 0 4px;font-size:inherit}
    .solo-record-table .actions{display:flex!important;grid-column:1/-1;grid-row:auto;flex-wrap:wrap;gap:7px;padding:10px;border-top:1px solid var(--sr-line);background:var(--sr-soft)}
    .solo-record-table .actions form{display:flex;flex:1 1 92px}
    .solo-record-table .actions>a,.solo-record-table .actions button,.solo-record-table .actions .solo-edit-locked{min-height:42px;flex:1 1 88px;justify-content:center;padding:0 11px;border-radius:10px}
    .solo-record-table .actions form button{width:100%}
    .solo-record-table .solo-protected{max-width:100%;white-space:normal}
    .solo-record-empty{border:1px solid var(--sr-line);border-top:0;border-radius:0 0 18px 18px;background:var(--sr-panel)}
    .solo-record-pagination{gap:8px;margin-top:10px;padding:10px;border:1px solid var(--sr-line);border-radius:14px;background:var(--sr-panel)}
    .solo-record-pagination a{display:grid;min-width:78px;min-height:42px;place-items:center;padding:0 9px}
    .solo-record-pagination span{font-size:.7rem;text-align:center}

    .solo-loan-delete-dialog{max-height:calc(100dvh - 24px);overflow:auto;border-radius:18px}
    .solo-loan-delete-dialog header,.solo-loan-delete-body,.solo-loan-delete-dialog footer{padding-right:17px;padding-left:17px}
}
@media(max-width:380px){
    .solo-record-head{padding-inline:15px}
    .solo-record-tabs a{font-size:.65rem}
    .solo-record-metrics article{min-height:88px;padding-inline:11px}
    .solo-record-command{padding-inline:12px}
    .solo-record-command-actions button{font-size:.67rem}
    .solo-record-table td:nth-child(2),.solo-record-table td:nth-child(3),.solo-record-table td:nth-child(5){grid-template-columns:74px minmax(0,1fr)}
}
