:root{font-family:Inter,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;color:#1d2d39;background:#f5f7f7;font-synthesis:none;--nav:#172c36;--accent:#257258;--line:#dce4e6;--soft:#f5f7f7;--sub:#62727b;--white:#fff}*{box-sizing:border-box}body{margin:0;font-size:14px}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:var(--accent)}.hidden{display:none!important}.workspace{display:flex;min-height:100vh}.sidebar{width:245px;background:var(--nav);color:#fff;flex-shrink:0;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{padding:32px 26px 25px;display:flex;flex-direction:column;gap:6px;border-bottom:1px solid #ffffff12}.brand strong{font-size:27px;letter-spacing:.02em}.brand small{font-size:9px;color:#a5b6bf;letter-spacing:.13em}.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:750;color:#80ae9c}.sidebar nav{padding:18px 12px;display:grid;gap:3px;overflow:auto}.sidebar nav button{text-align:left;border:0;border-radius:7px;background:transparent;color:#bccbd1;font-size:13px;font-weight:600;padding:12px 16px;transition:.12s}.sidebar nav button:hover{background:#263f4b;color:#fff}.sidebar nav button.active{background:#315344;color:#fff}.sidebar-foot{margin-top:auto;color:#718893;padding:20px 27px;font-size:11px;border-top:1px solid #ffffff10}.main{flex:1;min-width:0}.topbar{position:sticky;top:0;z-index:10;background:#ffffffeb;border-bottom:1px solid var(--line);height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 35px;backdrop-filter:blur(14px)}.crumb{color:var(--sub);font-size:12px}.crumb span{padding:0 12px;color:#b7c1c6}.crumb b{color:#253944}.top-actions{display:flex;align-items:center;gap:20px;color:var(--sub);font-size:12px}.text-btn{border:0;background:none;color:#345a52;font-size:12px;font-weight:650}.menu-toggle{display:none}.content{padding:36px;max-width:1600px;margin:auto}.pagehead{margin-bottom:28px;display:flex;align-items:flex-end;justify-content:space-between;gap:15px}.pagehead h1{font-size:28px;font-weight:750;letter-spacing:-.04em;margin:5px 0 0}.pagehead p{margin:7px 0 0;color:var(--sub);font-size:12px}.pagehead small{color:var(--sub)}.panel{background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:18px;box-shadow:0 2px 11px #1d2d3907}.panel-pad{padding:24px}.panel-title{font-weight:750;font-size:16px;margin:0 0 17px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.stat{background:#fff;border:1px solid var(--line);border-radius:9px;padding:22px 24px}.stat label{color:var(--sub);font-weight:500;font-size:11px;display:block;margin-bottom:14px}.stat strong{font-size:30px;line-height:1;letter-spacing:-.04em}.stat small{color:var(--sub);margin-left:7px;font-size:11px}.kicker{color:var(--sub);font-weight:650;font-size:11px;letter-spacing:.05em;margin:0 0 6px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.listline{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf1f2;padding:13px 0;gap:15px}.listline:last-child{border:0}.listline strong{font-size:13px}.listline small{color:var(--sub)}.listline a{font-size:12px}.table-wrap{overflow-x:auto;border-radius:10px}table{border-collapse:collapse;width:100%;background:#fff;white-space:nowrap;font-size:12px}th{background:#f7f9f9;color:#61717a;font-size:11px;text-align:left;font-weight:650;padding:14px 16px;border-bottom:1px solid var(--line)}td{padding:13px 16px;border-bottom:1px solid #edf0f0;max-width:300px;overflow:hidden;text-overflow:ellipsis}tr:last-child td{border-bottom:0}tbody tr:hover{background:#f8faf9}.value{font-variant-numeric:tabular-nums}.primary,.secondary,.danger{padding:10px 17px;border-radius:6px;font-weight:650;font-size:12px;line-height:1.6}.primary{background:#226c54;border:1px solid #226c54;color:white}.primary:hover{background:#175640}.secondary{background:white;border:1px solid #becbd0;color:#2b4c58}.danger{color:#9b3030;background:white;border:1px solid #e4c3c3}.btn-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.btn-sm{padding:6px 10px;font-size:11px}.badge{display:inline-block;border-radius:100px;padding:4px 10px;background:#edf0f2;color:#4b5c66;font-size:10px;font-weight:750}.badge.ok{background:#e7f3ec;color:#237350}.badge.warn{background:#fff1dd;color:#85551c}.badge.bad{background:#fbe8e5;color:#a13932}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}.field{display:block;min-width:0}.field span,.field label{font-size:11px;color:#5b6e78;display:block;font-weight:650;margin:0 0 7px}input,select,textarea{display:block;width:100%;border:1px solid #d0dbe0;border-radius:6px;padding:11px 12px;color:#243842;background:white;outline:0;min-width:0}input:focus,select:focus,textarea:focus{border-color:#5f9d8a;box-shadow:0 0 0 3px #3e8d6c18}textarea{min-height:90px;resize:vertical}textarea.code{font-family:ui-monospace,monospace;font-size:12px;line-height:1.6;min-height:160px}.field.full{grid-column:1/-1}.hint{font-size:11px;color:var(--sub);line-height:1.75}.muted{color:var(--sub)}.notice{border-left:3px solid #a4bac0;padding:14px 17px;background:#f4f7f7;border-radius:3px;color:#415b65;font-size:12px;line-height:1.9;margin:15px 0}.notice.warning{border-color:#d0a95b;background:#fdf8ef}.notice.error{border-color:#c86b66;background:#fff4f2}.split{display:flex;gap:12px;align-items:center;justify-content:space-between}.inline-control{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.inline-control input,.inline-control select{width:auto;min-width:160px}.detail{font-size:12px;line-height:1.75;white-space:pre-wrap;word-break:break-word}.empty{padding:35px;text-align:center;color:#84939b;font-size:13px}.mono{font-family:ui-monospace,Consolas,monospace}.login-wrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(132deg,#f1f6f4 0%,#e8eff1 100%);padding:20px}.login-box{width:420px;max-width:100%;background:white;border:1px solid #dbe5e3;border-radius:10px;padding:45px;box-shadow:0 15px 70px #143a3213}.login-box h1{font-size:35px;margin:12px 0 4px}.login-box p{color:var(--sub);margin:0 0 34px}.login-box label{display:block;margin-bottom:19px;color:#506570;font-size:12px;font-weight:650}.login-box input{margin-top:8px}.login-box button{width:100%;margin:8px 0 12px}.login-box small{color:#a34545}#toast{position:fixed;bottom:24px;right:24px;background:#263b43;color:white;border-radius:6px;padding:12px 18px;box-shadow:0 10px 28px #263b4328;opacity:0;pointer-events:none;transition:.25s;z-index:50;font-size:12px;max-width:calc(100vw - 40px)}#toast.visible{opacity:1}.record-value{background:#f6f8f9;border-radius:6px;padding:15px;overflow:auto;max-height:310px;font-size:11px;line-height:1.6}.section-foot{border-top:1px solid var(--line);padding-top:16px;margin-top:18px}.marker{display:inline-block;width:7px;height:7px;background:#47846f;border-radius:50%;margin-right:8px}@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}.sidebar{width:210px}.content{padding:25px}.topbar{padding:0 25px}}@media(max-width:720px){.sidebar{position:fixed;left:-260px;z-index:30;width:245px;transition:left .2s}.sidebar.open{left:0}.content{padding:22px 15px}.topbar{height:58px;padding:0 15px}.menu-toggle{display:block;border:0;background:none;font-size:20px;color:#2a4851;margin-right:10px}.crumb{flex:1}.pagehead h1{font-size:23px}.stats{gap:10px}.stat{padding:17px}.stat strong{font-size:23px}.form-grid{grid-template-columns:1fr}.grid3{grid-template-columns:1fr}.panel-pad{padding:19px}.top-actions{gap:8px}.top-actions span{display:none}.login-box{padding:30px 24px}}

/* R2 Authentication – restrained editorial layout, no synthetic dashboard decoration */
.auth-screen{min-height:100svh;background:#f7f7f3;display:flex;flex-direction:column;color:#202923}
.auth-top,.auth-footer{display:flex;align-items:center;justify-content:space-between;margin:0 5.5%;border-bottom:1px solid #cbd1cc;padding:26px 0}
.auth-brand{font-size:18px;font-weight:760;letter-spacing:-.045em}.auth-caption,.auth-footer,.auth-section-number,.auth-card-number{font-size:10px;color:#76817a;letter-spacing:.12em;font-weight:650}
.auth-content{width:min(1080px,89%);margin:auto;display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:min(9vw,108px);padding:65px 0}
.auth-description h1{font-size:clamp(38px,4vw,64px);letter-spacing:-.065em;line-height:1.32;font-weight:650;margin:22px 0 20px}
.auth-description p{font-size:13px;line-height:2;color:#727c74;margin:0}
.auth-card{padding:38px 34px 33px;border:1px solid #cfd7d0;background:#fff}
.auth-card h2{font-size:27px;letter-spacing:-.05em;font-weight:670;margin:25px 0 10px}
.auth-card p{font-size:12px;line-height:1.8;color:#78827b;margin:0 0 30px}
.google-button{display:flex;align-items:center;gap:18px;padding:16px;background:#263e33;color:#fff;text-decoration:none;font-size:13px;font-weight:600;transition:background .15s}
.google-button:hover{background:#1a3026;color:#fff}.google-button:focus-visible{outline:3px solid #83a996;outline-offset:3px}.google-button.disabled-link{opacity:.5;cursor:not-allowed}
.google-g{background:#fff;border-radius:2px;width:24px;height:24px;display:grid;place-items:center;color:#397b56;font-weight:800;font-size:15px;font-family:Arial,sans-serif}
.auth-arrow{margin-left:auto;font-size:17px;font-weight:400}.auth-error{color:#ab3939;margin-top:14px;font-size:12px;line-height:1.7}.auth-card-foot{color:#7c8980;font-size:11px;line-height:1.8;border-top:1px solid #e6ebe6;margin-top:28px;padding-top:21px}
.auth-footer{border-bottom:0;border-top:1px solid #cbd1cc;padding:20px 0}
.account-add-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,.4fr) auto;gap:12px;align-items:end}.account-add-form .field{margin:0}.account-add-form button{height:41px}.account-table-wrap{overflow:auto}.account-table{width:100%;min-width:690px}.account-table td{vertical-align:middle}.account-table td small{color:var(--sub);font-size:10px}.account-role{width:auto;min-width:110px;max-width:130px;font-size:12px}
@media(max-width:750px){.auth-content{grid-template-columns:1fr;gap:42px;padding:55px 0}.auth-top,.auth-footer{margin:0 6%}.auth-caption{font-size:8px}.auth-description h1{font-size:38px}.auth-card{padding:30px 24px}.account-add-form{grid-template-columns:1fr}.account-add-form button{width:100%}}
