/* 5DF Support Desk — customer portal (scoped to .fdfsd-portal) */
.fdfsd-portal { --p-accent: #2f6fed; --p-line: #e4e7ec; --p-muted: #667085; --p-text: #101828; max-width: 880px; margin: 0 auto; color: var(--p-text); font-size: 16px; line-height: 1.55; }
.fdfsd-portal *, .fdfsd-portal *::before, .fdfsd-portal *::after { box-sizing: border-box; }
.fdfsd-portal [hidden] { display: none !important; }
.fdfsd-portal .fdfsd-h { font-size: 1.5em; margin: .4em 0 .6em; line-height: 1.25; }
.fdfsd-portal .fdfsd-muted { color: var(--p-muted); font-size: .9em; }
.fdfsd-portal .fdfsd-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border-bottom: 1px solid var(--p-line); padding-bottom: 10px; margin-bottom: 18px; }
.fdfsd-portal .fdfsd-nav a { text-decoration: none; padding: 6px 12px; border-radius: 8px; color: var(--p-text); }
.fdfsd-portal .fdfsd-nav a.is-active { background: #eaf1fe; color: var(--p-accent); font-weight: 600; }
.fdfsd-portal .fdfsd-nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: .92em; }
.fdfsd-portal .fdfsd-notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.fdfsd-portal .fdfsd-notice-ok { background: #ecfdf3; color: #054f31; border: 1px solid #abefc6; }
.fdfsd-portal .fdfsd-notice-err { background: #fef3f2; color: #912018; border: 1px solid #fecdca; }
.fdfsd-portal .fdfsd-form { background: #fff; border: 1px solid var(--p-line); border-radius: 14px; padding: 22px; margin: 16px 0; }
.fdfsd-portal .fdfsd-narrow { max-width: 460px; }
.fdfsd-portal .fdfsd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fdfsd-portal .fdfsd-row > .fdfsd-field:only-child { grid-column: 1 / -1; }
.fdfsd-portal .fdfsd-field { display: block; margin-bottom: 14px; }
.fdfsd-portal .fdfsd-field > span { display: block; font-weight: 600; font-size: .92em; margin-bottom: 5px; }
.fdfsd-portal .fdfsd-field em { color: #d92d20; font-style: normal; }
.fdfsd-portal input[type=text], .fdfsd-portal input[type=email], .fdfsd-portal input[type=url], .fdfsd-portal input[type=search], .fdfsd-portal select, .fdfsd-portal textarea {
	width: 100%; border: 1px solid #d0d5dd; border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 15px; background: #fff; color: var(--p-text);
}
.fdfsd-portal textarea { resize: vertical; }
.fdfsd-portal input:focus, .fdfsd-portal select:focus, .fdfsd-portal textarea:focus { outline: none; border-color: var(--p-accent); box-shadow: 0 0 0 3px rgba(47,111,237,.15); }
.fdfsd-portal .fdfsd-btn { display: inline-block; background: var(--p-accent); color: #fff; border: 0; border-radius: 9px; padding: 11px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.fdfsd-portal .fdfsd-btn:hover { background: #255fd2; color: #fff; }
.fdfsd-portal .fdfsd-btn[disabled] { opacity: .6; cursor: default; }
.fdfsd-portal .fdfsd-btn-light { background: #f2f4f7; color: var(--p-text); }
.fdfsd-portal .fdfsd-btn-light:hover { background: #e4e7ec; color: var(--p-text); }
.fdfsd-portal .fdfsd-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.fdfsd-portal .fdfsd-kb-box { display: flex; gap: 8px; margin: 0 0 6px; }
.fdfsd-portal .fdfsd-kb-box input { flex: 1; }
.fdfsd-portal .fdfsd-suggest { background: #f5f8ff; border: 1px solid #d1e0ff; border-radius: 10px; padding: 12px 16px; margin: -4px 0 14px; }
.fdfsd-portal .fdfsd-suggest strong { display: block; margin-bottom: 6px; }
.fdfsd-portal .fdfsd-suggest ul { margin: 0; padding-left: 18px; }
.fdfsd-portal .fdfsd-list { list-style: none; padding: 0; }
.fdfsd-portal .fdfsd-list li { padding: 12px 0; border-bottom: 1px solid var(--p-line); }
.fdfsd-portal .fdfsd-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--p-line); border-radius: 12px; overflow: hidden; }
.fdfsd-portal .fdfsd-table th, .fdfsd-portal .fdfsd-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid #f0f2f5; font-size: .95em; }
.fdfsd-portal .fdfsd-table th { background: #fafbfc; font-size: .82em; text-transform: uppercase; letter-spacing: .04em; color: var(--p-muted); }
.fdfsd-portal .fdfsd-pill { display: inline-block; border-radius: 20px; padding: 2px 10px; font-size: .8em; font-weight: 600; background: #f2f4f7; color: #344054; white-space: nowrap; }
.fdfsd-portal .fdfsd-pill-new, .fdfsd-portal .fdfsd-pill-open { background: #e0ecff; color: #1849a9; }
.fdfsd-portal .fdfsd-pill-awaiting_customer { background: #fef0c7; color: #93370d; }
.fdfsd-portal .fdfsd-pill-awaiting_dev { background: #f4ebff; color: #6941c6; }
.fdfsd-portal .fdfsd-pill-solved, .fdfsd-portal .fdfsd-pill-closed { background: #dcfae6; color: #067647; }
.fdfsd-portal .fdfsd-ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.fdfsd-portal .fdfsd-thread { display: flex; flex-direction: column; gap: 12px; margin: 12px 0 8px; }
.fdfsd-portal .fdfsd-msg { border: 1px solid var(--p-line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.fdfsd-portal .fdfsd-msg.is-agent { background: #f5f8ff; border-color: #d1e0ff; }
.fdfsd-portal .fdfsd-msg-meta { margin-bottom: 6px; font-size: .92em; }
.fdfsd-portal .fdfsd-msg-body { overflow-wrap: anywhere; }
.fdfsd-portal .fdfsd-msg-body pre { background: #0f172a; color: #e2e8f0; padding: 10px; border-radius: 8px; overflow-x: auto; font-size: .85em; }
.fdfsd-portal .fdfsd-files-list { margin: 8px 0 0; padding-left: 18px; font-size: .92em; }
.fdfsd-portal .fdfsd-actions { display: flex; gap: 10px; align-items: center; }
.fdfsd-portal .fdfsd-solve { margin: -4px 0 20px; }
.fdfsd-portal .fdfsd-hours { margin: 12px 0 0; }
.fdfsd-portal .fdfsd-file-names { font-size: .85em; color: var(--p-muted); margin-top: 4px; }
@media (max-width: 640px) {
	.fdfsd-portal .fdfsd-row { grid-template-columns: 1fr; }
	.fdfsd-portal .fdfsd-nav-right { margin-left: 0; width: 100%; }
	.fdfsd-portal .fdfsd-table th:nth-child(4), .fdfsd-portal .fdfsd-table td:nth-child(4) { display: none; }
}
