:root {
    --report-paper: #f7f0df;
    --report-paper-strong: rgba(250, 245, 234, 0.92);
    --report-ink: #18261f;
    --report-muted: #5e6d63;
    --report-line: rgba(24, 38, 31, 0.12);
    --report-accent: #c45a37;
    --report-accent-dark: #8c3115;
    --report-leaf: #d7e7cb;
    --report-shadow: 0 24px 70px rgba(24, 38, 31, 0.12);
}

.report-form-shell,
.report-form-shell * {
    box-sizing: border-box;
}

.report-form-shell {
    display: grid;
    gap: 16px;
    color: var(--report-ink);
}

.report-form-shell .report-form-card,
.report-form-shell .report-form-context-panel {
    background: var(--report-paper-strong);
    border: 1px solid var(--report-line);
    border-radius: 28px;
    box-shadow: var(--report-shadow);
    backdrop-filter: blur(14px);
}

.report-form-shell .report-form-card {
    padding: 24px;
}

.report-form-shell .report-form-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 20px;
}

.report-form-shell .report-form-context-panel {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.82);
}

.report-form-shell .report-form-context-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.report-form-shell .report-form-context-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--report-muted);
    font-size: 0.92rem;
}

.report-form-shell .report-form-context-summary span,
.report-form-shell .report-form-context-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(24, 38, 31, 0.06);
    border: 1px solid rgba(24, 38, 31, 0.08);
}

.report-form-shell .report-form-context-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-form-shell .report-form-context-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(24, 38, 31, 0.12);
    background: rgba(255, 255, 255, 0.76);
    cursor: pointer;
}

.report-form-shell .report-form-context-choice input {
    width: auto;
    margin: 0;
}

.report-form-shell h1,
.report-form-shell h2,
.report-form-shell legend {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.report-form-shell p {
    line-height: 1.6;
}

.report-form-shell .panel-subline {
    margin-top: 10px;
    color: var(--report-muted);
}

.report-form-shell .report-activity-chip {
    display: none;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
    align-self: flex-start;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(24, 38, 31, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--report-ink);
    box-shadow: 0 10px 24px rgba(24, 38, 31, 0.08);
}

.report-form-shell .report-activity-chip-indicator {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #94a3b8;
    flex: 0 0 auto;
}

.report-form-shell .report-activity-chip-copy {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    font-size: 0.78rem;
    line-height: 1;
}

.report-form-shell .report-activity-chip-copy strong {
    font-size: 0.82rem;
}

.report-form-shell .report-activity-chip.is-active .report-activity-chip-indicator {
    background: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.14);
}

.report-form-shell .report-activity-chip.is-paused .report-activity-chip-indicator {
    background: #d97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.report-form-shell .report-activity-chip.is-saving .report-activity-chip-indicator {
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.report-form-shell form {
    display: grid;
    gap: 18px;
}

.report-form-shell fieldset {
    margin: 0;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--report-line);
    background: rgba(255, 255, 255, 0.68);
    min-width: 0;
}

.report-form-shell .report-form-context-panel legend {
    font-size: 0.96rem;
}

.report-form-shell fieldset > p {
    margin: 10px 0 0;
    color: var(--report-muted);
    font-size: 0.96rem;
}

.report-form-shell .field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.report-form-shell .field-grid--full {
    grid-template-columns: 1fr;
}

.report-form-shell .field {
    display: grid;
    gap: 8px;
}

.report-form-shell .field--right-column {
    grid-column: 2;
}

.report-form-shell .field--full-row {
    grid-column: 1 / -1;
}

.report-form-shell .field label,
.report-form-shell .field span {
    font-size: 0.96rem;
    font-weight: 600;
}

.report-form-shell input,
.report-form-shell textarea,
.report-form-shell select,
.report-form-shell button {
    font: inherit;
}

.report-form-shell .report-select-affordance {
    position: relative;
}

.report-form-shell .report-touch-select-fallback {
    display: none;
    gap: 10px;
}

.report-form-shell .report-touch-select-custom[hidden] {
    display: none !important;
}

.report-form-shell .report-select-affordance-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    z-index: 2;
}

.report-form-shell .report-select-affordance-icon {
    position: static;
    display: block;
    width: 0;
    height: 0;
    transform: none;
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6c757d;
    transition: opacity 0.16s ease;
}

.report-form-shell .report-select-affordance:hover .report-select-affordance-icon,
.report-form-shell .report-select-affordance:focus-within .report-select-affordance-icon,
.report-form-shell .report-select-affordance.is-open .report-select-affordance-icon {
    opacity: 1;
}

.report-form-shell .report-select-affordance input {
    padding-right: 2.4rem;
}

.report-form-shell .report-select-affordance-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 15;
    display: grid;
    gap: 0.2rem;
    padding: 0.35rem;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 32px rgba(24, 38, 31, 0.12);
    max-height: 14rem;
    overflow-y: auto;
}

.report-form-shell .report-select-affordance-menu[hidden] {
    display: none;
}

.report-form-shell .report-select-affordance-option,
.report-form-shell .report-select-affordance-empty {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.35;
    text-align: left;
}

.report-form-shell .report-select-affordance-option {
    border: 0;
    background: transparent;
    color: var(--report-ink);
}

.report-form-shell .report-select-affordance-option:hover,
.report-form-shell .report-select-affordance-option:focus-visible {
    background: rgba(196, 90, 55, 0.12);
    outline: none;
}

.report-form-shell .report-select-affordance-empty {
    color: rgba(24, 38, 31, 0.7);
}

.report-form-shell .report-select-affordance input::-webkit-calendar-picker-indicator {
    opacity: 0;
}

.report-form-shell.report-form-shell--touch-select .report-select-affordance {
    display: none;
}

.report-form-shell.report-form-shell--touch-select .report-touch-select-fallback {
    display: grid;
}

.report-form-shell .report-touch-media-picker {
    display: none;
    gap: 10px;
    margin-top: 8px;
}

.report-form-shell .report-touch-media-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.report-form-shell .report-touch-media-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
}

.report-form-shell.report-form-shell--touch-media-picker .report-touch-media-picker {
    display: grid;
}

.report-form-shell.report-form-shell--touch-media-picker #id_media {
    display: none;
}

.report-form-shell input,
.report-form-shell textarea,
.report-form-shell select {
    width: 100%;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--report-ink);
}

.report-form-shell textarea {
    min-height: 120px;
    resize: vertical;
}

.report-form-shell input:focus,
.report-form-shell textarea:focus,
.report-form-shell select:focus {
    outline: 2px solid rgba(196, 90, 55, 0.22);
    border-color: rgba(196, 90, 55, 0.46);
}

.report-form-shell .field.is-invalid label,
.report-form-shell .report-privacy-label.is-invalid span {
    color: #8f2916;
}

.report-form-shell .field.is-invalid input,
.report-form-shell .field.is-invalid textarea,
.report-form-shell .field.is-invalid select,
.report-form-shell .report-privacy-label.is-invalid {
    border-color: rgba(143, 41, 22, 0.45);
    box-shadow: 0 0 0 3px rgba(143, 41, 22, 0.12);
}

.report-form-shell .inline-actions,
.report-form-shell .inline-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.report-form-shell .secondary-button,
.report-form-shell .primary-button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.report-form-shell .secondary-button {
    background: rgba(24, 38, 31, 0.08);
    color: var(--report-ink);
}

.report-form-shell .primary-button {
    background: linear-gradient(135deg, var(--report-accent) 0%, var(--report-accent-dark) 100%);
    color: #fff8ef;
    box-shadow: 0 12px 24px rgba(140, 49, 21, 0.25);
}

.report-form-shell .secondary-button:hover,
.report-form-shell .primary-button:hover {
    transform: translateY(-1px);
}

.report-form-shell .hint,
.report-form-shell .feedback,
.report-form-shell .file-list,
.report-form-shell .field-help {
    font-size: 0.92rem;
    color: var(--report-muted);
}

.report-form-shell .file-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.report-form-shell .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.report-form-shell .chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(215, 231, 203, 0.88);
    border: 1px solid rgba(24, 38, 31, 0.08);
    font-size: 0.92rem;
}

.report-form-shell .submission-feedback {
    min-height: 1.2em;
}

.report-form-shell .submission-feedback.is-error {
    color: #8f2916;
}

.report-form-shell .submission-feedback.is-success {
    color: #285938;
}

.report-form-shell .success-card {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(215, 231, 203, 0.8);
    border: 1px solid rgba(40, 89, 56, 0.18);
    box-shadow: 0 16px 36px rgba(40, 89, 56, 0.12);
}

.report-form-shell .success-card:focus {
    outline: 3px solid rgba(40, 89, 56, 0.28);
    outline-offset: 2px;
}

.report-form-shell .success-card h3,
.report-form-shell .success-card p {
    margin: 0;
}

.report-form-shell .hidden {
    display: none !important;
}

.report-form-shell .report-activity-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.report-form-shell .report-activity-heading-row {
    align-items: center;
}

.report-form-shell .report-field-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: visible;
}

.report-form-shell .report-field-label-row label {
    margin-bottom: 0;
}

.report-form-shell .report-inline-info {
    position: static;
    display: inline-flex;
    align-items: center;
}

.report-form-shell .report-inline-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--report-muted);
    box-shadow: none;
}

.report-form-shell .report-inline-info-button:hover,
.report-form-shell .report-inline-info-button:focus-visible {
    color: #334155;
    background: transparent;
    box-shadow: none;
    outline: none;
}

.report-form-shell .report-inline-info-popover,
.report-inline-info-popover--floating {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1250;
    width: min(420px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(24, 38, 31, 0.12);
    background: #f8fbff;
    color: var(--report-ink);
    font-size: 0.84rem;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
    box-shadow: 0 18px 36px rgba(24, 38, 31, 0.18);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
}

.report-form-shell .report-inline-info-popover {
    display: none;
}

.report-inline-info-popover--floating {
    display: block;
}

.report-form-shell .report-inline-info:hover .report-inline-info-popover,
.report-form-shell .report-inline-info:focus-within .report-inline-info-popover {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

.portal-report-page .report-form-shell--portal .report-activity-heading-label,
.portal-report-page .report-form-shell--portal .report-activity-link {
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4285714286;
    letter-spacing: 0.02em;
    text-transform: none;
}

.portal-report-page .report-form-shell--portal .report-activity-heading-label {
    color: #475569;
}

.portal-report-page .report-form-shell--portal .report-activity-link {
    color: #2563eb;
}

.report-form-shell #activityTrackingState + .field {
    margin-top: 20px;
}

.report-form-shell .report-activity-observations {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(24, 38, 31, 0.1);
    background: rgba(255, 255, 255, 0.72);
}

.report-form-shell .report-activity-observations-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.report-form-shell #activityObservationCount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(24, 38, 31, 0.08);
    border: 1px solid rgba(24, 38, 31, 0.08);
    font-size: 0.9rem;
}

.report-form-shell .report-activity-observations-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.report-form-shell .report-activity-observation-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(215, 231, 203, 0.42);
    border: 1px solid rgba(24, 38, 31, 0.08);
}

.report-form-shell .report-activity-observation-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.report-form-shell .report-activity-observation-secondary {
    color: var(--report-muted);
    font-size: 0.92rem;
}

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

.report-form-shell--activity-sheet {
    width: 100%;
}

.report-form-shell--activity-sheet .map-activity-sheet-section {
    margin: 0;
}

.report-form-shell .report-top-gap {
    margin-top: 16px;
}

.report-form-shell .report-inline-top-gap {
    margin-top: 14px;
}

.report-form-shell .report-privacy-label {
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
}

.report-form-shell .report-privacy-label input {
    width: auto;
    margin: 2px 0 0;
    flex: 0 0 auto;
}

.report-form-shell .report-privacy-label span {
    flex: 1 1 auto;
    min-width: 0;
}

.report-form-shell .report-privacy-label a {
    color: var(--report-accent-dark);
}

@media (max-width: 720px) {
    .report-form-public-page {
        padding-inline: 14px;
    }

    .report-form-shell .report-form-card,
    .report-form-shell .report-form-context-panel {
        border-radius: 24px;
    }

    .report-form-shell .field-grid {
        grid-template-columns: 1fr;
    }

    .report-form-shell .report-observation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-form-shell .field--mobile-full-row,
    .report-form-shell .field--right-column {
        grid-column: 1 / -1;
    }

}

@media (max-width: 1024px) and (hover: none), (max-width: 1024px) and (pointer: coarse) {
    .report-form-shell .report-activity-chip {
        display: inline-flex;
    }
}

.report-inline-info-popover--floating.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.report-form-shell .report-inline-info.is-open .report-inline-info-button {
    color: #334155;
}

@media (max-width: 720px) {
    .report-form-shell .report-inline-info-popover,
    .report-inline-info-popover--floating {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        font-size: 0.82rem;
        line-height: 1.4;
    }
}
