/* Phone-app specific tweaks on top of the desktop stylesheet */
html, body { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
input, select, textarea, button { font-size: 16px; } /* prevents iOS zoom on focus */

/* Online mode: cloud status chip + account panel (cloud-ui.js) */
/* small floating pill in the bottom-left corner: never covers the header (the desktop button styles are reset) */
.cloud-chip { position: fixed; z-index: 50; top: auto; right: auto; bottom: calc(env(safe-area-inset-bottom) + 12px); left: 12px;
  width: auto !important; min-width: 0 !important; height: auto !important; min-height: 32px !important; max-width: 60vw; margin: 0 !important;
  padding: 5px 12px !important; border-radius: 999px !important; font-size: 12.5px !important; font-weight: 600; line-height: 1.3;
  border: 1px solid #ddd3ea; background: #fff; color: #4b3a5c; box-shadow: 0 3px 10px #2a173826; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cloud-chip[data-state="ok"] { background: #eefaf2; border-color: #b8e3c6; color: #1f6b3a; }
.cloud-chip[data-state="warn"] { background: #fff4e5; border-color: #f0c98a; color: #8a4b00; }
.cloud-chip[data-state="offline"] { background: #f1f1f4; color: #555; }
.cloud-chip[data-state="busy"] { background: #f4f0fb; }
.cloud-panel { width: min(440px, 94vw); max-height: 88vh; overflow: auto; padding: 18px; }
.cloud-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cloud-head h2 { margin: 0; }
.cloud-close { flex: 0 0 auto; width: 44px; min-width: 44px; height: 44px; padding: 0; font-size: 24px; line-height: 1; background: transparent; color: inherit; border: 0; box-shadow: none; }
.cloud-form { display: grid; gap: 10px; }
.cloud-form label { display: grid; gap: 4px; }
.cloud-error:not(:empty) { color: #a32020; }
.cloud-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 12px; }
.cloud-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cloud-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cloud-actions button, .cloud-form button { min-height: 44px; }
.cloud-conflicts ul { padding-inline-start: 18px; }
.cloud-conflicts li { margin-bottom: 10px; }
#cloud-staff-hint { display: none; }
body.cloud-staff #cloud-staff-hint { display: block; }
body.cloud-staff #recovery-open, body.cloud-staff #owner-code-recovery { display: none !important; }

/* Persian file picker (mobile-ui.js) instead of the WebView's English "Choose File / No file chosen" */
.fa-file-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }
.fa-file-btn { width: auto !important; min-height: 40px; margin: 4px 0 4px 8px; padding: 6px 14px; }
.fa-file-name { font-size: 13px; color: #6b5b78; overflow-wrap: anywhere; }

/* App-like bottom tab bar on phones (mobile-ui.js turns the stretched SVG labels into icon + plain text) */
@media (max-width: 900px) {
  body.has-tabs { padding-bottom: calc(env(safe-area-inset-bottom) + 72px) !important; }
  #workspace-nav { position: fixed !important; z-index: 45; left: 0; right: 0; bottom: 0; top: auto !important; width: 100% !important;
    display: flex !important; flex-wrap: nowrap; gap: 0 !important; overflow-x: auto; overflow-y: hidden; margin: 0 !important;
    padding: 4px 4px calc(env(safe-area-inset-bottom) + 4px) !important; background: #fff; border-top: 1px solid #e8deef;
    box-shadow: 0 -4px 16px #2a17381a; border-radius: 0 !important; scrollbar-width: none; }
  #workspace-nav::-webkit-scrollbar { display: none; }
  #workspace-nav [data-view] { flex: 1 0 64px; min-width: 64px !important; max-width: 96px; min-height: 56px !important; height: auto !important;
    display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin: 0 !important;
    padding: 4px 2px !important; border: 0 !important; border-radius: 12px !important; background: transparent !important; box-shadow: none !important;
    color: #6b5b78 !important; font-size: 11px !important; line-height: 1.2; white-space: nowrap; }
  #workspace-nav [data-view][hidden] { display: none !important; }
  #workspace-nav [data-view].active { color: #6d28d9 !important; background: #f1eafc !important; font-weight: 700; }
  #workspace-nav .tab-icon { font-size: 20px; line-height: 1; }
  body.has-tabs .cloud-chip { bottom: calc(env(safe-area-inset-bottom) + 80px); }
}

/* Phone: one normal page scroll instead of the desktop's fixed-height panes.
   The desktop layout locks the page to the window height with small inner scroll areas;
   on a phone the on-screen keyboard then hides the form fields (device test 2026-11-24). */
@media (max-width: 900px) {
  html { height: auto !important; overflow: visible !important; }
  body { height: auto !important; min-height: 100vh; min-height: 100dvh; overflow: visible !important; display: block !important; }
  body > main, #workspace, #workspace > .card, #workspace > .workspace-extra,
  #appointments-view, #appointments-view > .card, #appointments, #summary,
  #auth, #license, #setup-team, #setup-summary {
    height: auto !important; max-height: none !important; overflow: visible !important; flex: none !important;
  }
}


/* ---- Customer club (باشگاه مشتریان), 2026-11-25 ---- */
.club-pane h2 { margin: 0 0 10px; }
.club-pane h3 { margin: 18px 0 6px; font-size: 1rem; }
.club-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.club-stat { background: #f5f3ff; border-radius: 12px; padding: 8px 4px; text-align: center; }
.club-stat b { display: block; font-size: 1.25rem; color: #5b21b6; }
.club-stat span { font-size: .8rem; color: #555; }
.club-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.club-tabs button { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; border-radius: 999px !important; padding: 6px 12px !important; background: #ede9fe !important; color: #4c1d95 !important; border: 0 !important; box-shadow: none !important; font: inherit; font-size: .85rem !important; line-height: 1.6 !important; }
.club-stat { padding: 4px !important; }
.club-stat b { font-size: 1.1rem !important; line-height: 1.4; }
.club-tabs button.active { background: #6d28d9 !important; color: #fff !important; }
.club-item, .club-member { border: 1px solid #e5e7eb; border-radius: 14px; padding: 10px 12px; margin: 8px 0; background: #fff; }
.club-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.club-badge { font-size: .75rem; border-radius: 999px; padding: 2px 8px; background: #ede9fe; color: #5b21b6; }
.club-badge.kind-birthday { background: #fce7f3; color: #9d174d; }
.club-badge.kind-thanks { background: #dcfce7; color: #166534; }
.club-badge.kind-reminder { background: #e0f2fe; color: #075985; }
.club-badge.kind-winback { background: #fef3c7; color: #92400e; }
.club-level { font-size: .75rem; color: #6b7280; margin-inline-start: auto; }
.club-level.lvl-gold { color: #b45309; font-weight: bold; }
.club-level.lvl-silver { color: #475569; font-weight: bold; }
.club-reason { font-size: .85rem; color: #555; margin: 4px 0; }
.club-text { width: 100%; box-sizing: border-box; margin: 6px 0; font: inherit; font-size: .95rem; border-radius: 10px; }
.club-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.club-actions button { flex: 1 1 auto; min-height: 42px; }
.club-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: #444; margin: 6px 0; }
.club-consent { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-size: .9rem; flex: 1 1 100%; white-space: nowrap; margin: 4px 0 !important; }
.club-consent input[type=checkbox] { width: 22px !important; height: 22px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; flex: 0 0 auto !important; }
.club-help { font-size: .85rem; color: #555; line-height: 1.7; }
.club-empty { text-align: center; color: #666; padding: 24px 0; }
.club-warn { color: #b45309; font-size: .85rem; }
.club-ok { color: #15803d; font-size: .9rem; }
.club-auto { color: #6d28d9; }
.club-msg { font-size: .85rem; color: #333; margin: 4px 0 0; white-space: pre-wrap; }
.club-toast { position: sticky; top: 4px; z-index: 5; background: #1f2937; color: #fff; border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
.club-form label { display: block; margin: 8px 0; }
.club-form input, .club-form select, .club-form textarea { width: 100%; box-sizing: border-box; font: inherit; }
.club-form fieldset { border: 1px solid #e5e7eb; border-radius: 12px; margin: 8px 0; padding: 6px 10px; }
.club-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.club-search input { width: 100%; box-sizing: border-box; }
.log-failed { border-color: #fca5a5; }

/* ---- Phone theme 2026-11-27: modern salon-app look (Vazirmatn, violet app bar, soft cards) ---- */
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 600 800; font-display: swap; }
@media (max-width: 900px) {
  :root { --font-ui: 'Vazirmatn', Tahoma, Arial, sans-serif; --accent: #7c3aed; --bg: #f6f4fb; --surface: #fff; --text: #1f1830;
    --muted: #6f6780; --line: #ebe6f3; --radius: 16px; --shadow: 0 1px 2px #1f18300a, 0 6px 20px #1f183012; }
  body, input, select, textarea, button, h1, h2, h3, .brand,
  #workspace-nav button, #workspace > .bar h1, #workspace > .bar #logout, #workspace > .bar .official-clock { font-family: var(--font-ui) !important; }
  body { background: var(--bg) !important; color: var(--text); font-size: 15px; line-height: 1.8; }
  /* app bar */
  body > header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 0 !important; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px !important; min-height: 56px;
    background: linear-gradient(135deg, #6d28d9, #9333ea) !important; color: #fff !important; border: 0 !important; box-shadow: 0 2px 10px #4c1d9540; }
  body > header .brand, body > header #brand-name { color: #fff !important; font-size: 18px !important; font-weight: 700; margin: 0; }
  body > header .brand img { width: 32px; height: 32px; border-radius: 10px; background: #fff; object-fit: contain; }
  body > header > span { font-size: 12px; opacity: .85; color: #fff !important; }
  main { padding: 12px 12px 0 !important; }
  /* trial banner: one slim line */
  #trial-banner { margin: 0 0 10px !important; padding: 8px 12px !important; border-radius: 12px !important; font-size: 12.5px !important; line-height: 1.7;
    background: #fff7e6 !important; border: 1px solid #f6dca6 !important; color: #7a4b00 !important; }
  /* cards */
  .card, #workspace > .workspace-extra { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important; padding: 16px !important; margin-bottom: 12px !important; }
  .card h1, .card h2 { font-size: 18px !important; font-weight: 700; margin: 0 0 10px; color: var(--text); }
  .card h3 { font-size: 15.5px !important; font-weight: 700; }
  /* workspace bar: title + clock + logout in one compact row */
  #workspace > .bar { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 4px 2px 10px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  #workspace > .bar h1 { font-size: 17px !important; font-weight: 700 !important; margin: 0 !important; }
  #workspace > .bar .official-clock { font-size: 12px !important; color: var(--muted) !important; }
  #workspace > .bar #logout { margin-inline-start: auto; width: auto !important; min-height: 36px !important; padding: 4px 14px !important; border-radius: 999px !important;
    background: #fff !important; color: #6d28d9 !important; border: 1px solid #ddd0f5 !important; box-shadow: none !important; font-size: 13px !important; }
  /* buttons */
  button:not(.cloud-chip):not([data-view]):not(.cloud-close):not([data-club-tab]) { border-radius: 12px !important; min-height: 46px; font-weight: 600; }
  button:not(.secondary):not(.cloud-chip):not([data-view]):not(.cloud-close):not([data-club-tab]):not(#logout) {
    background: linear-gradient(135deg, #7c3aed, #9333ea) !important; color: #fff !important; border: 0 !important; box-shadow: 0 4px 12px #7c3aed33 !important; }
  button.secondary { background: #f3eefc !important; color: #5b21b6 !important; border: 1px solid #e4d8f7 !important; box-shadow: none !important; }
  button:disabled { opacity: .55; }
  /* form fields */
  label { font-size: 13.5px; color: #4a4158; font-weight: 500; }
  input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea {
    border-radius: 12px !important; border: 1px solid #e2dcec !important; background: #fbfaff !important; min-height: 46px; padding: 8px 12px !important; color: var(--text); }
  input:focus, select:focus, textarea:focus { outline: none !important; border-color: #a78bfa !important; box-shadow: 0 0 0 3px #ede4fe !important; background: #fff !important; }
  input[type=checkbox] { accent-color: #7c3aed; }
  .notice { border-radius: 12px; }
  /* dashboard stat tiles and tables */
  #summary { border-radius: var(--radius) !important; }
  table { border-radius: 12px; overflow: hidden; }
  th { background: #f6f2fd !important; color: #4c1d95; font-weight: 700; }
  /* bottom tab bar */
  #workspace-nav { border-top: 1px solid #ece6f5 !important; box-shadow: 0 -6px 20px #2a173814 !important; }
  #workspace-nav [data-view].active { background: #f1eafc !important; color: #6d28d9 !important; }
  #workspace-nav .tab-label { font-family: var(--font-ui); font-weight: 600; }
  /* club stat tiles in the new palette */
  .club-stat { background: linear-gradient(160deg, #f7f2ff, #efe7fd) !important; border: 1px solid #e9dffa; }
}


/* theme fixes after device check 2026-11-27: select text was clipped, day buttons wrapped */
@media (max-width: 900px) {
  input:not([type=checkbox]):not([type=radio]):not([type=color]), select { height: auto !important; line-height: 1.6 !important; padding-top: 10px !important; padding-bottom: 10px !important; }
  select { padding-inline-end: 30px !important; text-overflow: ellipsis; }
  button.secondary { white-space: nowrap; padding-inline: 12px !important; }
  #trial-banner { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---- Phone theme v2 2026-11-27: feminine beauty-salon look matching the SalonYar logo (plum + rose) ---- */
@media (max-width: 900px) {
  :root { --plum: #6e1f5e; --plum2: #8f2d78; --rose: #e2558d; --rose-soft: #fde8f0; --blush: #fff6f9;
    --accent: #b0397d; --bg: #fff6f9; --text: #2b1830; --muted: #7d6680; --line: #f3dbe7;
    --radius: 20px; --shadow: 0 2px 4px #6e1f5e0d, 0 10px 28px #b0397d1c; }
  body { background:
      radial-gradient(circle at 100% 0%, #ffd9e8 0, transparent 38%),
      radial-gradient(circle at 0% 35%, #f3e1ff 0, transparent 32%),
      radial-gradient(circle at 100% 75%, #ffe4ef 0, transparent 30%),
      var(--blush) !important; background-attachment: fixed !important; }
  /* app bar: plum to rose with soft decorative circles */
  body > header { background:
      radial-gradient(circle at 12% -30%, #ffffff33 0, transparent 45%),
      radial-gradient(circle at 85% 140%, #ffffff26 0, transparent 40%),
      linear-gradient(120deg, var(--plum) 0%, var(--plum2) 45%, var(--rose) 100%) !important;
    border-radius: 0 0 22px 22px !important; box-shadow: 0 6px 18px #6e1f5e40 !important; min-height: 62px; }
  body > header .brand, body > header #brand-name { font-size: 19px !important; letter-spacing: 0; text-shadow: 0 1px 2px #00000026; }
  body > header .brand::before { content: '🌸'; font-size: 20px; margin-inline-end: 6px; }
  #trial-banner { background: linear-gradient(90deg, #fff4e0, #ffeef4) !important; border: 1px solid #f5d7a8 !important; color: #7a4600 !important; text-align: center; }
  /* cards: white, very round, rose shadow, thin rose accent line on top */
  .card, #workspace > .workspace-extra { border: 1px solid #f6e1ec !important; border-radius: var(--radius) !important; box-shadow: var(--shadow) !important;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #f7c6dc, #e6cff7) border-box !important; border-top: 3px solid transparent !important; }
  .card h1, .card h2 { color: var(--plum) !important; display: flex; align-items: center; gap: 8px; }
  .card h1::before, .card h2::before { content: ''; width: 8px; height: 22px; border-radius: 6px; background: linear-gradient(var(--rose), var(--plum2)); flex: 0 0 auto; }
  #workspace > .bar h1 { color: var(--plum) !important; }
  #workspace > .bar #logout { color: var(--plum) !important; border-color: #f0cfe0 !important; }
  /* buttons: rose gradient pills */
  button:not(.secondary):not(.cloud-chip):not([data-view]):not(.cloud-close):not([data-club-tab]):not(#logout) {
    background: linear-gradient(120deg, var(--plum2), var(--rose)) !important; box-shadow: 0 6px 16px #e2558d40 !important; border-radius: 16px !important; }
  button.secondary { background: var(--rose-soft) !important; color: var(--plum) !important; border: 1px solid #f6cfe0 !important; border-radius: 14px !important; }
  input:focus, select:focus, textarea:focus { border-color: #ec9bbf !important; box-shadow: 0 0 0 3px #fde3ee !important; }
  input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea { background: #fffafc !important; border-color: #f0dce7 !important; }
  input[type=checkbox] { accent-color: var(--rose); }
  th { background: #fdeef5 !important; color: var(--plum) !important; }
  /* bottom tab bar: frosted white with rose active pill */
  #workspace-nav { background: #ffffffeb !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #f6dfeb !important; border-radius: 22px 22px 0 0 !important; box-shadow: 0 -8px 24px #6e1f5e1a !important; }
  #workspace-nav [data-view] { color: #8a7088 !important; }
  #workspace-nav [data-view].active { background: linear-gradient(135deg, #fde3ee, #f3e3fb) !important; color: var(--plum) !important; }
  /* club colours follow the brand */
  .club-stat { background: linear-gradient(160deg, #fff0f6, #f6ecfd) !important; border-color: #f6dbe9 !important; }
  .club-stat b { color: var(--plum) !important; }
  .club-tabs button.active { background: linear-gradient(120deg, var(--plum2), var(--rose)) !important; color: #fff !important; }
  .club-tabs button { background: var(--rose-soft) !important; color: var(--plum) !important; }
  /* dashboard greeting card (mobile-ui.js) */
  #salon-hero { position: relative; overflow: hidden; margin: 0 0 12px; padding: 18px 18px 16px; border-radius: 22px; color: #fff;
    background: radial-gradient(circle at 15% 120%, #ffffff30 0, transparent 45%), radial-gradient(circle at 95% -20%, #ffffff2e 0, transparent 40%),
      linear-gradient(125deg, var(--plum) 0%, var(--plum2) 50%, var(--rose) 100%); box-shadow: 0 10px 26px #b0397d40; }
  #salon-hero[hidden] { display: none; }
  #salon-hero .hero-hi { font-size: 19px; font-weight: 700; margin: 0 0 2px; }
  #salon-hero .hero-date { font-size: 13px; opacity: .9; }
  #salon-hero .hero-flower { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 46px; opacity: .9; }
  #salon-hero .hero-tip { margin-top: 10px; display: inline-block; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; background: #ffffff2e; }
  .cloud-chip { border-color: #f3d3e2 !important; }
}


/* dashboard quick-action tiles (mobile-ui.js quickActions), 2026-11-27 */
@media (max-width: 900px) {
  #quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; }
  #quick-actions[hidden] { display: none; }
  #quick-actions .q-tile { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 104px !important;
    margin: 0 !important; padding: 10px 4px !important; border-radius: 20px !important; border: 1px solid #ffffffb3 !important; color: #3b1d3a !important;
    box-shadow: 0 6px 16px #b0397d1f !important; white-space: normal; text-align: center; }
  #quick-actions .q-icon { width: 46px; height: 46px; display: grid; place-items: center; font-size: 26px; border-radius: 15px; background: #ffffffcc; box-shadow: 0 3px 8px #6e1f5e1a; margin-bottom: 4px; }
  #quick-actions .q-tile b { font-size: 13.5px; font-weight: 700; line-height: 1.5; }
  #quick-actions .q-tile small { font-size: 10.5px; color: #7d6680; line-height: 1.4; font-weight: 500; }
  #quick-actions .q-rose { background: linear-gradient(150deg, #ffe1ec, #ffc6db) !important; }
  #quick-actions .q-lilac { background: linear-gradient(150deg, #f1e6ff, #e0ccfb) !important; }
  #quick-actions .q-peach { background: linear-gradient(150deg, #ffeedd, #ffd4b8) !important; }
  #quick-actions .q-mint { background: linear-gradient(150deg, #e2f8ef, #c4ecdb) !important; }
  #quick-actions .q-sky { background: linear-gradient(150deg, #e3f1ff, #c9e2fb) !important; }
  #quick-actions .q-sand { background: linear-gradient(150deg, #fff6d9, #fbe6a8) !important; }
  #quick-actions .q-tile:active { transform: scale(.97); }
}

/* home = tiles; the dashboard figures open from the "داشبورد" tile (owner request 2026-11-27) */
@media (max-width: 900px) {
  body.home-tiles #summary, body.home-tiles #dashboard-intro, body.home-tiles #stats-back { display: none !important; }
  body.home-stats #quick-actions { display: none !important; }
  #stats-back { display: block; width: auto !important; min-height: 40px !important; margin: 0 0 12px !important; padding: 6px 16px !important; border-radius: 999px !important; font-size: 13.5px !important; }
  body:not(.home-stats) #stats-back { display: none !important; }
  #quick-actions .q-plum { background: linear-gradient(150deg, #f6dcef, #e9b9dd) !important; }
}

/* layout v3 (owner request 2026-11-27): vivid tiles with white text, page headers in the tile colour,
   no "پنل مدیر" title, clock inside the greeting card, trial notice + logout at the bottom */
@media (max-width: 900px) {
  #workspace > .bar h1 { display: none !important; }
  #workspace > .bar { padding: 0 !important; min-height: 0 !important; margin: 0 !important; }
  .g-plum   { --g1: #8f2d78; --g2: #e2558d; }  .g-pink  { --g1: #db2777; --g2: #f472b6; }
  .g-purple { --g1: #7e22ce; --g2: #a855f7; }  .g-coral { --g1: #e11d48; --g2: #fb923c; }
  .g-indigo { --g1: #4338ca; --g2: #818cf8; }  .g-teal  { --g1: #0f766e; --g2: #2dd4bf; }
  .g-amber  { --g1: #b45309; --g2: #f59e0b; }  .g-green { --g1: #047857; --g2: #34d399; }
  .g-red    { --g1: #be123c; --g2: #f87171; }  .g-violet{ --g1: #6d28d9; --g2: #c084fc; }
  .g-sky    { --g1: #0369a1; --g2: #38bdf8; }
  #quick-actions .q-tile { background: radial-gradient(circle at 85% 0%, #ffffff40 0, transparent 45%), linear-gradient(145deg, var(--g1), var(--g2)) !important;
    color: #fff !important; border: 0 !important; box-shadow: 0 8px 18px color-mix(in srgb, var(--g1) 35%, transparent) !important; }
  #quick-actions .q-tile b { color: #fff !important; text-shadow: 0 1px 2px #0000002e; }
  #quick-actions .q-tile small { color: #ffffffe0 !important; }
  #quick-actions .q-icon { background: #ffffff38 !important; box-shadow: none !important; }
  /* page header in the colour of its tile */
  .page-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 14px 16px; border-radius: 20px; color: #fff;
    background: radial-gradient(circle at 10% -40%, #ffffff40 0, transparent 50%), linear-gradient(135deg, var(--g1), var(--g2));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--g1) 30%, transparent); }
  .page-head[hidden] { display: none !important; }
  .page-head b { font-size: 18px; font-weight: 700; }
  .page-head .ph-icon { width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; border-radius: 13px; background: #ffffff38; }
  /* Iran clock inside the greeting card */
  #salon-hero .official-clock { display: block; margin-top: 4px; font-size: 13px !important; color: #fff !important; opacity: .95; }
  /* trial notice + logout at the bottom of the page */
  #phone-footer { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 18px 0 8px; }
  #phone-footer:empty { display: none; }
  #phone-footer #trial-banner { margin: 0 !important; white-space: normal; }
  #phone-footer #logout { align-self: center; width: auto !important; min-height: 40px !important; padding: 6px 28px !important; border-radius: 999px !important;
    background: #fff !important; color: #8f2d78 !important; border: 1px solid #f0cfe0 !important; box-shadow: 0 3px 10px #b0397d1a !important; font-size: 14px !important; }
}

/* fix 2026-11-27: the general button rule (which contains :not(#logout), i.e. ID weight) painted every tile the same;
   :not(#x) gives these rules two-ID weight so each tile keeps its own colour */
@media (max-width: 900px) {
  #quick-actions .q-tile:not(#x) { background: radial-gradient(circle at 85% 0%, #ffffff40 0, transparent 45%), linear-gradient(145deg, var(--g1), var(--g2)) !important;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--g1) 35%, transparent) !important; }
  #phone-footer { margin-bottom: 64px; }   /* keep logout clear of the cloud status pill */
}

/* bottom bar = Home + Logout only (owner request 2026-11-27); the salon accent-colour option is hidden (fixed brand theme) */
@media (max-width: 900px) {
  body.tiles-nav #workspace-nav [data-view]:not([data-view="dashboard"]) { display: none !important; }
  body.tiles-nav #workspace-nav { justify-content: center; gap: 12px !important; overflow: visible; }
  body.tiles-nav #workspace-nav [data-view="dashboard"], #workspace-nav #logout { flex: 0 1 140px !important; max-width: 160px !important; }
  #workspace-nav #logout:not(#x) { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin: 0 !important;
    min-height: 56px !important; height: auto !important; padding: 4px 2px !important; border: 0 !important; border-radius: 12px !important;
    background: transparent !important; box-shadow: none !important; color: #8a7088 !important; font-size: 11px !important; line-height: 1.2; white-space: nowrap; }
  #workspace-nav #logout .tab-icon { font-size: 20px; line-height: 1; }
  #setup-accent-field, label:has(> input[type=color]), label:has(> input[name=accent]) { display: none !important; }
}

/* 2026-11-27 owner requests: Home and Logout look alike; short trial pill (tap for details); inner pages in the colour of their tile */
@media (max-width: 900px) {
  body.tiles-nav #workspace-nav [data-view="dashboard"]:not(#x), #workspace-nav #logout:not(#x) {
    flex: 0 1 132px !important; max-width: 140px !important; min-height: 58px !important; border-radius: 16px !important;
    background: #fdf0f6 !important; color: #8f2d78 !important; border: 1px solid #f6dbe9 !important; font-size: 12px !important; font-weight: 700; }
  body.tiles-nav #workspace-nav [data-view="dashboard"].active:not(#x) { background: linear-gradient(135deg, #fde3ee, #f3e3fb) !important; }
  #workspace-nav #logout .tab-icon, body.tiles-nav #workspace-nav [data-view="dashboard"] .tab-icon { font-size: 22px !important; line-height: 1; }
  /* trial: a small pill, details on tap */
  #phone-footer { align-items: center; }
  #phone-footer #trial-banner:not(#x) { width: auto; padding: 5px 16px !important; border-radius: 999px !important; font-size: 13px !important; font-weight: 700;
    white-space: nowrap; cursor: pointer; background: #fff4e0 !important; border: 1px solid #f5d7a8 !important; color: #8a4b00 !important; }
  #trial-info { margin: 0; max-width: 92%; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid #f5d7a8; color: #5c3b00; font-size: 13px; line-height: 1.9; text-align: center; box-shadow: 0 4px 12px #b0397d14; }
  #trial-info[hidden] { display: none; }
  /* page colour: cards, headings and buttons of an inner page follow its tile colour */
  #workspace[class*="g-"] { font-size: 15.5px; }
  #workspace[class*="g-"] .card:not(#x), #workspace[class*="g-"] > .workspace-extra:not(#x) {
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, var(--g1), var(--g2)) border-box !important; border-top: 4px solid transparent !important;
    box-shadow: 0 2px 4px #0000000a, 0 10px 26px color-mix(in srgb, var(--g1) 14%, transparent) !important; }
  #workspace[class*="g-"] .card h1:not(#x), #workspace[class*="g-"] .card h2:not(#x) { color: var(--g1) !important; font-size: 19px !important; }
  #workspace[class*="g-"] .card h1::before, #workspace[class*="g-"] .card h2::before { background: linear-gradient(var(--g2), var(--g1)) !important; }
  #workspace[class*="g-"] button:not(.secondary):not([data-view]):not(#logout):not(.cloud-chip):not(.cloud-close):not([data-club-tab]):not(#x) {
    background: linear-gradient(120deg, var(--g1), var(--g2)) !important; box-shadow: 0 6px 16px color-mix(in srgb, var(--g1) 30%, transparent) !important; }
  #workspace[class*="g-"] button.secondary:not(#x) { background: color-mix(in srgb, var(--g2) 12%, #fff) !important; color: var(--g1) !important; border-color: color-mix(in srgb, var(--g2) 35%, #fff) !important; }
  #workspace[class*="g-"] th:not(#x) { background: color-mix(in srgb, var(--g2) 14%, #fff) !important; color: var(--g1) !important; }
  #workspace[class*="g-"] input:focus:not(#x), #workspace[class*="g-"] select:focus:not(#x), #workspace[class*="g-"] textarea:focus:not(#x) {
    border-color: var(--g2) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--g2) 22%, transparent) !important; }
  #workspace[class*="g-"] .club-tabs button.active:not(#x) { background: linear-gradient(120deg, var(--g1), var(--g2)) !important; }
  #workspace[class*="g-"] .club-stat b { color: var(--g1) !important; }
}

/* bottom bar = Home | trial days | Logout, three equal parts that always fit the screen (2026-11-27) */
@media (max-width: 900px) {
  html, body { max-width: 100%; overflow-x: hidden !important; }
  body.tiles-nav #workspace-nav { gap: 8px !important; padding-inline: 10px !important; box-sizing: border-box; }
  body.tiles-nav #workspace-nav > *:not(#x) { flex: 1 1 0 !important; min-width: 0 !important; max-width: none !important; }
  #workspace-nav #trial-banner:not(#x) { display: flex !important; flex-direction: column; align-items: center; justify-content: center; margin: 0 !important;
    min-height: 58px; padding: 4px 6px !important; border-radius: 16px !important; font-size: 12px !important; font-weight: 700; line-height: 1.35;
    white-space: normal; text-align: center; background: #fff4e0 !important; border: 1px solid #f5d7a8 !important; color: #8a4b00 !important; cursor: pointer; }
  #workspace-nav #trial-banner[hidden] { display: none !important; }
  /* 2026-11-28: the bottom-bar licence button = "⭐ نسخه دائمی" + small days-left line */
  #trial-banner .tab-icon { font-size: 20px; line-height: 1; }
  #trial-banner .tab-label { font-size: 12.5px; white-space: nowrap; }
  #trial-banner .trial-days { font-size: 10.5px; font-weight: 600; opacity: .8; white-space: nowrap; }
  #trial-info { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 84px); max-width: none !important; margin: 0 !important;
    box-shadow: 0 10px 30px #6e1f5e33 !important; }
}

/* fix 2026-11-27: overflow-x:hidden on BOTH html and body turned body into its own scroll box and the page stopped scrolling.
   'clip' cuts sideways overflow without creating a scroll container, so the normal page scroll works again. */
@media (max-width: 900px) {
  html { overflow-x: visible !important; overflow-y: visible !important; }
  body { overflow-x: clip !important; overflow-y: visible !important; }
}

/* fix 2026-11-27 (appointments page): the desktop stylesheet fixes form controls at 34-36px height, while the phone's
   large-text setting scales the font to ~21px -> select text was clipped and button labels sat off-centre.
   Controls now grow with their text (two-ID weight beats the desktop rules). */
@media (max-width: 900px) {
  input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]):not(#x):not(#y), select:not(#x):not(#y), textarea:not(#x):not(#y) {
    height: auto !important; min-height: 48px !important; font-size: 15px !important; line-height: 1.5 !important; padding: 9px 12px !important; }
  select:not(#x):not(#y) { padding-inline-end: 30px !important; }
  button:not([data-view]):not(.q-tile):not(#logout):not(.cloud-chip):not(.cloud-close):not(#x):not(#y) {
    height: auto !important; min-height: 46px; line-height: 1.4 !important; padding-top: 10px !important; padding-bottom: 10px !important;
    display: inline-flex; align-items: center; justify-content: center; text-align: center; }
  #day-prev:not(#x), #day-today:not(#x), #day-next:not(#x), #date-toggle:not(#x) { min-height: 40px; padding: 6px 10px !important; font-size: 14px !important; }
  label { font-size: 14px; }
}

/* full review 2026-11-27: dashboard-figures view starts with the back button (no greeting card, compact title);
   checkboxes keep a normal size everywhere (the customer list showed a big empty box) */
@media (max-width: 900px) {
  body.home-stats #salon-hero { display: none !important; }
  body.home-stats #stats-back { order: -1; }
  #dashboard-intro:not(#x) { padding: 10px 16px !important; min-height: 0 !important; margin-bottom: 10px !important; }
  #dashboard-intro h1, #dashboard-intro h2 { margin: 0 !important; }
  input[type=checkbox]:not(#x):not(#y) { width: 22px !important; height: 22px !important; min-width: 22px !important; min-height: 0 !important; margin: 0 4px !important; padding: 0 !important; flex: 0 0 auto !important; }
}

/* owner request 2026-11-28: the salon logo shows only in the greeting card (instead of the pink flower);
   the top bar is just the salon name: no logo, no flower icon, no "offline" subtitle, no background watermark on any page */
@media (max-width: 900px) {
  body > header #brand-logo, body > header .brand img { display: none !important; }
  body > header .brand::before { content: none !important; display: none !important; }
  body > header > span { display: none !important; }
  body > header { justify-content: center !important; }
  body > .salon-watermark, body:has(#workspace:not([hidden])) > .salon-watermark { display: none !important; }
  #salon-hero { padding-inline-end: 96px !important; }
  #salon-hero .hero-logo { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 72px; height: 72px;
    object-fit: contain; border-radius: 18px; background: #fff; padding: 4px; box-shadow: 0 4px 12px #0000002e; }
  #salon-hero .hero-logo[hidden], #salon-hero .hero-flower[hidden] { display: none !important; }
}

/* owner request 2026-11-28 (v2): top bar = Iran date + clock in a large font; the home card = salon logo with the
   salon name under it, filling the card (name only when there is no logo); Persian / English / both name fonts */
@font-face { font-family: 'Playfair Display'; src: url('/fonts/PlayfairDisplay-BoldItalic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@media (max-width: 900px) {
  body > header .brand { display: none !important; }
  body > header { padding-inline: 14px !important; }
  #phone-clock { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0;
    color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: min(5.3vw, 26px); line-height: 1.25; white-space: nowrap; text-shadow: 0 1px 2px #00000026; }
  #phone-clock .pc-time { font-variant-numeric: tabular-nums; }
  .official-clock { display: none !important; }
  #salon-hero:not(#x) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    text-align: center; padding: 18px 14px !important; min-height: 210px; }
  #salon-hero[hidden] { display: none !important; }
  #salon-hero .hero-logo:not(#x) { position: static; transform: none; width: auto; height: 150px; max-width: 100%;
    object-fit: contain; border-radius: 24px; background: #fff; padding: 6px; box-shadow: 0 6px 16px #00000030; }
  #salon-hero .hero-name { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; }
  #salon-hero .hero-name b { display: block; max-width: 100%; overflow-wrap: anywhere; color: #fff; text-shadow: 0 2px 4px #00000030; line-height: 1.25; }
  #salon-hero .hn-fa { font-family: var(--font-ui); font-weight: 800; font-size: min(8.5vw, 36px); }
  #salon-hero .hn-en { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 700; font-size: min(8.5vw, 36px); letter-spacing: .3px; }
  #salon-hero.no-logo .hn-fa, #salon-hero.no-logo .hn-en { font-size: min(12vw, 52px); }
  #salon-hero .hero-name b[hidden], #salon-hero .hero-logo[hidden] { display: none !important; }
  /* club page: the "messages ready today" note */
  .club-pane .club-ready:not(#x):not(#y) { display: block; width: 100%; margin: 0 0 12px !important; padding: 10px 14px !important; min-height: 0;
    border-radius: 14px !important; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.7;
    color: #fff !important; background: linear-gradient(125deg, var(--plum), var(--rose)) !important; border: 0 !important; }
  /* salon-name display card in the salon settings */
  #brand-name-card { margin-top: 16px; }
  #brand-name-card h3 { margin: 0 0 8px; }
  #brand-name-card .name-mode { display: flex; flex-wrap: wrap; gap: 8px 16px; border: 0; padding: 0; margin: 8px 0; }
  #brand-name-card .name-mode label { display: flex; align-items: center; gap: 6px; }
  #brand-name-card input[type=radio] { width: 20px; height: 20px; margin: 0; }
}

/* owner request 2026-11-28 (v3): the logo has no white frame and is larger */
@media (max-width: 900px) {
  #salon-hero .hero-logo:not(#x):not(#y) { background: none; padding: 0; border-radius: 0; box-shadow: none;
    width: auto; height: auto; max-width: 92%; max-height: 240px; min-height: 160px; object-fit: contain; filter: drop-shadow(0 6px 14px #00000040); }
}

/* owner request 2026-11-28 (v4): the home screen fits the phone without scrolling - the salon card takes ~36% of the
   free height and the tiles share the rest in equal rows (free height = screen - top bar - bottom bar) */
@media (max-width: 900px) {
  body { --home-free: calc(100dvh - 160px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  body.home-tiles main { padding-bottom: 0 !important; }
  body.home-tiles #phone-footer { margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
  body #salon-hero:not(#x) { height: calc(var(--home-free) * .36); min-height: 150px; margin: 0 0 10px !important;
    padding: 10px 12px !important; gap: 4px; box-sizing: border-box; overflow: hidden; }
  body #salon-hero .hero-logo:not(#x):not(#y) { flex: 1 1 0; min-height: 0; max-height: none; height: 100%; max-width: 92%; }
  body #salon-hero .hn-fa, body #salon-hero .hn-en { font-size: min(8vw, 32px) !important; }
  body #salon-hero.no-logo .hn-fa, body #salon-hero.no-logo .hn-en { font-size: min(12vw, 52px) !important; }
  body.home-tiles #quick-actions:not(#x) { height: calc(var(--home-free) * .64 - 10px); min-height: 300px; grid-auto-rows: 1fr; align-content: stretch;
    gap: 8px !important; margin: 0 !important; box-sizing: border-box; }
  body.home-tiles #quick-actions .q-tile:not(#x):not(#y) { height: auto; min-height: 0 !important; padding: 6px 4px !important; gap: 2px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
  body.home-tiles #quick-actions .q-icon:not(#x) { font-size: clamp(20px, calc(var(--home-free) * .045), 34px) !important; width: auto !important; height: auto !important;
    min-height: 0 !important; padding: 2px 6px !important; margin: 0 !important; line-height: 1.15; }
  body.home-tiles #quick-actions .q-tile b { font-size: clamp(12px, calc(var(--home-free) * .023), 15.5px) !important; line-height: 1.3; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin: 0 !important; }
  body.home-tiles #quick-actions .q-tile small { font-size: clamp(9.5px, calc(var(--home-free) * .016), 11.5px) !important; line-height: 1.3; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin: 0 !important; }
  /* 2026-11-28: the card sizes no longer wait for the home-tiles class (the logo jumped when a tile was tapped) */
  /* the floating cloud pill covered a tile; the cloud account has its own tile on this screen */
  body.home-tiles .cloud-chip { display: none !important; }
  body.home-tiles #quick-actions .q-tile b, body.home-tiles #quick-actions .q-tile small { letter-spacing: -.2px; }
  /* long titles ("باشگاه مشتریان") get a smaller font so they are not cut on phones with large text (owner phone ~130%) */
  body.home-tiles #quick-actions .q-tile.long b:not(#x) { font-size: clamp(10.5px, calc(var(--home-free) * .0185), 13px) !important; }
  body.home-tiles #quick-actions .q-tile.long small:not(#x) { font-size: clamp(9px, calc(var(--home-free) * .0145), 10.5px) !important; }
}

/* 2026-11-28 owner request: slimmer bottom bar (it covered the last row of tiles).
   Icon beside the label, one line for Home / Logout; the licence button keeps a small days line under it. */
@media (max-width: 900px) {
  body.tiles-nav #workspace-nav:not(#x) { padding: 3px 8px calc(env(safe-area-inset-bottom) + 3px) !important; gap: 8px !important; align-items: stretch; }
  body.tiles-nav #workspace-nav [data-view="dashboard"]:not(#x):not(#y), #workspace-nav #logout:not(#x):not(#y), #workspace-nav #trial-banner:not(#x):not(#y) {
    flex-direction: row !important; flex-wrap: wrap; align-content: center; justify-content: center; gap: 0 5px !important;
    min-height: 42px !important; padding: 3px 4px !important; border-radius: 13px !important; font-size: 12.5px !important; line-height: 1.25 !important; }
  #workspace-nav .tab-icon:not(#x):not(#y) { font-size: 17px !important; line-height: 1 !important; }
  #workspace-nav #trial-banner .trial-days:not(#x) { flex-basis: 100%; text-align: center; font-size: 10px; line-height: 1.2; }
  body.has-tabs:not(#x) { padding-bottom: calc(env(safe-area-inset-bottom) + 56px) !important; }
}

/* 2026-11-28 professional club (stage 3): membership line, member card, points history, points settings */
.club-membership { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #ecdde8; }
.club-membership button { width: auto !important; min-height: 38px !important; padding: 4px 14px !important; font-size: 13px !important; }
.club-back { width: auto !important; min-height: 38px !important; margin: 0 0 10px !important; padding: 4px 14px !important; }
.club-member-card { margin: 0 0 12px; padding: 14px 16px; border-radius: 18px; color: #fff; box-shadow: 0 8px 22px #3a1a3040; }
.club-member-card .club-item-head b, .club-member-card .club-facts, .club-member-card .club-facts b { color: inherit !important; }
.club-member-card.tier-bronze { background: linear-gradient(135deg, #6b3f2a, #b76e79 70%, #e7b7a3); }
.club-member-card.tier-silver { background: linear-gradient(135deg, #5f6670, #a9b0b8 60%, #e3e6ea); color: #1f2329; }
.club-member-card.tier-gold   { background: linear-gradient(135deg, #111, #3a2f12 45%, #c9a227); }
.club-member-card.tier-vip    { background: linear-gradient(135deg, #000, #1b1b1b 55%, #d4af37); }
.club-member-card .club-level { background: #ffffff33 !important; color: inherit !important; border: 1px solid #ffffff66; }
.club-member-card .club-actions button { background: #ffffffe6 !important; color: #4a2740 !important; border: 0 !important; }
.club-member-card .club-warn { color: #ffe08a !important; }
.club-points { display: flex; align-items: baseline; gap: 8px; margin: 8px 0; }
.club-points b { font-size: 34px; line-height: 1.1; }
.club-points span { font-size: 13px; opacity: .9; }
.club-ledger { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 2px; border-bottom: 1px solid #f1e6ee; font-size: 13.5px; }
.club-ledger b { font-size: 15px; }
.club-ledger.plus b { color: #1d7a46; } .club-ledger.minus b { color: #b3261e; }
.club-ledger small { grid-column: 1 / -1; color: #8a7088; font-size: 11.5px; }
.club-check { display: flex !important; align-items: center; gap: 8px; margin: 6px 0; font-weight: 600; }
.club-check input[type=checkbox] { width: 20px; height: 20px; }
/* stage-0 leftover: subtitles were cut at the owner's large text size after going full screen */
@media (max-width: 900px) {
  body.home-tiles #quick-actions .q-tile small:not(#x) { font-size: clamp(9px, calc(var(--home-free) * .0145), 10.5px) !important; }
}

/* 2026-11-28 club stage 4: digital membership card image + share button */
.club-card { margin: 0 0 10px; }
.club-card-img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 630; border-radius: 18px; box-shadow: 0 10px 26px #2a102433; background: #efe6ec; }
.club-card-actions { margin: 0 0 14px; }
.club-card-actions button { width: 100% !important; }
/* the floating cloud pill covered buttons on inner pages; the cloud account has its own home tile */
@media (max-width: 900px) { body.tiles-nav .cloud-chip { display: none !important; } }

/* 2026-11-28 club stage 5: member details (light, no repeat of the card), tier progress, rewards, small buttons */
.club-details { margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: #fff8fb; border: 1px solid #f3dfe9; }
.club-progress { margin: 8px 0; padding: 8px 12px; border-radius: 12px; background: #f4ecff; color: #4b2a74; font-size: 13.5px; line-height: 1.8; }
.club-reward { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 0 0 8px; border-radius: 14px; background: #fff; border: 1px solid #f0dce8; }
.club-reward > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.club-reward small { color: #7d6680; font-size: 12px; line-height: 1.6; }
.club-reward.blocked { opacity: .75; background: #faf6f8; }
.club-reward > button, .club-reward .club-actions button { width: auto !important; min-height: 38px !important; padding: 4px 16px !important; flex: 0 0 auto; }
.club-reward .club-actions { margin: 0; flex-wrap: nowrap; }
.club-mini { width: auto !important; min-height: 32px !important; padding: 2px 10px !important; font-size: 12px !important; grid-column: 1 / -1; justify-self: start; }
.club-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.club-inline h3 { flex-basis: 100%; }
.club-inline label { flex: 1 1 180px; }
.club-inline button { width: auto !important; }

/* 2026-11-28 club stage 6: return engine list + filter chips; the page header already shows the title (no repeat) */
.club-chips { flex-wrap: wrap; }
.club-chips button { font-size: 12.5px !important; }
.club-item .ret-badge { background: #fff1e0; color: #8a4b00; }
.ret-near .ret-badge { background: #e8f6ee; color: #1d6b40; }
.ret-at_risk .ret-badge, .ret-inactive .ret-badge { background: #fde8e8; color: #a32020; }
.ret-lost .ret-badge { background: #eee; color: #444; }
.club-call { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 4px 16px; border-radius: 12px; text-decoration: none; border: 1px solid #e8cfe0; color: #8f2d78; background: #fff; font-weight: 600; }
@media (max-width: 900px) { body.tiles-nav .club-pane > h2 { display: none; } }

/* 2026-11-28 stage 7: campaigns tab; chips: only the selected group is filled (stage-6 fix) */
.club-chips button:not(.active):not(#x):not(#y) { background: #fdf0f6 !important; color: #8f2d78 !important; border: 1px solid #f3d9e7 !important; box-shadow: none !important; }
.campaign-form { padding: 12px 14px; margin: 0 0 12px; border-radius: 16px; background: #fff; border: 1px solid #f0dce8; }
.campaign-form.is-off { background: #faf7f9; opacity: .85; }
.campaign-stats { margin: 4px 0 8px; font-size: 12.5px; color: #6a4b67; background: #f7f0f6; padding: 6px 10px; border-radius: 10px; }
.campaign-form details { margin: 6px 0 10px; }
.campaign-form summary { cursor: pointer; color: #8f2d78; font-weight: 600; font-size: 13.5px; }

/* 2026-11-28 stage 8: club dashboard */
.club-stat small { display: block; font-size: 11px; color: #8a7088; margin-top: 2px; }
.dash-rate { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; margin: 0 0 8px; border-radius: 14px; background: #fff; border: 1px solid #f0dce8; }
.dash-rate > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dash-rate > div small { font-size: 11.5px; color: #7d6680; line-height: 1.6; }
.dash-rate > span { flex: 0 0 auto; text-align: center; font-size: 22px; font-weight: 800; color: #8f2d78; display: flex; flex-direction: column; }
.dash-rate > span small { font-size: 11px; font-weight: 500; color: #8a7088; }

/* 2026-11-29 online edition: a new phone starts with "log in with the salon account" (cloud-ui.js) */
#cloud-first:not(#x):not(#y) { margin: 0 0 12px !important; padding: 16px !important; border-radius: 18px !important; border: 0 !important; background: linear-gradient(135deg, #6e1f5e, #b0397d) !important; color: #fff !important; box-shadow: 0 8px 22px #6e1f5e33 !important; }
#cloud-first h2 { margin: 0 0 6px; color: #fff !important; font-size: 1.25rem; }
#cloud-first h2::before { display: none !important; }
#cloud-first p { margin: 0 0 12px; line-height: 1.9; font-size: 14px; opacity: .95; }
#cloud-first button:not(#x):not(#y) { width: 100%; background: #fff !important; color: #6e1f5e !important; border: 0 !important; font-weight: 800; min-height: 48px; }
.cloud-or { margin: 6px 4px 8px; font-size: 13px; color: #7d6680; text-align: center; }
body.cloud-first #message { display: none; }            /* the licence-file warning is only about the offline edition */
body.cloud-first .cloud-chip { display: none !important; } /* the big card replaces the small corner button */

/* 2026-11-29 online edition: staff accounts on the server (cloud-staff-ui.js); local-only account forms hidden */
body.cloud-owner #manager-access > :not(#cloud-staff):not(#phone-team), body.cloud-owner #reception-accounts { display: none !important; }
.cloud-staff h2 { margin: 0 0 8px; }
.cloud-staff h3 { margin: 16px 0 6px; font-size: 1rem; }
.cs-help { margin: 0 0 10px; font-size: 13.5px; line-height: 1.9; color: #6a4b67; }
.cs-code { font-family: ui-monospace, Consolas, monospace; background: #f4e9f1; padding: 0 6px; border-radius: 6px; font-weight: 700; color: #7a2463; }
.cs-msg { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.8; }
.cs-msg.ok { background: #e8f6ee; color: #1d6b40; } .cs-msg.err { background: #fde8e8; color: #a32020; }
.cs-list { display: grid; gap: 8px; }
.cs-user { padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #f0dce8; display: grid; gap: 6px; }
.cs-user.off { opacity: .6; }
.cs-who { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; justify-content: space-between; }
.cs-who span { font-size: 12.5px; color: #7d6680; }
.cs-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-actions button:not(#x) { width: auto !important; min-height: 36px !important; padding: 2px 14px !important; font-size: 13px !important; }
.cs-pass, .cs-new { display: grid; gap: 8px; }
.cs-pass small { color: #8a4b00; font-size: 12px; line-height: 1.7; }

/* 2026-11-29: licensed by the salon account -> the app hides the licence button; the stage-0 rule must not show an empty box */
#workspace-nav #trial-banner[hidden]:not(#x):not(#y) { display: none !important; }

/* 2026-11-29 tour fixes (mobile-polish.js) */
@media (max-width: 900px) {
  /* #4 the app's message as a toast above the bottom bar */
  #message.phone-toast:not(#x) { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 78px); margin: 0 !important;
    padding: 10px 14px !important; border-radius: 14px !important; background: #2b1a28 !important; color: #fff !important; font-size: 14px; line-height: 1.8;
    box-shadow: 0 8px 22px #0000004d; text-align: center; transition: opacity .35s ease, transform .35s ease; }
  #message.phone-toast.phone-toast-out { opacity: 0; transform: translateY(8px); }
  /* #5 «سالن»: each section only under its own sub-tab */
  body[data-mgr]:not([data-mgr=""]):not([data-mgr="backup"]) #mobile-restore { display: none !important; }
  body[data-mgr]:not([data-mgr=""]):not([data-mgr="profile"]) #reception-accounts,
  body[data-mgr]:not([data-mgr=""]):not([data-mgr="profile"]) #social-catalog { display: none !important; }
  /* #8 the customer suggestion in the booking form takes the full width */
  #booking-customer-results:not(#x) { grid-column: 1 / -1 !important; width: 100% !important; }
  #booking-customer-results button, #booking-customer-results li { white-space: normal !important; text-align: right; }
  /* #14 staff phones: the sync button sits at the end of the page, not over the form */
  body.cloud-staff:not(.cloud-first) .cloud-chip:not(#x) { position: static !important; margin: 12px auto 90px !important; display: flex !important; width: max-content; }
}

/* ---- phone-team.js: specialists + their services in the «متخصصان» tile (2026-11-29) ---- */
body.phone-team-on #manager-nav [data-manager-view="team"],
body.phone-team-on #manager-nav [data-manager-view="specialties"],
body.phone-team-on #manager-nav [data-manager-view="services"] { display: none !important; }
#phone-team { background: #fff; border-radius: 18px; padding: 16px; margin: 0 0 14px; box-shadow: 0 4px 16px rgba(110, 40, 100, .08); }
#phone-team h2 { margin: 0 0 6px; }
#phone-team .pt-help { margin: 0 0 10px; font-size: 13.5px; line-height: 1.9; color: #6a4b67; }
#phone-team .pt-msg { margin: 0 0 8px; font-size: 14px; color: #b3261e; min-height: 0; }
#phone-team .pt-msg.ok { color: #1b7a3a; }
#phone-team .pt-msg:empty { display: none; }
#phone-team .pt-card { border: 1px solid #f0d9ea; border-radius: 16px; padding: 12px; margin: 0 0 12px; background: #fffafd; }
#phone-team .pt-card.off { opacity: .6; }
#phone-team .pt-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
#phone-team .pt-head b { font-size: 16.5px; flex: 1; }
#phone-team .pt-head span { font-size: 13px; color: #7a5a77; background: #f7e9f3; border-radius: 10px; padding: 2px 10px; }
#phone-team .pt-head em { font-style: normal; font-size: 12px; color: #b3261e; }
#phone-team .pt-services { list-style: none; margin: 0 0 8px; padding: 0; }
#phone-team .pt-services > li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px dashed #f0d9ea; }
#phone-team .pt-services > li.off { opacity: .55; }
#phone-team .pt-services > li > span { flex: 1; display: flex; flex-direction: column; }
#phone-team .pt-services > li small { color: #7a5a77; font-size: 12.5px; }
#phone-team .pt-services > li > button { width: auto; min-height: 0; padding: 6px 12px; font-size: 13px; margin: 0; }
#phone-team .pt-services > li:has(form) { display: block; }
#phone-team .pt-empty { color: #8a6f86; font-size: 13.5px; }
#phone-team .pt-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
#phone-team .pt-row > button { flex: 1 1 140px; margin: 0; }
#phone-team .pt-form label { display: block; margin: 0 0 8px; }
#phone-team .pt-price { display: block; color: #7a5a77; font-size: 12.5px; margin-top: 2px; }
#phone-team button.danger { color: #b3261e; }
#phone-team .pt-add { margin: 4px 0 10px; }
#phone-team .pt-add > button { width: 100%; }
#phone-team .pt-hours { border-top: 1px solid #f0d9ea; padding-top: 8px; }
#phone-team .pt-hours > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
#phone-team .pt-hours section { box-shadow: none; padding: 0; margin: 6px 0 0; background: none; }

/* home card: SalonYar logo until the salon uploads its own (2026-12-01) - on a white rounded tile, like the app icon */
body #salon-hero.default-brand .hero-logo:not(#x):not(#y) { background: #fff; border-radius: 22%; padding: 0; box-shadow: 0 6px 18px rgba(60, 10, 60, .28);
  aspect-ratio: 1 / 1; width: auto; max-width: 60%; object-fit: contain; flex: 0 0 auto; height: 68%; margin-top: 4px; }

/* phone-welcome.js: first-start welcome for a new salon (2026-12-01) */
#phone-welcome { border: 0; padding: 0; width: min(92vw, 420px); border-radius: 24px; background: #fff; color: #3a2338; direction: rtl; box-shadow: 0 20px 60px rgba(60, 10, 60, .35); }
#phone-welcome::backdrop { background: rgba(50, 10, 50, .55); }
#phone-welcome .pw-card { padding: 22px 20px 18px; text-align: right; }
#phone-welcome .pw-logo { display: block; width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 22px; box-shadow: 0 4px 14px rgba(60, 10, 60, .18); }
#phone-welcome h2 { text-align: center; margin: 4px 0 8px; font-size: 20px; }
#phone-welcome .pw-help { font-size: 13.5px; line-height: 1.9; color: #6a4b67; margin: 0 0 12px; }
#phone-welcome label { display: block; margin: 0 0 10px; font-weight: 600; }
#phone-welcome label input:not([type=file]) { width: 100%; margin-top: 4px; }
#phone-welcome .pw-file input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
#phone-welcome .pw-file-btn { display: inline-block; margin-top: 6px; padding: 8px 14px; border-radius: 12px; background: #f7e9f3; color: #7b2a7a; cursor: pointer; }
#phone-welcome .pw-file-name { display: block; font-weight: 400; color: #8a6f86; margin-top: 4px; }
#phone-welcome .pw-msg { min-height: 0; color: #b3261e; font-size: 13.5px; margin: 4px 0; }
#phone-welcome .pw-msg:empty { display: none; }
#phone-welcome .pw-row { display: flex; gap: 8px; margin-top: 8px; }
#phone-welcome .pw-row button { flex: 1; margin: 0; }

/* mobile-polish.js: the bottom bar hides while the keyboard is open (2026-12-01) */
body.kb-open #workspace-nav, body.kb-open #phone-footer { display: none !important; }

/* owner 2026-12-01: «اتصال اختیاری دستیار اینستاگرام» is a Windows-only feature (an outside assistant reads the services
   from the Windows computer); nothing outside can reach a phone, so it is removed from the phone app */
#social-catalog:not(#x) { display: none !important; }

/* «نام انگلیسی سالن» + «نام روی صفحه اول» inside the salon form, under «نام سالن» (2026-12-01) */
#brand-name-extra { display: grid; grid-template-columns: 1fr; gap: 0; }
#brand-name-extra select { width: 100%; }

/* phone-team.js: «حذف متخصص» + list of removed specialists (2026-12-01) */
#phone-team .pt-row > button.danger { flex: 1 1 100%; }
#phone-team button.danger:not(#x):not(#y) { background: #fdecec !important; color: #b3261e !important; border: 1px solid #f3c4c4 !important; box-shadow: none !important; }
#phone-team .pt-link { display: block; width: 100%; background: none; border: 0; box-shadow: none; color: #7a5a77; text-decoration: underline; font-size: 13.5px; padding: 6px 0; margin: 0 0 8px; min-height: 0; }

/* club-ui.js: ready messages grouped by type, one short row each (2026-12-01) */
.club-group { background: #fff; border: 1px solid #ecdcf0; border-radius: 16px; margin: 0 0 10px; padding: 0 10px; }
.club-group > summary { display: flex; align-items: center; gap: 8px; padding: 12px 2px; cursor: pointer; list-style: none; font-size: 15px; }
.club-group > summary::-webkit-details-marker { display: none; }
.club-group > summary::after { content: '▾'; margin-inline-start: auto; color: #9a7a96; }
.club-group[open] > summary::after { content: '▴'; }
.club-group > summary b { font-size: 16px; }
.club-item.compact { padding: 10px 4px; margin: 0; border: 0; border-top: 1px dashed #ecdcf0; border-radius: 0; box-shadow: none; background: none; }
.club-item.compact .club-item-head { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.club-item.compact .club-item-head b { flex: 1; }
.club-item.compact .club-open { color: #9a7a96; }
.club-item.compact.open .club-open { transform: rotate(180deg); }
.club-item.compact .club-reason { font-size: 12.5px; }
.club-item.compact:not(.open) .club-detail { display: none; }
.club-item[hidden] { display: none !important; }
.club-more { width: 100%; margin: 6px 0 10px; }

/* mobile-polish.js customerList(): one short row per customer, buttons on tap, 20 at a time (2026-12-01) */
#customer-list > article.entry { cursor: pointer; position: relative; padding-inline-end: 34px; }
#customer-list > article.entry::after { content: '▾'; position: absolute; inset-inline-end: 12px; top: 14px; color: #9a7a96; }
#customer-list > article.entry.open::after { content: '▴'; }
#customer-list > article.entry:not(.open) > button,
#customer-list > article.entry:not(.open) > small { display: none !important; }
#customer-list > article.entry > p { margin: 2px 0 0; direction: ltr; text-align: right; }
#customer-list > article.entry[hidden] { display: none !important; }
#customer-list > .cust-more { width: 100%; margin: 8px 0; }

/* phone-yearend.js: «گزارش پایان سال» (2026-12-01) */
#year-end-open { width: 100%; margin: 0 0 12px; font-weight: 700; }
#year-end { inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #f7fbf8; color: #233; direction: rtl; }
#year-end .ye-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(120deg, #11845b, #2bb673); color: #fff; }
#year-end .ye-bar b { flex: 1; font-size: 18px; }
#year-end .ye-bar button { background: rgba(255,255,255,.2); color: #fff; border: 0; border-radius: 12px; padding: 8px 14px; width: auto; min-height: 0; }
#year-end .ye-body { padding: 12px 16px 40px; }
#year-end .ye-pick { display: block; margin: 0 0 10px; font-weight: 700; }
#year-end .ye-pick select { width: 100%; margin-top: 4px; }
#year-end h3 { margin: 16px 0 6px; font-size: 16px; color: #11633f; }
#year-end .ye-sub { color: #557; font-size: 13.5px; margin: 0 0 6px; }
#year-end .ye-empty { background: #fff7e0; border-radius: 12px; padding: 10px; }
#year-end .ye-note { font-size: 12.5px; color: #667; margin-top: 14px; line-height: 1.9; }
#year-end .ye-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 13.5px; }
#year-end .ye-table th, #year-end .ye-table td { padding: 8px 10px; border-bottom: 1px solid #e5efe9; text-align: right; }
#year-end .ye-table td { text-align: left; direction: ltr; white-space: nowrap; }
#year-end .ye-table tr.strong th, #year-end .ye-table tr.strong td { font-weight: 800; background: #eaf7ef; }
#year-end .ye-table .neg { color: #b3261e; }
#year-end .ye-table tr.muted { color: #aab; }
#year-end .ye-scroll { overflow-x: auto; }
#year-end .ye-months th:first-child { white-space: nowrap; }
#year-end .ye-save { width: 100%; margin-top: 16px; }
#year-end .ye-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
#year-end .ye-actions button { width: 100%; margin: 0; }
#year-end .ye-saved { margin: 10px 0 0; font-size: 13.5px; line-height: 1.9; color: #11633f; }
#year-end .ye-saved.bad { color: #b3261e; }
#year-end .ye-saved:empty { display: none; }

/* ---- 2026-12-02 online booking: requests card («نوبت‌ها») + switch and link («مشخصات سالن») — phone-online.js ---- */
#online-requests { border: 2px solid #c4b5fd; background: #faf7ff; }
#online-requests h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
#online-requests .or-count { background: #8b5cf6; color: #fff; border-radius: 999px; padding: 0 10px; font-size: 14px; }
#online-requests .or-help, #online-setup .os-help { margin: 0 0 8px; font-size: 13.5px; line-height: 1.9; color: #6a4b67; }
#online-requests .or-msg { margin: 0 0 8px; font-size: 14px; color: #b3261e; }
#online-requests .or-msg.ok { color: #15803d; }
#online-requests .or-msg:empty { display: none; }
#online-requests .or-item { background: #fff; border: 1px solid #e6dcf7; border-radius: 14px; padding: 10px 12px; margin: 8px 0 0; }
#online-requests .or-main { line-height: 1.9; font-size: 14.5px; }
#online-requests .or-phone { margin-inline-start: 6px; font-size: 13.5px; }
#online-requests .or-when { font-weight: 700; color: #5b21b6; }
#online-requests .or-note { color: #6a4b67; font-size: 13.5px; }
#online-requests .or-code { color: #8a7a96; }
#online-requests .or-actions { display: flex; gap: 8px; margin-top: 8px; }
#online-requests .or-actions button { flex: 1; margin: 0; }
#online-requests button.danger:not(#x):not(#y) { background: #fdecec !important; color: #b3261e !important; border: 1px solid #f3c4c4 !important; box-shadow: none !important; }
#online-setup { background: #fff; border-radius: 18px; padding: 16px; margin: 14px 0; box-shadow: 0 4px 16px rgba(110, 40, 100, .08); }
#online-setup h2 { margin: 0 0 8px; }
#online-setup .os-row { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 0 0 8px; }
#online-setup .os-row input { width: 22px; height: 22px; flex: 0 0 auto; }
#online-setup .os-link { background: #f5f0fb; border-radius: 10px; padding: 8px 10px; font-size: 13px; word-break: break-all; margin: 0 0 8px; }
#online-setup .os-actions { display: flex; gap: 8px; margin: 0 0 8px; }
#online-setup .os-actions button { flex: 1; margin: 0; }
#online-requests .or-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e6dcf7; }
#online-requests .or-reasons span { flex: 1 1 100%; font-size: 13px; color: #6a4b67; }
#online-requests .or-reasons button { flex: 1 1 100%; margin: 0; font-size: 14px; }
#online-strip { display: block; width: 100%; margin: 0 0 12px; padding: 12px 14px; border: 0; border-radius: 14px; background: #8b5cf6; color: #fff; font: inherit; font-weight: 700; text-align: right; box-shadow: 0 4px 14px rgba(139, 92, 246, .35); }
#online-setup > summary { cursor: pointer; font-weight: 700; font-size: 15.5px; padding: 2px 0; list-style-position: inside; }
#online-setup[open] > summary { margin-bottom: 10px; }
#online-setup .os-on { color: #15803d; }
#online-setup .os-off { color: #8a7a96; }
#online-requests .or-club { color: #b4237d; font-size: 13.5px; font-weight: 600; }
#online-setup .os-intro-l { display: block; font-size: 14px; margin: 0 0 8px; }
#online-setup .os-intro { width: 100%; margin-top: 4px; font: inherit; }
#online-requests .or-club { color: #b4237d; font-size: 13.5px; font-weight: 600; }
#online-setup .os-intro-l { display: block; font-size: 14px; margin: 0 0 8px; }
#online-setup .os-intro { width: 100%; margin-top: 4px; font: inherit; }
#online-requests .or-dep { background: #fff8e6; border-radius: 8px; padding: 4px 8px; margin: 4px 0; font-size: 13.5px; }
#online-setup .os-dep { border: 1px solid #f3d58a; background: #fffbf0; border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; }
#online-setup .os-dep legend { font-weight: 700; padding: 0 6px; }
#online-setup .os-dep label { display: block; font-size: 14px; margin: 0 0 8px; }
#online-setup .os-dep input, #online-setup .os-dep select { width: 100%; margin-top: 4px; }
dialog .pay-dep-note { background: #fff8e6; border: 1px solid #f3d58a; border-radius: 10px; padding: 8px 10px; font-size: 14px; line-height: 1.9; margin: 0 0 10px; }
#customer-list .cust-hint { background: #faf7ff; border: 1px dashed #d9c8f5; border-radius: 14px; padding: 12px; text-align: center; font-size: 14px; line-height: 1.9; }
#customer-list .cust-hint p { margin: 0 0 8px; }

/* ---- 2026-12-05 (owner report): the appointments date bar + Persian calendar use the whole width of the phone ---- */
@media (max-width: 900px) {
  .date.workspace-common:not([hidden]):not(#x) { display: flex !important; flex-direction: column; align-items: stretch; gap: 8px; }
  .date.workspace-common > * { grid-column: auto !important; grid-row: auto !important; width: 100% !important; }
  .date.workspace-common .date-quick:not(#x) { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .date.workspace-common .date-quick button { width: 100%; margin: 0; }
  #calendar.calendar:not(#x) { width: 100% !important; max-width: none !important; box-sizing: border-box; padding: 14px 10px; }
  #calendar .calendar-bar { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; text-align: center; }
  #calendar .calendar-bar strong { font-size: 18px; }
  #calendar .calendar-days:not(#x) { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  #calendar .calendar-days span { font-size: 14px; font-weight: 700; color: #6a4b67; }
  #calendar .calendar-days button:not(#x) { width: 100%; min-width: 0; aspect-ratio: 1 / 1; padding: 0 !important; font-size: 17px !important; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
  #calendar .calendar-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #calendar .calendar-footer button:not(#x) { width: 100%; font-size: 15px !important; }
}
#followup-result { max-width: 440px; width: calc(100% - 24px); border: 0; border-radius: 18px; padding: 16px; }
#followup-result h3 { margin: 0 0 4px; }
#followup-result .fr-help { margin: 0 0 10px; font-size: 14px; color: #6a4b67; }
#followup-result .fr-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
#followup-result .fr-chips button { margin: 0; min-height: 46px; font-size: 14px; }
#followup-result .fr-chips button.on:not(#x) { background: var(--accent, #8b5cf6) !important; color: #fff !important; }
#followup-result textarea { width: 100%; }
#followup-result .fr-err { color: #b3261e; font-size: 14px; margin: 6px 0; min-height: 1em; }
#followup-result .fr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#followup-result .fr-actions button { margin: 0; }
.club-item.compact .club-item-head .club-quick:not(#x) { margin: 0 auto 0 0; padding: 6px 12px !important; min-height: 36px; font-size: 13px !important; width: auto; flex: 0 0 auto; }
#import-preview-list .imp-bar { background: #fff8e6; border: 1px solid #f3d58a; border-radius: 12px; padding: 10px; margin: 0 0 8px; font-size: 14px; }
#import-preview-list .imp-bar p { margin: 0 0 8px; }
#import-preview-list .imp-bar div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#import-preview-list .imp-bar button { margin: 0; }
/* ---- 2026-12-05: dashboard tiles open their details (phone-dashboard.js) ---- */
#summary .metric-card[data-tap] { cursor: pointer; position: relative; }
#summary .metric-card[data-tap]::after { content: '‹'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 20px; opacity: .45; }
#summary .metric-card[data-tap]:active { transform: scale(.97); }
#dash-detail { width: calc(100% - 20px); max-width: 520px; max-height: 85vh; border: 0; border-radius: 20px; padding: 0; overflow: hidden; display: none; }
#dash-detail[open] { display: flex; flex-direction: column; }
#dash-detail .dd-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 8px; }
#dash-detail .dd-head h3 { margin: 0; font-size: 17px; }
#dash-detail .dd-close:not(#x) { width: 40px; min-height: 40px; padding: 0 !important; margin: 0; flex: 0 0 auto; }
#dash-detail .dd-body { overflow-y: auto; padding: 0 16px 8px; }
#dash-detail .dd-foot { padding: 8px 16px 14px; }
#dash-detail .dd-foot button { width: 100%; margin: 0; }
#dash-detail .dd-row { border: 1px solid #ece4f3; border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; font-size: 14.5px; line-height: 1.9; }
#dash-detail .dd-time { color: #5b21b6; font-weight: 700; margin-inline-start: 6px; }
#dash-detail .dd-sub { color: #6a4b67; font-size: 13.5px; }
#dash-detail .dd-note { background: #faf7ff; border-radius: 8px; padding: 4px 8px; font-size: 13px; margin-top: 4px; }
#dash-detail .dd-st.st-cancelled, #dash-detail .dd-st.st-no_show { color: #b3261e; }
#dash-detail .dd-st.st-completed { color: #15803d; }
#dash-detail .dd-sum { background: #faf7ff; border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; line-height: 2; }
#dash-detail .dd-calc div { display: flex; justify-content: space-between; }
#dash-detail .dd-calc .dd-total { border-top: 1px solid #ddd; margin-top: 4px; padding-top: 4px; font-weight: 700; }
#dash-detail .dd-empty, #dash-detail .dd-help { color: #8a7a96; text-align: center; padding: 12px 0; margin: 0; }
/* 2026-12-06: iPhone / browser edition is online only - no offline licence-file activation */
html.web-edition #license, html.web-edition #cloud-or { display: none !important; }
#ios-install { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: 12px; background: #fff; border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px; line-height: 1.9; direction: rtl; }
#ios-install ol { margin: 6px 0 10px; padding-inline-start: 20px; }
#ios-install button { width: 100%; margin: 0; }
