.subhub-window-content {
  overflow: auto;
  padding: 18px;
}

.subhub-app {
  --hub-surface: #111827;
  --hub-card: #1d293b;
  --hub-accent: #7dd3fc;
  --hub-text: #e5edf8;
  --hub-muted: #aab8cb;
  display: grid;
  gap: 14px;
  color: var(--hub-text);
  background: var(--hub-surface);
  border-radius: 16px;
  padding: 18px;
}

.subhub-app[data-theme="desktop"] {
  --hub-surface: #f7f9fd;
  --hub-card: #ffffff;
  --hub-accent: #2d5888;
  --hub-text: #24334a;
  --hub-muted: #526780;
}

.desktop.dark-theme .subhub-app[data-theme="desktop"] {
  --hub-surface: #101f35;
  --hub-card: #142842;
  --hub-accent: #a9ceff;
  --hub-text: #d1deef;
  --hub-muted: #9fb3ce;
}

.subhub-app[data-theme="ocean"] {
  --hub-surface: #082f49;
  --hub-card: #0c4a6e;
  --hub-accent: #67e8f9;
  --hub-text: #ecfeff;
  --hub-muted: #bae6fd;
}

.subhub-app[data-theme="warm"] {
  --hub-surface: #3b231a;
  --hub-card: #553525;
  --hub-accent: #fdba74;
  --hub-text: #fff7ed;
  --hub-muted: #fed7aa;
}

.subhub-app[data-theme="light"] {
  --hub-surface: #f1f5f9;
  --hub-card: #ffffff;
  --hub-accent: #2563eb;
  --hub-text: #172033;
  --hub-muted: #526078;
}

.subhub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.subhub-brand h2,
.subhub-brand p {
  margin: 0;
}

.subhub-brand h2 {
  font-size: 1.7rem;
}

.subhub-eyebrow {
  color: var(--hub-accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.subhub-clock,
.subhub-status,
.subhub-empty {
  color: var(--hub-muted);
}

.desktop .window-content .subhub-app .subhub-clock,
.desktop .window-content .subhub-app .subhub-status,
.desktop .window-content .subhub-app .subhub-empty,
.desktop .window-content .subhub-app .subhub-widget h4,
.desktop .window-content .subhub-app .subhub-search-result span,
.desktop .window-content .subhub-app .subhub-clip {
  color: var(--hub-muted);
}

.subhub-status {
  min-height: 1em;
  margin: 0;
  font-size: .85rem;
}

.subhub-widget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.subhub-widget {
  min-width: 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--hub-accent) 25%, transparent);
  border-radius: 12px;
  background: var(--hub-card);
}

.subhub-widget[hidden],
.subhub-search-widget[hidden] {
  display: none;
}

.subhub-widget h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.subhub-widget h4 {
  margin: 12px 0 6px;
  color: var(--hub-muted);
  font-size: .8rem;
  text-transform: uppercase;
}

.subhub-search-widget input,
.subhub-widget textarea,
.subhub-task-form input,
.subhub-pin-select select,
.subhub-customization select {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--hub-accent) 38%, transparent);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--hub-text);
  background: color-mix(in srgb, var(--hub-surface) 75%, transparent);
}

.subhub-widget textarea {
  resize: vertical;
}

.subhub-link,
.subhub-search-result {
  display: block;
  width: 100%;
  margin: 5px 0;
  border: 0;
  border-radius: 7px;
  padding: 8px;
  color: var(--hub-text);
  background: color-mix(in srgb, var(--hub-accent) 12%, transparent);
  text-align: left;
  cursor: pointer;
}

.subhub-link:hover,
.subhub-search-result:hover {
  background: color-mix(in srgb, var(--hub-accent) 25%, transparent);
}

.subhub-pin-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.subhub-pin-row .subhub-link {
  flex: 1;
}

.subhub-search-result strong,
.subhub-search-result span {
  display: block;
}

.subhub-search-result span {
  margin-top: 3px;
  color: var(--hub-muted);
  font-size: .82rem;
}

.subhub-task-form {
  display: flex;
  gap: 7px;
}

.subhub-action,
.subhub-remove {
  border: 1px solid color-mix(in srgb, var(--hub-accent) 45%, transparent);
  border-radius: 7px;
  padding: 6px 10px;
  color: var(--hub-text);
  background: transparent;
  cursor: pointer;
}

.subhub-task-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.subhub-task-row span {
  flex: 1;
  overflow-wrap: anywhere;
}

.subhub-task-row .is-done {
  text-decoration: line-through;
  opacity: .65;
}

.subhub-task-row input {
  accent-color: var(--hub-accent);
}

.subhub-event,
.subhub-clip,
.subhub-countdown {
  margin: 7px 0;
  overflow-wrap: anywhere;
}

.subhub-clip {
  border-left: 2px solid var(--hub-accent);
  padding-left: 8px;
  color: var(--hub-muted);
}

.subhub-customization {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--hub-card);
}

.subhub-customization summary {
  color: var(--hub-accent);
  cursor: pointer;
  font-weight: 700;
}

.subhub-customization-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.subhub-customization-body > label {
  display: grid;
  gap: 6px;
}

.subhub-widget-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--hub-accent) 25%, transparent);
  border-radius: 8px;
}

.subhub-widget-choices label,
.subhub-startup-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.subhub-widget-choices input,
.subhub-startup-toggle input {
  accent-color: var(--hub-accent);
}

@media (max-width: 680px) {
  .subhub-widget-grid {
    grid-template-columns: 1fr;
  }

  .subhub-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
