:root{
  font-family:-apple-system,BlinkMacSystemFont,system-ui,"Hiragino Sans","Noto Sans JP","Yu Gothic",Meiryo,sans-serif;
  color:#292824;background:#fff;font-size:17px;line-height:1.6;font-synthesis:none;
  --navy:#25241f;--blue:#3f8c5b;--line:#dfded6;--muted:#77736b;
}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}
button,a,input,summary{-webkit-tap-highlight-color:transparent}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:inherit}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #5d9bce;outline-offset:3px}
[hidden]{display:none!important}a{color:#255f92}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:-80px;left:16px;z-index:30;padding:12px 18px;background:#fff;border:2px solid var(--blue)}.skip-link:focus{top:8px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 18px;border:1px solid #bdccda;border-radius:8px;font-size:17px;font-weight:600;line-height:1.4;background:#fff;color:var(--navy);text-decoration:none}
.button:hover:not(:disabled){background:#eaf1f8}.button-primary{background:var(--blue);border-color:var(--blue);color:#fff}.button-primary:hover:not(:disabled){background:#327449}
.button-secondary{background:#fff;color:#375b45}.button svg,.icon-button svg{width:22px;height:22px;flex-shrink:0;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.full-width{width:100%}.page-shell{max-width:1120px;margin:0 auto;padding:18px 16px 24px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}
h1{font-size:20px;line-height:1.4;color:#25241f;font-weight:700;letter-spacing:0}.menu-button{min-height:46px;padding:9px 13px;font-size:16px;background:#fff;color:#566f88;border-color:#d0dce7}.menu-button svg{width:17px;height:17px}
.notice-banner{margin-bottom:18px;padding:16px 18px;border:1px solid #e6d4ad;background:#fff8e9;border-radius:9px;color:#75551c;font-size:16px;line-height:1.7}.notice-banner strong{display:block;font-size:17px;margin-bottom:3px}.notice-banner p{margin-top:3px}
.preview-banner{background:#edf4fb;border-color:#c7d9ea;color:#426280}.preview-banner strong{font-size:16px}.preview-banner p{font-size:15px}
.connection-card{text-align:center;margin:30px auto;max-width:640px;padding:36px 26px;border:1px solid var(--line);border-radius:13px;background:#fff}.connection-illustration{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 22px;border-radius:16px;background:#eef4fa}
.connection-illustration svg{width:48px;height:48px;stroke:#4c779f;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.connection-card h2{font-size:25px;line-height:1.6}.connection-description{font-size:18px;line-height:1.8;margin:17px 0 24px;color:#536b82}.connect-button{width:100%;min-height:56px;white-space:normal;font-size:18px}.connection-helper{font-size:16px;color:#708196;margin-top:20px}.connection-card.is-loading .connection-illustration{animation:pulse 1.2s ease-in-out infinite}
.information-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}.information-item{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}.information-label{font-size:12px;color:#77736b}.information-item strong{font-size:13px;font-weight:600;color:#494740;font-variant-numeric:tabular-nums}.refresh-button{min-height:36px;font-size:12px;padding:6px 10px;flex-shrink:0;border-color:#cfd9e0;border-radius:5px}.refresh-button svg{width:16px;height:16px}.refresh-button.is-loading svg{animation:rotate 1.2s linear infinite}
.search-field{position:relative;display:flex;align-items:center;width:min(360px,100%);margin-bottom:9px}.search-field>svg{position:absolute;left:15px;width:23px;height:23px;stroke:#7089a2;stroke-width:1.8;stroke-linecap:round;pointer-events:none}.search-field input{width:100%;height:44px;background:#fff;border:1px solid #9ca8b5;border-radius:3px;font-size:17px;color:#243e58;padding:11px 16px 11px 48px;appearance:none}.search-field input::placeholder{color:#7a8c9d}.search-field input:focus{border-color:#5d8eb9;background:#fff}
.tap-guide{font-size:12px;color:#77736b;margin:0 0 8px}.inventory-panel{background:#fff;border:0;border-radius:0}.table-viewport{position:relative;overflow:visible;border:1px solid #cfcfc5}.inventory-table{width:100%;min-width:0;border-collapse:separate;border-spacing:0;table-layout:fixed;font-variant-numeric:tabular-nums;color:#282724}.model-column{width:20%}.quantity-column{width:auto}
.inventory-table th,.inventory-table td{border-right:1px solid #e0dfd7;border-bottom:1px solid #e0dfd7}.inventory-table tr>*:last-child{border-right:0}.inventory-table tbody tr:last-child>*{border-bottom:0}
.inventory-table thead{position:sticky;top:0;z-index:5}.inventory-table thead th{background:#f6f5f0;color:#3b3a34;text-align:center;padding:4px 3px;font-size:14px;font-weight:600;line-height:1.3;height:25px;overflow-wrap:anywhere;word-break:normal;box-shadow:0 1px 0 #cfcfc5}.inventory-table thead th[rowspan]{height:50px}.inventory-table thead tr:nth-child(2) th{height:25px;font-size:13px;background:#edf4f9}.inventory-table thead th small{display:block;font-size:12px;font-weight:400;line-height:1.3}.inventory-table .model-header{text-align:center;padding-left:3px;background:#f4f1e8}.inventory-table .loaned-header{background:#fbf0dd}.inventory-table .repair-group{background:#e1edf6}
.inventory-table tbody th{padding:5px 6px;height:38px;background:#fff;background-image:linear-gradient(#ffffffb8,#ffffffb8);color:#282724;text-align:center;vertical-align:middle;font-size:14px;font-weight:600;line-height:1.35;overflow-wrap:anywhere;word-break:normal}.model-name{display:block;overflow-wrap:anywhere;letter-spacing:0}.model-base{display:block}.model-variant{display:block;font-size:max(11px,.92em);font-weight:500;line-height:1.3;color:#6d6a62}.inventory-table tbody td{padding:0;background:#fff;text-align:center;vertical-align:middle;height:38px}
.quantity-button,.quantity-static{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:37px;height:100%;padding:3px 1px;border:0;background:#fff;color:#282724;font-size:16px;font-weight:400;line-height:1.3;border-radius:0;box-sizing:border-box;touch-action:manipulation}.quantity-button{cursor:pointer}.quantity-static{cursor:default}.quantity-button:hover{box-shadow:inset 0 0 0 1px #679b8a}.quantity-button:active{box-shadow:inset 0 0 0 2px #467867}.quantity-button.is-positive,.quantity-button.is-positive[data-state=faulty]{font-weight:600;color:#294838;background:#e4f3e9}.quantity-static.is-zero{color:#77756e;background:#fff;font-weight:400}.quantity-static.is-empty{color:#77756e;background:#fff}.quantity-button.is-negative{background:#fff3ef;color:#ad4438;font-weight:600}.quantity-number{font-size:inherit;line-height:1.3}.quantity-label{display:none}
.quantity-button.has-note::after{content:"";position:absolute;top:1px;right:1px;width:0;height:0;border-left:5px solid transparent;border-top:5px solid #c48a35}.table-footnote{font-size:12px;color:#77736b;margin-top:8px;line-height:1.5}.reconnect-button{margin-top:12px}
.empty-results{text-align:center;padding:25px 15px;color:#4d5d6b}.empty-results strong{display:block;font-size:18px}
dialog{border:1px solid #cddbe8;border-radius:14px;width:min(640px,calc(100vw - 28px));max-height:calc(100dvh - 36px);padding:0;box-shadow:0 20px 80px #152c4630;color:#2c465e;background:#fff}
dialog[open]{display:flex;flex-direction:column}dialog::backdrop{background:#172e4a88;backdrop-filter:blur(2px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 22px 17px;border-bottom:1px solid #e0e8f0;flex-shrink:0}.dialog-heading h2{font-size:25px;line-height:1.45;overflow-wrap:anywhere;min-width:0}.icon-button{display:grid;place-items:center;border:1px solid #d2dfeb;background:#f8fafc;color:#536f8c;border-radius:8px;min-width:46px;width:46px;height:46px;padding:10px;flex-shrink:0}.icon-button:hover{background:#eaf1f8}
.detail-content,.settings-content{padding:20px 22px 24px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.dialog-footer{padding:14px 22px 19px;border-top:1px solid #dfe7ef;background:#f7f9fc;flex-shrink:0}.close-button{width:100%;min-height:56px;font-size:20px}
.detail-quantity{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 21px;background:#edf4fb;border:1px solid #d8e5f2;border-radius:10px;margin-bottom:25px}.detail-quantity-label{font-size:21px;font-weight:600;line-height:1.55;color:#456581}.detail-quantity-number{font-size:47px;line-height:1.2;font-weight:700;color:#315b44;white-space:nowrap;font-variant-numeric:tabular-nums}.detail-quantity-unit{font-size:19px;font-weight:400;margin-left:7px;color:#647e96}.detail-quantity.is-negative{background:#fff1eb;border-color:#efd3c8}.detail-quantity.is-negative .detail-quantity-number{color:#a64b39}
.detail-section{margin-top:25px}.detail-section>h3{font-size:19px;line-height:1.5;margin-bottom:13px;color:#3b3a34}.annotation-notice{background:#fff5df;border:1px solid #e8d5a9;border-radius:7px;padding:13px 15px;font-size:17px;color:#886324;line-height:1.8;margin-bottom:12px}.annotation-empty{font-size:17px;color:#73859a;background:#f7f9fb;border:1px solid #e4eaf1;border-radius:7px;padding:17px 16px;line-height:1.8}
.annotation-card{padding:17px 17px 18px;background:#fffbee;border:1px solid #e8dfc5;border-radius:8px;margin-bottom:13px}.annotation-meta{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:14px;color:#867b61;flex-wrap:wrap}.annotation-author{font-weight:600}.annotation-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:19px;line-height:1.85;color:#37362f}.annotation-replies{border-left:3px solid #d8cfb4;margin-top:19px;padding-left:14px}.annotation-reply+.annotation-reply{margin-top:21px}.annotation-reply .annotation-text{font-size:18px}.annotation-reply .annotation-meta{font-size:14px}
.past-annotations,.detail-checks{margin-top:16px;border:1px solid #dce4ed;border-radius:8px;background:#fafbfd}.past-annotations summary,.detail-checks summary{padding:13px 15px;min-height:49px;color:#65798f;font-size:17px;cursor:pointer;line-height:1.6}.past-annotations .past-content,.detail-checks .check-content{padding:0 14px 14px}.past-content .annotation-card{background:#f6f7f9;border-color:#dfe4ea}.past-content .annotation-text{color:#627287}.check-content p{font-size:16px;line-height:1.85;color:#687a8d;white-space:pre-wrap;overflow-wrap:anywhere}.check-content p+p{margin-top:13px}
.other-quantities{display:grid;grid-template-columns:1fr 1fr;gap:11px}.other-quantity-button{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:65px;padding:13px 14px;border:1px solid #d8e3ee;border-radius:8px;background:#f8fafc;color:#486782;text-align:left}.other-quantity-button:hover{background:#eaf2fa}.other-quantity-button.is-selected{border-color:#80a4c3;background:#eef5fb}.other-quantity-label{font-size:16px;line-height:1.5}.other-quantity-number{font-size:26px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}.detail-source-link,.source-link{display:inline-flex;align-items:center;min-height:46px;font-size:16px;color:#4f7497;text-decoration:underline;text-underline-offset:3px}.detail-source-link{margin-top:22px}
.setting-section{padding-bottom:23px;margin-bottom:23px;border-bottom:1px solid #e1e7ee}.setting-section h3{font-size:19px;margin-bottom:12px}.setting-note{font-size:16px;color:#70839a;line-height:1.8;margin-top:10px}.connection-status{display:inline-flex;align-items:center;gap:9px;color:#697f94;font-size:17px}.status-dot{width:8px;height:8px;border-radius:50%;background:#93a4b5}.connection-status[data-tone=success] .status-dot{background:#4a987b}.connection-status[data-tone=warning] .status-dot{background:#c39843}.connection-status[data-tone=busy] .status-dot{background:#6195c0;animation:pulse 1.2s ease-in-out infinite}.connection-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.checkbox-label{display:flex;align-items:center;gap:11px;min-height:51px;font-size:17px;color:#4e6882;cursor:pointer}.checkbox-label input{width:22px;height:22px;margin:0;accent-color:#316b9c;flex-shrink:0}.source-information{margin:0 0 9px}.source-information>div{display:flex;justify-content:space-between;gap:16px;padding:7px 0;font-size:16px}.source-information dt{color:#74869a}.source-information dd{margin:0;color:#49657f;font-variant-numeric:tabular-nums}
.source-notices{margin-top:16px;font-size:16px;color:#718399}.source-notices summary,.stocktake-panel>summary{min-height:50px;padding:11px 0;font-size:17px;color:#526c85;cursor:pointer}.source-notices ul{padding-left:23px;font-size:16px;line-height:1.9}.source-notices li+li{margin-top:10px}.stocktake-table{border-collapse:collapse;width:100%;margin-top:13px;table-layout:fixed;font-variant-numeric:tabular-nums}.stocktake-table th,.stocktake-table td{padding:10px 8px;font-size:16px;border-bottom:1px solid #e2e8ef;text-align:center}.stocktake-table th:first-child{width:46%;text-align:left}.stocktake-table tbody th{font-weight:500}.stocktake-table thead th{background:#f0f4f8;color:#5d748c}.stocktake-table .is-empty{color:#9aa8b6}.stocktake-table .is-negative{color:#aa5141}
.warning-entry{padding:16px 0;border-bottom:1px solid #e2e8ef}.warning-entry:last-child{border-bottom:0}.warning-entry h3{font-size:19px;line-height:1.6;margin-bottom:9px}.warning-entry p{font-size:17px;line-height:1.9;color:#6b7e92;white-space:pre-wrap;overflow-wrap:anywhere}.warning-entry a{display:inline-flex;align-items:center;min-height:46px;font-size:16px;margin-top:10px}
@keyframes pulse{0%,100%{opacity:.5}50%{opacity:1}}@keyframes rotate{to{transform:rotate(360deg)}}
@media(max-width:600px){
  .page-shell{padding:12px 6px 18px}.page-heading{margin-bottom:5px;padding:0}h1{font-size:18px}
  .information-bar{padding:0;margin-bottom:5px;gap:7px}.information-item{display:flex;gap:1px 7px}.information-label{font-size:11px;line-height:1.4}.information-item strong{font-size:12px;line-height:1.4}.refresh-button{font-size:11px;padding:5px 7px;min-height:32px;gap:4px}.refresh-button svg{width:14px;height:14px}
  .tap-guide{font-size:11px;margin-bottom:7px;padding:0}
  .model-column{width:22%}.inventory-table thead th,.inventory-table thead tr:nth-child(2) th{padding:4px 0;font-size:12px;line-height:1.3;word-break:break-all;overflow-wrap:anywhere}.inventory-table thead th small{font-size:11px;line-height:1.25;overflow-wrap:anywhere}.inventory-table .model-header{padding-left:0;font-size:12px}.inventory-table tbody th{padding:4px 3px;font-size:12px;line-height:1.3;height:40px}.inventory-table tbody td{height:40px}.quantity-button,.quantity-static{min-height:39px;padding:2px 0;font-size:15px}.quantity-button.has-note::after{border-left-width:4px;border-top-width:4px}
  .table-footnote{font-size:11px;padding:0 1px;margin-top:7px}.connection-card{padding:24px 18px;margin:20px 0}.connection-card h2{font-size:21px}.connection-description{font-size:16px;line-height:1.7}.connect-button{font-size:16px;min-height:48px}.connection-helper{font-size:14px}
  .notice-banner{font-size:16px;padding:14px;margin-bottom:17px}.notice-banner strong{font-size:17px}.preview-banner strong{font-size:15px}.preview-banner p{font-size:14px}
  dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:10px}.dialog-heading{padding:12px 14px;gap:10px}.dialog-heading h2{font-size:19px}.icon-button{width:40px;height:40px;min-width:40px}.detail-content,.settings-content{padding:14px}.dialog-footer{padding:10px 14px 12px}.close-button{min-height:44px;font-size:16px}
  .detail-quantity{padding:12px 14px;gap:10px;margin-bottom:16px}.detail-quantity-label{font-size:16px}.detail-quantity-number{font-size:30px}.detail-quantity-unit{font-size:15px}
  .detail-section{margin-top:16px}.detail-section>h3{font-size:16px}.annotation-text{font-size:16px;line-height:1.7}.annotation-card{padding:12px}.annotation-meta{font-size:12px;line-height:1.5}.annotation-reply .annotation-text{font-size:15px}.annotation-replies{padding-left:10px;margin-top:12px}.annotation-empty,.annotation-notice{font-size:15px;padding:12px}
  .other-quantities{gap:9px}.other-quantity-button{min-height:69px;padding:11px 10px;gap:6px}.other-quantity-label{font-size:15px}.other-quantity-number{font-size:25px}.detail-source-link{font-size:16px}
  .checkbox-label{font-size:16px}.source-information>div{font-size:15px}.source-information>div{flex-wrap:wrap;gap:3px 13px}.setting-section h3{font-size:19px}.setting-note{font-size:15px}
}
@media(max-width:349px){.page-shell{padding-left:4px;padding-right:4px}.inventory-table tbody th{font-size:11px;padding-left:3px;padding-right:3px}.quantity-button,.quantity-static{font-size:14px}.other-quantities{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
