@font-face {
    font-family: "Baloo";
    src: url("../fonts/Baloo-Regular.ttf") format("truetype");
    font-display: swap;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
}

h1, h2, .brand-font { font-family: "Baloo", Arial, sans-serif; font-weight: normal; }

.center { text-align: center; }
.small { font-size: 12px; }
.muted { color: #666; }
.strong { font-weight: bold; color: #222; }
.error { color: #E06F63; margin: 10px 0 0; }
.notice { background: #fff4d6; border-radius: 10px; padding: 10px 14px; }

/* ---------- Login / privacy / password pages ---------- */

.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px 12px;
    background: #fff;
}

.shape { position: absolute; z-index: 0; }
.shape.square { width: 330px; height: 260px; }
.shape.green { background: #BFD1C8; }
.shape.blue { background: #A3D2E0; }
.shape.tl { top: -60px; left: -40px; transform: rotate(10deg); }
.shape.tr { top: -60px; right: -40px; transform: rotate(-10deg); }
.shape.bl { bottom: -60px; left: -40px; transform: rotate(-12deg); }
.shape.br { bottom: -60px; right: -40px; transform: rotate(12deg); }
.shape.circle { width: 240px; height: 240px; border-radius: 50%; background: #FCCE82; top: 50%; margin-top: -120px; }
.shape.circle.left { left: -120px; }
.shape.circle.right { right: -120px; }

.auth-card {
    position: relative;
    z-index: 1;
    width: 490px;
    max-width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 40px;
    padding: 28px 42px 34px;
    box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.25);
}

.auth-card.wide { width: 760px; }

.auth-logo { display: block; height: 80px; margin: 0 auto 10px; max-width: 100%; object-fit: contain; }

.auth-title { text-align: center; font-family: Arial, sans-serif; font-size: 24px; margin: 0 0 20px; }

label { display: block; margin: 8px 0 6px; font-size: 14px; }

.field {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #999;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    margin-bottom: 12px;
}

.field:focus, .field:focus-within { outline: 2px solid #7AD0F2; outline-offset: 0; }

.field.with-button { display: flex; align-items: center; padding: 0 4px 0 10px; }
.field.with-button input { flex: 1; border: none; outline: none; height: 100%; font-size: 16px; min-width: 0; background: transparent; }
.eye { background: none; border: none; padding: 8px; cursor: pointer; }
.eye img { width: 22px; height: 22px; display: block; }

.remember { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: 0; }

.btn-main {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 12px;
    border: none;
    border-radius: 14px;
    background: #7AD0F2;
    color: #fff;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 20px;
    cursor: pointer;
}

.btn-main:disabled { opacity: 0.6; cursor: default; }

.btn-plain {
    display: block;
    margin: 10px auto 0;
    background: none;
    border: none;
    color: #555;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.notice-text {
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 14px;
    max-height: 50vh;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 14px;
}

/* ---------- Signed-in pages ---------- */

.app { display: flex; min-height: 100vh; }

.sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #262626;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;   /* small window: the whole menu scrolls */
    scrollbar-width: thin;
    scrollbar-color: #666 transparent;
}

.sidebar > * { flex-shrink: 0; }
.side-bottom { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
.sidebar-logo { height: 80px; object-fit: contain; margin: 10px 0 40px; }

.sidebar nav { display: flex; flex-direction: column; gap: 10px; flex: 1 0 auto; }

.nav-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 18px;
    cursor: pointer;
}

.nav-btn:hover { background: rgba(255, 255, 255, 0.1); }
.nav-btn.active { background: rgba(255, 255, 255, 0.18); }
.nav-btn.disabled { opacity: 0.45; cursor: default; }
.nav-btn.disabled:hover { background: transparent; }

.content { flex: 1; min-width: 0; }

.header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 30px 30px 0;
}

.school-logo { width: 70px; height: 70px; object-fit: contain; }
.school-text { flex: 1; min-width: 0; }
.school-name { font-family: "Baloo", Arial, sans-serif; font-weight: bold; font-size: 28px; line-height: 1.2; }
.school-sub { font-weight: bold; font-size: 18px; }

.user { display: flex; align-items: center; gap: 12px; }
.user-text { text-align: right; }
.user-name { font-family: "Baloo", Arial, sans-serif; font-size: 16px; }
.user-level { font-size: 12px; }

.initials {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #4F9D84;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 24px;
    flex-shrink: 0;
}

.header-line { border: none; border-top: 1px solid gray; margin: 15px 30px 0; }

main { padding: 20px 30px 30px; }

.welcome-banner { display: block; width: 100%; height: auto; }

.section-title { font-size: 26px; margin: 25px 0 5px; }
.staff-note { margin-top: 25px; }

.tiles { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }

.tile {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border-radius: 20px;
    background: #e6f4f1;
}

.tile.disabled { opacity: 0.6; }

.menu-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; padding: 0 6px; }
.menu-backdrop { display: none; }

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        z-index: 20;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.2s;
    }

    .menu-open .sidebar { transform: translateX(0); }
    .menu-open .menu-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 10; }
    .menu-toggle { display: block; }
    .header { padding: 16px 16px 0; gap: 10px; flex-wrap: wrap; }
    .school-logo { width: 50px; height: 50px; }
    .school-name { font-size: 20px; }
    .school-sub { font-size: 14px; }
    .initials { width: 48px; height: 48px; font-size: 18px; }
    .header-line { margin: 12px 16px 0; }
    main { padding: 16px; }
}

@media (max-width: 520px) {
    .auth-card, .auth-card.wide { padding: 22px 22px 26px; border-radius: 28px; }
    .user-text { display: none; }
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 20px;
    background: #ffe9a8;
    z-index: 1000;
}

#blazor-error-ui .reload { margin-left: 12px; }

/* ---------- Progress report ---------- */

a.tile { color: inherit; text-decoration: none; }
a.tile:hover { background: #d6ece7; }

.titlebar {
    background: #262626;
    color: #fff;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 34px;
    padding: 6px 24px;
    border-radius: 0 0 25px 25px;
}

.pr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.pr-person { display: flex; align-items: center; gap: 10px; }
.initials.small { width: 56px; height: 56px; font-size: 20px; }
.pr-name { font-family: "Baloo", Arial, sans-serif; font-size: 20px; }
.pr-id { font-family: "Baloo", Arial, sans-serif; font-size: 9px; }
.pr-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: #fff;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 13px;
    cursor: pointer;
}

.pill.on { background: #1F3D4A; }
.pill.off { background: #6B808A; }
.pill:disabled { opacity: 0.6; cursor: default; }

.pr-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    text-align: center;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 12px;
    margin: 16px 0;
}

.pr-info span { display: block; font-size: 12px; color: #555; }

.sheet-title { font-family: "Baloo", Arial, sans-serif; font-weight: normal; font-size: 20px; margin: 24px 0 8px; }
.table-wrap { overflow-x: auto; }

table.sheet { border-collapse: collapse; width: 100%; font-size: 13px; }
table.sheet th, table.sheet td { border: 1px solid #000; padding: 5px 7px; text-align: center; }
table.sheet th { font-weight: bold; }
table.sheet .left { text-align: left; }
table.sheet .big { font-size: 15px; }
table.sheet .blue { background: #1E90E0; }
table.sheet .yellow { background: #FFFF00; }
table.sheet.domain td:not(.left), table.sheet.domain th:not(.left) { width: 44px; }
.bold { font-weight: bold; }

.legend { border: 1px solid #000; padding: 10px; margin-top: 16px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.legend-row { display: flex; flex-wrap: wrap; gap: 4px 40px; }
.legend-row > div { min-width: 200px; }

@media (max-width: 520px) {
    .titlebar { font-size: 26px; }
}

/* ---------- Messages ---------- */

.chat-area {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-top: 16px;
    height: calc(100vh - 290px);
    min-height: 440px;
}

.convo-panel, .chat-panel { background: #D9D9D9; border-radius: 20px; display: flex; flex-direction: column; min-height: 0; }
.convo-panel { padding: 18px; gap: 12px; }
.convo-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }

.convo {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 25px;
    padding: 12px;
    cursor: pointer;
}

.convo.selected { background: #1B7F5F; color: #fff; }
.convo.selected .convo-last { color: #fff; }

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2FB5CC;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Baloo", Arial, sans-serif;
    flex-shrink: 0;
}

.avatar.big { width: 50px; height: 50px; font-size: 18px; }
.bubble-row .avatar { width: 44px; height: 44px; font-size: 14px; align-self: flex-end; }

.convo-text { flex: 1; min-width: 0; }
.convo-name { font-family: "Baloo", Arial, sans-serif; font-size: 16px; }
.convo-last { font-size: 11px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.unread {
    background: #E06F63;
    color: #fff;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-family: "Baloo", Arial, sans-serif;
}

.new-message {
    height: 50px;
    border: none;
    border-radius: 25px;
    background: #fff;
    color: #777;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
}

.chat-empty { margin: auto; color: #555; }

.chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #D0D0D0;
    border-radius: 20px 20px 0 0;
    padding: 10px 24px;
}

.chat-who { flex: 1; min-width: 0; }
.chat-name { font-family: "Baloo", Arial, sans-serif; font-size: 18px; }
.chat-role { font-family: "Baloo", Arial, sans-serif; font-size: 11px; }
.chat-tools { display: flex; align-items: center; }
.back { display: none; background: none; border: none; font-size: 32px; cursor: pointer; padding: 0 6px 6px 0; }

/* Google Meet: green pill with the Block button as the light pill over its right end */
.meet {
    background: #4CC15A;
    color: #fff;
    text-decoration: none;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 15px;
    height: 40px;
    line-height: 40px;
    padding: 0 38px 0 22px;
    border-radius: 20px;
    box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.2);
}

.block {
    margin-left: -26px;
    position: relative;
    height: 44px;
    width: 80px;
    border: none;
    border-radius: 22px;
    background: #EAEAEA;
    color: #C0504D;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.chat-scroll { flex: 1; overflow-y: auto; padding: 10px 24px; display: flex; flex-direction: column; gap: 14px; }

.bubble-row { display: flex; gap: 10px; }
.bubble-row.mine { justify-content: flex-end; }

.bubble {
    background: #fff;
    border-radius: 24px;
    padding: 12px 18px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.bubble-row.mine .bubble { background: #EAF4F1; }
.msg-text a, .file { color: #1A5FD0; text-decoration: underline; }
.file { font-size: 13px; }
.join { align-self: flex-start; background: #4CC15A; color: #fff; text-decoration: none; border-radius: 16px; padding: 6px 16px; font-size: 13px; }
.bubble-foot { display: flex; gap: 12px; font-family: Arial, sans-serif; font-size: 9px; color: #555; }
.report { color: #C0504D; text-decoration: underline; }

.pending {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 24px 0;
    background: #EAF4F1;
    border-radius: 14px;
    padding: 6px 14px;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 12px;
    color: #1A5FD0;
}

.pending button { background: none; border: none; color: #C0504D; cursor: pointer; }
.chat-error { margin: 4px 24px 0; font-size: 13px; }

.composer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 24px 4px;
    background: #fff;
    border-radius: 25px;
    padding: 0 6px;
    height: 50px;
}

.composer input { flex: 1; border: none; outline: none; font-size: 15px; background: transparent; min-width: 0; padding: 0 8px; height: 100%; }
.attach { width: 46px; text-align: center; font-size: 24px; color: #777; cursor: pointer; }
.attach input { display: none; }

.send {
    background: #2F6B5E;
    color: #fff;
    border: none;
    border-radius: 20px;
    height: 38px;
    width: 80px;
    font-family: "Baloo", Arial, sans-serif;
    cursor: pointer;
}

.send:disabled { opacity: 0.6; }
.chat-note { margin: 0 26px 10px; font-size: 10px; color: #555; }

/* Pop-ups */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 12px; }
.modal { background: #E5E5E5; border: 1px solid #000; border-radius: 24px; width: 440px; max-width: 100%; padding: 0 0 12px; overflow: hidden; }
.modal.tall { height: 520px; max-height: 90vh; display: flex; flex-direction: column; }
.modal-title { background: #A0A0A0; padding: 14px 28px; font-family: "Baloo", Arial, sans-serif; font-size: 24px; }
.modal-text { padding: 12px 28px 0; }
.modal .error { padding: 0 28px; }
.modal-search { margin: 12px 22px 6px; height: 36px; border: 1px solid gray; border-radius: 18px; background: #EEE; padding: 0 12px; font-size: 14px; }
.modal-list { flex: 1; overflow-y: auto; padding: 0 22px; display: flex; flex-direction: column; gap: 6px; }
.contact { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 22px; padding: 8px 12px; cursor: pointer; }
.contact .avatar { width: 44px; height: 44px; font-size: 14px; }
.modal-buttons { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 12px 22px 0; }
.btn-plain.right { align-self: flex-end; margin: 8px 20px 0; }
.btn-small { background: #2F6B5E; color: #fff; border: none; border-radius: 18px; padding: 8px 22px; font-family: "Baloo", Arial, sans-serif; font-size: 15px; cursor: pointer; }
.reason { display: block; width: calc(100% - 44px); margin: 8px 22px 0; padding: 10px; border: none; border-radius: 18px; background: #fff; font-family: "Baloo", Arial, sans-serif; font-size: 15px; cursor: pointer; }

@media (max-width: 900px) {
    .chat-area { grid-template-columns: 1fr; height: calc(100vh - 230px); }
    .chat-area .chat-panel { display: none; }
    .chat-area.chat-open .chat-panel { display: flex; }
    .chat-area.chat-open .convo-panel { display: none; }
    .back { display: block; }
    .chat-header { padding: 10px 14px; flex-wrap: wrap; }
    .chat-scroll, .composer { margin-left: 10px; margin-right: 10px; padding-left: 10px; padding-right: 10px; }
    .composer { padding: 0 6px; }
}

/* ---------- Modules ---------- */

.search-row { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.search { width: 220px; max-width: 100%; height: 40px; border: 1px solid gray; border-radius: 20px; background: #EEE; padding: 0 14px; font-size: 14px; }

.tabs-scroll { container-type: inline-size; overflow-x: auto; overflow-y: hidden; height: 235px; }
.tabs-row { display: flex; align-items: flex-start; width: max-content; min-width: 100%; }

.tab {
    flex: none;
    min-width: 200px;
    height: 175px;
    border-radius: 20px 0 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: height 0.25s;
    color: #000;
    text-align: center;
    padding: 0 30px;
}

.tab.selected { height: 210px; }
.tab-title { font-family: "Baloo", Arial, sans-serif; font-size: 36px; line-height: 1.1; }
.tab-sub { font-family: "Baloo", Arial, sans-serif; font-size: 15px; }

.module-panel { border: 1px solid #000; padding: 40px; margin-top: 4px; }
.module-grid { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.module-text { font-size: 16px; white-space: pre-wrap; flex: 1; min-width: 0; }
.module-download { flex-shrink: 0; }

.btn-download, .btn-green, .btn-blue, .btn-yellow, .btn-grey {
    height: 50px;
    border: none;
    border-radius: 25px;
    padding: 0 30px;
    color: #fff;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-download { background: #3F6FCF; width: 230px; }
.btn-green { background: #4CBF3F; }
.btn-blue { background: #3F6FCF; height: 45px; }
.btn-yellow { background: #E8B245; color: #262626; height: 45px; }
.btn-grey { background: #DDD; color: #262626; height: 45px; }
.btn-download:disabled, .btn-green:disabled, .btn-grey:disabled { opacity: 0.6; cursor: default; }

.preview-frame { width: 100%; height: 600px; border: 1px solid #ccc; margin-top: 20px; }
.preview-image { max-width: 100%; max-height: 420px; display: block; margin: 16px auto; object-fit: contain; }

/* ---------- Activities ---------- */

.act-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid #bbb; background: #fff; border-radius: 16px; padding: 5px 14px; font-family: "Baloo", Arial, sans-serif; font-size: 13px; cursor: pointer; }
.chip.on { background: #262626; color: #fff; border-color: #262626; }

.darkbar { display: flex; align-items: center; gap: 12px; background: #262626; color: #fff; border-radius: 12px; padding: 10px 25px; margin-bottom: 12px; }
.darkbar-title { font-family: "Baloo", Arial, sans-serif; font-size: 42px; line-height: 1.2; margin-right: auto; }
.overall-text { font-family: "Baloo", Arial, sans-serif; font-size: 14px; text-align: right; }
.overall { font-family: "Baloo", Arial, sans-serif; font-size: 56px; line-height: 1; }
.back-circle { width: 50px; height: 50px; border-radius: 50%; border: none; background: #DDD; color: #262626; font-size: 22px; cursor: pointer; }
.darkbar .back-circle + .darkbar-title { margin-right: auto; }

.module-head { display: flex; align-items: center; gap: 10px; font-family: "Baloo", Arial, sans-serif; font-size: 16px; margin: 18px 0 8px; }
.module-head .line { flex: 1; border-top: 1px solid #000; }

.act-wrap { position: relative; padding-top: 6px; margin-bottom: 10px; }
.new-tag { position: absolute; left: 26px; top: 0; z-index: 2; height: 24px; line-height: 24px; padding: 0 12px; border-radius: 12px; background: #F08A7A; font-family: "Baloo", Arial, sans-serif; font-size: 13px; pointer-events: none; }

.act-card { display: grid; grid-template-columns: 30px 3fr 3fr auto; gap: 15px; align-items: center; border-radius: 40px; padding: 8px 8px 8px 20px; cursor: pointer; }
.act-card.dim { opacity: 0.5; cursor: default; }
.act-check { font-size: 18px; }
.act-title { font-family: "Baloo", Arial, sans-serif; font-size: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-info { font-family: "Baloo", Arial, sans-serif; }
.act-desc { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.act-dates { font-size: 10px; }

/* Badge on the left with the VIEW pill over its right end */
.act-pill { position: relative; width: 300px; height: 50px; flex-shrink: 0; }
.badge {
    width: 190px;
    height: 50px;
    border-radius: 24px 0 24px 0;
    box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 20px;
    text-align: center;
    line-height: 1;
}

.badge span { margin-right: 20px; }
.badge.wide { width: 300px; border-radius: 24px; }
.act-pill .badge span { font-size: 17px; }
.view-btn {
    position: absolute;
    right: 0;
    top: 1px;
    width: 130px;
    height: 48px;
    border: none;
    border-radius: 24px;
    color: #fff;
    font-family: "Baloo", Arial, sans-serif;
    font-size: 24px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.detail-card { border-radius: 40px; padding: 25px; display: flex; flex-direction: column; gap: 20px; }
.detail-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; align-items: center; }
.detail-title { font-family: "Baloo", Arial, sans-serif; font-size: 26px; }
.detail-desc { font-size: 14px; }
.detail-badges { position: relative; width: 320px; max-width: 100%; height: 50px; }
.detail-badges .badge span.pad { margin-right: 20px; }
.detail-badges .badge span:not(.pad) { margin-right: 0; }
.remark { position: absolute; right: 0; top: 1px; width: 150px; height: 48px; border-radius: 24px; background: #4FB9C2; color: #fff; display: flex; align-items: center; justify-content: center; font-family: "Baloo", Arial, sans-serif; font-size: 24px; box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
.remark.small { font-size: 16px; }

.feedback { background: #fff; border-radius: 24px 24px 0 0; padding: 14px 22px; font-family: "Baloo", Arial, sans-serif; font-size: 15px; }
.feedback-title { color: #2F6B5E; font-size: 16px; }

.white-box { background: #fff; padding: 25px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.white-box.submission { border-radius: 0 0 24px 24px; }
.sub-title { font-family: "Baloo", Arial, sans-serif; font-size: 22px; }
.sub-title.small { font-size: 20px; }
.small-text { font-size: 14px; }
.sub-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.file-btn { position: relative; cursor: pointer; }
.file-btn input { display: none; }
.success { color: #2F6B5E; margin: 0; }
.preview-panel { width: 100%; background: #FAFAFA; border: 1px solid #ccc; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.preview-name { font-family: "Baloo", Arial, sans-serif; font-size: 16px; }
.attempt-note { font-family: "Baloo", Arial, sans-serif; font-size: 14px; margin: 0; }
.sub-view { width: 100%; }

@media (max-width: 900px) {
    .act-card { grid-template-columns: 24px 1fr; border-radius: 28px; padding: 12px; }
    .act-info, .act-pill { grid-column: 1 / -1; }
    .act-pill { width: 100%; max-width: 300px; }
    .darkbar-title { font-size: 30px; }
    .overall { font-size: 40px; }
    .module-panel { padding: 20px; }
    .module-grid { flex-direction: column; }
    .tab-title { font-size: 28px; }
}

/* ---------- Home (same as the app) ---------- */
.home-grid { display: grid; grid-template-columns: 1fr 280px; gap: 25px; align-items: start; margin-top: 25px; }
.continue { display: grid; grid-template-columns: 1fr 2fr; height: 190px; cursor: pointer; margin-bottom: 10px; }
.continue-left { margin: 30px -33px 0 0; border-radius: 30px 0 0 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; z-index: 1; font-family: "Baloo", Arial, sans-serif; padding: 0 10px; }
.continue-left .small { font-size: 20px; }
.continue-left .big { font-size: 38px; line-height: 1.1; }
.continue-right { position: relative; margin-left: 30px; border-radius: 30px 0 30px 0; background: #E9B446; }
.continue-sub { font-family: "Baloo", Arial, sans-serif; font-size: 18px; line-height: 1.2; padding: 38px 30px 4px 66px; }
.continue-content { font-family: "Baloo", Arial, sans-serif; font-size: 13px; line-height: 1.25; color: #3A3A3A; padding: 0 30px 0 66px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.go-badge { position: absolute; right: 28px; bottom: 22px; width: 92px; height: 28px; border-radius: 14px 0 14px 0; background: #2E9E4A; color: #fff; font-family: "Baloo", Arial, sans-serif; font-size: 14px; display: flex; align-items: center; justify-content: center; }

.notes-box { background: #8DD3D1; border-radius: 4px; padding: 20px; min-height: 300px; box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25); display: flex; flex-direction: column; gap: 12px; }
.notes-box h3 { margin: 0; text-align: center; font-family: "Baloo", Arial, sans-serif; font-size: 18px; font-weight: normal; }
.note-item { font-family: "Baloo", Arial, sans-serif; font-size: 13px; cursor: pointer; }
.note-time { font-size: 10px; color: dimgray; margin-left: 10px; }

.announce { background: #EAF4F1; border-radius: 12px; padding: 12px 18px; margin-bottom: 10px; cursor: pointer; }
.announce.past { background: #E4E4E4; }
.announce.past > :not(.announce-top), .announce.past .announce-cat, .announce.past .announce-heart, .announce.past .muted { opacity: .55; }
.announce-top { display: flex; align-items: center; gap: 8px; }
.announce-cat { color: #fff; border-radius: 10px; padding: 2px 10px; font-family: "Baloo", Arial, sans-serif; font-size: 11px; }
.announce-heart { font-size: 12px; }
.announce-title { font-family: "Baloo", Arial, sans-serif; font-size: 18px; }
.announce-body { font-size: 14px; white-space: pre-wrap; }
.announce-line { font-family: "Baloo", Arial, sans-serif; font-size: 13px; }
.announce-for { font-family: "Baloo", Arial, sans-serif; font-size: 12px; color: #2F6B5E; }
.announce-by { font-size: 11px; color: dimgray; }

@media (max-width: 900px) {
    .home-grid { grid-template-columns: 1fr; }
    .continue-left .big { font-size: 26px; }
    .continue-sub { padding-left: 50px; font-size: 15px; }
    .continue-content { padding-left: 50px; }
}

/* ---------- Profile ---------- */
a.user { color: inherit; text-decoration: none; }
.profile-banner { height: 270px; border: 1px solid #000; border-radius: 4px; overflow: hidden; }
.profile-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-head { display: flex; align-items: flex-end; gap: 20px; margin: -90px 0 0 70px; }
.profile-avatar { width: 210px; height: 210px; flex: none; border-radius: 50%; background: #5E8E7B; border: 3px solid #fff; color: #fff; font-family: "Baloo", Arial, sans-serif; font-size: 70px; display: flex; align-items: center; justify-content: center; }
.profile-name { font-family: "Baloo", Arial, sans-serif; margin-bottom: 20px; }
.profile-name .n { font-size: 30px; }
.profile-name .l { font-size: 16px; }
.profile-tabs { display: flex; margin: 20px 0 0 20px; }
.profile-tab { width: 120px; height: 26px; border: none; border-radius: 13px; background: transparent; color: #000; font-family: "Baloo", Arial, sans-serif; font-size: 11px; cursor: pointer; }
.profile-tab.on { background: #1F3D4A; color: #fff; }
.profile-line { border: none; border-top: 1px solid #555; margin: 8px 0 12px; }
.profile-content { padding: 0 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.profile-content h4 { margin: 0; font-family: "Baloo", Arial, sans-serif; font-size: 17px; font-weight: normal; }
.profile-content .indent { margin-left: 14px; }
.profile-content input.field { width: 360px; max-width: 100%; margin-left: 14px; }
.profile-content .btn-save { background: #4CBF3F; color: #fff; border: none; border-radius: 20px; height: 40px; width: 170px; margin: 6px 0 0 14px; font-family: "Baloo", Arial, sans-serif; cursor: pointer; }

@media (max-width: 900px) {
    .profile-head { margin-left: 10px; flex-direction: column; align-items: flex-start; }
    .profile-avatar { width: 140px; height: 140px; font-size: 48px; }
    .profile-tab { width: 80px; }
}

/* ---------- Help and text size ---------- */
main { zoom: var(--text-zoom, 1); }

.help-top { background: #F4F4F4; border-radius: 12px; padding: 12px 25px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.help-top .t { font-family: "Baloo", Arial, sans-serif; font-size: 18px; }
.help-top .s { font-family: "Baloo", Arial, sans-serif; font-size: 12px; color: #555; }
.help-item { border-radius: 12px; overflow: hidden; box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25); margin-bottom: 10px; }
.help-q { background: #262626; color: #fff; padding: 18px 25px; font-family: "Baloo", Arial, sans-serif; font-size: 18px; cursor: pointer; }
.help-a { background: #5A5754; color: #fff; padding: 14px 25px; display: flex; gap: 30px; align-items: center; font-family: "Baloo", Arial, sans-serif; font-size: 14px; }
.help-a .text { flex: 1; }
.video-thumb { width: 200px; height: 112px; flex: none; background: #15181C; border: 2px solid #fff; border-radius: 2px; position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play { position: relative; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.video-note { color: #fff; font-size: 12px; margin-top: 6px; }

@media (max-width: 900px) {
    .help-a { flex-direction: column; align-items: flex-start; }
}

/* ---------- Log out confirmation ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal-card { background: #fff; border-radius: 16px; padding: 24px 28px; width: 360px; max-width: 100%; }
.modal-title { font-family: "Baloo", Arial, sans-serif; font-size: 22px; }
.modal-buttons { display: flex; justify-content: flex-end; gap: 12px; }
.btn-logout { height: 45px; border: none; border-radius: 25px; padding: 0 28px; background: #C0504D; color: #fff; font-family: "Baloo", Arial, sans-serif; font-size: 16px; cursor: pointer; }

/* ---------- Landing page (one page, three sections, one header) ---------- */
.landing { background: #fff; position: relative; overflow-x: clip; font-family: "Century Gothic", "Questrial", "Segoe UI", Arial, sans-serif; color: #000; }
.landing h1, .landing h2 { font-family: inherit; font-weight: normal; }
.land-art { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; z-index: 0; pointer-events: none; }

/* The header stays at the top while scrolling; it sits over the first section (negative bottom margin) */
.land-header { position: sticky; top: 0; z-index: 10; height: 120px; margin-bottom: -120px; background: rgba(255, 255, 255, 0.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: space-between; padding: 0 4vw; }
.land-logo { height: 70px; max-width: 55vw; object-fit: contain; }
.land-nav { display: flex; align-items: center; gap: 50px; margin-right: 4vw; }
.land-link { background: none; border: none; font-family: "Segoe UI", Arial, sans-serif; font-size: 18px; cursor: pointer; color: #000; }
.land-login { background: #4BB6D6; color: #fff; border: none; border-radius: 18px; width: 150px; height: 34px; font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; cursor: pointer; }

.hero { position: relative; min-height: clamp(520px, 67.5vw, 900px); }
.hero-text { position: absolute; z-index: 2; left: 4vw; top: clamp(190px, 24vw, 360px); max-width: 52vw; }
.hero-small { font-size: clamp(18px, 1.9vw, 30px); line-height: 1.15; margin: 0; }
.hero-big { font-size: clamp(48px, 6vw, 100px); line-height: 1.05; margin: 0 0 16px; }
.learn-more { background: #E9A51B; color: #fff; border: none; border-radius: 18px; width: 18.3vw; min-width: 200px; height: 34px; font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; cursor: pointer; }

.faq-slide { position: relative; min-height: clamp(380px, 38.8vw, 560px); padding: 7vw 4vw 4vw 9.7vw; }
.faq-body { position: relative; z-index: 2; }
.faq-body h2 { font-size: clamp(28px, 3.4vw, 52px); margin: 0 0 4vw; }
.faq-list { padding-left: 8.3vw; max-width: 1100px; }
.faq-item { margin-bottom: 1.6vw; }
.faq-q { font-size: clamp(17px, 1.85vw, 28px); font-weight: bold; cursor: pointer; line-height: 1.3; }
.faq-a { font-size: clamp(15px, 1.5vw, 20px); color: #333; margin-top: 6px; max-width: 800px; line-height: 1.5; }

.about-slide { position: relative; min-height: clamp(520px, 62.4vw, 800px); padding: 28vw 4vw 6vw 0; }
.about-body { position: relative; z-index: 2; }
.about-body h2 { font-size: clamp(34px, 5vw, 80px); margin: 0 0 3vw; text-align: center; padding-left: 8.8vw; }
.about-row { display: flex; align-items: center; gap: 1vw; margin-left: 25vw; }
.about-row p { flex: 1; font-size: clamp(18px, 2.5vw, 38px); line-height: 1.2; margin: 0; max-width: 65vw; }
.about-next { background: none; border: none; font-size: clamp(40px, 5vw, 80px); font-weight: 100; cursor: pointer; color: #444; line-height: 1; margin-left: auto; margin-right: 2vw; }
.about-tabs { display: flex; gap: 2.8vw; margin: 3vw 0 0 16.7vw; }
.about-tab { width: 18.3vw; min-width: 150px; height: 36px; border: none; border-radius: 24px 12px 6px 6px; background: #5A8B6E; color: #fff; font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; cursor: pointer; }
.about-tab.on { background: #3F6F55; }
.land-footer { position: relative; text-align: center; padding: 20px; font-size: 14px; color: #666; }

@media (max-width: 900px) {
    .land-header { height: auto; min-height: 90px; flex-wrap: wrap; gap: 8px; padding: 10px 16px; margin-bottom: 0; }
    .land-nav { gap: 14px; flex-wrap: wrap; margin-right: 0; }
    .land-link { font-size: 15px; }
    .land-login { width: 100px; }
    .hero { min-height: 460px; }
    .hero-text { position: relative; left: 0; top: 0; max-width: none; padding: 40px 16px; }
    .land-art { opacity: 0.35; }
    .faq-slide { padding: 40px 16px; }
    .faq-list { padding-left: 0; }
    .faq-item { margin-bottom: 16px; }
    .about-slide { padding: 40px 16px 60px; }
    .about-body h2 { padding-left: 0; }
    .about-row { margin-left: 0; }
    .about-row p { max-width: none; }
    .about-tabs { margin-left: 0; flex-wrap: wrap; gap: 12px; }
}

.faq-slide, .about-slide { scroll-margin-top: 40px; }

/* ---------- Admin dashboard ---------- */
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 25px; }
.dash-card { background: #EAF4F1; border-radius: 12px; padding: 16px 18px; box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2); }
.dash-num { font-family: "Baloo", Arial, sans-serif; font-size: 34px; line-height: 1; }
.dash-label { font-family: "Baloo", Arial, sans-serif; font-size: 15px; margin-bottom: 6px; }
.dash-line { font-size: 12px; color: #333; }
.dash-title { font-family: "Baloo", Arial, sans-serif; font-weight: normal; margin: 26px 0 8px; }
.dash-log { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash-log th, .dash-log td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #ddd; }
.dash-log td.ok { color: #2E9E4A; }
.dash-log td.bad { color: #C0504D; }

/* ---------- Staff pages (Progress Report list and editor) ---------- */
.sp-tools { margin-top: 18px; }
.sp-search { max-width: 380px; }
.sp-levels { margin: 14px 0; }
.sp-list tr.clickable { cursor: pointer; }
.sp-list tr.clickable:hover td { background: #EAF4F1; }
.pill.edit-on { background: #7ED67A; color: #1b1b1b; }
.cell-input { width: 46px; text-align: center; border: 1px solid #999; border-radius: 4px; padding: 3px; font-size: 13px; }
.cell-select { border: 1px solid #999; border-radius: 4px; padding: 3px; font-size: 13px; background: #fff; }
.sp-savebar { display: flex; justify-content: flex-end; gap: 12px; margin: 20px 0 40px; }
.sp-save { width: auto; padding: 0 28px; }
.ok-text { color: #2E9E4A; margin: 10px 0 0; }

/* ---------- Staff: modules and activities ---------- */
.st-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.st-search { max-width: 320px; }
.st-select { max-width: 220px; }
.st-add { width: auto; margin-top: 0; padding: 0 22px; height: 40px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 18px; }
.st-card { border-radius: 12px; overflow: hidden; box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25); background: #fff; display: flex; flex-direction: column; }
.st-card-top { padding: 14px 16px; color: #fff; min-height: 84px; }
.st-card-title { font-family: "Baloo", Arial, sans-serif; font-size: 20px; line-height: 1.1; }
.st-card-sub { font-size: 12px; opacity: 0.95; }
.st-card-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.st-tag { align-self: flex-start; background: #fff4d6; border-radius: 8px; padding: 1px 8px; font-size: 11px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pill.danger { background: #C0504D; }
.st-group { color: #fff; font-family: "Baloo", Arial, sans-serif; font-size: 18px; padding: 6px 14px; border-radius: 8px; margin: 22px 0 6px; }
.st-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.st-desc { white-space: pre-wrap; }
.st-grade td { vertical-align: top; }
.cell-input.wide { width: 100%; min-width: 160px; text-align: left; }
.st-file-small { font-size: 11px; max-width: 180px; margin-top: 4px; }
.modal-card.wide { width: 640px; max-height: 90vh; overflow-y: auto; }
.modal-card.wide label { display: block; margin: 10px 0 4px; font-size: 13px; color: #444; }
.modal-card.wide .field { width: 100%; }
.modal-card.preview { width: 820px; max-height: 92vh; }
.st-preview { width: 100%; height: 62vh; border: 1px solid #ccc; object-fit: contain; }
.st-text { height: auto; padding: 8px 10px; font-family: inherit; resize: vertical; }
.st-colors { display: flex; gap: 8px; }
.st-color { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.st-color.chosen { border-color: #1F3D4A; box-shadow: 0 0 0 2px #fff inset; }
.st-radios { display: flex; flex-wrap: wrap; gap: 16px; }
.modal-card.wide .st-radios label, .modal-card.wide .st-checks label, .modal-card.wide label.st-inline { display: flex; align-items: center; gap: 6px; margin: 4px 0; color: #222; }
.st-checks { max-height: 170px; overflow-y: auto; border: 1px solid #ddd; border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.st-checks.inline { max-height: none; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.st-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

/* ---------- Staff: registration and people ---------- */
.reg-tabs { margin: 16px 0 4px; }
.reg-grid label, .pe-card label, .reg-label { display: block; margin: 10px 0 4px; font-size: 13px; color: #444; }
.reg-grid .field, .pe-card .field { width: 100%; }
.reg-pass { display: flex; gap: 8px; align-items: center; }
.reg-pass .field { flex: 1; }
.reg-done { max-width: 520px; margin: 30px auto; text-align: center; }
.reg-box { background: #EAF4F1; border-radius: 12px; padding: 12px 18px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.reg-box span { display: block; font-size: 12px; color: #555; }
.pe-card { background: #F6FAF9; border-radius: 12px; padding: 12px 16px 16px; margin: 12px 0; }
.pe-title { font-family: "Baloo", Arial, sans-serif; font-size: 18px; }
.pe-suggest-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pe-link { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.pe-gap { width: 16px; }
.db-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 20px; }
.db-item { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 2px 0; }
.db-label { display: block; margin: 10px 0 4px; font-size: 13px; color: #444; }

/* ---- Stage 5: announcements, sections, message reports, admins, audit ---- */
.no-pointer { cursor: default; }
.grow { flex: 1; }
.seg { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.seg button { border: none; border-radius: 16px; padding: 6px 16px; background: #DCEBE8; color: #1F3D4A; font-family: "Baloo", Arial, sans-serif; cursor: pointer; }
.seg button.on { background: #1F3D4A; color: #fff; }

.sec-level { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 8px; font-family: "Baloo", Arial, sans-serif; font-size: 20px; }
.sec-card { background: #EAF4F1; border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px; cursor: pointer; }
.sec-name { font-family: "Baloo", Arial, sans-serif; font-size: 17px; }
.sec-body { padding: 4px 18px 14px; }
.sec-sub { font-family: "Baloo", Arial, sans-serif; margin: 14px 0 4px; color: #2F6B5E; }
.sec-member { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; }
.pick-list { max-height: 320px; overflow-y: auto; margin-top: 10px; }

.rep-card, .acct-card, .convo-row { background: #EAF4F1; border-radius: 12px; padding: 12px 18px; margin-bottom: 10px; }
.rep-card.open { border-left: 5px solid #E06F63; }
.rep-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rep-status { border-radius: 10px; padding: 1px 10px; font-size: 12px; background: #DCE3E6; color: #1F3D4A; font-family: "Baloo", Arial, sans-serif; }
.rep-status.bad { background: #E06F63; color: #fff; }
.rep-status.good { background: #6DB890; color: #fff; }
.rep-reason { margin-top: 6px; }
.rep-body { margin-top: 4px; font-style: italic; color: #333; }
.acct-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.convo-row { cursor: pointer; }
.convo-last { font-size: 13px; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-box { max-height: 55vh; overflow-y: auto; background: #F4F8F7; border-radius: 10px; padding: 8px 12px; }
.thread-msg { padding: 6px 0; border-bottom: 1px solid #DCEBE8; white-space: pre-wrap; }

.audit-row { background: #EAF4F1; border-radius: 10px; padding: 8px 14px; margin-bottom: 6px; }
.audit-row.failed { background: #FBE7E4; }
.audit-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 16px 0; }

/* Pop-up cards: plain title (no grey bar) and buttons that fit their text */
.modal-card .modal-title { background: none; padding: 0 0 10px; }
.modal-card .modal-buttons { flex-wrap: wrap; align-items: center; padding: 14px 0 0; }
.modal-card .modal-buttons .btn-main { width: auto; min-width: 110px; height: 45px; margin-top: 0; padding: 0 24px; border-radius: 25px; font-size: 16px; white-space: nowrap; }
.modal-card .modal-buttons .btn-grey, .modal-card .modal-buttons .btn-logout { white-space: nowrap; }

/* Faint diagonal watermark over the report card and the domain sheets */
.pr-wm { position: relative; }
.pr-wm::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background-repeat: repeat;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='280'><text x='240' y='140' text-anchor='middle' transform='rotate(-30 240 140)' font-family='Arial, sans-serif' font-size='20' fill='%23000000' fill-opacity='0.09'>Property of Kapitbahayan Elementary School</text></svg>");
}

/* Search boxes: the same magnifier icon as the app */
input[placeholder^="Find"], input[placeholder^="Search"] {
  padding-left: 36px;
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23555555' stroke-width='1.8' stroke-linecap='round'><circle cx='6.5' cy='6.5' r='4.5'/><line x1='10' y1='10' x2='14.5' y2='14.5'/></svg>");
}

/* Close button at the top of the Add / Update pop-ups */
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: -24px; background: #fff; z-index: 1; padding: 4px 0; }
.modal-card .modal-head .modal-title { padding: 0; }
.modal-x { border: none; background: transparent; font-size: 22px; line-height: 1; width: 36px; height: 36px; border-radius: 18px; cursor: pointer; color: #222; }
.modal-x:hover { background: #EEE; }
.audio-player { display: block; width: 100%; max-width: 480px; margin-top: 14px; }

/* Buttons on the Admins cards: a dark background so the white text can be read (Disable/Delete keep their red) */
.acct-card .pill { background: #1F3D4A; }
.acct-card .pill.danger { background: #C0504D; }
