:root {
  --bg-0: #071423;
  --bg-1: #0a1d2f;
  --bg-2: #102a3f;
  --card: #f7fbff;
  --card-2: #eef7ff;
  --line: #c6d8ea;
  --text: #0f2b40;
  --muted: #4d667a;
  --blue: #0c78b7;
  --blue-2: #086aa1;
  --green: #59b91e;
  --green-2: #4ba117;
  --shadow: 0 16px 36px rgba(6, 25, 40, 0.25);
  --radius: 14px;
  --bp-md: 920px;
  --bp-sm: 720px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(12, 120, 183, 0.28), transparent 60%),
    radial-gradient(820px 360px at 92% 4%, rgba(89, 185, 30, 0.22), transparent 64%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 48%, var(--bg-2) 100%);
  min-height: 100vh;
}

.wrap {
  max-width: 1180px;
  margin: 22px auto;
  padding: 0 14px;
}

.card {
  border: 1px solid rgba(179, 206, 231, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 251, 255, 0.95) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(232, 246, 255, 0.88) 0%, rgba(241, 250, 255, 0.72) 100%);
}

.portalBrand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.portalBrand__logo {
  width: 124px;
  height: 98px;
  object-fit: contain;
  display: block;
}

.title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.sub {
  color: var(--muted);
  font-size: 12px;
}

.sectionTitle {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #123752;
}

.body {
  padding: 16px;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

.label {
  font-size: 12px;
  color: var(--muted);
}

.input {
  border: 1px solid #b6cee2;
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 14px;
  background: #fbfeff;
  color: var(--text);
}

.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(12, 120, 183, 0.18);
}

.btn {
  border: 1px solid #b7cee2;
  background: linear-gradient(180deg, rgba(166, 214, 239, 0.86) 0%, rgba(131, 191, 224, 0.9) 100%);
  color: #10324a;
  border-radius: 999px;
  padding: 7px 12px;
  min-height: 34px;
  min-width: 98px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 8px 18px rgba(7, 26, 43, 0.12);
}

.btn:hover {
  filter: none;
  border-color: rgba(24, 117, 159, 0.58);
  background: linear-gradient(180deg, rgba(176, 220, 243, 0.9) 0%, rgba(141, 199, 230, 0.94) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 10px 22px rgba(7, 26, 43, 0.16);
}

.btn:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.85) inset,
    0 5px 12px rgba(7, 26, 43, 0.16);
}

.btn.alt {
  color: var(--text);
  border-color: #c2d7e8;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(236, 247, 255, 0.84) 100%);
}

.btn.alt:hover {
  border-color: rgba(24, 117, 159, 0.48);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(234, 245, 255, 0.9) 100%);
}

.btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.filesIconBtn {
  min-width: 38px;
  width: 38px;
  padding: 8px 0;
  font-size: 17px;
  line-height: 1;
  text-align: center;
}

.dragNavArmed {
  border-color: rgba(17, 125, 172, 0.82);
  box-shadow: 0 0 0 2px rgba(17, 125, 172, 0.22);
}

.dragNavPulse {
  animation: dragUpFlash 0.15s ease-in-out 3;
}

td[data-folder-drop-path].dragNavArmed {
  border-radius: 8px;
  outline: 2px solid rgba(17, 125, 172, 0.65);
  outline-offset: -2px;
}

@keyframes dragUpFlash {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.45); }
  100% { filter: brightness(1); }
}

.msg {
  margin-top: 10px;
  font-size: 13px;
}

.msg.bad {
  color: #9f1528;
}

.msg.good {
  color: #1b6c40;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}

.accountPane {
  display: grid;
  gap: 10px;
  max-width: 600px;
}

.accountPwMismatch {
  margin: -2px 0 0;
}

.pwWrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pwWrap .pwInput {
  width: 100%;
  padding-right: 40px;
}

.pwPeek {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: #56748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.pwPeek svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.pwPeek.active {
  color: #1b4f6f;
}

.pwPeek .icon-open {
  display: none;
}

.pwPeek.active .icon-open {
  display: block;
}

.pwPeek.active .icon-closed {
  display: none;
}

.tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  align-items: center;
  min-height: 56px;
}

.tabs__nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.tabs__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.tabs__uploadProg {
  position: relative;
  width: 360px;
  max-width: 48vw;
  height: 36px;
  border: 1px solid #b9d2e5;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #f9fcff 0%, #eef5fb 100%);
}

.tabs__uploadProgBar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(12, 120, 183, 0.95) 0%, rgba(89, 185, 30, 0.95) 100%);
  transition: width 140ms linear;
}

.tabs__uploadProgText {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(3, 15, 24, 0.35);
  pointer-events: none;
}

.tab {
  border: 1px solid #b7cee2;
  background: #eef7ff;
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(180deg, rgba(89, 185, 30, 0.22) 0%, rgba(12, 120, 183, 0.2) 100%);
  border-color: rgba(24, 117, 159, 0.55);
}

.panel {
  padding: 16px;
  min-height: 320px;
}

.filesLayout {
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 12px;
}

.filesRoots,
.filesMain {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fcff;
}

.filesRoots {
  padding: 10px;
}

.rootBtns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.rootDivider {
  width: 52%;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    rgba(98, 131, 156, 0.08) 0%,
    rgba(98, 131, 156, 0.75) 50%,
    rgba(98, 131, 156, 0.08) 100%
  );
}

.rootBtn {
  border: 1px solid #c5d8ea;
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.rootBtn.active {
  background: linear-gradient(90deg, rgba(12, 120, 183, 0.14), rgba(89, 185, 30, 0.17));
  border-color: rgba(28, 127, 102, 0.6);
}

.rootBtn.dropTargetRoot {
  border-color: rgba(17, 125, 172, 0.75);
  box-shadow: inset 0 0 0 2px rgba(17, 125, 172, 0.2);
  background: linear-gradient(90deg, rgba(12, 120, 183, 0.2), rgba(89, 185, 30, 0.18));
}

.filesMain {
  padding: 10px;
  position: relative;
  transition: box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.filesDropTag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  border: 1px solid rgba(9, 99, 143, 0.44);
  background: linear-gradient(180deg, rgba(8, 102, 156, 0.95) 0%, rgba(9, 78, 122, 0.95) 100%);
  color: #f0fbff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1px;
  box-shadow: 0 10px 18px rgba(5, 36, 56, 0.28);
}

.filesMain.dropTargetCurrent {
  border-color: rgba(17, 125, 172, 0.72);
  background: linear-gradient(180deg, rgba(238, 249, 255, 0.96) 0%, rgba(228, 245, 255, 0.95) 100%);
  box-shadow: inset 0 0 0 2px rgba(25, 131, 170, 0.24);
}

.filesMain.dropTargetCurrent > *:not(.filesDropTag) {
  filter: blur(1.3px);
}

.filesTbl tbody tr.filesRow.dropTarget {
  border-radius: 10px;
  outline: 2px solid rgba(17, 125, 172, 0.65);
  outline-offset: -2px;
  background: linear-gradient(180deg, rgba(232, 248, 255, 0.95) 0%, rgba(223, 243, 255, 0.93) 100%);
}

.filesTbl tbody tr.filesRow.dropTarget > td {
  filter: blur(1.2px);
}

.filesBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.filesBar .filesIconBtn {
  flex: 0 0 38px;
}

.filesTbl {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 13px;
  border-radius: 10px;
  overflow: hidden;
}

.filesTbl th,
.filesTbl td {
  border-bottom: 1px solid var(--line);
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
}

.filesTbl thead th {
  background: #edf6ff;
}

.filesTbl thead th:nth-child(2),
.filesTbl td:nth-child(2) { width: 68px; }
.filesTbl thead th:nth-child(3),
.filesTbl td:nth-child(3) { width: 90px; }
.filesTbl thead th:nth-child(4),
.filesTbl td:nth-child(4) { width: 132px; }
.filesTbl thead th:nth-child(5),
.filesTbl td:nth-child(5) { width: 198px; }

.filesTbl td[data-label="Name"] {
  max-width: 0;
}

.filesTbl td[data-label="Actions"] .row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
}

.filesTbl thead th:nth-child(5) {
  text-align: center;
}

.filesTbl th:nth-child(2),
.filesTbl th:nth-child(3),
.filesTbl th:nth-child(4),
.filesTbl th:nth-child(5),
.filesTbl td:nth-child(2),
.filesTbl td:nth-child(3),
.filesTbl td:nth-child(4),
.filesTbl td:nth-child(5) {
  text-align: right;
}

.filesTbl tbody tr.filesRow:hover {
  background: #dfefff;
}

.filesTbl tbody tr.filesRow.sel {
  background: #d6f3db;
}

.filesTbl tbody tr.filesRow[draggable="true"] {
  cursor: grab;
}

.filesTbl tbody tr.filesRow.dragging {
  opacity: 0.65;
  cursor: grabbing;
}

.thBtn {
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.thBtn:hover {
  color: #0a6484;
}

.linkBtn {
  background: none;
  border: none;
  color: #0a6484;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font: inherit;
}

.linkBtn:hover {
  color: #0a4d66;
}

.fileNameClip {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  line-height: 1.25;
}

.fileNameClip::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.fileNameClip .linkBtn {
  display: inline-block;
  white-space: nowrap;
  text-decoration-thickness: 1px;
  max-width: none;
}

.btnMini {
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.1;
}

.btnMini.iconBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 34px;
  height: 28px;
  min-width: 34px;
  max-width: 34px;
  flex: 0 0 34px;
}

.btnMini.iconBtn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.filesTbl td[data-label="Actions"] .btnMini.iconBtn {
  width: 30px;
  height: 28px;
  min-width: 30px;
  max-width: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  border: 1px solid #c3d7e8;
  background: #f7fbff;
  color: #0f2b40;
}

.filesTbl td[data-label="Actions"] .btnMini.iconBtn svg {
  width: 19px;
  height: 19px;
}

.filesTbl td[data-label="Actions"] .btnMini.iconBtn svg.actionGlyph {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filesTbl td[data-label="Actions"] .btnMini.iconBtn svg.actionGlyph.actionGlyphShare circle {
  fill: currentColor;
  stroke: none;
}

.filesTbl td[data-label="Actions"] .btnMini.iconBtn:hover {
  background: linear-gradient(180deg, #f9fcff 0%, #eef5fb 100%);
  border-color: #c3d7e8;
  color: var(--text);
}

.filesTbl td[data-label="Actions"] .btnMini {
  min-width: 0;
  text-align: center;
}

.filesTbl td[data-label="Actions"] .selectBtn {
  flex: 0 0 auto;
  width: auto;
  min-width: 58px;
  height: 28px;
  padding-left: 6px;
  padding-right: 6px;
  font-size: 12px;
}

.shareLinksTbl th:nth-child(1),
.shareLinksTbl td:nth-child(1) {
  width: 46%;
  text-align: left;
  min-width: 0;
}

.shareLinksTbl th:nth-child(2),
.shareLinksTbl td:nth-child(2),
.shareLinksTbl th:nth-child(3),
.shareLinksTbl td:nth-child(3),
.shareLinksTbl th:nth-child(4),
.shareLinksTbl td:nth-child(4),
.shareLinksTbl th:nth-child(5),
.shareLinksTbl td:nth-child(5) {
  width: 10%;
  text-align: center;
  white-space: nowrap;
}

.shareLinksTbl th:nth-child(5),
.shareLinksTbl td:nth-child(5) {
  width: 24%;
}

.shareLinksTbl td:nth-child(1) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shareLinksTbl td:nth-child(5) .row {
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.shareLinksTbl td:nth-child(5) .btnMini {
  font-size: 10px;
  padding: 3px 5px;
  min-width: 0;
  min-height: 26px;
  height: 26px;
  line-height: 1;
}

.personalSharesTbl th:nth-child(1),
.personalSharesTbl td:nth-child(1) {
  width: auto;
  text-align: left;
  min-width: 0;
}

.personalSharesTbl th:nth-child(2),
.personalSharesTbl td:nth-child(2),
.personalSharesTbl th:nth-child(3),
.personalSharesTbl td:nth-child(3) {
  text-align: center;
  white-space: nowrap;
}

.personalSharesTbl col.psColPath { width: 48%; }
.personalSharesTbl col.psColShared { width: 26%; }
.personalSharesTbl col.psColActions { width: 26%; }

.personalSharesTbl td:nth-child(1) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.personalSharesTbl td:nth-child(3) .row {
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.personalSharesTbl td:nth-child(3) {
  overflow: hidden;
}

.personalSharesTbl td:nth-child(3) .btnMini {
  white-space: nowrap;
}

.shareLinksTbl,
.personalSharesTbl {
  table-layout: fixed;
}

.modTs {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
  line-height: 1.05;
}

.imgModal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.imgModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 19, 30, 0.72);
}

.imgModal__panel {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  background: #f8fcff;
  border: 1px solid #b9d2e5;
  border-radius: 12px;
  box-shadow: 0 24px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.imgModal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.imgModal__stage {
  position: relative;
  height: calc(100vh - 124px);
  min-height: 320px;
  background: #071623;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imgModal__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.imgModal__video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
}

.imgModal__videoWrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.imgModal__audioCtl {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(760px, 94%);
  padding: 7px 9px;
  border: 1px solid rgba(173, 198, 212, 0.45);
  border-radius: 8px;
  background: rgba(11, 29, 42, 0.7);
}

.imgModal__muteBtn {
  padding: 6px 10px;
}

.imgModal__volLabel {
  color: #d9e8f3;
  font-size: 12px;
}

.imgModal__volSlider {
  flex: 1;
}

.imgModal__audioHint {
  width: min(760px, 94%);
  color: #d3e8f5;
  text-align: left;
}

.imgModal__videoErr {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(235, 132, 132, 0.5);
  border-radius: 6px;
  background: rgba(69, 20, 20, 0.25);
  color: #ffd3d3;
}

.imgModal__videoErr .linkBtn {
  color: #ffdede;
}

.imgArrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(20, 42, 58, 0.35);
  color: #fff;
  border-radius: 8px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms ease, background 150ms ease;
}

.imgArrow.left {
  left: 12px;
}

.imgArrow.right {
  right: 12px;
}

.imgArrow.show {
  opacity: 1;
}

.imgArrow:hover {
  background: rgba(20, 42, 58, 0.7);
}

.shareModal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.shareModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 19, 30, 0.72);
}

.shareModal__panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 22px));
  margin: 24px auto;
  border: 1px solid #b9d2e5;
  border-radius: 12px;
  background: #f8fcff;
  box-shadow: 0 24px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.shareModal__head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.shareModal__body {
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.shareUrl {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #c3d8ea;
  border-radius: 9px;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.shareUrl__copy {
  border: 1px solid #b7cee2;
  background: #f2f7fc;
  color: var(--text);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease;
}

.shareUrl:hover .shareUrl__copy {
  opacity: 1;
}

.sharePublicRow {
  align-items: center;
}

.sharePublicRow__title {
  flex: 1 1 300px;
  min-width: 220px;
}

.shareModal__foot {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.newFolderModal__panel {
  margin-top: 56px;
}

.nfDialogFoot {
  justify-content: space-between;
  gap: 10px;
}

.nfDialogPath {
  margin-left: 0;
  text-align: left;
  max-width: 52%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nfDialogActions {
  margin-left: auto;
}

.root-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.root {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  padding: 10px;
}

.root .k {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.root .v {
  font-size: 13px;
  margin-top: 2px;
}

@media (max-width: 920px) {
  .filesLayout {
    grid-template-columns: 1fr;
  }

  .filesRoots {
    order: 2;
  }

  .filesMain {
    order: 1;
  }
}

@media (max-width: 720px) {
  .wrap {
    margin: 10px auto;
    padding: 0 8px;
  }

  .head {
    flex-direction: column;
    align-items: flex-start;
  }

  .portalBrand {
    width: 100%;
  }

  .portalBrand__logo {
    width: 96px;
    height: 74px;
  }

  .panel {
    padding: 10px;
  }

  .tabs {
    padding: 10px;
    min-height: 50px;
    flex-wrap: wrap;
  }

  .tabs__nav {
    width: 100%;
  }

  .tabs__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .tabs__uploadProg {
    width: 100%;
    max-width: none;
  }

  .filesBar {
    align-items: flex-start;
  }

  .filesBar .row {
    width: 100%;
  }

  .filesBar .btn,
  .filesBar a.btn {
    flex: 1 1 120px;
    text-align: center;
  }

  .filesBar .filesIconBtn {
    flex: 0 0 44px;
    min-width: 44px;
    width: 44px;
  }

  .filesDropTag {
    top: 8px;
    right: 8px;
    max-width: calc(100% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .filesTbl {
    border-collapse: separate;
    border-spacing: 0 8px;
  }

  .filesTbl thead {
    display: none;
  }

  .filesTbl tbody,
  .filesTbl tr,
  .filesTbl td {
    display: block;
    width: 100%;
  }

  .filesTbl tr.filesRow {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 4px 0;
  }

  .filesTbl tr.filesRow td {
    border-bottom: none;
    padding: 6px 10px;
  }

  .filesTbl tr.filesRow td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .filesTbl tr.filesRow td[data-label="Actions"] .row {
    width: 100%;
  }

  .filesTbl tr.filesRow td[data-label="Actions"] .btn,
  .filesTbl tr.filesRow td[data-label="Actions"] a.btn {
    flex: 1 1 120px;
    text-align: center;
  }

  .shareLinksTbl,
  .personalSharesTbl {
    display: table;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
  }

  .shareLinksTbl thead,
  .personalSharesTbl thead {
    display: table-header-group;
  }

  .shareLinksTbl tbody,
  .personalSharesTbl tbody {
    display: table-row-group;
    width: auto;
  }

  .shareLinksTbl tr,
  .personalSharesTbl tr {
    display: table-row;
    width: auto;
  }

  .shareLinksTbl th,
  .shareLinksTbl td,
  .personalSharesTbl th,
  .personalSharesTbl td {
    display: table-cell;
    width: auto;
  }

  .shareLinksTbl td::before,
  .personalSharesTbl td::before {
    content: none;
    display: none;
  }

  .shareLinksTbl td:nth-child(5) .row,
  .personalSharesTbl td:nth-child(3) .row {
    width: auto;
  }

  .shareLinksTbl th:nth-child(1),
  .shareLinksTbl td:nth-child(1) {
    width: 40%;
  }

  .shareLinksTbl th:nth-child(2),
  .shareLinksTbl td:nth-child(2),
  .shareLinksTbl th:nth-child(3),
  .shareLinksTbl td:nth-child(3),
  .shareLinksTbl th:nth-child(4),
  .shareLinksTbl td:nth-child(4) {
    width: 11%;
  }

  .shareLinksTbl th:nth-child(5),
  .shareLinksTbl td:nth-child(5) {
    width: 27%;
  }

  .shareLinksTbl td:nth-child(5) .btnMini {
    font-size: 9px;
    padding: 2px 4px;
  }

  .fileNameClip {
    max-width: 100%;
  }

  .imgModal__panel {
    width: calc(100vw - 12px);
    margin: 6px auto;
  }

  .imgModal__stage {
    height: calc(100vh - 106px);
  }
}
