/* Porcelana operaciones: the internal dashboard's look, loaded last. Warm
   white page, white cards, saguaro green as the only strong accent, amber for
   money owed, terracotta for failures. Scoped to .dash: app.css is shared with
   the customer pages (body.porcelain). */
.dash {
  --color-ink-950: #fbfbf9;
  --color-ink-900: #fbfbf9;
  --color-ink-850: #ffffff;
  --color-ink-800: #ffffff;
  --color-ink-700: #f0f1ee;
  --color-ink-600: #e5e7e2;
  --color-ink-500: rgba(16, 32, 26, 0.22);
  --color-ink-400: #a3aca6;
  --color-text: #10201a;
  --color-text-muted: #7b867f;
  --color-text-faint: #8b958f;
  --color-line: rgba(16, 32, 26, 0.08);
  --color-fill: #f3f4f1;
  --color-fill-strong: #eff0ec;
  --color-moss: #2f7a52;
  --color-moss-weak: #e6efe8;
  --color-sand-weak: #f6efdf;
  --color-warn: #d9a867;
  --color-warn-ink: #8a5a1c;
  --shadow-dash: 0 1px 2px rgba(16, 32, 26, 0.03), 0 8px 24px rgba(16, 32, 26, 0.04);
  --dash-card: #ffffff;
  --card-line: rgba(16, 32, 26, 0.06);
  --row-line: #f3f4f1;
  --focus-ring: 0 0 0 4px rgba(20, 61, 43, 0.08);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

/* Page frame and the header pattern: context line, title, actions on the right. */
.dash.is-signed-in .view > .body { width: 100%; max-width: 1280px; margin: 0; padding: 26px 34px 48px; box-sizing: border-box; }
.dash.is-signed-in .view > .top { padding: 18px 34px 0; }
.dash.is-signed-in .view:has(> .top:not([hidden])) .body { padding-top: 10px; }
.dash-context { margin: 0 0 4px; color: #7b867f; font-size: 13px; font-weight: 450; line-height: 1.4; }
.dash-context:empty { display: none; }
.dash.is-signed-in h1 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
.dash.is-signed-in .dash-page-head { margin: 0 0 18px; }
.dash.is-signed-in .dash-lot-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 0 0 18px; }
.dash.is-signed-in .dash-lot-head h1,
.dash.is-signed-in .dash-page-head h1 { margin: 0; }
.dash-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dash.is-signed-in .lede { max-width: 72ch; margin: 6px 0 0; color: #7b867f; font-size: 13.5px; line-height: 1.55; }
.dash.is-signed-in .lede a { color: #143d2b; font-weight: 500; text-decoration: none; }
.dash.is-signed-in .lede a:hover { text-decoration: underline; }
.dash.is-signed-in .dash-lot-head + .lede { margin-top: -8px; }
.dash.is-signed-in .dash-h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.dash.is-signed-in .dash-help { color: #7b867f; font-size: 13px; line-height: 1.5; }
.dash .form-error { color: #b9603f; }

/* Cards */
.dash.is-signed-in .dash-card,
.dash.is-signed-in .dash-total,
.dash.is-signed-in .dash-rows:not(:empty),
.dash.is-signed-in .lab-photo,
.dash.is-signed-in .wa-list-pane,
.dash.is-signed-in .wa-thread,
.dash.is-signed-in .wa-account,
.dash.is-signed-in .wa-pick,
.dash.is-signed-in .sys-guide,
.dash.is-signed-in .sys-detail {
  border: 1px solid var(--card-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-dash);
}
.dash.is-signed-in .dash-card { padding: 20px 22px; }
.dash.is-signed-in .dash-total { margin: 18px 0 0; padding: 18px 20px; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }

/* Row lists (cobros, sin pagar, errores, pensionados…): one card, hairline dividers. */
.dash.is-signed-in .dash-rows { gap: 0; margin: 14px 0 0; padding: 0; overflow: hidden; }
.dash.is-signed-in .dash-row { gap: 10px; padding: 12px 18px; border: 0; border-radius: 0; border-bottom: 1px solid var(--row-line); background: transparent; font-size: 13.5px; }
.dash.is-signed-in .dash-row:last-child { border-bottom: 0; }
.dash.is-signed-in .dash-row:hover { background: #fbfbf9; }
.dash.is-signed-in .dash-card .dash-rows:not(:empty) { border-color: var(--color-line); border-radius: 12px; box-shadow: none; }
.dash.is-signed-in .dash-logs .dash-row-copy { font-size: 12.5px; }
.dash.is-signed-in .dash-logs .dash-row[aria-current="true"] { background: #f3f7f4; }
.dash.is-signed-in .dash-copy,
.dash.is-signed-in .dash-remove { color: #143d2b; font-size: 12.5px; font-weight: 500; }
.dash.is-signed-in .dash-remove:hover { color: #b9603f; }
.dash-person-copy { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.dash-person-name { overflow-wrap: anywhere; color: #1b2420; font-size: 14.5px; font-weight: 550; }
.dash-person-name.is-empty { color: #8b958f; font-weight: 450; }
.dash-person-phone { color: #7b867f; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dash-person-actions { display: flex; flex: none; gap: 16px; align-items: center; }
.dash-person-link { color: #143d2b; font-size: 12.5px; font-weight: 500; }
.dash-person-link:hover { text-decoration: underline; }
.dash-person-edit { display: flex; flex: 1 1 260px; flex-wrap: wrap; gap: 8px 14px; align-items: center; min-width: 0; }
.dash-person-edit .control { flex: 1 1 100%; min-width: 0; }
@media (min-width: 560px) { .dash-person-edit .control { flex-basis: 0; } }
.dash-person-edit[hidden],
.dash-person-copy[hidden],
.dash-person-actions[hidden] { display: none; }
.dash.is-signed-in .dash-fold { border-color: var(--color-line); border-radius: 12px; background: #fff; }
.dash.is-signed-in .dash-fold .dash-rows:not(:empty) { border: 0; box-shadow: none; }
.dash.is-signed-in .dash-empty { color: #8b958f; }

/* Cobros de salida (global Cobros): pending and failed read first and darker. */
.dash.is-signed-in .exit-charges { margin: 24px 0 28px; }
.exit-charge .health-pill { min-width: 104px; }
.exit-charge-title,
.exit-charge-meta { display: block; }
.exit-charge-meta { margin-top: 2px; color: #7b867f; font-size: 12.5px; }
.exit-charge:is([data-state="warn"], [data-state="down"]) .exit-charge-title { font-weight: 600; }
.exit-charge:is([data-state="ok"], [data-state="none"]) .exit-charge-title { color: #5f6b64; }

/* Segmented controls: light track, white selected pill. */
.dash .dash-days { display: inline-flex; flex-wrap: nowrap; gap: 0; max-width: 100%; margin: 0; padding: 3px; overflow-x: auto; border-radius: 10px; background: #eff0ec; scrollbar-width: none; }
.dash .dash-days::-webkit-scrollbar { display: none; }
.dash .dash-days button { flex: none; height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #5f6b64; font: inherit; font-size: 12.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.dash .dash-days button:hover { color: #10201a; }
.dash .dash-days button.is-on { background: #fff; color: #10201a; box-shadow: 0 1px 2px rgba(16, 32, 26, 0.08); }
.dash .dash-form .dash-days { flex-wrap: wrap; }

/* Buttons */
.dash.is-signed-in .cta { width: auto; height: 40px; min-height: 40px; padding: 0 16px; gap: 8px; border: 1px solid #143d2b; border-radius: 10px; background: #143d2b; color: #fff; box-shadow: 0 1px 2px rgba(16, 32, 26, 0.12); font-size: 13.5px; font-weight: 550; }
.dash.is-signed-in .cta:hover:not(:disabled):not(.is-loading) { background: #1c5238; }
.dash.is-signed-in .cta .workspace-icon { width: 15px; height: 15px; }
.dash.is-signed-in .dash-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--row-line); }
.dash .dash-page,
.dash .dash-logout,
.dash .health-link.is-secondary,
.dash-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(16, 32, 26, 0.1);
  border-radius: 10px;
  background: #fff;
  color: #10201a;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(16, 32, 26, 0.04);
  cursor: pointer;
}
.dash .dash-page:hover,
.dash-icon-button:hover { border-color: rgba(16, 32, 26, 0.18); }
.dash-icon-button { width: 34px; height: 34px; padding: 0; }
.dash-icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.live-calendar { position: relative; display: inline-flex; flex: none; }
.live-calendar input { position: absolute; inset: auto 0 0 auto; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.live-calendar .dash-icon-button.is-on { border-color: #10201a; background: #10201a; color: #fff; }
/* A finger lands on the date field itself: phones open their own picker on a
   real tap, not on a script's showPicker(). 16px keeps iOS from zooming. */
@media (pointer: coarse) {
  .live-calendar input { inset: 0; width: 100%; height: 100%; font-size: 16px; opacity: 0; pointer-events: auto; cursor: pointer; -webkit-appearance: none; appearance: none; }
}
.dash-icon-button.is-spinning svg { animation: dash-spin 0.8s linear infinite; }
@keyframes dash-spin { to { transform: rotate(360deg); } }
.dash.is-signed-in .dash-info { width: 20px; height: 20px; border-color: rgba(16, 32, 26, 0.12); color: #8b958f; }

/* Inputs */
.dash .control,
.dash input.control,
.dash select.control,
.dash textarea.control { height: 42px; min-height: 42px; border: 1px solid rgba(16, 32, 26, 0.12); border-radius: 10px; background-color: #fff; color: #10201a; font-size: 14px; box-shadow: 0 1px 2px rgba(16, 32, 26, 0.03); }
.dash textarea.control { height: auto; }
.dash .control:focus { outline: none; border-color: rgba(20, 61, 43, 0.35); box-shadow: var(--focus-ring); }
.dash .control::placeholder { color: #9aa39d; }
.dash select.control { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237b867f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m3 4.5 3 3 3-3'/></svg>"); background-position: right 14px center; background-repeat: no-repeat; }
.dash.is-signed-in .dash-label { color: #5f6b64; font-size: 12.5px; font-weight: 500; }
/* Lotes: one card per lot with today's numbers and quick links. */
.dash.is-signed-in .dash-lots { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.dash.is-signed-in .dash-lot { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 18px; min-height: 0; padding: 18px 20px 16px; border: 1px solid var(--card-line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-dash); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.dash.is-signed-in .dash-lot:hover { border-color: rgba(16, 32, 26, 0.12); box-shadow: 0 1px 2px rgba(16, 32, 26, 0.04), 0 12px 32px rgba(16, 32, 26, 0.07); }
.dash-lot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dash-lot-copy { min-width: 0; }
.dash.is-signed-in .dash-lot-name { display: block; color: #10201a; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.dash.is-signed-in .dash-lot-meta { margin: 3px 0 0; color: #8b958f; font-family: var(--font-sans); font-size: 12.5px; }
.dash-lot-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.dash-lot-stats dt { color: #7b867f; font-size: 12.5px; font-weight: 500; }
.dash-lot-stats dd { margin: 4px 0 0; font-size: 24px; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.dash-lot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 12px; border-top: 1px solid #f0f1ee; }
.dash-lot-links a { position: relative; z-index: 1; padding: 2px 0; color: #143d2b; font-size: 13px; font-weight: 500; text-decoration: none; }
.dash-lot-links a:hover { text-decoration: underline; }

/* Lot settings */
.dash.is-signed-in .workspace-settings-tabs { display: inline-flex; gap: 0; max-width: 100%; margin: 4px 0 22px; padding: 3px; overflow-x: auto; border: 0; border-radius: 10px; background: #eff0ec; }
.dash.is-signed-in .workspace-settings-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #5f6b64; font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.dash.is-signed-in .workspace-settings-tabs button.is-on { background: #fff; color: #10201a; box-shadow: 0 1px 2px rgba(16, 32, 26, 0.08); }
.dash.is-signed-in .workspace-settings-tabs button[hidden] { display: none; }
.dash.is-signed-in .workspace-settings-tabs .workspace-icon { width: 15px; height: 15px; }
.workspace-pane-heading { margin-bottom: 16px; }
.workspace-pane-heading h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.workspace-pane-heading > p:last-child { margin: 4px 0 0; color: #7b867f; font-size: 13px; }
.dash.is-signed-in .lot-settings,
.dash.is-signed-in .lot-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.dash.is-signed-in .lot-settings:has([data-settings-pane="general"]:not([hidden])) { grid-template-columns: minmax(0, 1fr); }

/* Configuración del lote: the system state on top, then one card of sections,
   each a title and a sentence on the left and its fields on the right. */
.dash.is-signed-in .lot-settings { max-width: 1040px; }
.lot-power { display: flex; align-items: center; gap: 14px; padding: 16px 18px 16px 20px; border: 1px solid var(--card-line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-dash); }
.lot-power-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #2f9e62; box-shadow: 0 0 0 4px rgba(47, 158, 98, 0.14); }
.lot-power-copy { flex: 1; min-width: 0; }
.lot-power-copy .dash-label-row { margin: 0 0 2px; justify-content: flex-start; }
.lot-power-title { margin: 0; color: #10201a; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.lot-system-state { margin: 0; color: #7b867f; font-size: 13px; line-height: 1.5; }
.lot-system-toggle { flex: none; height: 38px; padding: 0 16px; border: 1px solid rgba(185, 60, 45, 0.3); border-radius: 10px; background: #fff; color: #b23a2c; font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.lot-system-toggle:hover:not(:disabled) { border-color: rgba(185, 60, 45, 0.5); background: #fdf3f1; }
.lot-system-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(185, 60, 45, 0.2); }
.lot-system-toggle:disabled { opacity: 0.6; cursor: progress; }
.lot-power.is-off { border-color: rgba(185, 60, 45, 0.28); background: #fdf3f1; }
.lot-power.is-off .lot-power-dot { background: #c8372d; box-shadow: 0 0 0 4px rgba(200, 55, 45, 0.16); }
.lot-power.is-off .lot-power-title { color: #9c2f22; }
.lot-power.is-off .lot-system-state { color: #7a3a30; }
.lot-power.is-off .lot-system-toggle { border-color: #143d2b; background: #143d2b; color: #fff; }
.lot-power.is-off .lot-system-toggle:hover:not(:disabled) { background: #1d4f39; }

.dash.is-signed-in .dash-card.lot-form { padding: 0; }
.lot-group { display: grid; gap: 14px; padding: 24px; }
.lot-group + .lot-group { border-top: 1px solid var(--row-line); }
.lot-settings .lot-group-head .dash-h2 { margin: 0 0 4px; }
.lot-settings .lot-group-head .dash-help { margin: 0; max-width: 34ch; }
.dash .lot-group-body.dash-form { margin: 0; gap: 18px 16px; }
.dash-field-hint { margin: 6px 0 0; color: #8b958f; font-size: 12.5px; line-height: 1.45; }
.dash.is-signed-in .lot-form .dash-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin: 0; padding: 14px 24px; border-top: 1px solid var(--row-line); border-radius: 0 0 16px 16px; background: #fbfbf9; }
.lot-save-note { margin: 0 auto 0 0; color: #3d4a43; font-size: 13px; }
.dash-choice-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #e3ebe5; color: #143d2b; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.dash-choice-list { grid-template-columns: minmax(0, 1fr); }
.lot-group-body > .dash-choice-single { grid-column: auto; }

.lot-photos { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--card-line); border-radius: 12px; background: #fbfbf9; }
.lot-photos-copy { flex: 1; min-width: 0; }
.lot-photos-copy .dash-label-row { margin: 0; justify-content: flex-start; }
.lot-photos-copy .dash-label { color: #10201a; font-weight: 600; }
.lot-photos-copy .dash-field-hint { margin-top: 4px; }
.lot-photos-toggle { flex: none; height: 36px; padding: 0 14px; border: 1px solid var(--card-line); border-radius: 10px; background: #fff; color: #10201a; font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.lot-photos-toggle:hover:not(:disabled) { border-color: #c9d2cc; background: #f4f6f3; }
.lot-photos-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 61, 43, 0.18); }
.lot-photos-toggle:disabled { opacity: 0.6; cursor: progress; }
.lot-photos.is-paused { border-color: rgba(176, 120, 20, 0.3); background: #fdf8ec; }
.lot-photos.is-paused .lot-photos-toggle { border-color: #143d2b; background: #143d2b; color: #fff; }
.lot-photos.is-paused .lot-photos-toggle:hover:not(:disabled) { background: #1d4f39; }

.control-unit { position: relative; }
.control-unit > span { position: absolute; top: 50%; transform: translateY(-50%); color: #8b958f; font-size: 13.5px; pointer-events: none; }
.control-unit.is-prefix > span { left: 13px; }
.control-unit.is-suffix > span { right: 13px; }
.dash .control-unit.is-prefix .control { padding-left: 26px; }
.dash .control-unit.is-suffix .control { padding-right: 72px; }
.control-unit .control { appearance: textfield; -moz-appearance: textfield; }
.control-unit .control::-webkit-inner-spin-button,
.control-unit .control::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 560px) {
  .lot-power { flex-wrap: wrap; align-items: flex-start; padding: 16px; }
  .lot-power-dot { margin-top: 5px; }
  .lot-system-toggle { width: 100%; height: 42px; }
  .lot-photos { flex-wrap: wrap; }
  .lot-photos-toggle { width: 100%; height: 42px; }
  .lot-group { padding: 20px 16px; }
  .dash.is-signed-in .lot-form .dash-actions { flex-wrap: wrap; padding: 14px 16px; }
  .dash.is-signed-in .lot-form .dash-actions .cta { flex: 1 1 100%; }
}
@media (min-width: 1100px) {
  .lot-group { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 40px; padding: 26px 28px; }
  .dash.is-signed-in .lot-form .dash-actions { padding-inline: 28px; }
}
.dash.is-signed-in .lot-people .dash-form { grid-template-columns: 1fr; }
.dash.is-signed-in .dash-choice-option { border-color: rgba(16, 32, 26, 0.1); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16, 32, 26, 0.03); transition: border-color 0.15s, background 0.15s; }
.dash.is-signed-in .dash-choice-option:hover { border-color: rgba(16, 32, 26, 0.18); }
.dash.is-signed-in .dash-choice-option:has(input:checked) { border-color: #143d2b; background: #f3f7f4; box-shadow: inset 0 0 0 1px #143d2b; }
.dash.is-signed-in .dash-choice-option:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.dash.is-signed-in .dash-choice-title { color: #10201a; font-size: 13.5px; }
.dash.is-signed-in .dash-choice-sub { color: #7b867f; }
.workspace-access-note { grid-column: 1 / -1; margin: 0; padding: 14px 18px; border-radius: 12px; background: #f3f7f4; color: #3d4a43; font-size: 13px; line-height: 1.55; }
#lot-local { color: #7b867f; font-size: 12.5px; }

/* Plumas (Soporte en vivo) and the printer test */
.dash.is-signed-in .barrier-actions { gap: 10px; }
.dash.is-signed-in .barrier-actions .cta { min-width: 160px; }

/* Salud, Fotos de cámaras */
.dash.is-signed-in .lab-photo { overflow: hidden; }
.dash.is-signed-in .lab-photo-kind { color: #143d2b; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.dash.is-signed-in .lab-photo-kind[data-kind="exit"] { color: #8a5a1c; }
.dash.is-signed-in .lab-photo-plate { font-size: 14px; font-weight: 550; letter-spacing: 0.04em; }
.dash .health-link { color: #143d2b; font-size: 13px; }

/* Tareas */
.dash.is-signed-in .board-toolbar { margin-bottom: 4px; }
.dash.is-signed-in .board-lane-title { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: -0.005em; text-transform: none; color: #10201a; }
.dash.is-signed-in .board-lane-count { border-radius: 6px; background: #eff0ec; color: #5f6b64; font-family: var(--font-sans); font-size: 12px; }
.dash.is-signed-in .board-lane-mark { border-radius: 3px; }
.dash.is-signed-in .board-lane[data-lane="blocked"] .board-lane-mark { background: #d9a867; }
.dash.is-signed-in .board-card { border-color: var(--card-line); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(16, 32, 26, 0.03), 0 6px 18px rgba(16, 32, 26, 0.04); }
.dash.is-signed-in .board-card:hover { border-color: rgba(16, 32, 26, 0.12); background: #fff; }
.dash.is-signed-in .board-card[data-status="blocked"] { background: #fff; box-shadow: inset 0 0 0 1px rgba(138, 90, 28, 0.16), 0 6px 18px rgba(16, 32, 26, 0.04); }
.dash.is-signed-in .board-card[data-status="done"] { opacity: 1; background: #fbfbf9; box-shadow: none; }
.dash.is-signed-in .board-card-title { letter-spacing: -0.01em; }
.dash.is-signed-in .board-card-id { font-family: var(--font-mono); color: #9aa39d; }
.dash.is-signed-in .board-card-status,
.dash.is-signed-in .board-card-assignee { height: 32px; min-height: 32px; border-color: rgba(16, 32, 26, 0.1); border-radius: 8px; background-color: #fff; box-shadow: none; font-size: 12.5px; }
.dash.is-signed-in .board-person { border-color: rgba(16, 32, 26, 0.1); border-radius: 999px; background: #fff; color: #3d4a43; box-shadow: 0 1px 2px rgba(16, 32, 26, 0.04); }
.dash.is-signed-in .board-person.is-on { border-color: #143d2b; background: #143d2b; color: #fff; }
.dash.is-signed-in .board-person-mark { background: #e3ebe5; color: #143d2b; }
.dash.is-signed-in .board-lane-add { border-radius: 10px; color: #5f6b64; }
.dash.is-signed-in .board-lane-add:hover { background: rgba(16, 32, 26, 0.04); color: #10201a; }

/* WhatsApp */
.dash.is-signed-in .wa-top { align-items: flex-end; margin-bottom: 18px; }
.dash.is-signed-in .wa-messages { background: #fbfbf9; }
.dash.is-signed-in .wa-btn.is-primary { background: #143d2b; border-color: #143d2b; border-radius: 10px; }
.dash.is-signed-in .wa-find,
.dash.is-signed-in .wa-input,
.dash.is-signed-in .wa-composer textarea { border: 1px solid rgba(16, 32, 26, 0.12); border-radius: 10px; background: #fff; }
.dash.is-signed-in .wa-find:focus,
.dash.is-signed-in .wa-input:focus,
.dash.is-signed-in .wa-composer textarea:focus { outline: none; border-color: rgba(20, 61, 43, 0.35); box-shadow: var(--focus-ring); }

/* Cómo funciona and Trabajos */
.dash.is-signed-in .sys-status,
.dash.is-signed-in .jobs-status { color: #7b867f; font-size: 13px; }
.dash.is-signed-in .sys-status { border-color: var(--card-line); background: #fff; }
.dash.is-signed-in .sys-h,
.dash.is-signed-in .jobs-h { font-size: 15px; letter-spacing: -0.01em; }

/* Sheets and dialogs (above the phone top bar and tab bar) */
.dash .sheet { z-index: 80; }
.dash .sheet-panel { border-radius: 20px 20px 0 0; background: #fff; }
.dash .health-dialog,
.dash .wa-dialog { border: 1px solid var(--card-line); background: #fff; }

/* Sign-in (phone, code) and Sin acceso */
.dash:not(.is-signed-in) .shell { max-width: 460px; margin-inline: auto; padding: 0 20px; box-sizing: border-box; }
.dash [data-view=phone] .body,
.dash [data-view=code] .body,
.dash [data-view=denied] .body { flex: none; margin-top: 28px; padding: 28px 24px; border: 1px solid var(--card-line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-dash); }
.dash [data-view=phone] h1,
.dash [data-view=code] h1,
.dash [data-view=denied] h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.dash [data-view=phone] .foot,
.dash [data-view=code] .foot { padding: 16px 0 max(24px, env(safe-area-inset-bottom)); }
.dash .dial,
.dash .otp-slots span { border-color: rgba(16, 32, 26, 0.12); border-radius: 12px; background: #fff; }
.dash:not(.is-signed-in) .control { height: 52px; border-radius: 12px; }
.dash:not(.is-signed-in) .cta { height: 52px; border-radius: 12px; background: #143d2b; border-color: #143d2b; color: #fff; }
.dash .back { background: #fff; border: 1px solid rgba(16, 32, 26, 0.1); }

@media (max-width: 1050px) {
  .dash.is-signed-in .view > .body { padding: 24px; }
  .dash.is-signed-in .lot-settings,
  .dash.is-signed-in .lot-people { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  .dash.is-signed-in .view > .body { padding: 18px 16px calc(28px + var(--shell-tabs) + env(safe-area-inset-bottom)); }
  .dash.is-signed-in .view > .top { padding: 12px 16px 0; }
  .dash.is-signed-in h1 { font-size: 24px; }
  .dash.is-signed-in .dash-lot-head { align-items: stretch; flex-direction: column; flex-wrap: nowrap; margin-bottom: 14px; }
  .dash.is-signed-in .dash-page-head { margin-bottom: 14px; }
  .dash.is-signed-in .dash-lot-head + .lede { margin-top: -4px; }
  .dash-head-actions { flex-wrap: nowrap; }
  .dash-head-actions .dash-days { flex: 1; min-width: 0; }
  .dash .dash-days button { height: 34px; padding: 0 12px; font-size: 13px; }
  .dash-lot-head > .dash-days,
  .dash-head-actions .dash-days { display: flex; }
  .dash-lot-head > .dash-days button,
  .dash-head-actions .dash-days button { flex: 1 0 auto; }
  .dash-icon-button { width: 40px; height: 40px; flex: none; }
  .dash.is-signed-in .dash-card { padding: 18px 16px; }
  .dash.is-signed-in .dash-row { padding: 12px 14px; }
  .dash.is-signed-in .dash-lots { grid-template-columns: 1fr; }
  .dash.is-signed-in .dash-lot { gap: 14px; padding: 16px; }
  .dash-lot-links { gap: 0; justify-content: space-between; }
  .dash-lot-links a { padding: 12px 0 2px; font-size: 13.5px; }
  .dash.is-signed-in .dash-form { grid-template-columns: minmax(0, 1fr); }
  .dash.is-signed-in .workspace-settings-tabs { display: flex; }
  .dash.is-signed-in .workspace-settings-tabs button { height: 36px; padding: 0 10px; }
  .dash.is-signed-in .workspace-settings-tabs .workspace-icon { display: none; }
  .dash.is-signed-in .barrier-actions .cta { flex: 1; min-width: 0; height: 48px; }
  .dash .cta,
  .dash .dash-page { min-height: 44px; }
  .dash .wa-toast { bottom: calc(var(--shell-tabs) + 16px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-group.is-fold > summary::after,
  .workspace-fold > summary::after,
  .pf-fold > summary::after,
  .pf-more > summary::after,
  .pf-visit-main::after,
  .jobs-row-head::after,
  .sys-dev summary::after,
  .services-chevron { transition: none; }
  .dash-icon-button.is-spinning svg { animation: none; }
}
