/* aurora/site.css */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url(/aurora/assets/Bricolage-latin.woff2) format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url(/aurora/assets/DM-Sans-latin.woff2) format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #fbf9f7;
  --surface: #fff;
  --ink: #281d1a;
  --muted: #746b66;
  --line: #e4ddd7;
  --berry: #800000;
  --berry-dark: #680000;
  --berry-hover: #990f12;
  --rose: #f3e9e5;
  --coral: #eb826e;
  --green: #386951;
  --shadow: 0 12px 35px #30221b0a;
  --heading: "Bricolage Grotesque", Bricolage, "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
body:has(#modal-root .modal-backdrop) {
  overflow: hidden;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
h1 {
  font-size: 48px;
  font-weight: 650;
}
h2 {
  font-size: 30px;
  font-weight: 650;
}
h3 {
  font-size: 21px;
  font-weight: 650;
}
p {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid #9d3232;
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #80000033;
  outline-offset: 1px;
  border-color: var(--berry);
}
[hidden] {
  display: none !important;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  stroke-width: 1.65;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 11px 18px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  background: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition:
    transform 0.18s,
    background 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
}
.btn:hover {
  border-color: #c4bfbb;
  background: #fffdfd;
  box-shadow: 0 3px 9px #30221b08;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px #301a1218;
}
.btn.primary {
  background: var(--berry);
  border-color: var(--berry);
  color: #fff;
  box-shadow: 0 3px 0 #680000;
}
.btn.primary:hover {
  background: var(--berry-hover);
}
.btn.primary:active {
  box-shadow: 0 1px 0 #680000;
}
.btn.quiet {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.btn.small {
  min-height: 44px;
  padding: 7px 11px;
  font-size: 12px;
}
.btn.danger {
  color: #a62c37;
}
.btn.light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  box-shadow: 0 4px 14px #170d0814;
}
.btn.full {
  width: 100%;
}
.text-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--berry);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link .icon {
  width: 17px;
  height: 17px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--berry);
}
.muted {
  color: var(--muted);
}
.small-text {
  font-size: 12px;
}
.line {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.stack {
  display: grid;
  gap: 18px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
}
.right {
  text-align: right;
}
.no-wrap {
  white-space: nowrap;
}
.block {
  display: block;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rose);
  color: #6d1414;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.pill.neutral {
  background: #f3f2f2;
  color: #5f5753;
}
.pill.green {
  background: #eaf3ed;
  color: #386951;
}
.pill.amber {
  background: #fbf0dc;
  color: #8a5f23;
}
.dot {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.count {
  font-family: var(--body);
  font-size: 12px;
  background: #eeeceb;
  border-radius: 5px;
  padding: 2px 6px;
  letter-spacing: 0;
  font-weight: 500;
  color: #6e6561;
}
.avatar {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eee2dc;
  color: var(--berry);
  font-weight: 650;
  font-size: 12px;
  border: 2px solid white;
  flex-shrink: 0;
}
.avatar.big {
  width: 58px;
  height: 58px;
  font-size: 22px;
}
.avatar.square {
  border-radius: 10px;
}
.sample-banner {
  min-height: 34px;
  padding: 6px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  background: #eee8e2;
  color: #655047;
  font-size: 11px;
  border-bottom: 1px solid #d9ccc4;
}
.sample-banner select {
  font: inherit;
  color: #655047;
  background: white;
  border: 1px solid #d9ccc4;
  border-radius: 4px;
  padding: 2px 6px;
  max-width: 160px;
}
.sample-banner button {
  font: inherit;
  background: none;
  border: 0;
  text-decoration: underline;
  color: inherit;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  padding: 0 max(28px, calc((100vw - 1320px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #fffcfbd9;
  position: relative;
  z-index: 30;
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--heading);
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.05em;
}
.brand img {
  width: 34px;
  height: 44px;
  object-fit: contain;
}
.brand-mark {
  width: 28px;
  height: 32px;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-right: auto;
  margin-left: 30px;
}
.topnav a {
  font-size: 13px;
  font-weight: 550;
  color: #7e7a78;
  position: relative;
  height: 82px;
  display: flex;
  align-items: center;
}
.topnav a.active {
  color: var(--ink);
}
.topnav a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--berry);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 4px;
}
.profile-button span:last-child {
  font-size: 12px;
}
.menu-button {
  display: none;
}
.mobile-nav {
  display: none;
}
.page {
  max-width: 1320px;
  padding: 52px 40px 76px;
  margin: 0 auto;
}
.page.narrow {
  max-width: 850px;
}
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 31px;
}
.page-title p {
  margin-top: 11px;
  max-width: 530px;
  font-size: 14px;
}
.breadcrumb {
  font-size: 12px;
  color: #86807d;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb .icon {
  width: 15px;
  height: 15px;
}
.breadcrumb a:hover {
  color: var(--berry);
}
@keyframes arrive {
  from {
    opacity: 0.5;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero {
  min-height: 460px;
  height: 62vh;
  max-height: 640px;
  position: relative;
  overflow: hidden;
  background: #350909;
}
.hero-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  filter: hue-rotate(9deg) saturate(0.76) brightness(0.88);
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #230505a8, #50070724 75%),
    linear-gradient(0deg, #2003035c, transparent 55%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  padding: 72px 40px 90px;
  margin: 0 auto;
  color: white;
}
.hero-content h1 {
  font-size: clamp(52px, 5.7vw, 82px);
  max-width: 650px;
  line-height: 1.02;
  font-weight: 580;
  letter-spacing: -0.058em;
  text-shadow: 0 2px 30px #22070722;
}
.hero-content p {
  color: #f6eee8ed;
  font-size: 18px;
  max-width: 370px;
  margin: 24px 0 30px;
  line-height: 1.6;
}
.hero-content .btn {
  min-width: 176px;
}
.hero-footer {
  position: absolute;
  bottom: 26px;
  z-index: 3;
  left: max(40px, calc((100vw - 1240px) / 2));
  right: max(40px, calc((100vw - 1240px) / 2));
  display: flex;
  justify-content: space-between;
  color: #eee0d5d9;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.hero-footer button {
  color: inherit;
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font: inherit;
}
.home-collection {
  padding-top: 44px;
}
.home-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.home-heading h2 {
  font-size: 32px;
}
.home-heading p {
  font-size: 13px;
  margin-top: 8px;
}
.home-build {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 52px;
  padding: 42px 0 0;
}
.home-build h2 {
  max-width: 370px;
  font-size: 39px;
}
.home-build p {
  max-width: 430px;
  margin-bottom: 20px;
}
.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 25px 0 34px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #96908d;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.directory-tools {
  margin-bottom: 26px;
}
.search-line {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  flex: 1;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.search:focus-within {
  border-color: #9d3232;
  box-shadow: 0 0 0 3px #8000000a;
}
.search .icon {
  color: #a39a95;
  margin-left: 17px;
}
.search input {
  min-width: 0;
  width: 100%;
  padding: 15px 16px 15px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}
.search input::placeholder {
  color: #aba4a0;
}
.search input:focus {
  outline: none;
}
.search-shortcut {
  border: 1px solid #ece9e7;
  border-radius: 4px;
  margin-right: 15px;
  padding: 1px 5px;
  font-size: 10px;
  color: #b1aba8;
}
.sort-select {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0 15px;
  border-radius: 8px;
  color: #67615c;
  min-width: 150px;
  font-size: 12px;
}
.browse-lower {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex;
  gap: 29px;
}
.tab {
  border: 0;
  background: none;
  padding: 0 0 14px;
  font-size: 13px;
  color: #908a87;
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}
.tab.active {
  color: var(--berry);
  font-weight: 650;
}
.tab.active:after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  background: var(--berry);
}
.categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 21px 0 0;
}
.category {
  border: 1px solid #e7e4e2;
  border-radius: 6px;
  background: white;
  padding: 7px 13px;
  font-size: 11px;
  color: #625a56;
  min-height: 44px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.category.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.category:hover {
  border-color: #baada6;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
}
.project-card {
  min-width: 0;
  position: relative;
}
.card-preview {
  aspect-ratio: 16/10;
  background: #efeceb;
  border: 1px solid #ece9e7;
  border-radius: 11px;
  overflow: hidden;
  position: relative;
  display: block;
  isolation: isolate;
}
.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.3s;
}
.card-preview:hover img {
  transform: scale(1.035);
  filter: saturate(1.04);
}
.card-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: white;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px #30221b10;
  transform: translateY(4px);
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.card-preview:hover .card-open,
.card-preview:focus-visible .card-open {
  opacity: 1;
  transform: translateY(0);
}
.card-preview .image-fallback {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f2ece5, #e7dfd5);
  color: #998d86;
  font-family: var(--heading);
  font-size: 62px;
}
.card-preview .sample-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  background: #fffffff0;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 9px;
  color: #88817d;
}
.card-info {
  padding: 17px 2px 0;
}
.card-title-line {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.card-info :is(h2, h3) {
  font-size: 24px;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.card-category {
  font-size: 10px;
  color: #928984;
}
.card-info p {
  font-size: 12px;
  line-height: 1.55;
  margin: 7px 0 14px;
  min-height: 19px;
  color: #655d58;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ece9e8;
  padding-top: 11px;
  color: #6f6662;
  font-size: 10px;
}
.card-bottom a {
  color: var(--berry);
  font-size: 11px;
  font-weight: 600;
}
.card-bottom a .icon {
  width: 14px;
  height: 14px;
}
.card-state {
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-state .dot {
  background: #7f9d86;
}
.empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 58px 25px;
  text-align: center;
  background: #fffdfb;
  grid-column: 1/-1;
}
.empty .empty-symbol {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f4f1ef;
  color: #a2948c;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.empty :is(h1, h2, h3) {
  font-size: 23px;
  margin-bottom: 9px;
}
.empty p {
  font-size: 13px;
  max-width: 380px;
  margin: 0 auto 20px;
}
.empty .actions {
  justify-content: center;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.notice {
  padding: 14px 17px;
  background: #faf1e6;
  border: 1px solid #f0dfc8;
  border-radius: 8px;
  font-size: 12px;
  color: #8b6339;
  margin-bottom: 22px;
  line-height: 1.6;
}
.notice.info {
  background: #f4efea;
  border-color: #e3d9d0;
  color: #705e52;
}
.notice.error {
  background: #fff1f0;
  border-color: #f2d3d1;
  color: #9b4345;
}
.notice.success {
  background: #eef5f0;
  border-color: #d9e9de;
  color: #4a7659;
}
.notice a,
.notice button {
  color: inherit;
  text-decoration: underline;
}
.loading {
  min-height: 360px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 16px;
  color: #9f9189;
}
.loading .brand {
  justify-content: center;
}
.loading p {
  font-size: 12px;
}
.loading-bar {
  width: 120px;
  height: 2px;
  background: #ebe7e4;
  margin: auto;
  overflow: hidden;
}
.loading-bar:after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--berry);
  animation: loading 1.4s infinite ease-in-out;
}
@keyframes loading {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(350%);
  }
}
.project-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.project-heading h1 {
  font-size: 52px;
  margin: 8px 0 12px;
}
.project-heading p {
  max-width: 600px;
  font-size: 15px;
}
.project-hero {
  border-radius: 13px;
  border: 1px solid var(--line);
  aspect-ratio: 16/7.8;
  overflow: hidden;
  background: #efeceb;
  margin-bottom: 35px;
  position: relative;
}
.project-hero img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.project-hero .image-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  font: 90px var(--heading);
  color: #b4aba5;
}
.project-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 70px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 25px;
}
.section-heading h3 {
  font-size: 21px;
}
.body-copy {
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
  color: #7e7875;
}
.project-section {
  margin-bottom: 37px;
}
.side-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.side-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.side-card p {
  font-size: 12px;
  margin-bottom: 18px;
  line-height: 1.7;
}
.role-row {
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edeae9;
  font-size: 13px;
}
.role-row .icon {
  color: var(--berry);
  width: 15px;
}
.person {
  display: flex;
  align-items: center;
  gap: 11px;
}
.person strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.person small {
  font-size: 11px;
  color: #9c9490;
  display: block;
}
.comment {
  border-bottom: 1px solid #ece9e8;
  padding: 20px 0;
}
.comment:first-child {
  padding-top: 0;
}
.comment-body {
  font-size: 13px;
  color: #6b6664;
  white-space: pre-line;
  margin: 12px 0;
  line-height: 1.7;
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #9d9692;
}
.comment-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin: 20px 0;
}
.comment-form textarea {
  border: 0;
  padding: 0;
  resize: vertical;
  min-height: 75px;
  box-shadow: none;
}
.comment-form textarea:focus {
  outline: 2px solid var(--berry);
  outline-offset: 4px;
}
.comment-form .actions {
  justify-content: space-between;
  border-top: 1px solid #eeebe9;
  padding-top: 12px;
}
.comment-form select {
  width: auto;
  min-height: 44px;
  border: 0;
  background: #f6f5f4;
  padding: 5px 9px;
  font-size: 11px;
}
.editor-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 27px;
  margin-bottom: 22px;
}
.editor-section h2 {
  font-size: 23px;
  margin-bottom: 6px;
}
.editor-section > p {
  font-size: 12px;
  margin-bottom: 23px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}
.form-grid .form-field {
  margin: 0;
}
.form-field label,
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #564e4a;
}
.form-field small {
  font-size: 11px;
  line-height: 1.55;
  color: #9b9490;
}
input,
textarea,
select {
  min-height: 43px;
  width: 100%;
  border: 1px solid #dcd8d6;
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input::placeholder,
textarea::placeholder {
  color: #b0aaa6;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #6e6661;
}
.check-label input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  accent-color: var(--berry);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 25px;
}
.form-error {
  color: #a23a46;
  font-size: 12px;
  margin: 12px 0;
}
.onboarding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 46px;
}
.form-aside {
  padding-top: 10px;
}
.form-aside h3 {
  font-size: 25px;
  margin: 16px 0 12px;
}
.form-aside p {
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.step {
  display: flex;
  gap: 14px;
  margin: 22px 0;
}
.step > span {
  height: 25px;
  width: 25px;
  border: 1px solid #dcd6d3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #97877e;
  flex-shrink: 0;
}
.step h4 {
  font-size: 12px;
  margin: 1px 0 4px;
}
.step p {
  font-size: 11px;
  margin: 0;
}
.image-editor {
  border: 1px dashed #d2cbc7;
  border-radius: 10px;
  background: #fbfaf9;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 20px;
}
.image-editor img {
  width: 130px;
  height: 78px;
  object-fit: cover;
  border-radius: 7px;
}
.image-editor p {
  font-size: 11px;
}
.image-editor strong {
  font-size: 12px;
  display: block;
  margin-bottom: 5px;
}
.preview-caption {
  font-size: 11px;
  color: #99908b;
  margin: 12px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.save-bar {
  position: sticky;
  bottom: 0;
  padding: 16px 20px;
  margin: 0 -20px -20px;
  background: #fff9;
  border-top: 1px solid #ece8e7;
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #968d88;
  z-index: 5;
}
.workspace {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: calc(100vh - 82px);
}
.sidebar {
  border-right: 1px solid var(--line);
  background: #f5f2ee;
  padding: 25px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.workspace-identity {
  padding: 10px 8px 20px;
  border-bottom: 1px solid #e5e1df;
}
.workspace-identity .avatar {
  border-radius: 8px;
  border: 0;
  margin-bottom: 13px;
}
.workspace-identity h3 {
  font-size: 20px;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.workspace-identity p {
  font-size: 10px;
  color: #9a918c;
}
.side-nav {
  display: grid;
  gap: 4px;
}
.side-nav a {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #8b837e;
  border-radius: 7px;
}
.side-nav a .icon {
  width: 17px;
  height: 17px;
  color: #a49993;
}
.side-nav a:hover {
  background: #eee5dd;
  color: var(--berry);
}
.side-nav a.active {
  background: white;
  box-shadow: 0 2px 8px #30221b05;
  border: 1px solid #e5e1df;
  color: var(--berry);
  font-weight: 600;
}
.side-nav a.active .icon {
  color: var(--berry);
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 11px;
  border-top: 1px solid #e5e1df;
  padding: 20px 11px 0;
  color: #9f9793;
}
.workspace-content {
  max-width: 1200px;
  width: 100%;
  padding: 42px 48px 70px;
  margin: auto;
}
.workspace-content .page-title h1 {
  font-size: 39px;
}
.workspace-content .page-title {
  margin-bottom: 27px;
}
.workspace-content .page-title p {
  font-size: 12px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 24px;
  margin-bottom: 21px;
  box-shadow: 0 3px 12px #30221b03;
}
.panel h2 {
  font-size: 23px;
  margin-bottom: 14px;
}
.panel p {
  font-size: 13px;
  line-height: 1.75;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-header h2,
.panel-header h3 {
  margin: 0;
}
.overview-cover {
  border-radius: 8px;
  aspect-ratio: 16/8;
  overflow: hidden;
  background: #f1eeec;
  margin-bottom: 20px;
}
.overview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overview-cover .image-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 60px;
  color: #b6ada8;
}
.next-step {
  border: 1px solid #e5deda;
  border-radius: 10px;
  background: linear-gradient(120deg, #fff 40%, #f7f0e9);
  padding: 23px;
  margin-bottom: 22px;
}
.next-step h3 {
  font-size: 24px;
  margin: 8px 0 10px;
}
.next-step p {
  font-size: 12px;
  margin: 0 0 18px;
  max-width: 480px;
  line-height: 1.7;
}
.overview-facts {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.overview-facts div {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.overview-facts span {
  display: block;
  font-size: 10px;
  color: #99908a;
  margin-bottom: 4px;
}
.overview-facts strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid #ece9e8;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row:first-child {
  padding-top: 0;
}
.list-row h3 {
  font-size: 18px;
  margin-bottom: 5px;
}
.list-row p {
  font-size: 11px;
}
.list-row .actions {
  justify-content: flex-end;
  flex-shrink: 0;
}
.request-message {
  background: #f7f4f0;
  border-radius: 7px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: #7b726d;
  white-space: pre-line;
  max-width: 600px;
}
.requests-list article {
  padding: 21px 0;
  border-bottom: 1px solid #ece9e8;
}
.requests-list article:first-child {
  padding-top: 0;
}
.requests-list article:last-child {
  border: 0;
}
.steps-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 27px;
  font-size: 11px;
  color: #b0a7a3;
}
.steps-bar span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.steps-bar b {
  width: 23px;
  height: 23px;
  border: 1px solid #d6d1cd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.steps-bar .active {
  color: var(--berry);
}
.steps-bar .active b {
  color: white;
  background: var(--berry);
  border-color: var(--berry);
}
.steps-bar i {
  height: 1px;
  width: 40px;
  background: #e5e1df;
}
.app-link-box {
  border: 1px solid #e5e1df;
  background: #f9f8f8;
  border-radius: 8px;
  padding: 15px;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--berry);
  margin: 14px 0;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.upload-box {
  border: 1px dashed #d0c8c4;
  background: #fcfbfb;
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  margin: 18px 0;
}
.upload-box p {
  font-size: 12px;
  margin: 12px auto 18px;
  max-width: 400px;
}
.upload-box .icon {
  color: #a8988f;
  width: 28px;
  height: 28px;
}
.account-layout {
  max-width: 620px;
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.table-wrap {
  overflow: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.data-table th {
  text-align: left;
  font-weight: 500;
  color: #988f8a;
  font-size: 10px;
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 16px 14px;
  border-bottom: 1px solid #eeebea;
}
.data-table td:first-child,
.data-table th:first-child {
  padding-left: 0;
}
.data-table strong {
  display: block;
  font-weight: 550;
}
.data-table small {
  display: block;
  color: #a09894;
  font-size: 10px;
  margin-top: 4px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-tabs button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 9px 14px;
  font-size: 12px;
  color: #8b827c;
}
.admin-tabs button.active {
  background: var(--rose);
  color: var(--berry);
  border-color: #d7bcb2;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  border: 1px solid #ddd6d2;
  border-radius: 9px;
  padding: 13px 19px;
  box-shadow: 0 10px 50px #30221b18;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
  color: #62554e;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: calc(100vw - 32px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast .icon {
  color: var(--berry);
  width: 17px;
}
.toast.is-error {
  border-color: #e3b8b3;
  color: #7a2e26;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #241b1655;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
  overscroll-behavior: contain;
}
.modal {
  background: #fffdfc;
  border: 1px solid #ebe7e4;
  border-radius: 15px;
  width: 520px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 30px;
  box-shadow: 0 30px 100px #230e0833;
  animation: arrive 0.2s ease-out;
}
.modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modal-title h2 {
  font-size: 29px;
}
.modal-title button {
  background: none;
  border: 0;
  padding: 4px;
  color: #988e88;
}
.modal p {
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.modal .form-actions {
  margin-top: 18px;
}
.mobile-workspace-title {
  display: none;
}
@media (min-width: 1600px) {
  .grid.wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page {
    max-width: 1440px;
  }
}
@media (max-width: 1179px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1050px) {
  .topnav {
    margin-left: 0;
    gap: 20px;
  }
  .topbar {
    gap: 20px;
    padding: 0 28px;
  }
  .profile-button span:last-child {
    display: none;
  }
  .page {
    padding: 40px 28px 60px;
  }
  .grid {
    gap: 25px 18px;
  }
  .card-info :is(h2, h3) {
    font-size: 22px;
  }
  .card-info p {
    font-size: 11px;
  }
  .project-columns {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 35px;
  }
  .workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .workspace-content {
    padding: 35px 28px 60px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .workspace-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .workspace-side .panel {
    margin: 0;
  }
  .footer {
    margin: 0 28px;
  }
  .hero-content {
    padding-left: 45px;
  }
  .hero-content h1 {
    font-size: 65px;
  }
  .onboarding-layout {
    grid-template-columns: 1fr 280px;
    gap: 30px;
  }
}
@media (max-width: 760px) {
  h1 {
    font-size: 37px;
  }
  h2 {
    font-size: 27px;
  }
  .topbar {
    height: 70px;
    padding: 0 20px;
    gap: 15px;
  }
  .brand {
    font-size: 25px;
    gap: 8px;
  }
  .brand img {
    width: 27px;
    height: 36px;
  }
  .topnav {
    display: none;
  }
  .header-actions > .btn.primary {
    display: none;
  }
  .menu-button {
    display: inline-flex;
  }
  .profile-button {
    display: none;
  }
  .mobile-nav.open {
    display: grid;
    padding: 12px 20px;
    background: white;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 25;
    gap: 3px;
  }
  .mobile-nav a {
    padding: 10px;
    font-size: 13px;
    border-radius: 6px;
  }
  .mobile-nav a:hover {
    background: var(--rose);
  }
  .sample-banner {
    padding: 6px 15px;
    justify-content: space-between;
    gap: 8px;
    font-size: 9px;
  }
  .sample-banner .sample-extra {
    display: none;
  }
  .sample-banner select {
    max-width: 110px;
    font-size: 10px;
  }
  .page {
    padding: 31px 20px 50px;
  }
  .page-title {
    margin-bottom: 25px;
    align-items: flex-start;
  }
  .page-title p {
    font-size: 12px;
    margin-top: 10px;
    max-width: 320px;
  }
  .page-title > .btn {
    padding: 9px 11px;
    min-height: 44px;
    font-size: 11px;
  }
  .hero {
    height: 650px;
    min-height: 540px;
    max-height: calc(100svh - 70px);
  }
  .hero-content {
    padding: 65px 25px 90px;
  }
  .hero-content h1 {
    font-size: 52px;
    max-width: 400px;
  }
  .hero-content p {
    font-size: 15px;
    max-width: 300px;
    margin: 22px 0 25px;
  }
  .hero:after {
    background:
      linear-gradient(90deg, #2305059c, #50070724),
      linear-gradient(0deg, #20030366, transparent 60%);
  }
  .hero-picture {
    object-position: center 58%;
  }
  .hero-footer {
    left: 25px;
    right: 25px;
    bottom: 24px;
  }
  .hero-footer span {
    display: none;
  }
  .home-heading h2 {
    font-size: 27px;
  }
  .home-heading p {
    font-size: 11px;
    max-width: 230px;
  }
  .home-heading .text-link {
    font-size: 11px;
  }
  .home-build {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 28px;
    margin-top: 35px;
  }
  .home-build h2 {
    font-size: 32px;
  }
  .home-build p {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 27px 16px;
  }
  .card-preview {
    aspect-ratio: 16/11;
    border-radius: 9px;
  }
  .card-info {
    padding: 13px 0 0;
  }
  .card-info :is(h2, h3) {
    font-size: 22px;
  }
  .card-category {
    font-size: 9px;
  }
  .card-info p {
    font-size: 11px;
    margin-bottom: 12px;
    min-height: 33px;
  }
  .card-bottom {
    font-size: 9px;
  }
  .card-bottom a {
    font-size: 10px;
  }
  .card-bottom .card-state .dot {
    display: none;
  }
  .card-open {
    display: none;
  }
  .search-line {
    margin-bottom: 20px;
    gap: 8px;
  }
  .search input {
    padding: 13px 10px;
    font-size: 12px;
  }
  .search .icon {
    margin-left: 12px;
    width: 17px;
  }
  .search-shortcut {
    display: none;
  }
  .sort-select {
    min-width: 113px;
    font-size: 11px;
    padding: 0 10px;
  }
  .tabs {
    gap: 23px;
  }
  .tab {
    font-size: 11px;
    gap: 5px;
    padding-bottom: 12px;
  }
  .tab .count {
    font-size: 9px;
    padding: 1px 4px;
  }
  .browse-lower > span {
    display: none;
  }
  .categories {
    gap: 7px;
    margin-top: 18px;
  }
  .category {
    padding: 6px 10px;
    font-size: 10px;
  }
  .project-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-heading h1 {
    font-size: 42px;
  }
  .project-heading p {
    font-size: 13px;
  }
  .project-hero {
    aspect-ratio: 16/10;
    margin-bottom: 28px;
  }
  .project-columns {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .project-columns aside {
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .project-columns aside .side-card {
    padding: 20px;
    margin: 0 0 18px;
  }
  .project-columns aside .side-card h3 {
    font-size: 20px;
  }
  .project-section {
    margin-bottom: 28px;
  }
  .body-copy {
    font-size: 13px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .onboarding-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .form-aside {
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .form-aside .step {
    margin: 18px 0;
  }
  .editor-section {
    padding: 21px 19px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 0;
    background: #fff;
    display: block;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .workspace-identity,
  .sidebar-bottom {
    display: none;
  }
  .side-nav {
    display: flex;
    overflow: auto;
    padding: 11px 17px;
    gap: 6px;
  }
  .side-nav a {
    flex-shrink: 0;
    font-size: 10px;
    padding: 9px 10px;
    gap: 6px;
  }
  .side-nav a .icon {
    width: 14px;
    height: 14px;
  }
  .side-nav a.active {
    background: var(--rose);
    box-shadow: none;
    border-color: transparent;
  }
  .workspace-content {
    padding: 29px 20px 55px;
  }
  .workspace-content .page-title h1 {
    font-size: 32px;
  }
  .workspace-content .page-title p {
    font-size: 11px;
  }
  .workspace-side {
    grid-template-columns: 1fr;
  }
  .mobile-workspace-title {
    display: block;
    font-size: 10px;
    color: #9a8d86;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .workspace .breadcrumb {
    display: none;
  }
  .panel {
    padding: 20px;
  }
  .next-step {
    padding: 21px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .list-row {
    align-items: flex-start;
  }
  .list-row .actions {
    flex-wrap: wrap;
  }
  .list-row h3 {
    font-size: 18px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .footer {
    margin: 0 20px;
    padding: 23px 0;
    gap: 15px;
  }
  .footer nav {
    gap: 13px;
  }
  .footer span {
    font-size: 10px;
  }
  .modal {
    padding: 24px;
  }
  .modal-backdrop {
    padding: 16px;
  }
  .modal-title h2 {
    font-size: 26px;
  }
  .page.narrow {
    padding-top: 30px;
  }
  .request-message {
    font-size: 11px;
  }
  .steps-bar {
    font-size: 10px;
  }
  .steps-bar i {
    width: 25px;
  }
  .account-profile .avatar.big {
    width: 48px;
    height: 48px;
  }
  .account-profile h2 {
    font-size: 25px;
  }
}
@media (max-width: 430px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 29px;
  }
  .card-preview {
    aspect-ratio: 16/9;
  }
  .card-info :is(h2, h3) {
    font-size: 27px;
  }
  .card-info p {
    font-size: 12px;
    min-height: 0;
  }
  .card-bottom {
    font-size: 10px;
  }
  .card-bottom a {
    font-size: 11px;
  }
  .card-category {
    font-size: 10px;
  }
  .page-title h1 {
    font-size: 36px;
  }
  .project-columns aside {
    grid-template-columns: 1fr;
  }
  .project-columns aside .side-card {
    margin: 0;
  }
  .project-columns aside {
    margin-bottom: 25px;
  }
  .hero-content h1 {
    font-size: 47px;
  }
  .hero-content {
    padding-top: 58px;
  }
  .hero-content p {
    max-width: 270px;
  }
  .hero {
    min-height: 580px;
  }
  .sort-select {
    max-width: 110px;
  }
  .page-title {
    gap: 12px;
  }
  .home-heading .text-link .icon {
    display: none;
  }
  .home-heading {
    align-items: flex-end;
  }
  .home-heading p {
    max-width: 230px;
  }
  .form-actions .btn {
    flex: 1;
  }
  .project-heading .actions .btn {
    flex: 1;
  }
  .overview-facts {
    gap: 15px;
  }
  .image-editor {
    align-items: flex-start;
    flex-direction: column;
  }
  .sample-banner select {
    max-width: 95px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .card-preview:hover img {
    transform: none;
  }
}

:root {
  --muted: #665b57;
}
.card-info p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  min-height: 0;
}
.card-category,
.card-bottom {
  font-size: 12px;
  color: var(--muted);
}
.card-bottom a {
  font-size: 13px;
}
.topnav a,
.side-nav a,
.tab,
.category,
.btn.small {
  font-size: 13px;
}
.pill {
  font-size: 12px;
}
.page-title p,
.project-heading p,
.body-copy,
.comment-body,
.side-card p,
.panel p,
.next-step p,
.editor-section > p,
.form-aside p,
.home-heading p,
.home-build p,
.upload-box p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.form-field label,
.field-label,
.check-label {
  font-size: 13px;
}
.form-field small,
.person small,
.list-row p,
.overview-facts span,
.preview-caption {
  font-size: 12px;
  color: var(--muted);
}
.person strong,
.overview-facts strong {
  font-size: 13px;
}
.sidebar .workspace-identity p,
.sidebar-bottom {
  font-size: 12px;
  color: var(--muted);
}
.comment-meta {
  font-size: 12px;
  color: var(--muted);
}
.search-line .search {
  min-width: 0;
}
.search-line .sort-select {
  width: 180px;
  max-width: none;
  flex: 0 0 180px;
}
.sample-banner select {
  width: auto;
}
@media (max-width: 760px) {
  .search-line .sort-select {
    width: 145px;
    flex-basis: 145px;
  }
}
@media (max-width: 600px) {
  .search-line {
    flex-wrap: wrap;
  }
  .search-line .search {
    flex-basis: 100%;
  }
  .search-line .sort-select {
    height: 42px;
  }
}
@media (max-width: 760px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-content,
  .sidebar {
    min-width: 0;
  }
  .workspace-content .page-title,
  .list-row {
    flex-wrap: wrap;
  }
  .list-row > div:first-child {
    min-width: 0;
    flex: 1 1 180px;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
}
.card-preview {
  flex-shrink: 0;
}
.card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.card-bottom {
  margin-top: auto;
}
.card-title-line :is(h2, h3) a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.page-title > .btn {
  white-space: nowrap;
}


.upcoming-section { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.upcoming-section-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.upcoming-section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.5px; }
.upcoming-section-heading p { max-width: 65ch; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.upcoming-idea-label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.upcoming-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.upcoming-grid > .empty { grid-column: 1 / -1; }
.upcoming-card { display: flex; flex-direction: column; min-width: 0; min-height: 276px; padding: 26px; border: 1px solid #e5dbd7; border-radius: 10px; background: #fff; transition: border-color 160ms, box-shadow 160ms, transform 160ms; }
.upcoming-card:hover { transform: translateY(-3px); border-color: #b88880; box-shadow: 0 8px 24px #50211809; }
.upcoming-card:focus-within { border-color: #800000; }
.upcoming-card-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 26px; }
.upcoming-symbol { display: inline-grid; flex-shrink: 0; place-items: center; width: 46px; height: 46px; border: 1px solid #e7cfca; border-radius: 11px; background: #fbf1ee; color: #800000; }
.upcoming-symbol .icon { width: 25px; height: 25px; stroke-width: 1.5; }
.upcoming-card:nth-child(2) .upcoming-symbol { background: #eef4f7; border-color: #d2e2e8; color: #2b5d70; }
.upcoming-card:nth-child(3) .upcoming-symbol { background: #fbf5ea; border-color: #e9dcc6; color: #83571d; }
.upcoming-status { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border: 1px solid #e6ddd8; border-radius: 5px; background: #faf7f5; color: #65544c; font-size: 12px; font-weight: 500; }
.upcoming-card h3 { margin: 0 0 12px; color: var(--ink); font-size: 26px; line-height: 1.2; letter-spacing: -.6px; overflow-wrap: anywhere; }
.upcoming-card h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.upcoming-card p { margin: 0 0 24px; color: #665b56; font-size: 15px; line-height: 1.65; }
.upcoming-card-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--berry); font-size: 14px; font-weight: 600; }
.upcoming-card-link .icon { transition: transform 150ms; }
.upcoming-card-link:hover .icon { transform: translateX(3px); }
.page.upcoming-detail { max-width: 1120px; }
.upcoming-detail-heading { margin: 32px 0; }
.upcoming-detail-heading .upcoming-status { margin-left: 12px; vertical-align: middle; }
.upcoming-detail-heading h1 { margin: 22px 0 14px; font-size: 40px; line-height: 1.1; letter-spacing: -1.1px; overflow-wrap: anywhere; }
.upcoming-detail-heading > p { max-width: 620px; color: #5c514c; font-size: 19px; line-height: 1.6; }
.upcoming-detail-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 68px; margin: 36px 0 40px; align-items: start; }
.upcoming-about h2, .upcoming-prompt h2 { margin: 0 0 14px; font-size: 23px; line-height: 1.25; letter-spacing: -.4px; }
.upcoming-about h3 { margin: 24px 0 8px; font-size: 15px; font-weight: 600; }
.upcoming-about p { color: #625650; font-size: 15px; line-height: 1.7; }
.upcoming-about .upcoming-availability { display: flex; align-items: flex-start; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: #665a53; font-size: 13px; }
.upcoming-availability .icon { flex-shrink: 0; margin-top: 2px; }
.upcoming-save { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 6px; }
.upcoming-save[aria-pressed="true"] .icon { fill: #f1d9d6; }
.upcoming-prompt { padding: 26px; border: 1px solid #ead8d2; border-radius: 10px; background: #fbf6f3; }
.upcoming-prompt p { margin: 0 0 22px; color: #62524a; font-size: 16px; line-height: 1.65; }
.upcoming-prompt > .small-text { display: block; margin-top: 14px; color: #6b5a51; line-height: 1.6; }
.upcoming-feedback { max-width: 760px; }
.upcoming-feedback .comment-form { margin-bottom: 24px; }
.upcoming-feedback .comment-form label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.upcoming-feedback .comment-form textarea { min-height: 124px; line-height: 1.65; }
.upcoming-empty { padding: 26px 0 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }
:is(.upcoming-card a,.upcoming-detail a,.upcoming-detail button):focus-visible { outline: 2px solid #800000; outline-offset: 4px; border-radius: 3px; }
@media (max-width: 900px) {
  .upcoming-grid { gap: 16px; }
  .upcoming-card { padding: 20px; }
  .upcoming-card h3 { font-size: 23px; }
  .upcoming-detail-layout { gap: 30px; }
}
@media (max-width: 680px) {
  .upcoming-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .upcoming-card { min-height: auto; padding: 22px; }
  .upcoming-card-top { margin-bottom: 16px; }
  .upcoming-card p { margin-bottom: 18px; }
  .upcoming-detail-heading { margin-top: 24px; }
  .upcoming-detail-heading h1 { font-size: 34px; }
  .upcoming-detail-heading > p { font-size: 17px; }
  .upcoming-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 28px; }
  .upcoming-prompt { grid-row: 1; padding: 22px; }
  .upcoming-about { grid-row: 2; }
  .upcoming-prompt .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .upcoming-card, .upcoming-card-link .icon { transition: none; }
  .upcoming-card:hover, .upcoming-card-link:hover .icon { transform: none; }
}

/* Explanations live behind a small ⓘ button instead of sitting on the page. */
.ui-icon { flex:none; width:16px; height:16px; }
.info-tip { position:relative; display:inline-flex; vertical-align:middle; margin-left:4px; }
.info-tip-button { display:inline-grid; place-items:center; width:26px; height:26px; padding:0; border:0; border-radius:50%; background:transparent; color:var(--muted); cursor:help; }
.info-tip-button:hover, .info-tip.is-open .info-tip-button { color:var(--berry); background:var(--rose); }
.info-tip-button:focus-visible { outline:2px solid var(--berry); outline-offset:1px; }
.info-tip-text { position:absolute; z-index:60; top:calc(100% + 6px); left:-6px; width:max-content; max-width:min(280px, 80vw); padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); box-shadow:0 10px 30px #30221b1f; color:var(--ink); font:400 13px/1.45 var(--body); letter-spacing:0; text-transform:none; text-align:left; white-space:normal; display:none; }
.info-tip.is-up .info-tip-text { top:auto; bottom:calc(100% + 6px); }
.info-tip.is-open .info-tip-text { display:block; animation:info-tip-in .15s; }
@keyframes info-tip-in { from { opacity:0; transform:translateY(-3px); } }
@media (prefers-reduced-motion:reduce) { .info-tip.is-open .info-tip-text { animation:none; } }

/* Square buttons that show only a symbol; each one carries an aria-label and a title. */
.icon-button { display:inline-grid; place-items:center; width:38px; height:38px; padding:0; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); cursor:pointer; text-decoration:none; }
.icon-button:hover { color:var(--berry); border-color:#d9c9c3; background:#fdf8f6; }
.icon-button:focus-visible { outline:2px solid var(--berry); outline-offset:2px; }
.icon-button .ui-icon { width:18px; height:18px; }
.title-with-tip { display:flex; align-items:center; gap:4px; min-width:0; }
.title-with-tip > .info-tip { margin-left:0; }
.label-row { display:flex; align-items:center; gap:2px; }
.label-row > label { margin-bottom:0; }
.label-row + textarea, .label-row + input { margin-top:6px; }

/* Leaving Aurora notice and visitor reports on outside app links. */
.outside-link-warning { display:flex; align-items:center; gap:6px; color:var(--ink); font-weight:500; }
.outside-link-report { display:inline-flex; align-items:center; gap:6px; margin-top:14px; }
.outside-link-help { margin-top:12px; color:var(--muted); font-size:13px; }
.external-review-reports { margin:12px 0; padding:10px 12px; border:1px solid #efc9bf; border-radius:8px; background:#fdf3f1; }
.external-review-reports p strong { display:inline-flex; align-items:center; gap:6px; color:var(--berry); }
.external-review-reports ul { margin:6px 0 0; padding-left:18px; color:var(--ink); font-size:13px; }
.admin-report-flag { display:inline-flex; align-items:center; gap:3px; margin-left:6px; padding:1px 6px; border-radius:999px; background:#fdf3f1; color:var(--berry); font-size:12px; font-weight:600; vertical-align:middle; }
.admin-report-flag .ui-icon { width:13px; height:13px; }

.project-page .project-report { display:inline-flex; align-items:center; gap:6px; color:var(--muted); }
.report-question { font-weight:600; margin:0 0 8px; }
.report-reasons { margin-bottom:16px; flex-wrap:wrap; }

/* aurora/feedback.css */
/* Project feedback: a small Comment/Bug/Idea choice, two checkboxes, and threads with one level of replies.
   Uses the live Aurora variables and corner sizes from site.css. */

.feedback-section .feedback-list {
  display: grid;
}
.feedback-composer > * + * {
  margin-top: 14px;
}
.feedback-section .feedback-composer > .form-error {
  margin: 10px 0 0;
}
.feedback-section .feedback-composer > .form-error:empty {
  margin: 0;
}
.feedback-section:last-child {
  margin-bottom: 0;
}
.feedback-section .feedback-composer textarea {
  min-height: 92px;
}
.feedback-kinds {
  display: inline-flex;
  min-width: 0;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f6f2ef;
}
.feedback-kind {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.feedback-kind:hover {
  color: var(--ink);
}
.feedback-kind input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.feedback-kind:has(input:checked) {
  border-color: #ddd3ce;
  background: #fff;
  color: var(--ink);
}
.feedback-kind:has(input:focus-visible) {
  outline: 3px solid #9d3232;
  outline-offset: 2px;
}
.feedback-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  min-width: 0;
}
.feedback-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #493d38;
  font-size: 14px;
  cursor: pointer;
}
.feedback-check input {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--berry);
  cursor: pointer;
}
.feedback-section .feedback-foot {
  flex-wrap: wrap;
  gap: 4px 18px;
  padding-top: 6px;
}
.feedback-outcome {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.feedback-composer > .feedback-outcome,
.feedback-reply-form > .feedback-outcome {
  margin-top: 4px;
}

.feedback-thread {
  padding: 22px 0;
  border-bottom: 1px solid #ece9e8;
}
.feedback-list > .feedback-thread:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}
.feedback-section .feedback-thread + .feedback-thread {
  margin-top: 0;
}
.feedback-thread .feedback-item {
  margin: 0;
  padding: 0;
  border: 0;
}
.feedback-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.feedback-head .avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.feedback-name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.feedback-date {
  color: var(--muted);
  font-size: 12px;
}
.feedback-tag .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}
.feedback-avatar-anonymous {
  background: #e9e6e4;
  color: #6e6561;
}
.feedback-avatar-anonymous .icon {
  width: 16px;
  height: 16px;
}
.feedback-section .feedback-text {
  margin: 8px 0 0;
  padding-left: 40px;
  overflow-wrap: anywhere;
}
.feedback-thread.is-resolved > .feedback-item .feedback-text {
  color: #7a716d;
}
.feedback-replies {
  display: grid;
  gap: 16px;
  margin: 16px 0 0 40px;
  padding-left: 16px;
  border-left: 2px solid #e8dfdc;
}
.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 2px;
  padding-left: 40px;
}
.feedback-replies + .feedback-actions {
  margin-top: 6px;
}
.feedback-own-actions {
  display: flex;
  gap: 0 16px;
  padding-left: 40px;
}
.feedback-own-actions .text-link {
  color: var(--muted);
}
.feedback-item [hidden] {
  display: none;
}
.feedback-edited {
  font-size: 12px;
}
.feedback-section .feedback-edit-form {
  margin: 8px 0 0 40px;
}
.feedback-edit-form > * + * {
  margin-top: 10px;
}
.feedback-section .feedback-edit-form > .form-error:empty {
  margin: 0;
}
.feedback-section .feedback-edit-form textarea {
  min-height: 72px;
}
.feedback-removed .comment-body {
  margin: 0;
  font-style: italic;
}
.feedback-section .feedback-thread .feedback-reply-form {
  margin: 6px 0 0 40px;
}
.feedback-reply-form > * + * {
  margin-top: 12px;
}
.feedback-section .feedback-reply-form > .form-error:empty {
  margin: 0;
}
.feedback-section .feedback-thread .feedback-reply-form textarea {
  min-height: 72px;
}
.feedback-reply-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.feedback-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-left: auto;
}
.feedback-signin {
  margin: 0 0 8px;
}
.feedback-section .feedback-empty {
  padding: 22px 0;
}
.feedback-reply-form .feedback-foot {
  padding-top: 0;
  border-top: 0;
}
.feedback-empty .text-link {
  font-size: inherit;
}
.ws-feedback .feedback-section .section-heading h2 {
  font-size: 20px;
}
.feedback-buttons .text-link {
  min-height: 44px;
  padding: 0 6px;
}

/* Team notes: a plain box and a button, not a card inside the column's card. */
.feedback-notes-hint {
  margin: -8px 0 12px;
}
.ws-feedback .feedback-section .feedback-note-form {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.ws-feedback .feedback-section .feedback-note-form textarea {
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.ws-feedback .feedback-section .feedback-note-form .actions {
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 0;
}

/* On the project page the feedback sits on the page under one rule, with the form as its only box. */
.project-feedback .feedback-section {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

@media (max-width: 600px) {
  .feedback-options {
    flex-direction: column;
  }
  .feedback-kinds {
    display: flex;
  }
  .feedback-kind {
    flex: 1 1 0;
    justify-content: center;
    min-height: 44px;
  }
  .feedback-section .feedback-text,
  .feedback-actions {
    padding-left: 0;
  }
  .feedback-actions .text-link {
    min-width: 44px;
  }
  .feedback-replies {
    margin-left: 6px;
    padding-left: 14px;
  }
  .feedback-section .feedback-thread .feedback-reply-form {
    margin-left: 0;
  }
  .feedback-section .feedback-foot > .btn,
  .feedback-buttons {
    width: 100%;
  }
  .feedback-buttons .btn {
    flex: 1;
  }
}

/* The AIUC platform team's list of member complaints and AI roadblock notes. */
.team-feedback { margin: 32px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--white, #fffdfb); }
.team-feedback-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.team-feedback-head h2 { margin: 0; font-size: 20px; }
.team-feedback-count { color: var(--muted); font-size: 14px; }
.team-feedback-head .btn { margin-left: auto; }
.team-feedback-note { margin: 0; color: var(--muted); }
.team-feedback-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; max-height: 640px; overflow-y: auto; }
.team-feedback-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
.team-feedback-item.is-fixed { opacity: .6; }
.team-feedback-tags { display: flex; gap: 8px; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.team-feedback-kind, .team-feedback-status { padding: 2px 8px; border-radius: 6px; background: #f1ebe7; }
.team-feedback-kind[data-kind="complaint"] { background: #f7e4e1; color: #7a1f14; }
.team-feedback-kind[data-kind="ai_blocked"], .team-feedback-kind[data-kind="setup_blocked"] { background: #e6ecf5; color: #23406b; }
.team-feedback-item:not(.is-fixed) .team-feedback-status { background: #fff3d6; color: #6b4b00; }
.team-feedback-item.is-fixed .team-feedback-status { background: #e3f1e6; color: #1f5c2d; }
.team-feedback-summary { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.team-feedback-details { margin: 4px 0 0; color: var(--muted); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.team-feedback-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.team-feedback-links { display: inline-flex; gap: 12px; }

/* aurora/workspace-tools.css */
/* Workspace tool pages: Brainstorm, Files, Publish and Settings.
   Uses the site.css tokens and corner sizes. Rules are scoped to .ws-tools because later
   stylesheets load after this one. */

.ws-tools { min-width: 0; }
.ws-tools .ws-tools-heading { flex-wrap: wrap; align-items: flex-end; }
.ws-tools .ws-tools-heading > div:first-child { min-width: 0; }
.ws-tools .ws-tools-heading p { max-width: 620px; color: var(--muted); }
.ws-tools-heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ws-tools :is(a, button, input, select, textarea, summary, pre):focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }

/* Brainstorm */
.ws-brainstorm .ws-doc { display: grid; gap: 12px; padding: 0; background: none; }
.ws-brainstorm .brainstorm-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ws-brainstorm .brainstorm-saved { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.ws-brainstorm .brainstorm-saved::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.ws-brainstorm .brainstorm-saved.is-error { color: var(--berry); }
.ws-brainstorm .brainstorm-saved.is-error::before { background: var(--berry); }
.ws-brainstorm .brainstorm-presence { gap: 8px; font-size: 13px; color: var(--muted); }
.ws-brainstorm .brainstorm-avatars { display: inline-flex; }
.ws-brainstorm .brainstorm-avatars .avatar { width: 28px; height: 28px; border: 2px solid #fff; background: var(--rose); color: var(--person-color, var(--berry)); font-size: 11px; box-shadow: 0 0 0 1px var(--line); }
.ws-brainstorm .brainstorm-avatars .avatar + .avatar { margin-left: -8px; }
.ws-brainstorm .brainstorm-shell { max-width: none; border-color: var(--line); border-radius: 8px; }
.ws-brainstorm .brainstorm-editor { min-height: 420px; }
/* site.css greys every <p>; the shared document's own text colour is ink. */
.ws-brainstorm .brainstorm-editor p { color: inherit; }
.ws-brainstorm .document-canvas .brainstorm-shell .ql-container.ql-snow .ql-editor.brainstorm-editor { padding: 40px 56px 64px; line-height: 1.7; }
/* A calm sheet with a slim toolbar. */
.ws-brainstorm .document-canvas .brainstorm-shell { border-color: #e6ddd8; box-shadow: 0 1px 2px #2923210a, 0 10px 28px -12px #29232124; }
.ws-brainstorm .document-canvas .brainstorm-shell .brainstorm-toolbar.ql-toolbar.ql-snow { padding: 6px 12px; background: #fffdfb; }
.ws-brainstorm .brainstorm-editor > * { max-width: 72ch; }
/* Starter sections are bold lines, so a line that is only bold reads as a section heading. */
.ws-brainstorm .brainstorm-shell .ql-editor > p:has(> strong:only-child) { margin: 6px 0 2px; color: #292321; font-size: 18px; font-weight: 650; letter-spacing: -.012em; line-height: 1.4; }
.ws-brainstorm .brainstorm-shell .ql-editor > p:first-child:has(> strong:only-child) { margin-top: 0; font-size: 24px; letter-spacing: -.02em; }
/* An empty line between sections is a gap, not a full line of text plus a paragraph margin. */
.ws-brainstorm .brainstorm-shell .ql-editor > p:has(> br:only-child) { margin: 0; line-height: 1.2; }

/* Connection controls precede the files; repository details stay below them. */
.ws-files { display: flex; flex-direction: column; }
.ws-files > .ws-files-claude, .ws-files .workspace-connections.ws-connect { display: contents; }
.ws-files .ws-files-body { order: 1; margin: 0; }
.ws-files .ws-tools-heading p { font-size: 16px; }
.ws-files .workspace-repository-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; margin: 0 0 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ws-files .workspace-repository-info { min-width: 0; }
.ws-files .workspace-repository-info h2 { margin: 0 0 6px; font-size: 17px; }
.ws-files .workspace-repository-label { font-size: 17px; font-weight: 600; }
.ws-files .workspace-repository-info p { margin: 0; font-size: 16px; line-height: 1.5; }
.ws-files .workspace-repository-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; }
.ws-files .workspace-repository-actions :is(button, a) { min-height: 44px; font-size: 16px; }
.ws-files .workspace-team-link { grid-column: 1 / -1; }
.ws-files .workspace-team-link { display: grid; gap: 6px; font-size: 16px; }
.ws-files .workspace-team-link input { min-width: 0; width: 100%; font-size: 16px; }
@media (max-width: 650px) {
  .ws-files .workspace-repository-bar { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .ws-files .workspace-repository-actions { justify-content: flex-start; }
}
.ws-files .ws-connect > .panel.ws-connect-card { min-height: 0; margin: 0 0 16px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: none; }
.ws-files .account-ai.is-compact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.ws-files .account-ai.is-compact .account-ai-heading { justify-content: flex-start; gap: 10px; }
.ws-files .account-ai.is-compact .account-ai-heading h2 { font-size: 17px; }
.ws-files .account-ai.is-compact .workspace-connection-state { color: var(--muted); font-size: 14px; }
.ws-files .account-ai.is-compact .account-ai-heading h2::after { content: '·'; margin-left: 10px; color: var(--muted); font-weight: 400; }
.ws-files .account-ai.is-compact .account-ai-actions { margin: 0; gap: 8px 16px; }
.ws-files .account-ai.is-compact :is(.btn, .text-link) { min-height: 44px; font-size: 14px; }
.ws-files .account-ai.is-compact .text-link { display: inline-flex; align-items: center; color: var(--muted); }
.ws-files .account-ai.is-compact .text-link:hover { color: var(--ink); }
.ws-files .account-ai.is-compact > p { flex-basis: 100%; margin: 0; font-size: 14px; }

/* Shared files */
.ws-files .ws-files-body { padding: 0; border: 0; background: none; box-shadow: none; }
.ws-files .studio-files-view { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; padding: 0; border: 0; background: none; }
.ws-files .studio-files-view > * { grid-column: 1 / -1; min-width: 0; }
.ws-files .studio-files-view > .studio-shared-save { grid-column: 1; grid-row: 1; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.ws-files .studio-files-view > .studio-shared-save:empty { display: none; }
.ws-files .studio-files-view > .studio-heading { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 12px; }
.ws-files .studio-files-view > .studio-heading .studio-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-files .studio-files-view > .studio-heading:not(:has(.btn:not([hidden]))) { display: none; }
.ws-files .studio-files-view > .studio-notice:empty { display: none; }
.ws-files .studio-files-view .studio-heading h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ws-files .studio-files-view .studio-build-flow { display: none; }
.ws-files .studio-files-view .studio-shared-files { border: 0; padding: 0; margin: 0; }
.ws-files .studio-files-view .studio-shared-files > summary { display: none; }
.ws-files .studio-files-view .studio-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; min-height: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
.ws-files .studio-files-view .studio-files { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
/* No files yet: one panel with the message and the New file button, no empty editor beside it. */
.ws-files .studio-files-view.is-empty .studio-layout { grid-template-columns: minmax(0, 1fr); }
.ws-files .studio-files-view.is-empty .studio-document { display: none; }
.ws-files .studio-files-view.is-empty .studio-files { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; padding: 8px 12px 8px 18px; }
.ws-files .studio-files-view.is-empty .studio-files > * { grid-column: 1 / -1; }
.ws-files .studio-files-view.is-empty .studio-files-heading { grid-column: 2; grid-row: 1; padding: 0; border: 0; background: none; }
.ws-files .studio-files-view.is-empty #studio-file-list { grid-column: 1; grid-row: 1; padding: 0; }
.ws-files .studio-files-view.is-empty .studio-files-empty { padding: 8px 0; }
/* The page is already called Files, so the list's own "Files" label is for screen readers only. */
.ws-files .studio-files-view .studio-files-heading h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ws-files .studio-files-view .studio-files-heading { justify-content: flex-end; }
.ws-files .studio-files-view .studio-files-empty { margin: 0; padding: 8px 6px 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ws-files .studio-files-view #studio-file-list button > span:first-child { display: none; }
.ws-files .studio-files-view #studio-editor { height: auto; min-height: 360px; overflow: visible; }
.ws-files .studio-files-view.is-editing #studio-editor { height: 520px; overflow: hidden; }
.ws-files .studio-files-view #studio-editor > .studio-empty { padding: 48px 24px; }
.ws-files .studio-files-view #studio-file-list { display: grid; gap: 2px; padding: 8px; }
.ws-files .studio-files-view #studio-file-list button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; background: none; text-align: left; }
.ws-files .studio-files-view #studio-file-list button:hover { background: var(--bg); }
.ws-files .studio-files-view #studio-file-list button[aria-current="true"] { border-color: var(--line); background: var(--rose); color: var(--berry-dark); }
.ws-files .studio-files-view #studio-file-list button > span:last-child { display: grid; min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.35; }
.ws-files .studio-file-meta { color: var(--muted); font-size: 12px; font-weight: 400; }
.ws-files .studio-files-view .studio-document { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.ws-files .studio-files-view .studio-document-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 56px; padding: 6px 12px 6px 16px; border-bottom: 1px solid var(--line); }
.ws-files .studio-files-view .studio-document-bar strong { overflow-wrap: anywhere; }
.ws-files .studio-files-view .studio-edit-toggle { margin-left: auto; }
.ws-files .studio-files-view .studio-file-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fcfaf8; }
.ws-files .studio-files-view .studio-file-tools[hidden] { display: none; }
.ws-files .studio-files-view .studio-file-tools button { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; }
.ws-files .studio-files-view .studio-file-tools button:hover { border-color: #c4bfbb; }
.ws-files .studio-code-view { margin: 0; min-height: 360px; max-height: 70vh; border-radius: 0; padding: 18px 20px; overflow: auto; background: #211816; color: #f3e9e5; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; tab-size: 2; }
.ws-files .studio-code-view code { font: inherit; }
.ws-files .studio-files-view .studio-presence:not(:empty) { margin: 0 0 12px; }
.ws-files .studio-files-view .studio-files-heading button { min-height: 44px; }
/* Studio's small buttons get no platform styling of their own, so they showed as grey native buttons. */
.ws-files .studio-files-view :where(.studio-files-heading button, form[data-studio-form] button[type="button"], .studio-history-heading button, .studio-checkpoint button, .studio-file-panel > button) { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 600 13px/1 var(--body); cursor: pointer; }
.ws-files .studio-files-view :where(.studio-files-heading button, form[data-studio-form] button[type="button"], .studio-history-heading button, .studio-checkpoint button, .studio-file-panel > button):hover { border-color: #c4bfbb; }
.ws-files .studio-files-view .studio-files-heading button { padding: 0 14px; font-size: 13px; }
.ws-files .studio-files-view .studio-checkpoint button { color: var(--berry); }
.ws-files .studio-files-view form[data-studio-form] button[type="button"] { font-size: 13px; }
.ws-files .studio-files-view .studio-heading .studio-actions .btn { font-size: 13px; }
.ws-files .studio-files-view .studio-sample { border-style: solid; }

/* Shared split layout: Details */
.ws-tools .ws-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.ws-tools .ws-split-side { display: grid; gap: 10px; position: sticky; top: 96px; }
.ws-side-label { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ws-card-preview .project-card { margin: 0; }

@media (max-width: 1100px) {
  .ws-tools .ws-split { grid-template-columns: minmax(0, 1fr); }
  .ws-tools .ws-split-side { position: static; max-width: 420px; }
}
@media (max-width: 860px) {
  .ws-files .studio-files-view .studio-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ws-files .studio-files-view { grid-template-columns: minmax(0, 1fr); }
  .ws-files .studio-files-view > .studio-heading { grid-column: 1; grid-row: auto; justify-content: flex-start; flex-wrap: wrap; }
  .ws-tools .ws-tools-heading { align-items: flex-start; }
  .ws-brainstorm .brainstorm-editor { min-height: 320px; }
  .ws-brainstorm .document-canvas .brainstorm-shell .ql-container.ql-snow .ql-editor.brainstorm-editor { padding: 24px 20px 40px; }
  .ws-brainstorm .brainstorm-shell .ql-editor > p:first-child:has(> strong:only-child) { font-size: 21px; }
  .ws-files .studio-code-view { min-height: 240px; }
  .ws-files .studio-files-view .studio-file-tools button,
  .ws-files .studio-files-view :is(form[data-studio-form] button[type="button"], .studio-history-heading button, .studio-checkpoint button, .studio-file-panel > button) { min-height: 44px; }
}

/* Publish: one column, a live card, three numbered steps, one More options */
.ws-publish { max-width: 960px; }
.ws-publish .publication-flow { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 12px; }
.ws-publish .publishing-status:empty { display: none; }
.ws-publish .publishing-status > p { margin: 0; }
.ws-publish .publication-live-summary { margin: 0; }
.ws-publish .publication-current { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ws-publish .publication-current-copy { flex: 1 1 260px; min-width: 0; }
.ws-publish .publication-current h2 { margin: 4px 0 0; font-size: 18px; line-height: 1.35; letter-spacing: 0; }
.ws-publish .publication-current p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.ws-publish .publication-live-label { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--green); font-size: 12px; font-weight: 650; }
.ws-publish .publication-live-label.is-local { color: var(--muted); }
.ws-publish .publication-current-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ws-publish .publication-current-actions .btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.ws-publish .publication-current-actions .btn.primary { background: var(--berry); color: #fff; border-color: var(--berry); }
/* A saved app link waiting to be published is the page's main action; uploading is the alternative. */
.ws-publish .publication-flow:has([data-publishing-current]:not([hidden]) .btn.primary) .hosting-submission-send .btn.primary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.ws-publish .publication-current-actions .text-link { min-height: 44px; }

.ws-publish .publication-step { margin: 0; padding: 18px 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ws-publish .publication-step + .publication-step, .ws-publish .publishing-version-controls > .publication-step + .publication-step { margin-top: 12px; }
.ws-publish .publication-step > :last-child { margin-bottom: 0; }
.ws-publish .publication-step:has(> .publication-step-heading:only-child) { padding-block: 14px; }
.ws-publish .publication-step-heading { display: flex; align-items: center; gap: 12px; margin: 0; }
.ws-publish .publication-step-heading + * { margin-top: 14px; }
.ws-publish .publication-step-heading h2 { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: 0; }
.ws-publish .publication-step-number { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 13px; font-weight: 650; }
.ws-publish .publication-step-heading.is-done .publication-step-number { border-color: #c7dbcd; background: #edf4ee; color: var(--green); }
.ws-publish .publication-step.is-waiting .publication-step-heading h2 { color: var(--muted); }
.ws-publish .publication-step.is-waiting .publication-step-number { color: var(--muted); }
.ws-publish .publication-step .hosting-help { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ws-publish .publication-step-heading + .hosting-help { margin-top: 6px; padding-left: 40px; }
.ws-publish .publication-steps-waiting[hidden], .ws-publish [data-publishing-workbench][hidden] { display: none; }
.ws-publish .publication-flow .publication-workbench, .ws-publish .publication-workbench .hosting-root, .ws-publish .publication-workbench .hosting-build { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.ws-publish .publishing-version-panel > .hosting-local { padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; }
.ws-publish .publication-workbench .hosting-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }
.ws-publish .publication-step .hosting-actions { margin-top: 14px; }
.ws-publish .publication-step .hosting-actions .btn { min-width: 0; min-height: 44px; font-size: 14px; }
.ws-publish .publication-flow .hosting-actions .btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.ws-publish .publication-step .hosting-preview { margin: 14px 0 0; padding: 0; border: 0; }
.ws-publish .publication-step .hosting-preview .hosting-text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.ws-publish .publication-step .hosting-preview .hosting-help { margin-top: 8px; }
.ws-publish .publication-final { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.ws-publish .hosting-review-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0; background: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.ws-publish .hosting-review-check input { width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--berry); }
.ws-publish .publication-step .hosting-cloud-review { margin: 14px 0 0; border-radius: 8px; }
.ws-publish .publication-step .publishing-version-status { margin: 0 0 12px; }
.ws-publish .publishing-version-panel > .hosting-local, .ws-publish .publishing-version-panel > .hosting-help { margin: 0 0 12px; }

.ws-publish .publication-checks { margin: 14px 0 0; padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.ws-publish .publication-checks > summary,
.ws-publish .publication-test-result > summary,
.ws-publish .private-testers-summary { display: flex; align-items: center; gap: 12px; min-height: 48px; list-style: none; cursor: pointer; font-size: 14px; }
.ws-publish .publication-checks > summary::-webkit-details-marker,
.ws-publish .publication-test-result > summary::-webkit-details-marker,
.ws-publish .private-testers-summary::-webkit-details-marker { display: none; }
.ws-publish .publication-checks > summary::before,
.ws-publish .publication-test-result > summary::before,
.ws-publish .private-testers-summary::before { content: '›'; flex: none; font-size: 22px; color: var(--muted); }
.ws-publish .publication-checks[open] > summary::before,
.ws-publish .publication-test-result[open] > summary::before,
.ws-publish .private-testers-disclosure[open] > summary::before { transform: rotate(90deg); }
.ws-publish .publication-checks > summary > :last-child { margin-left: auto; font-size: 14px; }
.ws-publish .publishing-version-controls:has(.publication-preview-step > .is-done) .publication-checks:has(> summary .is-blocked) > summary > span:first-child { padding: 10px 14px; border-radius: 7px; background: var(--berry); color: #fff; font-weight: 600; }
.ws-publish .publication-test-result { margin-top: 12px; border-top: 1px solid var(--line); }
.ws-publish .publication-test-result > summary > span { margin-left: auto; color: var(--muted); }
.ws-publish .publication-test-result .hosting-functional-test { margin: 0; padding: 4px 0 0; border: 0; border-radius: 0; }
.ws-publish .publication-checks-content { padding-bottom: 4px; }
.ws-publish .publication-checks-content h3 { font-size: 16px; }
.ws-publish .publication-checks-content h4 { font-size: 14px; }
.ws-publish .hosting-assessment-state { font-size: 14px; }
.ws-publish .publication-checks-content .hosting-assessment-check > p { font-size: 14px; }
.ws-publish .publication-checks-content .hosting-assessment-next { display: none; }
.ws-publish .private-testers-disclosure { margin: 0; padding: 0 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ws-publish .private-testers-summary { min-height: 64px; }
.ws-publish .private-testers-summary-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; flex: 1; min-width: 0; }
.ws-publish .private-testers-summary-text strong { font-size: 16px; }
.ws-publish .private-testers-summary-status { font-size: 14px; color: var(--muted); }
.ws-publish .private-testers-content { padding: 0 0 16px; }
.ws-publish .private-testers-content > p { font-size: 16px; margin: 4px 0 12px; }
.ws-publish .private-testers-content h3 { font-size: 16px; margin: 16px 0 8px; }
.ws-publish .private-testers-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.ws-publish .private-testers-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.ws-publish .private-testers-status:empty { display: none; }
.ws-publish .private-testers-inline { margin: 0; padding: 18px 24px; border-radius: 8px; }
.ws-publish .private-testers-inline .private-testers-content { padding: 0; margin-top: 10px; }
.ws-publish .private-testers-inline .private-testers-search { margin: 12px 0; }
.ws-publish .private-testers-search input { box-sizing: border-box; font-size: 16px; border-radius: 8px; }
.ws-publish .publication-public-status { padding: 14px 2px; border-top: 1px solid var(--line); }
.ws-publish .publication-public-status > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ws-publish .publication-public-status h2 { margin: 0; font-size: 16px; }
.ws-publish .publication-public-status span { font-size: 14px; color: var(--muted); }
.ws-publish .publication-public-status p { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.ws-publish .hosting-direct-link { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.hosting-discover-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.hosting-discover-switch:disabled { cursor: default; opacity: .55; }
.hosting-switch-track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: #d9d0ca; transition: background .15s; }
.hosting-switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: transform .15s; }
.hosting-discover-switch[aria-checked="true"] .hosting-switch-track { background: var(--accent, #800000); }
.hosting-discover-switch[aria-checked="true"] .hosting-switch-track::after { transform: translateX(16px); }
.hosting-discover-switch:focus-visible { outline: 2px solid var(--accent, #800000); outline-offset: 3px; border-radius: 999px; }
.ws-publish :is(.publication-checks, .publication-test-result, .private-testers-disclosure) > summary:focus-visible { outline: 3px solid #bd6f82; outline-offset: 3px; border-radius: 4px; }
@media(max-width:600px) {
  .ws-publish .private-testers-disclosure { padding-inline: 16px; }
  .ws-publish .private-testers-inline { padding-inline: 16px; }
  .ws-publish .private-testers-summary-text { display: grid; gap: 2px; }
  .ws-publish .private-testers-summary { padding-block: 8px; }
}

/* Step 1: the chosen version, the upload box and the newest upload being checked */
.ws-publish .publication-selected-file { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fcfaf8; }
.ws-publish .publication-selected-file strong { display: block; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.ws-publish .publication-selected-file p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ws-publish .publication-row-version { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 5px; background: #f2eeeb; color: #5b4e48; font-size: 13px; font-weight: 650; }
.ws-publish [data-publishing-file]:empty { display: none; }
.ws-publish .hosting-submissions { margin: 0; padding: 0; border: 0; }
.ws-publish .hosting-submissions:empty, .ws-publish [data-publishing-uploader]:empty { display: none; }
.ws-publish .hosting-submissions > * { margin-top: 14px; }
.ws-publish .hosting-submissions-form fieldset { display: grid; gap: 16px; }
.ws-publish .publication-drop { position: relative; display: grid; justify-items: start; gap: 4px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; background: #fcfaf8; transition: border-color .18s, background .18s; }
.ws-publish .publication-drop.is-dragging { border-color: var(--berry); background: var(--rose); }
.ws-publish .publication-drop:focus-within { outline: 2px solid var(--berry); outline-offset: 2px; }
.ws-publish .publication-drop-title { margin: 0; color: var(--ink); font-size: 16px; font-weight: 650; }
.ws-publish .publication-drop .hosting-submission-help { margin: 0; }
.ws-publish .publication-drop-choose { margin-top: 10px; cursor: pointer; }
.ws-publish .publication-drop-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
.ws-publish .publication-drop .hosting-submission-selected { margin: 8px 0 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.ws-publish fieldset:disabled .publication-drop-choose { opacity: .55; cursor: default; }
.ws-publish .hosting-submissions-form label[for="hosting-submission-notes"] > span { color: var(--muted); font-weight: 400; }
.ws-publish .hosting-submissions-form textarea { min-height: 0; height: auto; }
/* While the upload form is open it is the step's one main action, and a newer upload being checked outranks the live version. */
.ws-publish .publication-file-step:has([data-hosting-submission-form]) .publication-selected-file > .btn { display: none; }
.ws-publish .publication-file-step:has(.hosting-submission-row) .publication-selected-file > .btn.primary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.ws-publish .hosting-submission-send { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 20px; margin: 0; }
.ws-publish .hosting-submission-send .btn { min-width: 140px; }
.ws-publish .hosting-submission-send > p { margin: 0; color: var(--muted); font-size: 13px; }
.ws-publish .hosting-submission-row { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fcfaf8; }
.ws-publish .hosting-submission-row-heading h3 { font-size: 15px; }
.ws-publish .hosting-submission-row .hosting-submission-meta { margin-top: 2px; }
.ws-publish .hosting-submission-next { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 10px; }
.ws-publish .hosting-submission-next > p { flex-basis: 100%; margin: 0; }
.ws-publish .hosting-submission-notice, .ws-publish .hosting-submission-error { margin-bottom: 0; border-radius: 8px; }

/* More options: one fold-out for everything rare */
.ws-publish .publication-more { margin: 12px 0 0; border-top: 1px solid var(--line); }
.ws-publish .publication-more > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; list-style: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.ws-publish .publication-more > summary::-webkit-details-marker { display: none; }
.ws-publish .publication-more > summary::before { content: '›'; font-size: 20px; line-height: 1; transition: transform .15s; }
.ws-publish .publication-more[open] > summary::before { transform: rotate(90deg); }
.ws-publish .publication-more > summary:hover { color: var(--ink); }
.ws-publish .publication-more-row { padding: 18px 0; border-top: 1px solid var(--line); }
.ws-publish .publication-more-row[hidden], .ws-publish [data-publishing-more-browser][hidden], .ws-publish [data-publishing-more-server][hidden] { display: none; }
.ws-publish .publication-more-row h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.4; letter-spacing: 0; }
.ws-publish .publication-more-row .hosting-help { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ws-publish .publication-more-row .hosting-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 10px 0 0; }
.ws-publish .publication-more-row .hosting-actions .btn { min-height: 44px; font-size: 14px; background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.ws-publish .publication-more-row .hosting-confirm .hosting-actions .btn:not(.secondary) { background: var(--berry); color: #fff; border-color: var(--berry); }
.ws-publish .publication-more .hosting-confirm { margin: 18px 0 0; border-radius: 8px; }
.ws-publish .publication-more textarea { width: 100%; min-height: 0; box-sizing: border-box; margin: 4px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; font: 13px/1.6 ui-monospace, monospace; resize: vertical; }
.ws-publish .publication-link-row .editor-section { margin: 8px 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
.ws-publish .publication-link-row .form-field { margin: 0; }
.ws-publish .publication-link-row .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.ws-publish .publication-version-list { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ws-publish .publication-version-row { grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 14px; padding: 14px 16px; }
.ws-publish .publication-version-row.is-selected { background: #fcfaf8; box-shadow: inset 3px 0 var(--berry); }
.ws-publish .publication-version-name p { margin: 2px 0 0; }
.ws-publish .publication-version-notes { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.ws-publish .publication-version-row .btn { min-height: 44px; padding: 0 14px; font-size: 13px; background: #fff; color: var(--ink); box-shadow: none; }
.ws-publish .publication-version-row .btn:disabled { opacity: .6; cursor: default; }
.ws-publish .publication-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ws-publish .publication-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--berry); }
.ws-publish .hosting-submissions-more .hosting-submission-history { display: grid; gap: 8px; margin-top: 12px; }
.ws-publish .hosting-storage { margin: 10px 0 0; }

/* Settings: project page form with the card preview beside it, then Visibility and Archive. */
.ws-details .ws-details-grid { grid-template-columns: minmax(0, 1fr) 320px; margin-bottom: 20px; }
.ws-details .ws-details-form { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ws-details .ws-details-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.ws-details .ws-details-pair > :last-child { grid-column: auto; }
.ws-details .ws-details-form .form-actions { justify-content: flex-start; }
.ws-details .ws-details-side { gap: 12px; }
.ws-details .ws-details-side .project-cover-settings { margin: 0; padding: 0; border: 0; background: none; }
/* The side is already labelled Card image, so the controls' own fold-out label only repeats it. */
.ws-details .ws-details-side .project-cover-settings[open] > summary { display: none; }
.ws-details .ws-details-side [data-cover-status] { margin: 0 0 8px; font-size: 13px; line-height: 1.5; }
.ws-details .ws-details-side [data-cover-controls] .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ws-details .ws-details-side [data-cover-controls] .btn { min-height: 44px; }

/* Settings rows */
.ws-tools.ws-settings.project-settings-page { max-width: none; }
.ws-settings .ws-settings-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: none; }
.ws-settings .ws-settings-row > div:first-child { flex: 1 1 320px; min-width: 0; }
.ws-settings .ws-settings-row h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 4px; font-size: 17px; }
.ws-settings .ws-settings-row h2 .pill { font-family: var(--body); font-size: 12px; font-weight: 600; }
.ws-settings .ws-settings-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ws-tools.ws-settings .ws-settings-row > div.ws-settings-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; }
.ws-settings .settings-archive { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0; padding: 20px 24px; border: 1px solid #ecd3d0; border-radius: 8px; background: #fdf7f6; }
.ws-settings .settings-archive h2 { margin: 0 0 4px; color: #8f2424; font-size: 17px; }
.ws-settings .settings-archive p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 1100px) {
  .ws-details .ws-details-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ws-publish .publication-current, .ws-publish .publication-step { padding: 16px 18px; }
  .ws-publish .publication-step-heading + .hosting-help { padding-left: 0; }
  .ws-publish .publication-selected-file { grid-template-columns: 40px minmax(0, 1fr); }
  .ws-publish .publication-selected-file > .btn { grid-column: 1 / -1; width: 100%; }
  .ws-publish .publication-current-actions { width: 100%; }
  .ws-publish .publication-current-actions .btn, .ws-publish .publication-step .hosting-actions .btn { flex: 1 1 100%; width: 100%; }
  .ws-publish .hosting-submission-send { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .ws-publish .hosting-submission-send .btn { flex: none; width: 100%; }
  .ws-publish .hosting-submission-send > .text-link { align-self: flex-start; }
  .ws-publish .publication-drop { padding: 18px; }
  .ws-publish .publication-version-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .ws-publish .publication-version-row .publication-version-status { grid-column: 2; grid-row: 2; }
  .ws-publish .publication-version-row > .btn { grid-column: 3; grid-row: 1 / 3; }
  .ws-details .ws-details-form { padding: 18px; }
  .ws-publish .publication-selected-file .text-link { min-height: 44px; }
  .ws-details .ws-details-pair { grid-template-columns: minmax(0, 1fr); }
  .ws-settings .ws-settings-row { padding: 18px; }
  .ws-tools.ws-settings .ws-settings-row > div.ws-settings-actions { justify-content: flex-start; }
  .ws-settings .settings-archive { padding: 18px; }
}

/* Local-only hosting note: solid, not dashed */
.ws-tools .hosting-local { border-style: solid; }

.publication-backend-help { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, #e5dfdc); font-size: 16px; }
.publication-backend-help summary { cursor: pointer; font-weight: 600; }
.publication-backend-help p { margin: 12px 0; max-width: 68ch; }
.publication-backend-help textarea { width: 100%; margin-top: 12px; font-size: 14px; }
.publication-public-status .btn { margin-top: 14px; }
.publication-verification-status { padding: 24px; background: var(--paper, #fffdfb); border: 1px solid var(--line, #e5dfdc); border-radius: 14px; }
.publication-verification-status header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.publication-verification-status h2 { margin: 0; font-size: 20px; }
.publication-verification-status ol { list-style: none; padding: 0; margin: 18px 0; }
.publication-verification-status li { padding: 6px 0; border-top: 1px solid var(--line, #e5dfdc); }
.publication-verification-status li summary { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; list-style: none; font-size: 16px; }
.publication-verification-status li summary::-webkit-details-marker { display: none; }
.publication-verification-status li summary strong { flex: 1; }
.publication-verification-status li summary::after { content: "›"; color: var(--muted, #776e68); }
.publication-verification-status li details[open] summary::after { transform: rotate(90deg); }
.publication-verification-status li details { font-size: 14px; }
.publication-verification-status summary { cursor: pointer; }
.publication-verification-status li p { max-width: 70ch; margin: 10px 0 0; line-height: 1.5; }
.verification-state { flex-shrink: 0; color: var(--muted, #776e68); font-size: 14px; }
.verification-state.is-passed, .verification-state.is-configured { color: #356c53; }
.verification-state.is-blocked, .verification-state.is-needs_review { color: var(--berry, #7b1712); }
.publication-verification-next { margin: 16px 0 0; font-size: 16px; line-height: 1.5; }
.publication-verification > [data-publishing-more-browser] > .publication-more-row, .publication-verification > [data-publishing-more-server] > .publication-more-row { background: var(--paper, #fffdfb); border: 1px solid var(--line, #e5dfdc); border-radius: 14px; padding: 24px; }
@media (max-width: 540px) { .publication-verification-status { padding: 18px; } .publication-verification-status li summary { gap: 10px; } }

.ws-publish .publication-verification-file { padding: 16px 24px; }
.ws-publish .publication-verification-file .publication-selected-file { border: 0; padding: 0; background: transparent; }

.ws-publish .publication-verification-status li summary strong { font-size: 16px; line-height: 1.45; }
.ws-publish .publication-verification-status .hosting-help, .ws-publish .publication-verification-status header > span, .ws-publish .publication-verification-file .publication-selected-file p { font-size: 14px; }

.ws-publish .publication-verification .publication-step > h2:not(.sr-only) { font-size: 20px; margin: 0 0 12px; }
.ws-publish .publication-verification-status li summary { min-height: 44px; }

/* aurora/pages.css */
/* My projects, the shared Preview button, Create a project and the public project page. Uses the site.css variables and corner sizes. */

/* ---------- Preview button ---------- */
.preview-control { white-space: nowrap; }
.preview-control .icon { width: 16px; height: 16px; }
.preview-control .preview-play { color: var(--berry); fill: currentColor; stroke-width: 1.2; }
.preview-control:disabled { cursor: not-allowed; }

/* ---------- My projects ---------- */
.my-projects-page .my-project-groups { gap: 48px; }
.my-projects-page > .page-title { align-items: baseline; flex-wrap: wrap; margin-bottom: 28px; }
.my-projects-add-app { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.work-requests { margin: 0 0 44px; }
.work-request-list { margin: 0; padding: 0; list-style: none; }
.work-request { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.work-request-name { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15px; }
.work-request-name:hover { color: var(--berry); text-decoration: underline; text-underline-offset: 4px; }
.work-request-detail { color: var(--muted); font-size: 14px; }

.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.work-group-empty { max-width: 560px; padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.work-group-empty h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.02em; }
.work-group-empty p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.my-projects-archived { margin-top: 36px; }
.my-projects-archived .text-link { min-height: 44px; color: var(--muted); font-size: 14px; font-weight: 500; }
.category-suggestion { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.category-suggestion .text-link { min-height: 44px; font-size: 14px; font-weight: 600; }
.my-projects-archived .text-link:hover { color: var(--ink); }

/* A tidy card: the cover on top at a modest size, then the name, where the project stands, and its two buttons. */
.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color .2s, box-shadow .3s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover { border-color: var(--line-strong); box-shadow: var(--lift); }
.work-card-thumb { position: relative; isolation: isolate; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.work-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1); }
.work-card:hover .work-card-thumb img { transform: scale(1.025); }
.work-card-thumb .preview-placeholder[class*=cover-tone] { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; width: 100%; height: 100%; padding: 14px 16px; background-size: cover; background-position: center; }
.work-card-thumb .preview-placeholder[class*=cover-tone] > :first-child { margin: 0; padding: 0; border: 0; background: none; color: #fff; font-size: 30px; font-weight: 660; line-height: 1; letter-spacing: -0.03em; text-shadow: 0 1px 12px #12080b66; }
.work-card-thumb .preview-placeholder[class*=cover-tone] > :last-child { display: none; }
.work-card-main { flex: 1; min-width: 0; padding: 14px 16px 0; }
.work-card-name { display: -webkit-box; margin: 0; overflow: hidden; font-size: 16px; font-weight: 650; line-height: 1.3; letter-spacing: -0.012em; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.work-card-name a:hover { color: var(--berry); }
.work-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.work-card-meta .pill { min-height: 24px; padding: 0 9px; font-size: 12px; }
.work-card-meta .project-visibility { position: static; min-height: 24px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); box-shadow: none; color: var(--ink-soft); font-size: 12px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.work-card-meta .project-visibility svg { width: 12px; height: 12px; }
.work-card-meta .project-visibility.is-published { border-color: #bfd3c5; background: #eef7f0; color: #285c3e; }
.work-card-relation { color: var(--muted); font-size: 12.5px; }
.work-card-status { display: flex; align-items: center; gap: 7px; margin: 9px 0 0; color: var(--ink); font-size: 13px; font-weight: 550; line-height: 1.45; }
.work-card-status::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--berry); }
.work-card-main .svc-chips { margin-top: 10px; }
.work-card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 14px 16px 0; padding: 12px 0 14px; border-top: 1px solid var(--line); }
.work-card-foot .btn { min-height: 36px; padding: 0 13px; border-radius: 10px; font-size: 13.5px; }
.work-card-preview { margin-right: auto; }
.work-card-preview .btn { border-color: transparent; background: none; box-shadow: none; color: var(--ink-soft); }
.work-card-preview .btn:hover { background: var(--surface-hover); color: var(--ink); }
.work-card-workspace .icon { width: 15px; height: 15px; }
.work-card :is(a, button):focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }

@media (max-width: 640px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .work-card-foot .btn { min-height: 44px; }
  .work-requests { margin-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .work-card, .work-card-thumb img { transition: none; }
  .work-card:hover .work-card-thumb img { transform: none; }
}
}

/* ---------- Create a project ---------- */
.journey-start.start-page { max-width: 820px; }
.start-page .breadcrumb { margin-bottom: 18px; }
.journey-start.start-page.is-app { max-width: 1240px; }
.start-page .start-title { flex-wrap: wrap; align-items: flex-end; gap: 18px 24px; margin-bottom: 24px; }
.start-page .start-title-text { flex: 1 1 340px; }
.start-page .start-title p { margin: 8px 0 0; }

.start-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.start-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 6px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.start-switch a:hover { color: var(--ink); background: #f6f2ef; }
.start-switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.start-switch a:focus-visible { outline: 3px solid #9d3232; outline-offset: 2px; }

.journey-start.start-page .start-form { display: block; max-width: none; padding: 28px; }
.journey-start.start-page.is-app .start-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.start-page.is-app .start-app { grid-column: 2; grid-row: 1; }
.start-page.is-app .start-fields { grid-column: 1; grid-row: 1; }
.start-fields { display: grid; gap: 24px; min-width: 0; }
/* The submit row comes after the app box in the page order, so Tab goes fields, app, then Create. */
.start-submit { display: grid; gap: 14px; min-width: 0; margin-top: 24px; }
.start-page.is-app .start-submit { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
.journey-start.start-page .start-form textarea { height: 120px; min-height: 96px; }
.journey-start.start-page .form-help { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.start-choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.start-choices legend { margin-bottom: 10px; padding: 0; color: #493d38; font-size: 14px; font-weight: 600; }
.start-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.start-stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.start-chip, .start-stage { position: relative; display: block; min-width: 0; cursor: pointer; }
.journey-start.start-page :is(.start-chip, .start-stage) input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.start-chip > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border: 1px solid #e7e4e2; border-radius: 6px; background: var(--surface); color: #625a56; font-size: 13px; font-weight: 500; transition: background 0.15s, border-color 0.15s; }
.start-chip:hover > span { border-color: #baada6; }
.start-chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.start-chip input:focus-visible + span,
.start-stage:has(input:focus-visible) { outline: 3px solid #9d3232; outline-offset: 2px; }
.start-stage { min-height: 44px; padding: 12px 14px; border: 1px solid #d9ccc5; border-radius: 8px; background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.start-stage:hover { border-color: #baada6; }
.start-stage:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.start-stage-text { display: grid; justify-items: start; gap: 7px; }
.start-stage-text small { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.4; }
.start-page :is(.start-chip, .start-stage) input:disabled { cursor: wait; }

.start-page .journey-start-actions { margin-top: 2px; }
.start-private { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.start-private .icon { width: 15px; height: 15px; }
.start-optional { color: var(--muted); font-weight: 400; }

.start-app { display: grid; align-content: start; gap: 12px; min-width: 0; }
.start-app-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.start-app-meta { min-width: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.start-app-look {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid #e7e0dc;
  border-radius: 9px;
  background: #f6f2ef;
  transition: background 0.15s, border-color 0.15s;
}
.start-app-look.is-over { border-color: var(--berry); background: #fbf1ee; box-shadow: inset 0 0 0 1px var(--berry); }
.start-app-look.has-file { aspect-ratio: 16 / 10; background: #fff; }
.start-app-look.has-error { border-color: #e2bcbc; }
.start-app-empty { display: grid; justify-items: center; gap: 4px; padding: 20px; color: var(--muted); font-size: 13px; text-align: center; }
.start-app-empty strong { color: var(--ink); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.start-app-empty .icon { width: 22px; height: 22px; margin-bottom: 4px; color: var(--berry); }
/* A picture only: a second file dropped on it reaches the panel, and links in it can't load other sites. */
.start-app-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; pointer-events: none; }
.start-app-files { display: grid; align-content: start; justify-items: start; gap: 8px; width: 100%; height: 100%; padding: 22px; overflow: auto; color: var(--muted); font-size: 13px; }
.start-app-files.is-single { align-content: center; justify-items: center; max-width: 420px; margin: 0 auto; text-align: center; line-height: 1.55; }
.start-app-files > .icon { width: 24px; height: 24px; color: var(--berry); }
.start-app-files strong { color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.start-app-files ul { display: grid; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; }
.start-app-files li { color: var(--ink); font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.start-app-files li.start-app-more { color: var(--muted); font-family: var(--body); }
.start-app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.start-app-choose { cursor: pointer; }
.start-app-choose .icon { width: 17px; height: 17px; }
.start-app-choose:has(input:focus-visible) { outline: 3px solid #9d3232; outline-offset: 4px; }
.journey-start.start-page .start-app-choose input { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.start-app-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.start-app-note.is-error { color: #a62c37; }
.start-handoff-note { margin-top: 6px; color: var(--ink); }

@media (max-width: 900px) {
  .journey-start.start-page.is-app .start-form { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .start-page.is-app :is(.start-app, .start-fields, .start-submit) { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
  .start-page .start-title { margin-bottom: 18px; }
  .start-switch { display: flex; width: 100%; }
  .start-switch a { flex: 1 1 0; padding: 0 8px; font-size: 13px; white-space: normal; text-align: center; line-height: 1.25; }
  .journey-start.start-page .start-form { padding: 20px; }
  .journey-start.start-page .journey-start-actions { flex-flow: column nowrap; align-items: stretch; }
  .journey-start.start-page .journey-start-actions .btn { flex: 0 0 auto; width: 100%; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .start-chip > span, .start-stage, .start-app-look, }

/* ---------- Public project page ---------- */
.project-page .project-heading .row { flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.project-detail-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.project-detail-roles .join-project-roles { margin: 0; }
/* The preview is centered and fills most of the screen's height, with Try app (and upvotes and views) just under it.
   The description, feedback and team follow one after another below. */
.project-page .project-detail-layout { grid-template-columns:minmax(0, 1fr); max-width:860px; }
/* The cover leaves room for Try app on a laptop screen. */
.project-page .project-detail-visual { width:min(100%, max(480px, calc((100vh - 380px) * 1.6))); margin:6px auto 44px; }
.project-cover-frame { position:relative; }
.project-cover-frame > img, .project-cover-frame > .preview-placeholder { display:block; width:100%; }
/* A big play button over the cover, like a video. */
.project-play-overlay { position:absolute; left:50%; top:50%; display:grid; place-items:center; width:76px; height:76px; padding:0; border:0; border-radius:50%; background:#fffffff0; color:var(--berry, #800000); box-shadow:0 10px 30px -8px #1a171566; transform:translate(-50%, -50%); cursor:pointer; transition:transform .15s ease, box-shadow .15s ease; }
.project-play-overlay:hover { transform:translate(-50%, -50%) scale(1.06); box-shadow:0 14px 36px -8px #1a171580; }
.project-play-overlay:focus-visible { outline:3px solid var(--berry, #800000); outline-offset:3px; }
.project-play-overlay .preview-play { width:30px; height:30px; margin-left:4px; fill:currentColor; stroke:none; }
.project-play-overlay > span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
@media (prefers-reduced-motion: reduce) { .project-play-overlay { transition:none; } }
.project-page .project-detail-visual > img, .project-page .project-detail-visual > .preview-placeholder { width:100%; }
.project-showcase-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px; margin-top:16px; }
.project-showcase-actions .project-try-app { flex:1 1 320px; min-height:56px; font-size:18px; }
.project-page .project-detail-copy > h2 { font-size:28px; }
.project-page .project-detail-copy p { font-size:16px; }
.project-page .project-comments, .project-page .project-feedback { max-width:860px; margin-bottom:40px; }
.project-page > .project-detail-team { max-width:860px; margin:0 0 40px; }
.project-detail-layout.is-text-only { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.project-detail-layout.is-text-only .project-detail-copy > p { max-width: 68ch; }
@media (max-width: 640px) {
  .project-page .project-heading .actions .btn { flex: 1 1 auto; white-space: nowrap; }
  .project-page .project-detail-visual { width:100%; }
  .project-showcase-actions .project-try-app { flex-basis:100%; }
}

/* Get set up / Needs you: GitHub and Claude Code, plus projects waiting on someone. */
.setup-checklist { display:grid; gap:16px; margin:0 0 40px; }
.setup-card { padding:18px 20px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.setup-card.is-alert { border-color:color-mix(in srgb, var(--berry) 35%, var(--line)); background:color-mix(in srgb, var(--rose) 55%, var(--surface)); }
.setup-card.is-quiet { background:transparent; }
.setup-head { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.setup-head h2 { margin:0; font-size:17px; }
.setup-progress { display:flex; gap:4px; }
.setup-progress i { width:22px; height:5px; border-radius:3px; background:var(--line); }
.setup-progress i.is-done { background:var(--green); }
.setup-badge { display:grid; place-items:center; min-width:22px; height:22px; padding:0 6px; border-radius:11px; background:var(--berry); color:#fff; font-size:12px; font-weight:650; }
.setup-rows { list-style:none; margin:0; padding:0; display:grid; }
.setup-row { display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 0; border-top:1px solid var(--line); }
.setup-row:first-child { border-top:0; }
.setup-icon { display:grid; place-items:center; width:34px; height:34px; flex:none; border-radius:10px; background:var(--rose); color:var(--berry); }
.setup-icon .ui-icon { width:18px; height:18px; }
.setup-row.is-done .setup-icon { background:color-mix(in srgb, var(--green) 14%, transparent); color:var(--green); }
.setup-text { display:grid; gap:2px; min-width:0; flex:1; }
.setup-text strong { font-size:14px; }
.setup-text span { color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
.setup-action { display:flex; gap:8px; margin-left:auto; }
.setup-action .btn { min-height:38px; white-space:nowrap; }
.setup-asked { color:var(--muted); font-size:13px; white-space:nowrap; }
.setup-notice { margin:0 0 20px; padding:4px 16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.setup-notice.is-alert { border-color:color-mix(in srgb, var(--berry) 35%, var(--line)); background:color-mix(in srgb, var(--rose) 55%, var(--surface)); }
.ws-setup-slot:empty { display:none; }
.setup-dot { display:inline-grid; place-items:center; min-width:18px; height:18px; margin-left:6px; padding:0 5px; border-radius:9px; background:var(--berry, #800000); color:#fff; font-size:11px; font-weight:650; line-height:1; }
.aurora-navigation:not(.has-pill) a.is-current .setup-dot, .aurora-nav-pill-words .setup-dot { background:#fff; color:#800000; }
.is-over-welcome .aurora-nav-pill-words .setup-dot { background:var(--berry, #800000); color:#fff; }
/* On the phone tab bar the count sits on the icon's corner, so the tab stays level with its neighbours. */
@media (max-width: 680px) {
  .aurora-header-wrap .aurora-header .aurora-navigation a { position:relative; }
  .aurora-header-wrap .aurora-header .aurora-navigation .setup-dot { position:absolute; top:2px; left:calc(50% + 5px); min-width:16px; height:16px; margin:0; padding:0 4px; font-size:10px; }
}
@media (max-width: 640px) {
  .setup-row { flex-wrap:wrap; }
  .setup-action { width:100%; margin-left:46px; }
}

/* Upvotes and views: side by side in each card's footer, and next to Try app on the project page. */
.project-card-media { position:relative; }
/* Bookmark in the card's top-right corner: a 44px target around a smaller visible circle. */
.card-bookmark { position:absolute; top:4px; right:4px; z-index:2; display:grid; place-items:center; width:44px; height:44px; padding:0;
  border:0; background:none; color:var(--ink, #281d1a); cursor:pointer; text-decoration:none; }
.card-bookmark::before { content:""; position:absolute; inset:6px; border-radius:999px; background:rgba(255,255,255,.92);
  box-shadow:0 1px 4px rgba(40,29,26,.18); }
.card-bookmark svg { position:relative; width:18px; height:18px; }
.card-bookmark.is-saved { color:var(--accent, #800000); }
.card-bookmark:hover::before { background:#fff; }
.card-bookmark:focus-visible { outline:3px solid var(--accent, #800000); outline-offset:-3px; border-radius:999px; }
.project-views { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:14px; font-variant-numeric:tabular-nums; }
.project-views svg { width:16px; height:16px; flex:none; }
.card-engagement { display:inline-flex; flex:none; align-items:center; gap:10px; }
.project-views.is-card { gap:5px; color:var(--ink-soft); font-size:13px; font-weight:600; }
.project-views.is-card svg { width:15px; height:15px; }
.project-upvote { cursor:pointer; font-variant-numeric:tabular-nums; transition:background 140ms ease, border-color 140ms ease, color 140ms ease; }
.project-upvote svg { width:15px; height:15px; flex:none; }
.project-upvote[aria-disabled="true"] { opacity:.6; cursor:wait; }
.project-upvote:focus-visible { outline:2px solid var(--berry); outline-offset:2px; }
.card-bottom .project-upvote { display:inline-flex; flex:none; align-items:center; gap:5px; min-height:44px; min-width:52px; padding:0 13px 0 11px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--ink-soft); font:inherit; font-size:13px; font-weight:600; text-decoration:none; }
.card-bottom .project-upvote:hover { border-color:#cdb2ae; color:var(--berry); }
.card-bottom .project-upvote[aria-pressed="true"] { border-color:#d9b8b3; background:#f8eeec; color:var(--berry); }
.card-maker { min-width:0; }
.card-maker > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.btn.project-upvote { gap:8px; }
.btn.project-upvote .project-upvote-count { padding-left:9px; border-left:1px solid var(--line); color:var(--muted); }
.btn.project-upvote[aria-pressed="true"] { border-color:#d9b8b3; background:#f8eeec; color:var(--berry); }
.btn.project-upvote[aria-pressed="true"] .project-upvote-count { border-left-color:#e3c7c3; color:var(--berry); }
.project-engagement { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; }
.project-heading .project-engagement { margin-top:16px; }
.project-engagement .btn.project-upvote { min-height:52px; padding:0 22px; font-size:17px; font-weight:650; }
.project-engagement .btn.project-upvote svg { width:20px; height:20px; }
.project-views.is-page { gap:8px; min-height:52px; padding:0 18px; border:1px solid var(--line); border-radius:var(--r-sm, 10px); background:var(--surface); color:var(--ink); font-size:17px; font-weight:600; }
.project-views.is-page svg { width:20px; height:20px; color:var(--muted); }
@media (prefers-reduced-motion:reduce) { .project-upvote { transition:none; } }

/* Discover on a phone: a compact row per project (square picture beside the title, a two-line summary, then
   upvotes and views), and search with sort on one line, so the first project shows on the first screen and the
   list is about half as long. */
@media (max-width: 640px) {
  .discover-page .page-title { margin-bottom: 14px; }
  .discover-page .page-title p { margin-top: 2px; }
  .discover-page .search-line { flex-wrap: nowrap; gap: 8px; }
  .discover-page .search-line .search { flex: 1 1 auto; min-width: 0; }
  .discover-page .search-line .sort-select { flex: 0 0 148px; width: 148px; height: 48px; padding-left: 12px; padding-right: 30px; }
  .discover-page .directory-tools { margin-bottom: 14px; }
  .discover-page .grid.wide { gap: 10px; }
  main.discover-page .grid.wide .project-card:not(.private-project) { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 12px; }
  main.discover-page .grid.wide .project-card:not(.private-project)-media { grid-column: 1; grid-row: 1; }
  main.discover-page .grid.wide .project-card:not(.private-project) .card-preview { display: block; width: 92px; height: 92px; aspect-ratio: auto; border-radius: 10px; overflow: hidden; }
  main.discover-page .grid.wide .project-card:not(.private-project) .card-preview img,
  main.discover-page .grid.wide .project-card:not(.private-project) .card-preview .preview-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
  main.discover-page .grid.wide .project-card:not(.private-project) .preview-placeholder small { display: none; }
  main.discover-page .grid.wide .project-card:not(.private-project) .preview-placeholder > span { font-size: 26px; }
  main.discover-page .grid.wide .project-card:not(.private-project) .card-info { grid-column: 2; grid-row: 1; min-width: 0; padding: 0; }
  main.discover-page .grid.wide .project-card:not(.private-project) .card-title-line { flex-wrap: wrap; align-items: center; gap: 2px 8px; }
  main.discover-page .grid.wide .project-card:not(.private-project) .card-title-line :is(h2, h3) { font-size: 17px; line-height: 1.25; }
  main.discover-page .grid.wide .project-card:not(.private-project) .card-info p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin: 2px 0 8px; font-size: 14px; line-height: 1.4; }
  main.discover-page .grid.wide .project-card:not(.private-project) .card-bottom { padding-top: 6px; gap: 8px; }
  main.discover-page .grid.wide .project-card:not(.private-project) .card-maker { font-size: 12.5px; }
}

/* aurora/workspace.css */
/* Project workspace frame, Overview, Team and Feedback. Uses the live Aurora
   variables from site.css; corners stay small (5px tags, 8px cards). */

/* ---------- Frame ---------- */
.workspace.ws-frame {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100svh - 80px);
  background: var(--bg);
}
.ws-frame .ws-side {
  position: sticky;
  top: 80px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
  height: calc(100svh - 80px);
  overflow-y: auto;
  padding: 24px 16px 20px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.ws-frame .ws-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  color: var(--ink);
  text-decoration: none;
}
.ws-frame .ws-identity:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ws-frame .ws-identity-text {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}
/* Up to two lines, so names that differ only at the end ("Sample project 03") stay readable. */
.ws-frame .ws-identity strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.ws-frame .ws-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.ws-thumb {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f1eeec;
}
.ws-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ws-thumb-initials {
  background: var(--rose);
  color: var(--berry);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ws-nav {
  display: grid;
  gap: 2px;
}
.ws-nav-group {
  display: grid;
  gap: 2px;
  margin-top: 12px;
}
.ws-nav-heading {
  margin: 0;
  padding: 4px 16px 2px;
  color: #8a7d78;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ws-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px 0 16px;
  color: #665c58;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.ws-nav a .icon {
  flex: none;
  width: 17px;
  height: 17px;
  color: #8a7d78;
}
.ws-nav a:hover {
  background: #f8f3f1;
  color: var(--ink);
}
.ws-nav a.is-current .icon {
  color: var(--berry);
}
.ws-nav a.is-current {
  color: var(--ink);
  font-weight: 650;
}
.ws-nav a.is-current::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 4px;
  width: 2px;
  background: var(--berry);
}
.ws-nav a:focus-visible,
.ws-frame .ws-identity:focus-visible,
.ws-since a:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 2px;
}
.ws-count {
  flex: none;
  margin-left: auto;
  color: var(--berry);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.ws-count[hidden] {
  display: none;
}
.ws-preview {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: auto;
  padding: 12px 8px 0;
  border-top: 1px solid var(--line);
}
.ws-preview .ws-page-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ws-page-link .icon {
  width: 14px;
  height: 14px;
}
.ws-preview:not(:has(.preview-control, a, button:not([hidden]))) {
  display: none;
}
.ws-preview .text-link {
  color: var(--ink);
  font-size: 14px;
}
.ws-preview .text-link:disabled {
  color: var(--muted);
  cursor: default;
}
.ws-frame > .workspace-content.ws-main {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 1680px;
  margin: 0;
  padding: 28px clamp(24px, 4vw, 56px) 64px;
}
/* ---------- Shared bits ---------- */
.ws-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ws-sec {
  margin-top: 36px;
}
.ws-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.ws-sec-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}
.ws-sec-head .ws-sec-title {
  margin: 0;
}
.ws-sec-count {
  color: var(--muted);
  font-weight: 500;
}
.ws-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Overview ---------- */
.ws-overview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
}
.ws-overview-head > div {
  min-width: 0;
}
.ws-overview-head .ws-project-link {
  flex: none;
}
.ws-overview-head .ws-project-link .icon {
  width: 16px;
  height: 16px;
}
.ws-overview-head h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.ws-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.ws-listing .icon {
  width: 13px;
  height: 13px;
}
.ws-since-slot:empty {
  display: none;
}
.ws-since {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin-top: 24px;
  padding: 14px 20px;
  border-radius: 8px;
  background: #f3efec;
  font-size: 15px;
}
.ws-since a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  color: var(--ink);
  text-decoration: none;
}
.ws-since a:hover {
  color: var(--berry);
}
.ws-since b {
  font-weight: 700;
}
.ws-app-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.ws-app-thumb {
  flex: none;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1eeec;
}
.ws-app-thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ws-app-foot {
  display: flex;
  flex: 1 1 240px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.ws-app-foot p {
  margin: 0;
  font-size: 14px;
}
.ws-app-foot .text-link {
  min-height: 0;
  font-size: 14px;
}
.ws-next {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.ws-next > p {
  margin: 0;
}
.ws-next > p:not(.ws-label) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.ws-next-title {
  margin: 0;
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.ws-next .btn {
  margin-top: 6px;
}
.ws-next .ws-next-loading {
  min-height: 92px;
  color: var(--muted);
  font-size: 14px;
}
.ws-about-body {
  max-width: 72ch;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}
.ws-about-body > * + * {
  margin-top: 10px;
}
.ws-about .text-link {
  font-size: 14px;
}

/* ---------- Team ---------- */
.ws-request,
.ws-member {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.ws-request:last-child,
.ws-member:last-child {
  border-bottom: 1px solid var(--line);
}
.ws-request .avatar,
.ws-member .avatar {
  width: 40px;
  height: 40px;
  border: 0;
  font-size: 15px;
}
.ws-request-body {
  display: grid;
  flex: 1 1 260px;
  gap: 3px;
  min-width: 0;
}
.ws-request-body strong,
.ws-member strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}
.ws-request-role {
  color: var(--berry);
  font-size: 14px;
  font-weight: 600;
}
.ws-request-note {
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ws-request-body small,
.ws-member small {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.ws-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ws-request-own {
  flex: 0 1 240px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.ws-member > div {
  display: grid;
  flex: 1 1 160px;
  min-width: 0;
  line-height: 1.35;
}
.ws-you {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.ws-member .pill {
  font-size: 12px;
}
.ws-open-roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 18px;
}
.ws-open-roles ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ws-open-roles .pill {
  padding: 5px 10px;
  font-size: 13px;
}

/* Members roster for leads (mounted by the project settings controller). */
.ws-team .platform-management .ps-roster .ps-member-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ws-team .platform-management .ps-roster .ps-member {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.ws-team .platform-management .ps-roster .ps-member:first-child {
  padding-top: 16px;
}
.ws-team .platform-management .ps-roster .ps-member:last-child {
  border-bottom: 1px solid var(--line);
}
.ws-team .platform-management .ps-roster .ps-avatar {
  background: #eee2dc;
  color: var(--berry);
  font-weight: 650;
}
.ws-team .platform-management .ps-roster .ps-level {
  padding: 4px 8px;
  border-radius: 5px;
  background: #f3f2f2;
  color: #5f5753;
  font-size: 12px;
  font-weight: 600;
}
.ws-team .platform-management .ps-roster .ps-role-help {
  margin: 12px 0 0;
  padding: 0;
  border-top: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.ws-team .platform-management .ps-roster .ps-member-menu > summary {
  width: auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}
.ws-team .platform-management .ps-roster .ps-member-menu[open] > summary {
  border-color: var(--berry);
  color: var(--berry);
}
.ws-team .platform-management .ps-roster .ps-member-options .ps-member-form {
  max-width: 420px;
}

/* Join requests sit at the top of Members. */
.ws-team .ws-requests {
  margin-bottom: 22px;
}
.ws-team .ws-requests .ws-label,
.ws-team .ws-team-label {
  margin: 0 0 4px;
  font-family: var(--body);
}
.ws-team .ws-requests .ws-request:last-child {
  border-bottom: 0;
}

/* Who can join: three choice cards, one line each. */
.ws-team .team-join-section {
  --team-accent: var(--berry);
  --team-line: var(--line);
  --team-muted: var(--muted);
}
.ws-team .team-join-mode {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.ws-team .team-mode-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 0;
  padding: 16px;
  border: 1px solid #d9ccc5;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.ws-team .team-mode-choice:hover {
  border-color: #c4b6ae;
}
.ws-team .team-mode-choice:has(input:checked) {
  border-color: var(--berry);
  background: #fdf8f6;
  box-shadow: inset 0 0 0 1px var(--berry);
}
.ws-team .team-mode-choice input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--berry);
}
.ws-team .team-mode-choice input:focus-visible {
  outline: none;
}
.ws-team .team-mode-text {
  display: grid;
  gap: 4px;
}
.ws-team .team-mode-text strong {
  font-size: 15px;
  font-weight: 650;
}
.ws-team .team-mode-text small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.ws-team .team-join-roles {
  margin-top: 18px;
}
.ws-team .team-role-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
}
.ws-team .team-role-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--berry);
}
.ws-team .team-custom-role label {
  font-size: 14px;
  font-weight: 600;
}
.ws-team .team-custom-role input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d9ccc5;
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 15px;
}
.ws-team .team-join-section .team-option-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Add teammates: one search box, with the join link on a quiet line below. */
.ws-team .team-add-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.ws-team .team-add-box form {
  display: grid;
  gap: 8px;
  margin: 0;
}
.ws-team .team-add-box label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.ws-team .team-option-search {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.ws-team .team-option-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
}
.ws-team .team-option-search > .btn {
  flex: 0 0 auto;
}
.ws-team .journey-results:empty {
  display: none;
}
.ws-team .journey-results {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.ws-team .journey-search-results {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ws-team .journey-member-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.ws-team .journey-member-result .avatar {
  width: 34px;
  height: 34px;
  border: 0;
  font-size: 12px;
}
.ws-team .journey-member-result strong {
  color: var(--ink);
  font-size: 15px;
}
.ws-team .team-no-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 0 2px;
  border-top: 1px solid var(--line);
}
.ws-team .team-no-account p {
  flex: 1 1 280px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ws-team .team-no-account strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
.ws-team .team-option-empty {
  margin: 4px 0 0;
}
.ws-team .team-invite-result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.ws-team .team-invite-result > strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ws-team .team-invite-result .journey-invite-link {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.ws-team .team-invite-result .journey-invite-link input {
  flex: 1 1 320px;
  min-width: 0;
}
.ws-team .team-invite-result .team-option-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.ws-team .team-invite-result .team-option-actions .btn {
  flex: 0 0 auto;
}
.ws-team .team-invite-result input[readonly],
.ws-team .team-share-result input[readonly] {
  background: #faf8f7;
  font-size: 13px;
}
.ws-team .team-share-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.ws-team .team-share-line {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.ws-team .team-share-line p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.ws-team .team-share-result {
  display: grid;
  flex: 1 1 100%;
  gap: 8px;
}
.ws-team .team-share-result .team-option-help {
  margin: 0;
}
.ws-team .team-share-option .team-revoke-link {
  min-height: 44px;
  margin-left: 6px;
  padding: 0;
  vertical-align: middle;
}
.ws-team .ws-sec-head .text-link {
  font-size: 14px;
}

/* ---------- Feedback ---------- */
.ws-feedback-cols.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.ws-feedback-col {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.ws-feedback-col.ws-feedback-notes {
  background: var(--surface);
}
.ws-feedback-col > .project-section {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* ---------- Permission pages ---------- */
.ws-denied {
  display: grid;
  justify-items: start;
  gap: 10px;
  max-width: 560px;
  margin-top: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.ws-denied h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}
.ws-denied p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.ws-denied .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.ws-denied-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--rose);
  color: var(--berry);
}
.ws-denied-icon .icon {
  width: 20px;
  height: 20px;
}
.ws-denied-page .ws-denied {
  margin: 40px auto 0;
}

/* ---------- Narrower screens ---------- */
@media (min-width: 761px) and (max-width: 1000px) {
  .ws-frame .ws-side {
    top: 131px;
    height: calc(100svh - 131px);
  }
  .workspace.ws-frame {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
@media (max-width: 1023px) {
  .ws-feedback-cols.feedback-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .ws-team .team-join-mode {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .workspace.ws-frame {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    min-height: 0;
  }
  .ws-frame .ws-side {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    height: auto;
    overflow: visible;
    padding: 12px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ws-frame .ws-identity {
    display: flex;
    padding: 0;
  }
  .ws-frame .ws-preview {
    display: flex;
    grid-row: 1;
    grid-column: 2;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .ws-frame .ws-nav {
    display: flex;
    grid-row: 2;
    grid-column: 1 / -1;
    gap: 6px;
    margin: 0 -16px;
    /* Room above the chips so the keyboard focus ring isn't clipped by the scroll box. */
    padding: 4px 16px 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ws-frame .ws-nav::-webkit-scrollbar {
    display: none;
  }
  .ws-nav-group {
    display: contents;
  }
  .ws-nav-heading,
  .ws-nav a .icon,
  .ws-frame .ws-page-link {
    display: none;
  }
  .ws-nav a {
    flex: none;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    white-space: nowrap;
  }
  .ws-nav a.is-current {
    border-color: var(--berry);
    background: var(--rose);
    color: var(--berry);
  }
  .ws-nav a.is-current::before {
    display: none;
  }
  .ws-nav .ws-count::before {
    content: "·";
    margin-right: 6px;
    color: var(--muted);
  }
}
@media (max-width: 480px) {
  /* Bottom room so the floating Help button never covers the end of the page. */
  .ws-frame > .workspace-content.ws-main {
    padding: 18px 16px 96px;
  }
  .ws-since a {
    min-height: 44px;
  }
  .ws-overview-head h1 {
    font-size: 32px;
  }
  .ws-since {
    gap: 4px 20px;
    padding: 12px 16px;
  }
  .ws-since .ws-label {
    flex-basis: 100%;
  }
  .ws-next {
    padding: 20px;
  }
  .ws-request {
    align-items: flex-start;
  }
  .ws-request-actions,
  .ws-request-own {
    flex-basis: 100%;
    width: 100%;
    padding-left: 56px;
  }
  /* Keep name, role and the Manage menu on one line; "Make Member" and the opened menu go below. */
  .ws-team .platform-management .ps-roster .ps-member-demotion {
    order: 4;
    flex: 0 0 100%;
    box-sizing: border-box;
    padding-left: 52px;
  }
  .ws-team .platform-management .ps-roster .ps-member-demotion .btn {
    justify-self: start;
    width: auto;
  }
  .ws-team .platform-management .ps-roster .ps-confirm {
    order: 6;
  }
  .ws-team .team-add-box {
    padding: 16px;
  }
  .ws-team .team-invite-result .team-option-actions,
  .ws-team .team-invite-result .team-option-actions .btn {
    flex: 1 1 auto;
  }
  .ws-feedback-col {
    padding: 18px;
  }
  .ws-denied {
    padding: 22px;
  }
}

/* aurora/services.css */
/* Services: the outside places a project lives, on its Overview and as shortcuts on My projects cards. */
.svc .ws-sec-head { justify-content: flex-start; gap: 8px; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.svc-tile { position: relative; min-width: 0; }
.svc-tile-link { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--lift); transition: border-color .15s, box-shadow .2s var(--ease-out), transform .2s var(--ease-out); }
.svc-tile-link:hover { border-color: var(--line-strong); box-shadow: var(--lift-hover); transform: translateY(-1px); }
.svc-tile-link:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }
.svc-icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: var(--r-md); background: var(--surface-soft); color: var(--ink-soft); }
.svc-icon .icon { width: 19px; height: 19px; }
.svc-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.svc-text strong { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 580; letter-spacing: -0.01em; }
.svc-text small { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.svc-tag { padding: 1px 6px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 500; }
.svc-open { flex: none; color: var(--faint); opacity: 0; transition: opacity .15s; }
.svc-open .icon { width: 15px; height: 15px; }
.svc-tile-link:hover .svc-open, .svc-tile-link:focus-visible .svc-open { opacity: 1; }
/* The remove button sits over the arrow's corner, shown on hover, and always reachable by keyboard. */
.svc-remove { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; opacity: 0; box-shadow: var(--lift); transition: opacity .15s, color .15s; }
.svc-remove .icon { width: 13px; height: 13px; }
.svc-tile:hover .svc-remove, .svc-remove:focus-visible { opacity: 1; }
.svc-remove:hover { color: var(--berry); }
.svc-remove:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }
@media (hover: none) { .svc-remove { opacity: 1; } }

.svc-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.svc-add { display: flex; gap: 8px; max-width: 640px; }
.svc-field { position: relative; display: flex; flex: 1; align-items: center; min-width: 0; }
.svc-field-icon { position: absolute; left: 12px; display: grid; place-items: center; color: var(--faint); pointer-events: none; transition: color .15s; }
.svc-field-icon .icon { width: 17px; height: 17px; }
.svc-field input { width: 100%; min-height: 44px; padding: 0 96px 0 40px; }
.svc-field-name { position: absolute; right: 10px; max-width: 84px; overflow: hidden; padding: 2px 8px; border-radius: 999px; background: var(--surface-soft); color: var(--ink-soft); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.svc-field-name:empty { display: none; }
.svc-field:has(.svc-field-name:not(:empty)) .svc-field-icon { color: var(--ink); }
.svc-add .btn { flex: none; gap: 6px; }
.svc-add .btn .icon { width: 16px; height: 16px; }
.svc-error:empty { display: none; }
.svc-error { margin: 8px 0 0; }
.svc-empty, .svc-loading { margin: 0; color: var(--muted); font-size: 14px; }
.svc-loading:empty { display: none; }

/* Small shortcuts, used on cards and as the examples above the link box. */
.svc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.svc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font: inherit; font-size: 12.5px; font-weight: 500; text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s; }
.svc-chip .icon { width: 14px; height: 14px; color: var(--muted); }
.svc-chip:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.svc-chip:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }
.svc-more { color: var(--muted); }

@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-add { flex-direction: column; }
  .svc-add .btn { justify-content: center; }
}

/* aurora/project-map.css */
/* My projects as a mind map. Each group gets one muted branch colour from --pm-hue; everything else stays stone. */
.pm-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.pm-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.pm-switch button .icon { width: 15px; height: 15px; }
.pm-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--lift); }
.pm-switch button:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }

.pm { margin-top: 8px; }
.pm-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pm-toolbar .btn { gap: 6px; }
.pm-toolbar .btn .icon { width: 15px; height: 15px; }
.pm-canvas { position: relative; min-height: 220px; border: 1px solid var(--line); border-radius: var(--r-lg); background:
  radial-gradient(circle at 1px 1px, #1a17150f 1px, transparent 0) 0 0 / 22px 22px, var(--bg); overflow: hidden; }
.pm-status { margin: 0; padding: 28px; color: var(--muted); font-size: 14px; }
.pm-canvas > .btn { margin: 0 28px 28px; }
.pm-stagearea { position: relative; width: 100%; }
.pm-lines { position: absolute; inset: 0; overflow: visible; }
.pm-line { fill: none; stroke: oklch(0.74 calc(0.07 * var(--pm-chroma, 1)) var(--pm-hue)); stroke-width: 1.5; stroke-linecap: round; }
.pm-line.is-trunk { stroke: oklch(0.66 calc(0.08 * var(--pm-chroma, 1)) var(--pm-hue)); stroke-width: 2.5; }
.pm-line.is-idea { stroke-dasharray: 3 5; }

.pm-node { position: absolute; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; text-align: left; box-shadow: var(--lift); cursor: pointer; user-select: none; transition: border-color .15s, box-shadow .2s var(--ease-out), transform .2s var(--ease-out), background .15s; }
button.pm-node:hover { border-color: var(--line-strong); box-shadow: var(--lift-hover); transform: translateY(-1px); }
.pm-node:focus-visible, .pm-add-idea:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }
.pm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pm-center { flex-direction: column; justify-content: center; align-items: center; gap: 0; height: 46px; padding: 0 16px; border-color: var(--ink); border-radius: 999px; background: var(--ink); color: #fff; cursor: default; box-shadow: var(--float); }
.pm-center strong { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.pm-center small { color: #ffffffb3; font-size: 11.5px; }

.pm-group { border-color: oklch(0.86 calc(0.05 * var(--pm-chroma, 1)) var(--pm-hue)); background: oklch(0.965 calc(0.02 * var(--pm-chroma, 1)) var(--pm-hue)); font-weight: 600; }
.pm-dot { flex: none; width: 9px; height: 9px; border-radius: 999px; background: oklch(0.6 calc(0.11 * var(--pm-chroma, 1)) var(--pm-hue)); }
.pm-count { flex: none; color: var(--muted); font-size: 12px; font-weight: 500; }
.pm-group.is-unsorted { border-style: dashed; background: var(--surface); }

.pm-project { box-shadow: inset 3px 0 0 oklch(0.72 calc(0.08 * var(--pm-chroma, 1)) var(--pm-hue)), var(--lift); padding-left: 14px; }
button.pm-project:hover { box-shadow: inset 3px 0 0 oklch(0.66 calc(0.1 * var(--pm-chroma, 1)) var(--pm-hue)), var(--lift-hover); }
.pm-stage { flex: none; width: 7px; height: 7px; border-radius: 999px; background: var(--berry); }
.pm-stage.is-amber { background: #b5822c; }
.pm-stage.is-blue { background: #36678c; }
.pm-stage.is-green { background: #2f7a52; }
.pm-svcs, .pm-joined { display: inline-flex; flex: none; gap: 3px; color: var(--faint); }
.pm-svcs .icon, .pm-joined .icon { width: 14px; height: 14px; }

.pm-idea { border-style: dashed; border-color: oklch(0.8 calc(0.06 * var(--pm-chroma, 1)) var(--pm-hue)); background: #fdfcfab3; color: var(--ink-soft); box-shadow: none; }
.pm-idea .icon { flex: none; width: 15px; height: 15px; color: oklch(0.6 calc(0.1 * var(--pm-chroma, 1)) var(--pm-hue)); }

.pm-add-idea { position: absolute; display: inline-flex; align-items: center; gap: 6px; width: auto !important; height: 46px; padding: 0 12px; border: 1px dashed transparent; border-radius: 12px; background: transparent; color: var(--faint); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s, color .15s; }
.pm-add-idea .icon { width: 14px; height: 14px; }
.pm-add-idea:hover { border-color: var(--line-strong); color: var(--ink-soft); }
.pm-idea-form { position: absolute; height: 46px; }
.pm-idea-form input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid oklch(0.7 calc(0.09 * var(--pm-chroma, 1)) var(--pm-hue)); border-radius: 12px; background: var(--surface); font: inherit; font-size: 13.5px; }
.pm-idea-form input:focus { outline: none; box-shadow: var(--ring); }

/* Dragging */
.pm-node.is-dragging { opacity: .35; }
.pm-node.is-target, .pm-add-idea.is-target { border-color: oklch(0.6 calc(0.12 * var(--pm-chroma, 1)) var(--pm-hue)); background: oklch(0.95 calc(0.035 * var(--pm-chroma, 1)) var(--pm-hue)); }
.pm-ghost { z-index: 1000; margin: 0; box-shadow: var(--float); transform: rotate(-1.5deg); cursor: grabbing; }

/* Modals */
.pm-modal { display: grid; gap: 10px; }
.pm-modal .svc-chips { margin-top: 0; }
.pm-modal-meta { margin: 0; color: var(--muted); font-size: 14px; }
.pm-field { margin-top: 4px; font-size: 13px; font-weight: 600; }
.pm-modal select, .pm-modal input { width: 100%; min-height: 44px; }
.pm-modal .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pm-modal .actions .btn .icon { width: 16px; height: 16px; }

/* Phones: the same groups stacked, with each branch's colour down its left edge. */
.pm-list { display: flex; flex-direction: column; gap: 18px; padding: 18px; }
.pm-list .pm-node, .pm-list .pm-add-idea { position: relative; }
.pm-list .pm-center { align-self: flex-start; }
.pm-list-group { padding-left: 14px; border-left: 2px solid oklch(0.74 calc(0.08 * var(--pm-chroma, 1)) var(--pm-hue)); }
.pm-list-group > .pm-group { width: 100%; }
.pm-list-items { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-left: 12px; }
.pm-list-items .pm-node { width: 100%; }
.pm-list .pm-idea-form { position: relative; }

@media (prefers-reduced-motion: reduce) { .pm-node, .pm-add-idea { transition: none; } button.pm-node:hover { transform: none; } }

/* home-screen/home-screen.css */
/* Room for the iPhone notch and home bar when Aurora runs full screen from the home screen.
   Every env() value is 0 on screens without them, so those layouts stay exactly as they were.
   The html prefix keeps these rules ahead of page styles that load later. */
html body {
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}
html .aurora-header-wrap,
html .header-wrap { padding-top: env(safe-area-inset-top); }
html .header-wrap,
html .unified-entry > .aurora-header-wrap {
  box-sizing: border-box;
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
}

html :is(.toast, .aurora-navigation-status) { bottom: calc(24px + env(safe-area-inset-bottom)); }

html :is(.modal-backdrop, .auth-overlay, .signin-backdrop, .detail-backdrop) {
  padding: max(var(--edge), env(safe-area-inset-top)) max(var(--edge), env(safe-area-inset-right))
           max(var(--edge), env(safe-area-inset-bottom)) max(var(--edge), env(safe-area-inset-left));
}
.modal-backdrop, .auth-overlay, .signin-backdrop { --edge: 24px; }
.detail-backdrop { --edge: 32px; }
@media (max-width: 800px) { .detail-backdrop { --edge: 16px; } }
@media (max-width: 760px) { .modal-backdrop { --edge: 16px; } }
@media (max-width: 560px) {
  .auth-overlay, .signin-backdrop { --edge: 16px; }
  .detail-backdrop { --edge: 10px; }
}

html .home-welcome-footer { bottom: max(var(--edge), env(safe-area-inset-bottom)); }
.home-welcome-footer { --edge: 26px; }
@media (max-width: 640px) { .home-welcome-footer { --edge: 22px; } }
@media (max-height: 560px) and (orientation: landscape) { .home-welcome-footer { --edge: 5px; } }

/* Student apps don't know about the home bar, so the app frame stops above it. */
html .app-viewer-content {
  right: env(safe-area-inset-right);
  bottom: env(safe-area-inset-bottom);
  left: env(safe-area-inset-left);
}

/* project-journey.css */
.journey-start,
.journey-progress,
.journey-team-invite {
  --journey-accent: #800000;
  --journey-ink: #292321;
  --journey-muted: #6d625e;
  --journey-line: #e6ded9;
  min-width: 0;
}

.journey-progress { margin: 0 0 26px; }
ol.journey-progress,
.journey-progress > ol {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 0;
  list-style: none;
}
.journey-progress li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--journey-muted);
  font-size: 13px;
  line-height: 1.4;
}
.journey-progress .journey-step {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.journey-progress a.journey-step:hover { color: var(--journey-accent); background: #faf3f1; border-color: var(--journey-line); }
.journey-progress a.journey-step:focus-visible { outline: 2px solid var(--journey-accent); outline-offset: 3px; }
.journey-progress .journey-step[aria-disabled="true"] { color: var(--journey-muted); }
.journey-progress li strong { min-width: 0; font-weight: 500; }
.journey-progress li > span:first-child:has(+ strong),
.journey-progress li > a > span:first-child,
.journey-progress .journey-step-number {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 1px solid #d8cbc5;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}
.journey-progress :is(li.is-current, li[aria-current="step"]) {
  color: var(--journey-accent);
}
.journey-progress :is(li.is-current, li[aria-current="step"]) strong { font-weight: 650; }
.journey-progress :is(li.is-current, li[aria-current="step"]) .journey-step { border-color: #e7cecb; background: #fcf6f5; }
.journey-progress :is(li.is-current, li[aria-current="step"]) > span:first-child:has(+ strong),
.journey-progress :is(li.is-current, li[aria-current="step"]) > a > span:first-child,
.journey-progress :is(li.is-current, li[aria-current="step"]) .journey-step-number {
  border-color: var(--journey-accent);
  background: var(--journey-accent);
  color: #fff;
}
.journey-progress :is(li.is-complete, li.complete) { color: var(--journey-ink); }
.journey-progress li.is-complete > span:first-child:has(+ strong),
.journey-progress li.complete > span:first-child:has(+ strong),
.journey-progress li.is-complete > a > span:first-child,
.journey-progress li.complete .journey-step-number {
  border-color: #c7a9a0;
  color: var(--journey-accent);
  background: #faf3f1;
}

.journey-start { width: 100%; max-width: 920px; margin-inline: auto; }
.journey-start :is(h1, h2) { text-wrap: balance; }
.journey-start h1 { font-size: clamp(28px, 3.1vw, 36px); line-height: 1.2; }
.journey-start .page-title { margin-bottom: 24px; }
.journey-start-form {
  display: grid;
  gap: 23px;
  padding: 28px;
  border: 1px solid #e6ded9;
  border-radius: 10px;
  background: #fff;
}
.journey-start-form .form-field {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
}
.journey-start-form :is(label, .form-label) {
  color: #493d38;
  font-size: 14px;
  font-weight: 600;
}
.journey-start-form :is(input, textarea, select) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #d9ccc5;
  border-radius: 7px;
  background: #fff;
  color: var(--journey-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}
.journey-start-form textarea { min-height: 250px; resize: vertical; }
.journey-start .journey-start-form textarea { height: 140px; min-height: 140px; }
.journey-start-form :is(input, textarea)::placeholder { color: #857972; opacity: 1; }
.journey-start-form :is(input, textarea, select):focus { border-color: #800000; }
.journey-start-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid #e6ded9;
}
.journey-start-actions > :is(p, span) { color: var(--journey-muted); font-size: 12px; }
.journey-optionaldetails,
.journey-optional-details { padding-top: 3px; }
.journey-optionaldetails > summary,
.journey-optional-details > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: #6d625e;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.journey-optionaldetails > summary::before,
.journey-optional-details > summary::before { content: "+"; color: #800000; font-size: 18px; }
.journey-optionaldetails[open] > summary::before,
.journey-optional-details[open] > summary::before { content: "−"; }
.journey-optionaldetails > summary::-webkit-details-marker,
.journey-optional-details > summary::-webkit-details-marker { display: none; }
.journey-optionaldetails > :not(summary),
.journey-optional-details > :not(summary) { margin-top: 9px; }
.journey-start-form .form-error:empty,
.journey-team-invite .form-error:empty { display: none; }

.journey-team-invite { padding: 24px; }
.journey-team-invite .panel-header { margin-bottom: 20px; }
.journey-team-invite h2 { font-size: 20px; line-height: 1.3; }
.journey-member-search { display: grid; align-content: start; gap: 11px; }
.journey-build-location input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d9ccc5;
  border-radius: 6px;
  background: #fff;
  color: #292321;
  font: inherit;
}
.journey-member-search .btn { justify-self: start; }
.journey-search-results { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.journey-member-result,
.journey-search-results > article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 15px 0;
  border-bottom: 1px solid #eee7e2;
}
.journey-member-result:last-child { border-bottom: 0; }
.journey-member-result > div { min-width: 0; }
.journey-member-result .person { display: flex; align-items: center; min-width: 0; gap: 10px; }
.journey-member-result .person > div { min-width: 0; }
.journey-member-result .avatar { flex-shrink: 0; }
.journey-member-result :is(strong, p, small) { overflow-wrap: anywhere; }
.journey-member-result strong { display: block; color: #292321; font-size: 14px; }
.journey-member-result :is(p, small) { display: block; margin-top: 4px; color: #6d625e; font-size: 12px; }
.journey-member-result .btn { flex-shrink: 0; }
.journey-invite-link { display: grid; gap: 10px; margin-top: 16px; }
.journey-invitation { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e6ded9; }
.journey-invitation > strong { color: #493d38; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.journey-invitation > p { margin-top: 12px; color: #6d625e; font-size: 12px; line-height: 1.6; }

.journey-overview-summary { color: #493d38; font-size: 15px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.journey-build-location { padding: 14px; margin-top: 18px; border: 1px solid #e6ded9; border-radius: 6px; background: #faf8f7; }
.journey-build-location :is(code, pre) { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font-size: 12px; line-height: 1.7; }
.journey-start .btn,
.journey-team-invite .btn { min-height: 44px; max-width: 100%; white-space: normal; line-height: 1.5; }

@media (max-width: 600px) {
  .journey-progress { margin-bottom: 21px; }
  ol.journey-progress,
  .journey-progress > ol { gap: 10px; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journey-progress li { min-height: 44px; font-size: 12px; gap: 7px; }
  .journey-progress .journey-step { min-height: 84px; height: 100%; flex-direction: column; align-items: flex-start; gap: 7px; padding: 8px 6px; }
  .journey-start h1 { font-size: 29px; }
  .journey-start-form { gap: 21px; padding: 20px; }
  .journey-start-form :is(input, textarea, select),
.journey-build-location input { font-size: 16px; }
  .journey-start-form textarea { min-height: 250px; }
  .journey-start-actions { align-items: stretch; }
  .journey-start-actions > .btn { width: 100%; justify-content: center; }
  .journey-start-actions > p { width: 100%; }
  .journey-team-invite { padding: 20px; }
  .journey-team-invite h2 { font-size: 19px; }
  .journey-member-result { gap: 10px; }
  .journey-member-result .btn { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-start *,
.journey-team-invite * { scroll-behavior: auto; }
}

/* workspace-choices.css */
.brainstorm-shell {
  --workspace-accent: #800000;
  --workspace-text: #292321;
  --workspace-muted: #6d625e;
  --workspace-line: #e6ded9;
  min-width: 0;
}

html[data-aurora-journey="true"] .workspace-content { margin: 0 auto; }

.brainstorm-shell { width: 100%; max-width: 1040px; overflow: hidden; border: 1px solid var(--workspace-line); border-radius: 9px; background: #fff; }
.brainstorm-toolbar { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 4px; padding: 10px 16px; border-bottom: 1px solid #ebe3de; background: #fdfbf9; }
.brainstorm-toolbar :is(button, select) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #493d38; font-family: inherit; font-size: 13px; line-height: 1.4; }
.brainstorm-toolbar button:hover { border-color: #e2d3cb; background: #fff; }
.brainstorm-toolbar :is(button[aria-pressed="true"], button.is-active) { border-color: #d6b9ae; background: #f7ebe6; color: #800000; }
.brainstorm-toolbar button:disabled { color: #92877f; cursor: default; }
.brainstorm-toolbar button svg { width: 18px; height: 18px; }
.brainstorm-toolbar .toolbar-separator { height: 22px; width: 1px; margin: 0 7px; background: #e2d7d0; }
.brainstorm-editor {
  display: block;
  width: 100%;
  min-height: 460px;
  padding: 30px 36px 44px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #292321;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  overflow-wrap: anywhere;
  tab-size: 2;
}
textarea.brainstorm-editor { resize: vertical; }
.brainstorm-editor::placeholder { color: #93877f; opacity: 1; }
.brainstorm-editor[contenteditable]:empty::before { content: attr(data-placeholder); color: #93877f; pointer-events: none; }
.brainstorm-editor :is(h1, h2, h3) { margin-top: 26px; margin-bottom: 10px; color: #292321; font-family: inherit; line-height: 1.35; letter-spacing: -.025em; }
.brainstorm-editor h1 { font-size: 26px; }
.brainstorm-editor h2 { font-size: 22px; }
.brainstorm-editor h3 { font-size: 18px; }
.brainstorm-editor > :first-child { margin-top: 0; }
.brainstorm-editor p { margin: 0 0 14px; line-height: inherit; }
.brainstorm-editor :is(ul, ol) { padding-left: 25px; margin: 0 0 18px; }
.brainstorm-editor li { padding-left: 3px; margin-bottom: 6px; }
.brainstorm-editor blockquote { margin: 18px 0; padding-left: 18px; border-left: 3px solid #d3b7a9; color: #6d625e; }
.brainstorm-editor a { color: #800000; text-decoration: underline; text-underline-offset: 3px; }
.brainstorm-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; min-height: 48px; padding: 12px 20px; border-top: 1px solid #ebe3de; background: #fdfbf9; color: #6d625e; font-size: 12px; line-height: 1.5; }
.brainstorm-status p { margin: 0; }
.brainstorm-presence { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #6d625e; font-size: 12px; }
.brainstorm-presence .avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 27px; height: 27px; border: 1px solid #e4d4ca; border-radius: 50%; background: #f4e9e2; color: #800000; font-size: 11px; font-weight: 600; }
.brainstorm-person { display: inline-flex; align-items: center; gap: 6px; }
.brainstorm-presence .avatar { color: var(--person-color, #800000); border-color: currentColor; background: #fff; }
.brainstorm-shell .ql-cursors { pointer-events: none; }
.brainstorm-shell .ql-cursor-caret-container { z-index: 2; }
.brainstorm-shell .ql-cursor-flag { max-width: min(220px, 70vw); border-radius: 4px 4px 4px 0; font-family: inherit; font-size: 12px; line-height: 1.6; box-shadow: 0 2px 6px #29232118; }
.brainstorm-shell .ql-cursor-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.brainstorm-shell .ql-cursor-selection-block { opacity: .16; }
.brainstorm-loading { padding: 28px 30px; color: #6d625e; font-size: 14px; }
.brainstorm-status .is-error { color: #800000; }
.brainstorm-shell .brainstorm-toolbar.ql-toolbar.ql-snow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #ebe3de;
  font-family: inherit;
}
.brainstorm-shell .ql-toolbar.ql-snow .ql-formats { display: inline-flex; align-items: center; gap: 2px; margin: 0 10px 0 0; }
.brainstorm-shell .ql-toolbar.ql-snow button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px;
  border: 1px solid transparent;
  color: #493d38;
  font-family: inherit;
  font-size: 20px;
}
.brainstorm-shell .ql-toolbar.ql-snow button svg { width: 22px; height: 22px; }
.brainstorm-shell .ql-toolbar.ql-snow .ql-stroke { stroke: #493d38; }
.brainstorm-shell .ql-toolbar.ql-snow .ql-fill { fill: #493d38; }
.brainstorm-shell .ql-toolbar.ql-snow button:is(:hover, :focus-visible, .ql-active) { border-color: #ddc4b8; background: #f7ebe6; color: #800000; }
.brainstorm-shell .ql-toolbar.ql-snow button:is(:hover, :focus-visible, .ql-active) .ql-stroke { stroke: #800000; }
.brainstorm-shell .ql-toolbar.ql-snow button:is(:hover, :focus-visible, .ql-active) .ql-fill { fill: #800000; }
.brainstorm-shell .ql-toolbar.ql-snow .ql-picker.ql-header { float: none; width: 150px; height: 44px; color: #493d38; font-family: inherit; font-size: 13px; }
.brainstorm-shell .ql-toolbar.ql-snow .ql-picker-label { display: flex; align-items: center; min-height: 44px; padding: 9px 28px 9px 12px; border: 1px solid #e2d4cb; border-radius: 5px; background: #fff; }
.brainstorm-shell .ql-toolbar.ql-snow .ql-picker-label svg { top: 50%; right: 8px; width: 18px; height: 18px; margin-top: 0; transform: translateY(-50%); }
.brainstorm-shell .ql-toolbar.ql-snow .ql-picker-label:focus-visible { outline: 2px solid #800000; outline-offset: 3px; }
.brainstorm-shell .ql-toolbar.ql-snow .ql-picker-options { z-index: 10; margin-top: 5px; padding: 5px; border: 1px solid #dfd0c6; border-radius: 6px; box-shadow: 0 5px 18px #38221b14; }
.brainstorm-shell .ql-toolbar.ql-snow .ql-picker-item { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 4px; color: #493d38; font-size: 14px; }
.brainstorm-shell .ql-toolbar.ql-snow .ql-picker-item:is(:hover, .ql-selected) { background: #f7ebe6; color: #800000; }
.brainstorm-shell .ql-toolbar.ql-snow .ql-picker.ql-header :is(.ql-picker-label, .ql-picker-item)::before { content: "Normal text"; font-size: 14px; }
.brainstorm-shell .ql-toolbar.ql-snow .ql-picker.ql-header :is(.ql-picker-label, .ql-picker-item)[data-value="1"]::before { content: "Heading"; font-size: 14px; }
.brainstorm-shell .ql-toolbar.ql-snow .ql-picker.ql-header :is(.ql-picker-label, .ql-picker-item)[data-value="2"]::before { content: "Subheading"; font-size: 14px; }
.brainstorm-shell .ql-container.ql-snow { height: auto; border: 0; font-family: inherit; font-size: 16px; }
.brainstorm-shell .ql-container.ql-snow .ql-editor.brainstorm-editor { height: auto; min-height: 460px; padding: 30px 36px 44px; color: #292321; font-family: inherit; font-size: 16px; line-height: 1.85; }
.brainstorm-shell .ql-container.ql-snow .ql-editor.ql-blank::before { left: 36px; right: 36px; color: #93877f; font-family: inherit; font-size: 16px; font-style: normal; }
.brainstorm-shell .ql-container .ql-editor :is(p, ol, blockquote) { margin-bottom: 14px; }
.brainstorm-shell .ql-container .ql-editor :is(h1, h2, h3) { margin-top: 24px; margin-bottom: 10px; font-family: inherit; font-weight: 650; line-height: 1.35; }
.brainstorm-shell .ql-container .ql-editor h1 { font-size: 26px; }
.brainstorm-shell .ql-container .ql-editor h2 { font-size: 22px; }
.brainstorm-shell .ql-container .ql-editor h3 { font-size: 18px; }
.brainstorm-shell .ql-container .ql-editor > :first-child { margin-top: 0; }
.brainstorm-shell .ql-container .ql-editor ol { padding-left: 4px; }

.workspace-connections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  max-width: 1040px;
  min-width: 0;
}
.workspace-connections > .panel.workspace-claude,
.workspace-connections > .panel.workspace-github {
  min-width: 0;
  min-height: 280px;
  margin: 0;
  padding: 30px;
  border: 1px solid #e2d7d1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px #38221b05;
}
.workspace-connections .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.workspace-connections :is(h2, .sync-heading h3) { margin: 0; font-size: 24px; line-height: 1.3; letter-spacing: -.025em; }
.workspace-connections p { margin-top: 12px; color: #625650; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.workspace-connections :is(.small-text, .sync-help, label) { font-size: 16px; line-height: 1.55; }
.workspace-connections :is(button, .btn, summary) { min-height: 46px; font-size: 16px; }
.workspace-connections .btn { white-space: normal; text-align: center; }
.workspace-connections .btn.primary { border-radius: 7px; box-shadow: 0 2px 0 #590000; }
.workspace-connections .btn:active { transform: translateY(1px); }
.workspace-connections .workspace-connection-state { color: #625650; font-size: 14px; line-height: 1.4; }
.workspace-connections .workspace-claude > p { margin: 0 0 24px; font-size: 17px; }
.workspace-connections .workspace-claude details { margin-top: 18px; padding-top: 12px; border-top: 1px solid #e6ded9; }
.workspace-connections .workspace-claude summary { padding-block: 10px; color: #55453f; font-size: 16px; cursor: pointer; }
.workspace-connections .sync-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.workspace-connections .workspace-claude a { color: #800000; text-underline-offset: 3px; }
.workspace-connections .workspace-claude a.btn.primary { color: #fff; }
.workspace-connections .workspace-github .safe-github { min-height: 0; }

.workspace-connections :is(a, button, input, textarea, summary):focus-visible { outline: 2px solid #800000; outline-offset: 4px; }
@media (max-width: 1000px) {
  .workspace-connections { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .workspace-connections > .panel.workspace-claude,
  .workspace-connections > .panel.workspace-github { min-height: 0; padding: 26px; }
}
@media (max-width: 400px) {
  .workspace-connections > .panel.workspace-claude,
  .workspace-connections > .panel.workspace-github { padding: 20px; }
}
#journey-studio .studio { padding: 0; }
#journey-studio [data-account-claude] .studio-claude-actions { display: contents; }
#journey-studio [data-account-claude] .studio-claude-actions .btn { min-height: 46px; font-size: 16px; }

#journey-studio #studio-editor[aria-busy="true"] { opacity: .5; cursor: progress; }
#journey-studio .studio-file-opening { margin: 12px 0; color: #800000; font-size: 14px; }
#journey-studio .studio-heading > div:first-child { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
#journey-studio .studio-shared-files { border-top: 0; }
#journey-studio .studio-shared-files > summary,
#journey-studio .studio-sample-options { display: none; }

.brainstorm-shell :is(button, select, textarea, [contenteditable]):focus-visible { outline: 2px solid #800000; outline-offset: 3px; }
.brainstorm-editor:focus-visible { outline-offset: -3px; }

@media (max-width: 700px) {
  .brainstorm-toolbar { padding: 8px; gap: 2px; }
  .brainstorm-toolbar :is(button, select) { padding-inline: 10px; }
  .brainstorm-shell .brainstorm-toolbar.ql-toolbar.ql-snow { gap: 2px; padding: 8px; }
  .brainstorm-shell .ql-toolbar.ql-snow .ql-formats { margin-right: 4px; }
  .brainstorm-shell .ql-container.ql-snow .ql-editor.brainstorm-editor { min-height: 410px; padding: 23px 21px 35px; font-size: 16px; line-height: 1.8; }
  .brainstorm-shell .ql-container.ql-snow .ql-editor.ql-blank::before { left: 21px; right: 21px; }
  .brainstorm-editor { min-height: 410px; padding: 23px 21px 35px; font-size: 16px; line-height: 1.8; }
  .brainstorm-editor h1 { font-size: 24px; }
  .brainstorm-editor h2 { font-size: 21px; }
  .brainstorm-status { padding: 12px 16px; font-size: 11px; }
  .workspace-connections > .panel { padding: 21px; }
}
@media (max-width: 360px) {
  .brainstorm-toolbar .toolbar-separator { margin-inline: 3px; }
  .brainstorm-editor { padding-inline: 18px; }
}

/* vendor/brainstorm.css */
.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"\2022"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"\2611"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"\2610"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media(pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}
/*! For license information please see brainstorm.css.LEGAL.txt */

/* tool.css */
.tool-channel-switch{display:flex;border:1px solid var(--line,#ddd);border-radius:7px;padding:3px;gap:3px}.tool-channel-switch button{border:0;background:transparent;border-radius:4px;font:inherit;font-size:12px;padding:8px 12px;cursor:pointer;color:var(--text,#222)}.tool-channel-switch button[aria-pressed=true]{background:#800000;color:#fff}.tool-local{font-size:12px;color:var(--muted,#666);margin:0 0 12px}.app-viewer{position:fixed;inset:0;z-index:10000;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;box-sizing:border-box;background:var(--bg,#f6f5f3);color:var(--text,#222);overflow:hidden;font:inherit}
.app-viewer:not([open]){display:none}.app-viewer [hidden]{display:none!important}.app-viewer::backdrop{background:rgba(20,14,14,.4)}
/* Aurora's buttons sit in a slim bar above the app, so they never cover the app's own heading or buttons. */
.app-viewer-controls{position:absolute;inset:calc(7px + env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) auto max(10px,env(safe-area-inset-left));z-index:3;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:8px;pointer-events:none}
.app-viewer-back,.app-viewer-more{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;box-sizing:border-box;border:1px solid rgba(70,45,45,.16);border-radius:24px;background:rgba(255,255,255,.94);box-shadow:0 2px 9px rgba(40,20,20,.07);color:#422e2e;font:inherit;font-size:13px;font-weight:650;cursor:pointer;pointer-events:auto;-webkit-tap-highlight-color:transparent}
.app-viewer-back{gap:10px;min-height:44px;padding:0 18px 0 14px;border-color:#c9aaa8;background:#fff;color:#800000;font-size:15px}.app-viewer-back svg{flex:none;width:21px;height:21px}.app-viewer-back-label{white-space:nowrap;opacity:1}.app-viewer-more{width:44px;padding:0;font-size:22px;letter-spacing:1px}
.app-viewer-back:hover,.app-viewer-back:active,.app-viewer-more:hover,.app-viewer-more:active{background:#fff;border-color:#ad9797}.app-viewer-back:active,.app-viewer-more:active{transform:translateY(1px)}.app-viewer button:focus-visible,.app-viewer a:focus-visible{outline:3px solid var(--maroon,#800000);outline-offset:3px}
.app-viewer-options{position:absolute;z-index:3;top:calc(58px + env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:min(280px,calc(100% - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)));box-sizing:border-box;max-height:calc(100dvh - 70px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;padding:16px;border:1px solid var(--line,#ddd);border-radius:12px;background:var(--surface,#fff);box-shadow:0 6px 24px rgba(40,20,20,.14)}.app-viewer-options h2{font:inherit;font-size:15px;font-weight:650;line-height:1.4;overflow-wrap:anywhere;margin:0 0 8px}
.app-viewer-external{display:inline-flex;align-items:center;gap:4px;min-height:44px;color:var(--muted,#666);font-size:13px;text-decoration:none}.app-viewer-external:hover{text-decoration:underline}.app-viewer-info{display:flex;align-items:flex-start;gap:12px;flex-direction:column;padding-top:8px}.app-viewer-info p{margin:0}
.app-viewer-content{position:absolute;inset:calc(58px + env(safe-area-inset-top)) 0 0;overflow:hidden;background:#fff;border-top:1px solid var(--line,#ddd)}.app-viewer-content iframe{display:block;width:100%;height:100%;border:0;background:#fff}.app-viewer-frame-loading{position:absolute;inset:16px auto auto 50%;transform:translateX(-50%);margin:0;padding:8px 12px;border-radius:8px;background:rgba(255,255,255,.95);font-size:13px;color:var(--muted,#666);pointer-events:none;z-index:1}
.app-viewer-state{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;height:100%;box-sizing:border-box;padding:80px 24px 24px;text-align:center}.app-viewer-state h3{font-size:18px;margin:0}.app-viewer-state p{font-size:14px;color:var(--muted,#666);line-height:1.5;max-width:44ch;margin:0}.app-viewer-state .btn{margin-top:4px}
@media(max-width:600px){.app-viewer-controls{inset:calc(6px + env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) auto max(8px,env(safe-area-inset-left));width:auto;flex-direction:row;justify-content:space-between;align-items:center}.app-viewer-back{font-size:15px}.app-viewer-content{inset:calc(66px + env(safe-area-inset-top)) 0 0;border-top:1px solid var(--line,#ddd)}.app-viewer-frame-loading{top:calc(78px + env(safe-area-inset-top))}.app-viewer-options{top:calc(66px + env(safe-area-inset-top));left:auto;right:max(8px,env(safe-area-inset-right));max-height:calc(100dvh - 78px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.app-viewer-back-label{transition:none}.app-viewer-back:active,.app-viewer-more:active{transform:none}}
.aurora-connect{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:72px 16px 24px;box-sizing:border-box;background:radial-gradient(120% 80% at 50% 0%,rgba(128,0,0,.07),transparent 60%),var(--bg,#f6f5f3);overflow:auto}
.aurora-connect-card{width:100%;max-width:340px;box-sizing:border-box;padding:28px 24px 18px;border-radius:22px;background:#fff;box-shadow:0 1px 2px rgba(20,10,10,.06),0 18px 48px rgba(60,10,10,.12);text-align:center;animation:aurora-connect-rise .5s cubic-bezier(.22,1,.36,1) both}
.aurora-connect-tiles{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:14px}
.aurora-connect-tile{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:linear-gradient(145deg,#990f12,#5c0000);color:#fff;font-size:24px;font-weight:700;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.aurora-connect-tile.is-aurora{background:linear-gradient(145deg,#0f766e,#4338ca 70%,#7c3aed)}
.aurora-connect-link{position:relative;width:34px;height:2px;border-radius:2px;background:repeating-linear-gradient(90deg,#c9b8b8 0 4px,transparent 4px 8px)}
.aurora-connect-link::after{content:"";position:absolute;top:-3px;left:0;width:8px;height:8px;border-radius:50%;background:#800000;animation:aurora-connect-travel 1.8s cubic-bezier(.22,1,.36,1) infinite}
.aurora-connect-app{margin:0;font-size:13px;font-weight:600;color:var(--muted,#6b6262);letter-spacing:.01em}
.aurora-connect h3{margin:4px 0 14px;font-size:21px;line-height:1.2;color:var(--text,#1d1515)}
.aurora-connect-perks{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0 0 18px;padding:0;list-style:none}
.aurora-connect-perks li{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:999px;background:#f5efef;color:#4a3c3c;font-size:12.5px;line-height:1}
.aurora-connect-perks svg{flex:none;color:#800000}
.aurora-connect-go{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;box-sizing:border-box;border-radius:999px;background:#800000;border-color:#800000;color:#fff;font-size:15px;font-weight:600;text-decoration:none}
.aurora-connect-go:hover{background:#990f12;border-color:#990f12}
.aurora-connect-avatar{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#fff;color:#800000;font-size:13px;font-weight:700}
.aurora-connect-later{margin-top:8px;padding:8px 12px;border:0;background:none;color:var(--muted,#6b6262);font:inherit;font-size:13.5px;cursor:pointer;border-radius:8px}
.aurora-connect-later:hover{color:var(--text,#1d1515)}
.aurora-connect-go:focus-visible,.aurora-connect-later:focus-visible{outline:2px solid #800000;outline-offset:3px}
.aurora-connect-chip-host{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:2;pointer-events:none}
.aurora-connect-chip{display:flex;align-items:center;gap:6px;margin:0;padding:8px 14px 8px 10px;border-radius:999px;background:rgba(29,21,21,.92);color:#fff;font-size:13px;font-weight:600;white-space:nowrap;box-shadow:0 8px 24px rgba(0,0,0,.18);animation:aurora-connect-chip 3.2s cubic-bezier(.22,1,.36,1) forwards}
.aurora-connect-chip svg{color:#6ee7b7}
@keyframes aurora-connect-rise{from{opacity:0;transform:translateY(14px);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
@keyframes aurora-connect-travel{0%{left:0;opacity:0}20%{opacity:1}80%{opacity:1}100%{left:26px;opacity:0}}
@keyframes aurora-connect-chip{0%{opacity:0;transform:translateY(-8px)}12%,78%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-6px);visibility:hidden}}
.aurora-save-host{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:3;width:min(340px,calc(100% - 24px))}
.aurora-save-host:has(.aurora-save-pill){left:auto;right:14px;width:auto;transform:none}
.aurora-save-bar{display:grid;gap:8px;justify-items:center;padding:16px 16px 8px;border:1px solid rgba(29,21,21,.08);border-radius:18px;background:var(--surface,#fff);box-shadow:0 18px 48px rgba(0,0,0,.22);animation:aurora-connect-rise .35s cubic-bezier(.22,1,.36,1)}
.aurora-save-bar h3{margin:0;font-size:16px}
.aurora-save-bar .aurora-connect-later{margin-top:0}
.aurora-leave-host{position:absolute;inset:0;z-index:4;display:grid;place-items:center;padding:16px;box-sizing:border-box;background:rgba(20,12,12,.45)}
.aurora-leave-host[hidden]{display:none}
.aurora-leave{display:grid;gap:6px;justify-items:center;width:min(360px,100%);box-sizing:border-box;padding:22px 20px 10px;border-radius:18px;background:var(--surface,#fff);color:var(--text,#1d1515);text-align:center;box-shadow:0 18px 48px rgba(0,0,0,.28);animation:aurora-connect-rise .35s cubic-bezier(.22,1,.36,1)}
.aurora-leave-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:rgba(128,0,0,.08);color:#800000}
.aurora-leave-icon svg{width:22px;height:22px}
.aurora-leave h3{margin:6px 0 0;font-size:17px}
.aurora-leave-site{margin:0;font-size:20px;font-weight:700;overflow-wrap:anywhere}
.aurora-leave-url{margin:0;max-width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;color:var(--muted,#6b6262);overflow-wrap:anywhere}
.aurora-leave-note{margin:6px 0 2px;font-size:13.5px;line-height:1.45;color:var(--muted,#6b6262)}
.aurora-leave-warning{display:flex;align-items:center;justify-content:center;gap:6px;margin:4px 0 10px;font-size:13px;font-weight:600;color:#800000}
.aurora-leave-warning svg{flex:none}
.aurora-save-error{margin:0;color:#a32d2d;font-size:13px;text-align:center}
.aurora-save-pill{display:flex;align-items:center;gap:6px;padding:8px 14px 8px 10px;border:0;border-radius:999px;background:rgba(29,21,21,.92);color:#fff;font:inherit;font-size:13px;font-weight:600;text-decoration:none;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.aurora-save-pill svg{color:#6ee7b7}
.aurora-save-pill:focus-visible{outline:2px solid #800000;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.aurora-save-bar{animation:none}}
@media (prefers-reduced-motion:reduce){.aurora-connect-card{animation:none}.aurora-connect-link::after{animation:none;left:13px}.aurora-connect-chip{animation-name:aurora-connect-chip-still}}
@keyframes aurora-connect-chip-still{0%,85%{opacity:1}100%{opacity:0;visibility:hidden}}

.aurora-gripe-player{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:5;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.aurora-gripe-player .aurora-gripe-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 13px;background:#fff;color:#800000;border:1px solid #ddd0ce;border-radius:999px;box-shadow:0 2px 12px #25212422;font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.aurora-gripe-player .aurora-gripe-panel{width:min(340px,calc(100vw - 28px));padding:16px;max-height:calc(100dvh - 88px);box-sizing:border-box;overflow:auto;background:#fff;color:#252124;border:1px solid #ddd0ce;border-radius:14px;box-shadow:0 6px 30px #25212433}
.aurora-gripe-player [hidden]{display:none}
.aurora-gripe-player .aurora-gripe-title{margin:0 0 2px;font-weight:650;font-size:16px}
.aurora-gripe-player .aurora-gripe-choices{display:grid;gap:8px}
.aurora-gripe-player .aurora-gripe-choices[hidden]{display:none}
.aurora-gripe-player .aurora-gripe-choices button{display:grid;gap:3px;min-height:44px;padding:10px 12px;text-align:left;background:#fff;color:inherit;border:1px solid #ddd0ce;border-radius:10px;font:inherit;cursor:pointer}
.aurora-gripe-player .aurora-gripe-choices button:hover,.aurora-gripe-player .aurora-gripe-back:hover{background:#f7edeb}
.aurora-gripe-player .aurora-gripe-choices button strong{font-size:16px}
.aurora-gripe-player .aurora-gripe-choices button span{font-size:14px;line-height:1.45}
.aurora-gripe-player .aurora-gripe-back{min-height:44px;margin:0 0 4px -8px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:14px;cursor:pointer}
.aurora-gripe-label{display:block;font-weight:650;font-size:16px}.aurora-gripe-help,.aurora-gripe-status,.aurora-gripe-history,.aurora-gripe-sign-in{font-size:14px;line-height:1.45}
.aurora-gripe-help,.aurora-gripe-status{margin:6px 0}.aurora-gripe-player textarea{width:100%;box-sizing:border-box;min-height:88px;padding:8px;border:1px solid #b9aeb5;border-radius:8px;font:inherit;font-size:16px}
.aurora-gripe-player .aurora-gripe-actions{margin-top:8px}.aurora-gripe-history summary{padding-block:8px;cursor:pointer}.aurora-gripe-history ul{padding-left:20px}.aurora-gripe-history li+li{margin-top:8px}
.aurora-gripe-update{margin:4px 0 10px;font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere}
.aurora-gripe-player :focus-visible{outline:2px solid #800000;outline-offset:2px}

/* Full screen sits just left of the options button. */
.app-viewer-full{margin-left:auto;pointer-events:auto}

/* platform/studio.css */
.workspace-main.is-studio { display:block; padding:0; }
.workspace-main.is-studio > .workspace-side { display:none; }
.studio { padding:26px; min-width:0; }
.studio :is(button, summary, a.btn) { min-height:44px; }
.studio-heading,.studio-actions,.studio-document-bar,.studio-files-heading,.studio-history-heading,.studio-assistant-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.studio-heading { margin-bottom:16px; flex-wrap:wrap; }
.studio-heading h2 { font-size:20px; letter-spacing:-.5px; }
.studio-heading p { color:var(--secondary); font-size:12px; margin-top:5px; }
.studio-shared-save { margin:0 0 16px; font-size:12px; line-height:1.6; color:var(--secondary); }
.studio-shared-save.is-error { color:var(--accent); }
.studio-shared-files { margin-top:16px; border-top:1px solid var(--line); }
.studio-shared-files > summary { cursor:pointer; min-height:44px; padding:14px 0; font-size:12px; font-weight:600; color:var(--ink); }
.studio-files-help { margin:0 0 14px; max-width:650px; font-size:12px; line-height:1.6; color:var(--secondary); }
.studio-sample-options { margin:8px; font-size:11px; color:var(--secondary); }
.studio-sample-options > summary { cursor:pointer; min-height:40px; padding:12px 2px; }
.studio-sample-options .studio-sample { width:100%; margin:0 0 8px; }
.studio-actions { justify-content:flex-start; flex-wrap:wrap; }
.studio-actions a { text-decoration:none; }
.studio-claude-actions { display:contents; }
.studio-manual-handoff { margin-top:16px; font-size:12px; color:var(--secondary); }
.studio-manual-handoff summary { cursor:pointer; }
.studio-manual-handoff p { margin:10px 0; }
.studio-actions .btn { min-height:40px; font-size:11px; padding:9px 12px; }
.studio-build-flow { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:16px; font-size:11px; color:var(--secondary); }
.studio-build-flow details { flex-basis:100%; font-size:11px; line-height:1.6; }
.studio-build-flow summary { cursor:pointer; min-height:32px; padding:8px 0; }
.studio-build-flow details p { margin-top:6px; max-width:760px; }
.studio-build-flow a,.studio-test a { color:var(--accent); overflow-wrap:anywhere; }
.studio-saved-data { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px; font-size:12px; line-height:1.6; color:var(--secondary); }
.studio-saved-data p { margin:0; max-width:760px; }
.studio-saved-data:empty { display:none; }
.studio-test { border:1px solid #dac7c3; border-radius:10px; padding:18px; margin-bottom:18px; background:#faf7f6; }
.studio-test[hidden] { display:none; }
.studio-test-status { font-size:12px; line-height:1.6; }
.studio-test-status strong { font-weight:600; }
.studio-test-status p { margin:6px 0 12px; color:var(--secondary); }
.studio-test-status.is-error { color:#800000; }
.studio-test-status.is-error p { color:inherit; }
.studio-test-status .studio-actions > a { min-height:40px; display:inline-flex; align-items:center; font-size:11px; }
#studio-test-frame:not(:empty) { margin-top:16px; border:1px solid var(--line); border-radius:7px; overflow:hidden; background:white; }
#studio-test-frame iframe { width:100%; height:500px; display:block; border:0; background:white; }
@media(max-width:700px) { .studio-test { padding:14px; } #studio-test-frame iframe { height:440px; } }
.studio-notice:empty { display:none; }
.studio-notice { padding:10px 12px; margin-bottom:12px; border:1px solid var(--line); border-radius:7px; font-size:12px; line-height:1.6; }
.studio-notice.is-error { background:#fff5f4; color:#800000; border-color:#e9c4c1; }
.studio-presence { display:flex; flex-wrap:wrap; gap:7px; min-height:25px; margin-bottom:12px; }
.studio-presence > span { display:flex; align-items:center; gap:6px; border:1px solid var(--line); border-radius:5px; padding:5px 7px; font-size:10px; }
.studio-presence strong { font-weight:500; }
.studio-presence small { color:var(--secondary); font-size:9px; }
.studio-presence i { height:5px; width:5px; border-radius:50%; background:#800000; }
.studio-presence:empty { display:none; }
.agent-work:empty { display:none; }
.agent-work { margin:0 0 16px; padding:16px 18px; border:1px solid var(--line); border-radius:8px; background:var(--paper, #fff); font-size:16px; line-height:1.5; }
.agent-work h3 { margin:0; font-size:17px; font-weight:600; letter-spacing:-.2px; }
.agent-work-help,.agent-work-state { margin:6px 0 0; color:var(--secondary, var(--muted, #746b66)); font-size:16px; }
.agent-work-state.is-error { color:var(--accent, #800000); }
.agent-work-list,.agent-work-paths { list-style:none; padding:0; margin:0; }
.agent-work-list > li { padding-top:14px; margin-top:14px; border-top:1px solid var(--line); }
.agent-work-person { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:4px 16px; }
.agent-work-person strong { font-size:16px; font-weight:600; overflow-wrap:anywhere; }
.agent-work-person > span { color:var(--secondary, var(--muted, #746b66)); font-size:14px; }
.agent-work-task { margin:7px 0 5px; color:var(--ink); font-size:16px; overflow-wrap:anywhere; }
.agent-work-paths { display:flex; flex-wrap:wrap; gap:4px 8px; }
.agent-work-paths > li { min-width:0; max-width:100%; }
.agent-work-paths button,.agent-work-paths code { display:block; max-width:100%; padding:9px 11px; border:1px solid var(--line); border-radius:5px; background:#faf8f7; color:var(--accent, #800000); font:16px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; text-align:left; overflow-wrap:anywhere; }
.agent-work-paths button { min-height:44px; cursor:pointer; }
.agent-work-paths button:hover { background:#f1e5e3; }
@media(max-width:700px) { .agent-work { padding:14px; } .agent-work-person { display:grid; } }
.studio-layout { display:grid; grid-template-columns:210px minmax(0,1fr); min-height:510px; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.studio-files { background:#faf9f8; border-right:1px solid var(--line); min-width:0; }
.studio-files-heading { padding:10px 14px; border-bottom:1px solid var(--line); }
.studio-files-heading h3 { font-size:12px; }
.studio-files-heading button { display:grid; place-items:center; min-width:32px; min-height:32px; font-size:22px; color:var(--accent); }
#studio-file-list { display:grid; gap:3px; padding:8px; }
#studio-file-list > button { display:flex; gap:8px; align-items:center; width:100%; min-height:38px; text-align:left; font-size:11px; padding:8px; border-radius:5px; color:var(--ink); }
#studio-file-list > button > span:last-child { min-width:0; overflow-wrap:anywhere; }
#studio-file-list > button[aria-current="true"] { background:#f1e5e3; color:#800000; font-weight:600; }
#studio-file-list > button:hover { background:#f0edeb; }
.studio-files-empty { font-size:11px; color:var(--secondary); padding:10px; }
.studio-sample { display:block; margin:8px; padding:10px; min-height:40px; border:1px dashed #c9b8b5; border-radius:6px; font-size:11px; color:#800000; width:calc(100% - 16px); }
.studio-document { min-width:0; background:#fff; }
.studio-document-bar { min-height:53px; padding:12px 16px; border-bottom:1px solid var(--line); font-size:12px; }
.studio-document-bar strong { min-width:0; overflow-wrap:anywhere; }
.studio-document-bar > span { font-size:10px; color:var(--secondary); white-space:nowrap; }
.studio-document-bar > span.is-error { color:#800000; white-space:normal; }
.studio-file-tools { display:flex; gap:6px 18px; flex-wrap:wrap; padding:0 16px; border-bottom:1px solid var(--line); }
.studio-file-tools[hidden] { display:none; }
.studio-file-tools button { min-height:36px; color:var(--secondary); font-size:10px; }
.studio-file-tools button:hover { color:#800000; text-decoration:underline; }
#studio-editor { height:440px; overflow:hidden; }
.studio-empty { padding:80px 28px; text-align:center; color:var(--secondary); font-size:12px; line-height:1.7; }
.studio-empty h3 { color:var(--ink); font-size:17px; margin-bottom:7px; }
.studio-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:12px; font-size:10px; line-height:1.5; color:var(--secondary); }
.studio-footer > a { color:var(--accent); }
.studio form label { display:grid; gap:7px; font-size:12px; font-weight:600; }
.studio input,.studio textarea { width:100%; min-width:0; border:1px solid #ccc4c2; border-radius:6px; padding:10px; font:inherit; font-size:12px; background:#fff; }
.studio input { min-height:42px; }
.studio form > div { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:10px; }
.studio form button:not(.btn) { font-size:11px; min-height:40px; }
#studio-file-form:not(:empty) { padding:12px; border-bottom:1px solid var(--line); }
.studio-file-panel:not(:empty) { padding:16px; border-bottom:1px solid var(--line); background:#fffdfc; font-size:12px; }
.studio-file-panel p { line-height:1.6; margin-bottom:10px; }
.studio-file-panel > button { margin-right:14px; min-height:40px; font-size:11px; }
.studio-file-panel pre { max-height:220px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; padding:12px; background:#f5f3f2; margin:10px 0; }
.studio-history-heading h3 { font-size:13px; }
.studio-history-heading button { font-size:11px; min-height:36px; }
.studio-checkpoint { display:flex; gap:14px; justify-content:space-between; align-items:center; padding:10px 0; border-top:1px solid var(--line); }
.studio-checkpoint strong,.studio-checkpoint small { display:block; font-size:11px; }
.studio-checkpoint small { font-size:10px; margin-top:5px; color:var(--secondary); }
.studio-checkpoint button { color:#800000; font-size:11px; min-height:38px; }
.studio-assistant { margin-top:20px; padding:20px; border:1px solid #dac7c3; border-radius:10px; background:#faf7f6; }
.studio-assistant-heading { margin-bottom:12px; }
.studio-assistant-heading h3 { font-size:15px; }
.studio-assistant-heading button { font-size:22px; min-width:36px; min-height:36px; }
.studio-assistant p { color:var(--secondary); font-size:12px; line-height:1.6; margin:10px 0; }
.studio-assistant article { margin-top:12px; padding:12px; border:1px solid var(--line); background:white; border-radius:7px; }
.studio-assistant article strong { display:block; font-size:13px; }
.studio-assistant article > span { display:block; font-size:10px; margin:8px 0; color:var(--secondary); }
.studio-assistant article button { color:#800000; font-size:11px; min-height:40px; }
.studio-context { margin-top:12px; font-size:12px; }
.studio-context label { display:flex!important; align-items:center; font-weight:400!important; gap:8px!important; min-height:32px; overflow-wrap:anywhere; }
.studio-context input { width:16px; min-height:16px; }
.studio-assistant fieldset.studio-context { border:1px solid var(--line); border-radius:6px; padding:8px 12px; }
.studio-github fieldset.studio-context { min-width:0; margin:14px 0 0; border:1px solid var(--line); border-radius:8px; padding:10px 14px; background:#faf8f7; }
.studio-github fieldset.studio-context legend { padding:0 5px; font-weight:600; }
.studio-github fieldset.studio-context label { min-height:44px; }
.studio-assistant .studio-context legend { padding:0 4px; font-weight:600; }
#studio-school-context textarea { width:100%; min-height:180px; font:12px/1.6 monospace; resize:vertical; }
#studio-school-link { margin-top:16px; border-top:1px solid var(--line); padding-top:16px; }
#studio-school-link h4 { font-size:13px; }
.studio-github { border:1px solid var(--line); border-radius:8px; margin-bottom:14px; padding:0 14px; }
.studio-footer + .studio-github { margin-top:14px; }
.studio-github > summary { cursor:pointer; min-height:44px; padding:13px 0; font-size:12px; font-weight:600; }
#studio-github-panel { padding:0 0 16px; }
.sync-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:10px; }
.sync-actions .btn { font-size:11px; min-height:40px; }
.sync-help { color:var(--secondary); font-size:11px; line-height:1.6; }
.sync-help { margin:10px 0; }
.sync-help summary { cursor:pointer; min-height:30px; }
.sync-error { padding:10px 12px; border:1px solid #e9c4c1; background:#fff5f4; border-radius:6px; color:#800000; font-size:12px; line-height:1.6; margin-top:12px; }
.sync-team-access ul { list-style:none; padding:0; display:grid; gap:6px; }
.sync-your-access { margin-top:16px; display:grid; gap:6px; justify-items:start; }
.sync-your-access h4 { margin:0; }
.studio-assistant pre { max-height:240px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px; padding:12px; background:#fff; border:1px solid var(--line); }
.studio button:focus-visible,.studio a:focus-visible,.studio input:focus-visible,.studio textarea:focus-visible,.studio summary:focus-visible { outline:2px solid #800000; outline-offset:2px; }
@media(max-width:700px) { .studio { padding:18px 14px; } .studio-layout { grid-template-columns:minmax(0,1fr); } .studio-files { border-right:0; border-bottom:1px solid var(--line); } #studio-file-list { display:flex; overflow-x:auto; } #studio-file-list > button { width:auto; flex:none; } #studio-file-list > button > span:last-child { max-width:180px; } .studio-sample { width:auto; margin:0 8px 10px; } #studio-editor { height:400px; } .studio-heading h2 { font-size:19px; } .studio-file-tools button { min-height:42px; } .studio-document-bar { padding:12px; } }
.studio-desktop { padding:20px; margin-bottom:16px; border:1px solid #dac7c3; border-radius:10px; background:#faf7f6; }
.studio-desktop[hidden] { display:none; }
.studio-desktop h3 { font-size:15px; }
.desktop-heading,.desktop-connections-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.desktop-heading > p,.desktop-help,.desktop-setup p,.desktop-feedback { color:var(--secondary); font-size:12px; line-height:1.6; }
.desktop-heading > p { flex:1 1 220px; }
.desktop-status { padding:5px 8px; border:1px solid var(--line); border-radius:5px; background:white; font-size:10px; white-space:nowrap; }
.desktop-status.is-ready { border-color:#b6d3bd; background:#edf6ef; color:#315e3c; }
.desktop-setup { margin-top:18px; }
.desktop-setup h4 { font-size:14px; }
.desktop-setup p { margin:6px 0 10px; }
.desktop-setup label { display:block; margin:12px 0 6px; color:var(--secondary); font-size:10px; }
#desktop-setup-command { display:block; min-height:92px; resize:vertical; font:11px/1.6 monospace; }
.studio-desktop code { overflow-wrap:anywhere; font-size:11px; }
.studio-desktop .btn { min-height:40px; font-size:11px; }
.studio-desktop a.btn { text-decoration:none; }
.desktop-feedback { min-height:20px; margin-top:12px; }
.desktop-help { margin:12px 0; }
.desktop-help summary { cursor:pointer; font-weight:600; color:var(--ink); min-height:32px; }
.desktop-help p { margin:7px 0; }
.desktop-help a { display:inline-flex; align-items:center; min-height:44px; color:#800000; text-underline-offset:3px; }
.desktop-connections-heading { margin-top:16px; padding-top:12px; border-top:1px solid var(--line); }
.desktop-connections-heading h4 { font-size:12px; }
.desktop-connections { list-style:none; margin:0; padding:0; }
.desktop-connections li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.desktop-connections li > div { min-width:0; }
.desktop-connections strong { display:block; font-size:12px; font-weight:500; overflow-wrap:anywhere; }
.desktop-connections span { display:block; font-size:10px; color:var(--secondary); margin-top:5px; line-height:1.6; overflow-wrap:anywhere; }
@media(max-width:700px) { .studio-desktop { padding:16px; } .desktop-connections li { align-items:flex-start; } }

.ghp { display:grid; gap:12px; }
.ghp-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ghp-head h3 { margin:0; font-size:15px; }
.ghp-chip { font-size:12px; font-weight:600; padding:3px 10px; border-radius:999px; background:var(--panel-soft, rgba(0,0,0,.05)); color:var(--secondary); white-space:nowrap; }
.ghp-chip.is-ok { background:color-mix(in srgb, #2f8f5b 14%, transparent); color:#21734a; }
.ghp-chip.is-warn { background:color-mix(in srgb, #c2592b 14%, transparent); color:#a2481f; }
.ghp-chip.is-busy { background:color-mix(in srgb, #3a6fd8 12%, transparent); color:#2d5bb8; }
.ghp-help { margin:0; color:var(--secondary); font-size:13px; line-height:1.55; }
.ghp-error { margin:0; color:var(--accent, #a2481f); font-size:13px; }
.ghp-repo-name { margin:0; font-weight:600; }
.ghp-repo-name a { color:inherit; }
.ghp-synced { display:block; margin-top:2px; font-size:13px; font-weight:400; color:var(--secondary); }
.ghp-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.ghp-later { justify-self:start; font-size:12px; }
.ghp-why summary,.ghp-more summary,.ghp-team summary { cursor:pointer; font-size:13px; color:var(--secondary); padding:6px 0; display:list-item; }
.ghp-why p { margin:4px 0 0; font-size:12px; color:var(--secondary); line-height:1.55; }
.ghp-more .ghp-actions { margin-top:8px; }
.ghp-auto-source { display:grid; gap:8px; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.ghp-auto-source label { display:flex; align-items:flex-start; gap:10px; font-size:14px; line-height:1.5; }
.ghp-auto-source input[type="checkbox"] { flex:none; width:18px; height:18px; margin:2px 0 0; }
.ghp-auto-source .ghp-help { font-size:14px; }
.ghp-auto-source .btn { justify-self:start; font-size:14px; }
.ghp-team ul { list-style:none; padding:0; margin:8px 0 0; display:grid; gap:6px; }
.ghp-team li { display:flex; flex-wrap:wrap; gap:6px; align-items:baseline; font-size:13px; }
.ghp-team li span { color:var(--secondary); }
.ghp-team li em { margin-left:auto; font-style:normal; color:var(--secondary); font-size:12px; }
.ghp-picker { display:grid; gap:10px; }
.ghp-search { display:grid; gap:4px; font-size:12px; }
.ghp-repos { display:grid; gap:6px; max-height:320px; overflow:auto; }
.ghp-repo { display:flex; justify-content:space-between; gap:12px; text-align:left; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:transparent; cursor:pointer; min-height:44px; }
.ghp-repo:hover,.ghp-repo:focus-visible { border-color:var(--ink); }
.ghp-repo span { color:var(--secondary); font-size:12px; }
.ghp-you { display:grid; gap:8px; justify-items:start; }
.ghp-you p { margin:0; font-size:13px; }
.ghp-note { display:grid; gap:8px; }
.ghp-note p,.ghp-conflicts p { margin:0; font-size:13px; }
.ghp-conflicts { display:grid; gap:10px; }
.ghp-conflicts fieldset { display:flex; flex-wrap:wrap; gap:12px; border:1px solid var(--line); border-radius:10px; padding:8px 12px; }
.ghp-conflicts legend { font-size:12px; font-weight:600; }
.ghp-invite { display:grid; gap:10px; }
.ghp-promise { display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:start; padding:14px 16px; border:1px solid var(--line, #ded4cf); border-radius:12px; background:var(--surface-accent, #f8eeeb); color:var(--ink, #211a19); }
.ghp-promise > .ui-icon { width:24px; height:24px; margin-top:1px; color:var(--accent, #800000); }
.ghp-promise p { margin:0; font-size:15px; line-height:1.5; color:inherit; }
.ghp-promise p + p { margin-top:6px; }
.ghp-promise .ghp-promise-title { font-size:17px; font-weight:650; }
.ghp-promise a { color:inherit; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.ghp-consent { display:grid; gap:10px; border:1px solid var(--line); border-radius:12px; padding:14px; }
.ghp-consent > p { margin:0; font-size:13px; }
.ghp-perms { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.ghp-perms li { display:grid; gap:2px; font-size:13px; line-height:1.45; }
.ghp-perms li span { color:var(--secondary); font-size:12px; }
.ghp-why .ghp-perms,.ghp-why .ghp-help { margin-top:8px; font-size:12px; }
.ghp-review { display:grid; gap:6px; border:1px solid var(--line); border-radius:12px; padding:12px 14px; }
.ghp-review p { margin:0; font-size:13px; }
.ghp-review.is-warn { border-color:color-mix(in srgb, #c2592b 45%, var(--line)); }
.ghp-review.is-done p { color:var(--secondary); }
.ghp-files { color:var(--secondary); font-family:var(--mono, ui-monospace, monospace); font-size:12px !important; overflow-wrap:anywhere; }
.ghp-review-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:var(--secondary); }
.ghp-review-foot .btn { min-height:32px; padding:4px 12px; font-size:12px; }
.ghp-wait { margin:0; font-size:13px; }
.ghp-steps { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.ghp-steps li { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--secondary); }
.ghp-steps li > span[aria-hidden] { display:grid; place-items:center; width:22px; height:22px; flex:none; border-radius:50%; border:1px solid var(--line); font-size:11px; font-weight:650; }
.ghp-steps li.is-done > span[aria-hidden] { border-color:transparent; background:color-mix(in srgb, #2f7d4f 16%, transparent); color:#2f7d4f; }
.ghp-steps li.is-now { color:var(--ink, #211a19); font-weight:600; }
.ghp-steps li.is-now > span[aria-hidden] { border-color:transparent; background:var(--accent, #800000); color:#fff; }
.ghp-pending { margin:0; padding:8px 12px; border-radius:10px; background:color-mix(in srgb, #c2592b 10%, transparent); color:#8a3a14; font-size:13px; }
.ghp-activity summary { cursor:pointer; font-size:13px; color:var(--secondary); padding:6px 0; display:list-item; }
.ghp-activity ul { list-style:none; padding:0; margin:8px 0 0; display:grid; gap:6px; }
.ghp-activity li { display:flex; gap:8px; align-items:baseline; font-size:12px; }
.ghp-activity li em { margin-left:auto; font-style:normal; color:var(--secondary); white-space:nowrap; }

/* Connect GitHub first: the start, upload and join pages, plus tidying projects after connecting. */
.github-first { display:grid; gap:10px; min-width:0; margin:20px 0 0; padding:14px 16px; border:1px solid var(--line, #e6dfda); border-radius:10px; background:var(--surface, #fff); }
.github-first-text strong { font-size:14px; }
.github-first-text p { margin:4px 0 0; color:var(--muted, #6b5f59); font-size:13px; line-height:1.5; }
.github-first-actions { display:flex; flex-wrap:wrap; gap:8px; }
.github-first-choice legend { padding:0 4px; font-size:14px; font-weight:600; }
.github-first-login { color:var(--muted, #6b5f59); font-size:13px; font-weight:400; }
.github-first-options { display:flex; flex-wrap:wrap; gap:8px; }
.github-first-option { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 12px; border:1px solid var(--line, #e6dfda); border-radius:8px; font-size:14px; cursor:pointer; }
.github-first-option input[type="radio"] { flex:none; width:18px; height:18px; min-height:0; margin:0; padding:0; accent-color:var(--ink, #2a211d); }
.github-first-option span { white-space:nowrap; }
.github-first-option:has(input:checked) { border-color:var(--ink, #2a211d); background:#f6f2ef; }
.github-first-option:has(input:focus-visible) { outline:3px solid #9d3232; outline-offset:2px; }
.github-first-repos { display:grid; gap:6px; justify-items:start; }
.github-first-repos[hidden] { display:none; }
.github-first-repos select { width:100%; max-width:420px; min-height:44px; }
.github-first-note { margin:0; color:var(--muted, #6b5f59); font-size:13px; }
.start-page.is-app [data-github-first-slot] { grid-column:1 / -1; grid-row:2; }
.start-page.is-app [data-github-first-slot] .github-first { margin:0; }
.start-page.is-app [data-github-first-slot]:empty { display:none; }
.journey-start.start-page.is-app .start-form:has([data-github-first-slot] > *) .start-submit { grid-row:3; }
@media (max-width: 900px) {
  .start-page.is-app [data-github-first-slot], .journey-start.start-page.is-app .start-form:has([data-github-first-slot] > *) .start-submit { grid-column:1; grid-row:auto; }
}
.github-organize { display:grid; gap:12px; min-width:0; margin:14px 0 0; padding:14px 16px; border:1px solid var(--line, #e6dfda); border-radius:10px; }
.github-organize > p, .github-organize-group > p { margin:0; font-size:14px; }
.github-organize-group { display:grid; gap:8px; justify-items:start; }
.github-organize ul { display:grid; gap:6px; width:100%; margin:0; padding:0; list-style:none; }
.github-organize li { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; font-size:14px; }
.github-organize li span { min-width:0; overflow-wrap:anywhere; }
.github-organize label { display:flex; align-items:center; gap:8px; min-height:36px; }
.github-organize label { flex:1 1 auto; min-width:0; }
.github-organize input[type="checkbox"] { flex:none; width:18px; height:18px; min-height:0; margin:0; padding:0; accent-color:var(--ink, #2a211d); }

/* platform/hosting.css */
.hosting-root { min-width: 0; }
.app-hosting-setup .app-hosting-setup-status { margin:0 0 6px; font-size:16px; font-weight:600; color:var(--ink,#262220); }
.app-hosting-setup .app-hosting-setup-message { margin:0; color:var(--secondary,#685f59); font-size:16px; line-height:1.6; }
.app-hosting-setup-resources { display:grid; gap:0; margin:16px 0; }
.app-hosting-setup-resources > div { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 16px; padding:10px 0; border-bottom:1px solid var(--line,#e6ded9); }
.app-hosting-setup-resources dt,.app-hosting-setup-resources dd { margin:0; font-size:14px; line-height:1.6; }
.app-hosting-setup-resources dd { color:var(--secondary,#685f59); text-align:right; }
.app-hosting-setup-details { margin-top:16px; }
.app-hosting-setup-details > summary { display:flex; align-items:center; min-height:44px; font-size:14px; color:var(--secondary,#685f59); cursor:pointer; }
.app-hosting-setup-details > summary::after { content:'⌄'; margin-left:auto; }
.app-hosting-setup-details[open] > summary::after { transform:rotate(180deg); }
.app-hosting-setup-details p,.app-hosting-setup-details label { font-size:14px; line-height:1.6; }
.app-hosting-setup-details p { margin:10px 0; }
.app-hosting-setup-details textarea { display:block; box-sizing:border-box; width:100%; max-width:100%; margin-top:8px; padding:12px; resize:vertical; border:1px solid var(--line,#e6ded9); border-radius:8px; background:var(--paper,#fff); color:var(--ink,#262220); font:inherit; font-size:14px; line-height:1.6; }
.hosting-cloud-review { margin: 16px 0; padding: 13px 15px; border: 1px solid #e3d6cb; border-radius: 7px; background: #fcf8f1; color: #705335; font-size: 14px; line-height: 1.65; }
.hosting-cloud-review strong { display: block; font-weight: 600; }
.hosting-cloud-review p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.hosting-cloud-review.is-passed { border-color: #cbdccf; background: #f4f8f3; color: #3c5d46; }
.hosting-cloud-review.is-changes { border-color: #e6beb1; background: #fff6f1; color: #84452d; }
.code-check { margin: 12px 0; padding: 11px 14px; border: 1px solid #e3d6cb; border-radius: 7px; background: #fcf8f1; color: #705335; font-size: 14px; line-height: 1.55; }
.code-check > strong { display: block; font-weight: 600; }
.code-check ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.code-check li strong { font-weight: 600; }
.code-check li span { display: block; overflow-wrap: anywhere; }
.code-check .code-check-path { display: inline; margin-left: 6px; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .8; }
.code-check-sites, .code-check-more { margin: 6px 0 0; overflow-wrap: anywhere; }
.code-check.is-clear { border-color: #cbdccf; background: #f4f8f3; color: #3c5d46; }
.code-check.is-blocked { border-color: #e6beb1; background: #fff6f1; color: #84452d; }
.code-check-ai { margin: 6px 0 0; overflow-wrap: anywhere; }
.code-check-ai strong { font-weight: 600; }
.hosting-heading, .hosting-list-heading, .hosting-channel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hosting-heading { margin-bottom: 16px; }
.hosting-heading h2 { font-size: 18px; }
.hosting-root .btn { min-height: 44px; height: auto; padding: 10px 13px; white-space: normal; }
.hosting-root button:disabled { opacity: .55; }
.hosting-local { padding: 10px 12px; margin-bottom: 16px; color: var(--secondary); background: var(--wash); border: 1px dashed var(--line); border-radius: 8px; font-size: 12px; }
.hosting-storage { padding:14px 16px; margin-bottom:16px; border:1px solid var(--line); border-radius:8px; }
.hosting-storage h3 { font-size:13px; margin-bottom:10px; }
.hosting-storage dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 24px; }
.hosting-storage dl > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 12px; font-size:12px; }
.hosting-storage dt { color:var(--secondary); }
.hosting-storage dd { margin:0; font-weight:600; overflow-wrap:anywhere; }
.hosting-storage .hosting-help { margin:10px 0 0; }
@media(max-width:600px) { .hosting-storage dl { grid-template-columns:minmax(0,1fr); } .hosting-storage { padding:14px; } }
.hosting-help, .hosting-meta { color: var(--secondary); font-size: 12px; line-height: 1.6; }
.hosting-loading { padding: 16px 0; }
.hosting-channels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hosting-channels > section { min-width: 0; padding: 14px 16px; }
.hosting-channels > section + section { border-left: 1px solid var(--line); }
.hosting-channel-heading { flex-wrap: wrap; gap: 2px 10px; margin-bottom: 8px; }
.hosting-channel-heading h3 { font-size: 13px; }
.hosting-channels p { font-size: 12px; color: var(--secondary); overflow-wrap: anywhere; }
.hosting-channels strong { color: var(--ink); margin-right: 4px; }
.hosting-text-button, .hosting-text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 0; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); color: var(--accent); }
.hosting-text-link:hover, .hosting-text-button:hover { text-decoration-color: var(--accent); }
.hosting-source { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.hosting-repository { overflow-wrap: anywhere; min-width: 0; }
.hosting-source-branch { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; min-width: 0; max-width: 100%; }
.hosting-branch { min-width: 0; overflow-wrap: anywhere; }
.hosting-source .hosting-text-link { margin-left: auto; }
.hosting-form { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.hosting-form > h3 { font-size: 14px; margin-bottom: 14px; }
.hosting-form fieldset { min-width: 0; display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.hosting-form fieldset:disabled { opacity: .65; }
.hosting-form-row { display: grid; grid-template-columns: minmax(0,1.3fr) repeat(2,minmax(0,1fr)); gap: 14px; }
.hosting-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; }
.hosting-form label > span { display: contents; color: var(--secondary); font-weight: 400; }
.hosting-form input, .hosting-form textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink); padding: 10px 12px; font: inherit; font-size: 13px; font-weight: 400; }
.hosting-form textarea { resize: vertical; line-height: 1.5; }
.hosting-list-heading { margin-top: 22px; }
.hosting-list-heading h3 { font-size: 13px; }
.hosting-build { padding: 17px 0; border-bottom: 1px solid var(--line); }
.hosting-build:last-child { border-bottom: 0; }
.hosting-build-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hosting-build-heading h3 { font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.hosting-version { background: var(--wash); border-radius: 5px; padding: 4px 7px; font-size: 11px; font-weight: 650; flex: none; }
.hosting-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.hosting-tag { border: 1px solid var(--line); border-radius: 5px; padding: 3px 7px; font-size: 10px; color: var(--secondary); }
.hosting-selected { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-soft); }
.hosting-meta { margin-top: 7px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hosting-meta code { font-size: 11px; }
.hosting-notes { margin-top: 10px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.hosting-branch-next { margin-top: 10px; }
.hosting-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hosting-form .hosting-actions { margin-top: 0; }
.hosting-preview { margin-top: 12px; border-left: 2px solid var(--accent); padding: 0 12px; }
.hosting-preview .hosting-text-link { font-weight: 600; }
.hosting-error, .hosting-confirm { margin: 16px 0; padding: 14px; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.hosting-error { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-soft); }
.hosting-error p + p { margin-top: 4px; }
.hosting-error .btn { margin-top: 10px; }
.hosting-confirm { border: 1px solid var(--line); background: var(--wash); }
.hosting-confirm h3 { font-size: 14px; margin-bottom: 4px; }
.hosting-empty { padding: 24px 0; }
.hosting-empty h3 { font-size: 14px; }
.hosting-empty p { margin-top: 5px; font-size: 12px; color: var(--secondary); }
.hosting-sample { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.hosting-sample > .btn { margin-left: auto; }
.hosting-permissions { margin-top: 14px; }
.hosting-upload > .hosting-help { margin-bottom:14px; }
.hosting-upload input[type="file"] { padding:8px; }
.hosting-upload details summary, .hosting-export summary, .hosting-advanced summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-size:12px; font-weight:600; }
.hosting-upload details summary::after, .hosting-export summary::after, .hosting-advanced summary::after { content:'+'; margin-left:auto; padding-left:12px; }
.hosting-upload details[open] summary::after, .hosting-export[open] summary::after, .hosting-advanced[open] summary::after { content:'−'; }
.hosting-upload summary:focus-visible, .hosting-export summary:focus-visible, .hosting-advanced summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.hosting-upload .hosting-help { overflow-wrap:anywhere; }
.hosting-upload details label { margin-top:8px; }
.hosting-export, .hosting-advanced { margin:14px 0; }
.hosting-export textarea { display:block; width:100%; min-width:0; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--white); color:var(--ink); font:inherit; font-size:12px; line-height:1.6; resize:vertical; }
.hosting-export .hosting-help { margin-bottom:8px; }
.hosting-approval { padding:14px; margin-bottom:14px; border:1px solid var(--line); border-radius:8px; font-size:13px; line-height:1.6; }
.hosting-review-check { display:flex; align-items:flex-start; gap:10px; min-height:44px; margin-top:10px; padding-block:8px; font-size:13px; line-height:1.6; cursor:pointer; }
.hosting-review-check input { flex:none; width:18px; height:18px; margin:2px 0 0; accent-color:var(--accent); }
.hosting-public-options { margin-top:10px; }
.hosting-public-options summary { display:list-item; cursor:pointer; min-height:44px; padding-block:12px; color:var(--secondary); font-size:12px; }
.hosting-public-options summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.publishing-root { min-width:0; }
.publishing-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.publishing-heading h2 { font-size:18px; }
.publishing-root .btn { min-height:44px; height:auto; padding:10px 13px; white-space:normal; }
.publishing-root button:disabled { opacity:.55; }
.publishing-root :is(button,a,input,textarea):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.publishing-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; list-style:none; padding:0; margin:18px 0; }
.publishing-step { display:flex; align-items:center; gap:9px; min-width:0; padding:12px; border:1px solid var(--line); border-radius:8px; color:var(--secondary); font-size:12px; line-height:1.5; }
.publishing-step[aria-current="step"] { color:var(--accent); border-color:var(--accent); background:var(--accent-soft); }
.publishing-step > span:first-child { display:grid; place-items:center; flex:none; width:25px; height:25px; border:1px solid currentColor; border-radius:50%; font-size:11px; font-weight:600; }
.publishing-upload { margin-top:16px; }
.publishing-status { padding:14px 16px; border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:8px; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.publishing-status:empty { display:none; }
.publishing-status h3 { margin-bottom:5px; font-size:14px; }
.publishing-status p + p { margin-top:5px; }
.publishing-status .hosting-storage { padding:12px 0 0; margin:12px 0 0; border:0; border-top:1px solid var(--line); border-radius:0; }
.publishing-status .hosting-storage h3 { font-size:13px; margin-bottom:10px; }
.publishing-lanes { min-width:0; margin-top:18px; }
.publishing-lanes > [hidden] { display:none; }
.publishing-root details > summary { cursor:pointer; min-height:44px; padding-block:12px; font-size:12px; font-weight:600; }
.publishing-root select { min-height:44px; max-width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:7px; color:var(--ink); background:var(--white); font:inherit; font-size:13px; }
@media(max-width:600px) {
  .hosting-heading { align-items: flex-start; }
  .hosting-heading h2 { padding-top: 10px; }
  .hosting-heading > .btn { max-width: 160px; }
  .hosting-channels { grid-template-columns: 1fr; }
  .hosting-channels > section + section { border-left: 0; border-top: 1px solid var(--line); }
  .hosting-channels > section { padding: 14px; }
  .hosting-form { padding: 14px; }
  .hosting-form-row { grid-template-columns: 1fr; }
  .hosting-form input, .hosting-form textarea { font-size: 16px; }
  .hosting-tags { flex-basis: 100%; }
  .hosting-sample > .btn { margin-left: 0; }
  .publishing-steps { gap:6px; }
  .publishing-step { align-items:flex-start; flex-direction:column; gap:6px; padding:10px; font-size:11px; }
  .publishing-status { padding:12px; }
  .publishing-root select { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) {
  .hosting-root button, .hosting-root a { transition: none; }
}

/* Publishing keeps current delivery separate from saved versions. */
.publishing-dashboard { padding:0; max-width:none; background:transparent; border:0; }
.publishing-dashboard [hidden] { display:none!important; }
.publishing-dashboard .publishing-status:empty { display:none; }
.publishing-dashboard .publishing-status { margin:0 0 20px; padding:0; border:0; background:transparent; }
.publication-current { display:grid; grid-template-columns:64px minmax(0,1fr) auto; align-items:center; gap:24px; padding:28px; border:1px solid var(--line,#e6ded9); border-radius:12px; background:#fff; }
.publication-current-copy { min-width:0; }
.publication-current h2 { margin:8px 0 0; font-size:24px; line-height:1.25; letter-spacing:-.025em; overflow-wrap:anywhere; }
.publication-current p { margin:10px 0 0; font-size:14px; color:var(--muted,#685f59); line-height:1.6; }
.publication-current > .btn { justify-content:center; min-height:44px; }
.publication-version-icon,.publication-window { display:grid; place-items:center; width:64px; height:64px; border-radius:12px; background:#edf4ee; color:#326443; font:600 24px/1 var(--heading,'DM Sans',sans-serif); }
.publication-window { background:#f3efed; color:#7b6a63; font-size:28px; }
.publication-live-label { display:flex; align-items:center; gap:8px; color:#326443; font-size:13px; font-weight:650; }
.publication-live-label > span { width:7px; height:7px; flex:none; border-radius:50%; background:currentColor; }
.publication-live-label.is-local { color:#835b25; }
.publication-current.publication-current-empty { grid-template-columns:64px minmax(0,1fr); }
.publication-current-empty h2 { font-size:21px; margin:0; }
.publication-history { margin-top:32px; }
.publication-history > header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:16px; }
.publication-history h2,.publication-selection-heading h2 { margin:0; font-size:19px; line-height:1.4; }
.publication-version-list { overflow:hidden; border:1px solid var(--line,#e6ded9); border-radius:12px; background:#fff; }
.publication-version-row { display:grid; grid-template-columns:46px minmax(0,1fr) 120px auto; gap:16px; align-items:center; min-width:0; padding:20px; }
.publication-version-row + .publication-version-row { border-top:1px solid var(--line,#e6ded9); }
.publication-version-row.is-selected { background:#faf7f5; box-shadow:inset 3px 0 #800000; }
.publication-row-version { display:grid; place-items:center; width:42px; height:42px; border-radius:8px; background:#f2eeeb; color:#5b4e48; font-size:14px; font-weight:600; }
.publication-version-name { min-width:0; }
.publication-version-name h3 { margin:0; font-size:15px; font-weight:650; line-height:1.5; overflow-wrap:anywhere; }
.publication-version-name p { margin:3px 0 0; color:var(--muted,#685f59); font-size:13px; line-height:1.5; }
.publication-version-status { font-size:13px; color:var(--muted,#685f59); }
.publication-version-status.is-live { color:#326443; font-weight:650; }
.publication-version-row .btn { min-height:44px; padding:9px 14px; font-size:13px; background:#fff; color:var(--ink,#292321); }
.publishing-dashboard .publication-upload { margin-top:24px; padding:0 24px; border:1px solid var(--line,#e6ded9); border-radius:12px; background:#fff; }
.publication-upload > summary { display:flex; align-items:center; gap:12px; min-height:64px; font-size:16px; font-weight:600; color:var(--ink,#292321); cursor:pointer; }
.publication-upload > summary::after { content:'+'; margin-left:auto; color:var(--muted,#685f59); font-size:22px; font-weight:400; }
.publication-upload[open] > summary::after { content:'−'; }
.publication-upload .hosting-form { padding:0 0 24px; margin:0; }
.publication-upload .hosting-form fieldset { gap:20px; }
.publication-upload .hosting-form label { font-size:14px; }
.publication-upload .hosting-form :is(input,textarea) { font-size:16px; }
.publication-file-field input { padding:18px!important; background:#faf8f7!important; border-style:dashed!important; }
.publication-upload .publishing-notes { margin:0; }
.publication-upload .publishing-notes summary { min-height:44px; display:flex; align-items:center; color:var(--muted,#685f59); font-size:14px; cursor:pointer; }
.publication-upload .publishing-notes label { margin-top:12px; }
.publication-upload-private { color:var(--muted,#685f59); font-size:13px; }
.publication-upload [data-publishing-selected]:empty { display:none; }
.publication-upload .hosting-help { font-size:13px; }
.publication-upload-page .publication-upload { margin-top:0; padding:24px; }
.publication-upload-page .publication-upload h2 { margin:0 0 20px; font-size:19px; }
.publication-upload-page .publication-upload .hosting-form { padding-bottom:0; }
.publication-upload-navigation { margin-top:20px; }
.publication-step-number { display:inline-grid; place-items:center; flex:none; width:28px; height:28px; border:1px solid var(--line,#e6ded9); border-radius:50%; color:var(--muted,#685f59); font-size:13px; font-weight:600; }
.publication-step-heading { display:flex; align-items:center; gap:12px; margin:0 0 16px; }
.publication-step-heading h2 { margin:0; font-size:18px; line-height:1.4; }
.publication-intro { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 24px; margin:0 0 20px; }
.publication-intro p { margin:0; font-size:16px; line-height:1.6; }
.publication-intro > div { display:flex; flex-wrap:wrap; gap:4px 20px; }
.publication-intro .text-link { display:inline-flex; align-items:center; min-height:44px; font-size:14px; }
.publication-login-reminder { margin:0 0 20px; padding:12px 16px; border-left:3px solid #800000; background:#f2ede8; color:#611d16; font-size:16px; line-height:1.6; }
.publication-login-reminder[hidden] { display:none; }
.publication-start { display:grid; grid-template-columns:minmax(0,1fr) 320px; align-items:start; gap:32px; }
.publication-primary { min-width:0; }
.publication-guidance { min-width:0; padding-left:24px; border-left:1px solid var(--line,#e6ded9); }
.publication-guidance .publication-policy-list > div { grid-template-columns:1fr; gap:4px; }
.publication-policy { margin:0 0 20px; }
.publication-policy-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 20px; }
.publication-policy-heading h2,.publication-login h2 { margin:0; font-size:18px; line-height:1.4; }
.publication-policy > p,.publication-login p,.publication-link-choice > p { margin:8px 0 16px; font-size:16px; line-height:1.6; }
.publication-policy-list { margin:0; }
.publication-policy-list > div { display:grid; grid-template-columns:180px minmax(0,1fr); gap:12px 24px; padding:14px 0; border-top:1px solid var(--line,#e6ded9); }
.publication-policy-list dt { font-size:16px; font-weight:600; line-height:1.6; }
.publication-policy-list dd { margin:0; font-size:16px; line-height:1.6; color:var(--muted,#685f59); }
.publication-policy .publication-policy-note { margin:8px 0 0; font-size:14px; color:var(--muted,#685f59); }
.publication-policy .text-link,.publication-login .text-link { display:inline-flex; align-items:center; min-height:44px; font-size:14px; }
.publication-link-choice { margin:0 0 20px; padding:0 20px; border:1px solid var(--line,#e6ded9); border-radius:10px; background:#fff; }
.publication-flow .publication-link-choice > summary { min-height:52px; padding:12px 0; cursor:pointer; font-size:16px; font-weight:600; }
.publication-link-choice .editor-section { margin:0 0 20px; padding:0; border:0; background:none; }
.publication-login { display:flex; flex-wrap:wrap; align-items:center; gap:8px 24px; margin:0 0 20px; padding:20px; border-left:3px solid #800000; background:#f2ede8; }
.publication-login > div:first-child { flex:1 1 400px; }
.publication-login p { margin-bottom:0; }
.publication-login-actions { display:flex; flex-wrap:wrap; align-items:center; gap:4px 20px; }
.publication-login-actions .btn { font-size:14px; min-height:44px; }
.publication-login-actions { margin-top:12px; }
.publication-login-keys { display:grid; gap:8px; margin:12px 0 0; }
.publication-login-key { display:grid; grid-template-columns:76px minmax(0,1fr) auto; align-items:center; gap:4px 10px; }
.publication-login-key span { font-size:14px; font-weight:600; }
.publication-login-key code { font:13px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; padding:7px 9px; border:1px solid #e2d8d4; border-radius:8px; background:#fff; overflow-wrap:anywhere; }
.publication-login-how { margin-top:4px; font-size:14px; }
.publication-login-how summary { display:inline-flex; align-items:center; min-height:44px; cursor:pointer; font-weight:600; }
.publication-login .publication-login-how p { display:flex; gap:10px; margin:0 0 6px; font-size:14px; line-height:1.5; }
.publication-login-how p b { flex:none; display:inline-grid; place-items:center; width:22px; height:22px; border-radius:50%; background:#800000; color:#fff; font-size:12px; font-weight:700; }
.publication-login-status.is-working strong { color:#2f6b3a; }
.publication-login-status.is-failing strong { color:#800000; }
.publication-login-note { font-size:14px; }
.publication-login-prompt { box-sizing:border-box; width:100%; margin-top:12px; padding:10px; border:1px solid #e2d8d4; border-radius:8px; font:12.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; resize:vertical; }
.publication-login-note:empty { display:none; }
@media(max-width:680px) {
 .publication-policy-list > div { grid-template-columns:1fr; gap:4px; }
 .publication-login { padding:16px; }
 .publication-login-actions { width:100%; }
 .publication-login-actions .btn { width:100%; justify-content:center; }
}
@media(max-width:1100px) {
 .publication-start { grid-template-columns:1fr; gap:24px; }
 .publication-guidance { padding-left:0; padding-top:24px; border-left:0; border-top:1px solid var(--line,#e6ded9); }
 .publication-guidance .publication-policy-list > div { grid-template-columns:180px minmax(0,1fr); gap:12px 24px; }
}
@media(max-width:680px) {
 .publication-guidance .publication-policy-list > div { grid-template-columns:1fr; gap:4px; }
}
.publication-file-step { padding:24px 24px 0; border:1px solid var(--line,#e6ded9); border-bottom:0; border-radius:12px 12px 0 0; background:#fff; }
.publication-file-step:has(+ .publication-workbench[hidden]) { padding-bottom:24px; border-bottom:1px solid var(--line,#e6ded9); border-radius:12px; }
.publication-file-empty { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.publication-file-empty h3 { margin:0 0 8px; font-size:17px; }
.publication-file-empty p,.publication-selected-file p { margin:0; font-size:14px; line-height:1.6; color:var(--muted,#685f59); }
.publication-file-empty p { max-width:52ch; }
.publication-selected-file { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:14px; padding:16px; border-radius:8px; background:#faf8f7; }
.publication-selected-file strong { display:block; font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
.publication-selected-file .text-link { font-size:13px; min-height:44px; display:inline-flex; align-items:center; }
.publication-flow .publication-history { margin:8px 0 0; }
.publication-flow .publication-history > summary { display:flex; align-items:center; min-height:44px; font-size:13px; color:var(--muted,#685f59); cursor:pointer; }
.publication-flow .publication-history > summary::before { content:'›'; margin-right:8px; font-size:20px; }
.publication-flow .publication-history[open] > summary::before { transform:rotate(90deg); }
.publication-flow .publication-history .publication-version-list { margin:8px 0 20px; }
.publication-flow .publication-workbench { margin-top:0; padding:0 24px 24px; border-top:0; border-radius:0 0 12px 12px; }
.publication-flow .publication-workbench > summary { min-height:44px; padding-top:12px; font-size:13px; color:var(--muted,#685f59); cursor:pointer; }
.publication-flow .publication-workbench:not([open]) { padding-bottom:12px; }
.publication-preview-step,.publication-publish-step { margin-top:24px; padding-top:24px; border-top:1px solid var(--line,#e6ded9); }
.publication-preview-step > .hosting-help,.publication-publish-step > .hosting-help { margin:0 0 16px; }
.publication-preview-step .hosting-preview { padding:0; margin:0; border:0; }
.publication-preview-step .hosting-text-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:10px 14px; box-sizing:border-box; border:1px solid var(--line,#e6ded9); border-radius:8px; text-decoration:none; font-size:14px; }
.publication-preview-step .hosting-review-check { margin-top:16px; padding:14px; background:#faf8f7; border-radius:8px; }
.publication-flow .publication-publish-step .btn { min-width:180px; }
.publication-flow .hosting-actions .btn:not(.secondary) { color:#fff; background:#800000; border-color:#800000; }
.publication-flow .hosting-actions .btn:not(.secondary):disabled { color:#81756e; background:#f3efed; border-color:var(--line,#e6ded9); }
.hosting-release-options { margin-top:16px; }
.hosting-release-options > summary { display:flex; align-items:center; min-height:44px; font-size:13px; color:var(--muted,#685f59); cursor:pointer; }
.publication-live-summary { margin-top:24px; }
.publication-live-summary .publication-current { padding:20px; gap:16px; }
.publication-live-summary .publication-current h2 { font-size:18px; }
.publication-live-summary .publication-current .btn { background:#fff; color:#800000; border:1px solid var(--line,#e6ded9); }
.publication-more h3 { font-size:15px; margin:16px 0 8px; }
@media(max-width:600px) {
 .publication-step-number { width:24px; height:24px; font-size:12px; }
 .publication-file-step { padding:20px 20px 0; }
 .publication-file-step:has(+ .publication-workbench[hidden]) { padding-bottom:20px; }
 .publication-flow .publication-workbench { padding:0 20px 20px; }
 .publication-selected-file { grid-template-columns:36px minmax(0,1fr); gap:10px; }
 .publication-selected-file .text-link { grid-column:2; min-height:36px; }
 .publication-flow .publication-publish-step .btn,.publication-file-empty > .btn { width:100%; justify-content:center; }
}
.publication-workbench { min-width:0; margin-top:24px; padding:24px; background:#fff; border:1px solid var(--line,#e6ded9); border-radius:12px; }
.publication-selection-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.publication-selection-heading > span { color:var(--muted,#685f59); font-size:13px; }
.publication-workbench .hosting-root { padding:0; border:0; margin:0; }
.publication-workbench .hosting-build { padding:0; margin:0; border:0; background:transparent; }
.publication-workbench :is(.hosting-meta,.hosting-help,.hosting-notes,.hosting-tag) { font-size:13px; }
.publication-workbench .hosting-build-heading h3 { font-size:18px; }
.publication-workbench .hosting-actions { flex-wrap:wrap; gap:10px; }
.publication-workbench .hosting-actions .btn { min-height:44px; font-size:14px; }
.publication-workbench .hosting-public-options { padding-top:12px; }
.publication-workbench .hosting-public-options > summary { font-size:14px; min-height:44px; display:flex; align-items:center; cursor:pointer; }
.publication-serving-note { padding:16px; margin:0 0 20px; border-radius:8px; background:#fff7e9; color:#6c4d27; font-size:14px; line-height:1.6; }
.hosting-root .hosting-private-preview,.ws-publish .hosting-root .hosting-private-preview,.ws-publish .hosting-root .publication-step .hosting-private-preview { font-size:16px; line-height:1.6; }
.hosting-root .hosting-policy-note,.ws-publish .hosting-root .publication-more-row .hosting-policy-note { font-size:16px; line-height:1.6; }
.hosting-root .hosting-private-preview a { font-size:inherit; text-decoration:underline; text-underline-offset:3px; }
.publication-serving-note .text-link { display:inline-flex; min-height:44px; align-items:center; margin-left:6px; color:inherit; font-size:14px; font-weight:600; }
.publication-help,.publication-external { margin-top:24px; border-top:1px solid var(--line,#e6ded9); }
.publication-help > summary,.publication-external > summary { display:flex; align-items:center; min-height:52px; gap:12px; font-size:14px; color:var(--muted,#685f59); cursor:pointer; }
.publication-help > summary::before,.publication-external > summary::before { content:'›'; font-size:20px; }
.publication-help[open] > summary::before,.publication-external[open] > summary::before { transform:rotate(90deg); }
.publication-help textarea { width:100%; min-height:160px; box-sizing:border-box; padding:16px; margin:12px 0; border:1px solid var(--line,#e6ded9); border-radius:8px; font:13px/1.6 ui-monospace,monospace; resize:vertical; }
.publication-help .hosting-actions { margin:8px 0 16px; }
.publication-help .hosting-text-button { min-height:44px; margin-bottom:16px; }
.publication-external .editor-section { margin:0; padding:20px; border-radius:10px; background:#fff; }
.workspace-preview-link [data-project-preview] { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
.workspace-preview-link button[data-project-preview] { border:0; padding:0; background:transparent; font:inherit; font-size:14px; color:var(--muted,#685f59); opacity:.55; text-align:left; }
@media(max-width:760px) {
 .publication-current { grid-template-columns:48px minmax(0,1fr); gap:16px; padding:20px; }
 .publication-version-icon,.publication-window { width:48px; height:48px; font-size:20px; }
 .publication-current h2 { font-size:21px; }
 .publication-current > .btn { grid-column:1/-1; }
 .publication-current.publication-current-empty { grid-template-columns:48px minmax(0,1fr); }
 .publication-version-row { grid-template-columns:38px minmax(0,1fr) auto; gap:8px 12px; padding:16px; }
 .publication-row-version { width:36px; height:36px; grid-row:1/3; }
 .publication-version-name { grid-column:2; }
 .publication-version-status { grid-column:2; grid-row:2; }
 .publication-version-row > .btn { grid-column:3; grid-row:1/3; padding-inline:10px; }
 .publication-history { margin-top:24px; }
 .publishing-dashboard .publication-upload { padding-inline:20px; }
 .publication-workbench { padding:20px; }
 .publication-upload .hosting-actions { align-items:flex-start; flex-direction:column; }
 .publication-upload .hosting-actions .btn { width:100%; justify-content:center; }
 .publication-external :is(input,textarea) { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) { .publication-workbench { scroll-behavior:auto; } }

.publication-current-actions { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.publication-current-actions .btn { min-height:44px; justify-content:center; }
.publication-current-actions .text-link { min-height:36px; }
@media(max-width:760px) { .publication-current-actions { grid-column:1/-1; align-items:stretch; } }

.publication-upload .hosting-form,.publication-upload .hosting-form fieldset { border:0; background:transparent; }
.publication-upload .hosting-form fieldset { padding:0; margin:0; }
.publishing-dashboard :is(.hosting-build,.publication-selection-heading h2)[tabindex="-1"]:focus { outline:none; }

.hosting-assessment,.hosting-source-review,.hosting-functional-test{margin:16px 0;padding:16px;border:1px solid var(--line,#ddd);border-radius:12px;min-width:0}
.hosting-assessment header,.hosting-assessment-label,.source-review-file-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hosting-assessment h3,.hosting-assessment h4{margin:0 0 8px}
.hosting-assessment-group{margin-top:16px}.hosting-assessment-group>ul{list-style:none;padding:0;margin:0}
.hosting-assessment-check{padding:12px 0;border-top:1px solid var(--line,#ddd)}.hosting-assessment-check p{margin:6px 0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.hosting-assessment-state{font-size:12px;font-weight:600;padding:3px 8px;border-radius:6px;background:#f0efed}.hosting-assessment-state.is-blocked,.hosting-assessment-state.is-needs_review{background:#fff1e2;color:#774318}.hosting-assessment-state.is-passed,.hosting-assessment-state.is-reported{background:#edf5ef;color:#245e38}
.hosting-functional-test fieldset,.external-app-review fieldset{border:0;padding:0;margin:0;display:grid;gap:14px;min-width:0}
.hosting-functional-test label,.external-app-review label,.hosting-source-review label{display:grid;gap:6px;font-size:14px}
.hosting-functional-test textarea,.external-app-review textarea,.hosting-source-review textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:70px}
.hosting-test-results{display:grid;grid-template-columns:1fr 1fr;gap:12px}.source-review-code{min-width:0;max-width:100%;box-sizing:border-box;max-height:360px;overflow:auto;padding:12px;background:#f4f3f1;white-space:pre;font-size:12px;line-height:1.6}.source-review-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.hosting-source-review form{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:12px}.source-review-confirm{grid-template-columns:auto minmax(0,1fr);align-items:start}.source-review-file-heading strong{overflow-wrap:anywhere}.hosting-source-review select{max-width:100%}.external-app-review details>p{margin:12px 0}
@media(max-width:600px){.hosting-test-results{grid-template-columns:1fr}.hosting-assessment,.hosting-source-review,.hosting-functional-test{padding:12px}.hosting-assessment header{align-items:flex-start}}
/* What the checks found: one card per issue, fixes in plain words, then the next step. */
.publication-report { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; }
.publication-report h3 { margin: 0 0 4px; font-size: 15px; }
.publication-issues { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 10px; }
.publication-issue { padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); }
.publication-issue p { margin: 4px 0 0; }
.publication-issue.is-note { background: var(--surface-muted, #f4efec); }
.publication-notes h3 { margin: 18px 0 2px; font-size: 1rem; }
.publication-notes > p { margin: 0; }
.publication-manager-note { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.publication-note { display: grid; gap: 6px; margin: 10px 0; font-size: 13px; }
.publication-note textarea { width: 100%; min-height: 56px; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }

/* aurora-shell.css */
@font-face { font-family:Bricolage; src:url('/aurora/assets/Bricolage-latin.woff2') format('woff2'); font-display:swap; font-weight:200 800; }
.aurora-header-wrap { position:sticky; top:0; z-index:40; width:100%; background:#fff; border-bottom:1px solid #e8e0df; color:#302625; font-family:'DM Sans',Arial,sans-serif; }
.aurora-header { box-sizing:border-box; width:100%; max-width:none; padding-inline:24px; min-height:80px; margin:0 auto; display:grid; grid-template-columns:208px minmax(0,1fr) auto; align-items:center; gap:24px; }
.aurora-header a { color:inherit; text-decoration:none; -webkit-tap-highlight-color:transparent; }
.aurora-brand { justify-self:start; display:inline-flex; align-items:center; gap:8px; min-height:44px; color:#800000!important; font-family:Bricolage,'DM Sans',Arial,sans-serif; font-size:27px; font-weight:650; line-height:1; letter-spacing:-1.1px; }
.aurora-brand img { width:35px; height:40px; object-fit:contain; }
.aurora-navigation { justify-self:center; display:flex; align-items:center; gap:4px; padding:4px; border:1px solid #e8e0df; border-radius:8px; background:#faf8f8; }
.aurora-navigation a { display:flex; align-items:center; justify-content:center; min-height:44px; padding:0 16px; color:#645a58; font-size:14px; font-weight:500; white-space:nowrap; border-radius:5px; transition:color .15s,background .15s; }
.aurora-navigation a:hover { background:#f1e9e8; color:#800000; }
.aurora-navigation a.is-current { color:#fff; background:#800000; }
.aurora-header-actions { justify-self:end; display:flex; align-items:center; gap:10px; min-width:0; }
.aurora-start,.aurora-account { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 14px; border-radius:6px; font-size:13px; font-weight:600; white-space:nowrap; }
.aurora-start { background:#800000; color:#fff!important; border:1px solid #800000; }
.aurora-start:hover { background:#650000; }
.aurora-account { max-width:180px; border:1px solid #e8e0df; color:#302625!important; }
.aurora-account>span:last-child { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.aurora-account:hover { background:#faf4f4; }
.aurora-avatar { display:grid; place-items:center; flex:none; width:24px; height:24px; border-radius:50%; background:#f0e1dd; color:#800000; font-size:13px; }
.aurora-header a:focus-visible { outline:2px solid #800000; outline-offset:4px; }
.aurora-header-wrap.is-over-welcome { background:transparent; border-color:transparent; color:#fff; }
.is-over-welcome .aurora-brand { color:#fff!important; }
.is-over-welcome .aurora-navigation { background:#240b1740; border-color:#ffffff40; }
.is-over-welcome .aurora-navigation a { color:#fff; }
.is-over-welcome .aurora-navigation a:hover { background:#ffffff20; }
.is-over-welcome .aurora-start { background:#fff; border-color:#fff; color:#800000!important; }
.is-over-welcome .aurora-start:hover { background:#f8edf0; }
.is-over-welcome .aurora-account { color:#fff!important; background:#240b1740; border-color:#ffffff60; }
.is-over-welcome .aurora-account:hover { background:#ffffff20; }
.is-over-welcome .aurora-header a:focus-visible { outline-color:#fff; }
@media(max-width:900px) { .aurora-header { width:100%; padding-inline:20px; gap:14px; } .aurora-navigation a { padding:0 12px; } .aurora-start,.aurora-account { padding:0 11px; } }
@media(max-width:680px) { .aurora-header { grid-template-columns:minmax(0,1fr) auto; padding:12px 20px 10px; gap:10px; } .aurora-navigation { grid-column:1/-1; grid-row:2; justify-self:center; } .aurora-navigation a { min-height:44px; padding:0 18px; } .aurora-brand { font-size:25px; } .aurora-brand img { width:29px; height:34px; } .aurora-account { max-width:130px; } }
@media(max-width:440px) { .aurora-header { width:100%; padding-inline:14px; gap:8px; } .aurora-brand { font-size:22px; gap:5px; } .aurora-brand img { width:25px; height:30px; } .aurora-header-actions { gap:6px; } .aurora-start,.aurora-account { font-size:13px; padding:0 9px; min-height:44px; } .aurora-account { max-width:76px; } .aurora-avatar { display:none; } }
@media(prefers-reduced-motion:reduce) { .aurora-header a { transition:none; } }
@media(max-width:680px), (pointer:coarse) {
 .aurora-navigation a,.aurora-start,.aurora-account { min-height:44px; }
}
@media(max-width:680px) {
 .aurora-navigation { box-sizing:border-box; width:100%; justify-self:stretch; }
 .aurora-navigation a { flex:1; min-width:0; padding:0 8px; }
}

@media(max-width:400px) { .aurora-navigation a { font-size:13px; padding:0 4px; } }
/* Five links, Help, Create and a long account name need about 1180px on one row. */
@media(min-width:1181px) and (max-width:1320px) { .aurora-header { gap:16px; } .aurora-navigation a { padding:0 11px; } }
@media(max-width:1180px) {
 .aurora-header { grid-template-columns:minmax(0,1fr) auto; padding:12px 20px 10px; gap:10px; }
 .aurora-navigation { grid-column:1/-1; grid-row:2; box-sizing:border-box; width:100%; justify-self:stretch; }
 .aurora-navigation a { flex:1; min-width:0; min-height:44px; }
}

@media(max-width:400px) {
 .aurora-header { padding-inline:14px; }
 .aurora-navigation { gap:4px; justify-content:space-between; }
 .aurora-navigation a { flex:0 0 auto; padding-inline:0; }
 .aurora-navigation:not(:has(> a:nth-child(5))) a { flex:1 1 0; padding-inline:6px; }
}
@media(max-width:360px) { .aurora-brand span { display:none; } }

.aurora-header-actions>a[href$="#/help"] { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 10px; border-radius:6px; color:#800000; font-size:13px; font-weight:600; }
.aurora-header-actions>a[href$="#/help"]:hover { background:#f7edeb; }
.aurora-header-actions>a[href$="#/help"][aria-current="page"] { background:#f1e1de; }
.is-over-welcome .aurora-header-actions>a[href$="#/help"] { color:#fff; }
@media(max-width:680px) {
 .aurora-header-actions>a[href$="#/help"] { position:fixed; right:18px; bottom:18px; min-width:66px; padding:0 14px; background:#800000; color:#fff; border:1px solid #ffffff50; border-radius:24px; box-shadow:0 3px 14px #421b2420; }
 .aurora-header-actions>a[href$="#/help"][aria-current="page"] { display:none; }
}
@media(max-width:560px) {
 .aurora-navigation:has(> a:nth-child(5)) { gap:2px; overflow-x:auto; justify-content:flex-start; }
 .aurora-navigation:has(> a:nth-child(5)) a { flex:0 0 auto; padding-inline:10px; font-size:14px; }
}
.aurora-gripe { position:fixed; right:16px; bottom:16px; z-index:60; display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.aurora-gripe[hidden], .aurora-gripe-panel[hidden], .aurora-gripe-panel [hidden] { display:none; }
.aurora-gripe-button { width:auto; min-height:44px; padding:0 13px; gap:7px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:#fff; color:#800000; border:1px solid #e3d4d0; box-shadow:0 2px 10px #421b2418; cursor:pointer; opacity:.85; }
.aurora-gripe-button:hover, .aurora-gripe-button[aria-expanded="true"] { opacity:1; background:#f7edeb; }
.aurora-gripe-button:focus-visible { outline:2px solid #800000; outline-offset:2px; }
.aurora-gripe-panel { width:min(340px, calc(100vw - 32px)); max-height:calc(100dvh - 90px); overflow:auto; box-sizing:border-box; padding:16px; background:#fff; border:1px solid #e3d4d0; border-radius:12px; box-shadow:0 10px 40px #30221b22; }
.aurora-gripe-title { margin:0 0 2px; font-size:16px; font-weight:650; }
.aurora-gripe-choices { display:grid; gap:8px; }
.aurora-gripe-choices button { display:grid; gap:3px; padding:10px 12px; min-height:44px; text-align:left; background:var(--surface, #fff); color:inherit; border:1px solid var(--line-strong, #e3d4d0); border-radius:10px; font:inherit; cursor:pointer; }
.aurora-gripe-choices button:hover { background:var(--surface-hover, #f7edeb); }
.aurora-gripe-choices button strong { font-size:16px; font-weight:650; }
.aurora-gripe-choices button span, .aurora-gripe-history { font-size:14px; line-height:1.45; }
.aurora-gripe-back { min-height:44px; padding:0 8px; margin:0 0 4px -8px; border:0; border-radius:8px; color:inherit; background:transparent; font:inherit; font-size:14px; cursor:pointer; }
.aurora-gripe-back:hover { background:var(--surface-hover, #f7edeb); }
.aurora-gripe-label { display:block; font-weight:650; }
.aurora-gripe-help { margin:6px 0 10px; font-size:14px; line-height:1.45; }
.aurora-gripe-history summary { padding-block:8px; cursor:pointer; }
.aurora-gripe-history li { overflow-wrap:anywhere; }
.aurora-gripe-update { margin:4px 0 10px; font-size:16px; white-space:pre-wrap; overflow-wrap:anywhere; }
.aurora-gripe-panel textarea { width:100%; min-height:72px; box-sizing:border-box; resize:vertical; padding:8px 10px; font:inherit; font-size:16px; border:1px solid #ddd6d2; border-radius:8px; }
.aurora-gripe-actions { display:flex; align-items:center; gap:8px; margin-top:8px; }
/* Screenshots: a drop area that lights up while an image is dragged over the box. */
.aurora-gripe-compose { position:relative; border-radius:10px; }
.aurora-gripe-attachment { display:grid; gap:6px; margin-top:8px; padding:10px 12px; border:1px dashed #d8c9c4; border-radius:8px; color:#62554e; font-size:13px; line-height:1.4; cursor:pointer; }
.aurora-gripe-attachment:hover { border-color:#800000; background:#fbf6f5; }
.aurora-gripe-attachment input { font-size:13px; max-width:100%; }
.aurora-gripe-compose.is-dropping { outline:2px dashed #800000; outline-offset:6px; background:#8000000a; }
.aurora-gripe-compose.is-dropping::after { content:"Drop to add the screenshot"; position:absolute; inset:0; display:grid; place-items:center; border-radius:10px; background:#fffffff0; color:#800000; font-weight:650; font-size:15px; pointer-events:none; }
.aurora-gripe-status { flex:1; min-width:0; font-size:14px; color:#62554e; }
.aurora-gripe { transition:opacity .15s ease-out; }
.aurora-gripe.is-picking { opacity:0; pointer-events:none; }
.aurora-gripe-panel { transform-origin:bottom right; animation:aurora-gripe-in .16s ease-out; }
@keyframes aurora-gripe-in { from { opacity:0; transform:translateY(6px) scale(.98); } }
.aurora-gripe-point { flex:none; width:32px; height:32px; padding:0; display:inline-flex; align-items:center; justify-content:center; border:1px solid #e3d4d0; border-radius:8px; background:#fff; color:#800000; cursor:pointer; }
.aurora-gripe-point:hover { background:#f7edeb; }
.aurora-gripe-point:focus-visible, .aurora-gripe-chip-clear:focus-visible { outline:2px solid #800000; outline-offset:2px; }
.aurora-gripe-chip { display:flex; align-items:center; gap:6px; margin-top:8px; padding:3px 3px 3px 8px; border-radius:8px; background:#f7edeb; color:#5c1f24; font-size:12px; }
.aurora-gripe-chip[hidden] { display:none; }
.aurora-gripe-chip svg { display:block; }
.aurora-gripe-chip-label { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.aurora-gripe-chip-clear { width:26px; height:26px; padding:0; border:0; border-radius:6px; background:none; color:inherit; font-size:17px; line-height:1; cursor:pointer; }
.aurora-gripe-chip-clear:hover { background:#efdcd8; }
.aurora-gripe-layer { position:fixed; inset:0; z-index:2147483000; cursor:crosshair; touch-action:none; user-select:none; -webkit-user-select:none; background:#2a121818; opacity:0; transition:opacity .15s ease-out; }
.aurora-gripe-layer.is-on { opacity:1; }
.aurora-gripe-hint { position:fixed; top:14px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:10px; padding:6px 6px 6px 14px; border-radius:999px; background:#1f1416; color:#fff; font-size:13px; white-space:nowrap; box-shadow:0 6px 24px #0000004d; cursor:default; }
.aurora-gripe-hint-cancel { padding:6px 12px; border:0; border-radius:999px; background:#ffffff26; color:#fff; font:inherit; font-size:12px; cursor:pointer; }
.aurora-gripe-hint-cancel:hover { background:#ffffff40; }
.aurora-gripe-box { position:fixed; left:0; top:0; width:0; height:0; box-sizing:border-box; border:2px solid #800000; border-radius:6px; background:#80000014; pointer-events:none; opacity:0; transition:transform .09s ease-out, width .09s ease-out, height .09s ease-out, opacity .12s; }
.aurora-gripe-box.is-visible { opacity:1; }
.aurora-gripe-box.is-drawing { border-style:dashed; transition:opacity .12s; }
.aurora-gripe-marker { position:absolute; z-index:59; box-sizing:border-box; border:2px dashed #800000; border-radius:6px; background:#8000000f; pointer-events:none; animation:aurora-gripe-pulse .9s ease-out 1; }
.aurora-gripe-marker[hidden] { display:none; }
.aurora-gripe-marker span { position:absolute; left:-2px; bottom:100%; margin-bottom:4px; padding:2px 8px; border-radius:6px; background:#800000; color:#fff; font-size:11px; white-space:nowrap; }
@keyframes aurora-gripe-pulse { from { box-shadow:0 0 0 0 #80000059; } to { box-shadow:0 0 0 14px #80000000; } }
@media (prefers-reduced-motion: reduce) { .aurora-gripe-panel, .aurora-gripe-marker { animation:none; } .aurora-gripe, .aurora-gripe-layer, .aurora-gripe-box { transition:none; } }
@media(max-width:680px) { .aurora-gripe { right:18px; bottom:74px; } .aurora-gripe-panel { max-height:calc(100dvh - 140px - env(safe-area-inset-bottom)); }
  /* On phones the Support pill shrinks to a round button so it covers less of the page. */
  .aurora-gripe-button { width:44px; padding:0; } .aurora-gripe-button > span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; } }

/* aurora-consolidated.css */
:root {
  --bg: #f8f5f3;
  --surface: #fff;
  --ink: #211a19;
  --muted: #645b57;
  --secondary: var(--muted);
  --accent: #800000;
  --line: #ded4cf;
  --berry: #800000;
  --berry-dark: #5f0000;
  --rose: #f4e9e6;
  --surface-soft: #f4f0ee;
  --surface-accent: #f8eeeb;
  --line-strong: #cdbfba;
}

body { background: var(--bg); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.project-cover-settings { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.project-cover-settings summary { min-height: 44px; padding-block: 10px; color: var(--muted); font-size: 13px; cursor: pointer; }
.project-cover-settings .actions { flex-wrap: wrap; margin-top: 12px; }
.project-cover-settings .small-text { text-align: left; }
.aurora-skip { position: fixed; top: 8px; left: 12px; z-index: 1000; padding: 12px 16px; border-radius: 6px; background: #800000; color: #fff; transform: translateY(-160%); }
.aurora-skip:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }
#aurora-main { scroll-margin-top: 140px; }
#aurora-main[tabindex="-1"]:focus,
#aurora-main h1[tabindex="-1"]:focus { outline: none; }
.breadcrumb,
.breadcrumb a,
.footer,
.footer a,
.search input::placeholder,
input::placeholder,
textarea::placeholder { color: var(--muted); opacity: 1; }
.footer { font-size: 12px; }
.footer button { font-size: inherit; }
.project-card .card-info,
.project-detail-copy,
.list-row > *,
.person > * { min-width: 0; overflow-wrap: anywhere; }
.project-heading h1, .workspace-identity h3, .page-title h1 { overflow-wrap: anywhere; }
.project-heading > div:first-child,.modal-title h2 { min-width: 0; overflow-wrap: anywhere; }
.project-feedback { scroll-margin-top: 145px; }
.form-error:focus-visible { outline: 2px solid #800000; outline-offset: 4px; }
.page { padding-top: 34px; }
.page-title { align-items: center; margin-bottom: 24px; }
.page-title h1,
.workspace-content .page-title h1 { font-size: 32px; line-height: 1.15; }
.page-title p,
.workspace-content .page-title p { margin-top: 8px; font-size: 14px; }
.breadcrumb { margin-bottom: 20px; }

.workspace {
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: calc(100svh - 78px);
  background: var(--bg);
}
.sidebar { gap:24px; padding:24px 16px; background:#fcfaf9; }
.workspace-identity { padding: 4px 10px 20px; }
.workspace-identity .avatar { margin-bottom: 12px; }
.workspace-identity h3 { font-size: 20px; line-height: 1.25; }
.workspace-identity p { margin-top: 5px; font-size: 12px; }
.workspace-content {
  min-width: 0;
  width:100%;
  max-width:1120px;
  box-sizing:border-box;
  margin:0 auto;
  padding:32px 48px 64px;
}
.workspace-content .page-title { margin-bottom: 24px; }
.workspace-content .panel { border-radius: 9px; box-shadow: none; }
.workspace-content .panel h2 { font-size: 20px; line-height: 1.3; }

.journey-start-form { max-width: 920px; gap: 20px; padding: 24px; }
.journey-start-form textarea { height: 220px; min-height: 210px; line-height: 1.65; }
.journey-start-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.journey-team-invite { padding: 24px; }
.workspace-connections > .panel { padding: 24px; }
.workspace-connections h2 { font-size: 20px; }
.workspace-content .journey-optional-details { max-width: 1040px; }

.project-visibility { position: absolute; z-index: 3; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 24px); padding: 7px 10px; border: 1px solid #dfd3ce; border-radius: 6px; background: #fffaf5f5; color: #4e403b; box-shadow: 0 2px 7px #211a1910; font-size: 12px; font-weight: 650; line-height: 1.3; pointer-events: none; }
.project-visibility.is-published { border-color: #bfd3c5; background: #eef7f0f5; color: #285c3e; }
.project-visibility .icon { width: 14px; height: 14px; flex: none; }
.preview-placeholder > :first-child {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 58px;
  padding-inline: 12px;
  border: 1px solid #e0cec7;
  border-radius: 12px;
  background: #fff9;
  font-family: var(--heading);
  font-size: 27px;
  font-weight: 600;
}
.preview-placeholder > :last-child { color: #66554f; font-size: 12px; }

.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, .44fr) minmax(0, .56fr);
  align-items: start;
  gap: 42px;
  margin-bottom: 38px;
}
.project-detail-layout > * { min-width: 0; }
.project-detail-visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}
.project-detail-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f3f1;
}
.project-detail-visual > .btn { margin-top: 14px; min-height: 46px; }
.project-detail-visual > .small-text { margin-top: 7px; color: var(--muted); text-align: center; }
.project-detail-visual .preview-placeholder { display: grid; place-content: center; width: 100%; height: auto; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 10px; background: #f7f3f1; color: #800000; font: 52px var(--heading); }
.project-detail-copy { padding-block: 2px; }
.project-detail-copy .project-heading { display: block; margin-bottom: 22px; }
.project-detail-copy h1 { margin: 9px 0 12px; font-size: 36px; line-height: 1.15; }
.project-detail-copy > h2 { margin-bottom: 12px; font-size: 23px; line-height: 1.3; letter-spacing: -.025em; }
.project-detail-copy p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.project-detail-team { margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.project-detail-team h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 15px; font-size: 20px; line-height: 1.3; }
.project-detail-team .stack { display: grid; gap: 14px; }
.project-detail-team .person { min-width: 0; }
.project-detail-copy .actions { margin-top: 20px; }
.project-detail-copy .project-section { margin-bottom: 24px; }
.project-detail-copy .section-heading { margin-bottom: 12px; }
.project-detail-copy .section-heading h2 { font-size: 20px; }
.project-feedback { max-width: 860px; padding-top: 28px; border-top: 1px solid var(--line); }
.project-feedback .section-heading { margin-bottom: 14px; }
.project-feedback .section-heading h2 { font-size: 23px; }
.project-feedback .comment-form { margin-top: 18px; }
.project-feedback .comment-form textarea { min-height: 108px; }
.project-feedback .comment-body { overflow-wrap: anywhere; }

@media (min-width: 761px) and (max-width: 1100px) {
  .workspace-content { padding-inline: 28px; }
  .project-detail-layout { gap: 28px; }
}

@media (max-width: 760px) {
  .page { padding-top: 26px; }
  .page-title { gap: 16px; margin-bottom: 22px; }
  .page-title h1,
  .workspace-content .page-title h1 { font-size: 29px; }
  .workspace { grid-template-columns: minmax(0, 1fr); min-height: calc(100svh - 70px); }
  .sidebar { display: block; padding: 0; background: #fff; }
  .workspace-identity { display: none; }
  .workspace-content { padding: 23px 20px 48px; }
  .workspace-content .page-title { margin-bottom: 20px; }
  .workspace-content .page-title p { font-size: 13px; }
  .workspace-content .panel,
  .journey-team-invite { padding: 20px; }
  .journey-start-form { gap: 19px; padding: 20px; }
  .journey-start-form textarea { height: 230px; min-height: 205px; }
  .journey-start-form :is(input, textarea, select) { font-size: 16px; }
  .workspace-connections > .panel { padding: 20px; }
  .project-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 28px; }
  .project-detail-copy h1 { font-size: 31px; }
  .project-detail-copy > h2 { font-size: 22px; }
  .project-detail-copy .project-heading { margin-bottom: 18px; }
  .project-feedback { padding-top: 24px; }
}

@media (max-width: 540px) {
  .project-detail-copy .actions { gap: 9px; }
  .project-detail-copy .actions .btn { min-height: 44px; }
  .journey-start-form .form-actions > .btn { flex: 1 1 100%; justify-content: center; }
}

#team-invite-panel > summary { display:flex; align-items:center; gap:12px; min-height:44px; cursor:pointer; font-weight:600; font-size:19px; }
#team-invite-panel > summary::after { content:'+'; margin-left:auto; font-size:24px; color:var(--muted); font-weight:400; }
#team-invite-panel[open] > summary { margin-bottom:16px; }
#team-invite-panel[open] > summary::after { content:'−'; }
.platform-management .ps-roster { padding:0; max-width:none; }
.platform-management .ps-roster .ps-member-list { margin:0; }
.platform-management .ps-roster .ps-member { position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:16px 0; }
.platform-management .ps-roster .ps-member:first-child { padding-top:0; }
.platform-management .ps-roster .ps-member:last-child { border-bottom:0; }
.platform-management .ps-roster .ps-person { min-width:0; flex:1 1 120px; gap:12px; }
.platform-management .ps-roster .ps-person strong { margin:0; font-size:15px; }
.platform-management .ps-roster .ps-avatar { width:40px; height:40px; background:#f1ece9; border:0; font-size:15px; color:#66554e; }
.platform-management .ps-roster .ps-you { font-size:13px; color:var(--muted); }
.platform-management .ps-roster .ps-level { font-size:13px; background:transparent; color:var(--muted); border:0; padding:0; }
.platform-management .ps-roster .ps-help { font-size:13px; }
.platform-management .ps-roster .ps-role-help { padding-top:12px; margin-top:8px; border-top:1px solid var(--line); }
.platform-management .ps-roster .ps-role-help summary { cursor:pointer; font-size:13px; color:var(--muted); min-height:36px; }
.platform-management .ps-roster .ps-role-help p { margin:8px 0 0; }
.ps-member-menu { display:contents; }
/* Chrome wraps the open menu in its own box; unwrap it so the options drop below the row. */
.ps-member-menu::details-content { display:contents; }
.ps-member-menu > summary { display:flex; align-items:center; justify-content:center; cursor:pointer; min-width:44px; min-height:44px; padding:0 12px; border-radius:8px; color:var(--muted); }
.ps-member-menu > summary:hover { background:var(--surface-soft); color:var(--ink); }
.ps-member-menu > summary::-webkit-details-marker { display:none; }
.ps-member-menu > .ps-member-options { flex:0 0 100%; padding:16px; border:1px solid var(--line); border-radius:8px; background:var(--surface-soft); }
.ps-member-menu:not([open]) > .ps-member-options { display:none; }
.platform-management .ps-roster .ps-member-form { width:100%; max-width:none; margin-bottom:12px; }
.platform-management .ps-roster .ps-member-form fieldset { display:grid; grid-template-columns:minmax(0,1fr) auto; }
.platform-management .ps-roster .ps-member-form label { grid-column:1/-1; font-size:13px; }
.platform-management .ps-roster .ps-member-actions { margin:0; }
.platform-management .ps-roster .ps-member-options .btn { color:var(--ink); background:#fff; font-size:13px; }
.ps-member-form.ps-member-demotion,
.platform-management .ps-roster .ps-member-demotion { flex:0 0 auto; width:auto; min-width:0; margin:0; }
.ps-member-form.ps-member-demotion fieldset { display:block; }
.ps-member-demotion .btn { font-size:13px; }
.project-editor-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,280px); gap:24px; align-items:start; }
.project-editor-grid > .journey-start-form { width:100%; margin:0; padding:24px; box-sizing:border-box; }
.project-editor-grid .form-field label { font-size:15px; }
.project-editor-grid textarea { font-size:16px; line-height:1.7; }
.project-editor-grid .journey-optional-details { border-top:1px solid var(--line); }
.project-editor-grid .journey-optional-details > summary { min-height:44px; cursor:pointer; display:flex; align-items:center; font-size:14px; }

.editor-metadata-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.editor-metadata-fields > :last-child { grid-column:1/-1; }
.project-edit-conflict { padding:24px; margin-bottom:24px; border:1px solid #d6ac88; border-radius:12px; background:#fff8ed; }
.project-edit-conflict h2 { font-size:19px; margin:0 0 12px; }
.project-edit-conflict > p { font-size:15px; line-height:1.6; margin:0 0 16px; }
.project-edit-conflict summary { min-height:44px; cursor:pointer; }
.project-edit-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:16px 0; overflow-wrap:anywhere; }
.project-edit-comparison h3 { font-size:15px; margin:0 0 12px; }
.project-edit-comparison p { max-height:280px; overflow:auto; font-size:14px; line-height:1.6; }
.aurora-route-skeleton { min-height:55vh; animation:none; }
.aurora-route-skeleton.workspace-content { width:100%; max-width:none; margin:0; }
.aurora-route-skeleton .page-title { margin-bottom:8px; }
.route-skeleton-status { margin:0 0 28px; color:var(--muted); font-size:14px; }
.route-skeleton-content { display:grid; gap:24px; min-width:0; }
.route-skeleton-content * { box-sizing:border-box; min-width:0; }
.route-skeleton-panel { padding:24px; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.route-skeleton-line,.route-skeleton-field,.route-skeleton-preview,.route-skeleton-avatar,.route-skeleton-upload { background:var(--surface-soft); border-radius:5px; }
.route-skeleton-line { width:100%; height:12px; margin:0 0 13px; }
.route-skeleton-line:last-child { margin-bottom:0; }
.route-skeleton-line.route-skeleton-medium { width:62%; height:18px; }
.route-skeleton-line.route-skeleton-short { width:38%; }
.route-skeleton-lines { margin-block:22px; }
.route-skeleton-lines:last-child { margin-bottom:0; }
.route-skeleton-field { height:44px; width:100%; }
.route-skeleton-preview { width:100%; aspect-ratio:16/10; }
.route-skeleton-catalog,.route-skeleton-project-list,.route-skeleton-publish,.route-skeleton-feedback,.route-skeleton-overview { display:grid; gap:24px; }
.route-skeleton-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.route-skeleton-grid>.route-skeleton-panel { padding:0; overflow:hidden; }
.route-skeleton-card-copy { padding:20px; }
.route-skeleton-project { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr); gap:24px; align-items:start; }
.route-skeleton-rows { display:grid; }
.route-skeleton-person { display:flex; align-items:center; gap:16px; padding-block:20px; }
.route-skeleton-person+.route-skeleton-person { border-top:1px solid var(--line); }
.route-skeleton-person>div:last-child { flex:1; }
.route-skeleton-avatar { flex:0 0 42px; height:42px; border-radius:50%; }
.route-skeleton-project-list>.route-skeleton-rows { padding-inline:24px; background:var(--surface); border:1px solid var(--line); border-radius:8px; }
.route-skeleton-files { display:grid; grid-template-columns:minmax(150px,1fr) minmax(0,3fr); gap:20px; }
.route-skeleton-editor { min-height:300px; }
.route-skeleton-document { min-height:380px; }
.route-skeleton-document>.route-skeleton-lines { margin-top:32px; }
.route-skeleton-fields,.route-skeleton-connections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.route-skeleton-upload { min-height:120px; margin-top:22px; }
@media(max-width:1100px) { .route-skeleton-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:850px) { .route-skeleton-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .route-skeleton-project { grid-template-columns:minmax(0,1fr); } }
@media(max-width:540px) {
 .route-skeleton-grid,.route-skeleton-fields,.route-skeleton-connections { grid-template-columns:minmax(0,1fr); }
 .route-skeleton-panel { padding:18px; }
 .route-skeleton-files { grid-template-columns:minmax(0,1fr); }
 .route-skeleton-files>.route-skeleton-panel:first-child { display:none; }
 .route-skeleton-person { gap:12px; }
 .route-skeleton-status { margin-bottom:22px; }
}
.badge { display:inline-flex; align-items:center; min-height:28px; padding:4px 8px; border-radius:6px; background:var(--surface-soft); color:var(--muted); font-size:13px; }
@media(max-width:1100px) {
 .workspace { grid-template-columns:220px minmax(0,1fr); }
 .workspace-content { padding:28px; }
 .project-editor-grid { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:760px) {
 .workspace { grid-template-columns:minmax(0,1fr); }
 .sidebar { display:block; padding:12px 16px; border-bottom:1px solid var(--line); }
 .workspace-identity { display:none; }
 .workspace-content { padding:24px 16px 48px; }
 .project-editor-grid { gap:16px; }
 .project-editor-grid > .journey-start-form { padding:20px; }
 .project-edit-comparison, .editor-metadata-fields { grid-template-columns:minmax(0,1fr); }
 .workspace :is(input:not([type=checkbox]),textarea,select),.discover-page :is(input,select),.feedback-layout select { font-size:16px; }
 .list-row:has(.actions) { flex-wrap:wrap; gap:14px; }
}

.feedback-thread + .feedback-thread { margin-top:16px; }
.feedback-thread > .feedback-response { margin:0 0 16px 28px; padding-left:20px; border-left:2px solid #e8dfdc; }
.feedback-reply { margin-top:14px; }
.feedback-reply > summary { min-height:44px; box-sizing:border-box; display:flex; align-items:center; color:#800000; font-weight:600; cursor:pointer; width:fit-content; padding:8px 0; }
.feedback-reply .comment-form { margin-top:12px; }
.feedback-reply label { display:block; margin-bottom:8px; font-weight:600; }
.feedback-reply .actions { justify-content:space-between; flex-wrap:wrap; }
@media(max-width:600px) { .feedback-thread > .feedback-response { margin-left:12px; padding-left:12px; } }

.breadcrumb { flex-wrap: wrap; gap: 12px; }
.workspace-content > details.panel > summary { display:flex; align-items:center; min-height:44px; cursor:pointer; }
a.aurora-back, a.back-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:4px 0; border:0; border-radius:4px; background:transparent; color:var(--muted); font-size:14px; font-weight:500; text-decoration:none; }
a.aurora-back .icon { width: 21px; height: 21px; flex-shrink: 0; }
a.aurora-back:hover, a.back-link:hover { background:transparent; color:var(--ink); text-decoration:underline; }
a.aurora-back:focus-visible, a.back-link:focus-visible { outline: 3px solid #800000; outline-offset: 3px; }
.join-project-search { max-width:520px; margin:0 0 24px; }
.join-project-search input { width:100%; min-height:48px; padding:12px 16px; border:1px solid #e4dad7; border-radius:8px; background:#fff; color:#302625; font:inherit; }
.join-project-search input:focus-visible { outline:2px solid #800000; outline-offset:2px; }
.join-project-count { margin:0 0 20px; }
.join-project-roles { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 20px; }

.join-search-label { display:block; margin-bottom:8px; font-size:13px; font-weight:600; }
.card-title-line .pill { flex-shrink:0; white-space:nowrap; }
.my-project-groups { display:grid; gap:46px; }
.my-project-group { min-width:0; }
.my-project-group-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.my-project-group-heading h2 { margin:0; font-size:18px; }
.my-project-group-heading span { color:var(--muted); font-size:14px; }

.project-settings-page h1 { margin:0; font-size:32px; line-height:1.2; overflow-wrap:anywhere; text-wrap:balance; }

.journey-member-search > summary { display:flex; align-items:center; min-height:44px; font-size:13px; color:var(--muted); cursor:pointer; }
.journey-member-search > summary::before { content:'›'; margin-right:9px; font-size:20px; line-height:1; }
.journey-member-search[open] > summary::before { transform:rotate(90deg); }

.document-canvas { max-width:1120px; margin:0 auto; padding:30px 36px 64px; }
.document-canvas .brainstorm-shell { max-width:none; border:1px solid #e1dad6; border-radius:3px; box-shadow:0 2px 5px #35221c05; }
.document-canvas .brainstorm-shell .brainstorm-toolbar.ql-toolbar.ql-snow { background:#fff; }
.document-canvas .brainstorm-shell .ql-container.ql-snow .ql-editor.brainstorm-editor { min-height:65svh; padding:48px clamp(25px,6vw,88px) 70px; }
.document-canvas .brainstorm-shell .ql-container.ql-snow .ql-editor.ql-blank::before { left:clamp(25px,6vw,88px); right:clamp(25px,6vw,88px); }

.feedback-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr); gap:38px; align-items:start; }
.feedback-inbox,.feedback-notes { min-width:0; }
.feedback-notes { padding-left:30px; border-left:1px solid var(--line); }
.feedback-layout .project-section { margin:0; }
.feedback-layout .section-heading { margin-bottom:18px; }
.feedback-layout .comment-form { margin-top:18px; padding:18px; border:1px solid var(--line); border-radius:9px; }
.feedback-layout .comment-form textarea { min-height:150px; }

.project-settings-page { max-width:960px; }
.project-settings-page > header { margin-bottom:34px; }
.project-settings-page > header p { margin-top:8px; color:var(--muted); font-size:14px; overflow-wrap:anywhere; }
.settings-row { display:flex; justify-content:space-between; align-items:center; gap:25px; padding:26px 0; border-top:1px solid var(--line); }
.settings-row > div { min-width:0; }
.settings-row > div:first-child { max-width:55ch; }
.settings-row h2 { margin:0 0 7px; font-size:16px; line-height:1.4; }
.settings-row p { margin:0; max-width:54ch; font-size:13px; line-height:1.7; color:var(--muted); }
.settings-row > :last-child { flex-shrink:0; }
.settings-row > div:last-child:not(:first-child) { display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.settings-row > div.person:last-child { flex-direction:row; align-items:center; }
.settings-row .person strong { font-size:14px; }
.settings-row .text-link { display:inline-flex; align-items:center; gap:7px; min-height:44px; font-size:13px; }
.settings-archive { margin-top:26px; }
.settings-archive h2 { color:#800000; }
.hosting-text-button { min-height:44px; padding:10px 12px; border:0; border-radius:6px; background:transparent; color:#800000; font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.hosting-text-button:hover { background:#f8efec; }
.hosting-text-button:focus-visible { outline:2px solid #800000; outline-offset:2px; }

@media (max-width:1100px) {
 .feedback-layout { grid-template-columns:minmax(0,1fr); gap:34px; }
 .feedback-notes { border-left:0; border-top:1px solid var(--line); padding:28px 0 0; }
}
@media(max-width:760px) {
 .project-settings-page h1 { font-size:28px; }
 .document-canvas { padding:16px 12px 36px; }
 .document-canvas .brainstorm-shell .ql-container.ql-snow .ql-editor.brainstorm-editor { min-height:63svh; padding:26px 22px 44px; }
 .document-canvas .brainstorm-shell .ql-container.ql-snow .ql-editor.ql-blank::before { left:22px; right:22px; }
 .settings-row { flex-wrap:wrap; gap:12px; }
 .settings-row > div:last-child:not(:first-child) { align-items:flex-start; }
 .settings-row > :last-child { max-width:100%; }
 .settings-row > div.person:last-child { flex-wrap:wrap; }
}

/* Restrained visual hierarchy: warm canvas, clear task surfaces, labeled icons. */
.heading-with-icon,
.card-maker,
.workspace-content > details.panel > summary {
  display: flex;
  align-items: center;
}
.heading-with-icon { gap: 8px; }
.heading-with-icon .icon { width: 17px; height: 17px; color: var(--berry); }

.pill.status::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill.status { border-color: #dfc4bf; background: #f7ebe8; color: #761414; }
.pill.status.green { border-color: #bfd5c7; background: #e8f1eb; color: #2f6348; }
.pill.status.amber { border-color: #e4cc9d; background: #fbf0dc; color: #79501d; }
.pill.status.blue { border-color: #bfd1dc; background: #e9f1f6; color: #2f5a72; }

.discover-page .directory-tools {
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px #2c19150a, 0 10px 28px #2c191508;
}
.discover-page .search,
.discover-page .sort-select { background: #fbf9f8; border-color: var(--line-strong); }
.discover-page .search .icon { color: var(--berry); }
.discover-page .search-line { margin-bottom: 16px; }
.discover-page .browse-lower { border-bottom: 0; flex-wrap: wrap; gap: 12px; }
.discover-page .categories { margin: 0; }
.discover-page #result-count { margin-left: auto; }
.discover-page .category { border-color: transparent; background: #f3efed; color: #554b47; }
.discover-page .category:hover { border-color: #cdbfba; background: #fff; }
.discover-page .category.active { border-color: var(--berry); background: var(--berry); color: #fff; }

.project-card:not(.private-project) {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px #2c19150a, 0 9px 24px #2c191508;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.project-card:not(.private-project):is(:hover, :focus-within) {
  border-color: #c9b7b1;
  box-shadow: 0 2px 4px #2c19150d, 0 14px 32px #2c19150d;
}
.project-card:not(.private-project) .card-preview {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 11px 11px 0 0;
}
.project-card:not(.private-project) .preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface-soft);
  color: var(--berry);
}
.project-card:not(.private-project) .card-info { padding: 16px 16px 14px; }
.project-card:not(.private-project) .card-info > p {
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.project-card:not(.private-project) .card-title-line { align-items: flex-start; }
.project-card:not(.private-project) .card-title-line :is(h2, h3) { font-size: 21px; }
.project-card:not(.private-project) .card-bottom { min-height: 45px; }
.card-maker { min-width: 0; gap: 6px; }
.card-maker .icon { width: 15px; height: 15px; color: var(--berry); }

.project-page .project-detail-team {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.project-page .project-detail-team h3 .icon { width: 18px; height: 18px; color: var(--berry); }
.project-page .project-feedback { max-width: 860px; padding: 28px 0 0; }

.workspace-content .panel {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 1px 2px #2c191508, 0 8px 22px #2c191506;
}
.feedback-inbox,
.feedback-notes {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.feedback-inbox { background: #fff; }
.feedback-notes { background: var(--surface-accent); }
.settings-row:first-child { border-top: 0; }
.settings-archive {
  padding: 22px;
  border: 1px solid #dcc5bf;
  border-radius: 12px;
  background: #fbf3f1;
}
.workspace-content > details.panel > summary { gap: 9px; font-weight: 600; }
.workspace-content > details.panel > summary .icon { width: 17px; height: 17px; color: var(--berry); }
.journey-step-short { display: none; }

@media (max-width: 1100px) {
  .feedback-notes { padding: 24px; border: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .discover-page .directory-tools { padding: 14px; }
  .project-card:not(.private-project) .card-info > p { min-height: 0; -webkit-line-clamp: 3; }
  .project-page .project-detail-team { padding: 20px; }
  .project-page .project-feedback { padding-top: 24px; }
  .feedback-inbox,
  .feedback-notes { padding: 20px; }
  .sidebar .journey-progress .journey-step {
    min-height: 46px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 7px;
  }
  .sidebar .journey-progress .journey-step strong { font-size: 11px; }
  .journey-step-long { display: none; }
  .journey-step-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card:not(.private-project) { transition: none; }
}

.project-card .card-preview { aspect-ratio:16/9; }
.project-card .card-info > p { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.preview-placeholder.cover-tone-0 { background:linear-gradient(135deg,#e9e3dd,#d4c7be); }
.preview-placeholder.cover-tone-1 { background:linear-gradient(135deg,#dce6e1,#bdceca); }
.preview-placeholder.cover-tone-2 { background:linear-gradient(135deg,#e8dce2,#d1bec8); }
.preview-placeholder.cover-tone-3 { background:linear-gradient(135deg,#dfe3ec,#becbdc); }
.preview-placeholder[class*=cover-tone] > :first-child { border:0; background:transparent; color:#3d3337; font-size:clamp(32px,4vw,56px); }
.preview-placeholder[class*=cover-tone] > :last-child { font-size:13px; color:#50464a; }
.project-compare-metadata { font-size:13px; margin-top:16px; }
.project-compare-metadata > div { display:grid; grid-template-columns:90px minmax(0,1fr); gap:8px; padding:6px 0; }
.project-compare-metadata dt { color:var(--muted); }
.project-compare-metadata dd { margin:0; }
.footer nav { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.footer nav > * { display:inline-flex; align-items:center; min-height:44px; margin:0; padding:0; color:var(--muted); font-size:13px; font-weight:400; }

.workspace-content .text-link { color:var(--ink); font-size:14px; }
.workspace-content .text-link:hover { text-decoration:underline; }
.workspace-content .pill { font-size:13px; }

.journey-build-location .studio-heading h2,
.journey-build-location .studio-claude-actions,
.journey-build-location .studio-manual-handoff,
.journey-build-location .studio-github,
.journey-build-location .studio-footer > span:not([id]) { display:none; }

@media(min-width:761px) {
 .sidebar { position:sticky; top:80px; align-self:start; height:calc(100svh - 80px); box-sizing:border-box; overflow-y:auto; }
}
@media(min-width:761px) and (max-width:1000px) {
 .sidebar { top:131px; height:calc(100svh - 131px); }
}

/* platform-management.css */
.access-root { max-width: 1040px; min-width: 0; margin: 0 auto; padding: 24px 0 40px; color: var(--ink); }
.access-root h1, .access-root h2, .access-root h3, .access-root p { margin: 0; }
.access-root h1 { font-size: 26px; letter-spacing: -.7px; }
.access-root h2 { font-size: 15px; letter-spacing: -.2px; }
.access-root h3 { font-size: 14px; }
.access-root .btn { min-height: 44px; height: auto; padding: 10px 14px; white-space: normal; }
.access-root button:disabled, .access-root fieldset:disabled { opacity: .6; }
.access-root :is(button, a, input, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.access-breadcrumb a, .access-text-button { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; }
.access-breadcrumb a:hover, .access-text-button:hover { text-decoration-color: currentColor; }
.access-breadcrumb { margin-top: -14px; margin-bottom: 9px; }
.access-heading, .access-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.access-heading { margin-bottom: 22px; }
.access-heading .access-help { margin-top: 5px; }
.access-help, .access-email, .access-role, .access-invitation-expiry { font-size: 12px; color: var(--secondary); line-height: 1.6; }
.access-invite { padding: 20px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; }
.access-invite-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.access-invite-heading .access-help { margin-top: 3px; }
.access-symbol { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.access-root fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.access-form-fields { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) auto; align-items: end; gap: 12px; }
.access-project .access-form-fields { grid-template-columns: minmax(0,1fr) auto; }
.access-form-fields label { display: block; min-width: 0; font-size: 12px; font-weight: 600; }
.access-form-fields label span { font-weight: 400; color: var(--secondary); }
.access-root input, .access-root select { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 7px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--white); font: inherit; font-weight: 400; font-size: 13px; }
.access-root input::placeholder { color: var(--secondary); opacity: .85; }
.access-invite fieldset > .access-help { margin-top: 10px; }
.access-section { margin-top: 26px; }
.access-section-heading { justify-content: flex-start; margin-bottom: 12px; }
.access-section-heading > .access-text-button { margin-left: auto; }
.access-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; color: var(--secondary); background: var(--wash); border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
.access-list { border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; }
.access-row { display: grid; grid-template-columns: minmax(0,1fr) 80px 88px 106px; gap: 8px 16px; align-items: center; padding: 12px 16px; min-height: 72px; }
.access-row + .access-row { border-top: 1px solid var(--line); }
.access-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.access-identity > div, .access-invitation-person { min-width: 0; }
.access-identity strong, .access-invitation-person strong { display: block; font-size: 13px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.access-avatar { display: grid; place-items: center; width: 33px; height: 33px; flex: none; border-radius: 50%; background: var(--wash); color: var(--secondary); border: 1px solid var(--line); font-size: 12px; }
.access-email { display: block; overflow-wrap: anywhere; }
.access-you { margin-left: 8px; font-size: 10px; color: var(--secondary); font-weight: 400; }
.access-status { justify-self: start; border: 1px solid var(--line); background: var(--wash); color: var(--secondary); padding: 4px 7px; border-radius: 5px; font-size: 10px; line-height: 1.25; }
.access-status-active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-soft); }
.access-row-actions { display: flex; flex-direction: column; align-items: flex-end; justify-self: end; }
.access-text-button { padding: 10px 0; }
.access-invitation-row { grid-template-columns: minmax(0,1fr) 88px 106px; }
.access-invitation-person .access-help { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.access-invitation-expiry { grid-column: 1 / -1; margin-top: -6px !important; font-size: 11px; }
.access-invitations-note, .access-truncated { margin-top: 10px !important; }
.access-share { margin-top: 16px; padding: 16px 20px; border-left: 3px solid var(--accent); border-radius: 0 9px 9px 0; background: var(--accent-soft); }
.access-share .access-section-heading { margin-bottom: 0; }
.access-share-controls { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.access-share-controls input { margin-top: 0; }
.access-share-controls .btn { flex: none; }
.access-copy-notice { min-height: 20px; margin-top: 9px !important; font-size: 12px; line-height: 1.5; color: var(--accent); }
.access-confirm { grid-column: 1 / -1; background: var(--wash); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.access-confirm p { margin-top: 5px; font-size: 12px; line-height: 1.6; color: var(--secondary); }
.access-confirm-account { overflow-wrap: anywhere; }
.access-confirm-account strong { color: var(--ink); }
.access-delete-label { display: block; max-width: 280px; margin-top: 12px; font-size: 14px; }
.access-root [data-access-action="delete"] { color: #a32626; font-size: 14px; }
.access-root .access-danger { color: #fff; background: #a32626; border-color: #a32626; font-size: 14px; }
.access-root .access-danger:hover { background: #842020; border-color: #842020; }
.access-root [data-access-delete-form] :is(p, h3, input) { font-size: 16px; }
.access-root [data-access-delete-form] .btn { font-size: 14px; }
.access-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.access-error { margin-bottom: 16px; border: 1px solid var(--accent-soft); border-radius: 8px; background: var(--accent-soft); color: var(--accent); padding: 14px; font-size: 13px; line-height: 1.6; }
.access-error p + p { margin-top: 4px; }
.access-error .btn { margin-top: 10px; }
.access-notice { padding: 12px 0; font-size: 13px; line-height: 1.6; }
.access-loading { padding: 0 0 16px; }
.access-empty { padding: 22px 16px; font-size: 13px; line-height: 1.6; color: var(--secondary); }
@media(max-width:700px) {
  .access-root { padding-top: 16px; }
  .access-root h1 { font-size: 23px; }
  .access-form-fields, .access-project .access-form-fields { grid-template-columns: 1fr; }
  .access-form-fields > .btn { justify-self: start; }
  .access-root input, .access-root select { font-size: 16px; }
  .access-invite { padding: 16px; }
  .access-row { grid-template-columns: minmax(0,1fr) auto; gap: 6px 10px; padding: 14px; }
  .access-identity { grid-column: 1 / -1; }
  .access-role { grid-column: 1; margin-left: 44px; }
  .access-row:not(.access-invitation-row) > .access-status { grid-column: 1; margin-left: 44px; }
  .access-row-actions { grid-column: 2; grid-row: 2 / 4; align-self: center; }
  .access-invitation-person { grid-column: 1 / -1; }
  .access-invitation-row > .access-status { grid-column: 1; }
  .access-invitation-row .access-row-actions { grid-row: 2; }
  .access-invitation-expiry { margin-top: 0 !important; }
  .access-share { padding: 12px 14px; }
  .access-share-controls { flex-wrap: wrap; }
  .access-share-controls .btn { width: 100%; }
}
@media(prefers-reduced-motion:reduce) {
  .access-root button, .access-root a { transition: none; }
}

.signin-entry { max-width: 480px; margin: 8px auto 0; padding: 28px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.signin-entry .ko-heading { margin-bottom: 14px; }
.signin-entry > .ko-link:first-child { margin-bottom: 16px; }
.signin-entry h1 { font-size: 25px; }
.signin-entry > .ko-link { margin-bottom: 15px; }
.signin-entry .ko-actions { margin-top: 1px; }
[data-entry-signin-options]:empty { display: none; }
.signin-entry .ko-actions > button { width: 100%; min-height: 44px; }
.signin-entry .ko-config-note { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 22px; }
.signin-entry .ko-config-note summary { min-height: 34px; }
.signin-google.ko-button { width: 100%; min-height: 44px; font-size: 13px; }
.signin-google-mark { font-size: 16px; font-weight: 650; }
.signin-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--secondary); font-size: 11px; }
.signin-divider:before, .signin-divider:after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ko-form label.signin-remember, label.signin-remember { display: flex; flex-direction: row; align-items: flex-start; gap: 9px; min-height: 42px; font-size: 12px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.signin-remember input[type="checkbox"] { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); }
.signin-option-status { color: var(--secondary); font-size: 12px; margin: 0 0 17px; }
.signin-text-button { display: inline; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.signin-notice { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 14px; margin: 0 0 20px; font-size: 12px; line-height: 1.6; }
.signin-account { max-width: 720px; margin: 0 auto; }
.signin-account > .ko-link:first-child { margin-bottom: 18px; }
.signin-account .ko-heading { margin-bottom: 25px; }
.signin-account-identity { display: flex; align-items: center; gap: 13px; padding: 18px 0 24px; }
.signin-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; background: var(--accent-soft); color: var(--accent); border: 1px solid #ead9d9; border-radius: 50%; font-size: 17px; }
.signin-account-identity strong { font-size: 15px; }
.signin-account-identity p { color: var(--secondary); font-size: 12px; overflow-wrap: anywhere; }
.signin-account-section { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 0; border-top: 1px solid var(--line); }
.signin-account-section > div { min-width: 0; flex: 1 1 260px; }
.signin-account-section h2 { margin-bottom: 5px; font-size: 15px; }
.signin-account-section p { color: var(--secondary); font-size: 12px; }
.signin-account-section .signin-provider-email { margin-top: 8px; color: var(--ink); overflow-wrap: anywhere; }
.signin-connected { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); background: var(--accent-soft); font-size: 11px; padding: 6px 9px; border-radius: 6px; }
.signin-connected:before { content: '✓'; }
.signin-section-help { flex-basis: 100%; margin-top: 7px; }
.signin-account-footer { color: var(--secondary); border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; }
.signin-account button:focus-visible, .signin-account a:focus-visible, .signin-entry .signin-text-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media(max-width:650px) {
  .signin-entry { margin-top: 0; padding: 23px 20px; }
  .signin-entry h1 { font-size: 23px; }
  .signin-account-section { align-items: flex-start; gap: 9px; }
  .signin-account-section > div { flex-basis: 100%; }
}

.signin-entry .signin-recovery-primary { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 20px; text-decoration: none; }

.workspace-main.is-settings { display:block; padding:0; }
.workspace-main.is-settings > .workspace-side { display:none; }
.workspace-settings-link[aria-current="page"] { color:var(--accent); background:var(--accent-soft); border-color:#dfc6c6; }
.workspace-people { flex-wrap:wrap; }
.project-settings-shortcut { display:flex; align-items:center; justify-content:center; min-height:44px; font-size:12px; font-weight:600; color:var(--accent); text-decoration:none; }
.project-settings-shortcut:hover { text-decoration:underline; text-underline-offset:3px; }
.project-settings-shortcut:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.ps-root { padding: 26px 28px 36px; max-width: 1040px; min-width: 0; }
.ps-heading,.ps-heading-actions,.ps-actions,.ps-roles-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.ps-heading { margin-bottom:22px; }
.ps-heading h2 { font-size:20px; letter-spacing:-.5px; margin:0 0 7px; }
.ps-root p,.ps-root strong,.ps-root h3,.ps-root h4 { overflow-wrap:anywhere; }
.ps-root .btn { min-height:44px; height:auto; padding:10px 14px; white-space:normal; }
.ps-help { font-size:12px; line-height:1.65; color:var(--secondary); margin:0; }
.ps-sections { display:flex; flex-wrap:wrap; gap:4px; border-bottom:1px solid var(--line); padding-bottom:10px; margin-bottom:25px; }
.ps-sections button { display:inline-flex; align-items:center; gap:7px; padding:10px 13px; min-height:44px; border:0; border-radius:7px; background:transparent; color:var(--secondary); font:inherit; font-size:12px; cursor:pointer; }
.ps-sections button[aria-pressed="true"] { background:var(--accent-soft); color:var(--accent); font-weight:600; }
.ps-root :focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.ps-root button:disabled { cursor:wait; opacity:.55; }
.ps-panel { max-width:760px; }
.ps-section-heading { margin-bottom:23px; }
.ps-section-heading h3 { display:flex; align-items:center; gap:9px; margin:0 0 7px; font-size:15px; }
.ps-section-heading > p,.ps-section-heading > div > p { color:var(--secondary); font-size:12px; line-height:1.65; margin:0; }
.ps-form fieldset,.ps-member-form fieldset { border:0; padding:0; margin:0; min-width:0; }
.ps-form fieldset { display:grid; gap:20px; }
.ps-form .ps-section-heading { margin-bottom:0; }
.ps-form label { display:grid; gap:8px; min-width:0; font-size:12px; font-weight:600; }
.ps-form label > span { font-weight:400; color:var(--secondary); }
.ps-form input:not([type="checkbox"]),.ps-form textarea,.ps-form select,.ps-member-form select { display:block; width:100%; min-width:0; max-width:100%; min-height:44px; padding:11px 12px; border:1px solid #cfc7c7; border-radius:7px; background:#fff; color:inherit; font:inherit; font-size:13px; font-weight:400; }
.ps-form textarea { resize:vertical; line-height:1.6; }
.ps-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; }
.ps-actions { justify-content:flex-start; flex-wrap:wrap; }
.ps-form .ps-checkbox { display:flex; flex-direction:row; align-items:center; gap:10px; min-height:44px; }
.ps-checkbox input { width:18px; height:18px; margin:0; accent-color:var(--accent); flex:none; }
.ps-count { border:1px solid var(--line); padding:2px 6px; font-size:10px; font-weight:400; border-radius:5px; color:var(--secondary); }
.ps-member-list { list-style:none; padding:0; margin:0 0 15px; }
.ps-member { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:17px 0; border-bottom:1px solid var(--line); }
.ps-person { display:flex; align-items:center; gap:10px; min-width:160px; flex:1; }
.ps-person > div { min-width:0; }
.ps-person strong { display:flex; flex-wrap:wrap; align-items:center; gap:7px; font-size:12px; margin-bottom:4px; }
.ps-person .ps-help { display:block; }
.ps-avatar { display:grid; place-items:center; height:32px; width:32px; flex:none; background:var(--wash); border:1px solid var(--line); border-radius:50%; font-size:12px; color:var(--secondary); }
.ps-you { font-size:10px; font-weight:400; color:var(--accent); }
.ps-team-levels { display:flex; flex-wrap:wrap; gap:8px 18px; font-size:11px; margin-bottom:10px; color:var(--secondary); }
.ps-level-help { max-width:65ch; margin-bottom:8px; }
.ps-level { display:inline-block; font-size:10px; padding:3px 6px; border:1px solid var(--line); border-radius:4px; color:var(--secondary); }
.ps-level-leader { color:var(--accent); background:var(--accent-soft); border-color:#dfc6c6; }
.ps-level-co-leader { background:var(--wash); }
.ps-person .ps-level + .ps-help { margin-top:4px; }
.ps-member-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.ps-member-form { flex:1; min-width:200px; max-width:320px; }
.ps-member-form fieldset { display:flex; gap:8px; align-items:center; }
.ps-member-form .btn { flex:none; font-size:11px; }
.ps-confirm { flex-basis:100%; background:var(--accent-soft); border:1px solid #dfc6c6; border-radius:8px; padding:15px; }
.ps-confirm > p:first-child { font-size:13px; margin:0 0 5px; }
.ps-confirm .ps-actions { margin-top:12px; }
.ps-requests-heading { margin-top:32px; }
.ps-request { display:flex; gap:16px; justify-content:space-between; flex-wrap:wrap; border-bottom:1px solid var(--line); padding:16px 0; }
.ps-request > div:first-child { min-width:0; flex:1; }
.ps-request h4 { font-size:12px; margin:0 0 5px; }
.ps-request-message { font-size:13px; line-height:1.6; white-space:pre-wrap; margin:10px 0 0; }
.ps-empty { font-size:13px; color:var(--secondary); line-height:1.7; padding:15px 0; }
.ps-link { display:inline-flex; align-items:center; min-height:44px; font-size:12px; color:var(--accent); text-decoration:none; margin-top:10px; }
.ps-link:hover { text-decoration:underline; }
.ps-roles-heading h4 { margin:0; font-size:13px; }
.ps-role-list { display:grid; gap:18px; }
.ps-role-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); gap:13px; align-items:start; border:1px solid var(--line); padding:17px; border-radius:9px; }
.ps-role-row > .btn { grid-column:1/-1; justify-self:start; }
.ps-error { color:var(--accent); padding:15px; border:1px solid #dec3c3; border-radius:8px; background:var(--accent-soft); margin-bottom:20px; font-size:13px; line-height:1.6; }
.ps-error p { margin:0 0 10px; }
.ps-notice { padding:12px 14px; background:var(--wash); border-left:3px solid var(--accent); font-size:12px; line-height:1.6; margin:0 0 18px; }
.ps-images { margin-top:26px; padding-top:12px; border-top:1px solid var(--line); }
.ps-images > summary { min-height:44px; padding:12px 0; font-size:13px; font-weight:600; cursor:pointer; }
.ps-image-slots { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:18px; }
.ps-image-form { min-width:0; border:1px solid var(--line); border-radius:8px; padding:14px; }
.ps-image-form fieldset { gap:12px; }
.ps-image-form h4 { font-size:13px; }
.ps-image-preview { display:block; max-width:100%; height:110px; object-fit:contain; object-position:left center; }
.ps-image-icon { width:80px; height:80px; }
.ps-image-form .btn { justify-self:start; font-size:11px; }
@media(max-width:600px) { .ps-image-slots { grid-template-columns:minmax(0,1fr); gap:14px; } }
@media(max-width:800px) {
  .workspace-title { flex-wrap:wrap; }
  .workspace-title > div:not(.workspace-people):not(.team-badge) { min-width:0; flex:1; }
  .workspace-people { display:flex; margin-left:0; flex-basis:100%; justify-content:flex-end; }
  .workspace-people > :not(.workspace-settings-link) { display:none; }
  .workspace-settings-link { min-height:44px; }
  .workspace-people:not(:has(.workspace-settings-link)) { display:none; }
}
@media(max-width:600px) {
  .ps-root { padding:20px 16px 28px; }
  .ps-heading { align-items:flex-start; }
  .ps-heading > .btn { padding:9px 11px; }
  .ps-sections { gap:3px; margin-bottom:22px; }
  .ps-sections button { padding:9px 10px; }
  .ps-fields,.ps-role-row { grid-template-columns:minmax(0,1fr); }
  .ps-heading-actions { flex-direction:column; align-items:flex-start; }
  .ps-member { gap:12px 9px; }
  .ps-member-form { flex-basis:100%; max-width:none; }
  .ps-member-actions { flex-basis:100%; margin-left:42px; }
  .ps-request { flex-direction:column; gap:12px; }
  .team-panel .team-action { display:flex; flex-wrap:wrap; gap:4px 12px; }
  .team-panel .team-action > .project-settings-shortcut { flex:1; }
}


.platform-management {
  --accent: #800000;
  --accent-soft: #f8eeee;
  --ink: #251f1d;
  --secondary: #6e6260;
  --line: #e8dfdc;
  --white: #fff;
  --wash: #faf8f7;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
.platform-management :is(.access-root, .ps-root, .signin-account) { max-width: none; margin: 0; padding: 0; }
.platform-management :is(h1, h2, h3, h4, p) { overflow-wrap: anywhere; }
.platform-management :is(h1, h2, h3, p) { margin-top: 0; }
.platform-management :is(.access-root h1, .ps-heading h2, .signin-account h1, .pm-heading h1) { font: inherit; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.05em; font-weight: 650; margin: 0; }
.platform-management :is(.access-help, .access-email, .access-role, .access-invitation-expiry, .ps-help, .ps-form label, .ps-member-form label, .signin-account p) { font-size: 14px; line-height: 1.65; }
.platform-management :is(.access-root h2, .ps-root h3, .signin-account h2) { font-size: 20px; line-height: 1.25; letter-spacing: -.025em; }
.platform-management :is(.access-heading, .ps-heading, .signin-account .ko-heading) { margin-bottom: 28px; }
.platform-management .access-form-fields { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
.platform-management .access-project .access-form-fields { grid-template-columns: minmax(0, 1fr) auto; }
.platform-management .access-project :is(.access-invite, .access-share, .access-list) { border-radius: 8px; }
.platform-management .access-project .access-invite { margin-top: 28px; }
.platform-management .access-project .access-invite h2 { margin-bottom: 12px; font-size: 17px; }
.platform-management .access-past { margin-top: 18px; }
.platform-management .access-past > summary { display: flex; align-items: center; min-height: 44px; color: var(--secondary); font-size: 14px; cursor: pointer; }
.platform-management .access-past > .access-list { margin-top: 6px; }
.platform-management :is(.access-invite, .access-share, .ps-panel, .signin-account-identity, .signin-account-section) { border-radius: 12px; }
.platform-management :is(.access-root .btn, .ps-root .btn, .ko-button, .pm-review-content .btn) { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; font: inherit; font-size: 14px; font-weight: 600; padding: 11px 16px; min-height: 44px; border-radius: 8px; text-decoration: none; }
.platform-management :is(.access-form-fields button[type="submit"], .access-actions > .btn:first-child, .ps-form button[type="submit"], .ps-actions > .btn:first-child, .ko-button, .btn.primary) { color: #fff; background: var(--accent); border-color: var(--accent); }
.platform-management :is(.access-text-button, .ps-link, .ko-link) { color: var(--accent); font-size: 14px; }
.platform-management .access-text-button { background: transparent; border: 0; font: inherit; font-size: 14px; cursor: pointer; }
.platform-management .access-row { grid-template-columns: minmax(0, 1fr) 85px 88px 106px; padding: 18px 20px; }
.platform-management .access-identity strong { font-size: 15px; }
.platform-management :is(.access-section, .ps-panel) { margin-top: 24px; }
.platform-management .access-truncated { padding: 14px 0; font-weight: 600; }
.platform-management .access-confirm { grid-column: 1 / -1; }
.platform-management .ps-sections { gap: 6px; }
.platform-management .ps-sections button { font: inherit; font-size: 14px; }
.platform-management :is(.ps-form input:not([type="checkbox"]), .ps-form textarea, .ps-form select, .ps-member-form select, .access-root input, .access-root select) { font-size: 15px; }
.platform-management .ps-form { max-width: 880px; }
.platform-management .ps-form textarea { min-height: 130px; }
.platform-management .ps-member { padding: 20px 0; }
.platform-management .ps-member strong { font-size: 15px; }
.platform-management :is(.ps-error, .access-error, .pm-error) { border: 1px solid #e4c9c9; border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--accent); padding: 16px 20px; border-radius: 8px; margin: 16px 0; }
.platform-management :is(.pm-notice, .ps-notice, .access-notice, .signin-notice) { padding: 14px 18px; background: var(--accent-soft); border-radius: 8px; color: var(--accent); }
.platform-management .pm-heading, .platform-management .pm-section-heading, .platform-management .pm-row, .platform-management .pm-person-title, .platform-management .pm-actions { display: flex; align-items: center; gap: 12px; }
.platform-management .pm-heading { justify-content: space-between; margin-bottom: 26px; }
.platform-management .pm-heading .btn { flex-shrink: 0; }
.platform-management .pm-section { margin-top: 32px; }
.platform-management .pm-section-heading { margin-bottom: 14px; }
.platform-management .pm-section-heading h2 { font-size: 21px; letter-spacing: -.03em; margin: 0; }
.platform-management .pm-count, .platform-management .pm-tag { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; font-size: 12px; border-radius: 5px; border: 1px solid var(--line); color: var(--secondary); background: var(--wash); }
.platform-management .pm-list { border: 1px solid var(--line); background: #fff; border-radius: 12px; overflow: hidden; }
.platform-management .pm-list > * + * { border-top: 1px solid var(--line); }
.platform-management .pm-row { justify-content: space-between; padding: 20px 24px; }
.platform-management .pm-row > div { min-width: 0; }
.platform-management .pm-list h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.025em; }
.platform-management .pm-list p { margin: 4px 0 0; line-height: 1.6; font-size: 14px; }
.platform-management .pm-muted, .platform-management .pm-row p { color: var(--secondary); font-size: 14px; line-height: 1.6; }
.platform-management .pm-empty { padding: 28px 24px; color: var(--secondary); margin: 0; font-size: 15px; }
.platform-management .pm-request { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 24px; }
.platform-management .pm-request-project { color: var(--accent); font-weight: 600; }
.platform-management .pm-request-message { margin-top: 14px !important; white-space: pre-wrap; }
.platform-management .pm-actions { flex-wrap: wrap; align-self: start; }
.platform-management .pm-project-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 16px; align-items: end; padding: 0 24px 24px; }
.platform-management .pm-project-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; min-width: 0; }
.platform-management .pm-project-form select { padding: 11px 12px; border-radius: 7px; border: 1px solid var(--line); font: inherit; font-size: 14px; color: var(--ink); background: #fff; width: 100%; min-height: 44px; }
.platform-management .pm-project-form .pm-checkbox { display: flex; gap: 8px; min-height: 44px; align-items: center; }
.platform-management .pm-checkbox input { accent-color: var(--accent); width: 16px; height: 16px; }
.platform-management .pm-confirm { margin: 0 24px 24px; padding: 20px; border: 1px solid #dfbcbc; border-radius: 8px; background: var(--accent-soft); }
.platform-management .pm-confirm .pm-actions { margin-top: 16px; }
.platform-management :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) {
  .platform-management .access-form-fields, .platform-management .access-project .access-form-fields { grid-template-columns: 1fr; }
  .platform-management .access-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .platform-management .access-identity { grid-column: 1 / -1; }
  .platform-management .access-row-actions { grid-column: 2; grid-row: 2 / 4; }
  .platform-management .pm-project-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .platform-management .pm-request { grid-template-columns: minmax(0, 1fr); }
  .platform-management .pm-row { align-items: start; flex-wrap: wrap; }
  .platform-management .pm-heading { gap: 16px; flex-wrap: wrap; }
  .platform-management :is(.signin-account-section, .ps-member) { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .platform-management .pm-project-form { grid-template-columns: minmax(0, 1fr); }
  .platform-management :is(.pm-row, .pm-request, .pm-empty) { padding: 18px; }
  .platform-management .pm-project-form { padding: 0 18px 18px; }
  .platform-management .pm-person-title { flex-wrap: wrap; }
  .platform-management .pm-confirm { margin: 0 18px 18px; padding: 16px; }
}

/* admin-overview.css */
.admin-overview { --admin-accent:var(--berry,#800000); --admin-muted:var(--muted,#6d625e); --admin-line:var(--line,#e4ddd7); --admin-surface:var(--surface,#fff); color:var(--ink,#292321); min-width:0; }
.admin-overview :is(h1,h2,h3,p) { margin:0; overflow-wrap:anywhere; }
.admin-heading,.admin-section-heading,.admin-management-links,.admin-provider-links { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.admin-heading h1 { font-size:clamp(28px,3vw,36px); line-height:1.15; letter-spacing:-.045em; }
.admin-heading p { margin-top:8px; color:var(--admin-muted); font-size:15px; }
.admin-heading .btn { min-height:44px; }
.admin-management-links { justify-content:flex-start; margin:22px 0 16px; }
.admin-management-links .btn { gap:14px; min-height:44px; font-size:14px; }
.admin-updated { display:flex; gap:12px; flex-wrap:wrap; color:var(--admin-muted); font-size:12px; line-height:1.6; }
.admin-updated span { color:var(--admin-muted); }
.admin-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-top:24px; }
.admin-stat { display:flex; align-items:flex-start; gap:13px; min-width:0; padding:22px 18px; border:1px solid var(--admin-line); border-radius:12px; background:var(--admin-surface); }
.admin-stat-icon { display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px; background:var(--surface-soft,#f5f0ec); color:var(--admin-accent); border-radius:8px; font-size:20px; }
.admin-stat-icon svg { display:block; width:20px; height:20px; }
.admin-stat > div { min-width:0; }
.admin-stat-label { display:block; color:var(--admin-muted); font-size:13px; }
.admin-stat strong { display:block; margin-top:8px; font-size:clamp(24px,2.7vw,34px); line-height:1.05; letter-spacing:-.045em; font-weight:650; overflow-wrap:anywhere; }
.admin-stat small { display:block; margin-top:10px; color:var(--admin-muted); font-size:12px; line-height:1.55; }
.admin-section { margin-top:30px; }
.admin-section-heading { margin-bottom:14px; }
.admin-overview h2 { font-size:20px; font-weight:650; letter-spacing:-.025em; line-height:1.3; }
.admin-overview h3 { font-size:15px; font-weight:600; line-height:1.4; }
.admin-eyebrow { color:var(--admin-muted); font-size:12px; }
.admin-capacity-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.admin-capacity { min-width:0; padding:22px; border:1px solid var(--admin-line); border-radius:12px; background:var(--admin-surface); }
.admin-capacity .admin-section-heading { margin-bottom:12px; }
.admin-capacity-percent { color:var(--admin-muted); font-size:12px; }
.admin-capacity-value { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px; font-size:15px; }
.admin-capacity-value strong { font-size:25px; letter-spacing:-.035em; font-weight:650; }
.admin-capacity-value > span { color:var(--admin-muted); }
.admin-meter { display:block; width:100%; height:8px; margin:17px 0 12px; border:0; border-radius:5px; overflow:hidden; background:#ece7e4; accent-color:var(--admin-accent); }
.admin-meter::-webkit-progress-bar { background:#ece7e4; border-radius:5px; }
.admin-meter::-webkit-progress-value { background:var(--admin-accent); border-radius:5px; }
.admin-meter::-moz-progress-bar { background:var(--admin-accent); border-radius:5px; }
.admin-capacity.is-near .admin-capacity-percent { color:#86600c; }
.admin-capacity.is-full .admin-capacity-percent { color:var(--admin-accent); font-weight:600; }
.admin-meter.is-unknown { background:repeating-linear-gradient(135deg,#ece7e4,#ece7e4 6px,#f7f4f2 6px,#f7f4f2 12px); }
.admin-help { color:var(--admin-muted); font-size:13px; line-height:1.6; }
.admin-capacity-meta { display:flex; flex-wrap:wrap; gap:12px 26px; margin:14px 0 7px; color:var(--admin-muted); font-size:12px; line-height:1.5; }
.admin-capacity-meta strong { margin-left:6px; color:var(--ink,#292321); font-weight:500; }
.admin-capacity-source { font-size:12px; }
.admin-runtime { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) minmax(160px,1.6fr); gap:20px; padding:22px; border:1px solid var(--admin-line); border-radius:12px; background:var(--admin-surface); }
.admin-runtime > div { min-width:0; }
.admin-runtime strong { display:block; font-size:23px; line-height:1.25; letter-spacing:-.035em; font-weight:600; overflow-wrap:anywhere; }
.admin-runtime span { display:block; margin-top:5px; color:var(--admin-muted); font-size:12px; }
.admin-runtime > p { align-self:center; color:var(--admin-muted); font-size:12px; line-height:1.5; }
.admin-runtime small { display:block; margin-top:5px; font-size:12px; }
.admin-projects-heading > div { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.admin-search { width:min(280px,100%); }
.admin-search input { width:100%; min-height:44px; padding:11px 13px; border:1px solid var(--admin-line); border-radius:8px; background:var(--admin-surface); font:inherit; font-size:14px; color:inherit; }
.admin-table-wrap { max-width:100%; overflow-x:auto; border:1px solid var(--admin-line); border-radius:12px; background:var(--admin-surface); }
.admin-project-table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }
.admin-project-table th { padding:13px 18px; background:var(--surface-soft,#f7f4f2); color:var(--admin-muted); font-size:12px; font-weight:500; white-space:nowrap; }
.admin-project-table td { padding:17px 18px; border-top:1px solid var(--admin-line); vertical-align:middle; }
.admin-project-table td:first-child { min-width:150px; max-width:280px; }
.admin-project-table td:nth-child(n+2) { white-space:nowrap; }
.admin-project-table a { display:inline-block; padding:4px 0; color:inherit; text-decoration:none; overflow-wrap:anywhere; }
.admin-project-table a:hover { color:var(--admin-accent); text-decoration:underline; }
.admin-project-table strong { display:block; font-weight:600; }
.admin-project-table small { display:block; margin-top:3px; color:var(--admin-muted); font-size:12px; }
.admin-status { display:inline-flex; align-items:center; padding:4px 8px; border:1px solid var(--admin-line); border-radius:5px; color:var(--admin-muted); font-size:11px; line-height:1.4; white-space:nowrap; background:var(--surface-soft,#f7f4f2); }
.admin-status.is-published { border-color:#d7e4dd; background:#eff5f1; color:#386248; }
.admin-project-table .admin-table-empty { padding:28px 18px; color:var(--admin-muted); text-align:center; white-space:normal; }
.admin-provider-data { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:18px; padding:20px 22px; border:1px solid var(--admin-line); border-radius:12px; background:var(--surface-soft,#f7f4f2); }
.admin-provider-data h2 { font-size:17px; margin-bottom:5px; }
.admin-provider-links { gap:20px; }
.admin-provider-links a,.admin-service a { display:inline-flex; align-items:center; min-height:36px; gap:7px; color:var(--admin-accent); text-decoration:none; font-size:13px; font-weight:500; }
.admin-provider-links a:hover,.admin-service a:hover { text-decoration:underline; }
.admin-services,.admin-extra { margin-top:18px; border:1px solid var(--admin-line); border-radius:10px; background:var(--admin-surface); }
.admin-services > summary,.admin-extra > summary { cursor:pointer; min-height:50px; padding:15px 20px; font-size:14px; font-weight:600; line-height:1.5; }
.admin-services > summary span { margin-left:12px; color:var(--admin-muted); font-size:12px; font-weight:400; }
.admin-service-list { padding:0 20px; }
.admin-service { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:18px 0; border-top:1px solid var(--admin-line); }
.admin-service > div { min-width:0; }
.admin-service h3 { margin-bottom:5px; }
.admin-service p { color:var(--admin-muted); font-size:13px; line-height:1.5; }
.admin-extra dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:0; padding:5px 20px 20px; }
.admin-extra dt { color:var(--admin-muted); font-size:12px; line-height:1.5; }
.admin-extra dd { margin:6px 0 0; font-size:19px; font-weight:500; }
.admin-alerts { display:grid; gap:8px; margin-top:20px; }
.admin-alert { display:flex; gap:10px; align-items:flex-start; padding:13px 16px; border:1px solid #eadabb; border-radius:8px; background:#fcf8ee; color:#705318; font-size:13px; line-height:1.55; }
.admin-alert > span { display:grid; place-items:center; flex:0 0 18px; height:18px; margin-top:1px; border:1px solid currentColor; border-radius:50%; font-size:11px; }
.admin-alert.is-error { border-color:#e8c9c7; background:#faf0ef; color:var(--admin-accent); }
.admin-alert.is-info { border-color:var(--admin-line); background:var(--surface-soft,#f7f4f2); color:var(--admin-muted); }
.admin-error { padding:24px; margin-top:24px; border:1px solid #e8c9c7; border-radius:12px; background:#faf0ef; color:var(--admin-accent); }
.admin-error h2 { font-size:21px; }
.admin-error p { margin:10px 0 16px; font-size:14px; line-height:1.5; }
.admin-reports { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.admin-report { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:14px 16px; border:1px solid var(--admin-line); border-radius:10px; background:var(--admin-surface); font-size:14px; }
.admin-report p { margin:6px 0; overflow-wrap:anywhere; }
.admin-report .admin-help { display:block; margin-top:4px; }
.admin-support-update { margin-top:8px; max-width:32rem; }
.admin-support-update summary { cursor:pointer; padding-block:8px; }
.admin-support-update form, .admin-support-update label { display:grid; gap:6px; }
.admin-support-update form { gap:10px; }
.admin-support-update :is(select,textarea) { width:100%; box-sizing:border-box; color:inherit; background:var(--admin-surface); border:1px solid var(--admin-line); border-radius:6px; padding:8px; font:inherit; font-size:16px; }
.admin-support-update .btn { justify-self:start; }
@media (max-width:600px) { .admin-report { flex-direction:column; } }
.admin-loading { margin-top:24px; padding:35px 22px; border:1px solid var(--admin-line); border-radius:12px; color:var(--admin-muted); background:var(--admin-surface); font-size:14px; }
.admin-overview :is(a,button,input,summary):focus-visible { outline:2px solid var(--admin-accent); outline-offset:3px; }
@media (max-width:1100px) { .admin-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .admin-runtime { grid-template-columns:repeat(3,minmax(0,1fr)); } .admin-runtime > p { grid-column:1/-1; padding-top:14px; border-top:1px solid var(--admin-line); } }
@media (max-width:600px) { .admin-stats { gap:10px; } .admin-stat { padding:17px 14px; gap:8px; } .admin-stat-icon { display:none; } .admin-stat strong { font-size:28px; } .admin-capacity-grid { grid-template-columns:minmax(0,1fr); gap:12px; } .admin-capacity { padding:18px; } .admin-runtime { gap:12px; padding:18px; } .admin-runtime strong { font-size:20px; } .admin-extra dl { grid-template-columns:repeat(2,minmax(0,1fr)); } .admin-projects-heading { align-items:stretch; } .admin-search { width:100%; } .admin-search input { font-size:16px; } .admin-management-links { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; } .admin-management-links .btn { justify-content:space-between; } .admin-heading { align-items:flex-start; } .admin-provider-data { padding:18px; } }
@media (prefers-reduced-motion:reduce) { .admin-overview * { scroll-behavior:auto; } }
.admin-pointed-row { display:flex; align-items:center; gap:12px; margin:8px 0 4px; }
.admin-pointed { flex:none; display:block; }
.admin-pointed-screen { fill:#faf6f4; stroke:#d9c9c4; }
.admin-pointed-spot { fill:#80000022; stroke:#800000; stroke-width:1.5; }

/* account-connections.css */
.account-connections { margin-top: 24px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.account-connections-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 8px; }
.account-connections-heading h2 { margin: 0; font-size: 18px; }
.account-connections .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.account-connections button[disabled] { opacity: .6; cursor: default; }
.account-connection-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.account-connection-row > div { min-width: 0; }
.account-connection-row h3 { margin: 0 0 6px; font-size: 16px; }
.account-connection-row p { margin: 0; max-width: 32ch; color: var(--muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.account-connection-state { display: flex; flex-shrink: 0; flex-direction: column; align-items: flex-end; gap: 4px; }
.account-connections-error { margin: 0; color: #8a231b; font-size: 13px; }
@media (max-width: 600px) {
  .account-connections { padding: 20px; }
  .account-connection-row { flex-wrap: wrap; gap: 12px; }
  .account-connection-state { align-items: flex-start; max-width: 100%; }
}

.account-claude-connection > .account-ai { width: 100%; min-width: 0; }
.account-ai-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; }
.account-ai-heading :is(h2,h3) { margin: 0; font-size: 22px; line-height: 1.3; }
.account-ai p { max-width: 65ch; margin: 12px 0 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.account-ai .workspace-connection-state { color: #625650; font-size: 16px; }
.account-ai-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.account-ai :is(.btn,button,summary) { min-height: 46px; font-size: 16px; }
.account-ai-help { margin-top: 22px; padding-top: 12px; border-top: 1px solid #e4ddd7; }
.account-ai-help > summary { min-height: 46px; padding-block: 11px; color: #55453f; cursor: pointer; }
.account-ai-setup { margin-top: 18px; min-width: 0; }
.account-ai-platform { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; font-size: 16px; }
.account-ai-platform select { min-height: 44px; padding: 8px 12px; font: inherit; }
.account-ai-manual { margin-top: 16px; }
.account-ai-manual > summary { padding-block: 11px; cursor: pointer; }
.account-ai-manual button { margin-top: 12px; }
.account-ai-command-label { display: block; margin-top: 14px; font-size: 14px; }
.account-ai-command-label textarea { display: block; box-sizing: border-box; width: 100%; min-width: 0; margin-top: 8px; padding: 12px; resize: vertical; font: 14px/1.6 monospace; overflow-wrap: anywhere; }
.account-ai-connections { padding: 0; list-style: none; }
.account-ai-connections li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 0; border-top: 1px solid #e4ddd7; overflow-wrap: anywhere; }
.account-connections-heading h2 { font-size: 22px; }
.account-connections .text-link { font-size: 16px; }
.account-github-connection > .account-github { width: 100%; }
.account-github p { max-width: 65ch; margin: 12px 0 0; font-size: 16px; line-height: 1.6; }
.account-github .workspace-connection-state { color: #625650; font-size: 14px; }
.account-github :is(.btn,button,summary) { min-height: 46px; font-size: 16px; }
.account-github .account-ai-actions:empty { display: none; }
.account-github .account-ai-help .text-link + .text-link { margin-left: 18px; }
.account-connections :is(a,button,summary):focus-visible { outline: 2px solid #800000; outline-offset: 4px; }

.account-ai-permissions { margin-top: 20px; }
.account-ai-permissions fieldset { min-width: 0; margin: 0; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 8px; }
.account-ai-permissions legend { padding: 0 6px; font-size: 20px; font-weight: 650; }
.account-ai-permissions label { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 16px; line-height: 1.5; }
.account-ai-permissions input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: #800000; }
.account-ai-permissions button { margin-top: 12px; }
.account-ai-permissions .account-ai-connection-picker { display: grid; gap: 8px; margin-bottom: 14px; font-weight: 600; }
.account-ai-connection-picker select { box-sizing: border-box; min-width: 0; width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-weight: 400; }
.account-ai-permission-option + .account-ai-permission-option { border-top: 1px solid #eee8e3; }
.account-ai-permission-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.account-ai-permission-footer button { margin: 0; }
.account-ai-permission-help { flex: 1 1 180px; }
.account-ai-permission-help summary { display: flex; align-items: center; cursor: pointer; color: #55453f; }
.account-ai-permission-help summary::before { content: '▸'; margin-right: 8px; }
.account-ai-permission-help[open] summary::before { content: '▾'; }
.account-ai-connection-dates { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 16px 0; font-size: 16px; line-height: 1.5; }
.account-ai-connection-dates dt { color: var(--secondary); }
.account-ai-connection-dates dd { margin: 0; overflow-wrap: anywhere; }
.account-ai-computer-setup { margin-top: 16px; }
.account-ai-computer-setup > summary { display: flex; align-items: center; cursor: pointer; }
.account-ai-local-sync { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.account-ai-local-sync .account-ai-actions { margin-top: 0; }
.account-ai-local-help { margin-top: 10px; }
.account-ai-local-help > summary { display: flex; align-items: center; cursor: pointer; color: #55453f; }
.account-ai-local-help > .text-link { margin-top: 14px; }
.ws-files .account-ai.is-compact .account-ai-actions .account-ai-sync-action { font-size: 16px; }

/* platform-compatibility.css */
.invite-page{max-width:520px;margin:24px auto 40px}.invite-back{display:inline-block;color:var(--muted,#666);font-size:13px;text-decoration:none;margin-bottom:16px}.invite-back:hover{text-decoration:underline}.invite-card{background:#fff;border:1px solid var(--line,#ddd);border-radius:14px;padding:28px}.invite-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid #e6caca;border-radius:10px;background:#f8eeee;color:#800000;margin-bottom:16px}.invite-icon svg{width:24px;height:24px}.invite-card h1{font-size:25px;line-height:1.2;letter-spacing:-.6px;margin:0 0 14px}.invite-card>p{font-size:14px;line-height:1.6;margin:14px 0}.invite-help{color:var(--muted,#666);font-size:13px;line-height:1.5}.invite-project{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line,#ddd);border-radius:8px}.invite-project>span{font-size:28px;color:#800000}.invite-project strong,.invite-project small{display:block;overflow-wrap:anywhere}.invite-project small{font-size:12px;color:var(--muted,#666);margin-top:3px}.invite-form fieldset{margin:20px 0 0;padding:0;border:0;display:grid;gap:16px;min-width:0}.invite-form label{display:grid;gap:7px;font-size:13px;font-weight:600}.invite-form input{min-width:0;min-height:44px;width:100%;border:1px solid #bdbdbd;background:#fff;border-radius:7px;padding:10px 12px;font:inherit;font-weight:400}.invite-form .invite-help{margin:-8px 0 0;font-size:12px}.invite-form .btn{width:100%;justify-content:center;min-height:44px}.invite-card .invite-footnote{font-size:12px;color:var(--muted,#666);margin-top:20px}.invite-error{border:1px solid #e2bcbc;border-radius:7px;background:#fff7f7;color:#800000;padding:12px;font-size:13px;overflow-wrap:anywhere}.invite-card p{overflow-wrap:anywhere}.invite-card :focus-visible{outline:3px solid #800000;outline-offset:3px}@media(max-width:560px){.invite-page{margin-top:16px}.invite-card{padding:22px}.invite-card h1{font-size:23px}}

.workspace-invite-action{display:flex;justify-content:flex-end;margin-top:14px}.workspace-invite-action .btn{min-height:44px}@media(max-width:600px){.workspace-invite-action{justify-content:flex-start;margin-top:16px}}
.desktop-authorization-scope{padding-left:20px;font-size:14px;line-height:1.7;margin:16px 0}.desktop-authorization-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.desktop-authorization-page{width:100%;max-width:620px;margin:28px auto 40px;color:#292321}.desktop-authorization-card{padding:30px 34px;background:#fff;border:1px solid #e8e1de;border-radius:12px}.desktop-authorization-header h1{margin:0;font-size:25px;line-height:1.25;letter-spacing:-.65px}.desktop-authorization-account{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 9px;margin-top:14px;color:#766b66;font-size:12px;line-height:1.5}.desktop-authorization-account strong{color:#493d38;font-weight:600}.desktop-authorization-account :is(strong,span){overflow-wrap:anywhere;min-width:0}.desktop-authorization-identity{display:grid;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);align-items:center;gap:16px;margin:25px 0;padding:23px 0;border-block:1px solid #eee8e4}.desktop-authorization-identity>div{display:grid;gap:5px;min-width:0}.desktop-authorization-identity>div>span{color:#766b66;font-size:12px}.desktop-authorization-identity strong{font-size:17px;line-height:1.35;letter-spacing:-.2px;overflow-wrap:anywhere}.desktop-authorization-identity small{color:#766b66;font-size:11px;line-height:1.4}.desktop-authorization-arrow{color:#9b7972;font-size:23px;text-align:center}.desktop-authorization-permissions h2{margin:0;font-size:14px;line-height:1.4;letter-spacing:0}.desktop-authorization-permissions ul{display:grid;gap:17px;list-style:none;padding:0;margin:17px 0 0}.desktop-authorization-permissions li{display:grid;gap:4px;padding-left:15px;border-left:2px solid #d8b5b1}.desktop-authorization-permissions li strong{font-size:13px;font-weight:600;line-height:1.4}.desktop-authorization-permissions li span{color:#6d625e;font-size:13px;line-height:1.55}.desktop-authorization-limits{margin:19px 0 22px;color:#766b66;font-size:12px;line-height:1.6}.desktop-authorization-return{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}.desktop-authorization-return strong{font-size:13px;line-height:1.5;font-weight:500}.desktop-authorization-return>span{color:#766b66;font-size:12px;overflow-wrap:anywhere}.desktop-authorization-return.is-unverified{color:#800000}.desktop-authorization-details{margin-top:2px}.desktop-authorization-details summary{display:flex;align-items:center;gap:6px;min-height:44px;width:fit-content;color:#766b66;cursor:pointer;font-size:12px;list-style:none}.desktop-authorization-details summary::before{content:'';width:5px;height:5px;margin-right:2px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);transition:transform .15s ease}.desktop-authorization-details[open] summary::before{transform:rotate(135deg)}.desktop-authorization-details summary::-webkit-details-marker{display:none}.desktop-authorization-details dl{display:grid;gap:12px;margin:2px 0 18px;font-size:12px;line-height:1.6}.desktop-authorization-details dl>div{display:grid;gap:3px;min-width:0}.desktop-authorization-details dt{font-weight:600;color:#493d38}.desktop-authorization-details dd{margin:0;color:#766b66;overflow-wrap:anywhere}.desktop-authorization-details code{font-size:11px;overflow-wrap:anywhere;white-space:normal}.desktop-authorization-page .desktop-authorization-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.45fr);gap:10px;margin-top:15px}.desktop-authorization-actions .btn{justify-content:center;min-height:46px;font-size:14px}.desktop-authorization-actions .btn.primary{background:#800000;border-color:#800000;color:#fff}.desktop-authorization-actions .btn.primary:hover:not(:disabled){background:#650000}.desktop-authorization-actions .btn:disabled{opacity:.55;cursor:wait}.desktop-authorization-footnote{margin:13px 0 0;text-align:center;color:#766b66;font-size:11px;line-height:1.5}.desktop-authorization-error{margin:20px 0;padding:12px 14px;border-left:3px solid #800000;background:#faf1f0;color:#800000;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.desktop-authorization-status{margin:23px 0;color:#6d625e;font-size:14px;line-height:1.6}.desktop-authorization-page :focus-visible{outline:3px solid #800000;outline-offset:4px}@media(max-width:560px){.desktop-authorization-page{margin:16px auto 28px}.desktop-authorization-card{padding:23px 22px;border-radius:10px}.desktop-authorization-header h1{font-size:23px}.desktop-authorization-identity{gap:12px;grid-template-columns:minmax(0,1fr);margin:21px 0;padding:19px 0}.desktop-authorization-arrow{justify-self:start;line-height:1;transform:rotate(90deg)}.desktop-authorization-identity strong{font-size:16px}.desktop-authorization-account{display:grid;gap:2px}.desktop-authorization-account>span:first-child{margin-bottom:2px}.desktop-authorization-permissions ul{gap:15px}.desktop-authorization-permissions li{padding-left:12px}.desktop-authorization-page .desktop-authorization-actions{grid-template-columns:minmax(0,1fr) minmax(80px,.5fr)}}@media(prefers-reduced-motion:reduce){.desktop-authorization-details summary::before{transition:none}}


[data-desktop-authorization]{max-width:520px;margin:30px auto 40px}
[data-desktop-authorization] .desktop-authorization-card{padding:30px;border-radius:16px;border-color:#e5ded9;box-shadow:none}
[data-desktop-authorization] .desktop-authorization-header h1{font-family:var(--body);font-size:26px;font-weight:600;line-height:1.25;letter-spacing:0;overflow-wrap:anywhere}
.desktop-authorization-project{margin:7px 0 0;color:#746b66;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.desktop-authorization-project strong{font-weight:500;color:#493d38}
[data-desktop-authorization] .desktop-authorization-account{display:flex;align-items:center;gap:11px;margin:22px 0 26px;padding:12px 14px;border:1px solid #eee7e2;border-radius:10px;font-size:14px;line-height:1.4;background:#fcfaf8}
[data-desktop-authorization] .desktop-authorization-avatar{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#f2e6e2;color:#800000;font-size:16px;font-weight:600}
.desktop-authorization-account-copy{display:grid;gap:2px;min-width:0}
[data-desktop-authorization] .desktop-authorization-account-copy strong{font-size:14px;font-weight:600;color:#302625}
[data-desktop-authorization] .desktop-authorization-account-copy span{color:#746b66;overflow-wrap:anywhere}
[data-desktop-authorization] .desktop-authorization-permissions h2{font-family:var(--body);font-size:14px;font-weight:600;line-height:1.5;margin:0}
[data-desktop-authorization] .desktop-authorization-permissions ul{display:grid;gap:11px;list-style:disc;margin:12px 0 0;padding:0 0 0 19px}
[data-desktop-authorization] .desktop-authorization-permissions li{display:list-item;border:0;padding:0 0 0 3px;font-size:16px;line-height:1.5;color:#493d38}
[data-desktop-authorization] .desktop-authorization-permissions li::marker{color:#9b7972;font-size:12px}
[data-desktop-authorization] .desktop-authorization-footnote{margin:18px 0 0;text-align:left;color:#746b66;font-size:14px;line-height:1.5}
[data-desktop-authorization] .desktop-authorization-details{margin-top:8px}
[data-desktop-authorization] .desktop-authorization-details summary{min-height:44px;font-size:14px;color:#746b66}
[data-desktop-authorization] .desktop-authorization-details dl{margin:8px 0 16px;padding:15px;background:#fcfaf8;border:1px solid #eee7e2;border-radius:8px;font-size:14px;line-height:1.5}
[data-desktop-authorization] .desktop-authorization-details code{font-size:14px}
.desktop-authorization-trust{margin:15px 0 0;color:#746b66;font-size:14px;line-height:1.5}
[data-desktop-authorization] .desktop-authorization-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
[data-desktop-authorization] .desktop-authorization-actions .btn{min-height:44px;min-width:90px;padding:10px 20px;border-radius:8px;font-size:14px}
[data-desktop-authorization] .desktop-authorization-actions .btn:not(.primary){border-color:transparent;background:transparent;box-shadow:none;color:#746b66}
[data-desktop-authorization] .desktop-authorization-actions .btn:not(.primary):hover:not(:disabled){background:#f5efeb;color:#302625}
[data-desktop-authorization] .desktop-authorization-actions .btn.primary{min-width:110px}
[data-desktop-authorization] .desktop-authorization-status{margin:20px 0 0;font-size:16px;line-height:1.5}
[data-desktop-authorization] .desktop-authorization-error{font-size:14px}
@media(max-width:560px){
 [data-desktop-authorization]{margin:14px auto 28px}
 [data-desktop-authorization] .desktop-authorization-card{padding:24px 20px;border-radius:12px}
 [data-desktop-authorization] .desktop-authorization-header h1{font-size:24px}
 [data-desktop-authorization] .desktop-authorization-actions .btn{flex:1;min-width:0}
}

body:has(#area-root:not([hidden]) .prototype-review) .topbar,body:has(#area-root:not([hidden]) .prototype-review) .app-note { display:none; }
body:has(#area-root:not([hidden]) .prototype-review) .app-shell { width:100%; max-width:none; padding:0; margin:0; }
.prototype-review { --review-panel-width:330px; --review-border:#e4dedc; min-width:0; min-height:100dvh; background:var(--canvas); border:0; border-radius:0; overflow:hidden; }
.prototype-review button,.prototype-review a,.prototype-review select { -webkit-tap-highlight-color:transparent; }
.prototype-review button,.prototype-review select { min-height:44px; }
.prototype-review button:focus-visible,.prototype-review a:focus-visible,.prototype-review select:focus-visible,.prototype-review textarea:focus-visible,.review-overlay:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.prototype-review svg { width:18px; height:18px; flex:none; }
.prototype-review button:disabled { opacity:.55; cursor:default; }
.prototype-review p,.prototype-review h1,.prototype-review h2,.prototype-review h3 { overflow-wrap:anywhere; }
.review-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:78px; padding:12px 18px 12px 12px; border-bottom:1px solid var(--review-border); background:var(--white); }
.review-identity { display:flex; align-items:center; gap:10px; min-width:0; flex:1; }
.review-identity>div { min-width:0; }
.review-back { display:grid; place-items:center; width:36px; min-height:44px; color:var(--secondary); border-radius:8px; flex:none; }
.review-back:hover { color:var(--accent); background:var(--accent-soft); }
.review-app-letter { display:grid; place-items:center; width:38px; height:38px; flex:none; font-family:"Plus Jakarta Sans",sans-serif; font-size:21px; font-weight:650; color:var(--accent); background:var(--accent-soft); border:1px solid #ead8d8; border-radius:10px; }
.review-identity h1 { max-width:280px; font-size:16px; letter-spacing:-.4px; line-height:1.3; }
.review-identity p { font-size:11px; color:var(--secondary); margin-top:3px; }
.review-modes,.review-sizes { display:flex; align-items:center; flex:none; }
.review-modes { gap:2px; padding:3px; border:1px solid var(--line); border-radius:11px; background:var(--wash); }
.review-modes button,.review-sizes button,.review-notes-toggle { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:0 13px; border-radius:8px; font-size:12px; font-weight:600; white-space:nowrap; }
.review-modes button { color:var(--secondary); }
.review-modes button[aria-pressed="true"] { color:var(--accent); background:white; box-shadow:0 1px 4px #321c1c12; }
.review-toolbar-end { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex:1; }
.review-sizes { gap:3px; }
.review-sizes button { color:var(--secondary); padding:0 10px; }
.review-sizes button:hover,.review-sizes button[aria-pressed="true"] { color:var(--ink); background:var(--wash); }
.review-notes-toggle { display:none; }
.review-workspace { display:grid; grid-template-columns:minmax(0,1fr) var(--review-panel-width); min-height:690px; }
.review-main { display:flex; flex-direction:column; min-width:0; }
.review-preview-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:60px; padding:8px 24px; }
.review-instruction { font-size:12px; color:var(--secondary); }
.review-preview-label { font-size:10px; color:var(--secondary); white-space:nowrap; }
.review-preview-label:before { content:""; display:inline-block; width:6px; height:6px; margin-right:6px; border-radius:50%; background:#658466; }
.review-option-label { display:flex; align-items:center; gap:8px; font-size:11px; color:var(--secondary); }
.review-option-label select { max-width:180px; border:1px solid var(--review-border); border-radius:7px; padding:0 24px 0 9px; color:var(--ink); background:white; font-size:12px; }
.review-canvas { position:relative; display:flex; justify-content:center; align-items:flex-start; flex:1; min-width:0; min-height:400px; padding:0 24px 20px; overflow:hidden; }
.review-stage { position:relative; width:390px; height:720px; flex:none; }
.review-viewport { position:absolute; left:0; top:0; width:390px; height:720px; transform-origin:top left; border-radius:14px; background:var(--white); box-shadow:0 8px 30px #35221d12,0 0 0 1px #d6ceca; isolation:isolate; }
.review-frame,.review-frame iframe,.review-overlay,.review-pins { position:absolute; inset:0; width:100%; height:100%; border-radius:inherit; }
.review-frame { overflow:hidden; background:white; }
.review-frame iframe { display:block; border:0; background:white; }
.review-overlay { z-index:1; cursor:crosshair; touch-action:manipulation; }
.review-overlay[aria-disabled="true"] { cursor:default; }
.review-overlay:focus-visible { outline-offset:4px; }
.review-pins { z-index:2; pointer-events:none; }
.review-pin { position:absolute; display:grid; place-items:center; width:44px; height:44px; min-height:44px; padding:5px; border-radius:50%; transform:translate(-50%,-50%) scale(var(--review-pin-scale,1)); pointer-events:auto; }
.review-pin span { display:grid; place-items:center; width:32px; height:32px; border:2px solid white; border-radius:50% 50% 50% 4px; background:var(--accent); color:white; font-size:13px; font-weight:700; box-shadow:0 2px 7px #30100033; }
.review-pin:hover span,.review-pin.is-selected span { background:var(--accent-hover); box-shadow:0 0 0 4px #80000024; }
.review-pin:active:not(:disabled) { transform:translate(-50%,-50%) scale(var(--review-pin-scale,1)); }
.review-pin.is-draft span { opacity:.72; }
.prototype-review[data-review-mode="try"] .review-overlay,.prototype-review[data-review-mode="try"] .review-pins { display:none; }
.review-preview-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; padding:0 24px 10px; }
.review-status { font-size:11px; color:var(--secondary); }
.review-status:empty { min-height:0; }
.review-external { display:inline-flex; align-items:center; justify-content:flex-end; gap:5px; min-height:44px; margin-left:auto; font-size:11px; color:var(--secondary); white-space:nowrap; }
.review-error { display:block; color:var(--accent); }
.review-no-preview { position:absolute; inset:20px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:9px; text-align:center; background:var(--canvas); }
.review-no-preview h2 { font-size:17px; }
.review-no-preview p { max-width:32ch; font-size:12px; color:var(--secondary); }
.review-sidebar { position:relative; min-width:0; background:var(--white); border-left:1px solid var(--review-border); padding:26px 20px; }
.review-notes-heading h2 { display:flex; align-items:center; gap:8px; font-size:16px; letter-spacing:-.3px; }
.review-notes-heading h2 span { display:grid; place-items:center; min-width:22px; height:22px; border:1px solid var(--line); border-radius:6px; font-family:"DM Sans",sans-serif; font-size:11px; color:var(--secondary); font-weight:500; }
.review-notes-heading p { font-size:11px; color:var(--secondary); margin-top:7px; }
.review-general-note { display:flex; width:100%; align-items:center; justify-content:space-between; gap:10px; margin-top:19px; padding:0 12px; border:1px solid var(--review-border); border-radius:8px; font-size:12px; text-align:left; color:var(--secondary); }
.review-general-note:hover { background:var(--accent-soft); color:var(--accent); border-color:#dfc4c4; }
.review-general-note>span { font-size:21px; font-weight:400; }
.review-panel-close { display:none; }
.review-empty { padding:40px 8px 32px; text-align:center; }
.review-empty-icon { display:grid; place-items:center; width:46px; height:46px; border-radius:14px; margin:0 auto 16px; color:var(--accent); background:var(--accent-soft); }
.review-empty-icon svg { width:23px; height:23px; }
.review-empty h3 { font-size:13px; margin-bottom:8px; }
.review-empty p { font-size:12px; line-height:1.7; color:var(--secondary); }
.review-note-list { list-style:none; padding:0; margin:18px -8px 0; }
.review-note { padding:10px 8px 15px; border-bottom:1px solid var(--line); border-radius:8px 8px 0 0; }
.review-note.is-selected { background:var(--accent-soft); border-color:#ead3d3; }
.review-note-select { display:flex; align-items:center; gap:9px; width:100%; text-align:left; padding:0; }
.review-note-number { display:grid; place-items:center; width:24px; height:24px; flex:none; border-radius:50% 50% 50% 4px; background:var(--accent); color:white; font-size:10px; font-weight:700; }
.review-note-number.is-general { background:var(--wash); color:var(--secondary); border-radius:6px; }
.review-note-number svg { width:14px; height:14px; }
.review-note-author { font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.review-note time { margin-left:auto; color:var(--secondary); font-size:10px; white-space:nowrap; }
.review-note-body { padding-left:33px; white-space:pre-wrap; font-size:12px; line-height:1.7; }
.review-note-context { display:flex; align-items:center; gap:4px; padding-left:33px; margin-top:9px; color:var(--secondary); font-size:10px; }
.review-note-context svg { width:12px; height:12px; }
.review-votes { margin-top:23px; padding-top:4px; border-top:1px solid var(--line); }
.review-votes summary { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:48px; cursor:pointer; font-size:12px; font-weight:600; }
.review-votes summary:after { content:"⌄"; color:var(--secondary); }
.review-votes summary small { margin-left:auto; font-size:10px; font-weight:400; color:var(--secondary); }
.review-votes[open] summary:after { transform:rotate(180deg); }
.review-vote-content { padding:5px 0 3px; }
.review-vote-question { font-size:12px; font-weight:600; line-height:1.6; margin-bottom:6px; }
.review-vote-options { display:grid; gap:8px; margin:13px 0 9px; }
.review-vote-option { display:flex; width:100%; align-items:center; justify-content:space-between; gap:8px; min-height:48px; border:1px solid var(--review-border); border-radius:8px; padding:9px 10px; text-align:left; }
.review-vote-option>span { font-size:12px; font-weight:500; }
.review-vote-option>small { flex:none; font-size:10px; color:var(--secondary); }
.review-vote-option.is-selected { color:var(--accent); background:var(--accent-soft); border-color:#d8b4b4; }
.review-help,.review-closed-notice { color:var(--secondary); font-size:11px; line-height:1.65; }
.review-signin-link { display:inline-flex; align-items:center; min-height:44px; color:var(--accent); font-size:12px; font-weight:600; }
.review-closed-notice { margin:18px 0; padding:12px; background:var(--wash); border-radius:8px; }
.review-composer-slot:not(:empty) { position:absolute; z-index:4; inset:0; padding:26px 20px; background:var(--white); overflow:auto; }
.review-composer>header { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:16px; }
.review-composer-kicker { margin-bottom:6px; color:var(--secondary); font-size:10px; }
.review-composer h2 { font-size:16px; letter-spacing:-.4px; }
.review-close { display:grid; place-items:center; width:44px; min-height:44px; margin:-8px -10px 0 0; color:var(--secondary); border-radius:8px; }
.review-close:hover { background:var(--wash); color:var(--ink); }
.review-location { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--accent); margin-bottom:22px; }
.review-location svg { width:14px; height:14px; }
.review-composer form>label { display:block; font-size:12px; font-weight:600; }
.review-composer textarea { display:block; resize:vertical; width:100%; min-height:140px; margin:9px 0 10px; padding:12px; border:1px solid #d9ceca; border-radius:9px; color:var(--ink); background:white; font-size:13px; font-weight:400; line-height:1.65; }
.review-composer textarea::placeholder { color:#85807c; }
.review-submit { width:100%; padding:10px 16px; border-radius:8px; margin-top:20px; background:var(--accent); color:white; font-size:12px; font-weight:600; }
.review-submit:hover:not(:disabled) { background:var(--accent-hover); }
.review-cancel { display:block; width:100%; padding:9px 12px; margin-top:5px; font-size:12px; color:var(--secondary); }
.review-form-error { margin-top:12px; padding:10px; border:1px solid #dec3c3; border-radius:7px; background:var(--accent-soft); color:var(--accent); font-size:12px; line-height:1.6; }
@media (max-width:1100px) { .prototype-review { --review-panel-width:300px; } .review-toolbar { gap:10px; padding-right:12px; } .review-sizes button { padding:0 8px; } .review-sizes button span { display:none; } .review-sizes button { width:44px; } .review-identity h1 { max-width:190px; } }
@media (max-width:760px) {
  .prototype-review { border-radius:12px; }
  .review-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"identity feedback" "modes sizes"; gap:10px 8px; padding:10px 12px; }
  .review-identity { grid-area:identity; gap:8px; }
  .review-identity>div { flex:1; overflow:hidden; }
  .review-back { width:44px; }
  .review-app-letter { width:34px; height:34px; font-size:19px; }
  .review-identity h1 { max-width:none; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .review-identity p { font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .review-modes { grid-area:modes; min-width:0; }
  .review-modes button { flex:1; padding:0 10px; }
  .review-toolbar-end { display:contents; }
  .review-sizes { grid-area:sizes; }
  .review-notes-toggle { grid-area:feedback; display:inline-flex; padding:0 8px; color:var(--accent); }
  .review-notes-toggle span { font-size:11px; }
  .review-workspace { display:block; position:relative; min-height:0; }
  .review-preview-heading { min-height:54px; padding:7px 14px; gap:6px; flex-wrap:wrap; }
  .review-instruction { font-size:11px; }
  .review-preview-label { font-size:9px; }
  .review-option-label { width:100%; justify-content:space-between; }
  .review-canvas { padding:1px 14px 18px; min-height:400px; }
  .review-viewport { border-radius:11px; }
  .review-preview-footer { padding:0 14px 8px; }
  .review-sidebar { position:fixed; z-index:50; inset:auto 0 0; max-height:min(70dvh,650px); overflow:auto; padding:25px 22px max(22px,env(safe-area-inset-bottom)); border:1px solid var(--review-border); border-bottom:0; border-radius:20px 20px 0 0; box-shadow:0 -12px 50px #26131325; visibility:hidden; transform:translateY(100%); transition:transform 180ms var(--ease),visibility 180ms; }
  .prototype-review[data-review-panel="notes"] .review-sidebar,.prototype-review[data-review-panel="composer"] .review-sidebar { visibility:visible; transform:translateY(0); }
  .review-sidebar:before { content:""; position:absolute; width:32px; height:4px; border-radius:3px; background:#d9cfcb; left:calc(50% - 16px); top:9px; }
  .review-panel-close { display:grid; place-items:center; position:absolute; right:8px; top:11px; width:44px; min-height:44px; color:var(--secondary); border-radius:8px; }
  .review-notes-heading { padding-right:35px; }
  .review-composer-slot:not(:empty) { position:relative; inset:auto; min-height:0; padding:0; overflow:visible; }
  .review-sidebar:has(.review-composer-slot:not(:empty))>[data-review-notes],.review-sidebar:has(.review-composer-slot:not(:empty))>.review-panel-close { display:none; }
  .review-composer textarea { min-height:112px; }
  .review-empty { padding:30px 8px; }
  .review-votes { margin-top:15px; }
}
@media (max-width:350px) { .review-toolbar { padding-left:8px; padding-right:8px; } .review-back { display:none; } .review-modes button { padding:0 7px; font-size:11px; } .review-preview-label { display:none; } }
@media (prefers-reduced-motion:reduce) { .prototype-review *, .prototype-review *:before,.prototype-review *:after { transition:none!important; animation:none!important; scroll-behavior:auto!important; } }

.oh-root { max-width:1120px; }
.oh-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-bottom:26px; }
.oh-eyebrow { display:block; color:var(--accent); font-size:11px; font-weight:600; margin-bottom:9px; }
.oh-heading h1 { margin:0; font-size:27px; line-height:1.25; font-weight:600; letter-spacing:-.5px; }
.oh-heading p { margin:10px 0 0; color:var(--secondary); font-size:14px; line-height:1.6; }
.oh-layout { display:grid; grid-template-columns:minmax(240px,.8fr) minmax(0,1.3fr); grid-template-areas:"guide conversation"; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--white); }
.oh-guide { grid-area:guide; min-width:0; background:var(--wash); padding:25px; border-right:1px solid var(--line); }
.oh-section-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.oh-section-heading h2,.oh-conversation-heading h2 { margin:0; font-size:16px; font-weight:600; }
.oh-section-heading > span { color:var(--secondary); font-size:10px; }
.oh-topic { border-top:1px solid var(--line); }
.oh-topic summary { display:list-item; min-height:48px; padding:15px 0; color:var(--ink); font-size:13px; line-height:1.5; font-weight:500; cursor:pointer; }
.oh-topic-body { padding-bottom:16px; }
.oh-topic-body p { margin:0; color:var(--secondary); font-size:13px; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
.oh-text-link,.oh-text-button { display:inline-flex; align-items:center; min-height:44px; padding:9px 0; color:var(--accent); font:inherit; font-size:12px; line-height:1.5; text-decoration:underline; text-underline-offset:4px; text-decoration-color:var(--line); }
.oh-root button { cursor:pointer; }
.oh-root button:disabled { cursor:default; opacity:.55; }
.oh-root .btn { min-height:44px; height:auto; padding:11px 16px; white-space:normal; }
.oh-project { margin-top:18px; padding-top:20px; border-top:1px solid var(--line); }
.oh-project strong { font-size:13px; font-weight:600; }
.oh-project .oh-help { margin:7px 0 0; }
.oh-conversation { grid-area:conversation; position:relative; min-width:0; padding:25px; }
.oh-conversation-heading { padding-bottom:15px; border-bottom:1px solid var(--line); }
.oh-help { color:var(--secondary); font-size:12px; line-height:1.65; margin:8px 0; overflow-wrap:anywhere; }
.oh-private { color:var(--secondary); font-size:11px; line-height:1.6; margin:13px 0 0; }
.oh-messages { min-height:190px; max-height:min(48dvh,530px); overflow-y:auto; overscroll-behavior:contain; padding-right:6px; scrollbar-width:thin; }
.oh-empty { padding:40px 0 32px; }
.oh-empty h3 { margin:0; font-size:15px; font-weight:500; }
.oh-empty p { margin:8px 0 0; max-width:310px; font-size:13px; color:var(--secondary); line-height:1.7; }
.oh-message { display:flex; align-items:flex-start; gap:11px; padding:19px 0; }
.oh-message + .oh-message { border-top:1px solid var(--line); }
.oh-speaker { display:grid; place-items:center; flex:none; width:29px; height:29px; border:1px solid var(--line); border-radius:9px; background:var(--wash); color:var(--secondary); font-size:10px; font-weight:600; }
.oh-message.is-helper .oh-speaker { background:var(--accent-soft); color:var(--accent); }
.oh-message > div { min-width:0; }
.oh-message strong { font-size:12px; font-weight:600; }
.oh-message p { margin:7px 0 0; font-size:13px; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
.oh-message small { display:block; margin-top:8px; color:var(--secondary); font-size:11px; line-height:1.5; }
.oh-earlier-guide summary { min-height:44px; padding:12px 0; color:var(--secondary); font-size:12px; line-height:1.65; cursor:pointer; }
.oh-earlier-guide p { margin-top:0; }
.oh-composer { padding-top:18px; border-top:1px solid var(--line); }
.oh-composer label { display:block; margin-bottom:9px; font-size:12px; font-weight:600; }
.oh-composer textarea { display:block; width:100%; min-height:100px; max-height:300px; resize:vertical; padding:12px; border:1px solid var(--line); border-radius:9px; color:var(--ink); background:var(--white); font:inherit; font-size:13px; line-height:1.65; }
.oh-composer-actions { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-top:12px; }
.oh-composer-actions .oh-help { margin:0; max-width:190px; }
.oh-composer-actions .btn { flex:none; }
.oh-review { padding:18px; border:1px solid var(--line); border-radius:10px; background:var(--wash); }
.oh-review h3 { margin:0; font-size:14px; font-weight:600; }
.oh-review-text { padding:14px; margin:14px 0; border:1px solid var(--line); border-radius:8px; background:var(--white); color:var(--ink); font-size:13px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.oh-review-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.oh-error { margin:14px 0 0; color:var(--accent); font-size:12px; line-height:1.65; }
.oh-guest { padding:38px 0 15px; }
.oh-guest h3 { margin:0; font-size:17px; font-weight:500; }
.oh-guest p { color:var(--secondary); margin:10px 0 24px; font-size:13px; line-height:1.75; max-width:340px; }
.oh-guest .oh-text-link { display:flex; width:fit-content; margin-top:10px; }
.oh-latest { display:block; width:fit-content; margin:-4px 0 9px auto; }
.oh-root [hidden] { display:none; }
.oh-root :is(a,button,textarea,summary,[tabindex]):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media(max-width:420px) {
  .topbar { padding-inline:10px; }
  .topbar .brand { font-size:18px; gap:6px; }
  .topbar .brandmark { width:21px; height:21px; }
  .topbar .prototype-badge { display:none; }
  .topbar .rightnav { gap:2px; }
  .topbar .primary-projects { font-size:11px; padding-inline:4px; }
  .topbar .stage-control { gap:4px; padding-inline:4px; font-size:11px; }
}
@media(max-width:760px) {
  .oh-heading { align-items:flex-start; flex-direction:column; gap:8px; padding-bottom:18px; }
  .oh-heading h1 { font-size:23px; }
  .oh-heading p { font-size:13px; }
  .oh-layout { grid-template-columns:minmax(0,1fr); grid-template-areas:"conversation" "guide"; }
  .oh-guide { border-right:0; border-top:1px solid var(--line); padding:19px; }
  .oh-conversation { padding:19px; }
  .oh-messages { max-height:43dvh; }
  .oh-empty { padding:28px 0; }
  .oh-composer-actions { align-items:flex-start; flex-direction:column; gap:10px; }
  .oh-composer-actions .oh-help { max-width:none; }
  .oh-composer-actions .btn,.oh-review-actions .btn { width:100%; }
  .oh-review { padding:14px; }
}


.platform-compatibility {
  --accent: #800000;
  --accent-soft: #f8eeee;
  --secondary: #706663;
  --line: #e8dfdc;
  --white: #fff;
  --wash: #faf7f5;
  --canvas: #fcfaf9;
  min-width: 0;
  color: var(--ink, #28201d);
}
:where(.platform-compatibility) button { border: 0; background: none; }
.platform-compatibility [data-onboarding-help] { margin: 32px auto; padding: 0 24px; }
.platform-compatibility .prototype-review { min-height: calc(100dvh - 80px); }
.platform-compatibility .platform-tool-page .actions { margin-top: 20px; }
.platform-compatibility a,.platform-compatibility button { touch-action: manipulation; }
@media (max-width: 600px) {
  .platform-compatibility [data-onboarding-help] { margin: 20px auto; padding: 0 16px; }
  .platform-compatibility .oh-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* platform-workspace-tools.css */
.workspace-main.is-chat { display:block; }
.workspace-main.is-chat > .workspace-side { display:none; }
#workspace:has(.workspace-main.is-chat) .workspace-header { position:relative; padding-top:18px; }
#workspace:has(.workspace-main.is-chat) .workspace-title { display:contents; }
#workspace:has(.workspace-main.is-chat) .workspace-title > .team-badge,
#workspace:has(.workspace-main.is-chat) .workspace-title > div:not(.workspace-people),
#workspace:has(.workspace-main.is-chat) .workspace-people > .roster,
#workspace:has(.workspace-main.is-chat) .workspace-people > span,
#workspace:has(.workspace-main.is-chat) .workspace-people > button { display:none; }
#workspace:has(.workspace-main.is-chat) .workspace-people { display:contents; }
#workspace:has(.workspace-main.is-chat) .workspace-settings-link { position:absolute; right:32px; top:10px; min-height:36px; padding:8px 12px; font-size:11px; }
#workspace:has(.workspace-main.is-chat) .breadcrumb { max-width:calc(100% - 90px); margin-bottom:18px; }
#workspace:has(.workspace-main.is-chat) .breadcrumb span:last-child { min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#workspace:has(.workspace-main.is-chat) .workspace-tabs { margin-top:0; }
.pc-root { min-width:0; margin:0; }
.pc-root .btn { min-height:42px; height:auto; padding:9px 14px; white-space:normal; }
.pc-root button:disabled { opacity:.55; cursor:default; }
.pc-root :is(button,select,textarea,input,summary):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.pc-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.pc-room-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.pc-room-identity > div { min-width:0; }
.pc-group-avatar { display:grid; place-items:center; flex:none; width:44px; height:44px; background:var(--accent-soft); border:1px solid #ead5d5; border-radius:14px; color:var(--accent); }
.pc-group-avatar svg { width:29px; height:29px; }
.pc-heading h2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:19px; line-height:1.3; overflow-wrap:anywhere; }
.pc-heading p { margin-top:4px; color:var(--secondary); font-size:11px; line-height:1.5; }
.pc-heading-actions { flex:none; }
.pc-heading-actions .btn { font-size:11px; }
.pc-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px 18px; margin-top:14px; padding-bottom:10px; border-bottom:1px solid var(--line); margin-bottom:12px; }
.pc-tools { display:flex; flex-wrap:wrap; gap:6px; }
.pc-tools .icon-button[aria-expanded="true"] { color:var(--berry); border-color:var(--berry); background:#fdf3f1; }
.pc-privacy,.pc-help,.pc-recipient-help { color:var(--secondary); font-size:11px; line-height:1.6; }
.pc-privacy { margin:9px 0 12px; }
.pc-participants { margin-left:auto; min-width:0; }
.pc-participants summary { display:flex; align-items:center; flex-wrap:wrap; gap:7px; min-height:38px; padding:6px 0; cursor:pointer; font-size:11px; font-weight:600; }
.pc-participants summary:before { content:''; width:6px; height:6px; border-right:1.5px solid var(--secondary); border-bottom:1.5px solid var(--secondary); transform:rotate(45deg); margin:0 5px 3px 1px; }
.pc-participants summary > span { color:var(--secondary); font-size:11px; font-weight:400; }
.pc-participants[open] { flex-basis:100%; order:1; padding-bottom:8px; }
.pc-participants[open] summary:before { transform:rotate(225deg); margin-bottom:0; }
.pc-participants-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-top:9px; }
.pc-participants-heading h3 { font-size:12px; }
.pc-participants-heading > span { color:var(--secondary); font-size:11px; }
.pc-participants .pc-help { margin:9px 0; }
.pc-members,.pc-agents { list-style:none; display:flex; flex-wrap:wrap; gap:12px 22px; padding:0; margin:12px 0; }
.pc-members li,.pc-agents li { display:flex; align-items:center; gap:8px; min-width:0; font-size:12px; }
.pc-agents strong { display:block; font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.pc-agent-status { display:block; margin-top:3px; color:var(--secondary); font-size:11px; }
.pc-agent-status.is-listening { color:#315e3c; }
.pc-onboarding { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:10px 13px; border-radius:10px; background:#f6f2ef; margin-bottom:14px; }
.pc-onboarding h3 { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; }
.pc-onboarding .pc-helper-status { color:var(--secondary); font-size:12px; line-height:1.5; margin-top:2px; }
.pc-onboarding .btn { min-height:36px; padding:7px 12px; font-size:12px; flex:none; background:var(--white); }
.pc-chat-surface { display:flex; flex-direction:column; height:max(430px,calc(100dvh - 380px)); border:1px solid #e4dcd6; border-radius:16px; overflow:hidden; background:#f4f0ed; }
.pc-conversation { position:relative; display:flex; flex-direction:column; flex:1; min-height:0; }
.pc-sync-status { align-self:center; margin:10px 0 2px; padding:3px 10px; color:#716760; background:#eae4df; border-radius:6px; font-size:11px; line-height:1.5; }
.pc-messages { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:12px 20px 16px; scrollbar-width:thin; scrollbar-gutter:stable; }
.pc-messages:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; }
.pc-empty { padding:65px 15px; text-align:center; }
.pc-empty h3 { font-size:14px; }
.pc-empty p { margin-top:7px; color:var(--secondary); font-size:12px; }
.pc-message { position:relative; display:flex; align-items:flex-start; gap:9px; margin:0 0 8px; }
.pc-avatar { display:grid; place-items:center; flex:none; width:31px; height:31px; border:1px solid #ded6d0; border-radius:10px; background:#e9e0d9; color:#5d5148; font-size:11px; font-weight:600; }
.pc-message-content { display:flex; flex-direction:column; align-items:flex-start; min-width:0; max-width:min(80%,660px); }
.pc-bubble { max-width:100%; min-width:90px; border:1px solid #e6dfda; border-radius:3px 13px 13px; padding:7px 12px 6px; background:var(--white); box-shadow:0 1px 2px #382a1408; }
/* The name and time share the first line, so a one-line message takes two lines, not three. */
.pc-bubble { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:12px; }
.pc-bubble > * { grid-column:1 / -1; }
.pc-bubble > .pc-message-sender { grid-column:1; grid-row:1; }
.pc-bubble > .pc-message-meta { grid-column:2; grid-row:1; margin:0; }
.pc-message-sender { display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; margin-bottom:2px; }
.pc-message-sender strong { color:#514138; font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.pc-ai-badge { border-radius:4px; padding:1px 4px; background:var(--accent); color:var(--white); font-size:11px; font-weight:600; line-height:1.4; }
.pc-ai-label { color:#75665e; font-size:11px; overflow-wrap:anywhere; }
.pc-message.is-agent > .pc-avatar { color:var(--accent); background:#f9eeee; border-color:#d9b9ba; box-shadow:inset 0 0 0 2px #fff; }
.pc-message.is-agent .pc-bubble { border-top-color:#d7b4b4; }
.pc-message-body { font-size:13px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.pc-message-meta { display:flex; align-items:baseline; justify-content:flex-end; flex-wrap:wrap; gap:5px 10px; margin-top:6px; }
.pc-message time { color:#6f635e; font-size:11px; white-space:nowrap; }
.pc-support-status { color:#77635c; font-size:11px; line-height:1.5; }
.pc-message.is-own { flex-direction:row-reverse; }
.pc-message.is-own .pc-message-content { align-items:flex-end; }
.pc-message.is-own .pc-bubble { border-radius:13px 3px 13px 13px; background:#f3e3e3; border-color:#e9cccc; }
.pc-message.is-own .pc-avatar { color:var(--accent); border-color:#ddc1c0; background:#efdbdb; }
.pc-message.is-own .pc-message-sender strong { color:#7f3035; }
.pc-message-quote { margin:0 0 8px; padding:7px 9px; border-left:2px solid #bb8c8e; border-radius:0 5px 5px 0; background:#f5f1ee; }
.pc-message-quote strong { color:#694c48; font-size:11px; }
.pc-message-quote p { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-top:3px; color:#645850; font-size:11px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.pc-message.is-own .pc-message-quote { background:#ead6d6; }
.pc-reply-label { color:#80585a; font-size:11px; margin:0 0 5px; }
.pc-message-actions { display:flex; flex-wrap:wrap; gap:0 14px; }
.pc-text-button { display:inline-flex; align-items:center; min-height:36px; padding:6px 0; color:var(--secondary); font-size:11px; text-decoration:underline; text-underline-offset:3px; text-decoration-color:#c2b7b1; }
.pc-message-actions .pc-text-button { min-height:28px; font-size:11px; color:#6a5e57; text-decoration-color:transparent; }
.pc-message-actions .pc-text-button:hover { color:var(--accent); text-decoration-color:currentColor; }
/* With a mouse, Reply and Report appear in the empty side of the row on hover or focus, instead of a row under every message. */
@media (hover:hover) and (pointer:fine) {
  .pc-message-actions { position:absolute; z-index:1; top:50%; right:0; transform:translateY(-50%); flex-wrap:nowrap; padding:0 9px; border:1px solid #e4dcd6; border-radius:8px; background:var(--white); box-shadow:0 2px 6px #4c302214; opacity:0; pointer-events:none; transition:opacity .12s; }
  .pc-message.is-own .pc-message-actions { right:auto; left:0; }
  .pc-message:is(:hover,:focus-within) .pc-message-actions { opacity:1; pointer-events:auto; }
  .pc-message-actions .pc-text-button { min-height:24px; padding:3px 0; }
}
.pc-earlier { align-self:center; min-height:36px; }
.pc-new-messages { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); border:1px solid var(--line); border-radius:20px; min-height:40px; padding:9px 16px; background:var(--white); color:var(--accent); box-shadow:0 2px 8px #4c302218; font-size:12px; white-space:nowrap; }
.pc-new-messages:active:not(:disabled) { transform:translateX(-50%) scale(.98); }
.pc-composer { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 10px; padding:10px 14px; border-top:1px solid #e4dcd6; background:var(--white); }
/* "Team only" sits on the Reply from line instead of its own line under the box. */
.pc-routing { display:flex; align-items:center; flex-wrap:wrap; gap:5px 12px; grid-column:1; order:-1; }
.pc-recipient { display:flex; align-items:center; gap:8px; min-width:0; font-size:12px; font-weight:500; white-space:nowrap; }
.pc-recipient select { max-width:min(370px,65vw); min-height:34px; min-width:0; border:1px solid #ded7d1; border-radius:7px; background:#faf8f6; padding:5px 8px; color:var(--ink); font:inherit; font-weight:400; }
.pc-recipient-help { margin:0; font-size:12px; }
.pc-recipient-help:empty { display:none; }
.pc-composer textarea { display:block; resize:vertical; width:100%; min-height:60px; max-height:150px; border:1px solid #dfd8d2; border-radius:12px; padding:10px 12px; background:#fcfbfa; color:var(--ink); line-height:1.6; font-size:13px; grid-column:1; }
.pc-composer-controls { display:contents; }
.pc-composer-controls > span { grid-column:2; order:-1; justify-self:end; display:inline-flex; align-items:center; gap:4px; color:#82766d; font-size:12px; }
.pc-composer-controls .btn { grid-column:2; align-self:end; margin-bottom:1px; font-size:12px; }
.pc-reply-context { display:flex; justify-content:space-between; gap:12px; border-left:2px solid var(--accent); padding:7px 10px; background:var(--accent-soft); font-size:11px; border-radius:0 6px 6px 0; }
#pc-reply-context { grid-column:1 / -1; order:-2; }
#pc-reply-context:empty { display:none; }
.pc-reply-context > span { min-width:0; }
.pc-reply-context small { display:block; margin-top:3px; color:var(--secondary); overflow-wrap:anywhere; }
.pc-reply-context .pc-text-button { flex:none; }
.pc-error { margin:12px 0; padding:13px 15px; border:1px solid #dcbcbc; border-radius:8px; background:var(--accent-soft); color:var(--accent); font-size:12px; line-height:1.6; }
.pc-error .btn { margin-top:10px; }
.pc-helper-control { padding:10px 12px; margin-bottom:12px; border:1px solid var(--line); border-radius:8px; }
.pc-helper-control label { display:flex; align-items:center; gap:8px; min-height:32px; font-size:12px; }
.pc-helper-control input { accent-color:var(--accent); width:16px; height:16px; flex:none; }
.pc-helper-control .pc-help { margin:3px 0 0; }
.pc-connection { padding:18px; margin-bottom:16px; border:1px solid var(--line); background:var(--wash); border-radius:10px; }
.pc-guided-note { max-width:62ch; margin:12px 0 16px; color:var(--secondary); font-size:16px; line-height:1.55; }
.pc-guided-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; }
.pc-guided-actions .btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; text-decoration:none; }
.pc-guided-actions > .btn { background:#800000; border-color:#800000; color:#fff; }
.pc-guided-actions > .btn:hover { background:#6b0000; border-color:#6b0000; }
.pc-guided-actions svg { width:16px; height:16px; }
.pc-guided-status { display:flex; align-items:center; gap:8px; margin:16px 0 0; color:var(--secondary); font-size:14px; line-height:1.5; }
.pc-guided-status.is-ready { color:#315e3c; }
.pc-guided-status.is-ready > span { width:7px; height:7px; flex:none; border-radius:50%; background:currentColor; box-shadow:0 0 0 4px #315e3c10; }
.pc-guided-footnote { max-width:72ch; margin:8px 0 0; color:var(--secondary); font-size:14px; line-height:1.5; }
.pc-guided-prompt { margin:4px 0 0; }
.pc-setup-advanced { margin-top:18px; border-top:1px solid var(--line); }
.pc-setup-advanced > summary { display:flex; align-items:center; gap:9px; min-height:44px; padding:12px 0 0; color:var(--secondary); font-size:14px; cursor:pointer; }
.pc-setup-advanced > summary:after { content:'+'; margin-left:auto; font-size:18px; line-height:1; }
.pc-setup-advanced[open] > summary:after { content:'−'; }
.pc-connection > .pc-help { margin-top:12px; }
.pc-setup-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.pc-setup-heading h3 { font-size:15px; }
.pc-setup-heading label { display:flex; align-items:center; gap:8px; font-size:12px; }
.pc-setup-heading select { min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:var(--white); color:var(--ink); font:inherit; }
.pc-setup-steps { padding-left:20px; margin:20px 0 0; }
.pc-setup-steps > li { padding:0 0 18px 5px; }
.pc-setup-steps > li + li { border-top:1px solid var(--line); padding-top:18px; }
.pc-setup-steps h4 { margin:0 0 9px; font-size:13px; }
.pc-setup-steps .pc-help { margin:8px 0 12px; }
.pc-setup-prerequisites summary,.pc-command-details summary { min-height:44px; padding:12px 0; cursor:pointer; color:var(--secondary); font-size:11px; }
.pc-command-details label { display:block; margin:0 0 7px; color:var(--secondary); font-size:11px; }
.pc-command-details textarea { display:block; width:100%; min-width:0; min-height:90px; resize:vertical; border:1px solid var(--line); border-radius:8px; padding:10px; background:var(--white); color:var(--ink); font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:11px; line-height:1.6; }
.pc-copy-status,.pc-setup-error { color:var(--secondary); font-size:12px; line-height:1.6; }
.pc-setup-error { color:var(--accent); }
.pc-copy-status:empty { display:none; }
.pc-search-form { display:flex; align-items:center; gap:8px; }
.pc-search-form input[type="search"] { flex:1; margin-top:0; }
.pc-search-form .btn { flex:none; }
.pc-search-results { max-height:min(45dvh,500px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.pc-search-results:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.pc-search-status { color:var(--secondary); font-size:12px; line-height:1.6; overflow-wrap:anywhere; margin:12px 0 0; }
.pc-search-status:empty { display:none; }
.pc-search-results:empty { display:none; }
.pc-tool-panel { padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--wash); margin-bottom:16px; min-width:0; }
.pc-panel-heading,.pc-note-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pc-panel-heading h3 { font-size:14px; }
.pc-tool-panel .pc-help { margin:8px 0 12px; }
.pc-tool-panel form { margin-top:14px; }
.pc-tool-panel fieldset { min-width:0; border:0; padding:0; margin:0; }
.pc-tool-panel label { display:block; margin-top:12px; font-size:12px; line-height:1.6; }
.pc-tool-panel input,.pc-tool-panel textarea,.pc-tool-panel select { display:block; width:100%; min-width:0; min-height:44px; margin-top:5px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--white); color:var(--ink); font:inherit; line-height:1.6; }
.pc-tool-panel .pc-file-input[hidden] { display:none; }
.pc-tool-panel textarea { resize:vertical; max-height:350px; }
.pc-tool-panel input:focus-visible,.pc-tool-panel textarea:focus-visible,.pc-tool-panel select:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.pc-note-editor + .pc-note-editor { border-top:1px solid var(--line); margin-top:18px; padding-top:14px; }
.pc-note-heading h4,.pc-review-heading,.pc-memory-note h4 { font-size:12px; font-weight:600; }
.pc-note-editor details { margin-top:8px; }
.pc-tool-panel summary { min-height:44px; padding:12px 0; font-size:11px; color:var(--secondary); cursor:pointer; }
.pc-source-fields { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:12px; }
.pc-panel-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; margin-top:16px; }
.pc-panel-error { color:var(--accent); font-size:12px; line-height:1.6; margin:8px 0; overflow-wrap:anywhere; }
.pc-review-heading { margin:16px 0 8px; }
.pc-review-body { min-width:0; margin:12px 0; border:1px solid var(--line); border-radius:8px; padding:14px; background:var(--white); font:inherit; font-size:12px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.pc-memory-note { white-space:normal; }
.pc-memory-note + .pc-memory-note { border-top:1px solid var(--line); margin-top:14px; padding-top:14px; }
.pc-memory-note p { margin-top:5px; white-space:pre-wrap; }
.pc-memory-note small { display:block; margin-top:5px; color:var(--secondary); font-size:11px; }
.pc-issue-option { margin-top:14px; border-top:1px solid var(--line); }
.pc-message-report { margin-left:0; }


@media(max-width:600px) {
  .workspace-main.is-chat { padding:16px 10px; }
  #workspace:has(.workspace-main.is-chat) .workspace-header { padding:15px 15px 0; }
  #workspace:has(.workspace-main.is-chat) .workspace-settings-link { right:15px; top:10px; min-height:36px; padding:7px 9px; font-size:12px; }
  #workspace:has(.workspace-main.is-chat) .breadcrumb { flex-wrap:wrap; gap:5px; font-size:12px; margin-bottom:12px; }
  .pc-heading { align-items:center; gap:8px; }
  .pc-room-identity { gap:8px; }
  .pc-group-avatar { width:36px; height:36px; border-radius:11px; }
  .pc-group-avatar svg { width:24px; height:24px; }
  .pc-heading h2 { font-size:16px; }
  .pc-heading p { font-size:12px; }
  .pc-heading-actions .btn { min-height:44px; font-size:12px; padding:8px 10px; }
  .pc-toolbar { margin-top:10px; gap:0 8px; }
  .pc-tools { gap:0 8px; }
  .pc-tools .pc-text-button { font-size:12px; min-height:44px; }
  .pc-participants { margin-left:auto; flex-basis:auto; }
  #pc-presence-summary { display:none; }
  .pc-participants[open] { flex-basis:100%; }
  .pc-participants summary { min-height:44px; font-size:12px; }
  .pc-privacy { font-size:12px; margin:0; }
  .pc-onboarding { padding:9px 10px; gap:8px; margin:10px 0; }
  .pc-onboarding .pc-helper-status { font-size:12px; }
  .pc-onboarding .btn { padding:7px 9px; min-height:44px; font-size:12px; }
  .pc-chat-surface { height:clamp(380px,calc(100dvh - 400px),640px); border-radius:12px; }
  .pc-messages { padding:10px 9px 14px; scrollbar-gutter:auto; }
  .pc-message { gap:6px; margin-bottom:10px; }
  .pc-avatar { width:30px; height:30px; border-radius:9px; font-size:12px; }
  .pc-message-content { max-width:calc(100% - 36px); }
  .pc-bubble { padding:9px 10px 7px; }
  .pc-message-body { font-size:13px; }
  .pc-message-actions .pc-text-button { min-height:44px; font-size:12px; }
  .pc-composer { padding:10px; gap:7px; }
  .pc-recipient { font-size:12px; gap:6px; }
  .pc-recipient select { max-width:calc(100vw - 150px); min-height:44px; font-size:12px; }
  .pc-recipient-help { flex-basis:100%; font-size:12px; }
  .pc-composer textarea { min-height:58px; padding:9px 10px; font-size:12px; }
  .pc-composer-controls .btn { min-height:44px; padding:10px; font-size:12px; }
  .pc-composer-controls > span { font-size:12px; }
  .pc-search-form { flex-wrap:wrap; }
  .pc-search-form input[type="search"] { flex-basis:100%; }
  .pc-search-form .btn { width:100%; }
  .pc-tool-panel { padding:14px; }
  .pc-source-fields { grid-template-columns:minmax(0,1fr); gap:0; }
  .pc-panel-actions .btn { width:100%; }
  .pc-participants-heading { align-items:flex-start; flex-direction:column; gap:5px; }
  .pc-connection { padding:14px; }
  .pc-agents { flex-direction:column; }
  .pc-reply-context { flex-wrap:wrap; }
}
@media(max-width:360px) {
  .pc-heading { flex-wrap:wrap; }
  .pc-heading-actions { margin-left:auto; }
  .pc-message-content { max-width:calc(100% - 36px); }
  .pc-recipient select { max-width:calc(100vw - 140px); }
}
.pc-connection .pc-setup-heading h3 { font-size:18px; line-height:1.35; }
.pc-connection .pc-setup-heading label { white-space:nowrap; }
.pc-connection .pc-setup-heading label,
.pc-connection :is(.btn,.pc-text-button,summary,label),
.pc-connection .pc-copy-status,
.pc-connection .pc-setup-error,
.pc-connection .pc-command-details textarea { font-size:14px; }
.pc-connection :is(.btn,.pc-text-button,select) { min-height:44px; }
.pc-connection .pc-help { font-size:14px; }
.pc-connection .pc-setup-steps h4 { font-size:16px; }
@media(max-width:600px) {
  .pc-guided-actions { align-items:stretch; gap:8px; }
  .pc-guided-actions .btn { flex:1 1 100%; }
  .pc-guided-actions .pc-text-button { text-align:left; }
  .pc-guided-note { margin:12px 0 16px; }
}
.pc-composer .info-tip-text { top:auto; bottom:calc(100% + 6px); }

.workspace-main.is-collaboration { display:block; padding:0; }
.workspace-main.is-collaboration > .workspace-side { display:none; }
.collab-feedback:not(:empty) { margin:16px 28px 0; padding:12px 14px; border-left:3px solid var(--accent); background:var(--wash); font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.collab-feedback .collab-error { margin:0 0 10px; }
.collab-root { padding:26px 28px 36px; min-width:0; }
.collab-root h2,.collab-root .collab-page-title { font-size:20px; letter-spacing:-.5px; }
.collab-root p,.collab-root h1,.collab-root h3,.collab-root h4,.collab-root strong,.collab-root a,.collab-root span { overflow-wrap:anywhere; }
.collab-root h3 { font-size:15px; }
.collab-root h4 { font-size:13px; margin:0; }
.collab-root .btn { min-height:44px; height:auto; white-space:normal; padding:11px 14px; line-height:1.4; }
.collab-heading,.collab-section-heading,.collab-row-heading,.collab-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.collab-heading { margin-bottom:20px; }
.collab-heading > div { min-width:0; }
.collab-heading p { color:var(--secondary); font-size:12px; line-height:1.65; margin-top:7px; }
.collab-heading > .btn { flex:none; text-decoration:none; }
.collab-help,.collab-context { color:var(--secondary); font-size:12px; line-height:1.65; }
.collab-context { padding:13px 16px; border:1px solid var(--line); border-radius:8px; background:var(--wash); margin:0 0 24px; }
.collab-messages:empty { display:none; }
.collab-message,.collab-error { font-size:13px; line-height:1.6; padding:12px 14px; margin:0 0 18px; background:var(--wash); border-left:3px solid var(--accent); }
.collab-error { color:var(--accent); border:1px solid #dec3c3; border-radius:8px; background:var(--accent-soft); }
.collab-contribution-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr); gap:28px; align-items:start; }
.collab-main { min-width:0; }
.collab-section-heading { margin:0 0 14px; flex-wrap:wrap; }
.collab-members,.collab-credits { list-style:none; margin:0; padding:0; }
.collab-member { border-bottom:1px solid var(--line); padding:16px 0; }
.collab-member:first-child { padding-top:0; }
.collab-person { display:flex; align-items:center; gap:10px; min-width:0; }
.collab-person > div { min-width:0; }
.collab-person strong { display:block; font-size:13px; }
.collab-person small { color:var(--accent); font-size:10px; font-weight:400; margin-left:4px; }
.collab-person div > span { display:block; color:var(--secondary); font-size:11px; margin-top:3px; }
.collab-avatar { width:32px; height:32px; flex:none; display:grid; place-items:center; background:var(--wash); border:1px solid var(--line); border-radius:50%; font-size:11px; color:var(--secondary); }
.collab-member-facts { display:flex; flex-wrap:wrap; gap:12px 25px; padding:0; margin:13px 0 0 42px; }
.collab-member-facts dt { font-size:10px; color:var(--secondary); margin-bottom:4px; }
.collab-member-facts dd { font-size:12px; margin:0; font-variant-numeric:tabular-nums; }
.collab-member-facts dd span { color:var(--secondary); }
.collab-activity { margin:7px 0 0 42px; }
.collab-root summary { min-height:44px; cursor:pointer; font-size:12px; font-weight:600; display:list-item; align-content:center; }
.collab-root summary::marker { color:var(--secondary); }
.collab-activity summary { font-size:11px; font-weight:400; color:var(--secondary); }
.collab-activity p { font-size:11px; color:var(--secondary); line-height:1.7; margin:0 0 6px; }
.collab-log { margin-top:28px; }
.collab-credit { border:1px solid var(--line); border-radius:10px; padding:16px; margin-top:12px; }
.collab-credit .collab-row-heading { justify-content:flex-start; flex-wrap:wrap; gap:7px; margin-bottom:10px; }
.collab-tag { display:inline-flex; align-items:center; font-size:10px; line-height:1.4; border:1px solid var(--line); border-radius:5px; padding:4px 7px; background:white; color:var(--secondary); }
.collab-tag.is-confirmed { color:#315f43; border-color:#d5e3d7; background:#f4f8f4; }
.collab-tag.is-open { color:var(--accent); border-color:#dfc6c6; background:var(--accent-soft); }
.collab-detail { white-space:pre-wrap; font-size:12px; line-height:1.7; color:var(--secondary); margin:7px 0 0; }
.collab-evidence { display:flex; flex-wrap:wrap; align-items:center; gap:4px 15px; font-size:11px; color:var(--secondary); }
.collab-link { display:inline-flex; align-items:center; gap:6px; min-height:44px; font-size:12px; color:var(--accent); font-weight:600; text-decoration:none; }
.collab-link:hover { text-decoration:underline; text-underline-offset:3px; }
.collab-provenance { color:var(--secondary); font-size:10px; line-height:1.7; margin:4px 0 0; }
.collab-credit > .btn,.collab-credit > .collab-help { margin-top:12px; }
.collab-compose { border:1px solid #e6dada; border-top:3px solid var(--accent); border-radius:10px; background:#faf7f6; padding:20px; min-width:0; }
.collab-form { display:grid; gap:14px; min-width:0; }
.collab-form h3 + .collab-help { margin-top:-7px; }
.collab-form fieldset { border:0; margin:0; padding:0; min-width:0; display:grid; gap:16px; }
.collab-form label,.collab-share > label { display:grid; gap:7px; min-width:0; font-size:12px; font-weight:600; }
.collab-form label > span { display:inline; color:var(--secondary); font-weight:400; }
.collab-form input,.collab-form select,.collab-form textarea,.collab-share-url { width:100%; min-width:0; max-width:100%; min-height:44px; padding:11px 12px; border:1px solid #cfc7c7; border-radius:7px; background:#fff; font:inherit; font-size:13px; font-weight:400; color:var(--ink); }
.collab-form textarea { resize:vertical; line-height:1.6; }
.collab-form label + .collab-help { font-size:11px; margin-top:-9px; }
.collab-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
.collab-form fieldset > .btn { justify-self:start; }
.collab-empty { display:grid; justify-items:center; gap:4px; padding:34px 18px; text-align:center; background:#faf9f8; border:1px solid #ebe4e1; border-radius:9px; }
.collab-empty > .ui-icon { width:26px; height:26px; color:var(--secondary); margin-bottom:6px; }
.collab-empty p { color:var(--secondary); font-size:12px; line-height:1.7; margin-top:6px; max-width:65ch; }
.collab-empty > p:first-child { margin-top:0; }
.collab-limitations { border-top:1px solid var(--line); margin-top:25px; padding-top:6px; }
.collab-limitations ul { color:var(--secondary); font-size:11px; line-height:1.7; padding-left:18px; margin:4px 0 0; }
.collab-root :focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.collab-root :disabled { cursor:wait; opacity:.6; }
.collab-create { border:1px solid #e6dada; border-radius:10px; background:#faf7f6; padding:0 20px; margin-bottom:25px; }
.collab-create > summary { display:flex; align-items:center; gap:8px; min-height:52px; font-size:14px; font-weight:600; color:var(--accent); cursor:pointer; }
.collab-create > summary .ui-icon { width:18px; height:18px; }
.collab-create > .collab-form { padding:7px 0 22px; }
.collab-form .collab-section-heading { margin:3px 0 -10px; }
.collab-option-forms { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.collab-form .collab-option-form { border:1px solid var(--line); border-radius:9px; background:white; padding:15px; gap:13px; }
.collab-option-form legend { font-size:12px; font-weight:600; padding:0 6px; }
.collab-option-form .btn { justify-self:start; }
.collab-actions { justify-content:flex-start; flex-wrap:wrap; }
.collab-polls { display:grid; gap:24px; }
.collab-poll { padding:22px; border:1px solid var(--line); border-radius:12px; min-width:0; }
.collab-poll-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.collab-poll-heading > div { min-width:0; }
.collab-poll-heading .collab-row-heading { justify-content:flex-start; flex-wrap:wrap; gap:10px; margin-bottom:11px; }
.collab-poll-heading h3 { font-size:18px; line-height:1.45; }
.collab-poll-description { white-space:pre-wrap; font-size:13px; color:var(--secondary); line-height:1.7; margin-top:13px; }
.collab-vote-help { margin:13px 0 16px; }
.collab-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.collab-choice { display:flex; flex-direction:column; min-width:0; border:1px solid #ddd6d3; border-radius:9px; padding:17px; }
.collab-choice.is-selected { border-color:var(--accent); background:#fdfafa; box-shadow:inset 0 0 0 1px var(--accent); }
.collab-choice.is-decided { background:#f6f9f5; border-color:#91af98; }
.collab-choice > .collab-row-heading { margin-bottom:12px; flex-wrap:wrap; }
.collab-option-number { width:24px; height:24px; display:grid; place-items:center; background:var(--wash); border-radius:6px; color:var(--secondary); font-size:11px; }
.collab-choice-count { font-size:11px; color:var(--secondary); margin-left:auto; font-variant-numeric:tabular-nums; }
.collab-choice h4 { font-size:14px; line-height:1.5; }
.collab-choice > .collab-link { align-self:flex-start; margin-top:6px; }
.collab-choice > .btn { width:100%; margin-top:auto; }
.collab-choice > .collab-link + .btn,.collab-choice > .collab-help + .btn { margin-top:8px; }
.collab-your-vote { margin-top:8px; color:var(--accent); font-size:12px; }
.collab-comments { border-top:1px solid var(--line); margin-top:22px; padding-top:20px; }
.collab-comments .collab-section-heading { margin-bottom:10px; }
.collab-comments .collab-section-heading > h2,.collab-comments .collab-section-heading > h4 { font-size:14px; letter-spacing:0; }
.collab-comment-list { list-style:none; margin:0; padding:0; }
.collab-comment { padding:14px 0; border-bottom:1px solid var(--line); min-width:0; }
.collab-comment:first-child { padding-top:0; }
.collab-comment-heading { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 12px; }
.collab-comment-heading strong { font-size:12px; }
.collab-comment-heading time { font-size:10px; color:var(--secondary); }
.collab-comment-body { white-space:pre-wrap; font-size:13px; line-height:1.7; margin:7px 0 0; }
.collab-no-comments { margin:0; }
.collab-comment-form { margin-top:18px; max-width:680px; }
.collab-share { display:flex; flex-wrap:wrap; align-items:center; gap:10px 15px; margin-top:20px; padding-top:17px; border-top:1px solid var(--line); }
.collab-share > label { flex:1; min-width:180px; }
.collab-share > .collab-help:last-child { flex-basis:100%; font-size:11px; }
.collab-share-url { font-size:12px; }
.collab-close { border-top:1px solid var(--line); padding-top:5px; margin-top:16px; }
.collab-close .collab-form { max-width:620px; margin:8px 0 0; }
.collab-decision { border-left:3px solid #759780; background:#f6f9f5; padding:14px 16px; margin-top:20px; }
.collab-decision > p { font-size:12px; margin-top:6px; }
.collab-shared { max-width:940px; margin:22px auto; padding:28px; background:white; border:1px solid var(--line); border-radius:14px; }
.collab-brand { display:inline-flex; align-items:center; flex-wrap:wrap; gap:12px; min-height:44px; font-size:20px; font-weight:700; color:var(--accent); text-decoration:none; margin-bottom:20px; }
.collab-brand span { font-size:11px; font-weight:400; color:var(--secondary); border-left:1px solid var(--line); padding-left:12px; }
.collab-shared-project { font-size:12px; color:var(--secondary); margin-bottom:12px; }
.collab-shared .collab-poll { padding:0; border:0; border-radius:0; }
.collab-shared h1 { font-size:25px; letter-spacing:-.7px; line-height:1.35; }
.collab-signin { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-top:20px; border-top:1px solid var(--line); padding-top:20px; }
.collab-signin p { font-size:12px; color:var(--secondary); }
.collab-signin a { text-decoration:none; }
@media(max-width:1100px) { .collab-contribution-layout { grid-template-columns:minmax(0,1fr); } .collab-compose { max-width:720px; } }
@media(max-width:600px) {
  .collab-root { padding:20px 16px 28px; }
  .collab-heading { align-items:flex-start; flex-wrap:wrap; gap:12px; }
  .collab-heading > .btn { padding:9px 12px; }
  .collab-fields,.collab-choice-grid,.collab-option-forms { grid-template-columns:minmax(0,1fr); }
  .collab-member-facts { margin-left:0; gap:14px 20px; }
  .collab-activity { margin-left:0; }
  .collab-compose,.collab-poll { padding:17px; }
  .collab-credit { padding:15px; }
  .collab-create { padding:0 15px; }
  .collab-choice { padding:15px; }
  .collab-share > label { flex-basis:100%; min-width:0; }
  .collab-shared { margin:10px 0; border-radius:10px; padding:20px 16px; }
  .collab-shared h1 { font-size:22px; }
}
@media(prefers-reduced-motion:reduce) { .collab-root * { animation:none!important; transition:none!important; scroll-behavior:auto!important; } .collab-root button:active { transform:none!important; } }
.collab-dashboard { border:1px solid var(--line); border-radius:12px; padding:22px; margin-bottom:28px; }
.collab-dashboard > .collab-section-heading { align-items:flex-start; margin-bottom:12px; }
.collab-dashboard h3 + p { margin:6px 0 0; }
.collab-scope { display:flex; flex-wrap:wrap; gap:4px; border:1px solid var(--line); border-radius:8px; padding:3px; background:var(--wash); }
.collab-scope .btn { border:0; background:transparent; color:var(--secondary); min-height:38px; font-size:11px; padding:8px 10px; }
.collab-scope .btn[aria-pressed="true"] { background:var(--paper,#fff); color:var(--ink); box-shadow:0 1px 3px #00000012; }
.collab-live { display:flex; flex-wrap:wrap; align-items:center; gap:5px 18px; font-size:10px; color:var(--secondary); margin-bottom:20px; }
.collab-live-label { display:inline-flex; align-items:center; gap:6px; }
.collab-live-label::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--secondary); flex:none; }
.collab-live[data-live-status="live"] .collab-live-label::before { background:#527a62; }
.collab-live[data-live-status="offline"] .collab-live-label::before { background:var(--accent); }
.collab-metric-total { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; margin:0 0 19px; font-variant-numeric:tabular-nums; }
.collab-metric-total strong { font-size:22px; letter-spacing:-.5px; }
.collab-metric-total > span { font-size:12px; color:var(--secondary); }
.collab-metric-empty { font-size:12px; line-height:1.65; padding:13px 16px; background:var(--wash); border-radius:7px; margin:0 0 18px; }
.collab-shares { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:16px 26px; list-style:none; padding:0; margin:0 0 20px; }
.collab-share-person { min-width:0; }
.collab-share-person-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; font-size:12px; margin-bottom:9px; }
.collab-share-person-heading > span { display:flex; align-items:center; gap:7px; min-width:0; }
.collab-share-person-heading strong { flex:none; font-size:20px; font-variant-numeric:tabular-nums; letter-spacing:-.5px; }
.collab-person-dot { width:7px; height:7px; border-radius:50%; flex:none; }
.collab-share-track { height:5px; background:var(--wash); border:1px solid var(--line); border-radius:4px; overflow:hidden; }
.collab-share-track > span { display:block; height:100%; border-radius:4px; }
.collab-share-person > p { margin:6px 0 0; font-size:10px; }
.collab-dashboard [data-person-color="0"] { background:#96704c; }
.collab-dashboard [data-person-color="1"] { background:#617f87; }
.collab-dashboard [data-person-color="2"] { background:#777957; }
.collab-dashboard [data-person-color="3"] { background:#8b718a; }
.collab-dashboard [data-person-color="4"] { background:#a47870; }
.collab-metric-basis { border-top:1px solid var(--line); padding-top:14px; margin-bottom:5px; }
.collab-credit-size { color:var(--secondary); font-size:10px; margin:5px 0 0; }
.collab-developments { margin-bottom:30px; }
.collab-development-list { margin:0; padding:0; list-style:none; }
.collab-development { border-left:2px solid var(--line); padding:0 0 20px 17px; margin-left:4px; }
.collab-development:last-child { padding-bottom:0; }
.collab-development .collab-row-heading { justify-content:flex-start; gap:8px 12px; flex-wrap:wrap; margin-bottom:7px; }
.collab-development time { color:var(--secondary); font-size:10px; }
.collab-development h4 { font-size:13px; line-height:1.6; font-weight:500; white-space:pre-wrap; }
.collab-development-detail { font-size:12px; color:var(--secondary); line-height:1.65; white-space:pre-wrap; margin:5px 0 0; }
.collab-development > .collab-help { font-size:10px; margin:5px 0 0; }
@media(max-width:600px) {
  .collab-dashboard { padding:17px; }
  .collab-dashboard > .collab-section-heading { display:block; }
  .collab-scope { width:max-content; max-width:100%; margin-top:14px; }
  .collab-scope .btn { min-height:44px; }
  .collab-live { margin-top:15px; }
  .collab-shares { grid-template-columns:minmax(0,1fr); }
}

.collab-project-links { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }

.ko-root { min-width: 0; color: var(--ink); }
.ko-room-symbol { display: inline-grid; place-items: center; width: 35px; height: 35px; border: 1px solid #ead9d9; background: var(--accent-soft); border-radius: 10px; color: var(--accent); grid-row: 1 / span 2; margin-top: 1px; }
.ko-heading > div:has(.ko-room-symbol) { display:grid; grid-template-columns:35px minmax(0,1fr); column-gap:12px; }
.ko-heading > div:has(.ko-room-symbol) > p { grid-column:2; }
.ko-reply-count { display: inline-flex; align-items: center; gap: 5px; color: var(--secondary); font-size: 11px; }
.ko-reply-count svg { width: 13px; height: 13px; }
.ko-idea-row:hover, .ko-idea-row:focus-within { background: #fcf8f8; border-left-color: var(--accent); }
.ko-idea-row:hover .ko-kind-icon { transform: translateY(-2px); }
.ko-idea-row[data-kind="problem"] .ko-kind-icon { background: #f1f0ee; color: var(--ink); }
.ko-mini-steps li:not(:last-child):after { content: ''; position: absolute; top: 24px; left: 10px; bottom: -15px; width: 1px; background: #e2d6d6; }
.ko-button:active { transform: translateY(1px); }
@media(prefers-reduced-motion:reduce) { .ko-idea-row, .ko-kind-icon { transition: none; } .ko-idea-row:hover .ko-kind-icon, .ko-button:active { transform: none; } }
.ko-room { max-width: 1230px; margin: 0 auto; padding: 27px 30px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.ko-root h1, .ko-root h2, .ko-root h3 { font-family: inherit; letter-spacing: -.025em; }
.ko-root h1 { font-size: 26px; line-height: 1.3; }
.ko-root h2 { font-size: 19px; line-height: 1.4; }
.ko-root h3 { font-size: 15px; line-height: 1.5; }
.ko-root p { line-height: 1.65; }
.ko-root button, .ko-root a, .ko-root input, .ko-root textarea, .ko-root select { -webkit-tap-highlight-color: transparent; }
.ko-root button:focus-visible, .ko-root a:focus-visible, .ko-root input:focus-visible, .ko-root textarea:focus-visible, .ko-root select:focus-visible, .ko-root summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ko-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.ko-heading p { margin-top: 5px; color: var(--secondary); font-size: 13px; }
.ko-room > .ko-link:first-child { margin-bottom: 17px; }
.ko-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 14px; border: 1px solid #ccc7c7; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; }
.ko-button:hover:not(:disabled) { background: #f7f5f5; border-color: #a69c9c; }
.ko-button.ko-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.ko-button.ko-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.ko-button:disabled, .ko-root fieldset:disabled .ko-button { opacity: .55; cursor: default; }
.ko-link { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--accent); }
.ko-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ko-link svg { width: 15px; height: 15px; }
.ko-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.ko-help, .ko-root .ko-help { color: var(--secondary); font-size: 12px; line-height: 1.6; margin-top: 11px; }
.ko-meta { color: var(--secondary); font-size: 11px; line-height: 1.5; }
.ko-label { display: inline-flex; align-items: center; border: 1px solid var(--line); padding: 3px 7px; border-radius: 5px; font-size: 10px; line-height: 1.4; font-weight: 500; color: var(--secondary); }
.ko-room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 38px; align-items: start; }
.ko-main { min-width: 0; }
.ko-aside { border-left: 1px solid var(--line); padding-left: 26px; min-width: 0; }
.ko-aside h2 { font-size: 14px; }
.ko-aside p { color: var(--secondary); font-size: 12px; margin-top: 8px; }
.ko-aside > .ko-link { margin-top: 12px; line-height: 1.5; }
.ko-mini-steps { list-style: none; counter-reset: steps; margin: 19px 0 20px; padding: 0; display: grid; gap: 20px; }
.ko-mini-steps li { counter-increment: steps; position: relative; padding-left: 29px; font-size: 12px; }
.ko-mini-steps li:before { content: counter(steps); position: absolute; left: 0; top: 0; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #d8d0d0; border-radius: 5px; font-size: 10px; color: var(--accent); }
.ko-mini-steps strong { display: block; font-weight: 600; margin-bottom: 4px; }
.ko-mini-steps span { display: block; color: var(--secondary); font-size: 11px; line-height: 1.6; }
.ko-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.ko-filters { display: inline-flex; gap: 4px; }
.ko-filters button { min-height: 36px; padding: 7px 12px; font-size: 12px; border-radius: 7px; }
.ko-filters button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ko-filters button:hover { background: var(--wash); }
.ko-idea-row { transition: background 160ms ease, border-color 160ms ease; display: flex; gap: 15px; align-items: flex-start; padding: 22px 12px; border-left: 2px solid transparent; border-bottom: 1px solid var(--line); }
.ko-kind-icon { transition: transform 160ms ease; flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: #f7f5f5; color: var(--accent); margin-top: 4px; }
.ko-idea-copy { flex: 1; min-width: 0; }
.ko-idea-copy h2 { margin: 3px 0; }
.ko-idea-copy h2 a { color: var(--ink); font-size: 15px; font-weight: 650; min-height: 30px; overflow-wrap: anywhere; }
.ko-idea-copy > p { color: var(--secondary); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; overflow-wrap: anywhere; }
.ko-idea-row > .ko-link { flex: none; align-self: center; min-width: 44px; min-height: 44px; justify-content: center; }
.ko-empty { padding: 40px 15px; text-align: center; }
.ko-empty h2 { font-size: 16px; margin-bottom: 8px; }
.ko-empty p { font-size: 13px; color: var(--secondary); }
.ko-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 17px; }
.ko-form label, .ko-copy-fallback label { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 600; min-width: 0; }
.ko-form input:not([type="checkbox"]), .ko-form textarea, .ko-form select, .ko-copy-fallback textarea { display: block; width: 100%; border: 1px solid #ccc7c7; background: #fff; border-radius: 7px; padding: 10px 12px; font-family: inherit; font-size: 13px; line-height: 1.5; font-weight: 400; color: var(--ink); min-width: 0; }
.ko-form input:not([type="checkbox"]), .ko-form select { min-height: 43px; }
.ko-form textarea, .ko-copy-fallback textarea { resize: vertical; }
.ko-form fieldset:disabled input, .ko-form fieldset:disabled textarea, .ko-form fieldset:disabled select { background: #fafafa; color: #666; }
.ko-form .ko-actions { margin-top: 0; }
.ko-post-form { border: 1px solid #ddcccc; background: #fcfafa; border-radius: 10px; padding: 20px; margin-bottom: 24px; }
.ko-post-form h2 { font-size: 16px; margin-bottom: 18px; }
.ko-post-form label:first-child { max-width: 200px; }
.ko-mobile-thread-actions { display: none; }
.ko-original { padding: 5px 0 25px; border-bottom: 1px solid var(--line); }
.ko-original h1 { margin: 8px 0 15px; font-size: 25px; overflow-wrap: anywhere; }
.ko-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.ko-discussion-heading { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 9px; }
.ko-discussion-heading h2 { font-size: 16px; }
.ko-comment { padding: 17px 0; border-bottom: 1px solid var(--line); }
.ko-comment-heading { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 9px; font-size: 12px; }
.ko-comment-heading strong { overflow-wrap: anywhere; }
.ko-comment-heading time { margin-left: auto; font-size: 10px; color: var(--secondary); }
.ko-empty-thread { font-size: 12px; color: var(--secondary); padding: 12px 0; }
.ko-composer { margin-top: 24px; }
.ko-composer-footer { display: flex; justify-content: space-between; gap: 14px; align-items: end; }
.ko-form label.ko-source { flex-direction: row; align-items: center; font-size: 11px; color: var(--secondary); font-weight: 400; }
.ko-source select { width: auto; font-size: 11px; min-height: 40px; }
.ko-aside-divider { height: 1px; background: var(--line); margin: 24px 0; }
.ko-claude-panel .ko-actions { gap: 8px; }
.ko-claude-panel .ko-button { font-size: 11px; }
.ko-claude-panel > .ko-button { margin-top: 15px; }
.ko-linked-projects { display: grid; margin-top: 9px; }
.ko-linked-projects .ko-link { overflow-wrap: anywhere; }
.ko-create-layout { display: grid; grid-template-columns: minmax(0, 620px) minmax(180px, 255px); gap: 48px; }
.ko-create-form fieldset > .ko-button { justify-self: start; margin-top: 4px; }
.ko-create-aside { padding-top: 1px; }
.ko-privacy { display: flex; gap: 7px; align-items: center; font-size: 12px; color: var(--accent); font-weight: 600; }
.ko-create-aside h2 { margin-top: 27px; }
.ko-creation-steps { display:flex; flex-wrap:wrap; gap:12px 30px; list-style:none; padding:0 0 22px; margin:0 0 24px; border-bottom:1px solid var(--line); color:var(--secondary); font-size:12px; }
.ko-creation-steps li { display:flex; align-items:center; gap:9px; }
.ko-creation-steps li span { display:grid; place-items:center; width:25px; height:25px; border:1px solid var(--line); border-radius:50%; font-size:11px; }
.ko-creation-steps [aria-current] { color:var(--accent); font-weight:600; }
.ko-creation-steps [aria-current] span { background:var(--accent); color:white; border-color:var(--accent); }
.ko-discovery-intro h2 { font-size:21px; }
.ko-discovery-intro p { color:var(--secondary); font-size:13px; margin:6px 0 20px; }
.ko-discovery-search { display:flex; align-items:end; gap:12px; max-width:850px; }
.ko-discovery-search label { flex:1; }
.ko-discovery-search .ko-button { min-height:44px; }
.ko-discovery-summary { border-left:3px solid var(--accent); padding:3px 0 3px 15px; margin:28px 0 20px; }
.ko-discovery-summary strong { font-size:15px; }
.ko-discovery-summary p { font-size:12px; color:var(--secondary); margin-top:3px; overflow-wrap:anywhere; }
.ko-discovery-results section { margin-top:24px; }
.ko-discovery-results h3 { display:flex; gap:8px; align-items:center; margin-bottom:10px; }
.ko-discovery-results h3 > span { font-weight:400; font-size:11px; color:var(--secondary); border:1px solid var(--line); border-radius:5px; padding:0 5px; }
.ko-discovery-list { border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.ko-discovery-item { display:flex; gap:15px; padding:18px; }
.ko-discovery-item + .ko-discovery-item { border-top:1px solid var(--line); }
.ko-discovery-mark { display:grid; place-items:center; flex:none; width:36px; height:36px; border:1px dashed #c4b7b7; border-radius:9px; color:var(--accent); background:#faf7f7; font-size:20px; }
.ko-discovery-item > div { min-width:0; flex:1; }
.ko-discovery-item h4 { font-size:15px; overflow-wrap:anywhere; }
.ko-discovery-item p { color:var(--secondary); font-size:12px; margin:5px 0 9px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.ko-discovery-facts { list-style:none; display:flex; flex-wrap:wrap; gap:5px 16px; padding:0; margin:0; font-size:11px; color:var(--secondary); }
.ko-discovery-facts li:first-child { color:var(--ink); font-weight:600; }
.ko-discovery-links { display:flex; flex-wrap:wrap; gap:4px 22px; margin-top:6px; }
.ko-discovery-links .ko-link { min-height:44px; }
.ko-discovery-next { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px; background:var(--wash); border:1px solid var(--line); border-radius:10px; padding:20px; margin-top:28px; }
.ko-discovery-next strong { font-size:14px; }
.ko-discovery-next p { color:var(--secondary); font-size:12px; margin-top:4px; }
.ko-discovery-next .ko-button { min-height:44px; white-space:normal; }
.ko-create-back { margin:-10px 0 22px; }
@media(max-width:600px) {
  .ko-discovery-search { flex-direction:column; align-items:stretch; }
  .ko-creation-steps { gap:10px; font-size:10px; }
  .ko-creation-steps li { gap:5px; }
  .ko-creation-steps li span { width:22px; height:22px; }
  .ko-discovery-intro h2 { font-size:19px; }
  .ko-discovery-item { padding:14px 12px; gap:10px; }
  .ko-discovery-mark { width:28px; height:28px; font-size:17px; }
  .ko-discovery-next { padding:16px; }
  .ko-discovery-next .ko-button { width:100%; }
}
.ko-brief { padding: 14px 17px; background: #faf9f9; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 20px; }
.ko-brief summary { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 600; cursor: pointer; list-style: none; }
.ko-brief summary:before { content: '+'; font-size: 16px; color: var(--secondary); }
.ko-brief[open] summary:before { content: '−'; }
.ko-brief dl { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 10px 15px; font-size: 12px; padding-top: 13px; border-top: 1px solid var(--line); margin: 14px 0 0; }
.ko-brief dt { color: var(--secondary); }
.ko-brief dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.ko-setup-list { max-width: 920px; }
.ko-setup-step { display: flex; gap: 16px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.ko-setup-step:first-child { padding-top: 5px; }
.ko-setup-step:last-child { border: 0; }
.ko-step-number { width: 27px; height: 27px; flex: none; border: 1px solid #ddcaca; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--accent); }
.ko-step-content { flex: 1; min-width: 0; }
.ko-step-heading { display: flex; align-items: center; gap: 10px; margin: 2px 0 9px; }
.ko-step-content > p { font-size: 12px; color: var(--secondary); }
.ko-repository { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.ko-repository strong { overflow-wrap: anywhere; }
.ko-repository > .ko-link { margin-left: auto; }
.ko-repo-form { margin-top: 16px; }
.ko-repo-form fieldset { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) auto; gap: 9px; align-items: end; }
.ko-repo-form label { min-width: 0; }
.ko-repo-form .ko-button { white-space: nowrap; }
.ko-release-branch { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.ko-release-branch code { color: var(--ink); overflow-wrap: anywhere; }
.ko-repo-links { margin-top: 9px; }
.ko-account { margin-top: 11px; font-size: 12px; }
.ko-config-note { margin-top: 8px; font-size: 11px; color: var(--secondary); }
.ko-config-note summary { cursor: pointer; min-height: 32px; }
.ko-config-note p { max-width: 600px; }
.ko-rules-strip { display: flex; gap: 0 20px; flex-wrap: wrap; margin-top: 17px; font-size: 11px; color: var(--secondary); }
.ko-rules-strip span:before { content: '✓'; color: var(--accent); margin-right: 6px; }
.ko-starter-files { margin-top: 19px; border-top: 1px solid var(--line); padding-top: 4px; }
.ko-starter-files > div { display: flex; gap: 7px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ko-starter-files code { font-size: 12px; margin-right: auto; overflow-wrap: anywhere; }
.ko-starter-files .ko-button { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.ko-security-status { display: flex; gap: 12px; align-items: center; padding: 15px 17px; background: #faf8f8; border: 1px solid #e5dddd; border-radius: 9px; }
.ko-status-mark { color: var(--accent); }
.ko-security-status strong { font-size: 13px; }
.ko-security-status p { color: var(--secondary); font-size: 11px; margin-top: 3px; }
.ko-security-status > code { margin-left: auto; color: var(--secondary); font-size: 11px; }
.ko-review-disclaimer { max-width: 760px; }
.ko-checklist { margin: 20px 0 5px; max-width: 850px; border-top: 1px solid var(--line); }
.ko-check { padding: 18px 0; border-bottom: 1px solid var(--line); }
.ko-form label.ko-check-label { flex-direction: row; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.ko-check input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.ko-form label.ko-evidence { margin: 12px 0 0 28px; font-size: 11px; font-weight: 400; color: var(--secondary); }
.ko-evidence textarea { font-size: 12px; }
.ko-manager-review { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 25px; }
.ko-manager-review p { font-size: 12px; color: var(--secondary); margin-top: 6px; }
.ko-security-next { margin-top: 14px; }
.ko-error { border: 1px solid #d6aaaa; border-radius: 8px; padding: 13px 15px; margin: 0 0 20px; background: #fcf5f5; font-size: 12px; }
.ko-error .ko-button { margin-top: 10px; min-height: 36px; }
.ko-loading { color: var(--secondary); font-size: 12px; padding: 12px 0 22px; }
.ko-copy-fallback { border: 1px solid #cfc5c5; border-radius: 8px; padding: 16px; margin-top: 20px; }
.ko-copy-fallback .ko-button { margin-top: 10px; }
@media(max-width:900px) {
  .ko-room { padding: 23px; }
  .ko-room-grid { grid-template-columns: minmax(0,1fr) 210px; gap: 24px; }
  .ko-aside { padding-left: 20px; }
  .ko-create-layout { gap: 28px; grid-template-columns: minmax(0,1fr) 210px; }
  .ko-open-label { display: none; }
  .ko-idea-row > .ko-link { padding: 0 5px; }
  .ko-composer-footer { flex-wrap: wrap; }
}
@media(max-width:650px) {
  .ko-room { padding: 20px 17px; border-radius: 14px; }
  .ko-root h1 { font-size: 23px; }
  .ko-heading { gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
  .ko-heading p { font-size: 12px; }
  .ko-heading > .ko-button { min-height: 42px; }
  .ko-room-grid, .ko-create-layout { display: flex; flex-direction: column; gap: 28px; }
  .ko-main, .ko-create-form { width: 100%; }
  .ko-aside { width: 100%; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .ko-thread-grid > .ko-aside { padding: 15px; border: 1px solid var(--line); border-radius: 9px; }
  .ko-mobile-thread-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
  .ko-thread-grid > .ko-aside > h2, .ko-thread-grid > .ko-aside > h2 + p, .ko-thread-grid > .ko-aside > .ko-link, .ko-thread-grid > .ko-aside > .ko-aside-divider:first-of-type { display: none; }
  .ko-thread-grid > .ko-aside .ko-aside-divider { margin: 16px 0; }
  .ko-mini-steps { gap: 15px; }
  .ko-create-aside { order: -1; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #faf9f9; }
  .ko-create-aside h2, .ko-create-aside h2 + p, .ko-create-aside .ko-help { display: none; }
  .ko-post-form { padding: 16px; }
  .ko-idea-row { gap: 10px; padding: 19px 0; }
  .ko-kind-icon { width: 30px; height: 30px; border-radius: 7px; }
  .ko-idea-copy h2 a { font-size: 14px; }
  .ko-list-toolbar { gap: 7px; flex-wrap: wrap; }
  .ko-list-toolbar > .ko-meta { font-size: 10px; }
  .ko-filters { gap: 1px; }
  .ko-filters button { padding: 7px 10px; min-height: 38px; }
  .ko-comment-heading { gap: 7px; }
  .ko-form label.ko-source { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ko-source select { max-width: 180px; }
  .ko-composer-footer { align-items: end; }
  .ko-setup-step { gap: 11px; }
  .ko-step-number { width: 24px; height: 24px; font-size: 11px; }
  .ko-repo-form fieldset { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .ko-repo-form .ko-button { justify-self: start; }
  .ko-repository { gap: 7px; }
  .ko-repository > .ko-link { margin-left: 0; }
  .ko-rules-strip { gap: 7px 14px; }
  .ko-starter-files > div { flex-wrap: wrap; }
  .ko-starter-files code { flex-basis: 100%; }
  .ko-security-status { padding: 13px; }
  .ko-security-status > code { display: none; }
  .ko-brief dl { grid-template-columns: 1fr; gap: 5px; }
  .ko-brief dd { margin-bottom: 8px; }
  .ko-form label.ko-evidence { margin-left: 0; }
  .ko-form input:not([type="checkbox"]), .ko-form textarea, .ko-form select { font-size: 16px; }
  .ko-form .ko-source select { font-size: 12px; }
  .ko-form input, .ko-form textarea { scroll-margin: 30px; }
}
@media(prefers-reduced-motion:reduce) { .ko-root * { transition: none !important; } }


.platform-workspace-tools {
  --accent: var(--berry, #800000);
  --accent-hover: var(--berry-hover, #990f12);
  --accent-soft: var(--rose, #f3e9e5);
  --secondary: var(--muted, #746b66);
  --wash: var(--bg, #fbf9f7);
  --white: var(--surface, #fff);
  --paper: var(--surface, #fff);
  min-width: 0;
}
:where(.platform-workspace-tools) button { border: 0; background: none; }
.platform-workspace-tools .ko-root { max-width: none; margin: 0; }
.platform-workspace-tools .ko-room { padding: 0; }
.platform-workspace-tools .ko-heading h1,
.platform-workspace-tools .ko-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.platform-workspace-tools .pc-root,
.platform-workspace-tools .collab-root { min-width: 0; }
@media (max-width: 640px) {
  .platform-workspace-tools .ko-create-layout { grid-template-columns: minmax(0, 1fr); }
}

/* team-options.css */
.team-options.journey-team-invite {
  --team-accent: var(--berry, #800000);
  --team-line: var(--line, #e4ddd7);
  --team-muted: var(--muted, #6d625e);
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.team-option-search { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.team-option-search input { flex: 1 1 100px; }
.team-option-search > .btn { flex: 0 0 auto; }
.team-on-team { flex-shrink: 0; color: #3d6e53; font-size: 13px; font-weight: 600; }
.team-option-help, .team-option-empty { margin: 12px 0 0; color: var(--team-muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.team-option-help a { color: var(--team-accent); text-underline-offset: 3px; }
.team-invite-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--team-line); }
.team-invite-result > strong { display: block; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.team-invite-result .journey-invite-link { gap: 10px; margin-top: 10px; }
.team-option-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.team-option-actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
.team-share-option { display: grid; justify-items: start; gap: 12px; margin-top: 16px; }
.team-share-result { width: 100%; min-width: 0; }
.team-share-result label { margin-bottom: 8px; }
.team-revoke-link { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--team-muted); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.team-revoke-link:focus-visible { outline: 2px solid var(--team-accent); outline-offset: 3px; border-radius: 3px; }
.team-revoke-link:disabled { cursor: default; opacity: .6; }
.team-join-mode { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.team-mode-choice:has(input:checked) { border-color: var(--team-accent); background: #f8eeee; color: var(--team-accent); }
.team-mode-choice:has(input:disabled), .team-role-choice:has(input:disabled) { opacity: .65; cursor: default; }
.team-mode-choice:has(input:focus-visible), .team-role-choice:has(input:focus-visible) { outline: 2px solid var(--team-accent); outline-offset: 3px; }
.team-role-choice:has(input:focus-visible) { border-radius: 4px; }
.team-join-roles { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.team-join-roles legend { margin-bottom: 8px; padding: 0; color: #493d38; font-size: 14px; font-weight: 600; line-height: 1.5; }
.team-role-choices { display: flex; flex-wrap: wrap; gap: 0 18px; }
.team-role-choice span { overflow-wrap: anywhere; }
.team-custom-role { display: grid; gap: 6px; width: min(100%, 360px); margin-top: 10px; }
.team-join-actions { display: flex; margin-top: 12px; }
.team-options-success { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; background: #edf5ef; color: #2c6041; font-size: 14px; line-height: 1.5; }
.team-options-error:not(:empty) { margin-top: 16px; }
.team-options .form-error:empty { display: none; }
@media (max-width: 600px) {
  .team-option-search { flex-wrap: wrap; }
  .team-option-search input { flex-basis: 100%; }
  .team-option-search > .btn { width: 100%; justify-content: center; }
}

/* aurora-helper.css */
/* The visual guide leads into questions and support. */
.aurora-helper { max-width: 1100px; margin: 0 auto; color: var(--ink, #2b2523); }
.aurora-helper :is(button, textarea, input, a):focus-visible { outline: 2px solid var(--berry, #800000); outline-offset: 3px; }
.aurora-helper button:disabled { opacity: .6; cursor: default; }
.aurora-helper .btn { min-height: 44px; flex-shrink: 0; gap: 10px; }
.aurora-helper-hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; margin-bottom: 28px; }
.aurora-helper-hero-main { min-width: 0; }
.aurora-helper-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.aurora-helper-status { display: inline-flex; align-items: center; gap: 6px; }
.aurora-helper-title h2 { margin: 0 6px 0 0; font-size: 24px; font-weight: 680; line-height: 1.2; letter-spacing: -0.026em; }
.aurora-helper-mode { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 11px; border: 1px solid var(--line, #e5dcd8); border-radius: 999px; background: var(--surface, #fff); color: var(--ink-soft, #51413b); font-size: 14px; font-weight: 550; }
.aurora-helper-mode::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint, #a39791); }
.aurora-helper-mode.is-live::before { background: #2f7a52; }

/* The question box: one line that grows with the question, with Ask inside it. */
.aurora-helper-ask { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 4px; border: 1px solid var(--line-strong, #d8ccc6); border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 1px 2px #1a17150f, 0 10px 28px -18px #1a171540; transition: border-color .2s, box-shadow .2s; }
.aurora-helper-ask:focus-within { border-color: var(--berry, #800000); box-shadow: 0 0 0 4px #80000014, 0 10px 28px -18px #1a171540; }
.aurora-helper-ask textarea { flex: 1 1 auto; min-width: 0; min-height: 44px; max-height: 40vh; field-sizing: content; resize: none; padding: 11px 12px; border: 0; background: transparent; color: var(--ink, #302625); font: inherit; font-size: 16px; line-height: 1.45; }
.aurora-helper-ask textarea:focus, .aurora-helper-ask textarea:focus-visible { outline: none; }
.aurora-helper-ask textarea::placeholder { color: var(--muted, #756863); opacity: 1; }
.aurora-helper-ask textarea[readonly] { color: var(--muted, #6b625e); }
.aurora-helper-ask .btn { border-radius: 13px; }
.aurora-helper-hint { margin: 10px 4px 0; color: var(--muted, #6b5f58); font-size: 14px; line-height: 1.5; }
.aurora-helper .aurora-helper-consent { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 12px 4px 0; color: var(--ink-soft, #51413b); font-size: 14px; font-weight: 400; line-height: 1.55; cursor: pointer; }
.aurora-helper .aurora-helper-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--berry, #800000); }

/* Reviewing a question takes the question box's place, in the same kind of box. */
.aurora-helper-review { padding: 18px 20px; border: 1px solid var(--line-strong, #d8ccc6); border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 1px 2px #1a17150f, 0 10px 28px -18px #1a171540; }
.aurora-helper-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.aurora-helper-review-heading h2 { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; }
.aurora-helper-review-heading button { min-height: 44px; }
.aurora-helper-reviewed-question { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--art-soft, #f8eeec); color: var(--ink, #402c26); font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.aurora-helper-review-note, .aurora-helper-privacy { margin: 10px 0; color: var(--muted, #6b5c53); font-size: 14px; line-height: 1.6; }
.aurora-helper-send { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 14px; }
.aurora-helper-context { margin: 12px 0; }
.aurora-helper-context summary { min-height: 44px; padding: 10px 0; cursor: pointer; }

.aurora-helper-error { margin: 12px 0 0; padding: 11px 14px; border: 1px solid #e6b8ae; border-radius: 12px; background: #fff6f3; color: #8b2017; font-size: 14px; line-height: 1.55; }
.aurora-helper-error:focus { outline: 2px solid var(--berry, #800000); outline-offset: 3px; }
.aurora-helper-progress, .aurora-helper-unavailable { margin: 12px 4px 0; color: var(--muted, #6b5c53); font-size: 14px; line-height: 1.55; }

/* Answers: your question on the right, the answer in a card under it. */
.aurora-helper-conversation { display: grid; gap: 22px; margin-bottom: 36px; }
.aurora-helper-exchange { display: grid; gap: 10px; }
.aurora-helper-asked { justify-self: end; max-width: min(80%, 560px); margin: 0; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--art-soft, #f8eeec); color: var(--ink, #402c26); font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.aurora-helper-answer { padding: 18px 22px 20px; border: 1px solid var(--line, #e8dcd6); border-radius: 16px; background: var(--surface, #fff); }
.aurora-helper-answer:focus { outline: none; }
.aurora-helper-answer:focus-visible { outline: 2px solid var(--berry, #800000); outline-offset: 3px; }
.aurora-helper-answer h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: var(--muted, #6b5f58); font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: 0.01em; }
.aurora-helper-answer h2::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--berry, #800000); }
.aurora-helper-answer-text { max-width: 68ch; margin: 0; color: var(--ink-soft, #483b33); font-size: 16px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.aurora-helper-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Common questions: small cards with an icon each, one tap fills in the question. */
.aurora-helper-common h2 { margin: 0 0 12px; color: var(--muted, #6b5f58); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.aurora-helper-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.aurora-helper-topic { display: flex; align-items: center; gap: 11px; min-height: 60px; padding: 10px 12px; border: 1px solid var(--line, #e5dcd8); border-radius: 14px; background: var(--surface, #fff); color: var(--ink, #2b2523); font: inherit; font-size: 14px; font-weight: 550; line-height: 1.3; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s cubic-bezier(0.22, 1, 0.36, 1); }
.aurora-helper-topic:hover { border-color: var(--line-strong, #d8ccc6); background: var(--surface-hover, #fbf8f6); }
.aurora-helper-topic:active { transform: scale(.98); }
.aurora-helper-topic-icon { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--art-soft, #f8eeec); color: var(--berry, #800000); }
.aurora-helper-topic-label { flex: 1 1 auto; min-width: 0; }
.aurora-helper-topic-go { display: grid; flex: 0 0 auto; color: var(--faint, #a39791); transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), color .2s; }
.aurora-helper-topic:hover .aurora-helper-topic-go { color: var(--ink-soft, #51413b); transform: translateX(2px); }

@media (max-width: 900px) {
  .aurora-helper-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .aurora-helper-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .aurora-helper-hero { display: block; margin-bottom: 24px; }
  .aurora-helper-title { margin-bottom: 14px; }
  .aurora-helper-title h2 { font-size: 24px; }
  .aurora-helper-ask { border-radius: 16px; }
  .aurora-helper-ask .btn { padding: 0 14px; }
  .aurora-helper-review { padding: 16px; }
  .aurora-helper-send { flex-direction: column-reverse; align-items: stretch; }
  .aurora-helper-send .btn { width: 100%; }
  .aurora-helper-asked { max-width: 88%; }
  .aurora-helper-answer { padding: 16px 18px 18px; }
  .aurora-helper-topics { gap: 8px; }
  .aurora-helper-topic { gap: 9px; min-height: 56px; padding: 9px 10px; font-size: 14px; }
  .aurora-helper-topic-icon { width: 30px; height: 30px; border-radius: 9px; }
  .aurora-helper-topic-go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-helper-topic, .aurora-helper-topic-go, .aurora-helper-ask { transition: none; }
  .aurora-helper-topic:active { transform: none; }
  .aurora-helper-topic:hover .aurora-helper-topic-go { transform: none; }
}

.aurora-guide { --pipeline-berry: #6c2b4b; margin: 0 0 38px; scroll-margin-top: 90px; }
.pipeline-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.pipeline-intro h1 { margin: 0 0 9px; font-size: clamp(30px, 3vw, 38px); font-weight: 650; letter-spacing: -.035em; line-height: 1.12; }
.pipeline-intro p { margin: 0; color: #776971; font-size: 16px; line-height: 1.6; }
.pipeline-intro > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--pipeline-berry); font-size: 14px; font-weight: 600; text-decoration: none; }
.pipeline-map { padding: 20px 18px 0; border: 1px solid #e1d5df; border-radius: 24px; background: radial-gradient(ellipse at 92% 5%, #f6ebe0 0, transparent 45%), linear-gradient(125deg, #fffaf5, #f4eff7); box-shadow: 0 12px 35px -28px #51304e5e; }
.pipeline-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 12px 14px; }
.pipeline-map-heading > p { margin: 0; color: #796975; font-size: 14px; line-height: 1.5; }
.pipeline-map-heading > button { min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--pipeline-berry); font: inherit; font-size: 14px; font-weight: 600; text-align: right; cursor: pointer; }
.pipeline-stages { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); margin: 0; padding: 4px 0 14px; list-style: none; }
.pipeline-stages > li { position: relative; min-width: 0; }
.pipeline-stages > li:not(:last-child)::before { content: ''; position: absolute; z-index: 0; top: 43px; left: calc(50% + 37px); width: calc(100% - 74px); height: 1px; background: #cdbccc; }
.pipeline-stages > li:not(:last-child)::after { content: ''; position: absolute; z-index: 1; top: 40px; right: -3px; width: 6px; height: 6px; border-top: 1px solid #b8a5b6; border-right: 1px solid #b8a5b6; transform: rotate(45deg); pointer-events: none; }
.pipeline-stage-button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; min-height: 198px; padding: 12px 9px 14px; border: 0; border-radius: 16px; background: transparent; color: #59404f; font: inherit; text-align: center; cursor: pointer; transition: background-color .18s; }
.pipeline-stage-button:hover { background: #eadde73b; }
.pipeline-stage-icon { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 62px; height: 62px; margin-bottom: 17px; border: 1px solid #dbccd9; border-radius: 19px; background: linear-gradient(145deg, #fffdfb, #eee5ef); color: #875d7c; box-shadow: inset 0 1px 0 #fff, 0 3px 9px #68425c0c; transition: transform .2s cubic-bezier(.2,.8,.2,1), background-color .2s, box-shadow .2s; }
.pipeline-stage-icon > .share-option-icon { display: inline-grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 0; background: none; color: inherit; }
.pipeline-stage-icon svg { width: 27px; height: 27px; }
.pipeline-stage-number { position: absolute; top: -6px; right: -7px; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #dfd0db; border-radius: 50%; background: #fdf8f8; color: #8d6a81; font-size: 14px; font-weight: 600; }
.pipeline-stage-button:hover .pipeline-stage-icon { transform: translateY(-3px); box-shadow: inset 0 1px 0 #fff, 0 7px 13px #68425c1a; }
.pipeline-stage-button:active .pipeline-stage-icon { transform: translateY(0) scale(.97); }
.pipeline-stage-button[aria-expanded="true"] { background: #eadfe94f; }
.pipeline-stage-button[aria-expanded="true"] .pipeline-stage-icon { border-color: #814c6d; background: #75415f; color: #fffaf8; box-shadow: 0 4px 13px #75415f23, inset 0 1px 0 #ffffff24; }
.pipeline-stage-button[aria-expanded="true"] .pipeline-stage-number { border-color: #b08aa3; color: #76405f; background: #f9eff5; }
.pipeline-stage-button > strong { font-size: 16px; font-weight: 650; line-height: 1.3; }
.pipeline-stage-summary { max-width: 20ch; margin-top: 9px; color: #7f6879; font-size: 14px; line-height: 1.6; }
.pipeline-return { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 58px; margin: 0 -18px; padding: 8px 20px; border-top: 1px dashed #d9c8d7; border-radius: 0 0 24px 24px; background: #eee5f04d; color: #9a7c93; }
.pipeline-return > span { font-size: 25px; line-height: 1; }
.pipeline-return > button { min-height: 40px; padding: 5px 0; border: 0; background: none; color: #7f5c76; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: underline; text-decoration-color: #b99bb1; text-underline-offset: 4px; }
.pipeline-detail { display: grid; grid-template-columns: 280px minmax(0,1fr); margin-top: 22px; overflow: hidden; border: 1px solid #dfd1df; border-radius: 22px; background: #fffdfb; box-shadow: 0 9px 25px -22px #50324855; scroll-margin-top: 90px; animation: pipeline-reveal .22s ease-out both; }
.pipeline-detail-intro { padding: 28px; border-right: 1px solid #e6dbe4; background: linear-gradient(155deg, #f6edf3, #f5f0f8); }
.pipeline-detail-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 17px; border: 1px solid #ded0df; border-radius: 13px; background: #fffbfc; color: #8b6180; }
.pipeline-detail-icon .share-option-icon { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: inherit; }
.pipeline-detail-icon svg { width: 24px; height: 24px; }
.pipeline-detail-intro h2 { margin: 0 0 13px; color: #523649; font-size: 25px; font-weight: 650; line-height: 1.15; letter-spacing: -.025em; }
.pipeline-detail-intro p { margin: 0 0 20px; color: #7d6175; font-size: 16px; line-height: 1.65; }
.pipeline-overview { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border: 0; background: none; color: #744762; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pipeline-detail-content { min-width: 0; padding: 28px 30px; }
.pipeline-detail-content > h3 { margin: 0 0 15px; color: #735165; font-size: 16px; font-weight: 650; }
.pipeline-detail-content > ol { display: grid; gap: 14px; margin: 0; padding-left: 24px; color: #67505f; font-size: 16px; line-height: 1.7; }
.pipeline-detail-content > ol li { padding-left: 4px; }
.pipeline-detail-content > ol li::marker { color: #ae829c; font-weight: 650; }
.pipeline-more { margin-top: 22px; border-top: 1px solid #eee4eb; }
.pipeline-more > summary { min-height: 48px; padding: 14px 0; color: #79566d; font-size: 14px; font-weight: 600; cursor: pointer; }
.pipeline-more > ul { display: grid; gap: 12px; margin: 0 0 15px; padding-left: 19px; color: #7a6173; font-size: 16px; line-height: 1.7; }
.pipeline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.pipeline-actions .btn { font-size: 14px; }
.pipeline-detail [tabindex="-1"]:focus { outline: none; }
.aurora-guide :is(button,a,summary):focus-visible { outline: 2px solid var(--pipeline-berry); outline-offset: 4px; }
@keyframes pipeline-reveal { from { opacity: .2; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) and (min-width: 651px) {
  .pipeline-map { padding-inline: 12px; }
  .pipeline-map-heading { align-items: flex-start; }
  .pipeline-stage-button { padding-inline: 5px; }
  .pipeline-stage-icon { width: 52px; height: 52px; margin-top: 5px; }
  .pipeline-stage-button > strong { min-height: 42px; display: flex; align-items: center; font-size: 14px; }
  .pipeline-stage-summary { font-size: 14px; }
  .pipeline-return { margin-inline: -12px; }
  .pipeline-detail { grid-template-columns: 235px minmax(0,1fr); }
  .pipeline-detail-intro { padding: 23px; }
  .pipeline-detail-content { padding: 24px; }
}
@media (max-width: 650px) {
  .aurora-guide { margin-bottom: 30px; }
  .pipeline-intro { display: grid; gap: 4px; margin-bottom: 15px; }
  .pipeline-intro h1 { font-size: 30px; }
  .pipeline-intro > a { font-size: 14px; }
  .pipeline-map { padding: 15px 14px 0; border-radius: 20px; }
  .pipeline-map-heading { display: grid; gap: 2px; padding: 0 6px 9px; }
  .pipeline-map-heading > p { font-size: 14px; }
  .pipeline-map-heading > button { min-height: 40px; padding: 7px 0; font-size: 14px; text-align: left; }
  .pipeline-stages { display: block; padding: 0 0 12px; }
  .pipeline-stages > li:not(:last-child)::before { top: calc(50% + 29px); left: 32px; width: 1px; height: calc(100% - 58px); }
  .pipeline-stages > li:not(:last-child)::after { top: calc(100% - 4px); left: 29px; right: auto; transform: rotate(135deg); }
  .pipeline-stage-button { display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: center; gap: 0 15px; min-height: 90px; padding: 10px 5px; text-align: left; }
  .pipeline-stage-icon { grid-row: 1 / 3; width: 54px; height: 54px; margin: 0; border-radius: 16px; }
  .pipeline-stage-icon svg { width: 25px; height: 25px; }
  .pipeline-stage-number { width: 22px; height: 22px; top: -5px; right: -5px; font-size: 14px; }
  .pipeline-stage-button > strong { align-self: end; font-size: 16px; line-height: 1.3; }
  .pipeline-stage-summary { align-self: start; max-width: 33ch; margin-top: 4px; font-size: 14px; line-height: 1.5; }
  .pipeline-return { margin-inline: -14px; padding-inline: 14px; border-radius: 0 0 20px 20px; }
  .pipeline-return > button { min-height: 44px; font-size: 14px; text-align: left; }
  .pipeline-detail { display: block; border-radius: 19px; scroll-margin-top: 76px; }
  .pipeline-detail-intro { padding: 22px; border-right: 0; border-bottom: 1px solid #e6dbe4; }
  .pipeline-detail-icon { float: left; width: 38px; height: 38px; margin: 0 12px 0 0; border-radius: 11px; }
  .pipeline-detail-intro h2 { min-height: 38px; display: flex; align-items: center; margin: 0 0 14px; font-size: 23px; }
  .pipeline-detail-intro p { clear: both; margin-bottom: 10px; font-size: 16px; }
  .pipeline-detail-content { padding: 22px; }
  .pipeline-detail-content > ol, .pipeline-more > ul { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pipeline-detail { animation: none; }
  .pipeline-stage-button, .pipeline-stage-icon { transition: none; }
  .pipeline-stage-button:hover .pipeline-stage-icon, .pipeline-stage-button:active .pipeline-stage-icon { transform: none; }
}

/* hosting-submissions.css */
.hosting-submissions { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line, #e6ded9); }
.hosting-submissions-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hosting-submissions-heading h2 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.4px; }
.hosting-submissions-heading p { margin: 7px 0 0; color: var(--muted, #6b625e); font-size: 14px; line-height: 1.6; }
.hosting-submissions-heading > button { min-height: 44px; }
.hosting-submissions-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.hosting-submission-files { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.hosting-submissions-form label { display: block; color: var(--ink, #2b2523); font-size: 14px; line-height: 1.55; font-weight: 600; }
.hosting-submissions-form label[for="hosting-submission-viewers"] > span { color: var(--muted, #6b625e); font-weight: 400; }
.hosting-submissions-form :is(input:not([type="radio"]), textarea) { display: block; width: 100%; margin-top: 8px; padding: 11px 12px; border: 1px solid #dccfc9; border-radius: 7px; background: #fff; color: #302625; font: inherit; font-weight: 400; line-height: 1.6; }
.hosting-submissions-form input:not([type="radio"]) { min-height: 46px; }
.hosting-submissions-form input[type="file"] { padding: 9px 10px; font-size: 13px; }
.hosting-submissions-form input[type="file"]::file-selector-button { min-height: 28px; margin-right: 10px; border: 1px solid #ded1cb; border-radius: 4px; background: #f9f3ef; color: #704139; font: inherit; }
.hosting-submissions-form textarea { resize: vertical; }
.hosting-submission-selected { margin: 10px 0 0; color: #624d42; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.hosting-submission-help { margin: 10px 0 0; color: var(--muted, #6b625e); font-size: 13px; line-height: 1.65; }
.hosting-submission-audience { margin-top: 24px; }
.hosting-submission-audience h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.hosting-submission-audience-options { display: flex; flex-wrap: wrap; gap: 12px; }
.hosting-submission-audience-options > label { display: flex; flex: 1; align-items: flex-start; gap: 10px; min-height: 70px; padding: 13px 15px; border: 1px solid #e3d7d1; border-radius: 8px; cursor: pointer; }
.hosting-submission-audience-options > label:has(input:checked) { border-color: #ac7468; background: #fcf5f1; }
.hosting-submission-audience-options input { flex: none; width: 17px; height: 17px; margin: 3px 0 0; accent-color: #800000; }
.hosting-submission-audience-options strong { display: block; margin-bottom: 3px; color: #4c3028; font-size: 14px; }
.hosting-submission-audience-options span > span { display: block; color: #6d5e55; font-size: 13px; font-weight: 400; }
[data-hosting-submission-viewers] { margin-top: 18px; }
[data-hosting-submission-viewers][hidden] { display: none; }
.hosting-submission-viewer-options > summary { display: list-item; min-height: 44px; padding: 11px 0; color: #704139; font-size: 14px; cursor: pointer; }
.hosting-submission-viewer-options > summary:focus-visible { outline: 2px solid #800000; outline-offset: 3px; }
.hosting-submission-send { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.hosting-submission-send > p { max-width: 43ch; margin: 0; color: #6a5b52; font-size: 13px; line-height: 1.65; }
.hosting-submission-send .btn { min-height: 44px; flex-shrink: 0; }
.hosting-submissions button:disabled { cursor: default; opacity: .6; }
.hosting-submissions :is(button, input, textarea, a):focus-visible { outline: 2px solid #800000; outline-offset: 3px; }
.hosting-submission-error { margin-bottom: 18px; padding: 13px 15px; border: 1px solid #e5b6ac; border-radius: 7px; background: #fff7f4; color: #8a2219; font-size: 14px; line-height: 1.6; }
.hosting-submission-error p { margin: 0; }
.hosting-submission-error .btn { margin-top: 12px; }
.hosting-submission-notice { margin-bottom: 18px; padding: 13px 15px; border: 1px solid #d2ddd5; border-radius: 7px; background: #f4f8f4; color: #3e5c49; font-size: 14px; line-height: 1.65; }
.hosting-submission-history { margin-top: 28px; }
.hosting-submission-history > h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.hosting-submission-row { padding: 18px 0; border-top: 1px solid var(--line, #e6ded9); }
.hosting-submission-row-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.hosting-submission-row-heading h3 { min-width: 0; margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.hosting-submission-status { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid #e1d7d1; border-radius: 5px; color: #6d5b50; background: #faf7f4; font-size: 12px; }
.hosting-submission-status.is-hosted { border-color: #cadbcf; background: #f1f7f2; color: #3b6249; }
.hosting-submission-status.is-passed { border-color: #cadbcf; background: #f1f7f2; color: #3b6249; }
.hosting-submission-status:is(.is-needs_changes, .is-rejected) { border-color: #e7c7ad; background: #fff8ef; color: #82501c; }
.hosting-submission-meta { margin: 7px 0 0; color: var(--muted, #6b625e); font-size: 13px; }
.hosting-submission-review-note { margin: 12px 0 0; color: #5f4f45; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.hosting-submission-row > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 7px; }
@media (max-width: 680px) {
 .hosting-submission-files { grid-template-columns: minmax(0, 1fr); gap: 16px; }
 .hosting-submission-send { flex-direction: column; align-items: stretch; gap: 14px; }
 .hosting-submission-send > p { max-width: none; }
 .hosting-submission-send .btn { width: 100%; }
 .hosting-submission-audience-options { gap: 9px; }
 .hosting-submission-audience-options > label { min-width: 130px; padding: 12px; }
}

/* hosting-review.css */
.hosting-review{margin:24px 0;padding:22px;border:1px solid var(--line,#e4ddd7);border-radius:12px;background:var(--surface,#fff);color:var(--ink,#292321);min-width:0}
.hosting-review :is(h2,h3,p){margin:0;overflow-wrap:anywhere}.hosting-review-heading,.hosting-review-row-heading,.hosting-review-actions,.hosting-review-tags{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.hosting-review-heading h2{font-size:20px;line-height:1.3;letter-spacing:-.025em}.hosting-review-heading h2>span{display:inline-flex;justify-content:center;min-width:25px;padding:2px 7px;border-radius:5px;background:var(--surface-soft,#f5f0ec);color:var(--berry,#800000);font-size:14px;vertical-align:middle}.hosting-review-heading p{margin-top:5px}.hosting-review p{font-size:14px;line-height:1.6}.hosting-review-muted,.hosting-review-empty{color:var(--muted,#6d625e)}.hosting-review-list{margin-top:16px}.hosting-review-row{padding:20px 0;border-top:1px solid var(--line,#e4ddd7);min-width:0}.hosting-review-row h3{font-size:17px;line-height:1.35}.hosting-review-row-heading>div:first-child{min-width:0;flex:1 1 220px}.hosting-review-row-heading p{margin-top:5px}.hosting-review-row>p{margin-top:12px}.hosting-review-tags{justify-content:flex-start;gap:6px}.hosting-review-tags span{font-size:12px;line-height:1.5;padding:4px 8px;border:1px solid var(--line,#e4ddd7);border-radius:5px;background:var(--surface-soft,#f5f0ec)}.hosting-review-tags .is-hosted{color:#386248;background:#eff5f1;border-color:#d7e4dd}.hosting-review-tags .is-needs_changes{color:#805c16;background:#fbf5e8;border-color:#eadab4}.hosting-review-actions{justify-content:flex-start;margin-top:14px}.hosting-review-text{font:inherit;color:var(--berry,#800000);border:0;background:transparent;min-height:44px;padding:8px 4px;cursor:pointer}.hosting-review-text:disabled{opacity:.5;cursor:default}.hosting-review-details{margin-top:12px}.hosting-review-details summary,.hosting-review-connection>summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:14px;font-weight:600}.hosting-review-details p{margin-top:6px}.hosting-review-connection{margin-top:14px;border-top:1px solid var(--line,#e4ddd7)}.hosting-review-connection>p{margin:4px 0 12px}.hosting-review label{display:block;font-size:14px;font-weight:600;line-height:1.6}.hosting-review textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;padding:12px;margin-top:7px;border:1px solid var(--line,#e4ddd7);border-radius:8px;background:var(--surface,#fff);font:inherit;font-size:14px;font-weight:400;color:inherit;resize:vertical}.hosting-review form{margin-top:16px}.hosting-review-token-list{padding:0;margin:16px 0 0;list-style:none}.hosting-review-token-list li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid var(--line,#e4ddd7)}.hosting-review-token-list strong,.hosting-review-token-list small{display:block;overflow-wrap:anywhere}.hosting-review-token-list strong{font-size:14px;font-weight:600}.hosting-review-token-list small{margin-top:4px;font-size:12px;color:var(--muted,#6d625e)}.hosting-review-error{margin-top:14px!important;color:var(--berry,#800000)}.hosting-review-note{margin-top:12px!important;padding:11px 13px;border-left:3px solid var(--berry,#800000);background:var(--surface-soft,#f5f0ec)}.hosting-review-empty{padding:8px 0}
@media(max-width:600px){.hosting-review{padding:17px 15px}.hosting-review-heading{align-items:flex-start}.hosting-review-heading>.btn{width:100%}.hosting-review-row-heading{align-items:flex-start}.hosting-review-row-heading>div:first-child{flex-basis:100%}.hosting-review-actions>.btn{min-height:44px}.hosting-review-token-list li{align-items:flex-start}.hosting-review-tags{width:100%}}

/* private-testers.css */
.private-testers{border:1px solid var(--border,#ddd5d9);background:var(--surface,#fff);padding:20px;margin:20px 0;color:var(--text,#252124)}.private-testers h2{font-size:19px;margin:0}.private-testers p{margin:8px 0 14px;line-height:1.5}.private-testers-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.private-testers-version,.private-testers-hint{color:var(--muted,#665d64);font-size:14px}.private-testers-search{display:flex;gap:10px;align-items:end;margin:16px 0}.private-testers-search label{display:grid;gap:6px;flex:1;font-size:14px}.private-testers-search input{font:inherit;min-height:44px;width:100%;border:1px solid var(--border,#ddd5d9);padding:10px;background:var(--surface,#fff);color:inherit}.private-testers-list{list-style:none;padding:0;margin:12px 0}.private-testers-person{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid var(--border,#ddd5d9)}.private-testers-person strong,.private-testers-person small{display:block}.private-testers-person small{color:var(--muted,#665d64);overflow-wrap:anywhere}.private-testers-error{color:#9d102b}.private-testers .btn{min-height:44px}.private-testers-status{font-size:14px}.private-testers-current{padding:10px 12px;border-left:3px solid #800000;background:#f8f2f5}.private-testing-page{max-width:900px;margin:auto;padding:32px 24px 70px;color:#252124;font:16px/1.55 system-ui,-apple-system,sans-serif}.private-testing-page h1{font-size:30px;line-height:1.2;margin:22px 0 10px}.private-testing-page h2{font-size:20px;margin:0}.private-testing-page a{color:#800000;text-underline-offset:4px}.private-testing-page .btn{font:inherit;display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;min-height:44px;border:1px solid #b9adb4;background:#fff;color:#252124;text-decoration:none;cursor:pointer}.private-testing-page .btn.primary{background:#800000;color:#fff;border-color:#800000}.private-testing-page .btn:disabled{opacity:.55;cursor:wait}.private-testing-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.private-testing-card{border:1px solid #ddd5d9;background:#fff;padding:20px;margin:18px 0}.private-testing-card p{margin:8px 0 16px}.private-testing-meta{color:#665d64;font-size:14px}.private-testing-card-actions{display:flex;gap:10px;flex-wrap:wrap}.private-testing-page [role=alert]{color:#9d102b}.private-testers :focus-visible,.private-testing-page :focus-visible{outline:3px solid #bd6f82;outline-offset:3px}@media(max-width:500px){.private-testers{padding:16px}.private-testers-header{display:block}.private-testers-search{flex-wrap:wrap}.private-testers-search label{flex-basis:100%}.private-testers-person{align-items:flex-start}.private-testing-page{padding:24px 16px 50px}.private-testing-card-actions .btn{flex:1}.private-testers-person .btn{flex-shrink:0}}

.private-testers-person>div{min-width:0}.private-testers-person strong,.private-testers-version,.private-testing-card h2,.private-testing-meta{overflow-wrap:anywhere}.private-testers-search label{min-width:0}

.tester-feedback{margin:24px 0;padding:20px;border:1px solid var(--border,#ddd5d9);background:var(--surface,#fff);color:var(--text,#252124);font:16px/1.55 system-ui,-apple-system,sans-serif}.tester-feedback-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.tester-feedback h2{font-size:20px;line-height:1.3;margin:0}.tester-feedback h3{font-size:16px;margin:0;overflow-wrap:anywhere}.tester-feedback p{margin:8px 0 14px}.tester-feedback-heading p{font-size:14px;color:var(--muted,#665d64);max-width:58ch}.tester-feedback label{display:grid;gap:7px;font-size:14px;margin:14px 0 10px}.tester-feedback textarea{box-sizing:border-box;width:100%;min-width:0;resize:vertical;font:16px/1.5 system-ui,-apple-system,sans-serif;color:inherit;background:var(--surface,#fff);border:1px solid var(--border,#b9adb4);padding:11px}.tester-feedback .btn{font:inherit;min-height:44px;padding:9px 13px;border:1px solid var(--border,#b9adb4);background:var(--surface,#fff);color:inherit;cursor:pointer}.tester-feedback .btn.primary{background:#800000;border-color:#800000;color:#fff}.tester-feedback .btn:disabled{opacity:.55;cursor:wait}.tester-feedback-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.tester-feedback-thread{margin-top:24px;padding-top:20px;border-top:1px solid var(--border,#ddd5d9)}.tester-feedback-thread>header{display:flex;gap:16px;justify-content:space-between;align-items:flex-start}.tester-feedback-state{font-size:13px;color:var(--muted,#665d64);border:1px solid var(--border,#ddd5d9);padding:3px 8px;white-space:nowrap}.tester-feedback-body{white-space:pre-wrap;overflow-wrap:anywhere}.tester-feedback-replies{list-style:none;margin:12px 0;padding:0 0 0 16px;border-left:2px solid var(--border,#ddd5d9)}.tester-feedback-replies li{margin:14px 0}.tester-feedback [role=alert]{color:#9d102b}.tester-feedback :focus-visible{outline:3px solid #bd6f82;outline-offset:3px}#private-testing-feedback{scroll-margin-top:24px}@media(max-width:500px){.tester-feedback{padding:16px}.tester-feedback-heading{flex-wrap:wrap;gap:10px}.tester-feedback-actions{align-items:stretch}.tester-feedback-actions .btn{flex:1}.tester-feedback-heading>.btn{flex-shrink:0}}
.private-testers .private-testers-scope{font-size:16px}
.private-testers-share{margin:18px 0}.private-testers-share label{display:block;font-size:14px;margin-bottom:6px}.private-testers-share>div{display:flex;gap:10px;align-items:center}.private-testers-share input{box-sizing:border-box;min-width:0;flex:1;min-height:44px;padding:10px;font:inherit;font-size:14px;line-height:1.4;color:inherit;border:1px solid var(--border,#ddd5d9);background:var(--surface,#fff)}.private-testers-links{display:flex;gap:16px;flex-wrap:wrap}@media(max-width:500px){.private-testers-share>div{flex-wrap:wrap}.private-testers-share input{flex-basis:100%}.private-testers-share .btn{width:100%}}

/* aurora-polish.css */
/* Aurora visual upgrade. Loaded near the end of server/aurora_frontend.py STYLES; aurora-premium.css comes after it
   and refines this look.
   Colour: warm tinted neutrals with one accent. Solid maroon is kept for the main action on each screen; current
   tabs, filters and chips use ink or a soft rose tint instead. Checked with check-palette.py (muted text 5.6:1). */
:root {
  --bg: #f8f4f1;
  --surface: #fffdfb;
  --surface-soft: #f3ece8;
  --ink: #231916;
  --muted: #6b5f59;
  --line: #e7ded8;
  --line-strong: #d6c8c0;
  --rose: #f6e8e4;
  --ring: 0 0 0 3px #80000024;
  --lift: 0 1px 2px #2c19150a, 0 10px 28px -14px #2c19152e;
  --lift-hover: 0 2px 4px #2c19150f, 0 22px 44px -18px #2c191547;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
body { background: var(--bg); color: var(--ink); }

/* ---------- Header: frosted bar, one solid action ---------- */
/* The blur sits on a layer behind the bar: blurring the bar itself would trap the phone's fixed Help button inside it. */
.aurora-header-wrap:not(.is-over-welcome) { background: transparent; border-bottom-color: var(--line); }
.aurora-header-wrap:not(.is-over-welcome)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fffdfbd9;
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
}
.aurora-navigation { border-color: transparent; border-radius: 12px; background: #f1eae6; }
.aurora-navigation a { border-radius: 9px; color: #5f5450; transition: color .2s, background .2s, box-shadow .2s; }
.aurora-navigation a:hover { background: #fffdfb99; color: var(--ink); }
.aurora-navigation a.is-current { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px #2c19151f, 0 0 0 1px #2c19150a; }
.is-over-welcome .aurora-navigation { border-color: #ffffff2e; }
.is-over-welcome .aurora-navigation a.is-current { background: #ffffff2e; color: #fff; box-shadow: none; }
.aurora-start { border-radius: 10px; box-shadow: inset 0 1px 0 #ffffff24, 0 8px 18px -10px #800000b3; transition: background .2s, transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.aurora-start:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #ffffff24, 0 12px 22px -10px #800000cc; }
.aurora-account { border-radius: 10px; border-color: var(--line); background: var(--surface); }
.aurora-header-actions > a[href$="#/help"] { border-radius: 10px; }

/* ---------- Type: lighter, larger page titles ---------- */
.page-title h1,
.project-heading h1,
.ws-overview-head h1 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.page-title h1 { font-size: clamp(30px, 2.9vw, 42px); }
.workspace-content .page-title h1 { font-size: clamp(28px, 2.5vw, 36px); }
.project-heading h1 { font-size: clamp(36px, 4.4vw, 60px); }
.ws-overview-head h1 { font-size: clamp(32px, 3.4vw, 46px); }
.page-title p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.ws-sec-title,
.ws-next-title { letter-spacing: -0.02em; }

/* ---------- Buttons, fields and chips ---------- */
.btn {
  border-radius: 10px;
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: 0 1px 2px #2c19150d;
  transition: background .2s, border-color .2s, box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.btn:hover { border-color: #c4b3aa; box-shadow: 0 4px 12px -6px #2c191540; }
.btn.primary { border-color: transparent; box-shadow: inset 0 1px 0 #ffffff24, 0 8px 18px -10px #800000b3; }
.btn.primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #ffffff24, 0 12px 22px -10px #800000cc; }
.btn:active,
.btn.primary:active { transform: translateY(0); }
.btn.quiet { box-shadow: none; }
.search,
.sort-select { border-radius: 12px; border-color: var(--line-strong); background: var(--surface); }
.sort-select { color: var(--ink); font-size: 14px; }
.search:focus-within { border-color: #9c4b45; box-shadow: var(--ring); }
:is(input, textarea, select):not([type=checkbox]):not([type=radio]):focus-visible { border-color: #9c4b45; box-shadow: var(--ring); outline: none; }
.category { border-radius: 999px; padding-inline: 18px; transition: background .2s, color .2s; }
.category.active,
.discover-page .category.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.category:not(.active):hover { background: #ebe2dd; }
.pill.status { border-radius: 999px; }
.directory-tools { border-color: var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--lift); }

/* ---------- Cards: one radius, a soft lift on hover ---------- */
.project-card {
  border-radius: 16px;
  border-color: var(--line);
  box-shadow: var(--lift);
}
.project-card {
  overflow: hidden;
  background: var(--surface);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.project-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--lift-hover); }
.project-card:not(.private-project) .card-preview { border-radius: 0; }
.project-card .card-preview > * { transition: transform .7s var(--ease-out); }
.project-card:hover .card-preview > * { transform: scale(1.03); }
.project-card .card-info :is(h2, h3) { letter-spacing: -0.025em; }
.card-bottom { border-top-color: var(--line); }
@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-card .card-preview > *,
  .btn,
  .aurora-start,
  .aurora-header-actions > a[href$="#/help"] { transition: none; }
  .project-card:hover,
  .btn.primary:hover,
  .aurora-start:hover { transform: none; }
  .project-card:hover .card-preview > * { transform: none; }
}

/* ---------- Generated covers for projects without a screenshot ----------
   Four warm tones from one family (night, rose, sand, dawn), so a grid has rhythm but never clashes. */
.preview-placeholder[class*=cover-tone],
.project-card .preview-placeholder[class*=cover-tone] {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  isolation: isolate;
  color: #6e1010;
}
.preview-placeholder[class*=cover-tone]::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  z-index: -1;
  background: radial-gradient(60% 34% at 50% 50%, var(--cover-glow), transparent 70%);
  transform: rotate(-18deg) translateY(-14%);
  opacity: .9;
}
.preview-placeholder.cover-tone-0,
.project-card .preview-placeholder.cover-tone-0 {
  --cover-glow: #b0353099;
  background: radial-gradient(90% 70% at 90% 0%, #5c1418, transparent 70%), linear-gradient(150deg, #2a1517, #3b1b1c 55%, #24130f);
  color: #f8e9e5;
}
.preview-placeholder.cover-tone-1,
.project-card .preview-placeholder.cover-tone-1 {
  --cover-glow: #ffffffb3;
  background: radial-gradient(80% 70% at 85% 10%, #efc3b9, transparent 70%), linear-gradient(150deg, #f8e7e2, #ecd0c8);
}
.preview-placeholder.cover-tone-2,
.project-card .preview-placeholder.cover-tone-2 {
  --cover-glow: #fff6eccc;
  background: radial-gradient(80% 70% at 10% 100%, #d9bfa6, transparent 70%), linear-gradient(150deg, #f4ebe1, #e6d4c2);
  color: #5a2a1f;
}
.preview-placeholder.cover-tone-3,
.project-card .preview-placeholder.cover-tone-3 {
  --cover-glow: #b8414080;
  background: radial-gradient(90% 80% at 0% 0%, #fbeee9, transparent 70%), linear-gradient(150deg, #f6e4df, #e7c6bf 60%, #d9aea6);
}
.preview-placeholder[class*=cover-tone] > :first-child {
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--heading);
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}
.preview-placeholder[class*=cover-tone] > :last-child {
  color: inherit;
  opacity: .72;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ws-thumb { border-radius: 9px; border-color: transparent; }
.ws-thumb-initials { background: linear-gradient(150deg, #3b1b1c, #24130f); color: #f8e9e5; }

/* Project page: without a screenshot, the cover sits beside the title like an app icon. */
.project-heading-tile {
  position: relative;
  flex: none;
  width: 96px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--lift);
}
.project-heading-tile .preview-placeholder[class*=cover-tone] > :first-child { font-size: 34px; }
.project-heading-tile .preview-placeholder[class*=cover-tone] > :last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.project-heading:has(> .project-heading-tile) { grid-template-columns: auto minmax(0, 1fr) auto; }
.project-heading:has(> .project-heading-tile) > div:nth-child(2) { min-width: 0; }
@media (max-width: 1050px) {
  .project-heading-tile { width: 72px; border-radius: 18px; }
  .project-heading-tile .preview-placeholder[class*=cover-tone] > :first-child { font-size: 26px; }
  .project-heading:has(> .project-heading-tile) { grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; }
  .project-heading:has(> .project-heading-tile) > .actions { grid-column: 1 / -1; }
}
.project-detail-visual .preview-placeholder[class*=cover-tone] { position: relative; inset: auto; flex: none; border: 0; border-radius: 14px; box-shadow: var(--lift); }

/* ---------- Panels: one radius and one lift across workspace pages ---------- */
:is(.ws-main, .project-page, .page) :is(.panel, .ws-connect-card, .studio-files, .team-add-box, .publication-step, .project-detail-team, .feedback-composer, .account-connections, .pc-chat-surface) {
  border-color: var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--lift);
}
.publication-drop { border-radius: 12px; border-color: var(--line-strong); background: #fbf6f3; }
.ws-team .team-mode-choice { border-radius: 12px; }
.ws-team .team-mode-choice:has(input:checked) { box-shadow: var(--ring); }

/* Overview's next step is the one featured card in the workspace. */
.ws-next {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  border-color: #ead7d1;
  border-radius: 16px;
  background: radial-gradient(60% 120% at 100% 0%, #f7e4de, transparent 70%), var(--surface);
  box-shadow: var(--lift);
}
.ws-next .ws-label { color: #8a3b35; }
.ws-next-title { font-size: 26px; }

/* Sidebar: the current page is a soft rose tab, not a thin bar. */
.ws-frame .ws-side { background: var(--surface); }
.ws-nav a { margin-inline: 4px; border-radius: 9px; transition: background .2s, color .2s; }
.ws-nav a.is-current { background: var(--rose); color: #5c0c0c; }
.ws-nav a.is-current::before { display: none; }
@media (max-width: 760px) {
  .ws-nav a { margin-inline: 0; border-radius: 999px; }
  .ws-nav a.is-current { border-color: transparent; background: var(--ink); color: #fff; }
  .ws-frame .ws-nav { scroll-padding-inline: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); }
}

/* ---------- Empty states: an icon disc, a title, one action ---------- */
.empty,
.work-group-empty,
.pc-empty,
.ws-files .studio-files-view.is-empty .studio-files-empty {
  display: grid;
  justify-items: center;
  text-align: center;
}
.empty,
.work-group-empty { border: 1px dashed var(--line-strong); border-radius: 16px; background: #fffdfb99; box-shadow: none; }
.work-group-empty { padding: 36px 28px; }
.empty .empty-symbol,
.empty-glyph,
.pc-empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--rose);
  color: var(--berry);
}
:is(.empty-glyph, .pc-empty-icon) svg { width: 22px; height: 22px; }
.work-group-empty p { max-width: 340px; }
.pc-empty h3 { font-family: var(--heading); font-size: 18px; letter-spacing: -0.02em; }
/* No files yet: icon, message, then the New file button, stacked in the middle of the panel. */
.ws-files .studio-files-view.is-empty .studio-files { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 32px 20px 28px; }
.ws-files .studio-files-view.is-empty #studio-file-list { grid-column: 1; grid-row: 1; }
.ws-files .studio-files-view.is-empty .studio-files-heading { grid-column: 1; grid-row: 2; justify-content: center; }
.ws-files .studio-files-view.is-empty .studio-files-empty { max-width: 360px; padding: 0 0 14px; }
.ws-files .studio-files-view.is-empty .studio-files-empty::before {
  content: "";
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--rose) center / 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23800000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h10l6 6v10H4zM14 4v6h6M12 13v5M9.5 15.5h5'/%3E%3C/svg%3E");
}

/* ---------- Phone ---------- */
@media (max-width: 440px) {
  /* The account button shows the avatar; the name stays for screen readers. */
  .aurora-account:has(.aurora-avatar) { width: 44px; padding: 0; }
  .aurora-account .aurora-avatar { display: grid; }
  .aurora-account > span:last-child:not(:first-child) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 680px) {
  /* Room for the floating Help button, so it never covers the last link on a page. */
  #app > main:not(:has(+ .footer)),
  #app .ws-main { padding-bottom: 96px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .footer span { font-size: 12px; }
  .footer nav { gap: 0 18px; }
  .aurora-header-actions > a[href$="#/help"] { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 48px; min-width: 0; height: 48px; padding: 0; border-radius: 50%; font-size: 0; box-shadow: 0 10px 24px -8px #42141880; transition: transform .3s var(--ease-out), opacity .2s; }
  .aurora-header-actions > a[href$="#/help"]::before { content: "?"; content: "?" / ""; font: 600 22px/1 var(--heading); }
  /* While reading down a page the Help button steps aside; scrolling up brings it back. */
  .is-scrolling-down .aurora-header-actions > a[href$="#/help"]:not(:focus-visible) { transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none; }
  .directory-tools { border-radius: 14px; }
  .ws-next { padding: 22px 20px; }
}

/* github-safety.css */
.safe-github { min-width:0; }
.safe-github h2 { margin:0; font-size:20px; line-height:1.3; }
.safe-github h3 { margin:16px 0 8px; font-size:16px; line-height:1.4; }
.safe-github .btn { margin-top:12px; }
.safe-github .safe-github-error { color: #800000; font-size: 16px; }
.safe-github :is(button,input,textarea,summary):focus-visible { outline: 2px solid #800000; outline-offset: 3px; }

/* aurora-premium.css */
/* Aurora look, platform pages. Loaded after every other stylesheet (server/aurora_frontend.py STYLES).
   The type, colours, header and phone tab bar live in aurora-premium-base.css, which the home page shares. */
/* Aurora look, shared part: type, colours, shapes, the header, the phone tab bar and the corner complaint button.
   Both the platform pages (through aurora-premium.css) and the home page (hosting/aurora-frontend) load it.
   Type is the device's own font (San Francisco on Apple, Segoe on Windows), so Aurora reads like a native app and
   loads no font files. Hierarchy comes from size and weight only. Warm stone neutrals with one undertone, white cards.
   One accent colour: maroon is the button you press, and ink marks where you are. Pictures use maroon, rose and the
   stone neutrals (the --art tokens). A second colour, aurora green, was tried on Nov 8 and taken out on Nov 10 until
   it can be done well. Corners: 10px controls, 16px cards, round chips.
   Palette checked with check-palette.py: ink 17.4:1, muted 6.7:1 on surface, faint 4.9:1 on base, maroon 10.2:1 on
   surface, no clashes. Every control keeps at least 44px on phones. */

:root {
  --bg: #f6f5f2;
  --surface: #fff;
  --surface-soft: #f0eee9;
  --surface-hover: #f4f2ee;
  --ink: #191614;
  --ink-soft: #37322e;
  --muted: #5d5751;
  --faint: #6c655e;
  --line: #e7e3dd;
  --line-strong: #d6d0c8;
  --rose: #f0eee9;
  --berry: #800000;
  --berry-dark: #5c0000;
  --berry-hover: #6b0000;
  --berry-tint: #8000000d;
  --page-glow: radial-gradient(1200px 360px at 18% -180px, #8000000f, transparent 72%);
  /* Pictures (empty pages, the upload card): maroon lines, a soft rose fill, stone neutrals. */
  --art-ink: var(--berry);
  --art-soft: #f8eeec;
  --art-ring: #c2486b;
  --art-line: var(--line);
  --ring: 0 0 0 3px #80000029;
  --lift: 0 1px 2px #1a17150a, 0 0 0 1px #1a171505;
  --lift-hover: 0 2px 4px #1a17150d, 0 14px 32px -18px #1a171547;
  --float: 0 1px 2px #1a17150f, 0 16px 40px -14px #1a171547;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --header-h: 64px;
  --tabbar-h: 0px;
  --heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --serif: var(--heading);
}

/* ---------- Header: one frosted row, labels only on wide screens ---------- */
.aurora-header-wrap { font-family: var(--body); -webkit-font-smoothing: antialiased; }
.aurora-header { min-height: var(--header-h); padding-inline: 24px; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 20px; }
.aurora-header-wrap:not(.is-over-welcome) { border-bottom-color: var(--line); color: var(--ink); }
/* The bar repeats the page's top glow over an almost solid base, so there's no seam where it meets the page. */
.aurora-header-wrap:not(.is-over-welcome) { background: transparent; }
.aurora-header-wrap:not(.is-over-welcome)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--page-glow), #f6f5f2f2; background-repeat: no-repeat; -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); }
.aurora-brand { gap: 10px; min-height: 44px; color: var(--ink) !important; font-family: var(--heading); font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.aurora-brand img { width: 32px; height: 37px; }
.aurora-nav-icon { display: none; flex: none; width: 22px; height: 22px; }
.aurora-nav-short, .aurora-navigation .aurora-nav-create { display: none; }
.aurora-navigation { gap: 2px; padding: 4px; border: 1px solid var(--line) !important; border-radius: var(--r-pill); background: #fffc !important; box-shadow: var(--lift); }
.aurora-navigation a { min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: -0.006em; }
.aurora-navigation a:hover { background: var(--surface-hover); color: var(--ink); }
.aurora-navigation a.is-current { background: var(--ink); color: #fff; font-weight: 560; box-shadow: none; }
/* The current-page pill glides between tabs on springs (aurora/nav-pill.mjs). On wide screens it sits on top of the
   tabs and carries its own white copy of their names, so the words are white exactly where the pill covers them. Clicks
   pass straight through it to the tab underneath. */
.aurora-navigation.has-pill { position: relative; isolation: isolate; }
.aurora-navigation.has-pill a { transition: color .32s cubic-bezier(0.22, 1, 0.36, 1), background-color .2s; }
.aurora-navigation.has-pill a.is-current,
.aurora-navigation.has-pill a.is-current:hover { background: transparent; color: var(--muted); font-weight: 500; }
.aurora-nav-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--ink);
  box-shadow: 0 1px 2px #1a17152e, 0 6px 14px -8px #1a171566;
  pointer-events: none;
  will-change: transform, width;
  transition: opacity .24s cubic-bezier(0.22, 1, 0.36, 1), scale .24s cubic-bezier(0.22, 1, 0.36, 1);
}
.aurora-nav-pill.is-hidden { opacity: 0; scale: .9; }
.aurora-nav-pill.is-entering { opacity: 0; scale: .9; transition: none; }
.aurora-nav-pill-words { position: absolute; top: 0; left: 0; will-change: transform; }
.aurora-nav-pill-words > span { position: absolute; display: flex; align-items: center; justify-content: center; color: #fff; white-space: nowrap; }
.is-over-welcome .aurora-nav-pill { background: #fff; box-shadow: none; }
.aurora-header-actions { gap: 6px; }
.aurora-header-actions > a[href$="#/help"] { gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.aurora-header-actions > a[href$="#/help"] .aurora-nav-icon { display: block; width: 18px; height: 18px; }
.aurora-header-actions > a[href$="#/help"]:hover { background: var(--surface-hover); color: var(--ink); }
.aurora-header-actions > a[href$="#/help"][aria-current="page"] { background: var(--surface-soft); color: var(--ink); }
.aurora-start {
  min-height: 44px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--berry);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 560;
  box-shadow: inset 0 1px 0 #ffffff24, 0 1px 2px #1a171529;
  transition: background .2s;
}
.aurora-start:hover { background: var(--berry-hover); transform: none; box-shadow: inset 0 1px 0 #ffffff24, 0 1px 2px #1a171529; }
.aurora-start::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: -2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.aurora-account { min-height: 44px; padding: 0 12px 0 4px; border: 0; border-radius: var(--r-pill); background: none; font-size: 14px; font-weight: 500; }
.aurora-account:not(:has(.aurora-avatar)) { padding: 0 14px; border: 1px solid var(--line-strong); background: var(--surface); }
.aurora-account:hover { background: var(--surface-hover); }
.aurora-avatar { width: 30px; height: 30px; background: var(--ink); color: #f6f5f2; font-size: 13px; font-weight: 600; }
.aurora-header a:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }
/* Over the home page's night sky. */
.is-over-welcome .aurora-brand { color: #fff !important; }
.is-over-welcome .aurora-navigation { border-color: #ffffff2e !important; background: #1a0d1259 !important; box-shadow: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.is-over-welcome .aurora-navigation a { color: #ffffffcc; }
.is-over-welcome .aurora-navigation a:hover { background: #ffffff1a; color: #fff; }
.is-over-welcome .aurora-navigation a.is-current { background: #fff; color: var(--ink); box-shadow: none; }
.is-over-welcome .aurora-avatar { background: #fff; color: var(--ink); }
.is-over-welcome .aurora-start { border-color: #fff; background: #fff; color: var(--ink) !important; box-shadow: none; }
.is-over-welcome .aurora-start:hover { background: #f1eee9; }
.is-over-welcome .aurora-account { border: 0; background: none; color: #fff !important; }
.is-over-welcome .aurora-account:not(:has(.aurora-avatar)) { border: 1px solid #ffffff59; background: #ffffff14; }
.is-over-welcome .aurora-account:hover { background: #ffffff1a; }
.is-over-welcome .aurora-header-actions > a[href$="#/help"] { color: #ffffffcc; }
.is-over-welcome .aurora-header a:focus-visible { outline-color: #fff; }

/* ---------- Floating support button ---------- */
.aurora-gripe-button {
  width: max-content;
  min-height: 44px;
  padding-inline: 14px;
  white-space: nowrap;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: var(--float);
  opacity: 1;
}
.aurora-gripe-button:hover, .aurora-gripe-button[aria-expanded="true"] { background: var(--surface-hover); }
/* A speech bubble with a mark instead of the frowning face. */
.aurora-gripe-button svg { display: none; }
.aurora-gripe-button::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4zM12 8.5v3M12 13.8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4zM12 8.5v3M12 13.8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.aurora-gripe-panel { border-color: var(--line); border-radius: var(--r-lg); box-shadow: var(--float); }
.aurora-gripe-point, .aurora-gripe-chip { color: var(--ink-soft); }
.aurora-gripe-point:hover, .aurora-gripe-chip { background: var(--surface-soft); }
.aurora-gripe-marker span { font-size: 12px; }

/* ---------- Tablets and phones held sideways: still one short row ----------
   The labels shrink to icons in this order: account name, Help, then Create and the Forest link, then the word Aurora. */
@media (min-width: 681px) and (max-width: 1180px) {
  :root { --header-h: 64px; }
  .aurora-header-wrap .aurora-header { grid-template-columns: auto minmax(0, 1fr) auto; min-height: var(--header-h); padding: 8px 16px; gap: 12px; }
  .aurora-header-wrap .aurora-header .aurora-navigation { grid-column: auto; grid-row: auto; width: auto; justify-self: center; justify-content: center; }
  .aurora-header-wrap .aurora-header .aurora-navigation a { flex: 0 0 auto; min-height: 44px; padding: 0 11px; font-size: 13.5px; }
  .aurora-header-actions { gap: 4px; }
  .aurora-header-wrap .aurora-account:has(.aurora-avatar) { width: 44px; padding: 0; justify-content: center; }
  .aurora-header-wrap .aurora-account:has(.aurora-avatar) > span:last-child { display: none; }
  .aurora-header-wrap .aurora-header-actions > a[href$="#/help"] { width: 44px; padding: 0; justify-content: center; }
  .aurora-header-wrap .aurora-header-actions > a[href$="#/help"] > span { display: none; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .aurora-header-wrap .aurora-header .aurora-navigation a[href="/#forest"] { display: none; }
  .aurora-header-wrap .aurora-start { width: 44px; padding: 0; gap: 0; font-size: 0; }
  .aurora-header-wrap .aurora-start::before { width: 16px; height: 16px; margin: 0; }
}
@media (min-width: 681px) and (max-width: 760px) {
  .aurora-header-wrap .aurora-brand span { display: none; }
}

/* ---------- Phones: a short top bar and a tab bar at the bottom, the way phone apps are laid out ---------- */
@media (max-width: 680px), (pointer: coarse) {
  .aurora-start, .aurora-account, .aurora-navigation a { min-height: 44px; }
}
@media (max-width: 680px) {
  :root { --header-h: 56px; --tabbar-h: calc(58px + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--tabbar-h); }
  .aurora-header,
  .aurora-header:has(.aurora-navigation) { grid-template-columns: minmax(0, 1fr) auto; min-height: var(--header-h); padding: 6px 12px 6px 16px; gap: 4px; }
  .aurora-brand { font-size: 21px; }
  .aurora-brand img { width: 27px; height: 32px; }
  .aurora-brand span { display: inline; }
  .aurora-header-actions { gap: 2px; }
  .aurora-start { display: none; }
  .aurora-account:has(.aurora-avatar) { width: 44px; padding: 0; justify-content: center; }
  .aurora-account:has(.aurora-avatar) > span:last-child { display: none; }
  .aurora-account .aurora-avatar { display: grid; width: 32px; height: 32px; }
  .aurora-account:not(:has(.aurora-avatar)) { min-height: 44px; padding: 0 16px; font-size: 14px; }

  /* Help is a plain icon in the top bar, never a floating button over the page. */
  .aurora-header-actions > a[href$="#/help"],
  .is-scrolling-down .aurora-header-actions > a[href$="#/help"]:not(:focus-visible) {
    position: static;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--ink-soft);
    font-size: 14px;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .aurora-header-actions > a[href$="#/help"]::before { content: none; display: none; }
  .aurora-header-actions > a[href$="#/help"] > span { display: none; }
  .aurora-header-actions > a[href$="#/help"] .aurora-nav-icon { width: 22px; height: 22px; }
  .aurora-header-actions > a[href$="#/help"][aria-current="page"] { display: inline-flex; background: var(--surface-soft); color: var(--ink); }

  /* The main links become a tab bar fixed to the bottom edge. Selectors start with ".aurora-header-wrap .aurora-header"
     so they outrank aurora-shell.css's ".aurora-navigation:has(> a:nth-child(5))" rules without a selector list,
     which the home page's CSS minifier would fold into one :is() with the highest weight. */
  .aurora-header-wrap .aurora-header .aurora-navigation {
    position: fixed;
    inset: auto 0 0;
    z-index: 45;
    display: flex;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    margin: 0;
    padding: 4px 6px env(safe-area-inset-bottom);
    gap: 0;
    overflow: visible;
    justify-content: space-around;
    border: 0 !important;
    border-top: 1px solid var(--line) !important;
    border-radius: 0;
    background: #fbfaf8eb !important;
    box-shadow: 0 -8px 24px -20px #1a171540;
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    backdrop-filter: saturate(1.6) blur(18px);
    -webkit-mask-image: none;
    mask-image: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  .aurora-header-wrap .aurora-header .aurora-navigation a {
    flex: 1 1 0;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    min-height: 54px;
    padding: 4px 2px 3px;
    border-radius: var(--r-md);
    background: none !important;
    color: var(--faint);
    font-size: 12px;
    font-weight: 560;
    letter-spacing: 0;
    line-height: 1.1;
    box-shadow: none;
  }
  .aurora-header-wrap .aurora-header .aurora-navigation a.is-current { color: var(--ink); font-weight: 650; }
  /* The current tab's icon sits in a small pill, the way native tab bars mark where you are. */
  .aurora-header-wrap .aurora-header .aurora-navigation a.is-current .aurora-nav-icon { width: 52px; padding: 3px 15px; border-radius: var(--r-pill); background: var(--surface-soft); stroke-width: 2; }
  /* The sliding pill sits behind the current tab's icon, the way the icon pill above did. */
  .aurora-header-wrap .aurora-header .aurora-navigation { --nav-pill: icon; }
  .aurora-header-wrap .aurora-header .aurora-navigation.has-pill a.is-current .aurora-nav-icon { background: none; }
  .aurora-header-wrap .aurora-header .aurora-navigation .aurora-nav-pill { z-index: -1; background: var(--surface-soft); box-shadow: none; }
  .aurora-header-wrap .aurora-header .aurora-navigation.has-pill a.not-yet-current { color: var(--faint); }
  .aurora-header-wrap .aurora-header .aurora-navigation.has-pill a.was-current { color: var(--ink); }
  .aurora-header-wrap .aurora-header .aurora-navigation a[href="/#forest"] { display: none; }
  .aurora-navigation .aurora-nav-icon { display: block; box-sizing: border-box; width: 30px; height: 28px; padding: 3px 4px; }
  .aurora-navigation .aurora-nav-label { display: none; }
  .aurora-navigation .aurora-nav-short { display: block; }
  /* Create sits in the middle as the one filled button, like a compose button. */
  .aurora-header-wrap .aurora-header .aurora-navigation .aurora-nav-create { display: flex; color: var(--ink-soft); }
  .aurora-navigation .aurora-nav-create .aurora-nav-icon { width: 44px; height: 28px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--berry); color: #fff; stroke-width: 2.2; }
  .aurora-navigation a:active .aurora-nav-icon { transform: scale(.92); }
  .aurora-header-wrap.is-over-welcome .aurora-header .aurora-navigation { border-top-color: #ffffff1f !important; background: #160b10d9 !important; }
  .aurora-header-wrap.is-over-welcome .aurora-header .aurora-navigation a { color: #ffffffb3; }
  .aurora-header-wrap.is-over-welcome .aurora-header .aurora-navigation a.is-current { color: #fff; }
  .aurora-header-wrap.is-over-welcome .aurora-header .aurora-navigation a.is-current .aurora-nav-icon { background: #ffffff26; }
  .aurora-header-wrap.is-over-welcome .aurora-header .aurora-navigation .aurora-nav-create { color: #ffffffd9; }
  .aurora-header-wrap.is-over-welcome .aurora-navigation .aurora-nav-create .aurora-nav-icon { background: #fff; color: var(--ink); }
  .is-over-welcome .aurora-header-actions > a[href$="#/help"] { color: #ffffffd9; }

  .aurora-gripe { right: max(14px, env(safe-area-inset-right)); bottom: calc(var(--tabbar-h) + 12px); }
  /* The forest fills the screen with its own Leave button, so the tab bar steps out of the way. */
  html:has(.forest-experience) { --tabbar-h: 0px; }
  html:has(.forest-experience) .aurora-header-wrap .aurora-header .aurora-navigation { display: none; }
}
@media (max-width: 360px) {
  .aurora-header-wrap .aurora-header .aurora-navigation a { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-navigation a:active .aurora-nav-icon { transform: none; }
  .aurora-nav-pill, .aurora-navigation.has-pill a { transition: none; }
}


/* ---------- Type ---------- */
body {
  background: var(--page-glow), var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body, button, input, textarea, select, .aurora-header-wrap { font-family: var(--body); }
h1, h2, h3, h4 { font-family: var(--heading); color: var(--ink); text-wrap: balance; }
h1 { font-weight: 650; letter-spacing: -0.024em; line-height: 1.1; }
h2 { font-size: 22px; font-weight: 640; letter-spacing: -0.018em; line-height: 1.22; }
h3 { font-size: 17px; font-weight: 620; letter-spacing: -0.01em; line-height: 1.3; }
p { color: var(--muted); }
.count, .small-text, time, [class*=count] { font-variant-numeric: tabular-nums; }
.eyebrow,
.ws-label,
.ws-next .ws-label {
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
}
.page-title { margin-bottom: 28px; }
.page-title h1,
.workspace-content .page-title h1,
.project-settings-page h1 { font-size: clamp(28px, 2.4vw, 34px); font-weight: 680; letter-spacing: -0.026em; line-height: 1.1; }
.page-title p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.project-heading h1 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 680; letter-spacing: -0.03em; }
.ws-overview-head h1 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 680; letter-spacing: -0.026em; }
.project-detail-copy h1 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 680; letter-spacing: -0.026em; }
.ws-sec-title { font-size: 18px; font-weight: 640; letter-spacing: -0.012em; }

/* The workspace sidebar sticks under the shorter header. */
@media (min-width: 761px) {
  .workspace.ws-frame { min-height: calc(100svh - var(--header-h)); }
  .ws-frame .ws-side { top: var(--header-h); height: calc(100svh - var(--header-h)); }
}
/* Tablet and sideways-phone header: aurora-premium-base.css keeps it to one row. */

/* ---------- Buttons, fields, chips ---------- */
.btn {
  min-height: 44px;
  padding: 10px 16px;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.005em;
  box-shadow: 0 1px 2px #1a17150d;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: none; border-color: #c2bcb3; background: var(--surface-hover); box-shadow: 0 1px 0 #1a17150a; }
.btn:active { transform: none; background: var(--surface-soft); box-shadow: none; }
.btn.primary { border-color: var(--berry); background: var(--berry); color: #fff; box-shadow: inset 0 1px 0 #ffffff1f, 0 1px 2px #1a171529; }
.btn.primary:hover { transform: none; border-color: var(--berry-hover); background: var(--berry-hover); box-shadow: inset 0 1px 0 #ffffff1f, 0 1px 2px #1a171529; }
.btn.primary:active { background: var(--berry-dark); box-shadow: none; }
.btn.quiet { border-color: transparent; background: transparent; box-shadow: none; }
.btn.quiet:hover { background: var(--surface-hover); }
.btn.small { min-height: 44px; padding: 7px 12px; font-size: 13px; }
.btn.danger { color: #9b1c24; }
.btn.light { border-color: var(--line-strong); background: var(--surface); box-shadow: 0 1px 0 #1a17150a; }
.btn .icon { width: 16px; height: 16px; }
.text-link { color: var(--ink); font-weight: 550; gap: 6px; }
.text-link .icon { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.text-link:hover { text-decoration: none; color: var(--berry); }
.text-link:hover .icon { transform: translateX(2px); }
.icon { stroke-width: 1.6; }

input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
textarea,
select {
  border-color: var(--line-strong);
  border-radius: var(--r-md);
  background-color: var(--surface);
  color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #9a938b; }
:is(input, textarea, select):not([type=checkbox]):not([type=radio]):focus,
:is(input, textarea, select):not([type=checkbox]):not([type=radio]):focus-visible { border-color: #8f3a3a; outline: none; box-shadow: var(--ring); }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); }
.search, .sort-select { min-height: 44px; border-radius: var(--r-md); border-color: var(--line-strong); background-color: var(--surface); box-shadow: none; }
/* The sort menu keeps the native list but draws its own chevron, so it matches the search box beside it. */
select.sort-select {
  -webkit-appearance: none;
  appearance: none;
  padding: 0 38px 0 14px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5751' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
  color: var(--ink);
  font-size: 14px;
  font-weight: 520;
  cursor: pointer;
}
select.sort-select:hover { border-color: #c2bcb3; }
.search:focus-within { border-color: #8f3a3a; box-shadow: var(--ring); }
.search input, .search input:focus, .search input:focus-visible { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.search .icon { width: 17px; height: 17px; color: var(--faint); }

/* Filters are round chips; the chosen one is filled with ink. */
.category {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 520;
}
.category:not(.active):hover { background: var(--surface-hover); color: var(--ink); }
.category.active,
.discover-page .category.active { border-color: var(--ink); background: var(--ink); color: #fbfaf8; }

/* Tags: hairline outline, neutral text. Status colour lives only in the dot. */
.pill {
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 540;
  letter-spacing: 0;
}
.pill.neutral { border-color: var(--line); background: var(--surface-soft); color: var(--muted); }
.pill.green, .pill.amber, .pill.status, .pill.status.green, .pill.status.amber, .pill.status.blue {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
}
.pill.status { border-radius: var(--r-pill); }
.pill.status::before { width: 6px; height: 6px; flex-basis: 6px; background: var(--berry); }
.pill.status.green::before { background: #2f7a52; }
.pill.status.amber::before { background: #b5822c; }
.pill.status.blue::before { background: #36678c; }
.pill.green:not(.status) { color: #2f6348; }
.pill.amber:not(.status) { color: #7a531c; }

/* ---------- Surfaces: hairline borders, almost no shadow ---------- */
:is(.ws-main, .project-page, .page) :is(.panel, .ws-connect-card, .studio-files, .team-add-box, .publication-step, .project-detail-team, .feedback-composer, .account-connections, .pc-chat-surface),
.directory-tools,
.discover-page .directory-tools {
  border-color: var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--lift);
}
.discover-page .directory-tools { padding: 0 0 18px; margin-bottom: 28px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.publication-drop { border-radius: var(--r-md); border-color: var(--line-strong); background: var(--bg); }
.notice { border-radius: var(--r-md); }

/* ---------- Project cards ---------- */
.project-card,
.project-card { overflow: hidden; background: var(--surface); transition: border-color .3s, box-shadow .45s var(--ease-out), transform .45s var(--ease-out); }
.project-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--lift-hover); }
.project-card:hover .card-preview > * { transform: scale(1.025); }
.project-card .card-info :is(h2, h3) { font-size: 17px; font-weight: 640; letter-spacing: -0.012em; }
.card-info p { font-size: 14px; line-height: 1.5; }
.card-bottom { border-top-color: var(--line); }
.card-maker { color: var(--faint); font-size: 13px; }
.card-maker .icon { width: 15px; height: 15px; }
.card-bottom a { color: var(--ink); font-weight: 550; }
.card-bottom a:hover { color: var(--berry); text-decoration: none; }

/* Generated covers are cut from Aurora's own night sky, each in one real aurora colour (rose, green, violet, blue),
   so a grid of projects without screenshots still tells them apart at a glance. */
.preview-placeholder[class*=cover-tone] { color: #f6eff1; background-color: #1d1216; background-size: cover; background-position: center; }
.preview-placeholder[class*=cover-tone]::before { display: none; }
.preview-placeholder.cover-tone-0, .project-card .preview-placeholder.cover-tone-0 { background-image: linear-gradient(to top, #120a0d80, transparent 50%), url(/aurora/assets/cover-sky-0.webp); color: #f6eff1; }
.preview-placeholder.cover-tone-1, .project-card .preview-placeholder.cover-tone-1 { background-image: linear-gradient(to top, #120a0d80, transparent 50%), url(/aurora/assets/cover-aurora-green.webp); color: #f6eff1; }
.preview-placeholder.cover-tone-2, .project-card .preview-placeholder.cover-tone-2 { background-image: linear-gradient(to top, #120a0d80, transparent 50%), url(/aurora/assets/cover-aurora-violet.webp); color: #f6eff1; }
.preview-placeholder.cover-tone-3, .project-card .preview-placeholder.cover-tone-3 { background-image: linear-gradient(to top, #120a0d8c, transparent 50%), url(/aurora/assets/cover-aurora-blue.webp); color: #f6eff1; }
.preview-placeholder[class*=cover-tone] { background-size: cover; background-position: center; background-repeat: no-repeat; }
.project-card .preview-placeholder[class*=cover-tone] { background-size: cover; background-position: center; background-repeat: no-repeat; }
.preview-placeholder[class*=cover-tone] > :first-child {
  font-family: var(--heading);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 640;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 18px #12080b66;
}
.preview-placeholder[class*=cover-tone] > :last-child { font-size: 12px; font-weight: 600; letter-spacing: .1em; opacity: .82; }
/* On cards the monogram sits in the lower left like a label on a print, not centred like a logo. */
.project-card .preview-placeholder[class*=cover-tone],
.project-card:hover .preview-placeholder[class*=cover-tone] { transform: scale(1.03); }
.project-heading-tile { width: 72px; border-radius: 18px; box-shadow: 0 0 0 1px #1a17150f, var(--lift); }
.project-heading-tile .preview-placeholder[class*=cover-tone] > :first-child { font-size: 24px; }
@media (max-width: 1050px) {
  .project-heading-tile { width: 60px; border-radius: 14px; }
  .project-heading-tile .preview-placeholder[class*=cover-tone] > :first-child { font-size: 20px; }
}
.ws-thumb { border-radius: var(--r-sm); }
.ws-thumb-initials { background: #1d1216 url(/aurora/assets/cover-sky-0.webp) center / cover; color: #f6eff1; font-weight: 600; }

/* ---------- Workspace ---------- */
.ws-frame .ws-side { padding: 18px 12px 16px; gap: 14px; background: var(--surface); }
.ws-frame .ws-identity strong { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.ws-nav-group { margin-top: 10px; gap: 1px; }
.ws-nav-heading { padding: 4px 12px 4px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.ws-nav a { min-height: 40px; margin-inline: 0; padding: 0 10px 0 12px; border-radius: var(--r-md); color: var(--muted); font-size: 14px; font-weight: 500; }
.ws-nav a .icon { width: 16px; height: 16px; color: var(--faint); }
.ws-nav a:hover { background: var(--surface-hover); color: var(--ink); }
.ws-nav a.is-current { background: var(--surface-soft); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--berry); }
.ws-nav a.is-current .icon { color: var(--ink); }
.ws-next {
  padding: 24px 26px;
  border-color: var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--lift);
}
.ws-next-title { font-size: 22px; font-weight: 660; letter-spacing: -0.018em; }
@media (max-width: 760px) {
  /* Phone tabs: plain labels with an underline, the way native apps mark the current tab. */
  .ws-frame .ws-nav { gap: 0; padding: 0 12px; border-top: 1px solid var(--line); margin-top: 6px; }
  .ws-nav a,
  .ws-nav a.is-current {
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--muted);
    box-shadow: inset 0 -2px 0 transparent;
  }
  .ws-nav a.is-current { background: none; color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--berry); }
  .ws-frame .ws-side { padding: 12px 16px 0; }
  .ws-next { padding: 20px; }
}

/* ---------- Empty states: the glyph alone, no tinted tile around it ---------- */
.empty,
.work-group-empty { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.empty .empty-symbol,
.empty-glyph,
.pc-empty-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
}
:is(.empty-glyph, .pc-empty-icon) svg, .empty .empty-symbol .icon { width: 24px; height: 24px; stroke-width: 1.4; }
.pc-empty h3, .empty h3 { font-size: 16px; font-weight: 640; letter-spacing: -0.01em; }
.ws-files .studio-files-view.is-empty .studio-files-empty::before {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: center / 24px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367615b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h10l6 6v10H4zM14 4v6h6M12 13v5M9.5 15.5h5'/%3E%3C/svg%3E");
}
.pc-group-avatar { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-soft); }

/* ---------- Chat status labels, a shade darker than before so they pass 4.5:1 ---------- */
.pc-sync-status { background: var(--surface-soft); color: var(--muted); }
.pc-privacy, .pc-help, .pc-recipient-help, .pc-visibility, .pc-composer-controls > span { color: var(--muted); }

/* ---------- People and connections ---------- */
.avatar { border: 0; background: var(--surface-soft); color: var(--ink-soft); font-weight: 600; box-shadow: inset 0 0 0 1px #1a17150d; }
.avatar.big { width: 52px; height: 52px; font-size: 17px; }
.account-profile h2 { font-size: 20px; }
.account-connections-heading h2 { font-size: 18px; }
.account-ai-heading :is(h2, h3), .account-connection-row h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
.account-ai .workspace-connection-state, .account-github .workspace-connection-state { color: var(--muted); }
.ws-files .workspace-repository-label, .ws-files .workspace-repository-info h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
.ws-files .workspace-repository-bar { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--lift); }

/* ---------- Footer ---------- */
.footer { color: var(--faint); font-size: 13px; }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--ink); }

/* ---------- Modals and toasts ---------- */
.modal, .modal-card, [role=dialog] > .panel { border-radius: var(--r-lg); }
.toast { border-radius: var(--r-pill); background: var(--ink); color: #f6f5f2; box-shadow: var(--float); }

/* ---------- Phone ---------- */
@media (max-width: 680px), (pointer: coarse) {
  .btn, .aurora-start, .aurora-account, .category, .aurora-navigation a { min-height: 44px; }
}
@media (max-width: 680px) {
  .page-title h1, .workspace-content .page-title h1 { font-size: 26px; }
  .project-heading h1 { font-size: 30px; }
  .ws-overview-head h1 { font-size: 28px; }
}

/* ---------- Choices, checks and the danger zone ---------- */
input[type=checkbox], input[type=radio] { accent-color: var(--ink) !important; }
.team-mode-choice,
.ws-team .team-mode-choice { border-color: var(--line); border-radius: var(--r-md); background: var(--surface); }
.team-mode-choice:has(input:checked),
.ws-team .team-mode-choice:has(input:checked) { border-color: var(--ink); background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ws-team .platform-management .ps-roster .ps-avatar,
.ps-avatar { border: 0; background: var(--surface-soft); color: var(--ink-soft); font-weight: 600; }
.ws-team .platform-management .ps-roster .ps-level { border-radius: var(--r-sm); background: var(--surface-soft); color: var(--muted); font-weight: 520; }
.settings-archive,
.ws-settings .settings-archive { border-color: #e6d3cf; border-radius: var(--r-lg); background: var(--surface); }
.settings-archive h2,
.ws-settings .settings-archive h2 { color: #8f1a1a; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.ghp-chip { padding: 2px 9px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-soft); font-size: 12px; font-weight: 520; }
.ghp-chip.is-warn::before, .ghp-chip.is-ok::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #b5822c; vertical-align: 1px; }
.ghp-chip.is-ok, .ghp-chip.is-warn { background: var(--surface); color: var(--ink-soft); }
.ghp-chip.is-ok::before { background: #2f7a52; }
.workspace-content > details.panel > summary .icon,
.heading-with-icon .icon { color: var(--ink-soft); }

/* ---------- Brainstorm document: the same type as the rest of Aurora ---------- */
.brainstorm-shell .ql-container,
.brainstorm-shell .ql-container .ql-editor { font-family: var(--body); }
.brainstorm-shell .ql-container .ql-editor :is(h1, h2, h3),
.brainstorm-editor :is(h1, h2, h3) { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.brainstorm-shell .ql-toolbar.ql-snow { border-color: var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; font-family: var(--body); }
.brainstorm-shell .ql-container.ql-snow { border-color: var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* ---------- Role choices are tap-sized chips; the tick shows inside the chosen ones ---------- */
.team-role-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.team-role-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 520;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.team-role-choice:hover { border-color: #c2bcb3; background: var(--surface-hover); }
.team-role-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.team-role-choice:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.team-role-choice:has(input:checked)::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: -3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.team-role-choice:has(input:focus-visible) { outline: 2px solid var(--berry); outline-offset: 2px; }
@media (max-width: 680px) { .team-role-choice { min-height: 44px; } }

/* ---------- Focus: one visible ring everywhere for keyboard users ---------- */
:is(a, button, summary, [role=button], [tabindex]):focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }

/* ---------- Phones: the complaint button steps aside while you scroll down, and comes back when you scroll up ---------- */
@media (max-width: 680px) {
  .aurora-gripe { transition: opacity .2s, transform .3s var(--ease-out); }
  .is-scrolling-down .aurora-gripe:not(:focus-within):not(:has(.aurora-gripe-panel:not([hidden]))) { opacity: 0; transform: translateY(12px); pointer-events: none; }
}

/* ---------- Nothing people need to read is smaller than 12px ---------- */
.pc-heading p, .pc-heading-actions .btn, .pc-room-identity p, .pc-privacy, .pc-help, .pc-recipient-help,
.pc-participants summary, .pc-participants summary span, .pc-participants-heading span, .pc-sync-status, .pc-avatar,
.ko-security-status p, .ko-config-note summary, .ko-config-note p, .ko-evidence,
.admin-status, .access-you, .access-status, .ws-side-label,
.collab-person small, .collab-person div > span, .collab-avatar, .collab-member-facts dt, .collab-activity summary, .collab-activity p,
.collab-tag, .collab-evidence, .collab-provenance, .collab-form label + .collab-help, .collab-limitations ul, .collab-option-number,
.collab-choice-count, .collab-comment-heading time, .collab-share > .collab-help:last-child, .collab-brand span, .collab-scope .btn,
.collab-live, .collab-share-person > p, .collab-credit-size, .collab-help { font-size: 12px; }
.pc-heading-actions .btn { font-size: 13px; }

/* ---------- Small icon buttons get a full-size touch area without growing on screen ---------- */
.info-tip-button { position: relative; }
.info-tip-button::after { content: ""; position: absolute; inset: -9px; }
@media (max-width: 680px), (pointer: coarse) {
  .pc-tools .icon-button, .account-connections-heading .icon-button, button.icon-button[aria-label="Refresh"] { min-width: 44px; min-height: 44px; }
  .svc-chip, .pm-switch button { min-height: 40px; }
  button[data-feedback-edit] { min-width: 44px; min-height: 44px; }
}
.svc-chip { border-radius: var(--r-pill); }

/* ---------- Phones: category chips stay on one row and scroll sideways, like a filter bar in a store app ---------- */
@media (max-width: 680px) {
  .discover-page .browse-lower { flex-wrap: nowrap; align-items: center; }
  .discover-page .categories {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    min-width: 0;
    margin-inline: -16px;
    padding: 2px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 24px), transparent);
  }
  .discover-page .categories::-webkit-scrollbar { display: none; }
  .discover-page .categories .category { flex: none; }
}

/* ---------- Import: the beta-listing checkbox keeps its own size beside its label ---------- */
.ko-form label.ko-source { gap: 10px; min-height: 44px; font-size: 14px; }
.ko-form label.ko-source > input[type=checkbox] { flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; }


/* ---------- Workspace sidebar: groups fold away, and the sidebar folds down to icons ---------- */
.ws-rail-toggle { display: none; }
@media (min-width: 761px) {
  .ws-nav-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 32px; margin: 0; padding: 4px 10px 4px 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--faint); font: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0; text-align: left; text-transform: none; cursor: pointer; }
  .ws-nav-heading:hover { background: var(--surface-hover); color: var(--ink); }
  .ws-nav-heading:focus-visible, .ws-rail-toggle:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }
  .ws-nav-heading .icon { flex: none; width: 14px; height: 14px; color: currentColor; transition: transform .2s var(--ease-out); }
  .ws-nav-group.is-closed .ws-nav-heading .icon { transform: rotate(-90deg); }
  /* A folded group that holds the current page says so. */
  .ws-nav-group.is-closed:has([aria-current="page"]) .ws-nav-heading { color: var(--ink); font-weight: 600; }
  .ws-nav-items { display: grid; gap: 1px; }
  .ws-nav-group.is-closed .ws-nav-items { display: none; }
  .ws-rail-toggle { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: -4px 0 0; padding: 0 12px; border: 0; border-radius: var(--r-md); background: none; color: var(--faint); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
  .ws-rail-toggle:hover { background: var(--surface-hover); color: var(--ink); }
  .ws-rail-toggle .icon { flex: none; width: 16px; height: 16px; }

  .workspace.ws-frame.is-rail { grid-template-columns: 68px minmax(0, 1fr); }
  .ws-frame.is-rail .ws-side { padding-inline: 10px; overflow-x: hidden; }
  .ws-frame.is-rail .ws-identity { justify-content: center; padding: 0; }
  .ws-frame.is-rail .ws-thumb { width: 40px; }
  .ws-frame.is-rail :is(.ws-identity-text, .ws-nav-heading, .ws-preview) { display: none; }
  .ws-frame.is-rail :is(.ws-nav-label, .ws-rail-label) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ws-frame.is-rail .ws-nav-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .ws-frame.is-rail .ws-nav-group.is-closed .ws-nav-items { display: grid; }
  .ws-frame.is-rail :is(.ws-nav a, .ws-rail-toggle) { justify-content: center; padding: 0; }
  .ws-frame.is-rail .ws-nav a .icon { width: 18px; height: 18px; }
  .ws-frame.is-rail .ws-count { position: absolute; top: 8px; right: 10px; width: 8px; height: 8px; margin: 0; border-radius: 50%; background: var(--berry); font-size: 0; }
  .ws-frame.is-rail .ws-rail-toggle { margin-top: auto; }
  .ws-frame.is-rail .ws-rail-toggle .icon { transform: scaleX(-1); }
}

@media (max-width: 760px) {
  /* Phones keep the one row of tabs; groups and the icon-only mode are for wider screens. */
  .ws-nav-items { display: contents; }
}

/* ---------- Upload and test: a dashboard header, one big upload card, small cards for the rest ---------- */
.ws-publish .ws-tools-heading { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.ws-publish .ws-tools-heading p { margin-top: 8px; font-size: 15px; }
.ws-docs-pill { display: inline-flex; align-items: center; min-height: 30px; margin-left: 10px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 550; line-height: 1; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.ws-docs-pill:hover { background: var(--surface-hover); }
.ws-docs-pill:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }

.ws-publish .publication-file-step { padding: 26px 30px; transition: border-color .2s, background .2s; }
.ws-publish .publication-file-body { display: flex; align-items: center; gap: 40px; }
.ws-publish .publication-file-main { flex: 1; min-width: 0; }
.ws-publish .publication-upload-art { display: none; flex: none; width: 300px; height: auto; margin: -6px 0 -10px; }
.ws-publish .publication-file-step:has(.publication-step-heading:not(.is-done)):has(.publication-drop) .publication-upload-art { display: block; }

/* The drop box is the card itself: no box inside a box, and a dashed edge while a file is dragged over. */
.ws-publish .publication-file-step .publication-drop { gap: 6px; padding: 4px 0 0; border: 0; border-radius: 0; background: none; }
.ws-publish .publication-file-step .publication-drop:focus-within { outline: 0; }
.ws-publish .publication-file-step .publication-drop-title { font-size: 24px; font-weight: 660; letter-spacing: -0.018em; line-height: 1.25; }
.ws-publish .publication-file-step .publication-drop .hosting-submission-help { max-width: 56ch; color: var(--muted); font-size: 15px; line-height: 1.6; }
.ws-publish .publication-file-step .publication-drop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ws-publish .publication-file-step .publication-drop-choose { margin: 0; }
.ws-publish .publication-file-step .publication-drop-choose:has(+ .publication-drop-input:focus-visible) { outline: 2px solid var(--berry); outline-offset: 2px; }
.ws-publish .publication-file-step:has(.publication-drop.is-dragging) { border: 1.5px dashed var(--art-ink); background: #fbf5f3; }
.ws-publish .publication-file-step .publication-drop.is-dragging { background: none; }
/* The name and Upload appear once there is a folder or file ready. */
.ws-publish .hosting-submissions-form:not(:has(.hosting-submission-selected)) :is(label[for="hosting-submission-title"], label[for="hosting-submission-notes"], .hosting-submission-send > .btn.primary) { display: none; }
.ws-publish .private-testers-search { max-width: 640px; }
.ws-publish .hosting-submissions-form :is(label[for="hosting-submission-title"], label[for="hosting-submission-notes"]) { max-width: 560px; }

/* The steps read as one track: a numbered dot for each stop down the left, joined by a line. The stop you're on
   is a white card; stops still to come are one quiet line each, so newcomers see the whole path at a glance. */
.ws-publish .publication-private-flow { --rail: 52px; --pad: 26px; --top: 20px; --dot: 30px; --gap: 12px; padding-left: var(--rail); }
.ws-publish .publication-private-flow > * { margin-top: 0; margin-bottom: 0; }
.ws-publish .publication-private-flow .publication-step { position: relative; margin: 0 0 var(--gap); padding: var(--top) var(--pad); }
.ws-publish .publication-private-flow .publication-step + .publication-step { margin-top: 0; }
.ws-publish .publication-private-flow .publication-file-step { padding: var(--top) var(--pad) 26px; }
.ws-publish .publication-private-flow .publication-step-heading { position: relative; min-height: var(--dot); }
.ws-publish .publication-private-flow .publication-step-number {
  position: absolute;
  top: 0;
  left: calc(-1 * var(--rail) - var(--pad) - 1px);
  z-index: 1;
  width: var(--dot);
  height: var(--dot);
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--faint);
  font-size: 13px;
  font-weight: 650;
}
.ws-publish .publication-private-flow .publication-step::before {
  content: "";
  position: absolute;
  top: calc(var(--top) + var(--dot) / 2);
  bottom: calc(-1 * (var(--gap) + 60px));
  left: calc(var(--dot) / 2 - var(--rail) - 1.75px);
  width: 1.5px;
  background: var(--line-strong);
}
.ws-publish .publication-private-flow .publication-public-step::before { display: none; }
/* Parts between the steps differ in height, so each line runs long and the last dot caps it. */
.ws-publish .publication-private-flow .publication-public-step .publication-step-heading::after { content: ""; position: absolute; z-index: 1; top: var(--dot); bottom: -400px; left: calc(-1 * var(--rail) - var(--pad) - 3px); width: calc(var(--dot) + 4px); background: var(--bg); pointer-events: none; }
/* Where you are: the stop to do now is filled, stops you're working in are outlined, finished ones get a tick. */
.ws-publish .publication-private-flow .publication-step:not(.is-waiting) .publication-step-number { border-color: var(--berry); color: var(--berry); }
.ws-publish .publication-private-flow .publication-file-step .publication-step-heading:not(.is-done) .publication-step-number { border-color: var(--berry); background: var(--berry); color: #fff; }
.ws-publish .publication-private-flow .publication-step-heading.is-done .publication-step-number { border-color: var(--ink); background: var(--ink); color: #fff; }
.ws-publish .publication-private-flow .publication-step-heading h2 { font-size: 17px; font-weight: 620; line-height: var(--dot); }
/* Stops still to come: no card, just the name. */
.ws-publish .publication-private-flow :is(.publication-step.is-waiting, .publication-public-step:not(:has(.publication-step-body))) { --top: 4px; border-color: transparent; background: none; box-shadow: none; }
.ws-publish .publication-private-flow :is(.publication-step.is-waiting, .publication-public-step:not(:has(.publication-step-body))) h2 { color: var(--muted); font-weight: 560; }
.ws-publish .publication-private-flow .publication-public-step:not(:has(.publication-step-body)) .publication-step-number { border-color: var(--line-strong); color: var(--faint); }
.ws-publish .publication-private-flow .publication-steps-waiting:not([hidden]) { display: block; }
/* Go public: the last stop, with the verification line beside its button. */
.ws-publish .publication-private-flow .publication-public-step .publication-step-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 8px; }
.ws-publish .publication-private-flow .publication-public-step .publication-step-body .hosting-help { margin: 0; color: var(--muted); font-size: 14px; }
.ws-publish .publication-private-flow .publication-public-step .btn { min-height: 38px; font-size: 14px; }
.ws-publish .publication-private-flow .publication-more { margin-top: 20px; }
/* The upload box: one short line and a lock, details behind the ⓘ. */
.ws-publish .publication-file-step .hosting-submission-help .info-tip { margin-left: 4px; vertical-align: -3px; }
.ws-publish .hosting-submission-private { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 13px; }
.ws-publish .hosting-submission-private::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11h14v10H5zM8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11h14v10H5zM8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
/* The page stacks its parts; empty slots take no room. */
.ws-publish .publication-flow > :is([data-external-review], [data-publishing-testers]):empty { display: none; }
.ws-publish .publication-backend-help .hosting-actions { margin-top: 10px; }
.ws-publish .publication-backend-help .hosting-help:empty { display: none; }

@media (max-width: 1100px) {
  .ws-publish .publication-upload-art { width: 220px; }
}
@media (max-width: 900px) {
  .ws-publish .publication-file-step:has(.publication-step-heading:not(.is-done)):has(.publication-drop) .publication-upload-art { display: none; }
}
@media (max-width: 760px) {
  .ws-publish .ws-tools-heading { margin-bottom: 20px; padding-bottom: 16px; }
  .ws-publish .publication-file-step { padding: 20px; }
  .ws-publish .publication-file-step .publication-drop-title { font-size: 20px; }
  .ws-publish .publication-private-flow { --rail: 40px; --pad: 18px; --dot: 26px; }
  .ws-publish .publication-private-flow .publication-step-number { font-size: 12px; }
  .ws-publish .publication-private-flow .publication-public-step .publication-step-body { flex-direction: column; align-items: flex-start; }
  .ws-publish .publication-file-step .publication-drop-choose { justify-content: center; text-align: center; }
}

/* ---------- Pictures (views/art.mjs): one style for empty pages, the upload card and the next step ---------- */
svg.art { display: block; flex: none; width: 220px; max-width: 100%; height: auto; }
.art stop:first-child { stop-color: var(--art-ink); }
.art stop:last-child { stop-color: var(--art-ring); }
.art-rings { stroke-width: 1.1; opacity: .34; }
.art-paper { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.art-soft { fill: var(--art-soft); stroke: var(--art-ink); stroke-width: 1.5; }
.art-line { fill: var(--art-line); }
.art-cover { fill: var(--art-soft); }
.art-ink { fill: var(--art-ink); }
.art-white { fill: #fff; }
.art-stroke { fill: none; stroke: var(--art-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art-stroke.art-faint { stroke: var(--line-strong); stroke-width: 1.5; }
.art-badge circle { fill: var(--art-soft); stroke: var(--art-ink); stroke-width: 2; }
.art-badge path { fill: none; stroke: var(--art-ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* Empty pages: the picture sits above the heading, centred. */
:is(.empty, .work-group-empty).has-art > svg.art,
.pc-empty > svg.art,
.collab-empty > svg.art,
#studio-file-list > svg.art,
.access-pending svg.art { width: 210px; margin: 0 auto 6px; }
:is(.empty, .work-group-empty).has-art { padding-top: 22px; }
.ws-files .studio-files-view.is-empty svg.art + .studio-files-empty::before { content: none; display: none; }
.access-pending .access-list:has(> svg.art) { display: grid; justify-items: center; padding: 18px 16px 20px; text-align: center; }
.access-pending .access-list > svg.art + .access-empty { margin: 0; }

/* Verification before there's an app: one quiet card instead of an empty box. */
.publication-verify-empty { display: grid; justify-items: center; gap: 4px; padding: 28px 24px 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--lift); text-align: center; }
.publication-verify-empty > svg.art { width: 240px; }
.publication-verify-empty .hosting-help { margin: 0; color: var(--muted); font-size: 15px; }
.publication-verification .publication-verification-file:has([data-publishing-file]:empty) { display: none; }

/* Overview: the next step's picture sits to the right of its words. */
.ws-next:has(> .ws-next-art) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: start; }
.ws-next:has(> .ws-next-art) > :not(.ws-next-art) { grid-column: 1; }
.ws-next:has(> .ws-next-art) > .btn { justify-self: start; }
.ws-next > svg.ws-next-art { grid-column: 2; grid-row: 1 / span 4; align-self: center; width: 220px; margin: -12px 0; }
@media (max-width: 900px) {
  .ws-next > svg.ws-next-art { display: none; }
}

/* ---------- Upload → Try it → Share: one upload window ----------
   Like a video upload dialog: the steps across the top, the step's content on the left with its optional extras
   folded underneath, a live picture of the app with a progress checklist on the right, and Back / Next below.
   The picture's animations follow real states only: sending the file, checking the code, ready, opened, live. */
.upload-studio { overflow: clip; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 1px 2px #1a17150d, 0 14px 36px #30221b10; }

/* Steps */
.studio-steps { padding: 16px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--rose) 55%, var(--surface)), var(--surface)); }
.studio-steps ol { display: flex; margin: 0; padding: 0; list-style: none; }
.studio-steps li { display: flex; flex: 1; align-items: center; min-width: 0; }
.studio-steps li:last-child { flex: 0 1 auto; }
.studio-steps li:not(:last-child)::after { content: ""; flex: 1; min-width: 24px; height: 2px; margin: 0 16px; border-radius: 2px; background: linear-gradient(var(--ink), var(--ink)) left / 0% 100% no-repeat, var(--line); transition: background-size .6s cubic-bezier(.2, .7, .2, 1); }
.studio-steps li.is-done:not(:last-child)::after { background-size: 100% 100%; }
.studio-step { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 4px 6px 4px 4px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; text-align: left; opacity: 1; }
button.studio-step:not(:disabled) { cursor: pointer; }
button.studio-step:not(:disabled):hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
button.studio-step:disabled { cursor: default; opacity: 1; }
button.studio-step:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }
.studio-step .app-pipeline-dot { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; transition: background .3s, border-color .3s, color .3s, box-shadow .3s; }
.studio-step .app-pipeline-text { display: grid; gap: 1px; min-width: 0; }
.studio-step .app-pipeline-name { color: inherit; font-size: 14.5px; font-weight: 650; line-height: 1.25; white-space: nowrap; }
.studio-steps li[aria-current="step"] .studio-step { color: var(--ink); }
.studio-steps li[aria-current="step"] .app-pipeline-dot { border-color: var(--berry); background: var(--berry); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--berry) 13%, transparent); }
.studio-steps li.is-done .studio-step { color: var(--ink); }
.studio-steps li.is-done .app-pipeline-dot { border-color: var(--ink); background: var(--ink); color: #fff; }
.studio-steps li:not([aria-current]):not(.is-done) button.studio-step:disabled { opacity: .7; }

/* Body and footer */
.studio-body { display: grid; grid-template-columns: minmax(0, 1fr) 336px; }
.studio-main { min-width: 0; padding: 26px 28px 20px; }
.studio-preview { display: grid; align-content: start; gap: 20px; min-width: 0; padding: 26px 24px; border-left: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 45%, var(--surface)); }
.studio-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.studio-footnote { display: flex; align-items: center; gap: 9px; min-width: 0; margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.studio-footnote.is-busy::before { content: ""; flex: none; width: 13px; height: 13px; border: 2px solid color-mix(in srgb, var(--berry) 22%, transparent); border-top-color: var(--berry); border-radius: 50%; animation: studio-spin .8s linear infinite; }
.studio-footer .app-stage-nav { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: 0 0 0 auto; padding: 0; border: 0; }
.studio-footer .app-stage-nav > span:empty { display: none; }
.app-stage-nav .btn { min-height: 46px; padding-inline: 20px; font-size: 15px; }
.app-stage-nav .btn:disabled { opacity: .5; cursor: not-allowed; }
.app-stage-nav .btn.primary:disabled { border-color: var(--line); background: var(--surface-soft); color: var(--muted); box-shadow: none; opacity: 1; }
.app-stage-nav .app-stage-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.app-stage-nav .app-stage-back:hover { text-decoration: underline; text-underline-offset: 3px; }

.app-stage-head { margin: 0 0 18px; }
.app-stage-head :is(h1, h2) { margin: 0; color: var(--ink); font-size: 24px; font-weight: 690; letter-spacing: -0.018em; line-height: 1.2; }
.app-stage-head :is(h1, h2):focus { outline: none; }
.app-stage-head :is(h1, h2):focus-visible { outline: 2px solid var(--berry); outline-offset: 4px; border-radius: 4px; }
.upload-studio .is-entering { animation: studio-enter .34s cubic-bezier(.2, .7, .2, 1) both; }

/* Optional extras: quiet rows under the step's content */
.studio-extras { margin-top: 24px; border-top: 1px solid var(--line); }
.studio-extras[hidden] { display: none; }
.studio-extras-title { margin: 14px 0 2px; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.app-addon { display: block; border-bottom: 1px solid var(--line); }
.app-addon:last-child { border-bottom: 0; }
.app-addon[hidden] { display: none; }
.app-addon > summary, .app-addon-go { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 4px; color: var(--ink); list-style: none; cursor: pointer; text-decoration: none; border-radius: 10px; }
.app-addon > summary::-webkit-details-marker { display: none; }
.app-addon > summary:hover, .app-addon-go:hover { background: color-mix(in srgb, var(--surface-soft) 55%, transparent); }
.app-addon > summary:focus-visible, .app-addon-go:focus-visible { outline: 2px solid var(--berry); outline-offset: 0; }
.app-addon .share-option-icon { width: 32px; height: 32px; border-radius: 9px; }
.app-addon .share-option-icon svg { width: 16px; height: 16px; }
.app-addon-text { display: grid; flex: 1; gap: 1px; min-width: 0; }
.app-addon-text strong { color: var(--ink); font-size: 14px; font-weight: 620; line-height: 1.3; }
.app-addon-arrow { color: var(--muted); font-size: 16px; }
.app-addon .share-option-chevron { width: 8px; height: 8px; margin-right: 6px; transform: rotate(45deg); }
.app-addon[open] .share-option-chevron { transform: rotate(225deg); }
.app-addon-body { display: grid; gap: 10px; padding: 4px 4px 16px 48px; font-size: 14px; }
.app-addon-body > :empty:not(textarea) { display: none; }
.app-addon-body .hosting-help { margin: 0; font-size: 13.5px; }
.app-addon-body textarea { width: 100%; min-height: 120px; font-size: 12.5px; }
.app-addon-body .btn { min-height: 40px; font-size: 13.5px; }
.app-addon-body .hosting-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.app-addon-body :is(.publication-login, .publication-policy) { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.app-addon-body .publication-login > div:first-child > h2, .setup-option-body .publication-login > div:first-child > h2, .app-addon-body .publication-policy-heading h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app-addon-body .publication-login { display: grid; gap: 10px; }
.app-addon-body .publication-login-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.app-addon-body .publication-login-reminder { margin: 0; padding: 10px 12px; border-left: 3px solid var(--berry); border-radius: 0 8px 8px 0; font-size: 13.5px; }
.app-addon-body .publication-login-reminder[hidden] { display: none; }
.ws-publish .publication-flow.publication-guided .app-addon-body .publication-step,
.ws-publish .publication-flow.publication-guided .app-addon-body .private-testers { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.app-addon-body .private-testers .private-testers-scope { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.app-addon-body .private-testers-search { display: grid; gap: 8px; margin: 0; }
.app-addon-body .private-testers-search :is(input, .btn) { width: 100%; min-width: 0; }
.app-addon-body .private-testers-search > div, .app-addon-body .private-testers-search form { display: grid; gap: 8px; }
.app-addon-body .private-testers-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 13.5px; }
.app-addon-body .private-testers-person { gap: 8px; }


/* The live picture of the app */
.studio-window { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: 0 12px 30px #30221b16, 0 1px 2px #1a171512; }
.studio-window-bar { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.studio-dots { display: inline-flex; gap: 5px; }
.studio-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.studio-url { flex: 1; min-width: 0; height: 18px; padding: 0 10px; overflow: hidden; border-radius: var(--r-pill); background: var(--surface); color: var(--muted); font-size: 11px; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.studio-screen { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.sv { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; opacity: 0; transform: translateY(8px) scale(.985); transition: opacity .4s ease, transform .4s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.studio-window[data-state="empty"] .sv-empty, .studio-window[data-state="file"] .sv-file, .studio-window[data-state="look"] .sv-look, .studio-window[data-state="uploading"] .sv-uploading,
.studio-window:is([data-state="saved"], [data-state="checking"], [data-state="ready"], [data-state="opened"], [data-state="private"], [data-state="live"]) .sv-app { opacity: 1; transform: none; }
.sv-caption { color: var(--ink); font-size: 13.5px; font-weight: 620; text-align: center; overflow-wrap: anywhere; }
.sv-sub { color: var(--muted); font-size: 12px; }
.sv-drop { display: grid; place-items: center; width: 64px; height: 64px; border: 1.5px dashed color-mix(in srgb, var(--berry) 45%, var(--line-strong)); border-radius: 18px; background: color-mix(in srgb, var(--rose) 60%, var(--surface)); color: var(--berry); }
.sv-drop svg { width: 26px; height: 26px; animation: sv-bob 2.6s ease-in-out infinite; }
.sv-file-icon { display: grid; place-items: center; width: 56px; height: 68px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--berry); box-shadow: 0 6px 16px #30221b12; }
.sv-file-icon svg { width: 26px; height: 26px; }
.sv-look { place-content: stretch; }
.sv-look iframe { position: absolute; top: 0; left: 0; width: 200%; height: 200%; border: 0; background: #fff; transform: scale(.5); transform-origin: 0 0; pointer-events: none; }
.sv-rise { animation: sv-rise 1.5s cubic-bezier(.3, .6, .3, 1) infinite; }
.sv-bar { width: 62%; height: 6px; overflow: hidden; border-radius: var(--r-pill); background: var(--line); }
.sv-bar i { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--berry), var(--berry-hover)); animation: sv-load 1.3s ease-in-out infinite; }
.sv-app { display: grid; place-content: stretch; justify-items: stretch; align-items: stretch; grid-template-rows: auto 1fr auto auto auto; gap: 9px; padding: 16px; }
.sv-app > span:not(.sv-scan):not(.sv-play):not(.sv-badge):not(.sv-people) { display: block; border-radius: 6px; background: var(--line); }
.sv-app .sv-top { width: 38%; height: 9px; }
.sv-app .sv-hero { min-height: 54px; background: color-mix(in srgb, var(--rose) 80%, var(--surface)) !important; }
.sv-app .sv-line { width: 82%; height: 7px; }
.sv-app .sv-line.is-short { width: 56%; }
.sv-app .sv-blocks { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 7px; height: 30px; background: none !important; }
.sv-blocks i { border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.sv-scan, .sv-play, .sv-badge, .sv-people { position: absolute; opacity: 0; transition: opacity .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.sv-scan { left: 0; right: 0; top: -40%; height: 40%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--berry) 16%, transparent) 70%, color-mix(in srgb, var(--berry) 55%, transparent) 72%, transparent 74%); }
.studio-window[data-state="checking"] .sv-scan { opacity: 1; animation: sv-scan 1.8s linear infinite; }
.sv-play { top: 50%; left: 50%; display: grid; place-items: center; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--berry); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--berry) 35%, transparent); transform: scale(.8); }
.sv-play svg { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; stroke: none; }
.sv-play::before, .sv-play::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--berry); border-radius: 50%; opacity: 0; }
.studio-window[data-state="ready"] .sv-play { opacity: 1; transform: none; }
.studio-window[data-state="ready"] .sv-play::before { animation: sv-ripple 2.2s ease-out infinite; }
.studio-window[data-state="ready"] .sv-play::after { animation: sv-ripple 2.2s ease-out 1.1s infinite; }
.sv-badge { right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 650; box-shadow: 0 4px 12px #30221b1c; transform: translateY(6px); }
.sv-badge svg { width: 14px; height: 14px; }
.sv-ok { background: var(--green); color: #fff; }
.studio-window[data-state="opened"] .sv-ok { opacity: 1; transform: none; animation: sv-pop .45s cubic-bezier(.2, .9, .3, 1.3); }
.studio-window[data-state="private"] .sv-private, .studio-window[data-state="live"] .sv-live { opacity: 1; transform: none; }
.sv-live i { width: 8px; height: 8px; border-radius: 50%; background: #2f9e6a; box-shadow: 0 0 0 0 #2f9e6a80; animation: sv-pulse 1.8s ease-out infinite; }
.sv-people { left: 12px; bottom: 12px; display: flex; transform: translateY(6px); }
.sv-people i { width: 24px; height: 24px; margin-right: -7px; border: 2px solid var(--surface); border-radius: 50%; background: var(--line-strong); }
.studio-window[data-state="live"] .sv-people i:nth-child(1) { background: #c98b7f; }
.studio-window[data-state="live"] .sv-people i:nth-child(2) { background: #8fa7c4; }
.studio-window[data-state="live"] .sv-people i:nth-child(3) { background: #a4b98d; }
.studio-window:is([data-state="private"], [data-state="live"]) .sv-people { opacity: 1; transform: none; }
.studio-window[data-state="private"] .sv-people { opacity: .55; }

/* The checklist under the picture */
.studio-checklist { display: grid; margin: 0; padding: 0; list-style: none; }
.studio-checklist li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 11px; padding: 8px 0; }
.studio-checklist li:not(:last-child)::before { content: ""; position: absolute; top: 32px; bottom: -6px; left: 10px; width: 2px; border-radius: 2px; background: var(--line); }
.studio-checklist li.is-done:not(:last-child)::before { background: color-mix(in srgb, var(--green) 55%, var(--line)); }
.studio-check { position: relative; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.is-done .studio-check { border-color: var(--green); background: var(--green); animation: sv-pop .4s cubic-bezier(.2, .9, .3, 1.3); }
.is-done .studio-check::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.is-active .studio-check { border-color: color-mix(in srgb, var(--berry) 22%, transparent); border-top-color: var(--berry); animation: studio-spin .8s linear infinite; }
.is-pending .studio-check { border-style: dashed; border-color: var(--berry); }
.is-next .studio-check { border-color: var(--berry); }
.is-next .studio-check::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--berry); }
.is-warn .studio-check { border-color: #b7791f; background: #fdf3e1; }
.is-warn .studio-check::after { content: "!"; color: #8a5a12; font-size: 12px; font-weight: 800; line-height: 1; }
.studio-check-text { display: grid; gap: 1px; min-width: 0; padding-top: 1px; }
.studio-check-text strong { color: var(--ink); font-size: 13.5px; font-weight: 640; line-height: 1.3; }
.is-waiting .studio-check-text strong { color: var(--muted); font-weight: 560; }
.studio-check-text small { color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.studio-check-text small:empty { display: none; }
.studio-check-link { padding-top: 2px; color: var(--ink); font-size: 12.5px; font-weight: 600; }

/* Step content */
.share-option-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--rose); color: var(--berry); }
.share-option-icon svg { width: 20px; height: 20px; }
.share-option-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.share-option-head { display: flex; align-items: center; gap: 14px; }
.share-option-head > .btn { flex: none; min-height: 42px; }
:is(.app-try-body, .share-option-head) > .btn:not(.secondary) { border-color: var(--berry); background: var(--berry); color: #fff; box-shadow: inset 0 1px 0 #ffffff1f, 0 1px 2px #1a171529; }
:is(.app-try-body, .share-option-head) > .btn:not(.secondary):hover { border-color: var(--berry-hover); background: var(--berry-hover); }
:is(.app-try-body, .share-option-head) > .btn.secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
:is(.app-try-body, .share-option-head) > .btn:disabled { opacity: .5; cursor: not-allowed; }
.app-try-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.app-try-body { display: flex; align-items: center; gap: 16px; padding: 22px; }
.app-try-body .share-option-icon { width: 48px; height: 48px; border-radius: 50%; }
.app-try-body .share-option-icon svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; stroke: none; }
.app-try-text { flex: 1; min-width: 0; }
.app-try-text h3 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.app-try-text p { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.app-try-body > .btn { flex: none; min-height: 46px; padding-inline: 22px; }

/* While a file is sending, the step shows one calm panel instead of the form. */
.studio-sending { display: grid; justify-items: center; gap: 8px; padding: 44px 24px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--rose) 30%, var(--surface)); text-align: center; }
.studio-sending[hidden] { display: none; }
.studio-sending .sv-bar { width: min(260px, 70%); margin-bottom: 8px; }
.studio-sending strong { color: var(--ink); font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.studio-sending p { margin: 0; color: var(--muted); font-size: 14px; }
.upload-studio[data-uploading="true"] :is(.publication-file-step, .publishing-status) { display: none; }

/* Upload and test, guided */
.ws-publish .publication-flow.publication-guided.upload-studio { display: block; max-width: 1120px; margin: 0; padding: 0; }
.ws-publish .publication-flow.publication-guided.upload-studio > * { margin: 0; }
.ws-publish .publication-guided .publication-file-body { grid-template-columns: minmax(0, 1fr); }
.ws-publish .publication-guided .publication-step::before,
.ws-publish .publication-guided .publication-step-heading::after { display: none; }
.ws-publish .publication-guided[data-pipeline-current="upload"] :is([data-pipeline-view]:not([data-pipeline-view~="upload"]), [data-publishing-workbench]),
.ws-publish .publication-guided[data-pipeline-current="details"] :is([data-pipeline-view]:not([data-pipeline-view~="details"]), [data-publishing-workbench]),
.ws-publish .publication-guided[data-pipeline-current="try"] [data-pipeline-view]:not([data-pipeline-view~="try"]),
.ws-publish .publication-guided[data-pipeline-current="share"] [data-pipeline-view]:not([data-pipeline-view~="share"]),
.ws-publish .publication-guided [data-pipeline-view][hidden] { display: none; }
/* Details: the project page fields, then GitHub, teammates and Aurora Login as rows below. */
.studio-details-form { display: grid; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.studio-details-form .form-field { margin: 0; }
.studio-details-form :is(input, textarea, select) { width: 100%; }
.studio-details-form textarea { min-height: 116px; resize: vertical; }
.studio-details-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.studio-details-status { margin: 0; color: var(--green); font-size: 13.5px; font-weight: 600; }
.studio-details-status.is-error { color: var(--berry); }
.studio-details-status:empty { display: none; }
.studio-setup-github:empty::before { content: "Checking GitHub…"; color: var(--muted); font-size: 14px; }
/* The row already shows "GitHub" and its status, so the panel's own heading stays for screen readers only. */
.studio-setup-github .ghp-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.studio-setup-github .ghp { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.publication-release-summary { padding: 16px 20px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.publication-release-summary dl { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 0; }
.publication-release-summary dl > div { min-width: 0; }
.publication-release-summary dt { margin-bottom: 5px; color: var(--muted); font-size: 14px; }
.publication-release-summary dd { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.publication-release-summary .hosting-actions:empty { display: none; }
.publication-release-summary .hosting-actions { margin-top: 12px; }
.studio-setup { display: grid; gap: 10px; margin: 22px 0 0; }
.studio-setup > h3 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 680; }
.setup-option { border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.setup-option-head { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; }
.setup-option-title { flex: 1; min-width: 0; color: var(--ink); font-size: 15px; font-weight: 650; }
.setup-option-title:has(+ .info-tip) { flex: none; }
.setup-option-title + .info-tip { margin: 0 auto 0 -6px; }
.setup-option-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.setup-option-actions .btn { min-height: 40px; padding-inline: 16px; }
/* While a card waits, its Set up button is the main move; Skip stays a plain button beside it. */
.setup-option:is([data-state="open"], [data-state="checking"]) .setup-option-go { border-color: var(--berry); background: var(--berry); color: #fff; box-shadow: inset 0 1px 0 #ffffff1f, 0 1px 2px #1a171529; }
.setup-option:is([data-state="open"], [data-state="checking"]) .setup-option-go:hover { border-color: var(--berry-hover); background: var(--berry-hover); }
.setup-option-status { flex: none; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-soft); color: var(--ink-soft); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.setup-option-status:empty, .setup-option:is([data-state="open"], [data-state="checking"]) .setup-option-status { display: none; }
.setup-option:is([data-state="open"], [data-state="checking"], [data-state="done"], [data-state="na"]) .setup-option-undo,
.setup-option[data-state="skipped"] :is(.setup-option-go, .setup-option-skip),
.setup-option[data-state="done"] .setup-option-skip,
.setup-option[data-state="na"] .setup-option-actions { display: none; }
.setup-option:is([data-state="done"], [data-state="skipped"], [data-state="na"]) { border-color: var(--line); background: var(--surface-soft); }
.setup-option:is([data-state="done"], [data-state="skipped"], [data-state="na"]) .setup-option-head { min-height: 54px; }
.setup-option:is([data-state="skipped"], [data-state="na"]) .setup-option-title { color: var(--muted); }
.setup-option[data-state="done"] .setup-option-status { background: color-mix(in srgb, var(--green) 14%, var(--surface)); color: var(--green); }
.setup-option[data-state="done"] .setup-option-status::before { content: "✓ "; }
.setup-option-body { padding: 0 16px 16px 66px; }
.setup-option-body .publication-login { margin: 0; padding: 0; border: 0; background: none; }
.setup-option-body .publication-login > div:first-child > p:first-of-type { margin-top: 0; }
:is(.setup-option-body, .app-addon-body) .publication-login-key code { border-color: var(--line); background: var(--surface); }
:is(.setup-option-body, .app-addon-body) .publication-login-status.is-working strong { color: var(--green); }
:is(.setup-option-body, .app-addon-body) .publication-login-status.is-failing strong { color: #800000; }
/* The step heading already says what this is; the old card headings stay for screen readers. */
.ws-publish .publication-flow.publication-guided :is(.publication-file-step, .publication-preview-step, .app-hosting-setup) > .publication-step-heading { display: none; }
.ws-publish .publication-flow.publication-guided :is(.publication-file-step, .app-hosting-setup, .publication-preview-step) > .publication-step-heading + * { margin-top: 0; }
.ws-publish .publication-flow.publication-guided .studio-content .publication-step { margin: 0 0 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: none; }
.ws-publish .publication-flow.publication-guided .studio-content :is(.publication-file-step, .publication-preview-step) { padding: 0; border: 0; background: none; }
.ws-publish .publication-guided .publishing-status:empty { display: none; }
.ws-publish .publication-flow.publication-guided .publication-file-step .publication-drop { padding: 30px 24px; border: 1.5px dashed var(--line-strong); border-radius: 16px; background: color-mix(in srgb, var(--rose) 30%, var(--surface)); text-align: center; justify-items: center; }
.ws-publish .publication-flow.publication-guided .publication-file-step .publication-drop-title { font-size: 19px; }
.ws-publish .publication-guided .publication-selected-file { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; }
.ws-publish .publication-guided .hosting-upload-details { margin-block: 10px; }
.ws-publish .publication-guided .hosting-upload-details summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-size: 15px; }
.ws-publish .publication-guided .publication-linked-try:empty { display: none; }
.ws-publish .publication-flow.publication-guided .studio-extras .publication-link-choice { margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.ws-publish .publication-flow.publication-guided .studio-extras .publication-link-choice > summary { display: flex; min-height: 54px; padding: 8px 4px; font-size: inherit; font-weight: inherit; }

/* Share: the choices read top to bottom, from most private to most public. */
.ws-publish .publication-flow.publication-guided .share-option { display: block; margin: 0 0 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: none; }
.ws-publish .publication-flow.publication-guided .share-option[hidden] { display: none; }
.ws-publish .publication-flow.publication-guided .share-option-text :is(strong, h2) { margin: 0; color: var(--ink); font-size: 16px; font-weight: 640; letter-spacing: 0; line-height: 1.35; }
.ws-publish .publication-flow.publication-guided .share-option-text :is(p, span) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.ws-publish .publication-flow.publication-guided .share-option-head ~ * { margin-top: 14px; }
.ws-publish .publication-flow.publication-guided .share-now { display: flex; align-items: center; gap: 14px; border-style: dashed; background: transparent; }
.ws-publish .publication-flow.publication-guided .share-now[hidden] { display: none; }
.ws-publish .publication-flow.publication-guided .share-now .share-option-icon { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.ws-publish .publication-guided .publication-tester-choice > summary { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0; list-style: none; cursor: pointer; }
.ws-publish .publication-guided .publication-tester-choice > summary::-webkit-details-marker { display: none; }
.ws-publish .publication-guided .publication-tester-choice > summary:focus-visible { outline: 2px solid var(--berry); outline-offset: 6px; border-radius: var(--r-sm); }
.share-option-chevron { flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.publication-tester-choice[open] .share-option-chevron { transform: rotate(45deg); }
.ws-publish .publication-guided .publication-tester-choice [data-publishing-testers] > .publication-step { margin: 14px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.ws-publish .publication-guided .publication-tester-choice .private-testers-inline > .publication-step-heading { display: none; }
.ws-publish .publication-flow.publication-guided .publication-publish-step .hosting-help { margin: 0; }
.ws-publish .publication-flow.publication-guided .publication-publish-step .hosting-direct-link { padding-top: 14px; border-top: 1px solid var(--line); }
.ws-publish .publication-guided[data-pipeline-current="share"] .publication-live-summary:not([hidden]) { margin: 0 0 10px; }
.ws-publish .publication-flow.publication-guided .publication-public-step .share-option-head > .btn { min-height: 42px; font-size: 15px; }

.ws-publish .publication-flow.publication-guided .publication-live-summary.share-option .publication-current { padding: 0; border: 0; background: none; box-shadow: none; }
.ws-publish .publication-guided [data-external-review] .external-app-review { margin: 0 0 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: none; }
.ws-publish .publication-guided [data-external-review] .external-app-review h3 { margin: 0 0 4px; font-size: 16px; font-weight: 640; }
.ws-publish .publication-guided [data-external-review] .external-app-review .hosting-help { margin: 0; font-size: 14px; }
.external-app-review { overflow-wrap: anywhere; }
.external-app-review [role="status"] { display: grid; gap: 5px; }
.external-app-review details, .external-app-review [data-external-check], .external-app-review [data-external-reload] { margin-top: 10px; }
.external-app-review summary, .external-app-review li { font-size: 14px; }
.external-app-review [data-external-check][aria-disabled="true"] { opacity: .65; cursor: wait; }

/* Create a project → Already have an app? */
.journey-start.start-pipeline-page { max-width: 1120px; }
.start-pipeline-page .app-stage-head h1 { font-size: clamp(24px, 3vw, 28px); }
.start-pipeline-form .form-error { margin: 0; }
.start-pipeline-form .form-error:empty { display: none; }
.start-pipeline-page .start-app { gap: 10px; }
.start-pipeline-page .start-app-file-area { display: grid; gap: 14px; min-width: 0; padding: 34px 28px 30px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); text-align: center; transition: border-color .2s, background .2s; }
.start-pipeline-page .start-app-file-area:has(.is-over) { border-color: var(--berry); background: #fbf3f0; }
.start-pipeline-page .start-app-file-area.has-error { border-color: #e2bcbc; }
.start-pipeline-page .start-app-file-area.has-file { gap: 14px; padding: 16px; border: 1px solid var(--line); text-align: left; box-shadow: none; }
.start-pipeline-page .start-app-look { min-height: 0; aspect-ratio: auto; border: 0; background: none; box-shadow: none; }
.start-pipeline-page .start-app-look.is-over { box-shadow: none; }
.start-pipeline-page .start-app-look.has-file { position: relative; height: clamp(170px, 30vw, 270px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.start-pipeline-page .start-app-empty { gap: 6px; padding: 0; color: var(--muted); font-size: 15px; }
.start-pipeline-page .start-app-empty strong { color: var(--ink); font-size: 20px; font-weight: 660; letter-spacing: -0.01em; }
.start-pipeline-page .start-app-empty .icon { width: 30px; height: 30px; margin-bottom: 6px; }
.start-pipeline-page .start-app-file-area:not(.has-file) .start-app-actions { justify-content: center; margin-top: 4px; }
.start-pipeline-page .start-app-choose { min-height: 46px; padding-inline: 20px; }
.start-pipeline-page .start-app-note { margin: 0; color: var(--muted); font-size: 13.5px; }
.start-pipeline-page .start-app-note:empty { display: none; }
.start-pipeline-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.start-pipeline-top .breadcrumb { margin: 0; }
.start-file-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.start-file-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--rose); color: var(--berry); }
.start-file-icon .icon { width: 22px; height: 22px; }
.start-file-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.start-file-text strong { color: var(--ink); font-size: 16px; font-weight: 640; overflow-wrap: anywhere; }
.start-file-text .start-app-meta { color: var(--muted); font-size: 13.5px; }
.start-file-row .start-app-actions { flex: none; gap: 6px 16px; }
.start-file-row .start-app-choose { min-height: 42px; }
.start-file-list { padding-top: 12px; border-top: 1px solid var(--line); }
.start-file-list > summary { display: list-item; min-height: 32px; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.start-file-list ul { columns: 2 200px; margin: 6px 0 0; padding: 0 0 0 18px; list-style: none; }
.start-file-list li { break-inside: avoid; color: var(--ink); font: 12.5px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.start-file-list li.start-app-more { color: var(--muted); font-family: inherit; }
.start-link-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: none; }
.start-link-card .form-field { margin: 0; }
.start-pipeline-ready { max-width: 520px; }
.start-pipeline-ready[hidden] { display: none; }

.start-studio .start-pipeline-ready { max-width: 460px; }
.start-studio .studio-content { display: grid; gap: 16px; }

@keyframes studio-spin { to { transform: rotate(360deg); } }
@keyframes studio-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sv-bob { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-4px); } }
@keyframes sv-rise { 0% { opacity: 0; transform: translateY(16px); } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes sv-load { 0% { transform: translateX(-110%); } 100% { transform: translateX(250%); } }
@keyframes sv-scan { from { top: -40%; } to { top: 100%; } }
@keyframes sv-ripple { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes sv-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes sv-pulse { 0% { box-shadow: 0 0 0 0 #2f9e6a80; } 100% { box-shadow: 0 0 0 9px #2f9e6a00; } }

@media (max-width: 1000px) {
  .studio-body { grid-template-columns: minmax(0, 1fr); }
  .studio-preview { order: -1; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; gap: 20px; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .upload-studio { border-radius: 16px; }
  .studio-steps { padding: 12px 14px; }
  .studio-steps li:not(:last-child)::after { min-width: 10px; margin: 0 8px; }
  .studio-step { gap: 7px; }
  .studio-step .app-pipeline-dot { width: 26px; height: 26px; font-size: 12px; }
  .studio-step .app-pipeline-name { font-size: 13.5px; }
  /* Four steps don't fit across a phone, so only the current one shows its name; the others keep it for screen readers. */
  .studio-steps li { flex: 1 1 auto; }
  .setup-option-head { flex-wrap: wrap; }
  .setup-option-actions { flex-basis: 100%; }
  .setup-option-actions .btn { flex: 1; justify-content: center; }
  .setup-option-body { padding: 0 14px 14px; }
  .studio-steps li:not([aria-current]) .app-pipeline-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .studio-main { padding: 20px 16px 14px; }
  /* On phones the real controls come first; the progress picture and checklist follow them. */
  .studio-preview { order: 2; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; border-bottom: 0; border-top: 1px solid var(--line); }
  .studio-preview .studio-window { display: none; }
  .studio-checklist li { padding: 5px 0; gap: 9px; }
  .studio-checklist li:not(:last-child)::before { top: 27px; }
  .studio-check-text small { display: none; }
  .sv-empty .sv-caption, .sv .sv-sub { display: none; }
  .sv-caption { font-size: 11.5px; }
  .sv-drop { width: 44px; height: 44px; border-radius: 13px; }
  .sv-drop svg { width: 20px; height: 20px; }
  .sv-file-icon { width: 40px; height: 50px; }
  .sv-play { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .sv-badge { right: 8px; bottom: 8px; height: 22px; font-size: 11px; }
  .studio-check-link { display: none; }
  .studio-footer { flex-direction: column-reverse; align-items: stretch; gap: 10px; padding: 12px 16px; }
  .studio-footer .app-stage-nav { justify-content: space-between; }
  .studio-footer .app-stage-nav .btn { flex: 1; justify-content: center; }
  .studio-footnote { justify-content: center; text-align: center; }
  .app-stage-head :is(h1, h2) { font-size: 21px; }
  .app-stage-detail { font-size: 14px; }
  .app-try-body { flex-wrap: wrap; padding: 18px; }
  .app-try-body > .btn { width: 100%; justify-content: center; }
  .share-option-head { flex-wrap: wrap; }
  .share-option-head > .btn { width: 100%; justify-content: center; }
  .app-addon-body { padding-left: 4px; }
  .ws-publish .publication-flow.publication-guided .share-option { padding: 16px; }
  .start-pipeline-page .start-app-file-area { padding: 24px 16px 20px; }
  .start-file-row { flex-wrap: wrap; }
  .start-file-row .start-app-actions { width: 100%; padding-left: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .upload-studio *, .upload-studio *::before, .upload-studio *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .studio-window[data-state="checking"] .sv-scan { top: 30%; }
}
.upload-one-file { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; border-radius: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 550; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; }
.upload-one-file:hover { color: var(--berry); text-decoration-color: currentColor; }
.upload-one-file:has(input:focus-visible), .upload-one-file:has(+ input:focus-visible) { outline: 2px solid var(--berry); outline-offset: 2px; }
/* Publish: Private or Public, like a video's visibility setting. The footer button carries it out. */
.visibility-choice { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.visibility-option { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.visibility-option:hover { border-color: var(--line-strong); }
.visibility-option:has(input:checked) { border-color: var(--berry); box-shadow: inset 0 0 0 1px var(--berry); }
.visibility-option:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.visibility-option:has(input:focus-visible) { outline: 2px solid var(--berry); outline-offset: 2px; }
.visibility-option input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--berry); }
.visibility-option:not(:has(input:checked)) .share-option-icon { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.visibility-text { display: grid; gap: 2px; min-width: 0; }
.visibility-text strong { color: var(--ink); font-size: 16px; font-weight: 640; line-height: 1.35; }
.visibility-text span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.ws-publish .publication-flow.publication-guided .studio-content .publication-visibility-step { margin: 0 0 10px; padding: 0; border: 0; border-radius: 0; background: none; }
.publication-visibility-step > :not(.visibility-choice) { margin-top: 14px; }
.hosting-direct-url { display: inline-block; margin-bottom: 12px; color: var(--berry); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }

/* Aurora's checks before a version goes public, shown working. No person approves a version. */
.verify-panel { display: grid; gap: 10px; margin-top: 12px; }
.verify-steps { display: grid; margin: 4px 0 0; padding: 0; list-style: none; }
.verify-step { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 11px; padding: 8px 0; }
.verify-step:not(:last-child)::before { content: ""; position: absolute; top: 32px; bottom: -6px; left: 10px; width: 2px; border-radius: 2px; background: var(--line); }
.verify-step.is-done:not(:last-child)::before { background: color-mix(in srgb, var(--green) 55%, var(--line)); }
.verify-mark { position: relative; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.verify-step.is-done .verify-mark { border-color: var(--green); background: var(--green); }
.verify-step.is-done .verify-mark::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.verify-step.is-running .verify-mark { border-color: color-mix(in srgb, var(--berry) 22%, transparent); border-top-color: var(--berry); animation: studio-spin .8s linear infinite; }
.verify-step.is-waiting .verify-mark::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.verify-step.is-fix .verify-mark { border-color: #b7791f; background: #fdf3e1; }
.verify-step.is-fix .verify-mark::after { content: "!"; color: #8a5a12; font-size: 12px; font-weight: 800; line-height: 1; }
.verify-step.is-off .verify-mark { border-style: dashed; }
.verify-text { display: grid; gap: 1px; min-width: 0; padding-top: 1px; }
.verify-text strong { color: var(--ink); font-size: 14px; font-weight: 640; line-height: 1.3; }
.verify-step.is-waiting .verify-text strong { color: var(--muted); font-weight: 560; }
.verify-text small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.verify-step.is-running .verify-text small { color: var(--ink); }
.verify-time { font-variant-numeric: tabular-nums; color: var(--muted); }
.verify-time::before { content: "· "; }

.public-pending { display: grid; gap: 12px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--berry) 22%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--berry) 4%, var(--surface)); }
.public-pending.is-fix { border-color: color-mix(in srgb, #b7791f 35%, var(--line)); background: color-mix(in srgb, #fdf3e1 55%, var(--surface)); }
.public-pending-head { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.public-pending-head h2 { margin: 0; font-size: 16px; font-weight: 680; }
.public-pending-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.public-pending-pulse { position: relative; display: inline-block; width: 12px; height: 12px; margin: 5px 5px 0; border-radius: 50%; background: var(--berry); }
.public-pending-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--berry); opacity: 0; animation: public-pulse 1.8s ease-out infinite; }
.public-pending-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b7791f; background: #fdf3e1; color: #8a5a12; font-size: 12px; font-weight: 800; }
.public-pending .hosting-actions { margin: 0; }
.visibility-checking { margin-top: 8px; }
@keyframes public-pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

.verify-page { display: grid; gap: 12px; }
.verify-page header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.verify-badge { padding: 3px 10px; border-radius: 999px; background: var(--surface-2, #f1efe9); color: var(--ink); font-size: 12.5px; font-weight: 650; }
.verify-page.is-pending .verify-badge, .verify-page.is-checking .verify-badge { background: color-mix(in srgb, var(--berry) 12%, var(--surface)); color: var(--berry); }
.verify-page.is-fix .verify-badge { background: #fdf3e1; color: #8a5a12; }
.verify-page.is-passed .verify-badge, .verify-page.is-public .verify-badge { background: color-mix(in srgb, var(--green) 14%, var(--surface)); color: color-mix(in srgb, var(--green) 80%, #000); }
.verify-page .publication-verification-next { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 14.5px; }
.verify-who { margin: 0; }

/* Reading a project folder: how far along it is, so a big folder never looks stuck. */
.start-app-progress, .upload-progress { display: grid; gap: 6px; margin-top: 10px; }
.start-app-progress-bar, .upload-progress-bar { position: relative; height: 6px; overflow: hidden; border-radius: 999px; background: var(--line); }
.start-app-progress-bar i, .upload-progress-bar i { position: absolute; inset: 0 auto 0 0; width: var(--progress, 0%); border-radius: inherit; background: var(--berry); transition: width .2s ease; }
.start-app-progress-bar.is-unknown i, .upload-progress-bar.is-unknown i { width: 35%; animation: progress-slide 1.2s ease-in-out infinite; }
.start-app-progress small, .upload-progress small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
@keyframes progress-slide { 0% { left: -35%; } 100% { left: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .verify-step.is-running .verify-mark, .public-pending-pulse::after, .start-app-progress-bar.is-unknown i, .upload-progress-bar.is-unknown i { animation: none; }
}

/* Team page reached from the upload window's Invite card: a way back, on phones too (workspace breadcrumbs hide there). */
.ws-upload-back { margin-bottom: 12px; }
/* Project → Status: the same Private/Public cards as the upload window's Publish step, with a third choice. */
.project-status { display: grid; gap: 14px; max-width: 640px; }
.project-status .visibility-option.is-current .share-option-icon { border: 0; background: var(--rose); color: var(--berry); }
.project-status .pill { margin-left: 6px; vertical-align: 1px; }
.project-status-link { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.project-status-link .hosting-direct-url { margin: 0; }
.project-status-actions:empty, .project-status [data-status-message]:empty { display: none; }

/* ---------- Nov 16 feedback round ---------- */
/* GitHub's real mark wherever a row stands for GitHub. */
.gh-mark { display: block; width: 18px; height: 18px; color: #1f2328; }
.share-option-icon.is-github { background: #f6f8fa; color: #1f2328; box-shadow: inset 0 0 0 1px #d1d9e0; }
.share-option-icon.is-github .gh-mark { width: 20px; height: 20px; }
.app-addon .share-option-icon.is-github .gh-mark { width: 17px; height: 17px; }

/* GitHub setup: three steps that tick off while Aurora works. */
.ghp-progress { display: grid; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.ghp-progress-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; }
.ghp-progress-title strong { flex: 1; font-weight: 650; color: var(--ink); }
.ghp-progress-title span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ghp-progress-track { position: relative; height: 6px; overflow: hidden; border-radius: 999px; background: var(--line); }
.ghp-progress-track i { position: absolute; inset: 0 auto 0 0; width: var(--ghp-progress, 0%); border-radius: inherit; background: var(--berry); transition: width .6s var(--ease-out); }
.ghp-progress-track i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffff73, transparent); transform: translateX(-100%); animation: ghp-shine 1.6s ease-in-out infinite; }
.ghp-progress ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ghp-progress li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.ghp-progress li.is-done, .ghp-progress li.is-now { color: var(--ink); }
.ghp-progress li.is-now { font-weight: 600; }
.ghp-progress-mark { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 50%; font-size: 12px; font-weight: 700; }
.ghp-progress li.is-done .ghp-progress-mark { border-color: var(--green); background: var(--green); color: #fff; animation: sv-pop .4s cubic-bezier(.2, .9, .3, 1.3); }
.ghp-progress li.is-now .ghp-progress-mark { border-color: color-mix(in srgb, var(--berry) 25%, transparent); border-top-color: var(--berry); animation: ghp-spin .8s linear infinite; }
@keyframes ghp-spin { to { transform: rotate(360deg); } }
@keyframes ghp-shine { to { transform: translateX(100%); } }
.ghp-chip.is-busy::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: ghp-spin .8s linear infinite; }

/* The linked repo at a glance. */
.ghp-summary { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.ghp-summary-repo { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.ghp-summary-repo:hover { background: var(--surface-hover); }
.ghp-summary-repo:focus-visible { outline: 2px solid var(--berry); outline-offset: -2px; }
.ghp-summary-mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: #f6f8fa; box-shadow: inset 0 0 0 1px #d1d9e0; }
.ghp-summary-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.ghp-summary-name strong { overflow-wrap: anywhere; font-size: 15px; font-weight: 650; }
.ghp-visibility { padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 550; }
.ghp-summary-open { color: var(--muted); font-size: 15px; }
.ghp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.ghp-facts > div { display: grid; align-content: start; gap: 3px; padding: 12px 16px; min-width: 0; }
.ghp-facts > div + div { border-left: 1px solid var(--line); }
.ghp-facts dt { color: var(--muted); font-size: 12px; font-weight: 550; letter-spacing: .02em; text-transform: uppercase; }
.ghp-facts dd { display: grid; gap: 2px; margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ghp-facts dd small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.ghp-facts dd code { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.ghp-facts .ghp-synced { display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: inherit; }
.ghp-saving-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--berry); animation: ghp-blink 1s ease-in-out infinite; }
@keyframes ghp-blink { 50% { opacity: .3; } }
@media (max-width: 560px) { .ghp-facts { grid-template-columns: 1fr; } .ghp-facts > div + div { border-left: 0; border-top: 1px solid var(--line); } }

.ghp-activity { display: grid; gap: 6px; }
.ghp-activity h4 { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.ghp-activity ul { position: relative; display: grid; gap: 8px; margin: 0; padding: 0 0 0 16px; list-style: none; }
.ghp-activity ul::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.ghp-activity li { position: relative; display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.ghp-activity li::before { content: ""; position: absolute; left: -15px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--berry); }
.ghp-activity li em { margin-left: auto; font-style: normal; color: var(--muted); white-space: nowrap; font-size: 12px; }
.ghp-activity details summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0 4px 16px; }

.ghp-can-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.ghp-can, .ghp-never { display: grid; align-content: start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.ghp-can h4, .ghp-never h4 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 650; }
.ghp-can h4 .ui-icon { color: var(--green); }
.ghp-never h4 .ui-icon { color: var(--berry); }
.ghp-can div, .ghp-never div { display: grid; gap: 2px; font-size: 13px; line-height: 1.4; }
.ghp-can div strong, .ghp-never div strong { font-weight: 600; color: var(--ink); }
.ghp-can div span { color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) { .ghp-can-grid { grid-template-columns: 1fr; } }

/* Try it: which version this is, and a backend app's setup as it happens. */
.app-try-version { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.app-setup-pieces { display: grid; gap: 8px; margin: 0; padding: 0 18px 16px; list-style: none; }
.app-setup-pieces li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.app-setup-pieces li strong { font-weight: 600; }
.app-setup-pieces li > span:last-child { color: var(--muted); font-size: 13px; }
.app-setup-mark { display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid var(--line-strong); border-radius: 50%; font-size: 11px; font-weight: 700; }
.app-setup-pieces li.is-done .app-setup-mark { border-color: var(--green); background: var(--green); color: #fff; animation: sv-pop .4s cubic-bezier(.2, .9, .3, 1.3); }
.app-setup-pieces li.is-done > span:last-child { color: color-mix(in srgb, var(--green) 80%, #000); font-weight: 600; }
.app-setup-pieces li.is-now .app-setup-mark { border-color: color-mix(in srgb, var(--berry) 25%, transparent); border-top-color: var(--berry); animation: ghp-spin .8s linear infinite; }
.app-setup-card .app-hosting-setup-message, .app-setup-card .app-hosting-setup-status { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 13.5px; }
.app-setup-card .app-hosting-setup-status strong { color: var(--ink); }
.app-setup-spinner { width: 18px; height: 18px; border: 2px solid color-mix(in srgb, var(--berry) 25%, transparent); border-top-color: var(--berry); border-radius: 50%; animation: ghp-spin .8s linear infinite; }

/* Publish: who can open it right now, big and first. */
.publish-status { display: grid; gap: 0; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.publish-status-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.publish-status-badge { position: relative; flex: none; }
.publish-status-badge .share-option-icon { width: 48px; height: 48px; border-radius: 14px; }
.publish-status-badge .share-option-icon svg { width: 24px; height: 24px; }
.publish-status-text { flex: 1; min-width: 0; }
.publish-status-kicker { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.publish-status-text h3 { margin: 1px 0 2px; color: var(--ink); font-size: 20px; font-weight: 680; letter-spacing: -.01em; }
.publish-status-text p { margin: 0; color: var(--muted); font-size: 14px; }
.publish-status-manage { flex: none; align-self: flex-start; font-size: 13.5px; }
@media (max-width: 560px) { .publish-status-head { flex-wrap: wrap; } .publish-status-text { flex-basis: calc(100% - 62px); } .publish-status-manage { order: 3; margin-left: 62px; } .publish-status-text h3 { font-size: 18px; } }
.publish-status-facts { display: flex; flex-wrap: wrap; margin: 0; border-top: 1px solid var(--line); }
.publish-status-facts > div { display: grid; gap: 2px; padding: 10px 18px; min-width: 120px; }
.publish-status-facts > div + div { border-left: 1px solid var(--line); }
.publish-status-facts dt { color: var(--muted); font-size: 12px; }
.publish-status-facts dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.publish-status.is-live .share-option-icon { background: color-mix(in srgb, var(--green) 14%, var(--surface)); color: color-mix(in srgb, var(--green) 85%, #000); }
.publish-status.is-pending .share-option-icon { animation: publish-breathe 1.6s ease-in-out infinite; }
/* Going live: two rings ripple out from the badge once, and the card warms to green. */
.publish-status.is-live .publish-status-badge::before, .publish-status.is-live .publish-status-badge::after { content: ""; position: absolute; inset: 0; border-radius: 14px; border: 2px solid var(--green); opacity: 0; animation: publish-ripple 1.4s var(--ease-out) .1s 2; pointer-events: none; }
.publish-status.is-live .publish-status-badge::after { animation-delay: .5s; }
.publish-status.is-live { animation: publish-glow 1.8s var(--ease-out) 1; }
.publish-status.is-live .publish-status-text h3 { animation: publish-rise .5s var(--ease-out) 1; }
@keyframes publish-ripple { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes publish-glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 35%, transparent); border-color: var(--green); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes publish-rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes publish-breathe { 50% { transform: scale(.94); opacity: .75; } }
.publish-retry { margin-bottom: 12px; padding: 12px 14px; border: 1px solid #ecd9b8; border-radius: var(--r-md); background: #fdf7ec; }
.publish-retry .hosting-help { flex: 1; margin: 0; }

/* Who can open a hosted app: one press to change. */
.visibility-toggle { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.visibility-toggle-option { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); font: inherit; font-size: 14px; font-weight: 560; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.visibility-toggle-option .share-option-icon { width: auto; height: auto; background: none; color: inherit; }
.visibility-toggle-option .share-option-icon svg { width: 16px; height: 16px; }
.visibility-toggle-option:hover:not(:disabled) { background: var(--surface); }
.visibility-toggle-option:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }
.visibility-toggle-option.is-on { background: var(--surface); color: var(--berry); box-shadow: var(--lift); cursor: default; }
.hosting-root .visibility-toggle-option.is-on:disabled { opacity: 1; }
.visibility-toggle-option:disabled:not(.is-on) { opacity: .5; cursor: not-allowed; }
/* The live card on Publish starts straight at the link: the status card above already says who can open it. */
.ws-publish .publication-flow.publication-guided .publication-publish-step.is-public > .hosting-direct-link { margin-top: 0; padding-top: 0; border-top: 0; }
.visibility-toggle-option span:last-child { white-space: nowrap; }
@media (max-width: 560px) { .visibility-toggle { display: grid; width: 100%; } .visibility-toggle-option { gap: 6px; padding: 0 6px; font-size: 13.5px; } }

@media (prefers-reduced-motion: reduce) {
  .ghp-progress-track i::after, .ghp-progress li.is-now .ghp-progress-mark, .ghp-chip.is-busy::before, .ghp-saving-dot,
  .app-setup-pieces li.is-now .app-setup-mark, .app-setup-spinner, .publish-status.is-pending .share-option-icon,
  .publish-status.is-live, .publish-status.is-live .publish-status-text h3,
  .publish-status.is-live .publish-status-badge::before, .publish-status.is-live .publish-status-badge::after { animation: none; }
}

/* Card picture choices, like a video's thumbnail suggestions. */
.cover-choices { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cover-choices-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cover-choices-head h3 { margin: 0; font-size: 14px; font-weight: 650; }
.cover-choices [data-cover-choices-status] { margin: 0; }
.cover-choices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cover-choices-grid:empty { display: none; }
.cover-choice { display: grid; gap: 6px; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; }
button.cover-choice { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
button.cover-choice:hover:not(:disabled) { border-color: var(--berry); transform: translateY(-1px); box-shadow: var(--lift-hover); }
button.cover-choice:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }
.cover-choice.is-current { border-color: var(--berry); box-shadow: inset 0 0 0 1px var(--berry); }
.cover-choice-frame { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--surface-soft); }
.cover-choice-frame img { display: block; width: 100%; height: 100%; object-fit: cover; animation: cover-choice-in .35s var(--ease-out); }
.cover-choice figcaption, .cover-choice-caption { display: flex; justify-content: space-between; gap: 6px; padding: 0 2px 2px; font-size: 12.5px; font-weight: 600; }
.cover-choice figcaption span, .cover-choice-caption span { color: var(--muted); font-weight: 500; }
.cover-choice.is-current figcaption span { color: var(--berry); }
button.cover-choice:hover .cover-choice-caption span { color: var(--berry); }
.cover-choice-shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, #ffffffb3 50%, transparent 80%); transform: translateX(-100%); animation: ghp-shine 1.3s ease-in-out infinite; }
@keyframes cover-choice-in { from { opacity: 0; transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .cover-choice-shimmer, .cover-choice-frame img { animation: none; } button.cover-choice { transition: none; } }

/* How Aurora keeps people's work safe: icon rows, the rest folded. */
.safety-points { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.safety-points li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.safety-points li > span:last-child { display: grid; gap: 1px; }
.safety-points strong { color: var(--ink); font-size: 14px; font-weight: 620; }
.safety-points li > span:last-child > span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.safety-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--rose); color: var(--berry); }
.safety-icon .ui-icon { width: 16px; height: 16px; }
.safety-more { margin-top: 10px; }
.safety-more summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0; }
.safety-more ul { display: grid; gap: 6px; margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.safety-card { margin-top: 20px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.safety-card > summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.safety-card > summary::-webkit-details-marker { display: none; }
.safety-card > summary > span:last-child { display: grid; gap: 1px; }
.safety-card > summary strong { font-size: 15px; }
.safety-card > summary > span:last-child > span { color: var(--muted); font-size: 13px; }
.safety-card[open] > summary { border-bottom: 1px solid var(--line); }
.safety-card > .safety-points, .safety-card > .safety-more { margin: 14px 18px; }

/* Phones already show the project name in the strip above, so Overview doesn't repeat it (screen readers still hear it). */
@media (max-width: 760px) {
  .ws-overview-head h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
