:root {
  --paper: #f2f2f3;
  --white: #fff;
  --ink: #1f2024;
  --muted: #84868d;
  --line: #e1e2e5;
  --blue: var(--brand-deep);
  --lime: #98d3ef;
  --sidebar: #1d1e20;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.15px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 15px;
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
button:hover {
  border-color: #a4a6ae;
  background: #f4f5f6;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #649eb9;
  outline-offset: 3px;
}
a {
  color: inherit;
}
.sidebar {
  width: 230px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  padding: 34px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #eaf2f5;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -3px;
  text-decoration: none;
  margin: 0 12px 38px;
}
.logo > span {
  font-size: 19px;
  letter-spacing: -0.7px;
  font-weight: 450;
}
.logo-dot {
  color: var(--lime);
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border-top: 1px solid #37383d;
  border-bottom: 1px solid #37383d;
  font-size: 12px;
  font-weight: 500;
}
.workspace-label small {
  display: block;
  color: #90939a;
  font-size: 10px;
  margin-top: 3px;
  font-weight: 400;
}
.workspace-avatar {
  width: 30px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #393b40;
  color: var(--lime);
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #75777f;
  margin: 32px 12px 12px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
  padding: 13px 12px;
  font-size: 12px;
  border: 0;
  text-align: left;
  border-radius: 8px;
}
.nav svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.nav.active {
  color: #292b2f;
  background: var(--lime);
  font-weight: 550;
}
.nav.active:hover {
  background: #bce5f8;
}
.nav small {
  margin-left: auto;
  font-size: 9px;
  font-weight: 400;
}
.muted {
  color: #92949c;
}
.muted small {
  color: #62656f;
}
.sidebar-note {
  margin-top: auto;
  padding: 24px 13px;
  border-top: 1px solid #37383d;
}
.note-mark {
  font-size: 24px;
  color: var(--lime);
}
.sidebar-note strong {
  display: block;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.3px;
  margin: 12px 0;
  font-weight: 450;
}
.sidebar-note p {
  font-size: 11px;
  color: #868991;
  line-height: 1.7;
  max-width: 150px;
}
.sidebar-bottom {
  padding: 20px 12px 0;
  font-size: 10px;
  color: #90939b;
  border-top: 1px solid #37383d;
  display: flex;
  align-items: center;
  gap: 6px;
}
.v-label {
  margin-left: auto;
  color: #666972;
}
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  background: #979aa2;
  border-radius: 50%;
}
.workspace {
  margin-left: 230px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7fafb;
  font-size: 11px;
  color: #898b91;
}
.breadcrumb {
  display: flex;
  gap: 16px;
  align-items: center;
}
.breadcrumb span {
  color: #c1c2c7;
}
.breadcrumb strong {
  color: #55575d;
  font-weight: 500;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.mode {
  border-radius: 6px;
  background: #ebebed;
  padding: 6px 10px;
  color: #6a6d77;
  font-size: 10px;
}
.user-avatar {
  width: 30px;
  height: 30px;
  border: 1px solid #d5d6da;
  background: #e6e7e9;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 600;
  border-radius: 50%;
}
.content {
  padding: 40px;
  max-width: 1650px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}
.eyebrow {
  color: #71747f;
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 650;
  margin: 0 0 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #828590;
}
h1 {
  font-size: clamp(25px, 2.55vw, 39px);
  letter-spacing: -1.7px;
  line-height: 1.2;
  margin: 0 0 13px;
  font-weight: 520;
}
h1 > span {
  color: #5c9ab6;
}
.subhead {
  color: #86888e;
  font-size: 12px;
  margin: 0;
}
.budget {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: #eaeaec;
  border: 1px solid #dddee1;
  padding: 12px 17px;
  border-radius: 10px;
}
.budget-icon {
  font-size: 19px;
  color: #7d818c;
}
.budget small {
  color: #82858f;
  display: block;
  font-size: 9px;
}
.budget small span {
  color: #a3a5ac;
}
.budget strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  margin-top: 3px;
}
.notice {
  font-size: 11px;
  color: #6a6d77;
  background: #eaeaec;
  border: 1px solid #dadbde;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.75;
}
.notice-icon {
  border: 1px solid #989ba4;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  font-size: 9px;
  flex-shrink: 0;
  margin-top: 2px;
}
.error {
  font-size: 12px;
  background: #fff0ec;
  color: #963c2e;
  border: 1px solid #edcec7;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.setup,
.login-card {
  display: grid;
  grid-template-columns: 32% 1fr;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 20px #27292d03;
}
.intro {
  padding: 38px 32px;
  background: #e9eaec;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.step {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #767a86;
}
.intro h2 {
  font-size: 27px;
  font-weight: 480;
  letter-spacing: -0.9px;
  line-height: 1.35;
  margin: 30px 0 18px;
}
.intro > p {
  font-size: 12px;
  color: #7b7f8a;
  line-height: 1.9;
  max-width: 220px;
}
.intro-flow {
  margin: 27px 0 40px;
  display: grid;
  gap: 16px;
}
.intro-flow > span {
  font-size: 11px;
  color: #6f737e;
  display: flex;
  align-items: center;
  gap: 11px;
}
.intro-flow i {
  width: 24px;
  height: 24px;
  background: #dedfe2;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  display: grid;
  place-items: center;
  border: 1px solid #d1d2d6;
  color: #6f737e;
}
.intro-bottom {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #d7d8dc;
}
.intro-bottom small {
  color: #848892;
  font-size: 10px;
  display: block;
}
.text-button {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 0;
  font-size: 11px;
}
.text-button:hover {
  background: none;
  text-decoration: underline;
}
.intro-bottom .text-button {
  margin-top: 8px;
}
.text-button > span {
  margin-left: 10px;
}
.quiet {
  color: var(--muted);
  font-size: 11px;
}
#brief-form {
  padding: 32px;
}
.form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 15px;
}
.form-title h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}
.form-title span {
  font-size: 9px;
  color: #9c9ea4;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
label {
  display: block;
  font-size: 10px;
  font-weight: 550;
  color: #5f626a;
}
label > span {
  font-size: 9px;
  color: #a3a5ab;
  font-weight: 400;
  margin-left: 3px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #e0e1e3;
  border-radius: 7px;
  padding: 12px;
  color: var(--ink);
  background: #fbfcfd;
  outline: none;
  font-size: 12px;
  margin-top: 7px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #8a8d97;
  box-shadow: 0 0 0 3px #e7eff3;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input::placeholder,
textarea::placeholder {
  color: #a2a5ad;
}
.full {
  grid-column: 1/-1;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  gap: 20px;
}
.form-footer > span {
  font-size: 9px;
  color: #94969e;
  display: flex;
  align-items: center;
  gap: 6px;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  padding: 12px 17px;
  font-size: 11px;
  font-weight: 500;
}
.primary:hover {
  background: #1c3947;
  border-color: #1c3947;
}
.primary span {
  margin-left: 25px;
}
.studio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 20px;
}
.project-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.project-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #e1e2e5;
  color: #6b6f79;
  border: 1px solid #d7d8db;
  border-radius: 10px;
  font-size: 24px;
}
.studio-header h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin: 0;
}
.studio-header p {
  font-size: 10px;
  color: #8b8f99;
  margin: 3px 0;
}
.actions {
  display: flex;
  gap: 8px;
}
.actions button {
  font-size: 10px;
  padding: 9px 13px;
}
.actions .export-button {
  background: #e9e9eb;
  border-color: #d8d9dc;
  color: #575a62;
}
.export-button > span {
  margin-left: 12px;
}
.status-track {
  display: flex;
  gap: 0;
  margin: 0 0 22px;
  font-size: 10px;
  color: #93969f;
  padding: 13px 16px;
  background: #eaebed;
  border: 1px solid #dddee1;
  border-radius: 9px;
}
.status-track span {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  padding-right: 12px;
}
.status-track span:not(:last-child):after {
  content: "";
  height: 1px;
  background: #d2d3d7;
  flex: 1;
  margin-left: 14px;
}
.status-track .done {
  color: #5e6169;
}
.status-track .running {
  color: var(--brand-deep);
}
.status-track .running:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #80838e;
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 20px;
}
.preview-panel,
.chat-panel {
  border: 1px solid #dedfe1;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 15px #282a2e03;
}
.panel-bar {
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 58px;
}
.tabs {
  display: flex;
  gap: 25px;
  align-self: stretch;
}
.tabs button {
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  font-size: 10px;
  color: #9598a1;
}
.tabs .selected {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 550;
}
.tabs button:hover {
  color: var(--blue);
}
.pill {
  border-radius: 5px;
  background: #eeeff0;
  padding: 4px 7px;
  color: #868993;
  font-size: 9px;
  white-space: nowrap;
}
.browser-bar {
  padding: 11px 17px;
  background: #f5f5f6;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  height: 46px;
}
.browser-dots {
  display: flex;
  gap: 4px;
}
.browser-dots i {
  width: 5px;
  height: 5px;
  background: #d0d2d6;
  border-radius: 50%;
}
.browser-bar > span {
  margin: auto;
  color: #9b9ea7;
  font-size: 9px;
}
.devices {
  display: flex;
  gap: 3px;
}
.devices button {
  padding: 4px 6px;
  border: 0;
  background: transparent;
  border-radius: 4px;
  color: #a0a2aa;
}
.devices .selected {
  color: #676b75;
  background: #dfeaef;
}
.devices svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  display: block;
}
.preview-stage {
  min-height: 615px;
  background: #e7e8ea;
  padding: 14px;
}
.preview-panel iframe {
  width: 100%;
  height: 615px;
  border: 1px solid #d9dade;
  display: block;
  background: white;
  border-radius: 5px;
  transition: width 0.25s;
}
.preview-stage.mobile iframe {
  width: 390px;
  max-width: 100%;
  margin: auto;
  border-radius: 20px;
  box-shadow: 0 8px 26px #1a2d361c;
}
.preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #93969f;
  gap: 10px;
  background: #f9f9fa;
}
.preview-footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.preview-footer small {
  font-size: 9px;
}
.empty {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  color: #8d9099;
}
.empty-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  border-radius: 17px;
  background: #dbdce0;
  border: 1px solid #ccced2;
  color: #767a86;
  display: grid;
  place-items: center;
}
.empty h3 {
  color: #5f626b;
  font-size: 16px;
  font-weight: 500;
  margin: 24px 0 8px;
}
.empty p {
  font-size: 11px;
  max-width: 320px;
}
.skeleton {
  display: grid;
  gap: 10px;
  width: 160px;
  margin-top: 20px;
}
.skeleton i {
  height: 7px;
  background: #d9dadd;
  border-radius: 4px;
  animation: pulse 1.5s ease infinite;
}
.skeleton i:nth-child(2) {
  width: 75%;
  margin: auto;
}
.skeleton i:nth-child(3) {
  width: 40%;
  margin: auto;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  height: 751px;
}
.chat-heading {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 73px;
}
.chat-heading > .dot {
  margin-left: auto;
}
.assistant-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #deeaf0;
  border: 1px solid #c8dee9;
  border-radius: 8px;
  color: #7f828d;
  font-size: 18px;
}
.chat-heading strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
}
.chat-heading small {
  font-size: 9px;
  display: block;
  margin-top: 3px;
  color: #9598a1;
}
.chat-history {
  padding: 20px 18px;
  overflow: auto;
  flex: 1;
  min-height: 180px;
  scroll-behavior: smooth;
}
.assistant-message,
.user-message {
  font-size: 11px;
  border-radius: 9px;
  padding: 13px 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  margin-bottom: 16px;
  background: #f1f1f2;
  color: #777b86;
}
.user-message {
  background: #dbe7ed;
  color: #5d6068;
  margin-left: 26px;
}
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 17px 14px;
}
.chat-suggestions button {
  font-size: 9px;
  padding: 6px 8px;
  color: #7b7f8a;
  border-color: #dedfe1;
  border-radius: 6px;
}
.question-details {
  margin: 0 17px 14px;
  border: 1px solid #d0e1e9;
  background: #f4fafc;
  border-radius: 7px;
  font-size: 10px;
  color: #7b7f8a;
  max-height: 180px;
  overflow: auto;
}
.question-details summary {
  cursor: pointer;
  padding: 10px 12px;
}
.question-details summary span {
  float: right;
  background: #f0ecd9;
  border-radius: 4px;
  padding: 0 5px;
  font-size: 9px;
}
.questions {
  font-size: 10px;
  color: #9f987a;
  padding: 0 12px 10px;
  line-height: 1.8;
}
.questions p {
  margin: 5px 0;
}
.chat-panel form {
  padding: 15px 17px;
  border-top: 1px solid var(--line);
  background: #f8fbfc;
}
.chat-panel textarea {
  margin: 0;
  border: 1px solid #dedfe2;
  background: white;
  font-size: 11px;
  min-height: 80px;
  padding: 12px;
}
.chat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  gap: 10px;
}
.chat-footer small {
  font-size: 8px;
  color: #9da0a9;
  max-width: 170px;
}
.chat-footer button {
  padding: 5px 11px;
  font-size: 17px;
}
#editor,
#sources {
  padding: 26px;
  max-height: 693px;
  overflow: auto;
}
#editor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
#editor-fields label:has(textarea) {
  grid-column: 1/-1;
}
#editor-fields h3 {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.editor-heading h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px;
}
.editor-heading p {
  font-size: 11px;
  color: #9497a1;
  margin: 0 0 24px;
}
.editor-footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.editor-footer > span {
  font-size: 9px;
  color: #92959e;
}
.editor-footer .unsaved {
  color: #b08246;
}
#dirty-dot {
  color: #b78541;
}
#sources h3,
#editor-fields h3 {
  font-size: 12px;
  font-weight: 550;
  margin: 12px 0;
}
#sources h3:not(:first-child) {
  margin-top: 25px;
}
#sources a {
  color: #676b75;
  text-decoration: none;
  font-size: 11px;
  overflow-wrap: anywhere;
}
#sources details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  color: #858993;
  font-size: 11px;
}
#sources summary {
  cursor: pointer;
}
#sources details p {
  white-space: pre-wrap;
}
#sources button {
  font-size: 10px;
  margin: 6px 0;
  width: 100%;
  text-align: left;
  padding: 12px;
  background: #f5f9fb;
}
.project-list {
  margin-top: 38px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.section-title .eyebrow {
  font-size: 8px;
  margin-bottom: 7px;
}
.section-title h3 {
  font-size: 19px;
  letter-spacing: -0.5px;
  font-weight: 500;
  margin: 0;
}
.section-title > span {
  font-size: 9px;
  color: #91949e;
  background: #e7e7e9;
  border: 1px solid #dadbde;
  border-radius: 20px;
  padding: 4px 10px;
}
#projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.project-card {
  background: white;
  border: 1px solid #dddee0;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: 0 3px 9px #27292d02;
}
.project-card:hover {
  background: #f4fcff;
  border-color: #a5a7af;
  transform: translateY(-2px);
}
.project-card:before {
  content: "↗";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 38px;
  border-radius: 8px;
  background: #e5eff3;
  color: #8b8e98;
  font-size: 20px;
}
.project-card:after {
  content: "→";
  margin-left: auto;
  font-size: 17px;
  color: #8d9099;
}
.project-card strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.project-card span {
  display: block;
  color: #9c9fa8;
  font-size: 9px;
  margin-top: 4px;
}
.projects-empty {
  grid-column: 1/-1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 30px;
  border: 1px dashed #cdced2;
  border-radius: 10px;
  background: #efeff0;
  color: #8b8e98;
}
.projects-empty > span {
  font-size: 28px;
}
.projects-empty p {
  font-size: 12px;
  margin: 0;
}
.projects-empty small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: #9fa2aa;
}
.page-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #b0b2b9;
  font-size: 9px;
  margin-top: 37px;
  padding-top: 20px;
  border-top: 1px solid #dedfe1;
}
.page-footer strong {
  font-size: 12px;
  font-weight: 550;
  color: #828691;
  letter-spacing: -0.4px;
}
.page-footer small {
  margin-left: auto;
  font-size: 8px;
}
.login-card {
  padding: 40px;
  gap: 40px;
  margin-bottom: 28px;
  background: #f9fcfe;
}
.login-card h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.35;
}
.login-card p {
  font-size: 12px;
  color: #848892;
}
.login-card form {
  max-width: 380px;
  justify-self: end;
  width: 100%;
}
.login-card label {
  margin-bottom: 18px;
}
.login-card .primary {
  width: 100%;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  left: -10000px;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1500px) {
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
  .chat-panel {
    height: 831px;
  }
  .preview-panel iframe {
    height: 695px;
  }
  .preview-stage,
  .empty {
    min-height: 695px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 195px;
    padding: 28px 14px;
  }
  .workspace {
    margin-left: 195px;
  }
  .content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 275px;
    gap: 15px;
  }
  .tabs {
    gap: 15px;
  }
  .panel-bar {
    padding: 0 15px;
  }
  .intro {
    padding: 30px 23px;
  }
  .intro h2 {
    font-size: 24px;
  }
  #brief-form {
    padding: 26px;
  }
  .actions button {
    padding: 8px 10px;
  }
  .heading {
    align-items: flex-start;
  }
  .subhead {
    max-width: 480px;
  }
  .budget {
    padding: 10px 12px;
  }
  .budget-icon {
    display: none;
  }
}
@media (max-width: 1020px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .chat-panel {
    height: 490px;
  }
  .chat-history {
    min-height: 100px;
  }
  .setup {
    grid-template-columns: 1fr;
  }
  .intro {
    padding: 27px;
    display: block;
  }
  .intro h2 {
    margin: 15px 0;
  }
  .intro h2 br {
    display: none;
  }
  .intro > p {
    max-width: 100%;
    margin: 0;
  }
  .intro-flow {
    display: flex;
    gap: 25px;
    margin: 20px 0;
  }
  .intro-bottom {
    padding-top: 15px;
  }
  .studio-header {
    flex-wrap: wrap;
  }
  .studio-header .actions {
    margin-left: auto;
  }
  .budget {
    display: none;
  }
  .heading {
    margin-bottom: 22px;
  }
  .sidebar-note {
    display: none;
  }
  .sidebar-bottom {
    margin-top: auto;
  }
  .login-card {
    grid-template-columns: 1fr 1fr;
    padding: 28px;
    gap: 25px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .content {
    padding: 25px 18px;
  }
  .topbar {
    height: 61px;
    padding: 0 18px;
  }
  .topbar .breadcrumb {
    gap: 8px;
    font-size: 10px;
  }
  .user-avatar {
    display: none;
  }
  .topbar-actions {
    gap: 10px;
  }
  .mode {
    font-size: 8px;
    padding: 5px 8px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -1.2px;
    max-width: 340px;
  }
  .subhead {
    font-size: 11px;
    line-height: 1.8;
    max-width: 310px;
  }
  .notice {
    font-size: 10px;
    margin-bottom: 23px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  #brief-form {
    padding: 24px 20px;
  }
  .form-title {
    margin-bottom: 20px;
  }
  .form-title span {
    display: none;
  }
  .intro {
    padding: 24px 20px;
  }
  .intro h2 {
    font-size: 25px;
  }
  .intro-flow {
    gap: 13px;
    justify-content: space-between;
  }
  .intro-flow > span {
    font-size: 9px;
    gap: 5px;
  }
  .intro-flow i {
    width: 19px;
    height: 19px;
  }
  .form-footer > span {
    display: none;
  }
  .form-footer {
    justify-content: flex-end;
  }
  .panel-bar {
    padding: 0 12px;
    height: 53px;
  }
  .tabs {
    gap: 18px;
  }
  .tabs button {
    font-size: 10px;
  }
  .pill {
    font-size: 8px;
  }
  .studio-header {
    gap: 17px;
  }
  .studio-header h2 {
    font-size: 22px;
  }
  .studio-header .actions {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
  }
  .actions button {
    font-size: 9px;
    flex: 1;
    white-space: nowrap;
  }
  .actions #regenerate {
    display: none;
  }
  .status-track {
    padding: 11px 10px;
    font-size: 8px;
  }
  .status-track span {
    padding-right: 4px;
  }
  .status-track span:not(:last-child):after {
    margin-left: 4px;
  }
  .preview-stage {
    padding: 8px;
  }
  .preview-panel iframe {
    height: 570px;
  }
  .preview-stage,
  .empty {
    min-height: 570px;
  }
  .preview-footer small {
    display: none;
  }
  #editor,
  #sources {
    padding: 20px;
  }
  #editor-fields {
    grid-template-columns: 1fr;
  }
  #editor-fields label {
    grid-column: 1/-1;
  }
  .editor-footer > span {
    max-width: 90px;
  }
  .editor-footer .primary {
    padding: 11px;
    font-size: 10px;
  }
  .editor-footer .primary span {
    margin-left: 10px;
  }
  .login-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .login-card form {
    max-width: none;
  }
  .page-footer {
    gap: 12px;
  }
  .page-footer small {
    display: none;
  }
  .project-list {
    margin-top: 30px;
  }
  .section-title h3 {
    font-size: 18px;
  }
}
/* Reading contrast and comfortable text sizes across the studio. */
.subhead,
.intro > p,
.login-card p {
  color: #656871;
}
.notice {
  color: #595c64;
  font-size: 12px;
}
.form-title span,
.form-footer > span,
.quiet {
  color: #676b75;
}
label {
  font-size: 12px;
  color: #565860;
}
label > span {
  color: #6e727d;
}
input,
textarea,
select {
  font-size: 13px;
}
input::placeholder,
textarea::placeholder {
  color: #6a6e78;
}
.nav {
  font-size: 13px;
}
.nav-label {
  color: #9ea0a8;
}
.muted {
  color: #a9abb2;
}
.tabs button {
  font-size: 12px;
  color: #686b75;
}
.chat-heading strong {
  font-size: 13px;
}
.chat-heading small,
.chat-footer small {
  color: #6b6f79;
}
.assistant-message,
.user-message {
  font-size: 12px;
  color: #52555d;
}
.chat-panel textarea {
  font-size: 12px;
}
.chat-suggestions button {
  font-size: 10px;
  color: #5e6169;
}
.questions {
  color: #706847;
}
.question-details {
  color: #54575f;
}
.project-card strong {
  font-size: 13px;
}
.project-card span {
  font-size: 11px;
  color: #6c6f79;
}
.studio-header p,
.browser-bar > span,
.preview-footer,
.pill {
  color: #6a6d77;
}
.editor-heading p,
.editor-footer > span {
  color: #6e717b;
}
.sidebar-note p {
  color: #a4a7af;
}
.page-footer {
  color: #6c6f79;
}
.topbar,
.mode {
  color: #5d6069;
}
.status-track {
  color: #686c76;
}
.projects-empty {
  color: #636670;
}
.intro-flow > span {
  color: #5e6169;
}
.budget small {
  color: #5d6069;
}
.budget small span {
  color: #696d77;
}
@media (max-width: 700px) {
  .tabs {
    gap: 15px;
  }
  .tabs button {
    font-size: 11px;
  }
  .notice {
    font-size: 11px;
  }
  .intro-flow > span {
    font-size: 10px;
  }
}
@media (max-width: 350px) {
  .tabs {
    gap: 10px;
  }
  .tabs button {
    font-size: 10px;
  }
  .pill {
    font-size: 8px;
    padding: 4px;
  }
  .breadcrumb {
    gap: 5px !important;
  }
  .mode {
    max-width: 120px;
    text-align: center;
  }
  .intro-flow {
    flex-wrap: wrap;
    gap: 10px;
  }
  .status-track {
    font-size: 8px;
  }
  .preview-footer {
    font-size: 8px;
  }
}

/* A dedicated login page: no workspace is visible before authentication. */
.signed-out { background: #1d1e20; }
.signed-out .sidebar, .signed-out .topbar, .signed-out .heading,
.signed-out .notice, .signed-out .page-footer { display: none; }
.signed-out .workspace { margin: 0; width: 100%; }
.signed-out .content { min-height: 100dvh; max-width: 540px; margin: auto; padding: 48px 24px; display: flex; flex-direction: column; justify-content: center; }
.signed-out #login { display: block; width: 100%; padding: 40px; border-radius: 24px; box-shadow: 0 24px 90px #0003; background: #f2f2f3; }
.signed-out #login form { margin-top: 28px; }
.signed-out #login h2 { font-size: 32px; line-height: 1.15; }
.signed-out #login .login-brand { color: #1f2024; font-size: 32px; font-weight: 800; letter-spacing: -1.5px; margin: 0 0 30px; }
.login-brand span { color: #397793; }
.signed-out #login .primary { width: 100%; margin-top: 12px; }
.signed-out #error { background: #fff3ec; }
@media (max-width: 540px) { .signed-out #login { padding: 28px; } .signed-out .content { padding: 24px 16px; } }

.profile-info{padding:20px;background:#e9f1f5;border:1px solid #c9dde6;border-radius:12px}.profile-info p{line-height:1.65}.profile-info summary{cursor:pointer;font-weight:600}.readiness{padding:16px 20px;margin-bottom:20px;border:1px solid #c9dde6;border-radius:12px;background:#e9f1f5;font-size:13px;line-height:1.6}
#program-nav{max-height:52vh;overflow-y:auto;margin-bottom:20px}#program-nav .nav{padding:11px 12px;margin-bottom:3px;font-size:13px;min-height:42px}.program-switch{max-width:440px;margin-bottom:24px}.program-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin:28px 0}.program-tile{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:14px;padding:26px;min-height:180px;border-radius:18px;background:white}.program-tile strong{font-size:20px}.program-tile span{color:#585b64}.program-tile small{margin-top:auto;color:#4a4d54}.program-card{background:white;border:1px solid var(--line);border-radius:18px;padding:28px;margin:22px 0}.program-card h3{margin-top:0}.program-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.program-heading h2{font-size:32px;line-height:1.2;margin:8px 0}.program-heading p{color:#585b64}.program-section{padding:22px 0;border-bottom:1px solid var(--line)}.program-section textarea{width:100%;margin-top:12px}.program-task{display:flex;align-items:flex-start;gap:12px;padding:12px 0}.program-task input[type=checkbox]{width:18px;min-width:18px;min-height:18px;margin-top:4px}.program-revisions{margin-top:24px}.program-revisions button{margin:10px 10px 0 0}.program-projects{display:grid;gap:12px}#program-specific-fields label{display:block;margin:0 0 20px}.signed-out .program-switch,.signed-out #program-hub,.signed-out #program-workspace{display:none!important}@media(max-width:600px){.program-card{padding:20px}.program-heading{align-items:flex-start;flex-direction:column}.program-grid{grid-template-columns:1fr}.program-switch{max-width:none}}
#program-nav .nav{width:100%;background:transparent;color:#cdcfd3;white-space:normal}#program-nav .nav:hover{background:#2d2f33;color:white}#program-nav .nav.active{background:var(--lime);color:#292b2f}
.knowledge-grid {display:grid;grid-template-columns:minmax(240px,1fr) minmax(0,2fr);gap:20px;align-items:start}
.knowledge-picks {border:1px solid #d8d9dc;border-radius:12px;padding:16px;margin:0}
.knowledge-picks label {display:flex;align-items:center;gap:10px;margin:8px 0;font-weight:400}
.knowledge-picks input[type=checkbox] {width:18px;min-width:18px;height:18px}
.knowledge-picks small {display:block;color:#676a71}
.knowledge-excerpt {white-space:pre-wrap;overflow-wrap:anywhere;background:#f2f3f4;padding:16px;border-radius:10px}
#knowledge-list .project-card {margin:12px 0 8px}
body.signed-out #knowledge-workspace {display:none!important}
@media(max-width:800px) {.knowledge-grid {grid-template-columns:1fr}}

.program-actions {display:flex;gap:8px;flex-wrap:wrap} #program-review-results {overflow-wrap:anywhere}
/* Specialized tool surfaces share authentication and storage, not a generic document screen. */
#program-workspace .program-heading h2{color:var(--tool-accent,var(--brand-deep))}
.tool-desk{border-top:4px solid var(--tool-accent,var(--brand-deep));padding-top:24px;margin-bottom:28px}.tool-desk-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.tool-desk h3{font-size:27px}.tool-desk-heading p{max-width:660px}.tool-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:22px 0}.tool-metrics>div{padding:16px;background:#f3f4f5;border:1px solid #e1e2e4;border-radius:12px}.tool-metrics strong{display:block;font-size:25px;color:var(--tool-accent)}.tool-metrics span{font-size:12px;color:#64666a}
#tool-status-filter{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}#tool-status-filter .active{background:var(--tool-accent);color:white}#tool-status-filter button{font-size:12px;padding:9px 13px}
.tool-records{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}.tool-record{padding:20px;border:1px solid #dedfe2;border-radius:16px;background:#fff;display:flex;flex-direction:column;gap:13px;min-width:0}.tool-record label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600}.tool-record input,.tool-record textarea,.tool-record select{width:100%;font:inherit;font-weight:400;padding:10px;border:1px solid #dbdce0;border-radius:8px;background:#f9f9fa}.tool-record-top{display:flex;justify-content:space-between;gap:10px;align-items:center;color:var(--tool-accent)}.tool-record-top button{padding:5px 8px;font-size:11px}.tool-record[data-status=approved]{border-color:var(--tool-accent)}.tool-record[data-status=blocked]{border-color:#b46a56}.tool-day,.tool-empty{grid-column:1/-1}.tool-day{margin:16px 0 0;font-size:20px}.tool-view-scripts,.tool-view-editing{grid-template-columns:1fr;counter-reset:scene}.tool-view-scripts .tool-record,.tool-view-editing .tool-record{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-left:5px solid var(--tool-accent)}.tool-view-scripts .tool-record-top,.tool-view-editing .tool-record-top{grid-column:1/-1}.tool-view-ads .tool-record{border-top:5px solid var(--tool-accent)}.tool-view-leads .tool-record{background:#f5f8fa}.tool-notes{border-top:1px solid #ddd;padding:20px 0}.tool-notes>summary{font-weight:600;cursor:pointer}#tool-preview-dialog{max-width:550px;width:90%;padding:30px;border:0;border-radius:18px}#tool-preview-dialog::backdrop{background:#1d1e2088}#tool-text-preview{white-space:pre-wrap;font:17px/1.7 system-ui;overflow-wrap:anywhere}
@media(max-width:600px){.tool-desk-heading{flex-direction:column}.tool-records{grid-template-columns:1fr}.tool-view-scripts .tool-record,.tool-view-editing .tool-record{grid-template-columns:1fr}.tool-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Dedicated tool routes: local agent navigation and a task-focused workspace. */
.dedicated-tool #program-nav,.dedicated-tool #program-switch-label,.dedicated-tool .sidebar-note,.dedicated-tool .sidebar>.nav-label{display:none!important}.tool-back{display:block;color:inherit;font-size:13px;margin:20px 0;text-decoration:none}.dedicated-tool .heading h1{color:var(--tool-accent)}#tool-agent-room{padding:0 6px}#tool-agent-list{display:grid;gap:10px}#tool-agent-list button{display:block;text-align:left;background:#ffffff08;color:#ecedef;border:1px solid #ffffff18;padding:15px 12px;border-radius:12px}#tool-agent-list button strong,#tool-agent-list button small{display:block}#tool-agent-list button small{font-size:11px;color:#b2b4ba;margin-top:5px}#tool-agent-list button.selected{background:#a7d8ef;color:#252629}#tool-agent-list button.selected small{color:#45474e}#tool-agent-state{font-size:11px;line-height:1.6;color:#b7b9c0;margin:18px 0}
.agent-intro{display:flex;justify-content:space-between;gap:32px;border:1px solid #dfe0e2;border-left:5px solid var(--tool-accent);background:#fff;border-radius:18px;padding:26px;margin-bottom:28px}.agent-intro h2{margin:5px 0 12px;font-size:27px}.agent-intro p{max-width:670px}.agent-intro small{color:#666970;display:block;max-width:700px}.agent-actions{display:flex;flex-direction:column;gap:10px;min-width:190px;justify-content:center}.agent-actions button:first-child{background:var(--tool-accent);color:white}.dedicated-tool #program-result{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px}.dedicated-tool #program-result>.program-heading{grid-column:1/-1}.dedicated-tool #program-editor{min-width:0}.dedicated-tool #program-result>.program-card{margin:0;align-self:start;position:sticky;top:20px;padding:20px}.dedicated-tool #program-result>.program-card h3{font-size:19px}.dedicated-tool #program-result>.program-card p{font-size:12px}.dedicated-tool .program-revisions{grid-column:1/-1}.dedicated-tool .tool-records{grid-template-columns:1fr}.dedicated-tool .program-heading>div{min-width:0}.dedicated-tool .program-actions{flex-wrap:wrap}.dedicated-tool #program-brief{border-top:3px solid var(--tool-accent)}
@media(max-width:1200px){.dedicated-tool #program-result{grid-template-columns:1fr}.dedicated-tool #program-result>.program-card{position:static}.agent-intro{flex-direction:column;gap:15px}.agent-actions{flex-direction:row;flex-wrap:wrap}}
@media(max-width:800px){.dedicated-tool .sidebar{display:block;position:static;width:100%;height:auto}.dedicated-tool .sidebar .logo,.dedicated-tool .sidebar .workspace-label,.dedicated-tool .sidebar-bottom{display:none}.dedicated-tool .workspace{margin-left:0}.dedicated-tool #tool-agent-list{grid-template-columns:repeat(3,minmax(0,1fr))}.dedicated-tool #tool-agent-list button{padding:10px;font-size:12px}.dedicated-tool #tool-agent-state{margin:8px 0}.dedicated-tool .tool-back{margin:10px 0}.agent-intro{padding:18px}}
.signed-out #tool-agent-room,.signed-out #tool-agent-intro,.signed-out.dedicated-tool .sidebar{display:none!important}
/* Recherche-Anleitung je ICP und Arbeitsregeln (research-guide.mjs) */
.research-open{margin-top:14px;background:var(--tool-accent,var(--brand-deep));border-color:var(--tool-accent,var(--brand-deep));color:white}.research-open:hover{background:#1c3845;border-color:#1c3845;color:white}
#research-rules-open{white-space:nowrap}
.research-dialog{width:min(880px,94vw);max-height:92vh;padding:0;border:0;border-radius:18px;background:var(--white);color:var(--ink);overflow:auto}.research-dialog::backdrop{background:#1d1e2088}
.research-toolbar{position:sticky;top:0;z-index:1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding:14px 22px;background:#fffffff2;border-bottom:1px solid var(--line)}.research-toolbar #research-back{margin-right:auto}
.research-status{margin:0;padding:0 30px;color:#585b64;font-size:13px}.research-status:empty{padding:0;height:0;overflow:hidden}.research-dialog .error{margin:16px 30px 0}
#research-body{padding:8px 30px 30px}
.research-header{padding:16px 0 8px;border-bottom:1px solid var(--line)}.research-header h2{margin:6px 0 10px;font-size:26px;line-height:1.25}.research-header h2:focus{outline:none}.research-meta{margin:2px 0;color:#585b64;font-size:13px}
.research-section{padding:18px 0;border-bottom:1px solid var(--line);scroll-margin-top:72px}.research-section:last-child{border-bottom:0}.research-section h3{margin:0 0 10px;font-size:18px;color:var(--tool-accent,var(--brand-deep))}
.research-block{margin:10px 0}.research-block h4{margin:0 0 4px;font-size:13px;font-weight:600}.research-block p{margin:0;line-height:1.65;overflow-wrap:anywhere}.research-hint{color:#585b64;font-size:13px}
.research-list{margin:0;padding-left:20px;line-height:1.65}.research-list li{margin:6px 0}
.research-tag{display:inline-block;min-width:70px;text-align:center;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:600}.research-tag[data-phase=web]{background:#e3eefb;color:#1f4a78}.research-tag[data-phase=gespraech]{background:#f7ead9;color:#7a4a12}
.research-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px;padding:0;list-style:none}.research-chips li{padding:3px 10px;border-radius:999px;background:#e9f1f5;border:1px solid #c9dde6;font-size:13px}
.research-copy-row{display:flex;align-items:flex-start;gap:10px}.research-copy-text{flex:1;min-width:0;margin:0;padding:10px 12px;border:1px solid #dbdce0;border-radius:8px;background:#f9f9fa;font-size:13px;line-height:1.5;overflow-wrap:anywhere;user-select:all}code.research-copy-text{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap}.research-copy{flex:none;font-size:12px;padding:9px 13px}
.research-profiles{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}.research-profiles button{font-size:12px;padding:7px 11px;text-align:left}
.research-link{display:inline-block;margin-top:4px;font-size:12px;color:var(--blue);overflow-wrap:anywhere}
@media(max-width:600px){.research-dialog{width:100vw;max-width:100vw;max-height:100vh;height:100vh;border-radius:0}#research-body{padding:4px 18px 24px}.research-toolbar{padding:10px 14px}.research-status{padding:0 18px}.research-dialog .error{margin:12px 18px 0}.research-header h2{font-size:21px}.research-copy-row{flex-direction:column}.research-copy{align-self:flex-start}}
@media(max-width:700px){#research-rules-open{white-space:normal;max-width:120px;text-align:right;line-height:1.3}}

/* Mehrseitige Websites: Seitenplan im Briefing, Seitenauswahl im Studio */
.page-plan {border:1px solid #d8d9dc;border-radius:12px;padding:16px;margin:0;display:none}
#brief-form:has(select[name=kind] option[value=website]:checked) .page-plan {display:block}
.page-plan ol {margin:10px 0;padding-left:22px;display:grid;gap:8px}
.page-plan li {display:flex;align-items:center;gap:10px}
.page-plan li input {flex:1}
.page-plan li small {color:#676a71;white-space:nowrap}
.page-plan-actions {display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.page-plan-actions input {flex:1;min-width:180px}
.page-pick {display:flex;align-items:center;gap:8px;font-size:10px;margin-left:auto;margin-right:10px}
.page-pick select {font-size:11px;padding:4px 6px;max-width:180px}
.page-group {display:contents}
.page-group[hidden] {display:none}
.page-manager {grid-column:1/-1;display:grid;gap:8px}
.page-manager ul {list-style:none;margin:0;padding:0;display:grid;gap:6px}
.page-manager li {display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}
.page-manager .page-plan-actions input {font-size:12px}
.editor-note {grid-column:1/-1;font-size:12px;color:#5f626a;margin:0}
/* Messung SEO & GEO (public/messung.mjs) */
.messung{grid-column:1/-1;background:#fff;border:1px solid var(--line);border-top:4px solid var(--tool-accent,var(--brand-deep));border-radius:18px;padding:26px;margin:22px 0;min-width:0}.messung h3{margin:4px 0 8px;font-size:24px;color:var(--tool-accent,var(--brand-deep))}.messung h4{margin:0 0 10px;font-size:18px}.messung h5{margin:18px 0 8px;font-size:15px}.messung-block{border-top:1px solid var(--line);padding:20px 0}.messung-zeile{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:10px 0}.messung-zeile input{flex:1 1 220px;padding:10px;border:1px solid #dbdce0;border-radius:8px}.messung-raster{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:14px 0}.messung-raster label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600}.messung-raster input,.messung-raster textarea{font:inherit;font-weight:400;padding:10px;border:1px solid #dbdce0;border-radius:8px;background:#f9f9fa}.messung-breit{grid-column:1/-1}.messung-hosts{list-style:none;padding:0;margin:10px 0;display:grid;gap:6px}.messung-hosts li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;background:#f3f4f5;border-radius:8px;overflow-wrap:anywhere}.messung-klein{font-size:12px;color:#585b64}button.messung-klein{padding:5px 9px}.messung-kennzahlen{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:12px 0}.messung-kennzahlen>div{padding:14px;background:#f3f4f5;border:1px solid #e1e2e4;border-radius:12px}.messung-kennzahlen strong{display:block;font-size:22px;color:var(--tool-accent,var(--brand-deep))}.messung-kennzahlen span{font-size:12px;color:#64666a}.messung-status{min-height:1.4em;color:#585b64}.messung-hinweis{padding:12px 14px;background:#eef4f9;border:1px solid #cfdeea;border-radius:10px;margin:10px 0}.messung-hinweis p{margin:6px 0 0}.messung-warnung{padding:8px 12px;background:#fbf4e4;border:1px solid #ecd9a8;border-radius:8px}.messung-ok{color:#2d596d}.messung-gefahr{border-color:#b46a56;color:#8a3d2b}.messung-hash{font:12px/1.5 ui-monospace,monospace;overflow-wrap:anywhere;color:#585b64}.messung-url{overflow-wrap:anywhere;font-weight:600}.messung-seiten,.messung-antworten{padding-left:20px;display:grid;gap:10px}.messung-seiten ul{margin:4px 0 0;font-size:13px}.messung-roh{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f4f5;padding:10px;border-radius:8px}.messung-einfrieren{margin-top:18px;padding-top:14px;border-top:1px dashed var(--line)}.messung-check{display:flex;gap:8px;align-items:center;margin-bottom:10px}.messung-tabelle{width:100%;border-collapse:collapse;margin:14px 0;font-size:13px}.messung-tabelle caption{text-align:left;font-weight:600;margin-bottom:6px}.messung-tabelle th,.messung-tabelle td{text-align:left;padding:7px 8px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.messung-tabelle td{white-space:nowrap}.messung-formel{margin:10px 0}.messung-pruefung p{margin:6px 0}@media(max-width:600px){.messung{padding:18px}.messung-tabelle td{white-space:normal}}
/* Funktionen und ICPs (public/funktionen.mjs) */
#program-functions{margin-top:16px}
.funktionen summary{cursor:pointer;font-weight:700}
.funktionen h4{margin:16px 0 6px}
.funktionen-liste{margin:0;padding-left:18px}
.funktionen-liste>li{margin:8px 0}
.funktionen-liste ul{margin:4px 0 0;padding-left:18px;color:var(--muted,#5e5f64);font-size:.92em}
.funktion-passt>strong{color:var(--tool-accent,var(--brand-deep))}
.messung-meo{border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin:0 0 12px}
.messung-meo legend{font-weight:700;padding:0 6px}

/* ==========================================================================
   i2B CI (2026-11-10): Farben, Schriften und Formen wie i2bmedia.com.
   Liegt bewusst am Ende und überschreibt nur das Aussehen, keine Abläufe.
   ========================================================================== */
@font-face{font-family:"Inter";src:url("/fonts/inter-latin.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";src:url("/fonts/inter-latin-ext.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Outfit";src:url("/fonts/outfit-latin.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Outfit";src:url("/fonts/outfit-latin-ext.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Soehne Breit";src:url("/fonts/soehne-breit-halbfett.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}

:root{
  --brand:#018fd2;--brand-deep:#0074ac;--brand-ink:#0a6d9e;--brand-tint:#e3f3fb;--navy:#012d6a;--navy-deep:#011f4b;
  --grad:linear-gradient(152deg,#0296e2 0%,#00ddff 45.7%,#005aa2 97.1%);
  --paper:#f5f6f8;--white:#fff;--ink:#181818;--muted:#64646d;--gray:#5c5c63;--line:#e4e4e1;--soft:#f0f0ee;
  --blue:var(--brand-deep);--lime:var(--brand-tint);--sidebar:var(--navy);--tool-accent:var(--brand-deep);
  --sh:0 18px 50px rgba(25,25,25,.09);--sh-sm:0 8px 26px rgba(25,25,25,.07);--sh-xs:0 2px 10px rgba(25,25,25,.05);
  --r:22px;--r-sm:14px;--spring:cubic-bezier(.3,1.4,.4,1);
  --font:"Inter","Host Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif;--font-display:"Soehne Breit","Outfit","Inter",sans-serif;
}
body{background:var(--paper);color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.6;letter-spacing:-.005em;font-feature-settings:"cv05" 1,"ss03" 1;-webkit-font-smoothing:antialiased}
::selection{background:var(--brand);color:#fff}
h1,h2,.program-card>h3,.tool-desk h3,.section-title h3,.studio-header h2,.research-header h2,.messung h3{font-family:var(--font-display);font-weight:600;letter-spacing:-.04em;line-height:1.14;color:var(--ink)}
h1{font-size:clamp(28px,2.7vw,42px);margin-bottom:12px}
h1>span,.intro h2 span{color:var(--brand)}
.program-heading h2{font-size:clamp(26px,2.4vw,34px)}
.program-card>h3{font-size:19px;margin-bottom:10px}

/* Buttons: Pillen wie auf der Website */
button{border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--ink);padding:10px 18px;font-weight:550;transition:transform .25s var(--spring),box-shadow .25s,background .2s,border-color .2s,color .2s}
button:hover{border-color:var(--ink);background:#fff;transform:translateY(-1px)}
button:active{transform:scale(.97)}
button:disabled,button:disabled:hover{transform:none;border-color:var(--line)}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid rgba(1,143,210,.45);outline-offset:3px}
.primary,.agent-actions button:first-child,.research-open,#tool-status-filter .active{background:var(--brand-deep);border-color:var(--brand-deep);color:#fff;box-shadow:0 10px 26px rgba(1,143,210,.28)}
.primary{padding:13px 24px;font-size:13px;font-weight:600}
.primary:hover,.agent-actions button:first-child:hover,.research-open:hover{background:#005e8c;border-color:#005e8c;color:#fff;box-shadow:0 14px 34px rgba(1,143,210,.38)}
.text-button,.text-button:hover{border:0;box-shadow:none;transform:none;padding:0;color:var(--brand-deep);font-weight:550}
.tabs button,.tabs button:hover,.devices button{border-radius:0;transform:none;box-shadow:none}
.devices button{border-radius:999px}
.devices .selected{background:var(--brand-tint);color:var(--brand-deep)}

/* Formulare */
label{color:var(--gray);font-weight:600;font-size:12px}
input,textarea,select{border:1.5px solid var(--line);border-radius:var(--r-sm);background:#fff;color:var(--ink);padding:12px 14px;transition:border-color .2s,box-shadow .2s}
input:hover,textarea:hover,select:hover{border-color:#cfd0d4}
input:focus,textarea:focus,select:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(1,143,210,.14)}
input::placeholder,textarea::placeholder{color:#9a9ba3}
input[type=checkbox],input[type=radio]{accent-color:var(--brand-deep)}
.tool-record input,.tool-record textarea,.tool-record select,.messung-raster input,.messung-raster textarea,.messung-zeile input,.research-copy-text{border:1.5px solid var(--line);border-radius:12px;background:#fff}

/* Seitenleiste: Navy mit Markenleuchten */
.sidebar{background:radial-gradient(120% 60% at 0% 0%,rgba(2,150,226,.28),transparent 60%),radial-gradient(90% 50% at 100% 100%,rgba(0,221,255,.12),transparent 60%),linear-gradient(180deg,var(--navy) 0%,var(--navy-deep) 100%);color:#fff;padding:30px 16px}
.logo{display:inline-flex;align-items:center;gap:10px;margin:0 10px 34px;color:#fff;text-decoration:none;font-family:"Outfit",sans-serif;font-weight:800;font-size:34px;letter-spacing:-.04em;line-height:1}
.brandmark{position:relative;display:block;width:1.4404em;height:1.26em;margin:-.14em 0 -.12em;flex:none;font-family:"Outfit",sans-serif;font-weight:800;letter-spacing:-.04em}
.brandmark .lg-i,.brandmark .lg-b{position:absolute;top:0;font-size:1em;line-height:1.26em}
.brandmark .lg-i{left:0}.brandmark .lg-b{left:.7872em}
.brandmark .lg-2{position:absolute;left:.249em;top:.2757em;width:.5666em;height:.7243em;margin:0}
.logo>.brandmark,.login-brand>.brandmark{font-size:40px;font-weight:800;letter-spacing:-.04em}
.brandmark .lg-i,.brandmark .lg-b{color:inherit}
.logo>.logo-word,.login-brand>.logo-word{font-size:11px;letter-spacing:.16em}
.logo-word{font-family:var(--font);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.72);padding:4px 10px;border:1px solid rgba(255,255,255,.22);border-radius:999px;align-self:center}
.workspace-label{border-color:rgba(255,255,255,.1);padding:14px 8px}
.workspace-label small{color:rgba(255,255,255,.55)}
.workspace-avatar{width:34px;height:34px;border-radius:12px;background:var(--grad);color:#fff;font-family:"Outfit",sans-serif;font-weight:800;font-size:11px;letter-spacing:-.02em}
.nav-label{color:rgba(255,255,255,.45);letter-spacing:.16em;font-size:10px;font-weight:600}
.nav,#program-nav .nav{border:0;border-radius:999px;color:rgba(255,255,255,.74);background:transparent;transform:none;box-shadow:none}
.nav:hover,#program-nav .nav:hover{background:rgba(255,255,255,.08);color:#fff;transform:none}
.nav.active,#program-nav .nav.active,.nav.active:hover{background:#fff;color:var(--navy);font-weight:600;box-shadow:0 8px 22px rgba(0,0,0,.18)}
.muted{color:rgba(255,255,255,.45)}.muted small{color:rgba(255,255,255,.4)}
.sidebar-note{border-color:rgba(255,255,255,.1)}
.note-mark{color:#00ddff}
.sidebar-note strong{font-family:var(--font-display);font-weight:600;letter-spacing:-.03em;font-size:16px;line-height:1.35}
.sidebar-note p{color:rgba(255,255,255,.6)}
.sidebar-bottom{border-color:rgba(255,255,255,.1);color:rgba(255,255,255,.6)}
.v-label{color:rgba(255,255,255,.4)}
.dot{background:#2bd67b;box-shadow:0 0 0 3px rgba(43,214,123,.18)}
#program-nav{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent}
#tool-agent-list button{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:16px;transform:none}
#tool-agent-list button:hover{background:rgba(255,255,255,.12)}
#tool-agent-list button small{color:rgba(255,255,255,.6)}
#tool-agent-list button.selected{background:#fff;color:var(--navy);border-color:#fff}
#tool-agent-list button.selected small{color:var(--brand-ink)}
#tool-agent-state{color:rgba(255,255,255,.6)}
.tool-back{color:rgba(255,255,255,.8)}

/* Kopfzeile: Glas wie die Website-Navigation */
.topbar{position:sticky;top:0;z-index:4;height:72px;background:rgba(245,246,248,.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid rgba(0,0,0,.05);color:var(--muted);font-size:12px}
.breadcrumb span{color:#c4c5ca}
.breadcrumb strong{color:var(--ink);font-weight:600}
.mode{border-radius:999px;background:var(--brand-tint);color:var(--brand-ink);font-weight:600;font-size:11px;padding:6px 12px}
.user-avatar{width:34px;height:34px;border:0;background:var(--navy);color:#fff;font-family:"Outfit",sans-serif;font-weight:800;font-size:10px}

/* Inhalt */
.content{padding:44px 44px 56px}
.eyebrow{color:var(--brand-deep);font-size:11px;letter-spacing:.14em;font-weight:650}
.eyebrow>span{background:var(--brand);box-shadow:0 0 0 4px rgba(1,143,210,.15)}
.subhead,.intro>p,.login-card p,.program-heading p{color:var(--gray);font-size:14px}
.budget{background:#fff;border:1px solid rgba(0,0,0,.05);border-radius:999px;padding:10px 20px 10px 12px;box-shadow:var(--sh-xs)}
.budget-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--grad);color:#fff;font-size:15px}
.budget small,.budget small span{color:var(--muted)}
.budget strong{font-weight:650;font-variant-numeric:tabular-nums}
.notice{background:var(--brand-tint);border:0;border-radius:var(--r-sm);color:var(--brand-ink);font-size:13px;padding:14px 18px}
.notice-icon{border-color:var(--brand);color:var(--brand-deep);font-weight:700}
.error{border-radius:var(--r-sm);border:0;background:#fdeeee;color:#a3271d}

/* Karten */
.program-card,.program-tile,.agent-intro,.messung,.preview-panel,.chat-panel,.setup,.project-card,.tool-record{border:1px solid rgba(0,0,0,.06);border-radius:var(--r);background:#fff;box-shadow:var(--sh-xs)}
.program-card{padding:30px}
.program-card .program-card{box-shadow:none;background:var(--paper);border-color:transparent}
.program-tile{position:relative;overflow:hidden;padding:28px;min-height:190px;transition:transform .3s var(--spring),box-shadow .3s,border-color .2s}
.program-tile:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--grad);opacity:0;transition:opacity .25s}
.program-tile:hover{transform:translateY(-4px);box-shadow:var(--sh);border-color:rgba(1,143,210,.25)}
.program-tile:hover:before{opacity:1}
.program-tile strong{font-family:var(--font-display);font-weight:600;letter-spacing:-.035em;font-size:20px;line-height:1.2}
.program-tile span{color:var(--gray)}
.program-tile small{color:var(--brand-deep);font-weight:600}
.project-card{border-radius:18px;transition:transform .25s var(--spring),box-shadow .25s,border-color .2s}
.project-card:hover{background:#fff;border-color:rgba(1,143,210,.35);box-shadow:var(--sh-sm)}
.project-card:before{background:var(--brand-tint);color:var(--brand-deep);border-radius:12px}
.project-card:after{color:var(--brand-deep)}
.project-card span{color:var(--muted)}
.projects-empty{border:1.5px dashed #d5d6da;background:#fff;border-radius:var(--r);color:var(--muted)}
.agent-intro{border-left:0;padding:30px;background:linear-gradient(135deg,#fff 55%,var(--brand-tint))}
.agent-intro small{color:var(--muted)}
.tool-desk{border-top:0;padding-top:4px}
.tool-desk h3{font-size:26px}
.tool-metrics>div,.messung-kennzahlen>div{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:18px;box-shadow:var(--sh-xs)}
.tool-metrics strong,.messung-kennzahlen strong{font-family:var(--font-display);font-weight:600;letter-spacing:-.03em;color:var(--brand-deep)}
.tool-metrics span,.messung-kennzahlen span{color:var(--muted)}
.tool-record{border-radius:18px}
.tool-record[data-status=approved]{border-color:var(--brand);box-shadow:0 0 0 3px rgba(1,143,210,.1)}
.tool-view-scripts .tool-record,.tool-view-editing .tool-record{border-left:4px solid var(--brand)}
.tool-view-ads .tool-record{border-top:4px solid var(--brand)}
.tool-view-leads .tool-record{background:#fff}
.messung{border-top:0}
.profile-info,.readiness,.research-chips li{background:var(--brand-tint);border-color:transparent;border-radius:var(--r-sm)}
.knowledge-picks,.page-plan,.messung-meo{border:1.5px solid var(--line);border-radius:var(--r-sm)}
.knowledge-excerpt,.messung-hosts li,.messung-roh{background:var(--paper);border-radius:12px}
.messung-hinweis{background:var(--brand-tint);border:0;border-radius:var(--r-sm)}
.status-track{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:999px;padding:12px 22px}
.status-track .running{color:var(--brand-deep)}
.status-track .running:before{background:var(--brand)}
.status-track .done{color:var(--ink)}
.pill,.section-title>span{border-radius:999px;background:var(--brand-tint);border:0;color:var(--brand-ink);font-weight:600}
.tabs .selected{color:var(--brand-deep);border-bottom-color:var(--brand)}
.tabs button{color:var(--muted)}
.preview-stage{background:var(--soft)}
.preview-panel iframe{border-color:var(--line);border-radius:12px}
.assistant-message{background:var(--paper);color:var(--ink);border-radius:18px 18px 18px 6px}
.user-message{background:var(--brand-deep);color:#fff;border-radius:18px 18px 6px 18px}
.assistant-avatar{background:var(--grad);border:0;color:#fff;border-radius:12px}
.chat-suggestions button{border-radius:999px;color:var(--brand-deep);border-color:var(--line)}
.empty-icon{background:var(--brand-tint);border:0;color:var(--brand-deep);border-radius:20px}
.empty h3{color:var(--ink)}
#tool-status-filter button{border-radius:999px}
#tool-preview-dialog,.research-dialog{border-radius:28px;box-shadow:0 40px 120px rgba(1,31,75,.35)}
#tool-preview-dialog::backdrop,.research-dialog::backdrop{background:rgba(1,31,75,.45);backdrop-filter:blur(4px)}
.research-section h3,.funktion-passt>strong{color:var(--brand-deep)}
.research-link{color:var(--brand-deep)}
.page-footer{border-color:var(--line);color:var(--muted)}
.page-footer strong{color:var(--ink);font-family:"Outfit",sans-serif;font-weight:800}
details>summary{cursor:pointer}

/* Anmeldung: dunkle Bühne wie der Website-Hero */
.signed-out{background:radial-gradient(70% 55% at 15% 10%,rgba(2,150,226,.55),transparent 65%),radial-gradient(60% 50% at 90% 85%,rgba(0,221,255,.28),transparent 60%),linear-gradient(160deg,var(--navy) 0%,var(--navy-deep) 100%);background-attachment:fixed}
.signed-out #login{background:#fff;border:0;border-radius:32px;box-shadow:0 40px 120px rgba(0,10,30,.45);padding:44px}
.signed-out #login .login-brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-family:"Outfit",sans-serif;font-size:38px;font-weight:800;letter-spacing:-.04em;margin:0 0 30px}
.signed-out #login .login-brand .logo-word{color:var(--brand-deep);border-color:var(--line)}
.signed-out #login h2{font-family:var(--font-display);font-size:34px;letter-spacing:-.045em}
.signed-out #login .primary{margin-top:16px;padding:15px 28px;font-size:14px}
.signed-out #error{background:#fdeeee}

@media (max-width:1200px){.sidebar{padding:26px 12px}.logo{font-size:30px}}
@media (max-width:700px){.content{padding:26px 18px 40px}.topbar{height:62px}.program-card{padding:22px}.signed-out #login{padding:28px;border-radius:24px}.status-track{border-radius:var(--r-sm)}}
@media (prefers-reduced-motion:reduce){button:hover,.program-tile:hover,.project-card:hover{transform:none}}
.dedicated-tool #program-brief{border-top:1px solid rgba(0,0,0,.06)}
.dedicated-tool .heading h1,#program-workspace .program-heading h2{color:var(--ink)}
.intro{background:linear-gradient(180deg,var(--brand-tint),#fff);border-right:1px solid rgba(0,0,0,.05)}
.intro-flow i{background:#fff;border:1px solid rgba(1,143,210,.25);color:var(--brand-deep)}
.intro-bottom{border-color:rgba(1,143,210,.18)}
.step,.intro-flow>span,.intro-bottom small{color:var(--brand-ink)}
@media (max-width:700px){.mode{white-space:nowrap;font-size:10px;padding:5px 10px}.breadcrumb{font-size:0!important}.breadcrumb strong{font-size:13px}.breadcrumb span{display:none}}
@media (max-width:420px){.mode{display:none}}
