/* «אופי לכל דבר» בכרטיס הלקוח (9–10.11.2026). Achiya: «שלא יהיה רק קוביות משעממות צריך אופי לכל הגדרה ודבר שם וגם צבעים
   אבל שישאר הכי נקי ומסוגר ורגוע שיש»; of three he picked ג׳ «מסגרות» (10.11): the card as it was, every frame in its family's
   colour and a small paper object by each name. Each part of the card (customers-view.js part(), data-part) has its object
   (.cc-obj, road/*.webp: ink.js draws it in once, night.css swaps in its night twin) and its family, the labels' own palette
   (app-rooms.css [data-c]):
     time  blue    the next visit, the last one, «לחזור», the history
     money green   what they owe, the payments, the packages
     who   purple  the record, the details, «התיק»
     talk  teal    the chat
     work  orange  the visit's details, the jobs
   Loaded just before actions.css, which stays last; html:root outweighs its keys' rules. */

.cc-obj { display: none; }   /* only where a rule below gives it its place */

/* ── the family's colour, and what is made of it ── */
html:root .cc [data-part] {
  --t: var(--ink-soft);
  --t-line: color-mix(in srgb, var(--t) 38%, transparent);         /* its frame */
  --t-ink: color-mix(in srgb, var(--t) 62%, var(--ink));           /* its name (AA, day and night) */
  --t-soft: color-mix(in srgb, var(--t) 30%, var(--ink-soft));     /* a grey word of its own */
  --act-dot: color-mix(in srgb, var(--t) 16%, var(--sheet));       /* the «+»'s round seat (actions.css) */
}
html:root .cc :is([data-part="cc-next"], [data-part="cc-past"], [data-part="cc-back"], [data-part="cc-history"]) { --t: #4a7fd6; }
html:root .cc :is([data-part="cc-debt"], [data-part="cc-pays"], [data-part="cc-packages"]) { --t: #3f9b68; }
html:root .cc :is([data-part="cc-record"], [data-part="cc-details"], [data-part="cc-file"]) { --t: #8466d8; }
html:root .cc [data-part="cc-chat"] { --t: #2a9d9a; }
html:root .cc :is([data-part="cc-visit"], [data-part="cc-jobs"]) { --t: #e0893f; }
@media (prefers-color-scheme: dark) {
  html:root .cc [data-part] {
    --t-line: color-mix(in srgb, var(--t) 50%, transparent);
    --act-dot: color-mix(in srgb, var(--t) 30%, var(--sheet));
  }
}

/* ── the objects: the day's lie on the paper as the dashboard's other pictures do; at night their twins need nothing ── */
@media (prefers-color-scheme: light) { html:root .cc-obj { mix-blend-mode: multiply; } }
html:root .cc .cc-obj { object-fit: contain; pointer-events: none; }
html:root .cc :is(.cc__sec, .cc-fold) > .cc__title { display: flex; align-items: center; gap: 10px; min-height: 34px; font: 16px/1.3 var(--f-ui); color: var(--t-ink); }
html:root .cc .cc__title > .cc-obj { display: block; flex: none; width: 28px; height: 28px; }
/* no title of their own: the object in the corner, or at the line's head */
html:root .cc .cc-next { position: relative; }
html:root .cc .cc-next > .cc-obj { display: block; position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; }
html:root .cc .cc-next > :is(.cc-next__label, .cc-next__when, .cc-next__what) { max-width: calc(100% - 44px); }
html:root .cc .cc-past > .cc-obj { display: block; width: 30px; height: 30px; flex: none; }
html:root .cc .cc-past > .cc-past__text { flex: 1; }

/* ── every frame in its family's colour ── */
html:root .cc [data-part] .cc-fact, html:root .cc .cc-past[data-part] { background: color-mix(in srgb, var(--t) 5%, var(--sheet)); box-shadow: inset 0 0 0 1.5px var(--t-line); }
html:root .cc .cc-next[data-part] { background: color-mix(in srgb, var(--t) 7%, var(--sheet)); box-shadow: inset 0 0 0 1.5px var(--t-line); }
html:root .cc .cc-next[data-part="cc-next"] { background: color-mix(in srgb, var(--t) 10%, var(--sheet)); box-shadow: inset 0 0 0 1.5px var(--t); }   /* the one that leads */
html:root .cc [data-part] :is(.cc-fact dt, .cc-next__label) { color: var(--t-soft); }
html:root .cc [data-part] .cc__acts :is(.text-btn, .text-link) { box-shadow: inset 0 0 0 1.5px var(--t-line); }
html:root .cc [data-part] .cc__acts :is(.text-btn, .text-link) > .icon { color: var(--t-ink); }
html:root .cc .vc { border-top-color: var(--t); }

/* a package is a punch card: a hole to each session, the used ones punched (rather than the thin bar) */
html:root .cc-pk__holes { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 8px 4px; }
html:root .cc-pk__holes i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--t-line); }
html:root .cc-pk__holes i[data-on] { background: var(--t); box-shadow: none; }
html:root .cc-pk:has(> .cc-pk__holes) > .cc-pk__bar { display: none; }

/* «התיק» (15.11.2026): the bot's mark by a name it understood (a line under each box before), and what it still doesn't know */
html:root .cc .cc-bot { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-inline-start: 6px; vertical-align: -3px; color: var(--t-soft); }
html:root .cc .cc-bot > .icon { width: 15px; height: 15px; }
html:root .cc .cc-missing { display: grid; gap: 6px; padding: 2px 4px; }   /* dashed: not known yet (DESIGN.md) */
html:root .cc .cc-missing .inq-file__chip { border-color: var(--t-line); color: var(--t-ink); }
