:root{--bg:#000;--text:#ebebeb;--text-muted:#a0a0a0;--heading:#fff;--accent:#2faecf;--accent-fade:#2faecf1a;--accent-hover:#2faecfe6;--accent2:#b768d9;--grey:#525252;--error:#ffb0b0;--success:#aad3ab;--font-body:"Open Sans", Arial, Helvetica, sans-serif;--font-heading:Montserrat, "Open Sans", Arial, sans-serif;--radius:8px;--gutter:32px;--gutter-mobile:16px}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);font-family:var(--font-body);margin:0;font-size:16px;line-height:1.5}[hidden]{display:none!important}h1,h2,h3{font-family:var(--font-heading);color:var(--heading);margin:0 0 16px;font-weight:400}h1{font-size:40px}h2{font-size:28px}h3{font-size:23px}a{color:var(--accent)}@media (width<=600px){h1{font-size:35px}}strong,b{font-weight:600}main{padding:48px var(--gutter)}.narrow{max-width:480px;margin:0 auto}.wide{max-width:900px;margin:0 auto}.lead{margin-bottom:32px}.two-col{grid-template-columns:1fr 1fr;gap:24px;display:grid}@media (width<=700px){.two-col{grid-template-columns:1fr}}@media (width<=600px){main{padding-left:var(--gutter-mobile);padding-right:var(--gutter-mobile)}}.site-header{padding:24px var(--gutter);border-bottom:1px solid var(--grey);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.site-logo{font-family:var(--font-heading);color:var(--heading);font-size:28px;text-decoration:none}.site-nav{flex-wrap:wrap;gap:4px;display:flex}.site-nav a{color:var(--text);border-radius:var(--radius);padding:8px 16px;text-decoration:none}.site-nav a:hover{background:var(--accent-fade)}.site-nav a.active{color:var(--bg);background:var(--accent)}@media (width<=600px){.site-header{padding-left:var(--gutter-mobile);padding-right:var(--gutter-mobile)}}.site-footer{border-top:1px solid var(--grey);padding:24px var(--gutter);text-align:center;font-size:14px}.site-footer a{color:var(--text)}@media (width<=600px){.site-footer{padding-left:var(--gutter-mobile);padding-right:var(--gutter-mobile)}}.field{flex-direction:column;margin-bottom:16px;display:flex}.field label{margin-bottom:6px}.field .hint{color:var(--text-muted);margin-top:4px;font-size:14px}.field input,.handle-row input{font:inherit;color:var(--text);border:2px solid var(--text);border-radius:var(--radius);background:0 0;max-width:100%;padding:12px 16px}.field input:hover,.handle-row input:hover{background:#ebebeb0d}.field input:focus,.handle-row input:focus{border-color:var(--accent);outline:none}.field input[readonly]{border-color:var(--grey);color:var(--text-muted)}.readonly-value{border:2px solid var(--grey);border-radius:var(--radius);color:var(--text-muted);padding:12px 16px;display:block}.field input.invalid,.handle-row input.invalid{border-color:var(--error)}.required-note{margin-bottom:16px;font-size:14px}.form-footer{margin-top:24px;font-size:14px}.handle-group{border:0;min-width:0;margin:0 0 16px;padding:0}.handle-group legend{margin-bottom:6px;padding:0}.handle-group .hint{color:var(--text-muted);margin:4px 0 0;font-size:14px}.handle-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.handle-row{align-items:center;gap:12px;display:flex}.handle-row input{flex:1;min-width:0}.handle-static{border:2px solid var(--grey);border-radius:var(--radius);color:var(--text-muted);justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.handle-static>span:first-child{overflow-wrap:anywhere}.badge{white-space:nowrap;letter-spacing:.04em;text-transform:uppercase;color:var(--accent);border:1px solid var(--accent);border-radius:999px;flex:none;padding:4px 8px;font-size:12px;line-height:1;display:inline-block}.link-button{font:inherit;cursor:pointer;color:var(--accent);white-space:nowrap;background:0 0;border:0;padding:0;font-size:14px;text-decoration:underline}.link-button:hover{color:var(--accent-hover)}.handle-group>.link-button{margin-top:8px}.button{font:inherit;cursor:pointer;background:var(--accent);color:#000;border-radius:var(--radius);border:2px solid #0000;padding:8px 16px;text-decoration:none;display:inline-block}.button:hover{background:var(--accent-hover)}.button:disabled{opacity:.6;cursor:progress}.button.ghost{color:var(--text);border-color:var(--text);background:0 0}.button.ghost:hover{background:#ebebeb1a}.message{margin-top:16px}.message.error{color:var(--error)}.message.success{color:var(--success)}.panel{border:1px solid var(--grey);border-radius:var(--radius);margin-bottom:24px;padding:24px}.credit-amount{font-family:var(--font-heading);color:var(--accent);margin:0 0 8px;font-size:40px}.credit-note{color:var(--text-muted);margin:0;font-size:14px}.credit-amount.negative{color:var(--error)}.tag-value{color:var(--accent2)}.table-wrap{overflow-x:auto}.history{border-collapse:collapse;width:100%}.history th,.history td{text-align:left;border-bottom:1px solid var(--grey);padding:8px 0}.history th{color:var(--heading);font-weight:400}.history th.amount,.history td.amount{text-align:right}.history td.amount.plus{color:var(--success)}.history td.amount.minus{color:var(--error)}.mfa-steps{counter-reset:step;margin:0 0 24px;padding:0;list-style:none}.mfa-steps>li{counter-increment:step;margin-bottom:32px;padding-left:48px;position:relative}.mfa-steps>li:before{content:counter(step);border:2px solid var(--accent);width:32px;height:32px;color:var(--accent);font-family:var(--font-heading);border-radius:50%;place-items:center;font-weight:600;display:grid;position:absolute;top:0;left:0}.mfa-steps h2{margin-top:2px;margin-bottom:8px;font-size:20px}.mfa-steps p{margin-bottom:12px}.mfa-qr{border-radius:var(--radius);background:#fff;max-width:100%;padding:12px;line-height:0;display:inline-block}.mfa-qr img{max-width:100%;height:auto;display:block}.mfa-manual{margin-top:12px}.mfa-manual summary{cursor:pointer;color:var(--accent);font-size:14px}.mfa-manual summary:hover{color:var(--accent-hover)}.mfa-manual .hint{color:var(--text-muted);margin:8px 0;font-size:14px}.mfa-secret{border:2px solid var(--grey);border-radius:var(--radius);justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.mfa-secret code{letter-spacing:.12em;overflow-wrap:anywhere;color:var(--heading);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:15px}.field input.mfa-code{letter-spacing:.3em;text-align:center;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:28px}.field input.mfa-code::placeholder{color:var(--grey);letter-spacing:.3em}.field select.mfa-select{font:inherit;color:var(--text);border:2px solid var(--text);border-radius:var(--radius);background:0 0;max-width:100%;padding:12px 16px}.field select.mfa-select:focus{border-color:var(--accent);outline:none}.field select.mfa-select option{color:#000}.mfa-reminder{border-color:var(--accent2)}.mfa-reminder h2{margin-top:0;font-size:20px}.mfa-reminder p{margin-bottom:16px}.staff-nav{padding:8px var(--gutter);border-bottom:1px solid var(--grey);background:#ebebeb08;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 24px;font-size:14px;display:flex}.staff-nav-links{gap:4px;display:flex}.staff-nav-links a{color:var(--text);border-radius:var(--radius);padding:6px 12px;text-decoration:none}.staff-nav-links a:hover{background:var(--accent-fade)}.staff-nav-links a.active{color:var(--accent)}.staff-nav-user{color:var(--text-muted);align-items:center;gap:16px;display:flex}@media (width<=600px){.staff-nav{padding-left:var(--gutter-mobile);padding-right:var(--gutter-mobile)}}.panel-head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 16px;margin-bottom:16px;display:flex}.panel-head h2{margin:0}.panel .panel-head+.table-wrap{margin-top:0}.record-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px 32px;margin-bottom:24px;display:flex}.record-head h1{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:4px;display:flex}.record-meta{color:var(--text-muted);margin:0;font-size:14px}.record-balance{text-align:right}.record-balance .credit-amount{margin:0}.record-balance .credit-amount.negative{color:var(--error)}.record-balance .credit-note{text-align:right}@media (width<=700px){.record-balance,.record-balance .credit-note{text-align:left}}.action-bar{flex-wrap:wrap;gap:8px;margin-bottom:24px;display:flex}.button.small{padding:4px 12px;font-size:14px}.button.danger{color:var(--error);border-color:var(--error);background:0 0}.button.danger:hover{background:#ffb0b01a}.notice{border:1px solid var(--accent2);border-radius:var(--radius);margin-bottom:24px;padding:12px 16px}.notice.warn{border-color:var(--error)}.badge.status-active{color:var(--success);border-color:var(--success)}.badge.status-void,.badge.status-erased{color:var(--text-muted);border-color:var(--grey)}.badge.status-merged{color:var(--accent2);border-color:var(--accent2)}.badge.unconfirmed{color:var(--error);border-color:var(--error)}.badge.muted{color:var(--text-muted);border-color:var(--grey)}.history th:not(:first-child),.history td:not(:first-child){padding-left:16px}.history td:first-child,.history td.num,.history td.actions{white-space:nowrap}.history td.empty{color:var(--text-muted)}.history td.actions{text-align:right;white-space:nowrap}.history td.actions .link-button+.link-button{margin-left:12px}.history tr.voided td,.history tr.reversed td{color:var(--text-muted)}.history tr.voided td:not(.actions),.history tr.reversed td.amount{text-decoration:line-through}.history tr.flash td{animation:1.6s ease-out row-flash}.history tr:focus{outline:2px solid var(--accent);outline-offset:-2px}@keyframes row-flash{0%{background:var(--accent-fade)}to{background:0 0}}@media (prefers-reduced-motion:reduce){.history tr.flash td{animation-duration:1ms}}.sub{color:var(--text-muted);font-size:13px;font-weight:400;display:block}.history td.num{text-align:right;font-variant-numeric:tabular-nums}.history th.num{text-align:right}.history tfoot th,.history tfoot td{border-top:2px solid var(--grey);border-bottom:0;font-weight:600}.history tfoot th{text-align:right;color:var(--heading)}.history a.row-link{color:var(--heading);text-decoration:none}.history a.row-link:hover{color:var(--accent)}.history td .handles{color:var(--text-muted);overflow-wrap:anywhere;font-size:13px}.search-box{margin-bottom:8px;position:relative}.search-box input{width:100%;font:inherit;color:var(--text);border:2px solid var(--text);border-radius:var(--radius);background:0 0;padding:14px 16px;font-size:20px}.search-box input:focus{border-color:var(--accent);outline:none}.search-options{color:var(--text-muted);gap:16px;margin-bottom:16px;font-size:14px;display:flex}.search-options label{align-items:center;gap:6px;display:flex}.handle-kinds{flex-direction:column;gap:16px;display:flex}.handle-kinds .handle-group{margin:0}.handle-static .handle-actions{flex:none;align-items:center;gap:12px;display:flex}.handle-static .handle-badges{flex-direction:column;align-items:flex-start;gap:4px;display:flex}.handle-static .value{color:var(--text)}.note-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.note{border:1px solid var(--grey);border-radius:var(--radius);padding:12px 16px}.note p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 6px}.note .meta{color:var(--text-muted);flex-wrap:wrap;gap:12px;font-size:13px;display:flex}.note textarea{width:100%}.field textarea,.field select{font:inherit;color:var(--text);border:2px solid var(--text);border-radius:var(--radius);background:0 0;max-width:100%;padding:12px 16px}.field textarea{resize:vertical;min-height:80px}.field textarea:focus,.field select:focus{border-color:var(--accent);outline:none}.field select option{color:#000}.field.check{flex-direction:row;align-items:center;gap:8px}.field.check label{margin:0}.field.check input{width:18px;height:18px;accent-color:var(--accent)}.field-row{grid-template-columns:1fr 1fr;gap:0 16px;display:grid}@media (width<=500px){.field-row{grid-template-columns:1fr}}.form-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.inline-form{flex-wrap:wrap;align-items:flex-start;gap:8px;display:flex}.inline-form .field{flex:1;min-width:140px;margin-bottom:0}.inline-form .button{padding-top:12px;padding-bottom:12px}.separator{border:0;border-top:1px solid var(--grey);margin:8px 0 24px}.kv{grid-template-columns:max-content 1fr;gap:6px 16px;margin:0;display:grid}.kv dt{color:var(--text-muted)}.kv dd{overflow-wrap:anywhere;margin:0}.calc{color:var(--text-muted);margin:-8px 0 16px;font-size:14px}.calc strong{color:var(--text)}.calc.bad strong{color:var(--error)}.merge-grid{grid-template-columns:1fr auto 1fr;align-items:start;gap:16px;margin-bottom:24px;display:grid}.merge-grid .panel{height:100%;margin:0}.merge-grid .panel.winner{border-color:var(--accent)}.merge-grid .panel.loser{border-color:var(--grey)}.merge-grid .role{letter-spacing:.04em;text-transform:uppercase;color:var(--accent);margin:0 0 4px;font-size:12px}.merge-grid .panel.loser .role{color:var(--text-muted)}.merge-swap{align-self:center}@media (width<=800px){.merge-grid{grid-template-columns:1fr}.merge-swap{justify-self:center}}.merge-list{margin:8px 0 0;padding-left:20px}.result-list{margin:16px 0;padding:0;list-style:none}.result-list li{padding:4px 0}.record-head>*,.record-head h1>*,.two-col>*,.panel{min-width:0}.record-head h1,#display-name,.readonly-value{overflow-wrap:anywhere}.handle-static{overflow-wrap:anywhere;flex-wrap:wrap}.handle-static .handle-actions{flex-wrap:wrap}@media (width<=600px){.kv{grid-template-columns:1fr}.staff-nav-user{flex-wrap:wrap}}dialog.modal{background:var(--bg);color:var(--text);border:1px solid var(--grey);border-radius:var(--radius);width:100%;max-width:min(480px,100vw - 32px);padding:24px}dialog.modal::backdrop{background:#000000b3}dialog.modal h2{margin-bottom:12px;font-size:23px}dialog.modal p{margin:0 0 16px}dialog.modal .figure{font-family:var(--font-heading);color:var(--accent);margin:0 0 16px;font-size:32px}dialog.modal .figure.negative{color:var(--error)}dialog.modal .dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:16px;display:flex}dialog.modal .field{margin-bottom:0}dialog.modal .field textarea{width:100%}
