/**/
/* THIS FILE AUTOGENERATED FROM CSS in saito/css-includes/ / */ 
/**/
.uploader-uploaded-photo {
    height: auto;
    object-fit: cover;
    width: 100%;
}

.photo-uploader {
    background-color: var(--saito-background-color);
    height: 33rem;
    width: 70rem;
    /* position: absolute; */
    /* top: 50%;
	left: 50%; */
    padding: 5rem;
    /* transform: translate(-50%, -50%); */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--saito-border-color);
    font-size: 2rem;
    border-radius: 0.5rem;
    color: var(--saito-font-color);
}

@media (max-width: 768px) {
    .photo-uploader {
        width: 90vw;
        padding: 5vw;
    }
}

@media (max-width: 480px) {
    .photo-uploader {
        width: 95vw;
        font-size: calc(14px + 1vw);
    }
}

.uploader-content {
    display: none;
    height: 100%;
    width: 100%;
    padding: 5rem;
    position: absolute;
}

.uploader-actions {
    width: calc(100% - 10rem);
    position: absolute;
    bottom: 0;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    z-index: 10;
}

.uploader-actions> :nth-child(1) {
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .uploader-actions {
        flex-direction: column;
        justify-content: center;
    }
    .uploader-actions> :nth-child(1) {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}.gif-icon {
  /*background-image: url('/saito/img/GIF.svg');*/
  /*height: 37px;
  width: 37px;
  line-height: 3.6rem;*/
}

.gif-icon svg {
  max-width: 2.8rem;
  max-height: 2.8rem;
  fill: var(--saito-primary);
}

.gif-icon:hover svg {
  fill: var(--saito-white);
}

.resize-icon {
  position: absolute;
  left: -0.3rem;
  top: -0.4rem;
  width: 0.8rem;
  height: 1.3rem;
  cursor: nw-resize;
  transform: rotate(45deg);
  border-right: 1px solid var(--border-color-general-dividers);
  z-index: 20;
}

.resize-icon::after {
  content: '';
  cursor: nw-resize;
  border-right: 1px solid var(--border-color-general-dividers);
  z-index: 21;
  position: absolute;
  top: -0.7rem;
  width: 0.1rem;
  height: 2.5rem;
  padding: 0.6rem;
}

.resize-icon::before {
  content: '';
  cursor: nw-resize;
  z-index: 21;
  position: absolute;
  top: -0.8rem;
  left: 0.6rem;
  height: 3rem;
  padding: 0.75rem;
}

.resize-icon.horizontal {
  right: 0rem;
  top: 50%;
  left: auto;
  transform: translate(50%, -50%) rotate(0deg);
  background-color: var(--border-color-general-dividers);
  width: 1.2rem;
  height: 5rem;
  z-index: 2;
  cursor: ew-resize;
  border-radius: 0.25rem;
}

.resize-icon.horizontal:before {
  content: '';
  position: absolute;
  right: 7px;
  left: 15%;
  top: 45%;
  transform: rotate(90deg);
  font-size: 1.5rem;
  color: white;
  z-index: 21;
  height: 0rem;
  padding: 0.3rem;
  border-right: 2px solid var(--saito-white);
  cursor: ew-resize;
}

.resize-icon.horizontal:after {
  content: '';
  position: absolute;
  right: 0px;
  top: 35%;
  left: 22%;
  transform: rotate(90deg);
  font-size: 1.5rem;
  z-index: 21;
  height: 0rem;
  padding: 0.3rem;
  border-right: 2px solid var(--saito-white);
  cursor: ew-resize;
}

@media screen and (max-width: 660px) {
  .gif-icon svg {
    height: 2.6rem;
    width: 2.6rem;
  }
}
.saito-cta-progress {
  --saito-cta-progress-width: 86rem;
  width: min(95vw, var(--saito-cta-progress-width));
  height: 4.2rem;
  min-height: 3.6rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--saito-button-radius, var(--saito-border-radius, 0.75rem));
  border: 1px solid var(--saito-overlay-panel-border, var(--saito-border-color, rgba(255, 255, 255, 0.16)));
  background: rgba(17, 19, 23, 0.72);
  background: color-mix(in srgb, var(--saito-overlay-panel-background, #111317) 72%, transparent);
  box-shadow: var(--saito-overlay-panel-shadow, 0 16px 32px rgba(0, 0, 0, 0.32));
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.saito-cta-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--saito-cta-progress-value, 0%);
  min-width: 0.35rem;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--saito-primary, #ff914d), var(--saito-primary-dark, #f38239));
  box-shadow: 0 0 24px color-mix(in srgb, var(--saito-primary, #ff914d) 48%, transparent);
  transition: width 0.16s ease-out;
}

.saito-cta-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saito-primary-text, #fff);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.saito-cta-progress.complete {
  opacity: 0;
  transform: translateY(-0.4rem);
  pointer-events: none;
}

.saito-cta-loading-parent {
  flex-direction: column;
  gap: 1.6rem;
}

.arcade-cta-section .saito-cta-progress,
.stack-splash .saito-cta-progress {
  --saito-cta-progress-width: 118rem;
}

.saito-cta.saito-cta-loading button,
.saito-cta.saito-cta-loading input,
.saito-cta.saito-cta-loading select,
.saito-cta.saito-cta-loading textarea,
.saito-cta.saito-cta-loading .saito-button-primary,
.saito-cta.saito-cta-loading .saito-button-secondary,
.saito-cta.saito-cta-loading .stack-btn-primary,
.saito-cta.saito-cta-loading .stack-btn-secondary,
.saito-cta.saito-cta-loading .limbo-option,
.saito-cta.saito-cta-loading .vault-btn {
  cursor: wait;
  filter: grayscale(0.18) brightness(0.82);
  opacity: 0.62;
  pointer-events: none;
}

body:has(.saito-cta) .pace {
  display: none;
}

.saito-cta-logo {
  color: var(--saito-cta-logo, var(--saito-white, #fff));
}

.saito-cta-logo::after {
  background: currentColor;
}

body.saito-cta-loader-active::before,
body.saito-cta-loader-complete::before {
  opacity: 0 !important;
  z-index: -2 !important;
  pointer-events: none !important;
}

@supports not selector(body:has(.saito-cta)) {
  body.saito-cta-loader-active .pace {
    display: none;
  }
}

@media (max-width: 720px) {
  .saito-cta-progress {
    height: 3.8rem;
  }
}
select {
  width: 100%;
  cursor: pointer;
}

select,
::picker(select) {
/*  appearance: base-select;*/
}


/* ----------------------------------------------------------------
Selects
-----------------------------------------------------------------*/
.saito-select {
  position: relative;
  display: flex;
  width: 20em;
  height: 3em;
  line-height: 3;
  background-color: transparent;
  overflow: hidden;
  width: 100.01%;
  border-radius: 0 var(--saito-input-radius) var(--saito-input-radius) 0;
  outline: none;
  background-color: transparent;
  cursor: pointer;
}

.saito-select::after {
  content: "\25BC";
  position: absolute;
  top: 0;
  right: 0;
  color: var(--saito-button-primary-fg);
  background-color: var(--saito-button-primary-bg);
  cursor: pointer;
  pointer-events: none;
  -webkit-transition: 0.25s all ease;
  -o-transition: 0.25s all ease;
  transition: 0.25s all ease;
  border-radius: 0 var(--saito-input-radius) var(--saito-input-radius) 0;
  height: 100%;
  width: 5rem;
  display: flex;
  justify-content: center;
}

.saito-select:hover::after {
  color: var(--saito-button-primary-fg) !important;
}

.saito-select .saito-slct {
  font-size: 2rem;
}

.saito-slct {
  appearance: none;
  background-color: var(--saito-input-bg);
  color: var(--saito-input-fg);
  border-radius: var(--saito-input-radius);
  padding: 0 var(--saito-space-md);
}

textarea,
input {
  background-color: var(--saito-input-bg);
  color: var(--saito-input-fg-heavy);
  border: var(--border-thickness-thin) solid var(--saito-input-border);
  box-shadow: var(--saito-input-shadow);
  font-family: var(--saito-input-font);
}




textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--saito-input-border-focus);
  box-shadow: var(--saito-focus-ring);
}


/* ----------------------------------------------------------------
text and password inputs
-----------------------------------------------------------------*/

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="datetime-local"] {
  padding: var(--saito-space-md) var(--saito-space-lg);
  font-size: 1.6rem;
  width: 20rem;  /* Min width ? */
  color: var(--saito-input-fg);
  border-radius: var(--saito-input-radius);
  background-color: var(--saito-input-bg);
  font-family: var(--saito-input-font);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime-local"] {
  outline: none;
}

input::placeholder {
  opacity: 80%;
  color: var(--saito-input-placeholder);
}

input[type="text"],
input[type="password"],
select {
  width: 100%;
}


/* ----------------------------------------------------------------
checkbox input
-----------------------------------------------------------------*/

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border: var(--border-thickness-thin) solid var(--saito-input-border-focus);
  width: 2rem;
  height: 2rem;
  margin: 3px 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

input[type="checkbox"]::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f00c";
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.6rem;
  opacity: 0;
}

input[type="checkbox"]:checked {
  background-color: var(--saito-primary);
}

input[type="checkbox"]:checked::after {
  color: var(--saito-primary-text);
  opacity: 1;
}

/* ----------------------------------------------------------------
radio inputs
-----------------------------------------------------------------*/

input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  border: var(--border-thickness-thin) solid var(--saito-input-border-focus);
  width: 2rem;
  height: 2rem;
  margin: 0 0.5rem;
  border-radius: 3px;
  position: relative;
}

input[type="radio"]::after {
  font-weight: 900;
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--saito-primary);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  font-size: 1rem;
  opacity: 0;
  border-radius: 3px;
}

input[type="radio"]:checked::after {
  color: var(--saito-primary-text);
  opacity: 1;
}

/* ----------------------------------------------------------------
Range inputs
-----------------------------------------------------------------*/

input[type="range"] {
  -webkit-appearance: none;
  margin: 1.8rem 0;
  width: 100%;
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.6rem;
  cursor: pointer;
  box-shadow: var(--saito-elevation-2);
  background: var(--saito-primary);
  border-radius: 0.5rem;
  border: var(--border-color-general-dividers);
}

input[type="range"]::-webkit-slider-thumb {
  box-shadow: var(--saito-elevation-2);
  border: 1px solid var(--color-contrast);
  height: 3rem;
  width: 2rem;
  border-radius: 0.5rem;
  background: var(--saito-surface-inverse);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -1.2rem;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 0.6rem;
  cursor: pointer;
  box-shadow: var(--saito-elevation-2);
  background: var(--saito-primary);
  border-radius: 0.5rem;
  border: var(--border-color-general-dividers);
}

input[type="range"]::-moz-range-thumb {
  box-shadow: var(--saito-elevation-2);
  border: 1px solid var(--color-contrast);
  height: 3rem;
  width: 2rem;
  border-radius: .5rem;
  background: var(--saito-surface-inverse);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  margin-top: -1.2rem;
}

input[type="range"]:focus::-webkit-slider-runnable-track {
  background: var(--saito-primary);
}

input[type="range"]::-ms-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-width: 1.6rem 0;
  color: transparent;
}

input[type="range"]::-ms-fill-lower {
  background: var(--saito-primary);
  border: var(--border-color-general-dividers);
  border-radius: 0.5rem;
  box-shadow: var(--saito-elevation-2);
}

input[type="range"]::-ms-fill-upper {
  border: var(--border-color-general-dividers);
  border-radius: 0.5rem;
  box-shadow: var(--saito-elevation-2);
}

input[type="range"]::-ms-thumb {
  box-shadow: var(--saito-elevation-2);
  border: 1px solid var(--color-contrast);
  height: 3.6rem;
  width: 1.6rem;
  border-radius: 0.5rem;
  background: var(--saito-surface-inverse);
  cursor: pointer;
}

input[type="range"]:focus::-ms-fill-lower {
  background: var(--saito-primary);
}

input[type="range"]:focus::-ms-fill-upper {
  background: var(--saito-primary);
}


/***************************************************
 * the cool toggle switch element for RS - curation
 * (hoping it is more generally applicable)
 * *************************************************/
.toggle-switch {
  position: relative;
  display: flex;
  min-width: 250px;
  width: 100%;
  border-radius: 999px;
  background: var(--saito-surface-hover);
  border: 1px solid var(--saito-border-color);
  overflow: hidden;
  font-size: 0.9rem;
  user-select: none;
  padding: 2px;
}

.toggle-switch::before {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: calc(70% - 4px);
  background: var(--saito-primary);
  border-radius: 999px;
  z-index: 0;
  transition: left 0.3s ease;
  left: 2px; /* initial position */
}

.toggle-option {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  letter-spacing: 1px;
  min-width: auto !important;
  width: auto !important;
  padding: 10px 0 !important;
  margin: 0.5rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  z-index: 1;
  font-weight: 500;
  transition:
    flex-basis 0.3s ease,
    color 0.25s ease;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 30%;
}

.toggle-option:hover {
  border: 0;
  color: transparent;
}

.toggle-switch .toggle-option.active {
  flex-basis: 70% !important;
  color: var(--saito-primary-text);
}

.toggle-switch .toggle-option:not(.active) {
  color: transparent;
}

.toggle-switch.active-left::before {
  left: 2px;
  width: calc(70% - 4px);
}

.toggle-switch.active-right::before {
  left: calc(30% + 2px);
  width: calc(70% - 4px);
}
/* ============================================
   NFT OVERLAY CONTAINER
   ============================================ */
.saito-nft-overlay-container {
  width: min(90vw, 900px);
  height: 750px;
  max-height: 90vh;
  display: grid;
  grid-template-rows: min-content 1fr;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--saito-radius-lg);
  box-shadow: var(--saito-overlay-panel-shadow);
}

/* ============================================
   HEADER
   ============================================ */
.saito-nft-overlay.header {
  padding: 14px 18px;
  border-bottom: var(--border-thickness-thin) solid var(--saito-overlay-panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.saito-nft-header-left {
  display: grid;
  grid-template-columns: min-content minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  flex: 1;
}

.saito-nft-header-left .saito-identicon-box {
  height: 4.5rem;
  width: 4.5rem;
}

.saito-nft-header-title {
  font-weight: bolder;
  font-size: 2rem;
  margin-bottom: 2px;
}

.saito-nft-header-sub {
  font-size: 1.7rem;
  color: var(--saito-font-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saito-nft-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.saito-nft-header-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 36px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.saito-nft-header-btn:hover {
  opacity: 1;
}

.saito-nft-header-btn.rotate {
  transform: rotate(90deg);
  transform-origin: center;
}

/* ============================================
   PANELS WRAPPER
   ============================================ */
.saito-nft-overlay.panels {
  flex: 1;
  position: relative;
  min-height: 200px;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.saito-nft-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100%;
  transition: transform 0.35s ease;
  background: var(--saito-background-color);
}

.saito-nft-panel-view {
  transform: translateX(0);
}

/* Hidden panels (right side) */
.saito-nft-panel-send,
.saito-nft-panel-info {
  transform: translateX(100%);
}

/* Slide animations */
.saito-nft-overlay.panels.saito-nft-mode-send .saito-nft-panel-view,
.saito-nft-overlay.panels.saito-nft-mode-info .saito-nft-panel-view {
  transform: translateX(-100%);
}

.saito-nft-overlay.panels.saito-nft-mode-send .saito-nft-panel-send,
.saito-nft-overlay.panels.saito-nft-mode-info .saito-nft-panel-info {
  transform: translateX(0);
}

/* Panel layout */
.saito-nft-panel-view,
.saito-nft-panel-send {
  display: grid;
  grid-template-rows: 1fr min-content;
  max-height: 100%;
}

.saito-nft-panel-info {
  display: grid;
  grid-template-rows: 1fr min-content;
  max-height: 100%;
}

.saito-nft-panel-body {
  display: grid;
  grid-template-rows: max-content min-content 1fr;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

/* Panel body padding */
.saito-nft-panel-send .saito-nft-panel-body {
  padding: 2rem;
  gap: 2rem;
}

.saito-nft-panel-info .saito-nft-panel-body {
  padding: 1.8rem;
  overflow-y: auto;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  transition: opacity 0.3s ease-in-out;
}

/* Fade out panel body content when overlay is active */
.saito-nft-panel-info.split-overlay-panel-active
  .saito-nft-panel-body
  > *:not(.saito-nft-split-overlay) {
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.saito-nft-panel-view .saito-nft-panel-body {
  display: grid;
  grid-template-rows: 1fr min-content;
  max-height: 100%;
}

/* ============================================
   NFT INFO TABLE
   ============================================ */
.nft-info-table {
  width: 100%;
  margin-bottom: 2rem;
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  border-radius: var(--saito-radius-md);
  overflow: hidden;
  background: var(--saito-surface-hover);
}

.nft-info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: var(--border-thickness-thin) solid var(--saito-border-color);
  padding: 0.8rem 1rem;
  align-items: start;
}

.nft-info-row:last-child {
  border-bottom: none;
}

.nft-info-row-metadata {
  grid-template-columns: 120px 1fr;
  align-items: start;
}

.nft-info-label {
  font-weight: bold;
  color: var(--saito-font-color);
  font-size: 1.6rem;
  margin-right: 1rem;
}

.nft-info-value {
  color: var(--saito-font-color);
  font-size: 1.6rem;
  word-break: break-word;
  line-height: 1.5;
}

.nft-info-metadata {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nft-info-metadata-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem;
  background: var(--saito-surface-color);
  border-radius: var(--saito-radius-sm);
}

.nft-info-metadata-key {
  font-weight: 600;
  color: var(--saito-font-color);
  font-size: 1.3rem;
}

.nft-info-metadata-value {
  color: var(--saito-font-color);
  font-size: 1.3rem;
  word-break: break-word;
  white-space: pre-wrap;
  font-family: monospace;
}

.nft-info-metadata-empty {
  color: var(--saito-font-color);
  font-style: italic;
  font-size: 1.3rem;
}

/* ============================================
   IMAGE & CONTENT
   ============================================ */
.nft-creator {
  padding: 1rem;
}

/* Full-size image/textbox for provide-metadata overlay */
.nft-creator-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.nft-creator .saito-nft-panel-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nft-creator .saito-nft-image {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 400px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.nft-creator .textarea-container {
  flex: 1 1 auto;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nft-creator.saito-nft-panel,
.provide-metadata .saito-nft-panel.nft-metadata {
  transform: translateX(0%);
}

.nft-creator-overlay.panels {
  position: relative;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  height: 500px;
}

.saito-nft-panel.nft-metadata {
  transform: translateX(100%);
}

.provide-metadata .nft-creator.saito-nft-panel {
  transform: translateX(-100%);
}

/* Image wrapper for overlay positioning */
.saito-nft-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.saito-nft-panel-body-view {
  position: relative;
  display: flex;
  flex-direction: column;
}

.saito-nft-description-box-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  min-width: 400px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--saito-background-color);
  border: var(--border-thickness-medium) solid var(--saito-border-color);
  border-radius: var(--saito-radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--saito-elevation-1);
}

.saito-nft-description-text-overlay {
  font-size: 1.6rem;
  color: var(--saito-font-color);
  line-height: 1.5;
  word-break: break-word;
  text-align: center;
}

.saito-nft-image {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.saito-nft-image img {
  width: auto;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Description box - appears OVER image/code in provide-metadata overlay */
.saito-nft-metadata-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  color: var(--saito-font-color);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  border: var(--border-thickness-medium) solid var(--saito-border-color);
  border-radius: var(--saito-radius-sm);
  cursor: text;
  font-family: inherit;
  transition: all 0.1s ease;
}

.saito-nft-metadata-box:hover {
  background: var(--saito-surface-hover);
}

/* Legacy description styles for backward compatibility */
.saito-nft-description {
  font-size: 14px;
  color: var(--saito-font-color);
  line-height: 1.4;
  max-width: 100%;
  max-height: 30vh;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.saito-nft-description.editable {
  transition: all 0.2s ease;
  border-radius: var(--saito-radius-sm);
  margin: 0;
}

.saito-nft-description.editable:hover {
  background: var(--saito-surface-selected);
  transform: translateY(-1px);
}

.saito-nft-text {
  height: 100%;
  width: 100%;
  padding: 1rem;
  font-family: monospace;
  font-size: 1.2rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  overflow: hidden;
  overflow-y: auto;
  white-space: pre-wrap;
  color: var(--saito-status-code-fg);
  background: var(--saito-status-code-bg);
  font-size: 1.75rem;
}

/* ============================================
   PANEL FOOTER
   ============================================ */
.saito-nft-panel-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 1rem 1.8rem;
  border-top: var(--border-thickness-thin) solid var(--saito-border-color);
  transition: opacity 0.3s ease-in-out;
  margin-top: auto;
}

/* Hide DELETE button when split overlay is active */
.saito-nft-panel-info.split-overlay-panel-active .saito-nft-panel-footer {
  opacity: 0;
  pointer-events: none;
}

.saito-nft-footer-btn {
  flex: 1;
  padding: 12px 24px;
  border-radius: var(--saito-radius-md);
  font-weight: 600;
  max-width: 20rem;
  transition: all 0.2s ease;
}

.saito-nft-footer-btn.disabled-btn {
  filter: opacity(60%) brightness(0.8);
}

.create-nft-container .saito-nft-panel-footer {
  padding: 0;
  padding-top: 1.8rem;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.saito-nft-input-label {
  font-size: 13px;
  margin: 12px 0 6px;
  color: var(--saito-font-color);
}

.saito-nft-input-field {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--saito-input-radius);
  border: var(--border-thickness-thin) solid var(--saito-input-border);
  margin-bottom: 10px;
  height: max-content;
  transition: border-color 0.2s ease;
}

.saito-nft-input-field:focus {
  outline: none;
  border-color: var(--saito-primary);
}

.saito-nft-mode-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--saito-font-color);
}

/* ============================================
   SPLIT SLIDER
   ============================================ */
.nft-sliders-container {
  width: 100%;
  margin-top: 2rem;
  min-height: 0;
}

/* Split overlay that covers the panel body */
.saito-nft-split-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: var(--saito-background-color);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  overflow-y: auto;
}

.saito-nft-split-overlay.split-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.saito-nft-split-overlay.split-overlay-active,
.saito-nft-split-overlay.split-overlay-active * {
  pointer-events: auto !important;
}

.split-instructions {
  font-size: 2.2rem;
  line-height: 1.6;
  color: var(--saito-font-color);
  margin-bottom: 2rem;
  padding: 0.3rem;
  border-radius: var(--saito-radius-md);
  max-width: 600px;
  width: 100%;
  font-weight: 500;
}

.split-slider-wrapper {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fancy-slider-bar {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
  align-items: center;
  background: var(--saito-background-color);
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  padding: 0;
  height: 50px;
}

.split-number-box {
  min-width: 80px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--saito-background-color);
  border: var(--border-thickness-medium) solid var(--saito-primary);
  border-radius: 8px;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--saito-font-color);
  box-shadow: var(--saito-elevation-1);
  user-select: none;
}

.split-half {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: default;
  background: var(--saito-surface-selected);
  transition: background 0.2s ease;
}

/* Left half: border-radius only on right (inward) side */
.split-half:first-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Right half: border-radius only on left (inward) side */
.split-half:last-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.split-bar {
  width: 16px;
  height: 100%;
  min-height: 50px;
  background: var(--saito-primary);
  cursor: ew-resize;
  position: relative;
  z-index: 10;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: var(--saito-control-ring-shadow);
}

.split-bar::before,
.split-bar::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 3px;
  height: 20px;
  background: var(--saito-primary-text);
  border-radius: 2px;
  transform: translateX(-50%);
}

.split-bar::before {
  top: 25%;
}

.split-bar::after {
  bottom: 25%;
}

.split-bar:hover {
  background: var(--saito-primary-dark);
  box-shadow:
    var(--saito-control-ring-shadow),
    var(--saito-elevation-2);
}

.split-bar:active {
  background: var(--saito-primary-dark);
}

/* Split buttons container */
.split-buttons-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin-top: 2rem;
  gap: 1rem;
}

.split-buttons-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
}

/* Split button styling */
.split-button {
  width: 100px;
  padding: 10px 20px;
  border-radius: var(--saito-radius-sm);
  border: none;
  background: var(--saito-primary);
  color: var(--saito-primary-text);
  font-weight: 600;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--saito-elevation-1);
}

/* Return button styling (left-aligned, secondary style) */
.split-return-button {
  background: var(--saito-surface-selected);
  color: var(--saito-font-color);
  border: var(--border-thickness-thin) solid var(--saito-border-color);
}

.split-return-button:hover {
  background: var(--saito-surface-hover);
  border-color: var(--saito-primary);
}

.split-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--saito-button-disabled-bg);
}

.split-button:not(:disabled):hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--saito-elevation-2);
}

.split-button:not(:disabled):active {
  transform: translateY(0);
  box-shadow: var(--saito-elevation-1);
}

.atomize-button {
  background: var(--saito-primary-text);
  color: var(--saito-primary);
}

.atomize-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--saito-button-disabled-bg);
  color: var(--saito-button-disabled-fg);
}

/* ============================================
   UTXO TABLE
   ============================================ */

/* New slips flex container */
.nft-slips-container {
  margin-bottom: 2rem;
}

.nft-slips-title {
  font-weight: bold;
  color: var(--saito-font-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.nft-slips-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nft-slip-box {
  flex: 1 1 250px;
  max-width: 200px;
  padding: 1.2rem;
  background: var(--saito-surface-hover);
  border-radius: var(--saito-radius-md);
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.nft-slip-box-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
}

.nft-slip-box-label {
  font-weight: bold;
  color: var(--saito-font-color);
  font-size: 1.3rem;
}

.nft-slip-box-value {
  color: var(--saito-font-color);
  font-size: 1.3rem;
  word-break: break-word;
  text-align: right;
}

.nft-slip-box-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  border-top: var(--border-thickness-thin) solid var(--saito-border-color);
  justify-content: flex-end;
}

/* Legacy styles for backward compatibility */
.nft-details-split-utxo {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 2rem;
  padding: 0.8rem 0;
  border-bottom: var(--border-thickness-thin) solid var(--saito-border-color);
}

.nft-details-split-utxo:last-child {
  border-bottom: none;
}

.utxo-idx {
  font-weight: 600;
  min-width: 2rem;
}

.utxo-amount {
  font-weight: 600;
  min-width: 4rem;
}

.utxo-deposit {
  color: var(--saito-font-color);
  min-width: 4rem;
}

.utxo-actions {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  align-items: center;
}

.utxo-deposit-btn,
.utxo-split-btn,
.utxo-delete-btn {
  cursor: pointer;
  color: var(--saito-primary);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.utxo-deposit-btn:hover,
.utxo-split-btn:hover,
.utxo-delete-btn:hover {
  background: var(--saito-surface-selected);
  transform: translateX(2px);
}

.saito-nft-split-utxo {
  display: flex;
  flex-direction: column;
}

/* ============================================
  UTXO TABLE for TRANSFER  
  ============================================ */
.saito-nft-panel-send .nft-slip-box {
  cursor: pointer;
  user-select: none;
}

.saito-nft-panel-send .nft-slip-box.selected-shard {
  border: 3px solid var(--saito-secondary);
}

/* ============================================
   CREATE NFT (keep for compatibility)
   ============================================ */
.create-nft-btn-row {
  display: flex;
  align-items: center;
}

.create-nft-help-link {
  max-width: 11rem;
  border-bottom: 2px dotted;
  cursor: pointer;
  white-space: nowrap;
  width: max-content;
}

.create-nft-help-overlay {
  height: auto;
  width: 55rem;
  display: flex;
  padding: 2rem;
  flex-direction: column;
  gap: 2rem;
}

.create-nft-help-text {
  line-height: 2.5rem;
}

.create-nft-deposit-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@keyframes flash {
   0%, 50%, 100% {
      opacity: 1;
   }
   25%, 75% { 
      opacity: 0;
   }
}


.notification-item {
    padding-top: 1rem;
}

.notification-tweet {
  cursor: pointer;
  padding: 1.5rem 0rem;
  position: relative;
}

.notification-item:hover {
  background-color: var(--saito-notification-hover-bg);
}

.notifications-empty {
  margin-left: 1rem;
  display: flex;
  margin-left: 40%;
  margin-top: 4rem;
}

.notifications-empty p {
  font-size: 1.8rem;
}

.notifications-empty span {
  margin-right: 1rem;
  font-size: 1.8rem;
}

.redsquare-notifications .tweet .tweet-header {
  padding: 2rem 0rem;
}

.redsquare-notifications .tweet .tweet-body {
  min-height: 5rem;
  overflow-y: hidden;
}

.saito-chat-notifications{
  position: absolute;
  width: 20%;
  height: 100%;
  display: flex;
  right: 0.5rem;
  top: 0;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.saito-chat-notifications .saito-notification-dot {
  position: relative;
  bottom: unset;
  left: unset;
  height: 3rem;
  min-width: 3rem;
}

.saito-user:hover .saito-notification-dot{
  background-color: var(--saito-notification-ring);
  color: var(--saito-font-color);
}


#saito-header-menu-toggle .saito-notification-dot {
  bottom: unset;
  top: -20%;
  left: unset;
  right: -10%; 
}
#saito-header {
  position: fixed;
  display: flex;
  width: 100vw;
  backdrop-filter: none;
  margin: 0;
  align-items: center;
  justify-content: space-between;
  padding: 1rem max(2rem, calc((100vw - var(--saito-width)) / 2 + 0.5rem));
  top: 0;
  left: 0;
  z-index: 15;
  height: var(--saito-header-height);
  transition:
    top 0.33s linear,
    height 0.33s linear,
    padding 0.33s linear;
  color: var(--saito-header-color);
  background: transparent;
}

#saito-header.wide-screen {
  padding: 1.3rem 3rem;
}

#saito-header.arcade {
  padding: 1rem max(1.5rem, calc((100vw - var(--saito-arcade-width)) / 2 + 1rem));
  padding-left: max(1.5rem, calc((100vw - var(--saito-arcade-width)) / 4 + 1rem));
}

#saito-header.game {
  padding: 0;
  padding-right: 2rem;
  /* redefining base variable in game-layout doesn't work if people push themes on games */
  background: transparent;
  backdrop-filter: none;
  z-index: 90; /* to be the same as game-menu was */
}

#saito-header.game .saito-header-logo-wrapper,
#saito-header.game .header-msg {
  display: none;
}

#saito-header.game .hamburger-container {
  padding: 0.5rem;
  background: var(--saito-chip-bg);
  border-radius: var(--saito-radius-md);
  margin-top: 1rem;
}

.saito-header-logo {
  width: 15rem;
  cursor: pointer;
  height: 100%;
  fill: var(--saito-header-color);
}

#saito-header-menu-toggle {
  margin-right: auto;
  cursor: pointer;
  position: relative;
  width: 4rem;
  display: flex;
  justify-content: center;
}

#saito-header-menu-toggle i {
  transition: all 0.2s;
  font-size: 3rem;
  transform: scaleX(1.2);
}

#saito-header-menu-toggle:hover i {
  opacity: 0.9;
  transform: scale(1.2);
}

#saito-header-menu-toggle:active {
  transform: scale(0.9);
}

#saito-header-menu-toggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: var(--saito-header-color);
  border-radius: var(--saito-radius-sm);
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  background:
    0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    opacity 0.55s ease;
  margin-left: auto;
}

#saito-header-menu-toggle span:first-child {
  transform-origin: 0% 0%;
}

#saito-header-menu-toggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

.saito-header-profile .saito-identicon-box .saito-identicon {
  width: 4.9rem;
  height: 4.9rem;
}

.saito-header-hamburger-contents {
  display: block;
  background: var(--saito-header-menu-bg);
  position: absolute;
  right: -40rem;
  top: var(--saito-header-height);
  border-top: var(--border-thickness-thin) solid var(--saito-header-menu-border);
  border-left: var(--border-thickness-thin) solid var(--saito-header-menu-border);
  box-shadow: var(--saito-header-menu-shadow);
  transition:
    right 0.33s,
    width 0.33s;
  z-index: 21;
  width: 40rem;
  height: calc(100svh - var(--saito-header-height) + 3px);
  overflow: hidden auto;
  color: var(--saito-font-color);
}

.saito-header-hamburger-contents.show-menu {
  right: 0;
}

.saito-header-hamburger-contents.show-wallet .wallet-infoo {
  height: 0;
  margin: 0;
}

.saito-header-hamburger-contents.show-wallet .saito-header-menu-section {
  display: none;
}

.saito-header-backdrop {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: var(--saito-header-height);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--saito-header-height));
  overflow: hidden;
  z-index: 19;
  background: var(--background-color-shim-dark);
  transition: opacity 0.33s;
}

.saito-header-backdrop.menu-visible {
  opacity: 1;
  pointer-events: auto;
}

.saito-header-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: inherit;
  transition: all 2s;
}

#qrcode,
.qrcode {
  width: 100%;
  height: 18rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

#qrcode img,
#qrcode svg,
.qrcode img,
.qrcode svg {
  height: 18rem;
  width: 18rem;
  border: 1rem solid var(--saito-white);
  /* 
  We need a thick border and no padding for the qrcode to be scannable
  Do not add a padding
  */
  border-radius: var(--saito-border-radius);
  background: var(--saito-background-color);
  visibility: inherit;
}

.balance-amount {
  display: flex;
  align-items: baseline;
}

.balance-amount.pending {
  color: var(--saito-font-color-light);
  animation: fade-animation 1.5s infinite ease-in-out;
}

.balance-amount.flash {
  animation: fade-animation 1.5s infinite ease-in-out;
}

.balance-amount-whole,
.balance-amount-separator,
.balance-amount-decimal {
  width: min-content;
  display: block;
}

.balance-amount-whole,
.balance-amount-separator {
  font-size: 3.5rem;
}

.balance-amount-decimal {
  font-size: 2rem;
}

.wallet-btn-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(3rem, 1fr));
  background: var(--saito-background-color-inverse);
  color: var(--saito-font-color-inverse);
  border-radius: var(--saito-border-radius);
  margin: 0.5rem 0;
  width: 95%;
  text-transform: uppercase;
}

.wallet-btn {
  display: flex;
  cursor: pointer;
  transition: all 0.2s;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: inherit;
}

.wallet-btn:hover {
  color: var(--saito-primary-text);
  background: var(--saito-primary);
}

.wallet-identicon {
  width: 3.2rem;
  height: 3.2rem;
  margin: auto 0;
  margin-right: 0.5rem;
}

.pubkey-containter {
  display: flex;
  flex-direction: row;
  width: 75%;
  max-width: 38rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 1rem;
  font-size: 1.6rem;
}

.pubkey-mobile-wrapper {
  display: none;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.pubkey-mobile-wrapper i {
  font-size: 3.2rem;
  padding: 0.4rem;
}

.pubkey-containter:hover i {
  transform: scale(1.1);
}

.pubkey-mobile-wrapper > i:hover {
  transform: scale(1.1);
}

.wallet-infoo {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  justify-content: space-around;
  width: 100%;
  background: inherit;
  height: min(50vh, 273px);
  overflow: hidden;
  color: var(--saito-font-color);
  margin: 1.5rem 0;
  transition: all 0.8s;
}

.wallet-balance {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: baseline;
  height: 4.2rem;
  background: inherit;
}

.wallet-balance select {
  border: none;
  width: auto;
  height: 100%;
  font-size: 2.2rem;
  color: inherit;
  background: inherit;
}

.profile-public-key {
  width: fit-content;
}

.profile-public-key > div:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-wallet {
  overflow: hidden;
  height: 0;
  transition: all 2s;
}

.saito-header-hamburger-contents.show-wallet .header-wallet {
  height: fit-content;
}

.hamburger-container {
  /*display: grid;
  grid-template-columns: 1fr min-content;*/
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

#header-msg {
  cursor: pointer;
  font-size: 2rem;
  padding: 0 0 0 2rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

#header-msg.flash {
  width: fit-content;
  max-width: fit-content;
  animation: fade-animation 1.5s infinite ease-in-out;
}

@keyframes fade-animation {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

/*
  Floating menu
*/

.saito-floating-plus-btn {
  margin: auto;
  width: 4.6rem;
  height: 4.6rem;
  transition: transform 200ms ease-out;
  background-color: var(--saito-floating-action-bg);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(var(--saito-floating-action-shadow));
}

.activated .saito-floating-plus-btn {
  transform: rotate(45deg);
}

.saito-floating-plus-btn i {
  font-size: 2.5rem;
  color: var(--saito-floating-action-fg);
  width: 2.5rem;
  height: 2.5rem;
  text-align: center;
}

.saito-floating-menu-item {
  position: relative;
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 50%;
  background-color: var(--saito-floating-menu-bg);
  transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: var(--border-thickness-thin) solid var(--saito-floating-menu-border);
  color: var(--saito-font-color);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.saito-floating-menu-item i {
  font-size: 2rem;
}

.saito-floating-menu-mask {
  width: 100%;
  height: 100%;
  background: var(--saito-floating-menu-bg);
  position: absolute;
  opacity: 0;
  transition: all 0.3s linear;
}

.activated .saito-floating-menu-mask {
  width: 100vw;
  height: 100vh;
  opacity: 0.8;
  bottom: -2.5rem;
  right: -2.5rem;
}

.saito-floating-container {
  display: inline-block;
  height: max-content;
  display: block;
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 3;
}

.saito-floating-item-container {
  display: flex;
  pointer-events: none;
  transition: all 500ms linear;
  position: absolute;
  height: fit-content;
  width: fit-content;
  bottom: 0;
  right: 0;
  opacity: 0;
  gap: 2rem;
  align-items: center;
  z-index: 2;
}

.saito-floating-item-container.main {
  flex-direction: column;
  /*height: 0;*/
  bottom: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.saito-floating-item-container.alt {
  flex-direction: row;
  /*width: 0;*/
  right: 6.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.activated .saito-floating-item-container {
  opacity: 1;
  pointer-events: auto;
}

.saito-header-logo-wrapper {
  position: relative;
  height: 100%;
  cursor: pointer;
}

.saito-header-logo-wrapper img,
.saito-header-logo-wrapper i::before {
}

.saito-back-button {
  position: absolute;
  font-size: 40px;
  padding: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s;
  top: 0;
  left: 0;
  color: var(--saito-header-color);
  background: transparent;
  background-size: 100vw;
  background-position-x: min(-2rem, calc(- (100vw - var(--saito-width)) / 2 + 0.5rem));
}

.saito-header-logo-back .saito-header-logo path:first-of-type {
  opacity: 0;
}

.saito-header-logo-wrapper:hover .saito-back-button {
  transform: scale(1.1);
}

.saito-overlay-auto-backup .saito-overlay-subform {
  display: flex;
  gap: 2rem;
  flex-direction: column;
}

.saito-overlay-auto-backup .saito-overlay-form-subtext {
  font-size: 2rem;
  line-height: 2.8rem;
}

.saito-overlay-auto-backup .saito-overlay-subform-text {
  font-size: 1.8rem;
  line-height: 2.5rem;
}

.saito-overlay-auto-backup .saito-overlay-form-submit {
  width: fit-content;
  align-self: end;
}

.saito-overlay-auto-backup .saito-overlay-form-checkbox-container,
.saito-overlay-backup-reminder .saito-overlay-form-checkbox-container {
  display: flex;
  gap: 1rem;
}

.saito-overlay-auto-backup .saito-overlay-subform-checkbox {
  width: 3.5rem;
}

.saito-overlay-backup-reminder .saito-overlay-subform-checkbox {
  width: 2rem;
}

.saito-overlay-backup-reminder .saito-overlay-subform-text {
  line-height: 3rem;
}

.hide-for-fade-in {
  opacity: 0;
  transition: opacity 4s;
}

/*   Crypto Menu */
.saito-header-wallet-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.saito-crypto-details {
  display: grid;
  grid-template-columns: 5rem 1fr;
  grid-template-rows: 2fr 1fr;
  row-gap: 0.5rem;
  column-gap: 1rem;
  height: 6rem;
  padding: 0.5rem 1rem;
}

.saito-crypto-details.unactive {
  filter: grayscale(100%) opacity(75%);
}

.crypto-logo-container {
  position: relative;
  max-width: 5rem;
  max-height: 5rem;
  overflow: hidden;
  border-radius: 50%;
}

.saito-crypto-details .crypto-logo-container {
  grid-column-start: 1;
  grid-column-end: span 1;
  grid-row: span 2;
}

.crypto-logo {
  height: 100%;
  width: 100%;
}

.chain-logo {
  position: absolute;
  width: auto;
  height: 36%;
  bottom: 8%;
  right: 8%;
}

.header-crypto-balance {
  font: var(--saito-font-medium);
  color: var(--saito-font-color-heavy);
  font-size: 19px;
  align-self: flex-end;
}

.header-crypto-value {
  color: var(--saito-font-color-light);
}

@media screen and (max-width: 620px) {
  .saito-header-hamburger-contents {
    width: 100vw;
    right: -100vw;
    border-radius: unset;
    border-left: unset;
  }

  #saito-header {
    padding: 1.3rem 1rem;
  }
  .saito-header-logo {
    width: 12rem;
  }
  .saito-back-button {
    font-size: 30px;
  }
  .saito-floating-plus-btn {
    display: flex;
  }

  .wallet-infoo {
    margin-top: 0.5rem;
    height: 85px;
    gap: 0;
  }

  #qrcode {
    height: 0;
    visibility: hidden;
    overflow: hidden;
  }

  .show-qr .wallet-infoo {
    margin-top: 1.5rem;
    height: 265px;
    gap: 1rem;
  }

  .show-qr #qrcode,
  .show-qr .qrcode {
    height: auto;
    visibility: visible;
  }

  .pubkey-mobile-wrapper {
    display: flex;
  }

  #saito-header.game {
    padding-right: 2px;
  }

  #saito-header.game .hamburger-container {
    margin-top: 3px;
  }

  #saito-header-menu-toggle {
    width: 3rem;
  }
  #saito-header-menu-toggle i {
    transform: unset;
  }
}

@media screen and (max-width: 420px) {
  #header-msg {
    font-size: 1.5rem;
  }
}
.saito-camera {
  position: relative;
  width: fit-content;
  display: block;
  background-color: var(--saito-black);
}

.saito-camera #video {
  border: 1px solid black;
  box-shadow: 2px 2px 3px black;
  width: 320px;
  height: 240px;
}

.saito-camera #photo-preview {
  border: 1px solid black;
  box-shadow: 2px 2px 3px black;
  width: 320px;
  height: 240px;
}

.saito-camera #canvas {
  display: none;
}

.saito-camera .camera-controls {
  position: absolute;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  bottom: 0;
  font-size: 40px;
  color: rgba(255, 255, 255, 1);
}

.saito-camera .saito-camera i {
  border-radius: 100%;
  box-shadow: 0px 0px 1px 2px rgba(0, 0, 0, 0.2);
  background-color: var(--saito-primary);
  margin: 1rem;
  cursor: pointer;
}

.first-phase {
  visibility: hidden;
}

.video .first-phase {
  visibility: visible;
}

.second-phase {
  visibility: visible;
}

.video .second-phase {
  visibility: hidden;
}

.saito-camera #flip {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 32px;
  color: var(--saito-primary);
  background-color: rgba(255, 255, 255, 1);
  width: fit-content;
  padding: 0.5rem;
}
/* Pulsing saito loader */

.saito-loader {
  /* border struggles with overlay 8?
/*  border: 1px solid aqua; */
  position: relative;
  width: 100%;
}

.saito-loader::after {
  background-color: var(--saito-primary);
  background-image: url(/saito/img/saito-loader.svg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  animation-duration: 2s;
  animation-name: loader-pulse;
  animation-iteration-count: infinite;
  position: relative;

  width: 70px;
  height: 70px;
  left: 50%;
  transform: translate(-50%, -50%);
  content: '';
  display: block;
  transform-origin: 50%, 50%;
}

@keyframes loader-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    border-radius: 50%;
    background-size: 0px;
  }

  40% {
    transform: translate(-50%, -50%) scale(1);
    background-size: 50px;
    border-radius: 5%;
  }

  60% {
    transform: translate(-50%, -50%) scale(1);
    background-size: 50px;
    border-radius: 5%;
  }

  100% {
    transform: translate(-50%, -50%) scale(0.2);
    border-radius: 50%;
    background-size: 0px;
  }
}

.saito-loader-container {
  transition:
    opacity 0.5s,
    margin 0.5s;
}

.saito-loader-container.blocker {
  height: 100vh;
  width: 100vw;
  position: fixed;
  z-index: 150;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
}

.saito-loader-container.non-blocker {
  z-index: 20;
  margin-top: 7rem;
}

.saito-loader-container.disappear {
  opacity: 0;
  margin-top: 0;
}

/* Spinning loader */

.game-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-loader-spinner {
  margin: auto;
  border: 16px solid var(--saito-primary);
  border-top: 16px solid var(--saito-white);

  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  width: 5em;
  height: 5em;
  margin-top: 3rem;
}

.observer-loader-spinner {
  margin: auto;
  border: 6px solid var(--saito-primary);
  border-top: 6px solid var(--saito-white);

  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  width: 3rem;
  height: 3rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(720deg);
  }
}

.saito_spinner {
  display: inline-block;
  width: 50%;
  min-width: 4rem;
  aspect-ratio: 1;
  background-color: var(--saito-primary);
  mask: url(/saito/img/spinner.svg) center/contain no-repeat;
  -webkit-mask: url(/saito/img/spinner.svg) center/contain no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

/* Fill parent - parent must have position: relative and dimensions */
.saito_spinner.saito_spinner-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}.cropper-overlay {
	height: min(100vh, 70rem);
	width: min(100vw, 80rem);
	text-align: center;
	background-color: var(--saito-background-color);
	border: 1px solid var(--saito-border-color);
	padding: 2rem;
	font-size: 2rem;
	border-radius: 0.5rem;
	align-items: center;
	color: var(--saito-font-color);
	display: grid;
	grid-template-rows: 1fr min-content;
	gap: 1rem;
}

.photo-cropper {
	width: 100%;
	height: 100%;
	display: block;
}

.photo-cropper img {
	display: block;
	max-width: 100%;
}

.cropper-container {
	width: 100% !important;
	height: 100% !important;
}

/* Media Queries for different screen sizes */

@media (max-width: 768px) {
	.cropper-overlay {
		padding: 1rem;
	}

	.photo-cropper {
		/*height: 60vh;*/
		/* Increase height on smaller screens */
		/*width: 95vw;*/
		/* Increase width on smaller screens */
		font-size: calc(12px + 2vw);
		/* Slightly larger font on smaller screens */
		padding: 1rem;
	}
}

@media (max-width: 480px) {
	.photo-cropper {
		/*height: 70vh;*/
		/* Further increase height on very small screens */
		/*width: 98vw;*/
		/* Almost full width on very small screens */
		font-size: calc(14px + 2vw);
		/* Even larger font on very small screens */
		padding: 0.5rem;
	}
}

/*!
 * Cropper.js v1.6.1
 * https://fengyuanchen.github.io/cropperjs
 *
 * Copyright 2015-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2023-09-17T03:44:17.565Z
 */

.cropper-container {
	direction: ltr;
	font-size: 0;
	line-height: 0;
	position: relative;
	-ms-touch-action: none;
	touch-action: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.cropper-container img {
	backface-visibility: hidden;
	display: block;
	height: 100%;
	image-orientation: 0deg;
	max-height: none !important;
	max-width: none !important;
	min-height: 0 !important;
	min-width: 0 !important;
	width: 100%;
}

.cropper-wrap-box,
.cropper-canvas,
.cropper-drag-box,
.cropper-crop-box,
.cropper-modal {
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.cropper-wrap-box,
.cropper-canvas {
	overflow: hidden;
}

.cropper-drag-box {
	background-color: #fff;
	opacity: 0;
}

.cropper-modal {
	background-color: #000;
	opacity: 0.5;
}

.cropper-view-box {
	display: block;
	height: 100%;
	outline: 1px solid #39f;
	outline-color: rgba(51, 153, 255, 0.75);
	overflow: hidden;
	width: 100%;
}

.cropper-dashed {
	border: 0 dashed #eee;
	display: block;
	opacity: 0.5;
	position: absolute;
}

.cropper-dashed.dashed-h {
	border-bottom-width: 1px;
	border-top-width: 1px;
	height: calc(100% / 3);
	left: 0;
	top: calc(100% / 3);
	width: 100%;
}

.cropper-dashed.dashed-v {
	border-left-width: 1px;
	border-right-width: 1px;
	height: 100%;
	left: calc(100% / 3);
	top: 0;
	width: calc(100% / 3);
}

.cropper-center {
	display: block;
	height: 0;
	left: 50%;
	opacity: 0.75;
	position: absolute;
	top: 50%;
	width: 0;
}

.cropper-center::before,
.cropper-center::after {
	background-color: #eee;
	content: ' ';
	display: block;
	position: absolute;
}

.cropper-center::before {
	height: 1px;
	left: -3px;
	top: 0;
	width: 7px;
}

.cropper-center::after {
	height: 7px;
	left: 0;
	top: -3px;
	width: 1px;
}

.cropper-face,
.cropper-line,
.cropper-point {
	display: block;
	height: 100%;
	opacity: 0.1;
	position: absolute;
	width: 100%;
}

.cropper-face {
	background-color: #fff;
	left: 0;
	top: 0;
}

.cropper-line {
	background-color: #39f;
}

.cropper-line.line-e {
	cursor: ew-resize;
	right: -3px;
	top: 0;
	width: 5px;
}

.cropper-line.line-n {
	cursor: ns-resize;
	height: 5px;
	left: 0;
	top: -3px;
}

.cropper-line.line-w {
	cursor: ew-resize;
	left: -3px;
	top: 0;
	width: 5px;
}

.cropper-line.line-s {
	bottom: -3px;
	cursor: ns-resize;
	height: 5px;
	left: 0;
}

.cropper-point {
	background-color: #39f;
	height: 5px;
	opacity: 0.75;
	width: 5px;
}

.cropper-point.point-e {
	cursor: ew-resize;
	margin-top: -3px;
	right: -3px;
	top: 50%;
}

.cropper-point.point-n {
	cursor: ns-resize;
	left: 50%;
	margin-left: -3px;
	top: -3px;
}

.cropper-point.point-w {
	cursor: ew-resize;
	left: -3px;
	margin-top: -3px;
	top: 50%;
}

.cropper-point.point-s {
	bottom: -3px;
	cursor: s-resize;
	left: 50%;
	margin-left: -3px;
}

.cropper-point.point-ne {
	cursor: nesw-resize;
	right: -3px;
	top: -3px;
}

.cropper-point.point-nw {
	cursor: nwse-resize;
	left: -3px;
	top: -3px;
}

.cropper-point.point-sw {
	bottom: -3px;
	cursor: nesw-resize;
	left: -3px;
}

.cropper-point.point-se {
	bottom: -3px;
	cursor: nwse-resize;
	height: 20px;
	opacity: 1;
	right: -3px;
	width: 20px;
}

@media (min-width: 768px) {
	.cropper-point.point-se {
		height: 15px;
		width: 15px;
	}
}

@media (min-width: 992px) {
	.cropper-point.point-se {
		height: 10px;
		width: 10px;
	}
}

@media (min-width: 1200px) {
	.cropper-point.point-se {
		height: 5px;
		opacity: 0.75;
		width: 5px;
	}
}

.cropper-point.point-se::before {
	background-color: #39f;
	bottom: -50%;
	content: ' ';
	display: block;
	height: 200%;
	opacity: 0;
	position: absolute;
	right: -50%;
	width: 200%;
}

.cropper-invisible {
	opacity: 0;
}

.cropper-bg {
	background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');
}

.cropper-hide {
	display: block;
	height: 0;
	position: absolute;
	width: 0;
}

.cropper-hidden {
	display: none !important;
}

.cropper-move {
	cursor: move;
}

.cropper-crop {
	cursor: crosshair;
}

.cropper-disabled .cropper-drag-box,
.cropper-disabled .cropper-face,
.cropper-disabled .cropper-line,
.cropper-disabled .cropper-point {
	cursor: not-allowed;
}
/* ----------------------------------------------------------------
Saito Table
-----------------------------------------------------------------*/
:root {
  --saitox-column-ct: 5;
}

.saito-table-body {
  font-size: 1.5rem;
  display: grid;
  grid-template-columns: auto;
  grid-gap: var(--saito-space-sm);
  width: 100%;
  position: relative;
  border-radius: 0.1rem;
  max-height: 100%;
  height: fit-content;
  position: relative;
  overflow-y: auto;
  min-height: 2rem;
}

.saito-table-row {
  display: grid;
  grid-template-columns: 1fr min-content;
  grid-gap: var(--saito-space-xs);
  padding: 0.6rem var(--saito-space-md) var(--saito-space-xs);
  background: var(--saito-table-row-bg);
  border-radius: var(--saito-radius-sm);
}

.saito-table-row:hover {
  background: var(--saito-table-row-bg-hover);
}

.saito-table-rank {
  font-family: courier, monospace;
  font-size: 1.5rem;
  display: flex;
  gap: var(--saito-space-xs);
  align-items: baseline;
  justify-content: space-around;
}

.saito-table-header {
  display: grid;
  grid-gap: var(--saito-space-xs);
  padding: 0.6rem var(--saito-space-md) var(--saito-space-xs);
  width: 100%;
  text-align: center;
  text-transform: var(--saito-table-header-transform);
  font-size: var(--saito-table-header-size);
  letter-spacing: var(--saito-table-header-letter-spacing);
  color: var(--saito-font-color-heavy);
  background: var(--saito-table-header-bg);
  border-radius: var(--saito-radius-sm);
}

.saitox-table {
  display: grid;
  grid-template-rows: repeat(auto-fill, minmax(3rem, 1fr));
  grid-template-columns: repeat(var(--saitox-column-ct), minmax(max-content, 1fr));

  font-size: 1.5rem;
  width: 100%;
  position: relative;
  border-radius: var(--saito-border-radius);
  max-height: 100%;
  height: fit-content;
  position: relative;
  overflow-y: auto;
  min-height: 2rem;
  align-items: center;
}

.saitox-table > div {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Right Justify */
  padding: 0 0.5rem;
  border-bottom: 1px solid var(--saito-table-border);
  min-height: 3rem;
}

.saitox-header-item {
  text-align: center;
  text-transform: var(--saito-table-header-transform);
  font-size: var(--saito-table-header-size);
  letter-spacing: var(--saito-table-header-letter-spacing);
  color: var(--saito-font-color-heavy);
  background: var(--saito-table-header-bg);
  font-family: var(--saito-font-medium);
}

.saitox-table-break {
  grid-column: span var(--saitox-column-ct);
  width: 100%;
  justify-content: flex-start !important;
  font-style: italic;
}

.crypto-timestamp {
  font-family: var(--saito-font-monospace);
}
.saito-progress-bar-container{
	background: var(--saito-primary);
	width: 75%;
	margin: 0 12.5%;
	height: 3rem;
	padding: 0 1rem;
	display: flex;
	align-items: center;
	background-size: 400% auto;
	position: absolute;
    /*z-index: 999;  z-index governed by redsquare-progress-banner */
    border-radius: var(--saito-border-radius);
    border: var(--border-thickness-thin) solid var(--saito-background-color);
	top: 0.75rem;
}

.saito-progress-bar-container.active{
	animation: shimmer 3s infinite alternate ease-in-out;
}

.saito-progress-bar {
	color: var(--saito-background-color);
	text-shadow: 1px 1px 1px var(--saito-black);
	text-wrap: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@keyframes shimmer {
	from {
		background-position: 0 0;
	}
	to {
		background-position: 99% 99%;
	}
}

.mixin_crypto_overlay {
  padding: 2rem;
  background: var(--saito-wallet-panel-bg);
  color: var(--saito-wallet-panel-fg);
  line-height: 1.6em;
  font-size: 1.5em;
  width: 90rem;
}

.mixin_crypto_title {
  margin: 0.5em 0;
  font-size: 2em;
  font-weight: bold;
  margin-top: 0rem;
}

.mixin_crypto_warning {
  margin-top: 0px;
  margin-bottom: 20px;
}

.mixin_risk_acknowledge {
  max-width: 200px;
  text-align: center;
  margin-right: auto;
}

.input-cont {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.input-cont p {
  color: var(--saito-wallet-panel-fg);
}

.input-heading {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 18px;
}

#copy-deposit-add {
  position: absolute;
  top: 54%;
  right: 4%;
  color: var(--saito-wallet-muted-color);
  cursor: pointer;
}

.copy-check::before {
  content: '\f00c';
}

.info-cont {
  display: flex;
  justify-content: space-between;
}

.info-item {
}

.info-item-title {
  font-size: 13px;
  font-weight: 700;
}

.info-item-detail {
  font-size: 12px;
}

.note {
  margin-top: 30px;
  font-size: 13px;
}

.add-input-box {
  width: 100%;
}

#withdrawl-confirm-cont,
#withdrawl-sent-cont {
  display: none;
}

.decision-cont a {
  color: var(--saito-primary);
  transition: all 0.1s ease-in-out;
}

.decision-cont a:hover {
  color: var(--saito-primary-dark);
}

.withdraw-identicon-container {
  display: flex;
  align-items: center;
}

.withdraw-identicon-container .saito-identicon {
  margin: 0.5rem;
}

.mixin-withdraw-token-wrapper {
  margin-bottom: 2rem;
}

.mixin-withdraw-token-wrapper p {
  color: var(--saito-wallet-panel-fg);
}

.mixin-withdraw-input {
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 20px;
}

.no-margin {
  margin: 0px;
}

.max-amount-error {
  display: none;
  color: var(--saito-wallet-error-color);
}

.input-heading {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 18px;
}

.info-cont {
  display: flex;
  justify-content: space-between;
}

.info-item {
}

.info-item-title {
  font-size: 13px;
  font-weight: 700;
}

.info-item-detail {
  font-size: 12px;
}

.note {
  margin-top: 30px;
  font-size: 12px;
}

.note.withdrawl {
  font-size: 15px;
  margin-top: 25px;
  margin-bottom: 30px;
}

.history-tx-link {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}

.history-tx-id {
  padding: 1.5rem 0rem;
  display: block;
  min-width: 25rem;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hidden {
  display: none /*!important*/;
}

/* pagination */

.pagination-container {
  display: flex;
  gap: 2rem;
  width: fit-content;
  margin: auto;
  padding: 2rem 0rem 1.3rem 0rem;
}

#pagination-numbers {
  display: flex;
  gap: 2rem;
}

/*changed*/
.pagination-number.active {
  color: var(--saito-primary-text);
  background: var(--saito-primary);
}

.pagination-number {
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  cursor: pointer;
  padding: 0.3rem 1rem;
  transition: all 0.2s ease-in-out;
  border-radius: 0.2rem;
}

/*changed*/
.pagination-number:hover {
  border: var(--border-thickness-thin) solid var(--saito-primary);
}

.pagination-button {
  cursor: pointer;
  font-size: 2rem;
}

.pagination-button.disabled {
  visibility: hidden;
}

.pagination-button:hover {
  transition: all 0.2s ease-in-out;
  transform: scale(1.5);
}

.pagination-container.disabled .pagination-button {
  color: var(--saito-wallet-muted-color);
}

.pagination-container.disabled .pagination-button:hover {
  transform: scale(1);
}

/* Unfinished changes */
.mixin-overlay-history {
  min-height: 20rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-radius: var(--saito-border-radius);
  background: var(--saito-background-color);
  color: var(--saito-font-color-heavy);
}

.auth_title {
  font-size: 3.5rem;
}

.from_address,
.to_address {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.game-crypto-transfer-manager-container .balance {
  margin-bottom: 1.1rem;
  font-size: 3.5rem;
}

/*
  Withdrawl overlay 
*/

/*changed*/
.token-dropdown {
  display: flex;
  position: relative;
  padding: 0 0.5rem;
  border-radius: var(--saito-border-radius);
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  gap: 0.25rem;
  align-items: center;
}

.withdraw-logo-cont {
  position: relative;
  min-width: 35px;
  height: 35px;
  border-radius: 20px;
  overflow: hidden;
}

.token-dropdown select {
  height: 45px;
  padding: 0.5rem;
  border: none;
  font-size: 1.6rem;
  width: 100%;
  color: inherit;
  background: inherit;
  font-size: 1.8rem;
  text-align: center;
}

.withdraw-input-cont {
  background: var(--saito-background-color);
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  display: grid;
  grid-template-columns: 1fr min-content;
  align-items: center;
}

.withdraw-input-cont.fixed-user {
  grid-template-columns: min-content 1fr;
}

.saito-overlay-form-input .withdraw-input-cont input {
  border: none;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 99%;
  autocomplete: off;
  background-color: var(--saito-background-color) !important;
}

/* Hide arrows, Chrome, Safari, Edge, Opera */
.saito-overlay-form-input input::-webkit-outer-spin-button,
.saito-overlay-form-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.saito-overlay-form-input input[type='number'] {
  -moz-appearance: textfield;
}

/* Fully override Chrome's autofill styling */
.saito-overlay-form-input input:-webkit-autofill,
.saito-overlay-form-input input:-webkit-autofill:hover,
.saito-overlay-form-input input:-webkit-autofill:focus,
.saito-overlay-form-input input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--saito-font-color) !important;
  caret-color: var(--saito-primary) !important;
  background-color: var(--saito-background-color) !important;
  border: none !important;
  outline: none !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--saito-background-color) inset !important;
  box-shadow: 0 0 0px 1000px var(--saito-background-color) inset !important;
}

.withdraw-options-cont,
.withdraw-input-cont > i {
  cursor: pointer;
  padding: 1rem;
  margin-left: 0.5rem;
  font-size: 2rem;
}

.withdraw-options-cont {
  display: flex;
  align-items: center;
  justify-content: center;
}

.withdraw-options-cont:hover {
  font-weight: bold;
}

.withdraw-options-cont:hover i {
  transform: scale(1.15);
}

.withdraw-options-cont span {
  font-size: 1.6rem;
}

.withdraw-input-cont.fixed-user .withdraw-options-cont {
  display: none;
}

.saito-overlay-form-submit,
.saito-overlay-form-subtext {
  grid-column: span 2;
}

.input-elements-container {
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  overflow: auto;
  flex-direction: row;
}

.input-elements-container .saito-overlay-form-input {
  width: 100%;
}

.confirm-msg-container {
  color: var(--saito-font-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  display: flex;
  transition: all 0.3s ease-in-out;
}

.confirm-msg-container .withdraw-msg-icon {
  font-size: 10rem;
}

.confirm-msg-container .withdraw-msg-icon.hide {
  display: none;
}

.confirm-msg-container .spinner {
  display: none;
  width: 9rem;
  height: 9rem;
}

.confirm-msg-container .spinner.show {
  display: block;
}

.confirm-msg-container .confirm-msg {
  display: flex;
  flex-direction: column;
  text-align: center;
  min-width: min(40rem, 100%);
  font-size: 1.8rem;
  line-height: 2.8rem;
  max-width: 100%;
}

.confirm-msg-container .withdraw-confirm-amount,
.confirm-msg-container .withdraw-address {
  font-weight: bold;
  font-family: monospace;
}

.confirm-msg-container .withdraw-address-1 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.confirm-msg-container .withdraw-confirm-address {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) min-content min-content;
  width: 446px;
  max-width: 100%;
  grid-gap: 0;
}

.confirm-submit {
  transition: all 0.3s ease-in-out;
  justify-content: center;
}

.hide-element {
  display: none !important;
}

.fa-circle-notch {
  animation: spin 1.5s ease-in-out infinite;
  -webkit-animation: spin 1.5s ease-in-out infinite;
}

.dropdown-cont {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dropdown-cont .saito-overlay-form-input {
  flex: 1;
  margin: 0;
  max-width: fit-content;
}

.withdraw-info-cont {
  color: var(--saito-font-color);
  line-height: 2rem;
  text-align: center;
}

.withdraw-info-cont .withdraw-info-title {
  display: block;
  margin-bottom: 2px;
}

#withdraw-step-one {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

#withdraw-step-two {
  gap: 3rem;
  display: flex;
  flex-direction: column;
}

.saito-history-msg {
  color: var(--saito-font-color);
}

.withdraw-error {
  padding: 0rem 1rem;
  color: var(--saito-status-danger);
  display: none;
  position: absolute;
  right: 6.5rem;
  background: var(--saito-background-color);
}

.withdraw-external-fee-span.saito {
  display: none;
}

.withdraw-fee-info-icon.egld {
  display: none;
}

/********************************************
 * 
 * Older (but still used) NFT stuff
 * 
 ********************************************/

.create-nft-btn {
  margin-left: auto;
  padding: 1.2rem;
  display: flex;
  font-size: 3rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.create-nft-btn:hover {
  transform: scale(1.1);
}

/*
    add nft utxo overlay
*/

.create-nft-container,
.nft-list-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  min-width: 60rem;
}

.create-nft-container {
  justify-content: space-between;
}

.nft-list {
  min-height: 24rem;
  user-select: none;
}

.nft-image-preview {
  align-self: center;
  max-width: min(56rem, 100%);
  max-height: min(30rem, 50vh);
  position: relative;
}

.nft-image-preview i {
  position: absolute;
  font-size: 2rem;
  cursor: pointer;
  top: -1rem;
  right: -1rem;
}

.inputs {
  display: flex;
  gap: 2rem;
}

.data-table tr.total_supply_value {
  background-color: var(--saito-wallet-nft-summary-bg);
}
.data-table tr.payout_value {
  background-color: var(--saito-wallet-nft-payout-bg);
}
.data-table tr.total_supply.total_supply_value {
  background-color: var(--saito-wallet-nft-total-bg);
}
.inputs div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.textarea-container {
  display: flex;
  flex-direction: column;
}

textarea {
  width: 100%;
  height: 100px;
  padding: 0.5rem;
  border: var(--border-thickness-thin) solid var(--saito-input-border);
  border-radius: var(--saito-input-radius);
  resize: none;
}

#nft-image-upload {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  text-align: center;
  border: 3px dotted;
  height: 100%;
  font-size: 2rem;
  border-radius: 1rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
  min-height: 30rem;
  cursor: pointer;
}

#nft-image-upload i {
  font-size: 3.5rem;
  color: var(--saito-surface-selected);
}

.nft-upload-text {
  margin-left: 1rem;
  font-size: 1.6rem;
}

.send-nft-list {
  max-height: min(76rem, 85vh);
  overflow-y: scroll;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  width: max-content;
  max-width: 94rem; /* fits 4 nfts wide */
  /* 4: 94rem, 3: 70rem */
}

/*

  file icon
*/

.nft-file-transfer {
  border-radius: var(--saito-border-radius);
  position: relative;
  border: var(--border-thickness-thin) dashed var(--saito-file-transfer-border);
  display: grid;
  align-items: center;
  padding: 1rem;
  grid-template-columns: min-content 1fr;
  grid-template-rows: 1fr 1fr;
  row-gap: 1rem;
  column-gap: 2rem;
  justify-items: flex-end;
  overflow: hidden;
  background-color: var(--saito-file-transfer-bg);
  color: var(--saito-file-transfer-fg);
}

.nft-file-transfer.complete {
  border: var(--border-thickness-thin) solid var(--saito-file-transfer-border);
}

.nft-file-transfer.received {
  grid-template-rows: unset;
}

.file-transfer-progress {
  position: absolute;
  left: 1px;
  top: 1px;
  height: calc(100% - 2px);
  width: 0%;
  background-color: var(--saito-primary);
}

.nft-file-transfer.received .file-transfer-progress {
  background-color: var(--saito-secondary);
}

.nft-file-transfer i {
  font-size: 4rem;
  grid-row: 1 / span 2;
  z-index: 1;
  cursor: pointer;
}

.nft-file-transfer .file-name,
.nft-file-transfer .file-size {
  z-index: 1;
}

.create-nft-type-dropdown {
  width: 12rem;
  color: var(--saito-font-color);
  background: var(--saito-background-color);
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-size: 1.4rem;
}

.create-nft-textarea {
  height: 30rem;
  display: none;
}

.page-navigation {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  font-size: 1.9rem;
  display: none;
}

.nft-creator,
.nft-receiver {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#page2 {
  flex-direction: column;
  gap: 3rem;
}

.page-navigation.page1 {
  align-self: flex-end;
}

.create-nft-amount {
  max-width: 8rem;
  text-align: center;
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  padding: 0.3rem 0rem;
  border-radius: var(--saito-border-radius);
}

.page-navigation.page2 {
  display: flex;
  align-self: flex-end;
  gap: 1rem;
}

.nft-creator > .saito-file-transfer {
  border-radius: var(--saito-border-radius);
  position: relative;
  border: var(--border-thickness-thin) dashed var(--saito-file-transfer-border);
  display: grid;
  align-items: center;
  padding: 2rem;
  grid-template-columns: min-content 1fr;
  grid-template-rows: 1fr 1fr;
  row-gap: 1rem;
  column-gap: 2rem;
  justify-items: flex-end;
  overflow: hidden;
  background-color: var(--saito-file-transfer-bg);
  color: var(--saito-file-transfer-fg);
}

.fancy-slider-bar {
  position: relative;
  width: 100%;
  background-color: var(--saito-background-color);
  display: flex;
  align-items: center;
  z-index: 10;
  padding: 0;
  height: 4.5rem;
  border: var(--border-thickness-thin) solid var(--saito-border-color);
}

.split-half {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.6rem;
}

input.split-half {
  padding: 0;
  height: 100%;
  border-radius: unset;
  text-align: center;
}

/* 

nft cards

*/

.nft-card {
  position: relative;
  width: 22rem;
  height: 24rem;
  display: flex;
  flex-direction: column;
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  border-radius: var(--saito-border-radius);
  overflow: hidden;
  padding: 1rem;
  background-color: var(--saito-background-color);
  flex: 0 0 22rem;
}

.nft-card:hover {
  cursor: pointer;
  border: var(--border-thickness-thin) solid var(--saito-primary);
}

.nft-card.nft-selected {
  border: var(--border-thickness-thin) solid var(--saito-primary);
}

.nft-card-title {
  position: absolute;
  width: 20rem;
  color: var(--saito-font-color);
  background-color: var(--background-color-shim-dark);
  z-index: 9;
  top: 18px;
  line-height: 4rem;
  padding: 0 1rem;
  overflow: hidden;
}

.nft-card-img {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url('/saito/img/dreamscape.png');
  border-radius: var(--saito-border-radius);
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: unset;
  border-bottom-right-radius: unset;
}

.nft-card-img img,
.nft-card-img i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
}

.nft-card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0rem 0rem 0rem;
  font-size: 1.4rem;
  gap: 1rem;
  position: relative;
}

.nft-card-identity {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.nft-card-id {
  width: 80%;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
  display: inline-block;
  /* font-size: 1.2rem; */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  /* max-width: 30ch; */
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

.nft-card-info-amount,
.nft-card-info-deposit {
  font-family: monospace;
  font-size: 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nft-card-info-title {
}

.nft-identicon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  align-self: center;
}

.nft-card-details {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.nft-card-deposit {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.nft-card-amount {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nft-card-text {
  font-family: monospace;
  font-size: 1.2rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  overflow: hidden;
  white-space: pre;
  color: var(--saito-status-code-fg);
  padding: 5px;
  background: var(--saito-status-code-bg);
  height: 100%;
}

.nft-details-data > .nft-card-img {
  background-size: contain;
  border-radius: var(--saito-border-radius);
  background-position: 50% 50%;
}

.nft-details-id {
  word-wrap: break-word;
  font-size: 1.5rem;
  font-family: monospace;
}

.nft-details-header,
.nft-details-actions {
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  border-radius: var(--saito-border-radius);
  padding: 1.5rem;
  gap: 1.5rem;
}

.nft-details-header {
  display: grid;
  grid-template-columns: 1fr max-content;
}

.nft-details-header .nft-identicon {
  width: 4rem;
  height: 4rem;
}

.nft-details-header .nft-card-info-amount,
.nft-details-header .nft-card-info-deposit {
  /*font-weight: bold;*/
}

.nft-details-actions {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  position: absolute;
  bottom: 1rem;
  width: calc(100% - 2rem);
  left: 1rem;
  background-color: var(--saito-background-color);
}

.nft-details-actions[data-show='none'] {
  display: none;
}

.nft-details-action {
  display: none;
  width: 100%;
}

.nft-details-actions[data-show='send'] #nft-details-send {
  display: flex;
  flex-direction: column;
}

.nft-details-actions[data-show='split'] #nft-details-split {
  display: flex;
  user-select: none;
}

.nft-details-actions[data-show='merge'] #nft-details-merge {
  display: flex;
}

.nft-details-section-header,
.nft-details-send,
.nft-details-assetstore {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  width: 100%;
}

.nft-details-actions .nft-card-details {
  border: var(--border-thickness-thin) solid var(--saito-card-border);
  padding: 1rem;
}

.nft-details-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

@media screen and (max-width: 1000px) {
  .send-nft-list {
    max-width: 70rem;
    /*max-width: 100%;*/
  }
}

@media screen and (max-width: 768px) {
  .mixin-items-container .saito-table-header {
    grid-template-columns: 8rem 8rem;
  }
  .mixin-items-container .saito-table-row {
    grid-template-columns: 7rem 7rem 7rem 7rem 7rem;
  }
  .mixin-no-history {
    margin-top: 1rem;
    margin-left: 0rem;
  }
  .mixin-txn-his-container {
    width: 86vw;
  }
  .mixin-txn-his-container .saito-table-header {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .mixin_crypto_overlay {
    width: 99vw;
  }

  /* NFT */
  .nft-list-container,
  .create-nft-container {
    width: 95vw;
    min-width: auto;
  }

  .send-nft-list {
    width: unset;
    justify-content: center;
  }

  .nft-details-data {
    width: 100%;
  }

  .nft-details-data > .nft-card-img {
    height: 40vh;
  }
}
/*
NOTE: the .saito-model class is a grid with two sectiions
This alows for a header with a header with title to be added without extra CSS
*/

.saito-modal {
  min-width: 70rem;
  height: min-content;
  max-width: 80vw;
  padding: var(--border-padding-wide);
  display: grid;
  grid-template-rows: min-content 1fr min-content; /* last item optional */
  max-height: 95vh;
  border: 1px solid var(--saito-overlay-panel-border);
  border-radius: var(--saito-border-radius);
  background: var(--saito-overlay-panel-background);
  box-shadow: var(--saito-overlay-panel-shadow);
}

.saito-modal-title {
  font-size: 3rem;
  padding: unset;
  padding-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--saito-font-color-heavy);
}

.saito-modal-content {
  overflow: auto;
}

.saito-modal-share-link {
  background-color: var(--saito-background-color);
}

.saito-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: var(--saito-border-radius);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

/* We want to trigger the click event on the container */

.saito-contact .saito-user .saito-identicon-box,
.saito-contact .saito-user .saito-userline,
.saito-contact .saito-user .saito-address {
  pointer-events: none;
}

.secure_contact_notice {
  position: absolute;
  left: 3rem;
  top: 0;
  z-index: 2;
  color: var(--saito-font-color-light);
  /* testing */
  text-shadow: 2px 2px 2px var(--saito-black);
}

.saito-contact.unconfirmed {
  filter: brightness(0.7) grayscale(1);
}

.saito-modal-title + .saito-modal-content {
  border-top: var(--border-thickness-thick) solid var(--border-color-general-dividers);
}

.saito-modal-content .saito-user {
  height: 5rem;
  align-items: center;
  font-size: 20px;
}

.saito-modal .saito-modal-content .saito-user .saito-identicon-box {
  width: 4.5rem;
  height: 4.5rem;
}

.saito-modal-menu .saito-modal-title .saito-user {
  height: 6rem;
  padding: 0 1.25rem;
  cursor: default;
  align-items: center;
  width: calc(100% - 2.5rem);
  white-space: nowrap;
}

.saito-modal-menu .saito-modal-title .saito-user .saito-identicon-box {
  width: 5.5rem;
  height: 5.5rem;
}

/* saito-modal-menu
/* theming for a simple menu with font-awesome icon and text in a two col grid */

.saito-modal-menu-option {
  font-size: 3rem;
  height: 6rem;
  padding: 1.5rem 3rem;
  display: grid;
  align-items: center;
  grid-gap: 1rem;
  grid-template-columns: 4rem 1fr;
  cursor: pointer;
  position: relative;
  border-radius: var(--saito-border-radius);
  margin-top: 0.25rem;
}

.saito-modal-tagline {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.saito-modal-point {
  font-size: 2rem;
  padding: 0.5rem;
  display: grid;
  align-items: center;
  grid-gap: 2rem;
  grid-template-columns: 4rem 1fr;
}

.saito-modal-point i {
  font-size: 3rem;
  justify-self: center;
}

.saito-modal-menu-option > i {
  justify-self: center;
  margin-right: 2rem;
}

.saito-modal-menu-option > div {
  float: left;
  margin-right: 2rem;
  font-size: 2rem;
  vertical-align: middle;
  margin-bottom: auto;
  margin-top: auto;
  line-height: 3rem;
  height: 3rem;
}

.saito-modal-text-input {
  margin-left: 3rem;
  margin-right: 3rem;
  width: 50rem;
  max-width: 50rem;
  margin-top: 0.75rem;
}

#saito-confirm-add-publickey {
  background: var(--saito-modal-background);
  height: auto;
  width: 30vh;
  border-radius: 1.5rem;
  padding: 2rem;
}

#saito-confirm-add-publickey .saito-identicon-box {
  display: inline-block;
  margin-left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 8rem;
}

#saito-confirm-add-publickey > .saito-address {
  width: 100%;
  max-width: 100%;
  overflow: inherit;
  display: block;
  height: auto;
  word-break: break-word;
  text-overflow: inherit;
  white-space: break-spaces;
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 1rem;
}

#saito-confirm-add-publickey > .saito-contact-status {
  text-align: center;
}

.saito-modal-title .saito-user .saito-address {
  font-size: 4rem;
}

.share-link {
  color: var(--saito-font-color);
}

/* Exclusively for modal-add-user-confirm.template */

.confirm-modal-wrapper {
  font-size: 1.5em;
  padding: 1.5em;
  font-weight: bold;
}

.welcome-invite-box {
  min-width: 200px;
  min-height: 120px;
  max-width: 325px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 25px;
  border: 1px solid var(--saito-border-color);
  margin: 1em;
}

/* LIST SELECTION MODAL */

.game-selection-list-overlay {
  background: var(--saito-overlay-panel-background);
  max-height: 90vh;
  overflow-y: scroll;
  font-size: 2rem;
  min-width: 400px;
}

.selection-list li {
  cursor: pointer;
  border-bottom: 1px solid transparent;
  padding: 10px 0px 10px 20px;
  list-style: none;
}

.selection-list li:hover {
  background-color: var(--saito-surface-selected);
}

.selection-list li .tiptext {
  width: fit-content;
  background-color: var(--saito-chip-bg);
  color: var(--saito-chip-fg) !important;
  min-width: 0px;
  padding: 3px;
  pointer-events: none;
  top: 5px;
  right: 0;
}

/* Exclusively for modal-add-user-confirm.template */

.confirm-modal-wrapper {
  font-size: 1.5em;
  padding: 1.5em;
  font-weight: bold;
}

.register-modal-controls {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

#signup {
  margin: 0;
  width: 15px;
  height: 21px;
}

.saito-overlaid-icon {
  color: var(--saito-chip-fg);
  position: absolute;
  left: 34%;
  top: 34%;
  background: var(--saito-chip-bg);
  width: min(90%, 5rem);
  height: min(90%, 5rem);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid var(--saito-font-color);
}

/* Identicons aren't clickable in modals menus */

.saito-modal-menu .saito-identicon-box {
  cursor: default;
}

/* mobile modals */

@media only screen and (max-width: 1000px) {
  .saito-modal {
    min-width: unset;
    max-width: unset;
    padding: 1rem;
    width: 90vw;
    grid-template-columns: 100%;
  }
  .saito-modal > * {
    max-width: 100%;
  }
  .modal-content-blank {
    width: 100%;
  }
  i.fas.fa-arrow-right {
    right: -1em;
  }
}

@media only screen and (max-width: 768px) {
  .saito-modal-menu-option {
    margin: 0 1rem;
  }
  .saito-modal-menu-option > i {
    font-size: 2.2rem;
  }
  .saito-modal-menu-option > div {
    font-size: 2rem;
  }
}

@media only screen and (max-width: 525px) {
  .saito-modal-menu .saito-modal-title .saito-user {
    margin: 0;
  }
  .saito-modal-menu-option {
    margin: 0;
    padding: 1.5rem 1rem;
  }
}

.qr-share-overlay {
  padding: 2rem;
  border: var(--saito-border);
  width: max-content;
}

.qr-share-header {
  font-size: 3rem;
  display: flex;
  justify-content: center;
}

#qr-share-link {
  margin: 2rem;
}

#qr-share-link img,
#qr-share-link svg {
  height: auto;
  max-width: 24rem;
  width: 24vh;
  border: var(--border-thickness-medium) solid var(--saito-primary);
  padding: var(--border-padding-normal);
  border-radius: var(--saito-border-radius);
  background: var(--saito-background-color);
}
.saito-menu > ul {
  padding: 0;
  list-style-type: none;
}

.saito-menu > ul > li {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  list-style: none;
  cursor: pointer;
  transition: all 0.2s;
  align-items: center;
  font-size: 1.92rem;
  position: relative;
  border-radius: var(--saito-border-radius);
}

.saito-menu > ul > li:active {
  /* newly added state, for use in Sangre3000 -only so far */
  background: var(--saito-menu-item-active-bg);
}

.saito-menu > ul > li:hover p {
  background-color: var(--saito-menu-item-hover-bg);
  color: var(--saito-menu-item-hover-fg);
}

.saito-menu > ul > li > i {
  font-size: 2.6rem;
  width: 2rem;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
}

.saito-menu > ul > li > span {
  font-size: 1.92rem;
  margin-right: 1rem;
}

/* saito header menu */

.saito-header-menu-section {
  padding: /*0.5rem*/ 1rem;
}

.saito-header-menu-section .saito-menu > ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 1.5rem;
  row-gap: 2rem;
}

.empty-menu-section + hr {
  display: none;
}

.saito-header-menu-section hr {
  margin: 1.5rem;
  border-style: dashed;
}

.saito-header-menu-section .saito-menu > ul > li {
  display: flex;
  text-align: center;
}
.saito-header-menu-section .saito-menu > ul > li > i {
  padding: 0;
  width: unset !important;
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.saito-header-menu-section .module-menu > ul > li > .saito-module-menu-icon-wrap {
  position: relative;
  display: block;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 0.75rem;
  pointer-events: none;
}

.saito-header-menu-section .module-menu > ul > li .saito-module-menu-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.16s ease;
}

.saito-header-menu-section .module-menu > ul > li .saito-module-menu-icon-solid {
  opacity: 0;
}

.saito-header-menu-section .module-menu > ul > li:hover .saito-module-menu-icon-outline {
  opacity: 0;
}

.saito-header-menu-section .module-menu > ul > li:hover .saito-module-menu-icon-solid {
  opacity: 1;
}

.saito-header-menu-section .saito-menu > ul > li > i.navigation-symbol {
  font-size: 1.4rem;
  margin-left: 5px;
}

.saito-header-menu-section .saito-menu > ul > li > i + span,
.saito-header-menu-section .module-menu > ul > li > .saito-module-menu-icon-wrap + span {
  margin: 0;
  text-overflow: ellipsis;
  max-width: 10rem;
  overflow: hidden;
  white-space: pre-wrap;
  padding: 0.5rem;
}
.saito-header-menu-section .saito-menu > ul > li > span {
  font-size: 1.33rem;
  margin: 0;
}

.saito-menu > ul > li > i + span,
.saito-menu > ul > li > i + span + span {
  margin-left: 3.8rem;
}

.saito-menu i::before {
  -webkit-text-stroke-color: var(--saito-menu-icon-color);
  -webkit-text-stroke-width: 1px;
  color: transparent;
}

.saito-menu li:hover i::before {
  -webkit-text-stroke-color: var(--saito-menu-icon-hover-color);
  color: var(--saito-menu-icon-hover-color);
}

.utilities-menu li:hover i::before {
  -webkit-text-stroke-color: var(--saito-primary-text);
  color: transparent;
}

@media screen and (max-width: 620px) {
  .saito-header-menu-section .saito-menu > ul {
    column-gap: 1rem;
    padding: 0 0.5rem;
  }

  .saito-header-menu-section .saito-menu > ul > li {
    padding: 0.5rem;
  }

  .saito-header-menu-section .saito-menu > ul > li > i {
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
  }

  .saito-header-menu-section .module-menu > ul > li > .saito-module-menu-icon-wrap {
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 0.25rem;
  }
}
/* ----------------------------------------------------------------
 Saito Base: CSS default settings, layouts
-----------------------------------------------------------------*/

/* @custom-media --breakpoint-xl (max-width: 1920px);
@custom-media --breakpoint-lg (max-width: 1280px);
@custom-media --breakpoint-md (max-width: 768px);
@custom-media --breakpoint-md (max-width: 590px);
@custom-media --breakpoint-sm (max-width: 375px); */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  font-size: 10px;
}

body {
  line-height: 1.2;
  color: var(--saito-font-color);
  font-family: var(--saito-font);
  margin: 0;
  font-size: 1.6rem;
  font-weight: 400;
  position: fixed; /* why relative? */
  height: 100dvh;
  width: 100vw;
  max-height: -webkit-fill-available;
  max-width: -webkit-fill-available;
  overflow: hidden;
  background-color: var(--saito-background-color);
  background-image: var(--saito-canvas-background);
  background-attachment: fixed;
  background-size: cover;
  transition: height 0.3s;
}

/* ----------------------------------------------------------------
 Link
-----------------------------------------------------------------*/

a {
  text-decoration: none;
  cursor: pointer;
  /*color: rgb(29, 155, 240);*/
  color: var(--saito-primary);
}

a:hover {
  color: var(--saito-primary);
  opacity: 0.8;
}

.saito-text-link {
  font-weight: bold;
  cursor: pointer;
  color: var(--saito-primary);
}

/* ----------------------------------------------------------------
  Headings
-----------------------------------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  margin-bottom: 1rem;
  font-family: var(--saito-font);
  line-height: 1.2em; /* make sure relative to the different sizes! */
  cursor: default; /* We don't want the text cursor on headers */
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

h5 {
  font-size: var(--font-size-h5);
}

h6 {
  font-size: var(--font-size-h6);
}

textarea {
  resize: none;
}

iframe {
  border: none;
}

/* ----------------------------------------------------------------
 Paragraph
-----------------------------------------------------------------*/

p.large {
  font-size: var(--font-size-large);
  font-weight: bold;
}

p,
p.middle {
  font-size: var(--font-size-medium);
  text-indent: 0;
}

p::-webkit-scrollbar {
  display: none;
}

p.small {
  font-size: var(--font-size-tiny);
}

li p {
  text-indent: 0;
  display: inline;
}

blockquote {
  border-color: var(--saito-primary);
  border-width: 0 0 0 2px;
  border-style: solid;
  padding: 0 0 0 0.5rem;
}

/* ----------------------------------------------------------------
QR Code
-----------------------------------------------------------------*/

@media screen and (max-width: 600px) {
}

/* ----------------------------------------------------------------
Password Font
-----------------------------------------------------------------*/

.saito-password {
  font-family: 'p-word';
}

/* ----------------------------------------------------------------
Divider
-----------------------------------------------------------------*/

hr {
  color: var(--saito-font-color-light);
  margin: 2.5rem;
}

/*-----------------------------------------------------------------
Scrollbars
-----------------------------------------------------------------*/

::-webkit-scrollbar {
  width: 0.6rem;
}

::-webkit-scrollbar-track {
  background: transparent;
  /*
  background: linear-gradient(
    90deg,
    transparent 0 45%,
    var(--saito-border-color) 45% 55%,
    transparent 55% 100%
  );
  */
}

::-webkit-scrollbar-thumb {
  background-color: var(--saito-primary);
  border-radius: 1rem;
}

/* utils */

.left-align {
  text-align: left;
  justify-content: flex-start !important;
}

.center-align {
  text-align: center;
  justify-content: center;
  align-items: center !important;
}

.right-align {
  text-align: right;
  justify-content: flex-end;
}

.clickable-element {
  cursor: pointer;
}

.saito-deemphasize {
  opacity: 0.66;
}

.saito-address {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block /*!important*/;
  min-width: 0px;
  width: auto;
  /* Why did that need to be less than 100%?? */
  max-width: 100%;
  cursor: pointer;
}

.tip:hover .tiptext {
  visibility: visible;
}

.tiptext {
  visibility: hidden;
  position: absolute;
  box-sizing: content-box !important;
  z-index: 10;
  width: 90%;
  min-width: 300px;
  max-width: 750px;
  padding: 1em;
  border-left: 2px solid var(--saito-primary);
  font-style: italic;
  font-size: smaller;
  border-radius: 0 0.5rem 0.5rem 0;
  line-height: 2rem;
}

.hidden {
  display: none;
}

#site-message-wrapper {
  border: var(--border-thickness-medium) solid var(--saito-primary);
  min-width: 500px;
  max-width: 100vw;
  padding: 3rem;
  font-size: var(--font-size-large);
  background: var(--saito-primary);
  color: var(--saito-primary-text);
  position: fixed;
  bottom: min(5rem, 10vh);
  left: min(5rem, 5vw);
  z-index: 200;
  border-radius: var(--saito-border-radius);
  user-select: none;
  cursor: default;
  transition: all 0.5s;
}

#site-message-wrapper.fade-out {
  filter: opacity(0);
}

#site-message-wrapper.message-clickable {
  cursor: pointer;
}

/* ----------------------------------------------------------------
 Scrollbars 
----------------------------------------------------------------- */

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  overflow-y: auto;
  overflow-x: auto;
}

/* ----------------------------------------------------------------
Font family
-----------------------------------------------------------------*/
.monospace {
  font-family: monospace;
}

/* ----------------------------------------------------------------
Media Queries
-----------------------------------------------------------------*/

@media screen and (max-width: 768px) {
  body {
    font-size: 1.45rem;
  }
  h1 {
    font-size: 4rem;
  }
  h2 {
    font-size: 3.5rem;
  }
  h3 {
    font-size: 3rem;
  }
  h4 {
    font-size: 2.5rem;
  }
  h5 {
    font-size: 2rem;
  }
  h6 {
    font-size: 1.5rem;
  }
  p.large {
    font-size: 1.8rem;
  }
  p,
  p.middle {
    font-size: 1.4rem;
  }
  p.small {
    font-size: 1.1rem;
  }
  #site-message-wrapper {
    width: 100vw;
    min-width: unset;
    padding: 2rem;
    bottom: 0;
    left: 0;
  }
}

@media screen and (max-width: 375px) {
  body {
    font-size: 1.4rem;
  }
}
.tweet-overlay {
  background: var(--saito-overlay-panel-background);
  box-shadow: var(--saito-overlay-panel-shadow);
  border: 1px solid var(--saito-overlay-panel-border);
  padding: var(--border-padding-wide);
  max-height: 95vh;
  max-width: 98vw;
  width: 600px;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Twitter copy overrides */
#tweet-overlay {
  border-radius: var(--saito-border-radius);
  padding: 24px;
  animation: fadeIn 0.2s ease-in-out forwards;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 99999;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.tweet-overlay-content {
  display: flex;
  flex-direction: column;
}

.tweet-overlay-header {
  position: relative;
}

.char-limit-container {
  display: flex;
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--saito-font-color-light);
  font-size: 1.2rem;
}

.char-limit-container.warning {
  color: var(--saito-status-danger);
}

.tweet-overlay-content .tweet-overlay-header {
  order: 1;
}

.tweet-overlay-content .saito-input {
  order: 2;
}

.tweet-overlay-content-controls {
  display: flex;
  flex-direction: row;
  justify-content: right;
  align-items: center;
  flex-wrap: wrap;
  background: var(--saito-post-controls-bg);
}

.tweet-overlay-content-controls i {
  color: transparent;
  font-size: 2rem;
  -webkit-text-stroke: var(--saito-post-control-color) 1px;
  padding: 1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.1s;
}

.tweet-overlay-content-controls i:hover {
  transform: scale(1.1);
}

.post-tweet-preview {
  margin-bottom: 1.5rem;
}

.post-tweet-preview > .tweet {
  margin-bottom: 1.5rem;
  padding: 0 0 2rem;
  max-height: 50vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.post-tweet-preview > .tweet::-webkit-scrollbar {
  display: none;
}

.post-tweet-textarea {
  display: block;
  padding: 1.4rem;
  width: 100%;
  outline: none;
  font-size: 1.6rem;
  margin: 1rem 0;
  min-height: 15rem;
  line-height: 2.25rem;

  resize: none;
  box-shadow: inset 0 0 0 var(--border-thickness-thin) var(--saito-input-border);
  transition: background 0.3s ease;

  border-radius: var(--saito-input-radius);
  /* Copied from textarea in saito-form-elements */
  background: var(--saito-post-textarea-bg);
  color: var(--saito-font-color);
  border: none;
}

.post-tweet-textarea:focus {
  background: var(--saito-post-textarea-bg-focus);
  box-shadow: inset 0 0 0 1px var(--saito-primary);
}

.post-tweet-img-preview-container {
  position: absolute;
  left: 19.5rem;
  bottom: 1.1rem;
  width: calc(100% - 40rem);
  height: 7rem;
  align-items: self-start;
  border: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  background: transparent;
}

.post-tweet-img-preview {
  position: relative;
  height: auto;
  width: 4rem;
  cursor: pointer;
  z-index: 1;
}

.post-tweet-img-preview-container img {
  max-width: 100px;
  border-radius: var(--saito-radius-md);
  object-fit: cover;
  box-shadow: var(--saito-elevation-1);
}

.post-tweet-img-preview img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 6rem;
  border: 1px solid var(--saito-primary);
  border-radius: var(--saito-border-radius);
  overflow: hidden;
}

.post-tweet-img-preview i {
  position: absolute;
  font-size: 6rem;
  color: var(--saito-primary); /* testing */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  display: none;
}

.post-tweet-img-preview:hover img {
  filter: brightness(0.5);
}

.post-tweet-img-preview:hover i {
  display: flex;
}

.post-tweet-button {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  margin: 0;
  border-radius: var(--saito-post-button-radius);
  z-index: 1; /* So button is clickable above the saito-input-large */
}

@media screen and (max-width: 600px) {
  .post-tweet-preview {
    display: none;
  }

  #tweet-overlay {
    padding: 12px;
    /*transform: translate(-50%, -75%);*/
  }

  .tweet-overlay .tweet-overlay-content {
    margin: 0;
  }

  .post-tweet-button {
    bottom: 2.4rem;
  }

  .post-tweet-img-preview-container {
    width: calc(100% - 2rem);
    left: 1rem;
    top: calc(100% + 0.5rem);
  }

  .post-tweet-img-preview {
    width: 20%;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translate(-50%, -50%);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -75%);
    }
  }
}
.saito-crypto-deposit-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-between;
  height: 54rem;
}

.saito-crypto-wallet-state {
  display: flex;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.call-to-action {
  font-size: 2rem;
  color: var(--saito-secondary);
  padding: 1rem;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/*  Detail Overlay */
#saito-details-loader {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.crypto-details-overlay {
  width: 720px;
  max-width: calc(100vw - 2px);
  min-height: 700px;
  max-height: calc(100vh - var(--saito-header-height));
  padding: 2rem;
  background-color: var(--saito-background-color);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.wallet-details {
  display: grid;
  grid-template-columns: 25rem 1fr;
  column-gap: 2rem;
}

.wallet-details h6 {
  grid-column: span 2;
}

.deposit-address {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem 2rem;
  align-items: center;
}

.pubkey-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
}

.pubkey-container:hover i {
  transform: scale(1.1);
}

.mobile-only460 {
  display: none;
}

.wallet-actions {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  justify-content: space-between;
}

.main-balance {
  position: relative;
}

.wallet-actions .label {
  margin-top: 0.5rem;
}

.crypto-details-overlay .balance-amount-whole,
.crypto-details-overlay .balance-amount-separator {
  font-size: 2.5rem;
}

.saito-button-grid {
  display: grid;
  grid-template-columns: min-content repeat(2, 1fr);
  gap: 1rem;
  margin-top: auto;
}

.saito-button-grid .saito-button-primary,
.saito-button-grid .saito-button-secondary {
  min-width: unset;
}

.transaction-history {
  display: grid;
  flex-grow: 1;
  position: relative;
  padding: 0.5rem 0;
  max-height: 40rem;
  grid-template-rows: min-content minmax(0, 1fr);
}

.transaction-history .saito-table-header,
.transaction-history .saito-table-row {
  grid-template-columns: repeat(5, 1fr);
}

.transaction-history-table {
  flex-grow: 1;
}

.deposit {
  color: var(--saito-status-success);
}

.withdraw {
  color: var(--saito-status-danger);
}

.withdraw.invalid,
.deposit.invalid {
  color: var(--saito-status-warning);
}

.crypto-timestamp {
  white-space: nowrap;
}

.refresh {
  position: absolute;
  right: 1rem;
  font-size: 2rem;
  padding: 0.5rem;
  cursor: pointer;
  top: 0;
}

.main-balance .refresh {
  top: 0.7rem;
}

.refresh:hover {
  color: var(--saito-primary);
}

.refreshing {
  animation: spin 1s linear infinite;
}

.pagination-container.disabled {
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.transaction-history-table div.saito-only {
  display: none;
}

.transaction-history-table[data-crypto='SAITO'] div.saito-only {
  display: flex;
}

.saitox-table.transaction-history-table {
  grid-template-columns: repeat(3, minmax(max-content, 2fr)) repeat(
      calc(var(--saitox-column-ct) - 3),
      minmax(max-content, 3fr)
    );
}

.refreshed {
  visibility: hidden;
}

.get-saito-overlay {
  width: min(800px, 95vw);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  font-size: 1.8rem;
  gap: 2rem;
  max-height: 95vh;
  overflow: auto;
}

@media screen and (max-width: 600px) {
  .crypto-details-overlay {
    min-height: calc(100vh - var(--saito-header-height));
  }

  .wallet-details {
    grid-template-columns: min-content 1fr;
    column-gap: 0;
  }

  .saito-button-grid {
    grid-template-columns: unset;
    max-width: 200px;
    gap: 0;
  }

  .deposit-address,
  .wallet-actions {
    padding: 0.5rem;
  }

  .pubkey-container {
    font-size: 1.5rem;
  }

  .wallet-actions {
    min-width: 210px;
    margin-left: auto;
    width: 100%;
  }

  .saitox-table.transaction-history-table {
    grid-template-columns: 10rem 0px 1fr 0px 1fr 0px;
  }

  .saitox-table.transaction-history-table > div {
    padding: 0;
    overflow: hidden;
  }

  .wallet-details .qrcode {
    height: 15rem;
  }
  .wallet-details .qrcode img,
  .wallet-details .qrcode svg {
    height: 15rem;
    width: 15rem;
  }
}

@media screen and (max-width: 460px) {
  .crypto-details-overlay {
    gap: 1rem;
  }

  .wallet-details {
    grid-template-columns: 1fr;
  }

  /*
  we should not be doing this! Use a class name!
  h6 {
    display: none;
  }*/

  /*.deposit-address .pubkey-container {
    display: none;
  }

  .mobile-only460 {
    display: flex;
    margin-left: auto;
  }*/
}

.saito-crypto-deposit-content {
  font-size: 1.8rem;
  line-height: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 1rem;
  flex-grow: 1;
  height: 350px;
}

.saito-crypto-deposit-content .img-prev {
  width: 100%;
  max-height: 30rem;
  height: auto;
  object-fit: cover;
}

.saito-progress-meter {
  position: relative;
  display: flex;
  height: 3rem;
  width: 100%;
  color: var(--saito-primary-text);
  background: var(--saito-highlight);
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  border-radius: var(--saito-border-radius);
  overflow: hidden;
}

.saito-crypto-deposit-container .game-loader-spinner {
  margin: 10rem auto;
}
#saito-alert-shim {
  z-index: 2000;
  background-color: var(--saito-alert-backdrop);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
}

#saito-alert-box {
  width: 75vw;
  max-width: 70rem;
  transition: all 500ms ease-in-out;
  background: var(--saito-alert-bg);
  margin: auto;
  position: relative;
  top: -100%;
  border: var(--border-thickness-thin) solid var(--saito-alert-border);
  border-radius: var(--saito-radius-md);
  padding: 1.5rem;
  color: var(--saito-alert-fg);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: var(--saito-alert-shadow);
}

.saito-alert-message {
  font-family: 'visuelt-light', 'Microsoft Yahei', 'Hiragino Sans GB';
  font-size: 2rem;
  text-align: center;
  align-self: center;
  display: block;
  margin: 1rem 0;
  overflow-wrap: break-word;
  line-height: 3rem;
  width: -webkit-fill-available;
}

@media (max-width: 600px) {
  #saito-alert-box {
    width: 95vw;
  }
}
.saito-file-transfer-overlay {
  width: min(45rem, 100vw);
  min-height: 45rem;
  max-height: 90vh;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* pseudo overlay */
  box-shadow: var(--saito-file-transfer-panel-shadow);
  border-radius: var(--saito-border-radius);
  overflow: hidden;
  background: var(--saito-file-transfer-panel-bg);
  border: var(--border-thickness-thin) solid var(--saito-file-transfer-panel-border);
  position: fixed;
  /*left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);*/
  left: 0;
  bottom: 0;
  z-index: 50;
}

#cancel-transfer {
  visibility: hidden;
}

.pseudo-overlay-controls {
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.pseudo-overlay-controls .icon-button {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.pseudo-overlay-controls .icon-button:hover {
  background-color: var(--saito-primary);
  color: var(--saito-primary-text);
}

.saito-file-transfer-overlay.minimize {
  padding: 2rem 0 0 0;
  bottom: 0;
  left: 0;
  top: unset;
  height: fit-content;
  min-height: unset;
  transform: unset;
}

.saito-file-transfer-overlay.minimize h1,
.saito-file-transfer-overlay.minimize > div {
  display: none;
}

.saito-file-transfer-overlay.minimize .pseudo-overlay-controls {
  display: flex;
}

.teleporter-file-data {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.saito-file-transfer-overlay.minimize .teleporter-file-data {
  display: block;
  margin-bottom: 0;
}

.teleporter-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  margin: 0.5rem;
  min-height: 3rem;
}

.teleporter-status {
  font-size: 1.8rem; /* slightly bigger than default */
}

.teleporter-status .fa-check {
  color: var(--saito-status-success);
}

.teleporter-status .fa-xmark {
  color: var(--saito-status-danger);
  font-size: 2.8rem;
}

.fixed-width {
  font-family: monospace;
}

.saito-button-primary#download-transfer {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/**** Temporary for developing file transfer in chat ***/
.saito-file-transfer {
  border-radius: var(--saito-border-radius);
  position: relative;
  border: var(--border-thickness-thin) dashed var(--saito-file-transfer-border);
  display: grid;
  align-items: center;
  padding: 1rem;
  grid-template-columns: min-content 1fr;
  grid-template-rows: 1fr 1fr;
  row-gap: 1rem;
  column-gap: 2rem;
  justify-items: flex-end;
  overflow: hidden;
  background-color: var(--saito-file-transfer-bg);
  color: var(--saito-file-transfer-fg);
}

.saito-file-transfer.complete {
  border: var(--border-thickness-thin) solid var(--saito-file-transfer-border);
}

.saito-file-transfer.received {
  grid-template-rows: unset;
}

.file-transfer-progress {
  position: absolute;
  left: 1px;
  top: 1px;
  height: calc(100% - 2px);
  width: 0%;
  background-color: var(--saito-primary);
}

.saito-file-transfer.received .file-transfer-progress {
  background-color: var(--saito-secondary);
}

.saito-file-transfer i {
  font-size: 4rem;
  grid-row: 1 / span 2;
  z-index: 1;
}

.saito-file-transfer .file-name,
.saito-file-transfer .file-size {
  z-index: 1;
}

.saito-file-uploader.needs-file {
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
}

.hideme,
.saito-button-primary.hideme#download-transfer {
  display: none;
}
.saito-overlay-backdrop {
  position: fixed !important;
  display: none;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--saito-overlay-backdrop);
  z-index: 100;
}

.saito-overlay-backdrop ~ .saito-overlay-backdrop {
  background-color: var(--saito-overlay-backdrop-stacked);
}

.saito-overlay {
  position: fixed;
  display: inline-block;
  z-index: 1000;
  height: min-content;
  width: min-content;
  /*min-height: 10%; Why? */
  max-height: 100svh;
  max-width: 100vw;
  border-radius: var(--saito-border-radius);
  background: var(--saito-overlay-panel-background);
}

.saito-overlay-size {
  width: min(600px, 95vw);
  min-height: min(400px, 80vh);
  max-height: 80vh;
  padding: var(--saito-space-xl);
}

.saito-overlay-size.wide {
  width: min(900px, 100vw);
  padding: var(--saito-space-xxl);
}

.saito-overlay-size.tall {
  min-height: min(600px, 100vh);
  max-height: 100vh;
}

.saito-overlay-size.narrow {
  width: min(400px, 90vw);
  min-width: unset;
}

.saito-overlay > div:last-child,
.saito-overlay > form {
  box-shadow: var(--saito-overlay-panel-shadow);
  border-radius: var(--saito-border-radius);
  border: 1px solid var(--saito-overlay-panel-border);
}

.center-overlay {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0 auto;
}

.saito-overlay-closebox {
  position: absolute;
  width: 4.2rem;
  height: 3.4rem;
  border-radius: 0.8rem;
  z-index: 100;
  top: -1rem;
  right: -1rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--saito-surface-inverse) 12%, transparent), transparent),
    color-mix(in srgb, var(--saito-surface-color) 84%, var(--saito-primary));
  border: 1px solid color-mix(in srgb, var(--saito-primary) 42%, var(--saito-overlay-panel-border));
  box-shadow:
    0 1.2rem 3rem color-mix(in srgb, var(--saito-black) 28%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--saito-white) 16%, transparent);
  backdrop-filter: blur(10px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  display: none;
  cursor: pointer;
}

.saito-overlay > .saito-overlay-closebox {
  box-shadow:
    0 1.2rem 3rem color-mix(in srgb, var(--saito-black) 28%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--saito-white) 16%, transparent);
}

.maximized-overlay .saito-overlay-closebox {
  top: 1rem;
  right: 1rem;
}

/* Close icon */

.saito-overlay-closebox-btn {
  pointer-events: none;
  display: block;
  height: 100%;
  width: 100%;
  color: transparent;
  background-color: transparent;
  font-size: 0;
  border-radius: inherit;
  position: absolute;
  inset: 0;
  transform: none;
}

.saito-overlay-closebox::before,
.saito-overlay-closebox::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.45rem;
  height: 2px;
  border-radius: 999px;
  background: var(--saito-primary-text);
  transform-origin: center;
}

.saito-overlay-closebox::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.saito-overlay-closebox::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.saito-overlay-closebox:hover {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--saito-white) 18%, transparent), transparent),
    var(--saito-primary);
  border-color: var(--saito-primary);
  box-shadow:
    0 1.4rem 3.6rem color-mix(in srgb, var(--saito-black) 34%, transparent),
    0 0 0 1px color-mix(in srgb, var(--saito-primary) 24%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--saito-white) 24%, transparent);
  transform: translateY(-1px);
  transform-origin: center;
}

.saito-app-overlay .saito-app-body .saito-app-upload {
  border: 3px dotted;
  width: 100%;
  margin: auto;
  text-align: center;
  font-size: 2.2rem;
  padding: 15rem 0rem;
}

.saito-app-overlay .saito-app-body .saito-app-upload {
  border: 3px dotted;
  width: 100%;
  margin: auto;
}

.saito-overlay-form {
  width: min(60rem, 95vw);
  padding: var(--saito-space-xl);
  background: var(--saito-overlay-panel-background);
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-xl);
}

.saito-overlay-form .token-dropdown {
  color: var(--saito-font-color);
  background: var(--saito-background-color);
}

.saito-overlay-form-header {
  height: 6rem;
  background: linear-gradient(
    90deg,
    var(--saito-primary) 0%,
    var(--saito-primary) 20%,
    transparent 100%
  );
  color: var(--saito-primary-text);
  width: 100%;
  border-radius: 0.5rem;
  padding-left: 1.6rem;
  gap: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Mobile: 40% solid primary before fade for better text readability */
@media (max-width: 768px) {
  .saito-overlay-form-header {
    background: linear-gradient(
      90deg,
      var(--saito-primary) 0%,
      var(--saito-primary) 40%,
      transparent 100%
    );
  }
}

.saito-overlay-form-header-title {
  /*height: 6rem;*/
  color: inherit;
  /*padding: 1.6rem;*/
  font-size: 2.5rem;
  text-transform: uppercase;
  white-space: nowrap;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saito-overlay-form-header-title.loading {
  line-height: 6rem;
  text-align: left;
  padding-top: 0rem;
}

.saito-overlay-form-input {
  margin: 0 3px;
}

.saito-overlay-form-text {
  font-size: 2rem;
  line-height: 3rem;
  padding: 0 1rem;
}

.saito-overlay-subform-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.saito-overlay-form-inputs > input[type='text'] {
  height: 6rem;
  font-size: 2.3rem;
  margin-top: 1.25rem;
}

.saito-overlay-form > input[type='text'],
.saito-overlay-form-input[type='text'],
.saito-overlay-form > input[type='password'] {
  height: 6rem;
  font-size: 2.3rem;
}

.saito-overlay-subform {
  display: grid;
  grid-template-columns: min-content 1fr;
  gap: 1rem;
  border: var(--border-thickness-thin) dashed var(--border-color-general-dividers);
  border-radius: var(--saito-border-radius);
  padding: 1.4rem;
}

.saito-overlay-subform.centerme {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.saito-overlay-subform-text {
  font-size: 2rem;
  flex-grow: 1;
  line-height: 3rem;
}

.saito-overlay-form textarea,
.saito-overlay-form input {
  border: var(--border-thickness-thin) solid var(--border-color-general-dividers);
}

.saito-overlay-form textarea {
  font-size: 2.2rem;
  height: 13rem;
}

.module-settings-overlay {
  min-width: min(800px, 95vw);
  min-height: min(400px, 90vh);
  max-width: 95vw;
  max-height: 95vh;
  padding: var(--saito-space-xl);
  background: var(--saito-overlay-panel-background);
  border-radius: var(--saito-border-radius);
  border: var(--border-thickness-medium) solid var(--saito-overlay-panel-border);
  box-shadow: var(--saito-overlay-panel-shadow);
  display: flex;
  flex-direction: column;
}

.module-settings-overlay .saito-module-settings::-webkit-scrollbar {
  display: none;
}

.module-settings-overlay .saito-module-settings {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  overflow-y: auto;
  padding: unset;
}

@media screen and (max-width: 600px) {
  .maximized-overlay .saito-overlay-closebox {
    top: 0.5rem;
    right: 0.5rem;
  }

  .saito-overlay-subform > div:first-child {
    display: none;
  }

  .saito-overlay-subform-inputs {
    grid-column: span 2;
  }

  .module-settings-overlay {
    padding: var(--saito-space-md);
  }

  .bottom-mobile-overlay.center-overlay {
    top: unset;
    bottom: 0;
    transform: translateX(-50%);
  }

  .saito-overlay-size.wide {
    padding: var(--saito-space-xl) var(--saito-space-md);
  }
}
.saito-input {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: fit-content;
	overflow: visible;
}

.saito-input .text-input:not(.post-tweet-textarea) {
  /*height: 100%;*/
  width: 100%;
  padding: 1.2rem 3rem 1.2rem var(--saito-space-md);
  cursor: text;
  border: var(--border-thickness-thin) solid transparent;
  border-radius: var(--saito-input-radius);
  font-size: 1.6rem;
  line-height: 2rem;
  outline: none;
  background: var(--background-color-message-input, var(--saito-input-bg));
  color: var(--saito-input-fg);
  overflow-y: auto;
  word-break: break-word;
  min-height: 4.5rem;
  max-height: 12.5rem;
  height: fit-content;
}

.saito-input .text-input:not(.post-tweet-textarea):focus,
.saito-input .text-input:not(.post-tweet-textarea):focus-within {
  border-color: var(--saito-input-border-focus);
  box-shadow: var(--saito-focus-ring);
}

.saito-input-selection-box {
	position: absolute;
	height: min(46rem, 50vh);
	width: 36rem;
	max-width: 100%;
	z-index: 150;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: column;
	border: var(--border-thickness-medium) solid var(--saito-overlay-panel-border);
	border-radius: var(--saito-border-radius);

	/*
	We can't control for if user resizes chat-popup, better to have visibile borders
	border-top: none;
	border-left: none;
	*/
	background: var(--saito-overlay-panel-background);
	box-shadow: var(--saito-overlay-panel-shadow);
}

.saito-mention {
	cursor: pointer;
	color: var(--saito-primary);
	font-style: italic;
	user-select: none;
	margin-right: 8px !important;
	width: fit-content;
}

.saito-mention:hover {
	color: var(--saito-font-color);
}

* + .saito-mention {
	margin-left: 8px;
}

.saito-mention.saito-address {
	overflow: visible;
}

.selection-box-window {
	position: relative;
	width: 100%;
	height: 100%;
}

.photo-window {
	font-size: 3rem;
	text-align: center;
	padding: 4rem;
	cursor: pointer;
	opacity: 0.5;
}

.selection-box-pane {
	display: none;
	position: absolute;
	margin: auto;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.selection-box-pane.active-tab {
	display: flex;
}

.selection-box-tabs {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	width: 100%;
	height: 5rem;
	background: var(--saito-overlay-panel-background);
	border-top: 1px var(--border-color-general-dividers);
}

.selection-box-tabs i {
	font-size: 2.5rem;
}

.saito-box-tab {
	font-size: 1.2rem;
	color: var(--saito-primary);
	border-radius: 8px;
	transition: background 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
}

/* override definitions from giphy.css */
.selection-box-window .saito-gif-container {
	padding: 0.5rem;
}

emoji-picker {
	display: none;
	--emoji-size: 2.5rem;
	--emoji-padding: 0.5rem;
	z-index: 2;
}

.saito-emoji {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 0.8rem 0.5rem;
	color: var(--saito-primary);
	cursor: pointer;
	transition: all 0.2s;
	font-size: 2rem;
}

.selection-box-window emoji-picker {
	width: 100%;
	height: 100%;
	display: flex;
}

.saito-input-large .selection-box-tabs {
	width: 14rem;
	border-top: unset;
	background: transparent;
	align-items: flex-end;
	justify-content: space-between;
}

.at-window {
	flex-direction: column;
	justify-content: flex-start;
}

.at-window .saito-input-mention-header {
	font-size: 2.2rem;
	width: 100%;
	display: grid;
	align-items: center;
	grid-gap: 1rem;
	grid-template-columns: 1fr 2rem;
	padding: 1rem;
}

.at-window .saito-input-mention-header input {
	margin-bottom: 0;
}

.saito-input-contact-list {
	width: calc(100% - 2px);
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	padding: 0.5rem;
	font-size: 2rem;
	overflow: auto;
	flex: 1;
	background: var(--saito-overlay-panel-background);
	border-radius: var(--saito-input-radius);

	/* for popping up over input field */
	max-height: 200px;
	bottom: 0;
}

.at-window .saito-input-contact-list {
	bottom: unset;
	top: 5rem;
	max-height: calc(100% - 4.5rem);
	position: static;
}

.saito-input-contact {
	cursor: pointer;
	display: flex;
	gap: 0.5rem;
	width: 100%;
	align-items: center;
	height: 4rem;
	padding: 0.75rem;
}

.saito-input-contact:hover,
.saito-input-contact:focus {
	background-color: var(--saito-primary);
}

.no-mouse .saito-input-contact:hover {
	background-color: revert;
}

.saito-input-quote {
	display: grid;
	grid-template-columns: 5rem auto 3rem;
	align-items: center;
	font-size: 1.5rem;
}

.saito-input-quote i {
	justify-self: center;
	font-size: 2rem;
}

.saito-input-quote blockquote {
	background-color: var(--saito-surface-selected);
	cursor: default;
}

.saito-input-quote .cancel-quote {
	cursor: pointer;
	font-size: 2.5rem;
	width: 40px;
	height: 40px;
	border-radius: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.chat-footer .saito-input-quote i:hover {
	transform: unset;
}

.chat-footer .saito-input-quote i.cancel-quote:hover {
	background-color: var(--saito-primary);
	color: var(--saito-primary-text);
}

/* saito mentions list */
.saito-mentions-list {
	background: var(--saito-overlay-panel-background);
	position: absolute;
	z-index: 104;
	color: var(--saito-font-color);
	max-height: 30rem;
	border: 1px solid var(--saito-overlay-panel-border);
	overflow-y: scroll;
	font-size: 1.6rem;
	border-radius: var(--saito-input-radius);
	padding: 0.5rem 0 0.5rem 0.2rem;
	max-width: 100%;
	width: 36rem;
}

.saito-mentions-list.hidden {
	border: none;
}

.saito-mentions-list.empty {
	border: none;
	background: none;
}

.saito-mentions-list .menu-item {
	padding: 0.55rem;
	width: calc(100% - 4rem);
	overflow: hidden;
	text-overflow: ellipsis;
}

.saito-mentions-list .saito-identicon {
	width: 3rem;
	height: 3rem;
}

.menu-item.selected {
	background-color: var(--saito-primary);
	color: var(--saito-primary-text);
}

.menu-item:hover {
	cursor: pointer;
}

.saito-mentions-contact {
	cursor: pointer;
	display: flex;
	width: 100%;
	align-items: center;
	height: 4rem;
	padding: 0.75rem 0.5rem;
	gap: 0.5rem;
}

.saito-mentions-contact:hover .menu-item {
	background-color: var(--saito-background-color);
	color: var(--saito-font-color);
}

@media only screen and (max-width: 768px) {
	.saito-input-large .selection-box-tabs {
		align-items: center;
		height: 6rem;
		width: 14rem;
		margin-left: unset;
	}

	.saito-box-tab {
		font-size: 3rem;
	}
}
.league-overlay {
	background: var(--saito-background-color);
	width: 90vw;
	padding: 2rem 1rem;
	display: flex;
	flex-direction: column;
	grid-gap: 2rem;
	max-height: 95vh;
	max-width: 95rem;
}

.league-overlay > div {
	margin: 0 1rem;
}

.league-overlay-controls {
	display: flex;
	flex-direction: row;
	justify-content: end;
}

.league-overlay-controls i {
	font-size: 2rem;
	border-radius: 0.5rem;
	height: 5rem;
	width: 5rem;
	border: 1px solid;
	line-height: 5rem;
	text-align: center;
	border-color: inherit;
}

.league-overlay-header {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	row-gap: 1.5rem;
	flex-wrap: wrap;
	height: 8rem;
}

.league-overlay-header-title-box {
	flex: 1;
	min-width: fit-content;
}

.league-page-tab {
	width: 9rem;
	height: 9rem;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem;
	justify-content: space-evenly;
}

.league-page-tab i.notification {
	position: absolute;
	top: 19%;
	left: 43%;
	font-size: 16px;
	color: var(--saito-red);
	width: unset;
	padding: unset;
	margin: unset;
}

.league-overlay .hidden {
	display: none;
}

.empty-game-list {
	font-style: italic;
	padding: 2rem;
	text-align: center;
	opacity: 0.8;
}

.league-page-tab:hover,
.league-page-tab.active-tab {
	border-color: var(--saito-primary);
	color: var(--saito-primary);
}

.league-overlay-header-title-box-title {
	font-size: 4rem;
}

.league-overlay-header-title-box-desc {
	font-size: 2rem;
	text-transform: capitalize;
}

.league-overlay-body {
	display: grid;
	grid-template-columns: minmax(40rem, 3fr) minmax(33rem, 2fr);
	gap: 2rem;
	height: min(45rem, calc(100vh - 160px));
}

.league-error {
	padding: 0rem 1.5rem;
	line-height: 2rem;
}

.league-overlay-content-box {
	border-radius: 0.5rem;
	overflow-y: auto;
	border: 1px solid var(--border-color-general-dividers);
	flex: 1;
}

.league-overlay-body-content {
	display: flex;
	flex-direction: column;
	overflow: auto;
}

.league-overlay-body.admin-mode .league-overlay-body-content {
	grid-column: span 2;
}

.league-overlay-body.admin-mode .league-overlay-controls {
	display: none;
}

.league-overlay-header-image {
	/* Fallback image, should be inserted by JS*/
	background-image: url(/saito/img/dreamscape.png);
	background-size: cover;
	width: 11rem;
	min-width: 11rem;
	height: 7rem;
	margin-right: 1rem;
}

.league-overlay-description {
	position: relative;
	line-height: 2.3rem;
	padding: 1.5rem;
}

.league-overlay-description i,
#admin_contact i {
	position: absolute;
	top: 0;
	right: 0;
}

.league-overlay-description img {
	max-width: 100%;
	margin: 1rem auto;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	border-radius: var(--saito-border-radius);
}

#admin_details {
	flex: unset;
	min-height: 7.5rem;
}

span.attention {
	text-decoration: underline dashed 1px;
	cursor: pointer;
}

#admin_contact {
	min-width: 10rem;
	height: fit-content;
	min-height: 2rem;
	position: relative;
}

.league-overlay-league-body-games {
	display: flex;
	flex-direction: column;
	row-gap: 1rem;
	flex-grow: 1;
}

.league_recent_game,
.game-manager .saito-table-header,
.game-manager .saito-table-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 1rem;
	text-align: center;
}

.league_recent_player {
	max-width: 27rem;
	overflow: hidden;
	display: inline-block;
	white-space: nowrap;
	text-overflow: ellipsis;
	vertical-align: bottom;
}

.league_recent_players_list {
	display: flex;
	flex-direction: row;
	column-gap: 1rem;
	margin: auto;
}

.league_recent_players_list_item {
	display: flex;
	flex-direction: row;
}

.league-overlay-games-list .saito-table {
	overflow-y: scroll;
}

.league_recent_player {
	position: relative;
	overflow: visible;
	width: 3.5rem;
	height: 3.5rem;
}

.league_recent_player.winner::before {
	content: '♕';
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	position: absolute;
	top: -1.1rem;
	right: -1rem;
	font-size: 30px;
	font-weight: 900;
	color: var(--saito-red);
	text-shadow: 0 0 3px var(--saito-white);
}

.league_recent_game div {
	align-self: center;
}

.league-overlay-leaderboard {
	position: relative;
	min-width: min(40rem, 100%);
	padding: 0px; /* keeps scrolled content from showing above sticky header */
}

.alert_email,
.alert_identifier {
	position: relative;
	box-shadow: 0px 0px 10px var(--color-contrast) !important;
	cursor: pointer;
}

.alert_email .league-leaderboard,
.alert_identifier .league-leaderboard {
	filter: blur(2px);
	pointer-events: none;
}

.alert_email i,
.alert_identifier i {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--saito-secondary);
	font-size: 6.4rem;
}

.admin-widget .saito-table-header,
.admin-widget .saito-table-row {
	grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
	justify-items: center;
	align-items: center;
}

.admin-widget .saito-table-row > div {
	width: 100%;
	text-align: center;
}

.editable_field {
	border: 1px solid var(--saito-border-color);
	cursor: text;
}

.contactAdminWarning {
	font-size: 2rem;
	/*min-height: 30rem;*/
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	flex: 4;
}

.contactAdminWarning > * {
	margin: 1rem;
}

.contactAdminWarning > div:first-child {
	font-size: 5rem;
	justify-content: center;
}

.contactAdminWarning i {
	font-size: 5rem;
	color: var(--saito-secondary);
}

.league-page-tab.mobile-only {
	display: none;
}

.explanation {
	padding: 1rem;
	font-style: italic;
}

.league-settings .saitox-table {
	grid-template-columns: 1fr repeat(3, max-content);
}

.league-settings .saitox-table > div {
	justify-content: center;
}

.league-settings .clickable-element:hover {
	color: var(--saito-font-color-light);
	background: var(--saito-surface-hover);
}

@media screen and (max-width: 900px) {
	.league-overlay-header {
		height: unset;
	}
	.oversize-load {
		font-size: clamp(3rem, 5vw, 4rem);
	}
	.league-overlay-body {
		display: flex;
		flex-direction: column;
		row-gap: 2rem;
		overflow-y: auto;
		margin: 0 !important;
		padding: 1px 1rem;
		height: calc(90vh - 12rem);
	}
	.league-overlay-body > div {
		/*  overflow-y: unset;*/
	}
	.league-overlay-body .league-overlay-controls {
		justify-content: center;
	}

	.league-overlay-content-box {
		max-height: 40vh;
	}
}

@media screen and (max-width: 600px) {
	.oversize-load {
		font-size: clamp(3rem, 10vw, 4rem);
	}
	.league-page-tab.mobile-only {
		display: flex;
	}
	.mobile-hide {
		display: none;
	}
	.mobile-hide.hidden {
		display: unset;
	}
	.league-overlay > div {
		margin: 0;
	}
	.league-overlay {
		width: 100vw;
		max-height: 95svh;
	}
	.contactAdminWarning {
		min-height: 0;
	}
	.league-overlay-body {
		height: calc(90vh - 20rem);
		flex-direction: column-reverse;
		row-gap: 0;
	}
	.league-overlay-controls {
		justify-content: center;
		max-width: 100%;
	}
	.league-overlay-leaderboard {
		min-height: calc(100% - 8rem);
	}

	.league-overlay-header {
		flex-direction: column;
		position: relative;
	}

	.league-overlay-content-box {
		max-height: unset;
	}

	.league-overlay-body-content {
		flex: 1;
	}
	/*.league-overlay-body-content .saito-button-row {
		margin: unset;
	}*/

	.league-overlay-header-image {
		margin: 0;
		width: 100%;
		background-position: center center;
		height: 10rem;
	}
	.league-overlay-header-title-box {
		position: absolute;
		left: 1rem;
		top: 1.4rem;
		text-shadow:
			1px 1px 2px var(--saito-background-color),
			-1px -1px 2px var(--saito-background-color),
			1px -1px 2px var(--saito-background-color),
			-1px 1px 2px var(--saito-background-color);
		/* testing, haven t seen any of this */
	}
}

.league-rankings .sidebar-title {
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding-right: 1rem;
	color: var(--saito-font-color-heavy);
}

.ranking-overlay {
	max-width: 95vw;
	width: 450px;
	padding: 3rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-size: 1.8rem;
	border: 1px solid var(--saito-border-color);
}
/* ----------------------------------------------------------------
Saito Identicon
-----------------------------------------------------------------*/

.saito-identicon {
  width: 3.5rem;
  height: 3.5rem;
  border: var(--border-thickness-thin) solid var(--saito-background-color);
  border-radius: var(--saito-border-radius);
  background: var(--saito-background-color);
}

.saito-identicon-box {
  width: 3.5rem;
  height: 3.5rem;
  border: var(--border-thickness-thin) solid var(--saito-background-color);
  border-radius: var(--saito-identicon-border-radius);
  cursor: pointer; /* app.browser tries to turn all .saito-identicon into clickable target */
}

.saito-identicon-box .saito-identicon {
  /* It should grow to fit the box! */
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: none;
}

/* ----------------------------------------------------------------
Saito Username  --- Partially duplicated in saito-base
-----------------------------------------------------------------*/

.saito-user > .saito-address-long:nth-child(2) {
  grid-column-end: 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 1rem;
}

/* ----------------------------------------------------------------
Saito User
-----------------------------------------------------------------*/

.saito-user {
  display: grid;
  column-gap: 1rem;
  grid-template-columns: min-content 1fr min-content;
  grid-template-rows: min-content 1fr;
  justify-items: start;
  width: 100%;
  position: relative;
  white-space: nowrap; /* don't auto wrap time stamps or stuff */
  row-gap: 0;
}

/*  saito-identicon-box  */

.saito-user > .saito-identicon-box {
  grid-column-start: 1;
  grid-column-end: span 1;
  grid-row: span 2;
  position: relative;
}

.saito-user > .saito-identicon-box .saito-identicon {
  opacity: 0.85; /* make identicons less harsh */
}

.saito-user > .saito-identicon-box .saito-identicon[data-id]:hover {
  opacity: 1;
}

.saito-user > .saito-address {
  color: var(--saito-font-color);
  grid-column-start: 2;
  grid-column-end: span 1;
  grid-row-start: 1;
  grid-row-end: span 1;
  font-size: 1.5rem;
}

.saito-user[data-disable='true'] > .saito-address,
.saito-user[data-disable='true'] > .saito-identicon-box {
  cursor: unset; /* allow inheritance from parent for otherwise clickable event */
}

.saito-user > .saito-userline {
  grid-column-start: 2;
  grid-column-end: span 1;
  grid-row-start: 2;
  grid-row-end: span 1;
  font-size: 1.4rem;
  /* Added for all the publickeys in saito-userlines that overflow */
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: inherit;
}

.saito-user .saito-datetime {
  cursor: pointer;
  grid-column-start: 3;
  grid-column-end: span 1;
  grid-row: span 2;
  font-size: 1.4rem;
  align-items: top;
}

.saito-user-fourth-elem-large {
  grid-row: span 2;
}

.saito-overlay .saito-user {
  max-width: 90vw;
}

.saito-anon {
  margin-right: 3px;
  font-style: italic;
}

/****************************
 * Account Login
 * *************************/
.wallet-selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.wallet-selection .saito-user {
  padding: 1rem;
  border: 1px solid var(--saito-border-color-light);
  border-radius: var(--saito-border-radius);
  width: unset;
}
.saito-img-flex {
  /*--image-height: 200px;*/
  display: flex;
  overflow: hidden;
  flex-wrap: wrap;
  margin: -2.5px;
}

.saito-img-flex > * {
  position: relative;
  display: block;
  height: var(--image-height);
  margin: 2.5px;
  flex-grow: 1;
  max-height: var(--multi-max-height);
  border-radius: var(--saito-border-radius);
  overflow: hidden;
  border: 1px solid transparent;
}

.saito-img-flex > * > img {
  height: var(--image-height);
  object-fit: cover;
  max-width: 100%;
  min-width: 100%;
  vertical-align: bottom;
  max-height: var(--multi-max-height);
}

.saito-img-flex.single-img > * {
  margin: auto;
  flex-grow: unset;
}
.saito-img-flex.single-img > * > img {
  object-fit: contain;
}

.saito-img-flex.saito-img-flex-margin {
  margin: 2.5px;
}

@media (max-width: 980px) {
  .saito-img-flex > *,
  .saito-img-flex > * > img {
    height: calc(var(--image-height) * 0.75);
  }
}

@media (max-width: 400px) {
  .saito-img-flex > *,
  .saito-img-flex > * > img {
    height: calc(var(--image-height) * 0.5);
  }
}

/* borrowing heavily from flexbin */
/***
 * 
 * We have some name space confusion ....
 * TODO: FIX !!!!
 * 
 * this css looks like it is for game invites in Arcade and the sidebar in RedSquare
 * 
 * maybe should change to saito-game...
 * 
 */

.saito-module {
  display: flex;
  flex-wrap: wrap;
  row-gap: var(--saito-space-md);
  flex-direction: row;
  justify-content: space-between;
  position: relative;
  width: 100%;
  cursor: pointer;
  padding: var(--saito-space-md);
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--saito-card-bg);
  background-blend-mode: soft-light;
  border-radius: var(--saito-border-radius);
  border: var(--border-thickness-thin) solid var(--saito-card-border-initial);
  box-shadow: var(--saito-card-shadow);
  overflow: hidden;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.saito-module:hover {
  background-color: var(--saito-card-bg-hover);
  border-color: var(--saito-card-border);
  box-shadow: var(--saito-card-shadow-hover);
  transform: var(--saito-card-transform-hover);
}

.saito-module-titlebar {
  padding: var(--saito-space-xs);
  max-width: 18rem;
  min-width: 12rem;
  width: 18rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  overflow-wrap: break-word;
  opacity: 0.8;
  background: var(--saito-chip-bg);
  border-radius: var(--saito-border-radius);
}

.saito-module-titlebar > div {
  margin: 0.25rem;
}

.saito-module-titlebar-title {
  color: var(--saito-chip-fg);
  font-size: 2rem;
}

.saito-module-titlebar-details {
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--saito-chip-fg);
}

.saito-game-details {
  display: flex;
  flex-direction: row;
  column-gap: 1rem;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
}

.saito-module-identicon {
  border: none;
}

/*
    Small tweaks for when the saito-module is crammed into a sidebar
*/
.saito-sidebar .saito-module {
  padding: var(--saito-space-xs);
}

.saito-sidebar .saito-module-titlebar {
  width: unset;
}

.saito-sidebar .saito-module-titlebar-details {
  font-size: 1.2rem;
}

/***
 * 
 * Here is fresh code for actual saito-module stuff, a new (19 Jan 2024) UI component
 * for handling generic module stuff. It should display basic metadata about the module
 * and have selectable options that we would save in the app.options[module] section.
 * The basic idea is to have a way to change module settings from outside of the module!
 * 
 * Maybe also useful when we resurrect the appstore
 * 
 */

.saito-module-overlay {
  display: flex;
  flex-direction: column;
  row-gap: var(--saito-space-md);
  width: min(90vw, 80rem);
  max-height: 70vh;
  overflow: auto;
  background: var(--saito-overlay-panel-background);
  border-radius: var(--saito-border-radius);
  border: var(--border-thickness-thin) solid var(--saito-overlay-panel-border);
  box-shadow: var(--saito-overlay-panel-shadow);
  padding: var(--saito-space-xl);
  user-select: none;
}

.saito-module-header {
  background: var(--saito-header-background);
  background-size: cover;
  background-position: center;
  padding: var(--saito-space-xs);
}

.saito-module-header .saito-module-titlebar {
  max-width: 100%;
  width: 100%;
  padding: var(--saito-space-xs) var(--saito-space-md);
}

.saito-module-overlay .saito-module-titlebar {
  background: var(--saito-header-background);
  color: var(--saito-header-color);
}

.saito-module-details {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: var(--saito-space-md);
  margin: var(--saito-space-md);
  padding: var(--saito-space-xl);
  border-radius: var(--saito-radius-md);
  border: var(--border-thickness-thin) solid var(--saito-card-border);
}

.saito-module-overlay > h4 {
  margin-left: 1rem;
}

.saito-module-settings {
  padding: var(--saito-space-md);
}

fieldset.saito-grid {
  padding: var(--saito-space-xl);
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--saito-space-xl);
  align-items: center;
  margin: var(--saito-space-md) 0;
  border: var(--border-thickness-thin) solid var(--saito-card-border);
  border-radius: var(--saito-radius-md);
  position: relative;
}

fieldset.saito-grid > fieldset.saito-grid {
  grid-column-start: 1;
  grid-column-end: span 2;
}

fieldset.saito-grid .note {
  margin-left: 5px;
}

.saito-module-settings .note {
  font-style: italic;
}

.saito-grid input,
.saito-grid label {
  cursor: pointer;
}

.saito-grid-extra-button {
  position: absolute;
  right: 1rem;
  bottom: 0.25rem;
  min-height: min(70%, 40px);
  max-width: 50%;
}

.saito-grid i {
  margin: 0 0.5rem;
  font-size: 1.8rem;
  cursor: pointer;
}

.settings-link,
.settings-link label {
  cursor: pointer;
}

.settings-link:hover label {
  text-decoration: underline;
  color: var(--font-color-hover-module-menu);
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}
/*
link preview
*/

.link-preview {
  /*margin: 1rem 0;*/
  white-space: normal;
}

.link-img {
  width: 100%;
  max-height: 2rem;
  border-top-left-radius: var(--saito-border-radius);
  border-top-right-radius: var(--saito-border-radius);
  border: var(--border-thickness-thin) solid var(--saito-link-preview-border);
  border-bottom: none;
  overflow: hidden;
  display: flex;
}

.link-img.has-picture {
  max-height: 25rem;
}

.link-img img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

.link-info {
  padding: 2rem;
  border: var(--border-thickness-thin) solid var(--saito-link-preview-border);
  border-radius: var(--saito-border-radius);
  border-top: none;
  border-top-right-radius: unset;
  border-top-left-radius: unset;
  overflow-wrap: anywhere;
  color: var(--saito-font-color);
  font-size: 1.5rem;
  background-color: var(--saito-link-preview-bg);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.link-title {
  font-size: 1.8rem;
}

.link-display_url {
  color: var(--saito-font-color-secondary);
  font-style: italic;
  font-size: 1.3rem;
}

.link-preview a {
  white-space: normal;
}
.saito-tooltip {
  display: inline-block;
  position: relative;
}

.saito-tooltip .saito-tooltip-icon {
  margin: 0rem 1rem;
  color: var(--saito-tooltip-icon-color);
  cursor: pointer;
  font-size: 2rem;
}

.saito-tooltip .saito-tooltip-info {
  border-radius: var(--saito-tooltip-radius);
  position: fixed;
  background: var(--saito-tooltip-bg);
  padding: 1rem;
  box-shadow: var(--saito-tooltip-shadow);
  border: var(--border-thickness-thin) solid var(--saito-tooltip-border);
  z-index: 2;
  color: var(--saito-tooltip-fg);
  font-weight: 400;
  min-width: 20rem;
}

.tooltip-info-hide {
  display: none;
}
/* ----------------------------------------------------------------
font imports
-----------------------------------------------------------------*/
@font-face {
  font-family: 'visuelt-black';
  src: url('/saito/fonts/visuelt-black.eot');
  src:
    url('/saito/fonts/visuelt-black.eot?#iefix') format('embedded-opentype'),
    url('/saito/fonts/visuelt-black.woff2') format('woff2'),
    url('/saito/fonts/visuelt-black.woff') format('woff'),
    url('/saito/fonts/visuelt-black.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'visuelt-light';
  src: url('/saito/fonts/visuelt-light.eot');
  src:
    url('/saito/fonts/visuelt-light.eot?#iefix') format('embedded-opentype'),
    url('/saito/fonts/visuelt-light.woff2') format('woff2'),
    url('/saito/fonts/visuelt-light.woff') format('woff'),
    url('/saito/fonts/visuelt-light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'visuelt-medium';
  src: url('/saito/fonts/visuelt-medium.eot');
  src:
    url('/saito/fonts/visuelt-medium.eot?#iefix') format('embedded-opentype'),
    url('/saito/fonts/visuelt-medium.woff2') format('woff2'),
    url('/saito/fonts/visuelt-medium.woff') format('woff'),
    url('/saito/fonts/visuelt-medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'visuelt-regular';
  src: url('/saito/fonts/visuelt-regular.eot');
  src:
    url('/saito/fonts/visuelt-regular.eot?#iefix') format('embedded-opentype'),
    url('/saito/fonts/visuelt-regular.woff2') format('woff2'),
    url('/saito/fonts/visuelt-regular.woff') format('woff'),
    url('/saito/fonts/visuelt-regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'p-word';
  src: url('/saito/fonts/password.ttf') format('truetype');
}

@font-face {
  font-family: 'digital-7';
  src: url('/saito/fonts/digital-7.mono.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'digital-7';
  src: url('/saito/fonts/digital-7.mono.italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

:root {
  --saito-white: #fff;
  --saito-cta-logo: var(--saito-white);
  --saito-gray-050: #f2f2f2;
  --saito-gray-100: #e4e4e4;
  --saito-gray-150: #d7d7d7;
  --saito-gray-200: #c9c9c9;
  --saito-gray-250: #bcbcbc;
  --saito-gray-300: #aeaeae;
  --saito-gray-350: #a1a1a1;
  --saito-gray-400: #939393;
  --saito-gray-450: #868686;
  --saito-gray-500: #787878;
  --saito-gray-550: #6b6b6b;
  --saito-gray-600: #5d5d5d;
  --saito-gray-650: #505050;
  --saito-gray-700: #424242;
  --saito-gray-750: #353535;
  --saito-gray-800: #272727;
  --saito-gray-850: #1a1a1a;
  --saito-gray-900: #0c0c0c;
  --saito-gray-950: #000000;
  --saito-black: #000;

  --saito-red: #f71f3d;
  --saito-red-dark: #e8001e;
  --saito-green: #3df71f;
  --saito-orange: #ff8235;
  --saito-orange-dark: #e57631;
  --saito-pink: #e98eaf;
  --saito-yellow-light: #e9ce93;

  /* Palette layer: themes can override these, while legacy --saito-* tokens keep working */
  --palette-primary: var(--saito-orange);
  --palette-primary-dark: var(--saito-orange-dark);
  --palette-on-primary: var(--saito-white);
  --palette-secondary: var(--saito-yellow-light);
  --palette-on-secondary: var(--saito-white);
  --palette-bg: #fff9f9;
  --palette-bg-inverse: #4e4e4e;
  --palette-surface-1: rgba(102, 102, 102, 0.125);
  --palette-surface-2: rgba(102, 102, 102, 0.2);
  --palette-surface-3: rgba(68, 68, 68, 0.33);
  --palette-surface-inverse: rgba(255, 255, 255, 0.85);
  --palette-outline: color-mix(in srgb, var(--saito-gray-200) 73%, transparent);
  --palette-outline-strong: var(--saito-gray-750);
  --palette-shadow: var(--saito-gray-900);
  --palette-texture-overlay: url(/saito/img/tiled-logo.svg);
  --palette-bg-gradient:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--palette-bg) 94%, var(--saito-white)) 0%,
      color-mix(in srgb, var(--palette-bg) 98%, var(--saito-orange)) 46%,
      var(--palette-bg) 100%
    );
  --palette-surface-gradient:
    linear-gradient(180deg, color-mix(in srgb, var(--palette-surface-1) 92%, var(--saito-white)), var(--palette-surface-1));
  --palette-overlay-gradient:
    linear-gradient(180deg, color-mix(in srgb, var(--palette-bg) 94%, var(--saito-white)), var(--palette-bg));

  --dreamscape:
    linear-gradient(125deg, #e8001e 30%, #0001 55%, #ff8235 80%),
    linear-gradient(40deg, #f7009b 15%, #f71f3d 25%, #f71f3d 65%, #e98eaf 75%, #0000),
    linear-gradient(180deg, #e9ce93, #f71f3d);

  --saito-primary: var(--palette-primary);
  --saito-primary-dark: var(--palette-primary-dark);
  --saito-primary-text: var(--palette-on-primary);
  --saito-primary-background: linear-gradient(
      45deg,
      var(--saito-primary) 0%,
      var(--saito-secondary) 55%,
      var(--saito-primary) 100%
    )
    transparent no-repeat left top / 400% auto;

  --saito-secondary: var(--palette-secondary);
  --saito-secondary-text: var(--palette-on-secondary);

  --saito-background-color: var(--palette-bg);
  --saito-background-color-inverse: var(--palette-bg-inverse);
  --saito-canvas-background: var(--palette-bg-gradient);

  /* panels, tables that sit above the background */
  --saito-surface-color: var(--palette-surface-1);
  --saito-surface-text: var(--saito-font-color);
  --saito-surface-hover: var(--palette-surface-2);
  --saito-surface-selected: var(--palette-surface-3);
  --saito-surface-inverse: var(--palette-surface-inverse);
  --saito-surface-inverse-text: rgba(0, 0, 0, 0.85);

  --saito-highlight: #6662;
  --saito-highlight-heavy: #4445;

  /* Background Shim Colors */
  --background-color-shim-light: color-mix(in srgb, var(--saito-black) 40%, transparent);
  --background-color-shim-normal: color-mix(in srgb, var(--saito-black) 50%, transparent);
  --background-color-shim-dark: color-mix(in srgb, var(--saito-black) 70%, transparent);
  --saito-overlay-backdrop: var(--background-color-shim-normal);
  --saito-overlay-backdrop-stacked: var(--background-color-shim-light);
  --saito-overlay-panel-bg: var(--saito-background-color);
  --saito-overlay-panel-surface-low: var(--palette-bg);
  --saito-overlay-panel-surface: color-mix(in srgb, var(--palette-bg) 92%, var(--saito-black));
  --saito-overlay-panel-background:
    linear-gradient(145deg, var(--saito-overlay-panel-surface-low), var(--saito-overlay-panel-surface));
  --saito-overlay-panel-border: color-mix(in srgb, var(--border-color-general-dividers) 76%, transparent);
  --saito-overlay-panel-border-highlight: color-mix(in srgb, var(--saito-white) 36%, transparent);
  --saito-overlay-panel-shadow:
    var(--saito-box-shadow-high), inset 0 1px 0 var(--saito-overlay-panel-border-highlight);
  --saito-modal-background: var(--saito-overlay-panel-background);
  --saito-modal-texture: var(--palette-texture-overlay);
  --saito-modal-border: var(--saito-overlay-panel-border);
  --saito-modal-shadow: var(--saito-overlay-panel-shadow);

  --saito-heart-animation: url('/redsquare/images/heart-orange.png');

  /* Main Theme */
  --saito-width: 1200px;
  --saito-header-height: 7rem;
  --saito-header-color: var(--saito-primary);
  --saito-header-background: var(--dreamscape);

  /* Box Shadows */
  --saito-box-shadow-low: 0px 1px 2px color-mix(in srgb, var(--palette-shadow) 30%, transparent);
  --saito-box-shadow: 1px 2px 3px color-mix(in srgb, var(--palette-shadow) 50%, transparent);
  --saito-box-shadow-high:
    0px 12px 17px 2px hsla(0, 0%, 0%, 0.14), 0px 5px 22px 4px hsla(0, 0%, 0%, 0.12),
    0px 7px 8px -4px hsla(0, 0%, 0%, 0.2);
  --saito-elevation-0: none;
  --saito-elevation-1: var(--saito-box-shadow-low);
  --saito-elevation-2: var(--saito-box-shadow);
  --saito-elevation-3: var(--saito-box-shadow-high);

  /* Fonts */
  --saito-font: 'visuelt-light';
  --saito-font-medium: 'visuelt-medium';
  --saito-font-heavy: 'visuelt-black';
  --saito-font-monospace: monospace;

  --font-size-h1: 5rem;
  --font-size-h2: 4.5rem;
  --font-size-h3: 4rem;
  --font-size-h4: 3.5rem;
  --font-size-h5: 2.5rem;
  --font-size-h6: 2rem;
  --font-size-large: 2rem;
  --font-size-medium: 1.5rem;
  --font-size-tiny: 1.3rem;

  --saito-font-color: var(--saito-font-color-primary);
  --saito-font-color-primary: var(--saito-gray-750);
  --saito-font-color-secondary: var(--saito-gray-600);
  --saito-font-color-heavy: var(--saito-gray-850);
  --saito-font-color-light: var(--saito-font-color-secondary);
  --saito-font-color-inverse: #e6e6e6;

  /* Border Padding */
  --saito-border-color-light: var(--saito-gray-850);
  --saito-border-color: var(--palette-outline);
  --saito-border-color-dark: var(--saito-gray-750);
  --saito-border-radius: 0.5rem;
  --saito-radius-sm: 0.35rem;
  --saito-radius-md: var(--saito-border-radius);
  --saito-radius-lg: 1.2rem;
  --saito-radius-full: 999px;

  --saito-space-xs: 0.5rem;
  --saito-space-sm: 0.75rem;
  --saito-space-md: 1rem;
  --saito-space-lg: 1.6rem;
  --saito-space-xl: 2rem;
  --saito-space-xxl: 3rem;

  --border-padding-normal: 1rem;
  --border-padding-wide: 2rem;

  /* Borders */
  --border-thickness-thin: 1px;
  --border-thickness-medium: 2px;
  --border-thickness-thick: 3px;
  --border-thickness-fat: 5px;
  --border-thickness: var(--border-thickness-thin);
  --border-color-general-dividers: var(--palette-outline-strong);

  /* Component semantics */
  --saito-focus-ring: 0 0 0 3px color-mix(in srgb, var(--saito-primary) 30%, transparent);
  --saito-button-primary-bg: var(--saito-primary);
  --saito-button-primary-bg-hover: var(--saito-primary-dark);
  --saito-button-primary-fg: var(--saito-primary-text);
  --saito-button-primary-border: var(--saito-primary);
  --saito-button-radius: var(--saito-border-radius);
  --saito-button-secondary-bg: var(--saito-background-color);
  --saito-button-secondary-bg-hover: var(--saito-primary);
  --saito-button-secondary-fg: var(--saito-primary);
  --saito-button-secondary-fg-hover: var(--saito-primary-text);
  --saito-button-secondary-border: var(--saito-primary);
  --saito-button-disabled-bg: var(--saito-background-color);
  --saito-button-disabled-fg: var(--saito-font-color-light);
  --saito-button-disabled-border: var(--saito-font-color-light);

  --saito-input-bg: var(--saito-surface-color);
  --saito-input-bg-focus: var(--saito-surface-hover);
  --saito-input-fg: var(--saito-font-color);
  --saito-input-fg-heavy: var(--saito-font-color-heavy);
  --saito-input-border: var(--saito-border-color);
  --saito-input-border-focus: var(--saito-primary);
  --saito-input-placeholder: var(--saito-font-color-secondary);
  --saito-input-radius: var(--saito-radius-md);
  --saito-input-shadow: var(--saito-elevation-0);
  --saito-input-font: inherit;

  --saito-post-overlay-bg: var(--saito-background-color);
  --saito-post-overlay-border: transparent;
  --saito-post-overlay-shadow: none;
  --saito-post-textarea-bg: var(--saito-background-color);
  --saito-post-textarea-bg-focus: var(--saito-surface-hover);
  --saito-post-controls-bg: transparent;
  --saito-post-control-color: var(--saito-primary);
  --saito-post-button-radius: var(--saito-radius-full);
  --saito-feed-bg: var(--saito-background-color);

  --saito-table-row-bg: var(--saito-surface-hover);
  --saito-table-row-bg-hover: var(--saito-surface-selected);
  --saito-table-header-bg: var(--saito-surface-selected);
  --saito-table-border: var(--saito-border-color-light);
  --saito-table-header-transform: capitalize;
  --saito-table-header-size: inherit;
  --saito-table-header-letter-spacing: normal;

  --saito-card-bg: color-mix(in srgb, var(--saito-gray-700) 27%, transparent);
  --saito-card-bg-hover: var(--saito-surface-hover);
  --saito-card-border-initial: transparent;
  --saito-card-border: var(--saito-border-color);
  --saito-card-shadow: var(--saito-elevation-0);
  --saito-card-shadow-hover: var(--saito-elevation-2);
  --saito-card-transform-hover: none;

  --saito-chip-bg: color-mix(in srgb, var(--saito-black) 67%, transparent);
  --saito-chip-fg: var(--saito-white);
  --saito-chip-border: color-mix(in srgb, var(--saito-white) 53%, transparent);
  --saito-muted-color: var(--saito-gray-500);

  --saito-status-success: var(--saito-green);
  --saito-status-danger: var(--saito-red);
  --saito-status-warning: var(--saito-orange);
  --saito-status-info: var(--saito-primary);
  --saito-status-code-fg: #3ea63e;
  --saito-status-code-bg: var(--saito-black);
  --saito-control-ring-shadow: 0 0 0 2px var(--saito-background-color);

  --saito-link-preview-bg: var(--saito-card-bg);
  --saito-link-preview-border: var(--saito-card-border);

  --saito-menu-item-active-bg: var(--saito-surface-selected);
  --saito-menu-item-hover-bg: var(--saito-primary);
  --saito-menu-item-hover-fg: var(--saito-primary-text);
  --saito-menu-icon-color: var(--saito-font-color);
  --saito-menu-icon-hover-color: var(--saito-primary-text);

  --saito-notification-bg: var(--saito-primary);
  --saito-notification-fg: var(--saito-primary-text);
  --saito-notification-hover-bg: var(--saito-surface-selected);
  --saito-notification-online-bg: var(--saito-status-success);
  --saito-notification-busy-bg: var(--saito-muted-color);
  --saito-notification-ring: var(--saito-background-color);

  --saito-alert-backdrop: var(--background-color-shim-dark);
  --saito-alert-bg: var(--saito-overlay-panel-background);
  --saito-alert-fg: var(--saito-font-color);
  --saito-alert-border: var(--saito-overlay-panel-border);
  --saito-alert-shadow: var(--saito-overlay-panel-shadow);

  --saito-header-menu-bg: var(--saito-overlay-panel-background);
  --saito-header-menu-border: var(--saito-overlay-panel-border);
  --saito-header-menu-shadow: var(--saito-overlay-panel-shadow);
  --saito-floating-action-bg: var(--saito-primary);
  --saito-floating-action-fg: var(--saito-primary-text);
  --saito-floating-action-shadow: 1px 1px 2px color-mix(in srgb, var(--palette-shadow) 45%, transparent);
  --saito-floating-menu-bg: var(--saito-overlay-panel-bg);
  --saito-floating-menu-border: var(--saito-overlay-panel-border);

  --saito-file-transfer-panel-bg: var(--saito-overlay-panel-background);
  --saito-file-transfer-panel-border: var(--saito-overlay-panel-border);
  --saito-file-transfer-panel-shadow: var(--saito-overlay-panel-shadow);

  --saito-tooltip-icon-color: var(--saito-primary);
  --saito-tooltip-bg: var(--saito-overlay-panel-background);
  --saito-tooltip-fg: var(--saito-font-color-heavy);
  --saito-tooltip-border: var(--saito-overlay-panel-border);
  --saito-tooltip-shadow: var(--saito-overlay-panel-shadow);
  --saito-tooltip-radius: var(--saito-radius-md);

  --saito-chat-background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--saito-background-color) 96%, var(--saito-primary) 4%),
      color-mix(in srgb, var(--saito-background-color) 98%, var(--saito-surface-hover) 2%)
    );
  --saito-chat-background-image: var(--palette-texture-overlay);
  --saito-chat-shell-bg: var(--saito-background-color);
  --saito-bubble-background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--saito-background-color) 96%, var(--saito-primary) 4%),
      color-mix(in srgb, var(--saito-background-color) 98%, var(--saito-surface-hover) 2%)
    );
  --saito-bubble-shadow:
    0 10px 24px color-mix(in srgb, var(--palette-shadow) 42%, transparent),
    0 2px 7px color-mix(in srgb, var(--palette-shadow) 30%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--saito-primary) 14%, transparent);
  --saito-chat-active-bg: var(--saito-card-bg);
  --saito-chat-header-shadow: var(--saito-elevation-1);
  --saito-chat-notification-gradient: linear-gradient(
    90deg,
    color-mix(in srgb, var(--saito-black) 20%, transparent) 47%,
    var(--saito-primary),
    color-mix(in srgb, var(--saito-black) 20%, transparent) 53%
  );

  --saito-calendar-event-border: var(--saito-border-color);
  --saito-calendar-muted-color: var(--saito-font-color-secondary);
  --saito-calendar-muted-past-color: color-mix(
    in srgb,
    var(--saito-font-color-secondary) 68%,
    transparent
  );
  --saito-calendar-event-dot-bg: var(--saito-status-danger);

  --saito-wallet-panel-bg: var(--saito-overlay-panel-background);
  --saito-wallet-panel-fg: var(--saito-font-color);
  --saito-wallet-muted-color: var(--saito-muted-color);
  --saito-wallet-error-color: var(--saito-status-danger);
  --saito-wallet-nft-summary-bg: color-mix(in srgb, var(--saito-status-warning) 18%, var(--saito-surface-color));
  --saito-wallet-nft-payout-bg: color-mix(in srgb, var(--saito-status-info) 14%, var(--saito-surface-color));
  --saito-wallet-nft-total-bg: color-mix(in srgb, var(--saito-secondary) 24%, var(--saito-surface-color));
  --saito-file-transfer-bg: var(--saito-chip-bg);
  --saito-file-transfer-fg: var(--saito-chip-fg);
  --saito-file-transfer-border: var(--saito-chip-border);
  --saito-crypto-transfer-bg: var(--saito-gray-900);
  --saito-crypto-transfer-fg: var(--saito-white);
  --saito-crypto-transfer-border: color-mix(in srgb, var(--saito-white) 45%, transparent);

  --saito-empty-state-icon-color: var(--saito-font-color-light);
  --saito-empty-state-title-color: var(--saito-font-color-heavy);
  --saito-empty-state-text-color: var(--saito-font-color-light);
}
/***********************/

.purchase-container {
  background: var(--saito-background-color);
  display: flex;
  justify-content: space-between;
  padding: 3rem;
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 3rem;
  gap: 1rem;
}

.purchase-container .footer-note {
  font-size: var(--font-size-medium);
  font-style: italic;
}

.loader-interstitial-overlay img {
  height: 15rem;
}

.loader-interstitial-overlay .container-header {
  font-size: 3rem;
}

.loader-interstitial-overlay .container-body {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.purchase-crypto-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
  overflow-y: auto;
}

.purchase-crypto-item {
  flex: 0 1 16rem;
  max-width: 18rem;
  aspect-ratio: 1 / 1;
  padding: 1rem;
  border: var(--border-thickness-medium) solid var(--saito-primary-dark);
  border-radius: var(--saito-border-radius);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  cursor: pointer;
  background-color: var(--saito-background-color);
  color: var(--saito-font-color);
  font-weight: bold;
  transition: background-color 0.2s;
}

.purchase-crypto-logo-container {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.purchase-crypto-item:hover {
  background: var(--saito-primary-dark);
  color: var(--saito-primary-text);
  text-shadow: 1px 1px 2px var(--saito-black);
}

.purchase-select-crypto-msg {
  text-align: center;
}

#purchase-crypto-generate {
  width: fit-content;
  align-self: end;
}

.purchase-crypto-item input:hover {
  cursor: pointer;
}

.saito-purchase-deposit-header {
  margin: 0 0 5px 0;
  font-weight: 600;
  font-size: 3rem;
  color: var(--saito-primary);
}

.payment-box {
  padding: 2.5rem;
  width: 420px;
  height: 600px;
  border-radius: var(--saito-radius-lg);
  box-shadow: var(--saito-overlay-panel-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  & .product-desc {
    line-height: 1.4;
  }

  & .price {
    font-weight: 700;
    font-size: 3rem;
  }

  & .instructions {
    display: flex;
    gap: 1.5rem;
    width: 180px;
  }

  & .details {
    border: var(--border-thickness-thin) solid var(--saito-border-color);
    border-radius: var(--saito-radius-lg);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  & .help .support-email {
    font-weight: bold;
  }

  & .timer {
    font-weight: 600;
    color: var(--saito-primary);
  }

  & .extend-timer {
    color: var(--saito-primary);
    cursor: pointer;
    border-bottom: 1px dashed;
  }
  & .extend-timer:hover {
    color: var(--saito-secondary);
    cursor: pointer;
    border-bottom: 1px solid;
  }
}

/*  Numeric entry */
.amount-selection-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
}

.crypto-box {
  display: flex;
  font-size: 2rem;
  min-height: 4rem;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.expected_amount {
  padding: 1rem 1.5rem;
  font-size: 1.6rem;
  flex-grow: 1;
  color: var(--saito-font-color);
  border-radius: var(--saito-border-radius);
  height: 41px;
  background-color: var(--saito-background-color);
  border: var(--border-thickness-thin) solid var(--saito-primary);
  max-width: 19rem;
}

input.input-amount {
  width: unset;
  flex-grow: 1;
  max-width: 19rem;
}

.input-entry {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.txsig {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  line-height: 2rem;
}

.txsig .sig-header {
  font-size: var(--font-size-medium);
  flex-grow: 1;
}

.txsig .sig {
  font-size: var(--font-size-tiny);
  word-wrap: anywhere;
  text-align: left;
  max-width: 75%;
}

.saito-purchase-error {
  font-size: 2rem;
  display: flex;
  flex-direction: column;

  & .container-header {
    font-size: 4rem;
  }

  & .container-footer {
    font-size: 1.8rem;
    font-style: italic;
  }
}

@media screen and (max-width: 600px) {
  .purchase-crypto-list {
    font-size: smaller;
  }
  .purchase-crypto-item .crypto-logo {
    width: 50%;
    height: auto;
  }
  .crypto-box {
    gap: 1rem;
  }

  .expected_amount,
  input.input-amount {
    max-width: 13rem;
    padding: 1rem;
  }
}
.saito-scheduler {
  min-width: 50rem;
  background-color: #fff;
  border-radius: 1rem;
  padding: 3rem;
}

input#schedule-datetime-input,
.saito-scheduler-natural-time {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-color-general-dividers);
  border-radius: 0;
  height: 3rem;
  line-height: 3rem;
}

/*  Responsive */

@media screen and (max-width: 503px) {
  .saito-scheduler {
    min-width: auto;
  }
}

@media screen and (max-width: 396px) {
}
.game-crypto-transfer-manager-container {
  max-width: 95vw;
  align-items: center;

  color: var(--saito-crypto-transfer-fg);
  background: var(--saito-crypto-transfer-bg);
  border-radius: var(--saito-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: auto;
  padding: 3rem;
  min-width: 55rem;
}

.game-crypto-transfer-manager-container .token-dropdown {
  color: var(--saito-crypto-transfer-fg);
  background: var(--saito-crypto-transfer-bg);
}

.saito-overlay:has(.game-crypto-transfer-manager-container) {
  background: none;
}

.game-crypto-transfer-manager-container .auth_title {
  margin: 0rem;
}

.ignore {
  font-size: 2rem;
}

input[type='checkbox'].ignore_checkbox {
  border: var(--border-thickness-thin) solid var(--saito-crypto-transfer-border);
  vertical-align: bottom;
  position: relative;
}

.game-crypto-transfer-manager-container .stake-input-container {
  position: relative;
  background: inherit;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1rem;
  width: max-content;
  align-items: center;
}

#approve-crypto-request-container .stake-input-container {
  margin-bottom: 3.5rem;
}

.game-crypto-transfer-manager-container .stake-input-container.wallet-balance {
  margin-bottom: 1.5rem;
}

.game-crypto-transfer-manager-container .stake-input-container.hidden {
  display: none;
}

.stake-input-error {
  position: absolute;
  display: none;
  color: var(--saito-status-danger);
  font-size: 1.6rem;
  top: 105%;
  left: 1rem;
  font-weight: bolder;
}

#approve-crypto-request-container .stake-input-error {
  top: 140%;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type='number'] {
  -moz-appearance: textfield;
}

.game-crypto-transfer-manager-container .stake {
  background: none;
  border: none;
  color: var(--saito-crypto-transfer-fg);
  border-radius: 0;
  border-bottom: var(--border-thickness-thin) solid var(--saito-crypto-transfer-border);
  text-align: center;
  padding: 1rem;
  font-size: 4rem;
  display: inline-block;
  width: 80%;
  max-width: 20rem;
}

.stake-input-container .crypto_msg {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-style: italic;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  right: 0;
  white-space: nowrap;
  gap: 1.5rem;
}

.stake-input-container .crypto-ticker {
  position: absolute;
  right: 0;
  bottom: 0;
}

.auth_title {
  font-size: 1.7em;
}

.game-crypto-transfer-manager-container .description p {
  margin-top: 2rem;
}
.game-crypto-transfer-manager-container .description {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 2.8rem;
}

.crypto_transfer_btn.secondary {
  background: none;
  color: var(--saito-crypto-transfer-fg);
  border: var(--border-thickness-thin) solid var(--saito-crypto-transfer-border);
}

#cryptoManagerFeedback {
  display: none;
}

.crypto-stake-offer-btn-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-evenly;
}

.crypto_amount_btn {
  margin-left: auto;
  margin-right: auto;
  width: auto;
  line-height: 4rem;
  margin-top: 1rem;
}

.commentary {
  font-size: 1.6rem;
  line-height: 2.5rem;
  cursor: pointer;
}

.crypto_transfer_btn.hidden {
  display: none;
}

.crypto-stake-confirm-container {
  position: relative;
  display: flex;
  flex-direction: row;
  padding: 0rem;
  gap: 1rem;
  width: fit-content;
  min-width: 35rem;
}

.crypto-stake-confirm-container input {
  background: none;
}

.crypto_msg {
  font-size: 1.6rem;
}

.select_max,
.select_min,
.select_match {
  cursor: pointer;
}

.select_match.nomatch {
  order: 1;
  cursor: not-allowed;
  opacity: 50%;
}

.amount {
  font-size: 2.4em;
  margin: auto;
}
.from_address {
  margin-bottom: 20px;
}
.send_to {
  font-size: 1.4em;
}
.from_address,
.to_address {
  font-size: 1.6em;
  text-overflow: ellipsis;
  overflow: hidden;
}
.game-crypto-transfer-manager-container .spinner {
  max-width: 10rem;
  margin-left: auto;
  margin-right: auto;
  width: 10rem;
  height: 10rem;
}

.game-crypto-transfer-manager-container .game-crypto-icon {
  font-size: 8rem;
  display: none;
}

.crypto-transfer-countdown {
  margin-left: auto;
}

.crypto-transfer-countdown span {
  font-family: monospace;
}

.counterparty-details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counterparty-details .saito-user {
  width: unset;
  align-items: self-end;
}

.counterparty-details .saito-user > .saito-address {
  color: var(--saito-crypto-transfer-fg);
  font-size: 1.2em;
}

.counterparty-details .saito-identicon-box {
  width: 5rem;
  height: 5rem;
}

.counterparty-details .saito-userline {
  text-transform: unset;
}

.history-to-publickey {
  text-align: left;
  line-height: 2.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  width: 80%;
}

.history-to-address-container {
  display: flex;
  flex-direction: row;
  width: 80%;
  justify-content: flex-end;
}

.history-to-address-container .history-to-address {
  line-height: 2.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  width: 100%;
}

.history-copy-address {
  line-height: 2.2rem;
  cursor: pointer;
}
/* ----------------------------------------------------------------
buttons -- Primary & Secondary -- difference is color pattern
-----------------------------------------------------------------*/

button,
.saito-button-primary,
.saito-button-secondary {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  letter-spacing: 1px;
  font-size: 1.8rem;
  border-radius: var(--saito-button-radius);
  cursor: pointer;
  border: var(--border-thickness-thin) solid var(--saito-button-primary-border);
  text-transform: capitalize;
  padding: var(--saito-space-md);
  margin: var(--saito-space-xs);
  white-space: nowrap;
  min-width: 18rem;
  min-height: 4.5rem;
  max-width: 100%;
}

button,
.saito-button-primary {
  background: var(--saito-button-primary-bg);
  color: var(--saito-button-primary-fg);
}

.saito-button-secondary {
  color: var(--saito-button-secondary-fg);
  background: var(--saito-button-secondary-bg);
  border-color: var(--saito-button-secondary-border);
}

button:focus,
.saito-button-primary:focus,
.saito-button-secondary:focus {
  outline: none;
}

button:focus-visible,
.saito-button-primary:focus-visible,
.saito-button-secondary:focus-visible {
  box-shadow: var(--saito-focus-ring);
}

.saito-button-primary.disabled,
.saito-button-primary[disabled] {
  background: var(--saito-button-disabled-bg);
  color: var(--saito-font-color-primary);
  border: var(--border-thickness-thin) solid var(--saito-font-color-primary);
  cursor: not-allowed;
}

.saito-button-secondary.disabled,
.saito-button-secondary[disabled] {
  background: var(--saito-button-disabled-bg);
  color: var(--saito-button-disabled-fg);
  border: var(--border-thickness-thin) solid var(--saito-button-disabled-border);
  cursor: not-allowed;
}

button:hover,
.saito-button-primary:hover {
  background: var(--saito-button-primary-bg-hover);
}

.saito-button-secondary:hover {
  background: var(--saito-button-secondary-bg-hover);
  color: var(--saito-button-secondary-fg-hover);
}

button.small,
.saito-button-primary.small,
.saito-button-secondary.small {
  padding: 0.75rem 0.7rem;
  font-size: 1.4rem;
  min-width: 4.5rem;
  min-height: 2.5rem;
}

.saito-button-secondary.small {
  color: unset;
  border-color: unset;
}

.saito-button-secondary.small:hover {
  background: var(--saito-surface-selected);
  color: unset;
}

button.fat,
.saito-button-primary.fat,
.saito-button-secondary.fat {
  height: 6rem;
  font-size: 2rem;
}

button i {
  margin: 0 0.5rem;
}

.button-mouse-over {
  transform-origin: center;
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease;
  will-change: transform;
}

.button-mouse-over:hover {
  animation: button-mouse-over-pulse 0.9s ease-in-out infinite;
  transform: scale(1.06);
}

@keyframes button-mouse-over-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 color-mix(in srgb, var(--saito-primary) 0%, transparent));
  }

  50% {
    filter: drop-shadow(0 0 0.45rem color-mix(in srgb, var(--saito-primary) 30%, transparent));
  }
}

/*******************************
 Arrange multiple buttons
 *******************************/
.saito-button-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  gap: 2rem;
  margin-top: 1rem;
}

.saito-button-row .saito-anchor {
  margin-left: 1rem;
  margin-right: auto;
}

.saito-button-row button,
.saito-button-row .saito-button-secondary,
.saito-button-row .saito-button-primary {
  margin: 0;
}

.saito-button-row.auto-size button,
.saito-button-row.auto-size .saito-button-secondary,
.saito-button-row.auto-size .saito-button-primary {
  min-width: unset;
  flex-grow: 1;
  width: 35%;
  height: 100%;
  white-space: break-spaces;
}

/*******************************
 Text buttons
 *******************************/
.saito-anchor {
  cursor: pointer;
  transition: color 0.1s;
}

.saito-anchor span,
span.saito-anchor {
  border-bottom: 1px dotted;
  line-height: 2.5rem;
}

.saito-anchor.clicked {
  color: var(--saito-primary-dark);
}

.saito-anchor:hover {
  color: var(--saito-primary);
}

.saito-menu-select-subtle > div,
.saito-menu-select-subtle > li {
  cursor: pointer;
  transition: all 0.2s;
}

.saito-menu-select-subtle > div:not(.disabled-option):hover,
.saito-menu-select-subtle > li:not(.disabled-option):hover {
  background-color: var(--saito-surface-selected);
  color: var(--saito-font-color-heavy);
}

.saito-menu-select-heavy > div,
.saito-menu-select-heavy > li {
  cursor: pointer;
  transition: all 0.2s;
}

.saito-menu-select-heavy > div:not(.disabled-option):hover,
.saito-menu-select-heavy > li:not(.disabled-option):hover {
  background-color: var(--saito-primary);
  color: var(--saito-primary-text);
}

.saito-menu-select-heavy > .disabled-option,
.saito-menu-select-subtle > .disabled-option {
  color: var(--saito-gray-600);
  cursor: default;
}

@media (max-width: 600px) {
  .saito-button-secondary {
    min-width: 10rem;
  }

  button,
  .saito-button-primary {
    /* controls main post buttons */
    min-width: 12rem;
  }

  /* This allows row to become column */
  .saito-button-row {
    flex-wrap: wrap;
    gap: var(--saito-space-md);
  }

  .saito-button-row button,
  .saito-button-row .saito-button-secondary,
  .saito-button-row .saito-button-primary {
    min-width: unset;
    flex-grow: 1;
    width: 35%; /* Set this to > 49% to force buttons to stack vertically */
  }

  .saito-button-row.mobile-column,
  .saito-button-row.auto-size {
    flex-direction: column;
  }

  .saito-overlay-form > button[type='button'],
  .saito-button-row > button[type='button'] {
    width: 100%;
  }

  .saito-button-row.force-row {
    flex-direction: row;
  }
}

/* for dynamically added faucent button */
.get-saito-tokens {
  display: flex;
}

.saito-calendar {
  border-radius: var(--saito-border-radius);
  width: 100%;
  display: grid;
  grid-template-rows: min-content min-content min-content;
  flex-direction: column;
}

.saito-modal-calendar-tabs {
  display: flex;
  margin-bottom: 1rem;
}

.saito-tab-button {
  border: none;
  padding: 1rem;
  font-size: 1.6rem;
  cursor: pointer;
  flex: 1;
  text-align: center;
  margin-right: 1rem;
  border-radius: var(--saito-border-radius);
  border: 1px solid var(--saito-primary);
}

.saito-tab-button.active {
  color: var(--saito-primary-text);
  background-color: var(--saito-primary);
}

.saito-tab-button:hover {
  background-color: var(--saito-primary);
  color: var(--saito-primary-text);
}

.saito-calendar-events-details {
  clear: both;
  font-size: 1.5rem;
  color: var(--saito-font-color);
  font-weight: bold;
  max-height: 50vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.saito-calendar-events-details#tab2 {
  display: none;
}

.saito-calendar-event-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
}

.saito-calendar-event-actions button {
  margin-bottom: 1rem;
}

.saito-modal.saito-modal-calendar {
  display: grid;
  /* grid-template-columns: 30rem 1fr; */
  width: 100%;
  padding: 4rem;
  grid-gap: 0;
  margin: 0;
}

.saito-modal-calendar-content {
  /*    padding-right: 3rem; */
}

.saito-modal-calendar-title {
  font-size: 5rem;
  margin-bottom: 1rem;
}
.saito-modal-calendar-note {
  font-size: 1.5rem;
  display: block;
}

.saito-calendar-events-date {
  float: right;
  padding: 0.5rem;
  color: var(--saito-calendar-muted-color);
  font-size: 1.5rem;
  font-style: italic;
}

.saito-calendar-event {
  padding: 1rem;
  border-radius: var(--saito-radius-md);
  border: var(--border-thickness-thin) solid var(--saito-calendar-event-border);
  width: 95%;
}

.saito-calendar-month {
  display: grid;
  grid-template-columns: min-content max-content min-content;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.saito-calendar-month i {
  font-size: 1.5rem;
  cursor: pointer;
  padding: 1px 1rem 3px;
}

.saito-calendar-date {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  gap: 1rem;
}

.saito-calendar-date span {
  font-size: 2.3rem;
}

.saito-calendar-weekdays div {
  font-size: 1.6rem;
  text-align: center;
}

.saito-calendar-days,
.saito-calendar-weekdays {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-gap: 3px;
}
.saito-calendar-day {
  min-height: 3rem;
  font-size: 1.2rem;
  padding: 8px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.saito-calendar-day-date {
  margin-right: 0.2rem;
}

.saito-calendar-day-icon {
  padding-right: 0.75rem;
  background: var(--saito-calendar-event-dot-bg);
}

.saito-calendar-days div:hover {
  background-color: var(--saito-primary);
  color: var(--saito-primary-text);
  border-radius: var(--saito-border-radius);
}

.prev-date {
  color: var(--saito-calendar-muted-past-color);
}

.next-date {
  color: var(--saito-calendar-muted-past-color);
}

.today {
  background-color: var(--saito-primary);
  color: var(--saito-primary-text);
  border-radius: var(--saito-border-radius);
}
.chat-manager {
  min-height: 25%;
  /*flex: 1;*/
  position: relative;
  display: grid;
  grid-template-rows: minmax(4.2rem, auto) 1fr;
  user-select: none;
}

.chat-manager .saito-userline {
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  min-width: 0;
  height: auto;
  line-height: 1.55;
}

.chat-manager .saito-userline .img-prev {
  max-width: 100%;
  cursor: pointer;
}

.chat-manager-header {
  min-width: 0;
  padding: 0 0.4rem;
}

.chat-manager .chat-manager-title {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.chat-popup-img-overlay-box {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--saito-border-color);
  border-radius: var(--saito-border-radius);
  background-image: var(--saito-chat-background-image);
  background-color: var(--saito-chat-background);
}

.chat-popup-img-enhanced {
  max-height: 80vh;
  max-width: 95vw;
  border: 1px solid var(--saito-border-color);
  border-radius: var(--saito-border-radius);
}

.chat-manager .saito-user {
  grid-template-columns: 4rem minmax(0, 1fr) min-content;
  grid-template-rows: 2rem 1.8rem;
  align-items: center;
  column-gap: 1.1rem;
  padding: 0.75rem 0.8rem;
  border-radius: var(--saito-radius-md);
  overflow: hidden;
  min-height: 5.35rem;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.chat-manager .saito-identicon-box {
  width: 4rem;
  height: 4rem;
}

.chat-manager .online-status-indicator:after,
.chat-manager .stun .online-status-indicator i {
  top: 3.85rem;
  left: 3.85rem;
}

.chat-manager .saito-address {
  min-width: 0;
  max-width: 100%;
  align-self: end;
}

.chat-manager .chat-group-name {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: inherit;
}

.chat-manager .saito-user:hover {
  background-color: var(--saito-card-bg-hover);
  color: var(--saito-font-color-heavy);
}

.chat-manager .saito-user:hover .saito-address {
  color: inherit;
}

.chat-manager .saito-user:hover .saito-userline {
  color: var(--saito-font-color-secondary);
}

.chat-manager-list {
  gap: 0.2rem;
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  max-height: 100%; /*calc(100% - 5rem);*/
  position: relative;
}

.chat-manager-list .saito-address {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.8rem;
}

.chat-manager-list .saito-userline {
  font-size: 1.32rem;
  line-height: 1.55;
}

.chat-manager-list.saito-sidebar-element {
  padding: 0.8rem;
  border: var(--border-thickness-thin) solid var(--saito-border-color);
}

.new-notification {
  background: var(--saito-chat-notification-gradient);
  background-size: 300%;
  animation: notificationAnimation 1.8s ease;
}

.new-notification .saito-chat-notifications {
  visibility: hidden;
}

@keyframes notificationAnimation {
  0% {
    background-position: 100%;
  }
  100% {
    background-position: 0%;
  }
}

.chat-popup .saito-notification-dot {
  min-width: 3.5rem;
  min-height: 3.5rem;
  bottom: 6rem;
  left: unset;
  right: 2rem;
  cursor: pointer;
}

.chat-popup.minimized .saito-notification-dot {
  min-height: unset;
  height: 100%;
  left: 0;
  bottom: 0;
  border-radius: 0;
  z-index: inherit;
}

.chat-popup .saito-notification-dot i,
.chat-popup .saito-notification-dot:hover .new-message-count {
  display: none;
}

.chat-popup .saito-notification-dot:hover i {
  display: block;
}

.chat-popup.minimized .saito-notification-dot:hover i {
  display: none;
}

.chat-popup.minimized .saito-notification-dot .new-message-count {
  display: block;
}

.chat-popup .link-preview {
  max-width: 40rem;
}

.chat-popup .link-info {
  padding: 1rem;
}

.chat-popup .saito-treated-link[data-link='local_link'] .link-img.has-picture {
  max-height: 10rem;
}

/* Chat teaser indicating said chat is open in a popup */
.saito-chat-active {
  background-color: var(--saito-chat-active-bg);
  color: var(--saito-font-color-secondary);
}

.chat-body blockquote {
  cursor: help;
}

/* Embedded chat container */

.chat-static {
  height: 100%;
  width: 100%;
  position: relative;
}

.chat-static .chat-minimizer-icon,
.chat-static .chat-maximizer-icon,
.chat-static .chat-container-close,
.chat-static .fa-comment-dots {
  display: none;
}

.chat-container {
  position: fixed;
  bottom: 0px;
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  background: var(--saito-chat-shell-bg);
  color: var(--saito-font-color);
  max-height: 100vh;
  min-width: 30rem;
  min-height: 20rem;
  height: 50rem;
  width: 36rem;
  border-radius: var(--saito-border-radius);
  z-index: 20;
  /* making z-index greater than overlay so that users
     can chat or send each other their crypto address without
     closing the withdraw overlay
  */
  /* So weird, at 15 it blocks the z-index 20 slide in menu*/
  /* reason: the slidein is child of saito header, so whatever z-index is assigned to saito header,
  the child (slidein menu) inherits it */
  box-shadow: var(--saito-elevation-2);
}

.chat-container,
.chat-container .chat-body,
.chat-container .chat-footer {
  transition: all 0.15s ease-in-out;
}

.chat-popup {
  display: grid;
  grid-template-rows: min-content 1fr min-content;
  grid-template-columns: 100%;
  align-items: center;
}

.chat-container.active {
  z-index: 21;
}

.chat-container.dragging {
  z-index: 22;
}

.chat-container.minimized {
  height: 3rem;
  min-height: unset;
  grid-template-rows: 30px auto;
}

.chat-container.minimized .chat-body,
.chat-container.minimized .chat-footer {
  height: 0;
  min-height: unset;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  /*
  This works but is a little abrupt
  display: none;
  */
}

.chat-container.minimized .chat-header {
  min-height: unset;
}

.chat-body img {
  /* If a small image, we don't want to zoom in
  but the width: 100% should keep it from being to big
   */
  max-width: fit-content;
  width: 100%;
}

.chat-header {
  z-index: inherit;
  min-height: 6rem;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  width: 100%;
  background-color: var(--saito-background-color);
}

.chat-header > .chat-header-nav {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  border-bottom: 1px solid var(--saito-border-color); /* border splitting the header on chat popup*/
  cursor: grab;
  font-size: 1.7rem;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  padding-left: 1rem;
  overflow: hidden; /* for extreme border radius */
}

.chat-header > .chat-header-nav > i {
  margin: 0;
  color: var(--saito-font-color-heavy); /* popup-button colour */
  font-size: 1.4rem;
  display: inline-block;
  position: relative;
  transition: all 0.2s;
  cursor: pointer;
  padding: 0.5rem;
  height: 100%;
  width: 2.4rem;
  text-align: center;
}

.chat-header > .chat-header-nav > i:hover {
  background-color: var(--saito-primary);
  color: var(--saito-primary-text);
}

.fix-me {
  cursor: pointer;
}

.chat-container.minimized .chat-header-nav {
  align-items: center;
  height: 3rem;
}

.chat-container.minimized .chat-header-nav > i {
  padding: 0.8rem 0.5rem;
}

.chat-header-info {
  height: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min-content;
  align-items: center;
  box-shadow: var(--saito-chat-header-shadow);
}

.chat-container.minimized .chat-header-info {
  display: none;
}

.chat-actions {
  display: flex;
  flex-direction: row-reverse;
}

.chat-action-icons {
  display: flex;
  flex-direction: row;
  height: 100%;
  align-items: center;
  font-size: 2rem;
  color: var(--saito-font-color-heavy); /* ellipsis */
}

.chat-action-item,
.chat-action-menu,
.chat-mobile-back {
  cursor: pointer;
  height: 4rem;
  width: 3.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
}

.chat-action-menu {
  width: 3rem;
}

.chat-action-item:hover,
.chat-action-menu:hover {
  background-color: var(--saito-primary);
  color: var(--saito-primary-text);
}

.chat-action-item:hover i,
.chat-action-menu:hover i {
}

/*.chat-header > i:last-child:hover {
  transform: rotate(90deg) scale(1.1);
}*/

.chat-header .chat-group {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: default;
  font-size: 1.7rem;
}

.chat-header .chat-group.saito-address {
  cursor: pointer;
}

.chat-header-nav .chat-details,
.chat-header-info .chat-details {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-left: 1rem;
  align-items: center;
}

.chat-header-nav .chat-details {
  display: none;
}

.chat-header-nav .chat-details .chat-group {
  max-width: 82%;
}

.chat-popup.minimized .chat-header .chat-header-nav .chat-details {
  display: flex;
}

.chat-mobile-back {
  display: none;
  font-size: 24px;
}

.chat-body {
  padding: 1rem;
  display: block;
  height: 100%;
  overflow: clip auto;
  background-image: var(--saito-chat-background-image);
  background-color: var(--saito-chat-background);
}

.chat-body > .saito-user {
  padding-bottom: 1.5rem;
  cursor: default;
  grid-template-rows: min-content 1fr;
  min-height: 5.5rem;
  gap: 0 2rem;
}

.chat-body .saito-user .saito-userline {
  /* others messages*/
  font-size: 1.6rem;
  padding: 0.75rem;
  padding-right: 3rem;
  border-radius: var(--saito-border-radius);
  background: var(--saito-bubble-background);
  box-shadow: var(--saito-bubble-shadow);
  margin-right: 1rem;
  height: fit-content;
  overflow: visible;
}

.chat-body .saito-user > .saito-address {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-family: var(--saito-font);
  color: var(--saito-font-color-light);
}

.chat-body .saito-user-self.saito-user {
  display: flex;
  justify-content: flex-end;
}

/* self's messages -- inverse of other people's messages */
.chat-body .saito-user-self.saito-user .saito-userline {
  box-shadow: var(--saito-bubble-shadow);
}

/* hide my own name */

.chat-body .saito-user-self.saito-user > .saito-address,
.chat-body .saito-user-self.saito-user > .saito-identicon-box {
  display: none;
}

.saito-mention.saito-address.treated {
  display: inline-block !important;
  margin: 0 8px 0 0;
}

/* Hide user names in 2-person chats */

.saito-dm-chat .chat-body .saito-user .saito-address {
  visibility: hidden;
  height: 0;
}

.chat-body .saito-identicon-box {
  align-self: end;
}

.chat-manager .saito-userline {
  color: var(--saito-font-color-secondary);
  font-style: normal;
}

.saito-time-stamp {
  font-size: 1.4rem;
  text-align: center;
  color: var(--saito-font-color-secondary);
  font-style: italic;
  margin: 3px 0;
}

.saito-chat-notice {
  color: var(--saito-font-color-secondary);
  font-style: italic;
}

.saito-chat-line-controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  grid-row: span 2;
}

.chat-message-line {
  position: relative;
  padding: 0.25rem;
  word-wrap: anywhere;
  white-space: normal;
}

.chat-message-line p {
  overflow: hidden;
  height: min-content;
}

.chat-message-line li {
  margin-left: 2rem;
}

.saito-userline-reply {
  display: none;
}

.chat-body .saito-userline {
  width: unset !important;
  min-width: 10rem;
  max-width: 600px;
}

.chat-message-line .saito-userline-reply {
  display: flex;
  position: absolute;
  flex-direction: row;
  align-items: center;
  right: -5rem;
  bottom: 1; /* bumped it down a notch, and closer to the element */
  z-index: 9;
  background: var(--saito-overlay-panel-background);
  border-radius: var(--saito-border-radius);
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  font-size: 1.1rem; /* made this way smaller, but this way access immediately below the line works better */
  opacity: 0; /* Initial opacity set to 0 for invisibility */
  transition: opacity 0.3s ease-in-out; /* Transition effect on opacity */
}

.chat-message-line .saito-userline-reply > div {
  padding: 4px;
  cursor: pointer;
  min-height: 22px;
  min-width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-message-line .saito-userline-reply > div.saito-chat-line-timestamp {
  cursor: revert;
}

.chat-message-line:hover .saito-userline-reply {
  opacity: 1; /* Opacity set to 1 on hover to make the element visible */
}

.chat-likes {
  right: -4rem;
  bottom: 0;
  display: flex;
  width: 40px;
  font-size: 1.3rem;
  font-weight: bold;
  align-items: center;
  gap: 0.25rem;
}

.chat-likes .chat-like-number {
  margin-left: 0.2rem;
}
.saito-user-self .chat-message-line:hover .saito-userline-reply {
  right: -2.5rem;
}

.saito-user-self .chat-message-line .saito-userline-reply .chat-message-action {
  display: none;
}

.saito-user .saito-userline-reply i:hover {
  transform: scale(1.2);
  color: var(--saito-primary);
  cursor: pointer;
}

.chat-footer {
  min-height: 4.5rem;
  height: fit-content;
  font-size: 2rem;
  /*position: absolute;
  bottom: 0;*/
  width: 100%;
  padding: 0;
  display: flex;
  flex-flow: row;
  align-items: center;
  z-index: 2;
  border-top: 1px solid var(--saito-border-color);
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  background: var(--saito-chat-shell-bg);
  position: relative;
}

.chat-container blockquote {
  color: inherit;
  line-height: 2.5rem;
  margin: 0.5rem 0;
}

.chat-footer .saito-emoji {
  top: 50%;
  bottom: auto;
  width: 4.3rem;
  height: 4.3rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.chat-footer .saito-input .text-input:not(.post-tweet-textarea) {
  border-color: transparent;
  box-shadow: none;
}

/*
.chat-footer .saito-input .text-input:not(.post-tweet-textarea):focus,
.chat-footer .saito-input .text-input:not(.post-tweet-textarea):focus-within {
  border-color: var(--saito-input-border-focus);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--saito-input-border-focus) 34%, transparent);
}*/

/* This is the submit paper airplane icon */

.chat-footer > i {
  color: var(--saito-primary);
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s;
  font-size: 2rem;
  align-content: center;
  text-align: center;
}

.chat-footer > .chat-input-submit.button-mouse-over {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.3rem;
  height: 4.3rem;
  padding: 0;
  line-height: 1;
}

.chat-footer > .chat-input-submit:hover {
  animation: button-mouse-over-pulse 0.9s ease-in-out infinite;
  transform: scale(1.06);
}

.chat-footer .saito-emoji:hover {
  transform: translateY(-50%);
}

.chat-footer .selection-box-tabs i:hover,
.chat-footer .saito-box-tab:hover {
  transform: none;
}

.dockedLeft {
  border-left: 3px solid var(--saito-primary) !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.dockedRight {
  border-right: 3px solid var(--saito-primary) !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.dockedTop {
  border-top: 3px solid var(--saito-primary) !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.dockedBottom {
  border-bottom: 3px solid var(--saito-primary) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.remove_user {
  padding: 0.5rem;
}

.remove_user:hover {
  color: var(--saito-font-color-secondary);
}

.chat-main-container {
  background-color: var(--saito-chat-background);
  background-image: var(--saito-chat-background-image);
}

.chat-main-container .chat-body {
  background-color: unset;
  background-image: unset;
}

.chat-main-container .saito-sidebar.left {
  background-color: var(--saito-chat-shell-bg);
}

.saito-chat-button {
  cursor: pointer;
  width: fit-content;
  margin: auto;
  padding: 4px;
  color: var(--saito-border-color);
  font-style: italic;
  font-size: 1.4rem;
}

.saito-chat-button:hover {
  font-style: unset;
  color: var(--saito-font-color-heavy); /* testing */
}

/* Mobile Overlay */

.close-chat-manager {
  margin-right: auto;
  display: none;
  position: relative;
  height: 100%;
}

.chat-manager-overlay .close-chat-manager {
  display: block;
}

.close-chat-manager i {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.6rem 1.1rem;
  color: var(--saito-header-color);
  background: var(--saito-header-background);
  font-size: 24px;
}

.chat-manager-options {
  height: 100%;
  min-width: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--saito-radius-md);
  color: var(--saito-font-color-secondary);
  transition:
    background-color 0.2s,
    color 0.2s;
}

.chat-manager-options:hover {
  background-color: var(--saito-card-bg-hover);
  color: var(--saito-font-color-heavy);
}

.chat-manager-overlay .chat-manager-header {
  font-size: 20px;
  padding-right: 1rem;
}

.chat-manager-overlay {
  background-color: var(--saito-overlay-panel-bg);
  position: absolute;
  left: 0;
  top: var(--saito-header-height);
  z-index: 90;
  width: 300px;
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  box-shadow: var(--saito-overlay-panel-shadow);
  border-radius: var(--saito-border-radius);
  height: fit-content;
  overflow: hidden;
}

.floating-cm-overlay .chat-manager-header {
  cursor: grab;
}

.alternate-close-button,
.floating-cm-overlay .chat-manager-options,
.chat-manager-overlay.floating-cm-overlay .close-chat-manager {
  display: none;
}

.chat-manager-overlay .chat-manager-list.saito-sidebar-element {
  box-shadow: unset;
  padding: unset;
  border: unset;
}

.floating-cm-overlay .alternate-close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 30px;
}

.chat-manager-overlay.floating-cm-overlay .chat-manager {
  max-height: 400px;
}

.chat-manager-overlay.floating-cm-overlay .chat-manager-list {
  min-height: unset;
  max-height: unset;
}

.chat-popup.maximized .chat-maximizer-icon,
.chat-popup.minimized .chat-minimizer-icon {
  background-color: var(--saito-primary);
  color: var(--saito-primary-text);
}

@media screen and (max-width: 720px) {
  .chat-manager-overlay .chat-manager-title {
    display: none;
  }

  .chat-header i.chat-sizing-icon {
    display: none;
  }

  .chat-header > .chat-header-nav > i.chat-container-close {
    width: 4rem;
    text-align: center;
    font-size: 2.4rem;
  }

  .chat-container,
  .chat-container .chat-body,
  .chat-container .chat-footer {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
  }
}

@media screen and (max-width: 600px) {
  .chat-manager-overlay {
    top: 0;
    height: 100dvh;
    width: 100vw;
    max-height: -webkit-fill-available;
    max-width: -webkit-fill-available;
    border-radius: unset;
    transition: height 0.3s;
  }

  .chat-manager-overlay .chat-manager {
    margin-left: auto;
    margin-right: auto;
    min-height: 25rem;
    height: 100%;
    grid-template-rows: var(--saito-header-height) 1fr;
  }

  .chat-manager-list {
    background-color: var(--saito-background-color);
  }

  .chat-manager-overlay .close-chat-manager i {
    width: 45px;
    height: 70px;
    font-size: 3rem;
    padding: 2rem 0.8rem;
  }

  .chat-container {
    margin: 0;
    min-width: unset;
    width: 100vw;
    height: 100dvh;
    transition: height 0.3s;
    max-height: -webkit-fill-available;
    max-width: -webkit-fill-available;
    border-radius: 0;
    background: var(--saito-background-color);
    z-index: 91;
    /* For the keyboard */
    right: 0 !important;
    bottom: 0 !important;
    top: 0 !important;
    left: 0 !important;
  }

  .chat-container .chat-header,
  .chat-container .chat-footer,
  .chat-container .chat-body {
    background-color: var(--saito-background-color);
  }

  .chat-header > .chat-header-nav {
    display: none;
  }

  .chat-header-info {
    grid-template-columns: min-content minmax(0, 1fr) min-content;
  }

  .chat-mobile-back {
    display: flex;
    margin: 1rem;
  }

  /* emoji-picker breaks this */
  .chat-manager-overlay + .chat-container {
    height: 100dvh;
    transition: height 0.3s;
    z-index: 91;
  }

  .chat-header-info {
    height: 6rem;
  }
}
.saito-profile {
  min-width: 0;
  width: 100%;
  padding: 0;
  max-width: 1000px;
  margin: auto;
}

.saito-profile-menu {
  margin-left: 0.2rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.saito-profile-menu > div {
  cursor: pointer;
  padding: 1rem;
  text-transform: capitalize;
}

.saito-profile-menu > div:hover {
  color: var(--saito-primary);
  background-color: var(--background-color-button-sidebar);
  border-radius: var(--saito-border-radius);
}

.saito-profile-menu .active {
  text-decoration: underline dashed;
  text-underline-offset: 0.5rem;
  /*border-bottom: 1px dashed var(--saito-font-color);*/
}

.saito-profile-banner {
  width: 100%;
  height: 0;
  padding-top: min(33.33%, 180px);
  background-image: url(/saito/img/profile-banner.jpg);
  background-size: cover;
  background-position: center;
  position: relative;
}

.saito-profile-header-row .saito-identicon-box {
  border: var(--border-thickness-medium) solid var(--border-color-identicon-square-profile);
  width: 10rem;
  height: 10rem;
  background-size: cover;
  border-radius: 5%;
  margin-top: -4.5rem;
  z-index: 1;
  margin-left: 1rem;
  position: relative;
  cursor: unset;
  font-size: 4rem;
}

.saito-profile-header-row .saito-identicon-box .saito-overlaid-icon {
  top: 50%;
}

.limbo-floating-overlay .saito-profile-header-row .saito-identicon-box .saito-overlaid-icon {
  left: 50%;
  width: 6rem;
  height: 6rem;
}

.saito-banner-edit {
  margin-left: 0;
  right: 0.5rem;
  bottom: 0.5rem;
  position: absolute;
  text-shadow: 1px 1px 4px var(--saito-black);
  cursor: pointer;
}

.saito-profile-description {
  position: relative;
  margin-left: 1rem;
  padding: 0.5rem;
  margin-right: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.saito-profile-description.empty {
  display: none;
}

.saito-profile-description.can-edit.empty {
  display: block;
}

.saito-profile-description.can-edit {
  display: grid;
  grid-template-columns: 1fr min-content;
  cursor: pointer;
}

.saito-description-edit {
  display: none;
  cursor: pointer;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: flex-end;
  font-size: 1.5rem;
}

.saito-profile-description.can-edit .saito-description-edit {
  display: flex;
}

.saito-follow {
  font-size: 1.5rem;
  color: var(--saito-font-color-light);
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  cursor: pointer;
}

.saito-follow-count {
  color: var(--saito-font-color-heavy);
  font-weight: bold;
}

.saito-profile-header-row {
  display: grid;
  grid-template-columns: min-content 1fr;
  align-items: center;
  height: 5rem;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-right: 0.5rem;
}

.saito-profile-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-evenly;
  height: 100%;
  min-width: 0;
  max-width: 100%;
}

.saito-profile-username {
  font-size: 2.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  white-space: nowrap;
}

.saito-profile-key {
  font-size: 1.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.saito-profile .saito-modal-menu-option {
  font-size: 2rem;
  height: unset;
  width: 100%;
  padding: 1rem;
  margin: 0;
}

.saito-profile .saito-modal-menu-option > div {
  font-size: 1.8rem;
}

.saito-profile .saito-modal-menu-option > i {
  justify-self: center;
  margin: 0;
}

.saito-profile-note {
  margin-top: 0.5rem;
}

.saito-banner-edit {
  color: var(--saito-gray-850);
}

@media screen and (max-width: 600px) {
  .saito-profile-header-row {
    margin-bottom: unset;
  }

  .saito-profile-header-row .saito-identicon-box {
    border-width: 1px;
    width: 7rem;
    height: 7rem;
    margin-top: -2.5rem;
    margin-left: 0.5rem;
  }
  .saito-profile-menu {
    justify-content: space-between;
  }
  .saito-profile-menu > div {
    margin-right: unset;
    flex-grow: 1;
    text-align: center;
  }

  .saito-profile-description {
    margin: unset;
  }
}
.saito-container {
  width: 100vw;
  height: calc(100% - var(--saito-header-height));
  display: grid;
  grid-template-columns: 25rem 62rem 30rem;
  padding: 0 max(1rem, calc((100vw - var(--saito-width)) / 2));
  column-gap: 2rem;
  z-index: 0;
  margin: 0;
  position: absolute;
  top: var(--saito-header-height);
  overflow-y: auto;
  overflow-x: hidden;
}

.saito-main {
  width: 100%;
  position: relative;
}

.saito-sidebar.left {
  position: sticky;
  height: calc(100dvh - var(--saito-header-height));
  top: 0;
  padding: 1.5rem 1rem 1rem 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: height 0.3s;
}

.saito-sidebar.right {
  padding: 1.5rem 1rem;
  position: relative;
  top: 0;
  min-width: 30rem;
  height: max-content;
  margin-left: 1rem;
}

.saito-sidebar h5 {
  margin: 0;
}

.saito-sidebar-element {
  /* side bar controls*/
  padding: var(--border-padding-normal);
  border-radius: var(--saito-border-radius);
}

.sidebar-header {
  display: flex;
  align-items: center;
  font-size: 2rem;
  justify-content: space-between;
  min-height: 40px;
  color: var(--saito-font-color-heavy);
  text-transform: uppercase;
  font-family: var(--saito-font);
}

.sidebar-header > div {
  width: fit-content;
  cursor: pointer;
  transition: transform 0.4s;
}

.sidebar-header > div.sidebar-title {
  cursor: default;
}

/* This should be handled module by module...
@media screen and (max-width: 900px) {
  .saito-container {
    padding: 0;
    grid-template-columns: 1fr;
  }

  .saito-main {
    min-width: 0;
    width: 100%;
    max-width: 100vw;
    margin-left: 0rem !important;
    margin-right: 0rem;
  }
}

*/
.saito-img-arrow-box {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.saito-img-arrow-box.left {
  left: -10rem;
}

.saito-img-arrow-box.right {
  right: -10rem;
}

.saito-img-icon {
  font-size: 3rem;
  color: var(--saito-white);
  background: var(--saito-gray-600);
  padding: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
}

.saito-overlay-img-cont > img {
  transition: all 0.2s ease-in-out;
}

.saito-overlay-img-cont img {
  max-height: 90vh;
  max-width: 90vw;
  display: none;
}
/*-------------------- NOIR THEME --------------------
 * Cinematic "Neon Nocturne" theme derived from the videocall Noir design work.
 * Deep obsidian canvas, tonal surfaces, ember CTAs, soft long shadows, and glassy floating chrome.
 */

html[data-theme='noir'] {
  --palette-primary: #ff914d;
  --palette-primary-dark: #f38239;
  --palette-on-primary: #fff6f1;
  --palette-secondary: #fb9532;
  --palette-on-secondary: #fff6f1;
  --palette-bg: #141519;
  --palette-bg-inverse: #faf9fd;
  --palette-surface-1: #1a1b20;
  --palette-surface-2: #22242a;
  --palette-surface-3: #2f3239;
  --palette-surface-inverse: var(--palette-bg-inverse);
  --palette-outline: color-mix(in srgb, #47484b 32%, transparent);
  --palette-outline-strong: #e2e9ff;
  --palette-shadow: #000000;
  --palette-texture-overlay: url(/saito/img/tiled-logo.svg);
  --palette-bg-gradient:
    radial-gradient(60vw 60vw at 50% -20%, color-mix(in srgb, var(--palette-primary) 12%, transparent), transparent),
    var(--palette-bg);
  --palette-surface-gradient:
    linear-gradient(180deg, color-mix(in srgb, var(--palette-surface-2) 88%, var(--palette-primary)), var(--palette-surface-1));
  --palette-overlay-gradient:
    linear-gradient(145deg, var(--saito-overlay-panel-surface-low), var(--saito-overlay-panel-surface));

  --saito-primary: var(--palette-primary);
  --saito-primary-dark: var(--palette-primary-dark);
  --saito-primary-text: var(--palette-on-primary);
  --saito-primary-background: var(--saito-primary);
  --saito-secondary: var(--palette-secondary);
  --saito-secondary-text: var(--palette-on-secondary);

  --saito-background-color: var(--palette-bg);
  --saito-background-color-inverse: var(--palette-bg-inverse);
  --saito-canvas-background: var(--palette-bg-gradient);
  --saito-header-background: color-mix(in srgb, var(--palette-bg) 88%, transparent);
  --saito-header-color: var(--saito-white);

  --saito-surface-color: var(--palette-surface-1);
  --saito-surface-text: var(--saito-font-color);
  --saito-surface-hover: var(--palette-surface-2);
  --saito-surface-selected: var(--palette-surface-3);
  --saito-surface-inverse: var(--palette-surface-inverse);
  --saito-surface-inverse-text: #121316;

  --background-color-shim-light: color-mix(in srgb, var(--saito-black) 52%, transparent);
  --background-color-shim-normal: color-mix(in srgb, var(--saito-black) 70%, transparent);
  --background-color-shim-dark: color-mix(in srgb, var(--saito-black) 82%, transparent);
  --saito-overlay-backdrop: color-mix(in srgb, var(--palette-bg) 78%, transparent);
  --saito-overlay-backdrop-stacked: color-mix(in srgb, var(--palette-bg) 68%, transparent);
  --saito-overlay-panel-bg: color-mix(in srgb, var(--palette-surface-2) 82%, transparent);
  --saito-overlay-panel-surface-low: var(--palette-surface-1);
  --saito-overlay-panel-surface: var(--palette-surface-2);
  --saito-overlay-panel-background: var(--palette-overlay-gradient);
  --saito-overlay-panel-border: rgba(71, 72, 75, 0.35);
  --saito-overlay-panel-border-highlight: transparent;
  --saito-overlay-panel-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  --saito-modal-background: var(--saito-overlay-panel-background);
  --saito-modal-shadow: var(--saito-overlay-panel-shadow);
  --saito-modal-texture: none;

  --saito-box-shadow-low: 0 2px 8px color-mix(in srgb, var(--palette-shadow) 28%, transparent);
  --saito-box-shadow: 0 12px 28px color-mix(in srgb, var(--palette-shadow) 34%, transparent);
  --saito-box-shadow-high: 0 20px 40px color-mix(in srgb, var(--palette-shadow) 46%, transparent);
  --saito-elevation-0: none;
  --saito-elevation-1: var(--saito-box-shadow-low);
  --saito-elevation-2: var(--saito-box-shadow);
  --saito-elevation-3: var(--saito-box-shadow-high);

  --saito-font: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --saito-font-medium: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --saito-font-heavy: 'Space Grotesk', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --saito-font-monospace: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  --saito-font-color-primary: #f2f0f4;
  --saito-font-color-heavy: #f8f4f1;
  --saito-font-color-secondary: #abaaae;
  --saito-font-color-light: #abaaae;
  --saito-font-color-inverse: #121316;

  --saito-border-color: var(--palette-outline);
  --saito-border-color-light: color-mix(in srgb, var(--palette-outline-strong) 18%, transparent);
  --saito-border-color-dark: var(--palette-outline-strong);
  --border-color-general-dividers: color-mix(in srgb, var(--palette-outline-strong) 24%, transparent);
  --saito-border-radius: 0.75rem;
  --saito-identicon-border-radius: var(--saito-border-radius);
  --saito-radius-sm: 0.5rem;
  --saito-radius-md: 0.75rem;
  --saito-radius-lg: 1rem;

  --saito-focus-ring: 0 0 0 3px color-mix(in srgb, var(--saito-primary) 34%, transparent);
  --saito-button-primary-bg: linear-gradient(135deg, var(--palette-primary), var(--palette-primary-dark));
  --saito-button-primary-bg-hover: linear-gradient(135deg, var(--palette-primary), var(--palette-primary-dark));
  --saito-button-primary-fg: var(--palette-on-primary);
  --saito-button-primary-border: transparent;
  --saito-button-secondary-bg: linear-gradient(135deg, var(--palette-primary), var(--palette-primary-dark));
  --saito-button-secondary-bg-hover: linear-gradient(135deg, var(--palette-primary), var(--palette-primary-dark));
  --saito-button-secondary-fg: var(--palette-on-primary);
  --saito-button-secondary-fg-hover: var(--palette-on-primary);
  --saito-button-secondary-border: transparent;
  --saito-button-disabled-bg: var(--palette-surface-1);
  --saito-button-disabled-fg: color-mix(in srgb, var(--saito-font-color-secondary) 58%, transparent);
  --saito-button-disabled-border: transparent;
  --saito-button-radius: var(--saito-radius-md);

  --saito-input-bg: var(--palette-surface-1);
  --saito-input-bg-focus: var(--palette-surface-2);
  --saito-input-fg: var(--saito-font-color);
  --saito-input-fg-heavy: var(--saito-font-color-heavy);
  --saito-input-border: color-mix(in srgb, var(--palette-outline-strong) 20%, transparent);
  --saito-input-border-focus: var(--saito-primary);
  --saito-input-placeholder: color-mix(in srgb, var(--saito-font-color-secondary) 72%, transparent);
  --saito-input-shadow: var(--saito-elevation-0);
  --saito-post-overlay-bg: var(--saito-overlay-panel-background);
  --saito-post-overlay-border: var(--saito-overlay-panel-border);
  --saito-post-overlay-shadow: var(--saito-overlay-panel-shadow);
  --saito-post-textarea-bg: color-mix(in srgb, var(--palette-bg) 56%, transparent);
  --saito-post-textarea-bg-focus: color-mix(in srgb, var(--palette-bg) 68%, transparent);
  --saito-post-controls-bg: transparent;
  --saito-post-control-color: var(--saito-primary);
  --saito-post-button-radius: var(--saito-button-radius);
  --saito-feed-bg: transparent;

  --saito-table-row-bg: transparent;
  --saito-table-row-bg-hover: var(--saito-post-textarea-bg-focus);
  --saito-table-header-bg: transparent;
  --saito-table-border: var(--saito-border-color);

  --saito-card-bg: transparent;
  --saito-card-bg-hover: var(--saito-post-textarea-bg-focus);
  --saito-card-border-initial: transparent;
  --saito-card-border: color-mix(in srgb, var(--palette-outline-strong) 16%, transparent);
  --saito-card-shadow: var(--saito-elevation-0);
  --saito-card-shadow-hover: var(--saito-elevation-1);
  --saito-card-transform-hover: translateY(-1px);

  --saito-chip-bg: var(--saito-post-textarea-bg);
  --saito-chip-fg: var(--saito-font-color-heavy);
  --saito-chip-border: color-mix(in srgb, var(--palette-outline-strong) 24%, transparent);
  --saito-muted-color: var(--saito-font-color-secondary);
  --saito-status-success: #8bdc8f;
  --saito-status-danger: #ff7351;
  --saito-status-warning: #febf2a;
  --saito-status-info: var(--saito-primary);
  --saito-status-code-fg: #8bdc8f;
  --saito-status-code-bg: #000000;
  --saito-control-ring-shadow: 0 0 0 2px var(--palette-bg);

  --saito-link-preview-bg: var(--saito-post-textarea-bg);
  --saito-link-preview-border: var(--saito-card-border);
  --saito-menu-item-active-bg: var(--saito-post-textarea-bg);
  --saito-menu-item-hover-bg: var(--saito-post-textarea-bg-focus);
  --saito-menu-item-hover-fg: var(--saito-primary);
  --saito-menu-icon-color: var(--saito-font-color-secondary);
  --saito-menu-icon-hover-color: var(--saito-primary);
  --saito-notification-bg: var(--saito-primary);
  --saito-notification-fg: var(--saito-primary-text);
  --saito-notification-hover-bg: var(--palette-surface-2);
  --saito-notification-ring: var(--palette-bg);
  --saito-alert-bg: var(--saito-overlay-panel-background);
  --saito-alert-border: var(--saito-overlay-panel-border);
  --saito-alert-shadow: var(--saito-overlay-panel-shadow);
  --saito-header-menu-bg: var(--saito-overlay-panel-background);
  --saito-header-menu-border: var(--saito-overlay-panel-border);
  --saito-header-menu-shadow: var(--saito-overlay-panel-shadow);
  --saito-floating-action-bg: var(--saito-primary-background);
  --saito-floating-action-fg: var(--saito-primary-text);
  --saito-floating-action-shadow: 0 0 28px -8px color-mix(in srgb, var(--saito-primary) 75%, transparent);
  --saito-floating-menu-bg: var(--saito-post-textarea-bg);
  --saito-floating-menu-border: var(--saito-overlay-panel-border);
  --saito-file-transfer-panel-bg: var(--saito-overlay-panel-background);
  --saito-file-transfer-panel-border: var(--saito-overlay-panel-border);
  --saito-file-transfer-panel-shadow: var(--saito-overlay-panel-shadow);
  --saito-file-transfer-bg: var(--saito-chip-bg);
  --saito-file-transfer-fg: var(--saito-chip-fg);
  --saito-file-transfer-border: var(--saito-chip-border);
  --saito-crypto-transfer-bg: #000000;
  --saito-crypto-transfer-fg: var(--saito-font-color-heavy);
  --saito-crypto-transfer-border: color-mix(in srgb, var(--palette-outline-strong) 36%, transparent);
  --saito-chat-background: var(--palette-bg);
  --saito-chat-background-image: var(--palette-texture-overlay);
  --saito-chat-shell-bg: var(--saito-post-textarea-bg);
  --saito-chat-active-bg: var(--palette-surface-3);
  --saito-chat-header-shadow: var(--saito-elevation-0);
  --saito-calendar-event-border: var(--saito-card-border);
  --saito-wallet-panel-bg: var(--saito-overlay-panel-background);
  --saito-wallet-panel-fg: var(--saito-font-color);
  --saito-wallet-muted-color: var(--saito-font-color-secondary);
  --saito-wallet-error-color: var(--saito-status-danger);
}

html[data-theme='noir'] .saito-overlay > div:last-child,
html[data-theme='noir'] .saito-overlay > form,
html[data-theme='noir'] .saito-modal,
html[data-theme='noir'] .saito-header-hamburger-contents,
html[data-theme='noir'] .saito-file-transfer-overlay {
  backdrop-filter: blur(12px);
}

html[data-theme='noir'] .saito-overlay > div:last-child,
html[data-theme='noir'] .saito-overlay > form,
html[data-theme='noir'] .saito-modal {
  border: 1px solid var(--saito-overlay-panel-border);
  border-radius: calc(var(--saito-radius-md) + 0.15rem);
  box-shadow: var(--saito-overlay-panel-shadow);
}

html[data-theme='noir'] #saito-header {
  backdrop-filter: none;
  border-bottom: none;
}

html[data-theme='noir'] .saito-header-logo {
  filter: brightness(0) invert(1);
}

html[data-theme='noir'] .saito-header-logo .cls-1 {
  fill: var(--saito-white);
}

html[data-theme='noir'] button,
html[data-theme='noir'] .button,
html[data-theme='noir'] .saito-button-primary,
html[data-theme='noir'] .saito-button-secondary {
  background-clip: padding-box;
  border-radius: var(--saito-button-radius);
  box-shadow: 0 0 32px -10px rgba(255, 145, 77, 0.55);
  color: var(--palette-on-primary);
  font-weight: 500;
  letter-spacing: 0;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

html[data-theme='noir'] button,
html[data-theme='noir'] .button,
html[data-theme='noir'] .saito-button-primary,
html[data-theme='noir'] .saito-button-secondary {
  background: linear-gradient(135deg, var(--palette-primary), var(--palette-primary-dark));
  border-color: transparent;
}

html[data-theme='noir'] button:hover,
html[data-theme='noir'] .button:hover,
html[data-theme='noir'] .saito-button-primary:hover,
html[data-theme='noir'] .saito-button-secondary:hover {
  background: linear-gradient(135deg, var(--palette-primary), var(--palette-primary-dark));
  box-shadow: 0 0 36px -10px rgba(255, 145, 77, 0.55);
  color: var(--palette-on-primary);
  filter: brightness(1.03);
  transform: translateY(-1px);
}

html[data-theme='noir'] button:active,
html[data-theme='noir'] .button:active,
html[data-theme='noir'] .saito-button-primary:active,
html[data-theme='noir'] .saito-button-secondary:active {
  filter: brightness(0.98);
  transform: translateY(0);
}

html[data-theme='noir'] button:disabled,
html[data-theme='noir'] button.disabled,
html[data-theme='noir'] .button.disabled,
html[data-theme='noir'] .saito-button-primary.disabled,
html[data-theme='noir'] .saito-button-primary[disabled],
html[data-theme='noir'] .saito-button-secondary.disabled,
html[data-theme='noir'] .saito-button-secondary[disabled] {
  background: var(--saito-button-disabled-bg);
  border-color: var(--saito-button-disabled-border);
  box-shadow: none;
  color: var(--saito-button-disabled-fg);
  filter: none;
  transform: none;
}

html[data-theme='noir'] .saito-overlay button,
html[data-theme='noir'] .saito-overlay .saito-button-primary,
html[data-theme='noir'] .saito-overlay .saito-button-secondary {
  border-radius: var(--saito-post-button-radius);
}

html[data-theme='noir'] .saito-input-large .selection-box-tabs,
html[data-theme='noir'] .saito-input-large .saito-box-tab {
  background: transparent;
}

html[data-theme='noir'] .saito-input-large .gif-icon svg .cls-1 {
  fill: var(--saito-post-control-color);
}
/*-------------------- RAVEN THEME -------------------- */

html[data-theme='raven'] {
  /*BASE COLOR SECTION*/
  --palette-primary: #358ccf;
  --palette-primary-dark: #3071a6;
  --palette-secondary: #c535cf;
  --palette-bg: #14212d;
  --palette-bg-inverse: #e3e7eb;
  --palette-surface-1: rgba(255, 255, 255, 0.03);
  --palette-surface-2: rgba(255, 255, 255, 0.06);
  --palette-surface-3: rgba(255, 255, 255, 0.12);
  --palette-surface-inverse: var(--palette-bg-inverse);
  --palette-outline: var(--saito-border-color-dark);
  --palette-outline-strong: var(--saito-gray-500);
  --palette-bg-gradient: var(--palette-bg);
  --palette-surface-gradient: color-mix(in srgb, var(--saito-black) 8%, var(--palette-bg));
  --palette-overlay-gradient: var(--saito-overlay-panel-surface);

  --saito-background-color: var(--palette-bg);
  --saito-background-color-inverse: var(--palette-bg-inverse);
  --saito-canvas-background: var(--palette-bg-gradient);
  --saito-header-color: var(--saito-white);
  --saito-header-background: var(--saito-background-color);

  --saito-surface-color: var(--palette-surface-1);
  --saito-surface-text: var(--saito-font-color);
  --saito-surface-hover: var(--palette-surface-2);
  --saito-surface-selected: var(--palette-surface-3);
  --saito-surface-inverse: var(--palette-surface-inverse);
  --saito-surface-inverse-text: var(--saito-font-color-inverse);
  --saito-overlay-panel-bg: color-mix(in srgb, var(--saito-background-color) 92%, var(--saito-white));
  --saito-overlay-panel-surface-low: color-mix(in srgb, var(--palette-primary) 10%, var(--palette-bg));
  --saito-overlay-panel-surface: color-mix(in srgb, var(--saito-black) 8%, var(--palette-bg));
  --saito-overlay-panel-background: var(--palette-overlay-gradient);
  --saito-overlay-panel-border: color-mix(in srgb, var(--palette-primary) 28%, var(--palette-outline-strong));
  --saito-overlay-panel-border-highlight: color-mix(in srgb, var(--palette-primary) 20%, transparent);
  --saito-overlay-panel-shadow:
    0 24px 70px color-mix(in srgb, var(--saito-black) 50%, transparent),
    0 8px 22px color-mix(in srgb, var(--palette-primary) 14%, transparent),
    inset 0 1px 0 var(--saito-overlay-panel-border-highlight);
  --saito-modal-background: var(--saito-overlay-panel-background);
  --saito-modal-shadow: var(--saito-overlay-panel-shadow);
  --saito-modal-texture: none;
  --saito-card-bg: var(--saito-surface-color);
  --saito-card-bg-hover: var(--saito-surface-hover);
  --saito-card-shadow-hover: var(--saito-elevation-2);

  --saito-primary: var(--palette-primary);
  --saito-primary-dark: var(--palette-primary-dark);
  --saito-secondary: var(--palette-secondary);

  /*FONTS SECTION*/
  --saito-font-color-primary: var(--saito-gray-150); /* also --saito-font-color */
  --saito-font-color-heavy: var(--saito-gray-050);
  --saito-font-color-secondary: var(--saito-gray-350); /* also --saito-font-color-light */
  --saito-font-color-inverse: var(--saito-gray-850);

  /*TINTS COLOR SECTION*/
  --saito-highlight: #ccc1;
  --saito-highlight-heavy: #7775;

  /* BORDER COLORS */
  --saito-border-color: var(--palette-outline);
  --border-color-general-dividers: var(--palette-outline-strong);
  --saito-border-radius: 1rem;
  --saito-identicon-border-radius: 50%;
  --saito-button-radius: var(--saito-radius-full);

  --saito-box-shadow:
    12px 17px 2px #00000024, 0px 5px 22px 4px #0000001f, 0px 7px 8px -4px #00000033;
}

html[data-theme='raven'] .saito-header-logo {
  filter: brightness(0) invert(1);
}

html[data-theme='raven'] .saito-header-logo .cls-1 {
  fill: var(--saito-white);
}
/*-------------------- CLASSIC DARK THEME --------------------
 * Stone Ember theme aligned with shadcn's semantic token model.
 * The first block keeps shadcn-compatible aliases available for
 * future module CSS, then maps those aliases onto Saito's tokens.
 */

html[data-theme='dark'] {
  /* shadcn-compatible semantic aliases */
  --background: #0c0a09;
  --foreground: #fafaf9;
  --card: #1c1917;
  --card-foreground: #fafaf9;
  --popover: #1c1917;
  --popover-foreground: #fafaf9;
  --primary: #f54900;
  --primary-foreground: #fff7ed;
  --secondary: #27272a;
  --secondary-foreground: #fafafa;
  --muted: #292524;
  --muted-foreground: #a6a09b;
  --accent: #292524;
  --accent-foreground: #fafaf9;
  --destructive: #ff6467;
  --border: #ffffff1a;
  --input: #ffffff26;
  --ring: #79716b;
  --chart-1: #ffb86a;
  --chart-2: #ff6900;
  --chart-3: #f54900;
  --chart-4: #ca3500;
  --chart-5: #9f2d00;
  --radius: 0.45rem;
  --sidebar: #1c1917;
  --sidebar-foreground: #fafaf9;
  --sidebar-primary: #ff6900;
  --sidebar-primary-foreground: #fff7ed;
  --sidebar-accent: #292524;
  --sidebar-accent-foreground: #fafaf9;
  --sidebar-border: #ffffff1a;
  --sidebar-ring: #79716b;

  /* palette bridge */
  --palette-primary: var(--primary);
  --palette-primary-dark: var(--chart-4);
  --palette-on-primary: var(--primary-foreground);
  --palette-secondary: var(--secondary);
  --palette-on-secondary: var(--secondary-foreground);
  --palette-bg: var(--background);
  --palette-bg-inverse: var(--foreground);
  --palette-surface-1: var(--card);
  --palette-surface-2: var(--muted);
  --palette-surface-3: var(--secondary);
  --palette-surface-inverse: var(--foreground);
  --palette-outline: var(--border);
  --palette-outline-strong: color-mix(in srgb, var(--foreground) 18%, transparent);
  --palette-shadow: #000000;
  --palette-texture-overlay: none;
  --palette-bg-gradient: var(--background);
  --palette-surface-gradient: var(--card);
  --palette-overlay-gradient: var(--popover);

  /* brand and action colors */
  --saito-primary: var(--primary);
  --saito-primary-dark: var(--chart-4);
  --saito-primary-text: var(--primary-foreground);
  --saito-primary-background: var(--saito-primary);
  --saito-secondary: var(--secondary);
  --saito-secondary-text: var(--secondary-foreground);

  /* page, chrome, and surfaces */
  --saito-background-color: var(--background);
  --saito-background-color-inverse: var(--foreground);
  --saito-canvas-background: var(--background);
  --saito-header-color: var(--foreground);
  --saito-header-background: var(--background);

  --saito-surface-color: var(--card);
  --saito-surface-text: var(--foreground);
  --saito-surface-hover: var(--accent);
  --saito-surface-selected: var(--secondary);
  --saito-surface-inverse: var(--foreground);
  --saito-surface-inverse-text: var(--background);

  --background-color-shim-light: color-mix(in srgb, var(--background) 58%, transparent);
  --background-color-shim-normal: color-mix(in srgb, var(--background) 72%, transparent);
  --background-color-shim-dark: color-mix(in srgb, var(--background) 86%, transparent);
  --saito-overlay-backdrop: var(--background-color-shim-normal);
  --saito-overlay-backdrop-stacked: var(--background-color-shim-light);
  --saito-overlay-panel-bg: var(--popover);
  --saito-overlay-panel-surface-low: var(--card);
  --saito-overlay-panel-surface: var(--card);
  --saito-overlay-panel-background: var(--popover);
  --saito-overlay-panel-border: var(--border);
  --saito-overlay-panel-border-highlight: color-mix(in srgb, var(--foreground) 5%, transparent);
  --saito-overlay-panel-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
  --saito-modal-background: var(--popover);
  --saito-modal-texture: none;
  --saito-modal-border: var(--border);
  --saito-modal-shadow: var(--saito-overlay-panel-shadow);

  /* fonts */
  --saito-font: 'visuelt-regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --saito-font-medium: 'visuelt-medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --saito-font-heavy: 'visuelt-medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --saito-font-monospace: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  --saito-font-color: var(--foreground);
  --saito-font-color-primary: var(--foreground);
  --saito-font-color-heavy: var(--foreground);
  --saito-font-color-secondary: var(--muted-foreground);
  --saito-font-color-light: var(--muted-foreground);
  --saito-font-color-inverse: var(--background);

  /* tints and borders */
  --saito-highlight: color-mix(in srgb, var(--foreground) 8%, transparent);
  --saito-highlight-heavy: color-mix(in srgb, var(--foreground) 14%, transparent);
  --saito-border-color: var(--border);
  --saito-border-color-light: var(--border);
  --saito-border-color-dark: var(--border);
  --border-color-general-dividers: var(--border);
  --saito-border-radius: var(--radius);
  --saito-identicon-border-radius: var(--saito-border-radius);
  --saito-radius-sm: 0.35rem;
  --saito-radius-md: var(--radius);
  --saito-radius-lg: 0.7rem;

  /* shadows and focus */
  --saito-box-shadow-low: 0 1px 2px color-mix(in srgb, var(--palette-shadow) 28%, transparent);
  --saito-box-shadow: 0 8px 18px color-mix(in srgb, var(--palette-shadow) 28%, transparent);
  --saito-box-shadow-high: 0 14px 34px color-mix(in srgb, var(--palette-shadow) 38%, transparent);
  --saito-elevation-0: none;
  --saito-elevation-1: var(--saito-box-shadow-low);
  --saito-elevation-2: var(--saito-box-shadow);
  --saito-elevation-3: var(--saito-box-shadow-high);
  --saito-focus-ring: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent);

  /* controls */
  --saito-button-primary-bg: var(--primary);
  --saito-button-primary-bg-hover: var(--chart-4);
  --saito-button-primary-fg: var(--primary-foreground);
  --saito-button-primary-border: transparent;
  --saito-button-radius: var(--radius);
  --saito-button-secondary-bg: var(--secondary);
  --saito-button-secondary-bg-hover: var(--accent);
  --saito-button-secondary-fg: var(--secondary-foreground);
  --saito-button-secondary-fg-hover: var(--foreground);
  --saito-button-secondary-border: transparent;
  --saito-button-disabled-bg: color-mix(in srgb, var(--secondary) 70%, transparent);
  --saito-button-disabled-fg: color-mix(in srgb, var(--muted-foreground) 64%, transparent);
  --saito-button-disabled-border: transparent;

  --saito-input-bg: var(--input);
  --saito-input-bg-focus: color-mix(in srgb, var(--input) 80%, var(--card));
  --saito-input-fg: var(--foreground);
  --saito-input-fg-heavy: var(--foreground);
  --saito-input-border: transparent;
  --saito-input-border-focus: var(--ring);
  --saito-input-placeholder: var(--muted-foreground);
  --saito-input-radius: var(--radius);
  --saito-input-shadow: var(--saito-elevation-0);
  --saito-input-font: inherit;

  /* feeds and content cards */
  --saito-post-overlay-bg: var(--card);
  --saito-post-overlay-border: var(--border);
  --saito-post-overlay-shadow: var(--saito-elevation-0);
  --saito-post-textarea-bg: var(--input);
  --saito-post-textarea-bg-focus: color-mix(in srgb, var(--input) 80%, var(--card));
  --saito-post-controls-bg: transparent;
  --saito-post-control-color: var(--chart-2);
  --saito-post-button-radius: var(--radius);
  --saito-feed-bg: var(--background);

  --saito-table-row-bg: transparent;
  --saito-table-row-bg-hover: color-mix(in srgb, var(--muted) 78%, transparent);
  --saito-table-header-bg: transparent;
  --saito-table-border: var(--border);
  --saito-table-header-transform: none;
  --saito-table-header-size: inherit;
  --saito-table-header-letter-spacing: 0;

  --saito-card-bg: var(--card);
  --saito-card-bg-hover: color-mix(in srgb, var(--card) 86%, var(--accent));
  --saito-card-border-initial: var(--border);
  --saito-card-border: var(--border);
  --saito-card-shadow: var(--saito-elevation-0);
  --saito-card-shadow-hover: var(--saito-elevation-0);
  --saito-card-transform-hover: none;

  --saito-chip-bg: var(--secondary);
  --saito-chip-fg: var(--secondary-foreground);
  --saito-chip-border: var(--border);
  --saito-muted-color: var(--muted-foreground);

  /* status and data colors */
  --saito-chart-1: var(--chart-1);
  --saito-chart-2: var(--chart-2);
  --saito-chart-3: var(--chart-3);
  --saito-chart-4: var(--chart-4);
  --saito-chart-5: var(--chart-5);
  --saito-status-success: #10b981;
  --saito-status-danger: var(--destructive);
  --saito-status-warning: var(--chart-2);
  --saito-status-info: var(--chart-2);
  --saito-status-code-fg: #10b981;
  --saito-status-code-bg: var(--background);
  --saito-control-ring-shadow: 0 0 0 2px var(--background);

  --saito-link-preview-bg: var(--card);
  --saito-link-preview-border: var(--border);

  --saito-menu-item-active-bg: var(--accent);
  --saito-menu-item-hover-bg: var(--accent);
  --saito-menu-item-hover-fg: var(--accent-foreground);
  --saito-menu-icon-color: var(--muted-foreground);
  --saito-menu-icon-hover-color: var(--foreground);

  --saito-notification-bg: var(--chart-2);
  --saito-notification-fg: var(--primary-foreground);
  --saito-notification-hover-bg: var(--accent);
  --saito-notification-online-bg: var(--saito-status-success);
  --saito-notification-busy-bg: var(--muted-foreground);
  --saito-notification-ring: var(--background);

  --saito-alert-backdrop: var(--background-color-shim-dark);
  --saito-alert-bg: var(--popover);
  --saito-alert-fg: var(--popover-foreground);
  --saito-alert-border: var(--border);
  --saito-alert-shadow: var(--saito-overlay-panel-shadow);

  --saito-header-menu-bg: var(--popover);
  --saito-header-menu-border: var(--border);
  --saito-header-menu-shadow: var(--saito-overlay-panel-shadow);
  --saito-floating-action-bg: var(--chart-2);
  --saito-floating-action-fg: var(--primary-foreground);
  --saito-floating-action-shadow: var(--saito-elevation-2);
  --saito-floating-menu-bg: var(--popover);
  --saito-floating-menu-border: var(--border);

  --saito-file-transfer-panel-bg: var(--popover);
  --saito-file-transfer-panel-border: var(--border);
  --saito-file-transfer-panel-shadow: var(--saito-overlay-panel-shadow);
  --saito-file-transfer-bg: var(--secondary);
  --saito-file-transfer-fg: var(--secondary-foreground);
  --saito-file-transfer-border: var(--border);

  --saito-tooltip-icon-color: var(--chart-2);
  --saito-tooltip-bg: var(--popover);
  --saito-tooltip-fg: var(--popover-foreground);
  --saito-tooltip-border: var(--border);
  --saito-tooltip-shadow: var(--saito-overlay-panel-shadow);
  --saito-tooltip-radius: var(--radius);

  /* chat and wallet surfaces */
  --saito-chat-background: var(--background);
  --saito-chat-background-image: none;
  --saito-chat-shell-bg: var(--card);
  --saito-bubble-background: var(--card);
  --saito-bubble-shadow: var(--saito-elevation-0);
  --saito-chat-active-bg: var(--accent);
  --saito-chat-header-shadow: var(--saito-elevation-0);
  --saito-chat-notification-gradient: linear-gradient(90deg, transparent, var(--chart-2), transparent);

  --saito-calendar-event-border: var(--border);
  --saito-calendar-muted-color: var(--muted-foreground);
  --saito-calendar-muted-past-color: color-mix(in srgb, var(--muted-foreground) 62%, transparent);
  --saito-calendar-event-dot-bg: var(--destructive);

  --saito-wallet-panel-bg: var(--popover);
  --saito-wallet-panel-fg: var(--foreground);
  --saito-wallet-muted-color: var(--muted-foreground);
  --saito-wallet-error-color: var(--destructive);
  --saito-wallet-nft-summary-bg: color-mix(in srgb, var(--chart-2) 16%, var(--card));
  --saito-wallet-nft-payout-bg: color-mix(in srgb, var(--chart-1) 12%, var(--card));
  --saito-wallet-nft-total-bg: color-mix(in srgb, var(--secondary) 72%, var(--card));
  --saito-crypto-transfer-bg: var(--background);
  --saito-crypto-transfer-fg: var(--foreground);
  --saito-crypto-transfer-border: var(--border);

  --saito-empty-state-icon-color: var(--muted-foreground);
  --saito-empty-state-title-color: var(--foreground);
  --saito-empty-state-text-color: var(--muted-foreground);
}

html[data-theme='dark'] body {
  background-color: var(--background);
  background-image: none;
}

html[data-theme='dark'] #saito-header {
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

html[data-theme='dark'] .saito-header-logo {
  filter: brightness(0) invert(1);
}

html[data-theme='dark'] .saito-header-logo .cls-1 {
  fill: var(--foreground);
}

html[data-theme='dark'] .saito-overlay > div:last-child,
html[data-theme='dark'] .saito-overlay > form,
html[data-theme='dark'] .saito-modal,
html[data-theme='dark'] .saito-header-hamburger-contents,
html[data-theme='dark'] .saito-file-transfer-overlay,
html[data-theme='dark'] .saito-module-overlay {
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--saito-radius-lg);
  box-shadow: var(--saito-overlay-panel-shadow);
}

html[data-theme='dark'] button,
html[data-theme='dark'] .button,
html[data-theme='dark'] .saito-button-primary,
html[data-theme='dark'] .saito-button-secondary {
  box-shadow: none;
  font-family: var(--saito-font-medium);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0;
  min-height: 3.6rem;
  min-width: fit-content;
  padding: 0.75rem 1.2rem;
  text-transform: none;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    filter 0.16s ease;
}

html[data-theme='dark'] button:hover,
html[data-theme='dark'] .button:hover,
html[data-theme='dark'] .saito-button-primary:hover {
  color: var(--primary-foreground);
  filter: brightness(1.06);
}

html[data-theme='dark'] .saito-button-secondary:hover {
  color: var(--foreground);
  filter: brightness(1.06);
}

html[data-theme='dark'] button.small,
html[data-theme='dark'] .saito-button-primary.small,
html[data-theme='dark'] .saito-button-secondary.small {
  font-size: 1.25rem;
  min-height: 2.8rem;
  min-width: 3.6rem;
  padding: 0.45rem 0.75rem;
}

html[data-theme='dark'] button.fat,
html[data-theme='dark'] .saito-button-primary.fat,
html[data-theme='dark'] .saito-button-secondary.fat {
  font-size: 1.6rem;
  min-height: 4.8rem;
  padding: 1rem 1.5rem;
}

html[data-theme='dark'] button:disabled,
html[data-theme='dark'] button.disabled,
html[data-theme='dark'] .button.disabled,
html[data-theme='dark'] .saito-button-primary.disabled,
html[data-theme='dark'] .saito-button-primary[disabled],
html[data-theme='dark'] .saito-button-secondary.disabled,
html[data-theme='dark'] .saito-button-secondary[disabled] {
  background: var(--saito-button-disabled-bg);
  border-color: var(--saito-button-disabled-border);
  color: var(--saito-button-disabled-fg);
  filter: none;
}

html[data-theme='dark'] textarea,
html[data-theme='dark'] input,
html[data-theme='dark'] select,
html[data-theme='dark'] .saito-input .text-input:not(.post-tweet-textarea) {
  font-size: 1.4rem;
  border-color: var(--saito-input-border);
  box-shadow: none;
}

html[data-theme='dark'] textarea:focus,
html[data-theme='dark'] input:focus,
html[data-theme='dark'] select:focus,
html[data-theme='dark'] .saito-input .text-input:not(.post-tweet-textarea):focus,
html[data-theme='dark'] .saito-input .text-input:not(.post-tweet-textarea):focus-within {
  border-color: var(--ring);
  box-shadow: var(--saito-focus-ring);
}

html[data-theme='dark'] input::placeholder,
html[data-theme='dark'] textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 1;
}

html[data-theme='dark'] .saito-module,
html[data-theme='dark'] .saito-sidebar-element,
html[data-theme='dark'] .saito-table-row,
html[data-theme='dark'] .saito-select .saito-slct,
html[data-theme='dark'] .saito-input-selection-box,
html[data-theme='dark'] .saito-input-contact-list {
  border-color: var(--border);
}

html[data-theme='dark'] .saito-table-header,
html[data-theme='dark'] .saitox-header-item {
  color: var(--muted-foreground);
}

html[data-theme='dark'] hr,
html[data-theme='dark'] .saito-divider {
  border-color: var(--border);
}
/*-------------------- PRISM THEME --------------------
 * A dark, modern theme inspired by the Prism blockchain explorer
 * Features: Deep dark backgrounds, indigo accent colors, modern card-based UI
 */

html[data-theme='prism'] {
  /* ============================================
     BASE COLOR SECTION
     ============================================ */

  /* Background Colors - Deep dark Prism palette */
  --palette-primary: #6366f1; /* --pr-accent */
  --palette-primary-dark: #4f46e5;
  --palette-on-primary: #ffffff;
  --palette-secondary: #a855f7; /* --pr-purple */
  --palette-on-secondary: #ffffff;
  --palette-bg: #0b0b10;
  --palette-bg-inverse: #e5e5eb;
  --palette-surface-1: rgba(26, 26, 38, 0.8); /* --pr-card with transparency */
  --palette-surface-2: rgba(32, 32, 46, 0.9); /* --pr-card-hover */
  --palette-surface-3: rgba(99, 102, 241, 0.15); /* --pr-accent-glow */
  --palette-surface-inverse: var(--palette-bg-inverse);
  --palette-outline: #2a2a3a; /* --pr-border */
  --palette-outline-strong: #2a2a3a;
  --palette-bg-gradient:
    radial-gradient(circle at 18% 0%, rgba(99, 102, 241, 0.2), transparent 36rem),
    radial-gradient(circle at 88% 8%, rgba(168, 85, 247, 0.16), transparent 38rem),
    linear-gradient(180deg, #11111a 0%, var(--palette-bg) 55%, #08080c 100%);
  --palette-surface-gradient:
    linear-gradient(180deg, rgba(32, 32, 46, 0.94), rgba(18, 18, 28, 0.94));
  --palette-overlay-gradient:
    linear-gradient(145deg, var(--saito-overlay-panel-surface-low), var(--saito-overlay-panel-surface));

  --saito-background-color: var(--palette-bg);
  --saito-background-color-inverse: var(--palette-bg-inverse);
  --saito-canvas-background: var(--palette-bg-gradient);
  --saito-header-color: var(--saito-white);
  --saito-header-background: #0b0b10;

  /* Surface Colors - Card-based UI layers */
  --saito-surface-color: var(--palette-surface-1);
  --saito-surface-text: var(--saito-font-color);
  --saito-surface-hover: var(--palette-surface-2);
  --saito-surface-selected: var(--palette-surface-3);
  --saito-surface-inverse: var(--palette-surface-inverse);
  --saito-surface-inverse-text: #0b0b10;
  --saito-overlay-panel-bg: var(--saito-surface-color);
  --saito-overlay-panel-surface-low: rgba(32, 32, 46, 0.96);
  --saito-overlay-panel-surface: rgba(14, 14, 22, 0.98);
  --saito-overlay-panel-background: var(--palette-overlay-gradient);
  --saito-overlay-panel-border: color-mix(in srgb, var(--palette-primary) 28%, var(--palette-outline));
  --saito-overlay-panel-border-highlight: rgba(129, 140, 248, 0.28);
  --saito-overlay-panel-shadow:
    0 28px 80px -18px rgba(99, 102, 241, 0.36),
    0 14px 34px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 var(--saito-overlay-panel-border-highlight);
  --saito-modal-background: var(--saito-overlay-panel-background);
  --saito-modal-shadow: var(--saito-overlay-panel-shadow);
  --saito-modal-texture: none;
  --saito-card-bg: var(--saito-surface-color);
  --saito-card-bg-hover: var(--saito-surface-hover);
  --saito-card-border-initial: var(--saito-border-color);
  --saito-card-border: var(--saito-border-color);
  --saito-card-shadow-hover: var(--saito-box-shadow);
  --saito-card-transform-hover: translateY(-2px);
  --saito-input-bg: var(--saito-surface-color);
  --saito-input-border: var(--saito-border-color);
  --saito-input-font: var(--saito-font-monospace);
  --saito-table-header-transform: uppercase;
  --saito-table-header-size: 11px;
  --saito-table-header-letter-spacing: 0.5px;
  --saito-button-secondary-bg: var(--saito-surface-color);
  --saito-button-secondary-bg-hover: var(--saito-surface-hover);
  --saito-button-secondary-fg: var(--saito-primary);
  --saito-button-secondary-fg-hover: var(--saito-primary-text);

  --saito-bubble-background: linear-gradient( 145deg, color-mix(in srgb, var(--saito-background-color) 86%, var(--saito-primary) 14%), color-mix(in srgb, var(--saito-background-color) 92%, var(--saito-surface-hover) 8%) );
  --saito-bubble-shadow: 0 10px 24px color-mix(in srgb, var(--palette-shadow) 32%, transparent), 0 2px 7px color-mix(in srgb, var(--palette-shadow) 20%, transparent), inset 0 1px 0 color-mix(in srgb, var(--saito-primary) 34%, transparent);

  /* Primary Colors - Indigo accent from Prism */
  --saito-primary: var(--palette-primary);
  --saito-primary-dark: var(--palette-primary-dark);
  --saito-primary-text: var(--palette-on-primary);
  --saito-primary-background: linear-gradient(45deg, #6366f1 0%, #818cf8 55%, #6366f1 100%)
    transparent no-repeat left top / 400% auto;

  /* Secondary Colors */
  --saito-secondary: var(--palette-secondary);
  --saito-secondary-text: var(--palette-on-secondary);

  /* ============================================
     FONTS SECTION
     ============================================ */

  /* Font Colors - Light text on dark background */
  --saito-font-color-primary: #e5e5eb; /* --pr-text */
  --saito-font-color-heavy: #ffffff;
  --saito-font-color-light: #8888a0; /* --pr-text-secondary */
  --saito-font-color-secondary: #8888a0;
  --saito-font-color-inverse: #0b0b10;

  /* Font Family - Modern system fonts like Prism */
  --saito-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --saito-font-monospace: 'SF Mono', 'Fira Code', monospace;

  /* ============================================
     TINTS & HIGHLIGHTS
     ============================================ */

  --saito-highlight: rgba(99, 102, 241, 0.1); /* Subtle indigo glow */
  --saito-highlight-heavy: rgba(99, 102, 241, 0.2);

  /* ============================================
     BORDER COLORS
     ============================================ */

  --saito-border-color: var(--palette-outline);
  --saito-border-color-light: var(--palette-outline);
  --saito-border-color-dark: var(--palette-outline);
  --border-color-general-dividers: var(--palette-outline-strong);
  --saito-border-radius: 12px; /* --pr-radius */
  --saito-identicon-border-radius: 50%;

  /* ============================================
     BOX SHADOWS - Modern, subtle shadows
     ============================================ */

  --saito-box-shadow-low: 0px 1px 2px rgba(0, 0, 0, 0.3);
  --saito-box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4), 0px 2px 4px rgba(0, 0, 0, 0.2);
  --saito-box-shadow-high:
    0px 12px 32px -8px rgba(99, 102, 241, 0.3), 0px 8px 16px rgba(0, 0, 0, 0.4);

  /* ============================================
     COMPONENT-SPECIFIC OVERRIDES
     ============================================ */

  /* Buttons - Match Prism's button style */
  button,
  .saito-button-primary {
    font-weight: 600;
    transition:
      opacity 0.2s,
      transform 0.2s;
  }

  button:hover,
  .saito-button-primary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
  }

  .saito-modal-title {
    color: var(--saito-font-color-heavy);
  }

  .saito-table-header {
    color: var(--saito-font-color-secondary);
  }

  /* Links - Indigo accent */
  a {
    color: var(--saito-primary);
    transition: opacity 0.2s;
  }

  a:hover {
    opacity: 0.8;
    color: var(--saito-primary-dark);
  }

  /* Status Colors - Match Prism's semantic colors */
  /* Success/Green */
  --saito-green: #22c55e; /* --pr-green */

  /* Error/Red */
  --saito-red: #ef4444; /* --pr-red */
  --saito-red-dark: #dc2626;

  /* Warning/Yellow */
  --saito-yellow-light: #f59e0b; /* --pr-yellow */

  /* Info/Blue */
  --saito-blue: #3b82f6; /* --pr-blue */

  /* ============================================
     HEADER STYLING
     ============================================ */

  #saito-header {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
  }

  /* Scrollbars & ::selection: shared in saito-dark-themes-chrome.css */

  /* ============================================
     UTILITY CLASSES - Prism-inspired
     ============================================ */

  /* Monospace text for addresses/hashes */
  .mono,
  code {
    font-family: var(--saito-font-monospace);
    color: var(--saito-primary);
  }

  /* Accent glow effect */
  .accent-glow {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--saito-primary);
  }

  /* Card hover effect */
  .card-hover {
    transition:
      transform 0.3s,
      box-shadow 0.3s;
  }

  .card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--saito-box-shadow-high);
  }
}
/*-------------------- LITE THEME --------------------
 * Light UI: warm background from :root tokens; header uses dreamscape brand treatment.
 */

html[data-theme='lite'] {
  --palette-bg: #ffffff;
  --palette-bg-inverse: #4e4e4e;
  --palette-surface-1: rgba(102, 102, 102, 0.125);
  --palette-surface-2: rgba(102, 102, 102, 0.2);
  --palette-surface-3: rgba(68, 68, 68, 0.33);
  --palette-surface-inverse: rgba(255, 255, 255, 0.85);
  --palette-outline: color-mix(in srgb, var(--saito-gray-200) 73%, transparent);
  --palette-outline-strong: var(--saito-gray-750);
  --palette-bg-gradient:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--palette-bg) 88%, var(--saito-gray-200)) 0%,
      color-mix(in srgb, var(--palette-bg) 94%, var(--saito-orange)) 2%,
      color-mix(in srgb, var(--palette-bg) 92%, var(--saito-gray-200)) 100%
    );
  --palette-surface-gradient:
    linear-gradient(180deg, color-mix(in srgb, var(--saito-white) 82%, var(--saito-orange) 18%), var(--palette-bg));
  --palette-overlay-gradient:
    linear-gradient(145deg, var(--saito-overlay-panel-surface-low), var(--saito-overlay-panel-surface));

  --saito-background-color: var(--palette-bg);
  --saito-background-color-inverse: var(--palette-bg-inverse);
  --saito-canvas-background: var(--palette-bg-gradient);
  --saito-surface-color: var(--palette-surface-1);
  --saito-surface-hover: var(--palette-surface-2);
  --saito-surface-selected: var(--palette-surface-3);
  --saito-surface-inverse: var(--palette-surface-inverse);
  --saito-border-color: var(--palette-outline);
  --border-color-general-dividers: var(--palette-outline-strong);
  --saito-identicon-border-radius: var(--saito-border-radius);
  --saito-overlay-panel-surface-low: color-mix(in srgb, var(--saito-white) 88%, var(--saito-orange) 12%);
  --saito-overlay-panel-surface: var(--palette-bg);
  --saito-overlay-panel-background: var(--palette-overlay-gradient);
  --saito-modal-background: var(--saito-overlay-panel-background);
  --saito-overlay-panel-border: color-mix(in srgb, var(--palette-outline-strong) 34%, transparent);
  --saito-overlay-panel-border-highlight: color-mix(in srgb, var(--saito-white) 72%, transparent);
  --saito-overlay-panel-shadow:
    0 18px 48px color-mix(in srgb, var(--saito-gray-900) 18%, transparent),
    0 2px 8px color-mix(in srgb, var(--saito-gray-900) 10%, transparent),
    inset 0 1px 0 var(--saito-overlay-panel-border-highlight);
  --saito-modal-shadow: var(--saito-overlay-panel-shadow);
  --saito-header-color: var(--saito-white);
  --saito-header-background: var(--dreamscape);
  --saito-menu-icon-color: var(--saito-black);
  --saito-menu-icon-hover-color: var(--saito-black);
  --saito-primary-text: #222;
  --saito-button-primary-fg: var(--saito-white);
  --saito-button-secondary-fg-hover: var(--saito-white);
  --saito-cta-logo: var(--saito-primary);
  --palette-on-primary: #ffffff;
}

html[data-theme='lite'] .saito-header-menu-section .module-menu > ul > li .saito-module-menu-icon {
  filter: brightness(0);
}

html[data-theme='lite'] .saito-header-menu-section .module-menu > ul > li:hover .saito-module-menu-icon {
  filter: brightness(0) invert(1);
}

html[data-theme='lite'] .saito-menu i::before {
  -webkit-text-stroke-color: var(--saito-black);
}

html[data-theme='lite'] .saito-menu li:hover i::before {
  color: var(--saito-white);
  -webkit-text-stroke-color: var(--saito-white);
}

html[data-theme='lite'] #saito-header {
  background: var(--dreamscape);
}
/*  alert  */

.saito-notification-dot {
  min-width: 2rem;
  min-height: 2rem;
  padding: 1px 3px;
  border-radius: 0.5rem;
  background-color: var(--saito-notification-bg);
  color: var(--saito-notification-fg);
  position: absolute;
  left: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1.8rem;
  z-index: 2;
}

.saito-header-appspace-option .saito-notification-dot {
  left: 60%;
  bottom: unset;
  top: 5%;
}

.online-status-indicator:after {
  position: absolute;
  display: none;
  content: "";
  border-radius: 100%;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--saito-notification-online-bg);
}

.online .online-status-indicator:after, .stun .online-status-indicator:after {
  display: block;
  top: 3.9rem;
  left: 3.75rem;
  border: var(--border-thickness-medium) solid var(--saito-notification-ring);
}

.stun .online-status-indicator{
}

.online-status-indicator i {
  display: none;
  position: absolute;
}

.stun .online-status-indicator i {
  display: block;
  top: 2.9rem;
  left: 2.75rem;
  font-size: 8px;
}

.busy .online-status-indicator:after {
  background-color: var(--saito-notification-busy-bg);
}


.fileshare-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  text-align: center;
}
/* ----------------------------------------------------------------
 * Scrollbars & text selection shared by dark-mode themes (dark, raven, prism, noir).
 * Uses theme tokens set on html[data-theme='…'] so each skin keeps its colors.
 *----------------------------------------------------------------*/

html[data-theme='dark'],
html[data-theme='raven'],
html[data-theme='prism'],
html[data-theme='noir'] {
  scrollbar-width: thin;
  scrollbar-color: var(--saito-border-color) var(--saito-background-color);
}

html[data-theme='dark'] ::-webkit-scrollbar,
html[data-theme='raven'] ::-webkit-scrollbar,
html[data-theme='prism'] ::-webkit-scrollbar,
html[data-theme='noir'] ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html[data-theme='dark'] ::-webkit-scrollbar-track,
html[data-theme='raven'] ::-webkit-scrollbar-track,
html[data-theme='prism'] ::-webkit-scrollbar-track,
html[data-theme='noir'] ::-webkit-scrollbar-track {
  background: var(--saito-background-color);
}

html[data-theme='dark'] ::-webkit-scrollbar-thumb,
html[data-theme='raven'] ::-webkit-scrollbar-thumb,
html[data-theme='prism'] ::-webkit-scrollbar-thumb,
html[data-theme='noir'] ::-webkit-scrollbar-thumb {
  background: var(--saito-border-color);
  border-radius: 4px;
}

html[data-theme='dark'] ::-webkit-scrollbar-thumb:hover,
html[data-theme='raven'] ::-webkit-scrollbar-thumb:hover,
html[data-theme='prism'] ::-webkit-scrollbar-thumb:hover,
html[data-theme='noir'] ::-webkit-scrollbar-thumb:hover {
  background: var(--saito-primary);
}

html[data-theme='dark'] ::selection,
html[data-theme='raven'] ::selection,
html[data-theme='prism'] ::selection,
html[data-theme='noir'] ::selection {
  background: var(--saito-primary);
  color: var(--saito-primary-text);
}
body::before {
  transition:
    opacity 1.2s linear,
    z-index 1.2s ease-in-out;
}
body.xclose::before {
  opacity: 0 !important;
  z-index: -2 !important;
}
