
:root{color-scheme:light;--bg:#f7f9f8;--panel:#fff;--ink:#23342c;--muted:#66766d;--line:#e6ece8;--green:#28634a;--soft:#edf5ef;--danger:#b63737;--shadow:0 14px 50px #16392a18;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #70b393;outline-offset:3px}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}p{margin:0;line-height:1.6}
.app-shell{max-width:560px;margin:auto;padding-top:max(env(safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px))}.compact-header{display:flex;align-items:center;justify-content:space-between;padding:8px 20px;border-bottom:1px solid var(--line);background:var(--panel)}.brand{font-size:23px;font-weight:750;letter-spacing:-1px;color:var(--ink);text-decoration:none}.brand span{color:var(--green)}.navigation{display:flex;gap:4px}.nav-item{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:var(--muted)}.nav-item.active{background:var(--soft);color:var(--green)}main{padding:12px 20px 95px;min-width:0}.preview-notice{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--muted);margin-bottom:18px}.preview-notice svg{width:14px;height:14px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:15px}h1{font-size:23px;letter-spacing:-.7px;margin:0;line-height:1.4}h1 span{font-size:16px;font-weight:500;color:var(--muted);margin-left:5px}.page-heading p{font-size:14px;color:var(--muted);margin-top:7px}.section-note{font-size:12px;color:var(--muted)}.list-tools{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}.tabs{display:flex;padding:3px;background:#eaf0ec;border-radius:10px;flex-shrink:0}.tabs button{font-size:14px;min-height:38px;padding:6px 12px;border-radius:8px;color:var(--muted)}.tabs .selected{background:var(--panel);color:var(--ink);font-weight:600;box-shadow:0 1px 4px #0001}.search{display:flex;align-items:center;gap:6px;min-width:0;max-width:190px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--muted)}.search svg{width:16px}.search input{border:0;background:none;color:var(--ink);width:100%;min-width:0;font-size:14px;padding:11px 0}.product-grid{background:var(--panel);border:1px solid var(--line);border-radius:15px;overflow:hidden}.product-card{display:flex;align-items:center;gap:12px;width:100%;padding:18px 14px;border-bottom:1px solid var(--line);text-align:left;min-height:85px}.product-card:last-child{border:0}.product-card:hover{background:var(--soft)}.product-icon{width:36px;height:40px;background:var(--soft);border-radius:10px;display:grid;place-items:center;color:var(--green);flex-shrink:0}.product-icon.blue{background:#eef2f8;color:#637e9f}.product-icon.pink{background:#f7eeee;color:#9d7878}.product-icon.sand{background:#f3f0e9;color:#8d8066}.product-icon svg{width:18px;height:18px}.product-copy{flex:1;min-width:0}.product-copy h3{margin:0 0 7px;font-size:15px;font-weight:600;line-height:1.5;overflow-wrap:anywhere;letter-spacing:-.2px}.product-next{font-size:13px;color:var(--muted);line-height:1.5}.remaining{font-size:12px;color:var(--green);background:var(--soft);border-radius:6px;padding:4px 6px;white-space:nowrap}.registration-bar{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:560px;background:var(--panel);border-top:1px solid var(--line);padding:12px 20px calc(12px + max(env(safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px)))}.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 18px;border-radius:12px;background:var(--green);color:#fff;font-size:15px;font-weight:600}.registration-bar .primary{width:100%}.primary:hover{filter:brightness(.94)}.empty{text-align:center;padding:35px 15px;color:var(--muted)}.empty h3{font-size:16px;color:var(--ink)}.empty p{font-size:14px;margin:10px 0 20px}.empty svg{width:30px;height:30px}.schedule-day{margin-bottom:24px}.schedule-day h2{font-size:15px;margin:0 0 10px}.schedule-group{display:grid;grid-template-columns:64px 1fr;gap:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:15px;margin-bottom:10px}.schedule-time{font-size:17px;font-weight:600}.schedule-time small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:6px}.schedule-item{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}.schedule-item:last-child{border:0}.schedule-item span{overflow-wrap:anywhere}.schedule-item small{white-space:nowrap;font-size:12px;color:var(--green)}.settings-panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:0 16px}.setting-row{padding:19px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px}.setting-row:last-child{border:0}.setting-row h2,.privacy-card h2,.danger-zone h2{font-size:15px;margin:0 0 6px}.setting-row p,.privacy-card p,.danger-zone p{font-size:13px;color:var(--muted)}.setting-row>strong{font-size:14px;white-space:nowrap}.badge{font-size:11px;font-weight:400;color:var(--green);margin-left:4px}.switch{width:50px;height:30px;background:#cfdad3;border-radius:18px;padding:3px;flex-shrink:0}.switch span{display:block;background:white;width:24px;height:24px;border-radius:50%;transition:transform .15s}.switch[aria-checked=true]{background:var(--green)}.switch[aria-checked=true] span{transform:translateX(20px)}.privacy-card{display:flex;gap:14px;padding:18px;background:var(--soft);border-radius:14px;margin-top:20px}.privacy-card>svg{color:var(--green)}.danger-zone{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:24px 0}.danger-text{min-height:44px;padding:10px;color:var(--danger);font-size:14px;font-weight:600;white-space:nowrap}.eyebrow{font-size:11px;letter-spacing:1px;color:var(--muted)}
dialog{width:min(520px,calc(100% - 32px));max-height:90dvh;border:1px solid var(--line);border-radius:24px;background:var(--panel);color:var(--ink);padding:24px 30px 30px;box-shadow:var(--shadow);overflow:auto}dialog::backdrop{background:#122b2859;backdrop-filter:blur(4px)}.sheet-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.icon-button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:var(--bg)}#sheet-title{font-size:25px;letter-spacing:-.8px;margin:8px 0 10px;overflow-wrap:anywhere}.sheet-description{font-size:14px;color:var(--muted);margin-bottom:25px}.form-field{display:flex;flex-direction:column;gap:9px;font-size:14px;font-weight:600;margin-bottom:20px}.form-field input{width:100%;min-width:0;min-height:50px;border:1px solid #cfdad3;border-radius:11px;padding:12px;color:var(--ink);background:var(--panel);font-size:16px;font-weight:400}.form-field:focus-within{color:var(--green)}.form-columns{display:grid;grid-template-columns:1.3fr 1fr;gap:14px}.field-hint{font-size:12px;font-weight:400;color:var(--muted);line-height:1.6}.form-error{color:var(--danger);font-size:14px;margin:10px 0;min-height:20px}.photo-placeholder{padding:16px;display:flex;gap:12px;border:1px dashed #c8d8ce;border-radius:12px;margin:5px 0 25px;color:var(--muted);font-size:13px;line-height:1.7}.photo-placeholder strong{display:block;color:var(--ink);font-size:14px}.sheet-actions{display:flex;gap:10px;margin-top:24px}.sheet-actions>*{flex:1}.secondary{min-height:48px;border-radius:12px;padding:12px;background:var(--soft);font-size:15px;font-weight:600;color:var(--green)}.danger-button{background:var(--danger);color:white}.summary-box{padding:18px;border-radius:12px;background:var(--soft);margin:20px 0}.summary-box dl{margin:0}.summary-box dl>div{display:flex;justify-content:space-between;gap:15px;font-size:14px;margin:10px 0}.summary-box dt{color:var(--muted);flex-shrink:0}.summary-box dd{margin:0;text-align:right;overflow-wrap:anywhere}.timeline{list-style:none;padding:0;margin:20px 0}.timeline li{position:relative;display:flex;align-items:center;gap:14px;min-height:51px}.timeline li::before{content:"";height:12px;width:12px;border:3px solid #b8d9c5;background:var(--panel);border-radius:50%;z-index:1;flex-shrink:0}.timeline li:not(:last-child)::after{content:"";position:absolute;top:30px;bottom:-20px;width:2px;background:var(--line);left:8px}.timeline li.past::before{background:#aac4b4;border-color:#aac4b4}.timeline li>span{font-size:14px;min-width:65px}.timeline time{font-size:14px;color:var(--muted);margin-left:auto}.detail-note{background:var(--bg);padding:12px 15px;border-radius:10px;font-size:13px;color:var(--muted)}#toast{position:fixed;bottom:35px;left:50%;transform:translateX(-50%);background:#1f3930;color:#fff;padding:14px 22px;max-width:calc(100% - 32px);width:max-content;border-radius:12px;font-size:14px;box-shadow:var(--shadow);z-index:20}body:has(dialog[open]){overflow:hidden}
#sheet-title{font-size:22px}.sheet-description{margin-bottom:18px}.sheet-top{margin-bottom:4px}.form-field{margin-bottom:16px}.photo-note{margin-top:12px}.form-error:empty{display:none}.timeline li{min-height:43px}.timeline time{font-size:13px}.summary-box{margin:16px 0;padding:12px 16px}.sheet-actions{position:sticky;bottom:-1px;background:var(--panel);padding-top:10px}dialog{max-height:calc(var(--tg-viewport-stable-height,100dvh) - 12px);padding:18px 22px 24px}#toast{bottom:85px}@media(max-width:600px){dialog{width:100%;max-width:560px;margin:auto auto 0;border-radius:22px 22px 0 0;padding-bottom:calc(22px + env(safe-area-inset-bottom))}}@media(max-width:360px){main{padding-left:14px;padding-right:14px}.compact-header{padding-left:14px;padding-right:14px}.tabs button{padding-left:9px;padding-right:9px}.search{padding-left:8px;padding-right:8px}.product-icon{display:none}.timeline time{font-size:12px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
:root[data-theme=dark]{color-scheme:dark;--bg:#17221c;--panel:#202d24;--ink:#edf5ef;--muted:#a4b8aa;--line:#34473a;--green:#a1d4b3;--soft:#2c4133;--danger:#ee9292;--shadow:0 14px 50px #0005}:root[data-theme=dark] .primary{background:#a1d4b3;color:#17271c}:root[data-theme=dark] .tabs{background:#293c30}:root[data-theme=dark] .danger-button{background:#ad4444;color:white}

.memo-button{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;color:var(--green);background:var(--soft);white-space:nowrap}
.note-record{padding:12px;margin:8px 0;background:var(--soft);border-radius:10px;font-size:14px}
.note-record small{color:var(--muted)}.note-record dl{margin:8px 0 0}.note-record dl>div{display:flex;gap:12px;margin:6px 0}.note-record dt{min-width:40px;color:var(--muted)}.note-record dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.form-field textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:16px;color:var(--ink);background:var(--panel);resize:vertical}
.timeline li.note-timeline{display:block}.timeline li.note-timeline::before,.timeline li.note-timeline::after{display:none}.timeline time{min-width:0}.timeline li{flex-wrap:wrap}
html:not([data-auth=ready]) .navigation,html:not([data-auth=ready]) .view,html:not([data-auth=ready]) #registration-bar{display:none!important}
.note-record{display:flex;align-items:flex-start;gap:12px}
.note-copy{min-width:0;flex:1}
.note-thumbnail{flex:none;width:72px;height:72px;overflow:hidden;border-radius:10px;background:var(--panel);border:1px solid var(--line);color:var(--muted);font-size:11px;display:grid;place-items:center}
.note-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}
.note-thumbnail.expanded{width:min(100%,320px);height:auto;aspect-ratio:1;align-self:center}
.note-thumbnail.expanded img{object-fit:contain}
