/* Designz dashboard */
:root {
  --paper: #f4f1ea;
  --paper2: #ebe6da;
  --card: #fbf9f4;
  --ink: #151515;
  --ink2: #4a463f;
  --mute: #8a8478;
  --line: #ddd6c8;
  --red: #ff4a1c;
  --blue: #2f5bea;
  --sun: #ffc531;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.dash { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

/* Sidebar */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--paper); }
.wordmark { font: 700 28px/1 var(--serif); letter-spacing: -0.04em; text-decoration: none; padding: 4px 8px; }
.wordmark span { color: var(--red); }
.create { display: flex; align-items: center; gap: 10px; justify-content: center; height: 46px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: 3px 3px 0 var(--red); transition: transform 0.12s, box-shadow 0.12s; }
.create span { font-size: 20px; line-height: 1; }
.create:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--red); }
.create:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--red); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink2); font-weight: 500; }
.side-nav a[hidden] { display: none; }
.side-nav a svg { width: 18px; height: 18px; flex: none; }
.side-nav a em { margin-left: auto; font: 500 12px var(--mono); font-style: normal; color: var(--mute); }
.side-nav a:hover { background: var(--paper2); color: var(--ink); }
.side-nav a.on { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.side-nav a.on svg { color: var(--red); }
.side-foot { margin-top: auto; padding: 10px; font-size: 13px; color: var(--ink2); }
.meter { height: 6px; border-radius: 6px; background: var(--paper2); overflow: hidden; margin-bottom: 8px; }
#meterBar { height: 100%; width: 2%; background: var(--ink); border-radius: 6px; }
.side-foot p { margin: 0 0 6px; }
.tiny { font-size: 12px; color: var(--mute); }
.tiny-link { font-size: 12px; color: var(--mute); text-decoration: none; }
.tiny-link:hover { color: var(--ink); }

/* Top */
.main { min-width: 0; padding: 0 40px 80px; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 18px 0; background: linear-gradient(var(--paper) 75%, rgba(244, 241, 234, 0)); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 18px; }
.search { flex: 1; min-width: 0; max-width: 640px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--ink); }
.search svg { width: 18px; height: 18px; color: var(--mute); }
.search input { flex: 1; border: 0; background: none; outline: none; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: none; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #000; }
.btn.ghost:hover { background: var(--paper2); }
#importBtn { cursor: pointer; margin-left: auto; }

/* Sections */
.view { animation: fadein 0.25s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.hello { padding: 28px 0 10px; }
.kicker { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--mute); margin: 0 0 8px; }
h1 { font: 600 clamp(34px, 4.4vw, 56px)/1.02 var(--serif); letter-spacing: -0.035em; margin: 0; }
h1 em { font-style: italic; font-weight: 400; color: var(--ink2); }
section { margin-top: 44px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
h2 { font: 600 22px var(--serif); letter-spacing: -0.02em; margin: 0; }
.sec-head a { font-size: 14px; color: var(--ink2); text-decoration: none; border-bottom: 1px solid var(--line); }
.sec-head a:hover { color: var(--ink); border-color: var(--ink); }
.page-head { padding: 26px 0 22px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head .sub { flex-basis: 100%; margin: 0; color: var(--ink2); max-width: 640px; }
.tools label { font-size: 14px; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.tools select { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); padding: 0 10px; }
.note { color: var(--ink2); margin: -8px 0 18px; }

/* Size cards */
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.size { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-align: left; transition: border-color 0.15s, transform 0.15s; }
.size:hover { border-color: var(--ink); transform: translateY(-2px); }
.sz-pv { width: 100%; height: 76px; display: grid; place-items: center; margin-bottom: 8px; }
.sz-pv i { display: block; background: var(--paper2); border: 1.5px solid var(--ink); border-radius: 3px; }
.size:nth-child(3n+1):hover .sz-pv i { background: var(--sun); }
.size:nth-child(3n+2):hover .sz-pv i { background: var(--red); }
.size:nth-child(3n):hover .sz-pv i { background: var(--blue); }
.sz-pv i.dashed { width: 52px; height: 40px; border-style: dashed; background: none; }
.size b { font-weight: 600; font-size: 14px; }
.size small { font: 500 11px var(--mono); color: var(--mute); }

/* Design cards */
.grid.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 18px; }
.design { min-width: 0; }
.d-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--paper2); overflow: hidden; border: 1px solid var(--line); transition: transform 0.15s, box-shadow 0.15s; }
.d-thumb img { max-width: 86%; max-height: 86%; object-fit: contain; box-shadow: 0 6px 18px rgba(21, 21, 21, 0.16); }
.d-thumb:hover { transform: translateY(-2px); box-shadow: 0 10px 0 -4px var(--ink); }
.d-blank { font: 600 48px var(--serif); color: var(--mute); }
.d-meta { display: flex; align-items: flex-start; gap: 4px; padding: 10px 2px 0; }
.d-meta > div { flex: 1; min-width: 0; }
.d-meta h4 { margin: 0; font-weight: 600; font-size: 15px; min-width: 0; }
.d-name { all: unset; cursor: text; display: flex; align-items: center; gap: 6px; max-width: 100%; border-radius: 4px; padding: 1px 4px; margin-left: -4px; }
.d-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-name svg { width: 13px; height: 13px; flex: none; opacity: 0; color: var(--mute); transition: opacity .15s; }
.d-name:hover, .d-name:focus-visible { background: rgba(21,21,21,.06); }
.d-name:hover svg, .d-name:focus-visible svg { opacity: 1; }
@media (hover: none) { .d-name svg { opacity: .6; } }
.d-rename { width: 100%; font: 600 15px inherit; font-family: inherit; color: inherit; background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; padding: 2px 6px; outline: none; box-shadow: 3px 3px 0 var(--red); }
.d-meta p { margin: 0; font-size: 12px; color: var(--mute); }
.star, .more { width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--mute); font-size: 16px; line-height: 1; }
.star:hover, .more:hover { background: var(--paper2); color: var(--ink); }
.star.on { color: #e0a400; }
.pop { position: absolute; z-index: 50; min-width: 200px; padding: 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(21, 21, 21, 0.14); }
.pop button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; }
.pop button:hover { background: var(--paper2); }
.pop button.danger { color: #c4320f; }

/* Templates */
.tpl-row { min-width: 0; max-width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 6px; align-items: end; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px 18px; align-items: end; }
.tpl { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.tpl-img { display: block; aspect-ratio: var(--r); max-height: 300px; border-radius: 10px; overflow: hidden; background: var(--paper2); border: 1px solid var(--line); margin-bottom: 8px; transition: transform 0.2s; position: relative; }
.tpl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl:hover .tpl-img { transform: rotate(-1.2deg) translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }
.tpl b { font-weight: 600; font-size: 14px; }
.tpl small { font-size: 12px; color: var(--mute); }
.shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%); background-size: 200% 100%; animation: sh 1.2s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chips button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.chips button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.stats div { padding: 18px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats b { font: 600 40px/1 var(--serif); letter-spacing: -0.03em; }
.stats span { font-size: 13px; color: var(--mute); }

.empty { text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line); border-radius: 20px; color: var(--mute); }
.empty svg { width: 120px; height: 80px; color: var(--red); }
.empty h3 { font: 600 22px var(--serif); color: var(--ink); margin: 8px 0 4px; }
.empty p { margin: 0 auto; max-width: 420px; }

/* Stock browser (light) */
.stock { display: flex; flex-direction: column; gap: 14px; }
.stock-search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--mute); max-width: 720px; }
.stock-search:focus-within { border-color: var(--ink); }
.stock-search input { flex: 1; border: 0; outline: none; background: none; font-size: 16px; }
.stock-tabs { display: flex; gap: 8px; }
.stock-tabs button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: none; }
.stock-tabs button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stock-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stock-chips button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; }
.stock-chips button:hover { border-color: var(--ink); }
.stock-status { color: var(--ink2); font-size: 14px; }
.stock-grid { display: flex; gap: 12px; align-items: flex-start; }
.stock-grid .col { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stock-item { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--paper2); }
.stock-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.stock-item:hover img { transform: scale(1.04); }
.stock-item .credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); opacity: 0; transition: opacity 0.2s; text-align: left; }
.stock-item:hover .credit { opacity: 1; }
.stock-more { height: 40px; color: var(--mute); text-align: center; }
.photo-detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.photo-detail img { width: 100%; border-radius: 10px; }
.photo-detail h4 { margin: 0 0 6px; font: 600 20px var(--serif); }

/* Brand */
.brand-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.brand-form { display: flex; flex-direction: column; gap: 16px; }
.lbl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); margin: 0; }
.text { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 0 12px; outline: none; width: 100%; }
.text:focus { border-color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.brand-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.bc { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.bc input { width: 34px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.bc code { font: 500 12px var(--mono); }
.bc button { border: 0; background: none; color: var(--mute); font-size: 16px; }
.bc.add { height: 48px; padding: 0 14px; border-style: dashed; }
.bp { position: relative; padding: 40px 34px; border-radius: 20px; border: 1px solid var(--line); min-height: 280px; box-shadow: 8px 8px 0 var(--ink); }
.bp h3 { font-size: 48px; margin: 0 0 10px; letter-spacing: -0.02em; line-height: 1; }
.bp p { margin: 0 0 22px; max-width: 360px; }
.bp-dot { position: absolute; right: 26px; top: 26px; width: 54px; height: 54px; border-radius: 50%; }
.bp-btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600; }

/* Modal & toast */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(21, 21, 21, 0.35); opacity: 0; transition: opacity 0.15s; }
.modal.in { opacity: 1; }
.m-card { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--card); border-radius: 22px; border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.m-card.wide { width: min(900px, 100%); }
.m-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 6px; }
.m-head h3 { margin: 0; font: 600 24px var(--serif); letter-spacing: -0.02em; }
.x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--mute); }
.m-body { padding: 12px 22px 18px; }
.m-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 22px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
#toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); opacity: 0; transform: translateY(8px); transition: all 0.2s; }
.toast.in { opacity: 1; transform: none; }
.toast button { border: 0; background: var(--sun); color: var(--ink); border-radius: 8px; padding: 4px 10px; font-weight: 600; }
body.dropping::after { content: 'Drop images or .designz files to import'; position: fixed; inset: 14px; z-index: 300; display: grid; place-items: center; border: 2px dashed var(--ink); border-radius: 24px; background: rgba(244, 241, 234, 0.92); font: 600 28px var(--serif); }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform 0.2s; box-shadow: 20px 0 50px rgba(0, 0, 0, 0.15); }
  body.nav-open .side { transform: none; }
  .menu-btn { display: block; }
  .main { padding: 0 16px 60px; }
  .brand-wrap, .photo-detail { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  #importBtn { padding: 0 12px; }
}

/* Account */
.acct { margin: 0 -6px 14px; }
.acct-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--card); text-align: left; box-shadow: 2px 2px 0 var(--ink); }
.acct-btn:hover { background: #fff; }
.av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); border: 1.5px solid var(--ink); font: 700 13px var(--mono); }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.who b, .who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--mute); font-size: 12px; }
.caret { color: var(--mute); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.acct-grid .panel { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
.acct-grid h3 { margin: 0; font: 700 22px var(--serif); }
.acct-grid p { margin: 0; }
.acct-grid .btn { align-self: flex-start; }
.account .linked-apps { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); max-width: 720px; }
.account .linked-apps h3 { margin: 0; font: 700 22px var(--serif); }
.account .linked-apps p { margin: 0; }

/* Videos */
.size.video { color: inherit; text-decoration: none; }
.size.video .sz-pv i { background: #1d1b18; display: grid; place-items: center; }
.size.video .sz-pv svg { width: 18px; height: 18px; fill: #fff; }
.size.video:hover .sz-pv i { background: var(--red); }
.d-thumb { position: relative; }
.d-badge { position: absolute; left: 8px; top: 8px; z-index: 1; background: #151515; color: #fff; font: 600 11px var(--mono, monospace); padding: 3px 7px; border-radius: 4px; }
.m-sub { font: 600 15px var(--serif, Georgia); margin: 18px 0 8px; }

/* CAD and 3D start cards */
.size.make { color: inherit; text-decoration: none; }
.size.make .sz-pv svg { width: 56px; height: 56px; stroke-width: 1.6; }
.size.make:hover .sz-pv svg { color: var(--red); }

.size.pdf { cursor: pointer; }
.size.pdf .sz-pv i { display: grid; place-items: center; }
.size.pdf .sz-pv i b { font: 700 11px var(--mono); letter-spacing: .06em; }
.size.pdf { text-decoration: none; color: inherit; }
a.acct-btn { color: inherit; text-decoration: none; }


/* Size picker drawings */
.sz-art { display: block; border-radius: 4px; box-shadow: 0 0 0 1.5px var(--ink); overflow: hidden; transition: rotate 0.35s cubic-bezier(.3, 1.6, .5, 1), transform 0.2s; }
.sz-art .a-bg { fill: #fffdf8; }
.sz-art .a-soft { fill: #e9e3d6; }
.sz-art .a-soft2 { fill: #d8d0c1; }
.sz-art .a-ink { fill: #151515; }
.sz-art .a-hot { fill: var(--red); }
.sz-art .a-sun { fill: var(--sun); }
.sz-art .a-dark { fill: #1d1b18; }
.sz-art .a-paper { fill: #f4f1ea; }
.size:hover .sz-art { rotate: -4deg; }
.size:nth-child(3n+1):hover .sz-art .a-soft { fill: var(--sun); }
.size:nth-child(3n+2):hover .sz-art .a-soft { fill: #ffd2c4; }
.size:nth-child(3n):hover .sz-art .a-soft { fill: #cfdafc; }
.size .sz-note { font: 500 11.5px/1.3 'Instrument Sans', system-ui, sans-serif; color: var(--mute); margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .size:hover .sz-art { rotate: none; } }

/* Import, in plain view */
.btn.import { background: var(--card); box-shadow: 3px 3px 0 var(--ink); height: 46px; padding: 0 18px 0 16px; transition: transform .1s, box-shadow .1s; }
.btn.import svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.import small { font-weight: 500; font-size: 12px; color: var(--mute); }
.btn.import:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); background: var(--card); }
.btn.import:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
@media (max-width: 900px) { .btn.import small { display: none; } }

/* "Bring in your files" row on Home, and the Linked apps page */
.bring { display: flex; flex-wrap: wrap; gap: 10px; }
.bring button, .bring a { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; }
.bring button:hover, .bring a:hover { border-color: var(--ink); }
.bring .dzc-mark { width: 26px; height: 26px; border-radius: 7px; font-size: 13px; }
.bring .b-pc { width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; background: var(--ink); color: var(--paper); }
.bring .b-pc svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bring small { font-weight: 500; color: var(--mute); }
.bring a.b-more { border-style: dashed; color: var(--ink2); }
.apps-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 6px 0 22px; }
.apps-how div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.apps-how > div > b { display: block; margin-bottom: 4px; font-size: 16px; }
.apps-how p { margin: 0; color: var(--ink2); font-size: 14px; }
.apps-page .panel { max-width: 720px; }

/* Tour button, next to Import */
.tour-link { display: inline-flex; align-items: center; gap: 8px; height: 46px; margin-left: auto; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line); background: none; color: var(--ink2); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tour-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.tour-link:hover { border-color: var(--ink); color: var(--ink); }
.tour-link + #importBtn { margin-left: 0; }
@media (max-width: 1000px) { .tour-link span { display: none; } }
/* Quick photo and batch tools */
.size.make.tool .sz-pv { background: #fff1c9; }
.size.make.tool:hover .sz-pv { background: var(--sun, #ffc531); }

/* Team templates in "Create something" */
.m-team { margin-bottom: 18px; }
.m-tpl-pic { display: block; width: 100%; height: 76px; margin-bottom: 8px; border-radius: 8px; background: var(--paper2) center / contain no-repeat; border: 1px solid var(--line); }
.m-tpl:disabled { opacity: .5; }
