*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f5f6f8;color:#0f172a}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:9px 12px}button:hover{background:#f1f5f9}.primary{background:#2563eb;color:#fff;border-color:#2563eb}.primary:hover{background:#1d4ed8}.outline{background:transparent}.hidden{display:none!important}.muted{color:#64748b}.hint{font-size:13px;color:#64748b}.important-hint{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:9px 10px}.req{color:#dc2626;margin-left:3px}.auth-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.auth-card{width:min(520px,100%);background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:28px;box-shadow:0 10px 30px rgba(15,23,42,.08)}.auth-card h1{margin:0 0 4px}.api-row{display:grid;grid-template-columns:1fr;gap:7px;margin:18px 0;padding:12px;border-radius:12px;background:#f8fafc}.api-row button{width:max-content}.auth-tabs{display:flex;gap:8px;margin:18px 0}.auth-tab.active{background:#0f172a;color:#fff}.auth-form{display:none}.auth-form.active{display:block}.full{width:100%;margin-top:12px}.message{min-height:22px;color:#475569}.message.error{color:#b91c1c}.message.ok{color:#047857}.app-screen{display:grid;grid-template-columns:280px 1fr;min-height:100vh}.sidebar{background:#111827;color:#fff;padding:18px;display:flex;flex-direction:column;gap:18px}.brand{display:flex;flex-direction:column;gap:6px;padding:8px 4px}.brand small{color:#cbd5e1}.menu{display:flex;flex-direction:column;gap:6px}.menu-item{width:100%;text-align:left;background:transparent;color:#e5e7eb;border-color:transparent}.menu-item:hover,.menu-item.active{background:#374151;color:#fff}.content{padding:22px;overflow:auto}.topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.topbar h2{margin:0 0 6px}.top-actions{display:flex;gap:8px;flex-wrap:wrap}.tab-panel{display:none}.tab-panel.active{display:block}.card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px;margin-bottom:16px;box-shadow:0 4px 14px rgba(15,23,42,.04)}.card h3{margin:0 0 14px;color:#0f172a}.teacher-card{border-left:4px solid #2563eb}.grid{display:grid;gap:12px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.approval-grid{display:grid;grid-template-columns:repeat(2,minmax(320px,1fr));gap:18px;align-items:start}.approval-box{border:1px solid #e2e8f0;border-radius:14px;padding:14px;background:#f8fafc;min-width:0}.approval-box h4{margin:0 0 12px}.approval-box input,.approval-box select,.approval-box textarea{width:100%}.approval-box .inline-row{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:8px;align-items:center}.approval-box .check{white-space:nowrap}label{display:flex;flex-direction:column;gap:6px;font-weight:600;color:#334155;margin-bottom:8px}input,select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:9px 10px;background:#fff}input[readonly]{background:#eef2f7;color:#334155}textarea{resize:vertical;min-height:76px}.inline-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.mode-row{display:flex;gap:14px;flex-wrap:wrap;margin:5px 0 8px}.mode-row label,.check{margin:0;display:flex;flex-direction:row;align-items:center;gap:5px;font-weight:500;color:#475569;white-space:nowrap}.check input,.mode-row input{width:auto}.manual-input{margin-top:6px}.table-wrap{overflow:auto;border:1px solid #e2e8f0;border-radius:12px}.topic-table-wrap{overflow-x:auto}.dyn-table{width:100%;border-collapse:collapse;background:#fff;table-layout:auto}.dyn-table th,.dyn-table td{border-bottom:1px solid #e2e8f0;padding:8px;vertical-align:top}.dyn-table th{background:#f8fafc;text-align:left;font-size:13px}.dyn-table input,.dyn-table textarea,.dyn-table select{min-width:90px}.dyn-table textarea{min-height:74px}.dyn-topics{min-width:1500px}.dyn-topics .topic-input-col{width:460px;min-width:460px}.dyn-topics textarea.topic-input-col{min-width:440px;min-height:90px}.dyn-topics input{min-width:105px}.dyn-current_control,.dyn-selfstudy_control,.dyn-individual_tasks{min-width:900px}.control-name-col{width:310px}.control-method-col{width:390px}.prn-col{width:190px}.wide-text{min-width:420px}.code-col{width:110px;min-width:110px}.dyn-actions{display:flex;gap:8px;margin-top:10px}.small-btn{padding:6px 8px;border-radius:7px}.remove-btn{color:#b91c1c}.actions-grid{display:flex;gap:10px;flex-wrap:wrap}pre{white-space:pre-wrap;word-break:break-word;background:#0f172a;color:#e5e7eb;border-radius:12px;padding:14px;max-height:520px;overflow:auto}.toast{position:fixed;right:18px;bottom:18px;background:#0f172a;color:#fff;padding:12px 14px;border-radius:10px;z-index:20;box-shadow:0 8px 24px rgba(0,0,0,.2)}.invalid{border-color:#ef4444!important;background:#fff7f7!important}.required-missing{border-color:#ef4444!important;background:#fff7f7!important}@media(max-width:1100px){.approval-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:980px){.app-screen{grid-template-columns:1fr}.grid.two,.grid.three,.grid.four,.approval-grid{grid-template-columns:1fr}.topbar{flex-direction:column}.top-actions{width:100%}.top-actions button{flex:1}.inline-row{grid-template-columns:1fr}}


@media(min-width:1500px){
  .approval-grid{
    grid-template-columns:repeat(3,minmax(300px,1fr));
  }
}


/* final synchronized overrides */
.sidebar .outline{color:#fff;border-color:#94a3b8;background:transparent}.sidebar .outline:hover{background:#374151;color:#fff}.dyn-topics{min-width:980px}.dyn-topics .topic-input-col{width:300px;min-width:300px}.dyn-topics textarea.topic-input-col{min-width:300px;min-height:86px;white-space:pre-wrap}.dyn-topics input[type="number"]{width:54px;min-width:54px;max-width:54px;padding-left:6px;padding-right:6px}.prn-checkbox-list{display:flex;flex-direction:column;gap:4px;max-height:170px;overflow:auto;min-width:230px;padding:6px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}.prn-check{display:flex;align-items:flex-start;gap:6px;font-size:13px;line-height:1.25;cursor:pointer}.prn-check input{width:auto;min-width:auto;margin-top:2px;flex:0 0 auto}.prn-check span{overflow-wrap:anywhere}.prn-empty{color:#64748b;font-size:13px}.prn-col{width:260px}.dyn-current_control,.dyn-selfstudy_control,.dyn-individual_tasks{min-width:980px}

/* === Required star and menu markers fix === */
label{
  display:block;
  font-weight:600;
  color:#334155;
  margin-bottom:8px;
}

label .req{
  display:inline !important;
  margin-left:4px;
  color:#dc2626;
  vertical-align:baseline;
  line-height:1;
}

label > input,
label > select,
label > textarea{
  display:block;
  margin-top:6px;
}

.mode-row label,
.check{
  margin:0;
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:5px;
  font-weight:500;
  color:#475569;
  white-space:nowrap;
}

.mode-row label > input,
.check > input{
  display:inline-block;
  margin-top:0;
  width:auto;
}

.menu-item.has-missing::after{
  content:" *";
  color:#ef4444;
  font-weight:700;
}

/* === Topics table visual grouping === */
.dyn-topics th.group-header{
  text-align:center;
  font-weight:700;
  white-space:nowrap;
}

.dyn-topics th.sub-header{
  text-align:center;
  font-weight:600;
  white-space:nowrap;
}

.dyn-topics .topic-input-col{
  width:520px;
  min-width:520px;
}

.dyn-topics textarea.topic-input-col{
  min-width:520px;
  min-height:96px;
  white-space:pre-wrap;
}

.dyn-topics input[type="number"]{
  width:64px;
  min-width:64px;
  max-width:64px;
  padding-left:6px;
  padding-right:6px;
}

.prn-checkbox-list{
  min-width:320px;
  max-width:460px;
  max-height:220px;
}

/* === Google login page === */
.login-page .auth-screen{
  min-height:100vh;
}
.login-card{
  text-align:left;
}
.google-login-block{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:18px 0 10px;
}
.archive-panel{background:#fff;border:1px solid #cbd5e1;border-radius:16px;padding:16px;margin:-6px 0 18px;box-shadow:0 6px 18px rgba(15,23,42,.07)}.archive-panel-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.archive-panel-head h3{margin:0 0 6px}.archive-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}.archive-item{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:#f8fafc}.archive-info{display:flex;flex-direction:column;gap:4px}.archive-info span{font-size:13px;color:#64748b}.archive-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.archive-actions button{padding:7px 9px}.dyn-table input:disabled{background:#f8fafc;color:#94a3b8;border-style:dashed}@media(max-width:980px){.archive-item{grid-template-columns:1fr}.archive-actions{justify-content:flex-start}}

/* === Auth hardening: Google-first login, admin fallback === */
.admin-login-panel{
  margin-top:18px;
  border-top:1px solid #e2e8f0;
  padding-top:14px;
}
.admin-login-panel summary{
  cursor:pointer;
  color:#475569;
  font-weight:700;
  user-select:none;
}
.admin-login-form{
  margin-top:12px;
  padding:12px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#f8fafc;
}
.admin-login-form label{
  text-align:left;
}

.course-semester-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:6px}.course-semester-option{border:1px solid #cbd5e1;border-radius:9px;padding:8px;background:#fff}.course-semester-option:hover{background:#f8fafc}

/* v3 help markers and compact main menus */
.menu-item 
.wp-top-menu-box button.help-enhanced {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wp-top-menu-box button.help-enhanced::after {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  color: #475569;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
}

/* === 2026-05-23: visible OP catalogue selector and unified top menus === */
.top-menu-row{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.wp-top-menu{
  position:relative;
  display:inline-block;
}
.wp-top-menu > summary{
  cursor:pointer;
  list-style:none;
  border:1px solid #cbd5e1;
  border-radius:8px;
  padding:9px 12px;
  background:#fff;
  color:#0f172a;
  font-weight:600;
  user-select:none;
}
.wp-top-menu > summary::-webkit-details-marker{
  display:none;
}
.wp-top-menu[open] > summary{
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
}
.wp-top-menu-box{
  position:absolute;
  right:0;
  z-index:100;
  min-width:250px;
  background:#fff;
  border:1px solid #cbd5e1;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(15,23,42,.16);
  padding:8px;
  margin-top:6px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.wp-top-menu-box button{
  border-radius:8px;
  padding:9px 10px;
}
.section-head-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:12px;
}
.section-head-row h3{
  margin-bottom:6px;
}
.compact-action{
  white-space:nowrap;
}
.op-catalog-card{
  border-color:#bfdbfe;
  box-shadow:0 8px 22px rgba(37,99,235,.07);
}
.catalog-filter-box{
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:12px;
  background:#f8fafc;
}
.code-mode-tabs{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin:4px 0 10px;
}
.code-mode-tabs label{
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  gap:6px;
  margin:0;
  padding:6px 9px;
  border:1px solid #cbd5e1;
  border-radius:999px;
  background:#fff;
  color:#334155;
  font-weight:600;
  cursor:pointer;
}
.code-mode-tabs input{
  width:auto;
  margin:0;
}
.code-mode-tabs label:has(input:checked){
  background:#dbeafe;
  border-color:#2563eb;
  color:#1e40af;
}
.catalog-choice-panel{
  margin:14px 0 12px;
  padding:14px;
  border:2px solid #2563eb;
  border-radius:14px;
  background:#eff6ff;
}
.catalog-choice-panel label{
  color:#0f172a;
  font-size:16px;
}
.catalog-choice-panel select{
  min-height:42px;
  font-weight:600;
  border-color:#93c5fd;
}
@media(max-width:980px){
  .section-head-row{flex-direction:column;}
  .compact-action{width:100%;}
  .wp-top-menu-box{left:0;right:auto;}
}

.locked-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 6px 10px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #f6f8fa;
  color: #24292f;
  font-weight: 700;
  white-space: nowrap;
}
.code-col .locked-code, .locked-code.code-col {
  width: 100%;
  box-sizing: border-box;
}

.prn-code-input{min-width:95px;max-width:130px;font-weight:700;text-align:center;}
.prn-code-hint{margin:0 0 8px;}

/* Program competencies actions dropdown */
.pc-actions-menu,
.doc-actions-menu {
  position: relative;
  display: inline-block;
  margin-left: 8px;
  z-index: 50;
}

.pc-actions-toggle,
.doc-actions-toggle {
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.pc-actions-panel,
.doc-actions-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 250px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  z-index: 1000;
}

.doc-action-item {
  width: 100%;
  display: block;
  text-align: left;
  padding: 10px 12px;
  margin: 4px 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  cursor: pointer;
}

.doc-action-item:hover {
  background: #eff6ff;
}

.doc-action-item.primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.doc-action-item.primary:hover {
  background: #1d4ed8;
}

/* Final OP actions dropdown */
.pc-actions-menu,
.doc-actions-menu {
  position: relative;
  display: inline-block;
  margin-left: 8px;
  z-index: 50;
}

.pc-actions-toggle,
.doc-actions-toggle {
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.pc-actions-panel,
.doc-actions-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 260px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  z-index: 1000;
}

.doc-action-item {
  width: 100%;
  display: block;
  text-align: left;
  padding: 10px 12px;
  margin: 4px 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  cursor: pointer;
}

.doc-action-item:hover {
  background: #eff6ff;
}

.doc-action-item.primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.doc-action-item.primary:hover {
  background: #1d4ed8;
}

.developer-contact {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  background: rgba(248, 250, 252, 0.9);
}

.developer-contact p {
  margin: 4px 0;
}

.developer-contact a {
  color: inherit;
  font-weight: 600;
}

/* SUPPORT_CONTACT_UNDER_LOGOUT_MICROFIX_V3 */
.support-contact-under-logout {
  margin: 12px 12px 0;
  padding: 10px 11px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.35;
}

.support-contact-under-logout .support-title {
  margin: 0 0 5px;
  color: #ffffff;
  font-weight: 700;
}

.support-contact-under-logout .support-note {
  margin: 0 0 6px;
  color: #cbd5e1;
}

.support-contact-under-logout .support-person {
  margin: 0 0 2px;
  color: #ffffff;
  font-weight: 700;
}

.support-contact-under-logout a {
  color: #bfdbfe;
  text-decoration: none;
  word-break: break-all;
}

.support-contact-under-logout a:hover {
  text-decoration: underline;
}
/* /SUPPORT_CONTACT_UNDER_LOGOUT_MICROFIX_V3 */

/* LEADERSHIP_NAV */
.leadership-links { display:flex; flex-direction:column; gap:6px; margin:10px 0 14px; }
.leadership-links a { display:block; color:inherit; text-decoration:none; padding:7px 8px; border-radius:7px; border:1px solid rgba(148,163,184,.45); font-size:13px; }
.leadership-links a:hover { background:rgba(148,163,184,.14); }


/* RECOVERED_V11_UI_STYLES */
.prn-choice-list{display:flex;flex-wrap:wrap;gap:6px 10px;padding-bottom:6px}.prn-description-box{width:100%;min-height:84px;font-size:12px;color:#334155;background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;padding:7px;resize:vertical}.prn-checkbox-list{max-height:none}.prn-check span{white-space:nowrap}.topics-semester-card .semester-tabs{margin:4px 0 8px}

.role-guide-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;border:1px solid #cbd5e1;background:#fff;color:#1e3a8a;border-radius:8px;padding:9px 12px;font-weight:700;line-height:1.2}.role-guide-link:hover{background:#eff6ff;border-color:#93c5fd}.sidebar .role-guide-link{width:100%;color:#fff;border-color:#94a3b8;background:transparent}.sidebar .role-guide-link:hover{background:#374151;color:#fff}

/* === FIX7 CNU visual system: university-style navy + gold === */
:root{--cnu-green:#013220;--cnu-green-hover:#01452d;--cnu-cream:#F0E6C2;--cnu-cream-soft:#faf7ec;--cnu-bg:#f7f6f1;--cnu-border:#d9d5c8;--cnu-text:#13241d}
body{background:var(--cnu-bg);color:var(--cnu-text)}
.sidebar{background:var(--cnu-green);border-right:4px solid var(--cnu-cream)}
.brand strong{color:#fff}.brand small{color:#f4f0df}.menu-item{color:#fff}.menu-item:hover{background:rgba(240,230,194,.14)}.menu-item.active{background:var(--cnu-cream);color:var(--cnu-green);font-weight:700}
.primary,button.primary{background:var(--cnu-green);border-color:var(--cnu-green);color:#fff}.primary:hover,button.primary:hover{background:var(--cnu-green-hover)}
button:not(.outline):not(.menu-item),.button{border-color:var(--cnu-border)}
.card{border-color:var(--cnu-border);box-shadow:0 5px 18px rgba(1,50,32,.06)}
.card h3,.topbar h2{color:var(--cnu-green)}
.teacher-card{border-left-color:var(--cnu-cream)}
.approval-box{border-color:var(--cnu-border);background:#fffdf7}
input:focus,select:focus,textarea:focus{outline:2px solid rgba(1,50,32,.18);border-color:var(--cnu-green)}
.wp-top-menu[open] > summary{background:var(--cnu-green);color:#fff;border-color:var(--cnu-green)}
.op-catalog-card{border-color:#d7cfad;box-shadow:0 8px 22px rgba(1,50,32,.07)}
.pc-current-card{border-color:var(--cnu-green)!important;background:var(--cnu-cream-soft)!important}.pc-badge{border-color:#d7cfad!important;background:var(--cnu-cream)!important;color:var(--cnu-green)!important}
.pc-create-panel{border-color:var(--cnu-green)!important;background:#fffdf7!important}.pc-meta-edit-panel{border-color:#c8b970!important;background:var(--cnu-cream-soft)!important}

