
:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN",sans-serif;color:#193b59;background:#eaf2fa}
*{box-sizing:border-box}body{margin:0}header{background:#142f4e;color:#fff;padding:18px max(22px,calc((100vw - 1110px)/2));display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}header a{color:#e7f4ff;font-size:13px}main{max-width:1135px;margin:24px auto 70px;padding:0 16px}
section{background:#fff;border:1px solid #d0e1ee;border-radius:16px;padding:23px;margin-bottom:16px;box-shadow:0 8px 24px #294d690c}
h1{font-size:24px;margin:2px 0 12px}h2{font-size:18px;margin:0 0 12px}p{line-height:1.65}.muted{color:#617c92;font-size:13px}.eyebrow{font-size:12px;font-weight:800;color:#5884a1;letter-spacing:.06em}
.row{display:flex;flex-wrap:wrap;gap:13px;align-items:end}.row label{display:flex;flex-direction:column;gap:6px;min-width:160px;flex:1;font-size:13px;font-weight:700}.row input,.row select{width:100%;padding:11px;border:1px solid #bdcfdf;border-radius:9px;background:#fff;color:#24435c;font:inherit}
.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}button{padding:11px 17px;font:inherit;font-weight:750;color:white;border:1px solid #164f7a;border-radius:9px;background:#164f7a;cursor:pointer}button:disabled{opacity:.46;cursor:default}button.secondary{color:#164f7a;background:#fff}button.danger{color:#a42838;border-color:#e0abb2;background:#fff5f5}
.notice{padding:13px;background:#eff7fc;border:1px solid #c4ddec;border-radius:9px;min-height:44px;margin:14px 0;line-height:1.6}.notice.error{border-color:#e4aeb7;background:#fff1f3;color:#a72332}.warning{color:#7d5925;border:1px solid #ead7b3;background:#fff8eb;padding:13px;border-radius:10px;font-size:13px;line-height:1.7;margin:12px 0}
.confirm{display:flex;align-items:center;gap:10px;line-height:1.6;padding:14px;border:1px solid #cbdcea;background:#f4f9fd;border-radius:9px;margin:16px 0;font-weight:750}.confirm input{width:19px;height:19px}.share{display:none;background:#f0f7fd;padding:15px;border:1px solid #c5ddec;border-radius:11px;margin-top:13px}.share textarea{width:100%;min-height:70px;resize:vertical;margin:9px 0;padding:11px;border-radius:8px;border:1px solid #bdcfdf;font:13px inherit}
.summary{padding:12px 14px;background:#f3f8fc;border-radius:9px;margin:13px 0;font-weight:700}.tablebox{overflow:auto;max-height:590px;border:1px solid #d9e4ef;border-radius:10px}table{border-collapse:collapse;width:100%;min-width:560px}th,td{text-align:left;padding:11px 12px;border-bottom:1px solid #e1ecf4;font-size:13px}th{position:sticky;top:0;background:#eaf3fa;color:#315571;z-index:1}tr:nth-child(even){background:#f8fbfe}
[hidden]{display:none!important}@media(max-width:620px){section{padding:17px}h1{font-size:21px}header{padding:15px 18px}.row label{min-width:120px}.actions button{flex:1}main{margin-top:15px}}

/* v5.13 Published shift matrix */
.matrix-box{max-height:min(72vh,760px);overscroll-behavior:contain}.shift-matrix{min-width:max-content;width:100%;border-collapse:separate;border-spacing:0}.shift-matrix th,.shift-matrix td{min-width:112px;padding:9px 8px;vertical-align:middle;border-right:1px solid #e4edf3}.shift-matrix .date-head{text-align:center;white-space:nowrap;min-width:112px;z-index:2}.shift-matrix .name-head{position:sticky;left:0;top:0;min-width:130px;z-index:4;background:#eaf3fa}.shift-matrix .name-cell{position:sticky;left:0;z-index:3;min-width:130px;background:#f5f9fc;box-shadow:2px 0 4px #16395710}.shift-matrix tr:nth-child(even) .name-cell{background:#eaf2f8}.name-button{display:block;width:100%;padding:9px 6px;text-align:left;background:transparent;color:#145a92;border:0;border-radius:6px;text-decoration:underline;text-underline-offset:3px;font-weight:800;white-space:normal}.name-button:hover,.name-button:focus-visible{background:#dcecf8;outline:2px solid #7ab1da}.shift-cell{text-align:center}.shift-entry{padding:7px 5px;border:1px solid #cfdfef;border-radius:8px;background:#f0f6fc;margin:3px auto;min-width:95px}.shift-time,.shift-shop{display:block;white-space:nowrap}.shift-time{font-weight:800;color:#143b5e}.shift-shop{font-size:11px;color:#4a6c85;margin-top:3px}.empty-shift{color:#a9bac8}.person-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0}.person-bar strong{color:#174568}@media(max-width:620px){.shift-matrix .name-head,.shift-matrix .name-cell{min-width:112px}.shift-matrix th,.shift-matrix td{min-width:105px}.shift-matrix .date-head{min-width:105px}}

/* v5.14: store-specific colors and attendance-only personal list */
.shift-entry{border-left:4px solid transparent}
.shift-entry.shop-gj,.personal-shop.shop-gj{background:#eaf3ff;border-color:#4285c7;color:#174b81}
.shift-entry.shop-kb,.personal-shop.shop-kb{background:#fff0dd;border-color:#e69b32;color:#8c520d}
.shift-entry.shop-wai,.personal-shop.shop-wai{background:#e8f9f5;border-color:#24a994;color:#126f62}
.shift-entry.shop-showa,.personal-shop.shop-showa{background:#eaf6e4;border-color:#65a54a;color:#356b27}
.shift-entry.shop-summer,.personal-shop.shop-summer{background:#f3eafe;border-color:#9463c9;color:#643c91}
.shift-entry.shop-other,.personal-shop.shop-other{background:#eef1f5;border-color:#8a99ab;color:#40546a}
.shift-entry .shift-time{color:#193b59}.shift-entry .shift-shop{color:inherit;font-weight:800}
.personal-list{display:flex;flex-direction:column;gap:9px;margin-top:14px}.personal-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;background:#f9fcff;border:1px solid #dce8f2;border-radius:12px}.personal-date{font-weight:800;color:#193b59;min-width:125px}.personal-info{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.personal-time{white-space:nowrap;font-size:14px}.personal-shop{display:inline-block;padding:6px 10px;border-radius:7px;border-left:4px solid;font-size:12px;font-weight:800;white-space:nowrap}
@media(max-width:620px){.personal-item{align-items:flex-start;flex-direction:column;gap:8px}.personal-info{justify-content:flex-start}}
