:root{--p:#61187c;--p-dark:#4a1262;--p-pale:#f3e9f7;--ivory:#fffff0;--ink:#241b2a;--border:#ddd}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;font-family:system-ui,sans-serif;background:var(--ivory);color:var(--ink);line-height:1.5;min-width:0}h1,h2,h3,.brand,.hero{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:.01em}h1{font-size:2rem;margin:0 0 1rem}h2{font-size:1.5rem;margin:0 0 .75rem}h3{font-size:1.15rem;margin:0 0 .5rem}#nav{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;background:var(--p);color:#fff;padding:.75rem 1rem;font-family:system-ui}#nav a{color:#fff;text-decoration:none;padding:.35rem .25rem;white-space:nowrap;min-height:44px;display:inline-flex;align-items:center}#nav a.brand{font-weight:700;font-family:Georgia,serif;font-size:1.1rem}#nav a:hover,#nav a:focus{text-decoration:underline}#nav a[aria-current=page]{text-decoration:underline;font-weight:700;border-bottom:2px solid var(--ivory)}.demo-bar{background:var(--p-dark);color:var(--ivory);text-align:center;padding:.4rem 1rem;font-family:system-ui;font-size:.85rem}.hero{padding:3.5rem 1.5rem;text-align:center;background:linear-gradient(180deg,var(--p),var(--p-dark));color:#fff;border-radius:.5rem;margin:1.5rem auto;max-width:1100px}.hero h1,.hero h2,.hero p{color:#fff}main#main{max-width:1100px;margin:0 auto;padding:1rem 1.25rem 2.5rem;overflow-wrap:anywhere;min-width:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem;margin:1.5rem 0}.card,.panel{background:#fff;border:1px solid var(--border);border-radius:.6rem;padding:1.25rem;overflow-wrap:anywhere;min-width:0}.panel+.panel{margin-top:1rem}.panel.hero{background:linear-gradient(180deg,var(--p),var(--p-dark));border:none;color:#fff}img{max-width:100%;height:auto;object-fit:cover;border-radius:.4rem}button,.btn,input[type=submit],input[type=button]{display:inline-flex;align-items:center;justify-content:center;background:var(--p);color:#fff;border:none;padding:.6rem 1.2rem;border-radius:.4rem;cursor:pointer;font-family:system-ui;font-size:1rem;min-height:44px;min-width:44px;line-height:1.2;transition:background .15s ease}button:hover,.btn:hover,button:focus,.btn:focus,input[type=submit]:hover,input[type=button]:hover{background:var(--p-dark);outline:2px solid var(--p-dark)}button:disabled,.btn:disabled,input[type=submit]:disabled,input[type=button]:disabled{background:#9c8ca3;color:#f1eaf4;cursor:not-allowed;outline:none;opacity:1}.field{display:flex;flex-direction:column;gap:1rem;font-family:system-ui;margin-bottom:1rem}.field label{display:block;width:100%;font-weight:600;margin-bottom:.25rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem 1.25rem}input,select,textarea{padding:.6rem;border:1px solid #bbb;border-radius:.3rem;font-family:system-ui;font-size:1rem;width:100%;min-height:44px;background:#fff;color:var(--ink)}textarea{min-height:88px}input[type=checkbox],input[type=radio]{width:auto;min-height:0;min-width:0}input:focus,select:focus,textarea:focus,a:focus,button:focus{outline:2px solid var(--p)}@media(max-width:600px){.form-grid{grid-template-columns:1fr}}.tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.badge{background:var(--p-pale);color:var(--p-dark);padding:.3rem .7rem;border-radius:1rem;font-size:.8rem;display:inline-block;border:1px solid var(--p);font-weight:600}.muted{color:#666;font-family:system-ui}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:480px}th,td{text-align:left;padding:.5rem;border-bottom:1px solid #eee;word-break:break-word}thead th{background:var(--p-pale);color:var(--p-dark)}pre{white-space:pre-wrap;word-break:break-word;background:var(--p-pale);padding:.75rem;border-radius:.4rem;font-size:.9rem}#login{position:fixed;inset:0;background:rgba(36,27,42,.5);display:flex;align-items:center;justify-content:center;z-index:1000;overflow-y:auto;padding:1rem}#login[hidden]{display:none}#login .panel{max-width:460px;width:100%;max-height:90vh;overflow-y:auto}#login-error{color:#b00020;font-weight:600;min-height:1.2em}#toast{position:fixed;bottom:1rem;left:50%;transform:translateX(-50%);z-index:1100;background:var(--ink);color:#fff;padding:.75rem 1.25rem;border-radius:.4rem;max-width:90vw}footer{text-align:center;padding:1.5rem 1rem;font-size:.85rem;font-family:system-ui;color:#666}[data-page=staff] .card,[data-page=staff] .panel{padding:.9rem}[data-page=staff] input,[data-page=staff] select,[data-page=staff] textarea{font-size:.95rem}@media(max-width:390px){#nav{padding:.5rem;gap:.5rem}.hero{padding:2rem .75rem;margin:1rem auto}main#main{padding:.75rem}}

.ce-root{font-family:Georgia,serif;background:ivory;color:#2a0a30;padding:1rem;max-width:1440px;margin:0 auto}.ce-header{border-bottom:3px solid #61187c;padding-bottom:.5rem;margin-bottom:1rem}.ce-header h1{color:#61187c;margin:0 0 .25rem;font-size:1.6rem}.ce-filter{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end;background:#f4e9f7;border:1px solid #61187c;border-radius:.5rem;padding:.75rem;margin-bottom:1rem}.ce-filter label{display:flex;flex-direction:column;font-size:.85rem;gap:.25rem}.ce-filter input{padding:.4rem;border:1px solid #61187c;border-radius:.3rem;font-family:Georgia,serif;min-height:44px}.ce-filter button{background:#61187c;color:#fff;border:none;padding:.5rem 1rem;border-radius:.3rem;cursor:pointer;font-family:Georgia,serif;min-height:44px}.ce-filter button:disabled{opacity:.6;cursor:not-allowed}.ce-status{min-height:1.2rem;font-style:italic}.ce-layout{display:grid;grid-template-columns:320px 1fr;gap:1.5rem}@media(max-width:800px){.ce-layout{grid-template-columns:1fr}}.ce-rail{display:flex;flex-direction:column;gap:.75rem;max-height:70vh;overflow:auto}.ce-card{border:2px solid #61187c;border-radius:.6rem;padding:.6rem;background:#fff}.ce-card[aria-current=true]{box-shadow:0 0 0 3px #61187c inset;background:#f4e9f7}.ce-card h3{margin:.2rem 0;color:#61187c;font-size:1rem}.ce-card-index{font-weight:bold;color:#61187c;margin-right:.3rem}.ce-badge{display:inline-block;font-size:.7rem;padding:.1rem .4rem;border-radius:1rem;background:#61187c;color:#fff;margin-right:.3rem}.ce-thumb{width:100%;height:90px;object-fit:cover;border-radius:.4rem}.ce-illustration{width:100%;height:90px;display:flex;align-items:center;justify-content:center;border:1px dashed #61187c;border-radius:.4rem;background:#f4e9f7;font-size:.72rem;text-align:center;padding:.3rem}.ce-stage{border:2px solid #61187c;border-radius:.8rem;padding:1.25rem;background:#fff}.ce-stage h2{font-size:1.4rem;line-height:1.3}.ce-stage-photo{width:100%;max-height:360px;object-fit:cover;border-radius:.5rem;transition:opacity .25s ease}@media(prefers-reduced-motion:reduce){.ce-stage-photo{transition:none}}.ce-matrix-wrap{overflow-x:auto;margin-top:1rem}.ce-matrix-wrap:focus{outline:3px solid #61187c}.ce-matrix{width:100%;border-collapse:collapse;min-width:480px}.ce-matrix th,.ce-matrix td{border:1px solid #61187c;padding:.4rem;text-align:left;font-size:.85rem}.ce-tray{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0;align-items:center}.ce-tray-item{border:1px solid #61187c;border-radius:.4rem;padding:.3rem .5rem;background:#f4e9f7;font-size:.8rem}.ce-max-note{font-size:.8rem;font-style:italic;margin:.3rem 0 0}.ce-steps{display:flex;gap:.4rem;flex-wrap:wrap;margin:1rem 0}.ce-steps button{background:#fff;border:1px solid #61187c;color:#61187c;padding:.4rem .7rem;border-radius:1rem;cursor:pointer;font-family:Georgia,serif;min-height:44px}.ce-steps button[aria-current=step]{background:#61187c;color:#fff}.ce-preview-tag,.ce-real-tag{display:inline-block;font-size:.65rem;vertical-align:middle;border-radius:1rem;padding:.1rem .5rem;margin-left:.5rem}.ce-preview-tag{background:#f4e9f7;color:#61187c;border:1px solid #61187c}.ce-real-tag{background:#61187c;color:#fff}.ce-summary{position:static;background:#61187c;color:#fff;padding:.75rem 1rem;border-radius:.6rem .6rem 0 0;display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;margin-top:1.5rem}.ce-dialog{position:fixed;inset:0;background:rgba(42,10,48,.85);display:flex;align-items:center;justify-content:center;padding:1rem;z-index:999}.ce-dialog-inner{background:#fff;border-radius:.6rem;padding:1rem;max-width:90vw;max-height:90vh;overflow:auto}.ce-dialog-inner button{min-height:44px;min-width:44px}.ce-error{color:#8b0000;font-weight:bold}.ce-root button:focus-visible,.ce-root input:focus-visible,.ce-root [tabindex]:focus-visible{outline:3px solid #61187c;outline-offset:2px}@media(max-width:400px){.ce-summary{flex-direction:column;align-items:stretch}}

.ce-root{background:#fdfcf9;color:#2a2a2a;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;line-height:1.5}
.ce-root h1,.ce-root h2,.ce-root h3,.ce-root h4{font-family:Georgia,'Times New Roman',serif;color:#3a1150;letter-spacing:.2px}
.ce-root h3{font-size:1rem;margin:.4rem 0}
.ce-layout{display:grid;grid-template-columns:320px 1fr;gap:1.25rem;align-items:start}
.ce-rail-wrap{display:flex;flex-direction:column;min-width:0;border:1px solid #e3ddd2;border-radius:.6rem;background:#fff;padding:.75rem;max-height:80vh;overflow:auto}
.ce-rail-header{font-weight:bold;margin-bottom:.5rem;color:#3a1150}
.ce-rail{display:flex;flex-direction:column;gap:.75rem}
.ce-card{border:1px solid #e3ddd2;border-radius:.5rem;padding:.6rem;background:#fdfcf9;display:flex;flex-direction:column;gap:.35rem}
.ce-card[aria-current='true']{border-color:#61187c;box-shadow:0 0 0 2px rgba(97,24,124,.25);background:#f8f2fb}
.ce-entry-num{font-size:.75rem;color:#8a7f91;font-weight:bold}
.ce-card button,.ce-card label{min-height:44px;display:flex;align-items:center;justify-content:center;gap:.4rem}
.ce-card button{background:#61187c;color:#fff;border:none;border-radius:.4rem;cursor:pointer;padding:0 .75rem}
.ce-card button[aria-pressed='true']{background:#3a1150}
.ce-thumb,.ce-illustration{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex:0 0 auto;width:100%;height:90px;overflow:hidden;background:#f3f0ea;border-radius:.4rem;color:#7a6f85}
.ce-thumb img{width:100%;height:90px;object-fit:cover;border-radius:.4rem;flex:0 0 auto}
.ce-thumb svg,.ce-illustration svg{width:100%;height:90px;object-fit:contain;flex:0 0 auto;max-width:100%}
.ce-preview-tag{display:block;width:100%;font-size:.7rem;color:#7a6f85;margin-top:.25rem;white-space:normal;text-align:center}
.ce-stage{min-width:0;border:1px solid #e3ddd2;border-radius:.6rem;background:#fff;padding:1rem}
@media(max-width:800px){.ce-layout{grid-template-columns:1fr}.ce-rail-wrap{max-height:none}}

.ce-thumb{height:80px}
.ce-thumb svg{height:60px}
.ce-thumb .ce-preview-tag{height:20px;line-height:20px;margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ce-illustration{height:300px}
.ce-illustration svg{height:270px}
.ce-illustration .ce-preview-tag{height:30px;line-height:1.1;margin-top:0;overflow:hidden;white-space:normal;text-overflow:ellipsis}
.start-step{display:flex;gap:.8rem;align-items:center;padding:.7rem 0;border-top:1px solid #e3ddd2}
.start-step .btn{margin-left:auto;white-space:nowrap}
.start-n{flex:0 0 2rem;height:2rem;border-radius:50%;background:#61187c;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:bold}
.start-step.ok .start-n{background:#2e7d32}
.start-bar{height:.6rem;background:#e3ddd2;border-radius:.3rem;margin:.5rem 0}
.start-bar span{display:block;height:100%;background:#2e7d32;border-radius:.3rem}
.photo-list img{max-width:120px;max-height:90px;object-fit:cover;border-radius:.3rem}
@media(max-width:600px){.start-step{flex-wrap:wrap}.start-step .btn{margin-left:0;width:100%}}
[hidden]{display:none!important}
