:root {
  color-scheme: light;
  --ink: #202536;
  --muted: #8990a0;
  --line: #eceef3;
  --surface: #fff;
  --canvas: #f7f8fc;
  --purple: #6957dc;
  --purple-dark: #5442c3;
  --purple-light: #f0edff;
  --green: #20a875;
  --blue: #3985e8;
  --orange: #ed9942;
  font-family: "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); bottom: 0; display: flex; flex-direction: column; left: 0; padding: 24px 16px 16px; position: fixed; top: 0; width: 248px; z-index: 4; }
.brand { align-items: center; color: var(--ink); display: flex; gap: 10px; margin: 0 0 31px 5px; text-decoration: none; }
.brand-mark { display: inline-block; flex: none; width: 32px; height: 32px; background: url("icons/linsoft-office.svg") center / contain no-repeat; }
.brand-mark span { display: none; }
.brand-name { font: 800 20px Manrope, sans-serif; letter-spacing: -1px; }
.brand-name span { color: var(--purple); font-weight: 600; margin-left: 4px; }
.workspace-switch { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; display: flex; gap: 10px; padding: 10px; text-align: left; }
.workspace-avatar, .profile-avatar { align-items: center; background: #eeeaff; border-radius: 8px; color: var(--purple); display: inline-flex; font-weight: 700; height: 34px; justify-content: center; width: 34px; }
.workspace-copy, .profile-copy { display: grid; gap: 3px; }.workspace-copy strong, .profile-copy strong { font-size: 12px; font-weight: 600; }.workspace-copy small, .profile-copy small { color: var(--muted); font-size: 11px; }
.chevron { color: #969baa; font-size: 16px; margin-left: auto; }
.nav-label { color: #9a9eab; font-size: 10px; font-weight: 700; letter-spacing: 1px; margin: 31px 0 10px 9px; }
.main-nav { display: grid; gap: 4px; }
.nav-item { align-items: center; background: transparent; border: 0; border-radius: 8px; color: #697084; cursor: pointer; display: flex; font-size: 13px; gap: 12px; min-height: 39px; padding: 0 10px; text-align: left; transition: background .15s, color .15s; width: 100%; }
.nav-item:hover { background: #f7f6ff; color: var(--purple); }.nav-item.active { background: var(--purple-light); color: var(--purple-dark); font-weight: 600; }
.nav-icon { align-items: center; color: #969baa; display: inline-flex; font-size: 17px; height: 20px; justify-content: center; width: 20px; }
.nav-item.active .nav-icon { color: var(--purple); }
.nav-icon.icon-word, .nav-icon.icon-excel, .nav-icon.icon-slides, .nav-icon.icon-mail { border-radius: 5px; color: white; font-size: 11px; font-weight: 700; height: 18px; width: 18px; }
.icon-word { background: #4388e9; }.icon-excel { background: #24a875; }.icon-slides { background: #e9a047; }.icon-mail { background: #ed7180; }
.nav-count { color: #a2a6b3; font-size: 11px; margin-left: auto; }.unread-dot { background: #ed7180; border-radius: 50%; height: 7px; margin-left: auto; width: 7px; }
.folder-label { margin-top: 29px; }.secondary-nav .nav-item { min-height: 37px; }
.sidebar-bottom { margin-top: auto; }
.storage-card { border: 1px solid var(--line); border-radius: 10px; margin: 0 1px 13px; padding: 12px; }
.storage-heading { display: flex; font-size: 11px; font-weight: 600; justify-content: space-between; }.storage-heading span:last-child { color: var(--muted); font-weight: 500; }
.storage-track { background: #eeeef4; border-radius: 5px; height: 5px; margin: 11px 0 8px; overflow: hidden; }.storage-track span { background: var(--purple); border-radius: 5px; display: block; height: 100%; width: 32%; }
.storage-card small { color: var(--muted); font-size: 10px; }.profile-button { align-items: center; background: #fff; border: 0; border-top: 1px solid var(--line); cursor: pointer; display: flex; gap: 10px; padding: 15px 2px 1px; text-align: left; width: 100%; }.profile-avatar { background: #e9efff; color: #5576d8; font-size: 11px; }.more { color: #8c91a0; font-size: 20px; margin-left: auto; }
.main-area { margin-left: 248px; min-height: 100vh; }
.topbar { align-items: center; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); display: flex; height: 68px; justify-content: space-between; padding: 0 42px; position: sticky; top: 0; z-index: 3; }
.breadcrumbs { align-items: center; color: #9a9eab; display: flex; font-size: 12px; gap: 10px; }.breadcrumbs strong { color: #4c5263; font-weight: 600; }.crumb-slash { color: #d2d4dc; }
.topbar-actions { align-items: center; display: flex; gap: 17px; }.search-box { align-items: center; background: #f7f8fb; border: 1px solid #f0f1f5; border-radius: 8px; color: #9ba0ae; display: flex; gap: 9px; height: 36px; padding: 0 10px; width: 250px; }.search-box>span { font-size: 21px; transform: rotate(-20deg); }.search-box input { background: transparent; border: 0; color: var(--ink); font-size: 12px; min-width: 0; outline: none; width: 100%; }.search-box kbd { background: #fff; border: 1px solid #e8e9ef; border-radius: 4px; font: 10px "DM Sans"; padding: 2px 4px; white-space: nowrap; }
.icon-button, .help-button { background: transparent; border: 0; color: #777d8e; cursor: pointer; font-size: 17px; position: relative; }.notification-button i { background: #ed7180; border: 1px solid white; border-radius: 50%; height: 7px; position: absolute; right: -1px; top: 0; width: 7px; }.help-button { border: 1px solid #e6e8ef; border-radius: 50%; font-size: 11px; height: 22px; width: 22px; }
.page-content { margin: 0 auto; max-width: 1310px; padding: 36px 42px 56px; }
.welcome-row { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 29px; }.eyebrow { color: var(--purple); font-size: 11px; font-weight: 700; letter-spacing: .8px; margin: 0 0 9px; text-transform: uppercase; }.page-title { font: 700 27px Manrope, sans-serif; letter-spacing: -.8px; margin: 0; }.welcome-copy { color: #8c91a0; font-size: 13px; margin: 8px 0 0; }.primary-button, .secondary-button { align-items: center; border: 1px solid transparent; border-radius: 8px; cursor: pointer; display: inline-flex; font-size: 12px; font-weight: 600; gap: 8px; justify-content: center; min-height: 38px; padding: 0 15px; transition: background .15s, transform .15s; }.primary-button { background: var(--purple); box-shadow: 0 4px 9px #6957dc2a; color: white; }.primary-button:hover { background: var(--purple-dark); transform: translateY(-1px); }.primary-button span { font-size: 17px; font-weight: 400; }.secondary-button { background: white; border-color: var(--line); color: #555b6d; }.secondary-button:hover { background: #fafaff; border-color: #d9d4fb; }
.hero-card { background: linear-gradient(115deg,#302b61 0%,#5146a1 54%,#7464db 100%); border-radius: 14px; color: white; display: flex; justify-content: space-between; margin-bottom: 30px; min-height: 186px; overflow: hidden; padding: 27px 33px; position: relative; }.hero-card:after { border: 1px solid #ffffff20; border-radius: 50%; content: ""; height: 300px; position: absolute; right: 7%; top: -160px; width: 300px; }.hero-card:before { border: 1px solid #ffffff18; border-radius: 50%; content: ""; height: 390px; position: absolute; right: -1%; top: -190px; width: 390px; }
.hero-copy { align-self: center; max-width: 430px; position: relative; z-index: 1; }.hero-copy .eyebrow { color: #c5bfff; margin-bottom: 9px; }.hero-copy h2 { font: 700 22px Manrope,sans-serif; letter-spacing: -.4px; margin: 0 0 8px; }.hero-copy p { color: #dddcf2; font-size: 12px; line-height: 1.6; margin: 0 0 17px; }.hero-card .primary-button { background: white; box-shadow: none; color: #5146a1; }.hero-card .primary-button:hover { background: #f0edff; }.hero-art { align-items: center; display: flex; gap: 11px; margin-right: 28px; position: relative; transform: rotate(-8deg); z-index: 1; }.hero-app-tile { align-items: center; background: #ffffff20; border: 1px solid #ffffff35; border-radius: 13px; box-shadow: 0 12px 28px #1d184c25; display: flex; font: 700 21px Manrope,sans-serif; height: 70px; justify-content: center; width: 70px; }.hero-app-tile:nth-child(2) { background: #ffffff15; margin-top: 27px; }.hero-app-tile:nth-child(3) { background: #ffffff10; margin-top: -14px; }
.section-heading { align-items: center; display: flex; justify-content: space-between; margin: 28px 0 15px; }.section-heading h2 { font: 700 15px Manrope,sans-serif; margin: 0; }.text-button { background: transparent; border: 0; color: var(--purple); cursor: pointer; font-size: 11px; font-weight: 600; padding: 5px; }
.create-grid { display: grid; gap: 13px; grid-template-columns: repeat(4,minmax(0,1fr)); }.create-card { align-items: center; background: white; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; display: flex; gap: 12px; min-height: 76px; padding: 13px; text-align: left; transition: border .15s,transform .15s,box-shadow .15s; }.create-card:hover { border-color: #d6d0fc; box-shadow: 0 6px 18px #3730500b; transform: translateY(-2px); }.app-icon { align-items: center; border-radius: 9px; color: white; display: inline-flex; flex: 0 0 38px; font: 700 16px Manrope,sans-serif; height: 38px; justify-content: center; }.app-icon.word { background: #4388e9; }.app-icon.excel { background: #24a875; }.app-icon.slides { background: #eda14a; }.app-icon.mail { background: #e87683; }.create-copy { display: grid; gap: 4px; }.create-copy strong { font-size: 12px; font-weight: 600; }.create-copy small { color: var(--muted); font-size: 10px; }
.recent-grid { display: grid; gap: 13px; grid-template-columns: repeat(3,minmax(0,1fr)); }.file-card { background: white; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; overflow: hidden; transition: border .15s,transform .15s; }.file-card:hover { border-color: #d8d2fc; transform: translateY(-2px); }.file-preview { align-items: center; background: #f8f9fc; display: flex; height: 124px; justify-content: center; overflow: hidden; }.preview-page { background: white; border: 1px solid #eceef2; border-radius: 3px; box-shadow: 0 5px 14px #1d263c0b; height: 94px; padding: 12px 15px; width: 75px; }.preview-page b { background: #4388e9; border-radius: 1px; display: block; height: 4px; margin-bottom: 9px; width: 26px; }.preview-page i { background: #e8eaf0; border-radius: 1px; display: block; height: 3px; margin: 0 0 5px; width: 100%; }.preview-page i:nth-child(4) { width: 78%; }.preview-page i:nth-child(5) { margin-top: 9px; width: 86%; }.preview-sheet { background: white; border: 1px solid #e7eaf0; box-shadow: 0 5px 14px #1d263c0b; display: grid; grid-template-columns: repeat(4,19px); grid-template-rows: repeat(4,15px); transform: rotate(-4deg); }.preview-sheet span { border: 1px solid #edf0f3; }.preview-sheet span:nth-child(-n+4) { background: #e5f5ed; }.preview-presentation { background: white; border: 1px solid #e7eaf0; box-shadow: 0 5px 14px #1d263c0b; height: 69px; padding: 11px; transform: rotate(3deg); width: 105px; }.preview-presentation b { background: #5146a1; display: block; height: 6px; margin: 3px 0 8px; width: 35px; }.preview-presentation i { background: #eaebf1; display: block; height: 3px; margin-bottom: 4px; width: 72%; }.file-info { padding: 12px 13px; }.file-title-row { align-items: center; display: flex; gap: 8px; }.mini-type { align-items: center; border-radius: 4px; color: white; display: inline-flex; flex: 0 0 19px; font-size: 9px; font-weight: 700; height: 19px; justify-content: center; }.mini-type.word { background: #4388e9; }.mini-type.excel { background: #24a875; }.mini-type.slides { background: #eda14a; }.file-title { font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.file-meta { color: var(--muted); font-size: 10px; margin: 7px 0 0 27px; }
.feature-strip { align-items: center; background: #f0effb; border: 1px solid #e9e7f8; border-radius: 10px; color: #66617e; display: flex; font-size: 11px; gap: 10px; margin-top: 23px; padding: 13px 15px; }.feature-strip b { color: #5950a1; font-weight: 600; }.feature-star { color: #8477da; font-size: 15px; }
.page-toolbar { align-items: center; display: flex; justify-content: space-between; margin: 24px 0 16px; }.filter-row { display: flex; gap: 8px; }.filter-chip { background: white; border: 1px solid var(--line); border-radius: 20px; color: #73798a; cursor: pointer; font-size: 11px; padding: 7px 13px; }.filter-chip.active { background: var(--purple-light); border-color: #e5e0ff; color: var(--purple-dark); font-weight: 600; }.file-list { background: white; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }.file-list-head, .file-list-row { align-items: center; display: grid; grid-template-columns: minmax(220px,2fr) minmax(100px,.8fr) minmax(120px,1fr) 35px; padding: 12px 18px; }.file-list-head { background: #fbfbfd; border-bottom: 1px solid var(--line); color: #9a9eaa; font-size: 10px; }.file-list-row { border-bottom: 1px solid #f0f1f5; cursor: pointer; min-height: 59px; }.file-list-row:last-child { border-bottom: 0; }.file-list-row:hover { background: #fcfbff; }.file-name-cell { align-items: center; display: flex; gap: 10px; min-width: 0; }.file-name-cell strong { font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.list-meta { color: #818697; font-size: 10px; }.row-menu { background: transparent; border: 0; color: #999eaa; cursor: pointer; font-size: 18px; }
.editor-head { align-items: center; display: flex; gap: 12px; margin-bottom: 18px; }.back-button { background: white; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 18px; height: 36px; width: 38px; }.editor-title-input { background: transparent; border: 0; font: 700 20px Manrope,sans-serif; max-width: 420px; outline: none; }.save-state { color: #9297a5; font-size: 11px; margin-left: 4px; }.editor-actions { display: flex; gap: 8px; margin-left: auto; }.editor-paper { background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 7px 24px #2a31520a; margin: 0 auto; min-height: 570px; max-width: 820px; padding: 65px 80px; }.editor-paper textarea { border: 0; color: #404657; font: 14px/1.9 "DM Sans",sans-serif; min-height: 430px; outline: none; resize: vertical; width: 100%; }.editor-paper h1 { font: 700 26px Manrope,sans-serif; margin: 0 0 22px; }.editor-paper .document-body { color: #555b6b; font-size: 13px; line-height: 1.9; min-height: 380px; outline: none; }.toolbar-ribbon { align-items: center; background: white; border: 1px solid var(--line); border-radius: 9px; display: flex; gap: 7px; margin-bottom: 12px; padding: 9px; }.ribbon-button { background: white; border: 1px solid transparent; border-radius: 5px; color: #626879; cursor: pointer; font-size: 12px; min-width: 30px; padding: 6px; }.ribbon-button:hover { background: #f4f2ff; color: var(--purple); }.ribbon-divider { background: var(--line); height: 21px; margin: 0 3px; width: 1px; }
.sheet-wrap { background: white; border: 1px solid var(--line); border-radius: 9px; overflow: auto; }.sheet-bar { align-items: center; background: #fbfbfd; border-bottom: 1px solid var(--line); color: #858a99; display: flex; font-size: 11px; gap: 12px; padding: 11px 14px; }.cell-ref { background: white; border: 1px solid #e7e8ed; border-radius: 4px; color: #565c6c; min-width: 42px; padding: 5px 8px; text-align: center; }.formula-fx { color: var(--green); font-weight: 700; }.formula-input { background: white; border: 1px solid #e7e8ed; border-radius: 4px; color: #606678; flex: 1; padding: 5px 8px; }.spreadsheet { border-collapse: collapse; min-width: 760px; table-layout: fixed; width: 100%; }.spreadsheet th, .spreadsheet td { border: 1px solid #edf0f2; height: 35px; padding: 0 9px; }.spreadsheet th { background: #f8faf9; color: #777e8c; font-size: 10px; font-weight: 600; text-align: center; }.spreadsheet th:first-child { width: 44px; }.spreadsheet td { color: #434a59; font-size: 11px; outline: none; }.spreadsheet td:first-child { background: #fafbfc; color: #8a909e; text-align: center; }.spreadsheet td:focus { box-shadow: inset 0 0 0 2px var(--green); }.spreadsheet td.header-cell { background: #e9f6ef; font-weight: 700; }.sheet-tabs { background: #fbfbfd; border-top: 1px solid var(--line); color: var(--green); font-size: 11px; padding: 10px 17px; }.sheet-note { color: #999eaa; font-size: 10px; margin-top: 10px; }
.presentation-layout { display: grid; gap: 17px; grid-template-columns: 175px minmax(0,1fr); }.slide-rail { display: grid; gap: 10px; grid-auto-rows: min-content; }.slide-thumb { background: white; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; padding: 7px; }.slide-thumb.active { border: 2px solid var(--purple); padding: 6px; }.slide-thumb-preview { align-items: center; background: #f4f2ff; color: #5550a0; display: flex; font-size: 8px; height: 79px; justify-content: center; text-align: center; }.slide-thumb-label { color: #777d8b; font-size: 9px; padding: 7px 1px 0; }.add-slide { background: white; border: 1px dashed #d5d4e2; border-radius: 7px; color: var(--purple); cursor: pointer; font-size: 11px; padding: 9px; }.slide-stage { align-items: center; background: #eceef4; border: 1px solid #e6e8ef; border-radius: 9px; display: flex; justify-content: center; min-height: 430px; padding: 35px; }.slide-canvas { aspect-ratio: 16/9; background: white; box-shadow: 0 7px 24px #20253616; display: flex; flex-direction: column; justify-content: center; max-width: 680px; padding: 10%; width: 100%; }.slide-canvas h1, .slide-canvas h2 { color: #37325f; font: 700 28px Manrope,sans-serif; margin: 0 0 14px; outline: none; }.slide-canvas p { color: #85889a; font-size: 14px; outline: none; }.slide-accent { background: #6957dc; height: 5px; margin-bottom: 20px; width: 40px; }
.mail-layout { background: white; border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: 185px minmax(240px,1fr) minmax(260px,1.15fr); min-height: 505px; overflow: hidden; }.mail-folders { border-right: 1px solid var(--line); padding: 13px 10px; }.compose-button { margin-bottom: 13px; width: 100%; }.mail-folder { align-items: center; border-radius: 6px; color: #727889; cursor: pointer; display: flex; font-size: 11px; justify-content: space-between; margin-bottom: 3px; padding: 9px 8px; }.mail-folder.active { background: #f1efff; color: var(--purple-dark); font-weight: 600; }.mail-folder span:last-child { color: #9a9eab; font-size: 10px; }.mail-list { border-right: 1px solid var(--line); }.mail-list-head { align-items: center; border-bottom: 1px solid var(--line); color: #515768; display: flex; font-size: 11px; font-weight: 600; justify-content: space-between; padding: 15px 13px; }.email-row { border-bottom: 1px solid #f0f1f5; cursor: pointer; padding: 13px; }.email-row:hover, .email-row.active { background: #faf9ff; }.email-row.unread .email-sender, .email-row.unread .email-subject { color: #303546; font-weight: 700; }.email-top { align-items: center; display: flex; justify-content: space-between; }.email-sender { color: #555b6a; font-size: 10px; }.email-time { color: #9a9eaa; font-size: 9px; }.email-subject { color: #626879; font-size: 10px; margin: 7px 0 5px; }.email-snippet { color: #999eab; font-size: 9px; line-height: 1.5; }.email-content { padding: 21px 19px; }.email-content h2 { font: 700 15px Manrope,sans-serif; margin: 0 0 15px; }.email-detail-from { color: #858a99; font-size: 10px; line-height: 1.7; }.email-body { color: #676d7c; font-size: 11px; line-height: 1.8; margin-top: 20px; }.empty-email { color: #9a9eaa; font-size: 11px; padding-top: 55px; text-align: center; }
.modal-backdrop { align-items: center; background: #20253666; display: flex; inset: 0; justify-content: center; padding: 20px; position: fixed; z-index: 10; }.modal { background: white; border-radius: 13px; box-shadow: 0 18px 70px #14162935; max-width: 510px; padding: 25px; width: 100%; }.modal-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 19px; }.modal-heading h2 { font: 700 18px Manrope,sans-serif; margin: 0 0 5px; }.modal-heading p { color: #8a8f9d; font-size: 11px; margin: 0; }.modal-close { background: transparent; border: 0; color: #8c91a0; cursor: pointer; font-size: 20px; }.form-field { display: grid; gap: 7px; margin: 13px 0; }.form-field label { color: #666c7a; font-size: 11px; font-weight: 600; }.form-field input, .form-field textarea { border: 1px solid #e8e9ef; border-radius: 7px; color: var(--ink); font-size: 12px; outline: none; padding: 10px; }.form-field input:focus, .form-field textarea:focus { border-color: #afa5f2; box-shadow: 0 0 0 3px #6957dc12; }.form-field textarea { min-height: 130px; resize: vertical; }.modal-footer { display: flex; justify-content: flex-end; margin-top: 17px; }.toast-root { bottom: 22px; display: grid; gap: 8px; position: fixed; right: 23px; z-index: 20; }.toast { animation: toast-in .2s ease-out; background: #25283a; border-radius: 8px; box-shadow: 0 6px 20px #20253630; color: white; font-size: 12px; padding: 12px 16px; }.toast.success:before { color: #6cdbab; content: "✓"; font-weight: 700; margin-right: 9px; }@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.form-error { color: #bd3a48; font-size: 11px; min-height: 15px; }.modal-footer .secondary-button:disabled,.modal-footer .primary-button:disabled { cursor: not-allowed; opacity: .6; }
.account-modal { max-height: calc(100vh - 40px); overflow-y: auto; }
.account-modal [hidden] { display: none; }
.account-tabs { display: flex; gap: 4px; margin: 24px 0; padding: 5px; background: #f1f3f8; border: 1px solid #e7eaf2; border-radius: 12px; }
.account-mode-button { flex: 1; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: #566279; font-weight: 600; cursor: pointer; }
.account-tabs .active { background: white; color: #4f46ce; box-shadow: 0 2px 7px #23324c14; }
.account-registration-note { color: #69778d; font-size: 11px; line-height: 1.6; }
.auth-locked .app-shell { display: none !important; }
.auth-locked { background: #14213b; }
.auth-locked #modal-root .modal-backdrop { background: radial-gradient(ellipse at 10% 0, #343c78 0, transparent 55%), radial-gradient(ellipse at 100% 100%, #144a59 0, transparent 55%), #101b32; }
.modal.template-modal { display: flex; flex-direction: column; height: min(86vh,900px); max-height: min(86vh,900px); max-width: 900px; overflow: hidden; width: min(900px,100%); }
#modal-root .modal.template-modal { max-width: 900px; width: min(900px,calc(100vw - 40px)); }
.template-modal .modal-heading, .template-modal .modal-footer { flex: 0 0 auto; }
.template-modal .template-picker { display: block; flex: 1 1 auto; min-height: 0; }
.template-modal .template-browse { display: grid; gap: 14px; grid-template-rows: auto auto minmax(0,1fr) auto; height: 100%; min-height: 0; }
.template-modal .template-preview[hidden], .template-modal .template-browse[hidden] { display: none; }
.template-modal .template-preview { display: grid; gap: 13px; grid-template-rows: auto minmax(0,1fr) auto; height: 100%; min-height: 0; }
.template-preview-heading { display: grid; gap: 6px; }
.template-preview-heading .secondary-button { justify-self: start; margin-bottom: 3px; }
.template-preview-heading h3 { color: #27364d; font: 700 16px Manrope,sans-serif; margin: 0; }
.template-preview-heading p, .template-preview-note { color: #77849a; font-size: 10px; line-height: 1.5; margin: 0; }
.template-preview-content { align-items: start; background: #f3f5f9; border: 1px solid #e5e9f0; border-radius: 9px; display: flex; justify-content: center; min-height: 0; overflow: auto; padding: 18px; }
.template-preview-document { background: #fff; box-shadow: 0 3px 15px #20253614; color: #404657; font-size: 12px; line-height: 1.7; max-width: 660px; min-height: 250px; padding: 28px; width: 100%; }
.template-preview-document h1, .template-preview-document h2, .template-preview-document h3 { color: #27364d; }
.template-preview-sheet { align-self: start; background: #fff; border: 1px solid #e1e7ef; border-radius: 7px; max-width: 100%; overflow: auto; }
.template-preview-sheet table { border-collapse: collapse; font-size: 10px; min-width: 400px; }
.template-preview-sheet th, .template-preview-sheet td { border: 1px solid #e7ebf0; max-width: 180px; min-width: 55px; overflow-wrap: anywhere; padding: 7px 9px; text-align: left; }
.template-preview-sheet th { background: #e9f6ef; color: #426a60; }
.template-preview-content.is-sheet { display: grid; gap: 10px; justify-content: start; }
.template-preview-slide { aspect-ratio: 16/9; background: var(--preview-background); box-shadow: 0 4px 16px #20253620; display: flex; flex-direction: column; justify-content: center; max-width: 650px; padding: 8%; width: min(100%,650px); }
.template-preview-accent { background: var(--preview-accent); height: 4px; margin-bottom: 15px; width: 34px; }
.template-preview-slide h3 { color: var(--preview-title); font: 700 clamp(15px,3vw,25px) Manrope,sans-serif; margin: 0 0 10px; overflow-wrap: anywhere; }
.template-preview-slide p { color: var(--preview-text); font-size: clamp(9px,1.5vw,14px); line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.template-preview-actions { display: flex; justify-content: flex-end; }
.template-modal .template-tabs, .template-modal .template-search, .template-modal .template-email { min-width: 0; }
.template-tabs { display: grid; gap: 9px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.template-tab { align-items: center; background: #fbfcfe; border: 1px solid #e1e7ef; border-radius: 9px; color: #35435a; cursor: pointer; display: flex; gap: 10px; min-height: 64px; padding: 10px 13px; text-align: left; }
.template-tab.active { background: #f0efff; border-color: #b8b0f1; box-shadow: 0 0 0 2px #6957dc12; color: #443d91; }
.template-tab .button-icon { color: #526de5; flex-basis: 25px; height: 25px; padding: 3px; width: 25px; }
.template-tab span { display: grid; gap: 4px; }
.template-tab strong { font-size: 11px; }
.template-tab small { color: #858da0; font-size: 9px; }
.template-email { justify-self: start; }
.template-search { color: #69778d; display: grid; font-size: 11px; font-weight: 600; gap: 7px; }
.template-search input { background: #fbfcfe; border: 1px solid #e1e7ef; border-radius: 8px; color: #27364d; min-height: 40px; outline: none; padding: 0 12px; }
.template-search input:focus { border-color: #aabaff; box-shadow: 0 0 0 3px #526de515; }
.template-grid { align-content: start; display: grid; gap: 10px; grid-template-columns: repeat(3,minmax(0,1fr)); min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 2px; scrollbar-gutter: stable; }
.template-card { align-content: start; background: linear-gradient(150deg,#fff,#fafbfe); border: 1px solid #e4e9f1; border-radius: 9px; display: grid; gap: 8px; min-height: 145px; padding: 14px; transition: border-color .15s,box-shadow .15s,transform .15s; }
.template-card:hover { border-color: #aebcff; box-shadow: 0 7px 18px #526de51a; transform: translateY(-1px); }
.template-card[hidden] { display: none; }
.template-card-type { color: #526de5; font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.template-card strong { color: #27364d; font-size: 12px; }
.template-card>span:not(.template-card-type) { color: #7a879b; font-size: 10px; line-height: 1.5; }
.template-card small { color: #526de5; font-size: 10px; font-weight: 600; margin-top: auto; }
.template-card-actions { align-items: center; display: flex; gap: 7px; margin-top: auto; }
.template-card-actions .primary-button, .template-card-actions .secondary-button { font-size: 10px; min-height: 30px; padding: 0 9px; }
.template-empty { color: #77849a; font-size: 12px; padding: 22px; text-align: center; }
@media(max-width:720px) { .topbar-actions { flex: 1; justify-content: flex-end; }.topbar-actions #office-account-button,.topbar-actions #office-sync-button { font-size: 10px; min-height: 30px; padding: 0 7px; }.topbar-actions #office-sync-button { max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media(max-width:1050px) { .sidebar { width: 220px; }.main-area { margin-left: 220px; }.page-content { padding-left: 28px; padding-right: 28px; }.topbar { padding: 0 28px; }.create-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.mail-layout { grid-template-columns: 145px minmax(220px,1fr); }.email-content { grid-column: 1/-1; border-top: 1px solid var(--line); min-height: 170px; }.mail-list { border-right: 0; }.recent-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:720px) { .sidebar { bottom: auto; height: 60px; padding: 0 16px; right: 0; width: auto; }.brand { margin: 0; }.workspace-switch,.nav-label,.main-nav,.sidebar-bottom { display: none; }.main-area { margin: 60px 0 0; }.topbar { height: 55px; padding: 0 17px; }.topbar-actions { gap: 12px; }.search-box { width: 160px; }.search-box kbd { display: none; }.breadcrumbs>span:first-child,.crumb-slash { display: none; }.page-content { padding: 25px 17px 40px; }.welcome-row { align-items: flex-start; flex-direction: column; gap: 17px; }.page-title { font-size: 23px; }.hero-card { min-height: 180px; padding: 23px; }.hero-art { gap: 5px; margin-right: -60px; opacity: .5; }.hero-app-tile { height: 55px; width: 55px; }.hero-copy { max-width: 310px; }.create-grid { gap: 9px; grid-template-columns: repeat(2,minmax(0,1fr)); }.create-card { gap: 9px; min-height: 68px; padding: 9px; }.create-copy small { font-size: 9px; }.recent-grid { grid-template-columns: 1fr; }.file-list-head,.file-list-row { grid-template-columns: minmax(145px,2fr) minmax(70px,.8fr) 28px; padding-left: 11px; padding-right: 11px; }.file-list-head span:nth-child(3),.file-list-row .list-meta:nth-child(3) { display: none; }.editor-paper { min-height: 480px; padding: 35px 24px; }.editor-title-input { font-size: 16px; max-width: 180px; }.editor-actions .secondary-button { display: none; }.presentation-layout { grid-template-columns: 1fr; }.slide-rail { grid-template-columns: repeat(3,1fr); }.slide-thumb-preview { height: 57px; }.slide-stage { min-height: 300px; padding: 18px; }.slide-canvas h1,.slide-canvas h2 { font-size: 20px; }.mail-layout { grid-template-columns: 110px minmax(170px,1fr); }.mail-folders { padding: 10px 6px; }.mail-folder { font-size: 10px; padding: 8px 5px; }.compose-button { font-size: 10px; padding: 0 6px; }.email-content { padding: 17px; } }

/* Linsoft Office visual system */
:root {
  color-scheme: light;
  --ink: #172238;
  --muted: #78859b;
  --line: #e7ebf2;
  --surface: #fff;
  --canvas: #f5f7fb;
  --purple: #526de5;
  --purple-dark: #3c55c3;
  --purple-light: #edf1ff;
  --green: #169b75;
  --blue: #387ce0;
  --orange: #e9a64d;
  font-family: "Segoe UI", "Segoe UI Variable", Arial, sans-serif;
}
body { background: var(--canvas); color: var(--ink); font-size: 14px; letter-spacing: -.01em; }
button, input, textarea, select { font-family: inherit; }
:focus-visible { outline: 3px solid #83a3ff; outline-offset: 2px; }
::selection { background: #dce5ff; color: #172238; }
.sidebar { background: #14213b; border-right: 0; box-shadow: 5px 0 22px #12203b0a; padding: 25px 15px 17px; }
.brand { color: #f5f7ff; margin: 0 0 32px 5px; }
.brand-mark span { background: #90a9ff; }.brand-mark span:nth-child(2) { background: #6383f0; }.brand-mark span:nth-child(3) { background: #d0d9ff; }.brand-mark span:nth-child(4) { background: #829afb; }
.brand-name { font: 800 19px "Segoe UI", Arial, sans-serif; letter-spacing: -1px; }.brand-name span { color: #9dafef; }
.workspace-switch { background: #1c2b48; border-color: #ffffff13; border-radius: 10px; min-height: 58px; padding: 10px; }
.workspace-avatar { background: #334675; color: #dbe4ff; }.workspace-copy strong { color: #f0f3fa; }.workspace-copy small { color: #9ba9c1; }.chevron { color: #aab7ce; }
.nav-label { color: #8f9db5; font-size: 9px; letter-spacing: 1.2px; margin: 29px 0 10px 10px; }
.nav-item { border-radius: 8px; color: #b4bfd1; font-size: 12px; min-height: 40px; transition: background .18s,color .18s,transform .18s; }
.nav-item:hover { background: #ffffff0c; color: #fff; }.nav-item.active { background: #314468; box-shadow: inset 3px 0 #92a8ff; color: #fff; }.nav-icon,.nav-item.active .nav-icon { color: #bdc9dc; }.nav-count { color: #b4bfd1; }.folder-label { margin-top: 30px; }
.sidebar .icon-word { background: #5383e5; }.sidebar .icon-excel { background: #18836a; }.sidebar .icon-slides { background: #c9802e; }.sidebar .icon-mail { background: #c86178; }
.storage-card { background: #1b2b47; border-color: #ffffff15; }.storage-heading { color: #e0e6f1; font-size: 11px; }.storage-heading span:last-child { color: #aebbd1; }.storage-track { background: #31415d; }.storage-track span { background: #92a8ff; width: 0; }.storage-card small { color: #9ba9bf; }
.profile-button { border-color: #ffffff16; background: transparent; }.profile-copy strong { color: #e8edf6; }.profile-copy small,.more { color: #a3b0c5; }.profile-avatar { background: #344775; color: #e0e7ff; }
.main-area { background: var(--canvas); }
.topbar { background: #ffffffed; border-bottom-color: var(--line); height: 65px; padding: 0 clamp(22px,4vw,54px); }
.breadcrumbs { color: #8792a5; font-size: 11px; }.breadcrumbs strong { color: #35435a; }.crumb-slash { color: #c5cbd6; }
.search-box { background: #f7f8fb; border-color: #e9edf3; height: 37px; transition: border-color .18s,box-shadow .18s; width: min(290px,30vw); }.search-box:focus-within { background: #fff; border-color: #b8c6fb; box-shadow: 0 0 0 3px #526de511; }.search-box input { font-size: 11px; }.search-box kbd { color: #8993a5; font-family: inherit; }
.icon-button,.help-button { align-items: center; border: 1px solid #e8ecf2; border-radius: 8px; color: #69768b; display: inline-flex; font-size: 13px; height: 35px; justify-content: center; transition: color .18s,background .18s; width: 35px; }.icon-button:hover,.help-button:hover { background: #f2f5fc; color: var(--purple-dark); }.help-button { border-radius: 50%; font-size: 12px; height: 28px; width: 28px; }
.page-content { max-width: 1380px; padding: 37px clamp(22px,4vw,54px) 58px; }
.eyebrow { color: #526de5; font-size: 9px; letter-spacing: 1.25px; margin-bottom: 10px; }
.page-title { color: #172238; font: 700 clamp(24px,2.5vw,30px)/1.25 "Segoe UI",Arial,sans-serif; letter-spacing: -.8px; }
.welcome-copy { color: #78859b; font-size: 12px; line-height: 1.65; margin-top: 7px; }.welcome-row { margin-bottom: 26px; }
.primary-button,.secondary-button { border-radius: 8px; font-size: 11px; min-height: 38px; transition: transform .18s,background .18s,box-shadow .18s; }.primary-button { background: #526de5; box-shadow: 0 5px 13px #526de522; }.primary-button:hover { background: #405bd3; box-shadow: 0 7px 16px #526de533; transform: translateY(-1px); }.secondary-button { border-color: #e3e8f0; color: #536177; }.secondary-button:hover { background: #f7f8fd; border-color: #cbd5e7; }
.hero-card { background: linear-gradient(112deg,#182849 0%,#263f71 58%,#4d63b2 100%); border: 1px solid #6175bd44; border-radius: 13px; box-shadow: 0 12px 28px #17264612; margin-bottom: 26px; min-height: 184px; padding: 27px 32px; }
.hero-card:before,.hero-card:after { border-color: #ffffff18; }.hero-copy .eyebrow { color: #bbc9ff; font-size: 9px; }.hero-copy h2 { font: 700 22px/1.4 "Segoe UI",Arial,sans-serif; letter-spacing: -.4px; }.hero-copy p { color: #d3dbeb; font-size: 11px; line-height: 1.8; }.hero-card .primary-button { color: #273e76; }.hero-art { margin-right: 34px; }.hero-app-tile { background: #ffffff1c; border: 1px solid #ffffff31; border-radius: 14px; height: 66px; width: 66px; }
.section-heading { margin: 26px 0 13px; }.section-heading h2 { color: #25324a; font: 650 14px "Segoe UI",Arial,sans-serif; }.text-button { color: #4965d1; font-size: 10px; }.text-button:hover { color: #263f9e; text-decoration: underline; }
.create-grid { gap: 12px; }.create-card { border-color: #e7ebf2; border-radius: 10px; box-shadow: 0 2px 7px #1c315009; min-height: 74px; padding: 12px; }.create-card:hover { border-color: #cad5f4; box-shadow: 0 8px 20px #1c31500d; }.app-icon { border-radius: 9px; box-shadow: inset 0 1px #ffffff37; height: 37px; width: 37px; }.app-icon.word,.mini-type.word { background: #4681e6; }.app-icon.excel,.mini-type.excel { background: #16896d; }.app-icon.slides,.mini-type.slides { background: #d18a3a; }.app-icon.mail { background: #d36879; }.create-copy strong { color: #25324a; font-size: 11px; }.create-copy small { color: #8590a3; font-size: 10px; }
.recent-grid { gap: 13px; }.file-card { border-color: #e7ebf2; border-radius: 10px; box-shadow: 0 2px 8px #1c315009; }.file-card:hover { border-color: #cad5f4; box-shadow: 0 8px 22px #1c31500e; }.file-preview { background: linear-gradient(145deg,#f8f9fc,#f0f3f9); height: 120px; }.file-info { padding: 12px 13px; }.file-title { color: #29364d; }.file-meta { color: #8590a3; }
.preview-page,.preview-sheet,.preview-presentation { box-shadow: 0 7px 18px #1a274415; }.preview-page b { background: #5383e5; }.preview-sheet span:nth-child(-n+4) { background: #e4f3ec; }.preview-presentation b { background: #536ad0; }
.feature-strip { background: #edf2ff; border-color: #dfe7fa; border-radius: 9px; color: #66748e; font-size: 10px; }.feature-strip b { color: #334b94; }
.page-toolbar { margin: 21px 0 13px; }.filter-chip { border-color: #e5e9f0; color: #68758b; transition: .16s; }.filter-chip:hover { border-color: #cbd5f1; }.filter-chip.active { background: #edf1ff; border-color: #dce4ff; color: #405bc1; }
.file-list { border-color: #e6eaf1; border-radius: 10px; box-shadow: 0 3px 11px #1c315008; }.file-list-head { background: #f9fafc; color: #8490a3; font-size: 9px; letter-spacing: .25px; }.file-list-row:hover { background: #f8faff; }.file-name-cell strong { color: #29364d; }.row-menu { border-radius: 6px; }.row-menu:hover { background: #edf1ff; color: #526de5; }
.editor-head { background: #fff; border: 1px solid #e6eaf1; border-radius: 10px; box-shadow: 0 3px 12px #1c315008; gap: 12px; margin-bottom: 13px; padding: 11px 13px; }.editor-title-input { color: #24324a; font: 650 16px "Segoe UI",Arial,sans-serif; }.save-state { border-left: 1px solid #e7ebf2; color: #8792a4; font-size: 10px; padding-left: 12px; }.editor-actions { gap: 7px; }
.toolbar-ribbon { border-color: #e6eaf1; border-radius: 9px; box-shadow: 0 2px 8px #1c315006; gap: 6px; margin-bottom: 12px; padding: 7px; }.ribbon-button { border-radius: 5px; color: #536177; font-size: 11px; }.ribbon-button:hover { background: #edf1ff; color: #405bc1; }
.editor-paper { border-color: #e7ebf2; border-radius: 8px; box-shadow: 0 8px 25px #1c31500b; max-width: 850px; min-height: 660px; padding: 73px 86px; }.editor-paper textarea { color: #38455b; font: 14px/1.85 "Segoe UI",Arial,sans-serif; min-height: 500px; resize: vertical; }
.sheet-wrap { border-color: #e5eaf0; border-radius: 9px; box-shadow: 0 4px 14px #1c315009; }.sheet-bar { background: #fafbfd; }.spreadsheet th { background: #f5f7fa; }.spreadsheet td:focus { box-shadow: inset 0 0 0 2px #279b70; }.spreadsheet td.header-cell { background: #eaf5ef; }.sheet-tabs { background: #fafbfd; }.sheet-note { color: #8792a3; }
.slide-thumb,.add-slide { border-radius: 7px; }.slide-thumb.active { border-color: #526de5; }.slide-stage { background: #eceff5; }.slide-canvas { border-radius: 3px; box-shadow: 0 12px 35px #17264620; }.slide-canvas h1,.slide-canvas h2 { color: #26376a; font-family: "Segoe UI",Arial,sans-serif; }.slide-accent { background: #526de5; border-radius: 3px; }
.mail-layout { border-color: #e6eaf1; border-radius: 10px; box-shadow: 0 4px 16px #1c315008; }.mail-folders { background: #fbfcfe; }.mail-folder { border-radius: 6px; }.mail-folder.active { background: #edf1ff; color: #405bc1; }.email-row:hover,.email-row.active { background: #f7f9ff; }.email-content h2 { color: #25334a; font: 650 15px "Segoe UI",Arial,sans-serif; }.email-body { color: #536177; font-size: 11px; line-height: 1.9; }.email-content>.secondary-button { margin-top: 20px; }
.modal { border: 1px solid #e7ebf2; border-radius: 13px; box-shadow: 0 25px 75px #111d3540; padding: 27px; }.modal-heading h2 { color: #25334a; font: 650 18px "Segoe UI",Arial,sans-serif; }.modal-heading p,.form-field label { color: #7a879b; }.form-field input,.form-field textarea { border-color: #e1e7ef; border-radius: 7px; }.form-field input:focus,.form-field textarea:focus { border-color: #aabaff; box-shadow: 0 0 0 3px #526de515; }
.toast { border-radius: 8px; font-size: 11px; box-shadow: 0 9px 26px #111d3529; }
.mail-demo-note { background: #fff8e9; border: 1px solid #f4e5bc; border-radius: 7px; color: #866a31; font-size: 10px; line-height: 1.6; margin: 12px 0; padding: 9px 11px; }
.empty-state { align-items: center; color: #8a95a7; display: grid; justify-items: center; min-height: 150px; padding: 30px; text-align: center; }.empty-state strong { color: #45536b; font-size: 12px; margin-bottom: 6px; }.empty-state span { font-size: 10px; }
@media(max-width:1050px) { .sidebar { width: 220px; }.main-area { margin-left: 220px; }.page-content { padding-left: 26px; padding-right: 26px; }.topbar { padding-left: 26px; padding-right: 26px; }.hero-art { margin-right: 0; } }
@media(max-width:720px) { .sidebar { background: #14213b; }.brand-name { font-size: 18px; }.topbar { padding: 0 16px; }.page-content { padding: 24px 16px 38px; }.hero-card { padding: 22px; }.hero-art { margin-right: -56px; }.section-heading { margin-top: 23px; }.create-grid { gap: 8px; }.mail-layout { grid-template-columns: 102px minmax(150px,1fr); }.mail-folders { background: #fbfcfe; }.editor-head { flex-wrap: wrap; }.save-state { border-left: 0; padding-left: 0; }.editor-actions { margin-left: auto; }.editor-paper { min-height: 500px; padding: 32px 22px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
.backup-button { min-height: 35px; padding: 0 10px; white-space: nowrap; }
@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .topbar {
    min-width: 0;
  }


  .sidebar { bottom: auto; height: 60px; padding: 0 16px; right: 0; width: auto; }
  .workspace-switch,.nav-label,.main-nav,.sidebar-bottom { display: none; }
  .app-shell > .main-area { margin: 60px 0 0; }
}
.loading-screen {
  align-items: center;
  background: #14213b;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 13px;
  inset: 0;
  justify-content: center;
  position: fixed;
  transition: opacity .24s ease, visibility .24s ease;
  z-index: 20;
}
.loading-screen.is-hidden { opacity: 0; visibility: hidden; }
.loading-mark { margin: 0 0 5px; }
.loading-mark span { background: #8399ff; }
.loading-screen strong { font-size: 19px; letter-spacing: -.35px; }
.loading-caption { color: #b7c2d8; font-size: 12px; }
.loading-indicator { animation: loading-pulse 1s ease-in-out infinite; background: #8399ff; border-radius: 3px; height: 3px; margin-top: 10px; width: 50px; }
@keyframes loading-pulse { 0%,100% { opacity: .35; transform: scaleX(.55); } 50% { opacity: 1; transform: scaleX(1); } }
.standalone-editor .sidebar { display: none; }
.standalone-editor .main-area { margin: 0; }
.standalone-editor .topbar { justify-content: flex-start; }
.standalone-editor .topbar-actions { display: none; }
.standalone-editor .breadcrumbs { gap: 15px; width: 100%; }
.standalone-brand { align-items: center; color: #26334a; display: inline-flex; gap: 10px; }
.standalone-brand .brand-mark { flex: none; }
.standalone-brand .brand-mark span { background: #526de5; }
.standalone-brand strong { font-size: 13px; font-weight: 700; white-space: nowrap; }
.standalone-editor .page-content { max-width: 1480px; }
@media(max-width:720px) {
  .standalone-editor .app-shell > .main-area { margin: 0; }
  .standalone-editor .topbar { height: 58px; padding: 0 16px; }
  .standalone-editor .page-content { padding-top: 20px; }
  .standalone-brand { gap: 8px; }
  .standalone-brand strong { font-size: 11px; }
}
.file-row-actions { align-items: center; display: flex; gap: 2px; justify-content: flex-end; }
.file-row-actions .row-menu { min-width: 28px; }
.file-list-head,.file-list-row { grid-template-columns: minmax(180px,2fr) minmax(80px,.7fr) minmax(70px,.65fr) minmax(110px,1fr) minmax(116px,auto); }
.editor-file-tabs { align-items: stretch; border-bottom: 1px solid #e3e8f0; display: flex; gap: 5px; margin: -12px 0 16px; min-width: 0; overflow-x: auto; padding: 0 2px; scrollbar-width: thin; }
.editor-file-tab { align-items: center; background: #f4f6fa; border: 1px solid #e3e8f0; border-bottom: 0; border-radius: 8px 8px 0 0; display: flex; flex: 0 0 auto; max-width: 260px; min-width: 120px; }
.editor-file-tab.active { background: #fff; border-color: #cfd8ed; color: #34446a; }
.editor-file-tab-link { align-items: center; color: #657188; display: flex; flex: 1; font-size: 11px; gap: 7px; min-width: 0; padding: 9px 5px 9px 10px; text-decoration: none; }
.editor-file-tab-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-file-tab.active .editor-file-tab-link { color: #354778; font-weight: 600; }
.editor-file-tab-close { background: transparent; border: 0; border-radius: 5px; color: #8b95a7; cursor: pointer; flex: 0 0 26px; font-size: 17px; height: 26px; line-height: 1; margin-right: 4px; }
.editor-file-tab-close:hover { background: #e9edf5; color: #34446a; }
.editor-file-tab-home { align-self: center; background: transparent; border: 0; color: #6676b5; cursor: pointer; flex: 0 0 auto; font-size: 10px; margin-left: auto; padding: 8px; white-space: nowrap; }
.editor-file-tab-home:hover { color: #4435ad; text-decoration: underline; }
.document-view-toolbar { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin: 0 auto 16px; max-width: 930px; }
.document-view-toolbar>div { display: flex; gap: 8px; }
.document-view-label { color: #77849a; font-size: 11px; margin-left: auto; }
.document-view-paper { background: #fff; border: 1px solid #e5e9f0; border-radius: 10px; box-shadow: 0 8px 28px #1c31500b; color: #354258; margin: 0 auto; max-width: 930px; min-height: 680px; padding: clamp(34px,7vw,78px) clamp(24px,9vw,96px); }
.document-view-heading { border-bottom: 1px solid #edf0f5; margin-bottom: 30px; padding-bottom: 18px; }
.document-view-heading .eyebrow { font-size: 10px; letter-spacing: 1px; }
.document-view-heading h1 { color: #263650; font: 700 clamp(24px,4vw,34px)/1.25 "Segoe UI",Arial,sans-serif; margin: 0; overflow-wrap: anywhere; }
.document-view-page-header,.document-view-page-footer { color: #7b879a; font-size: 11px; }
.document-view-page-header { border-bottom: 1px solid #edf0f5; margin-bottom: 24px; padding-bottom: 8px; }
.document-view-page-footer { border-top: 1px solid #edf0f5; margin-top: 36px; padding-top: 8px; }
.document-view-body { color: #354258; font: 15px/1.9 "Segoe UI",Arial,sans-serif; overflow-wrap: anywhere; }
.document-view-body h1,.document-view-body h2,.document-view-body h3 { color: #263650; line-height: 1.35; margin: 1.4em 0 .55em; }
.document-view-body p { margin: .65em 0; }
.document-view-body a { color: #435fc5; }
.document-view-body blockquote { border-left: 3px solid #ccd5ed; color: #64728a; margin-left: 0; padding-left: 16px; }
.document-view-body .document-page-break { border-top: 1px dashed #b8c2d5; height: 30px; margin: 20px 0; }
.document-view-mode .calendar-panel { display: none; }
@media(max-width:720px) {
  .document-view-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .document-view-label { margin-left: 0; order: 3; width: 100%; }
  .document-view-toolbar>div { margin-left: auto; }
  .document-view-paper { border-radius: 8px; min-height: 70vh; padding: 28px 22px; }
  .document-view-body { font-size: 14px; }
}
@media print {
  body.document-view-mode { background: #fff; }
  body.document-view-mode .sidebar,
  body.document-view-mode .topbar,
  body.document-view-mode .document-view-toolbar,
  body.document-view-mode #calendar-panel,
  body.document-view-mode #modal-root,
  body.document-view-mode #toast-root { display: none !important; }
  body.document-view-mode .main-area { margin: 0; min-height: 0; }
  body.document-view-mode .page-content { max-width: none; padding: 0; }
  body.document-view-mode .document-view-paper { border: 0; border-radius: 0; box-shadow: none; margin: 0; max-width: none; min-height: 0; padding: 0; }
  body.document-view-mode .document-view-body { color: #000; font-size: 12pt; }
}
.file-view-controls { align-items: center; display: flex; gap: 6px; }
.sort-select-label { align-items: center; color: #7a879b; display: inline-flex; font-size: 10px; gap: 7px; white-space: nowrap; }
.sort-select-label select { background: #fff; border: 1px solid #e3e8f0; border-radius: 7px; color: #536177; font-size: 10px; min-height: 34px; padding: 0 8px; }
.view-toggle { background: #fff; border: 1px solid #e3e8f0; border-radius: 7px; color: #738096; cursor: pointer; height: 34px; width: 34px; }
.view-toggle.active { background: #edf1ff; border-color: #dce4ff; color: #405bc1; }
.file-cards-grid { display: grid; gap: 14px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.file-cards-grid .empty-file-state { grid-column: 1/-1; }
.file-cards-grid .file-card { min-width: 0; }
.file-cards-grid .file-preview { position: relative; }
.card-star { align-items: center; background: #fff; border: 1px solid #e7ebf2; border-radius: 50%; color: #808b9d; cursor: pointer; display: inline-flex; font-size: 17px; height: 32px; justify-content: center; position: absolute; right: 10px; top: 10px; width: 32px; }
.card-star.active { color: #e0a62d; }
.card-actions { border-top: 1px solid #edf0f4; display: flex; gap: 5px; margin-top: 10px; padding-top: 8px; }
.card-actions .row-menu { border: 1px solid #e8ebf1; border-radius: 5px; font-size: 9px; padding: 5px 6px; }
.empty-file-state { color: #8994a6; font-size: 12px; padding: 45px 18px; text-align: center; }
.slide-show-overlay { background: #111a2d; color: #fff; display: flex; flex-direction: column; inset: 0; padding: 16px 24px 20px; position: fixed; z-index: 30; }
.slide-show-toolbar,.slide-show-toolbar>div,.slide-show-controls { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.slide-show-toolbar { min-height: 42px; }
.slide-show-toolbar>div { justify-content: flex-end; }
.slide-show-toolbar strong { font-size: 13px; }
.slide-show-stage { align-items: center; display: flex; flex: 1; justify-content: center; min-height: 0; padding: 18px 0; }
.slide-show-card { align-items: center; aspect-ratio: 16/9; background: #fff; color: #25334a; display: none; flex-direction: column; justify-content: center; max-height: 100%; max-width: min(1100px,100%); overflow: hidden; padding: 8%; position: relative; width: 100%; }
.slide-show-card:before { background: #526de5; content: ""; height: 7px; inset: 0 0 auto; position: absolute; }
.slide-show-card.active { display: flex; }
.slide-show-card small { color: #8994a6; position: absolute; right: 24px; top: 20px; }
.slide-show-card h1 { color: #26376a; font-size: clamp(30px,5vw,62px); text-align: center; }
.slide-show-card p { color: #66748c; font-size: clamp(16px,2.5vw,28px); text-align: center; }
.slide-show-count { color: #c5ccda; font-size: 12px; }
@media print {
  body.printing-slides { background: white; }
  body.printing-slides .app-shell,body.printing-slides #modal-root,body.printing-slides #toast-root { display: none !important; }
  body.printing-slides .slide-show-overlay { background: white; color: #202b40; display: block; inset: auto; padding: 0; position: static; }
  body.printing-slides .slide-show-toolbar,body.printing-slides .slide-show-controls { display: none; }
  body.printing-slides .slide-show-stage { display: block; padding: 0; }
  body.printing-slides .slide-show-card { aspect-ratio: auto; break-after: page; display: flex !important; height: 100vh; max-height: none; max-width: none; width: 100%; }
}
.toolbar-ribbon { align-items: center; display: flex; flex-wrap: wrap; }
.ribbon-select { background: #fff; border: 1px solid #e3e8f0; border-radius: 5px; color: #536177; font-size: 11px; min-height: 30px; padding: 0 7px; }
.document-stats { margin-left: auto; }
.document-body { color: #38455b; font: 14px/1.85 "Segoe UI",Arial,sans-serif; min-height: 500px; outline: none; overflow-wrap: anywhere; }
.document-body h1,.document-body h2,.document-body h3 { line-height: 1.35; }
.document-page-break { border-top: 1px dashed #8b9ac0; height: 30px; margin: 18px 0; position: relative; break-before: page; page-break-before: always; }
.document-page-break:before { background: #fff; color: #71809a; content: "Nová strana"; font: 10px "Segoe UI",Arial,sans-serif; left: 10px; padding: 0 7px; position: absolute; top: -7px; }
.document-page-fields label,.presentation-choice { align-items: center; color: #748096; display: inline-flex; font-size: 10px; gap: 5px; }
.document-page-fields input { border: 1px solid #e2e7ef; border-radius: 5px; color: #35435a; font-size: 10px; min-height: 28px; padding: 3px 7px; width: 135px; }
.page-number-hint { color: #8792a5; font-size: 9px; }
.sheet-data-tools { align-items: end; background: #fff; border: 1px solid #e3e8f0; border-radius: 9px; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 9px 11px; }
.sheet-data-tools label { color: #748096; display: grid; font-size: 9px; gap: 4px; }
.sheet-data-tools input { border: 1px solid #e2e7ef; border-radius: 6px; min-height: 31px; padding: 4px 8px; width: 150px; }
.sheet-data-tools .secondary-button { font-size: 10px; min-height: 31px; padding: 0 9px; }
.sheet-data-tools>span { color: #8792a5; font-size: 9px; }
.spreadsheet td.is-range-selected { background: #e6edff; }
.spreadsheet tbody tr[hidden] { display: none; }
.spreadsheet-chart-wrap { max-width: 100%; overflow-x: auto; }
.spreadsheet-chart-wrap svg { display: block; min-width: 480px; }
.presentation-choice select { background: #fff; border: 1px solid #e3e8f0; border-radius: 6px; color: #536177; min-height: 30px; padding: 0 7px; }
.slide-stage { align-content: start; display: grid; gap: 12px; min-width: 0; }
.speaker-notes { color: #748096; display: grid; font-size: 10px; gap: 6px; margin: 0 auto; max-width: 960px; width: 100%; }
.speaker-notes textarea { border: 1px solid #e3e8f0; border-radius: 8px; color: #35435a; min-height: 68px; padding: 9px 11px; resize: vertical; width: 100%; }
.slide-canvas.theme-midnight,.slide-show-card.theme-midnight { background: #14213b; color: #e1e8f5; }
.slide-canvas.theme-midnight h1,.slide-show-card.theme-midnight h1 { color: #fff; }
.slide-canvas.theme-midnight p,.slide-show-card.theme-midnight p { color: #c8d3e7; }
.theme-midnight .slide-accent,.slide-show-card.theme-midnight:before { background: #91a8ff; }
.slide-canvas.theme-mint,.slide-show-card.theme-mint { background: #eaf7f1; color: #426a60; }
.slide-canvas.theme-mint h1,.slide-show-card.theme-mint h1 { color: #124b3d; }
.slide-canvas.theme-mint p,.slide-show-card.theme-mint p { color: #426a60; }
.theme-mint .slide-accent,.slide-show-card.theme-mint:before { background: #169b75; }
.sheet-bar { flex-wrap: wrap; }
.presentation-tools { align-items: center; background: #fff; border: 1px solid #e6eaf1; border-radius: 9px; display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; padding: 8px; }
.slide-position { color: #748096; font-size: 11px; padding: 0 4px; }
.presentation-layout { min-width: 0; }
@media(max-width:900px) {
  .file-row-actions .row-menu { min-width: 24px; padding: 0 4px; }
  .backup-button { padding: 0 8px; }
}
@media(max-width:600px) {
  .document-stats { margin-left: 0; width: 100%; }
  .editor-paper { padding: 32px 22px; }
  .presentation-tools .secondary-button { min-height: 32px; padding: 0 8px; }
  .topbar-actions { gap: 5px; }
  .search-box { width: min(145px,36vw); }
  .search-box kbd { display: none; }
  .backup-button { display: inline-flex; font-size: 0; min-width: 35px; }
  .backup-button[data-action="export-backup"]:after { content: "⬇"; font-size: 14px; }
  .backup-button[data-action="import-backup"]:after { content: "⬆"; font-size: 14px; }
  .file-list-head,.file-list-row { grid-template-columns: minmax(0,1fr) 116px; padding-left: 10px; padding-right: 10px; }
  .file-list-head>span:nth-child(2),.file-list-head>span:nth-child(3),.file-list-head>span:nth-child(4),.file-list-row>.list-meta { display: none; }
  .file-cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card-actions { flex-wrap: wrap; }
  .card-actions .row-menu { flex: 1; }
  .page-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .filter-row { flex-wrap: wrap; }
  .file-view-controls { align-self: flex-end; }
}
@media(max-width:720px) {
  body:not(.standalone-editor) .main-area { margin: 60px 0 0; width: auto; }
  body:not(.standalone-editor) .topbar { align-items: flex-start; height: auto; min-height: 55px; padding: 8px 12px; }
  body:not(.standalone-editor) .breadcrumbs { display: none; }
  body:not(.standalone-editor) .topbar-actions { flex-wrap: wrap; gap: 6px; justify-content: flex-start; min-width: 0; width: 100%; }
  body:not(.standalone-editor) .topbar-actions .search-box { flex: 1 1 100%; max-width: 100%; width: 100%; }
  body:not(.standalone-editor) .topbar-actions .backup-button { flex: 0 0 36px; }
  body:not(.standalone-editor) .hero-art { display: none; }
  body:not(.standalone-editor) .hero-copy { max-width: 100%; }
  .editor-actions { flex-wrap: wrap; }
  .editor-actions .secondary-button[data-action="import-document"],.editor-actions .secondary-button[data-action^="export-document"],.editor-actions .secondary-button[data-action="import-xlsx"],.editor-actions .secondary-button[data-action="export-xlsx"],.editor-actions .secondary-button[data-action="import-pptx"],.editor-actions .secondary-button[data-action="export-pptx"] { display: inline-flex; font-size: 10px; min-height: 32px; padding: 0 8px; }
}
.filter-row,.file-view-controls { flex-wrap: wrap; }
.file-select { align-items: center; background: #fff; border: 1px solid #e7ebf2; border-radius: 6px; display: inline-flex; height: 30px; justify-content: center; left: 10px; position: absolute; top: 10px; width: 30px; z-index: 1; }
.file-select input,.file-name-cell input[type=checkbox] { accent-color: var(--purple); cursor: pointer; height: 16px; width: 16px; }
.file-card.is-selected,.file-list-row.is-selected { background: #f4f3ff; outline: 2px solid #cfc8ff; outline-offset: -2px; }
.bulk-actions { align-items: center; background: #f2f1ff; border: 1px solid #e2ddff; border-radius: 9px; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 10px 12px; }
.bulk-actions strong { color: #5546bb; font-size: 12px; margin-right: auto; }
.danger-button { color: #a63838; }
.file-view-controls .secondary-button { min-height: 34px; }
.sheet-tabs { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-tab { background: #f7f8fc; border: 1px solid #e7ebf2; border-radius: 6px 6px 0 0; color: #66748c; cursor: pointer; font-size: 11px; padding: 8px 11px; }
.sheet-tab.active { background: #fff; border-bottom-color: #fff; color: #5546bb; font-weight: 600; }
.sheet-tab.add-sheet-tab { color: #5546bb; font-size: 15px; padding: 5px 11px; }
.spreadsheet td.cell-bold { font-weight: 700; }
.spreadsheet .header-cell { font-weight: 600; }
@media(max-width:600px) {
  .bulk-actions { align-items: stretch; }
  .bulk-actions strong { flex-basis: 100%; }
  .bulk-actions .secondary-button,.bulk-actions .text-button { flex: 1; }
  .file-select { height: 28px; width: 28px; }
}
.app-shell > .main-area { margin-right: 302px; }
.main-area { transition: margin-right .2s ease; }
.calendar-toggle { min-height: 34px; padding: 0 10px; white-space: nowrap; }
.calendar-heading-actions { align-items: center; display: flex; gap: 7px; }
.calendar-panel {
  background: #fff;
  border-left: 1px solid var(--line);
  bottom: 0;
  overflow-y: auto;
  padding: 25px 19px 20px;
  position: fixed;
  transition: transform .2s ease, visibility .2s ease;
  right: 0;
  top: 68px;
  width: 284px;
  z-index: 2;
}
.calendar-hidden #calendar-panel { transform: translateX(100%); visibility: hidden; }
.calendar-hidden .app-shell > .main-area { margin-right: 0; }
.calendar-close {
  align-items: center;
  background: #fff;
  border: 1px solid #e8ebf1;
  border-radius: 8px;
  color: #69758a;
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.calendar-close:hover { background: #f7f8fc; color: #405bc1; }
.calendar-heading,.calendar-month-nav,.calendar-agenda-heading { align-items: center; display: flex; justify-content: space-between; }
.calendar-heading .eyebrow { font-size: 9px; margin-bottom: 4px; }
.calendar-heading h2 { color: #25324a; font-size: 18px; margin: 0; }
.calendar-add,.calendar-month-nav button {
  align-items: center;
  background: #f2f1ff;
  border: 1px solid #e6e2ff;
  border-radius: 8px;
  color: #5546bb;
  cursor: pointer;
  display: inline-flex;
  font-size: 19px;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.calendar-month-nav { margin-top: 21px; }
.calendar-month-nav strong { color: #344158; font-size: 13px; text-transform: capitalize; }
.calendar-month-nav button { background: #fff; border-color: #e8ebf1; color: #69758a; font-size: 22px; height: 29px; width: 29px; }
.calendar-today {
  background: transparent;
  border: 0;
  color: #526de5;
  cursor: pointer;
  display: block;
  font-size: 10px;
  margin: 8px 0 9px auto;
  padding: 3px 0;
}
.calendar-grid { border-bottom: 1px solid #edf0f4; padding-bottom: 16px; }
.calendar-weekdays,.calendar-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-weekdays { color: #929bad; font-size: 9px; margin-bottom: 5px; text-align: center; }
.calendar-weekdays span { padding: 5px 0; }
.calendar-day {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #4a566b;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  gap: 2px;
  height: 33px;
  justify-content: center;
  justify-self: center;
  padding: 0;
  position: relative;
  width: 33px;
}
.calendar-day:hover { background: #f3f4fb; }
.calendar-day.outside-month { color: #c4c9d3; }
.calendar-day.today { box-shadow: inset 0 0 0 1px #8295e9; color: #405bc1; font-weight: 700; }
.calendar-day.selected { background: #526de5; box-shadow: none; color: #fff; font-weight: 700; }
.calendar-day i { background: #e49b42; border-radius: 50%; height: 4px; width: 4px; }
.calendar-day.selected i { background: #fff; }
.calendar-agenda { padding-top: 17px; }
.calendar-agenda-heading { gap: 8px; margin-bottom: 11px; }
.calendar-agenda-heading h3 { color: #344158; font-size: 12px; margin: 0; text-transform: capitalize; }
.calendar-agenda-heading>span { align-items: center; background: #f1f3f8; border-radius: 10px; color: #77839a; display: inline-flex; font-size: 9px; height: 20px; justify-content: center; min-width: 20px; padding: 0 5px; }
.calendar-agenda ul { list-style: none; margin: 0; padding: 0; }
.calendar-agenda li { border-left: 2px solid #7185e5; display: flex; gap: 9px; margin: 0 0 9px; padding: 5px 0 5px 9px; }
.calendar-item-time { color: #7b879b; flex: 0 0 42px; font-size: 9px; padding-top: 2px; }
.calendar-item-copy { min-width: 0; }
.calendar-item-copy strong { color: #3e4b62; display: block; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.calendar-item-copy p { color: #7f899b; font-size: 9px; line-height: 1.5; margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.calendar-item-actions { display: flex; gap: 10px; margin-top: 5px; }
.calendar-item-actions button { background: none; border: 0; color: #6679d1; cursor: pointer; font-size: 9px; padding: 0; }
.calendar-item-actions button:last-child { color: #b05c63; }
.calendar-empty { color: #9099a8; font-size: 10px; line-height: 1.6; margin: 0 0 11px; }
.calendar-add-entry { background: #fff; border: 1px dashed #d9deeb; border-radius: 7px; color: #566fc9; cursor: pointer; font-size: 10px; min-height: 34px; width: 100%; }
.calendar-add-entry:hover { background: #f8f9ff; border-color: #aebbf0; }
.calendar-local-note { background: #f7f8fc; border-radius: 7px; color: #8993a4; font-size: 9px; line-height: 1.55; margin: 15px 0 0; padding: 9px 10px; }
.computer-transfer { border-top: 1px solid #edf0f4; margin-top: 17px; padding-top: 15px; }
.computer-transfer .eyebrow { font-size: 8px; margin-bottom: 4px; }
.computer-transfer h3 { color: #344158; font-size: 12px; margin: 0 0 6px; }
.computer-transfer>p:not(.eyebrow) { color: #7f899b; font-size: 9px; line-height: 1.55; margin: 0 0 10px; }
.computer-transfer-actions { display: grid; gap: 7px; }
.computer-transfer-actions .secondary-button { font-size: 10px; justify-content: flex-start; min-height: 33px; padding: 0 9px; }
.computer-transfer>small { color: #959dac; display: block; font-size: 8px; line-height: 1.55; margin-top: 8px; }
@media(max-width:1280px) {
  .app-shell > .main-area { margin-right: min(360px, 42vw); }
  .calendar-panel { bottom: 0; max-height: none; overflow-y: auto; position: fixed; top: 68px; width: min(360px, 42vw); z-index: 2; box-shadow: -12px 0 28px #17264618; }
  .calendar-hidden .app-shell > .main-area { margin-right: 0; }
}
@media(max-width:720px) {
  .app-shell > .main-area { margin-right: 0; }
  .calendar-panel { bottom: 0; left: auto; margin: 0; padding: 20px 17px; top: 60px; width: min(360px, calc(100vw - 18px)); }
  .calendar-day { height: 36px; width: 36px; }
  .calendar-toggle { font-size: 10px; min-height: 32px; padding: 0 7px; }
}
.button-icon {
  background: #f0edff;
  border-radius: 6px;
  color: var(--purple);
  flex: 0 0 22px;
  height: 22px;
  padding: 3px;
  width: 22px;
}
.primary-button .button-icon {
  background: #ffffff24;
  color: #fff;
}
.secondary-button .button-icon {
  background: #f2f0ff;
}
.hero-card .primary-button .button-icon {
  background: #f0edff;
  color: var(--purple);
}
.icon-button, .help-button, .back-button, .calendar-close, .calendar-add, .calendar-month-nav button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}
.icon-button .button-icon, .help-button .button-icon, .back-button .button-icon,
.calendar-close .button-icon, .calendar-add .button-icon, .calendar-month-nav .button-icon {
  background: transparent;
  color: currentColor;
  flex: 0 0 19px;
  height: 19px;
  padding: 0;
  width: 19px;
}
.help-button .button-icon { flex-basis: 15px; height: 15px; width: 15px; }
.back-button .button-icon { flex-basis: 18px; height: 18px; width: 18px; }
.calendar-add-entry .button-icon, .calendar-today .button-icon {
  background: transparent;
  color: currentColor;
  flex: 0 0 16px;
  height: 16px;
  padding: 0;
  width: 16px;
}
.calendar-add-entry { align-items: center; display: flex; gap: 7px; justify-content: center; padding: 0 9px; }
.calendar-notifications { margin-top: 10px; width: 100%; }
.nav-svg { display: block; height: 18px; width: 18px; }
.primary-button, .secondary-button, .icon-button, .help-button, .back-button,
.calendar-add, .calendar-close, .calendar-month-nav button, .calendar-add-entry {
  transition: box-shadow .16s ease, border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}
button:focus-visible {
  outline: 3px solid #a99cff;
  outline-offset: 2px;
}
.primary-button:active, .secondary-button:active, .calendar-add-entry:active { transform: translateY(1px); }
.secondary-button:hover .button-icon { background: #e9e5ff; }
.primary-button:hover .button-icon { background: #ffffff35; }
@media(min-width:721px) and (max-width:1280px) {
  .topbar { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .breadcrumbs { flex: 0 0 auto; gap: 6px; font-size: 10px; }
  .topbar-actions { flex: 1 1 auto; gap: 6px; min-width: 0; }
  .topbar-actions .search-box { flex: 0 1 auto; width: clamp(128px,15vw,180px); }
  .topbar-actions .secondary-button { font-size: 10px; gap: 5px; min-height: 34px; padding: 0 7px; }
  .topbar-actions .button-icon { flex-basis: 19px; height: 19px; padding: 2px; width: 19px; }
}
@media(max-width:720px) {
  .topbar-actions { gap: 7px; }
  .topbar-actions .secondary-button { gap: 5px; padding: 0 8px; }
  .topbar-actions .button-icon { flex-basis: 19px; height: 19px; padding: 2px; width: 19px; }
  .template-modal { height: min(90vh,900px); max-height: min(90vh,900px); padding: 20px; }
  .template-tabs { gap: 6px; }
  .template-tab { flex-direction: column; gap: 5px; justify-content: center; min-height: 70px; padding: 8px 4px; text-align: center; }
  .template-tab .button-icon { flex-basis: 21px; height: 21px; width: 21px; }
  .template-tab span { gap: 2px; }
  .template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .template-card { min-height: 132px; padding: 11px; }
}
@media(max-width:520px) {
  .template-grid { grid-template-columns: minmax(0,1fr); }
}
.editor-head { align-items: flex-start; flex-wrap: wrap; }
.editor-title-input { min-width: 180px; }
.editor-actions, .editor-action-group { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; }
.editor-actions { flex: 1 1 100%; margin-left: 50px; }
.editor-action-group { background: #f7f8fc; border: 1px solid #edf0f5; border-radius: 8px; padding: 4px; }
.editor-action-group .secondary-button { min-height: 32px; padding: 0 10px; }
.editor-action-divider, .sheet-tool-divider { background: #e7ebf2; height: 24px; width: 1px; }
.toolbar-ribbon { align-items: stretch; gap: 8px; }
.ribbon-group { display: grid; gap: 5px; min-width: 0; }
.ribbon-group-label, .sheet-tool-label { color: #7e8ba0; font-size: 9px; font-weight: 700; letter-spacing: .4px; }
.ribbon-group-tools, .sheet-tool-row { align-items: center; display: flex; flex-wrap: wrap; gap: 5px; }
.ribbon-group-tools .button-icon { flex-basis: 15px; height: 15px; padding: 0; width: 15px; }
.ribbon-group-tools .ribbon-button { align-items: center; display: inline-flex; gap: 4px; justify-content: center; min-height: 30px; }
.ribbon-group-tools .ribbon-button[data-format] { min-width: 30px; }
.document-find { align-items: center; background: #fff; border: 1px solid #e2e7ef; border-radius: 6px; display: inline-flex; gap: 3px; padding: 2px; }
.document-find input { border: 0; color: #35435a; font: inherit; font-size: 10px; min-width: 110px; outline: none; padding: 5px 6px; }
.document-find .ribbon-button { min-height: 26px; padding: 4px 7px; }
.document-body a { color: #405bd3; text-decoration: underline; text-underline-offset: 2px; }
.sheet-toolbar { align-items: stretch; background: #fff; border: 1px solid #e3e8f0; border-radius: 10px; box-shadow: 0 3px 12px #1c315008; display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 12px; padding: 11px 13px; }
.sheet-tool-group { display: grid; gap: 7px; min-width: 0; }
.sheet-tool-row { gap: 6px; }
.sheet-toolbar .secondary-button { font-size: 10px; min-height: 32px; padding: 0 9px; white-space: nowrap; }
.sheet-toolbar .button-icon { background: #f2f4f9; color: #526de5; flex-basis: 18px; height: 18px; padding: 2px; width: 18px; }
.sheet-reference, .sheet-formula { display: grid; gap: 4px; }
.sheet-reference>span, .sheet-formula>span:first-child { color: #7e8ba0; font-size: 9px; font-weight: 600; }
.sheet-reference { grid-template-columns: auto auto; }
.sheet-reference>span { grid-column: 1 / -1; }
.sheet-reference input { border: 1px solid #e2e7ef; border-radius: 6px; color: #35435a; font: 600 11px "Segoe UI",Arial,sans-serif; min-height: 32px; text-align: center; text-transform: uppercase; width: 68px; }
.sheet-reference .secondary-button { min-height: 32px; }
.sheet-formula { flex: 1 1 230px; min-width: 200px; }
.formula-entry { align-items: center; background: #fff; border: 1px solid #e2e7ef; border-radius: 6px; display: flex; min-height: 32px; padding: 0 8px; }
.formula-entry .formula-fx { color: #16896d; font-size: 12px; font-weight: 700; margin-right: 8px; }
.formula-entry .formula-input { border: 0; font: 11px "Segoe UI",Arial,sans-serif; min-width: 0; outline: none; padding: 6px 0; width: 100%; }
.spreadsheet td.is-active-cell { box-shadow: inset 0 0 0 2px #526de5; position: relative; }
.spreadsheet td.header-cell.is-active-cell { background: #dce6ff; }
.sheet-tabs .button-icon { flex-basis: 13px; height: 13px; padding: 0; width: 13px; }
@media(max-width:720px) {
  .editor-head { align-items: center; gap: 8px; }
  .editor-title-input { flex: 1 1 150px; max-width: none; }
  .editor-head .save-state { flex: 0 0 auto; }
  .editor-actions { flex: 1 1 100%; margin-left: 0; }
  .editor-actions .secondary-button[data-action="import-document"], .editor-actions .secondary-button[data-action^="export-document"],
  .editor-actions .secondary-button[data-action="import-xlsx"], .editor-actions .secondary-button[data-action="export-xlsx"],
  .editor-actions .secondary-button[data-action="import-pptx"], .editor-actions .secondary-button[data-action="export-pptx"] {
    align-items: center; display: inline-flex; font-size: 10px; gap: 4px; min-height: 31px; padding: 0 7px;
  }
  .editor-action-group { flex: 1 1 auto; gap: 3px; }
  .editor-action-group .secondary-button { flex: 1 1 auto; font-size: 9px; min-width: 0; padding: 0 5px; }
  .editor-action-divider { display: none; }
  .toolbar-ribbon { align-items: flex-start; }
  .ribbon-group { flex: 1 1 auto; }
  .ribbon-divider { display: none; }
  .document-find { flex: 1 1 100%; }
  .document-find input { flex: 1; }
  .document-stats { flex: 0 0 100%; }
  .sheet-toolbar { gap: 9px; padding: 9px; }
  .sheet-tool-group { flex: 1 1 100%; }
  .sheet-tool-divider { display: none; }
  .sheet-reference { flex: 0 0 auto; }
  .sheet-formula { flex: 1 1 160px; }
  .sheet-tool-row>.secondary-button { flex: 1 1 auto; }
}

.account-entry { overflow-y: auto; padding: 40px 24px; }
.account-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); width: min(1080px,100%); margin: auto; border: 1px solid #ffffff24; border-radius: 28px; overflow: hidden; box-shadow: 0 28px 90px #00000040; }
.account-welcome { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 42px; background: linear-gradient(145deg,#233768e8,#182842ed); color: white; }
.account-brand { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 750; letter-spacing: -1px; }
.account-brand strong { color: #afaaff; font-weight: 500; margin-left: 5px; }
.account-brand-logo { flex: none; width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 5px 18px #00000026; }
.account-welcome-copy { padding-top: 46px; }
.account-eyebrow { color: #c4c5ff; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.account-welcome h2 { font: 750 clamp(26px,3vw,38px)/1.18 "Segoe UI",sans-serif; letter-spacing: -1.2px; margin: 16px 0 18px; }
.account-welcome-copy > p:not(.account-eyebrow) { color: #c8d3e8; font-size: 14px; line-height: 1.8; max-width: 340px; }
.account-tool-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 0; }
.account-tool-list > span { display: flex; align-items: center; gap: 8px; border: 1px solid #ffffff24; border-radius: 10px; padding: 7px 11px 7px 7px; font-size: 11px; color: #e9eefb; background: #ffffff08; }
.account-tool-list b { display: grid; place-items: center; height: 26px; width: 26px; border-radius: 6px; font-size: 13px; }
.account-tool-word { background: #3465ba; }.account-tool-excel { background: #228765; }.account-tool-slides { background: #c06842; }
.account-document-art { position: relative; margin: 30px 0 25px; padding: 0 45px 12px 12px; max-width: 360px; }
.account-art-sheet { background: linear-gradient(160deg,#fff,#eef1ff); border: 1px solid #ffffff5c; border-radius: 13px; padding: 22px; transform: rotate(-4deg); box-shadow: 0 18px 40px #00000024; }
.account-art-sheet > span { color: #757e9e; font-size: 8px; letter-spacing: 1.6px; }
.account-art-sheet > strong { display: block; color: #293959; font-size: 22px; margin: 13px 0 16px; line-height: 1.25; letter-spacing: -.6px; }
.account-art-sheet > i { display: block; height: 5px; background: #dce2f1; border-radius: 5px; margin: 6px 0; width: 90%; }
.account-art-sheet > i:nth-of-type(2) { width: 72%; }.account-art-sheet > i:nth-of-type(3) { width: 80%; }
.account-art-chart { display: flex; align-items: end; gap: 10px; height: 68px; margin-top: 16px; padding: 0 12px; border-bottom: 1px solid #dce2f1; }
.account-art-chart b { flex: 1; height: 36%; background: #9d96ee; border-radius: 4px 4px 0 0; }
.account-art-chart b:nth-child(2) { height: 56%; }.account-art-chart b:nth-child(3) { height: 48%; }.account-art-chart b:nth-child(4) { height: 77%; background: #7d74dd; }.account-art-chart b:nth-child(5) { height: 96%; background: #5c56b9; }
.account-art-note { position: absolute; bottom: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 13px; background: #dff8ee; color: #23664f; box-shadow: 0 10px 30px #00000022; font-size: 11px; line-height: 1.6; transform: rotate(3deg); }
.account-art-note .button-icon { width: 23px; height: 23px; }
.account-welcome-footer { display: flex; align-items: center; gap: 8px; color: #b7c7e1; font-size: 10px; margin: 12px 0 0; line-height: 1.6; }
.windows-download { margin-top: 22px; padding: 20px; border: 1px solid #ffffff30; border-radius: 18px; background: linear-gradient(130deg,#ffffff0e,#ffffff05); }
.windows-download-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.windows-download-heading > div { flex: 1; min-width: 140px; }
.windows-download-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #7bbcf01c; color: #9bd7ff; flex-shrink: 0; }
.windows-download-icon svg { width: 23px; height: 23px; }
.windows-download-heading h3 { margin: 0; font-size: 14px; line-height: 1.5; color: #fff; }
.windows-download-heading p { margin: 3px 0 0; font-size: 11px; color: #c8d3e8; }
.windows-download-badge { border: 1px solid #8ae0cb40; border-radius: 20px; padding: 4px 9px; color: #a4f0dc; background: #72dab514; font-size: 10px; white-space: nowrap; }
.windows-download-description { margin: 14px 0; color: #c8d3e8; font-size: 12px; line-height: 1.7; }
.windows-download-button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 1px solid #bdebd7; border-radius: 12px; background: linear-gradient(110deg,#b5f2e1,#ddf7ed); color: #123d37; text-decoration: none; box-shadow: 0 6px 18px #00000020; transition: background .15s, box-shadow .15s; }
.windows-download-button:hover { background: #e2fff4; box-shadow: 0 8px 22px #00000030; }
.windows-download-button:focus-visible, .windows-download-help a:focus-visible, .windows-download-help summary:focus-visible { outline: 3px solid #b1d7ff; outline-offset: 4px; }
.windows-download-button > svg { width: 22px; height: 22px; flex-shrink: 0; }
.windows-download-button > span:not(.windows-download-arrow) { flex: 1; font-size: 14px; font-weight: 700; line-height: 1.5; }
.windows-download-button small { display: block; font-size: 10px; font-weight: 500; color: #2e5b52; }
.windows-download-arrow { font-size: 24px; }
.windows-download-meta { margin: 11px 0 0; color: #bacce4; font-size: 10px; line-height: 1.7; }
.windows-download-help { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ffffff18; color: #c8d3e8; font-size: 11px; line-height: 1.8; }
.windows-download-help summary { cursor: pointer; color: #e0eaf8; }
.windows-download-help p { margin: 10px 0; }
.windows-download-help a { color: #a6efda; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 759px) {
  .windows-download { margin-top: 4px; padding: 16px; }
  .windows-download-heading { gap: 8px; }
  .windows-download-heading > div { min-width: 110px; }
  .windows-download-heading h3 { font-size: 13px; }
  .windows-download-badge { margin-left: 48px; }
  .windows-download-button { padding: 12px; gap: 9px; }
  .windows-download-button > span:not(.windows-download-arrow) { font-size: 13px; }
}
#modal-root .account-layout .account-modal { max-width: none; max-height: none; width: 100%; border: 0; border-radius: 0; padding: 46px 44px 32px; box-shadow: none; overflow: visible; margin: 0; align-self: stretch; }
.account-modal .modal-heading { margin-bottom: 12px; }
.account-form-eyebrow { display: block; color: #6661b4; font-size: 9px; font-weight: 750; letter-spacing: 1.7px; margin-bottom: 12px; }
.account-modal .modal-heading h1, .account-modal .modal-heading h2 { color: #202f48; font: 750 30px/1.2 "Segoe UI",sans-serif; letter-spacing: -.9px; margin: 0 0 8px; }
.account-modal .modal-heading p { font-size: 13px; color: #67748b; line-height: 1.6; }
.account-intro { color: #67748b; font-size: 12px; line-height: 1.7; margin: 8px 0 0; }
.account-modal .form-field { margin: 18px 0; gap: 8px; }
.account-modal .form-field label { font-size: 12px; color: #35445c; }
.account-modal .form-field small { color: #67768d; font-size: 11px; line-height: 1.6; }
.account-input { position: relative; display: flex; align-items: center; }
.account-input > .button-icon { position: absolute; left: 14px; color: #8995ad; pointer-events: none; height: 18px; width: 18px; }
.account-modal .account-input input { min-width: 0; width: 100%; min-height: 52px; border-radius: 10px; padding: 12px 50px 12px 42px; border-color: #dce2ed; font-size: 14px; background: #fbfcff; transition: border-color .15s,box-shadow .15s; }
.account-input input::placeholder { color: #8b96aa; font-size: 12px; }
.account-modal .account-input input:focus { border-color: #7064e5; box-shadow: 0 0 0 3px #7064e51a; background: white; }
.account-modal .account-input input[aria-invalid="true"] { border-color: #b83e52; }
.account-password-toggle { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 7px; color: #66748e; cursor: pointer; }
.account-password-toggle:hover { background: #eef0fb; color: #5047bb; }
.account-password-toggle .button-icon { height: 19px; width: 19px; }
.account-mode-button:focus-visible, .account-password-toggle:focus-visible, .account-modal summary:focus-visible, .account-modal button:focus-visible { outline: 3px solid #7972df; outline-offset: 3px; }
.account-modal .form-field .account-caps-lock { color: #966011; }
.account-password-checks { list-style: none; padding: 0; margin: -4px 0 16px; display: grid; gap: 7px; font-size: 10px; color: #6d7890; }
.account-password-checks li::before { content: "○"; display: inline-block; width: 20px; font-weight: 700; }
.account-password-checks li.is-met { color: #247054; }.account-password-checks li.is-met::before { content: "✓"; }
.account-registration-note { background: #f4f5fc; border: 1px solid #e8eafa; border-radius: 9px; padding: 12px 14px; font-size: 10px; line-height: 1.7; }
.account-help { font-size: 11px; color: #655cb7; margin: 8px 0 16px; }
.account-help summary { cursor: pointer; width: fit-content; font-weight: 600; }
.account-help p { background: #f5f6fb; border-radius: 8px; padding: 12px; color: #617087; line-height: 1.7; }
.account-modal .form-error { font-size: 12px; line-height: 1.6; min-height: 0; margin: 0; }
.account-modal .form-error:not(:empty) { border: 1px solid #f1cbd2; background: #fff3f5; border-radius: 9px; padding: 11px 13px; margin: 12px 0; }
.account-modal .modal-footer { gap: 8px; margin-top: 20px; }
.account-modal .account-submit { display: flex; align-items: center; justify-content: center; gap: 12px; flex: 1; min-height: 50px; border-radius: 10px; background: linear-gradient(110deg,#6658d7,#515dcc); box-shadow: 0 5px 14px #5852cf26; font-size: 13px; font-weight: 650; }
.account-modal .account-submit:hover:not(:disabled) { background: linear-gradient(110deg,#594bc8,#4250be); }
.account-modal[aria-busy="true"] .account-submit .button-icon { animation: loading-pulse 1s ease-in-out infinite; }
.account-session-note { text-align: center; color: #78859a; font-size: 10px; line-height: 1.8; margin: 20px 0 0; }
.account-session-note .button-icon { height: 12px; width: 12px; vertical-align: -2px; margin-right: 4px; }
@media(max-width:850px) {
  .account-welcome { padding: 30px; }
  #modal-root .account-layout .account-modal { padding: 36px 28px 28px; }
  .account-welcome h2 { font-size: 29px; }
}
@media(max-width:759px) {
  .account-entry { padding: 20px 16px; }
  .account-layout { max-width: 480px; grid-template-columns: minmax(0,1fr); border-radius: 20px; }
  .account-welcome { padding: 24px; gap: 12px; }
  .account-brand { font-size: 24px; }
  .account-brand-logo { width: 44px; height: 44px; border-radius: 10px; }
  .account-welcome-copy { padding: 0; }
  .account-welcome h2 { font-size: 24px; margin: 10px 0 0; }
  .account-welcome h2 br { display: none; }
  .account-welcome-copy > p:not(.account-eyebrow), .account-document-art, .account-welcome-footer { display: none; }
  .account-eyebrow { font-size: 8px; margin: 4px 0; letter-spacing: 1.5px; }
  .account-tool-list { margin-top: 16px; gap: 6px; }
  .account-tool-list > span { padding: 5px 8px 5px 5px; font-size: 10px; gap: 6px; }
  .account-tool-list b { height: 22px; width: 22px; font-size: 11px; }
  #modal-root .account-layout .account-modal { padding: 26px 24px 24px; }
  .account-modal .modal-heading h1, .account-modal .modal-heading h2 { font-size: 27px; }
  .account-modal .account-input input { font-size: 16px; }
}
@media(prefers-reduced-motion:reduce) {
  .account-modal[aria-busy="true"] .account-submit .button-icon { animation: none; }
  .account-modal .account-input input { transition: none; }
}
