.forge-app,
.forge-app * {
  box-sizing: border-box;
}

.forge-app {
  --bg: #0b1020;
  --bg2: #0f162b;
  --panel: #121b33;
  --panel2: #18233f;
  --line: #273554;
  --text: #eaf0ff;
  --muted: #9fb0d6;
  --brand: #5f86ff;
  --brand2: #45d0c3;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at -15% -20%, rgba(93, 58, 202, 0.24), transparent 58%),
    radial-gradient(900px 440px at 120% -10%, rgba(65, 115, 255, 0.2), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #0c1427 50%, #0d172d 100%);
  font-family: "Inter", "Pretendard", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
}

.forge-rail {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 22, 42, 0.95), rgba(12, 20, 36, 0.9));
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.forge-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4f7ff;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  padding: 6px 4px;
}

.forge-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #6f58ff, #4a82ff 60%, #34d0be);
  box-shadow: 0 8px 20px rgba(65, 95, 198, 0.45);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.forge-brand:hover .forge-logo {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 26px rgba(65, 95, 198, 0.5);
}

.forge-quick {
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #3a4f7a;
  color: #d7e3ff;
  text-decoration: none;
  background: linear-gradient(180deg, #1b2a4d, #182545);
  font-weight: 700;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.forge-quick:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.forge-nav {
  display: grid;
  gap: 6px;
}

.forge-nav a {
  color: #9fb1d8;
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.forge-nav a:hover {
  background: #1c2947;
  color: #e7efff;
}

.forge-nav a.active {
  background: linear-gradient(180deg, #243459, #1d2a47);
  border-color: #344a73;
  color: #f0f5ff;
}

.forge-rail-bottom {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.forge-user {
  font-size: 12px;
  color: #dbe6ff;
  border: 1px solid #364c78;
  border-radius: 999px;
  padding: 6px 10px;
  background: #1a2747;
}

.forge-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.forge-topbar {
  height: 60px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: rgba(13, 22, 40, 0.7);
  backdrop-filter: blur(8px);
}

.forge-title {
  font-size: 14px;
  color: #d8e4ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.forge-content {
  overflow: auto;
  padding: 28px;
}

.forge-card {
  background: linear-gradient(180deg, #141f39, #121b30);
  border: 1px solid #2b3a5b;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(3, 8, 20, 0.4);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.forge-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(3, 8, 20, 0.48);
}

.forge-hero {
  padding: 26px;
}

.forge-hero h1 {
  font-size: clamp(26px, 2.6vw, 38px);
  margin: 0 0 10px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.forge-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  max-width: 70ch;
}

.forge-composer {
  margin-top: 14px;
  padding: 16px;
}

.forge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.forge-input-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: flex-end;
}

.forge-input,
.forge-textarea,
.forge-select {
  width: 100%;
  border: 1px solid #34486f;
  background: #0f1728;
  color: #ecf2ff;
  border-radius: 11px;
  padding: 11px 13px;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.forge-input:focus,
.forge-textarea:focus,
.forge-select:focus {
  outline: none;
  border-color: #6289ff;
  box-shadow: 0 0 0 3px rgba(88, 128, 242, 0.2);
}

.forge-btn {
  border: 1px solid #33486f;
  background: #1a2748;
  color: #dce7ff;
  border-radius: 11px;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, background-color 0.14s ease;
}

.forge-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.forge-btn.primary {
  border: 0;
  background: linear-gradient(135deg, var(--brand), #4b72ef 58%, var(--brand2));
  color: #fff;
}

.forge-grid {
  display: grid;
  gap: 14px;
}

.forge-grid.two {
  grid-template-columns: 1fr 1fr;
}

.forge-section-title {
  margin: 0 0 8px;
  font-size: 13px;
  color: #b8c8ea;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .forge-app {
    grid-template-columns: 1fr;
  }
  .forge-rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .forge-content {
    padding: 14px;
  }
  .forge-grid.two {
    grid-template-columns: 1fr;
  }
}
