.tool-workspace{--tool-ink:#233e34;--tool-line:#d7dfd5;--tool-paper:#fffdf8;min-height:100dvh;color:var(--tool-ink);font:14px/1.55 var(--sans,Arial,sans-serif);background:#f2f3ec}.tool-workspace *{box-sizing:border-box}.tool-workspace button,.tool-workspace input,.tool-workspace select{font:inherit}.tool-workspace button,.tool-workspace nav a{border:1px solid var(--tool-line);min-height:44px;color:var(--tool-ink);background:var(--tool-paper);cursor:pointer;border-radius:7px;justify-content:center;align-items:center;gap:7px;padding:8px 13px;text-decoration:none;display:inline-flex}.tool-workspace button:hover:not(:disabled),.tool-workspace nav a:hover{background:#e5ecdf}.tool-workspace button:disabled{opacity:.45;cursor:not-allowed}.tool-workspace :is(button,a):not(.mj-select-trigger):focus-visible{outline-offset:3px;outline:3px solid #af8541}.tool-workspace button.tool-primary{color:#fff;background:#214c39;border-color:#214c39}.tool-workspace input,.tool-workspace select{border:1px solid var(--tool-line);min-width:0;max-width:100%;min-height:44px;color:var(--tool-ink);background:#fffdf8;border-radius:6px;padding:8px}.tool-workspace label{align-items:center;gap:8px;display:flex}.tool-workspace h1,.tool-workspace h2,.tool-workspace p{margin-top:0}.tool-workspace p{overflow-wrap:anywhere}.tool-topbar{border-bottom:1px solid var(--tool-line);background:#fffdf8;align-items:center;gap:24px;padding:14px 24px;display:flex}.tool-brand{color:#234c39;white-space:nowrap;font:700 24px Georgia,serif;text-decoration:none}.tool-brand span{color:#a07a42;font-weight:400}.tool-topbar nav{gap:5px;display:flex}.tool-topbar nav a{background:0 0;border:0}.tool-topbar nav a[aria-current=page]{background:#e7eddf;font-weight:700}.tool-top-actions{gap:7px;margin-left:auto;display:flex}.tool-heading{justify-content:space-between;align-items:center;gap:16px;margin:26px 28px 18px;display:flex}.tool-heading p{letter-spacing:.15em;color:#758570;margin-bottom:6px;font-size:10px}.tool-heading h1{margin:0;font:30px/1.3 Georgia,Microsoft YaHei,serif}.tool-heading>span{color:#687b64;font-size:12px}.tool-notice{background:#fff0d0;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 28px;display:flex}.tool-notice>span{flex:1;min-width:150px}.tool-notice a{color:#295239}.tool-document-bar{flex-wrap:wrap;align-items:center;gap:10px;margin:0 28px 18px;display:flex}.tool-document-bar>input{flex:1;min-width:140px;max-width:320px;font-weight:600}.tool-document-bar label{font-size:12px}.tool-layout{grid-template-columns:minmax(0,1fr) 294px;gap:20px;margin:0 28px 32px;display:grid}.tool-main{min-width:0}.tool-hand .tool-layout{display:block}.tool-hand .tool-document-bar,.tool-hand .tool-layout{max-width:1320px;margin-left:auto;margin-right:auto;padding:0 28px}.tool-region-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.tool-seat-tabs,.tool-zone-tabs{gap:5px;display:flex}.tool-seat-tabs button,.tool-zone-tabs button{font-size:12px}.tool-workspace button[aria-pressed=true]{background:#e1ead7;border-color:#94ad83;font-weight:600}.tool-zone-tabs small{color:#7c8c70}.tool-table-frame{background:#0d3f31;border-radius:12px;height:clamp(400px,56vh,700px);overflow:hidden}.tool-table-frame>.mahjong-table-3d{width:100%;height:100%}.tool-table-frame button{min-height:0;padding:0}.tool-rack{background:var(--tool-paper);border:1px solid var(--tool-line);border-radius:12px;min-width:0;margin:14px 0;padding:18px 22px}.tool-hand .tool-rack{min-height:240px;padding:28px}.tool-rack-heading{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.tool-rack-heading h2{margin:0;font-size:14px}.tool-rack-heading>span{color:#687b64;margin-right:auto;font-size:12px}.tool-rack-heading button{font-size:11px}.tool-tiles{flex-wrap:wrap;align-items:center;gap:7px;min-height:100px;padding:16px 0;display:flex}.tool-workspace .tool-tile{background:0 0;border:2px solid #0000;flex-shrink:0;width:57px;min-height:76px;padding:2px}.tool-hand .tool-tile{width:67px;min-height:92px}.tool-workspace .tool-tile[aria-pressed=true]{background:#fff3d4;border-color:#b58c36;box-shadow:0 0 0 2px #f2dfaa}.tool-tile .mahjong-tile{width:100%;display:block}.tool-selection{background:#f5eddc;border:1px solid #ddcfa7;border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;padding:12px;display:flex}.tool-selection button,.tool-selection label{font-size:12px}.tool-selection strong{margin-right:auto}.tool-selection select{max-width:150px}.tool-footnote{color:#73816a;margin:16px 0;font-size:11px}.tool-palette{background:#e9ecdf;border:1px solid #d7ddcb;border-radius:12px;padding:18px}.tool-palette h2{margin:0 0 12px;font-size:13px}.tool-suits{flex-wrap:wrap;gap:3px;margin-bottom:14px;display:flex}.tool-suits button{background:0 0;border-color:#0000;padding:7px 10px;font-size:11px}.tool-palette-grid{flex-wrap:wrap;gap:5px;display:flex}.tool-workspace .tool-palette-grid button{background:0 0;border:0;width:48px;min-height:66px;padding:2px}.tool-palette-grid .mahjong-tile{width:44px;display:block}.tool-hand .tool-palette-grid button{width:60px;min-height:82px}.tool-hand .tool-palette-grid .mahjong-tile{width:56px}.tool-sidebar{min-width:0}.tool-sidebar-tabs{gap:6px;margin-bottom:12px;display:flex}.tool-sidebar-tabs button{flex:1}.tool-sidebar .tw-full-table-settings{border:1px solid var(--tool-line);background:var(--tool-paper);border-radius:10px;padding:18px}.tool-sidebar details summary{cursor:pointer;min-height:44px;font-weight:600}.tool-sidebar details label{gap:5px;margin:12px 0;font-size:12px;display:grid}.tool-sidebar details p{color:#73816a;font-size:11px}.tool-sidebar details .tw-check{display:flex}.tool-sidebar details .tw-row{flex-wrap:wrap;gap:5px;display:flex}.tool-dialog{width:min(540px,100vw - 24px);max-height:calc(100dvh - 30px);color:var(--tool-ink);background:#fffdf8;border:1px solid #b6c5ad;border-radius:12px;padding:0}.tool-dialog::backdrop{background:#14352466}.tool-dialog>header{border-bottom:1px solid var(--tool-line);background:#fffdf8;justify-content:space-between;align-items:center;padding:16px 20px;display:flex;position:sticky;top:0}.tool-dialog h2{margin:0;font-size:20px}.tool-dialog-body{padding:20px}.tool-dialog-body>button{width:100%;margin:10px 0;display:flex}.tool-dialog-body p{color:#6d7c66;font-size:12px}.tool-dialog-actions{flex-wrap:wrap;gap:6px;margin:14px 0;display:flex}.tool-dialog-body .tool-draft-item{text-align:left;flex-direction:column;align-items:flex-start}.tool-draft-item small{color:#718069;font-size:11px}.tool-loading{padding:40px}.tool-export-holder{pointer-events:none;width:1000px;position:fixed;top:0;left:-12000px}.tool-export-sheet{color:#234735;background:#fffdf8;width:1000px;padding:40px}.tool-export-tiles{flex-wrap:wrap;gap:8px;display:flex}.tool-export-tiles .mahjong-tile{width:62px;display:block}@media (width<=1100px){.tool-topbar{flex-wrap:wrap;gap:10px}.tool-layout{grid-template-columns:minmax(0,1fr) 250px;gap:14px;margin:0 16px 24px}.tool-heading{margin:20px 16px}.tool-document-bar{margin:0 16px 16px}.tool-topbar nav a{font-size:12px}.tool-palette{padding:12px}}@media (width<=760px){.tool-topbar{padding:12px}.tool-brand{font-size:21px}.tool-topbar nav{order:3;justify-content:space-between;width:100%}.tool-top-actions{gap:4px}.tool-top-actions button{padding:8px;font-size:12px}.tool-heading{flex-direction:column;align-items:flex-start;gap:8px}.tool-heading h1{font-size:26px}.tool-document-bar{gap:7px}.tool-document-bar>input{flex-basis:100%;width:100%;max-width:none}.tool-document-bar label{flex:1;min-width:140px}.tool-layout{display:block}.tool-hand .tool-document-bar,.tool-hand .tool-layout{padding:0 12px}.tool-hand .tool-rack,.tool-rack{padding:14px}.tool-rack-heading{gap:6px}.tool-tiles{gap:4px}.tool-hand .tool-tile,.tool-workspace .tool-tile{width:46px;min-height:64px}.tool-table-frame{height:420px}.tool-sidebar{margin-top:16px}.tool-region-bar{gap:8px}.tool-seat-tabs button,.tool-zone-tabs button{min-width:44px;padding:7px 10px}.tool-palette-grid{gap:5px}.tool-hand .tool-palette-grid button{width:48px;min-height:68px}.tool-hand .tool-palette-grid .mahjong-tile{width:44px}.tool-selection label{width:100%}.tool-notice{padding:10px 14px}}
