*{box-sizing:border-box} [hidden]{display:none!important} body{margin:0;background:#f8f7f2;color:#222e2c;font:16px/1.55 Roboto,sans-serif;word-break:keep-all}header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #dcded4}header b{font-size:19px}header span,.date{font-size:13px;color:#58675d}header button{padding:7px 13px;font-size:13px;min-height:36px}main{padding:20px;max-width:520px;margin:auto}h1{font-size:30px;letter-spacing:-1.4px;margin:5px 0 18px}.date{margin:8px 0}.hero,.primary{background:#255f4d;color:white;border:0}.hero{width:100%;min-height:190px;display:grid;justify-items:center;align-content:center;gap:4px;border-radius:21px}.hero strong{font-size:26px}.hero span{font-size:14px;color:#d6e9df}.duo{display:flex;gap:10px;margin:12px 0 20px}.duo>*{flex:1}button,input,textarea{font:inherit}button{font-weight:600;min-height:46px;padding:10px;border-radius:10px;border:1px solid #cad3c8;background:#fff;color:inherit}button:disabled{opacity:.48}details,.card{border:1px solid #d3dace;border-radius:13px;background:#fff;padding:15px;margin:14px 0}.primary,.quiet,.outline{width:100%;margin-top:12px}.quiet{background:transparent;border:0;color:#475b50}.card.selected{border:2px solid #347055}.card h3{margin:0;font-size:17px}.card p{white-space:pre-wrap}.card small{color:#526854}.card button{margin-top:8px}.card p:empty{display:none}label{display:block;color:#5a665d;font-size:14px;margin-top:16px}input,textarea{background:white;color:#263029;border:1px solid #bdcabb;border-radius:8px;width:100%;padding:10px}textarea{min-height:170px}canvas{width:100%;height:auto;touch-action:none}#status:not(:empty){padding:12px 15px;background:#e4eee5;border-radius:10px;margin:15px 0}summary{cursor:pointer}

#trial input[type=checkbox]{width:20px;height:20px;vertical-align:middle;accent-color:#255f4d}#trialSetup label{padding:6px 0;font-size:16px}

body{background:#fdfcf9;color:#282923;font-family:Roboto,"Noto Sans KR",sans-serif}:root{--tab-height:78px;--tile-size:min(calc((100vw - 52px)/2),234px,29dvh)}
header{background:#fff;border-color:#e1e1da;padding:20px 20px 14px;gap:12px}
header button{min-height:48px;flex-shrink:0}
#attachPhotoLabel{display:flex;align-items:center;gap:10px;min-height:48px;color:inherit}
#attachPhoto{width:20px;height:20px;accent-color:#292b26}
#scan .duo>button{width:auto;min-height:48px}
main{padding-bottom:calc(var(--tab-height) + 20px)}h1{font-size:28px}.primary,.hero{background:#292b26}.home-actions{position:fixed;bottom:var(--tab-height);left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(2,var(--tile-size));justify-content:center;gap:12px;width:min(100%,520px);padding:12px 20px;background:#fdfcf9}.tile,.tile.primary{width:100%;margin:0;aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border-radius:14px;font-size:20px}.tile svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#home{padding-bottom:calc(var(--tile-size) + 24px)}#recent,#recordRows{color:#65685f;font-size:14px;margin-top:22px}.record-row{width:100%;border:none;border-bottom:1px solid #e3e3dc;border-radius:0;text-align:left;background:transparent;padding:11px 2px}.record-row strong,.record-row small{display:block}.record-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-row small{font-size:12px;font-weight:400;color:#66695e}#tabs{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;background:white;border-top:1px solid #ddded6;height:var(--tab-height);padding:8px 12px 16px;align-items:center}#tabs button{width:min(33%,174px);border:0;background:transparent;color:#606258;font-size:14px;min-height:48px}#tabs button[aria-current=true]{color:#24261f;text-decoration:underline;text-underline-offset:6px}.transcript{white-space:pre-wrap;overflow-wrap:anywhere;font-size:17px;line-height:1.8}.duo>.primary{margin-top:0}#recordImage{max-width:100%}#voice:has(#stop:not([hidden])) #stop{position:fixed;bottom:calc(var(--tab-height) + 12px);left:calc(50% - var(--tile-size) - 6px);width:var(--tile-size);aspect-ratio:1;margin:0;border-radius:14px}#singleStatus{color:#476951}#status:not(:empty){position:relative}#home:not([hidden])~#status:not(:empty){position:fixed;bottom:calc(var(--tab-height) + var(--tile-size) + 24px);left:8%;right:8%;margin:0;z-index:2}

@media(max-height:450px){.home-actions{position:static;transform:none;width:100%;padding:12px 0}#home{padding-bottom:0}}

.edit-tools,.photo-tools,.dialog-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.edit-tools{margin:12px 0 8px}.edit-help{margin-bottom:4px}
.word-list,#recordBody{white-space:pre-wrap;line-height:1.7;overflow-wrap:anywhere}
.word-chip{display:inline-block;vertical-align:middle;max-width:100%;min-width:44px;min-height:44px;margin:3px 0;padding:7px 9px;border:1px solid #dedfd8;background:white;border-radius:8px;font-size:16px;font-weight:400;overflow-wrap:anywhere;line-height:1.4}
.word-chip:active{background:#e5ede7}
#wordDialog,#photoDialog{width:min(94vw,480px);max-height:88dvh;padding:18px;border:1px solid #d7d9d1;border-radius:14px;box-sizing:border-box;color:inherit;background:#fff}
dialog::backdrop{background:rgb(25 29 24 / .45)}dialog h2{margin:0 0 12px;font-size:20px}
#wordValue{font-size:20px;padding:12px}#wordError:empty{display:none}.dialog-actions,.photo-tools{justify-content:flex-end;margin:12px 0 0}
.dialog-actions .primary{width:auto;margin:0;min-width:74px}.dialog-actions button:first-child{margin-right:auto}
#photoDialog{width:min(96vw,720px);padding:12px}.photo-tools{margin:0 0 10px}
.photo-scroll{max-height:68dvh;overflow:auto;overscroll-behavior:contain}.photo-scroll img{display:block;width:100%;height:auto}.photo-scroll img.zoomed{width:200%;max-width:none}
#editPhoto,#scanPhoto,#recordPhoto{margin:4px 0 8px}

:root {
  --page: #f7f7f3;
  --line: #dce1d9;
  --accent: #345646;
  --muted: #5c665e;
}
body { background: var(--page); }
header { min-height: 68px; padding: 12px 20px; border-color: var(--line); }
#serviceName { font-size: 20px; letter-spacing: -.45px; }
header button { background: #f7f8f5; }
main { padding-top: 22px; }
.screen-heading { margin-bottom: 18px; }
.screen-heading h1 { margin: 0; font-size: 27px; line-height: 1.25; }
.screen-heading .date { margin: 6px 0; color: var(--muted); }
.record-list { min-width: 0; }
#recent, #recordRows { margin-top: 0; }
#recent, .record-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.list-empty { margin: 0; padding: 16px; color: var(--muted); }
.record-group { margin-bottom: 12px; }
.record-group h2 {
  margin: 0;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: #f1f4ef;
  color: var(--muted);
  font-size: 13px;
}
.record-row { display: block; min-height: 62px; padding: 10px 14px; color: #282923; }
.record-row:last-child { border-bottom: 0; }
.record-row strong { font-size: 15px; font-weight: 650; }
.record-row small { margin-top: 2px; }
.record-row:active { background: #e8efe9; }
.reading-panel {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.reading-panel h2 { margin: 0 0 8px; font-size: 15px; }
.reading-panel .transcript { margin: 0; }
#recordPhoto { margin: 0; }
.record-actions { display: flex; gap: 8px; margin-top: 18px; }
.record-actions button { flex: 1; margin: 0; }
.record-actions .subtle { background: transparent; }
.primary { background: var(--accent); }
.home-actions {
  background: var(--page);
  border-top: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
}
.tile, .tile.primary { font-size: clamp(15px, 4.7vw, 20px); }
#tabs { border-color: var(--line); gap: 4px; }
#tabs button[aria-current=true] {
  background: #e8efe9;
  color: #294938;
  text-decoration: none;
  font-weight: 700;
}
button:focus-visible, summary:focus-visible {
  outline: 3px solid #567b63;
  outline-offset: -3px;
}
@media (max-height: 450px) {
  .home-actions { border-top: 0; }
  #home:not([hidden])~#status:not(:empty) { position: static; margin: 12px 0; }
}
