/* Misfit Tattoo, Windows 95 theme. Served as /assets/theme.css on every host (see
   src/auth/tempHost.ts); loads after style.css and restyles its markup.
   theme.js adds the window chrome (title bars, menu bar, taskbar) and table labels for phones.

   Windows: Windows 95 silver tinted toward Kass's sage, title bars fade lilac to flame.
   Around and inside them: her palette, sampled from her logos and Square theme. No oxblood.
   Tahoma for everything; phones keep 44px tap targets and 16px inputs. */

:root {
  --w-face: #c4c9bd;        /* window + button face */
  --w-hi: #e2e6dc;          /* bevel light */
  --w-lo: #82887b;          /* bevel shadow */
  --w-ink: #141414;         /* text, outlines, darkest bevel */
  --w-navy: #000080;        /* selection, focus, links */
  --w-sage: #8fab7a;        /* desktop */
  --w-marigold: #ffc700;    /* default button */
  --w-marigold-hi: #ffe38a;
  --w-marigold-lo: #9c7a00;
  --w-blush: #fdf4ed;       /* documents, lists, wells */
  --w-flame: #f7dfff;       /* balloons, warnings, title bar fade end */
  --w-lilac: #a17eaf;       /* title bar fade start, art */

  --w-raised: inset -1px -1px var(--w-ink), inset 1px 1px #fff, inset -2px -2px var(--w-lo), inset 2px 2px var(--w-hi);
  --w-pressed: inset -1px -1px #fff, inset 1px 1px var(--w-ink), inset -2px -2px var(--w-hi), inset 2px 2px var(--w-lo);
  --w-window: inset -1px -1px var(--w-ink), inset 1px 1px var(--w-hi), inset -2px -2px var(--w-lo), inset 2px 2px #fff;
  --w-sunken: inset -1px -1px #fff, inset 1px 1px var(--w-lo), inset -2px -2px var(--w-hi), inset 2px 2px var(--w-ink);
  --w-default: inset -2px -2px var(--w-ink), inset 1px 1px var(--w-ink), inset 2px 2px #fff0b3, inset -3px -3px var(--w-marigold-lo), inset 3px 3px var(--w-marigold-hi);
  --w-groove: inset -1px -1px #fff, inset 1px 1px var(--w-lo), inset -2px -2px var(--w-lo), inset 2px 2px #fff;
  --w-status: inset -1px -1px #fff, inset 1px 1px var(--w-lo);
  --w-title: linear-gradient(90deg, var(--w-lilac), var(--w-flame));

  font-family: Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
}

html { background: var(--w-sage); }
body {
  font: 14px/1.4 Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
  color: var(--w-ink);
  background: var(--w-sage);
  padding: 12px 12px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--w-navy); }
a:hover { color: var(--w-ink); }
:focus-visible { outline: 1px dotted var(--w-ink); outline-offset: -4px; }
h1, h2, h3 { color: var(--w-ink); }

/* ---------- windows ---------- */
.w95-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--w-face);
  box-shadow: var(--w-window);
  padding: 3px;
  min-width: 0;
}
.w95-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 3px 0 6px;
  background: var(--w-title);
  color: var(--w-ink);
  font-weight: 700;
  font-size: 14px;
}
.w95-titlebar img { width: 20px; height: 22px; padding: 1px; box-sizing: border-box; object-fit: contain; background: var(--w-blush); box-shadow: var(--w-status); } /* lilac skull, kept off the lilac gradient */
.w95-titlebar-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w95-titlebar-buttons { display: flex; gap: 2px; }
.w95-titlebar-buttons span {
  width: 20px; height: 18px; display: flex; align-items: center; justify-content: center;
  background: var(--w-face); box-shadow: var(--w-raised); font-size: 11px; line-height: 1;
}
/* the "?" title bar button and the help balloon it opens (theme.js addHelp) */
button.w95-help-btn, .login-card button.w95-help-btn {
  min-width: 0; min-height: 0; width: 22px; height: 20px; padding: 0;
  font-size: 12px; font-weight: 700; color: var(--w-ink);
  background: var(--w-face); box-shadow: var(--w-raised);
}
button.w95-help-btn:active { padding: 1px 0 0 1px; }
button.w95-help-btn[aria-expanded="true"] { box-shadow: var(--w-pressed); background: var(--w-hi); }
.w95-help {
  margin: 6px 14px 4px;
  padding: 8px 12px 10px;
  background: var(--w-flame);
  border: 1px solid var(--w-ink);
  font-size: 13.5px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.w95-help ul { margin: 0; padding-left: 18px; }
.w95-help li + li { margin-top: 4px; }
button.w95-help-close, .login-card button.w95-help-close { align-self: flex-end; width: auto; background: var(--w-face); box-shadow: var(--w-raised); min-width: 72px; min-height: 28px; font-weight: 400; color: var(--w-ink); }
.w95-client { flex: 1; padding: 10px 8px 8px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.w95-statusbar { display: flex; gap: 3px; padding: 3px 2px 2px; }
.w95-statusbar > span { flex: 1; padding: 3px 8px; font-size: 12.5px; box-shadow: var(--w-status); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- menu bar (the old top bar) ---------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0 0 8px;
  padding: 2px 0;
  border-bottom: 1px solid var(--w-lo);
  box-shadow: 0 1px 0 #fff;
}
.topbar .brand-header { display: none; }
.topbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; flex: 1; margin: 0; }
.topbar-actions a {
  color: var(--w-ink);
  text-decoration: none;
  padding: 6px 10px;
  font-weight: 400;
}
.topbar-actions a:hover, .topbar-actions a[aria-current="page"] { background: var(--w-navy); color: #fff; }
.topbar-actions #signed-in-as { order: 98; margin-left: auto; padding: 0 8px; font-size: 13px; }
.topbar-actions #logout-btn { order: 99; }
#signed-in-as:empty + * { margin-left: auto; }
.topbar-actions #logout-btn:only-of-type { margin-left: auto; }
#whatsapp-setup-link { background: var(--w-flame); box-shadow: var(--w-status); color: var(--w-ink); font-weight: 700; }

/* ---------- buttons ---------- */
button, a.button-link, .w95-btn {
  min-height: 30px;
  min-width: 72px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  font: 14px Tahoma, "MS Sans Serif", sans-serif;
  color: var(--w-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--w-face);
  box-shadow: var(--w-raised);
  cursor: pointer;
}
button:hover, a.button-link:hover { background: var(--w-face); color: var(--w-ink); }
button:active:not(:disabled) { box-shadow: var(--w-pressed); padding: 1px 11px 0 13px; }
button:disabled { color: var(--w-lo); text-shadow: 1px 1px #fff; cursor: default; }
button.danger, button.danger:hover { background: var(--w-face); color: #8a1c1c; }

/* the one default action in each place: marigold */
button[type="submit"],
#new-client-btn, #start-new-queue-btn:not(.link-btn), #wizard-next, #wizard-done, #wizard-whatsapp-yes,
button[data-action="called"], button[data-action="in_progress"], button[data-action="done"],
.cf-btn:not(.cf-btn-secondary), #consent-modal-close {
  background: var(--w-marigold);
  box-shadow: var(--w-default);
  font-weight: 700;
}
button[type="submit"]:hover, .cf-btn:not(.cf-btn-secondary):hover { background: var(--w-marigold); }
button[type="reset"] { font-weight: 400; background: var(--w-face); box-shadow: var(--w-raised); }

/* link-style buttons stay text links, Windows hyperlink style */
.link-btn, button.link-btn, button.cf-link-btn {
  min-width: 0;
  min-height: 0;
  padding: 2px 4px;
  background: none;
  box-shadow: none;
  color: var(--w-navy);
  text-decoration: underline;
  font-weight: 400;
}
.link-btn:hover, button.link-btn:hover { background: none; color: var(--w-ink); }
button.link-btn:active { box-shadow: none; padding: 2px 4px; }
#all-queues-btn { text-decoration: none; background: var(--w-face); box-shadow: var(--w-raised); color: var(--w-ink); min-height: 30px; padding: 0 10px; }

/* ---------- fields ---------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea {
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  font: 14px Tahoma, "MS Sans Serif", sans-serif;
  color: var(--w-ink);
  background: #fff;
  box-shadow: var(--w-sunken);
  box-sizing: border-box;
}
textarea { padding: 6px 8px; }
input:focus, select:focus, textarea:focus { outline: 1px dotted var(--w-ink); outline-offset: -5px; border: 0; box-shadow: var(--w-sunken); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--w-ink); margin: 0 6px 0 0; vertical-align: -3px; }
.settings-field { color: var(--w-ink); font-size: 13px; }
.settings-field span { font-weight: 400; }
.hint, .subtitle { color: var(--w-ink); opacity: 1; }
.subtitle { font-size: 13px; }
.error { color: #8a1c1c; font-weight: 700; }

/* ---------- group boxes (the old panels) ---------- */
.panel {
  position: relative;
  margin: 14px 0 6px;
  padding: 16px 10px 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: var(--w-groove);
  color: var(--w-ink);
}
.panel > h2:first-child,
.panel > .panel-header-row:first-child > h2 {
  display: table; /* a shrink-to-fit block, so the negative margin lifts it onto the frame line */
  margin: -25px 0 6px -4px;
  padding: 0 4px;
  background: var(--w-face);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}
.panel > .panel-header-row:first-child { margin-top: -6px; }
.panel > .panel-header-row:first-child > h2 { margin-top: -19px; align-self: flex-start; }
.panel h2 { font-size: 14px; color: var(--w-ink); }
.panel-header-row { gap: 8px; flex-wrap: wrap; }
.panel-header-row a { font-weight: 400; }
.self-pay-note { color: var(--w-ink); font-weight: 400; }

/* ---------- list views (tables) ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--w-blush);
  box-shadow: var(--w-sunken);
  font-size: 13.5px;
}
th {
  text-align: left;
  font-weight: 400;
  padding: 4px 8px;
  background: var(--w-face);
  color: var(--w-ink);
  box-shadow: inset -1px -1px var(--w-ink), inset 1px 1px #fff, inset -2px -2px var(--w-lo);
  border: 0;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}
td { padding: 6px 8px; border: 0; border-bottom: 1px dotted var(--w-hi); color: var(--w-ink); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.archived-row td { color: var(--w-lo); }
.actions { white-space: normal; }
.actions button { margin: 2px 3px 2px 0; min-width: 0; padding: 0 10px; font-size: 13px; }

/* status words in the queue tables become little Win95 status squares (see theme.js) */
.w95-status { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.w95-status::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--w-ink); background: #fff; flex: 0 0 auto; }
.w95-status[data-status="signup_in_progress"]::before { background: var(--w-face); }
.w95-status[data-status="called"]::before { background: var(--w-flame); }
.w95-status[data-status="in_progress"]::before { background: var(--w-marigold); }
.w95-status[data-status="done"]::before { background: var(--w-sage); }
.w95-status[data-status="skipped"]::before,
.w95-status[data-status="no_show"]::before { background: transparent; border-style: dashed; }

/* tags */
.manual-tag, .tooth-gems-tag, .custom-tattoo-tag, .draft-tag, .flag-count, .fe-flag-tag {
  background: var(--w-flame);
  color: var(--w-ink);
  border: 1px solid var(--w-ink);
  border-radius: 0;
  padding: 0 4px;
  font-weight: 400;
}
.tooth-gems-tag { background: var(--w-blush); }
.custom-tattoo-tag { background: #fff0b3; }

/* ---------- dashboard ---------- */
.event-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.event-summary strong { margin-left: 6px; }
#event-controls.panel { box-shadow: none; padding: 0; margin: 0 0 4px; }
#manual-contact-banner.panel, .health-flag-note {
  background: var(--w-flame);
  box-shadow: none;
  border: 1px solid var(--w-ink);
  padding: 10px 12px;
  margin-top: 6px;
}
#manual-contact-banner.panel > h2:first-child { margin: 0 0 4px; padding: 0; background: none; display: block; }
.manual-contact-list li { border-color: var(--w-lo); }
.artist-totals-row { gap: 6px; }
.artist-total { background: var(--w-blush); box-shadow: var(--w-sunken); border: 0; border-radius: 0; padding: 6px 10px; }
.artist-total-name, .artist-total-amount, .artist-total-count, .artist-total-grand { color: var(--w-ink); }
.event-picker-item {
  background: var(--w-face);
  box-shadow: var(--w-raised);
  border: 0;
  border-radius: 0;
  color: var(--w-ink);
  text-align: left;
  justify-content: flex-start;
  min-height: 44px;
}
.event-picker-item:hover { background: var(--w-hi); }
.event-picker-location, .event-picker-count { color: var(--w-ink); }

/* artist picker boxes in the wizards: radio-style tiles */
.artist-box {
  background: #fff;
  box-shadow: var(--w-sunken);
  border: 0;
  border-radius: 0;
  color: var(--w-ink);
  font-weight: 400;
  min-height: 44px;
}
.artist-box:hover { background: var(--w-blush); }
.artist-box.selected { background: var(--w-navy); color: #fff; box-shadow: var(--w-sunken); font-weight: 700; }
.artist-picker-label, .section-heading { color: var(--w-ink); font-weight: 700; }

/* ---------- dialogs (modals) ---------- */
.modal-backdrop { background: rgba(20, 20, 20, 0.35); }
.modal {
  background: var(--w-face);
  box-shadow: var(--w-window);
  border: 0;
  border-radius: 0;
  padding: 3px;
  color: var(--w-ink);
  max-width: 520px;
}
.modal > .w95-titlebar { margin: 0 0 10px; }
.modal > :not(.w95-titlebar) { margin-left: 12px; margin-right: 12px; }
.modal > :last-child { margin-bottom: 12px; }
.modal * { color: inherit; }
.modal button, .modal-actions button { border-radius: 0; }
.modal-actions { border-top: 1px solid var(--w-lo); box-shadow: inset 0 1px #fff; padding-top: 10px; gap: 6px; }
.modal-actions button:disabled { background: var(--w-face); }
.modal img.consent-qr { background: #fff; padding: 8px; box-shadow: var(--w-sunken); border-radius: 0; }
#new-queue-modal-body input { border: 0; border-radius: 0; box-shadow: var(--w-sunken); }
.wizard-field-invalid { box-shadow: var(--w-sunken), 0 0 0 2px #8a1c1c !important; }
.wizard-empty-note { color: var(--w-ink); }

/* ---------- reports ---------- */
#reports-list details { background: var(--w-blush); box-shadow: var(--w-sunken); border: 0; border-radius: 0; margin-bottom: 6px; }
#reports-list summary { padding: 6px 10px; }
#reports-list details[open] summary { background: var(--w-navy); color: #fff; }
.day-of-week-best td { background: #fff0b3; font-weight: 700; }

/* ---------- forms editor + signed forms ---------- */
.fe-toolbar { background: var(--w-face); box-shadow: var(--w-raised); border: 0; border-radius: 0; }
.fe-field { background: var(--w-blush); box-shadow: var(--w-sunken); border: 0; border-radius: 0; }
.fe-type { background: var(--w-face); box-shadow: var(--w-raised); border-radius: 0; color: var(--w-ink); }
.fe-problems, .cf-preview-banner { background: var(--w-flame); border: 1px solid var(--w-ink); border-radius: 0; color: var(--w-ink); }
.sub-card { background: var(--w-blush); box-shadow: var(--w-sunken); border-radius: 0; }
.sub-flags { background: var(--w-flame); border: 1px solid var(--w-ink); border-radius: 0; }
.sub-signature { background: #fff; box-shadow: var(--w-sunken); border-radius: 0; }

/* ---------- login: a logon dialog on the desktop ---------- */
body.login-body { align-items: center; justify-content: center; padding: 12px; }
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--w-face);
  box-shadow: var(--w-window);
  border: 0;
  border-radius: 0;
  padding: 3px 3px 14px;
  text-align: left;
  gap: 10px;
}
.login-card { align-items: stretch; }
.login-card > .w95-titlebar { margin-bottom: 4px; align-self: stretch; }
.login-card > :not(.w95-titlebar) { margin-left: 14px; margin-right: 14px; }
.login-card > img { display: block; width: calc(100% - 28px); height: auto; max-height: none; margin: 4px 14px; padding: 8px; box-sizing: border-box; background: var(--w-blush); box-shadow: var(--w-sunken); }
.login-card h1 { display: none; }
.login-card .subtitle { margin-top: 0; }
.login-card input { width: calc(100% - 28px) !important; }
.login-card > button[type="submit"] { width: auto; min-width: 96px; align-self: flex-end; color: var(--w-ink); }

/* ---------- consent forms (client side) ---------- */
.cf-body { padding: 12px; align-items: center; }
.w95-cf-window {
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
  background: var(--w-face);
  box-shadow: var(--w-window);
  padding: 3px;
}
.w95-cf-window > .cf-card { max-width: none; width: auto; margin: 0; padding: 14px 14px 16px; background: transparent; box-shadow: none; border: 0; border-radius: 0; }
.cf-header img { background: var(--w-blush); box-shadow: var(--w-sunken); padding: 8px; box-sizing: border-box; }
.cf-heading h1, .cf-choose h1 { color: var(--w-ink); }
.cf-label, .cf-sublabel { color: var(--w-ink); }
.cf-input { border: 0; border-radius: 0; background: #fff; box-shadow: var(--w-sunken); }
.cf-input:focus { box-shadow: var(--w-sunken); border: 0; }
.cf-choice { border: 0; border-radius: 0; background: transparent; }
.cf-signature-pad { background: #fff; box-shadow: var(--w-sunken); border: 0; border-radius: 0; }
.cf-invalid { box-shadow: var(--w-sunken), 0 0 0 2px #8a1c1c; }
.cf-error, .cf-form-error { color: #8a1c1c; }
.cf-nav { border-top: 1px solid var(--w-lo); box-shadow: inset 0 1px #fff; padding-top: 10px; }
button.cf-btn-secondary { background: var(--w-face); color: var(--w-ink); box-shadow: var(--w-raised); }
.cf-choose-option {
  background: var(--w-face);
  box-shadow: var(--w-raised);
  border: 0;
  border-radius: 0;
  color: var(--w-ink);
  text-align: left;
}
.cf-choose-option:first-child { background: var(--w-marigold); box-shadow: var(--w-default); }
.cf-choose-option:hover { filter: none; transform: none; }
.cf-choose-title, .cf-choose-sub, .cf-choose-intro, .cf-choose-foot { color: var(--w-ink); }

/* ---------- desktop + taskbar ---------- */
.w95-taskbar {
  position: sticky;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  margin: 12px -12px 0;
  padding: 0 4px;
  background: var(--w-face);
  box-shadow: inset 0 1px var(--w-hi), inset 0 2px #fff;
}
.w95-start, .w95-task {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  color: var(--w-ink);
  text-decoration: none;
  box-shadow: var(--w-raised);
  font-size: 13px;
  white-space: nowrap;
}
.w95-start { font-weight: 700; }
.w95-start img { width: 16px; height: 22px; object-fit: contain; }
.w95-task { width: 150px; overflow: hidden; text-overflow: ellipsis; }
.w95-task[aria-current="page"] { background: var(--w-hi); box-shadow: var(--w-pressed); font-weight: 700; }
button.w95-start { min-width: 0; min-height: 28px; padding: 0 8px; font-weight: 700; }
button.w95-start[aria-expanded="true"] { box-shadow: var(--w-pressed); }

/* Start menu (theme.js): pops up from the Start button */
.w95-start-menu {
  position: absolute;
  left: 2px;
  bottom: calc(100% - 2px);
  z-index: 60;
  display: flex;
  min-width: 250px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 3px;
  background: var(--w-face);
  box-shadow: var(--w-window);
}
.w95-menu-banner {
  flex: 0 0 30px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 8px 0;
  background: linear-gradient(0deg, var(--w-lilac), var(--w-flame));
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--w-ink);
}
.w95-menu-banner b { margin-top: 4px; }
.w95-menu-items { flex: 1; display: flex; flex-direction: column; padding-left: 2px; }
.w95-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px 0 8px;
  color: var(--w-ink);
  text-decoration: none;
  font: 14px Tahoma, "MS Sans Serif", sans-serif;
  white-space: nowrap;
}
button.w95-menu-item { width: 100%; min-width: 0; justify-content: flex-start; background: none; box-shadow: none; padding: 0 12px 0 8px; }
button.w95-menu-item:active { box-shadow: none; padding: 0 12px 0 8px; }
.w95-menu-item:hover, .w95-menu-item:focus-visible { background: var(--w-navy); color: #fff; outline: 0; }
.w95-menu-item:hover svg, .w95-menu-item:focus-visible svg { filter: drop-shadow(0 0 0.5px #fff); }
.w95-menu-icon { width: 20px; height: 20px; display: flex; }
.w95-menu-sep { height: 0; margin: 3px 2px; border-top: 1px solid var(--w-lo); border-bottom: 1px solid #fff; }
.w95-clock { margin-left: auto; min-height: 26px; display: flex; align-items: center; padding: 0 10px; font-size: 12.5px; box-shadow: var(--w-status); white-space: nowrap; }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  body { padding: 0; }
  .w95-window { box-shadow: none; padding: 0; }
  .w95-titlebar { min-height: 40px; font-size: 15px; }
  button.w95-help-btn, .login-card button.w95-help-btn { width: 44px; height: 32px; font-size: 15px; } /* still a 44px-wide tap */
  button.w95-help-close { min-height: 44px; }
  .w95-client { padding: 8px 8px 8px; }
  button, a.button-link { min-height: 44px; }
  .actions button { min-height: 44px; flex: 1 1 auto; }
  .topbar-actions a { padding: 12px 10px; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea { min-height: 46px; font-size: 16px; } /* 16px stops iOS zoom */
  input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; }

  /* list views stack into one block per row, each cell labelled from its column (theme.js) */
  table, tbody, tr, td { display: block; width: 100%; box-sizing: border-box; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table { background: transparent; box-shadow: none; }
  tbody tr { background: var(--w-blush); box-shadow: var(--w-sunken); margin-bottom: 8px; padding: 8px 10px; }
  td { display: flex; gap: 8px; padding: 3px 0; border: 0; }
  td[data-label]::before { content: attr(data-label); flex: 0 0 6.5rem; font-weight: 700; font-size: 12.5px; }
  td[data-label=""]::before { display: none; }
  td.actions { flex-wrap: wrap; gap: 6px; padding-top: 8px; }
  td.actions::before { flex-basis: 100% !important; }
  td.actions button { margin: 0; }

  /* dialogs fill the screen, edge to edge */
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal { max-width: none; width: 100%; min-height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
  .modal > div:last-child { flex: 1; display: flex; flex-direction: column; }
  .modal-actions { margin-top: auto; }
  .modal-actions button { flex: 1; }

  .w95-taskbar { margin: 0; min-height: 48px; }
  .w95-task:not([aria-current="page"]) { display: none; }
  .w95-task { flex: 1; width: auto; min-height: 36px; }
  .w95-start, button.w95-start { min-height: 36px; }
  .w95-start-menu { left: 0; right: 0; bottom: 100%; min-width: 0; max-height: calc(100vh - 56px); }
  .w95-menu-item, button.w95-menu-item { min-height: 48px; font-size: 16px; }
  body.login-body .login-card { max-width: none; }
  .cf-body { padding: 0; }
  .w95-cf-window { box-shadow: none; min-height: 100vh; max-width: none; }
}

@media print {
  body { background: #fff; padding: 0; display: block; }
  .w95-titlebar, .w95-taskbar, .topbar { display: none; }
  .w95-window { box-shadow: none; background: #fff; }
}
