:root {
  --navy: #1A4A7A;
  --navy-dark: #0D2D4F;
  --navy-soft: #E8EFF7;
  --green: #2EAF6E;
  --green-soft: #E6F6EE;
  --red: #D93B3B;
  --red-soft: #FBE9E9;
  --gold: #F0A500;
  --gold-soft: #FFF4D6;
  --bg: #F3F6FA;
  --card: #FFFFFF;
  --text: #1F2937;
  --muted: #64748B;
  --border: #E2E8F0;
  --radius: 8px;
  --sidebar-w: 240px;
  --topbar-h: 56px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.45; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--navy); }
h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.pd-ico { flex: 0 0 auto; vertical-align: -3px; }

.pd-shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.pd-sidebar { background: var(--navy-dark); color: #DCE6F2; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.pd-brand { display: flex; align-items: center; height: var(--topbar-h); padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pd-brand img { height: 30px; width: auto; display: block; }
.pd-nav { padding: 14px 10px; flex: 1; }
.pd-nav-group { margin: 12px 8px 4px; font-size: 11px; font-weight: 600; color: #8FA6C0; letter-spacing: 0.02em; }
.pd-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: #DCE6F2; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-nav a:hover { background: rgba(255,255,255,0.07); text-decoration: none; }
.pd-nav a.active { background: var(--navy); color: #fff; }
.pd-nav-foot { padding: 12px 10px 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.pd-nav-foot a, .pd-nav-foot button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: #DCE6F2; font-size: 14px; background: none; border: 0; width: 100%; cursor: pointer; font-family: inherit; text-align: left; }
.pd-nav-foot a:hover, .pd-nav-foot button:hover { background: rgba(255,255,255,0.07); text-decoration: none; }
.pd-nav-user { padding: 6px 10px 10px; font-size: 13px; color: #8FA6C0; }
.pd-nav-user strong { display: block; color: #fff; font-weight: 600; font-size: 14px; }

.pd-main { display: flex; flex-direction: column; min-width: 0; }
.pd-topbar { height: var(--topbar-h); background: var(--card); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; padding: 0 20px; position: sticky; top: 0; z-index: 20; }
.pd-topbar-title { font-weight: 600; color: var(--navy); font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--navy); }
.pd-live { display: inline-flex; align-items: center; gap: 8px; background: var(--green-soft); color: #15803d; border: 1px solid #86efac; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd-live:hover { text-decoration: none; }
.pd-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pd-pulse 1.6s infinite; }
@keyframes pd-pulse { 0% { opacity: 1; } 50% { opacity: 0.35; } 100% { opacity: 1; } }
.pd-content { padding: 12px 20px 24px; flex: 1; }
.pd-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.pd-page-head .pd-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.pd-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.pd-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.pd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pd-grid { display: grid; gap: 16px; }
.pd-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pd-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pd-kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.pd-kpi-label { color: var(--muted); font-size: 13px; }
.pd-kpi-value { font-size: 28px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.pd-kpi-value.small { font-size: 20px; }

.pd-tracker { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.pd-tracker-time { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; line-height: 1; }
.pd-tracker-meta { margin-top: 10px; color: #C9D8E8; font-size: 14px; }
.pd-tracker-meta strong { color: #fff; }
.pd-tracker-idle { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.pd-tracker form.inline { display: grid; grid-template-columns: 1fr; gap: 10px; min-width: 260px; }
.pd-tracker .pd-field label { color: #C9D8E8; }
.pd-tracker textarea, .pd-tracker select, .pd-tracker input { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: #fff; }
.pd-tracker textarea::placeholder { color: #9FB6CE; }
.pd-tracker select option { color: var(--text); }

.pd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.55rem 1rem; border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; line-height: 1.2; background: var(--navy-soft); color: var(--navy); text-decoration: none; white-space: nowrap; }
.pd-btn:hover { text-decoration: none; filter: brightness(0.96); }
.pd-btn-primary { background: var(--navy); color: #fff; }
.pd-btn-success { background: var(--green); color: #fff; }
.pd-btn-danger { background: var(--red); color: #fff; }
.pd-btn-gold { background: var(--gold); color: #1F2937; }
.pd-btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.pd-btn-light { background: #fff; color: var(--navy); }
.pd-btn-sm { padding: 0.35rem 0.65rem; font-size: 13px; }
.pd-btn-icon { padding: 0.35rem; }
.pd-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.pd-form { display: grid; gap: 14px; }
.pd-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pd-form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pd-field { display: flex; flex-direction: column; gap: 5px; }
.pd-field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.pd-field input, .pd-field select, .pd-field textarea { font-family: inherit; font-size: 14px; padding: 9px 11px; border: 1px solid #CBD5E1; border-radius: 6px; background: #fff; color: var(--text); width: 100%; }
.pd-field input:focus, .pd-field select:focus, .pd-field textarea:focus { border-color: var(--navy); outline: 2px solid rgba(26,74,122,0.15); outline-offset: 0; }
.pd-field textarea { min-height: 80px; resize: vertical; }
.pd-field .pd-hint { font-size: 12px; color: var(--muted); }
.pd-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pd-check input { width: 16px; height: 16px; }
.pd-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.pd-inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.pd-inline-form .pd-field { min-width: 150px; }
.pd-code { font-family: Consolas, "Courier New", monospace; font-size: 14px; letter-spacing: 0.06em; background: var(--navy-soft); padding: 10px 12px; border-radius: 6px; word-break: break-all; }
.pd-code-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pd-code-list span { font-family: Consolas, "Courier New", monospace; font-size: 16px; background: var(--navy-soft); padding: 8px 10px; border-radius: 6px; text-align: center; letter-spacing: 0.06em; }

.pd-table-wrap { overflow-x: auto; }
table.pd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pd-table th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: none; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pd-table td { padding: 9px 10px; border-bottom: 1px solid #EEF2F7; vertical-align: top; }
.pd-table tr:last-child td { border-bottom: 0; }
.pd-table tr.muted td { color: var(--muted); }
.pd-table td.num, .pd-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-table td.actions { text-align: right; white-space: nowrap; }
.pd-table tr.day td { background: var(--bg); font-weight: 600; color: var(--navy); }
.pd-table tfoot td { font-weight: 700; border-top: 2px solid var(--border); }
.pd-note { color: var(--muted); font-size: 13px; }
.pd-truncate { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pd-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); white-space: nowrap; }
.pd-badge-green { background: var(--green-soft); color: #15803d; }
.pd-badge-red { background: var(--red-soft); color: #b91c1c; }
.pd-badge-gold { background: var(--gold-soft); color: #92400e; }
.pd-badge-muted { background: #F1F5F9; color: var(--muted); }

.pd-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; border: 1px solid transparent; }
.pd-alert-info { background: var(--navy-soft); border-color: #C7D6E8; color: var(--navy); }
.pd-alert-warn { background: var(--gold-soft); border-color: #F5D27A; color: #7c4a03; }
.pd-alert-error { background: var(--red-soft); border-color: #F3B4B4; color: #991b1b; }
.pd-alert-success { background: var(--green-soft); border-color: #A7E3C3; color: #166534; }
.pd-alert ul { margin: 4px 0 0 18px; padding: 0; }

.pd-empty { padding: 28px; text-align: center; color: var(--muted); }
.pd-empty strong { display: block; color: var(--navy); margin-bottom: 4px; }

.pd-modal[hidden] { display: none; }
.pd-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pd-modal-backdrop { position: absolute; inset: 0; background: rgba(13,45,79,0.55); }
.pd-modal-dialog { position: relative; background: var(--card); border-radius: 10px; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; box-shadow: 0 20px 60px rgba(13,45,79,0.35); }
.pd-modal-dialog.wide { max-width: 760px; }
.pd-modal-dialog.narrow { max-width: 440px; }
.pd-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.pd-modal-head h3 { font-size: 17px; }
.pd-modal-x { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; }
.pd-modal-x:hover { background: var(--bg); color: var(--text); }
.pd-modal-body { padding: 18px 20px; }
.pd-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: #FAFBFD; border-radius: 0 0 10px 10px; }
.pd-modal-dialog.danger .pd-modal-head { border-bottom-color: #F3B4B4; }
.pd-modal-dialog.danger .pd-modal-head h3 { color: var(--red); }

.pd-toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.pd-toast { background: var(--navy-dark); color: #fff; padding: 12px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px; border-left: 4px solid var(--green); }
.pd-toast.error { border-left-color: var(--red); }
.pd-toast.warn { border-left-color: var(--gold); }
.pd-toast.hide { opacity: 0; transition: opacity 0.4s; }

.pd-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(180deg, #EEF3F9 0%, var(--bg) 100%); }
.pd-auth-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 32px 34px; width: 100%; max-width: 440px; border-top: 4px solid var(--navy); }
.pd-auth-card.wide { max-width: 640px; }
.pd-auth-logo { display: block; height: 42px; width: auto; margin: 0 auto 22px; }
.pd-auth h2 { justify-content: center; font-size: 20px; margin-bottom: 6px; }
.pd-auth .pd-sub { color: var(--muted); font-size: 14px; text-align: center; margin-bottom: 20px; }
.pd-auth .pd-foot { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.pd-qr { display: block; width: 200px; height: 200px; margin: 0 auto 12px; border: 1px solid var(--border); border-radius: 8px; }

.pd-week-nav { display: flex; align-items: center; gap: 8px; }
.pd-week-nav strong { min-width: 220px; text-align: center; color: var(--navy); }
.pd-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.pd-filter .pd-field { min-width: 140px; }
.pd-pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pd-progress { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.pd-progress span { display: block; height: 100%; background: var(--green); }
.pd-list-plain { list-style: none; margin: 0; padding: 0; }
.pd-list-plain li { padding: 8px 0; border-bottom: 1px solid #EEF2F7; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.pd-list-plain li:last-child { border-bottom: 0; }
.pd-danger-zone { border-color: #F3B4B4; }
.pd-danger-zone h3 { color: var(--red); }
.pd-mt { margin-top: 18px; }
.pd-center { text-align: center; }
.pd-steps { margin: 0 0 6px 18px; padding: 0; font-size: 14px; color: var(--muted); }
.pd-steps li { margin-bottom: 4px; }
.pd-right { text-align: right; }
.pd-muted { color: var(--muted); }
.pd-strong-navy { color: var(--navy); font-weight: 600; }

@media (max-width: 1100px) {
  .pd-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .pd-shell { grid-template-columns: 1fr; }
  .pd-sidebar { position: fixed; left: 0; top: 0; width: var(--sidebar-w); transform: translateX(-100%); transition: transform 0.2s; z-index: 50; }
  .pd-sidebar.open { transform: translateX(0); }
  .pd-menu-btn { display: inline-flex; }
  .pd-grid-2, .pd-grid-3, .pd-grid-4, .pd-form-row, .pd-form-row-3, .pd-check-grid, .pd-code-list { grid-template-columns: 1fr; }
  .pd-tracker { grid-template-columns: 1fr; }
  .pd-tracker-time { font-size: 36px; }
  .pd-content { padding: 12px 14px 24px; }
}

.pd-topbar-search { display: flex; align-items: center; gap: 6px; }
.pd-topbar-search input { font-family: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid #CBD5E1; border-radius: 6px; width: 220px; }
.pd-topbar-search input:focus { border-color: var(--navy); outline: 2px solid rgba(26,74,122,0.15); outline-offset: 0; }
.pd-nav-count { margin-left: auto; background: var(--gold); color: #1F2937; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.pd-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pd-quick a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13px; font-weight: 600; }
.pd-quick a:hover { text-decoration: none; border-color: var(--navy); }
.pd-quick a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pd-quick a .pd-count { background: rgba(0,0,0,0.08); border-radius: 999px; padding: 0 6px; font-size: 11px; }
.pd-quick a.active .pd-count { background: rgba(255,255,255,0.25); }
tr.pd-unread td { font-weight: 600; }
tr.pd-unread td:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: 1px; }
.pd-ticket-title { color: var(--navy); font-weight: 600; }
.pd-ticket-title:hover { text-decoration: underline; }
.pd-avatars { display: inline-flex; gap: 3px; }
.pd-avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); font-size: 11px; font-weight: 700; border: 1px solid #fff; }
.pd-due-over { color: var(--red); font-weight: 600; }
.pd-due-today { color: #92400e; font-weight: 600; }

.pd-ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.pd-ticket-side .pd-card { padding: 14px 16px; }
.pd-ticket-side h3 { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.pd-ticket-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pd-ticket-head h2 { font-size: 20px; }
.pd-ticket-number { color: var(--muted); font-weight: 600; font-size: 14px; }
.pd-md { font-size: 14.5px; line-height: 1.55; }
.pd-md p { margin: 0 0 10px; }
.pd-md p:last-child { margin-bottom: 0; }
.pd-md ul, .pd-md ol { margin: 0 0 10px 22px; padding: 0; }
.pd-md li { margin-bottom: 2px; }
.pd-md code { background: var(--navy-soft); padding: 1px 5px; border-radius: 4px; font-family: Consolas, "Courier New", monospace; font-size: 13px; }
.pd-md pre { background: #0D2D4F; color: #E2E8F0; padding: 10px 12px; border-radius: 6px; overflow-x: auto; font-size: 13px; margin: 0 0 10px; }
.pd-md pre code { background: none; color: inherit; padding: 0; }
.pd-md blockquote { margin: 0 0 10px; padding: 4px 12px; border-left: 3px solid var(--border); color: var(--muted); }
.pd-md h4 { font-size: 15px; margin: 8px 0 6px; }
.pd-md h4.pd-md-h1 { font-size: 17px; }
.pd-mention { background: var(--gold-soft); color: #92400e; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.pd-ticket-ref { font-weight: 600; }
.pd-md-hint { font-size: 12px; color: var(--muted); }

.pd-story { list-style: none; margin: 0; padding: 0; }
.pd-story-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEF2F7; }
.pd-story-item:last-child { border-bottom: 0; }
.pd-story-item .pd-avatar { width: 32px; height: 32px; font-size: 12px; flex: 0 0 auto; }
.pd-story-body { flex: 1; min-width: 0; }
.pd-story-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.pd-story-meta strong { color: var(--navy); }
.pd-story-system { padding: 4px 0 4px 44px; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.pd-story-system::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #CBD5E1; flex: 0 0 auto; }
.pd-story-actions { margin-left: auto; display: flex; gap: 4px; }
.pd-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pd-attachment { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px 4px 4px; background: #fff; font-size: 13px; max-width: 100%; }
.pd-attachment img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; display: block; }
.pd-attachment .pd-attach-ico { width: 48px; height: 48px; }
.pd-attachment-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-attachment form { display: inline; }

.pd-attach-zone { border: 2px dashed #CBD5E1; border-radius: 8px; padding: 12px 14px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; background: #FAFBFD; }
.pd-attach-zone.over { border-color: var(--navy); background: var(--navy-soft); color: var(--navy); }
.pd-attach-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pd-attach-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; font-size: 12px; background: #fff; }
.pd-attach-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.pd-attach-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px; background: var(--navy-soft); color: var(--navy); font-weight: 700; font-size: 11px; }
.pd-attach-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-attach-remove { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; padding: 0 4px; }
.pd-attach-remove:hover { color: var(--red); }

.pd-mention-popup { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 30px rgba(13,45,79,0.18); min-width: 220px; padding: 4px; }
.pd-mention-popup[hidden] { display: none; }
.pd-mention-item { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-family: inherit; font-size: 13px; }
.pd-mention-item strong { color: var(--navy); }
.pd-mention-item span { color: var(--muted); }
.pd-mention-item.active, .pd-mention-item:hover { background: var(--navy-soft); }
.pd-field.pd-relative { position: relative; }

.pd-kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.pd-kanban-col { background: #E9EEF5; border-radius: 10px; padding: 10px; min-height: 300px; border: 2px solid transparent; }
.pd-kanban-col.over { border-color: var(--navy); background: var(--navy-soft); }
.pd-kanban-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--navy); font-size: 13px; padding: 2px 4px 10px; }
.pd-kanban-head span[data-count] { background: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; }
.pd-kanban-body { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.pd-kanban-card { background: #fff; border-radius: 8px; padding: 10px 12px; border: 1px solid var(--border); cursor: grab; border-left: 4px solid #CBD5E1; }
.pd-kanban-card.prio-3 { border-left-color: var(--gold); }
.pd-kanban-card.prio-4 { border-left-color: var(--red); }
.pd-kanban-card.dragging { opacity: 0.5; }
.pd-kanban-card .pd-kanban-title { display: block; color: var(--navy); font-weight: 600; font-size: 13.5px; margin: 2px 0 6px; }
.pd-kanban-card .pd-kanban-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.pd-kanban-card .pd-kanban-number { font-size: 12px; color: var(--muted); font-weight: 600; }

.pd-lightbox-dialog { max-width: 92vw; max-height: 92vh; }
.pd-lightbox-dialog img { max-width: 100%; max-height: 78vh; display: block; margin: 0 auto; }
.pd-status-form { display: grid; gap: 8px; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px 3px 6px; font-size: 13px; background: #fff; }
.pd-chip form { display: inline; }
.pd-chip button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; line-height: 1; font-size: 15px; }
.pd-chip button:hover { color: var(--red); }
.pd-check-list { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.pd-inline { display: inline; }
.pd-trash-note { color: var(--red); font-weight: 600; }

@media (max-width: 1100px) {
  .pd-ticket-layout { grid-template-columns: 1fr; }
  .pd-kanban { grid-template-columns: repeat(5, 240px); }
}
a.pd-kpi { display: block; color: inherit; }
a.pd-kpi:hover { text-decoration: none; border-color: var(--navy); }
.pd-mail-status { font-size: 13px; }
