/* SurfLocal.net Business Tools Dashboard.
   Loaded after the preserved demo, layout, and appearance styles.
   The supplied logo image is never resized out of proportion or modified. */
:root, :root[data-pro-appearance="light"] {
  color-scheme: light;
  --pro-ground: #edf3fa;
  --pro-section: #ffffff;
  --pro-card: #ffffff;
  --pro-tint: #e8f0fc;
  --pro-rim: #a2b6cf;
  --pro-rule: #cfdaea;
  --pro-ink: #18304f;
  --pro-muted: #53657c;
  --pro-accent: #865408;
  --pro-input: #ffffff;
  --pro-input-edge: #90a7c4;
  --pro-action: #245dcc;
  --pro-action-ink: #ffffff;
  --pro-panel-top: #f7faff;
  --pro-panel-bottom: #eaf1fb;
  --pro-shadow: 0 12px 30px #17365412;
  --pro-focus: #124aaf;
  --pro-chip: #e6eef9;
  --muted: var(--pro-muted);
  --line: var(--pro-rule);
  --shadow: var(--pro-shadow);
}
html, body { background: var(--pro-ground); color: var(--pro-ink); }

/* Fixed light appearance. Brand, account label and navigation wrap naturally
   without covering the emblem or stretching the buttons across the page. */
html body .demo-top {
  gap: 12px 20px;
  flex-wrap: wrap;
  min-height: 82px;
  padding-top: 11px;
  padding-bottom: 11px;
  background: var(--pro-section);
  border-color: var(--pro-rule);
}
.demo-top .pro-id {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-width: 0;
}
.demo-top .pro-id .pro-brand {
  flex: 0 1 auto;
  gap: 8px;
  min-width: 0;
  min-height: 58px;
  padding: 0 10px 0 3px;
  border: 1px solid #24436b;
  border-radius: 14px;
  background: #061632;
  text-decoration: none;
}
.demo-top .sl-brand-emblem {
  position: relative;
  display: block;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.demo-top .sl-brand-emblem-window {
  position: absolute;
  display: block;
  left: 0;
  top: 14.090909%;
  width: 100%;
  height: 71.818182%;
  overflow: hidden;
  border-radius: 4px;
}
.demo-top .pro-id .pro-brand .sl-brand-emblem img {
  position: absolute;
  display: block;
  width: 114%;
  max-width: none;
  height: auto;
  left: -9.090909%;
  top: -20.253165%;
  aspect-ratio: auto;
  object-fit: initial;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.demo-top .sl-brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: #f4f8ff;
  font: italic 900 25px/1.1 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -1.1px;
  white-space: nowrap;
  filter: drop-shadow(0 1px 1px #000);
}
.demo-top .sl-brand-surf { color: #e9f3ff; }
.demo-top .sl-brand-local { color: #f1c36c; }
.demo-top .pro-id .pro-brand .sl-brand-domain {
  color: #b9d7ff;
  font-size: .70em;
  font-weight: 800;
  letter-spacing: -.4px;
  margin-left: 1px;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .demo-top .sl-brand-surf {
    background: linear-gradient(180deg,#fff 4%,#f1f6fd 30%,#b6c9df 53%,#fff 58%,#a7bbd4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .demo-top .sl-brand-local {
    background: linear-gradient(180deg,#fff3b8 0%,#ffe18b 30%,#c98c25 52%,#fff0b4 58%,#e6ae45 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.demo-top .demo-label {
  flex: 1 1 150px;
  max-width: none;
  color: var(--pro-muted);
  text-align: left;
}
.demo-top nav {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  padding-top: 0;
}

/* Complete tool surfaces use the fixed light palette. Documents and customer
   previews retain their paper appearance. */
html body #main > .workspace {
  background: transparent !important;
  color: var(--pro-ink) !important;
}
#main h1, #main h2, #main h3, #demo-dialog h2,
#main .wide h1, #main .billing-sidebar h1, #main .billing-content > h1 {
  color: var(--pro-ink);
}
#main .panel, #main .office-head, #main .app-top, #main .app-tabs,
#main .lead-shell, #main .lead-card, #main .summary-stat,
#main .team-card, #main .file-tile, #main .filters,
#main .stat, #main .stat.green, #main .tool-select,
#main .reader, #main .empty-tool, #main .empty,
#demo-dialog {
  color: var(--pro-ink);
  background: var(--pro-card);
  border-color: var(--pro-rule);
}
#main .office-head {
  background: linear-gradient(115deg,var(--pro-panel-top),var(--pro-panel-bottom));
}
#main .account-grid dd, #main .app-top strong, #main .lead-title,
#main .file-tile strong, #main .team-help h3, #main .help-list b,
#main .stat strong, #main .summary-stat strong, #main .seat-summary strong {
  color: var(--pro-ink);
}
#main .muted, #main .wide > p, #main .workspace > p,
#main .office-head .sub, #main .account-grid dt,
#main .summary-stat span, #main .stat span,
#main .lead-message, #main .team-card span, #main .team-card small,
#main .team-help p, #main .seat-summary span, #main .help-list,
#main .field > span, #main .form-actions .note, #main .all-check,
#main .bulk-actions,
#main .app-tabs .tab-caption, #main .tool-select small,
#main .empty-tool p, #main .modal-note, #demo-dialog .modal-note {
  color: var(--pro-muted);
}
html body #main .workspace > p { color: var(--pro-muted) !important; }
html body:has(.demo-top .pro-id) #main :is(.file-tile small,.lead-meta,.lead-source,.bulk-actions > span) {
  color: var(--pro-muted) !important;
  background: transparent;
}
#main .field, #main .filters .field, #demo-dialog .field { color: var(--pro-ink); }
#main .field input, #main .field select, #main .field textarea,
#main .bill-items input, #main .payroll-table input, #main .payroll-table select,
#demo-dialog .field input, #demo-dialog .field select, #demo-dialog .field textarea {
  color: var(--pro-ink);
  background-color: var(--pro-input);
  border-color: var(--pro-input-edge);
  box-shadow: inset 0 1px 2px #0000000a;
}
#main input::placeholder, #main textarea::placeholder,
#demo-dialog input::placeholder, #demo-dialog textarea::placeholder {
  color: var(--pro-muted);
  opacity: 1;
}
#main select, #demo-dialog select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2394abc5' stroke-width='1.8'/%3E%3C/svg%3E");
}
#main .simple-table th { color: var(--pro-ink); background: var(--pro-tint); }
#main .simple-table th, #main .simple-table td,
#main .lead-detail, #main .section-tabs, #main .subtle-divider {
  border-color: var(--pro-rule);
}
#main .detail-grid div, #main .seat-summary > div {
  background: var(--pro-tint);
  color: var(--pro-ink);
}
#main .detail-grid small { color: var(--pro-muted); }
#main .finance-label { color: var(--pro-accent) !important; }
#main .text-button, #main .subtle-link {
  color: #174eac;
}
#main .lead-hero, #main .lead-hero h1, #main .lead-hero p,
#main .lead-hero .sample-eyebrow { color: #fff !important; }
#main .lead-hero { background: linear-gradient(110deg,#0d386d,#1b5cb2) !important; }
#main .meeting-screen { color: #edf5ff; background: #0e1c2d; border-color: #2a93aa; }
#main .meeting-screen p { color: #bed0e5; }
#main .meeting-screen .empty-label { color: #d5e5f8 !important; background: #263e59 !important; }
html body #main .empty-label { color: var(--pro-muted) !important; background: transparent !important; }
html body #main .meeting-screen .empty-label { color: #d5e5f8 !important; background: transparent !important; }
#demo-guidance > .guidance {
  padding: 16px !important;
  border: 1px solid var(--pro-rule);
  border-radius: 16px;
}
html body #demo-guidance > details { color: var(--pro-muted) !important; }
html body .demo-footer { background: transparent !important; color: var(--pro-muted); }
#toast { background: #173654; border: 1px solid #557797; color: #fff; }
#demo-dialog::backdrop { background: #041326b3; }
#demo-dialog a { color: #174eac; }

/* Scoped action styles: badges, table values and business status colors are
   intentionally excluded. Vivid fills use white text with a fine dark edge. */
#main .button, #demo-dialog .button, #demo-guidance .guidance nav a,
.demo-top nav a, .demo-top .top-reset {
  --sl-button-top: #4d8df4;
  --sl-button-mid: #2665d8;
  --sl-button-bottom: #1645a3;
  color: #fff !important;
  background: linear-gradient(180deg,var(--sl-button-top) 0%,var(--sl-button-mid) 52%,var(--sl-button-bottom) 100%);
  border: 1px solid #ffffff38;
  border-radius: 13px;
  box-shadow: inset 0 1px 0 #ffffff66, inset 0 -1px 0 #00000033, 0 4px 9px #07172d1f;
  text-shadow: -.55px -.55px 0 #101b2b,.55px -.55px 0 #101b2b,-.55px .55px 0 #101b2b,.55px .55px 0 #101b2b,0 1px 1px #00000047;
  text-decoration: none;
  transition: transform .13s ease, box-shadow .13s ease, filter .13s ease;
  min-height: 42px;
}
.demo-top nav a, .demo-top .top-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}
html body:has(.pro-id) .demo-top :is(nav a,.top-reset) {
  color: #fff !important;
  background: linear-gradient(180deg,var(--sl-button-top) 0%,var(--sl-button-mid) 52%,var(--sl-button-bottom) 100%);
  border-color: #ffffff38;
}
#main .button.purple, .demo-top nav a:nth-child(2),
#main .app-tabs .button.active {
  --sl-button-top: #a06ae9;
  --sl-button-mid: #7940ca;
  --sl-button-bottom: #56279b;
}
#main .button.green {
  --sl-button-top: #25b39b;
  --sl-button-mid: #078875;
  --sl-button-bottom: #056253;
}
#main .button.gold, #main .button.orange,
#main .app-top .button:nth-child(2), .demo-top .top-reset {
  --sl-button-top: #d49a36;
  --sl-button-mid: #b57517;
  --sl-button-bottom: #8a5308;
}
#main .button.danger, #demo-dialog .button.danger {
  --sl-button-top: #ed6b72;
  --sl-button-mid: #cc3c4b;
  --sl-button-bottom: #9e2332;
}
#main .button.office {
  --sl-button-top: #6c8dbb;
  --sl-button-mid: #3c638f;
  --sl-button-bottom: #254568;
}
#main .button.active, #main .button[aria-pressed="true"] {
  box-shadow: inset 0 1px 0 #ffffff66,0 0 0 2px var(--pro-ground),0 0 0 4px var(--pro-focus);
}
#main .button:hover:not(:disabled), #demo-dialog .button:hover:not(:disabled),
#demo-guidance .guidance nav a:hover, .demo-top nav a:hover,
.demo-top .top-reset:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 #ffffff75,0 6px 13px #07172d2b;
}
#main .button:active:not(:disabled), #demo-dialog .button:active:not(:disabled),
#demo-guidance .guidance nav a:active, .demo-top nav a:active,
.demo-top .top-reset:active, #main .tool-link:active {
  transform: translateY(2px) scale(.985);
  box-shadow: inset 0 2px 5px #0000002b,0 1px 3px #07172d1f;
}
#main .tool-link { color: #fff; text-shadow: 0 1px 1px #00000070; }
#main .tool-link small { color: #fff; }
#main .section-tabs a, #main .section-tabs button,
#main .status-options button {
  background: var(--pro-tint);
  color: var(--pro-ink);
  border-color: var(--pro-rim);
}
#main .section-tabs .active, #main .status-options button.selected {
  color: #fff;
  background: #245dcc;
  border-color: #245dcc;
  box-shadow: inset 0 1px 0 #ffffff33;
}
#main .tool-select [data-tool-state] {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  margin-top: 9px;
  padding: 3px 10px;
  border: 1px solid #ffffff36;
  border-radius: 20px;
  background: #245dcc;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
#main .tool-select input:checked + span [data-tool-state] {
  background: #08755e;
  color: #fff;
}
#main .invoice-paper, #main .mail-preview, #main .sms-preview,
#main .sample-document, #demo-dialog .mail-preview,
#demo-dialog .sms-preview, #demo-dialog .sample-document {
  color-scheme: light;
  color: #14263a;
  background: #fff;
  border-color: #cad8e5;
}
#main .invoice-paper h1, #main .invoice-paper h2, #main .invoice-paper h3,
#main .invoice-paper .muted, #main .invoice-paper p,
#main .sample-document h2, #main .sample-document h3,
#main .mail-preview h3, #main .sms-preview h3,
#demo-dialog .sample-document h2 {
  color: #173654;
}
#demo-dialog .mail-preview a, #demo-dialog .sms-preview a { color: #054487; }
#main .invoice-paper .simple-table th,
#main .sample-document .simple-table th {
  color: #304b68;
  background: #edf3fb;
}
#main .invoice-paper .simple-table td { color: #14263a; }
#main .invoice-paper .simple-table th, #main .invoice-paper .simple-table td {
  border-color: #d6e0ed;
}
#main .invoice-paper .invoice-total { color: #14263a; background: #edf4fd; }
#main .invoice-paper .invoice-total strong { color: #1c4b84; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--pro-focus);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .demo-top .pro-id { flex-basis: auto; }
  .demo-top nav { flex-grow: 1; justify-content: flex-end; }
}
@media (max-width: 800px) {
  .demo-top .pro-id { flex-basis: auto; flex-grow: 0; }
  .demo-top .demo-label { flex: 1 1 160px; font-size: 12px; text-align: right; }
  .demo-top nav { flex: 1 1 100%; justify-content: flex-start; order: 3; }
  #main .office-head nav { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .demo-top .pro-id { width: auto; justify-content: flex-start; gap: 8px; }
  .demo-top .pro-id .pro-brand { padding-right: 8px; min-height: 50px; gap: 5px; }
  .demo-top .sl-brand-emblem { flex-basis: 48px; width: 48px; height: 48px; }
  .demo-top .sl-brand-word { font-size: 22px; letter-spacing: -1px; }
  .demo-top .demo-label { flex-basis: 100px; font-size: 11px; line-height: 1.4; }
  .demo-top nav { gap: 7px; }
  .demo-top nav a, .demo-top .top-reset { min-height: 44px; padding: 9px 10px; }
  #main .button, #main .lead-nav .button, #main .app-tabs .button,
  #main .lead-actions .button, #main .billing-sidebar > .quick-links .button,
  #main .section-tabs a, #main .section-tabs button,
  #demo-guidance .guidance nav a { min-height: 44px; }
  #main .quick-links .tool-link:last-child { grid-column: auto; }
  #main .billing-sidebar > .quick-links { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #main .billing-sidebar > .quick-links .button { overflow-wrap: anywhere; }
  #demo-guidance > .guidance { padding: 12px !important; }
  #demo-guidance .guidance nav { gap: 7px; }
}
@media (max-width: 350px) {
  .demo-top .pro-id { justify-content: flex-start; }
  .demo-top .demo-label { flex-basis: 100%; text-align: left; }
  #main .billing-sidebar > .quick-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #main .account-grid { grid-template-columns: minmax(100px,.8fr) minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  #main .button, #demo-dialog .button, #demo-guidance .guidance nav a,
  .demo-top nav a, .demo-top .top-reset, #main .tool-link {
    transition: none;
    transform: none !important;
  }
}
@media print {
  :root { color-scheme: light; }
  html, body, #main .panel, #main .simple-table th { color: #14263a; background: #fff !important; }
}
