:root {
	--hd-ink: #171a21;
	--hd-muted: #5e6772;
	--hd-line: #e3e6eb;
	--hd-paper: #f4f5f7;
	--hd-card: #ffffff;
	--hd-brand: #1f7a6b;
	--hd-brand-2: #142033;
	--hd-amber: #b86a1a;
	--hd-danger: #9d2c2c;
	--hd-ok: #1f7a6b;
	--sans: system-ui, "Segoe UI", sans-serif;
	--serif: system-ui, "Segoe UI", sans-serif;
	--shadow: 0 1px 2px rgba(23, 26, 33, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body.hd-body {
	background: var(--hd-paper);
	color: var(--hd-ink);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--hd-brand); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 640; letter-spacing: -0.03em; }
h1 { font-size: 1.6rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 0 0 0.75rem; }

.hd-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.hd-hp {
	position: absolute;
	left: -9999px;
}

.hd-mark {
	width: 36px;
	height: 36px;
	border-radius: 12px;
	background:
		radial-gradient(circle at 50% 62%, #f4efe4 0 18%, transparent 19%),
		linear-gradient(135deg, var(--hd-brand), var(--hd-brand-2));
	display: inline-block;
	flex: 0 0 auto;
	position: relative;
}
.hd-mark:before,
.hd-mark:after {
	content: "";
	position: absolute;
	top: 4px;
	width: 10px;
	height: 10px;
	background: #f4efe4;
	border-radius: 2px 8px 2px 2px;
}
.hd-mark:before { left: 6px; transform: rotate(-18deg); }
.hd-mark:after { right: 6px; transform: rotate(18deg); }
.hd-mark-image { object-fit: contain; background: transparent; }
.hd-mark-image:before, .hd-mark-image:after { content: none; }

.hd-app { display: flex; min-height: 100vh; }
.hd-sidebar {
	width: 232px;
	background: var(--hd-brand-2);
	color: #f7f8fa;
	display: flex;
	flex-direction: column;
	padding: 18px 12px;
	position: sticky;
	top: 0;
	height: 100vh;
}
.hd-brand {
	display: flex;
	gap: 12px;
	align-items: center;
	color: inherit;
	margin: 0 4px 18px;
	flex-shrink: 0;
}
.hd-brand a { color: inherit; text-decoration: none; }
.hd-brand strong { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 650; letter-spacing: -0.02em; }
.hd-brand small { display: block; color: rgba(247, 248, 250, 0.68); }
.hd-brand .hd-brand-edit,
.hd-kicker .hd-brand-edit { margin-left: 4px; color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.hd-brand-switch { flex-shrink: 0; }
.hd-brand-switch label { display: block; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(246,241,232,0.65); }
.hd-brand-switch select, .hd-sidebar select {
	width: 100%;
	margin-top: 6px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	color: #fff;
	border-radius: 8px;
	padding: 8px;
}
.hd-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; flex: 1; min-height: 0; overflow: auto; }
.hd-nav a {
	color: rgba(247,248,250,0.78);
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 8px;
	font-weight: 550;
}
.hd-nav a.is-active, .hd-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.hd-nav a.is-active { font-weight: 650; }
.hd-nav-group { display: flex; flex-direction: column; }
.hd-nav-group summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(247,248,250,0.78);
	padding: 8px 12px;
	border-radius: 8px;
	font-weight: 550;
}
.hd-nav-group summary::-webkit-details-marker { display: none; }
.hd-nav-group summary::marker { content: ''; }
.hd-nav-group summary:hover,
.hd-nav-group.is-current > summary { color: #fff; }
.hd-nav-group summary:hover { background: rgba(255,255,255,0.12); }
.hd-nav-group.is-current > summary { font-weight: 650; }
.hd-nav-group summary:focus-visible { outline: 2px solid rgba(255,255,255,0.7); outline-offset: 2px; }
.hd-gear { width: 16px; height: 16px; flex: none; }
.hd-chevron { width: 14px; height: 14px; margin-left: auto; flex: none; opacity: 0.7; transition: transform 0.15s ease; }
.hd-nav-group[open] > summary .hd-chevron { transform: rotate(90deg); }
.hd-nav-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 4px; padding-left: 22px; }
.hd-nav-sub a { padding: 6px 12px; font-size: 0.92rem; }
.hd-sidebar-foot { margin-top: auto; flex-shrink: 0; display: flex; justify-content: space-between; gap: 8px; padding: 12px 4px 0; font-size: 0.88rem; border-top: 1px solid rgba(255,255,255,0.1); }
.hd-sidebar-foot a { color: rgba(247,248,250,0.8); text-decoration: none; }

.hd-main { flex: 1; min-width: 0; }
.hd-topbar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 24px;
	position: sticky;
	top: 0;
	background: var(--hd-card);
	border-bottom: 1px solid var(--hd-line);
	z-index: 2;
}
.hd-nav-toggle { display: none; background: transparent; border: 1px solid var(--hd-line); border-radius: 8px; padding: 6px 10px; }
.hd-search { flex: 1; }
.hd-search input, .hd-filters input, .hd-filters select, .hd-form input, .hd-form select, .hd-form textarea, .hd-composer textarea {
	width: 100%;
	background: var(--hd-card);
	border: 1px solid var(--hd-line);
	border-radius: 8px;
	padding: 10px 12px;
}
.hd-search input:focus, .hd-form input:focus, .hd-form textarea:focus, .hd-composer textarea:focus { outline: 2px solid var(--hd-brand); border-color: transparent; }
.hd-alerts { position: relative; flex: none; }
.hd-bell { text-decoration: none; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.hd-bell-icon { width: 16px; height: 16px; flex: none; }
button.hd-bell { background: transparent; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
button.hd-bell:focus-visible { outline: 2px solid var(--hd-brand); outline-offset: 3px; border-radius: 6px; }
.hd-bell span { background: var(--hd-amber); color: white; border-radius: 99px; min-width: 1.3rem; text-align: center; font-size: 0.8rem; padding: 0 6px; font-weight: 650; }
.hd-alerts-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: min(320px, calc(100vw - 32px));
	background: var(--hd-card);
	border: 1px solid var(--hd-line);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(23, 26, 33, 0.16);
	z-index: 6;
	padding-top: 4px;
}
.hd-alerts-panel .hd-activity { margin: 0; padding: 0 14px; }
.hd-alerts-panel .hd-activity a,
.hd-alerts-panel .hd-activity span { color: inherit; text-decoration: none; }
.hd-alerts-panel .hd-activity a:hover { color: var(--hd-brand); }
.hd-alerts-panel li.is-unread > a,
.hd-alerts-panel li.is-unread > span { font-weight: 650; }
.hd-alerts-panel li small { font-weight: 450; }
.hd-alerts-empty { margin: 12px 14px; }
.hd-alerts-all {
	display: block;
	margin-top: 4px;
	padding: 10px 14px;
	border-top: 1px solid var(--hd-line);
	text-align: center;
	text-decoration: none;
	font-weight: 650;
	color: var(--hd-brand);
}
.hd-alerts-all:hover { background: var(--hd-paper); border-radius: 0 0 12px 12px; }
.hd-content { padding: 20px 24px 48px; }

.hd-page-head, .hd-composer-bar, .hd-bulk { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.hd-merge { position: relative; display: flex; gap: 8px; align-items: center; flex: 1; min-width: 260px; }
.hd-merge input[type="search"] { flex: 1; min-width: 0; }
.hd-merge-results { position: absolute; top: calc(100% + 4px); left: 0; right: 72px; z-index: 5; background: var(--hd-card); border: 1px solid var(--hd-line); border-radius: 10px; box-shadow: var(--shadow); max-height: 240px; overflow: auto; }
.hd-merge-results button { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--hd-line); padding: 8px 10px; cursor: pointer; color: inherit; }
.hd-merge-results button:last-child { border-bottom: 0; }
.hd-merge-results button:hover { background: var(--hd-paper); }
.hd-merge-results small { display: block; color: var(--hd-muted); }
.hd-merge-results p { margin: 0; padding: 8px 10px; }
.hd-composer-bar .hd-button { margin-left: auto; }
.hd-page-head { margin-bottom: 18px; }
.hd-kicker { margin: 0 0 4px; color: var(--hd-muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; font-weight: 650; }
.hd-kicker a { color: inherit; text-decoration: none; }
.hd-muted { color: var(--hd-muted); }
.hd-card {
	background: var(--hd-card);
	border: 1px solid var(--hd-line);
	border-radius: 12px;
	padding: 16px;
	box-shadow: var(--shadow);
	margin-bottom: 16px;
}
.hd-button, button.hd-button {
	background: var(--hd-brand);
	color: white;
	border: 0;
	border-radius: 8px;
	padding: 8px 14px;
	text-decoration: none;
	cursor: pointer;
	font-weight: 640;
}
.hd-button-quiet { background: var(--hd-card); color: var(--hd-ink); border: 1px solid var(--hd-line); }
.hd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.hd-stats article { background: var(--hd-card); border: 1px solid var(--hd-line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.hd-stats span { color: var(--hd-muted); display: block; font-size: 0.82rem; }
.hd-stats strong { font-size: 1.7rem; letter-spacing: -0.03em; }
.hd-split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 16px; }
.hd-stack { display: flex; flex-direction: column; gap: 0; }
.hd-activity { list-style: none; margin: 0; padding: 0; }
.hd-activity li { padding: 10px 0; border-top: 1px solid var(--hd-line); display: flex; flex-direction: column; gap: 2px; }
.hd-activity li:first-child { border-top: 0; }
.hd-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hd-filters input, .hd-filters select { width: auto; min-width: 140px; flex: 1; }
.hd-list { display: flex; flex-direction: column; gap: 8px; }
.hd-ticket-row { display: flex; gap: 10px; align-items: flex-start; background: var(--hd-card); border: 1px solid var(--hd-line); border-radius: 10px; padding: 12px 14px; }
.hd-ticket-row:hover { border-color: color-mix(in srgb, var(--hd-ink) 18%, var(--hd-line)); }
.hd-ticket-row a { text-decoration: none; color: inherit; flex: 1; }
.hd-ticket-top, .hd-ticket-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hd-ticket-meta { color: var(--hd-muted); font-size: 0.92rem; margin-top: 4px; }
.hd-pill { display: inline-flex; align-items: center; flex: none; width: max-content; border-radius: 999px; padding: 2px 8px; font-size: 0.72rem; font-weight: 650; background: color-mix(in srgb, var(--hd-ink) 8%, var(--hd-card)); }
.hd-pill-open { background: #d9efe8; color: #0f5c4e; }
.hd-pill-customer_reply { background: #efe0f5; color: #6b2d86; }
.hd-pill-answered { background: #d9e4f2; color: #1d3f6e; }
.hd-pill-pending { background: #f8e7cf; color: #8a4b10; }
.hd-pill-closed { background: #eceae6; color: #5c564e; }
.hd-pill-merged { background: #e7e4f2; color: #3d3566; }
.hd-pill-expired { background: #efe6d8; color: #6d5a3c; }
.hd-pill-urgent, .hd-pill-high { background: #f8d6d2; color: #8d241d; }
.hd-pill-low { background: #eceae6; }

.hd-service-list { list-style: none; margin: 0; padding: 0; }
.hd-service-line { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; }
.hd-service-line + .hd-service-line { border-top: 1px solid var(--hd-line); }
.hd-service-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hd-service-name { min-width: 0; }
.hd-service-updated { color: var(--hd-muted); font-size: 0.72rem; line-height: 1.3; }
.hd-service-state { color: var(--hd-muted); font-size: 0.82rem; margin-top: 1px; }
.hd-status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	flex: none;
	background: currentColor;
	margin-top: 6px;
	animation: hd-status-pulse 1.8s ease-out infinite;
}
.hd-status-active { color: #1b9e5a; }
.hd-status-pending { color: #1a73d8; }
.hd-status-suspended { color: #d35400; }
.hd-status-terminated { color: #c0392b; }
@keyframes hd-status-pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); }
	70% { box-shadow: 0 0 0 7px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}

.hd-ticket { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto; grid-template-areas: "thread meta"; gap: 16px; align-items: start; }
.hd-side { grid-area: meta; display: flex; flex-direction: column; gap: 16px; }
.hd-side .hd-card { margin-bottom: 0; }
.hd-thread { grid-area: thread; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hd-messages { overflow: visible; }
.hd-message { border: 1px solid var(--hd-line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: var(--hd-card); min-width: 0; }
.hd-message.hd-side-customer,
.hd-message.hd-side-brand { max-width: 75%; }
.hd-message.hd-side-customer { margin-right: auto; }
.hd-message.hd-side-brand { margin-left: auto; }
.hd-message.hd-side-brand.hd-message-reply { background: color-mix(in srgb, var(--hd-reply, var(--hd-brand)) 10%, var(--hd-card)); }
.hd-message-body { max-width: 100%; overflow-wrap: anywhere; }
.hd-message-body img { max-width: 100%; height: auto; }
.hd-message header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.hd-message header span, .hd-message header em { color: var(--hd-muted); font-style: normal; font-size: 0.85rem; }
.hd-message-note { background: #fbf3e4; border-color: #efd7b0; }
.hd-message-system { background: transparent; border-style: dashed; color: var(--hd-muted); }
.hd-message-body :first-child { margin-top: 0; }
.hd-message-body ul, .hd-message-body ol { margin: 0.4em 0 0.4em 1.2em; }
.hd-message-body p { margin: 0 0 1em; line-height: 1.5; }
.hd-message-body p:empty::before { content: "\00a0"; }
.hd-warning, .hd-form-error, .hd-banner { background: #f8e4e1; color: var(--hd-danger); border-radius: 10px; padding: 8px 10px; }
.hd-license-note { border-radius: 10px; padding: 8px 10px; }
.hd-license-note.is-bad { background: #f8e4e1; color: var(--hd-danger); }
.hd-license-note.is-ok { background: #e5f3ee; color: var(--hd-ok); }
.hd-banner { margin-bottom: 12px; }
.hd-delivery { font-size: 0.85rem; color: var(--hd-muted); }
.hd-delivery-permanent_failure, .hd-delivery-complaint, .hd-delivery-temporary_failure { color: var(--hd-danger); }
.hd-delivery button, .hd-activity button, .hd-files button { background: none; border: 0; color: var(--hd-brand); cursor: pointer; padding: 0; }
.hd-composer { position: static; flex: 0 0 auto; margin: 0; background: var(--hd-card); border: 1px solid var(--hd-line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); }
.hd-composer .wp-editor-wrap { max-width: 100%; }
.hd-composer .wp-editor-tools { margin-bottom: 0; }
.hd-composer .hd-note-body { display: none; min-height: 180px; resize: vertical; }
.hd-composer.is-note .wp-editor-wrap { display: none; }
.hd-composer.is-note .hd-note-body { display: block; }
.hd-composer.is-note .hd-file-label,
.hd-composer.is-note [data-reply-files] { display: none; }
.hd-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.hd-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 6px 2px; cursor: pointer; }
.hd-tabs button.is-active { border-color: var(--hd-brand); font-weight: 700; }
.hd-side .hd-card h2:not(:first-child) { margin-top: 1.25rem; }
.hd-side .hd-card label { display: block; margin-top: 8px; font-size: 0.85rem; color: var(--hd-muted); }
.hd-side select, .hd-form select { width: 100%; }
.hd-message-files { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 12px; }
.hd-message-files a, .hd-message-files span { overflow-wrap: anywhere; }
.hd-files { list-style: none; padding: 0; margin: 8px 0 12px; }
.hd-files li { display: flex; flex-direction: column; padding: 6px 0; }
.hd-form label { display: block; margin: 10px 0 4px; font-size: 0.92rem; }
.hd-colors { display: flex; gap: 16px; flex-wrap: wrap; }
.hd-colors label { flex: 1 1 140px; }
.hd-form input[type="color"] {
	width: 100%;
	height: 42px;
	padding: 4px;
	background: transparent;
	cursor: pointer;
}
.hd-form input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.hd-form input[type="color"]::-webkit-color-swatch,
.hd-form input[type="color"]::-moz-color-swatch {
	border: 0;
	border-radius: 6px;
}
.hd-code { display: block; white-space: pre-wrap; background: var(--hd-paper); padding: 10px; border-radius: 8px; }
.hd-table { width: 100%; border-collapse: collapse; background: var(--hd-card); }
.hd-table th, .hd-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hd-line); }
.hd-table th { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--hd-muted); font-weight: 650; background: color-mix(in srgb, var(--hd-ink) 3%, var(--hd-card)); }
.hd-table tr:last-child td { border-bottom: 0; }
.hd-table-wrap { overflow-x: auto; border: 1px solid var(--hd-line); border-radius: 12px; background: var(--hd-card); }
.hd-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.hd-brand-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; background: var(--hd-card); border: 1px solid var(--hd-line); border-top: 4px solid var(--card, var(--hd-brand)); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.hd-logo { max-width: 160px; max-height: 64px; object-fit: contain; }
.hd-gate .hd-logo { display: block; }
.hd-affix { display: flex; align-items: stretch; max-width: 100%; }
.hd-affix input { flex: 1; width: 1%; border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 8rem; }
.hd-affix span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--hd-line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--hd-paper); color: var(--hd-muted); white-space: nowrap; }
.hd-html-toolbar { display: flex; gap: 6px; margin-bottom: 6px; }
.hd-html-toolbar button { background: var(--hd-paper); border: 1px solid var(--hd-line); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.hd-html-editor { min-height: 140px; border: 1px solid var(--hd-line); border-radius: 10px; padding: 10px 12px; background: var(--hd-card); }
.hd-register { width: min(640px, 100%); }
.hd-signin { text-align: center; color: var(--hd-muted); }
.hd-progress { height: 8px; background: color-mix(in srgb, var(--hd-ink) 8%, var(--hd-card)); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.hd-progress span { display: block; height: 100%; width: 0; background: var(--hd-brand); transition: width 0.15s linear; }
.hd-signature-block { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hd-line); }
.hd-signature-preview { margin-top: 8px; padding: 4px 2px 8px; }
.hd-empty { padding: 24px; text-align: center; color: var(--hd-muted); }
.hd-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.hd-narrow { width: min(420px, 100%); }
.hd-login { display: flex; flex-direction: column; }
.hd-login h1 { margin: 12px 0 4px; }
.hd-quiet { margin-top: 12px; font-size: 0.92rem; }
.hd-drop { width: min(560px, 100%); }
.hd-read { width: min(760px, 100%); }
.hd-read .hd-messages { margin-top: 16px; }
.hd-read-note { color: var(--hd-muted); }
.hd-read-code { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--hd-paper); border-radius: 8px; padding: 10px; }
.hd-drop .hd-tabs { margin: 16px 0 12px; }
.hd-drop textarea, .hd-drop select { width: 100%; box-sizing: border-box; font: inherit; }
.hd-drop textarea { min-height: 140px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hd-code-box { position: relative; margin-top: 10px; }
.hd-secret-box { display: grid; gap: 8px; justify-items: start; margin-top: 10px; }
.hd-secret-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hd-secret-actions[hidden] { display: none; }
.hd-code-box pre, .hd-secret-box pre { margin: 0; width: 100%; box-sizing: border-box; padding: 12px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--hd-paper); border: 1px solid var(--hd-line); border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; }
.hd-code-box pre { padding-top: 34px; }
.hd-code-copy { position: absolute; top: 6px; right: 8px; z-index: 1; cursor: pointer; color: var(--hd-ink); background: var(--hd-card); border: 1px solid var(--hd-line); border-radius: 0.5em; padding: 2px 7px; font-size: 12px; line-height: 1.4; font-weight: 640; }
.hd-code-copy:hover { background: var(--hd-paper); }
.hd-tok-comment { color: var(--hd-muted); font-style: italic; }
.hd-tok-string { color: #8a4b12; }
.hd-tok-keyword { color: var(--hd-brand); font-weight: 650; }
.hd-tok-name { color: #1a4f8b; }
.hd-tok-attr { color: #6b4c2a; }
.hd-tok-number { color: var(--hd-danger); }
.hd-tok-tag { color: #1a4f8b; }
.hd-drop-live { display: grid; gap: 4px; margin-top: 10px; }
.hd-drop-live small { color: var(--hd-muted); }
.hd-drop-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hd-drop-tail { font-variant-numeric: tabular-nums; }
.hd-dropzone { display: grid; place-items: center; min-height: 140px; border: 1.5px dashed var(--hd-line); border-radius: 12px; background: var(--hd-paper); cursor: pointer; text-align: center; padding: 16px; }
.hd-dropzone input { display: none; }
.hd-dropzone.is-over { border-color: var(--hd-brand); background: #eef6f3; }
.hd-file-list { list-style: none; padding: 0; }
.hd-success { color: var(--hd-ok); font-weight: 700; }
.hd-check { padding-top: 4px; }
.hd-form label.hd-check { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.hd-notify { border: 0; margin: 16px 0 0; padding: 0; }
.hd-notify legend { font-weight: 700; }

@media (max-width: 960px) {
	.hd-stats, .hd-split, .hd-side { grid-template-columns: 1fr; }
	.hd-ticket { grid-template-columns: 1fr; grid-template-areas: "thread" "meta"; }
	.hd-sidebar { position: fixed; z-index: 5; transform: translateX(-105%); transition: transform 0.2s ease; }
	body.nav-open .hd-sidebar { transform: none; }
	.hd-nav-toggle { display: inline-flex; }
	.hd-content, .hd-topbar { padding-left: 16px; padding-right: 16px; }
}

.hd-success-check {
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 1000;
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--hd-card);
	color: var(--hd-brand);
	box-shadow: 0 18px 48px rgba(23, 26, 33, 0.18);
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, -50%);
}
.hd-success-check svg { width: 48px; height: 48px; }
.hd-success-check path {
	fill: none;
	stroke: currentColor;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 36;
	stroke-dashoffset: 36;
}
.hd-success-check.is-on { animation: hd-success-life 1100ms ease forwards; }
.hd-success-check.is-on path { animation: hd-success-draw 340ms ease 160ms forwards; }
.hd-success-check.is-pending {
	opacity: 1;
	animation: none;
}
.hd-success-check.is-pending svg,
.hd-success-check.is-done .hd-loader,
.hd-success-check.is-on .hd-loader {
	display: none !important;
}
.hd-success-check.is-done { animation: hd-success-hold 1100ms ease forwards; }
.hd-success-check.is-done path { animation: hd-success-draw 340ms ease forwards; }
.hd-loader {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	display: block;
	color: #17bacd;
	box-shadow:
		19px -19px 0 0, 38px -19px 0 0, 57px -19px 0 0,
		19px 0 0 5px, 38px 0 0 5px, 57px 0 0 5px,
		19px 19px 0 0, 38px 19px 0 0, 57px 19px 0 0;
	transform: translateX(-38px);
	animation: hd-loader-grid 2s infinite linear;
}

@keyframes hd-success-life {
	0% { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
	14% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	75% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
@keyframes hd-success-draw {
	to { stroke-dashoffset: 0; }
}
@keyframes hd-success-fade {
	0% { opacity: 0; transform: translate(-50%, -50%); }
	15% { opacity: 1; }
	80% { opacity: 1; }
	100% { opacity: 0; }
}
@keyframes hd-success-hold {
	0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
@keyframes hd-loader-grid {
	12.5% { box-shadow:
		19px -19px 0 0, 38px -19px 0 0, 57px -19px 0 5px,
		19px 0 0 5px, 38px 0 0 0, 57px 0 0 5px,
		19px 19px 0 0, 38px 19px 0 0, 57px 19px 0 0; }
	25% { box-shadow:
		19px -19px 0 5px, 38px -19px 0 0, 57px -19px 0 5px,
		19px 0 0 0, 38px 0 0 0, 57px 0 0 0,
		19px 19px 0 0, 38px 19px 0 5px, 57px 19px 0 0; }
	50% { box-shadow:
		19px -19px 0 5px, 38px -19px 0 5px, 57px -19px 0 0,
		19px 0 0 0, 38px 0 0 0, 57px 0 0 0,
		19px 19px 0 0, 38px 19px 0 0, 57px 19px 0 5px; }
	62.5% { box-shadow:
		19px -19px 0 0, 38px -19px 0 0, 57px -19px 0 0,
		19px 0 0 5px, 38px 0 0 0, 57px 0 0 0,
		19px 19px 0 0, 38px 19px 0 5px, 57px 19px 0 5px; }
	75% { box-shadow:
		19px -19px 0 0, 38px -19px 0 5px, 57px -19px 0 0,
		19px 0 0 0, 38px 0 0 0, 57px 0 0 5px,
		19px 19px 0 0, 38px 19px 0 0, 57px 19px 0 5px; }
	87.5% { box-shadow:
		19px -19px 0 0, 38px -19px 0 5px, 57px -19px 0 0,
		19px 0 0 0, 38px 0 0 5px, 57px 0 0 0,
		19px 19px 0 5px, 38px 19px 0 0, 57px 19px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
	.hd-success-check.is-on { animation: hd-success-fade 1000ms ease forwards; }
	.hd-success-check.is-on path,
	.hd-success-check.is-done path { animation: none; stroke-dashoffset: 0; }
	.hd-success-check.is-done { animation: hd-success-hold 1000ms ease forwards; }
	.hd-loader { animation: none; }
	.hd-status-dot { animation: none; }
}
