/* Custom overrides kept separate from legacy custom.css */

.ticket-form-feedback-summary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.ticket-form-feedback-summary__label {
    color: #5f7085;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
}

.ticket-form-feedback-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.1;
}

.ticket-form-feedback-pill::before {
    content: '';
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.ticket-form-feedback-pill--good {
    background: rgba(var(--green-status-rgb), 0.12);
    color: var(--green-status);
}

.ticket-form-feedback-pill--bad {
    background: rgba(var(--red-status-rgb), 0.12);
    color: var(--red-status);
}

.ticket-timeline-marker-row {
    margin: 0 0 1.4rem;
    width: 100%;
    padding: 1rem 1.4rem;
    gap: 1rem;
}

.ticket-timeline-marker-row.alert.alert-info {
    background: rgba(var(--info-status-rgb), 0.12);
    border: 1px solid rgba(var(--info-status-rgb), 0.45);
    border-radius: 1.2rem;
    color: var(--info-status);
}

.ticket-timeline-marker-row.alert.alert-success {
    background: rgba(var(--green-status-rgb), 0.12);
    border: 1px solid rgba(var(--green-status-rgb), 0.45);
    border-radius: 1.2rem;
    color: var(--green-status);
}

.ticket-timeline-marker-row.alert.alert-danger {
    background: rgba(var(--red-status-rgb), 0.12);
    border: 1px solid rgba(var(--red-status-rgb), 0.45);
    border-radius: 1.2rem;
    color: var(--red-status);
}

.ticket-timeline-banner__body {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 auto;
}

.ticket-timeline-banner__content {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
    flex: 1 1 auto;
}

.ticket-timeline-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: currentColor;
    margin-top: 0.1rem;
}

.ticket-timeline-banner__icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.ticket-timeline-banner__text {
    margin: 0;
    min-width: 0;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1.4;
    flex: 1 1 auto;
}

.ticket-timeline-banner__link {
    color: inherit;
    text-decoration: none;
    font-weight: 400;
    transition: opacity 120ms ease, text-decoration-color 120ms ease;
}

.ticket-timeline-banner__link:hover,
.ticket-timeline-banner__link:focus {
    color: inherit;
    opacity: 0.88;
    text-decoration: underline;
}

.ticket-timeline-banner__comment {
    margin: 0;
    min-width: 0;
    color: inherit;
    font-size: 1.35rem;
    line-height: 1.55;
}

.checklist-editor--root-only {
    border-color: #c1d3a3;
    background: #d4e3b6;
}

.checklist-editor--scoped .checklist-editor__header {
    flex-wrap: wrap;
}

.checklist-editor--scoped .checklist-editor__summary {
    display: grid;
    gap: 0.35rem;
}

.checklist-editor__summary {
    display: grid;
    gap: 0.35rem;
}

.checklist-editor__scope {
    color: #5f7085;
    font-size: 1.25rem;
    line-height: 1.4;
}

.checklist-editor--scoped .checklist-editor__actions {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.checklist-editor__visibility-control {
    display: grid;
    gap: 0.35rem;
    color: #5f7085;
    font-size: 1.2rem;
    font-weight: 600;
}

.checklist-editor__visibility-select {
    min-height: 3.8rem;
    padding: 0.8rem 1rem;
    border: 1px solid #c3d0dc;
    border-radius: 0.8rem;
    background: #fff;
    color: #1f3142;
}

.checklist-editor--scoped .checklist-editor__group-list {
    display: grid;
    gap: 1rem;
}

.checklist-editor--scoped .checklist-editor__group {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid #d8e2eb;
    border-radius: 1rem;
    background: var(--checklist-group-bg, #fff);
}

.checklist-editor--scoped .checklist-editor__group--private {
    --checklist-group-bg: #d4e3b6;
    border-color: color-mix(in srgb, #d4e3b6 75%, #98ad73 25%);
}

.checklist-editor--scoped .checklist-editor__group--internal {
    --checklist-group-bg: #f3e4b3;
    border-color: color-mix(in srgb, #f3e4b3 75%, #cda84d 25%);
}

.checklist-editor--scoped .checklist-editor__group--public {
    --checklist-group-bg: #ffffff;
    border-color: #d8e2eb;
}

.checklist-editor--scoped .checklist-editor__group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.checklist-editor--scoped .checklist-editor__group-summary {
    display: grid;
    gap: 0.25rem;
}

.checklist-editor--scoped .checklist-editor__group-title {
    margin: 0;
    color: #1c3550;
    font-size: 1.35rem;
    font-weight: 700;
}

.checklist-editor--scoped .checklist-editor__group-meta,
.checklist-editor--scoped .checklist-editor__group-note {
    color: #4c5f74;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.checklist-editor--scoped .checklist-editor__list {
    gap: 0.8rem;
}

.checklist-editor--scoped .checklist-editor__row {
    grid-template-columns: auto minmax(0, 1fr);
}

.checklist-editor--scoped .checklist-editor__row-body {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
}

.checklist-editor--scoped .checklist-editor__row-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.checklist-editor--scoped .checklist-editor__edit-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 16rem) auto;
    gap: 0.9rem;
    align-items: center;
    min-width: 0;
}

.checklist-editor--scoped .checklist-editor__remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.checklist-editor--scoped .checklist-editor__remove-btn svg {
    width: 1.4rem;
    height: 1.4rem;
}

.checklist-editor--scoped .checklist-editor__display {
    gap: 0.3rem;
}

@media (max-width: 640px) {
    .checklist-editor__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .checklist-editor--scoped .checklist-editor__group-header {
        flex-direction: column;
    }

    .checklist-editor--scoped .checklist-editor__actions {
        align-items: stretch;
    }

    .checklist-editor__visibility-control,
    .checklist-editor__visibility-select {
        width: 100%;
    }

    .checklist-editor--scoped .checklist-editor__edit-line {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ticket-comment-notice-row {
    display: flex;
    width: 100%;
}

.ticket-comment-row--agent .ticket-comment-notice-row {
    justify-content: flex-end;
}

.ticket-comment-row--customer .ticket-comment-notice-row {
    justify-content: flex-start;
}

.ticket-comment-notice {
    width: min(72rem, 100%);
    margin: 0;
    padding: 0.9rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 1.2rem;
    gap: 1rem;
}

.ticket-comment-notice .form-group-note__label {
    font-size: 1.2rem;
    line-height: 1.4;
}

.ticket-comment-notice p {
    color: var(--text-grey);
    font-size: 1.3rem;
    line-height: 1.45;
}

.ticket-comment-notice--warning {
    background-color: rgba(var(--amber-status-rgb), 0.18);
    border-color: rgba(var(--amber-status-rgb), 0.55);
}

.ticket-comment-notice--alert {
    background-color: rgba(var(--red-status-rgb), 0.12);
    border-color: rgba(var(--red-status-rgb), 0.4);
}

.ticket-alert-burst-badge {
    background-color: rgba(var(--amber-status-rgb), 0.14);
    border: 1px solid rgba(var(--amber-status-rgb), 0.7);
    border-radius: 999px;
    color: var(--amber-status);
    cursor: help;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 0.55rem;
    margin-right: 0;
    margin-top: 0;
    min-width: 0;
    padding: 0.3rem 0.7rem;
    vertical-align: middle;
}

.ticket-dirty-summary--warning {
    background: rgba(var(--amber-status-rgb), 0.14);
    border-color: rgba(var(--amber-status-rgb), 0.55);
}

.ticket-dirty-summary--warning .ticket-dirty-summary__label {
    color: var(--amber-status);
}

.ticket-dirty-summary--warning .ticket-dirty-summary__chip {
    background: rgba(var(--amber-status-rgb), 0.06);
    border-color: rgba(var(--amber-status-rgb), 0.55);
    color: var(--amber-status);
}

.ticket-comments-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0;
}

.ticket-comments-search .search-filter-input {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.ticket-comments-search .btn {
    flex: 0 0 auto;
}

.ticket-comments-search + .form-group-note {
    padding: 1rem 1.4rem;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.3rem;
}

.comments-wrap .ticket-comments-search {
    margin-bottom: 2rem;
}

.comments-wrap .ticket-comments-search + .form-group-note {
    margin-top: -1.25rem;
    margin-bottom: 2rem;
}

.activity-log-table th:first-child,
.activity-log-table td:first-child {
    width: 13rem;
    min-width: 13rem;
    white-space: nowrap;
}

.activity-log-table th:nth-child(2),
.activity-log-table td:nth-child(2) {
    width: 11rem;
    min-width: 11rem;
}

.activity-log-table th:nth-child(3),
.activity-log-table td:nth-child(3) {
    width: 12rem;
    min-width: 12rem;
}

.activity-log-table th:nth-child(4),
.activity-log-table td:nth-child(4) {
    width: 16rem;
    min-width: 16rem;
}

.activity-log-table th:nth-child(5),
.activity-log-table td:nth-child(5) {
    width: 10rem;
    min-width: 10rem;
}

.activity-date-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
    width: 100%;
}

.activity-date-filter .search-filter-input {
    width: 100%;
    min-width: 0;
}

.partner-directory-table {
    width: 100%;
}

.partner-directory-table th,
.partner-directory-table td {
    vertical-align: top;
}

.partner-directory-contact-line + .partner-directory-contact-line {
    margin-top: 0.45rem;
}

.audit-index {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    margin-top: 1rem;
}

.audit-index__card {
    border: 1px solid #d6dde5;
    border-radius: 0.75rem;
    color: inherit;
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    text-decoration: none;
}

.audit-index__card:hover {
    border-color: #86a4c1;
}

.audit-index__card span {
    color: #5d7288;
}

.report-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-top: 1.5rem;
}

.report-card {
    border: 1px solid rgba(7, 53, 79, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.96));
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(7, 53, 79, 0.08);
}

.report-card h2 {
    margin-bottom: 0.5rem;
}

.report-card p {
    color: #52606d;
}

.report-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.25rem;
}

.report-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(7, 53, 79, 0.08);
    color: #07354f;
    font-size: 0.9rem;
    padding: 0.35rem 0.7rem;
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.report-actions form {
    margin: 0;
}

.report-export-btn {
    min-width: 132px;
}

.report-export-btn[disabled] {
    opacity: 0.75;
    cursor: wait;
}

.report-export-btn.is-busy {
    box-shadow: inset 0 0 0 999px rgba(7, 53, 79, 0.08);
}

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

.report-hero__scope {
    color: #52606d;
    margin: 0;
}

.user-links__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.user-links__pill {
    align-items: center;
    background: #f3f7fb;
    border: 1px solid #d6dde5;
    border-radius: 999px;
    color: #17324d;
    display: inline-flex;
    gap: 0.45rem;
    line-height: 1;
    padding: 0.35rem 0.75rem;
}

.user-links__pill:hover {
    background: #e7eef6;
}

.user-links__pill-close {
    font-size: 1rem;
    line-height: 1;
}

.user-links__third-party-panel {
    background: #f6f9fc;
    border: 1px solid #d6dde5;
    border-radius: 0.5rem;
    display: grid;
    gap: 0.55rem;
    margin-top: 0.65rem;
    padding: 0.75rem;
}

.user-links__third-party-row,
.user-links__third-party-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.user-links__preview {
    background: #fff;
    border: 1px solid #d6dde5;
    border-radius: 0.45rem;
    padding: 0.65rem 0.75rem;
}

.user-links__preview p {
    margin: 0.2rem 0;
}

.user-links__muted {
    color: #5f748a;
    display: inline-block;
    font-size: 0.95rem;
}

.audit-tool__filters,
.audit-tool__body,
.audit-tool__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.audit-tool__filters {
    margin-bottom: 1rem;
}

.audit-tool__filter {
    display: grid;
    gap: 0.35rem;
    min-width: 18rem;
}

.audit-tool__list,
.audit-tool__summary {
    flex: 1 1 24rem;
}

.audit-tool__organisations {
    display: grid;
    gap: 0.35rem;
}

.audit-tool__organisation {
    align-items: flex-start;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    padding: 0.15rem 0;
}

.audit-tool__organisation--selected {
    font-weight: 600;
}

.audit-tool__organisation small {
    color: #5d7288;
    display: block;
    font-weight: 400;
}

.audit-tool__preview {
    background: #f6f9fc;
    border: 1px solid #d6dde5;
    border-radius: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
}

.audit-tool__preview-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.audit-tool__preview p {
    margin: 0.2rem 0;
}

.domain-links__list {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.5rem;
}

.domain-links__list-item {
    align-items: flex-start;
    color: #17324d;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    padding: 0;
}

.domain-links__list-item-check {
    display: flex;
    justify-content: center;
    padding-top: 0.1rem;
}

.domain-links__list-item input {
    margin-top: 0.2rem;
}

.domain-links__list-item-marker {
    color: #7cb342;
    display: inline-block;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.05rem;
}

.domain-links__list-item-body {
    display: grid;
}

.domain-links__list-item--mapped {
    font-weight: 600;
}

.domain-links__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.domain-links__preview {
    background: #f6f9fc;
    border: 1px solid #d6dde5;
    border-radius: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
}

.domain-links__preview-header {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.domain-links__preview p {
    margin: 0.2rem 0;
}

.organisation-unassigned__error {
    color: var(--red-status);
}

.ticket-list__sla-beta-notice {
    margin: 18px 0 20px;
    padding: 16px 18px;
    border: 1px solid rgba(var(--amber-status-rgb), 0.55);
    border-radius: 12px;
    background: rgba(var(--amber-status-rgb), 0.12);
    color: var(--amber-status);
    font-size: 14px;
    line-height: 1.65;
}

.ticket-list__sla-beta-notice strong {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
}

.ticket-list__sla-beta-notice-copy {
    display: block;
}

.ticket-list__sla-beta-notice a {
    color: #6f348f;
    font-weight: 600;
    text-decoration: underline;
}

.ticket-list-title-actions__buttons {
    gap: 12px;
    margin-left: auto;
}

.form-group-note--note {
    background-color: #f3e4b3;
}

.form-group-note--warning {
    background-color: #e9d6e3;
}

.form-group-note--note:not(.form-group-note--card):not(.form-group-note--compact),
.form-group-note--warning:not(.form-group-note--card):not(.form-group-note--compact) {
    border: 1px solid transparent;
    border-radius: 1.2rem;
    padding: 1.2rem 1.4rem;
}

.form-group-note--note:not(.form-group-note--card):not(.form-group-note--compact) {
    background-color: #fff8dd;
    border-color: #e6c96b;
}

.form-group-note--warning:not(.form-group-note--card):not(.form-group-note--compact) {
    background-color: #f3e3ec;
    border-color: #dec0d0;
}

.form-group-note--note:not(.form-group-note--card):not(.form-group-note--compact) p,
.form-group-note--warning:not(.form-group-note--card):not(.form-group-note--compact) p {
    flex: 1 1 auto;
    min-width: 0;
}

.form-field-note {
    background-color: #f3e4b3;
}

.form-field-warning {
    background-color: #e9d6e3;
}

.form-inline-warning {
    background-color: #e9d6e3;
    padding: 10px;
}

.software-table__count,
.wan-table__count {
    text-align: center;
}

.partner-directory-stats-cell {
    min-width: 28rem;
}

.partner-directory-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.partner-directory-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--input-border);
    border-radius: 999px;
    background: var(--input-bg);
    color: var(--text-grey);
    font-size: 1.25rem;
    line-height: 1.3;
}

.partner-directory-stat strong {
    color: var(--tertiary-color-text);
    font-size: 1.4rem;
    font-weight: 700;
}

legend.ticket-reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-bottom: 0.6rem;
    padding: 0;
    line-height: 1.2;
}

.partner-directory-stats__subtle {
    margin: 0.7rem 0 0;
    color: var(--text-grey);
    font-size: 1.25rem;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .partner-directory-stats-cell {
        min-width: 22rem;
    }
}

.system-health-placeholder__title,
.system-health-placeholder__state,
.system-health-placeholder__issue-title,
.system-health-placeholder__issue-detail,
.system-health-placeholder__stat,
.system-health-placeholder__link,
.team-switcher-placeholder__label,
.team-switcher-placeholder__control,
.team-switcher-placeholder__link,
.profile-button__health--placeholder::before {
    animation: ticket-workspace-wave 1.7s linear infinite;
    background: linear-gradient(110deg, #edf1f4 8%, #f8fafb 18%, #edf1f4 33%);
    background-size: 220% 100%;
}

.ticket-workspace-ticket-copy {
    display: inline-flex;
    position: relative;
    transition: color 0.16s ease;
}

.ticket-workspace-ticket-copy__value {
    display: inline-block;
    transition: text-decoration-color 0.18s ease;
}

.ticket-workspace-ticket-copy__toast {
    background: #fff;
    border: 1px solid rgba(25, 39, 52, 0.14);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(25, 39, 52, 0.12);
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    left: 50%;
    line-height: 1;
    padding: 0.35rem 0.65rem;
    pointer-events: none;
    position: absolute;
    top: -0.7rem;
    transform: translate(-50%, -100%);
    white-space: nowrap;
    z-index: 2;
}

.ticket-workspace-ticket-copy.is-copied .ticket-workspace-ticket-copy__value {
    text-decoration: underline;
    text-decoration-color: rgba(var(--green-status-rgb), 0.45);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.14em;
}

.ticket-workspace-pane__title-meta {
    align-items: center;
}

.ticket-workspace-pane__status-badge,
.ticket-workspace-pane__sla-badge {
    align-items: center;
    border-radius: 0.4rem;
    box-sizing: border-box;
    display: inline-flex;
    height: 2.8rem;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.ticket-workspace-pane__status-badge {
    align-self: center;
    padding: 0 0.8rem;
}

.ticket-workspace-pane__sla-wrap {
    align-self: center;
    margin-left: 0.8rem;
}

.ticket-workspace-pane__sla-badge {
    margin: 0;
    padding: 0 0.8rem;
}

.ticket-workspace-tab__status {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    height: 1.35rem;
    justify-content: center;
    position: relative;
    width: 1.35rem;
}

.ticket-workspace-tab__status .ticket-workspace-tab__dirty {
    background: var(--amber-status, #D8A927);
    height: 0.9rem;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.9rem;
    z-index: 0;
}

.ticket-workspace-backdrop,
.ticket-workspace-panel {
    transition: opacity 0.18s ease, transform 0.22s ease;
    will-change: opacity, transform;
}

.ticket-workspace-pane .dropup .dropdown-menu > li > .dropdown-item {
    background-color: transparent;
    border: 0;
    color: inherit;
    text-align: left;
    width: 100%;
}

.ticket-workspace-panel {
    transform: translateY(0) scale(1);
    transform-origin: top center;
}

.ticket-workspace-backdrop.is-minimising {
    opacity: 0;
    pointer-events: none;
}

.ticket-workspace-shell--minimising .ticket-workspace-backdrop {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden;
}

.ticket-workspace-panel.is-minimising {
    opacity: 0;
    pointer-events: none;
    transform: translateY(2.8rem) scale(0.985);
}

.ticket-workspace-shell--minimising .ticket-workspace-panel {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateY(2.8rem) scale(0.985);
    visibility: hidden;
}

body:has(.ticket-workspace-shell.ticket-workspace-shell--has-bar) {
    overflow-x: hidden;
    padding-bottom: var(--ticket-workspace-bar-height, 6.4rem);
}

body:has(.ticket-workspace-shell):not(:has(.ticket-workspace-shell.ticket-workspace-shell--has-bar)) {
    padding-bottom: 0;
}

@media screen and (min-width: 700px) {
    body:has(.ticket-workspace-shell.ticket-workspace-shell--has-bar) > .d-flex {
        min-height: calc(100vh + var(--ticket-workspace-bar-height, 6.4rem));
        align-items: stretch;
    }

    body:has(.ticket-workspace-shell):not(:has(.ticket-workspace-shell.ticket-workspace-shell--has-bar)) > .d-flex {
        min-height: 100vh;
    }

    body:has(.ticket-workspace-shell.ticket-workspace-shell--has-bar) .sidebar {
        min-height: 100%;
    }
}

body:has(.ticket-workspace-shell.ticket-workspace-shell--has-bar) .toast-container.position-fixed {
    bottom: var(--ticket-workspace-bar-height, 6.4rem) !important;
    left: 0 !important;
    padding: 0.5rem !important;
    right: auto !important;
}

body:has(.ticket-workspace-shell):not(:has(.ticket-workspace-shell.ticket-workspace-shell--has-bar)) .toast-container.position-fixed {
    bottom: 0 !important;
    left: 0 !important;
    padding: 0.5rem !important;
    right: auto !important;
}

.toast-container .toast {
    border-radius: 0.6rem;
    overflow: hidden;
}

.toast-container .toast {
    min-width: 22rem;
}

.toast-container .toast .toast-header {
    align-items: flex-start;
    background-color: var(--primary-color, #07354f);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
}

.toast-container .toast .toast-header .bi {
    color: #9fb3c8;
    flex-shrink: 0;
    font-size: 1.4rem;
    line-height: 1.2;
}

.toast-container .toast .toast-header strong {
    color: #fff;
    flex: 1 1 auto;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    padding-right: 0.5rem;
}

.toast-container .toast .toast-header .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1rem auto no-repeat;
    border: 0;
    flex-shrink: 0;
    height: 1.2rem;
    margin: 0;
    margin-left: auto;
    opacity: 0.85;
    padding: 0;
    width: 1.2rem;
}

.toast-container .toast .toast-header .btn-close:hover {
    opacity: 1;
}

.toast-container .toast .toast-body {
    font-size: 1.3rem;
    line-height: 1.45;
    padding: 1rem;
}

.toast-container .toast.success .toast-header .bi {
    color: var(--green-status, #79c143);
}

.toast-container .toast.danger .toast-header .bi,
.toast-container .toast.error .toast-header .bi {
    color: var(--red-status, #e50046);
}

.toast-container .toast.warning .toast-header .bi {
    color: var(--amber-status, #D8A927);
}

.toast-container .toast.info .toast-header .bi {
    color: var(--info-status, #00a1d4);
}

body:has(.ticket-workspace-shell.ticket-workspace-shell--has-bar) .aiison-chat-shell {
    bottom: 1.5rem;
    left: 2rem;
    right: auto;
}

body:not(:has(.ticket-workspace-shell.ticket-workspace-shell--has-bar)) .aiison-chat-shell {
    bottom: 1.5rem;
    left: 2rem;
    right: auto;
}

body:has(.ticket-workspace-shell.ticket-workspace-shell--has-bar) .aiison-chat-panel,
body:not(:has(.ticket-workspace-shell.ticket-workspace-shell--has-bar)) .aiison-chat-panel {
    left: 0;
    right: auto;
}

.ticket-workspace-backdrop {
    z-index: 1;
}

.ticket-workspace-bar {
    right: 0;
    z-index: 2;
}

.ticket-workspace-shell:not(.ticket-workspace-shell--has-bar) .ticket-workspace-bar {
    display: none !important;
}

.ticket-workspace-panel {
    z-index: 3;
}

.ticket-workspace-minimise-ghost-backdrop,
.ticket-workspace-minimise-ghost-panel {
    pointer-events: none;
    position: fixed;
    will-change: opacity, transform;
    z-index: 1061;
}

.ticket-workspace-minimise-ghost-backdrop {
    inset: 0;
    transition: opacity 0.18s ease;
}

.ticket-workspace-minimise-ghost-panel {
    transition: opacity 0.18s ease, transform 0.22s ease;
    transform: translateY(0) scale(1);
    transform-origin: top center;
}

.ticket-workspace-minimise-ghost-backdrop.is-animating {
    opacity: 0 !important;
}

.ticket-workspace-minimise-ghost-panel.is-animating {
    opacity: 0;
    transform: translateY(2.8rem) scale(0.985);
}

@media (max-width: 991.98px) {
    body:has(.ticket-workspace-shell.ticket-workspace-shell--has-bar) .aiison-chat-shell {
        bottom: 0.8rem;
    }
}

.ticket-table .ticket-presence-col .eye-idle {
    color: rgba(74, 93, 112, 0.65);
    opacity: 0.8;
}

.ticket-table .ticket-presence-col .eye-idle path {
    fill: currentColor;
}

.ticket-reference-link {
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/*
 * Ticket workspace pane: header action buttons + sticky form button-wrap.
 *
 * The header has two action buttons (minimise and close). custom.css originally
 * styled the circle via `.ticket-workspace-pane__header .btn-close`, which only
 * matches the close button. The minimise button no longer carries the btn-close
 * class so we re-target the same circle styling at the shared modifier class.
 *
 * The form button-wrap (Submit/Cancel/Close) was previously commented out in
 * custom.css, leaving the buttons floating at the natural bottom of a long
 * scrolling form. Restore sticky positioning so they stay visible while the
 * pane scrolls.
 */
.ticket-workspace-pane__header .ticket-workspace-pane__action-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    flex: 0 0 auto;
    height: 3.4rem;
    line-height: 1;
    padding: 0;
    width: 3.4rem;
}

.ticket-workspace-pane__action-btn {
    font-size: 1.4rem;
}

.ticket-workspace-pane__action-btn svg {
    height: 1.4rem;
    width: 1.4rem;
}

.ticket-workspace-pane .form-content {
    padding: 1.8rem 2rem 1.2rem;
}

.ticket-workspace-pane .form-content-view,
.ticket-workspace-pane .form-content-edit,
.ticket-workspace-pane .form-content-create {
    padding-bottom: 1.2rem;
}

.ticket-workspace-pane .button-wrap {
    background: #fff;
    bottom: 0;
    box-sizing: border-box;
    box-shadow: 0 -10px 30px 0 rgba(7, 53, 79, 0.15);
    margin-top: auto;
    padding: 1.2rem 2rem;
    position: sticky;
    width: 100%;
    z-index: 5;
}

@media (max-width: 991.98px) {
    .ticket-workspace-pane .button-wrap {
        bottom: var(--ticket-workspace-bar-height);
        margin-bottom: 0;
        margin-right: 0;
        padding-left: 2.4rem;
        padding-right: 2.4rem;
    }
}
.ticket-form-inline-link[disabled] {
    opacity: 0.7;
    cursor: default;
    text-decoration: none;
    pointer-events: none;
}

.ticket-form-inline-link[disabled]:hover {
    color: var(--text-grey-light);
}

.ticket-settings-card .ticket-settings-field {
    display: grid;
    gap: 1.4rem;
    margin-bottom: 2rem;
}

.ticket-settings-card .ticket-settings-field__main {
    margin-bottom: 0;
    min-width: 0;
}

.ticket-settings-card .ticket-settings-field__info {
    align-content: start;
    border: 1px solid rgba(var(--amber-status-rgb), 0.55);
    border-radius: 1.2rem;
    display: grid;
    gap: 0.75rem;
    margin: 0;
    overflow-wrap: anywhere;
    padding: 1.4rem 1.6rem;
}

.ticket-settings-card .ticket-settings-field__info .form-group-note__label {
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    margin: 0;
    text-transform: uppercase;
}

.ticket-settings-card .ticket-settings-field__info p {
    color: var(--text-grey);
    font-size: 1.3rem;
    line-height: 1.55;
    margin: 0;
}

.ticket-settings-card .ticket-settings-field__info code {
    overflow-wrap: anywhere;
    white-space: normal;
}

@media (min-width: 992px) {
    .ticket-settings-card .ticket-settings-field--with-info {
        align-items: start;
        grid-template-columns: minmax(0, 1fr) minmax(24rem, 30rem);
    }
}

.ticket-comment-stack > .ticket-comment-email-link {
    text-align: left;
}

.gap-050 { gap: 0.5rem; }
.gap-1 { gap: 1rem; }

.btn-sm.btn-outline {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.project-tickets-grid .modal-dialog {
    max-width: 1200px;
}

.project-tickets-grid td {
    vertical-align: top;
}

.project-tickets-grid textarea {
    resize: none;
    min-height: 0;
    height: auto;
    overflow: hidden;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    line-height: 1.5;
}

.spin svg,
.spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── ID Card (lanyard-style contact card) ── */

.id-card {
    background: var(--white-background);
    border: 1px solid var(--light-grey);
    border-radius: 1.2rem;
    margin-top: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.id-card__main {
    display: flex;
}

.id-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.6rem 2rem;
    background: var(--primary-color);
    color: var(--white-text);
    width: 20rem;
    flex-shrink: 0;
    text-align: center;
}

.id-card__avatar-wrap {
    flex-shrink: 0;
    position: relative;
    width: 5.6rem;
    height: 5.6rem;
}

.id-card__avatar {
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.id-card__avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white-text);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.id-card__avatar--photo {
    position: absolute;
    top: 0;
    left: 0;
}

.id-card__identity {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.id-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.id-card__role {
    font-size: 1.2rem;
    opacity: 0.85;
    line-height: 1.4;
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.id-card__contact-details,
.id-card__manager-details {
    color: var(--text-grey);
    font-size: 1.4rem;
    line-height: 1.5;
    display: grid;
    gap: 0.2rem;
}

.id-card__contact-details > div,
.id-card__manager-details > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.id-card__contact-details a,
.id-card__manager-details a {
    color: var(--text-grey);
    text-decoration: none;
}

.id-card__contact-details a:hover,
.id-card__manager-details a:hover {
    text-decoration: underline;
}

.id-card__body {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    align-content: center;
    gap: 0;
    min-width: 0;
    border-left: 1px solid var(--primary-color-tint);
}

.id-card__section {
    padding: 1.2rem 1.6rem;
}

.id-card__section--manager {
    border-left: 1px solid var(--primary-color-tint);
    min-width: 0;
}

.id-card__section-label {
    color: var(--text-grey-mid);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.id-card__contact-details + .id-card__section-label,
.id-card__manager-details + .id-card__section-label {
    margin-top: 0.8rem;
}

.id-card__phone-key {
    color: var(--text-grey-mid);
    display: inline-block;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 1.6rem;
}

.id-card__manager-name {
    font-weight: 600;
}

/* Notes/warnings inside ID card */
.id-card > .form-group-note {
    margin: 0;
    border-top: 1px solid var(--primary-color-tint);
    border-radius: 0;
    padding: 1rem 1.6rem;
}

/* Override form-group margin for the new id-card */
.form-group > .id-card {
    margin-top: 1rem;
    margin-bottom: 0;
}

.form-group > .id-card + .form-group-note {
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .id-card__main {
        flex-direction: column;
    }

    .id-card__header {
        flex-direction: row;
        text-align: left;
        min-width: 0;
    }

    .id-card__body {
        grid-template-columns: 1fr;
        border-top: 1px solid var(--primary-color-tint);
    }

    .id-card__section--manager {
        border-left: 0;
        border-top: 1px solid var(--primary-color-tint);
    }
}

/* ── Radio button group primary colour override ── */

.btn-check:checked + .btn.btn-outline-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-text);
}

.btn.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-text);
}

/* ── Round icon button fix ── */

.icon-btn-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-btn-round svg {
    width: 1.6rem;
    height: 1.6rem;
}

/* ── Project count badge (muted) ── */

.badge--project {
    background: transparent;
    border: 1px solid var(--text-grey-light);
    color: var(--text-grey-mid);
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.8;
}

.badge--project:not(.hidden) + .badge {
    margin-left: 0.3rem;
}

.badge--project:last-child {
    margin-right: calc(27px + 0.3rem);
}

.tab-separator {
    color: var(--text-grey-light);
    padding: 0 0.2rem;
    pointer-events: none;
    user-select: none;
}

.badge-in-progress {
    background-color: rgba(var(--amber-status-rgb), 0.1);
    color: var(--amber-status);
}

.badge--project-label {
    display: inline-block;
    font-size: inherit;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 0.3rem;
    border: 1px solid var(--text-grey-light);
    color: var(--text-grey-mid);
    vertical-align: baseline;
    margin-left: 0.4rem;
    white-space: nowrap;
}

/* ── Project task progress bar ── */

.project-task-progress {
    position: relative;
    min-width: 8rem;
    height: 2rem;
    background: var(--primary-color-tint);
    border-radius: 0.4rem;
    overflow: hidden;
}

.project-task-progress .progress-bar {
    background: var(--secondary-color);
    height: 100%;
    min-width: 2px;
    transition: width 0.3s ease;
}

.project-task-progress--empty {
    opacity: 0.4;
}

.project-task-progress::after {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-grey);
    pointer-events: none;
}

/* ── Team phone number row ── */

.grid-row-phone-number {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    gap: 0.8rem;
    align-items: start;
    margin-bottom: 0.6rem;
}

.grid-row-phone-number .form-group {
    margin-bottom: 0;
}

/* ── Project overdue indicator ── */

.project-overdue-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.8rem;
    border-radius: 0.4rem;
    background: var(--red-tint);
    color: var(--red-status);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ── Project description & checklist show-mode styling ── */

.project-description-readonly {
    white-space: pre-line;
    background: var(--input-bg);
    border-radius: 0.8rem;
    padding: 1.2rem 1.4rem;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-grey);
}

.checklist-editor {
    background: var(--input-bg);
    border: none;
}

/* ── Partner name tag in header ── */

.partner-name-tag--header {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 20rem;
    margin-left: auto;
    margin-right: 1.2rem;
    flex-shrink: 0;
    line-height: 1.3;
}

/* ── Sticky offcanvas header ── */

.offcanvas {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.offcanvas > .offcanvas-header {
    position: sticky;
    top: 0;
    z-index: 8;
    flex-shrink: 0;
}

.offcanvas > .offcanvas-body,
.offcanvas > .offcanvas-loading-overlay ~ .offcanvas-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Activity log */
.activity-log-wrap {
    margin-top: 0.5rem;
}

.activity-log-wrap .stacked-card-item {
    font-size: 1.3rem;
    line-height: 1.5;
}

.activity-log-wrap .stacked-card-item .form-group-note__subtle {
    font-size: 1.2rem;
}

.activity-log-value {
    font-weight: 500;
}

.activity-log-value--from {
    text-decoration: line-through;
    opacity: 0.65;
}

.activity-log-source {
    font-style: italic;
}

.activity-log-changes {
    list-style: disc;
    margin: 0.25rem 0 0 1.25rem;
    padding: 0;
    font-size: 1.3rem;
}

.activity-log-changes li {
    margin-bottom: 0.15rem;
}

.comments-wrap > [role="tablist"],
.comments-wrap > .d-flex > [role="tablist"] {
    margin-bottom: 0;
}

.comments-wrap > .d-flex {
    margin-bottom: 1.5rem;
}

/* SLA report stats placeholder skeleton */
.sla-skeleton {
    animation: agent-activity-skeleton 1.4s ease-in-out infinite;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
    background-size: 200% 100%;
    border-radius: 999px;
    display: inline-block;
}

.sla-skeleton--value {
    height: 22px;
    width: 50px;
    margin-top: 4px;
}

.sla-skeleton--meta {
    height: 12px;
    width: 90px;
    margin-top: 6px;
}

/* Activity log truncation notice */
.activity-log-truncated-notice {
    text-align: center;
    color: #888;
    font-size: 1.2rem;
    padding: 1rem 0 0;
    margin: 0;
}

/* Activity log pagination (ticket form) */
.activity-log-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem 0 0;
}

/* Additional-issue inline form on a comment action row */
.additional-issue-form {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f6f9fc;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
}

.additional-issue-form__label {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #334e68;
}

.additional-issue-form__loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.3rem;
    color: #52606d;
}

.additional-issue-form__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Ticket export PDF dropdown */
.ticket-export-dropdown {
    position: relative;
}

.ticket-export-dropdown > button.btn {
    font-size: 1.4rem;
    line-height: inherit;
    padding: 0;
    border: none;
    background: none;
    color: var(--text-grey);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: none;
}

.ticket-export-dropdown > button.btn:hover {
    color: var(--text-grey);
    background: none;
    box-shadow: none;
    opacity: 0.7;
}

.ticket-export-menu {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1000;
    min-width: 280px;
    margin: 4px 0 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ticket-export-menu__item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 1.3rem;
    color: #24323f;
    cursor: pointer;
    white-space: nowrap;
}

.ticket-export-menu__item:hover {
    background: #eef4f7;
}

/* External change surfacing: banner, per-field markers, new-comment flash. */

.external-change-banner {
    background: rgba(var(--amber-status-rgb), 0.14);
    border: 1px solid rgba(var(--amber-status-rgb), 0.55);
    border-left: 4px solid var(--amber-status);
    color: var(--amber-status);
    border-radius: 4px;
    padding: 0.6rem 0.9rem;
    font-size: 1.3rem;
}

.external-change-banner strong {
    color: var(--amber-status);
}

.external-change-banner__field {
    margin-right: 0.35rem;
}

.external-change-banner__preview {
    color: var(--amber-status);
}

.external-change-field {
    position: relative;
    box-shadow: inset 3px 0 0 0 var(--amber-status);
    transition: box-shadow 150ms ease-out;
}

.external-change-marker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.4rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(var(--amber-status-rgb), 0.16);
    border: 1px solid rgba(var(--amber-status-rgb), 0.55);
    color: var(--amber-status);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
    vertical-align: middle;
}

.external-change-marker--conflict {
    background: rgba(var(--red-status-rgb), 0.12);
    border-color: rgba(var(--red-status-rgb), 0.45);
    color: var(--red-status);
}

.external-change-marker__accept,
.external-change-marker__dismiss {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.external-change-marker__accept:hover,
.external-change-marker__dismiss:hover {
    text-decoration: underline;
}

.new-comment-flash {
    animation: new-comment-flash-fade 10s ease-out forwards;
    box-shadow: inset 3px 0 0 0 var(--amber-status);
    background: rgba(var(--amber-status-rgb), 0.18);
    border-radius: 4px;
}

@keyframes new-comment-flash-fade {
    0% {
        background: rgba(var(--amber-status-rgb), 0.35);
    }
    70% {
        background: rgba(var(--amber-status-rgb), 0.18);
    }
    100% {
        background: transparent;
        box-shadow: none;
    }
}

.badge-new-comment {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.45rem;
    background: var(--amber-status);
    color: #ffffff;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
}

.ticket-feedback-option label {
    padding: 1.5rem 1.25rem;
}

.ticket-feedback-option label strong {
    font-size: 1.35rem;
    margin-bottom: 0;
}

.ticket-secret-card textarea {
    width: 100%;
    min-height: 140px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
}

.ticket-secret-payload {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    background: #f6f6f6;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.ticket-secret-reveal-btn {
    display: inline-block;
    padding: 0.15rem 0.75rem;
    margin: 0 0.15rem;
    background: #111827;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
}

.ticket-secret-reveal-btn:hover {
    background: #374151;
}

.ticket-comment-flash {
    animation: ticket-comment-flash-fade 3s ease-out forwards;
}

@keyframes ticket-comment-flash-fade {
    0% {
        background-color: rgba(var(--amber-status-rgb), 0.35);
        box-shadow: 0 0 0 3px rgba(var(--amber-status-rgb), 0.55);
    }
    100% {
        background-color: transparent;
        box-shadow: 0 0 0 3px rgba(var(--amber-status-rgb), 0);
    }
}
