/* Page-specific rules for the Sluse web app. Everything shared lives in
   tokens.css and base.css (copied from internal/brand/assets at build time);
   this file only adds what those do not have. */

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

.login {
  max-width: 26rem;
  margin: 6vh auto 0;
}

.footer {
  margin-top: 2.5rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 50;
  transform: translateX(-50%);
  max-width: calc(100vw - 2rem);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  background: var(--solid);
  color: var(--on-solid);
  box-shadow: var(--shadow-pop);
}

.dropzone .mark {
  width: 72px;
  height: 72px;
}

/* The unfinished-send banner keeps its × in the top-right corner. */
.resume-banner {
  position: relative;
  padding-right: 2.75rem;
}

.resume-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  min-width: 2rem;
  line-height: 1;
  font-size: 1.1rem;
}

/* The account name opens a menu; say so. */
#session-user::after {
  content: " \25BE";
}

/* A row whose buttons are all hidden takes no space. */
.row:not(:has(> :not(.hidden))) {
  display: none;
}

/* An expired or deleted send in the history view reads quieter: its title
   recedes and the whole row is dimmed, but the Details action stays legible. */
.is-gone {
  opacity: 0.62;
}

.is-gone .item-title {
  color: var(--text-2);
}

/* Folders in the Files tree indent their contents under the folder name. */
.file-tree .file-tree-children {
  padding-left: 0.9rem;
}

/* An image sequence is one row with a small film-strip glyph; its frames
   indent underneath it like a folder's contents. */
.file-tree > li.file-sequence,
.file-tree .file-tree-children > li.file-sequence {
  display: block;
}

.sequence-glyph {
  position: relative;
  flex: none;
  width: 18px;
  height: 14px;
  border-radius: 2px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.sequence-glyph::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 2px;
  bottom: 3px;
  left: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--line-strong) 0 2px,
    transparent 2px 4px
  );
}

.sequence-glyph::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 2px,
    var(--line-strong) 2px 4px
  );
}

@media (max-width: 560px) {
  #transfer-body > li {
    flex-wrap: wrap;
  }

  #transfer-body > li > .grow {
    flex-basis: 100%;
  }

  /* The "more" button sits at the left here, so its menu opens rightwards. */
  #transfer-body .menu-list {
    right: auto;
    left: 0;
  }
}
