@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@400;500&family=Noto+Sans:wght@400;500;600;700&display=swap');

/* papan-nama-dinas · seed:f0e159a16c411ece · rail institusional + kanvas kerja resmi */
:root {
	--rail: #083a78;
	--rail-deep: #062e60;
	--rail-ink: #f4f7fb;
	--rail-muted: #b8c7dc;
	--rail-slot: rgba(255, 255, 255, 0.1);
	--rail-slot-active: rgba(255, 255, 255, 0.16);
	--gold: #c9a227;
	--ground: #e8eef5;
	--surface: #ffffff;
	--raised: #f3f6fa;
	--active: #dce7f4;
	--border: #d0dae6;
	--rule: #e4ebf3;
	--control: #a8b6c8;
	--text: #142033;
	--muted: #4a5a70;
	--faint: #6b7c90;
	--accent: #0a4c9c;
	--primary: #0a4c9c;
	--primary-hover: #083a78;
	--primary-ink: #ffffff;
	--positive: #1a7a4c;
	--negative: #b42318;
	--warning: #9a6700;
	--chart-1: #0a4c9c;
	--pill-positive-bg: #dcf5e8;
	--pill-positive-ink: #0a3d24;
	--pill-negative-bg: #fde8e6;
	--pill-negative-ink: #7a1a14;
	--pill-neutral-bg: #e8eef5;
	--pill-neutral-ink: #2a3a50;
	--radius-card: 6px;
	--radius-control: 4px;
	--header-h: 60px;
	--content-max: 1180px;
	--page-pad: clamp(16px, 3vw, 28px);
	--page-x: max(var(--page-pad), calc((100% - var(--content-max)) / 2));
	--control-height: 36px;
	--row-height: 48px;
	-fs-title: 22px;
	--fs-section: 16px;
	--fs-body: 14px;
	--fs-small: 12px;
	--font: 'Noto Sans', 'Segoe UI', system-ui, sans-serif;
	--font-mono: 'Noto Sans Mono', ui-monospace, monospace;
	--t-hover: 160ms;
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	-shadow-menu: 0 10px 28px rgba(8, 58, 120, 0.14);
	--shadow-modal: 0 16px 40px rgba(8, 58, 120, 0.18);
	--shadow-sheet: 0 -8px 28px rgba(8, 58, 120, 0.16);
	--shadow-tile: 0 1px 2px rgba(8, 58, 120, 0.05), 0 4px 14px rgba(8, 58, 120, 0.07);
	--shadow-head: 0 1px 0 rgba(8, 58, 120, 0.04);
	--slot: #5eb1ff;

	--ink: var(--text);
	--ink-muted: var(--muted);
	--paper: var(--ground);
	--panel: var(--surface);
	-line: var(--border);
	-blue: var(--accent);
	--blue-deep: var(--rail);
	-ok: var(--positive);
	-danger: var(--negative);
	--radius: var(--radius-card);
	-radius-btn: var(--radius-control);
}

::selection {
	background: color-mix(in srgb, var(--accent) 28%, white);
	color: var(--text);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	width: 100%;
	min-height: 100%;
	overflow-x: hidden;
	font: var(--fs-body) / 1.45 var(--font);
	color: var(--text);
	background: var(--ground);
	-webkit-font-smoothing: antialiased;
	caret-color: var(--accent);
	scrollbar-width: none;
}

* {
	scrollbar-width: none;
}

*::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

button,
input,
select {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 3px;
}

.num,
table,
.tabular {
	font-variant-numeric: tabular-nums;
}

code {
	font-family: var(--font-mono);
	font-size: 0.92em;
}

h1,
h2,
h3 {
	margin: 0;
	font-weight: 600;
	color: var(--text);
}

/* - masthead - */
.app-frame {
	height: 100svh;
	height: 100dvh;
	max-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--ground);
	overflow: hidden;
}

.gov-bar.app {
	background: var(--rail);
	border-bottom: 2px solid var(--gold);
	padding: 8px var(--page-pad);
	position: relative;
	flex-shrink: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: var(--header-h);
	color: var(--rail-ink);
}

.brand-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: inherit;
	min-width: 0;
	flex: 1;
}

.brand-link:hover {
	text-decoration: none;
}

.logo-plate {
	background: var(--surface);
	border-radius: var(--radius-control);
	padding: 4px 8px;
	display: inline-flex;
	align-items: center;
	line-height: 0;
	flex-shrink: 0;
}

.logo-kominfo {
	height: 34px;
	width: auto;
	max-width: min(200px, 44vw);
	object-fit: contain;
	display: block;
}

.gov-bar .title {
	display: grid;
	gap: 1px;
	min-width: 0;
	line-height: 1.2;
}

.gov-bar .title strong {
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	letter-spacing: 0.01em;
}

.gov-bar .title small {
	font-size: 12px;
	color: var(--rail-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 28rem;
}

.gov-bar .header-toggle {
	display: inline-flex;
	align-items: stretch;
	margin-left: auto;
	flex-shrink: 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--radius-control);
	overflow: hidden;
	background: var(--rail-slot);
}

.gov-bar .header-toggle .toolbar-app-icon {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.gov-bar .header-toggle button {
	border: 0;
	background: transparent;
	color: var(--rail-muted);
	width: 44px;
	height: 40px;
	display: grid;
	place-items: center;
	cursor: pointer;
	padding: 0;
	transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out);
}

.gov-bar .header-toggle button + button {
	border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.gov-bar .header-toggle button:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.gov-bar .header-toggle button.active {
	background: var(--rail-slot-active);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 -3px 0 var(--slot);
}

.gov-bar .header-toggle button:focus-visible {
	outline-offset: -3px;
	border-radius: 0;
}

.gov-bar .header-file-actions {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	flex-shrink: 0;
	min-width: 0;
}

.gov-bar .header-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: var(--radius-control);
	background: var(--rail-slot);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.gov-bar .header-back:hover {
	background: var(--rail-slot-active);
}

.gov-bar .detail-icon-actions.on-rail .icon-act {
	color: rgba(255, 255, 255, 0.88);
}

.gov-bar .detail-icon-actions.on-rail .icon-act:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.detail-icon-actions {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}

.detail-icon-actions .icon-act {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-control);
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}

.detail-icon-actions .icon-act:hover {
	background: var(--raised);
	color: var(--accent);
}

.shell {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	background: var(--ground);
}

/* - sheet page (ground + putih panel) - */
.sheet-page {
	background: var(--ground);
	border: 0;
	border-radius: 0;
	flex: 1 1 auto;
	height: 100%;
	max-height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
}

.page-head {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	min-height: 64px;
	padding: 12px var(--page-x);
	border-bottom: 1px solid var(--border);
	background: var(--surface);
	box-shadow: var(--shadow-head);
	position: relative;
	flex-shrink: 0;
	z-index: 5;
}

.page-head h1 {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.3;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.page-head .head-text {
	display: grid;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.page-head .head-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	flex-shrink: 0;
	flex-wrap: wrap;
}

.page-head .count {
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
}

.page-body {
	width: 100%;
	padding: 20px var(--page-x) 32px;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	position: relative;
	scrollbar-width: thin;
}

.page-body::-webkit-scrollbar {
	display: block;
	width: 8px;
	height: 8px;
}

.page-body::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--accent) 35%, #c5d0dc);
	border-radius: 999px;
}

.page-body.narrow {
	max-width: calc(var(--content-max) * 0.62);
	margin: 0 auto;
	padding-left: var(--page-pad);
	padding-right: var(--page-pad);
}

/* - controls - */
.btn,
button.primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--primary);
	color: var(--primary-ink);
	border: 1px solid var(--primary);
	border-radius: var(--radius-control);
	padding: 0 14px;
	min-height: var(--control-height);
	font-weight: 600;
	font-size: var(--fs-body);
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease;
}

.btn:hover,
button.primary:hover {
	background: var(--primary-hover);
	border-color: var(--primary-hover);
	text-decoration: none;
}

.btn:disabled,
button.primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.btn.secondary,
button.ghost {
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--control);
	font-weight: 500;
}

.btn.secondary:hover,
button.ghost:hover {
	background: var(--raised);
	border-color: var(--muted);
}

.btn.danger {
	background: var(--negative);
	border-color: var(--negative);
}

.btn.danger:hover {
	background: #961d13;
	border-color: #961d13;
}

.btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.btn.act {
	padding: 0 12px;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--control-height);
	height: var(--control-height);
	padding: 0;
	border: 1px solid var(--control);
	border-radius: var(--radius-control);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	flex-shrink: 0;
}

.icon-btn:hover:not(:disabled) {
	background: var(--raised);
}

.icon-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

label {
	display: grid;
	gap: 6px;
	font-size: var(--fs-small);
	font-weight: 500;
	color: var(--muted);
}

input,
select {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--radius-control);
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
}

input:focus,
select:focus {
	outline: 2px solid color-mix(in srgb, var(--accent) 35%, white);
	border-color: var(--accent);
}

.form {
	display: grid;
	gap: 12px;
}

.error,
.err {
	color: var(--negative);
	font-size: var(--fs-body);
	margin: 0;
}

.muted {
	color: var(--muted);
}

.pad {
	padding: 16px var(--page-x);
}

.empty {
	margin: 0;
	padding: 1.5rem 0.5rem;
	text-align: center;
	color: var(--muted);
}

/* - panels - */
.panel,
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
}

/* - breadcrumb - */
.crumb {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.3;
	min-width: 0;
	color: var(--text);
}

.crumb .sep {
	color: var(--muted);
	font-weight: 700;
	user-select: none;
}

.crumb .current {
	color: var(--text);
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: min(40vw, 22rem);
}

.crumb-btn {
	border: 0;
	background: none;
	color: var(--text);
	font: inherit;
	font-size: inherit;
	font-weight: 700;
	letter-spacing: inherit;
	line-height: inherit;
	cursor: pointer;
	padding: 0;
	min-height: 0;
	display: inline-flex;
	align-items: center;
}

.crumb-btn:hover {
	color: var(--accent);
	text-decoration: none;
}

/* - drive (sama dengan client, admin read-only) - */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.empty-state {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: min(40vh, 320px);
	width: 100%;
	grid-column: 1 / -1;
}

.ai-keep-alive {
	flex: 1;
	min-height: 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.ai-keep-alive.is-hidden {
	display: none !important;
}

.drive-shell {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.drive-shell > .ai-shell {
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
}

.drive {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	max-height: 100%;
	overflow: hidden;
	position: relative;
}

.drive:has(.preview) {
	grid-template-columns: minmax(0, 1fr) 320px;
	grid-template-rows: minmax(0, 1fr);
}

.drive.has-file-detail {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
}

/* Detail informasi di samping isi file (tombol i), tanpa keluar pratinjau */
.drive.has-file-detail:has(.preview) {
	grid-template-columns: minmax(0, 1fr) 320px;
}

.drive.has-file-detail .file-detail {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
	max-height: 100%;
}

.drive.has-file-detail .file-detail-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
}

.drive.has-file-detail .file-detail-body.native-frame,
.drive.has-file-detail .file-detail-body.office-frame {
	overflow: hidden;
}

.drive-main {
	min-width: 0;
	min-height: 0;
	max-height: 100%;
	overflow: hidden;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
	gap: 14px;
}

.tile-wrap,
.drive-card {
	position: relative;
}

.tile-wrap {
	z-index: 1;
}

.tile {
	display: grid;
	justify-items: center;
	gap: 4px;
	padding: 40px 12px 16px;
	width: 100%;
	min-height: 150px;
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	background: var(--surface);
	box-shadow: var(--shadow-tile);
	text-align: center;
	color: inherit;
	cursor: pointer;
	transition:
		background-color var(--t-hover) var(--ease-out),
		border-color var(--t-hover) var(--ease-out),
		box-shadow var(--t-hover) var(--ease-out),
		transform var(--t-hover) var(--ease-out);
}

.tile:hover {
	background: var(--surface);
	border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
	box-shadow: 0 6px 20px rgba(8, 58, 120, 0.12);
	transform: translateY(-1px);
}

.tile .thumb-wrap {
	margin-bottom: 8px;
}

.tile-name {
	font-weight: 500;
	font-size: 13.5px;
	color: var(--text);
	line-height: 1.3;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	word-break: break-word;
}

.tile-meta {
	font-size: var(--fs-small);
	color: var(--muted);
}

.item-more {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 3;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--t-hover) var(--ease-out);
}

.tile-wrap:hover .item-more,
.tile-wrap:focus-within .item-more,
.tile-wrap.is-selected .item-more,
.item-more:has(.item-menu.open) {
	opacity: 1;
	pointer-events: auto;
}

.tile-wrap.is-selected .tile {
	border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
	background: var(--active);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}

@media (hover: none) {
	.item-more {
		opacity: 1;
		pointer-events: auto;
	}
}

.thumb-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
}

.thumb-wrap.sm {
	width: 22px;
	height: 22px;
}

.thumb-wrap .glyph.lg {
	width: 48px;
	height: 48px;
}

.sync-badge {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--accent);
	border: 2px solid var(--surface);
}

.sync-badge::after {
	content: '';
	position: absolute;
	inset: 2px;
	border: 1.5px solid #fff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: sync-spin 0.9s linear infinite;
}

@keyframes sync-spin {
	to {
		transform: rotate(360deg);
	}
}

.drive-main .table-wrap,
.drive-main .card-list {
	width: min(100%, 44rem);
	margin: 0 auto;
}

.drive-main .table-wrap {
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	overflow: visible;
	background: var(--surface);
	box-shadow: var(--shadow-tile);
}

.drive-main table.drive-list {
	width: 100%;
	min-width: 0;
	table-layout: fixed;
}

.drive-main table.drive-list th,
.drive-main table.drive-list td {
	padding: 0 12px;
}

.drive-main table.drive-list th:first-child,
.drive-main table.drive-list td:first-child {
	padding-left: 16px;
}

.drive-main table.drive-list thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	box-shadow: 0 1px 0 var(--border);
}

.drive-main table.drive-list .col-size {
	width: 7rem;
	text-align: right;
	white-space: nowrap;
}

.drive-main table.drive-list .col-actions {
	width: 3.5rem;
	text-align: right;
	white-space: nowrap;
	padding-right: 8px;
	overflow: visible;
	position: relative;
	z-index: 2;
}

.drive-main table.drive-list tbody tr {
	position: relative;
	cursor: pointer;
	z-index: 1;
}

.drive-main table.drive-list tbody tr:hover,
.drive-main table.drive-list tbody tr:focus-within,
.drive-main table.drive-list tbody tr.is-selected {
	z-index: 3;
}

.drive-main table.drive-list tbody tr:hover .col-actions,
.drive-main table.drive-list tbody tr:focus-within .col-actions,
.drive-main table.drive-list tbody tr.is-selected .col-actions {
	z-index: 3;
}

.drive-main table.drive-list tbody tr:has(.item-menu.open) {
	z-index: 10000;
}

.drive-main table.drive-list tbody tr:has(.item-menu.open) .col-actions,
.drive-main table.drive-list tbody tr:has(.item-menu.open) .item-more {
	z-index: 10000;
}

.drive-main table.drive-list:has(.item-menu.open) tbody tr:not(:has(.item-menu.open)) .item-more {
	opacity: 0 !important;
	pointer-events: none !important;
}

.tile-wrap:has(.item-menu.open) {
	z-index: 80;
}

.grid:has(.item-menu.open) .tile-wrap:not(:has(.item-menu.open)) .item-more {
	opacity: 0 !important;
	pointer-events: none !important;
}

.drive-main table.drive-list tbody tr.is-selected {
	background: var(--active);
}

.drive-card.is-selected {
	border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
	background: var(--active);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}

.drive-main .table-wrap .item-more,
.drive-card .item-more {
	position: static;
	opacity: 1;
	pointer-events: auto;
}

.drive-main .table-wrap .row-end {
	pointer-events: auto;
	position: relative;
	z-index: 4;
}

.drive-main table.drive-list tbody tr:hover .item-more,
.drive-main table.drive-list tbody tr:focus-within .item-more,
.drive-main table.drive-list tbody tr.is-selected .item-more,
.drive-card:hover .item-more,
.drive-card:focus-within .item-more,
.drive-card.is-selected .item-more {
	opacity: 1;
	pointer-events: auto;
}

.drive-card .item-more {
	flex-shrink: 0;
}

.row-end {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
}

.name-cell {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	max-width: 100%;
}

.name-cell > span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.drive-card {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 10px 8px 10px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	background: var(--surface);
	box-shadow: var(--shadow-tile);
}

.drive-card-main {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
	min-height: 44px;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	padding: 0;
	color: inherit;
}

.drive-card-main .glyph.lg {
	width: 40px;
	height: 40px;
}

.drive-card-meta {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.drive-card-meta strong {
	font-weight: 600;
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text);
}

.drive-card-meta span {
	font-size: var(--fs-small);
	color: var(--muted);
}

/* - detail panel - */
.preview {
	background: var(--surface);
	border-left: 1px solid var(--border);
	box-shadow: -6px 0 20px rgba(8, 58, 120, 0.06);
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: auto;
}

.preview-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 64px;
	padding: 12px 12px 12px 20px;
	border-bottom: 1px solid var(--rule);
	flex-shrink: 0;
}

.preview-head h2 {
	font-size: 15px;
	font-weight: 600;
}

.icon-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: var(--radius-control);
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}

.icon-close:hover {
	background: var(--raised);
	color: var(--text);
}

.preview-body {
	padding: 20px;
	display: grid;
	justify-items: center;
	gap: 12px;
	align-content: start;
}

.preview-glyph {
	display: inline-flex;
	padding: 12px;
}

.preview-glyph .glyph.lg {
	width: 64px;
	height: 64px;
}

.preview-name {
	margin: 0;
	font-weight: 600;
	font-size: 15px;
	text-align: center;
	word-break: break-word;
	line-height: 1.35;
	color: var(--text);
}

.meta-list {
	width: 100%;
	margin: 4px 0 0;
	display: grid;
	border-top: 1px solid var(--rule);
}

.meta-list > div {
	display: grid;
	grid-template-columns: 6rem 1fr;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid var(--rule);
	font-size: 13px;
}

.meta-list dt {
	color: var(--muted);
}

.meta-list dd {
	margin: 0;
	font-weight: 500;
	color: var(--text);
	word-break: break-word;
	text-align: right;
}

.preview-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	width: 100%;
}

.preview-actions .btn {
	flex: 1 1 auto;
}

/* - file detail (dalam layout dashboard) - */
.file-detail-body {
	background: var(--surface);
	display: grid;
	gap: 12px;
	align-content: start;
	justify-items: center;
}

.file-detail-body.native-frame,
.file-detail-body.office-frame {
	padding: 0;
	justify-items: stretch;
	align-content: stretch;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.file-detail-body.office-frame {
	background: var(--raised);
}

.file-detail-body .preview-media {
	max-width: 100%;
	max-height: none;
	object-fit: contain;
	border: 1px solid var(--border);
	border-radius: var(--radius-control);
	background: var(--raised);
}

.file-detail-body.media-frame {
	padding: 0;
	justify-items: stretch;
	align-content: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #0b1220;
}

.file-detail-body.media-frame .preview-media.fit {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.file-detail-body .preview-loading {
	margin: 0;
	padding: 24px;
	align-self: center;
	justify-self: center;
}

.file-detail-body .frame {
	width: 100%;
	height: 100%;
	min-height: min(70vh, 720px);
	border: none;
	border-radius: 0;
}

.file-detail-body.native-frame .frame {
	min-height: 100%;
	flex: 1;
}

.file-detail-body .preview-text.full {
	width: 100%;
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
	font-family: var(--font-mono);
	font-size: 13px;
	justify-self: stretch;
}

.file-detail-body .preview-html {
	justify-self: stretch;
}

.file-detail-body .preview-html.md {
	max-width: 48rem;
	margin: 0 auto;
	line-height: 1.55;
	padding: 8px 4px 24px;
}

.preview-html {
	width: 100%;
	overflow: auto;
	font-size: 13px;
}

.preview-html table {
	border-collapse: collapse;
	width: 100%;
}

.preview-html td,
.preview-html th {
	border: 1px solid var(--border);
	padding: 4px 8px;
	height: auto;
}

.preview-media.frame.native {
	width: 100%;
	min-height: 80vh;
	border: 0;
	background: #fff;
}

.preview-audio {
	width: min(480px, 100%);
	margin: 40px auto;
	display: block;
}

.preview-html.native {
	background: #fff;
	padding: 24px;
	min-height: 60vh;
}

.preview-text {
	width: 100%;
	overflow: auto;
	margin: 0;
	padding: 10px;
	border-radius: var(--radius-control);
	border: 1px solid var(--border);
	background: var(--raised);
	font-size: 12px;
	font-family: var(--font-mono);
	white-space: pre-wrap;
	word-break: break-word;
}

.preview-text.code {
	font-family: var(--font-mono);
	background: #0f1724;
	color: #e8eef5;
	border-color: #243247;
}

/* - tables - */
.table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.table-card {
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	overflow: hidden;
	background: var(--surface);
	box-shadow: var(--shadow-tile);
}

table {
	width: 100%;
	border-collapse: collapse;
	min-width: 0;
}

th,
td {
	text-align: left;
	padding: 0 16px;
	height: var(--row-height);
	border-bottom: 1px solid var(--rule);
	font-size: var(--fs-body);
	vertical-align: middle;
}

thead th {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	color: var(--muted);
	font-weight: 500;
	font-size: var(--fs-small);
	height: 40px;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

tbody tr:last-child td {
	border-bottom: 0;
}

tbody tr:hover {
	background: var(--raised);
}

.name {
	font-weight: 500;
	color: var(--text);
}

.clickable {
	cursor: pointer;
}

/* - card list (mobile) - */
.card-list {
	display: grid;
	gap: 10px;
}

.desktop-only {
	display: block;
}

.mobile-only {
	display: none !important;
}

/* - me card - */
.me-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	background: var(--surface);
	box-shadow: var(--shadow-tile);
	flex-wrap: wrap;
}

.me-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid var(--border);
	background: var(--raised);
}

.me-avatar.placeholder {
	display: inline-grid;
	place-items: center;
	color: var(--accent);
	background: var(--active);
}

.me-meta {
	flex: 1;
	min-width: 0;
	display: grid;
	gap: 2px;
}

.me-meta strong {
	font-size: 16px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.me-meta span {
	color: var(--muted);
	font-size: 13px;
}

.def-list {
	display: grid;
	grid-template-columns: minmax(7rem, 10rem) 1fr;
	margin: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	overflow: hidden;
	background: var(--surface);
	box-shadow: var(--shadow-tile);
}

.def-list > div {
	display: contents;
}

.def-list dt,
.def-list dd {
	margin: 0;
	padding: 12px 16px;
	border-bottom: 1px solid var(--rule);
	font-size: var(--fs-body);
	min-height: 44px;
	display: flex;
	align-items: center;
}

.def-list dt {
	color: var(--muted);
	background: var(--raised);
	font-size: 13px;
}

.def-list dd {
	font-weight: 500;
	min-width: 0;
	word-break: break-word;
}

.def-list > div:last-child dt,
.def-list > div:last-child dd {
	border-bottom: 0;
}

/* - modals - */
.modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(6, 46, 96, 0.42);
	display: grid;
	place-items: center;
	z-index: 80;
	padding: 16px;
}

.modal {
	width: min(440px, 100%);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-modal);
	padding: 20px;
	display: grid;
	gap: 14px;
	max-height: calc(100svh - 32px);
	overflow: auto;
}

.modal-title {
	margin: 0;
	font-size: var(--fs-section);
	font-weight: 600;
	color: var(--text);
}

.modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

/* - login - */
.page {
	min-height: 100svh;
	min-height: 100dvh;
	width: 100%;
	overflow-x: hidden;
	background: var(--ground);
	display: flex;
	flex-direction: column;
}

.gov-bar-login {
	width: 100%;
	background: var(--rail);
	color: var(--rail-ink);
	padding: 10px var(--page-pad);
	border-bottom: 2px solid var(--gold);
	min-height: var(--header-h);
	display: flex;
	align-items: center;
}

.gov-bar-login-inner {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.badge-portal {
	font-size: var(--fs-small);
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--radius-control);
	padding: 7px 12px;
	flex-shrink: 0;
	color: #fff;
	background: var(--rail-slot);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.login-wrap {
	flex: 1;
	display: grid;
	place-items: center;
	padding: clamp(1rem, 4vw, 3rem) var(--page-pad);
	background: var(--ground);
}

.login-board {
	width: min(920px, 100%);
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
	align-items: stretch;
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 3px solid var(--gold);
	border-radius: var(--radius-card);
	overflow: hidden;
	animation: board-in 0.4s var(--ease-out) both;
}

.login-hero {
	padding: clamp(1.5rem, 3.2vw, 2.5rem);
	display: grid;
	gap: 14px;
	align-content: start;
	background: var(--raised);
	border-right: 1px solid var(--border);
}

.hero-seal {
	width: 56px;
	height: 56px;
	object-fit: contain;
	display: block;
}

.login-hero h1 {
	margin: 0;
	font-size: clamp(24px, 3vw, 30px);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--text);
}

.login-hero .hero-org {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--primary);
	line-height: 1.35;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.login-hero .lead {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	max-width: 32rem;
	line-height: 1.6;
}

.login-hero .points {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	display: grid;
	color: var(--text);
	border-top: 1px solid var(--border);
}

.login-hero .points li {
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	display: flex;
	gap: 10px;
	align-items: baseline;
}

.login-hero .points li::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gold);
	flex-shrink: 0;
	transform: translateY(-2px);
}

.login-hero .points li:last-child {
	border-bottom: 0;
}

.login-form {
	padding: clamp(1.5rem, 3.2vw, 2.5rem);
	display: grid;
	gap: 16px;
	align-content: center;
	background: var(--surface);
}

.login-form h2 {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	color: var(--text);
}

.login-form .field {
	display: grid;
	gap: 6px;
	width: 100%;
	min-width: 0;
}

.login-form .field label {
	margin: 0;
	font-weight: 500;
	font-size: var(--fs-body);
	color: var(--text);
}

.login-form .input {
	width: 100%;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: var(--radius-control);
	background: var(--surface);
	color: var(--text);
	padding: 0 12px;
}

.pass-wrap {
	position: relative;
	width: 100%;
	min-width: 0;
}

.login-form .pass-wrap > .input {
	padding-right: 48px;
}

.pass-wrap .eye {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: transparent;
	color: var(--muted);
	width: 40px;
	height: 36px;
	display: grid;
	place-items: center;
	padding: 0;
	border-radius: var(--radius-control);
	cursor: pointer;
	z-index: 1;
}

.pass-wrap .eye:hover {
	color: var(--text);
	background: var(--raised);
}

.check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 400;
	font-size: var(--fs-body);
	color: var(--text);
	cursor: pointer;
	margin: 0;
	min-height: 32px;
}

.check input {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
	accent-color: var(--accent);
}

.login-submit {
	width: 100%;
	min-height: 44px;
	font-size: 15px;
}

.login-submit.is-loading {
	cursor: progress;
}

.login-foot {
	padding: 14px var(--page-pad) 18px;
	text-align: center;
	color: var(--muted);
	font-size: 12px;
	letter-spacing: 0.02em;
}

@keyframes board-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* - responsive - */
@media (max-width: 960px) {
	.drive,
	.drive:has(.preview),
	.drive.has-file-detail:has(.preview) {
		grid-template-columns: minmax(0, 1fr);
	}

	.preview {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: auto;
		height: auto;
		max-height: min(72svh, 560px);
		border-left: 0;
		border-top: 1px solid var(--border);
		border-radius: 10px 10px 0 0;
		box-shadow: var(--shadow-sheet);
		z-index: 60;
	}

	.preview-head {
		min-height: 56px;
	}
}

@media (max-width: 860px) {
	.login-board {
		grid-template-columns: 1fr;
	}

	.login-hero {
		border-right: 0;
		border-bottom: 1px solid var(--border);
	}

	.login-form {
		align-content: start;
	}

	.page-body.narrow {
		max-width: none;
	}
}

@media (max-width: 720px) {
	.gov-bar .title {
		display: none;
	}
}

@media (max-width: 640px) {
	.desktop-only {
		display: none !important;
	}

	.mobile-only {
		display: grid !important;
	}

	.page-head {
		min-height: 0;
		padding-top: 12px;
		padding-bottom: 12px;
		align-items: stretch;
		gap: 10px;
	}

	.page-head h1,
	.page-head .head-text,
	.page-head .crumb {
		flex: 1 1 100%;
		max-width: 100%;
		white-space: normal;
	}

	.page-head h1,
	.page-head .crumb {
		font-size: 17px;
	}

	.drive-actions .btn-label {
		display: none;
	}

	.drive-actions .btn.act {
		width: 44px;
		height: 44px;
		min-height: 44px;
		padding: 0;
	}

	.grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.tile {
		padding: 40px 8px 14px;
		min-height: 140px;
	}

	.page-head .head-actions {
		margin-left: 0;
		width: 100%;
		justify-content: flex-start;
		gap: 8px;
	}

	.page-head .count {
		margin-left: auto;
	}

	.page-body {
		padding-top: 14px;
		padding-bottom: 24px;
	}

	.def-list {
		grid-template-columns: 1fr;
	}

	.def-list dt {
		min-height: 0;
		padding-bottom: 4px;
		border-bottom: 0;
		background: var(--surface);
	}

	.def-list dd {
		padding-top: 0;
	}

	.me-card {
		padding: 16px;
	}

	.login-hero .lead {
		font-size: 14px;
	}

	.gov-bar .header-toggle button {
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 400px) {
	.gov-bar .header-toggle button {
		width: 40px;
		height: 40px;
	}

	.logo-kominfo {
		height: 30px;
		max-width: 118px;
	}

	.gov-bar.app {
		gap: 8px;
		padding-left: 10px;
		padding-right: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}


/* =====================================================================
   PREVIEW APP - studio (tour) + adaptasi komponen produksi
   Bagian di atas ini = _pulled_app.css (CSS produksi opd.integrasidata)
   ===================================================================== */

/* - tata letak halaman tour - */
html,
body {
	height: 100%;
	overflow: hidden;
	background: #0b1b30;
}

body {
	display: grid;
	grid-template-columns: 292px minmax(0, 1fr);
	min-height: 100vh;
	height: 100vh;
}

/* - studio (sidebar tour) - */
.studio {
	background: linear-gradient(180deg, #0d2748 0%, #081a30 100%);
	color: #e8eef5;
	padding: 14px 14px 12px;
	border-right: 1px solid rgba(201, 162, 39, 0.35);
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	height: 100%;
	overflow: hidden;
	scrollbar-width: none;
	position: relative;
	z-index: 200;
}

/* Isi panel mengisi tinggi layar · ukuran tetap terbaca, tanpa scroll */
.studio-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	flex-shrink: 0;
}

.role-block,
.feat-block {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* Peran: tinggi nyaman + jarak · Fitur: mengisi sisa layar, kotak lebih kecil */
.role-block {
	flex: 0 0 auto;
}

.feat-block {
	flex: 1 1 auto;
}

.role-block .block-label,
.feat-block .block-label {
	flex-shrink: 0;
}

.brand-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	background: #ffffff;
	border-radius: 8px;
	flex-shrink: 0;
}

.brand-chip .wordmark {
	height: 28px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
	display: block;
}

.studio-org {
	margin: 0;
	font-size: 11px;
	opacity: 0.85;
	font-weight: 600;
	line-height: 1.35;
}

.studio-title {
	margin: 2px 0 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

.block-label {
	margin: 0 0 6px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.7;
}

.role-nav,
.step-nav {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.role-nav {
	gap: 8px;
	flex: 0 0 auto;
}

.step-nav {
	gap: 3px;
	flex: 1 1 auto;
}

.role-btn,
.step {
	text-align: left;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: #e8eef5;
	border-radius: 4px;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
	font-family: inherit;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.role-btn {
	flex: 0 0 auto;
	min-height: 48px;
	padding: 10px 12px;
	font-size: 13px;
}

.step {
	flex: 1 1 0;
	min-height: 0;
	padding: 4px 10px;
	font-size: 12px;
}

.role-btn:hover,
.step:hover {
	background: rgba(255, 255, 255, 0.09);
}

.role-btn.active {
	background: rgba(201, 162, 39, 0.18);
	border-color: var(--gold);
	box-shadow: inset 3px 0 0 var(--gold);
}

.role-btn .role-tag {
	display: block;
	font-size: 10px;
	font-weight: 700;
	opacity: 0.7;
	margin-bottom: 2px;
}

.step.active {
	background: var(--rail);
	border-color: var(--gold);
	box-shadow: inset 3px 0 0 var(--gold);
}

.step.modal-step {
	font-size: 12px;
	font-weight: 500;
	padding: 6px 10px;
	border-style: dashed;
}

.step.modal-step.active {
	background: rgba(201, 162, 39, 0.2);
}

.step-group-label {
	margin-top: 4px;
}

/* - kanvas: mockup jendela desktop - */
.stage {
	position: relative;
	min-width: 0;
	height: 100vh;
	overflow: hidden;
	isolation: isolate;
	display: grid;
	place-items: center;
	padding: 18px 16px;
	background:
		radial-gradient(ellipse at 28% 18%, rgba(201, 162, 39, 0.14), transparent 46%),
		linear-gradient(160deg, #4a6078 0%, #31485f 45%, #24384c 100%);
}

.desk-win {
	width: min(1180px, 100%);
	height: min(820px, 100%);
	background: var(--ground);
	border-radius: 8px;
	overflow: hidden;
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.38),
		0 0 0 1px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.win-titlebar {
	height: 32px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 8px 0 10px;
	background: #f0f3f7;
	border-bottom: 1px solid #cfd7e2;
	flex-shrink: 0;
	user-select: none;
}

.win-icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.win-title {
	flex: 1;
	font-size: 12px;
	font-weight: 600;
	color: #2a3545;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.win-controls {
	display: flex;
	gap: 2px;
}

.win-btn {
	width: 34px;
	height: 24px;
	display: grid;
	place-items: center;
	font-size: 11px;
	color: #2a3545;
	border-radius: 4px;
}

.win-btn.close {
	font-size: 14px;
}

.desk-body {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	background: var(--ground);
}

.menu-host {
	position: absolute;
	inset: 0;
	z-index: 10040;
	pointer-events: none;
	overflow: visible;
}

.menu-host .menu {
	pointer-events: auto;
}

#app-root {
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
	z-index: 1;
}

#app-root > .page {
	min-height: 100%;
	height: 100%;
	overflow-y: auto;
}

#app-root > .app-frame {
	height: 100%;
	max-height: 100%;
}

/* overlay terkurung di dalam jendela desktop */
.desk-body .modal-backdrop,
.desk-body .modal-back,
.desk-body .wa-back {
	position: absolute;
}

.desk-body .preview {
	position: static;
}

/* Menu aksi di menu-host · absolute relatif desk-body (sama visual dashboard) */
.desk-body .menu,
.menu-host .menu {
	position: absolute;
}

.desk-body .toast-host {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 80;
}

/* - ikon berkas (FileGlyph) - */
.glyph {
	width: 22px;
	height: 22px;
	display: block;
	flex-shrink: 0;
}

.glyph.lg {
	width: 48px;
	height: 48px;
}

/* - modal bersama - */
.modal-message {
	margin: 0;
	color: var(--muted);
	font-size: var(--fs-body);
	line-height: 1.5;
}

.modal.confirm {
	width: min(400px, 100%);
	gap: 12px;
}

.modal-actions {
	margin-top: 4px;
}

.raw-once {
	font-family: var(--font-mono);
	font-size: var(--fs-small);
	word-break: break-all;
	background: var(--raised);
	border: 1px solid var(--border);
	border-radius: var(--radius-control);
	padding: 12px;
	margin: 0;
	line-height: 1.5;
}

.field {
	display: grid;
	gap: 6px;
}

.field-label {
	font-size: var(--fs-small, 0.85rem);
	font-weight: 600;
	color: var(--text);
}

textarea {
	font: inherit;
	color: inherit;
}

/* - toast - */
.toast-host {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 300;
	display: grid;
	gap: 8px;
	pointer-events: none;
}

.toast {
	background: var(--rail);
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	padding: 10px 14px;
	border-radius: var(--radius-control);
	box-shadow: var(--shadow-modal);
	animation: board-in 0.25s var(--ease-out) both;
}

/* - multi-select (OPD tujuan / akses) - */
.ms {
	position: relative;
}

.ms-control {
	width: 100%;
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-control);
	background: var(--raised, #fff);
	color: var(--text);
	text-align: left;
	cursor: pointer;
}

.ms.open .ms-control {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.ms-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.ms-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
	padding: 3px 4px 3px 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--accent) 12%, #fff);
	color: var(--text);
	font-size: 0.82rem;
	line-height: 1.2;
}

.ms-chip-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ms-chip-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	font-size: 14px;
	line-height: 1;
	color: var(--muted);
	cursor: pointer;
}

.ms-chip-x:hover {
	background: color-mix(in srgb, var(--accent) 22%, #fff);
	color: var(--text);
}

.ms-placeholder {
	color: var(--muted);
	flex: 1;
}

.ms-caret {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--muted);
	flex-shrink: 0;
	margin-right: 2px;
}

.ms.open .ms-caret {
	transform: rotate(180deg);
}

.ms-panel {
	position: absolute;
	z-index: 30;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	background: var(--raised, #fff);
	border: 1px solid var(--border);
	border-radius: var(--radius-control);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
	overflow: hidden;
}

.ms-search {
	width: 100%;
	border: 0 !important;
	border-bottom: 1px solid var(--border) !important;
	border-radius: 0 !important;
	padding: 10px 12px !important;
	height: auto !important;
	background: transparent;
}

.ms-options {
	max-height: 200px;
	overflow: auto;
	padding: 6px;
	display: grid;
	gap: 2px;
}

.ms-option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.ms-option:hover {
	background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.ms-option.selected {
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	font-weight: 600;
}

.ms-check {
	width: 16px;
	height: 16px;
	border: 1.5px solid var(--control);
	border-radius: 4px;
	flex-shrink: 0;
	position: relative;
	background: #fff;
}

.ms-option.selected .ms-check {
	border-color: var(--accent);
	background: var(--accent);
}

.ms-option.selected .ms-check::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ms-empty {
	margin: 0;
	padding: 12px;
	color: var(--muted);
	font-size: 0.85rem;
	text-align: center;
}

/* - menu aksi (ActionIcons) - */
.item-menu {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.item-menu.open {
	z-index: 40;
}

.item-menu .more-btn,
.more-btn.plain {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-control, 4px);
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	transition: color 120ms ease;
}

.item-menu .more-btn:hover,
.item-menu.open .more-btn {
	background: var(--active);
	color: var(--accent);
}

.menu {
	position: fixed;
	z-index: 10050;
	min-width: 196px;
	padding: 6px;
	border: 1px solid #c5d0de;
	border-radius: 10px;
	background: #ffffff;
	box-shadow:
		0 0 0 1px rgba(8, 40, 90, 0.06),
		0 16px 40px rgba(8, 40, 90, 0.28);
	display: grid;
	gap: 2px;
	box-sizing: border-box;
}

.menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 40px;
	padding: 0 10px;
	border: 0;
	border-radius: 6px;
	background: #ffffff;
	color: var(--text);
	font: inherit;
	font-size: 13.5px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
}

.menu-item:hover {
	background: var(--active);
	color: var(--accent);
}

.menu-item.danger {
	color: var(--negative);
}

.menu-item.danger:hover {
	background: #fdecea;
	color: var(--negative);
}

.menu-item .ico {
	display: inline-flex;
	width: 20px;
	justify-content: center;
	color: currentColor;
}

/* - dashboard - */
.dash-page {
	flex: 1;
	min-height: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
}

.dash-grid {
	flex: 1;
	overflow: auto;
	padding: 16px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 14px;
	align-content: start;
	background: #fff;
}

.dash-grid::-webkit-scrollbar {
	display: block;
	width: 8px;
}

.dash-grid::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--accent) 35%, #c5d0dc);
	border-radius: 999px;
}

.dash-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 12px;
	display: grid;
	gap: 8px;
	min-height: 180px;
	align-content: start;
}

.dash-card h3 {
	margin: 0;
	font-size: 0.95rem;
}

.dash-chart {
	min-height: 160px;
}

.dash-chart svg {
	width: 100%;
	height: auto;
	display: block;
}

.dash-canvas-text {
	margin: 0;
	white-space: pre-wrap;
	font-family: var(--font);
	font-size: 0.8rem;
	line-height: 1.55;
	color: var(--muted);
}

/* - Kotak Surat - */
.mail-page {
	height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, #f3f6fa 0%, #eef3f8 40%, #f7f9fc 100%);
}

.mail-head {
	align-items: center;
	gap: 16px;
	border-bottom: 1px solid color-mix(in srgb, var(--rail, #0b3d6e) 18%, #d7e0ea);
	padding-bottom: 12px;
}

.mail-head-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.mail-head-logo {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.mail-kicker {
	margin: 0;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted, #5a6b7d);
}

.mail-head h1 {
	margin: 2px 0 0;
	font-size: 1.35rem;
	color: var(--rail, #0b3d6e);
}

.mail-empty {
	padding: 28px 8px;
	text-align: center;
}

.mail-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mail-item {
	position: relative;
	display: flex;
	align-items: stretch;
}

.mail-row {
	flex: 1;
	min-width: 0;
	text-align: left;
	border: 1px solid #cfd9e6;
	border-left: 3px solid var(--rail, #0b3d6e);
	border-radius: 2px;
	background: #fff;
	padding: 14px 48px 14px 16px;
	cursor: pointer;
	font: inherit;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mail-row:hover {
	background: #f8fafc;
}

.mail-row-top {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.mail-row-sub {
	font-size: 0.92rem;
}

.mail-row-time {
	font-size: 0.78rem;
	color: var(--muted, #5a6b7d);
}

.mail-chip {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--rail, #0b3d6e);
	border: 1px solid color-mix(in srgb, var(--rail, #0b3d6e) 35%, #fff);
	padding: 2px 7px;
	border-radius: 2px;
	background: color-mix(in srgb, var(--rail, #0b3d6e) 8%, #fff);
}

.mail-row-del {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 2px;
	background: transparent;
	color: var(--negative, #b42318);
	cursor: pointer;
	opacity: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mail-item:hover .mail-row-del,
.mail-item:focus-within .mail-row-del {
	opacity: 1;
}

.mail-view-shell {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	overflow: auto;
}

.mail-view-bar {
	display: flex;
	gap: 8px;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
	padding: 0 2px;
}

.mail-view {
	padding: 18px 22px 28px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 0;
	flex: 1;
	background: #fff;
	border: 1px solid #d5dee8;
	border-radius: 2px;
	box-shadow: 0 1px 0 rgba(11, 61, 110, 0.04);
}

.mail-letterhead {
	position: relative;
	display: block;
	min-height: 56px;
	padding: 4px 64px 12px;
	border-bottom: 3px solid var(--rail, #0b3d6e);
	text-align: center;
}

.mail-seal {
	position: absolute;
	left: 0;
	top: 0;
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.mail-letterhead-text strong {
	display: block;
	font-size: 1rem;
	letter-spacing: 0.04em;
	color: var(--rail, #0b3d6e);
}

.mail-letterhead-text span {
	display: block;
	font-size: 0.82rem;
	color: var(--muted, #5a6b7d);
	margin-top: 2px;
}

.mail-title {
	margin: 4px 0 0;
	font-size: 1.28rem;
	color: #12263a;
	line-height: 1.35;
}

.mail-meta {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px 16px;
	padding: 12px 14px;
	background: #f4f7fb;
	border: 1px solid #d9e2ec;
}

.mail-meta dt {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted, #5a6b7d);
	margin: 0 0 2px;
}

.mail-meta dd {
	margin: 0;
	font-size: 0.95rem;
	color: #12263a;
}

.meta-opd {
	display: block;
	font-size: 0.85rem;
	color: var(--muted, #5a6b7d);
	margin-top: 2px;
}

.mail-body-wrap {
	border-top: 1px solid #e2e8f0;
	padding-top: 12px;
	flex: 1;
	min-height: 0;
}

.mail-body {
	white-space: pre-wrap;
	font: inherit;
	margin: 0;
	line-height: 1.65;
	color: #1a2b3c;
}

.mail-attach {
	border-top: 1px solid #e2e8f0;
	padding-top: 12px;
}

.mail-attach h2 {
	margin: 0 0 8px;
	font-size: 0.95rem;
	color: var(--rail, #0b3d6e);
}

.mail-attach ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.attach-link {
	border: 1px solid #c9d4e2;
	background: #fff;
	color: var(--rail, #0b3d6e);
	padding: 8px 12px;
	border-radius: 2px;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
}

.modal-back {
	position: fixed;
	inset: 0;
	background: rgba(18, 38, 58, 0.4);
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 16px;
}

.modal.mail-form {
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 560px;
	width: 100%;
	border-radius: 2px;
	border-color: #cfd9e6;
}

.mail-form-head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--rail, #0b3d6e);
	margin-bottom: 4px;
}

.mail-form-head h2 {
	margin: 0;
	font-size: 1.1rem;
	color: var(--rail, #0b3d6e);
	align-self: center;
}

.mail-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.9rem;
}

.mail-form input,
.mail-form textarea,
.mail-form select {
	border: 1px solid #c9d4e2;
	border-radius: 2px;
	padding: 9px 11px;
	font: inherit;
	height: 40px;
	background: #fff;
}

.mail-form textarea {
	height: auto;
	line-height: 1.5;
	resize: vertical;
}

.mail-form .ms-control {
	border-radius: 2px;
	border-color: #c9d4e2;
	background: #fff;
}

.mail-attach-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.attach-label {
	font-size: 0.9rem;
	color: var(--muted);
	font-weight: 500;
}

.attach-upload-wrap {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.attach-upload-menu {
	display: flex;
	flex-direction: column;
	min-width: 180px;
	border: 1px solid #c9d4e2;
	border-radius: 2px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(18, 38, 58, 0.12);
	overflow: hidden;
	z-index: 2;
}

.attach-upload-menu button {
	border: 0;
	background: #fff;
	text-align: left;
	padding: 10px 12px;
	font: inherit;
	cursor: pointer;
}

.attach-upload-menu button:hover {
	background: #f1f5f9;
}

.attach-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.attach-chips li {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #c9d4e2;
	border-radius: 2px;
	padding: 6px 8px;
	background: #f8fafc;
}

.chip-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.88rem;
}

.chip-src {
	font-size: 0.72rem;
	color: var(--muted, #5a6b7d);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.chip-x {
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	color: var(--muted, #5a6b7d);
}

.confirm-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 4px;
}

.modal.picker {
	width: min(440px, 100%);
	max-height: min(70vh, 560px);
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	gap: 0;
}

.picker-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 14px;
	border-bottom: 1px solid #d5dee8;
	font-weight: 600;
	color: var(--rail, #0b3d6e);
}

.picker-close,
.canvas-close {
	border: 0;
	background: transparent;
	font-size: 1.25rem;
	cursor: pointer;
	line-height: 1;
	color: var(--muted);
}

.picker-crumb {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	padding: 8px 14px;
	border-bottom: 1px solid #e2e8f0;
	font-size: 0.85rem;
}

.picker-crumb button {
	border: 0;
	background: transparent;
	color: var(--rail, #0b3d6e);
	cursor: pointer;
	font: inherit;
	padding: 0;
}

.picker-list {
	list-style: none;
	margin: 0;
	padding: 8px;
	overflow: auto;
	flex: 1;
	min-height: 0;
}

.picker-row {
	width: 100%;
	text-align: left;
	border: 0;
	background: transparent;
	padding: 8px 10px;
	border-radius: 2px;
	cursor: pointer;
	font: inherit;
	display: flex;
	align-items: center;
	gap: 10px;
}

.picker-row:hover {
	background: #f1f5f9;
}

/* - Aplikasi - */
.apps-page {
	height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.apps-head-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.apps-head-row h1 {
	margin: 0;
}

.apps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.apps-card {
	border: 1px solid var(--border);
	border-radius: var(--radius-card, 6px);
	background: var(--surface);
	box-shadow: var(--shadow-tile);
	display: flex;
	flex-direction: column;
	min-width: 0;
	position: relative;
}

.apps-card-btn {
	cursor: pointer;
	font: inherit;
	color: inherit;
	padding: 16px;
	gap: 6px;
	text-align: left;
}

.apps-card-btn:hover {
	border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.apps-card-main {
	border: 0;
	background: transparent;
	text-align: left;
	padding: 16px;
	padding-right: 40px;
	cursor: pointer;
	font: inherit;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.apps-card-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.apps-card-url,
.apps-card-session {
	font-size: 0.85rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.apps-card-more {
	position: absolute;
	top: 8px;
	right: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.12s ease;
}

.apps-card:hover .apps-card-more,
.apps-card:focus-within .apps-card-more,
.apps-card-more:has(.more-menu) {
	opacity: 1;
	pointer-events: auto;
}

.apps-card-more .more-btn {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 4px;
	color: inherit;
	border-radius: 4px;
	display: inline-flex;
}

.apps-card-more .more-btn:hover {
	background: rgba(8, 58, 120, 0.08);
}

.more-menu {
	position: absolute;
	right: 0;
	top: 100%;
	min-width: 120px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	box-shadow: var(--shadow-modal);
	display: flex;
	flex-direction: column;
	z-index: 5;
	overflow: hidden;
}

.more-menu button {
	border: 0;
	background: transparent;
	text-align: left;
	padding: 10px 12px;
	font: inherit;
	cursor: pointer;
}

.more-menu button:hover {
	background: rgba(8, 58, 120, 0.06);
}

.more-menu .danger {
	color: var(--negative, #b42318);
}

.apps-viewer {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	position: relative;
}

.apps-frame {
	flex: 1;
	min-height: 0;
	width: 100%;
	border: 0;
	background: #fff;
}

.modal.apps-form {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 420px;
	width: 100%;
}

.apps-form h2 {
	margin: 0;
	font-size: 1.1rem;
}

.apps-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.detail-list {
	margin: 0;
	display: grid;
	gap: 10px;
}

.detail-list div {
	display: grid;
	grid-template-columns: 6rem 1fr;
	gap: 8px;
}

.detail-list dt {
	color: var(--muted);
}

.detail-list dd {
	margin: 0;
	word-break: break-all;
}

/* - Profil / API key - */
.settings {
	min-width: 0;
}

.settings-keys {
	flex: 1 1 auto;
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;
}

.settings-keys.has-detail {
	grid-template-columns: minmax(0, 1fr) 320px;
}

.settings-keys .page-body {
	overflow: auto;
	min-height: 0;
}

.key-detail-body {
	justify-items: stretch;
	width: 100%;
}

.key-detail-list {
	width: 100%;
	margin: 0;
	display: grid;
	gap: 10px;
}

.key-detail-list > div {
	display: grid;
	gap: 2px;
}

.key-detail-list dt {
	font-size: 0.78rem;
	color: var(--muted);
}

.key-detail-list dd {
	margin: 0;
	font-weight: 600;
	word-break: break-word;
}

.settings .page-body.narrow {
	display: grid;
	gap: 20px;
	align-content: start;
}

.settings .table-card,
.settings .table-wrap {
	overflow: visible;
}

.section-title {
	font-size: 15px;
	font-weight: 600;
	margin: 4px 0 -8px;
}

.acct-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 8px 12px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	background: var(--surface);
	box-shadow: var(--shadow-tile);
}

.acct-meta {
	flex: 1;
	min-width: 0;
	display: grid;
	gap: 2px;
}

.acct-meta strong {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.acct-meta span {
	font-size: var(--fs-small, 12px);
	color: var(--muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.col-photo {
	width: 56px;
}

.col-role {
	width: 6rem;
}

.col-status {
	width: 6.5rem;
}

.acct-table .col-actions {
	width: 6.5rem;
	text-align: right;
	padding-right: 8px;
}

.key-table .col-actions {
	width: 4rem;
	text-align: right;
	padding-right: 8px;
}

.col-prefix {
	width: 9rem;
}

.col-scope {
	width: 8rem;
}

.col-date {
	width: 9rem;
	white-space: nowrap;
}

.settings .row-end {
	display: inline-flex;
	justify-content: flex-end;
	align-items: center;
	gap: 2px;
}

.row-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 1px solid var(--border);
	background: var(--raised);
	flex-shrink: 0;
}

.row-avatar.placeholder {
	background: var(--active);
}

.icon-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: var(--radius-control);
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}

.icon-action:hover {
	background: var(--active);
	color: var(--accent);
}

.icon-action.danger:hover {
	color: var(--negative);
	background: #fdecea;
}

.avatar-field .avatar-pick {
	position: relative;
	width: 72px;
	height: 72px;
	display: inline-flex;
}

.avatar-pick .row-avatar {
	width: 72px;
	height: 72px;
}

.docs-modal {
	width: min(560px, 100%);
}

.docs-modal pre {
	margin: 0;
	padding: 12px;
	background: #0f1724;
	color: #e8eef5;
	border-radius: var(--radius-control);
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.55;
	overflow: auto;
	white-space: pre-wrap;
}

/* - AI Agent - */
.ai-shell {
	--ai-side: 260px;
	--ai-canvas: 0px;
	display: grid;
	grid-template-columns: var(--ai-side) minmax(0, 1fr) var(--ai-canvas);
	height: 100%;
	min-height: 0;
	background: var(--ground);
}

.ai-shell:not(.canvas-collapsed) {
	--ai-canvas: 46%;
}

.ai-shell.sidebar-collapsed {
	--ai-side: 52px;
}

.ai-shell.canvas-collapsed .ai-canvas {
	display: none;
}

.ai-side {
	border-right: 1px solid var(--rule);
	background: var(--surface);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
}

.side-top {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 12px;
	border-bottom: 1px solid var(--rule);
}

.new-chat {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-control);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	font: inherit;
	font-weight: 500;
}

.new-chat:hover {
	background: var(--active);
}

.sidebar-collapsed .side-top .new-chat {
	display: none;
}

.icon-toggle,
.icon-only {
	width: 36px;
	height: 36px;
	border: 1px solid var(--border);
	border-radius: var(--radius-control);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.side-icons {
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hist {
	list-style: none;
	margin: 0;
	padding: 8px;
	overflow: auto;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hist-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
	border-radius: var(--radius-control);
}

.hist-row:hover,
.hist-row.active {
	background: var(--active);
}

.hist-item {
	flex: 1;
	min-width: 0;
	text-align: left;
	border: 0;
	background: transparent;
	padding: 10px 8px 10px 12px;
	cursor: pointer;
	font: inherit;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hist-menu-btn {
	opacity: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 6px 8px;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1;
}

.hist-row:hover .hist-menu-btn {
	opacity: 1;
}

.hist-empty {
	padding: 12px;
	color: var(--muted);
	font-size: var(--fs-body);
}

.side-foot {
	padding: 8px 12px 12px;
	border-top: 1px solid var(--rule);
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.arch-open {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: transparent;
	padding: 10px 12px;
	border-radius: var(--radius-control);
	cursor: pointer;
	font: inherit;
	color: var(--muted);
	text-align: left;
}

.arch-open:hover,
.arch-open.active-body {
	background: var(--active);
	color: var(--text);
}

.ai-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.ai-main-top {
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	min-height: 0;
	padding: 10px 16px 0;
	flex-shrink: 0;
}

.canvas-reopen {
	min-width: 5.5rem;
	margin-left: auto;
}

.canvas-stack {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	max-width: min(240px, 42vw);
	margin-left: auto;
}

.canvas-stack-btn {
	width: 100%;
	justify-content: flex-start;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 10px;
}

.chat-log {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding: 20px 16px;
}

.chat-log.is-empty {
	display: flex;
	align-items: center;
	justify-content: center;
}

.chat-inner {
	width: min(100%, 48rem);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.chat-inner.centered {
	align-items: center;
	text-align: center;
}

.hero-empty h2 {
	margin: 0;
	font-size: 1.5rem;
	color: var(--text);
}

.bubble {
	max-width: min(720px, 92%);
	padding: 12px 16px;
	border-radius: 18px;
	font-size: var(--fs-body);
	line-height: 1.55;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.msg-text {
	white-space: pre-wrap;
}

.bubble.user {
	align-self: flex-end;
	background: var(--rail);
	color: #fff;
	border-bottom-right-radius: 6px;
}

.bubble.bot {
	align-self: flex-start;
	background: var(--surface);
	border: 1px solid var(--border);
	border-bottom-left-radius: 6px;
	color: var(--text);
}

.composer {
	padding: 12px 16px 20px;
	background: linear-gradient(180deg, transparent, var(--ground) 28%);
}

.composer-box {
	width: min(100%, 48rem);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 24px;
	background: var(--surface);
	box-shadow: var(--shadow-tile);
}

.composer-row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.composer-box textarea {
	flex: 1;
	min-width: 0;
	border: 0;
	resize: none;
	outline: none;
	min-height: 1.4em;
	max-height: calc(1.4em * 4 + 8px);
	overflow-y: auto;
	padding: 8px 4px;
	font: inherit;
	line-height: 1.4;
	background: transparent;
	color: var(--text);
}

.attach,
.send {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 0;
	display: grid;
	place-items: center;
	cursor: pointer;
	flex-shrink: 0;
}

.attach {
	background: transparent;
	color: var(--muted);
}

.send {
	background: var(--rail);
	color: #fff;
}

.send:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.ai-sub-body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	overflow: hidden;
}

.ai-sub-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
	flex-shrink: 0;
}

.ai-sub-head strong {
	font-size: 1.05rem;
	color: var(--rail, #0b3d6e);
}

.ai-sub-meta {
	display: block;
	font-size: 0.82rem;
	color: var(--muted);
	font-weight: 400;
	margin-top: 2px;
}

.ai-sub-list {
	flex: 1;
	min-height: 0;
	overflow: auto;
	display: flex;
	flex-direction: column;
}

.ai-sub-card {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--border);
	align-items: flex-start;
	background: #fff;
}

.ai-sub-card-main {
	flex: 1;
	min-width: 0;
	display: grid;
	gap: 4px;
}

.ai-sub-card-main strong {
	font-weight: 650;
}

.ai-sub-card-main span {
	font-size: 0.82rem;
	color: var(--muted);
}

.ai-sub-card-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.ai-sub-body .pad {
	padding: 16px;
}

.ai-canvas {
	border-left: 1px solid var(--rule);
	background: var(--surface);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
}

.canvas-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--rule);
	flex-shrink: 0;
}

.canvas-head-left {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	flex: 1;
}

.canvas-title {
	font-weight: 600;
	font-size: var(--fs-body);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
	max-width: 100%;
	border: 0;
	background: transparent;
	padding: 0;
	text-align: left;
	font-family: inherit;
	color: inherit;
	cursor: text;
}

.canvas-kind-badge {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--muted);
	border: 1px solid var(--border);
	border-radius: var(--radius-control);
	padding: 2px 6px;
	flex-shrink: 0;
}

.canvas-head-actions {
	display: flex;
	align-items: stretch;
	gap: 8px;
	flex-shrink: 0;
}

.canvas-view-toggle {
	display: inline-flex;
	border: 1px solid var(--border);
	border-radius: var(--radius-control);
	overflow: hidden;
}

.canvas-view-toggle button {
	border: 0;
	background: var(--raised);
	color: var(--muted);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 10px;
	cursor: pointer;
}

.canvas-view-toggle button.active {
	background: var(--rail);
	color: #fff;
}

.canvas-version-btn {
	border: 1px solid var(--border);
	border-radius: var(--radius-control);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 10px;
	cursor: pointer;
	height: 100%;
}

.canvas-save-btn {
	padding: 0 12px;
	min-height: 0;
	font-size: 13px;
}

.canvas-body {
	flex: 1;
	min-height: 0;
	overflow: auto;
	background: var(--ground);
	scrollbar-width: thin;
}

.canvas-body::-webkit-scrollbar {
	display: block;
	width: 8px;
}

.canvas-body::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--accent) 35%, #c5d0dc);
	border-radius: 999px;
}

.letter {
	background: #fff;
	margin: 0;
	padding: 28px 30px 36px;
	font-size: 13px;
	line-height: 1.55;
	color: #111;
	min-height: 100%;
}

.letter .kop {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 14px;
	align-items: center;
	padding-bottom: 8px;
	border-bottom: 3px double #111;
	margin-bottom: 14px;
}

.letter .kop img {
	width: 62px;
	height: 62px;
	object-fit: contain;
}

.letter .kop div {
	text-align: center;
}

.letter .kop strong {
	display: block;
	font-size: 16px;
	letter-spacing: 0.03em;
}

.letter .kop small {
	display: block;
	font-size: 11px;
	line-height: 1.4;
}

.letter dl {
	margin: 0 0 12px;
	display: grid;
	grid-template-columns: 70px 1fr;
	gap: 2px 8px;
}

.letter dt {
	margin: 0;
}

.letter dd {
	margin: 0;
}

.letter p {
	margin: 0 0 10px;
}

.letter ol {
	margin: 0 0 10px;
	padding-left: 20px;
}

.save-body {
	padding: 14px;
	display: grid;
	gap: 8px;
}

.save-label {
	margin: 4px 0 0;
	font-size: var(--fs-small);
	font-weight: 600;
	color: var(--muted);
}

.save-seg {
	display: inline-flex;
	width: fit-content;
	border: 1px solid var(--border);
	border-radius: var(--radius-control);
	overflow: hidden;
}

.save-seg button {
	border: 0;
	border-right: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-size: 13px;
	padding: 8px 14px;
	cursor: pointer;
}

.save-seg button:last-child {
	border-right: 0;
}

.save-seg button.active {
	background: var(--rail);
	color: #fff;
}

.modal.save-modal {
	width: min(440px, 100%);
	padding: 0;
	gap: 0;
}

.save-actions {
	padding: 12px 14px 14px;
	border-top: 1px solid var(--rule);
}

/* - WhatsApp di body AI (bukan modal) - */
.wa-body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	overflow: hidden;
}

.wa-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
	flex-shrink: 0;
}

.wa-sub {
	display: block;
	font-size: 0.82rem;
	color: var(--muted);
	font-weight: 400;
	margin-top: 2px;
}

.wa-qr-box {
	flex: 1;
	padding: 24px;
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 10px;
	overflow: auto;
}

.wa-qr-title {
	margin: 0;
	font-weight: 600;
}

.wa-qr-img {
	width: min(224px, 70vw);
	height: auto;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
	display: block;
}

/* - responsif tour - */
@media (max-width: 900px) {
	body {
		grid-template-columns: 220px minmax(0, 1fr);
	}
}


.canvas-head { flex-wrap: wrap; }
.canvas-head-left { flex: 1 1 140px; }
.canvas-kind-badge { display: none; }
@media (min-width: 1300px) { .canvas-kind-badge { display: inline-block; } }


/* pane toggle API key */
.pane-toggle {
	display: inline-flex;
	border: 1px solid var(--border);
	border-radius: 6px;
	overflow: hidden;
	background: var(--surface);
}
.pane-toggle button {
	border: 0;
	background: transparent;
	padding: 8px 12px;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--muted);
	cursor: pointer;
}
.pane-toggle button + button { border-left: 1px solid var(--border); }
.pane-toggle button.active { background: var(--rail); color: #fff; }
.settings:has(.docs-page) { background: #e8eef5; }
/* Scroll penuh lebar sheet · scrollbar di ujung kanan */
.settings .page-body.docs-page {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-align: left;
	display: block;
	overflow: auto;
}
.docs-inner {
	width: min(920px, 100%);
	max-width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	padding: clamp(12px, 2.2vw, 28px) clamp(12px, 2.5vw, 28px) clamp(28px, 4vw, 48px);
	display: flex;
	flex-direction: column;
	gap: clamp(12px, 1.8vw, 18px);
}
.docs-hero {
	background: linear-gradient(145deg, #062a58 0%, #0a458a 55%, #0d5aa8 100%);
	color: #f4f8fc;
	border-radius: 10px;
	padding: clamp(18px, 3vw, 28px) clamp(16px, 3vw, 28px);
	border: 1px solid #041f42;
	box-shadow: 0 10px 28px rgba(6, 42, 88, 0.22);
	position: relative;
	overflow: hidden;
}
.docs-hero::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, #c9a227, #f0d77a, #c9a227);
}
.docs-kicker {
	margin: 0 0 8px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f0d77a;
}
.docs-hero h2 {
	margin: 0 0 10px;
	font-size: clamp(1.25rem, 2.4vw, 1.65rem);
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
}
.docs-lead {
	margin: 0;
	max-width: 52rem;
	line-height: 1.55;
	font-size: clamp(0.9rem, 1.6vw, 0.98rem);
	color: #e2edf8;
}
.docs-lead code {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	padding: 1px 6px;
	border-radius: 4px;
}
.docs-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fff;
	border: 1px solid #c9d6e6;
	border-radius: 10px;
	padding: clamp(14px, 2.2vw, 22px);
	box-shadow: 0 1px 0 rgba(8, 40, 90, 0.04), 0 8px 22px rgba(8, 40, 90, 0.06);
}
.docs-page h3 {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	font-size: clamp(1rem, 1.8vw, 1.12rem);
	color: #062a58;
	border-bottom: 1px solid #e2eaf3;
	padding-bottom: 10px;
}
.docs-num {
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: 0.78em;
	font-weight: 700;
	color: #c9a227;
	letter-spacing: 0.04em;
}
.docs-page p, .docs-page li {
	margin: 0;
	line-height: 1.6;
	font-size: clamp(0.88rem, 1.5vw, 0.95rem);
	color: #243447;
}
.docs-page ul, .docs-page ol {
	margin: 0;
	padding-left: 1.25rem;
	display: grid;
	gap: 7px;
}
.docs-page pre {
	margin: 0;
	padding: 14px 16px;
	border-radius: 8px;
	border: 1px solid #1a3354;
	background: #0c2340;
	color: #e8eef5;
	overflow: auto;
	font-size: clamp(0.74rem, 1.4vw, 0.82rem);
	line-height: 1.5;
}
.docs-page pre code { color: inherit; background: transparent; padding: 0; font-size: inherit; }
.docs-page code {
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: 0.86em;
	background: #eef3f9;
	color: #062a58;
	padding: 1px 5px;
	border-radius: 4px;
}
.docs-page .tip {
	color: #5a6b7d;
	font-size: 0.86rem;
	padding: 10px 12px;
	border-left: 3px solid #c9a227;
	background: #f7f4ea;
	border-radius: 0 6px 6px 0;
}
@media (max-width: 720px) {
	.docs-inner { padding-left: 10px; padding-right: 10px; }
	.docs-card { padding: 14px 12px; }
	.head-actions .pane-toggle { width: 100%; }
	.pane-toggle button { flex: 1; text-align: center; }
}

/* WhatsApp tabs + kontak */
.wa-head-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.wa-tabs { display: inline-flex; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.wa-tabs button { border: 0; background: transparent; padding: 7px 12px; font: inherit; font-size: 0.84rem; cursor: pointer; color: var(--muted); }
.wa-tabs button + button { border-left: 1px solid var(--border); }
.wa-tabs button.active { background: var(--active, #dce7f4); color: inherit; font-weight: 600; }
.wa-contacts { flex: 1; min-height: 0; padding: 14px 16px 18px; overflow: auto; }
.wa-contact-list { display: grid; gap: 10px; }
.wa-contact-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.wa-contact-toolbar input { flex: 1; min-width: 160px; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; font: inherit; }
.wa-contact-card { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 8px; padding: 12px; background: #fff; }
.wa-contact-card .muted { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--muted); }
.wa-contact-actions { display: flex; gap: 6px; flex-shrink: 0; }


/* ---- file preview mock (samakan dengan dashboard) ---- */
.office-wrap {
	width: 100%;
	height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: var(--raised, #f3f6fa);
}
.office-host {
	flex: 1 1 auto;
	min-height: min(70vh, 720px);
	width: 100%;
	overflow: auto;
	background: #fff;
}
.office-host.is-doc {
	background: #b8b8b8;
	padding: 20px 16px 28px;
}
.office-host.is-doc .docx-fallback {
	max-width: 816px;
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 0 0 1px #8a8a8a, 0 4px 18px rgba(0,0,0,.28);
	padding: 48px 56px;
	min-height: 1056px;
	box-sizing: border-box;
	font-family: Calibri, "Segoe UI", system-ui, sans-serif;
	line-height: 1.55;
	color: #1a1a1a;
}
.office-host.is-doc .docx-fallback .letter {
	box-shadow: none;
	padding: 0;
	margin: 0;
	max-width: none;
}
.office-host.is-excel {
	min-height: min(75vh, 820px);
	background: #f3f3f3;
}
.xls-fallback-bar {
	padding: 8px 12px;
	background: #217346;
	color: #fff;
	font-size: .85rem;
	font-weight: 600;
}
.xls-fallback table {
	border-collapse: collapse;
	width: 100%;
	font-size: .85rem;
	font-family: Calibri, "Segoe UI", system-ui, sans-serif;
	background: #fff;
}
.xls-fallback th,
.xls-fallback td {
	border: 1px solid #d0d0d0;
	padding: 4px 8px;
	min-width: 64px;
}
.xls-fallback th { background: #f0f0f0; font-weight: 600; text-align: left; }

.pdf-stage {
	width: 100%;
	min-height: 100%;
	background: #525659;
	padding: 24px 16px 40px;
	overflow: auto;
	box-sizing: border-box;
}
.pdf-page {
	max-width: 820px;
	margin: 0 auto;
	background: #fff;
	padding: 48px 52px;
	min-height: 1060px;
	box-shadow: 0 8px 28px rgba(0,0,0,.35);
	box-sizing: border-box;
	color: #1a1a1a;
	font-family: "Noto Sans", "Segoe UI", sans-serif;
	line-height: 1.55;
}
.pdf-kop {
	display: flex;
	gap: 14px;
	align-items: center;
	border-bottom: 3px solid #0b3d6e;
	padding-bottom: 12px;
	margin-bottom: 18px;
}
.pdf-kop img { width: 64px; height: 64px; object-fit: contain; }
.pdf-kop strong { display: block; font-size: .95rem; color: #0b3d6e; }
.pdf-kop small { color: #5a6b7d; font-size: .78rem; }
.pdf-page h2 { margin: 0 0 8px; font-size: 1.25rem; color: #0b3d6e; }
.pdf-page h3 { margin: 18px 0 8px; font-size: 1rem; }
.pdf-meta { color: #5a6b7d; font-size: .85rem; margin: 0 0 14px; }
.pdf-table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: .9rem; }
.pdf-table th, .pdf-table td { border: 1px solid #d0dae6; padding: 8px 10px; text-align: left; }
.pdf-table th { background: #eef3f9; }
.pdf-foot { margin-top: 28px; padding-top: 10px; border-top: 1px solid #d0dae6; color: #5a6b7d; font-size: .78rem; }

.zip-preview {
	margin: 16px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}
.zip-preview header {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	background: #f3f6fa;
	border-bottom: 1px solid var(--border);
	font-size: .9rem;
}
.zip-preview ul { list-style: none; margin: 0; padding: 0; }
.zip-preview li {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--border);
	font-size: .88rem;
}
.zip-kind { color: var(--muted); font-weight: 700; font-size: .75rem; }
.zip-size { color: var(--muted); font-variant-numeric: tabular-nums; }

.img-preview {
	width: 100%;
	height: 100%;
	min-height: min(70vh, 640px);
	display: grid;
	place-items: center;
	background: #111827;
	padding: 20px;
	box-sizing: border-box;
}
.img-preview svg { width: min(960px, 100%); height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

.ppt-preview {
	display: grid;
	gap: 16px;
	padding: 20px;
	background: #2b2b2b;
	min-height: 100%;
	box-sizing: border-box;
}
.ppt-slide {
	max-width: 900px;
	margin: 0 auto;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #fff;
	border-radius: 6px;
	padding: 28px 32px;
	box-shadow: 0 10px 28px rgba(0,0,0,.35);
	box-sizing: border-box;
}
.ppt-label { margin: 0 0 8px; color: #5a6b7d; font-size: .8rem; font-weight: 700; }
.ppt-slide h2, .ppt-slide h3 { margin: 0 0 10px; color: #0b3d6e; }
.ppt-slide ul { margin: 0; padding-left: 1.2rem; line-height: 1.55; }
