/*
 * noVNC base CSS
 * Copyright (C) 2019 The noVNC Authors
 * noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
 * This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
 */

/*
 * Z index layers:
 *
 * 0: Main screen
 * 10: Control bar
 * 50: Transition blocker
 * 60: Connection popups
 * 100: Status bar
 * ...
 * 1000: Javascript crash
 * ...
 * 10000: Max (used for polyfills)
 */

body {
  margin:0;
  padding:0;
  font-family: Helvetica;
  /*Background image with light grey curve.*/
  background-color:#494949;
  background-repeat:no-repeat;
  background-position:right bottom;
  height:100%;
  touch-action: none;
}

html {
  height:100%;
}

.noVNC_only_touch.noVNC_hidden {
  display: none;
}

.noVNC_disabled {
  color: rgb(128, 128, 128);
}

/* ----------------------------------------
 * Spinner
 * ----------------------------------------
 */

.noVNC_spinner {
  position: relative;
}
.noVNC_spinner, .noVNC_spinner::before, .noVNC_spinner::after {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  box-shadow: -60px 10px 0 rgba(255, 255, 255, 0);
  animation: noVNC_spinner 1.0s linear infinite;
}
.noVNC_spinner::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 0px;
  animation-delay: -0.1s;
}
.noVNC_spinner::after {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  animation-delay: 0.1s;
}
@keyframes noVNC_spinner {
  0% { box-shadow: -60px 10px 0 rgba(255, 255, 255, 0); width: 20px; }
  25% { box-shadow: 20px 10px 0 rgba(255, 255, 255, 1); width: 10px; }
  50% { box-shadow: 60px 10px 0 rgba(255, 255, 255, 0); width: 10px; }
}

/* ----------------------------------------
 * Input Elements
 * ----------------------------------------
 */

input:not([type]),
input[type=date],
input[type=datetime-local],
input[type=email],
input[type=month],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=text],
input[type=time],
input[type=url],
input[type=week],
textarea {
  /* Disable default rendering */
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none;

  margin: 2px;
  padding: 2px;
  border: 1px solid rgb(192, 192, 192);
  border-radius: 5px;
  color: black;
  background: linear-gradient(to top, rgb(255, 255, 255) 80%, rgb(240, 240, 240));
}

input[type=button],
input[type=color],
input[type=reset],
input[type=submit],
select {
  /* Disable default rendering */
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none;

  margin: 2px;
  padding: 2px;
  border: 1px solid rgb(192, 192, 192);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: black;
  background: linear-gradient(to top, rgb(255, 255, 255), rgb(240, 240, 240));

  /* This avoids it jumping around when :active */
  vertical-align: middle;
}

input[type=button],
input[type=color],
input[type=reset],
input[type=submit] {
  padding-left: 20px;
  padding-right: 20px;
}

option {
  color: black;
  background: white;
}

input:not([type]):focus,
input[type=button]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=password]:focus,
input[type=reset]:focus,
input[type=search]:focus,
input[type=submit]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
select:focus,
textarea:focus {
  box-shadow: 0px 0px 3px rgba(74, 144, 217, 0.5);
  border-color: rgb(74, 144, 217);
  outline: none;
}

input[type=button]::-moz-focus-inner,
input[type=color]::-moz-focus-inner,
input[type=reset]::-moz-focus-inner,
input[type=submit]::-moz-focus-inner {
  border: none;
}

input:not([type]):disabled,
input[type=button]:disabled,
input[type=color]:disabled,
input[type=date]:disabled,
input[type=datetime-local]:disabled,
input[type=email]:disabled,
input[type=month]:disabled,
input[type=number]:disabled,
input[type=password]:disabled,
input[type=reset]:disabled,
input[type=search]:disabled,
input[type=submit]:disabled,
input[type=tel]:disabled,
input[type=text]:disabled,
input[type=time]:disabled,
input[type=url]:disabled,
input[type=week]:disabled,
select:disabled,
textarea:disabled {
  color: rgb(128, 128, 128);
  background: rgb(240, 240, 240);
}

input[type=button]:active,
input[type=color]:active,
input[type=reset]:active,
input[type=submit]:active,
select:active {
  border-bottom-width: 1px;
  margin-top: 3px;
}

:root:not(.noVNC_touch) input[type=button]:hover:not(:disabled),
:root:not(.noVNC_touch) input[type=color]:hover:not(:disabled),
:root:not(.noVNC_touch) input[type=reset]:hover:not(:disabled),
:root:not(.noVNC_touch) input[type=submit]:hover:not(:disabled),
:root:not(.noVNC_touch) select:hover:not(:disabled) {
  background: linear-gradient(to top, rgb(255, 255, 255), rgb(250, 250, 250));
}

/* ----------------------------------------
 * WebKit centering hacks
 * ----------------------------------------
 */

.noVNC_center {
  /*
   * This is a workaround because webkit misrenders transforms and
   * uses non-integer coordinates, resulting in blurry content.
   * Ideally we'd use "top: 50%; transform: translateY(-50%);" on
   * the objects instead.
   */
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.noVNC_center > * {
  pointer-events: auto;
}
.noVNC_vcenter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  pointer-events: none;
}
.noVNC_vcenter > * {
  pointer-events: auto;
}

/* ----------------------------------------
 * Layering
 * ----------------------------------------
 */

.noVNC_connect_layer {
  z-index: 60;
}

/* ----------------------------------------
 * Fallback error
 * ----------------------------------------
 */

#noVNC_fallback_error {
  z-index: 1000;
  visibility: hidden;
}
#noVNC_fallback_error.noVNC_open {
  visibility: visible;
}

#noVNC_fallback_error > div {
  max-width: 90%;
  padding: 15px;

  transition: 0.5s ease-in-out;

  transform: translateY(-50px);
  opacity: 0;

  text-align: center;
  font-weight: bold;
  color: #fff;

  border-radius: 10px;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
  background: rgba(200,55,55,0.8);
}
#noVNC_fallback_error.noVNC_open > div {
  transform: translateY(0);
  opacity: 1;
}

#noVNC_fallback_errormsg {
  font-weight: normal;
}

#noVNC_fallback_errormsg .noVNC_message {
  display: inline-block;
  text-align: left;
  font-family: monospace;
  white-space: pre-wrap;
}

#noVNC_fallback_error .noVNC_location {
  font-style: italic;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.8);
}

#noVNC_fallback_error .noVNC_stack {
  max-height: 50vh;
  padding: 10px;
  margin: 10px;
  font-size: 0.8em;
  text-align: left;
  font-family: monospace;
  white-space: pre;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.2);
  overflow: auto;
}

/* ----------------------------------------
 * Control Bar
 * ----------------------------------------
 */

#noVNC_control_bar_anchor {
  /* The anchor is needed to get z-stacking to work */
  position: fixed;
  z-index: 10;

  transition: 0.5s ease-in-out;

  /* Edge misrenders animations wihthout this */
  transform: translateX(0);
}
:root.noVNC_connected #noVNC_control_bar_anchor.noVNC_idle {
  opacity: 0.8;
}
#noVNC_control_bar_anchor.noVNC_right {
  left: auto;
  right: 0;
}

#noVNC_control_bar {
  position: relative;
  left: -100%;

  transition: 0.5s ease-in-out;

  background-color: rgb(110, 132, 163);
  border-radius: 0 10px 10px 0;

}
#noVNC_control_bar.noVNC_open {
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
  left: 0;
}
#noVNC_control_bar::before {
  /* This extra element is to get a proper shadow */
  content: "";
  position: absolute;
  z-index: -1;
  height: 100%;
  width: 30px;
  left: -30px;
  transition: box-shadow 0.5s ease-in-out;
}
#noVNC_control_bar.noVNC_open::before {
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
}
.noVNC_right #noVNC_control_bar {
  left: 100%;
  border-radius: 10px 0 0 10px;
}
.noVNC_right #noVNC_control_bar.noVNC_open {
  left: 0;
}
.noVNC_right #noVNC_control_bar::before {
  visibility: hidden;
}

#noVNC_control_bar_handle {
  position: absolute;
  left: -15px;
  top: 0;
  transform: translateY(35px);
  width: calc(100% + 30px);
  height: 50px;
  z-index: -1;
  cursor: pointer;
  border-radius: 5px;
  background-color: rgb(83, 99, 122);
  background-image: url("../images/handle_bg.svg");
  background-repeat: no-repeat;
  background-position: right;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
}
#noVNC_control_bar_handle:after {
  content: "";
  transition: transform 0.5s ease-in-out;
  background: url("../images/handle.svg");
  position: absolute;
  top: 22px; /* (50px-6px)/2 */
  right: 5px;
  width: 5px;
  height: 6px;
}
#noVNC_control_bar.noVNC_open #noVNC_control_bar_handle:after {
  transform: translateX(1px) rotate(180deg);
}
:root:not(.noVNC_connected) #noVNC_control_bar_handle {
  display: none;
}
.noVNC_right #noVNC_control_bar_handle {
  background-position: left;
}
.noVNC_right #noVNC_control_bar_handle:after {
  left: 5px;
  right: 0;
  transform: translateX(1px) rotate(180deg);
}
.noVNC_right #noVNC_control_bar.noVNC_open #noVNC_control_bar_handle:after {
  transform: none;
}
#noVNC_control_bar_handle div {
  position: absolute;
  right: -35px;
  top: 0;
  width: 50px;
  height: 50px;
}
:root:not(.noVNC_touch) #noVNC_control_bar_handle div {
  display: none;
}
.noVNC_right #noVNC_control_bar_handle div {
  left: -35px;
  right: auto;
}

#noVNC_control_bar .noVNC_scroll {
  max-height: 100vh; /* Chrome is buggy with 100% */
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 10px 0 5px;
}
.noVNC_right #noVNC_control_bar .noVNC_scroll {
  padding: 0 5px 0 10px;
}

/* Control bar hint */
#noVNC_control_bar_hint {
  position: fixed;
  left: calc(100vw - 50px);
  right: auto;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 100px;
  height: 50%;
  max-height: 600px;

  visibility: hidden;
  opacity: 0;
  transition: 0.2s ease-in-out;
  background: transparent;
  box-shadow: 0 0 10px black, inset 0 0 10px 10px rgba(110, 132, 163, 0.8);
  border-radius: 10px;
  transition-delay: 0s;
}
#noVNC_control_bar_anchor.noVNC_right #noVNC_control_bar_hint{
  left: auto;
  right: calc(100vw - 50px);
}
#noVNC_control_bar_hint.noVNC_active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0.2s;
  transform: translateY(-50%) scale(1);
}

/* General button style */
.noVNC_button {
  display: block;
  padding: 4px 4px;
  margin: 10px 0;
  vertical-align: middle;
  border:1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}
.noVNC_button.noVNC_selected {
  border-color: rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.5);
}
.noVNC_button:disabled {
  opacity: 0.4;
}
.noVNC_button:focus {
  outline: none;
}
.noVNC_button:active {
  padding-top: 5px;
  padding-bottom: 3px;
}
/* Android browsers don't properly update hover state if touch events
 * are intercepted, but focus should be safe to display */
:root:not(.noVNC_touch) .noVNC_button.noVNC_selected:hover,
.noVNC_button.noVNC_selected:focus {
  border-color: rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.2);
}
:root:not(.noVNC_touch) .noVNC_button:hover,
.noVNC_button:focus {
  background: rgba(255, 255, 255, 0.2);
}
.noVNC_button.noVNC_hidden {
  display: none;
}

/* Panels */
.noVNC_panel {
  transform: translateX(25px);

  transition: 0.5s ease-in-out;

  max-height: 100vh; /* Chrome is buggy with 100% */
  overflow-x: hidden;
  overflow-y: auto;

  visibility: hidden;
  opacity: 0;

  padding: 15px;

  background: #fff;
  border-radius: 10px;
  color: #000;
  border: 2px solid #E0E0E0;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
}
.noVNC_panel.noVNC_open {
  visibility: visible;
  opacity: 1;
  transform: translateX(75px);
}
.noVNC_right .noVNC_vcenter {
  left: auto;
  right: 0;
}
.noVNC_right .noVNC_panel {
  transform: translateX(-25px);
}
.noVNC_right .noVNC_panel.noVNC_open {
  transform: translateX(-75px);
}

.noVNC_panel hr {
  border: none;
  border-top: 1px solid rgb(192, 192, 192);
}

.noVNC_panel label {
  display: block;
  white-space: nowrap;
}

.noVNC_panel .noVNC_heading {
  background-color: rgb(110, 132, 163);
  border-radius: 5px;
  padding: 5px;
  /* Compensate for padding in image */
  padding-right: 8px;
  color: white;
  font-size: 20px;
  margin-bottom: 10px;
  white-space: nowrap;
}
.noVNC_panel .noVNC_heading img {
  vertical-align: bottom;
}

.noVNC_submit {
  float: right;
}

/* Expanders */
.noVNC_expander {
  cursor: pointer;
}
.noVNC_expander::before {
  content: url("../images/expander.svg");
  display: inline-block;
  margin-right: 5px;
  transition: 0.2s ease-in-out;
}
.noVNC_expander.noVNC_open::before {
  transform: rotateZ(90deg);
}
.noVNC_expander ~ * {
  margin: 5px;
  margin-left: 10px;
  padding: 5px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
}
.noVNC_expander:not(.noVNC_open) ~ * {
  display: none;
}

/* Control bar content */

#noVNC_control_bar .noVNC_logo {
  font-size: 13px;
}

:root:not(.noVNC_connected) #noVNC_view_drag_button {
  display: none;
}

/* noVNC Touch Device only buttons */
:root:not(.noVNC_connected) #noVNC_mobile_buttons {
  display: none;
}
:root:not(.noVNC_touch) #noVNC_mobile_buttons {
  display: none;
}

/* Extra manual keys */
:root:not(.noVNC_connected) #noVNC_toggle_extra_keys_button {
  display: none;
}

#noVNC_modifiers {
  background-color: rgb(92, 92, 92);
  border: none;
  padding: 0 10px;
}

/* Shutdown/Reboot */
:root:not(.noVNC_connected) #noVNC_power_button {
  display: none;
}
#noVNC_power {
}
#noVNC_power_buttons {
  display: none;
}

#noVNC_power input[type=button] {
  width: 100%;
}

/* Clipboard */
:root:not(.noVNC_connected) #noVNC_clipboard_button {
  display: none;
}
#noVNC_clipboard {
  /* Full screen, minus padding and left and right margins */
  max-width: calc(100vw - 2*15px - 75px - 25px);
}
#noVNC_clipboard_text {
  width: 500px;
  max-width: 100%;
}

/* Settings */
#noVNC_settings {
}
#noVNC_settings ul {
  list-style: none;
  margin: 0px;
  padding: 0px;
}
#noVNC_setting_port {
  width: 80px;
}
#noVNC_setting_path {
  width: 100px;
}

/* Version */

.noVNC_version_wrapper {
  font-size: small;
}

.noVNC_version {
  margin-left: 1rem;
}

/* Connection Controls */
:root:not(.noVNC_connected) #noVNC_disconnect_button {
  display: none;
}

/* ----------------------------------------
 * Status Dialog
 * ----------------------------------------
 */

#noVNC_status {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transform: translateY(-100%);

  cursor: pointer;

  transition: 0.5s ease-in-out;

  visibility: hidden;
  opacity: 0;

  padding: 5px;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;

  line-height: 25px;
  word-wrap: break-word;
  color: #fff;

  border-bottom: 1px solid rgba(0, 0, 0, 0.9);
}
#noVNC_status.noVNC_open {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

#noVNC_status::before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 5px;
}

#noVNC_status.noVNC_status_normal {
  background: rgba(128,128,128,0.9);
}
#noVNC_status.noVNC_status_normal::before {
  content: url("../images/info.svg") " ";
}
#noVNC_status.noVNC_status_error {
  background: rgba(200,55,55,0.9);
}
#noVNC_status.noVNC_status_error::before {
  content: url("../images/error.svg") " ";
}
#noVNC_status.noVNC_status_warn {
  background: rgba(180,180,30,0.9);
}
#noVNC_status.noVNC_status_warn::before {
  content: url("../images/warning.svg") " ";
}

/* ----------------------------------------
 * Connect Dialog
 * ----------------------------------------
 */

#noVNC_connect_dlg {
  transition: 0.5s ease-in-out;

  transform: scale(0, 0);
  visibility: hidden;
  opacity: 0;
}
#noVNC_connect_dlg.noVNC_open {
  transform: scale(1, 1);
  visibility: visible;
  opacity: 1;
}
#noVNC_connect_dlg .noVNC_logo {
  transition: 0.5s ease-in-out;
  padding: 10px;
  margin-bottom: 10px;

  font-size: 80px;
  text-align: center;

  border-radius: 5px;
}
@media (max-width: 440px) {
  #noVNC_connect_dlg {
    max-width: calc(100vw - 100px);
  }
  #noVNC_connect_dlg .noVNC_logo {
    font-size: calc(25vw - 30px);
  }
}
#noVNC_connect_button {
  cursor: pointer;

  padding: 10px;

  color: white;
  background-color: rgb(110, 132, 163);
  border-radius: 12px;

  text-align: center;
  font-size: 20px;

  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
}
#noVNC_connect_button div {
  margin: 2px;
  padding: 5px 30px;
  border: 1px solid rgb(83, 99, 122);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: linear-gradient(to top, rgb(110, 132, 163), rgb(99, 119, 147));

  /* This avoids it jumping around when :active */
  vertical-align: middle;
}
#noVNC_connect_button div:active {
  border-bottom-width: 1px;
  margin-top: 3px;
}
:root:not(.noVNC_touch) #noVNC_connect_button div:hover {
  background: linear-gradient(to top, rgb(110, 132, 163), rgb(105, 125, 155));
}

#noVNC_connect_button img {
  vertical-align: bottom;
  height: 1.3em;
}

/* ----------------------------------------
 * Password Dialog
 * ----------------------------------------
 */

#noVNC_credentials_dlg {
  position: relative;

  transform: translateY(-50px);
}
#noVNC_credentials_dlg.noVNC_open {
  transform: translateY(0);
}
#noVNC_credentials_dlg ul {
  list-style: none;
  margin: 0px;
  padding: 0px;
}
.noVNC_hidden {
  display: none;
}


/* ----------------------------------------
 * Main Area
 * ----------------------------------------
 */

/* Transition screen */
#noVNC_transition {
  display: none;

  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;

  color: white;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;

  /*display: flex;*/
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
:root.noVNC_loading #noVNC_transition,
:root.noVNC_connecting #noVNC_transition,
:root.noVNC_disconnecting #noVNC_transition,
:root.noVNC_reconnecting #noVNC_transition {
  display: flex;
}
:root:not(.noVNC_reconnecting) #noVNC_cancel_reconnect_button {
  display: none;
}
#noVNC_transition_text {
  font-size: 1.5em;
}

/* Main container */
#noVNC_container {
  width: 100%;
  height: 100%;
  background-color: #313131;
  border-bottom-right-radius: 800px 600px;
  /*border-top-left-radius: 800px 600px;*/
}

#noVNC_keyboardinput {
  width: 1px;
  height: 1px;
  background-color: #fff;
  color: #fff;
  border: 0;
  position: absolute;
  left: -40px;
  z-index: -1;
  ime-mode: disabled;
}

/*Default noVNC logo.*/
/* From: http://fonts.googleapis.com/css?family=Orbitron:700 */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  src: local('?'), url('Orbitron700.woff') format('woff'),
                   url('Orbitron700.ttf') format('truetype');
}

.noVNC_logo {
  color:yellow;
  font-family: 'Orbitron', 'OrbitronTTF', sans-serif;
  line-height:90%;
  text-shadow: 0.1em 0.1em 0 black;
}
.noVNC_logo span{
  color:green;
}

#noVNC_bell {
  display: none;
}

/* ----------------------------------------
 * Media sizing
 * ----------------------------------------
 */

@media screen and (max-width: 640px){
  #noVNC_logo {
    font-size: 150px;
  }
}

@media screen and (min-width: 321px) and (max-width: 480px) {
  #noVNC_logo {
    font-size: 110px;
  }
}

@media screen and (max-width: 320px) {
  #noVNC_logo {
    font-size: 90px;
  }
}

/* ============================================================
 * ruOS THEME — noVNC rebrand. Appended after the stock rules so
 * the cascade favours these; original selectors are replicated
 * verbatim where a specificity tie must resolve in our favour.
 * ============================================================ */
:root {
  --ruos-bg:#08080c; --ruos-bg2:#0e0e16; --ruos-ink:#f5f3f0;
  --ruos-ink-dim:#c3bcb0; --ruos-muted:#857c6d;
  --ruos-gold:#e8a634; --ruos-gold2:#f4b73e; --ruos-coral:#ff7a4d;
  --ruos-ok:#26d968; --ruos-warn:#f4b73e; --ruos-crit:#ff6478;
  --ruos-line:rgba(232,166,52,0.16); --ruos-line-soft:rgba(245,243,240,0.08);
  --ruos-panel:#12121c;
  --ruos-mono:"IBM Plex Mono",ui-monospace,monospace;
  --ruos-sans:"IBM Plex Sans",ui-sans-serif,system-ui,sans-serif;
  --ruos-disp:"Bricolage Grotesque","IBM Plex Sans",sans-serif;
  /* Ambient ruOS backdrop (matches the landing page). CSS-only, no external
   * asset: gold bloom top-center, a cooler dark radial bottom-right, faint
   * concentric topographic contour rings, and a low sheen of facets — all
   * kept dark + low-contrast so they never compete with the streamed desktop.
   * Static (no animation), so it inherently respects prefers-reduced-motion. */
  --ruos-ambient:
    radial-gradient(120% 65% at 50% -12%, rgba(232,166,52,0.13), transparent 55%),
    radial-gradient(85% 60% at 100% 110%, rgba(96,116,158,0.09), transparent 62%),
    repeating-radial-gradient(circle at 50% -8%, transparent 0 46px, rgba(232,166,52,0.028) 46px 47px),
    repeating-linear-gradient(118deg, transparent 0 64px, rgba(245,243,240,0.012) 64px 65px),
    var(--ruos-bg);
}
html, body {
  background: var(--ruos-ambient);
  background-attachment: fixed;
  font-family: var(--ruos-sans);
  color: var(--ruos-ink);
}
/* Behind the desktop canvas: transparent so the ambient body backdrop shows
 * through as branded letterbox margins when the remote doesn't fill the view. */
#noVNC_container {
  background: transparent;
  border-bottom-right-radius: 0;
}

/* ---- Control bar ---- */
#noVNC_control_bar {
  background-color: var(--ruos-bg2);
  border-radius: 0 12px 12px 0;
  border-right: 1px solid var(--ruos-line);
}
.noVNC_right #noVNC_control_bar {
  border-radius: 12px 0 0 12px;
  border-right: none;
  border-left: 1px solid var(--ruos-line);
}
#noVNC_control_bar_handle {
  background-color: var(--ruos-bg2);
  border: 1px solid var(--ruos-line);
}

/* ---- Buttons: consistent box, gold hover/active, subtle depth ---- */
.noVNC_button {
  box-sizing: border-box;
  width: 40px; height: 40px;
  padding: 7px;
  margin: 8px auto;
  border: 1px solid var(--ruos-line);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  opacity: 0.9;
  transition: background .14s ease, border-color .14s ease, opacity .14s ease, transform .06s ease;
}
.noVNC_button.noVNC_selected {
  border-color: var(--ruos-gold);
  background: rgba(232,166,52,0.24);
  opacity: 1;
}
:root:not(.noVNC_touch) .noVNC_button.noVNC_selected:hover,
.noVNC_button.noVNC_selected:focus {
  border-color: var(--ruos-gold2);
  background: rgba(232,166,52,0.32);
}
:root:not(.noVNC_touch) .noVNC_button:hover,
.noVNC_button:focus {
  background: rgba(232,166,52,0.16);
  border-color: var(--ruos-gold);
  opacity: 1;
}
.noVNC_button:active { transform: translateY(1px); }
/* Primary actions read as deliberate: a persistent gold ring */
#noVNC_fullscreen_button { border-color: rgba(232,166,52,0.42); }
#noVNC_disconnect_button { border-color: rgba(255,100,120,0.42); }
:root:not(.noVNC_touch) #noVNC_disconnect_button:hover,
#noVNC_disconnect_button:focus {
  background: rgba(255,100,120,0.16); border-color: var(--ruos-crit);
}

/* ---- Panels (settings, power, clipboard, credentials) ---- */
.noVNC_panel {
  background: var(--ruos-panel);
  color: var(--ruos-ink);
  border: 1px solid var(--ruos-line);
  border-radius: 12px;
  box-shadow: 0 18px 50px -20px rgba(0,0,0,0.9);
}
.noVNC_panel .noVNC_heading {
  background: linear-gradient(135deg, var(--ruos-gold2), var(--ruos-coral));
  color: #1a0f00;
  border-radius: 8px;
  font-family: var(--ruos-disp);
}
.noVNC_panel hr { border-top: 1px solid var(--ruos-line-soft); }
.noVNC_panel label { color: var(--ruos-ink-dim); }
.noVNC_panel input[type=text],
.noVNC_panel input[type=number],
.noVNC_panel input[type=password],
.noVNC_panel select,
.noVNC_panel textarea {
  background: rgba(0,0,0,0.34);
  color: var(--ruos-ink);
  border: 1px solid var(--ruos-line-soft);
  border-radius: 6px;
  font-family: var(--ruos-mono);
}
.noVNC_panel input[type=text]:focus,
.noVNC_panel input[type=number]:focus,
.noVNC_panel input[type=password]:focus,
.noVNC_panel select:focus,
.noVNC_panel textarea:focus { border-color: var(--ruos-gold); outline: none; }
.noVNC_panel select:disabled,
.noVNC_panel input:disabled { opacity: 0.5; cursor: not-allowed; }
.noVNC_panel input[type=range] { accent-color: var(--ruos-gold); }
.noVNC_panel input[type=checkbox] { accent-color: var(--ruos-gold); }
.noVNC_panel .noVNC_expander ~ * { background: rgba(232,166,52,0.06); }

/* Submit / action buttons inside panels + the password dialog */
.noVNC_submit,
.noVNC_panel input[type=button],
#noVNC_credentials_button {
  background: linear-gradient(135deg, var(--ruos-gold2), var(--ruos-coral));
  color: #1a0f00;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-family: var(--ruos-mono);
  font-weight: 600;
  cursor: pointer;
}

/* ---- Logo -> ruOS crown (control bar + connect dialog) ---- */
.noVNC_logo {
  font-size: 0;
  color: transparent;
  text-shadow: none;
  background-image: url("../images/ruos-crown.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.noVNC_logo span { color: transparent; }
#noVNC_control_bar .noVNC_logo {
  font-size: 0;
  width: 34px; height: 34px;
  margin: 10px auto 4px;
  filter: drop-shadow(0 3px 10px rgba(244,183,62,0.4));
}
#noVNC_connect_dlg .noVNC_logo {
  font-size: 0;
  width: 120px; height: 120px;
  margin: 0 auto 4px;
  background-size: 110px 110px;
  filter: drop-shadow(0 6px 18px rgba(244,183,62,0.45));
}

/* ---- ruOS wordmark + tagline (injected into vnc.html) ---- */
.ruos_word { font-family: var(--ruos-disp); font-weight: 700; color: var(--ruos-gold2); line-height: 1; }
.ruos_tag  { font-family: var(--ruos-sans); color: rgba(232,166,52,0.68); letter-spacing: .015em; }
/* Control-bar branding (narrow column) */
.ruos_cbrand { max-width: 58px; margin: 0 auto 10px; text-align: center; }
.ruos_cbrand .ruos_word { font-size: 15px; letter-spacing: .01em; }
.ruos_cbrand .ruos_tag  { font-size: 7.5px; line-height: 1.18; margin-top: 3px; }
/* Connect / credentials branding (roomy) */
.ruos_brand { text-align: center; margin: 0 auto 16px; }
.ruos_brand .ruos_word { font-size: 34px; }
.ruos_brand .ruos_tag  { font-size: 12.5px; margin-top: 6px; }
.ruos_crownlet {
  width: 62px; height: 62px; margin: 0 auto 8px;
  background: url("../images/ruos-crown.svg") no-repeat center / contain;
  filter: drop-shadow(0 5px 14px rgba(244,183,62,0.45));
}
.ruos_brand_cred { margin-bottom: 14px; }
.ruos_tag_trans { text-align: center; font-family: var(--ruos-sans); font-size: 13px; color: rgba(232,166,52,0.7); margin-top: 10px; }

/* ---- Connect button ---- */
#noVNC_connect_button { background: transparent; box-shadow: none; }
#noVNC_connect_button div {
  background: linear-gradient(135deg, var(--ruos-gold2), var(--ruos-coral));
  color: #1a0f00;
  border: none;
  border-radius: 10px;
  font-family: var(--ruos-mono);
  font-weight: 600;
  box-shadow: 0 14px 40px -16px rgba(244,183,62,0.6);
}
:root:not(.noVNC_touch) #noVNC_connect_button div:hover {
  background: linear-gradient(135deg, var(--ruos-gold2), var(--ruos-coral));
  filter: brightness(1.06);
}

/* ---- Status dialog (Connecting.../Disconnected banners) ---- */
#noVNC_status {
  color: var(--ruos-ink);
  font-family: var(--ruos-mono);
  border-bottom: 1px solid var(--ruos-line);
}
#noVNC_status.noVNC_status_normal { background: rgba(14,14,22,0.95); }
#noVNC_status.noVNC_status_warn   { background: rgba(244,183,62,0.92); color: #1a0f00; }
#noVNC_status.noVNC_status_error  { background: rgba(255,100,120,0.94); color: #1a0000; }

/* ---- Transition screen (connecting / disconnecting / reconnecting) ---- */
/* Ambient backdrop under a light veil so "Connecting…" / "Disconnected" read
 * as branded ruOS screens rather than flat black. */
#noVNC_transition {
  background: linear-gradient(rgba(8,8,12,0.74), rgba(8,8,12,0.82)), var(--ruos-ambient);
  background-attachment: fixed;
  color: var(--ruos-ink);
}
#noVNC_transition_text { font-family: var(--ruos-disp); color: var(--ruos-ink); }
