/* BrandThirty identity, matched to https://brandthirty.co/lpg/styles.css.
   Platform logos and screenshot artwork retain their own source colors. */
:root {
  --ink: #101521;
  --brand: #b50730;
  --brand-hover: #920626;
  --brand-icon: #bc1934;
  --brand-green: #00ac4e;
  --brand-rose: #f5e9ec;
  --brand-rose-light: #fbf5f7;
  --brand-neutral: #f5f5f7;
  --muted: #6d727e;
  --line: #eadfe3;
  --pale: #fbf5f7;
  --blue: var(--brand);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button:focus-visible, a:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline-color: var(--brand);
}

/* Same transparent asset and light-surface wordmark treatment as /lpg/. */
.brand-logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 244px;
  max-width: 100%;
  flex-shrink: 0;
  background: transparent;
  line-height: 1;
}
.brand-logo img { display: block; width: 100%; height: auto; }
.brand-logo-on-light::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  mask: url('/assets/brandthirty-logo-transparent.png') center / contain no-repeat;
  clip-path: inset(0 43.2% 0 15%);
  pointer-events: none;
}
.brandbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(32px, calc((100vw - 1320px) / 2));
  background: #fff;
  border-bottom: 1px solid #eee8eb;
}
.brandbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: #b6a8ad;
  text-underline-offset: 5px;
  white-space: nowrap;
}
.brandbar-link:hover { color: var(--brand); }

.showcase-page { background: #fff; }
.hero {
  isolation: isolate;
  overflow: hidden;
  background: var(--brand-rose-light);
  border-color: var(--line);
  flex-direction: column;
  gap: 16px;
}
.hero::before {
  z-index: -1;
  background: url('/assets/mountains.webp') center / 100% 100% no-repeat;
  filter: grayscale(1);
  opacity: .28;
}
.hero-copy { padding: 12px 24px; }
.hero h1 { color: var(--brand); letter-spacing: -.03em; }
.hero-copy p { color: #515661; font-size: 17px; font-weight: 400; max-width: 52ch; margin-inline: auto; }
.hero-note { position: relative; margin: 0; max-width: 60ch; padding-inline: 24px; white-space: pre-line; text-align: center; font-size: 14px; line-height: 1.6; color: #515661; }
.showcase-section {
  border-color: #eee2e7;
  background: #fff;
  box-shadow: none;
}
.media-section { background: transparent; box-shadow: none; }
.media-icon {
  background: var(--brand);
  box-shadow: 0 3px 7px #b5073020;
  border-color: #ffffff33;
}
.section-heading p, .search-tabs, .eyebrow, .sources-label { color: var(--muted); }
.section-heading h2 { font-size: 25px; letter-spacing: -.025em; }
.section-heading p { font-size: 15px; line-height: 1.6; }
.section-link {
  min-height: 44px;
  max-width: 240px;
  padding: 10px 14px;
  gap: 12px;
  border: 1px solid #d7c8ce;
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  transition: background .15s, border-color .15s;
}
.section-link > span:first-child { overflow-wrap: anywhere; }
.section-link:hover { color: var(--brand-hover); background: var(--brand-rose-light); border-color: var(--brand); }
.gallery-count { color: #625963; font-variant-numeric: tabular-nums; border-left: 1px solid var(--line); padding-left: 12px; }
.gallery-summary { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.eyebrow { font-size: 13px; letter-spacing: 0; font-weight: 400; line-height: 1.5; }
.wordmark i { color: var(--brand); }
.image-card { border-color: #ede6e9; box-shadow: 0 2px 7px #55313c05; }
.image-card:hover { box-shadow: 0 10px 24px #55313c16; }
.media-grid .image-card { box-shadow: 0 12px 27px #55313c12; }
.media-grid .image-card:hover, .media-grid .image-card:focus-visible { box-shadow: 0 18px 30px #55313c22; }
.image-card-affordance { color: var(--brand); box-shadow: 0 2px 8px #55313c18; }
.search-query { border-color: #e3dfe3; color: var(--ink); }
.search-tabs .selected { color: #2578e6; }
.ai-query { background: var(--brand-rose-light); color: #62616b; }
.site-footer {
  max-width: none;
  margin: 24px 0 0;
  min-height: 104px;
  padding: 30px max(32px, calc((100vw - 1320px) / 2));
  background: var(--brand);
  color: #fff;
  border: 0;
}
.site-footer .brand-logo { width: 220px; margin-left: 0; }

.primary-button, .secondary-button, .danger-button { font-size: 14px; min-height: 44px; }
.primary-button { background: var(--brand); }
.primary-button:hover { background: var(--brand-hover); }
.secondary-button { color: #575763; border-color: #e4dbe0; }
.secondary-button:hover { background: var(--brand-rose-light); }
.icon-button { color: #77727c; }
.icon-button:hover { color: var(--brand); background: var(--brand-rose); }
.lightbox, .gallery-dialog, .editor-dialog { border-color: var(--line); box-shadow: 0 25px 90px #35232d35; }
.lightbox-bottom > span { font-size: 14px; }
.lightbox::backdrop, .gallery-dialog::backdrop, dialog::backdrop { background: #231822a6; }
.lightbox-image-wrap { background: var(--brand-neutral); }
.lightbox-image-wrap img { box-shadow: 0 3px 14px #35232d14; }

/* Administrative workspace uses the same burgundy and rose identity. */
.admin-page { background: #f8f5f6; }
.admin-sidebar, .admin-topbar { border-color: var(--line); }
.sidebar-brand .brand-logo { width: 178px; }
.workspace-label span { background: var(--brand-green); }
.nav-item:hover { background: var(--brand-rose-light); }
.nav-item.active { color: var(--brand); background: var(--brand-rose); }
.avatar { background: var(--brand-rose); color: var(--brand); }
.breadcrumb strong, .image-title-button, .settings-panel h2 { color: var(--ink); }
.image-title-button:hover { color: var(--brand); }
.workspace-label, .nav-label, .nav-item, .nav-item .count,
.account-details span, .breadcrumb, .save-state,
.workspace-heading .eyebrow, .workspace-heading p,
.library-columns, .library-filter, .image-row-details p,
.library-footnote, .draft-note, .field label span, .field small,
.upload-hint, .login-badge, .login-card > p, .login-back,
.setup-token summary, .auth-help, .settings-panel > p, .confirm-body p {
  color: var(--muted);
}
.nav-item.active { color: var(--brand); }
.section-settings, .image-library, .settings-panel,
.library-toolbar, .library-columns, .image-row,
.library-filter, .field input, .field textarea { border-color: var(--line); }
.section-settings summary, .field > label, .check-label { color: #625862; }
.section-settings[open] summary { border-color: var(--line); }
.library-columns, .library-footnote, .dialog-footer { background: #fdfafb; }
.number-badge, .image-thumb { background: var(--brand-rose-light); color: var(--muted); }
.image-thumb { border-color: var(--line); }
.field input, .field textarea, .library-filter input { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder,
.library-filter input::placeholder { color: var(--muted); }
.library-filter:focus-within, .upload-zone:focus-within { outline-color: var(--brand); }
.upload-zone { border-color: #d8b1bd; background: #fdf9fa; }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--brand); background: var(--brand-rose-light); }
.upload-prompt { color: var(--brand); }
.upload-zone input { color: var(--muted); }
.upload-zone input::file-selector-button { color: var(--brand); border-color: var(--line); }
.empty-library { color: var(--muted); }
.empty-library > svg { color: #bd8898; }
.empty-library h3 { color: var(--ink); }
.check-label input { accent-color: var(--brand); }
.save-state.is-dirty { color: #90601d; }
.toast { background: var(--ink); box-shadow: 0 8px 30px #35232d26; }
.toast.error { background: #98463c; }
#publish { background: var(--brand-green); color: var(--ink); }
#publish:hover { background: #00ba55; }
.login-screen {
  grid-template-columns: minmax(0, 1fr);
  background: #f8f3f5;
}
.login-card { width: 460px; background: #fff; border-color: #ede3e7; box-shadow: none; }
.login-card > .brand-logo { width: 254px; }
.login-back:hover { color: var(--brand); }

/* Keep secondary actions and helper copy readable throughout the admin. */
.nav-label, .library-columns { letter-spacing: 0; font-size: 12px; }
.nav-item, .workspace-label, .breadcrumb, .save-state { font-size: 13px; }
.nav-item { min-height: 44px; }
.nav-item .count, .account-details span, .number-badge { font-size: 12px; }
.account-details strong { font-size: 13px; }
.topbar-actions .primary-button, .topbar-actions .secondary-button,
.workspace-heading > .primary-button, .settings-panel .primary-button,
.settings-panel .secondary-button { font-size: 14px; min-height: 44px; }
.workspace-heading h1 { margin-top: 0; letter-spacing: -.025em; }
.workspace-heading p, .settings-panel > p, .confirm-body p,
.login-card > p, .empty-library p { font-size: 14px; line-height: 1.6; }
.section-settings summary, .library-toolbar h2, .image-title-button { font-size: 14px; }
.library-filter input { font-size: 14px; min-height: 28px; }
.image-row-details p, .library-footnote, .draft-note { font-size: 12px; }
.field > label, .check-label { font-size: 14px; }
.field input, .field textarea { font-size: 16px; }
.field label span, .field small, .upload-hint, .upload-zone input { font-size: 12px; }
.upload-prompt, .login-badge, .setup-token summary { font-size: 13px; }
.login-back { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.image-row, .library-columns { grid-template-columns: 44px minmax(0, 1fr) 86px 132px; }
.reorder .icon-button, .row-actions .icon-button { width: 44px; height: 44px; }
.reorder span { font-size: 12px; color: var(--muted); }
.row-actions { gap: 0; }
.status-badge { min-height: 36px; font-size: 12px; }
.check-label { min-height: 44px; }

@media (max-width: 850px) {
  .sidebar-brand .brand-logo { width: 190px; }
  .admin-nav .nav-item, .settings-nav .nav-item { font-size: 13px; }
  .sidebar-bottom > .nav-item { font-size: 13px; }
  .breadcrumb { font-size: 12px; }
  .image-row { grid-template-columns: 44px minmax(0, 1fr) 76px 132px; }
}
@media (max-width: 720px) {
  .brandbar { min-height: 65px; padding: 15px 20px; gap: 18px; }
  .brandbar .brand-logo { width: clamp(154px, 45vw, 220px); }
  .hero-copy p { font-size: 15px; line-height: 1.6; }
  .hero::before { background-size: auto 100%; background-position: 42% center; }
  .section-heading h2 { font-size: 21px; line-height: 1.3; }
  .section-heading p { font-size: 14px; }
  .section-heading { row-gap: 14px; }
  .section-link { min-height: 44px; padding: 10px 13px; font-size: 14px; }
  .media-grid { scrollbar-color: #d9b3be transparent; }
  .site-footer { margin: 16px 0 0; padding: 26px 22px; gap: 20px; }
  .site-footer .brand-logo { width: 176px; }
  .lightbox-bottom .secondary-button, .lightbox-bottom .primary-button { font-size: 14px; min-height: 44px; }
}
@media (max-width: 550px) {
  .admin-topbar { gap: 12px; }
  .breadcrumb, .breadcrumb strong { min-width: 0; }
  .topbar-actions { flex-shrink: 0; }
  .sidebar-bottom { position: static; padding-top: 8px; }
  .sidebar-bottom > .nav-item { width: max-content; }
  .workspace-heading { flex-wrap: wrap; }
  .workspace-heading > .primary-button { margin-top: 0; }
  .workspace-heading p { max-width: none; }
  .image-row { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 16px 12px; }
  .image-row > .reorder { grid-row: 1 / 3; }
  .image-row-main { grid-column: 2; }
  .row-actions { grid-column: 2; justify-content: flex-start; margin: 0; }
  .image-row > .status-badge { right: 16px; bottom: 20px; font-size: 12px; padding: 6px 9px; }
  .image-row-details p { max-width: 180px; }
  .library-filter input { width: 105px; }
  .topbar-actions .primary-button { padding-inline: 10px; font-size: 13px; }
  .login-screen { padding: 20px; }
  .login-card { padding: 28px 24px; }
}
@media (max-width: 359px) {
  .brandbar { padding-inline: 15px; gap: 12px; }
  .sidebar-brand .brand-logo { width: 168px; }
}
