/* ==========================================================================
   Edit A Shiur — the look. Loaded last, after eas.css.
   Editorial rather than app-like: warm paper, ink, one blue, a serif for
   headlines, square corners, hairlines instead of shadows. No pills, no
   gradients, no glass.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&display=swap');

:root {
  --paper:#f6f3ec; --paper-2:#efeadf; --card:#fffdf9;
  --ink:#15181d; --ink-2:#444a54; --ink-3:#6d7480;
  --rule:#d9d3c5; --rule-2:#e7e1d4;
  --blue:#1b4fd8; --blue-ink:#143aa3; --navy:#0c2238;
  --serif:'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;

  /* the older tokens, re-pointed so every existing page follows */
  --eas-surface:var(--card); --eas-surface-2:var(--paper); --eas-surface-3:var(--paper-2);
  --eas-ink:var(--ink); --eas-ink-2:var(--ink-2); --eas-ink-3:var(--ink-3);
  --eas-line:var(--rule); --eas-line-2:var(--rule-2);
  --eas-accent:var(--blue); --eas-accent-hover:var(--blue-ink); --eas-blue-600:var(--blue);
  --eas-blue-50:#e9eefb; --eas-navy-900:var(--navy);
  --r-sm:3px; --r-md:4px; --r-lg:6px; --r-pill:4px;
  --sh-1:none; --sh-2:0 1px 0 var(--rule); --sh-3:0 12px 28px rgba(21,24,29,.10);
  --bg-primary:var(--paper);
}
.dark {
  --paper:#101317; --paper-2:#171b21; --card:#161a20;
  --ink:#eceae4; --ink-2:#b9bcc2; --ink-3:#8b919b;
  --rule:#2a3038; --rule-2:#21262d;
  --blue:#7ea2ff; --blue-ink:#a5bdff; --navy:#0a1622;
  --eas-blue-50:#182238; --eas-on-accent:#0b1020;
}

body { background: var(--paper); color: var(--ink); }
h1, h2, .h1, .h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; color: var(--ink); }
body.eas-admin h1, body.eas-admin h2, body.eas-admin .h4, body.eas-admin .h5 { font-family: var(--eas-font); font-weight: 700; letter-spacing: -.01em; }

/* ---------- Buttons: square, flat ---------- */
.btn, .eas-btn, .hero-cta, .upload-btn {
  border-radius: var(--r-md) !important; box-shadow: none !important; background-image: none !important;
  font-weight: 600; letter-spacing: 0; transform: none !important;
}
.btn-primary, .eas-btn-primary, .hero-cta {
  background: var(--blue) !important; border: 1px solid var(--blue) !important; color: #fff !important;
}
.dark .btn-primary, .dark .eas-btn-primary { color: #0b1020 !important; }
.btn-primary:hover, .eas-btn-primary:hover, .hero-cta:hover { background: var(--blue-ink) !important; border-color: var(--blue-ink) !important; }
.btn-secondary, .eas-btn-quiet, .btn-outline-primary {
  background: transparent !important; border: 1px solid var(--ink) !important; color: var(--ink) !important;
}
.btn-secondary:hover, .eas-btn-quiet:hover, .btn-outline-primary:hover { background: var(--ink) !important; color: var(--paper) !important; }
.form-control, .form-select, .eas-input, .eas-card, .card, .modal-content, .dropdown-menu, .alert, .badge, .list-card, .eas-notice, .nav-link, .ea-seg, .ea-seg-btn {
  border-radius: var(--r-md) !important;
}
.eas-card, .card, .list-card { box-shadow: none !important; border: 1px solid var(--rule) !important; background: var(--card); }
.eas-card-hover:hover { transform: none; box-shadow: none; border-color: var(--ink) !important; }
.form-control, .form-select, .eas-input { border: 1px solid var(--rule); background: var(--card); color: var(--ink); }
.form-control:focus, .form-select:focus, .eas-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
a { color: var(--blue); }

/* ---------- Top bar (public pages) ---------- */
body:not(.eas-admin) nav.navbar {
  background: var(--paper) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--rule); box-shadow: none !important; padding-block: .6rem;
}
body:not(.eas-admin) nav.navbar .navbar-brand img { filter: brightness(0); max-height: 32px !important; }
.dark body:not(.eas-admin) nav.navbar .navbar-brand img { filter: none; }
body:not(.eas-admin) nav.navbar .nav-link { color: var(--ink-2) !important; font-weight: 500; font-size: .95rem; padding: .4rem .2rem !important; border-bottom: 1px solid transparent; border-radius: 0 !important; }
body:not(.eas-admin) nav.navbar .nav-link:hover, body:not(.eas-admin) nav.navbar .nav-link.active { color: var(--ink) !important; border-bottom-color: var(--ink); background: transparent !important; }
body:not(.eas-admin) nav.navbar .navbar-toggler { border: 1px solid var(--rule); border-radius: var(--r-md); }
body:not(.eas-admin) nav.navbar .navbar-toggler-icon { filter: invert(1); }
.dark body:not(.eas-admin) nav.navbar .navbar-toggler-icon { filter: none; }
body:not(.eas-admin) nav.navbar .btn { padding: .42rem .95rem; font-size: .9rem; }
body:not(.eas-admin) nav.navbar .dropdown-toggle, body:not(.eas-admin) nav.navbar .upload-btn { color: var(--ink) !important; border: 1px solid var(--rule) !important; background: transparent !important; }
body:not(.eas-admin) nav.navbar .header-icon-btn { filter: brightness(0); }
.dark body:not(.eas-admin) nav.navbar .header-icon-btn { filter: none; }
.offcanvas { background: var(--paper); color: var(--ink); }
.offcanvas .nav-link { color: var(--ink) !important; font-family: var(--serif); font-size: 1.5rem; padding: .5rem 0 !important; border-bottom: 1px solid var(--rule); border-radius: 0 !important; }

/* ---------- Footer ---------- */
footer.bg-dark { background: var(--navy) !important; border-top: 0; }
footer.bg-dark a { color: #dfe6ee !important; text-decoration: none; }
footer.bg-dark a:hover { text-decoration: underline; }

/* ---------- Old coloured bands on inner pages ---------- */
.hero-background, .hero::before, .hero::after { display: none !important; }
.section-alternate { background: var(--paper-2) !important; }
.about-section, .services-section, .process-section, .testimonials-section, .contact-section, .pricing-section, .help-section, .dashboard-section { background: var(--paper) !important; }
.service-card, .pricing-card, .testimonial-card, .why-card, .feature-card {
  border-radius: var(--r-md) !important; box-shadow: none !important; border: 1px solid var(--rule) !important; background: var(--card) !important; transform: none !important;
}

/* ==========================================================================
   Homepage
   ========================================================================== */
.hp { padding-top: 62px; }
.hp-wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
.hp-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
.hp-rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.hp-hero { padding: 72px 0 64px; }
.hp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hp-hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.1rem); line-height: 1.04; margin: 0 0 20px; }
.hp-hero h1 em { font-style: italic; color: var(--blue); }
.hp-lede { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hp-actions .btn { padding: .8rem 1.4rem; font-size: 1rem; }
.hp-note { margin: 18px 0 0; font-size: .9rem; color: var(--ink-3); }

/* The picture in the hero: what a finished job looks like, drawn in HTML */
.hp-shot { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; }
.hp-shot-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: .82rem; color: var(--ink-3); }
.hp-shot-bar strong { color: var(--ink); font-size: .92rem; }
.hp-tag { border: 1px solid var(--rule); padding: 2px 8px; border-radius: var(--r-sm); font-weight: 600; color: var(--ink-2); }
.hp-tag-ok { border-color: #1c8a55; color: #1c8a55; }
.hp-shot-body { padding: 18px 16px 6px; }
.hp-wave { display: flex; align-items: center; gap: 2px; height: 54px; margin-bottom: 6px; }
.hp-wave i { flex: 1; background: var(--ink); opacity: .82; border-radius: 1px; }
.hp-wave.before i { background: var(--ink-3); opacity: .5; }
.hp-wave-label { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-3); margin-bottom: 14px; }
.hp-lines { border-top: 1px solid var(--rule-2); }
.hp-lines p { display: grid; grid-template-columns: 44px 1fr; gap: 10px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rule-2); font-size: .95rem; line-height: 1.55; }
.hp-lines p:last-child { border-bottom: 0; }
.hp-lines time { color: var(--ink-3); font-size: .78rem; font-variant-numeric: tabular-nums; padding-top: 3px; }

.hp-strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.hp-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp-strip li { padding: 22px 20px; border-left: 1px solid var(--rule); }
.hp-strip li:first-child { border-left: 0; padding-left: 0; }
.hp-strip b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.hp-strip span { color: var(--ink-3); font-size: .9rem; }

.hp-section { padding: 80px 0; }
.hp-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: end; margin-bottom: 40px; }
.hp-head h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); line-height: 1.1; margin: 0; }
.hp-head p { margin: 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; }

.hp-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.hp-service { display: grid; grid-template-columns: 48px 1fr; gap: 6px 14px; padding: 24px 28px 24px 0; border-bottom: 1px solid var(--rule); }
.hp-service:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--rule); }
.hp-service span { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-3); padding-top: 3px; }
.hp-service h3 { font-family: var(--eas-font); font-size: 1.08rem; font-weight: 700; margin: 0 0 4px; }
.hp-service p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: .97rem; }
.hp-service div { min-width: 0; }

.hp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.hp-step { padding: 26px 28px 8px 0; }
.hp-step + .hp-step { padding-left: 28px; border-left: 1px solid var(--rule); }
.hp-step b { font-family: var(--serif); font-size: 2.6rem; font-weight: 400; line-height: 1; display: block; margin-bottom: 14px; }
.hp-step h3 { font-family: var(--eas-font); font-size: 1.08rem; font-weight: 700; margin: 0 0 6px; }
.hp-step p { color: var(--ink-2); margin: 0; line-height: 1.55; }

.hp-tapes { background: var(--navy); color: #e9eef4; }
.hp-tapes .hp-kicker { color: #9db8ff; }
.hp-tapes h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); line-height: 1.05; margin: 0 0 18px; }
.hp-tapes-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.hp-tapes p { color: #c6d0db; line-height: 1.65; font-size: 1.05rem; max-width: 36em; }
.hp-tapes ul { list-style: none; padding: 0; margin: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.18); }
.hp-tapes li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); color: #e9eef4; }
.hp-tapes .btn-primary { background: #fff !important; border-color: #fff !important; color: var(--navy) !important; }
.hp-tapes .btn-primary:hover { background: #dfe6ee !important; border-color: #dfe6ee !important; }
.hp-tapes .btn-secondary { border-color: rgba(255,255,255,.6) !important; color: #fff !important; }
.hp-tapes .btn-secondary:hover { background: #fff !important; color: var(--navy) !important; }
.hp-how { border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-lg); padding: 24px; }
.hp-how h3 { font-family: var(--eas-font); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #9db8ff; margin: 0 0 8px; }
.hp-how ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.hp-how li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.hp-how li:last-child { border-bottom: 0; }
.hp-how li::before { content: counter(s); font-family: var(--serif); color: #9db8ff; font-size: 1.1rem; }

.hp-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.hp-why div { padding: 24px 22px 0 0; }
.hp-why div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.hp-why h3 { font-family: var(--eas-font); font-size: 1.02rem; font-weight: 700; margin: 0 0 6px; }
.hp-why p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: .96rem; }

.hp-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.hp-quotes figure { margin: 0; padding: 28px 28px 0 0; }
.hp-quotes figure + figure { padding-left: 28px; border-left: 1px solid var(--rule); }
.hp-quotes blockquote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; margin: 0 0 14px; }
.hp-quotes figcaption { color: var(--ink-3); font-size: .9rem; }

.hp-close { border-top: 1px solid var(--rule); padding: 72px 0; text-align: left; }
.hp-close h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); margin: 0 0 22px; max-width: 16em; line-height: 1.08; }

@media (max-width: 900px) {
  .hp-hero { padding: 44px 0 40px; }
  .hp-hero-grid, .hp-head, .hp-tapes-grid { grid-template-columns: 1fr; gap: 28px; }
  .hp-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-strip li { padding: 16px 14px; }
  .hp-strip li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hp-strip li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .hp-section { padding: 52px 0; }
  .hp-services, .hp-steps, .hp-why, .hp-quotes { grid-template-columns: 1fr; }
  .hp-service, .hp-service:nth-child(even) { padding: 20px 0; border-left: 0; }
  .hp-step, .hp-step + .hp-step, .hp-why div, .hp-why div + div, .hp-quotes figure, .hp-quotes figure + figure { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .hp-wrap { padding-inline: 18px; }
  .hp-actions .btn { flex: 1 1 auto; text-align: center; }
}

body:not(.eas-admin) nav.navbar .btn-secondary { color: var(--ink) !important; }
body:not(.eas-admin) nav.navbar .btn-secondary:hover { color: var(--paper) !important; }
.chat-button {
  border-radius: var(--r-md) !important; background: var(--ink) !important; color: var(--paper) !important;
  box-shadow: none !important; border: 1px solid var(--ink) !important; font-weight: 600; font-size: .9rem !important; padding: .6rem 1rem !important;
}
.hp-lines p > span[dir="ltr"] { text-align: left; }


/* ---------- Inner pages ---------- */
:root, .dark { --hero-gradient-start: var(--navy); --hero-gradient-end: var(--navy); --accent: var(--blue); --accent-dark: var(--blue-ink); }
body:not(.eas-admin) nav.navbar { background-color: var(--paper) !important; }
body:not(.eas-admin) h2, body:not(.eas-admin) h3, .contact-form h2, .auth-form h1, .dashboard-section h2 { color: var(--ink) !important; }
.hp-tapes h2, .hp-tapes h3, section[style*="--navy"] h1, section[style*="--navy"] h2, section[style*="--navy"] h3 { color: #fff !important; }
.hp-how h3 { color: #9db8ff !important; }
.pricing-card { overflow: hidden; text-align: left !important; }
.pricing-card .card-header { background: transparent !important; color: var(--ink) !important; border: 0 !important; border-bottom: 1px solid var(--rule) !important; border-radius: 0 !important; padding: 18px 20px 12px !important; text-align: left !important; }
.pricing-card .card-header h3, .pricing-card .card-header h2, .pricing-card .card-header * { color: var(--ink) !important; font-family: var(--eas-font) !important; font-size: 1.05rem !important; font-weight: 700 !important; margin: 0; }
.pricing-card .card-body { padding: 16px 20px 20px !important; text-align: left !important; }
.pricing-card .price { color: var(--ink) !important; font-family: var(--serif); font-weight: 500 !important; font-size: 2.2rem !important; text-align: left !important; }
.pricing-card .price small, .pricing-card .price span { font-family: var(--eas-font); font-size: .9rem !important; color: var(--ink-3) !important; font-weight: 400 !important; }
.pricing-card .description { color: var(--ink-2) !important; text-align: left !important; }
.auth-form, .contact-form { border-radius: var(--r-lg) !important; box-shadow: none !important; border: 1px solid var(--rule) !important; background: var(--card) !important; }

/* ---------- Customer dashboard ---------- */
body:not(.eas-admin) .sidebar { background: var(--paper) !important; box-shadow: none !important; border-right: 1px solid var(--rule); padding: 14px 10px; }
body:not(.eas-admin) .sidebar .list-group-item, body:not(.eas-admin) .offcanvas .list-group-item {
  background: transparent !important; border: 0 !important; border-left: 2px solid transparent !important; border-radius: 0 !important;
  color: var(--ink-2) !important; font-weight: 500; padding: 11px 12px !important; margin: 0 !important;
}
body:not(.eas-admin) .sidebar .list-group-item:hover, body:not(.eas-admin) .offcanvas .list-group-item:hover { color: var(--ink) !important; background: var(--paper-2) !important; }
body:not(.eas-admin) .sidebar .list-group-item.active, body:not(.eas-admin) .offcanvas .list-group-item.active { color: var(--ink) !important; font-weight: 700; border-left-color: var(--blue) !important; background: transparent !important; }
body:not(.eas-admin) .nav-tabs { border-bottom: 1px solid var(--rule); gap: 18px; }
body:not(.eas-admin) .nav-tabs .nav-link { border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; background: transparent !important; color: var(--ink-3) !important; font-weight: 600; padding: 10px 2px !important; }
body:not(.eas-admin) .nav-tabs .nav-link.active { color: var(--ink) !important; border-bottom-color: var(--ink) !important; }
body:not(.eas-admin) .tab-content { border: 0 !important; background: transparent !important; }
.unread-badge, .badge { border-radius: var(--r-sm) !important; }
@media (max-width: 767.98px) { .chat-button { font-size: .8rem !important; padding: .45rem .7rem !important; } }

/* ---------- Sign-in pages ---------- */
html, body { min-height: 100%; }
body:not(.eas-admin) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:not(.eas-admin) > main, body:not(.eas-admin) > .hp { flex: 1 0 auto; }
body:not(.eas-admin) > footer { flex: none; margin-top: 0 !important; }
#password-div, #remember-div { max-height: none !important; opacity: 1 !important; overflow: visible !important; }
.contact-section.py-5 { padding-top: 40px !important; padding-bottom: 48px !important; }
.contact-section h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin-bottom: 8px; }
.contact-section .auth-form, .contact-section .contact-form, .contact-section .card { max-width: 440px; margin-inline: auto; padding: 24px !important; text-align: left; }
.contact-section .form-label { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.contact-section .form-control { min-height: 46px; font-size: 16px; }
.contact-section .btn { min-height: 46px; }
.dark .form-control, .dark .form-select { background: #0e1116 !important; border-color: var(--rule) !important; color: var(--ink) !important; }
@media (max-width: 575.98px) {
  .contact-section.py-5 { padding-top: 24px !important; }
  .contact-section .container { padding-inline: 16px; }
  .contact-section .auth-form, .contact-section .contact-form, .contact-section .card { padding: 18px !important; }
  body:not(.eas-admin) nav.navbar .navbar-brand img { margin-left: 4px !important; }
}

/* ---------- Pop-ups: bottom sheets on a phone ---------- */
.modal-content { border-radius: var(--r-lg) !important; border: 1px solid var(--rule) !important; background: var(--card) !important; color: var(--ink); box-shadow: var(--sh-3); }
.modal-header { border-bottom: 1px solid var(--rule) !important; }
.modal-title { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--ink); }
.modal .btn-close { opacity: .8; min-width: 44px; min-height: 44px; background-size: 14px; margin: -8px -8px -8px auto; }
.dark .modal .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.sheet-handle { display: none; }
@media (max-width: 575.98px) {
  .modal.eas-sheet { padding: 0 !important; }
  .modal.eas-sheet .modal-dialog {
    position: fixed; left: 0; right: 0; bottom: 0; margin: 0; max-width: none; width: 100%;
    min-height: 0; align-items: flex-end; transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  }
  .modal.eas-sheet.show .modal-dialog { transform: none; }
  .modal.eas-sheet .modal-content {
    border-radius: 14px 14px 0 0 !important; border-width: 1px 0 0 !important; max-height: 92vh; max-height: 92dvh;
    overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom);
  }
  .sheet-handle {
    display: block; flex: none; width: 100%; height: 26px; border: 0; background: transparent; padding: 0; position: sticky; top: 0; z-index: 3; touch-action: none;
  }
  .sheet-handle::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--ink-3); opacity: .55; margin: 9px auto 0; }
  .modal.eas-sheet .modal-header { padding-top: 6px; touch-action: none; }
  @media (prefers-reduced-motion: reduce) { .modal.eas-sheet .modal-dialog { transition: none; } }
}

/* ---------- Upload form: the list of services ---------- */
.upload-modal .card { border: 0 !important; background: transparent !important; }
.upload-modal .card-body { padding: 0 !important; }
.up-services { border: 0; padding: 0; margin: 0; min-width: 0; }
.up-services legend { float: none; font-size: .92rem; font-weight: 600; margin-bottom: 4px; }
.up-group { margin: 14px 0 4px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.up-service { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--rule-2); cursor: pointer; margin: 0; }
.up-service input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.up-service input:disabled ~ span { opacity: .4; }
.up-name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.up-name small, .up-price small { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.up-price { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; }
.up-price small { white-space: normal; max-width: 9.5em; margin-left: auto; }

/* ---------- Pricing page ---------- */
.pricing-section .container { max-width: 860px; }
.pr-title { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); margin: 8px 0 28px; text-align: left; }
.pr-group { font-family: var(--eas-font) !important; font-size: .78rem !important; font-weight: 700 !important; letter-spacing: .12em; text-transform: uppercase; color: var(--blue) !important; margin: 34px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.pr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.pr-row h3 { font-family: var(--eas-font); font-size: 1.08rem; font-weight: 700; margin: 0 0 3px; }
.pr-row p { margin: 0; color: var(--ink-2); line-height: 1.5; font-size: .97rem; }
.pr-price { text-align: right; }
.pr-price b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.1; }
.pr-price span { display: block; color: var(--ink-3); font-size: .82rem; max-width: 11em; margin-left: auto; }
.pr-note { margin: 22px 0 0; color: var(--ink-2); }
.pricing-section .text-center.mt-5 { text-align: left !important; }
.pricing-section .disclaimer { text-align: left !important; color: var(--ink-3); }

.dark .text-muted, .dark .form-text { color: var(--ink-3) !important; }
body:not(.eas-admin) .nav-tabs .nav-link, body:not(.eas-admin) .nav-tabs .nav-link.active, body:not(.eas-admin) .nav-tabs .nav-link:focus { background-color: transparent !important; box-shadow: none !important; }
.dark body:not(.eas-admin) .nav-tabs .nav-link.active { color: var(--ink) !important; }
.modal-body h5, .modal-body h6 { font-family: var(--eas-font); font-weight: 700; color: var(--ink); }

/* ---------- Chat ---------- */
.chat-modal-content { border-radius: var(--r-lg) !important; background: var(--card) !important; color: var(--ink); border: 1px solid var(--rule); box-shadow: var(--sh-3) !important; }
.chat-header { background: var(--navy) !important; color: #fff !important; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: var(--r-lg) var(--r-lg) 0 0 !important; font-family: var(--serif); font-size: 1.2rem; }
.chat-header button { background: transparent; border: 0; color: #fff; min-width: 40px; min-height: 40px; font-size: 1.4rem; }
.chat-header .chat-new { font-family: var(--eas-font); font-size: .8rem; font-weight: 600; border: 1px solid rgba(255,255,255,.4); border-radius: var(--r-md); padding: 0 10px; min-height: 32px; margin-right: 4px; }
.chat-messages .message { border-radius: var(--r-lg) !important; box-shadow: none !important; }
.chat-messages .user-message { background: var(--blue) !important; color: #fff !important; }
.dark .chat-messages .user-message { color: #0b1020 !important; }
.chat-messages .bot-message { background: var(--paper-2) !important; color: var(--ink) !important; }
.chat-input input { border-radius: var(--r-md) !important; font-size: 16px !important; background: var(--card) !important; color: var(--ink) !important; border: 1px solid var(--rule) !important; }
.chat-input button { border-radius: var(--r-md) !important; background: var(--blue) !important; color: #fff !important; border: 0 !important; font-weight: 600; }
@media (max-width: 575.98px) {
  .chat-modal { align-items: flex-end !important; padding: 0 !important; }
  .chat-modal-content { width: 100% !important; max-width: none !important; height: 86vh !important; height: 86dvh !important; max-height: none !important; margin: 0 !important; border-radius: 14px 14px 0 0 !important; }
  .chat-header { border-radius: 14px 14px 0 0 !important; }
}

/* ---------- The assistant window ---------- */
.chat-button, .chat-modal { display: none !important; }       /* the old one */
.ec-launch {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1040;
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: var(--r-md); font-weight: 600; font-size: .92rem; cursor: pointer;
}
.ec-launch:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
html.ec-open .ec-launch { visibility: hidden; }
.ec-wrap { position: fixed; inset: 0; z-index: 1080; display: flex; align-items: flex-end; justify-content: flex-end; padding: 16px; background: rgba(12, 18, 28, 0); transition: background .2s ease; }
.ec-wrap[hidden] { display: none; }
.ec-wrap.in { background: rgba(12, 18, 28, .28); }
.ec {
  width: 400px; max-width: 100%; height: min(640px, calc(100dvh - 32px)); display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: 0 18px 50px rgba(12, 18, 28, .28);
  transform: translateY(16px); opacity: 0; transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
}
.ec-wrap.in .ec { transform: none; opacity: 1; }
.ec-grab { display: none; }
.ec-head { display: flex; align-items: center; gap: 2px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--rule); flex: none; }
.ec-head h2 { flex: 1; min-width: 0; margin: 0; font-family: var(--serif) !important; font-weight: 500; font-size: 1.2rem; color: var(--ink) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-2); border-radius: var(--r-md); cursor: pointer; }
.ec-icon:hover { background: var(--paper-2); color: var(--ink); }
.ec-icon[hidden] { display: none; }
.ec-body, .ec-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.ec-body[hidden], .ec-list[hidden], .ec-form[hidden] { display: none; }
.ec-body { display: flex; flex-direction: column; gap: 10px; }
.ec-msg { max-width: 86%; padding: 10px 13px; border-radius: 10px; line-height: 1.5; font-size: .96rem; overflow-wrap: anywhere; }
.ec-msg p { margin: 0 0 6px; } .ec-msg p:last-child, .ec-msg ul:last-child, .ec-msg ol:last-child { margin-bottom: 0; }
.ec-msg ul, .ec-msg ol { margin: 0 0 6px; padding-inline-start: 1.2em; }
.ec-msg a { color: inherit; text-decoration: underline; }
.ec-me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 3px; }
.dark .ec-me { color: #0b1020; }
.ec-them { align-self: flex-start; background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 3px; }
.ec-them a { color: var(--blue); }
.ec-note { margin: 24px 0; text-align: center; color: var(--ink-3); font-size: .92rem; }
.ec-starters { display: grid; gap: 6px; margin-top: 6px; }
.ec-starters button { text-align: left; padding: 10px 12px; background: transparent; border: 1px solid var(--rule); border-radius: var(--r-md); color: var(--ink); font-size: .92rem; cursor: pointer; }
.ec-starters button:hover { border-color: var(--ink); }
.ec-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.ec-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: ec-dot 1s infinite ease-in-out; }
.ec-dots i:nth-child(2) { animation-delay: .15s; } .ec-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ec-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.ec-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); flex: none; }
.ec-form textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.4; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-md); }
.ec-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.ec-send { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: var(--r-md); background: var(--blue); color: #fff; cursor: pointer; }
.dark .ec-send { color: #0b1020; }
.ec-send:disabled { opacity: .5; }
.ec-list { padding: 4px 8px 12px; }
.ec-row { display: flex; align-items: center; border-bottom: 1px solid var(--rule-2); }
.ec-row-open { flex: 1; min-width: 0; text-align: start; padding: 12px 8px; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
.ec-row-open strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-row-open span { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.ec-row.current .ec-row-open strong { color: var(--blue); }
.ec-row-del { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-3); border-radius: var(--r-md); cursor: pointer; }
.ec-row-del:hover { color: var(--eas-red); background: var(--paper-2); }
@media (max-width: 575.98px) {
  .ec-launch span { display: none; } .ec-launch { padding: 0; width: 50px; height: 50px; justify-content: center; }
  .ec-wrap { padding: 0; }
  .ec { width: 100%; height: 90dvh; border-radius: 14px 14px 0 0; border-width: 1px 0 0; transform: translateY(100%); opacity: 1; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  .ec-grab { display: block; width: 100%; height: 22px; flex: none; border: 0; background: transparent; padding: 0; touch-action: none; }
  .ec-grab::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--ink-3); opacity: .55; margin: 9px auto 0; }
  .ec-head { padding-top: 2px; touch-action: none; }
  .ec-msg { max-width: 90%; }
}
@media (prefers-reduced-motion: reduce) { .ec, .ec-wrap, .ec-dots i { transition: none; animation: none; } }
.dark .ec-them { background: #232a36; }
.dark .ec-starters button { border-color: #333b48; }

/* ---------- Assistant: buttons and the order card ---------- */
.ec-choices { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
.ec-choices button, .ec-choices a { padding: 9px 12px; border: 1px solid var(--blue); border-radius: var(--r-md); background: transparent; color: var(--blue); font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; }
.ec-choices button:hover, .ec-choices a:hover { background: var(--blue); color: #fff; }
.ec-order { align-self: stretch; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 14px; background: var(--paper); display: grid; gap: 10px; }
.ec-order h3 { margin: 0; font-family: var(--eas-font); font-size: 1rem; font-weight: 700; color: var(--ink) !important; }
.ec-order fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ec-order legend, .ec-field { font-size: .82rem; font-weight: 600; color: var(--ink-2); margin: 0 0 2px; float: none; }
.ec-field { display: grid; gap: 4px; }
.ec-field textarea, .ec-field input { font: inherit; font-size: 16px; font-weight: 400; padding: 8px 10px; background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-md); resize: vertical; }
.ec-pick span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px dashed var(--ink-3); border-radius: var(--r-md); font-weight: 600; cursor: pointer; color: var(--ink); }
.ec-files { list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--ink-2); }
.ec-files li { padding: 3px 0; overflow-wrap: anywhere; }
.ec-svc { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule-2); font-size: .92rem; cursor: pointer; margin: 0; }
.ec-svc input { width: 18px; height: 18px; accent-color: var(--blue); }
.ec-svc input:disabled ~ span, .ec-svc input:disabled ~ em { opacity: .4; }
.ec-svc em { font-style: normal; font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
.ec-status { margin: 0; font-size: .88rem; color: var(--ink-2); min-height: 1.2em; }
.ec-go { min-height: 46px; border: 0; border-radius: var(--r-md); background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; }
.dark .ec-go { color: #0b1020; }
.ec-go:disabled { opacity: .45; cursor: default; }
.ec-order.busy fieldset, .ec-order.busy .ec-pick, .ec-order.busy .ec-field { opacity: .5; pointer-events: none; }
.modal { z-index: 1090; } .modal-backdrop { z-index: 1085; }       /* the price screen opens above the chat */
.add-card-field { padding: 12px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--card); min-height: 46px; }
.add-card-field.StripeElement--focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.add-card-field.StripeElement--invalid { border-color: var(--eas-red); }
.pm-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r-md); margin-bottom: 8px; }
