body.is-office {
	padding-bottom: 0;
	background: #eef2ef;
}
body.is-office .topbar,
body.is-office .tabbar { display: none !important; }
body.is-office #screen.wrap {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	min-height: 100vh;
}

.office {
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: 100vh;
}
.office-side {
	background: var(--brand);
	color: #fff;
	padding: 20px 14px 28px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: auto;
}
.office-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 8px 18px;
	text-decoration: none;
	color: #fff;
	border-bottom: 1px solid rgba(255,255,255,.15);
	margin-bottom: 10px;
}
.office-brand img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	object-fit: cover;
}
.office-brand strong,
.office-brand small { display: block; line-height: 1.2; }
.office-brand small { color: var(--accent); font-size: 12px; }
.office-user {
	margin: 0 8px 4px;
	font-size: 13px;
	color: rgba(255,255,255,.8);
}
.office-ai {
	margin: 0 8px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
}
.office-ai[data-state="checking"] { color: rgba(255,255,255,.55); }
.office-ai[data-state="online"] { color: #7dffa0; }
.office-ai[data-state="offline"] { color: #ffb4b4; }
.office-nav {
	display: grid;
	gap: 4px;
}
.office-nav a,
.office-nav button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-height: 42px;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.office-nav a:hover,
.office-nav button:hover,
.office-nav a.is-on {
	background: rgba(255,255,255,.12);
}
.office-nav .count {
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--accent);
	color: #1d240c;
	font-size: 12px;
	font-weight: 800;
	display: inline-grid;
	place-items: center;
}
.office-nav .count:empty,
.office-nav .count[data-count="0"] { display: none; }
.office-foot {
	margin-top: auto;
	display: grid;
	gap: 4px;
	padding-top: 16px;
	border-top: 1px solid rgba(255,255,255,.15);
}
.office-main {
	padding: 22px 24px 40px;
	min-width: 0;
}
.office-head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.office-head h1 {
	margin: 0;
	font-size: 28px;
	color: var(--brand);
}
.office-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}
.office-tabs a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--muted);
	text-decoration: none;
	font-weight: 700;
}
.office-tabs a.is-on {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}
.office-tabs .count {
	font-size: 12px;
	opacity: .85;
}
.office-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}
.office-toolbar input {
	min-width: min(320px, 100%);
	margin: 0;
}
.office-panel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(20, 36, 26, .05);
}
.office-table-wrap { overflow: auto; }
.office-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 720px;
}
.office-table th,
.office-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: middle;
	font-size: 14px;
}
.office-table th {
	background: #f7faf7;
	color: var(--muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.office-table tr { cursor: pointer; }
.office-table tbody tr:hover { background: #f5faf6; }
.office-thumb {
	width: 56px;
	height: 56px;
	object-fit: contain;
	object-position: center;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--line, #d5e2d8);
	display: block;
}
.office-thumb.ph {
	display: grid;
	place-items: center;
	font-size: 11px;
	font-weight: 800;
	color: var(--brand);
	text-align: center;
	padding: 4px;
}
.office-empty {
	margin: 0;
	padding: 28px 16px;
	text-align: center;
	color: var(--muted);
}
.office-detail {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(220px, 320px) 1fr;
}
.office-detail .photo-lg { max-height: 360px; }
.office-detail > .stack {
	gap: 8px;
}
.office-modal[hidden] {
	display: none !important;
}
.office-modal {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: grid;
	place-items: center;
	padding: 16px;
}
.office-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 46, 15, .45);
}
.office-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(640px, 100%);
	max-height: min(90vh, 900px);
	overflow: auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 64px rgba(6, 46, 15, .28);
	padding: 18px 18px 16px;
}
.office-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
}
.office-modal-head h2 {
	margin: 0;
	font-size: 20px;
	color: var(--brand);
}
button.office-modal-x {
	width: 36px;
	min-width: 36px;
	height: 36px;
	min-height: 36px;
	padding: 0;
	border-radius: 10px;
	background: #eef5f0;
	color: var(--brand);
	font-size: 22px;
	line-height: 1;
}
.office-modal-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 4px;
}
.office-modal-actions .ghost {
	background: #fff;
	color: var(--brand);
	border: 1px solid var(--brand);
}
.office-modal .photo-action {
	position: relative;
}
body.office-modal-open {
	overflow: hidden;
}
.office-detail .note {
	padding: 10px 12px;
}
.office-detail .note p {
	margin: 4px 0 0;
}
.office-detail .note p:first-of-type {
	margin-top: 2px;
}
.office-meta {
	display: grid;
	gap: 2px;
}
.office-meta p {
	margin: 0;
	line-height: 1.35;
}
.office-meta .muted {
	margin-top: 4px;
}
.office-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}
.office-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
	font-weight: 700;
	text-decoration: none;
}
.office-mobile-toggle {
	display: none;
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 50;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 12px;
	background: var(--brand);
	color: #fff;
}
@media (max-width: 960px) {
	.office { grid-template-columns: 1fr; }
	.office-side {
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		width: min(280px, 86vw);
		z-index: 60;
		transform: translateX(-105%);
		transition: transform .2s ease;
	}
	body.office-nav-open .office-side { transform: translateX(0); }
	.office-mobile-toggle { display: grid; place-items: center; }
	.office-main { padding: 64px 14px 28px; }
	.office-detail { grid-template-columns: 1fr; }
}
