:root {
  color-scheme: light;
  --bg: #f2f6f2;
  --surface: #fff;
  --text: #24352d;
  --muted: #68796f;
  --line: #e0e9e1;
  --accent: #145b3c;
  --accent-hover: #0d4630;
  --soft: #f1f7f2;
  --gold: #d6b643;
  --danger: #a33838;
  --shadow: 0 12px 34px rgb(26 67 43 / 7%);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 85% 3%, rgb(220 235 219 / 50%), transparent 29rem),
    var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  height: 70px;
  padding: 0 max(22px, calc((100vw - 920px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(224 233 225 / 85%);
  background: rgb(255 255 255 / 93%);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: .98rem; font-weight: 800; text-decoration: none; letter-spacing: -.04em; }
.school-mark { display: block; width: 43px; height: 43px; border: 1px solid #dce8dc; border-radius: 50%; object-fit: cover; }
.catalog-link { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .84rem; font-weight: 650; text-decoration: none; transition: color .18s ease, background .18s ease; }
.catalog-link:hover { background: var(--soft); color: var(--accent); }
main { width: min(100% - 40px, 760px); padding: 40px 0 56px; margin: 0 auto; }
.intro { position: relative; overflow: hidden; margin: 0 0 17px; padding: 34px 36px 36px; border-radius: 21px; background: linear-gradient(120deg, #06452f 0%, #167047 100%); box-shadow: 0 18px 42px rgb(10 76 44 / 16%); color: #fff; }
.intro::after { position: absolute; top: -105px; right: -47px; width: 270px; height: 270px; border: 1px solid rgb(255 255 255 / 15%); border-radius: 50%; box-shadow: 0 0 0 24px rgb(255 255 255 / 5%), 0 0 0 50px rgb(255 255 255 / 3%); content: ""; pointer-events: none; }
.eyebrow { position: relative; z-index: 1; margin: 0 0 11px; color: #e4d27b; font-size: .7rem; font-weight: 800; letter-spacing: .15em; }
h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 760; letter-spacing: -.065em; line-height: 1.22; }
.intro-copy { position: relative; z-index: 1; max-width: 510px; margin: 13px 0 0; color: rgb(255 255 255 / 82%); font-size: .92rem; }
.setup-notice { display: flex; gap: 11px; align-items: flex-start; margin: 0 0 19px; padding: 13px 15px; border: 1px solid #d8e7d7; border-radius: 12px; background: #f8fbf6; }
.notice-mark { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e4f0e3; color: var(--accent); font-size: .78rem; font-weight: 850; }
.setup-notice p { margin: 0; color: #536d59; font-size: .79rem; }
.setup-notice strong { color: var(--accent); }
.panel { margin: 14px 0; padding: 26px 28px 28px; border: 1px solid rgb(224 233 225 / 95%); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.section-heading { display: flex; gap: 13px; align-items: flex-start; margin: 0 0 20px; }
.step { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: #eaf3eb; color: var(--accent); font-size: .76rem; font-weight: 850; letter-spacing: .04em; }
h2 { margin: 2px 0 0; font-size: 1.1rem; font-weight: 760; letter-spacing: -.04em; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: .84rem; }
.form-row { display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: center; margin-top: 13px; }
.form-row[hidden] { display: none; }
label { color: #344b3b; font-size: .88rem; font-weight: 700; }
input, select { width: 100%; min-height: 47px; padding: 10px 13px; border: 1px solid #d5e1d7; border-radius: 10px; background: #fff; color: var(--text); transition: border-color .18s ease, box-shadow .18s ease; }
input::placeholder { color: #95a397; }
input:focus, select:focus { outline: 0; border-color: #6b9b75; box-shadow: 0 0 0 4px rgb(45 112 61 / 12%); }
input:disabled { background: #f7f9f7; color: #849187; cursor: not-allowed; }
.required { color: var(--danger); }
.reading-guides { margin: 1px 0 20px; padding: 14px 15px; border: 1px solid #e0eadf; border-radius: 12px; background: #f7faf6; }
.reading-guides > p { margin: 0; color: var(--muted); font-size: .82rem; }
.guide-links { display: grid; justify-items: start; gap: 8px; margin-top: 9px; }
.guide-links > a, .criteria summary { padding: 7px 11px; border: 1px solid #cfe0cf; border-radius: 8px; background: #eff6ed; color: #285c36; font-size: .81rem; font-weight: 750; text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.guide-links > a:hover, .criteria summary:hover { border-color: #99be9a; background: #e7f1e3; }
.criteria summary { cursor: pointer; }
.criteria-content { margin-top: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: .82rem; }
.criteria-content h3 { margin: 0 0 6px; font-size: .9rem; }
.criteria-content ol { margin: 0; padding-left: 1.4rem; }
.criteria-content li + li { margin-top: 3px; }
.search-label { display: block; margin-bottom: 8px; }
.search-box { display: flex; gap: 9px; }
.search-box input { min-width: 0; flex: 1; }
.holdings-reminder { margin: 0 0 16px; padding: 10px 12px; border-left: 3px solid #8aa96f; border-radius: 0 8px 8px 0; background: #f5f8ef; color: #53664b; font-size: .78rem; }
.holdings-reminder a { color: var(--accent); font-weight: 750; }
.btn { min-height: 45px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-weight: 750; transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.btn.primary { color: #fff; background: var(--accent); box-shadow: 0 4px 10px rgb(20 91 60 / 15%); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); box-shadow: 0 6px 14px rgb(20 91 60 / 22%); transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: .58; box-shadow: none; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgb(56 128 72 / 38%); outline-offset: 2px; }
.hint { margin: 7px 0; color: var(--muted); font-size: .8rem; }
.status { margin: 10px 0 0; color: var(--muted); font-size: .87rem; }
.status:empty { display: none; }
.status.error { color: var(--danger); }
.selected-panel { margin-top: 18px; padding: 16px; border: 1px solid #e2ebe2; border-radius: 12px; background: #f7faf7; }
.cart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart-heading h3 { margin: 0; font-size: .95rem; font-weight: 760; }
.cart-heading h3 span { margin-left: 4px; color: var(--accent); font-size: .79rem; font-variant-numeric: tabular-nums; }
.cart-status { margin: 0; color: var(--muted); font-size: .76rem; }
.results { display: grid; gap: 9px; margin-top: 13px; }
.result-card { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cover { display: block; width: 54px; height: 72px; border-radius: 5px; background: var(--soft); object-fit: cover; }
.cover-placeholder { display: grid; place-items: center; color: var(--accent); font-size: .68rem; font-weight: 700; }
.book-title { margin: 0; font-size: .86rem; font-weight: 750; line-height: 1.4; }
.book-meta { margin: 4px 0 0; color: var(--muted); font-size: .74rem; }
.select-book { min-height: 36px; padding: 6px 10px; border: 1px solid #c4d8c5; border-radius: 8px; background: #f5f9f3; color: var(--accent); cursor: pointer; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.select-book:hover:not(:disabled) { background: #eaf3e8; }
.select-book:disabled { cursor: not-allowed; opacity: .55; }
.selected-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 9px; margin-top: 11px; }
.cart-book { min-width: 0; padding: 10px; border: 1px solid #dfe8df; border-radius: 9px; background: #fff; }
.cart-book .cover { width: 62px; height: 82px; margin: 0 auto 8px; }
.cart-book .book-title { overflow: hidden; display: -webkit-box; min-height: 2.8em; font-size: .77rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cart-book .book-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
.remove-book { width: 100%; min-height: 30px; margin-top: 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); cursor: pointer; font-size: .72rem; }
.remove-book:hover { border-color: #dfbcbc; color: var(--danger); }
.submit-area { margin-top: 22px; text-align: center; }
.submit-button { width: min(100%, 370px); min-height: 53px; font-size: .97rem; }
footer { padding: 28px 0 0; border-top: 1px solid #e0e9e1; color: #829087; text-align: center; font-size: .78rem; }
@media (max-width: 560px) {
  .topbar { height: 60px; padding: 0 14px; }
  .brand { gap: 8px; font-size: .86rem; }
  .school-mark { width: 39px; height: 39px; }
  .catalog-link { padding: 7px 9px; font-size: .74rem; }
  main { width: min(100% - 28px, 760px); padding: 23px 0 40px; }
  .intro { margin-bottom: 13px; padding: 26px 22px 28px; border-radius: 16px; }
  .intro::after { top: -76px; right: -123px; }
  .eyebrow { font-size: .62rem; }
  h1 { font-size: clamp(1.85rem, 8vw, 2.35rem); }
  .intro-copy { margin-top: 10px; font-size: .84rem; }
  .setup-notice { padding: 11px 12px; }
  .panel { margin: 12px 0; padding: 20px 16px; border-radius: 14px; }
  .section-heading { gap: 10px; margin-bottom: 17px; }
  .section-heading p { font-size: .8rem; }
  .form-row { grid-template-columns: 1fr; gap: 6px; margin-top: 12px; }
  .reading-guides { padding: 12px; }
  .guide-links > a, .criteria summary { max-width: 100%; font-size: .76rem; }
  .search-box { gap: 7px; }
  .search-box .btn { padding-right: 13px; padding-left: 13px; }
  .result-card { grid-template-columns: 44px minmax(0, 1fr); gap: 9px; }
  .cover { width: 44px; height: 61px; }
  .select-book { grid-column: 2; justify-self: start; }
  .cart-heading { display: block; }
  .cart-status { margin-top: 3px; }
  .selected-panel { padding: 14px; }
  .selected-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
