:root{font-family:Arial,Helvetica,sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{padding:24px max(20px,calc((100vw - 720px)/2));background:var(--header);color:white}.brand{font-size:23px;font-weight:800;letter-spacing:-1px}.brand span{color:var(--red)}.brand small{display:block;font-size:9px;letter-spacing:2px;font-weight:400;margin-top:6px}#identity{font-size:12px;margin:17px 0 0;color:var(--muted)}main{max-width:760px;margin:auto;padding:24px 20px 36px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:bold;color:var(--muted)}h1{font-size:31px;line-height:1.12;letter-spacing:-1px;max-width:450px;margin:12px 0}h2{font-size:19px;margin:0 0 16px}p{line-height:1.5}#welcome>p:last-child{font-size:14px;color:var(--muted);max-width:470px;margin-bottom:24px}nav{display:flex;gap:6px;overflow-x:auto;padding-bottom:14px}button{font:inherit;border:none;cursor:pointer;min-height:44px;padding:12px 16px;border-radius:12px;font-size:14px;font-weight:600}nav button{white-space:nowrap;background:var(--soft);color:var(--text);font-size:12px}nav button.active{background:var(--red);color:var(--surface)}.panel{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:24px}.section-title{display:flex;align-items:center;gap:10px;margin:26px 0 16px}.section-title:first-child{margin-top:0}.section-title h2{margin:0}.section-title span{display:grid;place-items:center;border-radius:50%;width:29px;height:29px;background:var(--tint);color:var(--accent-text);font-size:11px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}label{display:block;font-size:12px;font-weight:600;margin-bottom:15px}input,select,textarea{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--input);color:var(--text);font:inherit;font-size:16px;line-height:1.35}textarea{resize:vertical}input:focus,textarea:focus,select:focus{outline:2px solid var(--focus);outline-offset:1px}.primary{background:var(--red);color:white}.secondary{background:var(--soft);color:var(--text)}.primary:disabled,button:disabled{opacity:.5;cursor:wait}.hint{font-size:12px;color:var(--muted);line-height:1.5}form>.primary{width:100%;margin-top:12px}.material{padding:12px;background:var(--soft);border-radius:12px;margin-bottom:10px}.material .grid{grid-template-columns:1fr 1fr}.material button{font-size:11px;min-height:32px;padding:8px}.material label{margin-bottom:8px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;line-height:1.6}#notice:not(:empty){background:var(--notice-bg);color:var(--notice-text);padding:14px;border-radius:12px;margin-bottom:16px;font-size:14px;line-height:1.5}.report-card,.person{border-bottom:1px solid var(--border);padding:18px 0}.report-card h3{font-size:15px;margin:0 0 6px}.report-card p{font-size:13px;margin:7px 0;overflow-wrap:anywhere}.badge{font-size:11px;color:var(--accent-text);background:var(--tint);border-radius:7px;padding:5px 8px;display:inline-block}summary{font-size:13px;cursor:pointer;margin:4px 0 16px}footer{font-size:10px;color:var(--muted);text-align:center;margin-top:28px;letter-spacing:.5px}[hidden]{display:none!important}@media(max-width:400px){main{padding:20px 12px}.panel{padding:18px}.grid{grid-template-columns:1fr}h1{font-size:28px}.section-title h2{font-size:17px}}

.resource-links{list-style:none;padding:0;margin:12px 0 26px}.resource-links li{margin:8px 0}.resource-links a{display:block;padding:14px 16px;background:var(--soft);color:var(--red);border-radius:12px;text-decoration:none;line-height:1.4}.resource-links a:hover{background:var(--hover)}.resource-links a:focus-visible{outline:2px solid var(--red);outline-offset:2px}.resource-tags{display:flex;gap:8px;flex-wrap:wrap}.resource-tags code{font-size:12px;background:var(--soft);padding:7px;border-radius:6px;user-select:all}

#main-nav{display:flex;flex-wrap:wrap;overflow:visible;margin-bottom:8px}#main-nav button{flex:1;white-space:normal;font-size:14px}#report-nav{border-bottom:1px solid var(--border);margin-bottom:18px}

:root{color-scheme:light;--text:#252124;--bg:#f7f5f5;--header:#ffffff;--red:#e40010;--surface:#ffffff;--border:#e5dfe1;--soft:#f1edef;--tint:#fff0f1;--accent-text:#a71022;--input:#fff;--focus:#e40010;--muted:#71666b;--notice-bg:#fff3da;--notice-text:#784600;--hover:#ffe3e7}
:root[data-theme="dark"]{color-scheme:dark;--text:#f5edef;--bg:#171416;--header:#211c1d;--red:#ef344a;--surface:#241e21;--border:#4c3c43;--soft:#35292f;--tint:#48262e;--accent-text:#ffb5bf;--input:#1c1719;--focus:#ff8090;--muted:#c0adb5;--notice-bg:#48371a;--notice-text:#ffdda1;--hover:#52303b}
header{position:relative;min-height:190px;color:var(--text);border-bottom:3px solid var(--red);padding-right:max(122px,calc((100vw - 720px)/2 + 110px))}.brand span{color:var(--red)}.brand small{font-size:10px;line-height:1.6;letter-spacing:1.2px;max-width:255px}.primary,nav button.active{color:#fff;background:var(--red)}.primary:hover,nav button.active:hover{filter:brightness(.93)}a{color:var(--accent-text)}.theme-control{display:flex;align-items:center;gap:10px;margin:14px 0 0;color:var(--muted);font-size:12px}.theme-control select{width:auto;max-width:200px;margin:0;font-size:13px;padding:8px 12px;min-height:44px}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}.resource-links a{color:var(--accent-text)}button:focus-visible,a:focus-visible{outline:2px solid var(--focus);outline-offset:3px}.robot-mascot{position:absolute;right:max(20px,calc((100vw - 720px)/2));top:34px;width:88px;pointer-events:none;filter:drop-shadow(0 7px 7px #0002)}.robot-mascot img{display:block;width:100%;height:auto}.robot-mascot svg{position:absolute;left:26%;top:16%;width:48%;height:21%;fill:none;stroke:#35dbed;stroke-width:5;stroke-linecap:round;filter:drop-shadow(0 0 2px #17d9ef)}@media(max-width:400px){header{padding-left:16px;padding-right:105px}.robot-mascot{width:72px;right:16px;top:40px}.theme-control{display:block}.theme-control select{margin-top:5px;max-width:100%}.brand small{font-size:9px;letter-spacing:.9px}}
.robot-mascot::before{content:"";position:absolute;left:17%;top:12%;width:66%;height:25%;background:#060e12;border-radius:25%}.robot-mascot img{position:relative}.robot-mascot svg{z-index:1}

.request-content{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:var(--input);padding:14px;border-radius:12px;max-height:65vh;overflow:auto}.request-checklist{padding-left:0;list-style:none}.request-checklist li{padding:8px 0;border-bottom:1px solid var(--border)}.report-card h4{margin:22px 0 8px}.report-card>a{display:block;margin:12px 0}.report-card>details{margin:14px 0}.report-card .actions{margin:12px 0}.report-card select{min-width:0}

.portfolio-part{border:1px solid var(--border);border-radius:14px;padding:16px;margin:12px 0;background:var(--soft)}.portfolio-part select,.portfolio-part input{min-width:0;max-width:100%}.portfolio-balances{list-style:none;padding:0}.portfolio-balances li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--border);font-size:13px;line-height:1.5}.portfolio-balances strong{white-space:nowrap;color:var(--accent-text)}.portfolio-balances span{overflow-wrap:anywhere}.portfolio-lines{padding-left:20px;font-size:13px;line-height:1.6}.portfolio-purpose{white-space:pre-wrap}#portfolio h2,#portfolio-journal h3{margin-top:24px}#portfolio h2:first-child{margin-top:0}#portfolio .grid>*,#portfolio-journal .grid>*{min-width:0}#portfolio-form>label{margin-top:18px}

.portfolio-inventory{margin-bottom:30px;padding-bottom:26px;border-bottom:1px solid var(--border)}.portfolio-inventory .grid>*{min-width:0}.portfolio-table-scroll{overflow:auto;max-height:440px;border:1px solid var(--border);border-radius:12px;scrollbar-gutter:stable}.portfolio-table-scroll:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.portfolio-table{width:100%;min-width:600px;border-spacing:0;font-size:12px;line-height:1.4}.portfolio-table caption{text-align:left;padding:12px;background:var(--soft);font-weight:600}.portfolio-table th,.portfolio-table td{padding:11px 9px;border-bottom:1px solid var(--border);text-align:right;background:var(--surface);vertical-align:middle;font-variant-numeric:tabular-nums}.portfolio-table thead th{position:sticky;top:0;z-index:2;background:var(--soft);font-size:10px}.portfolio-table th:first-child{text-align:left;position:sticky;left:0;min-width:190px;max-width:220px;z-index:1;box-shadow:1px 0 var(--border);font-weight:500}.portfolio-table thead th:first-child{z-index:3;font-weight:700}.portfolio-table tbody tr:nth-child(even)>*{background:var(--input)}.portfolio-table td:nth-child(2){text-align:center;color:var(--muted)}.portfolio-table .portfolio-quantity{font-weight:700;color:var(--accent-text)}.portfolio-table button{font-size:11px;padding:8px;min-height:36px}.portfolio-table tbody tr:last-child>*{border-bottom:0}@media(max-width:440px){.portfolio-table-scroll{max-height:370px}.portfolio-table th:first-child{min-width:155px;max-width:170px}.portfolio-table{min-width:555px}}

body:not([data-authenticated="true"]) main>section:not(#device-login),body:not([data-authenticated="true"]) #app-dock,body:not([data-authenticated="true"]) #header-profile{display:none!important}
#device-login{max-width:640px;margin:28px auto}#pair-code{font-size:32px;letter-spacing:6px;color:var(--ink)}#device-panel button{margin:6px 8px 6px 0}#device-panel .report-card{margin:12px 0}
