/* پنلِ AM House با هویتِ lemonai: Estedad، Navy #081F3C، Blue #2F74DB، Sky #4E91E6، Ice #F4F7FF، Mist #DCE8FB، Ink #0D1220 */
@font-face { font-family: Estedad; src: url(/Estedad-var.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --navy: #081F3C; --blue: #2F74DB; --sky: #4E91E6; --ice: #F4F7FF; --mist: #DCE8FB; --ink: #0D1220; --muted: #52607A; --red: #B4232A; --line: #CFDCF3; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ice); color: var(--ink); font: 400 15px/1.85 Estedad, Tahoma, sans-serif; }
[hidden] { display: none !important; }
h1, h2 { color: var(--navy); line-height: 1.5; }
h1 { font-weight: 800; font-size: 22px; margin: 6px 0; }
h2 { font-weight: 700; font-size: 17px; margin: 4px 0 12px; }
a { color: var(--blue); }
.muted { color: var(--muted); }
small { color: var(--muted); font-weight: 400; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.card { background: #fff; border: 1px solid var(--mist); border-radius: 20px; padding: 20px; box-shadow: 0 8px 28px rgba(8, 31, 60, .06); }
.btn { font: inherit; font-weight: 600; border: 0; border-radius: 14px; padding: 10px 18px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #2766c6; }
.btn.primary:disabled { background: #9DB8E2; cursor: default; }
.btn.ghost { background: var(--ice); color: var(--navy); border: 1px solid var(--line); }
.btn.link { background: none; color: var(--blue); min-height: 36px; }
.btn.link:disabled { color: #9aa7bd; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #f0c9cb; }
.btn.wide { width: 100%; }
input, textarea, select { font: inherit; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--sky); }
textarea { min-height: 96px; resize: vertical; line-height: 1.9; }
label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 12px; font-size: 14px; }
label input, label textarea { margin-top: 6px; font-weight: 400; }
.err { color: var(--red); min-height: 1.5em; margin: 10px 0 0; font-size: 14px; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; }
.boot img { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ورود */
.login { min-height: 100vh; display: grid; place-content: center; padding: 24px; gap: 14px; }
.login-card { width: min(380px, 92vw); text-align: center; padding: 28px 24px; }
.login-card .wordmark { display: block; margin: 0 auto 8px; height: 36px; width: auto; }
.login-card .mascot { display: block; margin: 4px auto 0; animation: bob 2.4s ease-in-out infinite; }
.login-card form { margin-top: 8px; }
.code { text-align: center; font-size: 26px; letter-spacing: 10px; font-family: Estedad, monospace; margin: 8px 0 12px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; }

/* پنل */
.app { max-width: 1080px; margin: 0 auto; padding: 0 16px 80px; }
.top { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.top .wordmark { height: 26px; width: auto; }
.site { font-weight: 700; color: var(--navy); border-inline-start: 1px solid var(--line); padding-inline-start: 10px; }
.grow { flex: 1; }
.pubbar { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; border-radius: 20px; padding: 12px 16px; margin-bottom: 14px; position: sticky; top: 8px; z-index: 5; }
.pubbar .pub-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.6; }
.pubbar .muted { color: #B9CBEA; font-size: 13px; white-space: pre-line; }
.pubbar.dirty { background: var(--blue); }
.pubbar.dirty .btn.primary { background: #fff; color: var(--blue); }
.pubbar .btn.primary { background: var(--sky); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.tabs button { font: inherit; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 8px 16px; white-space: nowrap; cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--navy); color: #fff; border-color: var(--navy); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.saved { color: #1f7a4d; font-size: 14px; }
.item { border: 1px solid var(--mist); border-radius: 16px; padding: 14px; margin-bottom: 12px; background: #FBFCFF; }
.item-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.item-h b { flex: 1; color: var(--navy); }
.doc-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; }
.photo { width: 120px; aspect-ratio: 4 / 5; border-radius: 14px; background: var(--mist) center / cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; cursor: pointer; border: 1px dashed var(--line); }
.svc-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 14px; align-items: start; }
.svc-list { list-style: none; margin: 0; padding: 8px; position: sticky; top: 96px; }
.svc-list button { font: inherit; width: 100%; text-align: start; background: none; border: 0; border-radius: 12px; padding: 9px 12px; color: var(--ink); cursor: pointer; }
.svc-list button[aria-current='true'] { background: var(--ice); color: var(--blue); font-weight: 700; }
.svc-img { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.svc-img .photo { width: 140px; aspect-ratio: 3 / 4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 400; margin: 0; cursor: pointer; }
.chip input { width: auto; margin: 0; }
.q { border-bottom: 1px solid var(--mist); padding: 12px 0; }
.q:last-child { border-bottom: 0; }
.q .t { color: var(--muted); font-size: 12px; }
.q .qq { font-weight: 700; color: var(--navy); }
.q details { color: var(--muted); font-size: 14px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 14px; z-index: 20; max-width: 92vw; box-shadow: 0 10px 30px rgba(8, 31, 60, .25); }
.toast.bad { background: var(--red); }
.empty { text-align: center; color: var(--muted); padding: 24px 0; }
.empty img { display: block; margin: 0 auto 8px; }
@media (max-width: 760px) {
  .row2, .svc-wrap { grid-template-columns: 1fr; }
  .svc-list { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .svc-list li { flex: none; }
  .svc-list button { white-space: nowrap; }
  .doc-row { grid-template-columns: 1fr; }
  .top .site { display: none; }
  .pubbar { flex-wrap: wrap; }
  .pubbar .btn { width: 100%; }
}
.phones { display: grid; gap: 10px; }
.phone-btn { flex-wrap: wrap; gap: 8px; }
.phone-btn small { color: #DCE8FB; width: 100%; font-size: 12px; margin-top: -4px; }
