.ai-workspace {
  display: none;
  overflow: auto;
  grid-column: 2/-1;
  min-width: 0;
  background: #f5f6f8;
}
.shell.ai-open > .settings,
.shell.ai-open > .workarea {
  display: none;
}
.shell.ai-open > .ai-workspace {
  display: block;
}
.ai-inner {
  max-width: 1250px;
  padding: 30px 44px 50px;
  margin: auto;
}
.ai-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.ai-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 600 11px system-ui;
  letter-spacing: 1.7px;
  color: #506448;
}
.ai-tag svg {
  width: 17px;
  height: 17px;
}
.ai-public {
  font-size: 12px;
  color: #7a8793;
}
.ai-hero {
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 24px 0;
}
.ai-hero > div:first-child {
  max-width: 650px;
}
.ai-hero h1 {
  font-size: 37px;
  line-height: 1.3;
  letter-spacing: -1px;
  margin: 0 0 14px;
}
.ai-hero h1 span {
  color: #627c3c;
}
.ai-hero p {
  color: #778395;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  max-width: 630px;
}
.ai-hero-art {
  width: 220px;
  flex-shrink: 0;
  margin-left: auto;
  color: #74856b;
}
.ai-steps {
  list-style: none;
  padding: 15px 0 23px;
  margin: 0;
  display: flex;
  gap: 25px;
  color: #708094;
  font-size: 13px;
}
.ai-steps li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ai-steps b {
  display: grid;
  place-items: center;
  font: 600 10px system-ui;
  color: #536442;
  border: 1px solid #d2dcca;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #edf2e9;
}
.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.ai-card {
  background: white;
  border: 1px solid #e0e5e9;
  border-radius: 15px;
  padding: 23px;
  box-shadow: 0 3px 10px #152a3710;
  min-width: 0;
}
.ai-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.ai-card h2 {
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
}
.ai-card-title > span {
  font-size: 11px;
  color: #99a2ad;
  white-space: nowrap;
}
.ai-drop {
  text-align: center;
  border: 1.5px dashed #ccd6c1;
  border-radius: 10px;
  background: #f8faf5;
  padding: 20px 12px;
}
.ai-drop.drag {
  background: #eaf4d9;
  border-color: #78964f;
}
.ai-upload-icon {
  font: 32px system-ui;
  color: #7d925f;
  margin: 0 0 7px;
}
.ai-drop strong {
  display: block;
  font-size: 14px;
  color: #526149;
}
.ai-drop p {
  font-size: 12px;
  color: #899780;
  margin: 7px 0 13px;
}
.ai-drop button {
  font-size: 13px;
  color: #4e613b;
  border-color: #cdd8c0;
  min-height: 34px;
}
.ai-drop small {
  display: block;
  font-size: 10px;
  color: #99a58f;
  margin-top: 8px;
}
.ai-label {
  display: block;
  font-size: 14px;
  margin: 18px 0 8px;
}
textarea {
  font: inherit;
}
.ai-card textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #374759;
}
.ai-card textarea:focus {
  outline: 2px solid #98b86e;
  outline-offset: 2px;
}
.ai-card textarea::placeholder {
  color: #9ca5b0;
}
.ai-examples {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: #8a96a5;
  margin: 9px 0 19px;
}
.ai-examples button {
  font-size: 11px;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 15px;
  color: #60708a;
  background: #f8fafc;
}
.ai-dimensions {
  padding: 13px 0;
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
}
.ai-dimensions summary {
  cursor: pointer;
  font-size: 13px;
}
.ai-dimensions summary span {
  float: right;
  color: #98a2af;
  font-size: 11px;
}
.ai-size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ai-size-grid label {
  font-size: 12px;
  color: #7b899a;
}
.ai-size-grid input {
  display: block;
  min-width: 0;
  width: 100%;
  padding: 8px 6px;
  border: 1px solid #dce2ea;
  border-radius: 6px;
  font-size: 12px;
  margin-top: 5px;
}
.ai-material {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  font-size: 13px;
}
.ai-material select {
  flex: 1;
  font-size: 13px;
  min-height: 34px;
}
.ai-privacy {
  font-size: 11px;
  line-height: 1.65;
  color: #949eab;
  margin: 16px 0;
}
.ai-submit {
  width: 100%;
  min-height: 46px;
  font-size: 15px;
}
.ai-submit svg {
  width: 19px;
  height: 19px;
}
.ai-service {
  font-size: 10px;
  color: #879782;
  text-align: center;
  margin: 9px 0 0;
  line-height: 1.6;
}
.ai-error {
  color: #b94336;
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0;
  white-space: pre-wrap;
}
.ai-error:empty {
  display: none;
}
.ai-result {
  min-height: 365px;
  text-align: center;
  padding: 40px 25px;
}
.ai-result p {
  font-size: 13px;
  color: #8592a3;
  line-height: 1.8;
}
.ai-empty-icon {
  color: #aab99a;
  background: #f4f7ef;
  border-radius: 18px;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 10px auto 20px;
}
.ai-empty-icon svg {
  width: 34px;
  height: 34px;
}
.ai-capabilities {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}
.ai-capabilities span {
  font-size: 11px;
  background: #f4f6f9;
  color: #8996a8;
  border-radius: 15px;
  padding: 5px 11px;
}
.ai-scope {
  padding: 21px 6px;
  color: #8995a4;
  font-size: 12px;
  line-height: 1.8;
}
.ai-scope strong {
  font-size: 13px;
  color: #6c7c8f;
}
.ai-scope p {
  margin: 8px 0;
}
.ai-result.has-result {
  text-align: left;
  padding: 23px;
}
.ai-result-label {
  font-size: 11px;
  color: #688048;
  display: block;
  margin-bottom: 7px;
}
.ai-plan-preview {
  border-radius: 9px;
  background: #f8f9f7;
  margin: 16px 0;
  padding: 12px;
  text-align: center;
}
.ai-plan-preview svg {
  width: 100%;
  height: 220px;
  display: block;
}
.ai-plan-preview small {
  font-size: 10px;
  color: #99a397;
}
.ai-specs {
  margin: 15px 0;
}
.ai-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #edf0f4;
  padding: 8px 0;
  font-size: 12px;
}
.ai-specs dt {
  color: #8a97a7;
}
.ai-specs dd {
  margin: 0;
  text-align: right;
  color: #4c6074;
}
.ai-assumptions {
  background: #fff9ed;
  border: 1px solid #f0e4c9;
  padding: 13px;
  border-radius: 8px;
  font-size: 12px;
  color: #92805b;
  line-height: 1.7;
}
.ai-assumptions ul {
  padding-left: 17px;
  margin: 8px 0 0;
}
.ai-assumptions li {
  margin: 4px 0;
}
.ai-thumbs {
  display: flex;
  gap: 9px;
  margin-top: 10px;
}
.ai-thumbs > div {
  width: 30%;
  position: relative;
  min-width: 0;
}
.ai-thumbs img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  border: 1px solid #e0e6ec;
  border-radius: 8px;
}
.ai-thumbs small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  color: #8e9aa9;
}
.ai-thumbs button {
  position: absolute;
  right: 2px;
  top: 2px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
}
.ai-loading {
  width: 40px;
  height: 40px;
  border: 3px solid #edf2e5;
  border-top-color: #87a45b;
  border-radius: 50%;
  animation: ai-spin 1s linear infinite;
  margin: 40px auto 25px;
}
@keyframes ai-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-loading {
    animation: none;
  }
}
@media (max-width: 1100px) {
  .ai-inner {
    padding: 25px;
  }
  .ai-hero h1 {
    font-size: 31px;
  }
  .ai-hero-art {
    width: 170px;
  }
  .ai-steps {
    gap: 15px;
  }
  .ai-card {
    padding: 18px;
  }
  .ai-layout {
    gap: 16px;
  }
}
@media (max-width: 850px) {
  .ai-layout {
    grid-template-columns: 1fr;
  }
  .ai-hero-art {
    display: none;
  }
  .ai-steps {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .ai-public {
    font-size: 10px;
  }
  .ai-result {
    min-height: 260px;
  }
}
@media (max-width: 720px) {
  .ai-workspace {
    grid-column: 1/-1;
    order: 1;
    overflow: visible;
  }
  .ai-inner {
    padding: 20px 16px 35px;
  }
  .ai-topline {
    align-items: start;
  }
  .ai-public {
    max-width: 145px;
    text-align: right;
  }
  .ai-hero {
    padding: 22px 0;
  }
  .ai-hero h1 {
    font-size: 30px;
  }
  .ai-hero p {
    font-size: 13px;
  }
  .ai-steps {
    font-size: 11px;
    gap: 10px 16px;
    padding-bottom: 20px;
  }
  .ai-steps b {
    width: 22px;
    height: 22px;
  }
  .ai-size-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rail button {
    width: auto;
    min-width: 44px;
    flex: 1;
  }
  .ai-card-title {
    align-items: start;
  }
  .ai-card h2 {
    font-size: 17px;
  }
  .ai-card-title > span {
    font-size: 10px;
  }
}
