/* Style and pricing catalogues share the preview's typography, controls and colors. */
.design-page{--design-green:#214e3e}
.design-page>*{min-width:0}
.design-head{margin:0 0 24px}
.design-head h1{margin:0;color:var(--ink);font:700 clamp(30px,4.6vw,48px)/1.12 var(--serif);overflow-wrap:anywhere}
.design-head p{margin:10px 0 0;max-width:740px;color:var(--muted);font-size:15px}
.design-head p strong{color:var(--brand)}
.design-back{display:inline-block;margin:0 0 18px;font-size:14px;font-weight:650;color:var(--brand)}
.design-back:hover{text-decoration:underline;text-underline-offset:3px}
.design-actions,.design-fields,.design-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.design-actions .btn,.style-toolbar>.btn{min-height:40px;height:auto;white-space:normal;text-align:center;line-height:1.35;padding-block:9px}
.design-controls{display:grid;gap:12px;margin:18px 0 13px;padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:14px}
.design-fields input,.design-fields select,.board-edit input,.board-edit textarea{min-height:40px;min-width:0;max-width:100%;padding:8px 12px;border:1px solid var(--line2);border-radius:9px;background:#fbfcf8;color:var(--ink);font-size:13px}
.design-fields input{flex:1 0 175px}
.design-fields select{flex:0 1 auto}
.design-count{color:var(--muted);font-size:13px;margin:15px 0 11px;scroll-margin-top:70px}
.design-chip{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:3px 10px;background:var(--surface);border:1px solid var(--line);border-radius:999px;color:var(--ink2);font-size:12.5px;font-weight:600}
.design-chip[aria-pressed=true],.style-toolbar>.btn[aria-pressed=true]{background:var(--brand-bg);border-color:var(--brand);color:var(--brand)}
.design-chip:hover{border-color:var(--brand)}
.design-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:22px auto;color:var(--muted);font-size:13px}
.design-pagination:empty{display:none}
.design-pagination button:disabled{opacity:.45;cursor:default}

/* UI style specimens */
.style-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px}
.design-switch{display:inline-flex;max-width:100%;padding:3px;border-radius:12px;background:#eaece4;border:1px solid var(--line);gap:2px}
.design-switch button{min-height:32px;padding:7px 12px;border:1px solid transparent;background:transparent;border-radius:9px;color:var(--muted);font-size:13px;font-weight:650;line-height:1.3}
.design-switch button[aria-pressed=true]{border-color:var(--line);background:var(--surface);color:var(--brand);box-shadow:0 1px 3px #18261b13}
.style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.style-grid>.empty{grid-column:1/-1}
.style-card{min-width:0;overflow:hidden;display:flex;flex-direction:column;transition:border-color .16s ease,box-shadow .16s ease}
#style-gallery .style-card{content-visibility:auto;contain-intrinsic-block-size:auto 330px}
.style-card:hover{border-color:#b9c8bc;box-shadow:0 6px 22px #2b423310}
.style-visual{display:block;outline-offset:-3px;border-bottom:1px solid var(--line)}
.style-info{flex:1;display:flex;flex-direction:column;padding:13px 14px 12px;min-width:0}
.style-info>small,.style-category{color:var(--muted);font-size:12px}
.style-category i{display:inline-block;width:3px;height:3px;margin:0 4px 2px;background:var(--faint);border-radius:50%}
.style-heart{display:grid;place-items:center;flex:none;width:34px;height:34px;background:var(--bg);border:1px solid var(--line);border-radius:50%;color:var(--brand);font-size:20px;line-height:1}
.style-heart[aria-pressed=true]{background:var(--brand-bg);border-color:#c7dcd0}
.style-compare{margin:17px 0 20px;padding:14px;background:#eeeee6}
.style-compare-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.style-compare-head strong{color:var(--brand);font-size:15px}
.style-compare-head small{margin-left:4px;color:var(--muted)}
.style-compare-head p{margin:2px 0 0;font-size:13px;color:var(--ink2)}
.style-compare .style-grid{margin-top:12px}

.style-web-image{display:block;width:100%;height:auto;max-width:640px;aspect-ratio:8/5;object-fit:contain}
.style-visual .style-web-image,.style-detail-visual>.style-web-image{margin-inline:auto}
.style-card .style-detail-visual{margin:14px 0 18px;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:#e7e9e0}
.style-web-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}
.style-web-pair figure{margin:0;min-width:0}
.style-web-pair img{border-radius:7px}
.style-web-pair figcaption{margin-top:5px;color:var(--muted);font-size:12px}
.style-tokens{padding:18px;display:grid;gap:14px}
.style-tokens h2,.flow-detail-table h2,.board-section h2{margin:0;color:var(--ink);font:700 23px/1.3 var(--serif)}
.style-tokens p{margin:4px 0;color:var(--ink2);font-size:14px}
.style-tokens small{color:var(--muted);font-size:12px}
.detail-swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.detail-swatches button{padding:7px;text-align:left;min-width:0;border-color:var(--line);overflow-wrap:anywhere}
.detail-swatches button:hover{border-color:var(--brand)}
.detail-swatches i{width:25px;height:25px}
.detail-swatches span,.detail-swatches code{display:block}
.detail-swatches span{font-size:12px;color:var(--muted);line-height:1.3}
.detail-swatches code{color:var(--ink);font-size:12px}
.style-dialog{max-width:calc(100% - 24px);max-height:92dvh;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink)}
.style-dialog::backdrop{background:#17261dbb}
.style-dialog>div{display:flex;flex-wrap:wrap;align-items:center;gap:7px;justify-content:space-between;margin-bottom:10px}
.style-dialog .btn{height:34px;font-size:12px;padding:0 9px}
.style-dialog img{max-height:calc(92dvh - 110px);width:auto;max-width:100%;margin:auto;border-radius:8px}

/* Apple Store offers */
.design-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #d9e3d9;border-radius:14px;background:#edf2e9}
.design-summary>div{min-width:0;padding:13px 16px;border-right:1px solid #d9e3d9}
.design-summary>div:last-child{border-right:0}
.design-summary small{display:block;color:var(--muted);font-size:12.5px;line-height:1.4}
.design-summary b{display:block;margin-top:3px;font-size:clamp(21px,3.6vw,32px);line-height:1.2;color:var(--brand);font-variant-numeric:tabular-nums}
.flow-list{display:grid;gap:8px}
.flow-row{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(72px,.2fr) minmax(90px,.3fr) auto;align-items:center;gap:12px;padding:11px 14px}
.flow-row:hover{border-color:var(--brand)}
.flow-row .ico{width:43px;height:43px}
.flow-row-main{min-width:0}
.flow-row-main h2{margin:0;color:var(--ink);font-size:15px;line-height:1.25;overflow-wrap:anywhere}
.flow-row-main small,.flow-row-metric small{color:var(--muted);font-size:12px;line-height:1.3}
.flow-pills{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.flow-pills .pill{height:auto;min-height:19px;padding:3px 6px;line-height:1.05;white-space:normal;font-size:12px}
.flow-row-metric{text-align:right;min-width:0}
.flow-row-metric b{display:block;font-size:14px;color:var(--brand);white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.flow-chevron{color:var(--brand);font-size:14px}
.flow-detail-identity{display:flex;align-items:center;gap:14px}
.flow-detail-identity .design-head{margin:0}
.flow-detail-identity>.ico{width:62px;height:62px}
.flow-detail-pills{margin-top:15px}
.flow-detail-pills .pill{font-size:12px;padding:5px 8px}
.flow-detail-table{margin-top:18px;padding:18px;min-width:0;overflow-wrap:anywhere}
.flow-detail-table>h2{margin-bottom:12px}

/* Boards */
.board-section{margin-top:25px}
.board-featured{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:11px 0 20px}
.board-feature{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:150px;padding:15px;background:linear-gradient(135deg,#fbfcf8,#eef3eb);overflow-wrap:anywhere}
.board-feature:nth-child(2){background:linear-gradient(135deg,#fdfbf6,#f4eee0)}
.board-feature:nth-child(3){background:linear-gradient(135deg,#fbfcfa,#e9efed)}
.board-feature small,.board-personal-head small{color:var(--muted);font-size:12px}
.board-feature h3{margin:6px 0 4px;font:700 19px/1.3 var(--serif)}
.board-feature p{margin:0 0 8px;color:var(--ink2);font-size:13px}
.board-feature strong{margin-top:auto;padding-top:5px;color:var(--brand);font-size:13px}
.board-feature:hover{border-color:var(--brand)}
.board-personal{border-top:1px solid var(--line2);padding-top:18px}
.board-personal-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.board-group h3{margin:14px 0 7px;color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.board-item{margin:0 0 8px;padding:12px 14px;overflow-wrap:anywhere}
.board-item-head,.board-item-head a{display:flex;gap:8px;align-items:center;min-width:0}
.board-item-head{justify-content:space-between}
.board-item-head a:hover strong{color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.board-item-head .pill,.board-item-head button{flex:none}
.board-item p{margin:7px 0 0;color:var(--ink2);font-size:13px;white-space:pre-wrap}
.board-edit{display:grid;grid-template-columns:minmax(0,180px) minmax(0,1fr);gap:9px;margin-top:9px}
.board-edit label{min-width:0;font-size:12px;color:var(--muted)}
.board-edit input,.board-edit textarea{display:block;width:100%;margin-top:3px}
.board-edit textarea{resize:vertical}
.board-add[aria-pressed=true]{color:var(--brand);border-color:#c4d9ca;background:var(--brand-bg)}

@media(max-width:1100px){.style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.style-compare .style-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){
  .design-page .rule{margin-bottom:16px}.design-head{margin-bottom:18px}
  .design-head p{font-size:14px}.design-controls{padding:11px}
  .design-switch button{font-size:12px;padding-inline:8px}
  .design-fields input{flex-basis:100%}.design-fields select{max-width:100%;flex:1 1 105px}
  .style-grid,.board-featured,.style-web-pair{grid-template-columns:1fr;gap:10px}
  #style-gallery .style-card{contain-intrinsic-block-size:auto 352px}
  .style-compare .style-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:85%;gap:9px;overflow-x:auto;scroll-snap-type:x mandatory}
  .style-compare .style-card{scroll-snap-align:start}
  .style-card .style-screens{padding:8px;gap:6px}.style-card     .style-tokens,.flow-detail-table{padding:12px}
  .detail-swatches{grid-template-columns:repeat(2,minmax(0,1fr))}
  .design-summary>div{padding:9px 8px}.design-summary small{font-size:12px}
  .flow-row{grid-template-columns:auto minmax(0,1fr) minmax(65px,.42fr);gap:7px;padding:9px}
  .flow-row .ico{grid-row:1/3;width:33px;height:33px}.flow-row-main{grid-row:1/3}.flow-chevron{display:none}
  .flow-row-tiers,.flow-row-revenue{grid-column:3}.flow-row-tiers{grid-row:2}.flow-row-revenue{grid-row:1}
  .flow-row-main h2{font-size:14px}.flow-row-metric b{font-size:12.5px}.flow-row-metric small{font-size:12px}
  .flow-pills .pill{font-size:12px;padding:2px 4px;min-height:16px}.flow-detail-identity>.ico{width:42px;height:42px}
  .board-edit{grid-template-columns:1fr}.board-feature{min-height:0}
}
@media(prefers-reduced-motion:reduce){.style-card{transition:none}}

/* ---- 风格卡片 / 详情（手机优先） ---- */
.style-disclaimer-inline{display:block;margin-top:6px;color:var(--faint);font-size:12.5px}
.style-disclaimer{margin:4px 0 0;color:var(--faint);font-size:12.5px;line-height:1.6}
.phone-frame{margin:0;position:relative;aspect-ratio:390/844;border-radius:12%/5.6%;background:#111;padding:2.2%;box-shadow:0 10px 26px rgba(22,24,27,.22),inset 0 0 0 1px rgba(255,255,255,.08);overflow:hidden}
.phone-frame img{width:100%;height:100%;object-fit:cover;object-position:top;border-radius:9%/4.2%;background:#fff;display:block}
.phone-frame.dark img{background:#111}
.phone-frame::after{content:"";position:absolute;left:50%;top:3.4%;width:24%;height:2.6%;transform:translateX(-50%);background:#111;border-radius:999px}
.style-stage{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:12px;padding:14px;background:var(--sunk);align-items:center}
.style-card.mode-app .style-stage{border-bottom:1px solid var(--line)}
.stage-main{display:block;min-width:0}
.style-thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.style-thumbs button{padding:3px;border:2px solid transparent;border-radius:12px;background:transparent;min-width:36px;min-height:36px}
.style-thumbs button img{width:100%;aspect-ratio:390/844;object-fit:cover;object-position:top;border-radius:9px;display:block;box-shadow:0 1px 3px rgba(22,24,27,.18);background:#fff}
.style-thumbs button[aria-pressed=true]{border-color:var(--ink)}
.style-thumbs button:hover{border-color:var(--line2)}
.style-info{padding:14px 16px 14px}
.style-k{display:flex;justify-content:space-between;align-items:center;gap:8px}
.style-info h2{margin:6px 0 0;font:700 22px/1.25 var(--serif);overflow-wrap:anywhere}
.style-info h2 a:hover{color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.style-info>small{display:block;margin-top:2px}
.style-info>p{margin:8px 0 10px;color:var(--ink2);font-size:13.5px;line-height:1.6;overflow-wrap:anywhere;flex:1}
.style-swatches{display:flex;gap:6px;flex-wrap:wrap;min-width:0;margin-bottom:12px}
.style-swatches i{display:block;width:22px;height:22px;border-radius:7px;box-shadow:inset 0 0 0 1px rgba(21,30,24,.18)}
.style-info footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.style-info footer .design-chip{margin-left:auto}
.style-heart svg{width:18px;height:18px}
.style-heart[aria-pressed=true]{background:var(--brand-bg);border-color:#bfd9cb;color:var(--brand)}
.style-heart[aria-pressed=true] svg{fill:currentColor}
/* 详情 */
.detail-toolbar{align-items:center}
.detail-nav{display:flex;align-items:center;gap:8px}
.detail-nav .muted{font-size:12.5px;font-variant-numeric:tabular-nums}
.style-detail-visual.app{padding:14px;display:grid;gap:14px;background:var(--sunk)}
.detail-layout{display:flex;justify-content:center}
.detail-pair{display:grid;grid-template-columns:repeat(2,minmax(0,260px));gap:18px;justify-content:center}
.detail-pair>div,.strip-item{min-width:0;text-align:center}
.detail-pair figcaption,.strip-item figcaption{margin-top:8px;color:var(--muted);font-size:12.5px}
.detail-pair .phone-frame,.strip-item .phone-frame{cursor:zoom-in}
.detail-strip-wrap{position:relative;display:flex;align-items:center;gap:8px}
.detail-strip{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 2px 8px;flex:1;min-width:0}
.detail-strip::-webkit-scrollbar{display:none}
.strip-item{flex:0 0 min(300px,78%);scroll-snap-align:center}
.strip-arrow{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line2);background:var(--surface);font-size:22px;line-height:1;color:var(--ink);box-shadow:var(--shadow)}
.style-detail-visual.app .style-thumbs{grid-template-columns:repeat(4,64px);justify-content:center}
.style-tokens-h{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.style-tokens-h h2{margin:4px 0 0}
.style-tokens-h small{color:var(--muted);font-size:12.5px}
.detail-icons{display:flex;gap:8px;flex:none}
.tokens-line{display:block;color:var(--muted);font-size:12.5px;line-height:1.6}
.tokens-label{font-size:13px;font-weight:600;color:var(--ink2);margin-top:4px;display:flex;justify-content:space-between}
.tokens-label span{font-weight:400;color:var(--faint);font-size:12.5px}
.detail-swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:0}
.detail-swatches button{display:flex;align-items:center;gap:8px;padding:8px;min-height:44px;text-align:left;min-width:0;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);overflow-wrap:anywhere}
.detail-swatches button:hover{border-color:var(--brand)}
.detail-swatches i{display:block;flex:none;width:28px;height:28px;border-radius:8px;box-shadow:inset 0 0 0 1px rgba(21,30,24,.18)}
.detail-swatches span,.detail-swatches code{display:block;line-height:1.3}
.detail-swatches span{font-size:12px;color:var(--muted)}
.detail-swatches code{color:var(--ink);font-size:12.5px;font-family:var(--mono)}
.style-tokens .design-actions{margin-top:4px}
.style-tokens .design-actions .btn.lg{flex:1 1 200px}
@media(max-width:720px){
  .style-stage{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);padding:12px;gap:10px}
  .detail-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .style-detail-visual.app{padding:10px}
  .strip-arrow{display:none}
  .detail-swatches{grid-template-columns:repeat(2,minmax(0,1fr))}
  .style-tokens .design-actions .btn{flex:1 1 100%}
  .detail-nav .btn.sm{padding:0 10px}
}
