*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red: #E71D36;
    --red-hover: #C9152C;
    --red-soft: rgba(231, 29, 54, 0.08);
    --blue: #1D4ED8;
    --blue-soft: rgba(29, 78, 216, 0.08);
    --green: #16A34A;
    --green-soft: rgba(22, 163, 74, 0.1);
    --green-border: rgba(22, 163, 74, 0.25);
    --amber: #B45309;
    --purple: #6D28D9;
    --bg: #F1F5F9;
    --surface: #FFFFFF;
    --surface-2: #F8FAFC;
    --sidebar: #FFFFFF;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    --txt-1: #0F172A;
    --txt-2: #475569;
    --txt-3: #94A3B8;
    --txt-inv: #FFFFFF;
    --nav-h: 60px;
    --side-w: 248px;
    --rd-sm: 6px;
    --rd: 10px;
    --rd-lg: 14px;
    --rd-xl: 18px;
    --sh-xs: 0 1px 2px rgba(15,23,42,0.04);
    --sh-sm: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
    --sh: 0 4px 8px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
    --sh-lg: 0 12px 24px rgba(15,23,42,0.1), 0 4px 8px rgba(15,23,42,0.06);
    --t: 0.14s ease;
    --t-med: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--txt-1);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input { font-family: inherit; }

@keyframes up   { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes in   { from { opacity:0; } to { opacity:1; } }
@keyframes spin { to   { transform:rotate(360deg); } }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes pop  { 0%{transform:scale(.94) translateY(8px);opacity:0} 100%{transform:scale(1) translateY(0);opacity:1} }
@keyframes popout { 0%{transform:scale(1);opacity:1} 100%{transform:scale(.96);opacity:0} }

.spin-anim { animation: spin .7s linear infinite; }

.login-page {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(231,29,54,.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(29,78,216,.04) 0%, transparent 50%);
}

.pw-box {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border-radius: var(--rd-xl);
    border: 1px solid var(--border);
    box-shadow: var(--sh-lg);
    padding: 40px 36px 36px;
    animation: pop .38s cubic-bezier(.16,1,.3,1) forwards;
    position: relative;
    overflow: hidden;
}

.pw-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red) 0%, #F87171 50%, var(--red) 100%);
    background-size: 200% 100%;
}

.pw-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.pw-logo img {
    height: 46px;
    max-width: 180px;
    object-fit: contain;
}

.pw-box h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--txt-1);
    text-align: center;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
}

.pw-box > p {
    font-size: 13px;
    color: var(--txt-3);
    text-align: center;
    margin-bottom: 28px;
    font-weight: 500;
}

.pw-error-box {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    background: var(--red-soft);
    border: 1px solid rgba(231,29,54,.2);
    border-radius: var(--rd-sm);
    font-size: 13px;
    color: #9B1C1C;
    margin-bottom: 16px;
    animation: up .2s ease;
}

.pw-error-box svg { flex-shrink: 0; }

.pw-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.pw-input-wrap .form-input {
    width: 100%;
    height: 46px;
    padding: 0 46px 0 14px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--rd);
    background: var(--surface);
    color: var(--txt-1);
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--t), box-shadow var(--t);
}

.pw-input-wrap .form-input::placeholder { color: var(--txt-3); }

.pw-input-wrap .form-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(231,29,54,.12);
}

#pw-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--txt-3);
    border-radius: 0 var(--rd) var(--rd) 0;
    transition: color var(--t);
}

#pw-toggle:hover { color: var(--txt-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 14px; font-weight: 600; border-radius: var(--rd); cursor: pointer; border: none; transition: background var(--t), box-shadow var(--t), transform var(--t), opacity var(--t); }

.btn-primary {
    background: var(--red);
    color: var(--txt-inv);
    box-shadow: 0 1px 3px rgba(231,29,54,.3), 0 4px 12px rgba(231,29,54,.15);
}

.btn-primary:hover:not(:disabled) {
    background: var(--red-hover);
    box-shadow: 0 1px 3px rgba(231,29,54,.4), 0 6px 16px rgba(231,29,54,.22);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) { transform: none; box-shadow: 0 1px 3px rgba(231,29,54,.25); }

.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-full { width: 100%; height: 46px; }

#pw-error { min-height: 0; }

.pw-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 12px;
    color: var(--txt-3);
    font-weight: 500;
}

.dashboard-body {
    display: flex;
    background: var(--bg);
    min-height: 100vh;
}

.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 300;
    display: flex;
    align-items: stretch;
    box-shadow: var(--sh-xs);
}

.topbar-brand {
    width: var(--side-w);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-right: 1px solid var(--border);
    position: relative;
}

.topbar-brand::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--red);
}

.topbar-brand-logo {
    height: 28px;
    max-width: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.topbar-brand-copy { min-width: 0; }

.topbar-brand-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--txt-1);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -.01em;
}

.topbar-brand-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: block;
}

.topbar-center {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 8px;
    font-size: 13px;
}

.topbar-crumb { color: var(--txt-3); font-weight: 500; }
.topbar-sep { color: var(--border-strong); }
.topbar-page { color: var(--txt-1); font-weight: 600; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.chip-blue {
    background: var(--blue-soft);
    color: var(--blue);
    border: 1px solid rgba(29,78,216,.15);
}

.chip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.topbar-sep-v { width: 1px; height: 22px; background: var(--border); }

.btn-sign-out {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: var(--rd-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--txt-2);
    transition: border-color var(--t), color var(--t), background var(--t);
}

.btn-sign-out:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-soft);
}

.mob-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--rd-sm);
    color: var(--txt-2);
    transition: background var(--t);
    margin-right: 4px;
    flex-shrink: 0;
}

.mob-menu-btn:hover { background: var(--bg); }

.sidebar {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    bottom: 0;
    width: var(--side-w);
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease;
    overflow-y: auto;
}

.sidebar-nav { flex: 1; padding: 16px 10px; }

.sidebar-group { margin-bottom: 4px; }

.sidebar-group-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--txt-3);
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 0 10px;
    margin-bottom: 3px;
    margin-top: 16px;
    display: block;
}

.sidebar-group:first-child .sidebar-group-label { margin-top: 0; }

.s-link {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--rd-sm);
    color: var(--txt-2);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--t), color var(--t);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}

.s-link:hover { background: var(--bg); color: var(--txt-1); }

.s-link.active {
    background: var(--red-soft);
    color: var(--red);
    font-weight: 600;
}

.s-link.active .s-link-icon { color: var(--red); }
.s-link-icon { color: var(--txt-3); flex-shrink: 0; transition: color var(--t); }
.s-link:hover .s-link-icon { color: var(--txt-2); }

.s-link-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.s-link.is-static { cursor: default; pointer-events: none; font-size: 12px; }

.sidebar-foot {
    padding: 10px;
    border-top: 1px solid var(--border);
}

.storage-panel {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--rd);
    padding: 14px 14px 12px;
}

.storage-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--txt-3);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 10px;
}

.storage-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.storage-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--txt-1);
    letter-spacing: -.025em;
}

.storage-meta { font-size: 12px; color: var(--txt-3); font-weight: 500; }

.storage-track {
    height: 4px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.storage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red), #F87171);
    border-radius: 99px;
    transition: width .5s ease;
}

.main {
    margin-left: var(--side-w);
    margin-top: var(--nav-h);
    flex: 1;
    min-width: 0;
}

.page-hd {
    padding: 28px 28px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-hd-left {}
.page-h1 { font-size: 22px; font-weight: 700; color: var(--txt-1); letter-spacing: -.025em; margin-bottom: 3px; }
.page-sub { font-size: 13.5px; color: var(--txt-2); }

.hd-stats { display: flex; align-items: center; gap: 8px; padding-top: 4px; flex-shrink: 0; }

.stat-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rd-sm);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--txt-2);
    box-shadow: var(--sh-xs);
    white-space: nowrap;
}

.stat-tag svg { color: var(--txt-3); flex-shrink: 0; }

.content { padding: 0 28px 44px; display: flex; flex-direction: column; gap: 18px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rd-lg);
    box-shadow: var(--sh-xs);
    overflow: hidden;
}

.card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.card-hd-left {}
.card-h2 { font-size: 14.5px; font-weight: 700; color: var(--txt-1); letter-spacing: -.01em; }
.card-desc { font-size: 12.5px; color: var(--txt-2); margin-top: 1px; }

.card-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }

.drop-area {
    border: 2px dashed var(--border-strong);
    border-radius: var(--rd);
    padding: 36px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    transition: border-color var(--t-med), background var(--t-med);
    text-align: center;
}

.drop-area:hover, .drop-area.drag-on {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.drop-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.drop-ico {
    width: 52px;
    height: 52px;
    border-radius: var(--rd);
    background: var(--red-soft);
    border: 1px solid rgba(231,29,54,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    flex-shrink: 0;
    transition: background var(--t-med), border-color var(--t-med), color var(--t-med);
}

.drop-area:hover .drop-ico, .drop-area.drag-on .drop-ico {
    background: var(--blue-soft);
    border-color: rgba(29,78,216,.2);
    color: var(--blue);
}

.drop-h { font-size: 14.5px; font-weight: 600; color: var(--txt-1); }
.drop-p { font-size: 13px; color: var(--txt-2); }

.link-browse {
    color: var(--red);
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color var(--t);
}

.link-browse:hover { color: var(--red-hover); text-decoration: underline; }

.drop-hint { font-size: 11.5px; color: var(--txt-3); }

.file-pill {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    background: var(--blue-soft);
    border: 1px solid rgba(29,78,216,.18);
    border-radius: var(--rd-sm);
    animation: up .18s ease;
}

.file-pill-ico {
    width: 34px;
    height: 34px;
    border-radius: var(--rd-sm);
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    font-weight: 800;
    color: white;
    letter-spacing: .03em;
    flex-shrink: 0;
    text-transform: uppercase;
}

.file-pill-info { flex: 1; min-width: 0; }
.file-pill-name { font-size: 13px; font-weight: 500; color: var(--txt-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.file-pill-sz { font-size: 11.5px; color: var(--txt-2); }

.btn-clear-file {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--txt-3);
    flex-shrink: 0;
    transition: background var(--t), color var(--t);
}

.btn-clear-file:hover { background: var(--red-soft); color: var(--red); }

.slug-block { display: flex; flex-direction: column; gap: 6px; }

.slug-lbl {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--txt-2);
    text-transform: uppercase;
    letter-spacing: .07em;
}

.slug-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--rd);
    overflow: hidden;
    background: var(--surface);
    transition: border-color var(--t), box-shadow var(--t);
}

.slug-wrap:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(231,29,54,.1);
}

.slug-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--surface-2);
    border-right: 1.5px solid var(--border);
    max-width: 270px;
    overflow: hidden;
    flex-shrink: 0;
}

.slug-prefix-txt {
    font-size: 12.5px;
    color: var(--txt-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.slug-input {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--txt-1);
    font-size: 13.5px;
    font-family: inherit;
    min-width: 0;
}

.slug-input::placeholder { color: var(--txt-3); font-size: 13px; }

.actions-row { display: flex; align-items: center; gap: 10px; }

.btn-generate {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    background: var(--red);
    color: white;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--rd-sm);
    letter-spacing: .005em;
    transition: background var(--t), box-shadow var(--t), transform var(--t), opacity var(--t);
    box-shadow: 0 1px 3px rgba(231,29,54,.25), 0 4px 10px rgba(231,29,54,.12);
}

.btn-generate:hover:not(:disabled) {
    background: var(--red-hover);
    box-shadow: 0 1px 3px rgba(231,29,54,.35), 0 6px 14px rgba(231,29,54,.18);
    transform: translateY(-1px);
}

.btn-generate:active:not(:disabled) { transform: none; }
.btn-generate:disabled { opacity: .4; cursor: not-allowed; }

.progress-wrap { display: flex; flex-direction: column; gap: 7px; }
.progress-bar { height: 3px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-inner { height: 100%; background: linear-gradient(90deg, var(--red), var(--blue)); border-radius: 99px; width: 0%; transition: width .22s ease; }
.progress-txt { font-size: 12px; color: var(--txt-3); }

.success-box {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    background: var(--green-soft);
    border: 1px solid var(--green-border);
    border-radius: var(--rd-sm);
    animation: up .2s ease;
}

.success-ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(22,163,74,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    flex-shrink: 0;
}

.success-content { flex: 1; min-width: 0; }
.success-eyebrow { font-size: 10.5px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.success-url { display: block; font-size: 13.5px; font-weight: 500; color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--t); }
.success-url:hover { color: #1E3A8A; text-decoration: underline; }
.success-meta { font-size: 11.5px; color: var(--txt-3); margin-top: 2px; }

.btn-copy-success {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    background: white;
    border: 1px solid var(--green-border);
    border-radius: var(--rd-sm);
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    transition: background var(--t);
    font-family: inherit;
}

.btn-copy-success:hover { background: rgba(22,163,74,.08); }

.err-box {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    background: var(--red-soft);
    border: 1px solid rgba(231,29,54,.2);
    border-radius: var(--rd-sm);
    font-size: 13px;
    color: #9B1C1C;
    animation: up .18s ease;
}

.err-box svg { flex-shrink: 0; }

.tbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 11px;
    border: 1px solid var(--border-strong);
    border-radius: var(--rd-sm);
    background: var(--surface);
    transition: border-color var(--t), box-shadow var(--t);
}

.search-box:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(29,78,216,.08);
}

.search-box svg { color: var(--txt-3); flex-shrink: 0; }

.search-in {
    border: none;
    outline: none;
    background: transparent;
    color: var(--txt-1);
    font-size: 13px;
    font-family: inherit;
    width: 200px;
}

.search-in::placeholder { color: var(--txt-3); }

.rec-count { font-size: 12.5px; color: var(--txt-3); font-weight: 500; white-space: nowrap; }

.t-wrap { overflow-x: auto; }

.data-t { width: 100%; border-collapse: collapse; }

.data-t thead tr { background: var(--surface-2); }

.data-t th {
    padding: 10px 14px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--txt-3);
    text-transform: uppercase;
    letter-spacing: .08em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-t th:first-child { padding-left: 22px; }
.data-t th:last-child { padding-right: 22px; text-align: right; }

.data-t tbody tr { transition: background var(--t); }
.data-t tbody tr:hover { background: #FAFBFC; }

.data-t td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-t tbody tr:last-child td { border-bottom: none; }
.data-t td:first-child { padding-left: 22px; }
.data-t td:last-child { padding-right: 22px; }

.tag {
    display: inline-flex;
    align-items: center;
    height: 19px;
    padding: 0 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tag-img  { background: #F5F3FF; color: #5B21B6; }
.tag-html { background: #FFFBEB; color: #92400E; }
.tag-pdf  { background: var(--red-soft); color: #9B1C1C; }
.tag-file { background: var(--blue-soft); color: #1E40AF; }

.cell-name { font-size: 13px; font-weight: 500; color: var(--txt-1); }

.cell-link-row { display: flex; align-items: center; gap: 6px; }

.cell-link {
    font-size: 13px;
    color: var(--blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
    display: block;
    transition: color var(--t);
}

.cell-link:hover { color: #1E3A8A; text-decoration: underline; }

.btn-copy-cell {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    color: var(--txt-3);
    transition: background var(--t), color var(--t);
}

.btn-copy-cell:hover { background: var(--blue-soft); color: var(--blue); }

.cell-size { font-size: 13px; color: var(--txt-2); font-weight: 500; white-space: nowrap; }
.cell-date { font-size: 12px; color: var(--txt-3); white-space: nowrap; }

.live-row { display: flex; align-items: center; gap: 6px; }

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    animation: blink 2.4s ease infinite;
}

.live-lbl { font-size: 12px; font-weight: 600; color: var(--green); white-space: nowrap; }

.row-acts { display: flex; align-items: center; gap: 3px; justify-content: flex-end; }

.btn-row {
    width: 28px;
    height: 28px;
    border-radius: var(--rd-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--txt-3);
    transition: background var(--t), color var(--t);
}

.btn-row-view:hover  { background: var(--blue-soft); color: var(--blue); }
.btn-row-del:hover   { background: var(--red-soft); color: var(--red); }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 24px;
    color: var(--txt-3);
}

.empty-state svg { opacity: .2; color: var(--txt-1); }
.empty-state p { font-size: 14px; text-align: center; max-width: 280px; }

.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(3px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: in .15s ease;
}

.modal-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rd-xl);
    box-shadow: var(--sh-lg);
    padding: 32px;
    text-align: center;
    animation: pop .22s cubic-bezier(.16,1,.3,1) forwards;
}

.modal-ico {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--red-soft);
    border: 1px solid rgba(231,29,54,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    margin: 0 auto 18px;
}

.modal-h { font-size: 18px; font-weight: 700; color: var(--txt-1); margin-bottom: 8px; letter-spacing: -.015em; }
.modal-p { font-size: 13.5px; color: var(--txt-2); line-height: 1.6; margin-bottom: 26px; }

.modal-acts { display: flex; gap: 10px; justify-content: center; }

.btn-cancel {
    height: 38px;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: var(--rd-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--txt-2);
    background: var(--surface);
    font-family: inherit;
    transition: border-color var(--t), color var(--t), background var(--t);
}

.btn-cancel:hover { background: var(--bg); border-color: var(--border-strong); color: var(--txt-1); }

.btn-del {
    height: 38px;
    padding: 0 20px;
    background: var(--red);
    border-radius: var(--rd-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: white;
    font-family: inherit;
    transition: background var(--t), opacity var(--t);
    box-shadow: 0 1px 3px rgba(231,29,54,.25);
}

.btn-del:hover { background: var(--red-hover); }
.btn-del:disabled { opacity: .55; cursor: not-allowed; }

.toasts {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border-radius: var(--rd);
    font-size: 13px;
    font-weight: 500;
    pointer-events: auto;
    animation: pop .22s cubic-bezier(.16,1,.3,1) forwards;
    max-width: 300px;
    box-shadow: var(--sh);
}

.toast.out { animation: popout .18s ease forwards; }

.toast-ok  { background: #F0FDF4; border: 1px solid rgba(22,163,74,.25); color: #14532D; }
.toast-err { background: #FFF5F6; border: 1px solid rgba(231,29,54,.2); color: #9B1C1C; }
.toast-inf { background: var(--blue-soft); border: 1px solid rgba(29,78,216,.18); color: #1E3A8A; }

@media (max-width: 860px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: var(--sh-lg); }
    .main { margin-left: 0; }
    .mob-menu-btn { display: flex; }
    .topbar-center { display: none; }
    .content { padding: 0 16px 40px; }
    .page-hd { padding: 20px 16px 0; }
    .card-hd, .card-body, .tbar { padding-left: 16px; padding-right: 16px; }
    .data-t th:first-child, .data-t td:first-child { padding-left: 16px; }
    .data-t th:last-child, .data-t td:last-child { padding-right: 16px; }
    .search-in { width: 130px; }
    .cell-link { max-width: 140px; }
    .hd-stats { display: none; }
}
