@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Space+Mono:wght@400;700&display=swap');
:root {
  --background: 42 48% 96%;
  --foreground: 211 35% 18%;
  --border: 39 26% 86%;
  --card: 42 50% 99%;
  --card-foreground: 211 35% 18%;
  --card-border: 39 27% 88%;
  --sidebar: 211 43% 18%;
  --sidebar-foreground: 42 48% 96%;
  --sidebar-border: 211 35% 27%;
  --sidebar-primary: 183 48% 62%;
  --sidebar-primary-foreground: 211 43% 18%;
  --sidebar-accent: 211 35% 25%;
  --sidebar-accent-foreground: 42 48% 96%;
  --sidebar-ring: 183 48% 62%;
  --popover: 42 50% 99%;
  --popover-foreground: 211 35% 18%;
  --popover-border: 39 27% 88%;
  --primary: 211 43% 18%;
  --primary-foreground: 42 48% 96%;
  --secondary: 183 44% 89%;
  --secondary-foreground: 211 43% 18%;
  --muted: 41 32% 91%;
  --muted-foreground: 211 18% 48%;
  --accent: 13 71% 67%;
  --accent-foreground: 211 43% 18%;
  --destructive: 4 63% 54%;
  --destructive-foreground: 42 48% 96%;
  --input: 39 27% 82%;
  --ring: 183 48% 44%;
  --chart-1: 183 48% 44%;
  --chart-2: 13 71% 67%;
  --chart-3: 211 43% 18%;
  --chart-4: 42 70% 65%;
  --chart-5: 151 31% 45%;
  --app-font-sans: 'DM Sans', sans-serif;
  --app-font-serif: 'Fraunces', Georgia, serif;
  --app-font-mono: 'Space Mono', monospace;
  --radius: 0.95rem;
  --primary-border: hsl(var(--primary));
  --secondary-border: hsl(var(--secondary));
  --muted-border: hsl(var(--muted));
  --accent-border: hsl(var(--accent));
  --destructive-border: hsl(var(--destructive));
  --sidebar-primary-border: hsl(var(--sidebar-primary));
  --sidebar-accent-border: hsl(var(--sidebar-accent));
}

.dark {
  --background: 211 42% 13%;
  --foreground: 42 48% 96%;
  --border: 211 28% 27%;
  --card: 211 38% 17%;
  --card-foreground: 42 48% 96%;
  --card-border: 211 28% 27%;
  --sidebar: 211 48% 10%;
  --sidebar-foreground: 42 48% 96%;
  --popover: 211 38% 17%;
  --popover-foreground: 42 48% 96%;
  --primary: 183 48% 62%;
  --primary-foreground: 211 43% 18%;
  --secondary: 211 30% 25%;
  --secondary-foreground: 42 48% 96%;
  --muted: 211 30% 24%;
  --muted-foreground: 211 13% 70%;
  --accent: 13 71% 67%;
  --accent-foreground: 211 43% 18%;
  --destructive: 4 63% 58%;
  --destructive-foreground: 42 48% 96%;
  --input: 211 28% 34%;
  --ring: 183 48% 62%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: hsl(var(--background)); }
body { margin: 0; font-family: var(--app-font-sans); color: hsl(var(--foreground)); background: hsl(var(--background)); -webkit-font-smoothing: antialiased; }
button, textarea, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, input, textarea, select { color: inherit; }
a { color: inherit; }
button:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid hsl(var(--ring) / .65); outline-offset: 3px; }

/* Public consent choice stays in document flow so it never covers the chat or navigation. */
.consent-panel {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 18px max(24px, calc((100vw - 1060px) / 2));
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 6px 24px hsl(var(--foreground) / .06);
}
.consent-copy { max-width: 700px; }
.consent-eyebrow { font: 700 10px var(--app-font-mono); letter-spacing: .13em; color: hsl(var(--muted-foreground)); }
.consent-copy h2 { margin: 5px 0 6px; font: 600 23px/1.2 var(--app-font-serif); }
.consent-copy p { margin: 0; font-size: 13px; line-height: 1.55; }
.consent-copy a { text-underline-offset: 3px; font-weight: 700; }
.consent-copy .consent-current { margin-top: 7px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; max-width: 320px; }
.consent-choice {
  min-height: 44px;
  min-width: 124px;
  padding: 10px 16px;
  border: 1px solid hsl(var(--primary));
  border-radius: 11px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  font-size: 13px;
}
.consent-choice:hover { opacity: .85; }
.consent-close { min-height: 44px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.consent-bubble {
  position: fixed;
  z-index: 30;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 4px 18px hsl(var(--foreground) / .16);
  font-size: 11px;
  font-weight: 700;
}
.consent-bubble:hover { border-color: hsl(var(--ring)); }
.consent-bubble > span:first-child { font-size: 16px; color: hsl(var(--primary)); }
@media (max-width: 720px) {
  .consent-panel { display: block; padding: 17px 18px; }
  .consent-actions { margin-top: 14px; max-width: none; }
  .consent-choice { flex: 1 1 120px; }
  .consent-bubble { width: 44px; justify-content: center; padding: 8px; }
  .consent-bubble > span:last-child { display: none; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-soft {
  0%, 100% { transform: scale(.94); opacity: .65; }
  50% { transform: scale(1); opacity: 1; }
}
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.bot-app {
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, hsl(183 49% 86% / .65), transparent 28rem),
    radial-gradient(circle at 8% 94%, hsl(13 71% 87% / .45), transparent 25rem),
    hsl(var(--background));
}
.bot-app::before {
  content: '';
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .27;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.bot-header {
  height: 76px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: 11px; color: hsl(var(--foreground)); }
.brand { text-decoration: none; }
.brand-avatar { display: block; width: 38px; height: 38px; flex: 0 0 38px; object-fit: contain; }
.brand-name { font-family: var(--app-font-serif); font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.brand-name span { color: hsl(var(--accent)); }
.header-meta { display: flex; align-items: center; gap: 12px; }
.auth-nav { display: flex; align-items: center; gap: 12px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px;
  color: hsl(var(--muted-foreground)); background: hsl(var(--card) / .62);
  border: 1px solid hsl(var(--border) / .8); border-radius: 999px; font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase; font-weight: 700;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: hsl(151 51% 47%); box-shadow: 0 0 0 4px hsl(151 51% 47% / .13); }
.status-dot.pending { background: hsl(var(--accent)); animation: pulse-soft 1.6s ease-in-out infinite; }
.status-dot.offline { background: hsl(var(--destructive)); box-shadow: 0 0 0 4px hsl(var(--destructive) / .12); }
.new-chat {
  display: inline-flex; align-items: center; gap: 8px; color: hsl(var(--primary));
  border: 0; background: transparent; cursor: pointer; font-size: 13px; font-weight: 700;
  padding: 9px 4px; transition: opacity .2s ease, transform .2s ease;
}
.new-chat:hover { opacity: .72; transform: translateY(-1px); }
.new-chat svg { width: 16px; height: 16px; }
.chat-shell { max-width: 760px; margin: 0 auto; padding: 51px 24px 34px; position: relative; z-index: 1; }
.intro { animation: rise-in .6s ease both; margin-bottom: 31px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow-line { width: 25px; height: 1px; background: hsl(var(--accent)); }
.intro h1 { margin: 13px 0 13px; max-width: 625px; color: hsl(var(--foreground)); font-family: var(--app-font-serif); font-size: clamp(41px, 7vw, 66px); line-height: .98; letter-spacing: -.052em; }
.intro h1 em { color: hsl(var(--accent)); font-style: normal; }
.intro p { max-width: 520px; margin: 0; color: hsl(var(--muted-foreground)); font-size: 16px; line-height: 1.65; }
.homescreen-teaser { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; color: hsl(var(--foreground)); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.chat-card { background: hsl(var(--card) / .82); border: 1px solid hsl(var(--card-border)); border-radius: 24px; box-shadow: 0 20px 55px hsl(211 43% 18% / .08), 0 2px 5px hsl(211 43% 18% / .04); backdrop-filter: blur(10px); overflow: hidden; animation: rise-in .65s .08s ease both; }
.thread { padding: 25px 25px 4px; min-height: 198px; }
.welcome { display: grid; grid-template-columns: 52px 1fr; gap: 15px; align-items: start; padding: 4px 0 10px; }
.avatar { width: 50px; height: 50px; flex: 0 0 auto; position: relative; border-radius: 18px 18px 18px 7px; background: hsl(var(--primary)); box-shadow: 0 7px 15px hsl(211 43% 18% / .17); overflow: hidden; }
.avatar::before, .avatar::after { content: ''; position: absolute; background: hsl(42 48% 96%); border-radius: 50%; top: 18px; width: 5px; height: 7px; }
.avatar::before { left: 16px; }.avatar::after { right: 16px; }
.avatar-face { position: absolute; width: 13px; height: 7px; left: 19px; bottom: 11px; border-bottom: 2px solid hsl(183 48% 62%); border-radius: 0 0 20px 20px; }
.avatar-antenna { position: absolute; width: 2px; height: 9px; background: hsl(var(--accent)); left: 24px; top: 0; }
.avatar-antenna::before { content: ''; position: absolute; width: 6px; height: 6px; left: -2px; top: -4px; border-radius: 50%; background: hsl(var(--accent)); }
.welcome-copy strong { display: block; color: hsl(var(--foreground)); font-size: 15px; line-height: 1.35; margin: 1px 0 7px; }
.welcome-copy p { color: hsl(var(--muted-foreground)); font-size: 14px; line-height: 1.56; margin: 0; }
.suggestions { margin: 22px 0 10px 67px; display: flex; flex-wrap: wrap; gap: 8px; }
.suggestion { border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); background: hsl(42 48% 96% / .75); border-radius: 999px; cursor: pointer; text-align: left; padding: 9px 13px; font-size: 12px; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.suggestion:hover { border-color: hsl(var(--ring) / .6); background: hsl(var(--secondary)); transform: translateY(-2px); }
.message-list { display: flex; flex-direction: column; gap: 22px; padding-bottom: 21px; }
.welcome[hidden], .suggestions[hidden], .message-list[hidden] { display: none; }
.message-row { display: flex; gap: 12px; align-items: flex-start; animation: rise-in .35s ease both; }
.message-row.user { justify-content: flex-end; }
.message-row.user .message-bubble { order: -1; }
.message-bubble { max-width: min(88%, 600px); padding: 13px 16px; border-radius: 16px 16px 16px 5px; color: hsl(var(--foreground)); background: hsl(42 44% 94%); font-size: 14px; line-height: 1.63; white-space: pre-wrap; }
.formatted-message { white-space: normal; overflow-wrap: anywhere; }
.personal-bubble.formatted-message { white-space: normal; }
.formatted-message p { margin: 0 0 .85em; }
.formatted-message > :last-child { margin-bottom: 0; }
.formatted-message ul, .formatted-message ol { margin: .4em 0 .9em; padding-left: 1.5em; }
.formatted-message li { padding-left: .12em; margin: .36em 0; }
.formatted-message h3, .formatted-message h4 { font-family: var(--app-font-sans); font-size: 1.04em; line-height: 1.4; margin: 1.05em 0 .45em; }
.formatted-message > :first-child { margin-top: 0; }
.formatted-message strong { font-weight: 700; }
.formatted-message a { text-decoration: underline; text-underline-offset: 3px; }
.formatted-message code { padding: .08em .32em; border-radius: 4px; background: hsl(var(--foreground) / .08); font: .9em var(--app-font-mono); }
.formatted-message pre { max-width: 100%; overflow-x: auto; margin: .7em 0 1em; padding: 12px; border-radius: 9px; background: hsl(var(--foreground) / .07); }
.formatted-message pre code { padding: 0; background: none; white-space: pre; }
.message-row.user .message-bubble { border-radius: 16px 16px 5px 16px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.message-avatar { width: 27px; height: 27px; border-radius: 9px 9px 9px 3px; transform: scale(.86); box-shadow: none; }
.message-avatar::before, .message-avatar::after { top: 10px; width: 3px; height: 4px; }.message-avatar::before { left: 9px; }.message-avatar::after { right: 9px; }.message-avatar .avatar-face { width: 8px; height: 4px; left: 10px; bottom: 6px; border-width: 1px; }.message-avatar .avatar-antenna { height: 5px; left: 13px; }.message-avatar .avatar-antenna::before { width: 4px; height: 4px; left: -1px; top: -3px; }
.message-time { color: hsl(var(--muted-foreground)); font-family: var(--app-font-mono); font-size: 9px; align-self: flex-end; margin-bottom: 4px; white-space: nowrap; }
.typing-bubble { display: flex; align-items: center; gap: 4px; min-width: 62px; }
.typing-bubble i { display: block; width: 5px; height: 5px; border-radius: 50%; background: hsl(var(--muted-foreground)); animation: typing-bounce 1.1s infinite ease-in-out; }
.typing-bubble i:nth-child(2) { animation-delay: .12s; }.typing-bubble i:nth-child(3) { animation-delay: .24s; }
.error-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px 39px; padding: 11px 13px; border: 1px solid hsl(var(--destructive) / .25); background: hsl(var(--destructive) / .06); color: hsl(4 50% 38%); border-radius: 11px; font-size: 12px; }
.retry-button { color: hsl(var(--destructive)); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 12px; font-weight: 700; white-space: nowrap; }
.composer-wrap { padding: 0 25px 22px; }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 10px 10px 10px 16px; border: 1px solid hsl(var(--input)); background: hsl(42 50% 99%); border-radius: 17px; transition: border-color .2s ease, box-shadow .2s ease; }
.composer:focus-within { border-color: hsl(var(--ring) / .7); box-shadow: 0 0 0 4px hsl(var(--ring) / .1); }
.composer textarea { flex: 1; min-width: 0; min-height: 26px; max-height: 140px; resize: none; border: 0; outline: 0; background: transparent; color: hsl(var(--foreground)); font-size: 14px; line-height: 1.55; padding: 3px 0; }
.composer textarea::placeholder { color: hsl(var(--muted-foreground) / .8); }
.send-button { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 12px 12px 12px 4px; color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); cursor: pointer; transition: transform .2s ease, background-color .2s ease, opacity .2s ease; }
.send-button:hover:not(:disabled) { transform: translateY(-2px) rotate(-2deg); background: hsl(211 43% 26%); }.send-button:disabled { cursor: not-allowed; opacity: .36; }.send-button svg { width: 17px; height: 17px; }
.composer-hint { display: flex; justify-content: space-between; gap: 12px; color: hsl(var(--muted-foreground)); font-size: 10px; padding: 9px 2px 0; }
.key-hint { display: inline-flex; align-items: center; gap: 4px; }.key { border: 1px solid hsl(var(--border)); border-bottom-width: 2px; padding: 1px 4px; border-radius: 4px; font-family: var(--app-font-mono); font-size: 9px; }
.footer-note { text-align: center; color: hsl(var(--muted-foreground)); font-size: 11px; margin: 19px 0 0; }
.footer-note strong { color: hsl(var(--foreground)); font-weight: 700; }
@media (max-width: 620px) {
  .bot-header { height: 68px; padding: 0 17px; }.header-meta { gap: 6px; }.status-pill { padding: 6px 8px; font-size: 10px; }.new-chat { font-size: 0; padding: 8px; }.new-chat svg { width: 18px; height: 18px; }
  .chat-shell { padding: 37px 14px 25px; }.intro { margin-bottom: 25px; }.intro h1 { font-size: 45px; }.intro p { font-size: 14px; line-height: 1.55; }
  .thread { padding: 20px 16px 2px; }.composer-wrap { padding: 0 16px 17px; }.suggestions { margin-left: 0; }.welcome { grid-template-columns: 45px 1fr; gap: 12px; }.avatar { width: 44px; height: 44px; border-radius: 15px 15px 15px 5px; }.avatar::before { left: 14px; top: 16px; }.avatar::after { right: 14px; top: 16px; }.avatar-face { left: 16px; bottom: 9px; }.avatar-antenna { left: 21px; }
  .message-bubble { max-width: 89%; font-size: 13px; }.message-time { display: none; }.error-note { margin-left: 0; }
  .composer-hint { font-size: 9px; }.composer-hint > span:first-child { max-width: 190px; }
}

/* The personal room: an ink-blue bookend around an open cream conversation. */
.personal-app { min-height: 100dvh; display: grid; grid-template-columns: 263px minmax(0,1fr) 294px; color: hsl(var(--foreground)); background: #f7f4e9; }
.personal-app button { cursor: pointer; }
.personal-app button:disabled { cursor: not-allowed; opacity: .48; }
.mini-label { font-family: var(--app-font-mono); font-size: 9px; line-height: 1.5; letter-spacing: .12em; font-weight: 700; }
.personal-sidebar { height: 100dvh; position: sticky; top: 0; display: flex; flex-direction: column; min-height: 0; background: #1d3444; color: #f8f3e9; padding: 27px 17px 19px; z-index: 12; }
.sidebar-top { padding: 0 8px; display: flex; align-items: center; justify-content: space-between; }
.personal-sidebar .brand, .personal-sidebar .brand-name { color: #f8f3e9; }
.personal-sidebar .brand-avatar { filter: drop-shadow(0 0 2px #8ec9c8); }
.sidebar-hello { margin: 52px 9px 28px; }.sidebar-hello .mini-label { color: #8ec9c8; }.sidebar-hello p { font-family: var(--app-font-serif); font-size: 23px; line-height: 1.16; letter-spacing: -.04em; margin: 10px 0 0; }
.sidebar-create { width: 100%; display: flex; align-items: center; gap: 9px; padding: 14px 14px; background: #8ec9c8; color: #1d3444; border: 0; border-radius: 12px; text-align: left; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s; }.sidebar-create:hover { background: #abe0db; transform: translateY(-2px); }.sidebar-create svg:last-child { margin-left: auto; }
.sidebar-section-label { display: flex; justify-content: space-between; padding: 34px 10px 13px; color: #96abb5; font: 700 9px var(--app-font-mono); letter-spacing: .11em; }.sidebar-section-label span { color: #8ec9c8; }
.conversation-nav { overflow-y: auto; flex: 1; min-height: 100px; display: flex; flex-direction: column; gap: 4px; }
.conversation-item { display: flex; align-items: center; min-height: 42px; border-radius: 9px; transition: background .2s; }.conversation-item:hover { background: #2a4555; }.conversation-item.active { background: #395566; }
.conversation-select { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: #e9ece5; border: 0; background: transparent; padding: 11px 10px; text-align: left; font-size: 12px; }.conversation-select span { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }.conversation-select svg { color: #8ec9c8; flex: none; }
.conversation-delete { border: 0; color: #c4d0cd; background: transparent; display: grid; place-items: center; width: 33px; height: 35px; opacity: .65; }.conversation-delete:hover { color: #f7ab95; opacity: 1; }
.sidebar-state { padding: 12px 10px; color: #b8c8c9; font-size: 12px; line-height: 1.6; }.sidebar-state button { color: #8ec9c8; border: 0; background: none; text-decoration: underline; display: block; padding: 7px 0; }
.sidebar-bottom { border-top: 1px solid #395160; padding: 19px 7px 0; }.privacy-note { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #a8bebd; }.privacy-note svg { color: #8ec9c8; }.signout-button { margin-top: 20px; display: flex; align-items: center; gap: 11px; background: transparent; color: #e0e8e5; border: 0; padding: 10px 0; font-size: 12px; }.signout-button:hover { color: #f5aa94; }
.personal-main { min-width: 0; background: radial-gradient(circle at 76% 9%, #eaf4e9 0, transparent 30%), #f7f4e9; }
.personal-topbar { height: 73px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 5vw, 69px); border-bottom: 1px solid #e8e1d3; gap: 15px; }.topbar-crumb { color: #8b9491; font: 700 9px var(--app-font-mono); letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.topbar-crumb span { padding: 0 10px; color: #d39c87; }.topbar-private { display: flex; align-items: center; gap: 6px; color: #667f79; font-size: 11px; white-space: nowrap; }
.personal-content { max-width: 830px; margin: auto; padding: 42px clamp(22px, 5vw, 69px) 25px; }.personal-heading { margin-bottom: 29px; }.personal-heading .eyebrow { font-size: 10px; }.personal-heading h1 { font-family: var(--app-font-serif); font-size: clamp(37px, 4.5vw, 56px); letter-spacing: -.055em; line-height: 1.02; margin: 14px 0 13px; }.personal-heading h1 em { color: #d4846c; font-style: normal; }.personal-heading p { max-width: 510px; color: #71817e; line-height: 1.55; font-size: 13px; margin: 0; }
.personal-alert, .personal-notice { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 12px; line-height: 1.45; }.personal-alert { background: #fbece6; color: #994d3b; border: 1px solid #f1cbbb; }.personal-notice { background: #eaf4ec; color: #426959; border: 1px solid #cce5d3; }.personal-alert button, .personal-notice button { margin-left: auto; border: 0; background: transparent; color: inherit; display: grid; place-items: center; }
.personal-chat { display: flex; flex-direction: column; min-height: 535px; background: #fcfaf5; border: 1px solid #e7dfd2; border-radius: 18px; box-shadow: 0 16px 50px #1d34440d, 0 2px 7px #1d344408; overflow: hidden; }
.personal-chat-head { height: 72px; display: flex; align-items: center; gap: 11px; padding: 0 24px; border-bottom: 1px solid #eee8dc; }.chat-head-avatar { width: 32px; height: 32px; }.chat-head-avatar .avatar { margin-top: 2px; }.personal-chat-head .mini-label { display: block; color: #9ba6a0; font-size: 8px; }.personal-chat-head strong { font-family: var(--app-font-serif); font-size: 17px; letter-spacing: -.03em; }.head-spark { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 10px; color: #648f89; background: #eaf4ef; padding: 7px 10px; border-radius: 30px; white-space: nowrap; }
.personal-thread { flex: 1; min-height: 345px; max-height: min(58vh, 650px); overflow-y: auto; padding: 25px; scroll-behavior: smooth; }.thread-empty { text-align: center; padding: 23px 8px 8px; }.empty-avatar { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 24px; background: #e7f2ed; margin: 0 auto 18px; }.thread-empty .mini-label { color: #79a9a2; }.thread-empty h2 { font-family: var(--app-font-serif); font-size: clamp(25px, 3vw, 34px); line-height: 1.12; letter-spacing: -.045em; margin: 9px 0; }.thread-empty h2 em { color: #d1846d; font-style: normal; }.thread-empty p { color: #87918c; margin: 0; font-size: 12px; }.personal-ideas { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 25px auto 0; }.personal-ideas button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e5ded2; border-radius: 30px; color: #405661; background: #f9f7f0; font-size: 10px; padding: 9px 11px; }.personal-ideas button:hover { background: #e8f2ed; border-color: #9bcfc9; }.empty-start { display: inline-flex; align-items: center; gap: 7px; margin-top: 25px; border: 0; background: #1d3444; color: #f7f4e9; border-radius: 11px; padding: 12px 16px; font-size: 12px; font-weight: 700; }
.thread-state { display: grid; justify-items: center; align-content: center; min-height: 270px; text-align: center; color: #758783; }.thread-state h2 { color: #1d3444; font: 600 23px var(--app-font-serif); margin: 12px 0 0; }.thread-state p { font-size: 12px; }.thread-state button { display: flex; align-items: center; gap: 7px; border: 1px solid #cfdbd3; background: #eaf4ed; border-radius: 8px; padding: 9px 12px; color: #1d3444; font-size: 12px; }
.personal-messages { display: flex; flex-direction: column; gap: 24px; margin-bottom: 23px; }.personal-message { display: flex; align-items: flex-start; gap: 9px; animation: rise-in .3s ease both; }.personal-message.user { justify-content: flex-end; }.personal-message > div { max-width: min(84%, 520px); }.personal-message.assistant > div { max-width: min(84%, 520px); }.message-by { font: 700 9px var(--app-font-mono); color: #93a19b; letter-spacing: .04em; display: block; margin: 1px 0 7px; }.personal-message.user .message-by { text-align: right; }.personal-bubble { background: #f0eee6; border-radius: 3px 15px 15px 15px; padding: 13px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.65; }.personal-message.user .personal-bubble { background: #dbeee9; border-radius: 15px 3px 15px 15px; }.personal-bubble.waiting { display: flex; gap: 5px; min-width: 56px; }.personal-bubble.waiting i { width: 5px; height: 5px; background: #779791; border-radius: 50%; animation: typing-bounce 1.2s infinite; }.personal-bubble.waiting i:nth-child(2) { animation-delay: .15s; }.personal-bubble.waiting i:nth-child(3) { animation-delay: .3s; }
.personal-composer-wrap { padding: 15px 22px 17px; border-top: 1px solid #eee8dc; }.personal-composer { display: flex; align-items: flex-end; border: 1px solid #deded2; border-radius: 12px; background: #fffef9; padding: 8px 8px 8px 14px; }.personal-composer:focus-within { border-color: #80b8ae; box-shadow: 0 0 0 3px #80b8ae22; }.personal-composer textarea { border: none; outline: 0; resize: none; width: 100%; max-height: 120px; min-height: 40px; background: transparent; font-size: 12px; line-height: 1.5; color: #1d3444; padding: 9px 0; }.personal-composer textarea::placeholder { color: #a1aba5; }.personal-composer button { flex: none; display: grid; place-items: center; width: 37px; height: 37px; border: 0; border-radius: 9px; background: #1d3444; color: #f7f4e9; }.personal-composer button:not(:disabled):hover { transform: translateY(-2px); }.composer-under { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; color: #a0a8a1; font-size: 9px; }.personal-footer { font-size: 10px; color: #9fa6a0; text-align: center; margin: 16px 0; }
.memory-panel { height: 100dvh; position: sticky; top: 0; overflow-y: auto; background: #eaf3ed; border-left: 1px solid #dce8dc; padding: 29px 24px 22px; }.memory-top { display: flex; justify-content: space-between; align-items: center; color: #58857c; }.memory-portrait { height: 168px; margin-top: 24px; display: grid; place-items: center; position: relative; background: #dfeee6; border-radius: 17px; overflow: hidden; }.memory-portrait .avatar { transform: scale(1.55); z-index: 1; box-shadow: 0 10px 24px #1d344431; }.portrait-orbit { width: 148px; height: 148px; border: 1px solid #bfdad0; border-radius: 50%; position: absolute; }.orbit-two { width: 228px; height: 228px; }
.bot-identity { padding-top: 23px; }.bot-identity .mini-label { color: #77978c; }.identity-row { display: flex; align-items: center; justify-content: space-between; }.identity-row h2 { font: 600 32px var(--app-font-serif); letter-spacing: -.05em; margin: 2px 0 0; overflow-wrap: anywhere; }.identity-row h2 span { color: #d3846d; }.identity-row button, .summary-head button { border: 1px solid #cbded0; border-radius: 7px; background: #f4f8f0; color: #4d776f; width: 29px; height: 29px; display: grid; place-items: center; }.bot-identity p { font-size: 11px; color: #789187; line-height: 1.55; margin: 8px 0 0; }.memory-divider { height: 1px; background: #cfe0d5; margin: 24px 0; }.memory-control-head { display: flex; justify-content: space-between; align-items: center; }.memory-control-head > div { display: flex; align-items: center; gap: 9px; }.memory-control-head svg { color: #d1846d; }.memory-control-head strong { font: 600 19px var(--app-font-serif); letter-spacing: -.025em; }.memory-switch { width: 37px; height: 22px; border: 0; border-radius: 20px; background: #aabbb1; padding: 3px; transition: background .2s; }.memory-switch.on { background: #34766e; }.memory-switch span { display: block; width: 16px; height: 16px; background: #fdfbf3; border-radius: 50%; transition: transform .2s; }.memory-switch.on span { transform: translateX(15px); }.memory-explainer { color: #768d83; font-size: 11px; line-height: 1.55; margin: 10px 0 22px; }
.memory-summary { background: #f9fbf4; border: 1px solid #d5e5d7; padding: 16px; border-radius: 12px; min-height: 120px; }.summary-head { display: flex; align-items: center; justify-content: space-between; color: #759389; }.memory-summary > p { font-size: 12px; line-height: 1.65; color: #435950; white-space: pre-wrap; margin: 16px 0 0; overflow-wrap: anywhere; }.summary-empty { margin-top: 16px; color: #879e91; font-size: 11px; line-height: 1.6; }.summary-empty svg { color: #d18b75; }.summary-empty p { margin: 6px 0 0; }.summary-empty button { border: none; background: none; text-decoration: underline; color: #306f69; padding: 0; }.clear-memory { display: flex; align-items: center; gap: 8px; background: transparent; border: none; color: #846d6a; font-size: 11px; padding: 14px 0; }.clear-memory:not(:disabled):hover { color: #a64937; }.memory-foot { border-top: 1px solid #cfe0d5; margin-top: 10px; padding-top: 20px; color: #738b81; display: flex; gap: 9px; font-size: 10px; line-height: 1.5; }.memory-foot svg { flex: none; color: #4a897c; }
.inline-edit input, .memory-edit textarea { width: 100%; border: 1px solid #b6d2c0; border-radius: 7px; background: #fdfef8; color: #1d3444; padding: 9px; }.inline-edit input { margin-top: 8px; font-size: 20px; font-family: var(--app-font-serif); }.inline-edit > div, .memory-edit > div { display: flex; gap: 10px; margin-top: 9px; }.inline-edit button, .memory-edit button { border: 0; border-radius: 6px; background: #1d3444; color: #f8f3e9; padding: 7px 10px; font-size: 10px; display: inline-flex; align-items: center; gap: 5px; }.inline-edit button:last-child, .memory-edit button:last-child { background: transparent; color: #658079; }.memory-edit textarea { resize: vertical; font-size: 12px; line-height: 1.55; margin-top: 13px; }.memory-edit > span { display: block; text-align: right; color: #8da296; font-size: 9px; }
.personal-skeleton { display: flex; flex-direction: column; gap: 13px; padding: 15px 3px; width: 100%; }.personal-skeleton span { height: 13px; background: linear-gradient(90deg, #a5bfb433, #a5bfb466, #a5bfb433); border-radius: 5px; }
.confirm-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: #162d3ac9; backdrop-filter: blur(3px); }.confirm-dialog { width: min(100%, 400px); position: relative; padding: 30px; background: #fcfaf4; border-radius: 17px; box-shadow: 0 24px 70px #13273455; }.confirm-x { position: absolute; top: 17px; right: 17px; background: transparent; border: none; color: #74847f; }.confirm-icon { width: 42px; height: 42px; background: #f9e8e1; color: #b05d46; border-radius: 12px; display: grid; place-items: center; margin-bottom: 21px; }.confirm-dialog .mini-label { color: #bb7964; }.confirm-dialog h2 { font: 600 32px var(--app-font-serif); letter-spacing: -.04em; margin: 8px 0; }.confirm-dialog p { color: #75817e; font-size: 13px; line-height: 1.6; }.confirm-actions { display: flex; gap: 9px; margin-top: 25px; }.confirm-actions button { flex: 1; border: 1px solid #e2ded5; border-radius: 9px; background: #f4f1e9; color: #374b51; padding: 11px; display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 700; }.confirm-actions .confirm-danger { border-color: #b35a46; background: #b35a46; color: #fff9f2; }
.mobile-nav, .mobile-close, .memory-close, .memory-mobile-button, .mobile-scrim, .memory-scrim { display: none; }
.icon-action { background: transparent; border: 0; color: inherit; padding: 7px; border-radius: 7px; }
.text-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 1; }
.personal-sidebar .text-icon, .personal-sidebar .brand-mark { color: #8ec9c8; }
.personal-sidebar .sidebar-create .text-icon { color: inherit; font-size: 18px; }
.personal-sidebar .conversation-select .text-icon { color: #8ec9c8; }
.memory-panel .text-icon, .memory-summary .text-icon { color: #d1846d; }
.personal-chat-head .brand-name span, .personal-app .brand-name span { color: #d3846d; }
.not-found { min-height: 100dvh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 690px; margin: auto; padding: 54px 25px; }
.not-found .brand { margin-bottom: auto; }
.not-found .mini-label { color: hsl(var(--muted-foreground)); margin-top: 70px; }
.not-found h1 { margin: 14px 0; font: 600 clamp(42px, 7vw, 68px)/1.02 var(--app-font-serif); letter-spacing: -.055em; }
.not-found h1 em { color: hsl(var(--accent)); font-style: normal; }
.not-found p { max-width: 430px; margin: 0 0 25px; color: hsl(var(--muted-foreground)); line-height: 1.65; }
.not-found .public-auth-link { margin-bottom: auto; }
.public-auth-link { display: inline-flex; align-items: center; gap: 7px; color: #1d3444; border: 1px solid #d5d0c5; background: #fcfaf4; border-radius: 8px; padding: 9px 13px; text-decoration: none; font-size: 12px; font-weight: 700; }.public-auth-link:hover { background: #e7f1ec; }.public-auth-link.primary { background: #1d3444; color: #faf6ed; border-color: #1d3444; }.public-auth-link.primary:hover { background: #345363; }
.auth-page { min-height: 100dvh; display: grid; grid-template-columns: minmax(280px, .92fr) minmax(420px, 1.08fr); background: #f7f4e9; }.auth-story { padding: 37px clamp(28px, 5vw, 80px); background: #1d3444; color: #f9f4e9; display: flex; flex-direction: column; position: relative; overflow: hidden; }.auth-story .brand { color: #f9f4e9; text-decoration: none; }.auth-story .brand-mark { background: #8ec9c8; color: #1d3444; }.auth-story-body { margin: auto 0; position: relative; z-index: 1; }.auth-story-body .mini-label { color: #8ec9c8; }.auth-story h1 { font: 600 clamp(42px, 5.3vw, 75px)/1 var(--app-font-serif); letter-spacing: -.055em; max-width: 540px; margin: 20px 0; }.auth-story h1 em { color: #f0ab94; font-style: normal; }.auth-story p { color: #b8c9c8; font-size: 15px; line-height: 1.65; max-width: 370px; }.auth-story-foot { color: #8fa9ae; font-size: 11px; z-index: 1; }.auth-decoration { position: absolute; bottom: -110px; right: -100px; width: 400px; height: 400px; border: 1px solid #8ec9c833; border-radius: 50%; box-shadow: 0 0 0 55px #8ec9c80b, 0 0 0 115px #8ec9c80a; }.auth-decoration .avatar { position: absolute; left: 110px; top: 65px; transform: scale(1.8); }.auth-form-side { display: grid; place-items: center; padding: 35px 20px; }.auth-form-inner { width: min(100%, 440px); }.auth-form-intro { margin: 0 0 20px 5px; }.auth-form-intro .mini-label { color: #b27b68; }.auth-form-intro h2 { font: 600 28px var(--app-font-serif); letter-spacing: -.045em; margin: 8px 0 0; }.auth-form-inner .local-auth-form { display: grid; gap: 11px; padding: 25px; color: hsl(var(--foreground)); background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 16px; box-shadow: 0 15px 45px #1d344412; }.local-auth-form label { color: hsl(var(--foreground)); font-size: 12px; font-weight: 700; }.local-auth-form input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid hsl(var(--border)); border-radius: 10px; color: hsl(var(--foreground)); background: hsl(var(--background)); font: 500 14px var(--app-font-sans); }.local-auth-form input:focus-visible { outline: 3px solid hsl(var(--ring) / .25); border-color: hsl(var(--ring)); }.local-auth-form .local-auth-error { margin: 0; color: hsl(var(--destructive)); font-size: 12px; line-height: 1.5; }.local-auth-submit { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; margin-top: 5px; border: 0; border-radius: 10px; color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); font: 700 13px var(--app-font-sans); cursor: pointer; }.local-auth-submit:hover { filter: brightness(1.1); }.local-auth-submit:disabled { opacity: .65; cursor: wait; }.local-auth-form :is(input, .local-auth-submit):focus-visible { outline: 3px solid hsl(var(--ring) / .35); outline-offset: 2px; }.local-auth-switch { margin: 18px 5px 0; color: hsl(var(--muted-foreground)); font-size: 12px; }.local-auth-switch a { color: hsl(var(--foreground)); font-weight: 700; text-underline-offset: 3px; }.auth-back { display: inline-block; margin: 22px 5px 0; color: #526b69; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.auth-loading { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 25px; background: #f7f4e9; }.auth-loading .personal-skeleton { width: 180px; }
.invite-card { display: grid; gap: 12px; padding: 25px; background: hsl(var(--card)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); border-radius: 16px; box-shadow: 0 15px 45px #1d344412; }
.invite-card label { font-size: 12px; font-weight: 700; }
.invite-card input { width: 100%; padding: 13px 14px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--background)); color: hsl(var(--foreground)); font: 700 18px var(--app-font-sans); letter-spacing: .13em; text-transform: uppercase; }
.invite-card input:focus-visible { outline: 3px solid hsl(var(--ring) / .25); border-color: hsl(var(--ring)); }
.invite-help, .auth-form-intro p { color: hsl(var(--muted-foreground)); font-size: 12px; line-height: 1.6; margin: 0; }
.auth-form-intro p { margin-top: 10px; }
.invite-error { margin: 0; color: hsl(var(--destructive)); font-size: 12px; font-weight: 700; }
.invite-submit { display: flex; justify-content: center; gap: 8px; align-items: center; padding: 13px 15px; border: 0; border-radius: 10px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font: 700 12px var(--app-font-sans); cursor: pointer; }
.invite-submit:hover { filter: brightness(1.1); }
.invite-submit:focus-visible { outline: 3px solid hsl(var(--ring) / .35); outline-offset: 2px; }
.invite-signin { margin: 18px 5px 0; color: hsl(var(--muted-foreground)); font-size: 12px; }
.invite-signin a { color: hsl(var(--foreground)); font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 1180px) { .personal-app { grid-template-columns: 235px minmax(0,1fr); }.memory-panel { position: fixed; right: 0; z-index: 24; width: min(360px, 90vw); transform: translateX(101%); transition: transform .25s ease; box-shadow: -20px 0 60px #1d344425; }.memory-panel.open { transform: translateX(0); }.memory-close, .memory-mobile-button { display: inline-flex; }.memory-mobile-button { align-items: center; gap: 6px; border: 1px solid #c7dbd2; background: #eaf4ed; border-radius: 20px; padding: 7px 11px; font-size: 10px; color: #3c736b; white-space: nowrap; }.memory-scrim { display: block; position: fixed; inset: 0; z-index: 23; background: #162d3a77; border: 0; width: 100%; }.personal-topbar .topbar-private { display: none; } }
@media (max-width: 767px) { .personal-app { display: block; }.personal-sidebar { position: fixed; left: 0; width: min(285px, 85vw); transform: translateX(-101%); transition: transform .25s ease; box-shadow: 12px 0 40px #162d3a22; }.personal-sidebar.open { transform: translateX(0); }.mobile-close, .mobile-nav { display: grid; place-items: center; }.mobile-scrim { display: block; position: fixed; inset: 0; z-index: 11; width: 100%; border: 0; background: #162d3a77; }.personal-topbar { height: 61px; padding: 0 16px; justify-content: flex-start; }.topbar-crumb { flex: 1; }.personal-content { padding: 34px 16px 22px; }.personal-heading h1 { font-size: clamp(38px, 8vw, 52px); }.personal-heading p { font-size: 12px; }.personal-chat { min-height: 520px; }.personal-thread { padding: 19px 15px; min-height: 325px; }.personal-chat-head { padding: 0 16px; }.head-spark { font-size: 0; padding: 8px; }.personal-composer-wrap { padding: 12px 14px 15px; }.composer-under span:last-child { display: none; }.auth-page { grid-template-columns: 1fr; }.auth-story { min-height: 255px; padding: 22px 26px; }.auth-story-body { margin: 34px 0 10px; }.auth-story h1 { font-size: 38px; margin: 9px 0; }.auth-story p { font-size: 12px; margin: 0; }.auth-story-foot { display: none; }.auth-decoration { transform: scale(.6); transform-origin: bottom right; }.auth-form-side { padding: 30px 14px 50px; } }
@media (max-width: 820px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-story { min-height: 300px; padding: 25px 28px; }
  .auth-story-body { margin: 35px 0 18px; }
  .auth-story h1 { font-size: clamp(34px, 8vw, 54px); max-width: 520px; }
  .auth-story p { max-width: 520px; }
  .auth-story-foot { display: none; }
  .auth-form-side { min-width: 0; padding: 30px 16px 45px; }
  .auth-form-inner { min-width: 0; }
}
@media (max-width: 450px) {
  .auth-story { min-height: 285px; }
  .auth-story h1 { font-size: 36px; }
  .auth-story p { font-size: 12px; }
  .auth-form-inner .local-auth-form { padding: 21px; }
}
@media (max-width: 620px) { .header-meta .status-pill { display: none; }.public-auth-link { padding: 8px; font-size: 10px; }.header-meta, .auth-nav { gap: 5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 22px; color: hsl(var(--muted-foreground)); font-size: 12px; line-height: 1.5; }
.site-footer strong { color: hsl(var(--foreground)); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.footer-links a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.footer-links a:hover, .footer-links a[aria-current="page"] { text-decoration-color: currentColor; }
.footer-note.site-footer { margin: 20px 0 28px; font-size: 12px; }
.auth-story-foot.site-footer { justify-content: space-between; margin-top: 24px; color: #c3d0d2; position: relative; z-index: 1; }
.auth-story-foot.site-footer strong { color: #f9f4e9; }
.personal-legal-footer, .not-found-footer { padding: 20px 18px 28px; }
.not-found { min-height: calc(100dvh - 84px); }

.legal-page { min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(circle at 95% 0%, hsl(183 49% 86% / .35), transparent 34rem), hsl(var(--background)); }
.legal-header { width: min(100%, 1060px); margin: 0 auto; padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.legal-back { font-size: 13px; font-weight: 600; text-decoration: none; color: hsl(var(--foreground)); }
.legal-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal-main { width: min(100%, 900px); margin: 38px auto 70px; padding: 0 26px; }
.legal-main > .mini-label { margin: 0 0 12px; color: hsl(var(--muted-foreground)); font-size: 11px; letter-spacing: .14em; }
.legal-main h1 { margin: 0 0 30px; font: 600 clamp(36px, 5vw, 58px)/1.12 var(--app-font-serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.legal-document { padding: clamp(26px, 5vw, 58px); border: 1px solid hsl(var(--card-border)); border-radius: 22px; background: hsl(var(--card)); box-shadow: 0 20px 48px hsl(211 35% 18% / .06); overflow-wrap: anywhere; }
.legal-document section + section { border-top: 1px solid hsl(var(--border)); margin-top: 36px; padding-top: 30px; }
.legal-document h2 { margin: 0 0 16px; font: 600 clamp(20px, 3vw, 26px)/1.32 var(--app-font-serif); letter-spacing: -.025em; }
.legal-document h3 { margin: 25px 0 9px; font-size: 15px; line-height: 1.45; }
.legal-document p, .legal-document li, .legal-document address, .legal-document dd { color: hsl(var(--foreground)); font-size: 14px; line-height: 1.78; }
.legal-document p { margin: 0 0 15px; }
.legal-document section > :last-child { margin-bottom: 0; }
.legal-document ul { margin: 0 0 18px; padding-left: 23px; }
.legal-document li + li { margin-top: 7px; }
.legal-document address { margin: 0 0 16px; font-style: normal; }
.legal-document a { text-decoration: underline; text-underline-offset: 3px; }
.legal-document .legal-lead { font-size: 16px; font-weight: 600; margin: 0 0 22px; }
.legal-info { background: hsl(var(--secondary) / .43); border-left: 3px solid hsl(var(--ring)); border-radius: 0 10px 10px 0; padding: 15px 18px; font-size: 13px; line-height: 1.75; margin: 20px 0; }
.legal-document .legal-stand { margin: 35px 0 0; font-size: 12px; color: hsl(var(--muted-foreground)); }
.legal-rights, .legal-details { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 1fr); column-gap: 20px; row-gap: 0; margin: 15px 0 24px; }
.legal-rights dt, .legal-rights dd, .legal-details dt, .legal-details dd { border-bottom: 1px solid hsl(var(--border)); padding: 12px 0; margin: 0; }
.legal-rights dt, .legal-details dt { font-size: 13px; line-height: 1.6; font-weight: 700; }
.legal-page-footer { margin: auto 20px 0; padding: 23px 0 32px; border-top: 1px solid hsl(var(--border)); }
.homescreen-main { width: min(100%, 900px); margin: 32px auto 72px; padding: 0 26px; }
.homescreen-main > .mini-label, .homescreen-guide .mini-label { color: hsl(var(--muted-foreground)); margin: 0 0 10px; }
.homescreen-main h1 { margin: 0 0 17px; font: 600 clamp(36px, 5vw, 58px)/1.12 var(--app-font-serif); letter-spacing: -.045em; }
.homescreen-lead { max-width: 720px; margin: 0 0 32px; color: hsl(var(--muted-foreground)); font-size: 17px; line-height: 1.65; }
.homescreen-main a { text-underline-offset: 3px; font-weight: 700; }
.homescreen-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.homescreen-guide { padding: clamp(22px, 3vw, 34px); border: 1px solid hsl(var(--card-border)); border-radius: 22px; background: hsl(var(--card)); box-shadow: 0 14px 35px hsl(211 35% 18% / .05); }
.homescreen-guide h2, .homescreen-note h2 { margin: 0 0 22px; font: 600 26px/1.2 var(--app-font-serif); letter-spacing: -.025em; }
.homescreen-guide ol { margin: 0; padding-left: 26px; }
.homescreen-guide li { padding-left: 4px; font-size: 15px; line-height: 1.6; }
.homescreen-guide li + li { margin-top: 17px; }
.homescreen-guide li::marker { color: hsl(var(--ring)); font-weight: 700; }
.homescreen-note { margin-top: 18px; padding: 23px 28px; border-radius: 18px; background: hsl(var(--secondary) / .55); }
.homescreen-note h2 { margin-bottom: 8px; font-size: 21px; }
.homescreen-note p { margin: 0; font-size: 14px; line-height: 1.7; }
@media (max-width: 820px) {
  .auth-story-foot.site-footer { display: flex; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .homescreen-main { margin: 23px auto 48px; padding: 0 15px; }
  .homescreen-main h1 { font-size: clamp(34px, 9vw, 46px); }
  .homescreen-lead { font-size: 15px; margin-bottom: 24px; }
  .homescreen-guides { grid-template-columns: 1fr; gap: 13px; }
  .homescreen-guide { padding: 24px 22px; border-radius: 16px; }
  .homescreen-note { padding: 21px 22px; }
  .legal-header { padding: 18px 20px; }
  .legal-back { font-size: 11px; }
  .legal-main { margin: 26px auto 48px; padding: 0 15px; }
  .legal-main h1 { margin-bottom: 20px; }
  .legal-document { padding: 25px 21px; border-radius: 16px; }
  .legal-rights, .legal-details { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .legal-rights dt, .legal-details dt { padding: 12px 0 0; border: 0; }
  .legal-rights dd, .legal-details dd { padding: 0 0 12px; }
}