:root{--ink:#101d39;--muted:#63738e;--blue:#097cfa;--violet:#6e47f5;--cyan:#09b8c8;--green:#00886e;--line:#e1e7f1;--bg:#f5f7fc;--soft:#f0edff;--white:#fff;--red:#b52b40;--shadow:0 6px 28px #19306308;--radius:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 Inter,"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI","Yu Gothic",Meiryo,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}a{color:#5140d7;text-decoration:none}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #27a7dc;outline-offset:3px}button{border:0}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-.8px;line-height:1.3}h2{font-size:19px;line-height:1.4}h3{font-size:15px}small,.muted{color:var(--muted)}small{font-size:12px}.caption{font-size:11px;text-transform:uppercase;letter-spacing:1.6px;font-weight:700;color:var(--muted)}.hidden{display:none!important}.icon{width:19px;height:19px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.skip{position:fixed;left:15px;top:-80px;background:white;padding:14px;z-index:100}.skip:focus{top:12px}.initial{text-align:center;padding:100px 24px}.initial img{width:145px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:9px 16px;border-radius:9px;background:var(--white);border:1px solid var(--line);color:var(--ink);font-weight:650;font-size:13px;line-height:1.4;white-space:normal}.btn:hover{border-color:#aaa0ed;background:#f9f8ff}.btn.primary{background:linear-gradient(110deg,#008eec,#6744f4);color:white;border-color:transparent;box-shadow:0 4px 15px #6041e719}.btn.danger{background:#fff5f6;color:var(--red);border-color:#f5ccd4}.btn.small{font-size:12px;padding:6px 11px;min-height:32px}.btn.ghost{background:transparent;border-color:transparent;color:#5244d6}.btn.white{background:white;color:#253057;border-color:white}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.stack{display:grid;gap:18px}.grow{flex:1;min-width:0}.mt{margin-top:20px}.mb{margin-bottom:20px}.notice{border:1px solid #dce7f5;background:#f0f7ff;color:#3f577b;border-radius:10px;padding:11px 16px;font-size:12px}.notice.warn{background:#fff9eb;border-color:#f1e3b9;color:#73572b}.notice.success{background:#edf9f5;color:#19735e;border-color:#ceece3}.notice.error{background:#fff4f5;color:var(--red);border-color:#f2c5ce}.notice+ .notice{margin-top:8px}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;min-width:0}.card-top{padding:0;overflow:hidden}.card-head{padding:19px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.card-body{padding:22px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.four{grid-template-columns:repeat(4,minmax(0,1fr))}.two-thirds{grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr)}.pill{display:inline-block;padding:4px 9px;border-radius:6px;background:#efedff;color:#5540c7;font-size:11px;font-weight:650;max-width:100%;overflow-wrap:anywhere}.pill.green{background:#e7f7ef;color:#087459}.pill.red{background:#ffeef1;color:#a42946}.pill.amber{background:#fff4db;color:#946615}.pill.gray{background:#f0f3f8;color:#66758b}.avatar{width:39px;height:39px;background:linear-gradient(135deg,#d6f4ff,#e9e1ff);display:grid;place-items:center;border-radius:50%;font-weight:700;color:#4936cc;flex-shrink:0}.avatar.square{border-radius:11px}.score{width:63px;height:63px;border:3px solid var(--green);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--green);font-size:22px;font-weight:750}.score.gray{border-color:#adb8ca;color:#66748c}.bar{height:6px;border-radius:8px;background:#eeeaf8;overflow:hidden}.bar>span{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--violet));border-radius:8px}.empty{text-align:center;padding:48px 22px}.empty .icon{width:34px;height:34px;color:#9c8ee2;margin-bottom:12px}.empty p{color:var(--muted);margin:8px auto;max-width:390px}.table-wrap{overflow-x:auto;width:100%}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:var(--muted);font-weight:650;background:#fafbfe}th,td{padding:15px 20px;border-bottom:1px solid #ebeff6;vertical-align:top}tr:last-child td{border:0}td .row{flex-wrap:nowrap}td p{font-weight:650}td small{display:block}.word{overflow-wrap:anywhere;word-break:break-word}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:19px 15px;z-index:30;overflow-y:auto}.brand{display:flex;justify-content:center;padding:0 10px 13px}.brand img{width:131px;height:auto;display:block}.workspace-box{border:1px solid var(--line);padding:12px;border-radius:11px;display:flex;align-items:center;gap:9px;margin-bottom:22px}.workspace-box strong{font-size:12px;display:block}.workspace-box small{font-size:10px}.nav-title{font-size:9px;letter-spacing:1.6px;color:#8290a9;padding:6px 12px;margin-top:13px}.nav-link{display:flex;align-items:center;gap:12px;min-height:43px;color:#536584;padding:10px 12px;border-radius:9px;margin:3px 0;font-size:12px;font-weight:550}.nav-link:hover{background:#f7f8fd}.nav-link.active{background:linear-gradient(90deg,#eeebff,#f5f3ff);color:#5435ec}.sidebar-foot{margin-top:auto;padding-top:30px}.brand-note{background:linear-gradient(125deg,#e9faff,#f0ecff);padding:17px;border-radius:13px;margin-bottom:17px}.brand-note strong{display:block;line-height:1.4;margin:8px 0}.brand-note small{font-size:11px}.user-box{display:flex;align-items:center;gap:10px}.user-box .btn{margin-left:auto;padding:6px}.app-body{margin-left:232px;min-height:100vh}.topbar{position:sticky;top:0;z-index:20;height:72px;background:#ffffffef;backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:15px;padding:13px 30px}.search{max-width:500px;position:relative;flex:1}.search input{padding-left:40px;background:#f8f9fd}.search .icon{position:absolute;left:13px;top:12px;color:#8b9ab2}.top-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.lang-switch{display:inline-flex;background:#f0f3f8;padding:3px;border-radius:8px;gap:2px}.lang-switch button{background:transparent;border-radius:6px;padding:5px 9px;color:#61728e;font-size:12px}.lang-switch button.selected{background:white;color:#352ac0;box-shadow:0 1px 6px #24354c10}.menu-button{display:none}.main{padding:30px;max-width:1650px;margin:0 auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:23px}.page-head p{color:var(--muted);font-size:13px;margin-top:7px;max-width:820px}.greeting{font-size:14px;margin-bottom:8px}.gradient{background:linear-gradient(90deg,#078ad9,#7634f5);background-clip:text;-webkit-text-fill-color:transparent}.hero{background:radial-gradient(ellipse at 80% 0,#485cd974,transparent 45%),linear-gradient(115deg,#102c51,#153863 40%,#403295);border-radius:15px;color:white;padding:30px 32px;display:grid;grid-template-columns:1.05fr 1.1fr;gap:30px;position:relative;overflow:hidden;margin:24px 0}.hero .caption{color:#c4dafa;font-size:9px}.hero h2{font-size:25px;line-height:1.3;margin:13px 0}.hero p{color:#d5dcf3;font-size:12px;max-width:460px;margin-bottom:21px}.steps{display:grid;grid-template-columns:repeat(4,1fr);align-items:center;gap:15px;text-align:center}.step-icon{width:52px;height:52px;border:1px solid #aba6ff5c;border-radius:50%;background:#ffffff0f;margin:0 auto 13px;display:grid;place-items:center}.step-icon .icon{width:25px;height:25px;color:#b6efea}.steps strong{display:block;font-size:11px}.steps span{font-size:10px;color:#c4d4ef}.metric{padding:18px;display:flex;gap:13px;align-items:flex-start}.metric .metric-icon{padding:10px;background:#eef1ff;color:#365de9;border-radius:10px;display:flex}.metric strong{display:block;font-size:30px;line-height:1.4}.metric label{font-size:11px;font-weight:600}.metric small{display:block;font-size:10px}.match-card h3{font-size:16px}.match-card .subtitle{font-size:12px;color:var(--muted);margin-top:2px}.match-card .divider{border-top:1px solid #edf0f7;margin:17px 0}.match-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.match-meta small{display:block}.match-meta strong{font-size:12px}.match-card .btn{font-size:11px}.condition{padding:15px 0;border-bottom:1px solid var(--line)}.condition:last-child{border:0}.condition blockquote{border-left:3px solid #9987ed;padding:8px 12px;background:#faf9ff;font-size:12px;margin:12px 0;color:#52647c}.page-footer{color:#8491a7;font-size:10px;margin:35px 0 10px;display:flex;justify-content:space-between}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>span,.field>label{font-size:12px;font-weight:650;color:#314562}.full{grid-column:1/-1}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #d6deeb;border-radius:8px;background:white;color:var(--ink);font-size:13px;min-width:0}textarea{resize:vertical;min-height:105px;line-height:1.6}textarea.large{min-height:185px}input[type=checkbox],input[type=radio]{width:17px;height:17px;margin:2px 7px 0 0;accent-color:var(--violet);flex-shrink:0}input[type=file]{font-size:12px;padding:8px}label.check{display:flex;align-items:flex-start;font-size:12px;gap:5px;line-height:1.65;cursor:pointer}.checks{display:grid;gap:13px}.form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:22px;flex-wrap:wrap}.editor-row{background:#fafbff;border:1px solid #e0e5f3;padding:17px;border-radius:11px;margin:13px 0}.editor-row .form-grid{gap:12px}.editor-row textarea{min-height:70px}.editor-row .tiny-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}.editor-row .anchors{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.editor-row .anchors textarea{font-size:11px;min-height:100px}.editor-row .anchors .field>span{font-size:10px}.weight-total{font-size:12px;color:#5962a5}.inline-error{color:var(--red);font-size:12px;padding:10px 0}.section-title{margin:8px 0 16px;padding-bottom:15px;border-bottom:1px solid #e9edf5}.source-buttons{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:9px}.source-buttons input{max-width:250px}.list-item{padding:15px 0;border-bottom:1px solid var(--line)}.list-item:last-child{border:0}dialog{border:1px solid #dce2ef;border-radius:17px;box-shadow:0 24px 120px #091b4840;padding:0;width:760px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 42px);color:var(--ink)}dialog::backdrop{background:#102c5360;backdrop-filter:blur(3px)}.dialog-head{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:20px 25px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.dialog-head h2{font-size:19px}.dialog-body{padding:25px;overflow:auto}.dialog-wide{width:1100px}.dialog-head .btn{padding:5px 8px;min-height:32px}#toast{position:fixed;bottom:28px;right:28px;max-width:420px;z-index:100;padding:0;border-radius:11px;font-size:13px}#toast.show{padding:14px 20px;color:white;background:#183956;box-shadow:0 8px 35px #15274e35}#toast.error{background:#963246}.auth-page{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.auth-brand{padding:45px 10%;display:flex;flex-direction:column;background:radial-gradient(ellipse at 20% 0,#d6fbfc,transparent 50%),radial-gradient(ellipse at 95% 80%,#e6ddff,transparent 60%),#edf3ff}.auth-brand .auth-logo{width:180px;margin-bottom:60px;mix-blend-mode:multiply}.auth-brand h1{font-size:42px;line-height:1.2;max-width:500px}.auth-brand p{margin-top:22px;max-width:460px;color:#526584}.auth-brand .orb{margin:auto auto 10px;width:200px;height:200px;border-radius:50%;background:linear-gradient(135deg,#17d9c7,#1a8afb 48%,#965df4);box-shadow:0 25px 70px #497fe650;display:grid;place-items:center}.auth-brand .orb .icon{color:white;width:70px;height:70px;stroke-width:1}.auth-panel{padding:50px 12%;display:flex;flex-direction:column;justify-content:center;background:white}.auth-panel .lang-switch{align-self:flex-end;margin-bottom:40px}.auth-panel h2{font-size:26px;margin-bottom:8px}.auth-panel form{margin-top:25px}.auth-panel .field{margin-bottom:17px}.auth-panel .btn.primary{width:100%;margin-top:9px}.auth-panel .links{margin-top:23px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:12px}.landing{max-width:1220px;margin:auto;padding:25px 35px}.landing header{display:flex;align-items:center;justify-content:space-between}.landing header img{width:125px;mix-blend-mode:multiply}.landing-title{padding:55px 0;text-align:center}.landing-title h1{font-size:43px}.landing-title p{max-width:730px;color:var(--muted);margin:20px auto}.landing .portal-card{padding:27px;display:flex;flex-direction:column;gap:15px}.portal-card p{color:var(--muted);font-size:13px;flex:1}.portal-card .icon{width:27px;height:27px;color:#6753d9}.room-stage{background:radial-gradient(ellipse at center,#4d45bbaa,transparent 70%),#142e50;color:white;text-align:center;padding:48px 30px;border-radius:14px;min-height:310px}.room-stage img{width:118px;mix-blend-mode:normal;background:white;border-radius:50%;padding:15px;margin:8px auto 25px}.room-stage h2{margin:0 auto 12px;font-size:23px}.room-stage p{color:#c7d8f4;font-size:12px}.timer{font-variant-numeric:tabular-nums;font-weight:750;font-size:22px;letter-spacing:1px}.transcript{max-height:435px;overflow:auto}.transcript article{margin-bottom:20px}.transcript .answer{padding:12px 15px;background:#f5f7fd;border-radius:10px;margin-top:8px;font-size:13px}.recording{color:#b82742;background:#fff1f3}.slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.slot{display:flex;align-items:flex-start;border:1px solid var(--line);padding:12px;border-radius:9px;cursor:pointer;font-size:12px}.slot:has(input:checked){background:#f2eeff;border-color:#a89bdc}.mono{font-family:ui-monospace,monospace;overflow-wrap:anywhere;font-size:12px}.help{font-size:12px;color:var(--muted);margin-top:6px}.danger-text{color:var(--red)}
@media(min-width:1600px){.main{padding:34px 42px}.hero{padding:38px}}
@media(max-width:1150px){.sidebar{width:214px}.app-body{margin-left:214px}.main{padding:23px}.topbar{padding:12px 23px}.hero{grid-template-columns:1fr}.steps{max-width:550px}.three{grid-template-columns:repeat(2,minmax(0,1fr))}.two-thirds{grid-template-columns:1fr}.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.sidebar{transform:translateX(-100%);transition:transform .18s;width:232px;box-shadow:10px 0 50px #142d3325}.sidebar.open{transform:translateX(0)}.app-body{margin-left:0}.topbar{padding:10px 17px;height:65px}.menu-button{display:inline-flex}.search{display:none}.main{padding:20px 17px}.page-head{align-items:flex-start}.page-head h1{font-size:25px}.hero{padding:25px}.hero h2{font-size:23px}.hero p{font-size:12px}.steps{gap:10px}.steps strong{font-size:10px}.step-icon{width:42px;height:42px}.auth-page{grid-template-columns:1fr}.auth-brand{display:none}.auth-panel{padding:40px max(24px,8%);min-height:100dvh}.auth-panel:before{content:'';display:block;background:url('/assets/aishoku-logo.png') center/contain no-repeat;width:130px;height:115px;margin:0 auto 25px}.landing-title h1{font-size:32px}.landing{padding:20px}.editor-row .anchors{grid-template-columns:1fr}.editor-row .anchors textarea{min-height:60px}.editor-row .tiny-grid{grid-template-columns:1fr 1fr}.slots{grid-template-columns:1fr 1fr}.top-actions>.avatar{display:none}}
@media(max-width:520px){.grid,.three,.form-grid{grid-template-columns:1fr}.four{grid-template-columns:1fr 1fr;gap:10px}.metric{padding:14px;gap:9px}.metric .metric-icon{display:none}.metric strong{font-size:27px}.metric label{font-size:10px}.card{padding:17px}.card-top{padding:0}.card-head,.card-body{padding:17px}.page-head{display:block}.page-head>.row{margin-top:14px}.main{padding:18px 14px}.hero{padding:22px 20px}.steps{grid-template-columns:repeat(2,1fr);row-gap:20px}.topbar>.top-actions>.btn.primary{font-size:11px;max-width:120px;padding:8px}.top-actions{gap:7px}.dialog-body{padding:17px}.dialog-head{padding:17px}.form-actions{justify-content:stretch}.form-actions>.btn{flex:1}th,td{padding:12px 14px}.slots{grid-template-columns:1fr}.editor-row .tiny-grid{grid-template-columns:1fr}.landing-title{padding:30px 0}.landing-title h1{font-size:29px}.landing .grid{grid-template-columns:1fr}#toast{left:15px;right:15px;bottom:17px;max-width:none}.page-footer{display:block}.page-footer span{display:block;margin-bottom:6px}.room-stage{padding:30px 20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Compact identity footer: avoid shrinking the signed-in user name. */
.user-box .grow{min-width:0}.user-box .grow strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-box .icon-only{flex:0 0 34px;width:34px;padding:8px}.brand-note small{line-height:1.6}.lang-switch button{min-height:36px}
