@font-face {
    font-family: "Cairo";
    src: url("/assets/fonts/Cairo-variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
}

:root {
    --navy-950: #050d19;
    --navy-900: #071428;
    --navy-800: #0d2240;
    --blue-700: #06488f;
    --blue-500: #0c73d8;
    --blue-300: #62b7ff;
    --gold-500: #f6a90a;
    --gold-300: #ffd46d;
    --slate-900: #1b2535;
    --slate-600: #65738a;
    --slate-400: #9ca9bb;
    --slate-200: #dfe6ef;
    --slate-100: #eef3f8;
    --white: #ffffff;
    --danger: #c93245;
    --shadow: 0 24px 80px rgba(2, 16, 36, .16);
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; color: var(--slate-900); background: var(--slate-100); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.eyebrow { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--blue-300); }
.eyebrow.gold { color: #d88b00; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #41d98b; box-shadow: 0 0 14px #41d98b; }

.login-page { background: var(--navy-950); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(420px, .95fr); }
.brand-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 110px); background: radial-gradient(circle at 46% 34%, rgba(12, 115, 216, .34), transparent 34%), linear-gradient(145deg, #061020 0%, #09234a 58%, #061224 100%); color: var(--white); }
.brand-panel::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, #000, transparent 92%); }
.brand-panel::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; left: -140px; bottom: -180px; background: var(--gold-500); filter: blur(130px); opacity: .18; z-index: -1; }
.brand-logo { width: min(330px, 68%); border-radius: 26px; box-shadow: 0 22px 80px rgba(0, 73, 159, .38); mix-blend-mode: screen; }
.brand-copy { margin-top: 42px; max-width: 650px; }
.brand-copy h1 { margin: 12px 0 18px; font-size: clamp(2.3rem, 4.4vw, 4.9rem); line-height: 1.12; letter-spacing: -.045em; }
.brand-copy p { margin: 0; max-width: 580px; color: #b6c9e6; font-size: 1.05rem; line-height: 1.9; }
.brand-footer { position: absolute; right: clamp(40px, 7vw, 110px); bottom: 34px; display: flex; align-items: center; gap: 10px; color: #91a9c9; font-size: .84rem; }
.brand-orbit { position: absolute; border: 1px solid rgba(90, 177, 255, .13); border-radius: 50%; z-index: -1; }
.orbit-one { width: 520px; height: 520px; left: -120px; top: -180px; }
.orbit-two { width: 760px; height: 760px; left: -250px; top: -300px; }

.login-panel { display: grid; place-items: center; padding: 48px; background: #f7f9fc; }
.login-card { width: min(460px, 100%); }
.login-heading h2 { margin: 8px 0 10px; color: var(--navy-900); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
.login-heading p { margin: 0 0 34px; color: var(--slate-600); line-height: 1.8; }
.login-form { display: grid; gap: 12px; }
.login-form label { margin-top: 8px; color: #344157; font-weight: 700; font-size: .9rem; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; min-height: 58px; padding: 0 50px 0 18px; border: 1px solid #d6deea; border-radius: 14px; outline: 0; background: var(--white); color: var(--navy-900); transition: border .2s, box-shadow .2s, transform .2s; }
.input-wrap input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(12, 115, 216, .11); transform: translateY(-1px); }
.input-icon { position: absolute; z-index: 1; right: 19px; top: 50%; transform: translateY(-50%); color: var(--blue-500); font-size: .65rem; }
.input-icon.lock { color: var(--gold-500); }
.primary-button { min-height: 58px; margin-top: 18px; padding: 0 24px; border: 0; border-radius: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(135deg, #07529f, #0879df); color: var(--white); font-weight: 800; box-shadow: 0 14px 34px rgba(4, 91, 179, .24); transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(4, 91, 179, .32); }
.primary-button:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; }
.security-note { margin: 24px 0 0; text-align: center; color: var(--slate-600); font-size: .82rem; }
.alert { margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; font-size: .9rem; }
.alert-error { border: 1px solid #f2bac2; color: #9d2334; background: #fff0f2; }
.mobile-brand { display: none; }

.dashboard-page { background: #eef3f8; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px 20px; background: linear-gradient(180deg, #07162b, #06101f); color: #d4e0f0; box-shadow: 10px 0 34px rgba(5, 18, 38, .1); }
.sidebar-brand { display: block; padding: 6px 10px 22px; text-align: center; }
.sidebar-brand img { width: 150px; height: 104px; object-fit: cover; border-radius: 16px; mix-blend-mode: screen; }
.main-nav { display: grid; gap: 6px; }
.nav-label { margin: 20px 14px 7px; color: #677e9c; font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.nav-item { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 15px; border-radius: 12px; color: #aebfd5; text-decoration: none; font-size: .9rem; font-weight: 700; }
.nav-item span { width: 22px; color: #74bfff; font-size: 1.1rem; text-align: center; }
.nav-item small { margin-right: auto; color: #586d88; font-size: .62rem; }
.nav-item.active { color: var(--white); background: linear-gradient(135deg, rgba(12,115,216,.28), rgba(12,115,216,.11)); box-shadow: inset 3px 0 var(--gold-500); }
.nav-item.disabled { cursor: default; opacity: .76; }
.sidebar-user { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.08); display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--white); font-weight: 900; background: linear-gradient(135deg, var(--blue-500), var(--gold-500)); }
.sidebar-user strong, .sidebar-user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { max-width: 130px; font-size: .78rem; color: #eef5ff; }
.sidebar-user span { margin-top: 3px; color: #7188a7; font-size: .68rem; }
.logout-button { border: 0; cursor: pointer; color: #8fa5c2; background: transparent; font-size: 1.2rem; }

.dashboard-main { min-width: 0; padding: 38px clamp(24px, 4vw, 62px) 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.topbar h1 { margin: 7px 0 6px; color: var(--navy-900); font-size: clamp(1.8rem, 3.3vw, 3rem); letter-spacing: -.035em; }
.topbar p { margin: 0; color: var(--slate-600); }
.secure-badge { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border: 1px solid #d8e3ee; border-radius: 999px; color: #526178; background: rgba(255,255,255,.78); font-size: .78rem; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card { position: relative; overflow: hidden; min-height: 124px; display: flex; align-items: center; gap: 17px; padding: 22px; border: 1px solid #dce5ef; border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 10px 35px rgba(30, 55, 86, .06); }
.stat-card::after { content: ""; position: absolute; width: 76px; height: 76px; left: -28px; top: -28px; border-radius: 50%; background: currentColor; opacity: .08; }
.stat-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: currentColor; background: currentColor; background: color-mix(in srgb, currentColor 12%, white); font-size: 1.35rem; }
.stat-card small, .stat-card strong { display: block; }
.stat-card small { margin-bottom: 7px; color: var(--slate-600); font-size: .75rem; }
.stat-card strong { color: var(--navy-900); font-size: 1.8rem; }
.accent-blue { color: #0c73d8; } .accent-gold { color: #e99a00; } .accent-cyan { color: #00a1a8; } .accent-violet { color: #7858d8; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, .9fr); gap: 20px; margin-top: 20px; }
.panel { border: 1px solid #dce5ef; border-radius: 22px; background: var(--white); box-shadow: 0 14px 45px rgba(30, 55, 86, .07); }
.welcome-panel { position: relative; min-height: 360px; overflow: hidden; display: grid; grid-template-columns: 1fr 240px; align-items: center; padding: clamp(28px, 4vw, 52px); background: linear-gradient(145deg, #07172d, #0a2b58); color: var(--white); }
.welcome-panel::before { content: ""; position: absolute; width: 350px; height: 350px; left: -100px; bottom: -190px; border-radius: 50%; background: var(--gold-500); filter: blur(90px); opacity: .2; }
.panel-copy { position: relative; z-index: 1; }
.panel-copy h2 { margin: 10px 0 16px; font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.24; letter-spacing: -.035em; }
.panel-copy p { max-width: 640px; margin: 0; color: #b4c7e2; line-height: 1.9; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.feature-pills span { padding: 8px 11px; border: 1px solid rgba(110,184,255,.2); border-radius: 999px; color: #c4dcf5; background: rgba(12,115,216,.11); font-size: .7rem; font-weight: 700; }
.panel-mark { position: relative; z-index: 1; }
.panel-mark img { width: 230px; border-radius: 26px; mix-blend-mode: screen; box-shadow: 0 18px 60px rgba(0, 95, 210, .25); }
.access-panel { padding: 28px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.panel-header h2 { margin: 6px 0 0; color: var(--navy-900); font-size: 1.5rem; }
.role-count { padding: 7px 10px; border-radius: 999px; color: #155fa7; background: #e8f3ff; font-size: .7rem; font-weight: 800; }
.role-list { display: grid; gap: 10px; }
.role-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid #e5ebf2; border-radius: 14px; background: #fafcff; }
.role-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #0c73d8; background: #e8f4ff; }
.role-row strong, .role-row small { display: block; }
.role-row strong { color: #16243a; font-size: .84rem; }
.role-row small { max-width: 210px; margin-top: 4px; color: #78869a; font-size: .65rem; line-height: 1.45; }
.permission-count { color: #597087; font-size: .66rem; font-weight: 800; }
.dashboard-footer { padding: 24px 0 0; text-align: center; color: #8d9aab; font-size: .72rem; }

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

@media (max-width: 920px) {
    .login-shell { grid-template-columns: 1fr; }
    .brand-panel { display: none; }
    .login-panel { min-height: 100vh; padding: 28px 20px; }
    .mobile-brand { display: block; margin-bottom: 20px; text-align: center; }
    .mobile-brand img { width: 160px; height: 120px; object-fit: cover; border-radius: 20px; mix-blend-mode: multiply; }
    .app-shell { grid-template-columns: 86px minmax(0, 1fr); }
    .sidebar { padding-inline: 12px; }
    .sidebar-brand img { width: 58px; height: 58px; }
    .nav-item { justify-content: center; padding: 0; font-size: 0; }
    .nav-item span { font-size: 1.2rem; }
    .nav-item small, .nav-label, .sidebar-user > div:nth-child(2) { display: none; }
    .sidebar-user { grid-template-columns: 1fr; justify-items: center; padding-inline: 0; }
    .logout-button { margin-top: 4px; }
}

@media (max-width: 680px) {
    .app-shell { display: block; }
    .sidebar { position: relative; width: 100%; height: auto; padding: 12px 16px; flex-direction: row; align-items: center; }
    .sidebar-brand { padding: 0; }
    .sidebar-brand img { width: 54px; height: 50px; }
    .main-nav { margin-right: auto; }
    .main-nav .nav-item:not(.active), .sidebar-user .avatar, .sidebar-user form { display: none; }
    .main-nav .nav-item.active { width: 48px; min-height: 44px; }
    .sidebar-user { display: none; }
    .dashboard-main { padding: 24px 16px; }
    .topbar { align-items: flex-start; }
    .secure-badge { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { min-height: 104px; padding: 15px; }
    .stat-icon { width: 40px; height: 40px; flex-basis: 40px; }
    .welcome-panel { grid-template-columns: 1fr; min-height: 0; padding: 28px; }
    .panel-mark { display: none; }
    .role-row { grid-template-columns: 34px 1fr; }
    .permission-count { display: none; }
}

@media (max-width: 430px) {
    .stats-grid { grid-template-columns: 1fr; }
    .login-heading h2 { font-size: 2.2rem; }
}

/* Unified services */
.alert-success { border: 1px solid #afe1c6; color: #16653b; background: #eafaf1; }
.page-alert { position: relative; z-index: 4; margin: 0 0 20px; box-shadow: 0 8px 24px rgba(22, 101, 59, .08); }
.page-topbar { margin-bottom: 26px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.service-card { position: relative; overflow: hidden; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border: 1px solid #dce5ef; border-radius: 22px; text-decoration: none; background: var(--white); box-shadow: 0 14px 45px rgba(30,55,86,.07); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.service-card:hover { transform: translateY(-4px); box-shadow: 0 22px 58px rgba(30,55,86,.13); border-color: #b7cee5; }
.service-card::after { content: ""; position: absolute; width: 190px; height: 190px; left: -90px; top: -90px; border-radius: 50%; background: currentColor; opacity: .08; }
.service-icon { position: relative; z-index: 1; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; font: 900 1.35rem Georgia, serif; background: currentColor; background: color-mix(in srgb, currentColor 13%, white); }
.service-content { position: relative; z-index: 1; }
.service-kicker { display: block; margin: 34px 0 8px; color: currentColor; font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.service-card h2 { margin: 0 0 12px; color: var(--navy-900); font-size: 1.55rem; }
.service-card p { margin: 0; color: var(--slate-600); line-height: 1.8; font-size: .86rem; }
.service-link { display: inline-block; margin-top: 23px; color: currentColor; font-size: .8rem; font-weight: 900; }
.service-link.muted { color: #8b97a8; }
.service-roseltorg { color: #0c73d8; }
.service-my-work { color: #d99000; }
.service-coming { color: #7657cf; background: #f8f6ff; }
.recent-panel, .files-panel { margin-top: 20px; padding: 28px; }
.activity-list { display: grid; gap: 9px; }
.activity-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; padding: 13px 14px; border: 1px solid #e5ebf2; border-radius: 14px; text-decoration: none; color: inherit; background: #fbfdff; }
.activity-row:hover { border-color: #b9cfe5; background: #f5faff; }
.file-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #0c73d8; background: #e8f4ff; font-weight: 900; }
.activity-row strong, .activity-row small { display: block; }
.activity-row strong { color: var(--navy-900); font-size: .84rem; }
.activity-row small { margin-top: 4px; color: var(--slate-600); font-size: .7rem; }
.activity-row time { color: #8c99aa; font-size: .7rem; }
.empty-state { padding: 42px 20px; text-align: center; color: var(--slate-600); }
.empty-state.wide { grid-column: 1 / -1; }
.empty-state > span { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 17px; color: #0c73d8; background: #e8f4ff; font-size: 1.35rem; }
.empty-state h3 { margin: 0 0 7px; color: var(--navy-900); }
.empty-state p { margin: 0; }

.split-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .7fr); gap: 20px; }
.upload-panel, .guide-panel { padding: 28px; }
.panel-number { color: #dce7f3; font: 800 2.2rem Georgia, serif; }
.service-form { display: grid; gap: 17px; }
.service-form label > span { display: block; margin: 0 0 8px; color: #344157; font-size: .8rem; font-weight: 800; }
.service-form label > span small { margin-right: 5px; color: #9aa6b6; font-weight: 500; }
.service-form input[type="text"], .service-form input[type="date"], .service-form textarea { width: 100%; border: 1px solid #d8e1eb; border-radius: 13px; outline: 0; background: #fbfdff; color: var(--navy-900); }
.service-form input[type="text"], .service-form input[type="date"] { min-height: 50px; padding: 0 14px; }
.service-form textarea { resize: vertical; padding: 13px 14px; line-height: 1.7; }
.service-form input:focus, .service-form textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(12,115,216,.1); }
.form-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.sequence-preview { min-height: 78px; display: flex; flex-direction: column; justify-content: center; padding: 12px 15px; border: 1px solid #cfe1f3; border-radius: 13px; background: linear-gradient(135deg, #f2f8ff, #fbfdff); }
.sequence-preview span, .sequence-preview strong, .sequence-preview small { display: block; }
.sequence-preview span { color: #70829a; font-size: .68rem; font-weight: 800; }
.sequence-preview strong { margin: 4px 0; direction: ltr; text-align: right; color: #075eae; font: 900 1.2rem "Cairo", sans-serif; letter-spacing: .04em; }
.sequence-preview small { color: #91a0b2; font-size: .62rem; }
.file-drop { position: relative; min-height: 166px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; border: 1.5px dashed #aac4df; border-radius: 17px; text-align: center; background: #f5faff; }
.file-drop:hover { border-color: var(--blue-500); background: #eef7ff; }
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.drop-icon { width: 42px; height: 42px; margin-bottom: 10px; display: grid !important; place-items: center; border-radius: 13px; color: #0c73d8 !important; background: #dceeff; font-size: 1.3rem !important; }
.file-drop strong { color: var(--navy-900); font-size: .86rem; }
.file-drop small { margin-top: 5px; color: #75849a; font-size: .68rem; }
.file-drop em { margin-top: 10px; color: #0c73d8; font-size: .7rem; font-style: normal; font-weight: 800; }
.check-row { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid #eadcaf; border-radius: 13px; background: #fffaf0; }
.check-row input { margin-top: 3px; accent-color: #e99a00; }
.check-row span { margin: 0 !important; }
.check-row strong, .check-row small { display: block; }
.check-row small { margin-top: 4px; color: #8d7950; font-size: .68rem; font-weight: 500; }
.primary-button.compact { width: max-content; min-height: 50px; margin-top: 0; padding-inline: 24px; }
.primary-button.tiny { min-height: 40px; margin: 0; padding: 0 15px; border-radius: 10px; font-size: .74rem; }
.secondary-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid #cad8e6; border-radius: 10px; cursor: pointer; text-decoration: none; color: #36516e; background: white; font-size: .72rem; font-weight: 800; }
.guide-panel { overflow: hidden; color: white; background: linear-gradient(150deg, #07172d, #0a3268); }
.guide-panel .eyebrow { color: #70bbff; }
.guide-panel h2 { margin: 8px 0 22px; font-size: 1.55rem; }
.guide-panel ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.guide-panel li { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; color: #c3d2e5; font-size: .78rem; }
.guide-panel li span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--gold-300); background: rgba(255,255,255,.08); font-weight: 900; }
.guide-panel p { color: #c3d2e5; line-height: 1.9; }
.guide-visual { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; color: #71bdff; font-size: 2rem; }

.file-table-wrap { overflow-x: auto; }
.file-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.file-table th { padding: 11px 13px; border-bottom: 1px solid #dce5ef; text-align: right; color: #718096; font-size: .68rem; }
.file-table td { padding: 14px 13px; border-bottom: 1px solid #edf1f5; color: #394b60; font-size: .76rem; }
.file-table tbody tr:hover { background: #f8fbff; }
.file-name-cell, .file-table td small { display: block; }
.file-name-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; color: #243850; font-weight: 700; }
.file-table td small { margin-top: 4px; color: #92a0b1; font-size: .64rem; }
.table-action { display: inline-flex; align-items: center; min-height: 34px; padding: 0 11px; border-radius: 9px; text-decoration: none; color: #0967bd; background: #e9f4ff; font-size: .68rem; font-weight: 900; }
.status-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border-radius: 999px; font-size: .64rem; font-weight: 900; }
.status-badge.pending { color: #966100; background: #fff3d5; }
.status-badge.neutral { color: #69788c; background: #edf1f5; }

.dataset-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; }
.dataset-meta { display: flex; flex-wrap: wrap; gap: 24px; }
.dataset-meta small, .dataset-meta strong { display: block; }
.dataset-meta small { margin-bottom: 4px; color: #8a98aa; font-size: .63rem; }
.dataset-meta strong { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #263b53; font-size: .76rem; }
.dataset-actions { display: flex; align-items: center; gap: 9px; }
.file-note { margin: 12px 0; padding: 14px 18px; border-right: 3px solid var(--gold-500); border-radius: 10px; color: #675530; background: #fff9eb; font-size: .78rem; line-height: 1.7; }
.data-panel { margin-top: 14px; overflow: hidden; }
.data-tools { display: flex; align-items: center; gap: 13px; padding: 17px 20px; border-bottom: 1px solid #e3e9f0; }
.search-box { position: relative; flex: 1; max-width: 620px; }
.search-box span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #0c73d8; }
.search-box input { width: 100%; min-height: 43px; padding: 0 40px 0 14px; border: 1px solid #d4dfea; border-radius: 11px; outline: 0; background: #f9fbfd; }
.search-box input:focus { border-color: #0c73d8; box-shadow: 0 0 0 3px rgba(12,115,216,.09); }
.result-counter { margin-right: auto; color: #748298; font-size: .72rem; }
.result-counter strong { color: var(--navy-900); }
.data-table-wrap { max-height: 68vh; overflow: auto; direction: ltr; }
.data-table { min-width: max-content; width: 100%; border-collapse: separate; border-spacing: 0; direction: ltr; }
.data-table th, .data-table td { min-width: 150px; max-width: 330px; padding: 11px 12px; border-left: 1px solid #e7edf3; border-bottom: 1px solid #e7edf3; text-align: left; vertical-align: top; font-size: .72rem; line-height: 1.55; }
.data-table thead { position: sticky; top: 0; z-index: 3; }
.data-table thead tr:first-child th { color: white; background: #0a2a52; font-weight: 800; }
.column-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.column-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.column-sort-button, .column-translate-button { height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 8px; cursor: pointer; color: #ffd46d; background: rgba(255,255,255,.08); font-family: "Cairo", sans-serif; font-weight: 900; }
.column-sort-button { width: 28px; font-size: .9rem; }
.column-translate-button { min-width: 32px; padding: 0 6px; color: #dceeff; font-size: .61rem; letter-spacing: .04em; }
.column-sort-button:hover, .column-sort-button:focus-visible, .column-translate-button:hover, .column-translate-button:focus-visible { border-color: #ffd46d; background: rgba(246,169,10,.18); outline: none; }
.column-translate-button:disabled { cursor: wait; opacity: .65; }
.cell-original, .cell-translation { white-space: pre-wrap; }
.data-table .filter-row { top: 38px; }
.data-table .filter-row th { padding: 7px; background: #eef4fa; }
.data-table .filter-row input { width: 100%; min-height: 32px; padding: 0 9px; border: 1px solid #cbd8e5; border-radius: 8px; outline: 0; font-size: .67rem; }
.data-table tbody tr:nth-child(even) td { background: #fafcff; }
.data-table tbody tr:hover td { background: #eef7ff; }
.data-table td { overflow: hidden; text-overflow: ellipsis; color: #30445b; background: white; }
.no-results { padding: 42px; text-align: center; color: #75849a; }

.my-work-layout { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); }
.my-work-guide { background: linear-gradient(150deg, #332205, #8b5b00); }
.work-files-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 20px; }
.work-file-card { display: flex; flex-direction: column; min-height: 310px; padding: 22px; }
.work-file-head { display: flex; align-items: center; justify-content: space-between; }
.file-extension { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #0c73d8; background: #e8f4ff; font-size: .68rem; font-weight: 900; }
.file-size { color: #98a4b3; font-size: .66rem; }
.work-file-card h2 { margin: 20px 0 7px; color: var(--navy-900); font-size: 1.15rem; }
.original-file-name { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #7c899b; font-size: .7rem; }
.work-note { flex: 1; margin: 18px 0; padding: 13px; border-radius: 11px; color: #4e6075; background: #f6f9fc; font-size: .74rem; line-height: 1.7; }
.work-note span { color: #9aa6b5; }
.work-file-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid #e7edf3; }
.work-file-card footer strong, .work-file-card footer time { display: block; }
.work-file-card footer strong { color: #40536a; font-size: .68rem; }
.work-file-card footer time { margin-top: 3px; color: #9ba7b6; font-size: .62rem; }

@media (max-width: 1180px) {
    .service-grid, .work-files-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .service-grid, .work-files-grid { grid-template-columns: 1fr; }
    .dataset-toolbar, .data-tools { align-items: stretch; flex-direction: column; }
    .dataset-actions { flex-wrap: wrap; }
    .result-counter { margin-right: 0; }
    .search-box { max-width: none; }
    .form-grid.two { grid-template-columns: 1fr; }
    .activity-row { grid-template-columns: 38px 1fr; }
    .activity-row time { display: none; }
}
