@import url("/shared-resource/fonts/fonts.css");
:root {
  font-family:var(--wb-font-sans);
  color: var(--wb-text, #171717);
  background: var(--wb-background, #fff);
  --wb-shell-line: #e9e5df;
  --wb-shell-surface: rgba(255,255,255,.94);
  --wb-shell-muted: #73706c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--wb-background, #fff); }
body, button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
#app-shell { min-height: 100vh; display: flex; flex-direction: column; }
[data-id="appmain"] { flex: 1 0 auto; min-height: 60vh; }
.wb-container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

/* Shared public shell. Themes may change tokens; they should not break its geometry. */
.wb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--wb-shell-line);
  background: var(--wb-shell-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.wb-header .wb-container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.wb-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.wb-brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--wb-primary, #181410);
  color: #fff; font-weight: 900; font-size: 13px;
}
.wb-brand-copy { display: grid; gap: 1px; min-width: 0; }
.wb-brand-copy strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.wb-brand-copy small { color: var(--wb-shell-muted); font-size: 10px; }
.wb-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.wb-nav a {
  min-height: 40px; padding: 0 13px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; color: #55514c; font-size: 12px; font-weight: 700;
  transition: background .18s ease, color .18s ease;
}
.wb-nav a:hover { background: #f6f3ef; color: var(--wb-text, #171717); }
.wb-header-actions { display: flex; align-items: center; gap: 8px; }
.wb-header-account, .wb-header-book {
  min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; font-size: 12px; font-weight: 800;
}
.wb-header-account { border: 1px solid var(--wb-shell-line); background: #fff; }
.wb-header-book { background: var(--wb-primary, #181410); color: #fff; }

.wb-footer { flex: 0 0 auto; margin-top: 72px; border-top: 1px solid var(--wb-shell-line); background: #faf9f7; }
.wb-footer-main { padding: 42px 0 28px; display: grid; grid-template-columns: minmax(220px,1.3fr) repeat(2,minmax(140px,.6fr)); gap: 42px; }
.wb-footer-brand { display: grid; gap: 10px; align-content: start; }
.wb-footer-brand strong { font-size: 16px; }
.wb-footer-brand p { max-width: 440px; margin: 0; color: var(--wb-shell-muted); font-size: 11px; line-height: 2; }
.wb-footer-col { display: grid; gap: 10px; align-content: start; }
.wb-footer-col strong { font-size: 11px; }
.wb-footer-col a { width: fit-content; color: var(--wb-shell-muted); font-size: 11px; }
.wb-footer-col a:hover { color: var(--wb-text, #171717); }
.wb-footer-bottom { padding: 16px 0 22px; border-top: 1px solid var(--wb-shell-line); color: var(--wb-shell-muted); font-size: 10px; display: flex; justify-content: space-between; gap: 16px; }
.wb-hero { padding: 72px 0; }
.wb-hero h1 { font-size: clamp(2rem, 6vw, 4.5rem); margin: 0 0 16px; }
.wb-muted { color: var(--wb-muted, #6b7280); }
.wb-error { padding: 32px; margin: 32px auto; max-width: 720px; border: 1px solid #fecaca; border-radius: 12px; }

@media (max-width: 760px) {
  .wb-container { width: min(100% - 28px, 1160px); }
  .wb-header .wb-container { min-height: 64px; gap: 10px; }
  .wb-brand-copy small, .wb-nav { display: none; }
  .wb-brand-copy strong { max-width: 120px; font-size: 12px; }
  .wb-brand-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
  .wb-header-account { padding-inline: 10px; }
  .wb-header-book { padding-inline: 11px; }
  .wb-footer { margin-top: 48px; }
  .wb-footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 32px; }
  .wb-footer-brand { grid-column: 1 / -1; }
  .wb-footer-bottom { flex-direction: column; }
}
@media (max-width: 390px) {
  .wb-brand-copy { display: none; }
  .wb-header-actions { margin-inline-start: auto; }
}


/* Public design system */
.wb-page{padding:56px 0 24px}.wb-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:30px;padding-bottom:24px;border-bottom:1px solid var(--wb-shell-line)}.wb-page-head h1,.wb-detail-hero h1,.wb-profile h1,.wb-article h1,.wb-not-found h1{margin:6px 0 10px;font-size:clamp(28px,4vw,48px);line-height:1.45}.wb-page-head p,.wb-detail-hero p,.wb-profile p,.wb-article-lead,.wb-not-found p{max-width:720px;margin:0;color:var(--wb-shell-muted);line-height:2;font-size:13px}.wb-eyebrow{display:block;color:var(--wb-accent,#a2763e);font-size:10px;font-weight:900;letter-spacing:.1em}.wb-count{min-width:120px;padding:14px 16px;border:1px solid var(--wb-shell-line);border-radius:15px;background:#fff;display:grid;gap:3px}.wb-count strong{font-size:24px}.wb-count span{font-size:9px;color:var(--wb-shell-muted)}.wb-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.wb-card{min-width:0;border:1px solid var(--wb-shell-line);border-radius:18px;background:#fff;overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.wb-card:hover{transform:translateY(-2px);border-color:#d6cec4;box-shadow:0 12px 34px rgba(30,25,20,.06)}.wb-card-media{height:210px;background:#eee9e3 center/cover no-repeat;display:grid;place-items:center}.wb-avatar-fallback{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#493b30;font-size:24px;font-weight:900;box-shadow:0 8px 30px #0000000d}.wb-card-body{padding:20px;display:flex;min-height:190px;flex-direction:column}.wb-card-body h3{margin:6px 0 8px;font-size:16px}.wb-card-body p{margin:0;color:var(--wb-shell-muted);font-size:10px;line-height:1.95;flex:1}.wb-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:13px;border-top:1px solid #f0ede9;font-size:10px}.wb-card-foot strong{color:#7b582f}.wb-button{width:fit-content;min-height:44px;padding:0 17px;border:0;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;cursor:pointer}.wb-button-primary{background:var(--wb-primary,#181410);color:#fff}.wb-back{display:block;width:fit-content;margin-bottom:22px;color:var(--wb-shell-muted);font-size:11px}.wb-detail-hero{padding:38px;border:1px solid var(--wb-shell-line);border-radius:24px;background:linear-gradient(135deg,#fff,#faf8f5)}.wb-detail-meta{display:flex;gap:10px;align-items:center;margin:22px 0}.wb-detail-meta>*{padding:8px 11px;border:1px solid var(--wb-shell-line);border-radius:10px;background:#fff;font-size:11px}.wb-related{margin-top:54px}.wb-section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.wb-section-head h2{margin:5px 0 0;font-size:24px}.wb-profile{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);gap:38px;align-items:center}.wb-profile-photo{min-height:420px;border-radius:24px;background:#eee9e3 center/cover no-repeat;display:grid;place-items:center}.wb-profile-body{padding:20px 0}.wb-rating{display:block;margin:18px 0;color:#8a6735}.wb-article{max-width:850px}.wb-article-cover{height:min(48vw,440px);margin:26px 0;border-radius:22px;background:#eee center/cover no-repeat}.wb-article-lead{font-size:16px}.wb-article-note{margin-top:30px;padding:16px;border:1px solid var(--wb-shell-line);border-radius:13px;background:#faf8f5;color:var(--wb-shell-muted);font-size:11px;line-height:1.9}.wb-empty,.wb-not-found{grid-column:1/-1;padding:42px;border:1px dashed #d8d1c8;border-radius:20px;text-align:center;background:#fff}.wb-empty p{margin:7px 0 0;color:var(--wb-shell-muted);font-size:11px}.wb-not-found{max-width:700px;margin:30px auto}.wb-not-found .wb-button{margin:20px auto 0}.wb-loading{width:min(1160px,calc(100% - 40px));margin:50px auto;display:grid;gap:12px}.wb-loading span{height:70px;border-radius:16px;background:linear-gradient(90deg,#f3f0ec,#faf9f7,#f3f0ec);background-size:200% 100%;animation:wb-shimmer 1.2s linear infinite}@keyframes wb-shimmer{to{background-position:-200% 0}}
@media(max-width:900px){.wb-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wb-profile{grid-template-columns:1fr}.wb-profile-photo{min-height:360px}}
@media(max-width:620px){.wb-page{padding-top:32px}.wb-page-head{align-items:flex-start;flex-direction:column}.wb-count{width:100%}.wb-card-grid{grid-template-columns:1fr}.wb-detail-hero{padding:24px}.wb-profile-photo{min-height:300px}.wb-card-media{height:190px}}
