/* web/local-access/reset.css */
*,
::before,
::after {
  box-sizing: border-box;
}
html,
body,
#root {
  min-height: 100%;
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* web/local-access/styles.css */
:root {
  color-scheme: dark;
  font-family:
    Inter,
    "Segoe UI",
    system-ui,
    sans-serif;
  background: #091114;
  color: #edf4ed;
}
.access-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at 10% 0%,
      #1b4638 0,
      transparent 37%),
    radial-gradient(
      circle at 100% 100%,
      #15324c 0,
      transparent 42%),
    #091114;
}
.access-shell {
  width: min(100%, 620px);
  padding: clamp(24px, 7vw, 52px);
  border: 1px solid #486156;
  background: #102019e8;
  box-shadow: 0 24px 80px #0008;
  border-radius: 24px;
  display: grid;
  gap: 20px;
}
.access-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b9cabd;
}
.access-brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #d7f3c7;
  color: #102019;
  font-weight: 800;
}
.access-brand p {
  font-size: 12px;
  margin: 0;
}
.access-brand strong {
  font-size: 14px;
}
.eyebrow {
  color: #bce9a9;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 700;
  margin: 0;
}
.access-shell h1 {
  font-size: clamp(29px, 7vw, 44px);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 0;
}
.access-shell h2 {
  font-size: 18px;
  margin: 0;
}
.lead,
.intent-card p {
  color: #c9d7cd;
  line-height: 1.65;
  margin: 0;
}
.question {
  font-size: 20px;
  line-height: 1.45;
  margin: 0;
}
.access-form {
  display: grid;
  gap: 17px;
}
.answer,
.inline-form input {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #74917c;
  background: #0a1510;
  color: #fff;
  border-radius: 12px;
  padding: 14px 15px;
  font: inherit;
  font-size: 17px;
}
.answer-area {
  resize: vertical;
  min-height: 120px;
}
.primary,
.quiet,
.link-button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 13px 17px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.primary,
.link-button {
  background: #d7f3c7;
  color: #102019;
}
.quiet {
  background: transparent;
  color: #d9eadb;
  border: 1px solid #74917c;
}
.access-shell :is(button, a, input, textarea):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.access-shell button:disabled {
  opacity: .55;
  cursor: wait;
}
.alert {
  padding: 13px;
  border-left: 3px solid #f4bd85;
  background: #38281d;
  color: #fff1e3;
}
.intent-card {
  border: 1px solid #496151;
  padding: 18px;
  border-radius: 15px;
  display: grid;
  gap: 9px;
}
.disabled-action {
  color: #d6e9d5;
  font-size: 14px;
}
.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inline-form input {
  min-width: 0;
  font-size: 15px;
  padding: 12px;
}
@media (max-width: 430px) {
  .access-page {
    padding: 12px;
    place-items: start;
  }
  .access-shell {
    border-radius: 18px;
    min-height: calc(100dvh - 24px);
  }
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }
  .inline-form button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.workspace-app {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 264px 1fr;
  background: #091114;
  color: #edf4ed;
}
.workspace-menu-button {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 30;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #3a4c42;
  background: #102019;
  color: #edf4ed;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.workspace-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: #000a;
  border: 0;
  z-index: 15;
  padding: 0;
}
.workspace-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px;
  background: #0c1713;
  border-right: 1px solid #223129;
  overflow-y: auto;
  min-height: 0;
}
.workspace-rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b9cabd;
  padding: 0 2px;
}
.workspace-rail-brand span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #d7f3c7;
  color: #102019;
  font-weight: 800;
  flex: none;
}
.workspace-rail-brand p {
  font-size: 11px;
  margin: 0;
}
.workspace-rail-brand strong {
  font-size: 13px;
}
.workspace-rail-new {
  appearance: none;
  border: 1px solid #3a4c42;
  background: #152420;
  color: #edf4ed;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.workspace-rail-section {
  display: grid;
  gap: 8px;
}
.workspace-rail-label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7c9186;
  font-weight: 700;
}
.workspace-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.workspace-rail-static li {
  padding: 8px 9px;
  color: #cfe0d1;
  font-size: 13px;
  border-radius: 8px;
}
.workspace-rail-list button {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #cfe0d1;
  padding: 8px 9px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-rail-list button:hover {
  background: #152420;
}
.workspace-rail-list button.active {
  background: #1c2f26;
  color: #f2fbee;
  font-weight: 600;
}
.workspace-rail-exit {
  margin-top: auto;
  appearance: none;
  border: 1px solid #3a4c42;
  background: transparent;
  color: #b9cabd;
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.workspace-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.workspace-chat-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px clamp(14px, 4vw, 64px);
}
.workspace-message {
  margin: 0;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.55;
  max-width: min(72ch, 88%);
  white-space: pre-wrap;
}
.workspace-message.assistant {
  background: #16261e;
  color: #dcefdd;
  justify-self: start;
}
.workspace-message.user {
  background: #233a2c;
  color: #f2fbee;
  justify-self: end;
  text-align: right;
}
.workspace-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 14px;
}
.workspace-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fc4a6;
  animation: workspace-bounce 1.1s infinite ease-in-out;
}
.workspace-typing span:nth-child(2) {
  animation-delay: .15s;
}
.workspace-typing span:nth-child(3) {
  animation-delay: .3s;
}
@keyframes workspace-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: .5;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
.workspace-composer {
  display: flex;
  gap: 10px;
  padding: 14px clamp(14px, 4vw, 64px) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #1c2b23;
  background: #0b1512;
}
.workspace-composer input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #3a4c42;
  background: #0a1510;
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
}
.workspace-composer .primary {
  flex: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  background: #d7f3c7;
  color: #102019;
  cursor: pointer;
}
.workspace-composer button:disabled {
  opacity: .55;
  cursor: wait;
}
.workspace-app :is(button, input):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .workspace-app {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }
  .workspace-menu-button {
    display: grid;
    place-items: center;
  }
  .workspace-backdrop {
    display: block;
  }
  .workspace-rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(82vw, 300px);
    transform: translateX(-100%);
    transition: transform .22s ease;
    z-index: 20;
    padding-top: 60px;
  }
  .workspace-rail.open {
    transform: translateX(0);
  }
  .workspace-message {
    max-width: 92%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-typing span {
    animation: none;
    opacity: .85;
  }
  .workspace-rail {
    transition: none;
  }
}
