:root {
  color-scheme: light;
  --ink: #202820;
  --mute: #59655e;
  --line: #d8ded8;
  --accent: #167154;
  --wash: #edf5ef;
  --paper: #f6f7f4;
  --mono:
    ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 1rem;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  background: none;
  color: inherit;
  border: 0;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #58a88e;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.wrap {
  width: min(100% - clamp(32px, 7.5vw, 128px), 1600px);
  margin: auto;
}
.mast {
  background: white;
  border-bottom: 1px solid var(--line);
}
.mast-inner,
.mast-right,
.brand,
.account,
.sync,
.hero,
.hero-actions,
.btn,
.bar,
.tabs,
.tools,
.tab,
.search,
.sorting,
.feed-head,
.feed-id,
.feed-actions,
.card-foot,
.foot-btn,
.modal-head,
.dialog-actions,
.meta,
.latest,
.card-menu button,
.empty,
.form-switch {
  display: flex;
  align-items: center;
}
.mast-inner {
  height: 72px;
  justify-content: space-between;
}
.brand {
  text-decoration: none;
  gap: 10px;
  font-size: 1.7rem;
  letter-spacing: -0.08em;
  font-weight: 760;
}
.brand img {
  width: 34px;
  height: 34px;
}
.mast-right {
  gap: 22px;
}
.sync {
  gap: 8px;
  font: 0.78rem var(--mono);
  color: #476451;
}
.sync i,
.meta i {
  display: inline-block;
  background: #28835e;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}
.account {
  font-size: 0.9rem;
  gap: 9px;
  border-left: 1px solid var(--line);
  padding: 4px 0 4px 20px;
}
svg.icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[data-icon] {
  display: inline-flex;
}
.account [data-icon="user"] {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: #e9eeea;
  border: 1px solid #dfe4df;
  border-radius: 50%;
  color: #53665b;
}
[data-icon="chevron"] .icon {
  width: 14px;
  height: 14px;
}
.hero {
  justify-content: space-between;
  gap: 18px;
  padding: 47px 0 31px;
}
h1 {
  font-size: clamp(2.6rem, 3.7vw, 4rem);
  letter-spacing: -0.065em;
  line-height: 1.05;
  margin: 0;
  font-weight: 650;
}
.heading-dot {
  color: #27805b;
}
.summary {
  font-size: 0.96rem;
  color: var(--mute);
  margin: 13px 0 0;
  line-height: 1.5;
}
.hero-actions {
  gap: 9px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #cdd5cd;
  border-radius: 7px;
  background: white;
  font-weight: 580;
  font-size: 0.9rem;
  min-height: 41px;
}
.btn:hover,
.icon-button:hover,
.tab:hover,
.sorting:hover,
.card-menu button:hover,
.foot-btn:hover {
  background: var(--wash);
}
.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: #115e46;
}
.bar {
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 17px;
  border-bottom: 1px solid #cdd6ce;
  margin-bottom: 22px;
}
.tabs {
  gap: 5px;
}
.tab {
  gap: 8px;
  font-size: 0.9rem;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--mute);
}
.tab.selected {
  color: #15593f;
  background: #e0eee3;
  border-color: #bfd6c5;
  font-weight: 600;
}
.tools {
  gap: 12px;
}
.search,
.sorting {
  height: 37px;
  gap: 8px;
  color: #536056;
  font-size: 0.86rem;
}
.search {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 0 10px;
}
.search input {
  width: 105px;
  color: var(--ink);
  border: 0;
  min-width: 0;
  outline: none;
  background: transparent;
}
.search:focus-within,
.sorting:focus-within {
  outline: 2px solid #58a88e;
}
.sorting {
  position: relative;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 0 10px;
}
.sorting select {
  border: 0;
  appearance: none;
  color: var(--ink);
  background: transparent;
  padding: 0 19px 0 0;
  height: 100%;
  outline: none;
}
.sorting [data-icon="chevron"] {
  position: absolute;
  right: 10px;
  pointer-events: none;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  padding-bottom: 48px;
}
.older {
  display: block;
  margin: 10px auto;
  color: var(--accent);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 730px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1150px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1800px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: clamp(460px, 54vh, 600px);
  background: #fff;
  border: 1px solid #cfd8cf;
  border-radius: 12px;
  box-shadow: 0 2px 5px #293d2710;
}
.feed-head {
  padding: 12px 18px;
  justify-content: space-between;
  gap: 5px;
}
.feed-id {
  min-width: 0;
  gap: 12px;
}
.feed-name {
  min-width: 0;
}
.feed-name h2 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.042em;
  line-height: 1.25;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0;
}
.feed-name a {
  display: block;
  text-decoration: none;
  font: 0.76rem var(--mono);
  margin-top: 3px;
  color: #646e65;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.feed-name a:hover,
.story:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e6efe9;
  color: #35624e;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.mark.hn {
  color: white;
  background: #fa681c;
  font-size: 1.8rem;
  font-weight: 430;
}
.mark.verge {
  background: #332264;
  color: #c7a8ff;
  font-weight: 900;
  font-size: 1.75rem;
  font-style: italic;
}
.mark.ars {
  background: #f25428;
  color: white;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.55rem;
}
.mark.df {
  color: #fff;
  background: #536070;
  font-size: 1.5rem;
}
.mark.nasa {
  color: white;
  background: #1e4281;
  font-family: Georgia, serif;
  font-size: 0.86rem;
  font-style: italic;
  letter-spacing: -0.07em;
}
.mark.go {
  color: #fff;
  background: #078ba3;
  font-size: 1.1rem;
  font-style: italic;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  width: 31px;
  height: 31px;
  color: #5f695f;
}
.latest {
  margin: 0 18px;
  padding: 5px 0;
  border-top: 1px solid #e7ebe6;
  border-bottom: 1px solid #e7ebe6;
  justify-content: space-between;
  font: 0.73rem var(--mono);
  color: #65736a;
}
.latest > span:first-child {
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.count {
  color: #28664b;
  background: #edf5ee;
  padding: 3px 7px;
  border-radius: 4px;
}
.items {
  min-height: 0;
  flex: 1;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cdd8cd transparent;
  overscroll-behavior-y: auto;
  margin: 0 5px 0 0;
  padding: 0 13px 0 18px;
}
.story {
  display: block;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid #e8ece7;
}
.story:last-child {
  border-bottom: 0;
}
.meta {
  gap: 7px;
  font: 0.6875rem/1.2 var(--mono);
  color: #657166;
  margin-top: 2px;
}
.meta i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
}
.story.read .meta i {
  background: #b1bcb3;
}
.story strong {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 570;
  letter-spacing: -0.017em;
  overflow-wrap: anywhere;
}
.story.read strong {
  color: #667168;
  font-weight: 440;
}
.card-foot {
  margin-top: auto;
  min-height: 39px;
  border-top: 1px solid #dee5de;
  background: #f8faf7;
  border-radius: 0 0 12px 12px;
  justify-content: space-between;
  padding: 6px 16px;
  color: var(--mute);
}
.format {
  font: 0.73rem var(--mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.format .icon,
.foot-btn .icon {
  width: 14px;
  height: 14px;
}
.foot-btn {
  gap: 6px;
  font-size: 0.78rem;
  border-radius: 4px;
  padding: 4px 3px;
}
.feed-error {
  padding: 6px 18px;
  color: #89531e;
  background: #fff3dc;
  font-size: 0.78rem;
}
.card-menu {
  position: absolute;
  right: 12px;
  top: 53px;
  z-index: 2;
  min-width: 158px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px;
  box-shadow: 0 5px 24px #19332122;
}
.card-menu button {
  width: 100%;
  text-align: left;
  gap: 8px;
  padding: 9px;
  border-radius: 4px;
  font-size: 0.86rem;
}
.card-menu button.danger,
.danger-text {
  color: #9a3828;
}
.card.dragging {
  opacity: 0.6;
}
.card.over {
  outline: 2px solid var(--accent);
}
.drag-handle {
  cursor: grab;
  touch-action: auto;
}
.empty {
  grid-column: 1/-1;
  min-height: 230px;
  border: 1px dashed #c5cfc4;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border-radius: 10px;
  color: var(--mute);
  text-align: center;
  padding: 20px;
}
.empty h2,
.empty p {
  margin: 0;
}
.empty h2 {
  color: var(--ink);
  font-size: 1.2rem;
}
dialog {
  width: min(440px, calc(100% - 28px));
  border: 1px solid #c9d4ca;
  border-radius: 14px;
  padding: 24px;
  color: var(--ink);
  box-shadow: 0 20px 80px #182c2433;
  background: #fff;
}
dialog::backdrop {
  background: #16241c66;
}
.modal-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.modal-head h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}
dialog p {
  font-size: 0.95rem;
  color: var(--mute);
  line-height: 1.5;
}
.field {
  display: block;
  margin: 14px 0;
  font-size: 0.9rem;
  font-weight: 570;
}
.field input {
  display: block;
  width: 100%;
  border: 1px solid #cbd5ce;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 6px;
  color: var(--ink);
  font-weight: 400;
}
.dialog-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.form-switch {
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 0;
  font-size: 0.88rem;
}
.text-button {
  padding: 2px 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notice {
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
  max-height: 140px;
  overflow: auto;
}
.notice:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 18px;
  max-width: 90vw;
  border-radius: 8px;
  color: white;
  background: #233c30;
  box-shadow: 0 5px 18px #243e302a;
  z-index: 4;
  font-size: 0.9rem;
  text-align: center;
}
#toast:empty {
  display: none;
}
@media (max-width: 700px) {
  .mast-inner {
    height: 60px;
  }
  .hero {
    padding: 30px 0 22px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .hero-actions {
    align-self: center;
  }
  .summary {
    margin-top: 8px;
  }
  .bar {
    flex-wrap: wrap;
  }
  .tools {
    gap: 7px;
  }
  .grid {
    gap: 14px;
  }
  .sync {
    display: none;
  }
  .account {
    border: 0;
    padding-left: 0;
  }
  .card {
    height: 480px;
  }
  .mast-right {
    gap: 0;
  }
}
@media (max-width: 510px) {
  .hero {
    gap: 16px;
  }
  .hero-actions .btn {
    padding: 8px 12px;
  }
  .bar {
    gap: 10px;
  }
  .tools {
    justify-content: space-between;
    width: 100%;
  }
  .search {
    flex: 1;
  }
  .search input {
    width: 100%;
  }
  .tabs {
    width: 100%;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
