/* ============ Tokens ============ */
:root{
  --red: #c8202f;
  --red-dark: #a11824;
  --navy: #16233f;
  --navy-light: #24365e;
  --bg: #f2f3f5;
  --card: #ffffff;
  --sidebar: #d9dade;
  --line: #e2e3e7;
  --ink: #16233f;
  --muted: #6b7280;
  --muted-2: #8b8f98;
  --radius: 10px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --shadow-card: 0 1px 2px rgba(22,35,63,.06), 0 1px 0 rgba(22,35,63,.04);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{font-family: var(--font-head); margin:0;}
p{margin:0;}
button{font-family: inherit; cursor:pointer;}
a{color:inherit;}
:focus-visible{outline: 2px solid var(--navy); outline-offset: 2px;}

.w-red{color:var(--red);}
.w-navy{color:var(--navy);}

/* ============ Buttons ============ */
.btn{
  border:none;border-radius:8px;padding:12px 20px;font-weight:600;font-size:.95rem;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active{transform: scale(.98);}
.btn-block{width:100%;}
.btn-sm{padding:8px 14px; font-size:.85rem;}
.btn-navy{background:var(--navy); color:#fff;}
.btn-navy:hover{background:var(--navy-light);}
.btn-red{background:var(--red); color:#fff;}
.btn-red:hover{background:var(--red-dark);}
.btn-ghost{background:#fff; color:var(--navy); border:1px solid var(--line);}
.btn-ghost:hover{border-color: var(--navy);}
.btn-cancel{background:#7c8595; color:#fff;}
.btn-cancel:hover{background:#69707e;}

.link-inline{
  background:none;border:none;color:var(--red);font-weight:600;font-size:.88rem;padding:0;
  text-decoration:none;
}
.link-inline:hover{text-decoration:underline;}
.link-inline--sm{font-size:.78rem;color:var(--muted);}

/* ============ Auth screens ============ */
.auth-screen{
  display:none;
  min-height:100vh;
  grid-template-columns: 1.1fr 1fr;
}
.auth-screen.is-active{display:grid;}
.auth-photo{
  background:
    linear-gradient(180deg, rgba(22,35,63,.55), rgba(22,35,63,.72)),
    linear-gradient(135deg, #7b8494, #cfd2d8);
  position:relative;
}
.auth-photo::after{
  content:"";
  position:absolute; inset:0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 46px),
                     repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 2px, transparent 2px 46px);
}
.auth-side{position:relative; z-index:1; height:100%; display:flex; flex-direction:column; justify-content:center; padding:56px 56px; color:#fff; max-width:560px;}
.auth-side-kicker{font-size:.8rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; opacity:.8; margin-bottom:14px;}
.auth-side-title{font-size:2rem; line-height:1.2; margin-bottom:26px;}
.auth-side-list{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px;}
.auth-side-list li{padding-left:18px; border-left:3px solid var(--red); line-height:1.45; font-size:.98rem; opacity:.95;}
.auth-side-list strong{display:block; font-family:var(--font-head);}
.auth-card{
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  padding: 48px 40px; gap: 28px;
}
.auth-card--narrow{gap:18px;}
.auth-brand{display:flex; flex-direction:column; align-items:center; gap:10px;}
.auth-brand--compact{gap:6px; margin-bottom:4px;}
.auth-logo{width:76px; height:76px;}
.auth-logo--sm{width:52px; height:52px;}
.auth-wordmark{font-family:var(--font-head); font-size:1.7rem; font-weight:700; letter-spacing:.02em;}
.auth-title{font-size:1.6rem; text-align:center;}
.auth-sub{color:var(--muted); text-align:center; max-width:340px; font-size:.92rem; line-height:1.5;}
.lock-icon svg{width:64px; height:64px;}

.auth-form{width:100%; max-width:340px; display:flex; flex-direction:column; gap:16px;}
.field{display:flex; flex-direction:column; gap:6px; font-size:.85rem; font-weight:600; color:var(--ink);}
.field--spaced{margin-top:6px;}
.field input, .field select, .select-field select{
  font-family: inherit; font-size:.95rem; font-weight:400;
  padding:12px 14px; border-radius:8px; border:1px solid var(--line); background:#f7f7f8;
}
.field input:focus, .field select:focus, .select-field select:focus{background:#fff; border-color:var(--navy);}
.auth-foot{text-align:center; font-size:.88rem; color:var(--muted); margin-top:4px;}
.auth-demo{text-align:center; font-size:.76rem; color:var(--muted-2); margin-top:2px;}

.form-msg{font-size:.84rem; font-weight:600; min-height:0; margin:0;}
.form-msg:empty{display:none;}
.form-msg.is-error{color:var(--red);}
.form-msg.is-success{color:#1c7d4d;}

/* ---- Toast ---- */
.toast{
  position:fixed; left:50%; bottom:28px; transform:translate(-50%, 20px);
  background:var(--navy); color:#fff; padding:13px 22px; border-radius:8px; font-size:.9rem; font-weight:600;
  box-shadow:0 12px 30px rgba(0,0,0,.25); opacity:0; pointer-events:none; transition: all .25s ease; z-index:60;
  max-width:90vw; text-align:center;
}
.toast.is-active{opacity:1; transform:translate(-50%, 0);}

/* ============ App shell ============ */
#app{display:none;}
#app.is-active{display:block;}
.app-shell{display:flex; min-height:100vh;}

/* ---- Sidebar ---- */
.sidebar{
  width:236px; flex-shrink:0; background:var(--sidebar); display:flex; flex-direction:column;
  padding: 22px 14px; transition: width .2s ease;
  /* stays in view on long pages so Log out and the nav never scroll away */
  position:sticky; top:0; height:100vh; overflow-y:auto;
}
.mobile-bar{display:none;}
.sidebar-backdrop{display:none;}
.sidebar.is-collapsed{width:76px;}
.sidebar-top{display:flex; align-items:center; justify-content:center; gap:10px; padding: 0 6px 22px;}
.sidebar-logo{width:30px; height:30px; flex-shrink:0;}
.sidebar-wordmark{font-family:var(--font-head); font-weight:700; font-size:1.05rem; white-space:nowrap; flex:1;}
.sidebar.is-collapsed .sidebar-wordmark,
.sidebar.is-collapsed .profile-text,
.sidebar.is-collapsed .nav-item span:not(.nav-icon){display:none;}
.sidebar.is-collapsed .sidebar-top{flex-direction:column; gap:12px;}

.profile{
  display:flex; align-items:center; gap:10px; background:none; border:none; text-align:left;
  padding:10px 8px; border-radius:8px; margin-bottom:16px; text-decoration:none; color:inherit;
}
.profile:hover{background:rgba(22,35,63,.06);}
.avatar{
  width:38px; height:38px; border-radius:50%; background:#fff; border:1px solid rgba(22,35,63,.15);
  display:flex; align-items:center; justify-content:center; color:var(--navy); flex-shrink:0;
}
.avatar svg{width:20px; height:20px;}
.profile-text{display:flex; flex-direction:column; line-height:1.25;}
.profile-name{font-weight:700; font-size:.92rem;}
.profile-role{font-size:.76rem; color:var(--muted);}

.nav{display:flex; flex-direction:column; gap:4px; flex:1;}
.nav-item{
  display:flex; align-items:center; gap:12px; background:none; border:none; text-align:left;
  padding:11px 12px; border-radius:8px; font-weight:600; font-size:.92rem; color:var(--ink);
  text-decoration:none;
}
.nav-item:hover{background:rgba(22,35,63,.08);}
.nav-item.is-active{background:var(--red); color:#fff;}
.nav-icon{width:20px; height:20px; flex-shrink:0; display:flex; align-items:center; justify-content:center;}
.nav-icon svg{width:19px; height:19px;}
.nav-item--collapse{margin-top:auto; color:var(--muted);}
.nav-item--collapse:hover{color:var(--ink);}

/* ---- Content ---- */
.content{flex:1; min-width:0; display:flex; flex-direction:column;}
.page{display:none;}
.page.is-active{display:block;}
.page-header{
  background:var(--red); color:#fff; padding:22px 34px;
}
.page-header h1{font-size:1.3rem; letter-spacing:.02em;}
.page-body{padding:28px 34px 60px;}
.page-body--photo{
  background:
    linear-gradient(180deg, rgba(242,243,245,.94), rgba(242,243,245,.985)),
    linear-gradient(135deg, #7b8494, #cfd2d8);
  min-height: calc(100vh - 68px);
}

.muted{color:var(--muted); font-size:.88rem;}
.section-title{font-size:1.05rem; margin-bottom:18px;}

/* ---- Dashboard ---- */
.dash-toolbar{display:flex; align-items:center; justify-content:space-between; margin-bottom:20px;}
.stat-grid{
  display:grid; grid-template-columns: repeat(5, 1fr); gap:16px; margin-bottom:22px;
}
.stat-card{
  background:var(--navy); color:#fff; border-radius:var(--radius); padding:18px; min-height:110px;
  display:flex; flex-direction:column; justify-content:space-between; box-shadow: var(--shadow-card);
}
.stat-label{font-size:.78rem; color:#c7cde0; font-weight:600;}
.stat-value{font-family:var(--font-head); font-size:1.8rem; font-weight:700; margin:6px 0;}
.stat-note{font-size:.72rem; color:#9aa4c2;}

.panel{background:var(--card); border-radius:var(--radius); padding:22px 24px 26px; box-shadow: var(--shadow-card);}
.tabs{display:flex; gap:26px; border-bottom:1px solid var(--line); margin-bottom:22px;}
.tab{
  background:none; border:none; padding:0 0 12px; font-weight:600; font-size:.92rem; color:var(--muted);
  border-bottom:2px solid transparent; margin-bottom:-1px;
}
.tab.is-active{color:var(--red); border-bottom-color:var(--red);}
.tab-panel{display:none;}
.tab-panel.is-active{display:block;}
.chart-legend{font-size:.85rem; font-weight:600; display:flex; align-items:center; gap:6px; margin-bottom:18px;}
.dot{width:10px; height:10px; border-radius:50%; background:var(--red); display:inline-block; margin-right:4px;}
.dot--navy{background:var(--navy);}
.dot--muted{background:#a7abb8;}

.bars{display:flex; flex-direction:column; gap:14px;}
.bar-row{display:grid; grid-template-columns: 74px 1fr 50px; align-items:center; gap:10px; font-size:.86rem;}
.bar-label{font-weight:600;}
.bar-track{background:#f0f0ef; border-radius:5px; height:20px; overflow:hidden;}
.bar-fill{background:var(--red); height:100%; border-radius:5px 0 0 5px;}
.bar-value{text-align:right; color:var(--muted);}

.line-chart{width:100%; height:220px;}
.line-labels{display:flex; justify-content:space-between; font-size:.72rem; color:var(--muted); margin-top:6px;}

/* ---- Data page ---- */
.data-toolbar{display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:8px; gap:12px; flex-wrap:wrap;}
.select-field{display:flex; flex-direction:column; gap:6px; font-size:.78rem; font-weight:600; color:var(--muted);}
.select-field select{min-width:220px;}
.select-field--grow{flex:1; min-width:200px;}
.select-field--grow input{width:100%;}
.table-count{margin-bottom:14px;}
.table-wrap{background:var(--card); border-radius:var(--radius); box-shadow: var(--shadow-card); overflow:auto;}
table{width:100%; border-collapse:collapse; font-size:.86rem;}
thead th{
  background:#f0c8cd; color:#5a1017; text-align:left; padding:12px 16px; font-weight:700;
  border-bottom:1px solid var(--line); white-space:nowrap;
}
tbody td{padding:11px 16px; border-bottom:1px solid var(--line); white-space:nowrap; color:var(--ink);}
tbody tr:last-child td{border-bottom:none;}
tbody tr:hover{background:#fafafa;}

/* ---- Feedback ---- */
.feedback-intro{max-width:640px; font-size:1.02rem; line-height:1.6; margin-bottom:26px;}
.feedback-list{display:flex; flex-direction:column; gap:14px; max-width:640px;}
.feedback-item{
  background:var(--navy); color:#fff; border-radius:8px; padding:18px 20px; text-decoration:none;
  display:flex; align-items:center; justify-content:space-between; font-weight:600; font-size:.98rem;
}
.feedback-item:hover{background:var(--navy-light);}

/* ---- About ---- */
.about-card{
  background:rgba(255,255,255,.94); border-radius:14px; padding:40px 46px; max-width:760px; margin:20px auto 0;
  text-align:center;
}
.about-brand{display:flex; flex-direction:column; align-items:center; gap:8px; margin-bottom:26px;}
.about-logo{width:64px; height:64px;}
.about-wordmark{font-family:var(--font-head); font-weight:700; font-size:1.4rem;}
.about-card h2{color:var(--red); font-size:1.15rem; margin-bottom:12px; margin-top:24px;}
.about-card h2:first-of-type{margin-top:0;}
.about-card p{color:var(--navy); line-height:1.7; font-size:.95rem;}

/* ---- Settings ---- */
.settings-list{max-width:640px; background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow-card); padding:6px 24px;}
.settings-row{display:flex; justify-content:space-between; padding:16px 0; border-bottom:1px solid var(--line); font-size:.92rem;}
.settings-row:last-child{border-bottom:none;}
.settings-row dt{font-weight:700;}
.settings-row dd{margin:0; color:var(--ink);}
.settings-row dd[data-editable].is-editing{flex:1; max-width:280px;}
.settings-row dd[data-editable].is-editing input{
  width:100%; font-family:inherit; font-size:.92rem; padding:8px 10px; border-radius:6px;
  border:1px solid var(--navy); background:#f7f7f8;
}
.settings-actions{max-width:640px; display:flex; justify-content:space-between; align-items:center; margin-top:22px;}
.settings-actions-right{display:flex; gap:10px;}

/* ============ Drawer (filters) ============ */
.drawer-backdrop{
  position:fixed; inset:0; background:rgba(22,35,63,.35); opacity:0; pointer-events:none; transition:opacity .2s ease;
  z-index:40;
}
.drawer-backdrop.is-active{opacity:1; pointer-events:auto;}
.drawer{
  position:fixed; top:0; right:0; height:100vh; width:340px; max-width:88vw; background:#fff;
  box-shadow: -4px 0 24px rgba(22,35,63,.18); transform:translateX(100%); transition: transform .25s ease;
  z-index:41; display:flex; flex-direction:column;
}
.drawer.is-active{transform:translateX(0);}
.drawer-head{display:flex; align-items:center; gap:12px; padding:20px 22px; border-bottom:1px solid var(--line);}
.drawer-head h3{flex:1; font-size:1.05rem;}
.drawer-close{background:none; border:none; color:var(--muted); padding:4px;}
.drawer-close:hover{color:var(--ink);}
.drawer-section{padding:18px 22px; border-bottom:1px solid var(--line); overflow:auto;}
.drawer-section-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:10px;}
.drawer-section h4{font-size:.82rem; text-transform:none; color:var(--ink); margin-bottom:10px;}
.checkbox{display:flex; align-items:center; gap:9px; font-size:.88rem; padding:5px 0; cursor:pointer;}
.chip-grid{display:grid; grid-template-columns:1fr 1fr; gap:2px 12px; max-height:260px; overflow:auto;}
.drawer-foot{padding:18px 22px; margin-top:auto;}

/* ============ Modal (delete) ============ */
.modal-backdrop{
  position:fixed; inset:0; background:rgba(22,35,63,.45); display:none; align-items:center; justify-content:center;
  z-index:50; padding:20px;
}
.modal-backdrop.is-active{display:flex;}
.modal{
  background:#fff; border-radius:14px; padding:36px 32px; max-width:420px; text-align:center;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.modal p{font-weight:700; font-size:1.05rem; line-height:1.5; margin-bottom:26px;}
.modal-actions{display:flex; gap:14px; justify-content:center;}
.modal-actions .btn{min-width:110px;}

/* ============ Responsive ============ */
@media (max-width: 980px){
  .stat-grid{grid-template-columns: repeat(2, 1fr);}
  .auth-screen{grid-template-columns: 1fr;}
  .auth-photo{display:none;}
}
@media (max-width: 720px){
  .sidebar{
    position:fixed; left:0; top:0; z-index:40; height:100vh; width:264px;
    transform:translateX(-100%); transition:transform .22s ease; box-shadow:none;
  }
  .sidebar.is-open{transform:none; box-shadow:0 10px 40px rgba(22,35,63,.35);}
  /* the desktop "collapsed" state doesn't apply to the phone menu */
  .sidebar.is-collapsed{width:264px;}
  .sidebar.is-collapsed .profile-text, .sidebar.is-collapsed .nav-item span:not(.nav-icon){display:inline;}
  .sidebar.is-collapsed .profile-text{display:flex;}
  .sidebar.is-collapsed img.sidebar-logo--full{display:block;}
  .sidebar.is-collapsed img.sidebar-logo--mark{display:none;}
  .sidebar-backdrop:not([hidden]){display:block; position:fixed; inset:0; z-index:35; background:rgba(22,35,63,.45);}
  .mobile-bar{
    display:flex; align-items:center; gap:12px; position:sticky; top:0; z-index:25;
    background:#fff; border-bottom:1px solid var(--line); padding:8px 14px;
  }
  .mobile-menu-btn{
    width:44px; height:44px; border-radius:8px; border:1px solid var(--line); background:#fff; color:var(--navy);
    display:inline-flex; align-items:center; justify-content:center;
  }
  .mobile-menu-btn svg{width:22px; height:22px;}
  .mobile-bar .mobile-bar-logo img.sidebar-logo{width:92px; height:auto; display:block;}
  .page-header{padding:16px 20px;}
  .app-shell{padding-left:0;}
  .stat-grid{grid-template-columns:1fr 1fr; gap:10px;}
  .stat-grid > :last-child:nth-child(odd){grid-column:1 / -1;}
  .stat-card{padding:14px;}
  .stat-value{font-size:1.4rem; overflow-wrap:anywhere;}
  .page-body{padding:20px;}
  .chip-grid{grid-template-columns:1fr;}
}

/* UEnvision additions — loaded AFTER styles.css (see base.html).
   1) PNG logo sizing   2) Feedback surveys.   Safe to merge into styles.css later. */

/* ---------- 1. Logo (PNG replaces the old 64x64 SVG + text wordmark) ---------- */
img.auth-logo, img.about-logo, img.sidebar-logo { display: block; height: auto; }
img.auth-logo   { width: 200px; max-width: 70%; margin: 0 auto; }
img.auth-logo--sm { width: 140px; }
img.about-logo  { width: 180px; max-width: 60%; margin: 0 auto; }
img.sidebar-logo--full { width: 132px; max-width: 100%; }
img.sidebar-logo--mark { display: none; width: 34px; }
/* Collapsed sidebar: swap to the mark-only image. Adjust the selector to your collapse class. */
.sidebar.is-collapsed img.sidebar-logo--full, .sidebar.collapsed img.sidebar-logo--full,
.app-shell.is-collapsed img.sidebar-logo--full, .app-shell.collapsed img.sidebar-logo--full { display: none; }
.sidebar.is-collapsed img.sidebar-logo--mark, .sidebar.collapsed img.sidebar-logo--mark,
.app-shell.is-collapsed img.sidebar-logo--mark, .app-shell.collapsed img.sidebar-logo--mark { display: block; margin: 0 auto; }

/* ---------- 2. Feedback surveys ---------- */
.survey-wrap[hidden], #feedback-home[hidden] { display: none; }
.survey-wrap { max-width: 780px; }
.survey-back { margin-bottom: 12px; }
.survey-panel { padding: 24px; }
.survey-panel--wide { max-width: 100%; }
.survey-wrap:has(.survey-panel--wide) { max-width: 100%; }
.survey-desc { margin: 4px 0 18px; }
.survey-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.survey-panel form > .field, .survey-panel form > .survey-row-2 { margin-bottom: 14px; }
.survey-panel .field textarea, .survey-panel .field select {
  width: 100%; font: inherit; font-size: .95rem; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #f7f7f8; color: inherit;
}
.survey-panel .field textarea:focus, .survey-panel .field select:focus { background: #fff; border-color: var(--navy); outline: none;
}
.survey-panel .field textarea { resize: vertical; }
.survey-panel .btn[type=submit] { margin-top: 6px; }
.form-msg--error { color: var(--red, #c8202f); margin: 8px 0; }
.form-msg--error[hidden] { display: none; }

/* SUS (class names match the original script.js) */
.likert-list { display: grid; gap: 10px; margin: 6px 0 18px; }
.likert-group { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.likert-question { margin: 0 0 8px; font-weight: 500; }
.likert-scale { display: flex; align-items: center; gap: 8px; }
.likert-end { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.likert-option { flex: 1; text-align: center; cursor: pointer; }
.likert-option input { position: absolute; opacity: 0; pointer-events: none; }
.likert-option span { display: block; padding: 8px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: background .12s, color .12s, border-color .12s; }
.likert-option:hover span { border-color: var(--navy, #1b2a4a); }
.likert-option input:checked + span { background: var(--navy, #1b2a4a); border-color: var(--navy, #1b2a4a); color: #fff; }
.likert-option input:focus-visible + span { outline: 2px solid var(--red, #c8202f); outline-offset: 2px; }

/* UAT */
.uat-checks { margin: 10px 0 18px; border-top: 1px solid var(--line); }
.uat-check-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.uat-check-label { margin: 0; }
.uat-check-options { display: flex; gap: 6px; flex-shrink: 0; }
.uat-radio { cursor: pointer; }
.uat-radio input { position: absolute; opacity: 0; pointer-events: none; }
.uat-radio span { display: block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; }
.uat-radio input:checked + span { background: var(--navy, #1b2a4a); border-color: var(--navy, #1b2a4a); color: #fff; }
.uat-radio input:focus-visible + span { outline: 2px solid var(--red, #c8202f); outline-offset: 2px; }

/* Functional test sheet */
.functional-table-wrap { overflow-x: auto; margin: 6px 0 12px; }
#functional-table { min-width: 900px; }
#functional-table td { vertical-align: top; padding: 6px; }
#functional-table td input, #functional-table td textarea, #functional-table td select {
  width: 100%; font: inherit; font-size: .88rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
#functional-table td input[type=text] { min-width: 105px; }
#functional-table td .ft-status { min-width: 92px; }
#functional-table td .ft-remove { width: auto; min-width: 0; white-space: nowrap; }
#functional-table td:first-child { white-space: nowrap; font-weight: 600; padding-top: 12px; }
#functional-add-row { margin: 0 10px 16px 0; }

@media (max-width: 640px) {
  .survey-row-2 { grid-template-columns: 1fr; }
  .uat-check-row { flex-direction: column; align-items: flex-start; }
  .likert-end { display: none; }
}
@media (prefers-reduced-motion: reduce) { .likert-option span { transition: none; } }

.toast.is-error { background: var(--red, #c8202f); }

/* ---------- Sidebar: the logo is the collapse/expand button, centered ---------- */
.logo-toggle { display: flex; align-items: center; justify-content: center; width: 100%; padding: 6px 0; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.logo-toggle:hover { background: rgba(22,35,63,.06); }
img.sidebar-logo--full, img.sidebar-logo--mark { margin: 0 auto; }

/* ============ Accounts page + password change + flash messages ============ */
.flash-list{display:flex; flex-direction:column; gap:8px; margin-bottom:18px; max-width:760px;}
.flash{margin:0; padding:11px 14px; border-radius:8px; font-size:.88rem; font-weight:600;}
.flash--success{background:#e5f4ec; color:#1c7d4d;}
.flash--error{background:#fbe6e8; color:var(--red-dark);}

.settings-section-gap{margin-top:36px;}
.settings-card{max-width:640px; background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow-card); padding:22px 24px; display:flex; flex-direction:column; gap:16px;}
.settings-card .btn{align-self:flex-start;}
.field-hint{font-weight:400; font-size:.76rem; color:var(--muted);}

.row-actions{display:flex; gap:8px;}
.pill{display:inline-block; padding:3px 10px; border-radius:999px; font-size:.75rem; font-weight:700; background:#eceef2; color:var(--navy);}
.pill--administrator{background:#f0c8cd; color:#5a1017;}
.pill--faculty{background:#e1e7f4; color:var(--navy);}
.pill--you{background:var(--navy); color:#fff; margin-left:4px;}

.modal--form{text-align:left; width:100%; max-width:440px; max-height:90vh; overflow:auto; padding:28px;}
.modal--form h3{margin-bottom:18px; font-size:1.2rem;}
.modal--form form{display:flex; flex-direction:column; gap:14px;}
.modal--form .modal-actions{margin-top:6px;}
.modal--form .field select{font-family:inherit; font-size:.95rem; padding:12px 14px; border-radius:8px; border:1px solid var(--line); background:#f7f7f8;}
.modal-backdrop--top{z-index:60;}

/* ============ Email confirmation pages ============ */
.verify-title{font-size:1.3rem; margin:0 0 4px;}
.verify-note{font-size:.85rem;}
.verify-resend{display:flex; flex-direction:column; gap:12px; margin-top:8px;}
.auth-form a.btn{text-decoration:none;}
