:root {
  --aw-gold: #b89866;
  --aw-gold-dark: #9a7a4a;
  --aw-ink: #111111;
  --aw-muted: #6b6b6b;
  --aw-line: #e6e6e6;
  --aw-wash: #f3f3f3;
  --aw-bg: #ffffff;
  --aw-serif: "Libre Baskerville", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --aw-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #f7f6f4;
  color: var(--aw-ink);
  font-family: var(--aw-sans);
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Guest land: centered logo only (Exclaim-style) */
.aw-guest-logo {
  display: none;
  position: fixed;
  inset: 0;
  margin: auto;
  width: 140px;
  height: 140px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 5;
}

.aw-guest-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

body.is-guest .aw-guest-logo {
  display: block;
}

body.is-guest .aw-app-chrome {
  display: none !important;
}

body.is-signed-in .aw-guest-logo {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.aw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 20;
}

.aw-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--aw-serif);
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 1rem;
}

.aw-brand img {
  width: 42px;
  height: 42px;
  display: block;
}

.aw-brand .ad {
  color: var(--aw-gold);
}

.aw-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.aw-nav-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.92rem;
  color: var(--aw-ink);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--aw-sans);
}

.aw-nav-link:hover {
  color: var(--aw-gold-dark);
}

.aw-user-email {
  font-size: 0.82rem;
  color: var(--aw-muted);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aw-btn-signin,
.aw-btn-outline {
  border: 1px solid var(--aw-ink);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

.aw-btn-signin:hover,
.aw-btn-outline:hover {
  border-color: var(--aw-gold);
}

.aw-user-chip {
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--aw-muted);
}

body.is-signed-in .aw-user-chip {
  display: inline-flex;
}

body.is-signed-in #aw-open-signin {
  display: none;
}

.aw-main {
  flex: 1;
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

/* HOME */
.aw-home {
  text-align: center;
  padding-top: 2.5rem;
}

.aw-home-logo {
  width: 300px;
  height: 300px;
  margin: 0 auto 1rem;
  display: block;
}

.aw-wordmark {
  font-family: var(--aw-serif);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: 0.25em;
  margin: 0;
  font-weight: 700;
}

.aw-wordmark .ad {
  color: var(--aw-gold);
}

.aw-tagline {
  font-family: var(--aw-serif);
  font-size: 1.05rem;
  margin: 0.85rem auto 2.25rem;
  max-width: 35rem;
  letter-spacing: 0.25em;
  line-height: 1.50;
}

.aw-prompt {
  font-family: var(--aw-serif);
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  margin: 0 0 1.25rem;
  font-weight: 700;
}

.aw-search-wrap {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
}

.aw-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  padding: 0.55rem 0.55rem 0.55rem 1.1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.aw-search:focus-within {
  border-color: var(--aw-gold);
}

.aw-search-icon {
  width: 18px;
  height: 18px;
  opacity: 0.45;
  flex: 0 0 auto;
}

.aw-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1rem;
  min-width: 0;
}

.aw-search-submit {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--aw-gold);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.aw-search-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.aw-search-submit:hover:not(:disabled) {
  background: var(--aw-gold-dark);
}

.aw-history-link {
  display: block;
  text-align: right;
  width: min(720px, 100%);
  margin: 0.55rem auto 0;
  font-size: 0.82rem;
  color: var(--aw-muted);
}

.aw-examples {
  width: min(720px, 100%);
  margin: 2.75rem auto 0;
}

.aw-examples h2 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--aw-muted);
  font-weight: 600;
  margin: 0 0 1rem;
}

.aw-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  text-align: left;
}

.aw-example {
  border: 0;
  background: var(--aw-wash);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  font-family: var(--aw-serif);
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--aw-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.aw-example:hover {
  background: #ececec;
}

.aw-example span {
  opacity: 0.45;
}

.aw-review-toggle {
  margin: 1.25rem auto 0;
  display: inline-block;
  font-size: 0.85rem;
  color: var(--aw-muted);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}

.aw-review-box {
  width: min(720px, 100%);
  margin: 0.75rem auto 0;
  text-align: left;
}

.aw-review-box textarea {
  width: 100%;
  min-height: 140px;
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  resize: vertical;
}

/* CONVERSATION */
.aw-conversation-view {
  display: none;
}

body.is-conversation .aw-home {
  display: none;
}

body.is-conversation .aw-conversation-view {
  display: block;
}

.aw-conv-shell {
  border: 1px solid #e2e0dc;
  border-radius: 22px;
  background: #fff;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.aw-conv-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.aw-conv-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.aw-conv-brand img {
  width: 42px;
  height: 42px;
}

.aw-conv-brand strong {
  font-family: var(--aw-serif);
  letter-spacing: 0.05em;
  display: block;
}

.aw-conv-brand strong .ad {
  color: var(--aw-gold);
}

.aw-conv-brand p {
  margin: 0.2rem 0 0;
  font-family: var(--aw-serif);
  font-size: 0.85rem;
  color: var(--aw-muted);
  max-width: 18rem;
}

.aw-download {
  border: 0;
  background: none;
  color: var(--aw-muted);
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}

.aw-download:hover {
  color: var(--aw-ink);
}

.aw-thread {
  flex: 1;
  overflow-y: auto;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-height: min(62vh, 720px);
}

.aw-msg {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.85rem;
}

.aw-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eceae6;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
  overflow: hidden;
}

.aw-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aw-msg-meta {
  font-size: 0.78rem;
  color: var(--aw-muted);
  margin-bottom: 0.4rem;
}

.aw-msg-meta strong {
  color: var(--aw-ink);
  font-weight: 600;
}

.aw-msg-body {
  font-family: var(--aw-serif);
  line-height: 1.55;
  white-space: pre-wrap;
  font-size: 1.02rem;
}

.aw-perspectives {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.aw-authority {
  background: #f4f3f0;
  border-radius: 16px;
  padding: 1.05rem 1.15rem 0.95rem;
  border: 1px solid #ebe8e3;
}

.aw-authority-head {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.aw-authority-portrait {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2b2b2b;
  color: #f2f2f2;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.aw-authority-meta h3 {
  margin: 0;
  font-family: var(--aw-serif);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.aw-authority-work {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--aw-muted);
  font-style: italic;
  font-family: var(--aw-serif);
}

.aw-chapter-link {
  border: 0;
  background: none;
  color: var(--aw-gold-dark);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
  padding: 0.15rem 0;
}

.aw-authority h3 {
  margin: 0;
  font-family: var(--aw-serif);
  font-size: 1.02rem;
}

.aw-authority .cite {
  font-size: 0.8rem;
  color: var(--aw-muted);
  margin-bottom: 0.55rem;
}

.aw-authority .blurb,
.aw-authority blockquote.blurb {
  font-family: var(--aw-serif);
  line-height: 1.5;
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  quotes: none;
}

.aw-idea-callout {
  background: #ebeae6;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.86rem;
  color: #444;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.aw-idea-label {
  font-weight: 700;
  color: var(--aw-ink);
}

.aw-authority-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.aw-view-source {
  border: 0;
  background: none;
  color: var(--aw-muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.aw-select {
  width: 22px;
  height: 22px;
  border: 1.5px solid #999;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.aw-select.is-on {
  border-color: var(--aw-gold);
  background: var(--aw-gold);
  box-shadow: inset 0 0 0 4px #fff;
}

.aw-explore-row {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.aw-explore-btn {
  border: 0;
  background: var(--aw-gold);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.aw-explore-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.aw-explore-btn:hover:not(:disabled) {
  background: var(--aw-gold-dark);
}

.aw-status {
  color: var(--aw-muted);
  font-size: 0.9rem;
}

.aw-follow {
  border-top: 1px solid #f0eeea;
  padding: 0.95rem 1rem 1.15rem;
  background: #fff;
}

.aw-follow-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #d8d5d0;
  border-radius: 999px;
  padding: 0.35rem 0.4rem 0.35rem 0.65rem;
  background: #fff;
}

.aw-attach {
  border: 0;
  background: none;
  color: #888;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.aw-attach:hover {
  color: var(--aw-ink);
  background: #f3f2ef;
}

.aw-follow-bar input {
  flex: 1;
  border: 0;
  outline: none;
  min-width: 0;
  font-size: 0.98rem;
}

.aw-follow-send {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--aw-gold);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.aw-follow-send:hover {
  background: var(--aw-gold-dark);
}

.aw-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.aw-chip {
  border: 1px solid #ddd9d3;
  background: #f3f2ef;
  color: #444;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.aw-chip:hover {
  border-color: var(--aw-gold);
  color: var(--aw-ink);
}

.aw-footer {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  color: #c4c4c4;
}

.aw-footer img {
  width: 34px;
  height: 34px;
  opacity: 1;
  margin-bottom: 0.35rem;
}

.aw-footer .mark {
  font-family: var(--aw-serif);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  opacity: 0.55;
}

.aw-footer .tag {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
}

.aw-footer-links {
  margin-top: 0.85rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #999;
}

/* Auth modal */
.aw-auth-shell {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 1rem;
}

.aw-auth-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

.aw-auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.aw-auth-tabs button {
  flex: 1;
  border: 1px solid var(--aw-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.aw-auth-tabs button.is-active {
  border-color: var(--aw-gold);
  color: var(--aw-gold-dark);
}

.aw-auth-card label {
  display: block;
  font-size: 0.82rem;
  color: var(--aw-muted);
  margin: 0.65rem 0 0.25rem;
}

.aw-auth-card input {
  width: 100%;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.aw-auth-card .aw-auth-submit {
  width: 100%;
  margin-top: 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--aw-gold);
  color: #fff;
  padding: 0.7rem;
  cursor: pointer;
}

.aw-auth-close {
  float: right;
  border: 0;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--aw-muted);
}

.aw-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  z-index: 60;
  max-width: min(90vw, 420px);
}

.aw-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  z-index: 55;
  padding: 1rem;
}

.aw-modal[hidden],
.aw-auth-shell[hidden],
.aw-about-overlay[hidden],
.aw-legal-overlay[hidden] {
  display: none !important;
}

/* About + legal overlays (Exclaim parity, AdWise skin) */
.aw-about-overlay,
.aw-legal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 70;
}

.aw-about-overlay.is-open,
.aw-legal-overlay.is-open {
  display: flex;
}

.aw-about-modal {
  width: min(520px, 100%);
  max-height: min(92vh, 900px);
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  position: relative;
  text-align: center;
  padding: 1.35rem 1.25rem 0.5rem;
}

.aw-legal-modal {
  width: min(640px, 100%);
  display: flex;
  flex-direction: column;
}

.aw-about-x {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.aw-about-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0.35rem auto 0.5rem;
  display: block;
}

.aw-about-body {
  text-align: center;
  font-family: var(--aw-sans);
  color: var(--aw-ink);
  line-height: 1.5;
  padding: 0 0.5rem;
}

.aw-about-body p {
  margin: 0 0 0.85rem;
}

.aw-about-cta-wrap {
  width: 80%;
  margin: 0 auto;
}

.aw-about-cta {
  width: 100%;
  border: 0;
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.aw-about-copyright {
  font-size: 0.72rem;
  color: #999;
  margin: 0;
}

.aw-legal-title {
  margin: -12px 0 16px;
  font-family: var(--aw-serif);
  font-size: 1.35rem;
}

.aw-legal-scroll {
  text-align: left;
}

.aw-legal-scroll--fade {
  position: relative;
  max-height: min(52vh, 420px);
  overflow: hidden;
}

.aw-legal-scroll--fade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

.aw-legal-scroll-pane {
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 0 0.35rem 1.5rem;
}

.aw-legal-body {
  font-family: var(--aw-sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--aw-ink);
}

.aw-legal-body p {
  text-indent: 40px;
  margin: 0 0 0.85rem;
}

.aw-legal-lead {
  text-indent: 0 !important;
  text-decoration: underline;
  font-weight: 600;
  margin-bottom: 1rem !important;
}

.aw-legal-body h3 {
  text-indent: 0;
  text-decoration: underline;
  font-size: 1rem;
  margin: 1.1rem 0 0.65rem;
}

.aw-legal-body a {
  color: var(--aw-gold-dark);
  text-decoration: underline;
}

.aw-site-footer {
  margin-top: auto;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
  opacity: 0.15;
  filter: grayscale(1);
  color: #666;
}

.aw-site-footer .aw-footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  opacity: 1;
  text-decoration: none;
}

.aw-site-footer .aw-footer-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  opacity: 1;
}

.aw-footer-wordmark {
  font-family: var(--aw-serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.aw-footer-wordmark .ad {
  color: var(--aw-gold);
}

.aw-footer-slogan {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: #999;
}

.aw-site-footer .aw-footer-logo:hover {
  opacity: 1;
}

.aw-legal-links {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 0.55rem;
}

.aw-legal-links a:hover {
  color: var(--aw-gold-dark);
}

.aw-legal-sep {
  color: #bbb;
}

.aw-site-footer .copyright {
  font-size: 0.72rem;
  color: #999;
}

body.is-guest .aw-site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Cancel-save + business context */
.aw-cancel-save-card .aw-save-prices {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  justify-content: center;
  margin: 0.75rem 0 0.25rem;
  font-family: var(--aw-serif);
}

.aw-cancel-save-card .aw-save-now {
  font-size: 1.6rem;
  font-weight: 700;
}

.aw-cancel-save-card .aw-save-was {
  color: #999;
  text-decoration: line-through;
}

.aw-cancel-save-card .aw-save-badge {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0.75rem 0 0.25rem;
}

.aw-biz-wizard {
  width: min(520px, 100%);
  margin: 0 auto;
  text-align: left;
}

.aw-biz-wizard h3 {
  margin: 0 0 0.85rem;
  font-family: var(--aw-serif);
}

.aw-biz-wizard textarea {
  width: 100%;
  min-height: 8rem;
  border: 1px solid var(--aw-line);
  border-radius: 10px;
  padding: 0.75rem;
  resize: vertical;
}

.aw-biz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.85rem;
}

.aw-biz-nav button {
  border: 1px solid var(--aw-line);
  background: #fff;
  border-radius: 999px;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
}

.aw-biz-progress {
  color: var(--aw-muted);
  font-size: 0.85rem;
}

.aw-modal-card {
  width: min(640px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
}

.aw-modal-card h3 {
  margin-top: 0;
  font-family: var(--aw-serif);
}

.aw-source-meta {
  margin: 0 1.75rem 1rem 0;
}

.aw-source-author {
  font-family: var(--aw-serif);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--aw-ink);
}

.aw-source-work {
  font-family: var(--aw-serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.35;
  margin-top: 0.25rem;
  color: #333;
}

.aw-source-pages {
  font-family: var(--aw-sans);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 0.45rem;
  color: var(--aw-muted);
  letter-spacing: 0.02em;
}

.aw-modal-card pre {
  white-space: pre-wrap;
  font-family: var(--aw-serif);
  line-height: 1.45;
}

.aw-plans {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.aw-plan {
  border: 1px solid var(--aw-line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.aw-plan button {
  border: 0;
  background: var(--aw-gold);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.aw-page {
  width: min(720px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
  font-family: var(--aw-serif);
  line-height: 1.55;
}

.aw-page h1 {
  font-size: 1.8rem;
}

/* Explore work: THERE IT IS! / Ad Vars */
.aw-work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 0.75rem 0 0.35rem;
  padding: 0.35rem 0;
}

.aw-there-it-is {
  border: 0;
  background: var(--aw-ink);
  color: #fff;
  font-family: var(--aw-sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: 4px;
  cursor: pointer;
}

.aw-there-it-is:disabled,
.aw-ad-vars-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.aw-ad-vars-btn {
  border: 1px solid var(--aw-line);
  background: #fff;
  color: var(--aw-ink);
  font-family: var(--aw-sans);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Consultation blocks + inline source chips */
.aw-consult-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.aw-consult-block p {
  margin: 0 0 0.35rem;
  white-space: pre-wrap;
}

.aw-consult-recommendation p {
  font-weight: 600;
}

.aw-analysis-tag {
  font-family: var(--aw-sans);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--aw-muted);
  margin-top: 0.2rem;
}

.aw-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.aw-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  border: 1px solid var(--aw-line);
  background: rgba(0, 0, 0, 0.03);
  color: var(--aw-muted);
  font-family: var(--aw-sans);
  font-size: 0.72rem;
  line-height: 1.25;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}

.aw-source-chip:hover,
.aw-source-chip:focus-visible {
  border-color: var(--aw-gold);
  color: var(--aw-ink);
  outline: none;
}

.aw-source-chip-ico {
  flex: 0 0 auto;
  opacity: 0.7;
  font-size: 0.7rem;
}

.aw-source-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(22rem, 70vw);
}

.aw-directions,
.aw-ad-vars {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--aw-line);
}

.aw-directions-label {
  font-family: var(--aw-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aw-muted);
  margin-bottom: 0.45rem;
}

.aw-directions ul {
  margin: 0;
  padding-left: 1.1rem;
}

.aw-directions li {
  margin-bottom: 0.4rem;
}

.aw-ad-var {
  margin-bottom: 0.75rem;
}

.aw-ad-var header {
  font-family: var(--aw-sans);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.aw-ad-var pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--aw-serif);
  font-size: 0.95rem;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.03);
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
}

.aw-ad-var footer {
  font-family: var(--aw-sans);
  font-size: 0.75rem;
  color: var(--aw-muted);
  margin-top: 0.3rem;
}

@media (max-width: 720px) {
  .aw-example-grid {
    grid-template-columns: 1fr;
  }

  .aw-nav a.aw-nav-link {
    display: none;
  }

  .aw-home {
    padding-top: 1rem;
  }

  .aw-conv-top {
    flex-direction: column;
  }

  .aw-source-chip {
    min-height: 2rem;
    padding: 0.4rem 0.65rem;
  }

  .aw-there-it-is,
  .aw-ad-vars-btn {
    width: 100%;
  }
}
