/* hub.css */
:root{font-family:ToolkitUI,system-ui,sans-serif;color:#172237;background:#f7f8fb;--blue:#3155f5;--line:#e0e5ee;font-size:16px}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}button,input,select{border:1px solid var(--line);border-radius:9px;background:white;padding:11px 13px;min-height:44px;color:#28374e}button:hover{background:#edf1ff}input,select{width:100%;min-width:0}input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--blue)}:focus-visible{outline:3px solid #3155f5;outline-offset:3px}header{padding:20px max(24px,calc((100vw - 1100px)/2));background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px}.logo{font-size:25px;font-weight:800;letter-spacing:-1.2px;display:flex;align-items:center;gap:9px}.logo>span{background:var(--blue);color:white;border-radius:9px;width:31px;height:33px;display:grid;place-items:center;font-size:22px}.nav-link{font-size:14px;color:#55647a}main,footer{max-width:1100px;margin:auto;padding:35px 24px}.home-intro{max-width:730px;padding:8px 0 22px}h1{font-size:32px;letter-spacing:-1px;line-height:1.5;margin:8px 0;word-break:keep-all}h2{font-size:19px;line-height:1.5;margin:0}h3{font-size:16px;line-height:1.6}.home-intro>p,.page-title>p{color:#657186;font-size:16px;line-height:1.8;margin:8px 0 22px}.eyebrow{font-size:13px!important;color:#3155f5!important;font-weight:650;letter-spacing:.3px;margin:0!important}#tool-search{min-height:54px;font-size:16px;border-color:#cdd5e4;box-shadow:0 3px 10px #23345305}.categories{display:flex;gap:7px;margin-top:16px;flex-wrap:wrap}.categories button{font-size:14px;padding:8px 15px;border-color:transparent;background:transparent;min-height:40px}.categories button[aria-pressed=true]{background:#e8eeff;color:#264ad8;border-color:#b7c7ff;font-weight:650}.catalog-heading{display:flex;justify-content:space-between;align-items:center;margin:12px 0 18px}.catalog-heading>span{font-size:14px;color:#66758a}.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.tool-card{border:1px solid var(--line);border-radius:16px;background:white;padding:23px;transition:box-shadow .15s,border-color .15s}.tool-card:hover{border-color:#9aaffc;box-shadow:0 5px 18px #172a5310}.tool-icon{width:40px;height:40px;border-radius:10px;background:#eef2ff;color:#3155f5;display:grid;place-items:center;font-size:22px;font-weight:700;margin-bottom:19px}.tool-card h2{font-size:18px;letter-spacing:-.4px}.tool-card p{font-size:14px;line-height:1.8;color:#637187;margin:9px 0 22px;word-break:keep-all}.card-category{display:flex;justify-content:space-between;font-size:13px;color:#64738b}.card-category>span{font-size:17px}.tool-card[hidden]{display:none}footer{margin-top:22px;border-top:1px solid var(--line);font-size:13px;color:#67758a;line-height:1.8}footer strong{font-size:18px;color:#27364d}footer p{margin:7px 0}#search-empty{text-align:center;padding:45px;color:#66758a}.back{font-size:14px;color:#556780}.page-title{margin:25px 0}.calculator-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.input-panel,.output-panel{background:white;border:1px solid var(--line);border-radius:17px;padding:25px}.input-panel h2{margin-bottom:22px}.output-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.output-heading button{font-size:13px;padding:8px 11px}.field{display:block;margin-bottom:18px;font-size:14px;font-weight:600}.field input,.field select{margin-top:8px;font-weight:400}.row{display:flex;gap:12px}.row>.field{flex:1;min-width:0}.check-field{display:flex;align-items:center;gap:9px;font-size:14px;margin:16px 0 22px}.primary{width:100%;background:var(--blue);color:white;border:0;font-weight:650;margin-top:8px}.primary:hover{background:#2445d5}.empty-result{font-size:15px;color:#758095;padding:35px 0}.result-number{font-size:32px;font-weight:750;color:#284bdf;letter-spacing:-.6px;overflow-wrap:anywhere;margin:20px 0 12px}.result-caption{font-size:14px;line-height:1.9;color:#67758a}.result-table{width:100%;border-collapse:collapse;font-size:14px;margin:20px 0}.result-table th,.result-table td{padding:12px 7px;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere}.result-table th{font-weight:650;color:#526079}.transfer{padding:13px;background:#eff3ff;color:#2547c1;border-radius:9px;margin:9px 0;font-size:15px;line-height:1.7}.item-editor{padding:15px 0;border-bottom:1px solid var(--line);margin-bottom:15px}.item-editor .row{gap:8px}.item-editor input,.item-editor select{padding:10px 8px}.item-editor .field{font-size:13px;margin-bottom:12px}.item-editor-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:15px;font-weight:650}.remove-row{font-size:13px;padding:7px 10px;min-height:38px}.add-row{width:100%;margin-bottom:15px;font-size:14px}.tool-guide{padding:25px 0;margin-top:15px;max-width:750px;color:#617087;font-size:14px;line-height:1.9}.tool-guide h2{color:#26364e}.tool-guide p{margin:10px 0}#calc-error{background:#fff1f1;color:#a52b35;font-size:14px;padding:14px;border-radius:9px;line-height:1.7}#notice{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#20304b;color:white;padding:13px 20px;border-radius:10px;max-width:90vw;width:max-content;font-size:14px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:800px){.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calculator-layout{grid-template-columns:1fr}.output-panel{scroll-margin-top:16px}}@media(max-width:500px){header{padding:17px 20px}.logo{font-size:23px}main{padding:25px 18px}h1{font-size:27px}.home-intro>p,.page-title>p{font-size:15px}.home-intro{padding-bottom:12px}.categories{gap:4px}.categories button{padding:8px 11px}.tool-grid{grid-template-columns:1fr;gap:11px}.tool-card{padding:18px 19px;display:grid;grid-template-columns:43px 1fr;column-gap:14px}.tool-icon{grid-row:1/4;margin:0;width:39px;height:40px}.tool-card h2{font-size:17px}.tool-card p{margin:5px 0 8px}.card-category{grid-column:2}.input-panel,.output-panel{padding:20px}.result-number{font-size:29px}.row{gap:8px}.result-table{font-size:13px}footer{padding:23px 20px}.page-title{margin:22px 0}.item-editor .row{flex-wrap:wrap}.item-editor .row>.field{flex-basis:40%}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}[hidden]{display:none!important}

/* party.css */
.party-page{max-width:1160px}.party-page .page-title{margin:22px 0 20px}.party-page .page-title p{margin:4px 0 0}.party-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}.party-tabs a{padding:11px 17px;border:1px solid var(--line);background:white;border-radius:10px;font-size:15px}.party-tabs a[aria-current=page]{background:#263fea;border-color:#263fea;color:#fff;font-weight:650}.party-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:22px;align-items:start}.party-input{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px}.names-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:16px;font-weight:650}.names-label span{font-weight:500;color:#52637d;font-size:14px}.party-input textarea{display:block;width:100%;min-height:205px;resize:vertical;font:inherit;font-size:16px;line-height:1.65;padding:14px;border:1px solid #cbd4e3;border-radius:10px;color:#172237;background:#fcfdff}.hint{color:#66748a;font-size:14px;line-height:1.65;margin:9px 0 18px}.party-options{border-top:1px solid var(--line);padding-top:18px;margin-top:16px}.party-options .field{margin-bottom:12px}.party-input .primary{min-height:52px;font-size:17px;border-radius:11px}.party-error{font-size:14px;line-height:1.7;color:#ab2535;background:#fff0f1;padding:12px;border-radius:9px}.party-stage{border:1px solid #d6def6;background:#eef2ff;border-radius:20px;min-height:420px;padding:25px;display:flex;flex-direction:column;overflow-wrap:anywhere}.stage-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.stage-top h2{font-size:16px;color:#4b5c80}.stage-top button{font-size:14px;min-height:40px;padding:8px 11px;background:#ffffffbd}.stage-content{flex:1;display:flex;flex-direction:column;justify-content:center;padding:30px 0;min-height:270px}.stage-empty{text-align:center;max-width:360px;margin:auto}.stage-symbol{font-size:56px;font-weight:800;color:#3155f5;margin-bottom:16px}.stage-empty h3{font-size:23px;margin:0 0 10px;letter-spacing:-.5px}.stage-empty p{font-size:15px;line-height:1.8;color:#61718d}.stage-meta{font-size:14px;color:#5b6e95;margin:0 0 15px;text-align:center}.winner-list{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.winner{padding:22px 28px;background:#fff;border:1px solid #d9e1ff;border-radius:14px;font-size:30px;font-weight:750;color:#2345ce;text-align:center;max-width:100%}.winner:only-of-type{font-size:clamp(32px,4vw,60px);padding:30px;min-width:min(100%,230px)}.team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.team-card{background:white;border:1px solid #dde3f5;border-radius:13px;padding:18px}.team-card h3{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:17px;margin:0 0 12px;color:#294bd4}.team-card h3 span{font-size:14px;font-weight:400;color:#6d7890}.team-card ul{list-style:none;padding:0;margin:0;display:grid;gap:7px;line-height:1.5}.order-list{list-style:none;padding:0;margin:0;display:grid;gap:9px}.order-list li{display:flex;align-items:center;gap:16px;background:white;border-radius:10px;padding:13px 17px;font-size:19px}.order-list b{font-size:15px;min-width:29px;color:#3455df}.stage-footer{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.stage-footer button{background:white;font-size:14px}.party-guide{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:28px;font-size:14px;line-height:1.9;color:#617087}.party-guide h2{font-size:16px;color:#283957}.party-guide p{margin:8px 0}.party-stage:fullscreen{border:0;border-radius:0;overflow:auto;padding:4vw;min-height:100vh}.party-stage:fullscreen .winner{font-size:clamp(32px,8vw,110px)}.party-stage:fullscreen .stage-content{max-width:1200px;width:100%;margin:auto}.party-stage.is-running .stage-symbol{animation:turn .7s ease-in-out infinite}@keyframes turn{to{transform:rotate(180deg)}}.result-enter{animation:none}@keyframes appear{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}button:disabled{cursor:default;opacity:.55}.copy-fallback{width:100%;min-height:120px;font:inherit;padding:12px}.pool-line{font-size:14px;color:#5c6b82;margin:12px 0 0}.pool-line button{font-size:14px;min-height:36px;padding:5px 8px;margin-left:6px}.party-input .check-field{line-height:1.6;margin:12px 0}.party-input .check-field input{flex-shrink:0}@media(max-width:760px){.party-layout{grid-template-columns:1fr}.party-stage{min-height:340px;padding:20px}.party-input{padding:20px}.party-input textarea{min-height:150px}.stage-content{min-height:220px;padding:23px 0}.party-guide{grid-template-columns:1fr;gap:12px}.party-tabs{gap:6px}.party-tabs a{flex:1;text-align:center;padding:11px 8px;font-size:14px}.team-card{padding:14px}.winner{font-size:24px;padding:18px}.party-page .page-title h1{font-size:28px}}@media(prefers-reduced-motion:reduce){.party-stage.is-running .stage-symbol,.result-enter{animation:none}}

/* site-info.css */
.site-links{display:flex;gap:12px 20px;flex-wrap:wrap;margin-top:18px;align-items:center}.site-links a{font-size:14px;color:#52647e;text-decoration:underline;text-underline-offset:4px}.site-links a:hover{color:#3155f5}.info-page{max-width:870px}.info-page>h1{margin-top:22px}.info-page section{background:white;border:1px solid #e0e5ee;padding:25px;border-radius:15px;margin:18px 0}.info-page h2{font-size:20px;margin:0 0 10px}.info-page p,.info-page li{font-size:16px;line-height:1.9;color:#52627a}.info-page ul{padding-left:22px}.info-page a{text-decoration:underline;text-underline-offset:3px;color:#294ad8}.info-date{font-size:14px!important;color:#6e7b90!important}.review-note{padding:14px 18px;background:#edf2ff;color:#365093!important;border-radius:10px;font-size:14px!important}.info-table-wrap{overflow-x:auto}.info-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.7}.info-table th,.info-table td{padding:14px 10px;border-bottom:1px solid #e0e5ee;text-align:left;vertical-align:top}.info-table th{color:#374862}.info-table td{color:#52627a}.stage-footer #repeat{background:#3155f5;color:white;border:0;font-weight:650;padding:13px 20px;min-height:48px}.stage-footer #repeat:hover{background:#2644d3}#stage-pool{text-align:center;font-size:14px;color:#536689;margin:12px 0}.stage-footer{align-items:center}#stage-error{line-height:1.7}.party-stage:fullscreen .stage-footer{position:sticky;bottom:0;padding:14px 0;background:#eef2ff}.party-stage:fullscreen #repeat{font-size:20px;min-height:56px}.party-stage:fullscreen .stage-content{flex:1 0 auto}@media(max-width:500px){.info-page section{padding:20px}.info-page h1{font-size:27px}.info-table{font-size:14px}.info-table td,.info-table th{padding:10px 7px}.stage-footer #repeat{flex-basis:100%}.site-footer .site-links{width:100%;padding-top:12px}}

/* Generated tool illustrations, decorative alongside visible labels. */
.tool-icon{width:64px;height:64px;background:#fff;border-radius:14px;overflow:hidden;margin-bottom:16px}.tool-icon img{display:block;width:100%;height:100%;object-fit:contain}.tool-title-icon{width:64px;height:64px;object-fit:contain;vertical-align:middle;margin-right:12px;border-radius:14px;background:#fff} @media(max-width:500px){.tool-card{grid-template-columns:56px minmax(0,1fr);column-gap:12px}.tool-icon{width:56px;height:56px;margin:0}.tool-title-icon{width:48px;height:48px;margin-right:8px}}

/* search-content:start */
.search-guide,.search-related{max-width:900px;margin:28px auto;padding:22px;border:1px solid #e0e5ee;border-radius:16px;background:#fff;overflow-wrap:anywhere}.search-guide h2,.search-related h2{font-size:19px;line-height:1.5;margin:22px 0 10px}.search-guide h2:first-child,.search-related h2:first-child{margin-top:0}.search-guide p{font-size:15px;line-height:1.85;color:#52627a;margin:0 0 12px}.search-related ul{display:flex;flex-wrap:wrap;gap:12px 24px;padding-left:20px}.search-related a{color:#294ad8;text-decoration:underline;text-underline-offset:3px}.search-related a:focus-visible{outline:2px solid #3155f5;outline-offset:4px}@media(max-width:500px){.search-guide,.search-related{padding:18px}.search-guide h2,.search-related h2{font-size:18px}}
/* search-content:end */

/* Practical guides remain below the working tool, available without scripts. */
.search-guide h3{font-size:17px;line-height:1.65;color:#283957;margin:18px 0 8px}.search-guide details{border-top:1px solid #e0e5ee;padding:14px 0}.search-guide summary{cursor:pointer;font-size:15px;font-weight:650;line-height:1.65;color:#283957;min-height:32px}.search-guide details p{margin:12px 0 0}.search-guide summary:focus-visible{outline:2px solid #3155f5;outline-offset:4px}.home-purpose{color:#52627a;line-height:1.7;margin:10px 0 20px}

/* Storage notice: keep column relationships clear, including narrow screens. */
.storage-table-wrap{max-width:100%;border:1px solid #d9deea;border-radius:10px;overscroll-behavior-x:contain}
.storage-table-wrap:focus-visible{outline:3px solid #6550bf;outline-offset:3px}
.storage-table{min-width:640px;table-layout:fixed}
.storage-table th,.storage-table td{padding:14px 16px;border-right:1px solid #e0e5ee;overflow-wrap:break-word;line-height:1.7}
.storage-table thead th{background:#f0eef8;font-weight:700;color:#30334d}
.storage-table th:first-child{width:24%}
.storage-table th:nth-child(2){width:37%}
.storage-table tbody th{background:#f8f9fc;font-weight:650}
.storage-table tr>:last-child{border-right:0}
.storage-table tbody tr:last-child>*{border-bottom:0}
.info-page .storage-table-hint{display:none}
@media(max-width:740px){.info-page .storage-table-hint{display:block;font-size:14px;line-height:1.6;margin:0 0 10px}.storage-table th,.storage-table td{padding:12px;font-size:14px}}

/* quick-motion.css */
.quick-shuffle{display:flex;justify-content:center;align-items:center;gap:12px;min-height:110px}.shuffle-chip{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#3155f5;color:#fff;font-weight:750;box-shadow:0 5px 0 #2441c622}.shuffle-chip:nth-child(2){background:#20b9a2;border-radius:50%}.shuffle-chip:nth-child(3){background:#ffad53}.winner-list{position:relative}.result-sparkles{position:absolute;pointer-events:none;inset:0;overflow:hidden;border-radius:14px}.result-sparkles i{position:absolute;top:50%;left:50%;width:7px;height:10px;border-radius:2px}@media(prefers-reduced-motion:reduce){.result-sparkles,.quick-shuffle{display:none}}

/* usability.css */
.saved-rosters{border-top:1px solid #e0e5ee;margin:16px 0 0;padding-top:14px}.saved-rosters summary,.guide-fold summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center;gap:8px}.saved-rosters summary::before,.guide-fold summary::before{content:'+';color:#3155f5}.saved-rosters[open] summary::before,.guide-fold[open] summary::before{content:'−'}.saved-rosters .field{margin-top:12px}.compact-actions{display:flex;flex-wrap:wrap;gap:8px}.compact-actions button{flex:1;white-space:nowrap}.roster-status{font-size:13px;line-height:1.7;color:#52637d}.guide-fold{border-top:1px solid #e0e5ee;margin-top:24px;color:#617087;font-size:14px}.guide-fold .party-guide,.guide-fold .lottery-guide{margin-top:0}.guide-fold .party-guide{display:block}.result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.result-actions button{flex:1;min-width:100px}.result-actions .lottery-copy{margin:0;width:auto}.featured-intro{padding:18px 20px;background:#eaf0ff;border-radius:14px;margin:12px 0 20px;display:flex;align-items:center;justify-content:space-between;gap:15px}.featured-intro p{margin:5px 0 0;color:#52637d;font-size:14px;line-height:1.6}.featured-intro a{background:#3155f5;color:white;padding:12px 16px;border-radius:9px;white-space:nowrap;font-size:14px}.swap-units{width:100%;margin:0 0 18px;font-size:14px}@media(max-width:500px){.featured-intro{align-items:flex-start;flex-direction:column}.featured-intro a{width:100%;text-align:center}.stage-footer button{flex:1;min-width:110px}}
footer>a{display:block;margin:8px 0}summary::-webkit-details-marker{display:none}

/* ux-improvements.css */
#search-help{font-size:13px;line-height:1.65;color:#56667d;margin:10px 0 0}.field-error{display:block;margin-top:7px;font-size:13px;font-weight:400;line-height:1.6;color:#a12130}[aria-invalid=true]{border-color:#b52a37!important;background:#fff9f9}.result-waiting .empty-result{padding:8px 0}.result-waiting{background:#fdfdff}.mobile-calculate{display:none}.optional-field{margin-bottom:14px}.optional-field summary{cursor:pointer;font-size:14px;min-height:44px;display:flex;align-items:center;color:#52627a}.optional-field summary:after{content:' +';margin-left:6px}.optional-field[open] summary:after{content:' −'}.record-fields summary{cursor:pointer;font-size:14px;line-height:1.7;color:#52627a;padding:10px 0;min-height:44px}.record-fields[open] summary{margin-bottom:8px}.ux-edit-actions{margin-top:16px}.input-panel input,.input-panel select{scroll-margin:30px}.search-guide>details>summary{font-weight:600;color:#26364e;cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between}.search-guide>details>summary:after{content:'+'}.search-guide>details[open]>summary:after{content:'−'}.search-guide>details[open]>summary{margin-bottom:18px}.search-guide>details h2{font-size:17px}.remove-row{min-height:44px}.categories button{min-height:44px}@media(max-width:800px){.mobile-calculate:not([hidden]){display:block;position:fixed;z-index:20;bottom:0;left:0;right:0;padding:10px 18px max(10px,env(safe-area-inset-bottom));background:#ffffffed;border-top:1px solid #d8e0ed;box-shadow:0 -4px 15px #1722370a}.mobile-calculate .primary{margin:0;min-height:48px}.has-calculate-dock{padding-bottom:86px}#notice{bottom:96px}.field{margin-bottom:14px}.work-record{padding:14px!important}.result-waiting{padding-top:16px;padding-bottom:16px}}
.shop-comparison{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.shop-comparison h3{font-size:17px}.shop-verdict{font-weight:700;color:#5844ad;line-height:1.7}.shop-comparison .result-table{table-layout:fixed;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.shop-comparison .result-table th,.shop-comparison .result-table td{padding:10px 4px;font-size:13px}@media(max-width:400px){.shop-comparison .result-table th,.shop-comparison .result-table td{font-size:11px}}

.tool-notes{max-width:900px;margin:28px auto;padding:20px 24px;background:#fff;border:1px solid #e0dfeb;border-radius:18px;font-size:14px;line-height:1.8;color:#52627a}.tool-notes>details>summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:15px;font-weight:650;color:#27364d}.tool-notes>details>summary:after{content:"+"}.tool-notes>details[open]>summary:after{content:"−"}.tool-notes .notes-part{margin:20px 0 0;padding:0;border:0;box-shadow:none;background:transparent}.tool-notes h2{font-size:16px;margin:20px 0 10px}.tool-notes h3{font-size:15px}.tool-notes .notes-part>details>summary{min-height:44px;cursor:pointer}.tool-notes a{overflow-wrap:anywhere}@media(max-width:500px){.tool-notes{padding:14px 18px;margin:22px 0}}

/* library.css */
.multi-library{margin:20px 0;border:1px solid #d9e0ed;border-radius:14px;padding:18px;background:#fff;max-width:100%;min-width:0}.multi-library summary{font-weight:650;min-height:44px;cursor:pointer}.multi-library p{font-size:13px;line-height:1.7;color:#52627a}.multi-library label{display:block;margin:12px 0;font-size:14px}.multi-library input,.multi-library select{display:block;width:100%;min-width:0;max-width:100%;padding:10px;border:1px solid #cdd5e4;border-radius:8px;min-height:44px;font:inherit;margin-top:8px}.library-actions{display:flex;gap:8px;flex-wrap:wrap}.library-actions button{min-height:44px;font:inherit;padding:8px 12px;border:1px solid #d9e0ed;border-radius:8px;background:white}.work-save select{width:100%;min-width:0}.work-save button{margin:4px 4px 4px 0}button:disabled{cursor:not-allowed;opacity:.5}@media print{.multi-library{display:none}}

.multi-library textarea{width:100%;max-width:100%;min-height:70px;padding:10px;font:inherit}.team-setting{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e3e8f0;padding:8px 0}.team-setting label{flex:1;overflow-wrap:anywhere;min-width:0}.team-setting select{width:110px;flex:0 0 110px}.team-setting input[type=checkbox],.team-pin input{display:inline-block;width:18px;min-height:18px;margin:0 7px 0 0}.team-pin{display:inline-flex;align-items:center;min-height:44px;font-size:12px;margin-left:10px}.team-card li{overflow-wrap:anywhere}

.work-save .field{flex-basis:100%;width:100%}.multi-library select{overflow:hidden;text-overflow:ellipsis}

.saved-search{display:block;font-size:14px;font-weight:600;margin:14px 0}.saved-search input{display:block;width:100%;max-width:100%;margin-top:8px;font:inherit;font-size:16px;min-height:44px;padding:10px 12px;border:1px solid #cdd5e4;border-radius:9px}.saved-count{font-size:13px;line-height:1.7;color:#59667c;margin:8px 0}.saved-preview{padding:12px;border:1px solid #e0d9ed;border-radius:10px;background:#f8f6fc;margin:10px 0 14px;overflow-wrap:anywhere}.saved-preview strong{font-size:15px}.saved-preview p{font-size:13px;line-height:1.7;margin:5px 0 0;color:#596079}.saved-shortcut{display:block;width:100%;min-height:44px;padding:11px 14px;margin:0 0 16px;text-align:left;font:inherit;font-weight:650;border:1px solid #dcd5ea;border-radius:10px;background:#f8f5fd;color:#57438e}.saved-search input:focus-visible,.saved-shortcut:focus-visible{outline:3px solid #6550bf;outline-offset:3px}.multi-library,.work-save,#split-library,#travel-templates{scroll-margin-top:100px}.work-save select,#split-saved-list,#template-list{min-height:44px;font-size:16px;max-width:100%;width:100%}.home-personal{margin:24px 0;padding:20px;border:1px solid #e1dbeb;border-radius:14px;background:#fff;min-width:0}.home-personal h2{font-size:19px;margin:0 0 12px}.home-personal p{font-size:14px;line-height:1.7;color:#5b6277;margin:8px 0}.personal-links{display:flex;flex-wrap:wrap;gap:8px}.personal-link{display:flex;max-width:100%;min-width:0;border:1px solid #ded6eb;border-radius:10px;overflow:hidden}.personal-link a{min-height:44px;display:flex;align-items:center;padding:10px 12px;color:#4d3d7b;text-decoration:none;font-size:14px;overflow-wrap:anywhere}.personal-link button{min-height:44px;min-width:44px;padding:8px;border:0;border-left:1px solid #ded6eb;background:#f8f5fc;font-size:18px;color:#625278}.personal-links>a{display:flex;align-items:center;min-height:44px;padding:11px 14px;border:1px solid #ded6eb;border-radius:10px;text-decoration:none;color:#4d3d7b;font-size:14px;overflow-wrap:anywhere}.home-personal :focus-visible{outline:3px solid #6550bf;outline-offset:3px}@media(max-width:500px){.home-personal{padding:16px}.personal-links{gap:8px}.personal-link{flex:1 1 140px}.personal-link a{flex:1;min-width:0}.personal-links>a{flex:1 1 140px}.saved-preview p{font-size:14px}}@media print{.home-personal,.saved-shortcut,.saved-search{display:none}}

.work-save .saved-search,.work-save .saved-count,.work-save .saved-preview{flex-basis:100%;width:100%}.saved-shortcut:disabled{opacity:.6}

.personal-link:focus-within{outline:3px solid #6550bf;outline-offset:3px}

.feature-actions>.saved-count{flex-basis:100%;width:100%;overflow-wrap:anywhere}.saved-count{overflow-wrap:anywhere}

.saved-count:empty{display:none}.saved-write-actions{margin-top:16px}.saved-write-actions>.saved-count{flex-basis:100%;width:100%;overflow-wrap:anywhere}.saved-search[hidden]{display:none!important}

#favorite-shortcuts:has(.favorite-empty:not([hidden])){padding:8px 0;border:0;background:transparent;margin:10px 0}#favorite-shortcuts:has(.favorite-empty:not([hidden])) h2{display:none}

.saved-editor{padding:14px 16px;margin:0 0 16px;border:1px solid #d8d0e7;border-radius:12px;background:#fbf9ff;overflow-wrap:anywhere;min-width:0}.saved-editor[hidden]{display:none}.saved-editor strong{font-size:15px;color:#382c55}.saved-editor p{font-size:14px;color:#56536a;line-height:1.6;margin:8px 0}.saved-editor .library-actions{margin:10px 0 0;display:flex;gap:8px;flex-wrap:wrap}.saved-editor button{font:inherit;font-size:14px;min-height:44px;min-width:0;padding:10px 14px;border:1px solid #b6a8d3;border-radius:9px;background:white;color:#4c397a}.saved-editor button:first-child{background:#6550bf;color:white;border-color:#6550bf}.saved-editor button:disabled{background:#eeebf4;color:#6a627c;border-color:#d4cede;cursor:default}.saved-editor[data-state=error] p,.saved-editor[data-state=missing] p{color:#9b283b}.saved-editor :focus-visible{outline:3px solid #6550bf;outline-offset:3px}@media(max-width:500px){.saved-editor .library-actions button{flex:1 1 100px}}@media print{.saved-editor{display:none}}

.saved-shortcut[hidden]{display:none}

/* decision-game.css */

.game-choice{border:1px solid #d9dfed;border-radius:14px;padding:14px;margin:18px 0;background:#f7f9ff}
.game-choice legend{font-weight:700;padding:0 5px}.game-choice label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:15px}.game-choice input{width:18px;height:18px}.game-choice p{font-size:13px;line-height:1.7;color:#56647e}
.party-stage:has(.decision-game){padding:0;border:0;background:transparent}.party-stage:has(.decision-game)>.stage-top{padding:0 4px 14px}.party-stage:has(.decision-game)>.stage-content{padding:0;justify-content:start}.party-stage:has(.decision-game)>.stage-footer{margin-top:16px}.party-stage:has(.decision-game)>h2{padding:0 4px}
.decision-game{--lime:#d9ff75;--ink:#101c2c;position:relative;width:100%;max-width:100%;border-radius:26px;background:#101c2c;color:#f4f6f8;border:1px solid #33455b;box-shadow:0 18px 40px #10233125,0 3px 0 #07101b;overflow:hidden;text-align:center;isolation:isolate}
.decision-game *{box-sizing:border-box}.arcade-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 22px 0}
.arcade-badge{color:#d9ff75;font-size:10px;font-weight:800;letter-spacing:1.4px;text-align:left}
.decision-game button{font:inherit;cursor:pointer;min-height:46px;transition:transform .15s,background .15s;border-radius:12px}
.decision-game button:active{transform:translateY(2px)}.decision-game button:focus-visible,.decision-game input:focus-visible,.decision-game summary:focus-visible{outline:3px solid #fff;outline-offset:4px}
.decision-game .arcade-sound{background:#223249;border:1px solid #40526a;color:#c3d0e0;font-size:11px;padding:8px 12px;flex-shrink:0;min-height:44px;border-radius:25px}
.arcade-heading{padding:20px 24px 12px}.decision-game h3{color:#f7f8fc;font-size:clamp(24px,3vw,32px);letter-spacing:-1.1px;line-height:1.25;margin:0 0 9px;font-weight:850}
.arcade-heading>p{color:#a8b8cc;font-size:13px;line-height:1.65;margin:0}
.arcade-hud{margin:8px 24px 0;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #2e4056;border-bottom:1px solid #2e4056;padding:12px 0;color:#d1dbea;font-size:12px}
.arcade-state{font-family:monospace;letter-spacing:1.5px;color:#d9ff75;display:flex;align-items:center;gap:6px}.arcade-state:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
.arcade-hud strong{font-size:12px;font-variant-numeric:tabular-nums;font-weight:650;overflow-wrap:anywhere;text-align:right}
.game-scene{position:relative;width:100%;overflow:hidden;background:#121e2f}.game-scene canvas{display:block;width:100%;height:auto;max-width:100%}
.game-actions{display:flex;justify-content:center;gap:10px;padding:2px 24px 0;margin:0}
.decision-game .game-actions button{background:#26394f;color:#edf3fb;border:1px solid #496078;padding:13px 17px;font-size:14px;line-height:1.35;font-weight:700;box-shadow:0 4px 0 #07111f;touch-action:manipulation}
.decision-game .game-actions button:hover:not(:disabled){background:#344b65;transform:translateY(-1px)}
.decision-game .game-actions .arcade-primary{background:#d9ff75;color:#1f3026;border-color:#e1ffa0;box-shadow:0 4px 0 #8ea940;min-width:180px}
.decision-game .game-actions .arcade-primary:hover:not(:disabled){background:#e8ffaa}
.decision-game .game-actions button:disabled{opacity:.65;cursor:default}.game-controls-food{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:8px}.decision-game .game-controls-food button{min-width:0;width:100%;font-size:12px;padding:13px 4px}
.arcade-power{display:flex;align-items:center;gap:10px;margin-top:19px;color:#aabbd0;font-size:11px}.arcade-power input[type=range]{flex:1;min-width:0;max-width:100%;height:24px;padding:0;background:transparent;border:0;box-shadow:none;accent-color:#d9ff75}.arcade-power strong{min-width:32px;color:#d9ff75;font-size:11px}.arcade-power>span{white-space:nowrap}
.arcade-time{height:3px;background:#2c3c52;margin:22px 24px 0;border-radius:3px;overflow:hidden}.arcade-time span{height:100%;display:block;width:0;background:#d9ff75;box-shadow:0 0 8px #d9ff7577}
.decision-game .game-status{font-size:12px;line-height:1.7;color:#b2c3d8;margin:12px 24px 4px;min-height:21px}
.decision-game .game-skip{background:transparent;border:0;color:#d0dbe8;text-decoration:underline;text-underline-offset:4px;font-size:12px;padding:10px 15px;margin:0 auto 8px;max-width:100%}
.arcade-rules{background:#0c1625;border-top:1px solid #293b50;padding:0 20px;text-align:left}.arcade-rules summary{color:#91a5bf;font-size:11px;cursor:pointer;min-height:46px;display:flex;align-items:center;justify-content:space-between;list-style:none}.arcade-rules summary:after{content:'+';font-size:17px}.arcade-rules[open] summary:after{content:'−'}.arcade-rules p{color:#aebed1;font-size:12px;line-height:1.8;margin:0 0 16px}
.arcade-reveal{position:absolute;z-index:5;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;background:#101b2bcc;backdrop-filter:blur(6px);gap:10px;animation:arcade-arrive .4s cubic-bezier(.2,.8,.3,1);overflow-wrap:anywhere}
.arcade-reveal[hidden]{display:none}.reveal-star{font-size:54px;line-height:1;color:#d9ff75;text-shadow:0 0 30px #d9ff7555}.reveal-label{color:#b6c8de;font-size:12px;letter-spacing:1px}.reveal-title{color:#fff;font-size:clamp(25px,4vw,44px);line-height:1.25;max-width:100%;font-weight:850}.reveal-sub{font-size:12px;color:#afc2d9;line-height:1.8}
@keyframes arcade-arrive{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
.game-controls-teams{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0 30px 25px;margin-top:-36px;position:relative;perspective:900px}
.decision-game .portal-door{--portal:#d9ff75;position:relative;background:#0b1525!important;border:1px solid #537052!important;box-shadow:0 0 25px #d9ff7510!important;padding:0!important;border-radius:54px 54px 13px 13px!important;min-height:180px;color:#d9ff75!important;overflow:visible;perspective:600px}
.decision-game .portal-door:nth-child(2){--portal:#b1a5ff;border-color:#73689e!important}.decision-game .portal-door:nth-child(3){--portal:#ff9b83;border-color:#926356!important}
.portal-panel{position:absolute;inset:4px 4px 38px;border-radius:50px 50px 7px 7px;border:1px solid var(--portal);background:linear-gradient(135deg,#304047,#172535);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;transform-origin:left center;transition:transform 1s cubic-bezier(.2,.8,.4,1);box-shadow:inset 0 0 20px #ffffff09}
.portal-panel:after{content:'';position:absolute;right:10px;top:62%;width:6px;height:6px;border-radius:50%;background:var(--portal);box-shadow:0 0 8px var(--portal)}
.portal-symbol{color:var(--portal);font-size:38px;font-weight:400;line-height:1}.portal-number{font-family:monospace;font-size:12px;color:var(--portal);letter-spacing:3px}.portal-label{position:absolute;bottom:11px;left:0;right:0;color:var(--portal);font-size:11px}
.decision-game .portal-door.selected{background:radial-gradient(ellipse,var(--portal),#344551)!important;opacity:1!important;box-shadow:0 0 32px #d9ff7533!important}.portal-door.selected .portal-panel{transform:rotateY(-108deg)}.decision-game[data-portal] .portal-door:not(.selected){opacity:.3}
.race-roster{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;padding:14px 24px 0}.race-roster .race-lane{display:inline-flex;align-items:center;gap:5px;margin:0;max-width:100%;font-size:10px;color:#bed0e2;background:#233247;border-radius:20px;padding:5px 9px;overflow-wrap:anywhere}.race-roster .race-lane:before{content:'';background:var(--racer);width:6px;height:6px;border-radius:50%;flex-shrink:0}
.food-categories,.food-candidates{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.food-categories label,.food-candidates label{display:flex;gap:6px;align-items:center;min-height:44px;border:1px solid #d7dfec;border-radius:10px;padding:7px 10px;font-size:14px}.food-candidates{max-height:290px;overflow:auto}.food-actions{display:flex;flex-wrap:wrap;gap:8px}.food-result{text-align:center}.food-result h3{font-size:clamp(28px,5vw,46px);overflow-wrap:anywhere}.food-result p{color:#52627a}.food-edit{display:flex;gap:8px;margin-top:10px}.food-edit input{min-width:0;flex:1}.food-edit button{flex-shrink:0}.party-tabs{flex-wrap:wrap}
@media(max-width:400px){.arcade-top{padding:12px 14px 0;gap:6px}.arcade-badge{font-size:9px;letter-spacing:.5px}.arcade-heading{padding:16px 14px 10px}.arcade-heading>p{font-size:12px}.arcade-hud{margin:7px 14px 0}.arcade-hud strong{font-size:10px}.game-actions{padding-left:12px;padding-right:12px;gap:6px}.decision-game .game-controls-food button{font-size:10px;padding:12px 2px}.game-controls-teams{gap:8px;padding:0 18px 20px;margin-top:-20px}.decision-game .portal-door{min-height:128px}.portal-symbol{font-size:27px}.portal-label{font-size:10px}.arcade-reveal{padding:16px}.reveal-star{font-size:35px}.reveal-title{font-size:26px}.food-edit{flex-wrap:wrap}.food-edit input{flex-basis:100%}.arcade-rules{padding:0 14px}}
@media(prefers-reduced-motion:reduce){.decision-game *{animation:none!important;transition:none!important}}

.portal-door.scanning{filter:brightness(1.35);box-shadow:0 0 28px #d9ff7540!important}.decision-game .portal-door{cursor:default}

.arcade-finalists{display:flex;gap:7px;justify-content:center;padding:0 24px 15px;counter-reset:menu}.arcade-finalists>span{flex:1;min-width:0;max-width:50%;color:#bacbdf;background:#22334a;border:1px solid #3b5068;padding:9px 5px;border-radius:10px;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.arcade-finalists>span:before{counter-increment:menu;content:'0' counter(menu);display:block;color:#8399b2;font:10px monospace;margin-bottom:4px}.arcade-finalists>span.chosen{color:#d9ff75;border-color:#d9ff75;background:#354436}.arcade-climax .arcade-state{color:#ffad8c}.arcade-climax .arcade-time span{background:#ffad8c}

@media(max-width:400px){.arcade-order .arcade-reveal{padding:12px;gap:6px}.arcade-order .reveal-star{display:none}.arcade-order .reveal-sub{font-size:11px}}

.contest-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:16px 20px 0}.contest-entry{display:flex;align-items:center;gap:6px;min-width:0;background:#203147;border:1px solid #354a63;border-radius:10px;padding:8px;font-size:11px;text-align:left}.contest-entry>span{flex:1;min-width:0;overflow-wrap:anywhere}.contest-entry:before{content:'';flex-shrink:0;width:6px;height:6px;border-radius:50%;background:var(--racer)}.arrival-label{font-size:10px;color:#92a7c0;white-space:nowrap}.contest-entry.arrived{border-color:var(--racer)}.contest-entry.arrived .arrival-label{color:var(--racer)}.contest-sample{font-size:11px;color:#9fb2cc;margin:12px 20px 0;line-height:1.6}
@media(max-width:400px){.contest-roster{padding:12px 12px 0;gap:5px}.contest-entry{font-size:10px;padding:7px 5px}.arcade-reveal{gap:6px;padding:12px}.arcade-reveal .reveal-star{display:none}}

.menu-slot{margin:24px 20px 20px;border:2px solid #78875b;border-radius:24px;background:linear-gradient(145deg,#344944,#17263b);padding:18px 14px 14px;box-shadow:inset 0 0 0 5px #152335,0 8px 0 #081323}.slot-sign{color:#d9ff75;letter-spacing:3px;font:bold 16px monospace;text-align:center;margin:0 0 20px}.slot-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.slot-reel{min-width:0}.slot-window{position:relative;height:240px;overflow:hidden;background:#f0f2de;border:3px solid #101c2c;border-radius:12px}.slot-window:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(#17263b99,transparent 34%,transparent 67%,#17263b99)}.slot-strip{will-change:transform}.slot-item{height:80px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;padding:7px 4px;border-bottom:1px solid #ced5c1;color:#243a38;overflow:hidden}.slot-food-icon{font-size:16px;color:#769141;line-height:18px}.slot-menu-name{font-weight:750;font-size:14px;line-height:17px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.slot-pick-line{position:absolute;left:0;right:0;top:77px;height:82px;pointer-events:none;border-top:3px solid #f79373;border-bottom:3px solid #f79373;box-shadow:inset 0 0 14px #ffad6033;z-index:1}.slot-reel.stopped .slot-window{border-color:#d9ff75;box-shadow:0 0 16px #d9ff7533}.slot-reel.stopped .slot-pick-line{border-color:#a3bc55}.slot-column-status{color:#b8c9df;font-size:11px;line-height:1.5;text-align:center;margin:10px 0 0;min-height:34px;overflow-wrap:anywhere}.slot-reel.stopped .slot-column-status{color:#d9ff75}.slot-note{color:#b4c4d5;font-size:12px;text-align:center;line-height:1.6;margin:12px 0 0}
@media(max-width:400px){.menu-slot{margin:16px 12px;padding:16px 8px 10px}.slot-columns{gap:5px}.slot-menu-name{font-size:11px;line-height:15px}.slot-sign{font-size:13px;letter-spacing:2px}.slot-column-status{font-size:10px}}

.reveal-roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;max-height:240px;overflow:auto;padding:12px 4px;overscroll-behavior:contain}
.reveal-roster:empty{display:none}.winner-arrival,.arrival-team{background:#243448;border:1px solid #536579;border-radius:12px;padding:10px;color:#f1f8ef;overflow-wrap:anywhere}
.winner-arrival{display:flex;align-items:center;gap:10px;animation:arrival-pop .35s ease-out}.winner-arrival span{color:#d9ff75;font-weight:800}.arrival-team h4{color:#d9ff75;margin:0 0 8px}.arrival-team ul{padding:0;list-style:none;margin:0}.team-arrival{padding:4px 0;animation:arrival-pop .35s ease-out}
@keyframes arrival-pop{from{opacity:0;transform:translateY(12px) scale(.95)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.winner-arrival,.team-arrival{animation:none}}

.roulette-candidates-label{color:#c3d1cd!important;font-size:13px!important;margin:14px 0 8px!important}
.roulette-candidates{display:flex;flex-wrap:wrap;gap:7px;max-height:170px;overflow:auto;padding:5px 2px;overscroll-behavior:contain}
.roulette-candidate{border:1px solid #4b6261;border-radius:20px;padding:6px 11px;font-size:13px;color:#d5ded9;background:#213734;overflow-wrap:anywhere;max-width:100%}
.roulette-candidate.active{color:#182317;background:#d9ff75;border-color:#eaffb1;box-shadow:0 0 14px #d9ff7540;font-weight:800}

.secret-cards .sc-deck-zone{height:172px;position:relative;display:grid;place-items:center}.secret-cards .sc-deck{position:relative;width:82px;height:112px}.secret-cards .sc-deck-card{position:absolute;inset:0;border:1px solid #b6d490;border-radius:10px;background:repeating-linear-gradient(45deg,#263d38 0px,#263d38 7px,#2e4840 7px,#2e4840 8px);box-shadow:0 8px 16px #0005;display:grid;place-items:center;color:#def3b1;font-size:29px}.secret-cards .sc-deck-card:after{content:'';position:absolute;inset:7px;border:1px solid #b6d49055;border-radius:5px}.secret-cards .sc-teams{display:grid;grid-template-columns:repeat(var(--teams,2),minmax(0,1fr));gap:20px}.secret-cards .sc-team{min-width:0;border-top:1px solid #8caa9144;padding-top:15px}.secret-cards .sc-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.secret-cards .sc-heading h2{font-size:16px;letter-spacing:-.03em;margin:0;color:var(--accent)}.secret-cards .sc-heading small{color:#a3b2aa;font-size:12px}.secret-cards .sc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.secret-cards .sc-slot{aspect-ratio:1.28;perspective:900px;border-radius:12px;background:#0a151b44;border:1px dashed #71827544;position:relative}.secret-cards .sc-card{position:absolute;inset:-1px;opacity:0;transform-style:preserve-3d;border-radius:12px;will-change:transform;z-index:1}.secret-cards .sc-face{position:absolute;inset:0;backface-visibility:hidden;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column}.secret-cards .sc-back{border:1px solid #aeca8a;background:repeating-linear-gradient(45deg,#263d38 0px,#263d38 9px,#314c43 9px,#314c43 10px);color:#d9edaa;box-shadow:0 7px 12px #0004}.secret-cards .sc-back:before{content:'';position:absolute;inset:8px;border:1px solid #c6daa257;border-radius:6px}.secret-cards .sc-back span{font-size:clamp(24px,4vw,38px);font-family:serif}.secret-cards .sc-front{transform:rotateY(180deg);background:linear-gradient(140deg,#ffffff30,transparent 70%),var(--accent);color:#172720;border:2px solid var(--accent);box-shadow:0 0 25px #d2f59c18}.secret-cards .sc-front strong{font-size:clamp(16px,2.7vw,27px);letter-spacing:-.04em;overflow-wrap:anywhere;padding:8px;text-align:center}.secret-cards .sc-front small{font-size:10px;color:#34483b;letter-spacing:.13em}.secret-cards .sc-card.sc-revealed{opacity:1;transform:rotateY(180deg)}.secret-cards .sc-slot.sc-current{box-shadow:0 0 0 2px var(--accent),0 0 28px #deffae44}.secret-cards .sc-progress{height:3px;background:#4c635355;margin-top:24px;border-radius:3px;overflow:hidden}.secret-cards .sc-progress span{display:block;height:100%;background:#ddf9a2;width:0}

.secret-cards{padding:14px;background:radial-gradient(ellipse at top,#345048,#14242a);border:1px solid #456052;border-radius:16px}
.secret-cards .sc-teams{grid-template-columns:repeat(2,minmax(0,1fr));max-height:520px;overflow:auto;padding:8px;overscroll-behavior:contain}
.secret-cards .sc-front,.secret-cards .sc-back{position:absolute;inset:0;backface-visibility:hidden;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column}
.secret-cards .sc-heading h4{margin:0;color:var(--accent);font-size:16px}
.secret-cards .sc-front strong{font-size:clamp(14px,2vw,23px);line-height:1.3}
.secret-cards .team-arrival{animation:none;padding:8px}
.secret-cards .sc-front small{color:#34483b}
.secret-cards .sc-revealed{opacity:1}
@media(max-width:600px){.secret-cards{padding:10px}.secret-cards .sc-teams{grid-template-columns:1fr;gap:20px}.secret-cards .sc-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.secret-cards .sc-slot{aspect-ratio:.85}.secret-cards .sc-deck-zone{height:150px}.secret-cards .sc-front strong{font-size:15px;padding:5px}}

/* Shared violet stage finish; team colors fill the revealed card face. */
.arcade-food,.arcade-draw,.arcade-teams{--lime:#d5c8ff;border-color:#494367;background:linear-gradient(145deg,#262342,#111b30);box-shadow:0 16px 40px #30265924}
.arcade-food .arcade-hud,.arcade-draw .arcade-hud,.arcade-teams .arcade-hud{border-color:#57516d}
.arcade-food .arcade-time span,.arcade-draw .arcade-time span,.arcade-teams .arcade-time span{background:linear-gradient(90deg,#ab94ff,#ffe3a8)}
.arcade-food .arcade-reveal,.arcade-draw .arcade-reveal,.arcade-teams .arcade-reveal{background:#16182cba;backdrop-filter:blur(3px)}
.arcade-food .reveal-title,.arcade-draw .reveal-title,.arcade-teams .reveal-title{color:#ffedc6;text-shadow:0 3px 15px #0006}
.arcade-food .roulette-candidate{background:#252b46;border-color:#535775;color:#e5e2f3}
.arcade-food .roulette-candidate.active{background:#e9dcff;color:#30234f;border-color:#f3e9ff;box-shadow:0 0 16px #b397ff33}
.arcade-draw .winner-arrival{background:linear-gradient(135deg,#37304e,#202b43);border-color:#847495;box-shadow:0 4px 10px #0002}
.arcade-draw .winner-arrival span{color:#ffdfa0}
.secret-cards{background:radial-gradient(ellipse at top,#393352,#182038);border-color:#655576;padding:14px}
.secret-cards .sc-deck-zone{background:radial-gradient(ellipse at 50% 65%,#bba0ed1a,transparent 65%);perspective:none}
.secret-cards .sc-deck{width:76px;height:106px}
.secret-cards .sc-deck-card,.secret-cards .sc-back{border:1px solid #e4c998;background:repeating-linear-gradient(45deg,#35304f 0,#35304f 8px,#665378 8px,#665378 9px);color:#f6dfb1;box-shadow:0 7px 12px #0005,inset 0 0 0 3px #252339}
.secret-cards .sc-deck-card:after,.secret-cards .sc-back:before{border-color:#e2cdaa88;inset:7px}
.secret-cards .sc-teams{gap:16px}
.secret-cards .sc-team{border-color:#aca0ca33}
.secret-cards .sc-heading small{color:#bbb6cf}
.secret-cards .sc-slot{background:#100f2344;border-color:#80799d44;perspective:none}
.secret-cards .sc-card{transform-style:flat}
.secret-cards .sc-front,.secret-cards .sc-back{backface-visibility:visible}
.secret-cards .sc-front{transform:none;background:linear-gradient(135deg,#ffffff8c,transparent 62%),var(--accent);color:#24233d;border:1px solid #ffffff99;box-shadow:0 6px 14px #0004,inset 0 0 0 3px #ffffff22}
.secret-cards .sc-front small{color:#49425d;letter-spacing:0;font-weight:750}
.secret-cards .sc-front strong{line-height:1.35;letter-spacing:-.025em}
.secret-cards .sc-card.sc-revealed{transform:none}
.secret-cards .sc-slot.sc-current{box-shadow:0 0 0 2px var(--accent),0 0 22px #bca1e944}
@media(max-width:600px){.secret-cards .sc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.secret-cards .sc-slot{aspect-ratio:1.25}.secret-cards .sc-front strong{font-size:16px}.secret-cards .sc-deck-zone{height:150px}}


@media(max-width:600px){.secret-cards .sc-teams{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.secret-cards .sc-grid{grid-template-columns:1fr;gap:8px}.secret-cards .sc-slot{aspect-ratio:1.65}.secret-cards .sc-heading{gap:4px;margin-bottom:10px}.secret-cards .sc-heading h4{font-size:14px}.secret-cards .sc-heading small{font-size:11px}}

.decision-game{--lime:#d5c8ff;border-color:#494367;background:linear-gradient(145deg,#262342,#111b30)}.decision-game .arcade-time span{background:linear-gradient(90deg,#ab94ff,#ffe3a8)}.arcade-order .arcade-reveal{background:#16182cba;backdrop-filter:blur(3px)}.arcade-order .reveal-title{color:#ffedc6}.risk-arena .risk-scene{background:radial-gradient(ellipse at center,#363350,#151d32)}.risk-arena .arcade-hud{border-color:#57516d}

/* Full scene: animated sprites, scrolling landscape, and finish camera. */
.decision-game.obstacle-race{background:#f4f6ff;color:#2d3d5b;border:1px solid #cfd8ee;border-radius:22px;box-shadow:0 12px 32px #34436517;text-align:left}
.obstacle-race .or-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;background:#fff}
.decision-game.obstacle-race .or-header h3{margin:0;color:#344261;font-size:20px;line-height:1.35;letter-spacing:-.025em;overflow-wrap:anywhere;font-weight:750}
.decision-game.obstacle-race .arcade-sound{background:#f1f3fc;color:#465573;border:1px solid #d5dcec;font-size:12px;min-height:44px}
.obstacle-race>canvas{display:block;width:100%;height:auto;background:#d4e8fc}
.obstacle-race .or-roster{padding:12px 14px;margin:0;background:#f4f6ff;display:flex;gap:6px;justify-content:flex-start}
.obstacle-race .race-lane{background:#fff;color:#405273;border:1px solid #dbe2f1;font-size:12px;max-width:calc(50% - 4px);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:7px 10px}
.obstacle-race .race-lane.or-arrived{background:#fff3cf;border-color:#e1c685;color:#725824}
.obstacle-race .or-scope{margin:0;padding:0 14px 8px;font-size:12px;color:#5f6f8b}
.decision-game.obstacle-race .game-skip{color:#546683;display:block;margin:0 auto 6px;font-size:12px;min-height:44px}
@media(max-width:400px){.obstacle-race .or-header{padding:12px}.decision-game.obstacle-race .or-header h3{font-size:18px}.obstacle-race .or-roster{padding:10px}.obstacle-race .race-lane{font-size:12px;padding:6px 8px}}

.decision-game.mini-game{background:#f4f6ff;color:#35435e;border:1px solid #ccd5e9;border-radius:22px;box-shadow:0 12px 32px #34436517;text-align:left;overflow:hidden}
.mini-game .mini-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;background:#fff}
.decision-game.mini-game h3{margin:0;color:#35435e;font-size:20px;line-height:1.35;overflow-wrap:anywhere;font-weight:750}
.decision-game.mini-game .arcade-sound{background:#f1f3fc;color:#465573;border:1px solid #d5dcec;font-size:12px;min-height:44px}
.mini-game>canvas{display:block;width:100%;height:auto}.mini-revealed{display:flex;flex-wrap:wrap;gap:6px;padding:12px 14px;max-height:125px;overflow:auto;scrollbar-width:thin;background:#f4f6ff}.mini-revealed:empty{display:none}.mini-revealed span{padding:6px 9px;border-radius:9px;background:#fff;color:#465675;font-size:13px;border:1px solid #d7dfed;max-width:100%;overflow-wrap:anywhere}.mini-revealed .active{background:#fff0c8;border-color:#d8bb82;color:#695229}.decision-game.mini-game .game-skip{color:#546683;display:block;margin:0 auto 6px;font-size:12px;min-height:44px}
@media(max-width:400px){.mini-game .mini-header{padding:12px}.decision-game.mini-game h3{font-size:18px}}
/* Keep the complete game inside the visible viewport, without cropping its artwork. */
.calm-theme .party-stage.game-stage-active{min-height:0;padding:0;border:0;background:transparent;scroll-margin-top:var(--game-scroll-gap,90px);overflow:visible}
.calm-theme .party-stage.game-stage-active>.stage-top{padding:0 2px 6px;flex-wrap:nowrap;min-height:44px}
.calm-theme .party-stage.game-stage-active>.stage-top h2{margin:0;font-size:15px}
.calm-theme .party-stage.game-stage-active>.stage-content{padding:0;min-height:0;flex:none;justify-content:flex-start}
.calm-theme .party-stage.game-stage-active>:is(.stage-footer,#stage-pool,#copy-status,#food-status,#ladder-status,#russian-status){display:none}
.calm-theme .party-stage.game-stage-active:fullscreen{padding:8px;overflow:hidden;background:#eef1fa;display:block;height:100dvh}
.calm-theme .party-stage.game-stage-active:fullscreen>.stage-content{max-width:none}
.calm-theme .decision-game:is(.mini-game,.obstacle-race){border-radius:18px;background:#e9ecf7}
.calm-theme .decision-game:is(.mini-game,.obstacle-race)>canvas{display:block;max-width:100%;margin:0 auto;object-fit:contain}
.calm-theme .decision-game :is(.mini-header,.or-header){padding:4px 10px;gap:8px;min-height:52px}
.calm-theme .decision-game :is(.mini-header,.or-header) h3{font-size:15px;line-height:1.3;letter-spacing:0;min-width:0}
.game-header-controls{display:flex;gap:4px;flex-shrink:0;align-items:center}
.calm-theme .decision-game .game-header-controls .game-skip{margin:0;padding:8px;font-size:12px;min-height:44px;text-decoration:none;border:1px solid #d4dcec;border-radius:10px;background:#f1f3fc;color:#435473}
.calm-theme .decision-game .game-header-controls .arcade-sound{padding:7px;font-size:11px;min-height:44px;border-radius:10px}
.calm-theme .decision-game :is(.mini-revealed,.or-roster){flex-wrap:nowrap;align-items:center;justify-content:flex-start;max-height:none;height:44px;padding:5px 9px;overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain;scrollbar-width:thin;background:#f8f9ff}
.calm-theme .decision-game .mini-revealed:empty{display:flex}
.calm-theme .decision-game :is(.mini-revealed span,.race-lane){flex:0 0 auto;max-width:none;white-space:nowrap;font-size:13px;line-height:20px;padding:4px 8px;overflow:visible}
.calm-theme .obstacle-race .or-scope{font-size:11px;padding:3px 10px 5px;line-height:1.4}
@media(max-width:350px){.calm-theme .decision-game :is(.mini-header,.or-header){padding-inline:6px;gap:4px}.calm-theme .decision-game :is(.mini-header,.or-header) h3{font-size:13px}.calm-theme .decision-game .game-header-controls .game-skip{padding-inline:6px;font-size:11px}}
/* Readable final results: full text, stable columns, consistent type and spacing. */
.calm-theme .party-stage:not(.game-stage-active) .stage-content{gap:12px;padding:18px 0;justify-content:flex-start}
.calm-theme .party-stage .stage-meta{margin:0;font-size:14px;line-height:1.6;color:#69718c}
.calm-theme .party-stage .winner-list{width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:10px}
.calm-theme .party-stage .winner,.calm-theme .party-stage .winner:only-of-type{min-width:0;width:100%;padding:20px 16px;font-size:clamp(22px,2.6vw,32px);line-height:1.45;color:#493d83;background:#fffaf0;border:1px solid #e8ddbd;word-break:normal;overflow-wrap:anywhere;letter-spacing:-.025em}
.calm-theme .party-stage .team-card{background:var(--team-bg,#eee7ff);padding:14px;border:1px solid #ffffff;border-radius:14px}
.calm-theme .party-stage .team-card h3{color:#443e64;font-size:17px;line-height:1.4;margin-bottom:12px}
.calm-theme .party-stage .team-card li{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:7px 0;border-top:1px solid #ffffff88;font-size:16px;line-height:1.5}
.team-member-name{flex:1;min-width:0;overflow-wrap:anywhere}
.calm-theme .party-stage .team-pin{flex-shrink:0;display:flex;align-items:center;gap:4px;min-height:28px;margin:0;font-size:12px;white-space:nowrap}
.calm-theme .party-stage .order-list{width:100%;gap:8px}
.calm-theme .party-stage .order-list li{align-items:flex-start;gap:12px;padding:12px;font-size:18px;line-height:1.5}
.calm-theme .party-stage .order-list b{flex:0 0 30px;text-align:center;border-radius:8px;background:#eee8fb;color:#6652a4;line-height:28px}
.calm-theme .party-stage .order-list span{flex:1;min-width:0;overflow-wrap:anywhere}
.calm-theme .party-stage .ladder-outcomes{list-style:none;padding:0;margin:0;width:100%;display:grid;gap:8px}
.calm-theme .party-stage .ladder-outcomes li{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:8px;align-items:center;background:#fff;border:1px solid #dde2ef;border-radius:12px;padding:12px;font-size:17px;line-height:1.5;text-align:left}
.calm-theme .party-stage .ladder-outcomes strong{color:#65509d;font:inherit;font-weight:700;overflow-wrap:anywhere}
.ladder-result-paths{width:100%;border:1px solid #dce1ef;border-radius:12px;background:#fff}
.ladder-result-paths summary{padding:12px;min-height:44px;cursor:pointer;font-size:14px}
.calm-theme .party-stage .risk-result-penalty{margin:0;padding:12px 16px;text-align:center;border:1px solid #e2dcee;border-radius:12px;background:#fff;font-size:18px;line-height:1.5;color:#625276}
.calm-theme .party-stage .stage-footer{gap:8px;margin-top:8px}
.calm-theme .party-stage .stage-footer button{font:inherit;font-size:14px;min-height:44px;padding:10px 12px;line-height:1.35;white-space:normal}
@media(max-width:400px){.calm-theme .party-stage .team-grid{grid-template-columns:1fr}.calm-theme .party-stage .ladder-outcomes li{font-size:16px;padding:10px;gap:6px}}
.calm-theme .party-stage .ladder-outcomes{grid-template-columns:1fr}

/* Approved flat animation stage. */
.calm-theme .decision-game.mini-game{background:#f7f9fe;border-color:#d5dcec;box-shadow:0 8px 24px #34436512}
.calm-theme .mini-game>canvas{background:#f7f9fe;border-block:1px solid #e4e8f2}
.calm-theme .mini-game .mini-revealed{background:#fff}
.calm-theme .mini-game .mini-revealed span{font-size:13px;font-weight:500}
.calm-theme .mini-game .mini-revealed .active{background:#eee5fa;border-color:#b5a0d6;color:#59408a}
.calm-theme .mini-game .game-header-controls button:focus-visible{outline:3px solid #7964bb;outline-offset:2px}
@media(max-width:400px){.calm-theme .mini-game .mini-revealed span{font-size:12px}}

/* custom-ui.css */
.custom-panel{border:1px solid #d7dfeb;border-radius:12px;padding:12px;margin:14px 0;text-align:left}.custom-panel summary{cursor:pointer;font-weight:700}.custom-panel label{display:block;margin:12px 0 5px}.custom-panel input,.custom-panel select,.bulk-candidates{width:100%;min-height:42px;padding:9px;border:1px solid #b9c5d6;border-radius:8px;font:inherit}.custom-actions{display:flex;flex-wrap:wrap;gap:6px}.custom-panel button,.share-dialog button,.shared-receipt button,#result-share{padding:9px 12px;margin:5px 5px 5px 0;border:1px solid #bac7da;border-radius:8px;background:#f6f8ff;color:#233757;font:inherit;cursor:pointer}.custom-panel button:disabled{opacity:.5}.candidate-editor{max-height:300px;overflow:auto;margin-top:10px}.candidate-editor>div{display:flex;gap:6px;align-items:center}.candidate-editor input{min-width:0}.candidate-editor button{flex-shrink:0}.share-dialog{width:min(560px,calc(100% - 28px));max-height:85vh;overflow:auto;border:1px solid #b9c5d6;border-radius:16px;padding:22px;color:#172237}.share-dialog::backdrop{background:#101b33aa}.share-dialog pre,.shared-receipt pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;text-align:left}.share-dialog textarea{width:100%;height:75px;overflow-wrap:anywhere}.share-dialog p,.shared-receipt p{font-size:13px;line-height:1.6}.shared-receipt{padding:18px;margin:12px 0;background:#edf5ff;border:1px solid #b5cce8;border-radius:12px}.shared-receipt h2{font-size:20px}.bulk-candidates{min-height:120px;resize:vertical}.custom-panel :focus-visible,.share-dialog :focus-visible{outline:3px solid #345afa;outline-offset:2px}

@media(max-width:600px){.party-page .party-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.party-page .party-tabs a{word-break:keep-all;white-space:normal}}

.decision-game h3{overflow-wrap:anywhere;max-width:100%}

/* game-setup.css */
.setup-steps{display:flex;list-style:none;margin:0 0 20px;padding:0;gap:6px}.setup-steps li{display:flex;align-items:center;gap:5px;flex:1;font-size:12px;color:#526078}.setup-steps b{display:grid;place-items:center;background:#e8edff;color:#3155f5;border-radius:50%;width:24px;height:24px;flex-shrink:0}.quick-setup{display:flex;gap:8px;flex-wrap:wrap;padding:12px;background:#f3f6ff;border:1px solid #dce4fa;border-radius:12px;margin:10px 0}.quick-setup label{display:flex;align-items:center;gap:8px;width:100%;font-size:13px;font-weight:700}.quick-setup input{width:70px;min-height:40px;box-sizing:border-box;border:1px solid #a9b7d1;border-radius:8px;padding:6px;font:inherit}.quick-setup button,.number-stepper button{min-height:44px;border:1px solid #bac7de;background:white;color:#243653;border-radius:8px;padding:8px 12px;font:inherit;cursor:pointer}.quick-status:empty{display:none}.quick-status{width:100%;margin:0;font-size:12px;color:#465975}.setup-summary{padding:12px;border-radius:10px;background:#edf8f4;color:#165e49;font-size:14px;font-weight:600;overflow-wrap:anywhere}.number-stepper{display:flex;gap:6px;align-items:center}.number-stepper input{min-width:0;width:76px!important;text-align:center}.number-stepper button{width:44px;font-size:20px}.party-input textarea{min-height:150px}.party-layout>section{min-width:0}.quick-setup :focus-visible,.number-stepper :focus-visible{outline:3px solid #4669ff;outline-offset:2px}@media(max-width:420px){.setup-steps li{font-size:11px}.setup-steps{gap:3px}.quick-setup{padding:10px}}
.entry-editor{margin:12px 0 22px;min-width:0}.entry-editor h2{margin:0 0 12px;font-size:16px}.entry-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.entry-toolbar>p{font-size:13px;line-height:1.7;color:#617087;margin:0}.entry-stepper{display:flex;align-items:center;gap:6px;width:100%;font-size:14px}.entry-stepper>span{margin-right:auto;font-weight:600}.entry-stepper input{width:66px!important;min-height:44px;text-align:center;padding:8px}.entry-stepper button{width:44px;padding:8px;font-size:20px}.entry-toolbar>button,.entry-add,.entry-undo{font:inherit;font-size:13px;min-height:44px}.entry-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;max-height:420px;overflow:auto;padding:3px}.entry-row{display:flex;align-items:center;gap:6px;min-width:0;padding:8px;background:#f5f7fc;border:1px solid #dbe2f0;border-radius:12px}.entry-index{font-size:12px;color:#65738b;min-width:18px;text-align:center}.entry-row input{min-width:0;width:100%;background:white;font:inherit;font-size:15px;padding:10px 8px;height:44px}.entry-remove{flex-shrink:0;width:32px;min-height:44px;padding:4px!important;border:0;font-size:22px!important;color:#64748b;background:transparent}.entry-row input[aria-invalid=true]{border-color:#b52c3a;background:#fff5f5}.entry-add{width:100%;margin-top:10px;border-style:dashed!important;color:#3155f5}.entry-status{font-size:13px;color:#53617b;line-height:1.6;margin:8px 0}.entry-status:empty{display:none}.entry-bulk{margin-top:14px;border-top:1px solid #e0e5ee;padding-top:12px}.entry-bulk summary{cursor:pointer;font-size:14px;font-weight:600;min-height:32px}.entry-bulk label{display:block;font-size:13px;color:#617087;margin:10px 0}.entry-bulk textarea{width:100%;font:inherit;font-size:14px;min-height:120px!important}.entry-undo{margin-top:10px}.entry-grid :focus-visible{outline-offset:1px}@media(max-width:600px){.entry-grid{grid-template-columns:1fr}}

.ladder-entry{margin:12px 0 18px;min-width:0}.ladder-entry h3{margin:0 0 12px;font-size:16px}.ladder-entry-head,.ladder-entry-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px;gap:6px}.ladder-entry-head{font-size:13px;font-weight:650;padding:0 6px 8px}.ladder-entry-rows{max-height:350px;overflow:auto;padding:3px;display:grid;gap:8px}.ladder-entry-pair{padding:6px;background:#f5f7fc;border:1px solid #dbe2f0;border-radius:10px;align-items:center}.ladder-entry-pair .entry-row{display:contents}.ladder-entry-pair .entry-index{display:none}.ladder-entry-pair .entry-row:first-child input{grid-column:1;grid-row:1}.ladder-entry-pair .entry-row:nth-child(2) input{grid-column:2;grid-row:1}.ladder-entry-pair .entry-remove{grid-column:3;grid-row:1}.ladder-entry-pair input{padding:10px 6px!important;font-size:14px!important}.ladder-bulk{border-top:1px solid #e0e5ee;padding-top:12px;margin-top:14px}.ladder-bulk summary{cursor:pointer;font-size:14px;font-weight:600;min-height:36px}.ladder-bulk label{display:block;font-size:13px;margin:12px 0 8px}.ladder-entry .hint{font-size:13px;margin:10px 0}.ladder-entry .entry-status:empty{display:none}

.ladder-entry-head{display:none}.ladder-entry-rows{max-height:440px}.ladder-entry-pair{grid-template-columns:minmax(0,1fr) 32px;gap:8px;padding:10px}.ladder-entry-pair .entry-row{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;padding:0;border:0;background:transparent}.ladder-entry-pair .entry-row:first-child{grid-column:1;grid-row:1}.ladder-entry-pair .entry-row:nth-child(2){grid-column:1;grid-row:2}.ladder-entry-pair .entry-row::before{font-size:12px;font-weight:600;color:#53617b;content:'참가자'}.ladder-entry-pair .entry-row:nth-child(2)::before{content:'결과 항목'}.ladder-entry-pair .entry-row input{grid-column:1;grid-row:2}.ladder-entry-pair .entry-remove{grid-column:2;grid-row:1 / span 2;align-self:start}#ladder-form .saved-rosters{font:inherit;margin:16px 0;padding:14px;border:1px solid #dbe2f0;border-radius:12px;background:white}#ladder-form .saved-rosters summary{font-family:inherit;font-size:14px;font-weight:600;line-height:1.6;cursor:pointer;min-height:32px}#ladder-form .saved-rosters .hint{font-family:inherit;font-size:13px;line-height:1.7}#ladder-form .saved-rosters input,#ladder-form .saved-rosters button{font-family:inherit;font-size:14px}

.ladder-entry-pair .entry-row:first-child input,.ladder-entry-pair .entry-row:nth-child(2) input{grid-column:1;grid-row:2}

.ladder-separated-rows{display:grid;gap:8px;padding:3px}.ladder-results-group{margin-top:24px}.ladder-separated-rows .entry-row{padding:8px}.ladder-separated-rows .entry-row input{font-size:15px}.ladder-names-group,.ladder-results-group{min-width:0}

.stage-empty h3:empty,.pool-line:empty{display:none}

/* Compact, readable item fields for the six decision tools. */
.calm-theme:has(#party-form,#food-form,#ladder-form,#russian-form) .entry-editor{max-width:520px;margin:12px auto 18px}
.calm-theme:has(#party-form,#food-form,#ladder-form,#russian-form) .entry-grid{gap:6px;padding:3px}
.calm-theme:has(#party-form,#food-form,#ladder-form,#russian-form) .entry-row{padding:5px 7px;border-radius:10px;background:#f3f5fb;border-color:#d9dfed}
.calm-theme:has(#party-form,#food-form,#ladder-form,#russian-form) .entry-row input{font-family:inherit;font-size:16px!important;font-weight:400;line-height:1.4;height:44px;min-height:44px;padding:8px 10px!important;color:#26344b;background:#fff}
.calm-theme:has(#party-form,#food-form,#ladder-form,#russian-form) .entry-row input::placeholder{color:#748095;opacity:1}
.calm-theme:has(#party-form,#food-form,#ladder-form,#russian-form) .entry-status{font-size:14px}

/* tool-actions.css */
.tool-actions{position:sticky;top:8px;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;margin:0 0 20px;border:1px solid #d5dff4;border-radius:14px;background:#fffffff5;box-shadow:0 4px 18px #203a7210;font-family:ToolkitUI,system-ui,sans-serif}.tool-actions-name{font-size:15px;font-weight:650;color:#34445f;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-actions-buttons{display:flex;align-items:center;gap:10px;flex-shrink:0}.tool-actions button{min-height:50px;min-width:132px;padding:12px 22px;font:inherit;font-size:16px;font-weight:650;line-height:1.4;border-radius:10px;cursor:pointer}.tool-actions .tool-action-primary{background:#3155f5;color:white;border:1px solid #3155f5}.tool-actions .tool-action-primary:hover{background:#2445d5}.tool-actions .tool-action-result{background:#f0f4ff;color:#294ccc;border:1px solid #cfdaff}.tool-actions button:disabled{cursor:default;opacity:.5}.tool-actions-note{font-size:14px;color:#617087}.has-tool-actions .mobile-calculate,.has-tool-actions #mobile-list-button{display:none!important}.has-tool-actions.has-calculate-dock,.has-tool-actions.has-list{padding-bottom:0}.has-tool-actions :is(input,select,textarea,button,[tabindex],.output-panel,.party-stage,#result-content){scroll-margin-top:110px;scroll-margin-bottom:20px}.has-tool-actions form>button.primary,.has-tool-actions form>button.primary-button{min-height:52px;font-size:17px}.tool-actions.keyboard-open{position:relative;top:auto}@media(max-width:800px){.tool-actions{top:0;padding:10px;margin-bottom:16px;gap:0;border-radius:0 0 12px 12px}.tool-actions-name{display:none}.tool-actions-buttons{width:100%;gap:8px}.tool-actions button{min-width:0;min-height:50px;padding:11px 9px;font-size:15px;flex:1}.tool-actions .tool-action-primary{flex:1.3}.tool-actions-note{flex:1;text-align:center;font-size:13px}.has-tool-actions :is(input,select,textarea,button,[tabindex],.output-panel,.party-stage,#result-content){scroll-margin-top:92px}}@media print{.tool-actions{display:none}}

.has-tool-actions .list-toolbar{top:90px}.has-tool-actions #lottery-result{scroll-margin-top:110px}

.has-tool-actions #notice{bottom:22px}

.has-tool-actions .superseded-action,.has-tool-actions .superseded-repeat{display:none!important}.has-tool-actions .party-stage:fullscreen .superseded-repeat:not([hidden]){display:inline-block!important}

/* Reserve the action bar before enhancement to prevent a first-load content jump. */
.tool-actions-placeholder .tool-actions-buttons{min-height:52px}
.tool-actions-placeholder .tool-actions-buttons>span{height:42px;flex:1;border-radius:10px;background:#f2eff8}
.tool-actions-placeholder .tool-actions-buttons>span:first-child{flex:1.3}

/* calm-theme.css */
/* Original theme inspired by the friendly, softly colored daisyUI direction. */
:root{--blue:#6550bf;--ink:#292735;--muted:#696574;--line:#e2e0e8;--soft:#f0edf9;--theme-paper:#f7f7fa;--theme-shadow:0 5px 22px #29273507}
body.calm-theme{background:var(--theme-paper);color:var(--ink);font-family:ToolkitUI,system-ui,sans-serif}
.calm-theme :is(button,input,select,textarea){font-family:inherit}

.calm-theme h1{font-weight:780;letter-spacing:-1px}
.calm-theme :is(.page-title>p,.intro-copy,.hint,.feature-note,.result-caption,.stage-meta,.stage-empty p){color:var(--muted)}
.calm-theme header{background:#ffffff;border-color:var(--line)}
.calm-theme :is(.logo,.brand){color:#6550bf}
.calm-theme :is(.logo>span,.brand-symbol){background:#6550bf;border-radius:11px}
.calm-theme :is(.eyebrow,.back){color:#6550bf}
.calm-theme .home-intro{max-width:none;padding:30px 32px;margin:0 0 24px;border:1px solid #e2e0e8;border-radius:26px;background:#ffffff;box-shadow:var(--theme-shadow)}
.calm-theme .home-intro h1{font-size:clamp(28px,3.8vw,42px);max-width:800px}
.calm-theme #tool-search{border-radius:16px;border-color:#e2e0e8;background:#ffffff;box-shadow:none}
.calm-theme .categories{gap:8px}
.calm-theme .categories button{background:#fff;border:1px solid var(--line);border-radius:999px;color:#696574;min-height:44px}
.calm-theme .categories button[aria-pressed=true]{background:#6550bf;color:#fff;border-color:#6550bf}
.calm-theme .tool-card{border:1px solid #e2e0e8;border-radius:22px;background:white;box-shadow:var(--theme-shadow);transition:transform .16s ease,border-color .16s ease}
.calm-theme .tool-card:hover{transform:translateY(-3px);border-color:#a99ccc;box-shadow:0 9px 24px #29273510}
.calm-theme .tool-icon{background:#f0edf9;border-radius:14px;color:#6550bf}
.calm-theme .tool-card:nth-child(3n+2) .tool-icon{background:#fcf0dc;color:#825722}
.calm-theme .tool-card:nth-child(3n) .tool-icon{background:#eeeafa;color:#685493}
.calm-theme .tool-card p{color:#696574}
.calm-theme :is(.input-panel,.output-panel,.party-input,.planner,.lottery-input,.lottery-result,.result-content,.feature-box,.salary-section){border-color:var(--line);border-radius:22px;background:#fff;box-shadow:var(--theme-shadow)}
.calm-theme .party-stage{border-color:#e2e0e8;background:#f3f1f8;border-radius:24px;box-shadow:var(--theme-shadow)}
.calm-theme .party-stage:fullscreen{border-radius:0}
.calm-theme .party-tabs a{border-radius:999px;border-color:var(--line);background:white;color:#696574;font-weight:600}
.calm-theme .party-tabs a[aria-current=page]{background:#6550bf;border-color:#6550bf;color:white}
.calm-theme :is(.tool-actions){background:#ffffffFA;border-color:#e2e0e8;border-radius:17px;box-shadow:0 5px 20px #203d3210}
.calm-theme .tool-actions-name{color:#292735}
.calm-theme :is(.tool-action-primary,.primary,.primary-button){background:#6550bf;border-color:#6550bf;color:#fff;border-radius:14px;box-shadow:none}
.calm-theme :is(.tool-action-primary,.primary,.primary-button):hover{background:#514098}
.calm-theme .tool-action-result{background:#f0edf9;color:#6550bf;border-color:#e2e0e8;border-radius:14px}
.calm-theme :is(.stage-top button,.stage-footer button,.result-share-actions button,.result-actions button){border-radius:12px;border-color:#e2e0e8;background:#fff;color:#292735;min-height:44px}
.calm-theme :is(.entry-row,.item-editor,.work-record){border-color:#e2e0e8;background:#f7f7fa;border-radius:14px}
.calm-theme :is(.entry-add,.entry-toolbar>button,.entry-stepper button,.number-stepper button,.ladder-actions button){border-radius:12px;color:#6550bf;border-color:#e2e0e8;background:white}
.calm-theme .setup-summary{color:#6550bf;background:#f0edf9;border-radius:12px}
.calm-theme :is(.input-panel,.party-input,.planner,.lottery-input) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:#e2e0e8;border-radius:12px;background:#fff;color:#292735}
.calm-theme input::placeholder,.calm-theme textarea::placeholder{color:#696574;opacity:1}
.calm-theme input[type=checkbox],.calm-theme input[type=radio]{accent-color:#6550bf}
.calm-theme :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #6550bf;outline-offset:3px}
.calm-theme .stage-symbol{color:#6550bf}
.calm-theme .stage-top h2{color:#292735}
.calm-theme :is(.winner,.team-card,.order-list li){border-color:#e2e0e8;background:white;border-radius:18px;box-shadow:0 5px 15px #2d544509}
.calm-theme :is(.winner,.result-number,.order-list b,.team-card h3){color:#6550bf}
.calm-theme .transfer{background:#f0edf9;color:#6550bf;border-radius:12px}
.calm-theme :is(.chips input:checked+span,.duration-presets button[aria-pressed=true]){background:#f0edf9;border-color:#a99ccc;color:#6550bf}
.calm-theme .segmented input:checked+span{color:#6550bf}
.calm-theme .empty-mark{color:#6550bf;background:#f0edf9;border-color:#e2e0e8}
.calm-theme .list-toolbar{border-color:#e2e0e8}
.calm-theme :is(.share-dialog,.result-link-dialog,dialog){font-family:inherit;border-color:#e2e0e8;border-radius:22px;color:#292735;box-shadow:0 20px 70px #1c352530}
.calm-theme :is(.share-preview,.received-result,.shared-receipt){background:#f0edf9;border-color:#e2e0e8;border-radius:14px;color:#292735}
.calm-theme :is(.party-guide,.tool-guide,.search-guide){color:#696574}
.calm-theme footer{border-color:var(--line);color:#696574}
@keyframes calm-result-in{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){.calm-theme :is(.winner-list,.team-grid,.order-list,.ladder-outcomes){animation:calm-result-in .28s ease-out both}}
@media(max-width:600px){.calm-theme .home-intro{padding:22px 20px;border-radius:20px}.calm-theme .tool-card{border-radius:18px}.calm-theme :is(.input-panel,.output-panel,.party-input,.planner){border-radius:18px}.calm-theme .tool-actions{border-radius:0 0 15px 15px}.calm-theme .party-tabs a{padding-inline:6px}}
@media(prefers-reduced-motion:reduce){.calm-theme .tool-card{transition:none}.calm-theme .tool-card:hover{transform:none}}

/* Bento home: asymmetric feature tiles and quieter utility cards. */
.bento-home main{max-width:1200px;padding-top:46px}
.bento-home.calm-theme .home-intro{position:relative;border:0;border-radius:0;background:transparent;box-shadow:none;padding:0 0 28px;margin:0;display:grid;grid-template-columns:1fr 1fr;column-gap:56px;align-items:center}
.home-kicker{font-size:14px;font-weight:700;letter-spacing:-.2px;grid-column:1}
.bento-home.calm-theme .home-intro h1{font-size:clamp(36px,4.8vw,60px);line-height:1.18;letter-spacing:-2px;grid-column:1;margin:16px 0}
.headline-dot{color:#7958cd}
.bento-home .home-purpose{grid-column:1;line-height:1.7;margin:0 0 18px;color:#696574}
.bento-home #tool-search{grid-column:2;grid-row:2;min-height:64px;border:1px solid #b8b3c5;border-radius:16px;padding:18px;font-size:16px;background:white}
.bento-home #search-help{grid-column:2;grid-row:3;align-self:start;margin:0;font-size:13px;color:#696574}
.bento-home .categories{grid-column:1/-1;margin-top:26px;border-top:1px solid #dfdce6;padding-top:22px}
.bento-home.calm-theme .categories button{border-radius:10px;background:transparent;border-color:transparent;font-weight:600}
.bento-home.calm-theme .categories button[aria-pressed=true]{background:#292735;color:white;border-color:#292735}
.bento-home .tool-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px;align-items:stretch}
.bento-home .tool-shell{grid-column:span 2;min-width:0}
.bento-home .tool-shell:has(.tile-food),.bento-home .tool-shell:has(.tile-ladder){grid-column:span 3}
.bento-home.calm-theme .tool-card{height:100%;min-height:200px;padding:24px;display:flex;flex-direction:column;border-radius:20px;box-shadow:none;border-color:#e2e0e8;position:relative;overflow:hidden}
.bento-home.calm-theme .tool-card h2{font-size:19px;line-height:1.4;padding-right:20px;z-index:1}
.bento-home.calm-theme .tool-card p{line-height:1.6;margin:8px 0 20px;z-index:1}
.bento-home .card-category{margin-top:auto;color:#615b70;z-index:1}
.bento-home.calm-theme .tool-icon{margin-bottom:16px;width:44px;height:44px;border-radius:12px;background:#f1eff6}
.bento-home.calm-theme .featured-tile{min-height:290px;padding:28px}
.bento-home.calm-theme .featured-tile h2{font-size:30px;letter-spacing:-1px}
.bento-home.calm-theme .featured-tile p{max-width:52%;font-size:15px;margin-bottom:25px}
.bento-home.calm-theme .featured-tile .tool-icon{display:none}
.bento-home.calm-theme .tile-food{background:#ffe89c;border-color:#e4ce85}
.bento-home.calm-theme .tile-ladder{background:#e9e0fc;border-color:#d6c8ee}
.bento-home.calm-theme .tile-random{background:#fce9de;border-color:#ecd5c7;min-height:240px}
.bento-home.calm-theme .tile-random h2{font-size:25px}
.bento-home.calm-theme .featured-tile .card-category{border:2px solid #302b39;border-radius:10px;box-shadow:3px 3px 0 #302b39;background:white;padding:10px 13px;color:#302b39;width:166px;font-weight:750}
.tile-art{position:absolute;display:block;pointer-events:none;right:30px;top:58px;width:160px;height:160px}
.art-wheel{transform:rotate(-12deg)}
.wheel-face{display:block;width:100%;height:100%;border-radius:50%;border:6px solid #39313e;background:conic-gradient(#a98ae3 0deg 60deg,#fff7df 60deg 120deg,#ef927c 120deg 180deg,#fff7df 180deg 240deg,#a98ae3 240deg 300deg,#fff7df 300deg);box-shadow:6px 7px 0 #39313e22}
.wheel-face i{position:absolute;width:35px;height:35px;left:calc(50% - 17.5px);top:calc(50% - 17.5px);background:white;border:5px solid #39313e;border-radius:50%}
.wheel-pointer{position:absolute;left:calc(50% - 12px);top:-12px;width:24px;height:28px;background:#39313e;clip-path:polygon(0 0,100% 0,50% 100%);z-index:1}
.art-ladder{width:205px;right:18px;top:65px;transform:rotate(-7deg)}
.art-ladder svg{width:100%;height:100%}
.art-capsules{width:95px;height:115px;right:20px;top:70px}
.art-capsules i{position:absolute;width:46px;height:70px;border:3px solid #39313e;border-radius:28px;background:linear-gradient(#c3acf0 50%,#fff 50%);transform:rotate(30deg);left:8px;top:0;box-shadow:3px 4px 0 #39313e15}
.art-capsules i:nth-child(2){left:45px;top:40px;transform:rotate(-25deg);background:linear-gradient(#ffca64 50%,#fff 50%)}
.art-capsules i:nth-child(3){left:0;top:63px;transform:rotate(-55deg);background:linear-gradient(#f19d87 50%,#fff 50%)}
.bento-home.calm-theme .tile-random p{max-width:65%}
.bento-home .favorite-control{z-index:2;right:12px;top:12px}
.bento-home .catalog-heading h2{font-size:21px;letter-spacing:-.5px}
/* Restrict playful, tactile buttons to draw/game tools. */
.calm-theme:has(.party-layout) .tool-action-primary{border:2px solid #302b39;background:#ffe28b;color:#302b39;box-shadow:3px 3px 0 #302b39;border-radius:11px;font-weight:800}
.calm-theme:has(.party-layout) .tool-action-primary:hover:not(:disabled){background:#ffda6a}
.calm-theme:has(.party-layout) .tool-action-primary:active:not(:disabled){box-shadow:1px 1px 0 #302b39;transform:translate(2px,2px)}
.calm-theme:has(.party-layout) .tool-action-primary:disabled{box-shadow:none;opacity:.65}
@media(max-width:1100px){.bento-home .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bento-home .tool-shell,.bento-home .tool-shell:has(.tile-food),.bento-home .tool-shell:has(.tile-ladder){grid-column:auto}.tile-art{width:120px;height:120px;right:18px;top:85px}.art-ladder{width:145px}.bento-home.calm-theme .featured-tile h2{font-size:26px}.bento-home.calm-theme .featured-tile p{max-width:55%}.art-capsules{width:90px}.bento-home.calm-theme .tile-random p{max-width:60%}}
@media(max-width:600px){.bento-home main{padding-top:28px}.bento-home.calm-theme .home-intro{display:block;padding-bottom:22px}.bento-home.calm-theme .home-intro h1{font-size:40px;letter-spacing:-1.8px;margin:14px 0}.bento-home #tool-search{min-height:54px;font-size:14px;padding:13px}.bento-home #search-help{margin-top:10px;line-height:1.5}.bento-home .categories{margin-top:22px;padding-top:16px;gap:4px}.bento-home .tool-grid{grid-template-columns:1fr;gap:14px}.bento-home.calm-theme .tool-card{min-height:0;display:grid;grid-template-columns:44px minmax(0,1fr);gap:0 14px;padding:20px}.bento-home.calm-theme .tool-icon{grid-row:1/4;margin:0}.bento-home.calm-theme .tool-card h2{font-size:18px}.bento-home.calm-theme .tool-card p{margin:6px 0 12px}.bento-home .card-category{grid-column:2}.bento-home.calm-theme .featured-tile{display:flex;min-height:250px;padding:24px}.bento-home.calm-theme .featured-tile h2{font-size:27px}.bento-home.calm-theme .featured-tile p{max-width:52%;font-size:14px}.bento-home.calm-theme .featured-tile .card-category{margin-top:auto}.bento-home .tile-art{top:70px;width:115px;height:115px;right:17px}.bento-home .art-ladder{width:137px}.bento-home .art-capsules{width:90px;right:25px}.bento-home .catalog-heading h2{font-size:19px}}

@media(max-width:600px){.bento-home .tile-art{top:68px;height:105px}.bento-home .art-ladder{width:115px}.bento-home.calm-theme .featured-tile p{max-width:calc(100% - 118px)}}
@media(max-width:360px){.bento-home .art-wheel{width:95px;height:95px;top:65px}.bento-home .art-capsules{right:12px}.bento-home.calm-theme .featured-tile .card-category{width:158px}}

@media(min-width:601px) and (max-width:1100px){.bento-home .art-wheel{width:100px;height:100px;top:85px}.bento-home .art-ladder{width:110px;height:110px}.bento-home.calm-theme .featured-tile p{max-width:calc(100% - 115px)}.bento-home.calm-theme .tile-random{min-height:290px}}

/* Six game tiles share a consistent 3-by-2 desktop layout. */
.bento-home .tool-shell:has(.featured-tile){grid-column:span 2}
.bento-home.calm-theme .featured-tile{min-height:280px;padding:24px}
.bento-home.calm-theme .featured-tile h2{font-size:25px;letter-spacing:-.8px}
.bento-home.calm-theme .featured-tile p{max-width:calc(100% - 114px);font-size:14px;line-height:1.65}
.bento-home .featured-tile .tile-art{top:88px;right:16px;width:100px;height:110px}
.bento-home .featured-tile .art-wheel{height:100px}
.bento-home .featured-tile .art-ladder{width:110px;height:110px}
.bento-home .featured-tile .art-capsules{width:90px;right:20px}
.bento-home .tile-art svg{width:100%;height:100%;display:block}
.bento-home.calm-theme .tile-teams{background:#e3ebfd;border-color:#cdd9ef}
.bento-home.calm-theme .tile-order{background:#f9e3ec;border-color:#ebccda}
.bento-home.calm-theme .tile-russian{background:#eae6f1;border-color:#d7cfdf}
@media(max-width:1100px){.bento-home .tool-shell:has(.featured-tile){grid-column:auto}}
@media(max-width:600px){.bento-home.calm-theme .featured-tile{min-height:240px}.bento-home.calm-theme .featured-tile h2{font-size:25px}.bento-home .featured-tile .tile-art{top:72px;height:100px}.bento-home .featured-tile .art-wheel{width:95px;height:95px}.bento-home .featured-tile .art-ladder{width:105px;height:100px}.bento-home .featured-tile .art-capsules{top:56px;height:110px;right:18px}.bento-home.calm-theme .featured-tile .card-category{width:158px}}
@media(max-width:600px){.bento-home .featured-tile .tile-art{top:58px}.bento-home .featured-tile .art-capsules{top:50px}}

/* Readable secondary copy on pale tool cards and input choices. */
.calm-theme #tool-count{color:#53617a}.calm-theme .tool-card p{color:#585363}.calm-theme .empty-result{color:#5d6b82}.calm-theme .segmented label>span{color:#53617a}.calm-theme .segmented input:checked+span{color:#5844ad}

/* usage-examples.css */
.usage-examples{margin:0 0 22px;border:1px solid #ded9e8;border-radius:14px;background:#fff;font-family:inherit}.usage-examples>summary{padding:15px 18px;font-weight:650;cursor:pointer;min-height:50px;line-height:1.6}.usage-examples>summary span{font-weight:400;font-size:13px;color:#696574;margin-left:12px}.usage-examples[open]>summary{border-bottom:1px solid #e7e3ee}.usage-example-content{padding:20px}.guide-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:20px}.guide-tabs button{font:inherit;min-height:46px;border:1px solid #dfd9eb;background:#f8f7fb;border-radius:10px;color:#51485f;padding:9px 5px}.guide-tabs button[aria-selected=true]{background:#6550bf;color:#fff;border-color:#6550bf;font-weight:700}.guide-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,430px);gap:24px;align-items:start}.guide-panel[hidden]{display:none}.guide-instructions h3{font-size:20px;line-height:1.6;margin:0 0 16px}.guide-instructions ol{padding-left:22px;line-height:1.9;font-size:16px;margin:0}.guide-instructions li{margin-bottom:14px}.guide-note{font-size:13px;line-height:1.7;color:#696574;margin-top:22px}.guide-enlarge{display:inline-block;padding:10px 14px;border:1px solid #d5cde3;border-radius:10px;font-size:14px;color:#514098;text-decoration:none;min-height:44px}.guide-panel figure{margin:0;min-width:0}.guide-image-scroll{max-height:560px;overflow:auto;border:1px solid #e2deea;border-radius:12px;background:#f7f7fa}.guide-panel img{width:100%;height:auto;display:block}.guide-panel figcaption{font-size:12px;color:#696574;line-height:1.6;margin-top:8px}.usage-examples:not([open]) .usage-example-content{display:none}.usage-examples :is(summary,button,a,[tabindex]):focus-visible{outline:3px solid #6550bf;outline-offset:3px}@media(max-width:700px){.usage-examples>summary span{display:none}.usage-example-content{padding:14px}.guide-panel{grid-template-columns:1fr;gap:16px}.guide-tabs{gap:5px}.guide-tabs button{font-size:13px}.guide-instructions h3{font-size:18px}.guide-instructions ol{font-size:15px}.guide-image-scroll{max-height:480px}}.guide-image-error{margin:0;padding:18px;font:inherit;line-height:1.8;color:#51485f}

/* responsive.css */
/* Shared responsive shell. Keep component styling scoped to existing page types. */
:root{--responsive-gutter:clamp(16px,3vw,32px)}
body{overflow-wrap:break-word}
body>header:not(.site-header),.header-inner{position:relative;gap:16px;padding:16px max(var(--responsive-gutter),calc((100% - 1136px)/2))}
body>header:not(.site-header){min-height:76px}
.header-inner{max-width:none;min-height:76px}
body>header :is(.logo,.brand){font-size:25px;white-space:nowrap;flex-shrink:0}
body>header>.logo+ a,.header-inner>.text-button{margin-left:auto;min-height:44px;display:inline-flex;align-items:center;white-space:nowrap}
body>header>.logo+ a{padding:8px 12px;font-size:14px;border-radius:10px}
body>header>.logo+ a:hover{background:#f0edf9}
.responsive-nav{flex-shrink:0}
.tool-menu>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid #ded9e8;border-radius:12px;font-size:14px;font-weight:650;cursor:pointer;color:#514098;background:#fff;user-select:none}
.tool-menu>summary::-webkit-details-marker{display:none}
.tool-menu[open]>summary{background:#f0edf9;border-color:#b6a7d8}
.tool-menu-panel{position:absolute;z-index:80;top:calc(100% + 8px);right:max(var(--responsive-gutter),calc((100% - 1136px)/2));width:min(740px,calc(100vw - 2 * var(--responsive-gutter)));max-height:min(72svh,660px);overflow:auto;overscroll-behavior:contain;padding:20px;background:#fff;border:1px solid #ded9e8;border-radius:20px;box-shadow:0 18px 60px #29273526;color:#292735}
.tool-menu:not([open])>.tool-menu-panel{display:none}
.tool-menu-heading{border-bottom:1px solid #e2e0e8;margin-bottom:14px;padding-bottom:12px}
.tool-menu-heading a{display:flex;align-items:center;justify-content:space-between;min-height:44px;color:#6550bf;font-weight:700;border-radius:8px;padding:8px}
.tool-menu-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tool-menu-groups section{min-width:0}
.tool-menu-groups h2{font:700 13px/1.5 ToolkitUI,system-ui,sans-serif;letter-spacing:0;color:#696574;margin:0 0 8px;padding:0 10px}
.tool-menu-groups a{display:flex;align-items:center;min-height:44px;padding:10px;border-radius:10px;font-size:14px;line-height:1.5;word-break:keep-all}
.tool-menu-groups a:hover,.tool-menu-heading a:hover{background:#f6f4fb}
.tool-menu-groups a[aria-current=page]{background:#f0edf9;color:#514098;font-weight:700}
.responsive-nav :is(summary,a):focus-visible{outline:3px solid #6550bf;outline-offset:1px}
main:not(.info-page):not(.about-page),.shell{max-width:1200px;padding-inline:var(--responsive-gutter)}
:is(.calculator-layout,.party-layout,.salary-layout,.work-layout,.workspace,.lottery-layout)>*{min-width:0}
:is(.input-panel,.party-input,.planner,.lottery-input) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;min-height:48px}
:is(.input-panel,.party-input,.planner) .check-field{min-height:44px;margin-block:12px}
:is(.party-input,.input-panel,.planner,.lottery-input) summary{min-height:44px;line-height:1.6}
.party-tabs{padding:4px;margin-inline:-4px}
.party-tabs a{min-height:44px;display:flex;align-items:center;justify-content:center}
.site-links a{display:inline-flex;align-items:center;min-height:44px}
.tool-actions{top:8px}
.tool-actions button{min-height:52px}
.has-tool-actions :is(.output-panel,.party-stage,#result-content,#lottery-result){scroll-margin-top:110px}
@media(min-width:1024px){
 .party-layout{grid-template-columns:minmax(330px,.78fr) minmax(0,1.22fr);gap:24px}
 .calculator-layout{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:24px}
 .workspace{grid-template-columns:minmax(350px,.88fr) minmax(0,1.12fr)}
 .work-layout{grid-template-columns:minmax(0,1.2fr) minmax(340px,1fr)}
 .salary-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
 .party-stage{min-height:460px}
}
@media(max-width:1023px){
 :is(.calculator-layout,.party-layout,.salary-layout,.work-layout,.workspace,.lottery-layout){grid-template-columns:minmax(0,1fr);gap:20px}
 .party-tabs{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#cfc7df transparent;padding-bottom:8px}
 .party-tabs a{flex:0 0 auto;white-space:nowrap;padding-inline:16px}
 .tool-actions{top:0;padding:10px;border-radius:14px}
 .tool-actions-name{display:none}
 .tool-actions-buttons{width:100%;gap:8px}
 .tool-actions button{flex:1;min-width:0;padding:12px 10px}
 .tool-actions .tool-action-primary{flex:1.3}
 .tool-actions-note{flex:1;text-align:center}
 .guide-panel{grid-template-columns:minmax(0,1fr)}
 .bento-home.calm-theme .home-intro{grid-template-columns:minmax(0,1fr);column-gap:0}
 .bento-home #tool-search{grid-column:1;grid-row:auto}
 .bento-home #search-help{grid-column:1;grid-row:auto;margin-top:10px}
 .bento-home .home-purpose{margin-bottom:22px}
 .bento-home.calm-theme .home-intro h1{font-size:clamp(36px,6vw,52px)}
}
@media(min-width:601px) and (max-width:1023px){
 .bento-home .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bento-home .tool-shell,.bento-home .tool-shell:has(.featured-tile){grid-column:auto}
}
@media(max-width:600px){
 body>header:not(.site-header),.header-inner{padding:12px var(--responsive-gutter);gap:8px;min-height:68px}
 body>header :is(.logo,.brand){font-size:22px;gap:7px;letter-spacing:-.8px}
 body>header>.logo+ a{display:none}
 .header-inner>.text-button{font-size:13px;padding:10px 4px}
 .header-inner .brand-en,.header-inner>.text-button span{display:none}
 .responsive-nav{margin-left:auto}
 .tool-menu>summary{padding:10px;gap:6px;font-size:13px}
 .tool-menu-panel{right:var(--responsive-gutter);padding:16px;border-radius:16px;max-height:72svh}
 .tool-menu-groups{grid-template-columns:1fr;gap:20px}
 .tool-menu-groups section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 6px}
 .tool-menu-groups h2{grid-column:1/-1}
 main:not(.info-page):not(.about-page),.shell{padding-top:24px}
 .bento-home.calm-theme .home-intro h1{font-size:clamp(32px,9vw,42px);line-height:1.22;letter-spacing:-1.3px}
 .bento-home #tool-search{font-size:16px;min-height:56px}
 .bento-home .categories{display:flex;flex-wrap:nowrap;overflow:auto;padding:14px 3px 8px;gap:6px;scrollbar-width:thin;scrollbar-color:#cfc7df transparent}
 .bento-home .categories button{flex:0 0 auto;white-space:nowrap;padding-inline:12px}
 .bento-home .tool-grid{grid-template-columns:minmax(0,1fr)}
 .bento-home .tool-shell,.bento-home .tool-shell:has(.featured-tile){grid-column:auto}
 :is(.input-panel,.party-input,.planner,.lottery-input,.output-panel){padding:20px 16px}
 .party-stage{padding:20px 16px;min-height:340px}
 .entry-grid{max-height:360px;scroll-padding:8px}
 .party-tabs a{font-size:14px;padding-inline:14px}
 .entry-remove{width:44px;min-width:44px;min-height:44px}
 .tool-actions{padding:8px;margin-bottom:16px}
 .tool-actions button{font-size:15px;line-height:1.5;min-height:52px}
 .stage-top{flex-wrap:wrap}
 .stage-top button{min-height:44px}
 .row{flex-wrap:wrap}
 .row>.field{flex:1 1 140px}
 .result-table{font-size:14px}
 dialog{max-width:calc(100vw - 24px);max-height:calc(100svh - 32px);overflow:auto}
 .site-links{gap:4px 16px}
 footer,.site-footer{padding-bottom:max(24px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.tool-menu-panel{scroll-behavior:auto}}
@media print{.responsive-nav{display:none}}

.skip-link{position:fixed;top:8px;left:12px;z-index:2000;padding:12px 18px;min-height:44px;box-sizing:border-box;border:2px solid white;border-radius:8px;background:#44317f;color:white!important;font:inherit;transform:translateY(calc(-100% - 16px))}.skip-link:focus{transform:translateY(0);outline:3px solid #9179db;outline-offset:2px}main[tabindex="-1"]{scroll-margin-top:90px}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #6550bf;outline-offset:3px}

/* ui-refresh.css */
/* Focus tool pages on inputs and results; retain the existing brand and game artwork. */
.bento-home main{padding-top:24px;padding-bottom:24px}
.bento-home .home-intro{padding-bottom:16px}
.bento-home .home-intro h1{margin-top:8px;margin-bottom:8px}
.bento-home .categories{margin-top:16px;padding-top:12px}
.bento-home .home-personal{margin:6px 0;padding-top:8px;padding-bottom:8px}
.bento-home .favorite-tools{margin:12px 0 8px}
.bento-home .catalog-heading{margin-top:6px;margin-bottom:10px}
.bento-home .tool-grid{row-gap:14px}
.bento-home.calm-theme .featured-tile{min-height:250px}
.bento-home footer{padding-top:24px;padding-bottom:24px}
body:not(.bento-home) main{padding-top:24px}
.has-tool-actions :is(.intro,.page-title){margin-bottom:18px}
.has-tool-actions :is(.intro-copy,.page-title>p:not(.eyebrow)){font-size:15px;line-height:1.65;margin-top:8px}
.has-tool-actions :is(.input-panel,.party-input,.planner){border-radius:16px;box-shadow:none;padding:24px}
.has-tool-actions :is(input:not([type=checkbox]):not([type=radio]),select,textarea){color:#292735;background:#fff;border-color:#b9b5c5;font-size:16px;line-height:1.5}
.has-tool-actions :is(input,textarea)::placeholder{color:#77717f;opacity:1}
.has-tool-actions :is(input,select,textarea):focus-visible{outline:3px solid #6550bf;outline-offset:2px}
.has-tool-actions :is(.field,fieldset){margin-bottom:18px}
.has-tool-actions .tool-actions{padding:8px 12px;box-shadow:none;margin-bottom:16px;border-color:#dedbe8}
.has-tool-actions .tool-actions button{min-height:46px}
.has-tool-actions .tool-action-result[hidden]{display:none}
.has-tool-actions .result-waiting{min-height:0;padding:18px 24px}
.has-tool-actions .result-waiting .empty-result{font-size:14px;margin:0;padding:0;color:#696574}
.has-tool-actions .tool-notes{margin:22px 0;padding:8px 18px;border-radius:12px;max-width:none}
.has-tool-actions .usage-examples{margin:12px 0 0;box-shadow:none;border:0;border-top:1px solid #e2e0e8;border-radius:0}
.has-tool-actions .tool-notes> .usage-examples{padding:0}
/* Packing view: check first; edit quantity and ownership only when needed. */
[data-core-tool=travel]:not(.has-list) .result-area{display:none}
[data-core-tool=travel]:not(.has-list) .workspace{grid-template-columns:minmax(0,680px);justify-content:center}
[data-core-tool=travel] #trip-settings>summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;min-height:44px;font-size:17px;font-weight:700;cursor:pointer}
[data-core-tool=travel] #trip-settings>summary::after{content:'변경';font-size:13px;font-weight:500;color:#6550bf}
[data-core-tool=travel] #trip-settings[open]>summary{margin-bottom:16px}
[data-core-tool=travel] #trip-settings[open]>summary::after{content:'접기'}
[data-core-tool=travel] #trip-settings-summary{font-size:14px;font-weight:400;color:#696574}
[data-core-tool=travel] #trip-library{margin:16px 0 0;padding:10px 0 0;border:0;border-top:1px solid #e2e0e8;border-radius:0;background:transparent}
[data-core-tool=travel] .saved-editor{padding:12px;margin:12px 0;box-shadow:none}
[data-core-tool=travel] #travel-templates{box-shadow:none;border-radius:10px}
[data-core-tool=travel] #travel-presets:empty{display:none}
[data-core-tool=travel] .result-content{padding:24px;border-radius:16px;min-height:0}
[data-core-tool=travel] .list-header{padding-bottom:14px}
[data-core-tool=travel] .list-header h2{font-size:25px;line-height:1.4}
[data-core-tool=travel] .list-header .trip-meta{margin:6px 0 14px}
[data-core-tool=travel] .quantity-note{font-size:13px;line-height:1.65;margin:10px 0 0}
[data-core-tool=travel] .list-toolbar{position:static;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 0;margin:0;border-bottom:1px solid #e2e0e8;background:#fff}
[data-core-tool=travel] .export-buttons{width:100%;display:flex;flex-wrap:wrap;gap:16px}
[data-core-tool=travel] .export-buttons button{padding:4px 0;min-height:44px}
[data-core-tool=travel] .packing-group{margin-top:20px}
[data-core-tool=travel] .packing-group h3{font-size:16px;margin:0 0 4px;display:flex;align-items:center;gap:8px}
[data-core-tool=travel] .packing-item{padding:0;border:0;border-bottom:1px solid #eeecf2;border-radius:0;background:#fff}
[data-core-tool=travel] .item-main{display:flex;gap:8px;align-items:center;min-height:54px;padding:8px 0}
[data-core-tool=travel] .check-label{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:38px;font-size:16px;line-height:1.5}
[data-core-tool=travel] .check-label input{width:22px;height:22px;flex:0 0 22px;margin:0}
[data-core-tool=travel] .quantity-read{flex:0 1 auto;max-width:40%;text-align:right;overflow-wrap:anywhere;font-size:14px;line-height:1.5;color:#655f70}
[data-core-tool=travel] #result-content:not(.is-editing) :is(.quantity,.remove-item,.item-duty,.item-reason){display:none}
[data-core-tool=travel] #result-content.is-editing .quantity-read{display:none}
[data-core-tool=travel] .is-editing .item-main{flex-wrap:wrap}
[data-core-tool=travel] .is-editing .quantity{margin-left:auto;display:flex;align-items:center;gap:6px}
[data-core-tool=travel] .is-editing .quantity input{width:62px;min-height:44px;text-align:center}
[data-core-tool=travel] .is-editing .item-duty{padding:0 0 8px;margin:0}
[data-core-tool=travel] .is-editing .item-reason{margin:0 0 8px}
[data-core-tool=travel] .packing-name-label{display:block;margin:10px 0;font-size:14px}
[data-core-tool=travel] .packing-name-label input{display:block;width:100%;margin-top:6px;min-height:44px}
[data-core-tool=travel] .add-item-form{padding-top:18px;margin-top:12px;border-top:1px solid #e2e0e8}
[data-core-tool=travel] .is-checked .check-label span{color:#837c8d;text-decoration:line-through}
@media(min-width:1000px){
 [data-core-tool=travel].has-list .workspace{grid-template-columns:minmax(240px,.6fr) minmax(0,1.4fr);gap:24px}
 [data-core-tool=travel].has-list .planner{padding:18px}
}
@media(max-width:800px){
 body:not(.bento-home) main{padding-top:18px}
 .has-tool-actions :is(.input-panel,.party-input,.planner){padding:18px;border-radius:14px}
 .has-tool-actions :is(.intro h1,.page-title h1){font-size:27px;line-height:1.35}
 .has-tool-actions .tool-actions{padding:8px;margin-bottom:12px}
 .has-tool-actions .tool-actions button{min-height:44px}
 .has-tool-actions .result-waiting{padding:16px 18px}
 [data-core-tool=travel].has-list .workspace{gap:14px}
 [data-core-tool=travel].has-list .planner{padding:10px 16px}
 [data-core-tool=travel].has-list #trip-library{margin-top:6px;padding-top:4px}
 [data-core-tool=travel] .result-content{padding:18px 16px;border-radius:14px}
 [data-core-tool=travel] .list-header h2{font-size:23px}
 [data-core-tool=travel] .progress-copy{margin-top:12px}
 [data-core-tool=travel] .list-eyebrow{gap:8px;flex-wrap:wrap}
 [data-core-tool=travel] .check-label{font-size:16px}
 [data-core-tool=travel] .is-editing .check-label{flex-basis:100%}
 [data-core-tool=travel] .filter-buttons{display:flex;flex-wrap:wrap;gap:4px}
 [data-core-tool=travel] .list-toolbar>.outline-button{padding:8px 12px;min-height:44px}
 [data-core-tool=travel] .filter-buttons button{padding:8px 10px;min-height:44px}
 [data-core-tool=split] .split-result-scroll{overflow:visible}
 [data-core-tool=split] .result-table{min-width:0;table-layout:fixed;width:100%;font-size:13px}
 [data-core-tool=split] .result-table :is(th,td){padding:12px 5px;white-space:normal!important;overflow-wrap:anywhere;font-size:13px}
 [data-core-tool=split] .result-table :is(th,td):first-child{min-width:0;width:25%;position:static;background:transparent}
 [data-core-tool=split] .result-table :is(th,td):nth-child(2){width:31%}
 [data-core-tool=split] .balance-note{white-space:normal;display:block;font-size:12px;margin-top:4px}
 [data-core-tool=split] .transfer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;font-size:16px;line-height:1.6}
 [data-core-tool=split] .transfer strong{white-space:nowrap}
}
@media(max-width:600px){
 .bento-home main{padding-top:16px;padding-bottom:20px}
 .bento-home .home-intro{padding-bottom:12px}
 .bento-home .categories{margin-top:14px;padding-top:10px;padding-bottom:6px}
 .bento-home .tool-grid{row-gap:10px}
 .bento-home.calm-theme .featured-tile{min-height:220px}
 .bento-home footer{padding-top:20px;padding-bottom:20px}
}
@media print{
 [data-core-tool=travel] :is(.planner,.list-toolbar,.quantity,.remove-item,.item-duty,.item-reason,.add-item-form){display:none!important}
 [data-core-tool=travel] .quantity-read{display:inline!important}
 [data-core-tool=travel] .workspace{display:block!important}
 [data-core-tool=travel] .packing-item{break-inside:avoid}
}
.salary-optional>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:17px}.salary-optional>summary::after{content:"+";color:#6550bf}.salary-optional[open]>summary::after{content:"−"}.salary-optional[open]>summary{margin-bottom:16px}.salary-optional[open]>h2{display:none}

/* Names and items are the primary game input; bulk setup stays available on demand. */
.has-tool-actions .entry-row{padding:3px 0;background:transparent;border:0;border-radius:0;gap:8px}
.has-tool-actions .entry-grid{gap:6px}
.has-tool-actions .entry-tools{margin-top:14px;border-top:1px solid #e2e0e8;padding-top:8px}
.has-tool-actions .entry-tools>summary{font-size:14px;font-weight:600;min-height:44px;cursor:pointer;align-content:center}
.has-tool-actions .entry-tools .entry-toolbar{margin-top:10px}
.has-tool-actions .entry-bulk{margin-top:4px;padding-top:4px}
.has-tool-actions .entry-bulk>summary{min-height:44px;align-content:center}
.has-tool-actions .party-stage:has(.stage-empty):not([aria-busy=true]){min-height:0}
.has-tool-actions .party-stage:has(.stage-empty) :is(#stage-content,#food-result,#ladder-result,#russian-result){min-height:0}
.has-tool-actions .party-stage .stage-empty{min-height:100px;padding:16px}
.has-tool-actions .stage-empty .stage-symbol{display:none}

/* Keep packing compact; editing exposes names and quantities without extra steps. */
[data-core-tool=travel] .packing-name-label{display:none}
[data-core-tool=travel] .is-editing .item-main{display:grid;grid-template-columns:minmax(0,1fr) 64px 44px;gap:8px;padding:8px 0}
[data-core-tool=travel] .is-editing .check-label{display:none}
[data-core-tool=travel] .is-editing .packing-name-label{display:block;min-width:0;margin:0}
[data-core-tool=travel] .packing-name-label input{margin:0;min-width:0;font-size:16px;min-height:44px;padding:8px}
[data-core-tool=travel] .is-editing .quantity{margin:0;gap:3px;min-width:0}
[data-core-tool=travel] .is-editing .quantity input{width:44px;min-width:0;font-size:16px;padding:8px 2px}
[data-core-tool=travel] .is-editing .remove-item{width:44px;min-height:44px;margin:0}
[data-core-tool=travel] .is-editing .item-duty{margin:0 0 4px}
[data-core-tool=travel] .item-duty>summary{min-height:44px;align-content:center}
[data-core-tool=travel] #active-trip-name{overflow-wrap:anywhere}
@media print{
 [data-core-tool=travel] .packing-name-label{display:none!important}
 [data-core-tool=travel] .is-editing .check-label{display:flex!important}
 [data-core-tool=travel] .is-editing .item-main{display:flex!important}
}
[data-core-tool=travel] #result-content.is-editing .packing-groups{padding-inline:0}

/* Travel begins with the checklist, with no setup gate or secondary desktop column. */
body.travel-direct.has-list .workspace{display:flex;flex-direction:column;max-width:920px;margin:0 auto;gap:12px}
.travel-direct .intro{max-width:920px;margin:0 auto 18px}
.travel-direct .result-area{width:100%;padding:22px 24px;background:#fff;border:1px solid #e1deed;border-radius:18px}
body.travel-direct.has-list .planner{width:100%;padding:0;background:transparent;border:0;box-shadow:none}
.travel-direct #result-content{padding:0;margin:0;border:0;background:transparent;overflow:visible}
.travel-direct .trip-page-controls{display:flex;justify-content:flex-end;margin-bottom:12px}
.travel-direct .trip-page-controls button{min-height:44px;font-size:14px}
.travel-direct #trip-form{margin:0;padding:0;border:0}
.travel-direct #trip-form>label{display:block;font-weight:700;font-size:16px;margin-bottom:8px}
.travel-direct #trip-form>div{display:flex;gap:8px}
.travel-direct #custom-item{min-width:0;flex:1;font-size:16px;min-height:48px}
.travel-direct #trip-form button{min-width:68px;min-height:48px;padding:10px 16px}
.travel-direct .packing-extras{margin-top:4px;border-bottom:1px solid #ece9f3}
.travel-direct .packing-extras>summary{min-height:44px;align-content:center;font-size:14px;cursor:pointer;color:#62567e}
.travel-direct .packing-extras>div{display:flex;flex-wrap:wrap;gap:8px;padding:4px 0 14px}
.travel-direct .packing-extras button{min-height:44px;font-size:14px}
.travel-direct .list-header{padding:16px 0 12px}
.travel-direct .list-header h2{font-size:20px;margin:8px 0 12px}
.travel-direct .list-eyebrow{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:12px}
.travel-direct .progress-copy{margin-top:8px}
.travel-direct .list-toolbar{padding:8px 0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.travel-direct .packing-groups{padding:0}
.travel-direct .packing-export{margin-left:auto;position:relative}
.travel-direct .packing-export>summary{font-size:14px;cursor:pointer;min-height:44px;align-content:center}
.travel-direct .packing-export .export-buttons{display:flex;flex-wrap:wrap;gap:12px}
.travel-direct .packing-export[open]{flex-basis:100%;margin-left:0}
.travel-direct .packing-initial{padding:16px 0}.travel-direct .packing-initial li{padding:7px 0}
@media(max-width:800px){
 .travel-direct .result-area{padding:16px}
 .travel-direct .intro{margin-bottom:12px}
 .travel-direct .trip-page-controls{margin-bottom:8px}
 .travel-direct .list-header{padding:12px 0 8px}
 .travel-direct .list-toolbar>.outline-button{padding:8px 10px}
 .travel-direct .filter-buttons button{padding:8px}
 .travel-direct .packing-export{margin-left:0}
}
@media print{
 .travel-direct :is(.trip-page-controls,#trip-form,.packing-extras,.packing-export,.save-state){display:none!important}
 .travel-direct .result-area{padding:0;border:0}
}

.travel-direct #trip-form button{width:auto;flex:0 0 auto}
.travel-direct #custom-item{width:0}

.travel-direct .result-area{position:relative}
.travel-direct .trip-page-controls{position:absolute;top:22px;right:24px;margin:0}
.travel-direct #trip-form>label{min-height:44px;display:flex;align-items:center;padding-right:130px}
@media(max-width:800px){.travel-direct .trip-page-controls{top:16px;right:16px}.travel-direct #trip-form>label{padding-right:120px}}

@media(max-width:360px){.travel-direct .intro h1{font-size:22px;line-height:1.4}.travel-direct .tool-title-icon{width:36px;height:36px}}

/* First-use simplification: one choice, primary fields, then optional conditions. */
.entry-paste{margin:0 0 12px;min-height:44px}
.entry-quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.entry-quick-actions button{min-height:44px;flex:1}
.optional-field>summary{cursor:pointer;min-height:44px;align-content:center;overflow-wrap:anywhere}
#pay-simple .row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}
#pay-records #work-repeat{margin:16px 0}
#pay-records #work-repeat input{max-width:100%}
.coupon-options[open]>summary{margin-bottom:12px}
[data-tool=unit-price] .item-editor>.field{margin-top:12px}
@media(max-width:800px){.entry-quick-actions{gap:6px}.entry-quick-actions button{font-size:14px}}

/* Amounts stay native numeric fields; the adjacent reading aid never changes their value. */
.input-amount{display:block;min-height:1.5em;margin-top:4px;font-size:13px;line-height:1.5;font-weight:500;color:#625477;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.input-amount:empty{display:none}
.salary-net,.work-total,.result-number,.result-table{font-variant-numeric:tabular-nums}
.result-stale #salary-net,.result-stale .salary-pair{opacity:.5}
.result-stale #salary-dirty{font-weight:600;border-left:3px solid #a5740c}
.result-records{margin-top:18px;border-top:1px solid #e2deea;padding-top:8px}
.result-records>summary{min-height:44px;cursor:pointer;font-size:14px;align-content:center}
.unit-price-value{margin-bottom:6px}
.unit-price-value>span{font-size:16px;font-weight:500;letter-spacing:0;color:#625477;white-space:nowrap}
.unit-price-winner{font-weight:700;margin:4px 0 12px;font-size:18px;overflow-wrap:anywhere}
.unit-best{background:#f3efff}.unit-best-label{display:block;font-size:12px;font-weight:600;color:#59439a}
.result-table [data-edit-product]{display:block;min-height:44px;padding:4px 0;border:0;background:transparent;text-align:left;font:inherit;overflow-wrap:anywhere;color:#513a91}
.result-table [data-edit-product]>span{font-size:12px;text-decoration:underline;white-space:nowrap}
@media(max-width:800px){
 .unit-price-value{font-size:30px}.unit-price-value>span{font-size:15px}
 .has-tool-actions .keyboard-open{position:relative;top:auto}
 #fields .item-editor .input-amount{font-size:12px}
}

#calculator-form[data-tool=unit-price] .item-editor .field{margin-bottom:10px}
#calculator-form[data-tool=unit-price] .item-editor .check-field{margin:8px 0;min-height:44px}
#calculator-form[data-tool=unit-price] .item-editor-title>span{min-width:0;overflow-wrap:anywhere}
#calculator-form[data-tool=unit-price] .item-editor-title>button{flex-shrink:0}

/* Packing: edit one item at a time; keep category changes outside the checklist. */
.travel-ux #trip-form .add-category-label{display:flex;align-items:center;gap:10px;padding:0;margin:8px 0 0;min-height:44px;font-size:14px;font-weight:500}
.travel-ux #custom-category{width:auto;max-width:calc(100% - 80px);min-height:44px;font-size:16px;padding:8px 30px 8px 10px;border:1px solid #d8d2e7;border-radius:10px;background:#fff;color:#292436}
.travel-ux .list-header{padding:8px 0 4px}
.travel-ux .packing-group{margin-top:14px}
.travel-ux .list-toolbar{gap:8px}
.travel-ux .packing-main-actions{display:flex;gap:8px}
.travel-ux .packing-main-actions button{min-height:44px;padding:8px 12px;font-size:14px}
.travel-ux .packing-group-heading{display:flex;justify-content:space-between;gap:8px;align-items:center}
.travel-ux .packing-group-heading h3{min-width:0;overflow-wrap:anywhere}
.travel-ux .packing-group-heading button{flex-shrink:0;min-height:44px;font-size:13px;padding:6px}
.travel-ux .packing-item .item-main{display:flex;align-items:center;gap:8px;padding:4px 0;min-height:52px}
.travel-ux .packing-item .check-label{display:flex;align-items:center;flex:1;gap:10px;min-width:0;min-height:44px;margin:0}
.travel-ux .packing-item .check-label input{flex-shrink:0}
.travel-ux .packing-item-copy{min-width:0;overflow-wrap:anywhere}
.travel-ux .packing-item-copy small{display:block;font-size:12px;color:#645d73;margin-top:2px;text-decoration:none}
.travel-ux .packing-item .quantity-read{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;margin:0;flex:0 0 52px;min-width:52px;height:34px;padding:4px 8px;border:1px solid #dfe3e9;border-radius:8px;background:#eef0f3;color:#303744;font-size:16px;font-weight:700;line-height:1.25;white-space:nowrap;font-variant-numeric:tabular-nums}
.travel-ux .item-edit-action{flex:0 0 44px;min-height:44px;border:0;border-radius:8px;background:transparent;color:#6550a1;font-size:13px;padding:6px}
.travel-ux .item-edit-action:hover{background:#f3effc}
.travel-ux .category-empty{font-size:14px;color:#655f71;margin:8px 0}
.travel-ux .inline-packing-add{padding:10px;margin:0 0 8px;background:#f6f3fc;border:1px solid #e1d9f2;border-radius:10px}
.travel-ux .inline-packing-add>div{display:flex;gap:8px}
.travel-ux .inline-packing-add input{flex:1;width:0;min-width:0;min-height:44px;font-size:16px;padding:8px}
.travel-ux .inline-packing-add button{flex:0 0 60px;min-height:44px;font-size:14px;padding:8px}
.travel-ux .packing-move-bar{position:sticky;top:8px;z-index:4;padding:10px 12px;border:1px solid #c6b9e4;border-radius:12px;background:#f9f7ff;margin:8px 0 14px;box-shadow:0 4px 14px #35235a12}
.travel-ux .packing-move-bar>div{display:flex;align-items:center;gap:8px}
.travel-ux .packing-move-bar>div+div{margin-top:8px}
.travel-ux .packing-move-bar strong{font-size:15px;margin-right:auto}
.travel-ux .packing-move-bar button{min-height:44px;padding:8px 10px;font-size:14px;white-space:nowrap}
.travel-ux .packing-move-bar select{flex:1;min-width:0;min-height:44px;font-size:16px;padding:8px}
.travel-ux .is-selecting .packing-item.is-checked .check-label span{text-decoration:none;color:#292436}
.travel-ux .is-selecting .packing-item.is-selected{background:#f0ebfb}
body.travel-dialog-open{overflow:hidden}
.travel-sheet{padding:0;border:1px solid #ddd5eb;border-radius:18px;width:min(500px,calc(100vw - 32px));max-width:none;max-height:min(720px,calc(var(--travel-sheet-height,100dvh) - 32px));color:#292436;box-shadow:0 18px 80px #20113640;background:#fff}
.travel-sheet:not([open]){display:none}
.travel-sheet[open]{display:flex;flex-direction:column}
.travel-sheet::backdrop{background:#20172d80}
.travel-sheet>form{display:flex;flex-direction:column;min-height:0;overflow:hidden;margin:0}
.travel-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #ece7f3;flex-shrink:0}
.travel-sheet-header h2{font-size:20px;margin:0;line-height:1.4}
.travel-sheet-header button{border:0;background:transparent;font-size:26px;width:44px;min-height:44px;color:#554a69;padding:4px}
.travel-sheet-body{overflow:auto;min-height:0;padding:16px;overscroll-behavior:contain}
.travel-sheet label{display:block;font-size:14px;font-weight:600;margin-bottom:14px}
.travel-sheet :is(input,select){display:block;width:100%;box-sizing:border-box;min-width:0;min-height:46px;font-size:16px;padding:10px;margin-top:6px;border:1px solid #c9c1d7;border-radius:10px;color:#292436;background:#fff}
.travel-sheet button{min-height:44px;padding:8px 12px;font-size:14px;border:1px solid #d8d0e5;border-radius:9px;background:#fff;color:#42374f;cursor:pointer}
.travel-sheet button:disabled{opacity:.4;cursor:default}
.travel-sheet button.primary-button{background:#6550bf;color:#fff;border-color:#6550bf}
.travel-sheet :is(button,input,select):focus-visible{outline:3px solid #6550bf;outline-offset:2px}
.travel-sheet [data-editor-error]{color:#a22035;font-size:14px;margin:8px 0}
.travel-sheet [data-editor-status]{color:#5e4d7a;font-size:14px;margin:8px 0}
.travel-sheet :is([data-editor-error],[data-editor-status]):empty{display:none}
.travel-sheet-footer{display:flex;gap:8px;justify-content:flex-end;align-items:center;flex-shrink:0;padding:12px 16px;border-top:1px solid #ece7f3;background:#fff}
.travel-sheet-footer .item-delete-action{margin-right:auto;border:0;color:#a22035}
.travel-sheet .item-editor-fields{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px}
.travel-sheet .item-editor-optional{border-top:1px solid #ece7f3;margin-top:4px}
.travel-sheet .item-editor-optional summary{min-height:44px;align-content:center;font-size:14px;cursor:pointer;margin-bottom:8px}
.travel-sheet .category-add-form{margin:0 0 12px;padding:0;border:0}
.travel-sheet .category-add-form>label{margin-bottom:0}
.travel-sheet .category-add-form>div{display:flex;gap:8px;align-items:center}
.travel-sheet .category-add-form input{flex:1;width:0}
.travel-sheet .category-add-form button{flex:0 0 60px;margin-top:6px}
.travel-sheet .category-sort-list{list-style:none;margin:0;padding:0}
.travel-sheet .category-sort-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid #ece7f3}
.travel-sheet .category-sort-row>span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:15px;font-weight:600}
.travel-sheet .category-sort-row>div{display:flex;gap:4px;flex-shrink:0}
.travel-sheet .category-sort-row button{width:44px;padding:6px;border-color:transparent}
.travel-sheet .category-edit-row{padding:10px 0;border-top:1px solid #ece7f3}
.travel-sheet .category-edit-row form{margin:0;padding:0;border:0}
.travel-sheet .category-edit-row label{margin-bottom:8px}
.travel-sheet .category-edit-row form>div{display:flex;gap:8px;justify-content:flex-end}
@media(min-width:801px){.travel-ux #trip-form{display:grid;grid-template-columns:minmax(0,1fr) 220px;column-gap:14px;align-items:end}.travel-ux #trip-form>label:first-child{grid-column:1/-1}.travel-ux #trip-form .add-category-label{margin:0;min-height:48px}.travel-ux #custom-category{flex:1;min-width:0;max-width:100%}}
@media(max-width:800px){.travel-ux .list-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}.travel-ux .packing-main-actions{grid-column:1/-1}.travel-ux .packing-export{margin:0;justify-self:end}.travel-ux .filter-buttons{display:flex;min-width:0;gap:4px}.travel-ux .filter-buttons button{padding:8px 6px;font-size:13px}.travel-ux .packing-export summary{font-size:13px}}
@media(max-width:600px){
 .travel-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-height:calc(var(--travel-sheet-height,100dvh) - 16px);border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}
 .travel-ux .packing-move-bar{position:fixed;inset:auto 8px calc(8px + env(safe-area-inset-bottom));margin:0;z-index:20}
 body.packing-selection-active{padding-bottom:140px}
}
@media(prefers-reduced-motion:reduce){.travel-sheet *{scroll-behavior:auto}}
@media print{.travel-ux :is(.packing-group-heading button,.inline-packing-add,.item-edit-action,.packing-move-bar),.travel-sheet{display:none!important}}

.travel-sheet-footer button{width:auto;flex:0 0 auto;min-width:60px;white-space:nowrap}
.travel-sheet-footer button.primary-button{flex:1;max-width:180px}

.travel-ux .packing-move-bar button.primary-button{width:auto;flex:0 0 auto;min-width:88px}
.travel-ux .packing-move-bar select{width:0;border:1px solid #c9c1d7;border-radius:9px;color:#292436;background:#fff}
.travel-ux .packing-move-bar button:not(.primary-button){border:1px solid #d8d0e5;border-radius:9px;background:#fff;color:#42374f}

.travel-ux .packing-quick-add{margin:0}
.travel-ux .packing-quick-add>summary{min-height:44px;display:flex;align-items:center;width:max-content;max-width:calc(100% - 130px);font-weight:700;font-size:16px;cursor:pointer;color:#42345f}
.travel-ux .packing-quick-add[open]{padding-bottom:8px}
.travel-ux .packing-quick-add #trip-form{margin-top:4px}
.travel-ux .packing-quick-add #trip-form>label:first-child{min-height:28px;font-size:14px;padding-right:0}
@media print{.travel-ux .packing-quick-add{display:none!important}}
.travel-ux .packing-quick-add>summary{min-width:100px}

/* Packing: checking stays primary; editing and dragging have separate controls. */
.travel-ux .list-toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0}
.travel-ux .filter-buttons{display:flex;gap:4px;border-radius:12px;padding:4px;background:#f3f1f8;width:max-content;max-width:100%;margin-right:auto}
.travel-ux .filter-buttons button{border:1px solid transparent;border-radius:9px;min-height:44px;padding:8px 12px;font-size:14px;color:#5b526a;background:transparent}
.travel-ux .filter-buttons button[aria-pressed=true]{background:#6550bf;color:#fff;box-shadow:0 2px 5px #49387920;font-weight:700}
.travel-ux .filter-buttons button span{display:inline-block;margin-left:4px;font-variant-numeric:tabular-nums}
.travel-ux .packing-main-actions{display:flex;gap:6px;flex-wrap:wrap}
.travel-ux .packing-main-actions button{border-color:#ddd6e9;color:#51455f;padding:8px 10px;font-size:13px;background:#fff}
.travel-ux .packing-export{margin-left:0}
.travel-ux .travel-drag-hint{font-size:12px;color:#62586f;line-height:1.5;margin:10px 0 0}
.travel-ux .packing-group-heading h3{flex:1;display:flex;align-items:center;gap:4px;margin:0}
.travel-ux .packing-group-heading button.category-name-action{font:inherit;color:inherit;border:0;background:none;padding:6px 0;min-width:0;flex-shrink:1;text-align:left;overflow-wrap:anywhere}
.travel-ux .category-name-action svg{margin-left:5px;color:#716580;flex-shrink:0}
.travel-ux .packing-group-heading h3>span{flex-shrink:0}
.travel-ux .travel-drag-handle,.travel-sheet .travel-drag-handle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;min-width:28px;min-height:44px;padding:4px;border:0;border-radius:6px;background:transparent;color:#766b89;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.travel-ux .packing-item .item-main{gap:6px}
.travel-ux .packing-item .check-label{gap:7px}
.travel-ux .travel-drag-handle:hover,.travel-sheet .travel-drag-handle:hover,.travel-is-dragging{background:#ede7fc!important;color:#503698!important}
.travel-dragging{cursor:grabbing;user-select:none;-webkit-user-select:none}
.travel-drag-ghost{position:fixed;top:0;left:0;z-index:2147483647;pointer-events:none;box-sizing:border-box;max-width:min(200px,calc(100vw - 16px));padding:10px 14px;border:1px solid #6550bf;border-radius:10px;background:#fff;color:#3c2a64;box-shadow:0 5px 18px #20113640;font-size:14px;font-weight:700;overflow-wrap:anywhere}
.travel-drop-before{box-shadow:0 -3px #6550bf!important}.travel-drop-after{box-shadow:0 3px #6550bf!important}.travel-drop-inside{outline:2px dashed #6550bf;outline-offset:3px;background:#f6f2ff!important}
.travel-ux .travel-move-feedback{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:10px 0;padding:8px 12px;border-radius:10px;background:#f3effc;font-size:14px;color:#423354}
.travel-ux .travel-move-feedback button{min-height:44px;flex-shrink:0;border:1px solid #c5b7df;border-radius:8px;background:#fff;color:#513e79;padding:8px;font-size:14px}
.travel-sheet .category-sort-row{gap:4px}.travel-sheet .category-sort-row>span small{display:block;font-size:12px;font-weight:400;color:#675c76;margin-top:3px}
.travel-sheet .category-order-hint{font-size:13px;color:#64576f;margin:8px 0 12px}
@media(max-width:800px){.travel-ux .list-toolbar{display:flex;gap:8px}.travel-ux .filter-buttons{flex:0 0 auto;max-width:100%;order:0}.travel-ux .packing-main-actions{order:2;flex:1 0 100%}.travel-ux .packing-export{order:1;margin-left:auto;justify-self:auto}.travel-ux .filter-buttons button{padding:8px;font-size:13px}.travel-ux .filter-buttons button span{margin-left:2px}}
@media(max-width:360px){.travel-ux .packing-item .item-main{gap:4px}.travel-ux .packing-item .check-label{gap:6px}.travel-sheet .category-sort-row>div{gap:0}.travel-sheet .category-sort-row>span{font-size:14px}}
@media print{.travel-drag-handle,.travel-drag-hint,.travel-move-feedback,.travel-drag-ghost{display:none!important}}

/* Static heading text for paper; screen editing controls keep their existing behavior. */
.travel-ux .packing-group-heading .category-print-name{display:none}
@media print{
 .travel-ux .packing-group-heading .category-print-name{display:inline;font:inherit;color:inherit;margin:0}
 .travel-ux .packing-group-heading{break-after:avoid}
 .travel-ux :is(.skip-link,.tool-notes){display:none!important}
 body.travel-ux{background:#fff}
}

.travel-ux .packing-print-check{display:none}
@media print{
 .travel-ux .packing-print-check{display:inline-block;width:22px;height:22px;min-height:0;flex:0 0 22px;margin:0;padding:0;accent-color:#6550bf;pointer-events:none}
 .travel-ux .is-selecting [data-select-item]{display:none!important}
 .travel-ux .is-selecting .packing-item.is-selected{background:transparent}
 .travel-ux .is-selecting .packing-item.is-checked .check-label .packing-item-name{color:#555;text-decoration:line-through}
}

