:root {
  --paper: #fffefd;
  --ink: #292623;
  --muted: #6c6864;
  --line: #eee8e2;
  --card-line: #f0e3d8;
  --accent: #ad5c1d;
  --accent-deep: #9b4d12;
  --accent-soft: #fff8f1;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; color: var(--ink); background: #fff; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.start-header { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; align-items: center; min-height: 72px; padding: 0 30px; border-bottom: 1px solid var(--line); background: #fff; }
.start-brand { display: inline-flex; align-items: center; width: max-content; gap: 12px; }
.start-brand__mark { display: inline-flex; width: 40px; height: 40px; color: #c66a2b; }
.start-brand__mark svg { width: 100%; height: 100%; }
.start-brand__copy { display: grid; gap: 1px; }
.start-brand__copy strong { font-size: 18px; line-height: 1.15; letter-spacing: .08em; }
.start-brand__copy small { font-size: 12px; letter-spacing: .06em; }
.start-nav { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 2vw, 24px); height: 72px; }
.start-nav a { position: relative; display: inline-flex; align-items: center; height: 100%; font-size: 16px; font-weight: 600; white-space: nowrap; }
.start-nav a:hover { color: var(--accent-deep); }
.start-nav a[aria-current="page"] { color: var(--accent-deep); }
.start-nav a[aria-current="page"]::after { position: absolute; right: 0; bottom: 15px; left: 0; height: 2px; border-radius: 2px; background: var(--accent-deep); content: ""; }
.start-header__actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.start-membership { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #f0d9c8; border-radius: 9px; color: var(--accent-deep); background: #fffdfb; font-size: 13px; font-weight: 600; }
.start-membership:hover { background: var(--accent-soft); }
.start-membership svg { width: 19px; height: 19px; }
.start-icon-button, .start-avatar { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.start-icon-button { width: 27px; height: 36px; color: #292623; }
.start-icon-button svg { width: 25px; height: 25px; }
.start-avatar { min-width: 90px; min-height: 37px; padding: 5px 10px; border: 1px solid #c1bfc0; border-radius: 18px; background: #f8f6f3; font-size: 13px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }

.start-main { width: min(1374px, calc(100% - 74px)); margin: 0 auto; padding-top: 37px; }
.start-intro { display: grid; grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr); column-gap: 32px; align-items: start; height: 114px; }
.start-intro__copy { padding-top: 1px; }
.start-intro h1 { margin: 0; color: #6d3617; font-size: 36px; line-height: 1.25; letter-spacing: .04em; }
.start-intro p { margin: 9px 0 0; color: #6d6864; font-size: 15px; line-height: 1.45; }
body[data-site-layout="start"] .start-intro .start-usage-tip { margin: 12px 0 0; color: #b23b32; font-size: 13px; line-height: 1.6; min-width: 0; max-width: 100%; }
.creation-stepper { display: grid; grid-template-columns: 228px 85px 208px 79px 208px; align-items: center; width: 808px; height: 76px; margin-right: 19px; }
.creation-step { display: flex; align-items: center; gap: 13px; height: 76px; padding: 0 15px; border: 1px solid #f1ece8; border-radius: 15px; background: #fffdfc; }
.creation-step.is-active { border-color: #f0dcca; background: #fff9f3; }
.creation-step__number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; color: #77736e; background: #f2f1f0; font-size: 22px; }
.creation-step.is-active .creation-step__number { color: #fff; background: var(--accent); }
.creation-step > span:last-child { display: grid; gap: 5px; min-width: 0; }
.creation-step strong { font-size: 16px; line-height: 1.1; white-space: nowrap; }
.creation-step small { color: #696560; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.creation-step__arrow { color: var(--accent); font-size: 29px; text-align: center; }

.theme-grid { display: grid; grid-template-columns: minmax(0, 436fr) minmax(0, 416fr) minmax(0, 446fr); grid-template-rows: 302px 278px; gap: 36px 28px; width: calc(100% - 20px); }
.theme-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--card-line); border-radius: 12px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.theme-card:hover, .theme-card.is-selected { border-color: #d79762; box-shadow: 0 8px 20px rgba(142, 84, 35, .1); transform: translateY(-2px); }
.theme-card.is-selected { box-shadow: 0 0 0 2px rgba(173, 92, 29, .14), 0 8px 20px rgba(142, 84, 35, .1); }
.theme-card[role="link"]:focus-visible { outline: 3px solid rgba(173, 92, 35, .25); outline-offset: 3px; }
.theme-card > img { display: block; flex: 0 0 150px; width: calc(100% - 6px); height: 150px; margin: 0 3px; object-fit: cover; }
.theme-card:nth-child(-n + 3) > img { margin-top: 3px; }
.theme-card__content { display: block; padding: 18px 18px 12px; }
.theme-card:nth-child(-n + 3) .theme-card__content { padding-top: 20px; }
.theme-card__content > strong { display: block; font-size: 20px; line-height: 1.2; font-weight: 600; }
.theme-card__content > small { display: block; margin-top: 8px; color: #6f6b67; font-size: 13px; line-height: 1.35; }
.theme-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.theme-card:nth-child(-n + 3) .theme-tags { margin-top: 22px; }
.theme-tag { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 7px; border: 1px solid #f2e2d5; border-radius: 9px; color: #6d6864; background: #fffdfb; font-size: 12px; white-space: nowrap; }
.theme-tag--link { text-decoration: none; }
.theme-tag--link:hover, .theme-tag--link:focus-visible { border-color: #e3b58f; color: #8b4a25; background: #fff7ef; }
.theme-tag--disabled { opacity: .58; cursor: not-allowed; }
.theme-tag svg { width: 14px; height: 14px; color: #c36526; stroke-width: 1.8; }
.theme-card:is([data-theme="pet"], [data-theme="love"], [data-theme="travel"]) .theme-tags { flex-wrap: nowrap; gap: 6px; }
.theme-card:is([data-theme="pet"], [data-theme="love"], [data-theme="travel"]) .theme-tag { padding-inline: 5px; }

.start-practical-tools { width: calc(100% - 20px); margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.start-practical-heading h2 { margin: 0; color: #6d3617; font-size: 32px; font-weight: 700; line-height: 1.25; }
.start-practical-heading p { margin: 8px 0 0; color: #696560; font-size: 15px; line-height: 1.5; }
.start-practical-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.start-practical-card { display: grid; grid-template-columns: 30px minmax(0, 1fr) 20px; align-items: center; gap: 18px; min-height: 96px; padding: 20px 24px; border: 1px solid #e4e2df; border-radius: 14px; color: #222; background: #fcfcfb; transition: border-color .15s ease, background-color .15s ease; }
.start-practical-card > strong { font-size: 20px; font-weight: 600; line-height: 1.4; }
.start-practical-card > svg:first-child { width: 28px; height: 28px; stroke-width: 1.8; }
.start-practical-card > svg:last-child { width: 20px; height: 20px; color: #96918b; stroke-width: 1.8; }
.start-practical-card:hover { border-color: #d4ad8d; background: var(--accent-soft); }
.start-practical-card:focus-visible { outline: 3px solid rgba(173, 92, 29, .35); outline-offset: 3px; }
@media (max-width: 900px) {
  .start-practical-tools { width: 100%; margin-top: 36px; padding-top: 28px; }
  .start-practical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-practical-card { gap: 14px; padding-inline: 20px; }
}
@media (max-width: 620px) {
  .start-practical-heading h2 { font-size: 28px; }
  .start-practical-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .start-practical-card { min-height: 80px; padding: 18px 20px; }
  .start-practical-card > strong { font-size: 18px; }
}

.recent-use { display: grid; grid-template-columns: minmax(0, 1fr) 40px; grid-template-rows: 18px 60px; align-items: center; column-gap: 12px; row-gap: 2px; width: calc(100% - 20px); height: 94px; margin-top: 36px; padding: 7px 28px; border: 1px solid #f0e6dd; border-radius: 12px; background: #fff; }
.recent-use__label { display: flex; grid-column: 1; grid-row: 1; align-items: center; gap: 28px; }
.recent-use__label strong { font-size: 15px; line-height: 1.2; white-space: nowrap; }
.recent-use__label button { display: inline-flex; align-items: center; gap: 5px; width: max-content; padding: 0; border: 0; color: #aaa7a3; background: transparent; font-size: 12px; cursor: pointer; }
.recent-use__label button:hover { color: var(--accent); }
.recent-use__label button:disabled { opacity: .48; cursor: default; }
.recent-use__label button svg { width: 14px; height: 14px; }
.recent-items { display: grid; grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 356fr) minmax(0, 378fr) minmax(0, 390fr); gap: 18px; width: min(1160px, 100%); min-width: 0; }
.recent-item { display: flex; align-items: center; gap: 13px; min-width: 0; height: 60px; padding: 0 9px 0 0; overflow: hidden; border: 1px solid #f1ece7; border-radius: 7px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.recent-item img { display: block; flex: 0 0 88px; width: 88px; height: 58px; object-fit: cover; }
.recent-item > span { display: grid; gap: 7px; min-width: 0; }
.recent-item strong { overflow: hidden; font-size: 15px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.recent-item small { color: #999590; font-size: 12px; line-height: 1.2; white-space: nowrap; }
.recent-item:hover strong { color: var(--accent-deep); }
.recent-empty { display: flex; grid-column: 1 / -1; align-items: center; height: 60px; padding: 0 16px; border: 1px dashed #eadfd6; border-radius: 8px; color: #9a948f; background: #fffdfb; font-size: 12px; }
.recent-next { display: inline-flex; grid-column: 2; grid-row: 1 / 3; align-items: center; justify-content: center; justify-self: end; width: 37px; height: 37px; border: 1px solid #e5e1de; border-radius: 50%; color: #4b4641; background: #fff; cursor: pointer; }
.recent-next:hover { border-color: #d39b6d; color: var(--accent-deep); }
.recent-next svg { width: 20px; height: 20px; }

.start-footer { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; min-height:104px; margin-top:11px; padding:24px 32px; border-top:1px solid var(--line); color:#746a60; font-size:14px; }
.start-footer p { order:1; margin:0; color:#94897d; font-size:12px; line-height:1.6; text-align:center; }
.start-footer nav { display: flex; justify-content: center; align-items: center; gap:22px; flex-wrap:wrap; text-align:center; }
.start-footer nav a:hover { color: var(--accent-deep); }
.start-footer nav span { color: #aaa5a0; }
.start-social { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.start-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #ddd8d3; border-radius: 50%; background: #fff; font-weight: 700; }
.start-social a:hover { border-color: #d39b6d; color: var(--accent-deep); background: #fff8f1; }

@media (max-width: 1180px) {
  .start-header { grid-template-columns: 250px minmax(0, 1fr) auto; padding-inline: 22px; }
  .start-nav { gap: 34px; }
  .start-intro { grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); column-gap: 24px; }
  .creation-stepper { transform: scale(.9); transform-origin: right top; }
  .theme-grid { grid-template-rows: 338px 328px; column-gap: 18px; }
  .theme-card__content { padding-inline: 14px; }
  .theme-tag { padding-inline: 8px; font-size: 12px; }
  .theme-card:is([data-theme="pet"], [data-theme="love"], [data-theme="travel"]) .theme-tags { flex-wrap: wrap; gap: 8px; }
  .theme-card:is([data-theme="pet"], [data-theme="love"], [data-theme="travel"]) .theme-tag { padding-inline: 8px; }
  .recent-items { gap: 8px; }
  .start-footer { grid-template-columns: 1fr; justify-items: center; gap: 15px; padding-block: 20px; }
}

@media (max-width: 900px) {
  .start-header { grid-template-columns: 1fr auto; min-height: 110px; padding-block: 13px; }
  .start-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; width: 100%; height: 35px; gap: 28px; overflow-x: auto; }
  .start-nav a[aria-current="page"]::after { bottom: 2px; }
  .start-main { width: min(700px, calc(100% - 36px)); }
  .start-intro { grid-template-columns: 1fr; height: auto; gap: 24px; }
  .start-intro:has(.start-usage-tip) { gap: 12px; }
  body[data-site-layout="start"] .start-intro .start-usage-tip { margin-top: 0; }
  .creation-stepper { width: 100%; transform: none; transform-origin: initial; }
  .theme-grid, .recent-use { width: 100%; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; margin-top: 27px; }
  .start-footer { grid-template-columns: 1fr; justify-items: center; gap: 15px; padding-block: 20px; }
}

@media (max-width: 620px) {
  .start-header { padding-inline: 16px; }
  .start-brand__mark { width: 39px; height: 39px; }
  .start-brand__copy strong { font-size: 17px; }
  .start-brand__copy small { font-size: 11px; }
  .start-header__actions { gap: 8px; }
  .start-membership { padding: 7px 8px; font-size: 12px; }
  .start-membership svg { width: 16px; height: 16px; }
  .start-avatar { width: 35px; height: 35px; }
  .start-main { width: calc(100% - 28px); padding-top: 28px; }
  .start-intro h1 { font-size: 32px; }
  .start-intro p { font-size: 15px; }
  .creation-stepper { grid-template-columns: 1fr; height: auto; gap: 10px; }
  .creation-step { height: 64px; }
  .creation-step__arrow { transform: rotate(90deg); }
  .theme-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 15px; margin-top: 28px; }
  .theme-card, .theme-grid .theme-card:nth-child(n) { min-height: 0; }
  .theme-card > img { height: auto; aspect-ratio: 2.75 / 1; }
  .theme-card__content { padding: 15px; }
  .theme-tags { margin-top: 14px; }
  .recent-use { grid-template-columns: 1fr 34px; height: auto; gap: 12px; padding: 14px; }
  .recent-use__label { grid-column: 1 / -1; grid-row: 1; display: flex; justify-content: space-between; align-items: center; }
  .recent-items { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 1fr; gap: 11px; }
  .recent-item { height: 60px; }
  .recent-next { grid-column: 2; grid-row: 1; }
  .start-footer { font-size: 12px; }
  .start-footer nav { flex-wrap: wrap; gap: 9px 14px; }
}

@media (max-width: 380px) {
  .start-header { display: flex; flex-wrap: wrap; gap: 12px; }
  .start-header .start-nav { order: 3; flex-basis: 100%; }
  .start-header__actions { margin-left: auto; }
}
