* { box-sizing: border-box; }
body { margin: 0; background: #f4f4f4; color: #1a1a1a; font: 400 15px/1.6 "Open Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; }
.progress-shell { max-width: 880px; margin: 0 auto; padding: 32px 24px 64px; }
.progress-heading { background: #4d4d4d; color: #fff; }
.progress-heading .progress-shell { padding: 28px 24px 32px; }
.progress-heading a { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-decoration: none; color: rgba(255,255,255,.8); }
.progress-heading p { font-weight: 300; color: rgba(255,255,255,.86); }
h1 { margin: 8px 0; font-size: 30px; font-weight: 600; letter-spacing: -.01em; }
h2 { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
#search-card h2 { font-size: 20px; }
p { margin: 8px 0; }
small { color: #5e5e5e; font-size: 13px; line-height: 1.5; font-weight: 400; }
.progress-card { padding: 28px; margin: 0 0 20px; border: 1px solid rgba(26,26,26,.12); border-radius: 10px; background: #fff; }
button, input, select { font: inherit; }
button { cursor: pointer; min-height: 44px; padding: 0 16px; border: 1px solid #8a8a8a; border-radius: 6px; background: #fff; color: #1a1a1a; }
button:disabled { cursor: wait; opacity: .6; }
.primary { color: #fff; background: #db0025; border-color: #db0025; margin-top: 20px; min-height: 48px; padding: 0 28px; font-size: 16px; font-weight: 600; }
input:not([type=radio]) { display: block; width: 100%; min-width: 0; height: 44px; border: 1px solid #8a8a8a; border-radius: 6px; padding: 0 12px; margin: 6px 0; font-size: 15px; font-weight: 400; color: #1a1a1a; background: #fff; }
.search-grid > label { font-size: 14px; font-weight: 600; }
.search-grid small { display: block; }
fieldset { border: 0; margin: 0 0 20px; padding: 0; }
legend { margin-bottom: 8px; }
.mode-options label { margin: 0 10px 10px 0; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid #8a8a8a; border-radius: 6px; font-size: 15px; cursor: pointer; }
.mode-options input { width: 18px; height: 18px; margin: 0; accent-color: #db0025; flex-shrink: 0; }
.search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
#search-error { color: #b00020; }
.number-row, .section-heading { display: flex; justify-content: space-between; gap: 20px; }
#number-label, #result-case { font-size: 13px; color: #5e5e5e; }
#number-label { font-weight: 600; }
#result-number { font-size: 28px; font-weight: 600; letter-spacing: .06em; overflow-wrap: anywhere; margin: 4px 0; }
.updated { background: #f4f4f4; padding: 12px 16px; border-radius: 8px; min-width: 180px; font-size: 13px; color: #5e5e5e; }
.updated strong { display: block; font-size: 15px; font-weight: 600; color: #1a1a1a; }
.current-state { background: #fdecef; border-left: 4px solid #db0025; border-radius: 6px; margin: 22px 0; padding: 18px 20px; }
.current-state small { color: #8a0018; font-weight: 600; letter-spacing: .06em; }
.current-state h2 { font-size: 24px; margin: 6px 0; }
.current-state p { color: #3d3d3d; }
.progress-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 0; gap: 8px; list-style: none; font-size: 12px; }
.progress-steps li { border-top: 5px solid #ddd; padding-top: 7px; overflow-wrap: anywhere; color: #777; }
.progress-steps li.evidenced { border-color: #555; color: #333; }
.progress-steps li.current { border-color: #df0030; color: #c00025; font-weight: bold; }
.timeline { list-style: none; margin: 0 0 0 6px; padding: 0; }
.timeline li { position: relative; padding: 0 0 24px 24px; border-left: 2px solid #ddd; }
.timeline li:last-child { padding-bottom: 0; border-color: transparent; }
.timeline li::before { content: ""; position: absolute; width: 10px; height: 10px; background: #fff; border: 2px solid #999; border-radius: 50%; left: -6px; top: 6px; }
.timeline li:first-child::before { background: #df0030; border-color: #df0030; }
.timeline strong { font-size: 16px; font-weight: 600; }
.timeline time { margin-left: 12px; font-size: 14px; font-variant-numeric: tabular-nums; color: #5e5e5e; white-space: nowrap; }
.timeline p { font-size: 15px; color: #3d3d3d; margin: 3px 0 0; }
.repair-details { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 12px 16px; }
.repair-details dt { color: #666; }
.repair-details dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
#pending-rma { color: #8a4f00; }
@media (max-width: 600px) {
    .progress-shell { padding: 22px 16px; }
    .progress-card { padding: 22px 18px; }
    .search-grid { grid-template-columns: 1fr; }
    .number-row { flex-direction: column; }
    .updated { align-self: flex-start; }
    .progress-steps { grid-auto-flow: row; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 8px; }
    .repair-details { grid-template-columns: 80px minmax(0,1fr); gap: 12px; }
    .timeline time { display: block; margin-left: 0; }
    #result-number { font-size: 23px; }
}
@media print {
    body { background: #fff; color: #000; }
    .progress-heading, #search-card, .result-actions { display: none !important; }
    .progress-shell { padding: 0; max-width: none; }
    .progress-card { break-inside: avoid; }
}
