/* ------------------------------------------------------------------
   A NeXT-flavoured workspace for Maxim Dnestreanschii.
   Achromatic on purpose: one accent colour, used twice.
   ------------------------------------------------------------------ */

:root {
  --desk:      #3d4148;
  --desk-dk:   #31343a;
  --face:      #aaaaaa;   /* window chrome, dock, menu */
  --face-hi:   #cfcfcf;   /* top-left bevel */
  --face-lo:   #575757;   /* bottom-right bevel */
  --paper:     #ffffff;   /* content areas */
  --paper-alt: #ededed;
  --ink:       #000000;
  --ink-soft:  #4a4a4a;
  --rule:      #8f8f8f;
  --oxide:     #a8351b;   /* the one accent */

  --ui: "Helvetica Neue", Helvetica, "Nimbus Sans", Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;

  --titlebar: 22px;
  --dock: 76px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--desk);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.055) 1px, transparent 0);
  background-size: 4px 4px;
  background-attachment: fixed;
  font: 13px/1.4 var(--ui);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#screen { position: relative; height: 100%; }

/* --- Desktop patterns (Preferences) ---------------------------------- */

body[data-pattern="weave"] {
  background-color: #35383d;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.22) 0 1px, transparent 1px 6px);
  background-size: auto;
}
body[data-pattern="grid"] {
  background-color: #43474d;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 16px 16px;
}
body[data-pattern="night"] {
  background-color: #1c1e22;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
  background-size: 6px 6px;
}
body[data-pattern="blueprint"] {
  background-color: #24384f;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}
body[data-pattern="hatch"] {
  background-color: #3a3d36;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 9px);
  background-size: auto;
}

button { font: inherit; color: inherit; }

/* --- Bevel primitives ------------------------------------------------ */

.bevel {
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--face-hi),
    inset -1px -1px 0 var(--face-lo);
  background: var(--face);
}

.bevel-in {
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--face-lo),
    inset -1px -1px 0 var(--face-hi);
}

/* --- Menu ------------------------------------------------------------ */

#menu {
  position: absolute;
  top: 14px; left: 14px;
  width: 132px;
  z-index: 9000;
  user-select: none;
}

#menu .menu-title {
  border: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--face-hi), inset -1px -1px 0 var(--face-lo);
  background: var(--face);
  height: var(--titlebar);
  line-height: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .01em;
}

#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#menu > ul {
  border: 1px solid var(--ink);
  border-top: 0;
  background: var(--face);
  box-shadow: inset 1px 0 0 var(--face-hi), inset -1px -1px 0 var(--face-lo);
}

#menu li {
  position: relative;
  padding: 4px 10px 5px;
  font-size: 13px;
  cursor: default;
  border-bottom: 1px solid #9a9a9a;
  box-shadow: 0 1px 0 var(--face-hi) inset;
}
#menu li:last-child { border-bottom: 0; }
#menu li:hover,
#menu li[aria-expanded="true"] { background: var(--ink); color: var(--paper); }

#menu .arrow {
  position: absolute; right: 8px; top: 50%;
  width: 0; height: 0;
  margin-top: -4px;
  border: 4px solid transparent;
  border-left-color: currentColor;
}

.submenu {
  display: none;
  position: absolute;
  left: 100%; top: -1px;
  min-width: 178px;
  background: var(--face);
  border: 1px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(0,0,0,.35), inset 1px 1px 0 var(--face-hi);
  z-index: 10;
}
#menu li.has-sub:hover > .submenu { display: block; }
.submenu li { color: var(--ink); }

/* --- Dock ------------------------------------------------------------ */

#dock {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: var(--dock);
  background: var(--face);
  border-left: 1px solid var(--ink);
  box-shadow: inset 1px 0 0 var(--face-hi);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  z-index: 8000;
}

.tile {
  position: relative;
  width: 62px; height: 62px;
  background: var(--face);
  border: 1px solid var(--ink);
  box-shadow: inset 2px 2px 0 var(--face-hi), inset -2px -2px 0 var(--face-lo);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  padding: 0;
}
.tile:active { box-shadow: inset 2px 2px 0 var(--face-lo), inset -2px -2px 0 var(--face-hi); }
.tile svg { width: 28px; height: 28px; display: block; }
.tile span { font-size: 9px; letter-spacing: .02em; }
.tile .dot {
  position: absolute; top: 4px; right: 4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--oxide);
  border: 1px solid rgba(0,0,0,.55);
}
.tile.running::after {
  content: "";
  position: absolute; left: 3px; bottom: 3px;
  width: 5px; height: 5px;
  background: var(--ink);
}
.tile:focus-visible,
#menu li:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

/* --- Windows --------------------------------------------------------- */

#desktop { position: absolute; inset: 0; }

.win {
  position: absolute;
  background: var(--face);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(0,0,0,.38);
  display: flex;
  flex-direction: column;
  min-width: 260px;
  min-height: 140px;
}

.win.opening { animation: pop .16s ease-out; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }

.titlebar {
  height: var(--titlebar);
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  background: var(--face);
  box-shadow: inset 1px 1px 0 var(--face-hi), inset -1px -1px 0 var(--face-lo);
  border-bottom: 1px solid var(--ink);
  cursor: grab;
  user-select: none;
}
.win.dragging .titlebar { cursor: grabbing; }

.tb-btn {
  width: 21px;
  flex: 0 0 21px;
  background: var(--face);
  border: 0;
  border-right: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--face-hi), inset -1px -1px 0 var(--face-lo);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.tb-btn.mini { border-right: 0; border-left: 1px solid var(--ink); }
.tb-btn:active { box-shadow: inset 1px 1px 0 var(--face-lo), inset -1px -1px 0 var(--face-hi); }
.tb-btn i {
  display: block; width: 9px; height: 9px;
  border: 1px solid var(--ink);
  background: var(--face-hi);
}
.tb-btn.mini i { height: 3px; border-width: 1px; background: var(--face-lo); }

.tb-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 6px;
}
.win:not(.front) .tb-title { font-weight: 400; color: #3f3f3f; }
.win:not(.front) { box-shadow: 3px 3px 0 rgba(0,0,0,.25); }

.win-body {
  flex: 1 1 auto;
  min-height: 0;
  margin: 4px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--face-lo);
  overflow: hidden;
  display: flex;
}

/* The resize bar along the bottom edge — the NeXT tell. */
.resizebar {
  flex: 0 0 12px;
  height: 12px;
  margin: 0 4px 4px;
  background: var(--face);
  border: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--face-hi), inset -1px -1px 0 var(--face-lo);
  cursor: nwse-resize;
  position: relative;
}
.resizebar::before,
.resizebar::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 1px;
  background: var(--ink);
  box-shadow: 1px 0 0 var(--face-hi);
}
.resizebar::before { left: 26px; }
.resizebar::after  { right: 26px; }

/* --- Scrollers on the left (NeXT put them there) --------------------- */

.scroller {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  direction: rtl;
}
.scroller > * { direction: ltr; }

.scroller::-webkit-scrollbar { width: 15px; }
.scroller::-webkit-scrollbar-track {
  background: #b8b8b8;
  border-right: 1px solid var(--ink);
  box-shadow: inset -1px 0 0 var(--face-lo);
}
.scroller::-webkit-scrollbar-thumb {
  background: var(--face);
  border: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--face-hi), inset -1px -1px 0 var(--face-lo);
}
.scroller { scrollbar-width: thin; scrollbar-color: var(--face) #b8b8b8; }

/* --- Column browser -------------------------------------------------- */

.browser {
  flex: 1;
  min-width: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--paper);
}

/* Empty columns to the right, ruled like the real ones — a file viewer
   with nothing selected yet still looks like a file viewer. */
.browser::after {
  content: "";
  flex: 1 0 auto;
  min-width: 0;
  background-image: linear-gradient(90deg, transparent 175px, var(--rule) 175px, var(--rule) 176px);
  background-size: 176px 100%;
}

.col {
  flex: 0 0 176px;
  min-width: 176px;
  border-right: 1px solid var(--rule);
  overflow-y: auto;
  overflow-x: hidden;
  direction: rtl;
  background: var(--paper);
}
.col > ul { direction: ltr; }
.col::-webkit-scrollbar { width: 13px; }
.col::-webkit-scrollbar-track { background: #bdbdbd; border-right: 1px solid var(--rule); }
.col::-webkit-scrollbar-thumb {
  background: var(--face);
  border: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--face-hi), inset -1px -1px 0 var(--face-lo);
}
.col.cascade { animation: slidein .22s ease-out; }
@keyframes slidein { from { opacity: 0; transform: translateX(-10px); } }

.col ul { list-style: none; margin: 0; padding: 0; }

.col li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 6px;
  font-size: 13px;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
}
.col li svg { width: 16px; height: 16px; flex: 0 0 16px; }
.col li .nm { overflow: hidden; text-overflow: ellipsis; }
.col li .chev {
  margin-left: auto;
  width: 0; height: 0;
  border: 4px solid transparent;
  border-left-color: #4d4d4d;
  flex: 0 0 auto;
}
.col li:hover { background: var(--paper-alt); }
.col li.sel { background: var(--ink); color: var(--paper); }
.col li.sel .chev { border-left-color: var(--paper); }
.col li.sel:hover { background: var(--ink); }

.crumb { display: none; }

/* --- Documents ------------------------------------------------------- */

.doc {
  padding: 22px 26px 30px;
  max-width: 62ch;
  margin: 0 auto;   /* the left-hand scroller sets rtl; keep the page centred */
}
.doc h1 {
  font-size: 21px;
  line-height: 1.15;
  margin: 0 0 2px;
  letter-spacing: -.012em;
}
.doc .kicker {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.doc h2 {
  font-size: 13px;
  font-weight: 700;
  margin: 22px 0 6px;
}
.doc p { margin: 0 0 11px; font-size: 14px; line-height: 1.55; }
.doc ul { margin: 0 0 11px; padding-left: 18px; }
.doc li { font-size: 14px; line-height: 1.5; margin-bottom: 5px; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.doc code {
  font: 12px/1 var(--mono);
  background: var(--paper-alt);
  border: 1px solid #d2d2d2;
  padding: 1px 4px;
}

.doc .flag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--paper);
  background: var(--oxide);
  padding: 2px 7px 3px;
  margin-bottom: 12px;
}

/* Portrait — framed the way a NeXT panel would frame it */
.portrait {
  float: right;
  width: 104px;
  height: 104px;
  margin: 2px 0 12px 16px;
  border: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--face-lo), 2px 2px 0 rgba(0,0,0,.18);
  background: var(--face);
  padding: 3px;
}

/* CV entries: what, and when */
.entry { margin: 0 0 16px; }
.entry .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  margin-bottom: 5px;
}
.entry .role { font-weight: 700; font-size: 14px; }
.entry .when { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.entry .org { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 5px; }
.entry ul { margin: 0; }
.entry li { font-size: 13.5px; }

/* Definition rows — used for skills and facts */
.rows { margin: 0 0 4px; }
.rows div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid #e0e0e0;
  font-size: 13.5px;
}
.rows div:first-child { border-top: 0; }
.rows dt, .rows b { font-weight: 700; }

/* Buttons inside documents */
.btn {
  display: inline-block;
  background: var(--face);
  border: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--face-hi), inset -1px -1px 0 var(--face-lo);
  padding: 4px 14px 5px;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  margin: 4px 6px 4px 0;
}
.btn:hover { background: #b6b6b6; color: var(--ink); }
.btn:active { box-shadow: inset 1px 1px 0 var(--face-lo), inset -1px -1px 0 var(--face-hi); }

/* --- PDF preview ----------------------------------------------------- */

.pdfview {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #6d6d6d;
}
.pdfbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  background: var(--face);
  border-bottom: 1px solid var(--ink);
  box-shadow: inset 0 1px 0 var(--face-hi);
}
.pdfbar .pdfname {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: #2b2b2b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdfbar .btn { margin: 0; padding: 3px 10px 4px; font-size: 12px; }
.pdfview iframe { flex: 1; width: 100%; border: 0; display: block; }
.pdfnote { display: none; margin: 0; padding: 18px; font-size: 13.5px; color: var(--paper); }

/* --- Preferences ----------------------------------------------------- */

.swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 4px 0 6px;
}
.swatch {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
  font: inherit;
}
.swatch .sw {
  height: 48px;
  border: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--face-lo);
}
.swatch .lb { font-size: 11.5px; text-align: center; }
.swatch[aria-pressed="true"] .sw { box-shadow: 0 0 0 2px var(--ink); }
.swatch[aria-pressed="true"] .lb { font-weight: 700; }

.sw-slate { background: #3d4148; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.09) 1px, transparent 0); background-size: 4px 4px; }
.sw-weave { background: #35383d; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, rgba(0,0,0,.22) 0 1px, transparent 1px 6px); }
.sw-grid { background: #43474d; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 12px 12px; }
.sw-night { background: #1c1e22; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0); background-size: 6px 6px; }
.sw-blueprint { background: #24384f; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 12px 12px; }
.sw-hatch { background: #3a3d36; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.09) 0 2px, transparent 2px 9px); }

/* --- Sound player ---------------------------------------------------- */

.player {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--paper);
}
.player .face { display: flex; align-items: center; gap: 10px; }
.player .led {
  width: 10px; height: 10px;
  flex: 0 0 10px;
  border: 1px solid var(--ink);
  background: #6f6f6f;
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.4);
}
.player .led.on { background: var(--oxide); }
.player .meta { display: flex; flex-direction: column; line-height: 1.3; }
.player .meta b { font-size: 13px; }
.player .meta span { font-size: 11.5px; color: var(--ink-soft); }
.player .controls { display: flex; align-items: center; gap: 12px; }
.player .btn { margin: 0; min-width: 62px; text-align: center; }
.player .vol {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.player .vol input { flex: 1; min-width: 0; accent-color: #4a4a4a; }
.tile.lit .dot,
.tile.lit::before {
  content: "";
  position: absolute; top: 4px; right: 4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--oxide);
  border: 1px solid rgba(0,0,0,.55);
}

/* --- Terminal -------------------------------------------------------- */

.term {
  flex: 1;
  background: #0d0f11;
  color: #d7dbdd;
  font: 12.5px/1.6 var(--mono);
  overflow-y: auto;
  direction: rtl;
}
.term .term-in {
  direction: ltr;
  padding: 12px 14px 18px;
  white-space: pre-wrap;
  word-break: break-word;
}
.term::-webkit-scrollbar { width: 13px; }
.term::-webkit-scrollbar-track { background: #1b1f22; }
.term::-webkit-scrollbar-thumb { background: #4a5257; border: 1px solid #000; }
.term .p { color: #7fa6b5; }
.term .c { color: #ffffff; }
.term .caret {
  display: inline-block;
  width: 7px; height: 14px;
  background: #d7dbdd;
  vertical-align: -3px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- Boot line ------------------------------------------------------- */

#boot {
  position: absolute;
  left: 14px; bottom: 12px;
  font: 11px/1.5 var(--mono);
  color: rgba(255,255,255,.42);
  z-index: 1;
  pointer-events: none;
}

/* --- Mobile: the desktop metaphor stops being useful ----------------- */

@media (max-width: 860px), (max-height: 520px) {
  body { overflow: auto; }
  #screen { height: auto; min-height: 100%; padding: 0 0 84px; }

  #menu { display: none; }

  #dock {
    position: fixed;
    top: auto; left: 0; right: 0; bottom: 0;
    width: auto; height: 68px;
    flex-direction: row;
    justify-content: center;
    gap: 5px;
    border-left: 0;
    border-top: 1px solid var(--ink);
    box-shadow: inset 0 1px 0 var(--face-hi);
    overflow-x: auto;
  }
  .tile { width: 56px; height: 56px; flex: 0 0 56px; }
  .tile svg { width: 24px; height: 24px; }

  #desktop {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 10px 0;
  }

  .win {
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,.3);
  }
  .win-body { max-height: 74vh; }
  .resizebar { display: none; }

  /* One column at a time, with a path bar to climb back out. */
  .browser { flex-direction: column; overflow: visible; }
  .browser::after { display: none; }
  .col { display: none; }
  .col:last-child { display: block; flex: 1 1 auto; min-height: 220px; }
  .col li { padding: 8px 6px; font-size: 15px; }

  .crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 6px 8px;
    background: var(--paper-alt);
    border-bottom: 1px solid var(--rule);
    font-size: 12px;
  }
  .crumb button {
    background: none; border: 0; padding: 2px 4px;
    text-decoration: underline; cursor: pointer;
  }
  .crumb .sep { color: var(--ink-soft); }

  .doc { padding: 18px 16px 26px; }
  .portrait { width: 84px; height: 84px; margin-left: 12px; }
  .entry .top { flex-wrap: wrap; gap: 2px 12px; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .pdfview iframe { display: none; }
  .pdfnote { display: block; }
  .pdfbar { flex-wrap: wrap; }
  #boot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .term .caret { animation: none; }
}

/* Step lights — the sequencer's position, sixteen to the bar */
.player .steps {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 2px;
  margin: 10px 0 2px;
}
.player .steps i {
  height: 9px;
  background: #c2c2c2;
  border: 1px solid #8a8a8a;
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.12);
}
.player .steps i:nth-child(4n+1) { background: #ababab; }
.player .steps i.on {
  background: var(--oxide);
  border-color: #6d2312;
}

/* Two sources in one player: the generated track, and a streamed one */
.player .tabs { display: flex; margin-bottom: 10px; }
.player .tabs button {
  flex: 1;
  background: var(--face);
  border: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--face-hi), inset -1px -1px 0 var(--face-lo);
  padding: 3px 6px 4px;
  font-size: 11.5px;
  cursor: pointer;
}
.player .tabs button + button { border-left: 0; }
.player .tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset 1px 1px 0 #333;
}
.player .panes { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.player .pane { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; }
.player .pane[hidden] { display: none; }
.player .spotify { justify-content: flex-start; }
.player .spotify iframe {
  width: 100%;
  height: 152px;
  border: 1px solid var(--ink);
  display: block;
  background: #121212;
}
.player .spotify p {
  margin: 7px 1px 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-soft);
}
