:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  color: #202024;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  --tag-column: 60px;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: 100%; min-width: 0; max-width: 778px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) clamp(16px, 5vw, 34px) 120px; }
.wordmark { width: 144px; height: 50px; margin: 0 0 24px; transform: rotate(-3deg); }
.wordmark svg { display: block; width: 100%; height: 100%; overflow: visible; }
button, input, textarea { font: inherit; color: inherit; border: 0; background: transparent; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #8b9acc; outline-offset: 3px; }
[hidden] { display: none !important; }
#filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.filter { min-height: 34px; font-size: 13px; }
.filter, .tag, .theme-token { border-radius: 6px; padding: 5px 11px; font-size: 16px; font-weight: 700; line-height: 22px; color: #fff; background: var(--tag-bg, #242429); }
.filter { display: inline-flex; align-items: center; gap: 7px; opacity: .48; transition: opacity 140ms ease, transform 140ms ease; }
.filter:hover { opacity: .75; }
.filter[aria-pressed='true'] { opacity: 1; }
.filter.all { --tag-bg: #242429; }
.filter-count { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; opacity: .85; }
.filter:active { transform: scale(.96); }
.archive-filter { --tag-bg: #56565e; }
.sort-priority { display: grid; place-items: center; width: 42px; min-height: 40px; padding: 6px; border-radius: 8px; color: #74747c; }
.sort-priority:hover { color: #202024; }
.compact-menu { position: absolute; z-index: 6; width: 210px; padding: 5px; border-radius: 10px; background: #fff; box-shadow: 0 5px 24px #24242f1f; }
.compact-menu button { display: block; width: 100%; padding: 8px 10px; text-align: left; font-size: 14px; min-height: 38px; border-radius: 6px; }
.compact-menu button:hover, .compact-menu [aria-selected='true'], .compact-menu [aria-checked='true'] { background: #f2f2f5; }
.tag-editor { top: 100%; left: 0; width: min(230px, calc(100vw - 96px)); }
.tag-editor.above { top: auto; bottom: 100%; }
.tag-editor input { padding: 0 10px; font-size: 16px; font-weight: 700; }
.tag-editor input:focus-visible { outline: none; }
.tag-editor [role='listbox'] { max-height: 210px; overflow: auto; }
.task.editing-tag { position: relative; z-index: 5; }
#tasks { list-style: none; margin: 0; padding: 0; }
.today-divider { display: flex; align-items: center; gap: 12px; min-height: 44px; color: #1e6ef4; cursor: grab; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.today-divider::before, .today-divider::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .45; transition: opacity 140ms ease; }
.today-divider span { font-size: 12px; line-height: 20px; font-weight: 600; }
.today-divider:hover::before, .today-divider:hover::after, .today-divider:focus-visible::before, .today-divider:focus-visible::after { opacity: 1; }
.today-divider.dragging { opacity: .25; }
.today-divider.drag-ghost { border-radius: 0; box-shadow: none; background: #ffffffec; transform: none; }
.task, .composer { display: grid; grid-template-columns: 30px 30px minmax(0, 1fr) 30px; align-items: center; column-gap: 7px; min-height: 55px; border-bottom: 1px solid #ededf0; }
.composer { position: relative; border-bottom: 0; }
.composer .add { grid-column: 2; height: 44px; }
.draft-wrap { grid-column: 3; display: flex; align-items: center; gap: 9px; min-width: 0; }
.composer #draft { flex: 1; height: 44px; min-height: 44px; max-height: 156px; padding: 10px 0; resize: none; font-size: 16px; line-height: 24px; overflow-x: hidden; overflow-y: auto; border-radius: 0; }
.composer #draft:focus-visible { outline: none; }
.composer:focus-within { border-bottom-color: #bac1d5; }
.theme-token { flex: 0 0 auto; max-width: 100%; white-space: nowrap; }
.task button { min-height: 44px; }
.add { color: #9a9aa2; font-size: 21px; padding: 0; }
.add:hover, .priority:hover, .check:hover, .task-details:hover { color: #25252b; }
input, textarea { width: 100%; min-width: 0; padding: 0; }
input { height: 44px; }
input::placeholder, textarea::placeholder { color: #96969e; opacity: 1; }
#suggestions { position: absolute; bottom: calc(100% + 4px); left: 74px; z-index: 4; width: max-content; min-width: 180px; max-width: calc(100% - 74px); max-height: 245px; overflow: auto; padding: 5px; border-radius: 10px; background: #fff; box-shadow: 0 5px 24px #24242f1f; }
#suggestions [role='option'] { display: block; width: 100%; text-align: left; min-height: 38px; white-space: nowrap; padding: 5px 10px; border-radius: 6px; color: var(--tag-ink, #45464c); font-size: 14px; }
#suggestions.below { bottom: auto; top: calc(100% + 4px); }
#suggestions [aria-selected='true'], #suggestions button:hover { background: #f4f4f6; }
.task { cursor: grab; }
.task-main { position: relative; display: grid; grid-template-columns: var(--tag-column) minmax(0, 1fr) auto; gap: 9px; align-items: center; min-width: 0; cursor: grab; -webkit-touch-callout: none; }
.task-title { flex: 1; text-align: left; padding: 9px 0; min-width: 0; cursor: grab; user-select: none; -webkit-user-select: none; }
.tag { justify-self: start; max-width: 100%; white-space: nowrap; }
.tag:empty { visibility: hidden; }
.task .task-tag { width: max-content; max-width: none; min-height: 32px; }
.task .task-tag:empty { visibility: visible; width: 100%; padding: 5px 0; color: #94949b; background: transparent; }
.task-tag:empty::before { content: 'тег'; opacity: 0; font-size: 13px; font-weight: 400; }
.task-tag:empty:hover::before, .task-tag:empty:focus-visible::before { opacity: 1; }
.name { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.title-edit { flex: 1; font-size: 16px; outline: none; box-shadow: 0 1px #b9c2e2; }
.title-edit:focus-visible { outline: none; }
.check, .priority, .task-details { color: #93939c; padding: 0; }
.check::before { content: '○'; font-size: 20px; }
.done .check::before { content: '✓'; font-size: 15px; color: #28834c; }
.done .name { text-decoration: line-through; color: #93939a; }
.priority { position: relative; display: grid; place-items: center; line-height: 1; }
.priority-mark { position: absolute; width: 7px; height: 20px; left: calc(50% - 3.5px + (var(--mark-index) - (var(--mark-count) - 1) / 2) * 5px); top: calc(50% - 10px - var(--mark-index) * 2px); transform: skewX(-8deg); filter: drop-shadow(-1px 0 white); }
.priority-mark::before { content: ''; display: block; height: 13px; background: currentColor; clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%); }
.priority-mark::after { content: ''; display: block; width: 5px; height: 5px; margin: 2px auto 0; background: currentColor; border-radius: 1px; }
.priority-empty { font: 16px system-ui, sans-serif; }
.priority[data-level='0'] { color: #c2c2c8; }
.priority[data-level='1'] { color: #FF8D28; }
.priority[data-level='2'], .priority[data-level='3'] { color: #E9152D; }
.task-details { display: grid; place-items: center; }
.more { display: block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; box-shadow: 0 -5px currentColor, 0 5px currentColor; }
.task-indicators { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; color: #8b8b94; }
.owner-badge { display: block; max-width: 120px; padding: 4px 9px; border-radius: 15px; background: #f1f1f4; color: #64646d; font-size: 12px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note { display: block; width: 12px; }
.note i { display: block; height: 1px; background: currentColor; margin: 3px 0; }
.note i:last-child { width: 65%; }
.task.completing { pointer-events:none;min-height:0;max-height:none;height:var(--row-height);overflow:hidden;background:#dff6e7;transform:translateX(var(--swipe-x,0px));transition:height 320ms cubic-bezier(.22,.68,.28,1),padding 320ms cubic-bezier(.22,.68,.28,1),border-bottom-width 320ms cubic-bezier(.22,.68,.28,1),opacity 220ms ease,transform 320ms ease; }
.task.completing .name { color:#207a43; }
.task.completing.completion-exit { height:0;padding-block:0;border-bottom-width:0;opacity:0;transform:translateX(var(--swipe-exit,16px)); }
.task.dragging { opacity: .25; }
.drag-ghost { position: fixed; z-index: 10; margin: 0; opacity: .97 !important; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px #28283724; pointer-events: none; transform: scale(1.015); list-style: none; }
.touch-dragging, .touch-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.undo-toast { position: fixed; z-index: 20; bottom: calc(22px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; width: max-content; max-width: min(480px, calc(100% - 32px)); padding: 5px 14px 5px 18px; border-radius: 15px; color: #fff; background: #29292e; box-shadow: 0 8px 24px #0002; overflow: hidden; animation: toast-in 200ms ease-out; }
#undo-label { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#undo-action { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0; flex-shrink: 0; font-size: 13px; font-weight: 600; color: #fff; }
#undo-count { color: #bebec5; font-size: 11px; font-variant-numeric: tabular-nums; width: 9px; text-align: right; }
.undo-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--undo-color, #37ac6b); transform: scaleX(1); transform-origin: left; transition: none; }
@keyframes toast-in { from { opacity: 0; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
#empty, #message { color: #696a72; font-size: 14px; margin: 12px 0; }
#message:empty { display: none; }
.details-open { overflow: hidden; }
.details-drawer { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 24px 0 0 24px; color: inherit; background: #fff; box-shadow: -12px 0 48px #16161c1a; overflow: hidden; }
.details-drawer[open] { animation: drawer-in 240ms cubic-bezier(.2,.8,.2,1); }
.details-drawer.closing { animation: drawer-out 220ms ease-in both; pointer-events: none; }
.details-drawer::backdrop { background: #14141d33; backdrop-filter: blur(3px); }
#details-form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 8px; flex: 0 0 auto; color: #85858f; font-size: 14px; }
.close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; font-size: 24px; background: #f2f2f5; color: #74747e; }
.close:hover { background: #e9e9ee; color: #202024; }
.drawer-content { flex: 1; min-height: 0; min-width: 0; width: 100%; padding: 16px 28px 8px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; touch-action: pan-y pinch-zoom; }
.drawer-content > .tag { display: inline-block; }
#detail-title { font-size: 24px; font-weight: 700; letter-spacing: -.5px; line-height: 1.25; margin: 16px 0 28px; overflow-wrap: anywhere; }
.detail-field { margin: 0 0 22px; }
.detail-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #6e6e78; }
.detail-field input, .detail-field textarea { display: block; padding: 13px 15px; border-radius: 12px; background: #f4f4f7; font-size: 16px; line-height: 24px; border: 0; outline: none; transition: box-shadow 160ms ease; }
.detail-field input { height: 50px; }
.detail-field textarea { resize: vertical; min-height: 132px; max-height: 40dvh; }
.detail-field input:focus, .detail-field textarea:focus { box-shadow: 0 0 0 2px #1e6ef440; }
.detail-dates { margin: 26px 0 8px; padding-top: 16px; border-top: 1px solid #ededf0; font-size: 12px; color: #85858f; }
.detail-dates div { display: flex; gap: 12px; justify-content: space-between; padding: 4px 0; }
.detail-dates dd { margin: 0; text-align: right; }
.drawer-footer { flex: 0 0 auto; padding: 12px 28px calc(24px + env(safe-area-inset-bottom)); background: #fff; }
.drawer-footer p { margin: 0 0 12px; text-align: center; font-size: 12px; color: #92929a; }
.drawer-footer .primary { width: 100%; min-height: 48px; border-radius: 14px; background: #1e6ef4; color: #fff; font-size: 16px; font-weight: 600; }
.drawer-footer .primary:active { background: #185acc; }
.sheet-grabber { display: none; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes drawer-out { from { transform: translateX(0); } to { transform: translateX(100%); } }
@media (max-width: 600px) {
  .details-drawer { inset: auto 0 0; width: 100%; height: auto; max-height: calc(100dvh - max(12px, env(safe-area-inset-top))); border-radius: 24px 24px 0 0; }
  #details-form { height: auto; max-height: calc(100dvh - max(12px, env(safe-area-inset-top))); }
  .drawer-head { padding: 0 20px 4px; }
  .drawer-content { padding: 12px 20px 0; }
  #detail-title { font-size: 22px; margin-bottom: 22px; }
  .drawer-footer { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); }
  .sheet-grabber { display: grid; place-items: center; flex: 0 0 26px; width: 100%; height: 26px; padding: 0; touch-action: none; }
  .sheet-grabber span { width: 36px; height: 4px; border-radius: 3px; background: #d7d7dc; }
  @keyframes drawer-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
  @keyframes drawer-out { from { transform: translateY(0); } to { transform: translateY(100%); } }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 460px) {
  .task, .composer { grid-template-columns: 25px 25px minmax(0, 1fr) 25px; column-gap: 4px; }
  .task-main, .draft-wrap { gap: 7px; }
  .task-main { row-gap: 0; }
  .owner-badge { max-width: 132px; }
  #filters { gap: 7px; }
  .wordmark { margin-bottom: 22px; }
  #suggestions { left: 58px; max-width: calc(100% - 58px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .task.completing { animation: none; background: #dff6e7; }
}

#tasks.archive-transition { overflow: hidden; transition: height 320ms cubic-bezier(.22,.68,.28,1); }
.archive-transition-row { transition: transform 320ms cubic-bezier(.22,.68,.28,1), opacity 260ms ease; }
.voice-input { grid-column: 4; display: grid; place-items: center; min-height: 44px; padding: 0; color: #92929a; }
.voice-input:hover { color: #1E6EF4; }
.voice-input[aria-pressed='true'] { color: #E9152D; }
#voice-status { margin: 8px 0 8px 74px; color: #74747c; font-size: 13px; }
@media (max-width: 460px) { #voice-status { margin-left: 58px; } }

/* Bim-bam: playful accents on the same quiet white canvas. */
body { min-height: 100dvh; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.wordmark { flex: 0 1 258px; width: 258px; height: auto; aspect-ratio: 3.3; margin: 0; transform: rotate(-2deg); }
.today-count { display: flex; align-items: center; gap: 8px; padding: 10px 0 10px 10px; color: #8b8b94; font-size: 12px; white-space: nowrap; }
.today-count strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: #666670; }
.today-count:hover { color: #202024; }
.filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 14px; align-items: start; margin-bottom: 20px; }
#filters { margin-bottom: 0; }
#sort-slot { width: 42px; }
.filter, .tag, .theme-token { color: var(--tag-text, #fff); }
.task:has(+ .today-divider) { border-bottom-color: transparent; }
.task-details { transition: opacity 140ms ease; }
@media (hover: hover) and (pointer: fine) {
  .task-details { opacity: 0; }
  .task:hover .task-details, .task:focus-within .task-details { opacity: 1; }
}
@media (hover: none), (pointer: coarse) {
  .task-details { color: #b3b3bb; }
  .more { width: 2px; height: 2px; box-shadow: 0 -4px currentColor, 0 4px currentColor; }
}
.deadline-badge { display: block; max-width: 130px; padding: 4px 9px; border-radius: 15px; background: #f1f1f4; color: #64646d; font-size: 12px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deadline-badge.overdue { color: #c32638; background: #fff0f1; }
.task-indicators { flex-wrap: wrap; justify-content: flex-end; column-gap: 6px; row-gap: 3px; max-width: 255px; }
.optional { font-weight: 400; color: #9999a2; margin-left: 6px; }
#deadline { appearance: auto; -webkit-appearance: auto; }
#suggestions { min-width: 210px; }
#suggestions [role='option'] { display: flex; align-items: center; gap: 10px; min-height: 44px; }
#suggestions .tag { display: inline-block; }
.suggestion-hint { color: #9999a2; font-size: 11px; font-weight: 400; }
#suggestions .expand-themes { font-size: 12px; color: #85858f; }
#celebration { position: fixed; inset: 0; display: grid; place-items: center; z-index: 40; pointer-events: none; overflow: hidden; }
.celebration-pop { width: clamp(180px, 30vw, 290px); animation: comic-pop 850ms cubic-bezier(.2,.8,.2,1) both; }
.celebration-pop svg { display: block; width: 100%; overflow: visible; }
.celebration-pop .burst { fill: #FFD60A; }
.celebration-pop g { fill: #FF383C; stroke: #202024; stroke-width: 1.2; paint-order: stroke fill; filter: drop-shadow(3px 3px 0 #202024); }
.celebration-pop[data-word='BIM!'] g { fill: #1e6ef4; }
@keyframes comic-pop {
  0% { opacity: 0; transform: scale(.3) rotate(-14deg); }
  18% { opacity: 1; transform: scale(1.12) rotate(-7deg); }
  32%, 65% { opacity: 1; transform: scale(1) rotate(-5deg); }
  100% { opacity: 0; transform: translateY(-40px) scale(.9) rotate(4deg); }
}
.stats-drawer { display: none; flex-direction: column; }
.stats-drawer[open] { display: flex; }
#stats-title { margin: 4px 0 16px; }
#stats-title span { font-size: 16px; font-weight: 500; color: #777781; }
.week-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin: 24px 0; }
.chart-day { display: grid; gap: 7px; justify-items: center; font-size: 11px; color: #8b8b94; font-variant-numeric: tabular-nums; }
.chart-count { color: #666670; }
.chart-track { display: flex; align-items: flex-end; height: 90px; width: 100%; max-width: 25px; }
.chart-track i { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: #dce7ff; }
.is-today .chart-track i { background: #1e6ef4; }
.is-today { color: #1e6ef4; }
@media (max-width: 600px) {
  .page-head { gap: 12px; margin-bottom: 24px; }
  .wordmark { flex-basis: 205px; max-width: 62%; margin: 0; }
  .today-count { flex-direction: column; align-items: flex-end; gap: 2px; font-size: 10px; }
  .today-count strong { font-size: 14px; }
  .filter-bar { gap: 10px; }
  .stats-drawer { padding-top: 18px; }
  .stats-drawer .drawer-content { padding-bottom: env(safe-area-inset-bottom); }
  .week-chart { margin: 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .celebration-pop { animation: none; }
}

/* Keep controls on the first text line, even with wrapped titles and metadata. */
.task { align-items: start; padding: 5px 0; }
.task-main { align-items: start; }
.task .priority, .task .check, .task .task-details { align-self: start; margin-top: -2px; }
.task .task-tag { display: flex; align-items: flex-start; margin-top: 4px; height: 32px; min-height: 32px; padding: 4px 11px; line-height: 24px; }
.task .task-title { display: flex; align-items: flex-start; padding: 8px 0 12px; min-height: 44px; font-size: 16px; line-height: 24px; }
.name { display: block; font-size: inherit; line-height: 24px; }
.task-indicators { align-self: start; margin-top: 7px; }
.title-edit { height: 44px; padding: 8px 0 12px; line-height: 24px; }
@media (max-width: 600px) {
}

/* Fixed input stays within the visible viewport without moving its DOM node. */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; }
html.page-locked { overflow: hidden; }
body.page-locked { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }
.icon-sprite { position: absolute; overflow: hidden; pointer-events: none; }
.filled-icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; }
.archive-icon { width: 17px; height: 17px; }
.voice-input .filled-icon { width: 20px; height: 20px; }
.composer-slot { position: relative; min-height: 55px; }
.composer { padding-bottom: env(safe-area-inset-bottom); }
.composer.is-pinned, .new-task-mobile.is-pinned { position: fixed; left: var(--composer-left); top: var(--composer-top); width: var(--composer-width); z-index: 15; background: #fffffff5; backdrop-filter: blur(16px); box-shadow: 0 -10px 20px 10px #ffffffd9; }
:root { scroll-padding-bottom: calc(var(--composer-height, 55px) + 18px); }
.composer-docked #voice-status:not([hidden]) { position: fixed; bottom: calc(var(--composer-height, 55px) + 10px); left: 50%; transform: translateX(-50%); margin: 0; max-width: calc(100% - 40px); z-index: 16; padding: 6px 12px; background: #fffffff0; border-radius: 8px; }
#suggestions { overscroll-behavior: contain; }
.theme-edit-shell { flex: 0 0 auto; min-width: 0; opacity: 1; }
.theme-edit-shell:hover { opacity: 1; }
.theme-rename { flex: 1 1 auto; width: 0; min-width: 0; height: 22px; padding: 0; font-size: 16px; font-weight: 700; line-height: 22px; color: inherit; text-transform: uppercase; outline: none; }
.theme-rename:focus-visible { outline: none; }
.theme-color-menu { position: fixed; z-index: 25; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 8px 32px #20202424; }
.theme-color-menu p { margin: 0 0 4px; font-size: 12px; color: #93939c; }
.theme-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.theme-swatch { display: grid; place-items: center; min-width: 0; height: 42px; padding: 0; }
.theme-swatch::before { content: ''; width: 26px; height: 26px; border-radius: 6px; background: var(--swatch-color); }
.theme-swatch[aria-pressed='true']::before { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--swatch-color); }
.theme-edit-done { min-height: 36px; width: 100%; padding: 4px 0 0; font-size: 14px; font-weight: 600; color: #1e6ef4; }

/* A row owns its own title/metadata wrapping; only the tag column is shared. */
.task { position: relative; grid-template-columns: 30px 30px minmax(0, 1fr); touch-action: pan-y pinch-zoom; }
.task-main { display: grid; grid-template-columns: var(--tag-column) minmax(0, 1fr); }
.task-content { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 9px; row-gap: 0; min-width: 0; }
.task-title { flex: 0 1 auto; max-width: 100%; }
.task-indicators { flex: 0 1 auto; max-width: 100%; justify-content: flex-start; margin: 7px 0 0; padding-right: 32px; }
.task .owner-badge, .task .deadline-badge { min-height: 26px; cursor: pointer; text-align: left; }
.task .owner-badge:hover, .task .deadline-badge:hover { background: #e7e7ee; }
.task .note { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 26px; width: 16px; padding: 0; color: #8b8b94; }
.task .note i { width: 12px; margin: 0; }
.task .note i:last-child { width: 8px; }
.task .note:hover { color: #202024; }
.task .task-details { position: absolute; right: -16px; top: 3px; width: 36px; min-height: 44px; margin: 0; padding: 0; color: #b4b4bd; background: transparent; cursor: grab; touch-action: none; }
.drag-grip { width: 14px; height: 20px; fill: currentColor; pointer-events: none; }
.task .task-details:active { cursor: grabbing; }
.task-details:hover { color: #52525e; }
@media (max-width: 460px) { .task { grid-template-columns: 25px 25px minmax(0, 1fr); } .task-content { column-gap: 7px; } }
@media (hover: none), (pointer: coarse) { .task .task-details { opacity: 1; width: 44px; } }

/* Full-area, shrinking success fill makes all five seconds visible. */
.undo-toast { bottom: max(var(--undo-bottom, 22px), calc(env(safe-area-inset-bottom) + 12px)); gap: 10px; min-height: 54px; width: max-content; max-width: min(560px, calc(100% - 28px)); padding: 5px 14px; color: #14552c; background: #dff7e8eb; box-shadow: 0 8px 28px #18582d20; backdrop-filter: blur(14px); isolation: isolate; }
.undo-progress { inset: 0; width: 100%; height: 100%; border-radius: inherit; z-index: -1; background: #56c88070; transform: scaleX(1); transform-origin: left; transition: none; }
#undo-icon { width: 19px; height: 19px; color: #16813d; }
#undo-label { display: flex; align-items: baseline; gap: 4px; flex: 1 1 auto; min-width: 0; font-size: 13px; }
#undo-prefix { flex: 0 0 auto; font-weight: 650; }
#undo-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#undo-action { color: #14552c; font-weight: 650; }
#undo-count { color: #3b8054; }
.undo-toast.is-deletion { color: #444450; background: #eeeef5ed; box-shadow: 0 8px 28px #24242c1a; }
.is-deletion .undo-progress { background: #afb3c650; }
.is-deletion #undo-icon, .is-deletion #undo-action, .is-deletion #undo-count { color: #5d6070; }
@media (max-width: 380px) { .undo-toast { gap: 7px; padding-inline: 10px; } #undo-count { display: none; } }

.swipe-backdrop { position: fixed; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 0 18px; border-radius: 8px; pointer-events: none; color: #18713a; background: #e1f6e8; font-size: 13px; font-weight: 650; }
.swipe-backdrop[data-direction='delete'] { justify-content: flex-end; color: #bd273a; background: #ffe5e9; }
.swipe-backdrop.ready { background: #2ca75a; color: #fff; }
.swipe-backdrop.ready[data-direction='delete'] { background: #e33149; }
.task.swiping { z-index: 4; background: #fff; user-select: none; will-change: transform; }
.task.swipe-deleting { min-height: 0; overflow: hidden; pointer-events: none; }
.task.drag-ghost { position: fixed; }
.stats-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cheer-caption { margin-top: 6px; color: #99949a; font-size: 11px; }
#stats-sparkles { position: absolute; inset: 0; pointer-events: none; }
#stats-sparkles span { position: absolute; left: 50%; top: 35%; font-size: 16px; opacity: 0; animation: sparkle-out 700ms ease-out both; }
@keyframes sparkle-out { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) scale(.9); } }
/* A lone description icon does not create a separate empty metadata line. */

/* Every panel contains its own vertical scroll; nothing widens the page. */
.details-drawer, #details-form, .drawer-head, .drawer-footer, .detail-field { min-width: 0; max-width: 100%; }
.detail-field input, .detail-field textarea { width: 100%; min-width: 0; max-width: 100%; }
.detail-dates div { flex-wrap: wrap; }
.detail-dates dd { min-width: 0; overflow-wrap: anywhere; }
.details-drawer.viewport-panel { inset: auto; left: var(--panel-left); top: var(--panel-top); width: var(--panel-width); height: var(--panel-height); max-width: var(--panel-width); max-height: var(--panel-height); }
.viewport-panel #details-form { height: 100%; max-height: 100%; }
.stats-hero > *, .chart-day { min-width: 0; }
#stats-sparkles { overflow: hidden; }

/* A separate, viewport-sized writing surface on phones. */
.new-task-mobile { display: grid; grid-template-columns: 30px 30px minmax(0, 1fr) 30px; align-items: center; column-gap: 7px; width: 100%; min-height: 55px; padding: 0 0 env(safe-area-inset-bottom); text-align: left; color: #96969e; }
.new-task-mobile > :first-child { grid-column: 2; text-align: center; font-size: 21px; }
#new-task-label { grid-column: 3; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.mobile-composer-mode #composer-slot > .composer { display: none; }
#mobile-composer { position: fixed; inset: auto; margin: 0; padding: 0; border: 0; border-radius: 0; max-width: none; max-height: none; color: inherit; background: #fff; overflow: hidden; overscroll-behavior: none; }
#mobile-composer::backdrop { background: #fff; }
.mobile-compose-surface { display: flex; flex-direction: column; transform-origin: top left; overflow: hidden; background: #fff; }
.mobile-compose-head { flex: 0 0 auto; padding: max(16px, env(safe-area-inset-top)) 20px 10px; }
.mobile-compose-head h2 { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: #93939c; }

#mobile-theme-area { flex: 1 1 auto; min-width: 0; min-height: 0; padding: 20px 20px 12px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
#mobile-theme-hint { color: #96969e; font-size: 13px; line-height: 20px; margin: 0 0 12px; overflow-wrap: anywhere; }
#mobile-composer #suggestions { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 6px 10px; position: static; width: 100%; min-width: 0; max-width: 100%; max-height: none; padding: 0; overflow: visible; border-radius: 0; box-shadow: none; }
#mobile-composer #suggestions [role='option'] { width: auto; min-height: 44px; padding: 6px 0; white-space: normal; flex-wrap: wrap; }
#mobile-composer #suggestions .theme-choice-action { flex-basis: 100%; color: #898993; min-height: 38px; }
#mobile-composer #suggestions .suggestion-hint { display: none; }
#mobile-composer #suggestions .theme-choice:has(.suggestion-hint) { opacity: .55; }
#mobile-composer #suggestions [aria-selected='true'] { background: transparent; }
#mobile-composer #suggestions [aria-selected='true'] .tag { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e8e8ee; }
#mobile-input-area { flex: 0 0 auto; min-width: 0; padding: 0 16px; }
#mobile-composer .composer { position: relative; inset: auto; display: block; width: 100%; padding: 0; min-height: 72px; background: #f5f5f7; border: 0; border-radius: 16px; box-shadow: none; backdrop-filter: none; }
#mobile-composer .draft-wrap { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0 8px; padding: 10px 14px; }
#mobile-composer .theme-token { margin: 10px 0 0; font-size: 16px; }
#mobile-composer #draft { min-width: min(140px, 100%); padding: 14px 0; min-height: 52px; line-height: 24px; }
#mobile-compose-actions { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr); gap: 10px; flex: 0 0 auto; min-width: 0; padding: 10px 16px max(12px, env(safe-area-inset-bottom)); background: #fff; }
#mobile-compose-actions .close { width: 44px; height: 48px; border-radius: 14px; }
#mobile-compose-actions .voice-input { grid-column: 2; grid-row: 1; height: 48px; background: #f2f2f5; border-radius: 14px; }
#mobile-compose-actions .add { grid-column: 3; grid-row: 1; min-height: 48px; margin: 0; border-radius: 14px; background: #1e6ef4; color: #fff; font-size: 16px; font-weight: 600; }
#mobile-compose-actions .add:active { background: #185acc; }
#mobile-composer #voice-status, #mobile-composer #message { position: static; transform: none; max-width: 100%; padding: 0; margin: 0 2px 8px; font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
@media (max-width: 460px) { .new-task-mobile { grid-template-columns: 25px 25px minmax(0, 1fr) 25px; column-gap: 4px; } }
@media (max-width: 600px) { main { padding-top: max(10px, env(safe-area-inset-top)); } .page-head { margin-bottom: 18px; } }
#mobile-composer.keyboard-visible #mobile-compose-actions { padding-bottom: 10px; }
#mobile-composer.compose-short .mobile-compose-head, #mobile-composer.compose-short #mobile-theme-hint { display: none; }
#mobile-composer.compose-short #mobile-input-area { padding-top: 8px; }
#mobile-composer.compose-short .composer { min-height: 52px; }
#mobile-composer.compose-short .draft-wrap { padding-block: 4px; }
#mobile-composer.compose-short #draft { min-height: 44px; padding-block: 10px; }
#mobile-composer.compose-short .theme-token { margin-top: 6px; }
#mobile-composer.compose-short #mobile-theme-area { padding-block: 8px 4px; }
#mobile-composer.compose-short #mobile-compose-actions { padding-block: 8px; }
#mobile-composer.compose-short #mobile-compose-actions > button { min-height: 44px; height: 44px; }

/* Quiet fixed header and controls that never steal space from row text. */
.page-head { position: sticky; top: 0; z-index: 18; padding-block: 8px; margin-top: -8px; background: #fffffff5; backdrop-filter: blur(16px); }
.head-actions { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; gap: 0; }
.today-count { white-space: normal; text-align: right; padding-block: 4px; }
.sort-priority { display: flex; justify-content: center; gap: 0; }
.sort-marks { position: relative; width: 18px; height: 28px; }
.sort-priority[aria-pressed='true'] { color: #44444e; background: #f1f1f4; border-radius: 9px; }
.task { grid-template-columns: 30px 30px minmax(0, 1fr) 36px; }
.task .task-details { position: static; width: 36px; margin-top: -2px; }
.task-content { padding-top: 4px; align-items: center; }
.task .task-title { min-height: 32px; padding: 4px 0; }
.task-indicators { margin: 0; padding: 0; }
.task-tag:empty::before { content: attr(data-empty-label); }
#mobile-composer .composer { min-height: 48px; border-radius: 14px; }
#mobile-composer .draft-wrap { padding: 4px 12px; }
#mobile-composer #draft { min-height: 40px; padding-block: 8px; }
#mobile-composer .theme-token { margin-top: 4px; }
#future-section { margin-top: 12px; }
#future-section > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; color: #92929b; cursor: pointer; font-size: 13px; list-style: none; user-select: none; }
#future-section > summary::-webkit-details-marker { display: none; }
#future-section > summary::before { content: '›'; font-size: 20px; transition: transform 160ms ease; }
#future-section[open] > summary::before { transform: rotate(90deg); }
#future-count { font-variant-numeric: tabular-nums; color: #b1b1b8; }
#future-tasks { list-style: none; padding: 0; margin: 0; min-height: 12px; }
#drag-actions { position: fixed; bottom: 0; left: max(16px, calc((100vw - 710px) / 2)); right: max(16px, calc((100vw - 710px) / 2)); z-index: 50; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0 max(16px, env(safe-area-inset-bottom)); background: #fffffff0; backdrop-filter: blur(16px); }
.drag-zone { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 70px; border-radius: 18px; background: #f3f3f6; color: #777780; font-size: 15px; font-weight: 600; transition: background 140ms, color 140ms, transform 140ms; }
#drop-delete { color: #d4263b; background: #fff0f2; }
#drop-future { color: #1e6ef4; background: #edf3ff; }
#drop-delete.is-over { background: #e9152d; color: #fff; transform: scale(1.03); }
#drop-future.is-over { background: #1e6ef4; color: #fff; transform: scale(1.03); }
.task-dragging #composer-slot, .task-dragging #undo-toast { visibility: hidden; }
.task-dragging .drag-ghost { pointer-events: none; z-index: 49; }
button:disabled { cursor: default; opacity: .35; }
#share-status { font-size: 12px; color: #72727e; margin: 0 0 12px; }
#share-status:empty { display: none; }
#share-fallback { height: 120px; margin-bottom: 12px; padding: 10px; background: #f5f5f7; border-radius: 12px; font-size: 14px; }
#stats-tasks { padding: 0; margin: 20px 0; list-style: none; }
#stats-tasks li { display: flex; gap: 10px; padding: 9px 0; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
#stats-tasks li > :first-child { color: #008932; }
#stats-tasks li > :last-child { min-width: 0; }
#stats-empty { color: #92929b; font-size: 14px; }
.chart-day { padding: 0; }
.chart-day[aria-pressed='true'] { color: #1e6ef4; }
@media (max-width: 600px), (pointer: coarse) {
  .task { grid-template-columns: 25px 25px minmax(0, 1fr) 40px; column-gap: 4px; }
  .task .task-details { width: 40px; opacity: 1; }
  .wordmark { flex-basis: 190px; max-width: 52%; }
  .today-count { font-size: 11px; max-width: 135px; }
  .page-head { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .drag-zone, #future-section > summary::before { transition: none; } }

/* The daily result shares the wordmark's angular lettering and optical baseline. */
.page-head { align-items: center; }
.head-actions { flex-direction: row; align-items: center; flex: 0 0 auto; gap: 16px; }
.today-count { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0; min-width: 64px; color: #96969e; font-size: 11px; line-height: 16px; text-align: center; transform: translateY(7px); }
.comic-count { display: block; height: 52px; max-width: 116px; }
.comic-count svg { display: block; height: 100%; width: auto; max-width: 100%; overflow: visible; }
#language-trigger { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 44px; padding: 0; color: #a4a4ae; }
#language-trigger svg { width: 22px; height: 22px; fill: currentColor; transform: skewX(-6deg); }
#language-trigger:hover, #language-trigger[aria-expanded='true'] { color: #555560; }
.language-menu { position: fixed; z-index: 60; padding: 6px; background: #fffffff7; backdrop-filter: blur(20px); border-radius: 18px; box-shadow: 0 8px 32px #20202420; }
.language-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; width: 100%; padding: 9px 12px; border-radius: 12px; font-size: 14px; text-align: left; }
.language-menu button > :last-child { width: 16px; }
.language-menu button:hover, .language-menu [aria-checked='true'] { background: #f1f4fa; color: #1e6ef4; }
.language-menu button:first-child { margin-bottom: 4px; color: #94949f; font-size: 12px; }
.check { position: relative; }
.check::before, .done .check::before { content: ''; display: block; width: 16px; height: 16px; margin: auto; border: 1.5px solid #b0b0ba; border-radius: 3px; background: transparent; }
.check:hover::before { border-color: #71717e; }
.done .check::before { background: #008932; border-color: #008932; }
.done .check::after { content: ''; position: absolute; width: 10px; height: 9px; left: calc(50% - 5px); top: calc(50% - 4.5px); background: #fff; clip-path: polygon(0 44%, 20% 24%, 40% 47%, 82% 0, 100% 20%, 40% 100%); }
.title-flow { display: block; flex: 0 1 auto; max-width: 100%; min-width: 0; padding: 4px 0; line-height: 24px; overflow-wrap: anywhere; }
.task .task-title { display: inline; min-height: 0; padding: 0; line-height: inherit; }
.task-title .name { display: inline; }
.task .note { display: inline-flex; flex-direction: row; vertical-align: baseline; align-items: center; justify-content: flex-start; width: 18px; height: 24px; min-height: 24px; padding: 0 0 0 1px; margin-left: 0; color: #94949e; font-size: 17px; line-height: 24px; font-weight: 700; }
.task .note:hover { color: #1e6ef4; }
.editing-title .note { display: none; }
.title-flow:has(.title-edit) { flex: 1 1 100%; }
.title-flow .title-edit { display: block; height: 24px; padding: 0; }
.stats-hero { align-items: flex-start; margin: 2px 0 20px; }
#stats-title { margin: 0; min-width: 0; }
#stats-today { height: 84px; max-width: 170px; margin: 0 0 4px; }
#stats-day-label { display: block; font-size: 14px; line-height: 20px; color: #888893; }
.stats-share-wrap { position: relative; display: grid; justify-items: center; flex: 0 1 144px; max-width: 48%; text-align: center; }
#share-results { display: grid; justify-items: center; gap: 8px; padding: 4px 8px; border-radius: 16px; }
#share-results:hover:not(:disabled) { background: #f7f8fb; }
#stats-emoji { display: block; font-size: 44px; line-height: 54px; transform-origin: center; }
.share-label { color: #1e6ef4; font-size: 12px; font-weight: 500; white-space: nowrap; }
#share-caption { margin-top: 4px; font-size: 11px; line-height: 16px; color: #a0a0aa; }
.stats-week-nav { display: grid; grid-template-columns: 36px minmax(0,1fr) 36px; align-items: center; gap: 8px; }
.stats-week-nav button { height: 36px; font-size: 24px; color: #a0a0aa; }
#stats-week-range { font-size: 12px; color: #94949f; text-align: center; }
.week-chart { gap: 4px; margin: 4px 0 18px; }
.chart-day { gap: 4px; padding: 5px 3px 6px; border-radius: 10px; color: #a0a0aa; }
.chart-day[aria-pressed='true'] { color: #1e6ef4; background: #f2f6ff; }
.chart-count { min-height: 15px; font-size: 10px; }
.chart-track { height: 54px; max-width: 22px; }
.chart-track i { background: #dce7ff; }
.chart-day[aria-pressed='true'] .chart-track i { background: #1e6ef4; }
.chart-weekday { font-size: 10px; }
.chart-date { font-size: 12px; font-weight: 600; }
#stats-tasks { margin-top: 14px; }
@media (max-width: 600px), (pointer: coarse) {
  .head-actions { gap: 6px; }
  .wordmark { flex: 0 1 190px; max-width: calc(100% - 116px); }
  .today-count { min-width: 62px; max-width: 90px; font-size: 10px; transform: translateY(4px); }
  .today-count .comic-count { height: 36px; max-width: 80px; }
  #language-trigger { width: 30px; flex-basis: 30px; }
  #stats-today { height: 72px; }
}

/* App utilities live below the composer; dialogs are in the browser top layer. */
:root { --app-footer-height: 58px; scroll-padding-bottom: calc(var(--app-footer-height) + var(--composer-height, 55px) + 18px); }
.paper { padding-bottom: calc(var(--app-footer-height) + 110px); }
.filter-bar { display: block; }
.app-footer { position: fixed; z-index: 16; bottom: 0; left: 0; width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; column-gap: 16px; min-height: 56px; padding: 6px clamp(16px, 5vw, 34px) calc(6px + env(safe-area-inset-bottom)); background: #fffffff5; backdrop-filter: blur(16px); }
.app-footer #sort-slot { width: 44px; margin-left: -7px; }
.app-footer .sort-priority { width: 44px; min-height: 44px; padding: 8px; }
#site-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: #686870; text-decoration: none; font-size: 14px; }
#site-link:hover { color: #202024; }
.footer-account { display: flex; align-items: center; gap: 10px; }
.app-footer #language-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; height: 44px; padding: 8px 10px; color: #202024; font-size: 14px; border-radius: 6px; }
.app-footer #language-trigger svg { width: 20px; height: 20px; transform: none; }
#profile-trigger { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; color: #202024; border-radius: 6px; }
#profile-trigger svg { width: 22px; height: 22px; fill: currentColor; }
.app-footer #language-trigger:hover, #profile-trigger:hover { background: #f3f3f5; }
.composer { padding-bottom: 0; }
.composer-docked #voice-status:not([hidden]) { bottom: calc(var(--app-footer-height) + var(--composer-height, 55px) + 10px); }
.task-dragging .app-footer { visibility: hidden; }
#profile-form { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.profile-drawer { inset: auto max(16px, calc((100vw - 710px) / 2)) 20px auto; width: 360px; height: auto; max-height: calc(100dvh - 40px); border-radius: 16px; }
.profile-drawer .drawer-head { color: #202024; font-size: 18px; font-weight: 600; }
.profile-drawer .drawer-content { flex: 1 1 auto; padding-top: 20px; }
.profile-drawer .detail-field { margin-bottom: 8px; }
.profile-drawer .drawer-footer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.profile-drawer .primary { background: #202024; border-radius: 8px; }
#profile-status { font-size: 14px; line-height: 20px; color: #686870; margin: 12px 0 0; }
#profile-status:empty { display: none; }
#profile-logout { display: block; width: 100%; min-height: 44px; margin-top: 8px; font-size: 14px; color: #686870; }
@media(max-width:600px), (pointer:coarse) {
  .app-footer { grid-template-columns: 25px minmax(0, 1fr) auto; column-gap: 8px; }
  .app-footer #sort-slot { margin-left: -9.5px; }
  .footer-account { gap: 2px; }
  .profile-drawer { border-radius: 18px 18px 0 0; }
  .profile-drawer .drawer-head { padding-top: 12px; }
}

/* Keep the task type size and baseline; reduce only pill chrome. */
.tag, .theme-token { padding: 2px 8px; border-radius: 5px; }
.task .task-tag { margin-top: 6px; height: 28px; min-height: 28px; padding: 2px 8px; }
.task .task-tag:empty { padding: 2px 0; }
.filter { position: relative; isolation: isolate; min-height: 28px; padding: 3px 8px; gap: 5px; border-radius: 5px; background: transparent; }
.filter::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--tag-bg, #242429); border-radius: inherit; }
@media(pointer:coarse) {
  #filters { row-gap: 0; }
  .filter { min-height: 44px; }
  .filter::before { inset-block: 8px; }
}
.app-footer { bottom: auto; top: calc(100dvh - var(--app-footer-height)); }

/* List chrome: a quiet centered masthead and thumb-reachable controls. */
.page-head { justify-content: center; min-height: 64px; }
.page-head .wordmark { flex: 0 0 auto; width: 180px; max-width: none; margin: 0; }
.page-head .wordmark svg { width: 100%; height: auto; }
.telegram-app .paper { padding-top: max(8px, var(--tg-safe-area-inset-top, 0px)); }
.telegram-app .page-head { top: var(--tg-safe-area-inset-top, 0px); min-height: max(56px, var(--tg-content-safe-area-inset-top, 0px)); }
.telegram-app .page-head .wordmark { width: clamp(80px, calc(100vw - 250px), 180px); }
.app-footer { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 8px; padding-bottom: calc(6px + max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px)); }
.app-footer .today-count { justify-self: center; flex-direction: row; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; max-width: none; transform: none; padding: 4px; font-size: 12px; }
.app-footer .today-count .comic-count { height: 30px; max-width: 65px; }
#profile-trigger { padding: 5px; border-radius: 50%; }
#profile-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
#profile-trigger.has-avatar svg { display: none; }
body:has(dialog[open]) .app-footer { visibility: hidden; pointer-events: none; }
#profile #site-link { justify-content: center; width: 100%; margin-top: 8px; font-size: 14px; color: #85858f; }
@media(max-width:360px) { .app-footer .today-count { gap: 3px; font-size: 11px; } .footer-account { gap: 0; } }

/* Three balanced controls; account preferences live inside the profile. */
.app-footer { grid-template-columns: 44px minmax(0, 1fr) 44px; }
.app-footer #sort-slot { margin-left: 0; }
#profile #language-trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; height: auto; padding: 10px 0; color: #202024; font-size: 14px; text-align: left; }
#profile #language-trigger svg { width: 20px; height: 20px; flex-shrink: 0; transform: none; }
#profile .profile-language-label { flex: 1; }
#profile #language-code { color: #85858f; }
#profile #language-menu { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 100%; padding: 4px; margin-top: 4px; box-shadow: none; border-radius: 8px; background: #f6f6f8; }
#profile #language-menu[hidden] { display: none; }
#profile #language-menu button { margin: 0; padding: 8px; font-size: 13px; }

.profile-photo-row { display:flex; align-items:center; gap:16px; margin-bottom:18px; }
#profile-photo-pick { display:grid; place-items:center; flex-shrink:0; width:64px; height:64px; padding:0; border-radius:50%; background:#f2f2f6; overflow:hidden; color:#85858f; font-size:28px; }
#profile-photo-preview { width:64px; height:64px; object-fit:cover; }
.profile-photo-actions { display:flex; flex-direction:column; align-items:flex-start; }
.profile-photo-actions button { min-height:36px; padding:4px 0; text-align:left; font-size:14px; }
#profile-photo-reset { color:#85858f; font-size:13px; }

/* Compact tag colour control inside the composer. */
#draft-colors { grid-column:2 / -1; padding:6px 0 10px; max-width:320px; }
#draft-colors .theme-swatches { grid-template-columns:repeat(6,minmax(0,1fr)); }
.draft-color-label { color:#85858e; font-size:12px; }
#mobile-theme-area #draft-colors { max-width:100%; margin-bottom:14px; }
#profile-tour { display:block; min-height:44px; padding:8px 0; color:#1e6ef4; text-align:left; font-size:14px; }
#quick-tour { position:fixed; inset:0; margin:auto; width:min(420px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:24px; border:0; border-radius:14px; color:#202024; background:white; overflow-y:auto; overscroll-behavior:contain; }
#quick-tour::backdrop { background:#20202455; backdrop-filter:blur(4px); }
#quick-tour header, #quick-tour footer { display:flex; align-items:center; justify-content:space-between; gap:16px; }
#quick-tour header { color:#888891; font-size:13px; }
#quick-tour .tour-instructions button { min-height:44px; padding:8px 12px; }
#tour-skip { color:#888891; font-size:13px; }
#quick-tour h2 { font-size:24px; line-height:1.2; letter-spacing:-.6px; margin:20px 0 10px; }
#tour-copy { font-size:15px; line-height:1.5; color:#686870; min-height:90px; margin:0 0 20px; }
#quick-tour footer .primary { min-width:120px; background:#1e6ef4; color:white; border-radius:6px; }
#tour-art { height:178px; display:flex; flex-direction:column; justify-content:center; gap:8px; margin-top:12px; padding:12px; background:#f5f5f7; border-radius:8px; }
.tour-row { display:flex; align-items:center; gap:7px; min-width:0; font-size:12px; }
.tour-priority { width:18px; flex-shrink:0; color:#e9152d; letter-spacing:-2px; font-size:20px; }
.tour-check { flex:0 0 12px; height:12px; border:2px solid #b9b9c2; border-radius:2px; }
#tour-art .tag { font-size:11px; line-height:18px; padding:1px 4px; border-radius:3px; }
.tour-task { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tour-today { display:flex; align-items:center; gap:8px; color:#1e6ef4; font-size:11px; }
.tour-today::before, .tour-today::after { content:''; height:1px; background:#1e6ef4; flex:1; }
.tour-sort { align-self:flex-start; color:#777780; font-weight:850; font-size:22px; letter-spacing:-2px; }
@media(max-width:360px) { #quick-tour {padding:18px;} #quick-tour h2 {font-size:22px;} }

/* Suggestions grow upward: the no-tag action stays nearest the list's bottom. */
#suggestions [role='option'] { display:flex; align-items:center; gap:8px; }
.suggestion-key { margin-left:auto; color:#9b9ba5; font-family:inherit; font-size:11px; line-height:1.5; padding-left:12px; }
#mobile-theme-area { display:flex; flex-direction:column; }
#mobile-theme-area > :not(#suggestions) { flex-shrink:0; }
#mobile-composer #suggestions { display:block; flex:0 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; margin-top:auto; }
#mobile-composer #suggestions [role='option'] { display:flex; width:100%; flex-wrap:nowrap; }
#mobile-composer .suggestion-key { display:none; }
@media(pointer:coarse) { .suggestion-key {display:none;} }
.filter-bar { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:10px; }
#search-trigger:hover { color:#1e6ef4; }
#search-trigger[aria-expanded='true'] { color:#1e6ef4; }
.search-open #composer-slot > * { visibility:hidden; pointer-events:none; }
#search-bar { position:fixed; z-index:20; display:flex; align-items:center; gap:10px; background:#fff; padding:6px clamp(16px,5vw,34px) calc(6px + max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom,0px)) + var(--tg-content-safe-area-inset-bottom,0px)); border-radius:0; box-shadow:0 -5px 18px #ffffffd9; }
.search-open .app-footer { visibility:hidden; pointer-events:none; }
#search-bar > svg { width:20px; height:20px; flex-shrink:0; color:#85858f; }
#task-search { flex:1; font:inherit; font-size:16px; outline:none; background:transparent; }
#close-search { flex:0 0 44px; height:44px; margin-left:auto; padding:0; font-size:24px; color:#a5a5ae; }
#task-search::-webkit-search-cancel-button, #task-search::-webkit-search-decoration { -webkit-appearance:none; appearance:none; }
#task-search::-ms-clear { display:none; }
.search-exiting { overflow:hidden; pointer-events:none; }
body:has(dialog[open]) #search-bar { visibility:hidden; }

/* Reserve room for both right-hand controls while keeping the counter centered. */
.app-footer { grid-template-columns:90px minmax(0,1fr) 90px; }
.footer-account { justify-content:flex-end; }
.footer-account > button { flex:0 0 44px; }
.app-footer .today-count { max-width:100%; }
.app-footer .today-count > span:last-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Mobile refinements: safe areas, one visual scale and compact edge handles. */
html,body { background:#fff; }
button { touch-action:manipulation; }
#selected-theme { touch-action:manipulation; }
#selected-theme[aria-expanded='true'] { outline:2px solid var(--tag-bg); outline-offset:3px; }
#mobile-composer .mobile-compose-surface { transform:none; width:100%; height:100%; padding-top:var(--app-safe-top,0px); }
#mobile-theme-area { padding-inline:16px; }
#mobile-composer #suggestions [role='option'] { padding:6px 10px; min-height:44px; }
#mobile-composer #suggestions .theme-choice { padding-inline:0; }
#mobile-composer #suggestions .theme-choice-action { border-radius:5px; }
#mobile-composer #suggestions .theme-choice-action[aria-selected='true'] { background:#f3f3f6; }
#mobile-compose-actions { padding-bottom:max(12px,env(safe-area-inset-bottom),var(--app-safe-bottom,0px)); }
#mobile-compose-actions .close { display:grid; place-items:center; padding:0; line-height:1; align-self:center; }
#mobile-compose-actions .voice-input { border-radius:6px; }
#mobile-composer #draft, input,textarea { font-size:16px; }
#mobile-composer::backdrop { background:#fff; backdrop-filter:none; }
.stats-drawer .drawer-head { flex-shrink:0; }
.stats-drawer .drawer-content { overflow-y:auto; min-height:0; overscroll-behavior:contain; }
.stats-section-title { font-size:13px; font-weight:600; color:#8b8b94; margin:20px 0 4px; }
#stats-pending { list-style:none; padding:0; margin:4px 0 16px; }
#stats-pending li { display:flex; gap:10px; padding:9px 0; font-size:14px; line-height:20px; overflow-wrap:anywhere; }
#stats-pending li > :first-child { color:#a5a5ae; }
#stats-pending-empty { font-size:14px; color:#92929b; }
@media(max-width:600px), (pointer:coarse) {
  .task-area { margin-inline:-8px calc(-1 * clamp(16px,5vw,34px)); }
  .task { grid-template-columns:24px 26px minmax(0,1fr) 28px; column-gap:4px; }
  .task .priority { width:24px; }
  .task .check { justify-self:center; }
  .task .task-details { width:28px; min-width:28px; height:44px; padding:0; display:flex; align-items:center; justify-content:flex-end; margin:0; }
  .task .drag-grip { width:20px; height:20px; }
  .task-content { min-width:0; }
  .task-main { min-width:0; }
  .telegram-app .page-head { padding-top:max(8px,var(--app-safe-top,0px)); }
  #quick-tour { max-height:calc(100dvh - var(--app-safe-top,0px) - 24px); }
}
/* The walkthrough reuses the real task template and input classes, with isolated demo data. */
#tour-art { height:270px; display:block; padding:8px; overflow:hidden; position:relative; }
.tour-scene { position:relative; display:flex; flex-direction:column; justify-content:center; min-height:100%; --tag-column:50px; }
.tour-scene .task { width:100%; list-style:none; grid-template-columns:24px 26px minmax(0,1fr) 22px; column-gap:3px; }
.tour-scene .task .task-details { width:22px; opacity:1; }
.tour-scene .task-title { font-size:14px; }
.tour-scene .task-tag { font-size:14px; padding-inline:5px; }
.tour-scene .new-task-mobile { display:grid; }
.tour-scene .composer { display:block; position:relative; padding:10px; min-height:56px; border-radius:8px; background:#fff; width:100%; }
.tour-scene .draft-wrap { display:flex; align-items:center; gap:8px; }
.tour-input { font-size:16px; line-height:24px; min-height:24px; overflow-wrap:anywhere; }
.tour-input::after { content:''; display:inline-block; width:2px; height:18px; margin-left:2px; background:#1e6ef4; vertical-align:middle; animation:tour-caret 1s steps(2) infinite; }
.tour-target { outline:2px solid #1e6ef4; outline-offset:2px; border-radius:5px; box-shadow:0 0 0 5px #1e6ef412; }
.tour-tap { animation:tour-tap .5s ease; }
.tour-sort-control { align-self:flex-start; margin-top:16px; }
.tour-scene .today-divider { list-style:none; }
@keyframes tour-tap { 50%{background:#1e6ef425;transform:scale(.9);} }
@keyframes tour-caret { 50%{opacity:0;} }
@media(prefers-reduced-motion:reduce){.tour-input::after,.tour-tap{animation:none;}}

/* Compact pills, drawn completion marks and translucent navigation. */
.filter,.tag,.theme-token { font-size:13px;line-height:20px;border-radius:4px;padding:2px 6px; }
.filter { min-height:26px;gap:4px; }
.filter-count { font-size:11px; }
#filters { gap:6px; }
.filter-bar { display:block; }
.task .task-tag { font-size:13px;line-height:20px;height:24px;min-height:24px;padding:2px 6px;margin-top:8px; }
.task-main { gap:7px; }
.no-theme { --tag-bg:#eeeef2!important;--tag-text:#92929d!important;background:#eeeef2!important;color:#92929d!important; }
.task .task-tag:empty { background:transparent; }
#selected-theme.no-theme { cursor:pointer; }
.check::before,.done .check::before { border-radius:50%;background:transparent;border-color:#b8b8c1;width:17px;height:17px; }
.done .check::after { display:none; }
.marker-check { position:absolute;width:27px;height:27px;left:50%;top:50%;transform:translate(-46%,-56%) rotate(-7deg);overflow:visible;pointer-events:none; }
.marker-check path { fill:none;stroke:#19984d;stroke-width:3.8;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;opacity:0; }
.done .marker-check path { opacity:.9;stroke-dashoffset:0; }
.completing .marker-check path { animation:draw-marker 240ms ease-out both; }
@keyframes draw-marker { from{stroke-dashoffset:1;opacity:.2;}to{stroke-dashoffset:0;opacity:.9;} }
.brand-letter { transform-box:fill-box;transform-origin:center; }
.wordmark[role='button'],.bb-logo[role='button'] { cursor:pointer; }
.page-head,.app-footer { background:linear-gradient(120deg,#ffffffd9,#f5f7ffa6);-webkit-backdrop-filter:blur(22px) saturate(160%);backdrop-filter:blur(22px) saturate(160%);border:1px solid #ffffffba;box-shadow:inset 0 1px 0 #ffffffed,0 5px 22px #2020400b;border-radius:24px; }
.page-head { top:8px;padding:6px 14px; }
.app-footer { left:8px;width:calc(100% - 16px);bottom:max(6px,env(safe-area-inset-bottom),var(--app-safe-bottom,0px));min-height:56px;padding:5px 12px; }
.app-footer .today-count .comic-count { height:34px; }
.app-footer .today-count > span:last-child { overflow:visible; }
.telegram-fullscreen .paper { padding-top:calc(var(--tg-system-top,0px) + var(--tg-controls-height,44px) + 24px); }
.telegram-fullscreen .page-head { position:fixed;top:calc(var(--tg-system-top,0px) + 4px);left:8px;width:calc(100% - 16px);height:var(--tg-controls-height,44px);padding:0 108px;margin:0;justify-content:center; }
.telegram-fullscreen .page-head .wordmark { width:clamp(72px,calc(100vw - 244px),150px);height:40px;max-width:none;flex:none;margin:0; }
#search-bar { border-top:1px solid #ffffffbb;background:linear-gradient(120deg,#ffffffef,#f4f6ffe0);-webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%);border-radius:20px 20px 0 0;box-shadow:0 -4px 24px #2020400b;will-change:transform,opacity; }
.stats-hero { display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;margin:0 0 16px; }
#stats-title { width:100%;display:flex;flex-direction:column;align-items:center; }
#stats-today { height:130px;max-width:80%;margin:0 auto 8px; }
.stats-share-wrap { display:flex;flex-direction:column;align-items:center;width:100%;gap:8px; }
#share-results { display:flex;align-items:center;justify-content:center;gap:9px;padding:8px 16px;background:#f4f5f8;border-radius:20px;min-height:44px;order:2; }
#stats-emoji { font-size:24px;line-height:1; }
#share-caption { font-size:14px; }
#share-results .share-label { font-size:13px; }

/* Mobile composer: top field + actions, horizontal tag rail directly above keyboard. */
#mobile-input-area { padding:0 16px;flex-shrink:0; }
#mobile-composer .mobile-compose-head { padding:12px 16px 10px; }
#mobile-composer .draft-wrap { position:relative;flex-wrap:nowrap;padding:4px 48px 4px 12px;gap:6px; }
#mobile-composer .theme-token { margin-top:6px;font-size:13px; }
#mobile-composer #draft { min-width:0;flex:1;font-size:16px; }
#mobile-composer .draft-wrap .voice-input { position:absolute;right:4px;top:2px;width:40px;height:44px;padding:10px;color:#9696a0; }
#mobile-compose-actions { grid-template-columns:44px minmax(0,1fr);padding:8px 16px;gap:10px; }
#mobile-compose-actions .add { grid-column:2;min-height:44px;height:44px;border-radius:10px; }
#mobile-compose-actions .close { height:44px;color:#a5a5ae; }
#mobile-theme-area { flex:0 1 auto;margin-top:auto;overflow:hidden;padding:8px 16px max(8px,env(safe-area-inset-bottom),var(--app-safe-bottom,0px)); }
#mobile-theme-hint { display:none; }
#mobile-composer #suggestions { display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:6px;width:100%;overflow-x:auto;overflow-y:hidden;max-height:none!important;padding:4px 2px;scrollbar-width:none;scroll-padding-inline:4px;touch-action:pan-x; }
#mobile-composer #suggestions::-webkit-scrollbar { display:none; }
#mobile-composer #suggestions [role='option'],#mobile-composer #suggestions .theme-choice,#mobile-composer #suggestions .theme-choice-action { flex:0 0 auto;width:auto;min-height:40px;padding:4px 0;border:0;background:transparent; }
#mobile-composer #suggestions .tag { min-height:24px;padding:2px 6px;font-size:13px; }
#mobile-composer #suggestions [aria-selected='true'] .tag { outline:1.5px solid #92929d;outline-offset:2px;box-shadow:none; }
#mobile-composer #draft-colors { margin:0;padding:6px 0; }
#mobile-composer.keyboard-visible #mobile-theme-area { padding-bottom:8px; }

/* Full-screen walkthrough: isolated real UI classes with a stable instruction layer. */
#quick-tour { inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:none!important;padding:0;border-radius:0;overflow:hidden;background:#fff; }
#quick-tour::backdrop { background:#fff;backdrop-filter:none; }
#quick-tour > header { position:absolute;z-index:4;top:calc(var(--app-safe-top,0px) + 60px);left:max(16px,calc((100% - 710px)/2));right:max(16px,calc((100% - 710px)/2));height:36px;gap:8px; }
#quick-tour > header button { min-height:36px;padding:4px 10px; }
#tour-art { position:absolute;inset:0;height:100%;margin:0;padding:0;border-radius:0;background:#fff; }
.tour-scene { display:block;position:relative;height:100%;min-height:100%;width:100%;max-width:778px;margin:auto;padding:calc(var(--app-safe-top,0px) + 110px) clamp(16px,5vw,34px) 90px;--tag-column:38px; }
.tour-scene .tour-head { position:absolute;left:12px;right:12px;top:calc(var(--app-safe-top,0px) + 6px);height:46px;width:auto;margin:0;padding:4px;display:flex;justify-content:center; }
.tour-head .wordmark { width:144px;max-width:none;height:40px;flex:none;margin:0; }
.tour-filters { display:flex;gap:6px;margin-bottom:18px; }
.tour-task-list { list-style:none;padding:0;margin:0; }
.tour-scene .task { grid-template-columns:24px 26px minmax(0,1fr) 28px;column-gap:4px; }
.tour-scene .task .task-details { width:28px;opacity:1; }
.tour-scene .task-title { font-size:16px; }
#tour-art .task-tag { font-size:13px;line-height:20px;padding:2px 6px;height:24px; }
.tour-scene .tour-entry { display:grid;width:100%;margin-top:8px; }
.tour-scene .tour-footer { visibility:visible!important;position:absolute;bottom:max(8px,var(--app-safe-bottom,0px));left:8px;width:calc(100% - 16px);grid-template-columns:90px minmax(0,1fr) 90px; }
.tour-footer .today-count { display:flex;justify-content:center; }
.tour-footer .comic-count { height:34px; }
.tour-sort-control { margin:0; }
.tour-instructions { position:absolute;z-index:5;left:max(12px,calc((100% - 686px)/2));right:max(12px,calc((100% - 686px)/2));bottom:calc(80px + var(--app-safe-bottom,0px));padding:16px 18px;background:#fffffff0;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid #e9ecf5;border-radius:18px;box-shadow:0 8px 40px #30406012; }
#quick-tour .tour-instructions h2 { font-size:21px;margin:0 0 8px; }
#tour-copy { min-height:0;font-size:14px;line-height:1.4;margin:0 0 12px; }
#quick-tour .tour-instructions footer { gap:8px; }
.tour-pointer { position:absolute;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;background:#1e6ef433;border:2px solid #1e6ef4;z-index:4;pointer-events:none;transition:left .3s ease,top .8s ease;animation:tour-touch 1.4s ease infinite; }
@keyframes tour-touch { 50%{scale:.8;opacity:.55;} }
.tour-target { position:relative;outline:2px solid #1e6ef4;outline-offset:3px;border-radius:6px;box-shadow:0 0 0 6px #1e6ef40a; }
.tour-compose-screen { position:absolute;inset:0;padding:calc(var(--app-safe-top,0px) + 110px) 16px 0;background:#fff; }
.tour-compose-label { font-size:14px;color:#93939c;margin:0 0 10px; }
.tour-draft-field { display:flex;align-items:center;gap:6px;background:#f5f5f7;min-height:48px;border-radius:14px;padding:4px 12px; }
.tour-input { flex:1;min-width:0; }
.tour-draft-field .voice-input { width:40px;height:44px;padding:10px;flex-shrink:0; }
.tour-compose-actions { display:flex;align-items:center;gap:10px;margin-top:8px; }
.tour-compose-actions > span { min-height:44px;display:grid;place-items:center; }
.tour-compose-actions > span:first-child { width:44px;font-size:24px;color:#a5a5ae; }
.tour-compose-actions .primary { flex:1;background:#1e6ef4;color:#fff;border-radius:10px;font-size:16px; }
.tour-tag-rail { position:absolute;bottom:16px;left:16px;right:16px;display:flex;gap:6px; }
@media(min-width:700px){.tour-instructions{max-width:430px;left:auto;right:calc((100% - min(100%,778px))/2 + 30px);bottom:110px;}.tour-scene .tour-compose-screen{padding-top:150px;}}
@media(max-height:650px){#tour-copy{font-size:12px;margin-bottom:8px;}#quick-tour .tour-instructions h2{font-size:18px;}.tour-instructions{padding:10px 14px;bottom:74px;}#quick-tour .tour-instructions button{min-height:36px;padding:4px 10px;}.tour-scene{padding-top:calc(var(--app-safe-top,0px) + 95px);}.tour-filters{margin-bottom:8px;}.tour-compose-screen{padding-top:calc(var(--app-safe-top,0px) + 100px);}}
@media(prefers-reduced-motion:reduce){.completing .marker-check path,.tour-pointer{animation:none;}.tour-pointer{transition:none;}}
:root { --native-safe-bottom:env(safe-area-inset-bottom,0px); }
.app-footer { bottom:auto;height:56px; }
#quick-tour .tour-head { justify-content:center;min-height:46px; }
#tour-art .task-tag { min-height:24px; }
#tour-art .filter { min-height:26px; }
#quick-tour .tour-footer { top:auto; }
.stats-share-wrap { flex:none;max-width:100%; }
.telegram-fullscreen .page-head { min-height:44px; }
@media(pointer:coarse){.filter{min-height:38px;}.filter::before{inset-block:6px;}}
#tour-art .filter::before { inset:0; }
#quick-tour .tour-draft-field .voice-input { min-height:40px;height:40px; }
.telegram-fullscreen .tour-scene .tour-head { top:calc(var(--tg-system-top,0px) + 4px);left:8px;right:8px;min-height:44px;height:var(--tg-controls-height,44px); }
@media(max-height:650px){#tour-art[data-step='2'] .tour-filters,#tour-art[data-step='3'] .tour-filters,#tour-art[data-step='4'] .tour-filters{visibility:hidden;height:0;margin:0;overflow:hidden;}#quick-tour > header{top:calc(var(--app-safe-top,0px) + 54px);}}
.tour-writing .tour-footer,.tour-writing .tour-head { visibility:hidden!important; }
/* Keep the demo at the real screen coordinates; guide controls belong to the card. */
.tour-scene { padding-top:104px; }
.telegram-fullscreen .tour-scene { padding-top:calc(var(--tg-system-top,0px) + var(--tg-controls-height,44px) + 24px); }
#quick-tour .tour-instructions > header { position:static;height:26px;min-height:0;margin:0 0 6px;font-size:11px; }
#quick-tour .tour-instructions > header button { min-height:26px;padding:0;font-size:11px; }
.tour-compose-screen { padding-top:calc(var(--app-safe-top,0px) + 12px); }
.tour-compose-label { line-height:20px;margin:0 0 10px; }
@media(max-height:650px){#quick-tour .tour-instructions > header { height:20px;margin-bottom:4px; }#quick-tour .tour-instructions > header button { min-height:20px; }#tour-art[data-step='2'] .tour-filters,#tour-art[data-step='3'] .tour-filters,#tour-art[data-step='4'] .tour-filters{visibility:visible;height:auto;margin-bottom:18px;overflow:visible;}}
#tour-art .tag { font-size:13px;line-height:20px;padding:2px 6px; }
@media(max-width:600px),(pointer:coarse){.tour-task-list{margin-inline:-8px calc(-1 * clamp(16px,5vw,34px));}}

/* Clear neutral tags and consistently sized suggestion pills. */
.tag.no-theme,.theme-token.no-theme { min-width:42px;text-align:center;justify-content:center; }
#mobile-composer #suggestions .tag.no-theme { min-width:42px; }
#suggestions .create-theme { display:inline-flex;align-items:center;white-space:nowrap;padding:2px 9px;line-height:20px;min-height:24px;background:#eef3ff;color:#1e6ef4; }
#mobile-composer #suggestions .create-theme { padding:2px 9px; }
.task .task-tag.no-theme { padding:2px 6px; }
.profile-control { display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:5px;border-radius:50%;overflow:hidden; }
.profile-avatar { display:block;width:34px!important;height:34px!important;max-width:34px;flex:none;border-radius:50%;object-fit:cover; }
.profile-control > svg { width:24px;height:24px; }
.profile-control.has-avatar > svg { display:none; }
#tour-art .task-main { grid-template-columns:var(--tag-column) minmax(0,1fr); }
#tour-art .task-tag { flex-shrink:0;white-space:nowrap; }
#tour-art .task-content { min-width:0; }
#tour-art .task-tag { max-width:none; }

/* White masthead has no edge, shadow or tint against an empty white page. */
#header-backdrop { position:fixed;z-index:17;inset:0 0 auto;height:100px;pointer-events:none;background:#ffffff9c;-webkit-backdrop-filter:blur(24px) saturate(155%);backdrop-filter:blur(24px) saturate(155%);border:0;border-radius:0;box-shadow:none; }
body.cloud-boot #header-backdrop,body:has(.paper[hidden]) #header-backdrop { display:none; }
.page-head,.telegram-fullscreen .page-head,.tour-scene .tour-head { border:0;border-radius:0;box-shadow:none;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none; }
.page-head { top:0; }
.telegram-fullscreen .page-head { top:var(--tg-system-top,0px);left:0;width:100%; }
.telegram-fullscreen .tour-scene .tour-head { top:var(--tg-system-top,0px);left:0;right:0; }
.app-footer { background:linear-gradient(115deg,#ffffff69,#ffffff35 46%,#ffffff73);-webkit-backdrop-filter:blur(24px) saturate(185%);backdrop-filter:blur(24px) saturate(185%);border:1px solid #ffffff91;box-shadow:inset 0 1px 0 #ffffffd9,inset 0 -1px 0 #c0cad82b,0 4px 22px #24385809;isolation:isolate; }
.app-footer::before { content:'';position:absolute;inset:1px;border-radius:inherit;pointer-events:none;background:linear-gradient(145deg,#fff9,transparent 27% 70%,#fff5);z-index:-1; }
.app-footer::after { content:'';position:absolute;top:1px;left:14%;width:42%;height:1px;background:linear-gradient(90deg,transparent,#fff,transparent);pointer-events:none; }
#search-bar { background:#ffffff82;-webkit-backdrop-filter:blur(24px) saturate(175%);backdrop-filter:blur(24px) saturate(175%);z-index:30; }
.chrome-suspended .paper > .app-footer { visibility:hidden!important;pointer-events:none; }
body.app-entering .paper > .filter-bar,body.app-entering .paper > .task-area,body.app-entering .paper > .app-footer,body.app-entering #desktop-scope,body.app-entering #desktop-profile-slot { animation:content-appear 260ms ease-out both; }
@keyframes content-appear {from{opacity:0;}to{opacity:1;}}
#drag-actions { left:0;right:0;grid-template-columns:1fr;gap:4px;padding:6px 0 max(6px,env(safe-area-inset-bottom)); }
.drag-zone { width:100%;min-height:46px;height:46px;border-radius:8px;font-size:14px; }
#drop-delete.is-over,#drop-future.is-over { transform:none; }
.task-dragging .app-footer { visibility:hidden; }

/* Broad marker strokes: tapered, imperfect edges and darker ink at the join. */
.marker-check { width:31px;height:31px;transform:translate(-46%,-55%) rotate(-5deg); }
.marker-check path { stroke:none;stroke-dasharray:none;stroke-dashoffset:0;fill:#15984b;opacity:1; }
.marker-check .marker-texture { fill:#56ba73;opacity:.48; }
.marker-check g { opacity:0; }
.done .marker-check g { opacity:.87; }
.done .marker-check path { opacity:1; }
.done .marker-check .marker-texture { opacity:.48; }
.completing .marker-check path { animation:none; }
.completing .marker-short { animation:marker-short 120ms ease-out both; }
.completing .marker-long { animation:marker-long 170ms 80ms ease-out both; }
@keyframes marker-short{from{clip-path:inset(0 100% 0 0);}to{clip-path:inset(0);}}
@keyframes marker-long{from{clip-path:polygon(0 100%,0 100%,0 100%);}to{clip-path:polygon(0 100%,0 -100%,200% 100%);}}
.desktop-scope,.desktop-profile-slot { display:none; }
@media(min-width:601px) and (pointer:fine){
  .paper > .page-head,#quick-tour .tour-scene .tour-head { display:grid;grid-template-columns:1fr auto 1fr;padding-inline:0; }
  .desktop-scope { display:flex;align-items:center;gap:2px;justify-self:start; }
  .desktop-scope button { padding:7px 9px;min-height:36px;white-space:nowrap;border-radius:8px;font-size:12px;color:#9696a0; }
  .desktop-scope button[aria-pressed='true'] { background:#f2f3f6;color:#202024; }
  .desktop-profile-slot { display:flex;justify-self:end; }
}
#quick-tour .tour-scene .tour-footer { display:grid; }
@media(prefers-reduced-motion:reduce){body.app-entering .paper > *,body.app-entering #desktop-scope,body.app-entering #desktop-profile-slot,.completing .marker-short,.completing .marker-long{animation:none;}}
#empty-state { max-width:300px;margin:12px auto 16px;text-align:center;padding:0 12px; }
.empty-illustration { display:block;width:190px;height:95px;max-width:100%;margin:0 auto 10px; }
#empty-state #empty { font-size:14px;line-height:1.45;color:#8b8b95;margin:0; }
@media(prefers-reduced-motion:no-preference){#empty-state:not([hidden]) .empty-illustration{animation:empty-hello 360ms ease-out both;}}
@keyframes empty-hello {from{opacity:0;transform:translateY(5px) rotate(-3deg);}to{opacity:1;transform:translateY(0) rotate(0);}}

/* Stable screen edges; scrolling changes content, never the masthead geometry. */
:root { --masthead-top:0px;--masthead-height:80px;--glass-surface:linear-gradient(115deg,#ffffff32,#ffffff18 48%,#ffffff3d);--glass-blur:blur(12px) saturate(145%); }
html { overscroll-behavior-y:none; }
/* WebKit on macOS can swallow wheel scrolling when the root forbids overscroll. */
@media (hover:hover) and (pointer:fine) { html { overscroll-behavior-y:auto; } }
.telegram-app { --masthead-top:var(--tg-safe-area-inset-top,0px); }
.telegram-fullscreen { --masthead-top:var(--tg-system-top,0px);--masthead-height:var(--tg-controls-height,44px); }
.paper,.telegram-app .paper { padding-top:calc(var(--masthead-top) + var(--masthead-height) + 16px); }
.paper > .page-head { position:fixed;inset:var(--masthead-top) 0 auto;width:100%;max-width:778px;height:var(--masthead-height);min-height:0;margin:0 auto;padding:0 clamp(16px,5vw,34px); }
.telegram-fullscreen .paper > .page-head { max-width:none;padding:0 108px; }
#header-backdrop { height:calc(var(--masthead-top) + var(--masthead-height));background:#ffffff3d;-webkit-backdrop-filter:blur(14px) saturate(135%);backdrop-filter:blur(14px) saturate(135%); }
.desktop-scope { gap:4px; }
.desktop-scope button { min-height:36px;padding:5px 9px;font-size:12px;font-weight:650;border-radius:5px;color:#777780;background:transparent; }
.desktop-scope button[aria-pressed='true'] { color:#fff;background:#242429; }
.app-footer { background:var(--glass-surface);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);border-color:#ffffff52;box-shadow:inset 0 1px 0 #ffffff87,inset 0 -1px 0 #b4c1d01a,0 3px 18px #24385806; }
.app-footer::before { background:linear-gradient(145deg,#ffffff2b,transparent 27% 70%,#ffffff14); }
.app-footer::after { opacity:.45; }
.composer.is-pinned,.new-task-mobile.is-pinned { top:auto;bottom:var(--composer-bottom);background:var(--glass-surface);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);border:1px solid #ffffff52;border-radius:24px;box-shadow:inset 0 1px 0 #ffffff87,0 3px 18px #24385806; }
#composer-slot > * { opacity:1;transition:opacity 200ms ease; }
.search-open #composer-slot > * { opacity:0;visibility:visible;pointer-events:none; }
.close,#close-search { display:grid;place-items:center;line-height:1;padding:0; }
.close > svg,#close-search > svg { display:block;width:18px;height:18px;fill:currentColor;pointer-events:none; }
#mobile-compose-actions { align-items:center; }
#mobile-compose-actions .close { grid-column:1;grid-row:1;align-self:center;min-height:44px;height:44px; }
#mobile-theme-area { display:flex;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y; }
#mobile-composer #suggestions { flex:0 0 auto;flex-wrap:wrap;align-content:flex-start;align-items:center;overflow:visible;padding:4px 0;touch-action:pan-y; }
.tour-tag-rail { flex-wrap:wrap; }
.stats-hero { position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center;margin:0; }
#stats-title { width:auto;margin:0; }
#stats-today { height:100px;max-width:118px;margin:0; }
.stats-caption { display:flex;flex-direction:column;gap:5px;align-items:center;justify-self:center;max-width:110px;text-align:center; }
#share-caption { margin:0;font-size:12px;line-height:17px;color:#85858f; }
#stats-emoji { font-size:20px;line-height:24px; }
#share-results { display:grid;place-items:center;justify-self:center;width:44px;height:44px;min-height:44px;padding:10px;background:transparent;border-radius:8px;color:#85858f;order:initial; }
#share-results > svg { width:24px;height:24px; }
#share-results:hover:not(:disabled) { background:transparent;color:#1e6ef4; }
#stats-day-label { text-align:center;margin:6px 0 12px;font-size:12px;line-height:18px;color:#9696a0; }
#stats-sparkles { pointer-events:none; }
@media(min-width:601px) and (pointer:fine){
  .profile-drawer { inset:0 0 0 auto;width:440px;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:24px 0 0 24px; }
  .profile-drawer .drawer-head { padding:20px 24px 8px; }
  .composer.is-pinned { padding-inline:var(--composer-inset,0px); }
  .app-footer > * { transition:opacity 180ms ease,visibility 0s; }
  .search-open .paper > .app-footer { visibility:visible;pointer-events:none; }
  .search-open .paper > .app-footer > * { opacity:0;visibility:hidden;transition:opacity 180ms ease,visibility 0s 180ms; }
  #search-bar { padding:5px clamp(16px,5vw,34px);border:1px solid transparent;border-radius:24px;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;will-change:opacity; }
}
body:has(dialog[open]) .paper > .app-footer { visibility:hidden; }
#quick-tour .tour-scene { padding-top:calc(var(--masthead-top) + var(--masthead-height) + 16px); }
#quick-tour .tour-scene .tour-head { top:var(--masthead-top);height:var(--masthead-height);min-height:0; }
@media(prefers-reduced-motion:reduce){#composer-slot > *,.app-footer > *{transition:none;}}

.paper > .page-head { gap:12px; }
.telegram-fullscreen .paper > .page-head .wordmark svg { height:100%; }
@media(min-width:601px) and (pointer:fine){.paper > .page-head{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);}.paper > .page-head .wordmark{width:clamp(120px,16vw,180px);}}
@media(min-width:601px) and (max-width:760px) and (pointer:fine){
  .desktop-scope { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;max-width:100%; }
  .desktop-scope button { min-width:0;white-space:normal;line-height:16px;overflow-wrap:anywhere;padding:4px 7px; }
}

#mobile-compose-actions .add { display:flex;align-items:center;justify-content:center;gap:10px; }
@media(max-width:600px),(pointer:coarse){
  .title-flow textarea.title-edit { display:block;width:100%;min-height:24px;padding:0;resize:none;overflow-y:auto;font-size:16px;line-height:24px;border-radius:0; }
  .editing-mobile-title #composer-slot { visibility:hidden;pointer-events:none; }
}

/* Single-level mobile controls; profile sits safely below Telegram's header. */
.footer-tools { display:flex;align-items:center;gap:2px;min-width:0; }
.footer-tools > button { flex:0 0 44px; }
.footer-add { display:grid;place-items:center;width:44px;height:44px;padding:11px;border-radius:50%;background:#252529;color:#fff; }
.footer-add svg { width:22px;height:22px;fill:currentColor; }
.footer-add[hidden],.mobile-profile-slot[hidden] { display:none; }
@media(max-width:600px),(pointer:coarse){
  .paper > .filter-bar { display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px;align-items:start; }
  .mobile-profile-slot { width:44px;display:flex;justify-content:center; }
  .paper > .filter-bar #filters { min-width:0; }
  .paper > .filter-bar #profile-trigger { margin-top:-8px; }
  .paper { padding-bottom:calc(var(--app-footer-height) + 32px); }
}

.tour-filters .tour-profile { margin-left:auto;flex:0 0 44px;width:44px;height:44px;padding:5px;margin-top:-8px;display:grid;place-items:center; }
.tour-profile svg { width:22px;height:22px;fill:currentColor; }
.tour-profile.has-avatar svg { display:none; }

/* Search replaces controls inside the same persistent glass shell. */
.app-footer > * { transition:opacity 180ms ease; }
.search-open .paper > .app-footer { visibility:visible;pointer-events:none; }
.search-open .paper > .app-footer > * { opacity:0;visibility:hidden;transition:opacity 180ms ease,visibility 0s 180ms; }
.search-open.search-closing .paper > .app-footer > * { opacity:1;visibility:visible;transition:opacity 180ms ease; }
#search-bar { padding:5px 12px;border:1px solid transparent;border-radius:24px;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;will-change:opacity; }
#task-search { min-width:0; }
.footer-add { background:#FFD60A;color:#FF383C;border:2px solid #252529;box-shadow:2px 2px 0 #252529;border-radius:15px 18px 14px 18px;transform:rotate(-6deg); }
.footer-add svg { filter:drop-shadow(1px 1px 0 #252529);transform:rotate(6deg); }
.footer-add:active { transform:translate(1px,1px) rotate(-3deg);box-shadow:1px 1px 0 #252529; }
@media(prefers-reduced-motion:reduce){.app-footer > *{transition:none!important;}}

#mobile-theme-hint:not([hidden]) { display:block;font-size:12px;line-height:18px;margin:0 0 8px;color:#96969e; }
.tag-length-hint { font-size:12px;line-height:18px;color:#96969e;padding:6px 10px 2px;margin:0; }

.mobile-search-slot { display:none; }
#search-trigger[hidden] { display:none; }
@media(max-width:600px),(pointer:coarse){
  .paper { min-height:calc(100svh + 64px); }
  .mobile-search-slot { display:block;height:64px;padding:4px 0 12px; }
  #mobile-search-slot #search-bar { position:relative;z-index:1;left:auto;top:auto;bottom:auto;width:100%;height:48px;margin:0;padding:1px 10px;border-radius:16px;background:#f3f3f58c; }
  .search-open .paper > .app-footer { visibility:visible;pointer-events:auto; }
  .search-open .paper > .app-footer > * { opacity:1;visibility:visible;transition:none; }
  .search-open #composer-slot > * { opacity:1;visibility:visible;pointer-events:auto; }
}

#search-trigger { width:44px;min-height:44px;display:grid;place-items:center;padding:10px;color:#85858f; }
#search-trigger .filled-icon { width:21px;height:21px; }
.footer-add,.footer-add:active { padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;transform:none; }
.footer-add .comic-add { width:44px;height:44px;fill:none;filter:none;transform:none; }
.footer-add:active .comic-add { transform:scale(.94); }
.marker-check { width:36px;height:36px;transform:translate(-48%,-56%); }
.marker-check path { fill:#168d46; }
.done .marker-check g { opacity:.96; }
@media(max-width:600px),(pointer:coarse){
  .mobile-profile-slot { align-items:center; }
  .paper > .filter-bar #profile-trigger { margin:0;flex:0 0 44px; }
}

/* Let the primary action break the toolbar grid without enlarging the toolbar. */
@media(max-width:600px),(pointer:coarse){
  .app-footer .footer-account { position:relative;height:44px; }
  .app-footer .footer-add { position:absolute;right:-10px;bottom:-10px;width:64px;height:64px; }
  .app-footer .footer-add .comic-add { width:64px;height:64px; }
}

/* Returning to the list restores the chrome in the same frame. */
.app-footer > * { transition:none; }
.search-open .paper > .app-footer > * { transition:none; }
#search-bar { will-change:auto; }

/* Keep the top-layer composer itself unscrollable during iOS keyboard focus. */
#mobile-composer { overflow:clip; }
#mobile-composer .mobile-compose-surface { overflow:clip; }
#mobile-composer .mobile-compose-head { outline:none; }
#composer-brand { width:132px;height:40px;margin:0 auto 10px; }
#composer-brand svg { display:block;width:100%;height:100%;overflow:visible; }
@media(max-width:600px) {
  #stats .drawer-head::before { content:'';position:absolute;top:7px;left:calc(50% - 16px);width:32px;height:3px;border-radius:2px;background:#d9d9df; }
  #stats.pulling { animation:none; }
  #stats.pull-settling { transition:transform 200ms ease-out; }
}
@media(prefers-reduced-motion:reduce){#stats.pull-settling{transition:none;}}

/* Details: grow with the writing, keep optional dates compact. */
.description-wrap { position:relative; }
#description { min-height:42px;max-height:none;resize:none;overflow:hidden;padding:9px 28px 9px 12px;line-height:24px; }
.description-grow { position:absolute;bottom:8px;right:9px;font-size:14px;color:#b1b1ba;pointer-events:none; }
#deadline,.deadline-picker { height:42px;min-height:42px;padding:8px 12px;line-height:24px;border-radius:8px;background:#f4f4f7;font-size:16px; }
.deadline-picker { width:100%;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:10px; }
.deadline-picker::after { content:'';width:15px;height:15px;border:2px solid #92929d;border-top-width:5px;border-radius:2px;box-sizing:border-box; }
.deadline-picker:focus-visible { outline:2px solid #1e6ef4;outline-offset:2px; }
.deadline-calendar { margin-top:8px;padding:10px;border:1px solid #e9e9ee;border-radius:12px;background:#fff; }
.calendar-nav { display:grid;grid-template-columns:32px minmax(0,1fr) 76px 32px;align-items:center;gap:4px; }
.calendar-nav > button { height:36px;font-size:25px;color:#74747e; }
.calendar-nav select { min-width:0;width:100%;height:36px;background:#f4f4f7;border:0;border-radius:6px;padding:4px;font:inherit;font-size:13px;color:#393940; }
.calendar-grid { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-top:10px; }
.calendar-weekday { text-align:center;color:#93939d;font-size:11px;padding:4px 0; }
.calendar-grid button { min-height:36px;border-radius:6px;font-size:14px;font-variant-numeric:tabular-nums; }
.calendar-grid button:hover { background:#eff4ff; }
.calendar-grid button[aria-current] { color:#1e6ef4;font-weight:700;box-shadow:inset 0 0 0 1px #bfd2ff; }
.calendar-grid button[aria-pressed='true'] { background:#1e6ef4;color:#fff; }
.calendar-grid button:focus-visible { outline:2px solid #202024;outline-offset:1px; }
.calendar-actions { display:flex;justify-content:space-between;margin-top:8px; }
.calendar-actions button { padding:8px 6px;min-height:36px;font-size:13px;color:#74747e; }

/* Desktop uses the same single footer as mobile; search belongs to the filters. */
@media(min-width:601px) and (pointer:fine) {
  :root { scroll-padding-bottom:calc(var(--app-footer-height) + 18px); }
  .paper { padding-bottom:calc(var(--app-footer-height) + 32px); }
  .paper > .filter-bar { display:grid;position:relative;grid-template-columns:minmax(0,1fr) 44px;gap:12px;align-items:start; }
  #desktop-search-slot { width:44px; }
  #desktop-search-slot #search-trigger { margin-top:-8px; }
  .filter-bar #search-bar { position:absolute;inset:-8px 0 auto;width:100%;height:44px;padding:0 10px;background:#f3f3f5;border-radius:10px;z-index:2; }
  .search-open .filter-bar #filters,.search-open #desktop-search-slot { visibility:hidden;pointer-events:none; }
  .search-open .paper > .app-footer { visibility:visible;pointer-events:auto; }
  .search-open .paper > .app-footer > * { opacity:1;visibility:visible;transition:none; }
  .search-open #composer-slot > * { opacity:1;visibility:visible;pointer-events:auto; }
  .app-footer .footer-account { position:relative;height:44px; }
  .app-footer .footer-add { position:absolute;right:-10px;bottom:-10px;width:64px;height:64px; }
  .app-footer .footer-add .comic-add { width:64px;height:64px; }
}

/* Keep the tap on the label as the demo changes size or language. */
.tour-entry.tour-target > :last-child { position:relative;justify-self:start; }
.tour-entry.tour-target > :last-child::after {
  content:'';position:absolute;left:50%;top:55%;width:20px;height:20px;
  border:2px solid #1e6ef4;border-radius:50%;background:#1e6ef433;pointer-events:none;
}
@media (prefers-reduced-motion:no-preference) {
  .tour-entry.tour-target > :last-child::after { animation:tour-entry-press 2.6s ease-in-out infinite; }
  @keyframes tour-entry-press {
    0%,100% { opacity:0;transform:translate(32px,24px); }
    20% { opacity:1;transform:translate(32px,24px); }
    55%,80% { opacity:1;transform:translate(0,0); }
    67% { transform:scale(.72);background:#1e6ef477; }
    90% { opacity:0;transform:translate(0,0); }
  }
}
.empty-illustration { object-fit:contain; }

#empty-spark {position:relative;display:block;margin:0 auto 10px;padding:0;border:0;background:transparent;cursor:pointer;color:#333;}
#empty-spark img {margin:0;}
#empty-spark[data-reply]::after {content:attr(data-reply);position:absolute;right:0;top:0;padding:2px 7px;transform:rotate(5deg);background:#ffdc37;font-size:13px;font-weight:750;}
.comic-count {--digit-face:#747782;--digit-shadow:#565863;}
.comic-count[data-energy=spark] {--digit-face:#5079ae;--digit-shadow:#30435c;}
.comic-count[data-energy=rhythm] {--digit-face:#2861ed;--digit-shadow:#162d68;}
.comic-count[data-energy=fire] {--digit-face:#ef5342;--digit-shadow:#5d221d;}
.comic-count[data-energy=burst] {--digit-face:#ffcb0b;--digit-shadow:#a32d20;}
#mobile-composer .mobile-compose-surface {padding-top:var(--masthead-top);}
#mobile-composer .mobile-compose-head {display:grid;place-items:center;height:var(--masthead-height);padding:0;flex:none;}
#composer-brand {width:var(--compose-logo-width);height:var(--compose-logo-height);margin:0;transform:rotate(-2deg);}
#mobile-composer #mobile-input-area {padding:20px var(--compose-inset,16px) 0;}
