:root{--ink:#0d2238;--muted:#66778a;--line:#dfe5eb;--blue:#1769ba;--blue-dark:#0c4e8a;--pale:#f3f6f9;--green:#16a34a;--yellow:#f6b900;--red:#e31b36;--grey:#9ca3af;--complete:#3b82f6;--shadow:0 14px 40px rgba(28,48,72,.09)}*{box-sizing:border-box}body{margin:0;background:#eef2f6;color:var(--ink);font-family:"DM Sans",sans-serif}.shell{min-height:100vh;display:grid;grid-template-columns:244px 1fr}.sidebar{background:#0c1d2d;color:#fff;padding:28px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;margin-bottom:42px}.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#2d8ce2,#12528d);display:grid;place-items:center;font-family:Manrope;font-weight:800}.brand strong,.brand span{display:block}.brand span{font-size:12px;color:#93a6b7;margin-top:2px}nav{display:grid;gap:8px}.nav-item{border:0;background:transparent;color:#9fb0c0;text-align:left;padding:12px 14px;border-radius:10px;font:600 14px "DM Sans";cursor:pointer}.nav-item span{display:inline-block;width:28px}.nav-item.active,.nav-item:hover{background:#19344d;color:white}.connection{margin-top:auto;border:1px solid #27445f;background:#122b41;border-radius:12px;padding:12px;display:flex;gap:10px;align-items:flex-start}.connection i{width:9px;height:9px;margin-top:5px;border-radius:50%;background:#f6b900;box-shadow:0 0 0 4px rgba(246,185,0,.12)}.connection.connected i{background:#20c875}.connection strong,.connection span{display:block;font-size:12px}.connection span{color:#9fb0c0;font-size:10px;margin-top:3px;line-height:1.35}main{padding:30px 34px 48px;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:10px;font-weight:700;color:#6b7c8e}.topbar h1{font:800 28px Manrope;margin:3px 0 0}.top-actions{display:flex;gap:10px;align-items:center}.portfolio-select{min-width:150px;max-width:220px;background:white;border:1px solid var(--line);border-radius:9px;padding:9px 30px 9px 11px;font:700 12px "DM Sans";color:var(--ink)}.button{border:1px solid var(--line);border-radius:9px;padding:10px 16px;background:#fff;color:var(--ink);font:700 13px "DM Sans";cursor:pointer}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.button.primary:hover{background:var(--blue-dark)}.button:disabled{opacity:.65;cursor:wait}.button.small{padding:7px 11px;font-size:12px}.summary-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.summary-card{background:white;border:1px solid var(--line);border-radius:12px;padding:14px 16px;box-shadow:0 5px 20px rgba(20,43,68,.04)}.summary-card>span{display:block;color:var(--muted);font-size:11px;margin-bottom:7px}.summary-card>strong{font:700 18px Manrope;display:flex;align-items:center;gap:8px}.workspace{display:grid;grid-template-columns:1fr;gap:18px;align-items:start}.editor-panel,.preview-panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}.tabs{display:flex;border-bottom:1px solid var(--line);padding:0 18px}.tab{border:0;background:none;padding:16px 12px 13px;color:#7a8b9c;font:600 12px "DM Sans";border-bottom:3px solid transparent;cursor:pointer}.tab.active{color:var(--blue);border-bottom-color:var(--blue)}.editor-body{padding:22px}.field-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.field-grid.one-row{grid-template-columns:repeat(3,1fr)}label{display:grid;gap:6px;color:#526477;font-size:11px;font-weight:600;margin-bottom:12px}input,textarea,select{width:100%;border:1px solid #ccd5de;border-radius:8px;background:#fff;padding:9px 10px;color:var(--ink);font:500 12px "DM Sans";outline:none}textarea{resize:vertical;min-height:56px;line-height:1.4}input:focus,textarea:focus,select:focus{border-color:#5a99d2;box-shadow:0 0 0 3px rgba(23,105,186,.09)}.list-section{padding-top:17px;margin-top:15px;border-top:1px solid #edf0f3}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px}.section-heading.compact{align-items:center;margin-bottom:10px}.section-heading h3{margin:0;font:700 15px Manrope}.section-heading p{margin:4px 0 0;color:var(--muted);font-size:11px}.counter{font-size:10px;color:#758698;background:var(--pale);border-radius:12px;padding:4px 8px}.counter.over{color:#b42318;background:#feeceb}.line-input{display:grid;grid-template-columns:24px 1fr 24px;gap:8px;align-items:start;margin:8px 0}.line-input>span{margin-top:10px;width:22px;height:22px;border-radius:50%;background:#e9f2fb;color:var(--blue);display:grid;place-items:center;font-size:10px;font-weight:700}.line-input button,.repeat-title button{border:0;background:none;color:#9aa8b6;font-size:18px;cursor:pointer}.text-button{border:0;background:none;color:var(--blue);font:700 11px "DM Sans";padding:6px 0;cursor:pointer}.help-list{margin:0 0 12px;padding:0 0 0 18px;display:grid;gap:10px;font-size:12px;line-height:1.55;color:#4a5a69}.help-list li strong{display:block;color:#101820;font-size:12px;margin-bottom:2px}.help-list code{background:#f1f4f7;border-radius:4px;padding:1px 5px;font-size:11px}.help-list a{color:var(--blue);font-weight:600}.repeat-list{display:grid;gap:12px}.repeat-card{border:1px solid var(--line);border-radius:10px;padding:14px;background:#fbfcfd}.repeat-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.repeat-title strong{font:700 12px Manrope}.repeat-title button{font-size:10px;color:#b42318}.milestone-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.milestone-grid>div>span{font-size:10px;color:#66778a;display:block;margin-bottom:5px}.compact-select{margin-top:5px;padding:6px 5px;font-size:10px}.wide{margin-bottom:10px}.preview-panel{padding:20px}.preview-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.preview-head h2{font:700 17px Manrope;margin:3px 0 0}.preview-badge{font-size:10px;background:#eaf2fb;color:var(--blue);font-weight:700;padding:5px 8px;border-radius:12px}.slide-wrap{background:#dfe5eb;padding:12px;border-radius:10px}.slide{aspect-ratio:16/9;background:#fff;position:relative;overflow:hidden;box-shadow:0 2px 7px rgba(12,29,45,.16);font-family:Arial;color:#111}.color-rail{position:absolute;inset:0 0 auto;height:1.1%;display:flex}.color-rail i:first-child{background:#f7c936;flex:6.8}.color-rail i:nth-child(2){background:#e71c37;flex:2.2}.color-rail i:nth-child(3){background:#242424;flex:2.2}.color-rail i:last-child{background:#3f7fd9;flex:2.1}.slide-title{position:absolute;left:4.1%;top:2.8%;font-weight:700;font-size:clamp(8px,1.25vw,17px)}.slide-date{position:absolute;left:63.3%;top:5.4%;font-weight:700;font-size:clamp(6px,.8vw,11px)}.slide-status{position:absolute;left:80.2%;top:4.6%;width:15.4%;height:4.2%;border:1px solid #ddd;padding:1.1% .8%;font-size:clamp(4px,.48vw,7px);display:flex;justify-content:space-between;align-items:center}.status-dot{font-style:normal;display:inline-grid;place-items:center;border-radius:50%;width:18px;height:18px;font-size:8px;color:#fff;background:var(--grey)}.status-dot.G{background:var(--green)}.status-dot.Y{background:var(--yellow);color:#111}.status-dot.R{background:var(--red)}.status-dot.N{background:var(--grey)}.status-dot.C{background:var(--complete)}.slide .status-dot{width:11px;height:11px;font-size:5px}.slide-card{position:absolute;border:1px solid #d8d8d8;background:#fff;overflow:hidden}.slide-card h4{height:19%;margin:0;background:#1769ba;color:#fff;display:grid;place-items:center;font-size:clamp(5px,.62vw,9px)}.slide-card ul{margin:2.4% 3.5%;padding-left:3.5%;font-size:calc(clamp(4px,.46vw,6.6px)*var(--scale,1));line-height:1.45}.overall-card{left:4.1%;top:9.3%;width:53%;height:18.5%}.accomplish-card{left:4.1%;top:29.1%;width:26.2%;height:21.6%}.upcoming-card{left:30.9%;top:29.1%;width:26.2%;height:21.6%}.milestone-card{left:57.6%;top:9.3%;width:38.2%;height:50.4%}.milestone-card h4{height:9.2%}.mini-table{font-size:calc(clamp(3px,.38vw,5.4px)*var(--scale,1))}.mini-table>div{display:grid;grid-template-columns:1.23fr repeat(4,1fr);border-bottom:1px solid #ddd;min-height:calc(20px*var(--scale,1));align-items:center}.mini-table>div>*{text-align:center;padding:2px 4px;border-right:1px solid #ddd;display:flex;align-items:center;justify-content:center;gap:4px}.mini-table>div>span{justify-content:space-between}.mini-head{background:#f0f0f0}.kt-mini{position:absolute;left:4.1%;top:52.4%;width:53%;height:8.2%;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #ddd}.kt-mini>div{border-right:1px solid #ddd;display:grid;grid-template-rows:45% 55%;font-size:clamp(3px,.38vw,5.5px)}.kt-mini b{background:#1769ba;color:white;padding:3px}.kt-mini span{display:flex;align-items:center;gap:3px;padding:2px}.risk-card{left:4.1%;top:64.5%;width:91.7%;height:27.7%}.risk-card h4{height:18%}.risk-head,.risk-row{display:grid;grid-template-columns:.55fr 3.4fr .8fr 4.88fr .9fr 1.05fr .64fr;align-items:stretch;min-height:calc(21%*var(--scale,1))}.risk-head{background:#f0f0f0;font-size:clamp(3px,.35vw,5px)}.risk-row{font-size:calc(clamp(3px,.33vw,4.8px)*var(--scale,1))}.risk-head>*,.risk-row>*{padding:3px;border-right:1px solid #ddd;border-bottom:1px solid #ddd;display:flex;align-items:center;justify-content:center}.risk-row span:nth-child(2),.risk-row span:nth-child(4){justify-content:flex-start}.legend{position:absolute;left:20.8%;right:20%;bottom:1.8%;display:flex;justify-content:space-between;font-size:clamp(3px,.34vw,5px)}.legend span{display:flex;align-items:center;gap:3px}.preview-note{text-align:center;color:#728396;font-size:10px;margin:10px 0 0}.toast{position:fixed;right:24px;bottom:24px;padding:12px 16px;border-radius:9px;background:#11324d;color:white;font-size:12px;opacity:0;transform:translateY(15px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}.toast.error{background:#a62929}@media(max-width:1180px){.shell{grid-template-columns:200px 1fr}.workspace{grid-template-columns:1fr}.preview-panel{order:-1}.summary-row{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.shell{display:block}.sidebar{height:auto;position:static;padding:16px}.sidebar nav,.connection{display:none}.brand{margin:0}main{padding:20px 14px}.topbar{align-items:flex-end}.topbar h1{font-size:22px}.summary-row{grid-template-columns:1fr 1fr}.field-grid,.field-grid.one-row,.milestone-grid{grid-template-columns:1fr}.tabs{overflow:auto}.top-actions .secondary{display:none}.portfolio-select{min-width:120px;max-width:160px}}

/* Login Screen Styles */
.login-container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0d2238 0%, #0c4e8a 100%);
  font-family: "DM Sans", sans-serif;
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(28, 48, 72, 0.2);
  width: 100%;
  max-width: 380px;
  padding: 40px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2d8ce2, #12528d);
  display: grid;
  place-items: center;
  font-family: Manrope;
  font-weight: 800;
  font-size: 24px;
  color: white;
  margin: 0 auto 16px;
}

.login-header h1 {
  margin: 0;
  font: 800 28px Manrope;
  color: #0d2238;
  margin-bottom: 8px;
}

.login-header p {
  margin: 0;
  color: #66778a;
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font: 600 12px "DM Sans";
  color: #526477;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.form-group input {
  padding: 12px 14px;
  border: 1px solid #dfe5eb;
  border-radius: 10px;
  font: 500 14px "DM Sans";
  color: #0d2238;
  background: #fff;
  outline: none;
  transition: all 0.2s;
}

.form-group input:focus {
  border-color: #1769ba;
  box-shadow: 0 0 0 4px rgba(23, 105, 186, 0.1);
}

.form-group input::placeholder {
  color: #a0adb9;
}

.login-error {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 12px 14px;
  color: #b42318;
  font-size: 13px;
  display: none;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-submit {
  width: 100%;
  background: #1769ba;
  border: none;
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  font: 700 14px "DM Sans";
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.login-submit:hover:not(:disabled) {
  background: #0c4e8a;
  transform: translateY(-1px);
}

.login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #dfe5eb;
}

.login-footer p {
  margin: 0;
  color: #66778a;
  font-size: 12px;
  line-height: 1.5;
}

.user-info {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #27445f;
  display: grid;
  gap: 10px;
}

.user-info > div {
  display: block;
}

.user-label {
  display: block;
  font-size: 10px;
  color: #9fb0c0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.user-info strong {
  display: block;
  color: white;
  font: 600 13px "DM Sans";
  word-break: break-word;
}

.logout-btn {
  background: transparent;
  border: 1px solid #3a5a7a;
  color: #9fb0c0;
  padding: 8px 12px;
  font: 600 11px "DM Sans";
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.logout-btn:hover {
  border-color: #5a7a9a;
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

/* Portfolio Selection and Role Styling */
.portfolio-dropdown {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dfe5eb;
  border-radius: 10px;
  font: 500 14px "DM Sans";
  color: #0d2238;
  background: #fff;
  outline: none;
  transition: all 0.2s;
}

.portfolio-dropdown:focus {
  border-color: #1769ba;
  box-shadow: 0 0 0 4px rgba(23, 105, 186, 0.1);
}

.portfolio-dropdown option {
  color: #0d2238;
  background: white;
  padding: 10px;
}

.portfolio-label {
  display: inline-block;
  background: #eaf2fb;
  color: #1769ba;
  padding: 6px 12px;
  border-radius: 8px;
  font: 600 12px "DM Sans";
}

.user-role {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 3px 8px;
  border-radius: 6px;
  font: 600 10px "DM Sans";
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-link-button {
  background: none;
  border: none;
  color: #1769ba;
  font: 600 12px "DM Sans";
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-top: 8px;
}

.text-link-button:hover {
  color: #0c4e8a;
}

.button.secondary:disabled,
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input:disabled,
textarea:disabled,
select:disabled {
  background: var(--pale);
  color: var(--muted);
  cursor: not-allowed;
}

/* Settings Page Styles */
.settings-stack {
  display: grid;
  gap: 18px;
}

.settings-search {
  width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  font: 500 12px "DM Sans";
}

.settings-form-panel .editor-body,
.settings-table-panel .editor-body {
  max-height: none;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.settings-form-grid.hc-form-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.hc-form-grid .hc-main-field {
  flex: 1 1 200px;
  max-width: 240px;
}

.hc-form-grid .hc-location-field {
  flex: 0 0 130px;
  width: 130px;
}

.hc-form-grid .hc-grade-field {
  flex: 0 0 72px;
  width: 72px;
}

.hc-form-grid .hc-grade-field input[type="number"] {
  width: 72px;
  padding: 7px 6px;
  text-align: center;
}

.settings-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.editing-badge {
  font-size: 11px;
  font-weight: 700;
  background: #fef3c7;
  color: #92400e;
  padding: 4px 10px;
  border-radius: 12px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.settings-table th {
  background: #f3f6f9;
  color: #526477;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.settings-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf0f3;
  vertical-align: middle;
}

.settings-table tbody tr:hover {
  background: #f8fafc;
}

.settings-table tbody tr.editing-row {
  background: #fffbeb;
}

.settings-table .num-col {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.settings-table .actions-col {
  text-align: right;
  white-space: nowrap;
}

.settings-table .actions-col .button + .button {
  margin-left: 6px;
}

.portfolio-pill {
  display: inline-block;
  background: #eaf2fb;
  color: var(--blue);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}

.vendor-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.vendor-badge.cognizant {
  background: #dcfce7;
  color: #166534;
}

.vendor-badge.other {
  background: #f3f4f6;
  color: #4b5563;
}

.button.danger-btn {
  color: #b42318;
  border-color: #fecdca;
  background: #fef3f2;
}

.button.danger-btn:hover {
  background: #fee4e2;
}

.settings-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px !important;
}

.settings-section-tabs {
  margin-bottom: 0;
  border-bottom: none;
  background: #edf2f7;
  padding: 3px;
  border-radius: 9px;
}

.settings-section-tabs .tab {
  border-bottom: none;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 12px;
}

.settings-section-tabs .tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 24, 32, 0.08);
}

.password-pill {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
}

.role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
}

.role-badge.admin {
  background: #fef3c7;
  color: #92400e;
}

.role-badge.user {
  background: #e0f2fe;
  color: #0369a1;
}

.self-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 6px;
}

.muted-cell {
  color: var(--muted);
  font-style: italic;
}

/* Offline Spellcheck Inline Highlight & Overlay Styles */
.spell-field-wrap {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 8px;
}

.spell-field-wrap textarea,
.spell-field-wrap input {
  position: relative;
  z-index: 1;
  background: transparent;
  display: block;
}

.spell-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 500 12px "DM Sans", sans-serif;
  line-height: 1.4;
  color: transparent;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.spell-field-wrap.is-input .spell-backdrop {
  white-space: pre;
  line-height: normal;
}

.spell-mark {
  color: transparent;
  background: rgba(220, 38, 38, 0.34);
  border-bottom: 2px solid #b91c1c;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #b91c1c;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  border-radius: 3px;
  padding: 1px 0;
}

.grammar-mark {
  color: transparent;
  background: rgba(29, 78, 216, 0.32);
  border-bottom: 2px solid #1d4ed8;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #1d4ed8;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  border-radius: 3px;
  padding: 1px 0;
}

.spell-overlay {
  position: fixed;
  z-index: 2500;
  min-width: 210px;
  max-width: 280px;
  background: #fff;
  border: 1px solid #d5dae0;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(13, 34, 56, 0.18);
  overflow: hidden;
  font-family: "DM Sans", sans-serif;
}

.spell-overlay[hidden] {
  display: none !important;
}

.spell-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #edf0f3;
}

.spell-overlay-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.spell-overlay-label.is-grammar {
  color: var(--blue);
}

.spell-overlay-label.is-spelling {
  color: #b42318;
}

.spell-overlay-word {
  font-size: 12px;
  color: #b42318;
  text-decoration: underline wavy #e31b36;
}

.spell-overlay-word.is-grammar {
  color: var(--blue);
  text-decoration: underline wavy #1769ba;
}

.spell-overlay-msg {
  padding: 7px 12px;
  font-size: 11px;
  line-height: 1.4;
  color: #475569;
  background: #f8fafc;
  border-bottom: 1px solid #edf0f3;
}

.spell-overlay-list {
  display: grid;
  padding: 4px;
}

.spell-overlay-option {
  border: none;
  background: transparent;
  text-align: left;
  padding: 7px 10px;
  border-radius: 6px;
  font: 600 12px "DM Sans", sans-serif;
  color: var(--ink);
  cursor: pointer;
}

.spell-overlay-option:hover {
  background: #eaf2fb;
  color: var(--blue);
}

.spell-overlay-empty {
  padding: 8px 10px;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

.spell-overlay-foot {
  border-top: 1px solid #edf0f3;
  padding: 4px;
  background: #fbfcfd;
}

.spell-overlay-ignore {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 6px 10px;
  border-radius: 6px;
  font: 500 11px "DM Sans", sans-serif;
  color: var(--muted);
  cursor: pointer;
}

.spell-overlay-ignore:hover {
  background: #f1f5f9;
  color: var(--ink);
}

/* Admin Single-Click Week Range Calendar Picker */
.week-calendar-wrap {
  position: relative;
  display: inline-block;
}

.week-calendar-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.week-calendar-btn:hover,
.week-calendar-btn[aria-expanded="true"] {
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(23, 105, 186, 0.12);
}

.week-cal-icon {
  font-size: 15px;
  line-height: 1;
}

.week-cal-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.week-cal-text small {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.week-cal-text strong {
  font-size: 12px;
  font-weight: 700;
  color: #0d2238;
}

.week-cal-caret {
  font-size: 11px;
  color: var(--muted);
  margin-left: 2px;
}

.week-calendar-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2200;
  width: 292px;
  background: #fff;
  border: 1px solid #d5dae0;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(13, 34, 56, 0.18);
  padding: 12px;
  font-family: "DM Sans", sans-serif;
}

.week-calendar-popover[hidden] {
  display: none !important;
}

.week-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.week-cal-header strong {
  font: 700 13px "Manrope", sans-serif;
  color: #0d2238;
}

.week-cal-nav {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #0d2238;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.week-cal-nav:hover {
  background: #eaf2fb;
  border-color: var(--blue);
  color: var(--blue);
}

.week-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  padding: 0 2px;
}

.week-cal-body {
  display: grid;
  gap: 3px;
}

.week-cal-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  padding: 2px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.week-cal-row:hover {
  background: #eaf2fb;
  border-color: #93c5fd;
}

.week-cal-row.is-selected {
  background: #1769ba;
  border-color: #0c4e8a;
}

.week-cal-row.is-selected:hover {
  background: #0c4e8a;
  border-color: #0c4e8a;
}

.week-cal-row.has-report::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.week-cal-row.is-selected.has-report::after {
  background: #4ade80;
}

.week-cal-day {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #0d2238;
  border-radius: 6px;
}

.week-cal-day.is-outside {
  color: #94a3b8;
  font-weight: 400;
}

.week-cal-day.is-today {
  box-shadow: inset 0 0 0 1.5px #1769ba;
  font-weight: 700;
}

.week-cal-row.is-selected .week-cal-day {
  color: #ffffff;
  font-weight: 700;
}

.week-cal-row.is-selected .week-cal-day.is-today {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}

.week-cal-row.is-selected .week-cal-day.is-outside {
  color: rgba(255, 255, 255, 0.8);
}

.week-cal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #edf0f3;
}

.week-cal-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.week-cal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.week-cal-today-btn {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--blue);
  font: 600 11px "DM Sans", sans-serif;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.week-cal-today-btn:hover {
  background: #eaf2fb;
  border-color: var(--blue);
}

/* Admin Approval Button & Status Pill Styles */
.approve-btn {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.approve-btn:hover {
  background: #15803d;
  border-color: #15803d;
}

.approve-btn.is-approved {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.approve-btn.is-approved:hover {
  background: #bbf7d0;
  border-color: #4ade80;
}

.approval-pill {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  font: 700 11px "DM Sans", sans-serif;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 10px;
  letter-spacing: 0.02em;
}

.approval-pill.approved {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.approval-pill.pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.approval-pill.draft {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.pod-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr 0.6fr;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}

.pod-row > label {
  margin-bottom: 0;
}

.pod-meta-item {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pod-meta-item > span {
  color: #526477;
  font-size: 11px;
  font-weight: 600;
}

.pod-meta-item > strong {
  display: flex;
  align-items: center;
  min-height: 35px;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  background: var(--pale);
  padding: 6px 9px;
  color: var(--ink);
  font: 600 11.5px "DM Sans", sans-serif;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-form-grid.assign-filter-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.grade-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 700;
}

.hc-status-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.hc-status-pill.is-filled {
  background: #dcfce7;
  color: #166534;
}

.hc-status-pill.is-partial {
  background: #fef3c7;
  color: #92400e;
}

.hc-status-pill.is-open {
  background: #f1f5f9;
  color: #475569;
}

.slot-assign-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.assign-row-pod-select,
.assign-row-pod-input {
  width: 165px;
  min-width: 135px;
  padding: 6px 8px;
  font-size: 12px;
}

.associate-select-with-flag {
  display: flex;
  align-items: center;
  gap: 6px;
}

.grade-flag-btn {
  flex: 0 0 28px;
  width: 28px;
  height: 29px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.grade-flag-btn:hover:not(:disabled) {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #d97706;
}

.grade-flag-btn.is-active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}

.grade-flag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.assign-row-member-select {
  flex: 1 1 auto;
  width: 100%;
  min-width: 210px;
  max-width: 300px;
  padding: 6px 8px;
  font-size: 12px;
}

.assign-row-member-select.is-lower-grade-mode {
  border-color: #f59e0b;
  background: #fffdf5;
}

.assign-row-type-select,
.member-type-select,
.assign-row-ebs-select,
.ebs-status-select {
  width: 205px;
  min-width: 175px;
  padding: 6px 8px;
  font-size: 11.5px;
}

.assign-row-date-input {
  width: 136px;
  min-width: 128px;
  padding: 5px 8px;
  font-size: 11.5px;
}

.assign-row-comments-input,
.ebs-comments-input {
  width: 195px;
  min-width: 165px;
  min-height: 31px;
  padding: 5px 8px;
  font-size: 11.5px;
  line-height: 1.35;
  resize: vertical;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: inherit;
}

.assign-slots-table select:disabled,
.assign-slots-table input[type="text"]:disabled,
.assign-slots-table input[type="date"]:disabled,
.assign-slots-table textarea:disabled {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
  border-color: #cbd5e1;
  opacity: 1;
  cursor: default;
}

.assign-slots-table tr.assigned-slot-row {
  background: #fcfdfe;
}

.slot-kt-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.slot-action-btns {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.kt-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  margin: 0;
}

.kt-check-inline input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
}

.kt-date-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  margin: 0;
}

.kt-date-inline input[type="date"],
.kt-table-date {
  width: 132px;
  padding: 4px 6px;
  font-size: 11.5px;
}

.assign-empty-note {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
}

.assigned-chips-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assigned-member-chip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
}

.assigned-chip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.assigned-chip-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.assigned-chip-id {
  color: var(--muted);
  font-size: 11px;
}

.assigned-chip-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px dashed #e2e8f0;
}

.chip-remove-btn {
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chip-remove-btn:hover {
  background: #fecaca;
}

.ktp-legend-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}

.ktp-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ktp-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.ktp-swatch.ktp-ka,
.ktp-schedule-pill.ktp-ka,
.ktp-range-select.ktp-ka {
  background: #23272e;
  color: #ffffff;
  border-color: #23272e;
}

.ktp-swatch.ktp-shadow,
.ktp-schedule-pill.ktp-shadow,
.ktp-range-select.ktp-shadow {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.ktp-swatch.ktp-reverse,
.ktp-schedule-pill.ktp-reverse,
.ktp-range-select.ktp-reverse {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

.ktp-range-select {
  height: 32px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  min-width: 155px;
}

.ktp-range-select option {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
}

.ktp-end-select {
  height: 30px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  cursor: pointer;
}

.ktp-swatch.ktp-holiday {
  background: #fde68a;
  border: 1px solid #f59e0b;
}

.ktp-phase-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 245px;
}

.ktp-schedule-pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.ktp-date-range-inputs,
.ktp-form-date-pair {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ktp-date-input {
  height: 28px;
  padding: 2px 6px;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.ktp-end-date-input {
  min-width: 118px;
}

.ktp-date-sep {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.ktp-status-select {
  height: 28px;
  padding: 2px 6px;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
}

.slide-card ul ul.sub-bullets {
  margin: 1px 0 2px;
  padding-left: 14px;
  font-size: 0.94em;
  list-style-type: circle;
  line-height: 1.38;
}

.risk-row .cell-multiline {
  display: block;
  width: 100%;
  text-align: left;
}

.risk-row .cell-sub-bullets {
  margin: 1px 0 0;
  padding-left: 12px;
  list-style-type: circle;
  font-size: 0.94em;
  line-height: 1.3;
}

.db-tables-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.db-tables-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-right: 4px;
}

.db-table-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.db-table-pill:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.db-table-pill.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.db-table-count {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 10.5px;
  font-weight: 700;
}

.db-table-pill.active .db-table-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.db-schema-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 11.5px;
}

.db-col-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
}

.db-col-chip small {
  color: #64748b;
  font-weight: 500;
}

.db-sql-form {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.db-sql-textarea {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #0f172a;
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.45;
  resize: vertical;
}

.db-query-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
}

.db-query-alert.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.db-query-alert.is-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.db-results-table td.db-null-cell {
  color: #94a3b8;
  font-style: italic;
}

.role-badge.reviewer {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
}

.user-role.reviewer {
  background: rgba(139, 92, 246, 0.22);
  color: #ddd6fe;
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.user-portfolios-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.reviewer-portfolios-box {
  margin-top: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.reviewer-portfolios-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.reviewer-portfolios-label {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.reviewer-portfolios-actions {
  display: flex;
  gap: 6px;
}

.reviewer-portfolios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.reviewer-pf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.reviewer-pf-item:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.reviewer-pf-item.is-checked {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

.reviewer-pf-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2563eb;
  cursor: pointer;
}

/* Portfolio Applications Trigger & Overlays */
.portfolio-app-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  text-decoration: underline;
  text-decoration-color: rgba(29, 78, 216, 0.45);
  text-underline-offset: 2px;
}

.portfolio-app-trigger:hover {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e40af;
}

.portfolio-app-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
}

.app-access-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1d4ed8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.app-access-link:hover {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #1e40af;
}

.app-access-link.is-partial {
  background: #fef9c3;
  border-color: #fde047;
  color: #854d0e;
}

.app-access-link.is-complete {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.modal-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay-card {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-overlay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.modal-overlay-head h3 {
  margin: 2px 0 4px;
  font-size: 1.1rem;
  color: var(--navy);
}

.modal-overlay-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.modal-overlay-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
}

.modal-overlay-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.modal-inline-form {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

.modal-form-btn-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-bottom: 1px;
}

.app-access-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.app-access-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding: 2px;
}

.app-access-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.app-access-check-item:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.app-access-check-item.is-checked {
  background: #eff6ff;
  border-color: #2563eb;
}

.app-access-check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

.app-access-check-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.app-access-check-text strong {
  font-size: 13px;
  color: #0f172a;
  word-break: break-word;
}

.app-access-check-text small {
  font-size: 11.5px;
  color: #64748b;
  word-break: break-word;
}

.kt-summary-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.kt-summary-metric {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kt-summary-metric span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kt-summary-metric strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kt-sessions-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  max-height: calc(100vh - 330px);
  min-height: 220px;
  background: #ffffff;
}

.kt-sessions-editor-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.kt-sessions-editor-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f1f5f9;
  color: var(--navy);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.kt-sessions-editor-table td {
  padding: 8px 8px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.kt-sessions-editor-table tbody tr:last-child td {
  border-bottom: none;
}

.kt-sessions-editor-table .col-kt-idx {
  width: 36px;
  min-width: 36px;
}

.kt-sessions-editor-table .col-kt-pod {
  min-width: 150px;
}

.kt-sessions-editor-table .col-kt-type {
  min-width: 145px;
}

.kt-sessions-editor-table .col-kt-topic {
  min-width: 165px;
}

.kt-sessions-editor-table .col-kt-sme {
  min-width: 135px;
}

.kt-sessions-editor-table .col-kt-sme-org {
  min-width: 135px;
}

.kt-sessions-editor-table .col-kt-date {
  width: 128px;
  min-width: 124px;
}

.kt-sessions-editor-table .col-kt-small {
  width: 88px;
  min-width: 82px;
  text-align: center;
}

.kt-sessions-editor-table .col-kt-small input.kt-small-input {
  text-align: center;
  padding: 7px 6px;
}

.kt-sessions-editor-table .col-kt-status {
  width: 125px;
  min-width: 120px;
}

.kt-sessions-editor-table .col-kt-action {
  width: 52px;
  min-width: 52px;
  text-align: center;
}

.kt-sessions-editor-table input,
.kt-sessions-editor-table select {
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding: 7px 9px;
  font-size: 13px;
}

.icon-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-remove-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.app-group-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.app-group-pill.group-core {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.app-group-pill.group-application {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.app-group-pill.group-deploy {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.app-access-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.app-access-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.app-access-tab-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.app-access-tab-btn.is-active {
  background: #0d2238;
  color: #ffffff;
  border-color: #0d2238;
}

.app-access-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
}

.app-access-tab-btn.is-active .app-access-tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.app-access-tab-hint {
  margin: 0 0 10px 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12.5px;
}

.app-access-check-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
}

.app-access-check-main {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 0;
  flex: 0 0 220px;
  min-width: 190px;
}

.app-access-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.app-access-detail-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  flex-shrink: 0;
}

.app-access-detail-input {
  flex: 1;
  width: 100%;
  min-width: 260px;
  padding: 8px 12px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
}

.readonly-comment-cell {
  display: inline-block;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tabs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.live-preview-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--blue);
  font: 700 12.5px "DM Sans", sans-serif;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: all 0.15s ease;
}

.live-preview-link:hover {
  background: #dbeafe;
  border-color: var(--blue);
  color: var(--blue-dark);
}

.live-preview-link-icon {
  font-size: 14px;
  text-decoration: none;
}

.live-preview-link .preview-badge {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  text-decoration: none;
  padding: 2px 6px;
}

.live-preview-modal-card {
  width: min(1040px, 95vw);
  max-height: 92vh;
}

.live-preview-modal-body {
  padding: 18px 22px 20px;
  background: #f8fafc;
}

.kt-status-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.kt-status-filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 320px;
}

.kt-status-filter-input {
  width: 340px;
  max-width: 100%;
  min-width: 220px;
}

.kt-filter-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.kt-status-alert-banner {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 4px solid #d97706;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kt-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.kt-alert-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #92400e;
}

.kt-alert-icon {
  font-size: 15px;
  line-height: 1;
}

.kt-alert-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kt-alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.kt-alert-pill.is-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.kt-alert-pill.is-warning {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

.kt-alert-pill.is-neutral {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.kt-alert-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px dashed #fde68a;
  padding-top: 8px;
}

.kt-alert-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.kt-alert-row-label {
  font-weight: 700;
  color: #78350f;
  white-space: nowrap;
  padding-top: 2px;
}

.kt-alert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.kt-alert-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11.5px;
  color: #451a03;
}

/* Resourcing Tab Styles */
.resourcing-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.resourcing-phase-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resourcing-phase-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.resourcing-phase-head h4 {
  margin: 4px 0 0;
  font: 700 15px "Manrope", sans-serif;
  color: var(--ink);
}

.resourcing-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.resourcing-kpi-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resourcing-kpi-box span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.resourcing-kpi-box strong {
  font: 800 20px "Manrope", sans-serif;
  color: var(--ink);
}

.resourcing-kpi-box small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.resourcing-kpi-box.is-onboarded {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.resourcing-kpi-box.is-onboarded strong {
  color: #166534;
}

.resourcing-kpi-box.is-delayed {
  border-color: #fde68a;
  background: #fffbeb;
}

.resourcing-kpi-box.is-delayed strong {
  color: #b45309;
}

.resourcing-kpi-box.is-new {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.resourcing-kpi-box.is-new strong {
  color: #1d4ed8;
}

.resourcing-member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.resourcing-member-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.resourcing-member-tag.is-onboarded {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
}

.resourcing-member-tag.is-delayed {
  border-color: #fde68a;
  background: #fffbeb;
  color: #78350f;
}

.resourcing-mini-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
}

.resourcing-new-pill,
.resourcing-new-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
  white-space: nowrap;
}

.resourcing-new-hc-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resourcing-new-hc-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #1e3a8a;
}

.resourcing-new-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  color: #1e3a8a;
}

.kt-mini.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.slide .legend {
  left: 4.1%;
  right: 4.1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slide .legend .legend-left {
  font-weight: 700;
}

.slide .legend .legend-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.resourcing-filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Leadership Summary Tab Styles */
.leadership-summary-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.leadership-bullet-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.leadership-bullet-badge.is-ok {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.leadership-bullet-badge.is-over {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.leadership-summary-editor-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.leadership-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.leadership-editor-head label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.leadership-summary-textarea {
  min-height: 150px;
  font-size: 13px;
  line-height: 1.55;
}

.spell-field-wrap .leadership-summary-textarea + .spell-backdrop,
.leadership-summary-editor-card .spell-backdrop {
  font-size: 13px;
  line-height: 1.55;
}

.leadership-sources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.leadership-source-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leadership-source-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leadership-source-head strong {
  font-size: 12.5px;
  color: var(--ink);
}

.leadership-source-head .preview-badge {
  margin-left: auto;
}

.leadership-source-step {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.leadership-source-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}

@media (max-width: 1180px) {
  .resourcing-phase-grid {
    grid-template-columns: 1fr;
  }
  .resourcing-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1180px) {
  .settings-form-grid,
  .settings-form-grid.assign-filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .pod-row {
    grid-template-columns: 1fr 1fr;
  }
  .settings-form-grid,
  .settings-form-grid.assign-filter-grid {
    grid-template-columns: 1fr;
  }
  .settings-search {
    width: 150px;
  }
}
