/* Shared action styling. Keep the surrounding layouts and artwork unchanged. */
:root {
  --control-radius: 12px;
  --control-focus: #237a59;
  --control-border: #d4dfd8;
  --control-shadow: 0 1px 2px #102d2b08, inset 0 1px 0 #ffffffb3;
  --control-transition: background-color .16s ease, border-color .16s ease,
    box-shadow .16s ease, color .16s ease, transform .16s ease;
}

.login-button,
.primary-button,
.topic,
.portal-shortcuts :is(a, button),
.access-choice,
.icon-button,
.chat-composer button,
.composer-bottom button {
  min-height: 44px;
  border-radius: var(--control-radius);
  transition: var(--control-transition);
  line-height: 1.4;
}

.login-button .icon,
.primary-button .icon,
.topic .icon,
.portal-shortcuts :is(a, button) .icon,
.access-choice > .icon,
.icon-button .icon,
.chat-composer button .icon,
.composer-bottom button .icon,
.text-link .icon,
.marketing-page .hero-text-link .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.login-button,
.immersive-header .login-button,
.marketing-page .login-button {
  --control-focus: #8be5bd;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid #a9c6c54d;
  background: #ffffff08;
  color: #f3faf7;
  font-size: 12px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 #ffffff0a, 0 1px 2px #0000000d;
}

.primary-button {
  gap: 16px;
  padding: 13px 18px;
  border: 1px solid #102e4d;
  background: #0c2441;
  color: #fff;
  font-size: 12px;
  box-shadow: inset 0 1px 0 #ffffff14, 0 2px 4px #071a3c14;
}

.portal-shortcuts :is(a, button),
.topic {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--control-border);
  background: #ffffffd9;
  color: #315547;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  box-shadow: var(--control-shadow);
}

.portal-shortcuts :is(a, button) .icon,
.topic > .icon {
  color: #567c69;
}

.topic .topic-arrow {
  margin-left: auto;
  color: #6e877a;
}

.chat-composer button,
.composer-bottom button {
  width: 44px;
  height: 44px;
  padding: 0;
  flex: none;
  border: 1px solid #124a38;
  background: #18563f;
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff1f, 0 2px 4px #123d351a;
}

.access-choice {
  min-height: 76px;
  gap: 13px;
  padding: 15px;
  border-color: var(--control-border);
  background: #fff;
  box-shadow: var(--control-shadow);
}

.access-choice > .icon:first-child {
  box-sizing: content-box;
  padding: 8px;
  border: 1px solid #e0e9e2;
  border-radius: 10px;
  background: #f1f6f2;
  color: #3b7158;
}

.access-choice > .icon:last-child { color: #5f7e6d; }
.access-choice strong { font-size: 12px; line-height: 1.5; }
.access-choice span { line-height: 1.6; }

#client-access {
  background: #f2f5f1;
  box-shadow: inset 0 1px 0 #ffffffb3;
}

.access-choice .soon-label {
  margin-top: 0;
  padding: 4px 7px;
  border: 1px solid #d5dfd6;
  border-radius: 6px;
  background: #e8eee7;
  color: #52644f;
  font-size: 9px;
  font-weight: 600;
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d7e0d7;
  background: #f0f4ee;
  color: #47604f;
  box-shadow: inset 0 1px 0 #ffffffb3;
}

.text-link,
.marketing-page .hero-text-link {
  min-height: 44px;
  gap: 14px;
  padding-block: 10px;
  transition: color .16s ease, border-color .16s ease;
}

.marketing-page .hero-text-link { --control-focus: #8be5bd; }

.faqs summary {
  border-radius: var(--control-radius);
  transition: color .16s ease;
}

.faqs summary .icon {
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 6px;
  border: 1px solid #d5e0d6;
  border-radius: 10px;
  background: #f0f5ed;
  color: #4d725b;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.faqs details[open] summary .icon {
  border-color: #bcd3c4;
  background: #e4efe5;
  transform: none;
}

.faqs summary .icon use {
  transform-origin: center;
  transition: transform .16s ease;
}

.faqs details[open] summary .icon use { transform: rotate(45deg); }

#motion-toggle,
.experience-footer #motion-toggle {
  --control-focus: #8be5bd;
  min-height: 44px;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #9ec6b31f;
  border-radius: var(--control-radius);
  background: #ffffff03;
  color: #a8c6b8;
  font-size: 9px;
  transition: var(--control-transition);
}

#motion-toggle .icon { width: 18px; height: 18px; }
#motion-toggle[aria-pressed="true"] { background: #8be5bd0c; border-color: #8be5bd33; }

.login-button:focus-visible,
.primary-button:focus-visible,
.topic:focus-visible,
.portal-shortcuts :is(a, button):focus-visible,
.access-choice:focus-visible,
.icon-button:focus-visible,
.chat-composer button:focus-visible,
.composer-bottom button:focus-visible,
.text-link:focus-visible,
.marketing-page .hero-text-link:focus-visible,
.faqs summary:focus-visible,
#motion-toggle:focus-visible {
  outline: 2px solid var(--control-focus);
  outline-offset: 3px;
}

/* Reset earlier lift effects; feedback stays quiet and works on touch screens. */
.primary-button:hover,
.topic:hover,
.portal-shortcuts :is(a, button):hover,
.composer-bottom button:hover { transform: none; }

@media (hover: hover) {
  .login-button:hover,
  .immersive-header .login-button:hover {
    border-color: #b6dbcb80;
    background: #ffffff10;
  }
  .primary-button:hover { background: #173954; border-color: #294a62; }
  .portal-shortcuts :is(a, button):hover,
  .topic:hover,
  .access-choice:hover {
    border-color: #99b9a6;
    background: #f1f7f2;
    box-shadow: inset 0 1px 0 #fff, 0 2px 5px #123d350a;
  }
  #client-access:hover { border-color: #b7c8b8; background: #edf2eb; }
  .chat-composer button:hover,
  .composer-bottom button:hover { background: #206c4f; border-color: #1b6047; }
  .icon-button:hover { background: #e4ece1; border-color: #bdcfbf; }
  .faqs summary:hover { color: #276346; }
  .faqs summary:hover .icon { border-color: #b6cdbb; background: #e4efe5; }
  #motion-toggle:hover { color: #e2f6eb; background: #ffffff0a; border-color: #9ec6b340; }
  .text-link:hover .icon,
  .marketing-page .hero-text-link:hover .icon { transform: translateX(2px); }
}

.login-button:active,
.primary-button:active,
.topic:active,
.portal-shortcuts :is(a, button):active,
.access-choice:active,
.icon-button:active,
.chat-composer button:active,
.composer-bottom button:active,
#motion-toggle:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px #071a3c0f;
}

.chat-composer button:disabled,
.chat-composer button:disabled:hover,
.composer-bottom button:disabled,
.composer-bottom button:disabled:hover {
  border-color: #d1ddd3;
  background: #e5ece5;
  color: #78907f;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
  opacity: 1;
}

@media (max-width: 650px) {
  .immersive-header .login-button,
  .marketing-page .login-button { padding-inline: 13px; font-size: 11px; gap: 10px; }
  .immersive-header .login-button .icon { width: 18px; height: 18px; }
  .portal-shortcuts :is(a, button) { padding-inline: 11px; font-size: 10px; gap: 7px; }
  .access-choice { gap: 10px; padding: 13px 11px; }
  .access-choice > .icon:first-child { padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-button,
  .primary-button,
  .topic,
  .portal-shortcuts :is(a, button),
  .access-choice,
  .icon-button,
  .chat-composer button,
  .composer-bottom button,
  .text-link,
  .text-link .icon,
  .marketing-page .hero-text-link,
  .marketing-page .hero-text-link .icon,
  .faqs summary,
  .faqs summary .icon,
  .faqs summary .icon use,
  #motion-toggle { transition: none; }
  .login-button:active,
  .primary-button:active,
  .topic:active,
  .portal-shortcuts :is(a, button):active,
  .access-choice:active,
  .icon-button:active,
  .chat-composer button:active,
  .composer-bottom button:active,
  #motion-toggle:active,
  .text-link:hover .icon,
  .marketing-page .hero-text-link:hover .icon { transform: none; }
}
