/* 91COST 开始设计：只保留启动任务需要的信息与动作。 */

#project-home.project-home {
  --start-bg: #f7f7f5;
  --start-surface: #ffffff;
  --start-ink: #17191b;
  --start-muted: #777b80;
  --start-line: rgba(23, 25, 27, 0.12);
  --start-accent: #17191b;
  z-index: 80;
  inset: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  color: var(--start-ink);
  background: var(--start-bg);
  backdrop-filter: none;
}

body[data-ui-theme="dark"] #project-home.project-home,
body[data-ui-theme="dark"] .design-entry {
  --start-bg: #111315;
  --start-surface: #1a1d20;
  --start-ink: #f2f3f3;
  --start-muted: #9da2a7;
  --start-line: rgba(255, 255, 255, 0.13);
  --start-accent: #f2f3f3;
}

#project-home.project-home[hidden],
.design-entry[hidden],
.minimal-saved[hidden] {
  display: none !important;
}

.minimal-home,
.minimal-entry {
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr) 58px;
  color: var(--start-ink);
  background: var(--start-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.minimal-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.minimal-home-header > a,
.minimal-entry > header > span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--start-ink);
  text-decoration: none;
}

.minimal-home-header img,
.minimal-entry > header img {
  border-radius: 10px;
}

.minimal-home-header strong,
.minimal-entry > header strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.minimal-home-header > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.minimal-home-header > div > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--start-muted);
  font-size: 10px;
}

.minimal-home-header > div > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #43ad72;
}

.minimal-home-header [data-theme-toggle] {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--start-line);
  border-radius: 50%;
  color: var(--start-ink);
  background: transparent;
  cursor: pointer;
}

.minimal-home-header [data-theme-toggle] i {
  font-size: 10px;
  font-style: normal;
}

.minimal-home-main {
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  padding: 32px 24px 76px;
  text-align: center;
}

.minimal-home-main > span,
.minimal-entry > main > span {
  color: var(--start-muted);
  font: 650 9px/1.2 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.18em;
}

.minimal-home-main h1 {
  margin: 20px 0 13px;
  color: var(--start-ink);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 660;
  line-height: 1;
  letter-spacing: -0.075em;
}

.minimal-home-main p {
  margin: 0;
  color: var(--start-muted);
  font-size: 15px;
}

.minimal-home-main button {
  min-width: 178px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 34px;
  padding: 0 22px;
  border: 1px solid var(--start-accent);
  border-radius: 999px;
  color: var(--start-bg);
  background: var(--start-accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease;
}

.minimal-home-main button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.minimal-home-main button i {
  font-size: 17px;
  font-style: normal;
}

.minimal-home > footer,
.minimal-entry > footer {
  align-self: center;
  justify-self: center;
  color: var(--start-muted);
  font-size: 9px;
  letter-spacing: 0.03em;
}

/* 第二层只保留新建、打开和导入图纸。 */
.design-entry {
  --start-bg: #f7f7f5;
  --start-surface: #ffffff;
  --start-ink: #17191b;
  --start-muted: #777b80;
  --start-line: rgba(23, 25, 27, 0.12);
  --start-accent: #17191b;
  position: fixed;
  z-index: 86;
  inset: 0;
  display: block;
  padding: 0;
  color: var(--start-ink);
  background: var(--start-bg);
}

.minimal-entry {
  position: relative;
}

.minimal-entry > header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
}

.minimal-entry > header > button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--start-line);
  border-radius: 50%;
  color: var(--start-ink);
  background: transparent;
  cursor: pointer;
}

.minimal-entry > header > span {
  grid-column: 2;
}

.minimal-entry > main {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(520px, calc(100% - 40px));
  padding-bottom: 38px;
}

.minimal-entry h2 {
  margin: 14px 0 28px;
  color: var(--start-ink);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.minimal-entry-actions {
  overflow: hidden;
  border: 1px solid var(--start-line);
  border-radius: 16px;
  background: var(--start-surface);
}

.minimal-entry-actions > button {
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--start-line);
  color: var(--start-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 130ms ease;
}

.minimal-entry-actions > button:last-child {
  border-bottom: 0;
}

.minimal-entry-actions > button:hover {
  background: color-mix(in srgb, var(--start-ink) 5%, transparent);
}

.minimal-entry-actions > button:first-child {
  color: var(--start-bg);
  background: var(--start-accent);
}

.minimal-entry-actions > button:first-child:hover {
  opacity: 0.9;
}

.minimal-entry-actions button > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.minimal-entry-actions strong {
  font-size: 14px;
}

.minimal-entry-actions small {
  color: var(--start-muted);
  font-size: 10px;
}

.minimal-entry-actions > button:first-child small {
  color: color-mix(in srgb, var(--start-bg) 68%, transparent);
}

.minimal-entry-actions button > i {
  margin-left: auto;
  font-size: 17px;
  font-style: normal;
}

.minimal-sample-link {
  display: block;
  margin: 18px auto 0;
  padding: 8px 10px;
  border: 0;
  color: var(--start-muted);
  background: transparent;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.minimal-saved {
  position: absolute;
  z-index: 5;
  inset: -42px -32px;
  min-height: 420px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--start-line);
  border-radius: 18px;
  background: var(--start-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.minimal-saved > header,
.minimal-saved > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--start-line);
}

.minimal-saved > header strong {
  font-size: 14px;
}

.minimal-saved > header button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: var(--start-ink);
  background: color-mix(in srgb, var(--start-ink) 7%, transparent);
  cursor: pointer;
}

.minimal-saved > .saved-project-list {
  align-content: start;
  gap: 7px;
  margin: 0;
  padding: 14px 18px;
  overflow: auto;
}

.minimal-saved .saved-project-list > p,
.minimal-saved .saved-project-list article {
  border-color: var(--start-line);
  color: var(--start-muted);
  background: var(--start-bg);
}

.minimal-saved .saved-project-list article {
  border-radius: 10px;
}

.minimal-saved .saved-project-list article strong {
  color: var(--start-ink);
}

.minimal-saved .saved-project-list article button {
  border-color: var(--start-line);
  border-radius: 7px;
  color: var(--start-ink);
  background: var(--start-surface);
}

.minimal-saved > footer {
  border-top: 1px solid var(--start-line);
  border-bottom: 0;
}

.minimal-saved > footer > button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--start-ink);
  border-radius: 999px;
  color: var(--start-bg);
  background: var(--start-ink);
  font-size: 9px;
  cursor: pointer;
}

.minimal-saved .project-import-status {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--start-muted);
  background: transparent;
  font-size: 8px;
}

.minimal-home button:focus-visible,
.minimal-home a:focus-visible,
.minimal-entry button:focus-visible {
  outline: 2px solid #398fd7;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .minimal-home,
  .minimal-entry {
    grid-template-rows: 64px minmax(0, 1fr) 48px;
  }

  .minimal-home-header,
  .minimal-entry > header {
    padding-inline: 18px;
  }

  .minimal-home-header > div > span {
    display: none;
  }

  .minimal-home-main {
    padding-bottom: 42px;
  }

  .minimal-home-main h1 {
    font-size: clamp(50px, 18vw, 70px);
  }

  .minimal-entry h2 {
    font-size: 36px;
  }

  .minimal-saved {
    inset: -38px 0;
  }

  .minimal-saved > footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .minimal-home *,
  .minimal-entry * {
    transition-duration: 0.01ms !important;
  }
}
