@import url("/css/buttons.css");
@import url("/css/status.css");
@import url("/css/responsive.css");

:root {
  color-scheme: light;
  --bg: #eef1f6;
  --bg-accent: #e7ecfa;
  --surface: #ffffff;
  --text: #131a26;
  --muted: #6b7686;
  --line: #e6e9ef;
  --line-strong: #d6dbe4;
  --primary: #3257e8;
  --primary-dark: #2442c4;
  --primary-soft: #eef2ff;
  --success: #157f4d;
  --danger: #c1362b;
  --warning: #9a6700;
  --shadow-sm: 0 1px 2px rgba(19, 26, 38, 0.06);
  --shadow-md: 0 10px 30px rgba(28, 40, 71, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1100px 520px at 100% -8%, var(--bg-accent), transparent 60%),
    radial-gradient(900px 460px at -10% 0%, #f3e9ff, transparent 55%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.brand-text p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13.5px;
}

.account-area {
  text-align: right;
  color: var(--muted);
  font-size: 14px;
}

.account-email {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 48px;
}

.workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.step-card:hover {
  box-shadow: var(--shadow-md);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
}

.step-title {
  flex: 1;
  min-width: 0;
}

.step-title p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.selected-file {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 16px 18px;
  background: #f9fafc;
}

.selected-file.empty {
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.selected-file:not(.empty) {
  border-style: solid;
  border-color: #c8d6fb;
  background: var(--primary-soft);
}

.file-name {
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.file-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
}

.empty-state p {
  margin: 10px 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.hidden {
  display: none !important;
}
