:root {
  --background: #fff; --foreground: #2c3440; --card: #fff; --card-foreground: #2c3440;
  --popover: #fff; --popover-foreground: #2c3440; --primary: #4774b4; --primary-foreground: #fff;
  --secondary: #f2f6fb; --secondary-foreground: #315d99; --muted: #f4f6f8; --muted-foreground: #69727e;
  --accent: #eaf1fa; --accent-foreground: #315d99; --destructive: #bd3434; --border: #dfe5eb;
  --input: #d9e0e7; --ring: #4774b4; --radius: .55rem;
}
* { box-sizing: border-box; }
html { background: #fff; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: Arial, Helvetica, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.login-page { min-height: 100vh; padding: 26px; background: #f3f6f9; }
.login-shell { min-height: calc(100vh - 52px); max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(430px,.85fr); overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 18px 70px rgba(41,57,76,.11); }
.brand-panel { position: relative; display: flex; min-height: 650px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 56px 64px; color: #fff; background: linear-gradient(145deg,#2f5f9d 0%,#4778b7 55%,#6e94c5 100%); }
.brand-panel::before { content: ""; position: absolute; width: 620px; height: 620px; right: -220px; bottom: -260px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 75px rgba(255,255,255,.035),0 0 0 150px rgba(255,255,255,.025); }
.login-logo { position: relative; z-index: 1; width: min(390px,78%); height: auto; filter: brightness(0) invert(1); }
.brand-copy { position: relative; z-index: 1; max-width: 650px; margin: auto 0; padding: 80px 0 56px; }
.eyebrow, .section-kicker { display: block; margin: 0 0 12px; color: #4774b4; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.brand-copy .eyebrow { color: rgba(255,255,255,.73); }
.brand-copy h1 { max-width: 620px; margin: 0 0 24px; font-size: clamp(2.4rem,4vw,4.65rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; }
.brand-copy p { max-width: 580px; margin: 0; color: rgba(255,255,255,.82); font-size: 1.1rem; line-height: 1.75; }
.brand-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin: 0; color: rgba(255,255,255,.72); font-size: .88rem; }
.login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 54px clamp(38px,6vw,92px); }
.login-card { width: 100%; max-width: 500px; }
.login-heading { display: flex; align-items: center; gap: 17px; }
.login-icon, .card-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; color: #4774b4; background: #edf3fa; border-radius: 50%; }
.login-heading .section-kicker { margin-bottom: 5px; }
.login-heading h2, .page-content h1, .latest-panel h2, .admin-card h2 { margin: 0; color: #27313d; letter-spacing: -.025em; }
.login-heading h2 { font-size: 2rem; font-weight: 600; }
.login-intro { margin: 26px 0 30px; color: #69727d; line-height: 1.65; }
.login-form { display: grid; gap: 20px; }
.login-form label, .admin-form label { display: grid; gap: 9px; color: #3d4651; font-size: .89rem; font-weight: 700; }
.login-form input, .admin-form input, .admin-form select, .admin-form textarea { width: 100%; min-height: 50px; border: 1px solid #d9e0e7; border-radius: 8px; background: #fff; padding: 0 15px; color: #2c3440; outline: none; transition: border .2s,box-shadow .2s; }
.admin-form textarea { min-height: 92px; padding-top: 13px; resize: vertical; }
.login-form input:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: #4774b4; box-shadow: 0 0 0 3px rgba(71,116,180,.11); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 52px; }
.password-field button { position: absolute; top: 50%; right: 10px; display: grid; place-items: center; border: 0; background: none; transform: translateY(-50%); cursor: pointer; color: #6e7782; }
.primary-button { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 8px; background: #4774b4; color: #fff; font-weight: 750; cursor: pointer; transition: background .2s,transform .2s; }
.primary-button:hover { background: #365f98; transform: translateY(-1px); }
.login-error { margin: -6px 0 0; color: #ac3232; font-size: .88rem; }
.support-copy { margin: 30px 0 0; color: #89919a; font-size: .8rem; text-align: center; }

.app-shell { min-height: 100vh; background: #f5f7f9; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 270px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid #e1e6eb; }
.sidebar-head { height: 112px; display: flex; align-items: center; padding: 26px 30px; border-bottom: 1px solid #edf0f3; }
.sidebar-head img { width: 206px; height: auto; }
.sidebar nav { display: grid; gap: 7px; padding: 28px 18px; }
.sidebar nav a { position: relative; min-height: 51px; display: flex; align-items: center; gap: 14px; border-radius: 8px; padding: 0 15px; color: #626c78; text-align: left; text-decoration: none; font-weight: 650; }
.sidebar nav a:hover { color: #315d99; background: #f4f7fb; }
.sidebar nav a.active { color: #315d99; background: #ecf2f9; }
.sidebar nav a.active::before { content: ""; position: absolute; left: 0; height: 25px; width: 3px; border-radius: 0 3px 3px 0; background: #4774b4; }
.nav-icon { width: 23px; display: inline-grid; place-items: center; font-size: 1.1rem; }
.sidebar-user { margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 22px 20px; border-top: 1px solid #edf0f3; }
.avatar { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #4774b4; font-size: .75rem; font-weight: 800; }
.sidebar-user div { min-width: 0; display: grid; gap: 2px; }
.sidebar-user strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
.sidebar-user small { color: #9098a0; font-size: .7rem; }
.sidebar-user button { margin-left: auto; display: grid; place-items: center; border: 0; background: none; color: #7b848d; cursor: pointer; }
.content-shell { min-height: 100vh; margin-left: 270px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: flex-end; padding: 0 clamp(24px,4vw,64px); background: rgba(255,255,255,.92); border-bottom: 1px solid #e5e9ed; }
.topbar > div { display: none; }
.menu-button, .mobile-close { display: none; }
.logout-mobile { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: #69727e; cursor: pointer; font-size: .86rem; font-weight: 700; }
.page-content { max-width: 1340px; margin: 0 auto; padding: clamp(40px,5vw,72px) clamp(28px,5vw,72px) 80px; }
.welcome-row { display: grid; grid-template-columns: 1.4fr .75fr; gap: 70px; align-items: end; margin-bottom: 48px; }
.welcome-row h1, .page-heading h1 { font-size: clamp(2.2rem,3.7vw,4.1rem); line-height: 1.05; font-weight: 520; }
.welcome-row > p { margin: 0 0 3px; color: #747d87; line-height: 1.72; }
.action-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.action-card { position: relative; min-height: 250px; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; border: 1px solid #dfe5ea; border-radius: 12px; background: #fff; padding: 25px; text-align: left; cursor: pointer; transition: border .2s,box-shadow .2s,transform .2s; }
.action-card:hover { border-color: #a9bdd8; box-shadow: 0 13px 35px rgba(48,68,91,.09); transform: translateY(-3px); }
.card-number { position: absolute; top: 22px; right: 24px; color: #a3abb4; font-size: .75rem; letter-spacing: .08em; }
.action-card .card-icon { width: 52px; height: 52px; }
.card-copy { display: grid; gap: 9px; margin-top: auto; padding-top: 32px; }
.card-copy strong { color: #2e3741; font-size: 1.12rem; line-height: 1.28; }
.card-copy small { color: #7b848e; font-size: .81rem; line-height: 1.5; }
.card-arrow { position: absolute; right: 22px; bottom: 22px; color: #4774b4; opacity: 0; transform: translate(-5px,5px); transition: .2s; }
.action-card:hover .card-arrow { opacity: 1; transform: translate(0); }
.latest-panel { margin-top: 50px; border-top: 1px solid #dce2e8; padding-top: 34px; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-heading h2 { font-size: 1.65rem; font-weight: 600; }
.panel-heading a { display: flex; align-items: center; gap: 4px; color: #4774b4; text-decoration: none; font-weight: 700; }
.latest-list { display: grid; border: 1px solid #dfe5ea; border-radius: 10px; background: #fff; overflow: hidden; }
.latest-list a { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; min-height: 82px; padding: 13px 21px; color: inherit; text-decoration: none; border-bottom: 1px solid #edf0f3; }
.latest-list a:last-child { border: 0; }
.latest-list a:hover { background: #f8fafc; }
.file-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: #edf3fa; color: #4774b4; }
.latest-list a > span:nth-child(2) { display: grid; gap: 5px; }
.latest-list strong { font-size: .92rem; }
.latest-list small { color: #858e97; font-size: .76rem; }
.latest-list a > svg { color: #9ba3ab; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 44px; margin-bottom: 42px; }
.page-heading > div { max-width: 710px; }
.page-heading h1 { margin-bottom: 17px; }
.page-heading p:not(.section-kicker) { margin: 0; color: #747d87; line-height: 1.65; }
.search-box { width: min(360px,100%); min-height: 48px; display: flex; align-items: center; gap: 10px; border: 1px solid #d9e0e6; border-radius: 8px; background: #fff; padding: 0 14px; color: #78828c; }
.search-box input { width: 100%; border: 0; outline: 0; color: #303945; }
.document-table { border: 1px solid #dfe5ea; border-radius: 11px; background: #fff; overflow: hidden; }
.table-header, .document-row { display: grid; grid-template-columns: minmax(300px,2fr) 1fr 1fr .85fr 32px; align-items: center; gap: 20px; }
.table-header { min-height: 49px; padding: 0 22px; background: #f2f5f8; color: #7d8791; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.document-row { min-height: 88px; padding: 13px 22px; border-top: 1px solid #edf0f3; color: #67717b; text-decoration: none; font-size: .82rem; }
.document-row:hover { background: #f9fbfd; }
.document-title { display: flex; align-items: center; gap: 13px; color: #303943; }
.document-title strong { line-height: 1.4; }
.document-row em { display: inline-flex; border-radius: 50px; background: #edf3fa; padding: 6px 9px; color: #406fae; font-style: normal; font-size: .72rem; font-weight: 700; }
.download-icon { display: grid; place-items: center; color: #4774b4; }
.empty-state { padding: 50px; color: #7d8790; text-align: center; }
.video-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 23px; }
.video-card { overflow: hidden; border: 1px solid #dfe5ea; border-radius: 11px; background: #fff; }
.video-cover { position: relative; width: 100%; aspect-ratio: 16/9; display: grid; place-items: center; border: 0; background: linear-gradient(135deg,#315e99,#668fc2); color: #fff; cursor: pointer; }
.video-cover::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.18); }
.video-index { position: absolute; top: 22px; left: 24px; z-index: 1; color: rgba(255,255,255,.65); font-size: .78rem; letter-spacing: .12em; }
.video-cover small { position: absolute; right: 21px; bottom: 18px; z-index: 1; border-radius: 4px; background: rgba(20,37,61,.66); padding: 4px 7px; }
.play-button { position: relative; z-index: 1; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #4774b4; box-shadow: 0 8px 25px rgba(23,42,70,.25); transition: transform .2s; }
.video-cover:hover .play-button { transform: scale(1.07); }
.video-card > div { padding: 24px; }
.video-card h2 { margin: 0 0 12px; color: #2d3640; font-size: 1.12rem; line-height: 1.35; }
.video-card p { min-height: 69px; margin: 0 0 17px; color: #737c86; font-size: .87rem; line-height: 1.65; }
.video-card div button { display: flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: #4774b4; font-weight: 750; cursor: pointer; }
.modal-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(24,33,44,.58); backdrop-filter: blur(4px); }
.video-modal { position: relative; width: min(720px,100%); border-radius: 12px; background: #fff; padding: 18px 18px 28px; box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.modal-close { position: absolute; z-index: 2; top: 28px; right: 28px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #34404c; cursor: pointer; }
.video-placeholder { aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-radius: 8px; background: linear-gradient(135deg,#2c568d,#638bbe); color: #fff; text-align: center; }
.video-placeholder span { font-weight: 750; }
.video-placeholder small { max-width: 410px; color: rgba(255,255,255,.7); }
.video-modal h2 { margin: 24px 8px 9px; font-size: 1.4rem; }
.video-modal > p { margin: 0 8px; color: #707983; line-height: 1.6; }
.admin-heading { align-items: center; }
.admin-badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 50px; background: #eaf2ec; padding: 10px 14px; color: #42704d; font-size: .8rem; font-weight: 750; }
.tab-switch { display: flex; gap: 7px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid #dce2e8; }
.tab-switch button { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 7px; background: transparent; padding: 11px 15px; color: #6e7882; cursor: pointer; font-weight: 700; }
.tab-switch button.active { background: #eaf1f9; color: #3f6eaa; }
.success-notice { width: 100%; display: flex; align-items: center; justify-content: space-between; margin: 0 0 22px; border: 1px solid #bad5c0; border-radius: 8px; background: #eff7f1; padding: 13px 16px; color: #376541; cursor: pointer; text-align: left; }
.admin-grid { display: grid; grid-template-columns: minmax(360px,.85fr) minmax(450px,1.15fr); gap: 24px; align-items: start; }
.admin-card { border: 1px solid #dfe5ea; border-radius: 11px; background: #fff; padding: 27px; }
.admin-card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }
.admin-card-heading .card-icon { width: 44px; height: 44px; }
.admin-card h2 { font-size: 1.1rem; }
.admin-card-heading p { margin: 5px 0 0; color: #858e97; font-size: .79rem; }
.admin-form { display: grid; gap: 17px; }
.admin-form select { appearance: auto; }
.file-drop { position: relative; min-height: 125px; place-items: center; align-content: center; border: 1px dashed #aebfd4; border-radius: 8px; background: #f8fafc; color: #4774b4 !important; cursor: pointer; text-align: center; }
.file-drop span { color: #89929c; font-size: .75rem; font-weight: 400; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.content-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 25px; }
.content-stats div { display: grid; gap: 3px; border-radius: 8px; background: #f3f6f9; padding: 14px; }
.content-stats strong { color: #315f9b; font-size: 1.45rem; }
.content-stats span { color: #818a94; font-size: .72rem; }
.admin-list, .users-list { display: grid; }
.admin-list > div, .users-list > div { display: flex; align-items: center; gap: 12px; min-height: 65px; border-top: 1px solid #edf0f3; }
.admin-list > div > span:nth-child(2), .users-list > div > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.admin-list strong, .users-list strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
.admin-list small, .users-list small { color: #929aa2; font-size: .72rem; }
.admin-list button { margin-left: auto; border: 0; background: none; color: #4774b4; cursor: pointer; }
.avatar.small { width: 36px; height: 36px; font-size: .67rem; }
.users-list em { margin-left: auto; border-radius: 50px; background: #eaf4ec; padding: 6px 9px; color: #477551; font-size: .68rem; font-style: normal; font-weight: 700; }
.mobile-close, .menu-scrim { display: none; }

@media (max-width:1060px) {
  .login-shell { grid-template-columns: 1fr 1fr; } .brand-panel { padding: 46px; } .brand-copy h1 { font-size: 3rem; }
  .action-grid, .video-grid { grid-template-columns: 1fr 1fr; } .action-card:last-child { grid-column: span 2; min-height: 190px; }
  .welcome-row { grid-template-columns: 1fr; gap: 20px; } .table-header { display: none; }
  .document-row { grid-template-columns: 1fr auto; gap: 8px 18px; }
  .document-row > span:not(.document-title):not(.download-icon) { display: none; } .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width:760px) {
  .login-page { padding: 0; } .login-shell { min-height: 100vh; grid-template-columns: 1fr; border-radius: 0; }
  .brand-panel { min-height: auto; padding: 30px 25px 38px; } .login-logo { width: 265px; }
  .brand-copy { padding: 58px 0 20px; } .brand-copy h1 { font-size: 2.25rem; } .brand-copy p { font-size: 1rem; }
  .brand-note { display: none; } .login-panel { padding: 45px 25px 48px; } .login-heading h2 { font-size: 1.65rem; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 15px 0 40px rgba(26,37,50,.16); }
  .sidebar.open { transform: translateX(0); } .content-shell { margin-left: 0; } .sidebar-head { justify-content: space-between; }
  .mobile-close { display: grid; place-items: center; border: 0; background: transparent; color: #65707c; }
  .menu-scrim { position: fixed; inset: 0; z-index: 20; display: block; border: 0; background: rgba(27,36,47,.38); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .menu-scrim.visible { opacity: 1; pointer-events: auto; }
  .topbar { height: 70px; justify-content: space-between; padding: 0 20px; }
  .topbar > div { display: grid; gap: 1px; margin-right: auto; margin-left: 12px; }
  .topbar > div span { color: #89919a; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; }
  .topbar > div strong { font-size: .87rem; } .menu-button { display: grid; place-items: center; border: 0; background: transparent; padding: 0; }
  .logout-mobile { font-size: 0; } .page-content { padding: 38px 20px 62px; }
  .welcome-row h1, .page-heading h1 { font-size: 2.35rem; } .action-grid, .video-grid { grid-template-columns: 1fr; }
  .action-card, .action-card:last-child { grid-column: auto; min-height: 195px; } .page-heading { display: grid; gap: 25px; }
  .search-box { width: 100%; } .latest-list a { padding: 13px 14px; } .latest-list a > svg { display: none; }
  .document-row { min-height: 83px; padding: 12px 14px; } .document-title strong { font-size: .84rem; }
  .admin-badge { justify-self: start; } .tab-switch { overflow-x: auto; } .tab-switch button { white-space: nowrap; }
  .admin-card { padding: 21px; } .content-stats { gap: 6px; } .content-stats div { padding: 11px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }

/* Portal application additions */
.remember { display: flex !important; grid-template-columns: auto 1fr; align-items: center; justify-content: flex-start; gap: 9px !important; color: #6f7882 !important; font-size: .8rem !important; font-weight: 500 !important; }
.remember input { width: 17px !important; min-height: 17px !important; height: 17px; margin: 0; accent-color: #4774b4; }
.sidebar-user form { margin-left: auto; }
.sidebar-user form button { margin: 0; }
.topbar form { display: flex; }
.flash { position: relative; z-index: 5; max-width: 1196px; margin: 22px auto -24px; border-radius: 8px; padding: 14px 18px; font-size: .88rem; }
.flash.success { border: 1px solid #bad5c0; background: #eff7f1; color: #376541; }
.flash.error { border: 1px solid #e4b9b9; background: #fff2f2; color: #8e3030; }
.flash ul { margin: 7px 0 0; padding-left: 18px; }
.action-card { color: inherit; text-decoration: none; }
.panel-heading a:hover { text-decoration: underline; }
.search-box button { border: 0; border-radius: 6px; background: #4774b4; padding: 7px 11px; color: #fff; cursor: pointer; font-size: .76rem; font-weight: 700; }
.pagination { margin-top: 22px; }
.pagination nav { display: flex; justify-content: center; }
.pagination svg { width: 18px; }
.pagination a, .pagination span { color: #54606d; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg,#315e99,#668fc2); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card p { min-height: 0; }
.empty-state.wide { grid-column: 1 / -1; border: 1px solid #dfe5ea; border-radius: 10px; background: #fff; }
.admin-tabs { position: sticky; top: 0; z-index: 10; display: flex; gap: 8px; margin: -14px 0 42px; border-bottom: 1px solid #dce2e8; background: #f5f7f9; padding: 14px 0; }
.admin-tabs a { border-radius: 7px; background: #eaf1f9; padding: 10px 15px; color: #3f6eaa; text-decoration: none; font-size: .85rem; font-weight: 750; }
.admin-section { scroll-margin-top: 90px; margin-bottom: 70px; }
.admin-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-section-heading h2 { margin: 0; color: #27313d; font-size: 1.7rem; letter-spacing: -.025em; }
.admin-section-heading > span { color: #818a94; font-size: .82rem; }
.admin-card h3 { margin: 0; color: #27313d; font-size: 1.1rem; letter-spacing: -.02em; }
.admin-form input[type="file"] { min-height: 100%; }
.upload-symbol { color: #4774b4 !important; font-size: 1.7rem !important; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.admin-list > div { gap: 10px; }
.admin-list > div > span:nth-child(2) { flex: 1; }
.admin-list form { flex: 0 0 auto; }
.admin-list form button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 5px; background: #edf3fa; color: #4774b4; cursor: pointer; }
.admin-list form button.danger { background: #fff0f0; color: #a83f3f; }
.status { flex: 0 0 auto; border-radius: 30px; padding: 5px 8px; font-size: .66rem; font-weight: 750; }
.status.active { background: #eaf4ec; color: #477551; }
.status.inactive { background: #f0f1f2; color: #767e87; }
.users-list details { border-top: 1px solid #edf0f3; }
.users-list summary { min-height: 70px; display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.users-list summary::-webkit-details-marker { display: none; }
.users-list summary > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; flex: 1; }
.users-list summary strong { font-size: .84rem; }
.users-list summary small { color: #929aa2; font-size: .72rem; }
.users-list summary em { border-radius: 30px; background: #eaf4ec; padding: 6px 9px; color: #477551; font-size: .68rem; font-style: normal; font-weight: 700; }
.users-list summary em.off { background: #f0f1f2; color: #747c84; }
.inline-edit { display: grid; gap: 13px; margin: 0 0 12px 48px; border-radius: 8px; background: #f7f9fb; padding: 18px; }
.inline-edit label { display: grid; gap: 7px; color: #4a5460; font-size: .76rem; font-weight: 700; }
.inline-edit input, .inline-edit select { min-height: 42px; border: 1px solid #d9e0e7; border-radius: 7px; background: #fff; padding: 0 11px; }
.inline-edit .checkbox { display: flex; align-items: center; }
.inline-edit .checkbox input { min-height: 16px; width: 16px; }
.inline-actions { display: flex; justify-content: flex-end; }
.secondary-button { border: 1px solid #4774b4; border-radius: 7px; background: #fff; padding: 9px 13px; color: #4774b4; cursor: pointer; font-weight: 700; }
.delete-user { display: flex; justify-content: flex-end; margin: 0 0 15px; }
.text-danger { border: 0; background: transparent; color: #a13c3c; cursor: pointer; font-size: .76rem; text-decoration: underline; }

@media (max-width: 760px) {
  .flash { margin: 14px 20px -20px; }
  .admin-tabs { overflow-x: auto; }
  .admin-tabs a { white-space: nowrap; }
  .admin-section-heading { align-items: start; flex-direction: column; gap: 7px; }
  .form-row { grid-template-columns: 1fr; }
  .status { display: none; }
  .inline-edit { margin-left: 0; }
}

/* PHP/MySQL package: analytics and click-to-play */
.video-frame .video-cover { position:absolute; inset:0; width:100%; height:100%; }
.video-card > .video-frame { padding:0; }
.analytics-filters { display:grid; grid-template-columns:2fr 1fr auto; gap:14px; align-items:end; margin-bottom:18px; border:1px solid #dfe5ea; border-radius:11px; background:#fff; padding:20px; }
.analytics-filters label { display:grid; gap:7px; color:#4b5561; font-size:.78rem; font-weight:700; }
.analytics-filters select { min-height:46px; border:1px solid #d9e0e7; border-radius:7px; background:#fff; padding:0 12px; }
.analytics-filters .primary-button { min-height:46px; padding:0 20px; }
.analytics-cards { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:20px; }
.analytics-cards div { display:grid; gap:4px; border:1px solid #dfe5ea; border-radius:10px; background:#fff; padding:19px; }
.analytics-cards strong { color:#315f9b; font-size:1.75rem; }
.analytics-cards span { color:#7a848f; font-size:.75rem; }
.analytics-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(320px,.55fr); gap:20px; align-items:start; }
.analytics-grid .admin-card { min-width:0; }
.data-table { overflow:auto; margin-top:18px; }
.data-table table { width:100%; border-collapse:collapse; font-size:.78rem; white-space:nowrap; }
.data-table th,.data-table td { border-bottom:1px solid #edf0f3; padding:12px 10px; text-align:left; }
.data-table th { color:#7b858f; font-size:.67rem; text-transform:uppercase; letter-spacing:.05em; }
.data-table td small { display:block; margin-top:3px; color:#929aa2; }
.activity-list { max-height:520px; overflow:auto; margin-top:18px; }
.activity-list > div { display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; border-top:1px solid #edf0f3; padding:12px 0; }
.activity-list > div > span:nth-child(2) { display:grid; gap:3px; min-width:0; }
.activity-list strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.78rem; }
.activity-list small,.activity-list time { color:#8a939c; font-size:.67rem; }
.activity-type { border-radius:20px; background:#edf3fa; padding:5px 7px; color:#4774b4; font-size:.62rem; font-weight:800; }
@media(max-width:1100px){.analytics-cards{grid-template-columns:repeat(3,1fr)}.analytics-grid{grid-template-columns:1fr}}
@media(max-width:760px){.analytics-filters{grid-template-columns:1fr}.analytics-cards{grid-template-columns:1fr 1fr}.analytics-cards div:first-child{grid-column:span 2}.activity-list time{display:none}}

/* Smaller edit action; dimensions and spacing reduced by 30%. */
.admin-list .edit-button { font-size:.7rem; padding:6.3px 9.1px; border-radius:4.9px; flex-shrink:0; text-decoration:none; }
.video-card .video-frame .video-cover { display:grid; place-items:center; padding:0; color:#fff; background:linear-gradient(135deg,#315e99,#668fc2); }
.video-poster { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.video-cover .play-button { z-index:2; }
.video-cover small { color:#fff; }
.video-cover .video-index { text-shadow:0 1px 4px #000; }
.poster-fields { min-width:0; border:1px solid #dfe5ea; border-radius:8px; padding:18px; }
.poster-fields p { color:#69727e; font-size:.85rem; line-height:1.5; }
.poster-fields input[type=file] { min-height:44px; padding:10px; max-width:100%; }
.poster-fields summary { cursor:pointer; margin:16px 0; }
.poster-preview { display:block; width:min(100%,360px); aspect-ratio:16/9; object-fit:contain; background:#f3f6fa; margin:12px 0; }
.poster-preview[hidden] { display:none; }
