:root{color-scheme:light;--ink:#40363a;--muted:#7b6867;--brand:#bc4f3f;--teal:#bc4f3f;--line:#eee1dc;--paper:#fff;--wash:#fff9f6;--accent:#ffe5da;--red:#a42c3d;--shadow:0 8px 28px #40363a08;font-family:ui-rounded,"Hiragino Maru Gothic ProN","Noto Sans JP",system-ui,-apple-system,sans-serif;font-size:16px;line-height:1.65;color:var(--ink);background:var(--wash)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d49732;outline-offset:3px}button{color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:1.8rem;line-height:1.4}h2{font-size:1.2rem;line-height:1.4;margin-bottom:6px}h3{font-size:1rem;margin-bottom:8px}p{margin-bottom:12px}small{font-size:.8rem}input,select,textarea{min-width:0;width:100%;border:1px solid #deccc5;border-radius:9px;background:white;color:var(--ink);padding:9px 11px;min-height:44px;line-height:1.5}input[type=checkbox]{width:19px;height:19px;min-height:19px;accent-color:var(--teal);margin:0;flex-shrink:0}input[type=number]{padding-right:4px}textarea{resize:vertical;line-height:1.7}label{cursor:default}select{padding-right:26px}button{border:0;background:transparent}
.topbar{min-height:82px;background:var(--brand);color:#fff;padding:16px max(24px,calc((100vw - 1440px)/2));display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{display:flex;gap:12px;align-items:center;font-size:1.22rem;font-weight:650;letter-spacing:.02em;line-height:1.3;flex-shrink:0}.brand-mark{display:grid;place-items:center;width:44px;height:44px;border:1px solid #ecb4a2;border-radius:12px;color:#b74736;font-size:1.35rem}.brand small{display:block;font-size:.75rem;letter-spacing:.015em;font-weight:400;color:#8b6a61;margin-top:5px}.header-actions{display:flex;align-items:center;gap:18px}.save-state{font-size:.8rem;color:#876e66}.header-button{border:1px solid #e0c9be;border-radius:9px;padding:9px 13px;min-height:44px;color:white;font-size:.875rem;display:inline-flex;align-items:center;white-space:nowrap}.header-button:hover{background:#ffffff12}
#app{max-width:1440px;margin:0 auto;padding:28px 24px 38px}.project-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 26px}.eyebrow{font-size:.8rem;color:var(--muted);font-weight:500;letter-spacing:.07em;margin-bottom:5px;display:flex;align-items:center;gap:10px}.demo-badge{font-size:.75rem;letter-spacing:0;padding:2px 8px;border:1px solid #e7d8d2;border-radius:5px;background:#fff}.project-name{min-width:0;flex:1}.project-name input{font-size:1.6rem;font-weight:650;background:transparent;border:1px solid transparent;padding:3px 6px 3px 0;min-height:42px;max-width:650px}.project-name input:hover{border-color:var(--line)}.project-counts{display:flex;gap:22px;align-items:center;color:var(--muted);font-size:.8rem;flex-wrap:wrap}.project-counts strong{font-size:1.65rem;font-weight:550;color:var(--ink);margin-right:4px;font-variant-numeric:tabular-nums}.project-counts .count-error,.project-counts .count-error strong{color:var(--red)}
.workspace{display:grid;grid-template-columns:350px minmax(0,1fr);gap:26px;align-items:start}.settings{background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);min-width:0;overflow:hidden}.tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:7px 7px 0;border-bottom:1px solid var(--line);gap:3px}.tabs button{font-size:.875rem;font-weight:550;padding:12px 4px;min-height:48px;border-bottom:3px solid transparent;color:var(--muted);border-radius:6px 6px 0 0}.tabs button.active{color:var(--brand);background:#fff0e9;border-bottom-color:var(--teal)}.settings-body{padding:20px;max-height:calc(100vh - 280px);min-height:410px;overflow-y:auto;scrollbar-width:thin}.panel-intro p{font-size:.875rem;color:var(--muted);margin:7px 0 18px}.field{display:grid;gap:6px;font-size:.875rem;margin-bottom:13px;min-width:0}.field>input,.field>textarea,.field>select{font-size:1rem}.two-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.table-editor{padding:14px;border:1px solid var(--line);border-radius:12px;margin-bottom:12px}.table-editor-head{display:flex;gap:8px;align-items:center;margin-bottom:12px}.table-editor-head input{border-color:transparent;padding:4px;min-height:36px;font-weight:550}.table-index{background:#ffede4;border-radius:7px;display:grid;place-items:center;width:28px;height:28px;font-size:.8rem;flex-shrink:0}.icon-button{min-width:36px;min-height:36px;padding:4px 6px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;flex-shrink:0;font-size:.85rem}.icon-button:hover{background:#fff1e9}.table-editor-head .icon-button,.dialog-heading .icon-button{font-size:1.35rem}.danger-text{color:var(--red)}.edge-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}.unit-input{display:flex;align-items:center;gap:6px}.unit-input>span{color:var(--muted)}.table-editor-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:.75rem;color:var(--muted)}.text-button{font-size:.8125rem;color:var(--teal);min-height:36px;padding:4px;line-height:1.5}.text-button:hover{text-decoration:underline}.add-table{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;margin-top:17px}.add-table .field{flex:1;margin-bottom:0}.add-table .small-field{flex:0 0 57px}.add-table .button{padding:10px 12px}.check-line{display:flex;align-items:center;gap:9px;font-size:.875rem;min-height:44px;line-height:1.5}.emphasized{margin-top:16px;color:var(--brand);font-weight:500}.hint{font-size:.8125rem;color:var(--muted);line-height:1.7;margin:8px 0 0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:10px;padding:10px 17px;font-size:.875rem;font-weight:550;line-height:1.5;border:1px solid transparent}.button.primary{background:var(--teal);border-color:var(--teal);color:#fff}.button.primary:hover:not(:disabled){background:#a64234}.button.secondary{border-color:#e5d4cc;background:#fff;color:var(--brand)}.button.secondary:hover:not(:disabled){background:#fff1e9}.button.full{width:100%}.participant-list{margin-top:20px}.person-row{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);padding:9px 0}.person-row>div{flex:1;min-width:0}.person-row strong{display:block;font-size:.875rem;overflow-wrap:anywhere;font-weight:550}.person-row span{display:block;color:var(--muted);font-size:.75rem}.person-row .text-button{font-size:.75rem}.rule-form{background:#fff8f4;border-radius:12px;padding:14px}.rule-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 0;border-bottom:1px solid var(--line);font-size:.875rem}.rule-item strong{font-weight:550;overflow-wrap:anywhere}.rule-item p{margin:5px 0 0;font-size:.8125rem;color:var(--muted)}.priority{display:inline-block;padding:2px 6px;font-size:.75rem;border-radius:4px;margin-right:6px;vertical-align:1px}.priority.hard{background:#ffe9df;color:#9b4535}.priority.soft{background:#fff1d5;color:#755019}.empty-text{font-size:.875rem;color:var(--muted);padding:16px 0;margin:0}.group-section,.lock-section{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.section-heading h3{margin:0}.lock-row{display:flex;align-items:center;justify-content:space-between;font-size:.875rem;padding:7px 0}.lock-row small{display:block;color:var(--muted)}
.result-area{min-width:0}.result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:1px 0 17px}.result-toolbar h2{font-size:1.25rem;margin:0}.result-toolbar p{font-size:.8125rem;color:var(--muted);margin:5px 0 0}.result-toolbar .primary{min-width:148px;min-height:48px}.notice{padding:13px 16px;border-radius:10px;font-size:.875rem;margin-bottom:18px;border:1px solid var(--line);line-height:1.65}.notice strong{display:block;font-weight:550}.notice.success{background:#e8f3ed;border-color:#d1e7db;color:#245b49}.notice.success>span{font-size:.8rem;color:#43725f}.notice.error{background:#fff0f0;border-color:#efd3d6;color:#8e2837}.notice.neutral{background:#fff;color:var(--muted)}.notice ul{padding-left:20px;margin:7px 0 0}.notice details{margin-top:6px}.notice summary{cursor:pointer}.plan-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 19px}.plan-tabs button{background:white;border:1px solid #e1d2cb;border-radius:9px;padding:8px 15px;font-size:.875rem;font-weight:550;min-height:44px}.plan-tabs button span{display:block;font-size:.75rem;color:var(--muted);font-weight:400}.plan-tabs button.active{border-color:var(--teal);background:#fff0e9;box-shadow:inset 0 0 0 1px var(--teal)}.table-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,410px),1fr));gap:18px;align-items:start}.table-card{border:1px solid var(--line);border-radius:16px;background:white;overflow:hidden;box-shadow:var(--shadow);min-width:0}.table-card-head{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #f5eae5}.table-card-head h3{font-size:.9375rem;margin:0;font-weight:600;overflow-wrap:anywhere}.table-card-head>span{font-size:.8rem;color:var(--muted);flex-shrink:0;font-variant-numeric:tabular-nums}.diagram-scroll{width:100%;overflow-x:auto;scrollbar-width:thin;padding:8px 0;background-image:radial-gradient(#ead7cc33 .7px,transparent .7px);background-size:12px 12px}.seat-svg{display:block;max-width:none;margin:0 auto;flex-shrink:0}.seat[role=button]{cursor:pointer}.seat[role=button]:hover rect{stroke:#b44938;stroke-width:2}.seat[role=button]:focus{outline:none}.seat[role=button]:focus-visible rect{stroke:#a86b05;stroke-width:3}.result-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin:20px 0 0}.result-actions>div{display:flex;flex-wrap:wrap;gap:8px}.result-actions .hint{margin:0}.spinner{width:16px;height:16px;border:2px solid #ffffff66;border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.site-footer{max-width:1440px;margin:0 auto;padding:0 24px 24px;display:flex;justify-content:space-between;gap:12px;align-items:center;color:var(--muted);font-size:.8rem}.site-footer button{font-size:.8rem;min-height:44px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:18px;padding:0;width:min(560px,calc(100vw - 28px));max-height:90vh;color:var(--ink);background:#fff;box-shadow:0 24px 80px #bc4f3f33;overflow:auto}dialog::backdrop{background:#10292f66;backdrop-filter:blur(2px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;padding:19px 22px 14px;gap:12px;border-bottom:1px solid var(--line)}.dialog-heading h2{margin:0;font-size:1.15rem;overflow-wrap:anywhere}.dialog-body{padding:20px 22px;font-size:.9375rem}.dialog-body>p{line-height:1.8}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;padding:14px 22px 20px;border-top:1px solid var(--line)}.help-copy h3{margin:22px 0 8px}.help-copy h3:first-child{margin-top:0}.help-copy ol{padding-left:22px}.help-copy li{margin-bottom:7px}.help-copy p{font-size:.875rem;color:#6b5954;line-height:1.85}#share-link{font-size:.8rem;overflow-wrap:anywhere;word-break:break-all;background:#fff8f4}#toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,12px);background:#493d40;color:#fff;padding:12px 18px;border-radius:10px;font-size:.875rem;width:max-content;max-width:calc(100vw - 32px);box-shadow:0 7px 25px #0002;opacity:0;pointer-events:none;z-index:100;transition:opacity .18s,transform .18s}#toast.visible{opacity:1;transform:translate(-50%,0)}.loading{padding:60px 20px;text-align:center;color:var(--muted)}.shared-heading{max-width:760px;margin:5px auto 25px}.shared-heading h1{margin:7px 0}.shared-heading>p{color:var(--muted);font-size:.875rem}.shared-board{max-width:1080px;margin:0 auto}.search-field{max-width:420px;margin-top:20px}.search-result{display:flex;gap:18px;align-items:center;background:#fff4d8;border:1px solid #e7d7ac;border-radius:8px;padding:8px 12px;margin:8px 0;max-width:420px;font-size:.875rem}.search-result strong{overflow-wrap:anywhere}.search-result span{color:#665226;font-size:.8rem}.shared-actions{display:flex;justify-content:center;gap:10px;margin:24px 0 10px}.snapshot-note{color:var(--muted);font-size:.8125rem;text-align:center;margin:18px 0 0}.invalid-share{max-width:560px;margin:40px auto;background:#fff;padding:25px;border:1px solid var(--line);border-radius:14px}.print-only{display:none}
.setup-card{max-width:720px;margin:12px auto 36px;padding:28px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.setup-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.setup-counts .field{font-size:1rem;font-weight:600;margin:0}.setup-counts select{min-height:54px;font-size:1.15rem;font-weight:500}.setup-section{margin-top:26px;padding-top:24px;border-top:1px solid var(--line)}.setup-section h2{font-size:1rem;margin-bottom:14px}.setup-seat-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:12px}.setup-seat-counts .field{margin:0}.setup-names{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}.setup-name{display:flex;align-items:center;gap:10px;min-width:0}.setup-name>span{font-size:.875rem;color:var(--muted);min-width:22px;text-align:right;font-variant-numeric:tabular-nums}.setup-name input{font-size:1rem;min-height:48px}.setup-next{margin-top:26px;text-align:right}.setup-next .button{min-width:150px;min-height:50px;font-size:1rem;margin-top:12px}.setup-error{text-align:left;color:var(--red);font-size:.875rem;margin:0}.setup-next .hint{text-align:left}.back-to-setup{font-size:.875rem;margin-bottom:12px;padding-left:0}.seat-roster{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px 18px;margin:0;padding:16px 18px;border-top:1px solid var(--line);font-size:.875rem}.seat-roster li{overflow-wrap:anywhere}.seat-roster span{display:inline-block;color:var(--muted);font-size:.75rem;margin-right:8px}
@media(max-width:540px){.setup-card{padding:22px 18px;margin:0 auto 24px}.setup-counts{gap:16px}.setup-names{grid-template-columns:minmax(0,1fr);gap:10px}.setup-next .button{width:100%}.setup-section{margin-top:22px;padding-top:20px}}
.setup-seat-counts{grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr))}.setup-table-config{padding:14px;border:1px solid var(--line);border-radius:12px}.setup-table-shape{font-size:.875rem;color:var(--muted);margin:10px 0 2px}.setup-table-config>.setup-table-shape:first-child{margin-top:0}.short-end-check{font-size:.875rem;align-items:center;margin:2px 0}.table-editor>.hint{margin-bottom:12px}
.setup-section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;margin-bottom:14px}.setup-section-heading h2{margin:0}.shape-button{font-size:.875rem;min-height:44px;padding:8px 10px;border:1px solid #e5d4cc;border-radius:8px;white-space:nowrap}.editor-nav{display:flex;align-items:center;justify-content:space-between;gap:14px}
.results-only .topbar,.results-only .site-footer{display:none}
.results-only #app{width:100%;max-width:none;height:100vh;height:100dvh;margin:0;padding:0}
.focused-result{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;width:100%;max-width:1600px;height:100%;margin:0 auto;padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
.result-brand-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
.result-brand{display:flex;align-items:center;gap:10px;flex-shrink:0}.result-brand .brand-mark{width:36px;height:36px;font-size:1.15rem;border-color:#f0c6b8;background:#ffebe1;color:var(--teal);border-radius:11px}.result-brand h1{font-size:1.3rem;line-height:1.3;margin:0;letter-spacing:.05em}
.result-caption{min-width:0;margin:0;text-align:right;font-size:.875rem;color:var(--muted);line-height:1.45}.result-caption>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-caption small{display:block;font-size:.75rem}
.result-overview{display:grid;gap:var(--overview-gap,12px);min-width:0;min-height:0}
.overview-table{display:grid;grid-template-rows:var(--overview-header,32px) minmax(0,1fr);min-width:0;min-height:0;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow)}
.overview-table>h2{min-width:0;margin:0;padding:5px 10px;border-bottom:1px solid #f5eae5;font-size:.875rem;font-weight:600;line-height:21px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.overview-diagram{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;min-width:0;min-height:0;padding:var(--overview-padding,4px)}
.overview-diagram .seat-svg{width:100%;height:100%;min-width:0;min-height:0;max-width:var(--drawing-width);max-height:var(--drawing-height);margin:0}
.focused-result-actions{display:flex;justify-content:center;gap:12px;min-width:0}
.focused-result-actions .button{min-height:50px;min-width:160px;font-size:1rem}
@media(max-width:540px){.focused-result{padding:12px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));gap:10px}.result-brand-bar{gap:10px}.focused-result-actions{gap:8px}.focused-result-actions .button{min-width:0;flex:1;font-size:.875rem;padding:10px 8px}}
@media(max-height:440px){.focused-result{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom));gap:8px}.result-brand .brand-mark{width:28px;height:28px;font-size:1rem;border-radius:8px}.result-brand h1{font-size:1.1rem}.result-caption{font-size:.75rem}.result-caption small{display:inline;margin-left:8px}.result-caption>span{display:inline-block;max-width:200px;vertical-align:bottom}.focused-result-actions .button{min-height:44px;padding-top:8px;padding-bottom:8px}}
@media(min-width:1600px){.workspace{grid-template-columns:365px minmax(0,1fr)}}
@media(max-width:1000px){.workspace{grid-template-columns:310px minmax(0,1fr);gap:18px}.settings-body{padding:16px}.project-counts{gap:14px}.result-toolbar{flex-wrap:wrap}.result-toolbar .primary{min-width:140px}.result-actions>div{width:100%}.result-actions .button{flex:1;padding:10px}.table-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){.topbar{padding:14px 18px}.save-state{display:none}#app{padding:22px 16px 26px}.project-bar{align-items:flex-start;flex-direction:column;gap:13px;margin-bottom:20px}.project-name{width:100%}.project-name input{font-size:1.4rem}.project-counts strong{font-size:1.35rem}.project-counts{gap:22px}.workspace{grid-template-columns:minmax(0,1fr);gap:24px}.settings-body{max-height:540px;min-height:0;padding:18px}.table-editor-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}.table-editor{margin:0}.table-editor-list+.add-table{margin-top:18px}.result-toolbar{flex-wrap:nowrap}.result-toolbar p{max-width:210px}.result-actions .hint{display:block;width:100%}.site-footer{padding:0 16px 16px}.table-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,410px),1fr))}.table-card-head{padding:12px 14px}.shared-heading{margin-top:0}}
@media(max-width:420px){.brand{font-size:1.05rem;gap:9px}.brand-mark{width:38px;height:38px}.brand small{font-size:.7rem}.topbar{padding:12px}.header-button{padding:8px 10px;font-size:.8rem}.header-actions{gap:7px}#app{padding:18px 12px 24px}.settings-body{padding:15px}.project-counts{gap:18px}.result-toolbar .primary{min-width:132px;padding:10px 11px}.result-toolbar p{max-width:164px;font-size:.75rem}.result-actions .button{font-size:.8rem;padding:9px 7px}.dialog-heading,.dialog-body{padding-left:17px;padding-right:17px}.dialog-actions{padding-left:17px;padding-right:17px}.person-row{gap:5px}.table-editor-foot{gap:3px}.table-editor-foot .text-button{font-size:.75rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media print{@page{size:A4;margin:14mm}body{background:#fff;color:#000}body>*:not(.print-only){display:none!important}.print-only{display:block!important}.print-only h1{font-size:20pt}.print-only .table-grid{display:block}.print-only .table-card{box-shadow:none;margin:0 0 14px;break-inside:avoid;page-break-inside:avoid;border-color:#bbb}.print-only .diagram-scroll{overflow:visible;background:none}.print-only svg{max-width:100%;height:auto}.print-only .table-card-head{padding:8px 12px}}

/* Friendly working surfaces: one task at a time, with generous touch targets. */
.topbar{min-height:104px;background:transparent;color:var(--ink);max-width:1000px;margin:auto;padding:22px 28px;position:relative;justify-content:center}
.brand{font-size:1.9rem;font-weight:850;letter-spacing:.08em;gap:12px;color:var(--brand)}
.brand-mark{width:48px;height:48px;border:0;border-radius:17px;background:#ffe6d8;color:var(--brand);font-size:1.6rem;font-weight:750}
.brand small{color:var(--muted);font-size:.75rem;font-weight:500;letter-spacing:.1em;margin-top:6px}
.header-actions:empty{display:none}.header-actions{position:absolute;right:24px}.header-button{border-color:var(--line);background:white;color:var(--brand);border-radius:99px;font-size:.875rem}.header-button:hover{background:#fff0e9}
#app{padding-top:14px}.site-footer{max-width:740px;font-size:.8125rem;padding-top:10px}.site-footer button{font-size:.8125rem}
.button{border-radius:99px;min-height:48px;font-size:1rem;font-weight:700;padding:12px 22px;transition:background .15s,transform .15s,box-shadow .15s}
.button.primary{box-shadow:0 4px 0 #963c2f18}.button.primary:active:not(:disabled){transform:translateY(1px);box-shadow:none}.button.secondary{border-color:var(--line)}
.text-button{font-size:.875rem;min-height:44px;font-weight:650}.icon-button{min-width:44px;min-height:44px}.hint{font-size:.875rem;line-height:1.7}
input,select,textarea{border-color:#e5d8d2;border-radius:14px;min-height:48px;padding:11px 13px;background:#fff;font-size:1rem}
input:hover,select:hover,textarea:hover{border-color:#d9b6a6}input:focus,select:focus,textarea:focus{border-color:var(--brand)}input[type=checkbox]{width:21px;height:21px;min-height:21px}
.setup-card{max-width:680px;border-radius:28px;padding:30px;margin:0 auto 22px;box-shadow:0 12px 40px #76473406;border-color:#f0e3dd}
.setup-intro h1{font-size:1.35rem;letter-spacing:.025em;margin:0 0 24px;font-weight:750}
.setup-counts{gap:14px}.counter-field{min-width:0;padding:18px;border:1px solid #f4e1d7;background:#fff7f0;border-radius:20px}
.counter-field>label{display:block;font-size:1rem;font-weight:700;margin-bottom:10px}.counter-field:nth-child(2){background:#fffaf0;border-color:#f1e7cb}
.count-stepper{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:4px;align-items:center;min-width:0}
.count-stepper button{width:44px;height:44px;border:1px solid #eadbd2;border-radius:50%;background:white;font-size:1.4rem;font-weight:500;line-height:1}.count-stepper button:hover:not(:disabled){background:#ffe9df}.count-stepper button:disabled{opacity:.3}
.count-stepper input{appearance:textfield;-moz-appearance:textfield;min-width:0;width:100%;min-height:48px;border:0;border-radius:8px;background:transparent;padding:0 2px;text-align:center;font-size:1.85rem;line-height:1.3;font-weight:700;font-variant-numeric:tabular-nums}
.count-stepper input::-webkit-inner-spin-button,.count-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.setup-section{margin-top:26px;padding-top:26px;border-color:#f1e7e2}.setup-section h2{font-size:1rem;font-weight:750}.setup-section-heading{gap:6px 12px;margin-bottom:14px}.setup-section-heading h2{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shape-button{border:1px solid #ebd9cf;border-radius:99px;padding:8px 12px;background:#fffaf7;font-size:.8125rem}.optional-tag{font-size:.75rem;font-weight:500;color:#886d5d;background:#fff1d9;padding:2px 8px;border-radius:99px;white-space:nowrap}
.setup-seat-counts{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}.setup-table-config{border-color:#efe4de;border-radius:18px;padding:16px}
.setup-table-top{display:flex;align-items:center;gap:12px}.setup-table-top>.field{flex:1;margin:0;display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:650}.setup-table-top select{width:100px;min-width:78px;font-size:1rem}.setup-table-top .hint{margin:0}.setup-table-top strong{font-size:.9375rem}
.table-chip{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:12px;background:#ffebe1;color:#ae5a3e}.shape-icon{display:block;width:34px;height:28px}.setup-table-shape{font-size:.875rem;margin:12px 0 5px}.short-end-check{min-height:48px;font-size:.875rem}
.setup-names{gap:10px 18px}.setup-name{gap:9px}.setup-name>span{color:#936749;font-size:.8125rem;font-weight:650;min-width:23px}.setup-name input{min-height:48px;background:#fffdfa;border-radius:13px}
.setup-next{text-align:center;margin-top:26px;padding-top:22px;border-top:1px solid #f1e7e2}.setup-next .button{width:100%;min-height:54px;margin-top:12px;font-size:1rem}.setup-summary p{margin:0;font-size:.9375rem}.setup-summary span{font-size:.8125rem;color:var(--muted);margin-left:12px}.setup-summary .setup-error{text-align:left;font-size:.875rem}
.shape-picker{border:0;padding:0;margin:0 0 22px;min-width:0}.shape-picker:last-child{margin-bottom:0}.shape-picker legend{font-size:1rem;font-weight:700;margin-bottom:12px;padding:0}.shape-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.shape-option{position:relative;cursor:pointer;min-width:0}.shape-option input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.shape-option>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:100px;padding:12px 6px;border:2px solid #eee5e1;border-radius:18px;background:#fffdfa;color:#86736a}.shape-option strong{font-size:.875rem}.shape-option input:checked+span{color:var(--brand);border-color:var(--brand);background:#fff0e7}.shape-option input:focus-visible+span{outline:3px solid #d49732;outline-offset:3px}.shape-option input:disabled+span{opacity:.4;cursor:not-allowed}
.editor-flow{max-width:800px;margin:0 auto}.editor-nav{margin:0 0 16px;gap:8px}.editor-nav .text-button{font-size:.875rem}.editor-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.editor-heading h1{font-size:1.35rem;margin:0}.editor-heading p{font-size:.875rem;color:var(--muted);margin:0;white-space:nowrap}
.editor-flow .settings{border-radius:24px}.editor-flow .settings-body{max-height:none;min-height:0;overflow:visible;padding:24px}.editor-flow .tabs{padding:8px;border-bottom:1px solid #f0e7e2;gap:6px}.editor-flow .tabs button{border:0;border-radius:99px;min-height:46px;font-size:.875rem;padding:8px 5px;line-height:1.4}.editor-flow .tabs button.active{background:#ffece3;color:var(--brand);font-weight:750}
.panel-intro h2{font-size:1.05rem}.panel-intro p{font-size:.875rem;margin:8px 0 18px}.rule-form{border-radius:18px;padding:18px;background:#fff8f2}.rule-form .button{margin-top:4px}.priority{border-radius:99px;padding:3px 8px}.rule-item{gap:14px;padding:16px 0}.rule-item p{font-size:.875rem}.empty-text{font-size:.875rem;padding:18px 0 0;margin:0;line-height:1.8}.rule-item .icon-button{background:#fff7f2}
.optional-panel{background:white;border:1px solid var(--line);border-radius:18px;margin:14px 0 0;min-width:0;overflow:clip}.optional-panel>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px;min-height:56px;cursor:pointer;font-size:.9375rem;font-weight:650}.optional-panel>summary::-webkit-details-marker{display:none}.optional-panel>summary::after{content:'＋';font-weight:400;color:var(--brand);font-size:1.15rem;flex-shrink:0}.optional-panel[open]>summary::after{content:'−'}.optional-panel>summary:focus-visible{outline:3px solid #d49732;outline-offset:-4px;border-radius:16px}.optional-panel-body{padding:0 18px 18px}.optional-panel-body>.hint:first-child{margin:0 0 16px}.optional-panel-body>.field:last-child{margin-bottom:0}.group-section,.lock-section{padding:0;margin-top:18px}.lock-row{min-height:48px}.lock-row small{font-size:.8125rem}.section-heading{margin:0 0 10px}.group-section .hint{font-size:.875rem}
.editor-flow .table-editor-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:14px}.editor-flow .table-editor{margin:0;padding:16px;border-radius:18px}.table-editor-foot{font-size:.8125rem}.table-editor-foot .text-button{font-size:.875rem}.emphasized{padding:12px;background:#fff4e9;border-radius:14px}
.person-row{gap:10px}.person-row .text-button{font-size:.875rem}.person-row span{font-size:.8125rem}.participant-list{margin-top:18px}
.editor-submit{position:sticky;bottom:0;z-index:4;padding:16px 0 max(16px,env(safe-area-inset-bottom));background:linear-gradient(#fff9f6e6,#fff9f6 30%)}.editor-submit .button{width:100%;min-height:54px}.editor-flow #result-messages:not(:empty){margin-top:16px}.editor-flow .notice{margin-bottom:0}.export-actions{display:flex;flex-wrap:wrap;gap:10px}.export-actions .button{flex:1;white-space:nowrap;font-size:.875rem}
.table-card{border-radius:20px;border-color:#eadfd8;box-shadow:none}.table-card-head{background:#fff8f3;border-color:#f2e4db}.diagram-scroll{background-image:none}.overview-table{border-radius:17px;box-shadow:none;border-color:#eadfd8}.overview-table>h2{border-radius:16px 16px 0 0;background:#fff0e7;border-bottom-color:#f1dfd4;padding-left:12px}
[data-tone="1"].table-chip{background:#fff3ce;color:#93752a}[data-tone="2"].table-chip{background:#eaf1ff;color:#5679b2}[data-tone="3"].table-chip{background:#e9f5ef;color:#4c8769}
[data-tone="1"]>.table-card-head,[data-tone="1"].overview-table>h2{background:#fff7df}[data-tone="2"]>.table-card-head,[data-tone="2"].overview-table>h2{background:#edf3ff}[data-tone="3"]>.table-card-head,[data-tone="3"].overview-table>h2{background:#edf8f2}
.result-brand h1{font-weight:850;color:var(--brand);letter-spacing:.08em}.result-brand .brand-mark{background:#ffe6d8;border:0;color:var(--brand);border-radius:12px}.focused-result-actions .button{border-radius:99px}.result-caption{color:#7b6867}.focused-result{background:var(--wash)}
dialog{border-radius:24px;border-color:#edddd4;box-shadow:0 24px 80px #5e393326}dialog::backdrop{background:#4d38334d;backdrop-filter:blur(3px)}.dialog-heading{border-color:#f2e7e1}.dialog-heading h2{font-size:1.1rem}.dialog-actions{border-color:#f2e7e1;gap:10px}.dialog-actions .button{font-size:.9375rem}.dialog-body>p{font-size:.9375rem}.help-copy p{font-size:.9375rem}#toast{border-radius:18px;font-size:.875rem}
@media(max-width:600px){.topbar{padding:20px 18px;min-height:100px}.brand{font-size:1.7rem}.brand-mark{width:44px;height:44px}.header-actions{right:14px}.header-actions .header-button{padding:8px 10px;font-size:.8125rem}.topbar:has(.header-actions:not(:empty)){justify-content:flex-start}.topbar:has(.header-actions:not(:empty)) .brand{font-size:1.2rem;gap:8px}.topbar:has(.header-actions:not(:empty)) .brand-mark{width:34px;height:34px;font-size:1.2rem}.topbar:has(.header-actions:not(:empty)) .brand small{font-size:.75rem}#app{padding:10px 14px 24px}.setup-card{padding:22px 18px;border-radius:24px}.setup-intro h1{font-size:1.15rem;margin-bottom:20px}.setup-counts{grid-template-columns:minmax(0,1fr);gap:10px}.counter-field{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-radius:17px}.counter-field>label{margin:0;flex-shrink:0;font-size:1rem}.count-stepper{width:184px;max-width:75%;gap:4px}.count-stepper input{font-size:1.7rem}.setup-section{padding-top:22px;margin-top:22px}.setup-section-heading{gap:4px 8px}.shape-button{font-size:.8125rem;padding:8px 11px}.setup-names{grid-template-columns:minmax(0,1fr)}.setup-summary span{display:block;margin:4px 0 0}.setup-next .button{min-height:54px}.editor-heading{align-items:flex-start;flex-direction:column;gap:5px}.editor-flow .settings-body{padding:18px}.editor-flow .tabs{gap:2px;padding:6px}.editor-flow .tabs button{font-size:.875rem}.optional-panel>summary{padding:15px 16px}.optional-panel-body{padding:0 16px 16px}.rule-form{padding:14px}.person-row{flex-wrap:wrap}.person-row>div{flex-basis:45%}.export-actions{flex-direction:column}.export-actions .button{width:100%;flex:auto}.site-footer{padding:0 18px 18px}.shape-options{gap:8px}.shape-option>span{min-height:92px}.focused-result-actions .button{padding-left:8px;padding-right:8px;font-size:.875rem}.result-brand h1{font-size:1.25rem}.result-caption{font-size:.8125rem}}
@media(max-width:360px){.setup-card{padding:20px 14px}.counter-field{padding:10px 12px}.count-stepper{width:166px}.setup-section-heading{align-items:flex-start}.setup-table-top>.field{font-size:.875rem}.table-chip{width:34px;height:34px}.editor-flow .tabs button{font-size:.875rem}.result-caption>span{max-width:135px}}
@media(max-height:440px){.result-brand h1{font-size:1.1rem}}
@media(prefers-reduced-motion:reduce){.button{transition:none}}

/* Center the same wordmark on every page, independently of secondary actions. */
.topbar,.topbar:has(.header-actions:not(:empty)){display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;justify-content:normal;gap:8px;min-height:0;padding:20px 18px 12px}
.topbar .header-actions{position:static;justify-self:center;justify-content:center;right:auto}
.brand.wordmark-link,.topbar:has(.header-actions:not(:empty)) .brand.wordmark-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:4px 8px;gap:0;line-height:1;border-radius:12px;max-width:100%;transition:opacity .15s}
.wordmark-link:hover{opacity:.8}.wordmark-link:active{opacity:.65}.wordmark{display:block;width:208px;height:60px;max-width:100%;object-fit:contain}
.result-brand-bar{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:2px;min-width:0}
.result-logo{margin:0;line-height:1;max-width:100%}.result-logo .wordmark{width:160px;height:46px}.result-logo .wordmark-link{min-height:44px;padding:0 8px}
.result-caption{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;text-align:center;margin:0;line-height:1.4}
.result-caption>span{display:block;max-width:min(70vw,400px);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-caption small{display:block;flex-shrink:0;margin:0;font-size:.75rem}
.focused-result-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(100%,760px);justify-self:center}
.focused-result-actions .button{min-width:0;min-height:48px;padding:10px 12px;font-size:.9375rem;white-space:nowrap}.focused-result-actions .share-result-button{background:#fff0e7;border-color:#e4b4a3;color:#9e3f30}
.setup-auto-capacity{color:var(--brand);font-weight:600}.share-panel>.field{margin-top:18px}.share-panel textarea{font-size:.8125rem;overflow-wrap:anywhere}.share-link-actions{display:grid;gap:10px;margin:16px 0}.share-link-actions .button{width:100%;font-size:.9375rem}

.setup-mixer{margin-top:20px}.mixer-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:50px;padding:12px 16px;border:1px solid #e8d8d0;border-radius:16px;background:#fff;color:var(--brand);font-size:1rem;font-weight:650;text-align:left}
.mixer-toggle[aria-pressed=true]{border-color:#d58069;background:#fff2ec}.mixer-toggle:hover{border-color:#c98972}
.setup-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.setup-intro h1{min-width:0;margin:0;text-wrap:balance}.mixer-toggle-compact{flex:0 0 auto;width:auto;max-width:60%}.mixer-toggle-compact>span{overflow-wrap:anywhere}.mixer-toggle-compact[aria-pressed=true]{border-color:#d58069;background:#fff2ec;color:var(--brand)}.setup-card>.setup-mixer{margin-top:26px;padding-top:26px;border-top:1px solid #f1e7e2}.setup-card>.setup-mixer>.mixer-options{padding-top:0}
.mixer-options{padding:18px 0 0}.mixer-options[hidden]{display:none}.mixer-layouts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:0;padding:0;margin:0;min-width:0}.mixer-layouts legend{font-size:.9375rem;font-weight:650;margin-bottom:10px}.mixer-layout{position:relative;display:flex;align-items:flex-start;gap:9px;padding:14px 12px;border:1px solid #e8dcd5;border-radius:15px;cursor:pointer;min-width:0}.mixer-layout:has(input:checked){border-color:var(--teal);background:#fff7f2}.mixer-layout input{width:18px;height:18px;min-height:18px;padding:0;margin:4px 0 0;flex-shrink:0;accent-color:var(--teal)}.mixer-layout strong{font-size:.9375rem;display:block}.mixer-layout small{display:block;font-size:.875rem;color:var(--muted);margin-top:5px;line-height:1.6}.mixer-team-counts{display:flex;flex-wrap:wrap;gap:8px 18px;margin:16px 0 6px;font-size:.875rem}.mixer-team-counts .team-a{color:#a04435}.mixer-team-counts .team-b{color:#365f9c}
.setup-participant{display:flex;align-items:center;gap:12px;min-width:0}.setup-participant>.setup-name{flex:1;min-width:0}.setup-names.with-teams{grid-template-columns:minmax(0,1fr)}.team-choice{display:flex;gap:6px;border:0;padding:0;margin:0;flex:0 0 auto;min-width:0}.team-option{display:block;position:relative;cursor:pointer}.team-option input{position:absolute;opacity:0;width:1px;height:1px;min-height:1px;padding:0;border:0;margin:0;clip-path:inset(50%)}.team-option>span{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #e0d6d0;border-radius:12px;background:#fff;color:#6c6159;font-weight:650;font-size:1rem}.team-option.team-a:has(input:checked)>span{background:#fff0ec;border-color:#b9604d;color:#9b3c2d}.team-option.team-b:has(input:checked)>span{background:#eef3ff;border-color:#6485be;color:#31578e}.team-option:has(input:focus-visible)>span{outline:3px solid #2f6378;outline-offset:3px}.team-option:hover>span{border-color:#917b6b}.editor-mixer{margin-top:0;margin-bottom:24px}.editor-mixer .mixer-layouts{grid-template-columns:minmax(0,1fr)}
@media(max-width:540px){.mixer-layouts{grid-template-columns:minmax(0,1fr)}.setup-participant{gap:8px}.team-choice{gap:5px}.team-option>span{min-width:44px}.setup-names.with-teams .setup-name{gap:6px}.setup-names.with-teams .setup-name>span{min-width:18px}.mixer-team-counts{gap:6px 12px}}
@media(max-width:620px){.focused-result-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.focused-result-actions .share-result-button{grid-column:1/-1}.focused-result-actions .button{min-height:44px;font-size:.875rem;padding:9px 8px}.topbar{padding-top:16px}.wordmark{width:190px;height:55px}.result-logo .wordmark{width:148px;height:43px}.result-caption>span{max-width:70vw}}
@media(max-height:440px){.result-logo .wordmark{width:124px;height:36px}.result-caption{display:none}.focused-result-actions .button{min-height:44px;padding-top:8px;padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){.wordmark-link{transition:none}}

/* Footer links stay separate from the seating controls. */
.site-footer{flex-wrap:wrap;gap:8px 20px;justify-content:center;text-align:center}.site-footer nav{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 12px}.site-footer nav a,.site-footer nav button{display:inline-flex;align-items:center;min-height:44px;padding:6px 2px;font-size:.875rem}.site-footer nav a:hover,.site-footer nav a[aria-current=page]{color:var(--brand);text-decoration:underline;text-underline-offset:3px}
