*{box-sizing:border-box}
:root{font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#212e28;background:#faf9f5;--green:#183b2c;--line:#dcded5;--muted:#58645b;--gold:#93701e}
body{margin:0}button,input,select,textarea,summary{font:inherit}button,summary{cursor:pointer}button:disabled{cursor:default;opacity:.55}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px}button,input,select,textarea{border:1px solid #9ca69c;border-radius:7px;background:#fff;color:inherit;padding:.49rem .78rem}
button:hover:enabled,summary:hover,.rowlink:hover{background:#f0f3ec}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover{background:#28523d}
h1,h2,h3,.brand strong,.metric strong{font-family:Georgia,"Times New Roman",serif;font-weight:normal;margin:0;color:var(--green)}
h1{font-size:clamp(2rem,3.1vw,3.2rem);line-height:1.12;letter-spacing:-.045em}h2{font-size:1.48rem;line-height:1.2;letter-spacing:-.025em}h3{font-size:1.19rem}
p{margin:.5rem 0}small,.muted,time small{color:var(--muted);font-size:.82rem}small,time small{display:block}.topbar{background:#183b2c;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:15px 30px;border-bottom:3px solid #bea16b;gap:14px}
.brand,.session,.heading,#tools,.line,.chips,.pager,.tabbar,.actions,.quick,.record-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.brand{gap:12px}.brand strong{font-size:1.7rem;color:#fff;letter-spacing:-.035em}.monogram{border:1px solid #d2b77c;border-radius:6px;display:grid;place-items:center;width:32px;height:34px;color:#f2d8a1;font:italic 25px Georgia}.brand-divider{height:19px;width:1px;background:#6c8472}.console-name,.session{font-size:.84rem}.session{gap:16px}.session button{color:#fff;background:#244635;border-color:#829486}.session button:hover:enabled{background:#325840}
#workspace{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:calc(100vh - 71px)}[hidden]{display:none!important}aside{border-right:1px solid var(--line);background:#f2f3eb;padding:34px 14px;display:flex;flex-direction:column;justify-content:space-between}nav{display:grid;gap:6px;align-content:start}nav button{display:flex;align-items:center;gap:10px;text-align:left;background:transparent;border:1px solid transparent;border-radius:7px;padding:11px 12px;font-size:.92rem;font-weight:600;white-space:nowrap;color:#3e5043}
nav button[aria-current=page]{background:#dfe8dc;border-color:#cbd9c8;color:#193e29}.nav-icon,.ui-icon{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.nav-count{font:600 .74rem/1.6 system-ui;padding:0 7px;border-radius:10px;margin-left:auto}
.canvas{padding:35px clamp(20px,3vw,50px) 20px;min-width:0;max-width:1680px;width:100%;margin:auto;margin-top:0}.heading{justify-content:space-between;margin-bottom:24px;gap:16px}.heading #tools{margin-left:auto}#tools button,.back,.copy,.small-btn{font-size:.82rem}#crumb:empty{display:none}#crumb{margin-bottom:14px;display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.84rem}#crumb .back{margin-left:auto}
.panel,.tablebox,.metric,.auth{background:#fff;border:1px solid var(--line);border-radius:12px}.panel{padding:21px 23px;margin-bottom:19px}.panel>h2:first-child{margin-bottom:15px}.panel .panel{margin-top:12px}.attention{background:#fbf6e9;border-color:#dfd2ad}.attention h2{display:flex;gap:10px;align-items:center}.attention h2 .ui-icon{color:#85631c;width:22px;height:22px}.attention-row{display:flex;align-items:center;gap:10px;border-top:1px solid #e4dbc1;padding:9px 0}.attention-row .link{margin-left:auto}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 23px}.metric{padding:17px 19px;display:flex;flex-direction:column;justify-content:space-between;gap:9px;min-height:99px}.metric span.metric-label{color:var(--muted);font-size:.84rem}.metric strong{font-size:2rem;line-height:1.05}.metric .chip{align-self:flex-start}
.chip,.nav-count{--fg:#4f5851;--bg:#e9ece7;color:var(--fg);background:var(--bg)}.chip{display:inline-flex;gap:6px;align-items:center;font-size:.75rem;line-height:1.35;font-weight:650;padding:5px 9px;border-radius:20px;max-width:100%;vertical-align:middle}.chip:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}.green{--fg:#215638;--bg:#deeedf}.amber{--fg:#694b06;--bg:#f9eac0}.red{--fg:#882e33;--bg:#fae1de}.blue{--fg:#275474;--bg:#e1edf5}.grey{--fg:#4f5851;--bg:#e9ece7}.red.chip:before{border-radius:1px}.amber.chip:before{transform:rotate(45deg);border-radius:1px}
.tablebox{overflow:hidden;margin:.3rem 0 1rem}.scroller{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.88rem;text-align:left}th{color:#506052;background:#f1f4ed;font-weight:650;font-size:.77rem;border-bottom:1px solid var(--line);padding:11px 12px}td{border-bottom:1px solid #eaeee7;padding:13px 12px;vertical-align:middle;overflow-wrap:anywhere}tbody tr:last-child td{border-bottom:0}time{font-variant-numeric:tabular-nums}time small{font-size:.76rem;margin-top:2px}.link{border:0;padding:3px 0;background:transparent;color:#27553b;text-align:left;text-decoration:underline;text-underline-offset:3px;font-weight:600}.link:hover:enabled{background:transparent;color:#101f14}.rowlink{cursor:pointer}
form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}label{display:flex;flex-direction:column;gap:4px;color:#394a3f;font-size:.84rem;font-weight:600}label:has([type=checkbox]){flex-direction:row-reverse;align-items:center;justify-content:end;padding:.5rem 0}input,select,textarea{min-width:0;font-weight:400;color:#202b25}input[type=checkbox]{accent-color:#183b2c}textarea{min-height:70px}details>summary{font-weight:650;color:#304a38}details.panel>form,details.panel[open]>.panel-body{margin-top:15px}.filterbox{margin-bottom:15px}.filterbox form{margin-top:15px}.pager{justify-content:flex-end;font-size:.84rem;margin-top:10px}.pager span{margin-right:auto;color:#4f5c52}.pager button{font-size:.82rem}.empty,.loading{padding:22px;color:#556459}.loading{background:#fff;border:1px solid var(--line);border-radius:10px}.skeleton{margin:12px 0;background:#e6eae1;height:12px;width:86%;border-radius:4px}.skeleton:nth-child(even){width:60%}
.tabbar{gap:3px;border-bottom:1px solid var(--line);margin:0 0 17px}.tabbar button{border:0;background:transparent;border-radius:4px 4px 0 0;padding:10px 12px;color:#536057;font-size:.88rem}.tabbar button[aria-pressed=true]{box-shadow:inset 0 -3px #346349;color:var(--green);background:#e9eee5;font-weight:650}.record-title{justify-content:space-between;margin-bottom:12px}.record-title h2{font-size:1.65rem}.chips{gap:6px}.id{display:inline-flex;align-items:center;gap:6px;font-family:ui-monospace,monospace;white-space:nowrap}.copy{font:inherit;font-family:system-ui;font-size:.72rem;padding:3px 6px}
.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 24px;margin:0}.fields>div{min-width:0}.fields dt{font-size:.8rem;color:var(--muted)}.fields dd{margin:3px 0 0;overflow-wrap:anywhere}.actions{align-items:stretch;gap:8px}.action{border:1px solid #cbd2c8;border-radius:7px;flex:1 0 auto;background:white}.action summary{padding:9px 12px;font-size:.88rem}.action[open]{flex-basis:100%}.action .panel-body{padding:0 14px 15px}.action p{color:var(--muted);margin-bottom:12px}.quick{margin-bottom:10px}.quick button{font-size:.8rem}.danger{border-color:#ce9691}.danger h2,.danger summary{color:#843037}.danger button.primary{background:#813235;border-color:#813235}
.steps{display:flex;flex-wrap:wrap;align-items:center;gap:5px;font-size:.75rem}.steps span{color:#59635d}.steps b{color:#234932}.meter{width:min(100%,420px);height:12px;accent-color:#346648}.timeline{padding-left:19px}.timeline li{margin:0 0 14px;padding-left:4px}.timeline p,.prose{white-space:pre-wrap;overflow-wrap:anywhere}img{max-width:100%;height:auto}.auth{max-width:430px;margin:9vh auto;padding:30px}.auth h1{font-size:2.2rem;margin-bottom:24px}.auth form,.auth label{display:grid;width:100%}.auth code{overflow-wrap:anywhere}footer{border-top:1px solid var(--line);margin-top:32px;padding-top:13px;color:var(--muted);font-size:.76rem}footer span{float:right}
#status:not(:empty){position:fixed;bottom:20px;right:20px;z-index:5;color:white;background:#244a36;border-radius:9px;padding:13px 18px;max-width:min(420px,calc(100% - 32px));box-shadow:0 4px 18px #152a2330}#status.error:not(:empty){background:#813235}
@media(max-width:1150px){#workspace{grid-template-columns:181px minmax(0,1fr)}.canvas{padding:26px 20px}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}th,td{padding:10px 8px}}
@media(max-width:820px){#workspace{display:block}.topbar{padding:13px 16px;flex-wrap:wrap}.session{gap:9px}.canvas{padding:22px 16px}aside{padding:7px 12px;border:0;border-bottom:1px solid var(--line)}nav{display:flex;overflow-x:auto;gap:4px}nav button{padding:8px 10px}.heading{margin-bottom:16px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:16px}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.auth{margin:36px 16px}}
@media(max-width:600px){.brand strong{font-size:1.5rem}.topbar{gap:9px}.session{width:100%;font-size:.72rem}.session button{margin-left:auto;padding:4px 8px}.heading{align-items:start}.heading #tools{gap:6px}.metric{min-height:88px;padding:12px}.metric-grid{gap:8px}.panel{border-radius:9px}.attention-row{flex-wrap:wrap;gap:5px 8px}.attention-row .link{margin-left:0}.scroller{overflow:visible}table,tbody{display:block}thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 13px;padding:14px;border-bottom:1px solid var(--line)}tbody tr:last-child{border:0}td{display:block;border:0;padding:0;font-size:.84rem}td:before{content:attr(data-label);display:block;color:#59645b;font-size:.71rem;font-weight:600;margin-bottom:3px}td.wide,.expanded td{grid-column:1/-1}.expanded td:before{display:none}.fields{gap:12px}.filterbox form>label{flex:1 1 135px}form>label{max-width:100%}form input,form select,form textarea{width:100%}form input[type=checkbox]{width:auto}.tabbar{gap:1px}.tabbar button{padding:8px;font-size:.8rem}.pager{gap:5px}.auth{margin:auto;margin-top:30px;width:calc(100% - 32px)}#tools small{font-size:.72rem}.record-title{align-items:start}.line{gap:6px}}

.panel h3:not(:first-child){margin-top:20px;margin-bottom:10px}.panel .meter{display:block}.panel .line{flex-wrap:wrap}.attention-row>.link{text-align:left}.panel>button.link{margin:14px 10px 0 0}.filterbox form label:first-child:has(input[name=query]){flex:1 1 220px}
@media(min-width:821px){
  #workspace>aside{display:block;padding-block:0}
  #workspace>aside>nav{position:sticky;top:0;padding-block:16px;max-height:100vh;max-height:100dvh;overflow-y:auto}
  .attention-row{display:grid;grid-template-columns:140px minmax(0,1fr)}.attention-row>.chip{justify-self:start}.attention-row>.link{margin-left:0;justify-self:start}}
@media(max-width:600px){nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}nav button{font-size:.8rem;padding:8px 2px;justify-content:center;gap:4px}nav .nav-icon{display:none}nav .nav-count{margin-left:0;padding:0 5px}.metric:last-child{grid-column:1/-1;min-height:58px;flex-direction:row;align-items:center}.metric:last-child .chip{align-self:center}.filterbox input,.filterbox select{min-height:38px}}

.user-email{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:601px){td:has(>.user-email){width:21%;max-width:0}}
.reveal-panel{max-width:100%;min-width:0;font-size:.88rem}
.reveal-panel summary{color:#27553b}
.reveal-panel[open]{width:22rem;padding:12px;border:1px solid var(--line);border-radius:7px;background:#fff}
.reveal-panel p{color:var(--muted)}
.reveal-panel form label{flex:1 1 9rem;min-width:0}
.revealed-address:not(:empty){margin-top:10px;overflow-wrap:anywhere;font-weight:600}
.record-title>.line:has(.reveal-panel){min-width:0;max-width:100%}
td .reveal-panel[open]{width:auto}

.metric strong{font-variant-numeric:lining-nums tabular-nums;font-family:system-ui,sans-serif}
.audit-views{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem}.audit-views input{width:auto}
