/* Shared visual layer for pages in the personal tool portal. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('/assets/botanical-frame-desktop-v1.png');
  background-repeat: no-repeat;
  background-position: center -64px;
  background-size: 100% auto;
  opacity: 0.38;
}

.shell,
#app,
#root {
  position: relative;
  z-index: 1;
}

.garden {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg, #f6f5f1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.brand__word strong,
.hero__title,
.hero__title *,
.page-title {
  color: var(--accent-deep, #42584a) !important;
}

@media (max-width: 560px) {
  body::after {
    background-image: url('/assets/botanical-frame-mobile-v2.png');
    background-position: center -38px;
    opacity: 0.28;
  }
}

/* Unified workstation controls: back link, runtime status, and clock. */
.topbar__meta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar__meta .back {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 16px;
  border: 1px solid var(--line, #e7e5dc);
  border-radius: 999px;
  color: var(--ink-2, #56544c);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(36, 35, 31, 0.05));
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.topbar__meta .back:hover {
  border-color: var(--accent, #5f7c61);
  color: var(--accent-deep, #42584a);
  background: var(--accent-soft, #e6ece1);
}

.topbar__meta .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line, #e7e5dc);
  border-radius: 999px;
  color: var(--ink-2, #56544c);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(36, 35, 31, 0.05));
  font-size: 12px;
  white-space: nowrap;
}

.topbar__meta .status::before {
  content: none;
}

.topbar__meta .status__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ok, var(--success, #4f9d6b));
  box-shadow: 0 0 0 3px rgba(79, 157, 107, 0.14);
}

.topbar__meta .clock {
  display: grid;
  min-width: 82px;
  gap: 3px;
  text-align: right;
  white-space: nowrap;
}

.topbar__meta .clock strong {
  color: var(--ink, #24231f);
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.topbar__meta .clock > span {
  color: var(--muted, #6b685d);
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 9px;
  line-height: 1;
}

@media (max-width: 720px) {
  .topbar__meta .clock {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar__meta {
    gap: 8px;
  }

  .topbar__meta .status {
    display: none;
  }

  .topbar__meta .back {
    padding: 8px 9px;
    font-size: 11px;
  }
}