@charset "UTF-8";
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #f5f5f5;
  color: #1d1d24;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: #6d28d9;
}

a:hover {
  color: #5b21b6;
}

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 100;
  padding: 8px 16px;
  background: #ffffff;
  border-radius: 8px;
}
.skip-link:focus {
  top: 8px;
}

.plain__main {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 12px;
}
.card__brand {
  margin: 0 0 24px;
  color: #6d28d9;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.25;
}
.card__subtitle {
  margin: 24px 0 8px;
  font-size: 1.125rem;
}
.card__text {
  margin: 0 0 16px;
  color: #5b5b66;
}
.card__footer {
  margin: 24px 0 0;
  font-size: 0.9375rem;
  text-align: center;
}

.form {
  margin-top: 16px;
}
.form__field {
  margin-bottom: 16px;
}
.form__label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.form__input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #8a8a96;
  border-radius: 8px;
  color: #1d1d24;
  font: inherit;
}
.form__input:focus-visible {
  border-color: #2563eb;
}
.form__input--code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-align: center;
}
.form__hint {
  margin: 4px 0 0;
  color: #5b5b66;
  font-size: 0.875rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button--primary {
  background: #6d28d9;
  color: #fff;
}
.button--primary:hover {
  background: #5b21b6;
  color: #fff;
}
.button--ghost {
  background: transparent;
  border-color: #dcdce2;
  color: #1d1d24;
}
.button--ghost:hover {
  background: #f5f5f5;
}
.button--link {
  min-height: auto;
  padding: 0;
  background: none;
  color: #6d28d9;
  font-weight: 400;
  text-decoration: underline;
}
.button--block {
  width: 100%;
}

.alert {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9375rem;
}
.alert--error {
  background: #fdecea;
  color: #b42318;
}
.alert--success {
  background: #e7f6ec;
  color: #067647;
}
.alert--warning {
  background: #fff4e0;
  color: #7a4a00;
}

.recovery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 16px;
  padding: 16px;
  background: #f1ebfd;
  border-radius: 8px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.0625rem;
  list-style: none;
  text-align: center;
  user-select: all;
}

.checklist {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.checklist__item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #dcdce2;
}
.checklist__item--ok .checklist__mark {
  color: #067647;
}
.checklist__item--ko .checklist__mark {
  color: #b42318;
}
.checklist__mark {
  font-weight: 700;
}

.steps {
  margin: 0 0 16px;
  padding-left: 20px;
}
.steps li {
  margin-bottom: 4px;
}

.secret {
  margin: 0 0 8px;
  padding: 12px;
  background: #f1ebfd;
  border-radius: 8px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.125rem;
  text-align: center;
  word-break: break-all;
  user-select: all;
}

.app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #ffffff;
  border-bottom: 1px solid #dcdce2;
}
@media (min-width: 900px) {
  .app__bar {
    display: none;
  }
}

.app__brand {
  color: #6d28d9;
  font-weight: 700;
}

.app__menu-toggle {
  min-height: 44px;
  padding: 8px 16px;
  background: none;
  border: 1px solid #dcdce2;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.sidebar {
  display: none;
  padding: 16px;
  background: #ffffff;
  border-bottom: 1px solid #dcdce2;
}
.sidebar--open {
  display: block;
}
@media (min-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 220px;
    flex-direction: column;
    border-right: 1px solid #dcdce2;
    border-bottom: 0;
  }
}
.sidebar__brand {
  display: none;
  margin: 8px 12px 24px;
  color: #6d28d9;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (min-width: 900px) {
  .sidebar__brand {
    display: block;
  }
}
.sidebar__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar__link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #1d1d24;
  text-decoration: none;
}
.sidebar__link:hover {
  background: #f5f5f5;
  color: #1d1d24;
}
.sidebar__link--active {
  background: #f1ebfd;
  color: #5b21b6;
  font-weight: 600;
}
.sidebar__logout {
  margin-top: 16px;
  padding: 12px;
  border-top: 1px solid #dcdce2;
}
@media (min-width: 900px) {
  .sidebar__logout {
    margin-top: auto;
  }
}
.sidebar__user {
  display: block;
  margin-bottom: 8px;
  overflow: hidden;
  color: #5b5b66;
  font-size: 0.875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app__main {
  padding: 24px 16px;
}
@media (min-width: 900px) {
  .app__main {
    margin-left: 220px;
    padding: 32px;
  }
}
.app__main:focus {
  outline: none;
}

.page-head {
  margin-bottom: 24px;
}
.page-head__title {
  margin: 0;
  font-size: 1.5rem;
}

.empty {
  padding: 32px 24px;
  background: #ffffff;
  border: 1px dashed #dcdce2;
  border-radius: 12px;
  text-align: center;
}
.empty__text {
  margin: 0 0 4px;
  font-weight: 600;
}
.empty__hint {
  margin: 0;
  color: #5b5b66;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.muted {
  color: #5b5b66;
}

.dot {
  flex-shrink: 0;
  vertical-align: middle;
}

.badge {
  display: inline-block;
  padding: 1px 8px;
  background: #f5f5f5;
  border: 1px solid #dcdce2;
  border-radius: 999px;
  color: #5b5b66;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}
.badge--warning {
  background: #fff4e0;
  border-color: transparent;
  color: #7a4a00;
}

.list-count {
  margin: 0 0 8px;
  color: #5b5b66;
  font-size: 0.875rem;
}

.button--small {
  min-height: 36px;
  padding: 4px 12px;
  font-size: 0.875rem;
}

.button--danger {
  background: transparent;
  border-color: #b42318;
  color: #b42318;
}
.button--danger:hover {
  background: #fdecea;
  color: #b42318;
}

.form__input--compact {
  min-height: 40px;
  padding: 6px 10px;
}

.form__input--short {
  max-width: 200px;
}

.form__input--file {
  padding: 8px;
}

textarea.form__input {
  resize: vertical;
}

.form__error {
  margin: 4px 0 0;
  color: #b42318;
  font-size: 0.875rem;
  font-weight: 600;
}

.form__input[aria-invalid=true] {
  border-color: #b42318;
}

.form__fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.form__row {
  display: grid;
  gap: 0 16px;
}
@media (min-width: 900px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.form--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}
.form--inline .form__field {
  margin-bottom: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
}
.toolbar__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toolbar__field--grow {
  flex: 1 1 200px;
}
.toolbar__label {
  color: #5b5b66;
  font-size: 0.8125rem;
  font-weight: 600;
}

.panel {
  max-width: 760px;
  margin-bottom: 24px;
  padding: 20px 16px;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 12px;
  scroll-margin-top: 16px;
}
@media (min-width: 900px) {
  .panel {
    padding: 24px;
  }
}
.panel__title {
  margin: 0 0 4px;
  font-size: 1.25rem;
}
.panel__subtitle {
  margin: 24px 0 4px;
  padding-top: 16px;
  border-top: 1px solid #dcdce2;
  font-size: 1rem;
}
.panel__intro {
  margin: 0 0 12px;
  color: #5b5b66;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}

.rows {
  margin: 0;
  padding: 0;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
  list-style: none;
}
.rows__item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #dcdce2;
}
.rows__item:last-child {
  border-bottom: 0;
}
.rows__item--archived .client__name {
  color: #5b5b66;
}

.client {
  flex: 1 1 260px;
}
.client__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  cursor: pointer;
}
.client__name {
  font-weight: 600;
}
.client__count, .client__rate {
  color: #5b5b66;
  font-size: 0.875rem;
}
.client__rate {
  margin-left: 8px;
}
.client__projects {
  margin: 8px 0 0;
  padding: 0 0 0 20px;
  list-style: none;
}
.client__project {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.client__project--archived a {
  color: #5b5b66;
}
.client__empty, .client__add {
  margin: 8px 0 0 20px;
  color: #5b5b66;
  font-size: 0.875rem;
}

.actions,
.table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.table-wrap--menus {
  overflow: visible;
}
.table-wrap {
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #dcdce2;
  text-align: left;
  vertical-align: middle;
}
.table thead th {
  color: #5b5b66;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table__name {
  font-weight: 600;
  white-space: nowrap;
}
.table__name a {
  margin-left: 6px;
}
.table__num {
  font-variant-numeric: tabular-nums;
  text-align: right !important;
  white-space: nowrap;
}
.table__num--over {
  color: #b42318;
  font-weight: 600;
}
.table__row--archived {
  color: #5b5b66;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.swatch__input {
  position: absolute;
  opacity: 0;
}
.swatch__dot {
  display: inline-flex;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 50%;
}
.swatch__input:checked + .swatch__dot {
  border-color: #1d1d24;
}
.swatch__input:focus-visible + .swatch__dot {
  outline: 3px solid #2563eb;
  outline-offset: 1px;
}
.swatch__label {
  padding: 4px 6px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 0.875rem;
}
.swatch__input:checked + .swatch__label {
  border-color: #1d1d24;
}
.swatch__input:focus-visible + .swatch__label {
  outline: 3px solid #2563eb;
}

.swatch__picker {
  width: 44px;
  height: 36px;
  padding: 2px;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
  cursor: pointer;
}

.logo-preview {
  margin: 0 0 16px;
  padding: 16px;
  background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/16px 16px;
  border: 1px solid #dcdce2;
  border-radius: 8px;
}
.logo-preview img {
  display: block;
  max-width: 100%;
  max-height: 120px;
}

.panel__title + .panel__subtitle {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}

.table-wrap + .list-count {
  margin-top: 8px;
}

.app__main {
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 899px) {
  .table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .table--stack tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    padding: 12px;
    border-bottom: 1px solid #dcdce2;
  }
  .table--stack tbody tr:last-child {
    border-bottom: 0;
  }
  .table--stack th,
  .table--stack td {
    padding: 0;
    border: 0;
  }
  .table--stack .table__name,
  .table--stack td:last-child {
    grid-column: 1/-1;
    white-space: normal;
  }
  .table--stack td:last-child {
    margin-top: 6px;
  }
  .table--stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: #5b5b66;
    font-size: 0.75rem;
    font-weight: 600;
  }
  .table--stack .table__num {
    text-align: left !important;
  }
  .table--stack .table__col--optional:empty {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
.project-name {
  font-weight: 600;
  text-decoration: none;
}
.project-name:hover, .project-name:focus-visible {
  text-decoration: underline;
}

.toolbar__field--search {
  flex: 0 1 260px;
  min-width: 180px;
}

.table__col--wide {
  width: 32%;
}

.table__col--narrow,
.table__nowrap {
  width: 1%;
  white-space: nowrap;
}

.table__col--menu,
.table__menu {
  width: 1%;
  text-align: right !important;
}

.table__name .badge {
  margin-left: 6px;
}

.sort {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}
.sort:hover {
  color: #1d1d24;
}
.sort__icon {
  opacity: 0.45;
}
.sort--active {
  color: #5b21b6;
}
.sort--active .sort__icon {
  opacity: 1;
}

.menu {
  position: relative;
  flex-shrink: 0;
}
.menu__toggle {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #5b5b66;
  cursor: pointer;
  list-style: none;
}
.menu__toggle::-webkit-details-marker {
  display: none;
}
.menu__toggle:hover {
  background: #f1ebfd;
  color: #5b21b6;
}
.menu[open] .menu__toggle {
  background: #f1ebfd;
  color: #5b21b6;
}
.menu__list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  min-width: 200px;
  margin: 0;
  padding: 6px 0;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  text-align: left;
}
.menu__list form {
  margin: 0;
}
.menu__item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: 0;
  color: #1d1d24;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.menu__item:hover, .menu__item:focus-visible {
  background: #f5f5f5;
  color: #1d1d24;
}
.menu__item--danger {
  color: #b42318;
}
.menu__item--danger:hover, .menu__item--danger:focus-visible {
  background: #fdecea;
  color: #b42318;
}
.menu__item--disabled {
  color: #5b5b66;
  white-space: normal;
  cursor: default;
}
.menu__item--disabled:hover {
  background: none;
  color: #5b5b66;
}
.menu__hint {
  display: block;
  font-size: 0.8125rem;
}
.menu__separator {
  margin: 6px 0;
  border-top: 1px solid #dcdce2;
}

.client__summary {
  list-style: none;
}
.client__summary::-webkit-details-marker {
  display: none;
}
.client__projects {
  padding-left: 30px;
}

.chevron {
  flex-shrink: 0;
  color: #5b5b66;
  transition: transform 0.15s ease;
}
details[open] > summary .chevron {
  transform: rotate(90deg);
}

.chevron-space {
  display: inline-block;
  width: 16px;
  flex-shrink: 0;
}

.client--empty .client__summary {
  cursor: default;
}

.rows__item {
  position: relative;
  display: block;
  padding: 0;
}
.rows__item > .menu {
  position: absolute;
  top: 6px;
  right: 12px;
}

.client__summary {
  min-height: 48px;
  padding: 6px 60px 6px 16px;
  gap: 10px;
}
.client__name {
  font-weight: 600;
}
.client__projects {
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  border-top: 1px solid #dcdce2;
  list-style: none;
}
.client__project {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px 8px 58px;
  border-bottom: 1px solid #dcdce2;
}
.client__project:last-child {
  border-bottom: 0;
}

.rows__item:last-child .client__projects {
  border-radius: 0 0 8px 8px;
}

.button__icon {
  flex-shrink: 0;
  margin-right: 6px;
}

.menu__item {
  color: #1d1d24;
  font-weight: 500;
}
.menu__item--danger {
  font-weight: 500;
}
.menu__item--disabled {
  color: #9a9aa6;
  font-weight: 400;
}

.menu__hint {
  margin-top: 2px;
  color: #9a9aa6;
  font-size: 0.6875rem;
  line-height: 1.3;
}

.client__summary {
  transition: background-color 0.12s ease;
}

details.client > .client__summary:hover {
  background: #f1ebfd;
}

.rows__item:first-child details.client > .client__summary {
  border-radius: 8px 8px 0 0;
}

.client__project {
  padding: 0;
}

.client__project-link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px 8px 58px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.12s ease;
}
.client__project-link:hover, .client__project-link:focus-visible {
  background: #f1ebfd;
}
.client__project-link:hover .project-name, .client__project-link:focus-visible .project-name {
  text-decoration: underline;
}

.icon {
  display: block;
  flex-shrink: 0;
}

[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 30;
  padding: 6px 10px;
  background: #1d1d24;
  border-radius: 6px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after, [data-tooltip]:focus-within::after {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (hover: none) {
  [data-tooltip]:hover::after {
    display: none;
  }
}
.timerbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: -24px -16px 16px;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #dcdce2;
}
@media (min-width: 900px) {
  .timerbar {
    flex-wrap: nowrap;
    margin: -32px -32px 20px;
    padding: 16px 32px;
  }
}
.timerbar__field {
  flex: 1 1 200px;
}
@media (min-width: 900px) {
  .timerbar__field {
    flex: 0 1 280px;
  }
}
.timerbar__field--grow {
  flex: 1 1 100%;
}
@media (min-width: 900px) {
  .timerbar__field--grow {
    flex: 1 1 auto;
  }
}
.timerbar__input {
  width: 100%;
  min-height: 44px;
  padding: 8px 4px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #1d1d24;
  font: inherit;
  font-size: 1.125rem;
}
.timerbar__input:focus-visible {
  border-bottom-color: #6d28d9;
  outline: none;
}
.timerbar__info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.timerbar__title {
  overflow: hidden;
  color: #1d1d24;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timerbar__title:hover {
  color: #1d1d24;
  text-decoration: underline;
}
.timerbar__clock {
  min-width: 5.5em;
  font-size: 1.375rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}
.timerbar__error {
  margin-top: -8px;
}

.timer-button {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: #6d28d9;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 0 4px #f1ebfd;
}
.timer-button:hover {
  background: #5b21b6;
}
.timer-button--stop {
  background: #b42318;
  box-shadow: 0 0 0 4px #fdecea;
}
.timer-button--stop:hover {
  background: #8f1c13;
}

.free-toggle {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9a9aa6;
  cursor: pointer;
}
.free-toggle:hover {
  background: #f5f5f5;
  color: #1d1d24;
}
.free-toggle--on {
  background: #fff4e0;
  border-color: #e9c98a;
  color: #7a4a00;
}
.free-toggle--on:hover {
  background: #fff4e0;
  color: #7a4a00;
}
.free-toggle--static {
  cursor: default;
}
.free-toggle--check:has(input:checked) {
  background: #fff4e0;
  border-color: #e9c98a;
  color: #7a4a00;
}
.free-toggle--check:has(input:focus-visible) {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.icon-button {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 8px;
  color: #5b5b66;
  cursor: pointer;
}
.icon-button:hover {
  background: #f1ebfd;
  color: #5b21b6;
}
.icon-button--placeholder {
  cursor: default;
}
.icon-button--placeholder:hover {
  background: none;
}

.menu-placeholder {
  width: 36px;
  flex-shrink: 0;
}

.timer-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.timer-summary__totals {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 8px 0 0;
  color: #5b5b66;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.timer-summary__totals strong {
  margin-left: 4px;
  color: #1d1d24;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.manual > summary {
  list-style: none;
}
.manual > summary::-webkit-details-marker {
  display: none;
}
.manual[open] {
  flex: 1 1 100%;
}
.manual__form {
  max-width: none;
  margin: 12px 0 0;
}

@media (min-width: 900px) {
  .form__row--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #6d28d9;
}

.timer-nav {
  margin: 16px 0;
  text-align: center;
}

.day {
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
}
.day__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #dcdce2;
}
.day__title {
  margin: 0;
  font-size: 1rem;
}
.day__total {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.day__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.day__item {
  border-bottom: 1px solid #dcdce2;
}
.day__item:last-child {
  border-bottom: 0;
}

.entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  min-height: 56px;
  padding: 8px 8px 8px 16px;
}
.entry:hover {
  background: #fafafb;
}
.entry--running {
  background: #f1ebfd;
}
.entry--running:hover {
  background: #f1ebfd;
}
.entry--review {
  background: #fff4e0;
  box-shadow: inset 4px 0 0 #d99a2b;
}
.entry--review:hover {
  background: #fff4e0;
}
.entry__main {
  display: flex;
  flex: 1 1 260px;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
}
.entry__count {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 6px;
  color: #1d1d24;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.entry__count[aria-expanded=true] {
  background: #f1ebfd;
  border-color: #6d28d9;
  color: #5b21b6;
}
.entry__title {
  font-weight: 500;
}
.entry__title a {
  color: #1d1d24;
  text-decoration: none;
}
.entry__title a:hover, .entry__title a:focus-visible {
  text-decoration: underline;
}
.entry__title--empty, .entry__title--empty a {
  color: #5b5b66;
  font-style: italic;
}
.entry__project {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  font-size: 0.9375rem;
}
.entry__client {
  color: #5b5b66;
  font-size: 0.875rem;
}
.entry__client::before {
  content: "• ";
}
.entry__review {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  order: 3;
  color: #7a4a00;
  font-size: 0.875rem;
}
.entry__review form {
  margin: 0;
}
.entry__side {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.entry__side form {
  margin: 0;
}
.entry__times {
  min-width: 7.5em;
  color: #5b5b66;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.entry__now {
  color: #5b21b6;
  font-weight: 600;
}
.entry__duration {
  min-width: 5em;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.group {
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  border-top: 1px solid #dcdce2;
  list-style: none;
}
.group > li + li {
  border-top: 1px solid #dcdce2;
}
.group .entry {
  padding-left: 56px;
}

.combobox {
  position: relative;
}
.combobox__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 25;
  width: 100%;
  max-width: 560px;
  max-height: 320px;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
}
.combobox__option {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  padding: 8px 14px;
  cursor: pointer;
}
.combobox__option:hover, .combobox__option[aria-selected=true] {
  background: #f1ebfd;
}
.combobox__title {
  flex-basis: 100%;
  color: #1d1d24;
  font-weight: 500;
}

.dialog {
  width: min(640px, 100vw - 32px);
  padding: 0;
  border: 1px solid #dcdce2;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.dialog::backdrop {
  background: rgba(20, 20, 30, 0.45);
}
.dialog__body {
  padding: 20px 16px;
}
@media (min-width: 900px) {
  .dialog__body {
    padding: 24px;
  }
}

.sidebar {
  background: #f5f5f5;
}
@media (min-width: 900px) {
  .sidebar {
    border-right: 1px solid #e8e8e8;
  }
}
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: #3a3a46;
  font-weight: 500;
}
.sidebar__link .icon {
  color: #6b6b78;
}
.sidebar__link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d24;
}
.sidebar__link--active, .sidebar__link--active:hover {
  background: #ffffff;
  color: #5b21b6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.sidebar__link--active .icon, .sidebar__link--active:hover .icon {
  color: #6d28d9;
}
.sidebar__link--button {
  width: 100%;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.sidebar__bottom {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #d8d8de;
}
@media (min-width: 900px) {
  .sidebar__bottom {
    margin-top: auto;
  }
}
.sidebar__logout {
  margin: 4px 0 0;
  padding: 0;
  border-top: 0;
}
.sidebar__user {
  margin: 8px 12px 2px;
  font-size: 0.8125rem;
}

.app__bar {
  background: #f5f5f5;
}

.plabel {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.plabel__dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #999;
}
.plabel__name {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
}
.plabel__client {
  overflow: hidden;
  color: #5b5b66;
  text-overflow: ellipsis;
}
.plabel__client::before {
  content: "•";
  margin-right: 6px;
  color: #b0b0ba;
}

.table__link {
  text-decoration: none;
}
.table__link:hover .plabel__name, .table__link:focus-visible .plabel__name {
  text-decoration: underline;
}

html:not(.js) .menu__js-only {
  display: none;
}

.form__hint--inline {
  display: inline;
  margin: 0;
}

.timerbar {
  gap: 8px 10px;
  min-height: 84px;
}
.timerbar .timerbar__clock {
  min-width: 0;
  margin-left: auto;
  font-size: 1.25rem;
}
@media (min-width: 900px) {
  .timerbar .timerbar__clock {
    min-width: 5.5em;
    margin-left: 8px;
    font-size: 1.375rem;
  }
}
@media (min-width: 900px) {
  .timerbar {
    gap: 8px 16px;
  }
}
@media (min-width: 900px) {
  .timerbar {
    padding: 12px 24px 12px 32px;
  }
}
.timerbar__what {
  flex: 1 1 100%;
  min-width: 0;
}
@media (min-width: 900px) {
  .timerbar__what {
    flex: 1 1 auto;
  }
}
.timerbar__input {
  font-size: 1.25rem;
}
.timerbar__input::placeholder {
  color: #8a8a96;
}
.timerbar__select {
  flex: 1 1 200px;
}
.timerbar__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.25rem;
}
.timerbar__project {
  display: inline-flex;
  max-width: 42%;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #f5f5f5;
  border: 0;
  border-radius: 6px;
  color: #1d1d24;
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
}
.timerbar__project .plabel__client {
  color: inherit;
  opacity: 0.85;
}
.timerbar__project:hover {
  filter: brightness(0.97);
}
.timerbar__project--empty {
  background: none;
  color: #5b5b66;
}
.timerbar__project--empty:hover {
  background: #f5f5f5;
  color: #1d1d24;
}
.timerbar__clock {
  min-width: 5em;
  margin-left: 8px;
  font-size: 1.25rem;
}

.timer-button {
  width: 44px;
  height: 44px;
  margin-left: 12px;
  background: #6d28d9;
  box-shadow: 0 0 0 5px rgba(109, 40, 217, 0.18);
}
.timer-button .icon {
  width: 32px;
  height: 32px;
}
.timer-button--running {
  background: #6d28d9;
}

@keyframes timer-breathe {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.22);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(109, 40, 217, 0.08);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .timer-button--running {
    animation: timer-breathe 1.8s ease-in-out infinite;
  }
}
.bill-toggle {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 8px;
  color: #c4c4cc;
  cursor: pointer;
}
.bill-toggle:hover {
  background: #f5f5f5;
  color: #8a8a96;
}
.bill-toggle--on {
  color: #1d1d24;
}
.bill-toggle--on:hover {
  color: #1d1d24;
}
.bill-toggle--static {
  cursor: default;
}
.bill-toggle--static:hover {
  background: none;
}
.bill-toggle:has(input:focus-visible) {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.picker {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 25;
  width: min(460px, 100vw - 32px);
  max-height: 420px;
  padding: 8px 0;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}
.picker__title {
  padding: 10px 16px 4px;
  color: #1d1d24;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.picker__message {
  padding: 8px 16px;
  color: #5b5b66;
  font-size: 0.875rem;
}
.picker__option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  font-size: 0.9375rem;
  cursor: pointer;
}
.picker__option:hover, .picker__option[aria-selected=true] {
  background: #f1ebfd;
}
.picker__option .plabel {
  flex: 0 1 auto;
}
.picker__entry {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #1d1d24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry {
  flex-wrap: nowrap;
  gap: 12px;
  padding: 6px 8px 6px 20px;
}
@media (max-width: 899px) {
  .entry {
    flex-wrap: wrap;
  }
}
.entry__main {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: 0;
}
.entry__title {
  flex: 0 1 auto;
  max-width: 45%;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entry__title a {
  display: inline;
}
.entry .plabel {
  flex: 0 1 auto;
  font-size: 0.9375rem;
}
.entry__side {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: 36px 36px auto 36px 36px;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.entry__times {
  min-width: 0;
}
.entry__duration {
  min-width: 0;
  padding-right: 6px;
  text-align: right;
}
.entry__duration--edit {
  display: block;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}
.entry__duration--edit::-webkit-details-marker {
  display: none;
}
.entry__duration--edit:hover {
  background: #f1ebfd;
}
.entry__review {
  order: 3;
}

@media (max-width: 899px) {
  .entry__main {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }
  .entry__title {
    max-width: 100%;
  }
  .entry__side {
    grid-template-columns: 36px 36px 1fr 36px 36px;
    width: 100%;
  }
  .entry__times {
    text-align: left;
  }
}
.timepop {
  position: relative;
}
.timepop[open] > summary {
  background: #f1ebfd;
  color: #5b21b6;
}
.timepop__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 10px;
  width: 280px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}
.timepop__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.timepop__field {
  display: grid;
  gap: 2px;
}
.timepop__label {
  color: #5b5b66;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.timepop .form__input {
  min-height: 40px;
  padding: 6px 8px;
}

.group .entry {
  padding-left: 60px;
}

.entry__when {
  display: block;
}

span.entry__when,
.entry__when-toggle {
  display: grid;
  grid-template-columns: 7.5em 5.5em;
  align-items: center;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.entry__when-toggle {
  cursor: pointer;
  list-style: none;
}
.entry__when-toggle::-webkit-details-marker {
  display: none;
}
.entry__when-toggle:hover {
  background: #f1ebfd;
}

.entry__when .entry__times,
.entry__when .entry__duration {
  min-width: 0;
  padding: 0;
  font-size: inherit;
}

.entry__when .entry__times {
  color: #5b5b66;
  text-align: right;
}

.timepop[open] > .entry__when-toggle .entry__times {
  color: inherit;
}

@media (max-width: 899px) {
  span.entry__when,
  .entry__when-toggle {
    grid-template-columns: 1fr auto;
  }
  .entry__when .entry__times {
    text-align: left;
  }
}
.timerbar [data-tooltip]::after {
  top: calc(100% + 8px);
  bottom: auto;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 100;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  transform: translateX(-50%);
  animation: toast-out 0.3s ease 3s forwards;
}
.toast:hover {
  animation-play-state: paused;
}
.toast--long {
  animation-delay: 7s;
}

@keyframes toast-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .toast {
    animation: toast-in 0.2s ease-out, toast-out 0.3s ease 3s forwards;
  }
  .toast--long {
    animation: toast-in 0.2s ease-out, toast-out 0.3s ease 7s forwards;
  }
}
.entry--review {
  flex-wrap: wrap;
  row-gap: 4px;
}
.entry--review .entry__review {
  flex: 1 1 100%;
  padding-bottom: 6px;
}

.panel--wide {
  max-width: 1000px;
}

.import-notes {
  margin: 0 0 20px;
  padding-left: 20px;
  color: #5b5b66;
  font-size: 0.9375rem;
}
.import-notes li + li {
  margin-top: 4px;
}

.import-errors {
  margin: 0;
  padding-left: 20px;
}
.import-errors__title {
  margin: 0 0 4px;
  font-weight: 600;
}

.import-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 0 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
}
@media (min-width: 900px) {
  .import-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
.import-stats div {
  padding: 12px 16px;
  box-shadow: 1px 1px 0 #dcdce2;
}
.import-stats dt {
  color: #5b5b66;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.import-stats dd {
  margin: 2px 0 0;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.import-stats dd small {
  color: #5b5b66;
  font-size: 0.8125rem;
  font-weight: 400;
}

.import-table th[scope=row] {
  font-weight: 600;
  white-space: nowrap;
}
.import-table td {
  line-height: 1.7;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: #f1ebfd;
  border-radius: 999px;
  color: #5b21b6;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: 1px;
  white-space: nowrap;
}
.tag--soft {
  margin-left: 2px;
  background: #f5f5f5;
  color: #5b5b66;
}

.import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.import-actions form {
  margin: 0;
}

.days {
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
}
.days .day {
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.days .day + .day {
  border-top: 5px solid #e8e8e8;
}
.days .day__head {
  min-height: 52px;
  padding: 8px 94px 4px 20px;
  border-bottom: 0;
}
.days .day__total {
  font-size: 0.9375rem;
}
.days .day__item {
  border-bottom: 0;
}
.days .group {
  border-top: 0;
}
.days .group > li + li {
  border-top: 0;
}

@media (max-width: 899px) {
  .days .day__head {
    padding-right: 16px;
  }
  .days .day__item + .day__item {
    border-top: 1px solid #efefef;
  }
}
.days > .day:last-child > .day__list > .day__item:last-child > .entry,
.days > .day:last-child > .day__list > .day__item:last-child > .group > li:last-child > .entry {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.report-head {
  align-items: center;
}
.report-head__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-select {
  min-height: 36px;
  padding: 4px 32px 4px 12px;
  background-color: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
  color: #1d1d24;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.report-select-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5b5b66;
  font-size: 0.875rem;
}

.report-export__toggle {
  list-style: none;
}
.report-export__toggle::-webkit-details-marker {
  display: none;
}

.report-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
}
.report-filters__reset {
  margin-left: 8px;
  font-size: 0.875rem;
}

.pop {
  position: relative;
}
.pop > summary {
  list-style: none;
  cursor: pointer;
}
.pop > summary::-webkit-details-marker {
  display: none;
}
.pop__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.period {
  display: inline-flex;
  align-items: stretch;
  margin-right: 8px;
  border: 1px solid #dcdce2;
  border-radius: 8px;
}
.period__arrow {
  display: inline-flex;
  width: 36px;
  align-items: center;
  justify-content: center;
  color: #5b5b66;
}
.period__arrow:hover {
  background: #f5f5f5;
  color: #1d1d24;
}
.period__toggle {
  display: inline-flex;
  min-width: 13em;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-right: 1px solid #dcdce2;
  border-left: 1px solid #dcdce2;
  font-weight: 600;
  white-space: nowrap;
}
.period__toggle:hover {
  background: #f5f5f5;
}
.period__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(94vw, 840px);
}
@media (min-width: 900px) {
  .period__panel {
    flex-direction: row;
  }
}
.period__shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .period__shortcuts {
    grid-template-columns: 1fr;
    width: 190px;
    padding-right: 12px;
    border-right: 1px solid #dcdce2;
  }
}
.period__shortcut {
  width: 100%;
  padding: 7px 10px;
  background: none;
  border: 0;
  border-radius: 6px;
  color: #1d1d24;
  font: inherit;
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
}
.period__shortcut:hover {
  background: #f5f5f5;
}
.period__shortcut--active {
  background: #f1ebfd;
  color: #5b21b6;
  font-weight: 600;
}
.period__custom {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.period__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.period__date {
  display: grid;
  gap: 2px;
  color: #5b5b66;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.period__date .form__input {
  min-height: 38px;
  padding: 4px 8px;
  text-transform: none;
}

.calendar {
  width: 100%;
}
.calendar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calendar__hint {
  margin: 0;
  color: #5b5b66;
  font-size: 0.8125rem;
}
.calendar__arrow {
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid #dcdce2;
  border-radius: 6px;
  font-size: 1.125rem;
  cursor: pointer;
}
.calendar__arrow:hover {
  background: #f5f5f5;
}
.calendar__months {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.calendar__title {
  margin: 6px 0;
  font-weight: 700;
  text-align: center;
}
.calendar__grid {
  border-collapse: collapse;
}
.calendar__grid th {
  padding: 2px;
  color: #5b5b66;
  font-size: 0.6875rem;
  font-weight: 600;
}
.calendar__week {
  padding-right: 6px;
  background: #f5f5f5;
}
.calendar__day {
  width: 32px;
  height: 30px;
  background: none;
  border: 0;
  border-radius: 6px;
  color: #1d1d24;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.calendar__day:hover {
  background: #f5f5f5;
}
.calendar__day--today {
  box-shadow: inset 0 0 0 1px #dcdce2;
}
.calendar__day--range, .calendar__day--range:hover {
  background: #f1ebfd;
  color: #5b21b6;
}
.calendar__day--edge, .calendar__day--edge:hover {
  background: #6d28d9;
  color: #fff;
  font-weight: 700;
}

.filter__toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8px;
  color: #1d1d24;
  font-weight: 600;
  white-space: nowrap;
}
.filter__toggle .icon {
  width: 18px;
  height: 18px;
  color: #5b5b66;
}
.filter__toggle:hover {
  background: #f5f5f5;
}
.filter__toggle--on {
  background: #f1ebfd;
  color: #5b21b6;
}
.filter__toggle--on .icon {
  color: #6d28d9;
}
.filter__count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  background: #6d28d9;
  border-radius: 10px;
  color: #fff;
  font-size: 0.75rem;
}
.filter__panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(88vw, 340px);
}
.filter__panel--narrow {
  width: min(88vw, 280px);
}
.filter__search {
  min-height: 38px;
}
.filter__list {
  max-height: 300px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.filter__option {
  padding: 4px 2px;
}
.filter__option .checkbox {
  width: 100%;
  align-items: flex-start;
}
.filter__option small {
  color: #5b5b66;
}
.filter__option--archived {
  opacity: 0.7;
}
.filter__radios {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.filter__actions {
  display: flex;
  gap: 8px;
}

.report-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
}
@media (min-width: 900px) {
  .report-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.report-card {
  padding: 16px 20px;
  box-shadow: 1px 0 0 #dcdce2;
}
.report-card__title {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.report-card__value {
  margin: 0;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.report-card__unit {
  color: #5b5b66;
  font-weight: 500;
}
.report-card__note {
  margin: 2px 0 0;
  color: #5b5b66;
  font-size: 0.8125rem;
}

.report-note {
  margin: 0 0 12px;
  color: #5b5b66;
  font-size: 0.8125rem;
}

.report-charts {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
@media (min-width: 900px) {
  .report-charts {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  }
}

.report-panel {
  min-width: 0;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
}
.report-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.report-panel__title {
  margin: 0 0 12px;
  font-size: 1rem;
}
.report-panel__head .report-panel__title {
  margin: 0;
}
.report-panel__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.chart__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart__grid {
  stroke: #e6e6ea;
  stroke-dasharray: 2 3;
}
.chart__grid--base {
  stroke: #c9c9d1;
  stroke-dasharray: none;
}
.chart__axis {
  fill: #5b5b66;
  font-size: 11px;
}
.chart__value {
  fill: #3a3a46;
  font-size: 10.5px;
}
.chart__hit {
  fill: transparent;
}
.chart__col {
  fill: #b845ae;
}
.chart__bar:hover .chart__col, .chart__bar:focus .chart__col {
  fill: #93328b;
}
.chart__bar:focus {
  outline: none;
}
.chart__bar:focus-visible .chart__hit {
  stroke: #2563eb;
  stroke-width: 2;
}
.chart__legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
}
.chart__legend-mark {
  width: 16px;
  height: 6px;
  background: #b845ae;
  border-radius: 3px;
}

.donut__area {
  max-width: 340px;
  margin: 0 auto;
}
.donut__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.donut__slice {
  stroke: #fff;
  stroke-width: 1.5;
  cursor: pointer;
  transition: opacity 0.12s ease;
}
.donut__slice:hover, .donut__slice:focus-visible {
  opacity: 0.85;
  outline: none;
}
.donut__slice--full {
  stroke: none;
}
.donut__empty {
  fill: none;
  stroke: #ececf0;
}
.donut__label {
  fill: #3a3a46;
  font-size: 12px;
}
.donut__total {
  fill: #1d1d24;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.donut__caption {
  fill: #5b5b66;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.chart-tip {
  position: fixed;
  z-index: 200;
  min-width: 180px;
  max-width: 280px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}
.chart-tip p {
  margin: 0;
}
.chart-tip__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.chart-tip__dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
}
.chart-tip__sub {
  padding-left: 17px;
  font-weight: 600;
}
.chart-tip__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px !important;
  font-size: 0.875rem;
}

.breakdown__wrap {
  border: 0;
}
.breakdown__table th a {
  color: inherit;
  text-decoration: none;
}
.breakdown__table th a:hover {
  text-decoration: underline;
}
.breakdown__table th[aria-sort=ascending] a::after {
  content: " ↑";
  color: #6d28d9;
}
.breakdown__table th[aria-sort=descending] a::after {
  content: " ↓";
  color: #6d28d9;
}
.breakdown__table tbody th {
  font-weight: 500;
}
.breakdown__title-col {
  width: 60%;
}
.breakdown__cell {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
}
.breakdown__label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.breakdown__label--empty {
  color: #5b5b66;
  font-style: italic;
}
.breakdown__count {
  color: #5b5b66;
  font-size: 0.875rem;
}
.breakdown__expand, .breakdown__expand-all {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  background: none;
  border: 0;
  border-radius: 6px;
  color: #5b5b66;
  cursor: pointer;
  vertical-align: middle;
}
.breakdown__expand:hover, .breakdown__expand-all:hover {
  background: #f5f5f5;
  color: #1d1d24;
}
.breakdown__expand .chevron, .breakdown__expand-all .chevron {
  transition: transform 0.15s ease;
}
.breakdown__expand[aria-expanded=true] .chevron, .breakdown__expand-all[aria-expanded=true] .chevron {
  transform: rotate(90deg);
}
.breakdown__spacer {
  width: 28px;
  flex-shrink: 0;
}
.breakdown__row--l2 th {
  padding-left: 44px;
  color: #3a3a46;
  font-size: 0.9375rem;
}
.breakdown__row--l2 {
  background: #fafafa;
}
.breakdown__row--l3 th {
  padding-left: 108px;
  color: #3a3a46;
  font-size: 0.875rem;
  font-weight: 400;
}
.breakdown__row--l3 td {
  font-size: 0.875rem;
}
.breakdown__row--l3 {
  background: #fff;
}
.breakdown__row--free td {
  color: #5b5b66;
}

html:not(.js) .breakdown__spacer {
  display: none;
}

.columns__toggle {
  list-style: none;
  border: 1px solid #dcdce2;
}
.columns__panel {
  right: 0;
  left: auto;
  display: grid;
  gap: 10px;
  width: 220px;
}
.columns__title {
  margin: 0;
  font-weight: 700;
}

.print-page {
  background: #e9e9ee;
}

.print-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  max-width: 210mm;
  margin: 16px auto;
  padding: 0 16px;
}
.print-toolbar__options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin: 0;
}
.print-toolbar__check {
  font-weight: 600;
}
.print-toolbar__end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.print-toolbar__kind {
  width: auto;
  min-width: 130px;
}
.print-toolbar__hint {
  flex-basis: 100%;
  margin: 0;
  color: #5b5b66;
  font-size: 0.875rem;
  text-align: right;
}

.print-back {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.print-doc {
  max-width: 210mm;
  margin: 0 auto 32px;
  padding: 14mm 12mm;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  color: #2c1338;
  font-size: 9.5pt;
}
.print-doc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 7mm;
}
.print-doc__title {
  margin: 0 0 6px;
  font-size: 15pt;
  font-weight: 600;
}
.print-doc__badge {
  margin-left: 6px;
  padding: 2px 8px;
  background: #fff4e0;
  border-radius: 4px;
  color: #7a4a00;
  font-size: 8pt;
  font-weight: 600;
  vertical-align: middle;
}
.print-doc__period {
  margin: 0;
  font-size: 9.5pt;
}
.print-doc__brand {
  flex-shrink: 0;
  text-align: right;
}
.print-doc__logo {
  display: block;
  max-width: 45mm;
  max-height: 16mm;
  margin-left: auto;
}
.print-doc__name {
  margin: 0;
  font-size: 12pt;
  font-weight: 700;
}
.print-doc__business {
  margin: 4px 0 0;
  color: #6d6275;
  font-size: 7.5pt;
}
.print-doc__notes {
  margin: 4mm 0 0;
  padding-left: 16px;
  color: #6d6275;
  font-size: 8pt;
}
.print-doc__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8mm;
  color: #6d6275;
  font-size: 7.5pt;
}
.print-doc__note {
  margin: 2mm 0 0;
  color: #6d6275;
  font-size: 7.5pt;
}

.print-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.print-chips__item {
  padding: 3px 10px;
  border: 1px solid #b8aebf;
  border-radius: 6px;
  font-size: 9pt;
  font-weight: 400;
}

.print-box {
  margin-bottom: 6mm;
  padding: 12px 14px;
  border: 1px solid #e3dfe6;
  border-radius: 8px;
  break-inside: avoid;
}
.print-box__title {
  margin: 0 0 10px;
  font-size: 10pt;
  font-weight: 600;
}
.print-box--table {
  padding: 0;
  break-inside: auto;
}
.print-box--summary {
  padding: 0 0 2mm;
  border: 0;
  border-radius: 0;
}
.print-box .chart__svg {
  max-height: 70mm;
}

.print-summary {
  display: flex;
}
.print-summary div {
  display: grid;
  flex: 1 1 0;
  align-content: start;
  gap: 2px;
  padding: 0 12px;
  border-left: 1px solid #e3dfe6;
}
.print-summary div:first-child {
  padding-left: 0;
  border-left: 0;
}
.print-summary span {
  font-size: 8.5pt;
  font-weight: 600;
}
.print-summary strong {
  font-size: 10.5pt;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.print-summary strong small {
  color: #7c6f86;
  font-size: 9pt;
}
.print-summary em {
  color: #067647;
  font-size: 8pt;
  font-style: normal;
}

.print-donut {
  display: grid;
  grid-template-columns: 62mm 1fr;
  align-items: center;
  gap: 8mm;
}
.print-donut__chart .donut__svg {
  width: 100%;
}

.print-legend {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5pt;
}
.print-legend th,
.print-legend td {
  padding: 3px 0;
  vertical-align: middle;
}
.print-legend th {
  font-weight: 500;
  text-align: left;
}
.print-legend__dot {
  margin-right: 6px;
  vertical-align: -1px;
}
.print-legend__sub {
  margin-left: 4px;
  color: #7c6f86;
}
.print-legend__pct, .print-legend__time {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.print-legend__pct {
  padding-right: 8px !important;
  border-right: 1px solid #e3dfe6;
}
.print-legend__time {
  width: 1%;
  padding-left: 8px !important;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.print-table caption {
  padding: 12px 14px 6px;
  font-size: 10pt;
  font-weight: 600;
  text-align: left;
}
.print-table th,
.print-table td {
  padding: 6px 14px;
  text-align: left;
  vertical-align: middle;
}
.print-table thead th {
  padding-top: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e3dfe6;
  color: #6d6275;
  font-size: 7pt;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.print-table .table__num {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}
.print-table__group {
  break-inside: avoid;
}
.print-table__row--l1 th, .print-table__row--l1 td {
  background: #f3f2f5;
  font-weight: 500;
}
.print-table__row--l1 + .print-table__row--l1 th, .print-table__row--l1 + .print-table__row--l1 td {
  border-top: 1px solid #fff;
}
.print-table__row--l2 th {
  padding-left: 30px;
  font-weight: 500;
}
.print-table__row--l2 th, .print-table__row--l2 td {
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 9pt;
}
.print-table__row--l3 th {
  padding-left: 46px;
  color: #4a3f52;
  font-weight: 400;
}
.print-table__row--l3 th, .print-table__row--l3 td {
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 8.5pt;
}
.print-table__row--l2 + .print-table__row--l3 th, .print-table__row--l2 + .print-table__row--l3 td {
  padding-top: 3px;
}
.print-table__row--free td {
  color: #067647;
}
.print-table__count {
  margin-left: 4px;
  color: #7c6f86;
  font-size: 8pt;
}
.print-table .plabel {
  white-space: normal;
}

.print-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border: 1px solid #067647;
  border-radius: 4px;
  color: #067647;
  font-size: 6.5pt;
  font-weight: 600;
  text-transform: uppercase;
  vertical-align: 1px;
}
.print-tag--soft {
  border-color: #b8aebf;
  color: #6d6275;
}

@page {
  size: A4;
  margin: 12mm 10mm 14mm;
  @bottom-right {
    content: "Pagina " counter(page) " di " counter(pages);
    vertical-align: top;
    padding-top: 1mm;
    color: #6d6275;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 7.5pt;
  }
}
@media print {
  .print-page {
    background: #fff;
  }
  .print-toolbar,
  .print-back {
    display: none;
  }
  .chart__bar .chart__col,
  .chart__bar:hover .chart__col,
  .chart__bar:focus .chart__col {
    fill: #b845ae;
  }
  .print-box--donut + .print-box--table {
    break-before: page;
  }
  .print-doc {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .print-doc,
  .print-doc * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
@media (max-width: 899px) {
  .period {
    flex: 1 1 100%;
    max-width: 100%;
    margin-right: 0;
  }
  .period__pop {
    flex: 1 1 auto;
    min-width: 0;
  }
  .period__toggle {
    min-width: 0;
    font-size: 0.9375rem;
  }
  .period__panel {
    left: -38px;
  }
  .chart__area {
    overflow-x: auto;
  }
  .chart__area .chart__svg {
    min-width: 640px;
  }
  .report-panel {
    padding: 16px 12px;
  }
}
.devices td {
  vertical-align: top;
}
.devices code {
  font-size: 0.8125rem;
}
.devices__current td {
  background: #f1ebfd;
}
.devices__all {
  margin: 12px 0 0;
}

.catpick {
  position: relative;
  flex-shrink: 0;
}
.catpick__form {
  margin: 0;
}
.catpick__toggle {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}
.catpick__toggle::-webkit-details-marker {
  display: none;
}
.catpick__toggle:hover {
  background: #f5f5f5;
}
.catpick__toggle--empty {
  color: #c4c4cc;
}
.catpick__toggle--empty:hover {
  color: #8a8a96;
}
.catpick[open] > .catpick__toggle {
  background: #f1ebfd;
}
.catpick[open] > .catpick__toggle::after {
  display: none !important;
}
.catpick__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 45;
  width: min(92vw, 360px);
  max-height: min(70vh, 460px);
  padding: 8px 0;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #dcdce2;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  text-align: left;
}
.catpick__title {
  margin: 0;
  padding: 4px 14px 6px;
  color: #5b5b66;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.catpick__message {
  margin: 0 10px 6px;
  padding: 6px 10px;
  background: #fff4e0;
  border-radius: 6px;
  color: #7a4a00;
  font-size: 0.875rem;
}
.catpick__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.catpick__option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 14px;
  cursor: pointer;
}
.catpick__option:hover, .catpick__option:has(input:focus-visible) {
  background: #f5f5f5;
}
.catpick__option:has(input:checked) {
  background: #f1ebfd;
}
.catpick__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.catpick__dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  margin-top: 6px;
  border-radius: 50%;
}
.catpick__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.catpick__name {
  font-size: 0.9375rem;
  font-weight: 500;
}
.catpick__desc {
  color: #5b5b66;
  font-size: 0.75rem;
  line-height: 1.35;
}

.klabel {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.klabel__dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
}
.klabel--none {
  color: #5b5b66;
  font-style: italic;
}

.categories__pos {
  width: 3em;
  color: #5b5b66;
  font-variant-numeric: tabular-nums;
}
.categories__link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
.categories__link:hover {
  text-decoration: underline;
}
.categories__desc {
  display: block;
  margin-top: 2px;
  color: #5b5b66;
  font-size: 0.8125rem;
  font-weight: 400;
}
.categories__row--archived {
  opacity: 0.65;
}

@media (max-width: 899px) {
  .timerbar {
    column-gap: 6px;
  }
  .entry__side {
    gap: 2px;
  }
  span.entry__when,
  .entry__when-toggle {
    column-gap: 8px;
    font-size: 0.875rem;
  }
}
.sidebar__running {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 6px 34px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #5b21b6;
  font-size: 0.8125rem;
  text-decoration: none;
}
.sidebar__running:hover {
  background: rgba(0, 0, 0, 0.05);
}
.sidebar__running-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: #6d28d9;
  border-radius: 50%;
}
.sidebar__running-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.sidebar__running-title {
  overflow: hidden;
  color: #5b5b66;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .sidebar__running-dot {
    animation: running-dot 1.6s ease-in-out infinite;
  }
}
@keyframes running-dot {
  50% {
    opacity: 0.3;
  }
}
.timerbar__clock--draft {
  color: #6d28d9;
}

.print-frame {
  width: 100%;
  border-collapse: collapse;
}
.print-frame > tbody > tr > td,
.print-frame > tfoot > tr > td {
  padding: 0;
}
.print-frame__space {
  display: none;
}

.print-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4mm;
  margin-top: 10mm;
  padding-top: 2mm;
  border-top: 1px solid #dcdce2;
  color: #6d6275;
  font-size: 7.5pt;
  line-height: 1.6;
}
.print-footer p {
  margin: 0;
}
.print-footer strong {
  color: #2c1338;
  font-weight: 700;
}
.print-footer__line {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  column-gap: 3mm;
}
.print-footer__meta {
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

@media print {
  .print-frame__space {
    display: block;
    height: 14mm;
  }
  .print-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    background: #fff;
  }
}
.print-tasks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.print-tasks__day {
  margin: 0 0 5mm;
  break-inside: avoid;
}
.print-tasks__date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 1.5mm;
  padding-bottom: 1mm;
  border-bottom: 1px solid #e3dfe6;
  font-size: 11pt;
  font-weight: 600;
  break-after: avoid;
}
.print-tasks__weekday {
  color: #6d6275;
  font-size: 8.5pt;
  font-weight: 400;
}
.print-tasks__total {
  margin-left: auto;
  font-size: 9.5pt;
  font-variant-numeric: tabular-nums;
}
.print-tasks__list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}
.print-tasks__item {
  padding: 0.6mm 0;
  line-height: 1.4;
}
.print-tasks__item::marker {
  color: #8a8a96;
}
.print-tasks__time {
  float: right;
  margin-left: 6mm;
  color: #6d6275;
  font-variant-numeric: tabular-nums;
}

.timer-nav--end {
  color: #5b5b66;
  font-size: 0.875rem;
}

.day__title:focus {
  outline: none;
}
