:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--canvas:#f1eee8;--surface:#fffdf9;--surface-soft:#f7f2ea;--ink:#2c2824;--muted:#70685f;--line:#d9d1c7;--accent:#8f4f55;--accent-strong:#753e44;--accent-soft:#f4e3e4;--safe:#356651;--safe-soft:#e1eee7;--hold:#765b25;--hold-soft:#f7edcf;--danger:#8a3e3e;--danger-soft:#f6e1df;--shadow:0 22px 60px #3027201a}*{box-sizing:border-box}html{background:var(--canvas);min-width:320px}body{color:var(--ink);background:radial-gradient(circle at 8% 0%, #8f4f5514, transparent 28rem), var(--canvas);margin:0;font-family:-apple-system,BlinkMacSystemFont,Hiragino Sans,Yu Gothic,sans-serif}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #8f4f5552}.app-shell{width:min(1180px,100% - 32px);margin:28px auto}.workbench{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:22px;overflow:hidden}.app-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:24px;padding:24px 28px;display:flex}.eyebrow{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin:0 0 5px;font-size:.76rem;font-weight:600}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.025em;margin-bottom:0;font-size:clamp(1.45rem,3vw,2rem)}h2{margin-bottom:8px;font-size:clamp(1.2rem,2.5vw,1.55rem)}h3{margin-bottom:7px;font-size:1rem}.status-list,.tag-row,.candidate-actions,.footer-actions{flex-wrap:wrap;gap:8px;display:flex}.status{border:1px solid var(--line);white-space:nowrap;border-radius:999px;align-items:center;min-height:30px;padding:5px 10px;font-size:.76rem;display:inline-flex}.status-safe{color:var(--safe);background:var(--safe-soft);border-color:#bfd6c9}.status-hold{color:var(--hold);background:var(--hold-soft);border-color:#e3d3a7}.status-action{min-height:32px;color:var(--ink);cursor:pointer;background:var(--surface)}.signin-shell{place-items:center;min-height:100dvh;padding:20px;display:grid}.signin-card{border:1px solid var(--line);background:var(--surface);width:min(100%,460px);box-shadow:var(--shadow);border-radius:18px;padding:28px}.signin-card p:not(.eyebrow){color:var(--muted);line-height:1.7}.signin-card .primary-action{border:1px solid var(--accent);color:#fff;cursor:pointer;background:var(--accent);border-radius:10px;width:100%;min-height:44px;font-weight:700}.workflow-tabs{border-bottom:1px solid var(--line);background:#fffcf7;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px 28px;display:grid}.workflow-tab{min-height:46px;color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:11px;justify-content:center;align-items:center;gap:9px;display:flex}.workflow-tab span{border:1px solid var(--line);font-variant-numeric:tabular-nums;border-radius:50%;place-items:center;width:25px;height:25px;display:grid}.workflow-tab[data-active=true]{color:var(--ink);border-color:var(--accent);background:var(--accent-soft)}.workflow-tab[data-active=true] span{color:var(--accent);border-color:var(--accent)}.error-banner{color:var(--danger);background:var(--danger-soft);border:1px solid #dfb4af;border-radius:10px;margin:18px 28px 0;padding:11px 13px;font-size:.88rem}.stage{background:var(--canvas);padding:28px}.single-stage{min-height:540px}.section-heading{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px;display:flex}.section-heading p:not(.eyebrow){color:var(--muted);margin-bottom:0;font-size:.9rem}.selection-count,.run-label{color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}.upload-grid{grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr);gap:22px;display:grid}.synthetic-dog,.upload-copy,.reference-card,.candidate-card,.empty-state,.rejection-panel{border:1px solid var(--line);background:var(--surface);border-radius:16px}.synthetic-dog{background:radial-gradient(circle at 50% 38%, var(--accent-soft), transparent 38%), var(--surface-soft);place-items:center;min-height:380px;display:grid;position:relative;overflow:hidden}.dog-face{z-index:2;border:24px solid #bd7a55;border-radius:47% 47% 44% 44%;width:180px;height:190px;position:relative}.dog-ear{border:23px solid #bd7a55;border-radius:50%;width:95px;height:135px;position:absolute;top:86px}.dog-ear-left{left:calc(50% - 146px);transform:rotate(-18deg)}.dog-ear-right{right:calc(50% - 146px);transform:rotate(18deg)}.dog-eye,.dog-muzzle{background:#4d352f;display:block;position:absolute}.dog-eye{border-radius:50%;width:17px;height:17px;top:54px}.dog-eye-left{left:37px}.dog-eye-right{right:37px}.dog-muzzle{border-radius:50%;width:34px;height:24px;bottom:36px;left:50%;transform:translate(-50%)}.dog-input-empty-label{z-index:3;border:1px solid var(--line);color:var(--muted);background:#fffdf9eb;border-radius:999px;padding:5px 10px;font-size:.76rem;position:absolute;bottom:18px;right:18px}.dog-input-preview{border:1px solid var(--line);background:var(--surface-soft);border-radius:16px;place-items:center;min-height:380px;display:grid;overflow:hidden}.dog-input-preview img{object-fit:contain;width:100%;height:100%;max-height:540px;display:block}.dog-input-image-placeholder{width:100%;min-height:380px;color:var(--muted);text-align:center;place-items:center;padding:24px;display:grid}.upload-copy{flex-direction:column;justify-content:center;align-items:flex-start;padding:28px;display:flex}.upload-copy p{max-width:62ch;color:var(--muted);line-height:1.75}.disabled-upload,.upload-control{border:1px dashed var(--line);width:100%;color:var(--muted);background:var(--surface-soft);border-radius:12px;margin:10px 0 6px;padding:15px}.disabled-upload span,.upload-control>span{margin-bottom:8px;font-size:.85rem;font-weight:600;display:block}.disabled-upload input,.upload-control input{width:100%}.upload-permission-panel{border:1px solid var(--line);background:var(--surface-soft);border-radius:12px;gap:12px;width:100%;margin:12px 0 2px;padding:14px;display:grid}.upload-permission-panel:disabled{opacity:.66}.upload-permission-panel legend{padding:0 5px;font-size:.8rem;font-weight:700}.confirmation-option{align-items:flex-start;gap:9px;line-height:1.55;display:flex}.confirmation-option input{flex:none;margin-top:4px}.confirmation-option span,.consent-field span{color:var(--ink);font-size:.82rem;font-weight:600}.consent-field{gap:6px;width:100%;display:grid}.consent-field select{border:1px solid var(--line);width:100%;min-height:40px;color:var(--ink);background:var(--surface);border-radius:9px;padding:7px 9px}.dog-input-status{border:1px solid var(--line);width:100%;min-height:48px;color:var(--muted);background:var(--surface-soft);border-radius:12px;margin-top:8px;padding:12px;font-size:.8rem;line-height:1.55}.dog-input-status strong{color:var(--accent)}.dog-input-status p{margin:9px 0 0;line-height:1.5}.check-list,.photo-actions{flex-wrap:wrap;gap:8px;display:flex}.check-list span{color:var(--safe);background:var(--safe-soft);border:1px solid #bfd6c9;border-radius:999px;padding:4px 8px;font-size:.72rem;font-weight:700}.dog-input-permissions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px;display:grid}.dog-input-permissions span{border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:5px 7px}.dog-input-permissions span[data-status=allowed]{color:var(--safe);background:var(--safe-soft);border-color:#bfd6c9}.dog-input-permissions span[data-status=denied],.dog-input-permissions span[data-status=not_verified]{color:var(--hold);background:var(--hold-soft);border-color:#e3d3a7}.retention-copy{margin:10px 0 2px;font-size:.78rem}.photo-actions{width:100%;margin-top:8px}.hold-copy{font-size:.82rem;color:var(--hold)!important}.candidate-generation-status{color:var(--accent);margin:8px 0 0;font-weight:700}.order-spec-panel{background:var(--accent-soft);border:1px solid #cfa7aa;border-radius:16px;gap:16px;margin-bottom:24px;padding:18px;display:grid}.order-spec-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.order-spec-heading h3{margin:2px 0 0;font-size:1.12rem}.order-spec-heading>strong,.order-spec-summary{color:var(--accent-strong);font-size:.82rem;line-height:1.6}.order-spec-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.order-spec-fields fieldset{border:1px solid var(--line);background:var(--surface);border-radius:12px;min-width:0;padding:12px}.order-spec-fields legend{padding:0 5px;font-size:.8rem;font-weight:750}.order-choice-list{gap:7px;display:grid}.order-choice-list label{background:var(--surface-soft);cursor:pointer;border-radius:8px;align-items:center;gap:8px;min-height:34px;padding:6px 8px;font-size:.8rem;font-weight:650;display:flex}.order-choice-list label[data-disabled=true]{cursor:not-allowed;opacity:.48}.order-spec-fields fieldset>p{color:var(--muted);margin:9px 0 0;font-size:.74rem}.reference-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.reference-toolbar{border:1px solid var(--line);background:var(--surface);border-radius:14px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-items:end;gap:12px;margin-bottom:14px;padding:14px;display:grid}.reference-toolbar label:first-child{grid-column:span 2}.reference-toolbar label{color:var(--muted);gap:6px;font-size:.76rem;font-weight:600;display:grid}.reference-toolbar input,.reference-toolbar select{border:1px solid var(--line);width:100%;min-height:42px;color:var(--ink);background:var(--surface-soft);border-radius:9px;padding:8px 10px}.reference-result-count{min-height:42px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;padding:11px 4px;font-size:.8rem}.selected-reference-tray{background:var(--safe-soft);border:1px solid #bfd6c9;border-radius:12px;grid-template-columns:auto 1fr;align-items:center;gap:12px;margin-bottom:14px;padding:11px 13px;display:grid}.selected-reference-tray>strong{color:var(--safe);font-size:.8rem}.selected-reference-tray>div{flex-wrap:wrap;gap:7px;display:flex}.selected-reference-tray button{color:var(--safe);background:var(--surface);cursor:pointer;border:1px solid #a9c9b6;border-radius:999px;flex-wrap:wrap;align-items:center;gap:5px;padding:5px 9px;font-size:.75rem;display:inline-flex}.selected-reference-role{font-weight:750}.selected-reference-name{color:var(--ink)}.selected-reference-note{color:var(--muted);grid-column:1/-1;margin:-3px 0 0;font-size:.75rem}.selected-reference-tray div>span{color:var(--muted);font-size:.78rem}.reference-card{color:inherit;cursor:pointer;text-align:left;grid-template-columns:148px minmax(0,1fr);gap:15px;padding:13px;transition:border-color .15s,box-shadow .15s,transform .15s;display:grid}.reference-card:hover{transform:translateY(-1px)}.reference-card[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.reference-card:disabled{opacity:.58;cursor:not-allowed}.reference-image-wrap{aspect-ratio:1;background:#ece5dc;border-radius:11px;align-self:start;display:block;position:relative;overflow:hidden}.reference-image-wrap img{object-fit:contain;width:100%;height:100%;display:block}.reference-image-placeholder{width:100%;height:100%;color:var(--muted);text-align:center;background:linear-gradient(145deg,#f4e5ca,#d7b992);place-items:center;padding:14px;font-size:.74rem;line-height:1.5;display:grid}.reference-code,.reference-selected-mark{z-index:1;border-radius:999px;padding:4px 7px;font-size:.68rem;font-weight:700;position:absolute}.reference-code{color:var(--ink);background:#fffdf9eb;bottom:7px;left:7px}.reference-selected-mark{color:#fff;background:var(--accent);top:7px;right:7px}.reference-copy{align-content:start;gap:10px;min-width:0;display:grid}.reference-copy strong{font-size:1rem}.tag-row span{color:var(--muted);background:var(--surface-soft);border-radius:6px;padding:4px 6px;font-size:.72rem}.permission-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;font-size:.7rem;display:grid}.permission-grid span{border:1px solid var(--line);color:var(--muted);background:var(--surface-soft);border-radius:6px;padding:4px 6px}.permission-grid span[data-status=allowed]{color:var(--safe);background:var(--safe-soft);border-color:#bfd6c9}.permission-grid span[data-status=denied],.permission-grid span[data-status=not_verified]{color:var(--hold);background:var(--hold-soft);border-color:#e3d3a7}.reference-empty{border:1px dashed var(--line);color:var(--muted);background:var(--surface);text-align:center;border-radius:12px;margin-top:14px;padding:24px}.reference-pagination{justify-content:center;align-items:center;gap:14px;margin-top:18px;display:flex}.reference-pagination span{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.8rem}.stage-footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:18px;margin-top:20px;padding-top:18px;display:flex}.stage-footer p{color:var(--muted);margin-bottom:0;font-size:.82rem}.primary-button,.secondary-button,.text-button,.button-link{cursor:pointer;border-radius:9px;justify-content:center;align-items:center;min-height:44px;padding:8px 13px;font-weight:600;text-decoration:none;display:inline-flex}.primary-button{border:1px solid var(--accent);color:#fff;background:var(--accent)}.primary-button:hover:not(:disabled){border-color:var(--accent-strong);background:var(--accent-strong)}.secondary-button{border:1px solid var(--line);color:var(--ink);background:var(--surface)}.text-button{min-height:auto;color:var(--accent);background:0 0;border:0}.primary-button:disabled,.secondary-button:disabled{cursor:not-allowed;opacity:.46}.candidate-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.candidate-card{overflow:hidden}.candidate-image-wrap{aspect-ratio:1;background:var(--surface-soft);position:relative;overflow:hidden}.candidate-image-wrap img{object-fit:cover;width:100%;height:100%;display:block}.candidate-deleted-placeholder{width:100%;height:100%;color:var(--muted);background:repeating-linear-gradient(-45deg, transparent, transparent 12px, #70685f0d 12px, #70685f0d 24px), var(--surface-soft);text-align:center;place-items:center;padding:24px;display:grid}.candidate-deleted-placeholder span{max-width:12rem;font-size:.82rem;font-weight:600;line-height:1.6}.candidate-image-wrap>span{color:var(--hold);background:#fffaf0eb;border-radius:999px;padding:5px 8px;font-size:.68rem;position:absolute;bottom:9px;right:9px}.candidate-copy{padding:15px}.candidate-title-row{justify-content:space-between;align-items:center;gap:10px;display:flex}.candidate-title-row h3{margin-bottom:0}.decision-state{color:var(--muted);background:var(--surface-soft);white-space:nowrap;border-radius:999px;padding:4px 7px;font-size:.69rem}.decision-adopted{color:var(--safe);background:var(--safe-soft)}.decision-rejected{color:var(--danger);background:var(--danger-soft)}.decision-deleted{color:var(--muted);background:var(--surface-soft)}.decision-summary{color:var(--muted);margin:10px 0 0;font-size:.77rem}.candidate-actions{margin-top:14px}.candidate-actions>*{flex:120px}.rejection-panel{margin-top:18px;padding:20px}.refinement-panel{background:var(--accent-soft);border:1px solid #cfa7aa;border-radius:14px;margin-top:18px;padding:20px}.refinement-panel .note-field{margin:0}.refinement-count{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.76rem}.previous-refinement{border-left:3px solid var(--accent);color:var(--ink);overflow-wrap:anywhere;background:#ffffff94;margin:0 0 14px;padding:8px 10px;font-size:.8rem;line-height:1.6}.refinement-help{color:var(--muted);margin:9px 0 0;font-size:.74rem;line-height:1.6}.compact-heading{margin-bottom:12px}.reason-grid{border:0;flex-wrap:wrap;gap:8px;margin:0;padding:0;display:flex}.reason-option{border:1px solid var(--line);background:var(--surface-soft);cursor:pointer;border-radius:999px;align-items:center;gap:6px;padding:7px 10px;font-size:.8rem;display:inline-flex}.note-field{color:var(--muted);gap:7px;margin:16px 0;font-size:.8rem;display:grid}.note-field textarea{resize:vertical;border:1px solid var(--line);width:100%;color:var(--ink);background:var(--surface);border-radius:9px;padding:10px}.empty-state{text-align:center;justify-items:center;min-height:360px;padding:36px;display:grid}.empty-state p{max-width:54ch;color:var(--muted)}.review-footer{align-items:flex-end}.subtle-copy{margin-top:4px!important;font-size:.75rem!important}.local-footer{color:var(--muted);text-align:center;padding:14px 18px 0;font-size:.75rem}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (max-width:840px){.candidate-grid{grid-template-columns:1fr}.candidate-card{grid-template-columns:minmax(220px,.85fr) minmax(0,1.15fr);display:grid}.candidate-image-wrap{aspect-ratio:1}}@media (max-width:700px){.app-shell{width:min(100% - 20px,620px);margin:10px auto 22px}.workbench{border-radius:16px}.app-header{padding:20px;display:grid}.workflow-tabs{padding:10px}.workflow-tab{justify-items:center;gap:5px;min-height:62px;padding:7px 3px;font-size:.72rem;display:grid}.stage{padding:18px}.section-heading,.stage-footer,.review-footer{flex-direction:column;align-items:stretch}.upload-grid,.reference-grid{grid-template-columns:1fr}.reference-toolbar{grid-template-columns:1fr 1fr}.reference-toolbar label:first-child{grid-column:1/-1}.order-spec-heading{flex-direction:column;align-items:stretch}.order-spec-fields{grid-template-columns:1fr}.reference-result-count{grid-column:1/-1;min-height:auto;padding:2px 0}.synthetic-dog,.dog-input-preview,.dog-input-image-placeholder{min-height:300px}.stage-footer .primary-button,.footer-actions,.footer-actions>*,.upload-copy>.primary-button,.photo-actions,.photo-actions>*{width:100%}.candidate-card{display:block}}@media (max-width:460px){.reference-toolbar{grid-template-columns:1fr}.reference-toolbar label:first-child,.reference-result-count{grid-column:auto}}@media (max-width:390px){.app-shell{width:calc(100% - 12px);margin-top:6px}.app-header,.stage{padding:15px}.status-list{gap:6px}.status{font-size:.68rem}.reference-card{grid-template-columns:110px minmax(0,1fr);gap:11px;padding:10px}.reference-toolbar,.selected-reference-tray{grid-template-columns:1fr}.reference-pagination{justify-content:space-between;gap:6px}.permission-grid,.dog-input-permissions{grid-template-columns:1fr}.reference-pagination .secondary-button{padding-inline:11px}.upload-copy,.rejection-panel{padding:16px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
