:root{
  color-scheme:light;
  --ink:#21372e;
  --muted:#718076;
  --paper:#f3f4ee;
  --green:#285642;
  --line:#dbe1d8;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
*{
  box-sizing:border-box
}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink)
}
[hidden]{
  display:none!important
}
button,input,textarea{
  font:inherit
}
button{
  min-height:48px;
  border:1px solid var(--line);
  border-radius:14px;
  background:white;
  color:var(--ink);
  padding:12px 17px;
  cursor:pointer
}
button:hover{
  filter:brightness(.97)
}
button:disabled{
  opacity:.4;
  cursor:not-allowed
}
button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:3px solid #b98332;
  outline-offset:3px
}
main{
  max-width:640px;
  margin:auto;
  padding:28px 20px 18px
}
header{
  display:flex;
  justify-content:space-between;
  align-items:center
}
.eyebrow,.deck-heading{
  font-size:10px;
  font-weight:750;
  letter-spacing:1.6px
}
h1{
  font-family:Georgia,serif;
  font-size:44px;
  letter-spacing:-2px;
  margin:7px 0 25px;
  font-weight:500
}
.dot{
  color:#bd774a
}
.quiet{
  border:0;
  background:transparent;
  color:var(--muted)
}
.today{
  display:grid;
  grid-template-columns:1fr 1fr 1.2fr;
  padding:20px 0 24px;
  border-block:1px solid var(--line);
  margin-bottom:28px;
  gap:12px
}
.today strong{
  display:block;
  font-size:24px;
  font-weight:550
}
.today span{
  font-size:11px;
  color:var(--muted)
}
#streak{
  font-size:16px;
  min-height:29px;
  letter-spacing:2px
}
.deck-heading{
  display:flex;
  justify-content:space-between;
  margin:0 5px 20px;
  color:var(--muted)
}
#deck{
  position:relative;
  min-height:420px;
  padding-bottom:18px
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:24px;
  box-shadow:0 8px 24px #233d2b08;
  position:relative;
  transform-origin:center 65%;
  touch-action:pan-y;
  user-select:text;
  overflow-wrap:anywhere
}
.card::before,.card::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:12px 10px -10px;
  background:#fafbf7;
  border:1px solid var(--line);
  border-radius:24px
}
.card::after{
  inset:24px 20px -18px;
  z-index:-2;
  background:#e9ede4
}
.card{
  isolation:isolate
}
.card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:11px
}
.priority{
  border-radius:7px;
  padding:6px 9px;
  background:#e8efe9;
  font-weight:750
}
.P0{
  color:#a22e31;
  background:#fce7e5
}
.P1{
  color:#9e5e18;
  background:#fff0d8
}
.P3{
  color:#64778d;
  background:#edf1f7
}
.test{
  background:#302b46;
  color:#fff;
  padding:5px 8px;
  border-radius:6px
}
.author{
  color:var(--muted)
}
h2{
  font-family:Georgia,serif;
  font-size:28px;
  font-weight:500;
  line-height:1.15;
  margin:22px 0 18px
}
.fact{
  font-size:14px;
  line-height:1.65
}
.meta{
  color:var(--muted);
  font-size:12px;
  line-height:1.6
}
.draft{
  padding:18px;
  background:#f5f6f0;
  border-left:3px solid #9baa91;
  border-radius:0 12px 12px 0;
  white-space:pre-wrap;
  font-size:15px;
  line-height:1.65;
  margin:18px 0
}
.options{
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.option.selected{
  background:var(--green);
  color:white
}
.actions{
  display:flex;
  gap:8px;
  margin-top:22px
}
.actions button{
  flex:1;
  padding-inline:6px
}
.primary{
  background:var(--green);
  color:#fff;
  border-color:var(--green)
}
.danger{
  color:#ad4e43
}
.label{
  position:absolute;
  top:70px;
  border:3px solid currentColor;
  padding:10px;
  font-weight:900;
  font-size:28px;
  opacity:0;
  pointer-events:none;
  z-index:3
}
.approve-label{
  left:20px;
  color:#397451;
  transform:rotate(-12deg)
}
.deny-label{
  right:20px;
  color:#b54b46;
  transform:rotate(12deg)
}
footer{
  text-align:center;
  margin-top:22px;
  font-size:11px;
  color:var(--muted);
  line-height:1.4
}
.empty{
  text-align:center;
  padding:90px 0;
  font-family:Georgia,serif;
  font-size:29px
}
#toast{
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  width:calc(100% - 32px);
  max-width:570px;
  background:#21372e;
  color:#fff;
  padding:12px 16px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  z-index:10;
  box-shadow:0 10px 30px #0002
}
#toast button{
  color:white;
  background:transparent;
  border-color:#ffffff50;
  margin-left:12px
}
dialog{
  border:0;
  border-radius:24px 24px 0 0;
  max-width:640px;
  width:100%;
  max-height:92dvh;
  margin:auto auto 0;
  padding:0;
  color:var(--ink);
  background:#fff
}
dialog::backdrop{
  background:#192b2470;
  backdrop-filter:blur(3px)
}
.sheet{
  padding:24px
}
.sheet-heading{
  display:flex;
  justify-content:space-between;
  align-items:center
}
.sheet-heading h2{
  margin:0
}
.sheet-heading button{
  border:0
}
.tabs{
  display:flex;
  border-bottom:1px solid var(--line);
  margin:20px 0
}
.tabs button{
  flex:1;
  border:0;
  border-radius:0;
  color:var(--muted)
}
.tabs [aria-selected=true]{
  border-bottom:2px solid var(--green);
  color:var(--green)
}
label{
  display:block;
  font-size:13px;
  line-height:1.6
}
textarea,input{
  display:block;
  width:100%;
  padding:14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fafbf8;
  color:var(--ink);
  margin:8px 0 16px
}
textarea{
  resize:vertical;
  line-height:1.6
}
.sheet>section>.primary{
  width:100%
}
#rewrite-status{
  font-size:13px;
  line-height:1.6
}
#login{
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:24px
}
#login form{
  width:100%;
  max-width:360px
}
#login .primary{
  width:100%
}
#login p{
  color:var(--muted);
  font-size:14px
}
.rewrite-badge{
  font-size:12px;
  color:#8b641c;
  padding:8px 0
}
.blocked{
  color:#a22e31;
  font-size:13px
}
@media(min-width:700px){
  main{
    padding-top:45px
  }
  .card{
    padding:30px
  }
  dialog{
    border-radius:24px;
    margin:auto
  }
  h1{
    font-size:50px
  }
}
@media(prefers-reduced-motion:no-preference){
  button{
    transition:background .15s
  }
  .card.reset{
    transition:transform .2s
  }
}
