*{box-sizing:border-box}html{color-scheme:light;font:16px/1.48 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172c43;background:#edf3f8}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 98% 2%,#c9f0f1 0,transparent 46%),radial-gradient(ellipse at 2% 75%,#d4e4fc 0,transparent 45%),#eff3f9}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button,a,input,select{touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #0079ab;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{letter-spacing:-.045em;line-height:1.12}h1{font-size:clamp(2rem,5vw,3.65rem);font-weight:620}h2{font-size:1.55rem;font-weight:620}h3{font-size:1.12rem;font-weight:650}svg{width:21px;height:21px;flex:none}.brand,.inline,.btn,.nav button,.user-chip,.actions,.page-title,.item-main,.toolbar,.entry,.status-line{display:flex;align-items:center;gap:.7rem}.brand{font-weight:700;letter-spacing:-.035em;font-size:1.18rem}.mark{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,#204556,#0b2837 70%);color:#cbf8ef;box-shadow:inset 1px 1px 2px #b5ece44d}.mark svg{width:26px;height:26px}.brand small{font-size:.72rem;display:block;color:#506678;letter-spacing:.025em;font-weight:550}.btn,.nav button,.iconbtn,.seg button{border:1px solid transparent;border-radius:13px;background:transparent;min-height:44px;font-weight:600}.btn{padding:.66rem 1rem;justify-content:center;line-height:1.2}.primary{background:#163e4b;color:white;box-shadow:inset 0 1px 1px #ffffff35,0 4px 11px #25485419}.primary:hover{background:#205465}.quiet,.iconbtn{background:#ffffffae;border:1px solid #b9cad6}.quiet:hover,.iconbtn:hover{background:white}.iconbtn{width:44px;display:inline-grid;place-items:center;padding:0}.glass{background:linear-gradient(145deg,#ffffffbf,#f4fcff8f);border:1px solid #ffffffdf;box-shadow:inset 0 1px 1px white,0 18px 65px #1e4d6a0a;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}.access{min-height:100svh;display:grid;grid-template-rows:auto 1fr auto;max-width:1200px;margin:auto;padding:36px clamp(20px,5vw,65px)}.access-layout{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:7vw;padding:3rem 0}.access-card{border-radius:32px;padding:clamp(28px,4vw,54px);max-width:470px;width:100%;justify-self:center;animation:rise .35s both}.access-card h1{font-size:clamp(2rem,4vw,2.85rem)}.access-card p{margin:.8rem 0 1.6rem;color:#52667a}.access-card .btn{width:100%;margin-top:.8rem}.access .foot{font-size:.82rem;color:#52667a}.vault-art{height:350px;position:relative;display:grid;place-items:center;isolation:isolate}.art-glow{position:absolute;width:90%;height:55%;filter:blur(35px);background:radial-gradient(ellipse,#6acccc90,#568ae744 60%,transparent 75%);transform:rotate(-14deg)}.layers{width:240px;height:240px;position:relative;transform:rotate(-9deg) skewY(-4deg)}.layer{position:absolute;left:0;right:0;height:143px;transform:rotate(-26deg) skewX(29deg);border-radius:29px;border:2px solid #fff9;box-shadow:inset 0 0 0 1px #268fa563,inset 3px 4px 13px #ffffffb8,0 9px 0 -4px #36698266,0 12px 21px #315c752a;background:linear-gradient(135deg,#e2fffdcf,#9ae1e6b3 42%,#77a3d3ad 85%)}.layer:nth-child(1){top:106px;background:linear-gradient(125deg,#35607b,#244e69 49%,#0f344a)}.layer:nth-child(2){top:79px}.layer:nth-child(3){top:50px}.layer:nth-child(4){top:12px;background:linear-gradient(110deg,#f2ffffda,#b5eae8cb 54%,#b4d3e9d9)}.layer:last-child:before,.layer:last-child:after{content:"";position:absolute;border:2px solid #fff9;inset:19% 30%;border-radius:13px;box-shadow:0 2px 1px #497c8730}.layer:last-child:after{inset:28% 37%;background:linear-gradient(140deg,#ffffffc7,#81c1c975);border:1px solid #fff}.art-label{position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:.78rem;letter-spacing:.13em;color:#486475;font-weight:650}.field{display:grid;gap:.4rem;font-weight:600;font-size:.9rem;margin-top:1rem}.field input,.field select,.toolbar input,.toolbar select,.linkbox{width:100%;min-height:46px;border:1px solid #b7c9d4;border-radius:12px;padding:.65rem .85rem;background:#ffffffdc;color:#182e42;font-size:1rem;min-width:0}.field input.pin{text-align:center;font-size:1.6rem;letter-spacing:.65em;padding-left:1.4em}.error{color:#a62731;white-space:pre-line;padding-top:.55rem}.error:empty{display:none}.muted{color:#50677a}.shell{max-width:1370px;margin:auto;padding:24px clamp(16px,4vw,64px) 65px}.top{display:flex;justify-content:space-between;align-items:center;gap:1rem}.top .user-chip{font-size:.9rem}.nav{display:flex;gap:4px;padding:4px;border-radius:17px}.nav button,.seg button{padding:.5rem .85rem;min-height:40px;color:#496073}.nav button.selected,.seg .selected{color:#103b49;background:white;box-shadow:0 2px 7px #32566b22}.page-title{justify-content:space-between;align-items:flex-end;margin:clamp(32px,6vw,76px) 0 26px}.page-title p{margin-top:.6rem;color:#50677a}.actions{flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);border-radius:24px;overflow:hidden;margin-bottom:22px}.stat{padding:20px clamp(14px,2.5vw,36px)}.stat+.stat{border-left:1px solid #b9cbd478}.stat b{display:block;font-size:clamp(1.7rem,3vw,2.6rem);font-weight:590;letter-spacing:-.05em}.stat span{font-size:.9rem;color:#435c70}.panel{background:#ffffffdf;border:1px solid #fff;border-radius:24px;box-shadow:0 8px 36px #35516b07;overflow:hidden}.panel+.panel{margin-top:20px}.panel-head,.toolbar{padding:20px 24px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid #dfE7ec}.toolbar{flex-wrap:wrap;border-bottom:1px solid #dfe7ec}.search{flex:1;min-width:180px;position:relative}.search svg{position:absolute;left:13px;top:12px;color:#587081}.toolbar .search input{padding-left:42px}.toolbar select{width:auto;max-width:100%}.seg{display:flex;background:#edf2f5;padding:3px;border-radius:13px}.seg button{font-size:.88rem;min-height:38px}.row{display:grid;grid-template-columns:minmax(180px,2fr) minmax(110px,1.1fr) minmax(100px,1fr) auto;align-items:center;text-align:left;gap:14px;padding:15px 24px;border:0;width:100%;background:transparent;color:#263a4c}.row+.row,.entry+.entry{border-top:1px solid #e3e9ee}button.row:hover{background:#f2f8fa}.row-head{font-size:.77rem;font-weight:640;color:#526b7b;background:#f2f6f8}.tile{border-radius:13px;background:#e8f2f2;color:#2a6171;width:44px;height:44px;display:grid;place-items:center;flex:none}.item-main strong,.entry strong{display:block;overflow-wrap:anywhere}.item-main small,.entry small,.row>small{display:block;color:#526a7c}.item-main{min-width:0}.stock{font-size:1.04rem;font-weight:650}.low{background:#fff1ce;color:#79490e;border-radius:30px;padding:2px 8px;font-size:.74rem;margin-left:.4rem;white-space:nowrap}.empty{padding:clamp(30px,5vw,60px) 20px;text-align:center;color:#516779}.empty h3{color:#283e50;margin:.6rem}.empty svg{width:32px;height:32px}.entry{padding:15px 24px;justify-content:space-between;flex-wrap:wrap}.entry div{min-width:0}.audit-meta,.meta{font-size:.87rem;color:#506779}.entry time{font-size:.82rem;color:#4b6275}.qty{font-variant-numeric:tabular-nums;font-weight:650}.pos{color:#076453}.neg{color:#864b21}.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{color:#172c43;padding:0;border:1px solid #fff;border-radius:25px;max-width:500px;width:calc(100% - 28px);max-height:90svh;background:#f3f8fb;box-shadow:0 30px 100px #142a4155}dialog::backdrop{background:#132b4350;backdrop-filter:blur(5px)}dialog[open]{animation:rise .18s ease-out}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 12px}.sheet-body{padding:4px 24px 24px}.sheet-body>.btn,.sheet-body form>.btn{width:100%;margin-top:18px}.sheet-body p{margin-top:8px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.detail{padding:14px 16px;border-radius:16px;background:#e1edeF}.detail b{font-size:1.15rem}.form-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}#notice{position:fixed;z-index:20;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%,12px);max-width:calc(100% - 24px);width:max-content;border-radius:15px;background:#143c49;color:white;padding:12px 18px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#notice.show{opacity:1;transform:translate(-50%,0)}@keyframes rise{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@media(max-width:880px){.top{flex-wrap:wrap}.nav{order:3;width:100%}.nav button{flex:1;justify-content:center}.row{grid-template-columns:minmax(120px,1.5fr) 1fr 1fr auto}.access-layout{gap:1rem}.layers{scale:.83}}@media(max-width:650px){.access{padding:20px;justify-items:center}.access-layout{width:100%;grid-template-columns:1fr;gap:0;padding:0 0 24px;align-self:center}.vault-art{height:135px}.layers{scale:.46}.art-label{display:none}.access-card{max-width:420px;padding:26px}.access .foot{font-size:.75rem}.shell{padding:16px 12px 40px}.top{gap:12px}.nav{overflow:auto}.nav button{gap:5px;font-size:.88rem;padding:6px}.nav svg{width:17px}.page-title{display:block;margin:28px 2px 18px}.page-title .actions{margin-top:16px}.page-title .actions .btn{font-size:.92rem}.stats{border-radius:18px;margin-bottom:14px}.stat{padding:12px}.stat span{font-size:.78rem}.toolbar,.panel-head,.entry{padding:14px}.toolbar{gap:8px}.toolbar .search{flex-basis:100%}.toolbar select{flex:1;min-width:0}.row{grid-template-columns:minmax(0,1fr) auto 16px;gap:5px;padding:13px 12px}.row>.model-cell{display:none}.row-head{display:none}.item-main{gap:9px}.tile{width:37px;height:39px}.low{display:block;text-align:center;margin:2px 0 0}.entry .btn{font-size:.87rem}.user-chip>span{max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.two{grid-template-columns:1fr}.panel{border-radius:18px}.sheet-head,.sheet-body{padding-left:18px;padding-right:18px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Keep navigation on the screen while the active workspace owns its scroll. */
html,body{height:100%;min-height:0;overflow:hidden;overscroll-behavior:none}
#app{position:fixed;inset:var(--screen-y,0px) 0 auto;height:var(--screen-height,100dvh);overflow:hidden}
.brand-logo{width:42px;height:42px;object-fit:cover;border-radius:50%;flex:none;box-shadow:0 0 0 1px #15314120,0 2px 6px #102d4917}
.access{min-height:0;height:100%;padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));grid-template-rows:auto minmax(0,1fr) auto}
.access-layout{min-height:0}
.access-card{max-height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding:12px;scrollbar-width:thin;animation:glass-in .38s cubic-bezier(.18,.72,.24,1) both}
@keyframes glass-in{from{opacity:0;transform:translateY(6px) scale(.985)}to{opacity:1;transform:none}}
.shell{position:relative;display:flex;flex-direction:column;height:100%;padding-top:max(18px,env(safe-area-inset-top));padding-bottom:0}
.shell .top{flex:none;padding-bottom:12px}
.workspace-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;flex:1;padding:0 4px max(100px,calc(env(safe-area-inset-bottom) + 90px));scroll-padding-bottom:96px}
body:not(.locked) #notice{bottom:calc(env(safe-area-inset-bottom) + 92px)}
@media(max-width:650px){.access-layout{align-self:stretch;align-content:center;grid-template-rows:minmax(0,135px) minmax(0,max-content)}.access-card{align-self:center}.shell{padding-top:max(14px,env(safe-area-inset-top))}.workspace-scroll{scrollbar-gutter:auto;padding-inline:0}.shell .top{padding:0 3px 8px}.page-title{margin-top:20px}}
.short-screen .access{padding:8px 14px;grid-template-rows:minmax(0,1fr)}
.short-screen .access>header,.short-screen .access .foot,.short-screen .vault-art{display:none}
.short-screen .access-layout{display:flex;align-items:center;justify-content:center;padding:0;width:100%;height:100%}
.short-screen .access-card{padding:16px 22px;max-width:440px}
.short-screen .access-card h1{font-size:1.45rem}
.short-screen .access-card p{font-size:.87rem;margin:.4rem 0 .6rem}
.short-screen .access-card .field{margin-top:.5rem}
@media(prefers-reduced-motion:reduce){.access-card{animation:none}}

.workspace-scroll,.access-card,dialog{overscroll-behavior:none}
dialog[open]{
  position:fixed;
  top:var(--screen-y,0px);
  bottom:calc(100% - var(--screen-y,0px) - var(--screen-height,100dvh));
  max-height:min(90dvh,calc(var(--screen-height,100dvh) - 20px));
  margin-block:auto;
}
/* Match the browser chrome and the painted safe area at the top edge. */
html{background:#f0f7fa}
body{background:linear-gradient(to bottom,#f0f7fa 0,#f0f7fa max(16px,env(safe-area-inset-top)),#f0f7fa00 140px),radial-gradient(ellipse at 96% 28%,#d4f1ef 0,transparent 45%),radial-gradient(ellipse at 0 86%,#dae7fb 0,transparent 58%),#eef5f9}
.shell{width:100%;max-width:1220px;padding-inline:clamp(18px,4vw,64px);padding-top:calc(18px + env(safe-area-inset-top))}
.shell .top{padding:0 4px 15px;gap:16px;flex-wrap:nowrap}
.brand{gap:10px}.brand-logo{width:43px;height:43px}
.user-chip .iconbtn{border-color:#c9d8df;background:#ffffffa8;border-radius:16px}
.page-title{margin:clamp(32px,5vw,64px) 0 clamp(22px,3vw,36px)}
.page-title h1{line-height:1.05;letter-spacing:-.058em}
.page-title p{margin-top:8px;max-width:39ch}
.actions{gap:10px}
.panel{box-shadow:0 14px 50px #3c5a6b08}
.entry{padding-block:19px}
.panel-head{padding-block:22px}
.workspace-scroll:focus{outline:none}
.workspace-scroll{padding-bottom:calc(110px + env(safe-area-inset-bottom));scroll-padding-bottom:calc(100px + env(safe-area-inset-bottom))}
.tab-bar{position:absolute;z-index:4;bottom:calc(12px + env(safe-area-inset-bottom));left:50%;translate:-50% 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;width:min(340px,calc(100% - 32px));padding:5px;border:1px solid #ffffffed;border-radius:28px;isolation:isolate;background:linear-gradient(110deg,#ffffffd9,#edf7f9bf 50%,#ffffffc9);-webkit-backdrop-filter:blur(22px) saturate(145%);backdrop-filter:blur(22px) saturate(145%);box-shadow:inset 0 1px 1px #fff,inset 0 -1px 2px #a2b4c133,0 5px 25px #173b5125,0 1px 4px #173b5114}
.tab-bar button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:#496372;min-height:51px;border:1px solid transparent;border-radius:23px;background:transparent;font-size:.8rem;line-height:1.1;font-weight:620;transition:background-color .18s,color .18s}
.tab-bar button svg{width:21px;height:21px}
.tab-bar button[aria-current]{border-color:#e0f1ef;background:#d6eae8;color:#164349;box-shadow:inset 0 1px 1px #ffffff94}
@media(hover:hover){.tab-bar button:not([aria-current]):hover{background:#eaf3f5}}
@media(min-width:900px){.tab-bar{width:405px}.tab-bar button{flex-direction:row;gap:8px;font-size:.91rem;min-height:45px}}
/* A touch returning from a native chooser must not paint a keyboard halo. */
:where(button,input,select,a,summary,label){-webkit-tap-highlight-color:transparent}
html[data-input=pointer] :is(button,input,select,a,summary,[tabindex],dialog):focus{outline:none}
html[data-input=keyboard] :is(button,input,select,a,summary,[tabindex="0"]):focus{outline:3px solid #0079ab;outline-offset:2px}
@media(max-width:650px){.shell{padding-inline:16px;padding-top:calc(14px + env(safe-area-inset-top))}.shell .top{padding-inline:0;padding-bottom:10px}.page-title{margin:23px 1px 22px}.entry{padding:15px}.panel-head{padding-block:17px}.brand-logo{width:39px;height:39px}.tab-bar{width:min(315px,calc(100% - 28px))}.workspace-scroll{padding-bottom:calc(100px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.tab-bar button{transition:none}}
