:root {
  --bg: #f4f8ff;
  --bg-soft: #e9f2ff;
  --panel: #ffffff;
  --line: #d8e6ff;
  --text: #0e2340;
  --muted: #53739b;
  --blue: #1a73e8;
  --blue-strong: #175ec3;
  --good: #1e8e3e;
  --bad: #d93025;
  --shadow: 0 16px 40px rgba(26, 60, 115, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 560px at 6% -10%, #cfe2ff 0%, transparent 70%),
    radial-gradient(850px 520px at 93% -15%, #d6f3ff 0%, transparent 72%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  padding: 26px;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  filter: blur(10px);
  border-radius: 999px;
  opacity: 0.55;
}

.orb-left {
  width: 260px;
  height: 260px;
  background: #b9ddff;
  left: -80px;
  top: 120px;
}

.orb-right {
  width: 340px;
  height: 340px;
  background: #c5ecff;
  right: -120px;
  bottom: 90px;
}

.topbar {
  max-width: 1120px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  animation: fadeUp 0.55s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.site-nav a {
  text-decoration: none;
  color: #32547f;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
}

.site-nav a:hover {
  background: #edf4ff;
  color: var(--blue-strong);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-link {
  text-decoration: none;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid #c8dcff;
  background: #eaf2ff;
  border-radius: 10px;
  padding: 8px 12px;
}

.top-link:hover {
  background: #dceaff;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #4fa5ff);
}

.brand-title {
  margin: 0;
  font-size: 20px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.2px;
}

.brand-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.health-badge {
  border-radius: 999px;
  padding: 9px 14px;
  background: #edf4ff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.health-badge[data-state="ok"] {
  color: var(--good);
  border-color: #b7ebc3;
  background: #edfaf0;
}

.health-badge[data-state="fail"] {
  color: var(--bad);
  border-color: #f2c4c1;
  background: #fff2f1;
}

.layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.control-panel,
.status-panel {
  width: 100%;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px;
  animation: fadeUp 0.7s ease;
}

.kicker {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
}

h1 {
  margin: 10px 0 8px;
  font-size: 34px;
  line-height: 1.22;
}

.lead {
  margin: 0 0 20px;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
}

input[type="text"],
input[type="number"],
input[type="file"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #cfe0fd;
  background: #f8fbff;
  color: var(--text);
  min-height: 44px;
  padding: 9px 12px;
  outline: none;
}

input:focus {
  border-color: #84b6ff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.16);
}

.file-field {
  margin-top: 12px;
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #4094ff);
  box-shadow: 0 10px 24px rgba(26, 115, 232, 0.25);
}

.btn-secondary {
  color: var(--blue-strong);
  background: #eaf2ff;
  border: 1px solid #c8dcff;
}

.status-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}

.status-text[data-type="ok"] {
  color: var(--good);
}

.status-text[data-type="error"] {
  color: var(--bad);
}

.status-panel h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-family: "Space Grotesk", sans-serif;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.status-item {
  background: #f6faff;
  border: 1px solid #d7e8ff;
  border-radius: 12px;
  padding: 10px;
}

.status-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.status-item strong {
  font-size: 16px;
}

.progress-wrap {
  margin-top: 16px;
  height: 12px;
  border-radius: 999px;
  background: #e6eefc;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #5ca0ff, #1a73e8);
  transition: width 0.2s ease;
}

.progress-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.outputs-link {
  margin-top: 14px;
  display: inline-block;
  font-weight: 700;
  color: var(--blue);
}

.outputs-link.disabled {
  pointer-events: none;
  color: #8aa8d6;
}

.preview-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
  align-items: start;
}

.preview-card {
  border: 1px solid #d7e8ff;
  border-radius: 16px;
  padding: 18px;
  background: #f7fbff;
  min-width: 0;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.preview-head h3 {
  margin: 0;
  font-size: 16px;
  font-family: "Space Grotesk", sans-serif;
  flex: 0 0 auto;
}

.preview-meta {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.preview-media-wrap {
  width: 100%;
  min-height: 460px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #edf5ff 0%, #dfeefe 100%);
  display: grid;
  place-items: center;
}

.preview-media {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
}

.preview-media[hidden] {
  display: none;
}

.preview-video {
  background: #091321;
}

.preview-placeholder {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.preview-actions-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-actions-row .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.storage-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #d7e8ff;
}

.storage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.storage-head h3 {
  margin: 0;
  font-size: 18px;
  font-family: "Space Grotesk", sans-serif;
}

.storage-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.storage-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.log-box {
  margin: 12px 0 0;
  min-height: 180px;
  max-height: 280px;
  overflow: auto;
  border: 1px solid #d2e3ff;
  border-radius: 12px;
  background: #f9fcff;
  color: #28466d;
  padding: 12px;
  font-size: 12px;
  line-height: 1.45;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .preview-media-wrap,
  .preview-media {
    min-height: 360px;
  }
}
@media (max-width: 900px) {
  body {
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .site-nav {
    order: 3;
  }

  .topbar-right {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 27px;
  }

  .status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .storage-grid {
    grid-template-columns: 1fr;
  }

  .preview-media-wrap,
  .preview-media {
    min-height: 320px;
  }
}

body {
  color: #102846;
}

.topbar {
  max-width: 1180px;
  margin-bottom: 24px;
  padding: 10px 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 230, 255, 0.9);
  box-shadow: 0 20px 48px rgba(26, 60, 115, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.layout {
  max-width: 1180px;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  align-items: start;
}

.panel {
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 56px rgba(26, 60, 115, 0.12);
}

.control-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.94)),
    linear-gradient(135deg, rgba(26, 115, 232, 0.06), transparent 55%);
}

.status-panel {
  position: sticky;
  top: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.95)),
    linear-gradient(145deg, rgba(26, 115, 232, 0.04), transparent 60%);
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.08);
  border: 1px solid rgba(26, 115, 232, 0.12);
}

h1 {
  margin-top: 14px;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

.lead {
  max-width: 58rem;
  font-size: 0.98rem;
  line-height: 1.72;
}

.field-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.field {
  gap: 8px;
}

.field span {
  font-weight: 700;
  color: #58789f;
}

input[type="text"],
input[type="number"],
input[type="file"],
textarea {
  border-radius: 16px;
  border: 1px solid rgba(155, 190, 240, 0.8);
  background: rgba(248, 251, 255, 0.95);
  min-height: 50px;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  outline: none;
}

.actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.btn {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 0.92rem;
}

.btn-secondary {
  background: linear-gradient(180deg, #f3f8ff, #e6f0ff);
}

.status-text {
  font-size: 0.9rem;
}

.status-hint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.drain-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(217, 48, 37, 0.18);
  background: #fff4f2;
  color: var(--bad);
  font-weight: 700;
}

.status-grid {
  gap: 12px;
}

.status-item {
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #f7fbff, #eff6ff);
}

.progress-wrap {
  margin-top: 18px;
  height: 14px;
}

.outputs-link {
  margin-top: 16px;
  margin-right: 12px;
}

.preview-card {
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff, #f1f7ff);
}

.preview-media-wrap {
  min-height: 400px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 14%, rgba(92, 160, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #eef6ff, #dfeefe);
}

.preview-media {
  min-height: 400px;
}

.preview-actions-row {
  gap: 10px;
}

.preview-actions-row .btn {
  flex: 1 1 180px;
}

.log-box {
  margin-top: 18px;
  min-height: 220px;
  max-height: 320px;
  border-radius: 18px;
  border: 1px solid rgba(181, 206, 241, 0.9);
  background: linear-gradient(180deg, #f7fbff, #eef5ff);
  padding: 14px;
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .status-panel {
    position: relative;
    top: 0;
  }

  .field-grid,
  .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar,
  .panel {
    border-radius: 20px;
  }

  .field-grid,
  .actions,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 20px;
  }

  .preview-media-wrap,
  .preview-media {
    min-height: 280px;
  }
}

.quickstart-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(246, 187, 120, 0.16), transparent 24%),
    radial-gradient(circle at 100% 10%, rgba(108, 178, 170, 0.16), transparent 26%),
    linear-gradient(180deg, #f8f1e6 0%, #efe3d4 100%);
  color: #1f1a14;
}

.quickstart-body .topbar {
  margin: 18px 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(680px, 760px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-radius: 26px;
  border: 1px solid rgba(205, 176, 142, 0.48);
  background: rgba(255, 250, 243, 0.78);
  box-shadow: 0 16px 34px rgba(63, 37, 9, 0.08);
}

.quickstart-body .brand-wrap {
  justify-self: start;
}

.quickstart-body .site-nav {
  justify-self: center;
  justify-content: center;
  width: 100%;
  max-width: 760px;
  min-height: 74px;
  padding: 12px 20px;
  border-radius: 20px;
}

.quickstart-body .brand-mark {
  box-shadow: 0 16px 28px rgba(201, 97, 43, 0.18);
}

.quickstart-body .site-nav a,
.quickstart-body .top-link {
  border-radius: 999px;
}

.quickstart-body .site-nav a {
  min-width: 88px;
  padding: 10px 14px;
  text-align: center;
}

.quickstart-body .site-nav a:hover,
.quickstart-body .top-link:hover {
  background: rgba(201, 97, 43, 0.08);
  color: #7a3f20;
}

.quickstart-body .topbar-right {
  justify-self: end;
  min-width: max-content;
}

.quickstart-body .health-badge {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(205, 176, 142, 0.52);
}

.quickstart-body .layout {
  padding: 22px 18px 26px;
  gap: 22px;
}

.quickstart-body .panel {
  border-radius: 30px;
  border-color: rgba(205, 176, 142, 0.58);
  background: rgba(255, 250, 243, 0.88);
  box-shadow: 0 20px 42px rgba(63, 37, 9, 0.08);
}

.quickstart-body .control-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 223, 185, 0.56), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(255, 244, 229, 0.9));
}

.quickstart-body .kicker {
  color: #9c4c25;
}

.quickstart-body h1,
.quickstart-body h2,
.quickstart-body h3 {
  color: #1f1a14;
  letter-spacing: -0.05em;
}

.quickstart-body .lead,
.quickstart-body .status-text,
.quickstart-body .preview-meta,
.quickstart-body .progress-text {
  color: rgba(46, 35, 23, 0.72);
}

.quickstart-body .field span {
  color: rgba(79, 61, 42, 0.74);
}

.quickstart-body .field input,
.quickstart-body .field textarea {
  min-height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(205, 176, 142, 0.62);
}

.quickstart-body textarea {
  min-height: 120px;
}

.quickstart-body .btn,
.quickstart-body .outputs-link,
.quickstart-body .drain-btn {
  min-height: 46px;
  border-radius: 16px;
  font-weight: 800;
}

.quickstart-body .btn-primary {
  box-shadow: 0 14px 28px rgba(201, 97, 43, 0.2);
}

.quickstart-body .status-item,
.quickstart-body .preview-card {
  border-radius: 22px;
  background: rgba(255, 252, 248, 0.96);
  border-color: rgba(205, 176, 142, 0.58);
}

.quickstart-body .preview-media-wrap {
  min-height: 320px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 15%, rgba(242, 190, 138, 0.16), transparent 24%),
    linear-gradient(180deg, #fff7eb, #f4e7d7);
}

.quickstart-body .log-box {
  border-radius: 20px;
  background: #231d18;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .quickstart-body .topbar {
    margin: 12px 12px 0;
    grid-template-columns: 1fr;
  }

  .quickstart-body .layout {
    padding: 14px 12px 20px;
  }

  .quickstart-body .site-nav,
  .quickstart-body .topbar-right,
  .quickstart-body .brand-wrap {
    justify-self: stretch;
  }

  .quickstart-body .site-nav {
    max-width: none;
  }
}
