/* ============================================================
   OPA CONNECT — UI Components
   ============================================================ */

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}
.card-flush { padding: 0; }
.card-title {
  font-size: 14px; font-weight: 600; color: var(--navy);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── Stats Grid ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 12px; margin-bottom: 20px;
}
.stat-card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 18px 16px;
  text-align: center; box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-fast), transform var(--dur-fast);
  cursor: default;
}
.stat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.stat-card .stat-value { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-card .stat-label { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .stat-icon  { font-size: 22px; margin-bottom: 8px; }

/* ── Toolbar / Filter Bar ────────────────────────────────── */
.toolbar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.toolbar-spacer { flex: 1; }

/* ── Input / Select / Textarea ───────────────────────────── */
input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  appearance: auto;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}
input[type="search"] { min-width: 200px; }
textarea { resize: vertical; min-height: 80px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); cursor: pointer;
  font-size: 13px; font-weight: 500;
  transition: all var(--dur-fast) var(--ease);
  background: var(--surface); color: var(--text);
  white-space: nowrap; user-select: none;
}
.btn:hover         { background: var(--surface-alt); }
.btn:active        { transform: scale(0.97); }
.btn:disabled      { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-sm            { padding: 5px 11px; font-size: 12px; }
.btn-lg            { padding: 10px 22px; font-size: 14px; }
.btn-primary       { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-success       { background: var(--success-bg); color: var(--success-text); border-color: var(--success-border); }
.btn-success:hover { background: #d0edda; }
.btn-danger        { background: var(--danger-bg);  color: var(--danger-text);  border-color: var(--danger-border); }
.btn-danger:hover  { background: #f9d0cc; }
.btn-warning       { background: var(--warning-bg); color: var(--warning-text); border-color: #ffe082; }
.btn-ghost         { background: transparent; border-color: transparent; }
.btn-ghost:hover   { background: var(--surface-alt); }
.btn-icon          { padding: 7px; width: 34px; height: 34px; justify-content: center; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600; line-height: 1.6;
}
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-info    { background: var(--info-bg);    color: var(--info-text); }
.badge-neutral { background: var(--surface-alt); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-muted); padding: 10px 14px;
  border-bottom: 2px solid var(--border);
  background: var(--surface-alt);
  white-space: nowrap;
}
tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafbfc; }
tbody tr.clickable { cursor: pointer; }

/* ── Form Layout ─────────────────────────────────────────── */
.form-section { margin-bottom: 22px; }
.form-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.form-section-title::before { content: ''; display: inline-block; width: 3px; height: 14px; background: var(--accent); border-radius: 2px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; }
.form-group.required label::after { content: ' *'; color: var(--danger-text); }
.form-group.col-span-2 { grid-column: span 2; }
.form-group.col-span-3 { grid-column: span 3; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.form-error { font-size: 11px; color: var(--danger-text); margin-top: 3px; display: none; }
.form-group.has-error input,
.form-group.has-error select { border-color: var(--danger-text); }
.form-group.has-error .form-error { display: block; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ── Modal / Overlay ─────────────────────────────────────── */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 200;
  align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
  backdrop-filter: blur(3px);
}
.overlay.open { display: flex; animation: overlayIn var(--dur-mid) var(--ease); }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  width: 100%; max-width: 780px;
  max-height: 92vh; overflow-y: auto;
  padding: 24px; position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn var(--dur-mid) var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.96) translateY(10px); } to { opacity: 1; transform: none; } }

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 18px; font-weight: 700; color: var(--navy); }
.modal-close {
  background: var(--surface-alt); border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-muted);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger-text); }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  background: #323232; color: white;
  padding: 12px 20px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-md);
  transform: translateY(80px); opacity: 0;
  transition: all var(--dur-mid) var(--ease);
  max-width: 360px; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast.success { background: var(--success-text); }
.toast.error   { background: var(--danger-text); }
.toast.warning { background: var(--warning-text); }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 52px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 52px; margin-bottom: 14px; opacity: 0.45; }
.empty-state h4 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p  { font-size: 13px; }

/* ── Divider ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── Loading Spinner ─────────────────────────────────────── */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  display: none; position: absolute; inset: 0;
  background: rgba(255,255,255,0.75);
  align-items: center; justify-content: center;
  border-radius: inherit; z-index: 10;
}
.loading-overlay.show { display: flex; }

/* ── Student Quick-card (Attendance popup) ───────────────── */
.student-quick-card {
  background: var(--accent-light);
  border: 1px solid #c5d8f8;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 8px 0;
  animation: pageSlideIn var(--dur-fast) var(--ease);
}
.student-quick-card .sqc-name  { font-size: 15px; font-weight: 700; color: var(--navy); }
.student-quick-card .sqc-meta  { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.student-quick-card .sqc-tags  { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* ── Camera / Photo Capture ──────────────────────────────── */
.camera-wrap {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: #000;
  aspect-ratio: 4/3; max-width: 480px;
}
.camera-wrap video,
.camera-wrap canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.camera-controls  { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.photo-thumb {
  width: 80px; height: 60px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
  cursor: pointer; transition: transform var(--dur-fast);
}
.photo-thumb:hover { transform: scale(1.05); }
.photo-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ── Class Config ────────────────────────────────────────── */
.class-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  font-size: 12px; font-weight: 500;
  transition: all var(--dur-fast);
}
.class-chip:hover     { border-color: var(--accent); background: var(--accent-light); }
.class-chip .chip-del { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 14px; padding: 0 2px; transition: color var(--dur-fast); }
.class-chip .chip-del:hover { color: var(--danger-text); }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ── Responsive Helpers ──────────────────────────────────── */
@media (max-width: 768px) {
  .form-grid    { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: repeat(2,1fr); }
  .modal        { padding: 18px 16px; }
  .form-group.col-span-2,
  .form-group.col-span-3 { grid-column: span 1; }
  .hide-mobile  { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}


.card,.stat-card,.table-wrap,.module-card { background: rgba(255,255,255,.76); backdrop-filter: blur(14px); }
.module-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.module-card { border:1px solid var(--border); border-radius:var(--radius); padding:16px; box-shadow:var(--shadow-xs); transition:transform var(--dur-fast), box-shadow var(--dur-fast); }
.module-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-sm); }
.module-card h3 { font-size:15px; color:var(--navy); margin-bottom:6px; }
.module-card p { color:var(--text-muted); font-size:13px; margin-bottom:12px; }


.complaint-panel { border-left:4px solid var(--accent); }
.complaint-panel .toolbar { margin-bottom:6px; }


.access-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(132px,1fr)); gap:6px; min-width:360px; }
.access-grid label { display:flex; align-items:center; gap:6px; padding:5px 8px; border:1px solid var(--border); border-radius:var(--radius); background:rgba(255,255,255,.55); font-size:11px; font-weight:600; color:var(--text-muted); }
.access-grid input { width:auto; }
#tcData input[type=file] { max-width:220px; font-size:12px; }
@media (max-width:768px){ .access-grid{min-width:260px;grid-template-columns:1fr 1fr;} #tcData input[type=file]{max-width:180px;} }


/* Enterprise workflow controls */
.sync-status { display:inline-flex; align-items:center; min-height:24px; padding:3px 9px; border:1px solid var(--border); border-radius:var(--radius-full); background:var(--surface-alt); color:var(--text-muted); font-size:10px; font-weight:700; white-space:nowrap; }
.sync-synced { color:var(--success-text); background:var(--success-bg); }
.sync-syncing,.sync-pending-sync { color:var(--warning-text); background:var(--warning-bg); }
.sync-offline,.sync-sync-failed,.sync-conflict-detected { color:var(--danger-text); background:var(--danger-bg); }

.student-filter-grid { display:grid; grid-template-columns:minmax(180px,1.5fr) repeat(3,minmax(130px,1fr)); gap:8px; margin:10px 0 14px; }
.dashboard-filter-bar { align-items:center; }
.dashboard-filter-bar > input,.dashboard-filter-bar > select { min-width:138px; }
.dashboard-filter-bar #dashSearch { min-width:190px; }
.custom-date-input { display:none; }
.custom-date-input.is-visible { display:block; }
.date-range-label { color:var(--text-muted); }
.progress-cell { display:flex; align-items:center; gap:8px; min-width:150px; }
.mini-progress { flex:1; height:6px; min-width:42px; overflow:hidden; border-radius:4px; background:var(--border); }
.mini-progress span { display:block; height:100%; border-radius:inherit; background:var(--success-text); transition:width var(--dur-slow) var(--ease); }
.row-actions { white-space:nowrap; }

.transport-editors { grid-template-columns:repeat(3,minmax(280px,1fr)); }
.fee-master-table input,.fee-master-table select { min-width:112px; font-size:12px; }
.fee-master-table input[type=number] { min-width:88px; }
.fee-shortfall td { background:rgba(217,48,37,.045); }
.fee-shortfall:hover td { background:rgba(217,48,37,.08); }
.fee-complete td { background:rgba(30,126,52,.055); }
.fee-complete:hover td { background:rgba(30,126,52,.1); }
.ledger-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; margin:12px 0 18px; }
.ledger-summary span { padding:10px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface-alt); font-size:12px; font-weight:700; }
.fee-ledger-modal { max-width:1100px; }
.fee-ledger-modal h4 { margin:18px 0 8px; color:var(--navy); }
.import-report { margin-bottom:14px; border-left:4px solid var(--accent); }
.stats-grid.compact { grid-template-columns:repeat(4,minmax(80px,1fr)); margin:10px 0; }
.stats-grid.compact > div { display:flex; flex-direction:column; gap:3px; padding:10px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface-alt); }
.stats-grid.compact b { font-size:20px; }
.stats-grid.compact small { color:var(--text-muted); }
.success-text { color:var(--success-text); }
.danger-text { color:var(--danger-text); }
.user-action-menu { min-width:160px; }
.developer-credit { max-width:1180px; margin:10px auto 0; text-align:center; color:var(--text-muted); font-size:11px; font-weight:700; }
.page::after { content:'Designed and Developed By IrisOwl Team'; display:block; margin:26px 0 4px; padding-top:12px; border-top:1px solid var(--border); text-align:center; color:var(--text-muted); font-size:11px; font-weight:700; }

@media (max-width:1100px) {
  .transport-editors { grid-template-columns:1fr; }
  .student-filter-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:768px) {
  .student-filter-grid { grid-template-columns:1fr; }
  .dashboard-filter-bar > input,.dashboard-filter-bar > select { width:100%; min-width:0; }
  .stats-grid.compact { grid-template-columns:1fr 1fr; }
  .sync-status { max-width:92px; overflow:hidden; text-overflow:ellipsis; }
}
@media print {
  .page::after { border:0; margin-top:14px; }
  .sync-status { display:none!important; }
}

.table-date-input { min-width:138px; max-width:160px; padding:7px 8px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text); font:inherit; }
.table-date-input:focus { outline:2px solid color-mix(in srgb, var(--accent) 28%, transparent); border-color:var(--accent); }
.fee-followup-btn { margin-top:6px; background:#1f9d55; border-color:#1f9d55; color:#fff; white-space:nowrap; }
.fee-followup-btn:hover { background:#188047; border-color:#188047; color:#fff; }
/* Authentication and high-density operational surfaces */
html { -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; }
.is-hidden { display:none!important; }
body.auth-locked { overflow:hidden; }
body.auth-locked .header,body.auth-locked .sidebar,body.auth-locked .sidebar-backdrop,body.auth-locked .main,body.auth-locked .leadership-footer,body.auth-locked #offlineBanner,body.auth-locked #installBanner { visibility:hidden; }
.login-screen { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:24px; overflow:auto; background:linear-gradient(135deg,#eaf3ff 0%,#f8fbff 48%,#eef8f1 100%); }
.login-shell { width:min(1080px,100%); min-height:650px; display:grid; grid-template-columns:minmax(340px,.9fr) minmax(420px,1.1fr); overflow:hidden; border:1px solid rgba(11,31,59,.14); border-radius:8px; background:rgba(255,255,255,.92); box-shadow:0 26px 80px rgba(11,31,59,.18); }
.login-brand-panel { display:flex; flex-direction:column; justify-content:space-between; gap:28px; padding:42px; color:#fff; background:linear-gradient(150deg,#0b1f3b 0%,#123f68 58%,#1d684a 100%); }
.login-logo { width:100%; max-width:420px; height:auto; object-fit:contain; background:#fff; padding:10px; border-radius:6px; }
.login-kicker { display:block; margin-bottom:8px; color:#a8cffb; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:1.2px; }
.login-brand-panel h1 { font-size:32px; line-height:1.12; letter-spacing:0; }
.login-brand-panel p { margin-top:10px; color:rgba(255,255,255,.78); line-height:1.6; }
.demo-credentials { display:grid; gap:10px; }
.demo-credentials > div { display:grid; gap:3px; padding:13px; border:1px solid rgba(255,255,255,.18); border-radius:6px; background:rgba(255,255,255,.08); font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:11px; overflow-wrap:anywhere; }
.demo-credentials b { margin-bottom:4px; color:#fff; font-family:Inter,Arial,sans-serif; }
.login-workspace { padding:36px 44px; overflow:auto; }
.auth-segments { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; margin-bottom:24px; border:1px solid var(--border); border-radius:6px; background:var(--surface-alt); }
.auth-segments button { border:0; border-radius:4px; padding:10px; background:transparent; color:var(--text-muted); font-weight:700; cursor:pointer; }
.auth-segments button.active { background:#fff; color:var(--navy); box-shadow:var(--shadow-xs); }
.auth-panel,.auth-panel form { display:grid; gap:16px; }
.auth-panel h2 { color:var(--navy); font-size:22px; }
.auth-panel p { margin-top:3px; color:var(--text-muted); font-size:13px; }
.auth-panel label,.school-onboarding-form label { display:grid; gap:6px; color:var(--text); font-size:12px; font-weight:700; }
.auth-panel input,.auth-panel select { width:100%; }
.auth-submit { width:100%; min-height:42px; justify-content:center; }
.auth-message { min-height:22px; margin-bottom:6px; font-size:12px; font-weight:700; }
.auth-message.error { color:var(--danger-text); }.auth-message.success { color:var(--success-text); }
.school-logo-preview { max-width:100%; max-height:90px; object-fit:contain; border:1px solid var(--border); padding:8px; border-radius:6px; }
.onboarded-credentials { display:grid; gap:5px; margin-top:14px; padding:14px; border:1px solid var(--success-border); border-radius:6px; background:var(--success-bg); font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:12px; overflow-wrap:anywhere; }
.onboarded-credentials small { font-family:Inter,Arial,sans-serif; color:var(--text-muted); }
.header-logout { min-height:30px; padding:5px 9px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text-muted); font-size:11px; font-weight:700; cursor:pointer; }
.student-table-photo { width:44px; height:44px; border-radius:6px; object-fit:cover; border:1px solid var(--border); background:#fff; }
.onboarding-photo-preview { width:92px; height:92px; border-radius:6px; object-fit:cover; border:1px solid var(--border); background:#fff; }
.student-photo-field { grid-row:span 2; align-content:start; }
.student-photo-field input[type=file] { max-width:220px; font-size:11px; }
.selection-summary { display:flex; justify-content:flex-end; min-height:28px; margin:8px 0; color:var(--text-muted); font-size:12px; }
.pagination-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; padding:10px 12px; border:1px solid var(--border); border-radius:6px; background:rgba(255,255,255,.72); color:var(--text-muted); font-size:12px; }
.pagination-bar > div { display:flex; align-items:center; gap:10px; }
.staff-onboarding-grid { display:grid; grid-template-columns:160px repeat(3,minmax(150px,1fr)); gap:10px; align-items:end; }
.staff-photo-control { grid-row:span 3; display:grid; gap:7px; align-content:start; }
.staff-photo-control img { width:118px; height:118px; object-fit:cover; border-radius:6px; border:1px solid var(--border); }
.staff-photo-control input { max-width:150px; font-size:11px; }
.staff-identity { display:flex; align-items:flex-start; gap:10px; min-width:210px; }
.staff-identity img { width:52px; height:52px; object-fit:cover; border-radius:6px; border:1px solid var(--border); }
.notification-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(260px,.8fr); gap:14px; }
.notification-composer textarea { width:100%; resize:vertical; min-height:112px; }
.notification-guidance p { margin:9px 0; color:var(--text-muted); font-size:12px; line-height:1.55; }
.audience-preview { display:grid; gap:4px; margin:14px 0; padding:12px; border:1px solid var(--border); border-left:4px solid #25a55f; border-radius:6px; background:var(--success-bg); font-size:12px; }
.audience-preview span,.audience-preview small { color:var(--text-muted); overflow-wrap:anywhere; }
@media (min-resolution:2dppx) { .opa-logo,.login-logo,.student-table-photo,.onboarding-photo-preview,.staff-identity img { image-rendering:auto; } }
@media (max-width:900px) { .login-shell{grid-template-columns:1fr;}.login-brand-panel{padding:26px;}.login-brand-panel h1{font-size:26px}.demo-credentials{grid-template-columns:1fr 1fr}.staff-onboarding-grid{grid-template-columns:140px 1fr 1fr}.notification-layout{grid-template-columns:1fr;} }
@media (max-width:600px) { .login-screen{padding:0;align-items:start}.login-shell{min-height:100vh;border:0;border-radius:0}.login-brand-panel{padding:20px;gap:18px}.login-logo{max-height:72px}.demo-credentials{grid-template-columns:1fr}.login-workspace{padding:22px 18px}.staff-onboarding-grid{grid-template-columns:1fr}.staff-photo-control{grid-row:auto}.pagination-bar{align-items:flex-start;flex-direction:column}.pagination-bar>div{width:100%;justify-content:space-between}.notification-composer .form-grid{grid-template-columns:1fr}.student-table-photo{width:38px;height:38px} }

@media (max-width:390px) {
  .sync-status {
    width:60px;
    max-width:60px;
    padding:3px 4px;
    justify-content:center;
    font-size:8px;
    overflow:hidden;
    white-space:nowrap;
  }
  .header-logout {
    font-size:0!important;
    overflow:hidden;
    white-space:nowrap;
  }
}
