:root {--workspace-green:#1b291e;}
body.drift-admin {--header-bg:var(--workspace-green);}
.workspace-tabs {
  position: fixed;
  top: 0;
  left: 225px;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: end;
  gap: 4px;
  height: 43px;
  margin: 0;
  padding: 5px 22px 0;
  background: var(--workspace-green);
  overflow-x: auto;
  scrollbar-width: thin;
}
/* The tab strip occupies the first row; the sidebar begins beneath it. */
body:not(.anonymous-login):not(.drift-admin) {background:#efede6;}
body:not(.anonymous-login):not(.drift-admin)::before {content:"";position:fixed;inset:0 0 auto;height:43px;background:var(--workspace-green);pointer-events:none;}
.sidebar,.drift-shell .sidebar {background:var(--workspace-green);}
.sidebar,.drift-shell .sidebar {top:43px;}
.workspace-tab {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  border-radius: 5px 5px 0 0;
}
.workspace-tab a {
  display: block;
  padding: 10px 18px;
  color: #e8eee5;
  text-decoration: none;
  font: 13px/1.3 Arial, sans-serif;
}
.workspace-tab .workspace-admin {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  box-sizing: border-box;
  padding: 0;
  border-radius: 0 5px 0 0;
  font-size: 15px;
}
.workspace-tab:not(.selected) .workspace-admin:hover,.workspace-tab:not(.selected) .workspace-admin:focus-visible {background:#56745a;color:#fff;}
.workspace-tab.selected .workspace-admin:hover,.workspace-tab.selected .workspace-admin:focus-visible,.workspace-tab.selected .workspace-admin.current {background:#dce6d5;color:#29472e;}
.workspace-tab:hover, .workspace-tab:focus-within {
  background: #405641;
}
.workspace-tab:hover a, .workspace-tab:focus-within a {color:#fff;}
.workspace-tab.selected, .workspace-tab.selected:hover, .workspace-tab.selected:focus-within {
  background: #efede6;
}
.workspace-tab.selected a, .workspace-tab.selected:hover a, .workspace-tab.selected:focus-within a {color:var(--workspace-green);}
.website-frame {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 290px);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.website-frame iframe {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 65vh;
  border: 0;
  background: white;
}
.website-fallback {
  padding: 10px 16px;
  border-top: 1px solid #e4e8df;
  font-size: 12px;
  color: #405641;
}
.website-fallback a {color: #29472e;}
.website-view main {padding-bottom: 0;}
.website-view .hero {display: none;}
.website-view .website-frame {margin-inline:calc(-1 * var(--page-gutter));border-radius:0;min-height:calc(100vh - 43px);}
.website-view .website-frame iframe {min-height: calc(100vh - 83px);}
.code-error {color: #7d302c;}
.drift-shell .workspace-tabs {margin:0;}
body.drift-admin::before {content:"";position:fixed;inset:0 0 auto;height:43px;background:var(--workspace-green);pointer-events:none;}
@media(max-width:600px){.sidebar,.drift-shell .sidebar{top:0;}.workspace-tabs{padding-inline:10px;}.workspace-tab a{padding-inline:12px;}.workspace-tab .workspace-admin{padding:0;}}

@media(min-width:601px) and (max-width:850px){.workspace-tabs{left:175px;}}

/* Reserve the fixed strip outside the scrollable content, including Django admin. */
.workspace-tabs-slot {height:43px;flex-shrink:0;}
@media(max-width:600px){
  .workspace-tabs{left:0;}
  body:not(.anonymous-login){padding-top:43px;}
  .workspace-tabs-slot{height:0;}
}
@media print{
  .workspace-tabs,.workspace-tabs-slot{display:none!important;}
  body:not(.anonymous-login){padding-top:0;}
}

/* External links use the same padding and type as the internal tabs. */
.workspace-external{display:flex;align-items:stretch;gap:4px;margin-left:auto;padding-left:24px;flex:0 0 auto}
.workspace-external .workspace-tab a{display:flex;align-items:center;gap:11px;padding:10px 18px;font:13px/1.3 Arial,sans-serif;white-space:nowrap}
.workspace-external-label{display:inline-flex;align-items:center;line-height:inherit}
.workspace-external .oi{top:0;display:inline-flex;align-items:center;justify-content:center;height:1.3em;line-height:1;flex-shrink:0}
@media(max-width:600px){.workspace-external .workspace-tab a{padding-inline:12px}}

.workspace-external-label{position:relative;top:1px}
