:root { color-scheme: light; font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
.viewer-body { background: #e6e8e8; min-height: 100vh; }
#app { width: min(100%, 480px); margin: 0 auto; min-height: 100vh; background: white; box-shadow: 0 0 30px #1d313522; }
.screen { position: relative; width: 100%; container-type: inline-size; overflow: hidden; }
.screen-image { display: block; width: 100%; height: auto; }
.value-overlay { position: absolute; display: flex; align-items: center; white-space: nowrap; overflow: hidden; line-height: 1; font-family: Arial, "Microsoft YaHei", sans-serif; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -0.025em; filter: blur(0.35px); pointer-events: none; }
.record-ring { position: absolute; z-index: 1; border-radius: 50%; background: conic-gradient(from -45deg, #f6cf83 var(--progress), #ffe2b7 0); }
.record-ring::after { content: ""; position: absolute; inset: 13.5%; border-radius: 50%; background: #fff; }
.record-value { z-index: 2; background: #fff; filter: blur(0.25px); }
@supports (-webkit-touch-callout: none) {
  .value-overlay { filter: none; }
}
.hotspot { position: absolute; z-index: 2; border: 0; background: transparent; padding: 0; cursor: pointer; touch-action: manipulation; }
.hotspot:focus-visible { outline: 3px solid #0aaf9b; outline-offset: -3px; border-radius: 8px; }
.load-error { padding: 3rem 1rem; text-align: center; line-height: 2; }
.load-error button { border: 0; background: #13a995; color: white; border-radius: 6px; padding: .5rem 1.2rem; font-size: 1rem; }

.admin-body { min-height: 100vh; color: #20302f; background: radial-gradient(circle at 85% 0%, #e7f4e9, transparent 34%), #f4f7f5; }
.admin-shell { width: min(100% - 36px, 980px); margin: 0 auto; padding: 64px 0 45px; }
.admin-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; }
.admin-header h1 { margin: 10px 0 9px; font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; letter-spacing: -.06em; }
.admin-header p:not(.eyebrow) { margin: 0; color: #70817d; }
.eyebrow { margin: 0; color: #0e9c86; font: 700 11px/1.2 Arial, sans-serif; letter-spacing: .22em; }
.preview-link { color: #0e8f7c; text-decoration: none; font-size: 14px; white-space: nowrap; padding: 9px 0; }
.admin-card { background: white; border: 1px solid #dfeae5; border-radius: 20px; padding: clamp(22px, 4vw, 42px); box-shadow: 0 18px 50px #244f3820; }
.card-heading { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid #e4ebe7; padding-bottom: 16px; margin-bottom: 24px; font-size: 17px; font-weight: 700; }
.card-heading.second { margin-top: 42px; }
.card-note { color: #90a09a; font-size: 12px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.form-grid label, .password-label { display: flex; flex-direction: column; gap: 9px; color: #536560; font-size: 13px; font-weight: 600; }
.form-grid input, .password-label input { width: 100%; padding: 14px 15px; border: 1px solid #dce7e1; border-radius: 10px; color: #1d302b; background: #fbfdfb; font: 500 18px/1.2 Arial, "Microsoft YaHei", sans-serif; outline: none; transition: border-color .2s, box-shadow .2s; }
.form-grid input:focus, .password-label input:focus { border-color: #15aa92; box-shadow: 0 0 0 3px #15aa921d; }
.password-label { max-width: 460px; }
.password-label input { font-size: 16px; }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 28px; min-height: 50px; }
.form-actions button { background: #0f9e88; color: white; border: 0; border-radius: 10px; padding: 15px 25px; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 7px 14px #0f9e882e; }
.form-actions button:hover { background: #0b876f; }
.form-actions button:disabled { opacity: .6; cursor: wait; }
#status { color: #4a7368; font-size: 13px; }
.admin-footer { color: #899993; font-size: 12px; margin-top: 20px; }
@media (max-width: 600px) { .admin-shell { padding-top: 35px; } .admin-header { align-items: start; flex-direction: column; } .form-grid { grid-template-columns: 1fr; } .form-actions { align-items: stretch; flex-direction: column; } }
