﻿/* KLOKER: identidad visual. Conserva los modos y el comportamiento existentes. */
body,body[data-theme=minimalista]{
  --navy:#08283f;--gold:#805b21;--heading:#08283f;
  --accent:#805b21;--text:#805b21;--muted:#806434;
  --surface:#ffffff;--panel:#fbfaf7;--tint:#f7efdf;--line:#e4d9c5;
  --primary-bg:#08283f;--primary-ink:#ffffff;--focus:#95681e;
  background:#ffffff;color:var(--text);color-scheme:light;
}
body[data-theme=control]{
  --navy:#08283f;--gold:#e3b76a;--heading:#e3b76a;
  --accent:#e3b76a;--text:#f5f7fa;--muted:#ccd6e1;
  --surface:#0e3049;--panel:#08283f;--tint:#203c50;--line:#3c5263;
  --primary-bg:#e3b76a;--primary-ink:#08283f;--focus:#f1c982;
  background:#08283f;color:var(--text);color-scheme:dark;
}
body[data-theme] :is(h1,h2,h3,h4,h5,h6),
body[data-theme] .page-title h2,body[data-theme] .card-head h3,
body[data-theme] .stat-number,body[data-theme] .clock,
body[data-theme] .journey-counter,body[data-theme] .simple-empty b{
  color:var(--heading);
}
body[data-theme] :is(.concept p,.concept>div>span,.selected-design,
  .page-title p,.date-line,.breadcrumb,.timezone,.clock-label,.clock-zone){color:var(--muted)}
body[data-theme] .concept>div>span{color:var(--accent)}
body[data-theme] .studio{
  background:var(--surface);color:var(--heading);border-bottom:1px solid var(--line);
}
body[data-theme] :is(.studio b span,.studio small,.company-identity){color:var(--text)}
body[data-theme] .app-shell{border-color:var(--line);box-shadow:0 16px 48px #08283f0a}
body[data-theme] .sidebar{background:var(--surface);border-color:var(--line)}
body[data-theme] :is(.workspace,.intro){background:var(--panel)}
body[data-theme] :is(.app-header,.session-toolbar){background:var(--surface);border-color:var(--line)}
body[data-theme] :is(.stat,.card,.notice,.simple-details,.setup-steps li){border-color:var(--line)}
body[data-theme] .stat{border-top-color:var(--accent)}
body[data-theme] .btn{color:var(--text);background:var(--surface);border-color:var(--line)}
body[data-theme] .btn.primary{background:var(--primary-bg);color:var(--primary-ink);border-color:var(--primary-bg)}
body[data-theme] .btn:not(:disabled):not([aria-disabled=true]):hover{border-color:var(--accent)}
body[data-theme] a:not(.btn):not(.brand):not(.company-identity){color:var(--accent)}
body[data-theme] .sidebar .main-nav .item{color:var(--text)}
body[data-theme] :is(.sidebar .main-nav .active,nav button.active){background:var(--tint);color:var(--heading)}
body[data-theme] .sidebar .main-nav .item:hover{background:var(--tint)}
body[data-theme] :is(input,select,textarea){accent-color:var(--accent)}
body[data-theme] :is(.fields input,.field input,.fields textarea,.fields select,
 .header-actions select,.search,.pending-form input,.pending-form select){color:var(--text);background:var(--panel);border-color:var(--line)}
body[data-theme] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
body[data-theme] :is(button,a,input,select,textarea,summary):focus-visible{outline-color:var(--focus)}
body[data-theme] th{color:var(--heading);background:var(--panel)}
body[data-theme] td{color:var(--text);border-color:var(--line)}
body[data-theme] .avatar{background:var(--tint);color:var(--heading)}
body[data-theme] .view-switch{background:var(--panel);border-color:var(--line)}
body[data-theme] .view-switch button{color:var(--text)}
body[data-theme] .view-switch button[aria-pressed=true]{color:var(--heading);background:var(--surface)}
body[data-theme] .designs button{color:var(--text);border-color:var(--line)}
body[data-theme] .designs button[aria-pressed=true]{background:var(--primary-bg);color:var(--primary-ink)}
/* El archivo aprobado se muestra completo, sin filtros ni recoloreado. */
body[data-theme] .brand{display:flex;max-width:100%;width:100%;letter-spacing:normal;line-height:1}
.kloker-logo{display:block;width:100%;height:auto;object-fit:contain;background:transparent;border-radius:0}
.sidebar .kloker-logo{max-width:170px}
.intro .brand{max-width:355px}
.studio>.kloker-header-brand{width:174px;flex:0 0 174px;margin-right:auto}
body[data-theme] .studio:has(.kloker-header-brand){display:flex;flex-wrap:wrap;align-items:center;gap:18px}
body[data-theme] .studio:has(.kloker-header-brand)>.company-identity{margin-left:0}
body[data-theme] .intro .tag{background:var(--tint);color:var(--accent);letter-spacing:1.2px}
body[data-theme] .login-layout{box-shadow:0 18px 60px #08283f12}
body[data-theme] .login-form .message{color:#b2472f}
body[data-theme=control] .login-form .message{color:#ffb5a1}
/* El reloj conserva su relieve y todos sus estados de interacción. */
body[data-theme] .current-time-button{
  --clock-face-top:#173e59;--clock-face-bottom:#08283f;--clock-edge:#031725;
  --clock-ink:#ffffff;--clock-caption:#e3b76a;border-color:#b88b46;
}
body[data-theme=minimalista] .current-time-button{
  --clock-face-top:#fffdf7;--clock-face-bottom:#f1e2c5;--clock-edge:#b79b6b;
  --clock-ink:#08283f;--clock-caption:#805b21;border-color:#b79b6b;
}
body[data-theme] .current-time-button:disabled{border-color:var(--line)}
body[data-theme] .current-time-button:disabled .current-time{color:var(--heading)}
body[data-theme] .current-time-button:disabled :is(.current-time-label,.current-time-zone){color:var(--muted)}
@media(max-width:740px){
  .intro .brand{max-width:285px}
  .sidebar .kloker-logo{max-width:156px}
  .studio>.kloker-header-brand{width:156px;flex-basis:156px}
}
@media(prefers-reduced-motion:reduce){body[data-theme] .btn{transition:none}}