/* DMS additions on top of the NXW site.css (unchanged): "Internal use only" badge of the starter page, like the NXW intranet */
.starter-band .int-badge { position: absolute; top: 22px; right: 28px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border: 1px solid var(--gold, #D4A440); border-radius: 999px; color: var(--gold, #D4A440);
  font-size: 12.5px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; background: rgba(6, 16, 40, .35); }
.starter-band .int-badge svg { width: 14px; height: 14px; }
html.signed .starter-band .int-badge { display: none; }
@media (max-width: 640px) { .starter-band .int-badge { top: 14px; right: 14px; padding: 6px 12px; font-size: 10.5px; letter-spacing: 1.6px; white-space: nowrap; }
  .starter-band { padding-top: 64px; } }

/* Administration icon (header): red background; its menu (Administration page, Edit this page, Log out) */
.cbtn.cmsbtn, html[data-mode] .cbtn.cmsbtn { background: #C62828; border-color: #C62828; color: #fff; }
.cbtn.cmsbtn:hover, .cbtn.cmsbtn.on, html[data-mode] .cbtn.cmsbtn:hover, html[data-mode] .cbtn.cmsbtn.on { background: #E53935; border-color: #F0D890; color: #fff; }
.cms-menu h5 { margin: 6px 10px 2px; font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: #f1cd78; }

/* Markets page: the Shiny Markets page (VTP) in a frame as tall as its content */
.mk-sec { padding-top: 18px; } .mk-wrap { max-width: 1400px; }
.mkframe { display: block; width: 100%; height: 900px; border: 0; background: transparent; }
.mk-static { padding: 40px 0; }

/* STRUCTURE menu: level 1 = Architecture ... Roadmap, level 2 = the sections of each page (flyout on the right) */
.mi-grp > .sub { overflow: visible; }
.mi2 { position: relative; }
.menu .mi2 > a { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.caret2 { display: inline-block; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 5px solid currentColor; opacity: .7; }
.sub2 { display: none; position: absolute; top: -8px; left: 100%; min-width: 220px; margin-left: 6px; padding: 8px; background: #121a4c; border: 1px solid rgba(241,205,120,.35); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.45); z-index: 61; }
.sub2::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; }
.mi2:hover > .sub2, .mi2:focus-within > .sub2 { display: block; }
.menu .mi2 > a.on { color: var(--gold2); }
html[data-mode="light"] .sub2 { background: #fff; border-color: var(--line); box-shadow: 0 18px 40px rgba(11,26,58,.15); }
@media (max-width: 1023px) {
  .sub2, .mi2:hover > .sub2, .mi2:focus-within > .sub2 { display: block; position: static; min-width: 0; margin: 0; padding: 0 0 4px 14px; background: none; border: 0; box-shadow: none; }
  .caret2 { display: none; } }
.menu .mi-grp > .sub { left: 0; right: auto; }

/* My profile (profile.html) */
.pf-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-card { background: #10224A; border: 1px solid #22355C; border-radius: 14px; padding: 24px; }
.pf-card h3 { margin: 0 0 16px; font-size: 18px; }
.pf-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.pf-av { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1B2F6B, #0A4DB8); border: 3px solid #e9b54a; margin-bottom: 8px; }
.pf-av span { font-size: 42px; font-weight: 700; color: #e9b54a; } .pf-av img { width: 100%; height: 100%; object-fit: cover; }
.pf-name { font-size: 18px; } .pf-mail { font-size: 13px; color: #9DB0CC; word-break: break-all; }
.pf-avbtns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.pf-avbtns .btn { padding: 8px 14px; font-size: 13px; cursor: pointer; }
.pf-hint { display: block; font-size: 12px; color: #9DB0CC; margin-top: 6px; }
.pf-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; width: 100%; text-align: left; font-size: 13px; margin: 16px 0 6px; padding-top: 14px; border-top: 1px solid #22355C; }
.pf-meta dt { color: #9DB0CC; } .pf-meta dd { margin: 0; text-align: right; }
.pf-tabs { display: flex; flex-direction: column; width: 100%; gap: 4px; padding-top: 12px; border-top: 1px solid #22355C; }
.pf-tabs a { padding: 9px 12px; border-radius: 8px; text-align: left; font-weight: 600; font-size: 14px; color: #C9D6EC; text-decoration: none; }
.pf-tabs a:hover { background: rgba(212,164,64,.12); } .pf-tabs a.on { background: rgba(212,164,64,.18); color: #e9b54a; }
.pf-act { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.pf-msg { font-size: 14px; } .pf-msg.ok { color: #3DDC97; } .pf-msg.err { color: #FF7A7A; }
.ubtn .u-ini img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; }
html[data-mode="light"] .pf-card { background: #fff; border-color: #DCE3EE; }
html[data-mode="light"] .pf-meta, html[data-mode="light"] .pf-tabs { border-color: #DCE3EE; }
html[data-mode="light"] .pf-tabs a { color: var(--navy); } html[data-mode="light"] .pf-mail, html[data-mode="light"] .pf-hint, html[data-mode="light"] .pf-meta dt { color: #5B6B84; }
.pf-avbtns .btn.ghost { margin-left: 0; }

/* loading pop-up (window.nxwLoading in js/site.js) */
#nxw_load { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; background: rgba(5,10,30,.5); backdrop-filter: blur(2px); }
#nxw_load.on { display: flex; }
#nxw_load .ld-card { display: flex; align-items: center; gap: 16px; padding: 20px 26px; border-radius: 14px; background: #121a4c; border: 1px solid rgba(241,205,120,.45); box-shadow: 0 18px 50px rgba(0,0,0,.5); color: #fff; }
#nxw_load .ld-spin { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 3px solid rgba(233,181,74,.25); border-top-color: #e9b54a; animation: nxwspin .8s linear infinite; }
#nxw_load b { display: block; font-size: 15px; } #nxw_load span { display: block; font-size: 12.5px; color: #9DB0CC; margin-top: 2px; }
@keyframes nxwspin { to { transform: rotate(360deg); } }
html[data-mode="light"] #nxw_load { background: rgba(11,26,58,.25); } html[data-mode="light"] #nxw_load .ld-card { background: #fff; color: var(--navy); border-color: #DCE3EE; }

/* DMS / DATA MANAGEMENT next to the logo, after a divider: same style, colours and place as VTP / VIRTUAL TRADING in VTP */
.brand + .plat { display: flex; flex-direction: column; justify-content: center; align-self: center; margin: 0 22px 0 4px; padding: 4px 0 4px 18px;
  border-left: 1px solid rgba(255,255,255,.28); text-decoration: none; line-height: 1; }
.plat b { font-size: 30px; font-weight: 700; letter-spacing: .06em; line-height: 1;
  background: linear-gradient(180deg, #F6D98A 0%, #E9B54A 55%, #B9852A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plat span { margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .26em; color: #5B9BFF; white-space: nowrap; }
html[data-mode="light"] .brand + .plat { border-left-color: rgba(11,26,58,.25); }
html[data-mode="light"] .plat b { background: linear-gradient(180deg, #D9A93E, #A8761C); -webkit-background-clip: text; background-clip: text; }
html[data-mode="light"] .plat span { color: #0A4DB8; }
@media (max-width: 1023px) { .brand + .plat { margin: 0 10px 0 2px; padding-left: 12px; } .plat b { font-size: 24px; } .plat span { font-size: 9px; letter-spacing: .2em; } }
html.starter .plat { display: none; }

/* Administration menu (header icon): Our apps, the NXW web apps */
.cms-menu { max-height: calc(100vh - 110px); overflow-y: auto; }
.cms-menu .cms-apps-h { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(241,205,120,.25); }
.cms-menu a.cms-app { display: block; padding: 8px 12px; border-radius: 8px; color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.cms-menu a.cms-app:hover { background: rgba(241,205,120,.12); color: #f1cd78; }
html[data-mode="light"] .cms-menu a.cms-app { color: var(--navy); } html[data-mode="light"] .cms-menu a.cms-app:hover { color: var(--royal); background: #F1F4FA; }
.cms-menu { right: 0; }   /* the Administration icon is the last of the header icons */

/* =====================================================================================================================
   VTPWEB theme and logic (www/css/vtp.css of VTPWEB): fonts and sizes, two-row header, red ADMIN button and its menu,
   starter page, sign-in card (USER | ADMIN; password, pattern, PIN, fingerprint), floating bar, footer
   ===================================================================================================================== */
body { font-size: 14.5px; }

/* ---- header: the logo over two rows; row 1 the tagline (centred) and the icons, row 2 the menu (centred) and ADMIN */
.nav-tagline { display: none; }
.adm-txt { display: none; }
.nav.nav2 .nav-in { max-width: none; padding: 0 28px; gap: 22px; }
.mi-home svg { width: 22px; height: 22px; display: block; }
.adm-tool { position: relative; display: flex; align-items: center; }
.cbtn.admbtn { position: relative; text-decoration: none !important; color: #fff !important; background: linear-gradient(180deg, #EF4444, #B91C1C) !important; border-color: #F87171 !important; box-shadow: 0 4px 14px rgba(220,38,38,.35); }
.cbtn.admbtn:hover, html.admin .cbtn.admbtn { background: linear-gradient(180deg, #F87171, #DC2626) !important; color: #fff !important; }
html.admin .cbtn.admbtn::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 6px #34D399; }
html.admin .toprow .ubox { display: none !important; }
@media (min-width: 1200px) {
  .nav.nav2 .nav-in { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 56px 62px; height: 118px; align-items: stretch; column-gap: 22px; row-gap: 0; }
  .nav2 .brand { grid-column: 1; grid-row: 1 / 3; align-self: center; } .nav2 .brand img { height: 56px; }
  .nav2 .nav-tagline { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: center; gap: 14px; color: #e9b54a; font-size: 13.5px; font-weight: 700; letter-spacing: .26em; white-space: nowrap; }
  .nav-tagline i { display: block; width: 130px; height: 1px; background: linear-gradient(90deg, transparent, rgba(233,181,74,.75)); position: relative; }
  .nav-tagline i:last-child { background: linear-gradient(270deg, transparent, rgba(233,181,74,.75)); }
  .nav-tagline i::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; background: #e9b54a; transform: rotate(45deg); right: -3px; }
  .nav-tagline i:last-child::after { right: auto; left: -3px; }
  .nav2 .toprow { grid-column: 3; grid-row: 1; align-self: end; justify-self: end; margin: 0; gap: 10px; }
  .nav2 .toprow .sbox, .nav2 .toprow .cbtn { width: 42px; height: 42px; flex-basis: 42px; }
  .nav2 .toprow .sbox.open { width: 240px; flex-basis: 240px; }
  .nav2 .menu { grid-column: 2; grid-row: 2; justify-content: center; align-items: stretch; margin: 0; gap: 0; }
  .nav2 .menu > a, .nav2 .menu .mi > a { height: 62px; padding: 0 21px; font-size: 15px; font-weight: 700; letter-spacing: .05em; border-bottom: 0; }
  .nav2 .menu > a.on, .nav2 .menu .mi > a.on { position: relative; }
  .nav2 .menu > a.on::after, .nav2 .menu .mi > a.on::after { display: block; content: ""; position: absolute; left: 21px; right: 21px; top: calc(50% + 15px); bottom: auto; height: 2px; border-radius: 2px; background: #e9b54a; transform: none; }
  .nav2 .menu > a.mi-home { padding: 0 18px; }
  .nav2 .menu > a.mi-home.on::after { left: 18px; right: 18px; }
  .nav2 .adm-tool { grid-column: 3; grid-row: 2; justify-self: end; }
  .nav2 .cbtn.admbtn { width: auto; flex-basis: auto; height: 44px; padding: 0 20px; gap: 10px; border-radius: 9px; }
  .nav2 .adm-txt { display: inline; font-weight: 800; font-size: 14px; letter-spacing: .14em; }
  html[data-mode="light"] .nav-tagline { color: #a8781c; }
}
@media (min-width: 1200px) and (max-width: 1450px) { .nav2 .menu > a, .nav2 .menu .mi > a { padding: 0 15px; font-size: 14px; letter-spacing: .03em; } .nav-tagline i { width: 80px; } }
@media (max-width: 1199px) {
  .nav2 .menu > a.mi-home { display: none; }
  .nav2 .adm-tool { align-self: center; }
}
@media (max-width: 1023px) { .nav2 .adm-tool { order: 2; } .nav2 .burger { margin-left: auto; } }

/* ---- ADMIN menu (model CCPR, as VTPWEB): Access, Settings, Our Web Apps */
.am-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 480px; max-width: calc(100vw - 24px); z-index: 1070; padding: 8px 0; text-align: left;
  background: #0a1a3c; border: 1px solid #1d3463; border-radius: 12px; box-shadow: 0 18px 44px rgba(0,0,0,.45); max-height: calc(100vh - 150px); overflow-y: auto; }
.am-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 16px 10px; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid #1d3463; }
.am-ver { font-size: 11px; letter-spacing: .06em; font-weight: 600; color: #8fa3cc; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 2px 8px; text-transform: none; }
.am-sec { padding: 8px 0; } .am-sec + .am-sec { border-top: 1px solid #1d3463; }
.am-title { display: flex; align-items: center; gap: 8px; padding: 4px 16px 6px; color: #e1bb64; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.am-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 16px 7px 38px; color: #d5deec !important; font: inherit; font-weight: 600; font-size: 13px; line-height: 1.45; text-decoration: none; cursor: pointer; }
.am-item small { display: block; color: #8394b3; font-weight: 500; font-size: 11px; margin-top: 2px; }
.am-item:hover { background: #0e2552; color: #fff !important; }
.am-who { cursor: default; color: #e8c979 !important; } .am-who:hover { background: none; } .am-who b { color: #fff; }
html[data-mode="light"] .am-menu { background: #fff; border-color: #C9D3E3; } html[data-mode="light"] .am-item { color: var(--navy) !important; }
html[data-mode="light"] .am-item:hover { background: #F1F4FA; } html[data-mode="light"] .am-head { color: var(--navy); border-color: #E3E8F1; } html[data-mode="light"] .am-sec + .am-sec { border-color: #E3E8F1; }
html[data-mode="light"] .am-who b { color: var(--navy); }
@media (max-width: 640px) { .am-menu { width: min(330px, calc(100vw - 24px)); } }

/* ---- starter page (signed-out Home), as VTPWEB: tagline, logo, title, text, the section buttons, Sign up | Sign in | Admin */
html:not(.signed) .starter-band { min-height: 0; padding: 70px 0 90px; }
.starter-band .st-name { margin-bottom: 18px; }
.starter-band img.logo { width: 300px !important; }
.starter-band h1 { font-size: 44px !important; white-space: normal !important; width: auto !important; margin-left: 0 !important; }
.starter-band h1 + p { max-width: 760px; font-size: 18px; }
.starter-band .assets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; max-width: 1120px; margin: 14px auto 0; text-align: left; }
@media (max-width: 1200px) { .starter-band .assets { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; } }
@media (max-width: 640px) { .starter-band .assets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .starter-band h1 { font-size: 30px !important; } .starter-band h1 + p { font-size: 15px; } }
.home-auth { margin-top: 44px; }
.ha-btn.ha-adm { color: #F87171 !important; }
.ha-btn.ha-adm:hover { background: rgba(220,38,38,.14) !important; }

/* ---- footer: the copyright line only, centred (an administrator also sees the links above it) */
html:not(.admin) footer .in { display: none !important; }
footer small { display: block; text-align: center; line-height: 1.3; padding: 9px 16px; margin: 0 auto; font-size: 12px; }
html:not(.admin) footer small { border-top: 0; }

/* ---- floating "under construction" bar, bottom of every page */
.uc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 9px 16px; border-top: 1px solid rgba(212,164,64,.55); color: #e8edf6; font-size: 15px; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(212,164,64,.16) 0 16px, rgba(7,15,34,.92) 16px 32px), #070F22;
  box-shadow: 0 -6px 18px rgba(0,0,0,.35); backdrop-filter: blur(4px); }
.uc-tag { background: var(--gold); color: #0B1A3A; font-weight: 800; letter-spacing: .18em; font-size: 12.5px; padding: 5px 14px; border-radius: 6px; white-space: nowrap; }
.uc-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body { padding-bottom: 46px; }
html[data-mode="light"] .uc-bar { color: #0B1A3A; border-top-color: rgba(176,128,30,.6);
  background: repeating-linear-gradient(135deg, rgba(212,164,64,.28) 0 16px, rgba(255,255,255,.94) 16px 32px), #fff; box-shadow: 0 -6px 18px rgba(11,26,58,.12); }
@media (max-width: 640px) { .uc-bar { gap: 10px; font-size: 12.5px; padding: 7px 10px; } .uc-tag { font-size: 10.5px; padding: 4px 9px; letter-spacing: .12em; } }
html.lg-open .uc-bar { z-index: 1; }

/* ---- sign-in card, as VTPWEB (model CCPR): compact navy card, gold top bar (USER) or red top bar (ADMIN) */
#login .lg-card.lg-vtp { max-width: 400px; background: #0a1a3c; border: 1px solid #1d3463; border-top: 3px solid #d4a440; border-radius: 14px; padding: 24px 26px 20px;
  max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.5); text-align: left; }
#login .lg-vtp .lg-logo2 { height: 46px; margin: 0 auto 4px; }
#login .lg-vtp .lg-kick { text-align: center; color: var(--gold); font-size: 12.5px; letter-spacing: .22em; margin-bottom: 4px; }
#login .lg-vtp h2 { font-size: 22px; margin: 4px 0 4px; text-align: center; }
#login .lg-vtp .lg-sub { font-size: 13px; color: #aab6cc; margin: 0 0 12px; text-align: center; }
#login .lg-vtp .lg-f { margin-bottom: 10px; }
#login .lg-vtp .lg-f > span, .lg-cap-l { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #e1bb64; font-weight: 700; margin-bottom: 5px; }
#login .lg-vtp .lg-f input { height: 42px; background: #050c1c; border: 1px solid #1d3463; border-radius: 8px; color: #fff; }
#login .lg-vtp .lg-f input:focus { border-color: #d4a440; box-shadow: none; }
.lg-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin: 8px 0 10px; border-radius: 10px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.12); }
.lg-m { border: 0; border-radius: 7px; padding: 8px 0; font: inherit; font-weight: 800; font-size: 12.5px; letter-spacing: .16em; background: transparent; color: #C8D4E8; cursor: pointer; }
.lg-m.lg-m-user.on { background: linear-gradient(135deg, #D4A440, #F0D890); color: #0A1530; }
.lg-m.lg-m-admin.on { background: linear-gradient(180deg, #EF4444, #B91C1C); color: #fff; }
.lg-meth { display: flex; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid #1d3463; }
.lg-meth button { flex: 1; border: 0; background: none; color: #9FB0CF; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 8px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.lg-meth button.on { color: #F0D890; border-bottom-color: #d4a440; } .lg-meth button:hover { color: #fff; }
.lg-forgot { display: block; text-align: right; font-size: 12.5px; margin: -4px 0 8px; color: #8FB8FF !important; }
#login .lg-vtp .lg-rem { margin: 0 0 8px; font-size: 13.5px; color: #C9D6EC; } #login .lg-vtp .lg-rem input { accent-color: #D4A440; }
.lg-cap { margin: 8px 0 12px; }
.lg-cap-row { display: flex; align-items: center; gap: 8px; }
.lg-cap-q { display: inline-block; min-width: 108px; padding: 8px 12px; border-radius: 8px; font: 700 17px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em; text-align: center;
  color: #F4C25B; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 6px, rgba(255,255,255,.1) 6px 12px); border: 1px solid rgba(244,194,91,.4); user-select: none; }
.lg-cap-new { flex: 0 0 36px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: inherit; border-radius: 8px; width: 36px; height: 36px; font-size: 17px; cursor: pointer; }
.lg-cap-in { flex: 1; min-width: 0; height: 38px; padding: 0 12px; font: inherit; color: #fff; background: #050c1c; border: 1px solid #1d3463; border-radius: 8px; outline: none; }
.lg-cap-in:focus { border-color: #d4a440; }
#login .lg-vtp .lg-go { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 42px; margin-top: 6px; border: 0; border-radius: 8px; cursor: pointer;
  background: linear-gradient(135deg, #D4A440, #F0D890); color: #0A1530; font: inherit; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
#login .lg-vtp .lg-go:hover { background: linear-gradient(135deg, #F0D890, #D4A440); } #login .lg-vtp .lg-go[disabled] { opacity: .6; cursor: wait; }
#login .lg-vtp .lg-go.lg-go-adm { background: #d32f2f; color: #fff; } #login .lg-vtp .lg-go.lg-go-adm:hover { background: #e53935; }
#login .lg-vtp .lg-go.lg-fp { margin-top: 10px; background: transparent; color: #E6EDF8; border: 1px solid #3B5A93; letter-spacing: .06em; text-transform: none; }
#login .lg-vtp .lg-go.lg-fp:hover { border-color: var(--gold); color: var(--gold2); } .lg-fp svg { width: 22px; height: 22px; }
#login .lg-vtp .lg-alt { text-align: center; } #login .lg-vtp .lg-alt a { color: var(--gold); }
#login .lg-vtp .lg-note { color: var(--muted); }
html.lg-admin #login .lg-card.lg-vtp { border-top-color: #d32f2f; box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(211,47,47,.25); }
.lg-hint { display: block; margin-top: 6px; font-size: 12px; color: #8394b3; }
.lg-pin { text-align: center; font-size: 24px !important; letter-spacing: .6em; }
.rg-steps { margin: 10px 0 14px; padding-left: 20px; font-size: 14px; }
.rg-steps li { margin: 4px 0; opacity: .6; } .rg-steps li.done { opacity: .9; } .rg-steps li.on { opacity: 1; color: #F4C25B; font-weight: 700; }
/* pattern pad: 3 x 3 dots, the line follows the mouse or the finger */
.pt-pad { position: relative; width: 210px; height: 210px; margin: 4px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  border-radius: 12px; background: #050c1c; border: 1px solid #1d3463; touch-action: none; user-select: none; cursor: pointer; }
.pt-dot { place-self: center; width: 18px; height: 18px; border-radius: 50%; background: #2A4475; box-shadow: 0 0 0 6px rgba(42,68,117,.25); transition: background .12s, box-shadow .12s; pointer-events: none; position: relative; z-index: 1; }
.pt-dot.on { background: #F0D890; box-shadow: 0 0 0 8px rgba(212,164,64,.28); }
.pt-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pt-lines polyline, .pt-lines line { fill: none; stroke: #D4A440; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.pt-pad.bad { border-color: #EF4444; } .pt-pad.bad .pt-dot.on { background: #F87171; box-shadow: 0 0 0 8px rgba(239,68,68,.25); } .pt-pad.bad .pt-lines * { stroke: #EF4444; }
.pt-pad.good { border-color: #34D399; } .pt-pad.good .pt-lines * { stroke: #34D399; }
html[data-mode="light"] #login .lg-card.lg-vtp { background: #fff; border-color: #DCE3EE; border-top-color: #d4a440; }
html[data-mode="light"].lg-admin #login .lg-card.lg-vtp { border-top-color: #d32f2f; }
html[data-mode="light"] #login .lg-vtp .lg-f input, html[data-mode="light"] .lg-cap-in, html[data-mode="light"] .pt-pad { background: #F5F8FC; border-color: #C9D3E3; color: var(--navy); }
html[data-mode="light"] #login .lg-vtp .lg-f > span, html[data-mode="light"] .lg-cap-l { color: #a8781c; }
html[data-mode="light"] #login .lg-vtp .lg-sub { color: #5B6B84; } html[data-mode="light"] .lg-meth { border-color: #DCE3EE; } html[data-mode="light"] .lg-meth button.on { color: #a8781c; }
html[data-mode="light"] .lg-mode { background: #F1F4FA; border-color: #DCE3EE; } html[data-mode="light"] .lg-m { color: #44546E; }
html[data-mode="light"] .lg-cap-q { color: #8a6100; } html[data-mode="light"] .lg-cap-new { border-color: #C9D3E3; color: var(--navy); }
html[data-mode="light"] #login .lg-vtp .lg-go.lg-fp { color: var(--navy); border-color: #C9D3E3; }
/* My profile > Sign-in methods */
.pf-m { padding: 16px 0; border-top: 1px solid var(--line, #22355C); } .pf-m:first-of-type { border-top: 0; }
.pf-mh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; } .pf-mh b { font-size: 15px; }
.pf-st { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); color: #9FB0CF; }
.pf-st.on { color: #34D399; border-color: rgba(52,211,153,.5); }
.pf-m .pt-pad { margin: 8px 0 4px; }
@media (min-width: 1200px) { .nav2 .toprow .lbtn { width: auto; flex-basis: auto; padding: 0 12px; gap: 6px; } }
@media (min-width: 1281px) { .cms-editbtn { top: 132px; } }
@media (max-width: 1280px) { .cms-editbtn { bottom: 60px; } }
@media (max-width: 1023px) { .nav.nav2 .nav-in { padding: 10px 16px; gap: 12px; } }

/* ---------- Data API page (api.html) ---------- */
.api-form { max-width: 1120px; margin: 0 auto; }
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.api-col h3, .api-form > h3 { font-size: 16px; margin: 22px 0 12px; color: var(--navy); }
.api-col h3:first-child { margin-top: 0; }
.api-seg { margin-bottom: 14px; }
.api-fmt { flex-wrap: wrap; }
.api-hint { display: block; font-size: 12.5px; color: var(--muted, #6b7280); margin-top: 4px; }
.api-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 4px 0 12px; cursor: pointer; }
.api-chk input { width: 16px; height: 16px; accent-color: var(--royal); }
.field label a { font-weight: 400; font-size: 12px; color: var(--royal); }
.api-fields { display: flex; flex-wrap: wrap; gap: 6px; max-height: 210px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.api-fields label { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; color: var(--ink); }
.api-fields label:has(input:checked) { border-color: var(--royal); background: rgba(10,77,184,.08); }
.api-fields label input { margin: 0; accent-color: var(--royal); }
.api-fields label i { color: var(--muted, #8a93a3); font-size: 11px; font-style: normal; }
.api-cond { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 34px; gap: 8px; margin-bottom: 8px; }
.api-cond select, .api-cond input { font: inherit; font-size: 13.5px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.api-x { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; font-size: 18px; line-height: 1; cursor: pointer; color: #D9534F; }
.api-x:hover { background: #fdecec; }
.api-add { padding: 7px 14px; font-size: 13px; margin-bottom: 4px; }
.api-url { width: 100%; box-sizing: border-box; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; resize: vertical; word-break: break-all; }
.api-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.api-send { display: inline-flex; gap: 8px; margin-left: auto; }
.api-send input { font: inherit; font-size: 13.5px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-width: 230px; background: var(--paper); color: var(--ink); }
.api-prev { margin-top: 10px; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.api-prev .t { font-size: 12.5px; white-space: nowrap; }
.api-off { max-width: 1120px; margin: 0 auto 18px; padding: 10px 14px; border-radius: 10px; background: #fff7e0; color: #7a5a00; font-size: 13.5px; }
.api-docs { margin-top: 26px; }
.api-code { font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #0b1b33; color: #e8eefc; border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: pre; }
#a_tables .card { margin-bottom: 14px; }
#a_tables code { font-size: 12px; }
html[data-mode="dark"] .api-fields label { background: transparent; }
html[data-mode="dark"] .api-col h3, html[data-mode="dark"] .api-form > h3 { color: var(--gold2); }
html[data-mode="dark"] .api-off { background: rgba(255,200,60,.12); color: #f3d27a; }
@media (max-width: 900px) { .api-grid { grid-template-columns: 1fr; gap: 0; } .api-send { margin-left: 0; width: 100%; } .api-send input { flex: 1; min-width: 0; } }
@media (max-width: 520px) { .api-cond { grid-template-columns: 1fr 1fr 34px; } .api-cond .c-v { grid-column: 1 / 3; } }

/* ---------- Administration page (admin.html, as VTPWEB): the page of the Shiny app in a frame ---------- */
.adm-sec { padding-top: 26px; }
.admframe { display: block; width: 100%; min-height: 560px; border: 0; background: transparent; }
.adm-gate { max-width: 560px; margin: 10px auto 40px; text-align: center; }
.adm-gate .btn { margin-top: 8px; }
/* announcement banner (Administration > Customise) */
.cz-banner { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px 46px; position: relative; font-size: 14px; font-weight: 500; text-align: center; }
.cz-banner button { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; opacity: .8; }
.cz-info { background: #0A4DB8; color: #fff; } .cz-warn { background: var(--gold); color: #0B1A3A; } .cz-alert { background: #C62828; color: #fff; }
.api-key { display: flex; gap: 8px; } .api-key input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px !important; }
.api-key .btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.api-kst { margin: 2px 0 0; font-size: 12.5px; font-weight: 500; } .api-kst.ok { color: #2FBF71; } .api-kst.bad { color: #E5534B; }
.api-genbox { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 8px; margin-top: 4px; }
.api-genbox input { font: inherit; font-size: 13.5px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.api-genbox .btn { padding: 8px 14px; font-size: 13px; }
@media (max-width: 520px) { .api-genbox { grid-template-columns: 1fr; } }
.api-genbox { grid-template-columns: 1fr 1.4fr auto auto; align-items: end; }
.api-until { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--muted); }
.api-until input { padding: 6px 8px; }
@media (max-width: 1100px) { .api-genbox { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .api-genbox { grid-template-columns: 1fr; } }
.api-own { grid-column: 1 / -1; flex-wrap: wrap; margin: 0; font-size: 12.5px; } .api-own input[type=email] { flex: 1; min-width: 200px; padding: 6px 10px; }
.api-seg[data-k=auth] button { font-size: 12.5px; }
.api-codes { display: grid; grid-template-columns: 1fr 150px; gap: 8px; }
.api-codes input, .api-codes select { font: inherit; font-size: 13.5px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.api-clist { max-height: 230px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 4px; }
.api-clist label { display: grid; grid-template-columns: 18px 150px 1fr; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 400; cursor: pointer; color: var(--ink); }
.api-clist label:hover { background: rgba(10,77,184,.06); } .api-clist label.on { background: rgba(212,164,64,.14); }
.api-clist label b { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 600; }
.api-clist label span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.api-clist input { accent-color: var(--gold); margin: 0; } .api-clist .api-hint { padding: 6px 8px; margin: 0; }
.api-cn { color: var(--gold); font-weight: 600; }
.api-dfield { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }
body[data-page="admin"] .cms-editbtn { display: none !important; }

/* ---- Admin page (as VTPWEB, model CCPR): ADMINISTRATION, Admin in Georgia italic, version badge, three cards (3 / 2 / 1 columns) */
.adm-title { font-family: Georgia, "Times New Roman", serif !important; font-style: italic; font-weight: 700; }
.hub-ver { display: inline-block; vertical-align: middle; margin-left: 12px; font: 700 12px/1 Montserrat, Poppins, sans-serif; font-style: normal; letter-spacing: .12em; color: #F0D890; border: 1px solid rgba(240,216,144,.55); border-radius: 999px; padding: 7px 12px; }
.hub-ver::before { content: "VERSION "; color: rgba(240,216,144,.7); }
.hub-sec { padding-top: 26px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1100px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 700px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card { background: rgba(12,24,54,.92); border: 1px solid #1d3361; border-top: 3px solid var(--gold); border-radius: 14px; padding: 20px 20px 16px; box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.hub-card.hub-acc { border-top-color: #D32F2F; }
.hub-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 800 15px/1.2 Montserrat, Poppins, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #F0D890; }
.hub-ic { font-size: 18px; line-height: 1; }
.hub-body { display: flex; flex-direction: column; gap: 6px; }
.hub-it { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid #22355C; background: rgba(255,255,255,.03);
  color: #E8EBF7 !important; text-decoration: none !important; font: 500 14px/1.3 Poppins, sans-serif; text-align: left; cursor: pointer; }
.hub-it:hover { border-color: var(--gold); background: rgba(212,164,64,.1); color: #F0D890 !important; } .hub-it i { font-style: normal; font-size: 20px; color: var(--gold); line-height: 1; }
.hub-it.hub-red { border-color: rgba(211,47,47,.6); } .hub-it.hub-red:hover { background: rgba(211,47,47,.18); color: #fff !important; }
.hub-it.hub-out span { color: #FF8A80; }
.hub-who { margin: 0 0 8px; color: #C8D4E8; font-size: 14px; } .hub-who b { color: #fff; } .hub-who em { display: inline-block; margin-left: 8px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #D32F2F; border-radius: 6px; padding: 2px 7px; }
.hub-n { min-width: 26px; text-align: center; background: var(--gold); color: #0B1A3A; border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.hub-pill { font-size: 11px; letter-spacing: .1em; border-radius: 6px; padding: 3px 8px; background: #33415C; color: #C8D4E8; } .hub-pill.on { background: #D32F2F; color: #fff; }
.hub-apps { display: grid; grid-template-columns: 1fr; gap: 6px; }
.hub-app { display: block; padding: 9px 14px; border-radius: 10px; border: 1px solid #22355C; border-left: 3px solid #2E9BFF; color: #E8EBF7 !important; text-decoration: none !important; }
.hub-app b { display: block; font: 800 13.5px/1.3 Montserrat, Poppins, sans-serif; letter-spacing: .06em; } .hub-app small { display: block; color: #9DB0CC; font-size: 12px; }
.hub-app:hover { border-color: var(--gold); } .hub-app.cur { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(212,164,64,.22), transparent); } .hub-app.cur b { color: #F0D890; }
.hub-foot { margin: 22px 0 0; } .hub-foot a { color: var(--gold2); }
.hub-mbox { max-width: 520px; } .hub-mbox h3 { margin: 0 0 6px; font-family: Georgia, serif; font-style: italic; font-size: 24px; color: #F0D890; }
.hub-mstate { margin: 0 0 12px; font-size: 13.5px; color: #C8D4E8; } .hub-l { display: block; margin: 12px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9DB0CC; }
.hub-seg { display: flex; flex-wrap: wrap; gap: 6px; } .hub-seg button { border: 1px solid #2A4475; background: transparent; color: #E8EBF7; border-radius: 8px; padding: 7px 11px; font: 500 13px Poppins, sans-serif; cursor: pointer; }
.hub-seg button.on { background: var(--gold); border-color: var(--gold); color: #0B1A3A; font-weight: 700; }
.hub-mbox textarea { width: 100%; box-sizing: border-box; background: #0E1C3D; color: #E8EBF7; border: 1px solid #2A4475; border-radius: 8px; padding: 8px 10px; font: 14px Poppins, sans-serif; }
.hub-note { font-size: 12px; color: #9DB0CC; margin: 8px 0 14px; } .hub-mbox .cms-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.adm-back { display: inline-block; margin-bottom: 8px; color: var(--gold2) !important; font-size: 13px; text-decoration: none; margin-right: 14px; }
html[data-mode="light"] .hub-card { background: #fff; border-color: #E1E7F0; box-shadow: 0 10px 26px rgba(11,26,58,.08); } html[data-mode="light"] .hub-card h3 { color: #8A6418; }
html[data-mode="light"] .hub-it, html[data-mode="light"] .hub-app { color: #0B1A3A !important; border-color: #E1E7F0; } html[data-mode="light"] .hub-it:hover { color: #0A4DB8 !important; }
html[data-mode="light"] .hub-who { color: #5B6B84; } html[data-mode="light"] .hub-who b { color: #0B1A3A; } html[data-mode="light"] .hub-app.cur b { color: #8A6418; } html[data-mode="light"] .hub-app small { color: #5B6B84; }
html[data-mode="light"] .hub-ver { color: #8A6418; border-color: #D4A440; } html[data-mode="light"] .hub-ver::before { color: #B8862A; }
body[data-page="administration"] .cms-editbtn { display: none; }

/* ---- maintenance (Admin page > Settings > Maintenance): the wall visitors see */
.mt-wall { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(ellipse at 30% 20%, #1A3A7A 0%, #0A1530 55%, #060D20 100%); }
.mt-box { max-width: 560px; text-align: center; color: #E8EBF7; } .mt-box img { height: 54px; margin-bottom: 22px; }
.mt-kick { display: block; font: 800 13px Montserrat, Poppins, sans-serif; letter-spacing: .26em; color: #D4A440; }
.mt-box h2 { margin: 10px 0 12px; font-family: Georgia, serif; font-style: italic; font-size: clamp(28px, 4vw, 44px); color: #fff; } .mt-box p { color: #C8D4E8; font-size: 16px; }
.mt-adm { display: inline-block; margin-top: 18px; font-size: 12.5px; color: #9DB0CC !important; } html.maint body { overflow: hidden; }

/* ---- header design tokens (VTPWEB spec): 114 px high, menu 17 / 16 / 15 px weight 800, tagline clamp, logo 50 px, icons 48 x 46, ADMIN 40 px */
.nav.nav2 { background: rgba(5,12,28,.94); border-bottom: 1px solid #16294D; }
html[data-mode="light"] .nav.nav2 { background: rgba(255,255,255,.97); border-bottom-color: #DCE3EF; }
.nav2 .cbtn.admbtn, html .nav2 .cbtn.admbtn { background: #D32F2F !important; border-color: #D32F2F !important; box-shadow: 0 4px 14px rgba(211,47,47,.35); font-family: Montserrat, Poppins, sans-serif; }
.nav2 .cbtn.admbtn:hover, html.admin .nav2 .cbtn.admbtn { background: #E53935 !important; border-color: #E53935 !important; }
@media (min-width: 1200px) {
  .nav.nav2 .nav-in { grid-template-rows: 52px 62px; height: 114px; }
  .nav2 .brand img, html .nav2 .brand img { height: 50px; }
  .nav2 .nav-tagline { font-size: clamp(12px, 1vw, 17px); letter-spacing: .145em; }
  .nav2 .menu > a, .nav2 .menu .mi > a { font-size: 17px; font-weight: 800; letter-spacing: .04em; padding: 0 13px; }
  .nav2 .menu > a.on::after, .nav2 .menu .mi > a.on::after { left: 13px; right: 13px; }
  .nav2 .toprow { gap: 12px; } .nav2 .toprow .sbox, .nav2 .toprow .cbtn { width: 48px; height: 46px; flex-basis: 48px; border-radius: 9px; }
  .nav2 .cbtn.admbtn { height: 40px; border-radius: 9px; }
  .nav2 .adm-txt { font-family: Montserrat, Poppins, sans-serif; }
}
@media (min-width: 1200px) and (max-width: 1559px) { .nav2 .menu > a, .nav2 .menu .mi > a { font-size: 16px; padding: 0 11px; } }
@media (min-width: 1200px) and (max-width: 1339px) { .nav2 .menu > a, .nav2 .menu .mi > a { font-size: 15px; padding: 0 9px; letter-spacing: .02em; } }
/* tagline at the bottom of row 1, menu at the top of row 2: the two lines sit together in the middle of the header */
@media (min-width: 1200px) {
  .nav2 .nav-tagline { align-self: end; padding-bottom: 2px; }
  .nav.nav2 .nav2 .menu, .nav2 .menu { align-self: start; align-items: flex-start; }
  .nav2 .menu > a, .nav2 .menu .mi > a { height: 44px; }
  .nav2 .menu > a.on::after, .nav2 .menu .mi > a.on::after { top: auto; bottom: 6px; }
}

/* sign-in methods side by side in one box: Pattern | Fingerprint | Password */
#login .lg-meth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 0 0 14px; border: 1px solid #22355C; border-radius: 12px; background: rgba(255,255,255,.03); }
#login .lg-meth button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 4px 8px; margin: 0; border: 0; border-radius: 9px; font-size: 11px; letter-spacing: .1em; color: #9FB0CF; cursor: pointer; }
#login .lg-meth button svg { width: 22px; height: 22px; fill: currentColor; } #login .lg-meth button svg path { fill: none; stroke: currentColor; }
#login .lg-meth button.on { background: rgba(212,164,64,.16); color: #F0D890; box-shadow: inset 0 0 0 1px rgba(212,164,64,.55); } #login .lg-meth button:hover { color: #fff; }
#login .lg-fpbox { min-height: 92px; justify-content: center; } #login .lg-fpbox .lg-hint { text-align: center; line-height: 1.5; }
html[data-mode="light"] #login .lg-meth { border-color: #DCE3EE; background: #F6F8FC; } html[data-mode="light"] #login .lg-meth button.on { background: #FFF6E2; color: #8A6418; }

/* sign-in card of CCPR: wide, two panes (the app and the help | the form), never taller than the screen */
#login .lg-card.lg-wide { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); overflow: auto;
  background: #0b1a3c; border: 1px solid #1d4fb8; border-top: 3px solid #2f6fe0; border-radius: 16px; padding: 0; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
#login .lg-wide .lg-x { top: 16px; right: 18px; }
#login .lgw-l { padding: 36px 36px 30px 40px; border-right: 1px solid #1d3463; display: flex; flex-direction: column; margin: 22px 0; }
#login .lgw-r { padding: 36px 40px 32px 44px; display: flex; flex-direction: column; justify-content: center; }
#login .lgw-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #1d3463; margin-bottom: 24px; }
#login .lgw-brand img { height: 58px; width: auto; }
#login .lgw-app { display: block; font: 800 38px/1 Montserrat, Poppins, sans-serif; letter-spacing: .08em; color: #E1BB64; }
#login .lgw-app2 { display: block; margin-top: 10px; font: 800 15px/1 Montserrat, Poppins, sans-serif; letter-spacing: .2em; color: #6FA2FF; }
#login .lgw-kick { font: 800 13px Montserrat, Poppins, sans-serif; letter-spacing: .26em; color: #6FA2FF; }
#login .lg-wide h2 { text-align: left; font-size: 32px; margin: 10px 0 12px; color: #fff; }
#login .lgw-p { color: #C9D6EC; font-size: 15px; line-height: 1.55; margin: 0 0 20px; font-weight: 500; }
#login .lgw-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
#login .lgw-list li { position: relative; padding-left: 24px; color: #E6EDF8; font-size: 14.5px; font-weight: 500; line-height: 1.45; }
#login .lgw-list li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 8px; height: 8px; background: #4D8CF5; transform: rotate(45deg); }
#login .lgw-up { margin: auto 0 0; text-align: left; color: #C9D6EC; font-size: 14.5px; font-weight: 500; line-height: 1.5; } #login .lgw-up a { color: #6FA2FF; text-decoration: underline; font-weight: 700; }
#login .lgw-r .lg-f { margin-bottom: 16px; } #login .lgw-r .lg-f > span, #login .lgw-r .lg-cap-l { display: block; font: 800 12.5px Montserrat, Poppins, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #9FB8E8; margin-bottom: 7px; }
#login .lgw-r .lg-f input, #login .lgw-r .lg-cap-in { height: 48px; width: 100%; box-sizing: border-box; background: #050c1c; border: 1px solid #1d3463; border-radius: 9px; color: #fff; padding: 0 14px; font-size: 15px; }
#login .lgw-r .lg-f input:focus, #login .lgw-r .lg-cap-in:focus { border-color: #4D8CF5; outline: none; box-shadow: 0 0 0 1px #4D8CF5; }
#login .lgw-r .lg-cap { margin-bottom: 14px; } #login .lgw-r .lg-cap-q, #login .lgw-r .lg-cap-new { height: 48px; }
#login .lgw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 14px; flex-wrap: wrap; }
#login .lgw-row .lg-rem { margin: 0; font-size: 14.5px; font-weight: 500; color: #E6EDF8; } #login .lgw-row .lg-rem input { width: 17px; height: 17px; accent-color: #2f6fe0; }
#login .lgw-row .lg-forgot { margin: 0; font-size: 13px; color: #9FB8E8; }
#login .lg-wide .lg-go { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: 0; border-radius: 9px; cursor: pointer;
  background: #2f6fe0; color: #fff; font: 800 17px Poppins, sans-serif; letter-spacing: .04em; text-transform: none; margin: 0 0 12px; }
#login .lg-wide .lg-go:hover { background: #3c7cf0; } #login .lg-wide .lg-go[disabled] { opacity: .6; cursor: wait; }
#login .lgw-alt { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 52px; margin: 0 0 12px; border: 1px solid #2A4475; border-radius: 9px;
  background: transparent; color: #E6EDF8; font: 700 16px Poppins, sans-serif; letter-spacing: .04em; cursor: pointer; }
#login .lgw-alt:hover { border-color: #4D8CF5; color: #fff; background: rgba(77,140,245,.08); } #login .lgw-alt svg { width: 22px; height: 22px; fill: currentColor; } #login .lgw-alt svg path { fill: none; stroke: currentColor; }
#login .lgw-r .lg-msg { margin: 0 0 12px; } #login .lgw-r .pt-pad { margin: 0 auto; }
@media (max-width: 860px) { #login .lg-card.lg-wide { grid-template-columns: 1fr; } #login .lgw-l { border-right: 0; border-bottom: 1px solid #1d3463; margin: 0 22px; padding: 30px 6px 20px; }
  #login .lgw-list { display: none; } #login .lgw-r { padding: 22px 28px 26px; } #login .lgw-app { font-size: 30px; } #login .lgw-brand img { height: 42px; margin-right: 44px; } }
html[data-mode="light"] #login .lg-card.lg-wide { background: #fff; border-color: #C9D3E3; border-top-color: #2f6fe0; }
html[data-mode="light"] #login .lg-wide h2 { color: #0B1A3A; } html[data-mode="light"] #login .lgw-p, html[data-mode="light"] #login .lgw-up, html[data-mode="light"] #login .lgw-list li, html[data-mode="light"] #login .lgw-row .lg-rem { color: #34445E; }
html[data-mode="light"] #login .lgw-r .lg-f input, html[data-mode="light"] #login .lgw-r .lg-cap-in { background: #F5F8FC; border-color: #C9D3E3; color: #0B1A3A; }
html[data-mode="light"] #login .lgw-alt { color: #0B1A3A; border-color: #C9D3E3; } html[data-mode="light"] #login .lgw-l, html[data-mode="light"] #login .lgw-brand { border-color: #E1E7F0; }

/* logo as tall as the header bar on every screen: 114 px bar (2 px air), 83 px single row (1024-1199), the top row on phones */
@media (min-width: 1200px) {
  .nav2 .brand, html .nav2 .brand { align-self: stretch; display: flex; align-items: center; }
  .nav2 .brand img, html .nav2 .brand img { height: 110px; }
}
@media (min-width: 1024px) and (max-width: 1199px) { .nav2 .brand img, html .nav2 .brand img { height: 76px; } }
@media (max-width: 1023px) { .nav2 .brand img, html .nav2 .brand img { height: 62px; } }

/* Admin page, Documents card: the files of www/docs (guides, brochure), type badge, title, note, size, Download / Open */
.hub-docs .hub-body { display: grid; gap: 8px; }
.hub-doc { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid #22355C; border-radius: 10px; }
.hub-doc:hover { border-color: var(--gold); }
.hub-dx { flex: 0 0 auto; min-width: 46px; padding: 6px 0; border-radius: 7px; text-align: center; font: 800 11px/1 Montserrat, Poppins, sans-serif; letter-spacing: .06em; color: #fff; background: #2E6BD6; }
.hub-dx-pdf { background: #D32F2F; } .hub-dx-xlsx, .hub-dx-csv { background: #1E8E5A; } .hub-dx-pptx { background: #D2691E; }
.hub-dt { min-width: 0; } .hub-dt b { display: block; font: 800 13.5px/1.3 Montserrat, Poppins, sans-serif; color: #E8EBF7; }
.hub-dt small { display: block; color: #9DB0CC; font-size: 12px; line-height: 1.4; } .hub-dt small.hub-dm { color: #7487A8; font-size: 11px; margin-top: 2px; overflow-wrap: anywhere; }
.hub-da { display: flex; gap: 14px; margin-top: 6px; } .hub-da a { font-size: 12.5px; font-weight: 700; color: #F0D890 !important; }
html[data-mode="light"] .hub-doc { border-color: #DCE3EE; } html[data-mode="light"] .hub-dt b { color: #0B1A3A; } html[data-mode="light"] .hub-da a { color: #8A6418 !important; }

/* Admin page: Update data card and its popup */
.hub-upd { border-top-color: #2E9BFF; } .hub-upd-intro { margin-top: -6px; }
.mu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.mu-cls { display: flex; flex-direction: column; gap: 4px; border: 1px solid #22355C; border-radius: 12px; padding: 12px 14px; background: rgba(14,28,61,.6); }
.mu-cls.on { border-color: #2E9BFF; box-shadow: 0 0 0 2px rgba(46,155,255,.25); }
.mu-cls b { font: 700 14px/1.2 Montserrat, Poppins, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #E8EBF7; }
.mu-cls small { color: #9DB0CC; font-size: 12px; min-height: 30px; } .mu-meta { font-size: 12px; color: #F0D890; }
.mu-cls .btn { margin-top: auto; padding: 7px 10px; font-size: 12px; white-space: nowrap; } .mu-meta { margin-bottom: 8px; } .mu-cls .btn[disabled] { opacity: .45; cursor: not-allowed; }
.mu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; } .mu-foot .hub-note { margin: 0; }
.mu-foot .mu-stop, #mu_stop { border-color: #e5484d; color: #ff8a8d; } .mu-foot .mu-stop:hover, #mu_stop:hover { background: rgba(229,72,77,.15); }
.mu-links { margin-left: auto; display: flex; gap: 14px; font-size: 13px; } .mu-links a { color: #2E9BFF; }
.mu-box { width: min(1180px, 94vw); max-width: none; max-height: 94vh; overflow: auto; box-sizing: border-box; } .mu-steps { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 7px; }
.mu-steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #9DB0CC; padding: 2px 0; }
.mu-steps li i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #33415C; flex: none; box-sizing: border-box; }
.mu-steps li.done { color: #E8EBF7; } .mu-steps li.done i { background: #22A06B; border-color: #22A06B; }
.mu-steps li.now { color: #F0D890; font-weight: 600; } .mu-steps li.now i { border-color: #2E9BFF; border-top-color: transparent; animation: muspin .8s linear infinite; }
.mu-steps li.bad { color: #FF8A80; } .mu-steps li.bad i { background: #D32F2F; border-color: #D32F2F; }
@keyframes muspin { to { transform: rotate(360deg); } }
.mu-bar { position: relative; height: 18px; border-radius: 9px; background: #22355C; overflow: hidden; margin: 6px 0; }
.mu-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #2E9BFF, #22A06B); transition: width .4s; }
.mu-bar span { position: relative; display: block; text-align: center; font-size: 11.5px; line-height: 18px; color: #fff; }
.mu-msg { font-size: 13px; color: #C8D4E8; margin: 6px 0; } .mu-msg.bad { color: #FF8A80; } .mu-msg.ok { color: #6FD3A0; }
.mu-log { max-height: 300px; min-height: 120px; overflow: auto; background: #081430; color: #B8C6DE; border: 1px solid #22355C; border-radius: 8px; padding: 8px 10px; font: 11.5px/1.45 ui-monospace, Consolas, monospace; white-space: pre-wrap; margin: 6px 0 12px; }
html[data-mode="light"] .mu-cls { background: #F6F8FC; border-color: #E1E7F0; } html[data-mode="light"] .mu-cls b { color: #13203A; }
html[data-mode="light"] .mu-cls small { color: #5B6B84; } html[data-mode="light"] .mu-meta { color: #8A6418; }
.hub-docs-page .hub-body { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; } .mu-gate { font-size: 14px; }
.mu-steps li .mu-lb { flex: 1; } .mu-tm { font: 13px ui-monospace, Consolas, monospace; color: #9DB0CC; white-space: nowrap; }
.mu-steps li.mu-tot { border-top: 1px solid #22355C; padding-top: 7px; color: #E8EBF7; font-weight: 600; } .mu-steps li.mu-tot .mu-tm { color: #F0D890; }
.mu-rep { margin: 8px 0 10px; font-size: 13px; color: #E8EBF7; } .mu-rep table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 12px; }
.mu-rep th, .mu-rep td { padding: 5px 8px; border-bottom: 1px solid #22355C; text-align: right; white-space: nowrap; } .mu-rep th:first-child, .mu-rep td:first-child { text-align: left; }
.mu-rep th { color: #9DB0CC; font-weight: 600; } .mu-rep td.up { color: #6FD3A0; font-weight: 600; }
@media (min-width: 1000px) { .mu-box .mu-steps { max-width: 760px; } }
.ml-card { margin-top: 18px; } .ml-wrap { overflow-x: auto; }
.ml-prob { border: 1px solid #22355C; border-radius: 10px; padding: 10px 14px; margin: 4px 0 14px; font-size: 13px; color: #E8EBF7; background: rgba(14,28,61,.6); }
.ml-prob ul { margin: 6px 0 0; padding-left: 18px; } .ml-prob li { margin: 3px 0; } .ml-prob li.bad { color: #FF8A80; } .ml-prob li.warn { color: #F0D890; } .ml-ok { color: #6FD3A0; font-weight: 600; }
.ml-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; } .ml-tbl th, .ml-tbl td { padding: 7px 9px; border-bottom: 1px solid #22355C; text-align: left; white-space: nowrap; }
.ml-tbl th { color: #9DB0CC; font-weight: 600; } .ml-tbl td { color: #E8EBF7; } .ml-tbl td.n { text-align: right; } .ml-tbl td.up { color: #6FD3A0; font-weight: 600; } .ml-tbl td.warn { color: #F0D890; font-weight: 600; }
.ml-tbl tbody tr { cursor: pointer; } .ml-tbl tbody tr:hover td { background: rgba(46,155,255,.08); } .ml-tbl td.ml-msg { white-space: normal; min-width: 220px; color: #9DB0CC; }
.ml-st { font-size: 11px; letter-spacing: .08em; border-radius: 6px; padding: 3px 8px; background: #33415C; color: #C8D4E8; } .ml-st.done { background: #1E7A50; color: #fff; } .ml-st.error { background: #D32F2F; color: #fff; } .ml-st.stopped { background: #8A6418; color: #fff; }
.ml-log { max-height: 60vh; }
html[data-mode="light"] .ml-prob { background: #F6F8FC; border-color: #E1E7F0; color: #13203A; } html[data-mode="light"] .ml-tbl td { color: #13203A; } html[data-mode="light"] .ml-tbl th, html[data-mode="light"] .ml-tbl td { border-color: #E1E7F0; }
.mu-days { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; } .mu-days label { font: 600 13px Poppins, sans-serif; color: #E8EBF7; letter-spacing: .04em; }
.mu-days input { width: 80px; padding: 7px 10px; border-radius: 8px; border: 1px solid #2E9BFF; background: #081430; color: #F0D890; font: 600 14px ui-monospace, Consolas, monospace; }
.mu-days .hub-note { margin: 0; flex: 1; min-width: 220px; } html[data-mode="light"] .mu-days label { color: #13203A; } html[data-mode="light"] .mu-days input { background: #fff; color: #13203A; }
.ms-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 10px 0; } .ms-row .hub-note { margin: 0; flex: 1; min-width: 240px; }
.ms-l { font: 600 13px Poppins, sans-serif; color: #9DB0CC; min-width: 80px; } .ms-f { font: 600 13px Poppins, sans-serif; color: #E8EBF7; display: flex; align-items: center; gap: 8px; }
.ms-f input { padding: 7px 10px; border-radius: 8px; border: 1px solid #2E9BFF; background: #081430; color: #F0D890; font: 600 14px ui-monospace, Consolas, monospace; } .ms-f input[type=number] { width: 80px; }
.ms-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #E8EBF7; cursor: pointer; } .ms-chk input, .ms-sw input { accent-color: #2E9BFF; width: 16px; height: 16px; }
.ms-sw { display: inline-flex; align-items: center; gap: 8px; font: 700 13px Poppins, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #F0D890; cursor: pointer; border: 1px solid #22355C; border-radius: 8px; padding: 6px 12px; }
html[data-mode="light"] .ms-f, html[data-mode="light"] .ms-chk { color: #13203A; } html[data-mode="light"] .ms-f input { background: #fff; color: #13203A; }
.ms-f input.ms-int { width: 70px; } .ms-tz { font-size: 12px; color: #9DB0CC; border: 1px dashed #33415C; border-radius: 6px; padding: 4px 8px; }
.mu-days { margin: 4px 0 14px; } .mu-long { font-weight: 700; color: #F0D890; border: 1px solid #22355C; border-radius: 8px; padding: 6px 12px; } .mu-or { font-size: 12px; color: #9DB0CC; }
.mu-days input[disabled] { opacity: .45; } .mq-card .ms-row { margin: 4px 0; } .mq-card .ms-f input { width: 70px; }

/* phone and tablet: the Update data page as on the desktop - classes two by two, schedule choices under their name,
   the Run log as one card a run (no side scroll) */
@media (max-width: 900px) {
  .ml-wrap { overflow: visible; }
  .ml-tbl thead { display: none; }
  .ml-tbl, .ml-tbl tbody { display: block; }
  .ml-tbl tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 4px 14px; border: 1px solid #22355C; border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
  .ml-tbl td { border: 0; padding: 2px 0; white-space: normal; text-align: left !important; min-width: 0; }
  .ml-tbl td::before { content: attr(data-l); display: block; font: 600 10.5px Poppins, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #9DB0CC; margin-bottom: 2px; }
  .ml-tbl td:nth-child(3), .ml-tbl td.ml-msg { grid-column: 1 / -1; min-width: 0; }
  .ml-tbl td .ml-st { display: inline-block; }
}
@media (max-width: 560px) {
  .mu-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mu-cls { padding: 10px 11px; } .mu-cls b { font-size: 13px; } .mu-cls small { min-height: 0; }
  .mu-cls .btn { white-space: normal; padding: 7px 8px; }
  .ms-row { gap: 8px 14px; } .ms-row > .ms-l { flex-basis: 100%; min-width: 0; }
  .ms-row .hub-note { min-width: 0; flex-basis: 100%; }
  .mu-days .hub-note { min-width: 0; flex-basis: 100%; }
  .mu-foot .btn { flex: 1 1 140px; } .mu-links { margin-left: 0; }
  .ml-tbl tr { grid-template-columns: 1fr 1fr; }
}
.ml-more { display: none; }
@media (max-width: 900px) {
  .ml-wrap:not(.ml-all) .ml-tbl tbody tr:nth-child(n+6) { display: none; }   /* the last 5 runs, the others with Show all */
  .ml-more { display: block; margin: 4px auto 0; }
}
@media (max-width: 560px) {
  .ml-tbl tr { grid-template-columns: 1fr 1fr 1fr; gap: 2px 10px; padding: 8px 10px; }
  .ml-tbl td { font-size: 12px; } .ml-tbl td::before { font-size: 9.5px; letter-spacing: .05em; }
  .ml-tbl td:first-child { grid-column: span 2; }
}

/* Schedule: one block a plan */
.ms-plan { border: 1px solid #22355C; border-radius: 12px; padding: 6px 14px; margin: 10px 0; opacity: .75; }
.ms-plan.on { border-color: #2E9BFF; opacity: 1; }
.ms-name { flex: 1 1 200px; min-width: 0; padding: 7px 10px; border-radius: 8px; border: 1px solid #33415C; background: #081430; color: #E8EBF7; font: 600 14px Poppins, sans-serif; }
.ms-type { padding: 7px 8px; border-radius: 8px; border: 1px solid #2E9BFF; background: #081430; color: #F0D890; font: 600 13px Poppins, sans-serif; }
.ms-del { margin-left: auto; padding: 4px 12px; font-size: 18px; line-height: 1; border-color: #e5484d; color: #ff8a8d; }
.ms-info { margin: 4px 0 6px; } p.ms-tz { display: inline-block; margin: 0 0 4px; }
html[data-mode="light"] .ms-name, html[data-mode="light"] .ms-type { background: #fff; color: #13203A; }
