@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Inter:wght@400;500;600;700;800&display=swap");

.rigel-lrc-frontend {
  --lrc-cream: #f7f5f1;
  --lrc-forest: #2f3e33;
  --lrc-gold: #c89a43;
  --lrc-sans: "Inter", system-ui, sans-serif;
  --lrc-serif: "Cormorant Garamond", Georgia, serif;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 3vw, 24px) 56px;
  font-family: var(--lrc-sans);
  color: #1a1c1d;
}

.rigel-lrc-frontend__hero {
  margin-bottom: 1.5rem;
}

.rigel-lrc-frontend__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lrc-gold);
}

.rigel-lrc-frontend__title {
  margin: 0 0 0.5rem;
  font-family: var(--lrc-serif);
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--lrc-forest);
}

.rigel-lrc-frontend__intro,
.rigel-lrc-frontend__foot-note,
.rigel-lrc-panel .description {
  color: #5c5f62;
  line-height: 1.55;
}

.rigel-lrc-frontend__intro {
  max-width: 760px;
  margin: 0;
}

.rigel-lrc-frontend__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(47, 62, 51, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 20, 17, 0.06);
}

.rigel-lrc-frontend__toolbar-label {
  display: block;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lrc-forest);
}

.rigel-lrc-frontend__select {
  flex: 1 1 280px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(47, 62, 51, 0.16);
  border-radius: 10px;
  background: #fff;
  font-family: var(--lrc-sans);
  font-size: 14px;
}

.rigel-lrc-frontend__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 10px;
  background: var(--lrc-forest);
  color: #fff;
  font-family: var(--lrc-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.rigel-lrc-frontend__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.rigel-lrc-frontend__btn--ghost {
  background: #fff;
  color: var(--lrc-forest);
  border: 1px solid rgba(47, 62, 51, 0.18);
}

.rigel-lrc-frontend__btn--apply {
  background: var(--lrc-gold);
  color: #1b261e;
}

.rigel-lrc-frontend__btn--lg {
  min-height: 52px;
  padding: 0 1.5rem;
  font-size: 14px;
}

.rigel-lrc-frontend__notice {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.rigel-lrc-frontend__notice.is-success {
  background: #ecfdf3;
  border: 1px solid #86efac;
  color: #166534;
}

.rigel-lrc-frontend__notice.is-error {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}

.rigel-lrc-frontend__notice p {
  margin: 0;
}

.rigel-lrc-frontend__gate {
  max-width: 520px;
  margin: 2rem auto;
  padding: 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(47, 62, 51, 0.12);
  border-radius: 14px;
}

.rigel-lrc-frontend__login {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 1rem;
  border-radius: 10px;
  background: var(--lrc-forest);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.rigel-lrc-frontend__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

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

@media (max-width: 1024px) {
  .rigel-lrc-frontend__grid,
  .rigel-lrc-frontend__grid--3 {
    grid-template-columns: 1fr;
  }
}

.rigel-lrc-panel {
  background: #fff;
  border: 1px solid rgba(47, 62, 51, 0.12);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.rigel-lrc-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--lrc-serif);
  font-size: 1.2rem;
  color: var(--lrc-forest);
}

.rigel-lrc-panel--preview {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.rigel-lrc-formula-doc code,
.rigel-lrc-step-formula,
.rigel-lrc-step li code {
  display: block;
  padding: 0.45rem 0.55rem;
  background: var(--lrc-cream);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.rigel-lrc-formula-main {
  margin-bottom: 0.75rem;
  font-size: 14px;
  font-weight: 600;
}

.rigel-lrc-formula-steps {
  margin: 0.75rem 0 1rem;
  padding-left: 1.2rem;
}

.rigel-lrc-field input,
.rigel-lrc-field textarea {
  width: 100%;
  margin-top: 0.25rem;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(47, 62, 51, 0.16);
  border-radius: 8px;
  font-family: var(--lrc-sans);
  font-size: 14px;
}

.rigel-lrc-preview-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.rigel-lrc-preview-inputs label {
  display: grid;
  gap: 0.25rem;
  font-size: 12px;
  font-weight: 600;
}

.rigel-lrc-preview-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rigel-lrc-preview-totals div {
  padding: 0.75rem;
  border-radius: 10px;
  background: var(--lrc-forest);
  color: #fff;
}

.rigel-lrc-preview-error {
  color: #b45309;
  font-weight: 600;
}

.rigel-lrc-frontend__foot {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(47, 62, 51, 0.12);
}
