/* Rebalanced account workspace: clear hierarchy and controls, no giant empty columns. */
#portalView{--portal-edge:#35505a;--portal-highlight:#e9c184}#portalHero{border-radius:20px;min-height:175px;padding:29px 32px;background:radial-gradient(ellipse at 95% 2%,#b57c3333,transparent 43%),linear-gradient(124deg,#17242c,#101922 70%);box-shadow:inset 0 1px #ffe8b81a,0 20px 55px -30px #000e}#portalHero .station-strip{gap:10px}
.dk-portal-overview{margin:15px 0 18px;gap:11px}.dk-portal-overview span{position:relative;padding:18px 20px 19px 54px;border-radius:13px;min-height:68px;background:linear-gradient(145deg,#182933,#101e27);border-color:#37505d;font-weight:650;letter-spacing:.01em;transition:transform .3s var(--v4-ease),border-color .3s,box-shadow .3s}.dk-portal-overview span:hover{transform:translateY(-3px);border-color:#a78250;box-shadow:0 14px 36px -22px #000c}.dk-portal-overview span b{position:absolute;left:14px;top:16px;color:#ddad63;letter-spacing:.08em;font-size:15px}
#portalContent>.portal-tabs{margin:0 0 17px!important;position:relative;z-index:2;display:flex;gap:10px;padding:9px!important;border-radius:13px;background:#0a141b;border:1px solid #37434b;box-shadow:0 6px 25px #0003}#portalContent>.portal-tabs button{font-weight:680;padding:11px 19px;border-radius:9px}#portalContent>.portal-tabs button.active{background:linear-gradient(135deg,#a47c45,#6d502d);color:#fff7e9;border-color:#cba46c;box-shadow:0 9px 20px -9px #c9a25b77}
.portal-section>.portal-two-col{gap:16px}.portal-section .card{border-radius:16px;min-height:0;padding:19px 20px 22px;border-color:#344d58;background:linear-gradient(145deg,#12222c,#101d26)}
.portal-section .section-title{margin-bottom:15px}.portal-section .section-title h2{font-size:clamp(18px,1.7vw,23px);letter-spacing:-.015em}.portal-section .section-title .sub{margin-top:6px}
.portal-section .inline-form{gap:10px}.portal-section .inline-form input:not([type=checkbox]),.portal-section .inline-form select{min-height:43px}.portal-section .inline-form button{min-height:43px}.portal-section .compact-feed{display:grid;gap:9px}.portal-section .dk-member{border:1px solid #2a4551;border-radius:11px;padding:11px 13px;background:#0c1b25;box-shadow:inset 0 1px #fff1;transition:background-color .24s,transform .24s,border-color .24s}.portal-section .dk-member:hover{transform:translateX(3px);background:#152935;border-color:#8f754d}
#portal-lists .portal-two-col .card{min-height:245px}#portal-lists #listEditor{background:linear-gradient(130deg,#152833,#101e28);box-shadow:0 16px 50px -30px #000;scroll-margin-top:20px}#portal-lists #editorItems .feed-row{padding:13px 5px}#portal-lists #editorItems input[type=number]{min-height:37px}
#portal-storage .container-card{background:linear-gradient(145deg,#14262f,#0e1b25);box-shadow:inset 0 1px #fff1}.portal-auth-grid>.card{background:radial-gradient(circle at 100% 0,#bd8c3c20,transparent 42%),linear-gradient(140deg,#162630,#0d1b25);border-radius:17px;padding:28px}
@media(min-width:1280px){#portalContent .portal-two-col{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}}@media(max-width:800px){#portalHero{padding:20px;min-height:0}.dk-portal-overview{grid-template-columns:1fr}.dk-portal-overview span{padding:12px 12px 12px 49px;min-height:46px}.dk-portal-overview span b{top:12px}.portal-section .card{padding:13px}#portalContent>.portal-tabs{gap:5px}#portalContent>.portal-tabs button{padding:10px 12px;flex:1}}

/* V4.0.1: Account navigation must not float above any active section. */
#portalContent>.portal-tabs{position:static!important;top:auto!important;z-index:auto!important;display:flex!important;align-items:center;flex-wrap:wrap;overflow:visible;gap:8px;margin:14px 0 22px!important;isolation:isolate}
#portalContent>.portal-tabs button{flex:0 1 auto;white-space:normal}
#portalContent>.portal-section{position:relative;z-index:0;min-width:0;scroll-margin-top:80px}
#portalContent .portal-two-col>*{min-width:0}
#portal-storage .filter-bar,#portal-storage .colony-filterbar{position:static!important;top:auto!important}
/* Compact colony-scoped inventory management; no player-proximity assumptions. */
#portal-storage{--dk-row-line:#324651;--dk-row-muted:#9eacb6}
#portal-storage .dk-storage-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
#portal-storage .dk-storage-stat{min-width:0;display:flex;flex-direction:column;gap:3px;padding:16px 18px;border:1px solid #304753;background:linear-gradient(140deg,#172b36,#101e27);border-radius:12px}
#portal-storage .dk-storage-stat span{font-size:.77rem;color:#b8c6ce}
#portal-storage .dk-storage-stat strong{font-size:clamp(1.05rem,1.55vw,1.65rem);line-height:1.3;color:#f8e3b9;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#portal-storage .dk-storage-stat small{color:#a2afb7;font-size:.72rem;line-height:1.35}
#portal-storage .portal-two-col>.card{min-width:0}
#portal-storage .dk-storage-toolbar{margin-top:16px;padding:14px 16px 10px;border:1px solid #304753;border-radius:13px;background:linear-gradient(135deg,#13242e,#0b1922)}
#portal-storage .dk-storage-toolbar-main{display:grid;grid-template-columns:minmax(210px,2fr) repeat(3,minmax(145px,1fr));gap:10px;align-items:end}
#portal-storage .dk-storage-toolbar-main>label{display:grid;min-width:0;gap:5px;font-size:.74rem;font-weight:700;color:#bbcad2}
#portal-storage .dk-storage-toolbar-main :is(input,select){width:100%;min-width:0;height:43px;border-radius:9px;background:#0b1821}
#portal-storage .dk-storage-toolbar-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-top:11px;border-top:1px solid #2c3e49;padding-top:9px;color:#b5c4ce;font-size:.82rem}
#portal-storage .dk-container-pager{display:flex;gap:8px;align-items:center;margin-left:auto;font-variant-numeric:tabular-nums}
#portal-storage .dk-container-pager button{padding:5px 11px;min-width:38px;min-height:32px}
#portal-storage .dk-container-pager span{white-space:nowrap}
#portal-storage .dk-container-grid{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:7px;margin-top:11px}
#portal-storage .dk-container-grid.is-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,375px),1fr))!important;gap:12px}
#portal-storage .dk-storage-row{min-width:0;display:block!important;overflow:visible;padding:10px 14px!important;border-color:#304550;border-radius:12px;background:linear-gradient(135deg,#152630,#10202a)!important;box-shadow:inset 0 1px #ffffff0a;outline:0!important}
#portal-storage .dk-storage-row.unassigned{border-left:3px solid #b98a48!important}
#portal-storage .dk-row-core{display:grid;grid-template-columns:28px 60px minmax(130px,2fr) minmax(90px,.7fr) minmax(105px,1fr);gap:12px;align-items:center;min-width:0}
#portal-storage .dk-row-select{display:flex;align-items:center;justify-content:center;cursor:pointer;min-height:40px}
#portal-storage .dk-row-select input{width:17px;height:17px;accent-color:#c7a06d}
#portal-storage .dk-row-icon{display:grid;place-items:center;width:60px;height:58px;border-radius:9px;background:#0c171e;border:1px solid #263943;overflow:hidden}
#portal-storage .dk-row-icon .chest-visual{min-width:0;width:100%;height:100%}
#portal-storage .dk-row-icon .chest-visual img,#portal-storage .dk-row-icon .chest-visual.double img{max-width:54px;width:100%;height:49px;object-fit:contain}
#portal-storage .dk-row-name{min-width:0;display:grid;gap:3px}
#portal-storage .dk-row-name strong{font-size:.96rem;line-height:1.25;overflow-wrap:anywhere}
#portal-storage .dk-row-type{font:.71rem/1.45 ui-monospace,Consolas,monospace;color:#deb977;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#portal-storage .dk-row-badges{display:flex;gap:5px;flex-wrap:wrap}
#portal-storage .dk-pill{border:1px solid #3a4c56;border-radius:6px;padding:2px 6px;font-size:.7rem;color:#b4c2cb}
#portal-storage .dk-row-stock{display:grid;gap:1px;min-width:0}
#portal-storage .dk-row-stock b{font-size:1.13rem;font-variant-numeric:tabular-nums;color:#f0d6a5}
#portal-storage .dk-row-stock small,#portal-storage .dk-row-warehouse small{font-size:.7rem;line-height:1.3;color:#aab9c3}
#portal-storage .dk-row-warehouse{min-width:0;display:grid;gap:3px}
#portal-storage .dk-row-warehouse strong{font-size:.83rem;overflow-wrap:anywhere}
#portal-storage .dk-row-details{margin-top:7px;padding:0 0 0 100px}
#portal-storage .dk-row-details>summary{width:max-content;max-width:100%;cursor:pointer;color:#e5c28d;font-size:.79rem;padding:5px 0;list-style-position:inside}
#portal-storage .dk-row-details[open]{border-top:1px solid #2e4550;padding-top:10px}
#portal-storage .dk-row-edit{display:grid;grid-template-columns:minmax(140px,1fr) minmax(130px,1fr) minmax(130px,1fr) auto auto;gap:10px;align-items:end;margin-top:8px}
#portal-storage .dk-row-edit>label{display:grid;min-width:0;gap:5px;font-size:.72rem;color:#b7c5cd}
#portal-storage .dk-row-edit :is(select,input:not([type=checkbox])){width:100%;min-width:0;height:39px}
#portal-storage .dk-row-edit .dk-edit-check{display:flex;flex-direction:row;align-items:center;gap:6px;min-height:39px;white-space:nowrap;cursor:pointer}
#portal-storage .dk-row-edit button{height:39px;white-space:nowrap}
#portal-storage .dk-row-foot{font-size:.73rem;color:#91a5b1;margin-top:9px}
#portal-storage .dk-container-grid.is-cards .dk-row-core{grid-template-columns:25px 54px minmax(0,1fr);gap:9px}
#portal-storage .dk-container-grid.is-cards .dk-row-stock,#portal-storage .dk-container-grid.is-cards .dk-row-warehouse{grid-column:3}
#portal-storage .dk-container-grid.is-cards .dk-row-stock{display:flex;align-items:baseline;gap:8px}
#portal-storage .dk-container-grid.is-cards .dk-row-warehouse{display:flex;gap:9px}
#portal-storage .dk-container-grid.is-cards .dk-row-details{padding-left:0}
#portal-storage .dk-container-grid.is-cards .dk-row-edit{grid-template-columns:1fr 1fr}
#portal-storage .dk-container-grid.is-cards .dk-row-edit>.dk-edit-check{grid-column:1}
#portal-storage .dk-storage-note{line-height:1.5;margin:12px 0 0;padding:12px 15px;border-radius:9px}
@media(max-width:1180px){#portal-storage .dk-storage-toolbar-main{grid-template-columns:repeat(2,minmax(0,1fr))}#portal-storage .dk-row-edit{grid-template-columns:repeat(2,minmax(0,1fr))}#portal-storage .dk-storage-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#portalContent>.portal-tabs{display:flex!important;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;gap:5px;padding:6px!important;margin-bottom:14px!important}#portalContent>.portal-tabs button{flex:0 0 auto;font-size:.79rem;padding:9px 10px}#portal-storage .dk-storage-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}#portal-storage .dk-storage-stat{padding:10px}#portal-storage .dk-storage-stat strong{font-size:1.05rem}#portal-storage .dk-storage-toolbar{padding:10px}#portal-storage .dk-storage-toolbar-main{grid-template-columns:minmax(0,1fr)}#portal-storage .dk-container-grid,#portal-storage .dk-container-grid.is-cards{grid-template-columns:minmax(0,1fr)!important}#portal-storage .dk-storage-row{padding:10px!important}#portal-storage .dk-row-core,#portal-storage .dk-container-grid.is-cards .dk-row-core{grid-template-columns:25px 48px minmax(0,1fr);gap:7px}#portal-storage .dk-row-icon{width:48px;height:52px}#portal-storage .dk-row-stock,#portal-storage .dk-row-warehouse,#portal-storage .dk-container-grid.is-cards .dk-row-stock,#portal-storage .dk-container-grid.is-cards .dk-row-warehouse{grid-column:3;display:flex;gap:8px;align-items:baseline}#portal-storage .dk-row-details,#portal-storage .dk-container-grid.is-cards .dk-row-details{padding-left:0}#portal-storage .dk-row-edit,#portal-storage .dk-container-grid.is-cards .dk-row-edit{grid-template-columns:minmax(0,1fr)}#portal-storage .dk-row-edit>.dk-edit-check{grid-column:1}}
@media(prefers-reduced-motion:reduce){#portal-storage .dk-storage-row{animation:none!important}}

/* V4.0.2: keep actual recorded item names and quantities visible before assigning chests. */
#portal-storage .dk-row-content{margin-top:5px;min-width:0;overflow-wrap:anywhere}
#portal-storage .dk-item-summary,#portal-storage .dk-all-items{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px}
#portal-storage .dk-item-chip{display:inline-flex;align-items:center;min-width:0;max-width:100%;gap:5px;padding:3px 7px;border:1px solid #405760;border-radius:6px;background:#0b1b23;color:#e3edf1;font-size:.78rem;line-height:1.3}
#portal-storage .dk-item-chip img{width:19px;height:19px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
#portal-storage .dk-item-chip span{min-width:0;overflow-wrap:anywhere}
#portal-storage .dk-item-chip b{color:#e4bc79;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:.75rem}
#portal-storage .dk-items-state,#portal-storage .dk-items-more{color:#aebdc6;font-size:.78rem;line-height:1.4}
#portal-storage .dk-more-items{margin-top:5px;font-size:.77rem;color:#edc58a}
#portal-storage .dk-more-items>summary{cursor:pointer;max-width:max-content;padding:4px 0}
#portal-storage .dk-all-items{max-height:210px;overflow-y:auto;margin:5px 0;padding:8px;border:1px solid #2b424d;border-radius:8px;background:#0b1a22;align-items:flex-start}
#portal-storage .dk-legacy-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:11px 13px;margin-top:12px;border:1px solid #745b33;border-radius:9px;background:#33271955}
#portal-storage .dk-legacy-notice.hidden{display:none!important}
#portal-storage .dk-legacy-notice>div{display:grid;gap:3px;min-width:0}
#portal-storage .dk-legacy-notice strong{font-size:.84rem;color:#f3d099}
#portal-storage .dk-legacy-notice span{font-size:.77rem;line-height:1.45;color:#c1cbd0}
#portal-storage .dk-legacy-notice button{font-size:.77rem;white-space:normal}
#portal-storage .dk-row-core{grid-template-columns:28px 60px minmax(210px,2.9fr) minmax(90px,.65fr) minmax(105px,.9fr)}
@media(max-width:760px){#portal-storage .dk-row-core{grid-template-columns:25px 48px minmax(0,1fr)}#portal-storage .dk-item-chip{font-size:.75rem}}

/* 0.4.4 – private, per-member chest scope and history. */
#portal-storage .dk-private-pill{color:#f6dba6;border-color:#b98a48;background:#5b442444}
#portal-storage .dk-history-card{margin:14px 0 0;padding:17px 20px}
#portal-storage .dk-history-choice{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0;color:#bccbd4;font-size:.88rem}
#portal-storage .dk-history-choice select{min-height:39px;max-width:100%;width:min(100%,345px)}
#portal-storage .dk-history-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#portal-storage .dk-history-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(65px,186px) minmax(55px,auto);gap:9px;align-items:center;padding:10px;border-radius:8px;border:1px solid #324754;background:#0d1c26;min-width:0}
#portal-storage .dk-history-row>div{min-width:0;display:grid;gap:4px}
#portal-storage .dk-history-row strong{overflow-wrap:anywhere;font-size:.83rem}
#portal-storage .dk-history-row small{font-size:.72rem;color:#a5b8c3}
#portal-storage .dk-history-row svg{width:100%;height:37px;color:#e1ba78;overflow:visible}
#portal-storage .dk-history-row b{text-align:right;color:#f6dfb8;font-variant-numeric:tabular-nums}
@media(max-width:850px){#portal-storage .dk-history-items{grid-template-columns:minmax(0,1fr)}#portal-storage .dk-history-row{grid-template-columns:minmax(0,1fr) minmax(60px,125px) auto}#portal-storage .dk-history-card{padding:12px}}

#portal-storage .dk-history-choice input[type=search]{min-height:39px;max-width:100%;width:min(100%,345px);border-radius:8px}

/* 0.4.5 – compact, opt-in history below the container list; avoid visual competition. */
#portal-storage .dk-history-disclosure{margin-top:16px;border:1px solid #30444e;border-radius:12px;background:linear-gradient(140deg,#112029,#0c1921);overflow:hidden}
#portal-storage .dk-history-disclosure[open]{border-color:#455e68}
#portal-storage .dk-history-summary{display:flex;align-items:center;gap:11px;padding:12px 16px;cursor:pointer;list-style:none;user-select:none;color:#c7d3da}
#portal-storage .dk-history-summary::-webkit-details-marker{display:none}
#portal-storage .dk-history-summary:focus-visible{outline:2px solid #e2b978;outline-offset:-3px}
#portal-storage .dk-history-headmark{width:31px;height:31px;display:grid;place-items:center;background:#172b35;border:1px solid #37515d;border-radius:7px;color:#ddba7d;font-size:1.05rem;flex-shrink:0}
#portal-storage .dk-history-summary>span:nth-child(2){display:grid;gap:2px;min-width:0}
#portal-storage .dk-history-summary strong{font-size:.92rem;font-weight:650;color:#edf1f3}
#portal-storage .dk-history-summary small{font-size:.73rem;color:#9bafb9}
#portal-storage .dk-history-expand{margin-left:auto;font-size:1.2rem;color:#c8a979;transition:transform .2s}
#portal-storage .dk-history-disclosure[open] .dk-history-expand{transform:rotate(180deg)}
#portal-storage .dk-history-card{margin:0;padding:4px 15px 15px;border:0;border-top:1px solid #2b414b;background:transparent;border-radius:0}
#portal-storage .dk-history-context{color:#99aeb7;font-size:.78rem;line-height:1.5;margin:9px 0 12px}
#portal-storage .dk-history-choice{display:inline-flex;margin:0 12px 12px 0;font-size:.76rem;gap:8px;color:#a8b9c2}
#portal-storage .dk-history-choice :is(select,input[type=search]){min-height:34px;width:min(100%,310px);font-size:.78rem}
#portal-storage .dk-history-card .dk-storage-note{margin:0 0 9px;padding:8px 10px;font-size:.76rem;background:#604c2c23;color:#c8c0ab;border-color:#59472c}
#portal-storage .dk-history-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#portal-storage .dk-history-row{grid-template-columns:29px minmax(0,1fr) minmax(65px,130px) minmax(60px,auto);gap:9px;padding:8px 10px;background:#0d1a22;border-color:#29414b;border-radius:8px;min-height:49px}
#portal-storage .dk-history-item-label{display:grid;gap:2px;min-width:0}
#portal-storage .dk-history-item-label strong{font-weight:650;font-size:.79rem}
#portal-storage .dk-history-item-label small{font-size:.69rem}
#portal-storage .dk-history-row svg{height:26px;min-width:0;opacity:.8}
#portal-storage .dk-history-row b{font-size:.81rem}
#portal-storage .dk-history-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:6px;background:#172933;border:1px solid #37515b;flex-shrink:0}
#portal-storage .dk-history-icon img{width:22px;height:22px;object-fit:contain;image-rendering:pixelated}
#portal-storage .dk-history-icon.no-icon{font-size:.9rem;color:#cfb27a}
#portal-storage .dk-history-pending{font-size:.69rem;color:#8fa6b2;text-align:center}
#portal-storage .dk-history-empty{font-size:.8rem;color:#abbac2}
@media(max-width:850px){#portal-storage .dk-history-items{grid-template-columns:minmax(0,1fr)}#portal-storage .dk-history-row{grid-template-columns:29px minmax(0,1fr) 75px minmax(53px,auto)}#portal-storage .dk-history-card{padding:4px 10px 12px}#portal-storage .dk-history-summary{padding:10px 12px}#portal-storage .dk-history-choice{display:grid;margin-right:0;width:100%}}
@media(max-width:390px){#portal-storage .dk-history-row{grid-template-columns:27px minmax(0,1fr) minmax(46px,auto)}#portal-storage .dk-history-row svg,#portal-storage .dk-history-pending{display:none}}

/* 0.4.6 — reviewed list import */
.dk-import-card {margin:0 0 14px;}
.dk-import-fields {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;margin:12px 0;}
.dk-import-fields label,.dk-import-row label {display:flex; flex-direction:column; gap:6px; font-size:12px;color:var(--muted,#b6c2c9);}
.dk-import-fields input,.dk-import-fields select,.dk-import-row input,.dk-import-row select{min-width:0;width:100%;max-width:100%;}
.dk-import-actions{display:flex; align-items:center;flex-wrap:wrap;gap:12px;margin-top:10px;}
.dk-import-rows{display:grid;gap:8px;max-height:510px;overflow-y:auto;padding:6px 3px;margin:8px 0 14px;}
.dk-import-row{display:grid;grid-template-columns:32px minmax(140px,1fr) minmax(155px,1.2fr) 110px;gap:10px;align-items:center;padding:10px;border:1px solid #3b525f;border-radius:10px;background:#11222b;}
.dk-import-row.import-unresolved{border-color:#806b44;}
.dk-import-row .dk-import-origin{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere;}
.dk-import-row small{color:#acb8c1;}
.dk-import-row .dk-import-pick{display:flex;flex-direction:column;gap:6px;min-width:0;}
.dk-import-row .dk-import-pick input{font-size:12px;}
.dk-import-row .dk-import-pick select{font-size:12px;}
.dk-import-row .dk-import-pick button{justify-self:start;}
@media(max-width:760px){.dk-import-row{grid-template-columns:26px minmax(0,1fr) 90px;}.dk-import-row .dk-import-pick{grid-column:2/4;grid-row:2;}.dk-import-card{padding:14px;}}

/* 0.4.8: authenticated, on-demand BlueMap chest locator, fixed bottom-right. */
#portal-storage .dk-chest-coords{display:inline-flex;align-items:center;justify-content:flex-start;width:max-content;max-width:100%;min-width:0;padding:2px 4px 2px 0;background:transparent;border:0;border-bottom:1px dotted #a48251;border-radius:0;cursor:pointer;text-align:left;white-space:normal}
#portal-storage .dk-chest-coords:hover,#portal-storage .dk-chest-coords:focus-visible{color:#f3d59e;border-color:#f3d59e;outline-offset:3px}
.dk-chest-map{position:fixed;bottom:22px;right:22px;z-index:1200;width:min(460px,calc(100vw - 24px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid #a17e4d;border-radius:13px;background:#10212b;box-shadow:0 18px 65px #000b;color:#edf1f3}
.dk-chest-map.hidden{display:none!important}
.dk-chest-map-head{display:flex;align-items:center;gap:10px;padding:10px 12px;background:linear-gradient(100deg,#20343d,#13232e);border-bottom:1px solid #3a505d}
.dk-chest-map-icon{display:grid;place-items:center;font-size:23px;color:#edcb86;width:30px;flex-shrink:0}
.dk-chest-map-title{display:grid;gap:2px;min-width:0;flex:1}
.dk-chest-map-title strong{font-size:.93rem;overflow-wrap:anywhere}
.dk-chest-map-title small{color:#ddbb81;font:.77rem ui-monospace,Consolas,monospace}
.dk-chest-map-close{width:34px;min-height:34px;padding:0!important;font-size:1.35rem;line-height:1;flex-shrink:0}
.dk-chest-map-view{position:relative;height:310px;background:radial-gradient(ellipse,#273844,#0b1821)}
.dk-chest-map-view iframe{display:block;width:100%;height:100%;border:0;background:#09141b}
.dk-chest-map-view iframe.hidden{display:none!important}
.dk-chest-map-view #chestMapMessage{position:absolute;inset:0;display:grid;place-items:center;padding:24px;color:#c0ced5;text-align:center;font-size:.83rem}
.dk-chest-map-view #chestMapMessage.hidden{display:none!important}
.dk-chest-map-target{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;display:grid;place-items:center;width:34px;height:34px;border:2px solid #f5d99e;border-radius:50%;background:#101b26cf;color:#f6cd79;font-size:25px;line-height:1;pointer-events:none;box-shadow:0 0 0 3px #050a0a99,0 0 15px #050a0a}
.dk-chest-map-target.hidden{display:none!important}
.dk-chest-map-actions{display:flex;align-items:center;gap:8px;padding:8px 10px;border-top:1px solid #344956;flex-wrap:wrap}
.dk-chest-map-actions span{font-size:.7rem;line-height:1.35;color:#a9bac4;flex:1 1 170px}
.dk-chest-map-actions button,.dk-chest-map-actions a{font-size:.72rem;white-space:nowrap;padding:7px 9px;min-height:32px}
@media(max-width:760px){.dk-chest-map{bottom:70px;right:8px;width:calc(100vw - 16px);max-height:calc(100dvh - 92px)}.dk-chest-map-view{height:min(295px,42dvh)}}
@media(prefers-reduced-motion:reduce){.dk-chest-map{transition:none!important}}
/* V4 0.4.9 – Stock item overview and deliberate lane grouping. */
.dk-stock-overview{margin-top:14px;border:1px solid var(--line,#344750);border-radius:14px;background:var(--panel,#15252e);overflow:hidden}
.dk-stock-overview>summary{display:flex;align-items:center;gap:14px;cursor:pointer;list-style:none;padding:15px 18px;color:var(--text,#e7ebef)}
.dk-stock-overview>summary::-webkit-details-marker{display:none}
.dk-stock-overview>summary>span:first-child{font-size:22px;color:#dcb16b}
.dk-stock-overview>summary>span:nth-child(2){display:grid;gap:3px;flex:1}
.dk-stock-overview>summary strong{font-size:18px}
.dk-stock-overview>summary small{font-size:12px;color:#9fadb8}
.dk-stock-overview:not([open])>summary>span:last-child{transform:rotate(-90deg)}
.dk-stock-body{border-top:1px solid #344750;padding:15px 18px 18px}
.dk-stock-hint{color:#a5b5be;font-size:13px;line-height:1.5;margin:5px 0 12px}
.dk-stock-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(125px,1fr));gap:10px;margin:10px 0}
.dk-stock-filters label,.dk-stock-limit label,.dk-lane-form label{display:grid;gap:6px;font-size:12px;color:#b6c5cf;min-width:0}
.dk-stock-filters :is(input,select),.dk-stock-limit input,.dk-lane-form input{min-width:0;width:100%;box-sizing:border-box}
.dk-stock-list{display:grid;gap:7px;margin-top:10px}
.dk-stock-item{border:1px solid #304450;border-radius:10px;background:#11212b;overflow:hidden}
.dk-stock-item.dk-stock-alert{border-left:3px solid #d6a34c}
.dk-stock-item>summary{display:flex;gap:10px;align-items:center;padding:10px 12px;cursor:pointer;list-style:none;min-height:42px}
.dk-stock-item>summary::-webkit-details-marker{display:none}
.dk-stock-item .dk-history-icon{flex:none;width:34px;height:34px}
.dk-stock-title{display:grid;flex:1;min-width:0;gap:3px}
.dk-stock-title strong{font-size:14px;overflow-wrap:anywhere}
.dk-stock-title small{font-size:11px;color:#aec0cb}
.dk-stock-item>summary>b{font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap;color:#f5d8a0}
.dk-stock-chevron{color:#cda461}
.dk-stock-item[open] .dk-stock-chevron{transform:rotate(180deg)}
.dk-stock-item-body{padding:12px;border-top:1px solid #304450;font-size:12px}
.dk-stock-limit{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:12px}
.dk-stock-limit label{width:155px}
.dk-stock-limit button{min-height:36px}
.dk-stock-limit small{color:#a5b5be}
.dk-stock-location{display:flex;align-items:center;gap:10px;border-top:1px solid #2a3c47;padding:7px 0;flex-wrap:wrap}
.dk-stock-location>span{flex:1;min-width:155px;overflow-wrap:anywhere}
.dk-stock-location>b{color:#f5d8a0;white-space:nowrap}
.dk-stock-location button{font-size:12px}
.dk-stock-pager{display:flex;gap:12px;justify-content:end;align-items:center;margin-top:12px;font-size:12px}
.dk-lane-form{display:flex;align-items:end;flex-wrap:wrap;gap:10px}
.dk-lane-form label{width:min(100%,360px)}
.dk-lane-list{margin-top:12px;display:grid;gap:8px}
.dk-lane-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:1px solid #304450;border-radius:9px;padding:10px 12px}
.dk-lane-row strong{flex:1;min-width:120px}
.dk-lane-row span{color:#b4c4cd;font-size:12px}
@media(max-width:850px){.dk-stock-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.dk-stock-filters label:first-child{grid-column:1/-1}}
@media(max-width:480px){.dk-stock-filters{grid-template-columns:minmax(0,1fr)}.dk-stock-filters label:first-child{grid-column:auto}.dk-stock-body{padding:11px}.dk-stock-overview>summary{padding:12px}.dk-stock-location button{width:100%}.dk-stock-limit label{width:calc(50% - 6px)}.dk-lane-form>button{flex:1}.dk-stock-item>summary{gap:7px}.dk-stock-title small{font-size:10px}}
.dk-lane-stock{display:flex;flex-wrap:wrap;gap:6px;width:100%;align-items:center;margin-top:3px;font-size:12px}

/* 0.4.10 — progressive sections, colony-like compact stock and persistent snapshot labeling. */
#portal-storage .dk-storage-section{margin:12px 0;border:1px solid #38515b;border-radius:13px;background:linear-gradient(140deg,#14252e,#101c25);overflow:hidden}
#portal-storage .dk-storage-section>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;min-height:54px;padding:12px 16px;color:#edf0f1}
#portal-storage .dk-storage-section>summary::-webkit-details-marker{display:none}
#portal-storage .dk-storage-section>summary>span:nth-child(2){display:grid;gap:2px;flex:1;min-width:0}
#portal-storage .dk-storage-section>summary strong{font-size:16px}
#portal-storage .dk-storage-section>summary small{font-size:12px;color:#a9b9c2;line-height:1.4}
#portal-storage .dk-section-glyph{font-size:20px;color:#dabb78;flex:0 0 25px;text-align:center}
#portal-storage .dk-section-arrow{color:#dabb78;transition:transform .15s}
#portal-storage .dk-storage-section:not([open]) .dk-section-arrow{transform:rotate(-90deg)}
#portal-storage .dk-storage-section-body{padding:12px 15px 16px;border-top:1px solid #2f4550}
#portal-storage .dk-storage-section-body>.portal-two-col{margin-top:0;gap:12px}
#portal-storage .dk-storage-section-body>.dk-storage-toolbar{margin-top:0}
#portal-storage .dk-storage-section-body .card{min-height:0}
#portal-storage .dk-stock-view-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:8px 0}
#portal-storage .dk-stock-view-controls label{display:grid;gap:4px;min-width:min(100%,225px);flex:1 1 225px;font-size:12px;color:#b5c3cd}
#portal-storage .dk-stock-view-controls select{min-width:0;width:100%;max-width:100%;min-height:37px}
#portal-storage .dk-stock-list.is-compact{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#portal-storage .dk-stock-list.is-compact .dk-stock-item>summary{padding:6px 8px;min-height:38px;gap:7px}
#portal-storage .dk-stock-list.is-compact .dk-history-icon{width:26px;height:26px}
#portal-storage .dk-stock-list.is-compact .dk-history-icon img{width:21px;height:21px}
#portal-storage .dk-stock-list.is-compact .dk-stock-title strong{font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#portal-storage .dk-stock-list.is-compact .dk-stock-title small{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#portal-storage .dk-stock-list.is-compact .dk-stock-item>summary>b{font-size:13px}
#portal-storage .dk-stock-list.is-compact .dk-stock-item[open]{grid-column:1/-1;border-color:#b18c52}
#portal-storage .dk-stock-list.is-compact .dk-stock-item[open] .dk-stock-title strong{white-space:normal}
#portal-storage .dk-cache-warning{border-left:3px solid #d7ad66;padding:9px 12px!important;background:#674d2b35;color:#efd2a0!important;border-radius:5px}
#portal-storage .dk-cached-row{border-left-color:#896d44!important;background:linear-gradient(145deg,#1b262b,#111f28)}
#portal-storage .dk-cache-label{display:block;margin-bottom:4px;font-size:.72rem;color:#d9b87d}
#portal-storage .dk-setting-hint{display:block;color:#9cb0ba;font-size:.69rem;margin-top:3px;line-height:1.35;font-weight:400}
#portal-storage #storageSettings label:has(input:disabled){opacity:.7}
@media(max-width:1080px){#portal-storage .dk-stock-list.is-compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:670px){#portal-storage .dk-stock-list.is-compact{grid-template-columns:minmax(0,1fr)}#portal-storage .dk-storage-section>summary{padding:10px 12px}#portal-storage .dk-storage-section-body{padding:10px}#portal-storage .dk-storage-section>summary strong{font-size:14px}#portal-storage .dk-storage-section>summary small{font-size:11px}}

/* 0.4.13 Account confirmation, notification centre and opt-in lane alerts */
.dk-account-subpanel{margin-top:12px;border-top:1px solid #344750;padding-top:12px}
.dk-account-subpanel summary{cursor:pointer;color:#e4c18b;font-weight:600;margin-bottom:8px}
.dk-account-small{font-size:12px;color:#bbcbd5;margin-top:8px;overflow-wrap:anywhere}
.dk-account-toggle{display:flex;gap:8px;align-items:start;font-size:13px}
.dk-notification{display:grid;gap:5px;padding:9px 0;border-bottom:1px solid #344750;font-size:12px}
.dk-notification-unread{border-left:3px solid #d6ac67;padding-left:8px}
.dk-notification strong{font-size:13px;color:#f2dfb8}.dk-notification span{overflow-wrap:anywhere}
.dk-notification small{color:#9daeb9}.dk-notification button{justify-self:start}
.dk-lane-watch{display:flex;align-items:center;gap:4px;font-size:12px}
.dk-lane-watch input[type=number]{width:65px;min-width:0}
@media(max-width:600px){.dk-lane-watch{flex:1 1 130px}.dk-notification{padding:8px}}

.dk-2fa-panel code{display:block;overflow-wrap:anywhere;padding:10px;background:#0c1921;border:1px solid #435561;border-radius:6px;font-size:14px;letter-spacing:1px;color:#f0ce91}
#profile2faRecovery pre{padding:12px;background:#0c1921;color:#f0ce91;line-height:1.8;user-select:all;white-space:pre-wrap}

/* 0.4.14: predictable settings layout, narrow viewports, and inline chest naming. */
#portal-storage #storageSettings.toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
#portal-storage #storageSettings .switch-line{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:10px;min-width:0;min-height:70px;padding:11px 12px;border:1px solid #304653;border-radius:9px;background:#12232d;line-height:1.38;white-space:normal}
#portal-storage #storageSettings .switch-line input{width:16px;height:16px;margin:2px 0 0}
#portal-storage #storageSettings .switch-line span{min-width:0;overflow-wrap:anywhere}
#portal-storage #storageSettings .dk-setting-hint{margin-top:6px}
#portal-storage .dk-stock-location>span strong{font-weight:750}
#portal-storage .dk-stock-location button[data-edit-chest-name]{flex:0 0 auto;font-size:12px}
@media(max-width:700px){#portal-storage #storageSettings.toggle-grid{grid-template-columns:minmax(0,1fr)}}

/* 0.4.16: Listen als kompakte Einzelkarten mit umbruchfähigen Aktionsknöpfen. */
#portal-lists .portal-two-col{align-items:start;grid-template-columns:minmax(250px, .9fr) minmax(0,1.5fr)}
#portal-lists .portal-two-col>.card{min-height:0!important}
#portal-lists #listCards{display:grid;gap:9px;align-content:start}
#portal-lists #listCards .feed-row{display:grid;grid-template-columns:10px minmax(0,1fr);align-items:start;gap:8px 12px;padding:14px;background:#10222c;border:1px solid #354b55;border-radius:10px;min-width:0}
#portal-lists #listCards .feed-row>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
#portal-lists #listCards .row-actions{grid-column:2;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-start}
#portal-lists #listCards .row-actions .btn,#portal-lists #listCards .row-actions button{min-height:34px;padding:7px 10px}
#portal-lists #listCards small{display:block;line-height:1.5;margin-top:4px}
@media(max-width:850px){#portal-lists .portal-two-col{grid-template-columns:minmax(0,1fr)}}
#portal-storage .dk-capacity-save-state{display:block;color:#c1e4ca;font-weight:650}

/* 0.4.24: compact paged history + direct chest links from stock locations */
#portal-storage .dk-history-pager{display:flex;gap:12px;justify-content:flex-end;align-items:center;margin-top:10px;font-size:12px;font-variant-numeric:tabular-nums}
#portal-storage .dk-history-pager button{min-height:32px;padding:5px 11px}
#portal-storage .dk-history-pager span{white-space:nowrap;color:#a9bac3}
#portal-storage .dk-stock-location-link{appearance:none;border:0;background:transparent;padding:0;color:#f1d39a;font:inherit;font-weight:750;text-align:left;text-decoration:underline;text-decoration-color:#80643c;text-underline-offset:3px;cursor:pointer}
#portal-storage .dk-stock-location-link:hover{color:#fff0cf;text-decoration-color:#d5ad69}
@media(max-width:600px){#portal-storage .dk-history-pager{justify-content:space-between;gap:6px}#portal-storage .dk-history-pager span{white-space:normal;text-align:center}}
/* 0.4.25 platform features */
.dk-image-upload{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.dk-upload-preview{width:64px;height:64px;object-fit:cover;border-radius:14px;border:1px solid var(--line)}
.dk-schematic-preview{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:14px;background:rgba(5,12,17,.45)}.dk-schematic-preview canvas{display:block;width:100%;height:auto;max-height:58vh;border-radius:12px;border:1px solid var(--line);background:#071116}
.dk-map-project-card{margin-top:18px}.dk-map-project-card textarea{min-height:86px}
@media(max-width:680px){.dk-schematic-preview canvas{max-height:44vh}.dk-image-upload{align-items:flex-start}.dk-map-project-card .dk-import-fields{grid-template-columns:1fr 1fr}.dk-map-project-card .dk-import-fields label:first-child,.dk-map-project-card .dk-import-fields label:last-of-type{grid-column:1/-1}}
/* 0.4.27 – image sizing, storage-empty filter and interactive schematic canvas */
.dk-colony-logo{width:72px;height:72px;min-width:72px;max-width:72px;object-fit:cover;border-radius:14px;border:1px solid #8c6a38;box-shadow:0 6px 18px #0008;display:block}
.dk-empty-toggle{display:inline-flex!important;align-items:center;gap:7px!important;white-space:nowrap;font-weight:700;color:#c3d0d7}
.dk-empty-toggle input{width:16px!important;height:16px!important;margin:0;accent-color:#c89243}
.dk-schematic-preview canvas{cursor:grab;touch-action:none;user-select:none}
.dk-schematic-preview canvas:active{cursor:grabbing}
.dk-schematic-help{margin:8px 4px 0;color:#91a4af;font-size:.78rem}
.dk-project-row{display:grid!important;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px}
.dk-project-logo{width:48px;height:48px;object-fit:cover;border-radius:10px;border:1px solid #5a4932;background:#0c1821;display:block}
.dk-project-logo.placeholder{display:grid;place-items:center;color:#efc16e;font-size:1.25rem}
.dk-project-logo-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:680px){.dk-colony-logo{width:58px;height:58px;min-width:58px;max-width:58px}.dk-project-row{grid-template-columns:42px minmax(0,1fr)}.dk-project-logo{width:42px;height:42px}.dk-project-logo-actions{grid-column:1/-1;justify-content:flex-start}}

/* 1.0.1 Master Rework – Privatlager in der visuellen Sprache des Kolonielagers */
.dk-storage-hero-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin:0 0 14px}.dk-storage-hero-head h1{margin:3px 0}.dk-private-item-card{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) auto 18px;gap:10px;align-items:center;text-align:left;padding:11px 12px;border:1px solid var(--line-soft);border-radius:11px;background:#0b171f;color:inherit}.dk-private-item-card:hover{border-color:#9b7948;background:#0d1c25}.dk-private-item-card>span strong,.dk-private-item-card>span small{display:block}.dk-private-item-card>span small{color:var(--muted);margin-top:2px}.dk-private-item-card>b{font-size:16px;color:#efc979}.dk-private-item-card>i{font-style:normal;color:var(--muted);font-size:22px}.dk-private-item-detail{padding:16px;margin-top:12px}.dk-private-item-detail .warehouse-detail-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.dk-private-item-detail .item-head{display:flex;gap:12px;align-items:center}.dk-private-item-detail .item-head h2{margin:3px 0}.dk-private-item-detail .warehouse-intel-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.dk-private-item-detail .warehouse-intel-tabs a{padding:6px 10px;border:1px solid var(--line-soft);border-radius:999px;color:#efc979;text-decoration:none}.dk-private-item-detail .warehouse-detail-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);gap:14px;align-items:start}.dk-private-item-detail .warehouse-detail-grid>section,.dk-private-limit-card{padding:13px;border:1px solid var(--line-soft);border-radius:11px;background:#0a151d}.dk-private-location{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;gap:9px;align-items:center;text-align:left;padding:9px;border:0;border-bottom:1px solid var(--line-soft);background:transparent;color:inherit}.dk-private-location:hover{background:#10212b}.dk-private-location span strong,.dk-private-location span small{display:block}.dk-private-location span small{color:var(--muted);margin-top:2px}.dk-private-location>b{color:#efc979}.dk-private-limit-card{margin-top:14px}.dk-private-history .inventory-history-chart{width:100%;min-height:220px}.dk-private-history .history-line{fill:none;stroke:#d6aa67;stroke-width:2.2}.dk-private-history .history-grid line{stroke:#31414a;stroke-width:1}.dk-private-history .history-grid text,.dk-private-history .history-xlabel{fill:#91a2aa;font-size:11px}.dk-private-history .history-point{fill:#efc979;cursor:pointer}.dk-private-history{position:relative}.dk-private-history .history-tooltip{position:absolute;z-index:5;display:flex;flex-direction:column;gap:2px;padding:7px 9px;border:1px solid #6b5436;border-radius:8px;background:#09131a;box-shadow:0 8px 24px #0008;pointer-events:none}.dk-private-history .history-tooltip.hidden{display:none}
#storageSettingsPanel,#storageChestPanel,#storageLanesCard,#storageManagementPanel,#storageHistoryCard{margin-top:12px}
@media(max-width:980px){.dk-private-item-detail .warehouse-detail-head{display:block}.dk-private-item-detail .warehouse-detail-head .toolbar{margin-top:10px}.dk-private-item-detail .warehouse-detail-grid{grid-template-columns:1fr}}
@media(max-width:650px){.dk-storage-hero-head{align-items:flex-start;flex-direction:column}.dk-private-item-card{grid-template-columns:36px minmax(0,1fr) auto}.dk-private-item-card>i{display:none}.dk-private-location{grid-template-columns:minmax(0,1fr) auto}.dk-private-location>.dk-history-icon,.dk-private-location>[data-chest-map]{display:none}}

/* 1.0.1 master rework: keep everyday stock first, management tools secondary. */
#portal-storage:not(.hidden){display:flex;flex-direction:column;gap:16px}
#portal-storage .dk-storage-hero{order:0}
#portal-storage #storageOverview{order:1}
#portal-storage #storageItemsCard{order:2}
#portal-storage #storageItemDetail{order:3}
#portal-storage #storageSettingsPanel{order:10}
#portal-storage #storageChestPanel{order:11}
#portal-storage #storageLanePanel{order:12}
#portal-storage #storageManagementPanel{order:13}
#portal-storage #storageHistoryPanel{order:14}
#portal-storage #storageLanesCard{order:12}
#portal-storage #storageHistoryCard{order:14}
.dk-compat-container-link{display:none!important}

/* 1.0.2 Privatlager master layout */
.dk-private-storage-tabs{position:sticky;top:0;z-index:6;margin:12px 0 16px;padding:7px;background:rgba(7,17,22,.94);backdrop-filter:blur(10px);border:1px solid var(--line);border-radius:12px;display:flex;gap:5px;overflow-x:auto}
.dk-private-storage-tabs button{white-space:nowrap;flex:0 0 auto}.dk-storage-tab-hidden{display:none!important}
@media(max-width:680px){.dk-private-storage-tabs{margin-inline:-4px;border-radius:9px}}

/* 1.0.3 private-storage interaction */
.dk-bulk-actionbar{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0;padding:10px 12px;border:1px solid #2a404c;border-radius:10px;background:#0b1922}.dk-bulk-selection,.dk-bulk-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.dk-bulk-actions select{min-width:190px}.dk-item-chip-button{appearance:none;font:inherit;color:inherit;cursor:pointer;text-align:left}.dk-item-chip-button:hover{border-color:#9d7340;background:#12232c}.dk-history-row-button{width:100%;appearance:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.dk-history-row-button:hover{border-color:#9d7340;background:#10212b}@media(max-width:760px){.dk-bulk-actionbar,.dk-bulk-actions,.dk-bulk-selection{align-items:stretch}.dk-bulk-actionbar{display:grid}.dk-bulk-actions{display:grid;grid-template-columns:1fr 1fr}.dk-bulk-actions select{grid-column:1/-1;min-width:0}}

/* 1.0.3 map-project confirmation dialog */
.dk-dialog-backdrop{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px;background:rgba(2,8,12,.76);backdrop-filter:blur(4px)}
.dk-dialog-backdrop.hidden{display:none}
.dk-dialog-card{width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow:auto;box-shadow:0 24px 90px rgba(0,0,0,.5)}
.dk-project-delete-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.dk-project-delete-meta>div{padding:10px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.02)}
.dk-project-delete-meta dt{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.dk-project-delete-meta dd{margin:4px 0 0;font-weight:700;overflow-wrap:anywhere}
.dk-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
@media(max-width:560px){.dk-project-delete-meta{grid-template-columns:1fr}.dk-dialog-actions{flex-direction:column-reverse}.dk-dialog-actions .btn{width:100%}}

/* 1.0.4: kompaktere Seiten, echte Kartenaktion und Seitenwechsel auch am Listenende. */
.dk-storage-hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.dk-container-pager-bottom{justify-content:flex-end;margin:14px 0 2px!important}.dk-location-pager{margin-top:10px}.dk-private-location-main{border:0;background:transparent;color:inherit;text-align:left;padding:0;min-width:0;width:100%}.dk-private-location-main:hover strong{color:#efc979}
@media(max-width:650px){.dk-storage-hero-actions{justify-content:flex-start}.dk-private-location{grid-template-columns:minmax(0,1fr) auto}.dk-private-location .dk-history-icon{display:none}.dk-private-location>[data-chest-map]{display:inline-flex}}
/* 1.0.8 unified stock view: one read model, collectors remain separate. */
.dk-unified-stock{margin-top:14px;padding:14px;border:1px solid var(--line-soft);border-radius:11px;background:linear-gradient(145deg,#0c1921,#0a151d)}
.dk-unified-stock .section-title{margin:0 0 10px}.dk-unified-stock h3{margin:2px 0}
.dk-unified-stock-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dk-unified-stock-grid>div{padding:10px 12px;border:1px solid #2a3b45;border-radius:9px;background:#09151c}
.dk-unified-stock-grid small,.dk-unified-stock-grid span{display:block;color:var(--muted)}
.dk-unified-stock-grid strong{display:block;margin:2px 0;font-size:20px;color:#efc979}
@media(max-width:650px){.dk-unified-stock-grid{grid-template-columns:1fr}}

/* 1.0.10: profile navigation stays fully visible on small screens. */
@media(max-width:760px){#portalContent>.dk-profile-tabs{display:grid!important;grid-template-columns:1fr 1fr;overflow:visible!important}#portalContent>.dk-profile-tabs button{width:100%!important;min-width:0}}
/* 1.0.11: never show player-profile tabs outside the player profile, including mobile. */
#portalContent>#profilePortalTabs.hidden{display:none!important}

/* 1.0.13 – sichtbarer Fortschritt des Schematic/Weltabgleichs */
.dk-scan-progress{height:10px;margin:10px 0 8px;border-radius:999px;overflow:hidden;background:#07131b;border:1px solid var(--line-soft)}
.dk-scan-progress>span{display:block;height:100%;min-width:0;background:linear-gradient(90deg,#9f783c,#eac477);transition:width .35s ease}
.dk-scan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 14px;margin:0 0 8px;font-size:12px;color:var(--muted)}
.dk-scan-grid b{color:#f1d29b;font-variant-numeric:tabular-nums}
@media(max-width:620px){.dk-scan-grid{grid-template-columns:1fr}}

/* 1.0.14 – consolidated project/material-list hub */
.dk-project-hub-card{margin-bottom:14px}.dk-project-list-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.dk-project-list-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 14px;border:1px solid var(--line-soft);border-radius:11px;background:#0a171f;text-decoration:none;color:inherit;transition:border-color .16s ease,transform .16s ease}.dk-project-list-card:hover{border-color:#82653d;transform:translateY(-1px)}.dk-project-list-card strong,.dk-project-list-card span,.dk-project-list-card small{display:block}.dk-project-list-card span{margin-top:3px;color:#d9e3e7}.dk-project-list-card small{margin-top:4px;color:var(--muted)}.dk-project-list-card b{color:#efc979;font-size:1.05rem}.dk-project-list-empty{grid-column:1/-1;padding:16px;border:1px dashed var(--line-soft);border-radius:10px;color:var(--muted)}
@media(max-width:760px){.dk-project-list-overview{grid-template-columns:1fr}.dk-project-list-card{grid-template-columns:1fr}.dk-project-list-card b{justify-self:start}}
.dk-project-hub-section+.dk-project-hub-section{margin-top:18px}.dk-project-hub-section h3{margin:0 0 8px;font-size:1rem}.dk-project-hub-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.dk-project-hub-actions .btn{white-space:nowrap}@media(max-width:760px){.dk-project-hub-actions{justify-content:flex-start}}

/* 1.0.18 – keep the private-storage subnavigation visible on phones.
   app.css intentionally hides generic colony tabs on mobile for the bottom nav. */
@media(max-width:720px){
  #privateStorageTabs.dk-private-storage-tabs{display:flex!important;position:sticky;top:58px;z-index:116;overflow-x:auto;scrollbar-width:none}
  #privateStorageTabs.dk-private-storage-tabs::-webkit-scrollbar{display:none}
}

.dk-scan-origin-help{grid-column:1/-1;padding:10px 12px;border:1px solid #5b472d;border-radius:9px;background:#17140f;color:#d8c39c;font-size:.82rem;line-height:1.45}
.dk-scan-bounds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:9px}.dk-scan-bounds span{padding:7px 9px;border:1px solid var(--line-soft);border-radius:8px;background:#09151d;color:#aebbc2}.dk-scan-bounds b{color:#efc979;margin-right:4px}
@media(max-width:620px){.dk-scan-bounds{grid-template-columns:1fr}}

.dk-scan-anchor-warning{margin-top:8px;padding:8px 10px;border:1px solid #8b652f;border-radius:8px;background:#1b150b;color:#e7c98e;line-height:1.4}.dk-scan-anchor-warning strong{color:#ffd997}
