/* Hamrah Group 10.1 — focused theme/profile/desktop/font repair */
@font-face{font-family:"Hamrah Vazirmatn";src:url("./assets/fonts/Vazirmatn-VF.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:"Hamrah Estedad";src:url("./assets/fonts/Estedad-VF.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:"Hamrah Amiri";src:url("./assets/fonts/Amiri-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Hamrah Amiri";src:url("./assets/fonts/Amiri-Bold.ttf") format("truetype");font-style:normal;font-weight:700;font-display:swap}

body[data-font-family="modern"],body[data-font-family="modern"] button,body[data-font-family="modern"] input,body[data-font-family="modern"] textarea,body[data-font-family="modern"] select{font-family:"Hamrah Vazirmatn",Tahoma,Arial,sans-serif}
body[data-font-family="readable"],body[data-font-family="readable"] button,body[data-font-family="readable"] input,body[data-font-family="readable"] textarea,body[data-font-family="readable"] select{font-family:"Hamrah Estedad",Tahoma,Arial,sans-serif;letter-spacing:0}
body[data-font-family="classic"],body[data-font-family="classic"] button,body[data-font-family="classic"] input,body[data-font-family="classic"] textarea,body[data-font-family="classic"] select{font-family:"Hamrah Amiri",Tahoma,serif;letter-spacing:0}
.font-family-options button[data-font-family="modern"],.g8-chat-preview[data-font-family="modern"]{font-family:"Hamrah Vazirmatn",Tahoma,sans-serif!important}
.font-family-options button[data-font-family="readable"],.g8-chat-preview[data-font-family="readable"]{font-family:"Hamrah Estedad",Tahoma,sans-serif!important}
.font-family-options button[data-font-family="classic"],.g8-chat-preview[data-font-family="classic"]{font-family:"Hamrah Amiri",Tahoma,serif!important}
.font-family-options button{min-height:52px;line-height:1.45}

/* UI Studio light defaults must never override the selected dark semantic theme. */
body.dark.hamrah-ui-managed{
  --ui-bg:#090f1b!important;--ui-surface:#111a2a!important;--ui-surface-alt:#182438!important;
  --ui-text:#f1f5fb!important;--ui-muted:#96a7bc!important;--ui-border:rgba(194,214,235,.12)!important;
  --ui-header-bg:#111a2a!important;--ui-composer-bg:#111a2a!important;--ui-nav-bg:#111a2a!important;
  --ui-nav-inactive:#96a7bc!important;--ui-bubble-received:#152135!important;--ui-bubble-received-text:#f1f5fb!important;
  --ui-bubble-sent:color-mix(in srgb,var(--ui-primary) 31%,#111a2a)!important;--ui-bubble-sent-text:#f1f5fb!important;
  --ui-attachment-bg:#182438!important;
  --bg:var(--ui-bg)!important;--surface:var(--ui-surface)!important;--surface-2:var(--ui-surface-alt)!important;
  --text:var(--ui-text)!important;--muted:var(--ui-muted)!important;--line:var(--ui-border)!important;
}
body.amoled.hamrah-ui-managed{
  --ui-bg:#000!important;--ui-surface:#050505!important;--ui-surface-alt:#0b0b0b!important;
  --ui-text:#fff!important;--ui-muted:#929292!important;--ui-border:rgba(255,255,255,.11)!important;
  --ui-header-bg:#050505!important;--ui-composer-bg:#050505!important;--ui-nav-bg:#050505!important;
  --ui-nav-inactive:#929292!important;--ui-bubble-received:#101010!important;--ui-bubble-received-text:#fff!important;
  --ui-bubble-sent:color-mix(in srgb,var(--ui-primary) 28%,#050505)!important;--ui-bubble-sent-text:#fff!important;
  --ui-attachment-bg:#0b0b0b!important;
  --bg:#000!important;--surface:#050505!important;--surface-2:#0b0b0b!important;--text:#fff!important;--muted:#929292!important;--line:rgba(255,255,255,.11)!important;
}
body.dark .bottom-nav,body.amoled .bottom-nav{background:color-mix(in srgb,var(--surface) 96%,transparent)!important;border-top-color:var(--line)!important;color:var(--muted)!important}
body.dark .bottom-nav button.active,body.amoled .bottom-nav button.active{color:var(--primary)!important}
body.dark .sheet,body.dark .profile-card,body.dark .settings-group,body.dark .settings-category-card,body.dark .admin-card,
body.amoled .sheet,body.amoled .profile-card,body.amoled .settings-group,body.amoled .settings-category-card,body.amoled .admin-card{background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important}
body.dark input,body.dark textarea,body.dark select,body.amoled input,body.amoled textarea,body.amoled select{background:var(--surface-2)!important;color:var(--text)!important;border-color:var(--line)!important}

/* Profile repair: compact identity, no overlap, one meaningful public preview. */
.profile-view{padding:14px 12px calc(var(--nav-height) + 28px)}
.profile-hero{min-height:210px;max-width:620px;margin-inline:auto;padding:22px 18px 20px;border-radius:24px}
.profile-avatar-wrap{width:92px;margin-bottom:11px}.profile-avatar-wrap .avatar-xl{width:92px;height:92px;border-radius:28px}
.avatar-camera{left:-3px;bottom:-2px;width:38px;height:38px}
.profile-hero h2{font-size:1.22rem}.profile-hero>p{max-width:360px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.profile-form{margin-top:12px}.profile-card{max-width:620px;padding:16px}
.profile-card>label{display:block}.profile-card label+label{margin-top:2px}
.profile-birthday-wrap{align-items:center}.profile-birthday-input{direction:ltr;text-align:left;font-variant-numeric:tabular-nums}
.profile-field-help{display:block;margin:6px 4px 0;color:var(--muted);font-size:.56rem;line-height:1.6}
.profile-field-error{display:block;min-height:1.2em;margin:4px 4px 0;color:var(--danger);font-size:.58rem;font-weight:700}
.profile-field-error:empty{display:none}.profile-birthday-invalid input{border-color:var(--danger)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--danger) 14%,transparent)!important}
.profile-color-label{margin-top:19px}.g8-profile-public-preview{margin-top:10px!important;margin-bottom:13px!important}
@media(max-width:720px){.two-fields{grid-template-columns:1fr!important;gap:0!important}.profile-hero{min-height:198px}.profile-form{margin-top:10px}}

/* Desktop shell ownership moved to the authoritative Group 10.2 grid in group10.css. */
