/* Interface cleanup: keep real content, remove repetitive status chrome. */

.projects-header {
  grid-template-columns: minmax(0, 1fr);
}

.projects-counters,
.project-row-status,
.inspector-status,
.projects-footer,
.blog-index-hint,
.contact-index-hint,
.blog-index-app > .note {
  display: none;
}

.project-browser-head {
  grid-template-columns: minmax(0, 1fr);
}

.project-browser-head > span:last-child {
  display: none;
}

.project-row {
  grid-template-columns: 35px minmax(0, 1fr);
  min-height: 48px;
  padding-block: 7px;
}

.project-row-copy small {
  -webkit-line-clamp: 1;
}

.inspector-titlebar {
  grid-template-columns: 47px minmax(0, 1fr);
}

.project-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-fact:last-child {
  display: none;
}

.inspector-panel:has(.project-roadmap) {
  display: none;
}

.article-meta-code {
  display: none;
}

.article-meta {
  grid-template-columns: minmax(0, 1fr);
}

.article-ending p {
  display: none;
}

/* Stable window sizing and restore behaviour. */
.titlebar {
  user-select: none;
}

.window.maximized {
  inset: 10px 10px 42px;
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 0;
  max-width: none;
  max-height: none;
}

.window.maximized .window-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.window.maximized .menu-bar,
.window.maximized .status-bar {
  flex: 0 0 auto;
}

.window.maximized .content-frame {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.window.maximized .content-scroll {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
}

button.taskbar-item {
  width: 100%;
  background: var(--window-face);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.taskbar-item.is-active {
  border-color: var(--window-dark) white white var(--window-dark);
  box-shadow: inset 1px 1px 0 var(--window-mid);
}

.taskbar-item:not(.is-active) {
  border-color: white var(--window-dark) var(--window-dark) white;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.8), inset -1px -1px 0 var(--window-mid);
}

.taskbar-item:focus-visible {
  outline: 1px dotted var(--window-dark);
  outline-offset: -5px;
}

/* Right-side status cell: indeterminate Win98-style activity bar. */
.status-progress {
  display: flex;
  align-items: center;
  width: clamp(108px, 16vw, 168px);
  min-width: 108px;
  padding: 4px 6px;
}

.status-progress-track {
  position: relative;
  display: block;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--window-dark);
  background: #f8edf4;
  box-shadow:
    inset 1px 1px 0 rgba(94, 70, 106, .42),
    1px 1px 0 rgba(255, 255, 255, .82);
}

.status-progress-track::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 42%;
  background: repeating-linear-gradient(
    90deg,
    #55c96c 0 7px,
    #55c96c 7px 8px,
    #a7e5af 8px 9px,
    transparent 9px 11px
  );
  filter: drop-shadow(0 0 2px rgba(72, 196, 96, .48));
  animation: statusProgressSweep 2.5s steps(14, end) infinite;
}

@keyframes statusProgressSweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(350%); }
}

/* Compact global CRT scanline switch in the taskbar. */
.crt-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  min-width: 58px;
  height: 29px;
  padding: 3px 7px;
  border: 2px solid;
  border-color: white var(--window-dark) var(--window-dark) white;
  background: var(--window-face);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.8), inset -1px -1px 0 var(--window-mid);
  color: var(--ink);
  font-family: var(--terminal);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.crt-toggle:active,
.crt-toggle.is-on {
  border-color: var(--window-dark) white white var(--window-dark);
  box-shadow: inset 1px 1px 0 var(--window-mid);
}

.crt-toggle-led {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: #8c7d91;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.45);
}

.crt-toggle.is-on .crt-toggle-led {
  background: #55c96c;
  box-shadow: 0 0 5px rgba(85,201,108,.85), inset 1px 1px 0 rgba(255,255,255,.52);
}

.crt-toggle:focus-visible {
  outline: 1px dotted var(--window-dark);
  outline-offset: -5px;
}

body.crt-lines-off .crt-overlay {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .status-progress-track::before {
    width: 68%;
    animation: none;
    transform: none;
  }
}

@media (max-width: 760px) {
  .project-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .window.maximized {
    inset: 4px 4px 40px;
  }

  .crt-toggle {
    min-width: 48px;
    padding-inline: 5px;
    font-size: 14px;
  }
}
