.lead {
    margin: 28px 0 18px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.steps {
    display: flex;
    gap: 8px;
    margin: 0 0 24px;
}

#goal-form > section {
    padding-top: 4px;
}

#goal-error:not([hidden]) {
    margin: -8px 0 16px;
}

.steps .step {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    border-radius: 0;
    padding: 4px 0 0;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.steps .step:disabled {
    opacity: 1;
    color: var(--muted);
}

.steps .step.is-on,
.steps .step.is-done {
    color: var(--ink);
}

.step-label {
    display: block;
    text-align: center;
    line-height: 1.2;
}

.step-track {
    display: block;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line);
}

.step-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--ink);
    transform-origin: left center;
    transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.steps .step.is-fill .step-fill,
.steps .step.is-done .step-fill {
    width: 100%;
}

label,
.field-hint {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.field-label + .field-hint {
    margin-top: -8px;
}

.goal-share-note {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.45;
}

.goal-share-video {
    margin: 0 0 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #111;
}

.goal-share-video video {
    display: block;
    width: 100%;
    max-height: 70vh;
    vertical-align: top;
}

.field-label {
    display: block;
    margin: 16px 0 8px;
    font-size: 14px;
}

input[type="text"],
input[type="number"],
input[type="file"],
textarea,
.datetime-display,
.select-trigger {
    display: block;
    width: 100%;
    margin-bottom: 4px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

textarea {
    min-height: 112px;
    resize: vertical;
    line-height: 1.45;
}

.hint-field {
    margin-top: 16px;
}

.hint-field > label,
.hint-field .label-line {
    margin-top: 0;
}

.label-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
}

.label-line label {
    margin: 0;
}

.hint-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
}

.hint-button[aria-expanded="true"],
.hint-button:hover {
    color: var(--ink);
    background: #f3f2ef;
}

.hint-sheet {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background: rgba(26, 25, 23, 0.36);
    touch-action: none;
}

.hint-sheet[hidden] {
    display: none;
}

.hint-sheet-panel {
    width: min(100%, 420px);
    padding: 20px 16px 16px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(26, 25, 23, 0.18);
    touch-action: none;
}

.hint-sheet-panel.is-dragging {
    transition: none;
}

.hint-sheet-handle {
    display: none;
}

@media (max-width: 720px) {
    .hint-sheet {
        place-items: end center;
        padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .hint-sheet-panel {
        width: min(100%, 530px);
        padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        border-radius: 24px 24px 20px 20px;
        box-shadow: 0 -12px 40px rgba(26, 25, 23, 0.16);
    }

    .hint-sheet-handle {
        display: block;
        width: 40px;
        height: 4px;
        margin: 6px auto 14px;
        border-radius: 999px;
        background: #d0d0d0;
    }
}

.hint-sheet-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hint-sheet-text {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink);
}

.hint-sheet-close {
    width: 100%;
    margin-top: 18px;
}

body.hint-open {
    overflow: hidden;
}

.select {
    position: relative;
    margin-bottom: 4px;
}

.select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.select-trigger {
    margin-bottom: 0;
    padding-right: 40px;
    border-radius: 12px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%238a8a8a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    text-align: left;
    cursor: pointer;
}

.select-trigger.is-empty { color: var(--muted); }

.select.is-open .select-trigger {
    border-color: var(--ink);
}

.select-sheet {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    padding: 0;
    background: transparent;
}

.select-sheet[hidden] { display: none; }

.select-menu {
    max-height: min(280px, 50vh);
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(26, 25, 23, 0.12);
}

.select-option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.select-option.is-empty { color: var(--muted); }

.select-option:hover,
.select-option:focus-visible {
    background: #f6f6f6;
    outline: none;
}

.select-option.is-on {
    background: var(--ink);
    color: #fff;
}

body.select-open { overflow: hidden; }

@media (max-width: 720px) {
    .select-sheet {
        position: fixed;
        inset: 0;
        z-index: 40;
        display: grid;
        place-items: end stretch;
        background: rgba(26, 25, 23, 0.36);
    }

    .select-menu {
        max-height: min(70dvh, 480px);
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -12px 40px rgba(26, 25, 23, 0.16);
    }

    .select-option {
        padding: 14px 12px;
        font-size: 16px;
    }
}

input[type="file"] {
    padding: 10px 14px;
    font-size: 14px;
}

.datetime {
    position: relative;
    margin-bottom: 4px;
}

.datetime-display {
    margin-bottom: 0;
    padding-right: 48px;
}

button.datetime-open {
    position: absolute;
    top: 6px;
    right: 6px;
    bottom: 6px;
    display: grid;
    width: 36px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
}

button.datetime-open:hover {
    color: var(--ink);
    background: #f6f6f6;
}

.datetime-popover {
    position: fixed;
    z-index: 9999;
    box-sizing: border-box;
}

.datetime-popover[hidden] { display: none !important; }

.datetime-popover.is-mobile {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    background: #fff;
    max-width: 100%;
}

.datetime-popover.is-mobile.is-dragging-y,
.datetime-popover.is-mobile.is-closing {
    background: #fff;
    will-change: transform;
}

.datetime-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(26, 25, 23, 0.12);
    overflow: hidden;
}

.datetime-popover.is-mobile .datetime-panel {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    background: #fff;
}

.datetime-handle {
    display: none;
}

.datetime-popover.is-mobile .datetime-handle {
    display: block;
    flex: none;
    width: 40px;
    height: 4px;
    margin: 2px auto 14px;
    border-radius: 999px;
    background: #d0d0d0;
}

.datetime-sheet {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 14px 14px 0;
    background: #fff;
}

.datetime-popover.is-mobile .datetime-sheet {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: max(8px, env(safe-area-inset-top, 0px)) 12px 12px;
    overflow: hidden;
}

.datetime-popover.is-mobile .datetime-head {
    flex: none;
    margin-bottom: 10px;
}

.datetime-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    touch-action: pan-y;
}

.datetime-track {
    position: relative;
    width: 100%;
    max-width: 100%;
    will-change: transform;
}

.datetime-slide {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0;
    pointer-events: none;
}

.datetime-slide[data-offset="-1"],
.datetime-slide[data-offset="1"] {
    position: absolute;
    top: 0;
    left: 0;
}

.datetime-slide[data-offset="-1"] {
    transform: translate3d(-100%, 0, 0);
}

.datetime-slide[data-offset="1"] {
    transform: translate3d(100%, 0, 0);
}

.datetime-slide.is-active {
    position: relative;
    pointer-events: auto;
    transform: none;
}

.datetime-popover.is-mobile .datetime-week,
.datetime-popover.is-mobile .datetime-grid {
    flex: none;
    width: 100%;
    max-width: 100%;
    gap: 2px;
    box-sizing: border-box;
}

.datetime-popover.is-mobile .datetime-viewport {
    flex: none;
    touch-action: none;
}

.datetime-popover.is-mobile .datetime-week span {
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 11px;
}

.datetime-popover.is-mobile .datetime-day {
    aspect-ratio: auto;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 15px;
}

.datetime-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding: 0 14px 14px;
}

.datetime-actions button { flex: 1 1 auto; }

.datetime-popover.is-mobile .datetime-actions {
    flex: none;
    z-index: 2;
    gap: 10px;
    margin-top: 0;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: #fff;
}

.datetime-popover.is-mobile .datetime-actions button {
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
}

.datetime-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.datetime-title {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.03em;
    text-transform: capitalize;
}

.datetime-nav {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border-radius: 12px;
    background: #f3f3f3;
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
}

.datetime-week,
.datetime-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.datetime-week {
    margin-bottom: 6px;
}

.datetime-week span {
    display: grid;
    min-width: 0;
    height: 28px;
    place-items: center;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.datetime-day {
    display: grid;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.datetime-day.is-empty {
    pointer-events: none;
    visibility: hidden;
}

.datetime-day.is-today {
    box-shadow: inset 0 0 0 1px var(--line);
}

.datetime-day.is-selected,
.datetime-day.is-selected:hover {
    background: var(--ink);
    color: #fff;
}

.datetime-day:hover { background: #f3f3f3; }

html.datetime-open,
body.datetime-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.chips-visibility {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.chip {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 35px;
    height: auto;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.chips-visibility .chip span {
    width: 100%;
}

.chip input:checked + span {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.chip input:focus-visible + span {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

#video { display: none; }

.studio { margin-top: 18px; }

.studio-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #f7f7f7;
    text-align: center;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.studio.is-over .studio-idle {
    border-color: var(--ink);
    background: #fff;
}

.studio-mark {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(26, 25, 23, 0.04), 0 10px 24px rgba(26, 25, 23, 0.06);
}

.studio-title {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.03em;
}

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

.studio-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 18px;
}

button.studio-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 13px;
    font-weight: 600;
}

button.studio-tile:hover,
button.studio-tile:focus-visible {
    background: #fff;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
}

button.studio-tile:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.studio-live {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #111;
}

.studio.is-over .studio-live {
    box-shadow: inset 0 0 0 2px #fff;
}

.studio-media {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
}

#camera.studio-media { object-fit: cover; }

.studio-rec,
.studio-percent,
.studio-progress { z-index: 2; }

.studio-rec { position: absolute; inset: 0; }

.rec-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px 0 10px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.55);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(12px);
}

.rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.65);
    animation: rec-pulse 1.4s ease-out infinite;
}

@keyframes rec-pulse {
    70% { box-shadow: 0 0 0 7px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .rec-dot { animation: none; }
}

button.rec-stop {
    position: absolute;
    bottom: 16px;
    left: 50%;
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 3px #fff;
    transform: translateX(-50%);
}

button.rec-stop span {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #ff3b30;
}

button.rec-stop:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.studio-percent {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.55);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    backdrop-filter: blur(12px);
}

.studio-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.28);
}

.studio-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
    transition: width 160ms linear;
}

.studio-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.studio-meta { min-width: 0; flex: 1 1 auto; }

.studio-name,
.studio-state { margin: 0; }

.studio-name {
    overflow: hidden;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-state {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.studio-state.is-ready { color: var(--ink); }

.studio-state.is-ready::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: -3px;
    border-radius: 50%;
    background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none'%3E%3Cpath d='M3 6.2 5.1 8.4 9 3.8' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.studio-actions {
    display: flex;
    flex: none;
    gap: 8px;
}

@media (max-width: 420px) {
    .studio-status { flex-wrap: wrap; }
    .studio-actions { width: 100%; }
    button.studio-link { flex: 1 1 auto; }
}

button.studio-link {
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f3f3;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

button.studio-link:hover,
button.studio-link:focus-visible {
    background: #ececec;
    color: var(--ink);
}

.studio-idle[hidden],
.studio-live[hidden],
.studio-media[hidden],
.studio-rec[hidden],
.studio-percent[hidden],
.studio-progress[hidden],
.studio-status[hidden] { display: none; }

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.form-actions button.is-danger {
    border: 0;
    background: #9a3b2f;
    color: #fff;
}

.form-actions button.is-danger:hover {
    background: #7e2f25;
}

@media (max-width: 540px) {
    html {
        scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .wrap {
        padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    }

    .form-actions {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 20;
        margin-top: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--line);
        background: #fff;
    }

    .form-actions button {
        flex: 1 1 0;
        min-height: 48px;
    }
}

button.quiet {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line);
}

.summary { margin: 18px 0 0; }

.summary div {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.summary dt {
    flex: 0 0 42%;
    color: var(--muted);
}

.summary dd { margin: 0; }

.error[hidden],
.note[hidden],
section[hidden] { display: none; }

.error {
    margin: 14px 0 0;
    color: #9a3b2f;
    font-size: 14px;
}

.goal-list-empty {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.goal-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.goal-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.goal-list-item-body {
    flex: 1 1 auto;
    min-width: 0;
}

.goal-list-item-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.goal-list-edit {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--muted);
    text-decoration: none;
}

.goal-list-edit:hover {
    color: var(--ink);
}

.goal-list-remove {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #9a3b2f;
    text-decoration: none;
}

.goal-list-remove:hover {
    color: #7e2f25;
}

a.goal-list-item-title {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

a.goal-list-item-title:hover {
    color: #000;
}

.goal-list-item-meta,
.goal-list-item-stats {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.goal-list-item-stats {
    margin-top: 4px;
    font-size: 12px;
}

.goal-status {
    font-weight: 600;
}

.goal-status.is-draft {
    color: #6f6f6f;
}

.goal-status.is-vote {
    color: #5e9c1c;
}

.goal-status.is-scheduled,
.goal-status.is-active {
    color: var(--ink);
}

html:fullscreen {
    background: #000;
}

.goal-video-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    flex-direction: column;
    background: transparent;
    touch-action: none;
    overscroll-behavior: none;
}

.goal-video-modal[hidden] {
    display: none !important;
}

.goal-video-modal-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    will-change: transform;
}

.goal-video-modal-bar {
    display: grid;
    flex: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: max(10px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px 12px;
    color: #fff;
    touch-action: none;
}

.goal-video-modal-tools,
.goal-photo-modal-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.goal-modal-actions .goal-modal-watch-slot {
    display: contents;
}

.goal-modal-actions .goal-modal-watch-slot:empty {
    display: none;
}

.goal-modal-actions .feed-goal-watch-wrap {
    position: relative;
    align-self: flex-end;
}

.goal-modal-actions .feed-goal-watch {
    width: 40px;
    height: 40px;
    margin: 0;
    border: 0;
    background: rgba(20, 20, 19, 0.55);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.goal-modal-actions .feed-goal-watch.is-on {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.goal-modal-actions .feed-goal-watch-menu {
    top: auto;
    right: calc(100% + 8px);
    bottom: 0;
}

.goal-video-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.goal-video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.goal-video-modal-head {
    min-width: 0;
    padding-top: 0;
}

.goal-video-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.goal-video-modal-counter {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    line-height: 1.3;
}

.goal-video-modal-stage {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
    background: #000;
    touch-action: none;
    isolation: isolate;
}

.goal-video-modal-dismiss {
    display: none;
}

.goal-video-modal-reel {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.goal-video-modal-series {
    position: absolute;
    top: max(10px, env(safe-area-inset-top, 0px));
    right: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    gap: 4px;
    align-items: center;
    pointer-events: none;
}

.goal-video-modal-series[hidden] {
    display: none !important;
}

.goal-video-modal-series span {
    flex: 1 1 0;
    min-width: 0;
    height: 4px;
    border-radius: 999px;
    background: rgba(150, 150, 146, 0.86);
}

.goal-video-modal-series span.is-on {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 0 1px rgba(20, 20, 19, 0.28);
}

.goal-video-modal-series span.is-new {
    position: relative;
}

.goal-video-modal-series span.is-new::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    transform: translateX(-50%);
}

.goal-video-modal-clip {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    background: #000;
    object-fit: contain;
}

.goal-video-modal-clip[hidden] {
    display: none !important;
}

.goal-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0;
    padding: 0 0 0 4px;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 20, 19, 0.45);
    color: #fff;
    transform: translate(-50%, -50%);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.goal-video-play[hidden] {
    display: none !important;
}

.goal-video-play svg {
    display: block;
}

.goal-video-scrub {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    height: 28px;
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    touch-action: none;
    cursor: pointer;
}

.goal-video-scrub[hidden] {
    display: none !important;
}

.goal-video-time {
    position: absolute;
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 4;
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.goal-video-time[hidden] {
    display: none !important;
}

.goal-video-scrub-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
}

.goal-video-scrub-done {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
}

.goal-video-scrub-shade {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: block;
    width: 0;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset -1px 0 0 #fff;
    pointer-events: none;
    opacity: 0;
}

.goal-video-scrub-shade[hidden] {
    display: none !important;
}

.goal-video-modal-stage.is-scrubbing .goal-video-scrub-shade,
.goal-video-modal-reel.is-scrubbing .goal-video-scrub-shade {
    opacity: 1;
}

.goal-video-modal-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(88px, calc(16px + env(safe-area-inset-bottom, 0px)));
    overflow: hidden;
    touch-action: none;
}

.goal-video-modal-grid .photo-matrix__cell {
    touch-action: none;
}

.goal-video-modal-grid[hidden] {
    display: none !important;
}

.goal-video-modal-grid .photo-matrix {
    width: 100%;
    max-width: none;
    max-height: min(82vh, 720px);
    min-height: 0;
    gap: 2px;
    display: grid;
}

.goal-video-modal-grid .photo-matrix--2 {
    grid-template-columns: 1.2fr 0.8fr;
}

.goal-video-modal-grid .photo-matrix--3 {
    grid-template-columns: 1.35fr 0.85fr;
    grid-template-rows: 1fr 1fr;
}

.goal-video-modal-grid .photo-matrix--4 {
    grid-template-columns: 1.25fr 0.75fr;
    grid-template-rows: 1.15fr 0.85fr 0.85fr;
}

.goal-video-modal-grid .photo-matrix--3 .photo-matrix__cell:first-child {
    grid-row: 1 / span 2;
}

.goal-video-modal-grid .photo-matrix--4 .photo-matrix__cell:first-child {
    grid-row: 1 / span 3;
}

.goal-video-modal-grid .photo-matrix--3 .photo-matrix__cell:nth-child(1),
.goal-video-modal-grid .photo-matrix--4 .photo-matrix__cell:nth-child(1) {
    grid-column: 1;
}

.goal-video-modal-grid .photo-matrix--3 .photo-matrix__cell:nth-child(2),
.goal-video-modal-grid .photo-matrix--4 .photo-matrix__cell:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.goal-video-modal-grid .photo-matrix--3 .photo-matrix__cell:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.goal-video-modal-grid .photo-matrix--4 .photo-matrix__cell:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.goal-video-modal-grid .photo-matrix--4 .photo-matrix__cell:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
}

.goal-video-modal-grid .photo-matrix__cell img {
    pointer-events: none;
}

.goal-video-modal-grid .photo-matrix--1 {
    grid-template-rows: minmax(220px, min(82vh, 720px));
}

.goal-video-modal-grid .photo-matrix--2 {
    grid-template-rows: minmax(220px, min(72vh, 640px));
    aspect-ratio: unset;
}

.goal-video-modal-grid .photo-matrix--3,
.goal-video-modal-grid .photo-matrix--4 {
    aspect-ratio: unset;
    max-height: min(82vh, 720px);
}

body.goal-video-modal-open .goal-video-modal-grid .photo-matrix {
    max-height: none;
}

body.goal-video-modal-open .goal-photo-modal {
    z-index: 140;
}

body.goal-video-modal-open .comments-modal {
    z-index: 140;
}

.goal-video-modal-votes .vote-comments {
    display: none;
}

@media (max-width: 720px) {
    .goal-video-modal-votes .vote-comments {
        display: inline-flex;
    }
}

.goal-video-modal-votes {
    position: absolute;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.goal-video-modal-votes[hidden] {
    display: none !important;
}

.goal-video-modal-votes .vote {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(20, 20, 19, 0.55);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.goal-video-modal-votes .vote.is-on {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

.goal-video-modal-votes .vote svg {
    display: block;
    overflow: visible;
}

.goal-video-modal-votes .vote.vote-share .share-icon {
    display: block;
}

.goal-video-modal-votes .vote .thumb-down {
    transform: rotate(180deg);
}

.goal-video-modal-votes .vote .thumb-stem,
.goal-video-modal-votes .vote .thumb-hand {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.goal-video-modal-votes .vote.is-on .thumb-hand {
    fill: currentColor;
}

.goal-video-modal-votes .vote.is-on .thumb-stem {
    stroke: #141413;
    stroke-width: 1;
}

.goal-video-modal-votes .vote-count:empty {
    display: none;
}

body.goal-video-modal-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .goal-video-modal {
        height: 100dvh;
        min-height: 100dvh;
        background: #000;
    }

    .goal-video-modal-panel {
        position: relative;
        flex: 1 1 auto;
        width: 100%;
        min-height: 100dvh;
        height: 100dvh;
        --modal-nav-end: calc(max(8px, env(safe-area-inset-top, 0px)) + 78px);
        --modal-content-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }

    .goal-video-modal-bar {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 4;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(0, 0, 0, 0.12) 72%, transparent 100%);
        pointer-events: none;
    }

    .goal-video-modal-close,
    .goal-video-modal-head,
    .goal-video-modal-tools {
        pointer-events: auto;
    }

    .goal-video-modal-stage {
        position: absolute;
        inset: 0;
        flex: none;
        align-items: stretch;
        justify-content: stretch;
        touch-action: pan-x pan-y;
    }

    .goal-video-modal-series {
        top: calc(max(8px, env(safe-area-inset-top, 0px)) + 48px);
        z-index: 5;
        background: none;
    }

    .goal-video-modal-grid {
        position: absolute;
        top: var(--modal-nav-end);
        right: 0;
        bottom: var(--modal-content-bottom);
        left: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 0;
        overflow: hidden;
        touch-action: none;
    }

    .goal-video-modal-grid .photo-matrix {
        width: 100%;
        max-width: none;
        max-height: min(100%, 100vw);
        min-height: 0;
        margin: 0;
        display: grid;
        gap: 2px;
    }

    .goal-video-modal-grid .photo-matrix--1 {
        height: min(100%, 82dvh);
        grid-template-rows: minmax(0, 1fr);
    }

    .goal-video-modal-grid .photo-matrix--2 {
        height: min(100%, 72dvh);
        aspect-ratio: unset;
    }

    .goal-video-modal-grid .photo-matrix--3 {
        height: min(100%, calc(100vw * 0.75));
        aspect-ratio: unset;
    }

    .goal-video-modal-grid .photo-matrix--4 {
        width: 100%;
        height: min(100%, 100vw);
        max-height: 100%;
        aspect-ratio: 1 / 1;
        grid-template-columns: 1.25fr 0.75fr;
        grid-template-rows: 1.15fr 0.85fr 0.85fr;
    }

    .goal-video-modal-grid .photo-matrix--2 {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .goal-video-modal-grid .photo-matrix--3 {
        grid-template-columns: 1.35fr 0.85fr;
        grid-template-rows: 1fr 1fr;
    }

    .goal-video-modal-grid .photo-matrix--3 .photo-matrix__cell:first-child {
        grid-row: 1 / span 2;
    }

    .goal-video-modal-grid .photo-matrix--4 .photo-matrix__cell:first-child {
        grid-row: 1 / span 3;
    }

    .goal-video-modal-grid .photo-matrix--3 .photo-matrix__cell:nth-child(1),
    .goal-video-modal-grid .photo-matrix--4 .photo-matrix__cell:nth-child(1) {
        grid-column: 1;
    }

    .goal-video-modal-grid .photo-matrix--3 .photo-matrix__cell:nth-child(2),
    .goal-video-modal-grid .photo-matrix--4 .photo-matrix__cell:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .goal-video-modal-grid .photo-matrix--3 .photo-matrix__cell:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .goal-video-modal-grid .photo-matrix--4 .photo-matrix__cell:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .goal-video-modal-grid .photo-matrix--4 .photo-matrix__cell:nth-child(4) {
        grid-column: 2;
        grid-row: 3;
    }

    .goal-video-modal-grid .photo-matrix__cell {
        position: relative;
        z-index: 1;
        min-height: 0;
        overflow: hidden;
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .goal-video-modal-grid .photo-matrix__cell img,
    .goal-video-modal-grid .photo-matrix__more {
        pointer-events: none;
    }

    .goal-video-modal-dismiss {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 3;
        height: min(22vh, 168px);
        min-height: max(104px, calc(52px + env(safe-area-inset-top, 0px)));
        touch-action: none;
        pointer-events: none;
    }

    .goal-video-modal-bar {
        z-index: 4;
    }

    .goal-video-modal-clip {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center;
        z-index: 0;
    }
}

.goal-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    flex-direction: column;
    background: #000;
    touch-action: none;
    overscroll-behavior: none;
}

.goal-photo-modal[hidden] {
    display: none !important;
}

.goal-photo-modal-panel {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    will-change: transform;
}

.goal-photo-modal-dismiss {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 3;
    height: min(22vh, 168px);
    min-height: max(104px, calc(52px + env(safe-area-inset-top, 0px)));
    touch-action: none;
}

.goal-photo-modal-bar {
    display: grid;
    flex: none;
    position: relative;
    z-index: 4;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: max(10px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px 12px;
    color: #fff;
    touch-action: none;
}

@media (max-width: 720px) {
    .goal-photo-modal-panel {
        position: relative;
        min-height: 100dvh;
        height: 100dvh;
        --modal-nav-end: calc(max(8px, env(safe-area-inset-top, 0px)) + 78px);
        --modal-content-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }

    .goal-photo-modal-bar {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 4;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
        pointer-events: none;
    }

    .goal-photo-modal-close,
    .goal-photo-modal-head,
    .goal-photo-modal-tools {
        pointer-events: auto;
    }
}

.goal-photo-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.goal-photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.goal-photo-modal-head {
    min-width: 0;
    padding-top: 0;
}

.goal-photo-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.goal-photo-modal-counter {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    line-height: 1.3;
}

.goal-photo-modal-stage {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    background: #000;
    touch-action: none;
    overflow: hidden;
}

@media (max-width: 720px) {
    .goal-photo-modal-stage {
        position: absolute;
        top: var(--modal-nav-end);
        right: 0;
        bottom: var(--modal-content-bottom);
        left: 0;
        flex: none;
        align-items: stretch;
        justify-content: flex-start;
    }
}

.goal-photo-modal-track {
    display: flex;
    flex: 0 0 auto;
    height: 100%;
    min-height: 0;
    will-change: transform;
}

.goal-photo-modal-track .goal-photo-modal-shot {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.goal-photo-modal-shot {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    background: #000;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.goal-photo-modal-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: min(88px, 20%);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.goal-photo-modal-edge--prev {
    left: 0;
}

.goal-photo-modal-edge--next {
    right: 0;
}

.goal-photo-modal-edge:disabled {
    cursor: default;
}

.goal-photo-modal.is-zoomed .goal-photo-modal-edge {
    /* Keep receiving taps/pinches while zoomed — reset zoom on tap. */
    cursor: zoom-out;
}

.goal-photo-modal-votes {
    position: absolute;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.goal-photo-modal-votes[hidden] {
    display: none !important;
}

.goal-photo-modal-votes .vote {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(20, 20, 19, 0.55);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.goal-photo-modal-votes .vote.is-on {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

.goal-photo-modal-votes .vote svg {
    display: block;
    overflow: visible;
}

.goal-photo-modal-votes .vote.vote-share .share-icon {
    display: block;
}

.goal-photo-modal-votes .vote .thumb-down {
    transform: rotate(180deg);
}

.goal-photo-modal-votes .vote .thumb-stem,
.goal-photo-modal-votes .vote .thumb-hand {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.goal-photo-modal-votes .vote.is-on .thumb-hand {
    fill: currentColor;
}

.goal-photo-modal-votes .vote.is-on .thumb-stem {
    stroke: #141413;
    stroke-width: 1;
}

.goal-photo-modal-votes .vote-count:empty,
.goal-video-modal-votes .vote-count:empty {
    display: none;
}

.goal-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.goal-modal-actions-toggle {
    display: none;
}

.goal-modal-actions-glyph {
    display: block;
    overflow: visible;
}

.goal-modal-actions-arm {
    fill: currentColor;
    transform-box: fill-box;
    transform-origin: center;
    transition:
        transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.2s ease;
}

@media (max-width: 720px) {
    .goal-photo-modal-votes,
    .goal-video-modal-votes {
        inset: 0;
        z-index: 5;
        display: block;
        pointer-events: none;
        transform: none;
    }

    .goal-modal-actions-toggle {
        display: inline-flex;
        position: absolute;
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(20, 20, 19, 0.55);
        color: #fff;
        cursor: pointer;
        pointer-events: auto;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .goal-photo-modal-votes .goal-modal-actions,
    .goal-video-modal-votes .goal-modal-actions {
        display: flex;
        position: absolute;
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        flex-direction: column;
        align-items: flex-end;
        max-width: none;
        pointer-events: none;
    }

    .goal-photo-modal-votes .goal-modal-actions .vote,
    .goal-video-modal-votes .goal-modal-actions .vote,
    .goal-photo-modal-votes .goal-modal-actions .feed-goal-watch-wrap,
    .goal-video-modal-votes .goal-modal-actions .feed-goal-watch-wrap {
        opacity: 0;
        transform: translateY(22px);
        pointer-events: none;
        transition:
            opacity 0.24s ease,
            transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .goal-photo-modal-votes .goal-modal-actions .vote:nth-child(1),
    .goal-video-modal-votes .goal-modal-actions .vote:nth-child(1) {
        transition-delay: 0s;
    }

    .goal-photo-modal-votes .goal-modal-actions .vote:nth-child(2),
    .goal-video-modal-votes .goal-modal-actions .vote:nth-child(2) {
        transition-delay: 0.04s;
    }

    .goal-photo-modal-votes .goal-modal-actions .vote:nth-child(3),
    .goal-video-modal-votes .goal-modal-actions .vote:nth-child(3) {
        transition-delay: 0.08s;
    }

    .goal-photo-modal-votes .goal-modal-actions .vote:nth-child(4),
    .goal-video-modal-votes .goal-modal-actions .vote:nth-child(4) {
        transition-delay: 0.12s;
    }

    .goal-photo-modal-votes.is-open .goal-modal-actions,
    .goal-video-modal-votes.is-open .goal-modal-actions {
        pointer-events: auto;
    }

    .goal-photo-modal-votes.is-open .goal-modal-actions .vote,
    .goal-video-modal-votes.is-open .goal-modal-actions .vote,
    .goal-photo-modal-votes.is-open .goal-modal-actions .feed-goal-watch-wrap,
    .goal-video-modal-votes.is-open .goal-modal-actions .feed-goal-watch-wrap {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .goal-photo-modal-votes.is-open .goal-modal-actions .feed-goal-watch-wrap,
    .goal-video-modal-votes.is-open .goal-modal-actions .feed-goal-watch-wrap {
        transition-delay: 0.02s;
    }

    .goal-photo-modal-votes.is-open .goal-modal-actions .vote:nth-last-child(1),
    .goal-video-modal-votes.is-open .goal-modal-actions .vote:nth-last-child(1) {
        transition-delay: 0.02s;
    }

    .goal-photo-modal-votes.is-open .goal-modal-actions .vote:nth-last-child(2),
    .goal-video-modal-votes.is-open .goal-modal-actions .vote:nth-last-child(2) {
        transition-delay: 0.07s;
    }

    .goal-photo-modal-votes.is-open .goal-modal-actions .vote:nth-last-child(3),
    .goal-video-modal-votes.is-open .goal-modal-actions .vote:nth-last-child(3) {
        transition-delay: 0.12s;
    }

    .goal-photo-modal-votes.is-open .goal-modal-actions .vote:nth-last-child(4),
    .goal-video-modal-votes.is-open .goal-modal-actions .vote:nth-last-child(4) {
        transition-delay: 0.17s;
    }

    .goal-photo-modal-votes.is-open .goal-modal-actions-arm-a,
    .goal-video-modal-votes.is-open .goal-modal-actions-arm-a {
        transform: translate(125%, 0) rotate(45deg) scaleX(3.4);
    }

    .goal-photo-modal-votes.is-open .goal-modal-actions-arm-b,
    .goal-video-modal-votes.is-open .goal-modal-actions-arm-b {
        opacity: 0;
        transform: scale(0.2);
    }

    .goal-photo-modal-votes.is-open .goal-modal-actions-arm-c,
    .goal-video-modal-votes.is-open .goal-modal-actions-arm-c {
        transform: translate(-125%, 0) rotate(-45deg) scaleX(3.4);
    }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
    .goal-modal-actions-arm,
    .goal-photo-modal-votes .goal-modal-actions .vote,
    .goal-video-modal-votes .goal-modal-actions .vote {
        transition: none;
    }
}

body.goal-photo-modal-open {
    overflow: hidden;
}

.goal-mock-note {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f6f6f4;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.goal-inbox-head {
    margin-bottom: 4px;
}

.goal-inbox-tabs {
    margin: 16px 0 18px;
}

.goal-inbox-tabs .company-tab {
    font-size: 13px;
}

.goal-inbox-attention {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid #f0dcc8;
    border-radius: 14px;
    background: #fff9f3;
}

.goal-inbox-attention-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
}

.goal-inbox-attention-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.goal-inbox-attention-list a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.goal-inbox-attention-list a:hover {
    text-decoration: underline;
}

.goal-inbox-empty {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.goal-inbox-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.goal-inbox-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.goal-inbox-card.is-attention {
    border-color: #e8c9a8;
    box-shadow: 0 0 0 1px rgba(232, 201, 168, 0.35);
}

.goal-inbox-card-media {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #141413;
    aspect-ratio: 4 / 5;
}

.goal-inbox-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goal-inbox-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.goal-inbox-card-title {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.goal-inbox-card-title:hover {
    color: #000;
}

.goal-inbox-card-meta,
.goal-inbox-card-progress,
.goal-inbox-card-last {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.goal-inbox-card-last {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.goal-inbox-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-top: 12px;
}

.goal-inbox-card-cta {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.goal-inbox-card-cta.is-primary {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.goal-inbox-card-cta.is-primary:hover {
    color: #fff;
    background: #000;
}

.goal-inbox-card-quiet {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.goal-inbox-card-quiet:hover {
    color: var(--ink);
}

.goal-status.is-completed {
    color: #5e9c1c;
}

#goal-journal-header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.goal-journal-back-bar {
    margin: 0 0 16px;
}

a.feed-back.goal-journal-back {
    display: inline-flex;
    text-decoration: none;
    color: var(--ink);
}

.goal-journal-head {
    width: 100%;
    box-sizing: border-box;
}

.goal-journal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.goal-journal-meta {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.goal-journal-progress {
    height: 4px;
    margin-top: 14px;
    border-radius: 999px;
    background: #efefef;
    overflow: hidden;
}

.goal-journal-progress-bar {
    display: block;
    height: 100%;
    position: relative;
    border-radius: inherit;
    background: var(--ink);
}
.goal-journal-progress-bar:after{
    content: '';
    height: 4px;
    width: 4px;
    display: block;
    position: absolute;
    right: -4px;
    z-index: 10;
    background: #FFF;
    border-radius: 0 2px 2px 0;
}
.goal-journal-progress-bar.is-enter {
    transition: width 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
    .goal-journal-progress-bar.is-enter {
        transition: none;
    }
}

.goal-journal-head .goal-journal-track {
    margin-top: 12px;
}

.goal-journal-progress-label {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.goal-journal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 10px;
    font-size: 13px;
}

.goal-journal-links a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.goal-journal-links a:hover {
    text-decoration: underline;
}

.goal-journal-mock-note {
    color: var(--muted);
}

.goal-journal-tab-badge {
    font-weight: 600;
    color: var(--muted);
}

.goal-journal-comments-lead {
    margin: 12px 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.goal-journal-comments-empty {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.goal-journal-comment-thread {
    margin-bottom: 18px;
    padding: 12px 14px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.goal-journal-comment-preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.goal-journal-comment-preview-text {
    flex: 1 1 auto;
    min-width: 0;
}

.goal-journal-comment-preview-caption {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.4;
}

.goal-journal-comment-preview-thumb {
    flex: none;
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    background: #141413;
}

.goal-journal-comment-list {
    margin: 12px 0 0;
    padding: 0;
}

.goal-journal-comment-reply {
    margin-top: 8px;
}

.goal-journal-tabs {
    margin-top: 20px;
}

.goal-journal-tabs a.company-tab {
    text-decoration: none;
}

.goal-journal-panel {
    margin-top: 4px;
}

.goal-journal-panel[hidden] {
    display: none !important;
}

.goal-journal-settings {
    margin-top: 16px;
}

.goal-journal-settings-lead {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.goal-journal-settings label:not(.goal-journal-settings-check) {
    display: block;
    margin: 16px 0 8px;
    font-size: 14px;
    font-weight: 600;
}

.goal-journal-settings select,
.goal-journal-settings textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
}

.goal-journal-settings textarea {
    resize: vertical;
    min-height: 72px;
}

.goal-journal-settings-hint {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.goal-journal-settings-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.goal-journal-settings-check input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex: none;
}

.goal-journal-settings-actions {
    margin-top: 20px;
}

.goal-journal-settings-save {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.goal-journal-settings-save:hover {
    background: #000;
}

.goal-journal-settings-flash {
    margin: 12px 0 0;
    color: #5e9c1c;
    font-size: 13px;
}

.goal-journal-stats-lead {
    margin: 12px 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.goal-journal-stats-section {
    margin-bottom: 22px;
}

.goal-journal-stats-heading {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted);
}

.goal-journal-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 721px) {
    .goal-journal-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.goal-journal-stat-card {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.goal-journal-stat-label {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.goal-journal-stat-value {
    margin: 6px 0 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.goal-journal-stat-meta {
    margin: 4px 0 0;
    font-size: 11px;
    line-height: 1.3;
}

.goal-journal-stat-delta {
    color: #5e9c1c;
    font-weight: 600;
}

.goal-journal-stat-frames {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.goal-journal-stat-frame {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
}

.goal-journal-stat-frame:first-child {
    border-top: 0;
}

.goal-journal-stat-frame-label {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 600;
}

.goal-journal-stat-frame-bar {
    position: absolute;
    inset: 0 auto 0 0;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.04);
    pointer-events: none;
}

.goal-journal-stats-note,
.goal-journal-stats-empty {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.goal-journal-history {
    margin-top: 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.goal-journal-history-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 8px 12px;
    align-items: center;
    padding: 0 0 12px;
    cursor: pointer;
    list-style: none;
}

.goal-journal-history-summary::-webkit-details-marker {
    display: none;
}

.goal-journal-history-summary::after {
    content: attr(data-hint);
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.goal-journal-history-title {
    grid-row: 1;
    font-size: 15px;
    font-weight: 600;
}

.goal-journal-history-teaser {
    grid-column: 1;
    grid-row: 2;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.goal-journal-track {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.goal-journal-track-step {
    flex: none;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.goal-journal-track-step.is-done {
    border-color: color-mix(in srgb, var(--ink) 25%, var(--line));
    color: var(--ink);
}

.goal-journal-track-step.is-current {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.goal-journal-track-line {
    flex: 1 1 12px;
    height: 2px;
    min-width: 8px;
    margin: 0 4px;
    border-radius: 999px;
    background: var(--line);
}

.goal-journal-track-line.is-done {
    background: color-mix(in srgb, var(--ink) 55%, var(--line));
}

.goal-journal-history-body {
    padding: 0;
    border-top: 0;
}

.goal-journal-history:not([open]) .goal-journal-history-body {
    display: none;
}

.goal-journal-history[open] .goal-journal-history-summary {
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
    padding-bottom: 14px;
}

.goal-journal-live {
    margin: 0 0 16px;
    padding: 0;
}

.goal-journal-live-entry {
    animation: goal-journal-live-in 0.45s ease-out;
}

@keyframes goal-journal-live-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.goal-composer {
    margin: 18px 0 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fafafa;
}

.goal-composer-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
}

.goal-composer textarea {
    width: 100%;
    min-height: 88px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    resize: vertical;
}

.goal-composer-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-top: 8px;
}

.goal-composer-pick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

.goal-composer-pick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b6b6b;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.goal-composer-pick-btn svg {
    display: block;
    flex: none;
}

.goal-composer-pick-btn:hover:not(:disabled) {
    background: color-mix(in srgb, var(--ink) 6%, #fff);
    color: var(--ink);
}

.goal-composer-pick-btn:active:not(:disabled) {
    background: color-mix(in srgb, var(--ink) 10%, #fff);
}

.goal-composer-pick-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.goal-composer-pick-btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.goal-composer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.goal-composer-photo,
.goal-composer-submit {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.goal-composer-submit {
    margin-left: auto;
    border: 0;
    background: var(--ink);
    color: #fff;
}

.goal-composer-submit:hover {
    background: #000;
}

.goal-composer-flash {
    margin: 10px 0 0;
    color: #5e9c1c;
    font-size: 13px;
}

.goal-composer-media {
    position: relative;
    margin-top: 10px;
    padding: 10px 10px 12px;
    border: 1px dashed transparent;
    border-radius: 12px;
    background: transparent;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.goal-composer-media:has(.goal-composer-files:not([hidden])),
.goal-composer-media.is-dragover {
    border-color: color-mix(in srgb, var(--muted) 35%, var(--line));
    background: #fff;
}

.goal-composer-media.is-dragover {
    border-color: color-mix(in srgb, var(--ink) 35%, var(--line));
    background: #f8f8f8;
}

.goal-composer-media--limit {
    opacity: 0.85;
}

.goal-composer-media-lead {
    display: none;
}

.goal-composer-drop-hint {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.goal-composer-drop-hint[hidden] {
    display: none;
}

.goal-composer-media.is-dragover .goal-composer-drop-hint {
    display: block;
}

.goal-composer-media:not(:has(.goal-composer-files:not([hidden]))) {
    margin-top: 0;
    padding: 0;
    min-height: 0;
    border: none;
}

.goal-composer-media:has(.goal-composer-files:not([hidden])) .goal-composer-drop-hint {
    margin-top: 8px;
}

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

.goal-composer .goal-composer-file-input {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    border-radius: 0;
    background: transparent;
    opacity: 0;
    font-size: 0;
}

.goal-composer-upload-error {
    margin: 8px 0 0;
    color: #9a3b2f;
    font-size: 13px;
}

.goal-composer-upload-error[hidden] {
    display: none;
}

.goal-composer-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.goal-composer-files[hidden] {
    display: none;
}

.goal-composer-file {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 96px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.goal-composer-file--square {
    aspect-ratio: 1;
}

.goal-composer-file--uploading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    pointer-events: none;
    background: #fafafa;
    border-style: dashed;
}

.goal-composer-file--uploading .goal-composer-file-progress {
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: 96px;
    background: transparent;
}

.goal-composer-file-preview {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    object-fit: cover;
    border-radius: 6px;
}

.goal-composer-file-icon {
    flex: 1 1 auto;
    min-height: 48px;
    border-radius: 6px;
    background: #f3f3f3 center/40px no-repeat;
}

.goal-composer-file-icon--video {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5c5c' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M10 9l5 3-5 3V9Z' fill='%235c5c5c' stroke='none'/%3E%3C/svg%3E");
}

.goal-composer-file-name {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.25;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goal-composer-file-progress {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: inherit;
    z-index: 1;
}

.goal-composer-file-progress-svg {
    width: 44px;
    height: 44px;
    transform: rotate(-90deg);
}

.goal-composer-file-progress-bg {
    fill: none;
    stroke: #e8e8e8;
    stroke-width: 3;
}

.goal-composer-file-progress-fill {
    fill: none;
    stroke: var(--ink);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.goal-composer-file-percent {
    position: absolute;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink);
}

.goal-composer-file-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.goal-composer-file-remove:hover {
    background: #fff;
}

.is-goal-journal .goal-journal-feed {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 12px 0 0;
    overflow: visible;
}

.goal-journal-rail-segment {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 28px;
    padding-left: 14px;
    pointer-events: none;
    z-index: 2;
}

.goal-journal-rail-dot {
    position: absolute;
    left: 14px;
    width: 7px;
    height: 7px;
    margin-left: -3px;
    border: 1px solid color-mix(in srgb, var(--muted) 50%, var(--line));
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
}

.goal-journal-rail-segment .goal-journal-rail-dot:first-of-type {
    top: 0;
    background: #FFF;
    z-index: 10;
    transform: translateY(-50%);
}

.goal-journal-rail-segment .goal-journal-rail-dot:last-of-type {
    bottom: 0;
    transform: translateY(50%);
}

.goal-journal-rail-line {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 1px;
    margin-left: 0;
    background: color-mix(in srgb, var(--muted) 40%, var(--line));
}

.is-goal-journal .goal-journal-entry {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 12px 14px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.is-goal-journal .goal-journal-entry .media-shell {
    margin-top: 10px;
    border-radius: 0;
    overflow: hidden;
}

.is-goal-journal .goal-journal-entry .clip-avatar,
.is-goal-journal .goal-journal-entry .clip-title {
    display: none;
}

.is-goal-journal .goal-journal-entry .frame-kind {
    margin-bottom: 6px;
}

.is-goal-journal .goal-journal-entry .feed-under {
    margin-top: 10px;
}

.goal-journal-event {
    position: relative;
    margin: 0;
    padding: 0;
}

.goal-journal-event-text {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.goal-journal-event-time {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.is-goal-journal .goal-journal-engage .vote {
    pointer-events: none;
}

.goal-journal-missing {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 14px;
}
