@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --brand: #2f7a58;
    --brand-strong: #276a4b;
    --leaf: #479c74;
    --ink: #343434;
    --rock: #5f6563;
    --stone: #8f9592;
    --mist: #eef1ef;
    --frost: #f7f8f7;
    --paper: #ffffff;
    --line: #dde2df;
    --signal: #e03a2b;
    --danger: #c62d20;
    --lake: #2f7a58;
    --radius: 12px;
    --radius-control: 9px;
    --shadow: 0 1px 2px rgb(20 33 43 / 0.05), 0 4px 16px rgb(20 33 43 / 0.04);
    --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: var(--mist);
    color: var(--ink);
    font: 400 0.9375rem/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
}

h1, h2, p, ul, dl, dd, fieldset {
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

ul {
    list-style: none;
}

a {
    color: var(--lake);
}

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

input[type="text"], input[type="email"], input[type="password"], input[type="date"], select {
    width: 100%;
    min-height: 2.625rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--paper);
    transition: border-color 0.12s;
}

select {
    padding-right: 2.25rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235f6c78' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    background-size: 1rem;
}

input:hover, select:hover {
    border-color: var(--stone);
}

::placeholder {
    color: var(--stone);
}

:focus-visible {
    outline: 2px solid var(--lake);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.icon {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Brand */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1875rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}

.brand b {
    font-weight: 500;
    color: var(--leaf);
}

.mark {
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
}

.mark-knob {
    fill: #737373;
}

.mark-arc {
    fill: none;
    stroke: var(--leaf);
    stroke-width: 38;
    stroke-linecap: round;
}

.mark-ticks {
    fill: none;
    stroke: #737373;
    stroke-width: 20;
    stroke-linecap: round;
}

.mark-base {
    fill: #8bd091;
}

.brand.is-inverted, .brand.is-inverted b {
    color: var(--paper);
}

.is-inverted .mark-knob, .is-inverted .mark-peak {
    fill: var(--paper);
}

.is-inverted .mark-arc, .is-inverted .mark-ticks {
    stroke: var(--paper);
}

.is-inverted .mark-base {
    fill: rgb(255 255 255 / 0.65);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 2.625rem;
    padding: 0 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--paper);
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.12s, background-color 0.12s, transform 0.06s;
}

.btn:hover {
    border-color: var(--stone);
}

.btn:active {
    transform: translateY(1px);
}

.btn .icon {
    width: 1.125rem;
    height: 1.125rem;
    margin-left: -0.25rem;
}

.btn-primary {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--paper);
}

.btn-primary:hover {
    border-color: var(--brand);
    background: var(--brand-strong);
}

.btn-danger {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    filter: brightness(0.92);
}

.settings.danger {
    margin-top: 1.25rem;
    box-shadow: inset 0 0 0 1px var(--danger);
}

.btn-danger:focus-visible {
    outline: 2px solid var(--danger);
    outline-offset: 2px;
}

.btn-quiet {
    border-color: transparent;
    background: none;
    color: var(--rock);
}

.btn-quiet:hover {
    border-color: transparent;
    background: rgb(20 33 43 / 0.06);
}

.btn-link {
    padding: 0.25rem 0.5rem;
    border: 0;
    border-radius: 6px;
    background: none;
    font-weight: 600;
    color: var(--lake);
    cursor: pointer;
}

.btn-link:hover {
    background: rgb(71 156 116 / 0.09);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--rock);
    cursor: pointer;
}

.icon-btn:hover {
    background: var(--mist);
    color: var(--brand);
}

.icon-btn .icon {
    width: 1.125rem;
    height: 1.125rem;
}

/* Small parts */

.loading-dots {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
    padding: 3rem 0;
}

.loading-dots span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--stone);
    animation: dot 1s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes dot {
    0%, 80%, 100% {
        opacity: 0.25;
    }
    40% {
        opacity: 1;
    }
}

.empty {
    max-width: 34rem;
    padding: 2rem 1.25rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--rock);
}

.dot {
    flex: none;
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--color, var(--line));
}


.tag {
    padding: 0.0625rem 0.5rem;
    border-radius: 99px;
    background: var(--mist);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rock);
    white-space: nowrap;
}

.avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--mist);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--brand);
}

.calendar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.calendar:has(.cal-editor:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) 23rem;
}

.cal-range {
    margin-right: auto;
    font-weight: 500;
    color: var(--rock);
}

.cal-grid {
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cal-head, .cal-body {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: 3.5rem;
    scrollbar-gutter: stable;
}

[data-time-format="H12"] .cal-head, [data-time-format="H12"] .cal-body {
    grid-template-columns: 4.75rem;
}

.cal-head {
    overflow-y: hidden;
    border-bottom: 1px solid var(--line);
}

.cal-head div {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.625rem;
    border-left: 1px solid var(--mist);
    font-size: 0.875rem;
}

.cal-head small {
    color: var(--rock);
    font-variant-numeric: tabular-nums;
}

.cal-head .is-today b {
    color: var(--brand);
}

.cal-body {
    height: min(70vh, 48rem);
    overflow-y: auto;
}

.cal-hours, .cal-day {
    height: 72rem;
}

.cal-hours {
    display: grid;
    grid-template-rows: repeat(24, 1fr);
    padding-right: 0.5rem;
    font-size: 0.75rem;
    text-align: right;
    white-space: nowrap;
    color: var(--rock);
    font-variant-numeric: tabular-nums;
}

.cal-hours span {
    padding-top: 0.125rem;
}

.cal-day {
    position: relative;
    border-left: 1px solid var(--mist);
    background: repeating-linear-gradient(to bottom, var(--mist) 0, var(--mist) 1px, transparent 1px, transparent 3rem);
    cursor: copy;
}

.cal-day.is-today {
    background-color: rgb(71 156 116 / 0.04);
}

.cal-block {
    position: absolute;
    display: flex;
    flex-direction: column;
    min-height: 1.125rem;
    padding: 0.125rem 0.375rem;
    border: 0;
    border-left: 3px solid var(--color);
    border-radius: 6px;
    background: color-mix(in srgb, var(--color) 16%, var(--paper));
    box-shadow: 0 0 0 1px var(--paper);
    font: inherit;
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: left;
    color: var(--ink);
    overflow: hidden;
    cursor: pointer;
}

.cal-block:hover, .cal-block:focus-visible {
    z-index: 1;
    background: color-mix(in srgb, var(--color) 28%, var(--paper));
}

.cal-block > * {
    flex: none;
}

.cal-block b, .cal-block span {
    unicode-bidi: isolate;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cal-block small {
    color: var(--rock);
}

.cal-block.is-running {
    border-left-style: dashed;
}

.cal-block.is-continued {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.cal-block.is-continuing {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.cal-editor form, .cal-editor {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.cal-editor[hidden] {
    display: none;
}

.cal-editor h2 {
    font-size: 1.0625rem;
}

.cal-editor label:not(.check) {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.cal-editor label input {
    font-size: 0.9375rem;
    font-weight: 400;
}

.cal-pickers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-left: -0.5rem;
}

.cal-times {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 0.75rem;
}

@media (max-width: 1200px) {
    .calendar:has(.cal-editor:not([hidden])) {
        grid-template-columns: minmax(0, 1fr);
    }

    .cal-editor {
        order: -1;
        max-width: 34rem;
    }
}

.app-update {
    position: fixed;
    left: 50%;
    bottom: 9rem;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    width: max-content;
    max-width: min(34rem, calc(100vw - 2rem));
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    border-radius: var(--radius-control);
    background: var(--paper);
    font-weight: 500;
    box-shadow: 0 0.5rem 2rem rgb(27 39 51 / 0.2), 0 0 0 1px var(--line);
    transform: translateX(-50%);
}

.app-update p {
    flex: 1 1 16rem;
}

.app-error {
    position: fixed;
    left: 50%;
    bottom: 5rem;
    z-index: 10;
    width: max-content;
    max-width: calc(100vw - 2rem);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-control);
    background: var(--ink);
    font-weight: 500;
    color: var(--paper);
    box-shadow: var(--shadow);
    transform: translateX(-50%);
}

/* Shell */

app-shell {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    min-height: 100vh;
}

.rail {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100vh;
    padding: 1.5rem 0.875rem 1rem;
    border-right: 1px solid var(--line);
    background: var(--paper);
}

.rail .brand, .workspace-name {
    padding: 0 0.625rem;
}

.workspace-name {
    margin-top: -0.875rem;
    padding-left: 2.875rem;
    font-size: 0.8125rem;
    color: var(--rock);
    overflow-wrap: anywhere;
}

.rail-nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.rail-more {
    display: none;
}

.rail-secondary {
    display: contents;
}

.rail-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5625rem 0.625rem;
    border-radius: var(--radius-control);
    font-weight: 500;
    color: var(--rock);
    text-decoration: none;
    transition: background-color 0.12s, color 0.12s;
}

.rail-nav a:hover {
    background: var(--frost);
    color: var(--brand);
}

.rail-nav a[aria-current="page"] {
    background: var(--mist);
    font-weight: 600;
    color: var(--brand);
}

.rail-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: auto;
    padding: 0.75rem 0.25rem 0 0.625rem;
    border-top: 1px solid var(--line);
}

.rail-account {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    padding: 0.25rem;
    border-radius: var(--radius-control);
    color: inherit;
    text-decoration: none;
}

.rail-account:hover, .rail-account[aria-current="page"] {
    background: var(--mist);
}

.settings h2 {
    font-size: 1.0625rem;
}

.settings + .settings {
    margin-top: 1.25rem;
}

.rail-user-name {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 2.5rem 4rem;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 2.25rem 0 1rem;
}

.content > * > .page-head:first-child {
    margin-top: 0.25rem;
}

.page-head h1, .page-head h2 {
    margin-right: auto;
}

/* Timer */

.timer {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 0.875rem 0.875rem 0.5rem;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: background-color 0.25s, color 0.25s;
}

.timer input[name="description"] {
    flex: 1 1 14rem;
    min-width: min(100%, 11rem);
}

project-picker, tag-picker {
    display: inline-flex;
    min-width: 0;
}

tag-picker .picker-button {
    color: var(--rock);
}

tag-picker .picker-button .icon {
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
}

tag-picker .picker-label {
    max-width: 8rem;
}

.picker-more {
    font-weight: 600;
    color: var(--stone);
}

.picker-check {
    flex: none;
    width: 1rem;
    height: 1rem;
    border: 1.5px solid var(--stone);
    border-radius: 4px;
}

[aria-selected="true"] > .picker-check {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: inset 0 0 0 2px var(--paper);
}

.tag-name {
    background: none;
    box-shadow: inset 0 0 0 1px var(--line);
}

.picker-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    max-width: 100%;
    min-height: 2rem;
    padding: 0.125rem 0.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background: none;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--rock);
    white-space: nowrap;
    cursor: pointer;
}

.picker-button:hover {
    border-color: var(--line);
}

.picker-button[aria-expanded="true"] {
    border-color: var(--brand);
    background: var(--paper);
    color: var(--ink);
}

.picker-button.is-empty {
    color: var(--stone);
}

.picker-label {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.picker-client {
    max-width: 8rem;
    font-weight: 400;
    color: var(--stone);
    overflow: hidden;
    text-overflow: ellipsis;
}

.picker-panel {
    position: fixed;
    z-index: 20;
    width: min(20rem, calc(100vw - 0.75rem));
    padding: 0.5rem;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 0.75rem 2.5rem rgb(27 39 51 / 0.22), 0 0 0 1px var(--line);
}

.picker-panel ul {
    max-height: 16rem;
    margin-top: 0.375rem;
    overflow-y: auto;
}

.picker-panel [role="option"] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}

.picker-panel [role="option"] .picker-label {
    max-width: none;
}

.picker-panel [role="option"].is-active {
    background: var(--mist);
}

.picker-panel [role="option"][aria-selected="true"] {
    font-weight: 700;
    color: var(--brand);
}

.picker-panel .picker-create {
    margin-top: 0.25rem;
    border-top: 1px solid var(--mist);
    border-radius: 0 0 8px 8px;
    color: var(--brand);
}

.picker-panel .picker-create .icon {
    width: 1rem;
    height: 1rem;
}

.picker-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.375rem;
}

.picker-title {
    font-weight: 700;
}

.picker-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.picker-form label input, .picker-form label select {
    font-size: 0.9375rem;
    font-weight: 400;
}

.picker-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.picker-group {
    padding: 0.625rem 0.625rem 0.125rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--stone);
}

.picker-hint {
    padding: 0.5rem 0.625rem;
    color: var(--rock);
}

.picker-panel .form-error {
    margin-top: 0.375rem;
}

.timer .picker-button {
    min-height: 3rem;
    padding: 0 0.75rem;
    font-size: 0.9375rem;
}

.timer-manual {
    display: none;
    align-items: center;
    gap: 0.25rem;
    color: var(--stone);
}

.timer .timer-manual input {
    width: auto;
    min-height: 3rem;
    border-color: var(--line);
    color: var(--ink);
}

.timer .timer-manual .time-field {
    width: 4.75rem;
    border-color: var(--line);
    font-size: 0.9375rem;
    text-align: center;
}

.timer .timer-manual .time-field:hover {
    border-color: var(--stone);
    background-color: transparent;
}

[data-time-format="H12"] .timer .timer-manual .time-field {
    width: 6.25rem;
}

.timer.is-manual .timer-manual {
    display: flex;
}

.timer.is-manual .timer-clock {
    display: none;
}

.timer-mode {
    order: -1;
    flex: 1 1 100%;
    display: flex;
    gap: 2px;
    padding-left: 0.375rem;
}

.timer.is-running .timer-mode {
    display: none;
}

.timer-mode button {
    padding: 0.125rem 0.5rem;
    border: 0;
    border-radius: 6px;
    background: none;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--stone);
    cursor: pointer;
}

.timer-mode button:hover {
    color: var(--ink);
}

.timer-mode button[aria-pressed="true"] {
    background: var(--mist);
    color: var(--brand);
}

.timer input[type="text"] {
    min-height: 3rem;
    border-color: transparent;
    background-color: transparent;
    transition: background-color 0.12s;
}

.timer input[type="text"] {
    font-size: 1.0625rem;
}

.timer input[type="text"]:hover {
    background-color: var(--frost);
}

.timer-clock {
    min-width: 8.5rem;
    padding: 0 0.75rem;
    font-size: 2.125rem;
    font-weight: 400;
    line-height: 1;
    text-align: right;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    color: var(--stone);
}

.timer-button {
    min-width: 6rem;
    min-height: 3rem;
    border-color: var(--brand);
    background: var(--brand);
    color: var(--paper);
}

.timer-button:hover {
    border-color: var(--brand);
    background: var(--brand-strong);
}

.timer.is-running {
    background: #f4f8fd;
    box-shadow: inset 0 0 0 1.5px rgb(71 156 116 / 0.3), var(--shadow);
}

.timer.is-running .timer-clock {
    font-weight: 500;
    color: var(--ink);
}

.timer.is-running .timer-clock::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.625rem;
    border-radius: 50%;
    background: var(--signal);
    vertical-align: 0.45rem;
    animation: live 2s ease-in-out infinite;
}

@keyframes live {
    50% {
        opacity: 0.25;
    }
}

.timer.is-running .timer-button, .timer.is-running .timer-button:hover {
    border-color: var(--signal);
    background: var(--signal);
    color: var(--paper);
}

.timer.is-running .timer-button:hover {
    border-color: #c53022;
    background: #c53022;
}

/* Entries */

.week {
    margin-bottom: 2.25rem;
}

.week-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.875rem;
    padding: 0 0.25rem 0.5rem;
    border-bottom: 1px solid var(--line);
}

.week-head h2 {
    font-size: 1.0625rem;
}

.week-sum {
    font-size: 0.875rem;
    color: var(--rock);
    font-variant-numeric: tabular-nums;
}

.week-sum b {
    margin-left: 0.375rem;
    font-size: 1.0625rem;
    color: var(--ink);
}

.day {
    margin-bottom: 1.125rem;
}

.day-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 0.25rem 0.5rem;
}

.day-head h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rock);
}

.day-total, .entry-duration, .entry-times {
    font-variant-numeric: tabular-nums;
}

.day-total {
    font-weight: 600;
    color: var(--rock);
}

.day ul {
    container: entries / inline-size;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 0.25rem 1rem;
    padding: 0.625rem 0.5rem 0.625rem 1.125rem;
}

.entry + .entry {
    border-top: 1px solid var(--mist);
}

.entry-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.entry .entry-field {
    width: auto;
    min-height: 2rem;
    padding: 0.125rem 0.375rem;
    border-color: transparent;
    background-color: transparent;
    font-variant-numeric: tabular-nums;
}

.entry .entry-field:hover {
    border-color: var(--line);
}

.entry .entry-field:focus {
    border-color: var(--brand);
    background-color: var(--paper);
    outline: 0;
}

.entry .entry-description {
    flex: 1 1 8rem;
    min-width: 5rem;
    margin-left: -0.4375rem;
    font-weight: 500;
    text-overflow: ellipsis;
}

.entry-times {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    font-size: 0.875rem;
    color: var(--rock);
}

.entry .entry-times input {
    color: var(--rock);
}

.icon-btn.entry-later {
    gap: 0.25rem;
    width: auto;
    padding: 0 0.5rem 0 0.375rem;
    background: rgb(71 156 116 / 0.1);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand);
    white-space: nowrap;
}

.entry-date {
    position: relative;
    display: inline-flex;
}

.entry .entry-date input {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.entry .time-field {
    width: 3.75rem;
    text-align: center;
}

[data-time-format="H12"] .entry .time-field {
    width: 5.5rem;
}

.entry .entry-duration {
    width: 5.75rem;
    text-align: right;
    font-size: 1rem;
    font-weight: 600;
}

.tag-toggle {
    border: 1px solid transparent;
    cursor: pointer;
}

.tag-toggle[aria-pressed="true"] {
    background: rgb(71 156 116 / 0.1);
    color: var(--brand);
}

.tag-toggle[aria-pressed="false"] {
    border-color: var(--line);
    background: none;
    font-weight: 500;
    color: var(--stone);
}

.tag-toggle:hover {
    border-color: var(--stone);
}

.entry-actions {
    display: flex;
}

.entry .picker-client {
    display: none;
}

@container entries (min-width: 64rem) {
    .entry .picker-client {
        display: inline;
    }
}

@container entries (max-width: 54rem) {
    .entry .picker-client {
        display: inline;
    }

    .entry {
        grid-template-columns: minmax(0, auto) minmax(0, auto) auto minmax(0, 1fr) auto auto;
        grid-template-areas:
            "description description description description duration actions"
            "project tags billable times times times";
        column-gap: 0.75rem;
    }

    .entry-main {
        display: contents;
    }

    .entry .entry-description {
        grid-area: description;
        min-width: 0;
    }

    .entry project-picker {
        grid-area: project;
        margin-left: -0.5rem;
    }

    .entry tag-picker {
        grid-area: tags;
    }

    .entry .tag-toggle {
        grid-area: billable;
        justify-self: start;
    }

    .entry-times {
        grid-area: times;
        justify-self: end;
    }

    .entry .entry-duration {
        grid-area: duration;
    }

    .entry-actions {
        grid-area: actions;
    }
}

@container entries (max-width: 36rem) {
    .entry {
        grid-template-columns: minmax(0, 1fr) fit-content(25%) auto;
        grid-template-areas:
            "description description duration"
            "project tags billable"
            "times times actions";
        padding-left: 1rem;
    }

    .entry project-picker {
        justify-self: start;
        max-width: 100%;
    }

    .entry .tag-toggle {
        justify-self: end;
    }

    .entry-times {
        justify-self: start;
        margin-left: -0.375rem;
        flex-wrap: wrap;
    }
}

@container entries (max-width: 22rem) {
    .entry {
        grid-template-areas:
            "description description duration"
            "project tags billable"
            "times times times"
            "actions actions actions";
    }

    .entry-actions {
        justify-self: end;
    }
}

@media (hover: hover) {
    .entry-actions {
        opacity: 0.55;
        transition: opacity 0.12s;
    }

    .entry:hover .entry-actions, .entry:focus-within .entry-actions {
        opacity: 1;
    }
}

/* Lists */

.list {
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    min-height: 3.25rem;
    padding: 0.5rem 0.75rem 0.5rem 1.125rem;
}

.list li + li {
    border-top: 1px solid var(--mist);
}

.list-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.list-grow {
    margin-right: auto;
}

.list-meta {
    margin-right: auto;
    font-size: 0.875rem;
    color: var(--rock);
    overflow-wrap: anywhere;
}

.list .dot {
    width: 0.625rem;
    height: 0.625rem;
}

.list .is-archived .list-name {
    font-weight: 500;
    color: var(--stone);
}

.list-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.list-tools input[type="search"] {
    flex: 0 1 20rem;
    min-height: 2.625rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--paper);
}

.list a.list-name {
    color: var(--ink);
    text-decoration: none;
}

.list a.list-name:hover {
    color: var(--brand);
    text-decoration: underline;
}

.list .client-hours {
    margin-left: 0;
}

.client-group {
    margin-bottom: 1.5rem;
}

.client-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    padding: 0 0.25rem 0.5rem;
}

.client-head h2 {
    overflow-wrap: anywhere;
}

.client-group.is-archived h2 {
    color: var(--stone);
}

.client-hours {
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rock);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.client-hours:hover {
    color: var(--brand);
    text-decoration: underline;
}

.client-empty {
    padding: 0.875rem 1.125rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--rock);
}

.notice {
    margin-bottom: 1rem;
    padding: 1rem 1.125rem;
    border-radius: var(--radius);
    background: var(--brand);
    color: var(--paper);
}

.copy-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.copy-row input {
    border-color: transparent;
    color: var(--ink);
}

.panel {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.settings {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    max-width: 30rem;
}

.settings label {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.settings label input, .settings label select {
    font-size: 0.9375rem;
    font-weight: 400;
}

.settings-note {
    max-width: 38rem;
    margin-top: 0.875rem;
    font-size: 0.875rem;
    color: var(--rock);
}

.form-saved {
    font-weight: 600;
    color: #1e7a52;
}

.list .role-select {
    width: auto;
    min-height: 2.125rem;
    padding: 0.125rem 2rem 0.125rem 0.625rem;
    font-size: 0.875rem;
}

/* Timesheet */

.range-nav {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.range-nav .btn {
    min-height: 2.25rem;
    padding: 0 0.75rem;
}

.range-label {
    min-width: 11.5rem;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.table-scroll {
    overflow-x: auto;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.grid {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.grid th, .grid td {
    padding: 0.8125rem 0.875rem;
    text-align: right;
    white-space: nowrap;
}

.grid th:first-child {
    padding-left: 1.125rem;
    text-align: left;
    font-weight: 600;
}

.grid th:first-child .dot {
    margin-right: 0.625rem;
}

.sheet-grid td {
    padding: 0.375rem 0.25rem;
}

.sheet-grid th small {
    margin-left: 0.5rem;
    font-weight: 400;
    color: var(--stone);
}

.sheet-grid thead th small {
    margin-left: 0;
}

.sheet-cell[type="text"] {
    width: 4.25rem;
    min-height: 2.25rem;
    padding: 0.25rem 0.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sheet-cell.is-many {
    border-style: dashed;
    background: var(--frost);
    color: var(--rock);
    cursor: help;
}

.sheet-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.picker-button.is-action {
    min-height: 2.625rem;
    padding: 0 1rem;
    border-color: var(--line);
    background: var(--paper);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
}

.picker-button.is-action .dot {
    display: none;
}

.picker-button.is-action:hover {
    border-color: var(--stone);
}

.grid thead th {
    padding-top: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rock);
}

.grid thead small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--stone);
}

.grid tr > * {
    border-top: 1px solid var(--mist);
}

.grid thead tr > * {
    border-top: 0;
}

.grid .is-today {
    background: var(--frost);
}

.grid thead .is-today {
    color: var(--brand);
    box-shadow: inset 0 3px 0 var(--signal);
}

.grid td.total, .grid tfoot th, .grid tfoot td {
    font-weight: 700;
}

.grid tfoot tr > * {
    border-top-color: var(--line);
}

/* Reports */

.tabs {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: var(--radius-control);
    background: rgb(27 39 51 / 0.07);
}

.tabs button {
    min-height: 2.125rem;
    padding: 0 0.875rem;
    border: 0;
    border-radius: 7px;
    background: none;
    font-weight: 600;
    color: var(--rock);
    cursor: pointer;
}

.tabs button[aria-pressed="true"] {
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 1px 2px rgb(27 39 51 / 0.12);
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
}

.filters label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--rock);
}

.filters select {
    min-width: 8.5rem;
    max-width: 14rem;
}

.filters .filters-wide {
    flex: 1 1 12rem;
}

.filters .range-nav {
    align-items: end;
}

.filters .range-nav .btn {
    min-height: 2.625rem;
}

.filters [data-export] {
    margin-left: auto;
}

.report {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.report > .empty, .report > .loading-dots {
    border: 0;
    padding: 1rem 0;
}

.totals {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 3rem;
    margin-bottom: 1.5rem;
}

.totals dt {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--rock);
}

.totals dd {
    font-size: 2.125rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.totals div + div dd {
    color: var(--rock);
}

.totals dd small {
    font-size: 1rem;
    letter-spacing: 0;
    color: var(--stone);
}

.totals dd.is-text {
    max-width: 16rem;
    padding-top: 0.5rem;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: 1.25rem;
    margin: 1.25rem 0;
}

.dashboard h2 {
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

.breakdown-name, .breakdown-name small, .totals dd.is-text, .list-name {
    unicode-bidi: isolate;
}

.breakdown .is-others {
    color: var(--rock);
}

.dashboard .breakdown-name small {
    margin-left: 0.5rem;
    font-weight: 400;
    color: var(--stone);
}

.chart {
    margin: 0 0 1.75rem;
}

.chart figcaption {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rock);
}

.chart figcaption span {
    font-weight: 400;
    color: var(--stone);
}

.chart-bars {
    display: flex;
    align-items: stretch;
    gap: 6px;
    height: 11rem;
    border-bottom: 1px solid var(--line);
}

.chart-bars.is-dense {
    gap: 2px;
}

.chart-column {
    position: relative;
    flex: 1 1 0;
    display: flex;
    align-items: flex-end;
    min-width: 0;
}

.chart-column:hover .chart-bar {
    background: var(--brand-strong);
}

.chart-bar {
    width: 100%;
    min-height: 0;
    border-radius: 4px 4px 0 0;
    background: var(--leaf);
}

.chart-label {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 50%;
    font-size: 0.6875rem;
    color: var(--stone);
    white-space: nowrap;
    transform: translateX(-50%);
}

.chart-bars + * {
    margin-top: 0;
}

.chart {
    padding-bottom: 1.25rem;
}

.group-by {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.group-by label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rock);
}

.group-by select {
    width: auto;
    min-height: 2.25rem;
}

.breakdown-parts {
    grid-column: 2 / -1;
    margin: 0.25rem 0 0.125rem;
}

.breakdown .breakdown-parts li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0;
    border: 0;
    font-size: 0.875rem;
    color: var(--rock);
}

.breakdown-parts li span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entries-total {
    margin-bottom: 0.875rem;
    color: var(--rock);
}

.entries-total b {
    font-size: 1.25rem;
    color: var(--ink);
}

.report .table-scroll {
    margin: 0 -0.5rem 0.75rem;
    box-shadow: none;
}

.entries-table {
    width: 100%;
}

.entries-table th:first-child {
    width: 100%;
    white-space: normal;
}

.cell-description {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.25rem;
    min-width: 12rem;
}

.cell-description span:first-child {
    overflow-wrap: anywhere;
}

.cell-description .tag {
    flex-shrink: 0;
}

.entries-table th.is-empty {
    font-weight: 400;
    color: var(--stone);
}

.entries-table td {
    text-align: left;
}

.entries-table td.total, .entries-table td.amount, .entries-table thead th.total {
    text-align: right;
}

.entries-table td.cell-project {
    max-width: 12.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entries-table td .dot {
    margin-right: 0.5rem;
}

.entries-table td small {
    margin-left: 0.5rem;
    color: var(--stone);
}

.entries-table .tag {
    margin-left: 0.5rem;
}

.entries-table thead th {
    text-align: left;
}

.stack {
    display: flex;
    gap: 2px;
    height: 0.875rem;
    margin-bottom: 1rem;
    border-radius: 99px;
    overflow: hidden;
}

.stack span {
    min-width: 3px;
    background: var(--color);
}

.breakdown li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 3.5rem 4.5rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-variant-numeric: tabular-nums;
}

.breakdown li + li {
    border-top: 1px solid var(--mist);
}

.breakdown .dot {
    width: 0.625rem;
    height: 0.625rem;
}

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

.breakdown-share {
    text-align: right;
    color: var(--stone);
}

.breakdown-value {
    text-align: right;
    font-weight: 600;
}

.breakdown.has-amounts > li {
    grid-template-columns: auto minmax(0, 1fr) 3.5rem 4.5rem 7.5rem;
}

.breakdown-amount {
    text-align: right;
    white-space: nowrap;
}

.breakdown.has-amounts .breakdown-parts li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4.5rem 7.5rem;
    gap: 0.75rem;
}

.breakdown.has-amounts .breakdown-parts li span + span {
    text-align: right;
    white-space: nowrap;
}

.person {
    display: flex;
    white-space: nowrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rock);
}

.person select {
    max-width: 18rem;
}

.person-note:empty, timer-bar[only-running]:not(:has(.is-running)) {
    display: none;
}

timer-bar + timer-bar {
    display: block;
    margin-top: 0.75rem;
}

.entry-by {
    display: inline-flex;
    align-items: center;
    padding: 0 0.25rem;
    color: var(--brand);
}

.entry-by .icon {
    width: 1.125rem;
    height: 1.125rem;
}

.person-note {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-control);
    background: rgb(71 156 116 / 0.1);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand);
}

.list-rate {
    font-size: 0.875rem;
    color: var(--rock);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .breakdown.has-amounts > li {
        grid-template-columns: auto minmax(0, 1fr) 4.5rem 6.5rem;
    }

    .breakdown.has-amounts .breakdown-parts li {
        grid-template-columns: minmax(0, 1fr) 4.5rem 6.5rem;
    }

    .breakdown.has-amounts .breakdown-share {
        display: none;
    }
}

/* Forms and dialogs */

dialog {
    width: min(30rem, calc(100vw - 2rem));
    padding: 1.75rem;
    border: 0;
    border-radius: 16px;
    color: var(--ink);
    box-shadow: 0 1.5rem 4rem rgb(27 39 51 / 0.3);
}

dialog[open] {
    animation: rise 0.16s ease-out;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

dialog::backdrop {
    background: rgb(27 39 51 / 0.45);
}

dialog h2 {
    font-size: 1.25rem;
}

dialog form, .auth-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

dialog label, .auth-card label {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
    font-size: 0.875rem;
    font-weight: 600;
}

dialog label input, dialog label select, .auth-card label input {
    font-size: 0.9375rem;
    font-weight: 400;
}

label small {
    font-weight: 400;
    color: var(--rock);
}

label.check {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--brand);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 0.75rem;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.form-error {
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-control);
    background: rgb(224 58 43 / 0.08);
    font-size: 0.875rem;
    font-weight: 500;
    color: #b02a1e;
}

.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    border: 0;
}

.swatches legend {
    margin-bottom: 0.5rem;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.swatches label {
    position: relative;
}

.swatches input {
    position: absolute;
    opacity: 0;
}

.swatch {
    display: block;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    background: var(--color);
    cursor: pointer;
    transition: transform 0.1s;
}

.swatch:hover {
    transform: scale(1.08);
}

.swatches input:checked + .swatch {
    box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--brand);
}

.swatches input:focus-visible + .swatch {
    outline: 2px solid var(--lake);
    outline-offset: 5px;
}

/* Sign in */

.auth {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    min-height: 100vh;
    background: var(--paper);
}

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem 3rem;
    background: var(--brand);
    color: var(--paper);
    overflow: hidden;
}

.auth-aside .brand {
    font-size: 1.375rem;
}

.auth-pitch {
    position: relative;
    z-index: 1;
}

.auth-claim {
    max-width: 11ch;
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 3.6vw, 3.25rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.auth-pitch li {
    padding: 0.5rem 0;
    border-top: 1px solid rgb(255 255 255 / 0.14);
    color: rgb(255 255 255 / 0.72);
}

.auth-dial {
    position: absolute;
    right: -22%;
    top: 8%;
    width: 78%;
    opacity: 0.07;
    pointer-events: none;
}

.auth-dial .mark {
    width: 100%;
    height: auto;
    overflow: visible;
}

.auth-dial .mark-face {
    fill: none;
    stroke: var(--paper);
    stroke-width: 0.6;
}

.auth-dial .mark-hands {
    stroke-width: 1.4;
}

.auth-dial .mark-pivot {
    fill: var(--paper);
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.auth-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: min(23rem, 100%);
}

.auth-card .btn-primary {
    min-height: 2.875rem;
    margin-top: 0.25rem;
}

.auth-switch {
    color: var(--rock);
}

.auth-switch a {
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .loading-dots span, dialog[open], .timer.is-running .timer-clock::before {
        animation: none;
    }

    * {
        transition: none !important;
    }
}

@media (max-width: 760px) {
    app-shell {
        display: block;
        padding-bottom: 4.25rem;
    }

    .rail {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        height: auto;
        padding: 0.625rem 0.75rem 0.625rem 1rem;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .rail .brand, .workspace-name {
        padding: 0;
    }

    .workspace-name {
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .workspace-select {
        width: auto;
        min-height: 2.25rem;
    }

    .rail-user {
        margin: 0 0 0 auto;
        padding: 0;
        border: 0;
    }

    .rail-user-name {
        display: none;
    }

    .rail-account {
        flex: none;
        padding: 0;
    }

    .rail-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
        padding: 0.375rem 0.25rem calc(0.375rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: var(--paper);
    }

    .rail-nav a {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 3rem;
        justify-content: flex-start;
        flex-direction: column;
        gap: 0.125rem;
        padding: 0.375rem 0.125rem;
        font-size: 0.6875rem;
        line-height: 1.15;
        text-align: center;
        -webkit-hyphens: auto;
        hyphens: auto;
    }

    .rail-nav > a[aria-current="page"], .rail-more[aria-current] {
        background: none;
    }

    .rail-more {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        min-height: 3rem;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.125rem;
        padding: 0.375rem 0.125rem;
        border: 0;
        background: none;
        font: inherit;
        font-size: 0.6875rem;
        font-weight: 500;
        color: var(--rock);
        cursor: pointer;
    }

    .rail-more[aria-current], .rail-more[aria-expanded="true"] {
        color: var(--brand);
    }

    .rail-secondary {
        position: fixed;
        right: 0.5rem;
        bottom: calc(4.25rem + env(safe-area-inset-bottom));
        display: none;
        flex-direction: column;
        min-width: 12rem;
        padding: 0.375rem;
        border-radius: var(--radius);
        background: var(--paper);
        box-shadow: 0 0.75rem 2.5rem rgb(27 39 51 / 0.22), 0 0 0 1px var(--line);
    }

    .rail-more[aria-expanded="true"] + .rail-secondary {
        display: flex;
    }

    .rail-secondary a {
        flex: none;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
        min-height: 2.75rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.9375rem;
        line-height: inherit;
        text-align: left;
    }

    .rail-secondary a[aria-current="page"] {
        background: var(--mist);
    }

    .content {
        padding: 1rem 1rem 2rem;
    }

    h1 {
        font-size: 1.375rem;
    }

    .timer {
        flex-wrap: wrap;
        padding: 0.75rem;
    }

    .timer input[name="description"] {
        flex: 1 1 100%;
    }

    .timer project-picker {
        flex: 1 1 calc(100% - 4rem);
    }

    .timer-clock {
        flex: 1;
        padding: 0 0.75rem;
        text-align: left;
    }

    .timer-manual {
        flex: 1 1 100%;
        flex-wrap: wrap;
    }

    .timer .timer-manual input[type="date"] {
        flex: 1 1 100%;
    }

    .timer .timer-manual .time-field, [data-time-format="H12"] .timer .timer-manual .time-field {
        flex: 1;
        width: auto;
    }

    .timer.is-manual .timer-button {
        flex: 1 1 100%;
    }

    .report {
        padding: 1.125rem;
    }

    .totals {
        gap: 0.75rem 1.75rem;
    }

    .totals dd {
        font-size: 1.625rem;
    }

    .filters [data-export] {
        margin-left: 0;
    }

    .filters select {
        max-width: none;
    }

    .range-label {
        min-width: 0;
    }

    .auth {
        display: block;
    }

    .auth-aside {
        gap: 1.5rem;
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .auth-claim {
        max-width: none;
        margin: 0;
        font-size: 1.625rem;
    }

    .auth-pitch ul {
        display: none;
    }

    .auth-main {
        align-items: flex-start;
        padding: 2rem 1.25rem;
    }
}
