:root{color-scheme:light;--ink:#233a34;--muted:#71847d;--green:#287f62;--green-dark:#1c674e;--green-soft:#e3f1e9;--border:#e1e8e4;--grid:#e6ece8;--surface:#fff;--bg:#f4f7f5;--row-height:28px;--font:Arial,"Noto Sans CJK JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;--shadow:0 3px 12px #25443907}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:var(--font);font-size:13px;background:var(--bg);height:100vh;height:100dvh;min-width:780px;overflow:hidden}button,input,select,textarea{font:inherit;color:inherit}button{border:0;background:none;cursor:pointer;white-space:nowrap}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #75ad96;outline-offset:2px}button{transition:background-color .13s,color .13s}input,select,textarea{background:#fff;border:1px solid var(--border);border-radius:5px}input,select{height:33px;padding:5px 9px;min-width:0}input[type=checkbox]{width:15px;height:15px;accent-color:var(--green);padding:0}input[type=color]{padding:2px;width:38px;cursor:pointer}input[type=range]{accent-color:var(--green);border:0;background:transparent;padding:0}select{cursor:pointer}.icon{width:20px;height:20px;vertical-align:middle;flex:0 0 auto}span[data-icon]{display:inline-flex;align-items:center;justify-content:center}button>span[data-icon]{pointer-events:none}button>svg{pointer-events:none}.green{color:var(--green)}[hidden]{display:none!important}.app-header{height:94px;display:flex;align-items:center;padding:0 26px 0 28px;position:relative;gap:28px;background:linear-gradient(100deg,#fcfdfc,#f6f9f7 80%,#fff);border-bottom:1px solid #e8eee9;overflow:hidden}.brand{display:flex;align-items:center;gap:14px;flex-shrink:0}.brand-mark{width:40px;height:48px}.brand-name{font-family:Arial,var(--font);font-size:31px;font-weight:700;letter-spacing:-1.2px;color:#213b33;line-height:1.08}.brand p{font-size:11px;color:#6e8379;margin:7px 0 0;letter-spacing:.04em}.header-catch{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-weight:600;font-size:15px;line-height:1.75;letter-spacing:.14em;transform:rotate(-5deg);color:#596f61;margin-left:30px;position:relative;white-space:nowrap}.header-catch>span:not(.small-paw){margin-left:26px}.header-catch .small-paw{position:absolute;right:-24px;bottom:0;color:#8ba297;transform:rotate(22deg)}.small-paw .icon{width:16px;height:16px;fill:currentColor;stroke:none}
.header-actions{margin-left:auto;display:flex;gap:23px;align-items:center;z-index:1}.local-badge{display:none;align-items:center;gap:6px;color:#5c7f6b;font-size:11px}.local-badge .icon{width:16px}.header-action{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;color:#51685b;padding:6px;border-radius:8px}.header-action:hover{background:#e7efe9}.header-action .icon{width:22px;height:22px}.app-shell{height:calc(100% - 94px);display:flex;gap:10px;padding:10px 12px 12px}.sidebar{width:241px;min-width:241px;background:linear-gradient(#fff,#fdfefd);border:1px solid #e9eee9;border-radius:11px;padding:14px 12px 8px;display:flex;flex-direction:column;box-shadow:var(--shadow)}.sidebar-scroll{overflow-y:auto;flex:1;min-height:0;scrollbar-width:thin}.open-file{background:var(--green);color:#fff;display:flex;align-items:center;width:100%;gap:10px;padding:14px 13px;border-radius:8px;font-size:14px;font-weight:600;letter-spacing:.03em;box-shadow:0 3px 6px #1f755b17}.open-file:hover{background:var(--green-dark)}.open-file>span:first-child .icon{width:23px;height:23px}.open-file>span:last-child{margin-left:auto;padding-left:10px;border-left:1px solid #ffffff50}.open-file>span:last-child .icon{width:15px;height:20px}.quick-links{padding-top:13px;padding-bottom:12px;display:flex;flex-direction:column;gap:2px}.quick-links button,.side-section button{display:flex;align-items:center;gap:11px;min-height:40px;text-align:left;padding:9px 8px;border-radius:6px;width:100%;font-size:12px;color:#445f51}.quick-links button:hover,.side-section button:hover{background:#eff5f1;color:var(--green-dark)}.quick-links .icon,.side-section .icon{width:19px;height:19px}.quick-links button:nth-child(2){font-size:11px;letter-spacing:-.02em}.side-section{border-top:1px solid var(--border);padding-top:17px;padding-bottom:12px;margin:0 4px}.side-section h2{font-size:11px;letter-spacing:.06em;margin:0 4px 8px;color:#435b4c;font-weight:600}.side-section small{font-size:11px;color:#8a9a91;margin-left:4px}.side-section .detail{display:block;font-size:10px;margin:5px 0 0;white-space:nowrap;letter-spacing:-.02em}.sidebar-bottom{padding-top:10px;flex-shrink:0}.privacy-note{background:#edf6f0;display:flex;align-items:flex-start;gap:8px;padding:11px 10px;border-radius:7px}.privacy-note .icon{width:15px;height:16px;color:#688e75;margin-top:3px}.privacy-note p{font-size:10px;line-height:1.85;white-space:nowrap;margin:0;color:#63836e}.mascot-note{display:flex;align-items:center;height:103px;padding:7px 1px 0}.mascot-note img{height:90px;width:104px;object-fit:contain;filter:saturate(.8);opacity:.91}.mascot-note p{font-family:"Yu Mincho",serif;color:#708374;font-size:11px;line-height:1.9;letter-spacing:.07em;transform:rotate(-3deg);padding-left:5px;position:relative}.mascot-note p .icon{width:13px;height:13px;fill:#99ab9d;stroke:none;position:absolute;right:1px;bottom:-17px}.workspace{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}.tabbar{height:36px;min-height:36px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;gap:12px}.tabbar nav{display:flex;align-items:stretch;height:100%;gap:11px}.tabbar nav button{padding:0 11px;position:relative;font-size:12px;color:#4c6255}.tabbar nav button:hover{color:var(--green);background:#edf3ee;border-radius:5px}.tabbar nav button.active{color:var(--green-dark);font-weight:700}.tabbar nav button.active:after{content:"";position:absolute;bottom:0;left:7px;right:7px;height:3px;border-radius:4px;background:var(--green)}.document-name{display:flex;align-items:center;gap:7px;font-size:11px;color:#809187;overflow:hidden;min-width:65px;max-width:230px;padding:7px;border-radius:5px}.document-name:hover{background:#eaf0ec}.document-name #bookName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-name .icon{width:12px;height:12px}.dirty-dot{width:5px;height:5px;border-radius:50%;background:#b29156;flex-shrink:0}.ribbon{height:111px;min-height:111px;background:#fff;display:flex;align-items:stretch;border:1px solid #e8ede9;border-radius:10px;box-shadow:var(--shadow);padding:11px 9px 7px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;gap:0}.ribbon-group{position:relative;padding:0 14px 18px;border-right:1px solid var(--border);display:flex;align-items:center;gap:8px;flex-shrink:0;min-width:0}.ribbon-group:last-child{border-right:0}.group-label{position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:9px;color:#84968b;letter-spacing:.06em}.ribbon-big{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:48px;padding:7px 5px;border-radius:5px;font-size:11px}.ribbon-big>.icon{width:27px;height:27px;color:#426552}.ribbon-big>.mini-chevron{width:10px;height:10px}.ribbon-big:hover{background:#edf4ee}.ribbon-stack{display:flex;flex-direction:column;gap:3px}.ribbon-stack button{display:flex;align-items:center;gap:7px;font-size:10px;text-align:left;padding:3px 5px;border-radius:4px}.ribbon-stack button .icon{width:16px;height:16px}.ribbon-stack button:hover{background:#edf4ee}.tool-rows{display:flex;flex-direction:column;gap:7px}.tool-line{display:flex;gap:5px;align-items:center}.tool-line select{height:29px;font-size:11px;padding:3px 7px}.font-select{width:128px}.font-size-select{width:58px}.tool-line .format-select{width:144px}.tool{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:29px;border-radius:4px;font-size:15px;padding:4px 6px}.tool:hover{background:#eff5f0}.tool.active{background:#dceddf;color:var(--green-dark)}.tool .icon{width:18px;height:18px}.tool.bold{font-weight:700}.tool.italic{font-family:Georgia,serif;font-style:italic}.tool.underline{text-decoration:underline;text-underline-offset:3px}.tool-divider{height:19px;width:1px;background:var(--border);margin:0 3px}.color-tool{position:relative;padding-bottom:7px}.color-tool:after{content:"";height:3px;position:absolute;bottom:4px;left:6px;right:6px;background:var(--swatch,#435b4c);border-radius:1px}.small-tool-label{font-size:11px}.mini-arrow{width:12px!important;height:12px!important;opacity:.7}.sum-symbol{font-family:Georgia,serif;font-size:24px;color:#486d53;line-height:1}.document-body{display:flex;flex:1;min-height:0;gap:10px}.sheet-area{display:flex;flex:1;min-width:0;flex-direction:column;overflow:hidden}.formula-bar{display:flex;align-items:center;height:34px;min-height:34px;background:#fff;border:1px solid #e4ebe5;border-radius:6px;margin-bottom:8px;overflow:hidden}.formula-bar input{border:0;height:31px;outline:0!important;border-radius:0;padding:5px 11px}.formula-bar #addressInput{width:90px;flex-shrink:0;border-right:1px solid var(--border);font-family:Arial,var(--font);font-size:12px}.formula-bar #formulaInput{flex:1;min-width:30px;font-size:12px}.formula-bar #formulaInput::placeholder{color:#b2bfb6;font-size:11px}.formula-actions{display:flex;gap:1px;padding:0 5px;border-right:1px solid #eef2ee}.formula-actions button{padding:3px;color:#a4b6a9;height:25px}.formula-actions button:hover{color:var(--green);background:#edf4ee;border-radius:4px}.formula-actions .icon{width:17px;height:17px}.fx-button{padding:0 9px;font-style:italic;font-family:Georgia,serif;font-size:19px;color:#6d8472}.panel-toggle{padding:4px 7px;color:#8a9c8f}.panel-toggle .icon{width:17px}.grid-viewport{position:relative;flex:1;min-height:90px;overflow:auto;background:#fff;border:1px solid #dce6df;border-radius:6px 6px 0 0;scrollbar-width:thin;scrollbar-color:#c4d0c7 #f0f4f1;outline:0!important;overscroll-behavior:contain}.grid-space{position:relative;isolation:isolate}.grid-cell{position:absolute;border-right:1px solid var(--grid);border-bottom:1px solid var(--grid);padding:3px 7px;display:flex;align-items:flex-end;overflow:hidden;white-space:pre;line-height:1.3;user-select:none;cursor:cell;background:#fff;outline:0}.grid-cell>.cell-text{overflow:hidden;text-overflow:clip;max-width:100%;pointer-events:none}.grid-cell.wrapped>.cell-text{white-space:pre-wrap;overflow-wrap:anywhere}.grid-cell.error>.cell-text{color:#a14e45}.grid-cell.error:after{content:"";position:absolute;left:0;top:0;border-top:6px solid #6c9a71;border-right:6px solid transparent}.grid-cell.formula{color:#254d41}.grid-cell.no-grid{border-color:transparent}.col-header,.row-header,.grid-corner{position:absolute;display:flex;align-items:center;justify-content:center;background:#f4f7f4;color:#84968b;font-family:Arial,var(--font);font-size:11px;user-select:none;z-index:8;border-bottom:1px solid #dce5de;border-right:1px solid #dce5de;cursor:pointer}.col-header.selected,.row-header.selected{background:#e1eee5;color:#2b6e50}.col-header.selected{box-shadow:inset 0 -2px #438769}.row-header.selected{box-shadow:inset 2px 0 #438769}.grid-corner{z-index:10}.grid-corner:after{content:"";position:absolute;bottom:4px;right:4px;border-bottom:10px solid #c4d1c8;border-left:10px solid transparent}.col-resize{position:absolute;right:-3px;top:0;bottom:0;width:7px;cursor:col-resize;z-index:9}.row-resize{position:absolute;bottom:-3px;left:0;right:0;height:7px;cursor:row-resize;z-index:9}.selection-box{position:absolute;border:2px solid #2c8661;background:#468e6509;z-index:4;pointer-events:none}.selection-box.multi{background:#4d926718}.selection-box.cut{border-style:dashed;background:transparent}.fill-handle{width:7px;height:7px;position:absolute;right:-4px;bottom:-4px;background:#26815c;border:1px solid #fff;cursor:crosshair;pointer-events:auto}.fill-preview{position:absolute;border:1px dashed #3c8f63;background:#4d926710;z-index:3;pointer-events:none}.cell-editor{position:absolute;z-index:11;border:2px solid #287f62;border-radius:0;resize:none;padding:3px 6px;background:#fff;color:#233a34;line-height:1.3;outline:0!important;overflow:auto;min-width:50px;box-shadow:0 2px 6px #1539210a}.cell-editor.ghost{opacity:0;pointer-events:none;width:2px!important;height:2px!important;min-width:2px;border:0;padding:0}.sheet-tabs-bar{display:flex;align-items:stretch;min-height:39px;height:39px;background:#f7faf7;border:1px solid #e0e8e1;border-top:0;border-radius:0 0 6px 6px;overflow:hidden}.add-sheet{width:47px;flex-shrink:0;color:#62806a}.add-sheet:hover{background:#e6efe7}.add-sheet .icon{width:18px;height:18px}.sheet-tabs{display:flex;overflow-x:auto;scrollbar-width:none;align-items:stretch}.sheet-tab{padding:0 20px;border-right:1px solid #e5ece5;font-size:11px;color:#718575;position:relative}.sheet-tab:hover{background:#edf4ed}.sheet-tab.active{background:#fff;color:var(--green-dark);font-weight:600}.sheet-tab.active:after{content:"";height:3px;background:var(--green);position:absolute;left:0;right:0;bottom:0;border-radius:2px}.sheet-tabs-tip{margin-left:auto;align-self:center;white-space:nowrap;font-size:10px;color:#a4b3a7;padding:0 14px}.properties{background:#fff;border:1px solid #e7eee7;border-radius:8px;width:258px;min-width:258px;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow)}.property-tabs{display:flex;min-height:44px;align-items:stretch;border-bottom:1px solid var(--border);padding:0 12px;gap:15px}.property-tabs>button{font-size:11px;padding:0 4px;color:#7a8f7e;position:relative}.property-tabs>button.active{font-weight:600;color:var(--green-dark)}.property-tabs>button.active:after{content:"";position:absolute;bottom:0;height:3px;border-radius:3px;background:var(--green);left:0;right:0}.property-tabs>.close-panel{margin-left:auto;padding:0}.close-panel .icon{width:14px;height:14px;color:#a6b6a9}.property-content{padding:18px 16px 14px;overflow-y:auto;scrollbar-width:thin;flex:1}.property-group{padding-bottom:19px;margin-bottom:3px}.property-group:last-child{padding-bottom:0}.property-group h3{font-size:11px;font-weight:600;margin:0 0 10px;display:flex;align-items:center;justify-content:space-between;color:#425a49;letter-spacing:.02em}.property-group h3 .selection-badge{font-size:9px;color:#879b8b;font-weight:400;padding:3px 6px;background:#f4f7f4;border-radius:3px}.property-group select,.property-group input:not([type=checkbox]):not([type=color]){width:100%;font-size:11px;height:32px}.property-group .tool-line{gap:5px;margin-top:7px}.property-group .font-row{display:flex;gap:5px}.property-group .font-row select:first-child{flex:1;min-width:70px}.property-group .font-row select:last-child{width:53px}.property-group .tool{min-width:28px;height:29px}.property-group .alignment-line{justify-content:space-between;gap:3px}.check-line{display:flex;align-items:center;gap:7px;font-size:10px;line-height:1.6;margin-top:11px;cursor:pointer}.text-button{display:inline-flex;align-items:center;gap:7px;padding:6px 3px;border-radius:4px;color:#55755c;font-size:11px}.text-button:hover{background:#edf4ee}.text-button .icon{width:16px;height:16px}.border-grid{display:flex;gap:1px;border:1px solid var(--border);border-radius:5px;padding:2px;justify-content:space-between}.border-grid button{width:25px;height:27px;padding:4px;border-radius:4px;color:#76907a}.border-grid button:hover{background:#e5f0e6}.border-symbol{width:15px;height:15px;display:inline-block;background:linear-gradient(90deg,transparent 47%,#cbd8ce 47%,#cbd8ce 53%,transparent 53%),linear-gradient(transparent 47%,#cbd8ce 47%,#cbd8ce 53%,transparent 53%);border:1px dashed #c2d1c5}.border-symbol.all{border:1px solid currentColor;background:linear-gradient(90deg,transparent 47%,currentColor 47%,currentColor 53%,transparent 53%),linear-gradient(transparent 47%,currentColor 47%,currentColor 53%,transparent 53%)}.border-symbol.outer{border:1px solid currentColor}.border-symbol.bottom{border-bottom:2px solid currentColor}.border-symbol.top{border-top:2px solid currentColor}.border-symbol.left{border-left:2px solid currentColor}.border-symbol.right{border-right:2px solid currentColor}.border-symbol.none{background:none}.border-symbol.inner{background:linear-gradient(90deg,transparent 47%,currentColor 47%,currentColor 53%,transparent 53%),linear-gradient(transparent 47%,currentColor 47%,currentColor 53%,transparent 53%)}.border-options{display:flex;gap:6px;margin-top:8px}.border-options select{flex:1}.border-options input[type=color]{height:31px;width:32px}.swatches{display:flex;gap:7px;flex-wrap:wrap}.swatch{width:22px;height:22px;border-radius:5px;border:1px solid #0000000d;box-shadow:inset 0 0 0 2px #ffffff60}.swatch:hover{outline:2px solid #91b49b;outline-offset:2px}.swatch.active{outline:2px solid var(--green);outline-offset:2px}.swatch.none{background:linear-gradient(135deg,white 46%,#d3948e 47%,#d3948e 52%,white 53%)}.fill-custom{margin-top:11px;display:flex;gap:8px;align-items:center;font-size:10px;color:#91a093}.fill-custom input{height:26px;width:38px}.reset-format{color:#829489;font-size:10px;padding-top:11px;border-top:1px solid #eef2ee;width:100%;display:flex;align-items:center;gap:8px}.reset-format .icon{width:14px;height:14px}.statusbar{min-height:34px;height:34px;border:1px solid #e8eee8;border-radius:7px;background:#fff;display:flex;align-items:center;gap:14px;padding:0 12px;font-size:10px;color:#809185;overflow:hidden}.status-left{display:flex;align-items:center;gap:7px;white-space:nowrap;min-width:70px;flex:1}.status-dot{width:5px;height:5px;background:#89ab91;border-radius:50%;flex-shrink:0}#statusText{max-width:210px;overflow:hidden;text-overflow:ellipsis}#encodingStatus{font-size:9px;background:#f0f5f0;padding:3px 5px;border-radius:3px;color:#859b89;max-width:130px;text-overflow:ellipsis;overflow:hidden}#encodingStatus:empty{display:none}.selection-stats{display:flex;gap:17px;white-space:nowrap}.selection-stats b{font-weight:500;color:#506c55}.zoom-controls{display:flex;align-items:center;gap:7px;white-space:nowrap;margin-left:auto}.zoom-controls button{padding:3px;font-size:10px;color:#68816e;border-radius:3px}.zoom-controls button:hover{background:#eef4ee}.zoom-controls .icon{width:14px;height:14px}.zoom-controls input{width:84px;height:15px;accent-color:#6f9278}.status-divider{height:14px;width:1px;background:#e5ece5;margin:0 3px}.icon-button{width:31px;height:31px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center}.icon-button:hover{background:#edf3ee}.icon-button .icon{width:18px;height:18px}.popover{position:fixed;min-width:190px;padding:6px;background:#fff;box-shadow:0 10px 35px #203c3421;border:1px solid #dfe8e1;border-radius:8px;z-index:100;max-height:85vh;overflow:auto}.popover button.menu-item{padding:9px 11px;display:flex;width:100%;text-align:left;align-items:center;gap:9px;font-size:12px;border-radius:5px;white-space:normal}.popover button.menu-item:hover{background:#edf4ee;color:#226945}.popover .menu-item .icon{width:17px;height:17px;color:#79937f}.popover .menu-item kbd{margin-left:auto;font-size:10px;color:#8fa394;border:0;background:none}.popover hr{border:0;border-top:1px solid #e9eee9;margin:5px}.popover .swatches{width:190px;padding:7px;gap:9px}.popover .color-picker-row{padding:8px;display:flex;align-items:center;gap:8px;color:#7b8e80;font-size:11px}.popover .caption{font-size:10px;margin:6px 9px;color:#8b9e90}.modal{border:1px solid #e1e8e2;box-shadow:0 24px 90px #193a3033;background:#fff;color:var(--ink);padding:0;width:min(730px,calc(100vw - 80px));max-height:88vh;border-radius:15px}.modal::backdrop{background:#213b3438;backdrop-filter:blur(3px)}.modal.wide{width:min(910px,calc(100vw - 80px))}.modal.small{width:min(465px,calc(100vw - 60px))}.modal-heading{padding:23px 25px 17px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #edf1ed}.modal-heading h2{font-size:20px;font-weight:600;letter-spacing:.015em;margin:4px 0 0}.eyebrow{font-family:Arial,sans-serif;font-size:9px;letter-spacing:.17em;color:#75a284;font-weight:600;margin:0}.modal-body{padding:22px 25px;overflow:auto;max-height:calc(88vh - 170px)}.modal-body p{line-height:1.9;margin:0 0 16px;color:#6b8172;font-size:12px}.modal-body .lead{font-size:13px;color:#4e6956}.modal-footer{padding:14px 25px 20px;display:flex;align-items:center;justify-content:flex-end;gap:9px;border-top:1px solid #edf1ed}.button-primary,.button-secondary{border-radius:7px;font-size:12px;padding:10px 18px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.button-primary{background:var(--green);color:#fff}.button-primary:hover{background:var(--green-dark)}.button-secondary{border:1px solid var(--border);background:#fff;color:#6c8273}.button-secondary:hover{background:#f2f6f2}.button-danger{color:#ab675c;border-color:#e9d6d1}.modal-footer .fineprint{font-size:10px;color:#8a9b8e;margin-right:auto}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:17px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#5e7764}.field input,.field select{width:100%;height:36px}.field small{font-size:10px;color:#99a79b;line-height:1.6}.field-full{grid-column:1/-1}.notice{display:flex;align-items:flex-start;gap:9px;background:#f2f7f2;border:1px solid #e5eee5;padding:12px 14px;border-radius:7px;font-size:11px;line-height:1.9;color:#709078;margin:12px 0}.notice.warning{background:#faf7ef;border-color:#eee6d4;color:#978250}.notice .icon{width:17px;height:17px;margin-top:2px}.notice.error{background:#fdf1ee;color:#b27568;border-color:#f0d7d1}.notice p{font-size:inherit;margin:0;line-height:inherit;color:inherit}.preview-container{border:1px solid var(--border);border-radius:7px;overflow:auto;max-height:240px;background:#fff}.preview-table{border-collapse:collapse;font-size:11px;min-width:100%}.preview-table td,.preview-table th{border-right:1px solid #e8eee8;border-bottom:1px solid #e8eee8;padding:8px 10px;max-width:240px;min-width:68px;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left}.preview-table th{position:sticky;top:0;background:#eff5ef;color:#709079;font-weight:400}.preview-table .row-number{min-width:30px;width:30px;font-size:10px;text-align:center;background:#f7faf7;color:#96a89a}.preview-meta{display:flex;justify-content:space-between;font-size:10px;color:#93a297;margin:10px 0}.file-summary{display:flex;align-items:center;gap:12px;margin-bottom:19px;padding:12px;background:#f6f9f6;border-radius:7px}.file-summary>.icon{width:28px;height:28px;color:#59916b}.file-summary strong{font-weight:500;font-size:13px;overflow-wrap:anywhere}.file-summary small{display:block;font-size:10px;color:#9baa9b;margin-top:4px}.file-summary .pill{margin-left:auto;white-space:nowrap;background:#e8f2e9;color:#6a9072;border-radius:4px;padding:5px 9px;font-size:10px}.sample-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.sample-card{text-align:left;border:1px solid #e0eae1;border-radius:10px;padding:18px 15px;white-space:normal}.sample-card:hover{background:#f3f8f3;border-color:#a3c3ac}.sample-card>.icon{width:30px;height:30px;color:#669774;margin-bottom:19px}.sample-card h3{font-size:13px;font-weight:500;margin:0 0 8px}.sample-card p{font-size:10px;line-height:1.8;margin:0;min-height:51px}.sample-card .tag{display:inline-block;margin-top:18px;font-size:9px;color:#7a9981;background:#edf4ed;border-radius:4px;padding:4px 6px}.shortcut-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px;margin-top:16px}.shortcut-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf2ed;padding:9px 0;font-size:11px;color:#718978}.shortcut-row kbd{font-family:Arial,sans-serif;padding:3px 7px;background:#f1f5f1;border:1px solid #e6ede5;border-radius:4px;font-size:10px;color:#748f7d}.help-section{margin-bottom:22px}.help-section h3{font-size:13px;font-weight:500;margin:0 0 10px}.help-section p{font-size:11px;line-height:1.9}.function-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:15px;max-height:345px;overflow:auto}.function-card{display:flex;flex-direction:column;text-align:left;padding:11px 13px;border:1px solid #e4ece4;border-radius:6px;gap:4px}.function-card:hover{background:#eef6ef}.function-card strong{font-family:Arial,sans-serif;color:#367950;font-size:12px;font-weight:600}.function-card small{font-size:10px;color:#8ca292}.recent-item{display:flex;gap:12px;align-items:center;border:1px solid #e5ece4;border-radius:7px;width:100%;padding:13px;margin-bottom:9px;text-align:left}.recent-item:hover{background:#f3f8f2}.recent-item .icon{color:#7b9e80}.recent-item strong{font-size:12px;font-weight:500}.recent-item small{display:block;color:#91a295;font-size:10px;margin-top:5px}.paste-area{width:100%;height:155px;resize:vertical;padding:10px;line-height:1.6;font-size:12px}.inline-actions{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}.muted{color:#91a195}.toast{position:fixed;left:50%;bottom:63px;transform:translateX(-50%);padding:12px 18px;border:1px solid #416b50;background:#244a36f2;color:#fff;border-radius:8px;box-shadow:0 7px 25px #1a392d25;z-index:150;font-size:12px;max-width:650px;line-height:1.7}.toast.error{background:#77534ef5;border-color:#906b61}.busy-overlay,.drop-overlay{position:fixed;inset:0;z-index:170;display:flex;align-items:center;justify-content:center;background:#f6faf4d9;backdrop-filter:blur(2px)}.busy-overlay>div{text-align:center;border:1px solid #ddebdc;background:white;border-radius:12px;padding:29px 40px;box-shadow:0 15px 55px #234b3420;color:#62876b}.busy-overlay p{margin:14px 0 0;font-size:12px}.spinner{display:inline-block;width:25px;height:25px;border:2px solid #dce9df;border-top-color:#55976e;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.drop-overlay{z-index:180;border:3px dashed #84b593;margin:13px;border-radius:18px;background:#f2faf1ef;pointer-events:none}.drop-overlay>div{text-align:center}.drop-overlay .icon{width:64px;height:64px;color:#6ba57c}.drop-overlay h2{font-size:25px;font-weight:500;color:#396c47;margin-top:23px}.drop-overlay p{font-size:14px;letter-spacing:.14em;color:#82a388}.drop-overlay small{font-size:11px;color:#9bb5a0}.sheet-property-actions{display:flex;flex-direction:column;gap:7px}.sheet-property-actions button{border:1px solid var(--border);padding:9px;text-align:left;border-radius:5px;font-size:11px;color:#719278;display:flex;gap:8px;align-items:center}.sheet-property-actions button:hover{background:#eef5ec}.sheet-property-actions .icon{width:16px;height:16px}.dimension-fields{display:flex;gap:8px}.dimension-fields>.field{width:50%}.ribbon-note{font-size:10px;line-height:1.8;white-space:normal;max-width:195px;color:#8d9d8e;padding:4px 10px}.empty-hint{text-align:center;padding:26px 10px;color:#8aa08e}.empty-hint .icon{width:34px;height:34px;margin-bottom:16px;color:#abc2af}.empty-hint p{font-size:12px}.book-status{font-size:9px;color:#a0b0a4}.tool-hint{position:absolute;z-index:30;pointer-events:none;border:1px solid #dde8df;background:#fcfdfb;border-radius:5px;padding:5px 9px;font-size:10px;color:#70947d}.row-resizing,.col-resizing{user-select:none}.col-resizing *{cursor:col-resize!important}.row-resizing *{cursor:row-resize!important}
@media(min-width:1700px){.local-badge{display:flex}.header-catch{margin-left:65px}.sidebar{width:260px;min-width:260px}.properties{width:282px;min-width:282px}.ribbon-group{padding-left:18px;padding-right:18px}}
@media(max-width:1330px){.header-catch{margin-left:0;font-size:13px}.sidebar{width:220px;min-width:220px;padding-left:10px;padding-right:10px}.side-section small{font-size:10px}.quick-links button{font-size:11px}.quick-links button:nth-child(2){font-size:10px}.privacy-note{padding:10px 7px;gap:5px}.privacy-note p{font-size:9px}.mascot-note img{width:93px;height:84px}.mascot-note p{font-size:10px}.properties{width:235px;min-width:235px}.property-content{padding:15px 13px}.property-group{padding-bottom:16px}.property-group .tool{min-width:25px;padding:4px 5px}.property-tabs{gap:11px}.ribbon-group{padding-left:10px;padding-right:10px}.ribbon-stack button{font-size:9px}.font-select{width:112px}.ribbon{padding-left:5px;padding-right:5px}.tabbar nav{gap:4px}.tabbar nav button{padding:0 8px}.document-name{max-width:165px;font-size:10px}.selection-stats{gap:10px}.zoom-controls{gap:4px}.zoom-controls input{width:68px}.sheet-tabs-tip{display:none}.border-grid button{width:22px;padding:3px}}
@media(max-width:1130px){.header-catch{display:none}.header-actions{gap:18px}.properties{width:216px;min-width:216px}.property-content{padding:13px 11px}.property-tabs{padding:0 10px;gap:8px}.property-group .tool{min-width:23px;padding:3px}.border-grid button{width:20px;padding:2px}.sidebar{width:204px;min-width:204px}.side-section .detail{font-size:9px}.side-section button{font-size:11px}.open-file{font-size:12px;padding:13px 10px;gap:8px}.quick-links button:nth-child(2){font-size:9px}.mascot-note img{width:84px;height:78px}.mascot-note p{font-size:9px}.privacy-note{gap:4px}.privacy-note .icon{width:12px}.privacy-note p{font-size:8.5px}.selection-stats>span:nth-child(2){display:none}.document-name{max-width:125px}.statusbar{gap:8px;padding:0 8px}.zoom-controls input{width:55px}#encodingStatus{max-width:85px}.swatches{gap:6px}.swatch{width:20px;height:20px}}
@media(max-width:950px){.sidebar{width:186px;min-width:186px;padding:10px 7px}.properties{display:none}.app-header{height:82px;padding:0 20px}.brand-name{font-size:28px}.brand p{font-size:10px}.brand-mark{width:35px;height:43px}.app-shell{height:calc(100% - 82px);padding:8px;gap:8px}.header-actions{gap:13px}.sidebar .quick-links button{font-size:10px;padding-left:5px;gap:8px}.sidebar .quick-links button:nth-child(2){font-size:8.5px}.side-section button{font-size:10px;padding-left:3px;gap:8px}.privacy-note p{font-size:8px}.mascot-note p{font-size:9px;padding-left:0}.mascot-note img{width:80px}.ribbon-group{padding-left:9px;padding-right:9px}.document-name{max-width:120px}.ribbon-stack{display:none}.tabbar{padding:0 3px}.tabbar nav button{padding:0 8px}.properties.forced-open{display:flex;position:absolute;right:12px;top:247px;bottom:54px;z-index:30;width:244px;box-shadow:0 10px 35px #1e3c2a20}.formula-bar .panel-toggle{display:inline-flex}}
@media(max-height:850px){.app-header{height:80px}.app-shell{height:calc(100% - 80px)}.sidebar{padding-top:10px}.open-file{padding-top:12px;padding-bottom:12px}.quick-links{padding-top:10px;padding-bottom:9px;gap:0}.quick-links button,.side-section button{min-height:35px;padding-top:7px;padding-bottom:7px}.side-section{padding-top:13px;padding-bottom:8px}.sidebar-bottom{padding-top:7px}.mascot-note{height:88px}.mascot-note img{height:80px}.property-group{padding-bottom:15px}.property-content{padding-top:13px}.ribbon{height:102px;min-height:102px}.tabbar{height:33px;min-height:33px}.ribbon-group{padding-bottom:16px}}
@media(max-height:710px){.mascot-note{height:66px}.mascot-note img{height:65px;width:76px}.sidebar-bottom{padding-top:5px}.privacy-note{padding-top:7px;padding-bottom:7px}.app-header{height:70px}.app-shell{height:calc(100% - 70px)}.ribbon{height:95px;min-height:95px;padding-top:8px}.ribbon-stack{gap:0}.ribbon-big{padding-top:2px;padding-bottom:2px}.tool-rows{gap:4px}.sidebar .quick-links button,.sidebar .side-section button{min-height:31px}.side-section{padding-top:10px;padding-bottom:5px}.modal{max-height:93vh}.modal-body{max-height:calc(93vh - 170px)}}

/* Comfortable reading sizes for desktop, with no remote fonts. */
.quick-links button,.side-section button{font-size:13px}
.quick-links button:nth-child(2){font-size:11px}
.side-section h2{font-size:12px}.side-section .detail{font-size:10px}
.mascot-note p{font-size:11px;white-space:nowrap}


/* Header artwork stays visible at every supported desktop window size.
   Only the speech text is localized; the original cat image is unchanged. */
.header-actions { margin-left: 0; flex-shrink: 0; }
.header-cat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  min-width: 0;
  margin-left: auto;
  gap: 6px;
  pointer-events: none;
  opacity: .92;
}
.header-cat img {
  display: block;
  position: relative;
  order: 2;
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 86%, transparent);
}
.header-cat > .header-bubble {
  display: block;
  position: relative;
  order: 1;
  flex: 0 0 156px;
  width: 156px;
  min-width: 0;
  background: #ffffffed;
  border: 1px solid #dbe9e0;
  border-radius: 18px;
  padding: 8px 12px;
  transform: rotate(-4deg);
  text-align: center;
}
.header-cat > .header-bubble::before {
  content: attr(data-text);
  display: block;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: #526d5c;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
@media (max-width: 950px) {
  .app-header { gap: 14px; }
  .header-cat { gap: 3px; }
  .header-cat > .header-bubble {
    flex-basis: 140px;
    width: 140px;
    padding: 7px 9px;
    border-radius: 15px;
  }
  .header-cat > .header-bubble::before { font-size: 10px; }
}

/* International UI. Long labels wrap, rather than covering icons or neighboring controls. */
h1.brand-name{margin:0}
.language-links,.settings-languages{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.language-links{padding:3px 4px 10px;font-size:10px}
.language-links a,.settings-languages a{color:#4d7560;text-decoration:none;text-underline-offset:3px}
.language-links a:hover,.settings-languages a:hover{text-decoration:underline}
.language-links a[aria-current="page"]{font-weight:700;color:#246b4f}
.settings-languages{margin-top:10px;font-size:12px}
.language-setting .field{max-width:100%}.language-setting p{margin:10px 0}
.about-tool{border-top:1px solid var(--border);margin:0 4px;padding:12px 4px;color:#617c69;font-size:11px}
.about-tool summary{cursor:pointer;line-height:1.6}.about-copy{font-size:11px;line-height:1.8}.about-copy h2,.about-copy h3{font-size:12px;margin:14px 0 4px}.about-copy p{margin:0 0 12px}
.noscript-note{position:fixed;bottom:12px;left:20%;right:20%;background:#fff;padding:18px;z-index:200;border:1px solid #aabbaa;border-radius:8px}
html:not([lang="ja"]) .app-header{gap:18px}
html:not([lang="ja"]) .brand p{letter-spacing:0;max-width:240px}
html:not([lang="ja"]) .header-catch{font-family:var(--font);letter-spacing:.025em;font-size:13px;margin-left:0}
html:not([lang="ja"]) .header-cat > .header-bubble{flex-basis:155px;width:155px;left:auto;top:auto}
html:not([lang="ja"]) .header-cat > .header-bubble::before{font-size:11px;letter-spacing:0;line-height:1.5}
html:not([lang="ja"]) .quick-links button,html:not([lang="ja"]) .side-section button{white-space:normal;line-height:1.5;font-size:12px}
html:not([lang="ja"]) .side-section .detail{white-space:normal;line-height:1.4;font-size:10px}
html:not([lang="ja"]) .privacy-note p{white-space:normal;line-height:1.65;font-size:10px}
html:not([lang="ja"]) .mascot-note p{white-space:normal;letter-spacing:0;font-family:var(--font);font-size:11px;line-height:1.6}
html:not([lang="ja"]) .tabbar nav{gap:2px}
html:not([lang="ja"]) .ribbon-big{white-space:normal;max-width:122px;font-size:11px;line-height:1.25;text-align:center}
html:not([lang="ja"]) .ribbon-group{padding-left:10px;padding-right:10px}
html:not([lang="ja"]) .ribbon-stack button{font-size:11px}
html:not([lang="ja"]) .property-tabs{gap:6px;padding:0 10px}
html:not([lang="ja"]) .property-tabs button{font-size:11px}
html:not([lang="ja"]) .property-content .check-line{align-items:flex-start;line-height:1.5}
html:not([lang="ja"]) .property-content .check-line input{flex:0 0 auto}
html:not([lang="ja"]) .property-content button:not(.tool):not(.swatch){white-space:normal;line-height:1.4}
html:not([lang="ja"]) .shortcut-grid{grid-template-columns:1fr}
html:not([lang="ja"]) .sample-card p{font-size:11px}
@media(max-width:1350px){html:not([lang="ja"]) .header-catch{display:none}}
@media(max-width:1100px){html:not([lang="ja"]) .document-name{max-width:100px}html:not([lang="ja"]) .tabbar nav button{font-size:11px;padding:0 6px}}
@media(max-width:950px){html:not([lang="ja"]) .app-header{gap:10px}html:not([lang="ja"]) .brand p{max-width:185px;font-size:9px}html:not([lang="ja"]) .header-cat > .header-bubble{flex-basis:120px;width:120px;padding:6px}html:not([lang="ja"]) .header-cat > .header-bubble::before{font-size:10px}}
