/* Modern skin overrides for local FileSender dev instance */

body.fs-modern {
    --fs-bg: #f5f7fb;
    --fs-surface: rgba(255, 255, 255, 0.88);
    --fs-surface-strong: #ffffff;
    --fs-border: rgba(15, 23, 42, 0.08);
    --fs-text: #111827;
    --fs-muted: #667085;
    --fs-accent: #0f766e;
    --fs-accent-2: #2563eb;
    --fs-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    background:
        radial-gradient(900px 420px at 8% -5%, rgba(37, 99, 235, 0.16), transparent 65%),
        radial-gradient(700px 380px at 92% 8%, rgba(15, 118, 110, 0.16), transparent 70%),
        linear-gradient(180deg, #eef3fb 0%, #f8fafc 42%, #f2f5fb 100%);
    color: var(--fs-text);
    font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

body.fs-modern a {
    color: var(--fs-accent-2);
}

body.fs-modern #wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 20px auto;
    padding: 0 0 18px;
    background: transparent;
    height: auto;
}

body.fs-modern #header,
body.fs-modern #headeruid {
    position: relative;
    height: auto;
    min-height: 88px;
    margin: 0 0 12px;
    border: 1px solid var(--fs-border);
    border-radius: 20px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.92)),
        radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.25), transparent 55%);
    box-shadow: var(--fs-shadow);
}

body.fs-modern #header > a,
body.fs-modern #headeruid > a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 12px 18px;
    text-decoration: none;
    color: #fff;
}

body.fs-modern #logo {
    max-height: 48px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}

body.fs-modern .site_name {
    color: #f8fafc;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

body.fs-modern .site_baseline {
    color: rgba(241, 245, 249, 0.8);
    font-size: 0.85rem;
}

body.fs-modern #langmenu {
    margin: 0 0 10px;
    border-radius: 14px;
    border: 1px solid var(--fs-border);
    background: var(--fs-surface);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.fs-modern #langmenu ul {
    float: none;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 4px 8px;
}

body.fs-modern #langmenu li {
    float: none;
    border: 0;
    font: 600 12px/1.2 "Avenir Next", "Segoe UI", sans-serif;
    color: var(--fs-muted);
}

body.fs-modern #langmenu li label {
    margin-right: 8px;
}

body.fs-modern #langmenu select {
    border: 1px solid var(--fs-border);
    border-radius: 10px;
    background: #fff;
    padding: 6px 10px;
    color: var(--fs-text);
}

body.fs-modern #menu {
    height: auto;
    margin: 0 0 14px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--fs-border);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

body.fs-modern #menu .leftmenu,
body.fs-modern #menu .rightmenu {
    float: none;
}

body.fs-modern #menu .leftmenu ul,
body.fs-modern #menu .rightmenu ul {
    float: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}

body.fs-modern #menu .rightmenu ul {
    justify-content: flex-end;
}

body.fs-modern #menu li,
body.fs-modern #menu .rightmenu li {
    float: none;
    border: 0;
    border-radius: 12px;
    text-shadow: none;
    background: transparent;
    font: 600 13px/1.2 "Avenir Next", "Segoe UI", sans-serif;
}

body.fs-modern #menu ul li a {
    color: #1f2937;
    padding: 9px 12px;
    border-radius: 10px;
    transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

body.fs-modern #menu a:hover,
body.fs-modern #menu a:active {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

body.fs-modern #menu a.current,
body.fs-modern #menu .current {
    background: linear-gradient(135deg, var(--fs-accent-2), #1d4ed8);
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

body.fs-modern #menu a.red.current,
body.fs-modern #menu a.red {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff !important;
}

body.fs-modern #page {
    border-radius: 18px;
    border: 1px solid var(--fs-border);
    background: var(--fs-surface);
    backdrop-filter: blur(10px);
    box-shadow: var(--fs-shadow);
    padding: 14px;
}

body.fs-modern .box,
body.fs-modern .boxnoframe {
    background: var(--fs-surface-strong);
    border: 1px solid var(--fs-border);
    border-radius: 16px;
    padding: 16px 18px;
    margin: 10px 0;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

body.fs-modern #page h1,
body.fs-modern #page h2,
body.fs-modern #page h3 {
    color: #0f172a;
    letter-spacing: -0.02em;
}

body.fs-modern #page h1 {
    font-size: 1.55rem;
    padding-bottom: 0.4em;
}

body.fs-modern #page h2 {
    font-size: 1.2rem;
    padding-top: 0.8em;
    padding-bottom: 0.45em;
}

body.fs-modern #page h3 {
    font-size: 1.02rem;
    padding-top: 0.55em;
    padding-bottom: 0.35em;
}

body.fs-modern div.message,
body.fs-modern div.notification,
body.fs-modern div.exception {
    border-radius: 14px;
    border-color: var(--fs-border);
    margin: 14px 0;
    padding: 12px 14px 12px 38px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

body.fs-modern div.error.message,
body.fs-modern div.notification.error,
body.fs-modern div.exception {
    background-color: #fff1f2;
    color: #881337;
    border-color: #fecdd3;
}

body.fs-modern div.success.message,
body.fs-modern div.notification.success {
    background-color: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

body.fs-modern input[type="text"],
body.fs-modern input[type="password"],
body.fs-modern input[type="email"],
body.fs-modern input[type="number"],
body.fs-modern input[type="url"],
body.fs-modern textarea,
body.fs-modern select {
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
    color: var(--fs-text);
    padding: 8px 10px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

body.fs-modern input:focus,
body.fs-modern textarea:focus,
body.fs-modern select:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

body.fs-modern button,
body.fs-modern input[type="button"],
body.fs-modern input[type="submit"] {
    border: 0;
    border-radius: 12px;
    padding: 9px 14px;
    background: linear-gradient(135deg, var(--fs-accent), #0f766e);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.2);
    cursor: pointer;
}

body.fs-modern button:hover,
body.fs-modern input[type="button"]:hover,
body.fs-modern input[type="submit"]:hover {
    filter: brightness(1.03);
}

body.fs-modern table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--fs-border);
    border-radius: 14px;
    overflow: hidden;
}

body.fs-modern th {
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

body.fs-modern td {
    border-bottom: 1px solid #eef2f7;
}

body.fs-modern tr:last-child td {
    border-bottom: 0;
}

body.fs-modern #footer {
    margin-top: 14px;
    color: var(--fs-muted);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--fs-border);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

body.fs-modern .home-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 18px;
    background:
        radial-gradient(560px 240px at 100% 0%, rgba(59, 130, 246, 0.18), transparent 70%),
        radial-gradient(420px 220px at 0% 100%, rgba(20, 184, 166, 0.14), transparent 70%),
        linear-gradient(180deg, #ffffff, #f8fbff);
}

body.fs-modern .home-hero__glow {
    position: absolute;
    inset: -40% auto auto -12%;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
    pointer-events: none;
}

body.fs-modern .home-hero__content {
    position: relative;
    padding: 22px;
}

body.fs-modern .home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    background: rgba(37, 99, 235, 0.06);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.fs-modern .home-hero__splash {
    color: #0f172a;
}

body.fs-modern .home-hero__splash h1,
body.fs-modern .home-hero__splash h2 {
    letter-spacing: -0.03em;
}

body.fs-modern .home-hero__splash p {
    margin: 0.7em 0;
    color: #334155;
    font-size: 1rem;
}

body.fs-modern .home-hero__logon {
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed rgba(37, 99, 235, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

body.fs-modern #notifications {
    width: min(560px, calc(100% - 24px));
}

@media (max-width: 900px) {
    body.fs-modern #wrap {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    body.fs-modern #header > a,
    body.fs-modern #headeruid > a {
        min-height: 74px;
        padding: 10px 14px;
    }

    body.fs-modern #menu {
        padding: 6px;
    }

    body.fs-modern #menu .leftmenu ul,
    body.fs-modern #menu .rightmenu ul {
        justify-content: flex-start;
    }

    body.fs-modern #menu ul li a {
        padding: 8px 10px;
    }

    body.fs-modern #page {
        padding: 10px;
    }

    body.fs-modern .box,
    body.fs-modern .boxnoframe {
        padding: 12px;
    }
}

@media (max-width: 640px) {
    body.fs-modern #langmenu ul {
        justify-content: flex-start;
    }

    body.fs-modern #langmenu .rightlangmenu {
        float: none;
    }

    body.fs-modern #menu .rightmenu ul {
        margin-top: 6px;
    }

    body.fs-modern .home-hero__content {
        padding: 16px;
    }

    body.fs-modern .home-hero__badge {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
    }
}

@media (prefers-reduced-motion: no-preference) {
    body.fs-modern #menu ul li a,
    body.fs-modern button,
    body.fs-modern input[type="button"],
    body.fs-modern input[type="submit"] {
        transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, background-color 140ms ease;
    }

    body.fs-modern #menu ul li a:hover {
        transform: translateY(-1px);
    }

    body.fs-modern button:hover,
    body.fs-modern input[type="button"]:hover,
    body.fs-modern input[type="submit"]:hover {
        transform: translateY(-1px);
    }

    body.fs-modern .home-hero {
        animation: fs-fade-up 260ms ease-out;
    }

    @keyframes fs-fade-up {
        from {
            opacity: 0;
            transform: translateY(6px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Ambitious dashboard layer for core pages */

body.fs-modern .page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--fs-border);
    margin: 0 0 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.14), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(15, 118, 110, 0.12), transparent 60%);
    box-shadow: var(--fs-shadow);
}

body.fs-modern .page-hero__inner {
    position: relative;
    z-index: 1;
    padding: 18px 20px;
}

body.fs-modern .page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.14);
    color: var(--fs-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

body.fs-modern .page-hero__title {
    margin: 8px 0 4px;
    font-size: 1.6rem;
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.03em;
}

body.fs-modern .page-hero__subtitle {
    margin: 0;
    max-width: 70ch;
    color: #475569;
}

body.fs-modern .page-hero__ornament {
    position: absolute;
    width: 240px;
    height: 240px;
    right: -40px;
    top: -70px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(37, 99, 235, 0.28), rgba(37, 99, 235, 0.08) 45%, transparent 70%);
    pointer-events: none;
}

body.fs-modern .upload-shell,
body.fs-modern .transfers-shell,
body.fs-modern .admin-shell {
    border-radius: 18px;
}

body.fs-modern .upload_page .upload-shell > #upload_form {
    border: 0;
    background: transparent;
}

body.fs-modern .upload_page .upload-shell > #upload_form > .box:first-child {
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88));
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

body.fs-modern #upload_form .files {
    max-height: 18rem;
    margin-bottom: 10px;
    padding: 4px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e6edf7;
}

body.fs-modern .upload_form_regular .files .file,
body.fs-modern .upload_form_regular .required_files .file,
body.fs-modern .upload_form_stats .files .file,
body.fs-modern .upload_form_stats .required_files .file {
    margin: 6px;
    border-radius: 12px;
    border: 1px solid #e6edf7;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

body.fs-modern #upload_form .required_files .file {
    background: #fff1f2;
    border-color: #fecdd3;
}

body.fs-modern #upload_form .files .file.done {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

body.fs-modern #upload_form .files_dragdrop {
    border: 2px dashed rgba(37, 99, 235, 0.22);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.94));
    padding: 6px;
}

body.fs-modern #upload_form .files_dragdrop .instructions {
    line-height: 3.6em;
    color: #1e40af;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

body.fs-modern #upload_form .files_actions {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid #e6edf7;
    background: #f8fafc;
}

body.fs-modern #upload_form .files_actions a,
body.fs-modern #upload_form .files_actions label.select_directory {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #1f2937;
    background: #fff;
    border: 1px solid #e6edf7;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.03);
}

body.fs-modern #upload_form .files_actions .stats {
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e6edf7;
    padding: 6px 10px;
}

body.fs-modern #upload_form .files_actions .stats .value {
    font-weight: 700;
    color: #0f172a;
}

body.fs-modern #upload_form .uploading_actions {
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid #e6edf7;
    background: #f8fafc;
    padding: 8px;
}

body.fs-modern #upload_form .uploading_actions .stats {
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: 10px;
    padding: 8px 10px;
}

body.fs-modern #upload_form .uploading_actions .msg {
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: 10px;
    padding: 6px 10px;
}

body.fs-modern #upload_form .two_columns,
body.fs-modern #upload_form table.two_columns {
    width: 100%;
    border: 0;
    border-collapse: separate;
    border-spacing: 14px 0;
    background: transparent;
    margin-top: 12px;
}

body.fs-modern #upload_form .two_columns > tbody > tr > td.box,
body.fs-modern #upload_form .two_columns > tr > td.box {
    width: 50%;
    vertical-align: top;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

body.fs-modern #upload_form .fieldcontainer {
    margin: 10px 0;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

body.fs-modern #upload_form .fieldcontainer label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-weight: 600;
}

body.fs-modern #upload_form .fieldcontainer input[type="checkbox"] + label {
    display: inline-block;
    margin: 0;
}

body.fs-modern #upload_form .left_options,
body.fs-modern #upload_form .basic_options,
body.fs-modern #upload_form .advanced_options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

body.fs-modern #upload_form .advanced_options {
    margin-top: 8px;
    padding: 8px;
    border-radius: 14px;
    border: 1px dashed rgba(37, 99, 235, 0.2);
    background: rgba(239, 246, 255, 0.45);
}

body.fs-modern #upload_form .toggle_advanced_options {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 700;
}

body.fs-modern .upload_page .aup.fieldcontainer.box {
    margin-top: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e6edf7;
}

body.fs-modern .upload_page .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

body.fs-modern .upload_page .buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e6edf7;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

body.fs-modern .upload_page .buttons a.start {
    background: linear-gradient(135deg, var(--fs-accent), #0f766e);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 20px rgba(15, 118, 110, 0.22);
}

body.fs-modern .upload_page .buttons a.not_displayed {
    opacity: 0.7;
}

body.fs-modern .transfers_page .menu,
body.fs-modern .admin_page .menu {
    margin-bottom: 12px;
    border: 0;
    background: transparent;
    overflow: visible;
}

body.fs-modern .transfers_page .menu ul,
body.fs-modern .admin_page .menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    float: none;
    margin: 0;
    padding: 0;
}

body.fs-modern .transfers_page .menu li,
body.fs-modern .admin_page .menu li {
    float: none;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.95);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

body.fs-modern .transfers_page .menu li a,
body.fs-modern .admin_page .menu li a {
    display: block;
    padding: 8px 12px;
    color: #334155;
    font-weight: 700;
    text-decoration: none;
}

body.fs-modern .transfers_page .menu li.current,
body.fs-modern .admin_page .menu li.current {
    background: linear-gradient(135deg, var(--fs-accent-2), #1d4ed8);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

body.fs-modern .transfers_page .menu li.current a,
body.fs-modern .admin_page .menu li.current a {
    color: #fff;
}

body.fs-modern .transfers_page .section,
body.fs-modern .admin_page .section {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

body.fs-modern table.paginator {
    width: 100%;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    margin-bottom: 10px;
}

body.fs-modern table.paginator td {
    border: 0;
    padding: 8px;
    vertical-align: middle;
}

body.fs-modern table.paginator .pageheader {
    font-weight: 700;
    color: #334155;
}

body.fs-modern table.transfers.list {
    margin-top: 8px;
    border-radius: 14px;
    overflow: hidden;
}

body.fs-modern table.transfers thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    color: #334155;
    font-weight: 700;
}

body.fs-modern table.transfers thead th a {
    color: inherit;
    text-decoration: none;
}

body.fs-modern table.transfers tbody tr.transfer {
    transition: background-color 120ms ease;
}

body.fs-modern table.transfers tbody tr.transfer:hover td {
    background-color: #fafcff;
}

body.fs-modern table.transfers tbody .transfer[data-errors="1"] td {
    background-color: #fff1f2;
}

body.fs-modern table.transfers td.actions #marg3 {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 2px 0;
}

body.fs-modern table.transfers td.actions [data-action],
body.fs-modern table.transfers .transfer_details .actions [data-action] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e6edf7;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
    color: #334155;
}

body.fs-modern table.transfers .transfer_details > td {
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
}

body.fs-modern table.transfers .transfer_details .collapse {
    margin: 8px 0;
}

body.fs-modern .admin_page .section .box {
    margin: 10px 0;
    border-radius: 14px;
}

body.fs-modern .admin_page .section h2 {
    margin-bottom: 8px;
    color: #0f172a;
}

body.fs-modern .admin_page .config_section .parameter {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    background: rgba(248, 250, 252, 0.8);
}

@media (max-width: 980px) {
    body.fs-modern #upload_form .two_columns,
    body.fs-modern #upload_form table.two_columns {
        border-spacing: 0;
    }

    body.fs-modern #upload_form .two_columns > tbody > tr,
    body.fs-modern #upload_form .two_columns > tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.fs-modern #upload_form .two_columns > tbody > tr > td.box,
    body.fs-modern #upload_form .two_columns > tr > td.box {
        width: auto;
        display: block;
    }
}

@media (max-width: 700px) {
    body.fs-modern .page-hero__title {
        font-size: 1.3rem;
    }

    body.fs-modern .page-hero__subtitle {
        font-size: 0.92rem;
    }

    body.fs-modern #upload_form .files_dragdrop .instructions {
        line-height: 2.4em;
        padding: 0.7em 0.4em;
    }

    body.fs-modern .upload_page .buttons a {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    body.fs-modern table.transfers td.actions #marg3 {
        gap: 6px;
        flex-wrap: wrap;
    }
}

/* GPSEO.fr-inspired visual language (public site spirit) */

body.fs-modern {
    --fs-border: rgba(0, 113, 184, 0.14);
    --fs-text: #1a2430;
    --fs-muted: #5d6b7a;
    --fs-accent: #69af22;   /* GPSEO green */
    --fs-accent-2: #0071b8; /* GPSEO blue */
    --fs-violet: #761c7f;   /* GPSEO violet */
    --fs-rose: #e20064;     /* GPSEO magenta */
    --fs-yellow: #ffec00;   /* GPSEO yellow */
    --fs-shadow: 0 12px 28px rgba(0, 61, 99, 0.12);
    background:
        radial-gradient(900px 430px at 8% -4%, rgba(0, 113, 184, 0.11), transparent 66%),
        radial-gradient(760px 360px at 94% 8%, rgba(118, 28, 127, 0.1), transparent 68%),
        linear-gradient(180deg, #eff4fa 0%, #f8fbfd 44%, #eef4fa 100%);
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

body.fs-modern #header,
body.fs-modern #headeruid {
    border-radius: 12px;
    background: linear-gradient(135deg, #0071b8 0%, #0065a4 58%, #761c7f 120%);
    box-shadow: 0 12px 26px rgba(0, 61, 99, 0.22);
}

body.fs-modern #wrap {
    width: min(1200px, calc(100% - 24px));
}

body.fs-modern #menu {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(0, 61, 99, 0.08);
}

body.fs-modern #menu li,
body.fs-modern #menu .rightmenu li {
    border-radius: 6px;
}

body.fs-modern #menu ul li a {
    border-radius: 6px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 700;
}

body.fs-modern #menu a:hover,
body.fs-modern #menu a:active {
    background: rgba(0, 113, 184, 0.08);
    color: #005f98;
}

body.fs-modern #menu a.current,
body.fs-modern #menu .current {
    background: linear-gradient(135deg, #0071b8, #005f98);
    box-shadow: 0 8px 16px rgba(0, 113, 184, 0.22);
}

body.fs-modern #menu a.red.current,
body.fs-modern #menu a.red {
    background: linear-gradient(135deg, #e20064, #b90052);
}

body.fs-modern #page {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
}

body.fs-modern .box,
body.fs-modern .boxnoframe {
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 61, 99, 0.05);
}

body.fs-modern .home-hero,
body.fs-modern .page-hero {
    border-radius: 10px;
}

body.fs-modern .home-hero {
    background:
        radial-gradient(520px 220px at 100% 0%, rgba(118, 28, 127, 0.12), transparent 72%),
        radial-gradient(440px 220px at 0% 100%, rgba(0, 113, 184, 0.1), transparent 70%),
        linear-gradient(180deg, #ffffff, #f7fbff);
}

body.fs-modern .home-hero__badge {
    border-radius: 6px;
    border-color: rgba(0, 113, 184, 0.18);
    background: rgba(0, 113, 184, 0.06);
    color: #005f98;
}

body.fs-modern .page-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
        radial-gradient(circle at 100% 0%, rgba(118, 28, 127, 0.08), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(0, 113, 184, 0.08), transparent 60%);
}

body.fs-modern .page-hero__eyebrow {
    border-radius: 6px;
    background: rgba(118, 28, 127, 0.08);
    border: 1px solid rgba(118, 28, 127, 0.14);
    color: #761c7f;
}

body.fs-modern .page-hero__ornament {
    border-radius: 14px;
    width: 260px;
    height: 260px;
    background:
        radial-gradient(circle at 35% 35%, rgba(0, 113, 184, 0.2), rgba(118, 28, 127, 0.1) 48%, transparent 74%);
}

body.fs-modern th {
    background: linear-gradient(180deg, #0071b8, #00629d);
    color: #fff;
}

body.fs-modern table.transfers thead th {
    background: linear-gradient(180deg, #761c7f, #65186c);
    color: #fff;
}

body.fs-modern table.transfers thead th.actions {
    background: linear-gradient(180deg, #e20064, #bd0054);
}

body.fs-modern .transfers_page .menu li,
body.fs-modern .admin_page .menu li {
    border-radius: 6px;
}

body.fs-modern .transfers_page .menu li.current,
body.fs-modern .admin_page .menu li.current {
    background: linear-gradient(135deg, #761c7f, #5d1664);
    box-shadow: 0 8px 16px rgba(118, 28, 127, 0.18);
}

body.fs-modern .transfers_page .section h2,
body.fs-modern .admin_page .section h2 {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 236, 0, 0.33);
    border: 1px solid rgba(255, 236, 0, 0.6);
}

body.fs-modern .upload_page .buttons a.start {
    background: linear-gradient(135deg, #69af22, #5b991d);
    box-shadow: 0 10px 18px rgba(105, 175, 34, 0.22);
}

body.fs-modern .upload_page .buttons a.stop {
    color: #e20064;
}

body.fs-modern #upload_form .files_dragdrop {
    border-radius: 10px;
    border-color: rgba(0, 113, 184, 0.22);
}

body.fs-modern #upload_form .files_dragdrop .instructions {
    color: #005f98;
}

body.fs-modern #upload_form .toggle_advanced_options {
    border-radius: 6px;
    background: rgba(118, 28, 127, 0.08);
    border-color: rgba(118, 28, 127, 0.14);
    color: #761c7f;
}

body.fs-modern #upload_form .advanced_options {
    background: rgba(118, 28, 127, 0.03);
    border-color: rgba(118, 28, 127, 0.16);
}

body.fs-modern table.transfers td.actions [data-action],
body.fs-modern table.transfers .transfer_details .actions [data-action] {
    border-radius: 6px;
    color: #0071b8;
}

body.fs-modern table.transfers td.actions [data-action="delete"] {
    color: #e20064;
}

body.fs-modern div.success.message,
body.fs-modern div.notification.success {
    background-color: rgba(105, 175, 34, 0.1);
    color: #355f10;
    border-color: rgba(105, 175, 34, 0.25);
}

body.fs-modern div.error.message,
body.fs-modern div.notification.error,
body.fs-modern div.exception {
    background-color: rgba(226, 0, 100, 0.08);
    color: #8d003f;
    border-color: rgba(226, 0, 100, 0.2);
}

/* JS ergonomic enhancements */

body.fs-modern.fs-js-enhanced #menu.fs-elevated {
    box-shadow: 0 10px 22px rgba(0, 61, 99, 0.14);
}

body.fs-modern .fs-backtotop {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #0071b8, #005f98);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 12px 20px rgba(0, 113, 184, 0.25);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    z-index: 9999;
}

body.fs-modern .fs-backtotop.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

body.fs-modern .fs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 113, 184, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.96));
}

body.fs-modern .fs-toolbar__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: min(520px, 100%);
    flex: 1 1 420px;
}

body.fs-modern .fs-toolbar__label {
    color: #4a5a6a;
    font-weight: 700;
    white-space: nowrap;
}

body.fs-modern .fs-toolbar__input {
    flex: 1 1 260px;
    min-width: 0;
}

body.fs-modern .fs-toolbar__reset {
    border-radius: 6px;
    border: 1px solid rgba(118, 28, 127, 0.16);
    background: rgba(118, 28, 127, 0.06);
    color: #761c7f;
    padding: 8px 10px;
    font-weight: 700;
}

body.fs-modern .fs-toolbar.is-filtering {
    border-color: rgba(118, 28, 127, 0.18);
}

body.fs-modern .fs-upload-summary {
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 113, 184, 0.12);
    background: rgba(0, 113, 184, 0.03);
    color: #005f98;
    font-weight: 700;
}

body.fs-modern .fs-upload-summary.is-empty {
    color: #667788;
    background: rgba(15, 23, 42, 0.02);
    border-color: rgba(15, 23, 42, 0.06);
}

body.fs-modern #upload_form .files_dragdrop.fs-drag-active {
    border-color: rgba(105, 175, 34, 0.42);
    background: linear-gradient(180deg, rgba(105, 175, 34, 0.06), rgba(255, 255, 255, 0.95));
    box-shadow: inset 0 0 0 2px rgba(105, 175, 34, 0.12);
}

body.fs-modern #upload_form .toggle_advanced_options.is-open {
    background: rgba(105, 175, 34, 0.08);
    border-color: rgba(105, 175, 34, 0.2);
    color: #4f821a;
}

body.fs-modern .upload_page .buttons.fs-sticky-actions {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    box-shadow: 0 14px 24px rgba(0, 61, 99, 0.12);
    backdrop-filter: blur(4px);
}

body.fs-modern table.transfers tbody > tr.transfer {
    cursor: pointer;
}

body.fs-modern table.transfers tbody > tr.transfer td.actions,
body.fs-modern table.transfers tbody > tr.transfer td.expand {
    cursor: default;
}

body.fs-modern table.transfers tbody > tr.transfer.fs-filter-hit td {
    box-shadow: inset 0 1px 0 rgba(0, 113, 184, 0.06), inset 0 -1px 0 rgba(0, 113, 184, 0.06);
}

body.fs-modern [data-action]:focus,
body.fs-modern .clickable:focus {
    outline: 2px solid rgba(0, 113, 184, 0.35);
    outline-offset: 2px;
    border-radius: 6px;
}

@media (max-width: 700px) {
    body.fs-modern .fs-toolbar {
        align-items: stretch;
    }

    body.fs-modern .fs-toolbar__group {
        align-items: stretch;
    }

    body.fs-modern .fs-toolbar__label {
        width: 100%;
    }

    body.fs-modern .fs-backtotop {
        right: 10px;
        bottom: 10px;
    }
}
