/* Appearance variants share Razor Pages, controls and authorization. */
.account-main{display:grid;gap:24px;min-width:0}
.account-themes{border:0;padding:0;margin:0;min-width:0;display:grid;gap:14px}
.account-themes legend{font-size:15px;font-weight:600;padding:0;margin-bottom:10px}
.theme-options{display:grid;gap:10px}
.theme-option{display:flex;align-items:center;gap:12px;border:1px solid var(--separator);border-radius:10px;padding:14px;cursor:pointer;background:var(--surface)}
.theme-option:has(input:checked){border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary);background:var(--soft)}
.theme-option:has(input:focus-visible){outline:2px solid var(--primary);outline-offset:3px}
.theme-option>span:last-child{display:grid;gap:4px;min-width:0}
.theme-option strong{font-size:14px;color:var(--text)}
.theme-option>span:last-child>span{font-size:12px;color:var(--muted);font-weight:400}
.theme-sample{display:flex;overflow:hidden;width:48px;height:32px;flex:none;border-radius:6px;border:1px solid var(--line)}
.theme-sample i{flex:1;background:#102d3c}.theme-sample i:nth-child(2){background:#00657b}.theme-sample i:nth-child(3){background:#f6f8f9}
.sample-contraste i:nth-child(2){background:#008dad}.sample-contraste i:nth-child(3){background:#c7d4df}
.sample-clasico i{background:#008dad}.sample-clasico i:nth-child(2){background:#e1f5f8}.sample-clasico i:nth-child(3){background:#fff}
[data-theme-reset][hidden]{display:none}
@media(max-width:420px){.theme-sample{display:none}.theme-option{padding:12px;gap:10px}}

/* Previous design: petroleum header, dark sidebar, stronger blue-gray canvas. */
:root[data-theme=contraste]{
 --page:light-dark(#e7ecf0,#0b1118);--canvas:var(--page);
 --surface:light-dark(#fff,#17222d);--text:light-dark(#112733,#f4f8fc);
 --muted:light-dark(#344f61,#c4d2df);--line:light-dark(#6e8797,#657c8e);
 --separator:var(--line);--primary:light-dark(#00576d,#00e4f4);
 --on-primary:light-dark(#fff,#062e3a);--soft:light-dark(#e2eaf0,#233949);
}

/* First INSIS design: light sidebar, softly tinted surfaces and rounded actions.
   Control contrast and the later removal of underlines remain in every theme. */
:root[data-theme=clasico]{
 --page:light-dark(#f1f6f8,#10252c);--canvas:var(--page);
 --surface:light-dark(#fff,#18343e);--text:light-dark(#103541,#edf8fa);
 --muted:light-dark(#4b6570,#b8d0d7);--line:light-dark(#708895,#829ba6);
 --separator:light-dark(#d5e2e7,#3b5761);--primary:light-dark(#006e87,#66dfec);
 --on-primary:light-dark(#fff,#073741);--soft:light-dark(#e1f5f8,#1c4653);--radius:20px;
}

/* Historical header proportions and controls. */
:root:is([data-theme=contraste],[data-theme=clasico]) .application{border-radius:24px;box-shadow:none}
:root:is([data-theme=contraste],[data-theme=clasico]) .topbar{background:var(--petroleum);border-bottom:0;padding-right:28px;flex-wrap:wrap;gap:12px}
:root:is([data-theme=contraste],[data-theme=clasico]) .brand{flex:0 1 auto;flex-wrap:wrap}
:root:is([data-theme=contraste],[data-theme=clasico]) .brand-mark{width:240px;height:132px}
:root:is([data-theme=contraste],[data-theme=clasico]) .brand-mark img{width:370px;left:-65px;top:-36px;transform:none}
:root:is([data-theme=contraste],[data-theme=clasico]) .brand-title{font-size:22px;font-weight:700;letter-spacing:normal;padding:0 20px 0 0;border:0}
:root:is([data-theme=contraste],[data-theme=clasico]) .header-account{width:auto;gap:10px;padding:0;border:0;flex-wrap:wrap}
:root:is([data-theme=contraste],[data-theme=clasico]) .header-label,
:root:is([data-theme=contraste],[data-theme=clasico]) .header-exit{background:#fff;color:#062f3a;border-radius:999px;padding:8px 14px;font-size:14px;font-weight:600;max-width:none}
:root:is([data-theme=contraste],[data-theme=clasico]) .header-exit{border:1px solid #062f3a}
:root:is([data-theme=contraste],[data-theme=clasico]) .header-exit:hover{background:#062f3a;color:#fff}
:root:is([data-theme=contraste],[data-theme=clasico]) .topbar :focus-visible{outline-color:#062f3a}
:root:is([data-theme=contraste],[data-theme=clasico]) .page-heading h1{font-size:32px}
:root:is([data-theme=contraste],[data-theme=clasico]) .page-heading .eyebrow,
:root:is([data-theme=contraste],[data-theme=clasico]) .release-card .eyebrow{color:var(--primary);font-size:12px;letter-spacing:1.2px}
:root:is([data-theme=contraste],[data-theme=clasico]) .badge{background:var(--primary);color:var(--on-primary);border-color:transparent}
:root:is([data-theme=contraste],[data-theme=clasico]) .badge.neutral{background:var(--soft);color:var(--text);border-color:var(--line)}
:root:is([data-theme=contraste],[data-theme=clasico]) .release-card .badge::before{display:none}
:root:is([data-theme=contraste],[data-theme=clasico]) .panel,
:root:is([data-theme=contraste],[data-theme=clasico]) .stats>div{box-shadow:none}
:root:is([data-theme=contraste],[data-theme=clasico]) .download-tabs{display:flex;gap:10px;padding:0;border:0;background:transparent;border-radius:0}
:root:is([data-theme=contraste],[data-theme=clasico]) .download-tabs .button{min-height:41px;padding:10px 17px;background:var(--surface);color:var(--text);border:1px solid var(--line)}
:root:is([data-theme=contraste],[data-theme=clasico]) .download-tabs .button.primary{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
:root:is([data-theme=contraste],[data-theme=clasico]) .release-version{font-size:40px}
:root[data-theme=contraste] .panel-head{background:light-dark(#f4f6f8,#1c2d3b)}
:root[data-theme=contraste] .welcome{background:#103746}

/* The original light navigation and login treatment. */
:root[data-theme=clasico] .sidebar{background:var(--surface);color:var(--text);border-color:var(--separator)}
:root[data-theme=clasico] .sidebar .nav-caption,
:root[data-theme=clasico] .sidebar .sidebar-footer,
:root[data-theme=clasico] .sidebar .nav-item{color:var(--muted)}
:root[data-theme=clasico] .sidebar .nav-item{border-radius:26px}
:root[data-theme=clasico] .sidebar .nav-item[aria-current=page]{background:var(--soft);color:var(--primary);box-shadow:none}
:root[data-theme=clasico] .sidebar .nav-item:hover{background:var(--page);color:var(--primary)}
:root[data-theme=clasico] .sidebar :focus-visible{outline-color:var(--primary)}
:root[data-theme=clasico] .nav-group{border-color:var(--separator)}
:root[data-theme=clasico] .nav-group summary{color:var(--primary)}
:root[data-theme=clasico] .welcome{background:var(--soft);color:var(--text)}
:root[data-theme=clasico] .welcome .eyebrow,
:root[data-theme=clasico] .welcome .welcome-bottom{color:var(--primary)}
:root[data-theme=clasico] .welcome .lead{color:var(--muted)}
:root[data-theme=clasico] .welcome .large-mark{border-color:var(--line)}
:root[data-theme=clasico] .button,
:root[data-theme=clasico] .download-tabs .button{border-radius:28px}
:root[data-theme=clasico] .badge{background:var(--soft);color:var(--primary);border-radius:24px}
:root[data-theme=clasico] .panel-head{background:var(--surface)}

@media(max-width:1100px){
 :root:is([data-theme=contraste],[data-theme=clasico]) .brand-title{font-size:20px}
 :root:is([data-theme=contraste],[data-theme=clasico]) .topbar{padding-right:20px}
}
@media(max-width:850px){
 :root:is([data-theme=contraste],[data-theme=clasico]) .topbar{padding-right:0}
 :root:is([data-theme=contraste],[data-theme=clasico]) .header-account{padding:0 24px 20px}
}
@media(max-width:650px){
 :root:is([data-theme=contraste],[data-theme=clasico]) .topbar{display:block}
 :root:is([data-theme=contraste],[data-theme=clasico]) .brand{display:block}
 :root:is([data-theme=contraste],[data-theme=clasico]) .brand-title{display:block;text-align:left;padding:0 24px 23px;font-size:20px}
 :root:is([data-theme=contraste],[data-theme=clasico]) .header-account{justify-content:flex-start;padding:0 24px 24px}
 :root:is([data-theme=contraste],[data-theme=clasico]) .page-heading h1{font-size:27px}
 :root:is([data-theme=contraste],[data-theme=clasico]) .release-version{font-size:34px}
 :root:is([data-theme=contraste],[data-theme=clasico]) .download-tabs .button{padding:9px 12px;font-size:13px}
}
