@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');

:root {
    color-scheme: light;
    --paper: #f4f4ed;
    --surface: #fffefa;
    --ink: #202b28;
    --muted: #78827c;
    --line: #e4e6dd;
    --green: #176c59;
    --green-dark: #105443;
    --green-pale: #e7f1eb;
    --coral: #c95840;
    --yellow: #e6bd60;
    --shadow: 0 14px 38px rgba(37, 53, 44, .055);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
}

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

.shell {
    width: min(1220px, calc(100% - 64px));
    margin: 0 auto;
}

.topbar {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dfe2d8;
    width: min(1220px, calc(100% - 64px));
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 82px;
    height: auto;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    background: var(--green);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.brand-name {
    display: grid;
    gap: 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.brand-name span,
.eyebrow,
.page-footer {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .13em;
}

.topbar-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #59655e;
    font-size: 12px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logout-button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
}

.logout-form {
    margin: 0;
}

.report-nav {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    font-size: 11px;
    text-decoration: none;
}

.status-dot,
.legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
}

.intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 38px 0 30px;
}

.activity-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.activity-title-row h1 {
    margin-bottom: 9px;
}

.before-image-button {
    margin-bottom: 9px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--green);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
}

.before-image-button:hover {
    border-color: var(--green);
}

.eyebrow {
    margin: 0 0 10px;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 9px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(32px, 4vw, 45px);
    font-weight: 500;
    line-height: 1.12;
}

h1 em {
    color: var(--green);
    font-weight: 500;
}

.assigned-activity-title {
    margin: 0 0 8px;
    color: var(--green-dark);
    font-size: 15px;
    font-weight: 600;
}

.intro-copy {
    margin: 0;
    color: #737d76;
    font-size: 13px;
}

.schedule-message {
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: #737d76;
    font-size: 13px;
}

.home-intro {
    padding-bottom: 25px;
}

.home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.activity-rejection-reason {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-left: 3px solid var(--coral);
    background: #fbefeb;
    color: #704236;
    font-size: 12px;
}

.activity-rejection-reason p {
    margin: 5px 0 0;
    line-height: 1.5;
    white-space: pre-wrap;
}

.activity-history-rejection {
    display: block;
    max-width: 430px;
    margin-top: 5px;
    color: #a64c38;
    font-size: 11px;
    white-space: pre-wrap;
}

.home-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid #e2e4db;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.home-card h2 {
    margin-bottom: 8px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
}

.home-card-copy,
.home-registered-title {
    color: #737d76;
    font-size: 12px;
    line-height: 1.55;
}

.home-registered-title {
    color: var(--green-dark);
    font-weight: 700;
}

.activity-registration-form {
    display: grid;
    gap: 10px;
}

.activity-registration-form .field-row {
    margin-top: 2px;
}

.activity-registration-form .field-label {
    margin-bottom: 0;
}

.home-action-button {
    width: fit-content;
    min-height: 39px;
    margin-top: 7px;
    text-decoration: none;
}

.home-calendar-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-calendar-card .home-action-button {
    margin-top: auto;
}

.home-history {
    margin-bottom: 30px;
    padding: 22px 24px;
    border: 1px solid #e2e4db;
    background: var(--surface);
}

.home-history-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 12px;
}

.home-history-heading .eyebrow {
    margin-bottom: 5px;
}

.home-history-heading h2 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 21px;
    font-weight: 500;
}

.home-history-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.home-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.home-history-item>div {
    display: grid;
    gap: 4px;
}

.home-history-title {
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 600;
}

a.home-history-title:hover {
    color: var(--green);
}

.home-history-dates,
.home-history-status {
    color: var(--muted);
    font-size: 10px;
}

.home-history-status {
    flex-shrink: 0;
}

.button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.button:active,
.icon-button:active {
    transform: translateY(1px);
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--green);
    color: white;
}

.button-primary:hover {
    background: var(--green-dark);
}

.button-primary>span {
    font-size: 20px;
    font-weight: 400;
    line-height: 0;
}

.button-quiet {
    border-color: var(--line);
    background: transparent;
    color: #56615a;
}

.button-quiet:hover {
    background: #f1f3ec;
}

.workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .78fr);
    align-items: stretch;
    border: 1px solid #e2e4db;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.calendar-panel {
    min-width: 0;
    padding: 26px 30px 17px;
    border-right: 1px solid var(--line);
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 21px;
}

.calendar-toolbar .eyebrow {
    margin-bottom: 5px;
}

.calendar-toolbar h2,
.day-heading h2 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 25px;
    font-weight: 500;
}

.calendar-actions {
    display: flex;
    align-items: center;
    gap: 11px;
}

.today-button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
}

.stepper {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 3px;
}

.icon-button {
    display: grid;
    width: 34px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.icon-button+.icon-button {
    border-left: 1px solid var(--line);
}

.icon-button:hover {
    background: #f2f4ee;
}

.icon-button:disabled,
.icon-button:disabled:hover {
    cursor: default;
    background: transparent;
    opacity: .45;
}

.chevron {
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #45534b;
    border-right: 1.5px solid #45534b;
}

.chevron-left {
    transform: rotate(-135deg);
}

.chevron-right {
    transform: rotate(45deg);
}

.weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekdays {
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.weekdays span {
    color: #8a938b;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

.calendar-grid {
    grid-auto-rows: minmax(67px, 1fr);
}

.calendar-day {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 12px 4px 7px;
    border: 0;
    border-bottom: 1px solid #eef0e9;
    background: transparent;
    cursor: pointer;
}

.calendar-day:not(:nth-child(7n)) {
    border-right: 1px solid #f0f1ec;
}

.calendar-day:hover {
    background: #f7f8f3;
}

.calendar-day:disabled {
    cursor: default;
}

.calendar-day:disabled:hover {
    background: transparent;
}

.calendar-day.date-unavailable .day-number {
    color: #c2c7c0;
}

.calendar-day[aria-selected="true"] {
    background: var(--green-pale);
}

.calendar-day[aria-selected="true"]::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--green);
    content: '';
}

.calendar-day.outside-month .day-number {
    color: #b9c0b9;
}

.day-number {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    color: #47524b;
    font-size: 11px;
}

.calendar-day.is-today .day-number {
    color: var(--coral);
    font-weight: 700;
}

.calendar-day[aria-selected="true"] .day-number {
    background: var(--green);
    color: white;
}

.activity-dots {
    display: flex;
    min-height: 5px;
    gap: 3px;
}

.activity-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--coral);
}

.activity-dot:nth-child(2n) {
    background: var(--yellow);
}

.activity-dot:nth-child(3n) {
    background: var(--green);
}

.activity-dot.late-submission-dot {
    background: #b56a28;
}

.late-submission-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    border: 1.5px solid #b56a28;
    border-radius: 50%;
}

.late-submission-icon::before,
.late-submission-icon::after {
    position: absolute;
    left: 4px;
    width: 1px;
    border-radius: 1px;
    background: #b56a28;
    content: '';
}

.late-submission-icon::before {
    top: 1px;
    height: 4px;
}

.late-submission-icon::after {
    top: 4px;
    height: 3px;
    transform: rotate(-45deg);
    transform-origin: top;
}

.late-submission-status,
.late-legend-mark {
    color: #8c4d17;
}

.late-submission-status {
    display: inline-block;
    margin-bottom: 5px;
    padding: 2px 6px;
    border-radius: 2px;
    background: #f8eadb;
    font-size: 9px;
    font-weight: 700;
}

.late-legend-mark {
    display: inline-grid;
    width: 12px;
    height: 12px;
    place-items: center;
    border-radius: 50%;
    background: #f8eadb;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
}

.pending-mark,
.pending-legend-mark {
    display: grid;
    width: 14px;
    height: 14px;
    place-items: center;
    border-radius: 50%;
    background: #f8eccd;
    color: #725515;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.pending-legend-mark {
    width: 12px;
    height: 12px;
    font-size: 9px;
}

.pending-empty-mark {
    border-color: #ead9a7;
    background: #f8eccd;
    color: #725515;
}

.calendar-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 14px;
    color: #7c867e;
    font-size: 10px;
}

.legend-dot {
    width: 6px;
    height: 6px;
}

.footer-note {
    margin-left: auto;
}

.day-panel {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 26px 24px 18px;
}

.day-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.day-heading .eyebrow {
    margin-bottom: 6px;
}

.day-heading h2 {
    font-size: 22px;
}

.day-heading .day-number {
    width: 40px;
    height: 40px;
    background: #f0f3eb;
    color: var(--green);
    font-size: 16px;
    font-weight: 600;
}

.day-summary {
    padding: 15px 0 8px;
    color: #7a847d;
    font-size: 11px;
}

.activity-list {
    flex: 1;
}

.activity-item {
    position: relative;
    padding: 0 0 17px 15px;
    border-left: 1px solid #dfe7df;
}

.activity-item::before {
    position: absolute;
    top: 4px;
    left: -4px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--surface);
    border-radius: 50%;
    background: var(--coral);
    content: '';
}

.activity-time {
    margin-bottom: 5px;
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
}

.activity-title {
    margin: 0 0 5px;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.activity-notes {
    margin: 0;
    color: #7c857f;
    font-size: 11px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.activity-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.activity-attachment {
    max-width: 100%;
    color: var(--green);
    font-size: 10px;
    overflow-wrap: anywhere;
}

.activity-image-thumbnail {
    display: block;
    width: 52px;
    height: 44px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #f1f3ec;
    cursor: pointer;
}

.activity-image-thumbnail:hover {
    border-color: var(--green);
}

.activity-image-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-actions {
    display: flex;
    gap: 12px;
    margin-top: 9px;
}

.text-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: #6a766e;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
}

.text-action:hover {
    color: var(--green);
    text-decoration: underline;
}

.text-action.delete-action:hover {
    color: var(--coral);
}

.empty-state {
    padding: 24px 8px 30px 0;
}

.empty-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    margin-bottom: 12px;
    border: 1px solid #dfe8df;
    border-radius: 50%;
    color: var(--green);
    font-size: 18px;
}

.empty-state strong {
    display: block;
    margin-bottom: 5px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16px;
    font-weight: 500;
}

.empty-state p {
    margin: 0;
    color: #808981;
    font-size: 11px;
    line-height: 1.5;
}

.add-activity {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    margin-top: auto;
    padding: 0 12px;
    border: 1px dashed #cbd7cb;
    background: #fbfcf8;
    color: var(--green);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-align: left;
}

.add-activity:hover {
    border-color: var(--green);
    background: var(--green-pale);
}

.add-activity span {
    font-size: 18px;
    font-weight: 400;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    padding: 18px 0 28px;
    font-size: 8px;
    letter-spacing: .1em;
}

.page-footer span:last-child {
    color: #909990;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}

.activity-dialog {
    width: min(480px, calc(100% - 32px));
    max-width: none;
    padding: 25px 27px 23px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 24px 70px rgba(24, 39, 30, .2);
}

.activity-dialog::backdrop {
    background: rgba(28, 39, 32, .4);
    backdrop-filter: blur(2px);
}

.image-preview-dialog {
    position: relative;
    width: min(900px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100% - 32px);
    padding: 42px 12px 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(24, 39, 30, .2);
}

.image-preview-dialog::backdrop {
    background: rgba(20, 28, 23, .72);
    backdrop-filter: blur(2px);
}

.image-preview-dialog img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 90px);
    margin: 0 auto;
    object-fit: contain;
}

.before-image-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
}

.before-image-navigation[hidden] {
    display: none;
}

.image-preview-close {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: #56615a;
    cursor: pointer;
    font-size: 21px;
    line-height: 1;
}

.dialog-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dialog-topline .eyebrow {
    margin: 0;
}

.close-button {
    width: 30px;
    height: 30px;
    color: #69736c;
    font-size: 23px;
    font-weight: 300;
}

.activity-dialog h2 {
    margin: 10px 0 4px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 27px;
    font-weight: 500;
}

.dialog-date {
    margin-bottom: 22px;
    color: #778178;
    font-size: 11px;
}

.field-label {
    display: block;
    margin: 0 0 7px;
    color: #455149;
    font-size: 11px;
    font-weight: 600;
}

.field-label span {
    color: #919a92;
    font-size: 10px;
    font-weight: 400;
}

.text-input {
    width: 100%;
    min-height: 42px;
    margin-bottom: 16px;
    padding: 10px 11px;
    border: 1px solid #dfe3db;
    border-radius: 2px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
}

.text-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(23, 108, 89, .1);
}

.text-input::placeholder {
    color: #a0a8a1;
}

.field-row {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 12px;
}

.field-group {
    min-width: 0;
}

.notes-input {
    min-height: 86px;
    resize: vertical;
    line-height: 1.5;
}

.file-input {
    padding: 8px;
    font-size: 11px;
}

.file-input::file-selector-button {
    margin-right: 8px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #f7f8f3;
    color: #455149;
    cursor: pointer;
    font: inherit;
}

.file-hint {
    margin: -9px 0 16px;
    color: #838d85;
    font-size: 10px;
}

.form-error {
    min-height: 16px;
    margin: -5px 0 8px;
    color: #ad4030;
    font-size: 11px;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 4px;
}

.dialog-actions .button {
    min-height: 39px;
}

.login-shell {
    display: grid;
    width: min(440px, calc(100% - 36px));
    min-height: 100vh;
    align-content: center;
    margin: 0 auto;
    padding: 36px 0;
}

.login-brand {
    justify-self: start;
    margin: 0 0 27px 3px;
}

.login-panel {
    padding: 31px;
    border: 1px solid #e2e4db;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-panel .eyebrow {
    margin-bottom: 8px;
}

.login-panel h1 {
    margin-bottom: 23px;
    font-size: 34px;
}

.login-form .text-input {
    margin-bottom: 18px;
}

.login-submit {
    width: 100%;
    margin-top: 3px;
}

.login-error,
.login-notice {
    margin: 0 0 17px;
    padding: 10px 11px;
    border-left: 2px solid var(--coral);
    background: #fcf1ed;
    color: #8e3f30;
    font-size: 11px;
    line-height: 1.55;
}

.login-notice {
    border-color: var(--yellow);
    background: #fbf6e9;
    color: #635328;
}

.login-notice code {
    overflow-wrap: anywhere;
}

.login-footer {
    margin: 17px 3px 0;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
}

.report-intro {
    padding: 35px 0 25px;
}

.report-intro h1 {
    margin-bottom: 8px;
}

.report-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
    align-items: end;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.report-filter-field {
    min-width: 0;
}

.report-filter-field .field-label {
    margin-bottom: 6px;
}

.report-filter-field .text-input {
    margin: 0;
}

.report-submit {
    min-height: 42px;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 23px 0;
}

.summary-stat {
    display: grid;
    gap: 8px;
    padding: 13px 0 13px 15px;
    border-left: 2px solid #b9c4bd;
}

.summary-stat span {
    color: #778178;
    font-size: 11px;
}

.summary-stat strong {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 27px;
    font-weight: 500;
}

.summary-complete {
    border-color: var(--green);
}

.summary-pending {
    border-color: var(--yellow);
}

.report-results {
    border-top: 1px solid var(--line);
}

.report-results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 21px 0 15px;
}

.report-results-heading .eyebrow {
    margin-bottom: 5px;
}

.report-results-heading h2 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 21px;
    font-weight: 500;
}

.approval-section {
    margin-bottom: 30px;
}

.approval-empty {
    padding: 22px 24px;
    border: 1px solid #e2e4db;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.approval-table-wrap {
    border: 1px solid #e2e4db;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.approval-table {
    min-width: 760px;
}

.approval-table tbody td {
    vertical-align: middle;
}

.approval-table tbody td:nth-child(1) {
    min-width: 150px;
}

.approval-table tbody td:nth-child(2) {
    min-width: 180px;
    color: var(--green-dark);
    font-weight: 600;
}

.approval-employee-name {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.approval-date-separator {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

.approval-photo-grid {
    display: flex;
    gap: 6px;
}

.approval-photo {
    display: block;
    width: 54px;
    height: 44px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
}

.approval-photo:hover {
    border-color: var(--green);
}

.approval-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f1f3ec;
}

.approval-action {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.approval-action form {
    margin: 0;
}

.approval-action .button {
    min-height: 34px;
    padding: 0 9px;
    white-space: nowrap;
}

.rejection-dialog h2 {
    margin: 10px 0 4px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 27px;
    font-weight: 500;
}

.rejection-dialog .dialog-topline button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.rejection-dialog .dialog-date {
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.rejection-dialog textarea {
    min-height: 110px;
    resize: vertical;
}

.approval-no-photos,
.approval-empty p {
    color: var(--muted);
    font-size: 10px;
}

.approval-empty h3 {
    margin: 0 0 5px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
}

.approval-empty p {
    margin: 0;
}

.report-range {
    color: var(--muted);
    font-size: 11px;
}

.report-table-wrap {
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.report-table th,
.report-table td {
    padding: 12px 10px;
    border-top: 1px solid var(--line);
    vertical-align: top;
}

.report-table thead th {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.report-table tbody th,
.report-table tbody td {
    font-size: 11px;
}

.report-date {
    min-width: 145px;
    color: #3c4941;
    font-weight: 600;
    white-space: nowrap;
}

.report-table td:nth-child(2) {
    width: 110px;
}

.employee-summary-table td:nth-child(2) {
    width: auto;
}

.report-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
}

.report-status::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: '';
}

.status-complete {
    color: var(--green);
}

.status-pending {
    color: #8b6c21;
}

.report-empty {
    color: #89928b;
}

.report-activity-list {
    display: grid;
    gap: 10px;
}

.report-submission-group {
    display: grid;
    gap: 8px;
}

.report-submission-group+.report-submission-group {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.report-submission-date {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.report-activity {
    padding-left: 11px;
    border-left: 1px solid #dfe7df;
}

.report-activity-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--green);
    font-size: 9px;
}

.report-activity-meta span {
    color: var(--muted);
}

.report-activity h3 {
    margin: 4px 0;
    font-size: 12px;
    font-weight: 600;
}

.report-activity p {
    margin: 0;
    color: #778178;
    font-size: 10px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.report-attachments {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 10px;
    margin-top: 9px;
}

.report-image-link {
    display: grid;
    justify-items: start;
    gap: 4px;
    max-width: 200px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--green);
    cursor: pointer;
    font-size: 9px;
    overflow-wrap: anywhere;
    text-align: left;
}

.report-image-link:hover span {
    text-decoration: underline;
}

.report-image-preview {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    max-height: 130px;
    border: 1px solid var(--line);
    object-fit: contain;
    background: #f7f8f3;
}

.report-file-link {
    color: var(--green);
    font-size: 10px;
    overflow-wrap: anywhere;
}

.report-file-link span {
    color: var(--muted);
}

.report-definition {
    margin: 13px 0 0;
    color: #89928b;
    font-size: 10px;
}

.report-error {
    margin-top: 15px;
}

.report-incomplete-details {
    margin-top: 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.report-incomplete-details>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 4px;
    cursor: pointer;
    color: #765d1f;
    font-size: 11px;
    font-weight: 600;
}

.report-incomplete-details>summary strong {
    color: var(--ink);
    font-family: 'Fraunces', Georgia, serif;
    font-size: 21px;
    font-weight: 500;
}

.report-incomplete-details[open]>summary {
    border-bottom: 1px solid var(--line);
}

.report-incomplete-details>.report-empty {
    margin: 14px 4px;
}

.report-select-prompt,
.report-selected-employee {
    margin: 2px 0 14px;
    color: #778178;
    font-size: 11px;
}

.report-selected-employee strong {
    color: var(--ink);
}

.report-selected-employee span {
    margin-left: 10px;
}

@media (max-width: 800px) {
    .shell {
        width: min(100% - 36px, 650px);
    }

    .topbar {
        width: min(100% - 36px, 650px);
        height: auto;
        min-height: 78px;
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 0;
    }

    .topbar-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }

    .approval-empty {
        padding: 18px;
    }

    .home-actions {
        grid-template-columns: 1fr;
    }

    .workspace {
        grid-template-columns: 1fr;
    }

    .calendar-panel {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .day-panel {
        min-height: 320px;
    }
}

@media (max-width: 500px) {
    .shell {
        width: calc(100% - 28px);
    }

    .topbar {
        width: calc(100% - 28px);
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }

    .topbar-date {
        font-size: 10px;
    }

    .topbar-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .report-nav,
    .logout-button {
        width: 100%;
        min-height: 36px;
        height: auto;
        padding: 5px 4px;
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
    }

    .logout-form {
        min-width: 0;
    }

    .brand {
        align-self: flex-start;
    }

    .intro {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 0 22px;
    }

    .intro-copy {
        max-width: 310px;
        font-size: 12px;
        line-height: 1.55;
    }

    .intro .button {
        min-height: 39px;
    }

    .calendar-panel {
        padding: 20px 13px 14px;
    }

    .calendar-toolbar {
        align-items: end;
    }

    .calendar-toolbar h2 {
        font-size: 22px;
    }

    .calendar-actions {
        gap: 6px;
    }

    .today-button {
        min-height: 31px;
        padding: 0 8px;
    }

    .icon-button {
        width: 30px;
        height: 30px;
    }

    .calendar-grid {
        grid-auto-rows: minmax(52px, 1fr);
    }

    .calendar-day {
        gap: 4px;
        padding: 8px 1px 5px;
    }

    .day-number {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }

    .weekdays span {
        font-size: 9px;
    }

    .day-panel {
        padding: 20px 18px 16px;
    }

    .page-footer {
        font-size: 7px;
    }

    .page-footer span:last-child {
        font-size: 11px;
    }

    .activity-dialog {
        padding: 21px 19px 18px;
    }

    .login-panel {
        padding: 24px 20px;
    }

    .report-filters {
        grid-template-columns: 1fr 1fr;
    }

    .report-submit {
        grid-column: 1 / -1;
    }

    .report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .summary-stat {
        padding-left: 9px;
    }

    .summary-stat strong {
        font-size: 23px;
    }

    .report-results-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}