/* Polish layer for the five original demo websites and their admin workspaces.
   Loaded last on every /demo/ and /admin/ page (with /assets/type/<id>.css).
   Each business keeps its own palette and layout; this layer refines the finish. */

/* ── Rendering and motion, shared */
html.lws-demo body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-kerning: normal; }
html.lws-demo :is(h1, h2, h3) { text-wrap: balance; }
html.lws-demo :is(p, li, dd, figcaption) { text-wrap: pretty; }
html.lws-demo :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
html.lws-demo :is(.button, .business-button, .front-action, .desk-add, .desk-link, .text-button, .icon-button) { transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s, background-color .25s, color .2s, border-color .25s; }
html.lws-demo :is(.button, .business-button, .front-action, .desk-add, .desk-link):not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 8px 20px -12px #00000066; }
html.lws-demo :is(.button, .business-button, .front-action, .desk-add, .desk-link):not(:disabled):active { transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { html.lws-demo * { transition-duration: .01ms !important; } }

/* Demo chrome bar: a touch more air and a clear hover state */
html.lws-demo .demo-bar { min-height: 48px; padding: 0 4%; font-family: "DM Sans", system-ui, sans-serif; }
html.lws-demo .demo-bar a { min-height: 44px; opacity: .92; }
html.lws-demo .demo-bar a:hover { opacity: 1; color: #fff; }

/* "Customise this design": a quieter glass pill that grows on hover */
html.lws-demo .customise-launch { padding: 12px 18px; gap: 10px; font-size: 14px; font-weight: 600; background: #141b29e6; backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); border-color: #ffffff2e; box-shadow: 0 14px 34px -14px #000a; transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, background-color .3s; }
html.lws-demo .customise-launch:hover { transform: translateY(-2px); background: #141b29; box-shadow: 0 20px 40px -16px #000c; }
html.lws-demo .customise-launch span { font-size: 18px; }

/* ── Admin workspaces */
/* Sidebars wide enough for one-line labels */
html.lws-admin .desk-automotive.ops-layout { grid-template-columns: 236px minmax(0, 1fr); }
html.lws-admin .desk-wellness.ops-layout { grid-template-columns: 232px minmax(0, 1fr); }
html.lws-admin .desk-services.ops-layout { grid-template-columns: minmax(0, 1fr) 232px; }
@media (max-width: 1100px) {
  html.lws-admin :is(.desk-automotive, .desk-wellness).ops-layout { grid-template-columns: 212px minmax(0, 1fr); }
  html.lws-admin .desk-services.ops-layout { grid-template-columns: minmax(0, 1fr) 212px; }
}
html.lws-admin .ops-nav button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 42px; transition: background-color .2s, color .2s; }
html.lws-admin .ops-nav button svg { flex: none; }
html.lws-admin .ops-brand { line-height: 1.1; }
html.lws-admin .ops-brand small { letter-spacing: .02em; }

/* Top-tab workspaces: the tab strip scrolls, with a fade that shows there is more */
html.lws-admin :is(.desk-hospitality, .desk-property) .ops-nav { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); padding-right: 56px; scroll-snap-type: x proximity; }
html.lws-admin :is(.desk-hospitality, .desk-property) .ops-nav::-webkit-scrollbar { display: none; }
html.lws-admin :is(.desk-hospitality, .desk-property) .ops-nav button { scroll-snap-align: start; }

/* Top bar and demo notice */
html.lws-admin .ops-topbar { min-height: 78px; padding-block: 16px; }
html.lws-admin .ops-brief { font-size: 13.5px; }

/* Cards, sections and figures */
html.lws-admin .business-desk { padding-inline: 0; }
html.lws-admin .desk-head { border-radius: 18px; }
html.lws-admin .desk-section { border-radius: 14px; border-color: color-mix(in srgb, var(--rule) 75%, transparent); box-shadow: 0 1px 2px #0000000d, 0 16px 34px -28px #00000059; }
html.lws-admin .desk-section h3 { letter-spacing: -.02em; }
html.lws-admin .desk-metrics { border-radius: 14px; overflow: hidden; }
html.lws-admin .desk-metrics dd { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
html.lws-admin .desk-workflow { border-radius: 14px; }
html.lws-admin .admin-panel { border-radius: 14px; box-shadow: 0 1px 2px #0000000d, 0 16px 34px -28px #00000059; }
html.lws-admin .desk-entry { position: relative; transition: background-color .2s, transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s; }
html.lws-admin .desk-entry:hover { transform: translateY(-1px); }

/* Status: a coloured dot on every record, and a tinted table plan */
html.lws-admin .desk-entry[data-status] { --st: #9aa3ad; padding-right: 2.2rem; }
html.lws-admin .desk-entry[data-status]::after { content: ""; position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--st); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st) 22%, transparent); }
html.lws-admin .desk-entry:is([data-status="available"], [data-status="confirmed"], [data-status="open"], [data-status="completed"], [data-status="paid"], [data-status="sent"]) { --st: #2f9e62; }
html.lws-admin .desk-entry:is([data-status="pending"], [data-status="reserved"], [data-status="viewing-arranged"], [data-status="offer-made"], [data-status="under-offer"], [data-status="scheduled"], [data-status="in-progress"], [data-status="draft"], [data-status="new"]) { --st: #d49a22; }
html.lws-admin .desk-entry:is([data-status="occupied"], [data-status="full"], [data-status="outstanding"]) { --st: #c8543c; }
html.lws-admin .desk-floor .desk-entry { border-width: 1.5px; border-radius: 16px; padding: 14px 12px; background: color-mix(in srgb, var(--st) 9%, #fffaf3); border-color: color-mix(in srgb, var(--st) 45%, #c9b3a2); }
html.lws-admin .desk-floor .desk-entry::after { top: 12px; right: 12px; }
html.lws-admin .desk-floor .desk-entry:hover { background: color-mix(in srgb, var(--st) 15%, #fffaf3); }

/* Form controls inside the workspaces */
html.lws-admin .ops-layout :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea) { border-radius: 9px; min-height: 42px; transition: border-color .2s, box-shadow .2s; }
html.lws-admin .ops-layout :is(input, select, textarea):focus { outline: none; border-color: #5b7cf0; box-shadow: 0 0 0 3px #5b7cf033; }

/* Bottom bar */
html.lws-admin .ops-bottom { font-size: 13.5px; }

/* Buttons and small labels stay in each workspace's sans, whatever the display face */
html.lws-admin :is(.desk-add, .desk-link, .ops-layout .button) { font-family: var(--body, "DM Sans"), system-ui, sans-serif; letter-spacing: 0; }
html.lws-admin .desk-hospitality .desk-section h3 { font-size: 1.7rem; letter-spacing: -.01em; }
html.lws-admin .desk-hospitality .desk-head p { font-family: var(--body, "DM Sans"), sans-serif; font-size: .78rem; letter-spacing: .16em; }

/* Business switcher: leave room for the chevron on long names */
html.lws-admin .ops-topbar .admin-switch select { padding: 10px 38px 10px 12px; max-width: 220px; text-overflow: ellipsis; background-position: right 12px center; }

/* Photo cards: the status dot sits on the image, no reserved strip */
html.lws-admin .desk-entry[data-status]:has(img) { padding-right: 0; }
html.lws-admin .desk-entry[data-status]:has(img)::after { top: 12px; right: 12px; width: 11px; height: 11px; box-shadow: 0 0 0 3px #ffffffd9, 0 2px 6px #0004; }
html.lws-admin .desk-entry:has(img) { overflow: hidden; }
html.lws-admin .desk-entry:has(img) img { transition: scale .9s cubic-bezier(.16, 1, .3, 1); }
html.lws-admin .desk-entry:has(img):hover img { scale: 1.035; }

/* Quick-action rows (seat a party, reserve a vehicle, record a payment) wrap before the field collapses */
html.lws-admin .desk-workflow { flex-wrap: wrap; row-gap: 12px; }
html.lws-admin .desk-workflow select { flex: 1 1 240px; min-width: 0; }
@media (max-width: 1100px) {
  html.lws-admin :is(.desk-automotive, .desk-wellness).ops-layout { grid-template-columns: 200px minmax(0, 1fr); }
  html.lws-admin .desk-services.ops-layout { grid-template-columns: minmax(0, 1fr) 200px; }
}
