/* «לבנות את המסך» (3.11.2026): «נתונים» built of blocks the business arranges for itself (customers-screen.js). */
/* הכניסה לבנייה: שקט, ליד הלשוניות */
.dl-switchrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dl-open { display: none; }
/* «לעצב» in the head of «נתונים»'s customers part (17.11.2026: no tab of them in «לקוחות» any more) */
.cust-numbers__head .dl-open:not([hidden]) { display: inline-block; }

/* המסך */
#cust-cards { display: block; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; }
.dl-b { position: relative; grid-column: 1 / -1; min-width: 0; }
.dl-b[data-w="half"]:not(.dl-b--lone) { grid-column: auto; }
.dl-in { display: grid; min-width: 0; height: 100%; }
.dl-in > * { min-width: 0; }
.dl-empty { display: grid; justify-items: center; gap: 12px; padding: 48px 16px; color: var(--ink-2); font: 19px/1.3 var(--f-ui); text-align: center; }
.dl-empty p { margin: 0; }

/* המשפט */
.dl-hero { margin: 0; padding: 30px 24px 32px; color: var(--ink); background: var(--ivory); border-radius: 28px; font: 34px/1.34 var(--f-display); font-weight: 400; }
.dl-hero b { font-weight: 400; font-variant-numeric: lining-nums; }
.dl-hero b:first-of-type { background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%); padding-inline: 3px; }
.dl-hero small { font: 0.6em/1 var(--f-ui); margin-inline-start: 2px; }
/* the numbers on their way (customers-screen.js waitPaint, and the page's first frames in app/index.html #cust-cards): each
   block a soft bar in its frame, and the sentence its lines, each as tall as a line of its words (1.34em; a column, so the
   bars' margins don't fold into each other): three on a phone, two where its words are big and the line long */
.cust-ncard__ph.dl-wait { display: block; width: min(100%, 18ch); height: 0.8em; margin-block: 0.45em; }
.dl-hero:has(> .dl-wait) { display: flex; flex-direction: column; }
.dl-hero .cust-ncard__ph.dl-wait { width: 100%; height: 0.62em; margin-block: 0.36em; }
.dl-hero .cust-ncard__ph.dl-wait--short { width: 62%; }
/* a number of the sentence lists its people (17.11.2026): the number as it was, a dotted line under it says it opens */
.dl-num { padding: 0; color: inherit; background: none; border: 0; font: inherit; text-decoration: underline dotted 2px; text-underline-offset: 6px; cursor: pointer; }
.dl-num:hover { text-decoration-style: solid; }
.dl-head { margin: 0 0 10px; color: var(--ink-2); font: 16px/1.3 var(--f-ui); font-weight: 400; }
.dl-b .cust-ncard { height: 100%; box-sizing: border-box; border-radius: 22px; }
.dl-b .cust-ncard--bars { padding-inline: 12px; }
.dl-more { display: grid; gap: 12px; }
.dl-more > summary { display: inline-flex; width: fit-content; align-items: center; min-height: 44px; color: var(--ink); font: 16px/1 var(--f-ui); cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.dl-more > summary::-webkit-details-marker { display: none; }
.dl-more__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }

/* הדרך */
.dl-road { display: grid; margin: 0; padding: 0; list-style: none; }
.dl-st { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 14px; }
.dl-st:nth-child(4n + 3) { direction: ltr; }
.dl-st:nth-child(4n + 3) > * { direction: rtl; }
.dl-st img { width: 92px; height: 74px; object-fit: contain; }
.dl-st__go { padding: 0; color: inherit; background: none; border: 0; font: inherit; text-align: inherit; cursor: pointer; }
.dl-st__go b { text-decoration: underline dotted 2px; text-underline-offset: 8px; }
.dl-st__t { display: grid; min-width: 0; }
.dl-st__t b { font: 54px/1 var(--f-display); font-weight: 400; font-variant-numeric: lining-nums; }
.dl-st__t span { font: 18px/1.25 var(--f-ui); }
.dl-st:nth-child(4n + 3) .dl-st__t { justify-items: end; text-align: end; }
.dl-gap { position: relative; display: grid; align-items: center; min-height: 78px; padding-inline: 96px 16px; }
.dl-gap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--ink); opacity: 0.55; }
.dl-gap:nth-child(4n) svg { transform: scaleX(-1); }
.dl-gap p, .dl-gap button { position: relative; justify-self: start; margin: 0; padding: 6px 12px; color: var(--ink-2); background: var(--page); border: 0; border-radius: 999px; font: 15px/1.25 var(--f-ui); text-align: start; }
.dl-gap button { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
.dl-gap--stuck p, .dl-gap--stuck button { color: #1b1a17; background: var(--yellow); text-decoration: none; }

/* אנשים */
.dl-cloud { display: grid; align-content: start; gap: 10px; padding: 18px 16px 12px; background: var(--ivory); border-radius: 28px; }
.dl-cloud__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; font: 19px/1.25 var(--f-ui); font-weight: 400; }
.dl-cloud__head > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.dl-cloud__head button { flex: none; padding: 0; color: var(--ink-2); background: none; border: 0; font: 16px/1.3 var(--f-ui); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
.dl-faces-wait { height: 80px; }
.dl-faces { display: flex; flex-wrap: wrap; gap: 4px 2px; margin: 0; padding: 0; list-style: none; }
.dl-face { display: grid; justify-items: center; gap: 4px; width: 68px; padding: 2px 0 6px; color: var(--ink); background: none; border: 0; font: 13.5px/1.2 var(--f-ui); cursor: pointer; }
.dl-face > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-app .dl-face .qline__av { display: grid; place-items: center; width: 54px; height: 54px; color: #1b1a17; background: #e4e5e8; border: 0; border-radius: 50%; box-shadow: none; font-size: 21px; transition: transform 0.2s var(--ease); }
.page-app .dl-face .qline__av[data-tint="0"] { background: #f2dfd3; } .page-app .dl-face .qline__av[data-tint="1"] { background: #dce6f5; }
.page-app .dl-face .qline__av[data-tint="2"] { background: #dcebdf; } .page-app .dl-face .qline__av[data-tint="3"] { background: #e9dff0; }
.page-app .dl-face .qline__av[data-tint="4"] { background: #f4e7c9; }
.page-app .dl-face:hover .qline__av { transform: translateY(-2px); }
.dl-faces li:nth-child(3n + 2) { margin-top: 8px; }
.page-app .dl-face--more .qline__av { color: var(--ink); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--hair); font-size: 16px; }
.dl-b[data-w="half"]:not(.dl-b--lone) .dl-face { width: 46px; font-size: 12px; }
.page-app .dl-b[data-w="half"]:not(.dl-b--lone) .dl-face .qline__av { width: 42px; height: 42px; font-size: 16px; }
.dl-b[data-w="half"]:not(.dl-b--lone) .dl-cloud { padding: 14px 10px 8px; border-radius: 22px; }

/* הצעה אחת, בשקט */
.dl-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; max-width: 760px; box-sizing: border-box; margin-top: 18px; padding: 14px 18px; background: color-mix(in srgb, var(--yellow) 16%, var(--sheet)); border-radius: 22px; font: 16px/1.35 var(--f-ui); }
.dl-hint__keys { display: flex; gap: 14px; align-items: center; }
.dl-hint button { min-height: 36px; padding: 0 2px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.dl-hint__yes { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dl-hint__no { color: var(--ink-2) !important; }

/* מצב בנייה */
html[data-dl-edit] #roomnav { visibility: hidden; }
html[data-dl-edit] #cust-period { opacity: 0.45; }
html[data-dl-edit] .dl-grid { gap: 16px; }
html[data-dl-edit] .dl-b { padding: 4px; background: var(--sheet); border-radius: 26px; box-shadow: 0 0 0 1px var(--hair), 0 6px 18px rgba(27, 26, 23, 0.06); }
html[data-dl-edit] .dl-in { height: auto; }
html[data-dl-edit] .dl-head { display: none; }
html[data-dl-edit] .dl-b .cust-ncard { border-color: transparent; box-shadow: none; }
html[data-dl-edit] .dl-grid { padding-bottom: 110px; }
.dl-cap { display: flex; align-items: center; gap: 4px; min-height: 44px; padding-inline: 2px 4px; }
.dl-cap__name { flex: 1; min-width: 0; overflow: hidden; color: var(--ink-2); font: 14px/1.2 var(--f-ui); text-overflow: ellipsis; white-space: nowrap; }
.dl-cap__keys { display: flex; flex: none; align-items: center; gap: 2px; }
.dl-grip { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--ink); background: none; border: 0; border-radius: 14px; cursor: grab; touch-action: none; }
.dl-grip:hover { background: color-mix(in srgb, var(--yellow) 30%, transparent); }
.dl-key { min-height: 36px; padding: 0 8px; color: var(--ink); background: none; border: 0; font: 14px/1 var(--f-ui); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
.dl-x { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--ink-2); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.dl-x:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.dl-b.is-drag { z-index: 5; box-shadow: 0 0 0 1.5px var(--ink), 0 22px 44px rgba(27, 26, 23, 0.22); rotate: -1deg; }
.dl-b.is-drag .dl-grip { cursor: grabbing; }
html.dl-dragging, html.dl-dragging body { overflow-x: clip; }
html.dl-dragging, html.dl-dragging * { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.dl-b[data-w="half"]:not(.dl-b--lone) .dl-cap__name { display: none; }
.dl-b[data-w="half"]:not(.dl-b--lone) .dl-cap { justify-content: space-between; }

.dl-tools { position: fixed; z-index: 80; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; display: flex; gap: 4px; padding: 6px; background: var(--sheet); border-radius: 999px; box-shadow: 0 0 0 1px var(--hair), 0 14px 34px rgba(27, 26, 23, 0.2); translate: -50% 0; }
.dl-tools[hidden] { display: none; }
.dl-tools button { min-height: 48px; padding: 0 20px; color: var(--ink); background: none; border: 0; border-radius: 999px; font: 17px/1 var(--f-ui); white-space: nowrap; cursor: pointer; }
.dl-tools button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.dl-tools .dl-tools__end { color: #1b1a17; background: var(--yellow); }
.dl-tools .dl-tools__end:hover { color: #1b1a17; background: var(--yellow); }

.dl-toast { position: fixed; z-index: 95; bottom: 94px; left: 50%; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 12px 18px; color: #fbf6e8; background: #26241f; border-radius: 999px; font: 15px/1.3 var(--f-ui); translate: -50% 0; white-space: nowrap; }
.dl-toast[hidden] { display: none; }
/* over a sheet it is a popover (screen-kit.js toast): no box of the browser's own around it */
.dl-toast[popover] { top: auto; right: auto; margin: 0; border: 0; overflow: visible; }
.dl-toast::backdrop { display: none; }
.dl-toast button { padding: 2px 0; color: #ffe81a; background: none; border: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* החלונות */
.dl-sub { margin: 18px 0 2px; color: var(--ink-2); font: 16px/1.3 var(--f-ui); font-weight: 400; text-align: start; }
.dl-tpls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.dl-tpl { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 0; color: var(--ink); background: none; border: 0; font: inherit; text-align: start; cursor: pointer; }
.dl-tpl__t { font: 18px/1.25 var(--f-ui); }
.dl-tpl__v { color: var(--ink-2); font: 15px/1.35 var(--f-ui); }
.dl-sk { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 15px; gap: 4px; align-content: start; height: 134px; box-sizing: border-box; margin-bottom: 8px; padding: 12px; overflow: hidden; background: var(--ivory); border-radius: 20px; transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease); }
.dl-tpl:hover .dl-sk { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(27, 26, 23, 0.08); }
.dl-sk__b { grid-column: 1 / -1; display: block; min-width: 0; background: var(--sheet); border-radius: 7px; }
.dl-sk__b[data-w="half"] { grid-column: auto; }
.dl-sk--num { grid-row: span 2; background: linear-gradient(var(--ink), var(--ink)) 8px 6px / 16px 10px no-repeat, linear-gradient(var(--line-strong), var(--line-strong)) 8px 22px / 60% 4px no-repeat, var(--sheet); }
.dl-sk--line { grid-row: span 2; background: linear-gradient(var(--yellow), var(--yellow)) 8px 6px / 26% 8px no-repeat, linear-gradient(var(--ink), var(--ink)) right 8px top 6px / 56% 8px no-repeat, linear-gradient(var(--ink), var(--ink)) right 8px top 20px / 82% 8px no-repeat, var(--sheet); }
.dl-sk--people { grid-row: span 2; background: radial-gradient(circle at 16px 50%, #f2dfd3 9px, transparent 10px), radial-gradient(circle at 40px 50%, #dce6f5 9px, transparent 10px), radial-gradient(circle at 64px 50%, #dcebdf 9px, transparent 10px), radial-gradient(circle at 88px 50%, #f4e7c9 9px, transparent 10px), var(--sheet); }
.dl-sk--bars { grid-row: span 2; background: linear-gradient(var(--yellow), var(--yellow)) 8px 6px / 70% 5px no-repeat, linear-gradient(var(--yellow), var(--yellow)) 8px 14px / 46% 5px no-repeat, linear-gradient(var(--yellow), var(--yellow)) 8px 22px / 26% 5px no-repeat, var(--sheet); }
.dl-sk--road { grid-row: span 2; background: radial-gradient(circle at 18% 30%, var(--ink) 4px, transparent 5px), radial-gradient(circle at 50% 70%, var(--ink) 4px, transparent 5px), radial-gradient(circle at 82% 30%, var(--ink) 4px, transparent 5px), var(--sheet); }
.dl-sk--waits { background: linear-gradient(var(--line-strong), var(--line-strong)) 8px 50% / 30% 5px no-repeat, linear-gradient(var(--line-strong), var(--line-strong)) right 8px top 50% / 30% 5px no-repeat, var(--sheet); }
.dl-sk--rest { height: 8px; align-self: center; background: var(--line-strong); opacity: 0.6; width: 40%; }
.dl-add .cs-tile__win { position: relative; }
.dl-add__on { display: none; position: absolute; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; background: var(--yellow); border-radius: 50%; }
.dl-add__on::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #1b1a17; font: 15px/1 var(--f-ui); }
.dl-add[aria-pressed="true"] .dl-add__on { display: block; }
.dl-sugs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dl-sug { width: 100%; min-height: 48px; padding: 10px 16px; color: var(--ink); background: color-mix(in srgb, var(--yellow) 16%, var(--sheet)); border: 0; border-radius: 18px; font: 16px/1.35 var(--f-ui); text-align: start; cursor: pointer; }
.dl-sug:disabled { color: var(--ink-2); background: var(--ivory); }
.dl-preview .dl-hero { padding: 20px; font-size: 24px; border-radius: 20px; }
.dl-choose { display: flex; flex-wrap: wrap; gap: 8px; }

@media (min-width: 700px) {
  .dl-hero { font-size: 44px; padding: 40px 36px 42px; }
  .dl-hero .dl-wait:nth-child(2):not(.dl-wait--short) { display: none; }
  .dl-tpls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.dl-when { display: block; margin: 0 0 4px; color: var(--ink-3, #6b675d); font: 500 12px/1.2 var(--f-ui); }
.dl-row { max-width: 760px; margin: 22px 0 0; }
.dl-row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--ink-2); font: 500 14px/1.3 var(--f-ui); }
.dl-row__head button { min-height: 36px; padding: 0 2px; background: none; border: 0; font: inherit; cursor: pointer; }
.dl-row__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dl-row__tile { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 124px; padding: 12px 6px 10px; color: var(--ink); background: var(--paper, #fbf6e8); border: 1.5px dashed color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 18px; font: inherit; cursor: pointer; }
.dl-row__tile img { width: 52px; height: auto; }
.dl-row__tile b { font: 700 22px/1.1 var(--f-display, var(--f-ui)); }
.dl-row__tile span { font: 13px/1.25 var(--f-ui); text-align: center; color: var(--ink-2); }
.dl-row__plus { position: absolute; top: 8px; inset-inline-end: 10px; font: 700 18px/1 var(--f-ui); font-style: normal; color: var(--ink-2); }
.dl-row__tile:active { scale: .97; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dl-row__tile { background: color-mix(in srgb, var(--ink) 6%, transparent); } }

/* «לבנות את הבית» (4.11.2026, home-screen.js): the same blocks, under the bot's switch */
.hb-open { display: inline-block; margin: 4px 0 0; }
.hb-open[hidden] { display: none; }
.hb-grid { margin-top: 18px; }
.hb-grid:empty { display: none; }
html:not([data-dl-edit]) .hb-own:not(:has(.dl-in > :not([hidden]))) { display: none; }
.hb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hb-head .dl-when { position: static; margin: 0; }
.hb-missed__top { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.hb-missed__top img { width: 64px; height: auto; flex: none; }
.hb-missed__top p { margin: 0; font: 17px/1.35 var(--f-ui); }
.hb-missed__top b { font: 700 30px/1 var(--f-display, var(--f-ui)); margin-inline-end: 4px; }
.hb-calls { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hb-calls li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; min-height: 48px; }
.hb-calls__t { color: var(--ink-2); font: 500 14px/1 var(--f-ui); font-variant-numeric: tabular-nums; }
.hb-calls__n { font: 16px/1.2 var(--f-ui); }
.hb-calls .is-back { opacity: .55; }
.hb-calls__ok { color: var(--ink-2); font: 14px/1 var(--f-ui); }
.hb-appts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.hb-appts li { display: flex; gap: 12px; align-items: baseline; font: 16px/1.2 var(--f-ui); }
.hb-appts b { min-width: 46px; font: 700 17px/1 var(--f-ui); font-variant-numeric: tabular-nums; }
.hb-nums ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.hb-nums li { display: flex; align-items: baseline; gap: 8px; }
.hb-nums b { font: 700 24px/1 var(--f-display, var(--f-ui)); }
.hb-nums span { color: var(--ink-2); font: 14px/1 var(--f-ui); }
