/* Broadcast Tools: GraphicFire + GraphicStore */

#graphicfire-app,
#graphicstore-app {
  background: #f4f6f8;
  color: #18202a;
  min-height: 100%;
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  align-self: stretch;
}

/* Broadcast tabs sit as body-level panes, so stale async view wrappers can
   briefly remove .hidden from the previous pane. Key the visible pane to the
   single body active-view value so Rundown, GraphicFire, and GraphicStore stay
   mutually exclusive through tab switches and project reopen. */
body[data-active-view="rundown-app"] > #graphicfire-app,
body[data-active-view="rundown-app"] > #graphicstore-app,
body[data-active-view="graphicfire-app"] > #rundown-app,
body[data-active-view="graphicfire-app"] > #graphicstore-app,
body[data-active-view="graphicstore-app"] > #rundown-app,
body[data-active-view="graphicstore-app"] > #graphicfire-app {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

body[data-active-view="graphicfire-app"] > #graphicfire-app,
body[data-active-view="graphicstore-app"] > #graphicstore-app {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
}

.bt-shell {
  --bt-accent: #e43d30;
  min-height: max(100%, calc(100vh - 68px));
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  background: #f4f6f8;
  color: #18202a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid #d9e0e8;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 8;
}

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

.bt-title h1 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.bt-title p {
  margin: 2px 0 0;
  font-size: .78rem;
  color: #607083;
  line-height: 1.35;
}

.bt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: #202938;
  font-weight: 900;
}

.bt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.bt-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 18px;
  background: #eef2f6;
  border-bottom: 1px solid #d9e0e8;
  overflow-x: auto;
}

.bt-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 160px;
  border: 1px solid #cfd8e3;
  background: #fff;
  color: #354255;
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 800;
  font-size: .78rem;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}

.bt-tab.active {
  background: #202938;
  border-color: #202938;
  color: #fff;
}

.gs-shell {
  --bt-accent: #146c94;
  min-height: max(100%, calc(100vh - 68px));
  width: 100%;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  background: #eef3f7;
  color: #17212c;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px;
  background: #102433;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.12);
}

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

.gs-brand .bt-badge {
  background: #2a9d8f;
  color: #fff;
}

.gs-brand h1 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.gs-brand p {
  margin: 3px 0 0;
  color: rgba(255,255,255,.68);
  font-size: .72rem;
  line-height: 1.25;
}

.gs-nav {
  display: grid;
  gap: 6px;
}

.gs-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 38px;
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  padding: 8px 10px;
  font-size: .78rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.gs-nav-item.active {
  background: #fff;
  border-color: #fff;
  color: #102433;
}

.gs-side-card {
  display: grid;
  gap: 8px;
  margin-top: auto;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.08);
}

.gs-side-card strong {
  font-size: .84rem;
}

.gs-side-card span {
  color: rgba(255,255,255,.7);
  font-size: .72rem;
}

.gs-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  background: #fff;
  border-bottom: 1px solid #d6e0e8;
  position: sticky;
  top: 0;
  z-index: 7;
}

.gs-topbar h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.gs-topbar p {
  margin: 3px 0 0;
  color: #637386;
  font-size: .76rem;
  line-height: 1.35;
}

.gs-library {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.gs-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, .75fr);
  gap: 16px;
  align-items: center;
  border: 1px solid #cddbe5;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.gs-kicker {
  display: inline-flex;
  color: #146c94;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gs-hero h2 {
  margin: 5px 0 6px;
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.gs-hero p {
  margin: 0;
  max-width: 680px;
  color: #586b7c;
  font-size: .84rem;
  line-height: 1.45;
}

.gs-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
}

.gs-stat {
  border: 1px solid #d6e0e8;
  border-radius: 8px;
  background: #f7fafc;
  padding: 10px;
}

.gs-stat span {
  display: block;
  color: #637386;
  font-size: .66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.gs-stat strong {
  display: block;
  margin-top: 5px;
  color: #102433;
  font-size: 1.15rem;
  line-height: 1;
}

.gs-shelf,
.gs-data-panel {
  min-width: 0;
  border: 1px solid #d6e0e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16,36,51,.05);
}

.gs-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8ef;
}

.gs-shelf-head h2 {
  margin: 0;
  font-size: .92rem;
  letter-spacing: 0;
}

.gs-shelf-head span {
  display: block;
  margin-top: 2px;
  color: #637386;
  font-size: .7rem;
  font-weight: 800;
}

.gs-tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 12px;
}

.gs-asset-tile {
  display: grid;
  gap: 9px;
  border: 1px solid #d6e0e8;
  border-radius: 8px;
  background: #fbfdff;
  padding: 11px;
  min-width: 0;
}

.gs-asset-tile strong {
  display: block;
  font-size: .84rem;
  line-height: 1.2;
}

.gs-asset-tile span {
  color: #637386;
  font-size: .7rem;
  line-height: 1.3;
}

.gs-asset-tile code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #146c94;
  font-size: .68rem;
  font-weight: 850;
}

.gs-shelf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.gs-context-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.gs-context {
  display: grid;
  gap: 3px;
  border: 1px solid #cbd9e4;
  border-radius: 8px;
  background: #fff;
  color: #17212c;
  padding: 11px;
  text-align: left;
  cursor: pointer;
}

.gs-context strong {
  font-size: .82rem;
}

.gs-context span {
  color: #637386;
  font-size: .68rem;
}

.gs-main-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(260px, 340px);
  gap: 14px;
  padding: 16px;
}

.gs-inventory-grid {
  grid-template-columns: minmax(0, 1fr);
}

.gs-wide {
  min-width: 0;
}

.gs-package {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d6e0e8;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.gs-package strong,
.gs-package span {
  display: block;
}

.gs-package strong {
  font-size: .82rem;
}

.gs-package span {
  margin-top: 3px;
  color: #637386;
  font-size: .7rem;
}

.gs-device-grid {
  display: grid;
  gap: 10px;
}

.gs-device {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #d6e0e8;
  border-radius: 8px;
  background: #fbfdff;
  padding: 11px;
}

.gs-device > span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2a9d8f;
}

.gs-device h3 {
  margin: 0;
  font-size: .86rem;
}

.gs-device p {
  margin: 3px 0 0;
  color: #637386;
  font-size: .72rem;
  line-height: 1.35;
}

.gs-device strong {
  color: #146c94;
  font-size: .7rem;
}

.bt-workspace {
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(380px, 1fr) minmax(260px, 330px);
  gap: 12px;
  padding: 14px;
  min-height: 0;
}

.bt-two {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(420px, 1fr);
  gap: 12px;
  padding: 14px;
}

.bt-wide-second {
  grid-template-columns: minmax(520px, 1.3fr) minmax(320px, .7fr);
}

.bt-quad {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 12px;
  padding: 14px;
}

.bt-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px);
  gap: 8px;
  margin-bottom: 10px;
}

.bt-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.bt-timeline span {
  display: block;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
  color: #435064;
  font-size: .72rem;
  font-weight: 850;
  text-align: center;
}

.bt-panel {
  background: #fff;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  min-width: 0;
  max-width: 100%;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .05);
}

.bt-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #e3e8ef;
}

.bt-panel-head h2,
.bt-panel-head h3 {
  margin: 0;
  font-size: .9rem;
  letter-spacing: 0;
}

.bt-panel-head span {
  font-size: .72rem;
  color: #667789;
  font-weight: 800;
}

.bt-panel-body {
  padding: 12px;
}

.bt-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
}

.bt-row {
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  padding: 9px;
  background: #fff;
  cursor: pointer;
}

.bt-row.active {
  border-color: var(--bt-accent);
  box-shadow: inset 3px 0 0 var(--bt-accent);
}

.bt-row.program {
  background: #fff7f6;
  border-color: #f2b7af;
}

.bt-row.preview {
  background: #f2f7ff;
  border-color: #9ec5fe;
}

.bt-row-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .82rem;
  font-weight: 900;
}

.bt-row-meta {
  margin-top: 4px;
  color: #667789;
  font-size: .7rem;
  line-height: 1.3;
}

.bt-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #cfd8e3;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: .66rem;
  color: #4f6074;
  background: #f8fafc;
  font-weight: 800;
  white-space: nowrap;
}

.bt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 100%;
  border: 1px solid #cfd8e3;
  background: #fff;
  color: #253142;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: .75rem;
  line-height: 1.15;
  font-weight: 850;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.bt-panel .bt-actions .bt-btn {
  flex: 1 1 118px;
}

.bt-top .bt-actions .bt-btn {
  flex: 0 1 auto;
}

.bt-btn.primary {
  background: var(--bt-accent);
  border-color: var(--bt-accent);
  color: #fff;
}

.bt-btn.dark {
  background: #202938;
  border-color: #202938;
  color: #fff;
}

.bt-btn.warn {
  background: #fff2f0;
  border-color: #f1afa5;
  color: #9f2f24;
}

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

.bt-stack {
  display: grid;
  gap: 10px;
}

.bt-field {
  display: grid;
  gap: 5px;
}

.bt-field span {
  font-size: .68rem;
  color: #607083;
  font-weight: 850;
  text-transform: uppercase;
}

.bt-input,
.bt-select,
.bt-textarea {
  width: 100%;
  border: 1px solid #cfd8e3;
  background: #fff;
  color: #1c2633;
  border-radius: 8px;
  padding: 8px 9px;
  font: inherit;
  font-size: .82rem;
}

.bt-textarea {
  min-height: 92px;
  resize: vertical;
}

.bt-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gf-monitors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gf-monitor {
  background: #111827;
  border-radius: 8px;
  padding: 10px;
  color: #fff;
  border: 1px solid #202938;
}

.gf-monitor h3 {
  margin: 0 0 8px;
  font-size: .72rem;
  letter-spacing: 0;
  color: #d9e7ff;
  text-transform: uppercase;
}

.gf-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    radial-gradient(circle at 75% 25%, rgba(255,255,255,.14), transparent 28%),
    #18202a;
  background-size: 40px 40px, 40px 40px, auto, auto;
}

.gf-frame-png {
  background:
    linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.08) 75%),
    #18202a;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.gf-png-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 100%;
  max-height: 100%;
  transform: translate(calc(-50% + var(--png-x, 0%)), calc(-50% + var(--png-y, 0%))) scale(var(--png-scale, 1));
  transform-origin: center;
  opacity: var(--png-opacity, 1);
  object-fit: contain;
  pointer-events: none;
}

.gf-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  font-weight: 850;
}

.gf-lower {
  position: absolute;
  left: 6%;
  right: 14%;
  bottom: 10%;
  display: grid;
  grid-template-columns: 12px 1fr;
  min-height: 24%;
  box-shadow: 0 12px 24px rgba(0,0,0,.28);
}

.gf-lower .bar {
  background: var(--gfx-accent, #e43d30);
}

.gf-lower .copy {
  background: rgba(255,255,255,.96);
  color: #111827;
  padding: 10px 12px;
}

.gf-eyebrow {
  color: var(--gfx-accent, #e43d30);
  font-size: .58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.gf-name {
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.05;
}

.gf-title {
  margin-top: 3px;
  font-size: .66rem;
  color: #435064;
  font-weight: 800;
}

.gf-full {
  position: absolute;
  inset: 10%;
  background: rgba(255,255,255,.96);
  border-top: 7px solid var(--gfx-accent, #e43d30);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #111827;
}

.gf-full h4 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.1;
}

.gf-full p {
  margin: 8px 0 0;
  color: #435064;
  font-size: .78rem;
}

.gf-ots {
  position: absolute;
  top: 12%;
  right: 8%;
  width: 38%;
  min-height: 43%;
  border: 4px solid var(--gfx-accent, #e43d30);
  background: rgba(255,255,255,.96);
  color: #111827;
  padding: 14px;
  display: grid;
  align-content: end;
}

.gf-bug {
  position: absolute;
  right: 6%;
  bottom: 9%;
  min-width: 86px;
  background: var(--gfx-accent, #e43d30);
  color: #fff;
  padding: 9px 11px;
  text-align: center;
  font-weight: 950;
}

.gf-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  background: #fff;
  color: #111827;
}

.gf-ticker strong {
  background: var(--gfx-accent, #e43d30);
  color: #fff;
  padding: 8px 10px;
  font-size: .68rem;
}

.gf-ticker span {
  padding: 8px 10px;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.bt-card {
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.bt-card h3 {
  margin: 0 0 6px;
  font-size: .9rem;
}

.bt-card p {
  margin: 0 0 10px;
  color: #667789;
  font-size: .76rem;
  line-height: 1.4;
}

.gf-import-zone {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px dashed #b8c7d6;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 10px;
}

.gf-import-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.gf-import-zone span {
  color: #667789;
  font-size: .72rem;
  font-weight: 800;
}

.gf-layer-list {
  display: grid;
  gap: 8px;
}

.gf-layer-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.gf-layer-thumb,
.gs-asset-thumb {
  width: 46px;
  height: 34px;
  border: 1px solid #ccd8e2;
  border-radius: 7px;
  background: #eef3f7;
  object-fit: contain;
}

.gs-asset-thumb.empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #146c94;
  font-size: .62rem;
  font-weight: 950;
}

.gf-layer-main {
  min-width: 0;
}

.gf-layer-main strong,
.gf-layer-main span {
  display: block;
}

.gf-layer-main strong {
  font-size: .78rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.gf-layer-main span {
  color: #667789;
  font-size: .68rem;
}

.gf-layer-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.gf-layer-controls label {
  display: grid;
  gap: 3px;
  color: #607083;
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gf-layer-controls input {
  min-width: 0;
  border: 1px solid #cfd8e3;
  border-radius: 7px;
  padding: 5px 6px;
  font-size: .72rem;
}

.gf-layer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.gf-layer-actions .bt-btn {
  min-height: 30px;
  padding: 5px 7px;
}

.gs-asset-name-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.gs-status-select {
  min-width: 130px;
  margin-bottom: 5px;
  font-weight: 900;
}

.gs-row-actions {
  justify-content: flex-start;
  max-width: 260px;
}

.gs-row-actions .bt-btn {
  min-width: 58px;
  padding-inline: 8px;
}

.bt-grid > .bt-btn {
  min-height: 38px;
}

.bt-field input[type="color"] {
  min-height: 40px;
  padding: 4px;
}

.bt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}

.bt-table th,
.bt-table td {
  text-align: left;
  border-bottom: 1px solid #e3e8ef;
  padding: 8px;
  vertical-align: top;
}

.bt-table th {
  font-size: .66rem;
  text-transform: uppercase;
  color: #607083;
  letter-spacing: 0;
  background: #f8fafc;
}

.bt-status-ready {
  color: #0f7a43;
  font-weight: 900;
}

.bt-status-draft {
  color: #9f6a00;
  font-weight: 900;
}

.bt-status-missing {
  color: #b42318;
  font-weight: 900;
}

.bt-note {
  border: 1px dashed #bdcad8;
  border-radius: 8px;
  background: #f8fafc;
  color: #4f6074;
  padding: 10px;
  font-size: .78rem;
  line-height: 1.45;
}

@media (max-width: 1040px) {
  .bt-workspace,
  .bt-two,
  .bt-quad {
    grid-template-columns: 1fr;
  }

  .gs-shell,
  .gs-hero,
  .gs-main-grid,
  .gs-shelf-grid {
    grid-template-columns: 1fr;
  }

  .gs-sidebar {
    position: static;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .gs-nav {
    grid-template-columns: repeat(5, minmax(100px, 1fr));
    overflow-x: auto;
  }

  .gs-side-card {
    margin-top: 0;
  }

  .gf-monitors {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .bt-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .bt-actions {
    justify-content: flex-start;
  }

  .bt-workspace,
  .bt-two {
    padding: 10px;
  }

  .gs-library,
  .gs-main-grid {
    padding: 10px;
  }

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

  .gs-nav {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .gs-stats,
  .gs-tile-row,
  .gs-context-strip {
    grid-template-columns: 1fr;
  }

  .bt-field-row {
    grid-template-columns: 1fr;
  }

  .bt-toolbar,
  .bt-timeline {
    grid-template-columns: 1fr;
  }
}
