/* Support Tickets — list, form, detail, Need More Help */

.mp-support-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .mp-support-grid { grid-template-columns: 1fr; } }

/* Filter bar sits above the page action, as in production */
.mp-tk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.mp-tk-bar .mp-clear { margin-left: auto; }

/* Need More Help */
.mp-help-title { margin: 0 0 5px; font-size: 16px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-help-sub { margin: 0 0 16px; font-size: 13.5px; color: var(--fg-3); line-height: 1.55; }
.mp-help-rows { display: flex; flex-direction: column; gap: 10px; }
.mp-help-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border-subtle); width: 100%; text-align: left; font: inherit; cursor: pointer; transition: background 140ms, border-color 140ms; }
.mp-help-row:hover { background: var(--mp-chalk); border-color: var(--mp-pine); }
.mp-help-row > .mp-ic:first-child { color: var(--mp-pine); flex: 0 0 auto; }
.mp-help-row > .mp-ic:last-child { color: var(--fg-3); flex: 0 0 auto; margin-left: auto; }
.mp-help-row-body { min-width: 0; }
.mp-help-row-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-help-row-sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--fg-3); }

/* Table cells */
.mp-tk-subject { font-weight: 600; color: var(--fg-1); }
.mp-tk-desc { color: var(--fg-2); max-width: 260px; }
.mp-tk-empty-cta { display: flex; justify-content: center; margin-top: 4px; }

/* Priority and status pills. Priority is a level, not a state, so it stays
   neutral until it is high enough to act on. */
.mp-tk-priority { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.mp-tk-priority--low { background: var(--bg-2); border: 1px solid var(--border-subtle); color: var(--fg-2); }
.mp-tk-priority--medium { background: var(--mp-sand-tint); color: var(--mp-sand-ink); }
.mp-tk-priority--high { background: var(--mp-clay-tint); color: var(--mp-clay-ink); }
.mp-tk-priority--critical { background: var(--mp-ember-tint); color: var(--mp-ember-ink); }
.mp-tk-nopriority { font-size: 13px; color: var(--fg-3); }

/* Ticket status. Created and In Progress previously shared clay, which read as
   a warning on states where nothing is wrong. They now have their own hues. */
.mp-tk-status { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.mp-tk-status--created { background: #e6f0f6; border: 1px solid #a8c8dc; color: #2b5a75; }
.mp-tk-status--in-progress { background: #fdf4d8; border: 1px solid #e3cf8e; color: #7a5e0c; }
.mp-tk-status--resolved { background: rgba(37,103,81,0.10); color: var(--mp-pine); }
.mp-tk-status--closed { background: var(--bg-2); border: 1px solid var(--border-subtle); color: var(--fg-3); }
.mp-tk-status--declined { background: var(--bg-2); border: 1px solid var(--border-subtle); color: var(--fg-2); }

/* Form */
.mp-req-star { color: var(--mp-ember-ink); font-weight: 700; }
.mp-tk-foot { display: flex; justify-content: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }

.mp-attach-label { margin-top: 24px; font-size: 14px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-attach-none { margin: 8px 0 0; font-size: 13.5px; color: var(--fg-3); }
.mp-attach-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.mp-attach-list li { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--border-subtle); font-size: 13.5px; color: var(--fg-2); }
.mp-attach-list li .mp-ic { color: var(--fg-3); flex: 0 0 auto; }
.mp-attach-list li span { flex: 1; min-width: 0; word-break: break-all; }
.mp-attach-list li button { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: none; border-radius: 6px; background: none; color: var(--fg-3); cursor: pointer; }
.mp-attach-list li button:hover { background: #fff; color: var(--fg-1); }
.mp-attach-list--static li { padding-right: 12px; }

.mp-filedrop { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 16px; padding: 30px 24px; border-radius: 12px; border: 1.5px dashed var(--border-strong); background: var(--bg-2); transition: border-color 120ms, background 120ms; }
.mp-filedrop.is-over { border-color: var(--mp-pine); background: var(--mp-mist); }
.mp-filedrop-title { margin: 0; font-size: 14px; color: var(--fg-2); }
.mp-filedrop-msg { margin: 0; font-size: 12.5px; color: var(--fg-3); text-align: center; }

/* Detail */
.mp-tk-head-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mp-tk-head-row .mp-back { margin-bottom: 0; }
.mp-tk-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--border-subtle); }
.mp-tk-hero-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-tk-hero-sub { margin-top: 4px; font-size: 13px; color: var(--fg-3); }
.mp-tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 4px; }
@media (max-width: 820px) { .mp-tk-grid { grid-template-columns: 1fr; } }
.mp-tk-h { margin: 22px 0 10px; font-size: 14px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-tk-grid .mp-tk-h { margin-top: 0; }
.mp-tk-p { margin: 0 0 6px; font-size: 13.5px; color: var(--fg-2); display: flex; align-items: center; gap: 8px; }
.mp-tk-readout { padding: 13px 16px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border-subtle); font-size: 14px; color: var(--fg-1); line-height: 1.6; white-space: pre-wrap; }

.mp-tk-comments { display: flex; flex-direction: column; gap: 12px; }
.mp-tk-comment { padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border-subtle); }
.mp-tk-comment-head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-3); }
.mp-tk-comment-head strong { font-size: 13.5px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-tk-comment-head span { margin-left: auto; }
.mp-tk-comment-body { margin: 10px 0 0; font-size: 14px; color: var(--fg-1); line-height: 1.6; white-space: pre-wrap; }
.mp-tk-reply { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border-subtle); }
