:root {
  --active-brightness: 0.85;
  --border-radius: 5px;
  --box-shadow: 2px 2px 10px;
  --color-accent: #118bee15;
  --color-bg: #fff;
  --color-bg-secondary: #e9e9e9;
  --color-link: #118bee;
  --color-secondary: #920de9;
  --color-secondary-accent: #920de90b;
  --color-shadow: #f4f4f4;
  --color-table: #118bee;
  --color-text: #000;
  --color-text-secondary: #999;
  --color-scrollbar: #cacae8;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --hover-brightness: 1.2;
  --justify-important: center;
  --justify-normal: left;
  --line-height: 1.5;
  /*
  --width-card: 285px;
  --width-card-medium: 460px;
  --width-card-wide: 800px;
*/
  --width-content: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root[color-mode="user"] {
    --color-accent: #0097fc4f;
    --color-bg: #333;
    --color-bg-secondary: #555;
    --color-link: #0097fc;
    --color-secondary: #e20de9;
    --color-secondary-accent: #e20de94f;
    --color-shadow: #bbbbbb20;
    --color-table: #0097fc;
    --color-text: #f7f7f7;
    --color-text-secondary: #aaa;
  }
}

.message .body {
  background: white;
  color: black;
  margin-top: 0.5em;
  padding: 1em;
  width: 0;
  min-width: 100%;
  overflow: auto;
  overflow-wrap: break-word;
}

.message .body .attachments hr {
  border: none;
  border-top: 1px dashed #888;
  background-color: #f000;
  margin: 0.5rem 0;
}

.message .body blockquote {
  padding-left: 1em;
  border-left: 2px solid #ddd;
}

.message .body ul,
.message .body ol,
.message .body li {
  margin: revert;
  padding: revert;
}

.error {
  background-color: red;
}

.view-part-text-plain {
  font-family: monospace;
  overflow-wrap: break-word;
  padding: 0.5em;
  white-space: pre-wrap;
  word-break: break-word;
  word-wrap: break-word;
}

iframe {
  height: 100%;
  width: 100%;
}

.index {
  table-layout: fixed;
  width: 100%;
}

.index .edit {
  width: 2em;
}

.index .unread {
  font-weight: bold;
}

.index .from {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 10em;
}

.index .subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index .date {
  width: 7em;
  white-space: nowrap;
  text-align: right;
}

.lb-footer {
  background-color: #eee;
  color: #222;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3em;
  padding: 1em;
}

.tag {
  margin-right: 2px;
}

.debug ul {
  padding-left: 2em;
}

.debug li {}

.loading {
  animation-name: spin;
  animation-duration: 1000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 1.5em;
  }
}

input,
.input {
  color: #000;
}

input::placeholder,
.input::placeholder {
  color: #555;
}

.mobile .search-results {
  padding: 1em;
}

.search-results>nav {
  margin: 1.25rem;
}

.tablet .thread h3,
.mobile .thread h3 {
  overflow-wrap: break-word;
  padding: 1em 1em 0;
}

.tablet .thread .message-tags,
.mobile .thread .message-tags {
  padding: 0 1em;
}

.search-results .row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;

  border-bottom: 1px #444 solid;
  padding-bottom: .5em;
  padding-top: .5em;
  width: 100%;
}

.search-results .row .summary {
  min-width: 0;
  width: 100%;
}

.search-results .row .subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results .subject .text {
  display: inline-block;
  overflow: hidden;
  padding-left: 0.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.search-results .row .from {
  display: inline-block;
  width: 100%;
}

.search-results .from a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results .from a {
  display: inline-block;
  width: 100%;
}

.search-results .row .tag {
  height: 1.5em;
  padding-left: .5em;
  padding-right: .5em;
}

.float-right {
  float: right;
}

/* Hide quoted emails */
/*
div[name="quote"],
blockquote[type="cite"],
.gmail_quote {
background-color: red;
display: none;
}
*/

.desktop .main-content {
  display: grid;
  grid-template-columns: 12rem 1fr;
}

.tags-menu {
  padding: 1rem;
}

.tags-menu .menu-list a {
  padding: 0.25em 0.5em;
}

.tags-menu .tag-indent {
  padding-left: .5em;
}

.tags-menu .tag-tag {
  margin-left: -1em;
  padding-right: .25em;
}

.navbar {
  border: none;
}

.desktop nav.pagination,
.tablet nav.pagination {
  margin-left: .5em;
  margin-bottom: 0 !important;
}

.content-tree {
  white-space: pre-wrap;
  word-break: break-word;
  word-wrap: break-word;
}

.attachment {
  margin: .25em;
  display: inline-block;
}

.attachment .card-content {
  padding: 0.5rem 1.5rem;
}

.button.spam {
  color: #f00;
}

progress.read-progress {
  border-radius: 0;
  position: fixed;
  top: 0;
  z-index: 999;
}

progress.read-progress.is-small {
  height: .25rem;
}
