:root{--background:20 9% 95%;--foreground:218 16% 14%;--card:0 0% 100%;--primary:183 49% 25%;--primary-foreground:40 30% 98%;--muted:20 10% 93%;--muted-foreground:218 8% 42%;--accent:183 26% 92%;--success:152 46% 36%;--warning:34 96% 40%;--destructive:0 72% 51%;--border:20 9% 88%;--input:20 9% 84%;--ring:183 49% 30%;--radius:10px;--shadow-color:220 40% 3%;--shadow-xs:0 1px 2px 0 hsl(var(--shadow-color)/0.10);--shadow-card:0 1px 3px 0 hsl(var(--shadow-color)/0.10),0 6px 16px -6px hsl(var(--shadow-color)/0.14)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-size:14px;background:hsl(var(--background));color:hsl(var(--foreground));-webkit-font-smoothing:antialiased}body,h1{margin:0}h1{font-size:18px;font-weight:600;letter-spacing:-.011em}.muted{color:hsl(var(--muted-foreground))}.header{position:-webkit-sticky;position:sticky;top:0;z-index:30;background:hsl(var(--background)/.85);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid hsl(var(--border))}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;flex-wrap:wrap}.header .sub{font-size:12px;margin-top:2px}.seg{display:inline-flex;padding:3px;background:hsl(var(--muted));border-radius:var(--radius)}.seg button{border:0;background:transparent;padding:6px 14px;border-radius:7px;font:inherit;font-weight:500;cursor:pointer;color:hsl(var(--muted-foreground))}.seg button.on{background:hsl(var(--card));color:hsl(var(--foreground));box-shadow:var(--shadow-xs)}.ui{padding:16px 24px 24px}.bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}.bar .sep{width:1px;height:22px;background:hsl(var(--border));margin:0 4px}.bar .grow{flex:1 1}.act button,.bar button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;padding:0 12px;font:inherit;font-weight:500;cursor:pointer;border:1px solid hsl(var(--input));background:hsl(var(--card));color:hsl(var(--foreground));border-radius:var(--radius);box-shadow:var(--shadow-xs);transition:background-color .15s,border-color .15s,color .15s}.act button:hover,.bar button:hover,.btn:hover{background:hsl(var(--accent))}.bar button.primary,.btn.primary{background:hsl(var(--primary));color:hsl(var(--primary-foreground));border-color:transparent}.bar button.primary:hover,.btn.primary:hover{background:hsl(var(--primary)/.9)}.act button.danger,.bar button.danger,.btn.danger{color:hsl(var(--destructive))}.act button.danger:hover,.bar button.danger:hover,.btn.danger:hover{background:hsl(var(--destructive)/.08);border-color:hsl(var(--destructive)/.4)}button:disabled{opacity:.5;cursor:wait}.btn:focus-within,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:2px}.pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:500}.pill:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.busy{background:hsl(var(--warning)/.12);color:hsl(var(--warning))}.note{background:hsl(var(--success)/.12);color:hsl(var(--success))}.hint{font-size:13px;line-height:1.5;color:hsl(var(--muted-foreground));background:hsl(var(--accent)/.6);border:1px solid hsl(var(--primary)/.15);border-radius:var(--radius);padding:10px 14px;margin-bottom:12px}.hint b{color:hsl(var(--foreground));font-weight:600}.card{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:14px;box-shadow:var(--shadow-card)}.tablewrap{overflow:auto;max-height:calc(100vh - 210px)}table.grid{border-collapse:separate;border-spacing:0;font-size:13px}table.grid th{position:-webkit-sticky;position:sticky;top:0;z-index:1;background:hsl(var(--muted));color:hsl(var(--muted-foreground));font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;text-align:left;padding:10px 8px;white-space:nowrap}table.grid td,table.grid th{border-bottom:1px solid hsl(var(--border))}table.grid td{padding:0;vertical-align:top;border-right:1px solid hsl(var(--border)/.6)}table.grid tr:hover td{background:hsl(var(--muted)/.4)}table.grid td.num{padding:10px 8px;text-align:center;color:hsl(var(--muted-foreground));font-feature-settings:"tnum";font-variant-numeric:tabular-nums}table.grid textarea{border:none;width:100%;font:inherit;padding:8px;background:transparent;resize:vertical;min-height:60px;display:block;color:inherit}table.grid textarea:focus{outline:2px solid hsl(var(--ring));outline-offset:-2px;background:hsl(var(--accent)/.5)}table.grid td.actcell{padding:6px;border-right:0}.act{display:flex;flex-direction:column;gap:4px}.act button{height:28px;padding:0 10px;font-size:12px;box-shadow:none}.formwrap{display:flex;gap:16px;align-items:flex-start}.list{width:240px;flex-shrink:0;max-height:calc(100vh - 190px);overflow:auto;padding:6px}.list div{position:relative;padding:8px 10px;cursor:pointer;border-radius:8px;display:flex;gap:8px;align-items:center;transition:background-color .15s}.list div:hover{background:hsl(var(--muted)/.7)}.list div.sel{background:hsl(var(--accent));color:hsl(var(--primary));font-weight:600}.list div.sel:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:3px;background:hsl(var(--primary))}.list .idx{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;min-width:18px}.list .empty,.list .idx{color:hsl(var(--muted-foreground))}.list .empty{font-style:italic}.formpane{flex:1 1;min-width:0}.form{padding:20px;max-height:calc(100vh - 240px);overflow:auto}.form .row{display:flex;gap:12px}.form .row>div{flex:1 1}.form label{display:block;font-weight:600;font-size:13px;margin:12px 0 6px}.form input,.form textarea{width:100%;font:inherit;padding:8px 10px;color:inherit;background:hsl(var(--card));border:1px solid hsl(var(--input));border-radius:8px}.form textarea{min-height:70px;resize:vertical}*{scrollbar-width:thin;scrollbar-color:hsl(var(--border)) transparent}