/* Base Theme */
:root {
  --bg: #f6f7fb;
  --card-bg: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --border: #e5e7eb;
  --accent: #0ea5e9;
  --accent-dark: #0377bd;
  --header: #0b1325;
  --preflight-bg: #0f172a;
  --preflight-text: #e5e7eb;
  --green: #25a55b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { width: 1100px; max-width: calc(100% - 40px); margin: 0 auto; }

/* Header */
.site-header {
  background: var(--header);
  color: #cbd5e1;
  padding: 18px 0 8px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.title {
  margin: 0;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-weight: 700;
  font-size: 22px;
  color: #e2e8f0;
}
.chip-strip { display: flex; gap: 18px; align-items: center; }
.chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 18px;
  border: 3px dashed #94a3b8;
  color: #b8c3d1;
  background: rgba(148, 163, 184, 0.06);
  font-weight: 500;
}
.updated { margin: 6px auto 0; color: #94a3b8; font-size: 12px; text-align: left; width: 1100px; max-width: calc(100% - 40px); }

/* Grid Layout */
.grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; padding: 20px 0 28px; }
.main-col, .aside-col { display: flex; flex-direction: column; gap: 18px; }

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  padding: 16px 18px;
}
.card h3 { margin: 2px 0 8px; font-size: 18px; }
.card h4 { margin: 14px 0 8px; font-size: 16px; }
.card p { margin: 8px 0; }

/* Author */
.author { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--border); }
.author-name { margin: 0; font-size: 18px; }
.author-meta { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* Lists */
.tick-list, .dash-list { margin: 8px 0 4px; padding-left: 18px; }
.tick-list li { list-style: none; position: relative; margin: 6px 0; }
.tick-list li::before { content: "✔"; color: var(--green); position: absolute; left: -18px; }
.dash-list li { list-style: none; position: relative; margin: 6px 0; }
.dash-list li::before { content: "—"; color: var(--muted); position: absolute; left: -18px; }

.divider { height: 1px; background: var(--border); margin: 10px 0 6px; }
.subhead { margin: 2px 0 6px; color: #0f172a; font-weight: 600; }
.links { margin: 0; padding-left: 18px; }
.links li { margin: 4px 0; }
.links a { color: var(--accent-dark); text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* Preflight Banner */
.preflight {
  background: var(--preflight-bg);
  color: var(--preflight-text);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 10px 0 12px;
}

/* Steps */
.step-list { margin: 0; padding-left: 18px; }
.step-list > li { margin: 8px 0 14px; }
.step-list h4 { margin: 0 0 4px; }

/* CTA */
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.1);
}
.cta:hover { background: var(--accent-dark); }

/* Newsletter */
.card-sub { background: #f8fafc; border: 1px dashed var(--border); border-radius: 8px; padding: 14px; margin-top: 6px; }
.signup { display: flex; gap: 8px; margin: 10px 0; }
.signup input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
.signup button { padding: 10px 14px; border: 0; background: #22c55e; color: #fff; border-radius: 6px; font-weight: 600; }
.signup button:hover { background: #16a34a; }
.small { font-size: 12px; }
.muted { color: var(--muted); }

/* Footer */
.site-footer { padding-bottom: 30px; color: var(--muted); font-size: 13px; }

/* Responsiveness */
@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
  .updated, .header-inner, .site-footer { width: auto; }
}

/* Import Page (index1) */
.import-page {
  background: #0f172a;
  color: #e5e7eb;
}
.import-page .container { width: 980px; max-width: calc(100% - 40px); margin: 0 auto; padding: 20px 0 32px; }
 
 .import-page .topbar { width: 980px; max-width: calc(100% - 40px); margin: 16px auto 0; display: flex; align-items: center; justify-content: space-between; color: #cbd5e1; }
.import-page .icon-btn { background: transparent; border: 0; padding: 6px; border-radius: 8px; cursor: pointer; }
.import-page .icon-btn:hover { background: rgba(148,163,184,0.12); }
.import-page .step { font-size: 13px; color: #9ca3af; }
.import-page .help { color: #9ca3af; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.import-page .help-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #111827; border: 1px solid #334155; color: #93c5fd; font-weight: 700; }

.import-page .title { margin: 22px 0 6px; font-size: 26px; font-weight: 700; color: #f8fafc; text-align: center; }
 .import-page .srp-sub { margin: 2px 0 14px; text-align: center; color: #ffd24a; font-size: 14px; line-height: 1.45; }
 .import-page .instructions { margin: 0 0 10px; padding-left: 20px; color: #94a3b8; }
 .import-page .instructions li { margin: 8px 0; }

.import-page .card { background: #1f2937; border: 1px solid #2f3b4d; border-radius: 12px; box-shadow: 0 6px 12px rgba(0,0,0,.3); padding: 18px; }
 .import-page .tabs { display: flex; gap: 12px; margin: 4px 0 12px; }
 .import-page .tab { background: #0f172a; border: 1px solid #334155; color: #cbd5e1; border-radius: 9999px; padding: 10px 16px; font-weight: 600; font-size: 14px; cursor: pointer; }
 .import-page .tab.active { background: #111827; border-color: #475569; color: #e5e7eb; }
 
 .import-page .word.invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.25); }
 .import-page .invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.25); }
 .import-page .valid { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
 .import-page .inputs { margin-top: 12px; }
 .import-page .grid { display: grid; gap: 16px 24px; }
 .import-page .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
 .import-page .item { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; }
 .import-page .idx { color: #94a3b8; }
 .import-page .word, .import-page .pk {
   height: 48px; padding: 12px 16px; background: #0b1220; border: 1px solid #334155; border-radius: 10px; color: #e5e7eb; font-size: 16px;
 }
 .import-page .word::placeholder, .import-page .pk::placeholder { color: #64748b; }
 .import-page .word:focus, .import-page .pk:focus { outline: none; border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,0.25); }
 
 .import-page .actions { display: flex; justify-content: center; padding: 18px 0 0; }
 .import-page .primary { background: #1f6ed7; color: #fff; border: 0; border-radius: 10px; padding: 12px 18px; min-width: 220px; height: 48px; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: inset 0 -1px 0 rgba(255,255,255,.05), 0 4px 12px rgba(31,110,215,.25); }
 .import-page .primary:hover { background: #1a60bf; }
 .import-page .primary:disabled { background: #334155; color: #94a3b8; cursor: not-allowed; box-shadow: none; }
@media (max-width: 780px) {
  .import-page .topbar, .import-page .container { width: auto; }
  .import-page .grid.cols-3 { grid-template-columns: 1fr; }
}