@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/tavern-site-v2/typography-font.512ac3647689b408.woff2) format('woff2'), url(/_next/static/tavern-site-v2/typography-font.5d27bd7fe4b79e94.ttf) format('truetype');
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/tavern-site-v2/typography-font.7f13b0b7239c9356.woff2) format('woff2'), url(/_next/static/tavern-site-v2/typography-font.24744bba5ddd417b.ttf) format('truetype');
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/tavern-site-v2/typography-font.d9fef8163c947df2.woff2) format('woff2'), url(/_next/static/tavern-site-v2/typography-font.030d1bae9b38f45a.ttf) format('truetype');
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/tavern-site-v2/typography-font.9b04198351fde96f.woff2) format('woff2'), url(/_next/static/tavern-site-v2/typography-font.bee38f5b47923dbb.ttf) format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/tavern-site-v2/typography-font.02404cf360eac6c0.woff2) format('woff2'), url(/_next/static/tavern-site-v2/typography-font.5b667e91b59a4e1d.ttf) format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/tavern-site-v2/typography-font.2b9867bc899277b4.woff2) format('woff2'), url(/_next/static/tavern-site-v2/typography-font.954e20ee10ae685d.ttf) format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/tavern-site-v2/typography-font.82526b23d4f684d3.woff2) format('woff2'), url(/_next/static/tavern-site-v2/typography-font.8ab6a1db2d7caeb4.ttf) format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/tavern-site-v2/typography-font.f9c5fd653d7d815a.woff2) format('woff2'), url(/_next/static/tavern-site-v2/typography-font.adefc53e7b3d483f.ttf) format('truetype');
}

/* Website typography: the surfaces, gold palette and component structure stay local to their owners. */
:root {
  --dd-text-xs: .75rem;
  --dd-text-sm: .8125rem;
  --dd-text-ui: .875rem;
  --dd-text-body: 1rem;
  --dd-text-h4: 1.125rem;
  --dd-text-h3: 1.25rem;
  --dd-text-h2: 1.5rem;
  --dd-text-h1: 2rem;
  --dd-leading-body: 1.65;
  --dd-leading-ui: 1.5;
  --dd-leading-heading: 1.25;
  --dd-reading-width: 72ch;
  --dd-ink: #ddd5e6;
  --dd-ink-primary: #f2ebf9;
  --dd-ink-muted: #bba8d1;
  --dd-ink-soft: #aa9abe;
  --dd-ink-reading-soft: #d8d1de;
  --dd-ink-on-accent: #160f1e;
  --dd-ink-error: #e7939a;
  --dd-ink-success: #8fc79a;
  --dd-ink-info: #8fb3e3;
  --dd-ink-warning: #d9b45a;
  --dd-ink-busy: #b79be0;
  --dd-ink-subtle: #aa9abe;
  --text-body: var(--dd-ink);
  --text-secondary: var(--dd-ink-muted);
  --text-light: var(--dd-ink);
  --text-muted: var(--dd-ink-muted);
  --dd-font-body: 'Onest', system-ui, sans-serif;
  --dd-font-display: 'Playfair Display', Georgia, serif;
}
html { font-size: 100%; }
body { font-family: var(--dd-font-body); font-size: var(--dd-text-ui); line-height: var(--dd-leading-ui); color: var(--dd-ink); }
button, input, select, textarea { font-family: var(--dd-font-body); }
button, input, select, textarea, .dd-btn, .dd-select, .dd-textarea { font-size: var(--dd-text-ui); line-height: var(--dd-leading-ui); }
input::placeholder, textarea::placeholder { color: var(--dd-ink-soft); opacity: 1; }
h1, h2, h3, h4 { font-family: var(--dd-font-display); font-weight: 700; line-height: var(--dd-leading-heading); text-transform: none; letter-spacing: normal; overflow-wrap: anywhere; }
h1 { font-size: var(--dd-text-h1); }
h2 { font-size: var(--dd-text-h2); }
h3 { font-size: var(--dd-text-h3); }
h4 { font-size: var(--dd-text-h4); }
p { font-weight: 400; }
strong, b { font-weight: 600; }
textarea, .dd-input, .dd-select, .dd-textarea { min-width: 0; }

/* Reading surfaces have their own measure; compact controls keep the UI scale. */
.dd-sheet, .dd-msg__body { font-family: var(--dd-font-body); font-size: var(--dd-text-body); line-height: var(--dd-leading-body); color: var(--dd-ink); }
.dd-sheet { max-width: min(var(--dd-reading-width), 47.5rem); width: 100%; }
.dd-sheet p, .dd-msg__body p { font-size: var(--dd-text-body); line-height: var(--dd-leading-body); font-weight: 400; margin-block: 0 1em; }
.dd-msg--assistant .dd-msg__body, .dd-msg--user .dd-msg__body { max-width: min(var(--dd-reading-width), 47.5rem); font-size: var(--dd-text-body); line-height: var(--dd-leading-body); color: var(--dd-ink); overflow-wrap: anywhere; }
.dd-msg--assistant .dd-msg__body { width: fit-content; }
.dd-msg__body p:last-child { margin-bottom: 0; }
.dd-msg__body h3 { font-size: var(--dd-text-h3); margin: 1.75em 0 .6em; }
.dd-msg__body h4 { font-size: var(--dd-text-h4); margin: 1.75em 0 .6em; }
.dd-msg__body :is(h3,h4):first-child { margin-top: 0; }
.dd-msg__body :is(ul,ol) { padding-inline-start: 1.5em; margin-block: 0 1em; }
.dd-msg__body li + li { margin-top: .5em; }
.dd-msg__body :is(pre,code) { font-size: var(--dd-text-ui); overflow-wrap: anywhere; }
.dd-msg__body pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
.dd-lightbox__prompt-text { font-size: var(--dd-text-body); line-height: var(--dd-leading-body); color: var(--dd-ink); max-width: min(var(--dd-reading-width),47.5rem); }
.tavern-site-subtitle, .tavern-tool-heading p, .tavern-tool-output { font-size: var(--dd-text-body); line-height: var(--dd-leading-body); color: var(--dd-ink); max-width: min(var(--dd-reading-width),47.5rem); }
.tavern-site-subtitle { margin-block: 0 1em; }
.dd-sheet .dd-sheet__title { font-size: var(--dd-text-h2); color: var(--dd-gold-bright); text-transform: none; letter-spacing: normal; margin: 0 0 .25em; }
.dd-sheet .dd-sheet__sub { font-size: var(--dd-text-ui); line-height: var(--dd-leading-ui); font-style: normal; color: var(--dd-ink-muted); margin: 0 0 1em; }
.dd-sheet .dd-sheet__section-title { font-size: var(--dd-text-h3); color: var(--dd-gold); margin: 1.75em 0 .6em; padding-bottom: .4em; border-bottom: 1px solid var(--dd-border); }
.dd-sheet__property { display: flex; flex-wrap: wrap; gap: 0 .4em; font-size: var(--dd-text-body); line-height: var(--dd-leading-body); margin-block: .375em; }
.dd-sheet__label { color: var(--dd-ink-muted); font-weight: 600; }
.dd-sheet__value { color: var(--dd-ink); min-width: 0; overflow-wrap: anywhere; }
.dd-sheet .dd-sheet__lead { color: var(--dd-gold-bright); font-weight: 600; font-style: normal; margin-right: .25em; }
.dd-sheet__number { color: inherit; font-weight: 600; }
.dd-sheet__description { border-left: 2px solid var(--dd-gold); background: var(--dd-surface-card); padding: .25em 0 .25em 1em; color: var(--dd-ink-reading-soft); }
.dd-sheet__description p { color: inherit; font-style: normal; }
.dd-sheet__description p:last-child { margin-bottom: 0; }
.dd-sheet__stats { grid-template-columns: repeat(auto-fit,minmax(5.25rem,1fr)); }
.dd-sheet__stats strong { font-size: var(--dd-text-xs); }
.dd-sheet__stats span { font-size: var(--dd-text-body); font-weight: 600; color: var(--dd-ink-primary); }

/* Explanations remain readable without enlarging the profile's compact numbers and controls. */
.dd-empty__subtitle, .dd-prof-empty p, .tavern-access-message p, .dd-modal p, .tavern-account-intro, .tavern-account-help { font-size: var(--dd-text-body); line-height: var(--dd-leading-body); }
.dd-prof-name { font-size: var(--dd-text-h3); }
.dd-prof-card-title { font-size: var(--dd-text-h4); }
.dd-prof-title, .dd-prof-name, .dd-prof-card-title { font-family: var(--dd-font-display); line-height: var(--dd-leading-heading); }
.dd-prof-ach-name { font-size: var(--dd-text-sm); font-style: normal; }
.dd-prof-eyebrow, .qa-kicker, .cm-eyebrow { font-size: var(--dd-text-sm); letter-spacing: .04em; text-transform: none; }
.dd-toast { font-size: var(--dd-text-ui); line-height: var(--dd-leading-ui); overflow-wrap: anywhere; }
.tavern-account-dialog :is(p,label,input,button,select) { font-size: var(--dd-text-ui); }
.tavern-role-dialog p { font-size: var(--dd-text-body); line-height: var(--dd-leading-body); color: var(--dd-ink); }

/* The Website's independent Master Eye copy; TG/VK assets are unchanged. */
.master-eye { font-family: var(--dd-font-body); color: var(--dd-ink); }
.master-eye :is(h1,h2,h3,h4) { font-family: var(--dd-font-display); }
.master-eye__mode, .qa-button, .qa-report-tabs button, .cm-input { font-size: var(--dd-text-ui); line-height: var(--dd-leading-ui); }
.admin-observe-message__body, .cm-bubble__text, .cm-vkpost__text { font-size: var(--dd-text-body); line-height: var(--dd-leading-body); color: var(--dd-ink); max-width: min(var(--dd-reading-width),47.5rem); }
.admin-observe-message__body { white-space: pre-wrap; margin-block: .6em 1em; }
.admin-observe-message { max-width: 100%; }
.admin-observe-muted, .admin-style-help, .cm-field__hint { color: var(--dd-ink-muted); font-size: var(--dd-text-sm); line-height: var(--dd-leading-ui); }
.cm { --cm-text: var(--dd-ink); --cm-muted: var(--dd-ink-muted); --cm-soft: var(--dd-ink); --cm-ok: var(--dd-ink-success); --cm-error: var(--dd-ink-error); --cm-info: var(--dd-ink-info); --cm-warn: var(--dd-ink-warning); --cm-busy: var(--dd-ink-busy); font-size: var(--dd-text-ui); }
.cm-day.is-past { opacity: 1; }
.cm-card__excerpt { font-size: var(--dd-text-ui); line-height: var(--dd-leading-ui); }
.cm-sheet__body textarea { font-size: var(--dd-text-body); line-height: var(--dd-leading-body); }
.cm-notice, .cm-alert { font-size: var(--dd-text-ui); line-height: var(--dd-leading-ui); }
.cm-field__hint, .admin-observe-empty small, .admin-observe-conversation__preview { font-size: var(--dd-text-sm); }
.admin-observe-conversation__meta > span:not([class]) { color: var(--dd-ink-muted); }
.dd-chat-header__text { overflow: visible; text-overflow: clip; white-space: normal; max-width: none; overflow-wrap: anywhere; }
.dd-chat-header__title { overflow: visible; min-width: 0; }
.tavern-nav-footer { font-style: normal; }
@media (max-width: 640px) {
  .dd-sheet { padding-inline: 1em; }
  .dd-sheet__stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dd-sheet__description { padding-inline-start: .75em; }
  .dd-sb-head { flex-wrap: wrap; }
  .dd-sb-head .dd-select { max-width: 100%; min-width: 0; }
  .dd-row { flex-wrap: wrap; }
  .dd-row :is(input,textarea) { flex-basis: 100%; }
  .dd-topbar, .dd-main:has(.dd-profile-view) .dd-topbar { flex: 0 0 auto; height: auto; min-height: 5rem; gap: 8px; padding: 6px 12px; }
  .dd-topbar__titles { gap: 2px; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; }
  .dd-topbar > .dd-spacer { display: none; }
  .dd-topbar__brand-title { min-width: 0; font-size: var(--dd-text-body); }
  .dd-topbar__subtitle { overflow: visible; text-overflow: clip; white-space: normal; font-size: var(--dd-text-sm); padding-inline: 6px; line-height: 1.4; }
  .dd-topbar .tavern-account-action.header { overflow: visible; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; height: auto; min-height: 36px; width: 9rem; max-width: 45%; flex: 0 0 9rem; padding-inline: 8px; transition: background-color var(--dd-duration-fast) var(--dd-ease), border-color var(--dd-duration-fast) var(--dd-ease), box-shadow var(--dd-duration-fast) var(--dd-ease), transform var(--dd-duration-fast) var(--dd-ease); }
  .dd-chat-header { height: auto; min-height: 50px; flex-wrap: wrap; padding-block: 8px; }
  .dd-chat-header__title { flex: 1 0 12rem; }
  .dd-chat-header__actions { max-width: 100%; flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .dd-topbar, .dd-main:has(.dd-profile-view) .dd-topbar { min-height: 6.5rem; }
}
