#panel.apk-window.system-settings-window{width:min(56.25vw,540px);height:100dvh;max-height:100dvh;max-width:calc(100vw - 8px);margin:0 auto;padding:0;background:#082f31;border:2px ridge #9bbab2;border-radius:0;display:flex;flex-direction:column}
#panel.system-settings-window:not([open]){display:none}
#panel.system-settings-window #panelTitle{margin:0;padding:0 4px;min-height:36px;text-align:center;font:28px LDDialog,Tahoma,sans-serif;color:#e3eeee;background:linear-gradient(110deg,#78b1a8,#508e82,#78b1a8);border-bottom:2px solid #52867e}
#panel.system-settings-window #panelBody{position:relative;padding:0;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden;font-family:LDDialog,Tahoma,sans-serif}
.system-setting-tabs{display:flex;height:60px;flex:none;background:#306e5e;border-bottom:3px ridge #88b2ad}
.system-setting-tabs button{flex:none;width:24%;min-width:0;border:0;border-radius:0;padding:0 3px;background:transparent;font:28px LDDialog,Tahoma,sans-serif;color:#e8e3be;white-space:nowrap;overflow:hidden}
.system-setting-tabs button.selected{color:#b00000;background:#24534c;box-shadow:inset 0 0 0 2px #6a9b91}
#systemSettingsRows{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;scrollbar-width:thin}
#systemSettingsRows:not(.system-potion-rows)::after{content:'⌃';height:68px;display:flex;align-items:flex-end;justify-content:center;color:#bdeee8;font:30px Tahoma;padding-bottom:7px;box-sizing:border-box}
.system-setting-row{display:grid;width:100%;grid-template-columns:54% 46%;align-items:center;min-height:60px;height:60px;padding:0;border:0;border-bottom:1px solid #153b3d;border-radius:0;text-align:left;background:#19484b;color:#eee;font:28px LDDialog,Tahoma,sans-serif}
.system-setting-row:nth-child(even){background:#1b5053}
.system-setting-row.selected{outline:3px ridge #9abfc1;outline-offset:-4px}
.system-setting-label{display:block;color:#ffff00;overflow:hidden;white-space:nowrap;padding:0 5px;min-width:0}
.system-setting-label>span{display:inline-block;min-width:max-content}
.system-setting-label.overflowing:hover>span,.system-setting-row.selected .system-setting-label.overflowing>span{animation:native-text-loop var(--native-text-duration,20s) linear var(--native-text-delay,0s) infinite}
.system-setting-value{padding:0 5px;white-space:nowrap;overflow:hidden;display:flex;align-items:center;gap:8px;min-width:0}
.system-settings-overlay{position:absolute;inset:0;z-index:5}
.system-choice-popup{position:absolute;right:0;top:25%;width:52%;background:#19484b;border:3px ridge #9bbab2;box-shadow:0 0 0 2px #28494a}
.system-choice-popup button,.system-channel-popup button,.system-medicine-popup button{width:100%;min-height:60px;border:0;border-bottom:2px ridge #7f9f9d;border-radius:0;display:flex;align-items:center;justify-content:center;gap:5px;background:#213f40e8;font:28px LDDialog,Tahoma,sans-serif;color:#eee;text-align:left;padding:4px;white-space:nowrap;overflow:hidden}
.system-choice-popup button.selected,.system-medicine-popup button.selected{color:#c00000;background:#8ca5a1e8}
.system-choice-popup kbd{font:18px Tahoma;background:#ffff00;color:red;padding:0}
.system-channel-popup{position:absolute;left:18%;top:10%;width:58%;background:#174649;border:2px ridge #99b6b1}
.system-channel-popup button{justify-content:space-between;color:#ffff00;background:#19484b;min-height:60px;font-size:27px}
.system-channel-popup button.selected{outline:3px ridge #99b6b1;outline-offset:-4px}
.system-medicine-popup{position:absolute;inset:2% 8%;border:3px ridge #9ab9b1;background:#082f31;overflow:auto}
.system-medicine-heading{height:60px;padding:0 6px;color:#e6e3bc;background:#528e82;font-size:28px}
.system-medicine-popup button{justify-content:flex-start;background:#19484b}
.system-medicine-popup .native-item-icon,.system-medicine-icon .native-item-icon{flex:none}
.system-potion-rows{padding:40px 13% 0 10%}
.system-potion-rows .system-setting-row{height:96px;min-height:96px;background:transparent;border:0;grid-template-columns:50% 50%;font-size:26px}
.system-potion-rows .system-setting-label{color:#eee}
.system-potion-rows .system-setting-value{min-height:60px;background:#19484b}
#panel.system-settings-window .panel-actions{flex:none}
#game #messages{height:calc(var(--system-chat-lines,1) * 26px)!important;max-height:calc(var(--system-chat-lines,1) * 26px)!important;overflow:hidden;line-height:26px}
#game #messages p{line-height:26px;min-height:26px;white-space:nowrap;overflow:hidden;text-overflow:clip;margin:0}
}
@media(max-height:420px){#panel.system-settings-window #panelTitle{font-size:20px;min-height:26px}.system-setting-tabs{height:42px}.system-setting-tabs button,.system-setting-row,.system-choice-popup button,.system-channel-popup button,.system-medicine-popup button{font-size:20px}.system-setting-row,.system-choice-popup button,.system-channel-popup button,.system-medicine-popup button{height:42px;min-height:42px}.system-potion-rows{padding-top:16px}.system-potion-rows .system-setting-row{height:68px;min-height:68px;font-size:18px}.system-potion-rows .system-setting-value{min-height:42px}}
@media(orientation:portrait){#panel.apk-window.system-settings-window{width:calc(100vw - 12px);height:90dvh;margin:5dvh auto}.system-setting-tabs button{flex:1;width:auto;font-size:21px}.system-setting-row,.system-choice-popup button,.system-channel-popup button{font-size:20px}.system-potion-rows{padding:20px 4%}.system-potion-rows .system-setting-row{font-size:19px}.system-channel-popup{left:7%;width:86%}.system-choice-popup{width:64%}}
