/* SmartThinClient demo portals (Citrix-style and AVD-style).
   SmartThinClient 1.1.4 renders them in Microsoft Edge WebView2. This stylesheet still avoids custom properties,
   grid, and required flexbox from an earlier compatibility target; new rules may use current CSS. */

* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
/* MSHTML (IE11 mode) does not treat these HTML5 elements as blocks. */
main, header, nav, footer { display: block; }

body {
  min-height: 100%;
  padding-top: 40px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #111827;
  background: #f3f6fb;
}

a { color: #0b5fb8; }
a:focus, .stc-btn:focus, .stc-card:focus { outline: 3px solid #ffcc33; outline-offset: 2px; }
img { border: 0; }
h1, h2, h3, p { margin: 0 0 12px; }
h1 { font-size: 28px; line-height: 1.25; font-weight: 600; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 600; }

.stc-skip { position: absolute; left: -9999px; top: 48px; z-index: 30; padding: 8px 12px; background: #ffffff; color: #071527; }
.stc-skip:focus { left: 12px; }

/* Permanent demo bar: fixed, one line, on every page and state. */
.stc-demo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 40px;
  padding: 0 16px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
  line-height: 40px;
  color: #1a1300;
  background: #ffcc33;
  border-bottom: 2px solid #a87b00;
}
.stc-demo-bar img { vertical-align: middle; margin-right: 8px; }
.stc-demo-bar strong { font-weight: 700; }
.stc-demo-bar span { margin-left: 12px; }

.stc-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.stc-clear:after { content: ""; display: table; clear: both; }
.stc-small { font-size: 14px; color: #4b5563; }

/* Buttons and links styled as buttons: large targets for thin-client screens and touch. */
.stc-btn {
  display: inline-block;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  color: #ffffff;
  background: #0b5fb8;
  border: 1px solid #0b5fb8;
  border-radius: 6px;
}
.stc-btn:hover { background: #094f9a; }
.stc-btn--large { min-height: 52px; padding: 14px 32px; font-size: 18px; }
.stc-btn--quiet { color: #0b5fb8; background: #ffffff; border-color: #b8c7da; }
.stc-btn--quiet:hover { background: #eaf5ff; }
.stc-btn + .stc-btn { margin-left: 8px; }

/* Portal header */
.stc-header { min-height: 64px; padding: 10px 0; }
.stc-brand { float: left; margin-right: 32px; font-size: 18px; font-weight: 600; line-height: 44px; text-decoration: none; }
.stc-brand img { vertical-align: middle; margin-right: 10px; }
.stc-nav { float: left; margin: 0; padding: 0; list-style: none; }
.stc-nav li { display: inline; }
.stc-nav a { display: inline-block; min-height: 44px; padding: 10px 14px; font-weight: 600; line-height: 24px; text-decoration: none; border-bottom: 3px solid transparent; }
.stc-user { float: right; line-height: 44px; }
.stc-user .stc-btn { margin-left: 8px; }
.stc-avatar { display: inline-block; width: 36px; height: 36px; margin-right: 8px; font-size: 14px; font-weight: 700; line-height: 36px; text-align: center; vertical-align: middle; color: #ffffff; background: #8367ff; border-radius: 18px; }

.stc-main { padding: 32px 0 40px; }
.stc-section { margin-bottom: 32px; }

/* Resource cards: inline-block grid that wraps on any width. */
.stc-cards { margin: 0 -8px; font-size: 0; }
.stc-card {
  display: inline-block;
  width: 232px;
  margin: 8px;
  padding: 20px;
  font-size: 16px;
  vertical-align: top;
  text-align: center;
  text-decoration: none;
  color: #111827;
  background: #ffffff;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
}
.stc-card:hover { border-color: #3aa0ff; }
.stc-card-icon { display: block; width: 72px; height: 72px; margin: 0 auto 14px; font-size: 30px; font-weight: 700; line-height: 72px; color: #ffffff; border-radius: 14px; }
.stc-card-icon--desktop { background: #0d2747; }
.stc-card-icon--app { background: #8367ff; }
.stc-card-name { display: block; font-size: 17px; font-weight: 600; }
.stc-card-type { display: block; font-size: 14px; color: #4b5563; }
.stc-card-action { display: block; margin-top: 14px; padding: 8px 0; font-weight: 600; color: #ffffff; background: #0b5fb8; border-radius: 6px; }

.stc-empty { padding: 20px; background: #ffffff; border: 1px dashed #b8c7da; border-radius: 8px; }

/* Entry and signed-out pages */
.stc-entry { padding: 56px 0; }
.stc-entry-card { max-width: 560px; margin: 0 auto; padding: 36px; text-align: center; background: #ffffff; border: 1px solid #dfe8f4; border-radius: 10px; }
.stc-entry-card .stc-btn { margin: 12px 0 20px; }
.stc-entry-card img { margin-bottom: 12px; }
.stc-notice { margin-top: 16px; padding: 12px 14px; font-size: 14px; text-align: left; color: #3d2e00; background: #fff6d6; border: 1px solid #e8c95c; border-radius: 6px; }

/* Footer */
.stc-footer { padding: 20px 0 28px; font-size: 13px; color: #4b5563; border-top: 1px solid #dfe8f4; }
.stc-footer p { margin-bottom: 6px; }

/* Simulated session */
.stc-launch { display: none; padding: 120px 24px; text-align: center; }
.stc-js .stc-session { display: none; }
.stc-js .stc-launch { display: block; }
.stc-js.stc-ready .stc-session { display: block; }
.stc-js.stc-ready .stc-launch { display: none; }
.stc-spinner { width: 48px; height: 48px; margin: 0 auto 20px; border: 5px solid #b8c7da; border-top-color: #0b5fb8; border-radius: 50%; -webkit-animation: stc-spin 1s linear infinite; animation: stc-spin 1s linear infinite; }
@-webkit-keyframes stc-spin { to { -webkit-transform: rotate(360deg); } }
@keyframes stc-spin { to { transform: rotate(360deg); } }

.stc-session-bar { padding: 8px 16px; color: #ffffff; background: #071527; }
.stc-session-bar strong { margin-right: 12px; font-size: 17px; line-height: 44px; }
.stc-session-actions { float: right; }
.stc-session-actions .stc-btn--quiet { color: #071527; }
.stc-sim-tag { display: inline-block; padding: 2px 10px; font-size: 13px; font-weight: 700; line-height: 22px; color: #1a1300; background: #ffcc33; border-radius: 4px; }

.stc-desktop {
  position: relative;
  min-height: 520px;
  min-height: calc(100vh - 40px - 62px - 53px);
  padding: 24px;
  color: #ffffff;
  background: #0d2747;
  background-image: linear-gradient(135deg, #071527 0%, #0d2747 55%, #3b2f8f 100%);
}
.stc-desktop-icons { float: left; width: 110px; margin: 0; padding: 0; list-style: none; }
.stc-desktop-icons li { margin-bottom: 18px; font-size: 13px; text-align: center; }
.stc-desktop-icons span { display: block; width: 48px; height: 48px; margin: 0 auto 4px; font-weight: 700; line-height: 48px; color: #071527; background: #eaf5ff; border-radius: 8px; }
.stc-watermark { position: absolute; right: 24px; bottom: 24px; font-size: 22px; font-weight: 700; line-height: 1.3; text-align: right; color: #8fb8e8; }
.stc-window { max-width: 640px; margin: 0 0 24px 140px; color: #111827; background: #ffffff; border: 1px solid #3aa0ff; border-radius: 8px; }
.stc-window-title { padding: 8px 14px; font-weight: 600; color: #ffffff; background: #0b5fb8; border-radius: 7px 7px 0 0; }
.stc-window-body { padding: 18px 20px; }
.stc-facts { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 15px; }
.stc-facts th, .stc-facts td { padding: 6px 8px; text-align: left; vertical-align: top; border-top: 1px solid #dfe8f4; }
.stc-facts th { width: 38%; font-weight: 600; color: #4b5563; }
.stc-taskbar { height: 52px; padding: 4px 16px; color: #ffffff; background: #10233d; border-top: 1px solid #2b4466; }
.stc-taskbar-item { display: inline-block; margin-right: 6px; padding: 0 14px; font-size: 14px; line-height: 44px; background: #1b3557; border-radius: 4px; }
.stc-clock { float: right; font-size: 15px; line-height: 44px; }

/* Citrix-style portal: dark store header, WorkplaceCloudHub navy and blue. */
.stc-citrix .stc-header { color: #ffffff; background: #071527; }
.stc-citrix .stc-brand, .stc-citrix .stc-nav a, .stc-citrix .stc-user { color: #ffffff; }
.stc-citrix .stc-nav a:hover, .stc-citrix .stc-nav a.stc-current { border-bottom-color: #3aa0ff; }
.stc-citrix .stc-user .stc-btn--quiet { color: #ffffff; background: #0d2747; border-color: #3a5878; }
.stc-citrix .stc-user .stc-btn--quiet:hover { background: #163a63; }
.stc-citrix .stc-entry { background: #0d2747; background-image: linear-gradient(160deg, #071527 0%, #0d2747 60%, #1d3f73 100%); }
.stc-citrix .stc-entry-card { border-color: #0d2747; }
.stc-citrix.stc-page-entry, .stc-citrix.stc-page-signed-out { background: #0d2747; }
.stc-citrix.stc-page-entry .stc-footer, .stc-citrix.stc-page-signed-out .stc-footer { color: #c9d6e6; border-top-color: #1d3f73; }
.stc-citrix.stc-page-entry .stc-footer a, .stc-citrix.stc-page-signed-out .stc-footer a { color: #9fd0ff; }

/* AVD-style portal: light workspace with a left navigation rail. */
.stc-avd .stc-header { background: #ffffff; border-bottom: 1px solid #dfe8f4; }
.stc-avd .stc-brand { color: #111827; }
.stc-avd-layout { padding-top: 24px; }
.stc-rail { float: left; width: 200px; margin: 0; padding: 0; list-style: none; }
.stc-rail a { display: block; min-height: 44px; margin-bottom: 4px; padding: 10px 14px; font-weight: 600; line-height: 24px; text-decoration: none; color: #111827; border-left: 4px solid transparent; border-radius: 4px; }
.stc-rail a:hover { background: #eaf5ff; }
.stc-rail a.stc-current { color: #0b5fb8; background: #eaf5ff; border-left-color: #0b5fb8; }
.stc-avd-content { margin-left: 232px; }
.stc-avd .stc-main { padding-top: 0; }
.stc-avd .stc-card { text-align: left; border-radius: 10px; }
.stc-avd .stc-card-icon, .stc-avd .stc-card-action { text-align: center; }
.stc-avd .stc-card-icon { width: 56px; height: 56px; margin: 0 0 14px; font-size: 24px; line-height: 56px; border-radius: 10px; }
.stc-avd .stc-card-icon--desktop { background: #0b5fb8; }
.stc-avd .stc-entry { background: #eaf5ff; }
.stc-avd .stc-desktop { background: #0b5fb8; background-image: linear-gradient(135deg, #0b5fb8 0%, #3aa0ff 60%, #8367ff 100%); }
.stc-avd .stc-watermark { color: #eaf5ff; }
.stc-avd .stc-session-bar { background: #111827; }

/* Thin-client and small screens */
@media (max-width: 900px) {
  .stc-demo-bar span { display: none; }
  .stc-brand { float: none; display: block; margin-right: 0; }
  .stc-nav, .stc-user { float: none; }
  .stc-user { margin-top: 4px; }
  .stc-rail { float: none; width: auto; margin-bottom: 16px; }
  .stc-rail li { display: inline; }
  .stc-rail a { display: inline-block; border-left: 0; border-bottom: 3px solid transparent; }
  .stc-rail a.stc-current { border-bottom-color: #0b5fb8; }
  .stc-avd-content { margin-left: 0; }
  .stc-window { margin-left: 0; }
  .stc-desktop-icons { float: none; width: auto; margin-bottom: 16px; }
  .stc-desktop-icons li { display: inline-block; width: 96px; margin-right: 8px; }
  .stc-watermark { position: static; margin-top: 16px; text-align: left; }
  .stc-session-actions { float: none; display: block; margin-top: 4px; }
}
@media (max-width: 560px) {
  .stc-wrap { padding: 0 16px; }
  .stc-card { width: 100%; margin: 8px 0; }
  .stc-cards { margin: 0; }
  .stc-entry-card { padding: 24px 18px; }
  .stc-btn + .stc-btn { margin-left: 0; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .stc-spinner { -webkit-animation: none; animation: none; }
}
