:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #18201b;
  background: #f4f6f3;
  font-synthesis: none;
  --green-950: #12251a;
  --green-900: #183322;
  --green-800: #20502f;
  --green-700: #24663a;
  --green-600: #2f7a48;
  --green-100: #dcebe0;
  --green-50: #eef6f0;
  --ink: #18201b;
  --muted: #6c756f;
  --line: #dfe5e0;
  --surface: #ffffff;
  --canvas: #f7f8f6;
  --app-canvas: #edf4ef;
  --app-surface-soft: #f5f8f5;
  --app-border: #dbe5dd;
  --app-border-strong: #c9d8cc;
  --app-ink: #14271a;
  --app-text: #26352b;
  --app-muted: #6b796f;
  --app-subtle: #8b988f;
  --app-evergreen: #173d28;
  --app-evergreen-hover: #205333;
  --app-evergreen-soft: #e6f1e8;
  --app-danger: #a3473c;
  --app-panel-shadow:
    0 18px 54px rgba(24, 50, 32, 0.07),
    0 2px 8px rgba(24, 50, 32, 0.035);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  background: var(--canvas);
}

button,
textarea {
  font: inherit;
}

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

button:focus-visible,
textarea:focus-visible,
label:has(input:focus-visible) {
  outline: 3px solid rgba(47, 122, 72, 0.22);
  outline-offset: 2px;
}

svg {
  display: block;
}

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

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

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 16px 18px;
  overflow: hidden;
  color: #f6faf7;
  background:
    radial-gradient(circle at 15% -10%, rgba(95, 164, 113, 0.24), transparent 34%),
    linear-gradient(165deg, #1b3524 0%, #11251a 72%);
}

.sidebar::after {
  position: absolute;
  right: -90px;
  bottom: 70px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  content: "";
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 2px 4px 24px;
}

.brand-mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: #9fb5a6;
  font-size: 11px;
}

.new-chat {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #fff;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.new-chat svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.new-chat:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.new-chat:disabled {
  color: #91a096;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.sidebar-label {
  margin: 25px 9px 9px;
  color: #849b8b;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.conversation-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-rows: max-content;
  gap: 4px;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.conversation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px;
  align-items: center;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-right: 6px;
  overflow: hidden;
  border-radius: 15px;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.conversation-row:hover {
  color: var(--app-ink);
  background: var(--app-surface-soft);
}

.conversation-row.active {
  color: var(--app-evergreen);
  background: var(--app-evergreen-soft);
}

.conversation-item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 9px;
  border: 0;
  border-radius: 11px;
  color: #dbe6de;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.conversation-item:hover {
  background: transparent;
}

.conversation-item.active {
  color: inherit;
  background: transparent;
}

.conversation-icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #bdd0c1;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.conversation-row.active .conversation-icon {
  color: #183322;
  background: #dcebe0;
}

.conversation-content {
  flex: 1;
  min-width: 0;
}

.conversation-title-line,
.conversation-content small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-title-line {
  display: flex;
  gap: 6px;
  align-items: center;
}

.conversation-title-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-title-line strong {
  font-size: 13px;
  font-weight: 620;
}

.conversation-content small {
  margin-top: 3px;
  color: #8fa395;
  font-size: 10px;
}

.conversation-delete {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--app-muted);
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition:
    color 150ms ease,
    background 150ms ease,
    opacity 150ms ease;
}

.conversation-row:hover .conversation-delete,
.conversation-delete:focus-visible {
  opacity: 1;
}

.conversation-delete:hover {
  color: #ad3535;
  background: #fff0ee;
}

.conversation-delete:disabled {
  cursor: wait;
  opacity: 0.45;
}

.conversation-delete svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.conversation-deleted-badge {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 999px;
  color: #9c3d3d;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff0ee;
}

@media (hover: none), (pointer: coarse) {
  .conversation-delete {
    opacity: 1;
  }
}

.system-confirm-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--app-border);
  border-radius: 24px;
  color: var(--app-text);
  background: #fff;
  box-shadow: 0 28px 80px rgba(18, 46, 29, 0.22);
}

.system-confirm-dialog::backdrop {
  background: rgba(12, 29, 18, 0.48);
  backdrop-filter: blur(5px);
}

.system-confirm-dialog form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
}

.system-confirm-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--app-evergreen);
  background: var(--app-evergreen-soft);
}

.system-confirm-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-confirm-dialog[data-tone="danger"] .system-confirm-icon {
  color: #a53c35;
  background: #fff0ee;
}

.system-confirm-copy {
  min-width: 0;
}

.system-confirm-copy > p:first-child {
  margin: 1px 0 6px;
  color: var(--app-subtle);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.system-confirm-copy h2 {
  margin: 0;
  color: var(--app-ink);
  font-size: 20px;
  line-height: 1.25;
}

.system-confirm-copy > p:last-child {
  margin: 9px 0 0;
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.55;
}

.system-confirm-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 9px;
  justify-content: flex-end;
  padding-top: 4px;
}

.system-confirm-actions button {
  min-width: 100px;
  padding: 11px 16px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  color: var(--app-text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  background: #fff;
  cursor: pointer;
}

.system-confirm-actions button:hover {
  background: var(--app-surface-soft);
}

#system-confirm-submit {
  border-color: var(--app-evergreen);
  color: #fff;
  background: var(--app-evergreen);
}

#system-confirm-submit:hover {
  background: #173d28;
}

.system-confirm-dialog[data-tone="danger"] #system-confirm-submit {
  border-color: #ac4039;
  background: #ac4039;
}

.system-confirm-dialog[data-tone="danger"] #system-confirm-submit:hover {
  background: #91342e;
}

@media (max-width: 520px) {
  .system-confirm-dialog form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .system-confirm-icon {
    width: 40px;
    height: 40px;
  }

  .system-confirm-actions {
    grid-column: 1;
  }

  .system-confirm-actions button {
    flex: 1;
    min-width: 0;
  }
}

.chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  height: 100vh;
  background:
    radial-gradient(circle at 70% 10%, rgba(225, 237, 227, 0.38), transparent 30%),
    var(--canvas);
}

.chat-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 13px 28px;
  border-bottom: 1px solid rgba(215, 223, 217, 0.88);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.chat-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.015em;
}

.chat-heading p {
  margin: 3px 0 0;
  color: #879089;
  font-size: 10px;
}

.browser-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #dce6de;
  border-radius: 999px;
  color: #55705e;
  background: rgba(247, 251, 248, 0.9);
}

.browser-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7d8a81;
}

.browser-status strong {
  font-size: 10px;
  font-weight: 680;
}

.browser-status[data-status="ready"] span {
  background: #3ba45c;
  box-shadow: 0 0 0 3px rgba(59, 164, 92, 0.12);
}

.browser-status[data-status="answering"] span,
.browser-status[data-status="busy"] span,
.browser-status[data-status="starting"] span {
  background: #d7992f;
  animation: status-pulse 1.3s infinite;
}

.browser-status[data-status="error"],
.browser-status[data-status="login_required"] {
  color: #9f3434;
  border-color: #ecd3d3;
  background: #fff8f8;
}

.browser-status[data-status="error"] span,
.browser-status[data-status="login_required"] span {
  background: #c94e4e;
}

@keyframes status-pulse {
  50% {
    opacity: 0.4;
  }
}

.messages {
  min-height: 0;
  overflow-y: auto;
  padding: 34px max(24px, calc((100% - 850px) / 2)) 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #ccd5ce transparent;
}

.message {
  position: relative;
  width: fit-content;
  max-width: min(78%, 720px);
  margin: 24px 0 34px;
  color: #232b25;
  line-height: 1.62;
  white-space: pre-wrap;
}

.message::before {
  position: absolute;
  top: -20px;
  color: #8a938c;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  content: attr(data-role);
}

.message.user {
  margin-left: auto;
  padding: 12px 15px;
  border: 1px solid #d4e3d7;
  border-radius: 17px 17px 5px 17px;
  background: #e5f0e7;
  box-shadow: 0 5px 15px rgba(30, 79, 44, 0.05);
}

.message.user::before {
  right: 4px;
}

.message.assistant {
  margin-right: auto;
  padding: 15px 17px;
  border: 1px solid #e3e8e4;
  border-radius: 5px 17px 17px 17px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(24, 50, 32, 0.06);
}

.message.assistant.rich {
  width: 100%;
  max-width: 100%;
}

.message.assistant::before {
  left: 4px;
  color: #52745c;
}

.message-text {
  min-width: 24px;
}

.message img {
  display: block;
  max-width: min(100%, 560px);
  margin-top: 10px;
  border: 1px solid #e0e6e1;
  border-radius: 12px;
}

.message img.rich-widget-image {
  width: auto;
  max-width: 100%;
}

.file-card {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  max-width: 100%;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid #d8e1da;
  border-radius: 10px;
  color: #225833;
  text-decoration: none;
  background: #f7faf7;
}

.file-card span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  background: #e0ede3;
}

.file-card strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-error {
  padding: 3px 1px;
  color: #a43838;
  font-size: 13px;
  font-weight: 520;
}

.retry-message {
  margin-top: 11px;
  padding: 7px 12px;
  border: 1px solid #d89b9b;
  border-radius: 9px;
  color: #982e2e;
  font-size: 12px;
  font-weight: 680;
  background: #fff;
  cursor: pointer;
}

.retry-message:hover {
  background: #fff5f5;
}

.retry-message:disabled {
  cursor: wait;
  opacity: 0.55;
}

.message pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 14px;
  border: 1px solid #2e4636;
  border-radius: 11px;
  color: #e9f0eb;
  white-space: pre;
  background: #17251d;
}

.message code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.message-rich {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.65;
  white-space: normal;
}

.message-rich > :first-child {
  margin-top: 0;
}

.message-rich > :last-child {
  margin-bottom: 0;
}

.message-rich h1,
.message-rich h2,
.message-rich h3,
.message-rich h4,
.message-rich h5,
.message-rich h6 {
  margin: 1.35em 0 0.6em;
  color: #1d2a21;
  line-height: 1.28;
}

.message-rich h1,
.message-rich h2 {
  font-size: 20px;
}

.message-rich h3 {
  font-size: 17px;
}

.message-rich h4,
.message-rich h5,
.message-rich h6 {
  font-size: 15px;
}

.message-rich p {
  margin: 0 0 1em;
}

.message-rich strong,
.message-rich b {
  font-weight: 720;
}

.message-rich ul,
.message-rich ol {
  margin: 0.65em 0 1em;
  padding-left: 1.6em;
}

.message-rich li {
  margin: 0.35em 0;
  padding-left: 0.15em;
}

.message-rich blockquote {
  margin: 1em 0;
  padding-left: 14px;
  border-left: 3px solid #b8c9bd;
  color: #526158;
}

.message-rich .math-display {
  display: block;
  max-width: 100%;
  margin: 1.1em 0 1.35em;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
}

.message-rich .math-display .katex-display {
  margin: 0;
}

.message-rich .math-inline {
  display: inline;
}

.message-rich .katex {
  font-size: 1.12em;
}

.message-rich table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1em 0 1.25em;
  overflow-x: auto;
  border-collapse: collapse;
  white-space: nowrap;
}

.message-rich th,
.message-rich td {
  padding: 10px 14px;
  border-bottom: 1px solid #dce4de;
  text-align: left;
}

.message-rich th {
  color: #243129;
  font-weight: 700;
  background: #f5f8f5;
}

.message-rich tbody tr:last-child td {
  border-bottom: 0;
}

.message-rich .source-link {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  margin: 0 2px;
  padding: 2px 8px;
  overflow: hidden;
  border-radius: 999px;
  color: #536158;
  font-size: 10px;
  font-weight: 620;
  line-height: 1.45;
  text-decoration: none;
  text-overflow: ellipsis;
  vertical-align: 0.12em;
  white-space: nowrap;
  background: #e9eeea;
}

.message-rich .source-link:hover {
  color: #245b35;
  background: #dde8e0;
}

.typing {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 34px;
  min-height: 20px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #66806d;
  animation: typing 1.2s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.composer {
  position: relative;
  z-index: 3;
  padding: 10px max(24px, calc((100% - 850px) / 2)) 18px;
  background: linear-gradient(to top, var(--canvas) 72%, rgba(247, 248, 246, 0));
}

.composer[hidden] {
  display: none;
}

.composer-shell {
  overflow: visible;
  border: 1px solid #ccd8cf;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 14px 36px rgba(20, 48, 29, 0.09),
    0 2px 6px rgba(20, 48, 29, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.composer-shell:focus-within {
  border-color: #7da88a;
  box-shadow:
    0 16px 38px rgba(20, 48, 29, 0.11),
    0 0 0 3px rgba(47, 122, 72, 0.09);
}

.composer-row {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  min-height: 62px;
  padding: 9px;
}

.composer textarea {
  flex: 1;
  align-self: center;
  min-width: 0;
  min-height: 28px;
  max-height: 168px;
  padding: 4px 5px;
  overflow-y: hidden;
  resize: none;
  border: 0;
  outline: 0;
  color: #202722;
  line-height: 1.45;
  background: transparent;
}

.composer textarea::placeholder {
  color: #929a94;
}

.intelligence-control {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
}

.intelligence-trigger {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 34px;
  padding: 0 10px 0 11px;
  border: 1px solid #d7e1d9;
  border-radius: 999px;
  color: #3f5746;
  font-size: 11px;
  font-weight: 690;
  line-height: 1;
  background: #f4f8f4;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.intelligence-trigger:hover:not(:disabled),
.intelligence-trigger[aria-expanded="true"] {
  border-color: #9fb9a6;
  color: #215c34;
  background: #eaf3ec;
}

.intelligence-trigger:disabled {
  color: #89948c;
  background: #f3f5f3;
  cursor: not-allowed;
}

.intelligence-trigger svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 150ms ease;
}

.intelligence-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.intelligence-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  z-index: 8;
  min-width: 176px;
  padding: 5px;
  border: 1px solid #d8e2da;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 48, 29, 0.16), 0 2px 8px rgba(20, 48, 29, 0.07);
}

.intelligence-menu[hidden] {
  display: none;
}

.intelligence-option {
  display: flex;
  width: 100%;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  color: #334c3a;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.intelligence-option:hover,
.intelligence-option:focus-visible {
  color: #1e5932;
  background: #eff6f0;
  outline: 0;
}

.intelligence-option-copy {
  display: flex;
  gap: 7px;
  align-items: baseline;
}

.intelligence-option-label {
  font-size: 12px;
  font-weight: 690;
}

.intelligence-option-detail {
  color: #78857c;
  font-size: 10px;
  font-weight: 650;
}

.intelligence-option-check {
  width: 16px;
  color: var(--green-600);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
}

.intelligence-option[aria-checked="true"] .intelligence-option-check {
  opacity: 1;
}

.intelligence-control[data-status="applying"] .intelligence-trigger {
  opacity: 0.68;
}

.intelligence-control[data-status="applying"] .intelligence-trigger::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d7992f;
  animation: status-pulse 1.3s infinite;
  content: "";
}

.intelligence-control[data-status="error"] .intelligence-trigger {
  border-color: #e1b4b4;
  color: #9f3434;
  background: #fff8f8;
}

.intelligence-status {
  min-height: 0;
  margin: 0;
  padding: 0 12px;
  color: #9f3434;
  font-size: 10px;
  line-height: 1.35;
}

.intelligence-status:not(:empty) {
  padding-bottom: 8px;
}

.attach-button,
#send-button {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  transition:
    color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.attach-button {
  color: #4e6154;
  background: #edf2ee;
}

.attach-button:hover {
  color: #235c34;
  background: #e2ebe4;
  transform: translateY(-1px);
}

.attach-button input {
  display: none;
}

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

#send-button {
  display: flex;
  flex-basis: auto;
  gap: 7px;
  width: auto;
  min-width: 84px;
  padding: 0 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 720;
  background: var(--green-700);
  box-shadow: 0 5px 12px rgba(34, 102, 58, 0.2);
}

#send-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

#send-button:not(:disabled):hover {
  background: var(--green-800);
  transform: translateY(-1px);
}

#send-button:disabled {
  color: #929c95;
  background: #e7ebe8;
  box-shadow: none;
  cursor: not-allowed;
}

.selected-files {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 9px 10px 0;
}

.selected-files:empty {
  display: none;
}

.selected-file {
  display: flex;
  gap: 7px;
  align-items: center;
  max-width: 230px;
  padding: 5px 6px 5px 7px;
  border: 1px solid #dce4de;
  border-radius: 9px;
  color: #465049;
  font-size: 10px;
  background: #f4f7f4;
}

.selected-file-icon {
  color: #2f6f42;
  font-size: 8px;
  font-weight: 800;
}

.selected-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file button {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #747d76;
  font-size: 15px;
  line-height: 1;
  background: transparent;
  cursor: pointer;
}

.selected-file button:hover {
  color: #9d3030;
  background: #f8e8e8;
}

.composer-hint {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 7px 0 0;
  color: #959d97;
  font-size: 9px;
}

.composer-hint span + span::before {
  margin-right: 16px;
  content: "•";
}

.empty-state {
  display: grid;
  max-width: 410px;
  min-height: 100%;
  margin: 0 auto;
  place-content: center;
  justify-items: center;
  padding: 60px 20px;
  color: #737d76;
  text-align: center;
}

.empty-state.compact {
  min-height: 72%;
}

.empty-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(22, 74, 42, 0.16);
}

.empty-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-state h2 {
  margin: 0;
  color: #273129;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.empty-state p {
  margin: 8px 0 0;
  color: #7d877f;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100dvh;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand {
    margin: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand small,
  .sidebar-label {
    display: none;
  }

  .new-chat {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }

  .new-chat span {
    display: none;
  }

  .conversation-list {
    display: flex;
    grid-column: 1 / -1;
    gap: 5px;
    overflow-x: auto;
  }

  .conversation-item {
    flex: 0 0 auto;
    width: auto;
    max-width: 180px;
    padding: 7px 9px;
    background: rgba(255, 255, 255, 0.06);
  }

  .conversation-icon,
  .conversation-content small {
    display: none;
  }

  .chat {
    height: calc(100dvh - 104px);
  }

  .chat-header {
    min-height: 60px;
    padding: 10px 15px;
  }

  .chat-heading p {
    display: none;
  }

  .browser-status strong {
    display: none;
  }

  .browser-status {
    padding: 8px;
  }

  .messages {
    padding: 30px 14px 16px;
  }

  .message {
    max-width: 90%;
  }

  .composer {
    padding: 8px 12px 12px;
  }

  .composer-hint {
    display: none;
  }

  #send-button {
    min-width: 44px;
    padding: 0;
  }

  #send-button span {
    display: none;
  }

  .intelligence-trigger {
    min-width: 35px;
    padding: 0 9px;
  }

  .intelligence-menu {
    right: -44px;
  }
}

/* Editorial-light signed-in workspace */

#app-shell {
&.app-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 12px;
  height: 100vh;
  min-height: 100vh;
  padding: 12px;
  background:
    radial-gradient(circle at 8% 5%, rgba(78, 143, 97, 0.1), transparent 25%),
    radial-gradient(circle at 92% 92%, rgba(58, 116, 77, 0.07), transparent 28%),
    var(--app-canvas);
}

.sidebar,
.chat,
.admin-view {
  border: 1px solid var(--app-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--app-panel-shadow);
}

.sidebar {
  padding: 24px 18px 18px;
  color: var(--app-text);
}

.sidebar::after {
  right: -110px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-color: rgba(31, 91, 52, 0.055);
}

.brand {
  margin: 0 4px 26px;
}

.brand-mark {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--app-border);
  box-shadow: 0 8px 22px rgba(23, 61, 40, 0.16);
}

.brand strong {
  color: var(--app-ink);
  font-weight: 720;
}

.brand small {
  color: var(--app-muted);
}

.new-chat {
  justify-content: center;
  min-height: 46px;
  border-color: var(--app-evergreen);
  color: #fff;
  background: var(--app-evergreen);
  box-shadow: 0 10px 24px rgba(23, 61, 40, 0.15);
}

.new-chat:hover {
  background: var(--app-evergreen-hover);
  box-shadow: 0 12px 28px rgba(23, 61, 40, 0.18);
}

.new-chat:disabled {
  color: #8d9990;
  border-color: var(--app-border);
  background: #eef2ef;
}

.workspace-tabs {
  margin: 16px 0 0;
  border: 1px solid var(--app-border);
  background: var(--app-surface-soft);
}

.workspace-tab {
  color: var(--app-muted);
}

.workspace-tab:hover {
  color: var(--app-evergreen);
  background: rgba(255, 255, 255, 0.7);
}

.workspace-tab.active {
  color: var(--app-evergreen);
  background: #fff;
  box-shadow:
    0 2px 7px rgba(24, 50, 32, 0.07),
    inset 0 0 0 1px rgba(201, 216, 204, 0.5);
}

.conversation-scope label > span,
.sidebar-label {
  color: var(--app-subtle);
}

.conversation-scope select {
  min-height: 40px;
  padding: 10px 34px 10px 12px;
  border-color: var(--app-border);
  color: var(--app-text);
  font-size: 13px;
  appearance: none;
  background:
    #f8faf8
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326352b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")
    right 9px center / 16px no-repeat;
  outline: 0;
}

.conversation-scope select:focus {
  border-color: #7da88a;
  box-shadow: 0 0 0 3px rgba(47, 122, 72, 0.1);
}

.conversation-list {
  scrollbar-color: #c8d5cb transparent;
}

.conversation-item {
  color: inherit;
}

.conversation-item:hover {
  color: inherit;
  background: transparent;
}

.conversation-row.active {
  color: var(--app-evergreen);
  background: var(--app-evergreen-soft);
}

.conversation-icon {
  color: var(--app-subtle);
  border: 1px solid var(--app-border);
  background: var(--app-surface-soft);
}

.conversation-row.active .conversation-icon {
  color: var(--app-evergreen);
  border-color: var(--app-border-strong);
  background: #fff;
}

.conversation-content small {
  color: var(--app-muted);
}

.account-card {
  gap: 14px;
  margin-top: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 14px;
  background: var(--app-surface-soft);
}

.account-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--app-border);
}

.account-card img,
.account-initial {
  width: 38px;
  height: 38px;
  color: var(--app-evergreen);
  border: 1px solid var(--app-border-strong);
  background: var(--app-evergreen-soft);
}

.account-copy strong {
  font-size: 13px;
}

.account-copy small {
  font-size: 11px;
}

.account-copy strong {
  color: var(--app-ink);
}

.account-copy small {
  color: var(--app-muted);
}

.account-card button {
  color: var(--app-danger);
  font-size: 11px;
  font-weight: 700;
}

.account-card button:hover {
  text-decoration: underline;
}

.chat {
  position: relative;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 8%, rgba(230, 241, 232, 0.52), transparent 28%),
    #fff;
}

.attachment-dropzone {
  position: absolute;
  inset: 90px 24px 116px;
  z-index: 12;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 2px dashed #6e9d7c;
  border-radius: 22px;
  color: var(--app-evergreen);
  text-align: center;
  background: rgba(244, 249, 245, 0.95);
  box-shadow: 0 20px 60px rgba(23, 61, 40, 0.12);
  pointer-events: none;
  backdrop-filter: blur(7px);
}

.attachment-dropzone[hidden] {
  display: none;
}

.attachment-dropzone-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: var(--app-evergreen);
  box-shadow: 0 10px 24px rgba(23, 61, 40, 0.2);
}

.attachment-dropzone-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attachment-dropzone strong {
  font-size: 20px;
}

.attachment-dropzone small {
  margin-top: 6px;
  color: var(--app-muted);
  font-size: 13px;
}

.chat.files-dragging .composer-shell {
  border-color: #6e9d7c;
}

.chat-header {
  min-height: 72px;
  border-bottom-color: var(--app-border);
  background: rgba(255, 255, 255, 0.86);
}

.chat-heading h1 {
  color: var(--app-ink);
}

.chat-heading p {
  color: var(--app-muted);
  font-weight: 600;
  letter-spacing: 0.035em;
}

.browser-status {
  border-color: var(--app-border);
  color: var(--app-text);
  background: #f8faf8;
}

.messages {
  scrollbar-color: #c8d5cb transparent;
}

.message {
  color: var(--app-text);
}

.message::before {
  color: var(--app-subtle);
}

.message.user {
  color: #fff;
  border-color: var(--app-evergreen);
  background: var(--app-evergreen);
  box-shadow: 0 10px 28px rgba(23, 61, 40, 0.14);
}

.message.user::before {
  color: var(--app-muted);
}

.message.assistant {
  border-color: var(--app-border);
  color: var(--app-text);
  background: var(--app-surface-soft);
  box-shadow: 0 8px 26px rgba(24, 50, 32, 0.055);
}

.message.assistant::before {
  color: #4f765a;
}

.message.user .file-card {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.message.user .file-card span {
  color: var(--app-evergreen);
  background: #fff;
}

.message img,
.file-card,
.message-rich th,
.message-rich td {
  border-color: var(--app-border);
}

.message-rich h1,
.message-rich h2,
.message-rich h3,
.message-rich h4,
.message-rich h5,
.message-rich h6 {
  color: var(--app-ink);
}

.message-rich blockquote {
  border-left-color: var(--app-border-strong);
  color: #526158;
}

.message-rich th {
  color: var(--app-ink);
  background: var(--app-surface-soft);
}

.message-rich .source-link {
  color: #526158;
  background: #e9efea;
}

.message-rich .source-link:hover {
  color: var(--app-evergreen);
  background: var(--app-evergreen-soft);
}

.composer {
  background: linear-gradient(to top, #fff 72%, rgba(255, 255, 255, 0));
}

.composer-shell {
  padding: 8px;
  border-color: var(--app-border-strong);
  background: #fff;
}

.composer-row {
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 0;
}

.composer-shell:focus-within {
  border-color: #6f9e7d;
  box-shadow:
    0 16px 38px rgba(20, 48, 29, 0.1),
    0 0 0 3px rgba(47, 122, 72, 0.1);
}

.composer textarea {
  min-height: 40px;
  padding: 9px 4px;
  color: var(--app-ink);
  font-size: 16px;
  line-height: 1.55;
}

.composer textarea::placeholder {
  color: var(--app-subtle);
}

.attach-button {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  color: var(--app-muted);
  background: transparent;
}

.attach-button:hover {
  color: var(--app-evergreen);
  background: transparent;
}

.attach-button svg {
  width: 22px;
}

.intelligence-trigger {
  min-width: 100px;
  min-height: 42px;
  padding-inline: 15px;
  border-color: var(--app-border);
  color: var(--app-text);
  font-size: 12px;
  background: #f8faf8;
}

.intelligence-trigger:hover:not(:disabled),
.intelligence-trigger[aria-expanded="true"] {
  border-color: var(--app-border-strong);
  color: var(--app-evergreen);
  background: var(--app-evergreen-soft);
}

.intelligence-menu {
  border-color: var(--app-border);
  box-shadow: 0 16px 42px rgba(20, 48, 29, 0.14);
}

.intelligence-option {
  color: var(--app-text);
}

.intelligence-option:hover,
.intelligence-option:focus-visible {
  color: var(--app-evergreen);
  background: var(--app-evergreen-soft);
}

#send-button {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border-radius: 12px;
  background: var(--app-evergreen);
  box-shadow: 0 7px 16px rgba(23, 61, 40, 0.2);
}

#send-button svg {
  width: 22px;
}

#send-button:not(:disabled):hover {
  background: var(--app-evergreen-hover);
}

#send-button:disabled {
  color: rgba(255, 255, 255, 0.68);
  background: var(--app-evergreen);
}

.selected-file {
  position: relative;
  min-width: 180px;
  max-width: 260px;
  min-height: 56px;
  padding: 6px 34px 6px 6px;
  border-color: var(--app-border);
  color: var(--app-text);
  background: var(--app-surface-soft);
}

.selected-file-preview {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  color: var(--app-evergreen);
  background: #e7efe9;
}

.selected-file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-file-preview svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.selected-file-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.selected-file-copy small {
  color: var(--app-subtle);
  font-size: 9px;
}

.selected-file button {
  position: absolute;
  top: 7px;
  right: 7px;
}

@media (max-width: 620px) {
  .attachment-dropzone {
    inset: 82px 12px 110px;
  }

  .attachment-dropzone small {
    max-width: 240px;
  }

  .selected-file {
    min-width: min(180px, 100%);
    max-width: 100%;
  }
}

.composer-hint {
  display: block;
  margin-top: 12px;
  color: var(--app-subtle);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.empty-state {
  color: var(--app-muted);
}

.empty-state h2 {
  color: var(--app-ink);
}

.empty-icon {
  border: 1px solid var(--app-border);
  box-shadow: 0 12px 30px rgba(22, 74, 42, 0.14);
}

.admin-view {
  height: 100%;
  padding: 40px clamp(28px, 4vw, 56px);
  color: var(--app-text);
  background:
    radial-gradient(circle at 80% 8%, rgba(230, 241, 232, 0.56), transparent 29%),
    var(--app-canvas);
}

.admin-header {
  max-width: 1240px;
  margin: 0 auto 32px;
}

.admin-header .admin-eyebrow {
  margin-bottom: 9px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.admin-header h1 {
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.admin-header h1,
.admin-card h2 {
  color: var(--app-ink);
}

.admin-header > div > p:last-child {
  max-width: 660px;
  margin-top: 12px;
  color: var(--app-muted);
  font-size: 15px;
  line-height: 1.55;
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
  max-width: 1240px;
}

.admin-card {
  padding: 28px;
  border-color: var(--app-border);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(24, 50, 32, 0.06);
}

.admin-card-heading {
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--app-border);
}

.admin-card-heading .admin-eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
}

.admin-card h2 {
  font-size: 20px;
  letter-spacing: -0.025em;
}

.access-card .add-user-form {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: var(--app-surface-soft);
}

.add-user-form > label,
.browser-details dt {
  color: var(--app-muted);
}

.add-user-form > label {
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.add-user-form > div {
  gap: 10px;
}

.add-user-form input {
  min-height: 46px;
  padding: 11px 14px;
  border-color: var(--app-border);
  border-radius: 12px;
  color: var(--app-ink);
  font-size: 14px;
  background: #f8faf8;
  outline: 0;
}

.add-user-form input:focus {
  border-color: #78a386;
  box-shadow: 0 0 0 3px rgba(47, 122, 72, 0.09);
}

.add-user-form button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  color: #fff;
  border-color: var(--app-evergreen);
  font-size: 13px;
  background: var(--app-evergreen);
}

.add-user-form button:hover {
  background: var(--app-evergreen-hover);
}

.browser-actions button,
.admin-user-actions button {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 11px;
  border-color: var(--app-border);
  color: var(--app-evergreen);
  font-size: 11px;
  background: var(--app-evergreen-soft);
}

.browser-actions button:hover,
.admin-user-actions button:hover {
  border-color: var(--app-border-strong);
  background: #dfece2;
}

.admin-user {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-color: var(--app-border);
  border-radius: 16px;
  background: #f9fbf9;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.admin-user:hover {
  border-color: var(--app-border-strong);
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 50, 32, 0.055);
}

.admin-user-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--app-border-strong);
  border-radius: 13px;
  color: var(--app-evergreen);
  font-size: 15px;
  font-weight: 800;
  background: var(--app-evergreen-soft);
}

.admin-user-identity strong {
  color: var(--app-ink);
  font-size: 15px;
}

.admin-user-identity span {
  color: #526158;
  font-size: 13px;
}

.admin-user-identity small {
  color: var(--app-subtle);
  font-size: 10px;
}

.admin-user-badges {
  gap: 6px;
}

.admin-user-actions {
  grid-column: 2 / -1;
  gap: 8px;
}

.admin-badge {
  padding: 5px 8px;
  border-radius: 8px;
  color: #59665d;
  font-size: 9px;
  letter-spacing: 0.035em;
  background: #edf1ee;
}

.admin-badge.active,
.admin-badge[data-status="ready"] {
  color: var(--green-700);
  background: var(--app-evergreen-soft);
}

.admin-user-actions button.danger,
.browser-actions button.danger {
  color: var(--app-danger);
  border-color: #ecd4d1;
  background: #fff6f5;
}

.admin-user-actions button.danger:hover,
.browser-actions button.danger:hover {
  background: #fbe9e7;
}

.browser-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: var(--app-surface-soft);
}

.browser-status-card .browser-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.browser-status-card .browser-details > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #e8eee9;
  border-radius: 0;
  background: transparent;
}

.browser-status-card .browser-details > div:last-child {
  border-bottom: 0;
}

.browser-status-card .browser-details dd {
  margin-top: 0;
  text-align: right;
}

.browser-details > div {
  display: block;
  min-width: 0;
  padding: 10px;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
}

.browser-details dt {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.browser-details dd {
  margin-top: 6px;
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.cookie-session-form {
  margin: 0 0 22px;
  padding: 20px;
  border-color: var(--app-border);
  border-radius: 16px;
  background: #f8faf8;
}

.session-card .cookie-session-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.session-card .cookie-session-heading label {
  font-size: 16px;
}

.cookie-session-heading label {
  color: var(--app-ink);
  font-size: 13px;
}

.cookie-session-heading p {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.55;
}

.cookie-session-picker {
  gap: 10px;
  margin-top: 14px;
}

.cookie-session-picker input {
  min-height: 44px;
  padding: 9px;
  border-color: var(--app-border);
  border-radius: 11px;
  font-size: 11px;
}

.cookie-session-picker button {
  min-height: 44px;
  padding: 0 15px;
  border-color: var(--app-border);
  border-radius: 11px;
  color: var(--app-evergreen);
  font-size: 11px;
  background: var(--app-evergreen-soft);
}

.cookie-session-details {
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--app-border);
}

.cookie-session-details dt {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.055em;
}

.cookie-session-details dd {
  margin-top: 5px;
  color: var(--app-ink);
  font-size: 11px;
  font-weight: 650;
}

.browser-actions {
  gap: 9px;
}

.capture-card .admin-card-heading > button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--app-evergreen);
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  background: var(--app-evergreen);
  cursor: pointer;
}

.capture-card .admin-card-heading > button:hover {
  border-color: var(--app-evergreen-hover);
  background: var(--app-evergreen-hover);
}

.admin-message {
  margin-top: 9px;
  font-size: 11px;
}

.browser-preview {
  margin: 0;
  border-color: var(--app-border);
  border-radius: 16px;
  background: #fcfdfc;
  box-shadow: 0 8px 26px rgba(24, 50, 32, 0.08);
}

.browser-preview > div {
  gap: 12px;
  min-height: 0;
  aspect-ratio: 16 / 10;
  color: var(--app-subtle);
  font-size: 13px;
}

.browser-preview > div svg {
  width: 42px;
  fill: none;
  stroke: var(--app-border-strong);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.browser-preview > div strong {
  font-weight: 650;
}

.browser-preview img {
  max-height: 520px;
  background: #fff;
}

.browser-preview figcaption {
  padding: 12px 15px;
  color: #c5d1c8;
  font-size: 10px;
  background: var(--app-evergreen);
}

.capture-card {
  grid-column: 1;
}

.session-card {
  grid-column: 2;
}

.new-chat:focus-visible,
.workspace-tab:focus-visible,
.conversation-item:focus-visible,
.account-card button:focus-visible,
.conversation-scope select:focus-visible,
.add-user-form input:focus-visible,
.add-user-form button:focus-visible,
.browser-actions button:focus-visible,
.admin-user-actions button:focus-visible,
.capture-card .admin-card-heading > button:focus-visible,
.cookie-session-picker input:focus-visible,
.cookie-session-picker button:focus-visible,
.attach-button:focus-visible,
.intelligence-trigger:focus-visible,
#send-button:focus-visible {
  outline: 3px solid rgba(47, 122, 72, 0.2);
  outline-offset: 2px;
}

@media (max-width: 1050px) {
  &.app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 14px;
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .capture-card,
  .session-card {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  &.app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    height: auto;
    min-height: 100dvh;
    padding: 0;
    background: #fff;
  }

  .sidebar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px 12px 8px;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
  }

  .sidebar::after {
    display: none;
  }

  .brand {
    grid-column: 1;
    margin: 0;
  }

  .brand > span:last-child {
    display: none;
  }

  .brand-mark {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .workspace-tabs {
    grid-column: 2;
    margin: 0;
  }

  .new-chat {
    grid-column: 3;
    grid-row: 1;
  }

  .account-card {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 5px;
  }

  .account-footer {
    grid-column: 4;
    grid-row: 1;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .account-copy,
  .account-card img,
  .account-initial {
    display: none;
  }

  .account-card button {
    min-height: 32px;
    padding: 0 5px;
  }

  .conversation-scope {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .conversation-list {
    grid-column: 1 / -1;
    gap: 6px;
    padding-top: 2px;
  }

  .conversation-item {
    border: 1px solid var(--app-border);
    color: var(--app-text);
    background: #fff;
  }

  .conversation-item.active {
    color: var(--app-evergreen);
    border-color: var(--app-border-strong);
    background: var(--app-evergreen-soft);
  }

  .chat,
  .admin-view {
    height: calc(100dvh - 108px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .chat {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-view {
    min-height: calc(100dvh - 108px);
    padding: 26px 14px 40px;
  }

  .admin-header {
    margin-bottom: 24px;
  }

  .admin-header h1 {
    font-size: 27px;
  }

  .admin-header > div > p:last-child {
    font-size: 13px;
  }

  .admin-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .admin-card-heading {
    margin-bottom: 18px;
  }

  .admin-card h2 {
    font-size: 18px;
  }

  .access-card .add-user-form,
  .cookie-session-form {
    padding: 16px;
  }

  .admin-user {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-user-badges,
  .admin-user-actions {
    grid-column: 2;
  }

  .browser-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .browser-preview > div {
    aspect-ratio: auto;
    min-height: 220px;
  }

  .chat-header {
    padding-inline: 16px;
  }

  .message.user {
    max-width: 92%;
  }

  .messages,
  .composer,
  .composer-shell {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .composer-row {
    gap: 6px;
  }

  .attach-button {
    flex-basis: 36px;
    width: 36px;
    height: 40px;
  }

  .intelligence-trigger {
    min-width: 88px;
    padding-inline: 11px;
  }

  #send-button {
    flex-basis: 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
}
}

.mobile-topbar,
.drawer-close,
.drawer-backdrop {
  display: none;
}

@media (max-width: 760px) {
  #app-shell.app-shell {
    grid-template-rows: 64px minmax(0, 1fr);
  }

  #app-shell .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 0;
    height: 64px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
  }

  #app-shell .mobile-icon-button,
  #app-shell .mobile-account-trigger {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--app-border);
    border-radius: 13px;
    color: var(--app-evergreen);
    background: var(--app-surface-soft);
    cursor: pointer;
  }

  #app-shell .mobile-icon-button svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
  }

  #app-shell .mobile-icon-button:disabled {
    color: var(--app-subtle);
    cursor: not-allowed;
    opacity: 0.55;
  }

  #app-shell .mobile-brand {
    display: flex;
    gap: 9px;
    align-items: center;
    min-width: 0;
  }

  #app-shell .mobile-brand img {
    width: 34px;
    height: 34px;
    border: 1px solid var(--app-border);
    border-radius: 11px;
    box-shadow: 0 6px 18px rgba(23, 61, 40, 0.13);
  }

  #app-shell .mobile-brand strong {
    overflow: hidden;
    color: var(--app-ink);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #app-shell .mobile-account {
    position: relative;
  }

  #app-shell .mobile-account-trigger {
    overflow: hidden;
    color: var(--app-evergreen);
    font-size: 13px;
    font-weight: 800;
    background: var(--app-evergreen-soft);
  }

  #app-shell .mobile-account-trigger img,
  #app-shell .mobile-account-trigger span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    object-fit: cover;
  }

  #app-shell .account-menu {
    position: absolute;
    top: 50px;
    right: 0;
    z-index: 80;
    width: min(278px, calc(100vw - 24px));
    padding: 8px;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(20, 48, 29, 0.18);
  }

  #app-shell .account-menu-profile {
    padding: 10px 11px 12px;
    border-bottom: 1px solid var(--app-border);
  }

  #app-shell .account-menu-profile strong,
  #app-shell .account-menu-profile small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #app-shell .account-menu-profile strong {
    color: var(--app-ink);
    font-size: 13px;
  }

  #app-shell .account-menu-profile small {
    margin-top: 4px;
    color: var(--app-muted);
    font-size: 10px;
  }

  #app-shell .account-menu > button {
    display: flex;
    gap: 9px;
    align-items: center;
    width: 100%;
    margin-top: 6px;
    padding: 10px 11px;
    border: 0;
    border-radius: 10px;
    color: var(--app-danger);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    background: transparent;
    cursor: pointer;
  }

  #app-shell .account-menu > button:hover {
    background: #fff4f2;
  }

  #app-shell .account-menu > button svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  #app-shell .drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(14, 31, 20, 0.36);
    backdrop-filter: blur(2px);
  }

  #app-shell .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    display: flex;
    width: min(340px, 88vw);
    height: 100dvh;
    padding: 22px 18px 18px;
    overflow: hidden;
    border-width: 0 1px 0 0;
    border-radius: 0 24px 24px 0;
    box-shadow: 18px 0 54px rgba(20, 48, 29, 0.18);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  #app-shell.drawer-open .sidebar {
    transform: translateX(0);
  }

  #app-shell .drawer-close {
    position: absolute;
    top: 18px;
    right: 16px;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    color: var(--app-muted);
    background: var(--app-surface-soft);
    cursor: pointer;
  }

  #app-shell .drawer-close svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
  }

  #app-shell .sidebar .brand {
    display: flex;
    justify-content: flex-start;
    margin: 0 48px 24px 2px;
    text-align: left;
  }

  #app-shell .sidebar .brand > span:last-child {
    display: block;
  }

  #app-shell .sidebar .new-chat {
    display: none;
  }

  #app-shell .sidebar .workspace-tabs {
    grid-column: auto;
    width: 100%;
    margin-top: 14px;
  }

  #app-shell .sidebar .conversation-scope {
    grid-column: auto;
    width: 100%;
    margin-top: 14px;
  }

  #app-shell .sidebar .sidebar-label {
    display: block;
    justify-self: start;
    width: 100%;
    margin-top: 24px;
    text-align: left;
  }

  #app-shell .sidebar .conversation-list {
    display: grid;
    grid-column: auto;
    grid-auto-rows: max-content;
    gap: 5px;
    align-content: start;
    align-items: stretch;
    width: 100%;
    padding-top: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  #app-shell .sidebar .conversation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    flex: 0 0 100%;
    min-width: 0;
    justify-self: stretch;
    width: 100% !important;
    max-width: none;
    background: var(--app-evergreen-soft);
  }

  #app-shell .sidebar .conversation-item {
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    padding: 9px;
    border: 0;
    text-align: left;
    background: transparent;
  }

  #app-shell .sidebar .conversation-icon,
  #app-shell .sidebar .conversation-content small {
    display: grid;
  }

  #app-shell .sidebar .conversation-content small {
    display: block;
  }

  #app-shell .sidebar .account-footer {
    display: none;
  }

  #app-shell .sidebar .conversation-delete {
    opacity: 1;
  }

  #app-shell .chat,
  #app-shell .admin-view {
    height: calc(100dvh - 64px);
    min-height: calc(100dvh - 64px);
  }
}

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

[hidden] {
  display: none !important;
}

.auth-view {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  padding: 20px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(76, 143, 96, 0.2), transparent 31%),
    radial-gradient(circle at 84% 84%, rgba(50, 111, 72, 0.12), transparent 32%),
    linear-gradient(145deg, #f7faf7 0%, #eaf3ec 52%, #dce9df 100%);
}

.auth-view::before,
.auth-view::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(33, 91, 54, 0.08);
  border-radius: 50%;
  content: "";
}

.auth-view::before {
  top: -240px;
  left: -160px;
  width: 520px;
  height: 520px;
}

.auth-view::after {
  right: -190px;
  bottom: -270px;
  width: 600px;
  height: 600px;
}

.auth-card {
  width: min(560px, 100%);
  padding: 52px 54px 48px;
  border: 1px solid rgba(32, 83, 49, 0.11);
  border-radius: 28px;
  color: #183122;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 32px 90px rgba(29, 76, 44, 0.14),
    0 2px 8px rgba(29, 76, 44, 0.05);
  backdrop-filter: blur(20px);
  animation: auth-card-in 460ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.auth-mark {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow:
    0 14px 32px rgba(19, 74, 42, 0.2),
    0 0 0 1px rgba(19, 74, 42, 0.08);
}

.auth-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-eyebrow,
.admin-eyebrow {
  margin: 0 0 8px;
  color: #4f8661;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 0;
  color: #14271a;
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.auth-card p:not(.auth-eyebrow) {
  max-width: 360px;
  margin: 16px auto 30px;
  color: #68776c;
  font-size: 15px;
  line-height: 1.65;
}

.google-sign-in {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid #173d28;
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  background: #173d28;
  box-shadow: 0 12px 24px rgba(23, 61, 40, 0.16);
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.google-logo {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.google-logo svg {
  width: 16px;
  height: 16px;
}

.google-sign-in:hover {
  color: #173d28;
  background: #fff;
  box-shadow: 0 14px 30px rgba(23, 61, 40, 0.13);
  transform: translateY(-1px);
}

.google-sign-in:focus-visible {
  outline: 3px solid rgba(47, 124, 73, 0.28);
  outline-offset: 4px;
}

@keyframes auth-card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.workspace-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 14px 0 0;
  padding: 4px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.13);
}

.workspace-tab {
  padding: 8px;
  border: 0;
  border-radius: 8px;
  color: #95aa9b;
  font-size: 11px;
  font-weight: 750;
  background: transparent;
  cursor: pointer;
}

.workspace-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.conversation-scope {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.conversation-scope label {
  display: grid;
  gap: 4px;
}

.conversation-scope label > span {
  color: #849b8b;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.conversation-scope select {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: #eef5f0;
  font-size: 11px;
  background: #183322;
}

.conversation-list {
  flex: 1;
}

.account-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.account-card img,
.account-initial {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  object-fit: cover;
  color: #183322;
  font-size: 11px;
  font-weight: 800;
  background: #dcebe0;
}

.account-copy {
  min-width: 0;
}

.account-copy strong,
.account-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  font-size: 11px;
}

.account-copy small {
  margin-top: 2px;
  color: #91a497;
  font-size: 9px;
}

.account-card button {
  padding: 5px;
  border: 0;
  color: #afc1b4;
  font-size: 9px;
  background: transparent;
  cursor: pointer;
}

.admin-view {
  min-width: 0;
  height: 100vh;
  padding: 34px;
  overflow-y: auto;
  background: var(--canvas);
}

.admin-header {
  max-width: 1180px;
  margin: 0 auto 24px;
}

.admin-header h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.025em;
}

.admin-header > div > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(460px, 1.1fr) minmax(360px, 0.9fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.admin-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(24, 50, 32, 0.06);
}

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

.admin-card h2 {
  margin: 0;
  font-size: 17px;
}

.add-user-form {
  margin: 20px 0;
}

.add-user-form > label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.add-user-form > div {
  display: flex;
  gap: 8px;
}

.add-user-form input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.add-user-form button,
.browser-actions button,
.admin-user-actions button {
  padding: 9px 11px;
  border: 1px solid #d5e1d7;
  border-radius: 9px;
  color: #245b35;
  font-size: 10px;
  font-weight: 750;
  background: #eef6f0;
  cursor: pointer;
}

.admin-user-list {
  display: grid;
  gap: 8px;
  max-height: 540px;
  overflow-y: auto;
}

.admin-user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5ebe6;
  border-radius: 12px;
  background: #fbfcfb;
}

.admin-user.inactive {
  opacity: 0.68;
}

.admin-user-identity {
  min-width: 0;
}

.admin-user-identity strong,
.admin-user-identity span,
.admin-user-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-identity strong {
  font-size: 12px;
}

.admin-user-identity span {
  margin-top: 2px;
  color: #526158;
  font-size: 11px;
}

.admin-user-identity small {
  margin-top: 5px;
  color: #929b95;
  font-size: 9px;
}

.admin-user-badges {
  display: flex;
  gap: 5px;
  align-items: flex-start;
}

.admin-badge {
  padding: 4px 7px;
  border-radius: 999px;
  color: #59665d;
  font-size: 9px;
  font-weight: 800;
  text-transform: capitalize;
  background: #edf1ee;
}

.admin-badge.active,
.admin-badge[data-status="ready"] {
  color: #24663a;
  background: #e1f1e5;
}

.admin-badge.inactive,
.admin-badge[data-status="error"],
.admin-badge[data-status="login_required"] {
  color: #9f3434;
  background: #fae8e8;
}

.admin-user-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 7px;
}

.admin-user-actions button.danger,
.browser-actions button.danger {
  color: #9f3434;
  border-color: #efd5d5;
  background: #fff5f5;
}

.admin-user-actions button:disabled,
.browser-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.admin-message {
  min-height: 16px;
  margin: 7px 0 0;
  color: #4d6d57;
  font-size: 10px;
}

.admin-message[data-error="true"] {
  color: #af3f3f;
}

.browser-details {
  display: grid;
  gap: 0;
  margin: 18px 0;
}

.browser-details > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #edf0ed;
}

.browser-details dt {
  color: var(--muted);
  font-size: 10px;
}

.browser-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 10px;
}

.browser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cookie-session-form {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #dde7df;
  border-radius: 13px;
  background: #f8faf8;
}

.cookie-session-heading label {
  color: #26382c;
  font-size: 11px;
  font-weight: 800;
}

.cookie-session-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.cookie-session-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 11px;
}

.cookie-session-picker input {
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #4c5c51;
  font-size: 9px;
  background: #fff;
}

.cookie-session-picker button {
  padding: 9px 11px;
  border: 1px solid #d5e1d7;
  border-radius: 9px;
  color: #245b35;
  font-size: 10px;
  font-weight: 750;
  background: #eef6f0;
  cursor: pointer;
}

.cookie-session-picker input:disabled,
.cookie-session-picker button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.cookie-session-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 0;
}

.cookie-session-details > div {
  min-width: 0;
}

.cookie-session-details dt {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.cookie-session-details dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: #33463a;
  font-size: 9px;
}

.browser-preview {
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid #e3e9e4;
  border-radius: 13px;
  background: #18201b;
}

.browser-preview > div {
  display: grid;
  min-height: 230px;
  place-items: center;
  color: #86938a;
  font-size: 11px;
}

.browser-preview img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.browser-preview figcaption {
  display: flex;
  justify-content: space-between;
  padding: 9px 11px;
  color: #b5c1b8;
  font-size: 9px;
  background: #111713;
}

@media (max-width: 1050px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .auth-card {
    width: min(560px, 100%);
    padding: 38px 24px 34px;
    border-radius: 24px;
  }

  .auth-mark {
    width: 64px;
    height: 64px;
    border-radius: 19px;
  }

  .auth-card h1 {
    font-size: 28px;
  }

  .admin-view {
    padding: 22px 14px;
  }

  .admin-grid {
    display: block;
  }

  .admin-card + .admin-card {
    margin-top: 16px;
  }

  .add-user-form > div {
    display: grid;
  }

  .cookie-session-picker,
  .cookie-session-details {
    grid-template-columns: 1fr;
  }
}
