/*
|--------------------------------------------------------------------------
| Base
|--------------------------------------------------------------------------
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333;
}

h1 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 28px;
}

h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
}

/*
|--------------------------------------------------------------------------
| Layout
|--------------------------------------------------------------------------
*/

.container {
    width: min(960px, calc(100% - 32px));
    margin: 40px auto;
    padding: 32px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pageHeader {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.pageActions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.pageActions .button {
    white-space: nowrap;
}

.linkArea {
    margin-top: 24px;
}

.linkButton {
    padding: 0;
    color: #2563eb;
    font: inherit;
    font-weight: 700;
    background: none;
    border: 0;
    cursor: pointer;
}

.linkButton:hover {
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| Header / User Menu
|--------------------------------------------------------------------------
*/

.siteHeader {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
}

.siteHeaderInner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.siteBrandArea {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 0 0 auto;
    min-width: 150px;
}

.siteTitle {
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.siteTitle:hover {
    color: #2563eb;
}

.siteSubtitle {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.headerActions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

/*
|--------------------------------------------------------------------------
| Project Switcher
|--------------------------------------------------------------------------
*/

.projectSwitcherBox {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.projectSwitcherForm {
    margin: 0;
}

.projectSwitcherSelect {
    width: auto;
    min-width: 180px;
    max-width: 260px;
    height: 42px;
    padding: 8px 36px 8px 14px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    background-color: #f8fafc;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    cursor: pointer;
}

.projectSwitcherSelect:hover {
    background-color: #ffffff;
    border-color: #93c5fd;
}

.projectSwitcherSelect:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/*
|--------------------------------------------------------------------------
| Notifications
|--------------------------------------------------------------------------
*/

.notificationMenu {
    position: relative;
    flex-shrink: 0;
}

.notificationMenu::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 8px;
}

.notificationMenuButton {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 18px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.notificationMenuButton:hover {
    background-color: #f9fafb;
    border-color: #93c5fd;
}

.notificationBadge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    padding: 1px 4px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    background: #dc2626;
    border: 2px solid #ffffff;
    border-radius: 999px;
}

.notificationMenuDropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    display: none;
    width: min(360px, calc(100vw - 32px));
    padding: 8px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.notificationMenu:hover .notificationMenuDropdown,
.notificationMenu:focus-within .notificationMenuDropdown {
    display: block;
}

.notificationMenuHeading {
    padding: 8px 10px;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.notificationMenuItem {
    display: block;
    padding: 9px 10px;
    color: #374151;
    text-decoration: none;
    border-radius: 10px;
}

.notificationMenuItem:hover,
.notificationMenuItem.isUnread {
    background-color: #eff6ff;
}

.notificationMenuItemText,
.notificationMenuItemMeta {
    display: block;
}

.notificationMenuItemText {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.notificationMenuItemMeta {
    margin-top: 3px;
    color: #6b7280;
    font-size: 11px;
}

.notificationMenuEmpty {
    margin: 0;
    padding: 12px 10px;
    color: #6b7280;
    font-size: 13px;
}

.notificationMenuFooter {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 2px 0;
    border-top: 1px solid #e5e7eb;
}

.notificationMenuFooter a,
.notificationMenuFooter button {
    padding: 7px 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.notificationMenuFooter a:hover,
.notificationMenuFooter button:hover {
    background-color: #eff6ff;
}

/*
|--------------------------------------------------------------------------
| User Menu
|--------------------------------------------------------------------------
*/

.userMenu {
    position: relative;
    flex-shrink: 0;
}

/* ボタンとメニューの間の8pxの隙間をホバー範囲に含める */
.userMenu::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 8px;
}

.userMenuButton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(520px, 52vw);
    min-height: 42px;
    padding: 8px 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.userMenuButton:hover {
    background-color: #f9fafb;
    border-color: #93c5fd;
}

.userMenuIdentity,
.userMenuRoleContext {
    display: inline-flex;
    min-width: 0;
}

.userMenuIdentity {
    align-items: flex-start;
}

.userMenuName {
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.userMenuRoleContext {
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.userMenuRoleScope {
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.userMenuArrow {
    color: #6b7280;
    font-size: 10px;
}

.userMenuDropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    display: none;
    box-sizing: border-box;
    min-width: 210px;
    padding: 8px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.userMenu:hover .userMenuDropdown,
.userMenu:focus-within .userMenuDropdown {
    display: block;
}

.userMenuDropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 18px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
    transform: rotate(45deg);
}

.userMenuDropdown a,
.userMenuDropdown button {
    position: relative;
    z-index: 1;
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.userMenuDropdown a:hover,
.userMenuDropdown button:hover {
    color: #1d4ed8;
    background-color: #eff6ff;
}

.userMenuDropdown form {
    width: 100%;
    margin: 0;
}

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

/*
|--------------------------------------------------------------------------
| Breadcrumb
|--------------------------------------------------------------------------
*/

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #374151;
    font-weight: 700;
}

.breadcrumbSeparator {
    color: #9ca3af;
}

/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.formGroup {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccd3dc;
    border-radius: 6px;
    font-size: 15px;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    padding: 0;
    margin: 0;
}

.checkboxLabel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.checkboxLabel input {
    flex-shrink: 0;
}

textarea {
    resize: vertical;
}

.checkboxGroup label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.checkboxGroup input {
    width: auto;
}

.formGrid {
    display: grid;
    gap: 12px;
}

.formActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.csvImportSteps,
.csvImportForm {
    display: grid;
    gap: 20px;
}

.csvImportStep {
    margin-bottom: 0;
    padding: 20px;
}

.csvImportStepHeader {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.csvImportStepHeader h2 {
    margin: 0;
}

.csvImportStepNumber {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #1d4ed8;
    font-weight: 700;
    background: #eff6ff;
    border-radius: 999px;
}

.csvImportStepBody {
    display: grid;
    max-width: 72ch;
    gap: 16px;
}

.csvImportReviewStepBody {
    max-width: none;
}

.csvImportStepBody > p,
.csvImportRequired p,
.csvImportFileField p {
    margin: 0;
}

.csvImportDownloads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.csvImportDownloads .formHelp {
    color: #6b7280;
    font-size: 13px;
}

@media (min-width: 769px) {
    .csvImportDownloads {
        width: max-content;
        flex-wrap: nowrap;
    }

    .csvImportDownloads .button,
    .csvImportDownloads .formHelp {
        white-space: nowrap;
    }
}

.csvImportRequired {
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.csvImportRequired {
    display: grid;
    gap: 4px;
}

.csvImportFileField {
    display: grid;
    max-width: 56ch;
    gap: 6px;
}

.csvImportFileField input {
    max-width: 100%;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.csvImportActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.inlineForm {
    display: inline-block;
    margin: 4px 0 0 4px;
}

.noticeBox {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    background: #eff6ff;
    color: #1e3a8a;
    line-height: 1.7;
}

.comprehensiveTicketForm {
    display: grid;
    gap: 16px;
}

.comprehensiveSection {
    display: grid;
    gap: 14px;
}

.comprehensiveSection h2 {
    margin: 0;
}

.comprehensiveGridNote,
.comprehensiveFullWidth {
    grid-column: 1 / -1;
}

.comprehensiveTimeToggle {
    margin: 0;
}

.comprehensiveActions {
    justify-content: flex-start;
}

.compactDetailList {
    margin: 0;
}

@media (min-width: 769px) {
    .formGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.passwordInputWrap {
    display: flex;
    gap: 8px;
}

.passwordInputWrap input {
    flex: 1;
}

.passwordToggleButton {
    flex: 0 0 auto;
    padding: 10px 14px;
    color: #374151;
    font-size: 14px;
    background-color: #f9fafb;
    border: 1px solid #ccd3dc;
    border-radius: 6px;
    cursor: pointer;
}

.passwordToggleButton:hover {
    background-color: #f3f4f6;
}

/*
|--------------------------------------------------------------------------
| Button
|--------------------------------------------------------------------------
*/

.button {
    display: inline-block;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    background-color: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.button:hover {
    background-color: #1d4ed8;
}

.subButton {
    background-color: #6b7280;
}

.subButton:hover {
    background-color: #4b5563;
}

.ticketPrimaryAction {
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.buttonIcon {
    display: inline-block;
    margin-right: 5px;
    line-height: 1;
}

.deleteButton {
    background-color: #ef4444;
}

.deleteButton:hover {
    background-color: #dc2626;
}

.ticketDeleteAction {
    color: #b91c1c;
    background-color: #ffffff;
    border: 1px solid #ef4444;
}

.ticketDeleteAction:hover {
    color: #ffffff;
    background-color: #dc2626;
    border-color: #dc2626;
}

.smallButton {
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Message / Text
|--------------------------------------------------------------------------
*/

.errorText {
    margin: 6px 0 0;
    color: #dc2626;
    font-size: 14px;
}

.successMessage {
    margin-bottom: 20px;
    padding: 12px 16px;
    color: #166534;
    background-color: #dcfce7;
    border-radius: 8px;
}

.errorMessage {
    margin-bottom: 20px;
    padding: 12px 16px;
    color: #991b1b;
    background-color: #fee2e2;
    border-radius: 8px;
}

.demoNotice {
    order: 3;
    width: 100%;
    box-sizing: border-box;
    max-width: none;
    padding: 8px 14px;
    color: #92400e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 14px;
}

.emptyText {
    color: #6b7280;
}

.tableEmptyState {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    color: #6b7280;
    text-align: center;
}

.tableEmptyState p {
    margin: 0;
}

.resultText {
    margin-bottom: 12px;
    color: #4b5563;
}

/*
|--------------------------------------------------------------------------
| Card / Detail
|--------------------------------------------------------------------------
*/

.card {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.detailList {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px 20px;
}

.detailList dt {
    align-self: start;
    color: #555555;
    font-weight: bold;
}

.detailList dd {
    min-width: 0;
    margin: 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/*
|--------------------------------------------------------------------------
| Summary
|--------------------------------------------------------------------------
*/

.summaryArea {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 32px 0 24px;
}

.ticketSummaryArea,
.dashboardSummaryArea {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.summaryCard {
    position: relative;
    display: block;
    min-height: 96px;
    padding: 18px 20px;
    overflow: hidden;
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 6px solid #64748b;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.summaryCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.summaryCard::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 78px;
    height: 78px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 50%;
}

.summaryLabel,
.summaryCard strong,
.summaryNote {
    position: relative;
    z-index: 1;
    display: block;
}

.summaryLabel {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.summaryCard strong {
    color: #111827;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.summaryNote {
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
}

.summaryAll {
    background: #f8fafc;
    border-left-color: #64748b;
}

.summaryNew {
    background: #fff7f7;
    border-left-color: #ef4444;
}

.summaryProgress {
    background: #f8fbff;
    border-left-color: #3b82f6;
}

.summaryAnswered {
    background: #f7fff9;
    border-left-color: #22c55e;
}

.summaryClosed {
    background: #f9fafb;
    border-left-color: #9ca3af;
}

.summaryOverdue {
    background: #fff7f7;
    border-left-color: #dc2626;
}

.summaryToday {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.summaryUrgent {
    background: #fff7f7;
    border-left-color: #ef4444;
}

.summaryUnassigned {
    background: #f9fafb;
    border-left-color: #6b7280;
}

.summaryMine {
    background: #faf5ff;
    border-left-color: #8b5cf6;
}

.summaryChildTickets {
    background: #f0fdfa;
    border-left-color: #14b8a6;
}

/*
|--------------------------------------------------------------------------
| Search
|--------------------------------------------------------------------------
*/

.searchBox {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
    padding: 20px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.searchItem label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.searchItem input,
.searchItem select {
    width: 100%;
}

.searchKeyword {
    grid-column: span 2;
}

.searchActions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.searchActions .button {
    white-space: nowrap;
}

.auditLogSearchBox {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.auditLogSearchBox .searchActions {
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.auditLogListUtilities {
    margin-top: 12px;
}

.auditLogPerPageForm {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.auditLogPerPageForm label {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.auditLogPerPageForm select {
    width: auto;
    min-width: 76px;
}

.ticketSearchBox {
    display: block;
    padding: 12px 16px;
}

.summaryCard.isActive {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.ticketSearchSection {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
}

.appliedFilters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filterChip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
}

.filterChip:hover {
    color: #111827;
    border-color: #9ca3af;
}

.ticketFilterPanel {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.ticketFilterPanel summary {
    width: fit-content;
    margin-bottom: 14px;
    color: #1f2937;
    font-weight: 700;
    cursor: pointer;
}

.ticketFilterGroup {
    margin-top: 14px;
}

.ticketFilterGroup + .ticketFilterGroup {
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.ticketFilterGroup h2 {
    margin-bottom: 10px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.ticketSearchActions {
    margin-top: 16px;
    justify-content: flex-end;
}

.ticketKeywordActions {
    align-items: center;
}

.listUtilityActions {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 12px;
}

.ticketListUtilities {
    gap: 12px;
    align-items: center;
}

.ticketPerPageForm {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ticketPerPageForm label {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.ticketPerPageForm select {
    width: auto;
    min-width: 76px;
}

.appliedFilters {
    margin-bottom: 16px;
    padding: 14px 16px;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.appliedFiltersLabel {
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
}

.appliedFilterChip {
    background-color: #eef2ff;
    border-color: #c7d2fe;
}

.filterClearLink {
    margin-left: auto;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| Table
|--------------------------------------------------------------------------
*/

.tableWrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    background-color: #f9fafb;
    white-space: nowrap;
}

.table td {
    font-size: 14px;
}

.tableLink {
    display: inline-block;
    max-width: 260px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tableLink:hover {
    text-decoration: underline;
}

.inlineActions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.roadmapVersionCard {
    border-left: 4px solid #60a5fa;
}

.roadmapVersionCard.isOverdue {
    border-left-color: #ef4444;
}

.roadmapTimelineCard {
    margin-bottom: 18px;
}

.roadmapTimelineHeader {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.roadmapTimelineHeader h2,
.roadmapUnscheduledCard h2 {
    margin: 0;
}

.roadmapTimelineHeader p {
    margin: 4px 0 0;
    color: #52677a;
}

.roadmapTimelineRange {
    padding: 6px 10px;
    border: 1px solid #cfe1ee;
    border-radius: 8px;
    color: #1f2937;
    background: #f8fbfe;
    font-size: 13px;
    font-weight: 700;
}

.roadmapTimelineScroller {
    overflow-x: auto;
    overflow-y: hidden;
}

.roadmapTimeline {
    min-width: 900px;
}

.roadmapTimelineAxis,
.roadmapTimelineRow {
    display: grid;
    grid-template-columns: 180px minmax(560px, 1fr) 190px;
    gap: 12px;
    align-items: center;
}

.roadmapTimelineAxis {
    min-height: 34px;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
}

.roadmapTimelineAxisTrack {
    position: relative;
    min-height: 34px;
}

.roadmapTimelineTick {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    padding-top: 14px;
    white-space: nowrap;
}

.roadmapTimelineTick::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 10px;
    background: #cbd5e1;
    content: "";
}

.roadmapTimelineRows {
    position: relative;
}

.roadmapTimelineRow {
    min-height: 46px;
    border-top: 1px solid #e5edf5;
}

.roadmapTimelineVersionName {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.roadmapTimelineVersionName:hover {
    text-decoration: underline;
}

.roadmapTimelineTrack {
    position: relative;
    height: 22px;
    border-radius: 999px;
    background: repeating-linear-gradient(
        90deg,
        #f8fbfe,
        #f8fbfe 23px,
        #edf5fb 24px
    );
}

.roadmapTimelineBar {
    position: absolute;
    top: 2px;
    height: 18px;
    min-width: 36px;
    overflow: hidden;
    border: 1px solid #1d4ed8;
    border-radius: 999px;
    background: #dbeafe;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.roadmapTimelineBarProgress {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.roadmapTimelineBarLabel {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 8px;
    color: #0f172a;
    text-shadow: 0 1px 0 rgb(255 255 255 / 60%);
}

.roadmapTimelineDates {
    color: #52677a;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.roadmapTodayMarker {
    position: absolute;
    top: -8px;
    bottom: -8px;
    z-index: 2;
    width: 2px;
    background: #dc2626;
}

.roadmapTodayAxisMarker {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 6px;
    border-radius: 999px;
    color: #991b1b;
    background: #fee2e2;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.roadmapUnscheduledCard {
    margin-bottom: 18px;
}

.roadmapUnscheduledList {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 12px 0 0;
    list-style: none;
}

.roadmapUnscheduledList li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #d7e8f3;
    border-radius: 8px;
    background: #f8fbfe;
}

.roadmapUnscheduledList a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.roadmapUnscheduledList a:hover {
    text-decoration: underline;
}

.roadmapUnscheduledList span {
    color: #52677a;
    font-size: 12px;
    font-weight: 700;
}

.roadmapVersionHeader {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 10px;
}

.roadmapVersionTitleLine {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.roadmapVersionTitleLine h2 {
    margin: 0;
    overflow-wrap: anywhere;
}

.roadmapVersionHeader p {
    margin: 4px 0 0;
    color: #52677a;
    overflow-wrap: anywhere;
}

.roadmapVersionAdminActions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.roadmapProgressPanel {
    margin-bottom: 10px;
    padding: 10px 0 12px;
    border-top: 1px solid #d7e8f3;
    border-bottom: 1px solid #d7e8f3;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbfe, #ffffff);
}

.roadmapProgressPanel strong {
    display: inline-block;
    flex: 0 0 auto;
    color: #1d4ed8;
    font-size: 22px;
    line-height: 1.1;
}

.roadmapProgressLabel {
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
}

.roadmapProgressLabel span {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.roadmapProgressHeader {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 8px;
}

.roadmapProgressBar {
    height: 12px;
    overflow: hidden;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
}

.roadmapProgressBar div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.roadmapMetricGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.roadmapMetricGrid.isCompact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roadmapMetricGrid > div {
    min-height: 64px;
    padding: 10px;
    border: 1px solid #e2edf5;
    border-radius: 8px;
    background: #f8fbfe;
}

.roadmapMetricGrid span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.roadmapMetricGrid strong {
    display: block;
    margin-top: 4px;
    color: #1f2937;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.roadmapMetricNote {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.roadmapMetricGrid .isOverEstimate .roadmapMetricNote {
    color: #b91c1c;
}

.roadmapMetricGrid .isUnderEstimate .roadmapMetricNote {
    color: #047857;
}

.roadmapMetricGrid .isOnEstimate .roadmapMetricNote {
    color: #475569;
}

.roadmapVersionActions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #d7e8f3;
}

.roadmapStatusBreakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    margin-bottom: 8px;
    color: #475569;
    font-size: 13px;
}

.roadmapStatusBreakdownLabel {
    color: #64748b;
    font-weight: 700;
}

.roadmapStatusBreakdownItems {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.roadmapStatusChip {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid #e2e8f0;
    border-left-width: 3px;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    line-height: 1.4;
}

.roadmapStatusChip.statusNew {
    border-left-color: #94a3b8;
}

.roadmapStatusChip.statusProgress {
    border-left-color: #2563eb;
}

.roadmapStatusChip.statusAnswered {
    border-left-color: #16a34a;
}

.roadmapStatusChip.statusClosed {
    border-left-color: #64748b;
}

.roadmapStatusChip strong {
    color: #1f2937;
}

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

@media (max-width: 700px) {
    .roadmapVersionHeader,
    .roadmapMetricGrid {
        grid-template-columns: 1fr;
    }

    .roadmapVersionAdminActions {
        justify-content: flex-start;
    }

    .roadmapProgressPanel {
        text-align: left;
    }

    .roadmapProgressBar {
        width: 100%;
    }

    .roadmapTimeline {
        min-width: 760px;
    }

    .roadmapTimelineAxis,
    .roadmapTimelineRow {
        grid-template-columns: 140px minmax(460px, 1fr) 160px;
    }
}

.ganttBoard {
    --gantt-day-width: 38px;
    --gantt-ticket-width: 320px;

    overflow-x: auto;
    border: 1px solid #d7e8f3;
    border-radius: 8px;
    background: #f8fbfe;
}

.ganttRangeNotice {
    margin: 0 0 16px;
    padding: 10px 14px;
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.6;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}

.ganttHeader,
.ganttRow {
    display: grid;
    grid-template-columns: var(--gantt-ticket-width) calc(var(--gantt-days) * var(--gantt-day-width));
    width: max-content;
    min-width: 100%;
}

.ganttHeader {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #e2f0f8;
}

.ganttTicketHeader,
.ganttTicketInfo {
    border-right: 1px solid #cfe1ee;
}

.ganttTicketHeader,
.ganttDay {
    padding: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.ganttTicketHeader {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.ganttTimelineHeader,
.ganttTimeline {
    display: grid;
    grid-template-columns: repeat(var(--gantt-days), var(--gantt-day-width));
    width: calc(var(--gantt-days) * var(--gantt-day-width));
    min-width: calc(var(--gantt-days) * var(--gantt-day-width));
}

.ganttDay {
    min-height: 44px;
    border-left: 1px solid #cfe1ee;
}

.ganttDay.isToday {
    color: #1d4ed8;
    background: #dbeafe;
}

.ganttDay span,
.ganttDay small {
    display: block;
}

.ganttRow {
    border-top: 1px solid #d7e8f3;
    background: #ffffff;
}

.ganttRow.isChildTicket .ganttTicketInfo {
    padding-left: 24px;
}

.ganttRow.isOverdue {
    background: #fff7f7;
}

.ganttTicketInfo {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    padding: 5px 10px;
}

.ganttTicketTitle {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-weight: 700;
}

.ganttTicketTitle .tableLink {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ganttInlineBadge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    max-width: 72px;
    padding: 1px 6px;
    overflow: hidden;
    border-radius: 999px;
    color: #1f2937;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #e2e8f0;
}

.ganttInlineBadge.statusNew {
    background: #dbeafe;
}

.ganttInlineBadge.statusProgress {
    color: #ffffff;
    background: #2563eb;
}

.ganttInlineBadge.statusAnswered {
    color: #ffffff;
    background: #16a34a;
}

.ganttInlineBadge.statusClosed {
    color: #ffffff;
    background: #64748b;
}

.ganttInlineBadge.muted {
    color: #475569;
    background: #eef6fb;
}

.ganttTicketMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: #64748b;
    font-size: 12px;
}

.ganttWorkSummary,
.ganttTableWorkSummary {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.ganttWorkSummary {
    display: flex;
    flex-wrap: wrap;
    gap: 0 7px;
    overflow: hidden;
    white-space: nowrap;
}

.ganttWorkSummary span + span::before {
    margin-right: 7px;
    color: #cbd5e1;
    content: "｜";
}

.ganttWorkSummary.isOverEstimate,
.ganttTableWorkSummary.isOverEstimate,
.ganttWorkSummary strong,
.ganttTableWorkSummary strong {
    color: #b91c1c;
}

.ganttWorkSummary strong,
.ganttTableWorkSummary strong {
    margin-left: 4px;
    font-size: 11px;
}

.relationBadge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.parentBadge {
    color: #1d4ed8;
    background: #dbeafe;
}

.childBadge {
    color: #047857;
    background: #d1fae5;
}

.ganttTimeline {
    position: relative;
    align-items: center;
    min-height: 38px;
    padding: 6px 0;
    background-image: repeating-linear-gradient(
        to right,
        transparent,
        transparent calc(var(--gantt-day-width) - 1px),
        #e5edf5 calc(var(--gantt-day-width) - 1px),
        #e5edf5 var(--gantt-day-width)
    );
    background-size: var(--gantt-day-width) 100%;
}

.ganttBar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    margin: 0 2px;
    overflow: hidden;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgb(37 99 235 / 16%);
}

.ganttBarProgressFill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    max-width: 100%;
    border-radius: inherit;
}

.ganttBarLabel {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgb(15 23 42 / 75%);
}

.ganttBar.statusNew {
    background: #eff6ff;
}

.ganttBar.statusNew .ganttBarLabel {
    color: #ffffff;
}

.ganttBar.statusNew .ganttBarProgressFill {
    background: #bfdbfe;
}

.ganttBar.statusProgress {
    background: #dbeafe;
}

.ganttBar.statusProgress .ganttBarProgressFill {
    background: #2563eb;
}

.ganttBar.statusAnswered {
    background: #dcfce7;
}

.ganttBar.statusAnswered .ganttBarProgressFill {
    background: #16a34a;
}

.ganttBar.statusClosed {
    background: #e2e8f0;
}

.ganttBar.statusClosed .ganttBarProgressFill {
    background: #64748b;
}

.ganttBar.isOverdue {
    background: #fee2e2;
}

.ganttBar.isOverdue .ganttBarProgressFill {
    background: #dc2626;
}

.isOverdueRow td {
    background: #fff7f7;
}

@media (max-width: 700px) {
    .ganttBoard {
        --gantt-day-width: 36px;
        --gantt-ticket-width: 300px;
    }
}

/*
|--------------------------------------------------------------------------
| Badges
|--------------------------------------------------------------------------
*/

.status,
.priorityBadge,
.dueBadge,
.roleBadge,
.categoryBadge,
.commentRole,
.commentType {
    display: inline-block;
    border-radius: 999px;
    white-space: nowrap;
}

.status,
.priorityBadge,
.dueBadge,
.roleBadge,
.categoryBadge {
    padding: 4px 10px;
    font-size: 13px;
}

.commentRole,
.commentType {
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
}

.roleBadge {
    font-weight: 700;
}

.categoryBadge {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.statusNew,
.priorityUrgent,
.dueOver {
    color: #991b1b;
    background-color: #fee2e2;
}

.statusProgress,
.priorityHigh,
.dueToday,
.roleStaff,
.staffRole,
.internalComment {
    color: #92400e;
    background-color: #fef3c7;
}

.statusAnswered,
.dueNormal,
.roleUser,
.userRole,
.publicComment {
    color: #166534;
    background-color: #dcfce7;
}

.statusClosed,
.priorityLow {
    color: #374151;
    background-color: #e5e7eb;
}

.priorityUnset,
.dueUnset {
    color: #6b7280;
    background-color: #f3f4f6;
}

.priorityMiddle,
.roleAdmin,
.adminRole,
.operatorRole {
    color: #1e40af;
    background-color: #dbeafe;
}

.dueToday,
.dueOver,
.priorityUrgent {
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| Pagination
|--------------------------------------------------------------------------
*/

.paginationArea {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* Laravel標準ページネーションの巨大な矢印対策 */
.paginationArea svg {
    width: 18px;
    height: 18px;
}

/* モバイル用とPC用が両方出るのを抑える */
.paginationArea nav > div:first-child {
    display: none;
}

.paginationArea nav > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Showing 11 to 20 of ... の表示 */
.paginationArea p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* ページ番号・Previous・Next周り */
.paginationArea a,
.paginationArea span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 6px 10px;
    color: #2563eb;
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.paginationArea a:hover {
    background-color: #f3f4f6;
}

/* 現在ページ */
.paginationArea span[aria-current="page"] span {
    color: #ffffff;
    background-color: #2563eb;
    border-color: #2563eb;
}

/* ページリンクの横並び */
.paginationArea nav span {
    gap: 0;
}

/*
|--------------------------------------------------------------------------
| History
|--------------------------------------------------------------------------
*/

.historyArea {
    margin-top: 32px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.historyArea h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

.historyItem {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.historyItem:last-child {
    border-bottom: none;
}

.historyMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
}

.historyMessage {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.historyDetail {
    margin-top: 8px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 13px;
}

.historyField {
    display: block;
    margin-bottom: 4px;
    color: #374151;
    font-weight: 600;
}

.historyBefore,
.historyAfter {
    display: block;
    color: #4b5563;
}

/*
|--------------------------------------------------------------------------
| Comment
|--------------------------------------------------------------------------
*/

.commentArea {
    margin-top: 32px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.commentArea h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

.commentItem {
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.commentItem:last-of-type {
    margin-bottom: 0;
}

.publicCommentItem,
.customerCommentItem {
    background-color: #ffffff;
    border-left: 5px solid #22c55e;
}

.internalMemoItem {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    border-left: 5px solid #f59e0b;
}

.operatorCommentItem {
    background-color: #ffffff;
    border-left: 5px solid #3b82f6;
}

.commentMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
}

.commentBody {
    margin: 0;
    line-height: 1.7;
    white-space: normal;
}

.commentForm {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.internalMemoNotice {
    margin: 10px 0;
    padding: 8px 10px;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    background-color: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 6px;
}

/*
|--------------------------------------------------------------------------
| Knowledge
|--------------------------------------------------------------------------
*/

.knowledgeBody {
    line-height: 1.8;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/*
|--------------------------------------------------------------------------
| Login
|--------------------------------------------------------------------------
*/

.loginWrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.loginCard {
    width: 100%;
    max-width: 480px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.loginCard h1 {
    margin-bottom: 8px;
}

.loginCard p {
    margin-bottom: 16px;
    color: #6b7280;
}

/*
|--------------------------------------------------------------------------
| Trial Request
|--------------------------------------------------------------------------
*/

.trialRequestWrapper {
    width: 100%;
    max-width: 480px;
    margin: 34px auto 0;
}

.trialRequestBrand {
    margin-bottom: 24px;
    color: #2d9dcc;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
}

.trialRequestCard {
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgb(15 23 42 / 0.06);
}

.trialRequestNotice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #eaf5fb;
    color: #0f3f56;
    line-height: 1.7;
}

.trialRequestSubmit {
    width: 100%;
}

.trialRequestSubmit:disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

.trialRequestConsent {
    margin-top: -2px;
}

.trialRequestHoneypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.trialRequestCompleteTitle {
    margin: 0 0 18px;
    color: #17364a;
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: 0;
}

.trialRequestNumberBox {
    display: grid;
    gap: 6px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f4f8fb;
}

.trialRequestNumberBox span {
    color: #52677a;
    font-size: 13px;
}

.trialRequestNumberBox strong {
    color: #17364a;
    font-size: 20px;
    letter-spacing: 0;
}

.trialRequestCompleteText {
    margin: 0;
    color: #334155;
    line-height: 1.7;
}

.trialRequestLinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    margin-top: 18px;
}

.trialRequestLinks a {
    color: #257fb5;
    font-size: 14px;
    text-decoration: none;
}

.trialRequestLinks a:hover {
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {
    .summaryArea {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .searchKeyword {
        grid-column: span 2;
    }

    .searchActions {
        grid-column: span 2;
    }
}

@media (min-width: 901px) {
    body {
        font-size: 14px;
    }

    h1 {
        margin-bottom: 14px;
        font-size: 24px;
    }

    h2 {
        margin-bottom: 12px;
        font-size: 18px;
    }

    .container {
        width: min(1360px, calc(100% - 40px));
        margin: 24px auto;
        padding: 24px;
        border-radius: 8px;
    }

    .siteHeaderInner {
        width: min(1360px, calc(100% - 40px));
        padding: 10px 0;
        gap: 16px;
    }

    .siteTitle {
        font-size: 18px;
        letter-spacing: 0;
    }

    .headerActions {
        gap: 10px;
    }

    .projectSwitcherSelect,
    .userMenuButton {
        min-height: 36px;
        font-size: 13px;
    }

    .projectSwitcherSelect {
        min-width: 170px;
        max-width: 300px;
        padding: 7px 34px 7px 12px;
    }

    .demoNotice {
        order: 0;
        width: auto;
        max-width: 520px;
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 999px;
    }

    .breadcrumb {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .pageHeader {
        gap: 12px;
        margin-bottom: 18px;
    }

    .pageHeader p,
    .sectionHeader p {
        margin-top: 0;
        font-size: 13px;
        line-height: 1.5;
    }

    .pageActions {
        gap: 8px;
    }

    .card {
        margin-bottom: 16px;
        padding: 18px;
        border-radius: 8px;
    }

    .formGroup {
        margin-bottom: 14px;
    }

    label {
        margin-bottom: 5px;
        font-size: 13px;
    }

    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        padding: 8px 9px;
        font-size: 13px;
    }

    .button {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 5px;
    }

    .smallButton {
        padding: 5px 9px;
        font-size: 12px;
    }

    .detailList {
        grid-template-columns: 140px 1fr;
        gap: 8px 14px;
    }

    .detailList dd {
        line-height: 1.55;
    }

    .summaryArea {
        gap: 10px;
        margin: 20px 0 16px;
    }

    .summaryCard {
        min-height: 58px;
        padding: 10px 12px;
        border-left-width: 4px;
        border-radius: 8px;
        box-shadow: none;
    }

    .summaryCard:hover {
        transform: none;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .summaryCard::after {
        display: none;
    }

    .summaryLabel {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .summaryCard strong {
        font-size: 22px;
    }

    .summaryNote {
        margin-top: 4px;
        font-size: 11px;
    }

    .searchBox {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 12px;
        padding: 14px;
        border-radius: 8px;
    }

    .searchKeyword {
        grid-column: span 2;
    }

    .searchActions {
        grid-column: span 2;
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-end;
    }

    .auditLogSearchBox {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .auditLogSearchBox .searchActions {
        grid-column: span 2;
        justify-content: flex-start;
    }

    .resultText {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .table {
        min-width: 1080px;
    }

    .table th,
    .table td,
    th,
    td {
        padding: 8px 9px;
        font-size: 13px;
        line-height: 1.45;
    }

    .tableLink {
        max-width: 340px;
        font-size: 13px;
    }

    .tableActions {
        gap: 6px;
    }

    .paginationArea {
        margin-top: 16px;
    }

    .paginationArea p,
    .paginationArea a,
    .paginationArea span {
        font-size: 13px;
    }

    .paginationArea a,
    .paginationArea span {
        min-width: 32px;
        min-height: 32px;
        padding: 5px 8px;
    }

    .dashboardGrid {
        gap: 14px;
    }

    .dashboardListItem {
        padding: 10px 0;
    }

    .dashboardListItem a {
        margin-bottom: 6px;
        font-size: 13px;
    }

    .dashboardMeta {
        gap: 6px 10px;
        font-size: 12px;
    }

    .ticketDetailLayout {
        display: grid;
        grid-template-columns: minmax(0, 68fr) minmax(300px, 32fr);
        grid-template-areas:
            "management management"
            "content work"
            "attachments work"
            "comments relation"
            "time time"
            "history history";
        gap: 16px;
        align-items: start;
    }

    .ticketDetailLayout > * {
        min-width: 0;
        margin-bottom: 0;
    }

    .ticketDetailContent {
        grid-area: content;
    }

    .ticketDetailMeta {
        grid-area: meta;
    }

    .ticketDetailManagement {
        grid-area: management;
    }

    .ticketDetailWork {
        grid-area: work;
    }

    .ticketDetailRelation {
        grid-area: relation;
    }

    .ticketDetailAttachments {
        grid-area: attachments;
    }

    .ticketDetailComments {
        grid-area: comments;
    }

    .ticketDetailHistory {
        grid-area: history;
        max-height: none;
        overflow: visible;
    }

    .ticketDetailTimeEntries {
        grid-area: time;
    }

    .ticketDetailHeader {
        align-items: flex-start;
    }

    .ticketHeaderId {
        margin: 0 0 4px;
        color: var(--cd-muted);
        font-size: 13px;
        font-weight: 700;
    }

    .ticketHeaderMeta {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-top: 10px;
        color: var(--cd-text);
        font-size: 13px;
    }

    .ticketHeaderMetaRow {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 10px;
        min-width: 0;
    }

    .ticketHeaderStatusRow {
        color: var(--cd-text);
        font-weight: 700;
    }

    .ticketHeaderSupplementRow {
        color: var(--cd-muted);
        font-size: 12px;
    }

    .ticketHeaderMetaItem {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-height: 24px;
        min-width: 0;
        max-width: 100%;
    }

    .ticketHeaderMetaLabel {
        flex: 0 0 auto;
        color: inherit;
        font-weight: 700;
    }

    .ticketHeaderMetaValue {
        min-width: 0;
        max-width: min(260px, 100%);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ticketProgressBar {
        width: 100%;
        height: 8px;
        margin-top: 6px;
        overflow: hidden;
        border-radius: 999px;
        background: #dbeafe;
    }

    .ticketProgressBar span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: #2563eb;
    }

    .commentArea,
    .historyArea {
        margin-top: 0;
        padding: 14px;
        border-radius: 8px;
    }

    .commentArea h2,
    .historyArea h2 {
        margin-bottom: 12px;
        font-size: 18px;
    }

    .commentItem {
        margin-bottom: 8px;
        padding: 10px;
        border-radius: 8px;
    }

    .commentMeta,
    .historyMeta {
        gap: 6px 10px;
        margin-bottom: 6px;
        font-size: 12px;
    }

    .commentBody {
        line-height: 1.55;
    }

    .commentForm {
        margin-top: 18px;
        padding-top: 16px;
    }

    .historyItem {
        padding: 12px 0;
    }

    .historyMessage {
        font-size: 13px;
    }

    .historyDetail {
        padding: 8px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {

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

    .container {
        margin: 16px auto;
        padding: 20px;
    }

    .siteHeaderInner {
        width: min(960px, calc(100% - 32px));
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .headerActions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .demoNotice {
        width: 100%;
        box-sizing: border-box;
        max-width: none;
        border-radius: 14px;
    }

    .projectSwitcherBox {
        width: 100%;
    }

    .projectSwitcherForm {
        width: 100%;
        min-width: 0;
    }

    .projectSwitcherSelect {
        width: 100%;
        max-width: none;
        border-radius: 14px;
    }

    .userMenu {
        width: 100%;
    }

    .notificationMenu {
        width: 100%;
    }

    .notificationMenuButton {
        width: 100%;
        border-radius: 14px;
    }

    .notificationMenuDropdown {
        width: 100%;
        box-sizing: border-box;
    }

    .userMenuButton {
        width: 100%;
        max-width: none;
        justify-content: space-between;
        border-radius: 14px;
    }

    .userMenuIdentity {
        flex: 1 1 auto;
    }

    .userMenuRoleContext {
        justify-content: flex-end;
    }

    .userMenuName {
        max-width: 100%;
    }

    .userMenuDropdown {
        left: 0;
        right: 0;
        min-width: 0;
    }

    .pageHeader {
        flex-direction: column;
    }

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

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

    .searchKeyword,
    .searchActions {
        grid-column: span 1;
    }

    .searchActions {
        flex-direction: column;
        align-items: stretch;
    }

    .searchActions .button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

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

    .ticketSearchActions {
        grid-column: span 1;
    }

    .filterClearLink {
        width: 100%;
        margin-left: 0;
    }

    .searchBox input,
    .searchBox select {
        width: 100%;
    }

    .pageActions {
        width: 100%;
        justify-content: flex-start;
    }

    .pageActions .button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .summaryArea {
        grid-template-columns: 1fr;
    }

    .summaryCard strong {
        font-size: 24px;
    }

    .faqQuestionBlock,
    .faqAnswerBlock {
        flex-direction: column;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
    line-height: 1.6;
}

th {
    background-color: #f9fafb;
    color: #374151;
    font-size: 14px;
}

td {
    font-size: 14px;
}

.tableActions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tableActions form {
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| FAQ
|--------------------------------------------------------------------------
*/

.sectionHeader {
    margin-bottom: 20px;
}

.sectionHeader h2 {
    margin-bottom: 6px;
}

.sectionHeader p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.faqList {
    display: grid;
    gap: 16px;
}

.faqItem {
    position: relative;
    padding: 20px 22px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 6px solid #2563eb;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.faqItem:hover {
    background-color: #f9fafb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.faqMeta {
    margin-bottom: 10px;
}

.faqCategory {
    display: inline-block;
    padding: 4px 10px;
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
    background-color: #dbeafe;
    border-radius: 999px;
}

.faqTitle {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.5;
}

.faqTitle a {
    color: #111827;
    font-weight: 800;
    text-decoration: none;
}

.faqTitle a::before {
    content: "Q. ";
    color: #2563eb;
}

.faqTitle a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.faqSummary {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.8;
}

/*
|--------------------------------------------------------------------------
| FAQ Detail
|--------------------------------------------------------------------------
*/

.faqDetailCard {
    border-left: 6px solid #2563eb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.faqQuestionBlock {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.faqQuestionBlock h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    line-height: 1.6;
}

.faqQuestionLabel,
.faqAnswerLabel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    border-radius: 999px;
}

.faqQuestionLabel {
    background-color: #2563eb;
}

.faqAnswerLabel {
    background-color: #22c55e;
}

.faqAnswerBlock {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.faqAnswerBody {
    flex: 1;
    padding: 18px 20px;
    color: #374151;
    line-height: 1.9;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.faqActionCard {
    border-left: 6px solid #f59e0b;
    background-color: #fffbeb;
}

.faqActionHeader {
    margin-bottom: 18px;
}

.faqActionLabel {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    background-color: #fef3c7;
    border-radius: 999px;
}

.faqActionHeader h2 {
    margin-bottom: 8px;
}

.faqActionHeader p {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
}

/*
|--------------------------------------------------------------------------
| Dashboard
|--------------------------------------------------------------------------
*/

.dashboardGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboardPrimaryGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.dashboardActionCards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 20px;
}

.dashboardActionCard {
    display: block;
    min-height: 86px;
    padding: 14px 16px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #f59e0b;
    border-radius: 10px;
    background: #fffbeb;
    box-shadow: 0 8px 20px rgb(15 23 42 / 0.05);
}

.dashboardActionCard.dashboardActionDanger {
    border-left-color: #dc2626;
    background: #fff7f7;
}

.dashboardActionCard.isEmpty {
    border-left-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: none;
}

.dashboardActionCard span,
.dashboardActionCard small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.dashboardActionCard strong {
    display: block;
    margin: 4px 0;
    color: #1f2937;
    font-size: 26px;
    line-height: 1;
}

.dashboardActionCard:not(.isEmpty).dashboardActionDanger strong {
    color: #b91c1c;
}

.dashboardActionCard:not(.isEmpty).dashboardActionWarning strong {
    color: #92400e;
}

.dashboardProjectStatus {
    margin-bottom: 20px;
}

.dashboardStatusLine {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dashboardStatusChip {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 5px 10px;
    color: #334155;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #94a3b8;
    border-radius: 999px;
    background: #ffffff;
}

.dashboardStatusChip.statusProgress {
    border-left-color: #2563eb;
}

.dashboardStatusChip.statusAnswered {
    border-left-color: #16a34a;
}

.dashboardStatusChip.statusClosed {
    border-left-color: #64748b;
}

.dashboardStatusChip span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.dashboardStatusChip strong {
    color: #1f2937;
    font-size: 13px;
}

.dashboardWorkSummary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.dashboardWorkSummary .summaryCard {
    min-height: 86px;
}

.dashboardWorkDetails {
    margin-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.dashboardWorkDetails summary {
    padding: 12px 0 2px;
    color: #2563eb;
    cursor: pointer;
    font-weight: 700;
}

.dashboardWorkDetailGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 10px;
}

.dashboardWorkDetailGrid > div {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fbfe;
}

.dashboardWorkDetailGrid span,
.dashboardWorkDetailGrid small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.dashboardWorkDetailGrid strong {
    display: block;
    margin: 4px 0;
    color: #1f2937;
}

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

.dashboardAttentionGrid h3 {
    margin: 0 0 6px;
    color: #1f2937;
    font-size: 15px;
}

.dashboardListItem {
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.dashboardListItem:last-child {
    border-bottom: none;
}

.dashboardListItem a {
    display: inline-block;
    margin-bottom: 8px;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.dashboardListItem a:hover {
    text-decoration: underline;
}

.dashboardMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #6b7280;
    font-size: 13px;
}

.dashboardListWarning a {
    color: #dc2626;
}

@media (max-width: 900px) {

    .dashboardGrid,
    .dashboardPrimaryGrid,
    .dashboardAttentionGrid,
    .dashboardWorkDetailGrid {
        grid-template-columns: 1fr;
    }

    .dashboardActionCards,
    .dashboardWorkSummary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .dashboardActionCards,
    .dashboardWorkSummary {
        grid-template-columns: 1fr;
    }
}

/* 添付ファイル一覧 */
.attachmentItem {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.attachmentItem:last-child {
    border-bottom: none;
}

.attachmentDetails {
    min-width: 0;
}

.attachmentItem a:not(.attachmentActionButton):not(.attachmentThumbnailLink) {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.attachmentItem a:not(.attachmentActionButton):not(.attachmentThumbnailLink):hover {
    text-decoration: underline;
}

.attachmentMeta {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #6b7280;
}

.attachmentThumbnailBlock {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    margin-bottom: 10px;
    gap: 4px;
}

.attachmentThumbnailLink {
    display: inline-block;
    max-width: 100%;
}

.attachmentThumbnail {
    display: block;
    width: auto;
    max-width: min(300px, 100%);
    height: auto;
    max-height: 220px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    object-fit: contain;
}

.attachmentThumbnailHint {
    font-size: 0.78rem;
    color: #6b7280;
}

.attachmentFileHeader {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.attachmentFileType {
    flex: 0 0 auto;
    padding: 2px 7px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #f9fafb;
    color: #4b5563;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
}

.attachmentFileName {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #111827;
    font-weight: 700;
}

.attachmentActions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.attachmentItem .attachmentActionButton,
.commentAttachmentItem .attachmentActionButton,
.attachmentDeleteButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.attachmentItem .attachmentOpenButton,
.commentAttachmentItem .attachmentOpenButton {
    border-color: #2563eb;
    background: #ffffff;
    color: #2563eb;
}

.attachmentItem .attachmentOpenButton:hover,
.commentAttachmentItem .attachmentOpenButton:hover {
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
}

.attachmentItem .attachmentDownloadButton,
.commentAttachmentItem .attachmentDownloadButton {
    border-color: #d1d5db;
    background: #f3f4f6;
    color: #374151;
}

.attachmentItem .attachmentDownloadButton:hover,
.commentAttachmentItem .attachmentDownloadButton:hover {
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
}

/* コメント内の添付ファイル */
.commentAttachments {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.commentAttachmentsTitle {
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
}

.commentAttachmentItem {
    margin-top: 6px;
}

.commentAttachmentItem a {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.commentAttachmentItem a:hover {
    text-decoration: underline;
}

.commentAttachmentMeta {
    margin-top: 3px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* 添付ファイル削除ボタン */
.attachmentDeleteForm {
    margin: 0;
}

.attachmentDeleteButton {
    border-color: #dc2626;
    background: #dc2626;
    color: #ffffff;
}

.attachmentDeleteButton:hover {
    border-color: #b91c1c;
    background: #b91c1c;
}

/* コメント編集・編集履歴 */
.commentEditedMeta {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #6b7280;
}

.commentEditBox,
.commentHistoryBox {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.commentEditBox summary,
.commentHistoryBox summary {
    cursor: pointer;
    font-weight: 700;
    color: #374151;
}

.commentEditForm {
    margin-top: 10px;
}

.commentHistoryItem {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.commentHistoryItem:first-of-type {
    border-top: none;
}

.commentHistoryItem .historyDetail {
    margin-top: 8px;
    display: grid;
    gap: 10px;
}

.commentHistoryItem .historyDetail div {
    padding: 8px;
    border-radius: 6px;
    background: #ffffff;
}

.commentHistoryItem .historyDetail p {
    margin-top: 4px;
    white-space: normal;
}

/* コメント返信 */
.replyReference {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-left: 4px solid #93c5fd;
    border-radius: 6px;
    background: #eff6ff;
    font-size: 0.85rem;
    color: #374151;
}

.replyReferenceBody {
    margin-top: 4px;
    color: #6b7280;
}

.commentReplyBox {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fafc;
}

.commentReplyBox summary {
    cursor: pointer;
    font-weight: 700;
    color: #374151;
}

.commentReplyForm {
    margin-top: 10px;
}

.commentInlineActions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    margin-top: 10px;
}

.commentInlineActions .commentCancelForm {
    display: inline-flex;
    margin: 0;
    line-height: 1;
}

.commentInlineActions > .commentEditBox,
.commentInlineActions > .commentReplyBox {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.commentInlineActions > .commentEditBox[open],
.commentInlineActions > .commentReplyBox[open] {
    flex-basis: 100%;
    margin-top: 4px;
    padding: 10px;
    border-radius: 8px;
}

.commentInlineActions > .commentEditBox[open] {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.commentInlineActions > .commentReplyBox[open] {
    border: 1px solid #dbeafe;
    background: #f8fafc;
}

.commentItem > .commentEditBox,
.commentItem > .commentReplyBox {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}

.commentItem > .commentEditBox[open],
.commentItem > .commentReplyBox[open] {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
}

.commentItem > .commentEditBox[open] {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.commentItem > .commentReplyBox[open] {
    border: 1px solid #dbeafe;
    background: #f8fafc;
}

.commentItem > .commentEditBox summary,
.commentItem > .commentReplyBox summary,
.commentInlineActions > .commentEditBox summary,
.commentInlineActions > .commentReplyBox summary {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    color: #475569;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    list-style: none;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
}

.commentItem > .commentEditBox summary::-webkit-details-marker,
.commentItem > .commentReplyBox summary::-webkit-details-marker,
.commentInlineActions > .commentEditBox summary::-webkit-details-marker,
.commentInlineActions > .commentReplyBox summary::-webkit-details-marker {
    display: none;
}

.commentItem > .commentEditBox summary:hover,
.commentItem > .commentReplyBox summary:hover,
.commentInlineActions > .commentEditBox summary:hover,
.commentInlineActions > .commentReplyBox summary:hover {
    color: #1d4ed8;
    background: #eef6ff;
    border-color: #bfdbfe;
}

@media (min-width: 641px) {
    .commentItem {
        position: relative;
    }

    .commentInlineActions:not(:has(.commentEditBox[open], .commentReplyBox[open])) {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 1;
        justify-content: flex-end;
        margin-top: 0;
    }

    .commentInlineActions:has(.commentEditBox[open], .commentReplyBox[open]) {
        position: static;
        margin-top: 10px;
    }

    .commentItem > .commentEditBox:not([open]),
    .commentItem > .commentReplyBox:not([open]) {
        margin-top: 0;
    }

    .commentItem > .commentEditBox > summary,
    .commentItem > .commentReplyBox > summary {
        position: absolute;
        top: 12px;
        z-index: 1;
    }

    .commentItem > .commentEditBox > summary {
        right: 68px;
    }

    .commentItem > .commentReplyBox > summary {
        right: 12px;
    }

    .commentItem > .commentEditBox + .commentHistoryBox {
        margin-top: 12px;
    }
}

.timeEntryItem {
    display: block;
}

.timeEntryHeader {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

.timeEntryMain {
    min-width: 0;
    flex: 1;
}

.timeEntryMain .historyMeta {
    align-items: center;
    gap: 6px 12px;
    line-height: 1.4;
}

.timeEntryMain .historyMeta span {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
}

.timeEntryComment {
    line-height: 1.6;
    font-weight: 400;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.timeEntryActions {
    display: inline-flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    justify-content: flex-end;
}

.timeEntryEditBox {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.timeEntryEditBox[open] {
    flex-basis: 100%;
    min-width: min(360px, 100%);
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.timeEntryEditBox summary,
.commentActionButton {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    color: #475569;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    list-style: none;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    cursor: pointer;
}

.timeEntryEditBox summary::-webkit-details-marker {
    display: none;
}

.timeEntryEditBox summary:hover,
.commentActionButton:hover {
    color: #1d4ed8;
    background: #eef6ff;
    border-color: #bfdbfe;
}

.deleteActionButton {
    color: #b91c1c;
    background: #fff7f7;
    border-color: #fecaca;
}

.deleteActionButton:hover {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}

.ticketHistoryDisclosure {
    margin: 0;
}

.ticketHistoryDisclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    list-style: none;
}

.ticketHistoryDisclosure summary::-webkit-details-marker {
    display: none;
}

.ticketHistoryDisclosure summary::after {
    content: "▼";
    color: #64748b;
    font-size: 12px;
}

.ticketHistoryDisclosure[open] summary {
    margin-bottom: 10px;
}

.ticketHistoryDisclosure[open] summary::after {
    transform: rotate(180deg);
}

@media (max-width: 640px) {
    .timeEntryHeader {
        flex-direction: column;
    }

    .timeEntryActions {
        justify-content: flex-start;
        width: 100%;
    }

    .timeEntryEditBox[open] {
        width: 100%;
    }
}

/* 親子チケット */
.parentTicketBox {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fafc;
}

.childTicketBox {
    margin-top: 20px;
}

.childTicketProgressBox {
    margin: 12px 0 18px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

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

.childTicketProgressHeader strong {
    color: #111827;
}

.childTicketProgressHeader span {
    padding: 4px 10px;
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 700;
    background: #dbeafe;
    border-radius: 999px;
}

.childTicketProgressGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.childTicketProgressGrid div {
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.childTicketProgressGrid span {
    display: block;
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 0.8rem;
}

.childTicketProgressGrid strong {
    color: #111827;
    font-size: 1rem;
}

.childTicketProgressNote {
    margin: 12px 0 0;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 700;
}

.childTicketProgressNote.warning {
    color: #92400e;
}

.childTicketProgressMethod {
    margin: 10px 0 0;
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.6;
}

.childTicketCompletionCondition {
    margin-top: 12px;
    padding: 10px 12px;
    color: #374151;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}

.childTicketCompletionCondition h4 {
    margin: 0 0 4px;
    color: #78350f;
    font-size: 0.85rem;
}

.childTicketCompletionCondition p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.childTicketProgressNote.completed {
    color: #166534;
}

.childTicketItem {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    margin-top: 10px;
}

.childTicketItem > div:first-child {
    min-width: 0;
}

.childTicketItem a {
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.childTicketItem .tableLink {
    overflow-wrap: anywhere;
}

.childTicketItem .status {
    flex: 0 0 auto;
    white-space: nowrap;
}

.childTicketItem a:hover {
    text-decoration: underline;
}

.childTicketMeta {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6b7280;
}

.childTicketCreateBox {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.childTicketCreateIntro,
.childTicketMigrationNotice {
    margin-bottom: 20px;
}

.childTicketMigrationNotice {
    border-color: #fde68a;
    background: #fffbeb;
}

.childTicketMigrationNotice h2 {
    color: #78350f;
}

/* 問い合わせ一覧：子チケット件数 */
.childTicketListBadge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
}

.childTicketListMeta {
    margin-top: 4px;
    font-size: 0.78rem;
    color: #6b7280;
}

.childTicketListMeta.completed {
    color: #16a34a;
}

.ticketListTitleMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.78rem;
}

.ticketListTable {
    table-layout: fixed;
    min-width: 1300px;
}

.ticketListTable th,
.ticketListTable td {
    box-sizing: border-box;
}

.ticketListTable th:nth-child(1),
.ticketListTable td:nth-child(1) {
    width: 56px;
}

.ticketListTable th:nth-child(2),
.ticketListTable td:nth-child(2) {
    width: 360px;
}

.ticketListTable th:nth-child(3),
.ticketListTable td:nth-child(3) {
    width: 124px;
}

.ticketListTable th:nth-child(4),
.ticketListTable td:nth-child(4) {
    width: 64px;
}

.ticketListTable th:nth-child(5),
.ticketListTable td:nth-child(5) {
    width: 84px;
}

.ticketListTable th:nth-child(6),
.ticketListTable td:nth-child(6) {
    width: 92px;
}

.ticketListTable th:nth-child(7),
.ticketListTable td:nth-child(7) {
    width: 80px;
}

.ticketListTable th:nth-child(8),
.ticketListTable td:nth-child(8) {
    width: 96px;
}

.ticketListTable th:nth-child(9),
.ticketListTable td:nth-child(9) {
    width: 116px;
}

.ticketListTable th:nth-child(10),
.ticketListTable td:nth-child(10) {
    width: 104px;
}

.ticketListTable th:nth-child(11),
.ticketListTable td:nth-child(11) {
    width: 124px;
}

.ticketListTable--bulk .bulkSelectionColumn {
    width: 38px;
    min-width: 38px;
    text-align: center;
}

.ticketListTable--bulk th:nth-child(2), .ticketListTable--bulk td:nth-child(2) { width: 56px; }
.ticketListTable--bulk th:nth-child(3), .ticketListTable--bulk td:nth-child(3) { width: 360px; }
.ticketListTable--bulk th:nth-child(4), .ticketListTable--bulk td:nth-child(4) { width: 124px; }
.ticketListTable--bulk th:nth-child(5), .ticketListTable--bulk td:nth-child(5) { width: 64px; }
.ticketListTable--bulk th:nth-child(6), .ticketListTable--bulk td:nth-child(6) { width: 84px; }
.ticketListTable--bulk th:nth-child(7), .ticketListTable--bulk td:nth-child(7) { width: 92px; }
.ticketListTable--bulk th:nth-child(8), .ticketListTable--bulk td:nth-child(8) { width: 80px; }
.ticketListTable--bulk th:nth-child(9), .ticketListTable--bulk td:nth-child(9) { width: 96px; }
.ticketListTable--bulk th:nth-child(10), .ticketListTable--bulk td:nth-child(10) { width: 116px; }
.ticketListTable--bulk th:nth-child(11), .ticketListTable--bulk td:nth-child(11) { width: 104px; }
.ticketListTable--bulk th:nth-child(12), .ticketListTable--bulk td:nth-child(12) { width: 124px; }

.ticketBulkToolbar[hidden],
.ticketBulkForm[hidden],
.ticketBulkForm [data-bulk-value][hidden] {
    display: none !important;
}

.ticketBulkToolbar {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ticketBulkForm {
    display: block;
    margin-bottom: 10px;
    padding: 12px 14px;
}

.ticketBulkForm .searchActions {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.ticketListTable td {
    white-space: nowrap;
}

.ticketTitleCell {
    min-width: 0;
}

.ticketTitleCell .ticketTitleLink {
    display: block;
    max-width: none;
}

.ticketAssigneeCell {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticketRelationCell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticketRelationCell > * + * {
    margin-left: 6px;
}

.ticketRelationCell .ticketRelationText {
    display: inline-block;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.ticketRelationLink {
    max-width: 54px;
    vertical-align: bottom;
}

.ticketProgressCell {
    text-align: center;
}

.ticketRelationBadge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
}

.ticketRelationText {
    color: #6b7280;
    overflow-wrap: anywhere;
}

.versionBadge {
    display: inline-block;
    max-width: 140px;
    padding: 4px 8px;
    overflow: hidden;
    color: #374151;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    text-decoration: none;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
}

a.versionBadge:hover {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

/*
|--------------------------------------------------------------------------
| Project Member Picker
|--------------------------------------------------------------------------
*/

.memberPickerFilters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
    gap: 12px;
}

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

.memberPickerPanel {
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
}

.memberPickerHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #d1d5db;
    background: #ffffff;
}

.memberPickerHeader h3 {
    margin: 0;
    font-size: 15px;
}

.memberPickerHeader span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.memberPickerList {
    min-height: 280px;
    max-height: 420px;
    padding: 10px;
    overflow-y: auto;
}

.memberPickerItem {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #dbe1e8;
    border-radius: 6px;
    background: #ffffff;
}

.memberPickerItem[hidden] {
    display: none;
}

.memberPickerItem:last-of-type {
    margin-bottom: 0;
}

.memberPickerItem > div {
    min-width: 0;
}

.memberPickerItem strong,
.memberPickerItem span {
    display: block;
}

.memberPickerItem strong {
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 14px;
}

.memberPickerItem > div > span:not(.memberRoleBadge) {
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: #6b7280;
    font-size: 12px;
}

.memberPickerItem.isSelected {
    border-color: #93c5fd;
    background: #eff6ff;
}

.memberPickerItem.isFixed {
    background: #f3f4f6;
}

.memberProjectRoleControl {
    display: grid;
    gap: 4px;
    min-width: 160px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.memberProjectRoleControl select {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 12px;
}

.memberRoleBadge {
    width: fit-content;
    margin-top: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.memberRoleBadge.roleAdmin {
    color: #7f1d1d;
    background: #fee2e2;
}

.memberRoleBadge.roleStaff {
    color: #1e40af;
    background: #dbeafe;
}

.memberRoleBadge.roleUser {
    color: #166534;
    background: #dcfce7;
}

.memberPickerAction {
    min-width: 52px;
    padding: 7px 9px;
    color: #1d4ed8;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    cursor: pointer;
}

.memberPickerAction:hover {
    background: #dbeafe;
}

.memberPickerAction.removeAction {
    color: #b91c1c;
    border-color: #fca5a5;
}

.memberPickerAction.removeAction:hover {
    background: #fee2e2;
}

.memberPickerFixedLabel {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.memberPickerEmpty {
    margin: 0;
    padding: 24px 8px;
    text-align: center;
}

.projectNameBadge {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 3px 8px;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 999px;
}

@media (max-width: 720px) {
    .memberPickerFilters,
    .memberPickerColumns {
        grid-template-columns: 1fr;
    }

    .memberPickerList {
        min-height: 200px;
        max-height: 320px;
    }
}
.auditData {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    border: 1px solid #d7dce2;
    background: #f7f8fa;
    color: #20252b;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.ticketContentHeader {
    margin-bottom: 14px;
}

.ticketContentHeader h2 {
    margin: 8px 0 0;
    color: #111827;
    line-height: 1.45;
}

.ticketBodyHeader {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ticketBodyHeader h2 {
    margin: 0;
}

.ticketBodyEditor {
    margin-left: auto;
}

.ticketBodyEditor summary::-webkit-details-marker {
    display: none;
}

.ticketBodyEditor[open] {
    flex-basis: 100%;
    margin-left: 0;
}

.ticketBodyEditor[open] summary {
    margin-bottom: 12px;
}

.ticketBodyEditor form {
    padding: 16px;
    background: #f8fbfe;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.ticketBody {
    padding: 16px;
    color: #111827;
    line-height: 1.75;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.enterpriseTicketDetailLayout {
    display: flex;
    flex-direction: column;
}

.enterpriseTicketDetailLayout .ticketDetailManagement {
    order: -10;
}

.enterpriseTicketDetailLayout .ticketDetailHistory {
    order: 10;
}

.enterpriseTicketDetailLayout .ticketDetailTimeEntries {
    order: 9;
}

.ticketMonitoringContext {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--cd-border);
}

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

.ticketMonitoringContextHeader h2 {
    margin-bottom: 4px;
}

.ticketMonitoringContextHeader .formHelp {
    margin: 0;
}

.ticketMonitoringIncident + .ticketMonitoringIncident {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--cd-border);
}

@media (max-width: 700px) {
    .ticketMonitoringContextHeader {
        align-items: stretch;
        flex-direction: column;
    }

    .ticketMonitoringContextHeader .button {
        align-self: flex-start;
    }
}

.ticketManagementDetails {
    margin: 0;
}

.ticketManagementDetails summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.ticketManagementDetails summary::-webkit-details-marker {
    display: none;
}

.ticketManagementDetails summary::after {
    content: "▼";
    color: #64748b;
    font-size: 12px;
}

.ticketManagementDetails[open] summary {
    margin-bottom: 10px;
}

.ticketManagementDetails[open] summary::after {
    transform: rotate(180deg);
}

.ticketManagementDetails form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 14px;
    padding-top: 10px;
    border-top: 1px solid var(--cd-border);
}

.ticketManagementDetails .formHelp,
.ticketManagementDetails .errorText,
.ticketManagementDetails button,
.ticketManagementDetails .button {
    align-self: start;
}

.ticketManagementActions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 2px;
}

/*
|--------------------------------------------------------------------------
| Desktop Dense Layout Overrides
|--------------------------------------------------------------------------
*/

@media (min-width: 769px) {
    html body {
        font-size: 13px;
    }

    html body main.container {
        width: calc(100% - 32px);
        max-width: 1440px;
        box-sizing: border-box;
        margin: 16px auto;
        padding: 18px;
        border-radius: 8px;
    }

    .siteHeaderInner {
        width: calc(100% - 32px);
        max-width: 1440px;
        padding: 8px 0;
    }

    .card,
    .commentArea,
    .historyArea {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .pageHeader {
        margin-bottom: 14px;
    }

    .searchBox {
        padding: 12px;
        gap: 8px;
    }

    .table th,
    .table td,
    th,
    td {
        padding: 7px 8px;
        font-size: 12px;
        line-height: 1.4;
    }

    .ticketDetailLayout {
        display: grid !important;
        grid-template-columns: minmax(0, 68fr) minmax(300px, 32fr);
        grid-template-areas:
            "management management"
            "content work"
            "attachments work"
            "comments relation"
            "time time"
            "history history";
        gap: 12px;
        align-items: start;
    }

    .ticketDetailLayout > * {
        min-width: 0;
        margin: 0;
    }

    .ticketDetailContent {
        grid-area: content;
        max-height: none;
        overflow: visible;
    }

    .ticketDetailMeta {
        grid-area: meta;
    }

    .ticketDetailManagement {
        grid-area: management;
    }

    .ticketDetailWork {
        grid-area: work;
    }

    .ticketDetailRelation {
        grid-area: relation;
    }

    .ticketDetailAttachments {
        grid-area: attachments;
    }

    .ticketDetailComments {
        grid-area: comments;
    }

    .ticketDetailHistory {
        grid-area: history;
        max-height: none;
        overflow: visible;
    }

    .ticketDetailTimeEntries {
        grid-area: time;
    }

    .ticketDetailLayout h2 {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .ticketDetailLayout .detailList {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 6px 10px;
    }

    .ticketDetailLayout .detailList dd {
        line-height: 1.45;
    }

    .ticketDetailLayout .formGroup {
        margin-bottom: 10px;
    }

    .ticketDetailLayout input:not([type="checkbox"]):not([type="radio"]),
    .ticketDetailLayout select,
    .ticketDetailLayout textarea {
        padding: 7px 8px;
        font-size: 12px;
    }

    .ticketDetailLayout .button {
        padding: 7px 11px;
        font-size: 12px;
    }

    .ticketDetailLayout .commentItem {
        margin-bottom: 7px;
        padding: 9px;
    }

    .ticketDetailLayout .commentBody {
        line-height: 1.5;
    }

    .ticketDetailLayout .historyItem {
        padding: 9px 0;
    }

    .ticketContentHeader {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 12px;
        align-items: baseline;
        margin-bottom: 12px;
    }

    .ticketContentHeader h2 {
        margin: 0;
        color: #111827;
        font-size: 20px;
        line-height: 1.35;
    }

    .ticketBody {
        min-height: 140px;
        padding: 14px;
        color: #111827;
        font-size: 14px;
        line-height: 1.7;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
    }

}

@media (min-width: 1280px) {
    .ticketDetailLayout {
        grid-template-columns: minmax(0, 68fr) minmax(340px, 32fr);
    }
}

/*
|--------------------------------------------------------------------------
| Core Blue UI Theme
|--------------------------------------------------------------------------
*/

:root {
    --cd-page-bg: #eef6fb;
    --cd-sub-bg: #f3f8fc;
    --cd-card-bg: #ffffff;
    --cd-border: #cfe1ee;
    --cd-border-strong: #b9d4e6;
    --cd-heading-bg: #e2f0f8;
    --cd-table-head: #dcecf6;
    --cd-blue: #2563eb;
    --cd-blue-dark: #1d4ed8;
    --cd-text: #1f2937;
    --cd-muted: #64748b;
}

body {
    color: var(--cd-text);
    background: var(--cd-page-bg);
}

a,
.linkButton,
.tableLink {
    color: var(--cd-blue-dark);
}

a:hover,
.linkButton:hover,
.tableLink:hover {
    color: var(--cd-blue);
}

.siteHeader {
    background: linear-gradient(180deg, #f8fcff 0%, #e7f3fb 100%);
    border-bottom-color: var(--cd-border-strong);
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.08);
}

.siteTitle {
    color: #174ea6;
    letter-spacing: 0;
}

.siteTitle:hover {
    color: var(--cd-blue);
}

.container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--cd-border);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.card,
.commentArea,
.historyArea,
.loginCard,
.faqDetailCard,
.faqActionCard {
    background: var(--cd-card-bg);
    border-color: var(--cd-border);
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.04);
}

.card h2,
.commentArea h2,
.historyArea h2,
.sectionHeader h2 {
    color: #1e3a5f;
}

.breadcrumb,
.summaryNote,
.dashboardMeta,
.commentMeta,
.historyMeta,
.emptyText {
    color: var(--cd-muted);
}

.searchBox {
    background: var(--cd-sub-bg);
    border-color: var(--cd-border);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    color: var(--cd-text);
    background-color: #ffffff;
    border-color: var(--cd-border-strong);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: var(--cd-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
}

.button {
    background: var(--cd-blue);
    border-color: var(--cd-blue);
}

.button:hover {
    background: var(--cd-blue-dark);
    border-color: var(--cd-blue-dark);
}

.subButton {
    background: #55728a;
    border-color: #55728a;
}

.subButton:hover {
    background: #415a70;
    border-color: #415a70;
}

.tableWrapper {
    border-color: var(--cd-border);
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.04);
}

.table th,
th {
    color: #24435a;
    background: var(--cd-table-head);
    border-bottom-color: var(--cd-border-strong);
}

.table td,
td {
    border-bottom-color: #d9e8f2;
}

.table tr:hover td {
    background: #f7fbfe;
}

.successMessage {
    color: #166534;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.errorMessage {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.demoNotice {
    color: #7c4a03;
    background: #fff7d6;
    border-color: #f2d27a;
}

.projectSwitcherSelect,
.userMenuButton {
    background-color: #f8fcff;
    border-color: var(--cd-border-strong);
}

.userMenuDropdown {
    border-color: var(--cd-border);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.userMenuDropdown a:hover,
.userMenuDropdown button:hover {
    background-color: #eaf4fb;
}

.ticketBody {
    background: #f8fbfe;
    border-color: var(--cd-border);
}

.commentItem,
.historyItem {
    border-color: var(--cd-border);
}

.commentItem {
    background: #ffffff;
}

.historyItem {
    background: #fbfdff;
}

@media (min-width: 901px) {
    body.managementUi {
        font-size: 13px;
    }

    body.managementUi main.container {
        width: calc(100% - 32px);
        max-width: 1440px;
        margin: 14px auto 22px;
        padding: 16px;
        border-radius: 8px;
    }

    body.managementUi .siteHeaderInner {
        width: calc(100% - 32px);
        max-width: 1440px;
        padding: 8px 0;
        gap: 12px;
    }

    body.managementUi h1 {
        margin-bottom: 10px;
        font-size: 23px;
    }

    body.managementUi h2 {
        margin-bottom: 9px;
        font-size: 16px;
    }

    body.managementUi .pageHeader {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--cd-border);
    }

    body.managementUi .card,
    body.managementUi .commentArea,
    body.managementUi .historyArea {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    body.managementUi .searchBox {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    body.managementUi .searchKeyword {
        grid-column: span 2;
    }

    body.managementUi .searchActions {
        grid-column: span 2;
        gap: 6px;
    }

    body.managementUi .summaryArea {
        gap: 8px;
        margin: 12px 0 10px;
    }

    body.managementUi .summaryArea.monitoringSummaryArea {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.managementUi .summaryCard {
        min-height: 50px;
        padding: 8px 10px;
        border-left-width: 4px;
        border-radius: 6px;
        box-shadow: none;
    }

    body.managementUi .summaryCard strong {
        font-size: 20px;
    }

    body.managementUi .summaryLabel,
    body.managementUi .summaryNote {
        font-size: 11px;
    }

    body.managementUi .table th,
    body.managementUi .table td,
    body.managementUi th,
    body.managementUi td {
        padding: 6px 8px;
        font-size: 12px;
        line-height: 1.35;
    }

    body.managementUi .button {
        padding: 7px 12px;
        font-size: 12px;
        border-radius: 5px;
    }

    body.managementUi .smallButton {
        padding: 5px 8px;
        font-size: 11px;
    }

    body.managementUi .dashboardGrid {
        gap: 10px;
    }

    body.managementUi .dashboardListItem {
        padding: 8px 0;
    }

    body.managementUi .ticketDetailLayout {
        display: grid !important;
        grid-template-columns: minmax(0, 68fr) minmax(300px, 32fr);
        grid-template-areas:
            "management management"
            "content work"
            "attachments work"
            "comments relation"
            "time time"
            "history history";
        gap: 10px;
        align-items: start;
    }

    body.managementUi .ticketDetailLayout > * {
        min-width: 0;
        margin: 0;
    }

    body.managementUi .ticketDetailContent {
        grid-area: content;
        padding: 14px;
    }

    body.managementUi .ticketDetailMeta {
        grid-area: meta;
    }

    body.managementUi .ticketDetailManagement {
        grid-area: management;
    }

    body.managementUi .ticketDetailWork {
        grid-area: work;
    }

    body.managementUi .ticketDetailRelation {
        grid-area: relation;
    }

    body.managementUi .ticketDetailAttachments {
        grid-area: attachments;
    }

    body.managementUi .ticketDetailComments {
        grid-area: comments;
    }

    body.managementUi .ticketDetailHistory {
        grid-area: history;
        max-height: none;
        overflow: visible;
    }

    body.managementUi .ticketDetailTimeEntries {
        grid-area: time;
    }

    body.managementUi .ticketDetailHeader {
        gap: 14px;
    }

    body.managementUi .ticketHeaderMeta {
        gap: 4px;
    }

    body.managementUi .ticketHeaderMetaRow {
        gap: 5px 8px;
    }

    body.managementUi .ticketHeaderStatusRow {
        font-size: 12px;
    }

    body.managementUi .ticketHeaderSupplementRow {
        font-size: 11px;
    }

    body.managementUi .ticketBody {
        min-height: 150px;
        padding: 13px;
        font-size: 14px;
        line-height: 1.7;
    }

    body.managementUi .ticketDetailLayout .detailList {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 6px 10px;
    }

    body.managementUi .ticketDetailLayout .detailList dt {
        color: #31566f;
    }

    body.managementUi .ticketDetailLayout .formGroup {
        margin-bottom: 10px;
    }

    body.managementUi .ticketDetailLayout input:not([type="checkbox"]):not([type="radio"]),
    body.managementUi .ticketDetailLayout select,
    body.managementUi .ticketDetailLayout textarea {
        padding: 7px 8px;
        font-size: 12px;
    }

    body.managementUi .ticketDetailLayout .commentItem {
        margin-bottom: 8px;
        padding: 9px;
    }

    body.managementUi .ticketDetailLayout .historyItem {
        padding: 8px 0;
    }
}

body.managementUi .monitoringPageToolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

body.managementUi .monitoringSubnav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.managementUi .monitoringSubnavItem {
    display: inline-block;
    padding: 7px 11px;
    color: var(--cd-muted);
    font-weight: 600;
    text-decoration: none;
    background: var(--cd-sub-bg);
    border: 1px solid var(--cd-border);
    border-radius: 5px;
}

body.managementUi a.monitoringSubnavItem:hover,
body.managementUi a.monitoringSubnavItem:focus {
    color: var(--cd-blue);
    border-color: var(--cd-blue);
}

body.managementUi .monitoringSubnavItem.isActive {
    color: var(--cd-blue-dark);
    font-weight: 700;
    background: var(--cd-heading-bg);
    border-color: var(--cd-blue);
}

@media (max-width: 900px) {
    body.managementUi .monitoringPageToolbar {
        align-items: stretch;
        flex-direction: column;
    }

    body.managementUi .monitoringPagePrimaryAction .button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

@media (min-width: 1280px) {
    body.managementUi .ticketDetailLayout {
        grid-template-columns: minmax(0, 68fr) minmax(340px, 32fr);
    }
}

@media (min-width: 901px) {
    body.userUi,
    body.guestUi {
        font-size: 14px;
    }

    body.userUi main.container,
    body.guestUi main.container {
        max-width: 1040px;
        padding: 28px;
    }

    body.userUi .card,
    body.guestUi .card,
    body.userUi .commentArea,
    body.userUi .historyArea,
    body.guestUi .loginCard,
    body.userUi .faqDetailCard,
    body.userUi .faqActionCard,
    body.guestUi .faqDetailCard,
    body.guestUi .faqActionCard {
        padding: 22px;
        border-radius: 10px;
    }

    body.userUi .searchBox,
    body.guestUi .searchBox {
        padding: 18px;
    }

    body.userUi .button,
    body.guestUi .button {
        padding: 8px 14px;
        font-size: 13px;
    }
}

.publicDemoNav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.publicDemoNav a {
    color: #174ea6;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.publicDemoNav a:hover {
    text-decoration: underline;
}

.publicDemoNotice {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-bottom: 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
}

.publicDemoCta {
    margin-top: 24px;
}

body.publicDemoUi .siteHeader {
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.18);
}

body.publicDemoUi .pageHeader {
    margin-bottom: 14px;
}

body.publicDemoUi .summaryArea {
    margin-bottom: 14px;
}

body.publicDemoUi .searchBox {
    margin-bottom: 12px;
}

body.publicDemoUi .tableWrapper {
    margin-top: 8px;
}

body.publicDemoUi .ticketDetailLayout {
    gap: 10px;
}

body.publicDemoUi .ticketBody {
    min-height: 150px;
    padding: 13px;
    font-size: 14px;
    line-height: 1.7;
    border: 1px solid var(--cd-border);
    border-radius: 8px;
    background: #f8fbfe;
}

body.publicDemoUi .ticketContentHeader {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cd-border);
}

body.publicDemoUi .ticketContentHeader h2 {
    color: #102a43;
    font-size: 21px;
    line-height: 1.35;
}

body.publicDemoUi .historyItem {
    padding: 8px 0;
}

body.publicDemoUi .ticketDetailLayout .detailList dt {
    color: #31566f;
}

@media (min-width: 901px) {
    body.publicDemoUi main.container {
        width: calc(100% - 32px);
        max-width: 1440px;
        margin: 14px auto 22px;
        padding: 16px;
        border-radius: 8px;
    }

    body.publicDemoUi .ticketDetailLayout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 360px;
        grid-template-areas:
            "content meta"
            "comments management"
            "comments relation"
            "comments attachments"
            "comments history";
        gap: 10px;
        align-items: start;
    }

    body.publicDemoUi .ticketDetailLayout > * {
        min-width: 0;
        margin: 0;
    }

    body.publicDemoUi .card,
    body.publicDemoUi .commentArea,
    body.publicDemoUi .historyArea {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    body.publicDemoUi .ticketDetailContent {
        grid-area: content;
        padding: 14px;
    }

    body.publicDemoUi .ticketDetailMeta {
        grid-area: meta;
    }

    body.publicDemoUi .ticketDetailManagement {
        grid-area: management;
    }

    body.publicDemoUi .ticketDetailRelation {
        grid-area: relation;
    }

    body.publicDemoUi .ticketDetailAttachments {
        grid-area: attachments;
    }

    body.publicDemoUi .ticketDetailComments {
        grid-area: comments;
    }

    body.publicDemoUi .ticketDetailHistory {
        grid-area: history;
        max-height: 520px;
        overflow: auto;
    }

    body.publicDemoUi .ticketDetailLayout .detailList {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 6px 10px;
    }

    body.publicDemoUi .table th,
    body.publicDemoUi .table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (min-width: 1280px) {
    body.publicDemoUi .ticketDetailLayout {
        grid-template-columns: minmax(0, 1fr) 380px;
    }
}

body.managementUi .ticketDetailHeader .pageActions .ticketDeleteAction {
    color: #b91c1c;
    background: #ffffff;
    background-color: #ffffff;
    border: 1px solid #ef4444;
    box-shadow: none;
}

body.managementUi .ticketDetailHeader .pageActions .ticketDeleteAction:hover,
body.managementUi .ticketDetailHeader .pageActions .ticketDeleteAction:focus,
body.managementUi .ticketDetailHeader .pageActions .ticketDeleteAction:active {
    color: #ffffff;
    background: #dc2626;
    background-color: #dc2626;
    border-color: #dc2626;
    box-shadow: none;
}

body.managementUi .ticketDetailHeader .pageActions .ticketDeleteConfirm {
    margin: 0;
}

body.managementUi .ticketDetailHeader .pageActions .ticketDeleteConfirm summary {
    list-style: none;
}

body.managementUi .ticketDetailHeader .pageActions .ticketDeleteConfirm summary::-webkit-details-marker {
    display: none;
}

.ticketDeleteUnavailable {
    max-width: 260px;
    margin: 0;
    padding: 8px 10px;
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 6px;
}

.ticketDeleteConfirmPanel {
    max-width: 760px;
    margin: -10px 0 18px auto;
    padding: 16px;
    background: #fff7f7;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.ticketDeleteConfirmContent h2 {
    margin: 0 0 10px;
    color: #7f1d1d;
    font-size: 18px;
}

.ticketDeleteTarget {
    margin: 0 0 8px;
    font-weight: 700;
    word-break: break-word;
}

.ticketDeleteNotice {
    margin: 12px 0;
    padding: 10px 12px;
    color: #92400e;
    line-height: 1.6;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 6px;
}

.ticketDeleteForm {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.ticketDeleteForm select,
.ticketDeleteForm textarea {
    width: 100%;
    box-sizing: border-box;
}

.ticketDeleteConfirmActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

body.managementUi .ticketDeleteConfirmActions .ticketDeleteAction {
    color: #b91c1c;
    background: #ffffff;
    background-color: #ffffff;
    border: 1px solid #ef4444;
    box-shadow: none;
}

body.managementUi .ticketDeleteConfirmActions .ticketDeleteAction:hover,
body.managementUi .ticketDeleteConfirmActions .ticketDeleteAction:focus,
body.managementUi .ticketDeleteConfirmActions .ticketDeleteAction:active {
    color: #ffffff;
    background: #dc2626;
    background-color: #dc2626;
    border-color: #dc2626;
    box-shadow: none;
}

.deletedTicketTableWrapper {
    overflow-x: auto;
}

.deletedTicketTable {
    min-width: 1080px;
}

.deletedTicketTitle {
    display: inline-block;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.deletedTicketRelation {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    color: #475569;
    font-size: 13px;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.restoreStatus {
    display: inline-flex;
    align-items: center;
    max-width: 180px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.restoreStatusAllowed {
    color: #166534;
    background: #dcfce7;
}

.restoreStatusBlocked {
    color: #92400e;
    background: #fffbeb;
}

.ticketRestoreConfirm {
    position: relative;
}

.ticketRestoreConfirm summary {
    list-style: none;
}

.ticketRestoreConfirm summary::-webkit-details-marker {
    display: none;
}

.ticketRestorePanel {
    position: absolute;
    z-index: 5;
    right: 0;
    width: min(360px, calc(100vw - 48px));
    margin-top: 8px;
    padding: 14px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgb(15 23 42 / 18%);
}

.ticketRestoreHeading {
    margin: 0 0 8px;
    color: #0f172a;
    font-weight: 700;
}

.ticketRestoreTarget {
    margin: 0 0 8px;
    font-weight: 700;
    word-break: break-word;
}

.ticketRestoreNotice {
    margin: 10px 0 0;
    padding: 9px 10px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 6px;
}

.ticketRestoreForm {
    margin-top: 12px;
}

.ticketRestoreActions {
    display: flex;
    justify-content: flex-end;
}

body.managementUi main.projectSelectionContainer,
body.userUi main.projectSelectionContainer {
    width: calc(100% - 32px);
    max-width: 1440px;
    box-sizing: border-box;
    margin: 14px auto 22px;
    padding: 16px;
}

body.managementUi .projectSelectionGrid,
body.userUi .projectSelectionGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

body.managementUi .projectSelectionCard,
body.userUi .projectSelectionCard {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
}

body.managementUi .projectSelectionActions,
body.userUi .projectSelectionActions {
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 14px;
}

body.managementUi .projectSelectionActions form,
body.userUi .projectSelectionActions form {
    margin: 0;
}

@media (max-width: 900px) {
    body.managementUi .projectSelectionGrid,
    body.userUi .projectSelectionGrid {
        grid-template-columns: 1fr;
    }

    body.managementUi main.projectSelectionContainer,
    body.userUi main.projectSelectionContainer {
        width: min(100% - 24px, 720px);
        padding: 14px;
    }
}
