/* —— Home (Lovable-style board + preview cards) —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.home {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  color: var(--home-ink);
  color-scheme: inherit;
  font-family: "DM Sans", Outfit, system-ui, sans-serif;
  background: var(--home-bg);
  caret-color: var(--ember);
}
.home ::selection {
  background: rgba(224, 138, 60, 0.28);
  color: var(--home-ink);
}
.home-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--home-aurora);
}
.home > * { position: relative; z-index: 1; }
.home[hidden] { display: none !important; }
.shell[hidden] { display: none !important; }
.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
}
.home-top .brand {
  font-size: 1.55rem;
  cursor: default;
  color: var(--home-ink);
}
.home .logout {
  color: var(--home-muted);
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 10px;
}
.home .logout:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .home .logout:hover { color: var(--home-ink); }
}
.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4.5vh 1.25rem 3.5rem;
  text-align: center;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}
.home-hero {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.home-brand {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3.4rem, 9vw, 5.2rem);
  line-height: 0.92;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  color: var(--home-ink);
  animation: homeIn 0.32s var(--ease-out) both;
}
.home-brand span { color: var(--ember); font-style: italic; }
.home-lead {
  margin: 0;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 600;
  color: var(--home-ink);
  animation: homeIn 0.32s var(--ease-out) 0.05s both;
}
.home-sub {
  margin: 0.45rem 0 0;
  color: var(--home-muted);
  font-size: 1rem;
  animation: homeIn 0.32s var(--ease-out) 0.09s both;
}
.home-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
}
.home-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  min-height: 44px;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 140ms var(--ease-out);
  animation: homeIn 0.32s var(--ease-out) both;
}
.home-chip:nth-child(1) { animation-delay: 120ms; }
.home-chip:nth-child(2) { animation-delay: 160ms; }
.home-chip:nth-child(3) { animation-delay: 200ms; }
.home-chip:nth-child(4) { animation-delay: 240ms; }
.home-chip:nth-child(5) { animation-delay: 280ms; }
.home-chip:active { transform: scale(0.97); }
.home-chip:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
.home-chip svg { width: 15px; height: 15px; flex: 0 0 auto; }
@media (hover: hover) and (pointer: fine) {
  .home-chip:hover {
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  }
}
.home-composer, .chat-composer {
  width: 100%;
  text-align: left;
  background: rgba(18, 16, 14, 0.88);
  border: 1px solid rgba(242, 235, 227, 0.14);
  border-radius: 18px;
  padding: 0.75rem 0.85rem 0.7rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}
.home-composer {
  margin-top: 1.75rem;
  animation: homeIn 0.32s var(--ease-out) 0.14s both;
}
.home .home-composer {
  background: var(--home-card);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}
.home #homePrompt {
  color: var(--home-ink);
  min-height: 88px;
}
.home #homePrompt::placeholder { color: #64748b; }
.home .composer-toolbar {
  border-top-color: #f1f5f9;
  flex-wrap: wrap;
}
.home .pill-select,
.home .tool-icon {
  background: #f8fafc;
  color: #1e293b;
  border-color: var(--home-line);
}
.home .tool-icon {
  width: 2.75rem;
  height: 2.75rem;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 140ms var(--ease-out);
}
.home .tool-icon:active { transform: scale(0.97); }
.home .pill-select:focus,
.home .tool-icon:focus-visible {
  border-color: rgba(224, 138, 60, 0.7);
  outline: 2px solid rgba(224, 138, 60, 0.35);
}
@media (hover: hover) and (pointer: fine) {
  .home .tool-icon:hover {
    border-color: rgba(224, 138, 60, 0.55);
    color: #c46a22;
  }
}
.home .attach-chip {
  border-color: var(--home-line);
  background: #f8fafc;
}
.home.is-planning .home-brand,
.home.is-planning .home-lead,
.home.is-planning .home-sub,
.home.is-planning .home-chips,
.home.is-planning .home-empty {
  display: none;
}
.home.is-planning .home-main { padding-top: 0.35rem; }
.home.is-planning .home-composer { margin-top: 0; }
.home-plan {
  width: 100%;
  max-width: 720px;
  margin-top: 1rem;
  text-align: left;
  background: var(--home-card);
  border: 1px solid rgba(224, 138, 60, 0.28);
  border-radius: 18px;
  padding: 0.9rem 0.95rem 0.85rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
  animation: homeIn 0.28s var(--ease-out) both;
}
.home-plan[hidden] { display: none !important; }
.home-plan-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--home-ink);
}
.home-plan-hint {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: var(--home-muted);
  line-height: 1.4;
}
.home-plan.is-loading .home-plan-hint { margin-bottom: 0.15rem; }
.home-plan-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}
.home-plan-label small {
  font-weight: 400;
  color: #64748b;
}
.home-plan label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--home-ink);
  margin-bottom: 0.55rem;
}
.home-plan input,
.home-plan textarea {
  width: 100%;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--home-ink);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.5rem 0.65rem;
  outline: none;
  resize: vertical;
}
.home-plan textarea { min-height: 3.4rem; max-height: 9rem; }
.home-plan input:focus,
.home-plan textarea:focus { border-color: rgba(224, 138, 60, 0.5); }
.home-plan-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  position: sticky;
  bottom: 0.6rem;
  margin-top: 0.55rem;
  padding-top: 0.65rem;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--home-card) 28%);
  z-index: 2;
}
.home-plan-go {
  background: linear-gradient(180deg, #f0a35a, var(--ember));
  color: #1a1008;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), opacity 160ms ease;
}
.home-plan-go:active { transform: scale(0.97); }
.home-plan-go:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
.home-plan-go:disabled { opacity: 0.45; cursor: wait; }
.home .btn-ghost {
  color: var(--home-muted);
  border-color: var(--home-line);
  min-height: 44px;
}
.home .btn-ghost:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
.home-plan-hint.is-loading::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--ember);
  vertical-align: middle;
  animation: pulse 1.4s var(--ease-out) infinite;
}
.attach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}
.attach-row:empty { display: none; }
.attach-chip {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0908;
  flex: 0 0 auto;
}
.attach-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.attach-chip button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 1.15rem;
  height: 1.15rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
textarea#homePrompt, textarea#prompt {
  width: 100%;
  min-height: 110px;
  max-height: 260px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.02rem;
  line-height: 1.45;
  padding: 0.25rem 0.15rem 0.55rem;
}
textarea#prompt {
  min-height: 72px;
  max-height: 160px;
  font-size: 0.95rem;
}
textarea#homePrompt::placeholder, textarea#prompt::placeholder {
  color: rgba(168, 153, 140, 0.75);
}
.composer-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}
.tool-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 11, 10, 0.55);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.tool-icon:hover {
  border-color: rgba(224, 138, 60, 0.45);
  color: var(--ember);
}
.tool-icon:disabled { opacity: 0.4; cursor: not-allowed; }
.pill-select {
  flex: 0 1 auto;
  width: auto;
  min-width: 9.5rem;
  max-width: 14rem;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: rgba(12, 11, 10, 0.55);
  color: var(--ink);
  border: 1px solid var(--line);
  font: inherit;
  outline: none;
  cursor: pointer;
}
.pill-select:focus { border-color: rgba(224, 138, 60, 0.5); }
.toolbar-spacer { flex: 1; min-width: 0.5rem; }
.home-send, .chat-send {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  background: linear-gradient(180deg, #f0a35a, var(--ember));
  color: #1a1008;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  flex: 0 0 auto;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease;
}
.home-send:active, .chat-send:active { transform: scale(0.97); }
.home-send:focus-visible, .chat-send:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
.home-send:disabled, .chat-send:disabled { opacity: 0.45; cursor: wait; transform: none; }
.composer.chat-composer-wrap {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0.85rem 0.9rem;
  display: grid;
  gap: 0.45rem;
  background: transparent;
}
.composer.chat-composer-wrap .chat-composer {
  box-shadow: none;
}
.composer-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.home-board {
  width: 100%;
  margin-top: 2.4rem;
  text-align: left;
  background: var(--home-card);
  border-radius: 28px;
  padding: 1.15rem 1.2rem 1.4rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  animation: homeIn 0.32s var(--ease-out) 0.08s both;
}
.home-board[hidden],
.home-empty[hidden] { display: none !important; }
.home-empty {
  margin: 1.85rem 0 0;
  color: var(--home-muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.45rem;
  animation: homeIn 0.32s var(--ease-out) 0.2s both;
}
.home-empty-focus {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--home-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  min-height: 44px;
  padding: 0 0.1rem;
  border-radius: 6px;
  transition: color 160ms ease, transform 140ms var(--ease-out);
}
.home-empty-focus:active { transform: scale(0.97); }
.home-empty-focus:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .home-empty-focus:hover { color: #c46a22; }
}
.home-board-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 1.1rem;
}
.home-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: min(100%, 220px);
  flex: 1 1 180px;
  background: #f8fafc;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: var(--home-muted);
}
.home-search svg { width: 16px; height: 16px; flex: 0 0 auto; }
.home-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--home-ink);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  padding: 0.35rem 0;
}
.home-search:focus-within {
  border-color: rgba(224, 138, 60, 0.55);
  box-shadow: 0 0 0 3px rgba(224, 138, 60, 0.15);
}
.home-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.home-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--home-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
}
.home-tab.is-on {
  background: #0f172a;
  color: #fff;
}
.home-tab:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
.home-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.35rem 1.1rem;
}
.proj-card {
  min-width: 0;
}
.proj-thumb {
  appearance: none;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: transform 160ms var(--ease-out), box-shadow 160ms ease;
}
.proj-thumb:active { transform: scale(0.985); }
.proj-thumb:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
@media (hover: hover) and (pointer: fine) {
  .proj-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  }
}
.proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proj-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
}
.proj-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}
.proj-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
}
.proj-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.proj-text {
  min-width: 0;
  flex: 1;
}
.proj-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-text span {
  display: block;
  color: var(--home-muted);
  font-size: 0.78rem;
  margin-top: 0.12rem;
}
.proj-actions {
  display: flex;
  gap: 0.1rem;
  flex-shrink: 0;
}
.proj-icon {
  appearance: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--home-muted);
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.proj-icon svg { width: 16px; height: 16px; }
.proj-icon:active { transform: scale(0.97); }
.proj-icon:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 1px;
}
@media (hover: hover) and (pointer: fine) {
  .proj-icon:hover { background: #f1f5f9; color: var(--home-ink); }
  .proj-icon.danger:hover { color: #dc2626; background: #fef2f2; }
  .proj-actions { opacity: 0; }
  .proj-card:hover .proj-actions,
  .proj-card:focus-within .proj-actions { opacity: 1; }
}
.home-apps-empty {
  grid-column: 1 / -1;
  color: var(--home-muted);
  font-size: 0.92rem;
  padding: 1.6rem 0.4rem 0.8rem;
  text-align: center;
}
@keyframes homeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .home-brand, .home-lead, .home-sub, .home-chip, .home-composer,
  .home-board, .home-plan, .home-empty {
    animation: none;
  }
  .home-plan-hint.is-loading::before { animation: none; }
  .proj-thumb, .home-chip, .home-send, .chat-send, .home-plan-go,
  .home .tool-icon, .proj-icon, .home-empty-focus {
    transition: none;
  }
}
@media (max-width: 720px) {
  .home-top { padding: 0.65rem 0.9rem; }
  .home-main { padding: 1.25rem 0.9rem 2.5rem; }
  .home-brand { display: none; }
  .home-lead { font-size: 1.35rem; letter-spacing: -0.02em; }
  .home-chips { gap: 0.4rem; }
  .home-chip { padding: 0.45rem 0.75rem; }
  .home .home-composer { padding: 0.7rem 0.7rem 0.65rem; }
  .home .pill-select {
    min-width: 0;
    flex: 1 1 7.5rem;
    max-width: none;
  }
  .home-board { border-radius: 22px; padding: 1rem 0.85rem 1.15rem; }
  .home-apps-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 7, 6, 0.55);
}
.drawer-overlay[hidden] { display: none; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 41;
  width: min(420px, 100vw);
  height: 100dvh;
  overflow: auto;
  background: var(--panel);
  border-left: 1px solid var(--line);
  padding: 1.1rem 1.15rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.drawer[hidden] { display: none; }
.drawer h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.drawer h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.drawer p.hint {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.drawer label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.drawer input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(12, 11, 10, 0.6);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  outline: none;
}
.drawer input:focus,
.drawer select:focus {
  border-color: rgba(224, 138, 60, 0.5);
}
.drawer select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(12, 11, 10, 0.6);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  outline: none;
}
.drawer details {
  margin-top: 0.6rem;
}
.drawer summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.78rem;
}
.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.drawer-status {
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 1.2em;
}
.drawer-status.ok { color: var(--ok); }
.drawer-status.err { color: var(--danger); }
.pill-on {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--ok);
  border: 1px solid rgba(125, 186, 122, 0.35);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.35rem;
}
.home-quota {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--home-muted);
}
.home-plan-hint.is-err {
  color: #9a3412;
}
.home-admin {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
  padding: 1.1rem 1.2rem 1.3rem;
  border: 1px solid var(--home-line);
  border-radius: 16px;
  background: var(--home-card);
}
.home-admin h3 {
  margin: 0.8rem 0 0.35rem;
  font-size: 0.95rem;
}
.home-admin-hint,
.home-admin-status {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  color: var(--home-muted);
}
.home-admin-form {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.home-admin-form input {
  flex: 1 1 12rem;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font: inherit;
}
.home-admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.home-admin-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.82rem;
}

html[data-theme="dark"] .home .home-composer {
  border-color: var(--home-line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .home #homePrompt::placeholder { color: var(--home-muted); }
html[data-theme="dark"] .home .composer-toolbar { border-top-color: var(--home-line); }
html[data-theme="dark"] .home .pill-select,
html[data-theme="dark"] .home .tool-icon,
html[data-theme="dark"] .home .attach-chip {
  background: rgba(12, 11, 10, 0.55);
  color: var(--home-ink);
  border-color: var(--home-line);
}
html[data-theme="dark"] .home-chip {
  background: rgba(255, 255, 255, 0.06);
  color: var(--home-ink);
  box-shadow: none;
}
html[data-theme="dark"] .home-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
html[data-theme="dark"] .home-board,
html[data-theme="dark"] .home-plan,
html[data-theme="dark"] .home-admin {
  background: var(--home-card);
  border-color: var(--home-line);
}
html[data-theme="dark"] .home-plan-label small { color: var(--home-muted); }
html[data-theme="dark"] .home-plan input,
html[data-theme="dark"] .home-plan textarea,
html[data-theme="dark"] .home-search,
html[data-theme="dark"] .home-admin-form input {
  background: rgba(12, 11, 10, 0.55);
  color: var(--home-ink);
  border-color: var(--home-line);
}
html[data-theme="dark"] .home-tab.is-on {
  background: rgba(224, 138, 60, 0.16);
  color: var(--home-ink);
}
html[data-theme="dark"] .proj-thumb {
  background: #1a1714;
  box-shadow: none;
}
html[data-theme="dark"] .proj-icon:hover { background: rgba(255, 255, 255, 0.06); }
