
.mhsp-wrap{
    --ink:#111827;--muted:#6b7280;--line:#e5e7eb;--soft:#f6f7f9;
    max-width:1100px;margin:48px auto;padding:0 20px;
    box-sizing:border-box;color:var(--ink);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Yu Gothic",Meiryo,sans-serif
}
.mhsp-wrap *{box-sizing:border-box}
.mhsp-login-card{
    width:min(100%,480px);margin:0 auto;padding:38px;background:#fff;
    border:1px solid var(--line);border-radius:22px;
    box-shadow:0 22px 55px rgba(17,24,39,.09)
}
.mhsp-brand{display:flex;align-items:center;gap:12px}
.mhsp-brand-mark.mhsp-brand-mark-logo{
    width:52px!important;height:52px!important;flex:0 0 52px!important;padding:0!important;
    border-radius:50%!important;background:transparent!important;overflow:hidden!important;
    display:flex!important;align-items:center!important;justify-content:center!important
}
.mhsp-brand-mark.mhsp-brand-mark-logo img{
    display:block!important;width:100%!important;height:100%!important;
    object-fit:cover!important;border-radius:50%!important
}
.mhsp-brand-copy{display:flex;flex-direction:column;line-height:1.1}
.mhsp-brand-copy strong{font-size:19px;letter-spacing:.03em}
.mhsp-brand-copy span{margin-top:5px;color:#8b93a1;font-size:10px;font-weight:700;letter-spacing:.18em}
.mhsp-login-title{margin:34px 0 24px}
.mhsp-login-title h2{margin:0 0 8px;font-size:28px}
.mhsp-login-title p{margin:0;color:var(--muted);font-size:13px}
.mhsp-form label:not(.mhsp-remember){display:block;margin:18px 0 8px;font-size:13px;font-weight:700}
.mhsp-form input[type=text],.mhsp-form input[type=password]{
    width:100%;height:50px;padding:0 14px;border:1px solid #d6dae1;border-radius:11px;background:#fff;font-size:15px;outline:0
}
.mhsp-form input:focus{border-color:#667085;box-shadow:0 0 0 3px rgba(17,24,39,.06)}
.mhsp-remember{display:flex;align-items:center;gap:8px;margin:17px 0 22px;color:#4b5563;font-size:13px}
.mhsp-primary,.mhsp-secondary{
    min-height:48px;border-radius:11px;padding:0 20px;font-size:14px;font-weight:750;
    display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important
}
button.mhsp-primary{width:100%;border:0;background:#111827;color:#fff;cursor:pointer}
.mhsp-linkbtn.mhsp-primary{background:#111827;color:#fff!important}
.mhsp-secondary{background:#fff;border:1px solid var(--line);color:#111827!important}
.mhsp-buttons{display:flex;gap:10px;flex-wrap:wrap}
.mhsp-login-foot{text-align:center;margin:22px 0 0;color:#a0a7b2;font-size:10px;letter-spacing:.12em}
.mhsp-alert{
    margin:0 0 18px;padding:12px 14px;border-radius:10px;border:1px solid #fecaca;
    background:#fef2f2;color:#991b1b;font-size:13px
}
.mhsp-dashboard-wrap{max-width:1180px}
.mhsp-dashboard{
    background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;
    box-shadow:0 18px 50px rgba(17,24,39,.07)
}
.mhsp-topbar{
    min-height:82px;padding:18px 26px;display:flex;align-items:center;justify-content:space-between;
    border-bottom:1px solid var(--line)
}
.mhsp-userbox{display:flex;align-items:center;gap:18px}
.mhsp-userbox>div{display:flex;flex-direction:column;text-align:right}
.mhsp-userbox strong{font-size:13px}.mhsp-userbox span{margin-top:3px;color:#8a93a1;font-size:11px}
.mhsp-userbox a{color:#6b7280!important;text-decoration:none!important;font-size:12px;font-weight:700}
.mhsp-hero{margin:26px;padding:30px;border-radius:18px;background:#f5f6f8;display:flex;align-items:center;justify-content:space-between}
.mhsp-eyebrow{display:block;margin-bottom:7px;color:#9aa1ac;font-size:10px;font-weight:800;letter-spacing:.16em}
.mhsp-hero h1{margin:0 0 7px;font-size:28px}.mhsp-hero p{margin:0;color:#6b7280;font-size:13px}
.mhsp-section-title{padding:0 26px 14px}
.mhsp-section-title h3{margin:0 0 5px;font-size:17px}.mhsp-section-title p{margin:0;color:#8a93a1;font-size:12px}
.mhsp-grid{padding:0 26px 28px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.mhsp-tile{
    min-height:142px;padding:20px;border:1px solid var(--line);border-radius:15px;background:#fff;
    transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
    text-decoration:none!important;color:#111827!important;display:flex;flex-direction:column;align-items:flex-start
}
.mhsp-tile.is-ready{cursor:pointer}
.mhsp-tile.is-ready:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(17,24,39,.08);border-color:#cfd5dd}
.mhsp-tile.is-disabled{opacity:.56}
.mhsp-icon{display:block;margin-bottom:15px;font-size:24px;line-height:1}
.mhsp-tile strong{display:block;font-size:14px;line-height:1.5;word-break:keep-all}
.mhsp-tile small{display:block;margin-top:auto;padding-top:9px;font-size:11px}
.mhsp-status-ready{color:#047857!important;font-weight:700}
.mhsp-status-self_pending{color:#b45309!important;font-weight:700}
.mhsp-status-missing{color:#9ca3af!important}
.mhsp-footer{
    padding:16px 26px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#9aa1ac;font-size:10px
}
.mhsp-module-page{padding:28px}
.mhsp-back-link{display:inline-block;margin-bottom:18px;color:#4b5563!important;text-decoration:none!important;font-size:13px;font-weight:700}
.mhsp-module-panel{max-width:720px;padding:30px;border:1px solid var(--line);border-radius:18px;background:#fff}
.mhsp-module-bigicon{font-size:34px}
.mhsp-module-panel h2{margin:14px 0 10px;font-size:24px}
.mhsp-module-panel p{color:#6b7280;line-height:1.8}
.mhsp-safe-note{margin-top:22px;padding:16px;border-radius:12px;background:#fffbeb;border:1px solid #fde68a}
.mhsp-safe-note strong,.mhsp-safe-note span{display:block}
.mhsp-safe-note span{margin-top:6px;color:#785f1a;font-size:13px;line-height:1.7}
.mhsp-user-mini{margin-top:20px;color:#9ca3af;font-size:11px}
html,body.mhsp-standalone{margin:0!important;padding:0!important;min-height:100%!important;background:#eef2f6!important}
body.mhsp-standalone #mhsp-standalone-app{width:100%;min-height:100vh;margin:0;padding:0}
body.mhsp-standalone .mhsp-wrap{margin:0 auto!important;padding-top:28px!important;padding-bottom:28px!important}

@media(max-width:720px){
    .mhsp-wrap{margin:0 auto;padding-left:10px!important;padding-right:10px!important}
    body.mhsp-standalone .mhsp-wrap{padding-top:12px!important;padding-bottom:12px!important}
    .mhsp-login-card{padding:26px 20px}
    .mhsp-dashboard{border-radius:16px}
    .mhsp-topbar{padding:14px 14px;min-height:72px}
    .mhsp-brand-mark.mhsp-brand-mark-logo{width:46px!important;height:46px!important;flex-basis:46px!important}
    .mhsp-brand-copy strong{font-size:16px}.mhsp-brand-copy span{font-size:8px}
    .mhsp-userbox>div{display:none}
    .mhsp-hero{margin:14px;padding:20px}.mhsp-hero h1{font-size:23px}
    .mhsp-section-title{padding:4px 14px 12px}.mhsp-section-title p{font-size:11px;line-height:1.6}
    .mhsp-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;padding:0 12px 20px!important}
    .mhsp-tile{min-height:112px!important;padding:13px 9px!important;border-radius:12px!important}
    .mhsp-icon{font-size:21px;margin-bottom:10px}
    .mhsp-tile strong{font-size:11.5px!important;line-height:1.45!important;word-break:keep-all!important;overflow-wrap:normal!important}
    .mhsp-tile small{font-size:10px!important;padding-top:8px}
    .mhsp-footer{padding:14px;gap:8px;flex-direction:column}
}


/* ===== v1.4.0 社員連携 / 本人給与 ===== */
.mhsp-profile-card{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin:20px 0
}
.mhsp-profile-card>div{
    padding:14px 16px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    background:#f9fafb
}
.mhsp-profile-card span,
.mhsp-profile-card strong{display:block}
.mhsp-profile-card span{
    margin-bottom:5px;
    color:#8b93a1;
    font-size:10px;
    font-weight:700
}
.mhsp-profile-card strong{
    color:#111827;
    font-size:14px;
    word-break:break-word
}
.mhsp-empty-state{
    margin:20px 0;
    padding:18px;
    border:1px dashed #cfd5dd;
    border-radius:13px;
    background:#fafafa
}
.mhsp-empty-state strong{display:block}
.mhsp-empty-state p{
    margin:7px 0 0!important;
    font-size:13px
}
.mhsp-salary-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin:20px 0
}
.mhsp-salary-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:14px 16px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    color:#111827!important;
    text-decoration:none!important;
    background:#fff
}
.mhsp-salary-row div strong,
.mhsp-salary-row div span{display:block}
.mhsp-salary-row div span{
    margin-top:4px;
    color:#8b93a1;
    font-size:11px
}
.mhsp-salary-row b{white-space:nowrap}
@media(max-width:720px){
    .mhsp-profile-card{grid-template-columns:1fr}
}


/* ===== v1.6.0 給与明細 UX ===== */
.mhsp-salary-panel{max-width:820px!important}
.mhsp-salary-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:24px}
.mhsp-salary-eyebrow{display:block;margin-bottom:5px;color:#9aa1ac;font-size:10px;font-weight:800;letter-spacing:.16em}
.mhsp-salary-title-row h2{margin:0 0 5px!important}
.mhsp-salary-title-row p{margin:0!important;color:#6b7280}
.mhsp-salary-employee-mini{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.mhsp-salary-employee-mini span{padding:6px 10px;border:1px solid #e5e7eb;border-radius:999px;background:#f9fafb;color:#6b7280;font-size:11px;font-weight:700}
.mhsp-salary-list{gap:14px!important}
.mhsp-salary-card{display:block;padding:0;border:1px solid #e5e7eb;border-radius:16px;background:#fff;color:#111827!important;text-decoration:none!important;overflow:hidden;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.mhsp-salary-card:hover{transform:translateY(-1px);border-color:#cbd5e1;box-shadow:0 10px 28px rgba(17,24,39,.08)}
.mhsp-salary-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 18px 14px}
.mhsp-salary-card-top div strong,.mhsp-salary-card-top div span{display:block}
.mhsp-salary-card-top div strong{font-size:16px}
.mhsp-salary-card-top div span{margin-top:5px;color:#8b93a1;font-size:12px}
.mhsp-salary-card-top b{font-size:20px;white-space:nowrap}
.mhsp-salary-card-meta{display:flex;gap:18px;flex-wrap:wrap;padding:0 18px 16px;color:#6b7280;font-size:11px}
.mhsp-salary-card-meta span strong{margin-left:5px;color:#374151}
.mhsp-salary-card-action{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:13px 18px;border-top:1px solid #eef0f3;background:#f8fafc}
.mhsp-salary-card-action>span{font-weight:800;font-size:13px}
.mhsp-salary-card-action small{color:#8b93a1;font-size:11px}
.mhsp-salary-card-action i{font-style:normal;font-size:24px;line-height:1;color:#6b7280}
.mhsp-self-only-foot{margin:18px 0 0!important;color:#9ca3af!important;font-size:11px!important;line-height:1.7!important}
@media(max-width:720px){
    .mhsp-salary-employee-mini{display:none}
    .mhsp-salary-card-top{padding:16px 14px 12px}
    .mhsp-salary-card-top div strong{font-size:15px}
    .mhsp-salary-card-top b{font-size:18px}
    .mhsp-salary-card-meta{padding:0 14px 14px;gap:10px}
    .mhsp-salary-card-action{padding:12px 14px}
}
