.tools-page { min-height:100vh; }
.tools-header { width:min(100% - 24px,760px); min-height:56px; margin:10px auto 0; display:flex; align-items:center; justify-content:space-between; padding:8px 10px 8px 16px; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:0 12px 34px rgba(27,10,18,.09); }
.tools-shell { width:min(100% - 24px,760px); margin:16px auto 32px; }
.tools-panel { padding:24px 18px 0; overflow:hidden; border:1px solid var(--line); border-radius:26px; background:#fffdf8; box-shadow:var(--shadow); }
.tools-panel h1 { font:700 clamp(30px,6vw,48px)/1 Georgia,serif; }
.tools-intro { margin-bottom:22px; color:var(--muted); }
.tool-block { padding:16px; margin-bottom:12px; border:1px dashed rgba(75,22,38,.2); border-radius:20px; }
.tool-heading { display:flex; justify-content:space-between; gap:20px; margin-bottom:14px; }
.tool-heading strong { display:block; color:var(--accent); font-size:16px; }
.tool-heading span:not(.step-mark) { display:block; margin-top:3px; color:var(--muted); font-size:13px; }
.step-mark { color:var(--gold); font:700 18px Georgia,serif; }
.file-control { display:block; padding:10px 12px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.file-control > span { display:block; margin-bottom:7px; color:var(--muted); font-size:10px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.file-control input { width:100%; color:var(--muted); }
.file-control input::file-selector-button { margin-right:10px; padding:7px 10px; border:1px solid var(--line); border-radius:9px; color:var(--accent); background:#faf7f2; font-weight:700; cursor:pointer; }
.tool-submit { width:100%; margin-top:11px; }
.tool-status { min-height:0; margin:9px 2px 0; color:var(--muted); font-size:13px; }
.tool-status:empty { display:none; }
.tool-result { margin-top:12px; padding:14px; border-radius:14px; background:#f7f2ea; overflow:auto; }
.tool-result dl { display:grid; grid-template-columns:minmax(90px,.4fr) 1fr; gap:7px 12px; margin:0; }
.tool-result dt { color:var(--muted); font-size:11px; text-transform:uppercase; }
.tool-result dd { margin:0; font-weight:650; }
.commit-action { width:100%; margin-top:14px; }
.commit-action:disabled { opacity:.65; cursor:default; }
.import-counts { display:flex; flex-wrap:wrap; gap:8px; }
.import-counts span { padding:6px 9px; border:1px solid var(--line); border-radius:999px; background:#fff; font-size:12px; }
.tools-footer { margin:18px -18px 0; padding:13px 18px; border-top:1px solid var(--line); text-align:center; }
.tools-footer a { color:var(--muted); font-size:12px; }
@media (max-width:600px) { .tools-header,.tools-shell{width:min(100% - 14px,760px)} .tools-shell{margin-top:7px} .tools-panel{padding:19px 12px 0;border-radius:18px}.tool-block{padding:12px;border-radius:16px}.tools-footer{margin-inline:-12px}.tools-intro{font-size:14px} }
