.mast h1.mast-edition-title {
  color: var(--accent) !important;
  font: 500 clamp(16px, 1.5vw, 18px)/1.3 var(--mono);
  letter-spacing: .08em;
}
.reading-controls {
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}
.reading-controls #subscribe-open { flex: 0 1 36%; min-width: 200px; margin-right: 0; }
.reading-controls .mobile-tools-toggle {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  margin: 0 0 8px;
  padding: 8px 14px;
  border: 1px solid #555;
  border-radius: 10px;
  background: #080808;
  color: #f4eee6;
  font: 600 16px/1.3 var(--display);
  text-align: left;
  cursor: pointer;
}
.mobile-tools-label { display: flex; flex-direction:column; align-items: flex-start; gap: 3px; text-align: left; }
.mobile-tools-brand { color: #83c6c7; font-weight: 600; }
.mobile-tools-name { font-size: calc(16px - 2pt); }
.mobile-tools-name, .mobile-tools-dot { color: #f4eee6; font-weight: 400; }
.mobile-tools-chevron { display: inline-flex; flex: 0 0 38px; width: 38px; height: 38px; align-items: center; justify-content: center; color: #83c6c7; }
.mobile-tools-chevron svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.mobile-tools-toggle[aria-expanded="true"] .mobile-tools-chevron svg { transform: rotate(180deg); }
.mobile-tools-close-label { display: none; margin-left: auto; margin-right: 6px; color: var(--muted); font-size: 13px; font-weight: 400; white-space: nowrap; }
.mobile-tools-toggle[aria-expanded="true"] .mobile-tools-close-label { display: inline; }
.mobile-tools-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mobile-tools-content { display: contents; }
.mobile-tools-content[hidden] { display: none !important; }
@media(max-width:600px) {
  .mast h1.mast-edition-title { font-size: 15px !important; }
  .reading-controls { display: block; padding: 6px 0 !important; }
  .reading-controls .mobile-tools-toggle { width: 100%; }
  .mobile-tools-content { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
  .reading-controls #subscribe-open { flex: 1 0 100%; min-width: 0; margin-bottom: 5px; }
  .mobile-tools-content .layout-controls { flex: 1 0 100%; }
  .mobile-tools-content .noteshield { flex: 1 0 100%; }
  .mobile-tools-content .ns-panel { position: relative !important; top: auto !important; left: auto !important; right: auto !important; margin-top: 8px; max-height: none !important; overflow: visible !important; }
  .mobile-tools-content .ns-editor { overflow: auto; }
  .mobile-notes-editing .mobile-tools-content > :not(.noteshield) { display: none !important; }
  .mobile-notes-editing .ns-toggle { display: none !important; }
  .mobile-notes-editing .ns-editor { box-sizing: border-box; height: clamp(76px, calc(100dvh - 250px), 200px); min-height: 76px; max-height: none; overflow-y: auto; scroll-margin-block: 12px; }
}
@media(prefers-reduced-motion:reduce) { .mobile-tools-chevron svg { transition: none; } }
@media print { .mobile-tools-toggle, .mobile-tools-content { display: none !important; } }

/* Keep both teal chevrons visible on the compact phone toolbar. */
.reading-controls .mobile-tools-toggle .mobile-tools-chevron{flex:0 0 50px;width:50px;gap:0}
.reading-controls .mobile-tools-toggle .mobile-tools-chevron svg{width:24px;height:28px;flex:0 0 24px}

/* Open/Close state colors, all devices and editions. */
.reading-controls .mobile-tools-toggle[aria-expanded="false"] .mobile-tools-name{color:#83c6c7}
.reading-controls .mobile-tools-toggle[aria-expanded="true"] .mobile-tools-name{color:#ef7777}

/* One blink every two seconds, only while the arrows point upward/open. */
@keyframes hlf-tools-up-blink{0%,70%,90%,100%{opacity:1}80%{opacity:.25}}
@media screen and (prefers-reduced-motion:no-preference){
 html:not([data-screenshot]) .mobile-tools-toggle[aria-expanded="true"] .mobile-tools-chevron svg{animation:hlf-tools-up-blink 2s ease-in-out infinite}
}
