.dir .pagehead{margin-bottom:18px}
.dr-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);background:var(--paper);border-radius:12px;margin-bottom:20px;padding:18px 0}
.dr-summary>div{padding:0 clamp(16px,2.4vw,34px);border-left:1px solid var(--line)}
.dr-summary>div:first-child{border-left:0}
.dr-summary small,.dr-heading>span,.dr-toolbar-end>span,.dr-levelhead>span,.dr-ledgerhead>span{font-size:14px;color:var(--muted)}
.dr-summary p{display:flex;align-items:baseline;gap:6px;margin-top:5px;font-variant-numeric:tabular-nums}
.dr-summary p span{font-size:13px;color:var(--muted)}.dr-summary strong{font-size:clamp(20px,1.9vw,29px);letter-spacing:-.04em}
.dr-summary>div:first-child strong,.dr-keep,.dr-mobile-amount strong{color:var(--green)}
.dr-panel{border-radius:12px;overflow:hidden}
.dr-heading,.dr-toolbar,.dr-toolbar-end,.dr-actions,.dr-identity,.dr-itemtitle,.dr-itemfoot,.dr-levelhead,.dr-ledgerhead,.dr-txhead,.dr-dialogrow,.dr-moblinks{display:flex;align-items:center}
.dr-heading,.dr-ledgerhead,.dr-txhead,.dr-itemtitle,.dr-levelhead,.dr-itemfoot,.dr-dialogrow{justify-content:space-between;gap:12px}
.dr-heading{padding:18px 20px 12px}.dr-heading h2{font-size:19px}
.dr-toolbar{gap:8px;flex-wrap:wrap;padding:0 20px 15px}
.dr-search{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:7px;padding:0 10px;background:var(--paper);color:var(--muted);min-width:0}
.dr-search:focus-within{outline:2px solid var(--green);outline-offset:1px}
.dr-search input{border:0!important;outline:none!important;box-shadow:none;width:clamp(140px,16vw,235px);background:transparent;margin:0;min-width:0;padding:7px 0}
.dr-toolbar select{width:auto;min-height:37px;font-size:14px}.dr-toolbar-end{margin-left:auto;gap:12px}
.dr-scroll{overflow:auto}.dr-table{width:100%;border-collapse:collapse;white-space:nowrap;min-width:900px}
.dr-table th,.dr-table td{padding:10px 11px;line-height:1.4;text-align:right;font-variant-numeric:tabular-nums}
.dr-table thead th{background:var(--soft);color:var(--muted);font-size:13px;font-weight:600;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.dr-table tbody th,.dr-table tbody td{font-size:14px;font-weight:480;border-bottom:1px solid var(--line);background:var(--paper)}
.dr-table tbody tr:last-child>*{border-bottom:0}
.dr-table th:first-child{text-align:left;padding-left:13px}.dr-table th:last-child,.dr-table td:last-child{padding-right:16px}
.dr-table tbody tr.dr-root>*{font-weight:640;background:color-mix(in srgb,var(--soft) 50%,var(--paper))}
.dr-table tbody tr.dr-current>*{background:color-mix(in srgb,var(--soft) 70%,var(--paper))}
.dr-table tbody tr:hover>*{background:var(--soft)}
.dr-table tbody th{max-width:320px}.dr-identity{gap:4px;padding-left:calc(var(--depth)*12px)}
.dr-identity>div{min-width:0}.dr-name{font-size:15px;font-weight:650;white-space:normal;overflow-wrap:anywhere;line-height:1.35}.dr-meta,.dr-itemtitle small,.dr-dialogrow small,.dr-txhead small,.dr-path{display:block;font-size:12px;color:var(--muted);line-height:1.4;margin-top:2px}
.dr-table tbody td.dr-keep{font-weight:700}.dr-toggle,.dr-spacer{width:24px;height:28px;flex:none;display:inline-grid;place-items:center;color:var(--muted);border-radius:5px}.dr-toggle:hover,.dr-more:hover{background:var(--soft);color:var(--green)}
.dr-identity .ico{width:14px;height:14px}.dr-roster,.dr-children,.dr-crumb{color:var(--green);font-size:14px;padding:3px 0}.dr-roster:hover,.dr-children:hover,.dr-crumb:hover{text-decoration:underline}
.dr-actions{gap:3px;justify-content:flex-end}.dr-audit{color:var(--green);font-weight:600}.dr-more{display:inline-grid;place-items:center;width:31px;height:32px;border-radius:6px}.dr-more .ico{width:20px;height:20px;stroke-width:3}
.dr-empty{padding:26px;display:grid;justify-items:center;gap:12px}.dr-dialogrow{width:100%;text-align:left;padding:12px 3px;border-bottom:1px solid var(--line);color:var(--ink)}.dr-dialogrow>span:last-child{display:flex;align-items:center;gap:10px}.dr-dialogrow:hover{background:var(--soft)}
.dr-auditpath,.dr-path{overflow-wrap:anywhere}.dr-auditpath{font-size:14px;color:var(--muted);margin-bottom:9px}.dr-ledgerhead{margin:24px 0 10px}
.dr-txlist,.dr-mobilelist{margin:0;padding:0;list-style:none}.dr-txlist li{padding:13px 12px;border:1px solid var(--line);border-radius:8px;margin:8px 0}
.dr-txlist dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 0}.dr-txlist dt{font-size:13px;color:var(--muted)}.dr-txlist dd{margin:3px 0 0;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.dr-txlist dl>div:last-child dd{color:var(--green)}.dr-back{margin-bottom:10px}
.dr-crumbs{padding:12px 14px;display:flex;flex-wrap:wrap;align-items:center;gap:4px;border-top:1px solid var(--line);background:var(--soft);font-size:14px}.dr-crumbs .ico{width:12px;height:12px}.dr-crumbs strong{overflow-wrap:anywhere}
.dr-levelhead{padding:9px 14px;border-bottom:1px solid var(--line)}.dr-mobilelist li{padding:14px;border-bottom:1px solid var(--line)}.dr-mobilelist li:last-child{border-bottom:0}
.dr-itemtitle{align-items:flex-start}.dr-itemtitle>div{min-width:0}.dr-mobile-amount{text-align:right}.dr-mobile-amount strong{font-size:17px;font-variant-numeric:tabular-nums}.dr-moblinks{gap:12px;flex-wrap:wrap}.dr-itemfoot{margin-top:10px}.dr-children,.dr-roster{white-space:nowrap}
@media(min-width:721px){.dr-table thead th:first-child,.dr-table tbody th{position:sticky;left:0;z-index:1}}
@media(max-width:720px){.dir .pagehead{align-items:flex-start;gap:10px;flex-wrap:wrap}.dir .pagehead .actions{justify-content:flex-start}.dr-summary{padding:11px 0;margin-bottom:12px}.dr-summary>div{padding:0 8px}.dr-summary small{font-size:12px}.dr-summary p{display:block;margin-top:3px}.dr-summary p span{display:block;font-size:11px}.dr-summary strong{font-size:clamp(15px,4vw,21px);overflow-wrap:anywhere}.dr-heading{padding:14px 13px 10px}.dr-heading>span{font-size:12px}.dr-toolbar{padding:0 13px 12px;gap:6px}.dr-search{flex:1 1 140px}.dr-search input{width:100%}.dr-toolbar select{max-width:135px}.dr-toolbar-end{font-size:12px}.dr-toolbar-end>span{font-size:12px}.dr-itemfoot .dr-audit,.dr-itemfoot .dr-more{min-height:36px}.dr-dialogrow,.dr-children,.dr-mobilelist .dr-roster{min-height:36px}.dr-levelhead .btn{min-height:32px}}


.dr-rate-error{margin-top:8px;color:#ad4034;font-size:14px}.night .dr-rate-error{color:#ffaba1}.dr-future{display:block;margin-top:8px;color:var(--muted)}
.side .brand.sideBrand{padding-bottom:20px}
.side-search{display:flex;align-items:center;gap:8px;border:1px solid #789a854f;border-radius:8px;background:#ffffff09;color:#e1eade;padding:9px 11px;text-align:left;min-height:40px;margin:0 3px}
.side-search:hover{background:#ffffff18}.side-search span{font-size:14px}.side-search kbd{margin-left:auto;font:inherit;font-size:12px;color:#c1d4c7;white-space:nowrap}.mobile-search{display:none}
.dir .dr-table{min-width:630px}.dir .dr-table tbody th{max-width:unset;width:49%}.dr-identity .dr-meta{margin-top:3px}
.agent-inline,.agent-counts{display:flex;align-items:center;flex-wrap:wrap}.agent-inline{gap:4px 12px}.agent-counts{gap:5px}
.agent-count{display:inline-grid;place-items:center;padding:0;border:0;background:none;white-space:nowrap}
.count-number{display:inline-grid;place-items:center;width:max(22px,calc(var(--digits)*.52rem + 7px));aspect-ratio:1;border-radius:50%;background:var(--count-fill);color:var(--count-ink);font:600 .75rem/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--count-ink) 12%,transparent)}
button.agent-count:hover .count-number{outline:1px solid var(--count-fill);outline-offset:2px}
.player-color{--count-fill:#e1edf6;--count-ink:#285775}.agent-color{--count-fill:#f5e8cf;--count-ink:#78531d}
.night .player-color{--count-fill:#274963;--count-ink:#d9efff}.night .agent-color{--count-fill:#5c431d;--count-ink:#ffe8ba}
.directory-title,.count-legend,.count-legend>span,.agent-name-wrap{display:flex;align-items:center}
.directory-title{flex-wrap:wrap;gap:5px 22px}.count-legend{flex-wrap:wrap;gap:4px 14px;font-size:.82rem;font-weight:540;color:var(--muted)}
.count-legend>span{gap:5px}.count-legend i{width:11px;height:11px;border-radius:50%;background:var(--count-fill);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--count-ink) 28%,transparent)}
.agent-name-wrap{display:inline-flex;gap:6px;min-width:0}.master-mark{
  display:inline-grid;place-items:center;flex:none;width:20px;height:20px;
  border:1px solid #315548;border-radius:6px;background:#214b40;color:#f2e5bc;
  box-shadow:inset 0 0 0 2px #214b40,inset 0 0 0 3px #71836b;
  font:600 12px/1 Georgia,"Times New Roman",serif;letter-spacing:-.045em;
}
.night .master-mark{background:#233e31;border-color:#87947c;box-shadow:inset 0 0 0 2px #233e31,inset 0 0 0 3px #5b715d;color:#f1e4ba}
.parent-node>.master-mark{align-self:center}
@media(max-width:720px){.directory-title{display:grid;gap:4px}.agent-counts .agent-count{min-width:28px;min-height:32px}.agent-counts{gap:2px}}

.agent-switch{display:inline-flex;align-items:center;gap:7px;color:var(--ink);font-size:14px;padding:6px 2px;white-space:nowrap}.agent-switch i{display:inline-block;width:31px;height:18px;border-radius:12px;background:#767e79;position:relative}.agent-switch i:before{content:'';position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:white}.agent-switch[aria-checked=true] i{background:#397854}.agent-switch[aria-checked=true] i:before{left:16px}.agent-switch:disabled{cursor:default;opacity:.72}
.report-filters{padding-top:4px}.report .scroller{overflow-x:auto}.report td:nth-child(n+2):nth-child(-n+4),.report th:nth-child(n+2):nth-child(-n+4){text-align:right;font-variant-numeric:tabular-nums}
@media(min-width:681px) and (max-width:890px){.side-search{width:44px;justify-content:center;padding:8px}.side-search span,.side-search kbd{display:none}}
@media(max-width:680px){.mobile-search{display:inline-grid}.mobileNav button{min-width:0;flex:1}.agent-inline{gap:4px 8px}.agent-count{min-height:24px}.dr-itemtitle>div{flex:1}.dr-itemfoot{margin-top:5px;font-size:13px}.dr-levelhead{flex-wrap:wrap}.report .dr-toolbar select{max-width:100%}}
@media(min-width:681px){
  .shell.rail-compact{grid-template-columns:71px minmax(0,1fr)}
  .rail-compact .side{align-items:center;padding:25px 6px 10px}
  .rail-compact .brand.sideBrand{padding:0 0 22px!important}
  .rail-compact .sideBrand>span:last-child,.rail-compact .navlabel,.rail-compact .nav-btn>span,.rail-compact .user>div:last-child,.rail-compact .side-search span,.rail-compact .side-search kbd{display:none}
  .rail-compact .side .nav-btn{justify-content:center;width:45px;padding:0}.rail-compact .navgroup{margin:8px 0}.rail-compact .side-search{width:43px;justify-content:center;padding:8px}
  .rail-compact .sidefoot{width:100%}.rail-compact .sidefoot .nav-btn{margin:0 auto}.rail-compact .user{justify-content:center;padding:10px 0}
  .sidefoot .nav-btn.rail-toggle{border-top:0}.sidefoot .rail-toggle .ico{width:19px;height:19px}
}
@media(min-width:681px) and (max-width:890px){
  .shell.rail-full{grid-template-columns:188px minmax(0,1fr)}.rail-full .side{align-items:stretch;padding:25px 10px 12px}
  .rail-full .side .brand.sideBrand{padding:0 8px 20px!important}.rail-full .sideBrand>span:last-child,.rail-full .nav-btn>span,.rail-full .side-search span,.rail-full .side-search kbd{display:inline}.rail-full .navlabel,.rail-full .user>div:last-child{display:block}
  .rail-full .side-search,.rail-full .side .nav-btn{width:auto;justify-content:flex-start;padding-left:12px;padding-right:12px}.rail-full .side-search{margin:0}
  .rail-full .navgroup{margin:0}.rail-full .side .navgroup .nav-btn{width:100%}.rail-full .sidefoot .nav-btn{margin:0}.rail-full .user{justify-content:flex-start}
}
.agent-counts{white-space:nowrap}
@media(max-width:720px){.topbar .crumb{min-width:0}.topbar .crumb strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.topbar .tools{flex-shrink:0}.topbar .crumb .muted,.topbar .crumb .muted+.ico{display:none}.mobileNav button{min-width:0}.mobileNav button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.client header{gap:8px}.client header .language-control{margin-left:auto}}
.dr-heading{flex-wrap:wrap}.scope-content{max-width:1180px;margin:auto}.statement-actions{display:flex;justify-content:flex-end;gap:6px}
.statement-sheet .scroller{overflow-x:auto}.statement-sheet th:nth-last-child(-n+3),.statement-sheet td:nth-last-child(-n+3){text-align:right;font-variant-numeric:tabular-nums}
@media print{
  body:has(.print-statement){margin:0;overflow:visible!important;background:white;color:#111;--paper:white;--ink:#111;--muted:#444;--line:#ccc;--soft:#eee;color-scheme:light}
  body:has(.print-statement)>:not(#layer){display:none!important}
  #layer:has(.print-statement),#layer:has(.print-statement) .overlay,#layer .print-statement,#layer .print-statement .mcontent,#layer .print-statement .scroller{position:static;display:block;overflow:visible;max-height:none;max-width:none;width:auto;height:auto;background:white;border:0;box-shadow:none}
  #layer:has(.print-statement) .overlay{padding:0}
  #layer .print-statement button,#layer .print-statement .formop{display:none}
  #layer .print-statement .mcontent,#layer .print-statement .panelhead{padding:12px 0}
  .print-statement table{width:100%;min-width:0;border-collapse:collapse}.print-statement th,.print-statement td{font:10pt/1.3 Arial,sans-serif;white-space:normal;overflow-wrap:anywhere;padding:5px 3px}
  .print-statement thead{display:table-header-group}.print-statement tr{break-inside:avoid}
}
desk-select{display:inline-block;position:relative;min-width:0;max-width:100%;vertical-align:middle}
desk-select select[hidden],.desk-options[hidden]{display:none!important}
.desk-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:.85rem;width:100%;min-width:0;min-height:38px;padding:7px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit;font-size:14px;line-height:1.4;text-align:start}
.desk-select-trigger:after{content:"";width:6px;height:6px;flex:0 0 6px;border:solid var(--muted);border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg)}
.desk-select-trigger:hover,.desk-select-trigger[aria-expanded=true]{border-color:color-mix(in srgb,var(--green) 60%,var(--line))}
.desk-select-trigger[aria-expanded=true]:after{transform:translateY(2px) rotate(225deg)}
.desk-select-trigger:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.language-control .desk-select-trigger{min-height:34px;padding:5px 10px;font-weight:600}
.desk-options{position:fixed;width:max-content;max-width:calc(100vw - 16px);margin:0;padding:4px;overflow:auto;overscroll-behavior:contain;background:var(--paper);border:1px solid var(--line);border-radius:10px;color:var(--ink);box-shadow:0 6px 22px color-mix(in srgb,var(--ink) 16%,transparent);z-index:1000}
.night .desk-options{box-shadow:0 8px 24px #0006}
.desk-options [role=option]{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:36px;padding:7px 10px;border-radius:6px;font-size:14px;line-height:1.4;text-align:start;user-select:none;cursor:pointer;overflow-wrap:anywhere}
.desk-options [aria-selected=true]{font-weight:640;color:var(--green);background:var(--soft)}
.desk-options .is-active{background:var(--mint);color:var(--ink)}
.desk-options [aria-disabled=true]{opacity:.45;cursor:default}
.option-check{width:14px;flex:none;color:var(--green);font-size:14px;text-align:center}
.field desk-select{display:block;margin-top:5px}.fieldbtn{padding:0;border:0;background:none}.fieldbtn>.ico{display:none}
.dir .tree-all{margin-inline-start:auto}.tree-read-status{color:var(--muted);font-size:14px}
.dr-identity{align-items:flex-start}.dr-identity>.dr-toggle{margin-top:-2px;min-width:24px}
@media(max-width:720px){.desk-options [role=option]{min-height:44px}.dr-itemtitle .dr-identity{padding-left:calc(var(--depth)*10px)}.dr-toolbar desk-select{max-width:100%}.dr-itemtitle .dr-spacer,.dr-itemtitle .dr-toggle{width:20px;min-width:20px}.desk-select-trigger{min-height:40px}}
.account-tools{display:flex;justify-content:flex-end;align-items:center;gap:4px}
.account-tool{display:inline-grid;place-items:center;flex:0 0 auto;width:34px;height:34px;padding:0;border-radius:6px;color:var(--green)}
.account-tool .ico{width:18px;height:18px}
.account-tool:hover,.account-tool:focus-visible{background:var(--mint);color:var(--ink)}
.dir .dr-table tbody th{width:34%}.dr-table td:last-child{max-width:320px}
.log-meta,.access-note{color:var(--muted);font-size:14px;line-height:1.55;margin:6px 0 16px}
.reset-fields{display:grid;gap:14px}
.agent-log td{font-variant-numeric:tabular-nums}.agent-log .mono{user-select:all}
@media(max-width:720px){.account-tools{margin-top:5px;justify-content:flex-start;gap:4px}.account-tool{width:44px;height:44px}.agent-log th,.agent-log td{padding:7px;font-size:13px}.agent-log td:first-child,.agent-log td:nth-child(3){white-space:normal}.agent-log .scroller table{min-width:0}.dr-itemfoot .agent-switch{min-height:38px}}
@media print{@page{size:A4;margin:15mm}body:has(.print-statement){height:auto!important}#layer .print-statement .panelhead{position:static}}
.bell-wrap{display:inline-flex}.alarm-button{position:relative;display:inline-grid;place-items:center;flex:none;width:40px;height:38px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}.alarm-button:hover{background:var(--soft)}
.alarm-count{position:absolute;top:-4px;right:-4px;min-width:15px;height:15px;line-height:15px;padding:0 3px;text-align:center;border-radius:8px;background:var(--soft);color:var(--muted);font-size:10px;font-weight:700;box-shadow:0 0 0 2px var(--paper)}
.alarm-count.unread{background:#ac402e;color:white}.night .alarm-count.unread{background:#ad4533;color:white}
#layer .overlay:has(.alerts-dialog){align-items:flex-start;justify-content:flex-end;padding:64px clamp(12px,3vw,52px) 12px;background:#0b211e38}
#layer .alerts-dialog{width:min(370px,100%);max-height:min(600px,calc(100dvh - 82px))}.alerts-dialog .mcontent{padding:0 18px 10px}
.deposit-alert-head,.deposit-alert{display:flex;align-items:center;justify-content:space-between;gap:8px}
.deposit-alert-head{min-height:48px;color:var(--muted);font-size:13px}.deposit-alert{width:100%;padding:11px 5px 11px 13px;position:relative;border-top:1px solid var(--line);text-align:start}.deposit-alert:hover{background:var(--soft)}
.deposit-alert.is-unread:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--green);position:absolute;left:1px;top:18px}
.deposit-person{display:grid;gap:2px;min-width:0}.deposit-person strong{font-size:15px;overflow-wrap:anywhere}.deposit-person small{font-size:12px;color:var(--muted)}.deposit-alert b{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:520px){.topbar .demoTag{display:none}.alarm-button{width:34px;height:34px}#layer .overlay:has(.alerts-dialog){padding:54px 10px 10px}}
.dir .dr-table tbody th{width:25%}
.agent-credit-line{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px 9px;font-variant-numeric:tabular-nums}
.agent-credit-line strong{font-size:14px;font-weight:620;white-space:nowrap}
.credit-move{border:1px solid var(--line);border-radius:5px;color:var(--green);background:var(--paper);padding:3px 6px;min-height:28px;font-size:12px;font-weight:600;white-space:nowrap}
.credit-move:hover:not(:disabled){background:var(--mint);border-color:var(--green)}
.credit-move:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:720px){.dr-mobilelist .agent-credit-line{justify-content:flex-start;margin-top:6px;gap:4px 8px}.agent-credit-line small{color:var(--muted)}.agent-credit-line .credit-move{margin-inline-start:auto}.credit-move{min-height:44px;padding:4px 9px;font-size:13px}}
#layer .credit-sheet{width:min(510px,100%);border:1px solid var(--line);border-radius:15px}
.credit-sheet .panelhead{padding:18px 24px}.credit-sheet .panelhead h2{font-size:1.25rem;letter-spacing:-.02em}
.credit-sheet .mcontent{padding:20px 24px 0}
.credit-account-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:var(--soft);border:1px solid var(--line);border-radius:10px}
.credit-account-id,.credit-account-balance{display:grid;min-width:0}.credit-account-id strong{overflow-wrap:anywhere;font-size:1.06rem}
.credit-account-id small,.credit-account-balance small,.credit-amount small{color:var(--muted);font-size:.81rem}
.credit-account-balance{text-align:end}.credit-account-balance strong{font-size:1.25rem;line-height:1.3;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.credit-account-status{font-size:.78rem;color:var(--green)}.credit-account-status::before{content:"";display:inline-block;margin-inline-end:5px;width:6px;height:6px;border-radius:50%;background:var(--green);vertical-align:middle}
.credit-direction,.credit-amount{margin-top:18px}.credit-label,.credit-amount label{display:block;margin-bottom:6px;font-weight:600;font-size:.9rem}
.credit-direction-options{display:inline-flex;min-width:235px;gap:3px;background:var(--pr-surface,var(--soft));border:1px solid var(--line);border-radius:8px;padding:3px}
.credit-direction-options [data-v="up"]{--direction-ink:#176457;--direction-fill:#e5f1ec;--direction-edge:#99bfb1}
.credit-direction-options [data-v="down"]{--direction-ink:#884a43;--direction-fill:#f7eeeb;--direction-edge:#ceaaa2}
.night .credit-direction-options [data-v="up"]{--direction-ink:#a2dcca;--direction-fill:#2b4039;--direction-edge:#527e6f}
.night .credit-direction-options [data-v="down"]{--direction-ink:#dfb1a6;--direction-fill:#3c3231;--direction-edge:#82635d}
.credit-direction-options button{flex:1;min-height:34px;border-radius:5px;border:1px solid transparent;color:var(--muted);background:transparent;padding:4px 12px;font-weight:600;font-size:.9rem}
.credit-direction-options button:hover{color:var(--direction-ink)}
.credit-direction-options [aria-pressed=true]{color:var(--direction-ink);background:var(--direction-fill);border-color:var(--direction-edge)}
.credit-path{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:28px;margin-top:6px;font-size:.85rem}
.credit-path span{white-space:normal;overflow-wrap:anywhere}.credit-path b{color:var(--muted);font-weight:450}
.credit-path span:last-child{font-weight:650;color:var(--green)}
.credit-amount input{display:block;width:100%;min-height:45px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);padding:8px 12px;font-size:1.1rem;font-weight:600;line-height:1.25;font-variant-numeric:tabular-nums}
.credit-amount small{display:block;margin-top:5px}.credit-sheet .formop{margin:18px -24px 0;padding:13px 24px 16px;border-top:1px solid var(--line)}
@media(max-width:520px){#layer .credit-sheet{max-height:calc(100dvh - 20px)}.credit-sheet .panelhead{padding:14px 16px}.credit-sheet .mcontent{padding:15px 16px 0}.credit-sheet .formop{margin-inline:-16px;padding:12px 16px}.credit-direction-options{display:flex;min-width:0}.credit-direction-options button{min-height:40px}}
.btn.command-icon,.credit-move{display:inline-grid;place-items:center;flex:0 0 auto;vertical-align:middle;width:38px;height:38px;min-width:0;min-height:0;padding:0;line-height:1}
.btn.command-icon.slim,.credit-move{width:34px;height:34px}.btn.command-icon .ico,.credit-move .ico{width:18px;height:18px}
.count-description{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:720px){.btn.command-icon,.btn.command-icon.slim,.credit-move{width:44px;height:44px}.topbar .btn.command-icon{width:36px;height:36px}}
.share-suggestion{display:block;margin-top:5px;color:var(--muted);font-size:.82rem;line-height:1.45}
.share-suggestion:empty,#rateError:empty,#rateHelp:empty{display:none}
#rateError{margin:5px 0 0;color:#a53032;font-size:.86rem}.night #rateError{color:#ffa8a7}
.modal input[name=rate][aria-invalid=true]{border-color:#b54140;box-shadow:0 0 0 2px #d14c422a}
.night .modal input[name=rate][aria-invalid=true]{border-color:#e98380}
@media(prefers-reduced-motion:no-preference){.modal.rate-over-limit{animation:share-limit-shake 260ms ease-out}@keyframes share-limit-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-5px)}42%{transform:translateX(4px)}65%{transform:translateX(-3px)}84%{transform:translateX(2px)}}}
agent-parent-picker{display:block;min-width:0;margin-top:5px}
.parent-panel[hidden],.parent-empty[hidden]{display:none!important}
.parent-panel{position:fixed;inset:auto;z-index:1001;display:flex;flex-direction:column;margin:0;overflow:hidden;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);box-shadow:var(--shadow);font-size:.875rem}
.parent-search{display:flex;align-items:center;gap:8px;padding:5px 11px;color:var(--muted);border-bottom:1px solid var(--line);flex:none}
.parent-search input[type=search]{margin:0;border:0;box-shadow:none;outline:none;background:transparent;color:var(--ink);min-width:0;width:100%;padding:7px 0;font-size:.9rem}
.parent-search:focus-within{border-bottom-color:var(--green)}
.picker-results{position:relative;padding:4px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.parent-row{display:grid;grid-template-columns:minmax(0,1fr) auto 15px;align-items:center;gap:8px;min-height:37px;padding:6px 8px 6px calc(8px + var(--depth)*12px);border-radius:5px;font-weight:400;line-height:1.3}
.parent-row[role=option]{cursor:pointer}.parent-row[aria-selected=true]{color:var(--green);background:var(--soft)}
.parent-row.parent-active,.parent-row[role=option]:hover{background:var(--mint);color:var(--ink)}
.parent-node{display:flex;align-items:baseline;gap:6px;min-width:0}.parent-node i{align-self:center;flex:none;width:7px;height:8px;transform:translateY(-2px);border:solid var(--muted);border-width:0 0 1px 1px;opacity:.55}
.parent-node b{flex:none;letter-spacing:.01em;font:600 .81rem/1.4 ui-monospace,monospace}
.parent-node>span{color:var(--muted);overflow-wrap:anywhere}.parent-context,.parent-context small{color:var(--muted)}
.parent-row small{white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}.parent-check{display:grid;place-items:center;color:var(--green)}
.parent-empty{padding:10px 12px 14px;font-size:.875rem;color:var(--muted);font-weight:400}
@media(max-width:720px){.parent-row{min-height:44px}.parent-search input[type=search]{font-size:1rem}}
.dir{
  --tree-step:9px;
  --toggle-width:22px;
  --row-divider:color-mix(in srgb,var(--line) 65%,var(--paper));
}
.dir .dr-table tbody :is(th,td){padding-block:11px;border-bottom-color:var(--row-divider)}
.dir .dr-table tbody th{width:30%;min-width:238px}
.dir .dr-table thead th{background:color-mix(in srgb,var(--soft) 66%,var(--paper))}
.dir .dr-root{--root-fill:color-mix(in srgb,var(--green) 5%,var(--paper))}
.dir .dr-root>td,.dir .dr-root>th,.dr-mobilelist>.dr-root{background:var(--root-fill)}
.dir .dr-root>th,.dr-mobilelist>.dr-root{box-shadow:inset 2px 0 0 var(--green)}
.dir .dr-root .dr-name{font-weight:730;color:var(--green)}
.dr-identity,.dr-itemtitle .dr-identity{
  position:relative;align-items:flex-start;gap:6px;min-width:0;
  padding-left:calc(var(--depth)*var(--tree-step) + clamp(0px,(var(--depth) - 1)*20px,20px));
}
.dr-identity .dr-name{font-size:.97rem;font-weight:640;letter-spacing:-.012em;line-height:22px;color:var(--ink)}
.dr-identity .dr-meta{margin:3px 0 0;font:450 .75rem/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.015em;color:var(--muted)}
.dr-identity:has(.master-mark) .dr-meta{padding-inline-start:26px}
.dr-identity .agent-name-wrap{gap:7px}
.dr-identity .agent-inline{min-height:24px;gap:3px 11px}
.dr-identity .count-number{width:max(21px,calc(var(--digits)*.52rem + 7px))}
.dr-identity .agent-counts{gap:5px}
.dr-toggle .branch-arrow,.entity-branch .branch-arrow{width:15px;height:15px;color:var(--green);stroke-width:1.8}
.dr-identity .master-mark,.entity-result .master-mark{width:19px;height:19px;border:0;border-radius:5px;background:var(--soft);box-shadow:none;color:var(--green);font:700 12px/1 system-ui}
.dr-identity>.dr-toggle,.dr-identity>.dr-spacer{
  display:grid;position:relative;place-items:center;flex:0 0 var(--toggle-width);
  min-width:var(--toggle-width);width:var(--toggle-width);height:24px;margin:0;padding:0;
}
.dr-identity>.dr-toggle{background:transparent;color:var(--green)}
.dr-identity>.dr-toggle:hover,.dr-identity>.dr-toggle:focus-visible{background:color-mix(in srgb,var(--green) 8%,transparent)}
.side :is(.side-search,.nav-btn,.navlabel,.user strong,.user small){white-space:nowrap}
@media(max-width:720px){
  .dir{--tree-step:14px;--toggle-width:28px}
  .dr-mobilelist>li{border-color:var(--row-divider)}
  .dr-itemtitle .dr-identity>.dr-toggle{min-height:44px;height:44px;margin-block:-10px}
  .dr-identity .agent-counts{gap:0}
  .dr-identity .agent-count{min-height:24px}
  .dr-identity .agent-inline{gap:3px 7px}
}
.my-account{display:inline-flex;align-items:center;gap:7px;padding:0 10px;min-height:38px;max-width:12rem;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--green)}
.my-account:hover,.my-account:focus-visible{background:var(--soft)}
.my-account .ico{width:19px;height:19px}.my-account span{font-size:.875rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-head{display:flex;align-items:center;gap:12px;padding:0 0 14px;border-bottom:1px solid var(--line)}
.profile-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:var(--soft);color:var(--green)}
.profile-head strong,.profile-head small{display:block}.profile-head small{font-size:.8125rem}
@media(max-width:720px){.my-account{width:36px;height:36px;min-height:36px;padding:0;justify-content:center}.my-account span{display:none}}
