:root{--ink:#243b31;--green:#214e42;--lime:#e2f09b;--cream:#f6f5ef;--line:#e1e4d9;--muted:#7a8276;--orange:#e39262;--white:#fffefb;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #bdcf70;outline-offset:4px}input,textarea{min-width:0}button,input,textarea{border-radius:9px}button{transition:background .18s,transform .18s}button:active:not(:disabled){transform:translateY(1px)}.site-header{height:94px;border-bottom:1px solid var(--line);max-width:1280px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 46px}.brand{display:flex;align-items:center;gap:11px;font-weight:850;font-size:27px;letter-spacing:-1px}.brand-mark{display:grid;place-items:center;background:var(--green);color:var(--lime);width:38px;height:38px;border-radius:12px;font-size:23px;transform:rotate(-5deg)}.brand-dot{color:#adbf58}.brand small{font-size:11px;letter-spacing:1px;color:var(--muted);font-weight:400;margin-left:16px}.button{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:15px 22px;font-weight:650;white-space:nowrap;font-size:14px;min-height:48px}.button-small{padding:10px 17px;min-height:42px;font-size:13px}.button-primary{background:var(--green);color:#fff}.button-primary:hover:not(:disabled){background:#316252}.button-outline{background:transparent;border-color:#cad1c2}.button-outline:hover:not(:disabled){background:#eaf0dc}.button-dark{background:#34463a;color:#fff}.text-button{border:0;background:transparent;padding:9px 4px;font-size:12px;white-space:nowrap}.text-button:hover{color:#53806a}.icon-button{background:transparent;border:1px solid var(--line);font-size:24px;line-height:1;width:36px;height:36px;flex-shrink:0}.help-dot{border:1px solid #aab1a2;border-radius:50%;width:18px;height:18px;background:none;padding:0;font-size:11px}.muted{color:var(--muted);font-size:13px;line-height:1.8;margin:10px 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}main{max-width:1188px;margin:auto;padding:0 0 24px}.intro{display:flex;align-items:center;justify-content:space-between;padding:42px 0 30px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;color:#7d866e;margin:0 0 13px;display:flex;align-items:center;gap:8px}.live-dot{height:6px;width:6px;background:#849a46;border-radius:100%}h1{font-size:38px;letter-spacing:-1.6px;line-height:1.3;margin:0;font-weight:750}.accent{color:#8c9f47}.intro-note{color:var(--muted);font-size:13px;margin:12px 0 0}.library-jump{display:flex;align-items:center;gap:16px;border-left:1px solid #d7dbcd;padding:2px 8px 2px 30px}.count-large{font-family:Georgia,serif;font-size:52px;line-height:1}.library-jump>span:last-child{font-size:11px;color:var(--muted);line-height:2}.library-jump b{font-weight:550;color:var(--green)}.play-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);gap:22px;align-items:stretch}.wheel-card{background:#eeefe4;border:1px solid #dfe3d3;border-radius:20px;padding:24px 30px 19px;overflow:hidden}.panel-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.section-label{font-size:13px;font-weight:650;letter-spacing:.5px}.section-label>span{margin-right:5px;font-size:18px}.pill{font-size:10px;border:1px solid #d5dcc6;border-radius:20px;padding:5px 10px;color:#737d60}.wheel-stage{position:relative;width:min(100%,420px);aspect-ratio:1;margin:18px auto 15px;display:grid;place-items:center}.wheel-halo{position:absolute;inset:0;border:1px dashed #c8d0b4;border-radius:100%}.wheel-halo:before,.wheel-halo:after{content:'✦';position:absolute;font-size:18px;color:#9ba976;top:25%;left:-2%}.wheel-halo:after{left:auto;right:-3%;top:71%;font-size:23px}.wheel{position:absolute;inset:15px;border-radius:100%;background:var(--green);border:7px solid var(--white);box-shadow:0 3px 0 #cbd3b5,0 12px 25px #45633d12;transform:rotate(0deg);will-change:transform}.wheel svg{width:100%;height:100%;display:block;border-radius:50%}.wheel-hub{position:relative;width:91px;height:91px;border:6px solid var(--white);background:var(--green);box-shadow:0 3px 12px #16302330;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;border-radius:50%;color:var(--lime)}.wheel-hub>span{font-size:21px;font-weight:750;letter-spacing:2px}.wheel-hub small{font-size:6px;letter-spacing:1.4px;color:#c5d6aa}.pointer{position:absolute;width:28px;height:38px;top:2px;left:calc(50% - 14px);background:var(--green);z-index:2;clip-path:polygon(8% 0,92% 0,100% 28%,50% 100%,0 28%);filter:drop-shadow(0 1px 1px #ffffff);border-radius:7px}.spin-actions{display:flex;gap:12px;max-width:520px;margin:0 auto}.spin-actions .button{flex:1;padding:15px 12px;min-width:0;font-size:15px}.button-caption{font-size:10px;font-weight:400;opacity:.7}.spin-icon{font-size:23px;line-height:.8}.wheel-note{text-align:center;font-size:10px;color:#7f876e;line-height:1.8;margin:14px 0 0;min-height:18px}.result-card{border:1px solid var(--line);background:var(--white);border-radius:20px;padding:26px;display:flex;flex-direction:column;overflow:hidden}.tiny-label{color:#929987;font-size:10px}.result-card .panel-top{padding-bottom:20px;border-bottom:1px solid #e8ebdf}.result-card #result{flex:1;min-height:310px;display:flex;flex-direction:column;justify-content:center}.empty-result{text-align:center;padding:24px 0}.plate{height:128px;width:128px;margin:0 auto 22px;border-radius:50%;border:1px solid #d9decd;background:repeating-radial-gradient(circle,#f6f6ed 0 42px,#e1e6d3 43px 44px,#f6f6ed 45px 54px,#e1e6d3 55px 56px,#f6f6ed 57px);display:grid;place-items:center;position:relative;transform:rotate(-10deg)}.plate span{font-size:42px;color:#90a26d;font-family:Georgia,serif}.plate:before{content:'';height:106px;width:5px;background:#8c9b73;border-radius:4px;position:absolute;left:-20px;top:9px;box-shadow:-7px 0 0 #8c9b73}.plate:after{content:'';height:106px;width:6px;background:#8c9b73;border-radius:4px;position:absolute;right:-20px;top:9px}.empty-result h3{font-size:22px;line-height:1.65;font-weight:650;margin:0 0 10px;letter-spacing:.5px}.empty-result p{font-size:11px;color:var(--muted);line-height:1.9;margin:0}.result-footer{display:flex;align-items:center;gap:14px;border-top:1px dashed #dfe4d3;padding-top:18px;margin-top:20px}.result-footer>span{font-size:29px;color:#a1ae79}.result-footer p{font-size:10px;line-height:1.9;color:#a0a68e;margin:0}.result-footer strong{font-weight:400;color:#7d866e}.result-label{color:#6d8350;font-size:11px;letter-spacing:2px;margin:24px 0 12px}.single-result{padding:10px 0}.winner-symbol{font-size:43px;line-height:1;color:#8a9b4e;margin:12px 0}.single-result h3{font-size:30px;line-height:1.5;margin:0 0 15px;overflow-wrap:anywhere;letter-spacing:-.5px}.result-chips{display:flex;gap:8px;flex-wrap:wrap}.result-chips span{font-size:10px;background:#f0f3e7;padding:6px 9px;border-radius:6px;color:#64724d}.result-quote{font-size:12px;margin:26px 0 10px;color:var(--muted);line-height:1.7}.ranking-title{font-size:23px;margin:6px 0 4px}.ranking-subtitle{font-size:10px;color:var(--muted);margin:0 0 16px;line-height:1.7}.rank-row{display:grid;grid-template-columns:29px 1fr auto;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #eef0e7}.rank-number{height:29px;width:29px;display:grid;place-items:center;border-radius:50%;background:#edf0e6;color:#819169;font-family:Georgia,serif;font-size:16px}.rank-row:first-of-type .rank-number{background:var(--green);color:var(--lime)}.rank-name{font-size:13px;font-weight:600;overflow-wrap:anywhere;line-height:1.6}.rank-bar{height:4px;margin-top:7px;border-radius:3px;background:#edf0e5;overflow:hidden}.rank-bar span{display:block;background:#9cad5c;height:100%;border-radius:3px}.rank-count{font-family:Georgia,serif;font-size:22px;white-space:nowrap}.rank-count small{font-size:10px;font-family:system-ui;color:var(--muted);margin-left:4px}.result-details{margin-top:14px;font-size:11px;align-self:flex-start}.loading-result{text-align:center}.loading-orbit{width:60px;height:60px;border:2px solid #e4e8d8;border-top-color:var(--green);border-radius:50%;margin:0 auto 23px;animation:orbit 1s linear infinite}.loading-result h3{font-size:20px;font-weight:600}.loading-result p{font-size:11px;color:var(--muted)}@keyframes orbit{to{transform:rotate(360deg)}}.library{padding-top:48px;scroll-margin-top:24px}.library-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.library-heading .eyebrow{font-size:9px;margin-bottom:10px;letter-spacing:2px}.library-heading h2{font-size:24px;margin:0;letter-spacing:-.5px}.library-heading h2 span{display:inline-grid;place-items:center;vertical-align:middle;font-size:10px;min-width:24px;height:24px;margin-left:5px;border-radius:100%;background:#e6ebd9;color:#6f7e4e}.library-heading .muted{font-size:11px}.library-tools{display:flex;gap:18px;align-items:center}.storage-note{display:flex;gap:14px;color:#969e89;font-size:10px;margin:12px 0}.storage-note>span:first-child{color:#7c8b66}.library-card{background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden}.add-form{display:flex;gap:12px;padding:20px;border-bottom:1px solid var(--line);background:#fafbf6;align-items:center}.name-add{flex:1}.name-add input{width:100%;padding:14px 15px;border:1px solid #dde2d1;background:white;font-size:13px}.weight-add{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);white-space:nowrap}.weight-add input{width:75px;padding:14px 7px;border:1px solid #dde2d1;background:white;text-align:center;font-size:13px}.table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:15px 24px;gap:12px}.search-box{display:flex;align-items:center;gap:9px;color:#8a927b}.search-box>span{font-size:24px}.search-box input{font-size:12px;border:0;outline-offset:2px;background:transparent;width:170px;padding:6px}.weight-tip{font-size:10px;color:#8f987f;display:flex;align-items:center;gap:7px}.table-head,.restaurant-row{display:grid;grid-template-columns:minmax(0,1fr) 125px 125px 65px 28px;gap:24px;align-items:center;padding:12px 24px}.table-head{background:#f4f6ec;font-size:10px;color:#8c957c}.restaurant-row{padding-top:12px;padding-bottom:12px;border-bottom:1px solid #f0f1ea;min-height:66px}.restaurant-name{display:flex;align-items:center;gap:12px;min-width:0}.color-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.name-edit{width:100%;border:1px solid transparent;background:transparent;padding:8px 6px;font-size:13px;color:var(--ink);text-overflow:ellipsis}.name-edit:hover{border-color:var(--line)}.row-weight{width:95px;padding:9px 9px;border:1px solid #e0e5d4;background:#fcfdf9;font-size:12px}.probability{color:#87946d;font-size:12px;font-variant-numeric:tabular-nums}.toggle{position:relative;width:34px;height:20px;border:0;border-radius:20px;background:#d8ddce;padding:0;min-height:20px}.toggle:after{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;background:white;border-radius:100%;transition:transform .15s}.toggle[aria-checked="true"]{background:var(--green)}.toggle[aria-checked="true"]:after{transform:translateX(14px)}.delete-button{background:transparent;border:0;color:#a8ad9d;font-size:21px;width:28px;height:32px;padding:0}.delete-button:hover{color:#b56142;background:#faeee5}.restaurant-row.disabled .name-edit{color:#a5ab9b}.restaurant-row.disabled .color-dot{background:#d1d6c8!important}.library-bottom{padding:14px 25px;display:flex;align-items:center;justify-content:space-between;color:#99a18b;font-size:10px}.danger-text{color:#9c8f80;font-size:10px}.empty-library{padding:40px 20px;text-align:center;color:var(--muted);font-size:13px}.page-footer{display:flex;gap:18px;align-items:center;font-size:10px;color:#949b85;padding:37px 0 0}.footer-brand{font-size:20px;color:var(--green);font-weight:750}.page-footer .text-button{margin-left:auto;font-size:10px}dialog{border:1px solid var(--line);border-radius:20px;padding:28px;max-width:560px;width:calc(100% - 32px);max-height:90dvh;overflow:auto;background:var(--white);color:var(--ink);box-shadow:0 30px 90px #1d362d28}dialog::backdrop{background:#1c332c62;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.dialog-heading h2{font-size:22px;line-height:1.5;margin:0}.dialog-heading .eyebrow{font-size:8px;margin-bottom:8px}.file-drop{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;border:1px dashed #b9c9a0;border-radius:10px;padding:20px;margin:20px 0;background:#f4f7eb;cursor:pointer;color:#5e7744;font-size:19px}.file-drop strong{font-size:13px;font-weight:550}.file-drop span{flex-basis:100%;text-align:center;font-size:10px;color:var(--muted)}.file-drop input{position:absolute;width:1px;height:1px;opacity:0}.file-drop:focus-within{outline:3px solid #bdcf70}.textarea-label{font-size:12px;display:block;margin:16px 0 9px}textarea{width:100%;padding:13px;border:1px solid #d4ddc5;background:#fff;font-size:13px;line-height:1.9;resize:vertical}.import-options{display:flex;gap:20px;flex-wrap:wrap;margin-top:15px;font-size:12px}.import-options label{display:flex;align-items:center;gap:5px}input[type=radio]{accent-color:var(--green)}.import-note{font-size:10px;color:var(--muted);line-height:1.8}.import-preview{background:#f2f5e9;border-radius:9px;padding:12px 14px;font-size:12px;line-height:1.9;color:#6d8051;max-height:160px;overflow:auto}.error-text{color:#ad5542;font-size:12px;line-height:1.7;margin:8px 0;white-space:pre-line}.error-text:empty{display:none}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.dialog-actions .button{font-size:13px;padding:11px 20px}.rules-copy{font-size:13px;line-height:2;color:#758169}.rules-copy p{margin:15px 0}.share-url{width:100%;padding:12px;border:1px solid var(--line);font-size:12px;background:#f5f7ee}.stats-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:20px}.stats-table th,.stats-table td{text-align:left;padding:12px 8px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.stats-table th{font-size:10px;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,12px);max-width:calc(100% - 32px);background:var(--green);color:#fff;padding:13px 21px;border-radius:10px;box-shadow:0 5px 30px #162e2c22;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:10;text-align:center;line-height:1.6}#toast.visible{opacity:1;transform:translate(-50%,0)}.sample-tag{display:inline-block;background:#eaf0dd;border-radius:4px;padding:3px 6px;margin-left:7px;font-size:9px;color:#849665}body.busy .library-card{opacity:.65}body.busy .library-tools{opacity:.6}
@media(min-width:1450px){main{max-width:1200px}.site-header{max-width:1292px}.wheel-stage{width:440px;margin-top:20px;margin-bottom:20px}}
@media(max-width:1260px){main{padding-left:36px;padding-right:36px}.site-header{padding-left:36px;padding-right:36px}.play-layout{grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr)}.wheel-card{padding:22px}.wheel-stage{width:385px}.library-tools{gap:12px}}
@media(max-width:900px){h1{font-size:31px}.brand small{display:none}.play-layout{grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr);gap:16px}.wheel-card{padding:20px 16px}.result-card{padding:21px}.wheel-stage{margin-top:22px;width:100%}.spin-actions .button{font-size:13px;gap:6px;padding:13px 8px}.button-caption{display:none}.wheel-note{font-size:9px}.result-card #result{min-height:260px}.library-heading{align-items:flex-start}.library-tools{flex-wrap:wrap;justify-content:flex-end;gap:6px 12px;max-width:230px}.table-head,.restaurant-row{grid-template-columns:minmax(0,1fr) 90px 70px 45px 26px;gap:14px}.row-weight{width:80px}.weight-tip{font-size:9px}.library-jump{padding-left:20px}.count-large{font-size:40px}}
@media(max-width:680px){.site-header{height:76px;padding:0 20px}.brand{font-size:25px}.brand-mark{width:34px;height:34px;font-size:21px}.site-header .button{font-size:11px;padding:9px 12px;min-height:38px}main{padding:0 16px 20px}.intro{padding:30px 4px 23px}.intro .eyebrow{font-size:9px;letter-spacing:1px;margin-bottom:11px}h1{font-size:27px;letter-spacing:-1px}.intro-note{font-size:11px;margin-top:10px}.library-jump{display:none}.play-layout{display:flex;flex-direction:column;gap:16px}.wheel-card{border-radius:16px;padding:21px 18px 17px}.wheel-stage{max-width:380px;width:100%;margin:18px auto 16px}.wheel-hub{width:84px;height:84px}.wheel-hub>span{font-size:19px}.pointer{top:4px;width:25px;left:calc(50% - 12.5px);height:35px}.spin-actions .button{font-size:14px;min-height:49px}.button-caption{display:inline;font-size:9px}.wheel-note{font-size:9px;margin-top:12px}.section-label{font-size:12px}.result-card{padding:21px 23px;border-radius:16px}.result-card #result{min-height:210px}.result-card .panel-top{padding-bottom:15px}.empty-result{display:grid;grid-template-columns:95px 1fr;column-gap:28px;align-items:center;text-align:left;padding:24px 6px}.plate{grid-row:span 2;width:84px;height:84px;margin:0 0 0 6px;background:repeating-radial-gradient(circle,#f6f6ed 0 27px,#e1e6d3 28px 29px,#f6f6ed 30px 36px,#e1e6d3 37px 38px,#f6f6ed 39px)}.plate:before,.plate:after{height:70px;top:6px}.plate:before{left:-12px;width:3px;box-shadow:-5px 0 0 #8c9b73}.plate:after{right:-12px;width:4px}.plate span{font-size:33px}.empty-result h3{font-size:18px;align-self:end;margin-bottom:8px;line-height:1.6}.empty-result p{font-size:10px;align-self:start}.result-footer{margin-top:8px;padding-top:13px}.result-footer p br{display:none}.result-footer p strong{margin-left:7px}.result-footer>span{font-size:24px}.result-footer p{font-size:9px}.single-result{padding:12px 4px}.winner-symbol{float:right;font-size:45px;margin:20px 10px}.result-label{margin-top:8px}.single-result h3{font-size:27px;margin-bottom:10px}.result-quote{margin-top:18px;font-size:11px}.ranking-title{font-size:22px}.rank-row{padding:12px 0}.library{padding-top:35px}.library-heading{display:block;padding:0 4px}.library-heading h2{font-size:23px}.library-heading .muted{font-size:10px}.library-tools{justify-content:flex-start;max-width:none;gap:14px;margin-top:16px}.library-tools .button{margin-left:auto;font-size:11px;min-height:36px;padding:8px 11px}.library-tools .text-button{font-size:10px}.storage-note{flex-direction:column;gap:5px;font-size:9px;padding:0 4px;margin:14px 0}.add-form{gap:8px;padding:14px;flex-wrap:wrap}.name-add{flex-basis:100%}.name-add input{font-size:12px;padding:12px}.weight-add{font-size:11px;flex:1}.weight-add input{width:70px;padding:10px}.add-form>.button{min-height:40px;padding:10px 20px;font-size:12px}.table-toolbar{padding:12px 14px}.search-box input{width:130px;font-size:11px}.weight-tip{font-size:0;gap:0}.weight-tip .help-dot{font-size:11px;width:22px;height:22px}.table-head,.restaurant-row{grid-template-columns:minmax(0,1fr) 62px 52px 33px 23px;gap:7px;padding-left:12px;padding-right:12px}.table-head{font-size:9px}.restaurant-name{gap:4px}.color-dot{width:6px;height:6px}.name-edit{font-size:11px;padding:8px 3px}.row-weight{width:60px;padding:9px 4px;font-size:11px}.probability{font-size:10px}.toggle{width:30px;height:19px}.toggle:after{width:13px;height:13px}.toggle[aria-checked=true]:after{transform:translateX(11px)}.delete-button{font-size:19px;width:23px}.library-bottom{padding:12px 15px;font-size:9px}.restaurant-row{min-height:60px}.page-footer{padding-top:27px;font-size:9px;gap:11px}.page-footer .text-button{font-size:9px}.footer-brand{font-size:18px}dialog{padding:22px;max-height:92dvh}.dialog-heading h2{font-size:19px}.dialog-heading .eyebrow{font-size:7px}.import-options{font-size:11px;gap:15px}.muted{font-size:12px}.file-drop{padding:17px 8px}#toast{bottom:20px}.stats-table td,.stats-table th{padding:10px 5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
#settlement-dialog{max-width:760px;padding:0;overflow:auto;border:5px solid #fffdf6;background:#fffef9;border-radius:25px;box-shadow:0 26px 100px #17382d50}
#settlement-dialog[open]{display:grid;grid-template-columns:280px 1fr;animation:settlement-enter .42s cubic-bezier(.22,1,.36,1) both}
#settlement-dialog[open]::backdrop{animation:settlement-backdrop-in .35s ease-out both}
#settlement-dialog[open].settlement-leaving{pointer-events:none;animation:settlement-leave .22s ease-in both}
#settlement-dialog[open].settlement-leaving::backdrop{animation:settlement-backdrop-out .22s ease-in both}
.settlement-close{position:absolute;right:16px;top:16px;z-index:4;background:#fffef8ba;border:0;color:#8b957d}
.settlement-art{position:relative;background:var(--green);min-height:450px;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:30px 12px 28px;border-radius:19px 0 0 19px}
.settlement-art:before{content:'BON APPÉTIT';position:absolute;top:34px;left:0;right:0;text-align:center;color:#c2d798;font-size:11px;letter-spacing:4px}
.settlement-halo{position:absolute;width:280px;height:280px;top:90px;background:radial-gradient(circle,#759c5c55 0 50%,#7ea86526 50% 65%,transparent 65%);border:1px dashed #b8cd7540;border-radius:100%;animation:settlement-halo 18s linear infinite}
.settlement-girl{position:relative;width:240px;max-width:100%;height:320px;object-fit:contain;z-index:1;filter:drop-shadow(0 9px 3px #082c2520);transform-origin:center bottom}
#settlement-dialog[open] .settlement-girl{animation:settlement-cheer .7s cubic-bezier(.33,0,.25,1) both}
#settlement-character-line{position:relative;color:#d7e8b3;font-size:11px;text-align:center;line-height:1.8;margin:10px 0 0;z-index:2}
.settlement-spark{position:absolute;color:#e1eda1;font-size:29px;z-index:2;animation:settlement-twinkle 2.4s infinite ease-in-out}
.spark-one{top:100px;left:25px}.spark-two{top:74px;right:30px;font-size:22px;animation-delay:.5s}.spark-three{bottom:90px;right:20px;font-size:22px;animation-delay:1.2s}
.settlement-content{padding:48px 30px 26px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.settlement-content>.eyebrow{font-size:9px;letter-spacing:1.4px;margin-bottom:12px}
.settlement-content>h2{font-size:25px;margin:0;letter-spacing:-.5px;line-height:1.6}
#settlement-result{margin-top:12px}
#settlement-result .result-label{display:none}#settlement-result .winner-symbol{display:none}#settlement-result .single-result h3{font-size:32px;color:var(--green);margin:7px 0 17px}#settlement-result .single-result{padding:20px 0 4px;border-top:1px dashed #ccd4ba}#settlement-result .result-quote{margin:24px 0 12px;font-size:11px}#settlement-result .ranking-title{display:none}#settlement-result .ranking-subtitle{font-size:9px;margin-top:5px}#settlement-result .rank-row{opacity:0;animation:rank-reveal .5s cubic-bezier(.16,.7,.26,1) both}#settlement-result .rank-row:nth-child(1){animation-delay:.2s}#settlement-result .rank-row:nth-child(2){animation-delay:.43s}#settlement-result .rank-row:nth-child(3){animation-delay:.66s}#settlement-result .rank-name{font-size:14px}#settlement-result .rank-row:first-child .rank-number{box-shadow:0 0 0 4px #e2ebcb}#settlement-result .result-details{font-size:10px}
.settlement-actions{display:flex;flex-direction:column;align-items:stretch;border-top:1px dashed #dbe2ce;padding-top:20px;gap:8px;margin-top:8px}.settlement-actions>.button{font-size:13px;min-height:45px;padding:12px 14px}.settlement-actions .text-button{font-size:11px;color:#879171}
@keyframes settlement-enter{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes settlement-leave{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(5px) scale(.99)}}
@keyframes settlement-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes settlement-backdrop-out{from{opacity:1}to{opacity:0}}
@keyframes settlement-cheer{0%{transform:translateY(4px) rotate(-.7deg) scale(1.005,.995)}45%{transform:translateY(-1px) rotate(.3deg) scale(.999,1.001)}100%{transform:translateY(0) rotate(0) scale(1)}}
@keyframes settlement-twinkle{0%,100%{opacity:.45;transform:scale(.85) rotate(-8deg)}50%{opacity:1;transform:scale(1.08) rotate(8deg)}}
@keyframes settlement-halo{to{transform:rotate(360deg)}}
@keyframes rank-reveal{from{opacity:0;transform:translateX(15px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:680px){#settlement-dialog{max-width:400px;border-width:4px;width:calc(100% - 32px)}#settlement-dialog[open]{display:flex;flex-direction:column}.settlement-art{min-height:175px;height:175px;display:block;border-radius:18px 18px 0 0;padding:0;overflow:hidden}.settlement-girl{position:absolute;right:8px;bottom:-50px;height:220px;width:170px}.settlement-art:before{top:36px;left:25px;right:auto;font-size:9px;letter-spacing:2px}.settlement-halo{width:210px;height:210px;top:-8px;right:-3px}.spark-one{top:63px;left:25px;font-size:27px}.spark-two{top:14px;right:22px;font-size:19px}.spark-three{bottom:17px;right:168px;font-size:18px}#settlement-character-line{position:absolute;left:25px;bottom:24px;max-width:130px;font-size:11px;text-align:left}.settlement-content{padding:25px 23px 17px}.settlement-content>h2{font-size:23px}.settlement-content>.eyebrow{font-size:8px;margin-bottom:8px}.settlement-close{background:#fffef8dc;right:12px;top:12px;width:29px;height:29px;font-size:21px}#settlement-result{margin-top:8px}#settlement-result .single-result{padding-top:12px}#settlement-result .single-result h3{font-size:27px;margin:4px 0 12px}#settlement-result .result-quote{font-size:10px;margin:16px 0 6px}.settlement-actions{padding-top:15px;margin-top:7px;gap:5px}#settlement-result .rank-row{padding:10px 0}#settlement-result .ranking-subtitle{font-size:8px;margin:0 0 8px}#settlement-result .rank-name{font-size:12px}#settlement-result .rank-count{font-size:21px}#settlement-result .result-details{font-size:10px;margin-top:9px}.settlement-hundred .settlement-art{min-height:140px;height:140px}.settlement-hundred .settlement-girl{height:195px;width:155px;bottom:-52px}.settlement-hundred .settlement-content{padding-top:20px}}
@media(prefers-reduced-motion:reduce){#settlement-dialog[open],#settlement-dialog[open]::backdrop,#settlement-dialog[open] .settlement-girl,#settlement-result .rank-row{animation:none;opacity:1}.settlement-spark,.settlement-halo{animation:none}}
.restaurant-name-details{min-width:0;flex:1}.restaurant-meta{display:block;font-size:10px;color:#89967b;padding:0 6px 4px;line-height:1.5}.restaurant-meta:empty{display:none}.library-tools{gap:12px;flex-wrap:wrap;justify-content:flex-end}.library-bottom>div{display:flex;align-items:center;gap:18px}.library-bottom #restore-defaults{font-size:10px;color:#6c7b50}.recommendation-note{background:#f1f4e7;border-radius:9px;padding:12px 14px;font-size:11px;line-height:1.85;color:#7a8667}.recommendation-item{padding:17px 0;border-bottom:1px solid var(--line)}.recommendation-item h3{margin:0 0 6px;font-size:15px}.recommendation-item p{font-size:11px;line-height:1.8;margin:5px 0;color:#7c886c}.recommendation-sources{display:flex;gap:12px;flex-wrap:wrap;margin-top:7px}.recommendation-sources a{font-size:10px;color:#537847;border-bottom:1px dotted #8ca27b;padding:3px 0}.recommendation-sources a:hover{color:var(--green)}
.recommendation-search{width:100%;margin-top:14px;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:var(--cream);font:inherit;font-size:12px}.recommendation-section>h3{font-size:16px;color:var(--green);margin:24px 0 5px}.recommendation-section>.muted{margin-top:0;font-size:11px}.recommendation-item summary{cursor:pointer;font-size:13px;line-height:1.7}.recommendation-item summary span{display:block;font-size:11px;color:#7c886c;margin:3px 0 0 16px}.recommendation-item[open] summary{margin-bottom:10px}.recommendation-guide [hidden]{display:none}
@media(max-width:900px){.library-tools{max-width:270px;gap:4px 12px}.restaurant-meta{font-size:9px}}
@media(max-width:680px){.library-tools{max-width:none;gap:6px 12px}.restaurant-meta{font-size:8px;padding:0 3px 3px}.library-bottom{align-items:flex-start;gap:10px}.library-bottom>div{gap:8px;flex-wrap:wrap;justify-content:flex-end}.library-bottom #restore-defaults{font-size:9px}.library-heading .muted{line-height:1.8;max-width:300px}}

.restaurant-preferences{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:0 6px 3px}.favorite-button{border:1px solid #dde4d3;background:#fafcf5;color:#83916c;padding:4px 7px;font-size:10px;min-height:28px;line-height:1.4}.favorite-button[aria-pressed="true"]{background:#eef3d9;color:#62753d;border-color:#cddba4}.favorite-row{background:#fcfdf7}.not-wanted-tag{font-size:9px;color:#98775b;line-height:1.5}.excluded-tools{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid var(--line);background:#f8faf2}.excluded-tools p{margin:0;color:#899477;font-size:11px;line-height:1.7}.excluded-tools .button{font-size:11px;min-height:38px;padding:9px 12px}.result-restaurant-meta{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:11px;color:#7b8869;line-height:1.65;margin:7px 0 12px}.result-restaurant-meta span+span{color:#87936e}.rank-detail{min-width:0}.rank-name{overflow-wrap:anywhere}.rank-detail .result-restaurant-meta{font-size:10px;margin:4px 0 7px;gap:2px 8px}.result-exclude{margin-top:12px;padding:7px 11px;min-height:34px;border:1px solid #d6ddc9;background:#fafcf5;color:#7c8c65;font-size:11px;white-space:normal;text-align:left;line-height:1.5}.result-exclude:hover{background:#edf2df}.result-exclude[aria-pressed="true"]{border-style:dashed;color:#997a59;background:#faf7ed}.rank-detail .result-exclude{font-size:10px;padding:5px 8px;margin-top:9px;min-height:31px}.result-exclusion-note,.settlement-exclusion-note{font-size:11px;color:#9c7a55;line-height:1.8;margin:12px 0 0}.result-exclusion-note:empty,.settlement-exclusion-note:empty{display:none}#settlement-result>.result-exclusion-note{display:none}#settlement-manage[hidden]{display:none}#settlement-result .rank-name{line-height:1.6}#settlement-result .result-restaurant-meta{margin-bottom:10px}#settlement-result .rank-detail .result-restaurant-meta{margin-bottom:7px}.single-result h3{overflow-wrap:anywhere}
@media(max-width:680px){.restaurant-preferences{padding:0 3px 3px;gap:4px}.favorite-button{font-size:9px;padding:4px 5px;min-height:28px}.not-wanted-tag{font-size:8px}.excluded-tools{padding:13px 15px;gap:10px;align-items:flex-start;flex-direction:column}.excluded-tools p{font-size:10px}.excluded-tools .button{width:100%}.result-restaurant-meta{font-size:10px;gap:2px 8px}.rank-detail .result-restaurant-meta{font-size:9px}.rank-detail .result-exclude{font-size:9px}.settlement-exclusion-note{font-size:10px}#settlement-result .result-restaurant-meta{font-size:10px}#settlement-result .rank-detail .result-restaurant-meta{font-size:9px}}
/* Keep all three restaurant choices and their actions within a desktop dialog. */
@media(min-width:681px){
  .settlement-art{justify-content:center;padding-top:68px}
  .settlement-hundred .settlement-content{padding:28px 25px 18px}
  .settlement-hundred .settlement-content>.eyebrow{margin-bottom:7px}
  .settlement-hundred .settlement-content>h2{font-size:23px;line-height:1.45}
  .settlement-hundred #settlement-result{margin-top:7px}
  .settlement-hundred #settlement-result .ranking-subtitle{margin:3px 0 5px;line-height:1.6}
  .settlement-hundred #settlement-result .rank-row{padding:9px 0;gap:10px}
  .settlement-hundred #settlement-result .rank-detail .result-restaurant-meta{margin:3px 0 4px}
  .settlement-hundred #settlement-result .rank-detail .result-exclude{margin-top:5px;min-height:28px;padding:4px 8px}
  .settlement-hundred #settlement-result .result-details{padding:6px 0;margin-top:3px}
  .settlement-hundred .settlement-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px 12px;padding-top:12px;margin-top:5px}
  .settlement-hundred .settlement-actions>.button{min-height:40px;padding:9px 10px;font-size:12px}
  .settlement-hundred #settlement-manage{grid-column:1/-1;padding:5px;font-size:10px}
  .settlement-hundred .settlement-exclusion-note{font-size:10px;line-height:1.6;margin-top:8px}
}

.initial-library-tools{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:17px 24px;border-bottom:1px solid var(--line);background:#fffefb}.initial-library-tools>div:first-child{max-width:580px}.initial-library-tools strong{font-size:12px;font-weight:600;color:#62744f}.initial-library-tools p{font-size:10px;color:#8c977d;line-height:1.8;margin:5px 0 0}.initial-library-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-shrink:0;flex-wrap:wrap}.initial-library-actions .button,.initial-library-actions .text-button{font-size:11px}.initial-library-actions .button{min-height:38px;padding:9px 12px}.initial-library-actions .text-button{color:#937c62}.restore-options{padding:0;border:0;display:grid;gap:10px;margin:20px 0}.restore-options label{display:flex;align-items:flex-start;gap:10px;cursor:pointer;border:1px solid var(--line);padding:15px;border-radius:10px;background:#fafcf5}.restore-options input{margin-top:4px}.restore-options strong{display:block;font-size:13px;line-height:1.7}.restore-options small{font-size:11px;font-weight:400;color:#859368;margin-left:8px}.restore-options em{display:block;font-style:normal;font-size:11px;line-height:1.7;color:#8a957b;margin-top:4px}.restore-preview{background:#f8f1e7;color:#98754f;font-size:12px;line-height:1.85;padding:13px 15px;border-radius:9px}.restore-hint{font-size:11px}
@media(max-width:900px){.initial-library-tools{align-items:flex-start}.initial-library-actions{flex-direction:column;align-items:flex-end}}
@media(max-width:680px){.initial-library-tools{padding:15px;gap:12px;flex-direction:column}.initial-library-actions{width:100%;flex-direction:row;align-items:center;justify-content:space-between;gap:6px}.initial-library-actions .button,.initial-library-actions .text-button{font-size:10px}.initial-library-tools p{font-size:9px}.restore-options label{padding:12px}.restore-options strong{font-size:12px}.restore-options small{font-size:10px}.restore-options em{font-size:10px}.restore-preview{font-size:11px}}

.category-excluded{background:#f7f8f3}.category-excluded .restaurant-meta,.category-excluded .probability{color:#9ca490}.category-excluded-tag{font-size:9px;color:#8e927d;line-height:1.6}.category-excluded .toggle:disabled{opacity:.55;cursor:not-allowed}#category-filter-note{margin-top:7px;color:#7d8a69}.restore-all-summary{background:#f5f8ec;border:1px solid var(--line);border-radius:10px;padding:16px;margin:20px 0}.restore-all-summary strong{font-size:13px}.restore-all-summary strong span{font-size:11px;font-weight:400;color:#849269;margin-left:8px}.restore-all-summary p{font-size:11px;color:#8b957c;line-height:1.8;margin:8px 0 0}
@media(max-width:680px){.category-excluded-tag{font-size:8px}.restore-all-summary{padding:13px}.restore-all-summary strong{font-size:12px}.restore-all-summary p{font-size:10px}}

.table-toolbar{flex-wrap:wrap;padding-bottom:8px;justify-content:flex-start;gap:12px 20px}
button.wheel-hub{padding:0}
button.wheel-hub:hover:not(:disabled){background:#316252;box-shadow:0 3px 16px #16302340}
button.wheel-hub:focus-visible{outline:3px solid #b5c86c;outline-offset:5px}
.table-toolbar .weight-tip{margin-left:auto}
.list-sort-control{display:flex;align-items:center;gap:9px;color:#7d8a6e;font-size:11px}
.list-sort-control select{font:inherit;color:var(--green);background:#f5f8ec;border:1px solid #d9e1ca;border-radius:8px;padding:8px 28px 8px 10px;min-height:36px;cursor:pointer}
.list-sort-control select:focus-visible{outline:3px solid #bdcf70;outline-offset:3px}
.list-sort-control select:disabled{cursor:not-allowed;opacity:.5}
.list-sort-hint{margin:0;padding:0 24px 13px;font-size:10px;line-height:1.6;color:#8a957b}
.wheel-food-filter{max-width:520px;margin:15px auto 0;padding:11px 14px;border:1px solid #d8e0c7;border-radius:10px;background:#f6f8ed}
.wheel-food-filter:has(input:checked){background:#edf3d9;border-color:#bdce9d}
.wheel-food-filter label{display:flex;align-items:center;gap:9px;font-size:12px;color:#526a40;cursor:pointer;min-height:24px;width:fit-content}
.wheel-food-filter input{width:16px;height:16px;margin:0;accent-color:var(--green);cursor:pointer;flex-shrink:0}
.wheel-food-filter input:disabled{cursor:not-allowed}
.wheel-food-filter label:has(input:disabled){opacity:.55;cursor:not-allowed}
.wheel-food-filter #category-filter-note{font-size:10px;line-height:1.7;margin:4px 0 0 25px;color:#85916e}
.result-preferences{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:12px}
.result-preferences .result-exclude,.rank-detail .result-preferences .result-exclude,.settlement-hundred #settlement-result .rank-detail .result-preferences .result-exclude{margin-top:0}
.result-favorite{font-size:11px;min-height:34px;padding:7px 11px;transition:background .18s,border-color .18s,color .18s}
.result-favorite:hover{background:#edf2df}
.rank-detail .result-preferences{margin-top:9px;gap:6px}
.rank-detail .result-favorite{font-size:10px;padding:5px 8px;min-height:31px}
@media(min-width:681px){.settlement-hundred #settlement-result .rank-detail .result-preferences{margin-top:5px}.settlement-hundred #settlement-result .result-favorite{min-height:28px;padding:4px 8px}}
@media(max-width:680px){.table-toolbar{gap:9px 12px}.list-sort-control{font-size:10px;gap:6px}.list-sort-control select{padding:7px 5px;min-height:33px}.list-sort-hint{padding:0 14px 11px;font-size:9px}.wheel-food-filter label{font-size:11px}.wheel-food-filter #category-filter-note{font-size:9px}.rank-detail .result-favorite{font-size:9px}}

/* Keep desktop columns unchanged; give phone rows a full-width restaurant identity. */
.row-weight-control,.row-probability-control{display:contents}
.row-control-label{display:none}
@media(max-width:680px){
  .table-head{display:none}
  .restaurant-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px 40px;gap:12px 10px;padding:16px;align-items:end}
  .restaurant-name{grid-column:1/-1;align-items:flex-start;gap:9px}
  .restaurant-name .color-dot{margin-top:16px}
  .name-edit{font-size:16px;min-height:40px;line-height:1.5;padding:7px 3px}
  .restaurant-meta{font-size:11px;line-height:1.65;padding:0 3px 5px;overflow-wrap:anywhere}
  .restaurant-preferences{gap:7px;padding:2px 3px 0}
  .favorite-button{font-size:12px;min-height:40px;padding:8px 10px}
  .not-wanted-tag,.category-excluded-tag{font-size:10px;line-height:1.6}
  .row-weight-control,.row-probability-control{display:flex;flex-direction:column;gap:5px;min-width:0}
  .row-control-label{display:block;color:#8b967b;font-size:11px;line-height:1.5}
  .row-weight{width:100%;max-width:100px;min-height:40px;font-size:16px;padding:8px}
  .row-probability-control .probability{display:flex;align-items:center;min-height:40px;font-size:12px;line-height:1.5}
  .restaurant-row .toggle,.restaurant-row .toggle[aria-checked="true"]{width:44px;height:40px;min-height:40px;background:transparent;align-self:end}
  .restaurant-row .toggle:before{content:'';position:absolute;left:5px;top:10px;width:34px;height:20px;border-radius:20px;background:#d8ddce}
  .restaurant-row .toggle[aria-checked="true"]:before{background:var(--green)}
  .restaurant-row .toggle:after{left:8px;top:13px;width:14px;height:14px}
  .restaurant-row .toggle[aria-checked="true"]:after{transform:translateX(14px)}
  .restaurant-row .delete-button{width:40px;height:40px;font-size:23px;align-self:end}
  .table-toolbar{gap:10px 12px}
  .search-box{flex:1 1 100%;width:100%;min-width:0}
  .search-box input{width:100%;min-width:0;min-height:40px;font-size:16px;padding:8px 4px}
  .list-sort-control{flex:1 1 210px;min-width:0;font-size:12px}
  .list-sort-control select{flex:1;min-width:0;max-width:100%;min-height:40px;font-size:16px;padding:8px}
  .name-add input,.weight-add input,.recommendation-search,#import-text,.share-url{font-size:16px}
  .name-add input,.weight-add input{min-height:42px}
  .wheel-food-filter label{min-height:40px;font-size:14px}
  .result-preferences{gap:8px}
  .result-preferences .result-favorite,.result-preferences .result-exclude,#settlement-result .result-preferences button{min-height:40px;font-size:11px;line-height:1.5;padding:8px 10px;max-width:100%}
}

/* A compact, labelled quick-add form on desktop and a comfortable phone layout. */
.add-form{display:block;padding:22px 24px;background:linear-gradient(120deg,#f5f8ec,#fbfcf7)}
.quick-add-heading{margin-bottom:18px}
.quick-add-heading h3{font-size:17px;letter-spacing:.2px;margin:0;color:var(--green)}
.quick-add-heading p{font-size:12px;line-height:1.7;color:#899479;margin:5px 0 0}
.quick-add-fields{display:grid;grid-template-columns:minmax(190px,2fr) minmax(150px,1.3fr) minmax(100px,.85fr) 90px auto;gap:12px;align-items:end}
.quick-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.quick-field>span:first-child{font-size:12px;color:#657657;font-weight:550}
.quick-field em{font-style:normal;font-size:10px;font-weight:400;color:#9aa28e;margin-left:3px}
.quick-field input{width:100%;min-width:0;height:46px;border:1px solid #dbe3ce;background:#fffefb;border-radius:9px;padding:11px 12px;font-size:14px;color:var(--ink)}
.quick-field input::placeholder{color:#a1aa95;font-size:12px}
.quick-weight input{text-align:center}
.price-input{position:relative;display:block}
.price-input>span{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:14px;color:#8c9779;pointer-events:none}
.price-input input{padding-left:29px}
.quick-add-submit{min-height:46px;height:46px;padding:11px 16px;font-size:13px}
.quick-add-hint{font-size:10px;line-height:1.8;color:#939d85;margin:13px 0 0}
@media(max-width:1000px) and (min-width:681px){.quick-add-fields{grid-template-columns:minmax(180px,2fr) minmax(140px,1.5fr) minmax(95px,1fr)}.quick-weight{grid-column:1}.quick-add-submit{grid-column:2/-1}.quick-add-hint{font-size:11px}}
@media(max-width:680px){
  .add-form{padding:19px 16px}
  .quick-add-heading{margin-bottom:16px}
  .quick-add-heading h3{font-size:17px}
  .quick-add-heading p{font-size:11px}
  .quick-add-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px 12px}
  .quick-name,.quick-category{grid-column:1/-1}
  .quick-field{gap:7px}
  .quick-field input{font-size:16px;height:46px;padding:11px 12px}
  .quick-field input::placeholder{font-size:13px}
  .price-input input{padding-left:29px}
  .quick-add-submit{grid-column:1/-1;min-height:46px;width:100%;font-size:14px;margin-top:1px}
  .quick-add-hint{font-size:11px;margin-top:12px}
}

/* A quiet inline filter under the draw buttons, with a generous touch target. */
.wheel-food-filter,.wheel-food-filter:has(input:checked){display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:0 12px;max-width:520px;margin:6px auto 0;padding:0;border:0;border-radius:0;background:none}
.wheel-food-filter label{min-height:40px;font-size:12px;gap:8px;color:#657653}
.wheel-food-filter input{width:15px;height:15px}
.wheel-food-filter #category-filter-note{font-size:10px;line-height:1.5;margin:0;color:#97a084}
.wheel-food-filter:has(input:checked) label{color:var(--green)}
.wheel-food-filter+.wheel-note{margin-top:3px}
@media(max-width:680px){.wheel-food-filter{gap:0 10px}.wheel-food-filter label{font-size:12px}.wheel-food-filter #category-filter-note{font-size:10px}}
