/* ==========================================================================
   #paper — «ПОЛЯ» / paper field journal
   Scoped entirely to #paper. Loaded after styles.css.
   ========================================================================== */

#paper {
  --paper-sheet: #f3eee1;
  --paper-desk: #d8d1c1;
  --ink: #1f1e19;
  --ink-soft: #4f4b42;
  --ink-muted: #625d53;
  --red: #c23a25;
  --red-bright: #e04a31;
  --blue: #173fc0;
  --rule: #ccd7d3;
  --thread: 25%;
  background: var(--paper-desk);
  color: var(--ink);
}

/* ---- paper / desk texture ------------------------------------------------ */

#paper .paper-grain {
  opacity: .22;
}

#paper .paper-mast {
  height: 64px;
  padding: 0 30px;
  border-bottom: 1px solid #8b8478;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
}

#paper .paper-brand {
  display: flex;
  align-items: baseline;
  gap: 11px;
  min-width: 0;
}

#paper .paper-mast b {
  font: 900 20px/1 var(--serif);
  letter-spacing: .06em;
}

#paper .paper-brand span {
  font: 500 9.5px/1.2 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

#paper .paper-mast p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  font: 500 9.5px/1 var(--mono);
  letter-spacing: .11em;
  color: var(--ink-soft);
  white-space: nowrap;
}

#paper .paper-mast p i {
  width: 22px;
  height: 1px;
  background: #9a9386;
}

#paper .paper-avatar {
  justify-self: end;
  width: 38px;
  height: 38px;
  border: 1px solid #1f1e19;
  border-radius: 50%;
  background: #1f1e19;
  color: #f3eee1;
  font: 500 12px/1 var(--mono);
  transform: rotate(6deg);
  position: relative;
  display: grid;
  place-items: center;
  cursor: default;
  transition: transform .25s ease, background .25s ease;
}

#paper .paper-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid #8b8478;
  border-radius: 50%;
  transform: rotate(-8deg);
}

#paper .desk {
  min-height: calc(100vh - 64px);
  padding: 28px 250px 24px 70px;
}

/* ---- ruler: a real scale of the study day -------------------------------- */

#paper .ruler {
  display: flex;
  position: absolute;
  left: 70px;
  right: 250px;
  top: 1px;
  height: 20px;
  align-items: center;
  gap: 14px;
  z-index: 2;
  pointer-events: none;
  color: #6a655a;
}

#paper .ruler-title {
  font: 600 15px/1 var(--hand);
  transform: rotate(-2deg);
  white-space: nowrap;
}

#paper .ruler-track {
  position: relative;
  flex: 1;
  height: 16px;
  border-top: 1px solid #99917f;
  background-image: linear-gradient(90deg, #99917f 1px, transparent 1px);
  background-size: calc(100% / 24) 6px;
  background-repeat: repeat-x;
  background-position: 0 0;
}

#paper .ruler-hour {
  position: absolute;
  top: 11px;
  left: var(--x);
  transform: translateX(-50%);
  font: 500 8px/1 var(--mono);
  letter-spacing: .05em;
  color: #6a655a;
}

#paper .ruler-hour:first-of-type {
  transform: translateX(0);
}

#paper .ruler-hour.end {
  transform: translateX(-100%);
}

#paper .ruler-now {
  position: absolute;
  left: var(--x);
  top: -8px;
  width: 1px;
  height: 24px;
  background: var(--red);
}

#paper .ruler-now::before {
  content: '';
  position: absolute;
  left: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

#paper .ruler-now b {
  position: absolute;
  left: 6px;
  top: -14px;
  font: 600 13px/1 var(--hand);
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  transform: rotate(-2deg);
}

/* ---- desk objects -------------------------------------------------------- */

#paper .coffee-ring {
  width: 168px;
  height: 168px;
  left: -72px;
  bottom: 34px;
  border: 11px double #7d4a2c2b;
  border-radius: 50%;
  transform: rotate(-9deg) scaleY(.9);
  box-shadow: 0 0 0 19px #7d4a2c08, 0 0 0 20px #7d4a2c12;
}

#paper .blue-pencil {
  left: 19px;
  top: 104px;
  width: 15px;
  height: 272px;
  padding: 30px 2px 34px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(90deg, #0d2b91, #2f5bf0 42%, #1236b4 72%, #0b257f);
  color: #e8edff;
  font: 500 6px/1 var(--mono);
  letter-spacing: .12em;
  writing-mode: vertical-rl;
  text-align: center;
  transform: rotate(3deg);
  box-shadow: 4px 5px 9px #3e3a304d;
}

#paper .blue-pencil::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 14px;
  border-radius: 2px 2px 0 0;
  background: repeating-linear-gradient(90deg, #cc7f70 0 4px, #b6695b 4px 8px);
}

#paper .blue-pencil::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -22px;
  height: 24px;
  background: linear-gradient(90deg, #d7b989, #ebd3a9 48%, #bd9561);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ---- notebook ------------------------------------------------------------ */

#paper .notebook {
  width: 100%;
  max-width: 1060px;
  min-height: 660px;
  margin: 0 auto;
  padding: 25px 48px 18px 84px;
  display: flex;
  flex-direction: column;
  background-color: var(--paper-sheet);
  background-image:
    linear-gradient(90deg, transparent 53px, #e08a82 54px, #e08a82 55px, transparent 56px),
    repeating-linear-gradient(0deg, transparent 0 31px, var(--rule) 31px 32px);
  box-shadow: 2px 5px 0 #b8b0a0, 14px 22px 48px #544e4238;
  border: 1px solid #b9b09f;
  transform: rotate(-.3deg);
  animation: paperSettle .7s cubic-bezier(.2,.8,.2,1) both;
}

#paper .notebook::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #ffffff66;
  pointer-events: none;
}

#paper .rings {
  left: -17px;
  top: 56px;
  bottom: 50px;
  justify-content: space-between;
  z-index: 4;
}

#paper .rings i {
  width: 38px;
  height: 10px;
  border: 2px solid #4b4841;
  border-radius: 50%;
  background: linear-gradient(180deg, #d3cfc4, #77736a 52%, #3b3934);
  box-shadow: 0 2px 2px #0002;
}

#paper .day-thread {
  position: absolute;
  left: 54px;
  top: 62px;
  bottom: 66px;
  width: 2px;
  z-index: 2;
  pointer-events: none;
}

#paper .day-thread i {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: var(--thread, 25%);
  background: repeating-linear-gradient(180deg, #b33624 0 6px, transparent 6px 10px);
  opacity: .9;
  transition: height .55s cubic-bezier(.4,0,.2,1);
}

#paper .day-thread b {
  position: absolute;
  left: 1px;
  top: var(--thread, 25%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b33624;
  transform: translate(-50%, -50%) rotate(14deg);
  box-shadow: 0 0 0 2px var(--paper-sheet), 0 0 0 3px #b33624;
  transition: top .55s cubic-bezier(.4,0,.2,1);
}

#paper .notebook-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid #d8d1c0;
  font: 500 9.5px/1 var(--mono);
  letter-spacing: .13em;
  color: var(--ink-muted);
}

#paper .notebook-head p {
  margin: 0;
}

/* ---- title --------------------------------------------------------------- */

#paper .notebook-intro {
  position: relative;
  margin-bottom: 12px;
}

#paper .notebook h1 {
  font: 900 clamp(40px, 4.7vw, 64px)/.92 var(--serif);
  letter-spacing: -.058em;
  margin: 0;
  max-width: 820px;
  color: var(--ink);
  text-wrap: balance;
}

#paper .notebook h1 em {
  font-style: italic;
  color: #d0442c;
  position: relative;
}

#paper .notebook h1 em::after {
  content: '';
  position: absolute;
  left: -5px;
  right: -7px;
  bottom: -4px;
  height: 10px;
  border-top: 3px solid #d0442c;
  border-radius: 50%;
  transform: rotate(-2deg) scaleX(0);
  transform-origin: left center;
  animation: paperUnderline 1s cubic-bezier(.3,.8,.2,1) .25s forwards;
}

#paper .pencil-note {
  font: 600 20px/1.1 var(--hand);
  color: #4b4e49;
  margin: 6px 0 0 46%;
  max-width: 350px;
  transform: rotate(-1.4deg);
}

#paper .pencil-arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 23px;
  color: var(--red);
  transform: rotate(6deg) translateY(2px);
}

/* ---- tasks --------------------------------------------------------------- */

#paper .paper-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 40px;
  align-items: start;
  margin-top: 2px;
}

#paper .paper-tasks {
  position: relative;
  padding-top: 0;
  min-width: 0;
}

#paper .tasks-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0 8px;
  margin-bottom: 5px;
}

#paper .hand-label {
  font: 700 24px/1.1 var(--hand);
  margin: 0;
  transform: rotate(-1.5deg);
  color: #2a2923;
}

#paper .tasks-count {
  font: 500 9.5px/1 var(--mono);
  letter-spacing: .08em;
  color: #565147;
  white-space: nowrap;
}

#paper .paper-task {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid #d2cab9;
  border-radius: 2px;
  background: transparent;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
  padding: 9px 8px;
  position: relative;
  transition: background .22s ease, transform .22s ease;
}

#paper .paper-task::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}

#paper .paper-task.current::before {
  transform: scaleY(1);
}

#paper .paper-task:hover {
  background: #fffaf0a8;
  transform: translateX(3px);
}

#paper .paper-task.current {
  background: linear-gradient(90deg, #f5e6a13d, transparent 72%);
}

#paper .task-check {
  width: 28px;
  height: 28px;
  border: 1.5px solid #35322c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 500 11px/1 var(--mono);
  color: #35322c;
  background: #f8f3e7;
  position: relative;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

#paper .paper-task.current .task-check {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 0 3px #c23a2514;
}

#paper .paper-task.done .task-check {
  background: #24231e;
  border-color: #24231e;
  color: transparent;
  animation: paperCheckIn .4s cubic-bezier(.2,.9,.3,1.3) both;
}

#paper .paper-task.done .task-check::before {
  content: '';
  width: 12px;
  height: 6px;
  border-left: 2px solid #f3eee1;
  border-bottom: 2px solid #f3eee1;
  transform: translateY(-1px) rotate(-45deg);
  position: absolute;
}

#paper .task-copy {
  min-width: 0;
  display: block;
  border: 0;
  border-radius: 0;
  width: auto;
  height: auto;
  background: transparent;
  color: inherit;
}

#paper .task-copy b {
  display: inline-block;
  max-width: 100%;
  font: 600 16px/1.2 var(--sans);
  letter-spacing: -.012em;
  color: #24231e;
  text-decoration: none;
  position: relative;
}

#paper .task-copy b::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 54%;
  height: 2px;
  background: #4b4740;
  transform: scaleX(0) rotate(-1.1deg);
  transform-origin: left center;
  transition: transform .36s cubic-bezier(.4,0,.2,1);
}

#paper .paper-task.done .task-copy b {
  color: #6d675c;
  text-decoration: none;
}

#paper .paper-task.done .task-copy b::after {
  transform: scaleX(1) rotate(-1.1deg);
}

#paper .task-copy small {
  display: block;
  margin-top: 3px;
  font: 500 9.5px/1.2 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #5a554b;
}

#paper .paper-task.current .task-copy small::before {
  content: 'сейчас · ';
  color: var(--red);
  font-weight: 500;
}

#paper .paper-task.current .task-copy b {
  background: linear-gradient(transparent 62%, #f0da86 62%);
  padding: 0 2px;
  margin-left: -2px;
}

#paper .paper-task em {
  font: 500 14px/1 var(--hand);
  font-style: normal;
  color: #4d493f;
  white-space: nowrap;
  padding-left: 8px;
}

#paper .paper-task.done em {
  color: #7a7468;
}

/* ---- focus timer --------------------------------------------------------- */

#paper .focus-scribble {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding: 0;
}

#paper .focus-caption {
  position: static;
  align-self: flex-start;
  margin: 2px 0 -4px 8px;
  font: 700 22px/1 var(--hand);
  transform: rotate(-2deg);
  color: #2b2a24;
}

#paper .timer-stage {
  position: relative;
  width: 100%;
  min-height: 268px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#paper .scribble-ring {
  width: 196px;
  height: 196px;
  border: 3px solid #26251f;
  border-radius: 47% 53% 48% 52%;
  display: grid;
  place-content: center;
  text-align: center;
  position: relative;
  transform: rotate(2deg);
  background: radial-gradient(circle at 34% 24%, #fffdf4, var(--paper-sheet) 68%);
  box-shadow: 2px 1px 0 #26251f, -2px 3px 0 #26251f;
  z-index: 2;
}

#paper .scribble-ring::before {
  content: '';
  position: absolute;
  inset: -9px -6px -6px -10px;
  border: 1px solid #3b372f;
  border-radius: 52% 48% 55% 45%;
  transform: rotate(-4deg);
}

#paper .timer-label {
  font: 500 9px/1 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #6b655a;
  margin-bottom: 4px;
}

#paper .scribble-ring b {
  font: 900 42px/1 var(--serif);
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

#paper .timer-topic {
  font: 500 9px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 7px;
  color: #4f4b42;
}

#paper .orange-sun {
  width: 58px;
  height: 58px;
  top: 14px;
  right: 8px;
  background: #f25033;
  transform: rotate(12deg);
  z-index: 3;
  transition: opacity .35s ease, transform .35s ease;
  box-shadow: inset -5px -5px 0 #d63d24;
}

#paper .orange-sun i {
  width: 17px;
  height: 2px;
  background: #f25033;
  transform-origin: -21px 1px;
}

#paper .orange-sun i:nth-child(1) { transform: translate(48px); }
#paper .orange-sun i:nth-child(2) { transform: translate(48px) rotate(45deg); }
#paper .orange-sun i:nth-child(3) { transform: translate(48px) rotate(90deg); }
#paper .orange-sun i:nth-child(4) { transform: translate(48px) rotate(135deg); }
#paper .orange-sun i:nth-child(5) { transform: translate(48px) rotate(180deg); }
#paper .orange-sun i:nth-child(6) { transform: translate(48px) rotate(225deg); }
#paper .orange-sun i:nth-child(7) { transform: translate(48px) rotate(270deg); }
#paper .orange-sun i:nth-child(8) { transform: translate(48px) rotate(315deg); }

#paper.is-running .orange-sun {
  animation: paperSun 3.2s ease-in-out infinite;
}

#paper.timer-done .orange-sun {
  opacity: .35;
  transform: rotate(12deg) scale(.82);
}

#paper.timer-done .timer-label {
  color: #b33624;
}

#paper.timer-done .scribble-ring {
  box-shadow: 2px 1px 0 #b33624, -2px 3px 0 #b33624;
}

#paper .timer-ticks {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 1;
}

#paper .timer-ticks i {
  --r: 112px;
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: #b33624;
  transform-origin: 50% 0;
  transform: rotate(calc(var(--i) * 14.4deg)) translateY(calc(var(--r) * -1));
  transition: background .4s ease, opacity .4s ease, height .4s ease;
}

#paper .timer-ticks i:nth-child(5n + 1) {
  height: 11px;
}

#paper .timer-ticks i.spent {
  background: #b9b1a1;
  opacity: .55;
  height: 5px;
}

#paper .scribble-button {
  position: absolute;
  right: 3px;
  bottom: 5px;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
  transform: rotate(-7deg);
  box-shadow: 4px 5px 0 #15140f;
  z-index: 4;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

#paper .scribble-button::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid #ffffff5c;
  border-radius: 50%;
}

#paper .scribble-button:hover {
  transform: rotate(-2deg) scale(1.04);
  background: #1d47d4;
  box-shadow: 5px 6px 0 #15140f;
}

#paper .scribble-button:active {
  transform: rotate(-2deg) scale(.98) translate(2px, 2px);
  box-shadow: 2px 3px 0 #15140f;
}

#paper .scribble-button i {
  font-style: normal;
  font-size: 17px;
  line-height: 1;
}

#paper .scribble-button span {
  font: 500 9.5px/1.1 var(--mono);
  letter-spacing: .02em;
  margin-top: 4px;
}

#paper .scribble-button.running {
  background: #b33624;
}

#paper .timer-note {
  font: 600 18px/1.1 var(--hand);
  color: #3d3b34;
  margin: 4px 0 0;
  text-align: center;
}

#paper .timer-note b {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

#paper .timer-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
  margin-top: 8px;
}

#paper .timer-state {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font: 500 9.5px/1.3 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #5a554b;
}

#paper .timer-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8d877b;
  flex: none;
}

#paper.is-running .timer-state i {
  background: var(--red);
  box-shadow: 0 0 0 3px #c23a2520;
  animation: paperPulse 1.8s ease-in-out infinite;
}

#paper .timer-reset {
  border: 0;
  border-bottom: 1px solid #9d9688;
  background: transparent;
  color: #5a554b;
  font: 500 9.5px/1.4 var(--mono);
  letter-spacing: .05em;
  padding: 2px 0;
  cursor: pointer;
  white-space: nowrap;
}

#paper .timer-reset:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ---- the stamp that appears when the day is assembled ------------------- */

#paper .day-stamp {
  position: absolute;
  right: 0;
  top: 0;
  width: 132px;
  padding: 9px 10px 8px;
  border: 3px double #b33624;
  border-radius: 4px;
  color: #b33624;
  text-align: center;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: rotate(8deg) scale(1.45);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.9,.3,1.2);
  mix-blend-mode: multiply;
}

#paper .day-stamp b {
  display: block;
  font: 900 14px/1.02 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}

#paper .day-stamp span {
  display: block;
  margin-top: 4px;
  font: 500 8px/1 var(--mono);
  letter-spacing: .18em;
}

#paper.day-complete .day-stamp {
  opacity: .92;
  transform: rotate(6deg) scale(1);
}

#paper.day-complete .orange-sun {
  opacity: 0;
  transform: rotate(12deg) scale(.7);
}

/* ---- week rhythm --------------------------------------------------------- */

#paper .ink-progress {
  display: block;
  margin-top: 12px;
  padding: 10px 0 17px;
  border-top: 1px dashed #cfc7b6;
}

#paper .ink-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}

#paper .ink-head > span {
  font: 700 23px/1.1 var(--hand);
  transform: rotate(-2deg);
}

#paper .ink-head em {
  font: 500 9px/1 var(--mono);
  font-style: normal;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

#paper .ink-days {
  height: 74px;
  display: flex;
  align-items: flex-end;
  gap: 4.4%;
  padding: 0 18px 0 6px;
  border-bottom: 2px solid #26251f;
}

#paper .ink-days > i {
  width: 8.4%;
  height: var(--h);
  min-height: 4px;
  background: #26251f;
  position: relative;
  transform: skew(-4deg);
  border-radius: 1px 1px 0 0;
  transition: height .5s cubic-bezier(.2,.8,.2,1), background .25s ease;
}

#paper .ink-days > i.today {
  background: #d0442c;
}

#paper .ink-days > i:hover {
  background: #47443b;
}

#paper .ink-days > i.today:hover {
  background: #b33624;
}

#paper .ink-days b {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%) skew(4deg);
  font: 500 9.5px/1 var(--mono);
  letter-spacing: .05em;
  color: #4f4b42;
}

#paper .ink-days > i.today b {
  color: #b33624;
  font-weight: 500;
}

#paper .bar-value {
  position: absolute;
  left: 50%;
  top: -17px;
  transform: translateX(-50%) skew(4deg);
  font: 500 9px/1 var(--mono);
  letter-spacing: .03em;
  color: #b33624;
  white-space: nowrap;
}

/* ---- notebook footer ----------------------------------------------------- */

#paper .notebook-footer {
  position: static;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #d8d1c0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font: 500 9px/1.3 var(--mono);
  letter-spacing: .06em;
  color: #5c574d;
}

#paper .notebook-footer > span {
  white-space: nowrap;
}

#paper #paperProgress {
  color: var(--ink);
  padding: 2px 5px;
  background: linear-gradient(transparent 56%, #f1dc8b 56%);
}

#paper.day-complete #paperProgress {
  background: linear-gradient(transparent 56%, #efb9a9 56%);
}

/* ---- sticky note --------------------------------------------------------- */

#paper .desk-notes {
  display: contents;
}

#paper .sticky-note {
  width: 200px;
  height: auto;
  min-height: 192px;
  right: 42px;
  top: 82px;
  padding: 40px 21px 18px;
  background: #f6e26b;
  transform: rotate(4.5deg);
  box-shadow: 8px 12px 25px #6b64553d;
  clip-path: polygon(0 2%, 97% 0, 100% 95%, 4% 100%);
}

#paper .sticky-note .tape {
  width: 82px;
  height: 25px;
  top: -7px;
  left: 55px;
  background: #e7e0c2b8;
  transform: rotate(-4deg);
}

#paper .sticky-note p {
  font: 600 24px/1.04 var(--hand);
  color: #2e2a1a;
  margin: 0;
}

#paper .sticky-note p b {
  color: #173fc0;
  font-weight: 700;
}

#paper .sticky-note div {
  font: 500 10px/1 var(--hand);
  color: #5c5537;
  margin-top: 14px;
}

/* ---- agenda -------------------------------------------------------------- */

#paper .paper-agenda {
  width: 244px;
  right: 24px;
  top: 352px;
  padding: 23px 20px 15px;
  background: #f6f1e5;
  border: 1px solid #a9a294;
  transform: rotate(-1.8deg);
  box-shadow: 6px 9px 15px #5d574936;
}

#paper .paper-agenda::before {
  inset: 5px;
  border: 1px dashed #c6beae;
  pointer-events: none;
}

#paper .red-pin {
  width: 14px;
  height: 14px;
  top: 5px;
  left: 50%;
  background: #d0442c;
  box-shadow: 2px 3px 3px #3335;
  pointer-events: none;
}

#paper .agenda-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

#paper .paper-agenda h2 {
  font: 700 25px/1.1 var(--hand);
  margin: 0;
}

#paper .agenda-head > span {
  font: 500 8.5px/1 var(--mono);
  letter-spacing: .08em;
  color: #746e62;
  white-space: nowrap;
}

#paper .paper-agenda p {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1px 8px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #c9c2b5;
}

#paper .paper-agenda time {
  font: 500 9px/1.5 var(--mono);
  letter-spacing: .03em;
  color: #5f5a50;
}

#paper .agenda-copy {
  display: block;
  min-width: 0;
}

#paper .paper-agenda b,
#paper .paper-agenda em {
  display: block;
}

#paper .paper-agenda b {
  font: 600 11px/1.25 var(--sans);
  color: #26251f;
}

#paper .paper-agenda em {
  font: 500 14px/1.2 var(--hand);
  font-style: normal;
  color: #555046;
}

#paper .agenda-add {
  border: 0;
  background: transparent;
  font: 700 14px/1 var(--hand);
  color: var(--blue);
  padding: 11px 0 2px;
  cursor: pointer;
  display: inline-block;
}

#paper .agenda-add:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#paper .agenda-form {
  display: flex;
  gap: 5px;
  align-items: center;
  padding-top: 8px;
}

#paper .agenda-form[hidden] {
  display: none;
}

#paper .agenda-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1.5px solid #59544a;
  background: transparent;
  font: 600 15px/1.4 var(--hand);
  color: #2b2922;
  padding: 3px 1px;
  border-radius: 0;
}

#paper .agenda-form input::placeholder {
  color: #8c8578;
}

#paper .agenda-form button {
  flex: none;
  width: 27px;
  height: 27px;
  border: 1px solid #4b473e;
  border-radius: 50%;
  background: transparent;
  color: #2b2922;
  cursor: pointer;
  font: 500 12px/1 var(--mono);
}

#paper .agenda-form button:hover {
  background: var(--ink);
  color: var(--paper-sheet);
}

#paper .agenda-item-new b {
  color: var(--blue);
}

/* ---- accessible focus ---------------------------------------------------- */

#paper button:focus-visible,
#paper input:focus-visible {
  outline: 3px solid #173fc0;
  outline-offset: 3px;
}

#paper .paper-task:focus-visible {
  outline-offset: -3px;
  background: #fff9e9;
}

#paper .scribble-button:focus-visible {
  outline: 3px solid #173fc0;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px var(--paper-sheet), 4px 5px 0 #15140f;
}

#paper .agenda-form input:focus-visible {
  outline-offset: 2px;
}

#paper .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- motion -------------------------------------------------------------- */

@keyframes paperSettle {
  from { opacity: 0; transform: rotate(.4deg) translateY(10px); }
  to   { opacity: 1; transform: rotate(-.3deg) translateY(0); }
}

@keyframes paperUnderline {
  to { transform: rotate(-2deg) scaleX(1); }
}

@keyframes paperCheckIn {
  0%   { transform: scale(.7); }
  55%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes paperSun {
  0%, 100% { transform: rotate(12deg) scale(1); }
  50%      { transform: rotate(20deg) scale(1.06); }
}

@keyframes paperPulse {
  0%, 100% { box-shadow: 0 0 0 3px #c23a2520; }
  50%      { box-shadow: 0 0 0 6px #c23a2508; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  #paper .desk {
    padding: 30px 30px 40px;
  }

  #paper .notebook {
    max-width: none;
  }

  #paper .ruler,
  #paper .blue-pencil,
  #paper .coffee-ring {
    display: none;
  }

  #paper .sticky-note {
    position: relative;
    inset: auto;
    width: 190px;
    min-height: 172px;
    margin: 30px 8px 0 auto;
    transform: rotate(3deg);
  }

  #paper .paper-agenda {
    position: relative;
    inset: auto;
    width: 280px;
    margin: 26px 0 0 auto;
    transform: rotate(-1.2deg);
  }

  #paper .desk-notes {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 34px;
    padding: 0 14px;
  }

  #paper .sticky-note,
  #paper .paper-agenda {
    display: block;
  }

  #paper .sticky-note {
    margin: 30px 0 0;
    order: 1;
  }

  #paper .paper-agenda {
    margin: 26px 0 0;
    order: 2;
  }
}

@media (max-width: 960px) {
  #paper .paper-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  #paper .focus-scribble {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
  }

  #paper .timer-stage {
    min-height: 292px;
  }

  #paper .focus-caption {
    margin-left: 0;
  }

  #paper .desk-notes {
    justify-content: center;
    flex-wrap: wrap;
    gap: 26px;
    padding: 0;
  }

  #paper .sticky-note {
    margin: 24px 0 0;
    order: 2;
  }

  #paper .paper-agenda {
    margin: 24px 0 0;
    order: 1;
  }
}

@media (max-width: 640px) {
  #paper .paper-mast {
    height: 58px;
    padding: 0 16px;
    grid-template-columns: 1fr auto;
  }

  #paper .paper-mast p {
    display: none;
  }

  #paper .paper-brand span {
    display: none;
  }

  #paper .paper-mast b {
    font-size: 18px;
  }

  #paper .paper-avatar {
    width: 34px;
    height: 34px;
  }

  #paper .desk {
    min-height: calc(100vh - 58px);
    padding: 14px 10px 104px;
  }

  #paper .notebook {
    min-height: 0;
    padding: 23px 16px 20px 42px;
    background-image:
      linear-gradient(90deg, transparent 29px, #e08a82 30px, #e08a82 31px, transparent 32px),
      repeating-linear-gradient(0deg, transparent 0 31px, var(--rule) 31px 32px);
    transform: none;
    border-left: 0;
    animation: none;
    box-shadow: 2px 4px 0 #b8b0a0, 10px 14px 30px #544e4230;
  }

  #paper .rings {
    display: none;
  }

  #paper .day-thread {
    left: 30px;
    top: 52px;
    bottom: 54px;
  }

  #paper .notebook-head {
    margin-bottom: 14px;
    padding-bottom: 8px;
    font-size: 8.5px;
    letter-spacing: .1em;
  }

  #paper .notebook h1 {
    font-size: clamp(33px, 9.6vw, 38px);
    letter-spacing: -.055em;
    line-height: .95;
  }

  #paper .notebook h1 em::after {
    height: 8px;
    bottom: -2px;
  }

  #paper .pencil-note {
    margin: 9px 0 0;
    max-width: none;
    font-size: 17.5px;
    line-height: 1.12;
    transform: rotate(-.8deg);
  }

  #paper .pencil-arrow {
    font-size: 20px;
  }

  #paper .paper-layout {
    gap: 22px;
    margin-top: 8px;
  }

  #paper .tasks-head {
    padding: 0 4px;
  }

  #paper .hand-label {
    font-size: 22px;
  }

  #paper .paper-task {
    min-height: 58px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 8px 4px;
  }

  #paper .paper-task:hover {
    transform: none;
  }

  #paper .task-check {
    width: 26px;
    height: 26px;
  }

  #paper .task-copy b {
    font-size: 16px;
  }

  #paper .task-copy small {
    font-size: 9px;
    letter-spacing: .06em;
  }

  #paper .paper-task em {
    font-size: 13px;
    padding-left: 4px;
  }

  #paper .focus-scribble {
    max-width: none;
    padding-top: 0;
    border-top: 0;
  }

  #paper .paper-tasks {
    padding-top: 16px;
    border-top: 1px dashed #cfc7b6;
  }

  #paper .focus-caption {
    margin: 0 0 -2px;
    font-size: 21px;
  }

  #paper .timer-stage {
    min-height: 244px;
  }

  #paper .scribble-ring {
    width: 170px;
    height: 170px;
  }

  #paper .scribble-ring b {
    font-size: 36px;
  }

  #paper .timer-topic {
    font-size: 8px;
  }

  #paper .timer-ticks i {
    --r: 95px;
    height: 7px;
  }

  #paper .timer-ticks i:nth-child(5n + 1) {
    height: 9px;
  }

  #paper .orange-sun {
    width: 46px;
    height: 46px;
    top: 18px;
    right: 2px;
  }

  #paper .orange-sun i {
    transform-origin: -18px 1px;
  }

  #paper .orange-sun i:nth-child(1) { transform: translate(42px); }
  #paper .orange-sun i:nth-child(2) { transform: translate(42px) rotate(45deg); }
  #paper .orange-sun i:nth-child(3) { transform: translate(42px) rotate(90deg); }
  #paper .orange-sun i:nth-child(4) { transform: translate(42px) rotate(135deg); }
  #paper .orange-sun i:nth-child(5) { transform: translate(42px) rotate(180deg); }
  #paper .orange-sun i:nth-child(6) { transform: translate(42px) rotate(225deg); }
  #paper .orange-sun i:nth-child(7) { transform: translate(42px) rotate(270deg); }
  #paper .orange-sun i:nth-child(8) { transform: translate(42px) rotate(315deg); }

  #paper .scribble-button {
    width: 76px;
    height: 76px;
    right: 0;
    bottom: 2px;
  }

  #paper .scribble-button span {
    font-size: 9px;
  }

  #paper .day-stamp {
    width: 112px;
    padding: 7px 8px 6px;
  }

  #paper .day-stamp b {
    font-size: 12px;
  }

  #paper .timer-note {
    font-size: 16.5px;
    margin-top: 8px;
  }

  #paper .timer-meta {
    padding: 0;
    margin-top: 8px;
  }

  #paper .timer-state {
    font-size: 9px;
    letter-spacing: .04em;
  }

  #paper .ink-progress {
    margin-top: 20px;
    padding: 14px 0 22px;
  }

  #paper .ink-head {
    display: block;
    margin-bottom: 14px;
  }

  #paper .ink-head > span {
    display: block;
    font-size: 21px;
    margin-bottom: 3px;
  }

  #paper .ink-head em {
    font-size: 8.5px;
    letter-spacing: .04em;
  }

  #paper .ink-days {
    height: 76px;
    padding: 0 10px 0 2px;
    gap: 4%;
  }

  #paper .ink-days > i {
    width: 8.6%;
  }

  #paper .ink-days b {
    font-size: 8.5px;
    bottom: -17px;
  }

  #paper .bar-value {
    font-size: 8.5px;
    top: -15px;
  }

  #paper .notebook-footer {
    padding-top: 13px;
    font-size: 8px;
    gap: 8px;
  }

  #paper .notebook-footer .foot-sign {
    display: none;
  }

  #paper #paperProgress {
    font-size: 9px;
  }

  #paper .desk-notes {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 0 4px;
  }

  #paper .paper-agenda {
    width: 100%;
    order: 1;
    margin: 26px 0 0;
    transform: rotate(-1deg);
  }

  #paper .paper-agenda p {
    padding: 9px 0;
  }

  #paper .paper-agenda time {
    font-size: 9.5px;
  }

  #paper .paper-agenda b {
    font-size: 12.5px;
  }

  #paper .paper-agenda em {
    font-size: 15px;
  }

  #paper .agenda-add {
    font-size: 15px;
  }

  #paper .agenda-head > span {
    font-size: 8.5px;
  }

  #paper .sticky-note {
    width: 176px;
    min-height: 158px;
    order: 2;
    margin: 4px 6px 0 auto;
    transform: rotate(2.4deg);
  }

  #paper .sticky-note p {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #paper *,
  #paper *::before,
  #paper *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  #paper .notebook {
    transform: rotate(-.3deg);
  }

  #paper .notebook h1 em::after {
    transform: rotate(-2deg) scaleX(1);
  }
}
