/* Data Work: databases, table view, record panel. Dark glass with the Tools teal accent. */
#inventoryPage.ly-dw-on>:not(#lyDataWork){display:none!important}
.ly-dw{--dw:#a5b4fc;--dw2:#818cf8;--dw-text:#eef0fa;--dw-muted:#9aa3c4;--dw-line:rgba(255,255,255,.1);--dw-glass:rgba(255,255,255,.045);--dw-panel:rgba(18,24,26,.92);color:var(--dw-text);max-width:100%;min-width:0}
.ly-dw svg,.ly-dw-pop svg,.ly-dw-panel svg,.ly-dw-dialog svg,.ly-dw-toast svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.ly-dw-loading,.ly-dw-empty-card{padding:40px;text-align:center;color:var(--dw-muted)}
/* buttons */
:is(.ly-dw,.ly-dw-pop,.ly-dw-panel,.ly-dw-dialog,.ly-dw-toast) button{font:inherit;cursor:pointer}
:is(.ly-dw,.ly-dw-pop,.ly-dw-panel,.ly-dw-dialog) .ly-dw-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px!important;border-radius:13px!important;border:1px solid rgba(255,255,255,.22)!important;background:linear-gradient(115deg,#a5b4fc,#818cf8)!important;color:#11143a!important;font-weight:800!important;font-size:14px!important;box-shadow:0 6px 18px rgba(129,140,248,.18)!important}
:is(.ly-dw,.ly-dw-pop,.ly-dw-panel,.ly-dw-dialog) .ly-dw-primary:hover{filter:brightness(1.06)}
:is(.ly-dw,.ly-dw-pop,.ly-dw-panel,.ly-dw-dialog) .ly-dw-ghost{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px!important;border-radius:13px!important;border:1px solid var(--dw-line,rgba(255,255,255,.12))!important;background:rgba(255,255,255,.05)!important;color:#e6e9f7!important;font-weight:700!important;font-size:14px!important;box-shadow:none!important}
:is(.ly-dw,.ly-dw-pop,.ly-dw-panel,.ly-dw-dialog) .ly-dw-ghost:hover{background:rgba(255,255,255,.1)!important}
:is(.ly-dw,.ly-dw-pop,.ly-dw-panel,.ly-dw-dialog) .ly-dw-ghost.small{min-height:36px;padding:0 12px!important;font-size:13px!important;border-radius:10px!important}
:is(.ly-dw,.ly-dw-pop,.ly-dw-panel,.ly-dw-dialog) .ly-dw-danger{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px!important;border-radius:12px!important;border:1px solid rgba(248,113,113,.4)!important;background:rgba(239,68,68,.12)!important;color:#fca5a5!important;font-weight:700!important;box-shadow:none!important}
:is(.ly-dw,.ly-dw-pop,.ly-dw-panel,.ly-dw-dialog) .ly-dw-icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;min-height:40px!important;padding:0!important;border-radius:12px!important;border:1px solid rgba(255,255,255,.12)!important;background:rgba(255,255,255,.05)!important;color:#dde1f3!important;box-shadow:none!important;flex:0 0 auto}
:is(.ly-dw,.ly-dw-pop,.ly-dw-panel,.ly-dw-dialog) .ly-dw-icon-btn:hover{background:rgba(255,255,255,.11)!important;color:#fff!important}
:is(.ly-dw,.ly-dw-pop,.ly-dw-panel,.ly-dw-dialog) .ly-dw-icon-btn.danger{color:#fca5a5!important}
:is(.ly-dw,.ly-dw-pop,.ly-dw-panel,.ly-dw-dialog) :focus-visible{outline:2px solid var(--dw,#a5b4fc)!important;outline-offset:2px}
/* header */
.ly-dw-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:22px 24px;border-radius:22px;background:radial-gradient(120% 120% at 0% 0%,rgba(165,180,252,.16),transparent 55%),linear-gradient(145deg,rgba(30,32,56,.9),rgba(15,16,28,.92));border:1px solid rgba(199,210,254,.22);margin-bottom:16px}
.ly-dw-head-l{min-width:0;flex:1 1 320px}.ly-dw-head-r{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ly-dw-title{display:flex;align-items:center;gap:14px;min-width:0}
.ly-dw-art{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.08);flex:0 0 auto}.ly-dw-art img{width:40px;height:40px;object-fit:contain}
.ly-dw-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.14em;color:var(--dw)}
.ly-dw-title h1{margin:2px 0 0;font-size:clamp(24px,3vw,32px);font-weight:900;color:#fff}
.ly-dw-sub{margin:4px 0 0;font-size:13px;line-height:1.5;color:var(--dw-muted,#9aa3c4)}
.ly-dw-status{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:99px;font-size:12px;font-weight:700;color:#c7d2fe;background:rgba(165,180,252,.08);border:1px solid rgba(165,180,252,.2)}
.ly-dw-status svg{width:15px;height:15px}
.ly-dw-status:not([data-state="offline"]):not([data-state="retrying"]){display:none}
.ly-dw-status[data-state="offline"],.ly-dw-status[data-state="retrying"]{color:#fcd34d;background:rgba(252,211,77,.08);border-color:rgba(252,211,77,.25)}
.ly-dw-status[data-state="saving"]{color:#cbd5e1}
.ly-dw-title.small{gap:10px}
.ly-dw-dbicon{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:13px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);font-size:22px;line-height:1}
.ly-dw .ly-dw-dbicon.big{width:48px;height:48px;min-height:48px!important;font-size:26px!important;padding:0!important;box-shadow:none!important;background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.12)!important}
.ly-dw .ly-dw-dbname{flex:1;min-width:0;height:48px;padding:0 10px;border-radius:12px;border:1px solid transparent!important;background:transparent!important;color:#fff!important;font:inherit;font-size:clamp(20px,2.6vw,28px);font-weight:900;box-shadow:none!important}
.ly-dw .ly-dw-dbname:hover{border-color:rgba(255,255,255,.12)!important}.ly-dw .ly-dw-dbname:focus{border-color:rgba(165,180,252,.6)!important;background:rgba(255,255,255,.04)!important;outline:none}
/* home */
.ly-dw-dbgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.ly-dw .ly-dw-dbcard{--db:#a5b4fc;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:150px;padding:18px!important;border-radius:18px!important;text-align:left;border:1px solid color-mix(in srgb,var(--db) 30%,transparent)!important;background:radial-gradient(120% 100% at 0% 0%,color-mix(in srgb,var(--db) 14%,transparent),transparent 60%),linear-gradient(160deg,rgba(28,30,50,.9),rgba(15,16,28,.94))!important;color:var(--dw-text)!important;box-shadow:none!important;transition:transform .12s,border-color .15s}
.ly-dw .ly-dw-dbcard:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--db) 60%,transparent)!important}
.ly-dw-dbcard-top{display:flex;justify-content:space-between;align-items:center;width:100%;margin-bottom:6px}
.ly-dw-dbcard strong{font-size:17px;font-weight:800;color:#fff;overflow-wrap:anywhere}
.ly-dw-dbmeta{font-size:12px;color:var(--dw-muted)}
.ly-dw-dbcard small{font-size:12px;color:#b9bfdc;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ly-dw .ly-dw-dbcard.add{align-items:center;justify-content:center;border-style:dashed!important;background:rgba(255,255,255,.02)!important;color:var(--dw)!important;font-weight:800;gap:8px;flex-direction:row}
.ly-dw-badge{padding:3px 9px;border-radius:99px;font-size:11px;font-weight:800}.ly-dw-badge.warn{background:rgba(251,191,36,.14);color:#fcd34d;border:1px solid rgba(251,191,36,.35)}
.ly-dw-empty{padding:24px;border-radius:20px;border:1px solid var(--dw-line);background:var(--dw-glass)}
.ly-dw-empty h2{margin:0;font-size:20px;color:#fff}
.ly-dw-tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;margin-top:16px}
:is(.ly-dw,.ly-dw-dialog) .ly-dw-tcard{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:118px;padding:16px!important;border-radius:16px!important;text-align:left;border:1px solid rgba(255,255,255,.1)!important;background:rgba(255,255,255,.04)!important;color:#eef0fa!important;box-shadow:none!important;transition:background .15s,border-color .15s,transform .12s}
:is(.ly-dw,.ly-dw-dialog) .ly-dw-tcard:hover{background:rgba(165,180,252,.08)!important;border-color:rgba(165,180,252,.4)!important;transform:translateY(-1px)}
.ly-dw-tico{font-size:26px;line-height:1}.ly-dw-tcard strong{font-size:15px;color:#fff}.ly-dw-tcard small{font-size:12px;color:#9aa3c4;line-height:1.4}
/* tabs + toolbar */
.ly-dw-tabs{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:none}.ly-dw-tabs::-webkit-scrollbar{display:none}
.ly-dw .ly-dw-tab{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;min-height:40px;padding:0 14px!important;border-radius:12px!important;border:1px solid transparent!important;background:transparent!important;color:#aab1d4!important;font-weight:700!important;font-size:14px!important;box-shadow:none!important}
.ly-dw .ly-dw-tab:hover{background:rgba(255,255,255,.05)!important;color:#fff!important}
.ly-dw .ly-dw-tab.on{background:rgba(165,180,252,.12)!important;border-color:rgba(165,180,252,.35)!important;color:#fff!important}
.ly-dw .ly-dw-tab.add{padding:0 10px!important}
.ly-dw .ly-dw-tab-more{display:inline-grid;place-items:center;width:24px;height:24px;min-height:24px!important;padding:0!important;margin-right:-6px;border-radius:7px!important;border:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important}
.ly-dw .ly-dw-tab-more svg{width:15px;height:15px}
.ly-dw-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:10px}
.ly-dw-search{flex:1 1 220px;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border-radius:13px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#9aa3c4}
.ly-dw-search:focus-within{border-color:rgba(165,180,252,.6);box-shadow:0 0 0 3px rgba(165,180,252,.14)}
.ly-dw .ly-dw-search input{flex:1;min-width:0;height:40px;border:0!important;background:transparent!important;color:#fff!important;font:inherit;font-size:15px;outline:none;box-shadow:none!important;padding:0!important}
.ly-dw .ly-dw-tool{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 13px!important;border-radius:13px!important;border:1px solid rgba(255,255,255,.12)!important;background:rgba(255,255,255,.04)!important;color:#d8dcf0!important;font-weight:700!important;font-size:13px!important;box-shadow:none!important}
.ly-dw .ly-dw-tool:hover{background:rgba(255,255,255,.09)!important}
.ly-dw .ly-dw-tool.on{border-color:rgba(165,180,252,.45)!important;background:rgba(165,180,252,.1)!important;color:#fff!important}
.ly-dw .ly-dw-tool.on.warn{border-color:rgba(251,191,36,.5)!important;background:rgba(251,191,36,.1)!important}
.ly-dw-bulk{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 10px;margin-bottom:10px;border-radius:14px;background:rgba(165,180,252,.08);border:1px solid rgba(165,180,252,.3)}
.ly-dw-bulk strong{margin-right:auto;padding-left:6px;font-size:14px}
/* grid */
.ly-dw-gridwrap{position:relative;max-height:calc(100dvh - 300px);min-height:260px;overflow:auto;border-radius:16px;border:1px solid rgba(255,255,255,.1);background:rgba(10,11,20,.6);overscroll-behavior:contain}
.ly-dw-grid{position:relative;width:100%;min-width:var(--minw,max-content);outline:none}
.ly-dw-row{display:grid;grid-template-columns:var(--cols);height:44px;align-items:stretch}
.ly-dw-body{position:relative}
.ly-dw-body>.ly-dw-row{position:absolute;left:0;right:0;top:0}
.ly-dw-cell{display:flex;align-items:center;gap:6px;min-width:0;padding:0 12px;border-bottom:1px solid rgba(255,255,255,.06);border-right:1px solid rgba(255,255,255,.04);font-size:14px;color:#dde1f2;overflow:hidden;white-space:nowrap;background:inherit;position:relative}
.ly-dw-row{background:rgba(15,16,28,.98)}
.ly-dw-body>.ly-dw-row:hover{background:#1a1c30}
.ly-dw-row.sel{background:#22254a}
.ly-dw-hrow{position:sticky;top:0;z-index:3;background:#121426}
.ly-dw-hcell{padding:0 0 0 4px;border-bottom:1px solid rgba(255,255,255,.12)}
.ly-dw .ly-dw-hbtn{display:flex;align-items:center;gap:7px;flex:1;min-width:0;height:100%;padding:0 8px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#a3abd0!important;font-size:12px!important;font-weight:800!important;letter-spacing:.04em;text-transform:uppercase;box-shadow:none!important;text-align:left;overflow:hidden;white-space:nowrap}
.ly-dw .ly-dw-hbtn:hover{color:#fff!important;background:rgba(255,255,255,.04)!important}
.ly-dw-hbtn span:not(.ly-dw-tico-s){overflow:hidden;text-overflow:ellipsis}
.ly-dw-tico-s{display:inline-grid;place-items:center;min-width:18px;font-size:12px;font-weight:800;color:#8b93c9;text-transform:none;letter-spacing:0}
.ly-dw-sortmark{color:var(--dw);font-size:13px}
.ly-dw-resize{position:absolute;right:-3px;top:0;bottom:0;width:7px;cursor:col-resize;z-index:2}
.ly-dw-resize:hover{background:rgba(165,180,252,.4)}
.ly-dw-sticky{position:sticky;left:0;z-index:2;justify-content:center;padding:0;background:inherit}
.ly-dw-sticky2{position:sticky;left:44px;z-index:2;background:inherit;box-shadow:1px 0 0 rgba(255,255,255,.08)}
.ly-dw-hrow .ly-dw-sticky,.ly-dw-hrow .ly-dw-sticky2{z-index:4}
.ly-dw-sel input{width:18px;height:18px;accent-color:#818cf8;cursor:pointer}
.ly-dw-titlecell{font-weight:700;color:#fff}
.ly-dw-cell.focus{box-shadow:inset 0 0 0 2px var(--dw)}
.ly-dw-cell.num{justify-content:flex-end;font-variant-numeric:tabular-nums}
.ly-dw-text{overflow:hidden;text-overflow:ellipsis}
.ly-dw-cell a{color:#7dd3fc;text-decoration:none;overflow:hidden;text-overflow:ellipsis}.ly-dw-cell a:hover{text-decoration:underline}
.ly-dw .ly-dw-open{position:absolute;right:6px;display:inline-grid;place-items:center;width:30px;height:30px;min-height:30px!important;padding:0!important;border-radius:9px!important;border:1px solid rgba(255,255,255,.14)!important;background:rgba(22,24,40,.95)!important;color:#d4d8ef!important;box-shadow:none!important;opacity:0;transition:opacity .12s}
.ly-dw .ly-dw-open svg{width:15px;height:15px}
.ly-dw-row:hover .ly-dw-open,.ly-dw-cell.focus .ly-dw-open,.ly-dw .ly-dw-open:focus-visible{opacity:1}
@media(hover:none){.ly-dw .ly-dw-open{opacity:1}}
.ly-dw-chip{display:inline-flex;align-items:center;max-width:100%;padding:3px 9px;border-radius:7px;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:color-mix(in srgb,var(--c) 18%,transparent);color:color-mix(in srgb,var(--c) 70%,#fff);border:1px solid color-mix(in srgb,var(--c) 35%,transparent)}
.c-gray{--c:#9ca3af}.c-brown{--c:#c08457}.c-orange{--c:#fb923c}.c-yellow{--c:#facc15}.c-green{--c:#4ade80}.c-teal{--c:#818cf8}.c-blue{--c:#60a5fa}.c-purple{--c:#a78bfa}.c-pink{--c:#f472b6}.c-red{--c:#f87171}
.ly-dw-chips{display:flex;gap:4px;overflow:hidden}
.ly-dw-check{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;border:1.5px solid rgba(255,255,255,.3);color:#11143a}
.ly-dw-check.on{background:#818cf8;border-color:#818cf8}.ly-dw-check svg{width:14px;height:14px;stroke-width:3}
.ly-dw-thumb{width:32px;height:32px;border-radius:7px;object-fit:cover;background:rgba(255,255,255,.06)}
.ly-dw-stock{flex:0 0 auto;padding:2px 7px;border-radius:6px;font-size:11px;font-weight:800}
.ly-dw-stock.low{background:rgba(251,191,36,.16);color:#fcd34d}.ly-dw-stock.out{background:rgba(248,113,113,.16);color:#fca5a5}
.ly-dw-stock.big{display:inline-block;margin:6px 0 4px;font-size:12px;padding:4px 10px}
.ly-dw-grow{background:#101222!important}
.ly-dw .ly-dw-gbtn{display:flex;align-items:center;gap:10px;grid-column:1/-1;position:sticky;left:0;width:max-content;padding:0 14px!important;border:0!important;background:transparent!important;color:#e6e9f7!important;font-weight:800!important;box-shadow:none!important}
.ly-dw-chev{display:inline-block;transition:transform .15s;font-size:18px;color:#9aa3c4}.ly-dw-chev.open{transform:rotate(90deg)}
.ly-dw-gcount{font-size:12px;color:#9aa3c4;font-weight:700}
.ly-dw-frow{position:sticky;bottom:0;z-index:3;background:#121426}
.ly-dw-fcell{border-top:1px solid rgba(255,255,255,.12);border-bottom:0;justify-content:flex-end}
.ly-dw-fcell.ly-dw-sticky2{justify-content:flex-start}
.ly-dw .ly-dw-sumbtn{width:100%;height:100%;padding:0 4px!important;border:0!important;background:transparent!important;color:#9aa3c4!important;font-size:12px!important;font-weight:700!important;text-align:inherit;box-shadow:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ly-dw .ly-dw-sumbtn:hover{color:#fff!important}
.ly-dw-fcell:not(.ly-dw-sticky2) .ly-dw-sumbtn{text-align:right}
.ly-dw .ly-dw-sumbtn:empty::after{content:'Summary';opacity:0}.ly-dw-fcell:hover .ly-dw-sumbtn:empty::after{opacity:.6}
.ly-dw .ly-dw-addcol{width:36px;height:36px;min-height:36px!important;padding:0!important;margin:auto;border-radius:10px!important;border:1px dashed rgba(255,255,255,.2)!important;background:transparent!important;color:#9aa3c4!important;display:grid;place-items:center;box-shadow:none!important}
.ly-dw-noresults{position:sticky;left:0;width:min(100%,520px);display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:26px 20px;color:#9aa3c4}
.ly-dw-noresults p{margin:0}.ly-dw-noresults{flex-direction:row;flex-wrap:wrap;align-items:center}
/* inline editor */
.ly-dw-editor{position:fixed;z-index:30020;display:flex;flex-direction:column}
.ly-dw-editor input{box-sizing:border-box;width:100%;min-height:44px;padding:0 12px;border-radius:8px;border:2px solid #818cf8;background:#11132a;color:#fff;font:inherit;font-size:15px;outline:none;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.ly-dw-editor-msg{font-size:12px;font-weight:700;color:#fca5a5;padding:4px 2px}.ly-dw-editor-msg:empty{display:none}
/* popovers */
.ly-dw-pop{position:fixed;z-index:30010;display:flex;flex-direction:column;gap:6px;width:min(300px,calc(100vw - 16px));max-height:min(70dvh,520px);overflow:auto;padding:10px;border-radius:16px;background:linear-gradient(160deg,rgba(28,30,50,.97),rgba(14,15,26,.97));border:1px solid rgba(199,210,254,.2);box-shadow:0 22px 50px rgba(0,0,0,.55);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);color:#eef0fa}
.ly-dw-pop.wide{width:min(560px,calc(100vw - 16px))}
.ly-dw-poph{padding:4px 6px 2px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8f97c8}
:is(.ly-dw-pop,.ly-dw-dialog,.ly-dw-panel) .ly-dw-input{box-sizing:border-box;width:100%;min-height:42px;padding:0 12px;border-radius:11px!important;border:1px solid rgba(255,255,255,.14)!important;background:rgba(255,255,255,.05)!important;color:#fff!important;font:inherit;font-size:14px;outline:none;box-shadow:none!important}
:is(.ly-dw-pop,.ly-dw-dialog,.ly-dw-panel) .ly-dw-input:focus{border-color:rgba(165,180,252,.7)!important;box-shadow:0 0 0 3px rgba(165,180,252,.15)!important}
:is(.ly-dw-pop,.ly-dw-dialog) .ly-dw-input.small{width:auto;min-width:100px}
.ly-dw-pop .ly-dw-menuitem{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 10px!important;border-radius:10px!important;border:0!important;background:transparent!important;color:#e6e9f7!important;font-size:14px!important;font-weight:600!important;text-align:left;box-shadow:none!important}
.ly-dw-pop .ly-dw-menuitem:hover,.ly-dw-pop .ly-dw-menuitem.on{background:rgba(255,255,255,.07)!important}
.ly-dw-pop .ly-dw-menuitem.danger{color:#fca5a5!important}
.ly-dw-menurow{display:flex;align-items:center;gap:8px;font-size:13px;color:#9aa3c4}.ly-dw-menurow>span{min-width:40px}.ly-dw-menurow.two{flex-wrap:wrap}.ly-dw-menurow.two .ly-dw-input{flex:1 1 90px;width:auto}
.ly-dw-typegrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.ly-dw-pop .ly-dw-typebtn{display:flex;align-items:center;gap:8px;min-height:38px;padding:0 10px!important;border-radius:10px!important;border:1px solid rgba(255,255,255,.08)!important;background:rgba(255,255,255,.03)!important;color:#dde1f2!important;font-size:13px!important;font-weight:600!important;box-shadow:none!important}
.ly-dw-pop .ly-dw-typebtn.on{border-color:rgba(165,180,252,.55)!important;background:rgba(165,180,252,.12)!important;color:#fff!important}
.ly-dw-optlist{display:flex;flex-direction:column;gap:2px;max-height:280px;overflow:auto}
.ly-dw-pop .ly-dw-opt{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px;padding:0 8px!important;border-radius:9px!important;border:0!important;background:transparent!important;color:#e6e9f7!important;box-shadow:none!important;font-size:13px!important}
.ly-dw-pop .ly-dw-opt:hover,.ly-dw-pop .ly-dw-opt.on{background:rgba(255,255,255,.07)!important}
.ly-dw-pop .ly-dw-opt.clear{color:#9aa3c4!important}
.ly-dw-rules{display:flex;flex-direction:column;gap:6px}
.ly-dw-rule{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.ly-dw-rule .ly-dw-input{flex:1 1 120px;width:auto}
.ly-dw-rulelabel{font-size:12px;color:#9aa3c4;min-width:32px}
.ly-dw-proplist{display:flex;flex-direction:column;gap:2px}
.ly-dw-proprow{display:flex;align-items:center;gap:6px;min-height:40px;padding:0 4px;border-radius:9px}.ly-dw-proprow:hover{background:rgba(255,255,255,.04)}
.ly-dw-proprow.off .ly-dw-propname{opacity:.45}
.ly-dw-propname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.ly-dw-proprow .ly-dw-icon-btn{width:32px;height:32px;min-height:32px!important}
.ly-dw-emojigrid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}
.ly-dw-pop .ly-dw-emoji{height:40px;min-height:40px!important;padding:0!important;border-radius:9px!important;border:0!important;background:transparent!important;font-size:22px!important;box-shadow:none!important}
.ly-dw-pop .ly-dw-emoji:hover{background:rgba(255,255,255,.08)!important}
/* dialogs */
.ly-dw-dialog{border:0;padding:0;background:transparent;width:min(520px,calc(100vw - 24px));max-height:92dvh;overflow:visible;color:#eef0fa}
.ly-dw-dialog::backdrop{background:rgba(4,5,12,.62);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.ly-dw-dialog-card{box-sizing:border-box;max-height:92dvh;overflow:auto;padding:22px;border-radius:22px;background:radial-gradient(120% 90% at 0% 0%,rgba(165,180,252,.14),transparent 60%),linear-gradient(160deg,rgba(30,32,54,.95),rgba(14,15,26,.97));border:1px solid rgba(199,210,254,.2);box-shadow:0 30px 70px rgba(0,0,0,.55)}
.ly-dw-dialog-card.wide{width:min(820px,calc(100vw - 24px))}
.ly-dw-dialog:has(.wide){width:min(820px,calc(100vw - 24px))}
.ly-dw-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px}
.ly-dw-dialog-head h2{margin:0;font-size:20px;font-weight:800;color:#fff}
.ly-dw-dialog-body{display:flex;flex-direction:column;gap:10px}
.ly-dw-label{margin-top:8px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8f97c8}
.ly-dw-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:10px}.ly-dw-actions>*{flex:0 1 auto}
.ly-dw-optedit{display:flex;flex-direction:column;gap:6px}
.ly-dw-optrow{display:flex;gap:6px;align-items:center}.ly-dw-optrow .ly-dw-input{flex:1}.ly-dw-optrow .ly-dw-chip{width:90px;flex:0 0 90px}
.ly-dw-maps{display:flex;flex-direction:column;gap:8px}
.ly-dw-maprow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:center;padding:10px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07)}
.ly-dw-maprow strong{display:block;font-size:14px;color:#fff;overflow-wrap:anywhere}.ly-dw-maprow small{display:block;font-size:12px;color:#9aa3c4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ly-dw-trashrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07)}
.ly-dw-trashrow span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* record panel */
.ly-dw-panel{position:fixed;z-index:30000;top:12px;right:12px;bottom:12px;width:min(460px,calc(100vw - 24px));box-sizing:border-box;overflow:auto;padding:18px 20px 24px;border-radius:22px;background:radial-gradient(120% 60% at 100% 0%,rgba(165,180,252,.12),transparent 60%),linear-gradient(160deg,rgba(26,28,46,.97),rgba(13,14,24,.98));border:1px solid rgba(199,210,254,.2);box-shadow:-20px 0 60px rgba(0,0,0,.5);color:#eef0fa;animation:lyDwIn .18s ease-out}
@keyframes lyDwIn{from{transform:translateX(16px);opacity:0}to{transform:none;opacity:1}}
.ly-dw-panel-top{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.ly-dw-panel-db{flex:1;min-width:0;font-size:13px;font-weight:700;color:#9aa3c4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ly-dw-panel .ly-dw-panel-title{width:100%;box-sizing:border-box;resize:none;overflow:hidden;padding:6px 8px;margin:0 -8px;border-radius:10px;border:1px solid transparent!important;background:transparent!important;color:#fff!important;font:inherit;font-size:24px;font-weight:900;line-height:1.25;box-shadow:none!important}
.ly-dw-panel .ly-dw-panel-title:focus{border-color:rgba(165,180,252,.5)!important;outline:none;background:rgba(255,255,255,.03)!important}
.ly-dw-props{display:flex;flex-direction:column;gap:4px;margin:14px 0}
.ly-dw-prop{display:grid;grid-template-columns:minmax(110px,38%) minmax(0,1fr);align-items:center;gap:10px;min-height:44px}
.ly-dw-prop>label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#9aa3c4;min-width:0}
.ly-dw-prop>label span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ly-dw-panel .ly-dw-field{box-sizing:border-box;width:100%;min-height:42px;padding:0 10px;border-radius:10px!important;border:1px solid transparent!important;background:transparent!important;color:#eef0fa!important;font:inherit;font-size:14px;box-shadow:none!important;text-align:left}
.ly-dw-panel .ly-dw-field:hover{background:rgba(255,255,255,.04)!important}
.ly-dw-panel .ly-dw-field:focus{border-color:rgba(165,180,252,.6)!important;background:rgba(255,255,255,.04)!important;outline:none}
.ly-dw-panel .ly-dw-field[aria-invalid="true"]{border-color:rgba(248,113,113,.7)!important}
.ly-dw-panel .ly-dw-fieldbtn{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:6px 10px!important}
.ly-dw-ph{color:#6b7299}
.ly-dw-fieldwrap{display:flex;flex-direction:column}
.ly-dw-fieldmsg{font-size:12px;color:#fca5a5;padding:2px 10px}.ly-dw-fieldmsg:empty{display:none}
.ly-dw-checkbox{width:22px;height:22px;accent-color:#818cf8;margin-left:10px}
.ly-dw-imgfield{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ly-dw-imgprev{width:100%;max-height:220px;object-fit:contain;border-radius:12px;background:rgba(0,0,0,.3)}
.ly-dw-panel .ly-dw-notes{box-sizing:border-box;width:100%;min-height:150px;margin-top:6px;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.12)!important;background:rgba(255,255,255,.04)!important;color:#eef0fa!important;font:inherit;font-size:14px;line-height:1.55;resize:vertical;box-shadow:none!important}
.ly-dw-panel .ly-dw-notes:focus{border-color:rgba(165,180,252,.6)!important;outline:none}
.ly-dw-meta{margin:12px 0 0;font-size:12px;color:#6f8c84}
/* toast */
.ly-dw-toast{position:fixed;z-index:30030;left:50%;bottom:24px;transform:translate(-50%,20px);display:flex;align-items:center;gap:14px;max-width:calc(100vw - 32px);padding:12px 14px 12px 18px;border-radius:14px;background:rgba(18,19,32,.96);border:1px solid rgba(199,210,254,.25);box-shadow:0 18px 40px rgba(0,0,0,.5);color:#eef0fa;font-size:14px;font-weight:600;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.ly-dw-toast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.ly-dw-toast .ly-dw-toast-undo{min-height:34px;padding:0 12px!important;border-radius:9px!important;border:1px solid rgba(165,180,252,.45)!important;background:rgba(165,180,252,.12)!important;color:#c7d2fe!important;font-weight:800!important;box-shadow:none!important}
/* mobile */
@media(max-width:760px){
 .ly-dw-head{padding:16px;border-radius:18px}.ly-dw-head-r{width:100%}.ly-dw-head-r .ly-dw-primary{flex:1}
 .ly-dw-art{width:46px;height:46px}.ly-dw-art img{width:32px;height:32px}
 .ly-dw-gridwrap{max-height:calc(100dvh - 260px);border-radius:14px}
 .ly-dw-panel{inset:0;width:auto;border-radius:0;padding:max(14px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom));animation:none}
 .ly-dw-prop{grid-template-columns:minmax(96px,40%) minmax(0,1fr)}
 .ly-dw-toolbar .ly-dw-tool span{display:none}.ly-dw-toolbar .ly-dw-tool{padding:0 12px!important}.ly-dw-toolbar .ly-dw-tool.on span,.ly-dw-toolbar .ly-dw-tool.warn span{display:inline}
 .ly-dw-search{flex-basis:100%}
 .ly-dw-maprow{grid-template-columns:1fr}
 .ly-dw-dbgrid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.ly-dw *,.ly-dw-panel,.ly-dw-toast{transition:none!important;animation:none!important}}
html[data-theme="light"] .ly-dw{--dw-text:#1b1f45;--dw-muted:#5c6390}
html[data-theme="light"] .ly-dw-head{background:radial-gradient(120% 120% at 0% 0%,rgba(129,140,248,.18),transparent 55%),linear-gradient(145deg,#ffffff,#eef0fb);border-color:rgba(40,50,120,.16)}
html[data-theme="light"] .ly-dw-title h1,html[data-theme="light"] .ly-dw .ly-dw-dbname{color:#141838!important}

.ly-dw-bulk[hidden]{display:none!important}
.ly-dw-pop [hidden],.ly-dw-dialog [hidden]{display:none!important}
@media(max-width:760px){.ly-dw-toolbar .ly-dw-tool:not(:has(svg)) span{display:inline}}

/* Template tiles: each in its own colour, with its animated icon */
:is(.ly-dw,.ly-dw-dialog) .ly-dw-tcard{--tc:#a5b4fc;gap:8px;min-height:150px;background:radial-gradient(120% 90% at 0% 0%,color-mix(in srgb,var(--tc) 16%,transparent),transparent 60%),linear-gradient(160deg,rgba(30,32,50,.85),rgba(16,17,28,.9))!important;border:1px solid color-mix(in srgb,var(--tc) 26%,transparent)!important}
:is(.ly-dw,.ly-dw-dialog) .ly-dw-tcard:hover{background:radial-gradient(120% 90% at 0% 0%,color-mix(in srgb,var(--tc) 26%,transparent),transparent 65%),linear-gradient(160deg,rgba(34,36,56,.9),rgba(18,19,30,.92))!important;border-color:color-mix(in srgb,var(--tc) 60%,transparent)!important}
.ly-dw-tcard strong{margin-top:4px}
.ly-dw-tgrid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
/* Database cards: delete button in the corner */
.ly-dw-dbwrap{position:relative;display:flex}
.ly-dw-dbwrap>.ly-dw-dbcard{flex:1}
.ly-dw .ly-dw-dbdel{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:36px;height:36px;min-height:36px!important;padding:0!important;border-radius:11px!important;border:1px solid rgba(248,113,113,.3)!important;background:rgba(239,68,68,.08)!important;color:#fca5a5!important;box-shadow:none!important;opacity:.7;transition:opacity .15s,background .15s}
.ly-dw .ly-dw-dbdel:hover,.ly-dw .ly-dw-dbdel:focus-visible{opacity:1;background:rgba(239,68,68,.18)!important}
.ly-dw .ly-dw-dbcard .ly-art{width:46px;height:46px}.ly-dw .ly-dw-dbcard .ly-art svg{width:32px;height:32px}
html[data-theme="light"] :is(.ly-dw,.ly-dw-dialog) .ly-dw-tcard{background:radial-gradient(120% 90% at 0% 0%,color-mix(in srgb,var(--tc) 18%,transparent),transparent 60%),#ffffff!important;color:#1b1f45!important}
html[data-theme="light"] .ly-dw-tcard strong{color:#141838}

/* Template tiles: clearer text */
:is(.ly-dw,.ly-dw-dialog) .ly-dw-tcard strong{font-size:16px!important;font-weight:800;color:#ffffff!important;letter-spacing:.005em}
:is(.ly-dw,.ly-dw-dialog) .ly-dw-tcard small{font-size:13px!important;line-height:1.45;font-weight:600;color:#c9cfe6!important}
html[data-theme="light"] :is(.ly-dw,.ly-dw-dialog) .ly-dw-tcard strong{color:#141838!important}
html[data-theme="light"] :is(.ly-dw,.ly-dw-dialog) .ly-dw-tcard small{color:#3f4766!important}

/* Filter & sort panel */
.ly-dw-sep{height:1px;margin:8px 0;background:rgba(255,255,255,.08)}
html[data-theme="light"] .ly-dw-sep{background:rgba(22,30,50,.1)}

/* Row "Edit" button (opens the record) */
.ly-dw .ly-dw-open{width:auto!important;padding:0 11px!important;font-size:12px!important;font-weight:800!important;letter-spacing:.02em}

/* Delete buttons for properties (record panel) and options (dropdown) */
.ly-dw-prop{grid-template-columns:minmax(110px,38%) minmax(0,1fr) 34px!important}
.ly-dw-panel .ly-dw-propdel,.ly-dw-pop .ly-dw-optdel{display:grid;place-items:center;width:32px;height:32px;min-height:32px!important;padding:0!important;border-radius:9px!important;border:0!important;background:transparent!important;color:rgba(252,165,165,.6)!important;box-shadow:none!important;cursor:pointer;opacity:.55;transition:opacity .12s,background .12s}
.ly-dw-panel .ly-dw-propdel svg,.ly-dw-pop .ly-dw-optdel svg{width:16px;height:16px}
.ly-dw-panel .ly-dw-prop:hover .ly-dw-propdel,.ly-dw-pop .ly-dw-optrow2:hover .ly-dw-optdel,.ly-dw-panel .ly-dw-propdel:focus-visible,.ly-dw-pop .ly-dw-optdel:focus-visible{opacity:1}
.ly-dw-panel .ly-dw-propdel:hover,.ly-dw-pop .ly-dw-optdel:hover{background:rgba(239,68,68,.14)!important;color:#fca5a5!important}
.ly-dw-optrow2{display:flex;align-items:center;gap:4px}.ly-dw-optrow2>.ly-dw-opt{flex:1;min-width:0}
@media(hover:none){.ly-dw-panel .ly-dw-propdel,.ly-dw-pop .ly-dw-optdel{opacity:.85}}

/* ===== Phones: card list, bottom sheets, roomier controls ===== */
.ly-dw-dateproxy{position:fixed;opacity:0;pointer-events:none;border:0;padding:0;margin:0;z-index:-1}
.ly-dw-editor-label{display:none}
.ly-dw-editor-row{display:flex;gap:6px;align-items:stretch}
.ly-dw-editor-row input{flex:1;min-width:0}
.ly-dw-editor .ly-dw-editor-done{display:none}
.ly-dw-pop .ly-dw-propopen{display:flex;align-items:center;gap:6px;flex:1;min-width:0;min-height:36px;padding:0 6px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#e6e9f7!important;font-size:14px!important;font-weight:600!important;text-align:left;box-shadow:none!important}
.ly-dw-pop .ly-dw-propopen:hover{background:rgba(255,255,255,.06)!important}
.ly-dw-pop .ly-dw-propopen span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ly-dw-pophint{margin:0 6px 4px;font-size:12px;line-height:1.45;color:#9aa3c4}
.ly-dw-pop .ly-dw-totrow .ly-dw-propname{flex:1}
.ly-dw-totval{font-size:12px;font-weight:700;color:#a5b4fc;white-space:nowrap}
@keyframes lyDwUp{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}

@media(max-width:760px){
 /* header */
 .ly-dw-head{gap:10px;padding:12px;border-radius:18px;margin-bottom:12px}
 .ly-dw-head-l{flex:1 1 100%}
 .ly-dw-title.small{gap:8px}
 .ly-dw-title.small .ly-dw-icon-btn{width:40px;height:40px}
 .ly-dw .ly-dw-dbicon.big{width:42px;height:42px;min-height:42px!important;font-size:22px!important;border-radius:12px!important}
 .ly-dw .ly-dw-dbname{height:42px;padding:0 6px;font-size:20px}
 .ly-dw-head-r{gap:8px}
 .ly-dw-head-r .ly-dw-primary{min-height:42px}
 .ly-dw-title h1{font-size:24px}
 /* tabs + toolbar */
 .ly-dw-tabs{padding-bottom:8px}
 .ly-dw .ly-dw-tab{min-height:38px;padding:0 12px!important;font-size:13.5px!important}
 .ly-dw-toolbar{flex-wrap:nowrap;gap:6px}
 .ly-dw-search{flex:1 1 auto;min-width:0;min-height:42px}
 .ly-dw .ly-dw-tool{min-height:42px;padding:0 11px!important;flex:0 0 auto}
 .ly-dw-toolbar .ly-dw-tool span{display:none!important}
 .ly-dw-toolbar .ly-dw-tool:not(:has(svg)) span{display:inline!important}
 .ly-dw-toolbar .ly-dw-tool:not(:has(svg)){font-size:12px!important;padding:0 10px!important}
 /* the table becomes a list of cards */
 .ly-dw-gridwrap.ly-dw-cardmode{display:block;max-height:none;min-height:0;overflow:visible;border:0;border-radius:0;background:transparent}
 .ly-dw-cards{display:flex;flex-direction:column;gap:10px}
 .ly-dw-cardbar{display:flex;align-items:center;gap:6px}
 .ly-dw-selall{display:flex;align-items:center;gap:10px;margin-right:auto;padding:0 4px;font-size:13px;font-weight:700;color:#aab1d4;min-height:40px}
 .ly-dw-selall input,.ly-dw-card-top input{width:20px;height:20px;accent-color:#818cf8;flex:0 0 auto;margin:0}
 .ly-dw-cardbar .ly-dw-ghost.small{min-height:36px;padding:0 11px!important;font-size:12.5px!important}
 .ly-dw-cardbar .ly-dw-ghost.small svg{width:15px;height:15px}
 .ly-dw-sumrow{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-top:-2px}.ly-dw-sumrow::-webkit-scrollbar{display:none}
 .ly-dw .ly-dw-sumchip{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;min-height:34px;padding:0 12px!important;border-radius:99px!important;border:1px solid rgba(165,180,252,.25)!important;background:rgba(165,180,252,.08)!important;color:#aab1d4!important;font-size:12px!important;font-weight:700!important;box-shadow:none!important}
 .ly-dw .ly-dw-sumchip strong{color:#fff;font-weight:800}
 .ly-dw-cardlist{display:flex;flex-direction:column;gap:10px}
 .ly-dw-card{border-radius:16px;border:1px solid rgba(199,210,254,.14);background:linear-gradient(160deg,rgba(26,28,46,.92),rgba(14,15,26,.94));overflow:hidden;transition:border-color .15s,background .15s}
 .ly-dw-card.sel{border-color:rgba(165,180,252,.55);background:linear-gradient(160deg,rgba(40,44,82,.95),rgba(20,22,42,.95))}
 .ly-dw-card-top{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 14px}
 .ly-dw .ly-dw-card-title{display:flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:36px;padding:0!important;border:0!important;background:transparent!important;color:#fff!important;font-size:16px!important;font-weight:800!important;text-align:left;box-shadow:none!important}
 .ly-dw-card-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .ly-dw .ly-dw-card .ly-dw-open{position:static;opacity:1;height:34px;min-height:34px!important;flex:0 0 auto;font-size:12.5px!important}
 .ly-dw-card-props{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:rgba(255,255,255,.06);border-top:1px solid rgba(255,255,255,.06)}
 .ly-dw-kv{display:flex;flex-direction:column;gap:4px;min-width:0;min-height:58px;padding:9px 14px;background:rgba(14,15,26,.96);cursor:pointer;-webkit-tap-highlight-color:transparent}
 .ly-dw-card.sel .ly-dw-kv{background:rgba(24,26,50,.97)}
 .ly-dw-kv:active{background:rgba(40,43,70,.97)}
 .ly-dw-kv.wide{grid-column:1/-1}
 .ly-dw-kv:focus-visible{outline:2px solid var(--dw);outline-offset:-2px}
 .ly-dw-k{display:flex;align-items:center;gap:4px;min-width:0;font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#8b93c9}
 .ly-dw-k span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .ly-dw-k .ly-dw-tico-s{min-width:14px;font-size:11px}
 .ly-dw-card .ly-dw-cell.ly-dw-v{padding:0;border:0;background:transparent;font-size:14.5px;font-weight:600;color:#eef0fa;min-height:24px;justify-content:flex-start;white-space:nowrap;overflow:hidden}
 .ly-dw-card .ly-dw-v .ly-dw-chips{flex-wrap:wrap;overflow:visible}
 .ly-dw-card .ly-dw-v .ly-dw-ph{font-size:13px;font-weight:600;color:#5d648c}
 .ly-dw-kvempty .ly-dw-ph::before{content:"+ "}
 .ly-dw-card .ly-dw-thumb{width:44px;height:44px;border-radius:9px}
 .ly-dw .ly-dw-cgroup{display:flex;align-items:center;gap:10px;min-height:42px;margin-top:6px;padding:0 6px!important;border:0!important;background:transparent!important;color:#e6e9f7!important;font-weight:800!important;box-shadow:none!important;text-align:left}
 .ly-dw .ly-dw-more{align-self:center}
 .ly-dw-cards .ly-dw-noresults{position:static;width:auto;padding:22px 16px;border-radius:16px;border:1px dashed rgba(255,255,255,.14)}
 /* bulk actions float at the bottom of the screen */
 .ly-dw-bulk{position:fixed;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));z-index:40;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px;border-radius:18px;background:rgba(24,26,48,.97);border-color:rgba(165,180,252,.4);box-shadow:0 14px 40px rgba(0,0,0,.55);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);animation:lyDwUp .16s ease-out}
 .ly-dw-bulk strong{grid-column:1/3;align-self:center;margin:0;padding:0 4px;font-size:14px}
 .ly-dw-bulk>button{min-height:42px!important;padding:0 6px!important;font-size:13px!important;justify-content:center;white-space:nowrap}
 .ly-dw .ly-dw-bulk>button:last-child{grid-column:3;grid-row:1;min-height:36px!important}
 .ly-dw-db:has(.ly-dw-bulk:not([hidden])) .ly-dw-cards{padding-bottom:120px}
 /* every pop-up menu becomes a bottom sheet */
 .ly-dw-pop{left:8px!important;right:8px!important;top:auto!important;bottom:calc(max(8px,env(safe-area-inset-bottom)) + var(--ly-kb,0px))!important;width:auto!important;max-height:min(calc(82dvh - var(--ly-kb,0px)),640px);padding:10px 12px 14px;gap:6px;border-radius:22px;box-shadow:0 0 0 100vmax rgba(4,5,12,.55),0 -10px 40px rgba(0,0,0,.5);animation:lyDwUp .18s ease-out;overscroll-behavior:contain}
 .ly-dw-pop.wide{width:auto!important}
 .ly-dw-pop::before{content:"";flex:0 0 auto;align-self:center;width:40px;height:4px;margin:0 0 6px;border-radius:9px;background:rgba(255,255,255,.2)}
 .ly-dw-pop .ly-dw-menuitem{min-height:46px;font-size:15px!important}
 .ly-dw-pop .ly-dw-opt{min-height:44px;font-size:14px!important}
 .ly-dw-pop .ly-dw-optdel{width:40px;height:40px;opacity:.85}
 .ly-dw-optlist{max-height:none}
 .ly-dw-pop .ly-dw-typebtn{min-height:44px}
 :is(.ly-dw-pop,.ly-dw-dialog,.ly-dw-panel) .ly-dw-input{min-height:44px;font-size:16px}
 .ly-dw-proprow{min-height:46px}
 .ly-dw-proprow .ly-dw-icon-btn{width:38px;height:38px;min-height:38px!important}
 .ly-dw-emojigrid{grid-template-columns:repeat(7,1fr)}
 /* quick editor becomes a small sheet at the top */
 .ly-dw-editor.sheet{left:10px!important;right:10px!important;top:max(10px,env(safe-area-inset-top))!important;min-width:0!important;min-height:0!important;gap:8px;padding:12px;border-radius:18px;background:linear-gradient(160deg,rgba(30,32,54,.98),rgba(14,15,26,.98));border:1px solid rgba(199,210,254,.22);box-shadow:0 0 0 100vmax rgba(4,5,12,.55),0 20px 50px rgba(0,0,0,.5);animation:lyDwUp .15s ease-out}
 .ly-dw-editor.sheet .ly-dw-editor-label{display:block;padding:0 2px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8f97c8}
 .ly-dw-editor.sheet input{font-size:16px;min-height:46px;box-shadow:none;border-radius:12px}
 .ly-dw-editor.sheet .ly-dw-editor-done{display:inline-flex;min-height:46px}
 /* dialogs */
 .ly-dw-dialog,.ly-dw-dialog:has(.wide){width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 .ly-dw-dialog-card,.ly-dw-dialog-card.wide{width:auto;max-height:calc(100dvh - 16px);padding:16px;border-radius:20px}
 .ly-dw-dialog-head{margin-bottom:12px}
 .ly-dw-dialog-head h2{font-size:19px}
 .ly-dw-actions>*{flex:1 1 0}
 .ly-dw-tgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 :is(.ly-dw,.ly-dw-dialog) .ly-dw-tcard{min-height:0;padding:12px!important;gap:6px;border-radius:14px!important}
 :is(.ly-dw,.ly-dw-dialog) .ly-dw-tcard strong{font-size:14.5px!important;margin-top:2px;line-height:1.25}
 :is(.ly-dw,.ly-dw-dialog) .ly-dw-tcard small{font-size:12px!important;line-height:1.4}
 :is(.ly-dw,.ly-dw-dialog) .ly-dw-tcard .ly-art{width:40px;height:40px}
 :is(.ly-dw,.ly-dw-dialog) .ly-dw-tcard .ly-art svg{width:28px;height:28px}
 .ly-dw-maprow{padding:10px;gap:8px}
 .ly-dw-trashrow{flex-wrap:wrap}
 /* record panel: full screen, solid, fields under their labels */
 .ly-dw-panel{background:linear-gradient(170deg,#1b1d33,#0e0f1a);padding:max(10px,env(safe-area-inset-top)) 14px max(24px,env(safe-area-inset-bottom));overscroll-behavior:contain}
 .ly-dw-panel .ly-dw-panel-title{font-size:22px}
 .ly-dw-prop{grid-template-columns:minmax(0,1fr) 40px!important;grid-template-areas:"lab del" "field field";gap:2px 6px;min-height:0;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06)}
 .ly-dw-prop>label{grid-area:lab;font-size:12px;letter-spacing:.02em}
 .ly-dw-prop>:nth-child(2){grid-area:field;min-width:0}
 .ly-dw-panel .ly-dw-propdel{grid-area:del;justify-self:end;width:36px;height:36px;opacity:.75}
 .ly-dw-panel .ly-dw-field{min-height:44px;font-size:16px;padding:0 10px;background:rgba(255,255,255,.04)!important;border-color:rgba(255,255,255,.08)!important}
 .ly-dw-panel .ly-dw-fieldbtn{min-width:0;overflow:hidden}
 .ly-dw-checkbox{margin-left:4px}
 .ly-dw-panel .ly-dw-notes{font-size:16px}
 body.ly-dw-panel-open{overflow:hidden}
 .ly-dw-toast{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 64px)}
}
html[data-theme="light"] .ly-dw-card{background:#fff;border-color:rgba(40,50,120,.14)}
html[data-theme="light"] .ly-dw-kv{background:#f6f7fd}
html[data-theme="light"] .ly-dw-card-props{background:rgba(40,50,120,.08)}
html[data-theme="light"] .ly-dw .ly-dw-card-title{color:#141838!important}
html[data-theme="light"] .ly-dw-card .ly-dw-cell.ly-dw-v{color:#1b1f45}
.ly-dw [hidden]{display:none!important}

/* ===== 15 Nov: calmer, roomier database view ===== */
/* Header: no heavy box, bigger title, the database's own animated icon */
#inventoryPage .ly-dw-db>.ly-dw-head{background:transparent!important;border:0!important;box-shadow:none!important;padding:6px 2px 18px!important}
#inventoryPage .ly-dw-db .ly-dw-dbname{font-size:28px!important;font-weight:900!important;letter-spacing:-.4px}
#inventoryPage .ly-dw-dbicon.big.has-art{width:auto!important;height:auto!important;min-height:0!important;padding:0!important;background:transparent!important;border:0!important}
#inventoryPage .ly-dw-dbicon.big.has-art .ly-art{width:52px;height:52px}
#inventoryPage .ly-dw-db .ly-dw-title{gap:14px!important}
/* Views: simple underline tabs */
#inventoryPage .ly-dw-db .ly-dw-tabs{gap:2px;padding:0;margin:0 0 16px;border-bottom:1px solid rgba(255,255,255,.07)}
#inventoryPage .ly-dw-db .ly-dw-tab{border-radius:0!important;border:0!important;border-bottom:2px solid transparent!important;background:transparent!important;min-height:42px;padding:0 14px!important;margin-bottom:-1px}
#inventoryPage .ly-dw-db .ly-dw-tab.on{border-bottom-color:var(--dw,#a5b4fc)!important;background:transparent!important}
/* Toolbar: one clean row, quieter buttons */
#inventoryPage .ly-dw-db .ly-dw-toolbar{gap:10px;margin-bottom:16px}
#inventoryPage .ly-dw-db .ly-dw-search{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.08);border-radius:14px}
#inventoryPage .ly-dw-db .ly-dw-tool{background:transparent!important;border-color:rgba(255,255,255,.08)!important;border-radius:14px!important;color:#c3c9e2!important}
#inventoryPage .ly-dw-db .ly-dw-tool:hover{background:rgba(255,255,255,.05)!important}
/* Table: more air, no vertical lines, soft header */
#inventoryPage .ly-dw-db .ly-dw-gridwrap{background:rgba(255,255,255,.015);border-color:rgba(255,255,255,.07);border-radius:18px}
#inventoryPage .ly-dw-db .ly-dw-cell{border-right:0!important;border-bottom-color:rgba(255,255,255,.045)!important;padding:0 16px!important;font-size:14.5px}
#inventoryPage .ly-dw-db .ly-dw-hcell{border-bottom-color:rgba(255,255,255,.08)!important}
#inventoryPage .ly-dw-db .ly-dw-hrow,#inventoryPage .ly-dw-db .ly-dw-hrow>*{background:rgba(255,255,255,.02)!important;color:#8f97b8!important;font-size:11.5px!important;letter-spacing:.06em}
#inventoryPage .ly-dw-db :is(.ly-dw-sumrow,.ly-dw-totrow),#inventoryPage .ly-dw-db :is(.ly-dw-sumrow,.ly-dw-totrow)>*{background:transparent!important;color:#7d86a8!important;border-right:0!important}
#inventoryPage .ly-dw-db .ly-dw-row:hover>.ly-dw-cell{background:rgba(255,255,255,.025)}
/* Empty table: centred, friendly */
#inventoryPage .ly-dw-db .ly-dw-empty-card,#inventoryPage .ly-dw-db .ly-dw-noresults{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:56px 24px!important;text-align:center}
#inventoryPage .ly-dw-db :is(.ly-dw-empty-card,.ly-dw-noresults)::before{content:'';width:56px;height:56px;border-radius:18px;background:rgba(165,180,252,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='3'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E") center/26px no-repeat;border:1px solid rgba(165,180,252,.25)}
@media(max-width:700px){#inventoryPage .ly-dw-db .ly-dw-dbname{font-size:22px!important}#inventoryPage .ly-dw-dbicon.big.has-art .ly-art{width:44px;height:44px}}

/* ---------- Inside a list: buttons, boxes and pop-ups take the list's own colour (set as --dw-list) ---------- */
html body.ly-dw-in-db:not(#_):not(#__) :is(.ly-dw-primary,.lyt-btn.primary){min-height:44px;padding:0 20px!important;border-radius:13px!important;font-size:15px!important;font-weight:850!important;background:var(--dw-list,#a5b4fc)!important;border:1.5px solid var(--dw-list,#a5b4fc)!important;color:#141414!important;-webkit-text-fill-color:#141414!important;box-shadow:none!important;transition:scale .15s,filter .15s}
html body.ly-dw-in-db:not(#_):not(#__) :is(.ly-dw-primary,.lyt-btn.primary) svg{stroke:#141414!important;color:#141414!important}
html body.ly-dw-in-db:not(#_):not(#__) :is(.ly-dw-primary,.lyt-btn.primary):is(:hover,:focus-visible){scale:1.05;filter:brightness(1.1)}
html body.ly-dw-in-db:not(#_):not(#__):not(#___):not(#____) :is(.ly-dw-input,.lyt-quick-in,.lyt-choice,.ly-dw-db input):is(:focus,:focus-visible){border-color:var(--dw-list,#a5b4fc)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--dw-list,#a5b4fc) 30%,transparent)!important;outline:0!important}
html body.ly-dw-in-db:not(#_):not(#__) .lyt-choice:hover{border-color:var(--dw-list,#a5b4fc)!important}
html body.ly-dw-in-db .ly-dw-optlist{scrollbar-color:var(--dw-list,#a5b4fc) transparent}
/* Back to all lists: a clear boxed button */
html body #lyDataWork:not(#_) .ly-dw-backlink{display:inline-flex!important;align-items:center;gap:8px;min-height:42px;margin-bottom:14px;padding:0 16px 0 12px!important;border-radius:12px!important;background:rgba(255,255,255,.06)!important;border:1.5px solid rgba(255,255,255,.3)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:15px!important;font-weight:800!important;transition:scale .15s,border-color .15s,background .15s}
html body #lyDataWork:not(#_) .ly-dw-backlink svg{width:18px!important;height:18px!important;stroke:#fff!important;stroke-width:2.6!important}
html body #lyDataWork:not(#_) .ly-dw-backlink:is(:hover,:focus-visible){scale:1.05;border-color:#fff!important;background:rgba(255,255,255,.12)!important}
html[data-theme="light"] body #lyDataWork:not(#_) .ly-dw-backlink{background:#fff!important;border-color:rgba(0,0,0,.25)!important;color:#14151b!important;-webkit-text-fill-color:#14151b!important}
html[data-theme="light"] body #lyDataWork:not(#_) .ly-dw-backlink svg{stroke:#14151b!important}
