.pomodoro-todo-app {
    --pomodoro-bg: #fafafa;
    --pomodoro-surface: #ffffff;
    --pomodoro-surface-soft: #f2f2f2;
    --pomodoro-surface-muted: #e8e8e8;
    --pomodoro-text: #151515;
    --pomodoro-text-secondary: #6f6f6f;
    --pomodoro-text-muted: #a3a3a3;
    --pomodoro-accent: #111111;
    --pomodoro-focus-background: #fafafa;
    --pomodoro-focus-background-image: none;
    --pomodoro-timer-color: #151515;
    --pomodoro-control-color: #111111;
    --pomodoro-border: rgba(17, 17, 17, 0.065);
    --pomodoro-hairline: rgba(17, 17, 17, 0.09);
    width: 100%;
    height: 100%;
    min-height: 0;
    color: var(--pomodoro-text);
    background: var(--pomodoro-bg);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.pomodoro-todo-app,
.pomodoro-todo-app * {
    box-sizing: border-box;
}

.pomodoro-todo-app button,
.pomodoro-todo-app input,
.pomodoro-todo-app textarea {
    font: inherit;
}

.pomodoro-shell {
    position: relative;
    width: min(100%, 460px);
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
    background: var(--pomodoro-bg);
}

.pomodoro-topbar {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: end;
    min-height: calc(56px + var(--top-safe-inset, 44px));
    padding: var(--top-safe-inset, 44px) 16px 10px;
    background: rgba(250, 250, 250, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pomodoro-back,
.pomodoro-add,
.pomodoro-contact-button,
.pomodoro-reward-button,
.pomodoro-skin-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    color: var(--pomodoro-text);
    background: var(--pomodoro-surface);
    border: 1px solid var(--pomodoro-border);
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
    transition: transform 160ms ease, background-color 160ms ease;
    -webkit-tap-highlight-color: transparent;
}

.pomodoro-add {
    color: #fff;
    background: var(--pomodoro-accent);
}

.pomodoro-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.pomodoro-primary-action-stack {
    position: relative;
    width: 40px;
    height: 40px;
}

.pomodoro-reward-button {
    position: absolute;
    top: 46px;
    left: 6px;
    width: 28px;
    height: 28px;
    color: var(--pomodoro-text-secondary);
    background: rgba(255, 255, 255, 0.94);
}

.pomodoro-top-actions[hidden],
.pomodoro-detail-top-actions[hidden],
.pomodoro-checkin-top-actions[hidden] { display: none; }

.pomodoro-detail-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pomodoro-checkin-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.pomodoro-checkin-top-actions > button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    transition: transform 160ms ease;
}

.pomodoro-checkin-top-reward {
    color: var(--pomodoro-text-secondary);
    background: var(--pomodoro-surface);
    border: 1px solid var(--pomodoro-border);
}

.pomodoro-checkin-top-add {
    color: #fff;
    background: var(--pomodoro-accent);
    border: 0;
}

.pomodoro-checkin-top-actions > button:active { transform: scale(0.96); }

.pomodoro-checkin-top-actions svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-contact-button { overflow: hidden; }

.pomodoro-contact-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pomodoro-back:active,
.pomodoro-add:active,
.pomodoro-contact-button:active,
.pomodoro-reward-button:active,
.pomodoro-skin-button:active {
    transform: scale(0.96);
}

.pomodoro-back svg,
.pomodoro-add svg,
.pomodoro-reward-button svg,
.pomodoro-skin-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-reward-button svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.6;
}

.pomodoro-brand {
    align-self: center;
    text-align: center;
}

.pomodoro-brand-name {
    display: block;
    max-width: min(58vw, 260px);
    overflow: hidden;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pomodoro-brand-meta {
    display: block;
    margin-top: 3px;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 650;
    letter-spacing: 1.8px;
}

.pomodoro-pages {
    position: absolute;
    inset: calc(56px + var(--top-safe-inset, 44px)) 0 0;
    overflow: hidden;
}

.pomodoro-page {
    position: absolute;
    inset: 0;
    display: none;
    overflow-y: auto;
    padding: 22px 20px calc(116px + var(--content-safe-bottom, 0px));
    -webkit-overflow-scrolling: touch;
}

.pomodoro-page.is-active {
    display: block;
    animation: pomodoro-page-enter 220ms ease both;
}

.pomodoro-todo-app.is-focus-detail .pomodoro-page[data-pomodoro-page="focus"] {
    padding: calc(var(--top-safe-inset, 44px) + 62px) 20px calc(12px + var(--content-safe-bottom, 0px));
    overflow: hidden;
    background-color: var(--pomodoro-focus-background);
    background-image: var(--pomodoro-focus-background-image);
    background-position: center;
    background-size: cover;
}

.pomodoro-todo-app.is-focus-detail .pomodoro-pages { inset: 0; }

.pomodoro-todo-app.is-focus-detail .pomodoro-focus-host {
    height: 100%;
    min-height: 0;
}

.pomodoro-todo-app.is-focus-detail .pomodoro-topbar {
    z-index: 24;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    min-height: calc(50px + var(--top-safe-inset, 44px));
    padding: calc(var(--top-safe-inset, 44px) + 6px) 18px 6px;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}

.pomodoro-todo-app.is-focus-detail .pomodoro-back,
.pomodoro-todo-app.is-focus-detail .pomodoro-brand,
.pomodoro-todo-app.is-focus-detail .pomodoro-detail-top-actions {
    pointer-events: auto;
}

.pomodoro-todo-app.is-focus-detail .pomodoro-back,
.pomodoro-todo-app.is-focus-detail .pomodoro-skin-button {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(17, 17, 17, 0.075);
    box-shadow: 0 6px 20px rgba(17, 17, 17, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pomodoro-todo-app.is-focus-detail .pomodoro-brand-name {
    max-width: min(54vw, 230px);
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.72);
}

.pomodoro-todo-app.is-focus-detail .pomodoro-brand-meta { display: none; }

.pomodoro-todo-app.is-portrait-detail .pomodoro-page[data-pomodoro-page="focus"] {
    padding: 0;
    background: #111;
}

.pomodoro-todo-app.is-portrait-detail .pomodoro-back {
    color: #fff;
    background: rgba(12, 12, 12, 0.34);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.pomodoro-todo-app.is-portrait-detail .pomodoro-brand-name {
    max-width: min(42vw, 174px);
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.62);
}

@keyframes pomodoro-page-enter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pomodoro-kicker {
    margin: 0 0 10px;
    color: var(--pomodoro-text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.pomodoro-page-title {
    max-width: 310px;
    margin: 0;
    font-size: clamp(28px, 8vw, 34px);
    font-weight: 570;
    line-height: 1.14;
    letter-spacing: -1.5px;
}

.pomodoro-page-copy {
    max-width: 300px;
    margin: 11px 0 0;
    color: var(--pomodoro-text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.pomodoro-focus-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pomodoro-focus-meta .pomodoro-kicker {
    margin-bottom: 0;
}

.pomodoro-date-heading {
    display: flex;
    padding: 6px 2px 20px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.pomodoro-date-heading > div > span {
    display: block;
    margin-bottom: 6px;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.pomodoro-date-heading strong {
    display: block;
    font-size: 28px;
    font-weight: 690;
    line-height: 1;
    letter-spacing: -1px;
}

.pomodoro-date-heading > p {
    margin: 0;
    color: var(--pomodoro-text-secondary);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1px;
    text-align: right;
}

.pomodoro-date-heading small {
    display: block;
    margin-top: 5px;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 650;
    letter-spacing: 1px;
}

.pomodoro-date-timeline {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 36px) / 7);
    gap: 6px;
    width: calc(100% + 40px);
    margin-left: -20px;
    padding: 0 20px 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.pomodoro-date-timeline::-webkit-scrollbar { display: none; }

.pomodoro-date-option {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 0;
    flex-direction: column;
    align-items: center;
    color: var(--pomodoro-text-secondary);
    background: transparent;
    border: 0;
    scroll-snap-align: center;
    -webkit-tap-highlight-color: transparent;
}

.pomodoro-date-option > span {
    margin-bottom: 10px;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.pomodoro-date-option > strong {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--pomodoro-text-secondary);
    background: transparent;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 560;
    font-variant-numeric: tabular-nums;
    transition: color 180ms ease, background-color 180ms ease, transform 160ms ease;
}

.pomodoro-date-option.is-selected > span { color: var(--pomodoro-text); }

.pomodoro-date-option.is-selected > strong {
    color: var(--pomodoro-text);
    background: #d8d8d6;
    font-weight: 680;
}

.pomodoro-date-option.is-today:not(.is-selected)::after {
    content: '';
    position: absolute;
    bottom: 1px;
    width: 3px;
    height: 3px;
    background: var(--pomodoro-text);
    border-radius: 50%;
}

.pomodoro-date-option:active > strong {
    transform: scale(0.92);
}

.pomodoro-event-count {
    flex: 0 0 auto;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.pomodoro-timeline {
    position: relative;
    display: flex;
    margin-top: 24px;
    flex-direction: column;
    gap: 2px;
}

.pomodoro-timeline::before {
    content: '';
    position: absolute;
    top: 17px;
    bottom: 28px;
    left: 29px;
    width: 1px;
    background: repeating-linear-gradient(to bottom, rgba(17, 17, 17, 0.16) 0 3px, transparent 3px 7px);
}

.pomodoro-timeline-item {
    position: relative;
    display: block;
    min-width: 0;
}

.pomodoro-time-row {
    position: relative;
    z-index: 1;
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
}

.pomodoro-time-row time {
    min-width: 58px;
    padding: 6px 8px;
    color: var(--pomodoro-text-secondary);
    background: var(--pomodoro-bg);
    border: 1px dashed rgba(17, 17, 17, 0.15);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 560;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.pomodoro-time-row span {
    color: var(--pomodoro-text-muted);
    background: var(--pomodoro-bg);
    font-size: 9px;
}

.pomodoro-event-stack {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.pomodoro-event-card {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 18px;
    width: 100%;
    min-height: 88px;
    padding: 17px 0 22px 58px;
    align-items: start;
    gap: 12px;
    color: var(--pomodoro-text);
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: opacity 160ms ease;
    -webkit-tap-highlight-color: transparent;
}

.pomodoro-event-card:active {
    opacity: 0.56;
}

.pomodoro-event-card::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 58px;
    height: 1px;
    background: rgba(17, 17, 17, 0.07);
}

.pomodoro-event-stack .pomodoro-event-card:last-child::after {
    display: none;
}

.pomodoro-event-check {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(17, 17, 17, 0.15);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.035);
}

.pomodoro-event-check.is-completed {
    position: relative;
    background: var(--pomodoro-accent);
    border-color: var(--pomodoro-accent);
}

.pomodoro-event-check.is-completed::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 7px;
    height: 4px;
    border: solid #fff;
    border-width: 0 0 1.5px 1.5px;
    transform: rotate(-45deg);
}

.pomodoro-event-content {
    display: block;
    min-width: 0;
}

.pomodoro-event-content strong {
    display: block;
    width: 100%;
    overflow: hidden;
    font-size: 15px;
    font-weight: 560;
    line-height: 1.35;
    letter-spacing: -0.15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pomodoro-event-status {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 0 8px;
    color: var(--pomodoro-text-secondary);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 560;
}

.pomodoro-event-status.is-running {
    color: #fff;
    background: var(--pomodoro-accent);
}

.pomodoro-event-meta {
    display: flex;
    margin-top: 6px;
    align-items: center;
    gap: 7px;
    color: var(--pomodoro-text-muted);
    font-size: 10px;
}

.pomodoro-repeat-mark {
    color: var(--pomodoro-text-secondary);
}

.pomodoro-event-card > svg {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    fill: none;
    stroke: var(--pomodoro-text-muted);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-empty-state {
    display: flex;
    width: 100%;
    min-height: 230px;
    margin-top: 30px;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--pomodoro-text);
    background: transparent;
    border: 0;
    border-radius: 0;
}

.pomodoro-empty-plus {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    place-items: center;
    color: #fff;
    background: var(--pomodoro-accent);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 300;
}

.pomodoro-empty-state strong {
    font-size: 15px;
    font-weight: 620;
}

.pomodoro-empty-state > span:last-child {
    max-width: 210px;
    margin-top: 8px;
    color: var(--pomodoro-text-muted);
    font-size: 11px;
    line-height: 1.6;
}

.pomodoro-placeholder-card {
    margin-top: 34px;
    padding: 24px;
    background: var(--pomodoro-surface);
    border: 1px solid var(--pomodoro-border);
    border-radius: 26px;
}

.pomodoro-placeholder-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    color: var(--pomodoro-text-secondary);
    font-size: 13px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.055);
}

.pomodoro-placeholder-row:last-child { border-bottom: 0; }

.pomodoro-placeholder-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    background: var(--pomodoro-surface-soft);
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 50%;
}

.pomodoro-guide-host {
    width: 100%;
    padding-bottom: 20px;
}

.pomodoro-guide-intro { padding-top: 4px; }

.pomodoro-guide-eyebrow {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.pomodoro-guide-eyebrow > span,
.pomodoro-guide-section-title small,
.pomodoro-guide-empty > span {
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 720;
    letter-spacing: 1.8px;
}

.pomodoro-guide-eyebrow button {
    display: flex;
    max-width: 190px;
    height: 36px;
    align-items: center;
    gap: 8px;
    padding: 3px 9px 3px 3px;
    overflow: hidden;
    color: var(--pomodoro-text);
    background: #fff;
    border: 1px solid var(--pomodoro-border);
    border-radius: 999px;
}

.pomodoro-guide-eyebrow img {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 50%;
}

.pomodoro-guide-eyebrow strong {
    overflow: hidden;
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pomodoro-guide-eyebrow svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-guide-composer {
    margin-top: 14px;
    padding: 17px;
    background: #fff;
    border: 1px solid var(--pomodoro-border);
    border-radius: 24px;
    box-shadow: 0 12px 34px rgba(17, 17, 17, 0.035);
}

.pomodoro-guide-composer > label {
    display: block;
    margin-bottom: 10px;
    color: var(--pomodoro-text-secondary);
    font-size: 10px;
    font-weight: 650;
}

.pomodoro-guide-composer textarea {
    display: block;
    width: 100%;
    min-height: 88px;
    padding: 0;
    resize: none;
    color: var(--pomodoro-text);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 15px;
    line-height: 1.65;
}

.pomodoro-guide-composer textarea::placeholder { color: #b5b5b5; }
.pomodoro-guide-composer textarea:disabled { opacity: 0.64; }

.pomodoro-guide-composer > div {
    display: flex;
    min-height: 42px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(17, 17, 17, 0.055);
}

.pomodoro-guide-composer > div > small {
    max-width: 185px;
    color: var(--pomodoro-text-muted);
    font-size: 9px;
    line-height: 1.5;
}

.pomodoro-guide-composer button[type="submit"] {
    display: flex;
    min-width: 112px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    color: #fff;
    background: var(--pomodoro-accent);
    border: 0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
}

.pomodoro-guide-composer button[type="submit"]:disabled { opacity: 0.46; }

.pomodoro-guide-composer button[type="submit"] i {
    width: 10px;
    height: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pomodoro-guide-spin 0.9s linear infinite;
}

@keyframes pomodoro-guide-spin { to { transform: rotate(360deg); } }

.pomodoro-guide-clarify {
    margin-top: 12px;
    padding: 17px;
    background: #f2f4f7;
    border: 1px solid rgba(17, 17, 17, 0.055);
    border-radius: 22px;
}

.pomodoro-guide-clarify > small {
    display: block;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 720;
    letter-spacing: 1.45px;
}

.pomodoro-guide-clarify > strong {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 620;
    line-height: 1.55;
}

.pomodoro-guide-clarify > div {
    display: grid;
    gap: 7px;
    margin-top: 13px;
}

.pomodoro-guide-clarify button {
    display: grid;
    gap: 3px;
    min-height: 48px;
    padding: 10px 13px;
    color: var(--pomodoro-text);
    text-align: left;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.06);
    border-radius: 15px;
    transition: transform 160ms ease, border-color 160ms ease;
}

.pomodoro-guide-clarify button:active { transform: scale(0.985); }
.pomodoro-guide-clarify button span { font-size: 12px; font-weight: 620; }
.pomodoro-guide-clarify button small { color: var(--pomodoro-text-muted); font-size: 10px; line-height: 1.4; }

.pomodoro-guide-list { margin-top: 34px; }

.pomodoro-guide-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px 12px;
}

.pomodoro-guide-section-title > span {
    font-size: 12px;
    font-weight: 660;
}

.pomodoro-guide-plan {
    margin-bottom: 18px;
    padding: 21px 18px 17px;
    background: #fff;
    border: 1px solid var(--pomodoro-border);
    border-radius: 26px;
}

.pomodoro-guide-plan > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.pomodoro-guide-plan > header > div:first-child { min-width: 0; }

.pomodoro-guide-plan > header small {
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 720;
    letter-spacing: 1.35px;
}

.pomodoro-guide-plan h2 {
    margin: 7px 0 0;
    font-size: 16px;
    font-weight: 620;
    line-height: 1.45;
    letter-spacing: -0.3px;
}

.pomodoro-guide-plan-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}

.pomodoro-guide-plan-actions > span {
    display: grid;
    min-width: 40px;
    height: 28px;
    place-items: center;
    color: #fff;
    background: var(--pomodoro-accent);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 680;
}

.pomodoro-guide-plan-refine {
    display: flex;
    height: 28px;
    align-items: center;
    gap: 4px;
    padding: 0 9px;
    color: #6f757d;
    background: #f2f4f7;
    border: 0;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 650;
    white-space: nowrap;
}

.pomodoro-guide-plan-refine svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-guide-plan-refine i {
    width: 11px;
    height: 11px;
    border: 1.5px solid rgba(17, 17, 17, 0.16);
    border-top-color: var(--pomodoro-accent);
    border-radius: 50%;
    animation: pomodoro-guide-spin 0.9s linear infinite;
}

.pomodoro-guide-progress {
    height: 3px;
    margin: 17px 0 7px;
    overflow: hidden;
    background: #ececec;
    border-radius: 999px;
}

.pomodoro-guide-progress i {
    display: block;
    height: 100%;
    background: var(--pomodoro-accent);
    border-radius: inherit;
    transition: width 260ms ease;
}

.pomodoro-guide-goals { margin-top: 7px; }

.pomodoro-guide-goal-viewport {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.pomodoro-guide-goal-viewport::-webkit-scrollbar { display: none; }

.pomodoro-guide-goal-track {
    display: grid;
    width: calc(100% + 62px);
    grid-template-columns: calc(100% - 62px) 62px;
}

.pomodoro-guide-goal {
    display: grid;
    width: 100%;
    min-height: 58px;
    grid-template-columns: 25px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--pomodoro-text);
    text-align: left;
    border-bottom: 1px solid rgba(17, 17, 17, 0.055);
    scroll-snap-align: start;
}

.pomodoro-guide-goal-side {
    display: flex;
    min-width: 47px;
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
}

.pomodoro-guide-goal-swipe-action {
    display: grid;
    place-items: stretch;
    padding: 5px 0 5px 7px;
    scroll-snap-align: end;
}

.pomodoro-guide-goal-swipe-action button {
    padding: 0;
    color: #fff;
    background: #747a82;
    border: 0;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 650;
}

.pomodoro-guide-goal-editor {
    margin: 7px 0;
    padding: 13px;
    background: #f2f4f7;
    border: 1px solid rgba(17, 17, 17, 0.055);
    border-radius: 17px;
}

.pomodoro-guide-goal-editor > label {
    display: block;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.pomodoro-guide-goal-editor > input {
    width: 100%;
    height: 42px;
    margin-top: 7px;
    padding: 0 12px;
    color: var(--pomodoro-text);
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.07);
    border-radius: 13px;
    outline: none;
    font: inherit;
    font-size: 12px;
}

.pomodoro-guide-goal-editor > input:focus { border-color: rgba(17, 17, 17, 0.2); }

.pomodoro-guide-goal-editor > div {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 8px;
}

.pomodoro-guide-goal-editor button {
    min-width: 64px;
    height: 32px;
    padding: 0 12px;
    color: var(--pomodoro-text-secondary);
    background: #fff;
    border: 0;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 650;
}

.pomodoro-guide-goal-editor button[type="submit"] {
    color: #fff;
    background: var(--pomodoro-accent);
}

.pomodoro-guide-goal-check {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 50%;
}

.pomodoro-guide-goal-check > i {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    place-items: center;
    color: transparent;
    border: 1px solid rgba(17, 17, 17, 0.16);
    border-radius: 50%;
    transition: color 180ms ease, background-color 180ms ease;
}

.pomodoro-guide-goal-check svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-guide-goal > span {
    display: grid;
    min-width: 0;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: baseline;
    gap: 7px;
}

.pomodoro-guide-goal small {
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 650;
    letter-spacing: 0.8px;
}

.pomodoro-guide-goal strong {
    font-size: 12px;
    font-weight: 530;
    line-height: 1.55;
}

.pomodoro-guide-goal.is-done .pomodoro-guide-goal-check > i {
    color: #fff;
    background: var(--pomodoro-accent);
    border-color: var(--pomodoro-accent);
}

.pomodoro-guide-goal.is-done strong {
    color: var(--pomodoro-text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.pomodoro-guide-focus-link {
    display: flex;
    height: 30px;
    align-items: center;
    gap: 3px;
    padding: 0 10px;
    color: #fff;
    background: var(--pomodoro-accent);
    border: 0;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 650;
    white-space: nowrap;
}

.pomodoro-guide-focus-link svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-guide-goal-state {
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    white-space: nowrap;
}

.pomodoro-guide-reward {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding: 15px;
    background: #f3f3f3;
    border-radius: 18px;
}

.pomodoro-guide-reward-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--pomodoro-text-secondary);
    background: #fff;
    border-radius: 50%;
}

.pomodoro-guide-reward-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-guide-reward small {
    display: block;
    margin: 1px 0 5px;
    color: var(--pomodoro-text-muted);
    font-size: 7px;
    font-weight: 720;
    letter-spacing: 1.2px;
}

.pomodoro-guide-reward strong {
    display: block;
    font-size: 12px;
    font-weight: 650;
}

.pomodoro-guide-reward p {
    margin: 5px 0 0;
    color: var(--pomodoro-text-secondary);
    font-size: 10px;
    line-height: 1.6;
}

.pomodoro-guide-reward .pomodoro-guide-reward-message {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pomodoro-guide-reward.is-unlocked {
    color: #fff;
    background: var(--pomodoro-accent);
}

.pomodoro-guide-reward.is-unlocked small,
.pomodoro-guide-reward.is-unlocked p { color: rgba(255, 255, 255, 0.67); }
.pomodoro-guide-reward.is-unlocked .pomodoro-guide-reward-icon { color: var(--pomodoro-text); }

.pomodoro-guide-empty,
.pomodoro-checkin-placeholder {
    display: flex;
    min-height: 210px;
    margin-top: 30px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: 1px dashed rgba(17, 17, 17, 0.11);
    border-radius: 26px;
}

.pomodoro-guide-empty strong,
.pomodoro-checkin-placeholder strong {
    margin-top: 11px;
    font-size: 15px;
    font-weight: 620;
}

.pomodoro-guide-empty p,
.pomodoro-checkin-placeholder p {
    max-width: 230px;
    margin: 8px 0 0;
    color: var(--pomodoro-text-muted);
    font-size: 10px;
    line-height: 1.65;
}

.pomodoro-checkin-placeholder > span {
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 720;
    letter-spacing: 1.8px;
}

.pomodoro-checkin-host {
    width: 100%;
    padding-bottom: 18px;
}

.pomodoro-checkin-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2px;
    gap: 1px;
    overflow: hidden;
    background: var(--pomodoro-hairline);
    border: 1px solid var(--pomodoro-border);
    border-radius: 22px;
}

.pomodoro-checkin-summary > div {
    min-height: 88px;
    padding: 17px;
    background: #fff;
}

.pomodoro-checkin-summary > div > span {
    color: var(--pomodoro-text-muted);
    font-size: 9px;
}

.pomodoro-checkin-summary > div > strong {
    display: block;
    margin-top: 8px;
    font-size: 25px;
    font-weight: 650;
    letter-spacing: -0.8px;
}

.pomodoro-checkin-summary > div small {
    font-size: 10px;
    font-weight: 550;
}

.pomodoro-checkin-summary > p {
    grid-column: 1 / -1;
    margin: 0;
    padding: 11px 16px 12px;
    color: var(--pomodoro-text-secondary);
    background: #f3f3f3;
    font-size: 9px;
    line-height: 1.6;
}

.pomodoro-checkin-calendar {
    margin-top: 16px;
    padding: 17px 12px 14px;
    background: #fff;
    border: 1px solid var(--pomodoro-border);
    border-radius: 26px;
    box-shadow: 0 5px 20px rgba(17, 17, 17, 0.028);
}

.pomodoro-checkin-calendar > header {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
}

.pomodoro-checkin-calendar > header strong {
    text-align: center;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.2px;
}

.pomodoro-checkin-calendar > header button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--pomodoro-text-secondary);
    background: transparent;
    border: 0;
    border-radius: 50%;
}

.pomodoro-checkin-calendar > header svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-checkin-weekdays,
.pomodoro-checkin-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.pomodoro-checkin-weekdays {
    margin: 10px 0 7px;
}

.pomodoro-checkin-weekdays span {
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 620;
    text-align: center;
}

.pomodoro-checkin-day-blank,
.pomodoro-checkin-day {
    aspect-ratio: 0.9;
}

.pomodoro-checkin-day {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 6px 3px;
    overflow: hidden;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    color: var(--pomodoro-text);
    background: #f4f4f4;
    border: 1px solid transparent;
    border-radius: 13px;
}

.pomodoro-checkin-day-fill {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    opacity: 0.65;
    transition: height 240ms ease;
}

.pomodoro-checkin-day > span,
.pomodoro-checkin-day > small,
.pomodoro-checkin-day > svg {
    position: relative;
    z-index: 1;
}

.pomodoro-checkin-day > .pomodoro-checkin-day-number {
    font-size: 10px;
    font-weight: 620;
    font-variant-numeric: tabular-nums;
}

.pomodoro-checkin-day.is-reward-day > .pomodoro-checkin-day-number {
    align-self: flex-start;
    margin-left: 3px;
}

.pomodoro-checkin-day > small {
    margin-top: auto;
    color: rgba(17, 17, 17, 0.52);
    font-size: 7px;
    font-weight: 650;
}

.pomodoro-checkin-day > svg {
    width: 13px;
    height: 13px;
    margin-top: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-checkin-day > .pomodoro-checkin-reward-mark {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    display: grid;
    width: 15px;
    height: 15px;
    place-items: center;
    color: rgba(17, 17, 17, 0.56);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(17, 17, 17, 0.07);
    border-radius: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pomodoro-checkin-reward-mark svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-checkin-reward-mark b {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    min-width: 11px;
    height: 11px;
    padding: 0 2px;
    place-items: center;
    color: #fff;
    background: var(--pomodoro-accent);
    border-radius: 999px;
    font-size: 6px;
    font-weight: 700;
    line-height: 1;
}

.pomodoro-checkin-day.is-reward-ready > .pomodoro-checkin-reward-mark {
    color: #fff;
    background: var(--pomodoro-accent);
    border-color: var(--pomodoro-accent);
}

.pomodoro-checkin-day.is-selected {
    border-color: var(--pomodoro-accent);
    box-shadow: inset 0 0 0 1px var(--pomodoro-accent);
}

.pomodoro-checkin-day.is-today > .pomodoro-checkin-day-number::after {
    content: '';
    display: block;
    width: 3px;
    height: 3px;
    margin: 3px auto 0;
    background: currentColor;
    border-radius: 50%;
}

.pomodoro-checkin-day.is-full .pomodoro-checkin-day-fill { opacity: 0.82; }
.pomodoro-checkin-day.is-future { opacity: 0.46; }
.pomodoro-checkin-day.has-no-goals { background: #fafafa; }

.pomodoro-checkin-today {
    margin-top: 26px;
}

.pomodoro-checkin-today > header {
    display: flex;
    padding: 0 2px 10px;
    align-items: flex-end;
    justify-content: space-between;
}

.pomodoro-checkin-today > header span {
    display: block;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 650;
    letter-spacing: 0.7px;
}

.pomodoro-checkin-today > header strong {
    display: block;
    margin-top: 5px;
    font-size: 15px;
    font-weight: 650;
}

.pomodoro-checkin-today > header em {
    color: var(--pomodoro-text-secondary);
    font-size: 11px;
    font-style: normal;
    font-weight: 650;
}

.pomodoro-checkin-goal-list {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pomodoro-border);
    border-radius: 22px;
}

.pomodoro-checkin-goal-viewport {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.pomodoro-checkin-goal-viewport::-webkit-scrollbar { display: none; }

.pomodoro-checkin-goal-track {
    display: grid;
    width: calc(100% + 64px);
    grid-template-columns: calc(100% - 64px) 64px;
}

.pomodoro-checkin-goal {
    display: grid;
    width: 100%;
    min-height: 66px;
    grid-template-columns: 10px minmax(0, 1fr) 28px;
    padding: 11px 15px;
    align-items: center;
    gap: 12px;
    color: var(--pomodoro-text);
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.055);
    scroll-snap-align: start;
}

.pomodoro-checkin-goal-viewport:last-child .pomodoro-checkin-goal { border-bottom: 0; }
.pomodoro-checkin-goal:disabled { opacity: 0.46; }

.pomodoro-checkin-goal-swipe-action {
    display: grid;
    place-items: stretch;
    padding: 6px 6px 6px 7px;
    scroll-snap-align: end;
}

.pomodoro-checkin-goal-swipe-action button {
    padding: 0;
    color: #fff;
    background: #747a82;
    border: 0;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 650;
}

.pomodoro-checkin-goal > i {
    width: 9px;
    height: 28px;
    background: var(--checkin-goal-color);
    border-radius: 999px;
}

.pomodoro-checkin-goal > span { min-width: 0; }

.pomodoro-checkin-goal strong {
    display: block;
    font-size: 13px;
    font-weight: 590;
}

.pomodoro-checkin-goal small {
    display: block;
    margin-top: 5px;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
}

.pomodoro-checkin-goal small time {
    color: var(--pomodoro-text-secondary);
    font-weight: 680;
    font-variant-numeric: tabular-nums;
}

.pomodoro-checkin-goal small b {
    margin: 0 5px;
    color: rgba(17, 17, 17, 0.18);
    font-weight: 400;
}

.pomodoro-checkin-goal > em {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    color: transparent;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 50%;
}

.pomodoro-checkin-goal > em svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-checkin-goal.is-done > em {
    color: #fff;
    background: var(--pomodoro-accent);
    border-color: var(--pomodoro-accent);
}

.pomodoro-checkin-goal.is-done strong {
    color: var(--pomodoro-text-muted);
    text-decoration: line-through;
}

.pomodoro-checkin-empty {
    display: flex;
    min-height: 118px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.pomodoro-checkin-empty strong { font-size: 12px; font-weight: 620; }
.pomodoro-checkin-empty span { margin-top: 7px; color: var(--pomodoro-text-muted); font-size: 9px; }

.pomodoro-checkin-color-field { margin-top: 18px; }

.pomodoro-checkin-schedule-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: 10px;
}

.pomodoro-checkin-schedule-row .pomodoro-field { min-width: 0; }

.pomodoro-checkin-colors {
    display: flex;
    gap: 10px;
    padding: 4px 2px 2px;
}

.pomodoro-checkin-colors label {
    position: relative;
    display: block;
}

.pomodoro-checkin-colors input[type="radio"],
.pomodoro-checkin-colors input[type="hidden"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pomodoro-checkin-colors label > span {
    display: block;
    width: 34px;
    height: 34px;
    background: var(--checkin-goal-color);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.pomodoro-checkin-colors input[type="radio"]:checked + span {
    box-shadow: 0 0 0 2px var(--pomodoro-accent);
}

.pomodoro-checkin-custom-color input[type="color"] {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.pomodoro-checkin-custom-color span {
    position: relative;
    background: var(--checkin-goal-color);
}

.pomodoro-checkin-custom-color span b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: 420;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
}

.pomodoro-checkin-sheet .pomodoro-field small {
    display: block;
    margin-top: 7px;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
}

.pomodoro-reward-sheet {
    min-height: min(680px, calc(100% - var(--top-safe-inset, 44px) - 12px));
}

.pomodoro-reward-center-view { padding-bottom: 8px; }

.pomodoro-reward-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    background: var(--pomodoro-hairline);
    border: 1px solid var(--pomodoro-border);
    border-radius: 20px;
}

.pomodoro-reward-overview > div {
    padding: 16px;
    background: var(--pomodoro-surface-soft);
}

.pomodoro-reward-overview span,
.pomodoro-reward-group header span {
    display: block;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.35px;
}

.pomodoro-reward-overview strong {
    display: block;
    margin-top: 8px;
    font-size: 25px;
    font-weight: 620;
}

.pomodoro-reward-add {
    display: flex;
    width: 100%;
    min-height: 56px;
    margin-top: 12px;
    padding: 10px 14px;
    align-items: center;
    gap: 11px;
    color: var(--pomodoro-text);
    background: var(--pomodoro-surface);
    border: 1px solid var(--pomodoro-border);
    border-radius: 18px;
    text-align: left;
}

.pomodoro-reward-add span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #fff;
    background: var(--pomodoro-accent);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 300;
}

.pomodoro-reward-add strong { font-size: 12px; font-weight: 610; }

.pomodoro-reward-group { margin-top: 26px; }

.pomodoro-reward-group > header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-bottom: 10px;
}

.pomodoro-reward-group > header span { grid-column: 1; }
.pomodoro-reward-group > header strong { margin-top: 4px; font-size: 17px; font-weight: 620; }
.pomodoro-reward-group > header em { grid-column: 2; grid-row: 1 / span 2; color: var(--pomodoro-text-muted); font-size: 10px; font-style: normal; }

.pomodoro-reward-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 13px;
    align-items: center;
    gap: 11px;
    background: var(--pomodoro-surface-soft);
    border: 1px solid var(--pomodoro-border);
    border-radius: 19px;
}

.pomodoro-reward-card + .pomodoro-reward-card { margin-top: 8px; }

.pomodoro-reward-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--pomodoro-text-muted);
    background: var(--pomodoro-surface);
    border-radius: 14px;
}

.pomodoro-reward-icon::before {
    content: "";
    width: 16px;
    height: 13px;
    border: 1.4px solid currentColor;
    border-radius: 3px;
    box-shadow: inset 0 4px 0 transparent;
}

.pomodoro-reward-card.is-unlocked .pomodoro-reward-icon,
.pomodoro-reward-card.is-claimed .pomodoro-reward-icon {
    color: #fff;
    background: var(--pomodoro-accent);
}

.pomodoro-reward-card.is-unlocked .pomodoro-reward-icon::before,
.pomodoro-reward-card.is-claimed .pomodoro-reward-icon::before { display: none; }

.pomodoro-reward-copy { min-width: 0; }
.pomodoro-reward-copy > span { display: block; overflow: hidden; color: var(--pomodoro-text-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.pomodoro-reward-copy > strong { display: block; margin-top: 4px; overflow: hidden; font-size: 13px; font-weight: 610; text-overflow: ellipsis; white-space: nowrap; }
.pomodoro-reward-copy > small { display: block; margin-top: 5px; color: var(--pomodoro-text-secondary); font-size: 8px; }

.pomodoro-reward-progress {
    height: 3px;
    margin-top: 9px;
    overflow: hidden;
    background: rgba(17, 17, 17, 0.08);
    border-radius: 999px;
}

.pomodoro-reward-progress i { display: block; height: 100%; background: var(--pomodoro-accent); border-radius: inherit; }

.pomodoro-reward-card > button {
    min-width: 48px;
    min-height: 30px;
    padding: 0 12px;
    color: #fff;
    background: var(--pomodoro-accent);
    border: 0;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 650;
}

.pomodoro-reward-empty {
    display: flex;
    min-height: 230px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--pomodoro-text-muted);
    text-align: center;
}

.pomodoro-reward-empty > span { font-size: 22px; }
.pomodoro-reward-empty strong { margin-top: 11px; color: var(--pomodoro-text); font-size: 15px; }
.pomodoro-reward-empty p { max-width: 220px; margin: 8px 0 0; font-size: 10px; line-height: 1.65; }

.pomodoro-reward-form { padding-bottom: 4px; }

.pomodoro-reward-form [hidden] { display: none; }

.pomodoro-field > select {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    color: var(--pomodoro-text);
    background: var(--pomodoro-surface-soft);
    border: 1px solid transparent;
    border-radius: 18px;
    outline: none;
    font-size: 14px;
}

.pomodoro-field > select:focus { background: #fff; border-color: rgba(17, 17, 17, 0.22); }

.pomodoro-stats-host {
    --stats-theme: #111111;
    width: 100%;
    padding-bottom: 18px;
}

.pomodoro-stats-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    padding: 4px;
    gap: 3px;
    background: var(--pomodoro-surface-soft);
    border-radius: 999px;
}

.pomodoro-stats-tabs button {
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
    color: var(--pomodoro-text-secondary);
    background: transparent;
    border: 0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 620;
    transition: color 180ms ease, background-color 180ms ease, transform 160ms ease;
}

.pomodoro-stats-tabs button.is-active {
    color: #fff;
    background: var(--stats-theme);
}

.pomodoro-stats-tabs button:active { transform: scale(0.96); }

.pomodoro-stats-heading {
    display: flex;
    margin-top: 28px;
    padding: 0 2px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.pomodoro-stats-heading span {
    display: block;
    margin-bottom: 7px;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.pomodoro-stats-heading strong {
    display: block;
    font-size: 26px;
    font-weight: 660;
    line-height: 1;
    letter-spacing: -0.9px;
}

.pomodoro-stats-theme {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pomodoro-border);
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(17, 17, 17, 0.035);
}

.pomodoro-stats-theme input {
    position: absolute;
    inset: -8px;
    width: 54px;
    height: 54px;
    opacity: 0;
}

.pomodoro-stats-theme i {
    width: 18px;
    height: 18px;
    background: var(--stats-theme);
    border: 4px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08);
    pointer-events: none;
}

.pomodoro-stats-period {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    margin-top: 20px;
    align-items: center;
    gap: 8px;
}

.pomodoro-stats-period strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 620;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pomodoro-stats-period button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    color: var(--pomodoro-text-secondary);
    background: transparent;
    border: 0;
}

.pomodoro-stats-period button:disabled { visibility: hidden; }

.pomodoro-stats-period svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-stats-custom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr);
    margin-top: 16px;
    align-items: end;
    gap: 7px;
}

.pomodoro-stats-custom[hidden] { display: none; }

.pomodoro-stats-custom label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.pomodoro-stats-custom label span {
    padding-left: 4px;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 680;
    letter-spacing: 0.8px;
}

.pomodoro-stats-custom input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 9px;
    color: var(--pomodoro-text);
    background: var(--pomodoro-surface-soft);
    border: 1px solid transparent;
    border-radius: 14px;
    outline: 0;
    font-size: 10px;
}

.pomodoro-stats-custom b {
    padding-bottom: 13px;
    color: var(--pomodoro-text-muted);
    font-size: 10px;
    font-weight: 400;
    text-align: center;
}

.pomodoro-stats-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 142px;
    min-height: 184px;
    margin-top: 10px;
    padding: 22px 18px 22px 22px;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--pomodoro-border);
    border-radius: 26px;
    box-shadow: 0 5px 20px rgba(17, 17, 17, 0.035);
}

.pomodoro-stats-total > span {
    color: var(--pomodoro-text-muted);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.4px;
}

.pomodoro-stats-total > strong {
    display: block;
    max-width: 165px;
    margin-top: 9px;
    font-size: clamp(24px, 7vw, 30px);
    font-weight: 670;
    line-height: 1.12;
    letter-spacing: -1px;
}

.pomodoro-stats-total > small {
    display: block;
    margin-top: 11px;
    color: var(--pomodoro-text-secondary);
    font-size: 9px;
    line-height: 1.5;
}

.pomodoro-stats-pie {
    position: relative;
    display: grid;
    width: 142px;
    height: 142px;
    place-items: center;
    background: var(--stats-pie);
    border-radius: 50%;
    transform: rotate(-90deg);
}

.pomodoro-stats-pie::after {
    content: '';
    position: absolute;
    width: 78px;
    height: 78px;
    background: #fff;
    border-radius: 50%;
}

.pomodoro-stats-pie > div {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(90deg);
}

.pomodoro-stats-pie strong {
    font-size: 22px;
    font-weight: 680;
    line-height: 1;
}

.pomodoro-stats-pie span {
    margin-top: 4px;
    color: var(--pomodoro-text-muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.9px;
}

.pomodoro-stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
    gap: 10px;
}

.pomodoro-stats-mini-grid > div {
    min-height: 78px;
    padding: 15px 16px;
    background: var(--pomodoro-surface-soft);
    border-radius: 18px;
}

.pomodoro-stats-mini-grid span {
    display: block;
    color: var(--pomodoro-text-muted);
    font-size: 9px;
}

.pomodoro-stats-mini-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 640;
}

.pomodoro-stats-breakdown { margin-top: 28px; }

.pomodoro-stats-section-title {
    display: flex;
    padding: 0 2px 10px;
    align-items: center;
    justify-content: space-between;
}

.pomodoro-stats-section-title span {
    font-size: 14px;
    font-weight: 650;
}

.pomodoro-stats-section-title small {
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 680;
    letter-spacing: 1px;
}

.pomodoro-stats-task {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 12px 2px;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.pomodoro-stats-task > i {
    width: 8px;
    height: 8px;
    background: var(--stats-dot);
    border-radius: 50%;
}

.pomodoro-stats-task > span { min-width: 0; }

.pomodoro-stats-task strong {
    display: block;
    overflow: hidden;
    font-size: 12px;
    font-weight: 590;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pomodoro-stats-task small {
    display: block;
    margin-top: 4px;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
}

.pomodoro-stats-task em {
    color: var(--pomodoro-text-secondary);
    font-size: 10px;
    font-style: normal;
    white-space: nowrap;
}

.pomodoro-stats-empty {
    display: flex;
    min-height: 120px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--pomodoro-text-muted);
    text-align: center;
}

.pomodoro-stats-empty strong {
    color: var(--pomodoro-text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.pomodoro-stats-empty span {
    margin-top: 7px;
    font-size: 10px;
}

@media (max-width: 350px) {
    .pomodoro-stats-overview {
        grid-template-columns: minmax(0, 1fr) 120px;
        padding: 20px 14px 20px 18px;
    }

    .pomodoro-stats-pie {
        width: 120px;
        height: 120px;
    }
}

.pomodoro-settings-host {
    width: 100%;
    padding-bottom: 16px;
}

.pomodoro-settings-section > header small {
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 720;
    letter-spacing: 1.8px;
}

.pomodoro-settings-section {
    margin-top: 28px;
    padding: 19px;
    background: var(--pomodoro-surface);
    border: 1px solid var(--pomodoro-border);
    border-radius: 26px;
}

.pomodoro-settings-host > .pomodoro-settings-section:first-child { margin-top: 2px; }

.pomodoro-settings-section > header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.pomodoro-settings-section > header > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: var(--pomodoro-accent);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 650;
}

.pomodoro-settings-section > header strong,
.pomodoro-settings-section > header small { display: block; }
.pomodoro-settings-section > header strong { font-size: 15px; font-weight: 630; }
.pomodoro-settings-section > header small { margin-top: 3px; }

.pomodoro-settings-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px;
    gap: 4px;
    background: var(--pomodoro-surface-soft);
    border-radius: 19px;
}

.pomodoro-settings-segment button {
    min-width: 0;
    min-height: 62px;
    padding: 10px;
    color: var(--pomodoro-text-secondary);
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 15px;
}

.pomodoro-settings-segment button.is-active {
    color: var(--pomodoro-text);
    background: #fff;
    box-shadow: 0 5px 18px rgba(17, 17, 17, 0.045);
}

.pomodoro-settings-segment span,
.pomodoro-settings-segment small { display: block; }
.pomodoro-settings-segment span { font-size: 12px; font-weight: 630; }
.pomodoro-settings-segment small { margin-top: 4px; color: var(--pomodoro-text-muted); font-size: 8px; line-height: 1.4; }

.pomodoro-portrait-setting {
    margin-top: 13px;
    padding: 12px;
    background: var(--pomodoro-surface-soft);
    border-radius: 20px;
}

.pomodoro-settings-role {
    display: grid;
    width: 100%;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 0 1px 11px;
    align-items: center;
    gap: 9px;
    color: var(--pomodoro-text);
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--pomodoro-hairline);
}

.pomodoro-settings-role img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    background: #fff;
    border-radius: 50%;
}

.pomodoro-settings-role span small,
.pomodoro-settings-role span strong { display: block; }
.pomodoro-settings-role span small { color: var(--pomodoro-text-muted); font-size: 8px; }
.pomodoro-settings-role span strong { margin-top: 2px; overflow: hidden; font-size: 11px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.pomodoro-settings-role em { color: var(--pomodoro-text-secondary); font-size: 9px; font-style: normal; }

.pomodoro-portrait-preview {
    position: relative;
    display: flex;
    height: 178px;
    margin-top: 10px;
    overflow: hidden;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(180deg, #f8f9fb 0%, #e9edf1 100%);
    border-radius: 17px;
}

.pomodoro-portrait-preview::after {
    content: '';
    position: absolute;
    right: 15%;
    bottom: -32px;
    left: 15%;
    height: 70px;
    background: rgba(17, 17, 17, 0.08);
    border-radius: 50%;
    filter: blur(15px);
}

.pomodoro-portrait-preview img {
    position: relative;
    z-index: 1;
    width: 78%;
    height: 92%;
    object-fit: contain;
    object-position: center bottom;
    filter: grayscale(0.12) drop-shadow(0 10px 20px rgba(17, 17, 17, 0.09));
}

.pomodoro-portrait-preview:not(.has-image) img {
    width: 92px;
    height: 92px;
    margin-bottom: 32px;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.44;
    filter: grayscale(1);
}

.pomodoro-portrait-preview > span {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 9px;
    left: 10px;
    color: rgba(17, 17, 17, 0.48);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.pomodoro-portrait-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 9px;
    gap: 7px;
}

.pomodoro-portrait-actions label,
.pomodoro-portrait-actions button {
    display: grid;
    min-height: 38px;
    place-items: center;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 620;
}

.pomodoro-portrait-actions label { color: #fff; background: var(--pomodoro-accent); }
.pomodoro-portrait-actions label input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pomodoro-portrait-actions button { color: var(--pomodoro-text-secondary); background: #fff; border: 1px solid var(--pomodoro-border); }
.pomodoro-portrait-actions button:disabled { opacity: 0.4; }
.pomodoro-portrait-setting > p { margin: 8px 2px 0; color: var(--pomodoro-text-muted); font-size: 8px; line-height: 1.5; }

.pomodoro-noise-options { display: grid; gap: 7px; }

.pomodoro-noise-options > button {
    display: grid;
    width: 100%;
    min-height: 55px;
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 10px 12px;
    align-items: center;
    gap: 10px;
    color: var(--pomodoro-text);
    text-align: left;
    background: var(--pomodoro-surface-soft);
    border: 1px solid transparent;
    border-radius: 17px;
}

.pomodoro-noise-options > button > span {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 50%;
}

.pomodoro-noise-options > button.is-active { background: #fff; border-color: rgba(17, 17, 17, 0.13); }
.pomodoro-noise-options > button.is-active > span { background: var(--pomodoro-accent); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--pomodoro-accent); }
.pomodoro-noise-options strong,.pomodoro-noise-options small { display: block; }
.pomodoro-noise-options strong { font-size: 11px; font-weight: 620; }
.pomodoro-noise-options small { margin-top: 3px; color: var(--pomodoro-text-muted); font-size: 8px; }

.pomodoro-noise-volume { margin-top: 17px; }
.pomodoro-noise-volume > div { display: flex; align-items: center; justify-content: space-between; color: var(--pomodoro-text-secondary); font-size: 9px; }
.pomodoro-noise-volume > div strong { color: var(--pomodoro-text); font-weight: 620; }
.pomodoro-noise-volume input { width: 100%; margin: 10px 0 0; accent-color: var(--pomodoro-accent); }

.pomodoro-noise-preview {
    display: flex;
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    padding: 8px 14px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    text-align: left;
    background: var(--pomodoro-accent);
    border: 0;
    border-radius: 16px;
}

.pomodoro-noise-preview span,.pomodoro-noise-preview small { display: block; }
.pomodoro-noise-preview span { font-size: 11px; font-weight: 650; }
.pomodoro-noise-preview small { margin-top: 3px; color: rgba(255,255,255,.58); font-size: 8px; }
.pomodoro-noise-preview.is-playing { color: var(--pomodoro-text); background: var(--pomodoro-surface-soft); }
.pomodoro-noise-preview.is-playing small { color: var(--pomodoro-text-muted); }
.pomodoro-noise-preview:disabled { color: var(--pomodoro-text-muted); background: var(--pomodoro-surface-soft); }
.pomodoro-noise-preview:disabled small { color: var(--pomodoro-text-muted); }

.pomodoro-detail {
    display: flex;
    height: 100%;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
}

.pomodoro-detail-heading {
    flex: 0 0 auto;
}

.pomodoro-detail-title {
    margin: 0;
    font-size: clamp(29px, 8vw, 36px);
    font-weight: 650;
    line-height: 1.18;
    letter-spacing: -1.5px;
}

.pomodoro-detail-schedule {
    display: flex;
    margin-top: 18px;
    align-items: center;
    justify-content: space-between;
    color: var(--pomodoro-text-secondary);
    font-size: 11px;
}

.pomodoro-detail-schedule strong {
    padding: 7px 10px;
    color: var(--pomodoro-text);
    background: var(--pomodoro-surface);
    border: 1px solid var(--pomodoro-border);
    border-radius: 999px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.pomodoro-focus-clock {
    display: flex;
    min-height: 166px;
    flex: 0 0 auto;
    margin-top: clamp(26px, 5.5vh, 52px);
    padding: 5px 0 13px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.pomodoro-focus-clock.has-companion {
    margin-top: clamp(8px, 2vh, 18px);
}

.pomodoro-focus-person {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.pomodoro-companion-bubble {
    position: relative;
    z-index: 2;
    display: none;
    width: min(calc(100% - 76px), 220px);
    min-height: 58px;
    margin: 0 0 8px;
    padding: 11px 13px 9px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    color: var(--pomodoro-text);
    text-align: left;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.09);
    border-radius: 17px 17px 17px 5px;
    box-shadow: 0 10px 30px rgba(17, 17, 17, 0.07);
    opacity: 0;
    pointer-events: none;
    transform: translateX(clamp(16px, 6vw, 26px)) translateY(6px) scale(0.96);
    transform-origin: center bottom;
    transition: opacity 220ms ease, transform 220ms ease;
    -webkit-tap-highlight-color: transparent;
}

.pomodoro-companion-bubble::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: calc(50% - 26px);
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(17, 17, 17, 0.09);
    transform: skewY(-38deg);
}

.pomodoro-companion-bubble.is-visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(clamp(16px, 6vw, 26px)) translateY(0) scale(1);
    animation: pomodoro-companion-enter 220ms ease both;
}

.pomodoro-companion-bubble:active { transform: scale(0.97); }

.pomodoro-companion-bubble > span {
    width: 100%;
    font-size: 11px;
    font-weight: 560;
    line-height: 1.45;
    letter-spacing: -0.1px;
    overflow-wrap: anywhere;
}

.pomodoro-companion-bubble small {
    color: var(--pomodoro-text-muted);
    font-size: 7px;
    font-weight: 650;
    letter-spacing: 0.8px;
}

.pomodoro-companion-bubble.is-loading > span {
    color: var(--pomodoro-text-secondary);
    animation: pomodoro-companion-pulse 1.4s ease-in-out infinite;
}

@keyframes pomodoro-companion-pulse {
    0%, 100% { opacity: 0.46; }
    50% { opacity: 1; }
}

@keyframes pomodoro-companion-enter {
    from { opacity: 0; transform: translateX(clamp(16px, 6vw, 26px)) translateY(6px) scale(0.97); }
    to { opacity: 1; transform: translateX(clamp(16px, 6vw, 26px)) translateY(0) scale(1); }
}

.pomodoro-focus-person img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    background: var(--pomodoro-surface-soft);
    border: 1px solid var(--pomodoro-border);
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.08);
}

.pomodoro-focus-person > span {
    margin-top: 8px;
    color: var(--pomodoro-text-secondary);
    font-size: 11px;
    font-weight: 560;
}

.pomodoro-detail.is-portrait-detail {
    position: absolute;
    inset: 0;
    isolation: isolate;
    padding: calc(var(--top-safe-inset, 44px) + 62px) 20px calc(12px + var(--content-safe-bottom, 0px));
}

.pomodoro-portrait-stage {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    color: #fff;
    background: #151515;
}

.pomodoro-portrait-stage-image {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.pomodoro-portrait-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.06) 23%, rgba(0, 0, 0, 0.02) 52%, rgba(0, 0, 0, 0.44) 82%, rgba(0, 0, 0, 0.7) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 34%, transparent 70%, rgba(0, 0, 0, 0.1));
}

.pomodoro-portrait-time {
    position: absolute;
    z-index: 2;
    top: calc(var(--top-safe-inset, 44px) + 9px);
    right: 18px;
    display: flex;
    min-width: 88px;
    height: 42px;
    padding: 6px 11px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    color: #fff;
    background: rgba(12, 12, 12, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pomodoro-portrait-time strong {
    color: inherit;
    font-size: 15px;
    font-weight: 610;
    line-height: 1;
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
}

.pomodoro-portrait-time span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 7px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0.8px;
}

.pomodoro-portrait-caption {
    position: absolute;
    z-index: 3;
    top: 64%;
    left: 50%;
    width: min(calc(100% - 54px), 330px);
    min-height: 0;
    margin: 0;
    padding: 9px 14px 10px;
    align-items: center;
    color: #fff;
    text-align: center;
    background: rgba(10, 10, 10, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translate(-50%, calc(-50% + 6px));
    transform-origin: center;
    transition: opacity 180ms ease, visibility 0s linear;
}

.pomodoro-portrait-caption::before,
.pomodoro-portrait-caption small { display: none; }

.pomodoro-portrait-caption.is-visible {
    transform: translate(-50%, -50%);
    animation: pomodoro-portrait-caption-enter 220ms ease both;
}

.pomodoro-portrait-caption > span {
    font-size: 14px;
    font-weight: 540;
    line-height: 1.62;
    letter-spacing: 0.1px;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.38);
}

.pomodoro-detail.is-portrait-detail.is-chatting .pomodoro-portrait-caption {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.pomodoro-portrait-stage > .pomodoro-focus-guide-step {
    position: absolute;
    z-index: 2;
    top: calc(var(--top-safe-inset, 44px) + 58px);
    right: 20px;
    max-width: 150px;
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    text-align: right;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
}

.pomodoro-portrait-stage > .pomodoro-focus-next-step {
    position: absolute;
    z-index: 3;
    right: 24px;
    bottom: calc(88px + var(--content-safe-bottom, 0px));
    left: 24px;
    width: auto;
    margin: 0;
    background: rgba(10, 10, 10, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@keyframes pomodoro-portrait-caption-enter {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 6px)); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.pomodoro-focus-clock strong {
    margin-top: 13px;
    padding: 0 2px 3px;
    color: var(--pomodoro-timer-color);
    font-size: clamp(48px, 15vw, 64px);
    font-weight: 520;
    line-height: 1.12;
    letter-spacing: -4px;
    font-variant-numeric: tabular-nums;
}

.pomodoro-focus-clock-status {
    margin-top: 7px;
    color: var(--pomodoro-text-secondary);
    font-size: 11px;
}

.pomodoro-focus-guide-step {
    max-width: 280px;
    margin-top: 9px;
    overflow: hidden;
    color: var(--pomodoro-text-muted);
    font-size: 8px;
    font-weight: 680;
    letter-spacing: 0.8px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pomodoro-focus-next-step {
    display: grid;
    width: min(100%, 292px);
    min-height: 54px;
    grid-template-columns: minmax(0, 1fr) 18px;
    margin-top: 16px;
    padding: 10px 15px;
    align-items: center;
    column-gap: 10px;
    color: #fff;
    text-align: left;
    background: var(--pomodoro-control-color);
    border: 0;
    border-radius: 18px;
}

.pomodoro-focus-next-step > span {
    grid-column: 1;
    color: rgba(255, 255, 255, 0.58);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1.1px;
}

.pomodoro-focus-next-step > strong {
    grid-column: 1;
    margin-top: 3px;
    padding: 0;
    overflow: hidden;
    color: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pomodoro-focus-next-step svg {
    width: 18px;
    height: 18px;
    grid-column: 2;
    grid-row: 1 / span 2;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-detail-actions {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    transition: opacity 220ms ease, transform 220ms ease;
}

.pomodoro-detail-controls {
    position: relative;
    min-height: 50px;
    margin-top: 6px;
    flex: 0 0 50px;
}

.pomodoro-detail.is-portrait-detail .pomodoro-chat-messages {
    position: relative;
    z-index: 3;
    min-height: 0;
    max-height: none;
    padding: clamp(150px, 24vh, 220px) 2px 18px;
    flex: 1 1 auto;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.pomodoro-detail.is-portrait-detail.is-chatting .pomodoro-chat-messages {
    opacity: 1;
    pointer-events: auto;
}

.pomodoro-detail.is-portrait-detail .pomodoro-chat-bubble span {
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.58);
}

.pomodoro-detail.is-portrait-detail .pomodoro-chat-bubble.is-me span {
    color: #fff;
}

.pomodoro-detail.is-portrait-detail .pomodoro-detail-controls {
    z-index: 4;
    margin-top: 0;
}

.pomodoro-detail.is-portrait-detail .pomodoro-timer-primary {
    color: #151515;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pomodoro-detail.is-portrait-detail .pomodoro-timer-secondary {
    color: #fff;
    background: rgba(12, 12, 12, 0.36);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pomodoro-detail.is-portrait-detail .pomodoro-chat-status {
    color: rgba(255, 255, 255, 0.68);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.pomodoro-detail.is-chatting .pomodoro-detail-actions {
    opacity: 0;
    pointer-events: none;
    transform: translateY(7px);
}

.pomodoro-timer-primary,
.pomodoro-timer-secondary {
    display: grid;
    width: 46px;
    height: 46px;
    min-height: 0;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    transition: transform 160ms ease, opacity 160ms ease;
}

.pomodoro-timer-primary {
    color: #fff;
    background: var(--pomodoro-control-color);
    border: 0;
}

.pomodoro-timer-secondary {
    color: var(--pomodoro-control-color);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--pomodoro-border);
}

.pomodoro-timer-primary svg,
.pomodoro-timer-secondary svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-timer-primary:active,
.pomodoro-timer-secondary:active { transform: scale(0.94); }

.pomodoro-bottom-nav-wrap {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 10px 18px calc(14px + var(--content-safe-bottom, 0px));
    pointer-events: none;
}

.pomodoro-todo-app.is-focus-detail .pomodoro-bottom-nav-wrap {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}

.pomodoro-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(100%, 412px);
    padding: 5px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 17, 17, 0.07);
    border-radius: 999px;
    box-shadow: 0 12px 34px rgba(17, 17, 17, 0.11);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    pointer-events: auto;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.pomodoro-nav-item {
    display: flex;
    min-width: 0;
    height: 48px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--pomodoro-text-muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 590;
    white-space: nowrap;
    transition: color 200ms ease, background-color 200ms ease, transform 160ms ease;
    -webkit-tap-highlight-color: transparent;
}

.pomodoro-nav-item svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-nav-item.is-active {
    color: #fff;
    background: var(--pomodoro-accent);
}

.pomodoro-nav-item:active { transform: scale(0.97); }

.pomodoro-event-modal {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 220ms ease;
}

.pomodoro-event-modal[hidden] { display: none; }
.pomodoro-event-modal.is-open { opacity: 1; }

.pomodoro-modal-backdrop {
    position: absolute;
    inset: 0;
    padding: 0;
    background: rgba(20, 22, 26, 0.28);
    border: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.pomodoro-event-sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    max-height: calc(100% - var(--top-safe-inset, 44px) - 12px);
    padding: 10px 20px calc(22px + var(--content-safe-bottom, 0px));
    overflow-y: auto;
    background: var(--pomodoro-surface);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -12px 44px rgba(17, 17, 17, 0.1);
    transform: translateY(28px);
    transition: transform 240ms ease;
}

.pomodoro-event-modal.is-open .pomodoro-event-sheet { transform: translateY(0); }

.pomodoro-sheet-handle {
    width: 38px;
    height: 4px;
    margin: 0 auto 19px;
    background: var(--pomodoro-surface-muted);
    border-radius: 999px;
}

.pomodoro-sheet-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.pomodoro-sheet-heading h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 650;
    letter-spacing: -0.7px;
}

.pomodoro-sheet-heading > button {
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--pomodoro-text-secondary);
    background: var(--pomodoro-surface-soft);
    border: 0;
    border-radius: 50%;
    font-size: 21px;
    font-weight: 300;
}

.pomodoro-form-contact {
    display: flex;
    min-height: 46px;
    padding: 8px 12px;
    align-items: center;
    gap: 10px;
    color: var(--pomodoro-text-secondary);
    background: var(--pomodoro-surface-soft);
    border-radius: 16px;
    font-size: 11px;
}

.pomodoro-form-contact img {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 50%;
}

.pomodoro-form-contact strong { color: var(--pomodoro-text); }

.pomodoro-field {
    display: flex;
    margin-top: 14px;
    flex-direction: column;
    gap: 8px;
}

.pomodoro-field > span:first-child,
.pomodoro-fieldset legend {
    color: var(--pomodoro-text-secondary);
    font-size: 11px;
    font-weight: 600;
}

.pomodoro-field > input,
.pomodoro-duration-input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    color: var(--pomodoro-text);
    background: var(--pomodoro-surface-soft);
    border: 1px solid transparent;
    border-radius: 18px;
    outline: none;
    font-size: 14px;
}

.pomodoro-field > input:focus,
.pomodoro-duration-input:focus-within {
    background: #fff;
    border-color: rgba(17, 17, 17, 0.22);
}

.pomodoro-fieldset {
    min-width: 0;
    margin: 18px 0 0;
    padding: 0;
    border: 0;
}

.pomodoro-fieldset legend { margin-bottom: 8px; }

.pomodoro-mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.pomodoro-mode-options label { min-width: 0; }
.pomodoro-mode-options input { position: absolute; opacity: 0; pointer-events: none; }

.pomodoro-mode-options span {
    display: flex;
    min-height: 66px;
    padding: 13px 14px;
    flex-direction: column;
    justify-content: center;
    color: var(--pomodoro-text-secondary);
    background: var(--pomodoro-surface-soft);
    border: 1px solid transparent;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 620;
}

.pomodoro-mode-options small {
    margin-top: 4px;
    color: var(--pomodoro-text-muted);
    font-size: 9px;
    font-weight: 450;
}

.pomodoro-mode-options input:checked + span {
    color: #fff;
    background: var(--pomodoro-accent);
}

.pomodoro-mode-options input:checked + span small { color: rgba(255, 255, 255, 0.62); }

.pomodoro-duration-field[hidden] { display: none; }

.pomodoro-repeat-settings[hidden],
.pomodoro-weekday-field[hidden] { display: none; }

.pomodoro-repeat-settings {
    margin-top: 12px;
    padding: 2px 12px 14px;
    background: rgba(240, 243, 247, 0.72);
    border: 1px solid rgba(17, 17, 17, 0.045);
    border-radius: 22px;
}

.pomodoro-repeat-settings .pomodoro-fieldset {
    margin-top: 14px;
}

.pomodoro-repeat-frequency span {
    min-height: 56px;
}

.pomodoro-weekday-options {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.pomodoro-weekday-options label {
    position: relative;
    min-width: 0;
}

.pomodoro-weekday-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pomodoro-weekday-options span {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    place-items: center;
    color: var(--pomodoro-text-secondary);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--pomodoro-border);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 620;
}

.pomodoro-weekday-options input:checked + span {
    color: #fff;
    background: var(--pomodoro-accent);
    border-color: var(--pomodoro-accent);
}

.pomodoro-repeat-until-field > input {
    background: rgba(255, 255, 255, 0.82);
}

.pomodoro-repeat-hint {
    display: block;
    margin: 9px 2px 0;
    color: var(--pomodoro-text-muted);
    font-size: 9px;
    line-height: 1.5;
}

.pomodoro-duration-input {
    display: flex;
    align-items: center;
}

.pomodoro-duration-input input {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: var(--pomodoro-text);
    background: transparent;
    border: 0;
    outline: 0;
    appearance: textfield;
    -moz-appearance: textfield;
}

.pomodoro-duration-input input::-webkit-inner-spin-button,
.pomodoro-duration-input input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.pomodoro-duration-input em {
    flex: 0 0 auto;
    margin-left: 8px;
    color: var(--pomodoro-text-muted);
    font-size: 11px;
    font-style: normal;
    white-space: nowrap;
}

.pomodoro-sheet-actions {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 9px;
    margin-top: 24px;
}

.pomodoro-sheet-actions button {
    min-height: 52px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
}

.pomodoro-sheet-actions button:first-child {
    color: var(--pomodoro-text-secondary);
    background: var(--pomodoro-surface-soft);
    border: 0;
}

.pomodoro-sheet-actions button:last-child {
    color: #fff;
    background: var(--pomodoro-accent);
    border: 0;
}

.pomodoro-skin-sheet {
    padding-bottom: calc(24px + var(--content-safe-bottom, 0px));
}

.pomodoro-skin-section > span,
.pomodoro-skin-color-field > span {
    display: block;
    margin-bottom: 9px;
    color: var(--pomodoro-text-secondary);
    font-size: 11px;
    font-weight: 600;
}

.pomodoro-skin-swatches {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pomodoro-skin-swatches > button,
.pomodoro-skin-color {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    background: var(--pomodoro-swatch, #fff);
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 50%;
}

.pomodoro-skin-color input {
    position: absolute;
    inset: -8px;
    width: 58px;
    height: 58px;
    opacity: 0;
    cursor: pointer;
}

.pomodoro-skin-color span {
    color: var(--pomodoro-text-secondary);
    font-size: 19px;
    font-weight: 300;
    pointer-events: none;
}

.pomodoro-skin-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 14px;
    gap: 8px;
}

.pomodoro-skin-upload-row label,
.pomodoro-skin-upload-row button,
.pomodoro-skin-reset {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--pomodoro-text);
    background: var(--pomodoro-surface-soft);
    border: 0;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

.pomodoro-skin-upload-row label { overflow: hidden; }
.pomodoro-skin-upload-row label input { position: absolute; opacity: 0; pointer-events: none; }
.pomodoro-skin-upload-row button { padding: 0 14px; color: var(--pomodoro-text-secondary); }

.pomodoro-skin-section > small {
    display: block;
    min-height: 15px;
    margin-top: 8px;
    color: var(--pomodoro-text-muted);
    font-size: 9px;
    line-height: 1.55;
}

.pomodoro-skin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
    gap: 10px;
}

.pomodoro-skin-color-field {
    position: relative;
    display: grid;
    min-height: 74px;
    padding: 13px 14px;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    background: var(--pomodoro-surface-soft);
    border-radius: 18px;
}

.pomodoro-skin-color-field > span { margin: 0; }

.pomodoro-skin-color-field input {
    width: 34px;
    height: 34px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 50%;
}

.pomodoro-skin-color-field input::-webkit-color-swatch-wrapper { padding: 0; }
.pomodoro-skin-color-field input::-webkit-color-swatch { border: 1px solid rgba(17, 17, 17, 0.09); border-radius: 50%; }

.pomodoro-skin-reset {
    width: 100%;
    margin-top: 16px;
    color: var(--pomodoro-text-secondary);
    background: transparent;
    border: 1px solid var(--pomodoro-border);
}

.pomodoro-contact-sheet { padding-bottom: calc(28px + var(--content-safe-bottom, 0px)); }

.pomodoro-contact-list {
    display: flex;
    max-height: min(420px, 56vh);
    flex-direction: column;
    overflow-y: auto;
}

.pomodoro-contact-option {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    min-height: 70px;
    padding: 10px 4px;
    align-items: center;
    gap: 12px;
    color: var(--pomodoro-text);
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--pomodoro-border);
}

.pomodoro-contact-option:last-child { border-bottom: 0; }

.pomodoro-contact-option img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
}

.pomodoro-contact-option span,
.pomodoro-contact-option strong,
.pomodoro-contact-option small { display: block; }

.pomodoro-contact-option strong { font-size: 14px; font-weight: 620; }

.pomodoro-contact-option small {
    margin-top: 4px;
    color: var(--pomodoro-text-muted);
    font-size: 10px;
}

.pomodoro-contact-option i {
    color: var(--pomodoro-text-muted);
    font-size: 16px;
    font-style: normal;
    text-align: center;
}

.pomodoro-contact-option.is-selected i { color: var(--pomodoro-text); }

.pomodoro-contact-empty,
.pomodoro-chat-empty {
    display: flex;
    min-height: 140px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--pomodoro-text-muted);
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.pomodoro-contact-empty strong {
    margin-bottom: 5px;
    color: var(--pomodoro-text);
    font-size: 14px;
}

.pomodoro-chat-messages {
    min-height: 0;
    max-height: none;
    padding: 10px 2px 18px;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    background: transparent;
    scrollbar-width: none;
}

.pomodoro-chat-messages::-webkit-scrollbar { display: none; }

.pomodoro-chat-bubble {
    display: flex;
    margin: 0 0 13px;
}

.pomodoro-chat-bubble span {
    max-width: 78%;
    padding: 0;
    color: var(--pomodoro-text-secondary);
    background: transparent;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.pomodoro-chat-bubble.is-me { justify-content: flex-end; }

.pomodoro-chat-bubble.is-me span {
    color: var(--pomodoro-text);
    font-weight: 560;
    text-align: right;
}

.pomodoro-chat-status {
    position: absolute;
    right: 12px;
    bottom: 62px;
    left: 12px;
    min-height: 14px;
    margin: 0 0 3px;
    padding: 0;
    color: var(--pomodoro-text-muted);
    font-size: 9px;
    text-align: right;
}

.pomodoro-inline-composer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(7px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.pomodoro-detail.is-chatting .pomodoro-inline-composer {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.pomodoro-chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    width: 100%;
    min-height: 50px;
    padding: 5px;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--pomodoro-border);
    border-radius: 999px;
    box-shadow: 0 8px 26px rgba(17, 17, 17, 0.07);
}

.pomodoro-chat-composer input {
    width: 100%;
    height: 38px;
    min-width: 0;
    padding: 0 12px;
    color: var(--pomodoro-text);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 12px;
}

.pomodoro-chat-composer button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    color: #fff;
    background: var(--pomodoro-accent);
    border: 0;
    border-radius: 50%;
}

.pomodoro-chat-composer button:disabled { opacity: 0.42; }

.pomodoro-chat-composer button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pomodoro-chat-composer button.is-pending svg { animation: pomodoro-send-pulse 1.2s ease-in-out infinite; }

@keyframes pomodoro-send-pulse {
    0%, 100% { opacity: 0.38; }
    50% { opacity: 1; }
}

.pomodoro-nav-item:focus-visible,
.pomodoro-back:focus-visible,
.pomodoro-add:focus-visible,
.pomodoro-event-card:focus-visible,
.pomodoro-event-sheet button:focus-visible {
    outline: 2px solid var(--pomodoro-text);
    outline-offset: 2px;
}

@media (max-width: 350px) {
    .pomodoro-bottom-nav-wrap { padding-inline: 12px; }
    .pomodoro-nav-item {
        gap: 2px;
        padding-inline: 3px;
        font-size: 9px;
    }
    .pomodoro-page { padding-inline: 16px; }
    .pomodoro-event-card { padding-left: 52px; }
    .pomodoro-event-card::after { left: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    .pomodoro-page.is-active,
    .pomodoro-focus-clock.is-running::before { animation: none; }
    .pomodoro-nav-item,
    .pomodoro-event-card,
    .pomodoro-event-modal,
    .pomodoro-event-sheet { transition: none; }
}
