* {
  box-sizing: border-box;
}

html,
body {
  scrollbar-width: thin;
  scrollbar-color: #fff #000;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background-color: #fff;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #e6e6e6;
}

body.frame-page {
  margin: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  --frame-right-bg: #f5f5f5;
}

body.frame-white {
  --frame-right-bg: #fff;
}

.frame-page .frames-wrapper,
.frame-page .iframe-layout {
  flex: 1;
  display: flex;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.frame-page .frame-left,
.frame-page .iframe-left {
  overflow: auto;
}

.frame-page iframe {
  border: none;
  height: 100%;
}

.frame-page .frame-left {
  width: 30%;
  min-width: 240px;
}

.frame-page .frame-right {
  flex: 1;
  background: var(--frame-right-bg);
}

.frame-page .iframe-left {
  width: 28%;
  min-width: 240px;
  max-width: 340px;
}

.frame-page .iframe-right {
  flex: 1;
  background: var(--frame-right-bg);
}

.frame-toggle {
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 28px;
  padding: 0 6px;
  border: none;
  background: #1e1e1e;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s ease;
  z-index: 2;
}

.frame-toggle:focus-visible {
  outline: 2px solid #4d90fe;
  outline-offset: -2px;
}

.frame-toggle:hover {
  background: #2c2c2c;
}

.frame-page .frames-wrapper.is-left-collapsed .frame-left,
.frame-page .frames-wrapper.is-left-collapsed .iframe-left,
.frame-page .iframe-layout.is-left-collapsed .frame-left,
.frame-page .iframe-layout.is-left-collapsed .iframe-left {
  width: 0;
  min-width: 0;
  max-width: 0;
  flex: 0 0 0;
  opacity: 0;
  pointer-events: none;
}

.frame-page .frames-wrapper.is-left-collapsed .frame-right,
.frame-page .frames-wrapper.is-left-collapsed .iframe-right,
.frame-page .iframe-layout.is-left-collapsed .frame-right,
.frame-page .iframe-layout.is-left-collapsed .iframe-right {
  flex: 1;
}

.frame-page footer {
  padding: 10px 16px;
  background: #111;
  color: #f5f5f5;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.frame-page footer a {
  color: #f5f5f5;
  text-decoration: none;
}

.frame-page footer a:hover {
  text-decoration: underline;
}

.frame-page .footer-links {
  display: flex;
  gap: 12px;
}
