html {
  height: 100%;
  background-color: orange;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: white;
  user-select: none;
}

.z-cbx-theme {
  --gray-10: #f4f4f4;
  --gray-20: #e0e0e0;
  --gray-30: #c6c6c6;
  --gray-40: #a8a8a8;
  --gray-60: #6f6f6f;
  --gray-70: #525252;
  --gray-80: #393939;
  --gray-90: #262626;
  --gray-100: #161616;
  --blue-60: #0f62fe;
  --red-60: #da1e28;
  --purple-60: #8a3ffc;
  --interactive-01: var(--blue-60);
  --interactive-02: var(--gray-80);
  --danger-01: var(--red-60);
  --text-01: var(--gray-100);
  --text-02: var(--gray-70); /* Secondary text; Input labels */
  --text-03: var(--gray-40); /* Placeholder text */
  --text-04: white; /* Text on interactive colors */
  --text-05: var(--gray-60); /* Tertiary text; Help text */
  --focus: var(--blue-60); /* Tertiary text; Help text */
  --link: var(--blue-60);
  --visited-link: var(--purple-60);
  --disabled-01: var(--gray-10);
  --border-strong: #8d8d8d;

  font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--text-01);
}

:focus {
  outline: 2px solid var(--focus);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:visited {
  color: var(--visited-link);
}

a:hover {
  text-decoration: underline;
}

.z-element {
  display: flex;
  flex-flow: column nowrap;
}

.z-app {
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

.z-button {
  user-select: none;
  padding: 8px 16px;
  display: inline-flex;
}

/*
.z-button:focus {
  box-shadow: inset 0 0 0 1px var(--focus),inset 0 0 0 2px var(--gray-10);
  outline: none;
}
*/

.z-dropdown-button {
  background-color: var(--gray-10);
  border-bottom: 1px solid var(--border-strong);
  flex-flow: row nowrap;
  align-items: center;
  height: 40px;
  box-sizing: border-box;
  outline-offset: -2px;
}

.z-dropdown-button-icon {
  margin: -8px -8px -8px 16px;
}

.z-app-bar {
  height: 44px;
  background-color: var(--gray-100);
  color: white;
  flex-flow: row nowrap;
  align-items: center;
}

z-app-bar-label {
  padding: 0 16px;
  align-self: stretch;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  user-select: none;
}

z-content {
  flex: 1;
  display: flex;
  flex-flow: column nowrap;
  overflow: hidden;
}

z-content .z-item-browser {
  flex: 1;
}

.z-item-browser {
  display: block;
  overflow-x: hidden;
  overflow-y: scroll;
}

.z-item-browser > .z-grid-view {
  overflow: hidden;
}

.z-grid-view {
  position: relative;
}

.z-grid-view > * {
  position: absolute;
}

.z-item-browser {
  --item-scale: 1;
}

.z-comic-item {
  width: calc(171px * var(--item-scale));
  height: calc(256px * var(--item-scale) + 90px);
  overflow: hidden;
  display: flex;
  flex-flow: column nowrap;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: initial;
  text-decoration: none;
  /*content-visibility: auto;
  contain: strict;*/
}

.z-comic-item.favorite .item-thumbnail-container:after {
  position: absolute;
  bottom: 6px;
  right: 6px;
  content: "";
  background-image: url(/images/favorite-star.svg);
  width: 36px;
  height: 36px;
  display: block;
}

.item-thumbnail-container {
  user-select: none;
  background-image: url(/images/default-thumbnail.png);
  background-size: contain;
  background-origin: center center;
  background-repeat: no-repeat;
  position: relative;
}

.item-thumbnail {
  width: calc(171px * var(--item-scale));
  height: calc(256px * var(--item-scale));
  display: block;
}

.item-title-container {
  flex: 1;
  display: flex;
  flex-flow: column nowrap;
  padding: 8px 6px 8px 6px;
  gap: 4px;
}

.item-title {
  font-weight: 700;
  font-size: 12px;
  padding-bottom: 2px;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.item-author {
  font-weight: 300;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-pages {
  font-weight: 400;
  color: var(--steel-300);
  font-size: 10px;
}

.item-author-link {
  color: inherit;
  cursor: pointer;
}

.item-author-link:hover {
  text-decoration: underline;
}

.z-comic-item {
  will-change: transform;
  overflow: hidden;
  contain: layout;
}

.z-thumbnail-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-origin: center center;
}

.z-item-browser {
  position: relative;
}

.z-filter-bar {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  height: 44px;
  background-color: var(--steel-850);
  padding: 0 16px;
}

z-spacer {
  flex: 1;
}

.z-text-field {
  height: 40px;
}

.z-text-field > input {
  background-color: var(--steel-700);
  border: none;
  border-bottom: 1px solid var(--steel-600);
  padding: 0 16px;
  margin: 0;
  width: 100%;
  line-height: 1.29;
  height: 40px;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
  outline-offset: -2px;
  color: var(--steel-200);
}
/*
.z-text-field > input:focus {
  box-shadow: inset 0 0 0 1px var(--focus),inset 0 0 0 2px var(--gray-10);
  outline: none;
}
*/
z-content > .z-filter-bar  {
  padding-top: 8px;
  padding-bottom: 8px;
  height: auto;
}

.z-filter-bar > .z-text-field {
  margin-inline-end: 8px;
}

.z-search-field {
  flex-flow: row nowrap;
}

.z-search-icon,
.z-search-field-clear-button-target {
  position: relative;
}

.z-search-icon > .z-carbon-icon {
  position: absolute;
  top: 12px;
  bottom: 0;
  width: 16px;
  height: 16px;
  user-select: none;
  margin: 0 8px;
}

.z-search-field-clear-button {
  position: absolute;
  top: 2px;;
  right: 2px;
  width: 40px;
  height: 36px;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 0;
}

.z-search-field-clear-button:hover {
  background-color: var(--steel-600);
}

.z-search-field-clear-button:active {
  outline: 2px solid var(--focus);
}

.z-search-field > input {
  padding-left: 32px;
  padding-right: 40px;
}

.z-dropdown-menu {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
  z-index: 9100;
  background-color: var(--steel-800);
  overflow-y: auto;
  transition: max-height .11s cubic-bezier(.2,0,.38,.9);
  width: 200px;
  max-height: 0;
}

.z-dropdown-menu:focus {
  outline: 1px solid var(--focus);
}

.z-dropdown-menu.z-open {
  max-height: 1024px;
}

.z-dropdown-menu-item {
  box-sizing: border-box;
  padding: 0 16px;
  background-color: var(--steel-800);
  position: relative;
  height: 40px;
  color: var(--steel-200);
  cursor: pointer;
  user-select: none;
  align-items: center;
  flex-flow: row nowrap;
  border-top: 1px solid var(--steel-700);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: border-color 70ms cubic-bezier(.2,0,.38,.9),color 70ms cubic-bezier(.2,0,.38,.9);
}

.z-dropdown-menu-item:first-of-type {
  border-top-color: transparent;
}

.z-dropdown-menu-item:hover {
  background-color: var(--steel-700);
  color: var(--warning-amber);
}

.z-dropdown-button.z-open {
  box-shadow: 0 1px 0 #e0e0e0;
}
