/* totemsmp.cz/podpora: support tickets for players (big, simple, for kids) */
.phero.slim { text-align: center; justify-items: center; }
.phero.slim .lead { margin: 12px auto 0; max-width: 620px; }
.pd-main { padding-top: 34px; padding-bottom: 64px; display: grid; gap: 22px; max-width: 820px; }
.pd-card { font-family: var(--ui); }
.pd-card h2 { font: 700 20px/1.2 var(--mc); text-transform: uppercase; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.pd-card p { color: #4a3322; font-size: 16px; line-height: 1.6; }
.pd-center { text-align: center; display: grid; justify-items: center; gap: 10px; }
.pd-big { font-size: 56px; line-height: 1; }
.pd-small { font-size: 14px !important; color: var(--muted) !important; font-weight: 700; }
.pd-small a { color: var(--violet-d); text-decoration: underline; }
.pd-cta { min-height: 62px; font-size: 19px; padding: 0 34px 6px; }
.pd-plus { font: 700 28px/1 var(--mc); }
.pd-top { display: grid; justify-items: center; gap: 8px; }
.pd-top .btn[aria-disabled] { opacity: .55; cursor: not-allowed; }
.pd-list { display: grid; gap: 10px; }
.pd-row { display: grid; grid-template-columns: 48px 1fr auto 20px; gap: 14px; align-items: center; padding: 12px 14px; background: var(--paper-2); color: var(--ink); box-shadow: inset 0 -5px 0 var(--paper-lip); transition: transform .15s; }
.pd-row:hover { transform: translateY(-2px); background: #fff7ea; }
.pd-row.unread { background: #e4f8ea; box-shadow: inset 0 -5px 0 #b9e6c6; }
.pd-tt { display: grid; min-width: 0; }
.pd-tt b { font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-tt small { color: var(--muted); font-weight: 700; font-size: 13px; }
.pd-go { font: 700 26px/1 var(--mc); color: var(--muted); }
.pd-ic { width: 44px; height: 44px; display: inline-grid; place-items: center; font-size: 24px; background: var(--bg, var(--ink)); box-shadow: inset 0 -4px 0 var(--bg-d, #000); flex: none; }
.pd-st { font: 800 13px/1 var(--ui); padding: 8px 12px; border-radius: 999px; white-space: nowrap; background: var(--paper-line); color: var(--muted); }
.pd-st.wait { background: #fff1d6; color: #a76a00; }
.pd-st.new { background: var(--green); color: #fff; animation: pdpulse 1.6s ease-in-out infinite; }
@keyframes pdpulse { 50% { box-shadow: 0 0 0 6px rgba(63, 207, 107, .25); } }
.pd-empty { padding: 20px 0; }
.pd-back { display: inline-block; font: 800 15px/1 var(--ui); color: var(--muted); background: none; padding: 4px 0 14px; cursor: pointer; }
.pd-back:hover { color: var(--ink); }
.pd-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pd-cat { display: grid; justify-items: center; gap: 8px; padding: 22px 12px 26px; color: #fff; background: var(--bg); box-shadow: inset 0 -6px 0 var(--bg-d); cursor: pointer; transition: transform .15s; }
.pd-cat:hover { transform: translateY(-3px); }
.pd-cat:active { transform: translateY(1px); }
.pd-cat span { font-size: 40px; line-height: 1; }
.pd-cat b { font: 700 15px/1.25 var(--mc); text-transform: uppercase; text-shadow: 2px 2px 0 rgba(0, 0, 0, .3); text-align: center; }
.c-red { --bg: #e5484d; --bg-d: #a8272b; }
.c-green { --bg: var(--green); --bg-d: var(--green-d); }
.c-blue { --bg: var(--blue); --bg-d: var(--blue-d); }
.c-orange { --bg: var(--orange); --bg-d: var(--orange-d); }
.c-violet { --bg: var(--violet); --bg-d: var(--violet-d); }
.c-ink { --bg: var(--ink); --bg-d: #000; }
.pd-form { display: grid; gap: 16px; }
.pd-form label { display: grid; gap: 8px; font: 800 14px/1 var(--ui); text-transform: uppercase; color: var(--ink); }
.pd-form input, .pd-form textarea { font: 600 17px/1.45 var(--ui); color: var(--ink); background: var(--paper-2); border: 3px solid var(--paper-lip); padding: 14px; width: 100%; resize: vertical; }
.pd-form input:focus, .pd-form textarea:focus { outline: none; border-color: var(--violet); background: #fff; }
.pd-form .btn { justify-self: start; }
.pd-err { color: #c0392b; font-weight: 800; min-height: 1em; }
.pd-thead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.pd-thead > div { flex: 1 1 200px; min-width: 0; }
.pd-thead h2 { margin: 0; overflow-wrap: anywhere; }
.pd-thead small { color: var(--muted); font-weight: 700; }
.pd-chat { display: grid; gap: 12px; max-height: 60vh; overflow-y: auto; padding: 14px; background: var(--paper-2); margin-bottom: 16px; }
.pd-msg { max-width: 82%; padding: 12px 16px; background: #fff; box-shadow: inset 0 -4px 0 var(--paper-lip); }
.pd-msg.me { justify-self: end; background: #fff4d9; }
.pd-msg.staff { justify-self: start; background: #e6f1ff; box-shadow: inset 0 -4px 0 #c3dbff; }
.pd-who { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.pd-who img { width: 24px; height: 24px; image-rendering: pixelated; }
.pd-who small { color: var(--muted); font-weight: 700; margin-left: auto; }
.pd-tag { font: 700 10px/1 var(--mc); background: var(--blue); color: #fff; padding: 3px 5px; }
.pd-msg p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
.pd-ev { justify-self: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.pd-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pd-closed { padding: 10px 0; }
@media (max-width: 560px) {
  .pd-row { grid-template-columns: 44px 1fr; }
  .pd-row .pd-st { grid-column: 2; justify-self: start; }
  .pd-row .pd-go { display: none; }
  .pd-cats { grid-template-columns: 1fr 1fr; }
  .pd-msg { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pd-row, .pd-cat { transition: none; } .pd-st.new { animation: none; } }
.wp a.pd-row, .wp a.pd-back { text-decoration: none !important; color: var(--ink) !important; }
.wp a.pd-back { color: var(--muted) !important; }
