:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #27332c;
  background: #f5f2e9;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.accent {
  color: #de8c51;
}
.eyebrow,
.sidebar-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #8a8d75;
}
.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 60px);
  border-bottom: 1px solid #e8e4d9;
  background: #faf8f2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 21px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #2c513f;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 21px;
}
.brand-mark span {
  color: #e8a36e;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.private-badge {
  font-size: 12px;
  color: #687568;
}
.private-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #79a976;
  margin-right: 5px;
}
.primary {
  border: 0;
  border-radius: 10px;
  background: #295440;
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  box-shadow: 0 3px 8px #2145311a;
}
.primary:hover {
  background: #1e4432;
}
.primary.small {
  padding: 10px 15px;
  font-size: 13px;
}
.text-button {
  border: 0;
  background: transparent;
  color: #667164;
  font-size: 13px;
}
.text-button:hover {
  text-decoration: underline;
}
.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
  max-width: 1500px;
  margin: auto;
}
.sidebar {
  padding: 42px 18px 30px 32px;
  border-right: 1px solid #e8e4d9;
}
.sidebar-label {
  padding: 0 12px;
  margin-bottom: 19px;
}
.side-nav {
  display: grid;
  gap: 6px;
}
.side-nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 10px;
  text-align: left;
  padding: 12px;
  color: #667168;
  font-weight: 600;
  font-size: 14px;
}
.side-nav button span:first-child {
  width: 20px;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
}
.side-nav button:hover,
.side-nav button.active {
  background: #e9ede2;
  color: #295440;
}
.nav-count {
  margin-left: auto;
  background: #d4decf;
  border-radius: 30px;
  padding: 2px 7px;
  font-size: 11px;
}
.sidebar-note {
  border-top: 1px solid #e4e2d7;
  margin: 42px 10px 0;
  padding-top: 24px;
  font-size: 12px;
  line-height: 1.65;
  color: #7a8173;
}
.sidebar-note strong {
  color: #3f624d;
}
.note-spark {
  font-size: 26px;
  color: #e9a76e;
}
.content {
  max-width: 1100px;
  width: 100%;
  padding: 46px clamp(20px, 4vw, 65px) 60px;
  margin: auto;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e1dfd3;
  padding-bottom: 36px;
}
.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.055em;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.05;
  margin: 14px 0 12px;
}
.hero p {
  color: #788071;
  font-size: 15px;
  margin: 0;
}
.hero-mark {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #e8ede3;
  color: #568467;
  font-size: 42px;
  transform: rotate(-9deg);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 28px 0 30px;
}
.tabs {
  display: flex;
  gap: 7px;
}
.tabs button {
  border: 1px solid transparent;
  background: transparent;
  color: #737c70;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 13px;
  white-space: nowrap;
}
.tabs button.active {
  background: #e4eadd;
  color: #2a5840;
  border-color: #d5e0d2;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #e5e1d8;
  border-radius: 10px;
  padding: 0 12px;
  color: #8f9b8d;
  min-width: 250px;
}
.search span {
  font-size: 23px;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  height: 38px;
  width: 100%;
  font-size: 13px;
  color: #2d4032;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #586657;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
#list-count {
  font-weight: 500;
  color: #8b9488;
}
.paper-list {
  display: grid;
  gap: 12px;
}
.paper-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  background: #fffdfa;
  border: 1px solid #e7e3d9;
  border-radius: 15px;
  padding: 22px 23px 19px;
  box-shadow: 0 3px 14px #554d3010;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.paper-card:hover {
  border-color: #b8cbb7;
  transform: translateY(-1px);
}
.paper-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: #8c9386;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.paper-topline .divider {
  color: #c8c9be;
}
.paper-card h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-size: 22px;
  margin: 0 0 9px;
}
.paper-card h2 button {
  all: unset;
  cursor: pointer;
}
.paper-card h2 button:hover {
  color: #296344;
}
.paper-card p {
  color: #657064;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 13px;
  max-width: 760px;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  background: #eef1e9;
  color: #58705c;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 650;
}
.paper-side {
  min-width: 72px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.score {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #e9f0e7;
  color: #35634b;
  border-radius: 9px;
  padding: 7px 9px;
  min-width: 58px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}
.score small {
  font-size: 9px;
  letter-spacing: 0.09em;
  margin-top: 4px;
  font-weight: 800;
}
.card-link {
  font-size: 12px;
  text-decoration: none;
  color: #5a8061;
  font-weight: 700;
  white-space: nowrap;
}
.card-link:hover {
  text-decoration: underline;
}
.status {
  border-radius: 5px;
  background: #f2ede4;
  color: #8a714f;
  padding: 4px 7px;
}
.status.read {
  background: #e6f0e6;
  color: #3c7650;
}
.status.reading {
  background: #e5edf3;
  color: #4b6d87;
}
.status.skipped {
  background: #eee9e5;
  color: #867a72;
}
.empty {
  text-align: center;
  padding: 80px 20px;
  background: #fffdfa;
  border: 1px dashed #d6d5c7;
  border-radius: 16px;
}
.empty-icon {
  font-size: 42px;
  color: #a2b49d;
}
.empty h2 {
  font-family: Georgia, serif;
  margin-bottom: 5px;
}
.empty p,
.footer-note {
  color: #899184;
  font-size: 13px;
}
.footer-note {
  margin-top: 26px;
}
.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
  background: radial-gradient(circle at 20% 10%, #e5eee3, transparent 34%), #f5f2e9;
}
.login-card {
  width: min(100%, 430px);
  background: #fffdfa;
  border: 1px solid #e7e3d9;
  border-radius: 20px;
  padding: 42px;
  box-shadow: 0 20px 65px #2e45321e;
}
.login-card h1 {
  font:
    500 53px Georgia,
    serif;
  letter-spacing: -0.055em;
  margin: 14px 0 7px;
}
.login-card p {
  color: #788071;
  line-height: 1.5;
  margin: 0 0 30px;
}
.login-card form {
  display: grid;
  gap: 10px;
}
.login-card label,
.edit-fields label,
.detail-label {
  font-size: 12px;
  font-weight: 750;
  color: #546852;
}
input,
textarea,
select {
  border: 1px solid #d8ddd2;
  background: #fff;
  border-radius: 8px;
  color: #2d3d30;
  padding: 10px 12px;
  outline-color: #83a987;
}
.login-card input {
  height: 44px;
}
.login-card button {
  margin-top: 6px;
}
.form-error {
  color: #b34d40;
  font-size: 12px;
  min-height: 18px;
}
dialog {
  border: 1px solid #e0e1d5;
  border-radius: 17px;
  padding: 0;
  box-shadow: 0 26px 80px #15261b50;
  color: #26392c;
  background: #fffdfa;
  width: min(95vw, 710px);
  max-height: min(90vh, 900px);
}
dialog::backdrop {
  background: #142b1d91;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 27px 18px;
  border-bottom: 1px solid #e9e8df;
}
.dialog-head h2 {
  font:
    500 28px Georgia,
    serif;
  letter-spacing: -0.03em;
  margin: 7px 0 0;
}
.close-button {
  border: 0;
  background: #f1f2ec;
  color: #6d796e;
  border-radius: 8px;
  font-size: 25px;
  width: 34px;
  height: 34px;
  line-height: 1;
}
.dialog-body {
  padding: 25px 27px 30px;
  overflow: auto;
  max-height: calc(90vh - 95px);
}
.detail-meta {
  font-size: 12px;
  color: #7e887b;
  margin-bottom: 17px;
}
.detail-body {
  font-size: 14px;
  line-height: 1.65;
  color: #506353;
}
.detail-body p {
  margin: 7px 0 16px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.secondary {
  border: 1px solid #d9e0d6;
  background: #f7f9f3;
  color: #366049;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
}
.secondary:hover {
  background: #eaf1e8;
}
.danger {
  color: #ad594b;
  border-color: #ead9d5;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  background: #f4f5ee;
  border-radius: 11px;
  padding: 17px;
  margin: 15px 0;
}
.detail-grid div {
  font-size: 13px;
  color: #4d654f;
}
.detail-grid strong {
  display: block;
  font-size: 11px;
  color: #8b9588;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.feedback {
  display: grid;
  gap: 11px;
  border-top: 1px solid #ebe9e1;
  padding-top: 20px;
  margin-top: 23px;
}
.feedback .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.feedback label {
  display: grid;
  gap: 6px;
}
.feedback textarea {
  resize: vertical;
  width: 100%;
}
.edit-fields {
  padding: 22px 27px;
  display: grid;
  gap: 14px;
  overflow: auto;
  max-height: calc(90vh - 160px);
}
.edit-fields label {
  display: grid;
  gap: 6px;
}
.two-col,
.score-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.score-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #f4f5ee;
  padding: 13px;
  border-radius: 10px;
}
.score-fields input {
  width: 100%;
}
.dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #ebe9e1;
  padding: 15px 27px;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #28523e;
  color: white;
  padding: 12px 17px;
  border-radius: 10px;
  box-shadow: 0 10px 30px #24433155;
  font-size: 13px;
  z-index: 10;
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .content {
    padding: 28px 20px 55px;
  }
  .hero-mark {
    display: none;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    width: 100%;
  }
  .topbar {
    padding: 0 20px;
  }
}
@media (max-width: 580px) {
  .topbar {
    height: 66px;
  }
  .brand {
    font-size: 18px;
  }
  .private-badge,
  .text-button {
    display: none;
  }
  .hero h1 {
    font-size: 43px;
  }
  .toolbar {
    margin: 22px 0;
  }
  .tabs {
    width: 100%;
    justify-content: space-between;
  }
  .tabs button {
    padding: 9px 8px;
  }
  .paper-card {
    padding: 18px;
    gap: 10px;
  }
  .paper-card h2 {
    font-size: 20px;
  }
  .paper-side {
    min-width: 50px;
  }
  .card-link {
    font-size: 11px;
  }
  .login-card {
    padding: 30px;
  }
  .two-col,
  .score-fields {
    grid-template-columns: 1fr 1fr;
  }
}
