:root { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #172033; background: #f3f6fb; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display:flex; align-items:center; justify-content:space-between; padding:16px max(22px, calc((100% - 1050px)/2)); background:#102b50; color:white; gap:18px; }
.brand { color:white; font-size:18px; font-weight:750; text-decoration:none; letter-spacing:.2px; }
.account { display:flex; align-items:center; gap:16px; font-size:14px; }
.account form { margin:0; }
.link-button { background:transparent; color:white; border:1px solid #8298b5; border-radius:7px; padding:7px 11px; cursor:pointer; }
.container { width:min(100% - 32px, 950px); margin:34px auto; flex:1; }
.panel { background:white; border:1px solid #e0e7f0; border-radius:14px; padding:24px; margin:18px 0; box-shadow:0 5px 20px rgba(18,42,75,.04); }
.narrow { max-width:470px; margin:34px auto; padding:30px; }
h1 { margin:0 0 8px; font-size:27px; } h2 { font-size:19px; margin:0 0 16px; }
.muted { color:#64748b; margin:0 0 20px; line-height:1.5; }
form label { display:block; font-size:14px; font-weight:650; margin:15px 0; }
input[type=email], input[type=text], input[type=password] { display:block; width:100%; margin-top:7px; border:1px solid #cbd5e1; border-radius:8px; padding:12px; font:inherit; background:#fff; }
input[type=file] { max-width:100%; padding:10px 0; }
input:focus { outline:2px solid #93c5fd; border-color:#2563eb; }
.primary { background:#1457b8; color:white; border:0; border-radius:8px; padding:11px 16px; font-weight:700; cursor:pointer; }
.primary:hover { background:#0d4698; }
.narrow .primary { width:100%; margin-top:7px; }
.below { text-align:center; color:#64748b; font-size:14px; margin:22px 0 0; }
a { color:#1457b8; }
.flash { border-radius:8px; padding:12px 15px; margin:12px 0; }
.flash.success { background:#e8f8ef; color:#166534; } .flash.error { background:#fff0f0; color:#9f1239; }
.field-error { display:block; color:#b91c1c; margin-top:-9px; }
.upload-form { display:grid; grid-template-columns:minmax(0, 1fr); justify-items:center; gap:14px; }
.upload-form input[type=file] { justify-self:start; width:min(100%, 360px); min-width:0; max-width:100%; }
.upload-form .primary { justify-self:center; min-width:128px; }
.table-wrap { overflow-x:auto; }
table { border-collapse:collapse; width:100%; font-size:14px; }
th, td { padding:13px 10px; border-bottom:1px solid #e8edf4; text-align:left; }
th { color:#64748b; font-weight:650; background:#f8fafc; }
.filename { overflow-wrap:anywhere; font-weight:600; }
.actions { white-space:nowrap; display:flex; align-items:center; gap:8px; }
.actions form { margin:0; }
.small-button, .danger { display:inline-block; padding:7px 10px; border-radius:7px; font-size:13px; text-decoration:none; cursor:pointer; }
.small-button { color:#1457b8; border:1px solid #b9cdee; background:#f5f9ff; }
.danger { color:#b91c1c; border:1px solid #fecaca; background:#fff7f7; }
.empty { padding:25px 10px; color:#64748b; text-align:center; background:#f8fafc; border-radius:8px; }
footer { text-align:center; padding:18px; color:#7b8798; font-size:12px; }
@media (max-width:600px) { .topbar { padding:14px 16px; align-items:flex-start; } .account { flex-direction:column; align-items:flex-end; gap:7px; } .panel { padding:18px; } .narrow { padding:23px; } }

/* ==========================================================
   CPPICS Customer Portal - login page
   Scoped to .login-page so other portal pages retain styling.
   ========================================================== */

.login-page {
  --portal-navy: #102b52;
  --portal-blue: #1767b1;
  --portal-cyan: #58c5df;
  margin: 0;
  min-height: 100vh;
  color: #18304c;
  background: #edf3fa;
}

.login-page .topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  min-height: 68px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  background: rgba(8, 28, 57, 0.9);
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-sizing: border-box;
}

.login-page .brand {
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: .2px;
  text-decoration: none;
}

.login-page .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.login-page footer {
  display: none;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
}

.login-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 120px clamp(34px, 6vw, 100px) 55px;
  box-sizing: border-box;
  color: #fff;
  background-color: #0d315d;
  background-image:
    linear-gradient(115deg, rgba(6, 27, 57, .91), rgba(11, 65, 113, .76)),
    url("/static/images/cppics-photonics-bg.jpg");
  background-position: center, center;
  background-size: cover;
  background-repeat: no-repeat;
}

.login-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(79, 194, 231, .18), transparent 45%),
    linear-gradient(0deg, rgba(5, 22, 47, .35), transparent 50%);
}

.intro-content {
  width: 100%;
  max-width: 610px;
  margin: 0 auto;
}

.eyebrow,
.card-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #b8edff;
}

.eyebrow::before {
  content: "";
  width: 27px;
  height: 2px;
  background: var(--portal-cyan);
}

.intro-content h1 {
  margin: 25px 0 19px;
  color: #fff;
  font-size: clamp(38px, 4.3vw, 66px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  font-weight: 760;
}

.intro-lead {
  max-width: 470px;
  margin: 0 0 13px;
  color: #e8f5ff;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.5;
  font-weight: 550;
}

.intro-description {
  max-width: 475px;
  color: #d0e0f1;
  font-size: 15px;
  line-height: 1.85;
}

.intro-points {
  display: grid;
  gap: 15px;
  margin-top: 30px;
  color: #f1f8ff;
  font-size: 14px;
}

.intro-points > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.point-mark {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  color: #b8f0ff;
  border: 1px solid rgba(184, 240, 255, .6);
  border-radius: 50%;
  font-size: 12px;
}

.institution {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 52px;
  color: #c2d7eb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.8;
}

.institution-line {
  width: 35px;
  height: 1px;
  flex: 0 0 35px;
  background: #64c9e7;
}

.login-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 100px clamp(24px, 4vw, 62px) 30px;
  background:
    radial-gradient(ellipse at 50% 10%, #fff 0%, transparent 55%),
    #edf3fa;
}

.login-card {
  width: 100%;
  max-width: 430px;
  box-sizing: border-box;
  padding: clamp(27px, 3.3vw, 43px);
  background: rgba(255, 255, 255, .97);
  border: 1px solid #e2eaf3;
  border-radius: 19px;
  box-shadow: 0 24px 70px rgba(21, 54, 91, .12);
}

.portal-mark {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  margin-bottom: 24px;
  color: #fff;
  background: linear-gradient(145deg, #155aa0, #1e8fc5);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(23, 103, 177, .2);
}

.portal-mark svg {
  width: 31px;
  height: 31px;
}

.login-card .card-kicker {
  margin: 0 0 10px;
  color: #2375b5;
  font-size: 10px;
  letter-spacing: 1.8px;
}

.login-card h2 {
  margin: 0;
  color: #142b49;
  font-size: clamp(27px, 2.6vw, 34px);
  line-height: 1.25;
  letter-spacing: -.7px;
}

.card-description {
  margin: 11px 0 29px;
  color: #687b91;
  font-size: 14px;
  line-height: 1.7;
}

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

.portal-login-form .form-label {
  display: grid;
  gap: 9px;
  color: #263d58;
  font-size: 13px;
  font-weight: 700;
}

.portal-login-form .portal-input {
  display: block;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 14px;
  color: #18304c;
  background: #fbfdff;
  border: 1px solid #d7e1ed;
  border-radius: 9px;
  outline: none;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.portal-login-form .portal-input::placeholder {
  color: #9aa9ba;
}

.portal-login-form .portal-input:focus {
  border-color: #3189c9;
  box-shadow: 0 0 0 3px rgba(49, 137, 201, .14);
}

.portal-login-form .primary.portal-submit {
  display: block;
  width: 100%;
  min-height: 49px;
  margin-top: 4px;
  padding: 13px 17px;
  color: #fff;
  background: linear-gradient(100deg, #155ba5, #167fc0);
  border: 0;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(21, 91, 165, .19);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: filter .18s ease, transform .18s ease;
}

.portal-login-form .primary.portal-submit:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.portal-login-form .primary.portal-submit:focus-visible {
  outline: 3px solid #86c9f4;
  outline-offset: 3px;
}

.login-card .field-error {
  margin-top: -13px;
  color: #b42318;
  font-size: 12px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0 20px;
  color: #94a3b5;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.1px;
  white-space: nowrap;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e7edf4;
}

.register-prompt {
  margin: 0;
  text-align: center;
  color: #687b91;
  font-size: 13px;
}

.register-prompt a {
  margin-left: 4px;
  color: #176cb0;
  font-weight: 750;
  text-decoration: none;
}

.register-prompt a:hover {
  text-decoration: underline;
}

.security-note {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  margin: 23px 0 0;
  color: #8090a3;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.security-note span {
  color: #2e8a73;
  font-size: 9px;
  line-height: 1.8;
}

.side-footer {
  margin: 22px 0 0;
  color: #8796a8;
  font-size: 10px;
  text-align: center;
  letter-spacing: .3px;
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr);
  }

  .login-intro {
    padding-left: 30px;
    padding-right: 30px;
  }

  .intro-content h1 {
    font-size: 42px;
  }

  .login-side {
    padding-left: 22px;
    padding-right: 22px;
  }

  .login-card {
    padding: 27px;
  }
}

@media (max-width: 700px) {
  .login-layout {
    display: flex;
    flex-direction: column;
  }

  .login-intro {
    min-height: auto;
    padding: 115px 25px 37px;
    background-position: center, center;
  }

  .intro-content h1 {
    margin-top: 19px;
    font-size: 39px;
  }

  .intro-description {
    font-size: 14px;
  }

  .intro-points {
    gap: 10px;
    margin-top: 21px;
    font-size: 12px;
  }

  .institution {
    margin-top: 27px;
    font-size: 9px;
  }

  .login-side {
    min-height: auto;
    padding: 35px 18px 25px;
  }

  .login-card {
    max-width: 460px;
    padding: 29px 24px;
  }

  .side-footer {
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-login-form .portal-input,
  .portal-login-form .primary.portal-submit {
    transition: none;
  }
}

/* Visual refinement: CPPICS portal login */
.login-page .topbar {
  background: #10294b;
  padding-left: 5%;
  padding-right: 5%;
}

.login-page .brand {
  color: #ffffff;
  font-size: 19px;
  letter-spacing: .3px;
}

.login-intro {
  background-color: #102b52 !important;
  background-image:
    linear-gradient(120deg, rgba(7, 27, 54, .96), rgba(12, 57, 99, .91)) !important;
}

.login-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("/static/images/cppics-photonics-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .17;
  pointer-events: none;
}

.login-intro::after {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(70, 188, 224, .12), transparent 48%) !important;
}

.intro-content {
  max-width: 560px;
}

.intro-content h1 {
  font-size: clamp(38px, 3.7vw, 56px);
  line-height: 1.12;
  letter-spacing: -1.1px;
  margin-top: 22px;
}

.intro-lead {
  max-width: 440px;
  font-size: 20px;
}

.intro-description {
  max-width: 420px;
  color: #d7e7f7;
  font-size: 14px;
  line-height: 1.9;
}

.intro-points {
  gap: 17px;
  margin-top: 28px;
}

.institution {
  margin-top: 43px;
  font-size: 9px;
  letter-spacing: .8px;
}

.login-side {
  background: #f3f6fb;
  padding-left: clamp(24px, 4vw, 65px);
  padding-right: clamp(24px, 4vw, 65px);
}

.login-card {
  max-width: 455px;
  padding: clamp(32px, 3.4vw, 45px);
  border: 1px solid #e5ebf3;
  border-radius: 17px;
  box-shadow: 0 20px 55px rgba(19, 48, 81, .09);
}

.login-card h2 {
  font-size: 32px;
}

.card-description {
  margin-bottom: 31px;
  font-size: 14px;
}

.portal-login-form {
  gap: 21px;
}

.portal-login-form .portal-input {
  min-height: 51px;
  background: #fff;
}

.portal-login-form .primary.portal-submit {
  min-height: 51px;
  margin-top: 5px;
}

@media (max-width: 700px) {
  .login-intro {
    padding-top: 110px;
  }

  .intro-content h1 {
    font-size: 39px;
  }

  .institution {
    margin-top: 28px;
  }
}

/* ===== CPPICS / IIT Madras institutional branding ===== */
.institutional-header {
  box-sizing: border-box;
  min-height: 108px;
  padding: 14px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  background: #ffffff;
  color: #10244b;
  border-bottom: 5px solid #10295b;
  box-shadow: 0 4px 16px rgba(16, 41, 91, 0.10);
}

.institutional-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1 1 500px;
  color: #0645ed;
  text-decoration: none;
}

.institutional-brand:hover {
  text-decoration: none;
}

.cppics-mark {
  width: 82px;
  height: 82px;
  object-fit: contain;
  flex-shrink: 0;
}

.institutional-title {
  font-size: clamp(17px, 2vw, 27px);
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.35px;
}

.institutional-title small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.iit-mark {
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex-shrink: 0;
}

.institutional-header .account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  color: #19315c;
}

.institutional-header .account a {
  color: #1647cf;
  font-weight: 600;
}

.institutional-header .link-button {
  border: 1px solid #b8c8e1;
  border-radius: 8px;
  padding: 9px 14px;
  color: #17325d;
  background: #ffffff;
  cursor: pointer;
}

/* Gate-photo hero for customer and administrator dashboards */
.welcome {
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 190px;
  padding: clamp(26px, 4vw, 44px);
  margin: 8px 0 26px;
  display: flex;
  align-items: center;
  border: 1px solid #d5e3f7;
  border-radius: 18px;
  color: #ffffff;
  background-image:
    linear-gradient(
      90deg,
      rgba(8, 28, 68, 0.94) 0%,
      rgba(10, 48, 110, 0.78) 48%,
      rgba(10, 48, 110, 0.22) 100%
    ),
    url("/static/images/iit-madras-gate.jpg");
  background-size: cover;
  background-position: center 48%;
  box-shadow: 0 12px 30px rgba(20, 55, 110, 0.12);
}

.welcome h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(27px, 3.2vw, 39px);
  line-height: 1.15;
  font-weight: 800;
}

.welcome .muted {
  max-width: 650px;
  color: #edf4ff;
  font-size: 16px;
  line-height: 1.7;
}

/* Clean, modern content panels */
.container {
  width: min(1180px, calc(100% - 36px));
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.panel {
  margin-bottom: 24px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #dce6f4;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(22, 49, 90, 0.055);
}

.panel h2 {
  margin-top: 0;
  color: #142b55;
  font-size: 21px;
}

.panel table {
  width: 100%;
  border-collapse: collapse;
}

.panel th {
  background: #f2f6fc;
  color: #425a7d;
  font-weight: 700;
}

.panel th,
.panel td {
  padding: 14px 12px;
  border-bottom: 1px solid #e3eaf4;
  text-align: left;
  vertical-align: middle;
}

.panel td {
  overflow-wrap: anywhere;
}

.panel .filename {
  font-weight: 600;
  color: #17325d;
}

.panel .empty {
  padding: 28px 18px;
  border: 1px dashed #cbd9ec;
  border-radius: 12px;
  background: #f6f9fd;
  color: #5a6e8d;
  text-align: center;
}

.panel button,
.panel .small-button,
.panel .primary {
  border-radius: 8px;
}

.panel .primary {
  background: #104cf5;
  color: #ffffff;
  border: 1px solid #104cf5;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
}

.panel .primary:hover {
  background: #0939c5;
}

.panel .actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .institutional-header {
    justify-content: center;
    gap: 12px;
  }

  .institutional-brand {
    flex-basis: 100%;
    gap: 12px;
  }

  .cppics-mark {
    width: 58px;
    height: 58px;
  }

  .iit-mark {
    width: 52px;
    height: 52px;
  }

  .institutional-title {
    font-size: 16px;
  }

  .institutional-header .account {
    justify-content: center;
    width: 100%;
  }

  .welcome {
    min-height: 170px;
    padding: 24px;
    background-position: center;
  }

  .container {
    width: calc(100% - 24px);
  }

  .panel {
    padding: 16px;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .panel table {
    min-width: 580px;
  }
}

/* CPPICS login hero: IIT Madras main gate background */
.login-page .login-intro {
  background-color: #102b52 !important;
  background-image:
    linear-gradient(
      115deg,
      rgba(7, 31, 68, 0.58),
      rgba(7, 48, 96, 0.30)
    ),
    url("/static/images/iit-madras-gate.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.login-page .login-intro::before {
  background-image: none !important;
  opacity: 0 !important;
}

/* CPPICS institutional login refresh — isolated to the login page */
.login-page { background:#edf4ff; color:#10264b; }
.login-page .institutional-header { position:relative; z-index:2; min-height:94px; box-sizing:border-box; padding:10px clamp(20px,5vw,84px); background:rgba(255,255,255,.98); border-bottom:4px solid #123d82; box-shadow:0 3px 18px rgba(13,43,89,.08); gap:20px; }
.login-page .institutional-brand { display:flex; align-items:center; gap:22px; min-width:0; color:#073c91; text-decoration:none; }
.login-page .cppics-mark { width:86px; height:78px; object-fit:contain; background:#fff; }
.login-page .institutional-title { display:block; max-width:1000px; font-size:clamp(17px,2vw,28px); line-height:1.2; font-weight:800; letter-spacing:-.45px; color:#073b91; }
.login-page .institutional-title small { display:block; margin-top:7px; color:#60749b; font-size:12px; font-weight:600; letter-spacing:2.5px; }
.login-page .iit-mark { width:76px; height:76px; object-fit:contain; background:#fff; flex:0 0 auto; }
.login-page .container { width:100%; max-width:none; padding:0; margin:0; }
.login-page footer { display:none; }
.cppics-login-layout { min-height:calc(100vh - 98px); display:grid; grid-template-columns:minmax(0,1.62fr) minmax(430px,1fr); background:#eaf2ff; }
.cppics-login-hero { position:relative; isolation:isolate; display:flex; align-items:center; min-height:680px; overflow:hidden; padding:55px clamp(35px,5vw,88px); box-sizing:border-box; color:white; background:#103e7d url('images/cppics-campus-roundabout.jpg') center center/cover no-repeat; }
.cppics-hero-shade { position:absolute; z-index:-1; inset:0; background:linear-gradient(105deg,rgba(3,29,75,.91) 0%,rgba(4,47,111,.76) 48%,rgba(5,47,95,.16) 100%); }
.cppics-hero-content { width:100%; max-width:650px; margin:auto; }
.cppics-eyebrow { display:flex; align-items:center; gap:12px; margin-bottom:26px; color:#b8eaff; font-size:10px; font-weight:800; letter-spacing:2.1px; }
.cppics-eyebrow span,.cppics-hero-foot span { display:inline-block; width:25px; height:2px; background:#71e0ff; }
.cppics-hero-content h1 { margin:0; color:#fff; font-size:clamp(42px,4.1vw,66px); line-height:1.04; letter-spacing:-1.9px; font-weight:750; }
.cppics-hero-content h1 strong { color:#4c8dff; font-weight:800; }
.cppics-hero-subtitle { margin:18px 0 34px; color:#e4efff; font-size:clamp(17px,1.5vw,23px); font-weight:500; }
.cppics-feature-list { display:grid; gap:24px; }
.cppics-feature { display:flex; align-items:center; gap:20px; }
.cppics-feature-icon { width:64px; height:64px; flex:0 0 64px; display:grid; place-items:center; border:1px solid rgba(190,223,255,.42); border-radius:50%; background:rgba(195,225,255,.15); box-shadow:inset 0 0 0 5px rgba(255,255,255,.035); }
.cppics-feature-icon svg { width:32px; height:32px; fill:none; stroke:#fff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.cppics-feature h3 { margin:0 0 5px; color:#fff; font-size:17px; font-weight:750; }
.cppics-feature p { margin:0; color:#e0ebff; font-size:14px; line-height:1.5; }
.cppics-hero-foot { display:flex; align-items:center; gap:13px; margin-top:36px; color:#d3e8ff; font-size:9px; font-weight:800; letter-spacing:1.2px; }
.cppics-login-side { display:flex; align-items:center; justify-content:center; min-width:0; padding:38px clamp(24px,4vw,68px); box-sizing:border-box; background:radial-gradient(circle at 100% 0%,#d7e8ff 0,transparent 35%),linear-gradient(145deg,#f6f9ff,#e7effb); }
.cppics-login-card { width:100%; max-width:510px; box-sizing:border-box; padding:36px clamp(28px,3vw,48px) 28px; border:1px solid rgba(255,255,255,.92); border-radius:19px; background:rgba(255,255,255,.96); box-shadow:0 22px 60px rgba(27,69,130,.13); }
.cppics-login-emblem { display:grid; place-items:center; width:47px; height:47px; margin-bottom:22px; border-radius:14px; color:white; background:linear-gradient(145deg,#1689f8,#0753cf); box-shadow:0 8px 20px rgba(18,100,220,.22); }
.cppics-login-emblem svg { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.cppics-card-kicker { margin:0 0 10px; color:#1265d8; font-size:10px; font-weight:850; letter-spacing:2px; }
.cppics-login-card h2 { margin:0; color:#10234b; font-size:clamp(29px,2.5vw,38px); line-height:1.15; letter-spacing:-1px; }
.cppics-card-intro { margin:10px 0 23px; color:#6d7e9d; font-size:15px; }
.cppics-login-form { display:grid; gap:14px; }
.cppics-field { display:grid; gap:9px; color:#182d50; font-size:12px; font-weight:750; }
.cppics-input-wrap { display:flex; align-items:center; gap:12px; min-height:58px; padding:0 15px; border:1px solid #d3e0f4; border-radius:11px; background:#fbfdff; transition:border-color .18s,box-shadow .18s; }
.cppics-input-wrap:focus-within { border-color:#3985ef; box-shadow:0 0 0 3px rgba(39,122,236,.12); }
.cppics-input-wrap svg { width:23px; height:23px; flex:0 0 23px; fill:none; stroke:#213c69; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.cppics-input-wrap input.cppics-input { width:100%; min-width:0; height:54px; padding:0; border:0; outline:0; box-shadow:none; background:transparent; color:#172d52; font-size:15px; }
.cppics-input-wrap input.cppics-input:focus { border:0; box-shadow:none; }
.cppics-input::placeholder { color:#8493ae; opacity:1; }
.cppics-field-error { color:#bd2637; font-size:12px; }
.cppics-form-options { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:1px 0 0; color:#263b5e; font-size:13px; }
.cppics-remember { display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.cppics-remember input { width:19px; height:19px; accent-color:#0968e8; }
.cppics-forgot { color:#075fe5; font-weight:700; cursor:default; }
.cppics-signin-button { width:100%; min-height:56px; border:0; border-radius:11px; color:white; background:linear-gradient(100deg,#087cf4,#0756e8); box-shadow:0 9px 18px rgba(9,91,221,.18); font-size:17px; font-weight:800; cursor:pointer; transition:transform .18s,box-shadow .18s; }
.cppics-signin-button:hover { transform:translateY(-1px); box-shadow:0 12px 23px rgba(9,91,221,.26); }
.cppics-or { display:flex; align-items:center; gap:17px; margin:21px 0 18px; color:#8391ad; font-size:13px; font-weight:700; }
.cppics-or span { height:1px; flex:1; background:#dce5f3; }
.cppics-register { margin:0; text-align:center; color:#657795; font-size:14px; }
.cppics-register a { margin-left:7px; color:#075fe5; font-weight:800; text-decoration:none; }
.cppics-register a:hover { text-decoration:underline; }
@media (max-width:1050px) { .cppics-login-layout { grid-template-columns:minmax(0,1.1fr) minmax(380px,.9fr); } .cppics-login-hero { padding:42px 32px; } .cppics-feature { gap:14px; } .cppics-feature-icon { width:54px;height:54px;flex-basis:54px; } .cppics-login-side { padding:28px 22px; } }
@media (max-width:760px) { .login-page .institutional-header { min-height:76px; padding:8px 14px; gap:10px; } .login-page .cppics-mark { width:55px;height:55px; } .login-page .institutional-brand { gap:10px; } .login-page .institutional-title { font-size:13px;letter-spacing:-.1px; } .login-page .institutional-title small { margin-top:4px;font-size:9px;letter-spacing:1.3px; } .login-page .iit-mark { width:48px;height:48px; } .cppics-login-layout { min-height:0; grid-template-columns:1fr; } .cppics-login-hero { min-height:520px; padding:50px 26px; background-position:center 56%; } .cppics-hero-content h1 { font-size:clamp(39px,9vw,58px); } .cppics-login-side { padding:28px 16px 38px; } .cppics-login-card { max-width:500px; padding:30px 24px 25px; } .cppics-feature-list { gap:19px; } .cppics-feature p { font-size:13px; } }
@media (max-width:390px) { .login-page .institutional-title { font-size:11px; } .login-page .cppics-mark { width:44px;height:44px; } .login-page .iit-mark { width:40px;height:40px; } .cppics-form-options { font-size:12px; } }

/* CPPICS Silicon Photonic MPW RUN 2027 dashboard banner */
.mpw-banner {
  position: relative;
  overflow: hidden;
  margin: 26px 0;
  padding: 34px 36px;
  border-radius: 18px;
  color: #ffffff;
  background:
    radial-gradient(ellipse at 90% 15%, rgba(75, 190, 220, .30), transparent 38%),
    linear-gradient(120deg, #102d50 0%, #145c78 58%, #167c89 100%);
  box-shadow: 0 12px 30px rgba(16, 45, 80, .16);
}

.mpw-banner-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.mpw-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: #b8edf3;
}

.mpw-banner h1 {
  max-width: 820px;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  line-height: 1.2;
}

.mpw-banner p {
  margin: 0 0 20px;
  color: #e1f1f7;
  font-size: 1rem;
  line-height: 1.6;
}

.mpw-year {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  color: #ffffff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
}

@media (max-width: 600px) {
  .mpw-banner {
    margin: 18px 0;
    padding: 25px 21px;
    border-radius: 14px;
  }
}

/* MPW 2027 announcement on the pre-login page */
.mpw-login-banner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: calc(100% - 40px);
  margin: 18px auto 0;
  padding: 18px 28px;
  border-radius: 14px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(110deg, #102d50 0%, #145c78 58%, #167c89 100%);
  box-shadow: 0 8px 24px rgba(16, 45, 80, .18);
}

.mpw-login-label {
  display: block;
  margin-bottom: 6px;
  color: #b8edf3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.mpw-login-banner h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(18px, 2.2vw, 29px);
  line-height: 1.3;
  font-weight: 750;
}

@media (max-width: 600px) {
  .mpw-login-banner {
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 16px 14px;
  }
}

/* Login header refinement: centered institutional title */
.login-page .institutional-header {
  position: relative;
  display: flex;
  align-items: center;
}

.login-page .institutional-brand {
  flex: 0 0 auto;
  position: static;
}

.login-page .institutional-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 300px);
  text-align: center;
  line-height: 1.25;
}

.login-page .institutional-title small {
  display: none;
}

@media (max-width: 760px) {
  .login-page .institutional-header {
    justify-content: space-between;
  }

  .login-page .institutional-title {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    text-align: center;
    font-size: 13px;
  }
}

/* Consistent institutional header on login and dashboard */
.institutional-header {
  position: relative;
  display: flex;
  align-items: center;
}

.institutional-header .institutional-brand {
  position: static;
  flex: 1 1 auto;
  min-width: 0;
}

.institutional-header .institutional-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 420px);
  text-align: center;
}

.institutional-header .institutional-title small {
  display: none;
}

.login-page .institutional-header .institutional-brand {
  flex: 1 1 auto;
}

@media (max-width: 760px) {
  .institutional-header .institutional-title {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    text-align: center;
    font-size: 13px;
  }
}

/* Shared MPW 2027 announcement: login and dashboard */
.mpw-login-banner,
.mpw-banner {
  box-sizing: border-box;
  width: 100%;
  margin: 18px 0;
  padding: 24px 28px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(
    110deg,
    #102d50 0%,
    #145c78 58%,
    #167c89 100%
  );
  box-shadow: 0 8px 24px rgba(16, 45, 80, .16);
}

.mpw-login-banner h1,
.mpw-banner h1 {
  max-width: none;
  margin: 0;
  color: #ffffff;
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 750;
  line-height: 1.3;
}

.mpw-login-label,
.mpw-banner .mpw-eyebrow {
  display: block;
  margin: 0 0 8px;
  color: #b8edf3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.mpw-banner p,
.mpw-banner .mpw-year {
  display: none;
}

@media (max-width: 600px) {
  .mpw-login-banner,
  .mpw-banner {
    margin: 12px 0;
    padding: 18px 14px;
    border-radius: 12px;
  }

  .mpw-login-banner h1,
  .mpw-banner h1 {
    font-size: 20px;
  }
}

/* Shared MPW 2027 banner: identical design before and after login */
.mpw-login-banner,
.mpw-banner {
  box-sizing: border-box;
  width: min(100% - 40px, 786px);
  min-height: 72px;
  margin: 18px auto 12px;
  padding: 16px 24px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(
    110deg,
    #102d50 0%,
    #145c78 58%,
    #167c89 100%
  );
  box-shadow: 0 8px 24px rgba(16, 45, 80, 0.16);
}

.mpw-login-banner .mpw-login-label,
.mpw-banner .mpw-eyebrow {
  display: block;
  margin: 0 0 6px;
  color: #b8edf3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.mpw-login-banner h1,
.mpw-banner h1 {
  max-width: none;
  margin: 0;
  color: #ffffff;
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 750;
  line-height: 1.3;
}

.mpw-banner p,
.mpw-banner .mpw-year {
  display: none;
}

@media (max-width: 600px) {
  .mpw-login-banner,
  .mpw-banner {
    width: calc(100% - 24px);
    min-height: 0;
    margin: 12px auto;
    padding: 16px 12px;
    border-radius: 12px;
  }

  .mpw-login-banner h1,
  .mpw-banner h1 {
    font-size: 18px;
  }
}

/* Final alignment for MPW 2027 banner on both pages */
.mpw-login-banner,
.mpw-banner {
  width: min(calc(100% - 40px), 524px);
  min-height: 72px;
  margin: 12px auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.mpw-login-banner .mpw-login-label,
.mpw-banner .mpw-eyebrow {
  margin: 0 0 6px;
  line-height: 1.2;
}

.mpw-login-banner h1,
.mpw-banner h1 {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 600px) {
  .mpw-login-banner,
  .mpw-banner {
    width: calc(100% - 24px);
    min-height: 72px;
    margin: 10px auto;
    padding: 12px;
  }
}

/* Matching two-line MPW 2027 heading on login and dashboard */
.mpw-login-banner h1,
.mpw-banner h1 {
  line-height: 1.3;
  text-wrap: balance;
}

.mpw-login-banner h1 {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}


/* Shared MPW announcement: identical on login and dashboard */
.mpw-login-banner {
  box-sizing: border-box;
  display: block;
  width: calc(100% - 36px);
  max-width: 1400px;
  margin: 12px auto 18px;
  padding: 22px 28px;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(ellipse at 90% 15%, rgba(75,190,220,.30), transparent 38%),
    linear-gradient(110deg, #102d50 0%, #145c78 58%, #167c89 100%);
  box-shadow: 0 8px 24px rgba(16,45,80,.16);
}

.mpw-login-banner h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 750;
  line-height: 1.35;
}

.mpw-login-banner h1 span {
  display: inline-block;
  color: #fff;
}

@media (max-width: 600px) {
  .mpw-login-banner {
    width: calc(100% - 24px);
    margin: 12px auto;
    padding: 18px 12px;
  }

  .mpw-login-banner h1 {
    font-size: 20px;
  }
}

/* Institutional heading with subtitle on every portal page */
.institutional-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1.2;
}

.institutional-heading {
  display: block;
  text-align: center;
}

.institutional-subtitle {
  display: block !important;
  margin: 0;
  color: #315477;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-align: center;
}

@media (max-width: 760px) {
  .institutional-heading {
    font-size: 14px;
  }

  .institutional-subtitle {
    font-size: 9px;
    letter-spacing: .08em;
  }
}

/* Full-width Standalone Tapeout 2026 banner */
.mpw-login-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 110px;
  margin: 10px 0 14px;
  padding: 20px 24px;
  border-radius: 0;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(ellipse at 90% 15%, rgba(75,190,220,.30), transparent 38%),
    linear-gradient(110deg, #102d50 0%, #145c78 58%, #167c89 100%);
  box-shadow: 0 8px 24px rgba(16,45,80,.16);
}

.mpw-login-banner h1 {
  width: 100%;
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 750;
  line-height: 1.4;
}

.mpw-login-banner h1 span {
  display: block;
  color: #ffffff;
}

@media (max-width: 600px) {
  .mpw-login-banner {
    min-height: 96px;
    padding: 18px 12px;
  }

  .mpw-login-banner h1 {
    font-size: 21px;
  }
}

/* Dashboard: full-width Standalone Tapeout announcement */
body:not(.login-page) .mpw-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 100px;
  margin: 0 0 24px;
  padding: 18px 24px;
  border-radius: 0;
  text-align: center;
}

body:not(.login-page) .mpw-banner-content {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

body:not(.login-page) .mpw-banner .mpw-eyebrow {
  display: none;
}

body:not(.login-page) .mpw-banner h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.35;
}

body:not(.login-page) .mpw-banner p,
body:not(.login-page) .mpw-banner .mpw-year {
  display: none;
}

@media (max-width: 600px) {
  body:not(.login-page) .mpw-banner {
    min-height: 90px;
    padding: 16px 12px;
  }
}

/* Full-width Standalone Tapeout 2026 banner on the logged-in dashboard */
body:not(.login-page) .mpw-banner {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 0 26px;
  padding: 24px 20px;
  border-radius: 0;
  text-align: center;
  color: #fff;
  background: linear-gradient(110deg, #102d50 0%, #145c78 58%, #167c89 100%);
  box-shadow: 0 8px 24px rgba(16, 45, 80, .15);
}

body:not(.login-page) .mpw-banner-content {
  max-width: none;
  margin: 0 auto;
}

body:not(.login-page) .mpw-eyebrow {
  display: none;
}

body:not(.login-page) .mpw-banner h1 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.4;
}

body:not(.login-page) .mpw-banner h1 .mpw-title-line {
  display: block;
}

body:not(.login-page) .mpw-banner p,
body:not(.login-page) .mpw-year {
  display: none;
}

@media (max-width: 600px) {
  body:not(.login-page) .mpw-banner {
    padding: 20px 12px;
  }
}

/* Dashboard: full-width announcement banner like the reference */
body:not(.login-page) .mpw-banner {
    display: block;
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    margin: 0 calc(50% - 50vw) 26px;
    padding: 24px 20px;
    border-radius: 0;
    text-align: center;
    background: linear-gradient(
        110deg,
        #102d50 0%,
        #145c78 58%,
        #167c89 100%
    );
    color: #fff;
}

body:not(.login-page) .mpw-banner-content {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    text-align: center;
}

body:not(.login-page) .mpw-banner h1 {
    max-width: none;
    margin: 0;
    color: #fff;
    text-align: center;
    line-height: 1.4;
}

body:not(.login-page) .mpw-banner .mpw-title-line {
    display: block;
}

body:not(.login-page) .mpw-banner .mpw-eyebrow,
body:not(.login-page) .mpw-banner p,
body:not(.login-page) .mpw-banner .mpw-year {
    display: none;
}

@media (max-width: 600px) {
    body:not(.login-page) .mpw-banner {
        padding: 20px 12px;
    }
}

/* Dashboard: full-width Standalone Tapeout 2026 announcement */
body:not(.login-page) {
  overflow-x: hidden;
}

body:not(.login-page) .mpw-login-banner {
  display: flex;
  width: 100vw;
  max-width: none;
  min-height: 124px;
  box-sizing: border-box;
  margin: 0 calc(50% - 50vw) 24px;
  padding: 22px 24px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 0;
  background: linear-gradient(110deg, #123254 0%, #15566e 55%, #16858d 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 48, 78, 0.14);
}

body:not(.login-page) .mpw-login-banner h1 {
  width: 100%;
  margin: 0;
  color: #fff;
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

body:not(.login-page) .mpw-login-banner h1 span {
  display: block;
  margin-top: 2px;
}

@media (max-width: 600px) {
  body:not(.login-page) .mpw-login-banner {
    min-height: 105px;
    padding: 18px 12px;
  }

  body:not(.login-page) .mpw-login-banner h1 {
    font-size: 22px;
  }
}

/* Reduce the gap above the full-width dashboard announcement */
body:not(.login-page) .topbar {
  margin-bottom: 0 !important;
}

body:not(.login-page) .container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body:not(.login-page) .mpw-login-banner {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

/* Final dashboard spacing refinement */
body:not(.login-page) .mpw-login-banner {
  margin-bottom: 16px !important;
  min-height: 120px;
  padding: 20px 24px;
  box-sizing: border-box;
}

body:not(.login-page) .panel {
  margin-top: 0;
  margin-bottom: 20px;
  padding: 24px 28px;
  border-radius: 16px;
  box-sizing: border-box;
}

body:not(.login-page) .panel h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

body:not(.login-page) .panel p.muted {
  margin-bottom: 18px;
}

body:not(.login-page) .container {
  padding-bottom: 12px;
}

body:not(.login-page) footer {
  margin-top: 12px;
  padding-bottom: 12px;
}

/* Match dashboard banner spacing to the login page */
body:not(.login-page) .mpw-login-banner {
  margin-top: 12px !important;
  margin-bottom: 6px !important;
  min-height: 124px;
  padding: 20px 24px;
  box-sizing: border-box;
  border-radius: 0;
}

body:not(.login-page) .container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body:not(.login-page) .mpw-login-banner h1 {
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

body:not(.login-page) .mpw-login-banner h1 span {
  display: block;
}

/* CPPICS customer account request form */
.registration-page {
  background: #f1f5fb;
  color: #172b4d;
}

.registration-page .container {
  width: min(1100px, calc(100% - 40px));
  max-width: 1100px;
  margin: 26px auto 34px;
  padding: 0;
  box-sizing: border-box;
}

.registration-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce6f4;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(23, 54, 96, .08);
}

.registration-heading {
  padding: 25px 30px 20px;
  background: linear-gradient(115deg, #102f52, #167f8d);
  color: #fff;
}

.registration-kicker {
  display: block;
  margin-bottom: 8px;
  color: #c5f2f5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.registration-heading h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.25;
}

.registration-heading p {
  margin: 0;
  color: #e2eef8;
  font-size: 13px;
  line-height: 1.6;
}

.registration-form {
  padding: 25px 30px 8px;
}

.registration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 17px;
}

.registration-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.registration-field.full-width {
  grid-column: 1 / -1;
}

.registration-field label {
  color: #243753;
  font-size: 12px;
  font-weight: 650;
}

.registration-field input,
.registration-field select {
  width: 100%;
  min-width: 0;
  height: 42px;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #243753;
  font: inherit;
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}

.registration-field input:focus,
.registration-field select:focus {
  outline: none;
  border-color: #2877e8;
  box-shadow: 0 0 0 3px rgba(40, 119, 232, .12);
}

.registration-field input::placeholder {
  color: #94a3b8;
}

.registration-field .field-error {
  margin: 0;
  color: #b42332;
  font-size: 12px;
}

.registration-submit {
  margin-top: 24px;
  min-width: 180px;
  min-height: 44px;
}

.registration-login {
  margin: 12px 30px 24px;
  color: #64748b;
  font-size: 13px;
}

.registration-login a {
  color: #075fe5;
  font-weight: 700;
  text-decoration: none;
}

.registration-login a:hover {
  text-decoration: underline;
}

.cppics-forgot-row { justify-content: flex-end; margin: 0 0 2px; }
.cppics-forgot { color: #075fe5; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.cppics-forgot:hover { text-decoration: underline; }
.password-reset-note { margin: 0 0 20px; padding: 13px 15px; border: 1px solid #d5e4f6; border-radius: 10px; background: #f3f8ff; color: #49617e; font-size: 13px; line-height: 1.55; }

@media (max-width: 640px) {
  .registration-page .container {
    width: calc(100% - 24px);
    margin: 14px auto 24px;
  }

  .registration-heading {
    padding: 22px 18px;
  }

  .registration-form {
    padding: 20px 18px 8px;
  }

  .registration-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 15px;
  }

  .registration-field.full-width {
    grid-column: auto;
  }

  .registration-login {
    margin: 12px 18px 22px;
  }
}

.link-button { display: inline-block; text-decoration: none; }

/* Dashboard section tabs */
.portal-tabs {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin: 22px 0 18px;
  padding: 7px 7px 0;
  overflow-x: auto;
  border-bottom: 4px solid #1677b8;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #f7fbfe 0%, #e5eff6 100%);
  scrollbar-width: thin;
}

.portal-tab {
  position: relative;
  flex: 1 0 auto;
  min-width: 130px;
  padding: 13px 20px 12px;
  border: 1px solid #b9cad7;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #fff 0%, #edf2f5 75%, #dce4e9 100%);
  color: #35516a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.portal-tab:hover { color: #075a91; background: #fff; }
.portal-tab:focus-visible { z-index: 1; outline: 3px solid #f4b53f; outline-offset: 2px; }
.portal-tab.is-active {
  border-color: #0d69a6;
  background: linear-gradient(180deg, #2d93ca 0%, #0877b9 72%, #0869a5 100%);
  color: #fff;
  box-shadow: 0 3px 8px rgba(8, 92, 145, .22);
}

.portal-tab-panel[hidden] { display: none; }
.portal-tab-panel .panel:first-child { margin-top: 0; }
.portal-placeholder { min-height: 220px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.portal-placeholder h2 { margin: 8px 0; }
.portal-placeholder .muted { margin-bottom: 0; }
.portal-placeholder-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e9f3fa; color: #0877b9; font-size: 25px; font-weight: 700; }
.portal-placeholder button:disabled { opacity: .55; cursor: not-allowed; }
.portal-resource-panel > .muted { margin-bottom: 18px; }
.portal-resource-list { display: grid; gap: 10px; width: 100%; }
.portal-resource-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; border: 1px solid #dce5ee; border-radius: 10px; background: #fbfdff; color: #1457b8; text-decoration: none; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.portal-resource-link:hover { border-color: #8bb9dc; background: #f3f9fd; transform: translateY(-1px); }
.portal-resource-link strong, .portal-resource-link small { display: block; }
.portal-resource-link small { margin-top: 4px; color: #64748b; font-size: 12px; font-weight: 400; }
.resource-download-icon, .resource-external-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #e9f3fa; color: #0877b9; font-size: 20px; font-weight: 700; }
.portal-faq { margin-top: 18px; }
.portal-faq ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.portal-faq li { border-top: 1px solid #e8edf4; }
.portal-faq li a { display: block; padding: 13px 2px; color: #1457b8; text-decoration: none; }
.portal-faq li a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .portal-tabs { gap: 4px; margin-top: 16px; padding: 6px 6px 0; }
  .portal-tab { min-width: max-content; padding: 11px 14px 10px; font-size: 13px; }
}

/* Login hero spacing refinements */
.login-page .cppics-hero-content { max-width: 620px; }
.login-page .cppics-eyebrow { margin-bottom: 22px; }
.login-page .cppics-hero-content h1 { margin-bottom: 28px; }
.login-page .cppics-feature-list { gap: 20px; }
.login-page .cppics-feature { gap: 22px; }
.login-page .cppics-feature h3 { margin-bottom: 6px; }
.login-page .cppics-hero-foot { margin-top: 28px; }

@media (max-width: 1050px) {
  .login-page .cppics-hero-content h1 { margin-bottom: 24px; }
  .login-page .cppics-feature-list { gap: 18px; }
  .login-page .cppics-hero-foot { margin-top: 24px; }
}

@media (max-width: 760px) {
  .login-page .cppics-hero-content h1 { margin-bottom: 22px; }
  .login-page .cppics-feature-list { gap: 17px; }
  .login-page .cppics-feature { gap: 16px; }
  .login-page .cppics-hero-foot { margin-top: 22px; }
}

/* Login form field rhythm */
.login-page .cppics-login-form { gap: 12px; }
.login-page .cppics-login-form .cppics-field { margin: 0; gap: 8px; }
.login-page .cppics-form-options { margin-top: 8px; }

/* Shared CPPICS header and page rhythm */
.site-masthead { display: flex; justify-content: center; width: 100%; overflow: hidden; background-color: #fff; }
.site-masthead-image { display: block; width: min(100%, 1500px); line-height: 0; background-color: #fff; }
.site-masthead-image img { display: block; width: 100%; height: auto; background-color: #fff; }
.site-account-nav { position: relative; z-index: 1; border-bottom: 1px solid #d7e2ef; background: #fff; box-shadow: 0 3px 14px rgba(16, 43, 80, .07); }
.site-account-nav-inner { display: flex; align-items: center; gap: 24px; width: min(100% - 40px, 1180px); min-height: 54px; margin: 0 auto; }
.site-account-nav-inner > a:not(.link-button) { color: #1457b8; font-size: 14px; font-weight: 650; text-decoration: none; }
.site-account-nav-inner > a[aria-current="page"] { color: #102b50; }
.site-account-nav-inner > a:hover { text-decoration: underline; }
.site-account-name { margin-left: auto; color: #52647e; font-size: 14px; }
.site-account-nav .link-button { border-color: #8298b5; color: #1457b8; }
.site-service-banner { display: flex; align-items: center; justify-content: center; min-height: 84px; padding: 18px 24px; background: linear-gradient(110deg, #123254 0%, #15566e 55%, #16858d 100%); color: #fff; text-align: center; }
.site-service-banner h1 { margin: 0; color: inherit; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.35; }
.site-masthead + .site-service-banner { box-shadow: 0 8px 22px rgba(15, 48, 78, .12); }
.site-service-banner + .site-account-nav { min-height: 54px; }
.site-service-banner + .container { margin-top: 22px; }
.site-account-nav + .container { margin-top: 22px; }
.login-page .site-service-banner + .container { margin-top: 0; }
.login-page .site-service-banner { min-height: 84px; }
.login-page .cppics-login-layout { min-height: calc(100vh - 224px); }
.site-account-nav-inner .link-button { padding: 7px 12px; font-size: 13px; }
.portal-tab { display: flex; align-items: center; justify-content: center; gap: 8px; }
.portal-tab-icon { font-size: 17px; line-height: 1; }
.portal-tab-svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.portal-section-heading h2 { margin: 0; }
.portal-section-icon { display: block; width: 42px; height: 42px; flex: 0 0 42px; padding: 9px; box-sizing: border-box; border-radius: 12px; background: #e9f3fa; fill: none; stroke: #0877b9; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.portal-menu-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; box-sizing: border-box; border-radius: 12px; background: #e9f3fa; color: #0877b9; font-size: 20px; font-weight: 700; line-height: 1; }
.portal-section-heading .muted { margin: 5px 0 0; }
.portal-mail { padding-top: 22px; padding-bottom: 24px; }
.portal-mail .portal-section-heading { align-items: center; margin-bottom: 10px; }
.portal-mail-heading h3 { margin: 0; font-size: 17px; }
.portal-mail-heading .muted { margin: 5px 0 0; }
.portal-mail .portal-menu-icon { flex: 0 0 42px; }
.portal-mail-link { display: inline-block; margin-left: 53px; color: #1457b8; font-size: 15px; font-weight: 650; text-decoration: none; }
.portal-mail-link:hover { text-decoration: underline; }
.portal-faq { margin-top: 18px; }
.portal-tab-panel .panel + .panel { margin-top: 18px; }
.registration-page .container { margin-top: 24px; }
.registration-card { margin-bottom: 24px; }

@media (max-width: 700px) {
  .site-account-nav-inner { width: calc(100% - 28px); min-height: 50px; gap: 13px; flex-wrap: wrap; padding: 8px 0; }
  .site-account-nav-inner > a:not(.link-button), .site-account-name { font-size: 12px; }
  .site-account-name { margin-left: auto; }
  .site-account-nav-inner .link-button { padding: 6px 9px; }
  .site-service-banner { min-height: 72px; padding: 14px 16px; }
  .site-service-banner h1 { font-size: 21px; }
  .site-service-banner + .site-account-nav { min-height: 50px; }
  .site-service-banner + .container { margin-top: 16px; }
  .site-account-nav + .container { margin-top: 16px; }
  .login-page .site-service-banner { min-height: 72px; }
  .portal-tabs { gap: 4px; }
  .portal-tab { min-width: max-content; padding-right: 13px; padding-left: 13px; }
}

@media (max-width: 760px) {
  .login-page .cppics-login-layout { min-height: 0; }
}

/* MPW deadlines, run selector, and customer support message form */
.gds-deadlines { width: min(calc(100% - 36px), 900px); margin: 6px auto 8px; padding: 5px 8px 6px; border: 1px solid #c8dbf4; border-radius: 12px; background: linear-gradient(110deg, #edf5ff, #f8fbff); box-shadow: 0 5px 15px rgba(27,69,130,.07); }
.gds-deadline-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px 0; color: #35506f; font-size: 11px; line-height: 1.15; }
.gds-deadline-table caption { padding: 0 4px 3px; color: #29476b; font-size: 11px; font-weight: 750; line-height: 1.2; text-align: center; }
.gds-deadline-table th { padding: 3px 4px 4px; color: #125fc4; font-size: 12px; font-weight: 800; line-height: 1.1; text-align: center; }
.gds-deadline-table td { padding: 5px 3px; border: 1px solid #d8e5f6; background: rgba(255,255,255,.88); text-align: center; white-space: nowrap; }
.gds-deadline-table tr:first-child td { border-radius: 8px 8px 0 0; }
.gds-deadline-table tr:last-child td { border-top: 0; border-radius: 0 0 8px 8px; }
.gds-deadline-table td span { color: #125fc4; font-weight: 800; }
.gds-deadline-table td.tba { vertical-align: middle; color: #60749b; font-weight: 750; letter-spacing: .04em; }
.login-page .cppics-hero-content h1.cppics-portal-title { font-size: clamp(44px,5vw,78px); line-height: 1.06; letter-spacing: -2.6px; word-spacing: .04em; }
.login-page .cppics-login-layout { min-height: calc(100vh - 160px); }
.pdk-run-picker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.pdk-run-picker label { margin: 0; color: #263b5e; font-size: 13px; font-weight: 700; }
.pdk-run-select { min-width: 190px; padding: 10px 36px 10px 12px; border: 1px solid #cbd9eb; border-radius: 9px; background: #fff; color: #17345e; font: inherit; font-size: 14px; font-weight: 650; }
.pdk-run-select:focus, .portal-mail-input:focus, .portal-mail-body:focus { outline: 3px solid rgba(39,122,236,.15); border-color: #3985ef; }
.pdk-run-resources[hidden] { display: none; }
.portal-mail-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; max-width: 850px; }
.portal-mail-form label { margin: 8px 0 0; color: #263b5e; font-size: 13px; font-weight: 700; }
.portal-mail-input, .portal-mail-body { width: 100%; border: 1px solid #d3e0f4; border-radius: 10px; background: #fbfdff; color: #172d52; font: inherit; font-size: 14px; }
.portal-mail-input { min-height: 44px; padding: 10px 12px; }
.portal-mail-body { min-height: 140px; padding: 12px; resize: vertical; line-height: 1.5; }
.portal-mail-submit { justify-self: start; min-width: 145px; margin-top: 8px; }
@media (max-width: 640px) {
  .gds-deadlines { width: calc(100% - 24px); margin: 5px auto 7px; padding: 4px 3px 5px; border-radius: 10px; }
  .gds-deadline-table { border-spacing: 2px 0; font-size: 9px; }
  .gds-deadline-table caption { padding: 0 2px 3px; font-size: 9px; }
  .gds-deadline-table th { padding: 3px 1px; font-size: 10px; }
  .gds-deadline-table td { padding: 4px 1px; white-space: nowrap; }
  .login-page .cppics-hero-content h1.cppics-portal-title { font-size: clamp(40px,10vw,60px); letter-spacing: -1.8px; }
  .pdk-run-picker { align-items: flex-start; flex-direction: column; gap: 7px; }
  .pdk-run-select { width: 100%; }
}
@media (max-width: 760px) { .login-page .cppics-login-layout { min-height: 0; } }
body.registration-page .container { margin-top: 30px !important; }
@media (max-width: 640px) { body.registration-page .container { margin-top: 18px !important; } }

/* Photonics feature artwork */
.cppics-feature-icon svg.feature-visual { width: 40px; height: 40px; overflow: visible; fill: none; stroke: none; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.feature-visual .visual-chip { fill: rgba(104,197,255,.08); stroke: rgba(225,248,255,.92); stroke-width: 1.35; }
.feature-visual .visual-chip-pins { fill: none; stroke: rgba(225,248,255,.9); stroke-width: 1.35; }
.feature-visual .visual-photon-halo { fill: none; stroke: #54dfff; stroke-width: 5; opacity: .35; filter: blur(1.2px); }
.feature-visual .visual-photon-flow { fill: none; stroke: url(#optic-spectrum); stroke-width: 2.05; filter: drop-shadow(0 0 3px rgba(91,226,255,.9)); }
.feature-visual .visual-light-point { fill: #ecfdff; stroke: #55ddff; stroke-width: 1.1; filter: drop-shadow(0 0 3px rgba(96,225,255,.95)); }
.feature-visual .visual-tech-trace { fill: none; stroke: url(#tech-spectrum); stroke-width: 1.8; filter: drop-shadow(0 0 2px rgba(86,214,255,.7)); }
.feature-visual .visual-tech-core { fill: rgba(70,169,255,.18); stroke: #d8f7ff; stroke-width: 1.5; filter: drop-shadow(0 0 4px rgba(81,213,255,.8)); }
.feature-visual .visual-core-cross { fill: none; stroke: #e8fdff; stroke-width: 1.5; }
.feature-visual .visual-tech-node { fill: #d7fbff; stroke: #4bd5ff; stroke-width: 1.35; filter: drop-shadow(0 0 3px rgba(77,213,255,.95)); }
.feature-visual .visual-globe-outline { fill: rgba(80,166,255,.08); stroke: #e3f8ff; stroke-width: 1.5; }
.feature-visual .visual-globe-grid { fill: none; stroke: rgba(171,232,255,.82); stroke-width: 1.1; }
.feature-visual .visual-global-route { fill: none; stroke: url(#globe-spectrum); stroke-width: 1.9; filter: drop-shadow(0 0 3px rgba(91,226,255,.9)); }
.feature-visual .visual-global-node { fill: #e6fdff; stroke: #55dcff; stroke-width: 1.2; filter: drop-shadow(0 0 3px rgba(96,225,255,.95)); }
.feature-visual .visual-flow { stroke-dasharray: 5 4; animation: photon-drift 3.2s linear infinite; }
.feature-visual .visual-pulse { transform-box: fill-box; transform-origin: center; animation: photon-pulse 2.4s ease-in-out infinite; }
.feature-visual .delay-one { animation-delay: .55s; }
.feature-visual .delay-two { animation-delay: 1.1s; }
.cppics-feature:hover .cppics-feature-icon { border-color: rgba(166,232,255,.75); background: rgba(128,204,255,.2); }
@keyframes photon-drift { to { stroke-dashoffset: -36; } }
@keyframes photon-pulse { 50% { opacity: .5; transform: scale(.78); } }
@media (prefers-reduced-motion: reduce) { .feature-visual .visual-flow, .feature-visual .visual-pulse { animation: none; } }

/* Compact expandable GDS submission calendar */
.gds-deadlines { padding: 0; overflow: hidden; }
.gds-deadlines > summary { display: flex; align-items: center; gap: 12px; min-height: 39px; padding: 8px 14px; color: #29476b; font-size: 12px; font-weight: 750; line-height: 1.25; list-style: none; cursor: pointer; }
.gds-deadlines > summary::-webkit-details-marker { display: none; }
.gds-deadlines > summary::marker { content: ""; }
.gds-deadline-summary-title { flex: 1 1 auto; }
.gds-deadline-years { color: #6b82a2; font-size: 11px; font-weight: 650; white-space: nowrap; }
.gds-deadline-chevron { width: 8px; height: 8px; flex: 0 0 8px; border-right: 2px solid #1767b1; border-bottom: 2px solid #1767b1; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.gds-deadlines[open] > summary { border-bottom: 1px solid #d8e5f6; }
.gds-deadlines[open] .gds-deadline-chevron { transform: rotate(225deg) translate(-2px,-1px); }
.gds-calendar-content { padding: 5px 8px 7px; }
.gds-deadline-table { margin: 0; }
.gds-deadline-table caption.gds-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .gds-deadlines { padding: 0; }
  .gds-deadlines > summary { min-height: 36px; gap: 7px; padding: 7px 9px; font-size: 10px; }
  .gds-deadline-years { font-size: 9px; }
  .gds-calendar-content { padding: 3px 4px 5px; }
}
@media (max-width: 360px) { .gds-deadline-years { display: none; } }

/* Higher-visibility expandable deadline bar */
.gds-deadlines { border-color: #a9c8ec; background: #fff; box-shadow: 0 7px 20px rgba(27,69,130,.11); }
.gds-deadlines > summary { min-height: 52px; gap: 12px; padding: 9px 14px; background: linear-gradient(105deg, #fff 0%, #f2f8ff 100%); color: #173b68; font-size: 14px; font-weight: 800; }
.gds-deadlines > summary:hover { background: linear-gradient(105deg, #f8fbff 0%, #e9f3ff 100%); }
.gds-deadlines > summary:focus-visible { outline: 3px solid #78b8ff; outline-offset: -3px; }
.gds-calendar-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 9px; background: #e5f1ff; color: #0878d1; }
.gds-calendar-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gds-deadline-summary-title { color: #173b68; font-size: 14px; }
.gds-deadline-years { padding: 5px 9px; border-radius: 999px; background: #eaf3ff; color: #1767b1; font-size: 12px; font-weight: 750; }
.gds-deadline-chevron { position: relative; display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 0; border-radius: 9px; background: #e5f1ff; transform: none; }
.gds-deadlines[open] .gds-deadline-chevron { transform: none; }
.gds-deadline-chevron::before { width: 8px; height: 8px; border-right: 2px solid #1767b1; border-bottom: 2px solid #1767b1; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.gds-deadlines[open] .gds-deadline-chevron::before { transform: rotate(225deg) translate(-2px,-1px); }
@media (max-width: 640px) {
  .gds-deadlines > summary { min-height: 46px; gap: 8px; padding: 6px 9px; font-size: 12px; }
  .gds-calendar-icon, .gds-deadline-chevron { width: 28px; height: 28px; flex-basis: 28px; }
  .gds-calendar-icon svg { width: 18px; height: 18px; }
  .gds-deadline-summary-title { font-size: 12px; }
  .gds-deadline-years { padding: 4px 6px; font-size: 10px; }
}
@media (max-width: 360px) { .gds-deadline-years { display: none; } }

/* Always-visible GDS calendar */
.gds-deadline-heading { display:flex; align-items:center; gap:12px; min-height:52px; padding:9px 14px; border-bottom:1px solid #d8e5f6; background:linear-gradient(105deg,#fff 0%,#f2f8ff 100%); color:#173b68; font-size:14px; font-weight:800; line-height:1.25; }
.gds-deadline-heading .gds-deadline-summary-title { flex:1 1 auto; color:#173b68; font-size:14px; }
.gds-deadline-heading .gds-calendar-icon { width:32px; height:32px; flex:0 0 32px; }
.gds-deadline-heading .gds-deadline-years { padding:5px 9px; border-radius:999px; background:#eaf3ff; color:#1767b1; font-size:12px; font-weight:750; }

/* MPW booking request builder */
.mpw-booking-panel { padding:26px; }
.mpw-booking-panel > .portal-section-heading { align-items:center; margin-bottom:20px; }
.mpw-booking-panel > .portal-section-heading h2 { margin:0 0 4px; }
.mpw-booking-panel > .portal-section-heading .muted { margin:0; }
.mpw-booking-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); gap:28px; align-items:start; }
.mpw-booking-form { display:grid; gap:9px; min-width:0; }
.booking-step-label { display:flex; align-items:center; gap:11px; margin:9px 0 1px; color:#17345e; }
.booking-step-label > span { display:grid; width:30px; height:30px; flex:0 0 30px; place-items:center; border-radius:50%; background:#e9f3fa; color:#0877b9; font-size:13px; font-weight:800; }
.booking-step-label strong,.booking-step-label small { display:block; }
.booking-step-label strong { font-size:14px; }
.booking-step-label small,.booking-help { color:#647895; font-size:12px; line-height:1.5; }
.booking-field-label { display:grid; gap:6px; color:#263b5e; font-size:13px; font-weight:700; }
.booking-input { width:100%; min-height:44px; box-sizing:border-box; padding:10px 12px; border:1px solid #cbd9eb; border-radius:9px; background:#fbfdff; color:#17345e; font:inherit; font-size:14px; }
.booking-input:focus { outline:3px solid rgba(39,122,236,.15); border-color:#3985ef; }
.booking-delivery-input:read-only { background:#f2f6fb; color:#60738d; }
.booking-distance { margin:0; padding:10px 12px; border-radius:9px; background:#f3f8ff; color:#506b8f; font-size:13px; }
.booking-distance strong { color:#075fc5; }
.booking-cancel-edit { justify-self:start; color:#1769bd; font-size:13px; font-weight:700; }
.booking-customer-filter { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:14px 0 18px; }
.booking-customer-filter label { color:#263b5e; font-size:13px; font-weight:700; }
.booking-customer-filter select { min-width:min(380px,100%); min-height:40px; padding:8px 11px; border:1px solid #cbd9eb; border-radius:8px; background:#fbfdff; color:#17345e; font:inherit; }
.booking-help { margin:0 0 3px; }
.booking-dimensions { display:grid; grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr); gap:10px; align-items:end; }
.booking-dimension-times { padding-bottom:12px; color:#7a8ca7; text-align:center; }
.booking-quantity { max-width:180px; }
.mpw-booking-submit { justify-self:start; min-height:46px; margin-top:10px; padding:11px 20px; }
.mpw-booking-submit span { margin-left:8px; }
.booking-summary { overflow:hidden; border:1px solid #cfe0f4; border-radius:16px; background:linear-gradient(155deg,#f5faff 0%,#fff 54%,#f8fbff 100%); box-shadow:0 9px 24px rgba(27,69,130,.08); }
.booking-summary { padding-top:4px; }
.booking-summary h3 { margin:17px 18px 9px; color:#17345e; font-size:16px; }
.booking-summary-list { display:grid; gap:0; margin:0 18px; }
.booking-summary-list > div { display:flex; justify-content:space-between; gap:14px; padding:8px 0; border-bottom:1px solid #e8eef6; font-size:12px; }
.booking-summary-list > [hidden] { display:none !important; }
.booking-summary-list dt { color:#60738d; }
.booking-summary-list dd { margin:0; color:#17345e; font-weight:700; text-align:right; }
.booking-summary-total { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 18px; padding:15px 0; color:#17345e; }
.booking-summary-total span { font-size:13px; font-weight:750; }
.booking-summary-total small { display:block; margin-top:3px; color:#647895; font-size:10px; font-weight:500; }
.booking-summary-total strong { color:#075fc5; font-size:20px; white-space:nowrap; }
.booking-price-note { margin:0; padding:12px 18px 15px; border-top:1px solid #e4edf7; background:#f7faff; color:#647895; font-size:12px; line-height:1.6; }
.booking-benchmark { margin-top:8px; }
.booking-benchmark summary { display:inline-flex; align-items:center; gap:6px; color:#075fc5; cursor:pointer; font-weight:750; }
.booking-benchmark summary:hover { text-decoration:underline; }
.booking-benchmark p { margin:8px 0 0; padding:10px 12px; border-left:3px solid #83b7e9; border-radius:0 8px 8px 0; background:#fff; color:#536986; }
.booking-benchmark a { color:#075fc5; font-weight:700; }
.booking-requests-panel > .portal-section-heading { align-items:center; }
.booking-requests-panel > .portal-section-heading h2 { margin:0 0 4px; }
.booking-requests-panel > .portal-section-heading .muted { margin:0; }
@media (max-width:900px) { .mpw-booking-layout { grid-template-columns:minmax(0,1fr); } }
@media (max-width:640px) {
  .gds-deadline-heading { min-height:46px; gap:8px; padding:6px 9px; font-size:12px; }
  .gds-deadline-heading .gds-deadline-summary-title { font-size:12px; }
  .gds-deadline-heading .gds-deadline-years { padding:4px 6px; font-size:10px; }
  .gds-deadline-heading .gds-calendar-icon { width:28px; height:28px; flex-basis:28px; }
  .gds-calendar-content { padding:3px 4px 5px; }
  .mpw-booking-panel { padding:19px 16px; }
  .mpw-booking-layout { gap:18px; }
  .booking-dimensions { gap:6px; }
  .booking-summary { display:block; }
  .booking-summary-total strong { font-size:18px; }
}


/* Refined GDS deadline calendar */
.gds-deadlines {
  width: min(calc(100% - 40px), 920px); margin: 12px auto 18px; padding: 0; overflow: hidden;
  border: 1px solid #b9d2f1; border-radius: 18px; background: linear-gradient(145deg, #fff 0%, #f6faff 100%);
  box-shadow: 0 12px 30px rgba(24,70,126,.12), 0 2px 6px rgba(24,70,126,.05);
}
.gds-deadline-heading { min-height: 66px; gap: 14px; padding: 12px 18px; border-bottom: 1px solid #dfebf9; background: linear-gradient(105deg,#fff 0%,#f0f7ff 55%,#eaf4ff 100%); }
.gds-deadline-heading .gds-calendar-icon { width: 40px; height: 40px; flex-basis: 40px; border: 1px solid #d7e9fb; border-radius: 13px; background: linear-gradient(145deg,#f2f9ff,#dfedfc); box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(22,104,179,.08); }
.gds-deadline-heading .gds-calendar-icon svg { width: 21px; height: 21px; stroke-width: 1.8; }
.gds-deadline-heading .gds-deadline-summary-title { font-size: 15px; letter-spacing: -.01em; }
.gds-deadline-heading .gds-deadline-years { padding: 7px 12px; border: 1px solid #dceafb; background: #f8fbff; box-shadow: inset 0 1px 0 #fff; font-size: 12px; }
.gds-calendar-content { padding: 9px 12px 12px; background: linear-gradient(180deg,rgba(239,247,255,.65),rgba(255,255,255,.6)); }
.gds-deadline-table { border-spacing: 7px 5px; color: #3d5674; font-size: 12px; line-height: 1.2; }
.gds-deadline-table th { padding: 7px 5px; border: 1px solid #e0ebf8; border-radius: 9px; background: #f3f8fe; color: #155eae; font-size: 12px; letter-spacing: .035em; }
.gds-deadline-table td { padding: 7px 4px; border: 1px solid #e1ebf7; border-radius: 10px !important; background: rgba(255,255,255,.94); box-shadow: 0 2px 5px rgba(24,70,126,.035); transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.gds-deadline-table tbody tr + tr td { border-top: 1px solid #e1ebf7; }
.gds-deadline-table td:hover { transform: translateY(-1px); border-color: #b8d5f4; background: #fff; box-shadow: 0 5px 12px rgba(24,70,126,.08); }
.gds-date-entry { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 27px; white-space: nowrap; }
.gds-date-month { color: #506985; font-weight: 600; }
@media (max-width: 640px) {
  .gds-deadlines { width: calc(100% - 24px); margin: 9px auto 13px; border-radius: 14px; }
  .gds-deadline-heading { min-height: 54px; gap: 9px; padding: 8px 10px; }
  .gds-deadline-heading .gds-calendar-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; }
  .gds-deadline-heading .gds-calendar-icon svg { width: 18px; height: 18px; }
  .gds-deadline-heading .gds-deadline-summary-title { font-size: 12px; }
  .gds-deadline-heading .gds-deadline-years { padding: 5px 7px; font-size: 10px; }
  .gds-calendar-content { padding: 5px 4px 7px; }
  .gds-deadline-table { border-spacing: 3px 4px; font-size: 10px; }
  .gds-deadline-table th { padding: 6px 2px; font-size: 10px; }
  .gds-deadline-table td { padding: 5px 1px; }
  .gds-date-entry { gap: 3px; min-height: 25px; }
  .gds-date-month { font-size: clamp(8px, 2.5vw, 10px); }
  }
@media (max-width: 350px) {
  .gds-deadline-heading .gds-deadline-summary-title { font-size: 11px; }
  .gds-deadline-heading .gds-calendar-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .gds-deadline-years { display: none; } .gds-deadline-table { border-spacing: 2px 4px; }
  .gds-date-entry { gap: 2px; } .gds-date-month { font-size: 8px; }
}

/* Compact deadline strip and restored FAQ panel */
.gds-deadlines { width: min(calc(100% - 40px), 1120px); margin: 8px auto 12px; }
.gds-deadline-heading { min-height: 56px; padding: 8px 12px; }
.gds-calendar-content { padding: 4px 7px; }
.gds-deadline-table { border-spacing: 4px 2px; font-size: 10px; }
.gds-deadline-table th { padding: 3px 4px; font-size: 10px; }
.gds-deadline-table td { padding: 2px 3px; }
.gds-date-entry { min-height: 20px; gap: 4px; }
.admin-section-title { margin: 0 0 14px; color: #17345e; }
.portal-faq ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.portal-faq li { border-top: 1px solid #e8edf4; }
.portal-faq li details { padding: 13px 2px; }
.portal-faq li summary { color: #1457b8; font-weight: 700; cursor: pointer; }
.portal-faq li p { margin: 10px 0 0; color: #536782; line-height: 1.6; }
.portal-faq .faq-category + .faq-category { margin-top: 22px; }
.portal-faq .faq-category h3 { margin: 0; padding: 0 0 8px; color: #173f6b; font-size: 1rem; }

/* Cohesive icon alignment and compact, accessible FAQ groups */
.portal-section-heading { align-items: center; column-gap: 14px; }
.portal-section-heading > div { min-width: 0; }
.portal-menu-icon,
.portal-placeholder-icon,
.resource-download-icon,
.resource-external-icon,
.gds-calendar-icon,
.mailbox-empty-icon {
  display: inline-grid;
  place-items: center;
  align-self: center;
  line-height: 1;
}
.portal-section-icon { display: grid; place-items: center; align-self: center; }
.portal-faq .portal-section-heading { align-items: center; margin-bottom: 20px; }
.portal-faq .portal-section-heading > div { display: flex; min-height: 42px; flex-direction: column; justify-content: center; }
.portal-faq .portal-menu-icon { margin: 0; }
.portal-faq details.faq-category {
  overflow: hidden;
  border: 1px solid #dce8f5;
  border-radius: 12px;
  background: linear-gradient(145deg, #fbfdff, #fff 72%);
  box-shadow: 0 3px 12px rgba(25, 69, 117, .035);
}
.portal-faq details.faq-category + details.faq-category { margin-top: 11px; }
.portal-faq details.faq-category > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 17px;
  color: #173f6b;
  background: #f6faff;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  transition: background-color .18s ease, color .18s ease;
}
.portal-faq details.faq-category > summary::-webkit-details-marker { display: none; }
.portal-faq details.faq-category > summary::marker { content: ""; }
.portal-faq details.faq-category > summary::after {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid #d7e7f8;
  border-radius: 50%;
  background: #fff;
  color: #0877b9;
  content: "+";
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}
.portal-faq details.faq-category[open] > summary {
  border-bottom: 1px solid #e3edf8;
  color: #0756ad;
  background: #f1f7ff;
}
.portal-faq details.faq-category[open] > summary::after { content: "−"; }
.portal-faq details.faq-category > summary:hover { color: #0756ad; background: #eff6ff; }
.portal-faq details.faq-category > summary:focus-visible { outline: 3px solid rgba(19, 112, 205, .3); outline-offset: -3px; }
.portal-faq details.faq-category > ul { padding: 0 17px 8px; }
.portal-faq details.faq-category li:first-child { border-top: 0; }
@media (max-width: 640px) {
  .portal-section-heading { gap: 11px; }
  .portal-faq details.faq-category > summary { min-height: 50px; padding: 12px 13px; font-size: .96rem; }
  .portal-faq details.faq-category > ul { padding-right: 13px; padding-left: 13px; }
}
@media (max-width: 760px) { .gds-deadlines { width: calc(100% - 24px); } }

/* Keep the desktop deadline heading horizontal and give its label enough room. */
.gds-deadlines {
  grid-template-columns: minmax(300px, .9fr) minmax(0, 2.35fr);
}
.gds-deadline-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "kicker years" "title years";
  align-content: center;
  align-items: center;
  column-gap: 10px;
  row-gap: 5px;
  padding: 12px 14px 12px 28px;
}
.gds-deadline-kicker { grid-area: kicker; }
.gds-deadline-heading .gds-deadline-summary-title {
  grid-area: title;
  white-space: nowrap;
  font-size: 14px;
}
.gds-deadline-heading .gds-deadline-years {
  grid-area: years;
  justify-self: end;
}
@media (max-width: 760px) {
  .gds-deadlines { grid-template-columns: minmax(0, 1fr); }
  .gds-deadline-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "kicker years" "title years";
    row-gap: 3px;
    min-height: 58px;
    padding: 8px 12px 8px 24px;
  }
  .gds-deadline-heading .gds-deadline-summary-title {
    white-space: normal;
    font-size: 13px;
  }
}
.admin-customer-details { margin-top: 8px; max-width: 480px; }
.admin-customer-details summary { color: #075fc6; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-customer-details dl { display: grid; grid-template-columns: minmax(105px, .7fr) minmax(0, 1.3fr); gap: 4px 10px; margin: 9px 0 2px; padding: 10px; border: 1px solid #e1eaf5; border-radius: 9px; background: #f8fbff; font-size: 12px; }
.admin-customer-details dt { color: #667b96; font-weight: 700; }
.admin-customer-details dd { margin: 0; color: #263b5e; overflow-wrap: anywhere; }


/* Wide, low-profile deadline strip */
.gds-deadlines {
  display: grid;
  grid-template-columns: minmax(275px, .78fr) minmax(0, 2.4fr);
  align-items: stretch;
  width: min(calc(100% - 40px), 1520px);
  margin: 10px auto 14px;
  border-radius: 15px;
}
.gds-deadline-heading {
  min-width: 0;
  min-height: 0;
  gap: 10px;
  padding: 10px 14px;
  border-right: 1px solid #dfebf9;
  border-bottom: 0;
}
.gds-deadline-heading .gds-calendar-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; }
.gds-deadline-heading .gds-calendar-icon svg { width: 19px; height: 19px; }
.gds-deadline-heading .gds-deadline-summary-title { min-width: 0; font-size: 13px; line-height: 1.25; }
.gds-deadline-heading .gds-deadline-years { padding: 5px 8px; font-size: 10px; }
.gds-calendar-content { display: flex; align-items: center; min-width: 0; padding: 5px 8px; }
.gds-deadline-table { width: 100%; border-spacing: 5px 3px; font-size: 11px; }
.gds-deadline-table th { padding: 4px 5px; font-size: 11px; }
.gds-deadline-table td { padding: 3px 4px; }
.gds-date-entry { min-height: 23px; gap: 5px; }
@media (max-width: 760px) {
  .gds-deadlines { grid-template-columns: minmax(0, 1fr); width: calc(100% - 24px); margin: 9px auto 13px; }
  .gds-deadline-heading { min-height: 48px; gap: 9px; padding: 7px 10px; border-right: 0; border-bottom: 1px solid #dfebf9; }
  .gds-deadline-heading .gds-calendar-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .gds-deadline-heading .gds-deadline-summary-title { font-size: 12px; }
  .gds-calendar-content { padding: 4px 5px 6px; }
  .gds-deadline-table { border-spacing: 3px 3px; font-size: 10px; }
  .gds-deadline-table th { padding: 5px 2px; font-size: 10px; }
  .gds-deadline-table td { padding: 4px 1px; }
  .gds-date-entry { gap: 3px; min-height: 23px; }
  .gds-date-month { font-size: clamp(8px, 2.5vw, 10px); }
  }
@media (max-width: 350px) {
  .gds-deadline-heading .gds-deadline-summary-title { font-size: 11px; }
  .gds-deadline-years { display: none; }
  .gds-deadline-table { border-spacing: 2px 3px; }
  .gds-date-entry { gap: 2px; }
  .gds-date-month { font-size: 8px; }
}


/* Keep day numbers crisp and unboxed */
.gds-deadline-table td .gds-date-month { color: #506985; font-weight: 600; }
.gds-deadline-table td 

/* Refined, indented calendar heading without the calendar icon */
.gds-deadline-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 14px 20px 14px 16px;
  border-right: 1px solid #dce8f7;
  border-bottom: 0;
  background: linear-gradient(145deg, #fff 0%, #f2f8ff 100%);
}
.gds-deadline-kicker {
  color: #2476b8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1.2;
}
.gds-deadline-heading .gds-deadline-summary-title {
  margin: 0;
  color: #173b68;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.18;
}
.gds-deadline-heading .gds-deadline-years {
  padding: 4px 9px;
  border: 1px solid #d4e5f8;
  border-radius: 999px;
  background: #fff;
  color: #47719d;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .025em;
  box-shadow: 0 2px 5px rgba(24,70,126,.04);
}
@media (max-width: 760px) {
  .gds-deadline-heading {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "kicker years" "title years";
    align-items: center;
    column-gap: 12px;
    row-gap: 3px;
    min-height: 58px;
    padding: 8px 14px 8px 14px;
    border-right: 0;
    border-bottom: 1px solid #dce8f7;
  }
  .gds-deadline-kicker { grid-area: kicker; font-size: 8px; }
  .gds-deadline-heading .gds-deadline-summary-title { grid-area: title; font-size: 14px; }
  .gds-deadline-heading .gds-deadline-years { grid-area: years; }
}
@media (max-width: 350px) {
  .gds-deadline-heading { column-gap: 6px; padding-right: 9px; }
  .gds-deadline-heading .gds-deadline-summary-title { font-size: 12px; }
  .gds-deadline-heading .gds-deadline-years { padding: 4px 6px; font-size: 9px; }
}
.account-dropdown { position: relative; margin-left: auto; }
.account-dropdown > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid #cbd9eb; border-radius: 10px; background: #fff; color: #17345e; font-size: 13px; font-weight: 700; }
.account-dropdown > summary::-webkit-details-marker { display: none; }
.account-dropdown[open] > summary, .account-dropdown > summary:hover { border-color: #77a9ed; box-shadow: 0 5px 16px rgba(24,74,130,.1); }
.account-dropdown-menu { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; min-width: 190px; padding: 7px; border: 1px solid #d9e5f5; border-radius: 13px; background: #fff; box-shadow: 0 14px 34px rgba(23,52,94,.16); }
.account-dropdown-menu a, .account-dropdown-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: #17345e; text-align: left; text-decoration: none; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.account-dropdown-menu a:hover, .account-dropdown-menu button:hover { background: #f0f6ff; color: #075bd8; }
.account-dropdown-menu form { margin: 0; border-top: 1px solid #edf2f9; padding-top: 5px; }
.unread-mail-badge { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #e9f3ff; color: #075bd8; text-align: center; font-size: 11px; }
.admin-section-tabs, .mailbox-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin: 0 0 18px; padding: 7px; border-bottom: 3px solid #1683c2; border-radius: 13px 13px 0 0; background: #f8fbff; }
.admin-section-tabs button, .mailbox-tabs a, .mailbox-tabs button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px; border: 1px solid #c8d8ed; border-radius: 10px 10px 0 0; background: linear-gradient(#fff,#eef3f7); color: #17345e; font-size: 13px; font-weight: 750; text-decoration: none; cursor: pointer; }
.admin-section-tabs button:hover, .admin-section-tabs button[aria-selected="true"], .mailbox-tabs a:hover, .mailbox-tabs a[aria-current="page"], .mailbox-tabs button:hover, .mailbox-tabs button[aria-selected="true"] { color: #fff; border-color: #087bbd; background: linear-gradient(#299bd1,#0876b8); }
.admin-tab-panel[hidden] { display: none !important; }
.mailbox-folder-panel[hidden] { display: none !important; }
.mailbox-panel { min-height: 280px; }
.mailbox-list, .admin-inbox-list { display: grid; gap: 13px; }
.mail-card { padding: 19px 21px; border: 1px solid #dbe6f4; border-radius: 14px; background: #fff; }
.mail-card-document-update { border-color: #b9d7ff; background: linear-gradient(115deg,#f5faff,#fff 68%); box-shadow: inset 4px 0 #1683d7; }
.mail-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.mail-card-top time { flex: 0 0 auto; color: #7285a1; font-size: 12px; }
.mail-subject-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.mail-subject-line h2 { margin: 0; color: #12325d; font-size: 17px; }
.document-update-flair { display: inline-flex; padding: 4px 9px; border: 1px solid #c7defe; border-radius: 999px; background: #eaf4ff; color: #075fc6; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mail-meta { margin: 9px 0 11px; color: #6b7f9b; font-size: 12px; }
.mail-body { margin: 0; color: #344b69; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-attachment-link { display: inline-flex; gap: 12px; align-items: center; margin-top: 15px; padding: 9px 12px; border: 1px solid #cbdcf3; border-radius: 9px; background: #f7fbff; color: #075bd8; font-size: 13px; font-weight: 700; text-decoration: none; }
.mailbox-empty { padding: 56px 20px; text-align: center; }
.mailbox-empty-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #eaf4fb; color: #0785c9; font-size: 22px; }
.mailbox-empty h2 { margin: 15px 0 6px; color: #17345e; font-size: 19px; }
.mailbox-empty p { margin: 0; color: #7487a2; }
.admin-document-form { display: grid; gap: 9px; max-width: 900px; margin: 16px 0 28px; }
.admin-document-form label { margin-top: 5px; color: #17345e; font-size: 13px; font-weight: 700; }
.admin-document-form .primary { justify-self: start; margin-top: 7px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-form-grid > div { display: grid; gap: 8px; }
.document-version-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #e4ebf5; }
.document-version-row small { display: block; margin-top: 4px; color: #71839c; }
.document-version-row p { margin: 7px 0 0; color: #4a617f; font-size: 13px; }
.admin-inbox-list { margin: 14px 0 24px; }
.mail-compose { border: 1px solid #dbe6f4; border-radius: 13px; background: #fbfdff; }
.mail-compose > summary { padding: 15px 18px; color: #075fc6; font-weight: 750; cursor: pointer; }
.mail-compose[open] > summary { border-bottom: 1px solid #e2ebf6; }
.mail-compose .portal-mail-form { padding: 18px; }
.mail-delivery-status { display: inline-block; margin-top: 12px; color: #73839a; font-size: 12px; }
.mail-delivery-status.is-delivered { color: #21754a; }
@media (max-width: 680px) {
  .account-dropdown { margin-left: 0; }
  .account-dropdown-menu { right: auto; left: 0; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .mail-card-top, .document-version-row { flex-direction: column; align-items: flex-start; }
  .mail-card-top time { order: -1; }
  .admin-section-tabs button, .mailbox-tabs a, .mailbox-tabs button { flex: 1 1 auto; padding: 0 11px; }
}

/* Final compact calendar sizing and restored FAQ styles */
.gds-deadlines { width: min(calc(100% - 40px), 1120px); margin: 8px auto 12px; }
.gds-deadline-heading { min-height: 56px; padding: 8px 12px; }
.gds-calendar-content { padding: 4px 7px; }
.gds-deadline-table { border-spacing: 4px 2px; font-size: 10px; }
.gds-deadline-table th { padding: 3px 4px; font-size: 10px; }
.gds-deadline-table td { padding: 2px 3px; }
.gds-date-entry { min-height: 20px; gap: 4px; }
.admin-section-title { margin: 0 0 14px; color: #17345e; }
.portal-faq ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.portal-faq li { border-top: 1px solid #e8edf4; }
.portal-faq li details { padding: 13px 2px; }
.portal-faq li summary { color: #1457b8; font-weight: 700; cursor: pointer; }
.portal-faq li p { margin: 10px 0 0; color: #536782; line-height: 1.6; }
@media (max-width: 760px) { .gds-deadlines { width: calc(100% - 24px); } }
.booking-choice-note { display:grid; gap:3px; margin:6px 0 14px; color:#5a6e89; font-size:11px; line-height:1.4; }
.booking-choice-note strong { color:#28476b; }
.public-access-nav { display:flex; justify-content:flex-end; gap:18px; width:min(1200px,calc(100% - 40px)); margin:10px auto 0; }
.public-access-nav a { color:#075bd8; font-size:13px; font-weight:700; text-decoration:none; }
.public-access-nav a:hover { text-decoration:underline; }
.booking-review-actions { margin-top:8px; }
@media (max-width:640px) { .public-access-nav { width:calc(100% - 28px); } }
.auth-narrow { max-width: 620px; margin: 36px auto; }

/* Keep the schedule key readable beneath the complete calendar. */
.gds-calendar-content { display: flex; flex-direction: column; align-items: stretch; gap: 7px; width: 100%; min-width: 0; padding: 8px 12px 10px; }
.gds-deadline-table { width: 100%; }
.gds-deadline-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; width: 100%; box-sizing: border-box; margin: 0; padding: 8px 12px; border: 1px solid #d4e6f8; border-radius: 10px; background: linear-gradient(180deg, #f5faff, #edf6ff); color: #294b75; font-size: 13px; line-height: 1.45; text-align: center; }
.gds-deadline-legend strong { color: #123f7a; }
.mpw-date-status { margin: 4px 0 12px; }
@media (max-width: 640px) {
  .gds-calendar-content { gap: 5px; padding: 6px 5px 8px; }
  .gds-deadline-legend { flex-direction: column; align-items: center; gap: 2px; padding: 7px 8px; font-size: 12px; }
}


/* MPW deadline day number */
.gds-date-day {
  color: #155eae;
  font-weight: 700;
}


/* Final CPPICS GDS heading layout: three vertical lines */
.gds-deadline-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 14px 20px 14px 16px !important;
}

.gds-deadline-heading .gds-deadline-kicker {
    display: block;
    order: 1;
}

.gds-deadline-heading .gds-deadline-summary-title {
    display: block;
    order: 2;
    white-space: normal !important;
    margin: 0;
}

.gds-deadline-heading .gds-deadline-years {
    display: inline-block !important;
    order: 3;
    align-self: flex-start !important;
    justify-self: start !important;
    margin-top: 2px;
}

@media (max-width: 760px) {
    .gds-deadline-heading {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        min-height: 0 !important;
        padding: 10px 14px !important;
    }

    .gds-deadline-heading .gds-deadline-years {
        align-self: flex-start !important;
    }
}

/* Compact spacing in the GDS deadline heading */
.gds-deadline-heading {
    gap: 2px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.gds-deadline-heading .gds-deadline-kicker,
.gds-deadline-heading .gds-deadline-summary-title,
.gds-deadline-heading .gds-deadline-years {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.gds-deadline-heading .gds-deadline-years {
    margin-top: 2px !important;
}

/* Fix: keep all three GDS heading items together */
.gds-deadline-heading {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
    gap: 3px !important;
    padding: 10px 14px !important;
}

.gds-deadline-heading .gds-deadline-kicker,
.gds-deadline-heading .gds-deadline-summary-title,
.gds-deadline-heading .gds-deadline-years {
    position: static !important;
    margin: 0 !important;
    transform: none !important;
}

.gds-deadline-heading .gds-deadline-years {
    margin-top: 3px !important;
}

/* FINAL FIX: compact vertical GDS heading */
.gds-deadlines .gds-deadline-heading {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
    gap: 0 !important;
    padding: 10px 14px !important;
    min-height: 0 !important;
}

.gds-deadlines .gds-deadline-heading > .gds-deadline-kicker {
    margin: 0 0 3px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.gds-deadlines .gds-deadline-heading > .gds-deadline-summary-title {
    margin: 0 0 3px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.gds-deadlines .gds-deadline-heading > .gds-deadline-years {
    margin: 0 !important;
    padding: 4px 9px !important;
    line-height: 1.2 !important;
    align-self: flex-start !important;
}

@media (max-width: 760px) {
    .gds-deadlines .gds-deadline-heading {
        gap: 0 !important;
        padding: 9px 12px !important;
    }
}

/* Final GDS heading spacing correction */
.gds-deadlines .gds-deadline-heading {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 2px !important;
    padding: 10px 14px !important;
}

.gds-deadlines .gds-deadline-heading > .gds-deadline-kicker,
.gds-deadlines .gds-deadline-heading > .gds-deadline-summary-title,
.gds-deadlines .gds-deadline-heading > .gds-deadline-years {
    position: static !important;
    display: block !important;
    order: initial !important;
    margin: 0 !important;
    transform: none !important;
}

.gds-deadlines .gds-deadline-heading > .gds-deadline-years {
    margin-top: 2px !important;
    align-self: flex-start !important;
}

/* CPPICS MPW: enhanced left deadline panel */
.gds-deadlines .gds-deadline-heading {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding: 14px 18px !important;
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
}

/* Blue accent and stronger section label */
.gds-deadlines .gds-deadline-heading > .gds-deadline-kicker {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 8px 0 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    letter-spacing: 1px !important;
    line-height: 1.3 !important;
    color: #0756b5 !important;
}

.gds-deadlines .gds-deadline-heading > .gds-deadline-kicker::before {
    content: "" !important;
    display: inline-block !important;
    width: 4px !important;
    height: 25px !important;
    flex: 0 0 4px !important;
    border-radius: 4px !important;
    background: #1685ff !important;
}

/* Main deadline heading */
.gds-deadlines .gds-deadline-heading > .gds-deadline-summary-title {
    margin: 0 !important;
    font-size: 23px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    color: #102b50 !important;
}

/* 2027–2030 pill */
.gds-deadlines .gds-deadline-heading > .gds-deadline-years {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: flex-start !important;
    margin: 12px 0 0 0 !important;
    padding: 7px 15px !important;
    border: 1.5px solid #1685ff !important;
    border-radius: 30px !important;
    background: #edf6ff !important;
    color: #124b8c !important;
    font-size: 17px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

/* Smaller screens */
@media (max-width: 760px) {
    .gds-deadlines .gds-deadline-heading {
        padding: 12px 14px !important;
    }

    .gds-deadlines .gds-deadline-heading > .gds-deadline-summary-title {
        font-size: 19px !important;
    }

    .gds-deadlines .gds-deadline-heading > .gds-deadline-years {
        font-size: 15px !important;
    }
}

/* Security: hidden form fields must never appear as visible controls */
input[type="hidden"],
.login-page input[type="hidden"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Hide injected anti-spam form fields */
input[name="ncformfield"],
input[name="__ncforminfo"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Registration form: align Country and Transaction Type controls */
body.registration-page .registration-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 7px;
}

body.registration-page .registration-field label {
    display: block;
    min-height: 15px;
    margin: 0;
    line-height: 15px;
}

body.registration-page .registration-field input,
body.registration-page .registration-field select {
    display: block;
    width: 100%;
    height: 42px;
    min-height: 42px;
    margin: 0;
    box-sizing: border-box;
    line-height: 20px;
    vertical-align: top;
}

/* CPPICS MPW: reduced deadline heading font sizes */
.gds-deadlines .gds-deadline-heading > .gds-deadline-summary-title {
    font-size: 18px !important;
}

.gds-deadlines .gds-deadline-heading > .gds-deadline-years {
    font-size: 13px !important;
}

@media (max-width: 760px) {
    .gds-deadlines .gds-deadline-heading > .gds-deadline-summary-title {
        font-size: 16px !important;
    }

    .gds-deadlines .gds-deadline-heading > .gds-deadline-years {
        font-size: 12px !important;
    }
}

/* ===== CPPICS live file-upload progress ===== */
.upload-progress {
  margin: 18px 0 8px;
  padding: 17px;
  border: 1px solid #cbdcf0;
  border-radius: 11px;
  background: #f5f9ff;
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
  color: #17385f;
  font-size: 14px;
}

.upload-progress-percent {
  color: #1457b8;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.upload-progress-track {
  width: 100%;
  height: 11px;
  overflow: hidden;
  border-radius: 20px;
  background: #dce7f4;
}

.upload-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1457b8, #36a1dc);
  transition: width .18s ease;
}

.upload-progress-details {
  margin-top: 9px;
  color: #64748b;
  font-size: 12px;
}

.upload-progress.is-complete {
  border-color: #a7dfbd;
  background: #f0fbf4;
}

.upload-progress.is-complete .upload-progress-bar {
  background: #16a34a;
}

.upload-progress.is-error {
  border-color: #fecaca;
  background: #fff5f5;
}

.upload-progress.is-error .upload-progress-heading,
.upload-progress.is-error .upload-progress-details {
  color: #b42318;
}

.upload-progress.is-error .upload-progress-bar {
  background: #dc2626;
}

form[data-uploading="true"] button[type="submit"],
form[data-uploading="true"] input[type="submit"] {
  opacity: .65;
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  .upload-progress-bar {
    transition: none;
  }
}

/* ==========================================================
   CPPICS Admin - Customer Management Table
   ========================================================== */

.container:has(#admin-customers) {
  width: min(100% - 32px, 1600px);
  max-width: 1600px;
}

#admin-customers {
  padding: 22px;
}

.admin-customer-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #fff;
}

.admin-customer-table {
  width: 100%;
  min-width: 1250px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.admin-customer-table thead th {
  padding: 15px 13px;
  color: #fff;
  background: #103f91;
  font-weight: 750;
  white-space: nowrap;
  border-bottom: 0;
}

.admin-customer-table thead th:first-child {
  border-radius: 10px 0 0 0;
}

.admin-customer-table thead th:last-child {
  border-radius: 0 10px 0 0;
}

.admin-customer-table td {
  padding: 15px 13px;
  vertical-align: middle;
  border-bottom: 1px solid #e5ebf3;
}

.admin-customer-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-customer-table tbody tr:hover {
  background: #f8fbff;
}

.admin-customer-table .customer-number {
  width: 42px;
  text-align: center;
  color: #526783;
}

.customer-identity {
  min-width: 210px;
}

.customer-identity > strong {
  display: block;
  color: #172b49;
  font-size: 14px;
  font-weight: 750;
}

.customer-identity > small,
.customer-nda-status > small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.customer-account-badge,
.customer-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.customer-account-badge {
  color: #164b9a;
  background: #e6f0ff;
  border: 1px solid #c9ddff;
}

.customer-account-badge.admin,
.customer-status-badge.admin {
  color: #475569;
  background: #f1f5f9;
}

.customer-status-badge.sent,
.customer-status-badge.verified {
  color: #166534;
  background: #dcfce7;
}

.customer-status-badge.received {
  color: #075985;
  background: #e0f2fe;
}

.customer-status-badge.pending {
  color: #854d0e;
  background: #fef0c7;
}

.customer-status-badge.rejected {
  color: #b91c1c;
  background: #fee2e2;
}

.customer-date {
  min-width: 155px;
  white-space: nowrap;
  color: #263b5e;
  font-size: 13px;
}

.customer-nda-status {
  min-width: 190px;
}

.customer-actions-cell {
  min-width: 330px;
}

.customer-action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.customer-action-group form {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
  max-width: 100%;
}

.customer-action-group .small-button,
.customer-action-group .danger {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.customer-action-group .danger {
  color: #b91c1c;
  border: 1px solid #fecaca;
  background: #fff7f7;
}

.customer-upload-form label {
  margin: 0;
  color: #526783;
  font-size: 11px;
}

.customer-upload-form input[type=file] {
  display: block;
  max-width: 220px;
  font-size: 11px;
}

.customer-rejection-form input[type=text] {
  width: 210px;
  margin: 0;
  padding: 8px;
  font-size: 12px;
}

.admin-customer-details {
  margin-top: 9px;
}

.admin-customer-details summary {
  color: #075fc6;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  min-width: 500px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid #dbe7f6;
  border-radius: 9px;
  background: #f3f7fd;
}

.customer-detail-grid > div {
  display: grid;
  grid-template-columns: minmax(125px, .8fr) minmax(0, 1.2fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e0eaf6;
}

.customer-detail-grid span {
  color: #526783;
  font-size: 12px;
  font-weight: 700;
}

.customer-detail-grid strong {
  color: #243b5b;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  #admin-customers {
    padding: 14px;
  }

  .admin-customer-table {
    min-width: 1150px;
  }

  .customer-detail-grid {
    grid-template-columns: 1fr;
    min-width: 300px;
  }
}
