/* My Squids — same palette and fonts as SquidCast / SquidPulse. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  background: linear-gradient(160deg, #E1F5EE 0%, #B5D4F4 100%);
  color: #222;
}
body.centered { display: flex; align-items: center; justify-content: center; padding: 1rem; }

/* ── Sign-in card ─────────────────────────────────────────── */
.card {
  background: #fff; border-radius: 20px; padding: 2.5rem;
  width: 100%; max-width: 400px; box-shadow: 0 4px 24px rgba(15,110,86,0.1);
}
.brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 1.25rem; }
.brand-mark {
  width: 64px; height: 64px; border-radius: 16px; background: #0F6E56;
  display: flex; align-items: center; justify-content: center;
}
.brand-mark img { width: 72%; height: 72%; display: block; }
.hub-label {
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: #0F6E56; margin-top: 10px;
}
.tagline { text-align: center; font-size: 13px; color: #666; margin-bottom: 2rem; }
.footnote { text-align: center; font-size: 12px; color: #888; margin-top: 1.25rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-size: 12px; font-weight: 500; color: #555;
  text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px;
}
.field input {
  width: 100%; height: 42px; border: 1px solid #ddd; border-radius: 8px;
  padding: 0 12px; font-size: 14px; font-family: 'DM Sans', sans-serif;
  background: #f9f9f9; transition: border-color 0.15s;
}
.field input:focus { outline: none; border-color: #1D9E75; background: #fff; }
.error {
  background: #FCEBEB; border: 1px solid #F09595; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; color: #A32D2D; margin-bottom: 1rem;
}
.notice {
  background: #E6F1FB; border: 1px solid #B5D4F4; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; color: #185FA5; margin-bottom: 1rem;
}
.btn {
  width: 100%; height: 44px; background: #0F6E56; color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
  font-family: 'Nunito', sans-serif; cursor: pointer; margin-top: 0.5rem;
  letter-spacing: 0.2px; transition: background 0.15s;
}
.btn:hover { background: #0d5e48; }

/* ── Signed-in pages ────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #0F6E56; color: #fff; padding: 12px 24px;
}
.topbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 16px;
}
.topbar-mark { width: 32px; height: 32px; }
.topbar-mark img { width: 100%; height: 100%; display: block; }
.topbar-user { display: flex; align-items: center; gap: 14px; }
.user-info { text-align: right; }
.user-info p { font-size: 14px; font-weight: 500; }
.user-info span { font-size: 12px; color: #9FE1CB; }
.btn-outline {
  display: inline-block; padding: 7px 14px; border: 1px solid #9FE1CB; border-radius: 8px;
  color: #fff; text-decoration: none; font-size: 13px; font-family: 'Nunito', sans-serif; font-weight: 700;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.page { max-width: 960px; margin: 0 auto; padding: 2rem 16px; }
.topbar-brand { color: #fff; text-decoration: none; }
.page h1 { font-family: 'Nunito', sans-serif; font-size: 26px; color: #0F6E56; margin-bottom: 0.4rem; }
.lead { font-size: 15px; color: #555; }
.page > .notice { margin-top: 1rem; }

/* ── Home page ───────────────────────────────────────────────────── */
.section { margin-top: 2rem; }
.section h2 { font-family: 'Nunito', sans-serif; font-size: 18px; color: #0F6E56; margin-bottom: 0.9rem; }
.empty { font-size: 14px; color: #666; background: rgba(255,255,255,0.6); border-radius: 12px; padding: 16px 18px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.app-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 16px; padding: 20px;
  box-shadow: 0 4px 24px rgba(15,110,86,0.08); color: inherit; text-decoration: none;
  border: 2px solid transparent; transition: border-color 0.15s, transform 0.15s;
}
a.app-card:hover, a.app-card:focus-visible { border-color: #1D9E75; transform: translateY(-2px); outline: none; }
.app-initial {
  width: 40px; height: 40px; border-radius: 10px; background: #E1F5EE; color: #0F6E56;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 18px; margin-bottom: 12px;
}
.app-card h3 { font-family: 'Nunito', sans-serif; font-size: 17px; margin-bottom: 6px; }
.app-card p { font-size: 14px; color: #555; line-height: 1.45; flex: 1; }
.app-open { margin-top: 14px; font-size: 13px; font-weight: 700; font-family: 'Nunito', sans-serif; color: #0F6E56; }
.app-card-soon { opacity: 0.7; }
.app-card-soon .app-open { color: #888; }

/* ── Manage apps ─────────────────────────────────────────────────── */
.admin-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.admin-row {
  display: flex; align-items: flex-start; gap: 14px; background: #fff; border-radius: 12px;
  padding: 14px 16px; box-shadow: 0 2px 12px rgba(15,110,86,0.06);
}
.admin-row.is-hidden { opacity: 0.65; }
.admin-move form { display: flex; flex-direction: column; gap: 4px; }
.admin-move button {
  width: 30px; height: 26px; border: 1px solid #ddd; border-radius: 6px; background: #f9f9f9;
  cursor: pointer; font-size: 14px; color: #0F6E56;
}
.admin-move button:disabled { color: #ccc; cursor: default; }
.admin-info { flex: 1; min-width: 0; }
.admin-info strong { font-family: 'Nunito', sans-serif; font-size: 16px; }
.admin-info p { font-size: 13px; color: #555; margin-top: 4px; }
.admin-url { color: #185FA5 !important; overflow-wrap: anywhere; }
.tag { display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 99px; background: #eee; color: #555; margin-left: 6px; }
.tag-warn { background: #FFF3D6; color: #8A5A00; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn-small {
  display: inline-block; padding: 6px 12px; border: 1px solid #ccc; border-radius: 8px; background: #fff;
  color: #333; font-size: 13px; font-family: 'Nunito', sans-serif; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn-small:hover { border-color: #1D9E75; }
.btn-danger { color: #A32D2D; border-color: #F09595; }
.btn-danger:hover { background: #FCEBEB; border-color: #A32D2D; }
.panel { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 24px rgba(15,110,86,0.08); }
.field textarea {
  width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: 14px;
  font-family: 'DM Sans', sans-serif; background: #f9f9f9; resize: vertical;
}
.field textarea:focus { outline: none; border-color: #1D9E75; background: #fff; }
.field small { display: block; font-size: 12px; color: #888; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0.5rem 0 1rem; }
.form-buttons { display: flex; align-items: center; gap: 10px; }
.btn-inline { width: auto; padding: 0 22px; margin-top: 0; }

@media (max-width: 560px) {
  .admin-row { flex-wrap: wrap; }
  .admin-actions { width: 100%; justify-content: flex-start; }
  .topbar { padding: 10px 16px; }
  .topbar-brand span, .user-info { display: none; }
}
