@charset "UTF-8";
:root { color-scheme:light; --ink:#27251f; --muted:#6d5d49; --line:#514736; --paper:#eae1cf; --panel:#eee4d1; --accent:#c98f6d; }
* { box-sizing:border-box; }
html,body { margin:0; padding:0; min-height:0; background:transparent; color:var(--ink); font:18px/1.65 'KaiTi','STKaiti','楷体',serif; }
body { padding:3px 4px 8px; overflow-wrap:anywhere; }
[hidden],.displayNone { display:none!important; }
.displayFlex { display:flex!important; }
button,input,select { font:inherit; color:inherit; }
button,.tank-button,label.tank-upload { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:7px 16px; min-height:42px; border:2px solid var(--line); border-radius:0; box-shadow:3px 3px 0 #b7a68a; background:#f1e5d0; color:#453527; cursor:pointer; text-decoration:none; }
button:hover:not(:disabled),.tank-button:hover { background:#dfceb0; }
button:active:not(:disabled) { translate:1px 1px; box-shadow:1px 1px 0 #b7a68a; }
button:disabled { opacity:.42; cursor:not-allowed; }
.tank-primary,button[aria-selected=true],.PageSwitchButtonSelected { background:var(--accent); }
:focus-visible { outline:2px solid #985c43; outline-offset:4px; }
input:not([type=checkbox]):not([type=range]):not([type=file]),select { min-width:0; max-width:100%; min-height:40px; padding:5px 9px; background:#f5eedf; border:2px solid #99876b; border-radius:0; }
input[type=number] { width:100px; }
input[type=range] { width:100%; min-width:80px; accent-color:#985c43; }
input[type=checkbox] { width:18px; height:18px; accent-color:#985c43; vertical-align:middle; }
input[type=file] { max-width:100%; }
canvas,img { max-width:100%; }
canvas { height:auto; object-fit:contain; }
p { margin:8px 0; }
h2,h3 { margin:0 0 12px; font-size:22px; }
.tank-tabs,.tank-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:0 0 22px; }
.tank-tabs { padding-bottom:20px; border-bottom:1px solid #b6a78b; }
.tank-tabs button { min-width:100px; }
.tank-panel { flex-direction:column; gap:22px; }
.tank-panel>* { min-width:0; }
.tank-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.tank-preview { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; min-height:290px; padding:20px; border:3px solid var(--line); background:#eee4d1; position:relative; }
.tank-preview canvas { display:block; max-width:100%; max-height:460px; width:auto; }
.tank-preview[data-input] { cursor:pointer; }
.tank-preview.is-dragging { background:#dfc7a8; outline:2px solid #985c43; }
.tank-preview.is-input-target,.cloak-meta.is-input-target { outline:2px solid #985c43; outline-offset:3px; }
.tank-field { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:12px 0; }
.tank-field>label:first-child { min-width:88px; }
.tank-field>input[type=range] { flex:1; }
.tank-note { color:var(--muted); font-size:15px; }
.tank-preview-label { font-size:18px; }
.tank-empty { text-align:center; color:var(--muted); }
.tank-settings { padding:0; }
details { margin:6px 0; }
summary { cursor:pointer; margin-bottom:12px; }
.tank-actions { margin-top:20px; margin-bottom:5px; }
.tank-status { min-height:1.65em; color:var(--muted); }
@media(max-width:600px) {
 html,body { font-size:17px; }
 .tank-grid { grid-template-columns:1fr; gap:20px; }
 .tank-preview { min-height:220px; padding:14px; }
 .tank-preview canvas { max-height:360px; }
 .tank-field { gap:8px; }
 .tank-tabs,.tank-actions { gap:10px; }
 button,.tank-button,label.tank-upload { padding:6px 12px; }
}
