/* public/shelf.css */
:root {
  color-scheme: light;
  --later-paper:#fff8e8;
  --later-ink:#172b3a;
  --later-red:#c63c2e;
  --later-blue:#78c5e1;
  --later-yellow:#f4cc46;
  --later-muted:#51606a;
  --later-line:#172b3a2e;
  --later-input-line:#172b3a66;
  --later-form-line:#172b3a45;
  --later-panel:#fffdf6;
  --later-status:#365261;
  --later-notice:#172b3a;
  --later-notice-ink:#fff8e8;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --later-paper:#191e22;
  --later-ink:#e5dfd1;
  --later-red:#ef856d;
  --later-blue:#527d8d;
  --later-yellow:#d4ac4a;
  --later-muted:#a9b0b0;
  --later-line:#e5dfd12b;
  --later-input-line:#e5dfd16b;
  --later-form-line:#e5dfd145;
  --later-panel:#22282d;
  --later-status:#b6cbd0;
  --later-notice:#e5dfd1;
  --later-notice-ink:#191e22;
}
#app {
  background: var(--later-paper);
  color: var(--later-ink);
  font:
    14px/1.5 Arial,
    Helvetica,
    sans-serif;
  padding: 36px 40px 22px;
  min-height: 660px;
}
#app * {
  box-sizing: border-box;
}
#app [hidden] {
  display: none !important;
}
#app button,
#app input {
  font: inherit;
  color: inherit;
}
#app button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  text-align: left;
}
#app a {
  color: inherit;
  text-decoration: none;
}
#app a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
#app :focus-visible {
  outline: 2px solid var(--later-red);
  outline-offset: 5px;
}
#app .lt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 51px;
}
#app .lt-logo {
  font: italic 400 43px/.8 Georgia, serif;
  letter-spacing: -3px;
  color: var(--later-red);
}
#app .lt-add {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 13px;
}
#app .lt-add span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--later-yellow);
  font-size: 23px;
  line-height: 1;
}
#app .lt-layout {
  display: grid;
  grid-template-columns: 153px minmax(0, 1fr);
  gap: 44px;
}
#app .lt-nav {
  padding-top: 5px;
}
#app .lt-owner {
  font-size: 12px;
  margin: 0 0 25px;
  line-height: 1.6;
}
#app .lt-owner span {
  display: block;
  color: var(--later-muted);
  font-size: 11px;
}
#app .lt-filter {
  display: flex;
  gap: 13px;
  align-items: center;
  width: 100%;
  font-size: 13px;
}
#app .lt-filter::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border: 1px solid transparent;
  border-radius: 50%;
}
#app .lt-filter[aria-pressed=true]::before {
  background: var(--later-red);
}
#app .lt-filter[aria-pressed=true] {
  color: var(--later-red);
}
#app .lt-filter small {
  font-size: 11px;
  color: var(--later-muted);
  margin-left: auto;
  padding-right: 7px;
}
#app .lt-device {
  margin: 53px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--later-line);
  font-size: 11px;
  color: var(--later-muted);
  line-height: 1.6;
  max-width: 138px;
}
#app .lt-device strong {
  font-weight: 400;
  color: var(--later-ink);
  display: block;
  margin-bottom: 5px;
}
#app .lt-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}
#app h1 {
  font:
    400 clamp(36px, 5vw, 54px)/1 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: -2.5px;
  margin: 0;
}
#app .lt-total {
  font: 400 12px/1 ui-monospace, monospace;
  align-self: start;
  padding-top: 5px;
}
#app .lt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 28px;
  align-items: start;
}
#app .lt-item {
  min-width: 0;
}
#app .lt-object {
  display: block;
  width: 100%;
  padding: 0;
  position: relative;
  background: var(--later-blue);
}
#app .lt-object img {
  display: block;
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
  object-position: center;
}
#app .lt-link-cover {
  min-height: 180px;
  display: flex;
  align-items: end;
  padding: 23px;
  font: 400 26px/1.15 Georgia, serif;
  overflow-wrap: anywhere;
}
#app .lt-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  line-height: 1.4;
  margin: 14px 0 9px;
  color: var(--later-muted);
}
#app h2 {
  font:
    400 27px/1.08 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: -1px;
  margin: 0 0 10px;
}
#app .lt-authors {
  font-size: 11px;
  line-height: 1.5;
  margin: 0 0 15px;
  color: var(--later-muted);
}
#app .lt-actions {
  display: flex;
  gap: 6px 19px;
  flex-wrap: wrap;
  border-top: 1px solid var(--later-line);
  margin-top: 18px;
}
#app .lt-actions button,
#app .lt-actions a {
  font-size: 11px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 5px;
}
#app .lt-actions button:hover {
  color: var(--later-red);
}
#app .lt-info {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 12px;
}
#app .lt-status {
  font-size: 11px;
  margin: 14px 0 0;
  color: var(--later-status);
}
#app .lt-status span {
  background: var(--later-blue);
  padding: 3px 6px;
}
#app .lt-empty {
  grid-column: 1/-1;
  padding: 16px 0 90px;
  max-width: 330px;
}
#app .lt-empty h2 {
  margin-bottom: 16px;
}
#app .lt-empty p {
  font-size: 13px;
}
#app .lt-footer {
  margin-top: 58px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  font: 400 11px/1.5 ui-monospace, monospace;
  color: var(--later-muted);
}
#app .lt-form {
  border: 1px solid var(--later-form-line);
  padding: 22px;
  margin-bottom: 30px;
  max-width: 420px;
  background: var(--later-panel);
}
#app .lt-form label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
#app input {
  display: block;
  width: 100%;
  font-size: 16px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--later-input-line);
  padding: 8px 0;
  margin-bottom: 20px;
  border-radius: 0;
  min-width: 0;
}
#app .lt-form-actions {
  display: flex;
  gap: 24px;
}
#app .lt-form-actions button {
  font-size: 13px;
}
#app .lt-form-actions button:first-child {
  background: var(--later-yellow);
  padding: 0 14px;
}
#app .lt-form p,
#app [role=alert] {
  font-size: 11px;
  line-height: 1.5;
}
#app .lt-message {
  font-size: 12px;
  margin-top: 20px;
  max-width: 490px;
}
#app.lt-blue .lt-object {
  padding: 16px;
  background: var(--later-blue);
}
#app.lt-blue .lt-object img {
  aspect-ratio: 1.48;
}
@media (min-width: 1100px) {
  #app .lt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 730px) {
  #app {
    padding: 25px 24px 20px;
    min-height: 620px;
  }
  #app .lt-layout {
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 26px;
  }
  #app .lt-grid {
    grid-template-columns: 1fr;
    max-width: 375px;
  }
  #app .lt-top {
    margin-bottom: 40px;
  }
}
@media (max-width: 480px) {
  #app {
    padding: 25px 20px 20px;
    min-height: 0;
  }
  #app .lt-top {
    margin-bottom: 32px;
  }
  #app .lt-logo {
    font-size: 39px;
  }
  #app .lt-layout {
    display: flex;
    flex-direction: column;
    gap: 27px;
  }
  #app .lt-owner {
    display: none;
  }
  #app .lt-nav {
    padding: 0;
    display: flex;
    gap: 23px;
    flex-wrap: wrap;
  }
  #app .lt-filter {
    width: auto;
    gap: 7px;
    min-height: 44px;
    font-size: 12px;
  }
  #app .lt-filter small {
    margin-left: 0;
    padding: 0;
  }
  #app .lt-filter::before {
    display: none;
  }
  #app .lt-filter[aria-pressed=true] {
    text-decoration: underline;
    text-underline-offset: 6px;
  }
  #app .lt-device {
    display: none;
  }
  #app h1 {
    font-size: 40px;
    letter-spacing: -2px;
  }
  #app .lt-heading {
    margin-bottom: 25px;
  }
  #app .lt-grid {
    max-width: none;
  }
  #app .lt-object img {
    aspect-ratio: 1.48;
  }
  #app .lt-footer {
    margin-top: 35px;
  }
  #app h2 {
    font-size: 29px;
  }
  #app .lt-actions {
    gap: 5px 18px;
  }
}
body {
  margin: 0;
  background: var(--later-paper);
}
#app {
  min-height: 100vh;
}
#app a,
#app button {
  touch-action: manipulation;
}
#app .lt-item h2 {
  overflow-wrap: anywhere;
}
#app .lt-status {
  min-height: 22px;
}
#app .lt-caption {
  flex-wrap: wrap;
}
#app .lt-actions button:disabled {
  opacity: .5;
  cursor: wait;
}
#app .lt-form {
  box-sizing: border-box;
}
#app .lt-form label {
  font-size: 14px;
}
#app .lt-filter {
  font-size: 14px;
}
#app .lt-actions button,
#app .lt-actions a,
#app .lt-authors,
#app .lt-caption {
  font-size: 13px;
}
#app .lt-owner,
#app .lt-owner span,
#app .lt-device {
  font-size: 13px;
}
#app .lt-message {
  font-size: 14px;
}
#app .lt-session {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13px;
}
#app .lt-session a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
#app .reader {
  max-width: 720px;
  margin: 0 auto;
}
#app .reader h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  margin: 22px 0;
}
#app .reader-meta {
  font-size: 14px;
  color: var(--later-muted);
  margin: 20px 0;
}
#app .reader-body {
  font: 20px/1.65 Georgia, serif;
  overflow-wrap: anywhere;
  margin-top: 42px;
}
#app .reader-body h1,
#app .reader-body h2,
#app .reader-body h3 {
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  line-height: 1.25;
  letter-spacing: -.5px;
  margin: 1.8em 0 .6em;
}
#app .reader-body p {
  margin: 0 0 1.2em;
}
#app .reader-body img {
  max-width: 100%;
  height: auto;
}
#app .reader-body figure {
  margin: 25px 0;
}
#app .reader-body figcaption {
  font: 14px/1.5 Arial, sans-serif;
  color: var(--later-muted);
}
#app .reader-body a {
  text-decoration: underline;
}
#app .reader-body blockquote {
  border-left: 2px solid var(--later-red);
  padding-left: 22px;
  margin-left: 0;
}
#app .reader-body pre {
  white-space: pre-wrap;
}
#app .reader-tools {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--later-line);
}
#app .reader-tools a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
#app .conflict {
  font-size: 14px;
  border-left: 3px solid var(--later-red);
  padding: 10px 14px;
}
#app .lt-link-cover {
  background: transparent;
  border-bottom: 1px solid var(--later-line);
}
#app .lt-object:has(.lt-link-cover) {
  background: transparent;
}
#app .lt-footer button {
  font-size: 13px;
}
#app .lt-message a {
  text-decoration: underline;
}
#app .lt-add {
  font-size: 14px;
}
#app button:disabled {
  opacity: .6;
}
@media (max-width: 480px) {
  #app .reader-body {
    font-size: 19px;
  }
  #app .lt-session span {
    display: none;
  }
  #app .lt-top {
    gap: 10px;
  }
}
#app {
  max-width: 1240px;
  margin-inline: auto;
  padding: 42px 48px 28px;
}
#app .lt-top {
  margin-bottom: 54px;
}
#app .lt-layout {
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 52px;
}
#app .lt-heading {
  margin-bottom: 26px;
}
#app h1 {
  font-size: 44px;
  letter-spacing: -2px;
}
#app .lt-grid {
  grid-template-columns: 1fr;
  gap: 0;
}
#app .lt-item {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--later-line);
}
#app .lt-object {
  align-self: start;
}
#app .lt-object img {
  aspect-ratio: 1.48;
}
#app .lt-item-copy {
  min-width: 0;
}
#app .lt-caption {
  margin: 0 0 13px;
  font-size: 12px;
  gap: 10px;
}
#app .lt-caption span:last-child {
  white-space: nowrap;
}
#app .lt-item h2 {
  font-size: 29px;
  line-height: 1.12;
  max-width: 650px;
  margin: 0 0 12px;
}
#app .lt-authors {
  margin-bottom: 11px;
}
#app .lt-actions {
  border-top: 0;
  margin-top: 8px;
  gap: 4px 20px;
}
#app .lt-status {
  margin-top: 4px;
}
#app .lt-device {
  margin-top: 42px;
}
#app .lt-link-cover {
  min-height: 144px;
  font-size: 21px;
  padding: 18px;
}
#app .lt-footer {
  margin-top: 70px;
  padding-top: 18px;
  border-top: 1px solid var(--later-line);
}
#app .login-panel {
  max-width: 410px;
  margin: 100px auto 50px;
}
#app .login-eyebrow {
  color: var(--later-muted);
  font-size: 13px;
  margin-bottom: 24px;
}
#app .login-panel h1 {
  font-size: 46px;
  margin-bottom: 22px;
}
#app .login-panel form {
  margin-top: 30px;
}
#app .login-panel label {
  display: block;
  font-size: 14px;
}
#app .login-submit {
  padding: 0 20px;
  background: var(--later-yellow);
  min-width: 124px;
  text-align: center;
  margin-top: 10px;
}
#app .login-secondary {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
}
#app .login-note {
  font-size: 12px;
  color: var(--later-muted);
  margin-top: 36px;
  line-height: 1.6;
}
#app #login-status {
  font-size: 14px;
  line-height: 1.6;
}
@media (min-width: 1600px) {
  #app {
    padding-top: 56px;
  }
}
@media (max-width: 1000px) and (min-width: 681px) {
  #app {
    padding: 32px;
  }
  #app .lt-layout {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 32px;
  }
  #app .lt-item {
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 22px;
  }
  #app .lt-item h2 {
    font-size: 25px;
  }
}
@media (max-width: 680px) {
  #app {
    padding: 28px 22px 20px;
  }
  #app .lt-top {
    margin-bottom: 30px;
  }
  #app .lt-layout {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }
  #app .lt-owner,
  #app .lt-device {
    display: none;
  }
  #app .lt-nav {
    padding: 0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }
  #app .lt-filter {
    width: auto;
    gap: 7px;
    font-size: 13px;
  }
  #app .lt-filter small {
    margin: 0;
    padding: 0;
  }
  #app .lt-filter::before {
    display: none;
  }
  #app .lt-filter[aria-pressed=true] {
    text-decoration: underline;
    text-underline-offset: 6px;
  }
  #app .lt-grid {
    max-width: none;
  }
  #app .lt-item {
    display: block;
    padding: 0 0 30px;
    border-top: 0;
  }
  #app .lt-caption {
    margin: 16px 0 12px;
  }
  #app .lt-item h2 {
    font-size: 29px;
  }
  #app .lt-actions {
    border-top: 1px solid var(--later-line);
    margin-top: 16px;
  }
  #app .lt-footer {
    margin-top: 30px;
  }
  #app .login-panel {
    margin-top: 55px;
  }
  #app .login-panel h1 {
    font-size: 39px;
  }
  #app .login-app .lt-top {
    gap: 14px;
  }
}
@media (max-width: 360px) {
  #app {
    padding-inline: 18px;
  }
  #app .lt-session {
    gap: 12px;
  }
  #app .lt-logo {
    font-size: 36px;
  }
  #app .lt-session,
  #app .lt-add {
    font-size: 12px;
  }
  #app .lt-nav {
    gap: 18px;
  }
}
#app .lt-message {
  position: fixed;
  z-index: 10;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  margin: 0;
  padding: 12px 16px;
  background: var(--later-notice);
  color: var(--later-notice-ink);
  border-radius: 3px;
  box-shadow: 0 3px 18px #172b3a20;
  overflow-wrap: anywhere;
}
#app .lt-message button {
  flex: none;
  width: 32px;
  min-height: 44px;
  text-align: center;
  font-size: 24px;
  color: var(--later-notice-ink);
}
#app .lt-message span {
  min-width: 0;
}
#app .lt-footer {
  font:
    13px/1.5 Arial,
    Helvetica,
    sans-serif;
}
#app .lt-footer button {
  text-decoration: underline;
  text-underline-offset: 4px;
}
#app .lt-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 16px;
  white-space: normal;
  font-size: 12px;
  color: var(--later-muted);
}
#app .lt-dates time {
  white-space: nowrap;
}
#app .reader-dates {
  margin: 0 0 18px;
}
#app .lt-caption {
  align-items: baseline;
}
#app .lt-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
#app .lt-theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  border-radius: 50%;
  color: var(--later-muted);
}
#app .lt-theme-toggle:hover {
  background: var(--later-line);
  color: var(--later-ink);
}
#app .lt-theme-toggle svg {
  width: 19px;
  height: 19px;
}
#app .lt-theme-toggle .theme-sun {
  display: none;
}
:root[data-theme=dark] #app .theme-moon {
  display: none;
}
:root[data-theme=dark] #app .theme-sun {
  display: block;
}
#app .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#app .lt-add span,
#app .login-submit,
#app .lt-form-actions button:first-child {
  color: #172b3a;
}
#app input::placeholder {
  color: var(--later-muted);
  opacity: 1;
}
@media (max-width: 680px) {
  #app .lt-session {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 14px;
  }
  #app .lt-top {
    align-items: center;
  }
  #app .lt-brand {
    gap: 6px;
  }
  #app .lt-dates {
    gap: 3px 12px;
  }
  #app .lt-caption .lt-dates {
    width: 100%;
  }
}
.highlight-draft {
  border-top: 1px solid var(--later-line);
  padding: 24px 0;
  margin-top: 32px;
}
.highlight-draft blockquote {
  max-height: 180px;
  overflow: auto;
  margin: 16px 0;
  font: 18px/1.6 Georgia, serif;
}
.highlight-draft button {
  margin-right: 24px;
}
#capture-selection.selection-active {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  right: 24px;
  z-index: 20;
  background: var(--later-yellow);
  color: #172b3a;
  padding: 12px 20px;
  box-shadow: 0 3px 18px #0003;
  border-radius: 3px;
}
.highlight-draft {
  margin: 16px 0 32px;
}
#app .access-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0;
}
#app .security-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--later-muted);
  font-size: 14px;
}
#app .security-panel h2 {
  font-size: 24px;
  font-weight: 400;
  margin-top: 42px;
}
#app .security-panel li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0;
}
#app .security-panel ul {
  padding: 0;
  list-style: none;
}
#app .security-panel pre {
  font-size: 14px;
  overflow: auto;
  line-height: 1.8;
}
#app #codes-panel {
  border-top: 1px solid var(--later-line);
  margin-top: 24px;
  padding: 16px 0;
}
#app #codes-panel button {
  margin-right: 24px;
}
#app #alternatives summary {
  cursor: pointer;
  margin-top: 28px;
}
#app #passkey-status:empty {
  display: none;
}
