/* Header and account surfaces share the same monochrome, RTL app system. */
body button svg:not(.google-mark), body nav svg { stroke-width: 1.8; }
.mobile-nav button.active svg { fill: none; }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.app-header .header-icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #d8d8df; background: transparent; }
.app-header .header-icon svg, .app-header .search-button svg { width: 21px; height: 21px; flex: 0 0 auto; }
.app-header .profile-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; height: 40px; min-width: 40px; padding: 0; border: 0; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.app-header .profile-button.is-guest { width: auto; min-width: 66px; padding: 0 18px; background: #eeeeF1; color: #151518; font-size: 12px; }
.app-header .profile-button.is-member { width: 40px; aspect-ratio: 1; background: #29292f; color: #f5f5f7; direction: ltr; }
.account-main[hidden], .account-main [hidden], .account-dialog [hidden] { display: none !important; }
.account-main { min-height: calc(100dvh - 76px); }
.account-container { max-width: 1120px; margin: 0 auto; padding: 42px clamp(24px, 5vw, 64px) 70px; }
.account-page-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.account-page-heading h1 { margin: 0; color: #f4f4f7; font-size: 28px; }
.account-page-heading > span { color: #878793; font-size: 12px; }
.account-layout { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.7fr); align-items: start; gap: 28px; }
.account-identity { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 32px 22px 20px; border-radius: 22px; background: #151517; text-align: center; }
.account-avatar { display: grid; width: 72px; height: 72px; place-items: center; flex-shrink: 0; border-radius: 50%; background: #2c2c33; color: #fff; font: 600 28px/1 Vazirmatn, Tahoma, sans-serif; direction: ltr; }
.account-identity h2 { max-width: 100%; margin: 18px 0 5px; overflow-wrap: anywhere; color: #f5f5f7; font-size: 18px; }
.account-identity > p { max-width: 100%; margin: 0; color: #a5a5b1; overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; }
.account-status { margin-top: 16px; padding: 5px 10px; border-radius: 999px; background: #25252b; color: #a9a9b6; font-size: 10px; }
.account-identity > button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 44px; margin-top: 24px; border: 0; border-radius: 999px; background: #202025; color: #d7d7e0; font-size: 11px; cursor: pointer; }
.account-identity > button svg { width: 15px; height: 15px; }
.account-details { min-width: 0; }
.account-membership { padding: 26px; border-radius: 22px; background: #19191d; }
.account-membership-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.account-section-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: #303038; color: #ededf3; }
.account-section-icon svg { width: 21px; height: 21px; }
.membership-status { color: #b0b0bc; font-size: 10px; }
.account-membership > p { margin: 0 0 7px; color: #b3b3c0; font-size: 11px; }
.account-membership h2 { margin: 0 0 10px; color: #f5f5f8; font-size: 24px; font-weight: 700; line-height: 1.6; }
.account-membership-copy { display: block; max-width: 440px; color: #a8a8b4; font-size: 12px; line-height: 2; }
.account-membership-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.account-membership-bottom > span { color: #9b9ba9; font-size: 10px; }
.account-membership-bottom b { color: #f2f2f6; font-size: 16px; }
.account-membership-bottom button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: #f1f1f3; color: #151518; font-size: 11px; font-weight: 700; cursor: pointer; }
.account-membership-bottom svg { width: 17px; height: 17px; }
.account-settings { margin-top: 30px; }
.account-settings > h2 { margin: 0 0 16px; color: #9999a6; font-size: 12px; font-weight: 500; }
.account-settings > button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 78px; margin-top: 8px; padding: 14px 17px; border: 0; border-radius: 16px; background: #131315; color: #dcdce5; text-align: right; cursor: pointer; }
.account-row-icon { display: grid; flex-shrink: 0; width: 30px; height: 36px; place-items: center; color: #a3a3af; }
.account-row-icon svg { width: 22px; height: 22px; }
.account-settings > button b { display: block; font-size: 12px; font-weight: 600; }
.account-settings > button small { display: block; margin-top: 5px; color: #858592; font-size: 10px; }
.account-settings > button > svg { width: 16px; height: 16px; margin-inline-start: auto; color: #747480; }
.account-logout { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; margin-top: 22px; padding: 0 4px; border: 0; background: none; color: #d0a3a8; font-size: 12px; cursor: pointer; }
.account-logout svg { width: 19px; height: 19px; }
html.account-dialog-open { overflow: hidden; }
body.account-dialog-open { position: fixed; top: var(--account-scroll-y, 0); left: 0; right: 0; width: 100%; overflow: hidden; }
.account-dialog { position: fixed; width: min(440px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0 28px 30px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 25px; background: #171719; color: #f4f4f7; box-shadow: 0 24px 100px #0009; }
.account-dialog:not([open]) { display: none; }
.account-dialog[open] { animation: account-dialog-in .22s ease-out; }
.account-dialog::backdrop { background: rgba(0, 0, 0, .64); backdrop-filter: blur(8px); }
.account-drag-handle { display: none; }
.account-dialog-topbar { display: flex; align-items: center; justify-content: space-between; height: 78px; margin-bottom: 14px; }
.account-dialog-topbar > img { width: 37px; height: 25px; object-fit: contain; filter: invert(1) grayscale(1); }
.account-dialog-topbar > button { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #28282d; color: #e1e1e8; cursor: pointer; }
.account-dialog-topbar svg { width: 20px; height: 20px; }
.account-eyebrow { margin: 0 0 9px; color: #9797a5; font-size: 11px; }
.account-dialog h1 { margin: 0; color: #f3f3f8; font-size: 24px; font-weight: 700; line-height: 1.6; }
.auth-description { margin: 10px 0 26px; color: #a7a7b4; font-size: 12px; line-height: 2; overflow-wrap: anywhere; }
.google-login { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 50px; padding: 10px 18px; border: 0; border-radius: 999px; background: #2b2b30; color: #f6f6f9; font: 500 13px Vazirmatn, Tahoma, sans-serif; cursor: pointer; }
.google-mark { flex: 0 0 20px; stroke: none !important; }
#googleSignIn { display: flex; justify-content: center; min-height: 50px; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 25px 0; color: #80808e; font-size: 10px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #2d2d32; }
.account-form { display: flex; flex-direction: column; gap: 10px; margin-top: 23px; }
.auth-divider + .account-form { margin-top: 0; }
.account-form label { color: #d5d5df; font-size: 12px; }
.account-form input { width: 100%; min-width: 0; height: 50px; padding: 0 16px; border: 0; border-radius: 13px; outline: none; background: #242429; color: #f2f2f7; font: 16px Vazirmatn, Tahoma, sans-serif; transition: box-shadow .2s; }
.account-form input::placeholder { color: #767684; }
.account-form input:focus { box-shadow: 0 0 0 2px #696977; }
.account-form input[aria-invalid="true"] { box-shadow: 0 0 0 2px #bd737b; }
.account-form input[readonly] { color: #9696a4; }
.account-form input + label { margin-top: 12px; }
.account-input-wrap { position: relative; }
.account-input-wrap input { padding-right: 44px; }
.account-input-wrap > svg { position: absolute; right: 15px; top: 15px; width: 20px; height: 20px; color: #818190; pointer-events: none; }
.account-primary { display: inline-flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 50px; margin-top: 10px; padding: 10px 20px; border: 0; border-radius: 999px; background: #f1f1f4; color: #17171b; font: 700 12px Vazirmatn, Tahoma, sans-serif; cursor: pointer; }
.account-primary svg { width: 18px; height: 18px; }
.account-primary:disabled, .account-logout:disabled { opacity: .65; cursor: wait; }
.account-error { margin: 3px 0; padding: 12px 14px; border-radius: 12px; background: #312025; color: #edb7bf; font-size: 11px; line-height: 2; }
.auth-footnote { margin: 20px 0 0; color: #8e8e9c; font-size: 10px; line-height: 2; text-align: center; }
.account-field-note { margin: 1px 0 8px; color: #9393a2; font-size: 11px; line-height: 1.9; }
.account-text-button { width: 100%; min-height: 42px; margin-top: 12px; border: 0; background: none; color: #bcbcc9; font-size: 11px; cursor: pointer; }
.account-empty { padding: 36px 0 10px; text-align: center; }
.account-empty > svg { width: 32px; height: 32px; margin-bottom: 16px; color: #8b8b9b; }
.account-empty h2 { margin: 0; font-size: 17px; font-weight: 600; }
.account-empty p { margin: 12px 0 22px; color: #9999a9; font-size: 12px; line-height: 2; }
.account-faq { display: grid; gap: 10px; margin-top: 25px; }
.account-faq details { padding: 16px; border-radius: 14px; background: #222227; }
.account-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; font-size: 12px; line-height: 1.8; cursor: pointer; }
.account-faq summary::-webkit-details-marker { display: none; }
.account-faq summary svg { flex-shrink: 0; width: 16px; height: 16px; color: #9292a2; }
.account-faq details[open] summary svg { transform: rotate(180deg); }
.account-faq p { margin: 12px 0 0; color: #a5a5b4; font-size: 11px; line-height: 2.1; }
.account-spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-inline-start-color: transparent; border-radius: 50%; animation: account-spin .65s linear infinite; }
.account-dialog button:focus-visible, .account-main button:focus-visible, .app-header button:focus-visible { outline: 2px solid #c7c7d4; outline-offset: 4px; }
@keyframes account-spin { to { transform: rotate(360deg); } }
@keyframes account-dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) {
  .account-settings > button:hover, .account-identity > button:hover { background: #242429; }
  .app-header .header-icon:hover { background: #222226; }
}
@media (max-width: 800px) {
  body button svg:not(.google-mark), body nav svg { stroke-width: 2; }
  .app-header-inner { gap: 8px; padding-inline: 14px; }
  .app-header .brand { gap: 7px; }
  .app-header .search-button { display: grid; flex: 0 0 40px; width: 40px; height: 40px; min-width: 40px; margin-right: auto; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; }
  .app-header .search-button span { display: none; }
  .header-actions { gap: 5px; }
  .app-header .header-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .app-header .profile-button { height: 38px; min-width: 38px; }
  .app-header .profile-button.is-guest { min-width: 57px; padding-inline: 14px; font-size: 11px; }
  .app-header .profile-button.is-member { width: 38px; font-size: 15px; }
  .mobile-nav button { min-height: 48px; font-size: 10px; }
  .mobile-nav svg { width: 22px; height: 22px; }
  .mobile-nav button.active svg { fill: none; }
  .account-container { padding: 25px 16px 34px; }
  .account-page-heading { margin-bottom: 22px; }
  .account-page-heading h1 { font-size: 24px; }
  .account-page-heading > span { display: none; }
  .account-layout { grid-template-columns: 1fr; gap: 20px; }
  .account-identity { position: relative; align-items: flex-start; min-height: 132px; padding: 23px 99px 23px 20px; text-align: right; }
  .account-avatar { position: absolute; right: 20px; top: 25px; width: 60px; height: 60px; font-size: 25px; }
  .account-identity h2 { margin-top: 0; font-size: 18px; }
  .account-identity > p { font-size: 11px; text-align: left; }
  .account-status { margin-top: 10px; font-size: 9px; }
  .account-identity > button { width: auto; min-height: 32px; margin-top: 12px; padding: 0; background: none; font-size: 10px; }
  .account-membership { padding: 22px; }
  .account-membership-heading { margin-bottom: 18px; }
  .account-membership h2 { font-size: 22px; }
  .account-membership-copy { font-size: 11px; }
  .account-membership-bottom { flex-direction: column; align-items: stretch; gap: 17px; margin-top: 23px; }
  .account-membership-bottom > span { font-size: 11px; }
  .account-membership-bottom button { min-height: 46px; font-size: 12px; }
  .account-dialog { inset: auto 0 0; width: 100%; max-width: 100%; max-height: min(88dvh, calc(100dvh - 28px)); margin: 0; padding: 0 24px calc(26px + env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; transform: translateY(var(--account-drag-y, 0px)); }
  .account-dialog[open] { animation: account-sheet-in .25s cubic-bezier(.2, .75, .3, 1); }
  .account-drag-handle { display: grid; height: 27px; place-items: center; margin-inline: -24px; touch-action: none; cursor: grab; }
  .account-drag-handle span { width: 36px; height: 4px; border-radius: 999px; background: #494951; }
  .account-dialog-topbar { height: 43px; margin-bottom: 22px; }
  .account-dialog h1 { font-size: 23px; }
  .account-dialog-topbar > button { width: 38px; height: 38px; flex-basis: 38px; }
  .auth-description { margin-bottom: 24px; font-size: 12px; }
  .account-form input { font-size: 16px; }
}
@keyframes account-sheet-in { from { transform: translateY(45px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 360px) {
  .app-header-inner { gap: 3px; padding-inline: 10px; }
  .app-header .brand span { font-size: 11px; }
  .header-actions { gap: 3px; }
  .account-dialog { padding-inline: 20px; }
  .account-dialog h1 { font-size: 21px; }
}

.auth-password-field{display:flex;align-items:center;gap:8px;background:var(--account-input,#24252c);border-radius:14px;padding:0 14px;min-height:50px}.auth-password-field input{flex:1;min-width:0;background:transparent!important;border:0!important;box-shadow:none!important;margin:0!important;padding:13px 0!important}.auth-password-field button{flex:none;background:transparent;color:#c5cad5;border:0;padding:10px 0;font:inherit;font-size:11px;min-width:42px}.auth-password-field:focus-within{box-shadow:inset 0 0 0 1px #727889}

.account-dialog{box-sizing:border-box}.account-dialog-content{min-width:0}
