/* Extracted from index.html inline styles so the project can be packaged locally */
:root {
  color-scheme: dark;
  --bg: #0b0d0f;
  --panel: #15181c;
  --accent: #d4a44a;
  --accent-soft: #7e5b1d;
  --text: #f5f5f5;
  --muted: #888;
  --border: #2a2f35;
  --danger: #d45252;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #20252b 0%, var(--bg) 55%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  height: 100%;
}
body {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
#app {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.card {
  width: 100%;
  height: 100%;
  max-height: 720px;
  background: rgba(10, 13, 16, 0.92);
  border-radius: 18px;
  border: 1px solid rgba(212, 164, 74, 0.25);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.75),
    0 0 0 1px rgba(0,0,0,0.6) inset;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px) saturate(120%);
  position: relative;
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rune-gem {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: radial-gradient(circle at 30% 10%, #fffbe6 0, #f4d58d 25%, #8c6420 70%, #22150b 100%);
  box-shadow:
    0 0 10px rgba(212,164,74,0.8),
    0 0 40px rgba(212,164,74,0.5);
  position: relative;
  flex-shrink: 0;
}
.rune-gem::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6) inset;
}
.step-indicator {
  font-size: 11px;
  color: var(--muted);
}
.main-layout {
  display: grid;
  grid-template-rows: minmax(0,1.1fr) minmax(0,1.1fr) auto;
  gap: 6px;
  height: 100%;
}
.panel {
  background: radial-gradient(circle at top left, #22272f 0%, #121519 45%, #0b0d10 100%);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.8) inset,
    0 30px 40px rgba(0,0,0,0.7);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.chip {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  border: 1px solid rgba(212,164,74,0.3);
  color: var(--accent);
  background: radial-gradient(circle at top, rgba(212,164,74,0.18), rgba(212,164,74,0.03));
}
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}
select, input[type="number"] {
  width: 100%;
  padding: 5px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(6,7,9,0.95);
  color: var(--text);
  font-size: 12px;
  appearance: none;
  outline: none;
}
select:focus, input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(212,164,74,0.6);
}
.small-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.small-row > div {
  flex: 1;
}
.toggle-row {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}
.toggle {
  flex: 1;
  text-align: center;
  padding: 4px 0;
  font-size: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.toggle.active {
  border-color: rgba(212,164,74,0.8);
  color: var(--accent);
  background: radial-gradient(circle at top, rgba(212,164,74,0.25), rgba(212,164,74,0.05));
  box-shadow: 0 0 16px rgba(212,164,74,0.35);
}
.scroll {
  overflow: hidden auto;
  padding-right: 2px;
}
.scroll::-webkit-scrollbar {
  width: 3px;
}
.scroll::-webkit-scrollbar-thumb {
  background: rgba(128,128,128,0.5);
  border-radius: 999px;
}
.summary-text {
  font-size: 11px;
  line-height: 1.35;
  color: #d0d3d8;
  white-space: pre-line;
}
.summary-text strong {
  color: var(--accent);
  font-weight: 600;
}
.summary-text em {
  color: var(--muted);
  font-style: normal;
}
.bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.transport-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.2fr;
  gap: 4px;
}
button {
  border-radius: 999px;
  border: none;
  font-size: 12px;
  padding: 7px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #22262b;
  color: var(--text);
  outline: none;
}
button.primary {
  background: radial-gradient(circle at top, #f1d18a 0%, #d4a44a 30%, #7e5b1d 100%);
  color: #1b1004;
  font-weight: 600;
  box-shadow:
    0 0 18px rgba(212,164,74,0.7),
    0 10px 25px rgba(0,0,0,0.8);
}
button.primary:active {
  transform: translateY(1px);
  box-shadow:
    0 0 10px rgba(212,164,74,0.7),
    0 6px 16px rgba(0,0,0,0.9);
}
button.outline {
  border: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(circle at top, #262b32 0%, #16191f 60%, #101216 100%);
}
button.danger {
  background: radial-gradient(circle at top, #f28888 0%, #d45252 35%, #782323 100%);
  color: #fffbfb;
  font-weight: 600;
}
button.small {
  font-size: 11px;
  padding: 5px 7px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}
.icon-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #46d37b;
  box-shadow: 0 0 8px rgba(70,211,123,0.9);
}
.icon-wave {
  width: 16px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cda35b 0%, #f4e0ac 40%, #cda35b 100%);
  mask-image: radial-gradient(circle at 0 50%, transparent 40%, #000 41% 59%, transparent 60%),
              radial-gradient(circle at 50% 50%, transparent 40%, #000 41% 59%, transparent 60%),
              radial-gradient(circle at 100% 50%, transparent 40%, #000 41% 59%, transparent 60%);
  mask-size: 40% 100%;
  mask-position: 0 0, 50% 0, 100% 0;
  mask-repeat: no-repeat;
}
.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.progress-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #191c21;
  overflow: hidden;
}
.progress-inner {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4d58d, #d4a44a, #f4d58d);
  box-shadow: 0 0 10px rgba(212,164,74,0.9);
  transition: width 0.15s linear;
}
.export-row {
  display: flex;
  gap: 4px;
}
.status-label {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}
.status-label span {
  color: var(--accent);
}
.status-label.loading {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
}
.center-status {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
}
.center-status-inner {
  max-width: 80%;
  text-align: center;
  background: radial-gradient(circle at top, rgba(11, 13, 16, 0.98), rgba(7, 8, 10, 0.96));
  border-radius: 16px;
  border: 1px solid rgba(212,164,74,0.6);
  padding: 16px 18px;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.9),
    0 0 30px rgba(212,164,74,0.35);
}
.center-status-main {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--accent);
}
.center-status-sub {
  font-size: 13px;
  color: #d0d3d8;
  line-height: 1.4;
}