:root {
	color-scheme: light;
	--ink: #24334b;
	--muted: #68788c;
	--line: #e1e9f1;
	--soft: #f5f8fc;
	--white: #fff;
	--blue: #357eae;
	--deep-blue: #27668f;
	--green: #80a628;
	--shadow: 0 15px 38px rgba(28, 58, 90, 0.045);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f7f9fc; color: var(--ink); font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
a { color: var(--deep-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.wrap { max-width: 1110px; width: calc(100% - 48px); margin-inline: auto; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 94px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 40px; height: 53px; color: var(--green); flex: none; }
.brand-name { display: block; font-size: 27px; line-height: .98; letter-spacing: -1.5px; color: var(--green); font-weight: 400; }
.brand-name strong { color: #428cb9; font-weight: 700; }
.brand-name small { display: block; margin-top: 8px; font-size: 10px; letter-spacing: 2.6px; text-transform: uppercase; font-weight: 700; color: #8a99a9; }
.main-nav { display: flex; align-items: center; gap: 29px; }
.main-nav a { color: #65758a; font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; padding: 35px 0 34px; }
.main-nav a:hover, .main-nav a.active { color: var(--deep-blue); border-bottom-color: var(--blue); text-decoration: none; }
.main-content { padding: 48px 0 80px; min-height: calc(100vh - 177px); }
.intro { max-width: 760px; margin-bottom: 34px; }
.intro h1, .dashboard-top h1, .ticket-top h1 { font-size: clamp(29px, 4vw, 40px); letter-spacing: -1.4px; font-weight: 730; line-height: 1.2; margin: 7px 0 14px; color: #20334e; }
.intro p, .dashboard-top p, .ticket-top p { color: var(--muted); font-size: 15.5px; margin: 0; }
.eyebrow { display: block; color: var(--green); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.compact-intro { text-align: center; margin: 5px auto 28px; max-width: 700px; }
.compact-intro h1 { margin-bottom: 10px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.panel, .side-card, .stat { background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.panel { padding: 34px; }
.ticket-form-panel { padding: 35px 39px 39px; }
.panel h2 { font-size: 20px; font-weight: 720; letter-spacing: -.4px; margin: 0 0 7px; }
.panel-heading { padding-bottom: 24px; border-bottom: 1px solid #ebeff4; margin-bottom: 24px; }
.panel-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.field { margin-bottom: 20px; min-width: 0; }
.field label { font-weight: 650; display: block; margin-bottom: 7px; font-size: 13px; color: #34445b; }
.field input, .field select, .field textarea { appearance: none; display: block; width: 100%; border: 1px solid #d7e1eb; border-radius: 7px; background: white; color: var(--ink); padding: 11px 12px; transition: border .12s, box-shadow .12s; outline: none; }
.field select { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23728290' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #5d99c0; box-shadow: 0 0 0 3px rgba(61, 141, 185, .12); }
.field small, .muted { color: var(--muted); }
.field small { display: block; font-size: 12px; margin-top: 5px; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 43px; border-radius: 7px; padding: 10px 20px; font-weight: 700; border: 1px solid transparent; font-size: 13px; transition: background .12s, transform .12s; text-align: center; }
.button:hover { text-decoration: none; }
.button.primary { background: #438dba; color: #fff; }
.button.primary:hover { background: #2d739f; }
.button.secondary { background: white; border-color: #d5e0e9; color: #3e607d; }
.button.secondary:hover { background: #f1f6fa; }
.button.danger { background: #fff0ee; border-color: #e6a7a1; color: #9b302b; }
.button.danger:hover { background: #ffe3e0; }
.button.small { min-height: 34px; padding: 6px 13px; font-size: 12px; }
.button.full { width: 100%; }
.help-aside { display: grid; gap: 20px; }
.side-card { padding: 28px; }
.side-icon { display: inline-flex; border-radius: 11px; width: 38px; height: 38px; align-items: center; justify-content: center; background: #edf5e2; color: #709b1b; font-weight: 800; font-size: 12px; }
.side-card h3 { font-size: 16px; margin: 17px 0 9px; }
.side-card p { color: var(--muted); margin: 0 0 16px; font-size: 13px; line-height: 1.8; }
.side-card.quiet { background: #f0f5fa; box-shadow: none; }
.side-card.quiet h3 { margin-top: 0; }
.side-card.quiet p { margin-bottom: 0; }
.text-link { font-weight: 700; font-size: 13px; }
.narrow { max-width: 575px; margin: 0 auto; }
.narrow.aligned-left { margin-left: 0; }
.login-panel { max-width: 430px; }
.checkline { display: flex; align-items: flex-start; gap: 9px; color: #47596e; font-size: 13px; margin: 5px 0 25px; cursor: pointer; }
.checkline input { margin-top: 5px; accent-color: #388aba; }
.notice { border-radius: 8px; padding: 12px 15px; margin-bottom: 20px; font-size: 13px; }
.notice.success { background: #ecf7e9; border: 1px solid #cde9c9; color: #2e6b32; }
.notice.error { background: #fff3f0; border: 1px solid #f2d3ca; color: #934535; }
.notice ul { margin: 6px 0 0; padding-left: 22px; }
.small-gap { margin-top: 22px; font-size: 13px; }
.trap { position: absolute !important; overflow: hidden; clip: rect(0 0 0 0); height: 1px; width: 1px; opacity: 0; pointer-events: none; }
.back-link { display: inline-block; color: #627f98; font-weight: 650; font-size: 12px; margin-bottom: 20px; }
.ticket-top { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.ticket-top h1 { max-width: 780px; overflow-wrap: anywhere; }
.ticket-top p { font-size: 13px; }
.dot { padding: 0 8px; color: #aebac8; }
.status { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 750; border-radius: 100px; padding: 5px 12px; white-space: nowrap; }
.status.open { background: #fff2da; color: #9b6715; }
.status.answered { background: #e6f3fd; color: #286b9b; }
.status.closed { background: #eef0f3; color: #6d7785; }
.thread-wrap { max-width: 850px; }
.thread { display: grid; gap: 15px; margin-bottom: 23px; }
.message { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 22px 25px; }
.message.staff-message { border-left: 4px solid var(--blue); background: #fdfefe; }
.message.customer-message { border-left: 4px solid #b3c5d2; }
.message-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #edf1f5; }
.message-head strong { font-size: 13px; }
.message-head span { font-size: 11px; color: #8491a2; }
.message-body { font-size: 14px; overflow-wrap: anywhere; white-space: normal; }
.reply-panel h2 { margin-bottom: 6px; }
.reply-panel p { font-size: 13px; margin: 0 0 22px; }
.reply-panel .field { margin-top: 20px; }
.ticket-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.dashboard-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.dashboard-top h1 { margin-bottom: 8px; }
.admin-tools { display: flex; align-items: center; gap: 9px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { display: flex; flex-direction: column; padding: 21px 24px; text-decoration: none; }
.stat:hover { border-color: #bad0e0; text-decoration: none; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 650; }
.stat strong { font-size: 29px; color: var(--ink); letter-spacing: -.8px; line-height: 1.25; margin-top: 10px; }
.list-panel { padding: 0; overflow: hidden; }
.ticket-search { display: flex; align-items: flex-end; gap: 14px; padding: 23px 26px; border-bottom: 1px solid var(--line); }
.ticket-search .field { margin: 0; }
.search-field { flex: 1; }
.filter-field { width: 175px; }
.search-button { min-height: 46px; }
.table-scroll { overflow-x: auto; }
.tickets-table { width: 100%; border-collapse: collapse; text-align: left; }
.tickets-table th { padding: 12px 19px; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; background: #f9fbfd; color: #77889a; }
.tickets-table td { padding: 16px 19px; border-top: 1px solid #eaf0f5; font-size: 12px; vertical-align: middle; overflow-wrap: anywhere; }
.tickets-table tr:hover td { background: #fbfdff; }
.tickets-table td:first-child { min-width: 245px; }
.ticket-link strong { color: #2c709c; font-size: 13px; display: block; line-height: 1.45; }
.ticket-link span, .subtext { color: #92a0af; font-size: 11px; display: block; margin-top: 3px; }
.date-cell { color: #77869a; white-space: nowrap; }
.empty-state { text-align: center; color: var(--muted); padding: 55px 20px !important; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 18px 23px; font-size: 12px; color: #728197; border-top: 1px solid var(--line); }
.pagination div { display: flex; gap: 8px; }
.subtle-divider { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.site-footer { background: white; border-top: 1px solid var(--line); }
.footer-inner { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 15px; color: #9aa7b7; font-size: 12px; }
@media (max-width: 870px) {
	.content-grid { grid-template-columns: 1fr; }
	.help-aside { grid-template-columns: 1fr 1fr; }
	.header-inner { flex-wrap: wrap; justify-content: center; padding-top: 14px; }
	.main-nav a { padding: 13px 0; }
	.stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 590px) {
	.wrap { width: calc(100% - 28px); }
	.header-inner { justify-content: flex-start; gap: 7px; }
	.brand-icon { width: 30px; height: 42px; }
	.brand-name { font-size: 23px; }
	.main-nav { width: 100%; justify-content: space-between; gap: 9px; }
	.main-nav a { font-size: 12px; }
	.main-content { padding: 29px 0 55px; }
	.panel { padding: 22px; }
	.ticket-form-panel { padding: 23px; }
	.grid-two, .help-aside { grid-template-columns: 1fr; gap: 0; }
	.ticket-top, .dashboard-top { flex-direction: column; align-items: flex-start; }
	.ticket-actions { flex-direction: row; align-items: center; }
	.stats { gap: 10px; }
	.stat { padding: 14px 17px; }
	.stat strong { font-size: 24px; }
	.ticket-search { flex-wrap: wrap; padding: 17px; }
	.search-field { flex-basis: 100%; }
	.filter-field { flex: 1; width: auto; }
	.tickets-table th, .tickets-table td { padding: 12px; }
	.footer-inner { flex-direction: column; justify-content: center; gap: 3px; }
}
