:root {
  color-scheme: light;
  --ink: #111111;
  --deep: #164c42;
  --green: #1b5a4e;
  --green-2: #347565;
  --mint: #e9f2eb;
  --cream: #f8f7f0;
  --paper: #fffefa;
  --gold: #c69d53;
  --gold-light: #f3e8cf;
  --coral: #8f3b2c;
  --coral-light: #f8e9e3;
  --text: #111111;
  --muted: #333333;
  --line: #c8cfca;
  --shadow: 0 14px 38px rgba(31, 67, 57, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: system-ui, "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.65;
  font-size: 18px;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 240px;
  flex: 0 0 240px;
  background: linear-gradient(180deg, #164c42 0%, #17483e 70%, #123d35 100%);
  color: #f7f5e9;
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 15px 15px 15px 5px;
  background: #f1e6c8; color: var(--deep); display: grid; place-items: center;
  position: relative; font-size: 22px; font-weight: 800; box-shadow: 0 5px 14px #0b362d55;
}
.brand-mark i { position: absolute; width: 15px; height: 3px; background: var(--gold); bottom: 10px; left: 8px; border-radius: 5px; transform: rotate(-35deg); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: 21px; letter-spacing: -.04em; }
.brand-copy small { color: #c9d8cc; font-size: 16px; margin-top: 5px; }
.sidebar-rule { height: 1px; background: #ffffff24; margin: 31px 0 22px; }
.sidebar-label { color: #adc8b8; font-size: 16px; letter-spacing: .04em; padding: 0 12px; margin: 0 0 8px; }
.side-link { border: 0; background: transparent; color: #d8e6db; text-align: right; border-radius: 12px; display: flex; gap: 12px; align-items: center; padding: 12px; font-size: 16px; margin: 3px 0; transition: background .18s ease, color .18s ease, transform .18s ease; }
.side-link:hover { background: #ffffff13; transform: translateX(-2px); }
.side-link.is-current { background: #ffffff1b; color: #fffefa; box-shadow: inset -3px 0 var(--gold); }
.side-icon { color: #e8c77e; font-size: 17px; width: 20px; text-align: center; }
.sidebar-bottom { margin-top: auto; padding: 19px 14px; border: 1px solid #ffffff20; background: #ffffff09; border-radius: 15px; }
.side-note-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #cba357; color: #17483e; font-weight: 800; }
.sidebar-bottom p { color: #f6f1df; font-size: 16px; margin: 12px 0 10px; line-height: 1.8; }
.sidebar-bottom small { display: block; color: #b8cec0; font-size: 16px; }
.main-content { width: min(1320px, calc(100% - 240px)); margin: 0 auto; padding: 0 42px 28px; }
.topbar { min-height: 74px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 20px; }
.school-mini { display: flex; align-items: center; gap: 9px; color: #222222; font-size: 16px; }
.school-mini b { color: var(--gold); padding: 0 3px; }
.school-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px var(--gold-light); }
.top-actions, .form-actions { display: flex; gap: 9px; align-items: center; }
.button { min-height: 38px; border-radius: 10px; border: 1px solid transparent; padding: 8px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 16px #173c3518; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: #12493e; }
.button-light { background: #fffefa; color: var(--green); border-color: var(--line); }
.open-notice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; margin: 18px 0 0; color: #725239; background: #fff3de; border: 1px solid #f0dfbc; border-radius: 11px; font-size: 16px; }
.open-notice p { margin: 0; }
.open-notice strong { color: #684527; }
.notice-symbol { background: #d4a855; color: white; flex: 0 0 18px; text-align: center; border-radius: 50%; font-size: 16px; font-weight: 800; line-height: 18px; }
.welcome-band { min-height: 162px; margin: 20px 0 17px; padding: 26px 30px; border-radius: 19px; position: relative; overflow: hidden; display: flex; align-items: center; background: linear-gradient(105deg, #e8f0e8 0%, #f5f1e3 62%, #efe4ca 100%); }
.welcome-band::before { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid #1b5a4e16; border-radius: 50%; left: 88px; top: -128px; box-shadow: 0 0 0 24px #1b5a4e06, 0 0 0 48px #1b5a4e04; }
.welcome-text { position: relative; z-index: 1; max-width: 650px; }
.eyebrow { margin: 0 0 4px; color: var(--green-2); font-size: 16px; font-weight: 800; letter-spacing: .02em; }
h1, h2, h3, p { margin-top: 0; }
.welcome-text h1 { margin: 0; color: var(--deep); font-size: clamp(23px, 3vw, 31px); letter-spacing: -.04em; line-height: 1.3; }
.intro-copy { margin: 8px 0 0; color: #333333; font-size: 16px; }
.welcome-seal { width: 98px; height: 98px; margin-right: auto; position: relative; z-index: 1; flex: 0 0 auto; border: 1px solid #b6985b77; border-radius: 50%; display: grid; place-items: center; color: var(--green); font-size: 21px; font-weight: 800; transform: rotate(-9deg); background: #fffaf055; }
.welcome-seal::before, .welcome-seal::after { content: ""; position: absolute; inset: 6px; border: 1px dashed #b6985b88; border-radius: inherit; }
.welcome-seal::after { inset: 17px; border: 0; border-bottom: 2px solid var(--gold); border-radius: 0; width: 15px; height: 8px; left: 26px; top: 58px; transform: rotate(-38deg); }
.welcome-line { position: absolute; width: 44%; height: 1px; left: 0; bottom: 22px; background: linear-gradient(90deg, transparent, #c69d5377, transparent); }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 0 0 22px; }
.stat-card { min-height: 74px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 4px 13px #204a3c07; }
.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: var(--mint); font-size: 17px; }
.stat-cream .stat-icon { color: #947243; background: #f4ecd9; }
.stat-coral .stat-icon { color: #a75f4d; background: var(--coral-light); }
.stat-card span { display: block; color: var(--muted); font-size: 16px; }
.stat-card strong { display: block; color: var(--ink); font-size: 19px; line-height: 1.25; margin-top: 2px; }
.module-tabs { display: flex; gap: 7px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.module-tab { display: inline-flex; align-items: center; gap: 8px; border: 0; border-bottom: 2px solid transparent; padding: 11px 14px; margin-bottom: -1px; background: transparent; color: #333333; font-size: 16px; font-weight: 700; }
.module-tab > span { color: var(--gold); font-size: 16px; }
.module-tab em { font-style: normal; background: #eff2ea; color: #333333; font-size: 16px; border-radius: 10px; padding: 2px 7px; }
.module-tab.is-active { color: var(--green); border-bottom-color: var(--gold); }
.module-tab.is-active em { background: var(--mint); color: var(--green); }
.module-view { display: none; }
.module-view.is-active { display: block; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 17px; }
.section-heading h2 { margin: 0; font-size: 21px; color: var(--deep); letter-spacing: -.025em; }
.section-heading p:not(.eyebrow) { font-size: 16px; color: var(--muted); margin: 4px 0 0; }
.section-mark { color: #745b2e; font-family: Georgia, serif; font-size: 29px; font-style: italic; }
.behavior-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.behavior-card, .entry-panel, .report-card { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 6px 22px #153d3310; }
.behavior-card { padding: 16px; position: relative; overflow: hidden; }
.behavior-card::before { content: ""; position: absolute; top: 0; right: 0; width: 4px; height: 46px; background: var(--gold); border-radius: 0 0 4px 0; }
.card-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.grade-round { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--mint); color: var(--green); font-size: 16px; font-weight: 800; }
.card-heading h3 { margin: 0; font-size: 16px; color: var(--ink); }
.card-heading small { display: block; color: var(--muted); font-size: 16px; }
.card-form, .entry-panel { display: flex; flex-direction: column; gap: 11px; }
label { display: flex; flex-direction: column; gap: 5px; color: #222222; font-size: 16px; font-weight: 700; }
input, select, textarea { width: 100%; min-width: 0; color: var(--text); background: #fff; border: 1px solid #dfe4dc; border-radius: 9px; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
input, select { min-height: 44px; padding: 8px 11px; }
textarea { min-height: 76px; padding: 9px 10px; resize: vertical; }
.completion-field { gap: 8px; }
.check-control { display: flex; align-items: center; gap: 12px; width: fit-content; min-height: 48px; padding: 8px 13px; border: 1px solid #9a9a9a; border-radius: 10px; color: #111111; background: #f6f6f6; }
.check-control input[type="checkbox"] { width: 28px; height: 28px; min-height: 28px; margin: 0; padding: 0; accent-color: var(--green); flex: 0 0 28px; }
.check-control span { font-weight: 800; }

input:focus, select:focus, textarea:focus { border-color: #71a08e; box-shadow: 0 0 0 3px #4c8a7020; }
input::placeholder, textarea::placeholder { color: #555555; font-weight: 400; }
.photo-strip { display: flex; align-items: center; gap: 9px; min-height: 42px; }
.upload-control { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px dashed #a9b9ac; border-radius: 10px; background: #f8faf6; position: relative; overflow: hidden; min-height: 54px; }
.upload-control input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 100%; }
.upload-symbol { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--mint); color: var(--green); font-size: 18px; }
.upload-copy strong, .upload-copy small { display: block; }
.upload-copy strong { color: var(--green); font-size: 16px; }
.upload-copy small { color: #444444; font-size: 16px; font-weight: 400; }
.image-preview { display: flex; gap: 10px; align-items: center; min-height: 35px; color: #444444; font-size: 16px; }
.image-preview img { display: block; width: 56px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.image-preview a { color: var(--green); font-size: 16px; font-weight: 700; }
.small-action { background: transparent; border: 0; color: var(--coral); padding: 3px 5px; font-size: 16px; font-weight: 700; }
.card-actions { display: flex; justify-content: flex-start; align-items: center; margin-top: 1px; }
.entry-panel { padding: 17px; margin-bottom: 23px; }
.entry-panel-title { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #edf0e9; }
.entry-icon { width: 34px; height: 34px; background: var(--gold-light); color: #8c6b31; display: grid; place-items: center; border-radius: 11px; font-size: 19px; }
.entry-panel-title h3 { margin: 0; font-size: 16px; color: var(--deep); }
.entry-panel-title p { margin: 2px 0 0; font-size: 16px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.wide-field { grid-column: 1 / -1; }
.form-actions { justify-content: flex-start; }
.list-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin: 0 0 12px; }
.list-heading h3 { color: var(--deep); margin: 0; font-size: 16px; }
.filter-label { width: min(210px, 40%); }
.curriculum-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.report-card { padding: 14px; position: relative; }
.report-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.report-card h4 { margin: 0; color: var(--deep); font-size: 16px; }
.report-card .report-meta { color: var(--muted); font-size: 16px; margin-top: 3px; }
.completion-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 16px; font-weight: 800; }
.completion-status.is-complete { color: #16483e; }
.completion-status.is-pending { color: #333333; }
.status-dot { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 50%; }
.completion-status.is-complete .status-dot { background: #1b5a4e; }

.subject-chip { display: inline-block; background: var(--gold-light); color: #795f31; border-radius: 20px; padding: 3px 9px; font-size: 16px; font-weight: 800; }
.report-details { font-size: 16px; color: #222222; margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-image { max-width: 100%; max-height: 200px; margin-top: 9px; border-radius: 9px; border: 1px solid var(--line); }
.report-actions { margin-top: 10px; display: flex; justify-content: flex-start; gap: 5px; }
.empty-state { padding: 21px; border: 1px dashed #cdd8cd; border-radius: 12px; color: var(--muted); text-align: center; font-size: 16px; grid-column: 1 / -1; }
.closing-copy { padding: 13px 16px; margin: 21px 0 0; border-right: 3px solid var(--gold); border-radius: 0 9px 9px 0; background: #f5f0e3; color: #333333; font-size: 16px; }
.page-footer { min-height: 55px; border-top: 1px solid var(--line); margin-top: 32px; padding: 13px 0 0; display: flex; justify-content: space-between; gap: 15px; color: #444444; font-size: 16px; }
.page-footer > div { display: flex; gap: 9px; align-items: center; }
.footer-brand { font-weight: 900; color: var(--green); font-size: 16px; }
.page-footer i { color: var(--gold); font-style: normal; padding: 0 3px; }
.toast { position: fixed; bottom: 20px; left: 20px; z-index: 20; padding: 11px 16px; max-width: calc(100vw - 40px); border-radius: 11px; color: white; background: var(--deep); box-shadow: 0 9px 28px #103a3060; font-size: 16px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { background: #9b4d42; }

@media (max-width: 1050px) {
  .sidebar { width: 205px; flex-basis: 205px; padding-inline: 16px; }
  .main-content { width: calc(100% - 205px); padding-inline: 27px; }
  .topbar { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .top-actions { align-self: stretch; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; min-height: 0; padding: 12px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: center; }
  .brand { grid-column: 1 / -1; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px 12px 12px 4px; }
  .sidebar-rule, .sidebar-label, .sidebar-bottom { display: none; }
  .sidebar .side-link { margin: 0; padding: 10px 6px; font-size: 16px; gap: 7px; justify-content: center; }
  .sidebar .side-link + .side-link { margin: 0; }
  .sidebar .side-link .side-icon { font-size: 17px; }
  .main-content { width: 100%; padding: 0 16px 23px; }
  .topbar { min-height: 0; gap: 10px; padding: 12px 0; }
  .top-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .button { padding: 8px 9px; font-size: 16px; }
  .welcome-band { min-height: 138px; padding: 21px 18px; }
  .welcome-seal { width: 69px; height: 69px; font-size: 17px; }
  .welcome-seal::after { top: 44px; left: 17px; }
  .stats-row { gap: 7px; }
  .stat-card { padding: 10px 8px; gap: 7px; min-height: 68px; }
  .stat-icon { width: 29px; height: 29px; }
  .stat-card span { font-size: 16px; }
  .stat-card strong { font-size: 16px; }
  .module-tab { padding: 10px 7px; gap: 5px; font-size: 16px; }
  .module-tab em { font-size: 16px; padding: 2px 5px; }
  .behavior-grid, .curriculum-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid label:nth-child(-n+3) { grid-column: 1 / -1; }
  .page-footer { flex-direction: column; gap: 4px; }
}
@media (max-width: 420px) {
  .school-mini { font-size: 16px; }
  .welcome-seal { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr 1fr; }
  .stat-card { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label { grid-column: 1 / -1 !important; }
  .list-heading { align-items: flex-start; flex-direction: column; }
  .filter-label { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: white; color: #111111; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 13pt; }
  .app-shell { display: block; min-height: 0; }
  .sidebar, .topbar, .open-notice, .stats-row, .module-tabs, .form-actions, .upload-control, .small-action, .report-actions, .toast { display: none !important; }
  .main-content { width: 100%; max-width: none; padding: 0; }
  .welcome-band { min-height: 0; margin: 0 0 8mm; padding: 8mm; border-radius: 0; border-bottom: 2px solid #c69d53; }
  .welcome-band::before, .welcome-seal, .welcome-line { display: none; }
  .welcome-text h1 { font-size: 20pt; }
  .welcome-text .intro-copy { font-size: 12pt; }
  .page-footer { border-top: 1px solid #c69d53; margin-top: 8mm; padding-top: 4mm; }
  body[data-tab="behavior"] #curriculumView, body[data-tab="curriculum"] #behaviorView { display: none !important; }
  .module-view.is-active { display: block !important; }
  .behavior-grid, .curriculum-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .behavior-card, .entry-panel, .report-card { box-shadow: none; break-inside: avoid; }
  input, select, textarea { border-color: #9aa79d; color: #111111; background: #fff; }
  .closing-copy { color: #111111; }
}


/* Private code entry and role-aware administration */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 15% 10%, #e8f0e8 0, transparent 35%), var(--cream); }
.login-card { width: min(100%, 570px); padding: clamp(24px, 5vw, 44px); background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 20px; box-shadow: var(--shadow); }
.login-mark { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 17px 17px 17px 5px; background: var(--deep); color: #fffefa; font-size: 29px; font-weight: 900; }
.login-card .eyebrow { margin-bottom: 8px; }
.login-card h1 { margin: 0; color: var(--deep); font-size: clamp(25px, 5vw, 34px); line-height: 1.45; }
.login-intro { margin: 12px 0 22px; color: #222; font-size: 18px; }
.login-form { display: flex; flex-direction: column; gap: 9px; }
.login-form label { font-size: 18px; }
.login-form input { min-height: 58px; width: 100%; text-align: center; direction: ltr; letter-spacing: .4em; font-size: 25px; font-weight: 800; border: 2px solid #6a7b70; color: #111; }
.login-form input:focus { border-color: var(--deep); box-shadow: 0 0 0 4px #164c4225; }
.login-form small { color: #333; font-size: 16px; }
.login-button { min-height: 52px; margin-top: 7px; font-size: 19px; }
.login-warning { margin-top: 22px; padding: 13px 15px; border: 1px solid #bb7b27; border-right: 5px solid #8b5314; border-radius: 10px; background: #fff4df; color: #241a10; font-size: 16px; }
.login-warning strong { display: block; margin-bottom: 4px; }
.form-error { margin: 5px 0 0; padding: 10px 12px; color: #7c1f16; background: #fff0ed; border: 1px solid #a9483e; border-radius: 9px; font-size: 17px; font-weight: 700; }
.account-actions { display: flex; align-items: center; gap: 8px; }
.user-badge { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 13px; border-radius: 10px; color: #123d35; background: var(--mint); border: 1px solid #a3b8aa; font-size: 16px; font-weight: 800; }
.privacy-notice { display: flex; align-items: flex-start; gap: 10px; margin: 15px 0 0; padding: 12px 14px; border: 1px solid #ad8742; border-right: 5px solid #826129; border-radius: 10px; background: #fff6e7; color: #211b12; font-size: 16px; }
.privacy-notice p { margin: 0; }
.notice-symbol { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: #815a18; color: white; font-size: 16px; font-weight: 900; }
.locked-identity { align-self: stretch; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f1f4ef; color: #111; font-size: 17px; font-weight: 800; }
.locked-leader { display: flex; flex-direction: column; gap: 3px; padding: 7px 0; color: #111; font-size: 16px; }
.locked-leader strong { color: #333; }
.last-updated { margin: 5px 0 9px; color: #222; font-size: 16px; line-height: 1.5; }
.last-updated strong { color: #123d35; }
.admin-panel { margin: 20px 0 25px; padding: 18px; border: 2px solid #426f60; border-radius: 16px; background: #f0f5ef; }
.admin-panel > .section-heading { margin-top: 0; }
.admin-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-card { min-width: 0; padding: 15px; border: 1px solid #9daf9f; border-radius: 12px; background: #fffefa; }
.admin-card h3 { margin: 0 0 10px; color: #123d35; font-size: 18px; }
.admin-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.admin-card-heading p { margin: 0 0 10px; color: #333; font-size: 16px; }
.activity-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow: auto; }
.activity-row { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-right: 3px solid var(--gold); border-radius: 7px; background: #f7f6f0; color: #111; font-size: 16px; }
.activity-row strong { color: #123d35; }
.activity-row small { color: #333; font-size: 15px; }
.activity-status { color: #165a35; font-weight: 800; }
.empty-inline { margin: 0; color: #333; font-size: 16px; }
.admin-users-card { margin-top: 12px; }
.users-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-user-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid #d1d9d1; border-radius: 9px; background: #fbfbf7; }
.admin-user-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-user-row strong { color: #111; font-size: 16px; }
.admin-user-row small { color: #333; font-size: 15px; }
.admin-user-row .small-action { flex: 0 0 auto; color: #174b40; text-decoration: underline; }
.code-dialog { width: min(92vw, 470px); padding: 22px; border: 2px solid #456e5b; border-radius: 16px; color: #111; background: #fffefa; box-shadow: 0 18px 55px #0005; }
.code-dialog::backdrop { background: #13201bcc; }
.code-dialog h2 { margin: 0 0 9px; color: #123d35; font-size: 23px; }
.code-dialog p { color: #222; font-size: 16px; }
.new-code { display: block; margin: 14px 0; padding: 16px; border: 2px solid #164c42; border-radius: 10px; background: #f1f5f0; color: #111; text-align: center; font-size: 34px; font-weight: 900; letter-spacing: .25em; }
.dialog-warning { padding: 8px 10px; border-right: 4px solid #925d1b; background: #fff6e7; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 760px) {
  .login-screen { padding: 15px; }
  .login-card { padding: 24px 19px; }
  .topbar { display: grid; grid-template-columns: 1fr; }
  .account-actions { width: 100%; justify-content: space-between; }
  .admin-panel { padding: 12px; }
  .admin-columns, .users-list { grid-template-columns: 1fr; }
  .admin-user-row { align-items: flex-start; }
}
@media print {
  #loginView, .account-actions, .privacy-notice, .admin-panel, .code-dialog { display: none !important; }
}
