[v-cloak] {
  display: none !important;
}

html {
  font-size: 15px !important;
}

body {
  --accent-color: #2f684b;
  --accent-contrast-color: #fff;
  --action-button-border-color: #ced4da;
  --action-button-hover-bg: #f8f9fa;
  --action-button-shadow: 0 2px 5px rgba(0, 0, 0, .16), 0 1px 1px rgba(0, 0, 0, .08);
  --action-button-shadow-active: inset 0 1px 2px rgba(0, 0, 0, .12);
  --toolbar-bg: transparent;
  --toolbar-lift-shadow: var(--action-button-shadow);
  --pane-divider-line: rgba(0, 0, 0, .10);
  --pane-divider-shadow: rgba(0, 0, 0, .20);
  --pane-resize-handle-bg: rgba(47, 104, 75, .35);
  --pane-resize-handle-bg-hover: var(--accent-color);
  --pane-resize-handle-ring: rgba(247, 247, 245, .86);
  font-family: "LXGW WenKai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: normal;
  overscroll-behavior: none;
}

body.font-lxgw-wenkai {
  font-family: "LXGW WenKai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.font-maple-mono-nf-cn {
  font-family: "Maple Mono NF CN", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* bootstrap customizations */

.btn-link {
  color: inherit;
}

.form-control, .form-control:focus {
  box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.07) !important;
}

select.form-control {
  -webkit-appearance: none;
}

select.form-control:not([multiple]):not([size]) {
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  padding-right: 1.2rem;
  cursor: pointer;
}

.btn:focus {
  box-shadow: none !important;
}

.dropdown-header {
  cursor: default;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-toggle-no-caret:after {
  display: none;
}

.settings-dropdown .dropdown-toggle {
  padding-left: 0;
  padding-right: 0;
}

.settings-dropdown .dropdown-menu {
  padding: 0;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.settings-dropdown .dropdown-item,
.settings-dropdown .dropdown-header {
  padding: .375rem 1rem;
}

.settings-dropdown .dropdown-divider {
  margin: 0;
}

.settings-dropdown .dropdown-menu:focus {
  outline: none;
}

.settings-dropdown .dropdown-item {
  cursor: pointer;
}

.settings-dropdown .dropdown-item:focus {
  outline: none;
}

.settings-dropdown form:focus {
  outline: none;
}

.popover:focus {
  outline: none;
}

.table-compact {
  color: unset !important;
}

.table-compact tr td:first-child {
  padding-left: 0;
}

.table-compact tr td:last-child {
  padding-right: 0;
}

.scroll-touch {
  -webkit-overflow-scrolling: touch;
}

#feed-list-scroll,
#item-list-scroll {
  flex: 1 1 auto;
  min-height: 0;
}

/* custom elements */

.icon {
  height: 1rem;
  width: 1rem;
  display: inline-block;
  line-height: 1;
}

.icon > svg , .icon > img {
  width: 1rem;
  height: 1rem;
  vertical-align: top;
}

.icon-small {
  width: .6rem;
  height: .6rem;
  display: inline-block;
}

.icon-small > svg , .icon-small > img {
  width: .6rem;
  height: .6rem;
}

.feed-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-left: -18px !important;
}

.counter {
  padding-left: .5rem;
  opacity: .6;
}

.light {
  opacity: .6;
}

.selectgroup {
  position: relative;
  display: block;
  margin: 0;
}

.selectgroup *, .noselect, .dropdown-menu * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.selectgroup input {
  opacity: 0;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  height: 100%;
}

.selectgroup + .selectgroup {
  margin-top: .25rem;
}

.selectgroup-label {
  padding: .375rem .5rem;
  border-radius: 4px;
  overflow-wrap: break-word;
}

.selectgroup-label:hover {
  cursor: pointer;
}

.selectgroup-action {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: flex;
  flex-shrink: 0;
  height: 1.75rem;
  justify-content: center;
  opacity: .7;
  padding: 0;
  width: 1.75rem;
}

.selectgroup-action:hover {
  opacity: 1;
}

.selectgroup-action:focus {
  outline: none;
}

#item-list-scroll .item-status-read {
  color: #8a8a86;
}

#item-list-scroll input:checked + .selectgroup-label {
  color: var(--accent-contrast-color);
}

.item-list-text {
  min-width: 0;
}

.item-list-meta {
  line-height: 100%;
  opacity: .7;
  margin-bottom: .1rem;
}

.item-list-image {
  width: 72px;
  height: 54px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: cover;
}

.article-list-layout-list #item-list-scroll .selectgroup + .selectgroup {
  margin-top: 0;
}

.article-list-layout-list #item-list-scroll .selectgroup + .selectgroup .selectgroup-label {
  border-top: 1px solid var(--item-list-separator-color);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.article-list-layout-card #item-list-scroll {
  padding: .75rem !important;
}

.article-list-layout-card #item-list-scroll .selectgroup + .selectgroup {
  margin-top: .75rem;
}

.article-list-layout-card #item-list-scroll .selectgroup-label {
  flex-direction: column;
  align-items: stretch !important;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: var(--article-card-shadow);
  overflow: hidden;
}

.article-list-layout-card #item-list-scroll input:checked + .selectgroup-label {
  border-color: var(--accent-color);
  background-color: var(--accent-color) !important;
}

.article-list-layout-card #item-list-scroll input:checked + .selectgroup-label:hover {
  background-color: var(--accent-color) !important;
}

.article-list-layout-card .item-list-text {
  width: 100%;
  padding: .5rem .625rem;
}

.article-list-layout-card .item-list-title {
  line-height: 1.25;
}

.article-list-layout-card .item-list-image {
  order: -1;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-left: 0 !important;
  border-radius: 12px 12px 0 0;
}

.toolbar-item:hover,
.toolbar-search:hover,
.selectgroup-label:hover,
.dropdown-item:hover {
  background-color: #f0f0f0;
}

.expanded {
  transform: rotate(90deg);
}

@keyframes stroke {
  from { stroke-dashoffset: 120; }
  to   { stroke-dashoffset: 0; }
}

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

.loading {
  color: transparent!important;
  min-height: .8rem;
  pointer-events: none;
  position: relative;
}

.loading::after {
  animation: rotate .5s infinite linear;
  border: .1rem solid #6c757d;
  border-radius: 50%;
  border-right-color: transparent;
  border-top-color: transparent;
  content: "";
  display: block;
  height: 1rem;
  width: 1rem;
  left: 50%;
  margin-left: -.5rem;
  margin-top: -.5rem;
  position: absolute;
  top: 50%;
  z-index: 1;
}

.icon-loading > svg {
  animation: stroke 2s infinite normal;
  stroke-dasharray: 60;
}

.btn-default {
  border: 1px solid var(--action-button-border-color);
  border-radius: .25rem;
  box-shadow: var(--action-button-shadow);
}

.btn-default:active {
  background: var(--action-button-hover-bg);
  box-shadow: var(--action-button-shadow-active);
}

.btn-outline {
  border: 1px solid var(--action-button-border-color);
  border-radius: .25rem;
  box-shadow: var(--action-button-shadow);
}

.btn-outline:hover {
  background-color: var(--action-button-hover-bg);
}

.item-list-mark-read {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

#col-feed-list,
#col-item-list {
  border-right-color: transparent !important;
  box-shadow: 1px 0 0 var(--pane-divider-line), 10px 0 20px -20px var(--pane-divider-shadow);
}

#col-feed-list {
  z-index: 3;
}

#col-item-list {
  z-index: 2;
}

.toolbar {
  min-height: 2rem !important;
  max-height: 2rem !important;
  flex-shrink: 0;
}

.toolbar:not(.border-top) {
  background-color: var(--toolbar-bg);
  position: relative;
  z-index: 3;
}

.toolbar:not(.border-top)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  pointer-events: none;
  box-shadow: var(--toolbar-lift-shadow);
}

.toolbar-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  background-color: transparent;
  text-decoration: none;
  user-select: none;
  border: 1px solid transparent;
  padding: .25rem .5rem;
  font-size: 1rem;
  border-radius: .25rem;
  line-height: 1;
  color: inherit;

  text-align: center;
  vertical-align: middle;
  border-radius: 3px;
  cursor: pointer;
  color: inherit;
}

.toolbar-display-icon .toolbar-label,
.toolbar-display-text .toolbar-icon,
.toolbar-narrow #col-item .toolbar-label {
  display: none;
}

.toolbar-narrow #col-item .toolbar-icon {
  display: inline-block;
}

.toolbar-display-text .toolbar-item-icon-only .toolbar-icon {
  display: inline-block;
}

.toolbar-spacer {
  pointer-events: none;
  visibility: hidden;
}

.toolbar-feed-actions-narrow .feed-list-toolbar-create {
  display: none;
}

.toolbar-feed-actions-minimal .feed-list-toolbar-refresh,
.toolbar-feed-actions-minimal .feed-list-toolbar-create {
  display: none;
}

.content-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  margin-left: .25rem;
  overflow: hidden;
}

.content-mode-switch .toolbar-item {
  border-radius: 0;
  min-width: 3rem;
}

.content-mode-switch .toolbar-item:first-child {
  border-bottom-left-radius: 3px;
  border-top-left-radius: 3px;
}

.content-mode-switch .toolbar-item:last-child {
  border-bottom-right-radius: 3px;
  border-top-right-radius: 3px;
}

.toolbar-status-active .toolbar-icon,
.toolbar-status-active .toolbar-label {
  color: var(--accent-color);
  font-weight: 600;
}

.toolbar-item:focus {
  outline: none;
}

.toolbar-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-default {
  cursor: default;
}

.drag {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  z-index: 900;
  cursor: col-resize;
}

.drag::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
  width: 3px;
  height: 34px;
  border-radius: 999px;
  background-color: var(--pane-resize-handle-bg);
  box-shadow: 0 0 0 3px var(--pane-resize-handle-ring);
  opacity: .45;
  transform: translateY(-50%);
  transition: background-color .15s ease, opacity .15s ease;
}

.drag:hover::after {
  background-color: var(--pane-resize-handle-bg-hover);
  opacity: 1;
}

.input-icon {
  position: relative;
}

.input-icon .icon {
  position: absolute;
  display: flex;
  align-items: center;
  height: 100%;
  width: 2rem;
  justify-content: center;
  pointer-events: none;
}

.input-icon input {
  padding-left: 2rem !important;
  width: 100%;
}

.toolbar-search {
  border: none;
  border-radius: 3px;
  padding: .25rem .5rem;
  line-height: 1;
}

.toolbar-search:hover, .toolbar-search:focus {
  background-color: #f3f3f3;
  outline: none;
}

#opml-import-form input[type="file"]::-webkit-file-upload-button {
  position: absolute;
  top: -999px;
  left: -999px;
}

.custom-modal {
  background-color: rgba(0, 0, 0, 0.9);
  padding: .5rem;
  overflow-y: auto;
  display: flex !important;
}

.custom-modal .modal-dialog {
  margin: auto;
  width: 100%;
}

.settings-modal .modal-dialog {
  max-width: 22rem;
}

.settings-modal .modal-body {
  padding: .7rem .85rem;
}

.dialog-message {
  white-space: pre-wrap;
}

.settings-dialog p {
  margin-bottom: 0;
}

.settings-dialog hr {
  margin: .55rem 0;
}

.settings-dialog-section + .settings-dialog-section {
  margin-top: .5rem;
}

.settings-dialog-section-row {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: .5rem;
}

.settings-dialog-section-row .settings-dialog-section {
  margin-top: 0;
}

.settings-dialog-section header {
  cursor: default;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.settings-dialog-fields {
  display: grid;
  gap: .2rem;
}

.settings-dialog-field {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: grid;
  font-size: .9rem;
  gap: .75rem;
  grid-template-columns: 75px minmax(0, 1fr);
  min-height: 1.85rem;
  padding: .25rem .2rem;
  text-align: left;
  width: 100%;
}

.settings-dialog-field:focus {
  outline: none;
}

.settings-dialog-field,
.settings-dialog-field:hover,
.settings-dialog-field:focus,
.settings-dialog-field:active {
  text-decoration: none;
}

.settings-dialog-field-label {
  cursor: inherit;
  font-weight: 700;
  text-align: right;
}

.settings-dialog-field-value {
  cursor: inherit;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-dialog-field-disabled {
  cursor: default;
}

.settings-dialog-field-split {
  cursor: default;
}

.settings-dialog-field-link,
.settings-dialog-field-link:hover,
.settings-dialog-field-link:focus,
.settings-dialog-field-link:active {
  color: inherit;
  cursor: pointer;
}

.settings-dialog-field-value-action {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  padding: 0;
  width: 100%;
}

.settings-dialog-field-value-action:focus {
  outline: none;
}

.rsshub-detail-feed-list {
  display: grid;
  gap: .35rem;
}

.rsshub-detail-feed-row,
.rsshub-detail-feed-row:hover,
.rsshub-detail-feed-row:focus,
.rsshub-detail-feed-row:active {
  color: inherit;
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  align-items: center;
  column-gap: .5rem;
  line-height: 1.25;
  min-width: 0;
  text-decoration: none;
}

.rsshub-detail-feed-title {
  font-size: .9rem;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.rsshub-detail-feed-link {
  font-size: .8rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.settings-dialog-actions {
  display: grid;
  gap: .2rem;
}

.settings-dialog-actions-inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-dialog-actions-main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-dialog-actions-three {
  gap: .15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-dialog-actions-three .settings-dialog-action {
  min-height: 1.75rem;
  padding: .2rem .1rem;
  white-space: nowrap;
}

.settings-dialog-actions-three .icon {
  margin-right: .25rem !important;
}

.settings-dialog-actions-left .settings-dialog-action {
  justify-content: flex-start;
}

.settings-dialog-action {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: inherit;
  display: flex;
  font-size: .9rem;
  justify-content: center;
  min-height: 1.85rem;
  padding: .25rem .2rem;
  text-align: left;
  width: 100%;
}

.settings-dialog-action-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-dialog-action:focus {
  outline: none;
}

.settings-dialog-action,
.settings-dialog-action:hover,
.settings-dialog-action:focus,
.settings-dialog-action:active {
  text-decoration: none;
}

.settings-segmented,
.refresh-rate-picker {
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.settings-dialog-field-choice {
  align-items: stretch;
}

.content-mode-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-mode-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-segmented .btn,
.refresh-rate-picker .btn {
  border-radius: 6px;
  color: inherit;
  font-size: .9rem;
  min-height: 1.85rem;
  padding: .25rem .2rem;
}

.settings-segmented .btn,
.settings-segmented .btn:hover,
.settings-segmented .btn:focus,
.settings-segmented .btn:active,
.refresh-rate-picker .btn,
.refresh-rate-picker .btn:hover,
.refresh-rate-picker .btn:focus,
.refresh-rate-picker .btn:active {
  text-decoration: none;
}

.settings-segmented-compact .btn {
  font-size: .85rem;
  min-height: 1.65rem;
  padding: .15rem .15rem;
}

.theme-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.refresh-rate-picker {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.feed-delete-list {
  display: grid;
  gap: .65rem;
  max-height: min(52vh, 26rem);
  overflow: auto;
  padding-right: .15rem;
}

.feed-delete-group header {
  cursor: default;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .25rem;
  opacity: .7;
}

.feed-delete-row {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: .5rem;
  grid-template-columns: 1rem minmax(0, 1fr);
  margin: 0;
  min-height: 1.85rem;
  padding: .25rem .35rem;
}

.feed-delete-row + .feed-delete-row {
  margin-top: .1rem;
}

.feed-delete-row input {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

.feed-delete-check {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  display: flex;
  height: 1rem;
  justify-content: center;
  opacity: .55;
  pointer-events: none;
  width: 1rem;
}

.feed-delete-check .icon {
  align-items: center;
  display: flex;
  height: .75rem;
  justify-content: center;
  opacity: 0;
  width: .75rem;
}

.feed-delete-check .icon > svg {
  height: .75rem;
  vertical-align: middle;
  width: .75rem;
}

.feed-delete-row input:checked + .feed-delete-check {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--accent-contrast-color);
  opacity: 1;
}

.feed-delete-row input:checked + .feed-delete-check .icon {
  opacity: 1;
}

.feed-delete-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* content */

.content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-wrap: break-word;
  line-height: 1.5;
}

.content-wrapper {
  max-width: 60rem;
  margin: 0 auto;
}

.content img,
.content video {
  max-width: 100%;
  height: auto;
}

.content img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.content iframe {
  display: block;
  max-width: 100%;
  margin-bottom: 0.5rem;
}

.content .video-wrapper {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}

.content .video-wrapper::before {
  display: block;
  padding-top: 56.25%; /* 16x9 aspect ratio */
  content: "";
}

.content .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.content pre {
  overflow-x: auto;
  color: inherit;
  border: 1px solid #dee2e6;
  border-radius: 3px;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding: 0.5rem;
}

.content a {
  color: inherit;
  text-decoration: underline;
}

.content .content-title-link {
  text-decoration: none;
}

.content .content-title-link:hover {
  color: var(--accent-color);
}

.content-embed {
  border: 1px solid #ced4da;
  border-radius: 3px;
  height: calc(100vh - 9rem);
  min-height: 32rem;
  width: 100%;
}

.content-mode-message {
  color: #6c757d;
}

.content-open-original {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: .75rem;
  align-items: center;
  margin-top: 2rem;
  text-align: center;
}

.content-open-original-prev {
  justify-self: end;
}

.content-open-original-next {
  justify-self: start;
}

.content-open-original .btn-outline,
.content-open-original .btn-outline:hover,
.content-open-original .btn-outline:focus,
.content-open-original .btn-outline:active {
  color: inherit;
  text-decoration: none;
}

.content-open-original .btn-outline:disabled {
  opacity: 1;
}

.content blockquote {
  border-left: 3px solid #22262a;
  padding-left: 1rem;
}

.content h1 {
  font-size: 1.8rem;
}
.content h2 {
  font-size: 1.5rem;
}
.content h3 {
  font-size: 1.17rem;
}
.content h4,
.content h5,
.content h6 {
  font-size: 1rem;
}

.content p {
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-indent: 2em;
}

.content p:has(img, picture, video, audio, iframe, figure, table, ul, ol, pre, blockquote, object, embed, svg) {
  text-indent: 0;
}

/* theme: light */

button.theme-light {
  background-color: #f7f7f5 !important;
}

.theme-light,
.theme-light .btn-default,
.theme-light .dropdown-menu,
.theme-light .form-control,
.theme-light .modal-content,
.theme-light .toolbar-search {
  --accent-color: #2f684b;
  --accent-contrast-color: #fff;
  --article-card-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  --item-list-separator-color: #e4e4df;
  --toolbar-bg: #fffffc;
  --toolbar-lift-shadow: 0 3px 10px rgba(0, 0, 0, .13), 0 1px 0 rgba(0, 0, 0, .06);
  --pane-divider-line: rgba(31, 41, 36, .10);
  --pane-divider-shadow: rgba(31, 41, 36, .22);
  --pane-resize-handle-bg: rgba(47, 104, 75, .35);
  --pane-resize-handle-bg-hover: #2f684b;
  --pane-resize-handle-ring: rgba(247, 247, 245, .86);
  background-color: #f7f7f5 !important;
}
.theme-light .content hr,
.theme-light .content pre,
.theme-light .border-right,
.theme-light .border-top {
  border-color: #e4e4df !important;
}
.theme-light .selectgroup-label:hover,
.theme-light .toolbar-item:hover,
.theme-light .toolbar-search:hover,
.theme-light .dropdown-item:hover,
.theme-light .selectgroup-action:hover,
.theme-light .settings-dialog-field-action:hover,
.theme-light .settings-dialog-action:hover,
.theme-light .feed-delete-row:hover,
.theme-light .settings-segmented .btn:hover,
.theme-light .refresh-rate-picker .btn:hover,
.theme-light .toolbar-search:focus {
  background-color: #ecece8;
}

.theme-light .article-list-layout-card #item-list-scroll .selectgroup-label {
  border-color: #e4e4df;
  background-color: #fbfbf9;
}

.theme-light .article-list-layout-card #item-list-scroll .selectgroup-label:hover {
  background-color: #f0f0ec;
}

a,
.btn-link:hover {
  color: var(--accent-color);
}

.toolbar-item.active,
.dropdown-item.active,
.dropdown-item:active,
.settings-segmented .btn.active,
.refresh-rate-picker .btn.active,
.selectgroup input:checked + .selectgroup-label {
  color: var(--accent-contrast-color);
  background-color: var(--accent-color) !important;
}

.form-control:focus {
  border-color: var(--accent-color);
}

.btn-default:focus,
.btn-outline:focus {
  border-color: var(--action-button-border-color);
}

/* theme: sepia */

.theme-sepia,
.theme-sepia .btn-default,
.theme-sepia .dropdown-menu,
.theme-sepia .form-control,
.theme-sepia .modal-content,
.theme-sepia .toolbar-search {
  --accent-color: #7a4a14;
  --accent-contrast-color: #fff;
  --article-card-shadow: 0 2px 8px rgba(83, 67, 35, .12);
  --action-button-border-color: #d2bd84;
  --action-button-hover-bg: #e6d7a8;
  --action-button-shadow: 0 2px 6px rgba(83, 67, 35, .24), 0 1px 1px rgba(83, 67, 35, .12);
  --action-button-shadow-active: inset 0 1px 3px rgba(83, 67, 35, .18);
  --item-list-separator-color: #d9c999;
  --toolbar-bg: #f8edc9;
  --toolbar-lift-shadow: 0 3px 11px rgba(83, 67, 35, .24), 0 1px 0 rgba(83, 67, 35, .10);
  --pane-divider-line: rgba(83, 67, 35, .14);
  --pane-divider-shadow: rgba(83, 67, 35, .30);
  --pane-resize-handle-bg: rgba(122, 74, 20, .34);
  --pane-resize-handle-bg-hover: #7a4a14;
  --pane-resize-handle-ring: rgba(242, 230, 189, .84);
  background-color: #f2e6bd !important;
}

body.theme-sepia {
  background-image:
    radial-gradient(ellipse at 18% 22%, rgba(139, 95, 28, .14), transparent 34%),
    radial-gradient(ellipse at 82% 14%, rgba(255, 255, 255, .20), transparent 30%),
    radial-gradient(ellipse at 52% 88%, rgba(118, 79, 21, .10), transparent 38%),
    repeating-linear-gradient(92deg, rgba(101, 70, 22, .026) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(2deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 11px),
    linear-gradient(0deg, rgba(255, 255, 255, .08), rgba(145, 101, 32, .07));
  background-attachment: fixed;
  background-blend-mode: multiply, screen, multiply, multiply, screen, normal;
  background-size: 140% 120%, 130% 110%, 150% 120%, 17px 100%, 100% 19px, 100% 100%;
}

.theme-sepia .content hr,
.theme-sepia .content pre,
.theme-sepia .border-right,
.theme-sepia .border-top {
  border-color: #d9c999 !important;
}
.theme-sepia .selectgroup-label:hover,
.theme-sepia .toolbar-item:hover,
.theme-sepia .toolbar-search:hover,
.theme-sepia .dropdown-item:hover,
.theme-sepia .selectgroup-action:hover,
.theme-sepia .settings-dialog-field-action:hover,
.theme-sepia .settings-dialog-action:hover,
.theme-sepia .feed-delete-row:hover,
.theme-sepia .settings-segmented .btn:hover,
.theme-sepia .refresh-rate-picker .btn:hover,
.theme-sepia .toolbar-search:focus {
  background-color: #e6d7a8;
}

.theme-sepia .article-list-layout-card #item-list-scroll .selectgroup-label {
  border-color: #d9c999;
  background-color: #f7edca;
}

.theme-sepia .article-list-layout-card #item-list-scroll .selectgroup-label:hover {
  background-color: #eadbad;
}

.theme-sepia #item-list-scroll .item-status-read {
  color: #9a8f74;
}

/* theme: night */

.theme-night,
.theme-night .btn-default,
.theme-night .dropdown-menu,
.theme-night .dropdown-item,
.theme-night .form-control,
.theme-night .modal-content,
.theme-night .toolbar-search {
  --accent-color: #d39232;
  --accent-contrast-color: #1f1f1f;
  --action-button-border-color: #4a4a4a;
  --action-button-hover-bg: #303030;
  --action-button-shadow: 0 2px 7px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  --action-button-shadow-active: inset 0 1px 3px rgba(0, 0, 0, .62), 0 1px 0 rgba(255, 255, 255, .04);
  --article-card-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  --item-list-separator-color: #303030;
  --toolbar-bg: #262626;
  --toolbar-lift-shadow: 0 4px 12px rgba(0, 0, 0, .68), 0 1px 0 rgba(255, 255, 255, .05);
  --pane-divider-line: rgba(255, 255, 255, .07);
  --pane-divider-shadow: rgba(0, 0, 0, .78);
  --pane-resize-handle-bg: rgba(211, 146, 50, .36);
  --pane-resize-handle-bg-hover: #d39232;
  --pane-resize-handle-ring: rgba(31, 31, 31, .84);
  color: #d1d1d1;
  background-color: #1f1f1f;
}
.theme-night .content hr,
.theme-night .content pre,
.theme-night .border-right,
.theme-night .border-top,
.theme-night .dropdown-divider {
  border-color: #303030 !important;
}
.theme-night .selectgroup-label:hover,
.theme-night .dropdown-item:hover,
.theme-night .toolbar-item:hover,
.theme-night .toolbar-search:hover,
.theme-night .selectgroup-action:hover,
.theme-night .settings-dialog-field-action:hover,
.theme-night .settings-dialog-action:hover,
.theme-night .feed-delete-row:hover,
.theme-night .settings-segmented .btn:hover,
.theme-night .refresh-rate-picker .btn:hover,
.theme-night .toolbar-search:focus {
  background-color: #303030;
}

.theme-night .article-list-layout-card #item-list-scroll .selectgroup-label {
  border-color: #303030;
  background-color: #242424;
}

.theme-night .article-list-layout-card #item-list-scroll .selectgroup-label:hover {
  background-color: #2b2b2b;
}

.theme-night .dropdown-menu,
.theme-night .modal-content {
  border-color: #303030;
}

.theme-night #item-list-scroll .item-status-read {
  color: #8d8d8d;
}

/* animation */
.indicator-enter-active, .indicator-leave-active {
  transition: all .3s;
}
.indicator-enter, .indicator-leave-to {
  width: 0;
  opacity: 0;
  margin: 0 !important;
}

/* responsive layout

   tablet:
     none selected: show feed list & item list
     feed selected: show feed list & item list
     item selected: show item
   mobile:
     none selected: show feed list
     feed selected: show item list
     item selected: show item
*/

@media (min-width: 768px) and (max-width: 991.98px) {
  #app #col-feed-list {
    width: 35% !important;
  }
  #app #col-item-list {
    width: 65% !important;
    border-right-width: 0 !important;
    box-shadow: none;
  }
  #app #col-item {
    display: none !important;
  }

  #app.item-selected #col-feed-list {
    display: none !important;
  }
  #app.item-selected #col-item-list {
    display: none !important;
  }
  #app.item-selected #col-item {
    display: flex !important;
  }
}

@media (max-width: 767.98px) {
  #app #col-feed-list {
    width: 100% !important;
    border-right-width: 0 !important;
    box-shadow: none;
  }
  #app #col-item-list {
    width: 100% !important;
    display: none !important;
    border-right-width: 0 !important;
    box-shadow: none;
  }
  #app #col-item {
    width: 100% !important;
    display: none !important;
  }

  #app.feed-selected #col-feed-list {
    display: none !important;
  }
  #app.feed-selected #col-item-list {
    display: flex !important;
  }

  .item-list-image {
    width: 56px;
    height: 42px;
  }

  #app.item-selected #col-feed-list {
    display: none !important;
  }
  #app.item-selected #col-item-list {
    display: none !important;
  }
  #app.item-selected #col-item {
    display: flex !important;
  }
}

/* styles for both mobile & tablet layout */

@media (max-width: 991.98px) {
  .drag {
    cursor: default;
  }
  .drag::after {
    display: none;
  }
  .toolbar {
    min-height: 3rem !important;
    max-height: 3rem !important;
  }
  .toolbar-item,
  .toolbar-search {
    padding: .5rem;
  }
  #col-item .toolbar-label {
    display: none;
  }
  .toolbar-display-text #col-item .toolbar-icon {
    display: inline-block;
  }
}
