:root{--primary: #1e3a8a;--primary-hover: #172e6e;--primary-soft: #e8eefc;--success: #166534;--success-soft: #e7f6ec;--danger: #b91c1c;--danger-soft: #fdecec;--whatsapp: #128c4a;--bg: #f3f5f9;--surface: #ffffff;--surface-alt: #f6f8fb;--border: #c9d2e0;--text: #111827;--text-2: #374151;--sd: #b91c1c;--smp: #1d4ed8;--sma: #475569;--radius: 16px;--radius-sm: 12px;--tap: 56px;--shadow: 0 2px 8px rgba(15, 23, 42, .08);--font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;--safe-bottom: env(safe-area-inset-bottom, 0px);--nav-h: 76px}*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;font-family:var(--font);font-size:1rem;line-height:1.6;color:var(--text);background:var(--bg);padding-bottom:calc(var(--nav-h) + var(--safe-bottom) + 16px)}h1,h2,h3,p{margin:0}button,input,select{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}.app-header{position:sticky;top:0;z-index:30;background:var(--primary);color:#fff;box-shadow:var(--shadow)}.header-inner{max-width:960px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px}.brand{flex:1;display:flex;align-items:center;gap:10px;background:none;border:0;color:inherit;padding:0;text-align:left;min-width:0}.brand-icon{font-size:1.8rem}.brand-text{min-width:0}.brand-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:1.2rem;font-weight:800;line-height:1.2}.brand-sub{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.85rem;opacity:.9;line-height:1.3}.header-actions{display:flex;gap:8px;flex-shrink:0}.btn-header{min-height:48px;min-width:48px;padding:0 12px;border-radius:var(--radius-sm);border:2px solid rgba(255,255,255,.5);background:#ffffff1f;color:#fff;font-weight:700;font-size:.95rem;display:inline-flex;align-items:center;justify-content:center;gap:4px}.show-sm,.top-tabs{display:none}.main{max-width:720px;margin:0 auto;padding:20px 16px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px;flex-wrap:wrap}.page-title{font-size:1.5rem;font-weight:800;line-height:1.3;margin-bottom:6px}.page-desc{color:var(--text-2);margin-bottom:16px}.page-head .page-desc{margin-bottom:0}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;margin-bottom:16px;box-shadow:var(--shadow)}.card-title{font-size:1.25rem;font-weight:800;margin-bottom:16px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}.card-subtitle{font-size:.95rem;font-weight:600;color:var(--text-2)}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.field{border:0;padding:0;margin:0 0 20px;min-width:0}.field-label{display:block;font-weight:700;font-size:1.05rem;margin-bottom:8px;padding:0}.field-hint{font-weight:400;color:var(--text-2);font-size:.95rem}.input{width:100%;min-height:var(--tap);padding:10px 14px;border:2px solid var(--border);border-radius:var(--radius-sm);background:#fff;font-size:1.05rem}.input:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px var(--primary-soft)}.input-pin{text-align:center;font-size:1.5rem;letter-spacing:8px;margin-bottom:12px}.segmented{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}.segmented.cols-2,.segmented.cols-3,.segmented.cols-4{grid-auto-flow:row}.segmented.cols-2{grid-template-columns:repeat(2,1fr)}.segmented.cols-3{grid-template-columns:repeat(3,1fr)}.segmented.cols-4{grid-template-columns:repeat(4,1fr)}.seg-btn{min-height:var(--tap);padding:8px 6px;border:2px solid var(--border);border-radius:var(--radius-sm);background:#fff;font-weight:700;font-size:1rem;line-height:1.25;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.seg-btn.active{background:var(--primary);border-color:var(--primary);color:#fff}.seg-hint{font-size:.85rem;font-weight:500;opacity:.9;margin-top:2px}.stepper{display:flex;align-items:stretch;gap:8px}.stepper-btn{flex:0 0 var(--tap);height:var(--tap);border-radius:var(--radius-sm);border:2px solid var(--primary);background:var(--primary-soft);color:var(--primary);font-size:1.8rem;font-weight:700;line-height:1}.stepper-btn:active{background:var(--primary);color:#fff}.stepper-input{flex:1;min-width:0;height:var(--tap);text-align:center;font-size:1.4rem;font-weight:800;border:2px solid var(--border);border-radius:var(--radius-sm);-moz-appearance:textfield}.stepper-input::-webkit-outer-spin-button,.stepper-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.stepper-input:focus{border-color:var(--primary);outline:none}.stepper-unit{align-self:center;font-weight:700;color:var(--text-2);min-width:2.5em}.optional-box{background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-sm);padding:14px;margin-bottom:20px}.btn{min-height:var(--tap);padding:10px 18px;border-radius:var(--radius-sm);border:2px solid transparent;font-weight:700;font-size:1.05rem;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;text-decoration:none;line-height:1.3}.btn-block{width:100%}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover)}.btn-success{background:var(--success);color:#fff}.btn-whatsapp{background:var(--whatsapp);color:#fff}.btn-secondary{background:#fff;border-color:var(--border);color:var(--text)}.btn-danger-outline{background:#fff;border-color:var(--danger);color:var(--danger)}.btn-grow{background:#fff7e6;border-color:#d97706;color:#7c2d12}.btn-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.card>.btn-block+.btn-row,.card>.btn-row+.btn-block{margin-top:12px}.btn-icon{width:48px;height:48px;border-radius:var(--radius-sm);border:2px solid var(--border);background:#fff;font-size:1.2rem;flex-shrink:0}.btn-icon.danger{border-color:#f3b4b4}.action-stack{display:flex;flex-direction:column;gap:10px}.action-stack .btn-row{margin-top:0}.wizard-header{display:flex;align-items:center;gap:12px;margin-bottom:20px}.btn-back{min-height:48px;padding:0 14px;border-radius:var(--radius-sm);border:2px solid var(--border);background:#fff;font-weight:700;font-size:1rem;flex-shrink:0}.wizard-progress{flex:1}.wizard-progress-text{font-size:.95rem;color:var(--text-2);margin-bottom:6px}.wizard-progress-text b{color:var(--text)}.progress-track{height:10px;background:#dbe2ee;border-radius:99px;overflow:hidden}.progress-bar{height:100%;background:var(--primary);border-radius:99px;transition:width .3s ease}.choice-list{display:flex;flex-direction:column;gap:14px;margin-top:16px}.choice-card{display:flex;align-items:center;gap:16px;width:100%;padding:20px;background:#fff;border:2px solid var(--border);border-radius:var(--radius);text-align:left;box-shadow:var(--shadow)}.choice-card:hover,.choice-card:active{border-color:var(--primary)}.choice-icon{font-size:2.4rem;width:64px;height:64px;border-radius:16px;background:var(--primary-soft);display:grid;place-items:center;flex-shrink:0}.choice-body{flex:1;display:flex;flex-direction:column;gap:4px}.choice-title{font-size:1.2rem;font-weight:800}.choice-desc{color:var(--text-2)}.choice-tag{align-self:flex-start;margin-top:4px;padding:2px 10px;border-radius:99px;background:var(--success-soft);color:var(--success);font-weight:700;font-size:.9rem}.choice-arrow{font-size:2.2rem;color:var(--primary);font-weight:700}.diagram-box{background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px;margin-bottom:20px}.diagram-caption{text-align:center;color:var(--text-2);font-size:.95rem;margin-top:6px}.shirt-svg{display:block;width:100%;max-width:340px;margin:0 auto;height:auto}.measure-line{stroke:#64748b;stroke-width:2.5;stroke-dasharray:5 4;transition:all .2s ease}.measure-line.active{stroke:#2563eb;stroke-width:5;stroke-dasharray:none}.measure-text{font-size:16px;font-weight:800;fill:#0f2a6b;paint-order:stroke;stroke:#fff;stroke-width:3px}.shirt-body,.shirt-sleeve,.shirt-cuff,.shirt-collar,.shirt-pocket,.shirt-epaulet{stroke-width:2.6;stroke-linejoin:round}.shirt-line{fill:none;stroke-width:2.2;stroke-linecap:round}.shirt-stitch{fill:none;stroke-width:1;stroke-dasharray:3 2.5}.shirt-button{stroke-width:1.4}.theme-osis .shirt-body,.theme-osis .shirt-sleeve,.theme-osis .shirt-cuff,.theme-osis .shirt-collar,.theme-osis .shirt-pocket,.theme-osis .shirt-button{fill:#fff;stroke:#1f2937}.theme-osis .shirt-line{stroke:#1f2937}.theme-osis .shirt-stitch{stroke:#4b5563}.theme-pramuka .shirt-body,.theme-pramuka .shirt-sleeve,.theme-pramuka .shirt-cuff,.theme-pramuka .shirt-collar,.theme-pramuka .shirt-pocket{fill:#e8d0a9;stroke:#4a2c12}.theme-pramuka .shirt-epaulet{fill:#d7b889;stroke:#4a2c12}.theme-pramuka .shirt-button{fill:#fdf6e9;stroke:#4a2c12}.theme-pramuka .shirt-line{stroke:#4a2c12}.theme-pramuka .shirt-stitch{stroke:#7c4a1e}.uniform-preview{background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px;margin-bottom:20px}.uniform-preview .shirt-svg{max-width:280px}.uniform-legend{display:flex;align-items:center;gap:14px;margin-top:10px;padding-top:12px;border-top:1px solid var(--border)}.uniform-legend img{width:64px;height:78px;object-fit:contain;flex-shrink:0;filter:drop-shadow(2.5px 0 0 #1f2937) drop-shadow(-2.5px 0 0 #1f2937) drop-shadow(0 2.5px 0 #1f2937) drop-shadow(0 -2.5px 0 #1f2937)}.uniform-legend-text{display:flex;flex-direction:column;gap:2px}.uniform-legend-title{font-weight:800;font-size:1.1rem}.uniform-legend-text span{color:var(--text-2)}.size-guide-body{display:grid;gap:16px}.size-guide-drawing{background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px}.size-guide-drawing .segmented{margin-top:8px}.size-guide-svg{display:block;width:100%;max-width:400px;margin:0 auto;height:auto}.guide-line{stroke:var(--primary);stroke-width:1.8}.guide-arrowhead{fill:var(--primary)}.guide-badge{fill:#fff;stroke:var(--primary);stroke-width:2}.guide-badge-text{fill:var(--primary);font-size:16px;font-weight:800}.num-badge{display:inline-grid;place-items:center;width:1.7em;height:1.7em;border-radius:50%;border:2px solid var(--primary);color:var(--primary);background:#fff;font-weight:800;font-size:.9em;line-height:1;flex-shrink:0;margin-right:6px;vertical-align:middle}.guide-list{list-style:none;margin:0;padding:0}.guide-list li{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--border)}.guide-list li:last-child{border-bottom:0}.guide-list .num-badge{font-size:1.05rem;margin-right:0}.guide-item-text{flex:1;display:flex;flex-direction:column}.guide-item-name{font-weight:800;font-size:1.1rem}.guide-item-how{color:var(--text-2);font-size:.95rem}.guide-item-value{font-size:1.4rem;font-weight:800;color:var(--primary);white-space:nowrap}.guide-item-value small{font-size:.9rem}.size-card-specs dt .num-badge{font-size:.8em;margin-right:4px}@media(min-width:768px){.size-guide-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}}.result-hero{background:var(--success-soft);border:2px solid #86c99d;border-radius:var(--radius);padding:24px 20px;margin-bottom:16px;text-align:center}.result-label{font-weight:700;color:var(--success);font-size:1.05rem}.result-size{font-size:3rem;font-weight:900;line-height:1.15;margin:6px 0;color:#0b3d20;word-break:break-word}.result-desc{font-size:1.1rem;color:var(--text-2)}.result-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px}.badge{display:inline-block;padding:3px 12px;border-radius:99px;font-size:.9rem;font-weight:700;line-height:1.5;vertical-align:middle;color:#fff}.badge-sd{background:var(--sd)}.badge-smp{background:var(--smp)}.badge-sma{background:var(--sma)}.badge-all{background:#6b21a8}.badge-neutral{background:#fff;color:var(--text);border:1px solid var(--border)}.badge-score{background:var(--success)}.spec-list{margin:0}.spec-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.spec-row:last-child{border-bottom:0}.spec-row dt{font-weight:700}.spec-note{display:block;font-weight:400;color:var(--text-2);font-size:.95rem}.spec-row dd{margin:0;font-size:1.4rem;font-weight:800;white-space:nowrap;color:var(--primary)}.spec-row dd small{font-size:.9rem;font-weight:700}.tip-box{margin-top:16px;padding:14px 16px;border-radius:var(--radius-sm);background:var(--primary-soft);border-left:5px solid var(--primary);color:#0f2a6b}.alt-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.alt-item{padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-alt)}.alt-name{display:block;font-weight:800;font-size:1.15rem}.alt-desc{color:var(--text-2)}.slip{border:2px dashed #94a3b8;border-radius:var(--radius-sm);padding:16px;background:var(--surface-alt)}.slip h3{text-align:center;color:var(--primary);margin-bottom:12px}.slip p{margin-bottom:4px}.slip-size{font-size:1.3rem;margin:8px 0!important}.slip-table{width:100%;border-collapse:collapse;margin-top:8px}.slip-table td{padding:6px 0;border-bottom:1px solid var(--border)}.slip-table td:last-child{text-align:right;font-weight:800}.empty{text-align:center;padding:32px 20px}.empty h3{font-size:1.25rem;margin-bottom:6px}.empty p{color:var(--text-2);margin-bottom:16px}.empty-icon{font-size:3rem;margin-bottom:8px}.profile-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}.avatar{width:56px;height:56px;border-radius:50%;background:var(--primary-soft);display:grid;place-items:center;font-size:1.8rem;flex-shrink:0}.avatar-f{background:#fde7f1}.profile-info{flex:1;min-width:0}.profile-name{font-size:1.3rem;font-weight:800;line-height:1.3}.profile-meta{color:var(--text-2)}.profile-sizes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.profile-size{background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px}.profile-size-type{font-weight:700;color:var(--text-2)}.profile-size-id{font-size:1.3rem;font-weight:900;line-height:1.3;margin:2px 0}.profile-size-detail{font-size:.95rem;color:var(--text-2)}.size-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.size-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow)}.size-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.size-card-id{font-size:1.3rem;font-weight:900}.size-card-label{color:var(--text-2);margin:4px 0 8px}.size-card-specs{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;margin:0}.size-card-specs dt{font-size:.9rem;color:var(--text-2)}.size-card-specs dd{margin:0;font-weight:800;font-size:1.1rem}.size-card .btn-row{margin-top:8px}.lock-card{text-align:center;padding:32px 20px}.pin-form{max-width:320px;margin:0 auto;text-align:left}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#0f172a8c;display:flex;align-items:flex-end;justify-content:center}.modal-card{background:#fff;width:100%;max-width:560px;max-height:92vh;overflow-y:auto;border-radius:20px 20px 0 0;padding:20px 20px calc(20px + var(--safe-bottom));outline:none}.modal-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.modal-title{font-size:1.3rem;font-weight:800}.modal-close{width:48px;height:48px;border-radius:50%;border:2px solid var(--border);background:#fff;font-size:1.2rem;flex-shrink:0}.guide h3{color:var(--primary);font-size:1.15rem;margin:8px 0}.guide ol{padding-left:1.4em;margin:0 0 12px}.guide li{margin-bottom:8px}.toast-container{position:fixed;left:16px;right:16px;bottom:calc(var(--nav-h) + var(--safe-bottom) + 12px);z-index:60;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}.toast{max-width:480px;width:100%;padding:14px 16px;border-radius:var(--radius-sm);background:#1f2937;color:#fff;font-weight:600;display:flex;gap:10px;box-shadow:0 8px 24px #00000040}.toast-success{background:var(--success)}.toast-error{background:var(--danger)}.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid var(--border);padding-bottom:var(--safe-bottom);box-shadow:0 -2px 10px #0f172a14}.nav-item{min-height:var(--nav-h);border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 2px;color:var(--text-2);border-top:4px solid transparent}.nav-item.active{color:var(--primary);border-top-color:var(--primary);background:var(--primary-soft)}.nav-icon{font-size:1.5rem;line-height:1}.nav-label{font-size:.85rem;font-weight:700;line-height:1.2;text-align:center}@media(max-width:420px){.brand-icon,.brand-sub,.hide-sm{display:none}.show-sm{display:inline}.card{padding:16px}.result-size{font-size:2.5rem}.profile-sizes{grid-template-columns:1fr}.segmented.cols-4{grid-template-columns:repeat(2,1fr)}.choice-card{padding:16px;gap:12px}.choice-icon{width:52px;height:52px;font-size:2rem}}@media(min-width:768px){body{padding-bottom:32px}.bottom-nav{display:none}.top-tabs{display:flex;justify-content:center;gap:4px;max-width:960px;margin:0 auto;padding:0 16px}.top-tab{min-height:52px;padding:0 20px;border:0;background:none;color:#fff;font-weight:700;font-size:1.05rem;border-bottom:4px solid transparent;opacity:.85}.top-tab.active{opacity:1;border-bottom-color:#fbbf24}.toast-container{bottom:24px}.modal-overlay{align-items:center}.modal-card{border-radius:20px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}@media print{body *{visibility:hidden}.print-area,.print-area *{visibility:visible}.print-area{position:absolute;top:0;right:0;bottom:0;left:0;max-height:none;box-shadow:none}.print-area .modal-close,.no-print{display:none!important}}
