.sidebar{position:relative;width:320px;min-width:320px;flex:0 0 320px;min-height:100vh;padding:28px 24px;box-sizing:border-box;background:#fff;color:#111827;border-left:1px solid #e5e7eb;box-shadow:-12px 0 35px #0f172a0f;z-index:10;transition:width .25s ease,min-width .25s ease,flex-basis .25s ease,padding .25s ease}.sidebar__content{width:100%}.sidebar__top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.sidebar__header{min-width:0}.sidebar__header h2{margin:0;color:#0f172a;font-size:26px;font-weight:800}.sidebar__header p{margin:8px 0 0;color:#64748b;font-size:15px}.sidebar__toggle{width:44px;min-width:44px;height:44px;padding:0;border:1px solid #dbe3ef;border-radius:14px;background:#f8fafc;color:#334155;font-size:27px;line-height:1;cursor:pointer;transition:background .2s ease,border-color .2s ease,color .2s ease}.sidebar__toggle:hover{border-color:#bfdbfe;background:#eff6ff;color:#2563eb}.sidebar__nav{display:flex;flex-direction:column;gap:14px;margin-top:44px}.sidebar__option{width:100%;height:60px;min-height:60px;padding:0 20px;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:12px;border:1px solid #dbe3ef;border-radius:16px;background:#f8fafc;color:#0f172a;font-family:inherit;font-size:16px;font-weight:700;text-align:left;text-decoration:none;cursor:pointer;overflow:hidden;transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease}.sidebar__option:hover{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8;transform:translateY(-1px)}.sidebar__option:disabled{opacity:.45;cursor:not-allowed;transform:none}.sidebar__option--primary{border-color:#2563eb;background:#2563eb;color:#fff}.sidebar__option--primary:hover{border-color:#1d4ed8;background:#1d4ed8;color:#fff}.sidebar__option-icon{display:none;width:25px;height:25px;flex:0 0 25px;object-fit:contain}.sidebar__option-text{display:block;white-space:nowrap}.sidebar--collapsed{position:relative;width:76px;min-width:76px;flex:0 0 76px;padding:20px 12px}.sidebar--collapsed .sidebar__top{justify-content:center}.sidebar--collapsed .sidebar__header{display:none}.sidebar--collapsed .sidebar__toggle{width:46px;min-width:46px;height:46px}.sidebar--collapsed .sidebar__nav{align-items:center;gap:14px;margin-top:28px}.sidebar--collapsed .sidebar__option{width:50px;min-width:50px;height:50px;min-height:50px;padding:0;justify-content:center;border-radius:15px}.sidebar--collapsed .sidebar__option-icon{display:block}.sidebar--collapsed .sidebar__option-text{display:none}.sidebar--collapsed .sidebar__option--primary .sidebar__option-icon{filter:brightness(0) invert(1)}@media(max-width:768px){.sidebar,.sidebar--collapsed{position:fixed;right:0;bottom:0;left:0;width:100%;min-width:0;min-height:auto;flex:0 0 auto;padding:8px 10px;border-top:1px solid #e5e7eb;border-left:none;box-shadow:0 -8px 24px #0f172a1f;z-index:100}.sidebar__top,.sidebar--collapsed .sidebar__top{display:none}.sidebar__nav,.sidebar--collapsed .sidebar__nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:0}.sidebar__option,.sidebar--collapsed .sidebar__option{width:100%;min-width:0;height:52px;min-height:52px;padding:0;justify-content:center;align-items:center;border-radius:14px;transform:none;gap:0}.sidebar__option-icon,.sidebar--collapsed .sidebar__option-icon{display:block;width:24px;height:24px;object-fit:contain}.sidebar__option-text,.sidebar--collapsed .sidebar__option-text{display:none}.sidebar__option--primary .sidebar__option-icon,.sidebar--collapsed .sidebar__option--primary .sidebar__option-icon{filter:brightness(0) invert(1)}}@media(min-width:769px){.sidebar,.sidebar--collapsed{position:relative;top:auto;right:auto;bottom:auto;left:auto}}.image-editor-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px;background:#0f172a94;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.image-editor-modal{width:min(920px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border:1px solid #dbe4f0;border-radius:18px;box-shadow:0 24px 70px #0f172a47}.image-editor-modal__header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 26px 18px;border-bottom:1px solid #e5eaf1}.image-editor-modal__header h2{margin:8px 0 4px;font-size:24px}.image-editor-modal__header p{margin:0;color:#667085;font-size:14px}.image-editor-modal__badge{display:inline-block;padding:5px 10px;color:#175cd3;background:#eff8ff;border-radius:999px;font-size:12px;font-weight:700}.image-editor-modal__close{width:38px;height:38px;color:#475467;background:#f8fafc;border:1px solid #d0d5dd;border-radius:10px;cursor:pointer;font-size:24px;line-height:1}.image-editor-modal__information{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:16px 26px}.image-editor-modal__information div{padding:11px 13px;background:#f8fafc;border-radius:9px}.image-editor-modal__information span,.image-editor-modal__information strong{display:block}.image-editor-modal__information span{margin-bottom:3px;color:#667085;font-size:11px}.image-editor-modal__information strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.image-editor-modal__stage{display:flex;align-items:center;justify-content:center;min-height:450px;margin:0 26px;padding:28px;overflow:auto;background:linear-gradient(45deg,#edf1f5 25%,transparent 25%),linear-gradient(-45deg,#edf1f5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf1f5 75%),linear-gradient(-45deg,transparent 75%,#edf1f5 75%),#f8fafc;background-position:0 0,0 10px,10px -10px,-10px 0;background-size:20px 20px;border:1px solid #dbe4f0;border-radius:14px}.image-editor-frame{position:relative;flex:0 0 auto;overflow:visible;background:#fff;border:2px solid #2563eb;box-shadow:0 10px 30px #0f172a2e}.image-editor-frame img{display:block;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;user-select:none}.image-editor-frame__size{position:absolute;top:8px;left:8px;padding:4px 7px;color:#fff;background:#0f172ac7;border-radius:5px;font-size:11px;pointer-events:none}.image-editor-frame__resize-handle{position:absolute;right:-9px;bottom:-9px;width:18px;height:18px;padding:0;background:#2563eb;border:3px solid #ffffff;border-radius:50%;box-shadow:0 2px 8px #0f172a59;cursor:nwse-resize;touch-action:none}.image-editor-modal__controls{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:14px;padding:20px 26px}.image-editor-modal__controls label>span{display:block;margin-bottom:6px;color:#344054;font-size:12px;font-weight:600}.image-editor-modal__controls select,.image-editor-modal__controls input[type=number]{width:100%;min-height:40px;padding:8px 10px;background:#fff;border:1px solid #d0d5dd;border-radius:8px;outline:none}.image-editor-modal__controls select:focus,.image-editor-modal__controls input[type=number]:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.image-editor-modal__number{position:relative}.image-editor-modal__number input{padding-right:38px}.image-editor-modal__number>span{position:absolute;top:50%;right:11px;color:#667085;font-size:12px;transform:translateY(-50%);pointer-events:none}.image-editor-modal__checkbox{display:flex;align-items:center;gap:8px;padding-top:24px;cursor:pointer}.image-editor-modal__checkbox input{width:17px;height:17px}.image-editor-modal__checkbox>span{margin:0!important}.image-editor-modal__footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 26px 24px;border-top:1px solid #e5eaf1}.image-editor-modal__footer>div{display:flex;gap:10px}.image-editor-modal__footer button{min-height:42px;padding:10px 18px;border-radius:9px;cursor:pointer;font-weight:600}.image-editor-modal__reset,.image-editor-modal__cancel{color:#344054;background:#fff;border:1px solid #d0d5dd}.image-editor-modal__confirm{color:#fff;background:#2563eb;border:1px solid #2563eb}.image-editor-modal__confirm:disabled{cursor:not-allowed;opacity:.55}@media(max-width:760px){.image-editor-backdrop{align-items:flex-start;padding:10px}.image-editor-modal{max-height:calc(100vh - 20px)}.image-editor-modal__information,.image-editor-modal__controls{grid-template-columns:1fr 1fr}.image-editor-modal__stage{min-height:350px;margin:0 16px;padding:18px}}@media(max-width:520px){.image-editor-modal__information,.image-editor-modal__controls{grid-template-columns:1fr}.image-editor-modal__checkbox{padding-top:0}.image-editor-modal__footer{align-items:stretch;flex-direction:column}.image-editor-modal__footer>div{display:grid;grid-template-columns:1fr 1fr}}.image-insert-panel{margin:24px 16px;padding:24px;background:#fff;border:1px solid #dbe4f0;border-radius:16px}.image-insert-panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:20px}.image-insert-panel__header h2{margin:8px 0 5px;font-size:22px}.image-insert-panel__header p{margin:0;color:#667085;font-size:14px}.image-insert-panel__badge{display:inline-block;padding:5px 10px;color:#175cd3;background:#eff8ff;border-radius:999px;font-size:12px;font-weight:700}.image-insert-panel__cell{min-width:145px;padding:11px 14px;background:#f8fafc;border-radius:9px}.image-insert-panel__cell span,.image-insert-panel__cell strong{display:block}.image-insert-panel__cell span{margin-bottom:3px;color:#667085;font-size:11px}.image-insert-panel__cell strong{font-size:13px}.image-insert-panel__methods{display:grid;grid-template-columns:1fr 1fr;gap:14px}.image-insert-panel__upload,.image-insert-panel__paste{min-height:130px;padding:20px;border-radius:12px}.image-insert-panel__upload{display:flex;align-items:center;justify-content:center;flex-direction:column;color:#175cd3;background:#f8fbff;border:2px dashed #84adff;cursor:pointer}.image-insert-panel__upload:disabled{cursor:wait;opacity:.65}.image-insert-panel__upload strong,.image-insert-panel__paste strong{margin-bottom:6px}.image-insert-panel__upload span,.image-insert-panel__paste>span{color:#667085;font-size:12px}.image-insert-panel__paste{display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f8fafc;border:1px solid #dbe4f0}.image-insert-panel__paste>div{display:flex;align-items:center;gap:6px;margin-bottom:10px}.image-insert-panel__paste kbd{min-width:38px;padding:7px 9px;color:#344054;background:#fff;border:1px solid #cfd6df;border-bottom-width:3px;border-radius:7px;font-family:inherit;font-size:12px;text-align:center}.image-insert-panel__error{margin:14px 0 0;padding:11px 13px;color:#b42318;background:#fef3f2;border-radius:8px;font-size:13px}.image-insert-panel__success{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:12px 14px;color:#05603a;background:#ecfdf3;border:1px solid #abefc6;border-radius:9px}.image-insert-panel__success strong,.image-insert-panel__success span{display:block}.image-insert-panel__success span{margin-top:3px;font-size:12px}.image-insert-panel__success button{color:#05603a;background:transparent;border:0;cursor:pointer;font-size:20px}@media(max-width:700px){.image-insert-panel__header{flex-direction:column}.image-insert-panel__cell{width:100%}.image-insert-panel__methods{grid-template-columns:1fr}}.excel-table-wrapper,.excel-data-cell{position:relative}.spreadsheet-image-overlay{position:absolute;z-index:50;display:block;overflow:visible;box-sizing:border-box;min-width:0;max-width:none;background:#fff;border:1px solid rgb(37 99 235 / 35%);border-radius:4px;box-shadow:0 8px 20px #0f172a2e;cursor:grab;touch-action:none}.spreadsheet-image-overlay--moving{z-index:70;cursor:grabbing;-webkit-user-select:none;user-select:none}.spreadsheet-image-overlay--moving *{cursor:grabbing}.spreadsheet-image-overlay--selected{z-index:60;border:2px solid #2563eb;box-shadow:0 0 0 1px #ffffffe5,0 10px 28px #0f172a40}.spreadsheet-image-overlay>img{display:block;width:100%;height:100%;min-width:0;max-width:none!important;object-position:center;pointer-events:none;-webkit-user-select:none;user-select:none}.spreadsheet-image-overlay__toolbar{position:absolute;top:8px;right:8px;z-index:3;display:flex;align-items:center;gap:8px;padding:5px 6px 5px 9px;color:#fff;background:#0f172ae0;border-radius:7px;box-shadow:0 4px 12px #0f172a40;font-size:11px;white-space:nowrap}.spreadsheet-image-overlay__toolbar button{padding:4px 7px;color:#fff;background:#b42318;border:0;border-radius:5px;cursor:pointer;font-size:11px}.spreadsheet-image-overlay__resize-handle{position:absolute;z-index:4;width:16px;height:16px;padding:0;background:#2563eb;border:3px solid #ffffff;border-radius:50%;box-shadow:0 2px 7px #0f172a66;touch-action:none}.spreadsheet-image-overlay__resize-handle--nw{top:-9px;left:-9px;cursor:nwse-resize}.spreadsheet-image-overlay__resize-handle--ne{top:-9px;right:-9px;cursor:nesw-resize}.spreadsheet-image-overlay__resize-handle--sw{bottom:-9px;left:-9px;cursor:nesw-resize}.spreadsheet-image-overlay__resize-handle--se{right:-9px;bottom:-9px;cursor:nwse-resize}.homepage{width:100%;min-height:100vh;display:flex;align-items:stretch;background:#f4f7fb;color:#172033;font-family:Arial,Helvetica,sans-serif;overflow-x:hidden}.homepage__content{flex:1 1 auto;width:auto;min-width:0;padding:40px;overflow-x:hidden;box-sizing:border-box}.upload-section{width:100%;max-width:none;min-width:0;margin:0;box-sizing:border-box}.upload-section__header{margin-bottom:28px}.upload-section__badge{display:inline-block;padding:8px 14px;margin-bottom:18px;border-radius:999px;background:#e5efff;color:#1d4ed8;font-size:14px;font-weight:700}.upload-section__header h1{margin:0;font-size:38px;color:#111827}.upload-section__header p{max-width:680px;margin-top:12px;font-size:16px;line-height:1.6;color:#5b6475}.upload-box{width:100%;max-width:100%;min-height:230px;display:flex;align-items:center;justify-content:center;gap:24px;padding:36px;border:2px dashed #9db6df;border-radius:24px;background:#fff;cursor:pointer;transition:.2s ease;box-shadow:0 20px 50px #0f172a14;box-sizing:border-box;overflow:hidden}.upload-box:hover{border-color:#2563eb;background:#f8fbff;transform:translateY(-2px)}.upload-box__input{display:none}.upload-box__icon{width:88px;height:88px;display:flex;align-items:center;justify-content:center;border-radius:22px;background:#16a34a;color:#fff;font-size:22px;font-weight:800;letter-spacing:1px}.upload-box__text h2{margin:0;font-size:26px;color:#111827}.upload-box__text p{margin:10px 0;font-size:16px;color:#4b5563}.upload-box__text small{font-size:14px;color:#7b8496}.workbook-panel{width:100%;display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:24px;padding:18px 22px;border-radius:18px;background:#fff;box-shadow:0 14px 35px #0f172a0f}.workbook-panel span,.sheet-toolbar span,.cell-editor label{display:block;margin-bottom:6px;color:#6b7280;font-size:13px;font-weight:700}.workbook-panel strong{color:#111827;font-size:16px}.download-button,.microphone-button,.stop-button{border:none;border-radius:12px;padding:13px 18px;font-size:14px;font-weight:700;cursor:pointer;transition:.2s ease}.download-button{background:#111827;color:#fff}.download-button:hover{background:#1f2937}.sheet-workspace{width:100%;margin-top:24px;padding:22px;border-radius:22px;background:#fff;box-shadow:0 18px 45px #0f172a14}.sheet-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}.sheet-toolbar select{min-width:220px;padding:12px 14px;border:1px solid #d1d5db;border-radius:12px;background:#fff;color:#111827;font-size:15px}.dictation-panel{display:flex;align-items:end;gap:12px}.dictation-panel strong{color:#111827}.microphone-button{background:#2563eb;color:#fff}.microphone-button:hover{background:#1d4ed8}.microphone-button:disabled{background:#9ca3af;cursor:not-allowed}.stop-button{background:#dc2626;color:#fff}.stop-button:hover{background:#b91c1c}.cell-editor{margin-bottom:18px;padding:16px;border-radius:16px;background:#f9fafb;border:1px solid #e5e7eb}.cell-editor input{width:100%;padding:13px 14px;border:1px solid #d1d5db;border-radius:12px;font-size:15px;outline:none}.cell-editor input:focus{border-color:#2563eb}.warning-message{margin:12px 0;padding:12px 14px;border-radius:12px;background:#fef2f2;color:#b91c1c;font-size:14px}.transcript-message{margin:12px 0;padding:12px 14px;border-radius:12px;background:#eff6ff;color:#1e40af;font-size:14px}.excel-table-wrapper{width:100%;max-height:520px;overflow:auto;border:1px solid #d1d5db;border-radius:16px}.excel-table{width:max-content;min-width:100%;border-collapse:collapse;background:#fff}.excel-table th,.excel-table td{min-width:120px;max-width:220px;height:38px;padding:8px 10px;border:1px solid #e5e7eb;font-size:14px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.excel-table thead th{position:sticky;top:0;z-index:2;background:#f3f4f6;color:#374151;text-align:center;font-weight:800}.excel-table tbody th{position:sticky;left:0;z-index:1;min-width:56px;background:#f3f4f6;color:#374151;text-align:center;font-weight:800}.excel-table__corner{position:sticky;left:0;z-index:3;min-width:56px!important;background:#e5e7eb!important}.excel-table td{cursor:pointer;color:#111827}.excel-table td:hover{background:#eff6ff}.selected-cell{outline:2px solid #2563eb;outline-offset:-2px;background:#dbeafe!important}@media(max-width:900px){.homepage{flex-direction:column}.homepage__content{padding:24px}.upload-section__header h1{font-size:30px}.upload-box{flex-direction:column;text-align:center}.workbook-panel,.sheet-toolbar,.dictation-panel{align-items:stretch;flex-direction:column}}.upload-section--loaded .workbook-panel{margin-top:0}.upload-section--loaded .sheet-workspace{margin-top:18px}@media(max-width:768px){html,body,#root{width:100%;min-height:100%}body{overflow-x:auto}.homepage{display:block;width:100%;min-height:100dvh;background:#f4f7fb}.homepage__content{width:100%;min-width:0;padding:10px 10px 82px;overflow-x:visible}.upload-section{width:100%;max-width:none;margin:0}.workbook-panel{width:100%;flex-direction:row;align-items:center;gap:10px;padding:10px 12px;border-radius:14px}.workbook-panel span{font-size:11px}.workbook-panel strong{font-size:13px;word-break:break-word}.download-button{min-height:38px;padding:9px 12px;font-size:12px;white-space:nowrap}.sheet-workspace{width:100%;margin-top:12px;padding:10px;border-radius:14px}.sheet-toolbar{display:grid;grid-template-columns:140px 1fr;gap:10px;align-items:end;margin-bottom:10px}.sheet-toolbar span,.cell-editor label{margin-bottom:4px;font-size:11px}.sheet-toolbar select{width:100%;min-width:0;height:40px;padding:8px 10px;font-size:14px;border-radius:10px}.dictation-panel{display:grid;grid-template-columns:1fr 140px;gap:8px;align-items:end}.dictation-panel strong{display:block;font-size:15px}.microphone-button,.stop-button{width:100%;min-height:40px;padding:9px 10px;font-size:13px;border-radius:10px}.cell-editor{margin-top:8px;margin-bottom:10px;padding:10px;border-radius:12px}.cell-editor input{width:100%;height:40px;padding:8px 10px;font-size:14px;border-radius:10px}.warning-message,.transcript-message{margin:8px 0;padding:10px 12px;border-radius:12px;font-size:13px;line-height:1.35}.excel-table-wrapper{width:100%;max-height:calc(100dvh - 260px);overflow:auto;border-radius:12px;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}.excel-table{width:max-content;min-width:100%}.excel-table th,.excel-table td{min-width:105px;max-width:170px;height:38px;padding:6px 8px;font-size:13px}.excel-table tbody th{min-width:42px;max-width:42px;font-size:13px}.excel-table__corner{min-width:42px!important;max-width:42px!important}.selected-cell{outline:2px solid #2563eb;outline-offset:-2px;background:#dbeafe!important}}@media(max-width:420px){.homepage__content{padding:8px 8px 78px}.sheet-workspace{padding:8px}.sheet-toolbar{grid-template-columns:120px 1fr;gap:8px}.dictation-panel{grid-template-columns:1fr 130px}.excel-table th,.excel-table td{min-width:98px;max-width:155px;height:36px;font-size:12px}.excel-table tbody th,.excel-table__corner{min-width:38px!important;max-width:38px!important}}.file-status{margin:12px 0;padding:12px 14px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1e40af;font-size:14px}.file-status--error{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.upload-section,.workbook-panel,.sheet-workspace,.excel-table-wrapper{max-width:100%;box-sizing:border-box}.upload-section,.upload-box,.workbook-panel,.sheet-workspace,.excel-table-wrapper{min-width:0;max-width:100%;box-sizing:border-box}
