@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Archivo:wght@400;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --chassis: #D7DAD2;
  --face: #FAFAF7;
  --ink: #1E211C;
  --muted: #6B7066;
  --rule: #C0C4BA;
  --live: #1F6B4A;
  --warn: #A8631A;
  --alert: #8C3A34;
  --font: 'Archivo', sans-serif;
  --mono: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 15px; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--chassis);
  line-height: 1.4;
}

h1, h2, h3 { margin: 0 0 0.55rem; font-weight: 600; line-height: 1.2; }
h1 { font-size: 1.35rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 0.7rem; }
a { color: var(--live); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: var(--face);
  border-bottom: 1px solid var(--rule);
}

header p { margin: 0; font-weight: 600; }

header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

header nav a { color: var(--ink); }

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 1rem 0 1.5rem;
}

.card {
  background: var(--face);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.9rem;
}

.card h2 { margin-bottom: 0.2rem; }

.signin {
  max-width: 380px;
  margin: 10vh auto;
  padding: 0.9rem;
  background: var(--face);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.signin form {
  display: block;
  margin: 0;
}

.signin label {
  display: block;
  width: auto;
  margin: 0 0 0.3rem;
}

.signin input[type="text"],
.signin input[type="password"] {
  width: 100%;
  margin: 0 0 0.75rem;
}

.signin button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
}

.badge {
  display: inline-block;
  margin: 0 0 0.35rem;
  padding: 0.1rem 0.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--chassis);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.card form,
td form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0;
}

label {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.card form label,
td form label {
  width: auto;
  margin: 0;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
  margin: 0;
  padding: 0.35rem 0.45rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
}

button,
.btn-quiet,
.btn-danger,
.btn-open,
.btn-fav,
a.btn-quiet {
  margin: 0;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  border-radius: 2px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

button {
  color: #fff;
  background: var(--live);
  border: 1px solid var(--live);
}

button:hover { filter: brightness(1.05); }

button:disabled {
  opacity: 0.65;
  cursor: wait;
  filter: none;
}

.btn-quiet,
a.btn-quiet {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
}

.btn-quiet:hover,
a.btn-quiet:hover {
  background: var(--chassis);
  text-decoration: none;
  filter: none;
}

.btn-danger {
  color: var(--alert);
  background: transparent;
  border: 1px solid var(--alert);
}

.btn-danger:hover { background: #f4ebea; filter: none; }

.btn-open {
  color: #fff;
  background: var(--live);
  border: 1px solid var(--live);
}

.btn-fav {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
}

.btn-fav[aria-pressed="true"] {
  color: var(--warn);
  border-color: var(--warn);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem;
  background: var(--face);
  border: 1px solid var(--rule);
}

th, td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  font-size: 0.92rem;
}

th {
  font-weight: 600;
  color: var(--muted);
}

tr:last-child td { border-bottom: none; }

table td:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

[class^="status-"] {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
}

.status-available { color: var(--muted); }
.status-logged_in { color: var(--live); }
.status-login_required { color: var(--alert); }
.status-limit_reached { color: var(--warn); }

[role="alert"] {
  padding: 0.55rem 0.7rem;
  color: var(--alert);
  background: #f4ebea;
  border: 1px solid var(--alert);
  border-radius: 2px;
}

section { margin-top: 1.75rem; }

section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--face);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

section li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.85rem;
}

section li:last-child { border-bottom: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html:has(body.app-shell),
body.app-shell {
  height: 100%;
  overflow: hidden;
}

body.app-shell {
  display: flex;
  margin: 0;
  padding: 0;
  color: #111827;
  font-family: 'Inter', sans-serif;
  background: #FBFBFD;
  -webkit-font-smoothing: antialiased;
}

body.app-shell a { color: inherit; }
body.app-shell a:hover { text-decoration: none; }
body.app-shell button { font-family: inherit; }

body.app-signin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  font-family: 'Inter', sans-serif;
  background: #FBFBFD;
  --ctrl-h: 44px;
}

body.app-signin .signin {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 32px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 28px rgba(17, 24, 39, 0.06);
}

body.app-signin .signin.signin-centered {
  text-align: center;
}

body.app-signin .signin h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

body.app-signin .signin-logo {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  object-fit: contain;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 600;
}

header .brand img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

body.app-signin .signin-kicker {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: #6b7280;
}

body.app-signin .signin p {
  color: #6b7280;
  font-size: 0.92rem;
}

body.app-signin .signin input[type="text"],
body.app-signin .signin input[type="password"],
body.app-signin .signin button[type="submit"] {
  height: var(--ctrl-h);
  padding: 0 0.9rem;
  font-size: 14px;
  line-height: 1;
  border-radius: 12px;
  box-sizing: border-box;
}

body.app-signin .signin input[type="text"],
body.app-signin .signin input[type="password"] {
  border-color: #e5e7eb;
}

body.app-signin .signin button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  border: 0;
  background: #111827;
  color: #fff;
  font-weight: 600;
}

body.app-signin .signin-tag {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

body.app-signin .signin-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--ctrl-h);
  margin: 8px 0 14px;
  padding: 0 0.9rem;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
}

body.app-signin .signin-google:hover {
  background: #1f2937;
  color: #fff;
  text-decoration: none;
}

body.app-signin .signin-note,
body.app-signin .signin-meta,
body.app-signin .signin-confirm {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #6b7280;
}

body.app-signin .signin-confirm {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4b5563;
}

body.app-signin .signin-alert {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #b91c1c;
}

body.app-signin .signin-avatar {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  background: #ececef;
}

body.app-signin .signin .btn-quiet {
  margin-top: 8px;
}

.app-frame {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: #FBFBFD;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #6b7280;
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.icon-btn:hover {
  color: #111827;
  background: #f3f4f6;
  filter: none;
}

.side-scrim {
  display: none;
}

/* --- Sidebar --- */

.shell-side {
  display: flex;
  flex-direction: column;
  width: 280px;
  flex-shrink: 0;
  height: 100%;
  background: #FBFBFD;
  border-right: 1px solid #ececef;
}

.shell-top {
  padding: 20px 16px 12px;
}

.shell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111827;
}

body.app-shell .shell-brand {
  margin: 0 -16px 16px;
  padding: 0 16px 16px;
  border-bottom: 1px solid #ececef;
}

.brand-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #111827;
  border-radius: 12px;
}

.brand-logo-box .brand-logo {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-tag {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: transparent;
}

body.app-shell a.shell-new-btn,
body.app-shell a.shell-new-btn:visited,
body.app-shell a.shell-new-btn:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
  padding: 0.7rem 0.9rem;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: #111827;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
}

body.app-shell a.shell-new-btn:hover {
  background: #1f2937;
  color: #fff;
  filter: none;
}

body.app-shell a.shell-new-btn .icon {
  color: #fff;
}

.shell-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 10px;
  color: #9ca3af;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 12px;
  outline: none;
  box-shadow: none;
}

.shell-search:focus,
.shell-search:focus-within {
  border-color: #ececef;
  outline: none;
  box-shadow: none;
}

.shell-search input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 9px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: #111827;
  outline: none;
  box-shadow: none;
}

.shell-search input:focus,
.shell-search input:focus-visible,
body.app-shell .shell-search input:focus-visible {
  outline: none;
  box-shadow: none;
  border: 0;
}

.shell-search kbd {
  font-family: inherit;
  font-size: 11px;
  color: #9ca3af;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 2px 6px;
}

.shell-label {
  margin: 14px 8px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.shell-chats {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 16px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}

.shell-chats-empty {
  margin: 12px 8px;
  font-size: 13px;
  color: #9ca3af;
}

.shell-chat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  padding: 4px 4px 4px 8px;
  border-radius: 12px;
}

.shell-chat-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border: 1.5px solid #d1d5db;
  border-radius: 50%;
  background: transparent;
}

.shell-chat-link {
  flex: 1;
  min-width: 0;
  padding: 6px 4px;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell-chat:hover {
  background: #eeeff2;
}

.shell-chat-link:hover {
  text-decoration: none;
}

.shell-chat.is-active {
  background: #111827;
}

.shell-chat.is-active:hover {
  background: #111827;
}

.shell-chat.is-active .shell-chat-link {
  color: #fff;
  font-weight: 600;
}

.shell-chat.is-active .shell-chat-dot {
  background: #fff;
  border-color: #fff;
}

.shell-chat-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #6b7280;
  background: transparent;
  border: 0;
  border-radius: 8px;
  flex-shrink: 0;
  opacity: 0;
}

body.app-shell .shell-chat-more {
  color: #6b7280;
  background: transparent;
  border: 0;
}

.shell-chat-more .icon {
  width: 16px;
  height: 16px;
}

.shell-chat:hover .shell-chat-more,
.shell-chat.is-open .shell-chat-more,
.shell-chat:focus-within .shell-chat-more {
  opacity: 1;
}

.shell-chat-more:hover,
.shell-chat.is-active .shell-chat-more:hover {
  background: rgba(17, 24, 39, 0.08);
  filter: none;
}

.shell-chat.is-active .shell-chat-more {
  color: #fff;
}

.shell-chat.is-active .shell-chat-more:hover {
  background: rgba(255, 255, 255, 0.12);
}

.shell-rename-form {
  flex: 1;
  min-width: 0;
}

.shell-rename-form input[name="title"] {
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  font: inherit;
  font-size: 13.5px;
  color: #111827;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.shell-chat-menu {
  z-index: 80;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  box-sizing: border-box;
}

.shell-chat-menu form {
  margin: 0;
}

.shell-chat-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 10px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  color: #111827;
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
}

.shell-chat-menu button:hover {
  background: #f3f4f6;
  filter: none;
}

.shell-chat-menu button.is-danger {
  color: #b91c1c;
}

.shell-chat-menu button.is-danger:hover {
  background: #fef2f2;
}

.shell-chat-menu .icon {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.shell-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #ececef;
  background: #FBFBFD;
}

.shell-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6d28d9;
  background: #ede9fe;
  border-radius: 50%;
}

.shell-avatar-img {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  background: #ececef;
}

.shell-userbox {
  min-width: 0;
  flex: 1;
}

.shell-user,
.shell-user-meta {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell-user {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.shell-user-meta {
  font-size: 12px;
  color: #9ca3af;
}

/* --- Main --- */

.shell-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  height: 100%;
  background: #FBFBFD;
}

.shell-head {
  display: none;
  align-items: center;
  flex-shrink: 0;
  min-height: 0;
  padding: 10px 12px 0;
  background: transparent;
  border: none;
}

.menu-btn { display: none; }

.shell-alert {
  margin: 16px auto 0;
  max-width: 760px;
  width: calc(100% - 48px);
  border-radius: 12px;
}

.shell-confirm {
  margin: 16px auto 0;
  max-width: 760px;
  width: calc(100% - 48px);
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 16px;
}

.shell-confirm [role="alert"] {
  margin: 0 0 10px;
  padding: 0;
  background: transparent;
  border: none;
}

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

.shell-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 40px;
  min-height: 0;
  overflow: auto;
}

.shell-empty-inner {
  width: 100%;
  max-width: 720px;
  text-align: center;
}

.hero-logo {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  object-fit: contain;
  background: transparent;
}

.empty-title {
  margin: 0 0 22px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: #111827;
}

.shell-empty-note {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.shell-empty .composer {
  text-align: left;
  margin: 0 auto;
  max-width: 760px;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
  text-align: left;
}

.prompt-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  color: #111827;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
}

.prompt-card:hover {
  border-color: #ddd6fe;
  filter: none;
}

.prompt-card strong {
  font-size: 13.5px;
  font-weight: 600;
}

.prompt-card span {
  font-size: 12.5px;
  line-height: 1.45;
  color: #6b7280;
  font-weight: 400;
}

.shell-thread {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 28px 20px 36px;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
  outline: none;
  border: 0;
  box-shadow: none;
}

.shell-thread:focus,
.shell-thread:focus-visible {
  outline: none;
}

.shell-thread-inner {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.shell-thread-empty {
  margin: 64px 0;
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  margin: 0 0 18px;
  box-sizing: border-box;
}

.msg.assistant {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding-right: 44px;
  box-sizing: border-box;
}

.msg.user {
  justify-content: flex-end;
  align-items: flex-end;
}

.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  align-self: flex-end;
}

.msg-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-bottom: 6px;
  background: #111827;
  border-radius: 50%;
  overflow: hidden;
}

.msg-logo img {
  display: block;
  width: 17px;
  height: 17px;
  max-width: 17px;
  max-height: 17px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transform-origin: 50% 50%;
}

.msg-logo.is-spinning img {
  animation: msg-logo-spin 0.85s linear infinite;
}

@keyframes msg-logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.msg.assistant.is-pending .bubble {
  min-height: 1.65em;
  color: #9ca3af;
}

.msg.assistant.is-typing .bubble {
  color: #111827;
}

.msg-copy[hidden] {
  display: none !important;
}

.msg-avatar.user-pic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6d28d9;
  background: #ede9fe;
  object-fit: cover;
}

.msg .bubble {
  min-width: 0;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;
  hyphens: auto;
  font-size: 15.5px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: #111827;
}

.msg.assistant .bubble {
  flex: 1 1 auto;
  max-width: 100%;
  background: none;
  border: none;
  padding: 0;
  white-space: normal;
}

.msg.assistant .bubble > :first-child { margin-top: 0; }
.msg.assistant .bubble > :last-child { margin-bottom: 0; }

.msg.assistant .bubble h1,
.msg.assistant .bubble h2,
.msg.assistant .bubble h3,
.msg.assistant .bubble h4,
.msg.assistant .bubble h5,
.msg.assistant .bubble h6 {
  margin: 1em 0 0.45em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

.msg.assistant .bubble h1 { font-size: 1.35em; }
.msg.assistant .bubble h2 { font-size: 1.2em; }
.msg.assistant .bubble h3 { font-size: 1.08em; }
.msg.assistant .bubble h4,
.msg.assistant .bubble h5,
.msg.assistant .bubble h6 { font-size: 1em; }

.msg.assistant .bubble p {
  margin: 0 0 0.75em;
}

.msg.assistant .bubble ul,
.msg.assistant .bubble ol {
  margin: 0 0 0.75em;
  padding-left: 1.35em;
}

.msg.assistant .bubble li { margin: 0.2em 0; }

.msg.assistant .bubble blockquote {
  margin: 0.75em 0;
  padding: 0.35em 0 0.35em 0.9em;
  color: var(--muted);
  border-left: 3px solid var(--rule);
  background: transparent;
}

.msg.assistant .bubble blockquote p { margin-bottom: 0.4em; }

.msg.assistant .bubble a {
  color: var(--live);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.msg.assistant .bubble code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  color: var(--ink);
  background: var(--chassis);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.msg.assistant .bubble .code-block {
  position: relative;
  margin: 0.85em 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--face);
  overflow: hidden;
}

.msg.assistant .bubble .code-block pre {
  margin: 0;
  padding: 0.9em 1em 1em;
  overflow-x: auto;
  background: transparent;
}

.msg.assistant .bubble .code-block code {
  padding: 0;
  font-size: 0.86em;
  line-height: 1.55;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  white-space: pre;
}

.msg.assistant .bubble .code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  margin: 0;
  padding: 0.25rem 0.55rem;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  background: var(--chassis);
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
}

.msg.assistant .bubble .code-copy:hover {
  filter: none;
  background: #cfd3c8;
}

.msg.assistant .bubble .code-copy.is-copied {
  color: var(--live);
  border-color: var(--live);
}

.msg.assistant .bubble table {
  width: 100%;
  margin: 0.85em 0;
  border-collapse: collapse;
  font-size: 0.95em;
  overflow-x: auto;
  display: block;
}

.msg.assistant .bubble thead th {
  background: var(--chassis);
  font-weight: 600;
}

.msg.assistant .bubble th,
.msg.assistant .bubble td {
  padding: 0.45em 0.65em;
  text-align: left;
  border: 1px solid var(--rule);
  vertical-align: top;
}

.msg.assistant .bubble hr {
  margin: 1em 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.msg.user .bubble {
  flex: 0 1 auto;
  width: fit-content;
  max-width: min(72%, calc(100% - 44px));
  padding: 10px 14px;
  background: #f3f4f6;
  border: none;
  border-radius: 16px 16px 4px 16px;
}

.msg-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 40px;
  padding: 0;
  color: #9ca3af;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

body.app-shell .msg-copy {
  color: #9ca3af;
  background: transparent;
  border: 0;
}

.msg-copy:hover {
  color: #111827;
  background: #f3f4f6;
  filter: none;
}

.msg-copy .icon {
  width: 16px;
  height: 16px;
}

.msg-copy .icon-copied { display: none; }

.msg-copy.is-copied {
  color: #047857;
}

.msg-copy.is-copied .icon-copy { display: none; }
.msg-copy.is-copied .icon-copied { display: block; }

.shell-composer-wrap {
  flex-shrink: 0;
  padding: 8px 20px 22px;
}

.shell-composer-inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 44px;
  box-sizing: border-box;
}

.composer {
  display: flex;
  flex-direction: column;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 5px 7px 5px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 20px rgba(17, 24, 39, 0.05);
}

.composer:focus-within {
  border-color: #d4d4d8;
}

.composer-model {
  align-self: flex-start;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 2px 4px 2px 0;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.3;
  color: #6b7280;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.composer-model:focus,
.composer-model:focus-visible,
body.app-shell .composer-model:focus-visible {
  outline: none;
  color: #111827;
}

.composer-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.composer textarea {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 8px 0;
  min-height: 24px;
  max-height: 120px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15.5px;
  line-height: 1.45;
  resize: none;
  overflow-y: auto;
  color: #111827;
  field-sizing: content;
}

.composer textarea::placeholder { color: #9ca3af; }

.composer textarea:focus,
.composer textarea:focus-visible,
body.app-shell .composer textarea:focus-visible {
  outline: none;
}

.send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 0;
  padding: 0;
  flex-shrink: 0;
  color: #fff;
  background: #111827;
  border: 0;
  border-radius: 50%;
}

.send-btn .icon {
  width: 12px;
  height: 12px;
}

.send-btn:hover {
  background: #000;
  filter: none;
}

.send-btn.is-sending { opacity: 0.7; }

.stop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 0;
  padding: 0;
  flex-shrink: 0;
  color: #fff;
  background: #111827;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.stop-btn[hidden] { display: none !important; }

.stop-btn .icon {
  width: 12px;
  height: 12px;
}

.stop-btn:hover {
  background: #000;
  filter: none;
}

.composer-hint {
  max-width: none;
  width: 100%;
  margin: 10px 0 0;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

body.app-shell a:focus-visible,
body.app-shell button:focus-visible,
body.app-shell input:focus-visible,
body.app-shell select:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

body.app-shell textarea:focus-visible {
  outline: none;
}

/* --- Admin --- */

html:has(body.app-admin),
body.app-admin {
  height: 100%;
  overflow: hidden;
}

body.app-admin {
  display: flex;
  margin: 0;
  padding: 0;
  color: #111827;
  font-family: 'Inter', sans-serif;
  background: #FBFBFD;
  -webkit-font-smoothing: antialiased;
  --ctrl-h: 44px;
}

body.app-admin a { color: inherit; }
body.app-admin a:hover { text-decoration: none; }
body.app-admin button { font-family: inherit; }

body.app-admin .shell-top {
  flex: 1;
  min-height: 0;
}

body.app-admin .shell-foot {
  margin-top: auto;
}

body.app-admin .shell-brand {
  margin: 0 -16px 16px;
  padding: 0 16px 16px;
  border-bottom: 1px solid #ececef;
  align-items: center;
}

.admin-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #111827;
  border-radius: 12px;
}

body.app-admin .admin-logo-box .brand-logo {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.admin-brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.admin-brand-tag {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 0;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.admin-nav a:hover {
  background: #eeeff2;
  text-decoration: none;
}

.admin-nav a.is-active {
  background: #111827;
  color: #fff;
  font-weight: 600;
  outline: 0;
}

.admin-nav a.is-active:hover {
  background: #111827;
  color: #fff;
}

.admin-nav a .icon {
  color: #6b7280;
}

.admin-nav a.is-active .icon {
  color: #fff;
}

body.app-admin .admin-head-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.admin-page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 32px 48px;
}

.admin-page-head {
  margin: 0 0 22px;
}

.admin-page-head h1 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.admin-page-head p {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.admin-flash {
  margin: 0 0 16px;
  padding: 12px 14px;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
}

.admin-flash.is-warn {
  color: #92400e;
  background: #fffbeb;
  border-color: #fcd34d;
}

body.app-admin [role="alert"] {
  margin: 0 0 16px;
  padding: 12px 14px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
}

.admin-confirm {
  margin: 0 0 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 16px;
}

.admin-confirm [role="alert"] {
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  border: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.admin-stat {
  display: block;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 20px rgba(17, 24, 39, 0.05);
}

a.admin-stat:hover {
  border-color: #d1d5db;
  background: #fff;
  box-shadow: 0 2px 4px rgba(17, 24, 39, 0.06), 0 10px 24px rgba(17, 24, 39, 0.07);
}

.admin-stat.is-alert {
  border-color: #fecaca;
  background: #fff8f8;
}

.admin-stat-label,
.admin-stat-hint {
  display: block;
}

.admin-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.admin-stat-value {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.admin-stat-hint {
  font-size: 13px;
  color: #6b7280;
}

.admin-card {
  margin: 0 0 16px;
  padding: 20px 22px 22px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 20px rgba(17, 24, 39, 0.05);
}

.admin-card-head {
  margin: 0 0 16px;
}

.admin-card-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.admin-card-head h2,
.admin-edit-grid h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.admin-card-head p {
  margin: 0;
  font-size: 13.5px;
  color: #6b7280;
}

.admin-card-head a {
  color: #4f46e5;
}

.admin-card-head a:hover {
  text-decoration: underline;
}

.admin-empty {
  margin: 0;
  padding: 18px 4px;
  color: #9ca3af;
  font-size: 14px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 0.7fr auto;
  gap: 12px;
  align-items: end;
}

.admin-form-key {
  grid-template-columns: 1fr auto;
}

.admin-form-submit {
  padding-bottom: 0;
}

.admin-form-submit button {
  width: 100%;
}

body.app-admin label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

body.app-admin input[type="text"],
body.app-admin input[type="password"],
body.app-admin input[type="number"] {
  width: 100%;
  height: var(--ctrl-h);
  margin: 0;
  padding: 0 0.9rem;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  color: #111827;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

body.app-admin input[type="text"]:focus,
body.app-admin input[type="password"]:focus,
body.app-admin input[type="number"]:focus {
  outline: none;
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

body.app-admin button:not(.icon-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--ctrl-h);
  padding: 0 1rem;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: #111827;
  border: 0;
  border-radius: 12px;
  box-sizing: border-box;
}

body.app-admin button:not(.icon-btn):hover {
  background: #1f2937;
  filter: none;
}

body.app-admin .btn-quiet,
body.app-admin a.btn-quiet,
body.app-admin .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--ctrl-h);
  padding: 0 0.9rem;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  box-sizing: border-box;
  border-radius: 12px;
}

body.app-admin .btn-quiet,
body.app-admin a.btn-quiet {
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
}

body.app-admin button.btn-quiet:hover,
body.app-admin a.btn-quiet:hover {
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  filter: none;
}

body.app-admin .btn-danger {
  color: #b91c1c;
  background: #fff;
  border: 1px solid #fecaca;
}

body.app-admin button.btn-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
  filter: none;
}

body.app-admin .icon-btn {
  color: #6b7280;
  background: transparent;
  border: 0;
}

body.app-admin .icon-btn:hover {
  color: #111827;
  background: #f3f4f6;
}

.admin-table-wrap {
  overflow-x: auto;
}

body.app-admin table {
  margin: 0;
  background: transparent;
  border: 0;
}

body.app-admin th,
body.app-admin td {
  padding: 12px 10px;
  vertical-align: middle;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13.5px;
}

body.app-admin th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  background: #fafafa;
  white-space: nowrap;
}

body.app-admin tr:last-child td {
  border-bottom: 0;
}

body.app-admin table td:last-child {
  display: table-cell;
}

.admin-user-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.admin-mini-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.admin-mono {
  font-family: ui-monospace, 'DM Mono', monospace;
  font-size: 12px;
  color: #4b5563;
}

.admin-clip {
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #6b7280;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 999px;
}

.admin-pill.is-ok {
  color: #047857;
  background: #ecfdf5;
}

.admin-pill.is-warn {
  color: #b45309;
  background: #fffbeb;
}

.admin-pill.is-alert {
  color: #b91c1c;
  background: #fef2f2;
}

.admin-lock-reason {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-edit-row td {
  background: #fafafa;
}

.admin-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-edit-grid form {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 14px;
}

body.app-admin a:focus-visible,
body.app-admin button:focus-visible,
body.app-admin input:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

@media (max-width: 860px) {
  body.app-shell,
  body.app-admin { padding: 0; }

  .app-frame { border-radius: 0; }

  .shell-head { display: flex; }
  .menu-btn { display: inline-flex; }

  .shell-side {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    height: auto;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  body.side-open .shell-side { transform: none; }

  .side-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(17, 24, 39, 0.28);
  }

  .side-scrim[hidden] { display: none; }

  .shell-search kbd { display: none; }

  .prompt-grid { grid-template-columns: 1fr; }

  .shell-thread { padding: 20px 14px 28px; }

  .shell-composer-wrap { padding: 10px 12px 16px; }

  .shell-composer-inner {
    padding-left: 36px;
    padding-right: 40px;
  }

  .admin-page { padding: 16px 16px 32px; }
  .admin-page-head { display: none; }
  body.app-admin .shell-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 12px;
  }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-form-grid,
  .admin-form-key,
  .admin-edit-grid,
  .admin-card-head-row {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 720px) {
  header { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
  body.app-admin table { display: table; }
}

@media (max-width: 380px) {
  .shell-top { padding: 14px 12px 8px; }
  .empty-title { font-size: 1.2rem; }
  .msg .bubble { font-size: 15px; }
}

/* Homepage (chatuma.com) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body.site {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #111827;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  background: #FBFBFD;
  -webkit-font-smoothing: antialiased;
}

.site-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 253, 0.92);
  backdrop-filter: blur(12px);
}

.site-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid #ececef;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111827;
  text-decoration: none;
}

.site-brand-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #111827;
  border-radius: 12px;
}

.site-brand-logo-box img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.site-brand-tag {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.site-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: #111827;
  border-radius: 12px;
  text-decoration: none;
}

.site-nav-btn:hover {
  background: #1f2937;
}

body.site main {
  flex: 1;
}

.site-hero {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
}

.site-hero-logo {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  object-fit: contain;
  background: transparent;
}

.site-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.site-lead {
  margin: 0 auto 28px;
  max-width: 34em;
  font-size: 1.05rem;
  color: #6b7280;
}

.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 0.8rem 1.3rem;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: #111827;
  border-radius: 12px;
  text-decoration: none;
}

.site-cta:hover {
  background: #1f2937;
}

.site-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 8px;
  padding-bottom: 72px;
}

.site-card {
  padding: 22px 22px 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 20px rgba(17, 24, 39, 0.05);
}

.site-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 0 14px;
  color: #374151;
  background: #eeeff2;
  border-radius: 12px;
}

.site-card-icon svg {
  width: 20px;
  height: 20px;
}

.site-card h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.site-foot {
  padding: 0 0 28px;
  color: #9ca3af;
  font-size: 13px;
}

.site-foot-inner {
  padding-top: 22px;
  border-top: 1px solid #ececef;
}

.site-foot p { margin: 0; }

@media (max-width: 820px) {
  .site-hero { padding: 48px 20px 36px; }
  .site-features {
    grid-template-columns: 1fr;
    padding-bottom: 48px;
  }
}
