@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800;900&display=swap');

:root {
    --ink: #161616;
    --muted: #69707a;
    --line: #e6e8eb;
    --soft: #f6f7f9;
    --accent: #0f766e;
    --accent-2: #dc6b2f;
}

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

a {
    color: var(--accent);
}

.public-body {
    background: #fff;
}

.public-navbar {
    background: var(--logo-header-bg, #fff);
}

.public-navbar .navbar-brand {
    color: var(--logo-header-fg, var(--ink));
}

.public-navbar .navbar-brand:hover,
.public-navbar .navbar-brand:focus {
    color: var(--logo-header-fg, var(--ink));
    opacity: .86;
}

.hero-band,
.logo-hero {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(220, 107, 47, .10)),
        #fbfbfa;
    border-bottom: 1px solid var(--line);
}

.hero-band {
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: 72px 0;
}

.simple-home {
    width: min(100% - 32px, 860px);
    margin: 0 auto;
    padding: 70px 0;
}

.tv-home {
    min-height: calc(100vh - 57px);
    background:
        radial-gradient(circle at 8% 18%, rgba(0, 89, 255, .16), transparent 32%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 48%, #eef6ff 100%);
}

.tv-hero {
    width: min(100% - 36px, 1180px);
    min-height: calc(100vh - 57px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 820px);
    justify-content: center;
    align-items: center;
    padding: 54px 0;
}

.tv-hero-copy {
    display: grid;
    justify-items: center;
    text-align: center;
}

.tv-kicker {
    color: #005dff;
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: .08em;
    margin: 22px 0 14px;
    text-transform: uppercase;
}

.tv-hero h1 {
    color: #071735;
    font-size: clamp(2.7rem, 5.6vw, 5.2rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.tv-subtitle {
    color: #263b66;
    font-size: clamp(1.4rem, 2.5vw, 2.15rem);
    font-weight: 700;
    line-height: 1.18;
    margin: 24px 0 0;
}

.tv-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

.tv-actions .btn,
.tv-upload-card .btn {
    border-radius: 999px;
    font-weight: 800;
}

.btn-primary {
    --bs-btn-bg: #005dff;
    --bs-btn-border-color: #005dff;
    --bs-btn-hover-bg: #0049c9;
    --bs-btn-hover-border-color: #0049c9;
}

.btn-outline-primary {
    --bs-btn-color: #005dff;
    --bs-btn-border-color: #005dff;
    --bs-btn-hover-bg: #005dff;
    --bs-btn-hover-border-color: #005dff;
}

.tv-upload-card {
    width: 100%;
    margin: 0;
    border: 1px solid rgba(0, 93, 255, .16);
    box-shadow: 0 32px 80px rgba(0, 48, 135, .16);
}

.upload-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.upload-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.upload-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 23, 53, .58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.upload-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    transform: translateY(24px) scale(.96);
    opacity: 0;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .22s ease;
}

.upload-modal.is-open .upload-modal-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #eef3ff;
    color: #071735;
    font-size: 1.55rem;
    line-height: 1;
}

.modal-open-page {
    overflow: hidden;
}

.tv-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.tv-card-head span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    background: #005dff;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
}

.tv-card-head h2 {
    margin: 0;
}

.simple-home-title {
    text-align: center;
    margin-bottom: 34px;
}

.simple-home-title h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: .95;
    margin: 0;
}

.simple-home-title p {
    color: var(--muted);
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    margin: 14px 0 0;
}

.language-switch {
    display: inline-flex;
    gap: 4px;
    margin-top: 20px;
    padding: 4px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(0, 93, 255, .16);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(0, 48, 135, .08);
}

.language-switch a {
    min-width: 48px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.language-switch a.active {
    background: #005dff;
    color: #fff;
}

.simple-alert,
.manual-create-panel {
    width: min(100%, 720px);
    margin-left: auto;
    margin-right: auto;
}

.manual-create-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(22, 22, 22, .06);
    padding: 24px;
}

.manual-create-panel h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 18px;
}

.manual-create-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.manual-create-form.one-column {
    grid-template-columns: 1fr;
}

.manual-create-full {
    grid-column: 1 / -1;
}

.narrow-panel {
    width: min(100%, 440px);
}

.owner-edit-page {
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
    padding: 34px 0 56px;
}

.logo-hero {
    padding: 72px 0 48px;
}

.hero-band h1,
.logo-hero h1,
.empty-state h1 {
    font-size: clamp(2.4rem, 5vw, 5.5rem);
    line-height: .96;
    font-weight: 800;
    max-width: 900px;
}

.lead {
    color: #39414b;
    max-width: 760px;
}

.eyebrow {
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: .65rem;
    text-transform: uppercase;
}

.preview-panel,
.login-panel,
.admin-section,
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(22, 22, 22, .06);
}

.preview-panel {
    display: grid;
    gap: 24px;
    padding: 32px;
}

.logo-mark {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    border-radius: 8px;
}

.slug-pill {
    display: inline-flex;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: .5rem .9rem;
    color: var(--muted);
    font-weight: 700;
}

.variant-stack {
    display: grid;
    gap: 32px;
}

.variant-section {
    border-bottom: 1px solid var(--line);
    padding-bottom: 32px;
}

.variant-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    margin-bottom: 24px;
}

.variant-heading h2,
.admin-section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 .25rem;
}

.variant-heading p,
.muted {
    color: var(--muted);
    margin: 0;
}

.variant-section h3 {
    font-size: .82rem;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 12px;
}

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

.file-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.file-row:last-child {
    border-bottom: 0;
}

.file-row:hover {
    background: var(--soft);
}

.file-ext {
    display: inline-grid;
    place-items: center;
    min-height: 40px;
    background: var(--ink);
    color: #fff;
    border-radius: 6px;
    font-weight: 800;
    font-size: .8rem;
}

.file-name {
    overflow-wrap: anywhere;
    font-weight: 700;
}

.file-action {
    color: var(--accent);
    font-weight: 800;
}

.color-grid {
    display: grid;
    gap: 12px;
}

.color-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.swatch {
    height: 64px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, .1);
}

.color-card dl {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 2px 10px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .88rem;
}

.color-card dt {
    font-weight: 800;
}

.manual-page {
    width: min(100% - 32px, 980px);
    margin: 0 auto;
    padding: 42px 0 56px;
}

.logo-tint-page {
    position: relative;
}

.logo-tint-page::before {
    content: "";
    position: fixed;
    inset: 57px 0 0;
    z-index: -1;
    background: color-mix(in srgb, var(--logo-bg-color, #f6f7f9) 9%, #fff);
}

.manual-header {
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
    padding-bottom: 20px;
}

.manual-header h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 12px;
}

.manual-header p {
    color: #333;
    font-size: 1.05rem;
    margin: 0;
    max-width: 760px;
}

.manual-article {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
}

.manual-article figure {
    align-self: start;
    background: #fff;
    border: 1px solid #d9dde2;
    display: grid;
    min-height: 170px;
    margin: 0;
    padding: 24px;
    place-items: center;
}

.manual-article figure img {
    display: block;
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.manual-article figure span,
.manual-empty {
    color: var(--muted);
}

.manual-downloads h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.manual-downloads .com {
    color: #555;
    margin: 0 0 16px;
}

.logadownload,
.color {
    border-collapse: collapse;
    width: 100%;
}

.logadownload {
    margin-top: 14px;
}

.logadownload th {
    background: #f2f4f5;
    border: 1px solid #d9dde2;
    color: #333;
    font-size: .9rem;
    padding: 9px 10px;
    text-align: center;
}

.logadownload td {
    border: 1px solid #d9dde2;
    min-height: 64px;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}

.manual-file-icon {
    display: inline-flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 62px;
    height: 72px;
    margin: 4px;
    background: #fff;
    border: 1px solid #c8ced5;
    border-radius: 7px;
    color: #222;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
    padding: 8px 6px;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
    vertical-align: top;
}

.manual-file-icon:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
    color: var(--accent);
    transform: translateY(-1px);
}

.file-symbol {
    flex: 0 0 38px;
    position: relative;
    display: block;
    width: 32px;
    height: 38px;
}

.file-symbol-document,
.file-symbol-pdf,
.file-symbol-png,
.file-symbol-jpg,
.file-symbol-gif,
.file-symbol-webp,
.file-symbol-ai,
.file-symbol-eps,
.file-symbol-svg {
    background: currentColor;
    border-radius: 5px 8px 5px 5px;
    color: inherit;
    opacity: .95;
}

.file-symbol-document::after,
.file-symbol-pdf::after,
.file-symbol-png::after,
.file-symbol-jpg::after,
.file-symbol-gif::after,
.file-symbol-webp::after,
.file-symbol-ai::after,
.file-symbol-eps::after,
.file-symbol-svg::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #fff;
    border-bottom-left-radius: 4px;
    content: "";
}

.file-symbol-document span,
.file-symbol-pdf span {
    position: absolute;
    right: 4px;
    bottom: 7px;
    left: 4px;
    color: #fff;
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
}

.file-symbol-jpg,
.file-symbol-png {
    overflow: hidden;
}

.jpg-sun {
    position: absolute;
    top: 11px;
    right: 8px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.jpg-hill {
    position: absolute;
    right: 5px;
    bottom: 7px;
    left: 5px;
    height: 14px;
    background: #fff;
    clip-path: polygon(0 100%, 35% 40%, 52% 72%, 70% 28%, 100% 100%);
}

.png-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 3px;
}

.png-dot-a {
    top: 11px;
    left: 7px;
}

.png-dot-b {
    top: 11px;
    right: 7px;
    opacity: .68;
}

.png-dot-c {
    bottom: 8px;
    left: 11px;
    opacity: .82;
}

.file-symbol-gif {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding-bottom: 8px;
}

.file-symbol-gif span {
    display: block;
    width: 5px;
    background: #fff;
    border-radius: 99px;
}

.file-symbol-gif span:nth-child(1) {
    height: 10px;
}

.file-symbol-gif span:nth-child(2) {
    height: 18px;
}

.file-symbol-gif span:nth-child(3) {
    height: 14px;
}

.file-symbol-webp {
    display: grid;
    place-items: center;
}

.file-symbol-webp > span:first-child {
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
}

.webp-ring {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 50%;
    opacity: .38;
}

.vector-line {
    position: absolute;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transform-origin: left center;
}

.vector-line-a {
    top: 14px;
    left: 9px;
    width: 16px;
    transform: rotate(24deg);
}

.vector-line-b {
    top: 22px;
    left: 9px;
    width: 17px;
    transform: rotate(-34deg);
}

.vector-node {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
}

.vector-node-a {
    top: 10px;
    left: 7px;
}

.vector-node-b {
    right: 7px;
    bottom: 11px;
}

.vector-node-c {
    bottom: 8px;
    left: 8px;
}

.file-symbol-eps {
    display: grid;
    grid-template-columns: repeat(2, 9px);
    gap: 4px;
    justify-content: center;
    align-content: center;
}

.file-symbol-eps span {
    width: 9px;
    height: 9px;
    background: #fff;
    border-radius: 2px;
}

.file-symbol-eps span:nth-child(2),
.file-symbol-eps span:nth-child(3) {
    opacity: .64;
}

.file-symbol-svg {
    display: grid;
    place-items: center;
}

.file-symbol-svg span {
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: 0;
}

.file-extension {
    display: block;
    flex: 0 0 auto;
    min-height: .68rem;
}

.manual-file-icon.ext-pdf {
    border-color: #d9534f;
    color: #b7332f;
}

.manual-file-icon.ext-png {
    border-color: #37a475;
    color: #16734b;
}

.manual-file-icon.ext-jpg,
.manual-file-icon.ext-jpeg {
    border-color: #37a475;
    color: #16734b;
}

.manual-file-icon.ext-gif {
    border-color: #37a475;
    color: #16734b;
}

.manual-file-icon.ext-webp {
    border-color: #37a475;
    color: #16734b;
}

.manual-file-icon.ext-ai {
    border-color: #2563eb;
    color: #1d4ed8;
}

.manual-file-icon.ext-eps {
    border-color: #2563eb;
    color: #1d4ed8;
}

.manual-file-icon.ext-svg {
    border-color: #2563eb;
    color: #1d4ed8;
}

.other-files {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.color {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.color th {
    background: #f2f4f5;
    border: 1px solid #d9dde2;
    color: #333;
    font-size: .9rem;
    padding: 8px 10px;
}

.color td {
    border: 1px solid #d9dde2;
    padding: 8px 10px;
    vertical-align: middle;
}

.colorbox {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(0, 0, 0, .16);
    margin-right: 8px;
    vertical-align: middle;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px 0;
    color: var(--muted);
}

.empty-state {
    max-width: 720px;
    padding: 72px 0;
}

.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8faf9, #eef4f2);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(100%, 440px);
    padding: 32px;
}

.admin-body {
    min-height: 100vh;
    background:
        linear-gradient(145deg, rgba(15, 118, 110, .10), transparent 34%),
        linear-gradient(25deg, rgba(220, 107, 47, .09), transparent 38%),
        linear-gradient(180deg, #fbfcfd, #eef2f5);
}

.admin-body .navbar.bg-dark {
    background: rgba(20, 24, 28, .72) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 20px;
}

.stat-card span {
    color: var(--muted);
    display: block;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
}

.admin-section {
    background: rgba(255, 255, 255, .68);
    border-color: rgba(255, 255, 255, .72);
    box-shadow: 0 24px 70px rgba(31, 41, 55, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
    padding: 20px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.admin-body .form-control,
.admin-body .form-select,
.admin-body .input-group-text {
    background-color: rgba(255, 255, 255, .72);
    border-color: rgba(185, 195, 207, .72);
    border-radius: 10px;
}

.admin-body .form-control:focus,
.admin-body .form-select:focus {
    background-color: rgba(255, 255, 255, .92);
    border-color: rgba(15, 118, 110, .52);
    box-shadow: 0 0 0 .22rem rgba(15, 118, 110, .12);
}

.admin-body .btn {
    border-radius: 999px;
}

.admin-body .table {
    --bs-table-bg: transparent;
}

.admin-body .table thead th {
    color: #4b5563;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.search-form {
    display: flex;
    gap: 8px;
    width: min(100%, 520px);
}

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

.admin-form-full {
    grid-column: 1 / -1;
}

.variant-admin-list {
    display: grid;
    gap: 26px;
}

.variant-admin-item {
    background: rgba(255, 255, 255, .48);
    border: 1px solid rgba(0, 93, 255, .18);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(31, 41, 55, .10), inset 0 1px 0 rgba(255, 255, 255, .78);
    padding: 22px;
    position: relative;
}

.variant-admin-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 16px 0 0 16px;
    background: #005dff;
}

.variant-admin-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.variant-edit-form {
    flex: 1;
}

.variant-delete-form {
    flex: 0 0 auto;
    margin: 0;
}

.variant-edit-grid {
    display: grid;
    grid-template-columns: 150px minmax(180px, 1fr) 110px;
    gap: 10px;
}

.variant-edit-full {
    grid-column: 1 / -1;
}

.ajax-status {
    color: var(--accent);
    font-size: .88rem;
    font-weight: 700;
}

.variant-admin-head h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.variant-admin-head p {
    color: var(--muted);
    margin: 0;
}

.variant-admin-head img {
    width: 110px;
    height: 72px;
    object-fit: contain;
    border: 1px solid var(--line);
    background: #fff;
    padding: 8px;
}

.variant-colors-admin {
    background: #f3f5f7;
    border: 1px solid #d9dee5;
    border-radius: 12px;
    padding: 14px;
}

.variant-colors-admin h3 {
    font-size: .95rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.variant-colors-form {
    display: grid;
    gap: 8px;
}

.variant-colors-admin .color-card-list {
    display: grid;
    gap: 10px;
}

.variant-colors-admin .color-card {
    display: block;
    background: #fff;
    border: 1px solid #d7dde5;
    border-radius: 10px;
    padding: 12px;
}

.variant-colors-admin .color-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.variant-colors-admin .color-fields-grid {
    display: grid;
    grid-template-columns: minmax(170px, 1.1fr) minmax(190px, 1.25fr) minmax(150px, .95fr) minmax(170px, 1fr);
    gap: 10px;
    align-items: end;
}

.variant-colors-admin .compact-channel-grid {
    display: grid;
    gap: 6px;
}

.variant-colors-admin .compact-channel-grid .form-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.variant-colors-admin .cmyk-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.variant-colors-admin .rgb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.color-format-help {
    color: var(--muted);
    font-size: .82rem;
}

.color-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.drop-upload {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 220px;
    border: 2px dashed #b8c0ca;
    border-radius: 8px;
    background: rgba(255, 255, 255, .54);
    cursor: pointer;
    padding: 28px;
    text-align: center;
    transition: border-color .15s ease, background-color .15s ease;
}

.drop-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.drop-upload.is-dragover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, #fff);
}

.drop-upload.has-error {
    border-color: #dc3545;
    background: color-mix(in srgb, #dc3545 7%, #fff);
}

.drop-title {
    font-size: 1.25rem;
    font-weight: 800;
}

.drop-subtitle,
.drop-files {
    color: var(--muted);
}

.drop-files {
    max-width: 680px;
    overflow-wrap: anywhere;
}

.compact-drop {
    min-height: 150px;
    padding: 20px;
}

.owner-drop-upload {
    min-height: 118px;
}

.password-inline-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto;
    gap: 8px;
}

.clamp-cell {
    max-width: 320px;
}

.table {
    margin-bottom: 0;
}

.dt-container .dt-search,
.dt-container .dt-length {
    margin-bottom: 14px;
}

.dt-container .dt-search input,
.dt-container .dt-length select {
    border: 1px solid var(--line);
    border-radius: 6px;
    min-height: 38px;
}

.dt-container .dt-paging {
    margin-top: 14px;
}

.dt-container .page-link {
    color: var(--ink);
}

.dt-container .active > .page-link,
.dt-container .page-link.active {
    background-color: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tv-hero {
        grid-template-columns: 1fr;
        gap: 34px;
        align-items: start;
        padding-top: 38px;
    }

    .tv-upload-card {
        max-width: 680px;
    }
}

@media (max-width: 575px) {
    .hero-band,
    .logo-hero {
        padding: 48px 0 32px;
    }

    .variant-heading,
    .search-form {
        display: grid;
    }

    .file-row {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .file-action {
        grid-column: 2;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tv-home {
        min-height: auto;
    }

    .tv-hero {
        width: min(100% - 24px, 1180px);
        padding: 32px 0;
    }

    .tv-actions {
        width: 100%;
    }

    .tv-actions .btn,
    .manual-create-full .btn {
        width: 100%;
    }

    .manual-create-full.d-flex {
        flex-direction: column;
    }

    .variant-colors-admin .color-fields-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-grid,
    .upload-row,
    .manual-create-form,
    .password-inline-form,
    .variant-edit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .manual-article {
        grid-template-columns: 1fr;
    }

    .manual-article figure {
        min-height: 140px;
    }

    .logadownload th,
    .logadownload td,
    .color th,
    .color td {
        font-size: .82rem;
        padding: 8px 6px;
    }
}
