/* menus.css - the Look and Layers menus, the board count and the default (unskinned) state of skin-only chrome.
   Default-look UI under the house rules; was the unscoped part of skins.css. Loaded after app.css, before skins.css. */
/* ---- the Look menu (js/skins.js) ---- */
#theme,
#keys2,
#m-files {
  display: none !important;
} /* (Look replaces the switch; ? and Files live in More / Files) */
.lookbtn {
  gap: 6px; /* design-ok: imported Boardsheet scale */
}
.lookbtn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.lookbtn svg circle {
  fill: currentColor;
  stroke: none;
}
.lookbtn .lbl {
  font-size: 13px; /* design-ok: imported Boardsheet scale */
}
#m-look .pop {
  min-width: 280px;
}
.moods {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 4px 6px; /* design-ok: imported Boardsheet scale */
}
.pop .mood {
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 12px !important;
  border: 1px solid transparent !important;
}
.pop .mood.on {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  color: var(--ink) !important;
}
.mood .sw {
  display: inline-flex;
  flex: none;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--swatch-line);
}
.mood .sw i {
  width: 14px;
  height: 26px;
  display: block;
}
.mood b {
  display: block;
  font-size: 13.5px; /* design-ok: imported Boardsheet scale */
}
.mood small {
  display: block;
  color: var(--mute) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  white-space: normal !important;
}
.modes {
  display: flex;
  gap: 0;
  margin: 4px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.pop .modes button {
  flex: 1;
  justify-content: center !important;
  border-radius: 0 !important;
  padding: 6px 4px !important; /* design-ok: imported Boardsheet scale */
}
.pop .modes button.on {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
}
@media (max-width: 700px) {
  .lookbtn .lbl {
    display: none;
  }
}
/* the Layers menu */
.layersmenu .chev {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  vertical-align: 1px;
}
.layersmenu .pop {
  right: auto;
  left: 0;
  min-width: 170px;
}
.layersmenu #layers {
  display: flex;
  flex-direction: column;
  border: 0;
  background: transparent;
  width: 100%;
}
.layersmenu #layers button {
  text-align: left;
  padding: 7px 10px 7px 30px; /* design-ok: imported Boardsheet scale */
  border-radius: 2px;
  position: relative;
  color: var(--ink);
  background: transparent;
}
.layersmenu #layers button::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px; /* design-ok: imported Boardsheet scale */
  border: 1.5px solid var(--mute);
  border-radius: 2px;
}
.layersmenu #layers button.on {
  background: transparent;
  color: var(--ink);
}
.layersmenu #layers button.on::before {
  background: var(--accent);
  border-color: var(--accent);
  outline: 2px solid var(--panel);
  outline-offset: -3px;
}
.layersmenu #layers button:hover {
  background: var(--soft);
}
/* the Files button's badge */
#save-files .badge {
  display: inline-block;
  min-width: 18px;
  margin-left: 6px; /* design-ok: imported Boardsheet scale */
  padding: 0 5px; /* design-ok: imported Boardsheet scale */
  border-radius: 2px;
  font-size: 11px; /* design-ok: imported Boardsheet scale */
  line-height: 18px;
  text-align: center;
  background: var(--accent);
  color: var(--accent-ink);
}
.pop a.lk.strong {
  font-weight: 600;
}
.taskbar {
  display: none;
}
.sheetframe {
  display: none;
}
.right.v3 #m-layers {
  display: none;
} /* (no layers in the 3D view) */
/* ---- menus under any mood: their own text colour (a menu inside Luna's blue header inherited its white), and the
   Layers list as a plain checklist whatever a mood does to buttons ---- */
.menu .pop {
  color: var(--ink);
  text-shadow: none;
}
.layersmenu > .btn {
  white-space: nowrap;
}
html #m-layers .pop {
  padding: 4px;
}
html #m-layers #layers {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  gap: 1px; /* design-ok: imported Boardsheet scale */
}
html #m-layers #layers button {
  display: block;
  width: 100%;
  margin: 0;
  border: 0 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  transform: none !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-size: 13px; /* design-ok: imported Boardsheet scale */
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: none;
  padding: 7px 10px 7px 32px; /* design-ok: imported Boardsheet scale */
}
html #m-layers #layers button:hover {
  background: var(--soft) !important;
}
html #m-layers #layers button::before {
  left: 10px;
  border-radius: 2px !important;
}
html #m-layers #layers button.on::before {
  background: var(--accent);
  border-color: var(--accent);
}
.layersmenu .chev {
  display: inline-block !important;
  margin-left: 4px;
}
/* the mood and mode buttons keep their shape on hover in every mood (Luna's menu hover squared and blued them) */
html #m-look .pop .mood {
  border-radius: 2px !important;
}
html #m-look .pop .mood:not(.on):hover {
  background: var(--soft) !important;
  color: var(--ink) !important;
}
html #m-look .pop .mood:not(.on):hover small {
  color: var(--mute) !important;
}
html #m-look .pop .modes button:not(.on):hover {
  background: var(--soft) !important;
  color: var(--ink) !important;
}
/* ---- the boards count: an editable number among the header's figures (the count, "boards" under it), not a box ---- */
header .boards {
  display: inline-flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 0;
  min-width: 62px;
  font-size: 11px; /* design-ok: imported Boardsheet scale */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mute);
  cursor: text;
}
header .boards input {
  width: 64px;
  margin: 0 0 0 -5px; /* design-ok: imported Boardsheet scale */
  padding: 0 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
header .boards input::-webkit-outer-spin-button,
header .boards input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
header .boards input:hover {
  border-color: var(--line);
}
header .boards input:focus {
  border-color: var(--accent);
  background: var(--panel);
  outline: none;
}
/* ---- the header's figures in one row: every number (or readout) starts at the same height, whatever sits under it
   (the progress bars under bought / placed made those two taller, so centring put their readouts higher) ---- */
header .stats {
  align-items: flex-start;
}
header .stats > .btn,
header .stats > .menu {
  align-self: center;
}
