:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #666;
  --line: #d8d8d5;
  --paper: #f7f7f4;
  --green: #b7eb69;
  --blue: #aee8f0;
  --yellow: #fff19a;
  --pink: #ef476f;
  --shadow: 0 22px 60px rgba(31, 31, 28, .17);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font: 14px/1.45 Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
button { color: inherit; }
.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; }

.menu-bar { position: fixed; z-index: 50; inset: 0 0 auto; height: 44px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8e8e5; background: rgba(255,255,253,.92); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; color: #111; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-note { width: 18px; text-align: center; font-size: 16px; line-height: 1; }
.menu-right { display: flex; align-items: center; gap: 24px; font-size: 12px; }
.connection-status { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #efb13b; }
.status-dot.connected { background: #75bf30; box-shadow: 0 0 0 3px rgba(117,191,48,.14); }

.desktop { position: relative; min-height: 940px; padding-top: 44px; overflow: hidden; background-image: radial-gradient(#dadad5 .6px, transparent .6px); background-size: 18px 18px; }
.sticky-note { position: absolute; z-index: 4; width: 255px; min-height: 178px; padding: 19px 21px; border: 1px solid rgba(0,0,0,.1); box-shadow: 3px 5px 12px rgba(0,0,0,.07); font-size: 13px; }
.sticky-note strong { display: block; margin-bottom: 14px; font-size: 13px; }
.sticky-note ol { margin: 0; padding-left: 19px; line-height: 2; }
.sticky-note p { margin: 0 0 12px; line-height: 1.6; }
.sticky-note small { display: block; margin-top: 17px; font-size: 11px; }
.how-note { top: 76px; left: 28px; background: var(--yellow); transform: rotate(-.35deg); }
.notice-note { top: 275px; left: 130px; background: var(--blue); transform: rotate(.5deg); }

.record-stage { position: absolute; z-index: 1; top: 105px; left: 50%; width: 570px; height: 570px; transform: translateX(-50%); }
.specimen-object { position: absolute; inset: 18px; margin: 0; border-radius: 50%; background: #b8c7d9; box-shadow: 7px 25px 50px rgba(0,0,0,.24), 0 0 0 8px rgba(255,255,255,.7), 0 0 0 10px rgba(0,0,0,.12); overflow: hidden; }
.specimen-object img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.specimen-object figcaption { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: max-content; max-width: 88%; padding: 7px 10px; border: 1px solid rgba(255,255,255,.45); background: rgba(16,22,35,.76); color: white; font-size: 9px; letter-spacing: .08em; backdrop-filter: blur(5px); }
.specimen-object figcaption a { color: inherit; text-decoration: none; }

.app-window { position: absolute; z-index: 8; top: 90px; right: max(30px, calc((100vw - 1370px)/2)); width: min(520px, calc(100vw - 32px)); overflow: hidden; border: 1px solid #bcbcb9; border-radius: 10px; background: rgba(255,255,253,.96); box-shadow: var(--shadow); }
.window-bar { height: 38px; padding: 0 13px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); background: #efefec; font-size: 11px; }
.window-bar > span { justify-self: end; color: #777; }.window-bar > strong { font-weight: 600; }
.traffic-lights { display: flex; gap: 6px; }.traffic-lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f56; border: 1px solid rgba(0,0,0,.12); }.traffic-lights i:nth-child(2){background:#ffbd2e}.traffic-lights i:nth-child(3){background:#27c840}
#download-form { padding: 25px 27px 23px; }
#download-form h1 { margin: 0; font-size: 30px; letter-spacing: -.045em; line-height: 1.1; }
.window-intro { margin: 7px 0 21px; color: var(--muted); font-size: 12px; }
.url-field { height: 49px; display: flex; align-items: center; gap: 9px; padding: 0 7px 0 13px; border: 1px solid #c7c7c3; border-radius: 7px; background: white; box-shadow: inset 0 1px 2px rgba(0,0,0,.04); }
.url-field:focus-within { border-color: #6c9b36; box-shadow: 0 0 0 3px rgba(183,235,105,.28); }
.url-field input { flex: 1; min-width: 0; border: 0; outline: 0; color: #222; background: transparent; font-size: 12px; }
.url-field button { padding: 7px 10px; border: 1px solid #c4c4c0; border-radius: 5px; background: #f3f3f0; cursor: pointer; font-size: 11px; }
.field-error { min-height: 17px; margin: 5px 1px 0; color: #c22f3f; font-size: 11px; }
.options-title { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 9px; font-size: 12px; }.options-title span { color: #777; font-size: 10px; }
.format-grid { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.format-option { position: relative; min-height: 67px; padding: 12px 9px; border: 1px solid #d0d0cd; border-radius: 6px; background: #fafaf8; cursor: pointer; }
.format-option input { position: absolute; opacity: 0; }.format-option b { display: block; font-size: 13px; }.format-option small { display: block; margin-top: 6px; color: #888; font-size: 9px; }.format-option i { display: none; position: absolute; right: 7px; top: 7px; font-style: normal; font-size: 10px; }
.format-option.selected { border-color: #79a93c; background: #eff9df; }.format-option.selected i { display: block; color: #54831e; }
.option-line { min-height: 52px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e5e5e1; }
.format-grid + .option-line { margin-top: 18px; }.option-line strong { display: block; font-size: 12px; }.option-line small { display: block; margin-top: 3px; color: #888; font-size: 9px; }
.switch { position: relative; width: 35px; height: 20px; }.switch input { position: absolute; opacity: 0; }.switch span { position: absolute; inset: 0; border-radius: 20px; background: #ccc; cursor: pointer; }.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .18s; }.switch input:checked + span { background: #7eae42; }.switch input:checked + span::after { transform: translateX(15px); }
.segment-panel { border-bottom: 1px solid #e5e5e1; }.segment-panel.disabled { opacity: .4; pointer-events: none; }.time-fields { padding: 3px 0 12px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 9px; }.time-fields[hidden] { display: none; }.time-fields > span { padding-bottom: 8px; color: #777; }.time-fields label { color: #777; font-size: 9px; }.time-fields input { width: 100%; margin-top: 4px; padding: 8px; border: 1px solid #ccc; border-radius: 5px; background: white; color: #222; }
.save-location button { padding: 7px 10px; border: 1px solid #bcbcb8; border-radius: 5px; background: #f2f2ef; cursor: pointer; font-size: 10px; }.save-location button:hover { background: white; }.save-location button:disabled { cursor: not-allowed; opacity: .5; }
.responsibility-inline { margin: 13px 0 10px; color: #777; font-size: 9px; text-align: center; }
.download-button { width: 100%; height: 45px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #527e25; border-radius: 6px; background: var(--green); cursor: pointer; font-weight: 700; box-shadow: inset 0 1px rgba(255,255,255,.55); }.download-button:hover { background: #c5f47e; }
.progress-panel { padding: 30px 28px; }.progress-top { display: flex; justify-content: space-between; }.progress-top b { color: #619226; }.progress-track { height: 8px; margin: 16px 0 12px; overflow: hidden; border: 1px solid #bbb; border-radius: 2px; background: white; }.progress-track span { display: block; width: 0; height: 100%; background: var(--green); transition: width .3s; }.progress-panel p { color: #777; font-size: 11px; }.result-button,.retry-button{width:100%;margin-top:12px;padding:11px;border-radius:5px;cursor:pointer}.result-button{border:1px solid #527e25;background:var(--green)}.retry-button{border:1px solid #bbb;background:#eee}

@media (max-width: 1080px) {
  .desktop { min-height: 1050px; }
  .record-stage { left: 28%; }
  .how-note { left: 18px; top: 600px; }.notice-note { left: 150px; top: 750px; }
}
@media (max-width: 760px) {
  .menu-bar { padding: 0 11px; }.menu-right { gap: 10px; }.menu-right time { display: none; }.brand { font-size: 12px; }
  .desktop { min-height: 1130px; }
  .record-stage { top: 70px; left: 50%; width: 410px; height: 410px; opacity: .98; }.specimen-object { inset: 16px; }
  .app-window { top: 342px; left: 50%; right: auto; transform: translateX(-50%); width: calc(100% - 24px); }
  #download-form { padding: 21px 17px 19px; }.format-grid { grid-template-columns: 1fr 1fr; }.format-option { min-height: 61px; }
  .sticky-note { position: absolute; width: calc(50% - 18px); min-height: 150px; padding: 14px; font-size: 11px; }.sticky-note strong { margin-bottom: 9px; }.sticky-note small { margin-top: 9px; font-size: 9px; }.how-note { top: 975px; left: 10px; }.notice-note { top: 975px; left: auto; right: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto!important; transition: none!important; } }
