@font-face {
  font-family: Editor-Font;
  src: url("/fonts/JetBrains Mono Regular Nerd Font Complete Mono.ttf")
    format("truetype");
}

body {
  margin: 0px 0px;
  max-width: 100%;
  color: white;
  font-family: "Quicksand", sans-serif;
  background-color: rgb(0, 0, 0);
  cursor: default !important;
  animation: none;
}

html {
  overflow: hidden !important;
}

a,
u {
  text-decoration: none;
}

.main-loading-overlay {
  cursor: default !important;
  overflow: hidden;
  z-index: 100000000;
  transition: visibility 0s 0.3s, opacity 0.3s linear;
  visibility: visible;
  opacity: 1;
  display: flex;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(9, 24, 43, 0.66), rgba(9, 24, 43, 0.66)), #292929;
  isolation: isolate;
}

body.liem-page-entering > :not(.main-loading-overlay):not(script):not(style):not(link) {
  animation: elsiePageContentIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: filter, opacity, transform;
}

.main-loading-overlay,
.main-loading-overlay * {
  filter: none !important;
}

.main-loading-overlay .spinner-content {
  position: relative;
  z-index: 1;
}

.loading-spinner {
  animation: spinner 1.5s infinite linear;
}

.ping {
  --uib-size: 45px;
  --uib-speed: 2s;
  --uib-color: rgb(255, 255, 255);

  position: relative;
  height: var(--uib-size);
  width: var(--uib-size);
}

.ping::before,
.ping::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background-color: var(--uib-color);
  animation: pulse var(--uib-speed) linear infinite;
  transform: scale(0);
  opacity: 0;
}

.ping::after {
  animation-delay: calc(var(--uib-speed) / -2);
}

@keyframes pulse {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.toolbar {
  min-height: 54px;
  width: 100%;
  background-color: #1e1e1e;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

.toolbar .homebtn {
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 14px;
  top: 14px;
  background-color: #1360c5;
  border: none;
  color: white;
  border-radius: 10px;
  transition: all 0.1s;
  font-weight: 700;
  height: 28px;
  width: 80px;
}

.toolbar .homebtn:hover {
  background-color: #024cbb;
  transition: all 0.1s;
}

.toolbar .homebtn img {
  width: 14px;
}

.toolbar .homebtn span {
  margin-left: 6px;
}

.elsie-compact-nav {
  position: absolute;
  left: 104px;
  top: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
  padding: 2px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: max-width 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  z-index: 3;
}

.elsie-compact-nav:hover,
.elsie-compact-nav:focus-within {
  max-width: 500px;
  background: rgba(19, 96, 197, 0.16);
  border-color: rgba(100, 181, 246, 0.42);
}

.elsie-compact-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 32px;
  padding: 0 10px;
  border-radius: 6px;
  background-color: transparent;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  gap: 4px;
  transition: background-color 0.16s ease, transform 0.16s ease, min-width 0.2s ease, gap 0.2s ease;
}

.elsie-compact-nav a:hover,
.elsie-compact-nav a:focus-visible {
  background: #1360c5;
  transform: translateY(-1px);
  outline: none;
}

.elsie-compact-nav img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
  flex: 0 0 auto;
}

.elsie-compact-nav span {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  margin-left: 0;
  transition: max-width 0.2s ease, opacity 0.16s ease, margin-left 0.2s ease;
}

.elsie-compact-nav:hover span,
.elsie-compact-nav:focus-within span {
  max-width: 72px;
  opacity: 1;
  margin-left: 6px;
}

.elsie-toolbar-with-nav .toolbar-current-path {
  left: 290px;
  transition: opacity 0.15s ease;
}

.elsie-compact-nav:hover + .toolbar-current-path,
.elsie-compact-nav:focus-within + .toolbar-current-path {
  opacity: 0;
  pointer-events: none;
}

.toolbar .menubar {
  display: flex;
  flex-direction: row;
  margin-right: 14px;
}

.toolbar .menubar .btn {
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1360c5;
  border: none;
  color: white;
  border-radius: 10px;
  transition: all 0.1s;
  font-weight: 700;
  height: 28px;
  width: 80px;
}

#teacherDashboardBtn {
  width: 80px;
}

#markFolderBtn {
  width: auto;
  min-width: 104px;
  padding: 0 10px;
  white-space: nowrap;
}

#teacherDashboardBtn.is-marking,
#markFolderBtn.is-marking,
.toolbar .menubar .btn.is-marking {
  width: auto;
  min-width: 96px;
  white-space: nowrap;
}

.toolbar .menubar .btn:hover {
  background-color: #024cbb;
  transition: all 0.1s;
}

.toolbar .menubar .btn img {
  width: 14px;
}

.toolbar .menubar .btn span {
  margin-right: 6px;
}

.toolbar .headertxt {
  color: white;
  font-weight: 700;
  font-size: 30px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}

.toolbar-current-path {
  position: absolute;
  left: 290px;
  top: 11px;
  right: calc(50% + 170px);
  width: auto;
  max-width: 560px;
  min-width: 0;
  color: #d7d7d7;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
}

.toolbar-current-path.is-empty {
  opacity: 0;
}

.titlebar .menubar {
  display: flex;
  flex-direction: row;
  margin-top: 4px;
}

.titlebar .menubar .button {
  background-color: #1360c5;
  width: 90px;
  height: 54px;
  color: rgb(204, 108, 108);

  border-radius: 5px;
  transition: all 0.2s;
  margin-left: 2px;
  border: none;
  justify-content: center;
  align-items: center;
  align-content: center;
  justify-items: center;
}
.content {
  position: absolute;
  width: 100%;
  height: calc(100vh - 54px);
  overflow: hidden;
}

.agwrapper {
  background-color: #181818;
  color: white;
  font-family: Editor-Font;
  padding-top: 20px;
  width: 100%;
  height: 100%;
  padding-right: 35px;
  padding-bottom: 20px;
  padding-left: 35px;
  border: 5px solid white;
}
.main {
  margin-left: 322px;
  position: relative;
  min-width: 0;
  overflow: hidden;
  height: calc(100vh - 54px);
}

.not{
  z-index: 99;

  background-color: #024cbb;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.app_editor {
  position: relative;
  box-sizing: border-box;
  border-bottom: 2px solid rgb(41, 41, 41);
}

.app_editor_wrapper {
  width: 100%;
  overflow: visible !important;
}

.app_editor_dragbar {
  background-color: #222222;
  width: 100%;
  height: 2px;
  cursor: row-resize;
  opacity: 1;
}

.elsie-char-pop {
  position: fixed;
  z-index: 2147483646;
  pointer-events: none;
  color: #d8ebff;
  background: rgba(19, 96, 197, 0.18);
  border: 1px solid rgba(157, 204, 255, 0.32);
  border-radius: 6px;
  padding: 0 4px;
  font-family: Editor-Font, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.25;
  transform-origin: center bottom;
  animation: elsieCharPop 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.elsie-collab-presence {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 96px);
  right: 14px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  max-width: min(320px, calc(100vw - 28px));
  padding: 7px 12px;
  border: 1px solid rgba(104, 174, 255, 0.4);
  border-radius: 10px;
  background: rgba(8, 15, 24, 0.94);
  color: #e7f3ff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: collabSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(12px);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

@keyframes collabSlideIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes collabPulse {
  0% { box-shadow: 0 0 0 0 rgba(104, 174, 255, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(104, 174, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(104, 174, 255, 0); }
}

.elsie-collab-presence .elsie-collab-badge {
  animation: collabPulse 2.5s infinite ease-in-out;
}

.elsie-collab-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #46d483;
  box-shadow: 0 0 0 4px rgba(70, 212, 131, 0.16);
}

.elsie-collab-label {
  white-space: nowrap;
  font-weight: 700;
}

.elsie-collab-avatars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.elsie-collab-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, #1c7ed6, #22b8cf);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.elsie-collab-extra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #dceeff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.elsie-collab-presence button {
  height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(148, 204, 255, 0.48);
  border-radius: 6px;
  background: rgba(42, 124, 221, 0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.elsie-collab-cursor {
  position: fixed;
  z-index: 2147483644;
  width: 2px;
  height: 20px;
  pointer-events: none;
  background: #37d7ff;
  box-shadow: 0 0 0 1px rgba(5, 14, 24, 0.8);
}

.elsie-collab-cursor span {
  position: absolute;
  top: -18px;
  left: 0;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  border-radius: 6px 6px 6px 0;
  background: #1282d8;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  letter-spacing: 0;
  text-align: center;
}

.dirContent.is-shared-collab {
  position: relative;
  border-color: rgba(89, 172, 255, 0.58);
  background-image: linear-gradient(90deg, rgba(30, 117, 205, 0.18), transparent 58%);
}

.elsie-collab-file-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding-left: 6px;
  min-width: 0;
  cursor: pointer;
}

.elsie-collab-folder-line {
  width: 14px;
  height: 18px;
  border-left: 2px solid rgba(80, 188, 255, 0.78);
  border-bottom: 2px solid rgba(80, 188, 255, 0.78);
  border-radius: 0 0 0 5px;
  flex: 0 0 auto;
}

.elsie-collab-mini-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: linear-gradient(135deg, #1d79d2, #20b2c9);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.elsie-collab-access-popover {
  position: fixed;
  z-index: 2147483647;
  width: min(272px, calc(100vw - 16px));
  max-height: min(280px, calc(100dvh - 16px));
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(104, 174, 255, 0.42);
  border-radius: 8px;
  background: rgba(8, 15, 24, 0.96);
  color: #e7f3ff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
  font-family: Arial, Helvetica, sans-serif;
}

.elsie-collab-access-title {
  margin-bottom: 8px;
  color: #93d1ff;
  font-size: 12px;
  font-weight: 800;
}

.elsie-collab-access-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.elsie-collab-access-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.elsie-collab-access-state {
  color: #9fb4c9;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.elsie-collab-access-state.is-active {
  color: #64e59a;
}

.elsie-collab-access-empty {
  color: #9fb4c9;
  font-size: 12px;
}

@keyframes elsieCharPop {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.78);
  }

  45% {
    opacity: 1;
    transform: translateY(-8px) scale(1.18);
  }

  100% {
    opacity: 0;
    transform: translateY(-16px) scale(0.94);
  }
}

@keyframes elsiePageContentIn {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

body.liem-reduce-animations {
  animation: none;
}

html.liem-reduce-animations *,
body.liem-reduce-animations * {
  animation-duration: 0.12s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.1s !important;
  scroll-behavior: auto !important;
}

html.liem-reduce-animations .elsie-char-pop,
body.liem-reduce-animations .elsie-char-pop {
  display: none !important;
}

html.liem-reduce-animations .elsie-collab-presence,
body.liem-reduce-animations .elsie-collab-presence {
  backdrop-filter: none;
}

.xterm_wrapper {
  border-radius: 2px;
  padding-right: 8px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: #000;
}

.terminal {
  width: 100%;
  padding: 6px;
  box-sizing: border-box;
  overflow: hidden;
}

.checker_wrapper {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  color: white;
  background-color: rgb(0, 0, 0);
  z-index: 5;
  min-height: 120px;
  max-height: 45vh;
  overflow: hidden;
  border-top: 2px solid #292929;
  box-sizing: border-box;
}

/* The legacy checker is opt-in. Its existing control can still deliberately
   reveal it through the classes/inline display state it already manages. */
.checker_wrapper {
  display: none !important;
}

.checker_wrapper.is-open,
.checker_wrapper.is-visible,
.checker_wrapper.show,
.checker_wrapper[aria-hidden="false"],
.checker_wrapper[style*="display:block" i],
.checker_wrapper[style*="display: block" i],
.checker_wrapper[style*="display:flex" i],
.checker_wrapper[style*="display: flex" i] {
  display: block !important;
}

.elsie-collab-manager {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 8, 15, 0.74);
  backdrop-filter: blur(5px);
}

.elsie-collab-manager-card {
  width: min(520px, 100%);
  padding: 20px;
  border: 1px solid #315f9c;
  border-radius: 14px;
  background: #101d30;
  color: #edf5ff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  font-family: Arial, Helvetica, sans-serif;
}

.elsie-collab-manager-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.elsie-collab-manager-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.elsie-collab-manager-heading p,
.elsie-collab-manager-help {
  margin: 5px 0 0;
  color: #aac0dc;
  font-size: 0.84rem;
  line-height: 1.45;
}

.elsie-collab-manager-close {
  border: 0;
  background: transparent;
  color: #c5d8f2;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.elsie-collab-manager-label {
  display: block;
  margin-bottom: 7px;
  color: #e7f2ff;
  font-size: 0.85rem;
  font-weight: 700;
}

.elsie-collab-manager-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #406d9e;
  border-radius: 7px;
  background: #07111f;
  color: #fff;
  font: inherit;
  box-sizing: border-box;
}

.elsie-collab-manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.elsie-collab-manager-actions .btn {
  width: auto;
  min-width: 118px;
  padding: 0 12px;
}

.elsie-collab-manager-actions .btn.primary {
  background: #2f67c8;
}

.elsie-collab-manager-actions .btn.danger {
  background: #9f3030;
}
.desc {
  color:rgb(255, 255, 255);
  width: 40%;
  height: 98%;
  float: left;
  overflow: auto;
}
.frame_wrapper {
  width: 60%;
  height: 100%;
  color: white;
  float: right;
}

.frame {
  border: none;
  width: 100%;
  height: 100%;
  color: black;
  background-color: white;
}

.sidebarleft {
  height: 100%;
  width: 322px;
  position: absolute;
  background-color: #1e1e1e;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 20px 80px 20px;
  box-sizing: border-box;
  z-index: 10;
}

.view-tiles li {
  margin-bottom: 6px;
  font-size: 18px;
  transition: all 0.2s;
  list-style: none;
  display: table;
  transition: all 0.1s;
}

#file {
  margin-bottom: 50px;
}

.view-tiles li .name {
  width: 100%;
  background-position: 0px 2px;
}

.view-tiles span {
  display: inline-block;
}

.view-tiles li .name {
  color: rgb(255, 255, 255);
  text-indent: 20px;
  background-repeat: no-repeat;
}

.view-tiles li:hover {
  transition: all 0.2s;
}

.view-tiles .date {
  display: none;
}

.etc {
  margin: 0 auto 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

button {
  background-color: #1053ab;
  color: white;
  border: none;
  height: 22px;
  border-radius: 8px;
}

input[type] {
  background-color: #1053ab;
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 11px;
  height: 26px;
  width: 66px;
  font-weight: 700;
  transition: all 0.15s;
}

input[type]:hover {
  background-color: #0e42a1;
  border-radius: 10px;
  transition: all 0.15s;
}

.etc input[type="button"],
.etc .editor-side-action,
.filemanagerfunction input[type="button"],
#undoDeleteButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 66px;
  min-height: 26px;
  height: 26px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  box-sizing: border-box;
}

.toolbar .menubar {
  margin-left: auto;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

@media (max-width: 1500px) {
  .toolbar-current-path {
    right: calc(50% + 150px);
    max-width: 420px;
  }
}

@media (max-width: 1180px) {
  .toolbar-current-path {
    display: none;
  }
}

#teacherDashboardBtn.is-marking,
#teacherDashboardBtn[disabled] {
  width: auto;
  min-width: 96px;
}

.filemanagerfunction {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 11px;
  margin-top: 10px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
}

.filemanagerfunction input {
  margin-right: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

#snackbar {
  visibility: hidden;
  width: min(320px, calc(100vw - 32px));
  min-width: 0;
  margin-left: 0;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 2147483647;
  left: calc(env(safe-area-inset-left, 0px) + 16px);
  top: calc(env(safe-area-inset-top, 0px) + 70px);
  bottom: auto;
  font-size: 17px;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

.backbut {
  color: rgb(218, 218, 218);
  display: flex;
  align-items: center;
  background: none;
  border: none;
  height: 40px;
  width: 93%;
  font-size: 24px;
  padding-left: 12px;
}

#backbut:hover {
  background-color: #292b2e95;
}

.backbutton {
  margin-top: -10px;
}

.dirContent {
  color: rgb(218, 218, 218);
  display: flex;
  align-items: center;
  background: none;
  border: none;
  width: 93%;
  height: 40px;
}

.dirContent:hover {
  background-color: #292b2e95;
}

.dirContent p {
  display: block;
  min-width: 0;
}

.dirContent img {
  width: 20px;
  margin-left: 10px;
  margin-right: 10px;
}

.ai-status-badge,
.elsie-score-badge {
  margin-left: 8px;
  flex: 0 0 auto;
}

.elsie-folder-average {
  vertical-align: middle;
  font-size: 0.62rem !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ai-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(79, 141, 247, 0.18);
  color: #9dccff;
  border: 1px solid rgba(157, 204, 255, 0.45);
  font-size: 0.65rem;
  font-weight: 800;
}

.ai-folder-status {
  margin-left: 6px;
}

.ai-status-error {
  background: rgba(244, 67, 54, 0.16);
  color: #ffb3ad;
  border-color: rgba(244, 67, 54, 0.5);
}

.ai-status-pending {
  background: rgba(255, 193, 7, 0.14);
  color: #ffe08a;
  border-color: rgba(255, 193, 7, 0.45);
}

.ai-sidebar-spinner {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(157, 204, 255, 0.28);
  border-top-color: #9dccff;
  border-radius: 50%;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  will-change: transform;
  animation: aiSidebarSpin 0.7s linear infinite;
}

@keyframes aiSidebarSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

input[type="file"] {
  width: 88px;
  color: transparent;
}

.currentdir {
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.currentdir h3 {
  margin: 0;
  line-height: 1.25;
}

.hideBar {
  position: fixed;
  left: 0;
  bottom: 40px;
  display: flex !important; 
  justify-content: center;
  align-items: center;
  z-index: 10000;
  width: 36px !important;
  height: 34px !important;
  margin-bottom: 0;
  padding: 0;
  pointer-events: auto;
  transform: translateZ(0);
  will-change: left, width;
  transition: width 0.18s ease, left 0.18s ease, background-color 0.15s ease, border-radius 0.15s ease;
}

.hideBar:hover {
  width: 52px !important;
  left: 0;
}

#undoDeleteButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #1053ab;
}

#undoDeleteButton.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(35%);
}

#ai-result-box button,
#ai-result-box input[type="button"] {
  width: auto !important;
  min-width: 96px;
  max-width: 100%;
  min-height: 38px;
  height: auto !important;
  padding: 9px 16px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  box-sizing: border-box !important;
}

.ai-feedback-list {
  margin: 8px 0 0 20px;
  padding: 0;
}

.ai-feedback-list .ai-feedback-list {
  margin-top: 4px;
  margin-left: 22px;
}

.ai-feedback-list li {
  margin-bottom: 5px;
  line-height: 1.45;
}

.ai-feedback-list .ai-subbullet {
  list-style-type: circle;
}

@media (max-width: 700px) {
  .sidebarleft {
    width: min(84vw, 302px);
    padding-left: 14px;
  }

  .filemanagerfunction {
    gap: 6px;
  }

  .filemanagerfunction input {
    min-width: 72px;
    padding: 0 8px;
  }

  #ai-result-box {
    width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 24px) !important;
    padding: 18px !important;
  }
}

@media only screen and (max-width: 600px) {
  html,
  body {
    overflow: auto !important;
    min-width: 0;
  }

  .toolbar {
    height: auto;
    min-height: 48px;
    padding: 6px;
    gap: 6px;
    align-items: center;
  }

  .toolbar .homebtn {
    position: static;
    flex: 0 0 auto;
    min-width: 42px;
    height: 32px;
    padding: 0 9px;
  }

  .elsie-compact-nav {
    position: static;
    order: 1;
    flex: 1 1 160px;
    min-width: 0;
    max-width: none;
    justify-content: flex-start;
  }

  .elsie-compact-nav span {
    max-width: 72px;
    opacity: 1;
  }

  .toolbar .headertxt {
    position: static;
    transform: none;
    order: 2;
    flex: 1 0 100%;
    font-size: clamp(18px, 7vw, 26px);
    text-align: center;
  }

  .toolbar .menubar {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .toolbar .menubar .btn {
    width: auto;
    min-width: 76px;
    height: auto;
    min-height: 34px;
    margin-right: 0;
    padding: 0 10px;
    white-space: normal;
  }

  .content {
    position: relative;
    height: auto;
    min-height: calc(100dvh - 100px);
    overflow: visible;
  }

  .sidebarleft {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 42dvh;
    padding: 10px 10px 16px;
    border-bottom: 1px solid #292929;
  }

  .main {
    margin-left: 0 !important;
    height: 58dvh;
    min-height: 260px;
  }

  .hideBar {
    display: none;
  }

  .etc input[type="button"],
  .etc .editor-side-action,
  .filemanagerfunction input[type="button"],
  #undoDeleteButton {
    min-height: 34px;
    min-width: 76px;
    padding: 0 10px;
  }

  .backbut,
  .dirContent {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    height: auto;
    overflow-wrap: anywhere;
  }

  .view-tiles,
  #file {
    margin-left: 0;
    padding-left: 0;
  }

  .view-tiles li,
  .view-tiles li .name {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@-webkit-keyframes fadein {
  from {
    transform: translate(-24px, -10px);
    opacity: 0;
  }

  to {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    transform: translate(-24px, -10px);
    opacity: 0;
  }

  to {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    transform: translate(0, 0);
    opacity: 1;
  }

  to {
    transform: translate(-14px, -8px);
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    transform: translate(0, 0);
    opacity: 1;
  }

  to {
    transform: translate(-14px, -8px);
    opacity: 0;
  }
}

@keyframes shift-left {
  0%,
  100% {
    transform: translateX(0%);
  }

  50% {
    transform: scale(0.65) translateX(-75%);
  }
}

@keyframes shift-right {
  0%,
  100% {
    transform: translateX(0%);
  }

  50% {
    transform: scale(0.65) translateX(75%);
  }
}

::-webkit-scrollbar {
  width: 12px;
  background: rgba(121, 121, 121, 0);
  height: 12px;
}

::-webkit-scrollbar:hover {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-thumb {
  background: #63636396;
  border-radius: 10px;

  border-right: 2px solid transparent;
  border-left: 2px solid transparent;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #83838396;
  border-radius: 10px;
}

::-webkit-scrollbar-track-piece {
  display: none;
}

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

@media only screen and (max-width: 780px) {
  html {
    overflow: auto !important;
  }

  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .toolbar {
    height: auto;
    min-height: 54px;
    padding: 8px 10px;
    gap: 8px;
    flex-wrap: wrap;
    box-sizing: border-box;
  }

  .toolbar .homebtn {
    position: static;
    flex: 0 0 auto;
  }

  .elsie-compact-nav {
    position: static;
    order: 1;
    max-width: none;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .elsie-compact-nav span {
    max-width: 72px;
    opacity: 1;
  }

  .toolbar .headertxt {
    order: 2;
    flex: 1 0 100%;
    font-size: clamp(22px, 7vw, 30px);
    text-align: center;
  }

  .toolbar .menubar {
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin: 0;
    gap: 6px;
  }

  .toolbar .menubar .btn {
    margin-right: 0;
    min-width: 74px;
    width: auto;
    padding: 0 10px;
  }

  .sidebarleft {
    width: min(302px, 82vw);
    padding-left: 14px;
    box-sizing: border-box;
  }

  .main {
    margin-left: min(322px, 82vw);
    height: calc(100vh - 104px);
  }

  .filemanagerfunction,
  .etc {
    flex-wrap: wrap;
  }
}

@media only screen and (max-width: 360px), only screen and (max-height: 360px) {
  html,
  body {
    min-width: 0;
    overflow: auto !important;
  }

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

  .toolbar {
    min-height: 44px;
    padding: 5px;
    gap: 5px;
  }

  .toolbar .homebtn {
    width: auto;
    min-width: 42px;
    height: 30px;
    padding: 0 7px;
    font-size: 11px;
  }

  .toolbar .homebtn span {
    display: none;
  }

  .elsie-compact-nav {
    flex: 1 1 auto;
    gap: 4px;
    padding: 1px;
  }

  .elsie-compact-nav a {
    min-width: 30px;
    height: 28px;
    padding: 0 6px;
    font-size: 10px;
  }

  .elsie-compact-nav span {
    display: none;
  }

  .toolbar .headertxt {
    flex: 1 1 auto;
    order: 0;
    font-size: clamp(14px, 7vw, 20px);
    overflow-wrap: anywhere;
  }

  .toolbar .menubar {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .toolbar .menubar .btn {
    min-width: 0;
    height: 30px;
    padding: 0 7px;
    font-size: 11px;
  }

  .content {
    position: relative;
    height: auto;
    min-height: calc(100dvh - 44px);
    overflow: visible;
  }

  .sidebarleft {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 46dvh;
    padding: 8px 8px 16px;
  }

  .main {
    margin-left: 0;
    height: 54dvh;
    min-height: 150px;
  }

  .agwrapper {
    padding: 6px;
    border-width: 2px;
  }

  .etc,
  .filemanagerfunction {
    gap: 5px;
  }

  .etc input[type="button"],
  .etc button,
  .filemanagerfunction input,
  #undoDeleteButton,
  #ai-result-box button,
  #ai-result-box input[type="button"] {
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 30px;
    padding: 6px 9px !important;
    font-size: 11px;
    white-space: normal !important;
  }

  .backbut,
  .dirContent {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 32px;
    font-size: 15px;
    padding-left: 4px;
    overflow-wrap: anywhere;
  }

  .dirContent img {
    margin-left: 4px;
    margin-right: 5px;
  }

  .currentdir h3 {
    font-size: 14px;
  }

  #snackbar {
    left: 6px;
    right: 6px;
    top: calc(env(safe-area-inset-top, 0px) + 52px);
    bottom: auto;
    min-width: 0;
    width: auto;
    margin-left: 0;
    padding: 10px;
    font-size: 12px;
  }

  .checker_wrapper {
    position: relative;
    max-height: none;
    overflow: auto;
  }

  .desc,
  .frame_wrapper {
    float: none;
    width: 100%;
    height: auto;
    max-height: 35dvh;
  }

  #ai-result-box {
    inset: 4px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 8px) !important;
    padding: 10px !important;
    overflow: auto !important;
  }

  .elsie-collab-presence {
    top: calc(env(safe-area-inset-top, 0px) + 46px);
    left: 8px;
    right: 8px;
    max-width: none;
    justify-content: flex-start;
    overflow-x: auto;
  }
}

@media only screen and (max-width: 600px) {
  .content {
    position: relative !important;
    height: auto !important;
    min-height: calc(100dvh - 100px) !important;
    overflow: visible !important;
  }

  .sidebarleft {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: 42dvh !important;
    padding: 10px 10px 16px !important;
    border-bottom: 1px solid #292929;
  }

  .main {
    margin-left: 0 !important;
    width: 100% !important;
    height: 58dvh !important;
    min-height: 260px !important;
  }

  .hideBar {
    display: none !important;
  }
}


/* Smooth Windows 11 style sliding cursor animation for Ace Editor */



.ace_cursor { transition: left 0.08s ease-out, top 0.08s ease-out; }

.elsie-typing-mask { position: fixed; z-index: 2147483645; pointer-events: none; background: #181818; width: 9px; height: 18px; transition: transform 0.08s linear, opacity 0.08s linear; }
.elsie-typing-mask.reveal { transform: translateX(9px); opacity: 0; }
