:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: #272a2d; background: #f5f5f4; font-synthesis: none; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; }
:focus-visible { outline: 3px solid #7b96ad; outline-offset: 4px; }
.viewer { max-width: 1488px; margin: 0 auto; padding: 36px 40px 20px; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; }
h1 { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.subtitle { margin: 5px 0 0; font-size: 14px; color: #6b6e72; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 17px; border: 1px solid #d2d5d7; border-radius: 5px; background: #fff; color: #35383c; font-size: 13px; font-weight: 500; }
.button:hover { background: #ebedee; border-color: #bfc4c7; }
.text-button { font-size: 13px; color: #65696d; text-decoration: none; }
.text-button:hover { color: #25292c; text-decoration: underline; }
.text-button { padding: 8px 0 8px 12px; background: none; border: 0; }
.image-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; border-top: 1px solid #dddfe0; }
.status, .capture-time { margin: 0; font-size: 12px; line-height: 1.5; color: #65696d; }
.status { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #94999d; flex: 0 0 auto; }
.status[data-state="ready"] .status-dot { background: #5f806b; }
.status[data-state="stale"] .status-dot, .status[data-state="error"] .status-dot { background: #ad7b39; }
.capture-time { text-align: right; font-variant-numeric: tabular-nums; }
.capture-time > span { margin-right: 5px; color: #797d81; }
.frame { position: relative; width: 100%; aspect-ratio: 2688 / 1520; overflow: hidden; border: 1px solid #d7dadd; border-radius: 5px; background: #e9ebed; }
.frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; color: #707579; }
.empty strong { font-size: 16px; font-weight: 500; color: #43494d; }
.empty span { font-size: 13px; line-height: 1.5; }
.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; color: #73787c; font-size: 12px; }
.page-footer p { margin: 8px 0; }
.page-footer form { margin: 0; }
.login-layout { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 28px 20px; }
.login-panel { width: 100%; max-width: 360px; }
.login-panel h1 { font-size: 24px; }
.login-note { margin: 8px 0 30px; color: #6b6e72; font-size: 14px; line-height: 1.6; }
.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-form label { font-size: 13px; font-weight: 500; }
.code-input { width: 100%; height: 46px; padding: 10px 12px; border: 1px solid #cbd0d3; border-radius: 5px; background: #fff; color: #272a2d; font-size: 16px; }
.code-input:focus { border-color: #7b96ad; }
.login-submit { width: 100%; margin-top: 6px; background: #353b40; border-color: #353b40; color: #fff; height: 44px; font-size: 14px; }
.login-submit:hover { background: #23292e; border-color: #23292e; }
.login-error { color: #a23631; font-size: 13px; margin: 0 0 10px; line-height: 1.5; }
@media (max-width: 640px) {
  .viewer { padding: 24px 16px 16px; }
  .page-header { align-items: flex-start; gap: 16px; padding-bottom: 24px; }
  h1 { font-size: 21px; }
  .subtitle { font-size: 12px; }
  .button { min-height: 40px; padding: 9px 13px; }
  .image-meta { flex-direction: column; align-items: flex-start; gap: 5px; padding: 12px 0; }
  .capture-time { text-align: left; }
  .frame { border-radius: 3px; }
  .page-footer { font-size: 11px; }
}
