:root { color-scheme: dark; --ink: #eaf2fb; --muted: #b3c6e2; --blue: #7fb3ff; --line: rgba(185,210,255,.17); --panel: rgba(255,255,255,.055); }
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { min-height: 100svh; color: var(--ink); background: #0a1837; font: 400 15px/1.6 'Inter', sans-serif; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background: radial-gradient(ellipse at 85% 85%, rgba(38,94,173,.35), transparent 55%), linear-gradient(135deg,#0a1837,#1a2544 40%,#0f1b3a 75%,#13315e); }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .45; background-image: radial-gradient(1px 1px at 12% 19%,white 90%,transparent),radial-gradient(1px 1px at 31% 59%,white 90%,transparent),radial-gradient(1.5px 1.5px at 73% 28%,#b8d4ff 90%,transparent),radial-gradient(1px 1px at 90% 68%,white 90%,transparent),radial-gradient(1px 1px at 52% 83%,white 90%,transparent); background-size: 620px 540px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; background: #4f8cff; padding: 12px; border-radius: 10px; }
.skip-link:focus { top: 10px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 104px; padding: 24px 4vw; border-bottom: 1px solid rgba(185,210,255,.09); }
.brand { display: inline-flex; align-items: center; gap: 22px; }
.brand img { width: 110px; height: 42px; object-fit: contain; filter: brightness(0) invert(1); }
.brand span { padding-left: 22px; border-left: 1px solid var(--line); font-size: 10px; font-weight: 600; letter-spacing: .19em; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.back-link { font-size: 13px; color: var(--muted); }
.back-link:hover { color: white; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 11px 19px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.055); font-size: 13px; font-weight: 600; transition: background .2s, transform .2s; }
.button:hover { background: rgba(127,179,255,.14); transform: translateY(-1px); }
.button.primary { border-color: rgba(127,179,255,.5); background: linear-gradient(135deg,#4f8cff,#2b63cb); box-shadow: 0 8px 28px rgba(34,90,190,.24), inset 0 1px rgba(255,255,255,.2); color: white; }
.button.primary:hover { background: linear-gradient(135deg,#659dff,#3e76dc); }
.button.small { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.text-button { border: 0; background: none; color: var(--blue); font-size: 13px; padding: 6px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-size: 10px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #7fb3ff; box-shadow: 0 0 12px rgba(127,179,255,.65); }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; line-height: 1.2; letter-spacing: -.035em; }
.muted { color: var(--muted); }
.glass { background: linear-gradient(140deg,rgba(255,255,255,.095),rgba(255,255,255,.035)); border: 1px solid var(--line); box-shadow: 0 28px 80px rgba(0,0,0,.17), inset 0 1px rgba(255,255,255,.06); backdrop-filter: blur(24px); border-radius: 26px; }
.login-main { min-height: calc(100svh - 172px); display: grid; align-items: center; justify-items: center; padding: 60px 24px; }
.login-card { width: 100%; max-width: 440px; padding: 38px; }
.login-icon { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 28px; background: linear-gradient(140deg,rgba(79,140,255,.3),rgba(127,179,255,.06)); border: 1px solid rgba(127,179,255,.32); color: #a3c9ff; }
.login-icon svg { width: 23px; height: 23px; }
.login-card h1 { font-size: 30px; margin: 12px 0; }
.login-card > p { font-size: 13px; }
.login-card form { margin-top: 28px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 500; margin-bottom: 19px; }
input, select { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid rgba(185,210,255,.22); border-radius: 11px; background: rgba(6,17,43,.5); color: var(--ink); }
input::placeholder { color: #8297b8; }
input:focus, select:focus { border-color: #7fb3ff; outline: 2px solid rgba(127,179,255,.16); outline-offset: 0; }
.password-field { position: relative; }
.password-field input { padding-right: 67px; }
.password-field button { position: absolute; right: 12px; top: 0; height: 46px; border: 0; background: none; color: var(--muted); font-size: 11px; }
.form-meta { display: flex; align-items: center; justify-content: flex-end; margin: -5px 0 20px; }
.full { width: 100%; }
.login-note { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: #9db1ce; text-align: center; font-size: 11px; }
.site-footer { padding: 22px 24px; text-align: center; font-size: 11px; letter-spacing: .04em; color: #8fa5c5; }
.message { margin: 16px 0; border-radius: 11px; padding: 12px 15px; font-size: 13px; border: 1px solid rgba(127,179,255,.25); background: rgba(79,140,255,.1); color: #c6ddff; }
.message.error { color: #ffd0d8; border-color: rgba(255,135,158,.3); background: rgba(180,56,85,.12); }
.workspace { max-width: 1160px; margin: 0 auto; padding: 0 32px; min-height: calc(100svh - 172px); }
.tabs { display: flex; gap: 6px; }
.tab { color: var(--muted); border: 1px solid transparent; background: none; border-radius: 10px; padding: 8px 15px; font-size: 12px; }
.tab[aria-selected=true] { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.07); }
.account { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(127,179,255,.27); border-radius: 11px; background: rgba(79,140,255,.15); color: var(--blue); font-size: 11px; font-weight: 600; flex-shrink: 0; }
.account-name { color: var(--muted); font-size: 12px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-hero { text-align: center; padding: 83px 0 48px; }
.workspace-hero h1 { font-size: clamp(32px,4.2vw,52px); font-weight: 700; margin: 19px 0 17px; }
.workspace-hero h1 span { color: #8cbbff; }
.workspace-hero p { font-size: 15px; color: var(--muted); }
.software-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,340px)); justify-content: center; gap: 24px; padding: 10px 0 42px; }
.software-card { display: flex; flex-direction: column; padding: 29px; transition: border-color .2s, transform .25s, box-shadow .25s; }
.software-card:hover { transform: translateY(-5px); border-color: rgba(127,179,255,.48); box-shadow: 0 24px 60px rgba(7,19,48,.4),0 0 40px rgba(79,140,255,.08); }
.software-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 30px; }
.software-icon { display: grid; place-items: center; width: 66px; height: 66px; background: linear-gradient(145deg,rgba(79,140,255,.25),rgba(127,179,255,.06)); border: 1px solid rgba(127,179,255,.35); border-radius: 21px; color: #a7cbff; }
.software-icon svg { width: 31px; height: 31px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #a7e4d0; border: 1px solid rgba(125,218,186,.2); background: rgba(85,170,145,.09); padding: 4px 9px; border-radius: 20px; white-space: nowrap; }
.pill::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.pill.inactive { color: #bdc7d8; background: rgba(255,255,255,.04); border-color: var(--line); }
.software-card h2 { font-size: 26px; margin-bottom: 9px; }
.software-card p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.software-card .card-link { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--blue); font-size: 12px; font-weight: 600; }
.workspace-note { color: #8fa5c5; text-align: center; font-size: 11px; padding: 0 0 60px; }
.team-section { padding: 55px 0 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.section-heading h1 { font-size: 32px; margin: 12px 0; }
.section-heading p { font-size: 13px; color: var(--muted); }
.team-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.team-toolbar input { max-width: 290px; min-height: 40px; font-size: 12px; }
.count { color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 17px 24px; color: #94abce; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
td { padding: 21px 24px; border-top: 1px solid var(--line); font-size: 12px; }
.person { display: flex; align-items: center; gap: 13px; }
.person strong { display: block; font-weight: 500; }
.person small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.empty { padding: 35px 20px; text-align: center; color: var(--muted); font-size: 13px; }
dialog { margin: auto; border: 1px solid rgba(185,210,255,.24); border-radius: 24px; background: #142344; color: var(--ink); padding: 30px; width: min(480px,calc(100% - 32px)); max-height: calc(100svh - 48px); overflow: auto; box-shadow: 0 30px 120px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(3,9,23,.72); backdrop-filter: blur(8px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.dialog-heading h2 { font-size: 23px; }
.dialog-heading button { border: 0; background: none; color: var(--muted); padding: 4px 8px; font-size: 24px; }
dialog > p { font-size: 12px; margin-bottom: 25px; }
.checkbox { display: flex; flex-direction: row; align-items: center; gap: 10px; font-size: 13px; font-weight: 400; }
.checkbox input { width: 17px; min-height: 17px; accent-color: #4f8cff; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.form-help { font-size: 11px; color: var(--muted); margin: -10px 0 20px; }
.loading { min-height: calc(100svh - 172px); display: grid; place-content: center; text-align: center; color: var(--muted); gap: 18px; }
.spinner { width: 25px; height: 25px; border: 2px solid var(--line); border-top-color: #7fb3ff; border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-height: 900px) { .workspace-hero { padding-top: 13vh; } }
@media (max-width: 700px) {
  .site-header { padding: 20px; min-height: 86px; gap: 15px; }
  .brand { gap: 12px; } .brand img { width: 86px; height: 33px; } .brand span { padding-left: 12px; font-size: 8px; letter-spacing: .12em; }
  .header-actions { gap: 12px; } .header-actions .back-link { display: none; }
  .header-actions .button { padding: 10px 13px; font-size: 11px; }
  .workspace { padding: 0 20px; }
  .account-name { max-width: 100px; font-size: 11px; } .tab { padding: 8px 12px; }
  .workspace-hero { padding: 65px 0 35px; } .workspace-hero p { font-size: 13px; max-width: 270px; margin: auto; }
  .software-grid { grid-template-columns: minmax(0,340px); } .workspace-note { padding-bottom: 35px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .team-section { padding-top: 35px; } .team-toolbar { padding: 17px; } .team-toolbar input { max-width: 200px; }
  td, th { padding-left: 17px; padding-right: 17px; } .login-main { padding: 36px 20px; } .login-card { padding: 29px; }
}
.portal-header { min-height: 88px; padding-top: 18px; padding-bottom: 18px; }
.portal-header .tabs { flex: 1; margin-left: 16px; }
.portal-page .workspace, .portal-page .loading { min-height: calc(100svh - 154px); }
@media (max-width: 900px) {
  .portal-header .account-name { display: none; }
  .portal-header .tabs { margin-left: 0; }
}
@media (max-width: 540px) {
  .portal-header { min-height: 72px; padding: 14px 12px; gap: 10px; }
  .portal-header .brand img { width: 58px; height: 28px; }
  .portal-header .account { display: none; }
  .portal-header .tabs { gap: 2px; justify-content: center; }
  .portal-header .tab { padding: 9px; font-size: 11px; white-space: nowrap; }
  .portal-header .button { padding: 9px; gap: 6px; font-size: 10px; white-space: nowrap; }
  .portal-page .workspace, .portal-page .loading { min-height: calc(100svh - 138px); }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } }
