:root { color-scheme: light; --ink: #223d34; --muted: #788077; --green: #254e3f; --line: #e5e6dd; --paper: #f7f7f0; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #bb873c; outline-offset: 5px; }
[hidden] { display: none !important; }
.site-header { height: 88px; max-width: 1320px; margin: auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 23px; letter-spacing: -1px; }
.brand > span:not(.brand-icon):not(.brand-dot) { font-weight: 500; }
.brand-icon { font-size: 32px; line-height: 1; margin-right: 10px; }
.brand-dot { color: #b07c3e; }
.privacy { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.privacy > span { color: var(--green); font-size: 20px; }
main { max-width: 1100px; margin: auto; padding: 0 32px; }
.intro { text-align: center; padding: 49px 0 33px; }
.eyebrow { margin: 0 0 12px; font-size: 10px; letter-spacing: 2px; font-weight: 700; color: #8b795c; }
h1 { font-family: 'Manrope', sans-serif; font-size: clamp(32px, 4vw, 47px); line-height: 1.18; margin: 0; letter-spacing: -2px; font-weight: 600; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: #6d8265; }
.intro > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.steps { list-style: none; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0 auto 34px; gap: 42px; }
.steps li { color: #969b92; font-size: 12px; display: flex; align-items: center; gap: 9px; position: relative; }
.steps li + li::before { content: ''; position: absolute; left: -31px; width: 20px; height: 1px; background: #d6d9cd; }
.steps li > span { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #dfe2d6; border-radius: 50%; font-size: 10px; }
.steps li[aria-current] { color: var(--green); font-weight: 700; }
.steps li[aria-current] > span { background: var(--green); color: white; border-color: var(--green); }
.steps li.done > span { background: #e6ecdF; border-color: #e6ecdf; color: var(--green); }
.workspace { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 8px 35px #24382a04; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.workspace-heading .eyebrow { font-size: 9px; margin-bottom: 9px; }
h2 { font-family: 'Manrope', sans-serif; margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -.7px; }
.tag { font-size: 8px; letter-spacing: 1.3px; border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; color: #858a7c; white-space: nowrap; }
.step-description { font-size: 12px; color: var(--muted); margin: 10px 0 26px; line-height: 1.6; }
.frame-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.frame-card { padding: 0; overflow: hidden; border: 2px solid #e9e9e1; border-radius: 11px; background: white; text-align: left; transition: border-color .15s, box-shadow .15s; max-width: 448px; width: 100%; color: var(--ink); }
.frame-card:hover { border-color: #a0b196; }
.frame-card[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 3px #254e3f0b; }
.frame-art { position: relative; padding: 19px; background: #eeeee6; }
.frame-art img { display: block; width: 100%; height: auto; background: #d8ddcf; box-shadow: 0 4px 12px #27291b19; }
.frame-check { position: absolute; right: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: white; border: 1px solid #c7cbbe; display: grid; place-items: center; color: transparent; }
.frame-card[aria-pressed="true"] .frame-check { color: white; background: var(--green); border-color: var(--green); }
.frame-info { padding: 17px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.frame-info strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.frame-info small { color: var(--muted); font-size: 10px; }
.photo-count { background: #f0f2e9; border-radius: 5px; padding: 6px 8px; font-size: 9px; white-space: nowrap; }
.tip { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: #f8f9f4; border-radius: 7px; margin-top: 23px; color: #7b8274; font-size: 11px; line-height: 1.6; }
.tip > span { font-size: 23px; color: #8e9b78; }
.tip p { margin: 0; }
.tip strong { color: #596b50; font-weight: 500; }
.workspace-footer { display: flex; align-items: center; gap: 14px; border-top: 1px solid #eeeee7; margin-top: 27px; padding-top: 23px; }
.selection-status { color: var(--muted); font-size: 11px; margin-right: auto; }
.button { border-radius: 7px; padding: 13px 20px; font-size: 12px; font-weight: 500; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 23px; min-height: 44px; }
.primary { color: white; background: var(--green); }
.primary:hover:not(:disabled) { background: #163b2e; }
.secondary { background: white; border-color: var(--line); color: var(--ink); }
.secondary:hover { background: var(--paper); }
.site-footer { display: flex; justify-content: space-between; padding: 24px 2px 35px; font-size: 10px; color: #96998c; }
.site-footer > span:last-child { font-size: 8px; letter-spacing: 1.5px; }
.site-footer > span:last-child > span { margin: 0 8px; color: #9fa589; }
.photo-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; }
.reference-image { padding: 16px; background: #eeeee6; border-radius: 9px; }
.reference-image img { width: 100%; display: block; background: #d8ddcf; }
.reference-layout { position: relative; container-type: inline-size; }
#frame-slot-numbers { position: absolute; inset: 0; pointer-events: none; }
.frame-slot-number { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; min-width: clamp(16px, 8cqw, 28px); height: clamp(16px, 8cqw, 28px); border: 2px solid white; border-radius: 50%; background: var(--green); color: white; box-shadow: 0 2px 6px #30234f40; font-size: clamp(8px, 3.5cqw, 12px); font-weight: 800; line-height: 1; }
.frame-reference h3 { font-size: 14px; margin: 17px 0 8px; }
.frame-reference p { font-size: 12px; color: var(--muted); line-height: 1.7; max-width: 310px; }
.photo-slots { display: grid; gap: 12px; }
.photo-slot { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
.slot-thumbnail { width: 100px; aspect-ratio: 1.6; background: #f0f2ea; border: 1px dashed #ccd2be; border-radius: 5px; overflow: hidden; display: grid; place-items: center; color: #879579; font-size: 23px; }
.slot-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.slot-label { font-weight: 600; font-size: 12px; display: block; margin-bottom: 4px; }
.slot-filename { font-size: 10px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-bottom: 8px; }
.slot-quality { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 8px 0 0; overflow-wrap: anywhere; }
.slot-quality.low-resolution { color: #90441f; }
.quality-warning { background: #fff4e4; color: #80491b; padding: 13px 16px; margin: 0 0 18px; border: 1px solid #ead4b2; border-radius: 7px; font-size: 12px; line-height: 1.7; }
.photo-picker { display: inline-block; cursor: pointer; background: #f3f5ee; color: var(--green); padding: 7px 10px; border: 1px solid #dfe4d4; border-radius: 5px; font-size: 10px; }
.photo-picker:focus-within { outline: 3px solid #bb873c; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.preview-mat { background: #eeeee6; padding: 24px; border-radius: 9px; }
#output { display: block; width: 100%; max-width: 720px; height: auto; margin: auto; box-shadow: 0 5px 20px #2835211a; }
.output-details { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 11px; }
.ready-dot { display: inline-block; width: 6px; height: 6px; background: #6d8956; border-radius: 50%; margin-right: 6px; }
#message, .noscript { background: #fff1e8; color: #90441f; padding: 12px 15px; border-radius: 7px; font-size: 13px; line-height: 1.6; }
.loading { color: var(--muted); }
@media (min-width: 900px) { .frame-grid:has(.frame-card:only-child) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .reference-image { padding: 0; }
  .frame-reference p { max-width: none; }
}
@media (max-width: 650px) {
  .site-header { height: 70px; padding: 0 20px; }.brand { font-size: 20px; }.privacy { font-size: 0; }.privacy > span { font-size: 23px; }
  main { padding: 0 16px; }.intro { padding: 34px 0 26px; }.intro > p:last-child { max-width: 270px; margin: 16px auto 0; line-height: 1.7; }
  .steps { gap: 18px; margin-bottom: 25px; }.steps li { font-size: 10px; gap: 6px; }.steps li > span { width: 24px; height: 24px; font-size: 9px; }.steps li + li::before { width: 10px; left: -14px; }
  .workspace { padding: 21px 18px; }.tag { display: none; }h2 { font-size: 21px; }.frame-grid { grid-template-columns: 1fr; }.frame-card { max-width: none; }
  .workspace-footer { flex-wrap: wrap; gap: 10px; }.selection-status { flex: 1; min-width: 130px; }.button { padding: 12px 14px; gap: 10px; } .site-footer { gap: 12px; line-height: 1.7; }.site-footer > span:last-child { text-align: right; max-width: 140px; }
  .photo-layout { grid-template-columns: 1fr; gap: 16px; }.preview-mat { padding: 10px; }.output-details { flex-wrap: wrap; }
}
