@font-face{font-family:LifeCraftLD;src:url('./native/ld-roboto-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
#panel.native-life-crafting[open]{position:fixed;inset:50% auto auto 50%;display:flex;flex-direction:column;width:540px;height:540px;max-width:none;max-height:none;margin:0;padding:0;box-sizing:border-box;border:2px solid #83a8a2;border-radius:0;background:#083031;color:#e3e9e5;overflow:visible;font:28px/30px LifeCraftLD,Arial,sans-serif;letter-spacing:0;text-shadow:1px 2px #142a2b;transform:translate(-50%,-50%) scale(var(--lc-scale,1));transform-origin:center}
#panel.native-life-crafting *,#panel.native-life-crafting *::before,#panel.native-life-crafting *::after{box-sizing:border-box}
#panel.native-life-crafting>header{position:relative;flex:none;height:34px;min-height:34px;padding:0;border-bottom:2px solid #93b5ac;background:#639a94;overflow:hidden}
#panel.native-life-crafting>header::before,#panel.native-life-crafting>header::after{content:"";position:absolute;top:0;bottom:0;width:120px;background:url('./native/apk-title-cloud.png') left center/cover no-repeat;pointer-events:none}
#panel.native-life-crafting>header::before{left:0}
#panel.native-life-crafting>header::after{right:0;transform:scaleX(-1)}
#panel.native-life-crafting>header h2{position:relative;z-index:1;height:32px;margin:0;padding:0;font:28px/32px LifeCraftLD,Arial,sans-serif;white-space:nowrap;text-align:center;color:#e4eee0;text-shadow:1px 2px #4a7972}
#panel.native-life-crafting #panelBody{position:relative;display:flex;flex:1;flex-direction:column;min-height:0;margin:0;padding:0;overflow:visible;font:inherit}
#panel.native-life-crafting button{font:inherit;letter-spacing:0;text-shadow:inherit;border-radius:0;box-shadow:none}
#panel.native-life-crafting button:focus-visible{outline:3px solid #a4c9c2;outline-offset:-3px}
#panel.native-life-crafting .lc-tabs{flex:none;display:flex;height:60px;align-items:center;background:#31715a;border-bottom:2px solid #548e80}
#panel.native-life-crafting .lc-tabs button{width:128px;height:51px;padding:0 4px;border:0;background:transparent;color:#e6e1b5;white-space:nowrap}
#panel.native-life-crafting .lc-tabs button[aria-selected=true]{background:#315952;box-shadow:inset 0 0 0 3px #71958b}
#panel.native-life-crafting .lc-stamina{flex:none;height:32px;line-height:30px}
#panel.native-life-crafting .lc-rows{flex:1;min-height:0;overflow:auto;scrollbar-width:none;overscroll-behavior:contain}
#panel.native-life-crafting .lc-rows::-webkit-scrollbar{display:none}
#panel.native-life-crafting .lc-row{display:grid;align-items:center;width:100%;height:60px;min-height:60px;margin:0;padding:0 8px;border:0;border-bottom:2px solid #10393b;background:#18494a;color:#e3e9e5;text-align:left}
#panel.native-life-crafting .lc-row:nth-child(even){background:#18555a}
#panel.native-life-crafting .lc-row.selected{box-shadow:inset 0 0 0 3px #a4c9c2}
#panel.native-life-crafting .lc-skill-row{grid-template-columns:33px 234px minmax(0,1fr)}
#panel.native-life-crafting .lc-skill-row>.lc-clip{padding-left:3px}
#panel.native-life-crafting .lc-row.unmet{color:#ff7108}
#panel.native-life-crafting .lc-icon{display:inline-flex;align-items:center;width:33px;height:33px;overflow:hidden}
#panel.native-life-crafting .lc-icon .native-item-icon{display:block;flex:none;width:33px;height:33px;border:0;image-rendering:pixelated}
#panel.native-life-crafting .lc-clip{display:block;min-width:0;overflow:hidden;white-space:nowrap}
#panel.native-life-crafting .lc-clip>span{display:inline-block;white-space:nowrap}
#panel.native-life-crafting .lc-overflow>span{animation:life-craft-marquee var(--lc-text-duration,12s) linear 1s infinite}
@keyframes life-craft-marquee{from{transform:translateX(0)}to{transform:translateX(calc(-1 * (var(--lc-text-width) + var(--lc-window-width))))}}
#panel.native-life-crafting .lc-pager{flex:none;display:flex;align-items:flex-end;justify-content:center;height:50px;min-height:50px;color:#fcffb4}
#panel.native-life-crafting[data-life-stage=recipes] .lc-pager{height:82px;min-height:82px}
#panel.native-life-crafting .lc-pager button{width:97px;height:38px;margin:0;padding:0;border:0;background:center/100% 100% no-repeat}
#panel.native-life-crafting .lc-pager button:first-child{background-image:url('./native/ld-social-page-left.png')}
#panel.native-life-crafting .lc-pager button:last-child{background-image:url('./native/ld-social-page-right.png')}
#panel.native-life-crafting .lc-pager>span{height:32px;line-height:32px;white-space:nowrap}
#panel.native-life-crafting .lc-list-head{display:grid;grid-template-columns:234px 1fr;flex:none;align-items:center;height:60px;border-bottom:3px solid #70a0a3;background:#18494a;white-space:nowrap}
#panel.native-life-crafting .lc-recipe-row{grid-template-columns:270px 1fr;padding:0 3px}
#panel.native-life-crafting .lc-recipe-row>span:last-child{padding-left:6px}
#panel.native-life-crafting .lc-name-color{min-width:0;overflow:hidden}
#panel.native-life-crafting .lc-context{position:absolute;z-index:4;left:264px;width:306px;background:transparent}
#panel.native-life-crafting .lc-context button{display:flex;align-items:center;justify-content:center;width:100%;height:60px;margin:0;padding:0 4px;border:4px ridge #7b9592;background:#2b3e42ed;color:#fff;text-align:center}
#panel.native-life-crafting .lc-context button:first-child{background:#7b9694ed;color:#f00}
#panel.native-life-crafting .lc-context small{display:inline-block;flex:none;width:12px;height:18px;margin-right:4px;border:1px solid #fff294;background:#fff078;color:#ef4300;font:16px/16px LifeCraftLD,Arial,sans-serif;text-shadow:none}
#panel.native-life-crafting .lc-context .lc-clip{flex:0 1 auto}
#panel.native-life-crafting .lc-empty{margin:12px;font:inherit}
#panel.native-life-crafting .lc-inspection{flex:1;min-height:0;overflow:auto;padding:14px;line-height:30px}
#panel.native-life-crafting .lc-inspection h3{display:flex;align-items:center;gap:10px;margin:0 0 14px;font:inherit}
#panel.native-life-crafting .lc-skill-inspection,#panel.native-life-crafting .lc-upgrade{flex:1;min-height:0;overflow:auto;padding:14px;line-height:28px;word-break:break-all}
#panel.native-life-crafting .lc-skill-inspection h3,#panel.native-life-crafting .lc-upgrade h3{display:flex;align-items:center;gap:8px;height:48px;margin:0 10px 18px;font:inherit}
#panel.native-life-crafting .lc-skill-inspection h3>.lc-clip,#panel.native-life-crafting .lc-upgrade h3>.lc-clip{max-width:225px}
#panel.native-life-crafting .lc-skill-check-label{height:42px;margin:0;line-height:30px}
#panel.native-life-crafting .lc-skill-category{height:30px;margin:18px 0 16px;text-align:right;line-height:30px}
#panel.native-life-crafting .lc-upgrade h3{margin-bottom:0}
#panel.native-life-crafting .lc-upgrade-button{display:block;width:150px;height:60px;min-height:60px;margin:8px 0 0 6px;padding:0 4px;border:4px ridge #7b9592;background:#7b9694ed;color:#fff;white-space:nowrap;overflow:hidden}
#panel.native-life-crafting .lc-recipe-detail{margin:0 27px;overflow:visible;clip-path:inset(0 -210px 0 0)}
#panel.native-life-crafting[data-life-stage=recipe] #panelBody{overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain}
#panel.native-life-crafting .lc-recipe-detail>div{height:42px;min-height:42px;padding:4px 0;background:#18494a;border-bottom:2px solid #10393b;white-space:nowrap}
#panel.native-life-crafting .lc-yellow{color:#fcffb4}
#panel.native-life-crafting .lc-material-head{display:grid;grid-template-columns:225px 1fr;align-items:center;color:#fcffb4}
#panel.native-life-crafting .lc-material-head>span:first-child{padding-left:27px}
#panel.native-life-crafting .lc-material-row,#panel.native-life-crafting .lc-output{display:grid;grid-template-columns:33px 192px 1fr;align-items:center;width:100%;height:42px;min-height:42px;margin:0;padding:0;border:0;border-bottom:2px solid #10393b;background:#18494a;color:#fff;text-align:left}
#panel.native-life-crafting .lc-material-row:nth-of-type(even){background:#18555a}
#panel.native-life-crafting .lc-experience{color:#ff0}
#panel.native-life-crafting .lc-success>.lc-clip,#panel.native-life-crafting .lc-experience>.lc-clip{width:calc(100% + 210px)}
#panel.native-life-crafting .lc-output>span:last-child{padding-left:7px}
#panel.native-life-crafting .lc-missing{color:#f00}
#panel.native-life-crafting .lc-native-button{display:block;width:144px;height:48px;min-height:48px;margin:4px 0 0;padding:0 5px;border:4px ridge #7b9592;background:#2b3e42;color:#fcffb4;text-align:left;white-space:nowrap}
#panel.native-life-crafting .lc-local-reason{margin:8px 0;color:#fff;font:24px/28px LifeCraftLD,Arial,sans-serif;white-space:normal}
#panel.native-life-crafting>.game-dialog-actions{position:absolute;top:241px;left:663px;width:74px;height:194px;display:flex;flex-direction:column-reverse;align-items:center;justify-content:space-between;margin:0;padding:0;border:0;background:transparent;pointer-events:none}
#panel.native-life-crafting>.game-dialog-actions .native-button{position:static;width:74px;height:74px;min-height:0;margin:0;padding:0;border:0;pointer-events:auto}
@media(prefers-reduced-motion:reduce){#panel.native-life-crafting .lc-overflow>span{animation:none}}

/* Keep Vietnamese action labels and resource headings readable in the original window. */
#panel.native-life-crafting .lc-native-button{width:280px;max-width:100%}
#panel.native-life-crafting .lc-native-button .lc-clip>span{animation:none}
#panel.native-life-crafting .lc-material-head{font-size:21px;line-height:24px;grid-template-columns:210px minmax(0,1fr);height:56px;min-height:56px}
#panel.native-life-crafting .lc-material-head .lc-clip,#panel.native-life-crafting .lc-material-head .lc-clip>span{white-space:normal;animation:none}
#panel.native-life-crafting .lc-experience{height:auto;min-height:52px;font-size:21px;line-height:24px;white-space:normal}
#panel.native-life-crafting .lc-experience>.lc-clip{width:100%;white-space:normal}
#panel.native-life-crafting .lc-experience>.lc-clip>span{white-space:normal;animation:none}

#panel.native-life-crafting .lc-skill-row{grid-template-columns:33px minmax(0,1fr)140px;column-gap:8px}

/* Five mining ranks reach50000; keep cumulative proficiency inside the native row. */
#panel.native-life-crafting .lc-skill-row[data-lc-skill^="620004"]>span:last-child{font-size:24px;text-align:right;white-space:nowrap;padding-right:3px}
