:root{--bg:#f5f7fb;--card:#fff;--ink:#16233d;--muted:#718099;--border:#e2e7f1;--blue:#285dde;--light:#edf3ff;--nav:#122444;--cyan:#25b4da}*{box-sizing:border-box}html,body{margin:0;padding:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.55}a{text-decoration:none;color:var(--blue)}button,input,select{font:inherit}button{cursor:pointer}.shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;width:248px;min-width:248px;background:var(--nav);display:flex;flex-direction:column;color:#e6efff;padding:28px 15px 16px}.logo{font-size:19px;font-weight:800;letter-spacing:-.05em;margin:0 12px 40px}.logo-icon{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(130deg,#347ce9,#13bfbe);color:#fff;width:32px;height:32px;border-radius:11px;margin-right:6px}.logo .muted{color:#7f9af5}.side-section{font-size:10px;letter-spacing:.12em;color:#7b91b5;margin:20px 13px 9px;font-weight:800}.nav{height:43px;display:flex;align-items:center;gap:13px;padding:0 13px;color:#c4d2eb;border-radius:8px;font-weight:600;font-size:13px;margin-bottom:4px;border:0;background:transparent;width:100%;text-align:left}.nav>span{font-size:20px;width:18px;color:#6f90bd}.nav:hover,.nav.active{background:#243c67;color:#fff}.nav.active{border-left:3px solid #59c7ee}.side-footer{margin-top:auto;border-top:1px solid #334362;padding:18px 3px 0}.side-footer .account-name{font-weight:800}.side-footer small{color:#a4b5d1;display:block;margin-bottom:14px}.sidebar form{margin:0}.sidebar .logout{cursor:pointer}.main{width:100%;min-width:0}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--border);padding:0 44px}.crumb{font-size:12px;font-weight:700;color:#4d5e79}.crumb span{color:#a7b1c2;margin:0 10px}.version{color:#8390a5;font-size:11px;border:1px solid var(--border);border-radius:20px;padding:4px 10px}.content{max-width:1460px;padding:36px 44px 90px;margin:auto}.content h1{font-size:27px;letter-spacing:-.05em;margin:0 0 4px}.lead{color:#728099;margin:0 0 27px}.card{background:var(--card);border:1px solid var(--border);border-radius:14px;box-shadow:0 5px 25px rgba(28,50,90,.028);padding:28px;margin-bottom:22px}.card h2{font-size:17px;margin:0 0 6px}.card h3{margin:0 0 7px;font-size:15px}.card p{color:#6c7890;margin:0 0 18px}.card-head{display:flex;justify-content:space-between;align-items:start;padding-bottom:22px;border-bottom:1px solid var(--border);margin-bottom:25px}.card-head p{margin:0}.card.subtle{box-shadow:none;background:#f9fbff}.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.filter-block>label{display:block;font-weight:800;margin:0 0 8px}.helper{font-size:11px;color:#8694a9;font-weight:500;margin-left:7px}.filter-block>small{display:block;color:var(--muted);margin-top:6px}.select-filter,input:not([type=checkbox]):not([type=file]),select{display:block;width:100%;border:1px solid #d6dfec;border-radius:9px;background:#fff;padding:11px 12px;color:var(--ink);min-width:0;outline:none}.select-filter:focus,input:focus,select:focus{border-color:#6793f6;box-shadow:0 0 0 3px rgba(53,113,234,.1)}.multiselect{padding:7px;font-size:12px;height:335px;border-radius:10px}.multiselect option{padding:8px 10px;white-space:normal;border-bottom:1px solid #f1f4f8}.multiselect option:checked{background:#d9e7ff linear-gradient(0deg,#d9e7ff,#d9e7ff);color:#154ca4}.merge-box{border:1px solid #cfdcfa;border-radius:12px;background:#f7faff;padding:19px 22px;margin-top:24px}.merge-box p{margin:6px 0 0 31px;font-size:12px;color:#5f7190}.checkbox-line{display:flex;gap:10px;align-items:center;flex-wrap:wrap;cursor:pointer}.checkbox-line input{width:18px;height:18px;accent-color:var(--blue)}.tag{background:#e0edff;color:#2b5ab5;font-weight:700;font-size:10px;border-radius:20px;padding:3px 9px;margin-left:6px}.actions{display:flex;align-items:center;justify-content:flex-start;gap:10px;margin-top:24px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;text-align:center;padding:10px 16px;border-radius:9px;color:#425572;background:#fff;border:1px solid #d3dce9;font-weight:750;font-size:12px;white-space:nowrap;cursor:pointer}.btn:hover{filter:brightness(.98);border-color:#8ba4d1}.btn-primary{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 2px 6px rgba(42,89,205,.15)}.btn-primary:hover{background:#1e4fc7;color:#fff}.btn-ghost{background:#f6f8fc}.btn-small{font-size:11px;padding:7px 10px}.wide{width:100%}.auth-frame{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:30px}.auth-card{width:440px;max-width:100%;background:#fff;border-radius:18px;padding:42px;box-shadow:0 10px 45px rgba(20,47,90,.09)}.auth-logo{font-size:22px;font-weight:800;color:#254f9f;text-align:center;margin-bottom:30px}.auth-card h1{font-size:21px}.auth-card .hint{margin-bottom:25px}.auth-card label,.constrained label,.form-grid label,.details-form label{display:block;font-weight:700;margin-bottom:16px}.auth-card input,.constrained input,.form-grid input,.details-form input{margin-top:6px}.notice{background:#eaf3ff;border-left:3px solid #447fe8;padding:13px 17px;color:#27518d;border-radius:6px;margin:0 0 20px}.notice-err{background:#fff1f2;border-color:#ed6c73;color:#a53242}.hint,.tiny{color:#8090a6;font-size:12px}.tiny{font-size:11px;margin-top:4px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat{background:white;border:1px solid var(--border);border-radius:12px;padding:20px;display:flex;flex-direction:column}.stat small{color:#8290a5;font-weight:700}.stat strong{font-size:28px;font-weight:850;margin:5px 0}.stat span{color:#8290a5;font-size:11px}.file-area{border:1px dashed #a1b9e7;border-radius:14px;background:#f7faff;padding:28px;display:flex;align-items:center;flex-direction:column;gap:9px;margin:22px 0;cursor:pointer}.file-icon{font-size:38px;color:var(--blue)}.file-area input{max-width:300px}.progress{height:12px;border-radius:20px;background:#e8edf5;overflow:hidden;margin:20px auto}.progress-fill{background:linear-gradient(90deg,#3378e7,#2bc7c6);width:0;height:100%;border-radius:20px;transition:width .3s ease}.progress-card{text-align:center;max-width:660px;margin:40px auto;padding:50px}.progress-card .actions{justify-content:center}.loading-symbol{font-size:62px;color:var(--blue);animation:spin 1.7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.progress-card h2{font-size:23px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px}thead th{background:#f7f9fc;text-align:left;color:#677893;font-size:11px;padding:12px 10px;border-bottom:1px solid var(--border);white-space:nowrap}tbody td{border-bottom:1px solid #edf0f5;vertical-align:middle;padding:14px 10px}tbody tr:last-child td{border-bottom:0}.cell-wrap{min-width:145px;max-width:245px;overflow-wrap:anywhere}.num{text-align:right;font-weight:800;font-variant-numeric:tabular-nums}.status{display:inline-block;padding:4px 7px;border-radius:7px;font-weight:750;font-size:10px;color:#536a88;background:#edf2f9}.status-done{background:#e0f7ed;color:#19865c}.status-running{background:#e9f1ff;color:#3166b3}.empty{text-align:center;color:#91a0b3;padding:40px}code{font-size:11px;background:#f2f5f9;padding:3px 5px;border-radius:4px;color:#566b87}.searchbar{display:flex;gap:12px;margin-bottom:22px}.searchbar input{flex:1}.pagination{justify-content:flex-end}.tabs{display:flex;gap:8px;margin-bottom:20px}.tab{padding:10px 16px;border-radius:8px;font-weight:700;color:#617594}.tab.selected{background:#fff;border:1px solid #dce6f5;color:#255ab9}.small-buttons{white-space:nowrap}.btn-icon{padding:5px 9px;border:1px solid #dde5f1;border-radius:7px;background:#fff;margin-right:3px;color:#5b6e90}.btn-icon.remove{color:#b35062}.check-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.key-item{display:flex;align-items:center;gap:9px;background:#f8faff;border:1px solid #e3eaf7;border-radius:8px;padding:12px;cursor:pointer;font-size:12px;font-weight:650}.key-item input{accent-color:var(--blue);width:17px;height:17px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.permissions{grid-template-columns:repeat(4,1fr)}details summary{list-style:none;cursor:pointer}details summary::-webkit-details-marker{display:none}.details-form{padding:18px 10px;min-width:370px}.details-form label{margin-top:12px}.constrained{max-width:580px}.constrained label{margin-bottom:22px}.constrained .btn{margin-top:6px}@media(max-width:1000px){.sidebar{width:210px;min-width:210px}.content{padding:25px}.topbar{padding:0 25px}.stats{grid-template-columns:repeat(2,1fr)}.permissions{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.shell{flex-direction:column}.sidebar{position:relative;height:auto;width:100%;min-width:0;padding:15px}.logo{margin-bottom:10px}.side-section,.side-footer{display:none}.nav{display:inline-flex;width:auto;padding:8px 10px;height:auto}.topbar{height:54px;padding:0 16px}.content{padding:20px 13px}.filter-grid,.form-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.card{padding:18px}.check-grid,.permissions{grid-template-columns:1fr 1fr}.searchbar{flex-direction:column}.details-form{min-width:280px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* v0.2: permission-scoped CSV column assignments. */
.column-policy{border:1px solid var(--border,#dfe5ec);border-radius:12px;margin:24px 0 18px;padding:16px;min-width:0}
.column-policy legend{padding:0 8px}
.column-policy .table-scroll{max-height:440px;overflow:auto}
.column-policy table{min-width:590px}
.column-policy td{vertical-align:middle}
.column-policy td:first-child{text-align:center}
.column-policy td input[type="checkbox"]{width:18px;height:18px}
.column-policy td input[type="text"]{min-width:175px;max-width:270px}
.details-form .column-policy{margin-top:20px}

/* v0.2.2: accessible percent / ETA for search, export and 2-stage CSV imports. */
.progress-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;font-weight:700;color:#395271;font-variant-numeric:tabular-nums}
.progress-heading #jobPercent{font-size:30px;color:#225fbe}
.progress-card .progress-heading #jobEta{font-size:14px;font-weight:650}
.progress-detail{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#546984;font-size:12px;line-height:1.6;font-variant-numeric:tabular-nums}
.progress-note{font-size:12px;line-height:1.7;color:#718298;margin-top:16px}
.import-progress-panel{margin-top:25px;padding:14px 18px 18px;background:#f8faff;border:1px solid #e1eaf6;border-radius:12px}
.import-progress-panel .progress{margin:10px auto 9px}
.import-progress-panel .progress-heading{margin-top:13px}
@media(max-width:700px){.progress-detail{flex-direction:column;align-items:flex-start;gap:2px}.progress-card .progress-heading #jobEta{font-size:12px}}

/* v0.2.3: diagnostic log explorer */
.log-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:end}.log-filters .actions{align-self:end}.log-export{margin:16px 0}.log-json{padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:440px;max-height:320px;overflow:auto;background:#f6f8fc;color:#263449;border-radius:8px}.log-filters label{min-width:0}.log-filters input,.log-filters select{width:100%;box-sizing:border-box}
