.iu-account-page,.iu-account-page * { box-sizing:border-box; }
.iu-account-page { background:#f4f7fb; padding:56px 0 64px; min-height:65vh; color:#233650; font-family:var(--iu-it-font-sans); }
.iu-account-page a { color:#175caa; }
.iu-account-page :focus-visible,.iu-account-menu :focus-visible { outline:3px solid #13a9d6; outline-offset:3px; }
.iu-upload-label:has(+ #iu-portrait:focus-visible) { outline:3px solid #13a9d6; outline-offset:3px; }
.iu-account-eyebrow { color:#217298; font-size:11px; letter-spacing:.13em; font-weight:800; }
.iu-login-layout { display:grid; grid-template-columns:1.05fr 1fr; max-width:1030px; margin:12px auto; background:white; border-radius:22px; overflow:hidden; border:1px solid #e1e9f2; box-shadow:0 22px 60px #1739620c; }
.iu-login-intro { position:relative; padding:64px 44px; color:white; background:linear-gradient(145deg,#103b70,#0b2653); display:flex; flex-direction:column; justify-content:center; }
.iu-login-intro .iu-account-eyebrow { color:#73d9ee; }
.iu-login-intro h1 { font-size:clamp(30px,3vw,41px); letter-spacing:-.035em; line-height:1.23; margin:22px 0; white-space:pre-line; }
.iu-login-intro p { color:#d6e6f6; font-size:16px; line-height:1.8; max-width:350px; margin:0; }
.iu-login-note { border-top:1px solid #ffffff29; padding-top:20px; margin-top:48px; font-size:13px; line-height:1.7; color:#b8cfe4; }
.iu-login-card { padding:48px 44px; }
.iu-login-card h2 { font-size:30px; margin:12px 0; color:#123b6b; }
.iu-login-card > p { color:#697a8e; font-size:14px; line-height:1.7; margin-bottom:28px; }
.iu-account-page label { display:block; font-size:13px; font-weight:650; margin:18px 0 8px; }
.iu-account-page input[type=text],.iu-account-page input[type=password],.iu-account-page select { width:100%; max-width:100%; min-height:48px; border:1px solid #d7e1ec; border-radius:9px; padding:11px 13px; background:#fff; font:inherit; }
.iu-login-options { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0 26px; font-size:12px; }
.iu-login-options label { display:flex; align-items:center; gap:6px; margin:0; font-size:12px; font-weight:400; }
.iu-login-options a { text-decoration:none; }
.iu-account-primary,.iu-account-secondary { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:44px; padding:12px 20px; border:1px solid transparent; border-radius:9px; font:600 13px/1.4 var(--iu-it-font-sans); text-decoration:none; cursor:pointer; }
.iu-account-primary { background:#123f77; color:#fff!important; }
.iu-account-primary:hover { background:#0a2d5a; }
.iu-account-secondary { background:#fff; border-color:#cbd9e8; color:#244e7c; }
.iu-account-primary:disabled,.iu-account-secondary:disabled { opacity:.5; cursor:wait; }
.iu-login-card .iu-account-primary { width:100%; }
.iu-account-alert { color:#943232!important; background:#fff1f1; border:1px solid #efcece; padding:12px; border-radius:8px; }
.iu-account-message { max-width:680px; background:white; border:1px solid #e0e7f0; border-radius:18px; padding:36px; margin:20px auto; line-height:1.8; }
.iu-account-message h1 { font-size:30px; color:#123b6b; }
.iu-account-message .iu-account-primary { margin-top:18px; }
.iu-editor-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:0 0 28px; }
.iu-editor-heading a { font-size:13px; text-decoration:none; }
.iu-editor-heading h1 { font-size:clamp(26px,3vw,34px); color:#123b6b; margin:16px 0 8px; letter-spacing:-.025em; }
.iu-editor-heading p { margin:0; font-size:15px; color:#687c93; }
.iu-account-badge { background:#e4f4fa; color:#216784; padding:9px 14px; border-radius:999px; font-size:12px; white-space:nowrap; }
.iu-editor-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; align-items:start; }
.iu-account-card { background:#fff; border:1px solid #dfe7f0; border-radius:15px; padding:24px; }
.iu-editor-sidebar { display:grid; grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr); gap:24px; }
.iu-editor-sidebar > .iu-account-card:first-child { display:grid; grid-template-columns:100px minmax(0,1fr); gap:10px 24px; align-items:center; }
.iu-editor-sidebar > .iu-account-card:first-child > .iu-account-eyebrow { grid-column:1 / -1; }
.iu-editor-sidebar .iu-editor-portrait { grid-column:1; grid-row:2 / 4; }
.iu-editor-sidebar .iu-upload-label,.iu-editor-sidebar .iu-account-help { grid-column:2; }
.iu-editor-sidebar .iu-account-help { margin:0; }
#iu-crop-controls { grid-column:1 / -1; }
.iu-editor-portrait { width:100px; height:100px; margin:8px 0; background:#eff4f9; border-radius:50%; overflow:hidden; }
.iu-editor-portrait img,.iu-editor-portrait canvas { display:block; width:100%; height:100%; object-fit:cover; }
.iu-account-page [hidden] { display:none!important; }
.iu-account-page .iu-upload-label { display:flex; width:100%; margin:0!important; }
#iu-portrait { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.iu-upload-label:has(+ input:focus-visible) { outline:3px solid #13a9d6; outline-offset:3px; }
.iu-account-help { color:#6a7b8c; text-align:center; font-size:11px; margin:12px 0 0; line-height:1.7; }
#iu-crop-controls label { font-size:12px; margin:14px 0 4px; }
#iu-crop-controls input { width:100%; accent-color:#14528e; }
.iu-account-text-button { color:#1c5a95; padding:8px 0; border:0; background:none; font:600 12px/1.6 var(--iu-it-font-sans); text-decoration:none; cursor:pointer; }
.iu-editor-guidance h2 { font-size:14px; color:#244d79; margin:0 0 12px; }
.iu-editor-guidance p { font-size:12px; color:#6a7b90; line-height:1.8; margin:10px 0 0; }
.iu-editor-main { min-width:0; }
.iu-editor-content { padding:0; overflow:clip; }
.iu-editor-content-top { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:24px; }
.iu-editor-content-top h2 { font-size:17px; margin:9px 0 0; color:#203e61; line-height:1.5; }
.iu-editor-languages { display:flex; gap:4px; background:#f0f4f9; padding:4px; border-radius:8px; font-size:11px; white-space:nowrap; }
.iu-editor-languages a,.iu-editor-languages span { display:block; padding:7px 9px; border-radius:6px; text-decoration:none; }
.iu-editor-languages [aria-current] { background:#fff; color:#174a80; box-shadow:0 1px 5px #102c5710; }
.iu-editor-languages span { color:#8490a0; cursor:not-allowed; }
.iu-editor-toolbar { display:flex; flex-wrap:wrap; gap:5px; padding:10px 20px; background:#f8fafc; border-block:1px solid #e4eaf1; position:sticky; top:var(--iu-editor-toolbar-top,90px); z-index:3; }
.iu-editor-toolbar button { min-width:34px; min-height:34px; border:1px solid transparent; border-radius:5px; background:transparent; font:600 12px var(--iu-it-font-sans); color:#385674; cursor:pointer; padding:5px 9px; }
.iu-editor-toolbar button:hover { background:#e6eff8; }
.iu-editor-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(32px,4.5vw,64px); padding:28px; align-items:start; }
.iu-editor-column { min-width:0; }
.iu-editor-column-label { display:block; width:fit-content; margin:0 0 22px; padding:6px 11px; border-radius:6px; background:#edf4fb; color:#486789; font-size:11px; font-weight:650; }
.iu-editor-surface { min-height:420px; padding:0; outline-offset:7px!important; font-size:clamp(1rem,1.08vw,1.1rem); line-height:1.82; overflow-wrap:anywhere; }
.iu-editor-surface:focus { outline:2px solid #b5d8f1; border-radius:2px; }
.iu-editor-surface h2 { font-size:clamp(1.45rem,1.8vw,1.85rem); color:#102f62; margin:36px 0 20px; line-height:1.3; font-weight:800; letter-spacing:-.02em; }
.iu-editor-surface h2:first-child { margin-top:0; }
.iu-editor-surface h3 { margin:24px 0 14px; font-size:1.125rem; line-height:1.4; }
.iu-editor-surface p { margin:0 0 18px; }
.iu-editor-surface ul,.iu-editor-surface ol { padding-left:1.45em; margin:0 0 24px; }
.iu-editor-surface li { padding-left:.35em; margin-bottom:13px; }
.iu-editor-surface li:last-child,.iu-editor-surface li > p:last-child { margin-bottom:0; }
.iu-editor-surface li > ul,.iu-editor-surface li > ol { margin:12px 0 0; }
.iu-editor-surface img { max-width:100%; height:auto; }
.iu-editor-surface table { width:100%; border-collapse:collapse; }
.iu-editor-surface td,.iu-editor-surface th { border:1px solid #dce5ee; padding:7px; }
.iu-editor-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 0; position:sticky; bottom:0; background:#f4f7fbf5; z-index:4; }
.iu-editor-actions > p { margin:0; color:#718197; font-size:12px; line-height:1.6; }
.iu-editor-actions > div { display:flex; align-items:center; gap:14px; flex-shrink:0; }
.iu-editor-history { margin-top:8px; font-size:12px; }
.iu-editor-history summary { cursor:pointer; font-weight:650; }
.iu-editor-history ul { list-style:none; padding:0; margin:14px 0 0; }
.iu-editor-history li { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 0; border-top:1px solid #e5ebf2; }
.iu-profile-dialog { width:min(1600px,96vw); max-height:90vh; padding:24px; border:1px solid #dae3ef; border-radius:16px; color:#234364; }
.iu-profile-dialog::backdrop { background:#071a35a6; }
.iu-preview-heading { display:flex; align-items:center; justify-content:space-between; }
.iu-preview-heading h2 { font-size:20px; margin:0 0 16px; }
.iu-preview-heading button { border:0; background:#edf3f8; font-size:24px; width:36px; height:36px; border-radius:50%; cursor:pointer; }
.iu-profile-dialog iframe { display:block; width:100%; height:55vh; border:1px solid #e0e6ef; border-radius:8px; }
#iu-preview-portrait { width:100px; height:100px; object-fit:cover; border-radius:50%; margin:12px auto; }
#iu-profile-restore { margin-top:18px; }
.iu-profile-edit-control { padding-top:28px; margin-top:28px; border-top:1px solid #dfe7f0; text-align:right; }
a.topbar-login { text-decoration:none; color:#174774!important; }
@media(max-width:640px) {
  body:has(.iu-faculty-profile) .header-inner { gap:12px; }
  body:has(.iu-faculty-profile) .site-brand { flex:1 1 auto; min-width:0; width:auto; max-width:220px; }
  body:has(.iu-faculty-profile) .header-actions { flex-shrink:0; }
}
.iu-account-menu { position:relative; font-size:12px; }
.iu-account-menu summary { display:flex; align-items:center; gap:9px; cursor:pointer; border-radius:20px; background:white; color:#174774; padding:7px 13px; max-width:170px; overflow-wrap:anywhere; }
.iu-account-menu summary::marker { content:''; }
.iu-account-menu > div { position:absolute; top:calc(100% + 8px); right:0; min-width:205px; padding:7px; background:white; border:1px solid #d8e3f0; border-radius:9px; box-shadow:0 12px 30px #0e2c5720; z-index:100; }
.iu-account-menu a { display:block; padding:10px; color:#234f7a!important; text-decoration:none; }
.iu-account-menu a:hover { background:#edf4fb; }
@media(max-width:960px) { .iu-editor-columns { grid-template-columns:minmax(0,1fr); gap:32px; } }
@media(max-width:950px) { .iu-editor-layout { gap:18px; } .iu-editor-content-top { flex-direction:column; align-items:start; } .iu-editor-actions { flex-wrap:wrap; } .iu-login-intro,.iu-login-card { padding:36px 28px; } }
@media(max-width:640px) {
  .iu-account-page { padding:28px 0 36px; }
  .iu-login-layout,.iu-editor-layout { grid-template-columns:minmax(0,1fr); }
  .iu-login-intro { padding:30px 26px; }
  .iu-login-intro h1 { font-size:28px; margin:14px 0; }
  .iu-login-note { margin-top:20px; padding-top:14px; }
  .iu-login-card { padding:30px 24px; }
  .iu-editor-heading { align-items:start; }
  .iu-account-badge,.iu-editor-guidance { display:none; }
  .iu-editor-sidebar { grid-template-columns:minmax(0,1fr); }
  .iu-editor-sidebar > .iu-account-card:first-child { grid-template-columns:80px minmax(0,1fr); gap:12px 18px; padding:20px; }
  .iu-editor-sidebar .iu-editor-portrait { width:80px; height:80px; margin:4px 0; }
  .iu-editor-content-top { padding:20px; }
  .iu-editor-columns { padding:20px; }
  .iu-editor-column .iu-editor-surface { padding:0; font-size:16px; min-height:240px; }
  .iu-editor-actions > div { width:100%; gap:8px; justify-content:space-between; }
  .iu-editor-actions .iu-account-primary,.iu-editor-actions .iu-account-secondary { padding:10px 13px; font-size:12px; }
  .iu-editor-history li { flex-wrap:wrap; }
  .iu-profile-dialog { padding:16px; }
  body:has(.iu-account-page) .header-inner { gap:12px; }
  body:has(.iu-account-page) .site-brand { flex:1 1 auto; min-width:0; width:auto; max-width:220px; }
  body:has(.iu-account-page) .header-actions { flex-shrink:0; }
  .iu-account-menu > div { right:auto; left:0; }
}
