/* LENOY desktop visual refresh - 0.21.46.244
 * Escopo estritamente desktop. Não altera fluxos, permissões, formulários ou mobile/app.
 */
@media (min-width: 901px) {
  body.lenoy-candidate-app-mounted,
  body.lenoy-company-app-mounted {
    --lenoy-ui-red:#d8232a;
    --lenoy-ui-red-dark:#b91c1c;
    --lenoy-ui-ink:#172033;
    --lenoy-ui-muted:#697386;
    --lenoy-ui-line:#e7e9ee;
    --lenoy-ui-soft:#f7f8fa;
    --lenoy-ui-shadow:0 10px 30px rgba(22,32,51,.055);
    background:#f7f8fa !important;
  }

  /* Base das telas */
  body.lenoy-candidate-app-mounted .lenoy-area-shell,
  body.lenoy-candidate-app-mounted .lenoy-candidate-main,
  body.lenoy-candidate-app-mounted .lenoy-candidate-dashboard,
  body.lenoy-company-app-mounted .lenoy-company-shell,
  body.lenoy-company-app-mounted .lenoy-company-dashboard,
  body.lenoy-company-app-mounted .lenoy-company-jobs-page {
    max-width:1520px !important;
  }

  /* Cabeçalhos de módulo: mais leves e com mini-ilustração */
  body.lenoy-candidate-app-mounted .lenoy-area-hero,
  body.lenoy-company-app-mounted .lenoy-company-hero {
    position:relative;
    overflow:hidden;
    min-height:132px;
    padding:28px 210px 28px 30px !important;
    border:1px solid var(--lenoy-ui-line) !important;
    border-radius:22px !important;
    background:linear-gradient(135deg,#fff 0%,#fff 68%,#fff7f7 100%) !important;
    color:var(--lenoy-ui-ink) !important;
    box-shadow:var(--lenoy-ui-shadow) !important;
  }
  body.lenoy-candidate-app-mounted .lenoy-area-hero::after,
  body.lenoy-company-app-mounted .lenoy-company-hero::after {
    content:"";
    position:absolute;
    right:24px;
    top:50%;
    width:174px;
    height:108px;
    transform:translateY(-50%);
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;
    opacity:.96;
    pointer-events:none;
  }
  body.lenoy-candidate-app-mounted .lenoy-area-hero::after { background-image:url('../images/ui/candidate-profile.svg'); }
  body.lenoy-company-app-mounted .lenoy-company-hero::after { background-image:url('../images/ui/company-team.svg'); }
  body.lenoy-candidate-app-mounted .lenoy-area-hero h1,
  body.lenoy-company-app-mounted .lenoy-company-hero h1 { color:var(--lenoy-ui-ink) !important; font-size:28px !important; letter-spacing:-.02em; }
  body.lenoy-candidate-app-mounted .lenoy-area-hero p,
  body.lenoy-company-app-mounted .lenoy-company-hero p { color:var(--lenoy-ui-muted) !important; max-width:780px; }
  body.lenoy-company-app-mounted .lenoy-company-hero__eyebrow,
  body.lenoy-candidate-app-mounted .lenoy-dashboard-head__eyebrow { background:#fff1f2 !important; color:var(--lenoy-ui-red) !important; }

  /* Cartões universais */
  body.lenoy-candidate-app-mounted :is(.lenoy-area-card,.lenoy-dashboard-card,.lenoy-job-card,.lenoy-candidate-application-card,.lenoy-application-card,.lenoy-candidate-offer-card,.lenoy-candidate-profile-panel__box,.lenoy-documents-panel,.lenoy-document-item,.lenoy-education__section,.lenoy-chat-panel),
  body.lenoy-company-app-mounted :is(.lenoy-company-panel,.lenoy-company-card,.lenoy-company-count,.lenoy-company-widget,.lenoy-job-manage-card,.lenoy-selected-job-card,.lenoy-application-card,.lenoy-candidate-profile-panel__box,.lenoy-company-result-card) {
    border:1px solid var(--lenoy-ui-line) !important;
    border-radius:18px !important;
    background:#fff !important;
    box-shadow:var(--lenoy-ui-shadow) !important;
  }

  body.lenoy-candidate-app-mounted :is(.lenoy-area-card,.lenoy-dashboard-card,.lenoy-job-card,.lenoy-candidate-application-card,.lenoy-candidate-offer-card),
  body.lenoy-company-app-mounted :is(.lenoy-company-panel,.lenoy-company-card,.lenoy-company-widget,.lenoy-job-manage-card,.lenoy-selected-job-card,.lenoy-application-card) {
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  }
  body.lenoy-candidate-app-mounted :is(.lenoy-dashboard-card,.lenoy-job-card,.lenoy-candidate-application-card):hover,
  body.lenoy-company-app-mounted :is(.lenoy-company-card,.lenoy-company-widget,.lenoy-job-manage-card,.lenoy-application-card):hover {
    transform:translateY(-2px);
    border-color:#f2c8cb !important;
    box-shadow:0 15px 36px rgba(22,32,51,.08) !important;
  }

  /* Ícones dos cards - chips coloridos */
  body.lenoy-candidate-app-mounted .lenoy-dashboard-card__icon,
  body.lenoy-company-app-mounted .lenoy-company-card__icon,
  body.lenoy-company-app-mounted .lenoy-company-count__icon,
  body.lenoy-company-app-mounted .lenoy-job-manage-card__icon,
  body.lenoy-candidate-app-mounted .lenoy-job-card__icon {
    width:48px !important;
    height:48px !important;
    border-radius:14px !important;
    background:#fff1f2 !important;
    color:var(--lenoy-ui-red) !important;
    box-shadow:inset 0 0 0 1px #ffe0e2;
  }

  /* Variação de cor, sem fugir da identidade */
  body.lenoy-candidate-app-mounted .lenoy-dashboard-cards > :nth-child(4n+2) .lenoy-dashboard-card__icon,
  body.lenoy-company-app-mounted .lenoy-company-counts > :nth-child(5n+2) .lenoy-company-count__icon { background:#eff6ff !important; color:#2563eb !important; box-shadow:inset 0 0 0 1px #dbeafe; }
  body.lenoy-candidate-app-mounted .lenoy-dashboard-cards > :nth-child(4n+3) .lenoy-dashboard-card__icon,
  body.lenoy-company-app-mounted .lenoy-company-counts > :nth-child(5n+3) .lenoy-company-count__icon { background:#fff7ed !important; color:#ea580c !important; box-shadow:inset 0 0 0 1px #ffedd5; }
  body.lenoy-candidate-app-mounted .lenoy-dashboard-cards > :nth-child(4n+4) .lenoy-dashboard-card__icon,
  body.lenoy-company-app-mounted .lenoy-company-counts > :nth-child(5n+4) .lenoy-company-count__icon { background:#f5f3ff !important; color:#7c3aed !important; box-shadow:inset 0 0 0 1px #ede9fe; }
  body.lenoy-company-app-mounted .lenoy-company-counts > :nth-child(5n+5) .lenoy-company-count__icon { background:#ecfdf5 !important; color:#059669 !important; box-shadow:inset 0 0 0 1px #d1fae5; }

  /* Métricas menos formais */
  body.lenoy-company-app-mounted .lenoy-company-count,
  body.lenoy-candidate-app-mounted .lenoy-candidate-stat {
    position:relative;
    min-height:104px;
    padding:18px 18px 16px 78px !important;
  }
  body.lenoy-company-app-mounted .lenoy-company-count strong { color:var(--lenoy-ui-ink) !important; font-size:28px !important; }
  body.lenoy-company-app-mounted .lenoy-company-count span { color:var(--lenoy-ui-muted) !important; }

  /* Painéis e títulos */
  body.lenoy-candidate-app-mounted :is(.lenoy-area-card,.lenoy-documents-panel,.lenoy-education__section) > :is(h2,h3):first-child,
  body.lenoy-company-app-mounted :is(.lenoy-company-panel,.lenoy-company-widget,.lenoy-candidate-profile-panel__box) > :is(h2,h3):first-child {
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--lenoy-ui-ink) !important;
    letter-spacing:-.01em;
  }
  body.lenoy-candidate-app-mounted :is(.lenoy-area-card,.lenoy-documents-panel,.lenoy-education__section) > :is(h2,h3):first-child::before,
  body.lenoy-company-app-mounted :is(.lenoy-company-panel,.lenoy-company-widget,.lenoy-candidate-profile-panel__box) > :is(h2,h3):first-child::before {
    content:"✦";
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    flex:0 0 34px;
    border-radius:10px;
    background:#fff1f2;
    color:var(--lenoy-ui-red);
    font-size:15px;
    box-shadow:inset 0 0 0 1px #ffe0e2;
  }

  /* Botões: visual consistente com mockup */
  body.lenoy-candidate-app-mounted .lenoy-area-button:not(.lenoy-area-button--secondary),
  body.lenoy-company-app-mounted .lenoy-company-button:not(.lenoy-company-button--secondary):not(.lenoy-company-button--danger):not(.lenoy-company-button--success) {
    border-radius:10px !important;
    background:linear-gradient(135deg,#d8232a,#c51f2c) !important;
    box-shadow:0 8px 18px rgba(216,35,42,.15);
  }
  body.lenoy-candidate-app-mounted .lenoy-area-button--secondary,
  body.lenoy-company-app-mounted .lenoy-company-button--secondary,
  body.lenoy-company-app-mounted .lenoy-company-mini-button {
    border-radius:10px !important;
    background:#fff !important;
  }

  /* IA - destaque visual comum em todas as telas */
  body.lenoy-candidate-app-mounted [class*="lenoy-ai"],
  body.lenoy-company-app-mounted [class*="lenoy-ai"] { border-radius:16px; }
  body.lenoy-candidate-app-mounted [class*="lenoy-ai"] button,
  body.lenoy-company-app-mounted [class*="lenoy-ai"] button {
    position:relative;
  }
  body.lenoy-candidate-app-mounted .lenoy-ai-tool-button::before,
  body.lenoy-company-app-mounted .lenoy-ai-tool-button::before {
    content:"";
    width:22px;
    height:22px;
    margin-right:8px;
    background:url('../images/ui/ai-spark.svg') center/contain no-repeat;
  }

  /* Upload com ilustração */
  body.lenoy-candidate-app-mounted .lenoy-documents-panel,
  body.lenoy-candidate-app-mounted .lenoy-area-file {
    position:relative;
  }
  body.lenoy-candidate-app-mounted .lenoy-documents-panel { padding-left:145px !important; min-height:150px; }
  body.lenoy-candidate-app-mounted .lenoy-documents-panel::before {
    content:"";
    position:absolute;
    left:18px;
    top:18px;
    width:112px;
    height:112px;
    background:url('../images/ui/upload-doc.svg') center/contain no-repeat;
    pointer-events:none;
  }

  /* Listas e tabelas com mais respiro */
  body.lenoy-candidate-app-mounted :is(.lenoy-candidate-application-card,.lenoy-application-card,.lenoy-candidate-offer-card),
  body.lenoy-company-app-mounted :is(.lenoy-application-card,.lenoy-job-manage-card,.lenoy-company-result-card) { padding:20px !important; }
  body.lenoy-company-app-mounted .lenoy-company-table-wrap { border-radius:16px !important; box-shadow:var(--lenoy-ui-shadow); background:#fff; }
  body.lenoy-company-app-mounted .lenoy-company-table th { background:#fafafa !important; color:#596273 !important; }
  body.lenoy-company-app-mounted .lenoy-company-table tr:hover td { background:#fffafa; }

  /* Formulários mais leves */
  body.lenoy-candidate-app-mounted :is(input,select,textarea),
  body.lenoy-company-app-mounted :is(input,select,textarea) {
    border-color:#dfe3e8 !important;
    border-radius:10px !important;
    background:#fff !important;
  }
  body.lenoy-candidate-app-mounted :is(input,select,textarea):focus,
  body.lenoy-company-app-mounted :is(input,select,textarea):focus {
    border-color:#ef9aa0 !important;
    box-shadow:0 0 0 3px rgba(216,35,42,.08) !important;
    outline:none !important;
  }

  /* Menus laterais desktop: ícones limpos e item ativo leve */
  body.lenoy-candidate-app-mounted .lenoy-candidate-sidebar a,
  body.lenoy-company-app-mounted .lenoy-company-sidebar a {
    border-radius:10px !important;
    transition:background .16s ease,color .16s ease,transform .16s ease;
  }
  body.lenoy-candidate-app-mounted .lenoy-candidate-sidebar a:hover,
  body.lenoy-company-app-mounted .lenoy-company-sidebar a:hover { transform:translateX(2px); background:#fafafa !important; }
  body.lenoy-candidate-app-mounted .lenoy-candidate-sidebar a.is-active,
  body.lenoy-company-app-mounted .lenoy-company-sidebar a.is-active { background:#fff1f2 !important; color:var(--lenoy-ui-red) !important; }

  /* Dashboard candidato: cards mais compactos e amigáveis */
  body.lenoy-candidate-app-mounted .lenoy-dashboard-cards { gap:16px !important; }
  body.lenoy-candidate-app-mounted .lenoy-dashboard-card { min-height:190px !important; padding:20px !important; }
  body.lenoy-candidate-app-mounted .lenoy-dashboard-card h2 { font-size:18px !important; }
  body.lenoy-candidate-app-mounted .lenoy-dashboard-card p { color:var(--lenoy-ui-muted) !important; }

  /* Dashboard empresa */
  body.lenoy-company-app-mounted .lenoy-company-dashboard-grid { gap:16px !important; }
  body.lenoy-company-app-mounted .lenoy-company-widget { overflow:hidden; }
  body.lenoy-company-app-mounted .lenoy-company-widget__title { color:var(--lenoy-ui-ink) !important; }
  body.lenoy-company-app-mounted .lenoy-company-widget--priority::after,
  body.lenoy-company-app-mounted .lenoy-company-widget--tools::after {
    content:"";
    position:absolute;
    right:18px;
    bottom:12px;
    width:82px;
    height:82px;
    border-radius:50%;
    background:radial-gradient(circle,#fff1f2 0 48%,transparent 49%);
    opacity:.75;
    pointer-events:none;
  }
  body.lenoy-company-app-mounted .lenoy-company-widget { position:relative; }

  /* Estado vazio deixa de parecer “erro” */
  body.lenoy-candidate-app-mounted .lenoy-empty-state,
  body.lenoy-company-app-mounted .lenoy-company-market__empty,
  body.lenoy-company-app-mounted .lenoy-chat-empty {
    padding:42px !important;
    text-align:center;
    background:linear-gradient(180deg,#fff,#fffafa) !important;
  }

  /* Textos secundários */
  body.lenoy-candidate-app-mounted :is(.lenoy-area-help,.lenoy-area-card p,.lenoy-dashboard-card p),
  body.lenoy-company-app-mounted :is(.lenoy-company-panel__intro,.lenoy-company-card p,.lenoy-company-widget p) {
    color:var(--lenoy-ui-muted) !important;
    line-height:1.55;
  }
}
