:root {
  --bg: #f6f7f9; --panel: #ffffff; --text: #1d2330; --muted: #7a8394;
  --line: #d9dde4; --accent: #e8890c; --accent-soft: #fff3e0; --shadow: 0 8px 28px rgba(29,35,48,.08);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171c; --panel: #1c2027; --text: #e6e9ee; --muted: #8b93a3;
    --line: #2f3540; --accent: #f0a03a; --accent-soft: #3a2c18; --shadow: 0 8px 28px rgba(0,0,0,.35); }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 32px 16px 48px; }
header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
header h1 { font-size: 22px; margin: 0; letter-spacing: .2px; }
header .logo { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
header .muted { color: var(--muted); font-size: 13px; }
header button { margin-left: auto; }
button { border: 1px solid var(--line); background: var(--panel); color: inherit; border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { display: block; cursor: pointer; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px 18px; transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.tile .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.tile .ico svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile h2 { font-size: 17px; margin: 0 0 4px; }
.tile p { margin: 0; color: var(--muted); font-size: 13px; }
.tile .host { display: block; margin-top: 12px; font-size: 12px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tile .soon { position: absolute; top: 14px; right: 14px; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.tile .sub { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tile .sub span { font-size: 12px; background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 2px 8px; }
.login { max-width: 340px; margin: 18vh auto 0; display: flex; flex-direction: column; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; }
.login h1 { margin: 0 0 4px; font-size: 20px; }
.login input { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; background: var(--bg); color: inherit; }
.login .err { color: #c8442b; font-size: 13px; min-height: 18px; }
.stub { max-width: 520px; margin: 14vh auto 0; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 36px 24px; }
.stub .ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.stub .ico svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stub h1 { margin: 0 0 6px; font-size: 22px; }
.stub p { color: var(--muted); margin: 0 0 20px; }
.stub a { color: var(--accent); text-decoration: none; font-weight: 600; }
.tile .links { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.tile .links a { font-size: 13px; color: var(--accent); text-decoration: none; }
.tile .links a:hover { text-decoration: underline; }
.stub .toollist { display: flex; flex-direction: column; gap: 8px; margin: 0 0 22px; text-align: left; }
.stub .toollist a { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--text); text-decoration: none; font-weight: 600; }
.stub .toollist a:hover { border-color: var(--accent); }
.stub .toollist a small { display: block; font-weight: 400; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; margin-top: 2px; word-break: break-all; }
