:root {
  color-scheme: light;
  --canvas: #f5f6f8;
  --white: #fff;
  --ink: #1f2329;
  --muted: #545b67;
  --line: #e1e5eb;
  --blue: #1456e9;
  --blue-dark: #0f43c0;
  --blue-light: #edf3ff;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.65 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: var(--blue); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; }
h1 { font-size: clamp(1.8rem, 4.1vw, 3.05rem); letter-spacing: -.045em; }
h2 { font-size: 1.55rem; letter-spacing: -.02em; }
h3 { font-size: 1.06rem; }

.wrap { width: min(1184px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; left: 12px; top: 12px; padding: 8px 12px; background: var(--white); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.top { position: sticky; z-index: 2; top: 0; border-bottom: 1px solid var(--line); background: var(--white); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 17px; font-weight: 730; text-decoration: none; white-space: nowrap; }
.brand > span { display: grid; place-items: center; width: 30px; height: 30px; color: white; background: var(--blue); border-radius: 8px; }
.brand small { padding-left: 8px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--muted); }
.top nav { display: flex; align-items: center; gap: 26px; }
.top nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.top nav a:hover, .top nav .top-current { color: var(--blue); }
.top-current { font-weight: 680; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  min-height: 240px;
  margin: 24px 0 26px;
  padding: clamp(22px, 3.4vw, 40px);
  overflow: hidden;
  border: 1px solid #dbe6fc;
  border-radius: 16px;
  background: radial-gradient(ellipse at 93% 100%, #e4deff 0, transparent 53%),
              linear-gradient(120deg, #edf4ff 20%, #f6f8ff 68%, #e5edff);
}
.hero h1 { margin: 4px 0 8px; }
.hero-content p { color: var(--muted); margin-bottom: 15px; }
.hero-content .hero-kicker { margin-bottom: 0; color: var(--blue-dark); font-size: 13px; font-weight: 650; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.primary { background: var(--blue); color: var(--white); }
.primary:hover { background: var(--blue-dark); }
.secondary { background: var(--white); border-color: #cfd9ec; color: #314566; }
.secondary:hover { border-color: var(--blue); color: var(--blue); }
.compact { min-height: 36px; padding: 5px 11px; font-size: 14px; }
.pill { display: inline-flex; align-items: center; max-width: 100%; min-height: 24px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 650; line-height: 1.45; }
.blue { color: #1545bd; background: var(--blue-light); }
.purple { color: #6a3dd0; background: #f1eaff; }
.teal { color: #126752; background: #e3f7f0; }
.neutral { color: #505867; background: #eef0f3; }

.tool-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 470px;
  padding: 4px 4px 4px 12px;
  border: 1px solid #cfdbef;
  border-radius: 10px;
  background: var(--white);
}
.tool-search:focus-within { outline: 2px solid #a9c4fd; }
.tool-search svg { flex: none; width: 18px; height: 18px; color: #506380; }
.tool-search input {
  flex: 1;
  min-width: 0;
  padding: 7px 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.tool-search .button { flex: none; min-height: 36px; padding: 4px 13px; }
.library-preview { position: relative; width: min(100%, 300px); height: 174px; justify-self: center; }
.preview-tile {
  position: absolute;
  width: 120px;
  height: 102px;
  padding: 14px;
  border: 1px solid #d9e3f9;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 14px 28px #2949921a;
}
.preview-tile span { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 8px; color: #1545bd; background: #e8efff; font-size: 14px; font-weight: 750; }
.preview-tile i { display: block; height: 5px; width: 68px; margin-top: 8px; border-radius: 4px; background: #e8eefc; }
.preview-tile i:last-child { width: 45px; }
.preview-tile-back { top: 24px; left: 34px; transform: rotate(-12deg); }
.preview-tile-front { z-index: 1; top: 41px; left: 105px; transform: rotate(7deg); }
.preview-tile-side { top: 12px; right: 19px; width: 78px; height: 78px; transform: rotate(16deg); }
.preview-tile-side span { color: #6a3dd0; background: #f1eaff; }

.nav-icon { display: grid; flex: none; place-items: center; border-radius: 8px; }
.orange { color: #865312; background: #fff0d9; }
.indigo { color: #4b47ab; background: #eeedff; }

.workspace { display: grid; grid-template-columns: 182px minmax(0, 1fr); gap: 28px; align-items: start; }
.sidebar { position: sticky; top: 84px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.nav-label { padding: 5px 9px 9px; color: var(--muted); font-size: 12px; font-weight: 650; }
.directory-section { margin-bottom: 36px; }
.directory-sidebar .nav-label { margin: 0; }
.category-list { display: grid; gap: 4px; }
.category-list button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  width: 100%;
  padding: 5px 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.category-list button:hover, .category-list button[aria-pressed="true"] { color: var(--blue-dark); background: #edf3ff; }
.category-list .nav-icon { width: 24px; height: 24px; font-size: 12px; font-weight: 680; }
.category-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.directory-main { min-width: 0; }
.directory-header { margin-bottom: 13px; }
.directory-header p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.tool-card { display: flex; flex-direction: column; overflow: hidden; }
.tool-art { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 67px; padding: 10px 14px; border-bottom: 1px solid #fff9; }
.art-icon { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #ffffffbd; border-radius: 9px; background: #ffffffab; font-weight: 730; }
.art-sample { display: grid; gap: 4px; width: 82px; padding: 8px 9px; border: 1px solid #ffffffc2; border-radius: 7px; background: #ffffff68; }
.art-sample i { height: 3px; border-radius: 2px; background: currentColor; opacity: .19; }
.art-sample i:nth-child(2) { width: 75%; }
.art-sample i:nth-child(3) { width: 52%; }
.tool-card-body { display: flex; flex: 1; flex-direction: column; padding: 11px 14px 12px; }
.tool-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.tool-card h3 { overflow-wrap: anywhere; }
.tool-card p { margin: 5px 0 8px; color: var(--muted); font-size: 13px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: auto; }
.tool-actions .text-link { min-height: 30px; font-size: 13px; text-decoration: none; }
.tool-actions .text-link:hover { text-decoration: underline; }
.tool-actions .tool-download { color: var(--muted); }
.directory-empty { grid-column: 1 / -1; padding: 18px; color: var(--muted); }
.tool-pages { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 15px; color: var(--muted); font-size: 13px; }
.button:disabled { color: #858c98; border-color: var(--line); cursor: default; }

.panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.resource { padding: 15px 17px; }
.resource-meta { display: flex; justify-content: space-between; align-items: center; gap: 4px 8px; flex-wrap: wrap; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.resource p, .resource ul { margin: 6px 0 9px; color: var(--muted); font-size: 14px; }
.resource ul { padding-left: 1.25rem; }
.text-link { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: var(--blue); font-weight: 640; }

.standalone { min-height: calc(100vh - 156px); padding-top: 35px; }
.page-heading { margin-bottom: 20px; }
.page-heading h1 { margin: 5px 0 8px; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.page-heading p { color: var(--muted); }
.materials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.materials-grid .resource { display: flex; flex-direction: column; padding: 18px; }
.materials-grid .resource h2 { font-size: 1.22rem; }
.materials-grid .text-link { align-self: start; margin-top: auto; }
.template-page { max-width: 780px; }
.back-link { margin-bottom: 10px; font-size: 14px; }
.prompt-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.prompt-heading h2 { font-size: 1.13rem; }
.template-prompt {
  margin: 12px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.template-status:empty { display: none; }

.footer { display: flex; justify-content: space-between; gap: 10px; padding: 16px 0 22px; margin-top: 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .sidebar { position: static; }
  .category-list { display: flex; flex-wrap: wrap; gap: 4px; }
  .category-list button { width: auto; }
  .category-count { margin-left: 2px; }
}

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

@media (max-width: 650px) {
  html { scroll-padding-top: 72px; }
  .wrap { width: calc(100% - 1.75rem); }
  .top-inner { min-height: 56px; gap: 8px; }
  .brand small { display: none; }
  .top nav { gap: clamp(8px, 3vw, 18px); font-size: 13px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 18px; min-height: 0; margin: 15px 0 17px; }
  .library-preview { display: none; }
  .directory-section { margin-bottom: 25px; }
  .directory-header { margin-bottom: 10px; }
  .category-list button { min-height: 34px; padding: 3px 5px; font-size: 12px; }
  .category-list .nav-icon { width: 18px; height: 18px; border-radius: 5px; font-size: 11px; }
  .materials-grid { grid-template-columns: minmax(0, 1fr); }
  .standalone { padding-top: 20px; }
  .sidebar { padding: 7px; }
}

@media (max-width: 450px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .tool-card { display: grid; grid-template-columns: 58px minmax(0, 1fr); }
  .tool-art { align-items: start; justify-content: center; min-height: 0; padding: 12px 4px; }
  .art-sample { display: none; }
  .tool-card-body { padding: 10px 11px; }
}
