:root {
    --ui-blue: #3568f0;
    --ui-blue-soft: rgba(53, 104, 240, .1);
    --ui-ink: #111827;
    --ui-surface: rgba(255, 255, 255, .96);
    --ui-line: rgba(148, 163, 184, .22);
    --ui-glow: 0 30px 80px rgba(15, 23, 42, .18);
}

[data-theme="dark"] {
    --ui-ink: #f8fafc;
    --ui-surface: rgba(15, 23, 42, .97);
    --ui-line: rgba(148, 163, 184, .16);
    --ui-glow: 0 30px 90px rgba(0, 0, 0, .46);
}

.premium-shell {
    width: min(920px, 94vw);
    max-height: min(820px, 90vh);
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--ui-surface);
    border: 1px solid rgba(255, 255, 255, .44);
    box-shadow: var(--ui-glow);
    display: flex;
    flex-direction: column;
}

.premium-head {
    min-height: 86px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ui-line);
    background: linear-gradient(180deg, rgba(255,255,255,.08), transparent);
}

.premium-head h2 { margin: 0; color: var(--ui-ink); font-size: 23px; letter-spacing: -.02em; }
.premium-head p { margin: 6px 0 0; color: var(--text-muted); font-size: 12px; }
.premium-head .modal-close { width: 38px; height: 38px; border-radius: 12px; }

.content-modal-shell { width: min(940px, 95vw); height: min(760px, 90vh); }
.content-modal-shell.rules-mode { width: 860px; height: auto; max-height: 82vh; }
.content-modal-shell.rules-mode .premium-head { min-height: 72px; padding-inline: 24px; }
.content-modal-shell.rules-mode .content-modal-body { flex: 0 1 auto; min-height: 0; overflow: hidden; }
.content-modal-toolbar {
    min-height: 66px;
    padding: 0 28px;
    border-bottom: 1px solid var(--ui-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
}
.content-modal-body { flex: 1; overflow: auto; background: var(--card-bg); }
.notice-summary { color: var(--text-sec); font-size: 14px; }
.notice-summary strong { color: var(--ui-blue); font-size: 20px; }
.notice-read-all { border: 0; background: var(--ui-blue); color: #fff; padding: 11px 18px; border-radius: 11px; font-weight: 750; }

.notice-list { display: flex; flex-direction: column; }
.notice-row {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 34px;
    gap: 16px;
    align-items: center;
    min-height: 112px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--ui-line);
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.notice-row:hover { background: rgba(53, 104, 240, .045); }
.notice-row.unread { background: linear-gradient(90deg, rgba(53,104,240,.075), transparent 72%); }
.notice-row.unread::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--ui-blue); }
.notice-icon {
    width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
    background: #f1f5f9; color: #94a3b8; font-size: 20px; border: 1px solid rgba(148,163,184,.12);
}
.notice-row.unread .notice-icon { color: #fff; background: linear-gradient(145deg, #5c8aff, #3c5eea); box-shadow: 0 10px 24px rgba(53,104,240,.28); }
.notice-title { color: var(--text-main); font-size: 15px; font-weight: 760; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-preview { margin-top: 5px; color: var(--text-sec); font-size: 13px; line-height: 1.55; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notice-meta { margin-top: 7px; display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; }
.notice-section-title { padding: 16px 28px 9px; color: var(--text-muted); font-size: 10px; font-weight: 850; letter-spacing: .12em; background: var(--bg-color); border-bottom: 1px solid var(--ui-line); }
.personal-notice-row { cursor: default; grid-template-columns: 58px minmax(0,1fr) 1px; }
.personal-notice-row:hover { transform: none; background: var(--card-bg); }
.personal-notice-copy { display: block; overflow: visible; color: var(--text-sec); }
.unread-chip { color: #2563eb; background: #dbeafe; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.notice-chevron { color: #94a3b8; font-size: 23px; }
.notice-empty { padding: 90px 24px; text-align: center; color: var(--text-muted); }

.notice-detail { padding: 34px 40px 40px; }
.notice-detail-back { border: 0; background: transparent; color: var(--ui-blue); font-weight: 700; padding: 0; }
.notice-detail-badge { display: inline-flex; margin-top: 30px; padding: 5px 10px; border-radius: 999px; background: var(--ui-blue-soft); color: var(--ui-blue); font-size: 12px; font-weight: 750; }
.notice-detail h3 { margin: 14px 0 8px; font-size: clamp(22px, 3vw, 30px); color: var(--text-main); letter-spacing: -.03em; }
.notice-detail-time { color: var(--text-muted); font-size: 12px; }
.notice-detail-copy { margin-top: 28px; color: var(--text-sec); font-size: 15px; line-height: 2; white-space: pre-wrap; }
.notice-detail-link { display: inline-flex; margin-top: 28px; padding: 11px 18px; border-radius: 11px; background: var(--ui-blue); color: #fff; text-decoration: none; font-weight: 750; }

.rules-hero { padding: 32px 34px 22px; background: radial-gradient(circle at 85% 0, rgba(99,102,241,.18), transparent 34%), linear-gradient(145deg, rgba(53,104,240,.11), rgba(139,92,246,.05)); border-bottom: 1px solid var(--ui-line); }
.rules-kicker { color: var(--ui-blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.rules-hero h3 { margin: 9px 0 7px; color: var(--text-main); font-size: 27px; letter-spacing: -.03em; }
.rules-hero p { margin: 0; color: var(--text-muted); line-height: 1.7; }
.rules-grid { padding: 18px 22px 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(205px, 1fr)); gap: 12px; min-height: 430px; align-items: stretch; }
.rule-card { min-height: 205px; height: 100%; box-sizing: border-box; padding: 17px 18px; border-radius: 14px; border: 1px solid var(--ui-line); background: linear-gradient(145deg, var(--card-bg), var(--bg-color)); }
.rule-card-top { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.rule-card-index { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.rule-card h4 { margin: 0; color: var(--text-main); font-size: 16px; }
.rule-card-copy { color: var(--text-sec); white-space: pre-wrap; line-height: 1.8; font-size: 13px; }
.admin-revenue-username, .admin-revenue-username a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-revenue-username a { display: block; max-width: 100%; }

.profile-box.profile-premium { width: min(900px, 95vw); max-height: 92vh; overflow: auto; border-radius: 26px; }
.profile-hero { position: relative; padding: 34px 38px; color: #fff; background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.22), transparent 23%), linear-gradient(135deg, #315fe5, #7057de 68%, #9d50d8); }
.profile-identity { display: flex; align-items: center; gap: 18px; }
.profile-avatar { width: 78px; height: 78px; border-radius: 24px; display: grid; place-items: center; background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.28); font-size: 31px; font-weight: 850; box-shadow: inset 0 1px rgba(255,255,255,.25); }
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.profile-tag { padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.15); font-size: 11px; }
.profile-completion { margin-left: auto; width: 150px; }
.profile-completion-label { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 8px; }
.profile-progress { height: 7px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; }
.profile-progress span { display: block; height: 100%; border-radius: inherit; background: #fff; transition: width .5s ease; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px 28px; background: var(--bg-color); }
.profile-stat { padding: 15px; border: 1px solid var(--ui-line); border-radius: 16px; background: var(--card-bg); }
.profile-stat span { display: block; color: var(--text-muted); font-size: 11px; }
.profile-stat strong { display: block; margin-top: 6px; color: var(--text-main); font-size: 21px; }
.profile-body { padding: 26px 30px 30px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.profile-panel { padding: 20px; border: 1px solid var(--ui-line); border-radius: 18px; background: var(--card-bg); }
.profile-panel h4 { margin: 0 0 17px; color: var(--text-main); font-size: 14px; }
.checkin-shell { width: min(600px, 90vw); max-height: min(86vh, calc(100dvh - 28px)); }
.checkin-hero { position: relative; padding: 24px 26px; color: #fff; background: radial-gradient(circle at 80% 0, rgba(255,255,255,.27), transparent 32%), linear-gradient(135deg, #215ce6, #5e62e7 58%, #8b5cf6); }
.checkin-hero h2 { margin: 0 0 6px; font-size: 24px; }
.checkin-hero p { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; }
.checkin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 20px 0; }
.checkin-stat { padding: 11px 7px; border-radius: 13px; text-align: center; background: var(--bg-color); border: 1px solid var(--ui-line); }
.checkin-stat span { display: block; color: var(--text-muted); font-size: 11px; }
.checkin-stat strong { display: block; margin-top: 4px; color: var(--text-main); font-size: 21px; }
.checkin-insight { margin: 11px 20px 0; padding: 11px 14px; border-radius: 12px; background: rgba(16,185,129,.08); color: var(--text-sec); font-size: 12px; border: 1px solid rgba(16,185,129,.18); }
.checkin-calendar-wrap { padding: 5px 18px 16px; }
.checkin-shell .cal-header-row { gap: 6px; margin-top: 12px; }
.checkin-shell .calendar-grid { gap: 5px; }
.checkin-shell .cal-day { border: 0; border-radius: 9px; background: var(--bg-color); aspect-ratio: 1.2 / 1; font-size: 22px; font-weight: 900; }
.checkin-shell .cal-day.calendar-spacer { visibility: hidden !important; background: transparent !important; border: 0 !important; box-shadow: none !important; pointer-events: none; }
.checkin-shell .cal-day.stamped { border: 0; color: #fff; background: linear-gradient(145deg, #17b77a, #0f9f6e); box-shadow: 0 7px 16px rgba(16,185,129,.2); }
.checkin-shell .cal-day.stamped::after { content: '✓'; top: 3px; right: 4px; bottom: auto; font-size: 8px; opacity: .8; }
.checkin-shell .cal-day.today { box-shadow: inset 0 0 0 2px var(--ui-blue); color: var(--ui-blue); background: var(--ui-blue-soft); }
.cal-holiday { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 6px; line-height: 1; margin-top: 1px; }

.global-popup-shell { width: min(560px, 92vw); padding: 0; max-height: min(88vh, calc(100dvh - 32px)); overflow-x: hidden; overflow-y: auto; border-radius: 24px; background: var(--card-bg); box-shadow: 0 35px 90px rgba(15,23,42,.32); }
.global-popup-media { max-height: 52vh; overflow: hidden; background: #eef2f7; }
.global-popup-media img { width: 100%; max-height: 52vh; object-fit: contain; display: block; }
.global-popup-copy { padding: 25px 28px 20px; }
.global-popup-eyebrow { color: var(--ui-blue); font-size: 11px; letter-spacing: .12em; font-weight: 850; text-transform: uppercase; }
.global-popup-copy h2 { margin: 8px 0 10px; color: var(--text-main); font-size: 24px; }
.global-popup-copy p { margin: 0; color: var(--text-sec); line-height: 1.8; white-space: pre-wrap; }
.global-popup-actions { display: flex; gap: 10px; padding: 0 28px 26px; }
.global-popup-actions button, .global-popup-actions a { flex: 1; text-align: center; padding: 12px 16px; border-radius: 12px; font-weight: 750; text-decoration: none; }
.global-popup-dismiss { border: 1px solid var(--ui-line); background: var(--bg-color); color: var(--text-sec); }
.global-popup-primary { border: 0; background: var(--ui-blue); color: #fff; }

.ticket-center-shell { width: min(980px, 95vw); height: min(700px, 90vh); max-width: none; padding: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--ui-line); }
.ticket-center-header { min-height: 72px; padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ui-line); background: var(--card-bg); }
.ticket-center-header h3 { margin: 0; color: var(--text-main); font-size: 19px; }
.ticket-center-header p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; }
.ticket-center-layout { min-height: 0; flex: 1; display: grid; grid-template-columns: 300px minmax(0,1fr); }
.ticket-center-sidebar { min-height: 0; padding: 18px; display: flex; flex-direction: column; border-right: 1px solid var(--ui-line); background: var(--bg-color); }
.ticket-sidebar-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--text-main); }
.ticket-sidebar-heading span { min-width: 25px; padding: 3px 8px; text-align: center; border-radius: 999px; color: var(--ui-blue); background: var(--ui-blue-soft); font-size: 11px; font-weight: 850; }
.ticket-list { min-height: 0; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; }
.ticket-list-item { width: 100%; padding: 12px; text-align: left; border: 1px solid var(--ui-line); border-radius: 12px; background: var(--card-bg); color: var(--text-main); cursor: pointer; }
.ticket-list-item.active { border-color: var(--ui-blue); box-shadow: 0 0 0 2px var(--ui-blue-soft); }
.ticket-list-item strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.ticket-list-item-meta { margin-top: 7px; display: flex; justify-content: space-between; gap: 6px; color: var(--text-muted); font-size: 10px; }
.ticket-list-unread { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 9px; color: #fff; background: #ef4444; font-size: 10px; }
.ticket-center-main { min-width: 0; min-height: 0; position: relative; display: flex; flex-direction: column; background: var(--card-bg); }
.ticket-empty-state { margin: auto; max-width: 360px; padding: 30px; text-align: center; color: var(--text-muted); }
.ticket-empty-state > div { margin-bottom: 12px; font-size: 48px; }
.ticket-empty-state strong { color: var(--text-main); font-size: 17px; }
.ticket-empty-state p { line-height: 1.7; font-size: 13px; }
.ticket-form-view, .ticket-detail-view { min-height: 0; height: 100%; display: flex; flex-direction: column; }
.ticket-form-view { padding: 24px; overflow-y: auto; }
.ticket-view-title, .ticket-detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border-bottom: 1px solid var(--ui-line); }
.ticket-view-title { margin-bottom: 20px; padding-bottom: 16px; }
.ticket-view-title strong { color: var(--text-main); font-size: 20px; }
.ticket-view-title p, .ticket-detail-header p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; }
.ticket-field-label { margin: 0 0 7px; color: var(--text-sec); font-size: 12px; font-weight: 800; }
.ticket-text-input, .ticket-textarea, .ticket-reply-composer textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--ui-line); border-radius: 11px; outline: 0; resize: vertical; background: var(--input-bg); color: var(--text-main); font: inherit; }
.ticket-text-input:focus, .ticket-textarea:focus, .ticket-reply-composer textarea:focus { border-color: var(--ui-blue); box-shadow: 0 0 0 3px var(--ui-blue-soft); }
.ticket-text-input { margin-bottom: 16px; }
.ticket-upload-row { margin-top: 13px; display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 11px; }
.ticket-upload-button { display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; border: 1px dashed var(--ui-line); border-radius: 9px; color: var(--text-sec); background: var(--bg-color); cursor: pointer; font-size: 12px; font-weight: 750; }
.ticket-image-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ticket-image-preview-item { position: relative; width: 66px; height: 66px; }
.ticket-image-preview-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--ui-line); }
.ticket-image-preview-item button { position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #ef4444; color: #fff; cursor: pointer; }
.ticket-form-actions, .ticket-composer-actions { margin-top: auto; padding-top: 18px; display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.ticket-primary-button, .ticket-ghost-button, .ticket-danger-button { padding: 10px 15px; border-radius: 10px; cursor: pointer; font-weight: 800; }
.ticket-primary-button { border: 0; color: #fff; background: var(--ui-blue); }
.ticket-ghost-button { border: 1px solid var(--ui-line); color: var(--text-sec); background: var(--bg-color); }
.ticket-danger-button { border: 1px solid rgba(239,68,68,.28); color: #dc2626; background: rgba(239,68,68,.08); }
.ticket-center-sidebar > .ticket-primary-button { width: 100%; margin-top: 14px; }
.ticket-primary-button:disabled { opacity: .48; cursor: not-allowed; }
.ticket-detail-header { padding: 18px 22px 14px; background: var(--card-bg); }
.ticket-detail-header h4 { margin: 5px 0 0; color: var(--text-main); font-size: 17px; }
.ticket-detail-header > div > span { color: var(--ui-blue); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.ticket-status-chip { flex: none; padding: 6px 10px; border-radius: 999px; color: var(--ui-blue); background: var(--ui-blue-soft); font-size: 11px; font-weight: 850; }
.ticket-messages { min-height: 0; flex: 1; padding: 20px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background: var(--bg-color); }
.ticket-message { max-width: 82%; align-self: flex-start; }
.ticket-message.mine { align-self: flex-end; }
.ticket-message-meta { margin-bottom: 5px; color: var(--text-muted); font-size: 10px; }
.ticket-message.mine .ticket-message-meta { text-align: right; }
.ticket-message-bubble { padding: 11px 14px; border: 1px solid var(--ui-line); border-radius: 13px 13px 13px 3px; color: var(--text-main); background: var(--card-bg); white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.65; }
.ticket-message.mine .ticket-message-bubble { border: 0; border-radius: 13px 13px 3px 13px; color: #fff; background: var(--ui-blue); }
.ticket-message-images { display: grid; grid-template-columns: repeat(3, minmax(0,100px)); gap: 6px; margin-top: 6px; }
.ticket-message-images img { width: 100%; height: 82px; object-fit: cover; border: 1px solid var(--ui-line); border-radius: 9px; }
.ticket-reply-composer { padding: 13px 18px 16px; border-top: 1px solid var(--ui-line); background: var(--card-bg); }
.ticket-reply-composer .ticket-composer-actions { padding-top: 9px; }
.ticket-reply-composer .ticket-composer-actions .ticket-upload-button { margin-right: auto; }
.ticket-closed-notice { padding: 14px 18px; text-align: center; border-top: 1px solid var(--ui-line); color: var(--text-muted); background: var(--bg-color); font-size: 12px; font-weight: 750; }

@media (max-width: 720px) {
    .content-modal-shell { width: 100vw; max-width: none; height: 100dvh; max-height: none; border-radius: 0; }
    .premium-head { padding: 0 18px; min-height: 72px; }
    .content-modal-toolbar { padding: 0 18px; }
    .notice-row { grid-template-columns: 48px minmax(0,1fr) 24px; padding: 12px 16px; gap: 12px; min-height: 84px; }
    .notice-icon { width: 44px; height: 44px; border-radius: 14px; }
    .rules-grid, .profile-body { grid-template-columns: 1fr; }
    .rules-grid { padding: 16px; }
    .profile-hero { padding: 26px 22px; }
    .profile-identity { align-items: flex-start; }
    .profile-completion { display: none; }
    .profile-stats, .checkin-stats { grid-template-columns: repeat(2, 1fr); padding-inline: 16px; }
    .profile-body { padding: 18px 16px 22px; }
    .checkin-calendar-wrap { padding-inline: 14px; }
    .checkin-shell .cal-header-row, .checkin-shell .calendar-grid { gap: 4px; }
    .checkin-shell .cal-day { min-width: 0; font-size: 21px; border-radius: 9px; }
    .modal-overlay .dashboard-box { width: calc(100vw - 24px); max-width: none; height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); flex-direction: column; overflow: hidden; }
    #dashboardModal .dashboard-left { flex: 0 0 46%; width: 100%; min-height: 0; overflow-y: auto; padding: 16px; border-right: 0; border-bottom: 1px solid var(--border-color); }
    #dashboardModal .dashboard-right { flex: 1 1 54%; width: 100%; min-height: 0; overflow: hidden; padding: 16px; }
    #dashboardModal .dashboard-close { top: 12px; right: 12px; }
    #ticketModal .modal-box { width: calc(100vw - 24px) !important; max-width: none !important; height: calc(100dvh - 24px) !important; }
    .ticket-center-layout { grid-template-columns: 210px minmax(0,1fr); }
    .ticket-center-sidebar { padding: 12px; }
    #featureSettingsModal .modal-box { width: calc(100vw - 24px) !important; max-width: none !important; padding: 20px 16px !important; }
    .global-popup-actions { flex-direction: column-reverse; }
    .global-popup-copy { padding: 21px 20px 16px; }
    .global-popup-copy h2 { font-size: 21px; }
    .global-popup-actions { padding: 0 20px 20px; }
}

@media (max-width: 480px) {
    .modal-overlay { padding: 12px; }
    .modal-box { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 22px 18px; border-radius: 18px; }
    .profile-box.profile-premium, .checkin-shell, .global-popup-shell { width: calc(100vw - 24px); max-width: none; max-height: calc(100dvh - 24px); }
    .profile-hero { padding: 24px 18px; }
    .profile-identity { gap: 12px; }
    .profile-avatar { width: 58px; height: 58px; font-size: 22px; }
    .profile-name { font-size: 19px; }
    .profile-stats, .checkin-stats { gap: 8px; padding-top: 14px; }
    .checkin-hero { padding: 24px 20px; }
    .checkin-stat { padding: 11px 6px; }
    .checkin-stat strong { font-size: 18px; }
    .checkin-insight { margin-inline: 16px; }
    .ticket-center-shell { width: 100vw !important; height: 100dvh !important; border-radius: 0; }
    .ticket-center-header { min-height: 64px; padding: 11px 15px; }
    .ticket-center-header p { display: none; }
    .ticket-center-layout { display: flex; flex-direction: column; overflow-y: auto; }
    .ticket-center-sidebar { min-height: 210px; max-height: 42%; border-right: 0; border-bottom: 1px solid var(--ui-line); }
    .ticket-center-main { min-height: 58%; flex: 1; }
    .ticket-form-view { padding: 18px 15px; }
    .ticket-detail-header { padding: 14px 15px; }
    .ticket-messages { padding: 15px; }
    .ticket-message { max-width: 90%; }
    .ticket-composer-actions { flex-wrap: wrap; }
}
