:root {
  --ink: #172033;
  --muted: #687386;
  --line: #d9dee7;
  --panel: #ffffff;
  --field: #f7f8fb;
  --blue: #2563eb;
  --green: #059669;
  --shadow: 0 18px 42px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #edf0f5;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 100vh;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.brand {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label,
.status-title {
  color: #30394a;
  font-size: 13px;
  font-weight: 700;
}

.path-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
}

input,
select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
}

button {
  height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  border-color: #9aa6b8;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.primary,
.accent {
  height: 42px;
  color: #fff;
  border: 0;
  font-weight: 700;
}

.primary {
  background: var(--blue);
}

.accent {
  background: var(--green);
}

.status-card,
.data-card {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#status,
.source-info {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
}

.preview-area {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  padding: 22px;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.preview-toolbar span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.preview-shell {
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: auto;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 32, 51, 0.05) 1px, transparent 1px),
    #e4e8ef;
  background-size: 24px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

iframe {
  width: 900px;
  min-height: 2200px;
  background: #ffffff;
  border: 0;
  box-shadow: var(--shadow);
  flex: 0 0 900px;
}
