/* 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}

/* 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}}

/* 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}

/* work.css */
.work-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:24px;align-items:start}.work-record{border:1px solid #dfe5ef;border-radius:12px;padding:16px;margin:12px 0;background:#fcfdff}.record-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.record-head button{font-size:13px;padding:7px 10px}.work-times{display:grid;grid-template-columns:1fr 1fr;gap:12px}.work-record .field{margin-bottom:10px}.work-record input{min-width:0}.work-note{font-size:14px;line-height:1.7;color:#596b85;margin:12px 0 20px}.work-total{font-size:32px;font-weight:800;color:#2345ce;margin:18px 0 8px;overflow-wrap:anywhere}.work-detail{font-size:14px;line-height:1.8;color:#52637d}.work-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.work-actions button{flex:1;min-width:110px}.work-result{position:sticky;top:20px}.work-error{background:#fff0f1;color:#a52b35;padding:12px;border-radius:9px;font-size:14px}.work-status{font-size:14px;line-height:1.7;color:#52637d}.work-result ul{list-style:none;padding:0}.work-result li{padding:10px 0;border-bottom:1px solid #dfe5ef;font-size:14px;line-height:1.8}.work-result li span{display:block;color:#637187}.work-save{border-top:1px solid #dfe5ef;margin-top:18px;padding-top:10px}.work-save summary{cursor:pointer;padding:12px 0;font-size:14px;font-weight:600}.work-next{display:block;margin-top:20px;color:#3155f5;text-decoration:underline}.work-layout input[type=time],.work-layout input[type=date]{appearance:none;min-width:0;width:100%;max-width:100%}@media(max-width:800px){.work-layout{grid-template-columns:1fr}.work-result{position:static;scroll-margin-top:16px}}@media(max-width:370px){.work-times{gap:8px}.work-record{padding:12px}.work-layout .input-panel{padding:16px}}
nav.work-actions a{padding:11px 14px;border:1px solid #dfe5ef;border-radius:9px;background:white}nav.work-actions a[aria-current=page]{background:#3155f5;color:white;border-color:#3155f5}

.work-layout>*{min-width:0}.work-times{grid-template-columns:repeat(2,minmax(0,1fr))}.work-times>*{min-width:0}@media(max-width:800px){.work-layout{grid-template-columns:minmax(0,1fr)}}

.minimum-wage-picker{margin:0 0 20px}.minimum-wage-picker summary{cursor:pointer;padding:12px 0;font-size:14px}.minimum-wage-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.minimum-wage-controls label{flex:1;min-width:150px}.minimum-wage-controls select{display:block;width:100%;margin-top:6px;min-height:44px}.minimum-wage-controls button{min-height:44px}.minimum-wage-picker .work-note{font-size:13px;margin-bottom:8px}

/* 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}

/* next-features.css */
.feature-box{border:1px solid var(--line,#dce3ec);border-radius:14px;background:white;padding:20px;margin:20px 0;min-width:0;line-height:1.7}.feature-box summary{cursor:pointer;font-weight:650;min-height:44px}.feature-box label{display:block;margin:12px 0;font-size:14px}.feature-box input,.feature-box select,.feature-box textarea{width:100%;margin-top:6px}.feature-box textarea,.utility-text{font:inherit;max-width:100%;width:100%;padding:12px;border:1px solid #ccd5e2;border-radius:10px;min-height:120px;resize:vertical;line-height:1.7}.feature-box input[type=checkbox]{width:18px;min-height:18px}.feature-actions,.week-options{display:flex;flex-wrap:wrap;gap:8px}.feature-actions button{min-height:44px}.week-options label{display:flex;align-items:center;gap:6px;margin:6px 0}.feature-note{font-size:13px;color:#57657c;line-height:1.8}.feature-status{font-size:14px;line-height:1.8;color:#334563;overflow-wrap:anywhere}.utility-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.utility-metrics>div{padding:18px;background:#f1f5ff;border-radius:12px}.utility-metrics dt{font-size:13px}.utility-metrics dd{font-size:28px;font-weight:750;margin:9px 0 0;overflow-wrap:anywhere}.utility-result{white-space:pre-wrap;line-height:1.9;font-size:19px;overflow-wrap:anywhere}.feature-box h2{margin-bottom:14px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:12px 0}.calendar-grid>div,.calendar-grid>button{padding:7px 2px;font-size:12px;min-width:0;text-align:center}.calendar-grid button{background:#eef3ff;border-color:#bccafa}.calendar-grid small{display:block;font-size:10px;line-height:1.5;overflow-wrap:anywhere}.favorite-control{display:block;position:relative;z-index:2;float:right;min-width:44px;min-height:44px;margin:-7px -7px 0 5px;padding:8px;color:#415c93}.favorite-control[aria-pressed=true]{color:#885800;background:#fff2c5}.tool-card{position:relative}.favorite-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:15px 0}.favorite-tools label{display:flex;align-items:center;gap:8px}.favorite-tools input{width:18px;min-height:18px}.favorite-tools a{font-size:14px;text-decoration:underline}.backup-preview{white-space:pre-wrap;padding:15px;border:1px solid #dce3ec;border-radius:10px;font-size:14px}.feature-box fieldset{border:1px solid #dce3ec;border-radius:8px;margin:14px 0;min-width:0}.feature-box legend{font-size:14px}.feature-error{color:#9e2535;background:#fff0f0;padding:12px;border-radius:9px;font-size:14px;line-height:1.8}@media(max-width:500px){.feature-box{padding:16px}.utility-metrics{gap:8px}.utility-metrics>div{padding:12px}.utility-metrics dd{font-size:24px}.feature-actions button{flex:1}.favorite-control{position:absolute;right:18px;top:13px;margin:0}.tool-card h2{padding-right:40px}}

.tool-shell{position:relative;min-width:0}.tool-shell>.tool-card{height:100%;display:block}.tool-shell .favorite-control{position:absolute;right:14px;top:14px;margin:0}.tool-shell h2{padding-right:36px}@media(max-width:500px){.tool-shell>.tool-card{display:grid}}

.text-live-summary{position:sticky;top:8px;z-index:3;background:#edf3ff;border:1px solid #ccd9fb;border-radius:9px;padding:10px;font-size:14px;color:#244696;font-weight:600}@media(max-width:500px){#text-content{height:230px;min-height:150px}}

/* 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}
}

