:root{
  --blue:#2d7ef7;
  --blue-strong:#1768ff;
  --blue-soft:#eef5ff;
  --cyan:#1db5da;
  --teal:#31c4b8;
  --green:#26b36f;
  --orange:#f2a43a;
  --red:#e45a5a;
  --purple:#8c6af4;
  --ink:#16325c;
  --ink-soft:#4f6486;
  --muted:#788aa7;
  --line:#dce7f5;
  --line-strong:#c9d9ef;
  --bg:#f4f8fe;
  --bg2:#edf4fd;
  --card:#ffffff;
  --shadow:0 16px 40px rgba(49,98,170,.10);
  --shadow-soft:0 8px 22px rgba(61,112,191,.10);
  --radius:22px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;color:var(--ink);background:linear-gradient(180deg,#f6faff 0%,#eef5fe 100%);font-size:14px}
body::before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at top right,rgba(72,155,255,.13),transparent 32%),radial-gradient(circle at 20% 0,rgba(78,232,216,.10),transparent 26%);z-index:-1}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
.hidden{display:none!important}

.shell{min-height:100vh;display:flex}
.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(247,251,255,.98) 100%);border-right:1px solid rgba(207,221,241,.95);box-shadow:10px 0 30px rgba(50,93,158,.08);z-index:70;display:flex;flex-direction:column;backdrop-filter:blur(14px)}
.brand{height:82px;display:flex;align-items:center;padding:0 22px;border-bottom:1px solid rgba(221,232,247,.95)}
.brand img{width:180px;max-height:40px;object-fit:contain;object-position:left center}
.nav{padding:16px 12px 20px;overflow:auto;flex:1}
.nav-group{padding:12px 12px 6px;color:#95a7c1;font-size:10px;font-weight:900;letter-spacing:.16em}
.nav-item{height:48px;display:flex;align-items:center;gap:12px;padding:0 14px;border-radius:14px;margin:5px 0;color:#385074;font-weight:800;transition:.18s}
.nav-item:hover{background:#f0f6ff;color:#1f5fd6;transform:translateX(2px)}
.nav-item.active{background:linear-gradient(135deg,#57a9ff 0%,#1f7bff 100%);color:#fff;box-shadow:0 12px 30px rgba(42,123,255,.28)}
.nav-icon{width:22px;height:22px;display:grid;place-items:center}
.nav-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sidebar-user{border-top:1px solid rgba(221,232,247,.95);padding:16px;display:flex;align-items:center;gap:10px;background:rgba(248,251,255,.88)}
.avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#f7fbff,#c7dcff);display:grid;place-items:center;color:#2568de;font-weight:900;box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 6px 18px rgba(58,116,214,.14)}.avatar-glyph{display:grid;place-items:center;width:100%;height:100%}.avatar svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sidebar-user-meta{min-width:0;flex:1}.sidebar-user b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user small{color:#7b8daa;font-size:11px}
.sidebar-logout{width:36px;height:36px;border:1px solid #dbe8f8;border-radius:12px;background:#fff;color:#4d6691;font-size:18px;box-shadow:var(--shadow-soft)}
.sidebar-logout:hover{background:#f3f8ff;color:#1b62de}

.main{margin-left:244px;width:calc(100% - 244px);min-width:0}
.topbar{height:76px;position:sticky;top:0;z-index:55;background:linear-gradient(180deg,rgba(246,250,255,.96),rgba(241,247,255,.90));backdrop-filter:blur(14px);border-bottom:1px solid rgba(214,227,243,.95);display:flex;align-items:center;padding:0 24px;gap:14px}
.menu-btn{display:none;border:0;background:#eef4ff;color:#225ed1;width:42px;height:42px;border-radius:14px;box-shadow:var(--shadow-soft)}
.top-brand{font-size:22px;font-weight:900;letter-spacing:.2px;color:#173968}.top-brand span{color:var(--blue-strong)}
.page-title{font-size:17px;font-weight:800;border-left:1px solid #d6e2f1;padding-left:16px;color:#23456f}
.top-spacer{flex:1}
.top-action{height:42px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:0 14px;display:flex;align-items:center;gap:7px;color:#365178;box-shadow:var(--shadow-soft)}
.bell{position:relative;width:44px;height:44px;border:1px solid var(--line);background:#fff;border-radius:14px;color:#435a7c;box-shadow:var(--shadow-soft)}.bell svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bell .badge{position:absolute;right:-1px;top:-2px;min-width:19px;height:19px;border-radius:999px;background:#2d7ef7;color:#fff;font-size:10px;border:2px solid #fff;display:grid;place-items:center;font-weight:800}
.top-profile{display:flex;align-items:center;gap:10px;padding-left:4px}.top-profile .avatar{width:36px;height:36px}.top-profile .avatar svg{width:18px;height:18px}.top-profile b{display:block;font-size:12px}.top-profile small{font-size:10px;color:var(--muted)}
.content{padding:26px 28px 48px;max-width:1660px;margin:auto}

.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.page-head h1{margin:0;font-size:30px;letter-spacing:.01em}.page-head p{margin:7px 0 0;color:var(--ink-soft);line-height:1.75;max-width:900px}
.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.grid{display:grid;gap:16px}.cards4{grid-template-columns:repeat(4,minmax(0,1fr))}.cards3{grid-template-columns:repeat(3,minmax(0,1fr))}.cards2{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-main{grid-template-columns:minmax(0,1fr) 380px}
.card{background:rgba(255,255,255,.94);border:1px solid rgba(217,230,245,.95);border-radius:var(--radius);box-shadow:var(--shadow)}
.panel{padding:20px}.panel h2{font-size:17px;margin:0 0 14px}.panel h3{font-size:14px;margin:0 0 10px;color:#2d4b76}
.metric{padding:18px 20px;min-height:124px;display:flex;align-items:center;gap:14px;position:relative;overflow:hidden}
.metric::after{content:"";position:absolute;right:-18px;bottom:-18px;width:90px;height:90px;border-radius:50%;background:radial-gradient(circle,rgba(78,167,255,.14),transparent 68%)}
.metric-icon{width:60px;height:60px;border-radius:18px;display:grid;place-items:center;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 10px 24px rgba(47,107,196,.14);position:relative;z-index:1;padding:0}
.metric-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.mi-blue{background:linear-gradient(135deg,#68b5ff,#1c75ff)}.mi-green{background:linear-gradient(135deg,#5be1c4,#2ebc8d)}.mi-orange{background:linear-gradient(135deg,#ffd17a,#f4a13d)}.mi-red{background:linear-gradient(135deg,#ff9b9b,#e96262)}.mi-cyan{background:linear-gradient(135deg,#67d5ff,#4e8cff)}.mi-purple{background:linear-gradient(135deg,#d08eff,#8866f3)}
.metric .k{font-size:12px;color:#5c7396;font-weight:800}.metric .v{font-size:33px;font-weight:900;margin-top:4px;color:#173968;line-height:1.15}.metric .sub{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.55}
.hero-banner{background:linear-gradient(135deg,rgba(227,239,255,.95),rgba(247,252,255,.98));border:1px solid rgba(211,225,243,.95);border-radius:28px;padding:24px 26px;box-shadow:var(--shadow);display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:center;overflow:hidden;position:relative}
.hero-banner::after{content:"";position:absolute;right:-50px;bottom:-70px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(81,146,255,.18),transparent 64%)}
.hero-banner h2{font-size:18px;margin:0 0 8px}.hero-banner p{margin:0;color:#587196;line-height:1.8}.hero-kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:#fff;border:1px solid #d8e7f7;color:#2b6de7;font-size:12px;font-weight:900;margin-bottom:14px;box-shadow:var(--shadow-soft)}
.hero-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.hero-point{background:rgba(255,255,255,.7);border:1px solid #dde9f7;border-radius:18px;padding:14px}.hero-point b{display:block;font-size:20px;margin-bottom:6px}.hero-point small{display:block;color:#6d82a1;line-height:1.5}
.hero-visual{display:flex;justify-content:flex-end;align-items:center;min-height:190px}.hero-illustration{width:280px;max-width:100%;height:190px;border-radius:26px;background:linear-gradient(145deg,rgba(42,126,255,.18),rgba(112,190,255,.06));border:1px solid rgba(175,209,247,.75);position:relative;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.hero-illustration::before{content:"AI";position:absolute;left:24px;top:22px;width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#65b4ff,#3081ff);color:#fff;font-weight:900;font-size:26px;box-shadow:0 10px 26px rgba(43,122,239,.24)}
.hero-illustration::after{content:"";position:absolute;right:24px;bottom:24px;width:150px;height:100px;border-radius:18px;background:linear-gradient(180deg,#fff,#eff6ff);border:1px solid #d8e8fb;box-shadow:0 12px 28px rgba(48,97,172,.12)}
.hero-bars{position:absolute;right:36px;bottom:36px;display:grid;grid-template-columns:repeat(4,14px);gap:8px;align-items:end}.hero-bars i{display:block;width:14px;background:linear-gradient(180deg,#78beff,#3180ff);border-radius:10px 10px 4px 4px}.hero-bars i:nth-child(1){height:35px}.hero-bars i:nth-child(2){height:62px}.hero-bars i:nth-child(3){height:48px}.hero-bars i:nth-child(4){height:82px}
.hero-screen{position:absolute;left:24px;bottom:24px;width:118px;height:76px;border-radius:18px;background:linear-gradient(180deg,#fff,#eff6ff);border:1px solid #dce7f7;box-shadow:0 8px 22px rgba(45,102,181,.12)}
.hero-screen::before{content:"";position:absolute;left:14px;top:14px;right:14px;height:10px;border-radius:999px;background:linear-gradient(90deg,#62bbff,#22cfbc)}
.hero-screen::after{content:"";position:absolute;left:14px;top:36px;right:26px;height:8px;border-radius:999px;background:#e1ebf8;box-shadow:0 16px 0 #e1ebf8}

.btn{border:0;border-radius:12px;padding:10px 16px;font-weight:900;transition:.18s}
.btn:hover{transform:translateY(-1px)}.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}
.btn-primary{background:linear-gradient(135deg,#53a7ff,#1b73ff);color:#fff;box-shadow:0 10px 22px rgba(32,118,247,.22)}
.btn-outline{background:#fff;border:1px solid #cfddf0;color:#2e4a73;box-shadow:var(--shadow-soft)}
.btn-soft{background:#edf5ff;color:#1e68eb}.btn-green{background:linear-gradient(135deg,#54d69d,#22ac73);color:#fff}.btn-red{background:#fff1f1;color:#d44848;border:1px solid #ffd0d0}.btn-ghost{background:transparent;color:#516179}.btn-sm{padding:7px 10px;font-size:12px;border-radius:10px}
.input,.select,.textarea{width:100%;border:1px solid #d7e3f1;background:#fff;border-radius:12px;padding:11px 12px;outline:none;color:#233551;box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}
.input:focus,.select:focus,.textarea:focus{border-color:#88b7ff;box-shadow:0 0 0 4px rgba(45,126,247,.10)}.textarea{min-height:96px;resize:vertical}
.label{display:block;font-weight:900;margin-bottom:6px;color:#29456d}.form-row{margin-bottom:14px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hint{font-size:12px;color:var(--muted);line-height:1.65}
.tag,.status-pill{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:900;border:1px solid transparent}.tag-blue,.s-ai{background:#eef5ff;color:#1d72f5;border-color:#dbe9fd}.tag-green,.s-good{background:#ebfbf3;color:#16915e;border-color:#c8f0da}.tag-orange,.s-warn{background:#fff6e9;color:#cf7600;border-color:#ffe2af}.tag-red,.s-danger{background:#fff1f1;color:#da4646;border-color:#ffd2d2}.tag-gray{background:#f3f6fa;color:#66758d;border-color:#e0e8f2}.tag-cyan{background:#ebfbff;color:#1696b9;border-color:#cff0f9}.tag-purple,.s-human{background:#f4efff;color:#7557e8;border-color:#e1d9ff}
.data-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px;background:#fff}.data-table{width:100%;border-collapse:collapse;min-width:720px}.data-table th,.data-table td{padding:12px 13px;border-bottom:1px solid #edf2f8;text-align:left;vertical-align:middle}.data-table th{font-size:11px;color:#6b7e98;background:#f7faff;position:sticky;top:0;z-index:1;font-weight:900}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover td{background:#f8fbff}.clickable{cursor:pointer}
.todo-list{display:flex;flex-direction:column;gap:10px}.todo{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:16px;padding:14px;background:#fff;box-shadow:var(--shadow-soft)}.todo:hover{border-color:#c9dcf4;background:#fbfdff}.todo-dot{width:10px;height:10px;border-radius:50%;background:var(--blue);flex:0 0 auto}.todo-body{flex:1;min-width:0}.todo-body b{display:block}.todo-body small{color:var(--muted);display:block;margin-top:3px;line-height:1.5}.empty{padding:40px 18px;text-align:center;color:var(--muted)}
.notice{border-left:4px solid var(--blue);background:#f4f8ff;border-radius:14px;padding:13px 15px;color:#355173;line-height:1.7}.notice.warn{border-color:#f0a11f;background:#fff9ef}.notice.danger{border-color:#e54848;background:#fff6f6}.notice.good{border-color:#22a862;background:#f3fbf6}
.score-ring{width:118px;height:118px;border-radius:50%;background:conic-gradient(#2b7dfa calc(var(--score,0)*1%),#edf2f8 0);display:grid;place-items:center;position:relative;box-shadow:var(--shadow-soft)}.score-ring::after{content:"";position:absolute;inset:13px;background:#fff;border-radius:50%}.score-ring strong{position:relative;z-index:1;font-size:31px;color:#153864}.score-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.score-block{border:1px solid var(--line);border-radius:16px;padding:13px;background:#fff}.score-block b{display:block;font-size:22px}.score-block small{color:var(--muted)}
.ai-panel{border:1px solid #cfe3fb;background:linear-gradient(135deg,#f7fbff,#f8ffff);border-radius:20px;padding:18px;box-shadow:var(--shadow)}.ai-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.ai-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.ai-item{background:#fff;border:1px solid #dce9f7;border-radius:14px;padding:11px}.ai-item b{font-size:20px}.ai-item small{display:block;color:var(--muted);margin-top:2px}
.progress{height:8px;background:#edf1f6;border-radius:10px;overflow:hidden}.progress i{display:block;height:100%;background:linear-gradient(90deg,#1768ff,#13a8b1);border-radius:10px}
.calendar-card{padding:18px}.calendar-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);border-left:1px solid var(--line);border-top:1px solid var(--line);border-radius:18px;overflow:hidden}.cal-h,.cal-day{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.cal-h{text-align:center;padding:9px;background:#f8fbff;font-size:11px;color:#65748c;font-weight:900}.cal-h.sun,.cal-h.holiday{background:#fff0f0;color:#d35a5a}.cal-h.sat{background:#f2f7ff;color:#5d82cf}.cal-day{min-height:112px;padding:8px;background:#fff;cursor:pointer;position:relative}.cal-day:hover{background:#f8fbff}.cal-day.today{box-shadow:inset 0 0 0 2px var(--blue)}.cal-day.muted{background:#fafbfc;color:#a5afbd}.cal-day.weekend{background:#fcfdff}.cal-day.sunday,.cal-day.holiday{background:#fff8f8}.cal-day.saturday{background:#f7fbff}.cal-num{font-weight:900}.cal-sub{font-size:10px;color:#e25b5b;margin-top:3px;line-height:1.35}.marks{display:flex;gap:4px;flex-wrap:wrap;margin-top:13px}.mark{padding:4px 7px;border-radius:999px;font-size:10px;font-weight:900;border:1px solid transparent}.mark-home{background:#edf4ff;color:#1768ff;border-color:#dbe9fd}.mark-office{background:#eaf8ef;color:#1c9650;border-color:#cbeddb}.mark-onsite{background:#fff3e5;color:#d77900;border-color:#ffe0b4}.mark-off{background:#f0f2f5;color:#687487;border-color:#e1e7ef}.mark-actual{box-shadow:inset 0 0 0 1px currentColor}
.rule-check{display:grid;grid-template-columns:1fr 1fr;gap:10px}.check{border:1px solid var(--line);border-radius:16px;padding:13px;background:#fff}.check.ok{border-color:#bfe7cf;background:#f7fcf9}.check.ng{border-color:#ffcaca;background:#fff8f8}.check .title{font-weight:900}.check small{display:block;color:var(--muted);margin-top:3px;line-height:1.5}
.timeline{display:grid;grid-template-columns:90px 150px minmax(250px,1fr) minmax(220px,.8fr);border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff}.timeline>div{padding:8px;border-bottom:1px solid var(--line);background:#fff}.timeline>.th{background:#f8fbff;color:#65748c;font-size:11px;font-weight:900}.timeline>.time{background:#f8fbff;font-weight:900;color:#52617a}.timeline>.break{grid-column:2/5;background:#f4f6f9;color:#788599}.timeline>div:nth-last-child(-n+4){border-bottom:0}.timeline input,.timeline select{border:1px solid #dde5ef;border-radius:10px;padding:7px;width:100%}
.split{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px}.summary-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.history{position:relative;padding-left:24px;margin:14px 0}.history:before{content:"";position:absolute;left:6px;top:3px;bottom:-16px;width:2px;background:#dfe6f1}.history:last-child:before{display:none}.history:after{content:"";position:absolute;left:0;top:2px;width:14px;height:14px;border-radius:50%;background:linear-gradient(135deg,#5eb0ff,#2376ff)}
.kv{display:grid;grid-template-columns:160px 1fr;border-bottom:1px solid #edf1f6}.kv>div{padding:10px 9px}.kv>div:first-child{color:#65748c;font-weight:800}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:14px;overflow:auto}.tab{padding:10px 13px;font-weight:900;color:#75839a;border-bottom:2px solid transparent;white-space:nowrap;cursor:pointer}.tab.active{color:#1768ff;border-color:#1768ff}
.modal-bg{position:fixed;inset:0;background:rgba(17,38,74,.28);backdrop-filter:blur(8px);z-index:160;display:flex;align-items:center;justify-content:center;padding:24px}.modal{background:#fff;border-radius:24px;box-shadow:0 24px 70px rgba(32,59,104,.22);width:min(760px,100%);max-height:90vh;overflow:auto;padding:22px}.modal.large{width:min(1040px,100%)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}.modal-head h2{margin:0;font-size:20px}.close{border:0;background:#eef2f7;width:36px;height:36px;border-radius:12px;color:#425980}.password-field{position:relative}.password-field .input{padding-right:92px}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:#eef5ff;color:#2a6de5;border-radius:10px;padding:6px 10px;font-weight:800;font-size:12px}
.toast{position:fixed;right:22px;bottom:22px;z-index:300;background:#13356a;color:#fff;border-radius:14px;padding:12px 16px;box-shadow:0 12px 36px rgba(0,0,0,.18);opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s;max-width:min(420px,calc(100vw - 32px))}.toast.show{opacity:1;transform:none}.toast.error{background:#b04141}
.loading{padding:50px;text-align:center;color:var(--muted)}.spinner{width:28px;height:28px;border:3px solid #dce6f4;border-top-color:#1768ff;border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 10px}@keyframes spin{to{transform:rotate(360deg)}}
.login{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(420px,.85fr);background:#fff}.login-visual{position:relative;overflow:hidden;background:radial-gradient(circle at 18% 20%,rgba(68,163,255,.32),transparent 28%),radial-gradient(circle at 72% 35%,rgba(43,208,188,.17),transparent 26%),linear-gradient(145deg,#eaf2ff,#d8e7ff 50%,#f3f9ff);display:flex;align-items:flex-end;padding:70px;color:#183861}.login-visual:after{content:"";position:absolute;inset:auto -120px -120px auto;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(49,127,247,.18),transparent 68%);pointer-events:none}.login-message{position:relative;z-index:1;max-width:650px}.login-message img{width:280px;max-width:70%;margin-bottom:30px}.login-message h1{font-size:48px;margin:0 0 15px}.login-message h1 span{color:#2e7ef7}.login-message p{font-size:20px;line-height:1.8;color:#5a7497}.login-form-wrap{display:grid;place-items:center;padding:50px;background:linear-gradient(180deg,#fff,#f8fbff)}.login-form{width:min(400px,100%)}.login-form img{width:250px;max-width:80%;margin-bottom:35px}.login-form h2{font-size:28px;margin:0 0 8px}.login-form .btn{width:100%;padding:12px}.login-help{display:flex;justify-content:flex-end;margin:9px 0 18px}.link{color:#1768ff;font-weight:900;cursor:pointer}.mobile-overlay{display:none}

@media(max-width:1280px){.hero-banner{grid-template-columns:1fr}.hero-visual{justify-content:flex-start}.hero-points{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:1180px){.cards4{grid-template-columns:repeat(2,1fr)}.layout-main,.split{grid-template-columns:1fr}.score-grid{grid-template-columns:repeat(3,1fr)}.ai-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){body{font-size:13px}.sidebar{transform:translateX(-102%);transition:.22s;width:min(280px,84vw)}.sidebar.open{transform:none}.mobile-overlay{display:block;position:fixed;inset:0;background:rgba(4,17,38,.4);z-index:65}.main{margin-left:0;width:100%}.topbar{height:64px;padding:0 14px;gap:9px}.menu-btn{display:grid;place-items:center}.top-brand{font-size:18px}.page-title{display:none}.top-action.month{display:none}.top-profile .meta{display:none}.content{padding:17px 14px 34px}.page-head{flex-direction:column}.page-head h1{font-size:24px}.cards4,.cards3,.cards2,.summary-cards,.hero-points{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.score-grid{grid-template-columns:repeat(2,1fr)}.ai-grid{grid-template-columns:1fr}.rule-check{grid-template-columns:1fr}.calendar-card{padding:10px}.cal-h{padding:6px 2px;font-size:10px}.cal-day{min-height:78px;padding:5px}.marks{margin-top:8px;display:block}.mark{margin:2px 0;padding:3px 4px;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timeline{display:block;border:0}.timeline>.th{display:none}.timeline>div{border:0}.timeline>.time{border:1px solid var(--line);border-bottom:0;border-radius:10px 10px 0 0;margin-top:11px}.timeline>.time+div,.timeline>.time+div+div,.timeline>.time+div+div+div{border-left:1px solid var(--line);border-right:1px solid var(--line);padding:7px 9px}.timeline>.time+div+div+div{border-bottom:1px solid var(--line);border-radius:0 0 10px 10px}.timeline>.break{border:1px solid var(--line);border-radius:0 0 10px 10px}.kv{grid-template-columns:120px 1fr}.login{grid-template-columns:1fr}.login-visual{display:none}.login-form-wrap{min-height:100vh;padding:28px}.login-form img{margin-bottom:28px}.modal-bg{padding:10px}.modal{padding:17px;max-height:94vh}.data-table{min-width:680px}.metric{min-height:102px}}
@media(max-width:480px){.top-brand{font-size:16px}.bell{width:38px;height:38px}.content{padding-left:11px;padding-right:11px}.panel{padding:14px}.score-grid{grid-template-columns:1fr 1fr}.toolbar{width:100%}.toolbar .btn{flex:1}.page-head .toolbar .btn{flex:auto}.calendar-head{align-items:flex-start;flex-direction:column}.data-wrap{border-radius:14px}.login-form-wrap{padding:22px}.modal-bg{padding:6px}.modal{border-radius:18px}.metric-icon{width:52px;height:52px}.brand img{width:180px}.hero-banner{padding:18px}.hero-illustration{height:160px}}

/* v1.0.2 - second UI refinement */
.sidebar-ai{margin:0 14px 12px;padding:12px 13px;border:1px solid #dce9f8;border-radius:16px;background:linear-gradient(135deg,#f7fbff,#eef7ff);display:flex;align-items:center;gap:10px;box-shadow:var(--shadow-soft)}
.sidebar-ai b{display:block;font-size:11px;color:#25538e}.sidebar-ai small{display:block;margin-top:2px;font-size:9px;color:#8393ab;line-height:1.4}
.ai-live{height:40px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #dce9f8;border-radius:13px;background:rgba(255,255,255,.9);color:#466486;font-size:11px;font-weight:900;box-shadow:var(--shadow-soft)}
.ai-live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#24c27a;box-shadow:0 0 0 4px rgba(36,194,122,.12)}
.page-head{padding:4px 0 2px;align-items:center}
.page-head-copy{min-width:0;flex:1}
.page-title-line{display:flex;align-items:center;gap:13px;min-width:0}
.page-title-icon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#eef6ff,#e1eeff);border:1px solid #d7e7fb;color:#2b76eb;box-shadow:var(--shadow-soft);flex:0 0 auto}
.page-title-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.page-eyebrow{font-size:9px;letter-spacing:.18em;color:#93a5bd;font-weight:900;margin-bottom:2px}
.page-title-line h1{font-size:28px;line-height:1.15}
.page-head-copy>p{margin-left:61px;margin-top:7px}
.page-ai-badge{display:inline-flex;align-items:center;gap:7px;margin-left:5px;padding:7px 10px;border-radius:999px;background:#f3f9ff;border:1px solid #d8eaff;color:#2a6dde;font-size:10px;font-weight:900;white-space:nowrap}
.page-actions{justify-content:flex-end}
.card.panel{position:relative;overflow:hidden}
.card.panel::before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:linear-gradient(90deg,rgba(63,145,255,.75),rgba(55,207,190,.45),transparent 78%);opacity:.75}
.card.panel>h2:first-child{display:flex;align-items:center;gap:8px;color:#24466f}
.card.panel>h2:first-child::before{content:"";width:7px;height:7px;border-radius:50%;background:linear-gradient(135deg,#5eaaff,#3e7fff);box-shadow:0 0 0 4px rgba(68,135,244,.08)}
.data-table th{background:linear-gradient(180deg,#fbfdff,#f4f8fe);letter-spacing:.02em}
.data-table tbody tr{transition:.16s}.data-table tbody tr:hover{transform:translateY(-1px);box-shadow:inset 3px 0 0 #7bb3ff}
.form-row .hint{margin-top:5px}.input,.select,.textarea{transition:border-color .16s,box-shadow .16s,background .16s}.input:hover,.select:hover,.textarea:hover{border-color:#c5d9f0;background:#fdfefe}
.tabs{gap:7px;border-bottom:0;background:#f5f9ff;border:1px solid #e0eaf7;border-radius:14px;padding:5px}.tab{border:0;border-radius:10px;padding:9px 13px}.tab.active{background:#fff;color:#1768ff;box-shadow:var(--shadow-soft)}
.notice-unread{border-color:#bed9ff;background:linear-gradient(135deg,#fbfdff,#f3f8ff)}
.link{transition:.16s}.link:hover{color:#0d56cc}
.metric{transition:.18s}.metric:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(49,98,170,.13)}
.modal-head{padding-bottom:12px;border-bottom:1px solid #edf2f8}.modal-head h2{color:#22456f}.modal{border:1px solid rgba(219,231,246,.95)}
.score-block,.ai-item,.hero-point{transition:.17s}.score-block:hover,.ai-item:hover,.hero-point:hover{transform:translateY(-1px);border-color:#c9ddf6;box-shadow:var(--shadow-soft)}
.mobile-bottom-nav{display:none}

@media(max-width:1100px){.ai-live{display:none}.page-ai-badge{display:none}}
@media(max-width:820px){
  .main{padding-bottom:72px}
  .mobile-bottom-nav{position:fixed;z-index:90;left:0;right:0;bottom:0;height:66px;display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.96);border-top:1px solid #dbe7f5;box-shadow:0 -12px 30px rgba(47,90,153,.10);backdrop-filter:blur(14px);padding-bottom:env(safe-area-inset-bottom)}
  .mobile-bottom-item{border:0;background:transparent;color:#7184a1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-weight:800}
  .mobile-bottom-item span{width:22px;height:22px;display:grid;place-items:center}.mobile-bottom-item svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .mobile-bottom-item small{font-size:9px}.mobile-bottom-item.active{color:#2476ef}.mobile-bottom-item.active span{width:30px;height:30px;border-radius:11px;background:#edf5ff}
  .page-head{align-items:flex-start}.page-title-icon{width:42px;height:42px;border-radius:14px}.page-title-icon svg{width:21px;height:21px}.page-title-line h1{font-size:23px}.page-head-copy>p{margin-left:55px}.page-actions{margin-left:55px}.sidebar-ai{display:flex}
}
@media(max-width:480px){.page-head-copy>p{margin-left:0;margin-top:10px}.page-actions{margin-left:0}.page-title-line{align-items:flex-start}.page-title-icon{margin-top:1px}.page-eyebrow{margin-top:2px}.page-head{gap:12px}}
.password-gate{min-height:calc(100vh - 160px);display:flex;align-items:center;justify-content:center;gap:22px;padding:40px;max-width:820px;margin:auto}
.password-gate-icon{width:82px;height:82px;border-radius:26px;display:grid;place-items:center;background:linear-gradient(135deg,#6bb8ff,#2b78f3);color:#fff;box-shadow:0 18px 42px rgba(41,119,240,.24);flex:0 0 auto}.password-gate-icon svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.password-gate h1{margin:4px 0 10px;font-size:30px}.password-gate p{margin:0;color:#647b9d;line-height:1.8}
@media(max-width:600px){.password-gate{flex-direction:column;text-align:center;padding:28px 10px;min-height:calc(100vh - 150px)}.password-gate h1{font-size:24px}}

/* v1.0.4 Home Hero refinement */
.hero-home{grid-template-columns:minmax(0,1fr) 255px;gap:24px;padding:24px 26px;align-items:center}
.hero-home-main{display:flex;flex-direction:column;justify-content:center;min-width:0}
.hero-ai-status{display:inline-flex;align-items:center;gap:10px;width:max-content;max-width:100%;padding:8px 12px;border-radius:15px;background:rgba(255,255,255,.88);border:1px solid #d8e7f8;box-shadow:0 7px 18px rgba(57,112,187,.07);margin-bottom:13px}
.hero-ai-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#63b6ff,#497bff);color:#fff;flex:0 0 auto;box-shadow:0 7px 16px rgba(55,118,238,.16)}
.hero-ai-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hero-ai-status b{display:block;font-size:12px;color:#2466d7}.hero-ai-status small{display:block;font-size:11px;color:#6f83a1;margin-top:2px;line-height:1.4}
.hero-home h2{font-size:22px;margin:0 0 7px}.hero-home p{max-width:920px;margin-bottom:0}
.hero-points-home{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.hero-points-home .hero-point{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:68px}
.hero-points-home .hero-point b{font-size:18px;margin:0}.hero-points-home .hero-point small{margin-top:4px}
.hero-point-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;color:#fff;flex:0 0 auto}.hero-point-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.hero-point-icon.blue{background:linear-gradient(135deg,#69b8ff,#3985ff)}.hero-point-icon.green{background:linear-gradient(135deg,#5bdcc2,#2db994)}.hero-point-icon.purple{background:linear-gradient(135deg,#bd92ff,#8167ee)}
.hero-home-ai-card{justify-self:end;width:220px;height:154px;border-radius:22px;border:1px solid #c9def8;background:linear-gradient(145deg,rgba(232,243,255,.95),rgba(248,251,255,.98));box-shadow:0 14px 32px rgba(58,111,182,.09),inset 0 1px 0 rgba(255,255,255,.9);position:relative;overflow:hidden}
.hero-home-ai-card::before{content:"";position:absolute;right:-22px;bottom:-35px;width:125px;height:125px;border-radius:50%;background:radial-gradient(circle,rgba(75,148,255,.14),transparent 65%)}
.hero-home-ai-badge{position:absolute;left:18px;top:17px;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#65b5ff,#3f7dff);color:#fff;font-weight:900;font-size:21px;box-shadow:0 9px 20px rgba(48,116,235,.19)}
.hero-home-ai-lines{position:absolute;left:20px;bottom:25px;width:86px;display:grid;gap:7px}.hero-home-ai-lines i{display:block;height:7px;border-radius:999px;background:#dbe7f6}.hero-home-ai-lines i:first-child{background:linear-gradient(90deg,#56c1f2,#4ad0c3);width:88%}.hero-home-ai-lines i:nth-child(2){width:100%}.hero-home-ai-lines i:nth-child(3){width:68%}
.hero-home-ai-panel{position:absolute;right:18px;top:48px;width:76px;height:76px;border-radius:18px;background:linear-gradient(180deg,#ffffff,#f2f7ff);border:1px solid #e0eaf7;box-shadow:0 11px 25px rgba(61,104,169,.10);display:grid;place-items:center;color:#4b86ef}.hero-home-ai-panel svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1180px){.hero-home{grid-template-columns:1fr 205px}.hero-home-ai-card{width:195px;height:145px}}
@media(max-width:900px){.hero-home{grid-template-columns:1fr}.hero-home-ai-card{display:none}.hero-points-home{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.hero-ai-status{width:100%}.hero-points-home{grid-template-columns:1fr}.hero-home{padding:18px}.hero-home h2{font-size:20px}}

/* v1.0.5 Home hero refinement */
.hero-home-compact{grid-template-columns:minmax(0,1fr) 205px;gap:20px;padding:22px 26px;min-height:210px}
.hero-home-compact .hero-home-main{max-width:100%}
.hero-home-compact h2{margin-top:1px;margin-bottom:7px}
.hero-home-compact p{max-width:980px;line-height:1.75;margin-bottom:13px}
.hero-home-ai-card-compact{width:186px;height:132px;border-radius:20px}
.hero-home-ai-card-compact .hero-home-ai-badge{left:15px;top:14px;width:42px;height:42px;border-radius:13px;font-size:19px}
.hero-home-ai-card-compact .hero-home-ai-lines{left:17px;bottom:20px;width:72px;gap:6px}
.hero-home-ai-card-compact .hero-home-ai-lines i{height:6px}
.hero-home-ai-card-compact .hero-home-ai-panel{right:14px;top:40px;width:64px;height:64px;border-radius:17px}
.hero-home-ai-card-compact .hero-home-ai-panel svg{width:24px;height:24px}
.hero-attention{display:flex;align-items:center;gap:10px;width:max-content;max-width:100%;padding:10px 13px;border-radius:14px;border:1px solid #d7e7f8;background:rgba(255,255,255,.82);box-shadow:0 6px 18px rgba(61,112,183,.06)}
.hero-attention svg{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hero-attention b{display:block;font-size:12px}.hero-attention small{display:block;font-size:11px;line-height:1.45;margin-top:2px;color:#6f83a1}
.hero-attention.good{color:#198c62;border-color:#ccebdc;background:rgba(246,253,249,.9)}
.hero-attention.warn{color:#c87705;border-color:#ffe1b2;background:rgba(255,249,239,.95)}
.home-ai-note{margin-top:12px;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:#f7faff;border:1px solid #e0eaf7;color:#3f5f8c}
.home-ai-note>span{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#edf5ff;color:#2873e8;flex:0 0 auto}
.home-ai-note svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.home-ai-note>div{min-width:0;flex:1}.home-ai-note b{display:block;font-size:12px}.home-ai-note small{display:block;color:#7285a2;font-size:11px;margin-top:2px;line-height:1.45}
@media(max-width:1180px){.hero-home-compact{grid-template-columns:minmax(0,1fr) 180px}.hero-home-ai-card-compact{width:170px;height:124px}}
@media(max-width:900px){.hero-home-compact{grid-template-columns:1fr;min-height:auto}.hero-home-ai-card-compact{display:none}.hero-attention{width:100%}}
@media(max-width:700px){.hero-home-compact{padding:18px}.home-ai-note{align-items:flex-start}.home-ai-note .btn{flex:0 0 auto}}

/* v1.0.6: explanatory badge (not an action control) */
.status-note{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid var(--line);border-radius:999px;background:#f7f9fc;color:var(--muted);font-size:12px;font-weight:700;cursor:default;user-select:none;box-shadow:none}
.todo-dot.todo-dot-read{background:#c8d1df!important;box-shadow:none}

/* v1.0.9 */
.password-input-wrap{display:flex;gap:8px;align-items:center}.password-input-wrap .input{flex:1}.password-toggle{border:1px solid var(--line);background:#fff;border-radius:9px;padding:9px 12px;cursor:pointer;color:#1768ff;font-weight:700}.weekday-grid{display:grid;grid-template-columns:repeat(5,minmax(88px,1fr));gap:8px}.weekday-grid label{font-size:12px;font-weight:700;color:var(--muted)}.weekday-grid .select{margin-top:5px}.avatar-img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.profile-avatar-large{width:112px;height:112px;border-radius:28px;background:#eef5ff;display:grid;place-items:center;overflow:hidden;font-size:48px}.profile-avatar-large svg{width:52px;height:52px}@media(max-width:720px){.weekday-grid{grid-template-columns:repeat(2,1fr)}}

/* v1.0.10 profile / report usability */
.profile-hero{display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center;padding:24px 28px;background:linear-gradient(135deg,#fff,#f5f9ff);border:1px solid #e4edfb}
.profile-hero-avatar .avatar,.profile-hero-avatar img{width:92px;height:92px;border-radius:26px;object-fit:cover}
.profile-hero-main h1{margin:4px 0 6px;font-size:28px}.profile-meta-line{color:var(--muted);margin-bottom:14px}.profile-status{align-self:start}
.profile-info-grid{grid-template-columns:1fr 1fr;align-items:start}.profile-kv{grid-template-columns:minmax(120px,.8fr) minmax(180px,1.6fr)}
.report-error{outline:2px solid rgba(215,48,48,.26);outline-offset:4px;border-radius:10px}.timeline.report-error{padding:6px}.btn:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:820px){.profile-hero{grid-template-columns:auto 1fr;padding:18px}.profile-status{grid-column:1/-1}.profile-info-grid{grid-template-columns:1fr}.profile-hero-avatar .avatar,.profile-hero-avatar img{width:72px;height:72px;border-radius:20px}}

/* v1.0.11 interaction feedback */
.app-version{padding:6px 18px 2px;color:#8fa2bd;font-size:10px;font-weight:800;letter-spacing:.08em;text-align:right}.login-version{margin-top:14px;text-align:center;color:#98a6ba;font-size:11px}.report-save-status{font-weight:800}.report-save-status.save-ok{color:#168455}.report-save-status.save-error{color:#c93737}

.review-filter-grid{grid-template-columns:repeat(4,minmax(150px,1fr));align-items:end}.review-filter-action{justify-content:flex-end}@media(max-width:900px){.review-filter-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.review-filter-grid{grid-template-columns:1fr}}
