/* صفحتا الدخول و«حسابي» (25 أكتوبر): بطاقة واحدة هادئة بألوان الموقع وحقوله (.field و.input من styles.css) */
.acc { padding-block: calc(var(--header-h) + 32px) 96px; min-height: 70vh; }
.acc-wrap { max-width: 520px; }
.acc-wrap--wide { max-width: 760px; }
.acc-card { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.acc-card + .acc-card { margin-top: 20px; }
.acc-card h1 { font-family: var(--font-display); font-size: var(--fs-title); line-height: 1.3; }
.acc-card h2 { font-family: var(--font-display); font-size: var(--fs-sub); margin-bottom: 12px; }
.acc-head { margin-bottom: 24px; }
.acc-head h1 { font-family: var(--font-display); font-size: var(--fs-title); line-height: 1.3; }
.acc-lead { margin-top: 10px; color: var(--text-2); }
.acc .form { display: grid; gap: 18px; margin-top: 24px; }
.acc-submit { width: 100%; }
.acc-code { font-size: 1.5rem; letter-spacing: 0.4em; text-align: center; }
.acc-sent { color: var(--text); }
.acc-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.acc-link { min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--text-2); font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.acc-link:hover:not(:disabled) { color: var(--text); }
.acc-link:disabled { cursor: default; text-decoration: none; opacity: 0.7; }
.acc-danger { color: var(--danger); }
.acc-note { margin-top: 20px; color: var(--text-3); font-size: var(--fs-small); line-height: 1.7; }
.acc-off { margin-top: 20px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--text-2); }
.acc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acc-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.acc-item > div:first-child { display: grid; gap: 2px; min-width: 0; }
.acc-item b { overflow-wrap: anywhere; }
.acc-item span, .acc-item small { color: var(--text-2); font-size: var(--fs-small); overflow-wrap: anywhere; }
.acc-item-acts { display: flex; align-items: center; gap: 12px; }
.acc-empty { color: var(--text-2); }
.acc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.acc-loading { margin-top: 12px; color: var(--text-2); }
.acc-status { margin-top: 16px; color: var(--text-2); }
.acc-status:empty { display: none; }
.acc-row-start { margin-top: 16px; }
/* المرحلة 2 من خطة-تحليل-ونقد-الموقع.md: بطاقة «أضف نواة إلى شاشتك الرئيسية» (account.js) */
.acc-install-how { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--text); line-height: 1.8; }

/* 30 أكتوبر (خطة-التطوير-حبة-حبة.md، الجزء 7، بمهارات apple-design وios-hig-design وemil-design-eng) */
/* 7.1: البطاقة أقرب إلى أعلى الجوال، والإرشاد يختفي حين يظهر الخطأ مكانه، و✓ حين يكتمل الرقم */
@media (max-width: 640px) { .acc { padding-block-start: calc(var(--header-h) + 8px); } }
#g-phone.has-error .hint { display: none; }
.acc .field.is-ok > label::after { content: ""; display: inline-block; width: 18px; height: 18px; margin-inline-start: 8px; vertical-align: -3px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230B1022' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
#acc-phone { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
/* 7.2: خانة الرمز بأرقام ثابتة العرض ونقاط مكانها، واهتزازة قصيرة للرمز الخطأ */
.acc-code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }
.acc-code::placeholder { color: var(--text-3); letter-spacing: 0.4em; }
.acc-code.is-shake { animation: acc-shake 0.36s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes acc-shake { 15%, 75% { translate: -6px 0; } 35%, 55% { translate: 6px 0; } }
/* 7.4: رأس كل بطاقة في حسابي بأيقونة في مربع ملوّن كقوائم iOS */
.acc-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.acc-card-head h2 { margin: 0; }
.acc-card-head [data-icon] { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .acc-code.is-shake { animation: none; } }
