/* BrandSoft Files: black + red, built to survive theme button/input styles. */

.bsf,
.bsf-auth,
.bsf-uploads,
.bsf-toasts {
	--bsf-ink: #000000;
	--bsf-paper: #ffffff;
	--bsf-wash: #f2f3f5;
	--bsf-line: #d9dbe0;
	--bsf-muted: #5e6470;
	--bsf-red: #c8102e;
	--bsf-red-deep: #9e0b22;
	--bsf-ok: #1a7f37;
	--bsf-font: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	font-family: var(--bsf-font);
	font-size: 15px;
	line-height: 1.45;
	color: var(--bsf-ink);
	box-sizing: border-box;
}

.bsf *,
.bsf *::before,
.bsf *::after,
.bsf-uploads *,
.bsf-toasts * {
	box-sizing: border-box;
}

.bsf {
	position: relative;
	max-width: 1180px;
	margin: 0 auto 48px;
	background: var(--bsf-paper);
	border: 1px solid var(--bsf-line);
	border-radius: 10px;
	overflow: hidden;
}

/* Theme-proof resets */
.bsf button,
.bsf-uploads button {
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	margin: 0;
	min-height: 0;
	line-height: 1.2;
	cursor: pointer;
}
.bsf input,
.bsf select {
	font: inherit;
	margin: 0;
	box-shadow: none;
}
.bsf h2,
.bsf h3,
.bsf p {
	margin: 0;
	padding: 0;
}
.bsf :focus-visible,
.bsf-uploads :focus-visible {
	outline: 2px solid var(--bsf-red);
	outline-offset: 2px;
}
.bsf-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.bsf [hidden],
.bsf-uploads[hidden],
.bsf-uploads [hidden] {
	display: none !important;
}

.bsf .bsf-boot {
	padding: 48px 24px;
	text-align: center;
	color: var(--bsf-muted);
}

/* Header: the one bold element */
.bsf-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 24px;
	background: var(--bsf-paper);
	color: var(--bsf-ink);
	border-bottom: 4px solid var(--bsf-red);
}
.bsf-head.is-compact {
	justify-content: flex-end;
	padding-top: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--bsf-line);
}
.bsf .bsf-logo {
	display: block;
	height: 48px;
	width: auto;
	max-width: 100%;
}
.bsf .bsf-logo-mark {
	display: none;
	height: 40px;
	width: auto;
}
.bsf .bsf-client-logo {
	display: block;
	height: 60px;
	width: auto;
	flex: none;
}
.bsf-brand-divider {
	flex: none;
	width: 1px;
	height: 40px;
	background: var(--bsf-line);
}
.bsf .bsf-brand.has-client .bsf-logo {
	height: 36px;
}
.bsf-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.bsf-mark {
	flex: none;
	width: 14px;
	height: 28px;
	background: var(--bsf-red);
	border-radius: 2px;
}
.bsf .bsf-title {
	font-family: var(--bsf-font);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--bsf-paper);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bsf-who {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14px;
	color: var(--bsf-muted);
}
.bsf .bsf-signout {
	color: var(--bsf-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.bsf .bsf-signout:hover {
	color: var(--bsf-red);
}

.bsf .bsf-officebtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px solid var(--bsf-line);
	border-radius: 6px;
	background: var(--bsf-paper);
	color: var(--bsf-ink);
	font-size: 13px;
	font-weight: 600;
}
.bsf .bsf-officebtn:hover {
	background: var(--bsf-wash);
	border-color: #b9bcc4;
	color: var(--bsf-ink);
}
.bsf .bsf-account {
	gap: 10px;
	padding: 5px 14px 5px 5px;
	border-radius: 999px;
}
.bsf .bsf-avatar {
	display: block;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}
.bsf-account-text {
	display: inline-flex;
	align-items: baseline;
	min-width: 0;
	white-space: nowrap;
}
.bsf-welcome {
	font-weight: 400;
	color: var(--bsf-muted);
	margin-right: 4px;
}
.bsf-account-name {
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bsf .bsf-officebtn .bsf-ico {
	width: 16px;
	height: 16px;
}

/* Tabs + person picker */
.bsf-nav {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	padding: 0 24px;
	border-bottom: 1px solid var(--bsf-line);
	flex-wrap: wrap;
}
.bsf-tabs {
	display: flex;
	gap: 4px;
}
.bsf .bsf-tab {
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	padding: 14px 12px 11px;
	color: var(--bsf-muted);
	font-weight: 600;
}
.bsf .bsf-tab:hover {
	color: var(--bsf-ink);
	background: transparent;
}
.bsf .bsf-tab.is-active {
	color: var(--bsf-ink);
	border-bottom-color: var(--bsf-red);
}
.bsf-person {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	color: var(--bsf-muted);
}

.bsf-tab-gap {
	flex: 1 1 auto;
	min-width: 12px;
}
.bsf .bsf-tab-icon {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.bsf .bsf-tab-icon .bsf-ico {
	width: 17px;
	height: 17px;
}
.bsf-badge {
	display: inline-block;
	margin-left: 2px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e8f5ec;
	color: #14532d;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}
.bsf-tabs {
	flex: 1 1 auto;
	flex-wrap: wrap;
}

/* Activity feed */
.bsf .bsf-feed {
	list-style: none;
	margin: 0;
	padding: 4px 12px 8px;
}
.bsf .bsf-feed-day {
	margin: 18px 0 6px;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--bsf-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
}
.bsf .bsf-feed-day:first-child {
	margin-top: 6px;
}
.bsf .bsf-feed-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 0;
	padding: 10px 0;
	border-top: 1px solid var(--bsf-wash);
}
.bsf-feed-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--bsf-wash);
	color: var(--bsf-ink);
}
.bsf-feed-icon .bsf-ico {
	width: 17px;
	height: 17px;
}
.bsf-feed-item.is-upload .bsf-feed-icon,
.bsf-feed-item.is-save .bsf-feed-icon,
.bsf-feed-item.is-folder .bsf-feed-icon {
	background: #e8f5ec;
	color: #14532d;
}
.bsf-feed-item.is-trash .bsf-feed-icon,
.bsf-feed-item.is-purge .bsf-feed-icon,
.bsf-feed-item.is-empty .bsf-feed-icon {
	background: #fde7ea;
	color: var(--bsf-red-deep);
}
.bsf-feed-item.is-share .bsf-feed-icon,
.bsf-feed-item.is-invite .bsf-feed-icon {
	background: #e7eefb;
	color: #1b3f75;
}
.bsf-feed-body {
	min-width: 0;
}
.bsf .bsf-feed-text {
	margin: 0 0 2px;
	color: var(--bsf-ink);
	overflow-wrap: anywhere;
}
.bsf-feed-body .bsf-muted {
	margin: 0;
}
.bsf-more {
	display: flex;
	justify-content: center;
	padding: 12px 0 4px;
}

/* Members */
.bsf-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	padding: 8px 12px 16px;
}
.bsf-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	border: 1px solid var(--bsf-line);
	border-radius: 8px;
}
.bsf-stat strong {
	font-size: 26px;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.bsf-stat span {
	font-size: 13px;
	color: var(--bsf-muted);
}
.bsf-stat.is-online {
	border-color: #b7e0c2;
	background: #f2faf4;
}
.bsf-stat.is-online strong {
	color: var(--bsf-ok);
}
.bsf-members {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
	padding: 0 12px 8px;
}
.bsf-member {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px;
	border: 1px solid var(--bsf-line);
	border-radius: 8px;
}
.bsf-member-avatar {
	position: relative;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--bsf-ink);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
}
.bsf-dot {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	border: 2px solid var(--bsf-paper);
	background: #a6aab3;
}
.bsf-member.is-online .bsf-dot {
	background: #22a447;
}
.bsf-member.is-today .bsf-dot {
	background: #e2a400;
}
.bsf-member-body {
	min-width: 0;
}
.bsf .bsf-member-name {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0;
	font-weight: 700;
	overflow-wrap: anywhere;
}
.bsf-member-body .bsf-muted {
	margin: 0;
	overflow-wrap: anywhere;
}
.bsf .bsf-member-status {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--bsf-muted);
}
.bsf-member.is-online .bsf-member-status {
	color: var(--bsf-ok);
	font-weight: 600;
}
.bsf-member-tools {
	display: flex;
	gap: 14px;
	margin-top: 6px;
	font-size: 13px;
}

/* Toolbar */
.bsf-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 24px 8px;
	flex-wrap: wrap;
}
.bsf-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.bsf .bsf-search {
	width: 240px;
	max-width: 100%;
}

/* Buttons */
.bsf .bsf-btn,
.bsf-uploads .bsf-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid var(--bsf-line);
	border-radius: 6px;
	background: var(--bsf-paper);
	color: var(--bsf-ink);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background-color .12s, border-color .12s;
}
.bsf .bsf-btn:hover,
.bsf-uploads .bsf-btn:hover {
	background: var(--bsf-wash);
	border-color: #b9bcc4;
	color: var(--bsf-ink);
}
.bsf .bsf-btn.is-primary {
	background: var(--bsf-red);
	border-color: var(--bsf-red);
	color: #fff;
}
.bsf .bsf-btn.is-primary:hover {
	background: var(--bsf-red-deep);
	border-color: var(--bsf-red-deep);
	color: #fff;
}
.bsf .bsf-btn.is-danger {
	background: var(--bsf-ink);
	border-color: var(--bsf-ink);
	color: #fff;
}
.bsf .bsf-btn.is-danger:hover {
	background: var(--bsf-red-deep);
	border-color: var(--bsf-red-deep);
}
.bsf .bsf-btn:disabled {
	opacity: .45;
	cursor: not-allowed;
}
.bsf .bsf-btn.is-small,
.bsf-uploads .bsf-btn.is-small {
	padding: 5px 10px;
	font-size: 13px;
}
.bsf-ico {
	display: inline-flex;
	width: 18px;
	height: 18px;
	flex: none;
}
.bsf-ico svg {
	width: 100%;
	height: 100%;
}

.bsf-newwrap {
	position: relative;
	display: inline-flex;
}
.bsf .bsf-caret {
	width: 0;
	height: 0;
	margin-left: 2px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
}
.bsf-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 50;
	min-width: 230px;
	padding: 6px;
	background: var(--bsf-paper);
	border: 1px solid var(--bsf-line);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}
.bsf .bsf-menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 6px;
	background: none;
	color: var(--bsf-ink);
	font-size: 14px;
	font-weight: 500;
	text-align: left;
}
.bsf .bsf-menu-item:hover {
	background: var(--bsf-wash);
}
.bsf .bsf-menu-item .bsf-ico {
	width: 22px;
	height: 22px;
	flex: none;
}
.bsf-menu-sep {
	display: block;
	height: 1px;
	margin: 6px 4px;
	background: var(--bsf-line);
}

/* Inputs */
.bsf .bsf-input,
.bsf .bsf-select {
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--bsf-line);
	border-radius: 6px;
	background: var(--bsf-paper);
	color: var(--bsf-ink);
	font-size: 14px;
}
.bsf .bsf-input {
	width: 100%;
}
.bsf .bsf-input:focus,
.bsf .bsf-select:focus {
	border-color: var(--bsf-ink);
	outline: none;
}
.bsf-label {
	display: block;
	margin: 14px 0 6px;
	font-weight: 600;
	font-size: 14px;
}
.bsf-label:first-child {
	margin-top: 0;
}
.bsf-muted {
	color: var(--bsf-muted);
	font-size: 13px;
}

/* Path + storage */
.bsf-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 24px 12px;
	flex-wrap: wrap;
}
.bsf-crumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 15px;
	min-width: 0;
}
.bsf .bsf-crumb {
	background: none;
	border: 0;
	padding: 4px 6px;
	border-radius: 4px;
	color: var(--bsf-muted);
	font-weight: 600;
}
.bsf .bsf-crumb:hover {
	background: var(--bsf-wash);
	color: var(--bsf-ink);
}
.bsf .bsf-crumb.is-current {
	color: var(--bsf-ink);
}
.bsf-sep {
	color: #a6aab3;
}
.bsf-usage {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--bsf-muted);
}
.bsf-meter {
	display: inline-block;
	width: 120px;
	height: 6px;
	border-radius: 3px;
	background: var(--bsf-wash);
	overflow: hidden;
}
.bsf-meter span {
	display: block;
	height: 100%;
	background: var(--bsf-ink);
}
.bsf-meter.is-full span {
	background: var(--bsf-red);
}

/* File list */
.bsf-list {
	min-height: 260px;
	padding: 0 12px 16px;
	transition: opacity .15s;
}
.bsf-list.is-loading {
	opacity: .5;
}
.bsf-table {
	--bsf-cols: minmax(0, 1fr) 96px 132px 156px;
}
.bsf-table.has-owner {
	--bsf-cols: minmax(0, 1fr) 96px 132px 150px 156px;
}
.bsf-row {
	display: grid;
	grid-template-columns: var(--bsf-cols);
	align-items: center;
	gap: 12px;
	padding: 6px 12px;
	border-radius: 6px;
	min-height: 52px;
}
.bsf-row:not(.bsf-row-head):hover {
	background: var(--bsf-wash);
}
.bsf-row + .bsf-row {
	border-top: 1px solid var(--bsf-wash);
}
.bsf-row-head {
	min-height: 0;
	padding-top: 10px;
	padding-bottom: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--bsf-muted);
	border-bottom: 1px solid var(--bsf-line);
	border-radius: 0;
}
.bsf-c-size,
.bsf-c-date,
.bsf-c-owner {
	font-size: 14px;
	color: var(--bsf-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bsf-c-size {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.bsf-c-act {
	display: flex;
	justify-content: flex-end;
	gap: 2px;
}
.bsf .bsf-name {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-width: 0;
	padding: 4px 0;
	background: none;
	border: 0;
	color: var(--bsf-ink);
	text-align: left;
	font-weight: 500;
}
.bsf .bsf-name:hover {
	background: none;
	color: var(--bsf-ink);
}
.bsf .bsf-name:hover .bsf-name-text {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.bsf-name-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bsf-kind {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 30px;
	border-radius: 4px;
	background: var(--bsf-wash);
	border: 1px solid var(--bsf-line);
	color: var(--bsf-muted);
	font-size: 10px;
	font-weight: 700;
	text-transform: lowercase;
}
.bsf-kind.is-folder {
	background: none;
	border: 0;
	color: var(--bsf-ink);
}
.bsf-kind.is-folder .bsf-ico {
	width: 30px;
	height: 30px;
}
.bsf-tag {
	flex: none;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fde7ea;
	color: var(--bsf-red-deep);
	font-size: 12px;
	font-weight: 600;
}
.bsf .bsf-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--bsf-muted);
}
.bsf .bsf-icon-btn:hover {
	background: var(--bsf-paper);
	color: var(--bsf-ink);
}
.bsf .bsf-icon-btn.is-office {
	color: #2b579a;
}
.bsf .bsf-icon-btn.is-office:hover {
	color: #1b3f75;
}
.bsf .bsf-icon-btn.is-danger:hover {
	color: var(--bsf-red);
}

.bsf .bsf-name.is-static {
	cursor: default;
}
.bsf .bsf-trash-note {
	margin: 0;
	align-self: center;
}
.bsf-table.is-trash {
	--bsf-cols: minmax(0, 1fr) 96px 170px 150px 190px;
}
.bsf-table.is-trash .bsf-c-act .bsf-btn .bsf-ico {
	width: 16px;
	height: 16px;
}

/* Empty and error states */
.bsf-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 64px 16px;
	text-align: center;
	color: var(--bsf-muted);
}
.bsf .bsf-empty-title {
	color: var(--bsf-ink);
	font-weight: 600;
	font-size: 17px;
}
.bsf-empty .bsf-btn {
	margin-top: 8px;
}

/* Drag and drop */
.bsf-drop {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 5;
	padding: 16px;
	background: rgba(255, 255, 255, .86);
	pointer-events: none;
}
.bsf.is-dragging .bsf-drop {
	display: block;
}
.bsf-drop-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 100%;
	border: 2px dashed var(--bsf-red);
	border-radius: 10px;
	color: var(--bsf-red-deep);
	font-size: 18px;
}
.bsf-drop-inner .bsf-ico {
	width: 36px;
	height: 36px;
}

/* Modal */
.bsf-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .55);
}
.bsf-modal {
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: var(--bsf-paper);
	border-radius: 10px;
	border-top: 4px solid var(--bsf-red);
}
.bsf-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 8px;
}
.bsf .bsf-modal-head h3 {
	font-family: var(--bsf-font);
	font-size: 18px;
	font-weight: 700;
	color: var(--bsf-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bsf .bsf-x {
	flex: none;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--bsf-muted);
	font-size: 24px;
	line-height: 1;
}
.bsf .bsf-x:hover {
	background: var(--bsf-wash);
	color: var(--bsf-ink);
}
.bsf-modal-body {
	padding: 8px 20px 16px;
}
.bsf-modal-body p {
	color: var(--bsf-muted);
}
.bsf-modal-foot {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 12px 20px 18px;
}

.bsf-tag.is-lock {
	background: var(--bsf-wash);
	color: var(--bsf-ink);
}
.bsf .bsf-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0;
	font-size: 14px;
	cursor: pointer;
}
.bsf .bsf-check input {
	width: 18px;
	height: 18px;
	margin-top: 1px;
	flex: none;
	accent-color: var(--bsf-red);
}
.bsf-copy {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}
.bsf-pw-create {
	margin: 14px 0 4px;
}
.bsf-pw-result:empty {
	display: none;
}
.bsf-modal-body p + p {
	margin-top: 10px;
}

.bsf .bsf-steps {
	margin: 12px 0 12px 20px;
	padding: 0;
	color: var(--bsf-ink);
}
.bsf .bsf-steps li {
	margin: 0 0 8px;
	padding: 0;
}
.bsf .bsf-linkbtn {
	display: inline;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	color: var(--bsf-red-deep);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.bsf .bsf-linkbtn:hover {
	background: none;
	color: var(--bsf-red);
}

.bsf .bsf-helpbtn .bsf-ico {
	width: 17px;
	height: 17px;
}
.bsf-help-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 6px 0 4px;
	padding: 14px 16px;
	border: 1px solid var(--bsf-line);
	border-radius: 8px;
	background: var(--bsf-wash);
}
.bsf .bsf-help-name {
	margin: 0;
	font-weight: 700;
	font-size: 16px;
}
.bsf .bsf-help-contact {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--bsf-ink);
	font-weight: 600;
	text-decoration: none;
}
.bsf .bsf-help-contact:hover {
	color: var(--bsf-red);
}
.bsf .bsf-help-contact .bsf-ico {
	width: 18px;
	height: 18px;
	color: var(--bsf-red);
}
.bsf .bsf-help-steps {
	margin: 8px 0 12px;
	padding-left: 22px;
}
.bsf .bsf-help-steps li {
	margin: 0 0 8px;
	padding-left: 4px;
	line-height: 1.5;
}

/* Sharing */
.bsf-share-add {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 8px;
	margin-bottom: 6px;
}
.bsf-shares {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.bsf-share-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border-top: 1px solid var(--bsf-wash);
}
.bsf-share-who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.bsf-share-who strong,
.bsf-share-who span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Upload panel */
.bsf-uploads {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99990;
	width: 400px;
	max-width: calc(100vw - 24px);
	background: var(--bsf-paper);
	border: 1px solid var(--bsf-line);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
	overflow: hidden;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bsf-uploads {
	transition: opacity .3s, transform .3s;
}
.bsf-uploads.is-leaving {
	opacity: 0;
	transform: translateY(8px);
}
.bsf-up-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	background: var(--bsf-ink);
	color: #fff;
}
.bsf-up-head strong {
	font-size: 14px;
}
.bsf-up-tools {
	display: flex;
	gap: 6px;
}
.bsf-uploads .bsf-up-head .bsf-btn {
	background: transparent;
	border-color: #3b3e45;
	color: #fff;
}
.bsf-uploads .bsf-up-head .bsf-btn:hover {
	background: #24262b;
	color: #fff;
}
.bsf-up-list {
	max-height: 340px;
	overflow: auto;
}
.bsf-uploads.is-collapsed .bsf-up-list {
	display: none;
}
.bsf-up-row {
	padding: 10px 14px;
	border-top: 1px solid var(--bsf-wash);
}
.bsf-up-name {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	font-weight: 600;
	min-width: 0;
}
.bsf-up-name span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bsf-up-name .bsf-muted {
	font-weight: 400;
	font-size: 12px;
}
.bsf-up-track {
	height: 5px;
	margin: 8px 0 6px;
	border-radius: 3px;
	background: var(--bsf-wash);
	overflow: hidden;
}
.bsf-up-fill {
	display: block;
	width: 0;
	height: 100%;
	background: var(--bsf-red);
	transition: width .2s linear;
}
.bsf-up-row.is-done .bsf-up-fill {
	background: var(--bsf-ok);
}
.bsf-up-row.is-cancelled .bsf-up-fill {
	background: #a6aab3;
}
.bsf-up-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.bsf-up-meta > span:last-child {
	display: flex;
	gap: 6px;
}
.bsf-up-status {
	font-size: 12px;
	color: var(--bsf-muted);
	font-variant-numeric: tabular-nums;
}
.bsf-up-row.is-failed .bsf-up-status {
	color: var(--bsf-red-deep);
}
.bsf-up-row.is-done .bsf-up-status {
	color: var(--bsf-ok);
}

/* Toasts */
.bsf-toasts {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: calc(100vw - 40px);
	pointer-events: none;
}
.bsf-toast {
	padding: 10px 14px;
	border-radius: 6px;
	background: var(--bsf-ink);
	color: #fff;
	font-size: 14px;
	max-width: 420px;
	transition: opacity .3s, transform .3s;
}
.bsf-toast {
	display: flex;
	align-items: center;
	gap: 14px;
}
.bsf-toasts .bsf-toast-btn {
	pointer-events: auto;
	flex: none;
	margin: 0;
	padding: 4px 10px;
	min-height: 0;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}
.bsf-toasts .bsf-toast-btn:hover {
	background: rgba(255, 255, 255, .15);
	color: #fff;
}
.bsf-toast.is-error {
	background: var(--bsf-red-deep);
}
.bsf-toast.is-leaving {
	opacity: 0;
	transform: translateY(6px);
}

/* Sign-in page: no site header (Astra, Elementor Header & Footer Builder, Elementor Pro) */
body.bsf-signed-out #masthead,
body.bsf-signed-out .site-header,
body.bsf-signed-out #ast-desktop-header,
body.bsf-signed-out #ast-mobile-header,
body.bsf-signed-out .ast-above-header-wrap,
body.bsf-signed-out .ast-below-header-wrap,
body.bsf-signed-out .elementor-location-header,
body.bsf-signed-out [data-elementor-type="header"],
body.bsf-signed-out .ehf-header #masthead,
body.bsf-signed-out #colophon,
body.bsf-signed-out .site-footer,
body.bsf-signed-out footer[data-elementor-type="footer"],
body.bsf-signed-out .elementor-location-footer,
body.bsf-signed-out .ast-small-footer,
body.bsf-signed-out .site-primary-footer-wrap,
body.bsf-signed-out .site-below-footer-wrap {
	display: none !important;
}
/* Signed out: the sign-in card sits in the middle of the screen (browser and desktop app). */
body.bsf-signed-out .bsf-auth {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - 64px);
	min-height: calc(100dvh - 64px);
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 24px;
	padding-bottom: 24px;
}
@media (max-width: 480px), (max-height: 560px) {
	body.bsf-signed-out .bsf-auth {
		justify-content: flex-start;
		min-height: 0;
		padding-top: 12px;
	}
}

/* Sign-in card when signed out */
.bsf-auth {
	max-width: 420px;
	margin: 20px auto 40px;
	padding: 0 16px;
	position: relative;
	z-index: 1;
}
.bsf-auth-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.12;
	filter: saturate(0.9);
	pointer-events: none;
}
.bsf-auth.has-bg {
	margin-top: 56px;
}
@media (max-width: 480px) {
	.bsf-auth.has-bg {
		margin-top: 28px;
	}
	.bsf-auth-bg {
		opacity: 0.10;
	}
}
.bsf-auth *,
.bsf-auth *::before,
.bsf-auth *::after {
	box-sizing: border-box;
}
.bsf-auth-card {
	background: var(--bsf-paper);
	border: 1px solid var(--bsf-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}
.bsf-auth-head {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 28px 16px;
	background: var(--bsf-paper);
	border-bottom: 4px solid var(--bsf-red);
}
.bsf-auth .bsf-auth-client {
	display: block;
	height: 84px;
	width: auto;
	max-width: 100%;
}
.bsf-auth .bsf-powered {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 18px 0 0;
	font-size: 12px;
	color: var(--bsf-muted);
}
.bsf-auth .bsf-powered img {
	display: block;
	height: 24px;
	width: auto;
}
.bsf-auth .bsf-auth-logo {
	display: block;
	height: 54px;
	width: auto;
	max-width: 100%;
}
.bsf-auth-brand {
	color: var(--bsf-paper);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.bsf-auth .bsf-mark {
	flex: none;
	width: 12px;
	height: 24px;
	background: var(--bsf-red);
	border-radius: 2px;
}
.bsf-auth-body {
	display: flex;
	flex-direction: column;
	padding: 22px 28px 24px;
	margin: 0;
}
.bsf-auth .bsf-auth-title {
	margin: 0 0 6px;
	padding: 0;
	font-family: var(--bsf-font);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--bsf-ink);
}
.bsf-auth .bsf-auth-sub {
	margin: 0 0 16px;
	color: var(--bsf-muted);
	font-size: 14px;
}
.bsf-auth-error {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-left: 4px solid var(--bsf-red);
	border-radius: 6px;
	background: #fde7ea;
	color: var(--bsf-red-deep);
	font-size: 14px;
	font-weight: 500;
}
.bsf-auth-notice {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-left: 4px solid var(--bsf-ok);
	border-radius: 6px;
	background: #e8f5ec;
	color: #14532d;
	font-size: 14px;
	font-weight: 500;
}
.bsf-auth .bsf-auth-gap {
	margin-top: 14px;
}
.bsf-auth .bsf-auth-hint {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--bsf-muted);
}
.bsf-auth-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.bsf-auth .bsf-auth-switch {
	margin: 14px 0 0;
	text-align: center;
	font-size: 14px;
	color: var(--bsf-muted);
}
.bsf-auth .bsf-auth-label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--bsf-ink);
}
.bsf-auth-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
}
.bsf-auth .bsf-auth-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--bsf-red-deep);
	text-decoration: none;
}
.bsf-auth .bsf-auth-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.bsf-auth .bsf-auth-input {
	display: block;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--bsf-line);
	border-radius: 8px;
	background: var(--bsf-paper);
	color: var(--bsf-ink);
	font: inherit;
	font-size: 15px;
	box-shadow: none;
}
.bsf-auth .bsf-auth-input:focus {
	border-color: var(--bsf-ink);
	outline: 3px solid rgba(200, 16, 46, .18);
	outline-offset: 0;
}
.bsf-auth-pw {
	position: relative;
}
.bsf-auth .bsf-auth-pw .bsf-auth-input {
	padding-right: 72px;
}
.bsf-auth .bsf-auth-toggle {
	position: absolute;
	top: 6px;
	right: 6px;
	height: 34px;
	min-height: 0;
	padding: 0 12px;
	margin: 0;
	border: 0;
	border-radius: 6px;
	background: var(--bsf-wash);
	color: var(--bsf-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}
.bsf-auth .bsf-auth-toggle:hover {
	background: var(--bsf-line);
	color: var(--bsf-ink);
}
.bsf-auth .bsf-auth-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0 18px;
	font-size: 14px;
	color: var(--bsf-ink);
	cursor: pointer;
}
.bsf-auth .bsf-auth-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--bsf-red);
}
.bsf-auth .bsf-auth-submit {
	width: 100%;
	height: 46px;
	min-height: 0;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: var(--bsf-red);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .12s;
}
.bsf-auth .bsf-auth-submit:hover {
	background: var(--bsf-red-deep);
	color: #fff;
}
.bsf-auth .bsf-auth-submit:focus-visible,
.bsf-auth .bsf-auth-toggle:focus-visible,
.bsf-auth .bsf-auth-link:focus-visible {
	outline: 2px solid var(--bsf-ink);
	outline-offset: 2px;
}
.bsf-auth .bsf-auth-foot {
	margin: 12px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--bsf-muted);
}
@media (max-width: 420px) {
	.bsf .bsf-logo-mark {
		display: block;
	}
	.bsf .bsf-logo-mark ~ .bsf-sr,
	.bsf .bsf-brand .bsf-logo:not(:only-of-type) {
		display: none;
	}
}

@media (max-height: 760px) {
	body.bsf-signed-out .bsf-auth {
		margin-top: 10px;
	}
	.bsf-auth-head {
		padding: 12px 28px 10px;
	}
	.bsf-auth .bsf-auth-client {
		height: 64px;
	}
	.bsf-auth .bsf-auth-logo {
		height: 46px;
	}
	.bsf-auth-body {
		padding: 16px 28px 18px;
	}
	.bsf-auth .bsf-auth-sub {
		margin-bottom: 12px;
	}
	.bsf-auth .bsf-auth-input {
		height: 40px;
	}
	.bsf-auth .bsf-auth-check {
		margin: 12px 0 14px;
	}
}

@media (max-width: 480px) {
	.bsf-auth-logo {
		height: 52px;
	}
	.bsf-auth .bsf-auth-client {
		height: 76px;
	}
	.bsf-auth {
		padding: 0;
	}
	.bsf-auth-head,
	.bsf-auth-body {
		padding-left: 20px;
		padding-right: 20px;
	}
}
.bsf-notice {
	padding: 16px;
	border-left: 4px solid #c8102e;
	background: #f2f3f5;
}

/* Small screens */
@media (max-width: 720px) {
	.bsf {
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}
	.bsf-head,
	.bsf-nav,
	.bsf-toolbar,
	.bsf-bar {
		padding-left: 14px;
		padding-right: 14px;
	}
	.bsf .bsf-logo {
		height: 36px;
	}
	.bsf .bsf-client-logo {
		height: 46px;
	}
	.bsf .bsf-brand.has-client .bsf-logo {
		height: 28px;
	}
	.bsf-who > span,
	.bsf-account-text {
		display: none;
	}
	.bsf .bsf-account {
		padding: 4px;
	}
	.bsf .bsf-search {
		width: 100%;
	}
	.bsf-list {
		padding: 0 4px 12px;
	}
	.bsf-row-head {
		display: none;
	}
	.bsf-table,
	.bsf-table.has-owner,
	.bsf-table.is-trash {
		--bsf-cols: minmax(0, 1fr) auto;
	}
	.bsf .bsf-officebtn {
		padding: 6px 8px;
	}
	.bsf-help-label {
		display: none;
	}
	.bsf-tab-gap {
		display: none;
	}
	.bsf-stats {
		grid-template-columns: 1fr;
	}
	.bsf-row {
		grid-template-areas: "name act" "meta act";
		row-gap: 0;
		padding: 8px;
	}
	.bsf-c-name {
		grid-area: name;
		min-width: 0;
	}
	.bsf-c-act {
		grid-area: act;
	}
	.bsf-c-size,
	.bsf-c-date,
	.bsf-c-owner {
		grid-area: meta;
		font-size: 12px;
		padding-left: 50px;
		text-align: left;
	}
	.bsf-c-date {
		padding-left: 120px;
	}
	.bsf-c-owner {
		display: none;
	}
	.bsf-share-add,
	.bsf-share-row {
		grid-template-columns: 1fr;
	}
	.bsf-uploads {
		right: 12px;
		left: 12px;
		bottom: 12px;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bsf *,
	.bsf-uploads *,
	.bsf-toasts * {
		transition: none !important;
	}
}

/* ==================================================================
 * Projects (opened from the Projects button)
 * ================================================================ */
.bsf .bsp { padding: 4px 24px 28px; }
.bsf .bsp-pad { padding: 24px 0; }
.bsf .bsp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 18px; }
.bsf .bsp-toolbar .bsf-btn.is-primary { margin-left: auto; }
.bsf .bsp-chips { display: flex; gap: 6px; }
.bsf .bsp-chip {
	padding: 7px 14px; border: 1px solid var(--bsf-line); border-radius: 999px;
	background: var(--bsf-paper); color: var(--bsf-ink); font-size: 14px; font-weight: 600;
}
.bsf .bsp-chip:hover { border-color: var(--bsf-ink); }
.bsf .bsp-chip.is-on { background: var(--bsf-ink); border-color: var(--bsf-ink); color: #fff; }
.bsf .bsp-allcheck { margin: 0; color: var(--bsf-muted); }

.bsf .bsp-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--bsf-wash); font-size: 12px; font-weight: 700; color: var(--bsf-ink); }
.bsf .bsp-pill-active { background: var(--bsf-ink); color: #fff; }
.bsf .bsp-pill-planning { background: #eef1f6; color: #2a3a55; }
.bsf .bsp-pill-on_hold { background: #fff4e0; color: #7a4b00; }
.bsf .bsp-pill-completed { background: #e8f5ec; color: #14532d; }
.bsf .bsp-pill-cancelled { color: var(--bsf-muted); text-decoration: line-through; }
.bsf .bsp-pill-overdue { background: #fde8eb; color: var(--bsf-red-deep); }

.bsf .bsp-bar { height: 8px; border-radius: 999px; background: #e6e7ea; overflow: hidden; }
.bsf .bsp-bar span { display: block; height: 100%; border-radius: 999px; background: var(--bsf-red); transition: width .35s ease; }

.bsf .bsp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bsf .bsp-card {
	display: flex; flex-direction: column; gap: 8px; padding: 16px 18px;
	border: 1px solid var(--bsf-line); border-top: 4px solid var(--bsf-ink); border-radius: 8px;
	background: var(--bsf-paper); color: var(--bsf-ink); text-decoration: none;
}
.bsf .bsp-card:hover { border-color: var(--bsf-ink); border-top-color: var(--bsf-red); }
.bsf .bsp-card-top { display: flex; flex-wrap: wrap; gap: 6px; }
.bsf .bsp-card-name { font-size: 17px; font-weight: 700; line-height: 1.25; }
.bsf .bsp-card-client { margin-top: -4px; color: var(--bsf-muted); font-size: 14px; }
.bsf .bsp-card-progress { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.bsf .bsp-card-progress strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.bsf .bsp-card-progress span, .bsf .bsp-card-foot { color: var(--bsf-muted); font-size: 13px; }
.bsf .bsp-card-foot { display: flex; justify-content: space-between; gap: 8px; }

.bsf .bsp-detail-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); gap: 24px; align-items: end; padding: 8px 0 18px; border-bottom: 1px solid var(--bsf-line); }
.bsf .bsp-title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--bsf-ink); }
.bsf .bsp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; color: var(--bsf-muted); font-size: 14px; }
.bsf .bsp-head-actions { margin-top: 14px; }
.bsf .bsp-head-actions .bsf-ico { width: 17px; height: 17px; }
.bsf .bsp-big-num { font-size: 52px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.bsf .bsp-big-num small { margin-left: 2px; font-size: 22px; }
.bsf .bsp-big .bsf-muted { display: block; margin: 6px 0 8px; }
.bsf .bsp-big .bsp-bar { height: 12px; }

.bsf .bsp-tabs { display: flex; gap: 2px; overflow-x: auto; margin: 0 0 18px; border-bottom: 1px solid var(--bsf-line); }
.bsf .bsp-tab { padding: 12px 12px 9px; border-bottom: 3px solid transparent; color: var(--bsf-muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bsf .bsp-tab:hover { color: var(--bsf-ink); }
.bsf .bsp-tab.is-active { color: var(--bsf-ink); border-bottom-color: var(--bsf-red); }

.bsf .bsp-sub { margin: 22px 0 8px; font-size: 16px; font-weight: 700; color: var(--bsf-ink); }
.bsf .bsp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.bsf .bsp-stats .bsp-bad strong { color: var(--bsf-red); }
.bsf .bsp-desc { max-width: 72ch; margin: 0 0 14px; }
.bsf .bsp-field { display: block; margin: 0 0 12px; }
.bsf .bsp-field .bsf-label { margin: 0 0 6px; }
.bsf .bsp-textarea { height: auto; min-height: 76px; padding: 9px 12px; resize: vertical; font: inherit; font-size: 14px; }
.bsf .bsp-wide { width: 100%; }
.bsf .bsp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bsf .bsp-note { max-width: 760px; }
.bsf .bsp-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; }

.bsf .bsp-feed { list-style: none; margin: 0; padding: 0; }
.bsf .bsp-feed li { padding: 9px 0; border-bottom: 1px solid var(--bsf-line); font-size: 14px; overflow-wrap: anywhere; }
.bsf .bsp-feed time { margin-left: 4px; color: var(--bsf-muted); font-size: 12px; }
.bsf .bsp-feed-note p { margin: 6px 0 0; padding: 9px 12px; border-left: 3px solid var(--bsf-red); border-radius: 0 6px 6px 0; background: var(--bsf-wash); color: var(--bsf-ink); }

.bsf .bsp-add-task { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 150px auto; gap: 8px; margin-bottom: 8px; }
.bsf .bsp-tight { margin: 0 0 8px; }
.bsf .bsp-ms { margin-bottom: 18px; }
.bsf .bsp-ms-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bsf .bsp-ms-head .bsp-sub { margin: 14px 0 0; }
.bsf .bsp-ms-actions { display: flex; gap: 6px; }
.bsf .bsp-tasks { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--bsf-line); border-radius: 8px; }
.bsf .bsp-task { display: grid; grid-template-columns: 28px minmax(0, 1fr) 130px 160px 150px 32px; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--bsf-line); }
.bsf .bsp-task:last-child { border-bottom: 0; }
.bsf .bsp-task .bsf-select, .bsf .bsp-task .bsf-input { height: 34px; padding: 0 8px; font-size: 13px; }
.bsf .bsp-task-empty { padding: 12px; }
.bsf .bsp-task-check input { width: 20px; height: 20px; accent-color: var(--bsf-red); cursor: pointer; }
.bsf .bsp-task-title { padding: 0; border: 0; background: none; color: var(--bsf-ink); font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.bsf button.bsp-task-title:hover { text-decoration: underline; }
.bsf .bsp-task-notes { color: var(--bsf-muted); font-size: 13px; white-space: pre-line; }
.bsf .bsp-task-flag { color: var(--bsf-red); font-size: 12px; font-weight: 700; }
.bsf .bsp-task.is-done .bsp-task-title { color: var(--bsf-muted); text-decoration: line-through; }
.bsf .bsp-task.is-overdue { background: #fff7f8; }

.bsf .bsp-add-member { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 8px; max-width: 760px; }
.bsf .bsp-note-text { max-width: 760px; margin: 8px 0 0; }
.bsf .bsp-members { list-style: none; max-width: 760px; margin: 16px 0 0; padding: 0; border: 1px solid var(--bsf-line); border-radius: 8px; }
.bsf .bsp-members li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--bsf-line); }
.bsf .bsp-members li:last-child { border-bottom: 0; }
.bsf .bsp-member-actions { display: flex; align-items: center; gap: 8px; }
.bsf .bsp-role { font-size: 13px; font-weight: 700; }

.bsf .bsp-form { max-width: 760px; }
.bsf .bsp-form > p { margin: 0 0 12px; }
.bsf .bsp-fieldset { margin: 14px 0; padding: 10px 16px 4px; border: 1px solid var(--bsf-line); border-radius: 8px; }
.bsf .bsp-fieldset legend { padding: 0 6px; font-weight: 700; }
.bsf .bsp-btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.bsf .bsp-danger { max-width: 760px; margin-top: 30px; padding: 4px 16px 16px; border: 1px solid #f1c3cb; border-radius: 8px; }
.bsf .bsp-danger .bsp-sub { color: var(--bsf-red-deep); }
.bsf .bsp-modal-wide { max-width: 720px; }
.bsf .bsp-preview { width: 100%; height: 60vh; border: 1px solid var(--bsf-line); border-radius: 6px; }

@media (max-width: 900px) {
	.bsf .bsp-detail-head, .bsf .bsp-cols { grid-template-columns: 1fr; }
	.bsf .bsp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bsf .bsp-add-task { grid-template-columns: 1fr 1fr; }
	.bsf .bsp-add-task input[name=title] { grid-column: 1 / -1; }
	.bsf .bsp-task { grid-template-columns: 28px minmax(0, 1fr) 32px; }
	.bsf .bsp-task .bsf-select, .bsf .bsp-task .bsf-input { grid-column: 2; }
	.bsf .bsp-task .bsf-x { grid-column: 3; grid-row: 1; }
}
@media (max-width: 560px) {
	.bsf .bsp { padding: 4px 14px 22px; }
	.bsf .bsp-row2, .bsf .bsp-add-member, .bsf .bsp-add-task { grid-template-columns: 1fr; }
	.bsf .bsp-members li { flex-direction: column; align-items: flex-start; }
	.bsf .bsp-toolbar .bsf-btn.is-primary { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.bsf .bsp-bar span { transition: none; }
}

.bsf .bsf-drivebox { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--bsf-line); border-radius: 8px; background: var(--bsf-wash); }
.bsf .bsf-drivebox p { margin: 0 0 8px; }
.bsf .bsf-drivebox p strong { color: var(--bsf-ink); }

/* ==================================================================
 * Email portal
 * ================================================================ */
.bsf .bsf-mailbtn { position: relative; }
.bsf .bsf-mailbtn.is-active { border-color: var(--bsf-ink); box-shadow: inset 0 -3px 0 var(--bsf-red); }
.bsf .bsf-mailbadge {
	min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px;
	background: var(--bsf-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.bsf .bsm { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 520px; border-top: 1px solid var(--bsf-line); }
.bsf .bsm-ico { width: 18px; height: 18px; flex: none; }
.bsf .bsm-pad { padding: 24px; }
.bsf .bsm-small { font-size: 12.5px; }
.bsf .bsm-gap { flex: 1; }

/* Sidebar */
.bsf .bsm-side { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; border-right: 1px solid var(--bsf-line); background: var(--bsf-wash); }
.bsf .bsm-compose { width: 100%; justify-content: center; gap: 8px; }
.bsf .bsm-folders { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.bsf .bsm-folder {
	display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px;
	color: var(--bsf-ink); text-decoration: none; font-size: 14px;
}
.bsf .bsm-folder:hover { background: rgba(0, 0, 0, .05); }
.bsf .bsm-folder.is-on { background: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--bsf-red); }
.bsf .bsm-folder-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsf .bsm-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--bsf-red); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 19px; text-align: center; }
.bsf .bsm-me { display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--bsf-line); font-size: 12.5px; color: var(--bsf-muted); }
.bsf .bsm-me-mail { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Main */
.bsf .bsm-main { min-width: 0; }
.bsf .bsm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--bsf-line); }
.bsf .bsm-toolbar .bsf-btn .bsm-ico { width: 16px; height: 16px; margin-right: 4px; }
.bsf .bsm-iconbtn {
	display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
	border: 0; border-radius: 6px; background: transparent; color: var(--bsf-ink); font-size: 20px; text-decoration: none; cursor: pointer;
}
.bsf .bsm-iconbtn:hover { background: var(--bsf-wash); }
.bsf .bsm-iconbtn.is-off { opacity: .3; pointer-events: none; }
.bsf .bsm-bulk { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bsf .bsm-bulk[hidden] { display: none; }
.bsf .bsm-move { height: 32px; font-size: 13px; }
.bsf .bsm-search { margin-left: auto; flex: 0 1 260px; }
.bsf .bsm-search .bsf-input { height: 34px; }
.bsf .bsm-listhead { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px 8px; }
.bsf .bsm-listhead h2 { margin: 0; font-size: 18px; color: var(--bsf-ink); }
.bsf .bsm-pager { margin-left: auto; display: inline-flex; }

.bsf .bsm-rows { border-top: 1px solid var(--bsf-line); }
.bsf .bsm-row { display: flex; align-items: center; gap: 4px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--bsf-line); }
.bsf .bsm-row:hover { background: #fafafb; }
.bsf .bsm-row.is-picked { background: #fff5f6; }
.bsf .bsm-check { display: inline-flex; padding: 4px; }
.bsf .bsm-check input { width: 16px; height: 16px; accent-color: var(--bsf-red); }
.bsf .bsm-star { width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: #b5b8bf; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bsf .bsm-star.is-on, .bsf .bsm-iconbtn.bsm-star.is-on { color: #e8a317; }
.bsf .bsm-row-link { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 14px; align-items: center; flex: 1; min-width: 0; padding: 11px 0; color: var(--bsf-text, #3a3d44); text-decoration: none; }
.bsf .bsm-from, .bsf .bsm-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsf .bsm-row.is-unread .bsm-from, .bsf .bsm-row.is-unread .bsm-subject { color: var(--bsf-ink); font-weight: 700; }
.bsf .bsm-row.is-unread { box-shadow: inset 3px 0 0 var(--bsf-red); }
.bsf .bsm-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--bsf-muted); font-size: 12.5px; white-space: nowrap; }
.bsf .bsm-meta .bsm-ico { width: 15px; height: 15px; }
.bsf .bsm-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; background: var(--bsf-wash); color: var(--bsf-muted); font-size: 11px; font-weight: 600; }

/* Reader */
.bsf .bsm-read { padding: 18px 22px 26px; }
.bsf .bsm-read-subject { margin: 0 0 14px; font-size: 21px; line-height: 1.3; color: var(--bsf-ink); overflow-wrap: anywhere; }
.bsf .bsm-read-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--bsf-line); }
.bsf .bsm-read-who { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bsf .bsm-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bsf-ink); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.bsf .bsm-imgbar { margin: 12px 0 0; padding: 9px 12px; border-radius: 6px; background: #fff8e6; color: #6b4e00; font-size: 13px; }
.bsf .bsm-frame { display: block; width: 100%; min-height: 160px; margin-top: 14px; border: 0; }
.bsf .bsm-atts { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bsf-line); display: flex; flex-direction: column; gap: 8px; }
.bsf .bsm-att { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--bsf-line); border-radius: 8px; }
.bsf .bsm-att-name { flex: 1; min-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--bsf-ink); }

/* Compose */
.bsf .bsm-compose-modal { width: min(860px, 96vw); max-width: 860px; }
.bsf .bsm-compose-modal .bsf-modal-body { padding-top: 6px; }
.bsf .bsm-cfield { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--bsf-line); }
.bsf .bsm-cfield > span { width: 58px; flex: none; color: var(--bsf-muted); font-size: 13px; }
.bsf .bsm-cfield .bsf-input { border: 0; box-shadow: none; padding-left: 0; height: 36px; }
.bsf .bsm-cfield .bsf-input:focus { outline: none; }
.bsf .bsm-cfield:focus-within { border-bottom-color: var(--bsf-ink); }
.bsf .bsm-from-me { color: var(--bsf-ink); font-size: 14px; padding: 8px 0; }
.bsf .bsm-fmt { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 0; }
.bsf .bsm-fmt button { height: 30px; padding: 0 10px; border: 1px solid var(--bsf-line); border-radius: 5px; background: #fff; color: var(--bsf-ink); font-size: 13px; cursor: pointer; }
.bsf .bsm-fmt button:hover { border-color: var(--bsf-ink); }
.bsf .bsm-editor {
	min-height: 240px; max-height: 50vh; overflow-y: auto; padding: 12px 14px; border: 1px solid var(--bsf-line); border-radius: 8px;
	font: 14px/1.55 Arial, Helvetica, sans-serif; color: #1a1a1a; outline: none;
}
.bsf .bsm-editor:focus { border-color: var(--bsf-ink); }
.bsf .bsm-editor blockquote { margin: 0 0 0 6px; padding-left: 12px; border-left: 3px solid var(--bsf-line); color: #555; }
.bsf .bsm-editor img { max-width: 100%; height: auto; }
.bsf .bsm-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.bsf .bsm-attach .bsf-btn .bsm-ico { width: 15px; height: 15px; margin-right: 4px; }
.bsf .bsm-files { display: flex; flex-wrap: wrap; gap: 6px; }
.bsf .bsm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--bsf-wash); font-size: 12.5px; }
.bsf .bsm-chip button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; }
.bsf .bsm-chip button:hover { background: #fff; color: var(--bsf-red); }
.bsf .bsm-fwd-atts { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.bsf .bsm-notice { margin: 12px 0 0; padding: 9px 12px; border-left: 3px solid var(--bsf-red); border-radius: 0 6px 6px 0; background: var(--bsf-wash); color: var(--bsf-muted); font-size: 12.5px; }

/* Setup and settings */
.bsf .bsm-setup { display: flex; justify-content: center; padding: 34px 16px 44px; border-top: 1px solid var(--bsf-line); }
.bsf .bsm-setup-card { width: 100%; max-width: 440px; }
.bsf .bsm-setup-card h2 { margin: 10px 0 6px; font-size: 22px; color: var(--bsf-ink); }
.bsf .bsm-setup-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--bsf-ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.bsf .bsm-setup-icon .bsm-ico { width: 24px; height: 24px; }
.bsf .bsm-setup-form { margin-top: 18px; }
.bsf .bsm-field { display: block; margin-bottom: 12px; }
.bsf .bsm-field .bsf-label { display: block; margin-bottom: 6px; }
.bsf .bsm-field .bsf-input { width: 100%; }
.bsf .bsm-wide { width: 100%; justify-content: center; margin-top: 14px; }
.bsf .bsm-textarea { height: auto; min-height: 100px; padding: 9px 12px; font: inherit; font-size: 14px; resize: vertical; }
.bsf .bsm-danger { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px; border: 1px solid #f1c3cb; border-radius: 8px; }

.bsf .bsm-wrap { container-type: inline-size; container-name: bsm; }
.bsf .bsm h2, .bsf .bsm-setup h2 { font-family: inherit; letter-spacing: normal; }
.bsf .bsm-main { container-type: inline-size; container-name: bsmmain; }
@container bsm (max-width: 780px) {
	.bsf .bsm { grid-template-columns: 1fr; }
	.bsf .bsm-side { border-right: 0; border-bottom: 1px solid var(--bsf-line); }
	.bsf .bsm-folders { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; }
	.bsf .bsm-folder { flex: none; }
	.bsf .bsm-folder.is-on { box-shadow: inset 0 -3px 0 var(--bsf-red); }
	.bsf .bsm-me { display: none; }
	.bsf .bsm-row-link { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "from meta" "subject subject"; gap: 2px 10px; }
	.bsf .bsm-from { grid-area: from; }
	.bsf .bsm-subject { grid-area: subject; }
	.bsf .bsm-meta { grid-area: meta; }
	.bsf .bsm-search { flex: 1 1 100%; margin-left: 0; }
}
@container bsmmain (max-width: 620px) {
	.bsf .bsm-row-link { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "from meta" "subject subject"; gap: 2px 10px; }
	.bsf .bsm-from { grid-area: from; }
	.bsf .bsm-subject { grid-area: subject; }
	.bsf .bsm-meta { grid-area: meta; }
	.bsf .bsm-search { flex: 1 1 100%; margin-left: 0; }
	.bsf .bsm-read-head { flex-wrap: wrap; }
	.bsf .bsm-read-head time { width: 100%; padding-left: 50px; }
}
@media (max-width: 560px) {
	.bsf .bsm-read { padding: 14px; }
	.bsf .bsm-cfield > span { width: 48px; }
}

/* ==================================================================
 * Effects (assets/fx.js) — all switched off for reduced motion
 * ================================================================ */

/* Branded loading screen */
.bsf-loader {
	position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
	background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f4f5f7 70%); transition: opacity .5s ease, visibility .5s ease;
}
.bsf-loader.is-done { opacity: 0; visibility: hidden; }
.bsf-loader-mark { position: relative; width: 112px; height: 112px; display: flex; align-items: center; justify-content: center; }
.bsf-loader-mark img { width: 84px; height: 84px; object-fit: contain; border-radius: 50%; animation: bsf-breathe 2.2s ease-in-out infinite; }
.bsf-loader-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(200, 16, 46, .12); border-top-color: #c8102e; animation: bsf-spin 1s linear infinite; }
.bsf-loader-text { margin: 0; font: 600 14px/1.4 Archivo, "Segoe UI", Arial, sans-serif; color: #3a3d44; letter-spacing: .01em; }
.bsf-loader-line { width: 180px; height: 3px; border-radius: 3px; background: #e6e7ea; overflow: hidden; }
.bsf-loader-line span { display: block; width: 40%; height: 100%; border-radius: 3px; background: #c8102e; animation: bsf-slide 1.1s ease-in-out infinite; }
@keyframes bsf-spin { to { transform: rotate(360deg); } }
@keyframes bsf-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(.94); } }
@keyframes bsf-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* Activity line at the top while something loads */
.bsf-fxbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100001; height: 3px; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.bsf-fxbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c8102e, #ff4d5e); box-shadow: 0 0 10px rgba(200, 16, 46, .6); }
.bsf-fxbar.is-on { opacity: 1; }
.bsf-fxbar.is-on span { animation: bsf-progress 8s cubic-bezier(.1, .7, .2, 1) forwards; }
.bsf-fxbar.is-done span { width: 100% !important; animation: none; transition: width .25s ease; }
@keyframes bsf-progress { 0% { width: 0; } 30% { width: 55%; } 100% { width: 92%; } }

/* Cursor ring (the normal pointer stays, so nothing is ever hard to click) */
.bsf-cursor, .bsf-cursor-dot { position: fixed; top: 0; left: 0; z-index: 100002; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
body.bsf-cursor-on .bsf-cursor, body.bsf-cursor-on .bsf-cursor-dot { opacity: 1; }
.bsf-cursor::before {
	content: ""; position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%;
	border: 1.5px solid rgba(200, 16, 46, .55); background: rgba(200, 16, 46, .04);
	transition: transform .25s ease, background .25s ease, border-color .25s ease, opacity .2s ease;
}
.bsf-cursor.is-hover::before { transform: scale(1.55); background: rgba(200, 16, 46, .08); border-color: rgba(200, 16, 46, .8); }
.bsf-cursor.is-down::before { transform: scale(.8); background: rgba(200, 16, 46, .18); }
.bsf-cursor.is-text::before { opacity: 0; }
.bsf-cursor-dot::before { content: ""; position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: #c8102e; transition: opacity .2s ease; }
.bsf-cursor-dot.is-text::before { opacity: 0; }

/* Click ripple */
.bsf .bsf-btn, .bsf .bsf-officebtn, .bsf .bsf-tab, .bsf .bsm-folder, .bsf .bsm-compose { position: relative; overflow: hidden; }
.bsf-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .18; transform: scale(0); pointer-events: none; animation: bsf-ripple .6s ease-out forwards; }
@keyframes bsf-ripple { to { transform: scale(1); opacity: 0; } }

/* Motion */
.bsf.bsf-fx .bsf-list > *, .bsf.bsf-fx .bsm-main > *, .bsf.bsf-fx .bsp > * { animation: bsf-fade .28s ease both; }
.bsf.bsf-fx .bsf-row:not(.bsf-row-head), .bsf.bsf-fx .bsm-row, .bsf.bsf-fx .bsp-card { animation: bsf-rise .32s cubic-bezier(.2, .7, .2, 1) both; }
.bsf.bsf-fx .bsf-row:nth-child(2), .bsf.bsf-fx .bsm-row:nth-child(1), .bsf.bsf-fx .bsp-card:nth-child(1) { animation-delay: .02s; }
.bsf.bsf-fx .bsf-row:nth-child(3), .bsf.bsf-fx .bsm-row:nth-child(2), .bsf.bsf-fx .bsp-card:nth-child(2) { animation-delay: .04s; }
.bsf.bsf-fx .bsf-row:nth-child(4), .bsf.bsf-fx .bsm-row:nth-child(3), .bsf.bsf-fx .bsp-card:nth-child(3) { animation-delay: .06s; }
.bsf.bsf-fx .bsf-row:nth-child(5), .bsf.bsf-fx .bsm-row:nth-child(4), .bsf.bsf-fx .bsp-card:nth-child(4) { animation-delay: .08s; }
.bsf.bsf-fx .bsf-row:nth-child(6), .bsf.bsf-fx .bsm-row:nth-child(5), .bsf.bsf-fx .bsp-card:nth-child(5) { animation-delay: .1s; }
.bsf.bsf-fx .bsf-row:nth-child(7), .bsf.bsf-fx .bsm-row:nth-child(6), .bsf.bsf-fx .bsp-card:nth-child(6) { animation-delay: .12s; }
.bsf.bsf-fx .bsf-row:nth-child(8), .bsf.bsf-fx .bsm-row:nth-child(7), .bsf.bsf-fx .bsp-card:nth-child(7) { animation-delay: .14s; }
.bsf.bsf-fx .bsf-row:nth-child(n+9), .bsf.bsf-fx .bsm-row:nth-child(n+8), .bsf.bsf-fx .bsp-card:nth-child(n+8) { animation-delay: .16s; }
.bsf.bsf-fx .bsf-modal { animation: bsf-pop .24s cubic-bezier(.2, .8, .2, 1) both; }
.bsf.bsf-fx .bsf-overlay { animation: bsf-fade .2s ease both; }
.bsf.bsf-fx .bsf-btn, .bsf.bsf-fx .bsf-officebtn { transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.bsf.bsf-fx .bsf-btn:hover:not(:disabled), .bsf.bsf-fx .bsf-officebtn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.bsf.bsf-fx .bsf-btn:active:not(:disabled), .bsf.bsf-fx .bsf-officebtn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.bsf.bsf-fx .bsf-btn.is-primary:hover:not(:disabled) { box-shadow: 0 6px 16px rgba(200, 16, 46, .28); }
.bsf.bsf-fx .bsf-row:not(.bsf-row-head), .bsf.bsf-fx .bsm-row { transition: background-color .18s ease, box-shadow .18s ease; }
.bsf.bsf-fx .bsp-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.bsf.bsf-fx .bsp-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.bsf.bsf-fx .bsf-tab, .bsf.bsf-fx .bsm-folder { transition: color .2s ease, background-color .2s ease, box-shadow .25s ease; }
.bsf.bsf-fx .bsf-mailbadge, .bsf.bsf-fx .bsm-count { animation: bsf-pop .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes bsf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bsf-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bsf-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.bsf-loader-ring, .bsf-loader-mark img, .bsf-loader-line span { animation: none; }
	.bsf-loader-line span { width: 100%; }
	.bsf-fxbar, .bsf-cursor, .bsf-cursor-dot { display: none; }
}
@media (hover: none), (pointer: coarse) {
	.bsf-cursor, .bsf-cursor-dot { display: none; }
}

/* Built-in file viewer */
.bsf .bsf-modal.bsf-viewer { width: min(1100px, 96vw); max-width: 1100px; height: min(90vh, 1000px); display: flex; flex-direction: column; }
.bsf .bsf-viewer .bsf-modal-head h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsf .bsf-viewer .bsf-modal-body { flex: 1; min-height: 0; padding: 0; display: flex; }
.bsf .bsf-viewer-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #f2f3f5; overflow: auto; }
.bsf .bsf-viewer-stage > p { padding: 24px; }
.bsf .bsf-viewer-frame { width: 100%; height: 100%; border: 0; background: #fff; }
.bsf .bsf-viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); background: #fff; }
.bsf .bsf-viewer-media { max-width: 100%; max-height: 100%; background: #000; }
.bsf .bsf-viewer-audio { width: min(520px, 90%); }
.bsf .bsf-viewer .bsf-modal-foot .bsf-btn .bsf-ico, .bsf .bsf-viewer .bsf-modal-foot .bsf-btn svg { width: 17px; height: 17px; margin-right: 6px; }
@media (max-width: 560px) {
	.bsf .bsf-modal.bsf-viewer { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
	.bsf .bsf-viewer .bsf-modal-foot { flex-wrap: wrap; }
}

/* Email signature */
.bsf .bsm-sigbtn { width: 100%; justify-content: center; gap: 6px; }
.bsf .bsm-sigbtn .bsm-ico { width: 15px; height: 15px; }
.bsf .bsm-settings-modal { width: min(720px, 96vw); max-width: 720px; }
.bsf .bsm-row2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bsf .bsm-sigbox { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--bsf-line); }
.bsf .bsm-sighead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bsf .bsm-sig-editor { min-height: 130px; max-height: 300px; margin-bottom: 10px; }
.bsf .bsm-sig-editor img { max-width: 100%; height: auto; }
.bsf .bsm-fmt-file { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--bsf-line); border-radius: 5px; background: #fff; color: var(--bsf-ink); font-size: 13px; cursor: pointer; }
.bsf .bsm-fmt-file:hover { border-color: var(--bsf-ink); }
.bsf .bsm-sig { margin-top: 4px; }
@media (max-width: 640px) { .bsf .bsm-row2 { grid-template-columns: 1fr; } }

/* Date, time and calendar */
.bsf .bsf-clockbox { position: relative; margin-left: auto; }
.bsf .bsf-clock {
	display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px;
	border: 1px solid var(--bsf-line); border-radius: 8px; background: var(--bsf-paper, #fff); color: var(--bsf-ink); cursor: pointer;
	font: inherit; font-size: 14px;
}
.bsf .bsf-clock:hover, .bsf .bsf-clock[aria-expanded="true"] { border-color: var(--bsf-ink); }
.bsf .bsf-clock svg { width: 18px; height: 18px; color: var(--bsf-red); flex: none; }
.bsf .bsf-clock-text { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.bsf .bsf-clock-date { color: var(--bsf-muted); }
.bsf .bsf-clock-time { font-variant-numeric: tabular-nums; font-size: 15px; }
.bsf .bsf-cal {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 330px; padding: 14px;
	border: 1px solid var(--bsf-line); border-top: 3px solid var(--bsf-red); border-radius: 10px; background: #fff;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
}
.bsf .bsf-cal[hidden] { display: none; }
.bsf .bsf-cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.bsf .bsf-cal-head strong { flex: 1; text-align: center; font-size: 15px; color: var(--bsf-ink); }
.bsf .bsf-cal-nav { width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--bsf-ink); }
.bsf .bsf-cal-nav:hover { background: var(--bsf-wash); }
.bsf .bsf-cal-today { height: 28px; padding: 0 10px; border: 1px solid var(--bsf-line); border-radius: 6px; background: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--bsf-ink); }
.bsf .bsf-cal-today:hover { border-color: var(--bsf-ink); }
.bsf .bsf-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bsf .bsf-cal-wd { padding: 4px 0; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--bsf-muted); text-transform: uppercase; letter-spacing: .03em; }
.bsf .bsf-cal-day {
	position: relative; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--bsf-ink);
	font: inherit; font-size: 13.5px; cursor: pointer; font-variant-numeric: tabular-nums;
}
.bsf .bsf-cal-day:hover { background: var(--bsf-wash); }
.bsf .bsf-cal-day.is-weekend { color: #6b6f78; }
.bsf .bsf-cal-day.is-other { color: #c3c6cc; }
.bsf .bsf-cal-day.is-holiday { color: var(--bsf-red); font-weight: 700; }
.bsf .bsf-cal-day.is-holiday.is-other { color: #eaa6b1; }
.bsf .bsf-cal-day.is-today { background: var(--bsf-red); color: #fff; font-weight: 700; }
.bsf .bsf-cal-day.is-sel:not(.is-today) { box-shadow: inset 0 0 0 2px var(--bsf-ink); }
.bsf .bsf-cal-dot { position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--bsf-ink); }
.bsf .bsf-cal-day.is-today .bsf-cal-dot { background: #fff; }
.bsf .bsf-cal-list { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--bsf-line); max-height: 210px; overflow-y: auto; }
.bsf .bsf-cal-listhead { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--bsf-ink); }
.bsf .bsf-cal-item { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; margin-bottom: 4px; border-left: 3px solid var(--bsf-ink); border-radius: 0 6px 6px 0; background: var(--bsf-wash); color: var(--bsf-ink); text-decoration: none; font-size: 13px; }
.bsf a.bsf-cal-item:hover { background: #e9eaed; }
.bsf .bsf-cal-item.is-holiday { border-left-color: var(--bsf-red); }
.bsf .bsf-cal-item.is-done .bsf-cal-title { text-decoration: line-through; color: var(--bsf-muted); }
.bsf .bsf-cal-kind { font-size: 11px; font-weight: 700; color: var(--bsf-red); text-transform: uppercase; letter-spacing: .03em; }
.bsf .bsf-cal-title { font-weight: 600; }
.bsf .bsf-cal-none { margin: 4px 0; font-size: 13px; }
@media (max-width: 640px) {
	.bsf .bsf-clockbox { margin-left: 0; width: 100%; }
	.bsf .bsf-clock { width: 100%; justify-content: center; }
	.bsf .bsf-cal { left: 0; right: 0; width: auto; }
}

/* Browser button */
.bsf .bsf-browsermenu { width: 290px; padding: 10px; }
.bsf .bsf-browser-field { display: block; margin: 0 0 8px; }
.bsf .bsf-browser-field .bsf-label { display: block; margin: 0 0 5px; }
.bsf .bsf-browser-field .bsf-input { width: 100%; height: 36px; }
.bsf .bsf-browsermenu .bsf-menu-item.is-last { font-weight: 700; }
.bsf .bsf-browsermenu .bsf-menu-item.is-last::after { content: "last used"; margin-left: auto; font-size: 11px; font-weight: 600; color: var(--bsf-muted); }
.bsf .bsf-browsermenu .bsf-menu-item svg { color: var(--bsf-red); }
@media (max-width: 640px) { .bsf .bsf-browsermenu { width: min(290px, 90vw); } }

/* Activity: cleared note */
.bsf .bsf-cleared-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: var(--bsf-wash); }

/* Browser menu: open inside BrandSoft first */
.bsf .bsf-browser-here { width: 100%; justify-content: center; gap: 8px; margin: 2px 0 4px; }
.bsf .bsf-browser-here svg { color: #fff !important; }
.bsf .bsf-browser-or { margin: 6px 4px 2px; font-size: 12px; }
.bsf .bsf-assistbtn svg { color: var(--bsf-red); }

/* ==================================================================
 * Phones and small tablets (3.7): one-line top bar, swipeable tabs,
 * compact toolbar, ⋯ action sheets, bottom-sheet pop-ups
 * ================================================================ */
.bsf .bsf-more-btn { display: none; }
.bsf .bsf-lbl-short { display: none; }

/* Action sheet (opened by ⋯ on phones) */
.bsf .bsf-sheet-file { display: flex; align-items: center; gap: 12px; padding: 2px 0 12px; border-bottom: 1px solid var(--bsf-line); }
.bsf .bsf-sheet-file > div { display: flex; flex-direction: column; min-width: 0; }
.bsf .bsf-sheet-file strong { font-size: 15px; color: var(--bsf-ink); overflow-wrap: anywhere; }
.bsf .bsf-sheet-file .bsf-muted { font-size: 13px; }
.bsf .bsf-sheet-list { display: flex; flex-direction: column; padding-top: 6px; }
.bsf .bsf-sheet-item {
	display: flex; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 0 6px;
	border: 0; border-bottom: 1px solid var(--bsf-wash); background: transparent; color: var(--bsf-ink);
	font: inherit; font-size: 16px; text-align: left; cursor: pointer;
}
.bsf .bsf-sheet-item:last-child { border-bottom: 0; }
.bsf .bsf-sheet-item:active { background: var(--bsf-wash); }
.bsf .bsf-sheet-item.is-danger { color: var(--bsf-red); }
.bsf .bsf-sheet-ico { display: inline-flex; width: 22px; height: 22px; color: inherit; }
.bsf .bsf-sheet-ico svg { width: 22px; height: 22px; }
.bsf .bsf-sheet .bsf-modal-foot .bsf-btn { width: 100%; justify-content: center; }

@media (max-width: 720px) {
	/* Top bar: one line */
	.bsf .bsf-head { flex-wrap: nowrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
	.bsf .bsf-who { flex-wrap: nowrap; gap: 6px; min-width: 0; }
	.bsf .bsf-officebtn { min-width: 40px; height: 40px; padding: 0 9px; justify-content: center; }
	.bsf .bsf-signout { white-space: nowrap; font-size: 13px; }

	/* Tabs: one row that swipes sideways */
	.bsf .bsf-nav {
		flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
		-webkit-overflow-scrolling: touch; scroll-behavior: smooth;
		-webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
	}
	.bsf .bsf-nav::-webkit-scrollbar { display: none; }
	.bsf .bsf-tabs { flex-wrap: nowrap; flex: none; }
	.bsf .bsf-tab { flex: none; white-space: nowrap; }

	/* Toolbar: one compact row, filter below */
	.bsf .bsf-toolbar { gap: 6px; align-items: center; }
	.bsf .bsf-actions { flex-wrap: wrap; gap: 6px; min-width: 0; }
	.bsf .bsf-actions:empty { display: none; }
	.bsf .bsf-toolbar > .bsf-actions > .bsf-btn,
	.bsf .bsf-toolbar .bsf-newwrap > .bsf-btn { min-height: 42px; padding-left: 11px; padding-right: 11px; }
	.bsf .bsf-toolbar .bsf-newwrap > .bsf-btn .bsf-caret { margin-left: 2px; }
	/* Row 1: buttons. Row 2: time + filter. */
	.bsf .bsf-toolbar > .bsf-actions, .bsf .bsf-toolbar > .bsf-browserwrap { order: 1; }
	.bsf .bsf-toolbar > .bsf-clockbox { order: 2; margin-left: 0; }
	.bsf .bsf-toolbar > .bsf-search { order: 3; flex: 1 1 0; width: auto; min-width: 0; }
	.bsf .bsf-toolbar .bsf-select { flex: 1 1 150px; min-width: 0; max-width: 100%; }
	.bsf .bsf-sm-icon .bsf-lbl-long, .bsf .bsf-sm-icon .bsf-caret { display: none; }
	.bsf .bsf-sm-icon { width: 42px; min-width: 42px; padding: 0; justify-content: center; }
	.bsf .bsf-btn.is-primary .bsf-lbl-long { display: none; }
	.bsf .bsf-btn.is-primary .bsf-lbl-short { display: inline; }
	.bsf .bsf-clockbox { width: auto; margin-left: auto; }
	.bsf .bsf-clock { width: auto; height: 42px; padding: 0 9px; gap: 5px; }
	.bsf .bsf-clock svg { width: 16px; height: 16px; }
	.bsf .bsf-clock-date { display: none; }

	/* Calendar and Browser menu: bottom sheets */
	.bsf .bsf-cal, .bsf .bsf-browsermenu {
		position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
		width: auto; max-height: 82vh; overflow-y: auto; z-index: 100001;
		box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
	}

	/* File rows: full names, one ⋯ button */
	.bsf .bsf-c-act > .bsf-icon-btn:not(.bsf-more-btn), .bsf .bsf-c-act > .bsf-btn { display: none; }
	.bsf .bsf-more-btn { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; }
	.bsf .bsf-row { min-height: 60px; padding: 8px 4px 8px 8px; }
	.bsf .bsf-name { gap: 10px; }
	.bsf .bsf-name-text { font-size: 15px; }
	/* Under the name: just the date, lined up with the name (size is in the ⋯ menu). */
	.bsf .bsf-row:not(.bsf-row-head) .bsf-c-size { display: none; }
	.bsf .bsf-row:not(.bsf-row-head) .bsf-c-date { padding-left: 50px; text-align: left; }

	/* Pop-ups: bottom sheets; big ones full screen */
	.bsf-overlay { align-items: flex-end; padding: 0; }
	.bsf-modal {
		width: 100% !important; max-width: 100% !important; max-height: 92vh; max-height: 92dvh;
		border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px);
	}
	.bsf .bsm-compose-modal, .bsf .bsf-modal.bsf-viewer, .bsf .bsm-settings-modal {
		height: 100vh; height: 100dvh; max-height: 100dvh; border-radius: 0;
	}
	.bsf .bsf-modal-foot { flex-wrap: wrap; }

	/* Typing must not zoom the page on iPhone (needs 16px text in fields) */
	.bsf input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
	.bsf select, .bsf textarea, .bsf [contenteditable="true"] { font-size: 16px; }
}

/* Email: never wider than the phone */
@container bsm (max-width: 780px) {
	.bsf .bsm { grid-template-columns: minmax(0, 1fr); }
	.bsf .bsm-side, .bsf .bsm-folders { min-width: 0; }
	.bsf .bsm-side { gap: 8px; padding: 10px; }
	.bsf .bsm-sigbtn { width: auto; align-self: flex-start; }
}
@container bsmmain (max-width: 620px) {
	.bsf .bsm-lbl { display: none; }
	.bsf .bsm-toolbar { padding: 8px 10px; gap: 6px; }
	.bsf .bsm-toolbar .bsf-btn .bsm-ico { margin-right: 0; }
	.bsf .bsm-read { padding: 14px 12px; }
	.bsf .bsm-read-subject { font-size: 19px; }
	.bsf .bsm-row { padding: 0 6px 0 10px; }
	.bsf .bsm-move { max-width: 110px; }
}

/* Activity filter and Clear: one line, lined up with the Browser button.
   (Some themes make every drop-down full width; this keeps ours a fixed size.) */
.bsf .bsf-toolbar { align-items: center; }
.bsf .bsf-actions-side { flex-wrap: nowrap; align-items: center; }
.bsf .bsf-toolbar .bsf-activity-type { width: 230px !important; max-width: 230px; flex: 0 0 230px; margin: 0; }
.bsf .bsf-actions-side > .bsf-btn { flex: none; height: 38px; }
@media (max-width: 720px) {
	.bsf .bsf-toolbar .bsf-activity-type { width: auto !important; max-width: none; flex: 1 1 150px; min-width: 0; }
}

/* ==================================================================
 * List / grid view switch and grid (icon) view (3.8)
 * ================================================================ */
.bsf .bsf-bar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.bsf .bsf-viewtoggle { display: inline-flex; padding: 3px; border: 1px solid var(--bsf-line); border-radius: 8px; background: var(--bsf-paper, #fff); }
.bsf .bsf-viewtoggle[hidden] { display: none; }
.bsf .bsf-viewbtn {
	display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px;
	border: 0; border-radius: 6px; background: transparent; color: var(--bsf-muted); cursor: pointer;
}
.bsf .bsf-viewbtn svg { width: 18px; height: 18px; }
.bsf .bsf-viewbtn:hover { color: var(--bsf-ink); background: var(--bsf-wash); }
.bsf .bsf-viewbtn[aria-pressed="true"] { background: var(--bsf-ink); color: #fff; }

/* Grid: the same rows, laid out as tiles */
.bsf .bsf-table.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; padding: 6px 0 4px; }
.bsf .bsf-table.is-grid .bsf-row {
	position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px;
	min-height: 0; padding: 14px 12px 12px; border: 1px solid var(--bsf-line); border-radius: 10px;
	background: var(--bsf-paper, #fff); transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease;
}
.bsf .bsf-table.is-grid .bsf-row + .bsf-row { border-top: 1px solid var(--bsf-line); }
.bsf .bsf-table.is-grid .bsf-row:hover { background: var(--bsf-paper, #fff); border-color: var(--bsf-ink); box-shadow: 0 8px 22px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.bsf .bsf-table.is-grid .bsf-c-name { display: block; min-width: 0; }
.bsf .bsf-table.is-grid .bsf-name { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; text-align: center; }
.bsf .bsf-table.is-grid .bsf-kind {
	width: 100%; height: 104px; border-radius: 8px; font-size: 18px; letter-spacing: .04em; text-transform: uppercase;
}
.bsf .bsf-table.is-grid .bsf-kind.is-folder { background: var(--bsf-wash); border-color: var(--bsf-line); color: var(--bsf-ink); }
.bsf .bsf-table.is-grid .bsf-kind.is-folder .bsf-ico { width: 54px; height: 54px; }
.bsf .bsf-table.is-grid .bsf-kind.is-folder .bsf-ico svg { width: 100%; height: 100%; }
@media (max-width: 720px) { .bsf .bsf-table.is-grid .bsf-kind.is-folder .bsf-ico { width: 44px; height: 44px; } }
.bsf .bsf-thumb {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 104px; overflow: hidden;
	border-radius: 8px; border: 1px solid var(--bsf-line); background: repeating-conic-gradient(#f4f5f7 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}
.bsf .bsf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bsf .bsf-table.is-grid .bsf-name-text {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	white-space: normal; overflow-wrap: anywhere; font-size: 14px; line-height: 1.3; min-height: 2.6em; color: var(--bsf-ink);
}
.bsf .bsf-table.is-grid .bsf-tag { align-self: center; }
.bsf .bsf-table.is-grid .bsf-c-size { display: none; }
.bsf .bsf-table.is-grid .bsf-c-date, .bsf .bsf-table.is-grid .bsf-c-owner { padding: 0 !important; text-align: center; font-size: 12.5px; }
/* Actions: one ⋯ button in the corner, like on phones */
.bsf .bsf-table.is-grid .bsf-c-act { position: absolute; top: 6px; right: 6px; }
.bsf .bsf-table.is-grid .bsf-c-act > .bsf-icon-btn:not(.bsf-more-btn), .bsf .bsf-table.is-grid .bsf-c-act > .bsf-btn { display: none; }
.bsf .bsf-table.is-grid .bsf-more-btn {
	display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center;
	border-radius: 8px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
@media (max-width: 720px) {
	.bsf .bsf-table.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.bsf .bsf-table.is-grid .bsf-row { padding: 10px 8px 10px; min-height: 0; }
	.bsf .bsf-table.is-grid .bsf-kind, .bsf .bsf-thumb { height: 88px; }
	.bsf .bsf-bar-right { gap: 10px; }
}
