/* Enquiries inbox */
.inq-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.25rem 0 3rem;
    --body-text-size: 1.6rem;
    --body-text-lh: 1.7;
    --body-text-color: #4b3a31;
}
.inq-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding: 1rem 1.2rem;
    border: 1px solid #ead8cc;
    border-radius: 14px;
    background: var(--card-bg);
    box-shadow: 0 12px 28px rgba(61, 42, 34, 0.055);
}

.inq-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.inq-head-actions .button {
    margin: 0;
}

.inq-head p {
    margin: 0;
    max-width: 46rem;
    font-size: var(--body-text-size);
    line-height: var(--body-text-lh);
    color: var(--body-text-color);
}
/* Preserve smaller lede on Feedback / Payments (won by higher specificity vs .inq-head p) */
.inq-head p.staff-workspace-lede {
    margin: 0;
    max-width: 46rem;
    font-size: 1.35rem;
    line-height: 1.5;
    font-weight: 400;
    color: #5c463c;
}
.inq-card-toolbar {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #ead8cc;
    background: linear-gradient(180deg, var(--card-bg) 0%, #faf6f2 100%);
}
.inq-card-toolbar .button {
    margin-bottom: 0;
}
/* Enquiry filters — single horizontal row on desktop; controls & buttons baseline-aligned */
.inq-filters {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #ead8cc;
    background: var(--card-bg);
    --inq-filter-gap-x: 1rem;
    --inq-filter-gap-y: 0.875rem;
    --inq-filter-control-height: 4rem;
    --inq-filter-fs: 1.25rem;
}

.inq-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    column-gap: var(--inq-filter-gap-x);
    row-gap: var(--inq-filter-gap-y);
}

@media (min-width: 1100px) {
    .inq-filter-form {
        flex-wrap: nowrap;
    }
}

.inq-filter-form > .input {
    display: flex;
    flex-direction: column;
    flex: 1 1 11rem;
    margin-bottom: 0;
    min-width: min(100%, 11rem);
}

.inq-filter-form > .input label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a776c;
    margin-bottom: 0.35rem;
}

.inq-filter-form select.inq-filter-control,
.inq-filter-form input.inq-filter-control {
    width: 100%;
    box-sizing: border-box;
    min-height: var(--inq-filter-control-height);
    height: var(--inq-filter-control-height);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #c9b8ae;
    font-size: var(--inq-filter-fs);
    font-weight: 600;
    line-height: 1.25;
    color: var(--body-text-color);
    background-color: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.inq-filter-form select.inq-filter-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.65rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%238d5a3b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
}

.inq-filter-form select.inq-filter-select:focus,
.inq-filter-form input.inq-filter-control:focus {
    outline: none;
    border-color: #8d5a3b;
    box-shadow: 0 0 0 3px rgba(141, 90, 59, 0.18);
}

.inq-filter-form select.inq-filter-select:hover,
.inq-filter-form input.inq-filter-control:hover {
    border-color: #a07862;
}

.inq-filter-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: var(--inq-filter-gap-x);
    flex: 0 0 auto;
}

.inq-filter-actions .submit {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

/* Filter + Reset: identical typography & box metrics; colour/outline only distinguishes priority */
.inq-filter-actions button[type='submit'],
.inq-filter-reset {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: var(--inq-filter-control-height);
    height: var(--inq-filter-control-height);
    padding-inline: 1rem;
    padding-block: 0;
    border-style: solid;
    border-width: 1px;
    border-radius: 8px;
    font-family: inherit;
    font-size: var(--inq-filter-fs);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

.inq-filter-actions button[type='submit'] {
    border-color: #8d5a3b;
    background: #8d5a3b;
    color: #fff;
    cursor: pointer;
}

.inq-filter-actions button[type='submit']:hover {
    filter: brightness(1.05);
}

.inq-filter-reset {
    border-color: #8d5a3b;
    background: #fff;
    color: #8d5a3b;
    text-decoration: none;
    cursor: pointer;
}

.inq-filter-reset:hover {
    filter: brightness(1.05);
}
.inq-table .inq-table-message { max-width: 22rem; }
.inq-hint {
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    background: var(--soft-bg);
    border: 1px solid #ead8cc;
    font-size: var(--body-text-size);
    line-height: var(--body-text-lh);
    color: var(--body-text-color);
    max-width: 48rem;
}
.inq-card {
    background: #fff;
    border: 1px solid #ead8cc;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(61, 42, 34, 0.06);
}

.site-content-form {
    padding: 1.35rem 1.4rem 1.6rem;
}

.site-content-section {
    margin-bottom: 2.4rem;
}

.site-content-section:last-of-type {
    margin-bottom: 1.25rem;
}

.site-content-section h4 {
    margin: 0 0 1rem;
    color: #6b3e26;
    font-size: 1.35rem;
    font-weight: 800;
}

/* Site content editor: avoid edge-to-edge inputs on wide monitors */
.site-content-form .input input[type="text"],
.site-content-form .input input[type="email"],
.site-content-form .input input[type="tel"],
.site-content-form .input input[type="url"],
.site-content-form .input input[type="number"],
.site-content-form .input input[type="password"],
.site-content-form .input input[type="search"],
.site-content-form .input input[type="date"],
.site-content-form .input input[type="time"],
.site-content-form .input select,
.site-content-form .input textarea {
    max-width: 42rem;
    width: 100%;
}
.inq-table-wrap { overflow-x: auto; }
.inq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--body-text-size);
    line-height: var(--body-text-lh);
    color: var(--body-text-color);
}
.inq-table th {
    text-align: left;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, var(--soft-bg) 0%, #f7ede4 100%);
    color: #6b3e26;
    font-weight: 700;
    border-bottom: 1px solid #ead8cc;
    white-space: nowrap;
}
.inq-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f0e4dc;
    vertical-align: top;
}
.inq-table tbody tr:hover { background: var(--card-bg); }
.inq-table .col-msg { max-width: 14rem; }
.inq-table small { font-size: 0.92em; }
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #f4d8c2;
    color: #6b3e26;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: none;
}
.status-badge.status-badge--new {
    background: #fde9d6;
    color: #8d341a;
}
.status-badge.status-badge--in-progress {
    background: #fff1da;
    color: #946126;
}
.status-badge.status-badge--answered {
    background: #e6f4ea;
    color: #24532f;
}
.status-badge.status-badge--closed {
    background: #ebe6e2;
    color: #5c534d;
}
.inq-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.inq-actions a, .inq-actions .button {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}
.inq-actions a.btn-view {
    background: #8d5a3b;
    color: #fff;
}
.inq-actions a.btn-view:hover { filter: brightness(1.05); color: #fff; }
.inq-actions a.btn-edit {
    border: 1px solid #8d5a3b;
    color: #8d5a3b;
    background: #fff;
}
.inq-actions a.btn-ai,
.btn-ai {
    border: 1px solid #8d5a3b;
    background: #8d5a3b;
    color: #ffffff;
    text-decoration: none;
}
.inq-actions a.btn-ai:hover,
.btn-ai:hover,
.btn-ai:focus {
    filter: brightness(1.05);
    color: #ffffff;
}
.reply-pill {
    display: inline-block;
    min-width: 1.5rem;
    text-align: center;
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
    background: #e8f0e8;
    color: #2d4a2d;
    font-weight: 800;
    font-size: 0.95rem;
}
.reply-pill--zero { background: #f0ebe8; color: #7a6a62; }
.cust-guest { color: #998e88; font-style: italic; }
.inq-paginator { padding: 1rem 1.25rem; background: var(--soft-bg); border-top: 1px solid var(--border); }
.inq-paginator ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.inq-paginator li { margin: 0; display: inline; }
.inq-paginator a, .inq-paginator span {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 1.1rem;
}
.inq-paginator a { color: #8d5a3b; font-weight: 600; text-decoration: none; }
.inq-paginator a:hover { background: #f4d8c2; }
.inq-paginator .active span { background: #8d5a3b; color: #fff; font-weight: 700; }
.inq-paginator-meta,
.inq-paginator > p {
    margin: 0.5rem 0 0;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.24rem;
    font-weight: 500;
    line-height: 1.45;
    color: #49382f;
}
.inq-empty {
    padding: 1.5rem 1.25rem;
    margin: 0;
    font-size: var(--body-text-size);
    line-height: var(--body-text-lh);
    color: var(--body-text-color);
    font-weight: 600;
}

/* Shared staff management pages */
.staff-admin-page {
    width: 100%;
    max-width: 128rem;
    margin: 0 auto;
    padding: 1.6rem 0 3rem;
    color: #49382f;
    --staff-brown: #7b4a33;
    --staff-brown-dark: #5f3425;
    --staff-border: var(--border);
    --staff-soft: var(--soft-bg);
    --staff-red: #c94d2b;
    --staff-green: #2f7a46;
    --staff-blue: #2d76cf;
    --staff-gold: #c88913;
}

.staff-admin-page a {
    text-decoration: none;
}

.staff-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    min-height: 9.8rem;
    margin-bottom: 1.6rem;
    overflow: hidden;
}

.staff-hero-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.7rem;
    min-width: 0;
}

.staff-hero-icon,
.staff-section-icon,
.staff-stat-icon,
.staff-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.staff-hero-icon {
    width: 5.8rem;
    height: 5.8rem;
    border: 1px solid #f0d7cb;
    border-radius: 14px;
    background: #fff6f1;
    color: var(--staff-red);
}

.staff-hero-icon .cc-icon {
    width: 2.9rem;
    height: 2.9rem;
    stroke-width: 1.9;
}

.staff-hero h1 {
    margin: 0;
    color: #3c2a24;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
}

.staff-hero p,
.staff-form-card-head p,
.staff-stat-card small,
.staff-last-updated {
    margin: 0;
    color: #5d4a42;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0;
}

.staff-hero p {
    margin-top: 0.55rem;
    max-width: 68rem;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.45;
}

.staff-hero-actions {
    position: relative;
    z-index: 1;
    margin-left: auto;
}

.staff-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    margin-bottom: 1.4rem;
}

.staff-stat-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1.6rem;
    min-height: 8.1rem;
    padding: 1.45rem 1.55rem;
    border: 1px solid var(--staff-border);
    border-radius: 10px;
    background: var(--card-bg);
    box-shadow: 0 10px 28px rgba(61, 42, 34, 0.04);
}

.staff-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.2rem;
    height: 5.2rem;
    margin: 0;
    padding: 0;
    border-radius: 999px;
}

.staff-stat-icon .cc-icon,
.staff-section-icon .cc-icon,
.staff-row-icon .cc-icon {
    display: block;
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    stroke-width: 1.9;
}

.staff-stat-icon--gold,
.staff-row-icon--gold,
.staff-section-icon--gold {
    background: #fff2cf;
    color: var(--staff-gold);
}

.staff-stat-icon--red,
.staff-row-icon--red,
.staff-section-icon--red {
    background: #fff0e8;
    color: var(--staff-red);
}

.staff-stat-icon--green {
    background: #e6f4ea;
    color: var(--staff-green);
}

.staff-stat-icon--blue {
    background: #e9f1ff;
    color: var(--staff-blue);
}

.staff-stat-card span:not(.staff-stat-icon) {
    display: block;
    margin-bottom: 0.35rem;
    color: #4b3a31;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.22rem;
    font-weight: 650;
    line-height: 1.2;
}

.staff-stat-card strong {
    display: block;
    color: #3c2a24;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.staff-stat-card small {
    display: block;
    margin-top: 0.45rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.staff-stats-grid--clickable-cards {
    align-items: stretch;
}

.staff-stat-card--link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    min-height: 9rem;
    padding: 1.35rem 1.1rem 1.55rem;
    border: 1px solid var(--staff-border);
    border-radius: 10px;
    background: var(--card-bg);
    box-shadow: 0 10px 28px rgba(61, 42, 34, 0.04);
    color: inherit;
    text-decoration: none;
    text-align: center;
    transition:
        border-color 0.16s ease,
        box-shadow 0.18s ease,
        transform 0.16s ease;
}

.staff-stat-card--link:hover {
    border-color: rgba(141, 90, 59, 0.45);
    box-shadow: 0 14px 34px rgba(61, 42, 34, 0.08);
    transform: translateY(-2px);
}

.staff-stat-card--link:focus-visible {
    outline: 2px solid rgba(141, 90, 59, 0.55);
    outline-offset: 3px;
}

.staff-stat-card--link-active {
    border-color: rgba(141, 90, 59, 0.55);
    box-shadow:
        0 12px 32px rgba(61, 42, 34, 0.08),
        0 0 0 2px rgba(201, 124, 46, 0.14);
}

.staff-stat-card--link .staff-stat-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.staff-stats-grid--clickable-cards .staff-stat-icon {
    flex-shrink: 0;
}

.staff-stats-grid--clickable-cards .staff-stat-card__label {
    display: block;
    margin: 0 0 0.35rem;
    color: #4b3a31;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.22rem;
    font-weight: 650;
    line-height: 1.25;
}

.staff-stats-grid--clickable-cards .staff-stat-card__value {
    display: block;
    margin: 0;
    color: #3c2a24;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.06;
}

.staff-stats-grid--clickable-cards .staff-stat-card__hint {
    display: block;
    margin: 0.45rem 0 0;
    color: #5d4a42;
    font-size: 1.06rem;
    font-weight: 500;
}

.staff-filter-panel,
.staff-table-card,
.staff-form-card {
    border: 1px solid var(--staff-border);
    border-radius: 10px;
    background: var(--card-bg);
    box-shadow: 0 10px 28px rgba(61, 42, 34, 0.035);
}

.staff-filter-panel {
    margin-bottom: 1.4rem;
    padding: 1.45rem 1.75rem;
}

.staff-filter-form {
    display: grid;
    grid-template-columns: minmax(16rem, 0.9fr) minmax(16rem, 0.9fr) minmax(26rem, 1.55fr) auto;
    align-items: end;
    gap: 1.4rem;
    margin: 0;
}

.staff-admin-page--users .staff-filter-form {
    grid-template-columns: minmax(20rem, 0.9fr) minmax(34rem, 2fr) auto;
}

.staff-filter-field,
.staff-filter-field .input,
.staff-inline-search .input,
.staff-input {
    margin: 0;
}

.staff-filter-field label,
.staff-input label {
    display: block;
    margin: 0 0 0.45rem;
    color: #7a6257;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.2;
}

.staff-control,
.staff-filter-field select.staff-control,
.staff-filter-field input.staff-control,
.staff-input input.staff-control,
.staff-input textarea.staff-control {
    width: 100%;
    min-height: 4.3rem;
    margin: 0;
    padding: 0.8rem 1.1rem;
    border: 1px solid #d7bfb0;
    border-radius: 8px;
    background-color: #fff;
    color: #49382f;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
}

.staff-control--textarea,
.staff-input textarea.staff-control {
    min-height: 7.6rem;
    resize: vertical;
}

.staff-select,
select.staff-select {
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%238d5a3b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.1rem;
    appearance: none;
    -webkit-appearance: none;
}

.staff-control:focus,
.staff-btn:focus,
.staff-action-btn:focus {
    outline: none;
    border-color: #a56c49;
    box-shadow: 0 0 0 3px rgba(141, 90, 59, 0.16);
}

.staff-filter-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.staff-filter-actions .submit {
    margin: 0;
}

.staff-btn,
button.staff-btn,
a.staff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 4.3rem;
    margin: 0;
    padding: 0.75rem 1.55rem;
    border: 1px solid var(--staff-brown);
    border-radius: 8px;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.22rem;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
}

.staff-btn--primary,
button.staff-btn--primary,
a.staff-btn--primary {
    background: linear-gradient(180deg, #a66742 0%, #8d5735 100%);
    color: #fff;
}

.staff-btn--primary:hover,
.staff-btn--primary:focus {
    color: #fff;
    filter: brightness(1.04);
}

.staff-btn--ghost,
a.staff-btn--ghost {
    background: #fff;
    color: var(--staff-brown);
}

.staff-btn--ghost:hover,
.staff-btn--ghost:focus {
    color: var(--staff-brown-dark);
    background: var(--soft-bg);
}

.staff-btn--block {
    width: 100%;
}

.staff-btn-icon {
    width: 1.6rem;
    height: 1.6rem;
    stroke-width: 2;
}

.staff-table-card {
    overflow: hidden;
}

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

.staff-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: #49382f;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.24rem;
    line-height: 1.45;
}

.staff-table th {
    padding: 1.25rem 1.45rem;
    border-bottom: 1px solid var(--staff-border);
    background: linear-gradient(180deg, var(--soft-bg) 0%, #f7ede4 100%);
    color: #6b3e26;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}

.staff-table th a {
    color: inherit;
}

.staff-table td {
    padding: 1.18rem 1.45rem;
    border-bottom: 1px solid #efe2da;
    vertical-align: middle;
}

.staff-table tbody tr:last-child td {
    border-bottom: 0;
}

.staff-table tbody tr:hover {
    background: var(--soft-bg);
}

.staff-table strong {
    color: #46342d;
    font-weight: 800;
}

.staff-table small,
.staff-muted {
    display: inline-block;
    margin-top: 0.25rem;
    color: #88776f;
    font-size: 1.12rem;
    line-height: 1.35;
}

.staff-muted--italic {
    font-style: italic;
}

.staff-link {
    color: #1c78b6;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.staff-link:hover,
.staff-link:focus {
    color: #0f5e94;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.staff-date {
    color: #49382f;
    font-size: 1.14rem;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
}

.staff-message-cell {
    max-width: 31rem;
    color: #4b3a31;
    font-weight: 650;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    line-height: 1.45;
}

.staff-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.staff-row-actions form {
    margin: 0;
}

.staff-action-btn,
.staff-row-actions a.staff-action-btn,
.staff-row-actions button.staff-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 3.2rem;
    margin: 0;
    padding: 0.55rem 0.9rem;
    border: 1px solid #c99f86;
    border-radius: 7px;
    background: #fff;
    color: var(--staff-brown);
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.staff-action-btn:hover,
.staff-action-btn:focus {
    background: #fff8f3;
    color: var(--staff-brown-dark);
}

.staff-action-btn--danger,
.staff-row-actions a.staff-action-btn--danger,
.staff-row-actions button.staff-action-btn--danger {
    border-color: #d29a90;
    color: #b7352c;
}

.staff-category-chip,
.staff-course-title,
.staff-order-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.staff-category-chip {
    max-width: 14rem;
}

.staff-category-icon {
    width: 1.9rem;
    height: 1.9rem;
}

.staff-category-chip > span:first-child,
.staff-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 999px;
}

.staff-category-chip--general > span:first-child {
    background: #e6f4ea;
    color: var(--staff-green);
}

.staff-category-chip--pottery > span:first-child,
.staff-category-chip--payment > span:first-child {
    background: #fff2cf;
    color: var(--staff-gold);
}

.staff-category-chip--knitting > span:first-child {
    background: #fff0e8;
    color: var(--staff-red);
}

.staff-category-chip strong {
    white-space: normal;
}

.staff-status-pill,
.staff-role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

.staff-status-pill--active,
.staff-role-pill--product-owner {
    background: #e6f4ea;
    color: #226139;
}

.staff-status-pill--hidden {
    background: #eee8e4;
    color: #65554d;
}

.staff-role-pill--staff {
    background: #e9f1ff;
    color: #2d5f9e;
}

.staff-role-pill--tutor {
    background: #fff0e8;
    color: #a4492f;
}

.staff-course-title > span:last-child {
    min-width: 0;
}

.staff-course-title small {
    display: block;
}

.staff-drag-icon {
    width: 1.7rem;
    height: 1.7rem;
    color: var(--staff-brown);
}

.staff-order-cell strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.3rem;
    height: 3.3rem;
    border: 1px solid #f0dfd4;
    border-radius: 7px;
    background: #fff8f3;
    color: #7b4a33;
}

.staff-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.45rem 1.9rem;
    border-bottom: 1px solid var(--staff-border);
}

.staff-inline-search {
    flex: 0 1 40rem;
    margin: 0;
}

.staff-search-shell {
    position: relative;
}

.staff-search-shell .input {
    margin: 0;
}

.staff-search-shell input.staff-control {
    padding-left: 4rem;
}

.staff-search-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 1.35rem;
    width: 1.65rem;
    height: 1.65rem;
    color: #7b4a33;
    transform: translateY(-50%);
}

.staff-table-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem 1.9rem;
    border-top: 1px solid var(--staff-border);
    color: #5d4a42;
    font-size: 1.14rem;
}

.staff-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 37rem;
    gap: 1.6rem;
    align-items: start;
}

.staff-content-main {
    display: grid;
    gap: 1.3rem;
}

.staff-content-side {
    display: grid;
    gap: 1.3rem;
    position: sticky;
    top: 1rem;
}

.staff-form-card {
    padding: 1.55rem 1.75rem;
}

.staff-form-card-head {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.45rem;
}

.staff-form-card-head h2 {
    margin: 0 0 0.35rem;
    color: #3c2a24;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
}

.staff-form-card-head p {
    font-size: 1.16rem;
    line-height: 1.45;
}

.staff-section-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
}

.staff-section-icon--plain {
    color: var(--staff-brown);
    background: #fff;
}

.staff-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
}

.staff-input--wide {
    grid-column: 1 / -1;
}

.staff-input .help {
    margin-top: 0.55rem;
    color: #7b6a62;
    font-size: 1.05rem;
    line-height: 1.35;
}

.site-content-form {
    padding: 0;
}

.site-content-form .input input[type="text"],
.site-content-form .input input[type="email"],
.site-content-form .input input[type="tel"],
.site-content-form .input input[type="url"],
.site-content-form .input input[type="number"],
.site-content-form .input input[type="password"],
.site-content-form .input input[type="search"],
.site-content-form .input input[type="date"],
.site-content-form .input input[type="time"],
.site-content-form .input select,
.site-content-form .input textarea {
    max-width: none;
}

.site-preview-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 18rem;
    padding: 2.1rem;
    overflow: hidden;
    border-radius: 8px;
    background-image:
        linear-gradient(90deg, rgba(83, 47, 31, 0.68), rgba(83, 47, 31, 0.22)),
        url("../img/footer.png");
    background-position: center, left bottom;
    background-repeat: no-repeat;
    background-size: cover, cover;
    color: #fff;
}

.site-preview-hero strong {
    max-width: 24rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.15rem;
    line-height: 1.08;
}

.site-preview-hero span {
    display: block;
    max-width: 24rem;
    margin-top: 0.9rem;
    font-size: 1.1rem;
    font-weight: 650;
    line-height: 1.45;
}

.site-preview-hero em {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 1.4rem;
    padding: 0.7rem 1.35rem;
    border-radius: 6px;
    background: #a66742;
    color: #fff;
    font-style: normal;
    font-weight: 800;
}

.site-preview-frame {
    width: 100%;
    margin-inline: auto;
    overflow: hidden;
    border-radius: 8px;
    transition:
        max-width 0.3s ease,
        box-shadow 0.28s ease;
}

.site-preview-frame--desktop {
    max-width: 100%;
}

.site-preview-frame--mobile {
    max-width: 19.5rem;
    box-shadow:
        0 0 0 1px rgba(61, 42, 34, 0.08),
        0 14px 32px rgba(61, 42, 34, 0.1);
}

.site-preview-frame--mobile .site-preview-hero {
    min-height: 20rem;
    padding: 1.65rem;
}

.site-preview-frame--mobile .site-preview-hero strong {
    max-width: none;
    font-size: 1.55rem;
}

.site-preview-frame--mobile .site-preview-hero span {
    max-width: none;
    font-size: 0.98rem;
}

.site-preview-frame--mobile .site-preview-hero em {
    margin-top: 1.1rem;
    padding: 0.58rem 1.1rem;
    font-size: 0.88rem;
}

.site-preview-devices {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1rem;
}

.site-preview-device {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0;
    padding: 0.45rem 0.72rem;
    border: none;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #b09a90;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.16s ease,
        border-color 0.18s ease;
}

.site-preview-device:hover,
.site-preview-device:focus-visible {
    color: var(--staff-brown);
}

.site-preview-device.is-active {
    border-bottom-color: var(--staff-brown);
    color: var(--staff-brown-dark);
}

.site-preview-device:focus-visible {
    outline: 2px solid rgba(141, 90, 59, 0.45);
    outline-offset: 3px;
}

.site-preview-device-icon.cc-icon {
    width: 2.15rem;
    height: 2.15rem;
    stroke-width: 2;
}

.staff-last-updated {
    margin-bottom: 1.1rem;
    padding: 1rem;
    border: 1px solid #f0dfd4;
    border-radius: 8px;
    background: var(--soft-bg);
    font-size: 1.12rem;
}

.staff-last-updated span,
.staff-last-updated strong {
    display: block;
}

.staff-last-updated strong {
    margin-top: 0.25rem;
    color: #49382f;
    font-weight: 750;
}

.staff-publish-card .staff-btn + .staff-btn {
    margin-top: 0.9rem;
}

.staff-tip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.4rem 0 0;
    padding: 0.95rem 1.2rem;
    border: 1px solid var(--staff-border);
    border-radius: 8px;
    background: var(--soft-bg);
    color: #5d4a42;
    font-size: 1.12rem;
}

.staff-tip-icon {
    width: 1.6rem;
    height: 1.6rem;
    color: var(--staff-brown);
}

.staff-table--enquiries {
    min-width: 106rem;
}

.staff-table--enquiries th:nth-child(5),
.staff-table--enquiries td:nth-child(5) {
    width: 11.5rem;
}

.staff-table--enquiries th:nth-child(7),
.staff-table--enquiries td:nth-child(7) {
    width: 12.5rem;
}

.staff-table--enquiries th:nth-child(8),
.staff-table--enquiries td:nth-child(8) {
    width: 15.6rem;
}

.staff-table--enquiries .staff-row-actions {
    flex-wrap: nowrap;
}

.staff-table--enquiries .staff-action-btn {
    min-height: 2.9rem;
    padding: 0.48rem 0.68rem;
    font-size: 1.02rem;
}

.staff-table--courses {
    min-width: 82rem;
}

.staff-table--users {
    min-width: 104rem;
}

@media (max-width: 1180px) {
    .staff-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-filter-form,
    .staff-admin-page--users .staff-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-filter-field--wide {
        grid-column: 1 / -1;
    }

    .staff-filter-actions {
        grid-column: 1 / -1;
    }

    .staff-content-layout {
        grid-template-columns: 1fr;
    }

    .staff-content-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .staff-admin-page {
        padding-inline: 0;
    }

    .staff-hero,
    .staff-hero-main {
        align-items: flex-start;
    }

    .staff-hero {
        flex-direction: column;
    }

    .staff-hero-actions {
        margin-left: 0;
    }

    .staff-hero h1 {
        font-size: 2.8rem;
    }

    .staff-stats-grid,
    .staff-filter-form,
    .staff-admin-page--users .staff-filter-form,
    .staff-form-grid {
        grid-template-columns: 1fr;
    }

    .staff-filter-field--wide,
    .staff-filter-actions {
        grid-column: auto;
    }

    .staff-filter-actions,
    .staff-table-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-btn,
    .staff-inline-search {
        width: 100%;
    }
}

/* Feedback inbox */
.page-feedback-inbox .main > .container {
    max-width: 112rem;
    padding: 0 2rem;
}

.feedback-inbox-page {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.6rem 0 3rem;
    color: #47362f;
    font-family: Georgia, "Times New Roman", serif;
}

.feedback-inbox-hero.staff-hero {
    align-items: center;
    min-height: 9.8rem;
    margin-bottom: 1.6rem;
    overflow: hidden;
}

.feedback-inbox-hero.staff-hero h1 {
    line-height: 1.08;
}

.feedback-inbox-hero.staff-hero p {
    margin-top: 0.55rem;
    max-width: 68rem;
    color: #5d4a42;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.45;
}

.feedback-inbox-hero-icon.staff-hero-icon {
    border-color: #f0d7cb;
    border-radius: 14px;
    background: #fff6f1;
    color: #c94d2b;
}

.feedback-inbox-hero-icon.staff-hero-icon .cc-icon {
    width: 2.9rem;
    height: 2.9rem;
}

.feedback-inbox-card {
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--border, #ead8cc);
    border-radius: 18px;
    background: var(--card-bg);
    box-shadow: 0 10px 32px rgba(61, 42, 34, 0.055);
}

.feedback-toolbar {
    min-height: 8.6rem;
    padding: 1.7rem 1.8rem;
    border-bottom: 1px solid var(--border, #eadfd8);
    background: var(--card-bg);
}

.feedback-toolbar-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin: 0;
}

.feedback-search-control {
    position: relative;
    flex: 0 0 24.6rem;
}

.feedback-search-input[type="search"] {
    width: 100%;
    height: 5rem;
    margin: 0;
    padding: 0 1.8rem 0 5.5rem;
    border: 1px solid #ead8cc;
    border-radius: 999px;
    background: #fff;
    color: #4a3932;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 1px 0 rgba(61, 42, 34, 0.02);
}

.feedback-search-input[type="search"]::placeholder {
    color: #a99d97;
}

.feedback-search-input[type="search"]:focus {
    border-color: #b88466;
    box-shadow: 0 0 0 3px rgba(141, 90, 59, 0.14);
}

.feedback-search-submit {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a87864;
    cursor: pointer;
}

.feedback-search-submit:hover,
.feedback-search-submit:focus {
    background: transparent;
    color: #7b4a33;
}

.feedback-search-submit {
    transform: translateY(-50%);
}

.feedback-toolbar-icon,
.feedback-calendar-icon {
    width: 2.2rem;
    height: 2.2rem;
    stroke-width: 2.1;
}

.feedback-filter-tabs {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
    margin-left: 0.9rem;
}

.feedback-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.25rem;
    min-height: 3.45rem;
    padding: 0.2rem 0.82rem;
    border: 1px solid #eadfd8;
    border-radius: 999px;
    background: var(--soft-bg);
    color: #8d5a3b;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(61, 42, 34, 0.025);
}

.feedback-filter-chip:hover,
.feedback-filter-chip:focus {
    border-color: #cba58f;
    color: #6b3e26;
    text-decoration: none;
}

.feedback-filter-chip.is-active {
    border-color: #7a452d;
    background: linear-gradient(180deg, #9a5d3c 0%, #744127 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(92, 55, 38, 0.2);
}

.feedback-filter-chip[href*="positive"]:not(.is-active),
.feedback-badge--positive {
    background: #f0f4e8;
    color: #718e4c;
}

.feedback-filter-chip[href*="suggestion"]:not(.is-active),
.feedback-badge--suggestion {
    background: #fff6e8;
    color: #b96c2d;
}

.feedback-filter-chip[href*="payment"]:not(.is-active),
.feedback-badge--payment {
    background: #fff0ec;
    color: #c65343;
}

.feedback-filter-chip[href*="website"]:not(.is-active),
.feedback-badge--website {
    background: #fff8f4;
    color: #8d5a3b;
}

.feedback-toolbar-spacer {
    flex: 1 1 0;
    min-width: 0;
}

.feedback-sort-control {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
    min-height: 5rem;
    margin: 0;
    padding: 0 0.9rem;
    border: 1px solid #ead8cc;
    border-radius: 8px;
    background: #fff;
    color: #6b4b3d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.feedback-sort-control span {
    margin: 0;
    color: #6b4b3d;
}

.feedback-sort-control select {
    width: 12.5rem;
    height: auto;
    margin: 0;
    padding: 0.3rem 2.4rem 0.3rem 0.2rem;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%238d5a3b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.1rem center;
    color: #4a3932;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.feedback-sort-control select:focus {
    outline: none;
    box-shadow: none;
}

.feedback-calendar-control {
    position: relative;
    flex: 0 0 5rem;
    width: 5rem;
    height: 5rem;
    margin: 0;
}

.feedback-calendar-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin: 0;
    padding: 0;
    border: 1px solid #ead8cc;
    border-radius: 8px;
    background: #fff;
    color: #6b4b3d;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(61, 42, 34, 0.02);
    appearance: none;
    -webkit-appearance: none;
}

.feedback-calendar-visual:hover,
.feedback-calendar-visual:focus,
.feedback-calendar-control:hover .feedback-calendar-visual,
.feedback-calendar-control:focus-within .feedback-calendar-visual,
.feedback-calendar-control.is-active .feedback-calendar-visual {
    background: #fff;
    border-color: #cba58f;
    color: #6b3e26;
    outline: none;
    box-shadow: 0 0 0 3px rgba(141, 90, 59, 0.11);
}

.feedback-calendar-control input[type="date"].feedback-date-input {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.feedback-noscript-submit {
    margin: 0;
    border-color: #8d5a3b;
    background: #8d5a3b;
}

.feedback-table-wrap {
    overflow-x: hidden;
    background: var(--card-bg);
}

.feedback-table {
    width: 100%;
    min-width: 0;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #43332d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.62rem;
    line-height: 1.38;
}

.feedback-table th {
    height: 6.2rem;
    padding: 1.35rem 1.8rem;
    border-bottom: 1px solid #ead8cc;
    background: linear-gradient(180deg, var(--soft-bg) 0%, #f8efe8 100%);
    color: #6b3e26;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.42rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    vertical-align: middle;
}

.feedback-table th.feedback-category-cell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
}

.feedback-table th.feedback-cta-cell {
    text-align: right;
}

.feedback-table th.feedback-cta-cell {
    padding-left: 0;
    padding-right: 2rem;
}

.feedback-table td {
    height: 10.45rem;
    padding: 1.8rem 1.8rem;
    border-bottom: 1px solid #eee2dc;
    vertical-align: middle;
    overflow-wrap: anywhere;
    word-break: normal;
}

.feedback-table tr:last-child td {
    border-bottom: 0;
}

.feedback-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.feedback-row:hover,
.feedback-row:focus {
    background: var(--soft-bg);
    outline: none;
}

.feedback-row:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(141, 90, 59, 0.18);
}

.feedback-date-cell {
    width: 14rem;
    white-space: nowrap;
}

.feedback-person-cell {
    width: 21rem;
    white-space: nowrap;
}

.feedback-email-cell {
    width: 20rem;
    white-space: nowrap;
}

.feedback-category-cell {
    width: 12.8rem;
    text-align: center;
    white-space: nowrap;
}

.feedback-table td.feedback-category-cell {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

.feedback-cta-cell {
    width: 4.8rem;
    padding-left: 0;
    padding-right: 2rem;
    text-align: right;
    white-space: nowrap;
}

.feedback-row-icon {
    display: inline-block;
    width: 2.45rem;
    height: 2.45rem;
    margin-right: 1.1rem;
    color: #9d715e;
    stroke-width: 1.85;
    vertical-align: middle;
}

.feedback-date-link,
.feedback-person-link,
.feedback-email-link {
    color: #47362f;
    text-decoration: none;
    vertical-align: middle;
}

.feedback-person-link {
    display: inline-block;
    max-width: calc(100% - 4.2rem);
    overflow: hidden;
    color: #4a3932;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.42rem;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feedback-date-link {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    color: #5c463c;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.35;
}

.feedback-email-link {
    display: inline-block;
    max-width: calc(100% - 4.8rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.feedback-date-link:hover,
.feedback-date-link:focus,
.feedback-person-link:hover,
.feedback-person-link:focus,
.feedback-email-link:hover,
.feedback-email-link:focus {
    color: #6b3e26;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.feedback-message-cell {
    width: auto;
    color: #4a3932;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.48rem;
    font-weight: 700;
    line-height: 1.55;
}

.feedback-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 9.8rem;
    min-height: 3.25rem;
    padding: 0.3rem 0.85rem;
    border: 1px solid rgba(107, 62, 38, 0.08);
    border-radius: 999px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.feedback-badge:hover,
.feedback-badge:focus {
    filter: brightness(0.98);
    text-decoration: none;
}

.feedback-badge-icon {
    width: 1.55rem;
    height: 1.55rem;
    stroke-width: 2.1;
}

.feedback-badge--positive {
    border-color: #e1e9d6;
}

.feedback-badge--suggestion {
    border-color: #f3e1c8;
}

.feedback-badge--payment {
    border-color: #f3d9d2;
}

.feedback-badge--website {
    border-color: #ead8cc;
}

.feedback-row-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    color: #5e2d22;
    text-decoration: none;
}

.feedback-row-chevron:hover,
.feedback-row-chevron:focus {
    color: #8d5a3b;
}

.feedback-chevron-icon {
    width: 2.6rem;
    height: 2.6rem;
    stroke-width: 2.1;
}

.feedback-paginator {
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
}

.feedback-empty {
    margin: 0;
    padding: 2rem 1.85rem;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
}

.feedback-detail-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.25rem 0 3rem;
}

.feedback-detail-card {
    padding: 2rem;
    border: 1px solid #ead8cc;
    border-radius: 14px;
    background: var(--card-bg);
    box-shadow: 0 8px 28px rgba(61, 42, 34, 0.06);
}

.feedback-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.feedback-detail-head time {
    color: #6b534a;
    font-weight: 750;
}

.feedback-detail-card h1 {
    margin: 0 0 0.65rem;
    color: #3d2a22;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.12;
}

.feedback-detail-email {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #6b3e26;
    font-weight: 750;
    text-decoration: none;
}

.feedback-detail-message {
    padding: 1.4rem 1.5rem;
    border: 1px solid #eee2dc;
    border-radius: 10px;
    background: #fff;
    color: #4a3932;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.55rem;
    font-weight: 650;
    line-height: 1.65;
}

.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;
}

@media (max-width: 1180px) {
    .feedback-toolbar-form {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .feedback-toolbar-spacer {
        display: none;
    }

    .feedback-search-control {
        flex-basis: min(100%, 38rem);
    }
}

@media (max-width: 760px) {
    .feedback-inbox-hero.staff-hero,
    .feedback-inbox-hero .staff-hero-main {
        align-items: flex-start;
    }

    .feedback-inbox-hero.staff-hero {
        flex-direction: column;
    }

    .feedback-inbox-hero.staff-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 720px) {
    .page-feedback-inbox .main > .container {
        padding: 0 1.5rem;
    }

    .feedback-toolbar {
        padding: 1.25rem;
    }

    .feedback-filter-tabs {
        gap: 0.75rem;
    }

    .feedback-filter-chip {
        min-width: auto;
        padding-inline: 1.2rem;
        font-size: 1.42rem;
    }

    .feedback-sort-control {
        width: 100%;
    }

    .feedback-sort-control select {
        flex: 1 1 auto;
        width: auto;
    }
}

/* Enquiry detail & thread */
.eq-wrap { max-width: 1100px; margin: 0 auto; padding: 1rem 0 3rem; display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 800px) { .eq-wrap { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
    .inq-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .inq-head-actions {
        justify-content: flex-start;
    }

    .eq-ai-head {
        flex-direction: column;
    }

    .eq-ai-grid {
        grid-template-columns: 1fr;
    }
}
.eq-side {
    position: sticky; top: 0.5rem;
    padding: 1.1rem 1rem;
    border-radius: 12px;
    border: 1px solid #ead8cc;
    background: var(--soft-bg);
}
.eq-side h2 { margin: 0 0 0.75rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #6b3e26; }
.eq-side a, .eq-side button { display: block; width: 100%; margin-bottom: 0.45rem; text-align: center; }
.eq-delete-btn {
    border-color: #d46363 !important;
    color: #a83232 !important;
}
.eq-delete-btn:hover,
.eq-delete-btn:focus {
    border-color: #c94c4c !important;
    color: #8c2828 !important;
    background: #fff8f6 !important;
}
.eq-main h1 { margin: 0 0 0.5rem; color: #6b3e26; font-size: 1.65rem; }
.eq-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.65rem 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid #ead8cc;
    background: #fff;
    margin-bottom: 1.25rem;
}
.eq-meta dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8a776c; margin: 0; }
.eq-meta dd { margin: 0.15rem 0 0; font-weight: 600; color: #3d2a22; }
.eq-body {
    padding: 1.25rem 1.35rem;
    border-radius: 12px;
    border: 1px solid #ead8cc;
    background: linear-gradient(180deg, var(--card-bg) 0%, #fff 40%);
    margin-bottom: 1.5rem;
}
.eq-body h2 { margin: 0 0 0.75rem; font-size: 1rem; color: #6b3e26; }
.eq-ai {
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid #ead8cc;
    border-radius: 12px;
    background: var(--soft-bg);
}
.eq-ai-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}
.eq-ai-head h2 {
    margin: 0 0 0.25rem;
    color: #6b3e26;
    font-size: 1.1rem;
}
.eq-ai-head p,
.eq-ai-empty {
    margin: 0;
    color: #4b3a31;
    font-size: 0.92rem;
    line-height: 1.45;
}
.eq-ai-head form,
.eq-ai-actions form {
    margin: 0;
}
.eq-ai-meta,
.eq-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}
.eq-ai-meta {
    margin-bottom: 0.85rem;
    color: #466064;
    font-size: 0.88rem;
    font-weight: 750;
}
.eq-ai-urgency {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 850;
}
.eq-ai-urgency--low {
    background: #e6f4ea;
    color: #24532f;
}
.eq-ai-urgency--medium {
    background: #fff3cd;
    color: #7a5415;
}
.eq-ai-urgency--high {
    background: #fde2df;
    color: #8d251b;
}
.eq-ai-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.95rem;
}
.eq-ai-grid section {
    padding: 0.85rem;
    border: 1px solid rgba(141, 90, 59, 0.16);
    border-radius: 10px;
    background: #fff;
}
.eq-ai-grid h3 {
    margin: 0 0 0.3rem;
    color: #8d5a3b;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.eq-ai-grid p {
    margin: 0;
    color: #3d2a22;
    line-height: 1.5;
}
.eq-ai-actions .button,
.eq-ai-actions button,
.eq-ai-head .button,
.eq-ai-head button {
    margin: 0;
}
.eq-reply {
    border: 1px solid #ead8cc;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
    background: var(--soft-bg);
}
.eq-reply-head { font-size: 0.88rem; margin-bottom: 0.5rem; color: #4b3a31; }
.eq-reply-category {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    margin: 0.15rem 0.35rem 0 0;
    border-radius: 999px;
    background: #f4d8c2;
    font-size: 0.78rem;
    font-weight: 700;
}
.eq-compose {
    margin-top: 1.5rem;
    padding: 1.15rem 1.25rem;
    border-radius: 12px;
    border: 1px dashed #c4a990;
    background: #fffef9;
}
.eq-compose h3 { margin: 0 0 0.5rem; color: #6b3e26; }
.eq-staff-note {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: #eef4f8;
    border: 1px solid #c5d6e2;
    color: #2d4a5c;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Enquiry edit */
.eqe-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.eqe-head h1 { margin: 0 0 0.35rem; color: #6b3e26; }
.eqe-head p { margin: 0; color: #5c463c; line-height: 1.5; }
.eqe-section-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #6b3e26;
    line-height: 1.25;
}
.eqe-section-head > span:last-child {
    flex: 1;
    min-width: 0;
}
.eqe-section-icon {
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
    color: #8d5a3b;
}
.eqe-fieldset-legend {
    padding: 0;
    margin: 0 0 1rem;
    width: 100%;
    max-width: 100%;
}
.eqe-fieldset-legend .eqe-section-head {
    margin-bottom: 0;
}
.eqe-message-box {
    padding: 1rem 1.15rem;
    border-radius: 10px;
    background: #f6f1ec;
    border: 1px solid #e8ddd4;
    color: #3d2a22;
    margin: 0 0 1rem;
}
.eqe-message-box p:last-child {
    margin-bottom: 0;
}
.eqe-card fieldset { border: none; padding: 0; margin: 0; }
.eqe-card fieldset legend.eqe-fieldset-legend {
    float: unset;
}
.eqe-card {
    padding: 1.35rem 1.5rem;
    border-radius: 14px;
    border: 1px solid #ead8cc;
    background: #fff;
    box-shadow: 0 6px 24px rgba(61, 42, 34, 0.05);
}
.eqe-actions-top { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.eqe-actions-top a { font-weight: 600; }

/* Public contact form */
.contact-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.contact-back-link {
    margin-bottom: 0.95rem;
}

.contact-card {
    background: var(--soft-bg);
    border: 1px solid #ead8cc;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-card h1 {
    color: #6b3e26;
    margin-bottom: 0.75rem;
    text-align: center;
}

.contact-card p {
    text-align: center;
    color: #4b3a31;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-card .input,
.contact-card textarea,
.contact-card input,
.contact-card select {
    border-radius: 10px;
}

.contact-card textarea {
    min-height: 140px;
}

.contact-message-note {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.65rem 0 0;
    padding: 0.72rem 0.85rem;
    border: 1px solid #ead8cc;
    border-radius: 10px;
    background: #fff3ea;
    color: #6b3e26;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

.contact-card .contact-message-note {
    margin-bottom: 1.35rem;
    text-align: left;
}

.contact-message-note__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: #8d5a3b;
    color: #fffaf6;
    font-size: 0.95rem;
    font-weight: 800;
    font-style: normal;
}

.form-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1.15rem;
}

.form-btn {
    border-radius: 999px;
    font-weight: 700;
    min-width: 13rem;
    margin: 0;
}

.form-btn-primary {
    background-color: #8d5a3b;
    border-color: #8d5a3b;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(107, 62, 38, 0.16);
}

.form-btn-primary:hover,
.form-btn-primary:focus {
    background-color: #6b3e26;
    border-color: #6b3e26;
    color: #ffffff;
}

.form-btn-secondary {
    background-color: transparent;
    border-color: #c4a990;
    color: #8a776c;
    min-width: 10rem;
}

.form-btn-secondary:hover,
.form-btn-secondary:focus {
    background-color: #fff5ee;
    border-color: #8d5a3b;
    color: #6b3e26;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: #8d5a3b;
    text-decoration: none;
    font-weight: 600;
}

/* Former inline styles — enquiry view / edit / contact */
.eq-internal-h {
    color: #6b3e26;
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}
.eq-internal-lead {
    color: #5c463c;
    margin: 0 0 1rem;
    font-size: 0.92rem;
}
.eq-reply-time {
    color: #998e88;
}
.eq-compose-intro {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: #5c463c;
}
.eq-compose-help {
    font-size: 0.85rem;
    color: #6b534a;
    margin: 0 0 0.35rem;
}
.eqe-help {
    font-size: 0.85rem;
    color: #6b534a;
    margin: -0.5rem 0 1rem;
}
.contact-recaptcha-wrap {
    margin-top: 1rem;
    text-align: center;
}
.contact-recaptcha-off {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: #6b5346;
}

/* Public enquiry refresh */
.contact-page {
    max-width: 1120px;
    min-height: calc(100vh - 16rem);
    padding: 3.4rem 1.5rem 4rem;
}

.contact-back-link {
    margin-left: 7.5rem;
    margin-bottom: 1.7rem;
}

.contact-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 7.2rem 8rem 3.4rem;
    border-radius: 18px;
    background: rgba(255, 253, 251, 0.94);
    box-shadow: 0 22px 56px rgba(61, 42, 34, 0.09);
}

.contact-card__icon {
    position: absolute;
    top: 0;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6.4rem;
    height: 6.4rem;
    border: 1px solid #ead8cc;
    border-radius: 999px;
    background: #fdebe0;
    color: #4b3a31;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 20px rgba(61, 42, 34, 0.08);
}

.contact-card__icon .cc-icon {
    width: 3.1rem;
    height: 3.1rem;
}

.contact-card h1 {
    margin: 0 auto 1rem;
    text-align: center;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #4a3728;
}

.contact-card > p {
    max-width: 580px;
    margin: 0 auto;
    color: #5b4b43;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.45;
}

.contact-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.95rem;
    margin: 2rem 0 2.3rem;
    color: #7c9b73;
}

.contact-divider span {
    width: 8rem;
    height: 1px;
    background: #e0c6b2;
}

.contact-divider .cc-icon {
    width: 5rem;
    height: 5rem;
}

#enquiry-contact-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.contact-card .input {
    margin: 0 0 1.45rem;
}

.contact-card label {
    display: block;
    margin-bottom: 0.58rem;
    color: #3d2a22;
    font-size: 1.22rem;
    font-weight: 850;
}

.contact-card input.contact-input,
.contact-card select.contact-input,
.contact-card textarea.contact-input {
    width: 100%;
    border: 1px solid #dac8bc;
    border-radius: 10px;
    background-color: #fffdfb;
    color: #3d2a22;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 550;
    box-shadow: none;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.contact-card input.contact-input,
.contact-card select.contact-input {
    min-height: 4.6rem;
    padding: 0.8rem 1.25rem;
}

.contact-card input.contact-input:focus,
.contact-card select.contact-input:focus,
.contact-card textarea.contact-input:focus {
    border-color: #b4896e;
    box-shadow: 0 0 0 3px rgba(141, 90, 59, 0.12);
    outline: 0;
}

.contact-card input.contact-input::placeholder,
.contact-card textarea.contact-input::placeholder {
    color: #9c928c;
}

.contact-input--name,
.contact-input--email {
    padding-left: 4.35rem !important;
    background-repeat: no-repeat;
    background-position: 1.28rem center;
    background-size: 1.5rem 1.5rem;
}

.contact-input--name {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%234b3a31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E");
}

.contact-input--email {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%234b3a31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}

.contact-card textarea.contact-input {
    min-height: 15rem;
    padding: 1.2rem 1.25rem;
    resize: vertical;
}

.contact-card .contact-message-note {
    justify-content: flex-start;
    margin: 0.25rem 0 1.65rem;
    padding: 1.1rem 1.25rem;
    border-color: #ead8cc;
    border-radius: 10px;
    background: #fff8f1;
    color: #5b4b43;
    font-size: 1.1rem;
}

.contact-message-note__icon {
    width: 1.85rem;
    height: 1.85rem;
    background: #8d5a3b;
}

.contact-card .form-actions {
    justify-content: flex-end;
    margin-top: 1rem;
}

.contact-card .form-btn {
    min-width: 13.5rem;
    min-height: 3.9rem;
    font-size: 1.08rem;
}

.contact-card .back-link {
    margin-top: 0;
    color: #8d5a3b;
    font-size: 1.05rem;
    font-weight: 850;
}

@media (max-width: 860px) {
    .contact-back-link {
        margin-left: 0;
    }

    .contact-card {
        padding: 6rem 2rem 2.4rem;
    }
}

/* Fix long enquiry text overflow in inbox and detail view */
.inq-table {
    table-layout: fixed;
}

.inq-table td,
.inq-table th {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.inq-table .col-msg {
    max-width: 16rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.eq-body,
.eq-body p,
.eq-reply,
.eq-reply p {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.eq-main {
    min-width: 0;
}

.eqe-readonly {
    margin-bottom: 1.2rem;
    padding: 1rem;
    border: 1px solid #ead8cc;
    border-radius: 8px;
    background: var(--soft-bg);
}

.eqe-readonly h2 {
    margin-top: 0;
    color: #6b3e26;
    font-size: 1.35rem;
}

.dashboard-page {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.8rem 1rem 3rem;
    box-sizing: border-box;
    --dash-ink: #3d2a22;
    --dash-soft: #6b534a;
    --dash-accent: #9c603b;
    --dash-accent-dark: #6b3e26;
    --dash-gold: #bd8b1d;
    --dash-line: #ead8cc;
    --dash-card: var(--soft-bg);
}

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.1rem;
}

.dashboard-hero h1 {
    position: relative;
    margin: 0 0 0.35rem;
    color: var(--dash-ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(3.2rem, 4vw, 4.8rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
}

.dashboard-hero h1::after {
    content: "";
    display: block;
    width: 3.1rem;
    height: 0.2rem;
    margin-top: 0.55rem;
    border-radius: 999px;
    background: var(--dash-gold);
}

.dashboard-hero p {
    margin: 0;
    color: var(--dash-soft);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.45;
}

.dashboard-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.85rem;
    padding: 0 1.05rem;
    border: 1px solid var(--dash-line);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--dash-soft);
    font-size: 1.18rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(61, 42, 34, 0.04);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-stat-card {
    position: relative;
    display: block;
    min-height: 14rem;
    padding: 2rem 2rem 2.35rem 9.2rem;
    overflow: hidden;
    border: 1px solid var(--dash-line);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--dash-card) 100%);
    box-shadow: 0 14px 32px rgba(61, 42, 34, 0.06);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.dashboard-stat-card:hover,
.dashboard-stat-card:focus {
    border-color: rgba(156, 96, 59, 0.5);
    box-shadow: 0 18px 38px rgba(61, 42, 34, 0.11);
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
}

.dashboard-stat-card:focus {
    outline: 3px solid rgba(189, 139, 29, 0.22);
    outline-offset: 3px;
}

.dashboard-stat-card .dashboard-icon {
    position: absolute;
    left: 2rem;
    top: 2rem;
}

.dashboard-stat-card__label {
    display: block;
    margin: 0 0 0.45rem;
    color: var(--dash-soft);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
}

.dashboard-stat-card strong {
    display: block;
    color: var(--dash-ink);
    font-family: var(--font-dashboard-stat), sans-serif;
    font-size: 3.7rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.dashboard-stat-card__wave {
    position: absolute;
    right: 0;
    bottom: 1.4rem;
    left: 0;
    height: 3.2rem;
    opacity: 0.85;
}

.dashboard-stat-card__wave::before {
    content: "";
    position: absolute;
    right: -0.5rem;
    bottom: 0.7rem;
    left: -0.5rem;
    height: 2.3rem;
    border-top: 2px solid rgba(224, 128, 106, 0.72);
    border-radius: 55% 48% 0 0;
    transform: rotate(-2deg);
}

.dashboard-stat-card__wave::after {
    content: "";
    position: absolute;
    right: -1rem;
    bottom: -0.25rem;
    left: -1rem;
    height: 2.3rem;
    border-top: 2px solid rgba(224, 128, 106, 0.38);
    border-radius: 48% 55% 0 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.dashboard-panel {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 43rem;
    padding: 2rem 2.2rem 1.3rem;
    border: 1px solid var(--dash-line);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--soft-bg) 100%);
    box-shadow: 0 14px 34px rgba(61, 42, 34, 0.06);
}

.dashboard-panel-head,
.dashboard-panel-title,
.dashboard-activity-row,
.dashboard-payment-meta {
    display: flex;
    align-items: center;
}

.dashboard-panel-head {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-panel-title {
    gap: 1rem;
    min-width: 0;
}

.dashboard-panel-title h2 {
    margin: 0;
    color: var(--dash-ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.dashboard-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #b45d4a;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-panel-link:hover,
.dashboard-panel-link:focus {
    color: var(--dash-accent-dark);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.dashboard-activity-list {
    display: grid;
    align-content: start;
}

.dashboard-activity-row {
    justify-content: space-between;
    gap: 1rem;
    min-height: 6.8rem;
    padding: 1.05rem 0;
    border-bottom: 1px solid rgba(234, 216, 204, 0.88);
}

.dashboard-activity-row strong {
    display: block;
    margin: 0 0 0.25rem;
    color: var(--dash-ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.25;
}

.dashboard-activity-row span,
.dashboard-activity-row em {
    display: block;
    color: var(--dash-soft);
    font-size: 1.08rem;
    font-weight: 650;
    line-height: 1.35;
}

.dashboard-activity-row em {
    margin-top: 0.2rem;
    font-style: normal;
}

.dashboard-activity-row--stacked {
    align-items: flex-start;
    min-height: 7.6rem;
}

.dashboard-activity-row--payment {
    align-items: flex-start;
}

.dashboard-payment-meta {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.dashboard-payment-meta strong {
    margin: 0;
    font-size: 1.18rem;
}

.dashboard-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.2rem;
    padding: 0.32rem 0.62rem;
    border-radius: 7px;
    background: #edf4dc;
    color: #627a45;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.dashboard-status--new {
    background: #fde8dd;
    color: #b45d4a;
}

.dashboard-status--in-progress,
.dashboard-status--upcoming {
    background: #fff1d9;
    color: #9a6b1c;
}

.dashboard-status--closed {
    background: #efe8e2;
    color: var(--dash-soft);
}

.dashboard-panel-foot {
    display: flex;
    justify-content: center;
    padding-top: 1.25rem;
}

.dashboard-empty {
    margin: 1.5rem 0;
    color: var(--dash-soft);
    font-weight: 700;
}

.dashboard-icon {
    position: relative;
    display: inline-flex;
    flex: 0 0 5.4rem;
    width: 5.4rem;
    height: 5.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #faebde;
    color: #7a5a48;
}

.dashboard-panel-title .dashboard-icon,
.dashboard-date-pill .dashboard-icon {
    flex-basis: 3.6rem;
    width: 3.6rem;
    height: 3.6rem;
}

.dashboard-date-pill .dashboard-icon {
    flex-basis: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: transparent;
}

.dashboard-icon__svg {
    width: 2.45rem;
    height: 2.45rem;
    stroke-width: 1.9;
}

.dashboard-panel-title .dashboard-icon__svg {
    width: 1.7rem;
    height: 1.7rem;
}

.dashboard-date-pill .dashboard-icon__svg {
    width: 1.45rem;
    height: 1.45rem;
    stroke-width: 2.2;
}

@media (max-width: 1180px) {
    .dashboard-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .dashboard-page {
        padding: 1.5rem 0.85rem 2rem;
    }

    .dashboard-hero {
        flex-direction: column;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-stat-card {
        min-height: 11.5rem;
    }

    .dashboard-panel {
        padding: 1.4rem;
    }

    .dashboard-panel-head,
    .dashboard-activity-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-payment-meta {
        align-items: flex-start;
    }
}

/* Staff edit/view pages */
.staff-editor-page {
    max-width: 112rem;
    padding-top: 1.35rem;
}

.staff-editor-page--faq,
.staff-editor-page--user-form {
    max-width: 100rem;
}

.staff-enquiry-edit-page {
    max-width: 94rem;
}

.staff-enquiry-page {
    max-width: 108rem;
}

.staff-editor-page::before,
.staff-editor-page::after {
    content: "";
    position: fixed;
    bottom: 0;
    z-index: -1;
    width: 18rem;
    height: 34rem;
    pointer-events: none;
    background: url("../img/footer.png") center bottom / contain no-repeat;
    opacity: 0.18;
}

.staff-editor-page::before {
    left: -3rem;
    transform: scaleX(-1);
}

.staff-editor-page::after {
    right: -2.2rem;
}

.staff-editor-hero,
.staff-editor-card,
.staff-editor-actions-card,
.staff-enquiry-card {
    border: 1px solid #ead8cc;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(61, 42, 34, 0.055);
}

.staff-editor-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 10.2rem;
    margin-bottom: 1.3rem;
    padding: 1.35rem 2rem;
    overflow: hidden;
}

.staff-editor-hero--wide {
    padding: 0;
}

.staff-editor-hero--plain {
    justify-content: flex-start;
}

.staff-editor-hero-art {
    align-self: stretch;
    flex: 0 0 18rem;
    min-height: 10.2rem;
    background: url("../img/footer.png") left center / cover no-repeat;
}

.staff-editor-hero-icon,
.staff-editor-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff1ea;
    color: #9d5736;
}

.staff-editor-hero-icon {
    width: 5.4rem;
    height: 5.4rem;
    border: 1px solid #eed3c4;
}

.staff-editor-hero-icon .cc-icon,
.staff-editor-feature-icon .cc-icon {
    width: 2.6rem;
    height: 2.6rem;
    stroke-width: 1.8;
}

.staff-editor-hero-copy {
    min-width: 0;
}

.staff-editor-hero-copy h1,
.staff-editor-feature-head h1,
.staff-editor-detail-card h1,
.staff-enquiry-head h1 {
    margin: 0;
    color: #3c2a24;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: 0;
}

.staff-editor-hero-copy h1,
.staff-editor-feature-head h1,
.staff-editor-detail-card h1 {
    font-size: 3.25rem;
    line-height: 1.08;
}

.staff-editor-hero-copy p,
.staff-editor-feature-head p,
.staff-editor-help,
.eqe-help {
    margin: 0.55rem 0 0;
    color: #5d4a42;
    font-size: 1.22rem;
    font-weight: 500;
    line-height: 1.45;
}

.staff-editor-grid {
    display: grid;
    gap: 1.4rem;
}

.staff-editor-grid--two {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.staff-editor-grid--teacher {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.staff-editor-card,
.staff-enquiry-card {
    padding: 1.55rem 1.65rem;
}

.staff-editor-card--compact {
    align-self: start;
}

.staff-editor-card--feature {
    max-width: 98rem;
    margin: 0 auto;
    padding: 2.35rem 3rem 2.4rem;
}

.staff-editor-card--with-art {
    display: grid;
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: 2.5rem;
    padding: 0;
    overflow: hidden;
}

.staff-editor-side-art {
    min-height: 38rem;
    background: url("../img/footer.png") center bottom / cover no-repeat;
}

.staff-editor-feature-main {
    padding: 2.25rem 3rem 2.4rem 0;
}

.staff-editor-feature-head {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin-bottom: 1.45rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #ead8cc;
}

.staff-editor-feature-icon {
    width: 5.8rem;
    height: 5.8rem;
    border: 1px solid #ead8cc;
}

.staff-editor-card-title,
.staff-editor-subhead,
.staff-editor-card > h2,
.staff-editor-subcard > h3 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.2rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e4cdbf;
    color: #4a2f26;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.staff-editor-subcard > h3 {
    font-size: 1.32rem;
}

.staff-editor-card-title--legend {
    display: block;
    width: 100%;
}

.staff-editor-card-title--legend > span {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.staff-editor-card-icon {
    width: 1.7rem;
    height: 1.7rem;
    color: #9a4f32;
    stroke-width: 1.9;
}

.staff-editor-form {
    margin: 0;
}

.staff-editor-fields {
    display: grid;
    gap: 1.1rem;
}

.staff-editor-fields--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-editor-fields--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-input--wide {
    grid-column: 1 / -1;
}

.staff-editor-form--aligned .staff-input,
.staff-editor-form--aligned > .input,
.staff-enquiry-edit-card .input {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    align-items: center;
    gap: 1.2rem;
}

.staff-editor-form--aligned .staff-input label,
.staff-editor-form--aligned > .input label,
.staff-enquiry-edit-card .input label {
    margin: 0;
    color: #4a2f26;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.staff-enquiry-edit-card .input + .eqe-help {
    margin: -0.45rem 0 0 13.2rem;
    font-size: 0.98rem;
}

.staff-editor-form input:not([type="checkbox"]),
.staff-editor-form select,
.staff-editor-form textarea,
.staff-enquiry-edit-card input:not([type="checkbox"]),
.staff-enquiry-edit-card select,
.staff-enquiry-edit-card textarea,
.eq-compose textarea {
    width: 100%;
    min-height: 4.2rem;
    margin: 0;
    padding: 0.75rem 1rem;
    border: 1px solid #d7bfb0;
    border-radius: 7px;
    background: #fff;
    color: #49382f;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.16rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
}

.staff-editor-form textarea,
.staff-enquiry-edit-card textarea,
.eq-compose textarea {
    min-height: 8.2rem;
    resize: vertical;
}

.staff-editor-form input:focus,
.staff-editor-form select:focus,
.staff-editor-form textarea:focus,
.staff-enquiry-edit-card input:focus,
.staff-enquiry-edit-card select:focus,
.staff-enquiry-edit-card textarea:focus,
.eq-compose textarea:focus {
    outline: none;
    border-color: #a56c49;
    box-shadow: 0 0 0 3px rgba(141, 90, 59, 0.16);
}

.staff-editor-check {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    color: #4a2f26;
    font-size: 1.18rem;
    font-weight: 750;
}

.staff-editor-check input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    accent-color: #9a5635;
}

.staff-editor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
}

.staff-editor-actions--inside {
    margin-top: 1.25rem;
}

.staff-editor-shell {
    display: grid;
    grid-template-columns: 22rem minmax(0, 1fr);
    align-items: start;
    gap: 1.8rem;
}

.staff-editor-actions-card {
    padding: 1.25rem;
}

.staff-editor-actions-card h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.25rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid #e4cdbf;
    color: #3c2a24;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 700;
}

.staff-editor-side-link,
.staff-editor-side-button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 4.2rem;
    margin: 0 0 0.72rem;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #5b3a2c;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.18rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.staff-editor-actions-card form {
    margin: 0;
}

.staff-editor-side-link .cc-icon,
.staff-editor-side-button .cc-icon {
    flex: 0 0 auto;
    width: 1.55rem;
    height: 1.55rem;
    margin-right: 0.7rem;
    stroke-width: 2;
}

.staff-editor-side-link:hover,
.staff-editor-side-link:focus,
.staff-editor-side-button:hover,
.staff-editor-side-button:focus {
    border-color: #ead8cc;
    background: #fff8f4;
    color: #7b4a33;
}

.staff-editor-side-link--filled,
.staff-editor-side-button--primary {
    justify-content: center;
    border-color: #8d5735;
    background: linear-gradient(180deg, #a66742 0%, #8d5735 100%);
    color: #fff;
}

.staff-editor-side-link--filled:hover,
.staff-editor-side-link--filled:focus,
.staff-editor-side-button--primary:hover,
.staff-editor-side-button--primary:focus {
    color: #fff;
    filter: brightness(1.04);
}

.staff-editor-side-link--danger {
    justify-content: center;
    border-color: #cb5a45;
    color: #b83325;
}

.staff-editor-side-link--danger:hover,
.staff-editor-side-link--danger:focus {
    background: #fff3f1;
    color: #9f2d23;
}

.staff-editor-detail-card {
    padding: 2.25rem 3rem 2.6rem;
}

.staff-editor-detail-card h1 {
    margin-bottom: 1.4rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #ead8cc;
    overflow-wrap: anywhere;
}

.staff-editor-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.staff-editor-detail-list div {
    display: grid;
    grid-template-columns: 18rem minmax(0, 1fr);
    align-items: center;
    min-height: 5.5rem;
    border-bottom: 1px solid #ead8cc;
}

.staff-editor-detail-list div:last-child {
    border-bottom: 0;
}

.staff-editor-detail-list dt,
.staff-editor-detail-list dd {
    margin: 0;
}

.staff-editor-detail-list dt {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: #4a2f26;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.18rem;
    font-weight: 700;
}

.staff-editor-detail-list dt .cc-icon {
    width: 2.9rem;
    height: 2.9rem;
    padding: 0.65rem;
    border-radius: 999px;
    background: #fff1ea;
    color: #9a5738;
}

.staff-editor-detail-list dd {
    color: #49382f;
    font-size: 1.15rem;
    font-weight: 600;
}

.staff-editor-mini-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: #49382f;
    font-size: 1.08rem;
}

.staff-editor-mini-table th,
.staff-editor-mini-table td {
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid #ead8cc;
    text-align: left;
    vertical-align: top;
}

.staff-editor-mini-table th {
    color: #5b3a2c;
    font-weight: 800;
}

.staff-editor-mini-table td:last-child {
    text-align: right;
}

.staff-editor-text-action,
.staff-editor-inline-back {
    color: #a24f31;
    font-weight: 750;
}

.staff-editor-empty {
    margin: 0;
    color: #6a554b;
    font-size: 1.12rem;
    font-weight: 600;
}

.staff-editor-subcard {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #ead8cc;
}

.staff-editor-eyebrow {
    display: block;
    margin-bottom: 0.3rem;
    color: #4b7957;
    font-size: 0.98rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.staff-enquiry-layout {
    grid-template-columns: 18rem minmax(0, 1fr);
}

.staff-enquiry-head {
    margin-bottom: 0.55rem;
}

.staff-enquiry-head h1 {
    font-size: 2.1rem;
    line-height: 1.12;
}

.staff-enquiry-meta-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 1rem 2rem;
    margin: 0 0 0.85rem;
    padding: 1.05rem 1.15rem;
    border: 1px solid #ead8cc;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
}

.staff-enquiry-meta-card--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-enquiry-meta-card dt {
    margin: 0 0 0.25rem;
    color: #7a6257;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.staff-enquiry-meta-card dd {
    margin: 0;
    color: #2f231e;
    font-size: 1.08rem;
    font-weight: 700;
}

.staff-enquiry-meta-card dd strong,
.staff-enquiry-meta-card dd a {
    display: block;
}

.staff-enquiry-meta-card dd a {
    margin-top: 0.2rem;
    color: #1682bd;
}

.staff-enquiry-message-card {
    margin-bottom: 0.85rem;
}

.staff-enquiry-message-card h2,
.staff-enquiry-card h2,
.eq-compose h3 {
    margin: 0 0 0.55rem;
    color: #5b3a2c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.18rem;
    font-weight: 700;
}

.staff-enquiry-message-card p,
.staff-enquiry-card p {
    margin: 0;
    color: #49382f;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.42;
}

.staff-enquiry-card {
    margin-bottom: 0.85rem;
}

.staff-enquiry-card.eq-ai {
    padding: 1.15rem;
}

.staff-enquiry-card .eq-reply {
    margin: 0.75rem 0 0;
}

.staff-enquiry-readonly-card {
    margin-top: 1.1rem;
}

.staff-enquiry-edit-card {
    margin-top: 1.1rem;
}

.staff-enquiry-edit-card fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

@media (max-width: 1180px) {
    .staff-editor-grid--two,
    .staff-editor-grid--teacher,
    .staff-editor-shell,
    .staff-enquiry-layout {
        grid-template-columns: 1fr;
    }

    .staff-editor-actions-card {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .staff-editor-actions-card h2 {
        grid-column: 1 / -1;
    }

    .staff-editor-side-link,
    .staff-editor-side-button {
        margin-bottom: 0;
    }
}

@media (max-width: 760px) {
    .staff-editor-page {
        padding-inline: 0.85rem;
    }

    .staff-editor-page::before,
    .staff-editor-page::after {
        display: none;
    }

    .staff-editor-hero,
    .staff-editor-feature-head,
    .staff-editor-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .staff-editor-hero-art,
    .staff-editor-side-art {
        display: none;
    }

    .staff-editor-card--feature,
    .staff-editor-feature-main,
    .staff-editor-detail-card {
        padding: 1.45rem;
    }

    .staff-editor-card--with-art {
        display: block;
    }

    .staff-editor-hero-copy h1,
    .staff-editor-feature-head h1,
    .staff-editor-detail-card h1 {
        font-size: 2.45rem;
    }

    .staff-editor-fields--two,
    .staff-editor-fields--three,
    .staff-enquiry-meta-card,
    .staff-enquiry-meta-card--compact {
        grid-template-columns: 1fr;
    }

    .staff-editor-form--aligned .staff-input,
    .staff-editor-form--aligned > .input,
    .staff-enquiry-edit-card .input,
    .staff-editor-detail-list div {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .staff-enquiry-edit-card .input + .eqe-help {
        margin-left: 0;
    }

    .staff-editor-actions-card {
        grid-template-columns: 1fr;
    }
}
