/* [project]/apps/web/app/globals.css [app-client] (css) */
:root {
  --ink: #171717;
  --ink-soft: #5e5a57;
  --paper: #f5f3ef;
  --surface: #fffdf9;
  --line: #ded9d2;
  --line-strong: #c8c0b7;
  --red: #b3001b;
  --red-dark: #850014;
  --red-soft: #f8e8ea;
  --success: #167448;
  --shadow: 0 18px 60px #1d161214;
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  font-family: Inter, Helvetica Neue, Arial, sans-serif;
}

button, textarea, a {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible, textarea:focus-visible {
  outline-offset: 3px;
  outline: 3px solid #b3001b47;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 20px;
  height: 20px;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.eyebrow {
  color: var(--red);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 750;
}

.app-shell {
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #ebe7e1;
  flex-direction: column;
  min-height: 100vh;
  padding: 26px 20px 20px;
  display: flex;
}

.brand-lockup {
  align-items: center;
  gap: 11px;
  display: flex;
}

.brand-mark {
  background: var(--red);
  color: #fff;
  border-radius: 8px 2px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  display: grid;
}

.brand-lockup div {
  flex-direction: column;
  line-height: 1.05;
  display: flex;
}

.brand-lockup strong {
  letter-spacing: .08em;
}

.brand-lockup span:not(.brand-mark) {
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.new-chat {
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  min-height: 46px;
  transition: transform .16s var(--ease),
    background .16s var(--ease);
  border: 0;
  border-radius: 11px;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 34px 0 28px;
  font-weight: 650;
  display: flex;
}

.new-chat:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.conversation-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.conversation {
  width: 100%;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 9px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 11px 10px;
  display: grid;
}

.conversation:hover, .conversation.active {
  color: var(--ink);
  background: #ffffff9e;
}

.conversation span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.conversation time {
  font-size: 11px;
}

.empty-nav {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.user-card {
  border-top: 1px solid var(--line-strong);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  display: grid;
}

.avatar {
  background: var(--surface);
  width: 38px;
  height: 38px;
  color: var(--red);
  border-radius: 50%;
  place-items: center;
  font-size: 12px;
  font-weight: 750;
  display: grid;
}

.user-card div {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.user-card strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  overflow: hidden;
}

.user-card span:not(.avatar) {
  color: var(--ink-soft);
  font-size: 10px;
}

.user-card button {
  width: 36px;
  height: 36px;
  color: var(--ink-soft);
  cursor: pointer;
  background: none;
  border: 0;
  place-items: center;
  display: grid;
}

.workspace {
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  display: grid;
}

.workspace-header {
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(24px, 5vw, 72px) 18px;
  display: flex;
}

.workspace-header h1 {
  letter-spacing: -.025em;
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 500;
}

.secure-pill {
  color: #276347;
  background: #f1faf5;
  border: 1px solid #b9d5c7;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 650;
  display: inline-flex;
}

.secure-pill span {
  background: var(--success);
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.conversation-pane {
  padding: 20px clamp(24px, 8vw, 128px) 42px;
  overflow-y: auto;
}

.welcome-panel {
  text-align: center;
  max-width: 920px;
  margin: clamp(30px, 9vh, 100px) auto 0;
}

.welcome-symbol {
  background: var(--red-soft);
  width: 58px;
  height: 58px;
  color: var(--red);
  border: 1px solid #e8c6cb;
  border-radius: 20px 6px;
  place-items: center;
  margin: 0 auto 22px;
  display: grid;
}

.welcome-symbol svg {
  fill: currentColor;
  stroke: none;
  width: 30px;
  height: 30px;
}

.welcome-panel h2 {
  letter-spacing: -.04em;
  max-width: 680px;
  margin: 0 auto 14px;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.04;
}

.welcome-panel > p:not(.eyebrow) {
  max-width: 610px;
  color: var(--ink-soft);
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
}

.shortcut-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin: 42px auto 0;
  display: grid;
}

.shortcut-grid button {
  border: 1px solid var(--line);
  min-height: 58px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s var(--ease),
    transform .16s var(--ease),
    background .16s var(--ease);
  background: #fffdf9b8;
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 0 17px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
}

.shortcut-grid button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.shortcut-grid button:hover {
  background: var(--surface);
  border-color: #c89099;
  transform: translateY(-2px);
}

.shortcut-grid svg {
  color: var(--red);
}

.messages {
  max-width: 820px;
  margin: 20px auto 0;
}

.message {
  max-width: 86%;
  margin: 0 0 24px;
}

.message.user {
  margin-left: auto;
}

.message-label {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
}

.message p {
  border: 1px solid var(--line);
  background: var(--surface);
  white-space: pre-wrap;
  border-radius: 4px 16px 16px;
  margin: 0;
  padding: 16px 18px;
  line-height: 1.6;
}

.message.user p {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: 16px 4px 16px 16px;
}

.source-badge {
  color: var(--ink-soft);
  margin-top: 8px;
  font-size: 11px;
  display: inline-flex;
}

.source-badge:before {
  content: "";
  background: var(--red);
  border-radius: 50%;
  width: 6px;
  height: 6px;
  margin: 4px 7px 0 1px;
}

.tool-status {
  border: 1px solid var(--line);
  width: fit-content;
  color: var(--ink-soft);
  background: #fffdf9cc;
  border-radius: 999px;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  font-size: 12px;
  display: flex;
}

.pulse {
  background: var(--red);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  animation: 1.2s infinite pulse;
}

.composer-wrap {
  background: linear-gradient(180deg, #f5f3ef00, var(--paper) 28%);
  padding: 12px clamp(24px, 8vw, 128px) 20px;
}

.composer {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  max-width: 820px;
  box-shadow: var(--shadow);
  border-radius: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 0 auto;
  padding: 10px 10px 10px 18px;
  display: grid;
}

.composer:focus-within {
  box-shadow: 0 0 0 3px #b3001b1a,
    var(--shadow);
  border-color: #b76b77;
}

.composer textarea {
  resize: vertical;
  min-height: 34px;
  max-height: 140px;
  color: var(--ink);
  background: none;
  border: 0;
  outline: 0;
  line-height: 1.5;
}

.composer textarea::placeholder {
  color: #8e8983;
}

.composer button {
  background: var(--red);
  color: #fff;
  cursor: pointer;
  width: 42px;
  height: 42px;
  transition: background .15s var(--ease),
    transform .15s var(--ease);
  border: 0;
  border-radius: 12px;
  place-items: center;
  display: grid;
}

.composer button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.composer button:disabled {
  cursor: not-allowed;
  opacity: .38;
  transform: none;
}

.composer-wrap > p {
  color: #7b7670;
  text-align: center;
  margin: 9px auto 0;
  font-size: 10px;
}

.error-banner {
  background: var(--red-soft);
  max-width: 820px;
  color: var(--red-dark);
  border: 1px solid #dfb0b7;
  border-radius: 10px;
  margin: 0 auto 10px;
  padding: 11px 13px;
  font-size: 13px;
}

.login-page {
  grid-template-columns: minmax(360px, 1fr) minmax(440px, 1fr);
  min-height: 100vh;
  display: grid;
}

.login-story {
  color: #fff;
  background: #171717;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(30px, 5vw, 72px);
  display: flex;
  position: relative;
  overflow: hidden;
}

.login-story:after {
  content: "";
  border: 1px solid #ffffff1f;
  border-radius: 50%;
  width: 520px;
  height: 520px;
  position: absolute;
  bottom: -190px;
  right: -180px;
  box-shadow: 0 0 0 70px #ffffff06, 0 0 0 140px #ffffff05;
}

.brand-lockup.inverse span:not(.brand-mark) {
  color: #aaa39c;
}

.story-copy {
  z-index: 1;
  max-width: 660px;
  position: relative;
}

.story-copy .eyebrow {
  color: #e57a89;
}

.story-copy h1 {
  letter-spacing: -.05em;
  margin: 0 0 24px;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(50px, 6vw, 88px);
  font-weight: 500;
  line-height: .98;
}

.story-copy > p:not(.eyebrow) {
  color: #c9c4bd;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.65;
}

.story-foot {
  z-index: 1;
  color: #8e8983;
  font-size: 12px;
  position: relative;
}

.login-action {
  background: var(--paper);
  place-items: center;
  min-height: 100vh;
  padding: 36px;
  display: grid;
}

.login-card {
  width: min(440px, 100%);
}

.login-icon {
  background: var(--red-soft);
  width: 54px;
  height: 54px;
  color: var(--red);
  border-radius: 18px 5px;
  place-items: center;
  margin-bottom: 30px;
  display: grid;
}

.login-icon svg {
  fill: currentColor;
  stroke: none;
  width: 28px;
  height: 28px;
}

.login-card h2 {
  letter-spacing: -.03em;
  margin: 0 0 14px;
  font-family: Georgia, Times New Roman, serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.08;
}

.login-card > p:not(.eyebrow) {
  color: var(--ink-soft);
  line-height: 1.6;
}

.sso-button {
  background: var(--red);
  color: #fff;
  min-height: 54px;
  transition: background .16s var(--ease),
    transform .16s var(--ease);
  border-radius: 11px;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
}

.sso-button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.login-card small {
  color: #817b75;
  margin-top: 18px;
  line-height: 1.5;
  display: block;
}

.test-logins {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  display: grid;
}

.test-logins button {
  border: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  cursor: pointer;
  background: none;
  border-radius: 9px;
  padding: 10px;
}

.loading-screen {
  min-height: 100vh;
  color: var(--ink-soft);
  place-content: center;
  justify-items: center;
  gap: 16px;
  display: grid;
}

@keyframes pulse {
  50% {
    opacity: .35;
    transform: scale(.78);
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: auto;
    padding: 16px;
  }

  .sidebar .new-chat, .conversation-list {
    display: none;
  }

  .user-card {
    border: 0;
    width: 48%;
    padding: 0;
    position: absolute;
    top: 11px;
    right: 14px;
  }

  .user-card .avatar, .user-card div {
    display: none;
  }

  .user-card button {
    margin-left: auto;
  }

  .workspace {
    min-height: calc(100vh - 71px);
  }

  .workspace-header {
    padding: 22px 18px 10px;
  }

  .secure-pill {
    display: none;
  }

  .conversation-pane {
    padding: 12px 16px 26px;
  }

  .welcome-panel {
    margin-top: 28px;
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .shortcut-grid button:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .composer-wrap {
    padding: 10px 14px 14px;
  }

  .message {
    max-width: 94%;
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: 38vh;
    padding: 28px 24px;
  }

  .story-copy {
    margin: 60px 0 30px;
  }

  .story-copy h1 {
    font-size: 44px;
  }

  .story-foot {
    display: none;
  }

  .login-action {
    min-height: 62vh;
    padding: 40px 24px;
  }

  .login-card h2 {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

/*# sourceMappingURL=apps_web_app_globals_1lkgh9-.css.map*/