@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Inter:wght@400;500;600;700&display=swap');
:root {
  --bg:#14171c; --panel:#1c2129; --panel-2:#232a34; --accent:#c9a15a;
  --text:#ece8e0; --sub:#8a93a3; --border:rgba(255,255,255,0.08); --danger:#c96a5a; --ok:#5fb37a;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family:'Inter', system-ui, sans-serif; }
header {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:16px 76px; border-bottom:1px solid var(--border); text-align:center;
}
.brand { display:flex; align-items:center; justify-content:center; gap:10px; font-weight:700; }
.mark { width:26px; height:26px; border-radius:50%; border:2px dashed var(--accent); display:flex; align-items:center; justify-content:center; font-family:'IBM Plex Mono', monospace; font-size:9px; color:var(--accent); }
.tag { font-size:12px; color:var(--sub); font-family:'IBM Plex Mono', monospace; margin-top:4px; }

.home-tile {
  position:fixed; top:10px; left:10px; z-index:99999;
  width:52px; height:52px; border-radius:14px;
  background:rgba(15,15,15,0.85); border:1px solid rgba(255,255,255,0.12);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  text-decoration:none; color:#fff; box-shadow:0 2px 10px rgba(0,0,0,0.4);
  backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
}
.home-tile:active { background:rgba(255,255,255,0.15); }
.home-tile-icon { width:20px; height:20px; color:var(--accent); }
.home-tile-label { font-size:9px; font-weight:600; letter-spacing:0.03em; text-transform:uppercase; color:#fff; }

.wrap { max-width:640px; margin:0 auto; padding:20px 20px 60px; }
.section-title { font-size:12px; text-transform:uppercase; letter-spacing:0.08em; color:var(--sub); margin:24px 0 10px; }
.section-title:first-child { margin-top:0; }

.token-bar { display:flex; gap:10px; align-items:center; background:var(--panel); border-radius:10px; padding:14px 16px; margin-bottom:12px; border:1px solid var(--border); }
.token-bar input { flex:1; padding:9px 11px; border-radius:6px; border:1px solid var(--border); background:var(--bg); color:var(--text); font-family:'IBM Plex Mono', monospace; font-size:13px; }
.token-status { font-size:11px; font-family:'IBM Plex Mono', monospace; white-space:nowrap; }
.token-status.set { color:var(--ok); }
.token-status.unset { color:var(--sub); }

.key-help-toggle { display:block; background:none; border:none; color:var(--accent); font-size:12.5px; cursor:pointer; padding:0 2px; margin-bottom:14px; text-decoration:underline; text-underline-offset:3px; }
.key-help { background:var(--panel); border:1px solid var(--border); border-radius:9px; padding:16px 18px; margin-bottom:20px; font-size:13px; line-height:1.6; }
.key-help ol { margin:0 0 12px; padding-left:20px; }
.key-help li { margin-bottom:9px; }
.key-help li:last-child { margin-bottom:0; }
.key-help a { color:var(--accent); }
.key-help-note { font-size:11.5px; color:var(--sub); border-top:1px solid var(--border); padding-top:10px; }

.tabs { display:flex; gap:6px; margin-bottom:18px; }
.tab-btn { padding:9px 16px; border-radius:7px; border:1px solid var(--border); background:transparent; color:var(--sub); font-size:13px; cursor:pointer; }
.tab-btn.active { background:var(--panel-2); color:var(--text); border-color:var(--accent); }

.field { margin-bottom:14px; }
.field label { display:block; font-size:12px; color:var(--sub); margin-bottom:5px; }
.field textarea, .field select, .field input[type="text"], .field input[type="file"] {
  width:100%; padding:10px 11px; border-radius:7px; border:1px solid var(--border);
  background:var(--panel); color:var(--text); font-size:13.5px; font-family:'Inter', sans-serif;
}
.field textarea { resize:vertical; min-height:120px; }
.row { display:flex; gap:12px; align-items:flex-end; }
.row .field { flex:1; margin-bottom:14px; }
.swap-btn { padding:10px 12px; border-radius:7px; border:1px solid var(--border); background:var(--panel); color:var(--accent); cursor:pointer; font-size:16px; margin-bottom:14px; }

.mock-toggle { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--sub); margin-bottom:16px; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 22px; border-radius:8px; border:1px solid var(--accent); background:var(--accent); color:#14171c; font-weight:600; font-size:14px; cursor:pointer; }
.btn.ghost { background:transparent; color:var(--text); border-color:var(--border); }
.btn:disabled { opacity:0.4; cursor:not-allowed; }

.result-box { background:var(--panel); border:1px solid var(--border); border-radius:9px; padding:14px 16px; margin-top:16px; font-size:13.5px; line-height:1.6; white-space:pre-wrap; min-height:60px; }
.status-line { font-size:12px; color:var(--sub); margin-top:10px; font-family:'IBM Plex Mono', monospace; }
.status-line.error { color:var(--danger); }
.status-line.ok { color:var(--ok); }

.dropzone { border:2px dashed var(--border); border-radius:12px; padding:30px 20px; text-align:center; cursor:pointer; margin-bottom:14px; }
.dropzone:hover { border-color:var(--accent); }
.dropzone .filename { margin-top:8px; font-size:12px; color:var(--accent); font-family:'IBM Plex Mono', monospace; }

.disclaimer { margin-top:26px; padding:14px 16px; border-radius:9px; background:var(--panel); border:1px solid var(--border); font-size:12px; color:var(--sub); line-height:1.6; }
