:root {
  --ink: #17221a;
  --muted: #667068;
  --forest: #315c45;
  --forest-dark: #244535;
  --sage: #eef2e7;
  --sage-strong: #dfe9d7;
  --sun: #efc84a;
  --sun-light: #f8e69b;
  --cream: #fffaf0;
  --cream-deep: #f7f0df;
  --line: #e5e4da;
  --taupe: #d8cba9;
  --white: #ffffff;
  --shadow: 0 16px 45px rgba(43, 58, 46, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); background: var(--forest); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  height: 92px;
  padding: 13px clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(229,228,218,.8);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 285px; }
.brand-symbol { width: 47px; height: 54px; object-fit: contain; flex: 0 0 auto; }
.brand-words { display: flex; flex-direction: column; min-width: 0; }
.brand-words strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.05; letter-spacing: -.02em; white-space: nowrap; }
.brand-words small { margin-top: 6px; color: #76746f; text-transform: uppercase; font-size: 8px; letter-spacing: .25em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 38px); position: relative; }
.main-nav > a { text-decoration: none; font-size: 15px; font-weight: 600; padding: 12px 0; border-bottom: 2px solid transparent; }
.main-nav > a:hover, .main-nav > a:focus { color: var(--forest); border-color: var(--forest); }
.sign-in { border: 0; background: transparent; color: var(--ink); padding: 10px 0; cursor: pointer; font-weight: 600; }
.sign-in.signed-in { color: var(--forest); }
.text-language-button { border: 1px solid var(--line); border-radius: 9px; background: white; padding: 8px 12px; cursor: pointer; font-weight: 700; }
.text-language-select { border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); padding: 8px 30px 8px 10px; cursor: pointer; font: inherit; font-weight: 700; }
.header-language-control { display: inline-flex; align-items: center; gap: 7px; padding-left: 9px; border-left: 1px solid var(--line); color: var(--forest); }
.header-language-control .text-language-select { min-width: 104px; }
.language-button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: white; display: grid; place-items: center; cursor: pointer; }
.language-button:hover, .language-button:focus { background: var(--sage); border-color: var(--forest); }
.lucide-icon { width: 20px; height: 20px; display: block; }
.language-menu { display: none; position: absolute; right: 58px; top: 50px; min-width: 140px; padding: 7px; border: 1px solid var(--line); background: white; border-radius: 12px; box-shadow: var(--shadow); }
.language-menu.open { display: grid; }
.language-menu button { border: 0; background: transparent; text-align: left; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.language-menu button:hover, .language-menu button.active { background: var(--sage); color: var(--forest-dark); }

html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .language-menu { right: auto; left: 58px; }
html[dir="rtl"] .language-menu button,
html[dir="rtl"] .resource-card,
html[dir="rtl"] .compact-detail-intro,
html[dir="rtl"] .ai-summary-panel,
html[dir="rtl"] .compact-review-panel,
html[dir="rtl"] .suggest-card,
html[dir="rtl"] .suggest-process { text-align: right; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; }

.hero { min-height: 480px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); overflow: hidden; background: radial-gradient(circle at 70% 30%, #fffdf8, var(--cream)); }
.hero-copy { padding: clamp(72px, 7vw, 110px) 40px 72px max(5vw, 40px); max-width: 850px; align-self: center; }
.eyebrow { color: var(--forest); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: 12px; margin: 0 0 16px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; margin-top: 0; }
h1 { font-size: clamp(48px, 5.2vw, 78px); letter-spacing: -.045em; margin-bottom: 24px; max-width: 820px; }
.hero-description { font-size: clamp(18px, 1.6vw, 23px); color: #485149; margin: 0 0 34px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--sun-light), var(--sun)); color: #181b14; font-weight: 800; text-decoration: none; box-shadow: 0 9px 25px rgba(202,159,33,.18); cursor: pointer; }
.primary-button:hover, .primary-button:focus { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(202,159,33,.25); }
.hero-art { position: relative; min-height: 480px; overflow: hidden; }
.sunflower { position: absolute; z-index: 2; width: 100%; height: 100%; right: 0; top: 0; object-fit: contain; object-position: right bottom; }

.resource-section { max-width: 1440px; margin: 0 auto; padding: 86px clamp(22px, 5vw, 76px) 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-heading h2, .about-section h2 { font-size: clamp(36px, 3.6vw, 54px); letter-spacing: -.035em; margin-bottom: 0; }
.result-count { margin: 0 0 7px; color: var(--muted); white-space: nowrap; }
.result-count strong { color: var(--forest); font-size: 28px; }
.resource-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(26px, 3.5vw, 50px); align-items: start; }
.filter-sidebar { position: sticky; top: 116px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); padding: 23px; }
.filter-sidebar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.filter-sidebar-heading .eyebrow { margin: 0; }
.filter-sidebar-heading button { display: none; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.filters { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.filter-label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.filter-divider { height: 1px; background: var(--line); margin: 4px 0 3px; }
.filter-by-title { margin: 0 0 1px; font-weight: 800; font-size: 14px; }
.filter-group { border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.filter-group summary { position: relative; padding: 15px 38px 15px 15px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 800; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "⌄"; position: absolute; right: 15px; top: 13px; font-size: 18px; transition: transform .18s; }
.filter-group[open] summary::after { transform: rotate(180deg); }
.checkbox-list { display: grid; gap: 10px; padding: 2px 15px 16px; }
.check-option { display: grid; min-width: 0; grid-template-columns: 17px minmax(0, 1fr); align-items: start; gap: 9px; color: #4f5c53; font-size: 12px; line-height: 1.35; cursor: pointer; }
.check-option span { min-width: 0; overflow-wrap: anywhere; }
.check-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--forest); }
.filter-toggle { display: none; width: 100%; min-height: 50px; margin: 0 0 22px; border: 1px solid var(--forest); border-radius: 11px; background: var(--sage); color: var(--forest-dark); font-weight: 800; cursor: pointer; }
.search-box, .select-wrap { min-width: 0; max-width: 100%; min-height: 58px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 13px; background: white; display: flex; align-items: center; padding: 0 16px; transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within, .select-wrap:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(49,92,69,.1); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 8px 0 8px 34px; background: transparent; }
.search-icon { position: absolute; width: 18px; height: 18px; border: 2px solid var(--forest); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 7px; border-top: 2px solid var(--forest); transform: rotate(45deg); right: -5px; bottom: -3px; }
.select-wrap { background: var(--cream); gap: 8px; }
.select-wrap span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.select-wrap select { width: 100%; min-width: 0; max-width: 100%; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); cursor: pointer; }
.clear-button { min-height: 58px; padding: 0 18px; border-radius: 13px; border: 1px solid var(--line); background: white; cursor: pointer; font-weight: 700; }
.clear-button:hover { background: var(--sage); }
.active-filter-note { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.resource-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; box-shadow: 0 8px 25px rgba(35,51,40,.055); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; cursor: pointer; }
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d2d9cd; }
.resource-card:focus-within { outline: 3px solid rgba(49,92,69,.28); outline-offset: 3px; }
.card-click-target { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.bookmark-button { position: relative; z-index: 4; flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(49,92,69,.18); border-radius: 50%; background: white; color: var(--forest); cursor: pointer; font-size: 22px; line-height: 1; }
.bookmark-button:hover, .bookmark-button:focus, .bookmark-button.saved { background: var(--sun-light); border-color: #d2a91f; color: #735800; }
.resource-image { height: 152px; background: linear-gradient(140deg, #fbf7ec, #f1f3e9); display: grid; place-items: center; position: relative; overflow: hidden; }
.resource-image::before { content: ""; width: 54px; height: 44px; border: 2px solid #d7d0be; border-radius: 9px; opacity: .8; }
.resource-image::after { content: ""; position: absolute; width: 28px; height: 22px; border-left: 2px solid #d7d0be; border-top: 2px solid #d7d0be; transform: rotate(45deg); margin-top: 10px; }
.resource-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; z-index: 2; }
.resource-body { padding: 18px 20px 16px; display: flex; flex-direction: column; flex: 1; }
.resource-type-row { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.resource-type { color: var(--forest); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 7px; }
.resource-type-icon { width: 16px; height: 16px; flex: 0 0 auto; stroke-width: 1.9; }
.resource-card h3 { min-height: 50px; margin-bottom: 8px; font-size: 24px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.resource-summary { color: #39433c; font-size: 13px; line-height: 1.45; margin: 0 0 11px; min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.tag { background: var(--sage); color: #3f5847; border-radius: 999px; padding: 6px 11px; font-size: 12px; }
.resource-card .tag-row { flex-wrap: nowrap; gap: 6px; margin-bottom: 15px; overflow: hidden; }
.resource-card .tag { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 9px; font-size: 10.5px; }
.card-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rating { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.star-meter { display: inline-flex; align-items: center; gap: 1px; color: #d8cba9; font-size: 17px; line-height: 1; }
.score-star { position: relative; display: inline-block; width: 1em; height: 1em; color: #d8cba9; }
.score-star::before { content: "★"; position: absolute; inset: 0; width: var(--star-fill, 0%); overflow: hidden; color: #e4ad00; }
.rating-value { min-width: 2ch; color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.rating-help { position: relative; z-index: 4; display: inline-flex; align-items: center; }
.rating-help-button { width: 21px; height: 21px; display: grid; place-items: center; padding: 0; border: 1.5px solid var(--forest); border-radius: 50%; background: white; color: var(--forest); font: 800 12px/1 inherit; cursor: pointer; }
.rating-help-button:hover, .rating-help-button:focus-visible, .rating-help.open .rating-help-button { background: var(--forest); color: white; outline: none; }
.rating-help-popover { position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 12; width: min(310px, 78vw); padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fffdf7; color: #354138; box-shadow: 0 12px 34px rgba(28,45,33,.2); font-size: 11.5px; font-weight: 500; line-height: 1.5; opacity: 0; pointer-events: none; transform: translate(-50%, 5px); transition: opacity .16s ease, transform .16s ease; }
.rating-help-popover strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 12px; }
.rating-help:hover .rating-help-popover, .rating-help:focus-within .rating-help-popover, .rating-help.open .rating-help-popover { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.card-open-hint { color: var(--forest); font-size: 25px; line-height: 1; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--cream); }
.empty-state h3 { font-size: 28px; margin-bottom: 8px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 42px; flex-wrap: wrap; }
.page-button { min-width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: white; cursor: pointer; }
.page-button:hover, .page-button.active { color: white; background: var(--forest); border-color: var(--forest); }

.about-section { background: var(--forest-dark); color: white; padding: 100px max(5vw, 40px); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 7vw, 110px); }
.about-section .eyebrow { color: var(--sun-light); }
.about-card p:last-child { color: #dce5df; font-size: 18px; max-width: 650px; }
.about-points { display: grid; gap: 12px; }
.about-points article { display: grid; grid-template-columns: 50px 135px 1fr; gap: 18px; align-items: baseline; border-top: 1px solid rgba(255,255,255,.22); padding: 23px 0; }
.about-points span { color: var(--sun-light); }
.about-points h3 { margin: 0; font-size: 24px; }
.about-points p { margin: 0; color: #dce5df; }
footer { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 32px max(5vw, 40px); background: #f8f5ed; color: var(--muted); }
footer img { width: 245px; height: 70px; object-fit: contain; object-position: left center; }

dialog { border: 0; border-radius: 22px; padding: 0; box-shadow: 0 25px 80px rgba(20,33,23,.28); color: var(--ink); }
dialog::backdrop { background: rgba(21,31,24,.62); backdrop-filter: blur(3px); }
.resource-dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 28px); overflow: auto; }
.signin-dialog { width: min(480px, calc(100% - 28px)); padding: 42px; }
.signin-dialog h2 { margin-bottom: 10px; font-size: 34px; }
.signin-dialog > p:not(.eyebrow):not(.form-notice) { margin: 0; color: var(--muted); line-height: 1.55; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0 0 24px; padding: 5px; border-radius: 12px; background: #f1f3ed; }
.auth-tabs[hidden], [data-guest-section][hidden] { display: none; }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.auth-tabs button.active { background: white; color: var(--forest-dark); box-shadow: 0 2px 8px rgba(35,51,40,.1); }
.dialog-close { position: sticky; float: right; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.94); cursor: pointer; font-size: 24px; }
.dialog-hero { padding: 48px 42px 34px; background: var(--cream); }
.dialog-hero h2 { font-size: 42px; margin-bottom: 12px; }
.dialog-summary { max-width: 590px; margin: 0 0 18px; color: #4c584f; font-size: 17px; line-height: 1.55; }
.dialog-main { padding: 34px 42px 44px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
.detail-item { background: #f7f8f4; border-radius: 12px; padding: 14px; }
.detail-item > span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.review-block { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.description-block { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.description-block h3 { font-size: 25px; margin-bottom: 12px; }
.description-block p { margin: 0; color: #3f4741; line-height: 1.75; white-space: pre-line; }
.review-block h3 { font-size: 25px; }
.review { background: var(--cream); padding: 17px; border-radius: 12px; margin-top: 12px; }
.review-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; margin-bottom: 8px; }
.review p { margin: 0; color: #3f4741; white-space: pre-line; }
.source-link { margin-top: 26px; width: 100%; }
.secondary-source-link { display: block; margin-top: 14px; text-align: center; color: var(--forest); font-weight: 800; }
.dialog-action { margin-top: 18px; }
.signin-form { display: grid; gap: 16px; margin-top: 24px; }
.signin-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
.signin-form label[hidden] { display: none; }
.signin-form input { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 10px; background: #f7f8f4; padding: 10px 13px; color: var(--ink); }
.signin-form input:focus { outline: 0; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(49,92,69,.1); }
.signin-form .dialog-action { width: 100%; margin-top: 4px; }
.signin-form .dialog-action:disabled { opacity: .55; cursor: wait; transform: none; }
.auth-text-button { justify-self: start; margin-top: -7px; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--forest); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.auth-text-button:hover { color: var(--forest-dark); }
.auth-status { min-height: 20px; margin: -2px 0 0; font-size: 12px; line-height: 1.45; }
.auth-status.error { color: #a23a31; }
.auth-status.success { color: var(--forest); }
.auth-status.pending { color: var(--muted); }
.auth-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 18px 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; border-top: 1px solid var(--line); }
.guest-access { width: 100%; }
.demo-privacy { display: block; margin-top: 18px; color: var(--muted); text-align: center; }

.detail-page, .saved-page { min-height: calc(100vh - 242px); background: #fbfaf6; padding: 54px clamp(22px, 6vw, 90px) 90px; }
.detail-page { max-width: 1440px; margin: 0 auto; padding-top: 30px; }
.back-link { display: inline-flex; margin-bottom: 15px; color: var(--forest); font-weight: 800; text-decoration: none; }
.detail-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); }
.detail-cover { min-height: 390px; background: linear-gradient(140deg, #fbf7ec, #f1f3e9); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-intro { padding: clamp(38px, 5vw, 72px); align-self: center; }
.detail-intro h1 { font-size: clamp(44px, 5vw, 70px); }
.detail-lede { color: #39433c; font-size: 19px; line-height: 1.65; }
.save-detail-button { min-height: 48px; padding: 0 18px; border: 1px solid var(--forest); border-radius: 10px; background: white; color: var(--forest); font-weight: 800; cursor: pointer; }
.save-detail-button.saved { border-color: #d2a91f; background: var(--sun-light); color: #654e00; }
.detail-content { grid-column: 1 / -1; padding: 42px clamp(24px, 5vw, 70px) 60px; border-top: 1px solid var(--line); }
.detail-content .detail-grid { grid-template-columns: repeat(4, 1fr); }
.detail-content h2 { font-size: 31px; }
.page-loading, .not-found, .saved-empty { max-width: 760px; margin: 70px auto; padding: 55px; border: 1px solid var(--line); border-radius: 24px; background: white; text-align: center; }
.not-found h1, .saved-empty h1 { font-size: clamp(40px, 5vw, 62px); }
.not-found p, .saved-empty p { color: var(--muted); margin-bottom: 28px; }

.saved-page { max-width: 1440px; margin: 0 auto; }
.profile-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 25px 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); }
.profile-strip .eyebrow { margin-bottom: 4px; }
.profile-strip h1 { margin: 0 0 4px; font-size: 32px; }
.profile-strip p:last-child { margin: 0; color: var(--muted); }
.profile-editor { margin-top: 10px; }
.profile-editor summary { width: fit-content; color: var(--teal-dark); font-weight: 700; cursor: pointer; }
.profile-editor form { display: grid; grid-template-columns: minmax(180px, 320px) auto; align-items: end; gap: 10px; margin-top: 12px; }
.profile-editor label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.profile-editor input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: white; }
.profile-editor .primary-button { min-height: 42px; }
.profile-editor .auth-status { grid-column: 1 / -1; margin: 0; color: var(--danger); }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.profile-actions .secondary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.demo-avatar { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; font-weight: 900; }
.secondary-button { min-height: 44px; padding: 0 17px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; font-weight: 800; }
.saved-library, .comparison-section { padding-top: 58px; }
.saved-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 26px; }
.saved-heading h2 { margin-bottom: 8px; font-size: clamp(36px, 4vw, 52px); }
.saved-heading p:last-child { margin: 0; color: var(--muted); }
.compare-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.saved-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.saved-card { min-width: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 21px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.saved-card > img { width: 180px; height: 150px; object-fit: cover; border-radius: 12px; background: var(--sage); }
.saved-card h3 { margin: 8px 0; font-size: 24px; }
.saved-card h3 a { text-decoration: none; }
.saved-card h3 a:hover { color: var(--forest); text-decoration: underline; }
.saved-card p { margin: 0 0 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.compare-check { display: inline-flex; align-items: center; gap: 7px; color: var(--forest); font-size: 13px; font-weight: 800; cursor: pointer; }
.compare-check input { width: 17px; height: 17px; accent-color: var(--forest); }
.remove-saved { border: 0; padding: 0; background: transparent; color: #8a473e; text-decoration: underline; cursor: pointer; font-size: 13px; }
.compare-message { min-height: 24px; color: var(--forest); font-weight: 700; }
.collection-empty { padding: 55px; border: 1px dashed var(--line); border-radius: 20px; background: white; text-align: center; }
.comparison-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: white; }
.comparison-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { min-width: 190px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th:first-child { min-width: 155px; color: var(--forest); }
.comparison-table thead th { background: var(--cream); font-family: Georgia, "Times New Roman", serif; font-size: 19px; }
.comparison-table a { text-decoration: none; }

.compact-detail-shell { border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 12px 34px rgba(43,58,46,.07); overflow: hidden; }
.compact-detail-hero { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 280px; }
.compact-detail-cover { margin: 20px 0 20px 20px; border-radius: 15px; overflow: hidden; background: var(--sage); }
.compact-detail-cover img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; display: block; }
.compact-detail-intro { min-width: 0; padding: 25px 28px; }
.compact-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.compact-title-row .eyebrow { margin-bottom: 8px; }
.compact-title-row h1 { margin-bottom: 9px; font-size: clamp(36px, 3.8vw, 52px); }
.compact-title-row .save-detail-button { flex: 0 0 auto; }
.compact-detail-intro .detail-lede { margin: 0 0 15px; font-size: 16px; line-height: 1.5; }
.compact-metadata { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.compact-metadata .detail-item { padding: 10px 12px; }
.compact-metadata .detail-item > span { font-size: 10px; }
.compact-metadata .detail-item > strong { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.35; }
.compact-metadata .detail-item > strong.detail-rating { display: inline-flex; overflow-wrap: normal; }
.compact-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.compact-actions .tag-row { min-width: 0; margin: 0; }
.compact-actions .tag { padding: 4px 8px; font-size: 10.5px; }
.compact-source-link { flex: 0 0 auto; min-height: 43px; padding-inline: 17px; font-size: 13px; }
.detail-dashboard { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(350px, .8fr); gap: 16px; padding: 18px; border-top: 1px solid var(--line); background: #f8f7f2; }
.ai-summary-panel, .compact-review-panel, .description-disclosure { border: 1px solid var(--line); border-radius: 15px; background: white; padding: 21px; }
.ai-summary-panel.pending { color: var(--muted); }
.panel-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.panel-heading .eyebrow { margin-bottom: 6px; }
.panel-heading h2 { margin-bottom: 4px; font-size: 27px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.ai-spark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--sun-light); color: #725800; font-size: 20px; }
.ai-overview { margin: 0 0 17px; color: #354138; font-size: 14px; line-height: 1.6; }
.ai-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-points > div { padding: 13px 14px; border-radius: 11px; background: #f5f7f1; }
.ai-points > div:last-child { background: #fff9e9; }
.ai-points h3 { margin: 0 0 8px; font-family: inherit; font-size: 13px; color: var(--forest); }
.ai-points ul { margin: 0; padding-left: 18px; color: #4f5b52; font-size: 12.5px; }
.ai-points li + li { margin-top: 5px; }
.ai-note { display: block; margin-top: 13px; color: var(--muted); font-size: 10.5px; }
.description-disclosure { margin-top: 12px; padding: 0; overflow: hidden; }
.description-disclosure summary { padding: 15px 20px; cursor: pointer; color: var(--forest); font-weight: 800; }
.description-disclosure p { margin: 0; padding: 0 20px 20px; color: #3f4741; font-size: 13.5px; line-height: 1.65; white-space: pre-line; }
.compact-review-panel .review { margin: 9px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: #fbfaf6; overflow: hidden; }
.compact-review-panel .review summary { padding: 12px 13px; cursor: pointer; list-style: none; }
.compact-review-panel .review summary::-webkit-details-marker { display: none; }
.compact-review-panel .review summary::after { content: "+"; float: right; margin-top: -18px; color: var(--forest); font-weight: 900; }
.compact-review-panel .review[open] summary::after { content: "−"; }
.compact-review-panel .review-copy { padding: 12px 13px 14px; border-top: 1px solid var(--line); }
.compact-review-panel .review p { margin: 0; padding: 0; border: 0; font-size: 12.5px; line-height: 1.6; }
.review-original-toggle { margin-top: 9px; padding: 3px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--forest); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.review-original-toggle:hover { color: var(--forest-dark); }
.reviewer-line { display: flex; justify-content: space-between; gap: 10px; padding-right: 20px; font-size: 13px; }
.review-rating { color: #b28400; white-space: nowrap; }
.review-rating, .detail-rating { display: inline-flex; align-items: center; gap: 7px; }
.review-rating .star-meter { font-size: 14px; }
.review-rating .rating-value { font-size: 12px; }
.detail-rating .star-meter { font-size: 16px; }
.detail-rating .rating-value { font-size: 13px; }
.review-average { display: grid; justify-items: end; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.review-average .star-meter { font-size: 15px; }
.review-average .rating-value { color: var(--ink); font-size: 12px; font-weight: 800; }
.pricing-detail strong { font-size: 13px; line-height: 1.35; }
.reviewer-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.reviewer-badge { display: inline-flex; padding: 3px 7px; border: 1px solid #cfc0f7; border-radius: 999px; background: #efe8ff; color: #6340a5; font-size: 9.5px; font-weight: 800; }
.reviewer-badge.reviewerOfMonth { border-color: #e7c246; background: #fff3bd; color: #795d00; }
.reviewer-badge.admin { border-color: #e2b84d; background: #fff2b9; color: #6d5200; }
.reviewer-badge.expert { border-color: #8db8a0; background: #e8f4ec; color: var(--forest-dark); }
.review-context { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.review-context span { padding: 3px 7px; border-radius: 999px; background: #edf2ec; color: #44564a; font-size: 9.5px; font-weight: 700; }
.compact-review-panel .review summary small { display: block; margin-top: 7px; color: var(--muted); font-size: 10.5px; }
.community-review { padding: 12px 13px 14px !important; }
.community-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.review-edit-button { padding: 3px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--forest); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.community-review .review-copy { margin-top: 10px; padding: 11px 0 0; }
.useful-button { margin-top: 11px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--forest); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.useful-button.active { border-color: #d9bc48; background: var(--sun-light); color: #685000; }
.review-composer, .review-composer-signin { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.review-composer h3 { margin: 0; font-size: 20px; }
.review-composer label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.review-composer textarea, .review-composer select, .review-composer input { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fbfaf6; padding: 10px; color: var(--ink); font: inherit; }
.review-composer textarea { resize: vertical; line-height: 1.5; }
.review-form-row { width: min(150px, 100%); }
.review-form-row.review-context-fields { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.review-composer small { color: var(--muted); line-height: 1.5; }
.review-composer .primary-button { justify-self: start; }
.review-form-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.review-composer-signin p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.review-composer-signin .secondary-button { justify-self: start; }
.review-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 9px; margin: 12px 0; }
.review-photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.review-photo { margin: 0; }
.review-photo.pending { padding: 6px; border: 1px dashed #c99b26; border-radius: 11px; background: #fff9df; }
.review-photo figcaption, .review-language-note { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.community-photo-album { margin: 14px 0 18px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf6; }
.photo-album-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.photo-album-heading h3 { margin: 0; font-size: 16px; }
.photo-album-heading span { color: var(--muted); font-size: 12px; font-weight: 800; }
.photo-album-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; }
.photo-album-strip button { flex: 0 0 92px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: white; overflow: hidden; cursor: pointer; }
.photo-album-strip img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.community-review.photo-target { outline: 3px solid rgba(239, 200, 74, .65); outline-offset: 3px; }
.header-language-control:focus-within, .photo-album-strip button:focus-visible, .admin-decisions button:focus-visible { outline: 3px solid rgba(49, 92, 69, .28); outline-offset: 3px; }

.suggest-page { min-height: calc(100vh - 242px); padding: 68px clamp(22px, 5vw, 76px) 100px; background: linear-gradient(180deg, #fffdf7 0, #fbfaf6 520px); }
.suggest-hero { max-width: 820px; margin: 0 auto 42px; text-align: center; }
.suggest-hero h1 { max-width: none; margin-bottom: 18px; font-size: clamp(44px, 5vw, 68px); }
.suggest-hero > p:last-child { max-width: 720px; margin: 0 auto; color: #4c584f; font-size: 18px; line-height: 1.7; }
.suggest-mark { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 20px; border: 1px solid #ead98f; border-radius: 50%; background: var(--sun-light); }
.suggest-mark img { width: 43px; height: 50px; object-fit: contain; }
.suggest-layout { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(250px, .65fr) minmax(0, 1.35fr); gap: 30px; align-items: start; }
.suggest-process { position: sticky; top: 116px; padding: 29px; border: 1px solid var(--line); border-radius: 20px; background: var(--forest-dark); color: white; box-shadow: var(--shadow); }
.suggest-process .eyebrow { color: var(--sun-light); }
.suggest-process ol { margin: 0; padding: 0; list-style: none; counter-reset: suggestion-step; }
.suggest-process li { position: relative; padding: 0 0 24px 48px; counter-increment: suggestion-step; }
.suggest-process li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 5px; border-left: 1px solid rgba(255,255,255,.25); }
.suggest-process li::before { content: counter(suggestion-step); position: absolute; left: 0; top: 0; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: var(--sun-light); color: var(--ink); font-weight: 900; }
.suggest-process strong, .suggest-process span { display: block; }
.suggest-process strong { margin-bottom: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; }
.suggest-process span { color: #dce5df; font-size: 13px; line-height: 1.55; }
.suggest-privacy { margin: 8px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); color: #dce5df; font-size: 12px; line-height: 1.6; }
.suggest-card { min-width: 0; padding: clamp(25px, 4vw, 46px); border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.suggest-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.suggest-card-heading .eyebrow { margin-bottom: 8px; }
.suggest-card-heading h2 { margin: 0; font-size: clamp(30px, 3vw, 42px); }
.required-note { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.form-notice { margin-bottom: 23px; padding: 14px 16px; border: 1px solid #e4cf73; border-radius: 11px; background: #fff8d9; color: #625117; font-size: 13px; line-height: 1.55; }
.form-notice[hidden] { display: none; }
.suggest-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-field { min-width: 0; display: grid; align-content: start; gap: 7px; }
.full-field { grid-column: 1 / -1; }
.form-field label, .label-row label { color: var(--ink); font-size: 13px; font-weight: 800; }
.label-row { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.label-row span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.suggest-form input, .suggest-form select, .suggest-form textarea { width: 100%; border: 1px solid #d9ddd5; border-radius: 10px; background: #fff; color: var(--ink); padding: 12px 13px; outline: 0; }
.suggest-form input, .suggest-form select { min-height: 48px; }
.suggest-form textarea { min-height: 145px; resize: vertical; line-height: 1.55; }
.suggest-form input:focus, .suggest-form select:focus, .suggest-form textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(49,92,69,.1); }
.field-hint { color: var(--muted); font-size: 11px; }
.field-error { min-height: 17px; color: #a23a31; font-size: 11px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent-field { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: #4c584f; font-size: 12px; line-height: 1.55; cursor: pointer; }
.consent-field input { width: 17px; min-height: 17px; height: 17px; margin-top: 1px; accent-color: var(--forest); }
.form-actions { display: flex; gap: 12px; padding-top: 4px; }
.form-actions .primary-button, .form-actions .secondary-button { min-width: 170px; }
.form-actions .primary-button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.cancel-link { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; }
.form-status { min-height: 22px; margin: -5px 0 0; font-size: 13px; font-weight: 700; }
.form-status.success { color: var(--forest); }
.form-status.error { color: #a23a31; }
.form-status.pending { color: var(--muted); }

.admin-page { min-height: calc(100vh - 242px); padding: 56px clamp(22px, 5vw, 76px) 100px; background: #f8f7f2; }
.admin-access { max-width: 720px; margin: 55px auto; padding: 48px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); text-align: center; }
.admin-access h1 { margin-bottom: 14px; font-size: clamp(40px, 5vw, 62px); }
.admin-access p:last-of-type { margin-bottom: 24px; color: var(--muted); }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; max-width: 1180px; margin: 0 auto 24px; }
.admin-heading h1 { margin-bottom: 10px; font-size: clamp(44px, 5vw, 68px); }
.admin-heading p:last-child { max-width: 760px; margin: 0; color: var(--muted); }
.admin-tabs { max-width: 1180px; margin: 0 auto 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-tabs a { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--forest); text-decoration: none; font-size: 13px; font-weight: 800; }
.admin-tabs a:hover, .admin-tabs a:focus { border-color: var(--forest); background: var(--sage); }
.admin-panel { max-width: 1180px; margin: 0 auto 22px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 10px 28px rgba(43,58,46,.05); scroll-margin-top: 115px; }
.admin-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.admin-panel-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); }
.admin-panel-intro { max-width: 850px; margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.admin-setup-notice { margin: 16px 0 22px; padding: 16px; border: 1px solid #d9b45b; border-radius: 12px; background: #fff8e7; color: #4e3a0a; }
.admin-setup-notice p { margin: 6px 0 0; }
.admin-private-label, .admin-count { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 4px 10px; border-radius: 999px; background: var(--sage); color: var(--forest-dark); font-size: 11px; font-weight: 900; }
.admin-count { min-width: 30px; }
.admin-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.admin-form label, .admin-moderation-card label { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 800; }
.admin-form input, .admin-form select, .admin-form textarea, .admin-moderation-card textarea, .admin-moderation-card input, .member-role-control select { width: 100%; border: 1px solid #d9ddd5; border-radius: 9px; background: white; padding: 10px 11px; color: var(--ink); }
.admin-form textarea, .admin-moderation-card textarea { resize: vertical; line-height: 1.5; }
.admin-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.admin-form-actions .primary-button { min-height: 46px; }
.admin-status { min-height: 20px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-status.success { color: var(--forest); }
.admin-status.error, .admin-error { color: #a23a31; }
.admin-list { display: grid; gap: 10px; margin-top: 24px; }
.admin-record, .admin-moderation-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fbfaf6; }
.admin-record { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-record strong { overflow-wrap: anywhere; }
.admin-record p { margin: 3px 0; color: #3f4741; overflow-wrap: anywhere; }
.admin-record small, .admin-moderation-card small { color: var(--muted); }
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #ecece7; color: #555f57; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.status-pill.sent { background: #e8f0ff; color: #31547c; }
.status-pill.accepted { background: #e7f4e8; color: #2f6040; }
.status-pill.failed { background: #f9e6e4; color: #8b3730; }
.admin-empty { margin: 4px 0; padding: 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.admin-record-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; }
.admin-record-meta span { color: var(--muted); font-size: 11px; }
.admin-moderation-card > p { white-space: pre-line; }
.admin-moderation-card > a { color: var(--forest); font-size: 12px; font-weight: 800; }
.admin-moderation-card > label { margin-top: 14px; }
.admin-decisions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 7px; }
.admin-decisions button, .member-role-control button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--forest-dark); cursor: pointer; font-weight: 800; }
.admin-decisions button:hover, .member-role-control button:hover { border-color: var(--forest); background: var(--sage); }
.admin-review-edit { display: grid; grid-template-columns: minmax(110px, .25fr) minmax(260px, 1fr) auto; align-items: end; gap: 12px; margin: 14px 0; }
.admin-review-edit label { margin: 0; }
.admin-review-edit button { min-height: 42px; padding: 0 13px; border: 1px solid var(--forest); border-radius: 8px; background: var(--forest); color: white; font-weight: 800; cursor: pointer; }
.admin-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.admin-review-photo { padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.admin-review-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.admin-review-photo > span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.member-role-control { display: grid; grid-template-columns: minmax(145px, 1fr) auto; gap: 7px; align-items: center; }
.member-role-control .admin-status { grid-column: 1 / -1; }

/* Admin workspace shell */
.admin-page { padding: 0; background: #f6f7f3; }
.admin-workspace { min-height: calc(100vh - 96px); display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; align-self: start; min-height: calc(100vh - 96px); padding: 28px 18px; border-right: 1px solid var(--line); background: #173c2c; color: white; }
.admin-sidebar-title { display: flex; align-items: center; gap: 10px; padding: 0 9px 24px; }
.admin-sidebar-title span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--yellow); color: var(--forest-dark); font-weight: 950; }
.admin-sidebar-title strong { font-size: 17px; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar nav p { margin: 18px 10px 4px; color: #a9c3b6; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.admin-sidebar nav button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: #f4f8f5; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; text-align: left; }
.admin-sidebar nav button:hover, .admin-sidebar nav button.active { background: rgba(255,255,255,.12); }
.nav-badge { min-width: 24px; padding: 2px 7px; border-radius: 99px; background: rgba(255,255,255,.15); text-align: center; font-size: 10px; }
.admin-content { min-width: 0; padding: 36px clamp(22px, 4vw, 58px) 90px; }
.admin-content .admin-heading { max-width: 1320px; margin-bottom: 28px; }
.admin-heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.admin-section { max-width: 1320px; margin: 0; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 10px 28px rgba(43,58,46,.05); }
.admin-section[hidden], [data-resource-panel][hidden] { display: none !important; }
.admin-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-section-heading h2 { margin: 0; font-size: clamp(30px, 3vw, 42px); }
.admin-section-heading p:last-child { max-width: 780px; margin: 8px 0 0; color: var(--muted); }
.admin-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-metric-grid button { min-height: 145px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fbfaf6; color: var(--ink); cursor: pointer; text-align: left; }
.admin-metric-grid button:hover { border-color: var(--forest); box-shadow: 0 8px 20px rgba(43,58,46,.07); }
.admin-metric-grid span { display: block; margin-bottom: 14px; color: var(--forest); font-family: Georgia, serif; font-size: 44px; font-weight: 800; }
.admin-metric-grid small { color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-overview-note { margin-top: 20px; padding: 17px 19px; border-radius: 13px; background: var(--sage); }
.admin-overview-note p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.admin-invite-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.invitation-preview { padding: 20px; border: 1px solid #d9ddd5; border-radius: 13px; background: #fbfaf6; }
.invitation-preview > span { display: block; margin-bottom: 12px; color: var(--forest); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.invitation-preview p { white-space: pre-wrap; }
.invitation-preview small { color: var(--muted); }
.resource-workspace-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.resource-workspace-tabs button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--forest-dark); cursor: pointer; font-weight: 850; }
.resource-workspace-tabs button.active { border-color: var(--forest); background: var(--forest); color: white; }
.admin-subheading { margin: 6px 0 22px; }
.admin-subheading h3 { margin: 0; font-size: 28px; }
.admin-subheading p { color: var(--muted); }
.resource-editor { display: grid; gap: 18px; }
.resource-editor fieldset { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fbfaf6; }
.resource-editor legend { padding: 0 8px; color: var(--forest-dark); font-size: 15px; font-weight: 900; }
.resource-editor .admin-form { margin-top: 4px; }
.resource-admin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fbfaf6; }
.resource-admin-row a { display: inline-block; margin: 5px 0; color: var(--forest); font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.resource-admin-row small { display: block; color: var(--muted); }
.resource-row-actions { display: grid; justify-items: end; gap: 7px; min-width: 150px; }
.resource-row-actions select, .resource-row-actions button { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 0 10px; color: var(--forest-dark); font-weight: 800; }
.resource-row-actions button { cursor: pointer; }
.demo-card { border-style: dashed; background: #fffdf5; }
.demo-label { display: inline-block; margin-left: 8px; padding: 3px 7px; border-radius: 99px; background: #f6e8a7; color: #624e00; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.report-reason { margin: 14px 0; padding: 13px 15px; border-left: 4px solid #c15d4b; border-radius: 8px; background: #fff3ef; }
.report-reason p { margin: 4px 0; }
.report-reason small { color: var(--muted); }
.member-table-wrap, .compact-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.member-table, .compact-table { width: 100%; border-collapse: collapse; background: white; font-size: 12px; }
.member-table th, .member-table td, .compact-table th, .compact-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.member-table th, .compact-table th { background: #f5f6f2; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.member-table tr:last-child td, .compact-table tr:last-child td { border-bottom: 0; }
.member-table td strong, .member-table td small { display: block; }
.member-table td small { margin-top: 4px; color: var(--muted); }
.member-table select, .member-table button { min-height: 34px; border: 1px solid var(--line); border-radius: 7px; background: white; padding: 0 8px; }
.rating-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.rating-method-grid label { display: flex; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fbfaf6; cursor: pointer; }
.rating-method-grid input { margin-top: 3px; }
.rating-method-grid strong, .rating-method-grid small { display: block; }
.rating-method-grid small { margin-top: 7px; color: var(--muted); line-height: 1.5; }
.system-status-grid { display: grid; gap: 12px; }
.system-status-grid article { display: flex; gap: 13px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 13px; }
.system-status-grid p { margin: 4px 0 0; color: var(--muted); }
.status-dot { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: #c99a21; box-shadow: 0 0 0 4px #fff4ca; }
.status-dot.ready { background: #278354; box-shadow: 0 0 0 4px #dff4e7; }

@media (max-width: 980px) {
  .admin-workspace { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; min-height: auto; border-right: 0; }
  .admin-sidebar-title { padding-bottom: 12px; }
  .admin-sidebar nav { display: flex; overflow-x: auto; gap: 7px; padding-bottom: 3px; }
  .admin-sidebar nav p { display: none; }
  .admin-sidebar nav button { flex: 0 0 auto; width: auto; padding: 0 13px; }
  .admin-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .admin-content { padding: 28px 14px 65px; }
  .admin-content .admin-heading, .admin-section-heading { display: block; }
  .admin-heading-actions { margin-top: 14px; }
  .admin-section { padding: 19px 15px; border-radius: 16px; }
  .admin-metric-grid, .rating-method-grid { grid-template-columns: 1fr; }
  .admin-invite-form { grid-template-columns: 1fr; }
  .resource-admin-row { grid-template-columns: 1fr; }
  .resource-row-actions { justify-items: start; }
}

@media (max-width: 1050px) {
  .site-header { height: 80px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 79px; left: 0; right: 0; background: white; padding: 18px 24px 26px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav.open { display: flex; }
  .main-nav.page-nav { display: flex; position: static; flex-direction: row; align-items: center; padding: 0; border: 0; box-shadow: none; }
  .language-menu { position: static; box-shadow: none; margin-top: 5px; }
  .brand { min-width: 0; }
  .brand-symbol { width: 42px; height: 48px; }
  .brand-words strong { font-size: 18px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-bottom: 38px; }
  .hero-art { min-height: 310px; }
  .sunflower { position: relative; display: block; right: auto; top: auto; height: 310px; object-fit: contain; }
  .resource-layout { grid-template-columns: 245px minmax(0, 1fr); gap: 22px; }
  .filter-sidebar { top: 102px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-section { grid-template-columns: 1fr; }
  .detail-shell { grid-template-columns: 1fr; }
  .detail-cover { min-height: 300px; max-height: 460px; }
  .detail-content .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .saved-grid { grid-template-columns: 1fr; }
  .compact-detail-hero { grid-template-columns: 230px minmax(0, 1fr); }
  .compact-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-dashboard { grid-template-columns: 1fr; }
  .suggest-layout { grid-template-columns: 1fr; }
  .suggest-process { position: static; }
  .admin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .site-header { padding-inline: 16px; }
  .site-header:has(.page-nav) .brand-words { display: none; }
  .site-header:has(.page-nav) .brand { flex: 0 0 auto; }
  .brand-symbol { width: 38px; height: 44px; }
  .brand-words strong { font-size: 15px; }
  .brand-words small { font-size: 6.5px; letter-spacing: .18em; }
  .hero-copy { padding: 58px 22px 34px; }
  h1 { font-size: 46px; }
  .hero-art { min-height: 0; }
  .sunflower { width: 100%; height: min(340px, 70vw); }
  .resource-section { padding: 66px 18px 80px; }
  .section-heading { display: block; }
  .result-count { margin-top: 12px; }
  .filter-toggle { display: block; }
  .resource-layout { display: block; }
  .filter-sidebar { display: none; position: fixed; z-index: 80; inset: 0; max-height: none; border-radius: 0; padding: 28px 22px; overflow-y: auto; }
  .filter-sidebar.open { display: block; }
  .filter-sidebar-heading button { display: block; }
  .filters { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-image { height: 145px; }
  .about-section { padding: 72px 22px; }
  .about-points article { grid-template-columns: 36px 1fr; }
  .about-points article p { grid-column: 2; }
  footer { align-items: flex-start; flex-direction: column; }
  .dialog-hero, .dialog-main, .signin-dialog { padding-left: 24px; padding-right: 24px; }
  .detail-grid { grid-template-columns: 1fr; }
  .main-nav.page-nav { gap: 10px; }
  .main-nav.page-nav > a { display: none; }
  .detail-page, .saved-page { padding: 30px 16px 70px; }
  .detail-intro { padding: 34px 24px; }
  .detail-content { padding: 30px 24px 45px; }
  .detail-content .detail-grid { grid-template-columns: 1fr; }
  .profile-strip { grid-template-columns: auto 1fr; padding: 20px; }
  .profile-strip .secondary-button { grid-column: 1 / -1; }
  .profile-actions { grid-column: 1 / -1; width: 100%; justify-content: stretch; }
  .profile-actions .secondary-button { flex: 1 1 180px; }
  .saved-heading { display: block; }
  .saved-heading .compare-button { margin-top: 18px; }
  .saved-card { grid-template-columns: 100px minmax(0, 1fr); padding: 13px; gap: 14px; }
  .saved-card > img { width: 100px; height: 105px; }
  .page-loading, .not-found, .saved-empty { padding: 38px 22px; }
  .compact-detail-hero { grid-template-columns: 1fr; }
  .compact-detail-cover { height: 190px; margin: 14px 14px 0; }
  .compact-detail-cover img { min-height: 190px; }
  .compact-detail-intro { padding: 22px 18px; }
  .compact-title-row { display: block; }
  .compact-title-row .save-detail-button { margin-bottom: 13px; }
  .compact-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-actions { align-items: stretch; flex-direction: column; }
  .compact-source-link { width: 100%; }
  .detail-dashboard { padding: 12px; }
  .ai-points { grid-template-columns: 1fr; }
  .review-form-row.review-context-fields { grid-template-columns: 1fr; }
  .rating-help-popover { left: auto; right: -18px; transform: translateY(5px); }
  .rating-help:hover .rating-help-popover, .rating-help:focus-within .rating-help-popover, .rating-help.open .rating-help-popover { transform: translateY(0); }
  .suggest-page { padding: 45px 16px 70px; }
  .suggest-hero { margin-bottom: 30px; }
  .suggest-hero > p:last-child { font-size: 16px; }
  .suggest-card { padding: 24px 18px; }
  .suggest-card-heading { display: block; }
  .required-note { display: block; margin-top: 10px; }
  .suggest-form { grid-template-columns: 1fr; }
  .form-field, .full-field { grid-column: 1; }
  .form-actions { flex-direction: column; }
  .form-actions .primary-button, .form-actions .secondary-button { width: 100%; }
  .admin-page { padding: 35px 16px 70px; }
  .admin-heading { display: block; }
  .admin-heading .secondary-button { margin-top: 18px; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-form .full-field { grid-column: 1; }
  .admin-record { align-items: stretch; flex-direction: column; }
  .admin-review-edit { grid-template-columns: 1fr; }
  .member-role-control { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
