/* CELULARS design system. Shared across public, operational and local tools.
   Financial state colours, hidden controls and print layouts remain independent. */
@media screen {
  :root {
    color-scheme: light;
    --navy: #243d50;
    --navy-soft: #35586c;
    --blue: #37657e;
    --blue-dark: #284d63;
    --blue-soft: #e9f0f3;
    --ink: #293f4c;
    --muted: #62747f;
    --line: #dbe3e5;
    --surface: #fff;
    --canvas: #f5f7f6;
    --brand: #37657e;
    --brand-dark: #284d63;
    --radius: 18px;
    --shadow: 0 8px 28px rgba(35,61,76,.045);
    --cel-paper: #f5f7f6;
    --cel-accent: #dde9ed;
  }
  html { background: var(--cel-paper); }
  body { background: var(--cel-paper); color: var(--ink); font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; }
  h1, h2, h3 { font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
  p { text-wrap: pretty; }
  button, input, select, textarea { font-family: inherit; }
  button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
  :focus-visible { outline: 3px solid #377d9d; outline-offset: 4px; }
  .shell { width: min(1180px, calc(100% - 64px)); }

  /* A floating, quiet navigation surface shared by the two public brands. */
  .site-header, .cel-global-header, .partner-header, .document-header, body > header:has(.languages) {
    width: min(1240px, calc(100% - 40px));
    margin: 20px auto;
    padding: 0 24px;
    min-height: 76px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,.97);
    box-shadow: var(--shadow);
    top: 12px;
  }
  .site-header .header-inner { width: 100%; min-height: 76px; gap: 20px; }
  .site-header .brand { max-width: 220px; }
  .cel-global-header .cel-global-nav { min-height: 76px; padding: 12px 0 !important; max-width: none; gap: 20px; }
  .cel-global-header .cel-global-brand-text { font-weight: 600; letter-spacing: .015em; }
  .cel-global-header .cel-global-links { gap: 6px; }
  .cel-global-header .cel-global-links a { padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
  .cel-global-header .cel-global-links a.is-active { color: var(--navy); background: var(--cel-accent); box-shadow: none; }
  .language-switcher, .languages { border-color: var(--line); border-radius: 999px; background: #f2f5f5; }
  .language-switcher button, .languages button { border-radius: 999px; font-weight: 500; }
  .internal-access-link { font-weight: 500; }

  /* Public repair journey: a lighter editorial hierarchy and image-led services. */
  .hero { color: var(--ink); background: var(--cel-paper); padding: 56px 0 64px; }
  .hero::before, .hero::after { background: none; }
  .hero-layout { gap: 48px; padding-block: 0; }
  .hero-copy { max-width: 860px; }
  .hero h1 { color: var(--ink); font-size: clamp(32px,4.5vw,54px); line-height: 1.12; font-weight: 450; max-width: 24ch; }
  .hero .hero-lead { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 62ch; }
  .hero .hero-note, .hero .hero-assurances { color: var(--muted); }
  .eyebrow, .eyebrow.dark, .hero .eyebrow { color: var(--blue-dark); font-size: 12px; font-weight: 600; letter-spacing: .13em; }
  .button, .primary, .secondary { border-radius: 999px; font-size: 15px; font-weight: 600; box-shadow: none; }
  .button-whatsapp, .button-whatsapp:hover { background: var(--cel-accent); color: var(--navy); border: 1px solid #ccdde3; box-shadow: none; }
  .button-whatsapp:hover { background: #cbdde4; }
  .button-light { border: 1px solid var(--line); background: #fff; color: var(--navy); }
  .section { padding: 56px 0; background: var(--cel-paper); }
  .section h2 { color: var(--ink); font-size: clamp(27px,3.2vw,39px); line-height: 1.2; font-weight: 450; }
  .section-heading { margin-bottom: 28px; gap: 24px; }
  .hero-journey { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .hero-journey li { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 26px 20px; }
  .hero-step-number { background: var(--cel-accent); color: var(--navy); font-weight: 500; }
  .hero-journey h3 { font-size: 18px; font-weight: 550; }
  .service-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
  .service-list .service-item { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: none; overflow: hidden; }
  .service-list .service-item img { width: 100%; height: 190px; max-height: none; object-fit: cover; border-radius: 0; }
  .service-list .service-content { padding: 24px; }
  .service-list .service-content h3 { font-size: 22px; font-weight: 500; }
  .service-list .service-content p { font-size: 16px; line-height: 1.6; color: var(--muted); }
  .service-list .service-other { grid-column: 1/-1; }
  .trade-in, .process, .contact { background: var(--cel-paper); }
  .trade-in-ready { background: #eaf0f2; color: var(--ink); }
  .trade-in-ready h2, .trade-in-ready .eyebrow { color: var(--ink); }
  .trade-in-copy, .trade-in-disclaimer { color: #526d7c; }
  .trade-in-disclaimer { background: #fff; border-color: var(--line); border-radius: 18px; }
  .final-cta { background: var(--cel-paper); }
  .final-cta-card { background: #e5eef1; color: var(--ink); border: 1px solid #d0dfe5; box-shadow: none; padding: 38px; }
  .final-cta-card > div:first-child > p:last-child { color: #526d7c; }
  .trade-in-card, .contact-card, .process-card { border: 1px solid var(--line); background: #fff; border-radius: 20px; box-shadow: none; }
  .chat-panel, .chat-window { border-radius: 24px; border-color: var(--line); box-shadow: 0 24px 80px #243d5020; }
  .chat-header { background: #edf3f5; color: var(--ink); }
  .chat-header h2 { color: var(--ink); font-weight: 500; }
  .site-footer { color: var(--ink); background: #eaf0f1; border-top: 1px solid var(--line); }
  .site-footer p, .site-footer a { color: var(--ink); }
  .site-footer .footer-name span, .site-footer .footer-meta strong { color: #526d7c; font-size: 13px; font-weight: 500; }

  /* Every active commercial page, including the catalogue and access routes. */
  :is(#celulars-home,#celulars-sobre,#celulars-contato,#celulars-acessos,#celulars-iphones-catalog,#celulars-atacado,#celulars-not-found) {
    --ink: #293f4c; --muted: #62747f; --blue: #37657e; --blue-dark: #284d63; --blue-soft: #e9f0f3;
    background: var(--cel-paper) !important;
    color: var(--ink);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  }
  :is(#celulars-home,#celulars-sobre,#celulars-contato,#celulars-acessos,#celulars-iphones-catalog,#celulars-atacado,#celulars-not-found) h1 {
    font-size: clamp(32px,4.5vw,54px) !important; line-height: 1.12 !important; font-weight: 450 !important; letter-spacing: -.04em !important; color: var(--ink) !important;
  }
  :is(#celulars-home,#celulars-sobre,#celulars-contato,#celulars-acessos,#celulars-iphones-catalog,#celulars-atacado) h2 {
    font-size: clamp(25px,3vw,36px) !important; line-height: 1.2 !important; font-weight: 450 !important; letter-spacing: -.025em !important; color: var(--ink) !important;
  }
  :is(#celulars-home,#celulars-sobre,#celulars-contato,#celulars-acessos) h3 { font-weight: 550 !important; letter-spacing: -.015em; color: var(--ink) !important; }
  :is(#celulars-home,#celulars-sobre,#celulars-contato) :is(.cel-home-shell,.cel-shell) { max-width: 1240px; padding-inline: 32px; }
  :is(#celulars-home,#celulars-sobre,#celulars-contato) :is(.cel-home-hero,.cel-hero) { padding: 48px 0 56px !important; gap: 48px !important; }
  :is(#celulars-home,#celulars-sobre,#celulars-contato) :is(.cel-home-hero,.cel-hero) p { font-size: 18px !important; line-height: 1.7 !important; color: var(--muted) !important; }
  :is(#celulars-home,#celulars-sobre,#celulars-contato) :is(.cel-section,.cel-home-section) { padding: 42px 0 !important; }
  :is(#celulars-home,#celulars-sobre,#celulars-contato,#celulars-acessos) :is(.cel-card,.cel-mini-card,.cel-path-card,.cel-clarity-card,.cel-hero-process,.cel-contact-highlight,.cel-access-card,.cel-final-cta) {
    background: #fff !important; border: 1px solid var(--line) !important; border-radius: 18px !important; box-shadow: none !important; padding: 26px !important;
  }
  :is(#celulars-home,#celulars-sobre,#celulars-contato,#celulars-acessos) :is(.cel-btn,.cel-access-button) {
    border-radius: 999px !important; font-weight: 600 !important; font-size: 15px !important; min-height: 46px !important; box-shadow: none !important;
  }
  :is(#celulars-home,#celulars-sobre,#celulars-contato,#celulars-acessos) :is(.cel-btn-primary,.cel-btn-whatsapp,.cel-access-button) {
    color: var(--navy) !important; background: var(--cel-accent) !important; border: 1px solid #ccdde3 !important;
  }
  :is(#celulars-home,#celulars-sobre,#celulars-contato) .cel-btn-whatsapp::before { background: #37657e; }
  #celulars-contato .cel-contact-highlight strong { font-size: clamp(24px,3vw,34px) !important; font-weight: 500 !important; }
  #celulars-iphones-catalog .catalog-shell { max-width: 1320px; padding: 44px 32px !important; }
  #celulars-iphones-catalog .catalog-filter-panel { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 18px !important; box-shadow: none !important; padding: 20px !important; }
  #celulars-iphones-catalog .catalog-search { border-radius: 999px !important; border-color: var(--line) !important; background: #f7f9f9 !important; }
  #celulars-iphones-catalog .filter-button { border-radius: 999px !important; font-weight: 500 !important; }
  #celulars-iphones-catalog .filter-button.is-active { color: var(--navy) !important; background: var(--cel-accent) !important; border-color: #b9d0da !important; }
  #celulars-iphones-catalog .catalog-group { border: 1px solid var(--line) !important; border-radius: 20px !important; background: #fff !important; box-shadow: none !important; }
  #celulars-iphones-catalog .catalog-group__header { background: #fff !important; padding: 26px !important; border-bottom: 1px solid var(--line) !important; }
  #celulars-iphones-catalog .catalog-group__title { font-size: 26px !important; }
  #celulars-iphones-catalog .catalog-table :is(th,td) { border-color: #e7eded !important; padding: 16px !important; }
  #celulars-iphones-catalog .catalog-table th { background: #eff4f5 !important; color: #435e6d !important; font-weight: 600 !important; }
  #celulars-iphones-catalog .catalog-table td { background: #fff; }
  #celulars-iphones-catalog .catalog-mobile-row { border: 1px solid var(--line) !important; border-radius: 16px !important; box-shadow: none !important; }
  #celulars-iphones-catalog .table-main-whatsapp { background: var(--cel-accent) !important; color: var(--navy) !important; border-radius: 999px !important; font-weight: 600 !important; box-shadow: none !important; }
  .cel-global-footer { background: #eaf0f1 !important; color: var(--ink) !important; border-top: 1px solid var(--line) !important; }
  .cel-global-footer-inner { max-width: 1240px !important; padding: 48px 32px 24px !important; }
  .cel-global-footer a, .cel-global-footer p { color: #435e6d !important; }
  .cel-global-footer-label { color: var(--ink) !important; font-weight: 600 !important; }
  .cel-global-header { padding: 0 24px !important; background: rgba(255,255,255,.97) !important; box-shadow: var(--shadow) !important; }

  /* Repair administration, field work, partner onboarding and customer documents. */
  #workspace { width: min(1320px,calc(100% - 48px)); margin: 36px auto 64px; }
  #workspace :is(.intro,.dashboard) { padding: 32px; border-radius: 22px; box-shadow: none; }
  #workspace h1 { font-size: clamp(28px,4vw,42px); line-height: 1.15; font-weight: 450; }
  #workspace :is(h2,h3,h4) { font-weight: 550; }
  #workspace :is(.role-card,.record,.field-section,.inventory-history) { border-radius: 16px; background: #fafcfc; }
  #workspace :is(.filter-bar,.operations-form,form) { background: #f3f7f8; border-color: var(--line); border-radius: 16px; }
  #workspace :is(input,select,textarea) { background: #fff; border: 1px solid #c9d6dc; border-radius: 10px; }
  #workspace :is(.primary,.secondary,.dashboard-nav button) { font-weight: 550; border-radius: 12px; }
  #workspace .primary { background: #37657e; border-color: #37657e; }
  #workspace .dashboard-nav button[aria-current="page"] { background: var(--cel-accent); border-color: #bdd0d9; color: var(--navy); }
  #workspace .record dt, #workspace .field-list dt { font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; }
  #workspace .record dd, #workspace .field-list dd { font-weight: 550; }
  #workspace .role-badge { background: var(--cel-accent); color: var(--navy); font-weight: 550; }
  .partner-header, .document-header { padding: 14px 24px; }
  .form-card, .document-card { border-radius: 22px; box-shadow: none; border-color: var(--line); }
  .form-card label { font-weight: 550; }
  .form-card :is(input,select,textarea) { border-color: #c9d6dc; border-radius: 10px; }
  .form-card button { border-radius: 999px; background: var(--blue); font-weight: 550; }
  .form-card .secondary { background: #edf2f4; color: var(--ink); }
  .principles span { background: var(--cel-accent); color: var(--navy); font-weight: 500; }
  .document-title-block h1 { font-size: clamp(28px,4vw,40px); font-weight: 450; }
  .document-summary div { background: #f5f8f9; border-radius: 14px; }
  .document-card th { background: #eef4f5; }

  /* CELULARS platform: the same language, with working density and clear states. */
  .app-shell { gap: 18px; padding: 0 20px 20px; grid-template-columns: 220px minmax(0,1fr); }
  .app-shell .topbar { margin-top: 18px; min-height: 76px; padding: 14px 24px; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
  .app-shell .sidebar { border: 1px solid var(--line); border-radius: 18px; padding: 14px; align-self: start; }
  .app-shell .nav-list { gap: 5px; }
  .app-shell .nav-button { padding: 12px 14px; min-height: 44px; border-radius: 12px; font-size: 14px; font-weight: 500; }
  .app-shell .nav-button.active { background: var(--cel-accent); color: var(--navy); }
  .app-shell .main-content { padding: 20px 10px 48px; }
  .app-shell .page-header h1 { font-size: 32px; font-weight: 450; letter-spacing: -.035em; }
  .app-shell :is(.metric-card,.content-band,.operation-form,.setting-row) { border-radius: 18px; border-color: var(--line); box-shadow: none; }
  .app-shell .metric-card { min-height: 128px; padding: 22px; }
  .app-shell .metric-card strong { font-size: 32px; font-weight: 450; }
  .app-shell .metric-card span { font-size: 14px; }
  .app-shell .content-band { padding: 24px; }
  .app-shell .section-heading h2 { font-size: 21px; font-weight: 500; }
  .app-shell .data-table { font-size: 14px; }
  .app-shell .data-table th { background: #edf3f5; font-size: 12px; font-weight: 600; }
  .app-shell .data-table td { padding: 14px 12px; }
  .app-shell :is(.primary-button,.secondary-button) { border-radius: 999px; font-weight: 550; }
  .app-shell :is(input,select) { border-radius: 10px; min-height: 44px; }
  .app-shell .profile-chip { background: var(--cel-accent); color: var(--navy); border-color: #ccdde3; }
  .login-panel { width: min(460px,100%); padding: 40px; border-radius: 24px; box-shadow: var(--shadow); }
  .login-panel h1 { font-weight: 450; font-size: 32px; }
  .login-panel :is(input,.primary-button,.secondary-button) { border-radius: 12px; }
  .login-panel .brand-mark, .topbar-brand .brand-mark { border-radius: 50%; background: var(--cel-accent); color: var(--navy); }

  /* Local catalogue / CSV / inventory manager uses the same surfaces. */
  body > .topbar { margin: 18px auto; width: min(1400px,calc(100% - 40px)); border: 1px solid var(--line); border-radius: 22px; padding: 22px; background: #fff; }
  .workspace, .summary, .operation-grid > div { border-color: var(--line); border-radius: 18px; box-shadow: none; background: #fff; }
  .summary-grid { gap: 16px; }
  .summary-grid dd { font-weight: 450; color: var(--navy); }
  .filters { padding: 20px; border-radius: 16px; background: #edf3f5; }
  .segment { border-color: var(--line); border-radius: 999px; overflow: hidden; }
  .table-wrap th { background: #edf3f5; color: #435e6d; }
  .table-wrap td { border-color: #e4ebed; }
  dialog { border-radius: 22px; }

  @media (min-width:1100px) {
    #workspace .dashboard { display: grid; grid-template-columns: 205px minmax(0,1fr); gap: 24px; }
    #workspace .dashboard-heading { grid-column: 1/-1; }
    #workspace .dashboard-nav { display: flex; flex-direction: column; grid-column: 1; grid-row: 2; margin: 0; padding: 12px; align-self: start; background: #f1f5f6; border-radius: 16px; }
    #workspace .dashboard-nav button { text-align: left; width: 100%; }
    #workspace .panel { grid-column: 2; grid-row: 2; min-width: 0; padding-top: 0; }
  }
  @media (max-width:900px) {
    .service-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .site-header, .cel-global-header { padding: 0 16px; }
    .site-header .header-inner { flex-wrap: wrap; padding: 12px 0; }
    .cel-global-header .cel-global-nav { flex-wrap: wrap; gap: 12px; }
    .cel-global-header .cel-global-links { flex-wrap: wrap; }
    #workspace .dashboard-nav { display: flex; overflow-x: auto; flex-wrap: nowrap; padding: 8px 0 14px; }
    #workspace .dashboard-nav button { flex: 0 0 auto; width: auto; }
  }
  @media (max-width:768px) {
    .app-shell { padding: 0 12px 16px; }
    .app-shell .topbar { top: 36px; padding: 12px; margin-top: 12px; }
    .app-shell .sidebar { inset: 122px 12px 12px; border-radius: 18px; }
    .app-shell .main-content { padding: 26px 2px; }
    .app-shell .content-band { padding: 18px; }
    .app-shell .data-table td { padding: 12px; }
    .app-shell .data-table td::before { font-size: 12px; }
  }
  @media (max-width:600px) {
    .shell { width: calc(100% - 36px); }
    .site-header, .cel-global-header, .partner-header, .document-header, body > header:has(.languages) { width: calc(100% - 24px); margin: 12px auto; border-radius: 18px; padding-inline: 14px; }
    .hero { padding: 36px 0; }
    .hero h1 { font-size: 34px; }
    .hero .hero-lead { font-size: 17px; }
    .section { padding: 36px 0; }
    .service-list { grid-template-columns: 1fr; }
    .service-list .service-item img { height: 210px; }
    .service-list .service-content { padding: 22px; }
    #workspace { width: calc(100% - 24px); margin-top: 24px; }
    #workspace :is(.intro,.dashboard) { padding: 20px; }
    #workspace .dashboard-heading { flex-wrap: wrap; }
    :is(#celulars-home,#celulars-sobre,#celulars-contato) :is(.cel-home-shell,.cel-shell) { padding-inline: 20px; }
    :is(#celulars-home,#celulars-sobre,#celulars-contato) :is(.cel-home-hero,.cel-hero) { padding: 30px 0 !important; gap: 24px !important; }
    :is(#celulars-home,#celulars-sobre,#celulars-contato) :is(.cel-card,.cel-mini-card,.cel-path-card,.cel-clarity-card,.cel-final-cta) { padding: 22px !important; }
    #celulars-iphones-catalog .catalog-shell { padding: 26px 16px !important; }
    #celulars-iphones-catalog .catalog-group__header { padding: 20px !important; }
    .cel-global-footer-inner { padding: 32px 20px 20px !important; }
    .login-panel { padding: 28px; }
  }
  @media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
  /* Never let a layout rule reveal a restricted, inactive or closed surface. */
  [hidden] { display: none !important; }
}
