:root{--bg:#fcf9f5;--paper:#fff;--ink:#262336;--muted:#7e7889;--stroke:#e8e1e8;--purple:#8562cb;--purple-soft:#f2ebfd;--rose:#cf668b;--rose-soft:#ffebf2;--gold:#cb9a4f;--blue:#688bbb;--success:#30836b;--panel:#f6f2f0;--shadow:0 12px 36px rgba(62,39,78,.065)}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;background:var(--bg)}body{margin:0;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",system-ui,sans-serif;font-size:15px;line-height:1.6}button,input,select,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.5}input,textarea,select{outline-color:var(--purple)}a{color:var(--purple)}.app{min-height:100dvh;max-width:730px;margin:auto;padding:env(safe-area-inset-top) 15px calc(50px + env(safe-area-inset-bottom))}.top{padding:28px 6px 20px}.top-kicker{color:#a184bf;font-size:11px;letter-spacing:3.2px;font-weight:900;margin-bottom:7px}.top-kicker span{color:#d7a851}.top-main{display:flex;align-items:center;justify-content:space-between;gap:14px}.top h1{margin:0;font-size:clamp(23px,6vw,33px);font-weight:900;letter-spacing:-.9px;line-height:1.35}.top h1 span{font-size:.87em}.sub{color:var(--muted);margin:7px 0 0;font-size:13px}.icon-btn{border:1px solid var(--stroke);background:white;border-radius:20px;min-width:48px;height:48px;box-shadow:var(--shadow);font-size:23px}.main{display:grid;gap:18px}.card{background:white;border:1px solid var(--stroke);border-radius:24px;padding:18px;box-shadow:var(--shadow)}.hero{background:linear-gradient(125deg,#f0e7fc,#ffedee 65%,#fff3df);border:1px solid #e7d6e8;border-radius:25px;padding:20px;display:grid;gap:11px}.hero h2{font-size:21px;line-height:1.35;margin:0}.hero p{margin:0;color:#716781;font-size:13px}.eyebrow{font-size:11px;color:#8d78b6;font-weight:900;letter-spacing:1.3px;text-transform:uppercase}.pill{display:inline-flex;align-items:center;gap:5px;padding:5px 11px;border-radius:40px;font-size:11px;font-weight:800;background:#eef8f2;color:#327c61;width:max-content}.pill.pending{background:#fff2d9;color:#a47825}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:11px}.bold{font-weight:800}.section-title{display:flex;justify-content:space-between;gap:9px;align-items:center;margin:2px 3px 11px}.section-title h2{margin:0;font-size:18px;letter-spacing:-.3px}.section-title p{margin:0;color:var(--muted);font-size:12px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:44px;padding:10px 18px;border-radius:14px;font-weight:800;border:1px solid var(--stroke);background:#fff;color:var(--ink);text-decoration:none}.btn.primary{background:linear-gradient(110deg,#9568d5,#be6cb4);color:#fff;border:0;box-shadow:0 4px 10px #a47bba36}.btn.light{background:#f5effb;color:#7853b4;border-color:#ecddfa}.btn.ghost{background:#fff;border-color:var(--stroke)}.btn.danger{color:#aa315a;border-color:#f5d9e4}.btn.compact{min-height:36px;font-size:12px;border-radius:11px;padding:6px 12px}.btn.block{width:100%}.btn:focus-visible,.tab:focus-visible,.option:focus-visible{outline:3px solid #bba1ea;outline-offset:2px}.stack{display:grid;gap:11px}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat{text-align:center;background:white;border:1px solid var(--stroke);border-radius:17px;padding:11px 5px}.stat b{display:block;font-size:23px;line-height:1.2;color:#694c9c}.stat span{font-size:10px;color:var(--muted);font-weight:700}.tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#eee9e8;border-radius:17px;padding:5px;gap:3px}.tab{padding:9px 3px;min-width:0;font-size:12px;font-weight:800;border-radius:13px;border:0;background:transparent;color:#756d79}.tab.active{background:#fff;color:var(--ink);box-shadow:0 2px 8px #5948631a}.filters{display:grid;grid-template-columns:1fr 1fr;gap:9px}.field{display:grid;gap:6px}.field label,.field-label{color:#655e72;font-weight:800;font-size:12px}.input,.select,.textarea{width:100%;border:1px solid #dcd4de;border-radius:13px;padding:11px 12px;background:#fff;color:var(--ink);min-height:45px}.textarea{min-height:75px;resize:vertical}.input:focus,.select:focus,.textarea:focus{border-color:#a07fc5;box-shadow:0 0 0 3px #a78cde22}.entry-card{background:white;border:1px solid var(--stroke);border-radius:19px;padding:14px 15px;display:grid;gap:12px;box-shadow:0 5px 18px #3e274b09}.entry-header{display:flex;align-items:flex-start;gap:10px}.entry-icon{display:grid;place-items:center;flex:none;width:46px;height:46px;font-size:25px;border-radius:14px;background:#f3eef9}.entry-body{flex:1;min-width:0}.entry-body h3{font-size:15px;margin:0;line-height:1.5;overflow-wrap:anywhere}.entry-body p{font-size:11px;color:var(--muted);margin:4px 0 0}.entry-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.tag{display:inline-flex;background:#f5f0f8;border-radius:40px;padding:3px 9px;font-size:11px;color:#80649b;font-weight:800}.score-bubble{display:flex;flex:none;align-items:baseline;gap:2px;min-width:48px;justify-content:end}.score-bubble strong{font-size:25px;color:#8f62b8;line-height:1}.score-bubble small{font-size:10px;color:var(--muted)}.rank{font-size:24px;width:36px;flex:none;text-align:center;color:#94769a;font-weight:900}.entry-footer{display:flex;align-items:center;justify-content:space-between;gap:7px;border-top:1px solid #f2ebf2;padding-top:10px}.note{font-size:12px;color:var(--muted);margin:0}.empty{padding:32px 17px;text-align:center;background:#fff;border:1px dashed #d9cadf;border-radius:20px}.empty .emoji{font-size:39px}.empty h3{margin:8px 0;font-size:17px}.empty p{color:var(--muted);font-size:13px;margin:0 0 15px}.trip-row{padding:14px;border:1px solid var(--stroke);border-radius:18px;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:11px}.trip-row h3{margin:0;font-size:15px;line-height:1.4}.trip-row p{font-size:11px;color:var(--muted);margin:3px 0 0}.leader{display:flex;align-items:center;gap:12px}.mini-avatar{width:37px;height:37px;border-radius:14px;background:#f1e9f8;display:grid;place-items:center;font-size:18px}.leader .names{font-size:13px;font-weight:800}.label-rows{display:grid;gap:8px}.explain{padding:13px;border-radius:14px;background:#f8f2fb;color:#6b507e;font-size:12px}.code{font-size:clamp(20px,6vw,29px);font-weight:900;letter-spacing:2px;color:#7550a8;text-align:center;background:#f7f1fc;border:1px dashed #c8aee0;border-radius:15px;padding:15px 5px;user-select:all;word-break:break-all}.line{height:1px;background:#ede6ed;margin:3px 0}.form-actions{display:flex;gap:8px;flex-wrap:wrap}.loader{animation:spin 1.2s linear infinite;font-size:31px;color:#a280bd}@keyframes spin{to{transform:rotate(360deg)}}.loading{text-align:center;padding:58px 5px;color:#937fa5}.loading p{font-size:13px}.footer{text-align:center;padding:25px 5px 10px;font-size:10px;color:#ae9fb3;display:grid;gap:3px}.modal-root:empty{display:none}.modal-root{position:fixed;inset:0;z-index:20;background:#24203398;display:flex;align-items:flex-end;justify-content:center;padding:12px 10px calc(10px + env(safe-area-inset-bottom))}.dialog{background:#fff;width:min(100%,590px);max-height:calc(100dvh - 42px);overflow:auto;overscroll-behavior:contain;border-radius:24px;padding:21px 19px;box-shadow:0 25px 70px #170e2560}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px}.dialog h2{font-size:20px;margin:0;line-height:1.35}.close{border:1px solid #e7dce8;border-radius:10px;width:34px;height:34px;background:#fff;font-size:20px;line-height:1}.dialog-form{display:grid;gap:13px}.rating-big{font-size:48px;font-weight:900;color:#7e58c2;text-align:center;line-height:1.1}.rating-range{width:100%;accent-color:#906cc3;height:36px}.range-markers{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.scores{display:grid;grid-template-columns:1fr 1fr;gap:9px}.score-card{text-align:center;padding:14px 5px;border-radius:17px;background:#f5effb}.score-card:nth-child(2){background:#fff0f4}.score-card b{font-size:32px;display:block}.score-card span{color:var(--muted);font-size:12px}.score-average{text-align:center;padding:20px;border:1px solid #f4deab;background:linear-gradient(130deg,#fff4d4,#fff9ea);border-radius:17px}.score-average b{font-size:39px;color:#b98024;line-height:1.2;display:block}.score-average span{font-weight:800;color:#ae8333;font-size:12px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,30px);z-index:50;width:min(calc(100% - 28px),500px);background:#322c3c;color:#fff;padding:12px 17px;border-radius:14px;opacity:0;pointer-events:none;transition:.2s;box-shadow:0 8px 30px #0003;text-align:center;font-size:13px}.toast.show{opacity:1;transform:translate(-50%,0)}.confetti{position:fixed;z-index:30;pointer-events:none;inset:0;overflow:hidden}.confetti i{position:absolute;top:-20px;width:9px;height:16px;animation:fall 2.5s ease-in forwards}@keyframes fall{to{transform:translateY(110vh) rotate(650deg);opacity:0}}.badge-gold{background:#fff0c6;color:#9b6b17}.paired{color:#317c67}.hidden{display:none!important}
@media(min-width:620px){.app{padding-left:23px;padding-right:23px}.top{padding-top:37px}.main{gap:21px}.modal-root{align-items:center}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
