#mobile-menu-toggle {display:none}
#mobile-menu {position:fixed;inset:0 0 0 auto;margin:0;width:min(380px,calc(100% - 24px));max-width:none;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid #29452e;border-radius:0;background:#090f0a;color:#e6edcd;box-shadow:-16px 0 60px #0008;overflow:hidden}
#mobile-menu::backdrop {background:#000a;backdrop-filter:blur(3px)}
.mobile-menu-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #29452e}
.mobile-menu-heading h2 {font-size:15px;margin:0;color:var(--punk-green-ink)}
.mobile-menu-heading button {width:44px;height:44px;display:grid;place-items:center;padding:0;border-radius:9px;font-size:24px}
#mobile-menu [data-menu-content] {height:calc(100% - 81px);overflow:hidden}
#mobile-menu .sidebar {width:100%;min-width:0;min-height:0;height:100%;overflow:hidden;border:0;padding:16px 14px;gap:0;background:transparent}
#mobile-menu .sidebar nav {display:flex;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;gap:18px;padding-bottom:10px}
#mobile-menu .sidebar-nav-group {display:grid;gap:3px;border:0;padding:0}
#mobile-menu .sidebar-nav-heading {display:block;padding:0 12px 5px;font-size:9px;letter-spacing:1.6px}
#mobile-menu .sidebar nav button {display:flex;align-items:center;justify-content:flex-start;width:100%;gap:12px;min-height:46px;padding:11px 12px;text-align:left;font-size:12px;border-radius:8px}
#mobile-menu .sidebar nav button>span {display:inline-block;flex:none;width:22px;font-size:18px}
#mobile-menu .sidebar nav button small {position:static;display:inline;margin-left:auto;font-size:11px}
#mobile-menu .sidebar-bottom {flex:none;padding:12px 0 0;margin-top:10px;border-top:1px solid #29452e;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mobile-menu-utilities {grid-column:1 / -1}
#mobile-menu .sidebar .coverage-copy {display:block}
#mobile-menu .sidebar-coverage {justify-content:space-between;min-height:58px;padding:12px;border-radius:8px}
#mobile-menu .sidebar .coverage-arrow {margin-left:auto}
#mobile-menu #reader-settings-button {display:flex;align-items:center;gap:8px;min-height:44px;text-align:left;font-size:10px;padding:10px;border-radius:8px}
#mobile-menu #download-data-button {display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:46px;padding:12px;background:transparent;color:var(--lime);font-size:12px;border-color:var(--lime);border-radius:8px}
#mobile-menu #download-data-button:hover {background:transparent;color:#d2ff42;border-color:#d2ff42}
#mobile-menu .download-data-label {display:inline}
#mobile-menu .download-data-short {display:none}

@media(max-width:1100px),(hover:none) and (pointer:coarse) {
  body {height:auto;min-height:100dvh;overflow-x:clip;overflow-y:auto;padding:0}
  body>main {flex:none;height:calc(100dvh - var(--header-height));min-height:320px;overflow:hidden}
  body>main>.sidebar {display:none}
  .topbar {display:flex;flex-wrap:nowrap;height:68px;min-height:68px;padding:0 max(14px,env(safe-area-inset-left));gap:16px}
  .topbar .brand {height:100%;min-height:0;padding-left:67px;gap:0;min-width:0}
  .topbar .atlas-punk {width:68px;height:68px;left:-5px}
  .topbar .atlas-wordmark {font-size:14px}
  .topbar .atlas-wordmark>span {font-size:9px}
  .topbar .account {display:none}
  .topbar .header-actions {display:flex;flex-direction:row;align-items:center;gap:8px;width:auto;margin-left:auto}
  .topbar .header-actions button {min-height:44px;flex:none;padding:10px 12px;font-size:11px;border-radius:8px}
  .topbar #download-data-button {display:none}
  .topbar #mobile-menu-toggle {display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;color:var(--punk-green-ink);border-color:#2c5134;background:#102017}
  #mobile-menu-toggle svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
  .workspace {width:100%;min-width:0;min-height:0}
  .workspace-header {padding:10px 16px;gap:8px 14px}
  .workspace-header .workspace-heading {flex:0 1 auto;gap:10px;min-height:40px;flex-direction:row;align-items:center}
  .workspace-header .workspace-actions {order:1;flex:none;margin-left:auto}
  .workspace-header .workspace-controls {order:2;max-width:430px;flex:1 1 240px}
  .workspace-header .view-tools {order:3;max-width:100%}
  .workspace-header .workspace-actions button {min-height:40px;padding:9px 12px;font-size:11px}
  .workspace-header .result-count {font-size:10px}
  .workspace-header :is(input,select),.toolbar-popover :is(input,select) {font-size:16px}
  .workspace-header .workspace-controls .search input {font-size:16px}
  .workspace .content {min-height:0;overscroll-behavior:auto}
  .workspace-footer {min-height:26px;padding:4px 14px;gap:8px;font-size:8px}
  #live-update-status {font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:48%}
  .independence-banner {position:static;flex:none;min-height:0;gap:12px;padding:9px max(14px,env(safe-area-inset-left)) max(9px,env(safe-area-inset-bottom));background:#354303}
  .independence-copy p {font-size:8px;line-height:1.7}
  .project-credit {margin:0!important}
  .ribbit-hole-signature {min-height:40px;gap:8px}
  .ribbit-hole-signature>img {width:38px}
  .ribbit-hole-signature>span {display:none}
  .canvas-viewport {overscroll-behavior:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
  .canvas-topic-filters {top:8px;left:12px;right:12px;width:calc(100% - 24px);max-width:calc(100% - 24px);padding:3px;box-shadow:0 0 0 1px #e6edcd15;border-radius:10px}
  .canvas-topic-filters .canvas-topic-chip {min-height:42px}
  .content:has(.canvas-topic-filters) .canvas-viewport {top:62px}
  .canvas-tools {right:12px;bottom:12px;padding:4px;gap:1px;border-radius:10px;background:#111b08f5}
  .canvas-tools button {min-width:42px;min-height:44px;padding:8px;font-size:11px}
  .canvas-tools span {min-width:46px}
  .canvas-hint {left:14px;bottom:77px;padding:5px 8px;font-size:9px;pointer-events:none}
  .inspector {position:fixed;inset:0 0 0 auto;max-width:100%;width:min(520px,100%);height:100dvh;z-index:30;border-left:1px solid var(--border);overscroll-behavior:contain}
  .inspector :is(button,a) {min-height:44px}
  body>dialog:not(#mobile-menu,#atlas-intro) {max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overscroll-behavior:contain}
  .toolbar-popover {max-height:calc(100dvh - 24px)}
}
@media(max-width:600px) {
  .topbar {height:64px;min-height:64px;padding-inline:12px;gap:8px}
  .topbar .brand {padding-left:49px}
  .topbar .atlas-punk {height:60px;width:60px;left:-7px}
  .topbar .atlas-wordmark {font-size:11px;letter-spacing:-.3px}
  .topbar .atlas-wordmark>span {font-size:7px;letter-spacing:2.7px}
  .topbar .header-actions {gap:6px}
  .topbar .header-actions .donate-button {padding-inline:10px;font-size:10px}
  .workspace-header {padding:8px 12px;gap:7px 8px}
  .workspace-header .workspace-heading {gap:7px;min-height:40px;padding:0;flex-direction:row;align-items:center}
  .workspace-header h1 {font-size:14px;max-width:calc(100vw - 158px);overflow:hidden;text-overflow:ellipsis}
  .workspace-header .result-count {font-size:10px}
  .workspace-header .workspace-actions {gap:5px}
  .workspace-header .workspace-actions button {font-size:10px;padding:8px 9px}
  .workspace-header .workspace-controls {flex-basis:100%;max-width:none;width:100%;padding:0;gap:7px;margin:0}
  .workspace-header .workspace-controls .search {height:44px}
  .workspace-header .workspace-controls .search input {font-size:16px;height:42px;letter-spacing:-.8px}
  .workspace-header .workspace-controls .toolbar-trigger {min-height:44px;width:auto;font-size:10px}
  .workspace-header .workspace-controls .search kbd {display:none}
  .workspace .active-filters {padding:10px 12px;gap:8px;align-items:center}
  .filter-summary strong {font-size:10px}
  .filter-summary #filter-result-summary {font-size:9px;line-height:1.5}
  .filter-summary-icon {display:none}
  .workspace-footer {min-height:24px;padding-block:3px}
  .independence-banner {padding-block:7px max(7px,env(safe-area-inset-bottom));gap:8px}
  .independence-copy p {font-size:8px;line-height:1.7}
  .ribbit-hole-signature>img {width:32px}
  .canvas-tools {left:auto;right:12px;max-width:calc(100% - 24px)}
  .canvas-hint {left:50%;transform:translateX(-50%);white-space:nowrap;bottom:72px;font-size:8px}
  .feed-list {padding-inline:12px}
  .timeline-view {padding:16px 12px 24px}
}
@media(max-height:520px) and (max-width:1100px) {
  .mobile-menu-heading {padding:8px 14px}
  #mobile-menu [data-menu-content] {height:calc(100% - 61px)}
  #mobile-menu .sidebar {padding-block:10px}
  #mobile-menu .sidebar-bottom {padding-top:8px;margin-top:6px;gap:6px}
  #mobile-menu .sidebar-coverage {min-height:44px;padding:8px}
  #mobile-menu .sidebar-nav-heading {padding-bottom:2px}
  #mobile-menu .sidebar nav {gap:12px}
  .topbar {height:52px;min-height:52px}
  .topbar .atlas-punk {height:52px;width:52px}
  .workspace-header {padding-block:4px}
  .workspace-header .workspace-controls {flex-basis:160px;max-width:280px;margin-left:auto}
  .workspace-header .result-count,.workspace-footer,.canvas-hint {display:none}
  .workspace-header .workspace-actions {order:3}
  .independence-banner {padding-block:5px}
  .independence-copy p {display:inline;font-size:7px}
  .independence-copy p+p::before {content:' · '}
  .ribbit-hole-signature {min-height:24px}
  .ribbit-hole-signature>img {width:24px}
  .last-post-clock[data-compact="true"] {grid-template-columns:minmax(0,1fr) auto 40px;gap:10px;min-height:44px;padding:2px 12px}
  .last-post-clock[data-compact="true"] .clock-toggle {grid-column:auto;grid-row:auto}
  .last-post-clock[data-compact="true"] .clock-intro h2 {font-size:9px}
  .last-post-clock[data-compact="true"] .clock-value {font-size:15px}
}

/* Keep the artwork visible when a phone is held sideways. */
@media(min-width:520px) and (max-width:800px) and (max-height:520px) {
  .atlas-studio.ast-dialog .ast-header {height:54px;min-height:54px;padding-inline:12px}
  .atlas-studio.ast-dialog .ast-header-identity {gap:8px}
  .atlas-studio.ast-dialog .ast-header-identity>img {width:28px;height:28px}
  .atlas-studio.ast-dialog [data-slot="dialog-title"] {font-size:16px}
  .atlas-studio.ast-dialog .ast-eyebrow {font-size:7px}
  .atlas-studio.ast-dialog .ast-mobile-nav {position:absolute;top:6px;left:235px;right:62px;height:42px;padding:0;border:0;background:transparent}
  .atlas-studio.ast-dialog .ast-mobile-nav [data-slot="tabs-trigger"] {font-size:11px;padding-inline:8px}
  .atlas-studio.ast-dialog .ast-mobile-nav svg {display:none}
  .atlas-studio.ast-dialog .ast-preview-toolbar {min-height:46px;padding:3px 12px}
  .atlas-studio.ast-dialog .ast-preview-footer {min-height:44px;padding:2px 12px}
  .atlas-studio.ast-dialog .ast-footer {display:flex;min-height:60px;gap:8px;padding:8px 12px}
  .atlas-studio.ast-dialog .ast-status {display:none}
  .atlas-studio.ast-dialog .ast-export-actions {gap:5px}
  .atlas-studio.ast-dialog .ast-export-actions>[data-slot="native-select-wrapper"] {width:99px}
  .atlas-studio.ast-dialog .ast-stage {padding:8px}
  .atlas-studio.ast-dialog .ast-preview-navigation {position:relative}
  .atlas-studio.ast-dialog .ast-view-controls {position:absolute;right:12px;bottom:8px;padding:0;background:transparent}
  .atlas-studio.ast-dialog .ast-view-hint {display:none}
}

/* A single header row: identity, compact live clock, and two clear actions. */
.topbar .header-actions .donate-button {
  display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;
  padding:0;border:1px solid var(--lime);border-radius:8px;background:var(--lime);color:#ef4444;
  transition:background-color 160ms,scale 160ms;
}
.topbar .header-actions .donate-button svg {width:23px;height:23px;fill:currentColor}
.topbar .header-actions .donate-button:hover {background:#d1ff40;border-color:#d1ff40}
.topbar .header-actions .donate-button:active {scale:.94}
.topbar .header-actions .donate-button:focus-visible {outline:2px solid #fff;outline-offset:3px}
.topbar .last-post-clock[data-compact="true"] {
  flex:none;display:grid;grid-template-columns:auto;justify-content:start;align-content:center;
  gap:3px;min-height:44px;padding:5px 10px;margin-inline:auto;border:0;border-radius:8px;
  background:transparent;box-shadow:none;
}
.topbar .last-post-clock[data-compact="true"] .clock-intro {width:auto;gap:6px;padding-right:18px}
.topbar .last-post-clock[data-compact="true"] .clock-intro h2 {white-space:nowrap;font-size:9px;line-height:1.3}
.topbar .last-post-clock[data-compact="true"] .clock-display {justify-content:flex-start;gap:3px}
.topbar .last-post-clock[data-compact="true"] .clock-toggle {
  position:absolute;inset:0;grid-column:auto;grid-row:auto;width:100%;height:100%;min-width:0;
  border:0;border-radius:8px;background:transparent;
}
.topbar .last-post-clock[data-compact="true"] .clock-toggle svg {top:6px;right:6px;width:14px;height:14px}
.topbar .last-post-clock[data-compact="true"] .clock-toggle:hover {background:#86de980a}
.topbar .last-post-clock[data-compact="true"] .clock-toggle:active {scale:.98}
.topbar.has-compact-clock .header-actions {margin-left:0}
@media(max-width:1100px),(hover:none) and (pointer:coarse) {
  .topbar.has-compact-clock {gap:12px}
  .topbar .last-post-clock[data-compact="true"] .clock-title-full {display:none}
  .topbar .last-post-clock[data-compact="true"] .clock-title-short {display:inline}
}
@media(max-width:600px) {
  .topbar.has-compact-clock {gap:6px}
  .topbar .last-post-clock[data-compact="true"] {gap:4px;padding:5px 4px}
  .topbar .last-post-clock[data-compact="true"] .clock-intro {gap:5px;padding-right:14px}
  .topbar .last-post-clock[data-compact="true"] .clock-intro h2 {font-size:7px}
  .topbar .last-post-clock[data-compact="true"] .clock-value {font-size:13px}
  .topbar .last-post-clock[data-compact="true"] .clock-unit--milliseconds .clock-value {font-size:9px}
  .topbar .last-post-clock[data-compact="true"] .clock-display {gap:2px}
  .topbar .last-post-clock[data-compact="true"] [data-clock-unit="days"] {margin-right:3px;gap:1px}
  .topbar .last-post-clock[data-compact="true"] [data-clock-unit="days"]::after {font-size:8px}
  .topbar .last-post-clock[data-compact="true"] .clock-colon {gap:3px}
  .topbar .last-post-clock[data-compact="true"] .clock-colon::before,
  .topbar .last-post-clock[data-compact="true"] .clock-colon::after {width:1px;height:1px}
  .topbar .last-post-clock[data-compact="true"] .clock-toggle svg {top:5px;right:2px}
}
@media(max-width:380px) {
  .topbar.has-compact-clock {gap:4px;padding-inline:8px}
  .topbar.has-compact-clock .brand {padding-left:36px}
  .topbar.has-compact-clock .atlas-punk {width:48px;height:48px;left:-6px}
  .topbar.has-compact-clock .atlas-wordmark {font-size:9px}
  .topbar.has-compact-clock .atlas-wordmark>span {font-size:6px;letter-spacing:2px}
  .topbar.has-compact-clock .header-actions {gap:4px}
  .topbar .last-post-clock[data-compact="true"] {padding-inline:3px}
  .topbar .last-post-clock[data-compact="true"] .clock-value {font-size:11px}
  .topbar .last-post-clock[data-compact="true"] .clock-unit--milliseconds .clock-value {font-size:8px}
}
@media(prefers-reduced-motion:reduce) {
  .topbar .header-actions .donate-button {transition:none}
}

/* The notice belongs after the workspace, outside the viewport controls. */
body {overflow-x:clip;overflow-y:auto}
body>main {flex:none;min-height:320px}
.independence-banner {position:static;inset:auto;flex:none}
.workspace .content {overscroll-behavior-y:auto}
#coverage-dialog #live-update-status {font-size:12px;line-height:1.7;max-width:none;white-space:normal;color:var(--muted)}
.canvas-tools {left:auto;right:12px;bottom:12px;width:max-content;padding:3px;gap:2px;border-radius:10px;background:#111b08f5}
.canvas-tools button {display:grid;place-items:center;min-width:44px;min-height:44px;padding:8px 10px;border-radius:7px;font-size:12px;transition:background-color 160ms,scale 160ms}
.canvas-tools #zoom-out,.canvas-tools #zoom-in {font-size:18px;padding:0}
.canvas-tools #fit-view {margin-left:2px;padding-inline:12px}
.canvas-tools button:active {scale:.96}
@media(prefers-reduced-motion:reduce) {.canvas-tools button {transition:none}}
