.doc-lib-demo {
  background: #fff;
  color: #102a56;
}
.office-home {
  flex: 1;
  overflow: auto;
  padding: 16px 16px 108px;
  display: grid;
  align-content: start;
  gap: 16px;
}
.office-banner {
  min-height: 112px;
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
  text-align: left;
  background: linear-gradient(59deg, var(--bg1), var(--bg2));
  color: var(--title);
  box-shadow: inset 0 -1px 2px var(--go2), 0 8px 18px rgba(16, 42, 86, .08);
  animation: lib-card-in 360ms var(--ix-spring) both;
  animation-delay: var(--delay);
}
.office-banner:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(116deg, rgba(255,255,255,.22) 0 20px, transparent 20px 58px, rgba(255,255,255,.18) 58px 78px, transparent 78px);
}
.office-banner img {
  position: absolute;
  right: 8px;
  bottom: 4px;
  width: 92px;
  height: 92px;
  object-fit: contain;
  animation: lib-icon-float 1.5s var(--ix-ease) infinite alternate;
}
.office-banner b, .office-banner small, .office-banner em {
  position: relative;
  z-index: 1;
  display: block;
}
.office-banner b {
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}
.office-banner small {
  max-width: 66%;
  margin: 4px 0 8px;
  color: var(--desc);
  font-size: 10px;
  line-height: 12px;
}
.office-banner em {
  width: max-content;
  padding: 4px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--go1), var(--go2));
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}
.lib-toolbar {
  grid-template-columns: 42px minmax(0, 1fr) 48px;
}
.lib-search {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f2f4f7;
  color: #788697;
}
.lib-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #102a56;
  font: inherit;
}
.file-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #f2f4f7;
  background: #fff;
}
.file-tabs button {
  min-height: 48px;
  border: 0;
  background: transparent;
  color: #788697;
  font: inherit;
  font-weight: 700;
}
.file-tabs button.on {
  color: #1570ef;
  box-shadow: inset 0 -2px 0 currentColor;
}
.library-list {
  flex: 1;
  overflow: auto;
  padding-bottom: 76px;
  background: #fff;
}
.library-row {
  width: 100%;
  min-height: 61px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #f6f7f9;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: #fff;
  color: #102a56;
  text-align: left;
  font: inherit;
}
.library-row img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.library-row b {
  display: block;
  overflow: hidden;
  font-size: 16px;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-row small {
  display: block;
  margin-top: 4px;
  color: #788697;
  font-size: 14px;
}
.banner-ad {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  min-height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eff8ff;
  color: #1570ef;
  font-weight: 800;
}
.library-empty {
  min-height: 360px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #788697;
  text-align: center;
}
.library-empty svg {
  width: 72px;
  height: 72px;
  stroke: #b2ddff;
}
.library-empty b {
  color: #102a56;
  font-size: 22px;
}
@keyframes lib-card-in {
  from { opacity: 0; transform: translateX(-28px) scale(.96); }
}
@keyframes lib-icon-float {
  to { transform: translateY(6px) rotate(2deg); }
}

.doc-source-screen {
  background: #eff8ff;
  color: #08245c;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.doc-source-screen .ix-status {
  background: #fff;
}

.doc-source-toolbar {
  height: 57px;
  padding: 0 10px 0 34px;
  display: grid;
  align-items: start;
  background: #fff;
}

.doc-source-toolbar.simple {
  grid-template-columns: 40px minmax(0, 1fr);
}

.doc-source-toolbar.select {
  grid-template-columns: 40px minmax(0, 1fr) 40px;
}

.doc-source-toolbar button {
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 4px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: inherit;
  cursor: pointer;
}

.doc-source-toolbar svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #2878f0;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doc-source-toolbar [data-act="back"] svg {
  stroke: #263445;
}

.doc-source-toolbar h1 {
  min-width: 0;
  margin: 2px 0 0 0;
  color: #08245c;
  font-size: 20px;
  line-height: 28px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-office-home {
  background: #eff8ff;
  padding: 16px 16px 96px;
  gap: 16px;
}

.source-office-banner {
  min-height: 112px;
  border-radius: 16px;
  padding: 12px 16px;
  background: linear-gradient(59deg, var(--bg1), var(--bg2));
  box-shadow: inset 0 -1px 2px color-mix(in srgb, var(--shadow), transparent 40%);
}

.source-office-banner::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 58%, rgba(255, 255, 255, .42), transparent 22%),
    linear-gradient(116deg, rgba(255,255,255,.18) 0 24px, transparent 24px 58px, rgba(255,255,255,.15) 58px 78px, transparent 78px);
}

.source-office-banner .office-backdrop {
  display: none;
}

.source-office-banner .office-copy {
  position: relative;
  z-index: 2;
  display: block;
}

.source-office-banner .office-copy b {
  color: var(--title);
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}

.source-office-banner .office-copy small {
  max-width: 70%;
  margin: 4px 0 8px;
  color: var(--desc);
  font-size: 10px;
  line-height: 12px;
}

.source-office-banner .office-copy em {
  min-width: 58px;
  padding: 3px 18px;
  border-radius: 999px;
  text-align: center;
  background: linear-gradient(90deg, var(--go1), var(--go2));
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  font-weight: 800;
  font-style: normal;
}

.source-office-banner .office-icon {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 4px;
  width: 70px;
  height: 70px;
  object-fit: contain;
  animation: lib-icon-float 1.5s var(--ix-ease) infinite alternate;
}

.doc-native-ad {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 56px;
}

.doc-permission-state {
  flex: 1;
  padding: 0 20px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.doc-permission-state img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.doc-permission-state h2 {
  margin: 24px 0 0;
  color: #08245c;
  font-size: 24px;
  line-height: 30px;
  font-weight: 800;
}

.doc-permission-state p {
  margin: 8px 0 24px;
  color: #78869b;
  font-size: 16px;
  line-height: 22px;
}

.doc-permission-state button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #69b7f4, #3474f1);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(52, 116, 241, .22);
}

.doc-exact-search {
  grid-column: 2 / 3;
  min-width: 0;
  height: 40px;
  margin: 0 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  background: #eff8ff;
}

.doc-exact-search span,
.doc-exact-search button {
  flex: 0 0 auto;
}

.doc-exact-search span svg {
  stroke: #7c8796;
}

.doc-exact-search input {
  min-width: 0;
  flex: 1;
  height: 24px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #08245c;
  font-size: 14px;
  font-weight: 500;
}

.doc-exact-search input::placeholder {
  color: #949fad;
}

.doc-exact-search [data-act="closeSearch"] {
  width: 24px;
  height: 24px;
  padding: 0;
}

.doc-exact-search .fill {
  fill: #949fad;
  stroke: #949fad;
}

.doc-exact-search [data-act="closeSearch"] path:not(.fill) {
  stroke: #fdfdfd;
  stroke-width: 1.5;
}

.doc-search-anchor {
  pointer-events: none;
  opacity: 0;
}

.source-file-tabs {
  min-height: 48px;
  margin-top: -16px;
  border-bottom: 0;
  background: #fff;
  position: relative;
  z-index: 1;
}

.source-file-tabs button {
  min-height: 48px;
  color: #78869b;
  font-size: 14px;
  font-weight: 400;
}

.source-file-tabs button.on {
  color: var(--tab);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--tab);
}

.doc-source-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 64px;
  background: #f5faff;
}

.doc-source-list.empty {
  display: grid;
}

.source-library-row {
  min-height: 61px;
  padding: 10px 16px;
  border-bottom: 1px solid #f6f7f9;
  background: #fff;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}

.source-library-row b {
  color: #08245c;
  font-size: 16px;
  line-height: 21px;
  font-weight: 500;
}

.source-library-row small {
  margin-top: 4px;
  color: #78869b;
  font-size: 14px;
  line-height: 18px;
}

.doc-banner-ad {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 54px;
  background: transparent;
}

.source-empty-state {
  min-height: 420px;
  padding: 32px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.source-empty-state img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.source-empty-state h2 {
  margin: 16px 0 0;
  color: #08245c;
  font-size: 24px;
  line-height: 30px;
  font-weight: 800;
}

.source-empty-state p {
  margin: 8px 0 0;
  color: #78869b;
  font-size: 16px;
  line-height: 22px;
}

.doc-source-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .7);
}

.doc-loading-mark {
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
  position: relative;
}

.doc-loading-mark::before {
  content: "";
  width: 72px;
  height: 72px;
  border: 5px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.doc-loading-mark i {
  display: none;
}
