:root { --shell-bg: #fafaf9; --shell-surface: #fff; --shell-ink: #0f172a; --shell-muted: #475569; --shell-border: #e2e8f0; }
html.dark { --shell-bg: #0f172a; --shell-surface: #1e293b; --shell-ink: #f1f5f9; --shell-muted: #cbd5e1; --shell-border: #475569; }
.business-app { background: var(--shell-bg); color: var(--shell-ink); padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); overflow-wrap: anywhere; }
.business-app :is(input,select,textarea) { min-width: 0; max-width: 100%; }
.job-skipped .job-skipped-detail,
.job-skipped-row .fi-ta-text:not(.fi-ta-text-has-badges),
.job-skipped-row .fi-ta-text-description { text-decoration-line: line-through; }
.fi-body:has(.work-navigation) { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
.shell-header { position: sticky; top: 0; z-index: 40; background: #1e293b; color: #fff; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid #475569; }
.shell-header-inner { max-width: 1280px; margin: 0 auto; min-height: 64px; padding: 8px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.shell-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; color: #fff; text-decoration: none; white-space: nowrap; }
.shell-brand img { width: 32px; height: 32px; border-radius: 7px; }
.shell-tools { display: flex; align-items: center; gap: 6px; }
.shell-tools details { position: relative; }
.shell-icon { display: flex; align-items: center; justify-content: center; list-style: none; width: 44px; height: 44px; padding: 10px; cursor: pointer; border-radius: 10px; color: #e2e8f0; background: #334155; position: relative; }
.shell-icon::-webkit-details-marker { display: none; }
.shell-icon svg { width: 22px; height: 22px; }
.shell-icon:hover, details[open] > .shell-icon { background: #475569; }
.shell-popover { position: absolute; right: 0; top: calc(100% + 10px); width: 310px; max-width: calc(100vw - 24px); max-height: min(70vh, 550px); overflow-y: auto; border: 1px solid var(--shell-border); border-radius: 14px; padding: 12px; background: var(--shell-surface); color: var(--shell-ink); box-shadow: 0 16px 40px #0003; z-index: 70; }
.shell-popover a, .shell-popover button, .shell-popover select { min-height: 44px; }
.shell-menu-links { display: grid; grid-template-columns: 1fr; gap: 4px; }
.shell-menu-links a { padding: 10px 12px; display: flex; gap: 12px; align-items: center; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 500; }
.shell-menu-links svg { width: 20px; height: 20px; flex-shrink: 0; color: #059669; }
.shell-menu-links a[aria-current="page"] { background: var(--shell-bg); color: #047857; }
.shell-menu-group { border-top: 1px solid var(--shell-border); padding-top: 10px; margin-top: 10px; }
.shell-menu-group:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.shell-menu-group h3 { margin: 0 12px 6px; color: var(--shell-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.shell-menu-links a:hover { background: var(--shell-bg); }
.shell-popover h2 { font-size: 16px; margin: 0 0 10px; font-weight: 600; color: var(--shell-ink); }
.shell-popover p, .shell-popover time { color: var(--shell-muted); }
.shell-popover select { color: var(--shell-ink); background: var(--shell-bg); border: 1px solid var(--shell-border); border-radius: 8px; padding: 10px; width: 100%; font: inherit; }
.shell-badge { position: absolute; right: -3px; top: -4px; min-width: 19px; height: 19px; border-radius: 20px; background: #dc2626; color: #fff; font: 600 11px/19px sans-serif; text-align: center; padding: 0 4px; }
.shell-notification { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 10px; padding: 12px; border: 1px solid var(--shell-border); border-radius: 12px; background: var(--shell-bg); font-size: 14px; }
.shell-notification p { margin: 0 0 5px; color: var(--shell-ink); overflow-wrap: anywhere; }
.shell-notification time { font-size: 12px; }
.shell-notification-action { display: inline-flex; align-items: center; gap: 7px; color: #047857; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.shell-notification-action:hover { color: #059669; }
.booking-safety-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: 12px; }
.booking-safety-photo { display: block; overflow: hidden; border: 1px solid var(--shell-border); border-radius: 12px; }
.booking-safety-photo img { display: block; }
.booking-safety-photo > span { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; text-decoration: underline; }
.notification-popover { width: 390px; padding: 0; border-radius: 18px; }
.notification-heading { display: flex; align-items: center; gap: 11px; padding: 18px; border-bottom: 1px solid var(--shell-border); }
.notification-heading h2 { margin: 0; font-size: 16px; }
.notification-heading p { margin: 3px 0 0; font-size: 12px; }
.notification-heading-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #d1fae5; color: #047857; flex-shrink: 0; }
.notification-heading-icon svg { width: 21px; height: 21px; }
.notification-count { margin-left: auto; padding: 4px 9px; border-radius: 20px; background: #d1fae5; color: #065f46; font-size: 12px; font-weight: 700; }
.notification-tools { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0 18px; border-bottom: 1px solid var(--shell-border); }
.notification-tool { display: inline-flex; align-items: center; padding: 4px 0; border: 0; background: transparent; color: #047857; font-family: inherit; font-size: 12px; line-height: 1.4; font-weight: 600; cursor: pointer; }
.notification-tool:hover { text-decoration: underline; text-underline-offset: 3px; }
.notification-list { padding: 12px; display: grid; gap: 9px; }
.shell-notification[data-unread="true"] { border-color: #10b98170; background: color-mix(in srgb,var(--shell-surface) 95%,#10b981); }
.notification-type-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e2e8f0; color: #475569; }
.notification-type-icon svg { width: 19px; height: 19px; }
.notification-type-profile { background: #fef3c7; color: #a16207; }
.notification-type-service { background: #dbeafe; color: #2563eb; }
.notification-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2px 8px; margin-bottom: 5px; font-size: 10px; color: var(--shell-muted); }
.notification-meta time { font-size: 10px; white-space: nowrap; }
.notification-meta > span { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.shell-notification h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; font-size: 13px; line-height: 1.5; font-weight: 650; color: var(--shell-ink); }
.shell-notification p { font-size: 12px; line-height: 1.65; color: var(--shell-muted); }
.notification-unread-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; flex-shrink: 0; }
.notification-item-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; }
.notification-clear { color: var(--shell-muted); font-weight: 400; }
.notification-history-link { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--shell-border); color: var(--shell-ink); font-size: 12px; font-weight: 600; text-decoration: none; }
.notification-history-link:hover { background: var(--shell-bg); }
.notification-empty { padding: 22px 12px; text-align: center; }
.notification-empty > span { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%; background: #d1fae5; color: #047857; font-size: 20px; }
.notification-empty h3 { margin: 0 0 5px; font-size: 14px; color: var(--shell-ink); }
.notification-empty p { margin: 0; font-size: 12px; }
html.dark :is(.shell-notification-action,.notification-tool) { color: #6ee7b7; }
html.dark :is(.notification-heading-icon,.notification-count,.notification-empty > span) { background: #064e3b; color: #6ee7b7; }
html.dark .notification-type-icon { background: #334155; color: #cbd5e1; }
html.dark .notification-type-profile { background: #78350f60; color: #fcd34d; }
html.dark .notification-type-service { background: #1e3a8a60; color: #93c5fd; }
.shell-link-button { color: #047857; text-decoration: underline; font-size: 13px; border: 0; background: none; padding: 5px 0; }
html.dark .shell-link-button { color: #6ee7b7; }
.work-navigation { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #1e293b; color: #cbd5e1; border-top: 1px solid #475569; padding: 7px 12px calc(7px + env(safe-area-inset-bottom, 0px)); }
.work-navigation-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.work-navigation a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 49px; border-radius: 10px; font-size: 12px; text-decoration: none; color: inherit; }
.work-navigation svg { width: 21px; height: 21px; }
.work-navigation a[aria-current="page"] { color: #6ee7b7; background: #334155; }
.work-navigation .quick-add { color: #fff; background: #047857; }
.work-navigation .mobile-only { display: none; }
.shell-icon:focus-visible, .work-navigation a:focus-visible, .shell-popover a:focus-visible, .shell-popover button:focus-visible { outline: 3px solid #34d399; outline-offset: 2px; }
.page-toolbar { background: var(--shell-surface); color: var(--shell-ink); border-bottom: 1px solid var(--shell-border); }
.page-toolbar .bg-slate-700 { color: #fff; }
.page-toolbar .overflow-x-auto { scrollbar-width: none; -ms-overflow-style: none; }
.page-toolbar .overflow-x-auto::-webkit-scrollbar { display: none; width: 0; height: 0; }
html:not(.dark) .page-toolbar .text-slate-400 { color: #475569; }
html:not(.dark) .page-toolbar .text-emerald-400 { color: #047857; }
html:not(.dark) .page-toolbar .text-amber-400 { color: #92400e; }
html:not(.dark) .business-app :is(.bg-white,.bg-stone-50,.bg-slate-50) :is(.text-stone-400,.text-slate-400,.text-gray-400) { color: #64748b; }
html.dark .business-app .bg-white:not([class*="dark:bg-"]) { background-color: #1e293b; color: #f1f5f9; }
html.dark .business-app :is(.bg-stone-50,.bg-gray-50,.bg-slate-50):not([class*="dark:bg-"]) { background-color: #0f172a; }
html.dark .business-app :is(.bg-stone-100,.bg-gray-100,.bg-slate-100):not([class*="dark:bg-"]) { background-color: #334155; }
html.dark .business-app :is(.text-stone-900,.text-stone-800,.text-stone-700,.text-gray-900,.text-gray-800,.text-gray-700,.text-slate-900,.text-slate-800,.text-slate-700):not([class*="dark:text-"]) { color: #f1f5f9; }
html.dark .business-app :is(.text-stone-600,.text-stone-500,.text-stone-400,.text-gray-600,.text-gray-500,.text-gray-400,.text-slate-600,.text-slate-500,.text-slate-400):not([class*="dark:text-"]) { color: #cbd5e1; }
html.dark .business-app :is(.border-stone-100,.border-stone-200,.border-stone-300,.border-gray-100,.border-gray-200,.border-gray-300,.border-slate-200,.border-slate-300):not([class*="dark:border-"]) { border-color: #475569; }
html.dark .business-app :is(.bg-emerald-50,.bg-emerald-100):not([class*="dark:bg-"]) { background-color: #123a31; color: #a7f3d0; }
html.dark .business-app :is(.bg-blue-50,.bg-blue-100):not([class*="dark:bg-"]) { background-color: #172f50; color: #bfdbfe; }
html.dark .business-app :is(.bg-red-50,.bg-red-100):not([class*="dark:bg-"]) { background-color: #451d28; color: #fecdd3; }
html.dark .business-app :is(.bg-amber-50,.bg-amber-100):not([class*="dark:bg-"]) { background-color: #44311c; color: #fde68a; }
html.dark .business-app :is(.text-emerald-700,.text-emerald-800):not([class*="dark:text-"]) { color: #a7f3d0; }
html.dark .business-app :is(.text-blue-700,.text-blue-800):not([class*="dark:text-"]) { color: #bfdbfe; }
html.dark .business-app :is(.text-red-700,.text-red-800):not([class*="dark:text-"]) { color: #fecdd3; }
html.dark .business-app :is(.text-amber-700,.text-amber-800):not([class*="dark:text-"]) { color: #fde68a; }
html.dark .business-app :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([class*="dark:bg-"]) { background-color: #0f172a; color: #f1f5f9; border-color: #64748b; }
@media(max-width: 767px) {
    .shell-header-inner { padding: 8px 12px; gap: 8px; }
    .shell-brand { font-size: 14px; gap: 6px; }
    .shell-brand img { width: 28px; height: 28px; }
    .shell-tools { gap: 4px; }
    .shell-icon { width: 40px; }
    .shell-popover { position: fixed; top: calc(70px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; width: auto; max-width: none; }
    .work-navigation-inner { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
    .work-navigation .desktop-only { display: none; }
    .work-navigation .mobile-only { display: flex; }
    .work-navigation a { font-size: 11px; }
}
@media print { .shell-header,.work-navigation,.shell-tools { display: none !important; } .business-app { padding-bottom: 0; } }
