/* /support */
.step { font: 700 11px var(--display); letter-spacing: .14em; color: var(--orange-2); margin-bottom: 9px; }
.step .muted { font: 500 11px var(--font); letter-spacing: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.area { height: auto; min-height: 140px; padding: 13px 15px; resize: vertical; line-height: 1.6; font-family: var(--thai); }
.sp-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; margin-top: 30px; align-items: start; }
.sp-form { display: grid; gap: 20px; padding: 28px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat { text-align: left; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); transition: .2s var(--ease); }
.cat b { display: block; font-size: 13.5px; }
.cat small { color: var(--muted); font-size: 11.5px; }
.cat:hover { border-color: rgba(255, 255, 255, .22); transform: translateY(-2px); }
.cat.sel { border-color: var(--orange); background: rgba(255, 45, 63, .09); box-shadow: 0 0 0 3px rgba(255, 45, 63, .14); }
.sp-side { display: grid; gap: 18px; }
.sp-side .card { padding: 22px; }
.tips { list-style: none; display: grid; gap: 12px; margin-top: 14px; font-size: 13.5px; color: var(--text-2); font-family: var(--thai); }
.tips b { color: var(--text); }
.mine { display: grid; gap: 8px; margin-top: 14px; }
.mine a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 13.5px; transition: .2s; }
.mine a:hover { border-color: rgba(255, 45, 63, .4); }
.mine a span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mine .empty { color: var(--dim); font-size: 13px; }

/* attachments */
.shots { display: flex; flex-wrap: wrap; gap: 10px; }
.shot, .shot-add { position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); flex: none; }
.shots.small .shot, .shots.small .shot-add { width: 64px; height: 64px; border-radius: 11px; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 7px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; }
.shot-add { display: grid; place-items: center; color: var(--muted); font-size: 26px; border-style: dashed; border-color: rgba(255, 45, 63, .4); background: rgba(255, 45, 63, .04); cursor: pointer; transition: .2s; }
.shot-add:hover, .shot-add.over { color: var(--text); background: rgba(255, 45, 63, .1); border-color: var(--orange); }
.shot-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* thread */
.t-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.t-title { flex: 1; min-width: 240px; }
.t-title .h2 { font-size: clamp(22px, 3vw, 32px); }
.t-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; font-size: 13px; }
.chip.open { color: var(--ok); border-color: rgba(55, 214, 122, .3); background: rgba(55, 214, 122, .08); }
.chip.closed { color: var(--muted); }
.chip.wait { color: var(--amber); border-color: rgba(255, 182, 72, .35); background: rgba(255, 182, 72, .08); }
.thread { display: flex; flex-direction: column; gap: 16px; margin: 28px 0 18px; }
.msg { display: flex; gap: 12px; max-width: 760px; animation: fadeUp .5s var(--ease) both; }
.msg .av { width: 40px; height: 40px; border-radius: 12px; flex: none; overflow: hidden; display: grid; place-items: center; font-weight: 800; background: var(--panel-3); box-shadow: 0 0 0 1px var(--line-2); }
.msg .av img { width: 100%; height: 100%; object-fit: contain; }
.msg .bubble { padding: 14px 16px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.msg .who { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msg .who b { color: var(--text); font-size: 13px; }
.msg .txt { white-space: pre-wrap; word-break: break-word; font-family: var(--thai); font-size: 14.5px; line-height: 1.7; }
.msg .imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg .imgs img { width: 150px; height: 110px; object-fit: cover; border-radius: 11px; cursor: zoom-in; border: 1px solid var(--line-2); }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .bubble { background: linear-gradient(180deg, rgba(255, 45, 63, .16), rgba(255, 45, 63, .07)); border-color: rgba(255, 45, 63, .3); }
.msg.auto .bubble { border-style: dashed; }
.msg.owner .bubble { border-color: rgba(255, 182, 72, .35); box-shadow: var(--shadow), 0 0 30px -14px rgba(255, 182, 72, .5); }
.tag-auto { font: 700 9.5px var(--display); letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.tag-owner { font: 700 9.5px var(--display); letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; background: var(--orange); color: var(--on-accent); }
.composer { padding: 18px; }
.composer-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; }
.composer .area { min-height: 90px; }
.closed-note { padding: 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 16px; }

/* admin inbox */
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); flex-wrap: wrap; }
.tab { height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--muted); transition: .2s; }
.tab.active { color: var(--text); background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); }
.tab .n { color: var(--orange-2); }
.inbox { display: grid; gap: 10px; }
.inbox a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 15px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: .2s; }
.inbox a:hover { border-color: rgba(255, 45, 63, .4); transform: translateX(3px); }
.inbox .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.inbox .dot.wait { background: var(--orange); box-shadow: 0 0 12px var(--glow); }
.inbox b { display: block; }
.inbox small { color: var(--muted); font-size: 12.5px; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.inbox .r { text-align: right; font-size: 12px; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 30px; background: rgba(0, 0, 0, .88); opacity: 0; pointer-events: none; transition: opacity .25s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 60px); border-radius: 14px; }

@media (max-width: 1020px) { .sp-grid { grid-template-columns: 1fr; } .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } .msg { max-width: 100%; } .msg .imgs img { width: 110px; height: 84px; } .inbox a { grid-template-columns: auto 1fr; } .inbox .r { grid-column: 2; text-align: left; } }
