.detail-info { background:white; border-radius:16px; padding:16px; margin-bottom:12px; box-shadow:0 2px 8px #00000009; }
.detail-info h2 { font-size:16px; margin-bottom:10px; }
.date-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.date-fields span { display:block; color:#777; font-size:13px; margin-bottom:6px; }
.date-fields strong { font-size:15px; }
.date-fields > div + div { border-left:1px solid #eee; padding-left:16px; }
.completed-date { color:#20823d; }
.memo-text { white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; line-height:1.6; }
.repair-legend { color:#475569; font-size:12px; line-height:1.5; margin-bottom:8px; }
.repair-office-table { width:100%; min-width:0; border-top:1px solid #b0b0b0; border-left:1px solid #b0b0b0; background:white; text-align:left; color:#1e293b; }
.repair-office-row { display:flex; min-height:48px; border-right:1px solid #b0b0b0; border-bottom:1px solid #b0b0b0; }
.repair-office-name { display:flex; min-width:0; flex:1; align-items:center; align-self:stretch; background:#f8fafc; padding:12px; font-size:15px; line-height:28px; font-weight:500; overflow-wrap:anywhere; }
.repair-office-name > div { min-width:0; }
.repair-office-values { display:flex; flex-shrink:0; flex-direction:column; align-self:stretch; border-left:1px solid #b0b0b0; text-align:center; font-size:15px; line-height:20px; font-weight:900; overflow-wrap:anywhere; }
.repair-office-value { display:flex; flex:1; align-items:center; justify-content:center; padding:12px 8px; }
.repair-office-value.template-value { white-space:nowrap; }
.repair-office-value.divided { border-top:1px solid #b0b0b0; }
.repair-token { position:relative; margin:0 1px; display:inline-block; white-space:nowrap; font-weight:400; }
.repair-token.marked { font-weight:800; }
.repair-token-circle { position:absolute; inset:0; border:1.6px solid #e53935; border-radius:999px; pointer-events:none; }
.repair-token-cross { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#e53935; font-size:15px; font-weight:900; pointer-events:none; }
.repair-time-badge { position:absolute; right:-6px; top:-8px; border-radius:4px; background:#2563eb; padding:0 4px; font-size:9px; line-height:12px; font-weight:800; color:white; }
.repair-manual-memo { margin-top:12px; border-radius:4px; background:#f8fafc; padding:12px; font-size:14px; }
.repair-manual-memo p:first-child { margin-bottom:4px; font-weight:600; }
.repair-manual-memo p:last-child { white-space:pre-wrap; overflow-wrap:anywhere; }
.repair-empty { padding:8px 0; font-size:14px; font-weight:400; color:#64748b; }
.detail-page .container { padding-bottom:150px; }
.detail-page .photo-container { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:600px; height:100px; min-height:100px; border-radius:24px 24px 0 0; padding:0; box-shadow:0 -4px 18px #00000029; z-index:100; display:flex; flex-direction:column; transition:height .26s cubic-bezier(.2,.75,.25,1); padding-bottom:env(safe-area-inset-bottom); }
.detail-page .photo-container.is-dragging { transition:none; user-select:none; -webkit-user-select:none; }
.photo-sheet-handle { flex-shrink:0; width:100%; min-height:76px; padding:12px 20px 16px; text-align:left; background:white; border:0; border-radius:24px 24px 0 0; font-size:17px; font-weight:800; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-tap-highlight-color:transparent; }
.is-dragging .photo-sheet-handle { cursor:grabbing; }
.photo-sheet-handle::before { content:''; display:block; width:42px; height:4px; border-radius:4px; background:#ddd; margin:0 auto 12px; }
.photo-sheet-handle span { color:#0064ff; font-size:14px; margin-left:8px; }
.photo-sheet-handle small { float:right; color:#777; }
.photo-scroll { overflow-y:auto; overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; padding:0 16px 24px; flex:1; min-height:0; }
.photo-item .photo-new { position:absolute; top:6px; right:6px; color:white; background:#ff4757; padding:3px 7px; border-radius:6px; font-size:10px; font-weight:900; }
.photo-item { min-width:0; min-height:0; }
.photo-item img { position:absolute; inset:0; }
.photo-grid > .empty-state, .photo-grid > .loading-state { grid-column:1/-1; }
.viewer-header { padding-top:env(safe-area-inset-top); height:calc(60px + env(safe-area-inset-top)); }
.viewer-image { touch-action:pinch-zoom; }
.page-tabs { display:flex; gap:8px; margin-bottom:16px; }
.page-tabs button, .process-toolbar button, .process-toolbar select { border:1px solid #d8dee8; border-radius:10px; padding:10px 12px; background:white; color:#0064ff; font-size:14px; }
.page-tabs button { flex:1; }
.page-tabs button[aria-selected=true] { background:#0064ff; color:white; border-color:#0064ff; }
.main-pages { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; align-items:flex-start; }
.main-page { flex:0 0 100%; min-width:0; scroll-snap-align:start; scroll-snap-stop:always; }
.search-box { min-width:0; }
.search-box input { min-width:0; width:100%; }
.process-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.process-toolbar h2 { flex-basis:100%; font-size:18px; }
.process-note { color:#777; font-size:13px; line-height:1.5; margin-bottom:14px; }
.process-date { font-size:14px; color:#0064ff; margin:16px 4px 2px; }
.process-name { font-size:13px; color:#777; margin-top:4px; }
.process-tags { display:flex; flex-wrap:wrap; gap:4px; margin-top:7px; }
.process-tag { padding:3px 7px; border:1px solid #bbb; border-radius:6px; color:#777; font-size:11px; }
.process-tag.done { color:var(--tag-color); border:2px solid var(--tag-color); background:#f5f7fa; font-weight:800; }
button:disabled { opacity:.5; cursor:wait; }
@media (prefers-reduced-motion:reduce) { .photo-container { transition:none!important; } }
