@font-face {
  font-family: system-korean;
  src: local("Pretendard"), local("Noto Sans CJK KR"), local("Noto Sans KR");
  font-display: swap;
}
:root {
  --ink: #243d37;
  --muted: #69776e;
  --green: #1d5145;
  --gold: #a48149;
  --bg: #f5f6f0;
  --line: #dfe5dc;
  --panel: #fff;
  --radius: 18px;
  --serif: Georgia, "Noto Serif CJK KR", "Batang", serif;
  --shadow: 0 8px 30px #183e3410;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.65 system-korean,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--green);
}
button,
input,
select,
textarea,
summary,
a {
  outline-offset: 4px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #a48149;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.1px;
  line-height: 1.4;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
button {
  border: 0;
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: #fff;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 1px;
}
.brand span {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  display: block;
}
.sidebar {
  width: 230px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  background: #fcfdf9;
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar .brand {
  padding: 0 9px 34px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #859188;
  padding: 0 15px;
  margin: 20px 0 10px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav button {
  background: transparent;
  color: #63776d;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 14px;
}
.nav button.active {
  background: #e8eee2;
  color: #254f3f;
  font-weight: 700;
}
.nav button:hover {
  background: #eef2e9;
}
.nav-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
}
.side-bottom {
  margin-top: auto;
  padding: 25px 10px 0;
  font-size: 12px;
  color: var(--muted);
}
.side-bottom p {
  margin: 12px 0;
}
.privacy-seal {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  font-size: 12px;
  color: var(--green);
}
.workspace {
  margin-left: 230px;
}
.topbar {
  height: 78px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #fafbf7ee;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .crumb {
  font-size: 13px;
  color: var(--muted);
}
.top-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.cost-pill {
  border: 1px solid #d9e3d3;
  border-radius: 30px;
  padding: 7px 15px;
  background: #fff;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.cost-pill b {
  font-size: 14px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8e5d9;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.account {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.mobile-menu {
  display: none;
}
.content {
  max-width: 1240px;
  margin: auto;
  padding: 35px 40px 70px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 9px;
}
.page-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 7px;
}
.date-stamp {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--muted);
}
.hero {
  background: #183f37;
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 38px;
  position: relative;
  overflow: hidden;
  min-height: 238px;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 70%;
}
.hero .eyebrow {
  color: #c5b98e;
}
.hero h2 {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
  line-height: 1.6;
}
.hero p {
  color: #c6d4c8;
  font-size: 13px;
  max-width: 420px;
  margin: 12px 0 21px;
}
.hero .btn {
  background: #e8e9d6;
  color: #1d4437;
}
.orbit {
  width: 240px;
  height: 240px;
  position: absolute;
  right: 30px;
  top: 0;
  opacity: 0.8;
  border: 1px solid #d7c39155;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: rotate(-20deg);
}
.orbit:before,
.orbit:after {
  content: "";
  position: absolute;
  border: 1px solid #d7c39155;
  border-radius: 50%;
}
.orbit:before {
  inset: 25px;
}
.orbit:after {
  inset: 55px;
}
.orbit .axis {
  position: absolute;
  width: 110%;
  height: 1px;
  background: #d7c39144;
}
.orbit .axis:nth-child(2) {
  transform: rotate(90deg);
}
.orbit .axis:nth-child(3) {
  transform: rotate(45deg);
}
.orbit .axis:nth-child(4) {
  transform: rotate(-45deg);
}
.orbit .star {
  font-size: 95px;
  font-weight: 100;
  color: #d9c28b;
  z-index: 1;
}
.orbit .dot {
  width: 10px;
  height: 10px;
  background: #e5c77f;
  border-radius: 50%;
  position: absolute;
  top: 25px;
  right: 35px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 24px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 22px;
  box-shadow: 0 2px 5px #1c443203;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.panel-header small {
  font-size: 12px;
}
.step-number {
  font-size: 11px;
  color: #91a48d;
  letter-spacing: 2px;
  margin-bottom: 5px;
}
.btn {
  background: var(--green);
  color: white;
  padding: 11px 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  line-height: 1.5;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn.secondary {
  background: #edf2e9;
  color: var(--green);
  border: 1px solid #dde5d8;
}
.btn.ghost {
  background: transparent;
  color: var(--green);
  padding: 8px 0;
}
.btn.small {
  padding: 8px 13px;
  font-size: 12px;
}
.btn.danger {
  background: #8b4242;
}
.full {
  width: 100%;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  min-width: 0;
}
.field label,
.field-label {
  font-size: 13px;
  font-weight: 600;
}
.field .hint {
  font-size: 12px;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid #dbe1d8;
  background: #fdfefa;
  color: var(--ink);
  border-radius: 9px;
  padding: 11px 12px;
  min-width: 0;
  width: 100%;
  line-height: 1.5;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #477a5a;
  background: white;
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  padding: 7px 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-row.three {
  grid-template-columns: 1fr 1fr 1fr;
}
.tabs {
  display: flex;
  background: #f2f4ed;
  padding: 4px;
  gap: 4px;
  border-radius: 10px;
  margin: 15px 0 24px;
}
.tabs button {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  padding: 9px 8px;
  font-size: 13px;
  white-space: nowrap;
}
.tabs button.active {
  background: #fff;
  box-shadow: 0 1px 5px #12291010;
  color: var(--green);
  font-weight: 700;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: #edf2e9;
  color: #45613d;
  font-size: 11px;
  white-space: nowrap;
}
.badge.gold {
  background: #f6f1e6;
  color: #987446;
}
.badge.warn {
  background: #fff0e7;
  color: #965a32;
}
.badge.neutral {
  background: #f0f1ef;
  color: #69746c;
}
.method-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.method-row {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  align-items: center;
  border-bottom: 1px solid #eef1ea;
}
.method-row:last-child {
  border-bottom: 0;
}
.method-symbol {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #f2f3eb;
  border-radius: 10px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--gold);
}
.method-row h3 {
  font-size: 13px;
}
.method-row p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.method-row .badge {
  margin-left: auto;
}
.note {
  font-size: 12px;
  line-height: 1.8;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f4f6ef;
  color: #64705f;
}
.note.warning {
  background: #fff7e9;
  color: #8a632e;
}
.note.error {
  background: #fff0ed;
  color: #a24538;
}
.note.success {
  background: #edf5e8;
  color: #416639;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 15px;
}
.section-label h2 {
  font-size: 17px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 24px;
}
.stat {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat small {
  display: block;
}
.stat strong {
  display: block;
  font-size: 25px;
  font-family: var(--serif);
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
}
.stat p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.empty {
  padding: 35px 16px;
  text-align: center;
}
.empty .empty-icon {
  font-size: 30px;
  color: #8f9e80;
  margin-bottom: 14px;
}
.empty h3 {
  font-size: 16px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 18px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  text-align: left;
  background: transparent;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.history-item:last-child {
  border: 0;
}
.history-item .datebox {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f0f3e9;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #6e7d5c;
}
.history-item h3 {
  font-size: 14px;
}
.history-item small {
  font-size: 11px;
}
.history-item .badge {
  margin-left: auto;
}
.footer-note {
  font-size: 11px;
  color: #8a958b;
  text-align: center;
  margin-top: 25px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
.mini-profile {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  font-size: 13px;
}
.mini-profile dt {
  color: var(--muted);
}
.mini-profile dd {
  margin: 0;
}
.place-search {
  display: flex;
  gap: 8px;
}
.place-results {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.place-results button {
  background: #f1f5eb;
  text-align: left;
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--green);
}
details {
  margin: 10px 0;
}
summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--green);
  padding: 8px 0;
}
details p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 450px;
  overflow: auto;
  padding: 18px;
  background: #f5f7f0;
  border-radius: 10px;
  font:
    12px/1.7 ui-monospace,
    monospace;
  color: #465b47;
  margin: 10px 0;
}
.result-intro {
  background: #edf2e4;
  border: 1px solid #dce5d1;
  border-radius: 15px;
  padding: 26px;
  margin-bottom: 22px;
}
.result-intro h2 {
  font-family: var(--serif);
  font-size: 25px;
  margin: 10px 0 15px;
}
.result-intro p,
.interpretation p {
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-line;
}
.consensus {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 15px 0;
}
.consensus div {
  background: white;
  border: 1px solid #dce4d6;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 12px;
}
.consensus b {
  display: block;
  color: var(--green);
  font-size: 18px;
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.method-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 21px;
  background: white;
}
.method-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.method-card header .badge {
  margin-left: auto;
}
.method-card h3 {
  font-size: 15px;
}
.method-card p {
  font-size: 13px;
  line-height: 1.8;
}
.method-card .evidence {
  font-size: 12px;
  color: #708268;
  margin: 12px 0;
}
.method-card .advice {
  padding: 12px;
  background: #f2f5ee;
  border-radius: 8px;
  margin: 13px 0;
}
.method-card .calculation {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 15px;
  overflow-wrap: anywhere;
}
.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.timeline span {
  font-size: 11px;
  padding: 4px 10px;
  background: #eff2e8;
  border-radius: 5px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
td.num {
  font-variant-numeric: tabular-nums;
}
.provider-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 15px 0;
}
.provider-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #f8faf4;
  color: var(--ink);
  text-align: left;
}
.provider-card strong {
  font-size: 14px;
  display: block;
}
.provider-card small {
  font-size: 10px;
}
.provider-card:hover {
  border-color: var(--green);
}
.saved-model {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 12px 0;
  padding: 18px;
}
.saved-model div:first-child {
  flex: 1;
}
.saved-model h3 {
  font-size: 14px;
}
.saved-model p {
  font-size: 12px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 30px);
  padding: 13px 24px;
  background: #183f37;
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: var(--shadow);
  z-index: 100;
  display: none;
}
#toast.show {
  display: block;
}
dialog {
  border: 0;
  border-radius: 20px;
  padding: 30px;
  max-width: 720px;
  width: calc(100% - 30px);
  max-height: 90dvh;
  box-shadow: 0 20px 100px #142f3d44;
  color: var(--ink);
  background: #fff;
}
dialog::backdrop {
  background: #102b2a77;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.close {
  background: #f0f3eb;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  color: var(--ink);
}
.alias-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.alias-list span {
  font-size: 11px;
  background: #f2f3e9;
  border-radius: 6px;
  padding: 4px 9px;
}
.loading {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.spinner {
  width: 25px;
  height: 25px;
  border: 2px solid #dce4d7;
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.auth-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: #183f37;
  color: #edf2e7;
  padding: 50px 65px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-story .brand {
  color: #fff;
}
.auth-story .brand span {
  color: #becab9;
}
.auth-story .auth-quote {
  margin: auto 0;
  z-index: 1;
  padding: 80px 0;
}
.auth-story h1 {
  font-family: var(--serif);
  font-size: 43px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.8px;
}
.auth-story p {
  color: #becfc4;
  max-width: 370px;
  font-size: 14px;
  margin-top: 20px;
}
.auth-story .orbit {
  width: 380px;
  height: 380px;
  right: -100px;
  top: 34%;
  opacity: 0.3;
}
.auth-story .eyebrow {
  color: #c9b77e;
}
.auth-story .bottom-caption {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #aebfac;
}
.auth-main {
  display: grid;
  place-items: center;
  padding: 45px 30px;
}
.auth-box {
  max-width: 390px;
  width: 100%;
}
.auth-box h2 {
  font-size: 26px;
}
.auth-box > p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.auth-box .tabs {
  margin-top: 30px;
}
.auth-box form {
  margin-top: 20px;
}
.auth-box .privacy-seal {
  margin-top: 26px;
}
.auth-box footer {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 40px;
}
.auth-mobile-brand {
  display: none;
}
.error-inline {
  color: #a24b3a;
  font-size: 13px;
  padding: 10px 0;
}
.hidden {
  display: none !important;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 45px;
  }
  .hero {
    min-height: 255px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 28px 12px;
  }
  .workspace {
    margin-left: 200px;
  }
  .topbar {
    padding: 0 25px;
  }
  .content {
    padding: 28px 25px;
  }
  .grid-main {
    grid-template-columns: minmax(0, 1.5fr) minmax(235px, 1fr);
  }
  .hero {
    padding: 28px;
  }
  .orbit {
    right: -40px;
    opacity: 0.45;
  }
  .hero-copy {
    max-width: 85%;
  }
  .hero h2 {
    font-size: 25px;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story h1 {
    font-size: 36px;
  }
}
@media (max-width: 850px) {
  .grid-main {
    grid-template-columns: 1fr;
  }
  .aside-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 30px;
  }
  .auth-story h1 {
    font-size: 30px;
  }
  .auth-story p {
    font-size: 13px;
  }
  .stat strong {
    font-size: 21px;
  }
  .date-stamp {
    display: none;
  }
}
@media (max-width: 650px) {
  body {
    font-size: 14px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 230px;
    box-shadow: var(--shadow);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 17px;
    gap: 10px;
  }
  .topbar .crumb {
    display: none;
  }
  .mobile-menu {
    display: block;
    background: transparent;
    font-size: 24px;
    color: var(--green);
    padding: 4px;
  }
  .top-right {
    gap: 10px;
  }
  .account .nickname {
    display: none;
  }
  .cost-pill {
    padding: 6px 11px;
    font-size: 10px;
    gap: 7px;
  }
  .cost-pill b {
    font-size: 13px;
  }
  .content {
    padding: 24px 18px 45px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading > .btn {
    padding: 8px 10px;
    font-size: 11px;
  }
  .hero {
    padding: 26px 24px;
    min-height: 250px;
  }
  .hero h2 {
    font-size: 25px;
  }
  .hero-copy {
    max-width: 92%;
  }
  .hero p {
    font-size: 12px;
    max-width: 240px;
  }
  .orbit {
    width: 200px;
    height: 200px;
    right: -75px;
    top: 30px;
    opacity: 0.3;
  }
  .panel {
    padding: 20px;
    margin-bottom: 18px;
  }
  .grid,
  .aside-cards {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stat-grid {
    gap: 8px;
  }
  .stat {
    padding: 14px 11px;
  }
  .stat small {
    font-size: 10px;
  }
  .stat strong {
    font-size: 19px;
  }
  .stat p {
    font-size: 10px;
  }
  .field-row {
    gap: 10px;
  }
  .field-row.three {
    grid-template-columns: 1fr 1fr;
  }
  .field-row.three > .field:last-child {
    grid-column: 1/-1;
  }
  .tabs button {
    padding: 8px 6px;
    font-size: 12px;
  }
  .panel-header {
    margin-bottom: 15px;
  }
  .panel-header h2 {
    font-size: 17px;
  }
  .auth-shell {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth-main {
    min-height: 100dvh;
    padding: 30px;
  }
  .auth-mobile-brand {
    display: flex;
    margin-bottom: 42px;
  }
  .auth-box h2 {
    font-size: 25px;
  }
  .provider-cards {
    gap: 7px;
  }
  .provider-card {
    padding: 13px 8px;
  }
  .provider-card strong {
    font-size: 12px;
  }
  .provider-card small {
    font-size: 9px;
  }
  .saved-model {
    flex-wrap: wrap;
    padding: 15px;
  }
  .saved-model div:first-child {
    flex: 1 0 75%;
  }
  dialog {
    padding: 23px 19px;
  }
  .result-intro {
    padding: 20px;
  }
  .result-intro h2 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.sidebar-close {
  display: none;
}
@media (max-width: 650px) {
  .sidebar-close {
    display: block;
    position: absolute;
    top: 12px;
    right: 10px;
    background: transparent;
    color: var(--green);
    font-size: 25px;
  }
}

/* 관리자 폼의 긴 모델명·환율·기능 설명은 작은 화면에서 한 열로 읽게 한다. */
@media (max-width: 650px) {
  #model-form .field-row,
  #settings-form .field-row,
  #members-filter .field-row,
  #report-filter .field-row {
    grid-template-columns: 1fr;
  }
  #model-form select {
    max-width: 100%;
  }
}
