:root { font-family: system-ui, sans-serif; color: #eee5d8; background: #0c1423; --navy: #eee5d8; --green: #285b43; --red: #f0a399; }
* { box-sizing: border-box; }
body { margin: 0; }
header { background: var(--navy); color: white; padding: 1rem max(1rem, calc((100% - 76rem)/2)); display: flex; justify-content: space-between; align-items: center; min-height: 72px; }
.brand { color: white; text-decoration: none; font-weight: 850; font-size: 1.35rem; letter-spacing: .05em; }
.brand small { display: block; font-size: .65rem; font-weight: 500; letter-spacing: .02em; }
main { width: min(100% - 2rem, 76rem); margin: 2rem auto; }
.login main { max-width: 28rem; margin-top: clamp(2rem, 12vh, 7rem); }
.sales main, .dial main { max-width: 44rem; }
.card { background: white; border: 1px solid #34455f; padding: clamp(1rem, 4vw, 1.6rem); border-radius: 14px; margin-block: 1rem; }
h1, h2 { margin-top: 0; }
h2 { font-size: 1.2rem; }
button, .button, select, input:not([type=checkbox]):not([type=radio]) { font: inherit; border: 1px solid #526582; border-radius: 8px; padding: .65rem .8rem; min-height: 44px; max-width: 100%; background: white; color: var(--navy); }
button, .button { cursor: pointer; font-weight: 650; }
.button { display: inline-block; text-align: center; text-decoration: none; }
button.primary, .button.primary { background: var(--green); color: white; border-color: var(--green); }
button.danger { color: var(--red); border-color: var(--red); margin-top: 1rem; }
button.outline { background: transparent; color: white; }
.wide, .entry input { width: 100%; }
.entry { display: block; margin-block: 1rem; }
.entry input { display: block; margin-top: .35rem; }
fieldset { border: 0; padding: 0; }
.choices, .metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-block: .5rem; }
.choices label { border: 1px solid #526582; border-radius: 8px; padding: .7rem .35rem; }
.metrics .card { margin: 0; }
.metrics strong { display: block; font-size: 1.6rem; }
.customer { font-weight: 750; font-size: 1.4rem; }
.scroll { overflow: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .65rem; border-bottom: 1px solid #34455f; }
nav, .account { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.account { border-top: 1px solid #34455f; padding-block: .65rem; margin-top: .65rem; }
a { color: #ddbb88; }
[aria-current] { font-weight: 750; }
.alert { color: var(--red); }
#device { display: none; }

:root { color-scheme: dark; color: #eee5d8; background: #0c1423; --navy: #eee5d8; --green: #285b43; --red: #f0a399; --surface: #152239; --line: #34455f; --muted: #c7b9a5; }
header { background: #101b2d; border-bottom: 1px solid var(--line); }
.card { background: var(--surface); border-color: var(--line); }
button, .button, select, input:not([type=checkbox]):not([type=radio]) { background: #0e192c; border-color: #526582; }
input:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #edc687; outline-offset: 3px; }
input[type=radio], input[type=checkbox] { accent-color: #87c2a0; }
.choices label, th, td, .account { border-color: var(--line); }
th { background: #101b2d; color: #dfceb5; }
a { color: #ddbb88; }
.empty, .card > p { color: var(--muted); }
.panel-links { margin: 0 0 1.25rem; }
.panel-links a, .period-nav a, .section-nav a { text-decoration: none; padding: .55rem .8rem; border-radius: 7px; }
.panel-links a, .period-nav .export { border: 1px solid var(--line); }
.section-nav { border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin-bottom: 1.25rem; }
.section-nav a[aria-current], .period-nav a[aria-current] { background: #284466; color: #fff0d8; }
.period-nav .export { margin-left: auto; }
.manager [hidden] { display: none; }
.manager h3 { color: var(--muted); font-size: .95rem; margin-top: 1.5rem; }
.manager .account strong { flex: 1 0 100%; }
details { border-top: 1px solid var(--line); padding: .9rem 0; }
summary { cursor: pointer; font-weight: 650; }
.manager #users form { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
@media (max-width: 37rem) {
  main { margin-top: 1.25rem; }
  .section-nav, .panel-links { gap: .3rem; }
  .section-nav a, .panel-links a { padding-inline: .5rem; }
  .manager #users input:not([type=hidden]) { flex: 1 1 12rem; }
}

header { background: #101b2d; }
.brand { color: #edc687; }
.brand small { color: var(--muted); }
input::placeholder { color: #b6a994; opacity: 1; }
.panel-links a:hover, .section-nav a:hover, .period-nav a:hover { background: #213754; }
.section-nav a[aria-current], .period-nav a[aria-current] { border: 1px solid #506b8d; }
button.primary:hover, .button.primary:hover { background: #347252; }
.manager #users button[value=create] { background: #285b43; border-color: #528067; }

.signed-in,.user-identity { display:flex; align-items:center; gap:.7rem; }
.avatar { display:inline-grid; place-items:center; width:54px; height:54px; flex:none; border-radius:50%; object-fit:cover; background:#284466; color:#fff0d8; font-weight:750; }
.signed-in .avatar { width:38px; height:38px; font-size:.8rem; }
.user-record { border:1px solid var(--line); border-radius:12px; padding:1rem; margin-block:.85rem; background:#101b2d; }
.manager .user-identity h3 { color:inherit; margin:0; font-size:1.08rem; }
.user-identity p { color:var(--muted); margin:.25rem 0 0; }
.user-record details { margin-top:.9rem; }
.user-record h4 { margin: .65rem 0 0; }
.import-table td { vertical-align:middle; }
.file-icon { display:inline-grid; place-items:center; width:42px; height:42px; border:1px solid var(--line); border-radius:8px; font-size:1.35rem; text-decoration:none; }
.file-icon:hover { background:#284466; }
.preview-pagination { margin-top:1rem; }
@media (max-width: 32rem) { .signed-in > span:not(.avatar) { display:none; } }

.user-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap:.8rem; }
.user-tile { display:flex; align-items:center; gap:.8rem; padding:1rem; min-height:96px; border:1px solid var(--line); border-radius:10px; background:#101b2d; text-decoration:none; }
.user-tile:hover { border-color:#927758; background:#1b2c46; }
.user-tile strong,.user-tile small { display:block; }
.user-tile small { color:var(--muted); margin-top:.2rem; }
.tile-arrow { margin-left:auto; font-size:1.4rem; }
.user-detail-layout { display:grid; grid-template-columns:12rem minmax(0,1fr); align-items:start; gap:1rem; margin-top:1rem; }
.user-side { display:flex; flex-direction:column; align-items:stretch; border:1px solid var(--line); border-radius:10px; padding:.5rem; background:#101b2d; }
.user-side a { padding:.65rem .75rem; text-decoration:none; border-radius:7px; }
.user-side a[aria-current] { background:#284466; color:#fff0d8; }
.user-detail-content { margin:0; }
.user-detail-content .user-identity h2 { margin:0; }
@media (max-width:45rem) {
 .user-detail-layout { grid-template-columns:minmax(0,1fr); }
 .user-side { flex-direction:row; flex-wrap:wrap; }
}

.sales-profile,.sales-picker { display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap; }
.sales-profile h2 { margin:0; }
.sales-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
.sales-stats div { border:1px solid var(--line); padding:.65rem; border-radius:8px; display:flex; justify-content:space-between; gap:.5rem; }
.sales-stats dd { margin:0; font-weight:750; }

.sales-stats .outcome-deals, .director-table .league-agreement { --outcome: #82dfa7; background:#19372e; }
.sales-stats .outcome-potential { --outcome: #d8b5ff; background:#312445; }
.sales-stats .outcome-consultation, .director-table .league-consultation { --outcome: #9fd9ff; background:#20364b; }
.sales-stats .outcome-no_answer { --outcome: #f5dc77; background:#3b3425; }
.sales-stats div[class^="outcome-"] { color:var(--outcome,inherit); border-inline-start-color:var(--outcome,var(--line)); border-inline-start-width:3px; }

.sales-stats .outcome-invalid { --outcome: #ffb77e; background:#3b2925; }

.potential-list { list-style:none; padding:0; }
.potential-list li { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; padding:.65rem 0; border-bottom:1px solid var(--line); }

.trial-badge { margin-inline-start:auto; margin-inline-end:.85rem; padding:.38rem .65rem; border:1px solid #377557; border-radius:8px; background:#17382b; color:#8be8ad; font-size:clamp(.85rem,2.8vw,1.05rem); font-weight:750; white-space:nowrap; }
header:has(.trial-badge:last-child) .trial-badge { margin-inline-end:0; }

.director-table .league-consultation,.director-table .league-agreement { color:var(--outcome); }
