/* CarlOS — production styles recreated from the Claude Design prototype.
   The prototype's inline styles are the spec; values are copied verbatim. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0B0E13;
}

/* Reset native buttons so they can carry design styling */
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  text-align: inherit;
  cursor: pointer;
}

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid #59F3E3;
  outline-offset: 2px;
}

/* Windows receive programmatic focus on open; the dialog container
   itself does not need a focus ring (its controls keep theirs) */
.window:focus,
.window:focus-visible {
  outline: none;
}

@keyframes winin {
  0%   { opacity: 0; transform: scale(0.96) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes toastin {
  0%   { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes blinkc {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes sheetin {
  0%   { opacity: 0; transform: translateY(100%); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- desktop ---------- */

.desktop {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: 'Space Grotesk', sans-serif;
  user-select: none;
  -webkit-user-select: none;
  background: linear-gradient(165deg, #0B0E13 0%, #0F171C 45%, #0B1014 100%);
  color: #E9ECEA;
}

.wall-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 640px at 72% 18%, rgba(89,243,227,0.13), transparent 70%),
    radial-gradient(900px 600px at 14% 86%, rgba(122,220,170,0.10), transparent 70%),
    radial-gradient(700px 500px at 45% 55%, rgba(96,140,255,0.06), transparent 70%);
  pointer-events: none;
}

.wall-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.wall-glyph > div {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 46vh;
  line-height: 1;
  color: rgba(233,236,234,0.025);
}

.wall-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(233,236,234,0.035) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
}

/* ---------- menubar ---------- */

.menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* 36px of content height plus the top notch inset; 36px exactly on desktop */
  height: 36px;
  height: calc(36px + env(safe-area-inset-top, 0px));
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(14,18,22,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menubar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.menubar-logo:hover { color: #59F3E3; }
.menubar-glyph { font-size: 15px; }

.menubar-menus {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: rgba(233,236,234,0.8);
}
.menu-inert { cursor: default; }
.menu-live:hover { color: #59F3E3; }

.menubar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: rgba(233,236,234,0.75);
  font-family: 'Space Mono', monospace;
}
.menubar-time { color: #E9ECEA; }

/* ---------- desktop widget ---------- */

.widget {
  position: absolute;
  right: 28px;
  bottom: 132px;
  width: 320px;
  z-index: 20;
  background: rgba(16,21,25,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.widget-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.widget-label {
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: #59F3E3;
}

.widget-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-all {
  font-size: 11.5px;
  color: rgba(233,236,234,0.6);
  text-decoration: none;
}
.widget-all:hover { color: #59F3E3; }

.widget-close {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  border-radius: 5px;
  color: rgba(233,236,234,0.5);
}
.widget-close:hover { color: #E9ECEA; background: rgba(255,255,255,0.10); }

.widget-list { display: flex; flex-direction: column; }

.widget-post {
  padding: 9px 0;
  text-decoration: none;
  color: #E9ECEA;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.widget-post:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.07); }
.widget-post:hover { color: #59F3E3; }

/* ---------- windows (shared) ---------- */

.window {
  position: absolute;
  background: rgba(244,244,241,0.97);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.12);
  overflow: hidden;
  animation: winin 0.35s cubic-bezier(0.16,1,0.3,1);
  color: #16191C;
  user-select: text;
  -webkit-user-select: text;
}

/* Widths cap so left% + width never exceeds 100vw - 16px on tablets;
   at >=1280px wide each min() resolves to the original pixel width. */
.win-readme   { left: 14%; top: 13%; width: min(600px, calc(86vw - 16px)); z-index: 100; }
.win-thoughts { left: 30%; top: 26%; width: min(620px, calc(70vw - 16px)); z-index: 101; }
.win-work     { left: 22%; top: 38%; width: min(540px, calc(78vw - 16px)); z-index: 102; }
.win-trash    { left: 38%; top: 44%; width: min(440px, calc(62vw - 16px)); z-index: 104; }

.win-contact {
  left: 46%;
  top: 16%;
  width: min(520px, calc(54vw - 16px));
  z-index: 103;
  background: rgba(10,13,16,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.12);
  color: #E9ECEA;
}

.win-quiz {
  left: 18%;
  top: 12%;
  width: min(900px, calc(92vw - 16px));
  height: min(640px, 72vh);
  z-index: 105;
  display: flex;
  flex-direction: column;
}

.quiz-body {
  flex: 1;
  min-height: 0;
  padding: 0;
}

.quiz-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0f141b;
}

/* While dragging a window, stop iframes from swallowing pointermove events. */
body.drag-active iframe { pointer-events: none; }

/* Resize handle — bottom-right corner grip (desktop only, added by JS). */
.resize-handle {
  position: absolute;
  z-index: 12;
  touch-action: none;
}
.resize-se {
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  cursor: nwse-resize;
}
.resize-se::after {
  content: '';
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(120,130,140,0.5);
  border-bottom: 2px solid rgba(120,130,140,0.5);
  border-bottom-right-radius: 3px;
}

.titlebar {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: rgba(236,236,231,0.9);
  border-bottom: 1px solid rgba(22,25,28,0.08);
}
.titlebar:active { cursor: grabbing; }

.titlebar-dark {
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lights {
  display: flex;
  align-self: stretch;
  gap: 0;
  width: 120px;
}
.lights-spacer { width: 120px; }

.tl {
  flex: 0 0 40px;
  height: 100%;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(22,25,28,0.55);
  cursor: pointer;
  position: relative;
  transition: background 0.1s, color 0.1s;
}
.tl:hover { background: rgba(22,25,28,0.08); color: #16191C; }

.tl-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  display: block;
}

.tl-close { background: none; }
.tl-close:hover { background: #E81123; color: #FFFFFF; }
.tl-min { background: none; }
.tl-max { background: none; }

/* Dark titlebar variant (contact window) */
.titlebar-dark .tl { color: rgba(233,236,234,0.55); }
.titlebar-dark .tl:hover { background: rgba(255,255,255,0.1); color: rgba(233,236,234,0.9); }
.titlebar-dark .tl-close:hover { background: #E81123; color: #FFFFFF; }

.window.maximized { overflow-y: auto; border-radius: 0; }

.titlebar-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #3A4046;
}
.titlebar-title-dark { color: rgba(233,236,234,0.7); }

/* ---------- About This Carl ---------- */

.about-body {
  display: flex;
  gap: 24px;
  padding: 28px;
}

.about-photo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.about-photo img {
  width: 132px;
  height: 132px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(22,25,28,0.25);
}

.about-version {
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #5C646C;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.about-name {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.about-role {
  font-size: 13.5px;
  color: #5C646C;
  margin-top: 2px;
}

.about-bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #2A3036;
}

.about-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(22,25,28,0.07);
}

.about-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-dark {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 9px;
  background: #16191C;
  color: #F4F4F1;
  text-decoration: none;
}
.btn-dark:hover { background: #2A3036; }

.btn-ghost {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 9px;
  border: 1px solid rgba(22,25,28,0.25);
  color: #16191C;
  text-decoration: none;
}
.btn-ghost:hover { background: rgba(22,25,28,0.06); }

/* ---------- Thoughts ---------- */

.thoughts-body { padding: 10px 12px 0; }

.thoughts-list {
  display: flex;
  flex-direction: column;
}

.thought-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: start;
  padding: 13px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #16191C;
}
.thought-row:hover { background: rgba(22,25,28,0.06); }

.thought-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.thought-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.thought-blurb {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
  color: #5C646C;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.thought-date {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #5C646C;
  line-height: 1.5;
}
.thought-arrow {
  font-size: 13px;
  color: #7A828A;
  line-height: 1.5;
}

.thoughts-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 10px 12px 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #16191C;
  color: #F4F4F1;
}

.thoughts-pitch {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(244,244,241,0.85);
}

.btn-subscribe {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 9px;
  background: #59F3E3;
  color: #0B0E13;
  text-decoration: none;
}
.btn-subscribe:hover { filter: brightness(1.08); }

/* ---------- Work.log ---------- */

.work-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: baseline;
}

.work-year {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 0;
  text-align: center;
  border-radius: 7px;
  background: rgba(22,25,28,0.07);
}
.work-year-now {
  background: #59F3E3;
  color: #0B0E13;
}

.work-text {
  font-size: 14px;
  line-height: 1.55;
}
.work-text-now { font-weight: 600; }

/* ---------- contact terminal ---------- */

.terminal {
  padding: 18px 20px 22px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 2.1;
  color: #7ADCAA;
}

.term-prompt { opacity: 0.7; }
.term-dim { opacity: 0.6; }

.terminal a {
  color: #7ADCAA;
}
.terminal a:hover { color: #59F3E3; }

.term-cursor { animation: blinkc 1.1s step-end infinite; }

/* ---------- trash ---------- */

.trash-body { padding: 14px 16px 18px; }

.trash-list {
  display: flex;
  flex-direction: column;
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  color: #5C646C;
}

.trash-item { padding: 8px 10px; }
.trash-item:not(:last-child) { border-bottom: 1px solid rgba(22,25,28,0.07); }

.trash-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.btn-keep {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid rgba(22,25,28,0.25);
  background: transparent;
  color: #16191C;
}
.btn-keep:hover { background: rgba(22,25,28,0.06); }

/* ---------- notification toast ---------- */

.toast {
  position: absolute;
  top: 52px;
  top: calc(52px + env(safe-area-inset-top, 0px));
  right: 20px;
  width: 340px;
  z-index: 600;
  background: rgba(16,21,25,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  animation: toastin 0.45s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  gap: 12px;
  align-items: center;
}

.toast-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #59F3E3;
  color: #0B0E13;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 19px;
}

.toast-text {
  flex: 1;
  min-width: 0;
}
.toast-title {
  font-size: 13.5px;
  font-weight: 600;
}
.toast-sub {
  font-size: 12px;
  color: rgba(233,236,234,0.6);
  margin-top: 1px;
}

.toast-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toast-open {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #E9ECEA;
  text-decoration: none;
  text-align: center;
}
.toast-open:hover { background: rgba(255,255,255,0.18); }

.toast-later {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  color: rgba(233,236,234,0.55);
  text-align: center;
}
.toast-later:hover { color: #E9ECEA; }

/* ---------- dock ---------- */

.dock-wrap {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 500;
}

.dock {
  display: flex;
  align-items: flex-end;
  user-select: none;
  -webkit-user-select: none;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(16,21,25,0.6);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
}

.dock-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  transition: transform 0.2s cubic-bezier(0.22,0.61,0.36,1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dock-item:hover .dock-icon,
.dock-item:focus-visible .dock-icon {
  transform: translateY(-8px) scale(1.16);
}

.dock-icon-photo { overflow: hidden; }
.dock-icon-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dock-icon-thoughts {
  background: linear-gradient(165deg, #FCFCFA, #E4E4DE);
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  padding: 0 11px;
}
.th-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(22,25,28,0.25);
}
.th-line-accent { background: #59F3E3; }
.th-line-short { width: 70%; }

.dock-icon-work {
  background: linear-gradient(165deg, #2E3A44, #1A2128);
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #E9ECEA;
}

.dock-icon-term {
  background: linear-gradient(165deg, #15191D, #0B0E13);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #7ADCAA;
}

.dock-divider {
  width: 1px;
  align-self: stretch;
  margin: 4px 4px 12px;
  background: rgba(255,255,255,0.14);
}

.dock-icon-substack {
  background: linear-gradient(165deg, #FF7731, #E4520B);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #FFFFFF;
}

.dock-icon-quiz {
  background: linear-gradient(165deg, #7C6BFF, #4E2CE0);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #FFFFFF;
}

.dock-icon-trash {
  background: linear-gradient(165deg, #3A4046, #23282D);
  flex-direction: column;
  gap: 3px;
}
.trash-lid {
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: rgba(233,236,234,0.75);
}
.trash-can {
  width: 16px;
  height: 14px;
  border-radius: 0 0 4px 4px;
  border: 2px solid rgba(233,236,234,0.75);
  border-top: none;
}

/* Open-window indicator dot. Always occupies 4x4 so the dock never shifts. */
.dock-dot {
  width: 4px;
  height: 4px;
}
.dock-dot.on {
  border-radius: 50%;
  background: rgba(233,236,234,0.85);
}

.dock-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(233,236,234,0.65);
  white-space: nowrap;
  line-height: 1;
}
.dock-item:hover .dock-label,
.dock-item:focus-visible .dock-label { color: #E9ECEA; }

/* ---------- footer ---------- */

.desktop-footer {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 5;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(233,236,234,0.55);
  line-height: 1.7;
}

/* ---------- mobile: app-like layout ---------- */

@media (max-width: 768px) {

  /* Menubar simplifies to logo + time */
  .menubar-menus,
  .menubar-cpu,
  .menubar-date { display: none; }

  /* Minimise/maximise lights and resize handles are desktop-only */
  .tl-min, .tl-max { display: none; }
  .resize-handle { display: none; }

  /* With only close showing, spacer would unbalance the title */
  .lights-spacer { display: none; }
  .titlebar { padding-left: 14px; }

  /* Enlarged tap area for the menubar logo without changing its layout */
  .menubar-logo {
    padding: 12px 6px;
    margin: -12px -6px;
  }

  /* Desktop widget is covered by the Thoughts sheet on mobile */
  .widget { display: none; }
  .desktop-footer { display: none; }

  /* Dock becomes a fixed bottom tab bar */
  .dock-wrap {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
  }
  .dock {
    justify-content: space-around;
    align-items: flex-end;
    gap: 0;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .dock-divider { margin: 4px 0 12px; }

  /* No magnification on touch */
  .dock-item:hover .dock-icon,
  .dock-item:focus-visible .dock-icon {
    transform: none;
  }

  /* Windows become full-width bottom sheets above the tab bar.
     !important overrides any inline left/top set by desktop dragging. */
  .window {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-height: calc(100dvh - 36px - 88px - env(safe-area-inset-bottom) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    border-radius: 18px 18px 0 0;
    animation: sheetin 0.35s cubic-bezier(0.16,1,0.3,1);
  }

  /* Quiz: give the iframe a concrete height inside the bottom sheet.
     flex:none stops the body collapsing to the iframe's intrinsic height. */
  .win-quiz { height: auto !important; }
  .quiz-body { flex: none; height: 70vh; }

  /* Titlebar pins to the top of the sheet so the close light stays
     reachable while the sheet content scrolls. */
  .titlebar {
    cursor: default;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(236,236,231,0.97);
  }
  .titlebar-dark {
    background: rgba(13,17,21,0.97);
  }

  /* About window stacks vertically, image smaller and centered */
  .about-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 22px 20px 26px;
  }
  .about-photo img {
    width: 104px;
    height: 104px;
    border-radius: 22px;
  }
  .about-text { align-items: center; }
  .about-tags { justify-content: center; }
  .about-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  .btn-dark, .btn-ghost {
    padding: 12px 18px;
  }

  /* Comfortable touch sizing in the Thoughts footer */
  .thoughts-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .btn-subscribe { padding: 12px 18px; }

  /* Toast spans the width with room to breathe */
  .toast {
    left: 16px;
    right: 16px;
    width: auto;
  }
  .toast-open, .toast-later {
    padding: 10px 14px;
  }

  /* Work rows: slightly tighter year column */
  .work-body { padding: 18px 16px 22px; }

  .thoughts-body { padding: 8px 8px 0; }
  .thoughts-footer { margin: 10px 8px 12px; }
}
