:root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #152235; background: #f4f6f8; }
* { box-sizing: border-box; }
body { margin: 0; }
.site-footer { width: 100%; padding: 18px 20px; border-top: 1px solid #dfe5ea; color: #718090; background: #eef2f5; font-size: 12px; text-align: center; }
.page-shell { width: 100%; flex: 1; display: grid; place-items: center; }
header { position: relative; min-height: 112px; padding: 26px clamp(20px, 5vw, 72px); color: white; background: #11283d; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo { display: block; object-fit: cover; object-position: center; background: white; }
.brand-heading { display: flex; align-items: center; gap: 20px; }
.logo-home-link { display: block; border-radius: 8px; }
.logo-home-link:focus-visible { outline: 3px solid #72d6b0; outline-offset: 4px; }
.header-logo { width: 210px; height: 72px; border-radius: 7px; }
h1 { margin: 3px 0 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; }
.eyebrow { color: #72d6b0; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
button { border: 1px solid #d9e0e6; border-radius: 10px; background: white; color: #152235; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.account-menu { position: relative; flex: 0 0 auto; }
.account-menu summary { min-width: 86px; list-style: none; cursor: pointer; display: flex; align-items: center; flex-direction: column; gap: 5px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-avatar { width: 48px; height: 48px; border: 2px solid #72d6b0; border-radius: 50%; background: #1d425f; color: white; display: grid; place-items: center; font-size: 15px; font-weight: 850; letter-spacing: .04em; }
.account-name { max-width: 130px; color: #d8e4ec; font-size: 12px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu[open] .account-avatar { background: #2a9d7c; }
.account-dropdown { position: absolute; z-index: 30; top: calc(100% + 12px); right: 0; width: 230px; padding: 8px; border: 1px solid #d9e0e6; border-radius: 13px; background: white; color: #152235; box-shadow: 0 18px 48px #071a2b55; display: grid; gap: 3px; }
.account-dropdown a, .account-dropdown button { width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: transparent; color: #152235; font: inherit; font-size: 13px; font-weight: 750; text-align: left; text-decoration: none; display: block; }
.account-dropdown a:hover, .account-dropdown button:hover { background: #eef5f8; }
.account-dropdown form { margin: 4px 0 0; padding-top: 5px; border-top: 1px solid #e2e7eb; }
.account-dropdown form button { color: #9a3030; }
main { padding: 26px clamp(14px, 4vw, 64px) 60px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.toolbar p { margin: 5px 0 0; color: #667486; font-size: 13px; }
.toolbar-actions { display: grid; justify-items: end; gap: 8px; }
.planner-navigation, .view-and-refresh, .view-switch { display: flex; align-items: center; gap: 8px; }
.view-switch { padding: 3px; gap: 2px; border: 1px solid #d9e0e6; border-radius: 11px; background: white; }
.view-switch button { border: 0; padding: 7px 11px; background: transparent; }
.view-switch button.active { background: #11283d; color: white; }
.task-filters { margin-bottom: 18px; padding: 14px; border: 1px solid #dfe5ea; border-radius: 14px; background: white; display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); align-items: end; gap: 12px; }
.task-filters .search-filter { min-width: min(260px,100%); }
.task-filters label { display: grid; gap: 6px; color: #667486; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.task-filters input, .task-filters select { width: 100%; min-height: 42px; border: 1px solid #cfd8df; border-radius: 9px; padding: 9px 11px; background: white; color: #152235; font: inherit; font-size: 14px; text-transform: none; }
.task-filters input:focus, .task-filters select:focus { outline: 3px solid #1598da33; border-color: #1598da; }
#clearFilters { min-height: 42px; white-space: nowrap; }
.my-day-summary { margin-bottom: 20px; }
.my-day-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.my-day-heading h2 { margin: 0; color: #11283d; font-size: 25px; }
.my-day-heading p { margin: 0; color: #667486; font-size: 13px; }
.my-day-cards { display: grid; gap: 14px; }
.my-day-card { padding: clamp(18px, 4vw, 30px); border-radius: 18px; background: linear-gradient(135deg,#11283d,#1c4563); color: white; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; box-shadow: 0 16px 38px #10283d2b; }
.my-day-info { display: grid; gap: 5px; }
.my-day-label { color: #72d6b0; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.my-day-employee { color: #b9cbd7; font-size: 12px; font-weight: 750; }
.my-day-info h3 { margin: 2px 0 0; font-size: clamp(23px,4vw,34px); }
.my-day-time { color: #80d5ff; font-size: 18px; }
.my-day-info p { margin: 2px 0 0; color: #d9e6ee; }
.my-day-address { font-size: 13px; }
.my-day-actions { width: min(330px,100%); display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.my-day-action { min-height: 44px; border: 1px solid #ffffff40; border-radius: 10px; padding: 11px 13px; background: #ffffff12; color: white; font: inherit; font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.my-day-action:hover { background: #ffffff22; }
.my-day-action.primary { border-color: #72d6b0; background: #72d6b0; color: #10283d; }
.my-day-action:disabled { opacity: .55; cursor: wait; }
.my-day-empty { padding: 22px; border: 1px dashed #b8c5ce; border-radius: 14px; background: white; color: #667486; }
.planner { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.planner.view-day { grid-template-columns: minmax(280px, 760px); justify-content: center; }
.planner.view-month { display: block; overflow-x: auto; }
.month-grid { min-width: 840px; display: grid; grid-template-columns: repeat(7, minmax(115px, 1fr)); gap: 1px; border: 1px solid #dfe5ea; border-radius: 14px; overflow: hidden; background: #dfe5ea; }
.month-weekday { padding: 10px; background: #eef2f5; color: #687687; font-size: 11px; font-weight: 800; text-align: center; text-transform: uppercase; }
.month-day { min-height: 135px; padding: 9px; background: white; }
.month-day.outside { background: #f6f7f8; color: #9aa4ad; }
.month-day.today { box-shadow: inset 0 0 0 2px #2a9d7c; }
.month-number { display: block; margin-bottom: 7px; font-weight: 800; }
.month-task { width: 100%; margin-bottom: 5px; padding: 6px 7px; border: 0; border-left: 3px solid #2a9d7c; border-radius: 5px; background: #eaf8f3; text-align: left; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month-task.in_progress { border-left-color: #f1a33c; background: #fff5e6; }
.month-task.completed { opacity: .62; border-left-color: #718096; background: #eef1f4; }
.day { border: 1px solid #dfe5ea; border-radius: 14px; background: white; overflow: hidden; }
.day header { min-height: 0; padding: 15px; background: white; color: #152235; border-bottom: 1px solid #e7ebef; display: block; }
.day header span { display: block; color: #768395; font-size: 12px; text-transform: uppercase; }
.day header strong { font-size: 22px; }
.timeline-scroll { max-height: min(70vh, 720px); overflow-y: scroll; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
.timeline-scroll::-webkit-scrollbar { width: 12px; }
.timeline-scroll::-webkit-scrollbar-track { background: #eef2f5; }
.timeline-scroll::-webkit-scrollbar-thumb { border: 3px solid #eef2f5; border-radius: 999px; background: #82909d; }
.timeline-scroll:focus-visible { outline: 3px solid #2563eb; outline-offset: -3px; }
.timeline { position: relative; height: 648px; margin-left: 42px; border-left: 1px solid #e1e6ea; background: repeating-linear-gradient(to bottom, #fff 0, #fff 71px, #e8ecef 72px); }
.hours { position: absolute; inset: 0 auto 0 -42px; width: 42px; color: #8a96a3; font-size: 10px; }
.hours span { position: absolute; transform: translateY(-6px); left: 5px; }
.tasks { position: absolute; inset: 0 7px; }
.task { position: absolute; left: 0; right: 0; overflow: hidden; border: 0; border-left: 4px solid #2a9d7c; border-radius: 8px; padding: 10px; background: #eaf8f3; display: grid; align-content: start; gap: 4px; box-shadow: 0 2px 7px #16324814; cursor: pointer; }
.task.overlapping-task { padding-inline: 7px; }
.task:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.task.in_progress { border-color: #f1a33c; background: #fff5e6; }
.task.completed { opacity: .62; border-color: #718096; background: #eef1f4; }
.task.sync-failed { border-color: #c94141; background: #fff0f0; }
.task.sync-pending { border-color: #d58a24; background: #fff7e8; }
.time { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 800; color: #3c5b57; }
.description, .client, .person { font-size: 12px; color: #607080; }
.description:empty { display: none; }
.empty { color: #97a2ae; font-size: 13px; padding: 18px 8px; }
.error { padding: 18px; border: 1px solid #f1b5b5; background: #fff0f0; border-radius: 10px; color: #8a2828; }
.client-panel { position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; width: min(430px, 92vw); padding: 28px; overflow-y: auto; background: white; box-shadow: -12px 0 40px #0f223533; transform: translateX(105%); transition: transform .22s ease; }
.client-panel.open { transform: translateX(0); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #e2e7eb; padding-bottom: 18px; }
.panel-head h2 { margin: 4px 0 0; font-size: 27px; }
.panel-head .eyebrow { color: #218365; }
.panel-head button { font-size: 24px; padding: 2px 10px; }
.muted { color: #788594; font-size: 13px; }
.wefact-link { display: inline-flex; margin-top: 8px; padding: 11px 14px; border-radius: 9px; background: #11283d; color: white; font-size: 13px; font-weight: 800; text-decoration: none; }
.wefact-link:hover { background: #1d425f; }
.work-order-button { display: block; width: 100%; margin-top: 10px; border-color: #1598da; background: #1598da; color: white; }
.work-order-button[hidden] { display: none; }
.work-order-button:hover { background: #087eb8; }
.work-order-button:disabled { opacity: .55; cursor: wait; }
.download-work-order { display: block; width: 100%; margin-top: 10px; padding: 11px 14px; border: 1px solid #218365; border-radius: 10px; background: #eaf8f3; color: #187357; font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }
.planner-task-actions { margin-top: 10px; display: grid; gap: 8px; }
.planner-task-actions[hidden] { display: none; }
.planner-task-actions button { width: 100%; }
.danger-button { border-color: #c75a5a; background: #fff0f0; color: #9b2f2f; }
.task[draggable="true"] { cursor: grab; }
.task.dragging { opacity: .45; }
.tasks.drag-target { outline: 3px dashed #1598da; outline-offset: -3px; background: #e9f7fe88; }
.card-edit-button { position: absolute; right: 6px; bottom: 6px; padding: 5px 8px; border-color: #87bca9; background: #fff; color: #176f55; font-size: 11px; line-height: 1; box-shadow: 0 2px 5px #11283d22; }
.download-work-order:hover { background: #d9f1e8; }
.download-work-order[hidden] { display: none; }
.work-order-ready-actions { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.work-order-ready-actions[hidden] { display: none; }
.work-order-ready-actions .download-work-order { margin-top: 0; display: flex; align-items: center; justify-content: center; }
.work-order-email-button { border-color: #178869; background: #178869; color: white; }
.work-order-email-button:hover { background: #106c53; }
.work-order-available-button { width: 100%; margin-top: 10px; border-color: #218365; background: #eaf8f3; color: #187357; }
.work-order-available-button[hidden] { display: none; }
.work-order-status-card { margin-top: 10px; padding: 13px; border: 1px solid #9ed8c4; border-radius: 11px; background: #eef9f5; display: grid; gap: 5px; color: #285847; }
.work-order-status-card[hidden] { display: none; }
.work-order-status-card strong { color: #12684e; }
.work-order-status-card span { font-size: 13px; }
.work-order-status-card button { margin-top: 5px; border-color: #218365; background: white; color: #176f55; }
.work-order-ready-dialog { width: min(560px,calc(100vw - 24px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 28px 90px #06152466; }
.work-order-ready-dialog::backdrop { background: #081827aa; backdrop-filter: blur(2px); }
.work-order-ready-content { padding: clamp(28px,6vw,46px); text-align: center; }
.work-order-ready-content h2 { margin: 8px 0 12px; color: #11283d; font-size: clamp(26px,5vw,36px); }
.work-order-ready-content > p { color: #697987; line-height: 1.55; }
.ready-check { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: #ddf5eb; color: #168261; display: grid; place-items: center; font-size: 32px; font-weight: 900; }
.work-order-ready-content .work-order-ready-actions { margin-top: 26px; }
.ready-close-button { margin-top: 12px; border: 0; background: transparent; color: #647584; }
.work-order-dialog { width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 28px 90px #06152466; }
.work-order-dialog::backdrop { background: #081827aa; backdrop-filter: blur(2px); }
.email-work-order-dialog { width: min(600px,calc(100vw - 24px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 28px 90px #06152466; }
.email-work-order-dialog::backdrop { background: #081827aa; backdrop-filter: blur(2px); }
.work-order-form { padding: clamp(20px, 4vw, 38px); }
.appointment-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 28px 90px #06152466; }
.appointment-dialog::backdrop { background: #081827aa; backdrop-filter: blur(2px); }
.appointment-form { padding: clamp(20px, 4vw, 38px); }
.customer-search-label { position: relative; }
.customer-search-results { position: absolute; z-index: 5; top: 70px; right: 0; left: 0; max-height: 280px; overflow-y: auto; border: 1px solid #cbd7df; border-radius: 10px; background: white; box-shadow: 0 14px 35px #10283d2b; }
.customer-search-results[hidden] { display: none; }
.customer-search-result { width: 100%; padding: 11px 12px; border: 0; border-bottom: 1px solid #edf1f3; border-radius: 0; background: white; color: #172a3b; text-align: left; display: grid; gap: 3px; }
.customer-search-result:hover, .customer-search-result:focus { background: #edf8fd; }
.customer-search-result strong { font-size: 13px; }
.customer-search-result span { color: #6b7885; font-size: 11px; }
.customer-search-empty { padding: 13px; color: #788594; font-size: 13px; }
.selected-quote { width: fit-content; padding: 5px 8px; border-radius: 999px; background: #e7f5fc; color: #0876ae !important; font-weight: 800 !important; }
.customer-search-result.quote-result { border-left: 4px solid #1598da; background: #f6fbfe; }
.work-order-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid #e0e6eb; }
.work-order-head h2 { margin: 4px 0; font-size: 30px; }
.work-order-head p { margin: 0; color: #697787; }
.work-order-head button { align-self: flex-start; padding: 2px 10px; font-size: 25px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid label { display: grid; align-content: start; gap: 7px; color: #27394a; font-size: 13px; font-weight: 750; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid #cbd5dd; border-radius: 9px; padding: 11px 12px; background: white; color: #152235; font: inherit; }
.form-grid textarea { resize: vertical; line-height: 1.45; }
.form-grid small { color: #718090; font-weight: 500; line-height: 1.4; }
.photo-field { display: grid; gap: 8px; }
.photo-field > strong { color: #27394a; font-size: 13px; }
.photo-inputs { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-choice { display: inline-flex !important; align-items: center; justify-content: center; min-width: 190px; padding: 12px 15px; border: 1px solid #1598da; border-radius: 9px; background: #eef8fd; color: #086d9f !important; cursor: pointer; }
.photo-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.signature-section { margin-top: 5px; padding: 20px; border: 1px solid #d7e0e7; border-radius: 12px; background: #f7f9fa; }
.signature-section h3 { margin: 0 0 17px; color: #11283d; }
.signature-fields { margin-bottom: 17px; }
.signature-label { display: grid; gap: 8px; color: #27394a; font-size: 13px; font-weight: 750; }
#signatureCanvas { width: 100%; height: 180px; border: 2px dashed #9eabb6; border-radius: 9px; background: white; cursor: crosshair; touch-action: none; }
#clearSignature { justify-self: start; margin-top: 10px; }
.photo-status { padding: 12px; border-radius: 9px; background: #eef5f8; color: #345163; font-size: 13px; }
.photo-status.error { background: #fff0f0; color: #8a2828; }
.work-order-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.primary-button { border-color: #11283d; background: #11283d; color: white; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.detail-section { margin-top: 24px; padding-top: 4px; display: grid; gap: 18px; }
.detail-section + .detail-section { border-top: 1px solid #e2e7eb; padding-top: 22px; }
.detail-section h3 { margin: 0; font-size: 17px; }
.detail-label { color: #788594; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.task-note { margin: -10px 0 0; white-space: pre-wrap; line-height: 1.5; }
.note-disclosure { margin-top: -10px; border: 1px solid #dbe3e9; border-radius: 10px; background: #f7f9fa; overflow: hidden; }
.note-disclosure summary { padding: 12px 14px; cursor: pointer; display: grid; gap: 6px; color: #155b72; }
.note-disclosure summary::marker { content: ""; }
.note-summary-label::after { content: " ▾"; }
.note-disclosure[open] .note-summary-label::after { content: " ▴"; }
.note-preview { color: #607080; font-size: 13px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.note-disclosure[open] .note-preview { display: none; }
.note-disclosure .task-note { margin: 0; padding: 14px; border-top: 1px solid #e2e7eb; background: white; }
.attachments { display: grid; gap: 8px; margin-top: -10px; }
.attachments a { padding: 10px 12px; border-radius: 8px; background: #eef5f8; color: #155b72; text-decoration: none; font-weight: 700; font-size: 13px; }
.attachments a:hover { background: #e0eef3; }
.client-details { display: grid; gap: 18px; }
.client-details > div { display: grid; gap: 3px; }
.client-details span { color: #788594; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.client-details a, .client-details strong { color: #172a3b; text-decoration: none; }
.client-details a:hover { text-decoration: underline; }
.backdrop { position: fixed; z-index: 15; inset: 0; background: #0c1c2d66; }
@media (max-width: 650px) {
  header { align-items: flex-start; flex-direction: column; }
  main { padding-inline: 10px; }
  .planner { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; gap: 18px; }
  .day { width: 100%; }
  .timeline-scroll { max-height: 62vh; }
  .toolbar { align-items: flex-start; gap: 12px; }
  .toolbar-actions { width: 100%; justify-items: stretch; }
  .planner-navigation, .view-and-refresh { justify-content: flex-end; }
  .task-filters { grid-template-columns: 1fr 1fr; }
  .task-filters .search-filter { grid-column: 1 / -1; }
  #clearFilters { grid-column: 1 / -1; }
  .my-day-heading { align-items: flex-start; flex-direction: column; }
  .my-day-card { grid-template-columns: 1fr; }
  .my-day-actions { width: 100%; }
  .view-switch { align-self: stretch; }
  .brand-heading { align-items: flex-start; flex-direction: column; }
  .account-menu { position: absolute; top: 20px; right: 14px; }
  .header-logo { width: min(260px, 100%); height: 88px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .work-order-actions { align-items: stretch; flex-direction: column-reverse; }
  .work-order-actions button { width: 100%; }
}
@media (min-width: 651px) and (max-width: 950px) {
  .task-filters { grid-template-columns: 2fr 1fr 1fr; }
  #clearFilters { grid-column: 1 / -1; justify-self: end; }
}
.auth-body { min-height: 100vh; display: flex; flex-direction: column; background: #eef2f5; }
.auth-body .page-shell { padding: 20px; }
.auth-card { width: min(430px, 100%); padding: 34px; border-radius: 18px; background: white; box-shadow: 0 18px 50px #10283d1a; }
.auth-logo { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; margin-bottom: 20px; border-radius: 8px; }
.auth-card h1 { color: #11283d; font-size: 30px; margin-bottom: 24px; }
.auth-card form, .admin-page form { display: grid; gap: 16px; }
.auth-card label, .admin-page label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.auth-card input, .admin-page input, .admin-page select { width: 100%; border: 1px solid #cfd8df; border-radius: 9px; padding: 12px; background: white; font: inherit; }
.admin-page { max-width: 900px; margin: 40px auto; padding: 24px; }
.admin-page table { width: 100%; border-collapse: collapse; margin: 24px 0 36px; background: white; }
.admin-page th, .admin-page td { text-align: left; padding: 12px; border-bottom: 1px solid #e2e7eb; }
.inline-group-form { min-width: 340px; display: flex !important; gap: 7px !important; }
.inline-group-form .inline-id-input { width: 92px; padding: 8px; }
.inline-group-form select { min-width: 130px; padding: 8px; }
.inline-group-form button { padding: 8px 10px; }
.password-reset { min-width: 210px; }
.password-reset summary { color: var(--blue); cursor: pointer; font-weight: 700; white-space: nowrap; }
.password-reset form { margin-top: 10px; gap: 8px !important; }
.password-reset label { gap: 5px; font-size: .82rem; }
.password-reset input { min-width: 190px; padding: 8px; }
.password-reset button { padding: 8px 10px; }
.password-reset small { max-width: 220px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.admin-help { color: #667486; margin-top: -10px; }
.small-action { display: inline-block; white-space: nowrap; padding: 7px 10px; border-radius: 8px; background: #11283d; color: white; font-size: 12px; font-weight: 700; text-decoration: none; }
.linked-badge { display: inline-block; padding: 6px 9px; border-radius: 999px; background: #eaf8f3; color: #187357; font-size: 12px; font-weight: 800; }
.error-cell { color: #8a2828; }
.landing-page { position: relative; width: min(980px, 100%); padding: 28px; }
.landing-account-menu { position: absolute; top: 28px; right: 28px; z-index: 5; }
.landing-account-menu .account-name { color: #465869; }
.landing-account-menu .account-avatar { background: #11283d; }
.landing-hero { margin-bottom: 28px; }
.landing-logo { width: min(330px, 100%); height: auto; aspect-ratio: 3 / 1; object-fit: contain; margin-bottom: 24px; border-radius: 8px; }
.landing-hero h1 { color: #11283d; margin-top: 8px; }
.landing-hero p { color: #667486; }
.landing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.landing-tile { min-height: 245px; padding: 26px; border: 1px solid #dbe3e9; border-radius: 18px; background: white; color: #152235; text-decoration: none; box-shadow: 0 12px 35px #10283d12; display: flex; flex-direction: column; justify-content: space-between; transition: transform .18s ease, box-shadow .18s ease; }
.landing-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 42px #10283d20; }
.landing-primary { background: #11283d; color: white; border-color: #11283d; }
.landing-tile h2 { margin: 0 0 8px; font-size: 25px; }
.landing-tile p { margin: 0; color: #697787; line-height: 1.5; }
.landing-primary p { color: #c1ced8; }
.landing-tile strong { color: #218365; }
.landing-primary strong { color: #72d6b0; }
.tile-icon { font-size: 34px; }
.landing-logout { margin-top: 24px; }
.ideas-section { margin-top: 28px; padding: clamp(22px, 4vw, 32px); border: 1px solid #cddbe5; border-radius: 18px; background: #f7fafc; box-shadow: 0 12px 35px #10283d12; }
.ideas-section h2 { margin: 6px 0; color: #11283d; font-size: 27px; }
.ideas-section > div > p { margin: 0; color: #667486; }
.idea-form { margin-top: 22px; display: grid; gap: 7px; }
.idea-form label { color: #263a4c; font-size: 13px; font-weight: 800; }
.idea-form > div { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.idea-form textarea { width: 100%; min-height: 78px; resize: vertical; }
.idea-form button { height: 44px; }
.idea-list { margin: 22px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.idea-list li { padding: 14px; border: 1px solid #dce4ea; border-radius: 11px; background: white; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.idea-list span { color: #263747; line-height: 1.45; white-space: pre-wrap; }
.idea-list form { flex: 0 0 auto; }
.idea-list button { padding: 7px 9px; border-color: #d9a6a6; background: #fff4f4; color: #8a2828; font-size: 12px; }
@media (max-width: 650px) {
  .landing-page { padding-top: 112px; }
  .landing-account-menu { top: 18px; right: 20px; }
  .idea-form > div { grid-template-columns: 1fr; }
  .idea-list li { align-items: flex-start; flex-direction: column; }
}
.settings-page { width: min(760px, 100%); }
.settings-card { margin-top: 28px; padding: clamp(20px, 4vw, 34px); border: 1px solid #dbe3e9; border-radius: 18px; background: white; box-shadow: 0 12px 35px #10283d12; }
.settings-card h2 { margin-top: 0; }
.settings-card small { color: #718090; font-weight: 500; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.success-message { padding: 15px; border: 1px solid #9fd8c5; border-radius: 10px; background: #eaf8f3; color: #187357; font-weight: 700; }
.connection-summary { margin: 28px 0 0; border-top: 1px solid #e2e7eb; }
.connection-summary div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf0f2; }
.connection-summary dt { color: #788594; font-size: 12px; font-weight: 800; }
.connection-summary dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }

/* Openbare website */
.public-home { width: min(1180px, 100%); margin: 0 auto; color: #15283a; }
.public-nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.public-nav img { display: block; width: min(240px, 34vw); max-height: 56px; object-fit: contain; }
.public-nav > div { display: flex; align-items: center; gap: 22px; }
.public-nav a { color: #304659; font-weight: 750; text-decoration: none; }
.public-nav .public-login, .public-cta { padding: 12px 18px; border-radius: 10px; background: #11283d; color: white; }
.public-hero { min-height: 560px; padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 70px); border-radius: 26px; background: linear-gradient(135deg,#10283d 0%,#173f54 68%,#17836d 140%); color: white; display: grid; grid-template-columns: 1.35fr .8fr; align-items: center; gap: clamp(35px,7vw,90px); box-shadow: 0 25px 70px #10283d2c; }
.public-hero h1 { max-width: 780px; margin: 12px 0 20px; font-size: clamp(40px,6vw,72px); line-height: 1.02; letter-spacing: -.04em; }
.public-hero > div > p { max-width: 690px; color: #d7e2e8; font-size: clamp(17px,2vw,21px); line-height: 1.65; }
.public-hero .eyebrow { color: #65d5ae; }
.public-hero-actions { margin-top: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.public-hero-actions a { color: white; font-weight: 800; text-decoration: none; }
.public-hero-actions .public-cta { background: #20a47c; box-shadow: 0 10px 24px #06192555; }
.public-hero aside { padding: 28px; border: 1px solid #ffffff30; border-radius: 18px; background: #ffffff10; backdrop-filter: blur(8px); }
.public-hero aside strong { font-size: 20px; }
.public-hero aside ul { margin: 20px 0 0; padding-left: 20px; color: #dce8ed; line-height: 2; }
.public-section { padding: clamp(70px,10vw,120px) clamp(8px,4vw,44px); }
.public-section h2, .public-contact h2 { max-width: 800px; margin: 10px 0 18px; color: #11283d; font-size: clamp(32px,4vw,50px); line-height: 1.1; letter-spacing: -.025em; }
.public-section > p, .public-section > div > p { max-width: 760px; color: #667787; font-size: 17px; line-height: 1.65; }
.public-feature-grid { margin-top: 45px; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.public-feature-grid article, .knowledge-grid article, .license-grid article { padding: 25px; border: 1px solid #dce5eb; border-radius: 17px; background: white; box-shadow: 0 10px 30px #10283d0b; }
.public-feature-grid article > span { color: #1b9572; font-size: 13px; font-weight: 900; }
.public-feature-grid h3, .license-grid h3 { margin: 22px 0 10px; font-size: 22px; }
.public-feature-grid p, .knowledge-grid p, .license-grid p { color: #6a7887; line-height: 1.55; }
.knowledge-section { margin-inline: calc(50% - 50vw); padding-inline: max(calc((100vw - 1100px)/2),24px); background: #eef4f6; }
.knowledge-grid, .license-grid { margin-top: 38px; display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.knowledge-grid { grid-template-columns: repeat(4,1fr); }
.knowledge-grid strong { color: #183044; font-size: 19px; }
.knowledge-grid span { color: #168567; font-size: 13px; font-weight: 800; }
.license-highlight { border: 2px solid #209a78 !important; transform: translateY(-10px); }
.license-highlight > span { color: #198263; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.license-grid strong { color: #168567; }
.license-note { margin-top: 25px; font-size: 14px !important; }
.public-contact { margin-bottom: 30px; padding: clamp(34px,6vw,65px); border-radius: 22px; background: #11283d; color: white; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.public-contact h2 { color: white; }
.public-contact p { margin: 8px 0; color: #cbd7df; }
.public-contact a { flex: 0 0 auto; padding: 14px 18px; border-radius: 10px; background: #1d9b76; color: white; font-weight: 800; text-decoration: none; }
.auth-back { display: block; margin-top: 18px; color: #426378; font-size: 14px; text-align: center; }
.platform-page { width: min(1180px,100%); }
.platform-page > .eyebrow { display: block; margin-top: 26px; }
.platform-page td small { display: block; margin-top: 4px; color: #7b8995; }
.organization-license-form { min-width: 480px; display: grid; grid-template-columns: 1fr 1fr 90px auto; align-items: end; gap: 8px; }
.organization-license-form select, .organization-license-form input { min-width: 0; }
.license-status { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #e7edf1; color: #445b6c; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.license-status.active { background: #ddf4eb; color: #147456; }
.license-status.trial { background: #e7efff; color: #315d9d; }
.license-status.suspended { background: #ffe4e4; color: #9a3030; }
.platform-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.platform-form-grid .settings-card { height: fit-content; }
@media (max-width: 850px) { .platform-form-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .work-order-ready-actions { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .public-nav > div > a:not(.public-login) { display: none; }
  .public-hero { min-height: auto; grid-template-columns: 1fr; }
  .public-feature-grid, .knowledge-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .public-nav { min-height: 66px; }
  .public-nav img { width: 190px; max-width: 52vw; }
  .public-nav .public-login { padding: 10px 13px; font-size: 14px; }
  .public-hero { margin-inline: -8px; padding: 45px 24px; border-radius: 18px; }
  .public-hero h1 { font-size: 40px; }
  .public-feature-grid, .knowledge-grid, .license-grid { grid-template-columns: 1fr; }
  .license-highlight { transform: none; }
  .public-contact { align-items: flex-start; flex-direction: column; }
}
