:root {
  --bg: #f7fafc;
  --panel: rgba(255, 255, 255, 0.9);
  --line: #dfe7ee;
  --muted: #687789;
  --text: #122033;
  --teal: #18b7a4;
  --teal-dark: #0f9c8d;
  --amber: #f6a21a;
  --amber-dark: #df8410;
  --green: #24c364;
  --shadow: 0 18px 45px rgba(36, 50, 70, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(24, 183, 164, 0.08), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(246, 162, 26, 0.08), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 28px;
}

.compact-shell {
  min-height: 100vh;
}

.topbar,
.brand,
.user-panel,
.summary,
.summary-item,
.card-actions,
.planning-head {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.brand {
  gap: 20px;
}

.brand h1,
.tool-copy h2,
.placeholder h2,
.planning h2 {
  margin: 0;
}

.brand h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.brand p,
.user-panel time,
.summary p,
.tool-copy p,
.placeholder p,
.planning p,
footer {
  color: var(--muted);
}

.brand p,
.summary p,
.tool-copy p,
.placeholder p,
.planning p {
  margin: 8px 0 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  color: var(--teal);
}

.brand-mark span {
  border: 6px solid currentColor;
  border-radius: 3px;
}

.user-panel {
  gap: 14px;
  text-align: right;
}

.user-panel svg {
  width: 34px;
  height: 34px;
  color: var(--teal);
}

.user-panel strong,
.user-panel time {
  display: block;
}

.user-panel time {
  margin-top: 4px;
  font-size: 15px;
}

.summary,
.planning,
.tool-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.summary {
  min-height: 88px;
  border-radius: 8px;
  padding: 22px 26px;
  gap: 32px;
  margin-bottom: 28px;
}

.summary-item {
  min-width: 260px;
  gap: 18px;
}

.summary-item strong {
  font-size: 22px;
}

.summary-item strong span {
  color: var(--teal);
  margin-left: 6px;
}

.divider {
  width: 1px;
  height: 38px;
  background: var(--line);
}

.mini-icon,
.tool-icon,
.bulb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  color: #fff;
}

.mini-icon svg {
  width: 23px;
  height: 23px;
}

.tool-icon {
  width: 72px;
  height: 72px;
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 16px 28px rgba(30, 41, 59, 0.12);
}

.tool-icon svg {
  width: 34px;
  height: 34px;
}

.teal {
  background: linear-gradient(135deg, #22c8b8, #0ea88f);
}

.amber {
  background: linear-gradient(135deg, #ffb423, #ff8f12);
}

.indigo {
  background: linear-gradient(135deg, #4f7cff, #5d4fe8);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 26px;
}

.tool-card {
  min-height: 190px;
  border-radius: 8px;
  padding: 26px;
}

.active-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  column-gap: 20px;
  row-gap: 30px;
}

.tool-copy h2,
.placeholder h2,
.planning h2 {
  font-size: 24px;
}

.card-actions {
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 18px;
}

.enter {
  width: min(210px, 68%);
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-weight: 700;
}

.enter::after {
  content: "→";
  margin-left: 8px;
  font-size: 20px;
}

.teal-link {
  color: var(--teal-dark);
  border: 1px solid rgba(24, 183, 164, 0.45);
  background: rgba(24, 183, 164, 0.05);
}

.amber-link {
  color: var(--amber-dark);
  border: 1px solid rgba(246, 162, 26, 0.45);
  background: rgba(246, 162, 26, 0.06);
}

.indigo-link {
  color: #4f46c7;
  border: 1px solid rgba(93, 79, 232, 0.42);
  background: rgba(79, 124, 255, 0.06);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.status i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(36, 195, 100, 0.12);
}

.placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border-style: dashed;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.42);
  text-align: center;
}

.plus-box {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 2px dashed #aeb9c5;
  border-radius: 8px;
  color: #9aa7b4;
  font-size: 34px;
  line-height: 1;
}

.planning {
  border-radius: 8px;
  padding: 24px 28px;
}

.planning-head {
  gap: 18px;
  margin-bottom: 22px;
}

.bulb {
  width: 32px;
  height: 32px;
  color: var(--teal);
}

.bulb svg {
  width: 26px;
  height: 26px;
}

.skeleton-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.skeleton-row span {
  min-height: 88px;
  border: 1px solid #e7edf2;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #edf2f6 18%, transparent 18% 30%, #edf2f6 30% 68%, transparent 68%),
    linear-gradient(#f4f7fa, #f4f7fa);
  opacity: 0.82;
}

.empty-page {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 12px;
}

.home-link {
  margin-top: 16px;
  width: 180px;
}

footer {
  margin-top: 28px;
  text-align: center;
}

@media (max-width: 1180px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skeleton-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 620px);
    padding-top: 24px;
  }

  .topbar,
  .summary,
  .user-panel {
    align-items: flex-start;
  }

  .topbar,
  .summary {
    flex-direction: column;
  }

  .user-panel {
    text-align: left;
  }

  .divider {
    width: 100%;
    height: 1px;
  }

  .grid,
  .skeleton-row {
    grid-template-columns: 1fr;
  }

  .active-card {
    grid-template-columns: 64px 1fr;
    padding: 22px;
  }

  .tool-icon {
    width: 60px;
    height: 60px;
  }

  .card-actions {
    flex-wrap: wrap;
  }

  .enter {
    width: 100%;
  }
}
