@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Text";
  src: url("/fonts/dm-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Text";
  src: url("/fonts/dm-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  --forest: #244438;
  --green: #365a49;
  --accent: #9a553b;
  --tint: #e7eee5;
  --paper: #fbfaf6;
  --illume: #f0d6a7;
  --tinted-border: #dce2d6;
  --ink: #282e29;
  --muted: #646a63;
  --line: #e3e2d9;
  --serif: "DM Serif Text", Georgia, serif;
  --side: 245px;
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #fbfaf6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.58;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  background: white;
  padding: 10px;
}
.app-shell {
  min-height: 100dvh;
  background: var(--paper);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  display: flex;
  flex-direction: column;
  padding: 34px 20px 18px;
  background: #f5f4ed;
  border-right: 1px solid var(--line);
  z-index: 6;
}
.side-top {
  padding: 0 8px 36px;
}
.brand-button {
  padding: 0;
  display: inline-flex;
  text-align: left;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #253e33;
}
.brand > img {
  width: 44px;
  height: 44px;
  display: block;
  flex: none;
}
.brand > span {
  font: 24px/1.01 var(--serif);
  letter-spacing: -0.9px;
  white-space: nowrap;
}
.brand em {
  display: block;
  font-weight: 400;
  font-size: 0.93em;
}
.nav-label,
.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.135em;
  font-weight: 750;
  color: #697168;
}
.nav-label {
  padding: 8px 14px 11px;
}
.nav-label.next {
  margin: 20px 8px 1px;
  padding: 22px 6px 10px;
  border-top: 1px solid var(--line);
}
.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  padding: 11px 13px;
  min-height: 45px;
  font-size: 0.94rem;
  text-align: left;
  border-radius: 8px;
  color: #525b52;
  font-weight: 520;
}
.nav-link small {
  font-size: 0.78rem;
  margin-left: auto;
  color: #687568;
  min-width: 24px;
  text-align: center;
  border-radius: 6px;
  background: #e9eae1;
  line-height: 1.6;
}
.nav-link:hover,
.profile:hover {
  background: #ebece3;
}
.nav-link.active {
  background: var(--tint);
  color: var(--forest);
  font-weight: 700;
}
.nav-link.active svg {
  stroke-width: 2;
}
.profile {
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
  width: 100%;
  margin-top: auto;
  padding: 18px 4px 3px;
  text-align: left;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eed5c3;
  color: #784c37;
  font: italic 1.55rem var(--serif);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.profile strong,
.profile small {
  display: block;
}
.profile strong {
  font-size: 0.92rem;
}
.profile small,
.profile-summary p {
  font-size: 0.78rem;
  color: var(--muted);
}
.profile > svg {
  margin-left: auto;
  color: var(--muted);
}
.workspace {
  margin-left: var(--side);
}
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.bar-inner {
  max-width: 1480px;
  margin: 0 auto;
  height: 77px;
  padding: 0 clamp(24px, 3.4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.crumbs,
.crumbs span,
.top-actions,
.btn,
.text-button,
.icon-button,
.field-help,
.hero-kicker,
.see-all,
.inline-action {
  display: inline-flex;
  align-items: center;
}
.crumbs {
  gap: 11px;
  color: #888d83;
  font-size: 0.85rem;
}
.crumbs span {
  gap: 8px;
  color: var(--muted);
}
.crumbs strong {
  font-weight: 600;
  color: var(--ink);
}
.top-actions {
  gap: 9px;
}
.btn {
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 15px;
  font-size: 0.88rem;
  line-height: 1.3;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    filter 0.16s,
    background 0.16s;
}
.btn:hover:not(:disabled) {
  filter: brightness(0.95);
}
.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn.outline {
  background: #fffdfa;
  border-color: #dadbd1;
  color: #3a463c;
}
.icon-button {
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--tint);
}
.mobile-brand,
.mobile-close,
.scrim {
  display: none;
}
.main {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(22px, 2.35vw, 37px) clamp(24px, 3.4vw, 58px) 60px;
}
.hero,
.shared-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--forest);
  color: #fcf8eb;
  border-radius: 15px;
}
.hero {
  min-height: 286px;
  display: flex;
  align-items: center;
  padding: 30px clamp(28px, 3.1vw, 49px);
}
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 56%;
  background: url("/images/atelier.webp") no-repeat 74% 46% / auto 110%;
  mix-blend-mode: lighten;
  opacity: 0.96;
  mask-image: linear-gradient(to right, transparent 0%, #000 16%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%);
}
.hero-content {
  position: relative;
  max-width: 60%;
}
.hero-kicker {
  gap: 7px;
  color: var(--illume);
  font-size: 0.71rem;
  letter-spacing: 0.155em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero-kicker > span {
  display: none;
}
.hero h1 {
  font-size: clamp(2.9rem, 4.1vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.043em;
  margin: 14px 0 21px;
}
.hero h1 em {
  color: var(--illume);
  font-weight: 400;
}
.hero-stats {
  display: flex;
  gap: 0;
}
.hero-stats button {
  color: #fff8e8;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 16px;
  border-left: 1px solid #ffffff42;
  line-height: 1.3;
}
.hero-stats button:first-child {
  padding-left: 0;
  border: 0;
}
.hero-stats button:hover span {
  text-decoration: underline;
}
.hero-stats strong {
  font: 1.55rem var(--serif);
}
.hero-stats span {
  font-size: 0.79rem;
  color: #f3f0df;
}
.current-chip {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 7px;
  border: 1px solid #fff6d53d;
  border-radius: 7px;
  background: color-mix(in srgb, var(--forest) 91%, transparent);
  color: #fff9ed;
  max-width: 45%;
  text-align: left;
}
.current-chip .cover {
  width: 23px;
  height: 33px;
  object-fit: contain;
  box-shadow: none;
}
.current-chip small,
.current-chip strong {
  display: block;
  line-height: 1.25;
}
.current-chip small {
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  color: #eee6d3;
}
.current-chip strong {
  font-size: 0.8rem;
  font-weight: 620;
  margin-top: 2px;
}
.last-reads {
  margin-top: 30px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.section-title h2 {
  font-size: clamp(1.65rem, 2.1vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}
.see-all {
  color: var(--green);
  font-size: 0.86rem;
  padding: 5px 0;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--tinted-border);
}
.see-all:hover {
  text-decoration-color: currentColor;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(13px, 1.45vw, 26px);
}
.book-card {
  min-width: 0;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  align-self: start;
  border-radius: 10px;
}
.book-mat,
.suggest-mat,
.detail-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9px;
  position: relative;
}
.book-mat {
  height: clamp(184px, 15.8vw, 260px);
}
.mat-0 {
  background: #ecded2;
}
.mat-1 {
  background: #dce6dd;
}
.mat-2 {
  background: #e7ddc8;
}
.mat-3 {
  background: #e9dede;
}
.mat-4 {
  background: #dce5e8;
}
.mat-5 {
  background: #e7e0eb;
}
.cover {
  display: block;
  object-fit: contain;
}
.book-mat .cover,
.suggest-mat .cover,
.detail-cover .cover {
  height: 84%;
  width: auto;
  max-width: 86%;
  border-radius: 1px 3px 3px 1px;
  box-shadow:
    -1px 2px 2px #2b281b30,
    3px 7px 10px #30261530;
  transition: transform 0.2s;
}
button.book-card:hover .book-mat .cover {
  transform: translateY(-3px) rotate(-1deg);
}
.book-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 11px 1px 0;
  line-height: 1.3;
}
.book-caption > strong,
.compact-book strong,
.teaser-book strong,
.suggestion-card h2 {
  font: 400 clamp(1.05rem, 1.34vw, 1.44rem)/1.13 var(--serif);
  letter-spacing: -0.025em;
}
.book-author,
.compact-book small,
.teaser-book small {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  display: block;
  margin-top: 4px;
}
.card-rating {
  display: flex;
  gap: 6px 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
}
.stars {
  display: inline-flex;
  gap: 2px;
  color: #817760;
}
.stars .lit,
.rating-input .lit svg {
  fill: #b47324;
  stroke: #a6691e;
}
.card-date {
  font-size: 0.75rem;
  color: #63675f;
}
.home-lower {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 23px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
}
.lower-panel {
  min-width: 0;
}
.lower-panel + .lower-panel {
  border-left: 1px solid var(--line);
  padding-left: 27px;
}
.lower-panel .section-title h2 {
  font-size: 1.5rem;
}
.compact-book,
.teaser-book {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 7px 0;
  width: 100%;
}
.compact-cover,
.detail-cover {
  flex: none;
}
.compact-cover {
  height: 58px;
  width: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compact-cover .cover {
  max-width: 100%;
  max-height: 100%;
  border-radius: 2px;
  box-shadow: 1px 2px 4px #0002;
}
.end-icon,
.teaser-book > svg {
  margin-left: auto;
  color: var(--green);
}
.suggestion-teaser > p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 6px 0;
}
.text-button,
.inline-action {
  gap: 7px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 650;
  padding: 5px 0;
  text-decoration: none;
}
.text-button:hover,
.inline-action:hover {
  text-decoration: underline;
}
.page-heading {
  margin: 6px 0 25px;
}
.section-symbol {
  display: grid;
  place-items: center;
  border-radius: 11px;
  width: 44px;
  height: 44px;
  background: var(--tint);
  color: var(--green);
  margin-bottom: 10px;
}
.page-heading h1,
.shared-hero h1 {
  font-size: clamp(2.45rem, 3.8vw, 4rem);
  line-height: 1.07;
  letter-spacing: -0.045em;
}
.page-heading p {
  margin-top: 8px;
  color: var(--muted);
}
.filters,
.share-buttons,
.dialog-actions,
.segmented,
.rating-row,
.current-control {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.filters {
  margin-bottom: 24px;
}
.searchbox,
.filter-select {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  padding: 0 11px;
  color: var(--muted);
  min-height: 42px;
}
.filters .searchbox {
  flex: 1;
  min-width: min(200px, 100%);
}
.searchbox input,
.filter-select select {
  border: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  margin: 0;
  width: 100%;
  min-width: 0;
}
.searchbox input {
  outline-offset: 0;
  padding: 8px 0;
}
.filter-select select {
  padding: 8px 21px 8px 0;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12' fill='none' stroke='%23576256' stroke-width='1.5'%3E%3Cpath d='m2 4 5 5 5-5'/%3E%3C/svg%3E");
  background-position: right 9px center;
  background-repeat: no-repeat;
}
.filter-select select {
  background-position: right 0 center;
}
input,
select,
textarea {
  color: var(--ink);
  font-size: 1rem;
  border-radius: 7px;
  border: 1px solid #cdcec5;
  padding: 9px 11px;
  background-color: #fffefa;
  line-height: 1.4;
  max-width: 100%;
}
select {
  padding-right: 34px;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #787c72;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 1px dashed var(--tinted-border);
  border-radius: 12px;
  background: #f6f6ef;
  padding: 34px 18px;
  color: var(--green);
}
.empty p {
  font-size: 0.94rem;
  color: var(--muted);
}
.empty h3,
.live-share h3,
.review h3 {
  font-size: 1.35rem;
}
.empty .btn {
  margin-top: 5px;
}
.cover-type {
  background: #395347;
  color: #fbf4df;
  aspect-ratio: 2/3;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  padding: 8px;
  overflow: hidden;
}
.cover-type b {
  font: 1.1rem/1.12 var(--serif);
  overflow-wrap: anywhere;
}
.cover-type small {
  font-size: 0.7rem;
}
.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.suggestion-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fffdf9;
}
.suggest-mat {
  width: 34%;
  min-height: 150px;
  align-self: stretch;
  flex-shrink: 0;
}
.suggest-mat .cover {
  height: auto;
  max-width: 74%;
  max-height: 130px;
}
.reason {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 10px 0;
}
.suggestion-card .btn {
  font-size: 0.8rem;
  padding: 8px 10px;
}
.dialog {
  background: var(--paper);
  color: var(--ink);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 20px 80px #18282044;
  width: min(460px, calc(100vw - 28px));
  max-height: min(89dvh, 850px);
  overflow: auto;
}
.dialog.wide {
  width: min(600px, calc(100vw - 28px));
}
.dialog::backdrop {
  background: #14241863;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 18px;
}
.dialog-head h2 {
  font-size: 1.8rem;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.book-form,
.share-panel,
.profile-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.book-form label,
.share-panel > label,
.catalog-search > label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 650;
  font-size: 0.87rem;
}
.book-form label input,
.book-form label select,
.book-form label textarea,
.share-panel select,
.share-panel input {
  font-weight: 400;
  width: 100%;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.field-pair > * {
  min-width: 0;
}
.catalog-search {
  position: relative;
}
.friends-panel,
.friend-item,
.friend-result {
  display: grid;
  gap: 14px;
}
.friends-panel > p,
.friend-item h3,
.friend-item h4 {
  margin: 0;
}
.friend-item {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.friend-item h3,
.friend-item label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.friend-item fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.friend-item fieldset input {
  width: auto;
}
.friend-item a {
  margin-right: 12px;
}
.friends-panel .text-button {
  justify-self: start;
}
.social-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffefa;
}
.social-card h3,
.social-card h4,
.social-card p {
  margin: 0;
}
.social-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}
.social-heading,
.monthly-friends li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.reading-points {
  padding: 4px 9px;
  border-radius: 20px;
  background: var(--tint);
  color: var(--forest);
  font-size: 0.83rem;
}
.monthly-setting,
.monthly-winner {
  display: grid;
  gap: 7px;
}
.monthly-setting h4 {
  font-size: 0.9rem;
}
.monthly-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.monthly-toggle input {
  width: auto;
}
.monthly-winner,
.monthly-ballot {
  padding: 12px;
  border-radius: 8px;
  background: var(--tint);
}
.monthly-winner small,
.monthly-winner span {
  color: var(--muted);
}
.monthly-friends {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.monthly-friends span {
  overflow-wrap: anywhere;
}
.invitation-page > main {
  max-width: 520px;
}
.invitation-card {
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefa;
}
.invitation-card h1 {
  font-size: clamp(1.85rem, 5vw, 2.4rem);
  overflow-wrap: anywhere;
}
.catalog-search .searchbox {
  margin-top: 5px;
}
.matches {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  max-height: 245px;
  overflow: auto;
  margin-top: 4px;
}
.matches button {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 6px;
  gap: 9px;
  border-radius: 4px;
}
.matches button:hover {
  background: var(--tint);
}
.matches .cover {
  height: 36px;
  width: 24px;
}
.matches small,
.matches strong {
  display: block;
}
.matches small,
.matches p,
.matches .finish-search,
.field-help,
.install-help p,
.share-sample > p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}
.matches .finish-search {
  color: var(--green);
  font-weight: 650;
}
.cover-field > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cover-field .cover {
  max-height: 58px;
  max-width: 40px;
}
.cover-field label {
  flex: 1;
}
.cover-field input {
  font-size: 0.82rem;
}
.rating-field {
  border: 0;
  margin: 0;
  padding: 0;
}
.rating-field legend {
  font-size: 0.87rem;
  font-weight: 650;
  margin-bottom: 3px;
  padding: 0;
}
.rating-input {
  display: flex;
  align-items: center;
}
.rating-input label {
  position: relative;
  color: #777a70;
  cursor: pointer;
  padding: 3px;
}
.rating-input input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.rating-input label:focus-within {
  outline: 2px solid var(--accent);
  border-radius: 4px;
}
.rating-input svg {
  stroke-width: 1.4;
}
.rating-row .text-button {
  font-size: 0.75rem;
}
.dialog-actions {
  margin-top: 5px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.dialog-actions.left {
  justify-content: flex-start;
}
.danger {
  color: #9e352f;
}
.danger-fill {
  background: #9e352f;
  color: white;
}
.dialog-actions.left > .danger {
  margin-left: auto;
}
.detail-intro,
.profile-summary {
  display: flex;
  align-items: center;
  gap: 17px;
}
.detail-cover {
  width: 96px;
  height: 130px;
}
.detail-intro h3,
.profile-summary h3 {
  font-size: 1.65rem;
  line-height: 1.1;
  margin: 6px 0;
}
.detail-intro p:not(.eyebrow) {
  font-size: 0.9rem;
  color: var(--muted);
}
.reading-facts {
  margin: 17px 0;
}
.reading-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.reading-facts dt {
  color: var(--muted);
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.reading-facts dd {
  margin: 0;
  text-align: right;
}
.review p {
  font-size: 0.94rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 4px 0 17px;
  color: #555b52;
}
.current-control {
  padding: 9px;
  margin-top: 12px;
  background: var(--tint);
  color: var(--green);
  border-radius: 8px;
  font-size: 0.85rem;
}
.share-sample {
  border: 1px solid var(--tinted-border);
  border-radius: 10px;
  background: var(--tint);
  padding: 15px;
}
.share-sample > div,
.live-share h3,
.share-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}
.share-sample > div strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
}
.share-sample .sample-line {
  color: var(--ink);
  margin-top: 5px;
}
.share-sample .sample-line span,
.sample-more,
.muted {
  color: var(--muted);
}
.live-share {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.share-feedback,
.alert,
.offline-note {
  font-size: 0.9rem;
}
.alert,
.offline-note {
  background: #f6ebdd;
  color: #704b2f;
  border-radius: 8px;
  padding: 10px 13px;
  margin-bottom: 12px;
}
.avatar.large {
  width: 48px;
  height: 48px;
  font-size: 1.85rem;
}
.profile-panel > p {
  color: var(--muted);
}
.install-help {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.install-help strong {
  font-size: 0.9rem;
}
.segmented {
  background: var(--tint);
  padding: 4px;
  border-radius: 8px;
  gap: 0;
}
.segmented button {
  flex: 1;
  padding: 7px;
  border-radius: 5px;
  font-size: 0.87rem;
}
.segmented .selected {
  background: white;
  color: var(--green);
  font-weight: 650;
  box-shadow: 0 1px 3px #0001;
}
.toast {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--forest);
  color: white;
  padding: 11px 17px;
  border-radius: 9px;
  box-shadow: 0 4px 22px #19392236;
  font-size: 0.9rem;
  max-width: 90vw;
  width: max-content;
}
.shared-page {
  min-height: 100dvh;
  background: var(--paper);
}
.shared-page > header,
.shared-page > main {
  max-width: 1120px;
  margin: auto;
  padding: 22px clamp(16px, 4vw, 48px);
}
.shared-page > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shared-page > header > span:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--muted);
}
.shared-hero {
  margin-bottom: 28px;
  padding: 36px;
  min-height: 170px;
  display: flex;
  align-items: center;
}
.shared-hero > div:last-child {
  position: relative;
  width: 62%;
}
.shared-hero h1 {
  margin: 9px 0;
  line-height: 1;
}
.shared-hero p {
  color: var(--illume);
}
.loading {
  min-height: 70dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--forest);
  font: 1.55rem var(--serif);
}
@media (min-width: 1650px) {
  .hero {
    min-height: 316px;
  }
  .hero-art {
    background-size: contain;
    background-position: right center;
  }
}
@media (max-width: 1150px) {
  :root {
    --side: 214px;
  }
  .sidebar {
    padding-left: 13px;
    padding-right: 13px;
  }
  .brand > span {
    font-size: 22px;
  }
  .bar-inner,
  .main {
    padding-left: 26px;
    padding-right: 26px;
  }
  .hero {
    min-height: 263px;
  }
  .book-mat {
    height: 180px;
  }
  .hero-stats button {
    padding: 0 10px;
  }
  .card-date {
    width: 100%;
  }
  .suggestion-card {
    flex-direction: column;
    align-items: stretch;
  }
  .suggest-mat {
    height: 160px;
    width: 100%;
  }
  .suggest-mat .cover {
    height: 85%;
    max-height: none;
    width: auto;
  }
}
@media (max-width: 850px) {
  :root {
    --side: 185px;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand {
    gap: 8px;
  }
  .brand > img {
    width: 38px;
    height: 38px;
  }
  .brand > span {
    font-size: 20px;
  }
  .book-grid {
    gap: 13px;
  }
  .book-mat {
    height: 152px;
  }
  .main,
  .bar-inner {
    padding-left: 19px;
    padding-right: 19px;
  }
  .hero h1 {
    font-size: 2.95rem;
  }
  .hero {
    padding: 24px;
    min-height: 245px;
  }
  .hero-stats strong {
    font-size: 1.35rem;
  }
  .hero-stats button {
    gap: 4px;
  }
  .hero-stats span {
    font-size: 0.74rem;
  }
  .home-lower {
    gap: 18px;
  }
  .lower-panel + .lower-panel {
    padding-left: 17px;
  }
  .nav-link {
    font-size: 0.87rem;
    gap: 9px;
  }
  .current-chip {
    max-width: 40%;
  }
}
@media (max-width: 700px) {
  :root {
    --side: 0px;
  }
  .workspace {
    margin: 0;
  }
  .sidebar {
    width: min(285px, 85vw);
    transform: translateX(-110%);
    padding: 24px 18px;
    transition: transform 0.18s;
    visibility: hidden;
  }
  .sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .side-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 3px 25px;
  }
  .mobile-close {
    display: inline-flex;
  }
  .scrim {
    position: fixed;
    display: block;
    inset: 0;
    z-index: 5;
    background: #18241d66;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .mobile-brand .brand > img {
    display: none;
  }
  .mobile-brand .brand > span {
    font-size: 18px;
    letter-spacing: -0.55px;
  }
  .mobile-brand .brand em {
    font-size: 0.95em;
  }
  .crumbs {
    display: none;
  }
  .bar-inner {
    height: 63px;
    padding: 0 14px;
    gap: 7px;
  }
  .btn {
    min-height: 42px;
  }
  .top-actions {
    gap: 6px;
  }
  .top-actions .btn {
    padding: 8px 10px;
  }
  .top-actions .btn.outline {
    width: 40px;
    height: 40px;
    padding: 0;
  }
  .top-actions .btn.outline span {
    display: none;
  }
  .main {
    padding: 17px 15px max(35px, env(safe-area-inset-bottom));
  }
  .hero {
    min-height: 226px;
    padding: 21px;
  }
  .hero-art {
    width: 46%;
    background-size: auto 69%;
    background-position: 55% 36%;
  }
  .hero h1 {
    font-size: clamp(2.35rem, 8vw, 3.2rem);
    margin: 15px 0 19px;
  }
  .hero-kicker {
    font-size: 0.6rem;
    letter-spacing: 0.11em;
    gap: 4px;
  }
  .hero-stats {
    gap: 0;
  }
  .hero-stats button {
    display: block;
    min-width: 41px;
    text-align: left;
    border-color: #ffffff3c;
    padding: 0 8px;
  }
  .hero-stats button:first-child {
    padding-left: 0;
  }
  .hero-stats strong,
  .hero-stats span {
    display: block;
  }
  .hero-stats strong {
    font-size: 1.28rem;
    line-height: 1.2;
  }
  .hero-stats span {
    font-size: 0.71rem;
    white-space: nowrap;
  }
  .current-chip {
    right: 8px;
    bottom: 9px;
    padding: 4px 6px;
    gap: 5px;
    max-width: 43%;
  }
  .current-chip .cover {
    width: 18px;
    height: 25px;
  }
  .current-chip small {
    font-size: 0.61rem;
  }
  .current-chip strong {
    font-size: 0.7rem;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
  .current-chip > span {
    overflow: hidden;
  }
  .last-reads {
    margin-top: 25px;
  }
  .section-title {
    margin-bottom: 14px;
  }
  .section-title h2 {
    font-size: 1.65rem;
  }
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 13px;
  }
  .book-mat {
    height: clamp(162px, 43vw, 230px);
  }
  .book-caption > strong {
    font-size: 1.13rem;
  }
  .book-caption {
    padding-top: 9px;
  }
  .book-author {
    font-size: 0.82rem;
  }
  .card-date {
    width: auto;
  }
  .home-lower {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .lower-panel + .lower-panel {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 17px 0 0;
  }
  .suggestion-grid {
    grid-template-columns: 1fr;
  }
  .suggestion-card {
    flex-direction: row;
  }
  .suggest-mat {
    width: 30%;
    height: auto;
    min-height: 130px;
  }
  .suggest-mat .cover {
    height: auto;
    max-width: 80%;
    max-height: 120px;
  }
  .filters {
    gap: 7px;
  }
  .filters .searchbox {
    flex-basis: 100%;
  }
  .field-pair {
    grid-template-columns: 1fr;
  }
  .read-fields {
    grid-template-columns: 1fr 1.2fr;
  }
  .dialog {
    padding: 19px;
    max-height: 88dvh;
  }
  .rating-input label {
    padding: 2px;
  }
  .rating-input svg {
    width: 23px;
  }
  .dialog-head h2 {
    font-size: 1.55rem;
  }
  .shared-hero {
    padding: 22px;
  }
  .shared-hero h1 {
    font-size: 2rem;
  }
  .profile {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .nav-link {
    font-size: 0.96rem;
  }
  .topbar {
    padding-top: env(safe-area-inset-top);
  }
}
@media (max-width: 360px) {
  .top-actions .primary span {
    display: none;
  }
  .hero {
    padding: 16px;
  }
  .main {
    padding-left: 11px;
    padding-right: 11px;
  }
  .dialog {
    padding: 15px;
  }
  .read-fields {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.side-footer {
  margin-top: auto;
}
.start-carnet {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 650;
  margin-bottom: 9px;
  border-radius: 8px;
}
.start-carnet:hover {
  background: var(--tint);
}
.demo-form-note {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.demo-form-note .text-button {
  font-size: inherit;
}
.main:focus {
  outline: 0;
}

.import-shortcut {
  margin: 0 0 14px;
}
.list-import .field-help {
  display: block;
}
.list-import textarea {
  resize: vertical;
}
.list-import .import-file {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px;
  border-radius: 8px;
  border: 1px dashed var(--tinted-border);
  color: var(--green);
  background: var(--tint);
  text-align: center;
  cursor: pointer;
}
.import-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.import-file:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.import-summary {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 6px;
  outline: none;
}
.import-rows {
  margin: 15px 0;
}
.import-row {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.import-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.import-row-head input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--green);
  flex: none;
}
.import-row-head > div {
  flex: 1;
  min-width: 0;
}
.import-row-head strong,
.import-row-head small,
.import-issue,
.import-duplicate {
  display: block;
  overflow-wrap: anywhere;
}
.import-row-head small,
.import-source,
.import-duplicate,
.import-issue {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}
.import-issue {
  color: #874719;
}
.import-edit {
  margin: 8px 0;
  padding: 14px;
  border-radius: 9px;
  background: var(--tint);
}
.import-source {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.import-source strong {
  display: block;
}
