/* THE WIND Industry ERP — shared tokens with Store desktop + mobile */

:root {
    --wind-navy: #0a1628;
    --wind-navy-deep: #060f1f;
    --wind-navy-mid: #0d2d5c;
    --wind-navy-soft: #0d3b7a;
    --wind-blue: #007bff;
    --wind-blue-dark: #0056d2;
    --wind-cyan: #06b6d4;
    --wind-sky: #38bdf8;
    --wind-indigo: #6366f1;
    --wind-violet: #8b5cf6;
    --wind-teal: #14b8a6;
    --wind-amber: #f59e0b;
    --wind-rose: #e11d48;
    --wind-ink: #0f172a;
    --wind-muted: #64748b;
    --wind-surface: #ffffff;
    --wind-surface-soft: #f8fafc;
    --wind-panel: #eef2ff;
    --wind-border: #e2e8f0;
    --wind-radius: 0.875rem;
    --wind-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    --primary: var(--wind-blue);
    --primary-dark: var(--wind-blue-dark);
    --accent: var(--wind-amber);
    --ink: var(--wind-ink);
    --muted: var(--wind-muted);
    --surface: var(--wind-surface);
    --danger: var(--wind-rose);
}

[x-cloak] {
    display: none !important;
}

/* ── Dashboard shell ── */

.wind-app {
    height: 100%;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    background: var(--wind-panel);
    color: var(--wind-ink);
}

.wind-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.sidebar {
    position: relative;
    flex-shrink: 0;
    width: 292px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(165deg, #060f1f 0%, #0a1628 35%, #0d2d5c 100%);
    color: #dbeafe;
}

.sidebar__mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sidebar-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.sidebar-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.45;
    animation: sidebarOrbDrift 16s ease-in-out infinite;
}

.sidebar-orb--1 {
    width: 140px;
    height: 140px;
    background: #007bff;
    top: 8%;
    left: -30px;
}

.sidebar-orb--2 {
    width: 100px;
    height: 100px;
    background: #06b6d4;
    top: 45%;
    right: -20px;
    animation-delay: -5s;
}

.sidebar-orb--3 {
    width: 80px;
    height: 80px;
    background: #8b5cf6;
    bottom: 18%;
    left: 20%;
    animation-delay: -9s;
}

@keyframes sidebarOrbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8px, -12px) scale(1.08); }
}

.sidebar__inner,
.sidebar > nav,
.sidebar > .sidebar-hero,
.sidebar > .sidebar-foot {
    position: relative;
    z-index: 1;
}

.sidebar-hero {
    padding: 1.1rem 0.85rem 0.85rem;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    text-decoration: none;
}

.sidebar-brand__mark {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 0.9rem;
    padding: 3px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(186, 230, 253, 0.9));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.35) inset,
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(0, 123, 255, 0.25);
}

.sidebar-brand__mark::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 1rem;
    border: 1px solid rgba(6, 182, 212, 0.35);
    pointer-events: none;
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

.sidebar-brand__logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0.7rem;
    background: #fff;
}

.sidebar-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.sidebar-brand__name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.15;
    color: #f8fafc;
    text-shadow: 0 1px 12px rgba(0, 123, 255, 0.35);
}

.sidebar-brand__product {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #7dd3fc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bae6fd;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
}

.sidebar-hero__chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: live-pulse 2s ease infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.86); }
}

.sidebar nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.55rem 0.65rem;
    margin: 0 10px 2px;
    border-radius: 0.75rem;
    color: rgba(199, 210, 254, 0.88);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, transform 0.15s;
}

.sidebar-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.32), rgba(6, 182, 212, 0.14));
    box-shadow: inset 3px 0 0 #38bdf8;
}

.sidebar-nav-item .nav-icon {
    width: 20px;
    min-width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.9;
    color: inherit;
}

.sidebar-submenu {
    padding-left: 28px;
    margin-top: 2px;
}

.sidebar-sub-item {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    margin: 0 10px 2px;
    border-radius: 0.65rem;
    color: rgba(199, 210, 254, 0.72);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.sidebar-sub-item:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-sub-item.active {
    color: #fff;
    background: rgba(0, 123, 255, 0.18);
    font-weight: 700;
}

.sidebar .text-slate-600,
.sidebar span.text-slate-600 {
    color: rgba(199, 210, 254, 0.45) !important;
}

.sidebar-foot {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.65rem 0.85rem 1rem;
    background: transparent;
}

/* Title bar — same gradient as thewind-store */
.wind-titlebar {
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem 0 1.1rem;
    gap: 1rem;
    background: linear-gradient(90deg, #0a1628 0%, #0d3b7a 55%, #007bff 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.wind-titlebar h1 {
    color: #fff !important;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.wind-titlebar a,
.wind-titlebar button,
.wind-titlebar p,
.wind-titlebar span {
    color: inherit;
}

.wind-titlebar .wind-search {
    width: 100%;
    padding: 0.45rem 2.75rem 0.45rem 2.25rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.875rem;
    outline: none;
}

.wind-titlebar .wind-search::placeholder {
    color: rgba(226, 232, 240, 0.7);
}

.wind-titlebar .wind-search:focus {
    border-color: rgba(103, 232, 249, 0.7);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

/* Titlebar chrome: frosted controls + dark glass menus (store look) */
.wind-titlebar .text-white {
    color: #fff !important;
}

.wind-titlebar .text-sky-200\/80,
.wind-titlebar .text-sky-100\/70,
.wind-titlebar [class*="text-sky-"] {
    color: rgba(186, 230, 253, 0.9) !important;
}

.wind-titlebar .text-slate-800,
.wind-titlebar .text-slate-700,
.wind-titlebar .text-slate-600,
.wind-titlebar .text-slate-500,
.wind-titlebar .text-slate-400,
.wind-titlebar .text-slate-300,
.wind-titlebar .text-slate-200 {
    color: rgba(226, 232, 240, 0.88) !important;
}

.wind-titlebar [class*="hover:bg-sky-50"]:hover,
.wind-titlebar [class*="hover:bg-white/10"]:hover,
.wind-titlebar .wind-user-trigger:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

.wind-titlebar [class*="border-slate-200"],
.wind-titlebar [class*="border-slate-600"] {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.wind-titlebar .wind-chrome-menu {
    background: linear-gradient(165deg, #0a1628 0%, #0d2d5c 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45) !important;
}

.wind-titlebar .wind-chrome-menu a,
.wind-titlebar .wind-chrome-menu button,
.wind-titlebar .wind-chrome-menu .text-slate-800,
.wind-titlebar .wind-chrome-menu .text-slate-700,
.wind-titlebar .wind-chrome-menu .text-slate-600,
.wind-titlebar .wind-chrome-menu .text-slate-500 {
    color: rgba(226, 232, 240, 0.92) !important;
}

.wind-titlebar .wind-chrome-menu a:hover,
.wind-titlebar .wind-chrome-menu button:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.wind-titlebar .wind-chrome-menu .bg-slate-50,
.wind-titlebar .wind-chrome-menu .bg-sky-50\/60,
.wind-titlebar .wind-chrome-menu [class*="bg-slate-100"],
.wind-titlebar .wind-chrome-menu [class*="border-slate"] {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.wind-titlebar .wind-chrome-menu .text-sky-600,
.wind-titlebar .wind-chrome-menu .text-sky-700,
.wind-titlebar .wind-chrome-menu .text-emerald-700,
.wind-titlebar .wind-chrome-menu .group-hover\:text-sky-700 {
    color: #7dd3fc !important;
}

.wind-titlebar .wind-chrome-menu .text-rose-600 {
    color: #fb7185 !important;
}

.wind-main {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.35rem 1.75rem 2rem;
    background: #eef2ff;
    color: var(--wind-ink);
}

.wind-main::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: #818cf8;
    filter: blur(70px);
    opacity: 0.28;
    top: -80px;
    right: 8%;
    pointer-events: none;
    animation: mainOrbDrift 18s ease-in-out infinite;
}

.wind-main::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #06b6d4;
    filter: blur(70px);
    opacity: 0.22;
    bottom: 12%;
    left: -40px;
    pointer-events: none;
    animation: mainOrbDrift 18s ease-in-out infinite;
    animation-delay: -6s;
}

@keyframes mainOrbDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -16px); }
}

.wind-main > * {
    position: relative;
    z-index: 1;
    animation: windContentIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card {
    background: #ffffff;
    border: 1px solid var(--wind-border);
    box-shadow: var(--wind-shadow);
    color: var(--wind-ink);
}

.card-header {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wind-muted);
    letter-spacing: 0.02em;
}

/* ── Page enter motion ── */

@keyframes windContentIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes windPanelIn {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wind-main .rounded-2xl,
.wind-main .rounded-xl,
.wind-main .card {
    animation: windPanelIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.04s;
}

/* Light-panel remaps so existing dark-theme utility classes stay readable */

.wind-main .text-slate-100,
.wind-main .text-slate-200,
.wind-main .text-gray-100,
.wind-main .text-gray-200 {
    color: var(--wind-ink) !important;
}

.wind-main .text-slate-300,
.wind-main .text-gray-300 {
    color: #334155 !important;
}

.wind-main .text-slate-400,
.wind-main .text-gray-400 {
    color: #475569 !important;
}

.wind-main .text-slate-500,
.wind-main .text-gray-500,
.wind-main .text-slate-600,
.wind-main .text-gray-600 {
    color: var(--wind-muted) !important;
}

/* Module page titles still use text-white from the old dark theme */
.wind-main h1.text-white,
.wind-main h1[class*="text-white"],
.wind-main h2.text-white,
.wind-main .page-title {
    color: var(--wind-ink) !important;
}

.wind-main [class*="bg-slate-8"],
.wind-main [class*="bg-slate-9"],
.wind-main [class*="bg-gray-8"],
.wind-main [class*="bg-gray-9"],
.wind-main [class*="bg-slate-950"],
.wind-main [class*="bg-gray-950"] {
    background-color: #ffffff !important;
}

/* Mid-slate chips / filters / row actions — soft surface, not dark islands */
.wind-main [class*="bg-slate-7"],
.wind-main [class*="bg-slate-6"],
.wind-main [class*="bg-gray-7"],
.wind-main [class*="bg-gray-6"] {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
}

.wind-main [class*="hover:bg-slate"]:hover,
.wind-main [class*="hover:bg-gray"]:hover {
    background-color: #e8eef9 !important;
}

.wind-main [class*="hover:bg-white"]:hover,
.wind-main tr[class*="hover:bg-white"]:hover,
.wind-main tr[class*="hover:bg-slate"]:hover {
    background-color: rgba(0, 123, 255, 0.06) !important;
}

.wind-main [class*="border-slate-5"],
.wind-main [class*="border-slate-6"],
.wind-main [class*="border-slate-7"],
.wind-main [class*="border-slate-8"],
.wind-main [class*="border-gray-5"],
.wind-main [class*="border-gray-6"],
.wind-main [class*="border-gray-7"],
.wind-main [class*="border-gray-8"] {
    border-color: var(--wind-border) !important;
}

.wind-main code {
    background: #eff6ff !important;
    color: var(--wind-blue-dark) !important;
    border-radius: 0.35rem;
    padding: 0.1rem 0.35rem;
}

.wind-main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.wind-main select,
.wind-main textarea {
    background-color: var(--wind-surface-soft) !important;
    border-color: var(--wind-border) !important;
    color: var(--wind-ink) !important;
}

.wind-main input::placeholder,
.wind-main textarea::placeholder {
    color: #94a3b8 !important;
}

.wind-main input:focus,
.wind-main select:focus,
.wind-main textarea:focus {
    border-color: var(--wind-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    outline: none;
}

.wind-main input[type="file"] {
    color: var(--wind-muted) !important;
}

.checkbox-theme {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 1.5px solid var(--wind-border);
    border-radius: 0.375rem;
    background: var(--wind-surface-soft);
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}

.checkbox-theme:hover {
    border-color: var(--wind-blue);
}

.checkbox-theme:checked {
    background: var(--wind-blue);
    border-color: var(--wind-blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.checkbox-theme:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.35);
}

/* ── Tables (theme-aligned) ── */

.wind-main table.w-full,
.wind-main .overflow-x-auto > table,
.wind-main .card table,
.wind-main table {
    border-collapse: separate;
    border-spacing: 0;
}

.wind-main thead tr {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

.wind-main thead th {
    color: #64748b !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid var(--wind-border) !important;
}

.wind-main tbody tr {
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.wind-main tbody tr:nth-child(even) {
    background-color: rgba(248, 250, 252, 0.7);
}

.wind-main tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.07) !important;
}

.wind-main tbody td {
    color: var(--wind-ink);
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle;
}

.wind-main tbody tr:last-child td {
    border-bottom-color: transparent !important;
}

/* ── Datatable row links (entity / record links) ── */

.wind-main table tbody td a.wind-table-link,
.wind-main table tbody td a.wind-ref__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    vertical-align: middle;
    text-decoration: none !important;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.wind-main table tbody td a.wind-table-link {
    color: #0369a1 !important;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.35;
    padding: 0.15rem 0.45rem 0.15rem 0.3rem;
    margin: -0.15rem -0.2rem;
    border-radius: 0.45rem;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.18);
    box-shadow: none;
}

.wind-main table tbody td a.wind-table-link:hover {
    color: #0284c7 !important;
    background: rgba(14, 165, 233, 0.14);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.12);
}

.wind-main table tbody td a.wind-table-link .wind-table-link__icon,
.wind-main table tbody td a.wind-ref__link .wind-table-link__icon {
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    opacity: 0.8;
    color: currentColor;
}

.wind-main table tbody td a.wind-table-link:hover .wind-table-link__icon,
.wind-main table tbody td a.wind-ref__link:hover .wind-table-link__icon {
    opacity: 1;
}

.wind-main table tbody td a.wind-table-link .wind-table-link__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Action-column text links stay quiet when not yet folded into menu */
.wind-main table tbody td a.wind-table-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #64748b !important;
    text-decoration: none !important;
    padding: 0.2rem 0.4rem;
    border-radius: 0.4rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.wind-main table tbody td a.wind-table-action:hover {
    color: var(--wind-blue-dark) !important;
    background: rgba(0, 123, 255, 0.08);
}

.wind-main table tbody td a.wind-table-action.wind-table-action--danger {
    color: #e11d48 !important;
}

.wind-main table tbody td a.wind-table-action.wind-table-action--danger:hover {
    background: rgba(225, 29, 72, 0.08);
    color: #be123c !important;
}

/* ── Row actions dropdown (compact Actions column) ── */

.wind-main table tbody td.wind-actions-cell {
    width: 3.25rem;
    min-width: 3.25rem;
    text-align: right !important;
    white-space: nowrap;
}

.wind-main table thead th:last-child {
    width: 3.5rem;
    text-align: right !important;
}

.wind-row-actions {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
    vertical-align: middle;
}

.wind-row-actions__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wind-row-actions__trigger:hover,
.wind-row-actions.is-open .wind-row-actions__trigger {
    color: var(--wind-blue-dark);
    border-color: rgba(0, 123, 255, 0.35);
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.12);
}

.wind-row-actions__trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.wind-row-actions__trigger-icon {
    width: 1rem;
    height: 1rem;
}

.wind-row-actions__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 80;
    min-width: 11.5rem;
    padding: 0.35rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    display: none;
}

.wind-row-actions.is-open .wind-row-actions__menu {
    display: block;
    animation: windActionsIn 0.14s ease-out;
}

.wind-row-actions__menu.is-up {
    top: auto;
    bottom: calc(100% + 0.35rem);
}

@keyframes windActionsIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.wind-row-actions__item,
.wind-row-actions__menu > a,
.wind-row-actions__menu > button,
.wind-row-actions__menu form {
    display: block;
    width: 100%;
    margin: 0;
}

.wind-row-actions__menu form button,
.wind-row-actions__menu > a,
.wind-row-actions__menu > button,
.wind-row-actions__item {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.7rem !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0.5rem !important;
    background: transparent !important;
    color: #334155 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.wind-row-actions__menu > a:hover,
.wind-row-actions__menu > button:hover,
.wind-row-actions__menu form button:hover,
.wind-row-actions__item:hover {
    background: #f1f5f9 !important;
    color: var(--wind-blue-dark) !important;
}

.wind-row-actions__menu .wind-row-actions__item--danger,
.wind-row-actions__menu a.wind-row-actions__item--danger,
.wind-row-actions__menu form button.wind-row-actions__item--danger,
.wind-row-actions__menu form button[class*="text-red"],
.wind-row-actions__menu a[class*="text-red"] {
    color: #e11d48 !important;
}

.wind-row-actions__menu .wind-row-actions__item--danger:hover,
.wind-row-actions__menu a.wind-row-actions__item--danger:hover,
.wind-row-actions__menu form button.wind-row-actions__item--danger:hover,
.wind-row-actions__menu form button[class*="text-red"]:hover,
.wind-row-actions__menu a[class*="text-red"]:hover {
    background: #fff1f2 !important;
    color: #be123c !important;
}

.wind-row-actions__item-icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.wind-row-actions__divider {
    height: 1px;
    margin: 0.3rem 0.4rem;
    background: #e2e8f0;
}

.wind-row-actions__label {
    flex: 1;
    min-width: 0;
}

/* Hide leftover whitespace/text nodes in converted cells */
.wind-actions-cell > .wind-row-actions + br,
.wind-actions-cell > br {
    display: none;
}

/* Panel / card shells */
.wind-main .rounded-2xl[class*="bg-"],
.wind-main .rounded-xl[class*="bg-slate"],
.wind-main .rounded-xl[class*="bg-gray"] {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* ── Buttons ── */

.wind-btn-primary,
.btn-primary {
    background: linear-gradient(135deg, var(--wind-blue) 0%, var(--wind-blue-dark) 50%, var(--wind-cyan) 100%);
    color: #fff !important;
    border: none;
    box-shadow: 0 8px 22px rgba(0, 123, 255, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.wind-btn-primary:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 123, 255, 0.35);
    filter: brightness(1.05);
}

/* Solid emerald CTAs → Wind primary gradient */
.wind-main button[class*="bg-emerald-600"],
.wind-main a[class*="bg-emerald-600"],
.wind-main button[class*="bg-emerald-500"]:not([class*="bg-emerald-500/"]),
.wind-main a[class*="bg-emerald-500"]:not([class*="bg-emerald-500/"]) {
    background: linear-gradient(135deg, var(--wind-blue) 0%, var(--wind-blue-dark) 55%, var(--wind-cyan) 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 22px rgba(0, 123, 255, 0.25);
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.wind-main button[class*="bg-emerald-600"]:hover,
.wind-main a[class*="bg-emerald-600"]:hover,
.wind-main button[class*="bg-emerald-500"]:not([class*="bg-emerald-500/"]):hover,
.wind-main a[class*="bg-emerald-500"]:not([class*="bg-emerald-500/"]):hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 123, 255, 0.35);
    filter: brightness(1.04);
    color: #fff !important;
}

/* Ghost primary (bg-emerald-500/20) */
.wind-main a[class*="bg-emerald-500/20"],
.wind-main button[class*="bg-emerald-500/20"],
.wind-main a[class*="bg-emerald-500/30"],
.wind-main button[class*="bg-emerald-500/30"] {
    background: rgba(0, 123, 255, 0.1) !important;
    color: var(--wind-blue-dark) !important;
    border-color: rgba(0, 123, 255, 0.28) !important;
    font-weight: 600;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.wind-main a[class*="bg-emerald-500/20"]:hover,
.wind-main button[class*="bg-emerald-500/20"]:hover,
.wind-main a[class*="bg-emerald-500/30"]:hover,
.wind-main button[class*="bg-emerald-500/30"]:hover {
    background: rgba(0, 123, 255, 0.16) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.12);
}

/* Outline / secondary buttons */
.wind-main a.border[class*="border-slate"],
.wind-main button.border[class*="border-slate"],
.wind-main a[class*="border-slate-600"],
.wind-main button[class*="border-slate-600"] {
    background: #ffffff !important;
    border-color: var(--wind-border) !important;
    color: #334155 !important;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.wind-main a.border[class*="border-slate"]:hover,
.wind-main button.border[class*="border-slate"]:hover,
.wind-main a[class*="border-slate-600"]:hover,
.wind-main button[class*="border-slate-600"]:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: var(--wind-ink) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

/* Download / slate-700 action buttons */
.wind-main a[class*="bg-slate-700"],
.wind-main button[class*="bg-slate-700"] {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    color: var(--wind-ink) !important;
    border: 1px solid var(--wind-border) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.wind-main a[class*="bg-slate-700"]:hover,
.wind-main button[class*="bg-slate-700"]:hover {
    border-color: rgba(0, 123, 255, 0.45) !important;
    box-shadow: 0 8px 22px rgba(0, 123, 255, 0.12);
    transform: translateY(-1px);
    color: var(--wind-blue-dark) !important;
}

.wind-download-btn {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.08), rgba(6, 182, 212, 0.1)) !important;
    color: var(--wind-blue-dark) !important;
    border: 1px solid rgba(0, 123, 255, 0.22) !important;
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.08);
}

.wind-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 123, 255, 0.16);
    border-color: rgba(0, 123, 255, 0.4) !important;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.14), rgba(6, 182, 212, 0.16)) !important;
}

.wind-download-card {
    animation: windPanelIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(0.06s * var(--i, 0));
}

/* Disabled / empty download placeholders */
.wind-main span.cursor-not-allowed[class*="bg-slate"] {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: var(--wind-border) !important;
}

/* Status / badge chips keep readable contrast */
.wind-main span[class*="bg-emerald-500/20"],
.wind-main span[class*="bg-amber-500/20"],
.wind-main span[class*="bg-rose-500/20"],
.wind-main span[class*="bg-red-500/20"],
.wind-main span[class*="bg-sky-500/20"],
.wind-main span[class*="bg-blue-500/20"] {
    font-weight: 600;
}

/* ── Copyable document refs (invoice / PO / SO / etc.) ── */

.wind-ref {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    vertical-align: middle;
}

.wind-ref__value,
.wind-ref .wind-ref__value,
.wind-ref > a,
td .wind-ref > a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--wind-blue-dark) !important;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(0, 123, 255, 0.22);
    border-radius: 0.45rem;
    padding: 0.18rem 0.5rem;
    line-height: 1.35;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    text-decoration: none !important;
}

.wind-ref__link:hover,
.wind-ref > a:hover {
    color: var(--wind-blue) !important;
    border-color: rgba(0, 123, 255, 0.45);
    text-decoration: none !important;
}

.wind-ref__link .wind-table-link__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wind-ref__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    flex-shrink: 0;
    border-radius: 0.45rem;
    border: 1px solid var(--wind-border);
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.wind-ref__copy:hover {
    color: var(--wind-blue-dark);
    border-color: rgba(0, 123, 255, 0.35);
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.12);
}

.wind-ref__copy:active {
    transform: translateY(0);
}

.wind-ref__icon {
    width: 0.9rem;
    height: 0.9rem;
}

.wind-ref__icon--check {
    display: none;
    color: #059669;
}

.wind-ref__copy.is-copied {
    color: #059669;
    border-color: rgba(16, 185, 129, 0.45);
    background: #ecfdf5;
}

.wind-ref__copy.is-copied .wind-ref__icon--copy {
    display: none;
}

.wind-ref__copy.is-copied .wind-ref__icon--check {
    display: block;
}

.wind-ref__rest {
    margin-left: 0.35rem;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
}

.wind-copy-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(12px);
    z-index: 12000;
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    background: #0a1628;
    color: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 32px rgba(10, 22, 40, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.wind-copy-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Alert / flash banners */
.wind-main .bg-emerald-500\/20,
.wind-main [class*="bg-emerald-500/20"].border {
    backdrop-filter: blur(4px);
}

/* ── Login (aligned with the desktop sign-in) ── */

.wind-login {
    --login-navy: #0a1628;
    --login-blue: #007bff;
    --login-cyan: #06b6d4;
    --login-indigo: #6366f1;
    --login-violet: #8b5cf6;
    --login-teal: #14b8a6;
    --login-amber: #f59e0b;
    min-height: 100vh;
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background: var(--login-navy);
    color: var(--login-navy);
}

.wind-login-screen {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

@keyframes loginFadeUp {
    from { opacity: 0; transform: translateY(28px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loginFadeRight {
    from { opacity: 0; transform: translateX(32px) scale(0.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes loginOrbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(18px, -22px) scale(1.06); }
    66% { transform: translate(-14px, 12px) scale(0.94); }
}

@keyframes loginShineSweep {
    0% { transform: translateX(-120%) skewX(-12deg); }
    100% { transform: translateX(220%) skewX(-12deg); }
}

@keyframes loginGradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes loginBorderSpin {
    to { transform: rotate(360deg); }
}

.wind-login-rise {
    opacity: 0;
    animation: loginFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(0.06s * var(--i, 0));
}

.wind-login-rise--right {
    animation-name: loginFadeRight;
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: loginOrbDrift 14s ease-in-out infinite;
    pointer-events: none;
}

.wind-login-hero {
    position: relative;
    flex: 1.1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 2rem 2.5rem 1.5rem;
    overflow: hidden;
}

.wind-login-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.06);
}

.wind-login-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.93) 0%, rgba(240, 249, 255, 0.88) 45%, rgba(224, 242, 254, 0.82) 100%),
        linear-gradient(to bottom, rgba(10, 22, 40, 0.08), rgba(0, 123, 255, 0.12));
    pointer-events: none;
}

.wind-login-hero__mesh,
.wind-login-panel__mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-orb--1 { width: 280px; height: 280px; top: -8%; right: -5%; background: radial-gradient(circle, rgba(0, 123, 255, 0.45), transparent 70%); }
.login-orb--2 { width: 220px; height: 220px; bottom: 10%; left: -6%; background: radial-gradient(circle, rgba(6, 182, 212, 0.4), transparent 70%); animation-delay: -4s; }
.login-orb--3 { width: 180px; height: 180px; top: 42%; right: 18%; background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%); animation-delay: -8s; }
.login-orb--p1 { width: 320px; height: 320px; top: -15%; left: -10%; background: radial-gradient(circle, rgba(0, 123, 255, 0.35), transparent 70%); }
.login-orb--p2 { width: 260px; height: 260px; bottom: -10%; right: -8%; background: radial-gradient(circle, rgba(6, 182, 212, 0.28), transparent 70%); animation-delay: -6s; }

.wind-login-hero__grid,
.wind-login-panel__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wind-login-hero__grid {
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(0, 123, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 123, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, black 20%, transparent 95%);
}

.wind-login-hero__inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.35rem;
    max-width: 34rem;
}

.wind-login-brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.wind-login-logo {
    width: min(160px, 42vw);
    height: auto;
    filter: drop-shadow(0 10px 28px rgba(0, 123, 255, 0.2));
}

.wind-login-chip {
    display: inline-flex;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--login-blue), var(--login-cyan));
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.35);
}

.wind-login-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.22;
    color: var(--login-navy);
}

.wind-login-title span {
    background: linear-gradient(120deg, var(--login-blue) 0%, var(--login-cyan) 45%, var(--login-indigo) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: loginGradientFlow 5s ease infinite;
}

.wind-login-lead {
    margin: 0.75rem 0 0;
    max-width: 28rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #475569;
}

.wind-login-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.wind-login-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    height: 100%;
    padding: 0.95rem 1rem 0.95rem 1.15rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(10, 22, 40, 0.06);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.wind-login-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.wind-login-tile:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 123, 255, 0.14);
}

.wind-login-tile__icon {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    color: #fff;
}

.wind-login-tile__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.wind-login-tile__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
}

.wind-login-tile--blue::before { background: linear-gradient(180deg, var(--login-blue), var(--login-cyan)); }
.wind-login-tile--teal::before { background: linear-gradient(180deg, var(--login-teal), var(--login-cyan)); }
.wind-login-tile--violet::before { background: linear-gradient(180deg, var(--login-violet), var(--login-indigo)); }
.wind-login-tile--amber::before { background: linear-gradient(180deg, var(--login-amber), #fb923c); }
.wind-login-tile--blue .wind-login-tile__icon { background: linear-gradient(135deg, var(--login-blue), #0056d2); }
.wind-login-tile--teal .wind-login-tile__icon { background: linear-gradient(135deg, var(--login-teal), var(--login-cyan)); }
.wind-login-tile--violet .wind-login-tile__icon { background: linear-gradient(135deg, var(--login-violet), var(--login-indigo)); }
.wind-login-tile--amber .wind-login-tile__icon { background: linear-gradient(135deg, var(--login-amber), #ea580c); }

.wind-login-tile strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--login-navy);
}

.wind-login-tile__copy span {
    display: block;
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: #64748b;
}

.wind-login-footer {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-top: 0.5rem;
    font-size: 0.6875rem;
    color: #64748b;
}

.wind-login-panel {
    position: relative;
    flex: 0.9;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 123, 255, 0.18), transparent),
        linear-gradient(165deg, #0f2744 0%, var(--login-navy) 55%, #061018 100%);
    overflow: hidden;
}

.wind-login-panel__grid {
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
}

.wind-login-mobile-brand {
    display: none;
}

.wind-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 0 0 1px rgba(0, 123, 255, 0.08),
        0 32px 64px rgba(0, 0, 0, 0.35),
        0 0 80px rgba(0, 123, 255, 0.12);
    overflow: hidden;
}

.wind-login-card__shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: loginShineSweep 6s ease-in-out infinite;
    pointer-events: none;
}

.wind-login-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, var(--login-blue), var(--login-cyan), var(--login-indigo), var(--login-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.45;
    animation: loginBorderSpin 8s linear infinite;
    pointer-events: none;
}

.wind-login-card__head {
    position: relative;
    padding: 1.75rem 1.75rem 0;
    background: linear-gradient(180deg, rgba(0, 123, 255, 0.04) 0%, transparent 100%);
}

.wind-login-eyebrow {
    display: inline-flex;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.12), rgba(6, 182, 212, 0.1));
    color: var(--login-blue);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.wind-login-card h1 {
    margin: 0.85rem 0 0;
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--login-navy);
    letter-spacing: -0.035em;
}

.wind-login-card__lead {
    margin: 0.45rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #64748b;
}

.wind-login-form {
    position: relative;
    padding: 1.5rem 1.75rem 1.75rem;
}

.wind-login-field {
    margin-top: 1.125rem;
}

.wind-login-field:first-child {
    margin-top: 0;
}

.wind-login-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.wind-login-control {
    position: relative;
}

.wind-login-control__icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
    pointer-events: none;
    transition: color 0.2s;
}

.wind-login-control:focus-within .wind-login-control__icon {
    color: var(--login-blue);
}

.wind-login-control input[type="text"],
.wind-login-control input[type="email"],
.wind-login-control input[type="password"] {
    width: 100%;
    height: 3rem;
    padding: 0 0.9rem 0 2.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    color: var(--login-navy);
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
}

.wind-login-control input::placeholder {
    color: #94a3b8;
}

.wind-login-control input:focus {
    outline: none;
    border-color: var(--login-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12);
    transform: translateY(-1px);
}

.wind-login-control input.wind-login-input--secret {
    padding-right: 2.75rem;
}

.wind-login-toggle {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    display: flex;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 0.375rem;
}

.wind-login-toggle:hover {
    color: var(--login-blue);
    background: rgba(0, 123, 255, 0.08);
}

.wind-login-remember {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #475569;
    cursor: pointer;
}

.wind-login-remember input {
    accent-color: var(--login-blue);
}

.wind-login-alert {
    margin-top: 0.7rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.wind-login-status {
    margin-top: 0.7rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
}

.wind-login-submit {
    width: 100%;
    margin-top: 1.25rem;
    height: 3.125rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--login-blue) 0%, #0056d2 50%, var(--login-cyan) 100%);
    background-size: 200% 200%;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: loginGradientFlow 4s ease infinite;
}

.wind-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 123, 255, 0.5);
}

.wind-login-back {
    margin: 1.15rem 0 0;
    text-align: center;
    font-size: 0.8125rem;
}

.wind-login-back a {
    color: var(--login-blue);
    font-weight: 700;
    text-decoration: none;
}

.wind-login-back a:hover {
    color: #0056d2;
}

@media (max-width: 960px) {
    .wind-login-screen {
        flex-direction: column;
    }

    .wind-login-hero {
        display: none;
    }

    .wind-login-panel {
        flex: 1;
        flex-direction: column;
        gap: 1.25rem;
    }

    .wind-login-mobile-brand {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .wind-login-mobile-brand .wind-login-logo {
        width: 92px;
        filter: drop-shadow(0 8px 18px rgba(0, 123, 255, 0.35));
    }
}

@media (max-width: 900px) {
    .sidebar {
        width: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-orb,
    .login-orb,
    .falling-star,
    .wind-login-rise,
    .wind-login-rise--right,
    .wind-login-title span,
    .wind-login-card::before,
    .wind-login-card__shine,
    .wind-login-submit,
    .wind-main::before,
    .wind-main::after,
    .wind-main > *,
    .wind-main .rounded-2xl,
    .wind-main .rounded-xl,
    .wind-main .card {
        animation: none !important;
    }

    .wind-login-rise,
    .wind-login-rise--right {
        opacity: 1;
    }

    .wind-login-tile:hover,
    .wind-login-submit:hover {
        transform: none;
    }

    .wind-main button,
    .wind-main a {
        transition: none !important;
        transform: none !important;
    }
}
