:root {
	--ink: #101418;
	--muted: #637083;
	--line: #dfe5ec;
	--paper: #f7f8fa;
	--accent: #14b8a6;
	--accent-warm: #f59e0b;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0;
}

a {
	color: inherit;
}

.app-shell {
	min-height: 100svh;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px clamp(18px, 4vw, 48px);
	background: rgba(247, 248, 250, 0.86);
	border-bottom: 1px solid rgba(16, 20, 24, 0.08);
	backdrop-filter: blur(18px);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-weight: 800;
	text-decoration: none;
	letter-spacing: 0;
}
.brand span {
	text-transform: uppercase;
}
.brand-mark {
	width: 28px;
	height: 28px;
	background:
		linear-gradient(135deg, var(--accent), #2563eb 55%, var(--accent-warm));
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(20, 184, 166, 0.24);
}

.brand-logo {
	display: block;
	width: auto;
	max-width: 140px;
	height: 28px;
	object-fit: contain;
}

.topnav {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 0.95rem;
}

.topnav a,
.link-button {
	border: 0;
	background: transparent;
	color: var(--muted);
	text-decoration: none;
	transition: color 160ms ease;
}

.topnav a.active,
.topnav a:hover,
.link-button:hover {
	color: var(--ink);
}

.login-page {
	min-height: calc(100svh - 65px);
	display: grid;
	place-items: center;
	padding: 24px;
	background:
		radial-gradient(circle at 24% 28%, rgba(34, 65, 112, 0.18), transparent 26%),
		radial-gradient(circle at 82% 34%, rgba(26, 30, 37, 0.34), transparent 28%),
		linear-gradient(180deg, #0c1015, #0a0d11);
	color: #f3f5f7;
	overflow: hidden;
}

.has-brand-background .login-page {
	background:
		linear-gradient(180deg, rgba(12, 16, 21, 0.82), rgba(10, 13, 17, 0.9)),
		var(--brand-background-image);
	background-position: center;
	background-size: cover;
}

.login-stack,
.login-copyright {
	width: min(100%, 520px);
}

.login-card {
	width: min(100%, 526px);
	padding: 34px 40px 28px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 20px;
	background: rgba(24, 28, 33, 0.92);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
	backdrop-filter: blur(20px);
	animation: reveal-up 450ms ease both;
}

.login-brand {
	color: #98a1ad;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.login-logo {
	display: block;
	width: auto;
	max-width: 180px;
	max-height: 42px;
	object-fit: contain;
}

.login-heading {
	margin-top: 44px;
}

.login-heading h1 {
	margin: 0;
	color: #f3f5f7;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0;
}

.login-heading p {
	max-width: 100%;
	margin: 12px 0 0;
	color: #98a1ad;
	font-size: 14px;
	line-height: 1.7;
}

.login-form {
	display: grid;
	gap: 18px;
	margin-top: 34px;
}

.login-field {
	display: grid;
}

.login-field label {
	display: block;
	margin: 0 0 8px;
	color: #98a1ad;
	font-size: 12px;
	font-weight: 600;
}

.login-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 2px;
}

.login-control {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.02);
	transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.login-control:focus-within {
	border-color: rgba(74, 122, 209, 0.42);
	background: rgba(255, 255, 255, 0.035);
	box-shadow: 0 0 0 4px rgba(55, 109, 206, 0.18);
}

.login-control input {
	width: 100%;
	padding: 14px 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #f3f5f7;
	font-size: 15px;
}

.login-control input::placeholder {
	color: #69707c;
}

.login-control input:-webkit-autofill,
.login-control input:-webkit-autofill:hover,
.login-control input:-webkit-autofill:focus {
	-webkit-text-fill-color: #f3f5f7;
	caret-color: #f3f5f7;
	border-radius: inherit;
	-webkit-box-shadow: 0 0 0 1000px #1b2027 inset;
	box-shadow: 0 0 0 1000px #1b2027 inset;
	transition: background-color 99999s ease-out 0s;
}

.toggle-password {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #98a1ad;
	cursor: pointer;
	transition: color 180ms ease, background 180ms ease;
}

.toggle-password:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

.toggle-password svg {
	width: 18px;
	height: 18px;
}

.login-link {
	margin-bottom: 8px;
	color: #9db8ea;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.login-link:hover {
	color: #c4d8ff;
}

.remember-option {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #98a1ad;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.remember-option input {
	width: 16px;
	height: 16px;
	accent-color: #215fc4;
}

.login-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 6px;
	padding: 0 20px;
	border: 0;
	border-radius: 10px;
	background: #215fc4;
	color: #f7faff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.login-submit:hover {
	background: #2a6cda;
}

.login-submit:active {
	transform: translateY(1px);
}

.login-status {
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.45;
	animation: reveal-up 200ms ease both;
}

.login-status.err {
	background: rgba(88, 29, 37, 0.24);
	border-color: rgba(229, 87, 87, 0.2);
	color: #ff9b9b;
}

.login-foot {
	display: grid;
	gap: 6px;
	margin-top: 28px;
	color: #98a1ad;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.support-line {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 100%;
	min-height: 56px;
	margin: 0 auto;
	padding: 0 18px;
	border-top: 1px solid rgba(54, 57, 64, 0.1);
	text-align: center;
	transition: color 200ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.support-line.is-highlighted {
	border-radius: 12px;
	background: rgba(33, 196, 99, 0.08);
	color: #f3f5f7;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.login-copyright {
	margin: 14px auto 0;
	color: #747d89;
	font-size: 11px;
	text-align: center;
}

.login-stage {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
	min-height: calc(100svh - 65px);
}

.login-visual {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	padding: clamp(32px, 7vw, 92px);
	background:
		linear-gradient(120deg, rgba(16, 20, 24, 0.84), rgba(16, 20, 24, 0.18)),
		linear-gradient(145deg, #132125, #234e52 48%, #e6edf3);
	color: #fff;
}

.transfer-line {
	position: absolute;
	left: 8%;
	right: 8%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.76), transparent);
	transform: rotate(-14deg);
	animation: line-drift 7s ease-in-out infinite;
}

.line-one {
	top: 24%;
}

.line-two {
	top: 46%;
	animation-delay: 900ms;
}

.line-three {
	top: 68%;
	animation-delay: 1800ms;
}

.login-copy {
	position: relative;
	max-width: 640px;
}

.login-copy p,
.eyebrow {
	margin: 0 0 12px;
	color: var(--accent);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.login-copy h1,
.workspace-hero h1,
.download-panel h1 {
	margin: 0;
	font-size: clamp(2.4rem, 6vw, 6.5rem);
	font-weight: 900;
	line-height: 0.92;
	letter-spacing: 0;
}

.login-copy span,
.workspace-hero p,
.download-panel p {
	display: block;
	max-width: 620px;
	margin-top: 22px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 1.08rem;
	line-height: 1.65;
}

.login-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: clamp(28px, 5vw, 64px);
	background: #fff;
}

.login-panel h2,
.admin-form h2,
.section-head h1,
.section-head h2 {
	margin: 0;
	font-weight: 850;
	letter-spacing: 0;
}

.workspace {
	width: min(1380px, calc(100% - 36px));
	margin: 0 auto;
	padding: clamp(28px, 4vw, 56px) 0 72px;
}

.transfer-page {
	min-height: calc(100svh - 65px);
	padding: clamp(28px, 5vw, 64px);
	background:
		radial-gradient(circle at 84% 12%, rgba(55, 102, 232, 0.18), transparent 26%),
		radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.06), transparent 28%),
		linear-gradient(135deg, #111315 0%, #17191d 52%, #0f1012 100%);
	color: #fff;
}

.has-brand-background .transfer-page {
	background:
		linear-gradient(135deg, rgba(17, 19, 21, 0.86), rgba(15, 16, 18, 0.9)),
		var(--brand-background-image);
	background-position: center;
	background-size: cover;
}

.transfer-stage {
	display: grid;
	grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
	align-items: center;
	gap: clamp(40px, 7vw, 108px);
	min-height: min(680px, calc(100svh - 160px));
	width: min(1180px, 100%);
	margin: 0 auto;
}

.transfer-copy {
	max-width: 620px;
}

.transfer-copy h1 {
	margin: 0;
	font-size: clamp(3rem, 6vw, 6.8rem);
	font-weight: 900;
	line-height: 0.94;
	letter-spacing: 0;
}

.transfer-copy p:not(.eyebrow) {
	max-width: 560px;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 1.06rem;
	line-height: 1.65;
}

.upload-card {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 22px;
	box-shadow: 0 26px 78px rgba(0, 0, 0, 0.34);
	color: var(--ink);
}

.upload-card::before {
	display: none;
}

.upload-card-tabs {
	display: grid;
	grid-template-columns: 1fr;
	padding: 0;
	background: #fff;
	border-bottom: 1px solid #edf0f4;
}

.upload-tab {
	height: 54px;
	border: 0;
	background: transparent;
	color: #141820;
	font-size: 1rem;
	font-weight: 850;
}

.upload-tab:first-child {
	border-radius: 22px 22px 0 0;
}

.upload-tab.active {
	background: #fff;
	color: var(--ink);
}

.wt-drop-zone {
	display: block;
	min-height: 0;
	padding: 28px 34px 22px;
	border-bottom: 0;
	background:
		linear-gradient(180deg, #fbfcff, #fff),
		#fff;
	transform: none;
}

.wt-drop-zone.is-dragging {
	background:
		linear-gradient(0deg, rgba(55, 102, 232, 0.08), rgba(55, 102, 232, 0.08)),
		#fff;
	transform: translateY(-2px);
}

.wt-pickers {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

.wt-picker {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 82px;
	padding: 18px 24px;
	border: 0;
	border-radius: 14px;
	background: #eef4ff;
	color: #141820;
	text-align: left;
	transition: background 160ms ease, transform 160ms ease;
}

.wt-picker:hover {
	background: #dfe9ff;
}

.wt-icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	background: #2f62e8;
	border-radius: 999px;
	color: #fff;
}

.wt-icon svg {
	width: 21px;
	height: 21px;
	margin: 8px;
	fill: none;
	stroke: #fff;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.folder-icon {
	background: #2f62e8;
}

.wt-picker strong {
	max-width: 130px;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: left;
}

.wt-drop-zone p {
	margin: 22px 4px 0;
	color: #68707b;
	font-size: 0.9rem;
	line-height: 1.45;
}

.wt-form {
	display: grid;
	gap: 16px;
	padding: 26px 34px 30px;
	border-top: 1px solid #e5e7eb;
}

.wt-field {
	display: grid;
	gap: 8px;
}

.wt-field span,
.wt-expiration span {
	color: #68707b;
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
}

.wt-field input {
	width: 100%;
	border: 0;
	border-bottom: 1px solid #d4d7dc;
	padding: 6px 0 12px;
	outline: 0;
	font-size: 1.05rem;
}

.wt-field input:focus {
	border-bottom-color: #2f62e8;
}

.wt-controls {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.wt-expiration {
	display: grid;
	gap: 4px;
	padding: 12px 16px;
	border: 1px solid #d6d8dc;
	border-radius: 14px;
}

.wt-expiration select {
	width: 100%;
	border: 0;
	background: transparent;
	color: #2f62e8;
	font-size: 1.08rem;
	outline: 0;
}

.wt-submit {
	height: 54px;
	border: 0;
	border-radius: 14px;
	background: #3766e8;
	color: #fff;
	font-size: 1.08rem;
	font-weight: 800;
	transition: background 160ms ease, transform 160ms ease;
}

.wt-submit:hover {
	background: #2e58d3;
	transform: translateY(-1px);
}

.upload-card .upload-list {
	max-height: 180px;
	overflow: auto;
	margin: 0 34px;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.upload-card .upload-item {
	grid-template-columns: minmax(0, 1fr) minmax(82px, auto) 48px;
	padding: 12px 14px;
}

.upload-card .upload-item span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.upload-card .upload-item small {
	justify-self: end;
	min-width: 82px;
	text-align: right;
}

.upload-card .upload-progress {
	margin-top: 6px;
}

.upload-card .upload-result {
	min-height: 46px;
	padding: 12px 34px 26px;
	color: #68707b;
	overflow-wrap: anywhere;
}

.upload-progress-text {
	display: grid;
	gap: 4px;
}

.upload-progress-text strong {
	color: #171b22;
	font-size: 0.95rem;
}

.upload-progress-text span {
	color: #68707b;
	font-size: 0.86rem;
}

.upload-cancel-button {
	width: fit-content;
	margin-top: 8px;
	padding: 8px 12px;
	border: 1px solid rgba(220, 38, 38, 0.25);
	border-radius: 10px;
	background: #fff;
	color: #dc2626;
	font-weight: 800;
}

.upload-cancel-button:hover {
	background: rgba(220, 38, 38, 0.08);
}

.upload-done {
	display: grid;
	gap: 14px;
	padding: 16px;
	border: 1px solid rgba(55, 102, 232, 0.16);
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(55, 102, 232, 0.1), rgba(34, 197, 94, 0.08)),
		#f8fbff;
}

.upload-done > div:first-child {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.upload-done-label {
	width: fit-content;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(34, 197, 94, 0.12);
	color: #15803d;
	font-size: 0.72rem;
	font-weight: 850;
	text-transform: uppercase;
}

.upload-done strong {
	color: #141820;
	font-size: 1.04rem;
}

.upload-done-url {
	width: 100%;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid rgba(55, 102, 232, 0.2);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.78);
	color: #2f62e8;
	font: inherit;
	font-weight: 700;
	outline: none;
	text-overflow: ellipsis;
}

.upload-done-url:focus {
	border-color: rgba(55, 102, 232, 0.55);
	box-shadow: 0 0 0 4px rgba(55, 102, 232, 0.1);
}

.upload-done-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.upload-copy-button,
.upload-open-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 14px;
	border-radius: 12px;
	font-weight: 800;
	text-decoration: none;
}

.upload-copy-button {
	border: 0;
	background: #3766e8;
	color: #fff;
}

.upload-open-button {
	border: 1px solid rgba(55, 102, 232, 0.22);
	background: #fff;
	color: #2f62e8;
}

.wt-list {
	width: min(1180px, 100%);
	margin: clamp(22px, 4vw, 42px) auto 0;
}

.workspace-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 28px;
	margin-bottom: 28px;
	padding: clamp(28px, 5vw, 52px);
	overflow: hidden;
	background:
		linear-gradient(120deg, rgba(16, 20, 24, 0.88), rgba(16, 20, 24, 0.36)),
		linear-gradient(135deg, #152124, #245e61 52%, #f5b84b);
	border-radius: 8px;
	color: #fff;
}

.workspace-hero p {
	color: rgba(255, 255, 255, 0.78);
}

.hero-meter {
	display: grid;
	place-items: center;
	width: 150px;
	aspect-ratio: 1;
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 8px;
}

.hero-meter span {
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.78rem;
	text-transform: uppercase;
}

.hero-meter strong {
	font-size: 2.4rem;
}

.upload-surface,
.list-section,
.admin-form,
.user-table,
.settings-panel,
.download-panel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 28px 80px rgba(21, 32, 43, 0.08);
}

.drop-zone {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 230px;
	padding: clamp(24px, 4vw, 46px);
	border-bottom: 1px solid var(--line);
	background:
		linear-gradient(90deg, rgba(20, 184, 166, 0.08), transparent),
		repeating-linear-gradient(135deg, rgba(16, 20, 24, 0.045) 0 1px, transparent 1px 18px);
	transition: background 180ms ease, transform 180ms ease;
}

.drop-zone.is-dragging {
	background:
		linear-gradient(90deg, rgba(20, 184, 166, 0.18), rgba(245, 158, 11, 0.08)),
		repeating-linear-gradient(135deg, rgba(16, 20, 24, 0.055) 0 1px, transparent 1px 18px);
	transform: translateY(-2px);
}

.drop-zone h2 {
	margin: 0;
	font-size: clamp(1.9rem, 4vw, 4rem);
	font-weight: 900;
	line-height: 1;
}

.drop-zone span {
	display: block;
	max-width: 680px;
	color: var(--muted);
}

.upload-card .wt-drop-zone {
	display: block;
	min-height: 0;
	padding: 20px 22px 0;
	border-bottom: 0;
	background: #fff;
	transform: none;
}

.upload-card .wt-drop-zone.is-dragging {
	background: #fff;
	transform: translateY(-2px);
}

.drop-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
}

.upload-options {
	display: grid;
	grid-template-columns: 180px minmax(220px, 1fr) auto;
	align-items: end;
	gap: 18px;
	padding: 24px;
	border-bottom: 1px solid var(--line);
}

.upload-list {
	display: grid;
	gap: 1px;
	background: var(--line);
}

.upload-list:empty,
.upload-list[hidden] {
	display: none;
}

.upload-item,
.file-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	background: #fff;
}

.file-row > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.file-row span {
	overflow-wrap: anywhere;
}

.upload-item small,
.file-row small {
	color: var(--muted);
	white-space: nowrap;
}

.upload-item > button {
	min-width: 34px;
	min-height: 34px;
	padding: 0 10px;
	border: 1px solid rgba(220, 38, 38, 0.22);
	border-radius: 9px;
	background: #fff;
	color: #dc2626;
	font-weight: 900;
	line-height: 1;
}

.upload-item > button:hover {
	background: rgba(220, 38, 38, 0.08);
}

.upload-summary > button {
	border-color: rgba(24, 28, 34, 0.16);
	color: #242a33;
	font-size: 0.82rem;
}

.upload-summary > button:hover {
	background: rgba(24, 28, 34, 0.06);
}

.file-row form {
	margin: 0;
}

.file-download-button {
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid rgba(24, 28, 34, 0.14);
	border-radius: 10px;
	background: #1f242b;
	color: #fff;
	font-weight: 800;
	transition: background 160ms ease, border-color 160ms ease;
}

.file-download-button:hover {
	border-color: #2f62e8;
	background: #2f62e8;
}

.file-row-actions > div {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.file-row-actions span {
	overflow-wrap: anywhere;
}

.upload-progress {
	height: 8px;
	border-radius: 0;
	background: #edf1f5;
}

.progress-bar {
	background: linear-gradient(90deg, var(--accent), #2563eb);
	transition: width 180ms ease;
}

.upload-result {
	padding: 18px 24px;
	color: var(--muted);
}

.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin: 0;
	padding: 24px 28px 14px;
}

.section-head span {
	color: var(--muted);
}

.table {
	margin-bottom: 0;
}

.table td,
.table th {
	padding: 16px 28px;
	vertical-align: middle;
}

.table th {
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.table td {
	color: #242a33;
	font-size: 0.95rem;
}

.table td:first-child {
	max-width: 520px;
	overflow-wrap: anywhere;
}

.shares-table th,
.shares-table td {
	padding-top: 12px;
	padding-bottom: 12px;
}

.shares-table th:first-child,
.shares-table td:first-child {
	width: 58%;
}

.shares-table td:first-child a {
	display: block;
	max-width: 520px;
	line-height: 1.25;
}

.link-copy {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
	max-width: 640px;
}

.link-copy input {
	width: 100%;
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid rgba(24, 28, 34, 0.14);
	border-radius: 10px;
	background: #f8fafc;
	color: #242a33;
	font: inherit;
	font-weight: 650;
	text-overflow: ellipsis;
	outline: none;
}

.link-copy input:focus {
	border-color: rgba(55, 102, 232, 0.55);
	box-shadow: 0 0 0 4px rgba(55, 102, 232, 0.1);
}

.link-copy button {
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid rgba(55, 102, 232, 0.22);
	border-radius: 10px;
	background: #2f62e8;
	color: #fff;
	font-weight: 800;
}

.shares-table .file-count {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	font-weight: 800;
	line-height: 1;
}

.row-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin: 0;
}

.empty-state {
	display: grid;
	gap: 6px;
	padding: 28px;
	border-top: 1px solid var(--line);
	color: var(--muted);
}

.empty-state strong {
	color: #171b22;
	font-size: 1.05rem;
}

.status {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 800;
}

.status-ready {
	background: rgba(20, 184, 166, 0.12);
	color: #0f766e;
}

.status-pending {
	background: rgba(245, 158, 11, 0.14);
	color: #92400e;
}

.status-expired {
	background: rgba(100, 116, 139, 0.14);
	color: #475569;
}

.wt-list {
	overflow: hidden;
	border: 0;
	border-radius: 18px;
	box-shadow: 0 26px 90px rgba(0, 0, 0, 0.2);
}

.wt-list form {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: flex-end;
}

.admin-grid {
	display: grid;
	grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
	gap: 20px;
}

.admin-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
}

.settings-panel {
	display: grid;
	gap: 22px;
	max-width: 760px;
	padding: clamp(22px, 4vw, 36px);
}

.filter-panel {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(220px, 300px) minmax(160px, 220px) auto;
	align-items: end;
	gap: 14px;
	margin-bottom: 20px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(21, 32, 43, 0.08);
}

.filter-panel label {
	display: grid;
	gap: 7px;
}

.filter-panel label span {
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
}

.filter-actions {
	display: flex;
	gap: 8px;
}

.storage-grid {
	display: grid;
	grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
	gap: 20px;
}

.user-table {
	overflow: hidden;
}

.actions-cell {
	display: flex;
	gap: 8px;
}

.download-stage {
	display: grid;
	place-items: center;
	min-height: calc(100svh - 65px);
	padding: 28px;
	background:
		linear-gradient(120deg, rgba(16, 20, 24, 0.8), rgba(16, 20, 24, 0.26)),
		linear-gradient(140deg, #142022, #275e63 58%, #f2b84b);
}

.has-brand-background .download-stage {
	background:
		linear-gradient(120deg, rgba(16, 20, 24, 0.82), rgba(16, 20, 24, 0.62)),
		var(--brand-background-image);
	background-position: center;
	background-size: cover;
}

.download-stack {
	display: grid;
	gap: 16px;
	width: min(620px, 100%);
}

.detail-hero {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
	padding: clamp(28px, 5vw, 52px);
	background:
		linear-gradient(120deg, rgba(16, 20, 24, 0.88), rgba(16, 20, 24, 0.34)),
		linear-gradient(135deg, #101418, #255f64 56%, #f59e0b);
	border-radius: 8px;
	color: #fff;
}

.detail-hero h1 {
	margin: 0;
	font-size: clamp(2.6rem, 6vw, 6rem);
	font-weight: 900;
	line-height: 0.95;
}

.detail-hero p {
	max-width: 780px;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.78);
	overflow-wrap: anywhere;
}

.detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
}

.detail-grid {
	display: grid;
	grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
	gap: 20px;
}

.detail-panel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: clamp(20px, 3vw, 30px);
	box-shadow: 0 28px 80px rgba(21, 32, 43, 0.08);
}

.detail-panel h2 {
	margin: 0 0 18px;
	font-weight: 850;
}

.meta-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 22px;
}

.meta-grid div {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.meta-grid dt {
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
}

.meta-grid dd {
	margin: 4px 0 0;
	overflow-wrap: anywhere;
	font-weight: 750;
}

.audit-panel {
	margin-top: 20px;
}

.section-head.compact {
	margin: 0 0 18px;
}

.audit-list {
	display: grid;
	gap: 1px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--line);
}

.audit-row {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 18px;
	padding: 15px 18px;
	background: #fff;
}

.audit-row div {
	display: grid;
	gap: 3px;
}

.audit-row span,
.audit-row small,
.audit-row time {
	color: var(--muted);
}

.audit-row small {
	overflow-wrap: anywhere;
}

.health-list {
	display: grid;
	gap: 1px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--line);
}

.health-row {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 18px;
	padding: 15px 18px;
	background: #fff;
}

.health-row div {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.health-row span,
.health-row small {
	color: var(--muted);
	overflow-wrap: anywhere;
}

.health-row b {
	flex: 0 0 auto;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 0.76rem;
}

.health-row.is-ok b {
	background: rgba(20, 184, 166, 0.12);
	color: #0f766e;
}

.health-row.is-fail b {
	background: rgba(220, 38, 38, 0.12);
	color: #b91c1c;
}

.download-panel {
	width: 100%;
	padding: clamp(26px, 5vw, 48px);
}

.download-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.82rem;
	text-align: center;
}

.download-footer a {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
}

.download-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.download-panel h1 {
	font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.download-panel p {
	color: var(--muted);
}

.file-stack {
	margin: 28px 0;
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
}

.password-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.reveal {
	animation: reveal-up 520ms ease both;
}

.delay-one {
	animation-delay: 120ms;
}

.delay-two {
	animation-delay: 220ms;
}

@keyframes reveal-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes line-drift {
	0%,
	100% {
		opacity: 0.28;
		transform: translateX(-4%) rotate(-14deg);
	}
	50% {
		opacity: 0.9;
		transform: translateX(4%) rotate(-14deg);
	}
}

@media (max-width: 900px) {
	.login-stage,
	.admin-grid,
	.detail-grid,
	.transfer-stage,
	.workspace-hero,
	.upload-options {
		grid-template-columns: 1fr;
	}

	.transfer-page {
		padding: 24px 16px 44px;
	}

	.transfer-stage {
		align-items: start;
		min-height: 0;
		gap: 28px;
	}

	.transfer-copy h1 {
		font-size: clamp(3rem, 16vw, 5rem);
	}

	.upload-card {
		border-radius: 24px;
	}

	.wt-pickers,
	.wt-controls,
	.filter-panel,
	.storage-grid {
		grid-template-columns: 1fr;
	}

	.wt-picker {
		min-height: 76px;
	}

	.upload-done {
		grid-template-columns: 1fr;
	}

	.upload-done-actions {
		width: 100%;
	}

	.upload-copy-button,
	.upload-open-button {
		flex: 1;
	}

	.file-row,
	.file-row > div {
		grid-template-columns: 1fr;
	}

	.upload-item {
		grid-template-columns: minmax(0, 1fr) minmax(82px, auto) 48px;
	}

	.upload-item small {
		grid-column: auto;
		justify-self: end;
		min-width: 82px;
		text-align: right;
	}

	.file-row small {
		white-space: normal;
	}

	.file-download-button {
		width: 100%;
	}

	.shares-table thead {
		display: none;
	}

	.shares-table,
	.shares-table tbody,
	.shares-table tr,
	.shares-table td {
		display: block;
		width: 100%;
	}

	.shares-table tr {
		padding: 16px 18px;
		border-bottom: 1px solid var(--line);
	}

	.shares-table td {
		display: grid;
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 12px;
		padding: 7px 0;
		border: 0;
	}

	.shares-table td::before {
		content: attr(data-label);
		color: var(--muted);
		font-size: 0.72rem;
		font-weight: 800;
		text-transform: uppercase;
	}

	.shares-table td:first-child {
		max-width: none;
	}

	.shares-table td:first-child a {
		max-width: none;
	}

	.link-copy {
		grid-template-columns: 1fr;
		max-width: none;
	}

	.row-actions {
		justify-content: flex-start;
	}

	.login-visual {
		min-height: 48svh;
	}

	.detail-hero,
	.topbar,
	.topnav {
		align-items: flex-start;
		flex-direction: column;
	}

	.detail-actions,
	.drop-actions {
		justify-content: flex-start;
	}

	.hero-meter {
		width: 120px;
	}
}

@media (max-width: 520px) {
	.upload-item {
		grid-template-columns: minmax(0, 1fr) 48px;
	}

	.upload-item small {
		grid-column: 1 / -1;
		justify-self: start;
		min-width: 0;
		text-align: left;
	}

	.login-page {
		padding: 16px;
	}

	.login-card {
		padding: 28px 22px 22px;
		border-radius: 18px;
	}

	.login-heading {
		margin-top: 28px;
	}

	.login-heading h1 {
		font-size: 20px;
	}

	.login-heading p {
		font-size: 13px;
	}
}
