*{box-sizing:border-box}body{margin:0;background:#fff9f6;color:#34252c;font:16px/1.5 system-ui,sans-serif}header{padding:24px max(20px,calc((100vw - 1160px)/2));background:white;border-bottom:1px solid #efdee5;display:flex;justify-content:space-between;align-items:center;gap:20px}h1{font:700 30px Georgia,serif;margin:0;color:#943958}small,.muted{color:#796773}main{max-width:1160px;margin:auto;padding:26px 20px}a{color:#963c5b;text-decoration:none}button,.button{display:inline-block;border:0;background:#a74767;color:white;border-radius:12px;padding:11px 17px;font:inherit;cursor:pointer}nav{display:flex;gap:8px;flex-wrap:wrap}nav a{padding:10px 16px;border-radius:24px;background:white}nav [aria-current]{background:#f0d7e1;color:#702341}.actions,.section-head{display:flex;align-items:center;gap:16px;justify-content:space-between}.actions form{margin:0}.mode{font-size:13px;letter-spacing:.04em;color:#8c6477}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:22px}article{background:white;border-radius:20px;overflow:hidden;box-shadow:0 6px 25px #6e35400b}article[hidden]{display:none}article img{width:100%;height:260px;object-fit:cover;display:block}.card{padding:18px}h3{margin:8px 0 14px}.secondary{background:#f8edf2;color:#943958}details{margin:18px 0}summary{cursor:pointer;color:#943958}.notes{white-space:pre-wrap}label{display:block;margin:16px 0}input:not([type=checkbox]),textarea,select{display:block;width:100%;padding:12px;border:1px solid #dac5cf;border-radius:9px;background:white;font:inherit;margin-top:5px}textarea{min-height:90px}.check{display:flex;gap:8px}.panel{max-width:650px;padding:24px;background:white;border-radius:20px;margin:24px auto}.search{max-width:400px}.empty{text-align:center;padding:60px 20px;background:#f9edf2;border-radius:20px}.notice{background:#ffe6df;padding:16px;border-radius:12px}.text{padding:0;background:none;color:#986074;font-size:13px}footer{margin-top:40px;font-size:13px;color:#796773}.outlines{display:flex;gap:10mm;flex-wrap:wrap;padding:12mm 0}.outlines span{border:1px solid #777;border-radius:45% 45% 25% 25%;display:block}.practice{padding:10px}@media(max-width:600px){header{align-items:flex-start;padding:18px}.actions{flex-direction:column;align-items:flex-end;font-size:13px}.section-head{align-items:flex-start;flex-direction:column}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}article img{height:190px}.card{padding:12px}h3{font-size:16px}}@media print{header,nav,.mode,footer,.panel>p,.panel>button{display:none}body{background:white}.panel{max-width:none;margin:0;padding:0}.outlines{break-inside:avoid}}

.success{padding:14px 18px;border-radius:12px;background:#e3f4e5;color:#246833}.diagnostics{font-size:13px;margin:12px 0}
.swatches{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px;font-size:12px}.swatches span{display:flex;align-items:center;gap:5px}.swatches i{width:20px;height:20px;border-radius:50%;border:1px solid #cbb}.print-controls{max-width:550px;background:white;padding:24px;border-radius:20px;margin:24px auto}.design-sheet{background:white;width:190mm;max-width:100%;padding:5mm;margin:24px auto}.design-sheet h2{font-size:18px;margin:0}.design-sheet p{font-size:11px}.design-sheet h3{font-size:12px;margin:3mm 0}.template-grid{display:grid;gap:3mm 1mm;justify-items:center;margin-bottom:3mm}.template svg{display:block;width:100%;height:100%}@media print{.print-controls,.diagnostics,.success,.notice{display:none!important}main{max-width:none;padding:0}.design-sheet{width:100%;padding:0;margin:0}.design-sheet h2{font-size:14pt}.template-grid{break-inside:avoid}body{color:#333}}

/* Comfortable phone layout; physical print dimensions stay unchanged. */
@media screen and (max-width:600px){
 body{font-size:18px;line-height:1.6}
 header{padding:20px 16px;gap:16px;flex-wrap:wrap}
 h1{font-size:32px}
 header small{font-size:15px}
 header .actions{width:100%;flex-direction:row;align-items:center;justify-content:space-between;font-size:17px;gap:12px}
 header .actions .button{white-space:normal}
 main{padding:20px 16px}
 nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 nav a{display:flex;justify-content:center;align-items:center;text-align:center;padding:12px 8px;font-size:17px;min-height:50px}
 .mode{font-size:15px;letter-spacing:0}
 .section-head{gap:8px;margin:22px 0 12px}
 .section-head h2{font-size:26px;margin:0}
 .section-head>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;width:100%}
 .section-head>div>a:not(.button){padding:10px 4px}
 .search{max-width:none}
 input:not([type=checkbox]),textarea,select{font-size:18px;min-height:50px}
 .grid{grid-template-columns:minmax(0,1fr);gap:22px;align-items:start}
 article img{height:300px;object-fit:contain;background:#fffaf7}
 .card{padding:20px}
 .card small{font-size:15px}
 .card h3{font-size:24px;margin:8px 0 16px}
 button,.button{font-size:18px;min-height:48px;padding:12px 18px}
 summary{font-size:18px;padding:8px 0}
 .notes{font-size:18px;line-height:1.7;overflow-wrap:anywhere}
 .card h4{font-size:19px;margin:18px 0 8px}
 .swatches{font-size:16px;gap:16px}
 .swatches i{width:24px;height:24px}
 .card .muted{font-size:16px}
 .card>a.button{display:block;text-align:center;margin-top:16px}
 .text{font-size:16px;padding:12px 0;min-height:48px}
 footer{font-size:15px;line-height:1.6}
 .panel,.print-controls{padding:20px}
 .diagnostics{font-size:14px}
 .diagnostics summary{font-size:14px}
}

/* Gold borders separate designs and workspace panels. */
@media screen{
 article,.panel,.print-controls{border:2px solid #c5a43b}
 header{border-bottom:2px solid #c5a43b}
 nav{padding-bottom:16px;border-bottom:1px solid #c5a43b}
 .card details{padding-top:12px;border-top:1px solid #e4d49f}
}

.browse-filters{display:flex;gap:20px;align-items:end;flex-wrap:wrap}.browse-filters label{flex:1;min-width:200px;max-width:400px}.browse-filters select{margin-top:5px}#filter-empty[hidden]{display:none}@media screen and (max-width:600px){.browse-filters{display:block}.browse-filters label{max-width:none}}

@media screen{nav a{border:2px solid #c5a43b}nav [aria-current]{border-color:#a38324}.empty{border:2px solid #c5a43b}}

@media screen and (min-width:601px){.card>a.edit-design{display:table;margin-top:16px}}

/* Full artwork on desktop; phone rules are unchanged. */
@media screen and (min-width:601px){article img{object-fit:contain;background:#fffaf7}}

/* Uniform framing for the six seasonal coffin references. */
article .nail-frame{--nail-frame-height:300px;display:block;position:relative;height:var(--nail-frame-height);overflow:hidden;background:#fffaf7}article .nail-frame img{position:absolute;max-width:none;object-fit:fill;display:block}@media(max-width:600px){article .nail-frame{--nail-frame-height:300px}}

/* Screen wraps to phone width; print retains physical sizes and full columns. */
@media screen {
 .design-sheet,.print-controls{min-width:0;max-width:100%}
 .practice-reference{min-width:0;flex-wrap:wrap}
 .practice-reference p{min-width:0;flex:1 1 180px;overflow-wrap:anywhere}
 .template-grid{grid-template-columns:repeat(auto-fit,minmax(var(--tip-width,12mm),1fr))!important;min-width:0;width:100%}
 .design-sheet{background:#fff;color:#333}
}
@media print {.practice-reference{color:#333}.template-grid{width:100%}}

/* Elegant collection presentation; print layouts remain separate. */
@media screen {
 body{background:#faf7f3;color:#382e31}
 header{background:#fffdf9;border-bottom:1px solid #d4bd7d;padding-top:24px;padding-bottom:24px}
 .brand{display:flex;align-items:center;gap:16px;min-width:0}
 .brand-mark{width:52px;height:52px;flex:0 0 52px;display:grid;place-items:center;border:1px solid #b99a4c;border-radius:50%;color:#a27e31;background:#fffaf0;font:italic 32px Georgia,serif}
 header h1{font:400 34px/1.1 Georgia,serif;color:#603b48;letter-spacing:-.6px}
 header small{display:block;font-size:10px;letter-spacing:2px;margin-top:8px;color:#786c65}
 main{padding-top:28px}
 .collection-intro{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:244px;padding:34px 38px;margin-bottom:24px;border:1px solid #decda5;border-radius:22px;background:linear-gradient(115deg,#fffdf8 20%,#f7ebe6 100%);overflow:hidden;box-shadow:0 10px 30px #6d493408}
 .intro-copy{position:relative;z-index:1;max-width:690px}
 .eyebrow{font-size:10px;letter-spacing:2.5px;color:#7f622d;font-weight:600}
 .collection-intro h2{font:400 42px/1.14 Georgia,serif;letter-spacing:-.7px;margin:14px 0 12px;color:#563643;max-width:590px}
 .collection-intro p{font-size:16px;line-height:1.7;margin:0;max-width:520px;color:#71616a}
 .intro-signature{display:block;margin-top:18px;font-size:12px;letter-spacing:1.2px;color:#80622d}
 .intro-art{position:relative;width:240px;height:185px;flex:0 0 240px}
 .intro-ring{position:absolute;left:22px;top:6px;width:182px;height:182px;border:1px solid #d9c596;border-radius:50%}
 .decor-tip{position:absolute;top:35px;width:47px;height:125px;border:1px solid #c4a369;border-radius:9px 9px 25px 25px;background:linear-gradient(100deg,#fffdf8,#eedbd5);box-shadow:0 8px 18px #805f4210}
 .tip-one{left:43px;transform:rotate(-17deg)}
 .tip-two{left:98px;top:23px;height:138px;background:linear-gradient(100deg,#fffdf8,#e8c6ce)}
 .tip-three{left:153px;transform:rotate(17deg)}
 .tip-two:after{content:'';position:absolute;left:10px;right:10px;top:38px;height:39px;border:1px solid #b08e4a;border-radius:50%}
 .decor-spark{position:absolute;right:7px;top:2px;color:#aa8539;font-size:44px}
 nav{gap:10px;padding:0 0 18px;border-bottom:1px solid #e2d6c1}
 nav a{border:1px solid #dcc99f;border-radius:12px;background:#fffdf9;color:#66505a;font-size:15px;font-weight:500;padding:12px 19px;transition:background .15s ease,border-color .15s ease}
 nav [aria-current]{background:#62414e;color:#fffaf2;border-color:#62414e;box-shadow:0 4px 12px #62414e16}
 nav a:hover{border-color:#af8d40}
 .mode{color:#82736a;font-size:12px;margin:14px 0 22px}
 .section-head{margin-bottom:6px}
 .section-head h2{font:400 30px/1.25 Georgia,serif;letter-spacing:-.3px;color:#543d46}
 .browse-filters{padding:5px 20px 14px;margin:10px 0 24px;background:#fffdf9;border:1px solid #e9dfcd;border-radius:16px}
 .browse-filters label{font-size:13px;font-weight:500;color:#665b58;max-width:none;margin:12px 0 0;min-width:0}
 input:not([type=checkbox]),select,textarea{border-color:#ddd1c7;background:#fff;border-radius:10px;color:#382e31}
 input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #9d7931;outline-offset:3px}
 article{border:1px solid #d9c18a;border-radius:18px;box-shadow:0 8px 24px #7553430a}
 article img,article .nail-frame{background:#fffdf9}
 .card{padding:20px}
 .card small{font-size:11px;letter-spacing:.7px;color:#847366}
 .card h3{font:400 22px/1.3 Georgia,serif;color:#503944;margin:10px 0 16px}
 button,.button{background:#86536a;border-radius:10px;font-size:14px;font-weight:500;min-height:44px}
 button:hover,.button:hover{background:#734458;color:white}
 .secondary{background:#f4e9ed;color:#70485c}
 .secondary:hover{background:#ecdae2;color:#70485c}
 .card details{border-top-color:#e7dbc2}
 .card .muted{color:#7e716e}
 .panel,.print-controls,.empty{border:1px solid #dcc99f;background:#fffdf9;box-shadow:0 8px 24px #75534308}
 footer{border-top:1px solid #e4d8c6;padding-top:18px;color:#89796f;font-size:12px}
 .diagnostics{font-size:11px;opacity:.8}
 .diagnostics summary{font-size:11px}
}
@media screen and (max-width:600px){
 header{padding:20px 16px;gap:16px}
 .brand{gap:12px}.brand-mark{width:44px;height:44px;flex-basis:44px;font-size:28px}
 header h1{font-size:30px}header small{font-size:9px;letter-spacing:1.8px}
 header .actions{font-size:16px}
 header .actions button,header .actions .button{font-size:16px}
 main{padding:20px 16px}
 .collection-intro{min-height:0;padding:25px 22px;border-radius:18px;margin-bottom:20px}
 .collection-intro h2{font-size:31px;line-height:1.18;letter-spacing:-.3px;margin-top:13px}
 .collection-intro p{font-size:16px;line-height:1.65}
 .eyebrow{font-size:9px;letter-spacing:1.7px}
 .intro-signature{font-size:11px;letter-spacing:.8px;margin-top:16px}
 .intro-art{display:none}
 nav{gap:9px;padding-bottom:16px}nav a{font-size:16px;min-height:50px;padding:12px 8px}
 .mode{font-size:13px;margin-bottom:20px}
 .section-head h2{font-size:28px}
 .browse-filters{padding:4px 16px 16px;margin-bottom:20px}
 .browse-filters label{font-size:15px;margin-top:12px}
 .card h3{font-size:25px}.card small{font-size:14px}
 button,.button{font-size:17px;min-height:48px}
 .card .muted{font-size:16px}.text{font-size:16px}
 footer{font-size:14px}
}
@media print{.collection-intro{display:none!important}}

/* Larger screen typography; physical practice-sheet print sizing is unchanged. */
@media screen {
 body{font-size:18px;line-height:1.55}
 header h1{font-size:40px}
 header small{font-size:14px;letter-spacing:1.5px}
 header .actions{flex-wrap:wrap;min-width:0}
 .collection-intro h2{font-size:48px}
 .collection-intro p{font-size:20px;line-height:1.65}
 .eyebrow{font-size:13px;letter-spacing:2px}
 .intro-signature{font-size:16px}
 nav a{font-size:18px;padding:13px 19px}
 .mode{font-size:16px}
 .section-head h2{font-size:34px}
 .browse-filters label{font-size:17px}
 input,select,textarea{font-size:18px;max-width:100%;box-sizing:border-box}
 .card h3{font-size:28px}
 .card small{font-size:15px}
 .card .muted,.text{font-size:18px}
 button,.button{font-size:18px;min-height:48px;white-space:normal}
 footer{font-size:16px}
 .diagnostics,.diagnostics summary{font-size:14px}
}
@media screen and (max-width:600px) {
 body{font-size:19px}
 header h1{font-size:35px}
 header small{font-size:13px;letter-spacing:1.2px}
 header .actions,header .actions button,header .actions .button{font-size:18px}
 .collection-intro h2{font-size:35px}
 .collection-intro p{font-size:19px}
 .eyebrow{font-size:12px;letter-spacing:1.5px}
 .intro-signature{font-size:15px}
 nav a{font-size:18px;padding:12px 10px;min-height:54px}
 .mode{font-size:16px}
 .section-head h2{font-size:32px}
 .browse-filters label{font-size:18px}
 input,select,textarea{font-size:19px}
 .card h3{font-size:28px}
 .card small{font-size:16px}
 .card .muted,.text{font-size:19px}
 button,.button{font-size:19px;min-height:50px}
 footer{font-size:16px}
}

@media screen {
 nav a,nav a:hover{border-color:#c5a43b}
 nav [aria-current]{background:#f0d7e1;color:#702341;border-color:#c5a43b;box-shadow:none}
 .card>form+form{margin-top:18px}
 select[name="category"],#category-filter{appearance:none;-webkit-appearance:none;background-image:none}
 .panel{max-width:850px}
 textarea[name="colors"]{min-height:180px;line-height:1.7}
 textarea[name="instructions_en"]{min-height:320px;line-height:1.7}
 .instruction-box{padding:18px;border:1px solid #ddd1c7;border-radius:10px;background:white;line-height:1.8;overflow-wrap:anywhere}
 .instructions-panel h4{margin:24px 0 10px}
}

@media screen {
 button,.button{background:#a74767;color:white;border:1px solid #c5a43b}
 button:hover,.button:hover{background:#963c5b;color:white}
 button.secondary,.button.secondary{background:#f8edf2;color:#943958;border-color:#c5a43b}
 button.secondary:hover,.button.secondary:hover{background:#f0d7e1;color:#702341}
 button.text,.button.text{background:none;color:#986074;border:0}
}

@media screen {
 .collection-pager{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:28px 0}
 .browse-filters button{margin-bottom:16px}
 .browse-filters input[type="hidden"]{display:none}
}

@media screen and (min-width:601px) {
 .browse-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:20px;padding:20px}
 .browse-filters label{margin:0;min-width:0;max-width:none}
 .browse-filters input:not([type=hidden]),.browse-filters select,.browse-filters button{min-height:54px}
 .browse-filters button{margin:0}
}
@media screen and (max-width:600px) {
 .browse-filters{padding:20px 16px}
 .browse-filters label{margin:0 0 20px}
 .browse-filters button{margin:8px 0 0;min-height:54px}
}

@media(min-width:768px){.card .screen-practice-button{display:table;margin-top:14px}}

/* Space Favorites practice controls on desktop and mobile. */
.favorite-practice-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.favorite-practice-actions>.button{max-width:100%;margin:0}

/* 0.13.47: Design-first opening page, compact navigation, private inspiration. */
@media screen {
 header{padding-top:14px;padding-bottom:14px;gap:12px;flex-wrap:nowrap}
 header h1{font-size:30px}
 header small{font-size:11px;letter-spacing:1px;margin-top:4px}
 header .actions{width:auto;flex-direction:row;font-size:14px;flex-shrink:0}
 main{padding-top:14px}
 main>nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px;padding-bottom:14px}
 main>nav a{font-size:16px;padding:10px 8px;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.3}
 .section-head{margin:10px 0}
 .section-head h2{font-size:27px;margin:0}
 .browse-filters{margin:10px 0 18px;padding:14px;gap:12px}
 .browse-filters label{font-size:15px}
 .browse-filters input:not([type=hidden]),.browse-filters select,.browse-filters button{font-size:16px;min-height:44px}
 .collection-intro{min-height:0;margin:16px 0;padding:24px}
 .collection-intro h2{font-size:32px}
 .collection-intro p{font-size:17px}
 .intro-signature{font-size:14px}
}
@media screen and (max-width:600px) {
 header{padding:12px 14px;align-items:center}
 header h1{font-size:27px}
 header small{font-size:10px}
 header .actions{font-size:13px}
 main{padding:12px}
 main>nav{gap:6px;padding-bottom:12px;margin-bottom:10px}
 main>nav a{font-size:14px;padding:8px 4px;min-height:44px}
 .section-head{flex-direction:row;align-items:center;margin:8px 0}
 .section-head h2{font-size:25px}
 .browse-filters{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:10px;padding:12px;margin:10px 0 16px;align-items:end}
 .browse-filters label{margin:0;min-width:0;font-size:14px}
 .browse-filters .search{max-width:none}
 .browse-filters input:not([type=hidden]),.browse-filters select{font-size:16px;min-height:44px;padding:9px 8px}
 .browse-filters button{grid-column:1/-1;width:100%;margin:0;padding:8px 12px;min-height:44px;font-size:16px}
 .collection-intro{padding:20px;margin:14px 0}
 .collection-intro h2{font-size:29px}
 .collection-intro p{font-size:17px}
}

/* 0.13.48: Roomy two-row iPhone navigation and readable mobile text. */
@media screen and (max-width:600px) {
 body{font-size:18px;line-height:1.55}
 header{gap:10px;padding:16px 14px;flex-wrap:wrap}
 header h1{font-size:32px;line-height:1.15}
 header small{font-size:12px;letter-spacing:.7px}
 header .actions{font-size:16px}
 main>nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-bottom:16px;margin-bottom:14px}
 main>nav a{min-height:68px;padding:12px 8px;font-size:19px;font-weight:650;line-height:1.25;border:3px double #b99543;border-radius:15px;background:linear-gradient(145deg,#fffefb,#f8eee6);color:#603b48;box-shadow:inset 0 0 0 3px #fffdf8,0 3px 8px #603b4810;overflow-wrap:anywhere}
 main>nav a[aria-current]{background:linear-gradient(145deg,#8c3655,#702b45);color:#fff;border-color:#d8ba73;box-shadow:inset 0 0 0 3px #702b45,0 3px 8px #603b4820}
 main>nav a:hover{border-color:#94732d}
 main>nav a:focus-visible{outline:3px solid #603b48;outline-offset:3px}
 .section-head h2{font-size:29px;line-height:1.25}
 .browse-filters label{font-size:17px}
 .browse-filters input:not([type=hidden]),.browse-filters select{font-size:18px;min-height:48px}
 .browse-filters button{font-size:19px;min-height:50px;font-weight:600}
 .card{font-size:18px}
 .card h3{font-size:21px;line-height:1.35}
 .card .button,.card button,.panel .button,.panel button{font-size:18px;min-height:46px}
 .muted,.mode,.card small,footer{font-size:16px}
 .collection-intro p{font-size:19px}
 .intro-signature{font-size:16px}
}

/* 0.13.49: Return to top and quiet collection information. */
@media screen {
 html{scroll-behavior:smooth}
 .back-to-top{display:flex;justify-content:center;margin:24px 0}
 .back-to-top a{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:9px 22px;border:3px double #b99543;border-radius:15px;background:#fffdf8;color:#603b48;font-size:24px;font-weight:600}
 .back-to-top span{font-size:18px}
 .back-to-top a:focus-visible{outline:3px solid #603b48;outline-offset:3px}
 footer .app-info{font-size:16px;color:#796773}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* 0.13.50: Independent category, style, and shape filters. */
@media screen and (min-width:601px){.browse-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.browse-filters button{grid-column:1/-1}}
/* One shared outline and display scale for the approved Coffin collection. */
article .uniform-coffin-shape{position:absolute;display:block;width:calc(var(--nail-frame-height) * .30);height:calc(var(--nail-frame-height) * .90);top:calc(var(--nail-frame-height) * .05);left:calc(50% - var(--nail-frame-height) * .15);overflow:hidden;clip-path:url(#mna-coffin-standard)}
article .uniform-coffin-shape img{transform:translateY(calc(var(--nail-frame-height) * -.05))}

/* Consistent phone gallery rows, including public samples. */
@media screen and (max-width:600px){
 main .grid{align-items:stretch!important}
 main .grid>article{display:flex;flex-direction:column;min-width:0;height:100%}
 main .grid>article>.nail-frame{--nail-frame-height:240px;height:240px;flex:0 0 240px}
 main .grid>article>a:not(.nail-frame){height:240px;flex:0 0 240px;display:block;overflow:hidden}
 main .grid>article>a:not(.nail-frame)>img{height:240px;width:100%;object-fit:contain}
 main .grid>article>.card{display:flex;flex-direction:column;flex:1;min-width:0}
 main .grid .card>small{display:block;min-height:3.1em}
 main .grid .card>h3{min-height:5.4em;overflow-wrap:anywhere}
 main .grid .card>.button:last-child,main .grid .card>form:last-child{margin-top:auto}
}

/* Use the same fitted artwork as practice templates in phone galleries. */
.mna-phone-art{display:none}
@media screen and (max-width:600px){
 main .grid>article>.mna-phone-art{display:flex!important;height:204px;flex:0 0 204px;align-items:center;justify-content:center;overflow:hidden;background:#fffdf9}
 main .grid>article>.mna-phone-art>a{display:block;max-width:100%;overflow:hidden}
 main .grid>article>.mna-phone-art svg{display:block;width:100%;height:100%}
 main .grid>article>.mna-phone-art+a{display:none!important;height:0!important;flex:0 0 0!important}
}

/* Full images, compact phone cards: never crop tips or reserve empty title rows. */
@media screen and (max-width:600px){
 main .grid>article>.mna-phone-art{height:190px;flex-basis:190px;padding:6px}
 main .grid>article>.mna-phone-art>a{width:100%;height:178px;max-width:100%;overflow:visible}
 main .grid>article>.mna-phone-art>a>img{position:static!important;display:block!important;width:100%!important;height:178px!important;max-width:100%!important;object-fit:contain!important;transform:none!important}
 main .grid .card>small,main .grid .card>h3{min-height:0}
 main .grid .card>h3{margin:8px 0 12px}
 main .grid>article>.card{padding:10px}
 main .grid .card>.button:last-child,main .grid .card>form:last-child{margin-top:auto}
 main .grid .sample-watermark{padding:4px 2px;font-size:10px}
}

/* Restore larger phone artwork without cropping or reserved title gaps. */
@media screen and (max-width:600px){
 main .grid>article>.mna-phone-art{height:252px;flex-basis:252px;padding:6px}
 main .grid>article>.mna-phone-art>a{height:240px}
 main .grid>article>.mna-phone-art>a>img{height:240px!important}
}

/* Larger, higher-contrast phone text. */
@media screen and (max-width:600px){
 body{font-size:20px;line-height:1.5;-webkit-text-size-adjust:100%}
 main .grid .card{font-size:20px}
 main .grid .card h3{font-size:26px;line-height:1.3;color:#412d36;letter-spacing:0}
 main .grid .card small{font-size:18px;line-height:1.45;color:#60514b;letter-spacing:0}
 main .grid .card .button,main .grid .card button{font-size:20px;line-height:1.35;min-height:52px;padding:12px 8px}
 main .grid .sample-watermark{font-size:12px;line-height:1.4;color:#67534f}
 .sample-intro p,.sample-intro .button{font-size:20px;line-height:1.45}
 .sample-intro h2{font-size:30px;line-height:1.25}
 .sample-intro .sample-actions{gap:14px}
 footer,footer p{font-size:17px;line-height:1.5}
 .panel,.instruction-box{font-size:20px;line-height:1.6}
}

.sample-signin-short{display:none}
@media screen and (max-width:600px){
 .sample-signin-long{display:none}
 .sample-signin-short{display:inline}
 main .grid>article>.mna-phone-art{height:222px;flex-basis:222px}
 main .grid>article>.mna-phone-art>a{height:210px}
 main .grid>article>.mna-phone-art>a>img{height:210px!important}
 main .grid .card h3{overflow-wrap:normal;word-break:normal;hyphens:auto;line-height:1.2;margin:6px 0 10px}
 main .grid .card .button,main .grid .card button{min-height:44px;padding:8px 6px}
 main .grid>article>.card{padding:8px 10px}
}

/* Clean sample browsing: compact introduction and natural word wrapping. */
.sample-intro .sample-actions{margin:14px 0 20px}
@media screen and (max-width:600px){
 .sample-intro{margin:14px 0 18px}
 .sample-intro h2{margin:0 0 12px}
 main .grid .card h3{hyphens:none;overflow-wrap:normal;word-break:normal}
}

@media screen and (max-width:600px){
 main .grid>article>.mna-phone-art>a{display:flex;align-items:center;justify-content:center}
 main .grid>article>.mna-phone-art>a>img[hidden]{display:none!important}
 main .grid>article>.mna-phone-art>a>svg{display:block;flex-shrink:0;overflow:hidden}
}

/* Keep long design names inside narrow phone cards. */
@media(max-width:600px){main .grid .card h3{overflow-wrap:anywhere;word-break:normal;min-width:0}}
