:root {
  color-scheme: dark;
  --bg: #22242a;
  --text: #e8eaf0;
  --muted: #a1a4ad;
  --blue: #a2c7ff;
  --raised: #363840;
  --subtle: #2c2e35;
  --rule: #444746;
  --outer: max(30px, calc((100vw - 1424px) / 2));
  --left: calc(var(--outer) + 25px);
  --article: 855px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: transparent; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.layout { margin-left: var(--left); margin-right: max(25px, calc((100vw - 1375px) / 2)); }
.header { border-bottom: 1px solid var(--rule); }
.top { height: 115px; display: flex; align-items: flex-start; padding-top: 33px; position: relative; gap: 20px; }
.brand { flex: 0 0 116px; padding: 0; margin: 13px 0 0 0; position: absolute; left: max(25px, calc(var(--outer) - 172px)); }
.search { margin-left: var(--outer); width: min(1076px, calc(100% - var(--outer) - 205px)); height: 64px; border-radius: 35px; padding: 0 14px 0 25px; display: flex; align-items: center; background: var(--raised); border: 1px solid #4a4d53; }
.search:focus-within { border-color: #757982; }
.query-wrap { flex: 1; min-width: 0; position: relative; }
.query-wrap::after { content: ""; position: absolute; pointer-events: none; inset: 0 0 0 auto; width: 67px; background: linear-gradient(90deg, transparent, var(--raised)); }
.search:focus-within .query-wrap::after { display: none; }
.search input { padding: 0; border: 0; background: transparent; width: 100%; height: 44px; font-size: 20px; outline: none; }
.icon { width: 44px; height: 42px; padding: 0; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; }
.icon:hover, .icon[aria-pressed="true"] { background-color: #43464f; }
.icon[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--blue); }
.input-mic { border-left: 1px solid #4a4d53; border-radius: 0; height: 30px; margin-left: 6px; margin-right: 7px; padding-left: 8px; }
.top-actions { position: absolute; right: 30px; top: 44px; display: flex; gap: 11px; align-items: center; }
.avatar { width: 40px; height: 40px; background: #b9340b; border-radius: 50%; font-size: 21px; margin-left: 7px; }
.navigation { display: flex; align-items: stretch; gap: 30px; height: 55px; white-space: nowrap; }
.tab { color: var(--muted); font-size: 18px; font-weight: 600; position: relative; padding: 4px 0 0; height: 55px; }
.tab:hover, .tab.active { color: var(--text); }
.tab.active::after { content: ""; height: 3px; position: absolute; inset: auto 0 0; background: var(--text); }
.has-arrow::after { content: ""; display: inline-block; vertical-align: middle; margin: 0 0 1px 8px; border: 4px solid transparent; border-bottom: 0; border-top-color: var(--muted); }
.tools-tab { margin-left: 6px; }
.pop-anchor { position: relative; }
.menu { position: absolute; z-index: 5; top: 100%; left: 0; min-width: 176px; border-radius: 10px; padding: 6px; background: var(--raised); box-shadow: 0 6px 22px #0006; font-size: 15px; white-space: nowrap; }
.top-actions .menu { left: auto; right: 0; top: calc(100% + 8px); }
.menu button, .menu a, .menu p { margin: 0; display: block; padding: 10px 12px; border-radius: 5px; text-align: left; color: var(--text); text-decoration: none; width: 100%; }
.menu button:hover, .menu a:hover { background: #4a4e58; }
.main { padding-top: 29px; }
.notice, .overview { width: min(100%, var(--article)); }
.notice { min-height: 60px; display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 0 10px; padding: 14px 20px; background: #3a3f50; border-radius: 16px; font-size: 18px; }
.text-button { color: var(--blue); padding: 0; }
.text-button:hover { text-decoration: underline; }
.overview { font-size: 20px; line-height: 30px; }
.overview-heading { height: 31px; margin-top: 9px; display: flex; align-items: center; gap: 7px; }
.overview-heading h1 { margin: 0; font-size: 18px; font-weight: 600; }
.intro { margin: 18px 0 24px; }
h2 { font-size: 25px; line-height: 30px; margin: 0 0 17px; }
.invoice { list-style-position: outside; padding-left: 27px; margin: 0; }
.invoice li { padding: 0; margin: 0 0 15px; }
.invoice li:last-child { margin: 0; }
.invoice li::marker { font-size: .85em; }
.invoice code { background: var(--subtle); color: #f1f2f6; padding: 4px 5px; border-radius: 4px; font: 16px/30px "Courier New", monospace; overflow-wrap: anywhere; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.invoice .byte-lines { display: block; max-width: 792px; }
.extra-fields { color: var(--muted); margin-block: 15px 0; font-size: 16px; }
.code-button { margin-top: 28px; display: inline-flex; gap: 10px; align-items: center; border-radius: 24px; padding: 0 15px; height: 45px; background: var(--subtle); font-size: 18px; }
.code-button:hover { background: #3b3e46; }
#source-panel { font-size: 14px; line-height: 1.6; padding: 16px; border-radius: 10px; background: #191b20; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-message { min-height: 150px; margin-top: 20px; }
.feedback { display: flex; align-items: center; gap: 19px; margin-top: 45px; min-height: 33px; }
.feedback .icon { width: 26px; height: 33px; border-radius: 8px; }
#status { font-size: 14px; color: var(--blue); }
.separator { margin-top: 22px; border-top: 1px solid var(--rule); }
.illustration { min-height: 535px; padding: 90px 0 85px 77px; }
.illustration img { height: auto; }
.footer { background: #16171a; }
.followup { position: relative; min-height: 181px; }
.followup::after { content: ""; position: absolute; z-index: 0; bottom: 65px; width: 100%; border-bottom: 1px solid var(--rule); }
.followup-frame { position: relative; z-index: 1; width: min(calc(100% + 25px), 877px); margin-left: -25px; padding: 4px 37px 42px 25px; background: #222429; }
.ask-form { background: var(--raised); border: 1px solid var(--rule); border-radius: 31px; min-height: 135px; padding: 22px 14px 12px; box-shadow: 0 5px 12px #17181d28; }
.ask-form textarea { display: block; border: 0; background: none; resize: vertical; width: 100%; height: 42px; min-height: 42px; padding: 0 10px; outline: none; font-size: 20px; }
.ask-form:focus-within { border-color: #747882; }
.ask-form textarea::placeholder, .search input::placeholder { color: var(--muted); }
.ask-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.ask-actions .icon, .send { margin-right: 8px; }
.attachment { display: grid; place-items: center; width: 60px; height: 45px; border-radius: 25px; background: #4a4d55; }
.attachment:hover { background: #525661; }
.send { border-radius: 50%; width: 42px; height: 42px; background: var(--blue); color: #22242a; font-size: 25px; }
.answer { border-radius: 16px; padding: 16px 20px; margin: 0 0 12px; color: var(--text); background: var(--raised); line-height: 1.5; overflow-wrap: anywhere; }
dialog { width: min(480px, calc(100% - 24px)); background: var(--raised); color: var(--text); padding: 25px; border-radius: 16px; border: 1px solid #666973; }
dialog::backdrop { background: #1119; }
dialog p { line-height: 1.5; }
dialog .code-button { margin-top: 0; }
@media (max-width: 1250px) {
  :root { --outer: 155px; }
  .search { width: min(1076px, calc(100% - var(--outer) - 182px)); }
  .top-actions { right: 16px; gap: 4px; }
}
@media (max-width: 900px) {
  :root { --outer: 24px; --left: 24px; }
  .top { height: 146px; padding-top: 75px; }
  .brand { left: var(--left); top: 17px; margin: 0; }
  .top-actions { top: 15px; }
  .search { width: calc(100% - var(--outer) * 2); }
  .navigation { overflow-x: auto; scrollbar-width: none; gap: 25px; }
  .navigation .pop-anchor { position: static; }
  .navigation .menu { top: 199px; left: auto; right: 16px; }
  .followup-frame { margin-left: 0; width: 100%; padding-inline: 0; }
}
@media (max-width: 520px) {
  :root { --outer: 16px; --left: 16px; }
  .layout { margin-right: 16px; }
  .search { padding-left: 16px; padding-right: 8px; height: 56px; }
  .top { height: 138px; }
  .search input, .notice, .overview { font-size: 16px; }
  .overview { line-height: 25px; }
  .invoice code { font-size: 13px; line-height: 25px; }
  h2 { font-size: 22px; }
  .intro { margin-bottom: 20px; }
  .invoice li { margin-bottom: 12px; }
  .illustration { min-height: 0; padding: 56px 0 60px; }
  .followup-frame { padding-bottom: 24px; }
  .menu { min-width: 144px; }
  .feedback .menu { left: -100px; }
}
