:root {
  color-scheme: light;
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --ink: #37352f;
  --muted: #6f6e69;
  --faint: #9b9a95;
  --border: #e9e9e7;
  --border-strong: #d9d9d6;
  --hover: #f4f4f2;
  --selected: #f1ebe7;
  --accent: #a45e4d;
  --accent-ink: #ffffff;
  --danger: #b42318;
  --priority-low: #456a4e;
  --priority-medium: #8a561f;
  --priority-high: #a63d3a;
  --shadow: 0 4px 8px rgba(55, 53, 47, 0.08);
  --focus: 0 0 0 3px rgba(164, 94, 77, 0.18);
}

body.dark {
  color-scheme: dark;
  --bg: #191918;
  --surface: #20201f;
  --surface-raised: #262624;
  --ink: #f1f0ec;
  --muted: #b8b6ae;
  --faint: #8d8b84;
  --border: #353431;
  --border-strong: #484640;
  --hover: #2b2a28;
  --selected: #352a26;
  --accent: #d19986;
  --accent-ink: #211a17;
  --danger: #ff8f85;
  --priority-low: #8db394;
  --priority-medium: #d3a15f;
  --priority-high: #ed8179;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.24);
  --focus: 0 0 0 3px rgba(209, 153, 134, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
input,
textarea,
select {
  border-radius: 7px;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-color: var(--accent);
}

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 4px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.task-form {
  display: grid;
  gap: 12px;
}

label,
.search-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--ink);
  padding: 10px 11px;
}

select {
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 88px;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

.form-error {
  min-height: 20px;
  margin: -2px 0 0;
  color: var(--danger);
  font-size: 13px;
}

button {
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

button:hover {
  background: var(--hover);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

button:active {
  transform: translateY(1px);
}

.primary-button {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px;
  font-weight: 600;
}

.primary-button:hover {
  filter: brightness(0.97);
  background: var(--accent);
}

.soft-button {
  padding: 8px 11px;
  color: var(--ink);
}

.toolbar-button {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding-inline: 12px;
  white-space: nowrap;
}

.toolbar-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  line-height: 1;
}

.toolbar-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
}

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

.data-dialog {
  width: min(calc(100% - 32px), 430px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.data-dialog::backdrop {
  background: rgba(30, 29, 26, 0.42);
}

.shortcuts-dialog {
  width: min(calc(100% - 32px), 420px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.shortcuts-dialog::backdrop {
  background: rgba(30, 29, 26, 0.42);
}

.settings-dialog {
  width: min(560px, calc(100vw - 32px));
  min-width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  overflow: auto;
  overflow-x: hidden;
}

.settings-dialog::backdrop {
  background: rgba(30, 29, 26, 0.42);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dialog-header h2 {
  margin: 0;
}

.data-actions {
  display: grid;
  border-top: 1px solid var(--border);
}

.data-option {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.data-option span {
  color: var(--muted);
  font-size: 13px;
}

.settings-sections {
  display: grid;
  gap: 18px;
  min-width: 0;
  width: 100%;
}

.settings-section {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  min-width: 0;
  width: 100%;
}

.settings-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.settings-section-header {
  display: grid;
  gap: 2px;
  min-width: 0;
  width: 100%;
}

.settings-section-header h3 {
  margin: 0;
  font-size: 15px;
}

.settings-section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.theme-option {
  min-width: 0;
  display: flex;
  align-items: stretch;
  cursor: pointer;
  width: 100%;
}

.theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-option span {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-raised);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  min-width: 0;
}

.theme-option strong,
.theme-option small {
  display: block;
}

.theme-option small {
  color: var(--muted);
  font-size: 12px;
}

.theme-option input:checked + span {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.settings-inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
}

.settings-actions {
  display: grid;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.settings-actions .data-option {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-raised);
}

.settings-actions .data-option:last-child {
  border-bottom: 1px solid var(--border);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.topbar h1 {
  margin-bottom: 0;
}

.topbar-actions,
.calendar-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.task-sidebar,
.calendar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.task-sidebar {
  padding: 18px;
  position: sticky;
  top: 18px;
}

.quick-add-form {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.quick-add-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.quick-add-button {
  min-width: 58px;
  padding-inline: 12px;
}

.search-input {
  margin-top: 7px;
}

.sidebar-block {
  margin-top: 20px;
}

.sidebar-block.is-hidden {
  display: none;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sidebar-heading h2 {
  margin: 0;
  font-size: 16px;
}

.muted-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 3px 8px;
  white-space: nowrap;
}

.search-results {
  display: grid;
  gap: 4px;
}

.sidebar-more {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.result-row,
.task-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  padding: 8px;
}

.task-row {
  cursor: pointer;
}

.result-row {
  box-shadow: 0 1px 0 var(--border);
}

.result-row:last-child {
  box-shadow: none;
}

.result-row:hover,
.task-row:hover {
  background: var(--hover);
}

.task-row.is-completed .task-title,
.result-row.is-completed .task-title {
  color: var(--muted);
  text-decoration: line-through;
}

.task-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.task-title-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.task-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.priority-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 1px 6px;
  background: color-mix(in srgb, var(--priority-color) 13%, transparent);
  color: var(--priority-color);
  font-size: 11px;
  font-weight: 600;
}

.priority-low {
  --priority-color: var(--priority-low);
}

.priority-medium {
  --priority-color: var(--priority-medium);
}

.priority-high {
  --priority-color: var(--priority-high);
}

.task-meta {
  color: var(--muted);
  font-size: 12px;
}

.task-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--hover) 72%, transparent);
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.result-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.result-arrow {
  color: var(--faint);
  font-size: 15px;
  line-height: 1;
}

.result-date-button {
  min-width: 62px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 2px;
}

.calendar-card {
  min-width: 0;
  padding: 20px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.view-switcher {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
}

.view-button {
  min-height: 30px;
  padding: 4px 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.view-button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(55, 53, 47, 0.08);
}

#calendarSubtitle {
  margin: 0;
  color: var(--muted);
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
  color: var(--muted);
  font-size: 12px;
  padding: 0 0 8px;
}

.weekday-row span {
  padding: 0 8px;
}

.calendar-grid {
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.date-cell {
  position: relative;
  min-height: 112px;
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  padding: 10px;
  text-align: left;
}

.date-cell:hover {
  background: var(--hover);
}

.date-cell.is-outside {
  color: var(--faint);
  background: color-mix(in srgb, var(--surface) 78%, var(--bg));
}

.date-cell.is-selected {
  background: var(--selected);
}

.date-number {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 7px;
  font-weight: 500;
}

.date-cell.is-today .date-number {
  background: var(--ink);
  color: var(--surface);
}

.date-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.task-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.task-dot.priority-low,
.priority-dot.priority-low {
  background: var(--priority-low);
}

.task-dot.priority-medium,
.priority-dot.priority-medium {
  background: var(--priority-medium);
}

.task-dot.priority-high,
.priority-dot.priority-high {
  background: var(--priority-high);
}

.task-dot.is-completed {
  background: var(--border-strong);
}

.date-more {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.calendar-grid.view-week {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.week-day {
  min-width: 0;
  min-height: 330px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.week-day.is-selected {
  background: var(--selected);
}

.week-day-header {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 11px 9px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.week-day.is-today .week-day-header {
  color: var(--accent);
}

.week-day-name {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.week-day-date {
  font-size: 14px;
  font-weight: 600;
}

.week-day-tasks {
  display: grid;
  gap: 4px;
  padding: 7px;
}

.week-day-empty {
  padding: 7px 2px;
  color: var(--faint);
  font-size: 12px;
}

.calendar-task-chip {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 6px;
  align-items: center;
  padding: 7px;
  border: 0;
  background: color-mix(in srgb, var(--hover) 68%, transparent);
  text-align: left;
}

.calendar-task-chip.is-completed {
  color: var(--muted);
  text-decoration: line-through;
}

.priority-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--priority-color);
}

.calendar-task-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.calendar-task-time {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
}

.calendar-grid.view-today {
  grid-template-columns: 1fr;
  gap: 22px;
  border: 0;
}

.today-group {
  min-width: 0;
}

.today-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}

.today-group-heading h3 {
  margin: 0;
  font-size: 15px;
}

.today-task-list {
  display: grid;
  gap: 4px;
  padding-top: 5px;
}

.panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(30, 29, 26, 0.16);
  opacity: 0;
  transition: opacity 180ms ease;
}

.panel-overlay.is-open {
  opacity: 1;
}

.toast-stack {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 40;
  width: min(calc(100% - 32px), 360px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-raised) 90%, var(--hover));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(0);
  opacity: 1;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, filter 220ms ease;
}

.toast.has-action {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.toast-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.toast-action {
  padding: 6px 9px;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  pointer-events: auto;
}

.toast-enter {
  transform: translateY(-16px) scale(0.98);
  opacity: 0;
  filter: blur(6px);
}

.toast-exit {
  transform: translateY(-10px) scale(0.99);
  opacity: 0;
  filter: blur(4px);
}

.toast-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.toast-detail {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortcuts-list {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
}

.shortcut-row span {
  color: var(--muted);
  text-align: right;
}

kbd {
  min-width: 42px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--border-strong) 65%, transparent);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.task-panel {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  width: min(430px, 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.task-panel.is-open {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.panel-tasks {
  display: grid;
  gap: 4px;
  overflow-y: auto;
  padding-right: 2px;
}

.task-checkbox {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.add-task-button {
  width: 100%;
  padding: 11px;
  text-align: left;
  color: var(--muted);
}

.task-form {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.danger-button {
  margin-right: auto;
  padding: 8px 11px;
  color: var(--danger);
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 24px, 720px);
    padding-top: 20px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .task-sidebar {
    position: static;
  }

  .calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-controls {
    width: 100%;
    justify-content: space-between;
  }

  .theme-options {
    grid-template-columns: 1fr;
  }

  .calendar-actions {
    width: auto;
  }

  .calendar-grid.view-week {
    grid-template-columns: 1fr;
    border-right: 1px solid var(--border);
  }

  .week-day {
    min-height: 0;
    border-right: 0;
  }

  .date-cell {
    min-height: 86px;
    padding: 8px;
  }

  .task-panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(84vh, 720px);
    border-top: 1px solid var(--border);
    border-left: 0;
    border-radius: 8px 8px 0 0;
    transform: translateY(100%);
  }

  .task-panel.is-open {
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .toast-stack {
    top: 14px;
    width: min(calc(100% - 20px), 360px);
  }

  .calendar-card,
  .task-sidebar {
    padding: 14px;
  }

  .calendar-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-inline-row {
    align-items: stretch;
    flex-direction: column;
  }

  .view-switcher,
  .calendar-actions {
    width: 100%;
  }

  .view-button {
    flex: 1 1 0;
  }

  .calendar-actions .soft-button {
    flex: 1 1 auto;
  }

  .weekday-row span {
    padding: 0 2px;
    text-align: center;
  }

  .date-cell {
    min-height: 62px;
    padding: 5px;
  }

  .date-number {
    min-width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .date-summary {
    margin-top: 8px;
    gap: 3px;
  }

  .task-dot {
    width: 6px;
    height: 6px;
  }

  .date-more {
    font-size: 11px;
  }

  .shortcut-row {
    align-items: flex-start;
  }

  .shortcut-row span {
    text-align: left;
  }
}

.afk-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #000000;
  color: #ffffff;
}

.afk-exit-button {
  position: absolute;
  top: 22px;
  right: 22px;
  min-width: 64px;
  padding: 8px 12px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.afk-exit-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.afk-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
}

.afk-clock {
  font-size: clamp(72px, 16vw, 180px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.afk-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

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