:root {
  color-scheme: dark;
  --bg: #080b11;
  --panel: #0d131c;
  --panel-2: #121a25;
  --panel-3: #192433;
  --line: #202c3a;
  --line-soft: #18222d;
  --text: #eef3f8;
  --muted: #8997a7;
  --faint: #647182;
  --accent: #ff8e5d;
  --accent-soft: rgba(255,142,93,.12);
  --good: #67c9a0;
  --bad: #fa8585;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); }
body { background: radial-gradient(ellipse at 82% 0%, rgba(41,69,82,.18), transparent 36%), var(--bg); }
button, input { font: inherit; }
a { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(145deg,#ffad72,#e95348); color: #111722; font-size: 12px; font-weight: 900; letter-spacing: -.07em; box-shadow: 0 7px 23px rgba(242,100,73,.17); }
.brand-mark.brand-image { flex: 0 0 40px; border-radius: 0; background: transparent; box-shadow: none; }
.brand-mark.brand-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 23px 15px 18px; overflow-y: auto; border-right: 1px solid var(--line-soft); background: rgba(10,14,21,.91); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand-copy { min-width: 0; }
.brand-title { font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.brand-subtitle { margin-top: 4px; font-size: 9px; font-weight: 700; letter-spacing: .1em; color: #8997a7; }
.nav-label { color: #637182; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; padding: 20px 10px 8px; }
.nav-link { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 8px; text-align: left; cursor: pointer; color: #9aa7b6; background: transparent; font-size: 11px; }
.nav-link:hover { color: white; background: rgba(255,255,255,.045); }
.nav-link.active { color: #ffe0d0; background: var(--accent-soft); }
.nav-glyph { width: 17px; text-align: center; color: #758496; font-size: 13px; }
.nav-link.active .nav-glyph { color: var(--accent); }
.sidebar-note { margin-top: auto; padding: 14px 4px 0; }
.note-card { padding: 13px; border: 1px solid #263444; border-radius: 11px; background: linear-gradient(145deg,rgba(22,34,47,.78),rgba(15,22,31,.88)); }
.note-card strong { display: block; font-size: 10px; margin-bottom: 5px; }
.note-card p { margin: 0; color: #8391a0; font-size: 9px; line-height: 1.6; }
.main { min-width: 0; }
.topbar { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 clamp(18px,4vw,52px); border-bottom: 1px solid var(--line-soft); background: rgba(8,11,17,.7); }
.crumb { color: #748295; font-size: 10px; }
.crumb strong { color: #d8e0e8; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.profile { display: flex; align-items: center; gap: 8px; padding: 0 8px; }
.avatar { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: #ffd2bc; background: #2b282b; font-size: 9px; font-weight: 800; }
.profile-name { color: #d7e0e8; font-size: 10px; font-weight: 700; }
.role-badge { border: 1px solid #463333; border-radius: 20px; padding: 5px 8px; color: #ffb89b; background: rgba(255,142,93,.07); font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid #2b3948; border-radius: 8px; background: #111923; color: #cbd4de; font-size: 10px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; transition: .17s ease; }
.btn:hover { border-color: #45566a; background: #1a2633; color: white; }
.btn.primary { border-color: transparent; color: #19120f; background: linear-gradient(135deg,#ffad72,#f17152); box-shadow: 0 5px 16px rgba(240,104,74,.14); }
.btn.primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn.danger { color: #ffc4c2; background: #25191d; border-color: #59383b; }
.btn.small { min-height: 28px; padding: 0 8px; font-size: 9px; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid #293746; border-radius: 7px; color: #9aa8b8; background: #111923; cursor: pointer; }
.icon-btn:hover { color: white; background: #1a2531; }
.content { max-width: 1420px; margin: 0 auto; padding: 32px clamp(18px,4vw,52px) 72px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.kicker { color: #d29a7c; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.page-heading h1 { margin: 8px 0 6px; font-size: clamp(24px,3vw,34px); line-height: 1.05; letter-spacing: -.05em; }
.page-heading p { max-width: 560px; margin: 0; color: #8c9aaa; font-size: 11px; line-height: 1.6; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin: 0 0 18px; }
.stat-card { padding: 16px; border: 1px solid #243140; border-radius: 11px; background: linear-gradient(145deg,rgba(18,26,37,.92),rgba(13,19,27,.88)); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; color: #8593a3; font-size: 9px; }
.stat-icon { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #2c3948; border-radius: 8px; background: #182330; color: #f6a17b; font-size: 12px; }
.stat-value { margin-top: 14px; font-size: 24px; line-height: 1; letter-spacing: -.05em; font-weight: 800; }
.stat-sub { margin-top: 7px; color: #718092; font-size: 9px; }
.section-card { border: 1px solid #243140; border-radius: 12px; background: rgba(14,20,29,.85); overflow: hidden; }
.section-card-spaced { margin-top: 15px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #222e3a; }
.section-head h2 { margin: 0; font-size: 11px; }
.section-head span { color: #778596; font-size: 9px; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; padding: 20px; margin: 16px; border: 1px dashed #3c4c5d; border-radius: 11px; background: radial-gradient(circle at 50% 0%,rgba(255,142,93,.07),transparent 52%),#0c121a; text-align: center; cursor: pointer; transition: .18s ease; }
.dropzone:hover, .dropzone.dragging { border-color: var(--accent); background-color: #141922; }
.drop-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 10px; border: 1px solid #493b38; border-radius: 12px; background: rgba(255,142,93,.08); color: #ff9c70; font-size: 16px; }
.dropzone strong { display: block; font-size: 10px; }
.dropzone span { display: block; margin-top: 5px; color: #7f8c9b; font-size: 9px; line-height: 1.5; }
.dropzone .drop-action { color: #ffc5aa; text-decoration: underline; text-underline-offset: 3px; }
.upload-queue { display: grid; gap: 6px; padding: 0 16px 15px; }
.queue-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #243140; border-radius: 7px; padding: 8px 10px; color: #9aa8b6; font-size: 9px; }
.queue-row .queue-state { color: #e0b096; }
.library-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 13px 15px; border-bottom: 1px solid #222e3a; }
.filter-tabs { display: flex; gap: 4px; }
.filter-tab { border: 1px solid transparent; border-radius: 6px; padding: 6px 8px; background: transparent; color: #8290a0; font-size: 9px; cursor: pointer; }
.filter-tab:hover { color: #e9eef3; }
.filter-tab.active { border-color: #3a4653; background: #192330; color: #f2c0a8; }
.search-field { width: min(100%,240px); margin-left: auto; border: 1px solid #2a3847; border-radius: 7px; padding: 8px 9px; background: #0a1017; color: var(--text); font-size: 9px; }
.asset-count { color: #748293; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.asset-list { overflow-x: auto; }
.asset-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.asset-table th { padding: 9px 14px; border-bottom: 1px solid #222e3a; color: #6f7c8d; text-align: left; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.asset-table td { padding: 11px 14px; border-bottom: 1px solid #1c2733; color: #9aa8b7; font-size: 9px; }
.asset-table tr:last-child td { border-bottom: 0; }
.file-name { display: flex; align-items: center; gap: 9px; min-width: 180px; }
.file-icon { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #293747; border-radius: 8px; color: #f2a17b; background: #17212d; font-size: 12px; }
.file-name strong { display: block; max-width: 300px; color: #dce4eb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.file-name small { display: block; margin-top: 4px; color: #6e7c8d; font-size: 8px; }
.file-type { display: inline-block; padding: 4px 6px; border: 1px solid #2b3948; border-radius: 5px; color: #99a8b8; font: 8px ui-monospace, SFMono-Regular, Consolas, monospace; }
.asset-actions { display: flex; gap: 5px; }
.empty-state { padding: 42px 18px; text-align: center; color: #a0adba; }
.empty-state .empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 12px; border: 1px solid #303e4d; border-radius: 13px; color: #f19c76; background: #17212d; font-size: 16px; }
.empty-state h3 { margin: 0 0 6px; color: #e5ebf1; font-size: 12px; }
.empty-state p { margin: 0 auto; max-width: 410px; color: #7d8a9a; font-size: 9px; line-height: 1.7; }
.access-box { display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center; margin-top: 15px; padding: 13px; border: 1px solid #304151; border-radius: 10px; background: rgba(18,28,39,.75); }
.access-inner { padding: 16px; }
.access-box.no-top-margin { margin-top: 0; }
.access-setup { margin-top: 13px; }
.access-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #f2a17b; background: #202d3a; }
.access-copy strong { display: block; color: #dbe4ed; font-size: 9px; }
.access-copy span { display: block; color: #7d8b9b; font-size: 8px; line-height: 1.5; margin-top: 4px; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(26px,6vw,76px); border-right: 1px solid var(--line-soft); background: radial-gradient(circle at 80% 22%,rgba(255,142,93,.15),transparent 23%),linear-gradient(90deg,rgba(8,12,19,.96),rgba(8,12,19,.55) 64%,rgba(8,12,19,.24)),url("https://assets.codezerolc.xyz/czlc/brand/community-since-2019.webp") center / cover,#0b1017; }
.login-story::after { content: ""; position: absolute; width: 460px; height: 460px; right: -170px; bottom: -245px; border: 1px solid rgba(255,142,93,.2); border-radius: 50%; box-shadow: 0 0 0 40px rgba(255,142,93,.025),0 0 0 80px rgba(255,142,93,.018); }
.login-heading { position: relative; z-index: 1; max-width: 550px; margin: auto 0; }
.login-heading h1 { margin: 19px 0 16px; font-size: clamp(38px,6vw,68px); letter-spacing: -.065em; line-height: 1.01; }
.login-heading p { max-width: 430px; margin: 0; color: #9aa7b5; font-size: 13px; line-height: 1.8; }
.login-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; color: #9caab8; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.login-footer-art { width: min(240px,40vw); height: 38px; border-radius: 5px; object-fit: cover; opacity: .87; }
.login-panel { display: grid; place-items: center; padding: 30px; }
.login-card { width: min(100%,370px); padding: 25px; border: 1px solid #293746; border-radius: 14px; background: #101721; box-shadow: 0 20px 70px rgba(0,0,0,.25); }
.login-card h2 { margin: 0 0 7px; font-size: 15px; }
.login-card p { margin: 0; color: #8997a7; font-size: 10px; line-height: 1.7; }
.login-card .btn { width: 100%; margin-top: 18px; min-height: 40px; }
.setup-note { margin-top: 16px; padding: 11px; border: 1px solid #473633; border-radius: 8px; background: rgba(255,142,93,.07); color: #e8bba4; font-size: 9px; line-height: 1.65; }
.setup-note strong { color: #ffd1bb; }
.notice-error { margin-top: 12px; padding: 9px 10px; border: 1px solid #633d41; border-radius: 8px; background: rgba(247,113,113,.08); color: #ffc3c3; font-size: 9px; }
.app-error { margin: 14px clamp(18px,4vw,52px) 0; }
.toast { position: fixed; z-index: 50; bottom: 20px; left: 50%; transform: translate(-50%,12px); opacity: 0; pointer-events: none; padding: 10px 14px; border: 1px solid #354656; border-radius: 8px; background: #16212c; color: #e1e9f0; font-size: 9px; transition: .18s; box-shadow: 0 10px 35px rgba(0,0,0,.4); }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.loading-row { padding: 22px; color: #7c8a9a; font-size: 10px; }
.mobile-menu { display: none; }
@media (max-width:850px) {
  .app-shell { grid-template-columns: 215px minmax(0,1fr); }
  .stats { gap: 7px; }
  .stat-card { padding: 12px; }
  .stat-value { font-size: 20px; }
}
@media (max-width:650px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 30; left: 0; top: 0; width: min(83vw,280px); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 22px 0 60px rgba(0,0,0,.4); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-grid; }
  .topbar { min-height: 58px; padding: 0 13px; }
  .mobile-menu { flex: 0 0 31px; width: 31px; height: 31px; }
  .app-error { margin: 12px 13px 0; }
  .profile-name { display: none; }
  .role-badge { display: none; }
  .topbar-actions .btn { min-height: 30px; padding: 0 8px; font-size: 9px; }
  .content { padding: 23px 13px 55px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .stat-value { margin-top: 9px; }
  .login-layout { display: block; }
  .login-story { min-height: 42vh; padding: 26px 22px; border: 0; border-bottom: 1px solid var(--line-soft); }
  .login-heading h1 { font-size: 41px; }
  .login-heading p { font-size: 11px; }
  .login-footer-art { width: 175px; height: 30px; }
  .login-panel { padding: 20px 15px; }
  .access-box { grid-template-columns: 32px 1fr; }
  .access-box .role-badge { display: inline-flex; grid-column: 2; width: max-content; }
}

