/* Supplied daily-review boards; scoped to the handwritten review flow. */
.dr-page-open .topbar,.dr-page-open #scroll-area,.dr-page-open .bottom-area,.dr-page-open #quick-nav,.dr-page-open #record-write,.dr-page-open #latest{display:none!important}
#daily-review-page{position:absolute;inset:0;background:#f7f7f7;z-index:40;display:flex;flex-direction:column;color:#202020;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",sans-serif}
#daily-review-page[hidden]{display:none}
#daily-review-page *,#dr-editor *,#dr-reminder *{box-sizing:border-box;scrollbar-width:none}
#daily-review-page ::-webkit-scrollbar,#dr-editor ::-webkit-scrollbar,#dr-reminder ::-webkit-scrollbar{display:none}
#daily-review-page button,#dr-editor button,#dr-reminder button{font-family:inherit;color:inherit;cursor:pointer;border:0;box-shadow:none}
#daily-review-page button:focus-visible,#dr-editor button:focus-visible,#dr-reminder button:focus-visible{outline:2px solid #626262;outline-offset:2px}
#daily-review-page svg,#dr-editor svg{width:22px;height:22px;stroke-width:1.8;flex:none}
.dr-header{height:calc(72px + env(safe-area-inset-top,0px));min-height:calc(72px + env(safe-area-inset-top,0px));display:flex;align-items:center;padding:env(safe-area-inset-top,0px) 8px 0 4px;gap:0}
.dr-header h1{font-size:20px;line-height:28px;font-weight:600;margin:0;flex:1;min-width:0}
.dr-icon{width:44px;min-width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0;background:transparent;border:0;border-radius:50%}
.dr-header>.dr-icon:first-child svg{width:24px;height:24px}
.dr-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 16px calc(40px + env(safe-area-inset-bottom,0px));scrollbar-width:none}
.dr-range-line{display:flex;align-items:center;gap:6px;height:36px;margin:-4px 0 10px;font-size:13px;color:#8a8a8a}
.dr-range-anchor{position:relative;z-index:2}
.dr-range{display:flex;align-items:center;height:44px;min-height:44px;padding:0;background:transparent;color:#202020!important}
.dr-range-pill{display:flex;align-items:center;gap:4px;height:32px;padding:0 10px 0 14px;border-radius:16px;background:#fff;font-size:14px;font-weight:600}
.dr-range svg{width:16px!important;height:16px!important;color:#8a8a8a}
.dr-range-menu{position:absolute;top:40px;left:0;width:224px;max-height:min(400px,55vh);overflow:auto;border-radius:20px;background:#fff;box-shadow:0 8px 28px #0000001f;padding:8px;z-index:4}
.dr-range-menu button{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:44px;padding:10px 12px;border-radius:12px;background:transparent;text-align:left;font-size:15px}
.dr-range-menu button[aria-checked=true]{background:#f2f2f2!important;font-weight:600}
.dr-range-menu small{font-size:13px;color:#8a8a8a}
.dr-row{display:flex;gap:16px;width:100%;margin-bottom:12px;padding:16px 20px;border-radius:24px;background:#fff;text-align:left;align-items:flex-start}
.dr-date{width:36px;flex:none;display:flex;flex-direction:column;align-items:center;text-align:center}
.dr-date small{font-size:12px;line-height:18px;color:#8a8a8a;white-space:nowrap}
.dr-date strong{font-size:24px;line-height:28px;font-weight:600;font-variant-numeric:tabular-nums}
.dr-excerpt{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.dr-excerpt>span{font-size:16px;line-height:24px;font-weight:400;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;white-space:pre-line}
.dr-excerpt time{font-size:12px;line-height:16px;color:#8a8a8a;font-variant-numeric:tabular-nums}
.dr-group{display:flex;align-items:baseline;justify-content:space-between;padding:12px 4px 14px;gap:12px}
.dr-group strong{font-size:18px;line-height:24px;font-weight:600}
.dr-group span{color:#8a8a8a;font-size:13px}
.dr-empty{color:#8a8a8a;font-size:15px;line-height:24px;text-align:center;margin:80px 16px;overflow-wrap:anywhere}
.dr-search{flex:1;min-width:0;height:44px;border-radius:22px;background:#fff;display:flex;align-items:center;gap:8px;padding:0 6px 0 14px;margin-right:8px}
.dr-search>svg{width:20px!important;height:20px!important;color:#8a8a8a}
#dr-query{flex:1;min-width:0;height:40px;border:0;background:none;font-size:16px;color:#202020;padding:0;outline:none;box-shadow:none}
#dr-query::-webkit-search-cancel-button{display:none}
.dr-search .dr-icon{min-width:32px;width:32px;height:32px;background:#f2f2f2}
.dr-search .dr-icon[hidden]{display:none}
.dr-search .dr-icon svg{width:14px!important;height:14px!important}
.dr-detail-title{flex:1;min-width:0}
.dr-detail-title h1{font-size:20px;line-height:28px;overflow-wrap:anywhere}
.dr-detail-title p{font-size:13px;line-height:18px;color:#8a8a8a;margin:0}
.dr-body{background:#fff;border-radius:24px;padding:20px;font-size:17px;line-height:30px;white-space:pre-wrap;overflow-wrap:anywhere}
.dr-more-anchor{position:relative}
.dr-more-menu{position:absolute;right:8px;top:44px;width:144px;padding:6px;border-radius:16px;background:#fff;box-shadow:0 8px 28px #0000001f;z-index:5}
.dr-more-menu button{display:flex;align-items:center;gap:10px;min-height:44px;width:100%;background:none;text-align:left;padding:0 12px;font-size:16px;border-radius:10px}
.dr-more-menu button:hover{background:#f2f2f2!important}
.dr-danger{color:#c92a2a!important}
#dr-editor{position:fixed;left:var(--dr-left,0px);right:auto;top:calc(var(--dr-top,0px) + var(--dr-vh,100dvh) - min(814px,var(--dr-vh,100dvh) - 60px));bottom:auto;width:var(--dr-width,100%);max-width:none!important;height:min(814px,calc(var(--dr-vh,100dvh) - 60px));max-height:none;padding:0 12px calc(12px + env(safe-area-inset-bottom,0px));margin:0;border:0;border-radius:28px 28px 0 0;background:#f0f1ee;color:#202020;overflow:hidden;box-shadow:none}
#dr-editor::backdrop,#dr-reminder::backdrop{background:#0006}
#dr-form{display:flex;flex-direction:column;height:100%;min-height:0;gap:10px}
#dr-editor .dr-handle{display:flex;align-items:center;justify-content:center;min-height:28px;height:28px;padding:0;background:transparent;flex:none;width:100%}
.dr-handle span{width:40px;height:5px;background:#c8cbc6;border-radius:3px}
.dr-writing-card{background:#fff;border-radius:24px;padding:16px 18px 8px;display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto}
.dr-writing-head{display:flex;align-items:center;gap:8px;min-height:66px;padding-bottom:14px;border-bottom:1px solid #ededed;flex:none}
.dr-writing-date{display:flex;flex-direction:column;align-items:flex-start;gap:0;flex:1;min-width:0}
.dr-writing-date strong{font-size:20px;line-height:28px;font-weight:600;white-space:nowrap}
#dr-editor #dr-time{display:block;min-height:28px;height:28px;padding:0 2px 0 0;background:transparent;color:#626262;font-size:14px;line-height:20px;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:left;border-radius:4px}
#dr-editor #dr-time[aria-expanded=true]{color:#202020;text-decoration:underline;text-underline-offset:4px}
.dr-tools{display:flex;gap:8px;flex:none}
#dr-editor .dr-tools .dr-icon{width:36px;min-width:36px;height:36px;min-height:36px;background:#f0f1ee;color:#626262}
#dr-editor .dr-tools .dr-icon[aria-expanded=true]{background:#202020;color:#fff}
#dr-editor .dr-tools svg{width:20px;height:20px}
#dr-text{flex:1;min-height:110px;width:100%;padding:10px 0 0;margin:0;border:0;outline:none;box-shadow:none;resize:none;background:transparent;color:#202020;font-size:17px;line-height:28px;border-radius:0;scrollbar-width:none}
#dr-text::placeholder{color:#7a7a7a;opacity:1}
.dr-error{color:#a13629;font-size:13px;line-height:20px;min-height:0;margin:0;flex:none}
.dr-error:not(:empty){margin-top:6px}
.dr-writing-actions{display:flex;gap:10px;flex:none}
#dr-editor .dr-writing-actions .dr-icon{width:56px;min-width:56px;height:56px;background:#e3e5e0;border-radius:18px}
#dr-editor .dr-writing-actions .dr-icon svg{width:26px;height:26px}
#dr-editor .dr-save{flex:1;height:56px;background:#111;color:#fff;border-radius:18px;font-size:17px;font-weight:600}
.dr-weather,.dr-mood{display:flex;gap:6px;padding-top:10px}
#dr-editor .dr-weather button,#dr-editor .dr-mood button{flex:1;min-width:0;height:60px;background:#f7f7f5;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:4px;flex-direction:column;font-size:12px;padding:0}
#dr-editor .dr-weather button[aria-pressed=true],#dr-editor .dr-mood button[aria-pressed=true]{background:#202020;color:#fff}
.dr-stepper{display:flex;justify-content:space-evenly;padding:10px 0}
.dr-stepper>div{text-align:center}
.dr-stepper small{font-size:12px;color:#626262}
.dr-stepper>div>div{display:flex;align-items:center}
.dr-stepper strong{font-size:22px;min-width:32px;font-variant-numeric:tabular-nums}
#dr-reminder{position:fixed;left:var(--dr-center,50vw);top:var(--dr-middle,50dvh);transform:translate(-50%,-50%);margin:0;width:314px;max-width:calc(100vw - 48px)!important;max-height:calc(100dvh - 32px);overflow:auto;border:0;border-radius:28px;background:#fff;color:#202020;padding:20px 20px 0;box-shadow:none}
.dr-reminder-head{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding-left:4px;gap:8px}
#dr-reminder h2{font-size:17px;line-height:24px;font-weight:600;margin:0}
#dr-reminder [role=switch]{width:48px;min-width:48px;height:44px;min-height:44px;border-radius:0;background:transparent;display:flex;align-items:center;padding:0}
#dr-reminder .dr-switch-track{width:48px;height:28px;border-radius:14px;background:#d0d0d0;display:flex;align-items:center;padding:2px}
#dr-reminder .dr-switch-track>span{width:24px;height:24px;border-radius:50%;background:#fff;transition:transform 140ms ease-out}
#dr-reminder [aria-checked=true] .dr-switch-track{background:#202020}
#dr-reminder [aria-checked=true] .dr-switch-track>span{transform:translateX(20px)}
.dr-wheels{position:relative;display:flex;align-items:center;height:240px;margin-top:12px;flex:none}
.dr-wheel-band{position:absolute;left:0;right:0;top:92px;height:56px;border-radius:14px;background:#f2f2f2}
.dr-wheel{flex:1;position:relative}
#dr-reminder .dr-wheel button{display:block;width:100%;height:46px;min-height:46px;padding:0;background:none;font-size:19px;font-variant-numeric:tabular-nums}
#dr-reminder .dr-wheel button[data-offset="0"]{height:56px;font-size:26px;font-weight:600}
#dr-reminder .dr-wheel button[data-offset="-2"],#dr-reminder .dr-wheel button[data-offset="2"]{color:#8a8a8a;font-size:17px}
.dr-colon{position:absolute;left:50%;transform:translateX(-50%);font-size:24px;font-weight:600}
.dr-wheels.is-disabled{opacity:.3}
#dr-reminder .dr-wheels.is-disabled button{cursor:default}
.dr-reminder-actions{display:flex;align-items:center;height:60px;margin-top:8px}
#dr-reminder .dr-reminder-actions button{flex:1;height:48px;background:none;font-size:17px;font-weight:600}
.dr-reminder-actions button+button{border-left:1px solid #e6e6e6!important;border-radius:0}
.dr-notification-note{font-size:11px;line-height:16px;color:#626262;margin:8px 0 0}
#toast{display:flex;align-items:center;justify-content:space-between;gap:20px;pointer-events:auto;z-index:1000;max-width:calc(100vw - 32px)}
#toast[hidden]{display:none!important}
#toast button{background:transparent;color:#fff;border:0;padding:8px;font-size:14px;font-weight:600;flex:none;text-decoration:underline;text-underline-offset:4px}
#utility .drawer-nav [data-drawer-page=diary]{gap:10px}
#utility .drawer-nav [data-drawer-page=diary] small{font-size:16px;line-height:24px;font-weight:400;color:#8a8f96;white-space:nowrap;margin-left:auto}
@media(min-width:761px){#daily-review-page{border-radius:inherit}}
@media(max-width:350px){.dr-writing-card{padding:12px}.dr-writing-date strong{font-size:18px}.dr-tools{gap:4px}.dr-row{padding:16px;gap:12px}.dr-detail-title h1{font-size:18px}}
@media(prefers-reduced-motion:reduce){#dr-reminder [role=switch] span{transition:none}}
