/* Sanjog Darpan theme on top of Bootstrap 5.3: burgundy / muted gold / warm ivory. */
:root {
  --sd-wine: #771d37; --sd-wine-dark: #501327; --sd-wine-soft: #f8edf0; --sd-gold: #b69250; --sd-gold-soft: #f3ead6;
  /* --sd-gold-text: same brass hue as --sd-gold but darkened to clear WCAG AA (4.5:1) for readable
     text (eyebrow labels, the language switcher, stat numbers). --sd-gold itself stays bright for
     decorative use (borders, focus rings, icon glyphs, checkmarks) where contrast rules don't apply
     the same way and the lighter tone reads better against these warm backgrounds. */
  --sd-gold-text: #856530;
  --sd-ink: #30262a; --sd-muted: #6b6064; --sd-paper: #fcfaf7; --sd-cream: #f5eee5; --sd-line: #eae2db; --sd-green: #3c715f;
  --sd-shadow: 0 16px 48px rgba(74, 37, 37, .07);
  --bs-primary: #771d37; --bs-primary-rgb: 119, 29, 55; --bs-link-color: #771d37; --bs-link-color-rgb: 119, 29, 55; --bs-link-hover-color: #501327; --bs-link-hover-color-rgb: 80, 19, 39;
  --bs-body-color: #30262a; --bs-body-bg: #fcfaf7; --bs-border-color: #eae2db; --bs-font-sans-serif: "Segoe UI", Arial, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --bs-body-font-size: .95rem; --bs-body-line-height: 1.65; --bs-secondary-color: #6b6064; --bs-focus-ring-color: rgba(182, 146, 80, .45);
}
html { scroll-behavior: smooth; }
body { background: var(--sd-paper); color: var(--sd-ink); }
.bg-cream { background: var(--sd-cream) !important; } .bg-paper { background: var(--sd-paper) !important; }
.serif, h1, h2, h3, .h1, .h2, .h3 { font-family: Georgia, "Times New Roman", "Noto Serif", "Noto Serif Devanagari", serif; font-weight: 400; letter-spacing: -.01em; }
h1, .h1 { letter-spacing: -.02em; }
.text-wine { color: var(--sd-wine) !important; } .text-gold { color: var(--sd-gold-text) !important; }
/* White text on --sd-gold only reaches 2.9:1; this badge (member nav count) needs its own darker fill to stay readable at AA. */
.bg-gold { background: #8f6b2e !important; color: #fff; } .bg-gold-soft { background: var(--sd-gold-soft); color: #6b5324; font-weight: 600; }
.letter-spaced { letter-spacing: .12em; }
a { text-decoration: none; } a:hover { text-decoration: underline; }
.btn { border-radius: 6px; font-weight: 600; padding: .6rem 1.4rem; }
.btn-primary { --bs-btn-bg: var(--sd-wine); --bs-btn-border-color: var(--sd-wine); --bs-btn-hover-bg: var(--sd-wine-dark); --bs-btn-hover-border-color: var(--sd-wine-dark); --bs-btn-active-bg: var(--sd-wine-dark); --bs-btn-active-border-color: var(--sd-wine-dark); --bs-btn-disabled-bg: #a9707f; --bs-btn-disabled-border-color: #a9707f; }
.btn-outline-primary { --bs-btn-color: var(--sd-wine); --bs-btn-border-color: var(--sd-wine); --bs-btn-hover-bg: var(--sd-wine-soft); --bs-btn-hover-color: var(--sd-wine); --bs-btn-hover-border-color: var(--sd-wine); --bs-btn-active-bg: var(--sd-wine); --bs-btn-active-border-color: var(--sd-wine); }
.btn-outline-secondary.active { background: var(--sd-gold-soft); border-color: var(--sd-gold); color: #6b5324; }
.btn-link { color: var(--sd-wine); text-decoration: none; }
.btn-sm { padding: .35rem .8rem; font-size: .8rem; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }
.form-control, .form-select { border-color: #dfd8d3; border-radius: 5px; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--sd-gold); box-shadow: 0 0 0 .2rem rgba(200, 167, 105, .35); }
.form-label { font-size: .8rem; font-weight: 600; color: #66575e; margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--sd-wine); border-color: var(--sd-wine); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(200, 167, 105, .35); border-color: var(--sd-gold); }
.form-text { font-size: .78rem; }
.card { border-color: var(--sd-line); border-radius: 9px; box-shadow: var(--sd-shadow); background: #fff; }
.alert { border-radius: 6px; }
.badge { font-weight: 600; letter-spacing: .02em; }
.badge-reviewed { background: #eaf3ed; color: var(--sd-green); font-size: .68rem; }
*:focus-visible { outline: 3px solid var(--sd-gold); outline-offset: 3px; box-shadow: none !important; }
.skip-link { position: absolute; left: 8px; top: 8px; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 6px; }
/* Header */
.announcement { background: var(--sd-wine-dark); color: #eee0c6; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; padding: .45rem .5rem; }
.site-header { background: #fffdf9; border-bottom: 1px solid var(--sd-line); position: relative; z-index: 20; }
.site-header .navbar { padding: .6rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--sd-wine); }
.brand img { width: 66px; height: 54px; object-fit: cover; object-position: center 30%; clip-path: inset(6% 10% 40% 10%); transform: translateY(6px) scale(1.4); }
.brand-text { font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.15; white-space: nowrap; }
.brand-text small { display: block; font: 600 .48rem Arial, sans-serif; letter-spacing: .32em; color: #6b5c45; text-align: center; margin-top: .35rem; }
.navbar-nav .nav-link { font-size: .85rem; color: var(--sd-ink); padding: .5rem .8rem; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--sd-wine); }
.nav-actions .btn-link { color: var(--sd-ink); font-size: .85rem; }
.lang-switch button { color: var(--sd-gold-text) !important; font-weight: 600; }
.dropdown-menu { border-color: var(--sd-line); border-radius: 8px; box-shadow: var(--sd-shadow); }
.dropdown-item:active { background: var(--sd-wine); }
/* Hero */
.hero { padding: 3.5rem 0 0; overflow: hidden; background: radial-gradient(ellipse at 3% 20%, rgba(238, 225, 211, .4), transparent 50%); }
.eyebrow { text-transform: uppercase; font-size: .66rem; letter-spacing: .24em; font-weight: 700; color: var(--sd-gold-text); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; height: 1px; width: 26px; background: var(--sd-gold); }
.eyebrow.justify-content-center::after { content: ""; height: 1px; width: 26px; background: var(--sd-gold); }
.eyebrow-light { color: #e6cf9a; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.12; margin-bottom: 1.4rem; }
.hero h1 em { color: var(--sd-wine); font-style: italic; }
.lead-copy { color: var(--sd-muted); max-width: 470px; line-height: 1.85; margin-bottom: 1.6rem; }
.textbtn { color: var(--sd-wine); font-weight: 600; }
.hero-note { margin-top: 1.2rem; color: #91827c; font-size: .78rem; display: flex; align-items: center; gap: .5rem; }
.hero-image { position: relative; margin: 0 1rem 1.5rem 0; }
.hero-image::before { content: ""; position: absolute; inset: -12px -14px 12px 14px; border: 1px solid #d3b777; border-radius: 220px 220px 14px 14px; }
.hero-image img { position: relative; width: 100%; height: auto; aspect-ratio: 760 / 500; object-fit: cover; object-position: 49% 40%; border-radius: 210px 210px 10px 10px; }
.image-label { position: absolute; left: -20px; bottom: 30px; background: rgba(255, 253, 249, .96); border: 1px solid #fff; border-radius: 7px; padding: .8rem 1.3rem; box-shadow: var(--sd-shadow); display: flex; gap: .8rem; align-items: center; }
.image-label .seal { color: var(--sd-gold); font-size: 1.6rem; }
.image-label strong { display: block; font-family: Georgia, serif; font-weight: 400; font-size: 1rem; }
.image-label small { color: var(--sd-muted); font-size: .68rem; }
.search-box { margin-top: 2rem; background: #fff; border: 1px solid var(--sd-line); padding: 1.5rem 1.8rem; border-radius: 9px; box-shadow: var(--sd-shadow); }
.search-title { font-size: 1.2rem; margin-bottom: 1rem; }
.trust-row { border-bottom: 1px solid var(--sd-line); padding: 1.8rem 0; background: #fff; }
.trust-item { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; color: #74666b; }
.trust-icon { color: var(--sd-gold); font-size: 1.3rem; line-height: 1; }
.trust-item strong { color: var(--sd-ink); display: block; }
.section { padding: 4.5rem 0; } .section-alt { background: #f4eee7; border-top: 1px solid #eae1d5; border-bottom: 1px solid #eae1d5; }
.section-heading { text-align: center; margin-bottom: 2.4rem; } .section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .6rem; } .section-heading p { color: var(--sd-muted); font-size: .9rem; }
.step { text-align: center; padding: 0 1.4rem; position: relative; }
.step-icon { position: relative; display: grid; place-items: center; margin: 0 auto 1.4rem; width: 68px; height: 68px; background: #f2e8e3; border-radius: 50%; color: var(--sd-wine); font-size: 1.7rem; }
.step-no { position: absolute; top: -4px; right: -6px; width: 23px; height: 23px; border-radius: 50%; background: var(--sd-paper); color: var(--sd-gold); font-size: .68rem; display: grid; place-items: center; border: 1px solid #dfcaaa; }
.step h3 { font-size: 1.35rem; margin-bottom: .6rem; } .step p { color: var(--sd-muted); font-size: .88rem; line-height: 1.8; }
.care-art { background: #efe4d6; border-radius: 12px; padding: 3rem 2rem; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.big-heart { color: var(--sd-wine); font-size: 5rem; line-height: 1; margin-bottom: 1rem; }
.care-chip { background: rgba(255, 255, 255, .6); border: 1px solid #fff; border-radius: 8px; padding: .5rem 1.2rem; font-size: .78rem; color: #786448; margin-top: 1rem; }
.check-row { display: flex; align-items: flex-start; gap: .8rem; margin: .9rem 0; } .check-row .check { color: var(--sd-gold); font-weight: 700; } .check-row strong { font-weight: 500; font-size: .92rem; }
.story-card .story-symbol { font-size: 2rem; color: var(--sd-gold); line-height: 1; }
.chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip { border: 1px solid #e0d7ce; background: #fffdf9; border-radius: 6px; padding: .55rem 1.1rem; font-size: .8rem; color: var(--sd-ink); }
.chip:hover { border-color: var(--sd-wine); color: var(--sd-wine); text-decoration: none; }
.cta { background: var(--sd-wine-dark); padding: 2.8rem 3.2rem; color: #fff; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { font-size: 2rem; margin-bottom: .5rem; color: #fff; } .cta p { color: #d5bfc5; margin: 0; }
.btn-light { color: var(--sd-wine); font-weight: 700; }
/* Footer */
.site-footer { border-top: 1px solid var(--sd-line); background: #f7f3ed; padding: 2.8rem 0 0; margin-top: 3rem; }
.footer-heading { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul a { color: var(--sd-muted); display: block; padding: .18rem 0; }
.footer-bottom { border-top: 1px solid var(--sd-line); margin-top: 1.8rem; padding: 1rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: #726468; font-size: .74rem; }
/* Pages */
.page-head { padding: 2.6rem 0 1.4rem; } .page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .5rem; } .page-head p { color: var(--sd-muted); margin: 0; }
.page-body { padding-bottom: 4rem; min-height: 45vh; }
.prose { max-width: 780px; line-height: 1.85; } .prose h2 { font-size: 1.5rem; margin: 1.8rem 0 .7rem; } .prose h3 { font-size: 1.2rem; margin: 1.4rem 0 .5rem; } .prose li { margin: .3rem 0; } .prose blockquote { border-left: 3px solid var(--sd-gold); padding-left: 1rem; color: var(--sd-muted); }
.prose-legal { font-size: .92rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .9rem; background: #fff; }
.prose th, .prose td { border: 1px solid var(--sd-line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--sd-cream); font-weight: 600; }
.prose code { background: var(--sd-cream); padding: .1rem .35rem; border-radius: 4px; font-size: .85em; }
.empty { text-align: center; padding: 3rem 1.5rem; border: 1px dashed #ded0c9; border-radius: 9px; background: #fffdf9; color: var(--sd-muted); }
.pagination { display: flex; gap: .3rem; flex-wrap: wrap; margin: 1.5rem 0; }
.page-link { border: 1px solid var(--sd-line); border-radius: 5px; padding: .4rem .8rem; font-size: .85rem; color: var(--sd-ink); background: #fff; }
.page-link.is-active { background: var(--sd-wine); border-color: var(--sd-wine); color: #fff; } .page-link.is-disabled { opacity: .45; } .page-gap { padding: .4rem .3rem; color: var(--sd-muted); }
/* Auth */
.auth-layout { display: grid; grid-template-columns: .8fr 1.2fr; max-width: 980px; background: #fff; border: 1px solid var(--sd-line); border-radius: 12px; overflow: hidden; box-shadow: var(--sd-shadow); }
.auth-art { background: linear-gradient(0deg, rgba(64, 18, 27, .85), rgba(64, 18, 27, .1)), url("/assets/img/hero-couple.jpg") center/cover; min-height: 520px; padding: 2.2rem; align-items: flex-end; }
.auth-art h2 { font-size: 2rem; }
.auth-form { padding: 2.4rem; }
.btn-google { background: #fff; color: var(--sd-ink); border: 1px solid #cfc4bd; }
.btn-google:hover, .btn-google:focus { background: var(--sd-cream); color: var(--sd-ink); border-color: #b9aca4; text-decoration: none; }
.auth-or { display: flex; align-items: center; gap: .75rem; color: var(--sd-muted); font-size: .85rem; margin: 0 0 1rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--sd-line); }
.progress-steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.6rem; counter-reset: s; }
.progress-steps li { flex: 1; display: flex; flex-direction: column; gap: .35rem; font-size: .72rem; color: var(--sd-muted); }
.progress-steps li::before { content: ""; height: 4px; border-radius: 3px; background: var(--sd-line); }
.progress-steps li.done::before, .progress-steps li.current::before { background: var(--sd-wine); }
.progress-steps li.current { color: var(--sd-wine); font-weight: 600; } .progress-steps .num { display: none; }
/* Member area */
.member-nav { background: #fff; border: 1px solid var(--sd-line); border-radius: 9px; padding: .6rem; position: sticky; top: 1rem; }
.member-nav-link { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 6px; font-size: .84rem; color: #72656b; }
.member-nav-link .icon { width: 1.3rem; text-align: center; }
.member-nav-link:hover, .member-nav-link.active { background: var(--sd-wine-soft); color: var(--sd-wine); text-decoration: none; }
.welcome { background: #f2e8de; padding: 1.6rem 1.8rem; border-radius: 9px; margin-bottom: 1.2rem; }
.stat { display: block; background: #fff; border: 1px solid var(--sd-line); border-radius: 8px; padding: 1rem 1.1rem; color: inherit; height: 100%; }
.stat:hover { text-decoration: none; border-color: var(--sd-gold); }
.stat strong { display: block; font-family: Georgia, serif; font-size: 1.8rem; color: var(--sd-wine); line-height: 1.1; } .stat span { font-size: .74rem; color: var(--sd-muted); }
.stat-gold strong { color: var(--sd-gold-text); } .stat-secondary strong { color: #6a5c62; }
.progress { height: 6px; background: #e8dcd3; } .progress-bar { background: var(--sd-wine); }
.todo-list li { padding: .3rem 0; } .settings-links li { padding: .25rem 0; }
.list-group-item.unread { background: #fff8ee; border-left: 3px solid var(--sd-gold); }
/* Profile cards */
.profile-card { background: #fff; border: 1px solid var(--sd-line); border-radius: 9px; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.profile-photo { display: block; aspect-ratio: 1; background: #efe6e1; position: relative; overflow: hidden; color: #b39a8e; text-decoration: none; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo .initial { position: absolute; inset: 0; display: grid; place-items: center; font: 4rem Georgia, serif; }
.profile-photo .photo-state { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .85); font-size: .7rem; text-align: center; padding: .3rem; color: var(--sd-muted); }
.profile-card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.card-actions { display: flex; gap: .4rem; margin-top: auto; padding-top: .6rem; }
.avatar { width: 52px; height: 52px; background: #f0e5df; border-radius: 50%; display: grid; place-items: center; color: var(--sd-wine); font: 1.4rem Georgia, serif; flex-shrink: 0; }
/* Admin */
.admin-body { background: #f4f1ec; margin: 0; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; flex-shrink: 0; background: var(--sd-wine-dark); color: #e9d8dc; padding: 1rem .8rem; overflow-y: auto; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-family: Georgia, serif; font-size: 1.05rem; padding: .3rem .5rem 1rem; }
.admin-brand img { border-radius: 4px; background: #fff; padding: 2px; }
.admin-brand small { display: block; font: .6rem Arial; letter-spacing: .2em; text-transform: uppercase; color: #c9a4ad; }
.admin-nav-heading { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #b08a93; padding: 1rem .6rem .3rem; }
.admin-nav-link { display: block; padding: .45rem .7rem; border-radius: 5px; color: #e9d8dc; font-size: .84rem; }
.admin-nav-link:hover, .admin-nav-link.active { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { display: flex; align-items: center; gap: 1rem; padding: .6rem 1.2rem; background: #fff; border-bottom: 1px solid var(--sd-line); }
.admin-search { flex: 1; max-width: 420px; }
.admin-content { padding: 1.4rem; }
.admin-content .card { box-shadow: none; }
.admin-content table { font-size: .84rem; } .admin-content th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sd-muted); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; } .bar { flex: 1; background: var(--sd-wine); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .85; }
.activity li { padding: .2rem 0; border-bottom: 1px dashed var(--sd-line); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: 1rem; }
.filter-bar .form-control, .filter-bar .form-select { min-width: 140px; }
/* Admin on small screens: keep the top bar on one line and stack filter fields */
@media (max-width: 767px) {
  .admin-topbar { gap: .5rem; padding: .5rem .7rem; }
  .admin-topbar a, .admin-topbar button { white-space: nowrap; }
  .admin-topbar .badge { display: none; }
  .admin-topbar .btn-link { padding-left: .2rem; padding-right: 0; }
}
@media (max-width: 575px) {
  .filter-bar { display: grid; grid-template-columns: 1fr; gap: .6rem; }
  .filter-bar > div { width: 100%; }
  .filter-bar .form-control, .filter-bar .form-select { min-width: 0; width: 100%; }
  .filter-bar .form-label { display: block; text-align: left; }
}
@media (max-width: 991px) {
  .admin-sidebar { position: fixed; left: -260px; z-index: 1040; transition: left .2s; height: 100vh; }
  .admin-sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .member-nav { position: static; display: flex; overflow-x: auto; gap: .2rem; padding: .4rem; }
  .member-nav-link { white-space: nowrap; padding: .5rem .7rem; font-size: .78rem; }
  .member-nav-link .icon { display: none; }
}
@media (max-width: 767px) {
  .auth-layout { grid-template-columns: 1fr; } .auth-art { display: none !important; } .auth-form { padding: 1.5rem 1.2rem; }
  .hero { padding-top: 2rem; } .hero-copy { text-align: center; } .eyebrow { justify-content: center; } .lead-copy { margin-inline: auto; }
  .hero-copy .d-flex { justify-content: center; } .hero-note { justify-content: center; }
  .hero-image { width: 86%; margin: 1.6rem auto 1rem; } .image-label { left: -14px; bottom: 16px; padding: .6rem .9rem; }
  .search-box { padding: 1.2rem; }
  .cta { padding: 2rem 1.4rem; text-align: center; justify-content: center; }
  .section { padding: 3rem 0; } .step { padding: 0 .5rem; margin-bottom: 1rem; }
  .brand-text { font-size: 1.15rem; } .brand img { width: 50px; height: 44px; }
  .page-head { padding: 1.8rem 0 1rem; }
  .welcome { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .member-nav, .announcement, .no-print { display: none !important; } body { background: #fff; } }
/* Phase 3 additions */
.detail-section { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--sd-line); }
.detail-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.2rem; margin: 0; }
.detail-list dt { font-size: .72rem; color: var(--sd-muted); font-weight: 500; margin-bottom: .1rem; }
.detail-list dd { margin: 0; font-size: .92rem; }
.chip-check { cursor: pointer; user-select: none; } .chip-check input { accent-color: var(--sd-wine); margin-right: .2rem; }
.crop-stage canvas { display: block; width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: 8px; cursor: grab; touch-action: none; background: #efe6e1; }
/* Photo manager: drop zone, queue, editor overlay */
.dropzone { border: 2px dashed #d9c9b6; border-radius: 10px; background: #fffaf3; padding: 1.4rem 1rem; text-align: center; transition: background .15s, border-color .15s; cursor: pointer; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-over { border-color: var(--sd-gold); background: var(--sd-gold-soft); }
.dropzone.is-full { opacity: .55; pointer-events: none; }
.dropzone .dz-icon { font-size: 2rem; line-height: 1; margin-bottom: .4rem; }
.dropzone .dz-title { font-family: Georgia, "Noto Serif", serif; font-size: 1.05rem; color: var(--sd-wine); }
.photo-queue { display: flex; flex-direction: column; gap: .6rem; }
.photo-queue-item { display: flex; gap: .7rem; border: 1px solid var(--sd-line); border-radius: 8px; padding: .5rem; background: #fff; }
.photo-queue-item.is-done { border-color: #bcd9c8; background: #f4faf6; }
.photo-queue-item .pq-thumb { width: 80px; height: 80px; border-radius: 6px; flex: 0 0 80px; background: #efe6e1; }
.photo-queue-item .pq-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.photo-queue-item .pq-name { font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-queue-item .pq-progress { height: 6px; }
.photo-queue-item .pq-actions { display: flex; flex-wrap: wrap; gap: .3rem; }
.photo-editor { position: fixed; inset: 0; z-index: 1060; background: rgba(48, 38, 42, .6); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.photo-editor-panel { background: #fff; border-radius: 12px; padding: 1rem 1.1rem; width: min(900px, 100%); max-height: calc(100vh - 2rem); overflow: auto; box-shadow: 0 24px 64px rgba(0, 0, 0, .3); }
.photo-editor-canvas { display: block; width: 100%; max-width: 420px; margin: 0 auto; border-radius: 8px; background: #efe6e1; cursor: grab; touch-action: none; }
.photo-editor-canvas:active { cursor: grabbing; }
.photo-editor-controls .form-label { margin-bottom: 0; margin-top: .25rem; }
.photo-editor-controls .form-range { margin-bottom: .1rem; }
.photo-editor-controls .btn-outline-secondary.active { background: var(--sd-wine); color: #fff; border-color: var(--sd-wine); }
body.photo-editor-open { overflow: hidden; }
.photo-tile { transition: transform .12s; } .photo-tile:hover { transform: translateY(-2px); }
[data-photo-id].is-dragging { opacity: .4; }
.reorder-form.is-dirty .btn-primary { box-shadow: 0 0 0 .2rem rgba(182, 146, 80, .45); }
@media (max-width: 767px) { .photo-editor { padding: 0; align-items: flex-end; } .photo-editor-panel { border-radius: 12px 12px 0 0; max-height: 100vh; } }
.nav-tabs .nav-link { color: var(--sd-muted); } .nav-tabs .nav-link.active { color: var(--sd-wine); font-weight: 600; }
@media (max-width: 575px) { .detail-list { grid-template-columns: 1fr; } }
/* Chat */
.chat { display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 460px; background: #fff; border: 1px solid var(--sd-line); border-radius: 9px; overflow: hidden; }
.chat-head { padding: .7rem 1rem; border-bottom: 1px solid var(--sd-line); }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; background: #faf7f3; }
.bubble { max-width: 78%; align-self: flex-start; padding: .6rem .9rem; border: 1px solid var(--sd-line); background: #fff; border-radius: 12px 12px 12px 4px; font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: #f3e6eb; border-color: #ead2db; border-radius: 12px 12px 4px 12px; }
.bubble.pending { opacity: .7; } .bubble.failed { border-color: #c44; cursor: pointer; }
.bubble small { display: block; font-size: .66rem; color: var(--sd-muted); margin-top: .3rem; text-align: right; }
.chat-system { align-self: center; font-size: .74rem; color: var(--sd-muted); background: #f0e8e0; padding: .25rem .8rem; border-radius: 20px; }
.chat-typing { font-size: .74rem; color: var(--sd-muted); font-style: italic; }
.chat-composer { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--sd-line); align-items: flex-end; }
.chat-composer textarea { resize: none; max-height: 160px; }
.chat-img img { display: block; max-width: 100%; max-height: 320px; border-radius: 8px; }
.chat-file { display: inline-block; font-size: .9rem; word-break: break-all; }
.online-dot { position: absolute; right: 2px; bottom: 2px; width: 10px; height: 10px; border-radius: 50%; background: #2e9e5b; border: 2px solid #fff; }
.min-w-0 { min-width: 0; }
@media (max-width: 767px) { .chat { height: calc(100vh - 170px); } .bubble { max-width: 90%; } }

.call-ui { padding: .6rem 1rem; background: #2a1219; color: #fff; }
.call-videos { display: flex; gap: .5rem; margin-top: .5rem; } .call-videos video { max-height: 220px; border-radius: 8px; background: #000; } .call-videos [data-local] { max-height: 100px; }
