@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --paper: #f6f1e7;
  --paper-deep: #eee6d8;
  --paper-card: #fffdf8;
  --ink: #252b27;
  --muted: #74786f;
  --line: #ded7ca;
  --teal: #356b62;
  --teal-dark: #244f49;
  --teal-soft: #e4eee8;
  --orange: #e6a36b;
  --orange-pale: #f5dfc9;
  --rust: #a9563f;
  --serif: Georgia, 'Noto Serif Myanmar', serif;
  --sans: 'Noto Sans Myanmar', 'Myanmar Text', sans-serif;
  --shadow: 0 18px 48px rgba(54, 54, 41, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #c6764d; outline-offset: 3px; }
::selection { color: white; background: var(--teal); }
.skip-link { position: fixed; z-index: 30; top: 8px; left: 8px; transform: translateY(-150%); background: var(--teal-dark); color: white; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 20; top: 0; background: rgba(246, 241, 231, .94); border-bottom: 1px solid rgba(222, 215, 202, .8); backdrop-filter: blur(14px); }
.header-inner { max-width: 1240px; min-height: 82px; margin: auto; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.brand-name { font: 700 19px/1.15 'DM Sans', sans-serif; letter-spacing: -.06em; color: var(--ink); }
.brand-name span { color: var(--teal); }
.brand-mark { position: relative; width: 34px; height: 34px; border: 1.6px solid var(--teal); border-radius: 50%; display: inline-grid; place-items: center; transform: rotate(-17deg); }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; border: 1px dashed var(--orange); border-radius: 50%; inset: 4px; }
.brand-mark::after { inset: 10px; border-style: solid; border-color: var(--teal); }
.brand-mark__river { position: absolute; width: 2px; height: 23px; background: var(--paper); border-left: 1px dashed var(--teal); z-index: 1; transform: rotate(25deg); }
.brand-mark__dot { position: absolute; z-index: 2; width: 5px; height: 5px; border-radius: 50%; background: var(--rust); right: 5px; top: 7px; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 4vw, 48px); margin-left: auto; margin-right: auto; }
.nav-link { color: #686c64; font-size: 12px; text-decoration: none; transition: color .2s; }
.nav-link:hover, .nav-link.is-current { color: var(--teal-dark); }
.header-cta { text-decoration: none; color: white; background: var(--teal); border: 1px solid var(--teal); padding: 9px 17px; border-radius: 3px; font-size: 11px; transition: background .2s, transform .2s; }
.header-cta span { margin-left: 8px; font: 16px 'DM Sans', sans-serif; }
.header-cta:hover { background: var(--teal-dark); transform: translateY(-1px); }

.hero { max-width: 1240px; min-height: 655px; padding: 67px 34px 60px; margin: auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(26px, 6vw, 84px); align-items: center; }
.hero-copy { max-width: 640px; padding-bottom: 15px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 20px; color: var(--teal); font: 700 10px/1.5 'DM Sans', var(--sans); letter-spacing: .11em; text-transform: uppercase; }
.eyebrow-line { width: 28px; border-top: 1px solid var(--orange); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.57; letter-spacing: -.045em; font-weight: 700; }
.hero h1 span, .section-heading h2 span, .how-heading h2 span { color: var(--teal); }
.hero-description { max-width: 490px; margin: 22px 0 28px; color: #686b63; font-size: 13px; line-height: 2.05; }
.search-form { max-width: 540px; }
.search-label { display: block; margin: 0 0 8px 2px; color: #7d7c72; font-size: 10px; }
.search-box { display: flex; align-items: center; gap: 10px; min-height: 59px; padding: 6px; border: 1px solid #d7d0c3; border-radius: 5px; background: var(--paper-card); box-shadow: 0 8px 28px rgba(51, 66, 54, .055); }
.search-icon { flex: 0 0 32px; display: grid; place-items: center; color: var(--teal); }
.search-icon svg { width: 19px; height: 19px; }
.search-box input { min-width: 0; flex: 1; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 11px; }
.search-box input::placeholder { color: #aaa69d; }
.search-box input:focus-visible { outline: none; }
.search-submit { border: 0; border-radius: 3px; background: var(--teal); color: white; padding: 9px 14px; cursor: pointer; white-space: nowrap; font-size: 10px; transition: background .2s; }
.search-submit:hover { background: var(--teal-dark); }
.search-submit span { margin-left: 7px; font: 17px 'DM Sans', sans-serif; }
.hero-note { display: flex; align-items: center; gap: 13px; margin-top: 24px; color: #7f796e; font-size: 10px; }
.note-stamp { width: 41px; height: 41px; border: 1px dashed var(--rust); border-radius: 50%; display: grid; place-content: center; text-align: center; color: var(--rust); font: 700 7px/1.4 'DM Sans', sans-serif; letter-spacing: .07em; transform: rotate(-10deg); }

.hero-art { min-height: 460px; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-art::before { content: ''; position: absolute; z-index: -2; inset: 10% 4% 8%; border-radius: 50%; background: radial-gradient(ellipse, #e9ddc8 0, rgba(233, 221, 200, .55) 48%, rgba(233, 221, 200, 0) 72%); }
.art-sun { position: absolute; z-index: -1; width: 168px; height: 168px; top: 2%; right: 7%; border-radius: 50%; background: var(--orange-pale); opacity: .84; }
.postcard { position: absolute; width: min(77%, 390px); height: 318px; border: 1px solid #e5dccb; border-radius: 5px; background: #fffdf8; box-shadow: 0 22px 52px rgba(63, 67, 52, .13); }
.postcard--back { transform: rotate(8deg) translate(9px, 5px); background: #edf0e8; }
.postcard--front { z-index: 1; padding: 21px 23px 17px; transform: rotate(-4deg); }
.card-topline, .card-bottomline { display: flex; justify-content: space-between; align-items: flex-start; color: #777c6d; font: 600 8px/1.5 'DM Sans', var(--sans); letter-spacing: .1em; }
.card-postmark { color: var(--rust); border: 1px solid #ddc4ae; padding: 2px 6px; border-radius: 50%; transform: rotate(9deg); }
.card-illustration { position: relative; height: 184px; margin: 12px 0 10px; overflow: hidden; background: linear-gradient(180deg, #f6eadb 0%, #f2e4d1 68%, #d6e4d9 68%, #c1d8d0 100%); }
.card-illustration::before, .card-illustration::after { content: ''; position: absolute; width: 130px; height: 130px; border: 1px solid rgba(169, 86, 63, .28); border-radius: 50%; top: -69px; left: 32px; }
.card-illustration::after { width: 175px; height: 175px; top: -92px; left: 10px; }
.bridge { position: absolute; z-index: 2; top: 62px; width: 88px; height: 81px; border-top: 4px solid var(--teal); }
.bridge--left { left: 38px; border-left: 3px solid var(--teal); }
.bridge--right { right: 38px; border-right: 3px solid var(--teal); }
.bridge-deck { position: absolute; z-index: 3; height: 4px; background: var(--teal); left: 36px; right: 36px; top: 99px; }
.bridge-arch { position: absolute; z-index: 2; height: 53px; width: 148px; top: 100px; left: calc(50% - 74px); border: 2px solid var(--teal); border-top: 0; border-radius: 0 0 50% 50%; }
.bridge-water { position: absolute; height: 2px; left: 27px; right: 27px; bottom: 18px; border-top: 1px dashed #719b8b; box-shadow: 0 7px 0 #719b8b, 0 14px 0 #719b8b; }
.bridge-star { position: absolute; z-index: 4; color: var(--rust); font-size: 17px; }
.star-one { right: 47px; top: 34px; }.star-two { left: 96px; top: 22px; font-size: 11px; }
.card-bottomline { align-items: center; letter-spacing: 0; font: 10px/1.8 var(--sans); color: #666c61; }
.stamp-circle { width: 45px; height: 45px; border: 1px dashed var(--rust); display: grid; place-content: center; text-align: center; border-radius: 50%; color: var(--rust); font: 700 7px/1.4 'DM Sans', sans-serif; letter-spacing: .1em; transform: rotate(11deg); }
.orbit-note { position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border: 1px solid #e4ddcf; border-radius: 25px; background: rgba(255, 253, 248, .94); box-shadow: 0 8px 22px rgba(55, 60, 49, .09); font: 600 9px 'DM Sans', sans-serif; }
.orbit-note--top { top: 16%; left: -1%; transform: rotate(-4deg); animation: float 6s ease-in-out infinite; }
.orbit-note--bottom { bottom: 13%; right: -1%; transform: rotate(3deg); animation: float 6s ease-in-out -2.3s infinite; }
.orbit-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: white; font: 700 12px 'DM Sans', sans-serif; }
.icon-tg { background: #3198d5; }.icon-vb { background: #7564a8; }
.art-caption { position: absolute; bottom: 1%; left: 50%; transform: translateX(-50%); color: #909081; white-space: nowrap; font: 700 8px 'DM Sans', sans-serif; letter-spacing: .22em; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

.directory-section { padding: 82px max(34px, calc((100% - 1172px) / 2)) 100px; background: #fbf8f1; border-top: 1px solid #e9e1d4; border-bottom: 1px solid #e9e1d4; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-eyebrow { margin-bottom: 11px; }
.section-heading h2, .how-heading h2 { max-width: 700px; margin: 0; font-size: clamp(24px, 3vw, 36px); line-height: 1.6; letter-spacing: -.035em; }
.section-side-note { margin: 0 0 4px; padding-left: 18px; border-left: 1px solid var(--orange); color: #79796f; font-size: 10px; line-height: 2; }
.directory-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 17px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.filter-label { display: block; margin-bottom: 9px; color: #858277; font: 700 8px/1.4 'DM Sans', var(--sans); letter-spacing: .13em; }
.filter-list { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid #ddd7cb; border-radius: 3px; background: transparent; color: #666a61; cursor: pointer; font-size: 9px; transition: border .18s, color .18s, background .18s; }
.filter-chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.filter-chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: white; }
.chip-mark { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(70, 105, 93, .12); color: var(--teal); font: 700 8px 'DM Sans', sans-serif; }
.filter-chip[aria-pressed="true"] .chip-mark { color: white; background: rgba(255,255,255,.18); }
.result-count { flex: 0 0 auto; padding-bottom: 6px; color: #8b897e; font-size: 9px; }
.demo-notice { display: flex; gap: 10px; align-items: center; margin: 18px 0 20px; padding: 11px 14px; border: 1px dashed #d5cbbb; border-radius: 3px; background: #f7f2e7; color: #726f64; font-size: 9px; }
.demo-notice strong { color: #9c5d3f; font-weight: 700; }
.notice-seal { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #bd9475; border-radius: 50%; color: #9c5d3f; font: italic 700 13px Georgia, serif; }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.profile-card { position: relative; min-width: 0; padding: 20px 19px 17px; border: 1px solid #e2dccf; border-radius: 4px; background: var(--paper-card); box-shadow: 0 5px 20px rgba(50, 55, 43, .035); transition: transform .2s, box-shadow .2s, border-color .2s; }
.profile-card:hover { transform: translateY(-3px); border-color: #b8c9bd; box-shadow: 0 15px 32px rgba(50, 55, 43, .09); }
.profile-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed #e2dccf; }
.avatar { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--teal-dark); background: #e5ede4; border: 1px solid #d4e0d3; font-size: 16px; font-weight: 700; }
.avatar--peach { color: #925844; background: #f5e5d8; border-color: #ecd4c3; }
.avatar--blue { color: #59667a; background: #e4e9ed; border-color: #d4dce3; }
.avatar--lavender { color: #756584; background: #eee8f1; border-color: #e0d6e7; }
.avatar--yellow { color: #89713c; background: #f3edda; border-color: #e9dfc3; }
.avatar--rose { color: #9a5b62; background: #f5e5e5; border-color: #ebd2d4; }
.profile-name { margin: 2px 0 1px; font-size: 13px; line-height: 1.6; }
.profile-location { display: flex; align-items: center; gap: 5px; color: #939085; font-size: 8px; }
.location-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.profile-bio { min-height: 46px; margin: 13px 0 13px; color: #77766d; font-size: 9px; line-height: 1.9; }
.profile-interest { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 13px; }
.interest-tag { padding: 2px 8px; border-radius: 2px; background: #f2eee5; color: #77766b; font-size: 8px; }
.contact-list { display: grid; gap: 7px; }
.contact-row { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid #e8e2d8; border-radius: 3px; background: #fcfaf5; }
.app-badge { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; color: white; border-radius: 50%; font: 700 9px 'DM Sans', sans-serif; }
.app-wechat { background: #37a468; }.app-telegram { background: #3198d5; }.app-viber { background: #7564a8; }.app-instagram { background: #b45f76; }.app-facebook { background: #4267a9; }.app-discord { background: #656fe2; }.app-whatsapp { background: #2d9b68; }
.contact-detail { flex: 1; min-width: 0; }
.contact-app { display: block; color: #8c897f; font: 600 7px/1.2 'DM Sans', var(--sans); }
.contact-id { display: block; overflow: hidden; max-width: 100%; color: #41483f; text-overflow: ellipsis; white-space: nowrap; font: 500 8px/1.6 'DM Sans', var(--sans); }
.contact-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.copy-button { width: 26px; height: 26px; border: 0; border-radius: 3px; background: transparent; color: #8b8d81; cursor: pointer; display: grid; place-items: center; }
.copy-button:hover { background: var(--teal-soft); color: var(--teal-dark); }
.copy-button svg { width: 14px; height: 14px; }
.open-link { color: var(--teal); text-decoration: none; font: 700 8px 'DM Sans', var(--sans); white-space: nowrap; }
.open-link:hover { color: var(--rust); text-decoration: underline; }
.open-link.chat-action { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 8px; border: 1px solid #cadbd1; border-radius: 3px; background: #edf3ed; color: var(--teal-dark); }
.open-link.chat-action:hover { background: var(--teal); color: white; text-decoration: none; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; color: #a19b8e; font: 700 7px 'DM Sans', sans-serif; letter-spacing: .08em; }
.card-footer::before { content: ''; flex: 0 0 23px; border-top: 1px solid var(--orange); }
.empty-state { padding: 50px 20px; text-align: center; color: #77766d; }
.empty-icon { display: block; color: var(--teal); font: 44px/1 'DM Sans', sans-serif; }
.empty-state h3 { margin: 16px 0 4px; color: var(--ink); font-size: 16px; }
.empty-state p { font-size: 10px; }
.reset-button { border: 1px solid var(--teal); border-radius: 3px; padding: 8px 14px; background: transparent; color: var(--teal); cursor: pointer; font-size: 10px; }
.reset-button:hover { background: var(--teal); color: white; }

.how-section { max-width: 1240px; margin: auto; padding: 94px 34px 91px; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 7vw, 105px); align-items: center; }
.how-heading .eyebrow { margin-bottom: 14px; }
.how-heading h2 { font-size: clamp(27px, 3vw, 38px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step-card { position: relative; padding: 16px 14px 19px 16px; }
.step-card + .step-card { border-left: 1px solid var(--line); }
.step-number { color: #a5a093; font: 700 8px 'DM Sans', sans-serif; letter-spacing: .12em; }
.step-symbol { display: grid; place-items: center; width: 39px; height: 39px; margin: 14px 0 11px; border: 1px solid #d5dfd5; border-radius: 50%; color: var(--teal); background: #edf1e8; font: 20px 'DM Sans', sans-serif; }
.step-symbol--choose { color: #a36042; background: #f5eadb; border-color: #ebd7c0; }
.step-symbol--hello { color: #697b6c; background: #e8eee5; }
.step-card h3 { margin-bottom: 4px; font-size: 11px; }
.step-card p { margin: 0; color: #77776c; font-size: 8px; line-height: 1.9; }
.closing-note { position: relative; min-height: 164px; padding: 24px 34px; display: flex; align-items: center; justify-content: center; gap: 24px; border-top: 1px solid #e7ddcf; border-bottom: 1px solid #e7ddcf; background: #eee8dc; }
.closing-stamp { width: 55px; height: 55px; border: 1px dashed var(--rust); border-radius: 50%; color: var(--rust); display: grid; place-content: center; text-align: center; transform: rotate(-12deg); font: 700 7px/1.3 'DM Sans', sans-serif; letter-spacing: .08em; }
.closing-note p { margin: 0; font-size: clamp(12px, 1.6vw, 17px); }
.closing-note p span { color: var(--teal); font-weight: 700; }
.closing-note a { position: absolute; right: max(34px, calc((100% - 1172px) / 2)); color: var(--teal); text-decoration: none; font-size: 9px; }
.closing-note a:hover { color: var(--rust); }
.closing-note a span { margin-left: 6px; font: 16px 'DM Sans', sans-serif; }
.site-footer { max-width: 1240px; min-height: 92px; margin: auto; padding: 20px 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand .brand-mark { width: 29px; height: 29px; }.footer-brand .brand-name { font-size: 16px; }
.site-footer p { margin: 0; color: #868277; font-size: 9px; }
.footer-postmark { color: #9a978b; font: 700 7px 'DM Sans', sans-serif; letter-spacing: .14em; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 25px; transform: translate(-50%, 15px); padding: 9px 16px; border-radius: 3px; background: var(--teal-dark); color: white; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; font-size: 10px; box-shadow: 0 8px 26px rgba(28, 57, 48, .2); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 25px; min-height: 605px; }
  .hero h1 { font-size: clamp(30px, 4vw, 43px); }
  .hero-art { min-height: 390px; }
  .postcard { height: 280px; }
  .card-illustration { height: 150px; }
  .bridge { top: 49px; }.bridge-deck { top: 85px; }.bridge-arch { top: 86px; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-section { grid-template-columns: 1fr; gap: 32px; }
  .how-heading h2 br { display: none; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 68px; padding: 0 19px; gap: 10px; }
  .main-nav { display: none; }
  .header-cta { margin-left: auto; padding: 7px 10px; font-size: 9px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-name { font-size: 17px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 49px 20px 42px; gap: 18px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .hero-description { max-width: 540px; margin: 15px 0 21px; font-size: 12px; }
  .hero-art { min-height: 330px; max-width: 520px; width: 100%; align-self: center; }
  .postcard { width: min(74%, 360px); height: 252px; }
  .postcard--front { padding: 15px 17px; }
  .card-illustration { height: 136px; margin: 8px 0; }
  .bridge { top: 43px; }.bridge-deck { top: 77px; }.bridge-arch { top: 78px; }
  .orbit-note--top { left: 1%; }.orbit-note--bottom { right: 1%; }
  .directory-section { padding: 57px 20px 64px; }
  .section-heading { align-items: start; flex-direction: column; gap: 13px; margin-bottom: 27px; }
  .section-heading h2 { font-size: 25px; }
  .section-side-note { padding-left: 11px; font-size: 9px; }
  .directory-toolbar { align-items: start; flex-direction: column; gap: 10px; }
  .result-count { padding: 0; }
  .filter-chip { padding: 5px 9px; }
  .profile-grid { grid-template-columns: 1fr; gap: 11px; }
  .profile-card { padding: 17px; }
  .profile-bio { min-height: 0; }
  .how-section { padding: 61px 20px; }
  .steps { grid-template-columns: 1fr; }
  .step-card { display: grid; grid-template-columns: 36px 45px 1fr; gap: 0 10px; padding: 14px 9px; align-items: center; }
  .step-card + .step-card { border-left: 0; border-top: 1px solid var(--line); }
  .step-number { grid-row: span 2; align-self: start; padding-top: 8px; }
  .step-symbol { grid-column: 2; grid-row: span 2; margin: 0; }
  .step-card h3 { grid-column: 3; margin: 0; }
  .step-card p { grid-column: 3; }
  .closing-note { justify-content: flex-start; gap: 15px; padding: 20px; min-height: 135px; }
  .closing-note p { max-width: 67%; font-size: 12px; line-height: 1.9; }
  .closing-note a { right: 20px; bottom: 14px; font-size: 8px; }
  .site-footer { min-height: 106px; flex-wrap: wrap; padding: 20px; gap: 8px 14px; }
  .site-footer p { order: 3; flex-basis: 100%; }
  .footer-postmark { margin-left: auto; font-size: 6px; }
}
@media (max-width: 380px) {
  .search-box { gap: 5px; }.search-icon { flex-basis: 25px; }.search-submit { padding: 8px; font-size: 9px; }
  .orbit-note { font-size: 8px; padding-right: 8px; }.postcard { width: 80%; }
  .section-heading h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Account and consent controls */
.header-cta { cursor: pointer; font-family: var(--sans); }
.header-cta:disabled, .save-profile:disabled { opacity: .65; cursor: wait; }
.profile-dialog { width: min(760px, calc(100vw - 28px)); max-width: 760px; max-height: min(90vh, 900px); padding: 0; overflow: auto; border: 1px solid #ded7ca; border-radius: 6px; background: #fbf8f1; color: var(--ink); box-shadow: 0 24px 90px rgba(23, 34, 28, .28); }
.profile-dialog::backdrop { background: rgba(34, 45, 39, .56); backdrop-filter: blur(3px); }
.profile-dialog[open] { animation: dialog-in .18s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: start; padding: 22px 26px 12px; border-bottom: 1px solid var(--line); background: rgba(251, 248, 241, .97); }
.dialog-header .eyebrow { margin-bottom: 5px; }
.dialog-header h2 { margin: 0; font-size: 22px; }
.dialog-close { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font: 24px/1 'DM Sans', sans-serif; }
.dialog-close:hover { border-color: var(--rust); color: var(--rust); }
.dialog-intro { margin: 0; padding: 14px 26px 6px; color: #77766d; font-size: 10px; line-height: 1.9; }
#profile-form { padding: 8px 26px 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; }
.form-grid label, .contact-editor-row label { display: grid; gap: 5px; color: #62675e; font-size: 9px; }
.required-mark { color: var(--rust); }
.form-wide { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea, .contact-editor-row input, .contact-editor-row select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #dcd5c8; border-radius: 3px; outline: 0; background: #fffdf8; color: var(--ink); font: 10px/1.7 var(--sans); }
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus, .contact-editor-row input:focus, .contact-editor-row select:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(53, 107, 98, .12); }
.form-grid input::placeholder, .form-grid textarea::placeholder, .contact-editor-row input::placeholder { color: #a5a094; }
.contacts-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0 9px; padding-top: 14px; border-top: 1px dashed #d9d1c4; }
.contacts-heading h3 { margin: 0; color: var(--ink); font-size: 11px; }
.contacts-heading p { margin: 2px 0 0; color: #89867b; font-size: 8px; }
.add-contact { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--teal); border-radius: 3px; background: transparent; color: var(--teal); cursor: pointer; font-size: 8px; }
.add-contact:hover { background: var(--teal); color: white; }
.contact-editor-list { display: grid; gap: 8px; }
.contact-editor-row { display: grid; grid-template-columns: .75fr .85fr 1.5fr 30px; gap: 8px; align-items: end; padding: 10px; border: 1px solid #e3ddd2; border-radius: 3px; background: #fffdf8; }
.contact-editor-row label { font-size: 8px; }
.contact-editor-row input, .contact-editor-row select { padding: 7px; font-size: 8px; }
.contact-visibility { grid-column: 1 / 4; display: flex !important; align-items: center; gap: 7px !important; cursor: pointer; }
.contact-visibility input { flex: 0 0 14px; width: 14px; height: 14px; margin: 0; padding: 0; accent-color: var(--teal); }
.contact-visibility span { color: #6f766d; font-size: 8px; }
.remove-contact { grid-column: 4; grid-row: 2; width: 28px; height: 31px; border: 1px solid #ead6cb; border-radius: 3px; background: #fbf1ea; color: var(--rust); cursor: pointer; font: 18px/1 'DM Sans', sans-serif; }
.remove-contact:hover { background: #f4ded3; }
.publish-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 17px; padding: 12px; border: 1px solid #d9e1d8; border-radius: 3px; background: #edf2e9; cursor: pointer; }
.publish-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--teal); }
.publish-consent strong, .publish-consent small { display: block; }
.publish-consent strong { color: var(--teal-dark); font-size: 9px; }
.publish-consent small { margin-top: 3px; color: #6f766d; font-size: 8px; line-height: 1.8; }
.profile-message { min-height: 25px; padding-top: 7px; color: var(--teal-dark); font-size: 9px; }
.dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-left-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.logout-button { border: 0; background: transparent; color: #8b6b5d; cursor: pointer; font-size: 9px; }
.logout-button:hover { color: var(--rust); text-decoration: underline; }
.delete-profile { border: 0; background: transparent; color: #a04c3e; cursor: pointer; font-size: 8px; }
.delete-profile:hover { text-decoration: underline; }
.save-profile { padding: 9px 16px; border: 1px solid var(--teal); border-radius: 3px; background: var(--teal); color: white; cursor: pointer; font-size: 9px; }
.save-profile:hover { background: var(--teal-dark); }
.save-profile span { margin-left: 5px; font: 16px 'DM Sans', sans-serif; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .profile-dialog { width: calc(100vw - 18px); max-height: 94vh; }
  .dialog-header { padding: 17px 17px 10px; }
  .dialog-intro { padding: 12px 17px 3px; }
  #profile-form { padding: 8px 17px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 10px; }
  .form-wide { grid-column: auto; }
  .contacts-heading { align-items: start; }
  .contact-editor-row { grid-template-columns: 1fr 1fr 30px; }
  .contact-url-field { grid-column: 1 / 3; grid-row: 2; }
  .contact-visibility { grid-column: 1 / 3; grid-row: 3; }
  .remove-contact { grid-column: 3; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .profile-dialog[open] { animation: none; } }
