/* Classical geometry: decoration stays in margins and empty states. */
:root {
  --paper-page: #fcf9f2;
  --panel: rgba(250, 247, 239, 0.94);
  --line: rgba(83, 87, 73, 0.15);
  --line-strong: rgba(83, 87, 73, 0.25);
  --gold: #aa9268;
  --shadow: 0 8px 24px rgba(70, 61, 44, 0.035);
}

body {
  background: linear-gradient(180deg, #f8f3e9 0, #f8f3e9 76px, #f2ede2 100%);
}

.page-atmosphere::before,
.page-atmosphere::after,
.golden-lines { display: none; }
.temple-lines { opacity: 0.025; }
.paper-grain { opacity: 0.055; }

.classical-masthead {
  position: absolute;
  left: 50%;
  top: 13px;
  width: 250px;
  height: 49px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  color: #8d7957;
  pointer-events: none;
  user-select: none;
}
.classical-masthead svg { width: 170px; height: 21px; }
.classical-masthead span {
  padding-left: 0.5em;
  font: 11px/1 var(--serif);
  letter-spacing: 0.5em;
  color: var(--ink-soft);
}
.classical-masthead::before,
.classical-masthead::after {
  position: absolute;
  top: 25px;
  width: clamp(24px, 5vw, 84px);
  height: 1px;
  background: rgba(142, 123, 86, 0.22);
  content: "";
}
.classical-masthead::before { right: calc(100% + 14px); }
.classical-masthead::after { left: calc(100% + 14px); }

.panel {
  border-color: rgba(96, 94, 76, 0.18);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.panel::after { border-radius: 4px; border-color: rgba(128, 115, 89, 0.065); }
.panel-heading h1,
.panel-heading h2,
.library-title-text { font-weight: 500; letter-spacing: 0.12em; }
.brand-seal { background: transparent; border-color: rgba(142, 123, 86, 0.28); }
.account-chip { background: transparent; }

.import-card {
  border-color: rgba(142, 123, 86, 0.25);
  border-radius: 5px;
  background: rgba(253, 250, 243, 0.75);
}
.import-card::before,
.import-card::after {
  width: 26px;
  height: 26px;
  background: url("./classical-corner.svg") center / contain no-repeat;
  opacity: 0.48;
  pointer-events: none;
}
.import-card::before { top: 9px; left: 9px; }
.import-card::after { top: auto; bottom: 9px; right: 9px; transform: rotate(180deg); }
.import-card:hover { box-shadow: 0 4px 16px rgba(92, 74, 49, 0.045); }
.section-rule span { background: rgba(142, 123, 86, 0.19); }
.section-rule i { border-color: rgba(142, 123, 86, 0.52); }
.market-note {
  border-color: transparent;
  border-top-color: rgba(142, 123, 86, 0.18);
  border-radius: 0;
  background: transparent;
}

.book-shelf::after {
  height: 1px;
  background: rgba(142, 123, 86, 0.24);
  box-shadow: none;
}
.shelf-empty { position: relative; letter-spacing: 0.06em; }
.shelf-empty::before,
.shelf-empty::after {
  position: absolute;
  top: 50%;
  width: clamp(24px, 9vw, 120px);
  height: 1px;
  background: rgba(142, 123, 86, 0.18);
  content: "";
  pointer-events: none;
}
.shelf-empty::before { right: calc(50% + 150px); }
.shelf-empty::after { left: calc(50% + 150px); }
.shelf-empty span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(142, 123, 86, 0.22);
  border-radius: 50%;
  font-size: 18px;
}

.page-paper {
  border-color: rgba(128, 115, 89, 0.16);
  border-radius: 3px;
  background: var(--paper-page);
  box-shadow: 0 3px 12px rgba(83, 72, 52, 0.035);
}
.empty-reader { position: relative; isolation: isolate; min-height: 0; }
.empty-reader::before,
.empty-reader::after {
  position: absolute;
  width: 28px;
  height: 28px;
  background: url("./classical-corner.svg") center / contain no-repeat;
  opacity: 0.36;
  content: "";
  pointer-events: none;
}
.empty-reader::before { top: 0; left: -8px; }
.empty-reader::after { bottom: 0; right: -8px; transform: rotate(180deg); }
.empty-ornament {
  width: 106px;
  height: 106px;
  margin-bottom: 23px;
  flex-shrink: 0;
  border: 0;
  border-radius: 0;
  background: url("./classical-compass.svg") center / contain no-repeat;
  color: #a08a64;
  font-size: 20px;
}
.empty-ornament svg { width: 21px; height: 21px; }
.empty-reader h3 { letter-spacing: 0.12em; }
.empty-reader p { margin-top: 12px; color: var(--muted-dark); }
.ai-reading-mark {
  border-color: rgba(142, 123, 86, 0.27);
  border-radius: 2px;
  color: #9c795e;
  background: transparent;
}
.ai-reading-empty h4 { font-weight: 500; letter-spacing: 0.08em; }
.ai-book-context { border-radius: 3px; background: rgba(236, 228, 211, 0.2); }

@media (max-width: 1000px) {
  .classical-masthead::before,
  .classical-masthead::after { display: none; }
}
@media (max-width: 800px) {
  .classical-masthead { display: none; }
  .shelf-empty::before,
  .shelf-empty::after { display: none; }
}
@media (max-height: 780px) {
  .empty-ornament { width: 78px; height: 78px; margin-bottom: 17px; }
}

.classical-masthead span {font-family:Georgia,serif;letter-spacing:.15em;padding-left:.15em;} .brand-seal {border:0;background:transparent;} .brand-seal img {width:42px;height:42px;object-fit:contain;} .panel-heading h1,.library-title-text,.ai-reading-heading h3 {font-family:Georgia,serif;letter-spacing:-.025em;}
