:root { --bg:#f4f1ea; --ink:#20242a; --muted:#68707a; --line:#c9c0b4; --accent:#1e6b5f; --danger:#a32929; --panel:#fffdf8; }
body { margin:0; font-family: ui-serif, Georgia, "Times New Roman", serif; background:var(--bg); color:var(--ink); }
main { max-width:1120px; margin:0 auto; padding:28px; }
header { display:flex; gap:16px; align-items:flex-end; justify-content:space-between; margin-bottom:18px; border-bottom:1px solid var(--line); padding-bottom:14px; }
h1 { font-size:28px; line-height:1; margin:0; font-weight:700; }
.meta { color:var(--muted); font-size:14px; margin-top:8px; }
.status { font:14px ui-monospace, Menlo, monospace; color:var(--accent); }
.grid { display:grid; grid-template-columns: minmax(0, 1fr) 340px; gap:18px; align-items:start; }
.grid.local-grid { grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr); }
.editor-panel { min-height:520px; display:flex; flex-direction:column; }
textarea { width:100%; min-height:480px; box-sizing:border-box; resize:vertical; padding:14px; border:1px solid var(--line); border-radius:6px; background:var(--panel); color:var(--ink); font:14px/1.5 ui-monospace, Menlo, monospace; flex:1; }
textarea.batch-input { min-height:420px; margin-top:8px; }
.side, .panel { background:var(--panel); border:1px solid var(--line); border-radius:6px; padding:14px; box-sizing:border-box; }
.side { align-self:start; }
.side h2, .panel h2 { font-size:16px; margin:0 0 10px; }
.hint { font-size:14px; color:var(--muted); line-height:1.55; margin:0 0 12px; }
.url { font:12px/1.45 ui-monospace, Menlo, monospace; word-break:break-all; background:#efe8dc; padding:10px; border-radius:4px; }
.fields { display:grid; grid-template-columns: 72px 1fr; gap:7px 10px; margin-top:10px; font-size:13px; line-height:1.45; }
.fields code { font:13px ui-monospace, Menlo, monospace; color:var(--accent); }
.fields span { color:var(--muted); }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:5px; background:#fffaf0; }
table { width:100%; border-collapse:collapse; font-size:12px; line-height:1.35; }
th, td { padding:7px 8px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { color:var(--muted); font-weight:600; background:#efe8dc; white-space:nowrap; }
td { word-break:break-word; }
tbody tr:last-child td { border-bottom:0; }
.empty { color:var(--muted); text-align:center; }
.block-gap { margin-top:12px; }
.block-action { margin-top:12px; }
.toolbar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.toolbar .button { margin-top:0; }
.usage-panel { margin-bottom:16px; }
.section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:10px; }
.wide-table table { table-layout:fixed; }
.wide-table th:nth-child(1), .wide-table td:nth-child(1) { width:190px; }
.wide-table th:nth-child(2), .wide-table td:nth-child(2) { width:72px; }
.wide-table th:nth-child(3), .wide-table td:nth-child(3) { width:auto; }
.proxy-list { display:grid; gap:10px; }
.proxy-card { border:1px solid var(--line); border-radius:5px; background:#fffaf0; padding:10px; }
.proxy-card.disabled { opacity:.72; background:#f5efe4; }
.proxy-card-head, .proxy-card-foot { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.proxy-card-head strong { font-size:14px; }
.proxy-card-head span, .proxy-card-foot span { color:var(--muted); font-size:12px; white-space:nowrap; }
.proxy-url { margin:9px 0; padding:9px; border-radius:4px; background:#efe8dc; color:var(--accent); font:12px/1.45 ui-monospace, Menlo, monospace; word-break:break-all; }
.proxy-actions { display:flex; align-items:center; gap:7px; }
.proxy-actions form { margin:0; }
.proxy-card .copy-proxy, .proxy-card .toggle-proxy { margin-top:0; padding:7px 10px; }
.copy-proxy.copied { background:var(--accent); }
.proxy-empty { border:1px solid var(--line); border-radius:5px; padding:14px; background:#fffaf0; }
button, .button { appearance:none; border:0; border-radius:5px; background:var(--accent); color:white; padding:10px 14px; font-size:14px; cursor:pointer; margin-top:12px; text-decoration:none; display:inline-block; }
button.secondary, .button.secondary { background:#3d4652; }
button.danger { background:var(--danger); }
.inline-form { display:inline; margin-left:8px; }
input { width:100%; box-sizing:border-box; padding:11px 12px; border:1px solid var(--line); border-radius:5px; background:#fffdf8; color:var(--ink); font:15px ui-serif, Georgia, serif; }
label { display:block; font-size:14px; color:var(--muted); margin-top:12px; }
pre { white-space:pre-wrap; word-break:break-word; background:#efe8dc; border-radius:5px; padding:14px; font:13px/1.5 ui-monospace, Menlo, monospace; }
#jsonState { margin-top:10px; font:13px ui-monospace, Menlo, monospace; }
.ok { color:var(--accent); }
.bad { color:var(--danger); }
.login { max-width:420px; margin:12vh auto 0; }
@media (max-width: 860px) { .grid, .grid.local-grid { grid-template-columns: 1fr; } header { display:block; } }
