.lg-shell .lwb-host{min-width:0}
.lg-shell .lwb-workbench{background:#f8fbfc;color:#20384e;border:1px solid #d6e3e8;border-radius:16px;padding:8px;min-width:0;font-family:Arial,sans-serif;container-type:inline-size}
.lg-shell .lwb-workbench *{box-sizing:border-box}
.lg-shell .lwb-heading,.lg-shell .lwb-builder-actions,.lg-shell .lwb-solve-actions,.lg-shell .lwb-card-heading,.lg-shell .lwb-solve-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.lg-shell .lwb-heading{margin-bottom:8px}
.lg-shell .lwb-heading h3{margin:0;font-family:inherit;font-size:1.1rem;line-height:1.25;color:#23425b}
.lg-shell .lwb-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:10px 15px;border:2px solid #b9ccd6;border-radius:11px;background:#fff;color:#29495e;font:700 .9rem/1.1 Arial,sans-serif;cursor:pointer;touch-action:manipulation;box-shadow:0 2px 0 #c4d2d9}
.lg-shell .lwb-button:disabled{cursor:default;opacity:.45;box-shadow:none}
.lg-shell .lwb-primary{background:#20735d;border-color:#175541;color:#fff;box-shadow:0 3px 0 #144835}
.lg-shell .lwb-op-chooser{background:#e8f0f5;border:1px solid #cbdde7;border-radius:15px;padding:16px;margin-bottom:15px}
.lg-shell .lwb-op-chooser>strong{display:block;font-size:1rem;margin-bottom:12px}
.lg-shell .lwb-op-chooser>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.lg-shell .lwb-op-choice{display:flex;flex-direction:column;min-height:88px;gap:7px;background:#fff;border-color:#88abc2}
.lg-shell .lwb-op-choice>span{font:800 2.35rem/1 Arial,sans-serif}
.lg-shell .lwb-op-choice>small{font:700 .74rem/1.2 Arial,sans-serif;max-width:100%;overflow-wrap:anywhere}
.lg-shell .lwb-digit-tray{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"digits digits" "heading tools" "more more";gap:4px 8px;background:linear-gradient(135deg,#194c67,#226d70);border:2px solid #d4b46b;border-bottom:4px solid #123d52;border-radius:13px;padding:7px 8px;box-shadow:0 2px 6px #153d5020;margin-bottom:8px}
.lg-shell .lwb-tray-heading{grid-area:heading;display:flex;align-items:center;align-content:center;gap:3px 9px;flex-wrap:wrap;margin:0;min-width:0}
.lg-shell .lwb-tray-heading>strong{font-size:.83rem;color:#fff4ce}
.lg-shell .lwb-tray-heading>span{font-size:.72rem;color:#d1e7e9}
.lg-shell .lwb-digits{grid-area:digits;display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.lg-shell .lwb-digit-token{appearance:none;display:grid;place-items:center;min-width:44px;min-height:44px;flex:1 0 44px;max-width:60px;padding:4px 6px;border:2px solid #103f53;border-bottom-width:3px;border-radius:9px;background:linear-gradient(#fff9e7,#e9e6d8);color:#1d4357;font:800 1.5rem/1 ui-monospace,monospace;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:0 1px 0 #0d3542}
.lg-shell .lwb-digit-token.is-picked{background:#fff0bc;border-color:#b58218;outline:3px solid #dcb34e;outline-offset:1px}
.lg-shell .lwb-tray-tools{grid-area:tools;display:flex;gap:5px;flex-wrap:wrap;align-items:center;justify-content:flex-end;margin:0}
.lg-shell .lwb-tray-key{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;border:1px solid #90b8bc;border-radius:9px;background:#ffffff0b;color:#f3f7ed;padding:6px 8px;font:700 .72rem/1 Arial,sans-serif;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.lg-shell .lwb-comma-key strong{font:800 1.8rem/.6 ui-monospace,monospace;transform:translateY(-3px)}
.lg-shell .lwb-backspace-key>span:first-child{font-size:1.2rem}
.lg-shell .lwb-tray-tools>.lwb-more-toggle{margin-left:auto;border-color:transparent;background:transparent;box-shadow:none;color:#f5db96;font-size:.76rem;padding:8px 7px}
.lg-shell .lwb-tray-tools>.lwb-tray-new{background:#ffffff0b;border:1px solid #90b8bc;box-shadow:none;color:#fff0c6;font-size:.72rem;padding:6px 8px}
.lg-shell .lwb-more-tools{grid-area:more;display:flex;gap:6px;flex-wrap:wrap;padding-top:7px;margin-top:3px;border-top:1px solid #ffffff30}
.lg-shell .lwb-more-tools>.lwb-button,.lg-shell .lwb-more-tools>.lwb-tray-key{background:#f3f3e8;color:#294f60;border:1px solid #ccdbd9;box-shadow:none;font-size:.71rem;padding:8px 10px}
.lg-shell .lwb-digit-tray.is-answer-target{border-color:#f1cf79;box-shadow:0 0 0 2px #d9b35e30}
.lg-shell .lwb-digit-tray.is-answer-target .lwb-tray-heading>strong{color:#ffe39c}
.lg-shell .lwb-status{font:600 .76rem/1.35 Arial,sans-serif;min-height:1.1em;margin:3px 0 6px;color:#5b6f7e}
.lg-shell .lwb-status:empty{height:0;min-height:0;margin:0;overflow:hidden}
.lg-shell .lwb-cards{display:grid;gap:7px}
.lg-shell .lwb-card{min-width:0;background:#fff;border:1px solid #d4e1e7;border-radius:15px;overflow:hidden}
.lg-shell .lwb-card.is-active{border-color:#9bb7c6;box-shadow:0 3px 12px #224d6d0a}
.lg-shell .lwb-card-heading{flex-wrap:nowrap;gap:4px;padding:3px 4px;background:#f2f6f8}
.lg-shell .lwb-card-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}
.lg-shell .lwb-card-actions>.lwb-header-edit,.lg-shell .lwb-card-actions>.lwb-carries-toggle{font-size:.7rem;padding:6px 8px;border:1px solid #c9d9e2;box-shadow:none;background:#fff}
.lg-shell .lwb-card-actions>.lwb-carries-toggle[aria-expanded=true]{background:#e7f2eb;border-color:#92b69f;color:#315d45}
.lg-shell .lwb-edit-narrow{display:none}
.lg-shell .lwb-board-title{justify-content:flex-start;flex:1;min-width:0;background:transparent;border:0;box-shadow:none;text-align:left;padding:3px;gap:7px}
.lg-shell .lwb-board-title>span:last-child{min-width:0}
.lg-shell .lwb-board-title small{display:block;font-size:.69rem;color:#638095;margin-bottom:3px}
.lg-shell .lwb-board-title strong{display:block;overflow-wrap:anywhere;font:800 1.12rem/1.2 ui-monospace,monospace}
.lg-shell .lwb-operation-badge{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:8px;background:#2b627e;color:#fff;font-size:1.6rem;font-weight:800}
.lg-shell .lwb-delete{background:transparent;color:#86615c;border:0;box-shadow:none;font-size:1.5rem;padding:5px;flex-shrink:0}
.lg-shell .lwb-card-body{padding:8px;min-width:0}
.lg-shell .lwb-operand-scroll{overflow:auto;max-width:100%;padding:1px 3px 4px;overscroll-behavior:contain}
.lg-shell .lwb-operand-grid{display:grid;gap:7px;min-width:max-content;width:100%}
.lg-shell .lwb-number-row{display:grid;grid-template-columns:minmax(85px,1fr) auto;align-items:center;gap:5px;justify-items:end}
.lg-shell .lwb-row-label{font:700 .72rem/1.2 Arial,sans-serif;color:#627f93;justify-self:start;letter-spacing:.015em}
.lg-shell .lwb-digit-row{display:flex;align-items:flex-end;justify-content:flex-end;gap:5px;min-width:max-content}
.lg-shell .lwb-place{display:grid;gap:3px;justify-items:center}
.lg-shell .lwb-place>span{font-size:.66rem;color:#6e889b;min-height:13px}
.lg-shell .lwb-digit-cell{appearance:none;width:48px;height:48px;min-width:44px;min-height:44px;border:1px solid #aac2d0;border-bottom:3px solid #8baaba;border-radius:8px;background:#f1f7fa;color:#24445c;font:800 1.65rem/1 ui-monospace,monospace;cursor:pointer;touch-action:manipulation}
.lg-shell .lwb-digit-cell>span{opacity:.24}
.lg-shell .lwb-digit-cell.has-value{border-style:solid;background:#fff}
.lg-shell .lwb-unused-cell{display:block;width:48px;height:48px;min-width:44px;min-height:44px}
.lg-shell .lwb-unused-place>span:first-child{opacity:0}
.lg-shell .lwb-digit-cell.is-selected{background:#fff2c9;border-color:#bd8c29;outline:2px solid #e1bc5c;outline-offset:1px}
.lg-shell .lwb-row-sign{display:grid;place-items:center;width:24px;height:48px;font:800 1.8rem/1 Arial,sans-serif}
.lg-shell .lwb-comma{display:flex;align-items:flex-end;justify-content:center;height:48px;width:8px;font:800 1.8rem/.9 ui-monospace,monospace}
.lg-shell .lwb-comma.is-phantom{opacity:0}
.lg-shell .lwb-number-row:last-child{border-bottom:2px solid #2e4f65;padding-bottom:5px}
.lg-shell .lwb-builder-actions{justify-content:flex-end;gap:6px;margin-top:6px}
.lg-shell .lwb-builder-actions .lwb-button{font-size:.76rem;padding:9px 11px}
.lg-shell .lwb-builder-actions .lwb-primary{flex:1 1 100px}
.lg-shell .lwb-column-host{min-width:0}
.lg-shell .lwb-column-host .lga-toolbar,.lg-shell .lwb-column-host .lga-numbers,.lg-shell .lwb-column-host .lga-bottom>span{display:none}
.lg-shell .lwb-card-body.is-solving{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 8px}
.lg-shell .lwb-card-body.is-solving .lwb-column-host,.lg-shell .lwb-column-host .lga-workpad{display:contents;--lga-cell:44px}
.lg-shell .lwb-column-host .lga-sheet-scroll{grid-column:1/-1;grid-row:1;min-width:0;max-width:100%;margin:0;padding:2px 3px 3px;max-height:440px}
.lg-shell .lwb-column-host .lga-sheet{padding:2px 4px}
.lg-shell .lwb-column-host .lga-bottom{grid-column:1;grid-row:2;margin:0;align-self:stretch}
.lg-shell .lwb-column-host .lga-check{width:100%;font-size:.79rem;min-height:44px}
.lg-shell .lwb-column-host .lga-message{grid-column:1/-1;grid-row:3;margin:2px 0 0}
.lg-shell .lwb-column-host:not(.has-carries) .lga-notes-caption,.lg-shell .lwb-column-host:not(.has-carries) .lga-notes{display:none}
.lg-shell .lwb-column-host .lga-note{height:44px;min-height:44px;font-size:1rem}
.lg-shell .lwb-column-host .lga-notes-caption{margin-bottom:2px}
.lg-shell .lwb-column-host .lga-notes{margin-bottom:2px}
.lg-shell .lwb-column-host .lga-notes .lga-comma,.lg-shell .lwb-column-host .lga-notes .lga-sign{height:44px}
.lg-shell .lwb-solve-actions{grid-column:2;grid-row:2;margin:0;align-self:stretch}
.lg-shell .lwb-solve-actions>.lwb-button{flex:1;width:100%;font-size:.79rem;padding:7px 9px}
.lg-shell .lwb-digit-cell.is-drop-over,.lg-shell .lwb-column-host .lga-entry.is-drop-over{background:#d8f5e5!important;border-color:#267b58!important;outline:4px solid #86d1a8!important;outline-offset:1px}
.lg-shell .lwb-answer-over{outline:4px solid #6dbf91!important;outline-offset:3px;background:#e7f8ed!important}
.lg-shell .lwb-button:focus-visible,.lg-shell .lwb-digit-token:focus-visible,.lg-shell .lwb-digit-cell:focus-visible,.lg-shell .lwb-tray-key:focus-visible{outline:3px solid #bc8d26;outline-offset:2px}
.lwb-drag-ghost{position:fixed;z-index:2147483647;top:0;left:0;pointer-events:none;min-width:55px;min-height:57px;display:grid;place-items:center;padding:7px 13px;border:3px solid #b58b2d;border-radius:12px;background:#fff0bb;box-shadow:0 8px 22px #071c4160;color:#23425b;font:800 1.9rem/1 ui-monospace,monospace;will-change:transform;user-select:none}
.lg-shell .lwb-host.is-dragging .lwb-digit-token{cursor:grabbing}
@container (min-width:860px){.lg-shell .lwb-digit-tray{grid-template-areas:"heading heading" "digits tools" "more more"}.lg-shell .lwb-tray-heading{min-height:16px}}
@container (max-width:540px){.lg-shell .lwb-digit-tray{grid-template-areas:"digits digits" "tools tools" "more more"}.lg-shell .lwb-tray-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.lg-shell .lwb-tray-tools{justify-content:space-between}.lg-shell .lwb-tray-tools>.lwb-more-toggle{margin-left:0}.lg-shell .lwb-edit-wide{display:none}.lg-shell .lwb-edit-narrow{display:inline}.lg-shell .lwb-card-actions{gap:2px}.lg-shell .lwb-card-actions>.lwb-header-edit,.lg-shell .lwb-card-actions>.lwb-carries-toggle{padding:5px;font-size:.66rem}}
@media(max-width:600px){.lg-shell .lwb-workbench{padding:6px;border-radius:13px}.lg-shell .lwb-heading{gap:6px}.lg-shell .lwb-heading h3{font-size:1rem}.lg-shell .lwb-op-chooser{padding:10px}.lg-shell .lwb-op-chooser>div{gap:6px}.lg-shell .lwb-op-choice{padding:7px 3px;min-height:81px}.lg-shell .lwb-op-choice>small{font-size:.62rem}.lg-shell .lwb-digit-tray{padding:6px}.lg-shell .lwb-digit-token{min-width:44px;flex-basis:44px;min-height:44px;font-size:1.4rem}.lg-shell .lwb-digit-cell,.lg-shell .lwb-unused-cell{width:44px;height:44px}.lg-shell .lwb-digit-cell{font-size:1.5rem}.lg-shell .lwb-row-sign{height:44px;width:18px}.lg-shell .lwb-comma{height:44px;width:6px}.lg-shell .lwb-card-body{padding:6px}.lg-shell .lwb-number-row{grid-template-columns:minmax(70px,1fr) auto}.lg-shell .lwb-digit-row{gap:3px}.lg-shell .lwb-row-label{font-size:.67rem}.lg-shell .lwb-board-title strong{font-size:.92rem}}
