:root{
  --ink:#1d2340;
  --ink-soft:#313955;
  --muted:#737b93;
  --muted-2:#9aa1b5;
  --line:#e7e9f1;
  --line-strong:#d9dce8;
  --surface:#ffffff;
  --surface-2:#f8f8fc;
  --canvas:#f3f4f9;
  --purple:#5b4cf0;
  --purple-dark:#3f34bb;
  --purple-soft:#efedff;
  --blue:#4d8eff;
  --cyan:#42cfe8;
  --green:#20b98b;
  --green-soft:#e8f8f2;
  --orange:#f59c55;
  --rose:#f17696;
  --danger:#b83c56;
  --danger-soft:#fff0f3;
  --warning:#8a6818;
  --warning-soft:#fff8df;
  --shadow-sm:0 8px 24px rgba(37,40,75,.06);
  --shadow-md:0 18px 50px rgba(48,42,120,.12);
  --radius-sm:14px;
  --radius-md:20px;
  --radius-lg:28px;
  --sidebar:252px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);font-family:"Plus Jakarta Sans","Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
body.app-body{background:var(--canvas)}
body.public-body{background:#fff}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button,a,input,select{outline:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{box-shadow:0 0 0 4px rgba(91,76,240,.18);border-color:var(--purple)!important}
img{display:block;max-width:100%}

/* Brand and application shell */
.app-frame{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);padding:26px 18px 20px;background:#171932;color:#fff;display:flex;flex-direction:column;z-index:40;border-right:1px solid rgba(255,255,255,.05)}
.brand-lockup{display:flex;align-items:center;gap:12px;padding:0 8px 26px}
.brand-lockup img{width:42px;height:42px;filter:drop-shadow(0 8px 18px rgba(91,76,240,.28))}
.brand-copy{display:flex;flex-direction:column;line-height:1.15}
.brand-copy strong{font-size:14px;letter-spacing:-.015em}
.brand-copy small{font-size:11px;color:#a9a3ff;text-transform:uppercase;letter-spacing:.16em;font-weight:800;margin-top:5px}
.sidebar-label{padding:0 12px;margin:4px 0 10px;color:#7f86a8;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.side-nav{display:grid;gap:5px}
.nav-item{min-height:48px;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;color:#bac0d8;font-size:13px;font-weight:700;transition:.18s ease}
.nav-item:hover{background:rgba(255,255,255,.065);color:#fff;transform:translateX(2px)}
.nav-item.active{background:linear-gradient(135deg,rgba(124,108,255,.28),rgba(91,76,240,.12));color:#fff;box-shadow:inset 0 0 0 1px rgba(147,137,255,.18)}
.nav-icon{width:28px;height:28px;border-radius:9px;background:rgba(255,255,255,.07);display:grid;place-items:center;color:#b8b2ff;font-size:16px;line-height:1}
.nav-item.active .nav-icon{background:var(--purple);color:#fff;box-shadow:0 7px 16px rgba(91,76,240,.36)}
.nav-item small{margin-left:auto;color:#6f7596;font-size:9px;text-transform:uppercase;letter-spacing:.06em}
.nav-item.disabled{opacity:.52;cursor:default;pointer-events:none}
.sidebar-spacer{flex:1}
.sidebar-card{background:linear-gradient(145deg,rgba(124,108,255,.16),rgba(255,255,255,.045));border:1px solid rgba(161,153,255,.16);border-radius:18px;padding:16px;margin:18px 4px 12px}
.sidebar-card-icon{width:30px;height:30px;background:rgba(124,108,255,.25);border-radius:10px;display:grid;place-items:center;color:#d6d2ff;margin-bottom:12px}
.sidebar-card strong{font-size:12px}
.sidebar-card p{font-size:10px;line-height:1.55;color:#9097b5;margin:7px 0 0}
.sidebar-version{padding:0 8px;color:#5f6686;font-size:9px;letter-spacing:.14em;font-weight:800}
.app-column{margin-left:var(--sidebar);min-height:100vh}
.topbar{height:72px;background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(223,225,235,.85);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:30}
.mobile-brand{display:none;align-items:center;gap:9px}.mobile-brand img{width:34px;height:34px}.mobile-brand strong{font-size:14px}
.topbar-context{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);font-weight:700}
.context-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(32,185,139,.1)}
.topbar-actions{display:flex;align-items:center;gap:10px}
.icon-action{border-radius:50%}
.avatar{display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#eceaff,#dcd8ff);color:var(--purple-dark);font-weight:850}
.avatar-small{width:38px;height:38px;font-size:13px}
.account-copy{display:flex;flex-direction:column;min-width:132px}
.account-copy strong{font-size:12px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-copy small{font-size:10px;color:var(--muted);margin-top:3px}
.logout-button{height:40px;border:1px solid var(--line);background:#fff;color:var(--ink-soft);border-radius:12px;padding:0 12px;display:flex;align-items:center;gap:7px;cursor:pointer;font-size:11px;font-weight:800;transition:.18s}
.logout-button:hover{border-color:#cbc7ff;background:var(--purple-soft);color:var(--purple-dark)}
.content-column{min-height:calc(100vh - 72px)}
.mobile-nav{display:none}

/* Common content */
.workspace{max-width:1260px;margin:0 auto;padding:32px 34px 70px}
.eyebrow{display:block;color:var(--purple);font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;margin-bottom:9px}
.eyebrow.light{color:#d8d4ff}
.section-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:34px 0 17px}
.section-header h2,.panel-title h2{margin:0;color:var(--ink);font-size:23px;letter-spacing:-.035em}
.section-header p,.panel-title p{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.count-badge,.filter-chip{background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 12px;color:var(--muted);font-size:10px;font-weight:800;white-space:nowrap}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);padding:24px}
.panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.panel-title a{font-size:11px;color:var(--purple);font-weight:850;padding:7px 0}
.panel-symbol{width:40px;height:40px;border-radius:13px;background:var(--purple-soft);color:var(--purple);display:grid;place-items:center;font-size:19px}

/* Student */
.welcome-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr);gap:18px}
.welcome-card{min-height:270px;position:relative;overflow:hidden;border-radius:var(--radius-lg);background:linear-gradient(125deg,#332a9d 0%,#5b4cf0 52%,#8c6dff 100%);color:#fff;padding:34px;box-shadow:0 22px 55px rgba(73,59,201,.23);isolation:isolate}
.welcome-card:before{content:"";position:absolute;width:340px;height:340px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-120px;top:-155px;box-shadow:0 0 0 50px rgba(255,255,255,.035),0 0 0 100px rgba(255,255,255,.02);z-index:-1}
.welcome-content{position:relative;z-index:2;max-width:590px}
.welcome-card h1{font-size:clamp(34px,4.3vw,55px);line-height:1.02;letter-spacing:-.055em;margin:10px 0 14px}
.welcome-card p{font-size:15px;line-height:1.65;color:#e6e3ff;max-width:530px;margin:0}
.welcome-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:25px}
.button-light{height:44px;display:inline-flex;align-items:center;gap:24px;padding:0 17px;background:#fff;color:#3b319e;border-radius:13px;font-size:11px;font-weight:900;box-shadow:0 10px 24px rgba(29,23,92,.16);transition:.18s}
.button-light:hover{transform:translateY(-2px)}
.phase-chip{display:inline-flex;align-items:center;gap:7px;color:#e5e2ff;font-size:10px;font-weight:800}
.phase-chip i{width:7px;height:7px;border-radius:50%;background:#55e6c1;box-shadow:0 0 0 5px rgba(85,230,193,.12)}
.welcome-orbit{position:absolute;right:24px;bottom:20px;width:165px;height:165px;border:1px solid rgba(255,255,255,.16);border-radius:50%;display:grid;place-items:center}
.orbit-logo{width:72px;height:72px;padding:8px;border-radius:24px;background:rgba(255,255,255,.12);backdrop-filter:blur(8px);transform:rotate(7deg)}
.orbit-dot{position:absolute;border-radius:50%;background:#fff}.dot-a{width:14px;height:14px;top:8px;left:33px;background:#55e6c1}.dot-b{width:9px;height:9px;right:7px;top:66px;background:#ffd66b}.dot-c{width:12px;height:12px;bottom:9px;left:43px;background:#ff9db6}
.readiness-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:25px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column}
.readiness-head{display:flex;align-items:center;justify-content:space-between}.mini-icon{width:38px;height:38px;display:grid;place-items:center;background:var(--green-soft);color:var(--green);border-radius:13px;font-weight:900}.status-label{font-size:9px;letter-spacing:.12em;font-weight:900;color:var(--green)}
.readiness-card h2{font-size:21px;letter-spacing:-.035em;margin:28px 0 8px}.readiness-card>p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}
.readiness-list{margin-top:auto;padding-top:22px;display:grid;gap:11px;border-top:1px solid var(--line)}
.readiness-list span{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--ink-soft);font-weight:700}.readiness-list i{width:8px;height:8px;border-radius:50%}.readiness-list .ok{background:var(--green);box-shadow:0 0 0 4px rgba(32,185,139,.1)}.readiness-list .soon{background:#c8ccda}
.medos-app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.app-card{position:relative;overflow:hidden;min-height:225px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:19px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;transition:.2s ease}
.app-card:after{content:"";position:absolute;width:145px;height:145px;border-radius:50%;right:-70px;bottom:-85px;background:var(--app-soft)}
.app-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:var(--app-line)}
.app-card-top{display:flex;align-items:flex-start;justify-content:space-between}
.app-icon{width:55px;height:55px;border-radius:17px;background:linear-gradient(145deg,var(--app-a),var(--app-b));display:grid;place-items:center;font-size:27px;box-shadow:0 12px 25px var(--app-shadow)}
.status{display:inline-flex;align-items:center;gap:6px;background:#f6f6fa;border:1px solid #eeeeF4;color:#8a91a6;border-radius:999px;padding:6px 8px;font-size:9px;font-weight:850}.status i{width:5px;height:5px;border-radius:50%;background:#aeb4c5}
.app-card-body{margin-top:23px;position:relative;z-index:2}.app-card h3{font-size:18px;letter-spacing:-.025em;margin:0 0 7px}.app-card p{font-size:11px;line-height:1.55;color:var(--muted);margin:0;max-width:245px}
.app-card-footer{margin-top:auto;padding-top:19px;display:flex;justify-content:space-between;align-items:center;color:var(--app-a);font-size:10px;font-weight:850;position:relative;z-index:2}
.app-theme-1{--app-a:#5b4cf0;--app-b:#8375ff;--app-soft:#efedff;--app-line:#d8d3ff;--app-shadow:rgba(91,76,240,.22)}
.app-theme-2{--app-a:#2f82ed;--app-b:#55b7ff;--app-soft:#e9f4ff;--app-line:#cfe7ff;--app-shadow:rgba(47,130,237,.2)}
.app-theme-3{--app-a:#ea668b;--app-b:#ff9aae;--app-soft:#fff0f5;--app-line:#ffd5e0;--app-shadow:rgba(234,102,139,.2)}
.app-theme-4{--app-a:#f28b3b;--app-b:#ffc160;--app-soft:#fff4e8;--app-line:#ffe1c1;--app-shadow:rgba(242,139,59,.2)}
.app-theme-5{--app-a:#20ad87;--app-b:#55d3b4;--app-soft:#e9faf5;--app-line:#c9f0e5;--app-shadow:rgba(32,173,135,.2)}
.app-theme-6{--app-a:#7456d8;--app-b:#b17cff;--app-soft:#f4edff;--app-line:#e6d7ff;--app-shadow:rgba(116,86,216,.2)}
.dashboard-two-columns{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:16px;margin-top:24px}
.empty-journey{display:flex;align-items:center;gap:22px;background:var(--surface-2);border:1px dashed var(--line-strong);border-radius:17px;padding:20px}
.empty-journey strong{font-size:13px}.empty-journey p{color:var(--muted);font-size:11px;line-height:1.55;margin:6px 0 0}
.journey-visual{display:flex;align-items:center}.journey-node{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#e7e9f0;color:#9299ad;font-size:10px;font-weight:850}.journey-node.done{background:var(--green);color:#fff}.journey-visual i{width:25px;height:2px;background:#e1e3eb}
.identity-list{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:16px}.identity-list div{padding:13px;border-radius:14px;background:var(--surface-2)}.identity-list dt{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:800}.identity-list dd{margin:6px 0 0;font-size:12px;font-weight:850}

/* Admin and system */
.admin-welcome,.system-welcome{min-height:205px;border-radius:var(--radius-lg);padding:31px 34px;color:#fff;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative}
.admin-welcome{background:linear-gradient(120deg,#273163,#4452a8 58%,#6d73d6)}
.system-welcome{background:linear-gradient(120deg,#22243f,#363b70 55%,#5848c9)}
.admin-welcome:after,.system-welcome:after{content:"";position:absolute;width:350px;height:350px;border:1px solid rgba(255,255,255,.09);border-radius:50%;right:-140px;top:-170px;box-shadow:0 0 0 55px rgba(255,255,255,.025)}
.admin-welcome>div:first-child,.system-welcome>div:first-child{position:relative;z-index:2}.admin-welcome h1,.system-welcome h1{font-size:clamp(32px,4vw,48px);letter-spacing:-.05em;margin:8px 0 10px}.admin-welcome p,.system-welcome p{margin:0;color:#dce0ff;font-size:14px}
.admin-illustration{position:relative;z-index:2;width:150px;height:125px;border-radius:25px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.13);display:grid;place-items:center;backdrop-filter:blur(10px)}.admin-illustration span{font-size:48px;color:#c8ceff}.admin-illustration b{position:absolute;bottom:13px;font-size:9px;letter-spacing:.14em;color:#cdd1ff}.admin-illustration i{position:absolute;width:55px;height:55px;border-radius:50%;background:#6e79e8;filter:blur(20px)}
.system-pulse{position:relative;z-index:2;min-width:155px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.08);border-radius:18px;padding:18px}.system-pulse span{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:850}.system-pulse i{width:8px;height:8px;border-radius:50%;background:#55e6c1;box-shadow:0 0 0 6px rgba(85,230,193,.12)}.system-pulse small{display:block;color:#aeb4df;margin-top:12px;font-size:10px;text-transform:uppercase;letter-spacing:.12em}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 24px}
.stat-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;align-items:center;gap:15px;box-shadow:var(--shadow-sm)}
.stat-icon{width:45px;height:45px;border-radius:14px;display:grid;place-items:center;font-size:19px}
.stat-card div{display:flex;flex-direction:column}.stat-card strong{font-size:25px;line-height:1;letter-spacing:-.04em}.stat-card small{font-size:10px;color:var(--muted);margin-top:7px}
.stat-purple .stat-icon{background:#efedff;color:var(--purple)}.stat-blue .stat-icon{background:#eaf4ff;color:#3883db}.stat-green .stat-icon{background:#e8f8f2;color:var(--green)}.stat-orange .stat-icon{background:#fff1e5;color:#ef8737}
.users-panel{padding:0;overflow:hidden}.users-panel .table-title{padding:24px 24px 0}.table-title p{margin-top:4px}.table-wrap{overflow:auto}
.users-table{width:100%;border-collapse:collapse}.users-table th{background:#fafafd;color:#8b92a7;text-transform:uppercase;letter-spacing:.07em;font-size:9px;font-weight:900;padding:13px 18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.users-table td{padding:14px 18px;border-bottom:1px solid #eff0f5;font-size:11px;color:var(--ink-soft);white-space:nowrap}.users-table tbody tr:hover{background:#fafaff}
.user-cell{display:flex;align-items:center;gap:11px}.table-avatar{width:34px;height:34px;font-size:11px}.user-cell>span:last-child{display:flex;flex-direction:column}.user-cell strong{font-size:11px;color:var(--ink)}.user-cell small{font-size:9px;color:var(--muted);margin-top:4px}
.role-badge{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:9px;font-weight:850}.role-student{background:#edf4ff;color:#3477c7}.role-admin{background:#fff0e3;color:#d7782f}.role-superuser{background:#efedff;color:var(--purple)}
.account-status{display:inline-flex;align-items:center;gap:7px;font-size:10px;font-weight:750}.account-status i{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(32,185,139,.1)}.account-status.inactive i{background:#bdc1ce;box-shadow:none}
.compact-header{margin-bottom:14px}.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.tool-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;align-items:center;gap:13px}.tool-card>span{width:42px;height:42px;border-radius:13px;background:var(--surface-2);display:grid;place-items:center;color:var(--purple)}.tool-card div{flex:1}.tool-card strong{font-size:11px}.tool-card p{font-size:9px;color:var(--muted);margin:5px 0 0}.tool-card small{position:absolute;top:12px;right:12px;color:#a2a8b9;font-size:8px;text-transform:uppercase;font-weight:850}
.health-badge{display:inline-flex;align-items:center;gap:7px;background:var(--green-soft);color:var(--green);border-radius:999px;padding:7px 10px;font-size:9px;font-weight:850}.health-badge i{width:6px;height:6px;border-radius:50%;background:var(--green)}
.system-columns{grid-template-columns:1fr 1fr}
.milestone-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}.milestone-list li{display:flex;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px}.milestone-list li>span{width:27px;height:27px;flex:0 0 auto;border-radius:9px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;font-size:11px;font-weight:900}.milestone-list strong{font-size:11px}.milestone-list p{font-size:9px;color:var(--muted);margin:4px 0 0}
.service-list{display:grid;gap:11px}.service-list>div{display:flex;align-items:center;gap:12px;padding:13px;background:var(--surface-2);border-radius:14px}.service-icon{width:39px;height:39px;border-radius:12px;background:#eae8ff;color:var(--purple);display:grid;place-items:center;font-size:9px;font-weight:900}.service-list p{display:flex;flex-direction:column;flex:1;margin:0}.service-list strong{font-size:11px}.service-list small{font-size:9px;color:var(--muted);margin-top:4px}.service-list i{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(32,185,139,.1)}
.roadmap-panel{margin-top:16px}.roadmap-flow{display:flex;align-items:center}.roadmap-flow>i{height:2px;flex:1;min-width:18px;background:#e5e7ef}.roadmap-step{min-width:125px;padding:13px;border:1px solid var(--line);border-radius:14px;display:flex;flex-direction:column}.roadmap-step span{font-size:9px;color:var(--purple);font-weight:900}.roadmap-step strong{font-size:11px;margin-top:7px}.roadmap-step small{font-size:8px;color:var(--muted);margin-top:4px}.roadmap-step.active{border-color:#d6d1ff;background:#f7f5ff}

/* Profile and forms */
.profile-workspace{max-width:1150px}.profile-banner{min-height:180px;border-radius:var(--radius-lg);padding:30px 34px;color:#fff;background:linear-gradient(120deg,#4538c0,#6657ee 62%,#9178ff);display:flex;align-items:center;gap:20px;position:relative;overflow:hidden}.profile-banner:after{content:"";position:absolute;width:280px;height:280px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-100px;top:-135px;box-shadow:0 0 0 45px rgba(255,255,255,.035)}
.profile-avatar-large{width:76px;height:76px;flex:0 0 auto;border-radius:24px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.2);display:grid;place-items:center;font-size:27px;font-weight:900;backdrop-filter:blur(9px)}
.profile-heading{position:relative;z-index:2}.profile-heading h1{font-size:31px;letter-spacing:-.04em;margin:6px 0}.profile-heading p{font-size:11px;color:#e3e0ff;margin:0}
.profile-status{position:relative;z-index:2;margin-left:auto;display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:9px 12px;font-size:9px;font-weight:850}.profile-status i{width:7px;height:7px;border-radius:50%;background:#55e6c1}
.profile-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:16px;margin-top:18px}.profile-form-panel{margin:0}.profile-side{display:grid;gap:16px;align-content:start}.security-panel{margin:0}.lock-symbol{width:38px;height:38px;border-radius:12px;background:#fff1e6;color:#ef8737;display:grid;place-items:center}
.modern-form-grid,.register-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field-span-2{grid-column:1/-1}.field{display:flex;flex-direction:column;gap:7px}.field>span{font-size:10px;font-weight:850;color:var(--ink-soft)}
.field input,.field select{width:100%;height:46px;border:1px solid var(--line-strong);border-radius:13px;padding:0 13px;background:#fff;color:var(--ink);font-size:12px;transition:.15s}.field input::placeholder{color:#afb4c3}.field input:disabled{background:#f4f5f8;color:#969daf}
.form-actions{display:flex;justify-content:flex-start;margin-top:3px}.compact-button{width:auto!important;min-width:180px;padding:0 17px!important}
.security-form{display:grid;gap:12px}.full-button{width:100%;margin-top:4px}
.account-info-card{background:#1f2342;color:#fff;border-radius:20px;padding:22px}.account-info-card>span{color:#8f96b6;font-size:9px;text-transform:uppercase;letter-spacing:.1em;font-weight:850}.account-info-card strong{display:block;font-size:11px;margin-top:9px;word-break:break-word}.account-info-card p{font-size:9px;color:#9198b6;line-height:1.55;margin:14px 0 0}
.alert{display:flex;align-items:flex-start;gap:10px;border:1px solid;border-radius:14px;padding:13px 15px;margin:16px 0;font-size:11px;line-height:1.5}.alert>span{width:22px;height:22px;flex:0 0 auto;border-radius:8px;display:grid;place-items:center;font-weight:900}.alert.error{background:var(--danger-soft);border-color:#f2c5cf;color:var(--danger)}.alert.error>span{background:#f7d5dc}.alert.success{background:var(--green-soft);border-color:#bde8d9;color:#167c5d}.alert.success>span{background:#cceee2}.alert.warning{background:var(--warning-soft);border-color:#ecdca0;color:var(--warning)}.alert.warning>span{background:#f4e8bb}

/* Public authentication */
.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(480px,.92fr);background:#fff}
.auth-visual{position:relative;overflow:hidden;padding:42px 5.5vw;background:linear-gradient(140deg,#1f1d55 0%,#4f41cc 52%,#7b62f4 100%);color:#fff;display:flex;flex-direction:column;isolation:isolate}
.auth-visual:before{content:"";position:absolute;width:650px;height:650px;border-radius:50%;border:1px solid rgba(255,255,255,.09);left:-300px;bottom:-360px;box-shadow:0 0 0 90px rgba(255,255,255,.024),0 0 0 180px rgba(255,255,255,.014);z-index:-1}
.auth-visual:after{content:"";position:absolute;width:330px;height:330px;border-radius:50%;background:rgba(148,121,255,.32);filter:blur(70px);right:-100px;top:-110px;z-index:-1}
.auth-brand,.auth-mobile-brand{display:flex;align-items:center;gap:12px}.auth-brand img,.auth-mobile-brand img{width:46px;height:46px}.auth-brand span,.auth-mobile-brand span{display:flex;flex-direction:column}.auth-brand strong,.auth-mobile-brand strong{font-size:14px}.auth-brand small,.auth-mobile-brand small{font-size:9px;text-transform:uppercase;letter-spacing:.17em;margin-top:4px;color:#beb7ff;font-weight:850}
.auth-message{margin:auto 0;max-width:650px}.auth-message h1{font-size:clamp(42px,5vw,72px);line-height:1.02;letter-spacing:-.06em;margin:15px 0 22px}.auth-message p{max-width:570px;color:#dcd8ff;font-size:15px;line-height:1.7;margin:0}
.auth-trust{display:flex;gap:20px;flex-wrap:wrap;color:#c6c2e7;font-size:10px;font-weight:750}.auth-trust span{display:flex;align-items:center;gap:7px}.auth-trust i{width:7px;height:7px;border-radius:50%;background:#55e6c1}
.floating-apps{position:absolute;right:4.5vw;bottom:65px;width:275px;height:245px}.float-app{position:absolute;width:104px;height:104px;border-radius:25px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.15);backdrop-filter:blur(13px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;box-shadow:0 20px 50px rgba(25,18,83,.16)}.float-app span{font-size:29px}.float-app b{font-size:9px}.float-one{left:0;top:60px;transform:rotate(-6deg)}.float-two{right:16px;top:0;transform:rotate(7deg)}.float-three{right:0;bottom:0;transform:rotate(-3deg)}.float-four{left:35px;bottom:-14px;transform:rotate(6deg)}
.auth-panel{display:flex;align-items:center;justify-content:center;padding:45px 6vw;background:#fff}.auth-panel-scroll{align-items:flex-start;overflow:auto}.auth-panel-inner{width:min(430px,100%)}.register-inner{width:min(620px,100%);padding:15px 0 35px}
.auth-mobile-brand{display:none;margin-bottom:34px}.auth-mobile-brand strong{color:var(--ink)}.auth-mobile-brand small{color:var(--purple)}
.form-heading{margin-bottom:25px}.form-heading h2{font-size:34px;letter-spacing:-.045em;margin:7px 0 9px}.form-heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.55}
.auth-form-stack{display:grid;gap:15px}.primary-button{width:100%;height:48px;border:0;border-radius:14px;padding:0 17px;background:linear-gradient(100deg,var(--purple),#7f68f8);color:#fff;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:space-between;cursor:pointer;box-shadow:0 13px 27px rgba(91,76,240,.24);transition:.18s}.primary-button:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(91,76,240,.29)}
.secondary-button{min-height:46px;border:1px solid var(--line-strong);border-radius:14px;background:#fff;color:var(--ink-soft);font-size:11px;font-weight:850;display:flex;align-items:center;justify-content:center;transition:.18s}.secondary-button:hover{border-color:#bdb7ff;background:#f8f7ff;color:var(--purple-dark)}
.form-divider{display:flex;align-items:center;gap:12px;margin:22px 0}.form-divider:before,.form-divider:after{content:"";height:1px;background:var(--line);flex:1}.form-divider span{font-size:9px;color:#9ba1b3}
.security-note{text-align:center;color:#9299ac;font-size:9px;line-height:1.5;margin:20px 0 0}.security-note span{color:var(--green)}
.password-rule{display:flex;align-items:center;gap:8px;background:#f6f7fb;border-radius:12px;padding:11px;color:var(--muted);font-size:9px}.password-rule span{color:var(--green);font-weight:900}
.switch-link{text-align:center;font-size:10px;color:var(--muted);margin:21px 0 0}.switch-link a{color:var(--purple);font-weight:850}
.journey-list{display:grid;gap:14px;margin-bottom:auto;max-width:480px}.journey-list>div{display:flex;align-items:center;gap:14px}.journey-list>div>span{width:40px;height:40px;border-radius:13px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.12);display:grid;place-items:center;color:#d9d5ff;font-size:10px;font-weight:900}.journey-list p{display:flex;flex-direction:column;margin:0}.journey-list strong{font-size:11px}.journey-list small{font-size:9px;color:#bbb7e1;margin-top:4px}

/* Responsive */
@media(max-width:1120px){
  .floating-apps{opacity:.55;transform:scale(.8);transform-origin:right bottom}
  .medos-app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .auth-layout{grid-template-columns:minmax(0,.9fr) minmax(430px,1.1fr)}
}
@media(max-width:980px){
  :root{--sidebar:220px}
  .workspace{padding:26px 24px 70px}
  .welcome-grid,.dashboard-two-columns,.profile-grid{grid-template-columns:1fr}
  .readiness-card{min-height:245px}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .auth-layout{grid-template-columns:1fr}.auth-visual{display:none}.auth-panel{min-height:100vh;padding:38px 24px}.auth-mobile-brand{display:flex}
}
@media(max-width:760px){
  .sidebar{display:none}.app-column{margin-left:0}.topbar{height:64px;padding:0 18px}.mobile-brand{display:flex}.topbar-context,.account-copy,.logout-label{display:none}.logout-button{width:40px;padding:0;justify-content:center}.content-column{min-height:calc(100vh - 64px)}
  .workspace{padding:20px 16px 92px}.mobile-nav{position:fixed;display:flex;left:10px;right:10px;bottom:10px;min-height:66px;padding:7px 9px;background:rgba(24,26,52,.94);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.08);border-radius:21px;z-index:60;box-shadow:0 18px 45px rgba(20,22,47,.32);justify-content:space-around}.mobile-nav a{min-width:54px;min-height:50px;color:#8f96b5;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.mobile-nav a span{font-size:17px}.mobile-nav a small{font-size:8px;font-weight:800}.mobile-nav a.active{background:var(--purple);color:#fff}
  .welcome-card{min-height:315px;padding:27px}.welcome-orbit{opacity:.55;right:-20px;bottom:-35px}.welcome-content{max-width:100%}.welcome-card p{max-width:88%}
  .medos-app-grid{grid-template-columns:1fr 1fr;gap:12px}.app-card{min-height:215px;padding:16px}.app-icon{width:49px;height:49px;border-radius:15px;font-size:23px}.app-card p{font-size:10px}
  .section-header{align-items:flex-start;flex-direction:column;margin-top:28px}.count-badge{display:none}
  .admin-welcome,.system-welcome{padding:27px;min-height:230px}.admin-illustration,.system-pulse{display:none}
  .tool-grid{grid-template-columns:1fr}.system-columns{grid-template-columns:1fr}.roadmap-flow{overflow:auto;padding-bottom:5px}.roadmap-flow>i{flex:0 0 20px}
  .profile-banner{padding:25px;align-items:flex-start;flex-wrap:wrap}.profile-avatar-large{width:62px;height:62px;border-radius:20px}.profile-heading h1{font-size:24px}.profile-status{margin-left:0;width:100%;justify-content:center}
}
@media(max-width:560px){
  .workspace{padding-left:13px;padding-right:13px}.topbar{padding:0 13px}.topbar-actions{gap:7px}
  .welcome-card h1{font-size:38px}.welcome-actions{align-items:flex-start;flex-direction:column}.readiness-card{padding:21px}
  .medos-app-grid{grid-template-columns:1fr}.app-card{min-height:205px}.app-card p{max-width:85%}
  .stats-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:14px;gap:10px}.stat-icon{width:39px;height:39px}.stat-card strong{font-size:21px}.stat-card small{font-size:8px}
  .panel{padding:19px}.empty-journey{align-items:flex-start;flex-direction:column}.identity-list{grid-template-columns:1fr}
  .modern-form-grid,.register-form{grid-template-columns:1fr}.field-span-2{grid-column:auto}.register-form>div:empty{display:none}
  .auth-panel{padding:28px 19px}.form-heading h2{font-size:30px}.auth-mobile-brand{margin-bottom:27px}
  .users-panel{margin-left:-1px;margin-right:-1px}.table-title{flex-direction:column}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
