:root {
  color-scheme: light;
  --ink: #171918;
  --muted: #74746f;
  --muted-strong: #555751;
  --paper: #fbfaf7;
  --paper-deep: #f2efe9;
  --line: #dfddd6;
  --line-strong: #cecbc1;
  --sidebar: #202221;
  --sidebar-raised: #2b2d2c;
  --sidebar-muted: #a8aaa6;
  --orange: #e8773f;
  --orange-dark: #a93b0e;
  --orange-cta: #c94b12;
  --orange-cta-hover: #a93b0e;
  --orange-soft: #fff0e7;
  --green: #5d743f;
  --green-dark: #43562c;
  --green-soft: #f3f5ed;
  --red: #b34d3f;
  --red-soft: #fff0ec;
  --shadow-sm: 0 1px 2px rgba(30, 28, 24, 0.06), 0 5px 18px rgba(30, 28, 24, 0.04);
  --shadow-md: 0 14px 40px rgba(30, 28, 24, 0.08);
  --sidebar-width: 296px;
  --radius: 12px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
}

button,
textarea,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--sidebar);
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(232, 119, 63, 0.46);
  outline-offset: 3px;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: var(--sidebar-width);
  height: 100vh;
  overflow: hidden;
  color: #f7f7f4;
  background:
    linear-gradient(180deg, transparent 68%, rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.045) 0 3px, transparent 3.5px),
    radial-gradient(circle at 86% 82%, rgba(255, 255, 255, 0.035) 0 4px, transparent 4.5px),
    var(--sidebar);
  background-size: auto, 74px 78px, 93px 91px, auto;
  border-right: 1px solid rgba(0, 0, 0, 0.34);
}

.sidebar__top {
  min-height: 0;
  padding: 34px 22px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: #fff;
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.voxel {
  --voxel-size: 44px;
  position: relative;
  display: inline-block;
  flex: 0 0 var(--voxel-size);
  width: var(--voxel-size);
  height: calc(var(--voxel-size) * 1.05);
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.16));
}

.voxel > span {
  position: absolute;
  display: block;
}

.voxel__top {
  top: 0;
  left: 7%;
  width: 86%;
  height: 45%;
  background:
    linear-gradient(30deg, transparent 48%, rgba(38, 37, 34, 0.34) 49% 52%, transparent 53%),
    linear-gradient(-30deg, transparent 48%, rgba(38, 37, 34, 0.3) 49% 52%, transparent 53%),
    repeating-linear-gradient(90deg, transparent 0 28%, rgba(38, 37, 34, 0.22) 29% 32%, transparent 33% 61%),
    #ddd5c7;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.voxel__left {
  top: 38%;
  left: 7%;
  width: 43%;
  height: 60%;
  background:
    repeating-linear-gradient(90deg, transparent 0 29%, rgba(22, 21, 20, 0.28) 31% 34%, transparent 35% 65%),
    repeating-linear-gradient(0deg, transparent 0 29%, rgba(22, 21, 20, 0.22) 31% 34%, transparent 35% 65%),
    #77766f;
  clip-path: polygon(0 0, 100% 33%, 100% 100%, 0 67%);
}

.voxel__right {
  top: 38%;
  right: 7%;
  width: 43%;
  height: 60%;
  background:
    repeating-linear-gradient(90deg, transparent 0 29%, rgba(22, 21, 20, 0.22) 31% 34%, transparent 35% 65%),
    repeating-linear-gradient(0deg, transparent 0 29%, rgba(22, 21, 20, 0.18) 31% 34%, transparent 35% 65%),
    #b7734e;
  clip-path: polygon(0 33%, 100% 0, 100% 67%, 0 100%);
}

.new-plugin-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  margin-top: 38px;
  padding: 18px 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(180deg, var(--orange-cta), #b84210);
  box-shadow: 0 10px 25px rgba(198, 85, 35, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.17);
  cursor: pointer;
  font-weight: 650;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.new-plugin-button:hover {
  background: linear-gradient(180deg, #b84210, var(--orange-cta-hover));
  box-shadow: 0 12px 30px rgba(198, 85, 35, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.new-plugin-button:active {
  transform: translateY(1px);
}

.plus-mark {
  position: relative;
  width: 18px;
  height: 18px;
}

.plus-mark::before,
.plus-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.plus-mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sidebar__section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 42px 6px 12px;
  color: var(--sidebar-muted);
}

.sidebar__section-heading h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 315px);
  margin: 0 -3px;
  padding: 0 3px 8px;
  overflow-y: auto;
  scrollbar-color: #4a4c4a transparent;
  scrollbar-width: thin;
}

.job-list__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  min-height: 67px;
  border-radius: 8px;
  transition: background 140ms ease;
}

.job-list__item:hover,
.job-list__item.is-selected {
  background: rgba(255, 255, 255, 0.075);
}

.job-list__select {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  height: 100%;
  padding: 9px 0 9px 12px;
  border: 0;
  color: #f6f6f2;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.job-list__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.job-list__copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 570;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-list__copy small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--sidebar-muted);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-list__delete {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #a9aaa7;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  opacity: 0;
  transition: color 140ms ease, background 140ms ease, opacity 140ms ease;
}

.job-list__item:hover .job-list__delete,
.job-list__delete:focus-visible {
  opacity: 1;
}

.job-list__delete:hover {
  color: #fff;
  background: rgba(205, 78, 59, 0.28);
}

.job-list__empty {
  margin: 14px 9px;
  color: #8f918d;
  font-size: 12px;
  line-height: 1.55;
}

.job-list__loading {
  display: grid;
  gap: 9px;
  padding: 8px 7px;
}

.job-list__loading span {
  display: block;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  background-size: 220% 100%;
  animation: shimmer 1.5s ease infinite;
}

.main {
  min-width: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(96, 89, 75, 0.047) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 89, 75, 0.047) 1px, transparent 1px),
    linear-gradient(rgba(96, 89, 75, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 89, 75, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 59% 31%, rgba(255, 255, 255, 0.98), rgba(251, 250, 247, 0.78) 45%, rgba(246, 244, 239, 0.66));
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px, 0 0;
  background-size: 32px 32px, 32px 32px, 8px 8px, 8px 8px, 100% 100%;
}

.main__inner {
  width: min(100%, 882px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 74px 32px 38px;
}

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; width: min(100%, 882px); margin: -8px auto 0; padding: 0 32px 24px; color: var(--muted); font-size: 12px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 15px; }
.site-footer a { color: var(--muted-strong); font-weight: 650; text-decoration: none; }
.site-footer a:hover { color: var(--orange-dark); }

.mobile-bar {
  display: none;
}

.sidebar-scrim {
  display: none;
}

.loading-view,
.error-view {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: calc(100vh - 150px);
  text-align: center;
}

.loading-view p {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.loading-anvil {
  position: relative;
  width: 54px;
  height: 42px;
  animation: float 1.8s ease-in-out infinite;
}

.loading-anvil span {
  position: absolute;
  display: block;
  background: var(--orange);
}

.loading-anvil span:nth-child(1) {
  top: 5px;
  left: 2px;
  width: 50px;
  height: 11px;
  border-radius: 3px 3px 6px 6px;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 17% 100%);
}

.loading-anvil span:nth-child(2) {
  top: 14px;
  left: 20px;
  width: 16px;
  height: 18px;
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}

.loading-anvil span:nth-child(3) {
  bottom: 3px;
  left: 12px;
  width: 32px;
  height: 7px;
  border-radius: 2px;
}

.error-view {
  max-width: 470px;
  margin: 0 auto;
}

.error-view h1 {
  margin: 19px 0 8px;
  font-size: 25px;
}

.error-view p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.notice-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 20px;
  font-weight: 750;
}

.notice-mark--error {
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgba(179, 77, 63, 0.2);
}

.new-view {
  max-width: 810px;
  margin: 6vh auto 0;
}

.new-view__intro {
  max-width: 660px;
  margin: 0 auto 31px;
  text-align: center;
}

.voxel--hero {
  --voxel-size: 62px;
  margin-bottom: 17px;
}

.voxel--hero .voxel__top {
  background:
    linear-gradient(28deg, transparent 47%, rgba(49, 78, 30, 0.28) 48% 51%, transparent 52%),
    linear-gradient(-28deg, transparent 47%, rgba(49, 78, 30, 0.22) 48% 51%, transparent 52%),
    #8baa58;
}

.voxel--hero .voxel__left {
  background:
    repeating-linear-gradient(0deg, transparent 0 30%, rgba(66, 48, 31, 0.25) 31% 34%, transparent 35% 63%),
    #8a623f;
}

.voxel--hero .voxel__right {
  background:
    repeating-linear-gradient(90deg, transparent 0 30%, rgba(62, 43, 27, 0.22) 31% 34%, transparent 35% 63%),
    #6f4b30;
}

.eyebrow {
  margin: 0 0 10px !important;
  color: var(--orange) !important;
  font-size: 11px !important;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.new-view h1 {
  margin: 0;
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 710;
  letter-spacing: -0.038em;
  line-height: 1.15;
}

.new-view__intro > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.composer {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.composer--large {
  overflow: hidden;
  border-radius: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.composer--large:focus-within {
  border-color: rgba(232, 119, 63, 0.55);
  box-shadow: 0 0 0 4px rgba(232, 119, 63, 0.09), var(--shadow-md);
}

.composer--large.is-dragging,
.composer--change.is-dragging {
  border-color: rgba(232, 119, 63, 0.8);
  box-shadow: 0 0 0 4px rgba(232, 119, 63, 0.12), var(--shadow-md);
}

.composer textarea {
  display: block;
  width: 100%;
  resize: none;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.composer--large textarea {
  min-height: 155px;
  padding: 24px 25px 15px;
  font-size: 17px;
  line-height: 1.6;
}

.composer textarea::placeholder {
  color: #92938e;
}

.composer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px 14px 18px;
  border-top: 1px solid rgba(223, 221, 214, 0.65);
}

.attachment-hint {
  color: #a1a19b;
  font-size: 11px;
  line-height: 1.3;
}

.composer__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.composer__actions--start {
  margin-left: 0;
}

.attach-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 6px 11px 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #64665f;
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.attach-button:hover,
.attach-button:focus-visible {
  color: var(--orange-dark);
  border-color: rgba(232, 119, 63, 0.55);
  background: var(--orange-soft);
}

.attach-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
}

.attach-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.attachment-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attachment-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 18px 12px;
}

.attachment-tray[hidden] {
  display: none;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: min(260px, 100%);
  padding: 5px 7px 5px 5px;
  border: 1px solid #dedbd3;
  border-radius: 8px;
  color: #555751;
  background: #f7f5f0;
}

.attachment-chip__preview,
.attachment-chip__file {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 5px;
}

.attachment-chip__preview {
  display: block;
  object-fit: cover;
}

.attachment-chip__file {
  position: relative;
  border: 1px solid #c9c6bc;
  background: #fff;
}

.attachment-chip__file::after,
.message-attachment__file::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 10px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 4px currentColor;
}

.attachment-chip__copy {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.attachment-chip__copy strong {
  overflow: hidden;
  color: #3c3e39;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-chip__copy small {
  color: #90918b;
  font-size: 10px;
}

.attachment-chip__remove {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: #898a84;
  background: transparent;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.attachment-chip__remove:hover,
.attachment-chip__remove:focus-visible {
  color: #a84b3d;
  background: #eee5df;
}

.character-count {
  color: #9a9a95;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.primary-button,
.secondary-button,
.download-button,
.source-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.primary-button {
  border: 1px solid var(--orange-dark);
  color: #fff;
  background: var(--orange);
  box-shadow: 0 4px 12px rgba(200, 92, 42, 0.2);
}

.primary-button:hover {
  background: #df6e37;
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.send-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.arrow-mark {
  font-size: 18px;
  line-height: 1;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: #fff;
}

.secondary-button:hover {
  background: #f4f2ed;
}

.prompt-starters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.prompt-starters button {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(223, 221, 214, 0.85);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.prompt-starters button:hover {
  border-color: #c9c5bb;
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.prompt-starters button > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prompt-starters strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-starters small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-voxel {
  --mini-color: #789848;
  --mini-dark: #566f32;
  position: relative;
  display: inline-block;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.1) 49% 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(0, 0, 0, 0.12) 49% 52%, transparent 53%),
    linear-gradient(135deg, var(--mini-color) 0 49%, var(--mini-dark) 50% 100%);
  box-shadow: inset -5px -5px 0 rgba(0, 0, 0, 0.12), inset 4px 4px 0 rgba(255, 255, 255, 0.1);
  transform: rotate(30deg) skew(-6deg, -6deg) scale(0.78);
}

.mini-voxel--gold {
  --mini-color: #deb14a;
  --mini-dark: #b37c25;
}

.mini-voxel--blue {
  --mini-color: #70a2b8;
  --mini-dark: #486f86;
}

.mini-voxel--stone {
  --mini-color: #929590;
  --mini-dark: #656963;
}

.mini-voxel--red {
  --mini-color: #ca6748;
  --mini-dark: #943b2b;
}

.job-view {
  padding-bottom: 5px;
}

.request-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  gap: 16px;
  align-items: start;
  min-height: 106px;
  margin-bottom: 30px;
  padding: 23px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(115deg, rgba(247, 244, 238, 0.92), rgba(242, 240, 235, 0.78));
  box-shadow: var(--shadow-sm);
}

.request-card__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(145deg, #ef894e, #cf5e2b);
  box-shadow: 0 4px 11px rgba(207, 94, 43, 0.18);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 16px;
  font-weight: 730;
}

.request-card p {
  margin: 4px 0 0;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.52;
}

.request-card__copy {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition: background 140ms ease, opacity 140ms ease;
}

.request-card:hover .request-card__copy,
.request-card__copy:focus-visible {
  opacity: 1;
}

.request-card__copy:hover {
  background: rgba(0, 0, 0, 0.055);
}

.request-card__copy > span,
.request-card__copy > span::after {
  width: 12px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.request-card__copy > span {
  position: relative;
  display: block;
  transform: translate(2px, 2px);
}

.request-card__copy > span::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  background: var(--paper-deep);
}

.build-header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 13px;
  margin: 0 7px 22px;
}

.spark-mark {
  color: var(--orange);
  font-size: 26px;
  line-height: 1;
  transform: translateY(3px);
}

.build-header__title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.build-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 710;
  letter-spacing: -0.02em;
}

.build-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.progress-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  list-style: none;
}

.progress-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 22px;
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 13px 18px;
  color: #8c8d88;
  transition: color 180ms ease, background 180ms ease;
}

.progress-row + .progress-row {
  border-top: 1px solid var(--line);
}

.progress-row.is-complete,
.progress-row.is-active,
.progress-row.is-failed {
  color: var(--ink);
}

.progress-row.is-active {
  background: linear-gradient(90deg, rgba(255, 240, 231, 0.62), rgba(255, 255, 255, 0.1) 54%);
}

.progress-row.is-failed {
  background: var(--red-soft);
}

.progress-row__label {
  font-size: 16px;
  font-weight: 500;
}

.progress-row.is-active .progress-row__label {
  font-weight: 650;
}

.progress-row__time {
  color: #898a86;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.progress-row.is-active .progress-row__time {
  color: var(--orange-dark);
}

.progress-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 35px;
  color: #777a75;
}

.progress-icon--plan {
  width: 26px;
  height: 31px;
  margin-left: 2px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.progress-icon--plan::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 6px;
  width: 10px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: var(--paper);
}

.progress-icon--plan::after {
  width: 13px;
  height: 13px;
  content: "";
  background: url("/assets/spark-mark-v2.png") center / contain no-repeat;
}

.progress-icon--code {
  width: 29px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
}

.progress-icon--code::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: var(--paper);
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: skew(0, 45deg) translate(-1px, 1px);
}

.progress-icon--test {
  width: 30px;
  height: 33px;
}

.progress-icon--test::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 11px;
  width: 8px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
}

.progress-icon--test::after {
  content: "••";
  position: absolute;
  bottom: 0;
  left: 2px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 4px 4px 7px 7px;
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 2px;
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}

.progress-icon--cube {
  grid-column: 1;
  justify-self: center;
}

.progress-row__status {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border: 1.5px solid #cbc9c3;
  border-radius: 50%;
}

.progress-row.is-complete .progress-row__status {
  border-color: var(--green);
  background: var(--green);
}

.progress-row.is-complete .progress-row__status::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 4px;
  height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.progress-row.is-active .progress-row__status {
  border: 2px solid rgba(232, 119, 63, 0.3);
  border-top-color: var(--orange);
  animation: spin 900ms linear infinite;
}

.progress-row.is-failed .progress-row__status {
  border-color: var(--red);
  background: var(--red);
}

.progress-row.is-failed .progress-row__status::before,
.progress-row.is-failed .progress-row__status::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 3px;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.progress-row.is-failed .progress-row__status::after {
  transform: rotate(-45deg);
}

.stage-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 12px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-sm);
  list-style: none;
}

.stage-track::before {
  content: "";
  position: absolute;
  top: 21px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: #d9d7d0;
}

.stage-track__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #989994;
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.stage-track__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #cfcdc6;
  border-radius: 50%;
  background: #faf9f6;
}

.stage-track__item.is-complete,
.stage-track__item.is-active,
.stage-track__item.is-failed {
  color: var(--ink);
}

.stage-track__item.is-complete .stage-track__dot {
  border-color: var(--green);
  background: var(--green);
}

.stage-track__item.is-complete .stage-track__dot::after {
  content: "";
  width: 4px;
  height: 7px;
  margin-top: -2px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.stage-track__item.is-active .stage-track__dot {
  border-color: var(--orange);
  background: #fff6f0;
  box-shadow: 0 0 0 4px rgba(232, 119, 63, 0.13);
}

.stage-track__item.is-active .stage-track__dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: activity-pulse 1.5s ease-in-out infinite;
}

.stage-track__item.is-failed .stage-track__dot {
  border-color: var(--red);
  background: var(--red);
}

.stage-track__item.is-failed .stage-track__dot::before,
.stage-track__item.is-failed .stage-track__dot::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.stage-track__item.is-failed .stage-track__dot::after {
  transform: rotate(-45deg);
}

.activity-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
}

.activity-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 65px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 240, 0.78);
}

.activity-panel__title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.activity-panel__title h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.activity-panel__title p {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-panel__pulse {
  position: relative;
  display: block;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aaa9a4;
}

.activity-panel__pulse.is-live {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(232, 119, 63, 0.12);
}

.activity-panel__pulse.is-live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(232, 119, 63, 0.42);
  border-radius: inherit;
  animation: live-ring 1.7s ease-out infinite;
}

.activity-panel__pulse.is-ready {
  background: var(--green);
}

.activity-panel__pulse.is-failed {
  background: var(--red);
}

.jump-latest-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(232, 119, 63, 0.24);
  border-radius: 99px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 680;
  transition: background 140ms ease, transform 140ms ease;
}

.jump-latest-button:hover {
  background: #ffe5d5;
  transform: translateY(-1px);
}

.activity-stream {
  position: relative;
  min-height: 270px;
  max-height: 430px;
  padding: 18px 17px 20px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #c9c6be transparent;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.activity-stream::before {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 34px;
  width: 1px;
  background: linear-gradient(#dfdcd4, #e8e5de 90%, transparent);
}

.activity-empty {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 30px;
  text-align: center;
}

.activity-empty__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border: 1px solid #e6dfd7;
  border-radius: 10px;
  color: var(--orange);
  background: #fff9f5;
  font-size: 20px;
}

.activity-empty strong {
  font-size: 13px;
}

.activity-empty p {
  max-width: 370px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.activity-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.activity-item + .activity-item {
  margin-top: 15px;
}

.activity-item__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #ddd9d1;
  border-radius: 9px;
  color: #656761;
  background: #fbfaf7;
  box-shadow: 0 2px 5px rgba(35, 32, 27, 0.07);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
}

.activity-item[data-activity-type="note"] .activity-item__mark {
  color: var(--orange);
  background: #fff8f3;
  border-color: #efd7c9;
  font-family: inherit;
  font-size: 17px;
}

.activity-item[data-activity-type="command"] .activity-item__mark {
  color: #e7e8e4;
  background: #343735;
  border-color: #292b2a;
}

.activity-item[data-activity-type="build"] .activity-item__mark {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(93, 116, 63, 0.25);
  font-family: inherit;
  font-size: 16px;
}

.activity-item[data-activity-type="status"] .activity-item__mark {
  color: var(--green);
  background: #f7f8f3;
  border-color: rgba(93, 116, 63, 0.22);
  font-family: inherit;
  font-size: 14px;
}

.activity-item.is-failed .activity-item__mark {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(179, 77, 63, 0.24);
}

.activity-item__bubble {
  min-width: 0;
  padding: 11px 13px 12px;
  border: 1px solid #e1ded7;
  border-radius: 4px 10px 10px 10px;
  background: rgba(255, 255, 255, 0.78);
}

.activity-item--conclusion { margin-top: 18px; }
.activity-item--conclusion .activity-item__bubble { border-color: #e6cdbd; background: linear-gradient(120deg, rgba(255, 249, 245, .98), rgba(255, 255, 255, .9)); }
.activity-conclusion__intro { font-size: 13px; font-weight: 650; }
.activity-conclusion__section { margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(226, 143, 99, .2); }
.activity-conclusion__title { margin: 0 0 6px; color: #4b4d48; font-size: 10px; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.activity-conclusion__list { display: grid; gap: 4px; margin: 0; padding-left: 17px; color: #5d605a; font-size: 11px; line-height: 1.45; }
.activity-conclusion__list li { overflow-wrap: anywhere; }

.activity-item[data-activity-type="note"] .activity-item__bubble {
  border-color: #eaded6;
  background: linear-gradient(120deg, rgba(255, 249, 245, 0.96), rgba(255, 255, 255, 0.78));
}

.activity-item[data-activity-type="command"] .activity-item__bubble {
  color: #f3f3ef;
  background: #292c2a;
  border-color: #202220;
  box-shadow: 0 5px 12px rgba(20, 21, 20, 0.1);
}

.activity-item.is-failed .activity-item__bubble {
  border-color: rgba(179, 77, 63, 0.24);
}

.activity-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.activity-item__actor {
  overflow: hidden;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.activity-item__meta {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  color: #92938e;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.activity-item[data-activity-type="command"] .activity-item__meta {
  color: #9ea29d;
}

.activity-item__message {
  margin: 0;
  color: #393b38;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.activity-item[data-activity-type="command"] .activity-item__message {
  color: #d8dad6;
}

.activity-item__detail {
  margin: 6px 0 0;
  color: #73756f;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.activity-item[data-activity-type="command"] .activity-item__detail {
  color: #aeb2ad;
}

.activity-item__path,
.activity-item__command {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  padding: 7px 9px;
  overflow-x: auto;
  border: 1px solid #e1ded7;
  border-radius: 6px;
  color: #5e625b;
  background: #f5f4f0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.activity-item__path::before {
  content: "FILE  ";
  color: #a09c94;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.07em;
}

.activity-item__command {
  border-color: #414541;
  color: #f0d0bd;
  background: #202321;
}

.activity-item__command::before {
  content: "$ ";
  color: #89aa69;
}

.activity-item__output {
  max-height: 180px;
  margin: 8px 0 0;
  padding: 8px 9px;
  overflow: auto;
  border-left: 2px solid #565b56;
  color: #b9bdb8;
  background: rgba(0, 0, 0, 0.13);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.activity-item:not([data-activity-type="command"]) .activity-item__output {
  border-left-color: #b9b6ae;
  color: #5d605a;
  background: #f0efeb;
}

@keyframes activity-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.72);
  }
}

@keyframes live-ring {
  from {
    opacity: 0.75;
    transform: scale(0.65);
  }
  to {
    opacity: 0;
    transform: scale(1.6);
  }
}

.failure-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
  padding: 17px;
  border: 1px solid rgba(179, 77, 63, 0.24);
  border-radius: 10px;
  background: rgba(255, 240, 236, 0.84);
}

.failure-card strong {
  font-size: 14px;
}

.failure-card p {
  margin: 3px 0 0;
  color: #815c54;
  font-size: 12px;
  line-height: 1.45;
}

.artifact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 205px;
  gap: 24px;
  align-items: center;
  margin-top: 15px;
  padding: 22px 21px 22px 26px;
  border: 1px solid rgba(93, 116, 63, 0.43);
  border-radius: 11px;
  background: linear-gradient(110deg, rgba(250, 250, 246, 0.94), rgba(246, 247, 239, 0.88));
  box-shadow: var(--shadow-sm);
}

.artifact-card__identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 23px;
}

.artifact-icon {
  display: block;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 9px 8px rgba(40, 34, 24, 0.2));
}

.artifact-card__copy {
  min-width: 0;
}

.artifact-card h2 {
  overflow: hidden;
  margin: 0 0 9px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.artifact-card__meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.artifact-card__actions {
  display: grid;
  gap: 9px;
}

.download-button {
  border: 1px solid var(--green-dark);
  color: #fff;
  background: linear-gradient(180deg, #6a8248, var(--green));
  box-shadow: 0 5px 12px rgba(67, 86, 44, 0.16);
}

.download-button:hover {
  background: linear-gradient(180deg, #728c4e, #536a37);
  transform: translateY(-1px);
}

.source-button {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}

.source-button:hover {
  background: #fff;
}

.download-mark {
  position: relative;
  width: 16px;
  height: 17px;
  border-bottom: 2px solid currentColor;
}

.download-mark::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 7px;
  width: 2px;
  height: 10px;
  background: currentColor;
}

.download-mark::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.file-mark {
  position: relative;
  width: 14px;
  height: 18px;
  border: 1.7px solid currentColor;
  border-radius: 2px;
}

.file-mark::before,
.file-mark::after {
  content: "";
  position: absolute;
  left: 3px;
  width: 7px;
  height: 1.5px;
  background: currentColor;
}

.file-mark::before {
  top: 7px;
}

.file-mark::after {
  top: 11px;
}

.composer--change {
  position: relative;
  display: grid;
  grid-template-columns: 40px 24px minmax(0, 1fr) 44px;
  column-gap: 8px;
  row-gap: 9px;
  align-items: center;
  min-height: 72px;
  margin-top: 36px;
  padding: 9px 10px;
  border-radius: 11px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.composer--change:focus-within {
  border-color: rgba(232, 119, 63, 0.5);
  box-shadow: 0 0 0 4px rgba(232, 119, 63, 0.08), var(--shadow-sm);
}

.spark-mark--small {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  font-size: 20px;
  transform: none;
}

.composer--change textarea {
  grid-column: 3;
  grid-row: 1;
  max-height: 140px;
  padding: 14px 4px;
  line-height: 1.45;
}

.composer--change .attachment-tray--change {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: -2px 0 0;
  padding: 0 0 4px;
}

.attach-button--change {
  position: static;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 5px;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.attach-button--change .attach-mark {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
}

.attach-button--change:hover,
.attach-button--change:focus-visible {
  background: var(--orange-soft);
}

.send-button {
  display: grid;
  grid-column: 4;
  grid-row: 1;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--orange-cta);
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.send-button:hover {
  background: var(--orange-cta-hover);
  transform: translateY(-1px);
}

.send-button span {
  display: block;
  font-size: 19px;
  transform: rotate(-23deg) translate(1px, -1px);
}

/* Conversation-style build history */
.activity-panel {
  border-color: #dedbd3;
  background: rgba(250, 249, 246, 0.88);
}

.activity-panel__header {
  min-height: 60px;
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.58);
}

.activity-stream {
  min-height: 300px;
  max-height: 480px;
  padding: 23px 22px 26px;
  background: linear-gradient(180deg, rgba(250, 249, 246, 0.48), rgba(247, 245, 240, 0.72));
}

.activity-stream::before {
  display: none;
}

.activity-item {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
}

.activity-item + .activity-item {
  margin-top: 18px;
}

.activity-item.is-grouped {
  margin-top: 6px;
}

.activity-item__mark {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #666861;
  background: #e9e7e1;
  box-shadow: none;
  font-size: 9px;
}

.activity-item.is-grouped .activity-item__mark {
  visibility: hidden;
}

.activity-item[data-activity-type="note"] .activity-item__mark {
  color: #fff;
  background: linear-gradient(145deg, #ed884f, #d56734);
  border: 0;
  font-size: 14px;
}

.activity-item[data-activity-type="file"] .activity-item__mark {
  color: #5e6d48;
  background: #e6eadf;
}

.activity-item[data-activity-type="command"] .activity-item__mark {
  color: #f1f1ed;
  background: #363936;
  border: 0;
}

.activity-item[data-activity-type="build"] .activity-item__mark {
  color: #fff;
  background: var(--green);
  border: 0;
  font-size: 13px;
}

.activity-item[data-activity-type="status"] .activity-item__mark {
  color: #6b6d67;
  background: #e7e5df;
  border: 0;
  font-size: 12px;
}

.activity-item.is-failed .activity-item__mark {
  color: #fff;
  background: var(--red);
  border: 0;
}

.activity-item__bubble,
.activity-item[data-activity-type="note"] .activity-item__bubble,
.activity-item[data-activity-type="command"] .activity-item__bubble {
  justify-self: start;
  width: fit-content;
  max-width: min(100%, 680px);
  padding: 9px 13px 11px;
  border: 1px solid #e1ded7;
  border-radius: 5px 14px 14px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(35, 32, 27, 0.035);
}

.activity-item[data-activity-type="note"] .activity-item__bubble {
  border-color: #eadbd1;
  background: #fffaf6;
}

.activity-item.is-grouped .activity-item__bubble {
  border-top-left-radius: 12px;
}

.activity-item.is-failed .activity-item__bubble {
  border-color: rgba(179, 77, 63, 0.24);
  background: #fff9f7;
}

.activity-item__header {
  justify-content: flex-start;
  gap: 7px;
  margin-bottom: 4px;
}

.activity-item.is-grouped .activity-item__actor {
  display: none;
}

.activity-item__actor {
  color: #454743;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: none;
}

.activity-item__meta,
.activity-item[data-activity-type="command"] .activity-item__meta {
  gap: 6px;
  color: #9b9b96;
  font-size: 9px;
}

.activity-item__state-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 9px;
  height: 9px;
}

.activity-item__state-icon::after {
  content: "";
  display: block;
}

.activity-item.is-running .activity-item__state-icon {
  border: 1.5px solid rgba(232, 119, 63, 0.32);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.activity-item.is-complete .activity-item__state-icon::after {
  width: 3px;
  height: 5px;
  margin-top: -1px;
  border-right: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(45deg);
}

.activity-item.is-failed .activity-item__state-icon::before,
.activity-item.is-failed .activity-item__state-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(45deg);
}

.activity-item.is-failed .activity-item__state-icon::after {
  transform: rotate(-45deg);
}

.activity-item.is-pending .activity-item__state-icon::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #aaa9a4;
}

.activity-item__message,
.activity-item[data-activity-type="command"] .activity-item__message {
  color: #383a36;
  font-size: 13px;
  line-height: 1.55;
}

.activity-item__detail,
.activity-item[data-activity-type="command"] .activity-item__detail {
  color: #70726c;
  font-size: 11px;
}

.activity-item__path,
.activity-item__command {
  margin-top: 9px;
  border-radius: 7px;
}

.activity-item__path {
  border-color: #e2dfd8;
  color: #555952;
  background: #f3f2ee;
}

.activity-item__command {
  border-color: #343835;
  color: #f0d0bd;
  background: #262926;
}

.activity-item__output,
.activity-item:not([data-activity-type="command"]) .activity-item__output {
  max-height: 190px;
  border: 1px solid #dcd9d2;
  border-left: 2px solid #a5a29b;
  border-radius: 6px;
  color: #555852;
  background: #efeee9;
}

.activity-item[data-activity-type="command"] .activity-item__output {
  border-color: #3a3e3a;
  border-left-color: #686d67;
  color: #c4c8c2;
  background: #202320;
}

.conversation-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-md);
}

.conversation-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(253, 252, 249, 0.96);
}

.conversation-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ed884f, #ce5f2d);
  box-shadow: 0 3px 10px rgba(200, 92, 42, 0.22);
  font-size: 14px;
  font-weight: 780;
}

.conversation-header__copy {
  min-width: 0;
}

.conversation-header h1 {
  margin: 0;
  font-family: "Segoe UI Variable Display", "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 16px;
  font-weight: 730;
  letter-spacing: -0.018em;
}

.conversation-shell .activity-stream {
  min-height: 390px;
  max-height: min(58vh, 560px);
  padding: 24px 22px 28px;
  background:
    linear-gradient(180deg, rgba(250, 249, 246, 0.4), rgba(247, 245, 240, 0.68)),
    linear-gradient(rgba(96, 89, 75, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 89, 75, 0.025) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

.user-message {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0 0 24px auto;
}

.activity-messages > .user-message {
  animation: message-in 180ms ease-out both;
}

.user-message.is-pending .user-message__bubble {
  opacity: 0.78;
}

.user-message.is-failed .user-message__bubble {
  border: 1px solid rgba(179, 77, 63, 0.4);
  background: linear-gradient(145deg, #c8664f, #a84b3d);
}

.user-message__state {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.user-message__retry {
  margin-top: 7px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.user-message__retry:hover,
.user-message__retry:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.user-message__bubble {
  max-width: min(82%, 620px);
  padding: 11px 14px;
  border-radius: 15px 5px 15px 15px;
  color: #fff;
  background: linear-gradient(145deg, #eb8148, #d66a35);
  box-shadow: 0 4px 12px rgba(200, 92, 42, 0.14);
}

.user-message__bubble p {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.user-message__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.message-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  padding: 4px 7px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  font-size: 10px;
}

.message-attachment > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-attachment__image,
.message-attachment__file {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

.message-attachment__image {
  background: linear-gradient(135deg, #f8b96c 0 45%, #79a66a 45% 68%, #4e765f 68%);
}

.message-attachment__file {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: rgba(255, 255, 255, 0.8);
}

.message-attachment__file::after {
  left: 5px;
  right: 5px;
  top: 8px;
  background: currentColor;
  box-shadow: 0 4px currentColor;
}

.user-message__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #989994;
  font-size: 9px;
}

.message-copy-button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: #8d8e89;
  background: transparent;
  cursor: pointer;
}

.message-copy-button:hover {
  color: var(--orange-dark);
  background: var(--orange-soft);
}

.message-copy-button > span,
.message-copy-button > span::after {
  width: 8px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 1px;
}

.message-copy-button > span {
  position: relative;
  display: block;
  transform: translate(1px, 1px);
}

.message-copy-button > span::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--paper);
}

.activity-messages {
  display: flex;
  flex-direction: column;
  min-height: 150px;
}

.conversation-shell .activity-empty {
  position: static;
  min-height: 180px;
  padding: 30px 20px;
}

.conversation-shell .activity-item__bubble,
.conversation-shell .activity-item[data-activity-type="note"] .activity-item__bubble,
.conversation-shell .activity-item[data-activity-type="command"] .activity-item__bubble {
  max-width: min(84%, 650px);
}

.conversation-shell .jump-latest-button {
  position: relative;
  z-index: 3;
  float: right;
  margin: -45px 17px 13px 0;
  box-shadow: 0 5px 12px rgba(30, 28, 24, 0.09);
}

.conversation-shell .failure-card,
.conversation-shell .artifact-card {
  margin-right: 16px;
  margin-left: 16px;
}

.conversation-shell .composer--change {
  clear: both;
  margin: 14px 0 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
  background: rgba(253, 252, 249, 0.98);
}

.conversation-shell .composer--change:focus-within {
  border-color: var(--line);
  box-shadow: inset 0 3px 0 rgba(232, 119, 63, 0.08);
}

.conversation-shell .activity-item {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
}

.conversation-shell .activity-item + .activity-item,
.conversation-shell .activity-item.is-grouped {
  margin-top: 3px;
}

.conversation-shell .activity-item.is-group-end + .activity-item {
  margin-top: 15px;
}

.conversation-shell .activity-item .activity-item__mark {
  align-self: end;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ed884f, #ce5f2d);
  box-shadow: none;
  font-family: inherit;
  font-size: 9px;
  font-weight: 780;
  visibility: hidden;
}

.conversation-shell .activity-item.is-group-end .activity-item__mark {
  visibility: visible;
}

.conversation-shell .activity-item__bubble,
.conversation-shell .activity-item[data-activity-type="note"] .activity-item__bubble,
.conversation-shell .activity-item[data-activity-type="file"] .activity-item__bubble,
.conversation-shell .activity-item[data-activity-type="command"] .activity-item__bubble,
.conversation-shell .activity-item[data-activity-type="build"] .activity-item__bubble,
.conversation-shell .activity-item[data-activity-type="status"] .activity-item__bubble,
.conversation-shell .activity-item.is-failed .activity-item__bubble {
  width: fit-content;
  max-width: min(78%, 620px);
  padding: 8px 12px 9px;
  border: 0;
  border-radius: 16px 16px 16px 5px;
  color: var(--ink);
  background: #ecebe7;
  box-shadow: none;
}

.conversation-shell .activity-item.is-grouped:not(.is-group-end) .activity-item__bubble {
  border-bottom-left-radius: 16px;
}

.conversation-shell .activity-item__message,
.conversation-shell .activity-item[data-activity-type="command"] .activity-item__message {
  color: #30322f;
  font-size: 13px;
  line-height: 1.48;
}

.conversation-shell .activity-item__detail,
.conversation-shell .activity-item[data-activity-type="command"] .activity-item__detail {
  margin-top: 5px;
  color: #747670;
  font-size: 10px;
}

.conversation-shell .activity-item__group-time {
  display: block;
  margin-top: 5px;
  color: #a09f9a;
  font-size: 8px;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.conversation-shell .activity-item__path {
  margin-top: 7px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  color: #565952;
  background: rgba(255, 255, 255, 0.64);
}

.conversation-shell .activity-item__path::before {
  content: "";
}

.conversation-attachments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.conversation-shell .conversation-attachments .artifact-card,
.conversation-shell .conversation-attachments .failure-card {
  position: relative;
  width: min(70%, 560px);
  max-width: 560px;
  margin: 0 0 0 32px;
  border: 0;
  border-radius: 16px 16px 16px 5px;
  background: #ecebe7;
  box-shadow: none;
}

.conversation-shell .conversation-attachments .artifact-card::before,
.conversation-shell .conversation-attachments .failure-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -32px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent url("/assets/swizie-avatar-v2.png") center / contain no-repeat;
}

.conversation-shell .conversation-attachments .artifact-card {
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 14px;
  padding: 14px;
}

.conversation-shell .conversation-attachments .artifact-card__identity {
  gap: 12px;
}

.conversation-shell .conversation-attachments .artifact-icon {
  flex-basis: 68px;
  width: 68px;
  height: 68px;
}

.conversation-shell .conversation-attachments .artifact-card h2 {
  margin-bottom: 6px;
  font-size: 17px;
}

.conversation-shell .conversation-attachments .artifact-card__meta {
  margin-top: 7px;
}

.conversation-shell .conversation-attachments .download-button,
.conversation-shell .conversation-attachments .source-button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 11px;
}

.conversation-shell .conversation-attachments .failure-card {
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 13px;
}

.conversation-shell .conversation-attachments .failure-card .secondary-button {
  grid-column: 1 / -1;
  justify-self: start;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  background: #292b29;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  to {
    background-position: -120% 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 980px) {
  :root {
    --sidebar-width: 248px;
  }

  .sidebar__top {
    padding-right: 17px;
    padding-left: 17px;
  }

  .brand {
    gap: 11px;
    font-size: 17px;
  }

  .main__inner {
    padding-right: 25px;
    padding-left: 25px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .mobile-bar {
    position: fixed;
    z-index: 15;
    top: 0;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    min-height: 63px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(32, 34, 33, 0.97);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
  }

  .icon-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: transparent;
    cursor: pointer;
  }

  .menu-button > span {
    display: block;
    width: 18px;
    height: 1.5px;
    margin: 2px 0;
    border-radius: 2px;
    background: currentColor;
  }

  .brand--mobile {
    justify-self: center;
    gap: 8px;
    font-size: 14px;
  }

  .sidebar {
    position: fixed;
    z-index: 60;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(300px, 86vw);
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(14, 15, 14, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  body.sidebar-open .sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .main__inner {
    min-height: 100dvh;
    padding: 88px 17px 28px;
  }

  .loading-view,
  .error-view {
    min-height: calc(100dvh - 116px);
  }

  .new-view {
    margin-top: 2vh;
  }

  .new-view__intro {
    margin-bottom: 22px;
  }

  .voxel--hero {
    --voxel-size: 50px;
    margin-bottom: 12px;
  }

  .new-view h1 {
    font-size: clamp(27px, 8vw, 36px);
  }

  .new-view__intro > p:last-child {
    font-size: 14px;
  }

  .prompt-starters {
    grid-template-columns: 1fr;
  }

  .prompt-starters button {
    min-height: 62px;
  }

  .request-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    min-height: 94px;
    padding: 18px 16px;
  }

  .request-card__mark {
    width: 36px;
    height: 36px;
  }

  .request-card__copy {
    display: none;
  }

  .build-header {
    margin-right: 2px;
    margin-left: 2px;
  }

  .build-header h1 {
    font-size: 21px;
  }

  .progress-row {
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    gap: 11px;
    min-height: 66px;
    padding: 11px 14px;
  }

  .progress-row__time {
    display: none;
  }

  .activity-stream {
    min-height: 300px;
    max-height: min(48vh, 430px);
    padding-right: 13px;
    padding-left: 13px;
  }

  .activity-stream::before {
    left: 30px;
  }

  .activity-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .artifact-card {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .artifact-card__actions {
    grid-template-columns: 1fr 1fr;
  }

  .composer--change {
    margin-top: 24px;
  }
}

@media (max-width: 520px) {
  .main__inner {
    padding-right: 12px;
    padding-left: 12px;
  }

  .composer--large textarea {
    min-height: 174px;
    padding: 20px 18px 12px;
    font-size: 16px;
  }

  .composer__footer {
    align-items: flex-end;
    padding-left: 13px;
  }

  .composer__actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }

  .composer__actions--start {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .primary-button {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 13px;
  }

  .request-card {
    margin-bottom: 24px;
  }

  .request-card p {
    font-size: 15px;
  }

  .build-header {
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 17px;
  }

  .spark-mark {
    font-size: 21px;
  }

  .progress-row__label {
    font-size: 14px;
  }

  .stage-track {
    padding-right: 7px;
    padding-left: 7px;
  }

  .stage-track__item {
    font-size: 8px;
  }

  .activity-panel__header {
    min-height: 59px;
    padding: 10px 12px;
  }

  .activity-panel__title {
    gap: 8px;
  }

  .activity-panel__title p {
    max-width: 180px;
  }

  .jump-latest-button > span:first-child {
    display: none;
  }

  .jump-latest-button {
    width: 30px;
    padding: 5px;
  }

  .activity-stream {
    min-height: 315px;
    padding: 14px 9px 17px;
  }

  .activity-stream::before {
    left: 26px;
  }

  .activity-item {
    grid-template-columns: 33px minmax(0, 1fr);
    gap: 8px;
  }

  .activity-item__mark {
    width: 33px;
    height: 33px;
  }

  .activity-item__bubble {
    padding: 10px 10px 11px;
  }

  .activity-item__header {
    align-items: flex-start;
    gap: 8px;
  }

  .activity-item__meta {
    gap: 4px;
  }

  .activity-item__message {
    font-size: 11px;
  }

  .failure-card {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .failure-card .secondary-button {
    grid-column: 1 / -1;
  }

  .artifact-card {
    padding: 20px 16px;
  }

  .artifact-card__identity {
    gap: 14px;
  }

  .artifact-icon {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }

  .artifact-card h2 {
    font-size: 20px;
  }

  .artifact-card__actions {
    grid-template-columns: 1fr;
  }

  .composer--change {
    grid-template-columns: 40px 22px minmax(0, 1fr) 40px;
    column-gap: 6px;
    min-height: 64px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .send-button {
    width: 40px;
    height: 40px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}

/* Account workspace */
.sidebar__bottom {
  margin-top: auto;
  padding: 18px 28px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.account-nav-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 66px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #f5f6f2;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease;
}

.account-nav-button:hover,
.account-nav-button:focus-visible,
.account-nav-button.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.account-nav-button.is-active::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: -1px;
  width: 3px;
  border-radius: 4px;
  background: var(--orange);
  content: "";
}

.account-nav-button__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  background: #b7744f;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.24);
  image-rendering: pixelated;
}

.account-pixel-avatar {
  position: absolute;
  inset: 0;
  display: block;
  background:
    linear-gradient(#332820 0 0) 0 0 / 100% 8px no-repeat,
    linear-gradient(#473126 0 0) 0 7px / 5px 11px no-repeat,
    linear-gradient(#473126 0 0) 100% 7px / 5px 11px no-repeat,
    linear-gradient(#f0e7de 0 0) 6px 13px / 7px 4px no-repeat,
    linear-gradient(#f0e7de 0 0) 19px 13px / 7px 4px no-repeat,
    linear-gradient(#54747f 0 0) 9px 13px / 3px 4px no-repeat,
    linear-gradient(#54747f 0 0) 20px 13px / 3px 4px no-repeat,
    linear-gradient(#7f4937 0 0) 11px 23px / 10px 3px no-repeat,
    linear-gradient(#9a5c42 0 0) 13px 18px / 6px 5px no-repeat,
    #b97854;
}

.account-nav-button__chevron {
  margin-left: auto;
  color: #e8e9e5;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}

.account-nav-button__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.account-nav-button__copy strong {
  font-size: 14px;
  font-weight: 700;
}

.account-nav-button__copy small {
  overflow: hidden;
  color: var(--sidebar-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main__inner:has(> .account-view:not([hidden])) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 44px;
  padding-right: 40px;
  padding-left: 40px;
}

.account-view {
  width: 100%;
  padding-bottom: 42px;
}

.account-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 0;
}

.account-header .eyebrow {
  margin: 0 0 9px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.account-header h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 42px;
}

.account-header__identity {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted-strong);
}

.account-header__identity > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-header__identity strong {
  font-size: 12px;
  font-weight: 650;
}

.account-header__identity small {
  color: var(--muted);
  font-size: 11px;
}

.account-layout {
  display: grid;
  grid-template-columns: 217px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  padding-top: 64px;
}

.account-tabs {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 756px;
  padding-right: 17px;
  border-right: 1px solid rgba(142, 135, 122, 0.2);
}

.account-tabs button {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  color: #73746f;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 570;
  text-align: left;
  transition: color 140ms ease, background 140ms ease;
}

.account-tab-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #87877f;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-row-icon::before,
.account-row-icon::after {
  position: absolute;
  display: block;
  box-sizing: border-box;
  content: "";
}

.account-row-icon--card::before {
  top: 4px;
  left: 2px;
  width: 19px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.account-row-icon--card::after {
  top: 9px;
  left: 4px;
  width: 15px;
  height: 2px;
  background: currentColor;
}

.account-row-icon--history::before {
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
}

.account-row-icon--history::after {
  top: 2px;
  left: 0;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.account-row-icon--shield::before {
  top: 1px;
  left: 3px;
  width: 18px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 7px 7px 10px 10px;
  clip-path: polygon(50% 0, 100% 19%, 92% 72%, 50% 100%, 8% 72%, 0 19%);
}

.account-row-icon--mail::before {
  top: 4px;
  left: 1px;
  width: 21px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background:
    linear-gradient(35deg, transparent 47%, currentColor 48% 53%, transparent 54%) left top / 50% 75% no-repeat,
    linear-gradient(-35deg, transparent 47%, currentColor 48% 53%, transparent 54%) right top / 50% 75% no-repeat;
}

.account-tabs button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.account-tabs button.is-selected {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 2px rgba(39, 36, 29, 0.06), 0 6px 18px rgba(39, 36, 29, 0.04);
  font-weight: 680;
}

.account-tabs button.is-selected .account-tab-icon {
  color: var(--orange-dark);
}

.account-tabs button.is-selected::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--orange);
  content: "";
}

.account-section__heading {
  margin-bottom: 21px;
}

.account-section__heading h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 730;
  letter-spacing: -0.035em;
}

.account-section__heading .account-panel__eyebrow {
  margin-bottom: 7px;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.98fr 0.96fr;
  gap: 16px;
  margin-bottom: 23px;
}

.account-summary-card,
.account-panel,
.account-wide-card {
  border: 1px solid rgba(142, 135, 122, 0.23);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.77);
  box-shadow: var(--shadow-sm);
}

.account-summary-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
  min-height: 153px;
  padding: 20px 24px;
}

.account-summary-card__visual {
  grid-column: 1;
  grid-row: auto;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
}

.account-summary-card__visual .mini-voxel {
  width: 56px;
  height: 56px;
}

.account-calendar-icon {
  position: relative;
  border: 1px solid rgba(132, 127, 117, 0.18);
  border-radius: 13px;
  background: #f0efea;
}

.account-calendar-icon::before {
  position: absolute;
  top: 17px;
  left: 17px;
  display: block;
  width: 25px;
  height: 23px;
  border: 2px solid #797a74;
  border-radius: 5px;
  content: "";
}

.account-calendar-icon::after {
  position: absolute;
  top: 26px;
  left: 21px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #797a74;
  box-shadow: 0 6px 0 rgba(121, 122, 116, 0.7);
  content: "";
}

.account-summary-card--credits {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(142, 135, 122, 0.23);
}

.account-summary-card--renewal {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(142, 135, 122, 0.23);
}

.account-summary-card__body {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  min-width: 0;
}

.account-summary-card__body > strong {
  color: #20221f;
  font-size: 18px;
  font-weight: 730;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.account-summary-card__value {
  color: #73756f;
  font-size: 18px;
  line-height: 1;
}

.account-card__label,
.account-panel__eyebrow {
  display: block;
  color: #8b8a83;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.account-summary-card > strong {
  display: block;
  margin-top: 12px;
  color: #20221f;
  font-size: 22px;
  font-weight: 730;
  letter-spacing: -0.035em;
}

.account-summary-card--renewal > strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.account-card__detail {
  display: block;
  margin-top: 4px;
  color: #777871;
  font-size: 11px;
}

.account-summary-card button,
.account-link-button,
.account-policy-list button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  padding: 0;
  border: 0;
  color: var(--orange-dark);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 680;
  text-decoration: none;
}

.account-summary-button {
  min-height: 43px;
  min-width: 146px;
  padding: 0 23px !important;
  border: 1px solid rgba(126, 119, 108, 0.35) !important;
  border-radius: 8px;
  color: #555852 !important;
  background: rgba(255, 255, 255, 0.84) !important;
  font-size: 13px !important;
  font-weight: 680 !important;
  text-decoration: none !important;
}

.account-summary-button--accent {
  min-width: 125px;
  border-color: rgba(210, 91, 39, 0.4) !important;
  color: #fff !important;
  background: var(--orange-cta) !important;
  box-shadow: 0 6px 13px rgba(194, 77, 27, 0.16);
}

.account-summary-button:hover,
.account-summary-button:focus-visible {
  border-color: var(--orange) !important;
  transform: translateY(-1px);
}

.account-summary-button--accent:hover,
.account-summary-button--accent:focus-visible {
  background: var(--orange-cta-hover) !important;
  color: #fff !important;
}

.account-summary-card button:hover,
.account-link-button:hover,
.account-policy-list button:hover {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 20px;
  margin-bottom: 24px;
}

.account-overview-grid .account-panel {
  min-height: 0;
}

.account-overview-grid--lower .account-panel {
  min-height: 245px;
}

.account-overview-grid--lower {
  margin-bottom: 0;
}

.account-panel {
  padding: 21px;
}

.account-panel--billing {
  padding-bottom: 14px;
}

.account-overview-grid--lower .account-panel__heading {
  margin-bottom: 11px;
}

.account-panel--billing .account-panel__heading,
.account-panel--refund .account-panel__heading {
  margin-bottom: 18px;
}

.account-skeleton-list {
  overflow: hidden;
  border: 1px solid rgba(142, 135, 122, 0.18);
  border-radius: 10px;
}

.account-skeleton-row {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 57px;
  padding: 0 12px;
  border: 0;
  border-top: 1px solid rgba(142, 135, 122, 0.16);
  color: #74756f;
  background: transparent;
  cursor: pointer;
}

.account-skeleton-row:first-child {
  border-top: 0;
}

.account-skeleton-row:hover,
.account-skeleton-row:focus-visible {
  background: rgba(246, 244, 239, 0.72);
}

.account-row-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  color: #777972;
  font-size: 20px;
  line-height: 1;
}

.account-row-icon--document::before {
  top: 1px;
  left: 5px;
  width: 15px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.account-row-icon--document::after {
  top: 6px;
  left: 9px;
  width: 7px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

.account-row-icon--download::before {
  top: 1px;
  left: 11px;
  width: 2px;
  height: 14px;
  background: currentColor;
  box-shadow: -7px 18px 0 0 currentColor, -3px 18px 0 0 currentColor, 1px 18px 0 0 currentColor, 5px 18px 0 0 currentColor;
}

.account-row-icon--download::after {
  top: 7px;
  left: 7px;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.account-skeleton-bar {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: #e6e5e2;
}

.account-skeleton-bar--long { width: 72%; }
.account-skeleton-bar--medium { width: 52%; }
.account-skeleton-bar--short { width: 41%; }

.account-row-arrow {
  color: #686a65;
  font-size: 26px;
  font-weight: 350;
  line-height: 1;
}

.account-panel__heading,
.account-wide-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

.account-panel h3,
.account-wide-card h3 {
  margin: 5px 0 0;
  color: #242622;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.account-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border: 1px solid rgba(99, 126, 59, 0.25);
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 700;
}

.account-status--muted {
  border-color: rgba(117, 117, 108, 0.23);
  color: #6d6e68;
  background: #f1f0ec;
}

.account-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid rgba(142, 135, 122, 0.15);
  color: var(--muted);
  font-size: 12px;
}

.account-detail-row strong {
  color: #373934;
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

.account-panel > .account-link-button {
  margin-top: 15px;
}

.account-panel p,
.account-wide-card p {
  margin: 9px 0 0;
  color: #74756f;
  font-size: 12px;
  line-height: 1.55;
}

.account-panel--refund {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.8);
}

.account-panel--contact {
  background: rgba(255, 255, 255, 0.8);
}

.account-refund-button {
  align-self: flex-start;
  margin-top: auto;
  min-height: 45px;
  min-width: 180px;
  padding: 0 25px;
  font-size: 14px;
}

.account-contact-row {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 7px;
  color: #656761;
  font-size: 14px;
  text-decoration: none;
}

.account-contact-row:hover {
  color: var(--orange-dark);
}

.account-panel__symbol {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--orange);
  background: var(--orange-soft);
  font-size: 14px;
  font-weight: 700;
}

.account-policy-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3px;
  overflow: hidden;
  border: 1px solid rgba(142, 135, 122, 0.18);
  border-radius: 10px;
}

.account-policy-list button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 8px 13px;
  border-top: 1px solid rgba(142, 135, 122, 0.15);
  color: #4f514c;
  font-weight: 570;
  text-align: left;
}

.account-policy-list button:first-child {
  border-top: 0;
}

.account-policy-list button .account-row-icon {
  font-size: 21px;
}

.account-wide-card {
  margin-bottom: 14px;
  padding: 23px;
}

.account-wide-card__heading {
  margin-bottom: 19px;
}

.account-wide-card__heading h3 {
  margin-top: 7px;
  font-size: 22px;
}

.account-wide-card__heading p {
  margin-top: 6px;
}

.account-wide-card--muted {
  min-height: 86px;
  background: rgba(255, 255, 255, 0.56);
}

.account-wide-card--muted p {
  margin-top: 8px;
}

.account-credit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 164px;
  background: linear-gradient(145deg, rgba(247, 251, 239, 0.96), rgba(255, 255, 255, 0.76));
  border-color: rgba(108, 135, 73, 0.28);
}

.account-credit-card strong {
  display: block;
  margin-top: 11px;
  color: var(--green-dark);
  font-size: 34px;
  letter-spacing: -0.05em;
}

.account-credit-orbit,
.account-refund-card__mark,
.account-contact-card__avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: var(--orange);
  background: var(--orange-soft);
  font-size: 24px;
  font-weight: 740;
}

.account-refund-card,
.account-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 184px;
  background: linear-gradient(145deg, rgba(255, 249, 243, 0.94), rgba(255, 255, 255, 0.78));
}

.account-refund-card h3,
.account-contact-card h3 {
  margin: 0;
  font-size: 21px;
}

.primary-account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(204, 91, 41, 0.2);
  border-radius: 7px;
  color: #fff;
  background: var(--orange-cta);
  box-shadow: 0 6px 14px rgba(194, 77, 27, 0.18);
  font-size: 12px;
  font-weight: 680;
  text-decoration: none;
}

.primary-account-button:hover {
  background: var(--orange-cta-hover);
}

.account-policy-cards {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.account-policy-cards button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 76px;
  padding: 16px 18px;
  border: 1px solid rgba(142, 135, 122, 0.23);
  border-radius: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.77);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
}

.account-policy-cards button:hover {
  border-color: rgba(232, 119, 63, 0.38);
  transform: translateY(-1px);
}

.account-policy-cards button > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.account-policy-cards strong {
  font-size: 14px;
  font-weight: 680;
}

.account-policy-cards small {
  color: var(--muted);
  font-size: 11px;
}

.account-policy-cards button > span:last-child {
  color: var(--orange-dark);
  font-size: 18px;
}

@media (max-width: 1320px) {
  .main__inner:has(> .account-view:not([hidden])) {
    padding-right: 30px;
    padding-left: 30px;
  }

  .account-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
  }

  .account-tabs {
    padding-right: 12px;
  }

  .account-summary-card {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 12px;
    padding: 16px;
  }

  .account-summary-card__visual {
    width: 50px;
    height: 50px;
  }

  .account-summary-card__visual .mini-voxel {
    width: 48px;
    height: 48px;
  }

  .account-calendar-icon::before {
    top: 11px;
    left: 11px;
  }

  .account-calendar-icon::after {
    top: 20px;
    left: 15px;
  }
}

@media (max-width: 1100px) {
  .account-summary-grid,
  .account-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar__bottom {
    padding: 18px 17px 12px;
  }

  .main__inner:has(> .account-view:not([hidden])) {
    width: 100%;
    padding-top: 87px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .account-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .main__inner:has(> .account-view:not([hidden])) {
    padding-right: 15px;
    padding-left: 15px;
  }

  .account-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    padding-bottom: 24px;
  }

  .account-layout {
    display: block;
    padding-top: 22px;
  }

  .account-tabs {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 26px;
    min-height: 0;
    padding-right: 0;
    border-right: 0;
  }

  .account-tabs button {
    min-height: 37px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .account-tabs button.is-selected::before {
    top: 9px;
    bottom: 9px;
  }

  .account-summary-grid,
  .account-overview-grid {
    grid-template-columns: 1fr;
  }

  .account-summary-card {
    min-height: 134px;
  }
}

@media (max-width: 420px) {
  .account-header__identity strong {
    max-width: 225px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-panel,
  .account-wide-card {
    padding: 17px;
  }

  .account-detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .account-detail-row strong {
    text-align: left;
  }

  .account-credit-card,
  .account-refund-card,
  .account-contact-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .conversation-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .conversation-shell .activity-stream {
    min-height: 390px;
    max-height: min(58dvh, 540px);
    padding: 19px 14px 24px;
  }

  .user-message__bubble {
    max-width: 88%;
  }

  .conversation-shell .activity-item__bubble,
  .conversation-shell .activity-item[data-activity-type="note"] .activity-item__bubble,
  .conversation-shell .activity-item[data-activity-type="command"] .activity-item__bubble {
    max-width: 91%;
  }
}

@media (max-width: 520px) {
  .conversation-shell {
    border-radius: 10px;
  }

  .conversation-header {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 65px;
    padding: 9px 12px;
  }

  .conversation-avatar {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .conversation-shell .activity-stream {
    min-height: 410px;
    max-height: 60dvh;
    padding: 17px 10px 22px;
  }

  .user-message {
    margin-bottom: 20px;
  }

  .user-message__bubble {
    max-width: 92%;
    padding: 10px 12px;
  }

  .user-message__bubble p {
    font-size: 12px;
  }

  .conversation-shell .activity-item {
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 8px;
  }

  .conversation-shell .activity-item__mark {
    width: 31px;
    height: 31px;
  }

  .conversation-shell .activity-item__bubble,
  .conversation-shell .activity-item[data-activity-type="note"] .activity-item__bubble,
  .conversation-shell .activity-item[data-activity-type="command"] .activity-item__bubble {
    max-width: 94%;
  }

  .conversation-shell .failure-card,
  .conversation-shell .artifact-card {
    margin-right: 10px;
    margin-left: 10px;
  }

  .conversation-shell .conversation-attachments .artifact-card,
  .conversation-shell .conversation-attachments .failure-card {
    width: calc(100% - 34px);
    max-width: none;
    margin-right: 0;
    margin-left: 34px;
  }

  .conversation-shell .conversation-attachments .artifact-card {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Authentication surface */
.auth-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(23, 25, 24, .58);
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 456px);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 38px 42px 30px;
  border: 1px solid rgba(206, 203, 193, .78);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  box-shadow: 0 26px 80px rgba(22, 21, 19, .26);
}

.auth-card__close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.66);
  cursor: pointer;
}
.auth-card__close span { position: absolute; top: 14px; left: 8px; width: 14px; height: 1.5px; border-radius: 2px; background: var(--muted-strong); transform: rotate(45deg); }
.auth-card__close span + span { transform: rotate(-45deg); }
.auth-card__close:hover { background: #fff; border-color: var(--line-strong); }

.auth-card__intro { max-width: 330px; }
.auth-card__mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border-radius: 11px; background: var(--sidebar); box-shadow: 0 8px 18px rgba(32,34,33,.18); }
.auth-card__mark img { width: 28px; height: 28px; object-fit: contain; }
.auth-card__intro .eyebrow { margin: 0 0 8px; color: var(--orange-dark); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.auth-card__intro h2 { margin: 0; color: var(--ink); font-size: 29px; font-weight: 770; letter-spacing: -.05em; line-height: 1.12; }
.auth-card__intro > p:last-child { margin: 9px 0 0; color: var(--muted-strong); font-size: 13px; line-height: 1.5; }

.auth-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 28px 0 20px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: rgba(242,239,233,.72); }
.auth-mode-switch button { min-height: 37px; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; color: var(--muted-strong); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.auth-mode-switch button[aria-selected="true"] { border-color: rgba(232,119,63,.28); color: var(--orange-dark); background: #fff; box-shadow: 0 3px 9px rgba(65,58,47,.08); }

.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 7px; }
.auth-field label { color: var(--ink); font-size: 12px; font-weight: 720; }
.auth-field input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; color: var(--ink); background: rgba(255,255,255,.82); font-size: 13px; transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease; }
.auth-field input::placeholder { color: #aaa79e; }
.auth-field input:focus { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 3px rgba(232,119,63,.14); }
.auth-field input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179,77,63,.10); }
.auth-field__error, .auth-form__error { min-height: 0; margin: 0; color: var(--red); font-size: 11px; line-height: 1.35; }
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 58px; }
.auth-password-toggle { position: absolute; top: 50%; right: 8px; min-width: 42px; padding: 5px; border: 0; color: var(--orange-dark); background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; transform: translateY(-50%); }
.auth-password-toggle:hover { color: var(--ink); }
.auth-form__error { min-height: 16px; }
.auth-submit-button, .auth-google-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 760; transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease; }
.auth-submit-button { gap: 10px; border: 1px solid var(--orange-cta); color: #fff; background: var(--orange-cta); box-shadow: 0 8px 17px rgba(200,92,42,.18); }
.auth-submit-button:hover { background: var(--orange-cta-hover); transform: translateY(-1px); }
.auth-submit-button:disabled { cursor: wait; opacity: .62; transform: none; }
.auth-submit-button__arrow { font-size: 18px; font-weight: 450; line-height: 1; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 21px 0 13px; color: var(--muted); font-size: 10px; }
.auth-divider::before, .auth-divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.auth-google-button { position: relative; min-height: 44px; padding: 0 42px; border: 1px solid #747775; color: #1f1f1f; background: #fff; font-family: Roboto, Arial, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .01px; }
.auth-google-button:hover:not(:disabled) { border-color: #747775; background: #f8faff; box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15); transform: none; }
.auth-google-button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.auth-google-mark { position: absolute; top: 50%; left: 12px; display: grid; place-items: center; width: 20px; height: 20px; transform: translateY(-50%); }
.auth-google-mark img { display: block; width: 18px; height: 18px; }
.auth-card__fineprint { margin: 18px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; text-align: center; }
.auth-card__fineprint a { color: var(--orange-dark); font-weight: 700; }
body.auth-open { overflow: hidden; }

.account-header__actions { display: flex; align-items: center; gap: 16px; }
.account-logout-button { min-height: 34px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--muted-strong); background: rgba(255,255,255,.68); cursor: pointer; font-size: 11px; font-weight: 740; }
.account-logout-button:hover { border-color: var(--orange); color: var(--orange-dark); background: #fff; }
.account-avatar { display: inline-block; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid rgba(232,119,63,.3); border-radius: 50%; background: radial-gradient(circle at 50% 36%, #efc1a2 0 22%, transparent 23%), radial-gradient(circle at 50% 100%, #e8773f 0 39%, transparent 40%), #fff0e7; }
.account-avatar--small { flex-basis: 30px; width: 30px; height: 30px; }

@media (max-width: 520px) {
  .auth-modal { padding: 12px; align-items: end; }
  .auth-card { max-height: calc(100vh - 24px); padding: 32px 22px 24px; border-radius: 15px; }
  .auth-card__close { top: 12px; right: 12px; }
  .account-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .account-header__actions { width: 100%; justify-content: space-between; }
}

/* Voxel faces: three hard-edged planes keep every block readable at small sizes. */
.voxel {
  --voxel-top: #d7d1c4;
  --voxel-left: #77766f;
  --voxel-right: #b7734e;
  filter: drop-shadow(0 5px 2px rgba(0, 0, 0, 0.2));
  image-rendering: pixelated;
}

.voxel > span {
  overflow: hidden;
  background-color: var(--voxel-right);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 12%, transparent 12% 55%, rgba(0, 0, 0, 0.12) 55% 63%, transparent 63%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 10%, transparent 10% 48%, rgba(255, 255, 255, 0.06) 48% 55%, transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(25, 24, 21, 0.22);
}

.voxel .voxel__top {
  top: 0;
  left: 7%;
  width: 86%;
  height: 45%;
  background-color: var(--voxel-top);
  background-image:
    linear-gradient(30deg, transparent 47%, rgba(44, 43, 39, 0.17) 48% 51%, transparent 52%),
    linear-gradient(-30deg, transparent 47%, rgba(44, 43, 39, 0.13) 48% 51%, transparent 52%),
    repeating-linear-gradient(90deg, transparent 0 24%, rgba(255, 255, 255, 0.09) 24% 27%, transparent 27% 49%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  z-index: 3;
}

.voxel .voxel__left {
  top: 38%;
  left: 7%;
  width: 43%;
  height: 60%;
  background-color: var(--voxel-left);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 22%, rgba(0, 0, 0, 0.13) 22% 25%, transparent 25% 49%),
    repeating-linear-gradient(90deg, transparent 0 44%, rgba(255, 255, 255, 0.07) 44% 48%, transparent 48% 76%);
  clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 80%);
  z-index: 2;
}

.voxel .voxel__right {
  top: 38%;
  right: 7%;
  width: 43%;
  height: 60%;
  background-color: var(--voxel-right);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 22%, rgba(0, 0, 0, 0.16) 22% 25%, transparent 25% 49%),
    repeating-linear-gradient(90deg, transparent 0 42%, rgba(255, 255, 255, 0.06) 42% 47%, transparent 47% 75%);
  clip-path: polygon(0 20%, 100% 0, 100% 80%, 0 100%);
  z-index: 1;
}

.voxel--hero {
  --voxel-top: #8eaf5a;
  --voxel-left: #745335;
  --voxel-right: #9a6a40;
}

.voxel--hero .voxel__top {
  background-image:
    linear-gradient(28deg, transparent 47%, rgba(44, 72, 27, 0.22) 48% 51%, transparent 52%),
    linear-gradient(-28deg, transparent 47%, rgba(44, 72, 27, 0.18) 48% 51%, transparent 52%),
    repeating-linear-gradient(90deg, transparent 0 23%, rgba(255, 255, 255, 0.1) 23% 27%, transparent 27% 51%);
}

.mini-voxel {
  --mini-top: #8eaf5a;
  --mini-left: #745335;
  --mini-right: #9a6a40;
  position: relative;
  width: 34px;
  height: 34px;
  border: 0;
  background-color: var(--mini-right);
  background-image: repeating-linear-gradient(0deg, transparent 0 25%, rgba(0, 0, 0, 0.16) 25% 30%, transparent 30% 52%);
  box-shadow: none;
  transform: none;
  filter: drop-shadow(0 4px 1px rgba(0, 0, 0, 0.18));
  image-rendering: pixelated;
  clip-path: polygon(50% 50%, 100% 25%, 100% 75%, 50% 100%);
}

.mini-voxel::before,
.mini-voxel::after {
  position: absolute;
  display: block;
  content: "";
  pointer-events: none;
}

.mini-voxel::before {
  inset: 0;
  background-color: var(--mini-top);
  background-image:
    linear-gradient(30deg, transparent 46%, rgba(40, 62, 25, 0.2) 47% 52%, transparent 53%),
    linear-gradient(-30deg, transparent 46%, rgba(40, 62, 25, 0.15) 47% 52%, transparent 53%);
  clip-path: polygon(50% 0, 100% 25%, 50% 50%, 0 25%);
}

.mini-voxel::after {
  inset: 0;
  background-color: var(--mini-left);
  background-image: repeating-linear-gradient(0deg, transparent 0 25%, rgba(0, 0, 0, 0.13) 25% 30%, transparent 30% 52%);
  clip-path: polygon(0 25%, 50% 50%, 50% 100%, 0 75%);
}

.mini-voxel--gold {
  --mini-top: #e0ae48;
  --mini-left: #9b6a2b;
  --mini-right: #bd8530;
}

.mini-voxel--blue {
  --mini-top: #79a8bb;
  --mini-left: #526c79;
  --mini-right: #668897;
}

.mini-voxel--stone {
  --mini-top: #d5d0c5;
  --mini-left: #767871;
  --mini-right: #a06b4b;
}

.mini-voxel--red {
  --mini-top: #cf7252;
  --mini-left: #863d2e;
  --mini-right: #a84d35;
}

/* Sidebar/thumb cubes use real child planes so the top face is not clipped by the side face. */
.mini-voxel {
  overflow: visible;
  background: transparent;
  clip-path: none;
}

.mini-voxel::before,
.mini-voxel::after {
  display: none;
}

.mini-voxel > span {
  position: absolute;
  inset: 0;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(28, 26, 22, 0.2);
}

.mini-voxel__top {
  background-color: var(--mini-top);
  background-image:
    linear-gradient(30deg, transparent 46%, rgba(39, 57, 25, 0.22) 47% 52%, transparent 53%),
    linear-gradient(-30deg, transparent 46%, rgba(39, 57, 25, 0.15) 47% 52%, transparent 53%);
  clip-path: polygon(50% 0, 100% 25%, 50% 50%, 0 25%);
  z-index: 3;
}

.mini-voxel__left {
  background-color: var(--mini-left);
  background-image: repeating-linear-gradient(0deg, transparent 0 25%, rgba(0, 0, 0, 0.14) 25% 30%, transparent 30% 52%);
  clip-path: polygon(0 25%, 50% 50%, 50% 100%, 0 75%);
  z-index: 2;
}

.mini-voxel__right {
  background-color: var(--mini-right);
  background-image: repeating-linear-gradient(0deg, transparent 0 25%, rgba(0, 0, 0, 0.17) 25% 30%, transparent 30% 52%);
  clip-path: polygon(50% 50%, 100% 25%, 100% 75%, 50% 100%);
  z-index: 1;
}

/* Supplied transparent marks keep the identity consistent at every breakpoint. */
.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
}

.brand {
  letter-spacing: -0.025em;
  text-transform: none;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: "Segoe UI Variable Display", "Avenir Next", "Trebuchet MS", sans-serif;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.brand-wordmark__domain {
  color: #f3a174;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.brand-mark img,
.arrow-mark img,
.spark-mark img,
.activity-empty__mark img,
.conversation-avatar img,
.swizie-avatar,
.send-button .send-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.brand--mobile .brand-mark {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
}

.arrow-mark {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  font-size: 0;
  line-height: 1;
}

.spark-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 0;
  line-height: 1;
  transform: translateY(3px);
}

.spark-mark--small {
  width: 22px;
  height: 22px;
  transform: none;
}

.activity-empty__mark {
  overflow: hidden;
}

.conversation-avatar {
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.activity-item__mark {
  overflow: hidden;
}

.conversation-shell .activity-item__mark {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.activity-item__mark .swizie-avatar {
  width: 100%;
  height: 100%;
}

.send-button > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 0;
  transform: none;
}

/* The conversation is the workspace: keep its composer anchored while the message log scrolls. */
.main__inner {
  width: 100%;
  max-width: none;
}

.job-view {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 112px);
  min-height: 0;
  padding-bottom: 0;
}

.conversation-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.conversation-shell .activity-stream {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.sidebar-close {
  display: none;
}

@media (max-width: 900px) {
  .sidebar {
    visibility: hidden;
    overscroll-behavior: contain;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 220ms;
  }

  body.sidebar-open .sidebar {
    visibility: visible;
    transition-delay: 0s;
  }

  .sidebar-scrim {
    visibility: hidden;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
  }

  body.sidebar-open .sidebar-scrim {
    visibility: visible;
    transition-delay: 0s;
  }

  .sidebar-close {
    position: absolute;
    z-index: 2;
    top: 13px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }

  .sidebar-close > span {
    position: absolute;
    width: 17px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
  }

  .sidebar-close > span:first-child {
    transform: rotate(45deg);
  }

  .sidebar-close > span:last-child {
    transform: rotate(-45deg);
  }

  .job-view {
    height: calc(100dvh - 116px);
    min-height: 0;
  }

  .conversation-shell {
    height: 100%;
    min-height: 0;
  }
}

/* Full-pane conversation layout: messages use the available workspace, while
   only user messages retain a conversational bubble. */
.main__inner:has(> .job-view:not([hidden])) {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  height: 100vh;
  padding: 0;
}

.main__inner:has(> .job-view:not([hidden])) .job-view {
  height: 100%;
  min-height: 0;
}

.main__inner:has(> .job-view:not([hidden])) .conversation-shell {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.main__inner:has(> .job-view:not([hidden])) .conversation-header {
  flex: 0 0 auto;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(251, 250, 247, 0.96);
}

.main__inner:has(> .job-view:not([hidden])) .conversation-shell .activity-stream {
  min-width: 0;
  padding: 28px clamp(18px, 7vw, 96px) 34px;
  background:
    linear-gradient(180deg, rgba(250, 249, 246, 0.42), rgba(247, 245, 240, 0.7)),
    linear-gradient(rgba(96, 89, 75, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 89, 75, 0.025) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

.main__inner:has(> .job-view:not([hidden])) .activity-item {
  width: 100%;
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr);
}

.main__inner:has(> .job-view:not([hidden])) .activity-item__bubble,
.main__inner:has(> .job-view:not([hidden])) .activity-item[data-activity-type="note"] .activity-item__bubble,
.main__inner:has(> .job-view:not([hidden])) .activity-item[data-activity-type="file"] .activity-item__bubble,
.main__inner:has(> .job-view:not([hidden])) .activity-item[data-activity-type="command"] .activity-item__bubble,
.main__inner:has(> .job-view:not([hidden])) .activity-item[data-activity-type="build"] .activity-item__bubble,
.main__inner:has(> .job-view:not([hidden])) .activity-item[data-activity-type="status"] .activity-item__bubble,
.main__inner:has(> .job-view:not([hidden])) .activity-item.is-failed .activity-item__bubble {
  width: auto;
  min-width: 0;
  max-width: min(100%, 780px);
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.main__inner:has(> .job-view:not([hidden])) .activity-item__message,
.main__inner:has(> .job-view:not([hidden])) .activity-item__detail,
.main__inner:has(> .job-view:not([hidden])) .activity-item__path,
.main__inner:has(> .job-view:not([hidden])) .activity-item__command,
.main__inner:has(> .job-view:not([hidden])) .activity-item__output {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.main__inner:has(> .job-view:not([hidden])) .activity-item__message {
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.62;
}

.main__inner:has(> .job-view:not([hidden])) .user-message {
  width: 100%;
  min-width: 0;
}

.main__inner:has(> .job-view:not([hidden])) .user-message__bubble {
  min-width: 0;
  max-width: min(82%, 780px);
}

.main__inner:has(> .job-view:not([hidden])) .user-message__bubble p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.main__inner:has(> .job-view:not([hidden])) .conversation-shell .conversation-attachments .artifact-card,
.main__inner:has(> .job-view:not([hidden])) .conversation-shell .conversation-attachments .failure-card {
  width: min(78%, 720px);
  max-width: 720px;
}

.main__inner:has(> .job-view:not([hidden])) .conversation-shell .composer--change {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 12px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: rgba(253, 252, 249, 0.98);
}

.main__inner:has(> .job-view:not([hidden])) .conversation-shell .composer--change textarea {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  height: auto;
  max-height: min(28dvh, 260px);
  overflow-y: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 900px) {
  .main__inner:has(> .job-view:not([hidden])) {
    min-height: 100dvh;
    height: 100dvh;
    padding: 63px 0 0;
  }

  .main__inner:has(> .job-view:not([hidden])) .job-view {
    height: calc(100dvh - 63px);
  }

  .main__inner:has(> .job-view:not([hidden])) .conversation-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .main__inner:has(> .job-view:not([hidden])) .conversation-shell .activity-stream {
    padding: 22px 14px 28px;
  }

  .main__inner:has(> .job-view:not([hidden])) .user-message__bubble {
    max-width: min(92%, 780px);
  }

  .main__inner:has(> .job-view:not([hidden])) .conversation-shell .conversation-attachments .artifact-card,
  .main__inner:has(> .job-view:not([hidden])) .conversation-shell .conversation-attachments .failure-card {
    width: calc(100% - 34px);
    max-width: none;
  }

  .main__inner:has(> .job-view:not([hidden])) .conversation-shell .composer--change {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 520px) {
  .main__inner:has(> .job-view:not([hidden])) .conversation-header {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 65px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .main__inner:has(> .job-view:not([hidden])) .conversation-shell .activity-stream {
    padding: 18px 10px 24px;
  }

  .main__inner:has(> .job-view:not([hidden])) .activity-item {
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 8px;
  }

  .main__inner:has(> .job-view:not([hidden])) .activity-item__message {
    font-size: 14px;
  }

  .main__inner:has(> .job-view:not([hidden])) .user-message__bubble {
    max-width: 94%;
  }
}

/* Compact account dashboard */
.main__inner:has(> .account-view:not([hidden])) {
  width: min(100%, 1220px);
  max-width: 1220px;
  margin: 0 auto;
  padding: 38px 34px 58px;
}

.account-view {
  width: 100%;
  padding-bottom: 8px;
}

.account-header {
  min-height: 0;
  padding: 0 0 26px;
}

.account-header h1 {
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.account-layout {
  display: block;
  padding-top: 0;
}

.account-tabs {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  width: min(100%, 720px);
  min-height: 0;
  margin: 0 auto 28px;
  padding: 0 6px;
  gap: 12px;
  overflow: visible;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.account-tabs::-webkit-scrollbar { display: none; }

.account-tabs button {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 13px 20px;
  border-radius: 10px 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
  white-space: nowrap;
}

.account-tabs button:hover,
.account-tabs button.is-selected {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.account-tabs button.is-selected { font-weight: 740; }

.account-tabs button.is-selected::before {
  top: auto;
  right: 18px;
  bottom: -1px;
  left: 18px;
  width: auto;
  height: 3px;
  border-radius: 2px 2px 0 0;
}

.account-tabs button.is-selected .account-tab-icon { color: var(--orange); }

.account-tab-icon {
  width: 18px;
  height: 18px;
  transform: none;
  transform-origin: center;
}

.account-content { min-width: 0; }

.account-summary-grid--metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.account-metric-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 107px;
  padding: 17px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .68);
}

.account-metric-card > div { min-width: 0; }

.account-metric-card strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-metric-card small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-metric-card__art {
  width: 45px;
  height: 45px;
}

.account-art-image {
  display: block;
  object-fit: contain;
}

.account-card__label {
  display: block;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.15;
}

.account-art {
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 3px 2px rgba(44, 38, 30, .15));
  image-rendering: pixelated;
}

.account-art::before,
.account-art::after {
  position: absolute;
  display: block;
  content: "";
}

/* Original voxel-inspired artwork, kept CSS-native so no remote asset is required. */
.account-art--grass::before,
.account-art--command::before,
.account-art--furnace::before {
  top: 3%;
  left: 8%;
  width: 84%;
  height: 43%;
  clip-path: polygon(50% 0, 100% 49%, 50% 100%, 0 49%);
  background: #75a947;
}

.account-art--grass::after,
.account-art--command::after,
.account-art--furnace::after {
  top: 39%;
  left: 8%;
  width: 42%;
  height: 55%;
  clip-path: polygon(0 0, 100% 18%, 100% 100%, 0 82%);
  background: #8c603c;
}

.account-art--grass { background: linear-gradient(30deg, transparent 0 48%, #54852f 49% 51%, transparent 52%) 4px 3px / 30px 22px no-repeat; }
.account-art--grass::before { background: #75a947; }
.account-art--grass::after { background: #875b3b; }

.account-art--command::before { background: #d8783f; box-shadow: inset 0 -7px 0 rgba(103, 45, 27, .16); }
.account-art--command::after { background: #aa5431; }

.account-art--furnace::before { background: #c7c3b7; box-shadow: inset -5px -4px 0 rgba(63, 61, 58, .13); }
.account-art--furnace::after { background: #6c6b65; }

.account-art--clock {
  width: 45px;
  height: 45px;
  border: 4px solid #c5a348;
  border-radius: 50%;
  background: #f5e7ad;
  box-shadow: inset 0 0 0 3px #e9ca63;
}

.account-art--clock::before {
  top: 8px;
  left: 19px;
  width: 3px;
  height: 14px;
  background: #6f5a2b;
  transform: rotate(28deg);
  transform-origin: bottom center;
}

.account-art--clock::after {
  top: 21px;
  left: 20px;
  width: 9px;
  height: 3px;
  background: #6f5a2b;
  transform: rotate(12deg);
  transform-origin: left center;
}

.account-overview-grid--analytics {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(265px, .9fr);
  gap: 14px;
  margin-bottom: 14px;
  align-items: stretch;
}

.account-panel {
  min-width: 0;
  border-color: var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .68);
  box-shadow: none;
}

.account-panel__heading {
  align-items: flex-start;
  margin-bottom: 17px;
}

.account-panel__heading h3 { font-size: 15px; letter-spacing: -0.02em; }
.account-panel__meta { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.account-panel__total { color: var(--ink); font-size: 14px; font-weight: 740; }

.account-panel--chart { display: flex; min-height: 0; flex-direction: column; padding: 18px 19px 14px; }

.account-chart {
  position: relative;
  height: 145px;
  padding: 9px 2px 24px;
}


.account-analytics-stack { display: grid; grid-template-rows: auto auto; align-content: start; gap: 14px; min-width: 0; }
.account-panel--task, .account-panel--breakdown { min-height: 107px; padding: 17px 18px; }
.account-panel--task .account-panel__heading, .account-panel--breakdown .account-panel__heading { margin-bottom: 10px; }
.account-task-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.account-task-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted-strong); font-size: 11px; }
.account-task-row strong { color: var(--ink); font-size: 12px; font-weight: 740; }

.account-breakdown { display: flex; align-items: center; gap: 18px; }
.account-breakdown__ring { display: grid; place-items: center; flex: 0 0 57px; width: 57px; height: 57px; border-radius: 50%; background: conic-gradient(var(--orange) 0 62%, #e8e3d8 62% 100%); }
.account-breakdown__ring::before { grid-area: 1 / 1; width: 43px; height: 43px; border-radius: 50%; background: var(--paper); content: ""; }
.account-breakdown__ring span { z-index: 1; grid-area: 1 / 1; color: var(--ink); font-size: 11px; font-weight: 740; }
.account-breakdown__legend { display: grid; gap: 8px; min-width: 0; }
.account-breakdown__legend > div { display: grid; grid-template-columns: 8px minmax(45px, 1fr) auto; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.account-breakdown__legend strong { color: var(--ink); font-size: 11px; }
.account-breakdown__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.account-breakdown__dot--output { background: #d8d1c3; }

.account-panel--activity { padding: 17px 19px 7px; }
.account-text-button { padding: 2px 0; border: 0; color: var(--orange-dark); background: none; cursor: pointer; font-size: 11px; font-weight: 700; }
.account-text-button:hover { color: var(--ink); }
.account-activity-list { display: grid; }
.account-activity-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 55px; border-top: 1px solid rgba(142, 135, 122, .16); }
.account-activity__art { width: 30px; height: 30px; }
.account-activity__copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.account-activity__copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-activity__copy span { color: var(--muted); font-size: 10px; }
.account-activity__status { color: var(--green-dark); font-size: 10px; font-weight: 700; }
.account-activity__status--failed { color: var(--red); }
.account-activity__status--running { color: var(--orange-dark); }
.account-activity-empty { padding: 16px 0; color: var(--muted); font-size: 11px; }

.account-section--secondary { max-width: 860px; }
.account-section--secondary .account-section__heading { margin-bottom: 16px; }
.account-section--secondary .account-section__heading h2 { font-size: 24px; }
.account-plan-card { max-width: 720px; padding: 22px; }
.account-plan-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(142, 135, 122, .16); }
.account-plan-card__top h3 { margin-top: 5px; font-size: 23px; letter-spacing: -0.04em; }
.account-status--active { border-color: rgba(94, 119, 71, .18); color: var(--green-dark); background: rgba(113, 143, 83, .08); }
.account-plan-card__intro { max-width: 560px; margin: 17px 0 22px; color: var(--muted-strong); font-size: 13px; line-height: 1.6; }
.account-plan-card__body { padding-top: 18px; border-top: 1px solid rgba(142, 135, 122, .16); }
.account-plan-card__body h4 { margin: 0 0 13px; color: var(--ink); font-size: 12px; font-weight: 760; letter-spacing: .02em; text-transform: uppercase; }
.account-plan-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 22px; margin: 0; padding: 0; list-style: none; }
.account-plan-list li { position: relative; padding-left: 20px; color: var(--muted-strong); font-size: 12px; line-height: 1.45; }
.account-plan-list li::before { position: absolute; top: .2em; left: 0; width: 11px; height: 7px; border-bottom: 2px solid var(--orange); border-left: 2px solid var(--orange); content: ""; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .main__inner:has(> .account-view:not([hidden])) { padding-right: 26px; padding-left: 26px; }
  .account-summary-grid--metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .main__inner:has(> .account-view:not([hidden])) { padding: 78px 18px 36px; }
  .account-header { padding-bottom: 20px; }
  .account-tabs { width: 100%; margin: 0 auto 20px; padding: 0; gap: 6px; }
  .account-tabs button { min-height: 56px; padding-right: 8px; padding-left: 8px; font-size: 13px; }
  .account-overview-grid--analytics { grid-template-columns: 1fr; }
  .account-analytics-stack { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
}

@media (max-width: 520px) {
  .main__inner:has(> .account-view:not([hidden])) { padding-right: 13px; padding-left: 13px; }
  .account-tabs { margin-right: auto; margin-left: auto; gap: 4px; }
  .account-tabs button { gap: 7px; min-height: 54px; padding-right: 6px; padding-left: 6px; }
  .account-summary-grid--metrics { grid-template-columns: 1fr 1fr; gap: 9px; }
  .account-metric-card { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; min-height: 92px; padding: 12px 10px; }
  .account-metric-card__art { width: 32px; height: 32px; }
  .account-metric-card strong { font-size: 17px; }
  .account-metric-card small { font-size: 9px; }
  .account-analytics-stack { grid-template-columns: 1fr; }
  .account-panel--chart { min-height: 214px; }
  .account-activity-row { grid-template-columns: 30px minmax(0, 1fr); padding: 8px 0; }
  .account-activity__status { grid-column: 2; }
  .account-plan-list { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .account-tabs button {
    flex-direction: column;
    gap: 3px;
    min-height: 66px;
    padding: 9px 4px;
    font-size: 11px;
    line-height: 1.1;
  }

  .account-tabs button.is-selected::before {
    right: 10px;
    left: 10px;
  }
}

/* Account chart and usage detail refinements */
.account-panel__heading--chart { align-items: center; justify-content: space-between; }
.account-range { display: flex; gap: 4px; margin-top: 8px; }
.account-range button { padding: 3px 7px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 650; }
.account-range button:hover, .account-range button:focus-visible { color: var(--ink); background: var(--paper-deep); }
.account-range button.is-selected { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.account-chart { height: auto; min-height: 154px; flex: 1 1 auto; padding: 0; }
.account-chart__svg { display: block; width: 100%; height: 100%; min-height: 154px; overflow: visible; }
.account-chart__grid-line { stroke: rgba(142, 135, 122, .18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.account-chart__area { fill: rgba(232, 119, 63, .10); }
.account-chart__line { fill: none; stroke: var(--orange); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.account-chart__point { fill: #fff; stroke: var(--orange); stroke-width: 2; vector-effect: non-scaling-stroke; }
.account-panel__heading--chart .account-range { margin-top: 0; }
.account-chart__label, .account-chart__axis-label, .account-chart__empty-label { fill: var(--muted); font-family: inherit; font-size: 10px; }
.account-task-list { display: grid; grid-template-columns: 1fr; gap: 9px; }
.account-task-row { display: grid; gap: 5px; color: var(--muted-strong); font-size: 11px; }
.account-task-row__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.account-task-row__header strong { color: var(--ink); font-size: 10px; font-weight: 740; }
.account-task-row__track { display: block; width: 100%; height: 4px; overflow: hidden; border-radius: 99px; background: #eee9e0; }
.account-task-row__track i { display: block; height: 100%; min-width: 0; border-radius: inherit; background: var(--orange); }
.account-breakdown__legend > div { grid-template-columns: 8px minmax(40px, 1fr) auto auto; }
.account-breakdown__legend em { color: var(--muted); font-size: 10px; font-style: normal; }
.account-breakdown__total { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(142, 135, 122, .16); color: var(--muted); font-size: 10px; }
.account-breakdown__total strong { color: var(--ink); font-size: 11px; }

@media (max-width: 520px) {
  .account-range button { padding-right: 5px; padding-left: 5px; }
  .account-panel--chart { min-height: 228px; }
}

@media (max-width: 680px) {
  .account-tab-icon {
    width: 17px;
    height: 17px;
  }
}

/* Plan selection */
.account-section--plan { width: 100%; max-width: 1160px; }
.account-plan-heading { display: flex; align-items: center; justify-content: flex-end; gap: 24px; margin-bottom: 23px; }
.account-plan-heading p { margin: 7px 0 0; color: var(--muted-strong); font-size: 13px; line-height: 1.45; }
.account-plan-cycle { display: inline-flex; flex: 0 0 auto; gap: 0; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .72); }
.account-plan-cycle button { min-width: 78px; padding: 8px 13px; border: 1px solid transparent; border-radius: 6px; color: var(--muted-strong); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.account-plan-cycle button:hover, .account-plan-cycle button:focus-visible { color: var(--ink); background: var(--paper-deep); }
.account-plan-cycle button.is-selected { border-color: var(--orange); color: var(--orange-dark); background: #fff; }
.account-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
.account-plan-tier { position: relative; display: flex; min-width: 0; min-height: 466px; flex-direction: column; padding: 22px 20px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .82); box-shadow: 0 8px 24px rgba(65, 58, 47, .04); text-align: center; }
.account-plan-tier--pro { border: 2px solid var(--orange); padding: 21px 19px 14px; background: linear-gradient(180deg, rgba(255, 248, 242, .98), rgba(255, 255, 255, .86)); }
.account-plan-tier--ultra { border-top: 5px solid #292444; padding-top: 18px; }
.account-plan-tier__badge { position: absolute; top: 10px; left: 50%; padding: 4px 17px 5px; color: #fff; background: var(--orange-cta); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; transform: translateX(-50%); clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); white-space: nowrap; }
.account-plan-tier__visual { display: grid; height: 112px; place-items: center; }
.account-plan-tier__visual img { display: block; width: 102px; height: 102px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 8px 6px rgba(58, 45, 31, .16)); }
.account-plan-tier--pro .account-plan-tier__visual { margin-top: 20px; }
.account-plan-tier--ultra .account-plan-tier__visual img { filter: drop-shadow(0 8px 7px rgba(73, 45, 128, .22)); }
.account-plan-tier h3 { margin: 3px 0 2px; color: var(--ink); font-size: 26px; font-weight: 760; letter-spacing: -.05em; }
.account-plan-tier__price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 3px; }
.account-plan-tier__price strong { color: var(--ink); font-size: 28px; font-weight: 760; letter-spacing: -.045em; }
.account-plan-tier__price span { color: var(--muted-strong); font-size: 12px; }
.account-plan-tier__tagline { min-height: 18px; margin: 5px 0 17px; color: var(--muted-strong); font-size: 12px; }
.account-plan-tier__features { display: grid; gap: 9px; margin: 0; padding: 16px 3px 16px; border-top: 1px solid rgba(142, 135, 122, .18); list-style: none; text-align: left; }
.account-plan-tier__features li { position: relative; padding-left: 20px; color: var(--muted-strong); font-size: 11px; line-height: 1.35; }
.account-plan-tier__features li::before { position: absolute; top: 2px; left: 1px; width: 10px; height: 6px; border-bottom: 2px solid #79a952; border-left: 2px solid #79a952; content: ""; transform: rotate(-45deg); }
.account-plan-tier--pro .account-plan-tier__features li::before { border-color: var(--orange); }
.account-plan-tier--ultra .account-plan-tier__features li::before { border-color: #7560c8; }
.account-plan-tier__button { width: 100%; min-height: 40px; margin-top: auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted-strong); background: #f5f2ed; cursor: pointer; font-size: 12px; font-weight: 760; }
.account-plan-tier__button:focus-visible { outline: 3px solid rgba(232, 119, 63, .28); outline-offset: 2px; }
.account-plan-tier__button--current { cursor: default; opacity: .88; }
.account-plan-tier__button--primary { border-color: var(--orange-cta); color: #fff; background: var(--orange-cta); box-shadow: 0 7px 14px rgba(200, 92, 42, .18); }
.account-plan-tier__button--primary:hover { background: var(--orange-cta-hover); }
.account-plan-tier__button--ultra { border-color: #292444; color: #fff; background: #292444; box-shadow: 0 7px 14px rgba(41, 36, 68, .16); }
.account-plan-tier__button--ultra:hover { background: #211d38; }

@media (max-width: 900px) {
  .account-plan-grid { grid-template-columns: 1fr; }
  .account-plan-tier { min-height: 0; }
  .account-plan-tier__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .account-plan-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .account-plan-cycle { width: 100%; }
  .account-plan-cycle button { flex: 1; }
  .account-plan-grid { gap: 12px; }
  .account-plan-tier { padding-right: 16px; padding-left: 16px; }
  .account-plan-tier--pro { padding-right: 15px; padding-left: 15px; }
  .account-plan-tier__features { grid-template-columns: 1fr; }
}

/* Combined contact and policies surface. */
.account-section--contact { width: 100%; max-width: 1140px; }
.account-contact-heading { margin-bottom: 24px !important; }
.account-contact-heading .account-panel__eyebrow { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 760; letter-spacing: .08em; }
.account-contact-heading h2 { font-size: clamp(25px, 3vw, 31px); }
.account-contact-heading p { margin: 7px 0 0; color: var(--muted-strong); font-size: 14px; line-height: 1.5; }
.account-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-contact-card { display: grid; grid-template-columns: 176px minmax(0, 1fr); align-items: center; gap: 24px; min-height: 260px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .86); box-shadow: 0 8px 24px rgba(65, 58, 47, .04); }
.account-contact-card__visual { display: grid; min-height: 170px; place-items: center; }
.account-contact-card__visual img { display: block; width: 152px; height: 152px; object-fit: contain; filter: drop-shadow(0 9px 6px rgba(58, 45, 31, .16)); }
.account-contact-card--refund .account-contact-card__visual img { width: 136px; height: 136px; filter: drop-shadow(0 9px 6px rgba(207, 95, 34, .18)); }
.account-contact-card__body { min-width: 0; }
.account-contact-card__body h3 { margin: 0; color: var(--ink); font-size: 20px; letter-spacing: -.03em; }
.account-contact-card__body p { margin: 8px 0 0; color: var(--muted-strong); font-size: 13px; line-height: 1.55; }
.account-contact-email { display: flex; align-items: center; min-height: 45px; margin-top: 14px; padding: 9px 13px; overflow-wrap: anywhere; border: 1px solid rgba(142, 135, 122, .2); border-radius: 8px; color: var(--ink); background: rgba(255, 255, 255, .74); font-size: 13px; font-weight: 700; text-decoration: none; }
.account-contact-email:hover { border-color: rgba(232, 119, 63, .42); }
.primary-account-button,
.secondary-account-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 12px; padding: 9px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 740; text-align: center; text-decoration: none; }
.primary-account-button { border: 1px solid var(--orange-cta); color: #fff; background: var(--orange-cta); box-shadow: 0 6px 14px rgba(194, 77, 27, .15); }
.primary-account-button:hover { background: var(--orange-cta-hover); }
.secondary-account-button { border: 1px solid var(--orange); color: var(--orange-dark); background: #fff; }
.secondary-account-button:hover { color: #fff; background: var(--orange-cta); }
.refund-request-status { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: start; gap: 9px; margin-top: 13px; padding: 10px 11px; border: 1px solid rgba(103, 126, 72, .2); border-radius: 8px; background: rgba(244, 248, 239, .86); }
.refund-request-status__dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #728f4c; box-shadow: 0 0 0 3px rgba(114, 143, 76, .11); }
.refund-request-status__copy { display: grid; min-width: 0; gap: 2px; }
.refund-request-status__label { color: var(--muted); font-size: 9px; font-weight: 760; letter-spacing: .07em; line-height: 1.3; text-transform: uppercase; }
.refund-request-status__copy strong { overflow-wrap: anywhere; color: var(--ink); font-size: 11px; font-weight: 740; line-height: 1.35; }
.refund-request-status__copy time { color: var(--muted-strong); font-size: 10px; line-height: 1.35; }
.refund-request-status + .account-contact-card__review-note { margin-top: 11px !important; }
.account-contact-card__review-note { margin-top: 19px !important; text-align: center; }
.admin-refund-panel { margin-top: 16px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .86); box-shadow: 0 8px 24px rgba(65, 58, 47, .04); }
.admin-refund-panel__heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid rgba(142, 135, 122, .18); }
.admin-refund-panel__heading h3 { margin: 5px 0 0; color: var(--ink); font-size: 19px; letter-spacing: -.025em; }
.admin-refund-refresh { min-height: 36px; padding: 7px 12px; border: 1px solid rgba(142, 135, 122, .3); border-radius: 7px; color: var(--ink); background: #fff; cursor: pointer; font: inherit; font-size: 11px; font-weight: 720; }
.admin-refund-refresh:hover { border-color: rgba(232, 119, 63, .46); }
.admin-refund-refresh:disabled { cursor: wait; opacity: .58; }
.admin-refund-panel__error { margin: 12px 0 0; color: var(--red); font-size: 11px; line-height: 1.45; }
.admin-refund-panel__error:empty { display: none; }
.admin-refund-panel__empty { margin: 15px 0 0; color: var(--muted-strong); font-size: 12px; }
.admin-refund-list { display: grid; gap: 10px; max-height: 640px; margin-top: 13px; overflow: auto; }
.admin-refund-row { padding: 13px 14px; border: 1px solid rgba(142, 135, 122, .2); border-radius: 9px; background: rgba(255, 253, 250, .82); }
.admin-refund-row__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-refund-row__ticket { overflow-wrap: anywhere; color: var(--ink); font-size: 12px; }
.admin-refund-row__status { flex: 0 0 auto; padding: 4px 8px; border: 1px solid rgba(114, 143, 76, .2); border-radius: 999px; color: #567035; background: rgba(241, 246, 234, .9); font-size: 9px; font-weight: 760; text-transform: uppercase; }
.admin-refund-row__meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 11px 0 0; }
.admin-refund-row__meta div { min-width: 0; }
.admin-refund-row__meta dt { color: var(--muted); font-size: 9px; font-weight: 740; letter-spacing: .05em; text-transform: uppercase; }
.admin-refund-row__meta dd { margin: 3px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: 11px; line-height: 1.4; }
.admin-refund-row__reason { margin: 11px 0 0; padding: 10px 11px; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 7px; color: var(--ink); background: rgba(242, 239, 233, .66); font-size: 11px; line-height: 1.5; }
.admin-refund-row__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-top: 11px; }
.admin-refund-row__action { min-height: 34px; padding: 7px 10px; border: 1px solid rgba(142, 135, 122, .3); border-radius: 7px; color: var(--ink); background: #fff; cursor: pointer; font: inherit; font-size: 10px; font-weight: 730; }
.admin-refund-row__action:hover { border-color: rgba(232, 119, 63, .46); }
.admin-refund-row__action--deny { color: #9b4034; }
.admin-refund-row__action:disabled { cursor: wait; opacity: .55; }
.account-contact-card a:focus-visible,
.admin-refund-refresh:focus-visible,
.admin-refund-row__action:focus-visible,
.account-policy-row:focus-visible { outline: 3px solid rgba(232, 119, 63, .28); outline-offset: 2px; }
.account-policy-panel { margin-top: 16px; padding: 20px 22px 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .86); box-shadow: 0 8px 24px rgba(65, 58, 47, .04); }
.account-policy-panel__heading { padding-bottom: 14px; border-bottom: 1px solid rgba(142, 135, 122, .18); }
.account-policy-panel__heading h3 { margin: 0; color: var(--ink); font-size: 19px; letter-spacing: -.025em; }
.account-policy-list { display: grid; }
.account-policy-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: center; gap: 16px; width: 100%; min-height: 63px; padding: 9px 7px; border: 0; border-bottom: 1px solid rgba(142, 135, 122, .18); color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.account-policy-row { text-decoration: none; }
.account-policy-row:hover { background: rgba(249, 246, 240, .75); }
.account-policy-row__icon-box { display: grid; place-items: center; align-self: center; width: 42px; height: 42px; }
.account-policy-row__icon { display: block; width: 32px; height: 32px; object-fit: contain; }
.account-policy-row__copy { display: grid; grid-template-columns: 185px minmax(0, 1fr); align-items: center; align-self: center; gap: 18px; min-width: 0; }
.account-policy-row__copy strong { font-size: 14px; font-weight: 740; line-height: 1.2; }
.account-policy-row__copy span { color: var(--muted-strong); font-size: 13px; line-height: 1.35; }
.account-policy-row__arrow { width: 18px; color: var(--muted-strong); font-size: 26px; font-weight: 350; line-height: 1; text-align: center; }
.account-policy-panel__note { display: flex; align-items: center; gap: 11px; margin: 0; padding: 18px 7px 20px; color: var(--muted-strong); font-size: 13px; }
.account-policy-panel__note-icon { color: var(--muted-strong); font-size: 18px; }
.account-policy-panel__note a { color: var(--ink); font-weight: 700; text-decoration: none; }
.account-policy-panel__note a:hover { color: var(--orange-dark); }

/* Account balance and compact analytics typography. */
.sidebar-credit-balance {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  align-self: center;
  width: 100%;
  margin: 14px 0 0;
  color: var(--sidebar-muted);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  user-select: none;
  -webkit-user-select: none;
}

.sidebar-credit-balance span:first-child {
  color: #f5f6f2;
  font-size: 15px;
  font-weight: 720;
}

.sidebar-upgrade-plan {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  max-width: 100%;
  min-height: 38px;
  margin: 10px auto 0;
  padding: 8px 18px;
  border: 1px solid var(--orange-cta);
  border-radius: 9px;
  color: #fff;
  background: var(--orange-cta);
  box-shadow: 0 8px 18px rgba(238, 119, 60, 0.16);
  font: 700 12px/1.2 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.sidebar-upgrade-plan:hover {
  border-color: var(--orange-cta-hover);
  background: var(--orange-cta-hover);
  box-shadow: 0 10px 22px rgba(238, 119, 60, 0.22);
}

.sidebar-upgrade-plan:focus-visible {
  outline: 3px solid rgba(238, 119, 60, 0.3);
  outline-offset: 3px;
}

.sidebar-upgrade-plan:active {
  transform: translateY(1px);
}

.account-view,
.account-view button,
.account-view a {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-stretch: normal;
}

.account-header h1,
.account-panel h3,
.account-section__heading h2,
.account-plan-tier h3 {
  letter-spacing: -0.018em;
}

.account-card__label,
.account-panel__meta,
.account-task-row,
.account-breakdown__legend,
.account-breakdown__total {
  line-height: 1.35;
  letter-spacing: 0;
}

.account-overview-grid--analytics { align-items: start; }
.account-panel--chart { align-self: start; }
.account-chart { height: 220px; min-height: 220px; flex: 0 0 220px; }
.account-chart__svg { height: 220px; min-height: 220px; }
.account-chart__label,
.account-chart__axis-label,
.account-chart__empty-label {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-stretch: normal;
  font-weight: 500;
  letter-spacing: 0;
}

@media (max-width: 520px) {
  .account-panel--chart { min-height: 0; }
  .account-chart,
  .account-chart__svg { height: 188px; min-height: 188px; }
}

@media (max-width: 760px) and (min-width: 521px) {
  .account-chart,
  .account-chart__svg { height: 204px; min-height: 204px; }
}

.account-credit-billing {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.account-credit-billing__total {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.account-credit-billing__total strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.account-credit-billing__total span {
  color: var(--muted-strong);
  font-size: 10px;
  line-height: 1.3;
}

.account-credit-billing__rule {
  height: 1px;
  background: rgba(142, 135, 122, .16);
}

.account-credit-billing__row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.35;
}

.account-credit-billing__row em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.account-credit-billing__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.account-credit-billing__dot--charged { background: var(--orange); }
.account-credit-billing__dot--free { background: #cfc8b9; }

@media (max-width: 900px) {
  .account-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .account-contact-card { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding: 19px; }
  .account-contact-card__visual { min-height: 124px; }
  .account-contact-card__visual img { width: 116px; height: 116px; }
  .account-contact-card--refund .account-contact-card__visual img { width: 108px; height: 108px; }
  .admin-refund-panel { padding: 16px 14px; }
  .admin-refund-panel__heading { align-items: center; }
  .admin-refund-row__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-refund-row__actions { justify-content: stretch; }
  .admin-refund-row__action { flex: 1 1 auto; }
  .account-policy-panel { padding-right: 15px; padding-left: 15px; }
  .account-policy-row { grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 10px; padding-right: 3px; padding-left: 3px; }
  .account-policy-row__icon-box { width: 30px; height: 30px; }
  .account-policy-row__icon { width: 26px; height: 26px; }
  .account-policy-row__copy { grid-template-columns: 1fr; gap: 3px; }
  .account-policy-row__copy span { font-size: 11px; line-height: 1.35; }
  .account-policy-panel__note { align-items: flex-start; padding-right: 3px; padding-left: 3px; line-height: 1.45; }
}

.credit-plan-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.credit-plan-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(21, 23, 22, .48);
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.credit-plan-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 34px 28px 28px;
  border: 1px solid rgba(142, 135, 122, .28);
  border-radius: 18px;
  background: var(--surface, #fffdfa);
  box-shadow: 0 24px 70px rgba(24, 25, 23, .2);
}

.credit-plan-modal__intro {
  max-width: 650px;
  margin: 0 auto 22px;
  text-align: center;
}

.credit-plan-modal__intro .eyebrow { margin-bottom: 5px; }
.credit-plan-modal__intro h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.08; letter-spacing: -.02em; }
.credit-plan-modal__intro p:last-child { margin: 8px 0 0; color: var(--muted-strong); line-height: 1.45; }
.credit-plan-modal__plans .account-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.credit-plan-modal__plans .account-plan-tier { min-height: 0; padding: 18px 16px 14px; }
.credit-plan-modal__plans .account-plan-tier--pro { padding: 17px 15px 13px; }
.credit-plan-modal__plans .account-plan-tier__visual { height: 86px; }
.credit-plan-modal__plans .account-plan-tier__visual img { width: 76px; height: 76px; }
.credit-plan-modal__plans .account-plan-tier h3 { font-size: 22px; }
.credit-plan-modal__plans .account-plan-tier__price strong { font-size: 24px; }
.credit-plan-modal__plans .account-plan-tier__features { gap: 7px; padding: 12px 2px; }
.credit-plan-modal__plans .account-plan-tier__features li { font-size: 11px; }
.credit-plan-modal__plans .account-plan-tier--pro .account-plan-tier__visual { margin-top: 10px; }

body.credit-plan-open { overflow: hidden; }

@media (max-width: 900px) {
  .credit-plan-modal__plans .account-plan-grid { grid-template-columns: 1fr; }
  .credit-plan-modal__plans .account-plan-tier__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .credit-plan-modal { align-items: end; padding: 10px; }
  .credit-plan-modal__card { max-height: calc(100vh - 20px); padding: 28px 14px 18px; border-radius: 15px; }
  .credit-plan-modal__plans .account-plan-grid { gap: 10px; }
  .credit-plan-modal__plans .account-plan-tier__features { grid-template-columns: 1fr; }
}

/* Refund request dialog */
.refund-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.refund-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 22, 21, .5);
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.refund-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 28px 30px 0;
  border: 1px solid rgba(142, 135, 122, .3);
  border-radius: 11px;
  color: var(--ink);
  background: #fffdfa;
  box-shadow: 0 26px 72px rgba(20, 22, 21, .24);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.refund-dialog__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #757873;
  background: transparent;
  cursor: pointer;
}

.refund-dialog__close span {
  position: absolute;
  top: 16px;
  left: 9px;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.refund-dialog__close span + span { transform: rotate(-45deg); }
.refund-dialog__close:hover { border-color: var(--line); background: #fff; }

.refund-dialog__header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding-right: 36px;
}

.refund-dialog__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 13px;
  color: var(--orange);
  background: #fff0e9;
}

.refund-dialog__mark svg { width: 32px; height: 32px; }
.refund-dialog__intro { min-width: 0; }
.refund-dialog__intro h2 { margin: 2px 0 0; font-size: 21px; font-weight: 760; line-height: 1.18; letter-spacing: -.025em; }
.refund-dialog__intro p { max-width: 440px; margin: 6px 0 0; color: var(--muted-strong); font-size: 13px; line-height: 1.5; }

.refund-form { margin-top: 23px; }
.refund-field__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 7px; }
.refund-field__label-row label { color: var(--ink); font-size: 12px; font-weight: 740; line-height: 1.35; }
.refund-field__label-row span { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.refund-field__control { position: relative; }

.refund-field textarea {
  display: block;
  width: 100%;
  min-height: 132px;
  max-height: 280px;
  padding: 12px 13px 31px;
  resize: vertical;
  border: 1px solid rgba(142, 135, 122, .32);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 2px rgba(46, 42, 36, .025);
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.refund-field textarea::placeholder { color: #92938e; opacity: 1; }
.refund-field textarea:hover { border-color: rgba(142, 135, 122, .48); }
.refund-field textarea:focus { border-color: rgba(232, 119, 63, .72); box-shadow: 0 0 0 3px rgba(232, 119, 63, .11); }
.refund-field textarea[aria-invalid="true"] { border-color: rgba(183, 66, 51, .64); }
.refund-field__counter { position: absolute; right: 12px; bottom: 9px; color: var(--muted); font-size: 10px; line-height: 1; pointer-events: none; }
.refund-field__error { margin: 6px 0 0; color: var(--red); font-size: 10px; line-height: 1.35; }
.refund-field__error:empty { display: none; }

.refund-policy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0 18px;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.45;
}

.refund-policy-note svg { flex: 0 0 15px; width: 15px; height: 15px; color: #8a8d87; }
.refund-policy-note a { color: var(--orange-dark); text-underline-offset: 2px; }
.refund-form__error { margin: -7px 0 18px; color: var(--red); font-size: 11px; line-height: 1.45; }
.refund-form__error:empty { display: none; }

.refund-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 -30px;
  padding: 16px 30px;
  border-top: 1px solid rgba(142, 135, 122, .18);
}

.refund-dialog__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 17px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 740;
  line-height: 1;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.refund-dialog__button--cancel { min-width: 84px; border: 1px solid rgba(142, 135, 122, .36); color: var(--ink); background: #fff; }
.refund-dialog__button--cancel:hover { border-color: rgba(111, 108, 101, .56); background: #fdfbf8; }
.refund-dialog__button--submit { min-width: 134px; border: 1px solid var(--orange-cta); color: #fff; background: var(--orange-cta); box-shadow: 0 6px 14px rgba(194, 77, 27, .15); }
.refund-dialog__button--submit:hover:not(:disabled) { background: var(--orange-cta-hover); }
.refund-dialog__button--submit:disabled { border-color: #efefec; color: #aaa9a5; background: #efefec; box-shadow: none; cursor: not-allowed; }
.refund-dialog__close:focus-visible,
.refund-dialog__button:focus-visible,
.refund-policy-note a:focus-visible { outline: 3px solid rgba(232, 119, 63, .24); outline-offset: 2px; }

body.refund-open { overflow: hidden; }

@media (max-width: 560px) {
  .refund-modal { align-items: end; padding: 10px; }
  .refund-dialog { width: 100%; max-height: calc(100dvh - 20px); padding: 24px 18px 0; border-radius: 14px; }
  .refund-dialog__close { top: 10px; right: 10px; }
  .refund-dialog__header { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding-right: 24px; }
  .refund-dialog__mark { width: 46px; height: 46px; border-radius: 11px; }
  .refund-dialog__mark svg { width: 28px; height: 28px; }
  .refund-dialog__intro h2 { font-size: 19px; }
  .refund-dialog__intro p { font-size: 12px; }
  .refund-form { margin-top: 20px; }
  .refund-field__label-row { align-items: flex-start; }
  .refund-field textarea { min-height: 156px; font-size: 16px; }
  .refund-policy-note { align-items: flex-start; margin-bottom: 15px; }
  .refund-dialog__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); margin: 0 -18px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
  .refund-dialog__button { width: 100%; padding-right: 10px; padding-left: 10px; }
}
