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

:root { font-family: 'DM Sans', system-ui, sans-serif; color: #182437; background: #f6f8fb; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

.header-settings { position: relative; flex: none; }
.settings-toggle { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 10px; border: 1px solid #e4e9ef; border-radius: 8px; color: #52647a; font-size: 12px; font-weight: 600; cursor: pointer; list-style: none; }
.settings-toggle::-webkit-details-marker { display: none; }
.settings-toggle:hover, .header-settings[open] .settings-toggle { color: #218c75; background: #f1faf7; border-color: #c5e6db; }
.settings-toggle:focus-visible, .settings-dropdown a:focus-visible { outline: 2px solid #218c75; outline-offset: 3px; }
.settings-toggle > svg { width: 17px; height: 17px; }
.settings-toggle .settings-chevron { width: 12px; height: 12px; }
.header-settings[open] .settings-chevron { transform: rotate(180deg); }
.settings-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 100; width: 200px; max-width: calc(100vw - 32px); padding: 6px; border: 1px solid #e4e9ef; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px #1d36571a; }
.settings-dropdown a { display: block; padding: 11px 12px; border-radius: 6px; color: #26354b; font-size: 13px; white-space: nowrap; }
.settings-dropdown a:hover { background: #f1faf7; color: #218c75; }
.profile-toggle { padding: 3px 8px 3px 3px; border-radius: 24px; }
.profile-toggle-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu .topbar-avatar { display: grid; }
.profile-dropdown { width: 230px; }
.profile-dropdown form { margin: 0; }
.profile-dropdown button { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 6px; background: transparent; color: #26354b; text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.profile-dropdown button:hover { background: #f1faf7; color: #218c75; }
.profile-dropdown button:focus-visible { outline: 2px solid #218c75; outline-offset: 3px; }
@media (max-width: 650px) { .profile-toggle-name { display: none; }.profile-menu .profile-toggle { padding: 3px; } }
.project-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.project-heading-actions .read-only-badge { margin-top: 0; }
@media (max-width: 650px) { .settings-toggle { padding: 8px; }.settings-toggle-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }.settings-toggle .settings-chevron { display: none; } }
@media (max-width: 650px) { .project-heading-actions { justify-content: flex-start; margin-top: 17px; }.project-settings .settings-dropdown { left: 0; right: auto; } }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 246px; min-width: 246px; min-height: 100vh; background: #14243b; color: #c0cad7; display: flex; flex-direction: column; padding: 29px 15px 18px; }
.brand, .login-brand { display: inline-flex; align-items: center; gap: 11px; color: white; font: 800 23px/1 'Manrope', sans-serif; letter-spacing: -.9px; }
.brand { margin: 3px 13px 48px; }
.brand-dot { color: #5ed4b5; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: #5ed4b5; padding: 7px 6px; display: flex; align-items: flex-start; gap: 3px; box-shadow: 0 4px 13px #0002; }
.brand-mark span { display: block; width: 4px; border-radius: 2px; background: #123449; }
.brand-mark span:nth-child(1) { height: 16px; }.brand-mark span:nth-child(2) { height: 12px; }.brand-mark span:nth-child(3) { height: 8px; }
.workspace-label, .project-nav-heading { margin: 0 13px 12px; color: #788ba1; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.workspace-card { display: flex; align-items: center; gap: 10px; margin: 0 3px 26px; padding: 10px 9px; background: #20344d; border: 1px solid #31455f; border-radius: 10px; }
.workspace-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #e7f0ff; color: #375a90; font-size: 14px; font-weight: 800; }
.workspace-card strong, .workspace-card small { display: block; }.workspace-card strong { color: #f5f8fb; font-size: 12px; }.workspace-card small { margin-top: 3px; color: #8ea0b5; font-size: 10px; }
.workspace-chevron { margin-left: auto; color: #a8b6c5; font-size: 19px; line-height: 1; }
.side-nav, .project-nav { display: grid; gap: 4px; }
.nav-link, .project-link { min-height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border-radius: 8px; color: #9eafc2; font-size: 12px; font-weight: 700; transition: background .15s, color .15s; }
.nav-link svg { width: 17px; height: 17px; }.nav-link:hover, .project-link:hover { background: #263a54; color: #fff; }.nav-link.active { background: #2a455d; color: #fff; }.nav-link.active svg { color: #61d5b8; }
.project-nav-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 31px; margin-bottom: 10px; }.project-total { font-size: 11px; letter-spacing: 0; color: #9aabc0; }
.project-link { position: relative; min-height: 36px; font-weight: 600; }.project-link.selected { color: white; background: #233951; }.project-link-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #e5a46d; }.project-dot-teal { background: #64cdb3; }.selected-marker { height: 16px; width: 3px; border-radius: 2px; margin-left: auto; background: #61d5b8; }
.sidebar-empty { margin: 7px 13px; color: #8293a8; font-size: 12px; }.sidebar-spacer { flex: 1; min-height: 32px; }
.sidebar-footer { display: flex; align-items: center; gap: 9px; border-top: 1px solid #2e4056; padding: 17px 6px 0; min-width: 0; }.profile-avatar, .topbar-avatar { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border-radius: 50%; background: #dbe7fa; color: #315c99; font-size: 13px; font-weight: 800; }.profile-avatar { background: #405c76; color: #fff; }.profile-name { min-width: 0; flex: 1; }.profile-name strong, .profile-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.profile-name strong { color: #f6f8fb; font-size: 11px; }.profile-name small { margin-top: 3px; color: #8d9fb3; font-size: 10px; }.logout-button { display: grid; place-items: center; padding: 5px; color: #8795a6; background: none; border: 0; }.logout-button:hover { color: #22354e; }.logout-button svg { width: 17px; height: 17px; }

.main-content { min-width: 0; flex: 1; }.topbar { height: 70px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e7ebf1; background: #fff; }.breadcrumbs { display: flex; align-items: center; gap: 12px; min-width: 0; color: #8a96a7; font-size: 12px; font-weight: 600; }.breadcrumbs strong { color: #26354b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.breadcrumb-separator { color: #c3cbd5; }.topbar-right { display: flex; align-items: center; gap: 17px; flex: none; }.today-date { color: #8490a0; font-size: 11px; font-weight: 600; }.topbar-avatar { width: 32px; height: 32px; }.refresh-button { display: grid; place-items: center; color: #8795a6; }.refresh-button:hover { color: #259d83; }.refresh-button svg { width: 17px; height: 17px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #2caa91; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }.eyebrow-line { width: 17px; height: 2px; background: #3cbaa0; }.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 10px; }.title-row h1, .no-projects h1, .login-card h1 { margin: 0; font: 800 clamp(26px, 2.5vw, 34px)/1.25 'Manrope', sans-serif; letter-spacing: -1.2px; color: #1b2a40; }.title-row p { margin: 9px 0 0; color: #8490a0; font-size: 13px; line-height: 1.6; }.read-only-badge { display: inline-flex; align-items: center; gap: 8px; flex: none; margin-top: 7px; padding: 8px 12px; border: 1px solid #dcebe6; border-radius: 50px; background: #f5faf8; color: #498a79; font-size: 11px; font-weight: 700; }.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #58c5a6; box-shadow: 0 0 0 3px #ddf4ec; }
.summary-strip { display: flex; align-items: stretch; margin-top: 30px; background: white; border: 1px solid #e9edf3; border-radius: 12px; box-shadow: 0 3px 13px #1d365708; overflow: hidden; }.summary-item { display: flex; align-items: center; gap: 12px; min-width: 185px; flex: 1; padding: 18px 24px; border-right: 1px solid #edf0f4; }.summary-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; }.summary-icon svg { width: 19px; height: 19px; }.summary-icon-blue { background: #e8f0fb; color: #5478b1; }.summary-icon-orange { background: #fff0df; color: #e29d50; }.summary-icon-green { background: #e3f6ed; color: #49aa82; }.summary-item small, .summary-item strong { display: block; }.summary-item small { color: #8996a6; font-size: 10px; font-weight: 700; }.summary-item strong { margin-top: 3px; color: #1f2e43; font: 800 20px/1.2 'Manrope', sans-serif; }.summary-note { display: flex; align-items: center; gap: 9px; padding: 18px 24px; color: #81909e; font-size: 11px; font-weight: 700; white-space: nowrap; }
.board-section { margin-top: 38px; }.board-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }.board-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: #1d2d42; font: 800 17px/1.3 'Manrope', sans-serif; letter-spacing: -.4px; }.board-heading p { margin: 5px 0 0; color: #95a0ae; font-size: 11px; }.board-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: #e8edf4; color: #5c6e83; font: 800 10px 'DM Sans', sans-serif; }.search-box { width: 237px; height: 37px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e4e9ef; border-radius: 8px; background: #fff; color: #9ca9b8; }.search-box:focus-within { border-color: #6bcbb4; box-shadow: 0 0 0 3px #dff6ed; }.search-box svg { width: 16px; height: 16px; }.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #22324b; font-size: 11px; }.search-box input::placeholder { color: #a5afbd; }.search-box kbd { border: 1px solid #e5e9ee; padding: 3px 4px; border-radius: 4px; color: #9aa5b2; font: 9px 'DM Sans', sans-serif; white-space: nowrap; }
.kanban-board { display: flex; align-items: flex-start; gap: 15px; overflow-x: auto; padding: 2px 0 30px; scrollbar-color: #c8d2df transparent; }.kanban-column { width: 283px; min-width: 283px; max-width: 320px; flex: 1; background: #eef2f6; border: 1px solid #e9edf2; border-radius: 10px; padding: 13px; }.column-heading { min-height: 28px; display: flex; align-items: center; justify-content: space-between; margin: 0 2px 13px; }.column-title { display: flex; align-items: center; gap: 8px; min-width: 0; }.column-title h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; color: #35455a; font: 800 11px 'Manrope', sans-serif; }.stage-indicator { width: 8px; height: 8px; border-radius: 3px; flex: none; }.stage-blue { background: #6e9ad2; }.stage-purple { background: #9b89d1; }.stage-green { background: #66bc9c; }.stage-orange { background: #efae6d; }.column-count { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 5px; background: #e0e6ed; color: #65758a; font-size: 10px; font-weight: 800; }.column-cards { display: grid; gap: 9px; }.ticket-card { width: 100%; display: block; padding: 14px 13px 12px; text-align: left; background: white; border: 1px solid #e7ebf1; border-radius: 8px; box-shadow: 0 2px 5px #20364f0b; transition: transform .15s, box-shadow .15s, border-color .15s; }.ticket-card:hover, .ticket-card:focus-visible { transform: translateY(-2px); border-color: #a9d8cc; box-shadow: 0 7px 17px #253a5418; outline: none; }.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }.ticket-key { color: #8192a7; font-size: 10px; font-weight: 800; letter-spacing: .4px; }.priority { display: inline-block; padding: 4px 7px; border-radius: 4px; background: #eef2f6; color: #718096; font-size: 9px; font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: .5px; }.priority-high { background: #fff0df; color: #d68b3b; }.priority-urgent { background: #ffeaeb; color: #dc6c77; }.priority-low { background: #e8f4f9; color: #5a9aad; }.card-title { display: block; margin-top: 12px; color: #2b394d; font: 800 12px/1.45 'Manrope', sans-serif; }.card-description { display: -webkit-box; margin-top: 6px; color: #8e9aa8; font-size: 10px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-top: 16px; padding-top: 10px; border-top: 1px solid #f0f2f5; }.card-author { display: flex; align-items: center; gap: 6px; min-width: 0; color: #7a8798; font-size: 9px; font-weight: 700; }.card-author > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.mini-avatar { width: 20px; height: 20px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #e2e9f5; color: #5575a4; font-size: 9px; font-weight: 800; }.card-date { flex: none; color: #a1acba; font-size: 9px; font-weight: 700; }.column-empty, .search-empty { text-align: center; margin: 8px 0; padding: 23px 6px; border: 1px dashed #d4dce5; border-radius: 7px; color: #9aa7b5; font-size: 11px; }
.board-empty, .no-projects { padding: 72px 25px; text-align: center; border: 1px dashed #d8e1eb; border-radius: 12px; background: #fff; }.empty-illustration { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 14px; background: #e4f5ef; color: #56b698; font-size: 28px; }.board-empty h3 { margin: 0; font: 800 16px 'Manrope', sans-serif; }.board-empty p, .no-projects p { color: #8794a3; font-size: 12px; line-height: 1.6; }.board-empty .secondary-button { display: inline-flex; margin-top: 8px; }.no-projects { margin-top: 40px; }.no-projects .eyebrow { justify-content: center; }.no-projects h1 { margin-top: 12px; }.no-projects .primary-button { display: inline-flex; margin-top: 13px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 38px; padding: 0 15px; border-radius: 7px; font-size: 11px; font-weight: 800; }.primary-button { border: 1px solid #2fae90; background: #39b899; color: #fff; box-shadow: 0 3px 9px #3fb99830; }.primary-button:hover { background: #269e82; }.secondary-button { border: 1px solid #dfe6ed; background: white; color: #46576c; }.secondary-button:hover { background: #f4f7fa; }
.notifications { margin-bottom: 15px; }.notification { padding: 10px 13px; border: 1px solid #cde9da; border-radius: 7px; background: #effaf3; color: #347657; font-size: 12px; }

.app-dialog { width: min(510px, calc(100vw - 32px)); max-height: min(85vh, 800px); padding: 26px; border: 0; border-radius: 14px; box-shadow: 0 25px 80px #12203640; }.app-dialog::backdrop { background: #14243b95; backdrop-filter: blur(2px); }.dialog-header { display: flex; align-items: center; justify-content: space-between; }.dialog-eyebrow { color: #3bac90; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }.dialog-close { display: grid; place-items: center; width: 29px; height: 29px; border: 0; border-radius: 6px; background: #f0f3f6; color: #68778a; font-size: 20px; line-height: 1; }.dialog-close:hover { background: #e3e8ee; }.app-dialog h2 { margin: 11px 0 10px; color: #203047; font: 800 22px/1.3 'Manrope', sans-serif; letter-spacing: -.6px; }.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #8a98a7; font-size: 11px; }.detail-stage { padding: 4px 8px; border-radius: 4px; background: #eaf0f8; color: #5b7595; font-size: 10px; font-weight: 800; }.detail-divider { height: 1px; background: #e9edf1; margin: 23px 0; }.detail-label { margin-bottom: 9px; color: #9ba6b3; font-size: 10px; font-weight: 800; letter-spacing: 1px; }.detail-description { margin: 0 0 23px; color: #4b5b6e; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }.detail-author { display: flex; align-items: center; gap: 8px; color: #43536a; font-size: 12px; font-weight: 700; }.detail-author .mini-avatar { width: 27px; height: 27px; font-size: 11px; }.detail-link { display: inline-flex; gap: 8px; margin-top: 28px; color: #259d83; font-size: 12px; font-weight: 800; }.detail-link:hover { text-decoration: underline; }

.card-insights { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 14px; color: #778699; font-size: 9px; font-weight: 700; }
.card-assigned { display: flex; align-items: center; gap: 5px; min-width: 0; }
.card-assigned > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.unassigned-dot { width: 7px; height: 7px; border-radius: 50%; background: #c4cdd8; flex: none; margin: 0 6px; }
.card-counts { display: flex; align-items: center; gap: 8px; flex: none; color: #9aa7b6; }
.card-counts > span { display: inline-flex; align-items: center; gap: 3px; }
.card-counts svg { width: 12px; height: 12px; }
.card-footer { margin-top: 10px; }
.card-date { white-space: nowrap; }

.detail-dialog { overflow-y: auto; }
.detail-loading { padding: 38px 0; color: #8291a2; font-size: 13px; }
.ticket-create-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.ticket-create-intro { margin: 0 0 24px; color: #65748a; font-size: 13px; line-height: 1.6; }
.ticket-create-form { display: grid; gap: 18px; }
.ticket-create-form [data-create-form-errors]:empty { display: none; }
.ticket-create-field { min-width: 0; }
.ticket-create-field > label { display: block; margin-bottom: 8px; color: #44546f; font-size: 13px; font-weight: 700; }
.ticket-create-field :is(input, textarea, select) { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #ccd7e2; border-radius: 7px; background: white; color: #24354d; font: inherit; font-size: 14px; }
.ticket-create-field small { display: block; margin-top: 6px; color: #748398; font-size: 12px; }
.ticket-create-dialog fieldset { min-width: 0; margin: 0; padding: 16px 0 0; border: 0; border-top: 1px solid #e1e7ee; }
.ticket-create-dialog legend { padding: 0 0 12px; color: #44546f; font-size: 14px; font-weight: 700; }
.ticket-create-dialog fieldset .ticket-create-field + .ticket-create-field { margin-top: 18px; }
.ticket-create-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ticket-create-actions [role=status] { color: #65748a; font-size: 12px; }
.ticket-create-dialog .errorlist, .ticket-create-feedback { margin: 6px 0 0; color: #a83e4c; font-size: 13px; line-height: 1.6; }
.ticket-create-dialog [aria-invalid=true] { border-color: #a83e4c; }
.ticket-create-dialog :is(button, input, textarea, select):focus-visible { outline: 2px solid #388bff; outline-offset: 2px; }
.ticket-create-dialog button:disabled { opacity: .6; cursor: progress; }
.detail-hero { padding: 22px 0 18px; }
.detail-key { color: #3bac90; font-size: 11px; font-weight: 800; letter-spacing: .7px; }
.detail-hero h2 { margin: 9px 0 13px; overflow-wrap: anywhere; }
.detail-type { color: #7f8da0; font-size: 11px; font-weight: 700; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 4px; padding: 15px 17px; border: 1px solid #e9edf2; border-radius: 9px; background: #f7f9fb; }
.detail-facts div { min-width: 0; }
.detail-facts dt, .required-data dt { color: #8d9bac; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.detail-facts dd, .required-data dd { margin: 5px 0 0; color: #35465b; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.detail-section { padding: 20px 0; border-bottom: 1px solid #edf0f4; }
.detail-section:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 15px; color: #26364c; font: 800 13px 'Manrope', sans-serif; }
.section-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 5px; background: #edf1f5; color: #718196; font: 800 10px 'DM Sans', sans-serif; }
.detail-section .detail-description { margin: 0; }
.required-data { display: grid; gap: 12px; margin: 16px 0 0; padding: 15px; border-radius: 8px; background: #f7f9fb; }
.people-label { margin: 0 0 9px; color: #8997a7; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.assigned-label { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.person-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; min-width: 0; }
.person-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #e3ebf8; color: #5376a4; font-size: 12px; font-weight: 800; }
.assigned-avatar { background: #e4f5ee; color: #439d7d; }
.person-info { min-width: 0; }
.person-info strong, .person-info small { display: block; overflow-wrap: anywhere; }
.person-info strong { color: #33445a; font-size: 12px; }
.person-info small { margin-top: 3px; color: #8c9aac; font-size: 10px; }
.detail-muted { margin: 0; color: #97a4b2; font-size: 12px; }
.file-list { display: grid; gap: 8px; }
.detail-file { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 8px; border: 1px solid #e7ebf1; border-radius: 8px; background: #fbfcfe; }
.detail-file:hover { border-color: #acdaca; background: #f7fcfa; }
.detail-file-icon, .detail-file-thumb { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 6px; background: #eaf0f8; color: #5e7da5; object-fit: cover; font-size: 10px; font-weight: 800; }
.detail-file-info { min-width: 0; flex: 1; }
.detail-file-info strong, .detail-file-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-file-info strong { color: #3d4e63; font-size: 11px; }
.detail-file-info small { margin-top: 4px; color: #9ba7b5; font-size: 10px; }
.detail-file-open { color: #91a0af; font-size: 14px; }
.comment-item { display: flex; gap: 11px; padding: 14px 0; border-top: 1px solid #f0f2f5; }
.comment-avatar { width: 28px; height: 28px; font-size: 10px; }
.comment-content { min-width: 0; flex: 1; }
.comment-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; }
.comment-heading strong { color: #35465a; font-size: 11px; }
.comment-heading time { color: #a0adba; font-size: 10px; }
.comment-content :is(p, .ticket-comment-body) { margin: 8px 0 0; color: #526276; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-files { margin-top: 10px; }
.feedback-rating { margin: 0 0 8px; color: #3a9f81; font-size: 18px; font-weight: 800; }

/* Ticket detail modal, following the card layout used on the board. */
.detail-dialog { width: min(960px, calc(100vw - 32px)); max-width: calc(100% - 32px); max-height: calc(100dvh - 48px); padding: 0; border-radius: 12px; background: #f1f2f4; color: #172b4d; font-family: 'DM Sans', system-ui, sans-serif; }
.detail-dialog .dialog-header { position: sticky; top: 0; z-index: 3; height: 0; margin: 0; padding: 0; border: 0; }
.detail-dialog .dialog-close { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: transparent; }
.detail-dialog .dialog-close img { width: 20px; height: 20px; opacity: .65; }
.detail-dialog .dialog-close:hover { background: #dfe3e8; }
.detail-dialog :is(button, summary, input, select):focus-visible { outline: 2px solid #388bff; outline-offset: 3px; }
.detail-dialog .detail-loading { margin: 0; padding: 64px 40px; }
.trello-card-header { display: flex; gap: 16px; padding: 28px 64px 30px 28px; }
.trello-header-icon, .trello-section-icon { flex: none; width: 24px; height: 24px; opacity: .65; }
.trello-header-icon { margin-top: 5px; }
.trello-title-block { min-width: 0; }
.trello-title-block h2 { margin: 0 0 10px; color: #172b4d; font: 600 24px/1.35 'DM Sans', system-ui, sans-serif; letter-spacing: -.3px; overflow-wrap: anywhere; }
.trello-title-block p { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0; color: #53657e; font-size: 14px; }
.trello-title-block .detail-key { color: #53657e; font-size: 12px; font-weight: 600; letter-spacing: 0; padding-right: 7px; border-right: 1px solid #cbd1da; }
.trello-list-name { display: inline-flex; align-items: center; gap: 7px; padding: 3px 7px; border: 0; border-radius: 3px; background: #dfe3e8; color: #44546f; font-size: 13px; font-weight: 600; }
button.trello-list-name:hover { background: #d0d5dc; }
.trello-list-name img { width: 12px; height: 12px; opacity: .65; }
.trello-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; padding: 0 24px 32px 28px; }
.trello-main, .trello-sidebar { min-width: 0; }
.trello-card-fields { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 0 0 30px 40px; }
.trello-card-field { min-width: 0; max-width: 100%; }
.trello-field-label { display: block; margin-bottom: 8px; color: #44546f; font-size: 14px; font-weight: 500; }
.trello-member-chips, .trello-label-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; max-width: 100%; padding: 0; border: 0; border-radius: 4px; background: transparent; text-align: left; }
.trello-member-chips .person-avatar { width: 36px; height: 36px; font-size: 14px; }
.trello-empty-members { padding: 8px 10px; border-radius: 4px; background: #e4e6ea; color: #44546f; font-size: 13px; }
.ticket-label { display: inline-block; padding: 7px 12px; border-radius: 4px; color: #164b35; background: #4bce97; font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.ticket-label-high { color: #702e00; background: #fea362; }
.ticket-label-urgent { color: #5d1f1a; background: #f87168; }
.ticket-label-normal { color: #164b35; background: #4bce97; }
.ticket-label-type { color: #302654; background: #a08deb; }
.trello-label-chips:hover .ticket-label, .trello-member-chips:hover { filter: brightness(.96); }
.trello-section { margin-bottom: 32px; scroll-margin-top: 24px; }
.trello-section:last-child { margin-bottom: 0; }
.trello-section-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.trello-section-heading h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: #172b4d; font: 600 18px/1.4 'DM Sans', system-ui, sans-serif; }
.trello-section-body { margin-left: 40px; }
.trello-description { color: #172b4d; font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.trello-subheading { margin: 20px 0 9px; color: #53657e; font-size: 11px; font-weight: 600; letter-spacing: .5px; }
.trello-section .required-data { margin: 0; padding: 14px 16px; border-radius: 6px; background: #e4e6ea; }
.trello-section .required-data dt { color: #53657e; font-size: 11px; }
.trello-section .required-data dd { color: #172b4d; font-size: 14px; font-weight: 500; }
.trello-section .detail-muted { color: #626f86; font-size: 14px; line-height: 1.5; }
.trello-section .detail-file { padding: 10px; background: transparent; border-color: transparent; }
.trello-section .detail-file:hover { background: #e4e6ea; }
.trello-section .detail-file-thumb, .trello-section .detail-file-icon { width: 88px; height: 64px; }
.trello-section .detail-file-info strong { color: #172b4d; font-size: 14px; }
.trello-section .detail-file-info small { color: #626f86; font-size: 12px; }
.trello-sidebar > h3 { margin: 0 0 10px; color: #626f86; font-size: 12px; font-weight: 500; }
.trello-action-group { display: grid; gap: 8px; }
.trello-action { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 10px 14px; border: 0; border-radius: 4px; background: #e4e6ea; color: #172b4d; cursor: pointer; font-size: 16px; font-weight: 500; text-align: left; list-style: none; }
.trello-action::-webkit-details-marker { display: none; }
.trello-action img { width: 18px; height: 18px; opacity: .7; }
.trello-action:hover { background: #d9dde3; }
.ticket-menu[open] > .trello-action { background: #d5dce7; }
.trello-action-count { margin-left: auto; color: #626f86; font-size: 12px; }
.trello-sidebar > .trello-actions-heading { margin-top: 26px; }
.trello-ticket-info { margin-top: 26px; padding-top: 20px; border-top: 1px solid #d8dde4; }
.trello-side-group { margin-bottom: 18px; }
.trello-side-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #626f86; font-size: 10px; font-weight: 600; letter-spacing: .4px; }
.trello-side-value { display: block; color: #44546f; font-size: 12px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.trello-side-value p { margin: 7px 0 0; white-space: pre-wrap; }
.trello-author { display: flex; align-items: center; gap: 8px; color: #44546f; font-size: 12px; }
.trello-author .person-avatar { width: 28px; height: 28px; }
.trello-author strong { font-weight: 500; overflow-wrap: anywhere; }
.trello-author-label { margin-top: 24px; }
.trello-section .comment-item { gap: 10px; border: 0; padding: 0 0 20px; }
.trello-section .comment-avatar { width: 32px; height: 32px; font-size: 12px; }
.trello-section .comment-heading { gap: 6px 10px; }
.trello-section .comment-heading strong { color: #172b4d; font-size: 13px; }
.trello-section .comment-heading time { color: #626f86; font-size: 11px; }
.trello-section .comment-content :is(p, .ticket-comment-body) { display: block; margin-top: 8px; padding: 12px; border-radius: 6px; background: white; color: #172b4d; font-size: 14px; box-shadow: 0 1px 2px #172b4d26; }
.trello-section .comment-files { margin-top: 4px; }
.ticket-popover { position: fixed; z-index: 5; width: 360px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 12px; border: 1px solid #dcdfe4; border-radius: 8px; background: white; box-shadow: 0 8px 24px #091e4240; color: #172b4d; }
.ticket-popover-heading { position: relative; display: flex; justify-content: center; align-items: center; min-height: 36px; margin-bottom: 12px; padding: 0 30px 12px; border-bottom: 1px solid #dcdfe4; }
.ticket-popover-heading h4 { margin: 0; color: #44546f; font-size: 16px; font-weight: 600; }
.ticket-popover-heading button { position: absolute; right: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; padding: 7px; border: 0; border-radius: 4px; background: transparent; }
.ticket-popover-heading button:hover { background: #f1f2f4; }
.ticket-popover-heading img { width: 14px; height: 14px; opacity: .65; }
.ticket-label-search { width: 100%; height: 44px; margin-bottom: 18px; padding: 8px 12px; border: 1px solid #8590a2; border-radius: 4px; color: #172b4d; font-size: 16px; }
.ticket-label-search:focus { border: 2px solid #388bff; padding: 7px 11px; outline: none !important; }
.ticket-popover .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ticket-label-list { display: grid; gap: 14px; padding-bottom: 6px; }
.ticket-label-option .ticket-label { display: block; font-size: 16px; }
.ticket-label-empty { margin: 0; padding: 6px 0; }
.ticket-popover .person-row { margin: 0 0 12px; }
.ticket-popover .person-info strong { font-size: 13px; }
.ticket-popover .person-info small { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.detail-dialog .ticket-move-form { gap: 10px; margin: 0; font-size: 14px; }
.detail-dialog .ticket-move-form select { color: #172b4d; background: white; }
.detail-dialog .ticket-move-form .primary-button { justify-content: center; min-height: 38px; }
.detail-dialog .move-feedback { margin: 0; }
@media (max-width: 760px) {
  .detail-dialog { width: calc(100vw - 20px); max-width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .trello-card-header { padding: 24px 56px 24px 20px; gap: 12px; }
  .trello-title-block h2 { font-size: 20px; }
  .trello-detail-grid { grid-template-columns: 1fr; gap: 28px; padding: 0 20px 24px; }
  .trello-card-fields { margin-left: 36px; }
  .trello-section-heading { gap: 12px; }
  .trello-section-body { margin-left: 36px; }
  .trello-sidebar { border-top: 1px solid #d8dde4; padding-top: 20px; }
  .trello-action-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trello-ticket-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
}
@media (max-width: 480px) {
  .trello-card-header { padding-left: 16px; }
  .trello-detail-grid { padding-left: 16px; padding-right: 16px; }
  .trello-section-body, .trello-card-fields { margin-left: 0; }
  .trello-section-heading h3 { font-size: 17px; }
  .trello-description { font-size: 14px; }
  .trello-section .detail-file-thumb, .trello-section .detail-file-icon { width: 56px; height: 48px; }
  .trello-action { gap: 8px; padding: 10px; font-size: 13px; }
}

.login-page { background: radial-gradient(circle at 50% 0, #e2f4ee, transparent 45%), #f5f7fa; }.login-card { width: min(420px, 100%); padding: 36px; background: white; border: 1px solid #e7edf1; border-radius: 15px; box-shadow: 0 15px 45px #25394d14; }.login-brand { color: #1e3045; margin-bottom: 42px; }.login-card h1 { margin-top: 12px; font-size: 25px; }.login-card > p { color: #8c99a8; font-size: 12px; }.login-card form { display: grid; margin-top: 30px; }.field-label { display: block; margin: 0 0 7px; color: #4b5b6f; font-size: 11px; font-weight: 800; }.login-card input:not([type=hidden]) { width: 100%; height: 41px; padding: 0 12px; margin-bottom: 19px; border: 1px solid #dfe6ee; border-radius: 7px; outline: none; color: #203047; }.login-card input:focus { border-color: #5dc5aa; box-shadow: 0 0 0 3px #def5ed; }.login-card .primary-button { margin-top: 6px; justify-content: space-between; font-size: 12px; }.login-error { padding: 10px; margin-top: 17px; border-radius: 7px; background: #fff0f0; color: #a53c47; font-size: 12px; }

@media (max-width: 900px) { .sidebar { width: 205px; min-width: 205px; }.topbar { padding: 0 24px; }.summary-note { display: none; } }
@media (max-width: 650px) { .app-shell { display: block; }.sidebar { width: 100%; min-width: 0; min-height: 0; padding: 14px 16px; }.brand { margin: 0 0 13px; font-size: 20px; }.workspace-label, .workspace-card, .side-nav, .project-nav-heading, .sidebar-footer { display: none; }.project-nav { display: flex; overflow-x: auto; gap: 6px; }.project-link { flex: none; background: #20344d; padding: 0 11px; }.selected-marker { display: none; }.topbar { height: 49px; padding: 0 18px; }.topbar-right { gap: 10px; }.today-date, .topbar-avatar { display: none; }.title-row { display: block; }.read-only-badge { margin-top: 17px; }.summary-strip { margin-top: 22px; }.summary-item { min-width: 0; gap: 6px; padding: 14px 9px; }.summary-icon { width: 30px; height: 30px; border-radius: 7px; }.summary-icon svg { width: 15px; height: 15px; }.summary-item small { font-size: 8px; }.summary-item strong { font-size: 16px; }.board-section { margin-top: 29px; }.board-heading { align-items: stretch; flex-direction: column; gap: 13px; }.search-box { width: 100%; }.kanban-column { width: 268px; min-width: 268px; }.app-dialog:not(.detail-dialog) { padding: 20px; } }

.board-section { margin-top: 24px; }
.board-filters { margin: 0 0 16px; }
.filter-bar { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 56px; padding: 7px; border: 1px solid #e0e8ee; border-radius: 10px; background: #fff; box-shadow: 0 2px 10px #1d365708; }
.filter-search { display: flex; align-items: center; gap: 8px; width: 215px; height: 38px; flex: none; padding: 0 11px; border: 1px solid #e1e8ee; border-radius: 8px; background: #f7f9fb; color: #899aaa; }
.filter-search:hover { border-color: #cbd9e0; background: #fff; }
.filter-search:focus-within { border-color: #61bea3; background: #fff; box-shadow: 0 0 0 3px #dff4eb; }
.filter-search svg { width: 16px; height: 16px; }
.filter-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #283b51; font-size: 12px; }
.filter-search input::placeholder { color: #9aa8b7; }
.filter-search kbd { flex: none; padding: 3px 4px; border: 1px solid #e0e6ec; border-radius: 4px; background: #fff; color: #a1adba; font: 9px 'DM Sans', sans-serif; }
.filter-scroll { min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #cbd5df transparent; }
.filter-fields { display: flex; align-items: center; gap: 7px; width: max-content; padding-right: 8px; }
.filter-field { position: relative; flex: none; width: 100px; }
.filter-department { width: 135px; }
.filter-author { width: 120px; }
.filter-assignee { width: 130px; }
.filter-issue-type { width: 130px; }
.filter-level { width: 90px; }
.filter-rating { width: 95px; }
.filter-field select, .filter-field input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #e1e8ee; border-radius: 8px; background: #f7f9fb; color: #40536a; font-size: 12px; outline: none; }
.filter-field select:hover, .filter-field input:hover { border-color: #cbd9e0; background: #fff; }
.filter-field select:focus, .filter-field input:focus { border-color: #63c5aa; box-shadow: 0 0 0 2px #def5ed; }
.filter-field.has-error select, .filter-field.has-error input { border-color: #d98188; }
.filter-field.is-active select, .filter-field.is-active input { border-color: #b8e3d1; background-color: #f1faf6; color: #25775f; font-weight: 700; }
.filter-field.is-active select { padding-right: 39px; }
.filter-department.is-active { width: 155px; }
.filter-author.is-active, .filter-assignee.is-active { width: 145px; }
.filter-issue-type.is-active { width: 160px; }
.filter-level.is-active, .filter-rating.is-active { width: 105px; }
.filter-clear-one { position: absolute; top: 50%; right: 23px; z-index: 1; display: grid; place-items: center; width: 17px; height: 17px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: #dcefe6; color: #4b8a72; font-size: 14px; line-height: 1; }
.filter-clear-one:hover { background: #c6e7d8; color: #246449; }
.filter-clear-one:focus-visible { outline: 2px solid #309e7f; outline-offset: 1px; }
.filter-date-group { display: flex; align-items: center; gap: 7px; color: #73869a; font-size: 11px; font-weight: 700; white-space: nowrap; }
.filter-date { width: 130px; }
.filter-date.is-active { width: 155px; }
.filter-date input { padding: 0 5px; }
.filter-date .filter-clear-one { right: 29px; }
.filter-noscript-apply { margin-top: 8px; }
.filter-error { margin-top: 7px; color: #aa4750; font-size: 10px; }
.filter-error span { margin-left: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .filter-search { width: 185px; } }
@media (max-width: 650px) { .board-section { margin-top: 20px; }.board-filters { margin-bottom: 12px; }.filter-search { width: 155px; }.filter-search kbd { display: none; } }

.app-shell { display: block; }
.main-content, .page-content { width: 100%; }

.title-row > div { min-width: 0; }
.title-row h1, .title-row p { overflow-wrap: anywhere; }
.summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary-item { min-width: 0; }
.summary-item:last-child { border-right: 0; }
.summary-icon { flex: none; }
.topbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; padding: 0 40px; }
.topbar-brand { margin: 0; color: #203047; font-size: 21px; white-space: nowrap; }
.project-switcher { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; padding: 5px 0; scrollbar-width: thin; scrollbar-color: #d1dce5 transparent; }
.header-project-link { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; flex: none; padding: 8px 11px; border: 1px solid transparent; border-radius: 8px; color: #67788c; font-size: 11px; font-weight: 800; white-space: nowrap; }
.header-project-link:hover { background: #f0f5f7; color: #30465d; }
.header-project-link.selected { border-color: #d4ebe1; background: #e9f6f0; color: #257e64; }
.header-project-name { overflow: hidden; text-overflow: ellipsis; }
.kanban-board { min-width: 0; overscroll-behavior-inline: contain; align-items: flex-start; }
.kanban-board.board-scroll-managed { scrollbar-width: none; }
.board-scroll-managed::-webkit-scrollbar { display: none; }
/* Compact board overview; the blue frame is the draggable visible viewport. */
.board-horizontal-scroll { position: fixed; z-index: 30; box-sizing: border-box; height: 48px; padding: 5px; border: 1px solid var(--workspace-border, #dce3ec); border-radius: 7px; background: var(--workspace-card, #fff); box-shadow: 0 3px 16px #172b4d26; }
.board-scroll-map { position: absolute; inset: 5px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; overflow: hidden; border-radius: 4px; pointer-events: none; }
.board-scroll-map > span { background: var(--workspace-well, #eef2f6); }
.board-horizontal-scroll input { position: relative; display: block; appearance: none; width: 100%; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: grab; }
.board-horizontal-scroll input:active { cursor: grabbing; }
.board-horizontal-scroll input:focus-visible { outline: 2px solid var(--workspace-brand, #1e69af); outline-offset: 2px; }
.board-horizontal-scroll input::-webkit-slider-runnable-track { height: 36px; background: transparent; }
.board-horizontal-scroll input::-webkit-slider-thumb { appearance: none; box-sizing: border-box; width: var(--board-scroll-thumb-width, 48px); height: 36px; border: 2px solid var(--workspace-brand, #1e69af); border-radius: 4px; background: color-mix(in srgb, var(--workspace-brand, #1e69af) 7%, transparent); }
.board-horizontal-scroll input::-moz-range-track { height: 36px; background: transparent; }
.board-horizontal-scroll input::-moz-range-thumb { box-sizing: border-box; width: var(--board-scroll-thumb-width, 48px); height: 36px; border: 2px solid var(--workspace-brand, #1e69af); border-radius: 4px; background: color-mix(in srgb, var(--workspace-brand, #1e69af) 7%, transparent); }
.kanban-column { display: flex; flex-direction: column; min-width: 320px; max-width: 420px; flex: 1 0 320px; }
.kanban-column .column-heading, .kanban-column .column-add-ticket { flex: none; }
.column-cards { grid-template-columns: minmax(0, 1fr); align-content: start; flex: none; height: auto; max-height: var(--board-list-height, 2495px); min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: auto; scrollbar-gutter: stable; padding: 6px 4px 8px; margin: -4px -4px 0; }
.kanban-board, .column-cards { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--workspace-muted, #64748b) 25%, transparent) transparent; }
.kanban-board:hover, .column-cards:hover, .column-cards:focus-within { scrollbar-color: color-mix(in srgb, var(--workspace-muted, #64748b) 50%, transparent) transparent; }
.kanban-board::-webkit-scrollbar, .column-cards::-webkit-scrollbar { width: 6px; height: 6px; }
.column-cards::-webkit-scrollbar:horizontal { height: 0; }
.kanban-board::-webkit-scrollbar-track, .column-cards::-webkit-scrollbar-track { background: transparent; }
.kanban-board::-webkit-scrollbar-thumb, .column-cards::-webkit-scrollbar-thumb { border: 1px solid transparent; border-radius: 999px; background: color-mix(in srgb, var(--workspace-muted, #64748b) 25%, transparent); background-clip: padding-box; }
.kanban-board::-webkit-scrollbar-thumb:hover, .column-cards::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--workspace-muted, #64748b) 50%, transparent); }
.ticket-card { min-width: 0; }
.column-title { width: 100%; }
.column-count { flex: none; }
.card-title, .card-description { overflow-wrap: anywhere; }
/* Age colors apply to all open tickets, independently of the viewer's read state. */
.ticket-card.ticket-age-fresh { --ticket-age-color: #387de0; --ticket-age-background: #f1f7ff; --ticket-age-text: #2056a3; }
.ticket-card.ticket-age-warning { --ticket-age-color: #b77916; --ticket-age-background: #fff8e6; --ticket-age-text: #855500; }
.ticket-card.ticket-age-critical { --ticket-age-color: #c83d50; --ticket-age-background: #fff3f5; --ticket-age-text: #a92b3d; }
.ticket-card:is(.ticket-age-fresh, .ticket-age-warning, .ticket-age-critical) { border: 2px solid var(--ticket-age-color); background: var(--ticket-age-background); box-shadow: inset 4px 0 0 var(--ticket-age-color), 0 3px 12px rgba(32, 54, 79, .12); }
.ticket-card:is(.ticket-age-fresh, .ticket-age-warning, .ticket-age-critical):is(:hover, :focus-visible) { border-color: var(--ticket-age-color); box-shadow: inset 4px 0 0 var(--ticket-age-color), 0 8px 20px rgba(32, 54, 79, .20); }
.card-age { display: block; margin-top: 10px; color: var(--ticket-age-text); font-size: 10px; font-weight: 700; }
.ticket-card.is-unread::after { content: ""; position: absolute; top: -6px; right: -6px; width: 12px; height: 12px; border: 2px solid #eef2f6; border-radius: 50%; background: #387de0; pointer-events: none; }
@media (max-width: 900px) {
  .topbar { padding: 0 24px; gap: 15px; }
  .summary-item { padding-inline: 16px; }
}
@media (max-width: 760px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "projects projects"; height: auto; min-height: 70px; gap: 4px 12px; padding: 10px 16px; }
  .topbar-brand { grid-area: brand; font-size: 20px; }
  .project-switcher { grid-area: projects; }
  .topbar-right { grid-area: actions; gap: 10px; }
  .today-date { display: none; }
  .filter-bar { display: grid; grid-template-columns: minmax(0, 1fr); }
  .filter-search, .filter-scroll { width: 100%; }
}
@media (max-width: 650px) {
  .topbar-brand { margin: 0; }
  .summary-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .summary-item small { font-size: 10px; }
  .summary-item strong { font-size: 18px; }
  .kanban-board { gap: 12px; }
  .kanban-column { width: auto; min-width: 0; flex: 0 0 min(100%, 320px); }
}
@media (max-width: 380px) {
  .summary-item { padding: 10px 8px; }
  .summary-icon { display: none; }
}
/* Ticket movement */
.ticket-card { position: relative; }
.board-content[data-can-move="true"] .ticket-card { cursor: grab; touch-action: auto; user-select: none; }
.board-content[data-can-move="true"] .ticket-card:active { cursor: grabbing; }
.is-dragging { opacity: .3; }
.is-saving { opacity: .6; pointer-events: none; }
.drag-ghost { position: fixed; z-index: 1000; pointer-events: none; opacity: .95; box-shadow: 0 16px 40px #20364f40; transform: rotate(2deg); }
.drag-placeholder { border: 2px dashed #43ad93; border-radius: 8px; background: #dff6ed; }
.drag-placeholder.is-floating { position: fixed; z-index: 999; box-sizing: border-box; pointer-events: none; }
.kanban-column.drop-target { border-color: #43ad93; background: #e4f4ee; }
.board-status { min-height: 24px; padding: 5px 0; font-size: 12px; color: #536b80; }
.ticket-move-form { display: grid; gap: 9px; margin-bottom: 20px; }
.ticket-move-form select { width: 100%; padding: 9px; border: 1px solid #d8e1eb; border-radius: 6px; }
.move-feedback { color: #a33d47; font-size: 12px; }

/* Shared page shell */
.app-page { min-height: 100vh; display: flex; flex-direction: column; }
.app-page > .topbar { flex-shrink: 0; }
.login-content { display: grid; place-items: center; }

/* Editable ticket controls */
:is(.detail-dialog, .ticket-create-dialog) .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.detail-dialog form[data-ticket-action] { display: grid; gap: 10px; min-width: 0; font-size: 14px; }
.detail-dialog form[data-ticket-action] label { color: #44546f; font-size: 13px; }
.detail-dialog form[data-ticket-action] :where(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select) { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #8590a2; border-radius: 4px; background: white; color: #172b4d; font: inherit; }
.detail-dialog textarea { resize: vertical; }
.detail-dialog input[type=file] { width: 100%; max-width: 100%; color: #44546f; font-size: 12px; }
.detail-dialog input[type=file]::file-selector-button { margin-right: 8px; padding: 8px 10px; border: 0; border-radius: 4px; background: #e4e6ea; color: #172b4d; cursor: pointer; }
.detail-dialog form[data-ticket-action] small { color: #626f86; font-size: 11px; }
.ticket-inline-button, .ticket-danger-button { display: inline-flex; justify-content: center; align-items: center; padding: 8px 12px; border: 0; border-radius: 4px; background: #e4e6ea; color: #172b4d; font-size: 13px; font-weight: 500; cursor: pointer; list-style: none; }
.ticket-inline-button::-webkit-details-marker, .ticket-inline-link::-webkit-details-marker { display: none; }
.ticket-inline-button:hover { background: #d9dde3; }
.ticket-inline-link { display: inline-block; border: 0; padding: 0; background: transparent; color: #44546f; font-size: 12px; cursor: pointer; text-decoration: underline; list-style: none; }
.ticket-danger-button { background: #c9372c; color: white; }
.ticket-danger-button:hover { background: #a62a23; }
.detail-dialog button:disabled { cursor: progress; opacity: .6; }
.ticket-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ticket-form-feedback { margin: 0; color: #ae2e24; font-size: 13px; line-height: 1.5; }
.ticket-editor { margin-top: 12px; }
.ticket-editor > form { margin-top: 12px; padding: 14px; border-radius: 6px; background: #e4e6ea; }
.ticket-delete-editor > form { margin-top: 8px; padding: 0; border-radius: 0; background: transparent; }
.ticket-delete-editor .ticket-form-feedback:empty { display: none; }
.ticket-editor[open] > summary { margin-bottom: 8px; }
.ticket-label-form, .ticket-people-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid #dcdfe4; }
.ticket-people-form fieldset { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ticket-people-form legend { margin-bottom: 10px; color: #44546f; font-size: 13px; }
.ticket-assignee-option { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.ticket-assignee-option input { width: 16px; height: 16px; flex: none; accent-color: #0c66e4; }
.ticket-people-form fieldset { max-height: 220px; overflow-y: auto; }
.detail-dialog .ticket-comment-form { margin-bottom: 26px; padding: 14px; border: 1px solid #dcdfe4; border-radius: 8px; background: white; }
.ticket-comment-form .primary-button, .ticket-upload-form button { justify-self: start; }
.detail-dialog .ticket-upload-form { margin-top: 18px; }
.ticket-comment-actions, .ticket-file-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-top: 8px; }
.ticket-comment-actions .ticket-editor, .ticket-file-actions .ticket-editor { margin: 0; }
.ticket-comment-actions:has(.ticket-editor[open]), .ticket-file-actions:has(.ticket-editor[open]) { display: block; }
.ticket-comment-actions .ticket-editor[open], .ticket-file-actions .ticket-editor[open] { margin-bottom: 12px; }
.ticket-attachment-item { min-width: 0; }
.ticket-file-actions { padding-left: 10px; }
.ticket-history { margin-top: 12px; }
.ticket-history ol { list-style: none; margin: 16px 0 0; padding: 0; }
.ticket-history li { margin-bottom: 12px; color: #44546f; font-size: 13px; line-height: 1.5; }
.ticket-history time { display: block; color: #626f86; font-size: 11px; }
.detail-dialog .trello-section .ticket-form-feedback { padding: 0; margin: 0; color: #ae2e24; background: transparent; box-shadow: none; font-size: 13px; }
.ticket-history li, .ticket-delete-editor form > span { overflow-wrap: anywhere; }

/* Current ticket workspace: white details and gray activity, matching the supplied modal. */
.detail-dialog { width: min(1080px, calc(100vw - 32px)); max-height: calc(100dvh - 24px); background: #fff; color: #292a2e; font-family: Arial, system-ui, sans-serif; border-radius: 10px; overflow-y: auto; }
.detail-dialog #ticket-detail-content { min-width: 0; }
.ticket-topbar { position: sticky; top: 0; z-index: 4; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid #ddd; background: #fff; }
.ticket-topbar-key { font-size: 12px; color: #62666d; }
.ticket-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ticket-icon-button { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 6px; border: 0; background: transparent; cursor: pointer; border-radius: 50%; list-style: none; }
.ticket-icon-button:hover, .ticket-menu[open] > .ticket-icon-button { background: #e2e3e5; }
.ticket-icon-button img { width: 18px; height: 18px; }
.ticket-stage-button { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; background: #dddfe2; border-radius: 3px; font-size: 14px; list-style: none; cursor: pointer; }
.ticket-stage-button img { width: 10px; height: 10px; }
.ticket-workspace { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); min-height: 510px; }
.ticket-details-pane { min-width: 0; padding: 24px 40px 40px 24px; }
.ticket-activity-pane { min-width: 0; border-left: 1px solid #d6d6d8; background: #f0f1f2; padding: 16px; }
.ticket-title-row { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 24px; }
.ticket-title-row > img { width: 18px; height: 18px; margin-top: 7px; }
.ticket-title-row h2 { margin: 0; font: 700 28px/1.2 Arial, system-ui, sans-serif; letter-spacing: -.6px; overflow-wrap: anywhere; }
.ticket-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 30px 32px; }
.ticket-toolbar-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #dcdee1; padding: 6px 10px; min-height: 32px; background: #fff; color: #50535b; border-radius: 5px; font: 14px/1.2 Arial, system-ui, sans-serif; cursor: pointer; list-style: none; white-space: nowrap; }
.ticket-toolbar-button img { width: 16px; height: 16px; }
.ticket-toolbar-button:hover { background: #f0f1f2; }
.ticket-menu[open] > .ticket-toolbar-button { background: #50535b; color: #fff; }
.ticket-menu[open] > .ticket-toolbar-button img { filter: invert(1); }
.ticket-menu > summary::-webkit-details-marker { display: none; }
.ticket-content-section { margin: 32px 0; }
.ticket-section-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.ticket-section-heading > img { width: 20px; height: 20px; }
.ticket-section-heading h3 { margin: 0; font-size: 14px; font-weight: 700; flex: 1; }
.ticket-section-body { margin-left: 32px; font-size: 14px; line-height: 1.65; }
.ticket-documentation-links { display: grid; gap: 7px; margin: 0 0 14px; padding: 0; list-style: none; }
.ticket-documentation-links li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid #e2e5e9; border-radius: 6px; background: #fff; }
.ticket-documentation-links a { color: #1868a8; font-weight: 600; text-decoration: none; }
.ticket-documentation-key { margin-right: 7px; color: #718196; font: 700 11px ui-monospace, monospace; }
.ticket-documentation-links a:hover { text-decoration: underline; }
.ticket-documentation-links form { display: inline-flex; align-items: center; gap: 8px; }
.ticket-documentation-search-label { display: block; margin: 10px 0 6px; color: #626f81; font-size: 12px; font-weight: 600; }
.ticket-documentation-search { width: min(100%, 520px); min-height: 38px; padding: 8px 11px; border: 1px solid #c9cbd0; border-radius: 6px; color: #292a2e; font: inherit; }
.ticket-documentation-results { display: grid; gap: 5px; width: min(100%, 520px); max-height: 250px; overflow: auto; margin-top: 7px; }
.ticket-documentation-results > p { margin: 5px 0; color: #727b89; font-size: 12px; }
.ticket-documentation-result { display: grid; gap: 3px; padding: 9px 11px; border: 1px solid #e2e5e9; border-radius: 6px; background: #fff; color: #292a2e; text-align: left; cursor: pointer; }
.ticket-documentation-result:hover, .ticket-documentation-result:focus-visible { border-color: #7bbda8; background: #f2faf7; }
.ticket-documentation-result small { overflow: hidden; color: #727b89; text-overflow: ellipsis; white-space: nowrap; }
.ticket-related-link-form > label { display: block; margin: 0 0 6px; color: #626f81; font-size: 12px; font-weight: 600; }
.ticket-related-link-form select { width: 100%; min-height: 36px; margin-bottom: 12px; padding: 7px 10px; border: 1px solid #c9cbd0; border-radius: 6px; background: #fff; color: #292a2e; font: inherit; }
.ticket-related-links li > a { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.ticket-relation-type { flex: none; padding: 3px 7px; border-radius: 5px; background: #edf4f8; color: #506783; font-size: 11px; font-weight: 600; }
.ticket-related-empty { margin: 4px 0; color: #727b89; font-size: 13px; }
.detail-dialog .trello-description { color: #292a2e; font: 14px/1.75 Arial, system-ui, sans-serif; white-space: pre-wrap; }
.ticket-section-body > .ticket-editor > summary { display: none; }
.ticket-section-body > .ticket-editor[open] { margin: 16px 0; }
.ticket-section-body > .ticket-editor > form { padding: 12px; }
.ticket-required-data { margin-top: 20px; }
.ticket-activity-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.ticket-activity-heading img { width: 18px; height: 18px; }
.ticket-activity-heading h3 { flex: 1; margin: 0; font-size: 14px; }
.ticket-activity-heading .ticket-toolbar-button { background: transparent; font-size: 13px; }
.detail-dialog .ticket-comment-form { margin: 0 0 16px; padding: 0; border: 0; background: transparent; }
.detail-dialog .ticket-comment-form textarea { padding: 10px 12px; border: 1px solid #c9cbd0; border-radius: 10px; min-height: 38px; color: #292a2e; resize: vertical; }
.ticket-comment-form.is-collapsed textarea { resize: none; }
.ticket-comment-form.is-collapsed .ticket-composer-controls { display: none; }
.ticket-composer-controls { display: grid; gap: 8px; padding: 10px; border: 1px solid #ddd; border-radius: 6px; background: #fff; }
.detail-dialog .primary-button { min-height: 32px; padding: 6px 12px; border: 0; border-radius: 5px; background: #1868db; color: #fff; box-shadow: none; font: 600 14px/20px Arial, system-ui, sans-serif; }
.detail-dialog .primary-button:hover { background: #1255b6; }
.detail-dialog .comment-item { gap: 8px; margin: 16px 0; }
.detail-dialog .person-avatar { width: 30px; height: 30px; min-width: 30px; font-size: 12px; background: #dfe5ec; color: #34435b; }
.detail-dialog .comment-heading { justify-content: flex-start; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; margin-bottom: 5px; }
.detail-dialog .comment-heading strong { color: #292a2e; font-size: 14px; }
.detail-dialog .comment-heading time, .ticket-history-event time { font-size: 12px; color: #0c66e4; text-decoration: underline; }
.detail-dialog .comment-content > :is(p, .ticket-comment-body) { padding: 9px 12px; border: 1px solid #d8dade; border-radius: 10px; margin: 0 0 4px; color: #292a2e; font-size: 14px; box-shadow: none; }
.ticket-history-event { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; margin: 20px 0; }
.ticket-history-event .person-avatar .integration-icon, .ticket-repository-icon .integration-icon { width: 20px; height: 20px; flex: none; }
.ticket-repository-icon { display: inline-flex; margin-right: 6px; vertical-align: middle; }
.ticket-history-event time { display: block; margin-top: 3px; }
.ticket-history-change { white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-activity-feed[data-show-details=false] [data-activity-detail] { display: none; }
.ticket-popover { width: 304px; color: #292a2e; padding: 12px; border-radius: 10px; box-shadow: 0 5px 14px #0002; font: 14px/1.5 Arial, system-ui, sans-serif; }
.ticket-popover-heading { min-height: 30px; border: 0; padding-bottom: 4px; margin-bottom: 16px; }
.ticket-popover-heading h4 { font-size: 14px; color: #50535b; }
.ticket-popover :is(input[type=search], input[type=text]) { width: 100%; padding: 9px 10px; border: 1px solid #8590a2; border-radius: 4px; font: inherit; }
.ticket-add-option { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 4px; background: #fff; text-align: left; padding: 8px 0; color: #292a2e; font-size: 14px; cursor: pointer; }
.ticket-add-option:hover { background: #f1f2f4; }
.ticket-add-option img { width: 40px; height: 40px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.ticket-add-option small { display: block; font-size: 12px; color: #50535b; }
.ticket-label-choice { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.ticket-label-choice .ticket-label { flex: 1; }
.detail-dialog fieldset { border: 0; margin: 8px 0; padding: 0; }
.detail-dialog legend { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.ticket-overflow > button, .ticket-overflow form > button { width: 100%; border: 0; text-align: left; padding: 9px 8px; background: transparent; color: #292a2e; font: 14px Arial, system-ui, sans-serif; cursor: pointer; }
.ticket-overflow button:hover { background: #f0f1f2; }
.ticket-overflow form { gap: 0 !important; }
.ticket-overflow small { padding: 0 8px 8px; }
.ticket-modal-cover { width: 100%; max-height: 180px; object-fit: cover; border-radius: 5px; margin-bottom: 20px; }
.ticket-card-cover { width: 100%; max-height: 120px; object-fit: cover; border-radius: 4px; }
.ticket-metadata { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 24px 32px; }
.ticket-date-chip { padding: 5px 8px; border-radius: 4px; background: #f1f2f4; font-size: 12px; }
.ticket-date-chip.is-overdue { background: #ffe2df; color: #ae2e24; }
.ticket-date-chip.is-complete { background: #dcfce7; color: #166534; }
.ticket-checklist-progress { display: flex; align-items: center; gap: 14px; font-size: 11px; margin: 0 0 12px; }
.ticket-checklist-progress progress { flex: 1; width: 0; height: 8px; accent-color: #292a2e; }
.ticket-checklist-item { display: flex; align-items: flex-start; gap: 12px; margin: 12px 0; }
.ticket-checklist-item form[data-ticket-action=item_toggle] { display: block; padding-top: 3px; }
.ticket-checklist-item input[type=checkbox] { width: 16px; height: 16px; accent-color: #1868db; }
.ticket-checklist-item-content { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ticket-checklist-item.is-complete .ticket-item-text { text-decoration: line-through; color: #62666d; }
.ticket-checklist-item-content > small { display: block; font-size: 11px; }
.ticket-checklist[data-hide-checked=true] .is-complete:not(.is-toggle-pending):not(.is-toggle-leaving) { display: none; }
.ticket-checklist-add > summary { display: inline-flex !important; }
.ticket-item-actions { display: flex; gap: 12px; align-items: start; }
.ticket-item-actions form { display: block !important; }
.ticket-section-body .detail-file { padding: 4px 0; background: transparent; border: 0; }
.ticket-section-body .detail-file-thumb, .ticket-section-body .detail-file-icon { width: 64px; height: 48px; object-fit: contain; border-radius: 4px; background: #f0f1f2; }
.ticket-file-actions { display: flex; gap: 12px; font-size: 12px; padding-left: 76px; }
.ticket-mobile-tabs { display: none; }
.detail-dialog .ticket-action-status { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; width: max-content; z-index: 10; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); margin: 0; padding: 12px 16px; border: 1px solid #b7dfc9; border-radius: 8px; background: #f0fff6; color: #216e4e; box-shadow: 0 4px 16px #172b4d24; font: 600 14px/20px Arial, system-ui, sans-serif; pointer-events: none; opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity 160ms ease-out, transform 160ms ease-out, visibility 160ms; }
.detail-dialog .ticket-action-status.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ticket-action-status svg { flex: none; width: 20px; height: 20px; }
.ticket-calendar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ticket-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 12px; }
.ticket-calendar-grid button { border: 0; border-radius: 4px; background: transparent; padding: 8px 2px; cursor: pointer; color: #292a2e; }
.ticket-calendar-grid button:hover, .ticket-calendar-grid button[aria-pressed=true] { background: #e8f1ff; color: #0c66e4; }
.ticket-calendar-grid span { padding: 4px; color: #62666d; }
@media (max-width: 800px) {
  .detail-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .ticket-topbar { padding: 0 14px; height: 50px; }
  .ticket-topbar-key { min-width: 0; }
  .ticket-mobile-tabs { display: flex; position: sticky; top: 50px; background: #fff; z-index: 3; border-bottom: 1px solid #ddd; }
  .ticket-mobile-tabs button { flex: 1; padding: 12px 8px; background: #fff; border: 0; color: #50535b; cursor: pointer; }
  .ticket-mobile-tabs button[aria-pressed=true] { color: #0c66e4; box-shadow: inset 0 -2px #0c66e4; }
  .ticket-workspace { display: block; min-height: 0; }
  .ticket-workspace[data-active-tab=details] .ticket-activity-pane, .ticket-workspace[data-active-tab=activity] .ticket-details-pane { display: none; }
  .ticket-details-pane { padding: 20px 16px; }
  .ticket-title-row { gap: 10px; }
  .ticket-title-row h2 { font-size: 23px; }
  .ticket-toolbar { margin-left: 0; gap: 6px; }
  .ticket-toolbar-button { min-height: 36px; }
  .ticket-section-body { margin-left: 0; }
  .ticket-metadata { margin-left: 0; }
  .ticket-activity-pane { border: 0; padding: 16px; }
  .ticket-section-heading { gap: 8px; flex-wrap: wrap; }
  .ticket-section-heading h3 { min-width: 90px; }
}
.detail-dialog:focus { outline: none; }
.ticket-toolbar { gap: 6px; }
.detail-dialog .comment-item { padding: 0; border: 0; }
.detail-dialog .comment-content > :is(p, .ticket-comment-body) { background: #fff; }
.ticket-section-body .detail-file-info strong { font-size: 14px; color: #292a2e; }
.ticket-section-body .detail-file-info small { font-size: 12px; color: #50535b; }
.ticket-completion-form { width: 18px; min-width: 18px; padding-top: 7px; }
.ticket-completion-button { display: flex; width: 18px; height: 18px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.ticket-completion-button img { width: 18px; height: 18px; }
.ticket-completion-form .ticket-form-feedback:not(:empty) { min-width: 180px; }
.ticket-item-menu { margin-top: 0; position: relative; }
.ticket-item-menu > summary { position: absolute; right: 0; top: -26px; width: 28px; height: 28px; }
.ticket-item-menu > summary img { width: 16px; height: 16px; }
.ticket-item-controls { margin-top: 8px; padding: 8px; background: #f1f2f4; border: 1px solid #ddd; border-radius: 5px; }
.ticket-item-controls > .ticket-editor { margin: 0; }
.ticket-checklist-item-content { padding-right: 26px; }
.ticket-item-actions { margin-top: 8px; }
.ticket-assignee-contact { color: #62666d; font-size: 12px; margin-bottom: 8px; }
.ticket-checklist-add > form { padding: 10px; }
.ticket-attachment-item { display: grid; grid-template-columns: minmax(0, 1fr) 32px 32px; gap: 6px; align-items: center; }
.ticket-attachment-item .ticket-file-menu { position: relative; }
.ticket-file-menu .ticket-file-actions { position: absolute; right: 0; top: 34px; z-index: 2; display: grid; gap: 4px; margin-top: 0; padding: 8px; width: 240px; max-width: calc(100vw - 48px); box-sizing: border-box; background: #fff; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 4px 12px #0002; }
.ticket-file-actions > .ticket-inline-link, .ticket-file-actions > .ticket-delete-editor > summary { display: block; padding: 6px 8px; border-radius: 4px; text-decoration: none; }
.ticket-file-actions > .ticket-inline-link:hover, .ticket-file-actions > .ticket-delete-editor > summary:hover { background: #f1f2f4; }
.ticket-file-actions > .ticket-delete-editor > summary { color: #a92b3d; }
.ticket-file-actions:has(.ticket-delete-editor[open]) > .ticket-inline-link, .ticket-file-actions > .ticket-delete-editor[open] > summary { display: none; }
.ticket-file-actions .ticket-delete-editor[open] { margin: 0; }
.ticket-file-actions .ticket-delete-editor > form { margin: 0; padding: 4px; }

.ticket-toolbar-button { padding-left: 9px; padding-right: 9px; }
.ticket-label-choice input[type=radio] { flex: none; width: 16px; height: 16px; padding: 0; accent-color: #1868db; }
.ticket-label-choice .ticket-label { min-width: 0; }
.ticket-calendar-heading button { padding: 5px 8px; border: 0; background: #fff; color: #50535b; cursor: pointer; }

.detail-dialog .ticket-label-form { margin-top: 8px; padding-top: 0; border-top: 0; }
.detail-dialog .ticket-label-search { margin-bottom: 6px; }
.detail-dialog .ticket-label-search:focus { border: 2px solid #388bff; outline: none !important; padding: 7px 9px; }
.ticket-toolbar { margin-bottom: 0; }
.ticket-selected-fields { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 24px; margin: 28px 0 0 32px; }
.ticket-selected-field { min-width: 0; max-width: 100%; }
.ticket-selected-field h3 { margin: 0 0 8px; color: #50535b; font: 600 12px/16px Arial, system-ui, sans-serif; }
.ticket-selected-values { display: flex; align-items: flex-start; gap: 5px; min-width: 0; }
.ticket-selected-values > .ticket-menu { min-width: 0; }
.ticket-selected-chip.ticket-label { display: block; min-height: 32px; padding: 6px 12px; font: 500 14px/20px Arial, system-ui, sans-serif; cursor: pointer; list-style: none; }
.ticket-selected-chip:hover { filter: brightness(.96); }
.ticket-selected-chip.ticket-selected-empty { background: #f1f2f4; color: #50535b; }
.ticket-selected-add { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid #dcdee1; border-radius: 5px; background: #fff; cursor: pointer; }
.ticket-selected-add:hover { background: #f0f1f2; }
.ticket-selected-add img { width: 16px; height: 16px; }
.ticket-selected-values .ticket-menu[open] > summary { box-shadow: 0 0 0 2px #0c66e4; }
@media (max-width: 800px) {
  .ticket-selected-fields { margin-left: 0; }
}
.ticket-metadata { margin-top: 24px; }
.ticket-feedback { margin: 24px 0 0 32px; padding: 12px 14px; border: 1px solid #e2e6eb; border-radius: 8px; background: #fafbfc; }
.ticket-feedback-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.ticket-feedback h3 { margin: 0; color: #50535b; font-size: 12px; font-weight: 600; line-height: 1.4; }
.ticket-feedback-rating { display: flex; align-items: center; gap: 10px; color: #17212b; font-size: 13px; white-space: nowrap; }
.ticket-feedback-stars { display: inline-flex; gap: 2px; font-size: 20px; line-height: 1; }
.ticket-feedback-star { color: #ccd3db; }
.ticket-feedback-star.is-filled { color: #a86408; }
.ticket-feedback-empty { color: #64748b; font-size: 13px; }
.ticket-feedback-comment { margin: 10px 0 0; color: #35465b; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) { .ticket-feedback { margin-left: 0; } }
.ticket-overflow > button, .ticket-overflow form > button { display: flex; align-items: center; gap: 10px; }
.ticket-overflow button img { width: 16px; height: 16px; flex: none; }
.ticket-history-event .ticket-attachment-item { display: block; margin-top: 10px; }
.ticket-history-event .detail-file { display: flex; flex-direction: column; align-items: flex-start; padding: 0; border: 0; }
.ticket-history-event .detail-file-thumb { width: min(230px, 100%); height: auto; max-height: 480px; object-fit: contain; border: 1px solid #ddd; border-radius: 4px; }
.ticket-history-event .detail-file-info { margin-top: 5px; }
.ticket-history-event .ticket-file-menu, .ticket-history-event .ticket-file-open { display: inline-block; vertical-align: top; }

/* Shared inline editing surfaces: descriptions, comments, titles and list items. */
.ticket-required-data h4 { margin: 0 0 12px; color: #292a2e; font-size: 14px; }
.ticket-contact-details { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e4e6e9; }
.ticket-contact-details h4 { margin: 0 0 16px; color: #292a2e; font-size: 14px; }
.ticket-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.ticket-contact-grid dt { color: #626f86; font-size: 12px; }
.ticket-contact-grid dd { margin: 4px 0 0; color: #292a2e; font-size: 14px; overflow-wrap: anywhere; }
.ticket-contact-wide { grid-column: 1 / -1; }
.ticket-contact-numbers { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.ticket-contact-numbers > span { display: grid; gap: 4px; min-width: 130px; }
.ticket-contact-numbers small { color: #8190a4; font-size: 11px; }
@media (max-width: 650px) { .ticket-contact-grid { grid-template-columns: minmax(0, 1fr); }.ticket-contact-numbers { gap: 14px; } }
.ticket-title-row h2 > button { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: text; }
.ticket-title-row h2 { flex: 1; min-width: 0; }
.detail-dialog form.ticket-title-form[data-ticket-action] { flex: 1; min-width: 0; margin: 0 -8px; gap: 6px; }
.detail-dialog form.ticket-title-form[data-ticket-action] textarea { display: block; width: 100%; min-height: 44px; padding: 3px 7px; border: 2px solid #0c66e4; border-radius: 4px; background: #fff; color: #292a2e; outline: none; resize: none; overflow: hidden; font: 700 28px/1.2 Arial, system-ui, sans-serif; letter-spacing: -.6px; }
.ticket-description-editor > summary, .ticket-checklist-editor > summary { display: none; }
.detail-dialog [data-inline-editor] > form { margin: 0; padding: 0; gap: 8px; border: 0; background: transparent; }
.detail-dialog [data-inline-editor][open] > summary { display: none; }
.ticket-description-editor[open] { margin: 0 !important; }
.ticket-section-body:has(.ticket-description-editor[open]) > .trello-description { display: none; }
.ticket-comment-actions:has(.ticket-comment-editor[open]) { margin-top: 0; }
.comment-content:has(.ticket-comment-editor[open]) > [data-ticket-markdown],
.comment-content:has(.ticket-comment-editor[open]) > .comment-files,
.ticket-comment-actions:has(.ticket-comment-editor[open]) > .ticket-delete-editor { display: none; }
:is(.detail-dialog, .ticket-create-dialog) .ticket-text-editor { min-width: 0; border: 1px solid #c9cbd0; border-radius: 6px; background: #fff; overflow: clip; }
:is(.detail-dialog, .ticket-create-dialog) .ticket-text-editor:focus-within { border-color: #0c66e4; box-shadow: 0 0 0 1px #0c66e4; }
:is(.detail-dialog form[data-ticket-action], .ticket-create-form) .ticket-text-editor textarea { display: block; border: 0; border-radius: 0; outline: none; box-shadow: none; color: #292a2e; padding: 18px 20px; font: 14px/1.75 Arial, system-ui, sans-serif; resize: vertical; }
.detail-dialog form[data-ticket-action] .ticket-text-editor-compact textarea { min-height: 34px; padding: 5px 10px; line-height: 1.6; }
.detail-dialog .ticket-comment-editor .ticket-text-editor textarea,
.detail-dialog .ticket-comment-form:not(.is-collapsed) .ticket-text-editor textarea { height: 64px; min-height: 64px; }
.ticket-format-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 48px; padding: 7px 10px; border-bottom: 1px solid #e4e6e9; }
.ticket-format-toolbar > button, .ticket-format-toolbar > label, .ticket-format-help > summary { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #50535b; font: 16px Arial, system-ui, sans-serif; list-style: none; cursor: pointer; }
.ticket-format-toolbar > button:hover, .ticket-format-toolbar > label:hover, .ticket-format-help > summary:hover { background: #f1f2f4; }
.ticket-format-toolbar img { width: 16px; height: 16px; }
.ticket-mention-picker { position: fixed; z-index: 200; max-height: 270px; overflow-y: auto; overscroll-behavior: contain; padding: 5px; border: 1px solid #d5dee8; border-radius: 8px; background: white; box-shadow: 0 10px 28px #172b4d30; }
.ticket-mention-option { display: grid; gap: 4px; width: 100%; padding: 10px 12px; border: 0; border-radius: 5px; background: transparent; color: #26354b; text-align: left; font-size: 13px; }
.ticket-mention-option span { color: #8190a4; font-size: 12px; }
.ticket-mention-option[aria-selected=true], .ticket-mention-option:hover { background: #eaf7f0; color: #218c75; }
.ticket-mention-status { margin: 0; padding: 12px; color: #8190a4; font-size: 12px; }
.ticket-format-divider { width: 1px; height: 22px; margin: 0 5px; background: #dcdfe4; }
.ticket-format-help { margin-left: auto; }
.ticket-format-help > summary { border: 1px solid #62666d; border-radius: 50%; width: 16px; height: 16px; font-size: 11px; }
.ticket-format-help > summary::-webkit-details-marker, .ticket-item-field > summary::-webkit-details-marker { display: none; }
:is(.detail-dialog, .ticket-create-dialog) .ticket-format-help p { margin: 8px 0 0; padding: 8px; background: #f1f2f4; font-size: 12px; color: #50535b; white-space: normal; }
.ticket-format-help[open] { flex-basis: 100%; }
.ticket-editor-cancel { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 6px 12px; border: 0; border-radius: 4px; background: transparent; color: #50535b; font: 14px Arial, system-ui, sans-serif; list-style: none; cursor: pointer; }
.ticket-editor-cancel:hover { background: #e4e6ea; }
.ticket-editor-cancel img { width: 16px; height: 16px; }
.detail-dialog .ticket-composer-controls { padding: 0; border: 0; background: transparent; }
.ticket-comment-form.is-collapsed .ticket-format-toolbar { display: none; }
.detail-dialog .ticket-comment-form.is-collapsed .ticket-text-editor { border-radius: 10px; }
.detail-dialog .ticket-comment-form.is-collapsed .ticket-text-editor textarea { min-height: 38px; padding: 8px 12px; line-height: 20px; resize: none; }
.ticket-checklist-item-content { position: relative; padding-right: 0; }
.ticket-checklist-item { margin: 4px 0; gap: 10px; }
.ticket-checklist .ticket-section-body { margin-left: 0; }
.ticket-checklist-item-content > .ticket-item-text { display: block; width: 100%; min-height: 32px; padding: 5px 32px 5px 8px; border: 0; border-radius: 8px; background: transparent; color: #292a2e; font: 14px/1.6 Arial, system-ui, sans-serif; text-align: left; overflow-wrap: anywhere; }
button.ticket-item-text { cursor: text; }
.ticket-checklist-item-content:hover, .ticket-checklist-item-content:has(.ticket-checklist-editor[open]) { background: #f1f2f4; border-radius: 10px; }
.ticket-checklist-item-content:has(.ticket-checklist-editor[open]) > .ticket-item-text,
.ticket-checklist-item-content:has(.ticket-checklist-editor[open]) > .ticket-item-meta { display: none; }
.detail-dialog .ticket-checklist-editor { margin: 0; }
.detail-dialog .ticket-checklist-editor > form, .detail-dialog .ticket-checklist-add > form { padding: 8px; background: #f1f2f4; border-radius: 10px; }
.ticket-item-editor-actions { gap: 4px; }
.ticket-item-editor-options { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.ticket-item-editor-options .ticket-editor-cancel { padding: 6px 8px; }
.ticket-item-field { min-width: 0; }
.ticket-item-field > summary span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-item-field[open] > summary { background: #e4e6ea; }
.ticket-item-field .ticket-popover-heading { margin-bottom: 8px; }
.ticket-item-field .ticket-popover > label { display: block; margin-bottom: 6px; }
.ticket-item-field input[name=item_due_at] { margin-bottom: 12px; }
.detail-dialog .ticket-item-field input[name=item_due_at]:focus { border-color: #0c66e4; outline: none; box-shadow: 0 0 0 1px #0c66e4; }
.ticket-item-menu { position: absolute; right: 4px; top: 2px; z-index: 2; }
.ticket-item-menu > summary { position: static; }
/* Keep the open popover above the action triggers on adjacent checklist rows. */
.ticket-item-menu[open] { z-index: 5; }
.ticket-item-menu > summary::-webkit-details-marker { display: none; }
.ticket-item-controls { position: absolute; right: 0; top: 34px; z-index: 3; width: 272px; max-width: calc(100vw - 48px); box-sizing: border-box; margin: 0; padding: 8px; border: 1px solid #dcdfe4; border-radius: 10px; background: #fff; box-shadow: 0 8px 28px #172b4d24, 0 2px 6px #172b4d14; }
.ticket-item-controls .ticket-popover-heading { min-height: 36px; margin: 0 4px 6px; padding: 4px 30px 10px 4px; border-bottom: 1px solid #ebecf0; justify-content: flex-start; }
.ticket-item-controls .ticket-popover-heading h4 { font-size: 13px; font-weight: 600; }
.ticket-item-controls .ticket-inline-link { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 9px 10px; border-radius: 6px; text-align: left; text-decoration: none; font: inherit; font-size: 14px; line-height: 20px; color: #344563; }
.ticket-item-action svg { width: 16px; height: 16px; flex: none; }
.ticket-item-controls .ticket-inline-link:hover { background: #f1f2f4; }
.ticket-item-controls :is(button, summary):focus-visible { outline: 2px solid #0c66e4; outline-offset: -2px; }
.ticket-checklist-item-content:has(.ticket-checklist-editor[open]) .ticket-item-menu { display: none; }
.ticket-item-controls .ticket-item-actions { display: grid; gap: 2px; margin: 0; }
.ticket-item-controls .ticket-editor { margin: 0; }
.detail-dialog .ticket-item-actions form[data-ticket-action=item_move] { gap: 0; }
.ticket-item-controls .ticket-form-feedback:empty { display: none; }
.ticket-item-controls .ticket-form-feedback:not(:empty) { padding: 6px 10px; }
.ticket-item-controls .ticket-item-delete { margin-top: 6px; padding-top: 6px; border-top: 1px solid #ebecf0; }
.ticket-item-controls .ticket-item-delete > summary { color: #ae2e24; margin: 0; }
.ticket-item-controls .ticket-item-delete > summary:hover { background: #fff0ee; }
.ticket-item-controls .ticket-item-delete[open] > summary { display: none; }
.detail-dialog .ticket-item-delete > form { display: grid; gap: 10px; margin: 0; padding: 10px; border-radius: 6px; background: #fff5f4; }
.ticket-item-delete-title { color: #172b4d; font-size: 14px; }
.ticket-item-delete-preview { margin: 0; max-height: 80px; overflow-y: auto; overflow-wrap: anywhere; color: #626f86; font-size: 13px; line-height: 20px; white-space: pre-wrap; }
.ticket-item-delete-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ticket-item-delete-buttons > button { min-height: 36px; }
.ticket-checklist-progress { gap: 10px; margin-bottom: 8px; }
.ticket-checklist-progress progress { height: 6px; appearance: none; border: 0; border-radius: 4px; overflow: hidden; background: #f1f2f4; }
.ticket-checklist-progress progress::-webkit-progress-bar { background: #f1f2f4; }
.ticket-checklist-progress progress::-webkit-progress-value { background: #292a2e; border-radius: 4px; }
.ticket-checklist-progress progress::-moz-progress-bar { background: #292a2e; border-radius: 4px; }
[data-ticket-markdown] :is(ul, ol) { margin: 0; padding-left: 24px; }
[data-ticket-markdown] a { color: #0c66e4; text-decoration: underline; }
[data-ticket-markdown] code { padding: 2px 5px; border-radius: 4px; background: #f1f2f4; color: #172b4d; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
[data-copy-code] { position: relative; cursor: pointer; }
[data-copy-code]:hover { background: #dce4ed; }
[data-copy-code]:focus-visible { outline: 2px solid #0c66e4; outline-offset: 2px; }
[data-copy-code][data-copy-feedback]::after { content: attr(data-copy-feedback); position: absolute; z-index: 6; left: 0; bottom: calc(100% + 6px); width: max-content; max-width: 260px; padding: 5px 8px; border-radius: 4px; background: #172b4d; color: #fff; font: 12px/1.4 Arial, sans-serif; white-space: normal; pointer-events: none; }
[data-ticket-markdown] pre { max-width: 100%; margin: 8px 0; padding: 12px 16px; border: 1px solid #dcdfe4; border-radius: 6px; background: #f6f8fa; overflow-x: auto; white-space: pre; overflow-wrap: normal; tab-size: 4; }
[data-ticket-markdown] pre code { display: block; padding: 0; border-radius: 0; background: transparent; font-size: 13px; line-height: 1.6; white-space: pre; overflow-wrap: normal; }
@media (max-width: 800px) {
  .detail-dialog form.ticket-title-form[data-ticket-action] textarea { min-height: 38px; font-size: 23px; }
  .ticket-item-editor-options { width: 100%; margin-left: 0; }
  .detail-dialog form[data-ticket-action] .ticket-text-editor textarea { padding: 12px; }
}

/* The same searchable avatar picker serves tickets and checklist items. */
.detail-dialog form.ticket-people-form[data-ticket-action] { margin: 0; padding: 0; border: 0; gap: 0; }
.ticket-people-menu .ticket-popover-heading { margin-bottom: 8px; }
.detail-dialog .ticket-popover .ticket-member-search { display: block; width: 100%; height: 36px; padding: 7px 10px; margin: 0 0 12px; border: 1px solid #8590a2; border-radius: 4px; color: #292a2e; font: 14px Arial, system-ui, sans-serif; }
.detail-dialog .ticket-popover .ticket-member-search:focus { border-color: #0c66e4; outline: none; box-shadow: 0 0 0 1px #0c66e4; }
.detail-dialog .ticket-member-list { display: block; min-width: 0; max-height: 224px; margin: 0; padding: 0; border: 0; overflow-y: auto; }
.detail-dialog .ticket-member-list legend, .ticket-member-list h5 { display: block; margin: 0 0 8px; padding: 0; color: #50535b; font: 600 12px/16px Arial, system-ui, sans-serif; }
.detail-dialog .ticket-popover .ticket-member-option { position: relative; display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 4px; border-radius: 4px; background: transparent; color: #292a2e; font: 14px/20px Arial, system-ui, sans-serif; cursor: pointer; }
.detail-dialog .ticket-popover .ticket-member-option:hover,
.detail-dialog .ticket-popover .ticket-member-option:has(input:checked) { background: #f1f2f4; }
.ticket-member-option:focus-within { box-shadow: inset 0 0 0 2px #0c66e4; }
.detail-dialog .ticket-popover .ticket-member-option:has(input:disabled) { opacity: .6; cursor: default; }
.detail-dialog .ticket-popover .ticket-member-list > div.ticket-member-option { cursor: default; }
.detail-dialog .ticket-member-option .person-avatar { width: 32px; height: 32px; min-width: 32px; }
.ticket-member-option .person-avatar img { width: 14px; height: 14px; }
.ticket-member-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ticket-member-name small { display: block; }
.ticket-member-check { width: 16px; height: 16px; flex: none; visibility: hidden; }
.ticket-member-option:has(input:checked) .ticket-member-check { visibility: visible; }
.ticket-member-empty { margin: 0; padding: 8px 4px; font-size: 14px; }
[data-selection-retry] { display: none; }
[data-auto-save=true][data-save-failed=true] [data-selection-retry] { display: inline-flex; margin-top: 8px; }
.trello-description[data-edit-description] { cursor: text; }
.trello-description a, .comment-item [data-ticket-markdown] a { color: var(--workspace-brand, #1e69af); text-decoration: underline; text-underline-offset: 2px; }
.detail-dialog .ticket-item-assignment-form { margin: 0; padding: 0; gap: 4px; }
.ticket-form-feedback:empty { display: none; }
.ticket-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 32px 4px 8px; }
.ticket-item-assignee, .ticket-item-date { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; color: #50535b; font: 12px/18px Arial, system-ui, sans-serif; overflow-wrap: anywhere; }
.detail-dialog .ticket-item-assignee .person-avatar { width: 24px; height: 24px; min-width: 24px; font-size: 10px; }
.ticket-item-date { padding: 3px 6px; border-radius: 4px; background: #f1f2f4; }
.ticket-item-date img { width: 14px; height: 14px; }
.ticket-item-date.is-overdue { background: #ffe2df; color: #ae2e24; }

.ticket-checklist-title { flex: 1; min-width: 0; }
.ticket-checklist-title h3 { min-width: 0; line-height: 20px; }
.ticket-checklist-title h3 > button { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: text; overflow-wrap: anywhere; }
.ticket-checklist-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.ticket-checklist-actions .ticket-checklist-delete { margin: 0; }
.ticket-checklist-actions .ticket-checklist-delete > summary { margin: 0; }
.ticket-checklist-actions .ticket-checklist-delete > form { margin: 0; padding: 12px; background: #fff; }
.detail-dialog form.ticket-checklist-title-form[data-ticket-action] textarea { min-height: 32px; padding: 4px 6px; font: 700 14px/20px Arial, system-ui, sans-serif; letter-spacing: 0; }
@media (max-width: 800px) {
  .ticket-checklist-heading .ticket-checklist-title { flex-basis: calc(100% - 28px); }
}

.ticket-checklist-progress > [data-checklist-progress-label] { flex: 0 0 24px; }
.ticket-progress-track { flex: 1; height: 6px; overflow: hidden; border-radius: 4px; background: #f1f2f4; }
.ticket-progress-fill { display: block; height: 100%; border-radius: inherit; background: #292a2e; transition: width 180ms ease-out; }
.ticket-check-control { position: relative; display: inline-flex; width: 16px; height: 16px; }
.ticket-checklist-item .ticket-checklist-toggle { appearance: none; margin: 0; padding: 0; border: 1px solid #8590a2; border-radius: 2px; background: #fff; cursor: pointer; transition: background-color 140ms ease-out, border-color 140ms ease-out; }
.ticket-checklist-item .ticket-checklist-toggle:checked { border-color: #1868db; background: #1868db; }
.ticket-checklist-item .ticket-checklist-toggle:disabled { opacity: .5; cursor: not-allowed; }
.ticket-checkmark { position: absolute; inset: 2px; width: 12px; height: 12px; pointer-events: none; color: #fff; opacity: 0; transition: opacity 140ms ease-out; }
.ticket-checklist-toggle:checked + .ticket-checkmark { opacity: 1; }
.ticket-checklist-item-content > .ticket-item-text { transition: color 180ms ease-out; }
.ticket-checklist-item form[data-ticket-action=item_toggle] { position: relative; flex: none; width: 16px; }
.ticket-checklist-item form[data-ticket-action=item_toggle] .ticket-form-feedback:not(:empty) { position: absolute; z-index: 6; top: 26px; left: 0; width: min(300px, calc(100vw - 64px)); padding: 8px 10px; border: 1px solid #f87168; border-radius: 6px; background: #fff; box-shadow: 0 4px 12px #0002; }
.detail-dialog[data-checklist-saving=true] button:disabled { opacity: 1; }
.ticket-checklist-item.is-toggle-leaving { overflow: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .detail-dialog .ticket-action-status, .ticket-progress-fill, .ticket-checklist-toggle, .ticket-checkmark, .ticket-checklist-item-content > .ticket-item-text { transition: none; }
}

.ticket-reporter, .ticket-selected-members { flex: 1 1 180px; }
.ticket-selected-members .ticket-selected-values, .ticket-selected-members .ticket-menu { max-width: 100%; }

.ticket-person-link { color: inherit; text-decoration: none; border-radius: 2px; }
.ticket-person-link:hover, .ticket-person-link:focus-visible { color: #0c66e4; text-decoration: underline; text-underline-offset: 2px; }
[data-ticket-markdown] .ticket-mention,
[data-ticket-mention-text] .ticket-mention { color: #0747a6; background: #e9f2ff; border-radius: 4px; padding: 1px 4px; font-weight: 600; text-decoration: none; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
[data-ticket-markdown] a.ticket-mention:hover { color: #052e70; background: #cce0ff; text-decoration: underline; }
[data-ticket-markdown] a.ticket-mention:focus-visible { outline: 2px solid #0c66e4; outline-offset: 2px; }

/* Reporter and assignees share their field, profile and editing controls. */
.ticket-people-field { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px 12px; min-width: 0; width: 100%; }
.ticket-people-values { display: flex; flex: 1 1 140px; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.ticket-person-chip, .ticket-people-unassigned { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; max-width: 100%; color: inherit; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.ticket-person-chip > :last-child { min-width: 0; }
.ticket-people-edit { flex: none; margin: 0; min-height: 32px; padding: 4px 0; border: 0; background: transparent; font: inherit; font-size: 12px; color: #0c66e4; cursor: pointer; border-radius: 3px; }
.ticket-people-edit:hover { text-decoration: underline; }
.ticket-people-edit:focus-visible { outline: 2px solid #0c66e4; outline-offset: 3px; }
.ticket-people-field .person-avatar { flex: none; width: 32px; height: 32px; min-width: 32px; }
.ticket-people-unassigned { color: #6b778c; }
.ticket-people-unassigned .person-avatar img { width: 18px; height: 18px; }
.ticket-people-menu { position: absolute; }
.ticket-people-menu > summary { display: none; }
.ticket-people-form .ticket-member-name small { display: block; margin-top: 3px; font-size: 11px; color: #6b778c; overflow-wrap: anywhere; }
.ticket-people-form .ticket-member-name { min-width: 0; overflow-wrap: anywhere; }
/* Clipboard files stay staged with their editor until its normal save action. */
.ticket-clipboard-status { margin: 12px 20px; padding: 9px 12px; border-radius: 6px; background: #edf6ff; color: #285c8c; font-size: 12px; }
.ticket-clipboard-status.is-error { background: #fff0f1; color: #a92b3d; }
.ticket-clipboard-previews { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
.ticket-staged-attachments { margin-top: 16px; }
.ticket-staged-attachments h4 { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: #42526e; }
[data-clipboard-attachments] .ticket-clipboard-previews { padding: 8px 0 0; }
.ticket-clipboard-file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 9px; border: 1px solid #dce4ed; border-radius: 6px; background: #f7f9fc; color: #43566b; font-size: 12px; overflow-wrap: anywhere; }
.ticket-clipboard-file img { width: 56px; height: 44px; border-radius: 4px; object-fit: contain; }
.ticket-clipboard-remove { flex: none; padding: 4px 6px; border: 0; border-radius: 4px; background: transparent; color: #a92b3d; font: inherit; cursor: pointer; }
.ticket-clipboard-remove:hover { background: #fff0f1; }
.ticket-clipboard-remove:focus-visible { outline: 2px solid #0c66e4; outline-offset: 2px; }
.ticket-embedded-image { display: inline-block; max-width: 100%; max-height: 480px; object-fit: contain; border-radius: 6px; vertical-align: middle; }

.board-stage-menu { position: relative; flex: none; margin-left: auto; }
.board-stage-menu > summary { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; list-style: none; cursor: pointer; font-size: 22px; color: #52647a; }
.board-stage-menu > summary::-webkit-details-marker { display: none; }
.board-stage-menu > summary:hover { background: #e1e7ee; }
.board-stage-menu-items { position: absolute; right: 0; top: 100%; z-index: 5; width: 200px; padding: 6px; border: 1px solid #dce4ed; border-radius: 8px; background: #fff; box-shadow: 0 6px 20px #172b4d24; }
.board-stage-menu-items a { display: block; padding: 10px; border-radius: 5px; font-size: 13px; }
.board-stage-menu-items a:hover { background: #f0f3f6; }
.board-add-stage { display: flex; align-items: center; align-self: flex-start; justify-content: center; flex: 0 0 220px; gap: 8px; min-height: 54px; padding: 16px; border: 1px dashed #c4cfdb; border-radius: 10px; background: #eef3f7; color: #43536b; font-size: 14px; font-weight: 600; }
.board-add-stage:hover { background: #e3eee9; border-color: #21846d; }
.board-stage-dialog { width: min(480px, calc(100vw - 32px)); }
.board-stage-dialog h2 { font-size: 20px; }
.stage-form-field { display: grid; gap: 6px; margin: 16px 0; }
.stage-form-field label { color: #43536b; font-size: 13px; font-weight: 600; }
.stage-form-field input, .stage-form-field select { width: 100%; padding: 10px 12px; border: 1px solid #c4cfdb; border-radius: 6px; }
.stage-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.board-stage-form { max-width: 480px; }
.board-stage-dialog .errorlist { padding-left: 20px; color: #a83e4c; font-size: 13px; }
:is(.board-stage-dialog, .board-stage-menu, .board-add-stage):focus-visible, .board-stage-menu :focus-visible, .board-stage-dialog :focus-visible { outline: 2px solid #21846d; outline-offset: 3px; }
.board-stage-dialog button:disabled { opacity: .6; cursor: progress; }

.column-add-ticket { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; margin-top: 8px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: #52647a; text-align: left; font-size: 13px; }
.column-add-ticket:hover { background: #e1e7ee; color: #21846d; }
.column-cards > .column-add-ticket { margin-top: 0; }
.column-add-ticket:focus-visible { outline: 2px solid #21846d; outline-offset: 2px; }

.backlog-table-wrap { overflow-x: auto; border: 1px solid #dfe1e6; border-radius: 8px; }
.backlog-table { min-width: 1000px; }
.backlog-row { cursor: pointer; }
.backlog-row[hidden], .backlog-table tr[hidden] { display: none; }
.backlog-row.is-unread > .backlog-key { font-weight: 700; color: #0c66e4; }
.backlog-row:focus-within { outline: 2px solid #0c66e4; outline-offset: -2px; }
.backlog-table tbody th { min-width: 240px; }
.backlog-date, .backlog-key { white-space: nowrap; }
.backlog-empty { text-align: center; padding: 32px 16px; }

.ticket-stage-options { display: grid; gap: 4px; }
.ticket-popover .ticket-stage-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 4px; background: transparent; color: #172b4d; font: inherit; text-align: left; cursor: pointer; }
.ticket-popover .ticket-stage-option:hover:not(:disabled) { background: #f1f2f4; }
.ticket-popover .ticket-stage-option:focus-visible { outline: 2px solid #0c66e4; outline-offset: -2px; }
.ticket-popover .ticket-stage-option[aria-current] { background: #e9f2ff; color: #0c66e4; opacity: 1; cursor: default; }
.ticket-stage-options .ticket-form-feedback:empty { display: none; }

.ticket-key-copy { position: relative; display: inline-flex; align-items: center; }
.ticket-key-button { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; cursor: pointer; user-select: text; }
.ticket-key-button:hover { background: #e9edf2; }
.ticket-key-button:focus-visible { outline: 2px solid #0c66e4; outline-offset: 2px; }
.ticket-key-button img { width: 14px; height: 14px; }
.ticket-key-copy-status:not(:empty) { position: absolute; top: 100%; left: 0; z-index: 5; width: max-content; max-width: 240px; padding: 6px 8px; border-radius: 4px; background: #172b4d; color: #fff; font-size: 12px; line-height: 1.4; }

/* Explicit card backgrounds retain age borders and unread indicators. */
:is(.ticket-card, .backlog-row)[data-card-color="red"] { --card-color-background: #ffe2e0; }
:is(.ticket-card, .backlog-row)[data-card-color="orange"] { --card-color-background: #ffecd6; }
:is(.ticket-card, .backlog-row)[data-card-color="yellow"] { --card-color-background: #fff4c2; }
:is(.ticket-card, .backlog-row)[data-card-color="green"] { --card-color-background: #dcf3df; }
:is(.ticket-card, .backlog-row)[data-card-color="blue"] { --card-color-background: #dfeeff; }
:is(.ticket-card, .backlog-row)[data-card-color="purple"] { --card-color-background: #ede3ff; }
:is(.ticket-card, .backlog-row)[data-card-color="pink"] { --card-color-background: #fce0ed; }
.kanban-board .ticket-card[data-card-color]:not([data-card-color=""]) { background: var(--card-color-background); }
.kanban-board .ticket-card[data-card-color]:not([data-card-color=""]) :is(.ticket-key, .card-description, .card-author, .card-date) { color: #46566b; }
.kanban-board .ticket-card[data-card-color]:not([data-card-color=""]) .card-footer { border-top-color: #172b4d26; }

/* Jira-style metadata keeps color tied to a visible type, state, or priority. */
.ticket-type-badge { display: inline-block; box-sizing: border-box; width: max-content; padding: 3px 6px; border-radius: 3px; background: #1f845a; color: #fff; font-size: 10px; font-weight: 700; line-height: 1.4; letter-spacing: .2px; white-space: nowrap; vertical-align: middle; }
.ticket-type-badge[data-type-color="blue"] { background: #0055cc; }
.ticket-type-badge[data-type-color="purple"] { background: #6e5dc6; }
.ticket-type-badge[data-type-color="orange"] { background: #a54800; }
.ticket-type-badge[data-type-color="red"] { background: #ae2e24; }
.ticket-type-badge[data-type-color="teal"] { background: #206a83; }
.ticket-type-badge[data-type-color="pink"] { background: #943d73; }
.ticket-type-badge[data-type-color="yellow"] { background: #f5cd47; color: #172b4d; }
.ticket-card .card-top { justify-content: flex-start; gap: 6px; min-width: 0; }
.ticket-card .card-top > .ticket-key { margin-right: auto; padding-right: 6px; }
.ticket-card .card-top > .ticket-key, .ticket-card .card-top > .priority { flex: none; white-space: nowrap; }
.ticket-card .card-top > .ticket-type-badge { flex: 0 0 auto; }
.ticket-card .card-top > .priority { margin-left: 0; }
.ticket-gitlab-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid #f2c5ac; border-radius: 5px; background: #fff0e5; color: #8f3800; vertical-align: middle; }
.ticket-gitlab-count { font-size: 11px; font-weight: 700; line-height: 1; }
.ticket-gitlab-badge svg { width: 16px; height: 16px; flex: none; }
.board-person-chip { --person-background: #e9f2ff; --person-foreground: #0747a6; display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; padding: 2px 7px 2px 2px; border-radius: 12px; background: var(--person-background); color: var(--person-foreground); font-weight: 600; line-height: 1.4; vertical-align: middle; }
.board-person-chip[data-person-color="green"] { --person-background: #dcfff1; --person-foreground: #216e4e; }
.board-person-chip[data-person-color="purple"] { --person-background: #eee7fc; --person-foreground: #5e4db2; }
.board-person-chip[data-person-color="orange"] { --person-background: #fff0df; --person-foreground: #974f0c; }
.board-person-chip[data-person-color="red"] { --person-background: #ffeceb; --person-foreground: #ae2e24; }
.board-person-chip[data-person-color="teal"] { --person-background: #e7f9ff; --person-foreground: #206a83; }
.board-person-chip[data-person-color="pink"] { --person-background: #ffecf8; --person-foreground: #943d73; }
.board-person-chip[data-person-color="yellow"] { --person-background: #fff7d6; --person-foreground: #7f5f01; }
.board-person-avatar { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--person-foreground); color: #fff; font-size: 10px; font-weight: 700; }
.board-person-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.backlog-people { display: flex; flex-wrap: wrap; gap: 5px; }
.card-assigned > .board-person-chip { flex: 0 1 auto; }
.card-assigned > .board-person-chip + span { flex: none; }
.ticket-status-badge { display: inline-block; padding: 3px 7px; border-radius: 3px; background: #e9f2ff; color: #0747a6; font-size: 11px; font-weight: 700; line-height: 1.4; }
.ticket-status-badge[data-state="INITIAL"] { background: #e4e6ea; color: #44546f; }
.ticket-status-badge[data-state="CONFIRM"] { background: #eee7fc; color: #5e4db2; }
.ticket-status-badge[data-state="BLOCKED"] { background: #ffeceb; color: #ae2e24; }
.ticket-status-badge[data-state="FINAL"] { background: #dcfff1; color: #216e4e; }
:is(.board-content, .dashboard-tasks) .priority { display: inline-flex; align-items: center; gap: 4px; line-height: 1.4; }
:is(.board-content, .dashboard-tasks) .priority::before { font-size: 13px; font-weight: 800; line-height: 1; }
:is(.board-content, .dashboard-tasks) .priority-urgent { background: #ffeceb; color: #ae2e24; }
:is(.board-content, .dashboard-tasks) .priority-urgent::before { content: "⇈"; }
:is(.board-content, .dashboard-tasks) .priority-high { background: #fff0df; color: #974f0c; }
:is(.board-content, .dashboard-tasks) .priority-high::before { content: "↑"; }
:is(.board-content, .dashboard-tasks) .priority-normal { background: #e9f2ff; color: #0747a6; }
:is(.board-content, .dashboard-tasks) .priority-normal::before { content: "="; }
:is(.board-content, .dashboard-tasks) .priority-low { background: #e7f8f2; color: #216e4e; }
:is(.board-content, .dashboard-tasks) .priority-low::before { content: "↓"; }
.backlog-table .backlog-row[data-card-color]:not([data-card-color=""]) > * { background: var(--card-color-background); }
.backlog-table .backlog-row[data-card-color]:not([data-card-color=""]):hover > * { background: color-mix(in srgb, var(--card-color-background) 85%, #172b4d); }
.backlog-table .backlog-row.is-selected[data-card-color] > * { background: var(--workspace-selected, #e9f2ff); }

#ticket-cover-panel form + form { margin-top: 16px; padding-top: 16px; border-top: 1px solid #dcdfe4; }
#ticket-cover-panel label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
#ticket-cover-panel select { width: 100%; min-height: 38px; padding: 8px; border: 1px solid #8590a2; border-radius: 4px; color: #172b4d; background: white; }

.backlog-actions, .backlog-drop-targets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--workspace-border, #dcdfe4); }
.backlog-actions button, .backlog-actions select, .backlog-drop-targets button { min-height: 36px; padding: 6px 10px; border: 1px solid var(--workspace-border, #8590a2); border-radius: 5px; background: var(--workspace-card, #fff); color: inherit; font: inherit; }
.backlog-actions button:disabled, .backlog-actions select:disabled, .backlog-drop-targets button:disabled { opacity: .5; cursor: default; }
.backlog-actions [data-bulk-error] { flex-basis: 100%; margin: 0; color: #ae2e24; }
.backlog-select { width: 64px; white-space: nowrap; }
.backlog-select input { width: 18px; height: 18px; vertical-align: middle; accent-color: #0c66e4; }
.backlog-drag-handle { display: inline-block; padding: 4px 8px; cursor: grab; user-select: none; }
.backlog-table .backlog-row.is-selected > * { background: var(--workspace-selected, #e9f2ff); }
.backlog-drop-targets { font-size: 13px; }
.backlog-drop-targets .is-drag-over { outline: 3px solid var(--workspace-brand, #0c66e4); background: var(--workspace-selected, #e9f2ff); }
.stage-indicator.stage-red { background: #c54d57; }
.ticket-calendar-events { margin: 24px 0; padding: 18px; border: 1px solid var(--workspace-border, #e2e6eb); border-radius: 8px; background: var(--workspace-card, #fff); }
.ticket-calendar-events h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; }
.ticket-calendar-events h3 span { color: var(--workspace-muted, #64748b); font-size: 12px; font-weight: 400; }
.ticket-calendar-events ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ticket-calendar-events li + li { padding-top: 14px; border-top: 1px solid var(--workspace-border, #e2e6eb); }
.ticket-calendar-events a { color: var(--workspace-brand, #1e69af); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.ticket-calendar-events a:hover { text-decoration: underline; }
.ticket-calendar-events p, .ticket-calendar-events small { display: block; margin: 6px 0 0; color: var(--workspace-muted, #64748b); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }

/* Board card hierarchy: summary, classification, people, creation time, footer. */
.ticket-card .card-title { margin: 0; padding: 0; border: 0; background: transparent; color: var(--workspace-foreground, #172b4d); text-align: left; font: 600 14px/1.5 'Manrope', sans-serif; cursor: pointer; overflow-wrap: anywhere; }
.ticket-card .card-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ticket-card:focus-within { outline: 2px solid #0c66e4; outline-offset: 2px; }
.ticket-card .card-top { margin-top: 12px; flex-wrap: wrap; justify-content: space-between; }
.ticket-card .card-top > .priority { margin-left: auto; }
.ticket-card .card-people { display: grid; gap: 8px; margin-top: 16px; }
.ticket-card .card-person-row { display: grid; grid-template-columns: minmax(65px, 30%) minmax(0, 1fr); align-items: center; gap: 8px; font-size: 12px; }
.ticket-card .card-person-label { color: var(--workspace-muted, #626f86); overflow-wrap: anywhere; }
.ticket-card .board-person-chip { padding: 0; background: transparent; color: inherit; font-weight: 500; }
.ticket-card .board-person-avatar { width: 24px; height: 24px; background: var(--person-background); color: var(--person-foreground); }
.ticket-card .card-created { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; color: var(--workspace-muted, #626f86); font-size: 11px; line-height: 1.5; }
.ticket-card .card-footer { flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 10px; }
.ticket-card .ticket-key-copy { z-index: 2; color: var(--workspace-muted, #626f86); font-size: 11px; position: relative; }
.ticket-card .ticket-key-copy-status:not(:empty) { top: auto; bottom: 100%; }
.ticket-card .card-counts { margin-left: auto; gap: 7px; color: var(--workspace-muted, #626f86); font-size: 11px; }
.ticket-card .card-counts svg { width: 14px; height: 14px; }
.ticket-card .ticket-gitlab-badge { padding: 0; border: 0; background: transparent; color: #8f3800; }

.ticket-card .card-top > .ticket-type-badge { flex: 0 1 auto; max-width: 100%; }

.ticket-card .card-counts img { width: 14px; height: 14px; opacity: .75; }
html[data-theme="dark"] .ticket-card .card-counts img { filter: brightness(0) invert(.9); }
.ticket-card :is(.card-counts, .ticket-type-badge, .board-person-chip) { position: relative; z-index: 1; }

.ticket-card .ticket-type-empty { background: var(--workspace-well, #f1f2f4); color: var(--workspace-muted, #626f86); font-weight: 500; }

.backlog-key .ticket-key-button { padding: 4px 0; }
.backlog-key .ticket-key-copy-status:not(:empty) { top: auto; bottom: 100%; }

/* Bulk actions stay grouped; drop destinations are shown only during a drag. */
.backlog-actions { min-height: 56px; box-sizing: border-box; margin: 16px 0 12px; padding: 10px 14px; border: 1px solid var(--workspace-border, #dce4ed); border-radius: 8px; background: var(--workspace-card, #fff); font-size: 13px; }
.backlog-selection-hint { color: var(--workspace-muted, #626f86); }
.backlog-selection-count { flex: none; font-weight: 600; color: var(--workspace-foreground, #172b4d); }
.backlog-selected-actions { display: flex; flex: 1; align-items: center; flex-wrap: wrap; gap: 10px 16px; min-width: 0; }
.backlog-archive-actions, .backlog-move-actions { display: flex; align-items: center; gap: 8px; }
.backlog-move-actions { margin-left: auto; flex-wrap: nowrap; }
.backlog-move-actions label { color: var(--workspace-muted, #626f86); font-size: 12px; }
.backlog-stage-picker { width: 200px; flex: 0 0 200px; min-width: 0; }
.backlog-stage-picker > select { width: 100%; }
.app-page .backlog-actions .search-select-trigger { min-height: 36px; padding: 6px 10px; border-radius: 5px; font-size: 13px; }
.backlog-actions button { cursor: pointer; white-space: nowrap; }
.backlog-actions .backlog-clear-selection { border-color: transparent; color: var(--workspace-muted, #626f86); }
.backlog-actions .backlog-move-button { background: var(--workspace-brand, #1e69af); border-color: var(--workspace-brand, #1e69af); color: var(--workspace-card, #fff); font-weight: 600; }
.backlog-actions button:not(:disabled):hover, .backlog-drop-targets button:not(:disabled):hover { background: var(--workspace-hover, #f1f4f8); }
.backlog-actions .backlog-move-button:not(:disabled):hover { background: var(--workspace-brand-hover, #15568f); }
.backlog-drop-targets { margin-bottom: 12px; border: 1px dashed var(--workspace-brand, #1e69af); border-radius: 8px; background: var(--workspace-selected, #e9f2ff); }
.backlog-drop-targets > span { color: var(--workspace-muted, #626f86); }
.backlog-actions [hidden], .backlog-drop-targets[hidden] { display: none; }
@media (max-width: 900px) {
  .backlog-selected-actions { flex-basis: 100%; }
  .backlog-move-actions { margin-left: 0; }
}
@media (max-width: 600px) {
  .backlog-archive-actions { flex-wrap: wrap; }
  .backlog-move-actions { width: 100%; flex-wrap: wrap; }
  .backlog-move-actions label { flex-basis: 100%; }
  .backlog-stage-picker { width: auto; flex: 1 1 160px; }
}
.ticket-web-confirmation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 0 0 24px; padding: 16px; border: 1px solid var(--page-brand, #216cb6); border-radius: 8px; background: var(--page-selected, #e8f1fa); color: var(--page-text, #172b4d); }
.ticket-web-confirmation h3 { margin: 0; font-size: .95rem; }
.ticket-web-confirmation p { margin: 6px 0 0; font-size: .85rem; line-height: 1.5; }
.ticket-web-confirmation form { margin: 0; }
.ticket-web-confirmation .primary-button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--page-brand, #216cb6); border-radius: 7px; background: var(--page-brand, #216cb6); color: #fff; font: inherit; cursor: pointer; }
.ticket-web-confirmation button:focus-visible { outline: 2px solid var(--page-brand, #216cb6); outline-offset: 3px; }
@media (max-width: 600px) { .ticket-web-confirmation form, .ticket-web-confirmation button { width: 100%; } }
