@font-face {
	font-family: 'Pretendard';
	font-weight: 45 920;
	font-style: normal;
	font-display: swap;
	src: url('/pretendard-variable.woff2') format('woff2');
}
:root {
	font-family:
		'Pretendard',
		-apple-system,
		BlinkMacSystemFont,
		'Apple SD Gothic Neo',
		'Noto Sans KR',
		sans-serif;
	font-synthesis: none;
	font-size: 14px;
	color: #111827;
	background: #f9fafb;
	--primary: #2563eb;
	--primary-hover: #1d4ed8;
	--line: #e5e7eb;
	--muted: #6b7280;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
}
button,
input,
select,
textarea {
	font: inherit;
}
button,
a,
input,
select,
textarea {
	touch-action: manipulation;
}
button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-radius: 16px;
	background: var(--primary);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
	box-shadow:
		0 1px 2px #0f172a14,
		0 10px 24px #2563eb2e;
	transition:
		background-color 0.15s,
		border-color 0.15s,
		color 0.15s,
		box-shadow 0.15s,
		transform 0.15s;
}
button:hover {
	background: var(--primary-hover);
	box-shadow:
		0 1px 2px #0f172a14,
		0 14px 28px #2563eb38;
}
button:active {
	transform: scale(0.99);
}
button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
}
button svg {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	pointer-events: none;
}
.secondary {
	background: #fff;
	border-color: var(--line);
	color: #374151;
	box-shadow: 0 1px 2px #0f172a0a;
}
.secondary:hover {
	background: #f3f4f6;
	border-color: #d1d5db;
	box-shadow: 0 1px 2px #0f172a0a;
}
.ghost {
	background: none;
	border-color: transparent;
	color: #6b7280;
	box-shadow: none;
}
.ghost:hover {
	background: #f3f4f6;
	color: #111827;
	box-shadow: none;
}
.danger {
	background: #fff;
	border-color: #fecaca;
	color: #b91c1c;
	box-shadow: none;
}
.danger:hover {
	background: #fef2f2;
	border-color: #fca5a5;
	box-shadow: none;
}
.small {
	min-height: 36px;
	border-radius: 12px;
	padding: 7px 12px;
	font-size: 12px;
}
a {
	color: var(--primary);
	text-underline-offset: 4px;
}
.app-shell {
	min-height: 100svh;
}
.app-shell.with-sidebar {
	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
}
.workspace {
	min-width: 0;
}
header {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 76px;
	padding: 0 28px;
	border-bottom: 1px solid var(--line);
	background: #fff;
}
.brand,
.sidebar-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #111827;
	text-decoration: none;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.6px;
}
.brand > span:last-child {
	display: flex;
	align-items: center;
	gap: 14px;
}
.brand small {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	color: #6b7280;
	border-left: 1px solid var(--line);
	padding-left: 14px;
}
.brand-icon {
	display: flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: var(--primary);
	color: white;
	box-shadow: 0 4px 12px #2563eb24;
}
.brand-icon svg {
	width: 22px;
	height: 22px;
}
.breadcrumb {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: #6b7280;
}
.breadcrumb svg {
	width: 14px;
	height: 14px;
	color: #cbd5e1;
}
.breadcrumb strong {
	font-weight: 500;
	color: #374151;
}
.account {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 13px;
	color: #6b7280;
}
.account button {
	min-height: 36px;
	font-size: 12px;
	border-radius: 12px;
	padding: 7px 12px;
}
.account-name {
	padding-left: 4px;
}
.sidebar {
	position: sticky;
	top: 0;
	height: 100svh;
	background: #f7f9fc;
	border-right: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	padding: 24px 16px 16px;
	min-width: 0;
}
.sidebar-brand {
	font-size: 18px;
	gap: 10px;
	padding: 0 8px 24px;
}
.sidebar-brand small {
	display: block;
	margin-top: 4px;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 1.4px;
	color: #94a3b8;
}
.workspace-company {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 12px;
	margin: 0 2px 28px;
	background: white;
	border: 1px solid #e5eaf1;
	border-radius: 12px;
	box-shadow: 0 1px 2px #0f172a04;
}
.workspace-company strong {
	font-size: 13px;
	font-weight: 600;
	display: block;
}
.workspace-company small {
	font-size: 11px;
	display: block;
	color: #94a3b8;
	margin-top: 4px;
}
.company-avatar,
.avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: #eff6ff;
	color: #2563eb;
	font-weight: 600;
	font-size: 13px;
}
.nav-label {
	font-size: 11px;
	color: #94a3b8;
	margin: 0 12px 10px;
}
.side-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.side-nav button {
	justify-content: flex-start;
	width: 100%;
	min-height: 44px;
	padding: 11px 12px;
	background: none;
	box-shadow: none;
	color: #64748b;
	border: 0;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 500;
	text-align: left;
}
.side-nav button:hover {
	background: #fff;
	color: #0f172a;
}
.side-nav button.active {
	background: #fff;
	color: #1d4ed8;
	font-weight: 600;
	box-shadow: 0 1px 4px #0f172a0a;
}
.side-nav svg {
	color: #94a3b8;
	width: 18px;
	height: 18px;
	margin-right: 4px;
}
.side-nav button.active svg {
	color: #3b82f6;
}
.menu-count {
	font-size: 11px;
	padding: 2px 6px;
	background: #eff6ff;
	color: #2563eb;
	border-radius: 5px;
	line-height: 1.4;
	margin-left: auto;
}
.sidebar-footer {
	margin-top: auto;
	border-top: 1px solid #e2e8f0;
	padding: 18px 8px 2px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.sidebar-footer strong {
	font-size: 12px;
	font-weight: 500;
	display: block;
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sidebar-footer small {
	font-size: 11px;
	color: #94a3b8;
	display: block;
	margin-top: 4px;
}
.avatar {
	border-radius: 50%;
	background: #e9eef5;
	color: #64748b;
}
main {
	max-width: 1280px;
	margin: 0 auto;
	padding: 28px 28px 64px;
}
.with-sidebar main {
	max-width: 1520px;
}
h1 {
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.8px;
	line-height: 1.3;
	margin: 0 0 8px;
}
h2 {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.4px;
	margin: 0 0 16px;
}
h3 {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 12px;
}
p {
	line-height: 1.7;
	margin: 8px 0;
}
.muted {
	color: var(--muted);
	font-size: 13px;
	font-weight: 400;
}
.toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.toolbar form {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	width: 360px;
	max-width: 100%;
	gap: 8px;
}
.toolbar form input {
	min-width: 0;
	flex: 1;
}
.toolbar form button {
	flex-shrink: 0;
}
.page-heading {
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}
.page-heading p {
	margin: 0;
	line-height: 1.65;
}
.record-count {
	font-size: 12px;
	color: #6b7280;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 7px 10px;
	white-space: nowrap;
}
.tabs {
	display: flex;
	gap: 6px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 28px;
	padding-bottom: 12px;
	overflow-x: auto;
}
.tabs button {
	white-space: nowrap;
	box-shadow: none;
	background: transparent;
	border: 0;
	color: #6b7280;
	border-radius: 10px;
	font-weight: 500;
	padding: 10px 16px;
	min-height: 40px;
}
.tabs button:hover {
	background: #f3f4f6;
	color: #374151;
}
.tabs button.active {
	background: #eff6ff;
	color: #2563eb;
	font-weight: 600;
}
.tabs svg {
	width: 17px;
	height: 17px;
}
.sheet {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 24px;
	min-width: 0;
	box-shadow: 0 1px 2px #0f172a04;
}
.entry {
	max-width: 440px;
	margin: 64px auto;
	padding: 32px;
}
.entry h1 {
	font-size: 26px;
	margin-top: 16px;
}
.entry form {
	margin-top: 28px;
}
.entry > p.muted:first-child {
	font-size: 12px;
	font-weight: 500;
	color: var(--primary);
}
.sync-panel {
	max-width: 720px;
	margin: 0 auto;
}
.sync-panel h1 {
	font-size: 22px;
}
.sync-panel form {
	margin-top: 24px;
}
.grid {
	display: grid;
	grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.7fr);
	gap: 24px;
	align-items: start;
}
.conversation-workspace {
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 20px;
}
.list {
	list-style: none;
	padding: 0;
	margin: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
}
.list button {
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	border-bottom: 1px solid #f1f5f9;
	border-left: 3px solid transparent;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: inherit;
	padding: 16px 14px;
	font-weight: 400;
}
.list li:last-child button {
	border-bottom: 0;
}
.list button:hover {
	background: #f9fafb;
}
.list button.selected {
	background: #eff6ff;
	border-left-color: #2563eb;
}
.list strong {
	font-size: 13px;
	font-weight: 600;
}
.list p {
	font-size: 12px;
	line-height: 1.6;
	margin: 6px 0 0;
	overflow-wrap: anywhere;
}
.row {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}
.between {
	justify-content: space-between;
}
.stack {
	display: grid;
	gap: 16px;
}
label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 8px;
	color: #374151;
}
input,
select,
textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	padding: 10px 12px;
	color: #111827;
	min-height: 40px;
	line-height: 1.5;
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}
input::placeholder,
textarea::placeholder {
	color: #9ca3af;
}
input:hover,
select:hover,
textarea:hover {
	border-color: #cbd5e1;
}
input[type='checkbox'] {
	width: 17px;
	height: 17px;
	min-height: 17px;
	accent-color: var(--primary);
	flex-shrink: 0;
	margin: 3px 0 0;
}
input[type='number'] {
	appearance: textfield;
}
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
textarea {
	resize: vertical;
	min-height: 108px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 3px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	border-color: #93c5fd;
}
.check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.7;
	margin: 12px 0;
	color: #4b5563;
}
.field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.table-scroll {
	overflow-x: auto;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
}
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	white-space: nowrap;
}
th {
	text-align: left;
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
	background: #f9fafb;
	padding: 13px 16px;
	border-bottom: 1px solid var(--line);
}
td {
	padding: 16px;
	border-bottom: 1px solid #f1f5f9;
	color: #374151;
}
tr:last-child td {
	border-bottom: 0;
}
tbody tr:hover {
	background: #fafbff;
}
td strong {
	font-weight: 500;
	color: #111827;
}
td.wrap {
	white-space: normal;
	min-width: 170px;
	max-width: 320px;
}
dl {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin: 20px 0;
	padding: 18px;
	background: #f9fafb;
	border-radius: 8px;
}
dt {
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 6px;
}
dd {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	overflow-wrap: anywhere;
}
.wide {
	grid-column: 1/-1;
}
.status {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	font-size: 11px;
	font-weight: 500;
	border-radius: 6px;
	padding: 3px 7px;
	background: #eff6ff;
	color: #1d4ed8;
	white-space: nowrap;
}
.status[data-status='HOLD'],
.status[data-status='NEEDS_REVIEW'] {
	background: #fffbeb;
	color: #a16207;
}
.status[data-status='COMPLETED'] {
	background: #ecfdf5;
	color: #047857;
}
.status[data-status='REJECTED'] {
	background: #fef2f2;
	color: #b91c1c;
}
.body {
	white-space: pre-wrap;
	font-size: 13px;
	line-height: 1.8;
	overflow-wrap: anywhere;
}
.messages {
	list-style: none;
	padding: 0;
	margin: 24px 0;
}
.messages li {
	padding: 16px 0;
	border-top: 1px solid #f1f5f9;
}
.messages .meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 11px;
	color: #9ca3af;
	margin-bottom: 8px;
}
.messages .meta strong {
	color: #4b5563;
	font-weight: 500;
}
.reply {
	border-top: 1px solid var(--line);
	padding-top: 22px;
}
.reply select {
	width: auto;
	min-width: 150px;
}
.reply .row {
	justify-content: flex-end;
}
.action {
	border-top: 1px solid var(--line);
	padding-top: 24px;
	margin-top: 28px;
}
.action h2 {
	font-size: 16px;
}
.action .amount {
	font-size: 23px;
	font-weight: 600;
	color: #1d4ed8;
	margin: 18px 0;
}
.empty {
	padding: 56px 16px;
	text-align: center;
	color: #9ca3af;
	font-size: 13px;
	line-height: 1.8;
}
.note {
	border-left: 3px solid #93c5fd;
	padding: 4px 0 4px 12px;
	color: #64748b;
	font-size: 12px;
	line-height: 1.8;
}
.link-result {
	margin: 24px 0 0;
	padding: 20px;
	background: #eff6ff;
	border: 1px solid #dbeafe;
	border-radius: 10px;
	overflow-wrap: anywhere;
}
.link-result h3 {
	color: #1e40af;
}
.link-result button {
	margin-top: 12px;
}
.pager {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 14px;
	margin: 18px 0 24px;
	font-size: 12px;
	color: #6b7280;
}
.pager button {
	min-height: 36px;
	border-radius: 10px;
	font-size: 12px;
}
.loading {
	margin: 80px auto;
	text-align: center;
	color: var(--muted);
}
#toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 20;
	max-width: min(520px, calc(100vw - 32px));
	background: #fff;
	color: #374151;
	border: 1px solid var(--line);
	border-left: 3px solid #2563eb;
	border-radius: 10px;
	padding: 16px 20px;
	box-shadow: 0 12px 40px #0f172a1a;
	font-size: 13px;
	line-height: 1.65;
	animation: appear 0.15s ease;
}
#toast.error {
	border-left-color: #ef4444;
	color: #991b1b;
}
@keyframes appear {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
[hidden] {
	display: none !important;
}
button.block {
	width: 100%;
}
details {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}
summary {
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	padding: 8px 0;
}
details form {
	margin: 18px 0;
}
footer {
	font-size: 12px;
	line-height: 1.8;
	color: #9ca3af;
	margin-top: 32px;
}
@media (min-width: 961px) {
	.conversation-workspace > .list {
		position: sticky;
		top: 100px;
		max-height: calc(100svh - 124px);
		overflow: auto;
	}
	.with-sidebar header .refresh span {
		display: inline;
	}
}
@media (max-width: 1100px) {
	.conversation-workspace {
		grid-template-columns: 240px minmax(0, 1fr);
	}
	.with-sidebar main {
		padding: 24px 20px 48px;
	}
	.account-name {
		display: none;
	}
}
@media (max-width: 960px) {
	.app-shell.with-sidebar {
		display: flex;
		flex-direction: column;
	}
	.with-sidebar > .workspace {
		display: contents;
	}
	.with-sidebar header {
		order: 0;
	}
	.sidebar {
		position: static;
		order: 1;
		height: auto;
		width: 100%;
		padding: 10px 16px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
		background: #fff;
	}
	.sidebar-brand,
	.workspace-company,
	.nav-label,
	.sidebar-footer {
		display: none;
	}
	.side-nav {
		flex-direction: row;
		overflow-x: auto;
		gap: 6px;
	}
	.side-nav button {
		width: auto;
		white-space: nowrap;
		min-height: 40px;
		padding: 9px 12px;
	}
	.side-nav button.active {
		background: #eff6ff;
		box-shadow: none;
	}
	.side-nav svg {
		margin-right: 0;
	}
	.menu-count {
		margin-left: 4px;
	}
	.with-sidebar main {
		order: 2;
		width: 100%;
	}
	header {
		padding: 0 20px;
		height: 68px;
	}
	.conversation-workspace {
		grid-template-columns: 260px minmax(0, 1fr);
	}
}
@media (max-width: 720px) {
	.table-scroll th:last-child,
	.table-scroll td:last-child {
		position: sticky;
		right: 0;
		background: #fff;
		box-shadow: -1px 0 0 #e5e7eb;
		z-index: 1;
	}
	.table-scroll th:last-child {
		background: #f9fafb;
		z-index: 2;
	}
	.table-scroll .small {
		min-height: 44px;
	}
	header {
		gap: 12px;
		height: 72px;
		padding: 12px 16px;
	}
	.brand {
		font-size: 17px;
		gap: 9px;
	}
	.brand-icon {
		width: 32px;
		height: 32px;
		border-radius: 10px;
	}
	.brand-icon svg {
		width: 20px;
		height: 20px;
	}
	.brand > span:last-child {
		display: block;
	}
	.brand small {
		display: block;
		border: 0;
		padding: 0;
		margin-top: 4px;
		font-size: 11px;
	}
	.account {
		gap: 4px;
	}
	.account .refresh span,
	.account .logout span {
		display: none;
	}
	.account button {
		height: 36px;
		min-width: 36px;
		padding: 8px;
		border-radius: 10px;
	}
	.account .refresh::after {
		content: none;
	}
	.breadcrumb {
		gap: 8px;
		font-size: 12px;
	}
	.breadcrumb strong {
		max-width: 140px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	main,
	.with-sidebar main {
		padding: 22px 16px 48px;
	}
	h1 {
		font-size: 23px;
	}
	.toolbar {
		align-items: flex-start;
		margin-bottom: 20px;
		gap: 14px;
	}
	.toolbar form {
		width: 100%;
		flex-wrap: nowrap;
	}
	.toolbar form input {
		min-width: 0;
	}
	.toolbar form button {
		flex-shrink: 0;
	}
	.grid,
	.conversation-workspace {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.sheet {
		padding: 20px 16px;
	}
	.entry {
		margin: 24px auto;
		padding: 28px 22px;
	}
	.entry h1 {
		font-size: 25px;
	}
	.tabs {
		margin-bottom: 24px;
	}
	.tabs button {
		font-size: 13px;
		padding: 9px 13px;
	}
	.side-nav button {
		font-size: 12px;
		padding: 9px 10px;
	}
	.side-nav svg {
		width: 16px;
		height: 16px;
	}
	.menu-count {
		font-size: 10px;
	}
	.field-row {
		grid-template-columns: 1fr;
	}
	.conversation-workspace > .list {
		max-height: 240px;
		overflow: auto;
	}
	dl {
		gap: 16px 12px;
		padding: 14px;
	}
	input,
	select,
	textarea {
		font-size: 16px;
		min-height: 44px;
	}
	.check input {
		min-height: 17px;
	}
	.reply select {
		width: 100%;
	}
	.reply button {
		width: 100%;
	}
	#toast {
		left: 16px;
		right: 16px;
		bottom: 20px;
		max-width: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
	html {
		scroll-behavior: auto;
	}
}

.order-filters {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}
.order-filters input {
	flex: 1;
	min-width: 140px;
}
.order-filters select {
	width: 220px;
	max-width: 30%;
}
.order-filters button {
	flex-shrink: 0;
}
.table-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	max-width: 250px;
}
.table-actions button,
td > button {
	min-height: 36px;
	padding: 7px 10px;
	font-size: 12px;
	border-radius: 8px;
}
.selected-row {
	background: #eff6ff;
}
.partner-panel,
.order-detail,
.customer-preview {
	margin-top: 28px;
	scroll-margin-top: 100px;
}
.partner-panel .grid {
	grid-template-columns: 1fr 1fr;
}
.partner-panel .link-result {
	margin-top: 0;
}
.section-label {
	margin-top: 28px;
}
.intake-steps {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	gap: 12px 28px;
	padding: 0 0 20px;
	margin: 0 0 20px;
	border-bottom: 1px solid var(--line);
	color: #64748b;
	font-size: 12px;
}
.intake-steps b {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-right: 6px;
	background: #eaf1fc;
	border-radius: 6px;
	color: #2563eb;
	font-size: 11px;
}
.customer-preview {
	border: 1px solid #93c5fd;
	border-radius: 12px;
	overflow: hidden;
}
.preview-banner {
	background: #eff6ff;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.preview-banner p {
	font-size: 12px;
	margin-bottom: 0;
	color: #64748b;
}
.preview-banner button {
	flex-shrink: 0;
}
.preview-content {
	padding: 24px;
	background: #f9fafb;
}
.preview-content > .note {
	margin-bottom: 24px;
}
.collection-forms {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.collection-forms form {
	margin-top: 20px;
}
@media (max-width: 720px) {
	.order-filters {
		flex-wrap: wrap;
	}
	.order-filters select {
		width: calc(50% - 5px);
		max-width: none;
	}
	.order-filters input {
		width: calc(100% - 80px);
	}
	.partner-panel .grid,
	.collection-forms {
		grid-template-columns: 1fr;
	}
	.partner-table .table-actions {
		flex-direction: column;
		flex-wrap: nowrap;
	}
	.table-actions button {
		min-height: 44px;
	}
	.preview-banner {
		align-items: flex-start;
		flex-direction: column;
		padding: 16px;
	}
	.preview-content {
		padding: 16px;
	}
	.intake-steps {
		gap: 12px 16px;
	}
}

.intake-composer {
	max-width: 760px;
	margin: 0 auto;
	scroll-margin-top: 100px;
}
.intake-composer h1,
.customer-conversation h1 {
	font-size: 22px;
}
.order-context {
	margin-bottom: 20px;
	padding: 0 0 12px;
}
.order-context summary {
	color: #64748b;
	font-size: 12px;
}
.request-kinds {
	border: 0;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}
.request-kinds legend {
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 8px;
	color: #374151;
}
.request-kinds label {
	position: relative;
	margin: 0;
}
.request-kinds input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	min-height: 0;
}
.request-kinds span {
	display: grid;
	place-items: center;
	min-height: 44px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}
.request-kinds input:checked + span {
	border-color: #2563eb;
	color: #1d4ed8;
	background: #eff6ff;
}
.request-kinds input:focus-visible + span {
	outline: 2px solid #2563eb;
	outline-offset: 3px;
}
.chat-messages {
	list-style: none;
	padding: 0;
	margin: 20px 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.chat-messages li {
	max-width: 90%;
}
.chat-messages .from-customer {
	align-self: flex-end;
}
.chat-messages .from-staff {
	align-self: flex-start;
}
.chat-messages .meta {
	color: #6b7280;
	font-size: 11px;
	margin-bottom: 6px;
}
.chat-messages p {
	padding: 12px 16px;
	margin: 0;
	background: #f3f4f6;
	border-radius: 10px;
}
.chat-messages .from-customer p {
	background: #eff6ff;
	color: #1e3a8a;
}
@media (max-width: 720px) {
	.request-kinds {
		grid-template-columns: repeat(2, 1fr);
	}
	.chat-messages li {
		max-width: 96%;
	}
}

.entry .consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 13px;
	line-height: 1.6;
}
.entry .consent input {
	width: 16px;
	min-height: 16px;
	margin-top: 3px;
	flex-shrink: 0;
}
.entry .consent a {
	text-decoration: underline;
}
.entry > .secondary {
	margin-top: 16px;
	width: 100%;
}

/* OrderFlow support: inquiry list, official response and right-hand detail. */
.support-tabs {
	display: flex;
	gap: 24px;
	border-bottom: 1px solid #edf0f3;
	margin: 0 0 24px;
	overflow-x: auto;
}
.support-tabs button {
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	color: #8b95a1;
	padding: 12px 0;
	white-space: nowrap;
	box-shadow: none;
}
.support-tabs button[aria-current='page'] {
	border-bottom-color: #191f28;
	color: #191f28;
}
.support-tabs span {
	margin-left: 6px;
	font-size: 12px;
}
.support-rows {
	margin: 16px 0;
}
.support-row {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) auto 14px;
	gap: 20px;
	align-items: center;
	width: 100%;
	text-align: left;
	background: transparent;
	color: #333d4b;
	border: 0;
	border-bottom: 1px solid #edf0f3;
	border-radius: 0;
	padding: 24px 12px;
	box-shadow: none;
}
.support-row:hover {
	background: #f9fafb;
}
.support-row p {
	margin: 8px 0;
	color: #6b7684;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.support-row small,
.support-row time {
	color: #8b95a1;
	font-size: 12px;
}
.inquiry-state {
	display: inline-block;
	padding: 6px 8px;
	border-radius: 6px;
	background: #f2f4f6;
	color: #6b7684;
	font-size: 12px;
	white-space: nowrap;
	text-align: center;
}
.inquiry-state[data-inquiry-status='PENDING'] {
	background: #eaf3ff;
	color: #1b64da;
}
.inquiry-dialog {
	position: fixed;
	inset: 0 0 0 auto;
	margin: 0;
	width: min(800px, 100%);
	max-width: 100%;
	height: 100dvh;
	max-height: 100dvh;
	border: 0;
	padding: 24px 28px;
	color: #333d4b;
	background: #fff;
	overflow-y: auto;
}
.inquiry-dialog::backdrop {
	background: rgb(15 23 42 / 0.32);
}
.drawer-close {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
}
.support-section {
	border-top: 1px solid #edf0f3;
	padding: 24px 0;
}
.support-section h3 {
	margin: 0 0 14px;
	font-size: 15px;
}
.support-section p {
	line-height: 1.7;
}
.evidence-photos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.evidence-photos > div,
.evidence-photos > a {
	min-width: 0;
}
.evidence-photos img {
	display: block;
	width: 100%;
	max-height: 180px;
	object-fit: contain;
	background: #f2f4f6;
	margin: 8px 0;
}
.evidence-photos input {
	max-width: 100%;
	font-size: 12px;
}
.evidence-photos span {
	font-size: 12px;
}
.evidence-photos img[hidden] {
	display: none;
}
#refund-photos {
	border: 0;
	padding: 0;
}
#refund-photos legend {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
}
@media (max-width: 639px) {
	.support-row {
		grid-template-columns: 64px minmax(0, 1fr) 12px;
		gap: 12px;
		padding: 20px 0;
	}
	.support-row time {
		display: none;
	}
	.inquiry-dialog {
		padding: 16px;
	}
	.evidence-photos {
		grid-template-columns: 1fr;
	}
	.evidence-photos img {
		max-height: 220px;
	}
	.support-tabs {
		gap: 20px;
	}
	.support-tabs button {
		min-height: 44px;
	}
}

/* Orders are the primary operating surface; details stay beside the list. */
.with-sidebar button {
	border-radius: 8px;
	box-shadow: none;
}
.with-sidebar .support-tabs button {
	border-radius: 0;
}
.source-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
	font-size: 12px;
}
.source-bar > div {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.source-bar strong {
	font-weight: 600;
	font-size: 13px;
}
.source-bar span {
	color: #6b7280;
}
.source-dot {
	width: 7px;
	height: 7px;
	background: #2563eb;
	border-radius: 50%;
}
.source-dot.warning {
	background: #d97706;
}
.write-mode {
	padding-left: 16px;
	border-left: 1px solid var(--line);
	white-space: nowrap;
}
.collection-summary {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 0 20px;
	font-size: 12px;
	color: #6b7280;
}
.order-presence {
	margin-bottom: 18px;
}
.workbench-table {
	max-height: calc(100svh - 410px);
	min-height: 220px;
}
.workbench-table table {
	font-size: 12px;
}
.workbench-table thead {
	position: sticky;
	top: 0;
	z-index: 2;
}
.workbench-table td,
.workbench-table th {
	padding: 13px 12px;
}
.workbench-table td {
	vertical-align: top;
}
.workbench-table td.wrap {
	min-width: 120px;
	max-width: 260px;
}
.workbench-table small,
table small {
	display: block;
	color: #8b95a1;
	font-size: 11px;
	margin-top: 6px;
	line-height: 1.5;
	font-weight: 400;
}
.numeric {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.mono {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.1px;
}
.workbench-table .order-number {
	padding: 0;
	min-height: 20px;
	border: 0;
	background: transparent;
	color: #2563eb;
	font-size: 12px;
	font-weight: 500;
}
.workbench-table td > button:not(.order-number) {
	min-height: 32px;
	font-size: 11px;
	padding: 5px 10px;
}
.data-state {
	font-size: 11px;
	color: #6b7280;
}
.data-state.warning {
	color: #b45309;
}
.table-help {
	color: #8b95a1;
	font-size: 11px;
	margin-top: 0;
}
.operator-history {
	margin-top: 24px;
}
.operator-history > summary {
	color: #6b7280;
	font-size: 13px;
}
.operator-history .list {
	margin-top: 16px;
}
.integrity-warning {
	font-size: 12px;
	background: #fffbeb;
	color: #92400e;
	padding: 12px 14px;
	border-radius: 6px;
	line-height: 1.7;
}
.order-inspector {
	width: min(760px, 100%);
	padding: 24px 32px;
}
.eyebrow {
	display: block;
	font-size: 11px;
	color: #8b95a1;
	margin-bottom: 8px;
}
.inspector-heading h2 {
	font-size: 23px;
	margin-bottom: 8px;
	font-variant-numeric: tabular-nums;
}
.order-inspector dl {
	background: transparent;
	padding: 20px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	border-radius: 0;
}
.order-inspector .order-context table {
	margin-top: 16px;
}
.order-inspector .support-section {
	border-top: 0;
}
.source-history {
	list-style: none;
	padding: 0;
	margin: 12px 0;
	font-size: 12px;
}
.source-history li {
	padding: 14px 0;
	border-top: 1px solid #f1f5f9;
}
.source-history time {
	display: block;
	font-size: 11px;
	color: #8b95a1;
	margin-top: 5px;
}
.source-history p {
	margin: 8px 0 0;
	overflow-wrap: anywhere;
}
@media (max-width: 720px) {
	.source-bar {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}
	.write-mode {
		padding: 0;
		border: 0;
	}
	.workbench-table {
		max-height: 60svh;
	}
	.order-inspector {
		padding: 20px 16px;
	}
}

.sync-notice:not(:empty) {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
	padding: 14px 18px;
	border: 1px solid #dbe5ff;
	border-radius: 10px;
	background: #f1f5ff;
	color: #33477a;
	font-size: 13px;
}
.sync-notice strong {
	color: #3045b8;
}
.sync-notice .secondary {
	margin-left: auto;
}

.customer-intake { max-width: 900px; margin: 0 auto; }
.intake-section { padding: 12px 0 24px; border-bottom: 1px solid var(--line); }
.intake-section h2 { display:flex; align-items:center; gap:12px; margin:0 0 20px; font-size:18px; }
.intake-section h2 span { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#eff6ff; color:var(--primary); font-size:14px; }
.intake-section select { width:100%; }
.inquiry-photos { margin-top:24px; border:0; padding:0; }
.intake-footer { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-top:12px; }
.inquiry-empty { padding:64px 24px; text-align:center; }
.inquiry-answer { background:#f8fafc; padding:20px; border-radius:12px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
@media(max-width:640px) { .intake-footer { align-items:stretch; flex-direction:column; } .intake-section .request-kinds { grid-template-columns:1fr; } .customer-intake { padding:20px; } }
.intake-search { margin-bottom:16px; color:var(--muted); }
.intake-search summary { cursor:pointer; padding:8px 0; }
.intake-search .order-filters { margin-top:12px; }
.customer-inquiry-page { padding-bottom:100px; }
.customer-inquiry-launcher { position:fixed; right:calc(24px + env(safe-area-inset-right, 0px)); bottom:calc(24px + env(safe-area-inset-bottom, 0px)); z-index:30; min-height:56px; padding:14px 20px; border-radius:999px; box-shadow:0 8px 28px #1d4ed840; }
.customer-inquiry-launcher svg { width:24px; height:24px; flex:none; }
@media(max-width:640px) { .customer-inquiry-launcher { right:calc(16px + env(safe-area-inset-right, 0px)); bottom:calc(16px + env(safe-area-inset-bottom, 0px)); } }

/* Order inspector keeps the working context and processing controls together. */
.order-inspector { width:min(1080px,100%); padding:0 28px 28px; }
.inspector-topbar { position:sticky; top:0; z-index:3; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:20px 0 16px; border-bottom:1px solid var(--line); background:#fff; }
.inspector-topbar>div { min-width:0; }
.inspector-topbar h2 { margin:0; font-size:21px; line-height:1.35; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.inspector-topbar .eyebrow { margin-bottom:5px; }
.inspector-topbar>button { flex-shrink:0; min-height:36px; padding:8px 14px; }
.inspector-statuses { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.inspector-statuses span { background:#f1f5f9; color:#475569; border-radius:5px; padding:4px 8px; font-size:11px; font-weight:600; }
.inspector-product { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:20px 0; border-bottom:1px solid var(--line); }
.inspector-product h3 { margin:0 0 6px; font-size:18px; line-height:1.5; }
.inspector-product p { margin:0; font-size:12px; color:var(--muted); line-height:1.6; }
.inspector-product>strong { flex-shrink:0; font-size:16px; padding:7px 10px; background:#f8fafc; border-radius:6px; }
.inspector-columns { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(300px,1fr); gap:28px; align-items:start; margin-top:22px; }
.inspector-information,.inspector-processing { min-width:0; }
.inspector-section { padding:0 0 20px; margin-bottom:20px; border-bottom:1px solid var(--line); }
.inspector-section h3,.inspector-processing h3 { font-size:14px; margin:0 0 16px; }
.order-inspector dl { margin:0; padding:0; border:0; border-radius:0; background:none; }
.order-inspector .inspector-totals { display:grid; grid-template-columns:1fr .7fr 1.5fr; gap:12px; margin-bottom:20px; }
.inspector-totals dt { font-size:11px; line-height:1.5; min-height:32px; }
.inspector-totals dd { font-size:17px; font-weight:600; margin:4px 0 0; white-space:nowrap; }
.inspector-total dd { font-size:21px; color:#1d4ed8; }
.order-inspector .inspector-facts { display:grid; grid-template-columns:1fr; gap:12px; }
.inspector-facts>div { display:grid; grid-template-columns:92px minmax(0,1fr); gap:12px; }
.inspector-facts dt { margin:0; font-size:12px; line-height:1.7; }
.inspector-facts dd { margin:0; font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.inspector-processing { background:#f8fafc; padding:20px; border-left:1px solid #e8edf3; }
.inspector-processing .support-section { padding:0 0 18px; margin:0; }
.inspector-processing .support-section dl { display:grid; grid-template-columns:1fr 1fr; gap:18px 12px; margin:0 0 16px; }
.inspector-processing .support-section dt { font-size:11px; line-height:1.6; }
.inspector-processing .support-section dd { margin:5px 0 0; font-size:18px; font-weight:600; }
.inspector-processing .support-section dl>div:last-child dd { color:#1d4ed8; }
.inspector-processing .support-section p { font-size:11px; margin:8px 0; }
.inspector-processing .support-section button { width:100%; }
.inspector-processing form.support-section { border-top:1px solid var(--line); padding:20px 0 0; gap:12px; }
.inspector-processing form label { font-size:12px; }
.inspector-processing form textarea { min-height:88px; }
.inspector-processing form>button { margin-top:4px; }
.order-inspector .order-context { margin:0; padding:16px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; }
.order-inspector .order-context summary { font-size:12px; }
.inspector-source { margin-bottom:0; }
.inspector-loading { min-height:240px; display:flex; align-items:center; justify-content:center; gap:12px; color:var(--muted); font-size:13px; }
.page-loading h1 { font-size:24px; margin:0 0 24px; }
.page-loading>p { display:flex; align-items:center; gap:10px; color:var(--muted); }
.loading-indicator { display:inline-block; width:16px; height:16px; flex-shrink:0; border:2px solid #dbe3ed; border-top-color:var(--primary); border-radius:50%; animation:loading-spin .8s linear infinite; }
.loading-lines { margin-top:32px; display:grid; gap:18px; }
.loading-lines i { height:40px; border-radius:5px; background:#f1f5f9; animation:loading-fade 1.4s ease-in-out infinite alternate; }
.loading-lines i:nth-child(even) { width:85%; }
@keyframes loading-spin { to { transform:rotate(360deg); } }
@keyframes loading-fade { to { opacity:.45; } }
@media(max-width:800px) {
 .order-inspector { padding:0 18px 24px; }
 .inspector-topbar h2 { font-size:18px; }
 .inspector-columns { display:flex; flex-direction:column; gap:0; }
 .inspector-information { display:contents; }
 .inspector-columns>.inspector-processing { order:2; width:100%; margin:0 0 20px; border-left:0; }
 .inspector-section { width:100%; }
 .inspector-section[aria-label="결제 금액"] { order:0; }
 .inspector-section[aria-label="수령인과 배송"] { order:1; }
 .inspector-source { order:3; }
 .inspector-information>.order-context { order:4; width:100%; }
 .inspector-product h3 { font-size:16px; }
 .inspector-totals dd { font-size:15px; }
 .inspector-total dd { font-size:19px; }
}
@media(prefers-reduced-motion:reduce) { .loading-indicator,.loading-lines i { animation:none; } }

.inspector-refresh { padding-bottom:18px; }
.inspector-refresh>button { width:100%; }
.customer-inquiry-panel { position:fixed; inset:auto calc(24px + env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) auto; z-index:35; width:400px; max-width:calc(100vw - 32px); height:700px; max-height:calc(100dvh - 128px); overflow:hidden; margin:0; padding:0; border:1px solid #e4e7ee; border-radius:22px; background:#fff; color:#111827; box-shadow:0 20px 64px #0f172a24, 0 2px 8px #0f172a08; }
.customer-inquiry-panel[open] { display:flex; flex-direction:column; animation:inquiry-pop .18s ease-out; }
.customer-inquiry-panel [hidden] { display:none !important; }
.customer-inquiry-heading { display:flex; flex:none; align-items:center; gap:10px; padding:16px 20px 12px; }
.customer-inquiry-brand { display:flex; flex:1; min-width:0; align-items:center; gap:10px; }
.customer-inquiry-heading h2 { margin:0 0 3px; font-size:16px; letter-spacing:-.4px; }
.customer-inquiry-heading p { margin:0; font-size:12px; color:var(--muted); }
.customer-inquiry-avatar { display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:12px; background:var(--primary); color:#fff; }
.customer-inquiry-heading .customer-inquiry-avatar svg { width:23px; height:23px; }
.customer-inquiry-heading button { flex:none; width:40px; min-height:40px; padding:9px; border:0; border-radius:50%; background:transparent; box-shadow:none; color:#64748b; }
.customer-inquiry-heading button:hover { background:#f1f3f7; }
.customer-inquiry-heading svg { width:20px; height:20px; }
.inquiry-stage { display:flex; justify-content:space-between; padding:0 20px 10px; font-size:11px; color:#6b7280; }
.inquiry-stage [data-stage-label] { color:#475569; font-weight:600; }
.inquiry-progress { height:2px; flex:none; background:#f0f2f7; }
.inquiry-progress i { display:block; height:100%; background:var(--primary); transition:width .2s ease; }
.customer-inquiry-body { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:20px; background:#f7f8fb; scrollbar-width:thin; scrollbar-color:#d1d5df transparent; }
.customer-inquiry-panel .customer-intake { padding:0; }
.customer-inquiry-panel .customer-intake > form.stack { gap:18px; }
.customer-inquiry-panel .inquiry-welcome { margin:0; padding:14px 16px; border-radius:4px 16px 16px; background:#fff; font-size:14px; line-height:1.7; }
.inquiry-welcome strong { font-weight:600; }
.inquiry-welcome p { margin:4px 0 0; color:#4b5563; }
.inquiry-topic-options { display:grid; gap:0; overflow:hidden; border:1px solid #e4e7ee; border-radius:16px; background:#fff; }
.customer-inquiry-panel .inquiry-topic { display:flex; justify-content:space-between; width:100%; min-height:76px; padding:14px 16px; border:0; border-bottom:1px solid #eef0f5; border-radius:0; background:#fff; color:#111827; text-align:left; box-shadow:none; }
.customer-inquiry-panel .inquiry-topic:last-child { border-bottom:0; }
.inquiry-topic span { display:grid; gap:4px; }
.inquiry-topic strong { font-size:14px; }
.inquiry-topic small { color:var(--muted); font-size:12px; font-weight:400; }
.inquiry-topic svg { width:16px; height:16px; color:#94a3b8; }
.customer-inquiry-panel .inquiry-topic:hover { background:#f3f5ff; }
.customer-inquiry-panel .inquiry-topic:focus-visible { outline:2px solid var(--primary); outline-offset:-3px; }
.inquiry-chat-answer { display:flex; justify-content:flex-end; margin:0 0 8px; }
.customer-inquiry-panel .inquiry-chat-answer button { display:flex; align-items:center; gap:10px; max-width:90%; min-height:44px; padding:11px 14px; border:1px solid transparent; border-radius:16px 4px 16px 16px; background:#eceeff; color:#353ba7; font-size:13px; line-height:1.6; font-weight:500; text-align:left; box-shadow:none; }
.inquiry-chat-answer button span { overflow-wrap:anywhere; }
.inquiry-chat-answer svg { width:14px; height:14px; flex:none; opacity:.6; }
.customer-inquiry-panel .inquiry-chat-answer button:hover { background:#e1e5ff; border-color:#cdd4ff; }
.customer-inquiry-panel .intake-section { padding:12px 0 0; border:0; }
.customer-inquiry-panel label { font-size:12px; color:#475569; }
.customer-inquiry-panel select, .customer-inquiry-panel input:not([type="file"]) { min-height:46px; border-radius:12px; background:#fff; font-size:14px; }
.customer-inquiry-panel [data-order-hint] { margin:8px 0 14px; font-size:12px; line-height:1.6; }
.customer-inquiry-panel .intake-search { margin:14px 0 0; }
.customer-inquiry-panel .intake-search summary { padding:8px 0; font-size:12px; color:#64748b; }
.customer-inquiry-panel .order-filters { display:flex; flex-wrap:nowrap; gap:8px; }
.customer-inquiry-panel .order-filters input { min-width:0; width:100%; }
.customer-inquiry-panel .order-filters button { flex:none; border-radius:10px; box-shadow:none; }
.customer-inquiry-panel [data-inquiry-step="message"] { padding-top:0; }
.customer-inquiry-panel [data-inquiry-step="message"] .inquiry-welcome { margin-bottom:16px; }
.inquiry-composer { overflow:hidden; border:1px solid #dce1eb; border-radius:14px; background:#fff; transition:border-color .15s,box-shadow .15s; }
.inquiry-composer:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px #3448ec0d; }
.customer-inquiry-panel .inquiry-composer textarea { display:block; width:100%; min-height:128px; padding:14px; resize:vertical; border:0; border-radius:0; background:transparent; outline:none; box-shadow:none; font-size:14px; line-height:1.8; }
.inquiry-character-count { display:block; padding:0 12px 10px; color:#94a3b8; text-align:right; font-size:11px; font-variant-numeric:tabular-nums; }
.customer-inquiry-panel .inquiry-photos { margin:16px 0 0; }
.customer-inquiry-panel .inquiry-photos summary { display:flex; align-items:center; gap:8px; cursor:pointer; padding:10px 0; list-style:none; font-size:12px; color:#475569; }
.inquiry-photos summary::-webkit-details-marker { display:none; }
.inquiry-photos summary small { margin-left:auto; font-variant-numeric:tabular-nums; color:#94a3b8; }
.inquiry-photos summary svg { width:14px; height:14px; transition:transform .15s; }
.inquiry-photos[open] summary svg { transform:rotate(90deg); }
.customer-inquiry-panel .inquiry-photos fieldset { border:0; margin:0; padding:0; }
.customer-inquiry-panel [data-inquiry-step="message"] .inquiry-welcome { margin-bottom:20px; }

.inspector-header-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.inspector-header-actions button { min-height:36px; padding:8px 12px; font-size:12px; }
.shipment-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.shipment-heading strong { font-size:13px; }
.shipment-invoice { display:block; margin-top:6px; font-size:18px; font-weight:650; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.shipment-state { background:#f1f5f9; border-radius:5px; padding:5px 8px; color:#475569; font-size:11px; white-space:nowrap; }
.shipment-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.shipping-track-link { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:9px 14px; background:var(--primary); border:1px solid var(--primary); border-radius:8px; color:white; font-size:12px; font-weight:600; text-decoration:none; }
.shipping-track-link:hover { filter:brightness(.95); color:#fff; }
.shipment-links button { min-height:38px; padding:8px 12px; font-size:12px; }
.shipment-help { font-size:11px; color:var(--muted); line-height:1.7; margin:10px 0 0; }
.shipment-events { display:flex; list-style:none; gap:10px; padding:16px 0 0; margin:16px 0 0; border-top:1px solid var(--line); }
.shipment-events li { flex:1; min-width:0; border-left:2px solid #cbd5e1; padding-left:9px; }
.shipment-events span { display:block; font-size:11px; font-weight:600; }
.shipment-events time { display:block; margin-top:5px; color:var(--muted); font-size:10px; line-height:1.7; overflow-wrap:anywhere; }
.inspector-parties { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.inspector-parties>div { min-width:0; }
.order-inspector .inspector-parties .inspector-facts>div { grid-template-columns:1fr; gap:2px; }
.source-order-memo { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; line-height:1.8; margin:0 0 16px; }
.order-item-table { width:100%; font-size:11px; }
.order-item-table th,.order-item-table td { padding:10px 8px; }
.order-item-table td { overflow-wrap:anywhere; }
.order-item-table td:nth-child(2),.order-item-table td:nth-child(3),.order-item-table td:nth-child(4) { white-space:nowrap; }
.order-item-table .current-item { background:#eff6ff; }
.order-item-table td small { display:block; color:var(--muted); margin-top:4px; }
.order-item-table button { min-height:30px; padding:6px 8px; font-size:11px; }
.order-action-choices { display:grid; gap:8px; border:0; padding:0; margin:0; }
.order-action-choices legend { margin-bottom:10px; font-size:12px; }
.order-action-choice { display:flex; gap:10px; align-items:center; padding:12px; background:#fff; border:1px solid var(--line); border-radius:8px; cursor:pointer; }
.order-action-choice input { width:16px; min-height:16px; flex-shrink:0; margin:0; }
.order-action-choice>span { flex:1; min-width:0; }
.order-action-choice strong { display:block; font-size:13px; font-weight:600; }
.order-action-choice small { display:block; margin-top:4px; font-size:11px; color:var(--muted); line-height:1.5; font-weight:400; }
.order-action-choice em { color:#475569; font-style:normal; font-size:10px; white-space:nowrap; }
.order-action-choice:has(input:checked) { background:#eff6ff; border-color:#93b4fb; }
.order-action-choice:has(input:checked) strong { color:#1d4ed8; }
.order-action-choice:has(input:disabled) { background:#f4f6f8; cursor:not-allowed; }
.order-action-choice:has(input:disabled) strong { color:#64748b; }
.order-connection-state { border-left:2px solid #cbd5e1; padding:4px 0 4px 12px; margin:4px 0; }
.order-connection-state strong { font-size:12px; }
.order-connection-state p,.order-action-explainer,.order-action-notice { color:var(--muted); font-size:11px; line-height:1.7; margin:5px 0; }
.order-connection-state button { margin-top:8px; font-size:11px; min-height:32px; padding:6px 10px; }
.staff-case-context .shipment-events { flex-direction:column; }
@media(max-width:800px) {
 .inspector-header-actions { flex-direction:column-reverse; align-items:flex-end; gap:6px; }
 .inspector-header-actions button { min-height:34px; padding:7px 10px; font-size:11px; }
 .inspector-parties { grid-template-columns:1fr; gap:22px; }
 .inspector-information>.inspector-section { order:0; }
 .inspector-information>.inspector-source { order:3; }
 .inspector-columns>.inspector-processing { order:2; }
 .shipping-track-link,.shipment-links button { min-height:42px; }
 .order-item-table { min-width:400px; }
}
.order-inquiry-shortcut { padding:0 0 18px; }
.order-inquiry-shortcut button { width:100%; font-size:12px; }
.order-inquiry-shortcut p { font-size:11px; line-height:1.7; color:var(--muted); margin:8px 0 0; }
.inspector-processing>form.support-section:first-child { border-top:0; padding-top:0; }
.order-action-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.order-action-heading h3 { margin-bottom:0; }
.order-action-heading>span { font-size:10px; color:#64748b; padding:4px 7px; background:#e9eef5; border-radius:4px; }
.order-action-choices+.support-section { border-top:1px solid var(--line); padding-top:18px; margin-top:6px; }
.inquiry-photos fieldset > p { margin:2px 0 12px; font-size:11px; }
.inquiry-photo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.inquiry-photo { position:relative; min-width:0; }
.customer-inquiry-panel .inquiry-photo-pick { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; height:88px; overflow:hidden; padding:8px; border:1px dashed #cdd3e0; border-radius:12px; background:#fff; cursor:pointer; }
.inquiry-photo-pick > svg { width:23px; height:23px; color:#94a3b8; }
.inquiry-photo-pick span { position:relative; z-index:1; font-size:11px; line-height:1.4; white-space:nowrap; }
.inquiry-photo-pick img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.inquiry-photo[data-has-photo="true"] .inquiry-photo-pick { justify-content:flex-end; border-style:solid; }
.inquiry-photo[data-has-photo="true"] .inquiry-photo-pick > svg { display:none; }
.inquiry-photo[data-has-photo="true"] .inquiry-photo-pick span { padding:3px 6px; border-radius:5px; background:#ffffffeb; }
.inquiry-photo:focus-within .inquiry-photo-pick { outline:2px solid var(--primary); outline-offset:2px; }
.customer-inquiry-panel .inquiry-photo-remove { position:absolute; z-index:2; right:-4px; top:-4px; width:28px; min-height:28px; padding:0; border:1px solid #dce1eb; border-radius:50%; background:#fff; color:#64748b; box-shadow:0 2px 6px #0f172a12; font-size:18px; }
.inquiry-photo > small { display:block; overflow:hidden; margin-top:6px; font-size:10px; color:#94a3b8; text-overflow:ellipsis; white-space:nowrap; }
.customer-inquiry-controls { flex:none; padding:14px 20px 18px; border-top:1px solid #e9edf3; background:#fff; }
.customer-inquiry-controls button { width:100%; min-height:48px; border-radius:12px; box-shadow:none; }
.customer-inquiry-controls [data-inquiry-submit] > p { margin:0 0 10px; color:#94a3b8; font-size:11px; text-align:center; }
.customer-inquiry-controls .inquiry-error { margin:0 0 12px; padding:10px 12px; border-radius:8px; background:#fff1f2; color:#b91c1c; font-size:12px; line-height:1.6; }
.customer-inquiry-controls .loading-indicator { border-color:#ffffff55; border-top-color:#fff; }
.inquiry-submitted { display:grid; justify-items:center; padding:48px 4px; text-align:center; }
.inquiry-success-icon { display:grid; place-items:center; width:64px; height:64px; margin-bottom:22px; border-radius:50%; background:#eceeff; color:var(--primary); }
.inquiry-success-icon svg { width:30px; height:30px; }
.inquiry-submitted h3 { margin:0; font-size:19px; letter-spacing:-.4px; }
.inquiry-submitted p { margin:12px 0 28px; color:var(--muted); font-size:13px; line-height:1.9; }
.inquiry-submitted button { width:100%; min-height:48px; border-radius:12px; box-shadow:none; }
body:has(.customer-inquiry-panel[open]) #toast { z-index:40; bottom:110px; }
.customer-inquiry-panel [data-inquiry-step="order"], .customer-inquiry-panel [data-inquiry-step="message"] { animation:inquiry-pop .15s ease-out; }
@media(max-width:640px) {
 .customer-inquiry-panel { inset:0; width:100%; max-width:none; height:100dvh; max-height:none; border:0; border-radius:0; box-shadow:none; }
 .customer-inquiry-heading { padding-top:max(16px,env(safe-area-inset-top,0px)); }
 .customer-inquiry-controls { padding-bottom:calc(16px + env(safe-area-inset-bottom,0px)); }
 .customer-inquiry-panel input:not([type="file"]), .customer-inquiry-panel select, .customer-inquiry-panel .inquiry-composer textarea { font-size:16px; }
 body:has(.customer-inquiry-panel[open]) { overflow:hidden; }
}
@keyframes inquiry-pop { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { .customer-inquiry-panel, .customer-inquiry-panel *, .customer-inquiry-panel[open] { animation:none !important; transition:none !important; } }

.customer-inquiry-launcher .launcher-collapse { display:none; }
.customer-inquiry-launcher[aria-expanded="true"] { width:56px; padding:14px; border-radius:50%; }
.customer-inquiry-launcher[aria-expanded="true"] .launcher-chat, .customer-inquiry-launcher[aria-expanded="true"] span { display:none; }
.customer-inquiry-launcher[aria-expanded="true"] .launcher-collapse { display:block; }

.customer-inquiry-panel .inquiry-welcome, .customer-inquiry-panel .inquiry-topic small, .customer-inquiry-panel .inquiry-composer textarea { word-break:keep-all; overflow-wrap:anywhere; }
.customer-inquiry-panel [data-order-thread] > .inquiry-chat-answer { margin-top:16px; }

.customer-inquiry-panel .intake-search:has(#inquiry-order-query) { margin:0 0 16px; }

.customer-inquiry-panel .inquiry-order-more { width:100%; margin-bottom:12px; }

.shipping-tracking-dialog { width:min(560px,calc(100vw - 24px)); max-height:85svh; padding:24px; border:1px solid var(--line); border-radius:18px; color:#263d33; background:#fffef8; }
.shipping-tracking-dialog::backdrop { background:rgb(20 40 30 / .4); }
.shipping-tracking-dialog > header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; position:sticky; top:-24px; padding:12px 0; background:#fffef8; z-index:1; }
.shipping-tracking-dialog h2 { margin:0; font-size:21px; }
.shipping-tracking-dialog header p { margin:8px 0 0; font-size:13px; overflow-wrap:anywhere; }
.tracking-route { list-style:none; margin:20px 0 0; padding:0 0 0 12px; }
.tracking-route li { position:relative; display:grid; gap:6px; padding:0 0 24px 24px; border-left:2px solid #cbd9c2; overflow-wrap:anywhere; }
.tracking-route li::before { content:''; position:absolute; top:5px; left:-5px; width:8px; height:8px; border-radius:50%; background:#214b3c; }
.tracking-route time { font-size:13px; color:#56694f; font-variant-numeric:tabular-nums; }
.tracking-route span, .tracking-message { font-size:14px; line-height:1.7; }
.tracking-message { margin:24px 0; }
