@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');
:root{--bg:#f6f7f4;--paper:#fff;--ink:#263b32;--muted:#808b84;--line:#e6eae4;--green:#285b47;--dark:#1e4435;--lime:#dceaaf;--pale:#edf3e9;--amber:#9d6a22;--radius:14px}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font-family:'DM Sans','Noto Sans JP',sans-serif;font-size:13px;line-height:1.65}button,input,textarea,select{font:inherit}button,a,input,textarea,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #78a790;outline-offset:3px}button{color:inherit}a{color:var(--green);text-decoration:none}svg{width:19px;height:19px;flex-shrink:0;vertical-align:middle;stroke-width:1.65}h1,h2,h3,p{margin:0}h1{font-size:28px;font-weight:700;letter-spacing:-.7px;line-height:1.5}h2{font-size:17px;font-weight:700}h3{font-size:14px}small{font-size:11px}button{border:0;background:none}.shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{background:#fcfdfb;border-right:1px solid var(--line);height:100vh;position:sticky;top:0;padding:30px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;padding:0 8px 34px;font-size:18px;font-weight:700;letter-spacing:-.6px}.brand-mark{width:34px;height:34px;display:grid;place-items:center;background:var(--dark);color:var(--lime);border-radius:10px}.brand-mark svg{width:21px;height:21px}.workspace{background:#f0f3ed;border:1px solid #e6eae1;border-radius:9px;padding:11px;display:flex;align-items:center;gap:10px;margin-bottom:25px;font-weight:600}.workspace small{color:var(--muted);font-weight:400;display:block}.workspace-avatar{height:30px;width:30px;background:white;border:1px solid var(--line);border-radius:7px;display:grid;place-items:center}.nav-caption{font-size:10px;color:#9da79f;letter-spacing:1.5px;margin:16px 14px 9px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:8px;text-align:left;color:#77847b;margin:3px 0;font-weight:500}.nav-item.active{background:#e9eee4;color:#315841;font-weight:700}.nav-item:hover{background:#f0f3ed}.nav-item .count{margin-left:auto;background:#dce8d4;font-size:10px;min-width:20px;text-align:center;border-radius:4px;color:#4c6343}.sidebar-bottom{margin-top:auto}.system-card{border:1px solid var(--line);border-radius:10px;padding:15px 13px;font-size:11px;margin-top:20px;color:var(--muted)}.system-card strong{color:var(--ink);font-size:12px;display:flex;align-items:center;gap:7px;margin-bottom:7px}.dot{height:6px;width:6px;background:#7f9b70;border-radius:50%;display:inline-block}.topbar{height:75px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.75);display:flex;align-items:center;justify-content:space-between;padding:0 39px;gap:16px}.crumb{color:var(--muted);font-size:12px;display:flex;align-items:center;gap:14px}.crumb b{color:#516354;font-weight:500}.top-actions{display:flex;align-items:center;gap:19px}.mode{border:1px solid #e4e8dd;background:#f7f9f0;border-radius:5px;font-size:10px;padding:4px 9px;letter-spacing:.3px}.avatar{height:30px;width:30px;border-radius:50%;background:#e9e9da;display:grid;place-items:center;color:#6d7359;font-size:11px;border:3px solid white;box-shadow:0 0 0 1px var(--line)}main{padding:34px 39px 60px;max-width:1630px;margin:auto}.eyebrow{font-size:10px;color:#758570;letter-spacing:2px;font-weight:600;margin-bottom:9px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:27px}.page-head p{color:var(--muted);font-size:12px;margin-top:7px}.btn{padding:10px 16px;border:1px solid #dfe5dc;border-radius:8px;background:white;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:500;white-space:nowrap;min-height:39px}.btn:hover{background:#f3f6ef;border-color:#b9c8b8}.btn.primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 2px 3px #153d2110}.btn.primary:hover{background:var(--dark)}.btn.soft{background:var(--pale);color:var(--green);border-color:var(--pale)}.btn.small{font-size:11px;padding:6px 10px;min-height:30px}.btn.danger{color:#a4443c}.btn.icon-only{padding:9px}.hero{position:relative;border:1px solid #dce4d2;background:#eaf0e2;border-radius:var(--radius);padding:28px 32px;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:26px;min-height:160px}.hero h2{font-size:22px;letter-spacing:-.7px}.hero p{font-size:12px;color:#7d8b74;max-width:455px;margin:9px 0 18px}.hero-art{width:280px;height:137px;position:relative;flex-shrink:0}.art-sheet{position:absolute;width:90px;height:120px;background:#f8f9ee;box-shadow:0 7px 20px #53643812;border:1px solid #d6dfca;border-radius:7px;top:12px;left:36px;transform:rotate(-12deg);padding:13px;color:#91a079}.art-sheet:before{content:'';height:43px;background:#dde5d0;display:block;border-radius:4px;margin:7px 0}.art-sheet:after{content:'';display:block;width:80%;height:4px;background:#d9e1cd;margin-top:10px;box-shadow:0 9px #e4e9da}.art-sheet.mid{left:116px;top:5px;transform:rotate(8deg);background:#47644e;color:#dfeaab;border-color:#47644e}.art-sheet.mid:before{background:#78906a}.art-sheet.front{left:177px;top:38px;transform:rotate(16deg);width:75px;height:84px;background:#eef0db}.spark{position:absolute;left:15px;top:15px;font-size:27px;color:#97ad7b}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:29px}.stat{background:white;border:1px solid var(--line);border-radius:11px;padding:18px 20px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#7e8c80;font-size:11px}.stat-icon{height:29px;width:29px;border-radius:8px;background:#f0f4eb;display:grid;place-items:center;color:#78946d}.stat-num{font-size:28px;font-weight:600;line-height:1.3;margin-top:6px;letter-spacing:-.9px}.stat-foot{font-size:10px;color:#929c92;margin-top:5px}.stat-foot.green{color:#6f9165}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:26px 0 17px;gap:16px}.section-heading h2{font-size:15px}.section-heading h2 span{font-size:11px;font-weight:400;color:var(--muted);margin-left:9px}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.search{display:flex;align-items:center;border:1px solid var(--line);background:white;border-radius:7px;padding:7px 10px;gap:7px;min-width:220px;color:#9ba79d}.search input{border:0;background:none;padding:0;outline:none!important;font-size:11px;width:100%;color:var(--ink)}.tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow:auto}.tab{padding:12px 14px;color:var(--muted);border-bottom:2px solid transparent;font-size:12px;white-space:nowrap}.tab.active{border-color:var(--green);color:var(--green);font-weight:600}.filter-tabs{display:flex;background:#eaf0e6;padding:3px;border-radius:7px;gap:3px}.filter-tabs button{font-size:11px;color:#85907f;padding:5px 11px;border-radius:5px}.filter-tabs button.active{background:white;color:#3d593f;box-shadow:0 1px 3px #152b1010}.panel{border:1px solid var(--line);background:white;border-radius:var(--radius);overflow:hidden}.project-table{border-collapse:collapse;width:100%;text-align:left}.project-table th{background:#fbfcf9;color:#9aa394;font-size:10px;font-weight:500;padding:13px 19px;border-bottom:1px solid var(--line);letter-spacing:.3px;white-space:nowrap}.project-table td{padding:21px 19px;font-size:12px;border-bottom:1px solid #edf0e9}.project-table tbody tr:last-child td{border-bottom:0}.project-table tr[data-project]{cursor:pointer}.project-table tr[data-project]:hover{background:#fbfcf8}.project-cell{display:flex;align-items:center;gap:13px;min-width:200px}.project-cover{width:45px;height:48px;border-radius:7px;background:linear-gradient(145deg,#e5e7d8,#becab0);display:grid;place-items:center;color:#4f6845;font-family:serif;font-size:22px}.project-cell strong{display:block;font-size:12px;font-weight:600}.project-cell small{display:block;font-size:9px;color:#a0a898;margin-top:4px;letter-spacing:.6px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 8px;font-size:10px;line-height:1.5;white-space:nowrap;background:#f0f2ee;color:#859080}.badge.green{background:#eaf3e5;color:#668057}.badge.amber{background:#fbf1db;color:#a28742}.badge.red{background:#f9e9e6;color:#b3665d}.badge.blue{background:#e9eff6;color:#6b829d}.progress{height:4px;background:#edf1e9;overflow:hidden;border-radius:10px;min-width:100px}.progress span{display:block;height:100%;background:#8da67a;border-radius:10px}.progress-label{display:flex;justify-content:space-between;color:#9ba392;font-size:10px;margin-bottom:6px}.muted{color:var(--muted)}.subtle-link{font-size:11px;color:#8c9b7c;display:flex;align-items:center;gap:6px}.recent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.recent-card{border-radius:11px;background:white;border:1px solid var(--line);overflow:hidden;text-align:left;cursor:pointer;padding:0}.recent-image{height:160px;background:#e7eadd;padding:13px;display:flex;align-items:center;justify-content:center}.recent-image img{height:100%;max-width:100%;object-fit:contain;box-shadow:0 3px 7px #263c3212}.recent-info{padding:13px 16px}.recent-info strong{font-size:11px;display:block}.recent-info small{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:5px}.notice{padding:14px 18px;border:1px solid #e7dec8;background:#fcf8ed;color:#94763d;border-radius:9px;display:flex;align-items:center;gap:12px;margin-bottom:22px;font-size:12px}.notice.green{background:#eff5eb;border-color:#dce7d4;color:#628453}.notice span{flex:1}.notice .btn{flex-shrink:0}.workflow{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-bottom:25px}.step{background:white;border:1px solid var(--line);border-radius:10px;padding:17px 12px}.step small{color:#acb5a8;font-size:10px;display:block;margin-bottom:9px}.step strong{font-size:12px;display:block;margin-top:7px}.step.done{background:#f0f5ea;border-color:#dbe5d1}.step svg{color:#78946a}.two-cols{display:grid;grid-template-columns:1.2fr 1fr;gap:23px}.panel-inner{padding:23px}.panel-inner h2{margin-bottom:19px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:17px}.field label{font-size:11px;font-weight:600;color:#61705f}.field label b{color:#af7d4d;margin-left:4px}.field input,.field textarea,.field select,.select{width:100%;border:1px solid #dfe5d9;border-radius:7px;padding:10px 12px;color:#344c3b;background:#fff;outline:none;min-height:40px}.field textarea{resize:vertical;min-height:90px}.field input:focus,.field textarea:focus,.field select:focus{border-color:#8daa7b;box-shadow:0 0 0 3px #8daa7b16}.field small{color:#9ca58f;font-size:10px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.full{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:15px;border-top:1px solid var(--line);align-items:center}.form-actions small{margin-right:auto;color:var(--muted)}.upload{border:1px dashed #c4d1b8;background:#f8faf4;border-radius:10px;padding:26px;text-align:center;color:#8c9b7d;display:block;cursor:pointer}.upload svg{width:25px;height:25px;margin-bottom:8px}.upload span{display:block;color:#627953;font-size:12px;margin-bottom:4px}.upload input{max-width:100%;font-size:11px;margin-top:10px}.empty{padding:55px 24px;text-align:center;color:#87937f}.empty svg{width:30px;height:30px;margin-bottom:15px}.empty h3{color:#64785b;font-weight:500;margin-bottom:9px}.empty p{font-size:12px;max-width:420px;margin:0 auto 20px}.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.asset-card{border:1px solid var(--line);border-radius:11px;overflow:hidden;background:white;cursor:pointer}.asset-thumb{height:235px;background:#e9ece4;display:flex;align-items:center;justify-content:center;position:relative;padding:17px}.asset-thumb img{height:100%;max-width:100%;object-fit:contain;box-shadow:0 3px 15px #23312615}.asset-meta{padding:14px 15px}.asset-meta h3{font-size:11px;font-weight:600;margin-bottom:7px}.asset-meta .row{display:flex;align-items:center;justify-content:space-between;gap:5px}.asset-meta small{font-size:10px;color:#929c88}.asset-card:hover{border-color:#bccdaf;box-shadow:0 6px 16px #263c3208;transform:translateY(-2px);transition:.15s}.asset-card.lp .asset-thumb{height:360px}.palette{display:flex;gap:14px;margin:25px 0}.swatch{height:110px;border-radius:9px;flex:1;border:1px solid #00000006;padding:13px;display:flex;flex-direction:column;justify-content:flex-end;font-size:11px}.detail-list{display:grid;grid-template-columns:110px 1fr;gap:16px 18px;font-size:12px}.detail-list dt{color:#8e9984}.detail-list dd{margin:0;white-space:pre-line}.persona-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.persona-header{display:flex;align-items:center;gap:14px;margin-bottom:25px}.persona-icon{height:49px;width:49px;background:#eef1e3;color:#819465;border-radius:50%;display:grid;place-items:center}.appeal-card{padding:23px;border:1px solid var(--line);border-radius:12px;background:white}.appeal-num{font-size:10px;letter-spacing:1.5px;color:#96a480}.appeal-card h3{font-size:20px;line-height:1.65;white-space:pre-line;margin:18px 0 10px}.appeal-card p{font-size:12px;color:#87927e}.job-row{display:flex;align-items:center;padding:13px 0;gap:12px;border-bottom:1px solid #eff1eb}.job-row:last-child{border:0}.job-row .job-content{flex:1}.job-row strong{font-size:12px;display:block}.job-row small{font-size:10px;display:block;word-break:break-word}.log{display:grid;grid-template-columns:140px 100px 1fr;gap:15px;padding:13px 0;border-bottom:1px solid var(--line);font-size:11px}.log time{color:#9ba58e}.log div{word-break:break-word}.modal-backdrop{position:fixed;inset:0;background:#152b2366;backdrop-filter:blur(4px);z-index:100;display:flex;align-items:center;justify-content:center;padding:30px}.modal{background:#fdfefb;border:1px solid #e2e8db;border-radius:17px;width:640px;max-height:90vh;overflow:auto;box-shadow:0 30px 100px #0a231c30}.modal.wide{width:1000px}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:22px 27px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fdfefb;z-index:1}.modal-head h2{font-size:16px}.modal-body{padding:25px 27px}.modal .form-actions{margin-top:20px}.preview-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px}.preview-main{background:#eef1e8;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:20px;min-height:400px}.preview-main img{max-width:100%;max-height:590px;object-fit:contain}.preview-side h3{margin-bottom:12px}.version-row{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);gap:10px;font-size:11px}.check-row{display:flex;gap:8px;font-size:11px;padding:7px 0;align-items:center}.check-row.pass{color:#719663}.check-row.fail{color:#b67a53}.check-grid{margin:17px 0}.checkbox-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.checkbox-row input{accent-color:var(--green);width:16px;height:16px}.checkbox-row small{margin-left:auto;color:var(--muted)}#toast{position:fixed;bottom:27px;left:50%;transform:translateX(-50%) translateY(20px);z-index:200;background:#244534;color:white;padding:12px 23px;border-radius:9px;box-shadow:0 8px 30px #182c2922;font-size:12px;opacity:0;pointer-events:none;transition:.2s;max-width:80vw}#toast.show{opacity:1;transform:translateX(-50%)}#toast.error{background:#8e4d40}.initial{height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:27px;font-weight:700;gap:15px}.initial span{font-size:12px;color:var(--muted);font-weight:400}.loading{min-height:120px;display:grid;place-items:center;color:var(--muted)}.footer-note{margin-top:33px;padding-top:16px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#a9b19f;font-size:10px}.error-panel{margin:50px;padding:30px;border:1px solid #e0c7b7;background:#fff8f1;border-radius:12px}.mono{font-family:monospace;font-size:11px;word-break:break-all}.code-editor{font-family:monospace;min-height:380px!important}.delivery-list{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}.mobile-menu{display:none}.inline-help{padding:10px 0;color:var(--muted);font-size:11px}.stale-overlay{position:absolute;top:10px;left:10px}.table-scroll{overflow:auto}.select{width:auto;min-width:115px;font-size:11px;padding:7px 10px;min-height:34px}.mt{margin-top:22px}.mb{margin-bottom:20px}.flex{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.right{margin-left:auto}.page-busy{cursor:progress}.page-busy button[type=submit]{opacity:.5;pointer-events:none}
@media(min-width:1600px){.recent-image{height:210px}.asset-thumb{height:300px}}@media(max-width:1200px){.shell{grid-template-columns:205px 1fr}.sidebar{padding:25px 13px}.brand{font-size:16px}main{padding:29px 25px}.topbar{padding:0 25px}.hero-art{width:230px}.gallery{grid-template-columns:repeat(3,1fr)}.recent-grid{gap:12px}.project-table td,.project-table th{padding:17px 13px}.project-table .owner-col{display:none}.workflow{grid-template-columns:repeat(3,1fr)}}@media(max-width:850px){.shell{grid-template-columns:1fr}.sidebar{position:fixed;z-index:80;width:238px;transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vmax #17312344}.mobile-menu{display:block}.topbar{height:62px;padding:0 20px}main{padding:23px 20px}.page-head{align-items:flex-start}h1{font-size:23px}.hero-art{display:none}.hero{padding:25px}.stats{gap:9px}.stat{padding:13px}.stat-num{font-size:24px}.stat-icon{display:none}.recent-grid{grid-template-columns:repeat(2,1fr)}.gallery{grid-template-columns:repeat(2,1fr)}.two-cols,.preview-layout,.persona-grid{grid-template-columns:1fr}.fields{grid-template-columns:1fr}.full{grid-column:auto}.section-heading{align-items:flex-start;flex-wrap:wrap}.mode{display:none}.log{grid-template-columns:90px 85px 1fr}.modal-backdrop{padding:12px}.preview-main{min-height:250px}.preview-main img{max-height:380px}}@media(max-width:480px){.stats{grid-template-columns:repeat(2,1fr)}.hero h2{font-size:20px}.page-head .btn{padding:8px 10px;font-size:11px}.page-head{gap:8px}.gallery{gap:10px}.asset-thumb{height:205px;padding:10px}.asset-meta{padding:11px}.asset-meta .row{align-items:flex-start;flex-direction:column}.workflow{gap:6px}.step{padding:12px 9px}.detail-list{grid-template-columns:80px 1fr}.modal-body{padding:20px}.notice{align-items:flex-start;flex-wrap:wrap}.footer-note span:last-child{display:none}}
.workspace>div{font-size:11px;white-space:nowrap;min-width:0}.workspace{gap:8px}.workspace-avatar{flex-shrink:0}.workspace>svg{width:14px;margin-left:auto}
.sidebar{overflow-y:auto}.sidebar-bottom{padding-top:16px}.tabs{scrollbar-width:thin;scrollbar-color:#d3ddca transparent}
.shell>div,main,.two-cols>*,.fields>*{min-width:0}.crumb{min-width:0}.crumb b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-head>div:first-child{min-width:0}h1{overflow-wrap:anywhere}.tabs{max-width:100%}.field input[type=file]{min-width:0}
@media(max-width:850px){.shell{grid-template-columns:minmax(0,1fr)}.two-cols,.fields{grid-template-columns:minmax(0,1fr)}.page-head{flex-wrap:wrap}.top-actions{gap:12px;flex-shrink:0}}

.field .prompt-editor{min-height:340px;line-height:1.9;font-size:13px}.prompt-editor[readonly]{background:#f8faf6}
@media(max-width:850px){#main-prompt-form .form-actions{flex-wrap:wrap}#main-prompt-form .form-actions small{width:100%}.field .prompt-editor{min-height:300px}}

.auth-layout{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-panel{width:min(100%,440px)}.auth-panel h1{margin:12px 0}.auth-panel .field{margin:20px 0}

.prompt-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.prompt-tabs .btn{flex:1 0 auto;justify-content:center}

.project-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 20px}.btn.danger{border-color:#d9a6a6;color:#963535;background:#fff8f7}.btn.danger:hover{background:#fce8e5}.project-actions .muted{font-size:12px}
