/* CloudDesk */
:root {
  --bg: #f4f6f9;
  --surface: #fff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --primary-muted: #dbeafe;
  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --sidebar-w: 260px;
  --header-h: 64px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(15,23,42,.06);
  --shadow-md: 0 4px 12px rgba(15,23,42,.08);
  --font: "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:15px}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.5;min-height:100vh}
a{color:inherit;text-decoration:none}
.app{display:flex;min-height:100vh}
.sidebar{width:var(--sidebar-w);background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:100;transition:transform .25s}
.sidebar__logo{display:flex;align-items:center;gap:12px;padding:20px 22px;border-bottom:1px solid var(--border-light)}
.sidebar__logo-icon{width:36px;height:36px;background:linear-gradient(135deg,var(--primary),#3b82f6);border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:14px}
.sidebar__logo-text{font-weight:700;font-size:1.05rem;letter-spacing:-.02em}
.sidebar__logo-text span{display:block;font-size:.7rem;font-weight:500;color:var(--text-muted)}
.sidebar__nav{flex:1;padding:16px 12px;overflow-y:auto}
.nav-section{margin-bottom:24px}
.nav-section__title{font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-light);padding:0 12px 8px}
.nav-link{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--radius-sm);color:var(--text-muted);font-weight:500;font-size:.93rem;transition:background .15s,color .15s}
.nav-link:hover{background:var(--border-light);color:var(--text)}
.nav-link.active{background:var(--primary-soft);color:var(--primary)}
.nav-link svg{width:20px;height:20px;flex-shrink:0}
.sidebar__storage{margin:0 16px 20px;padding:16px;background:var(--bg);border-radius:var(--radius);border:1px solid var(--border-light)}
.sidebar__storage-label{display:flex;justify-content:space-between;font-size:.8rem;margin-bottom:8px}
.sidebar__storage-bar{height:6px;background:var(--border);border-radius:99px;overflow:hidden;margin-bottom:6px}
.sidebar__storage-bar div{height:100%;width:68%;background:linear-gradient(90deg,var(--primary),#60a5fa);border-radius:99px}
.sidebar__storage-hint{font-size:.72rem;color:var(--text-light)}
.main{flex:1;margin-left:var(--sidebar-w);display:flex;flex-direction:column;min-width:0}
.header{height:var(--header-h);background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:16px;padding:0 28px;position:sticky;top:0;z-index:50}
.header__menu-btn{display:none;background:none;border:none;padding:8px;cursor:pointer;color:var(--text-muted)}
.header__search{flex:1;max-width:420px;position:relative}
.header__search input{width:100%;padding:10px 14px 10px 40px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);font:inherit;font-size:.9rem}
.header__search input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-muted);background:var(--surface)}
.header__search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--text-light)}
.header__actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.btn{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;font-size:.88rem;font-weight:600;font-family:inherit;border-radius:var(--radius-sm);border:none;cursor:pointer}
.btn--primary{background:var(--primary);color:#fff}
.btn--primary:hover{background:var(--primary-hover)}
.btn--ghost{background:transparent;color:var(--text-muted);border:1px solid var(--border)}
.btn--sm{padding:6px 12px;font-size:.82rem}
.icon-btn{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:var(--radius-sm);color:var(--text-muted);cursor:pointer;position:relative}
.icon-btn:hover{background:var(--bg)}
.icon-btn svg{width:20px;height:20px}
.icon-btn .badge{position:absolute;top:6px;right:6px;width:8px;height:8px;background:var(--danger);border-radius:50%;border:2px solid var(--surface)}
.user-menu{display:flex;align-items:center;gap:10px;padding:4px;border-radius:var(--radius)}
.user-menu__avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#6366f1,var(--primary));color:#fff;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:600}
.content{padding:28px;flex:1}
.page-title{margin-bottom:24px}
.page-title h1{font-size:1.5rem;font-weight:700;letter-spacing:-.02em;margin-bottom:4px}
.page-title p{color:var(--text-muted);font-size:.92rem}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}
.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.stat-card__top{display:flex;justify-content:space-between;margin-bottom:12px}
.stat-card__icon{width:44px;height:44px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center}
.stat-card__icon svg{width:22px;height:22px}
.stat-card__icon--blue{background:var(--primary-soft);color:var(--primary)}
.stat-card__icon--green{background:var(--success-soft);color:var(--success)}
.stat-card__icon--amber{background:var(--warning-soft);color:var(--warning)}
.stat-card__icon--gray{background:var(--bg);color:var(--text-muted)}
.stat-card__change{font-size:.75rem;font-weight:600;padding:2px 8px;border-radius:99px}
.stat-card__change--up{background:var(--success-soft);color:var(--success)}
.stat-card__value{font-size:1.65rem;font-weight:700;letter-spacing:-.03em}
.stat-card__label{font-size:.85rem;color:var(--text-muted)}
.grid-2{display:grid;grid-template-columns:1fr 380px;gap:24px;align-items:start}
.grid-2--equal{grid-template-columns:1fr 1fr}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.card__header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--border-light)}
.card__header h2{font-size:1rem;font-weight:600}
.card__body--padded{padding:20px}
.breadcrumb{display:flex;gap:6px;font-size:.85rem;color:var(--text-muted);margin-bottom:16px;flex-wrap:wrap}
.breadcrumb a:hover{color:var(--primary)}
.breadcrumb strong{color:var(--text);font-weight:500}
.file-table{width:100%;border-collapse:collapse}
.file-table th{text-align:left;padding:12px 20px;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-light);background:var(--bg);border-bottom:1px solid var(--border)}
.file-table td{padding:14px 20px;border-bottom:1px solid var(--border-light);font-size:.9rem}
.file-table tbody tr:hover{background:#fafbfc}
.file-item{display:flex;align-items:center;gap:12px}
.file-icon{width:36px;height:36px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;font-size:.65rem;font-weight:700;text-transform:uppercase}
.file-icon--folder{background:var(--primary-soft);color:var(--primary)}
.file-icon--pdf{background:#fef2f2;color:#dc2626}
.file-icon--doc{background:#eff6ff;color:#2563eb}
.file-icon--xls{background:#ecfdf5;color:#059669}
.file-icon--ppt{background:#fff7ed;color:#ea580c}
.file-icon--img{background:#f5f3ff;color:#7c3aed}
.file-item__name{font-weight:500}
.file-item__meta{font-size:.78rem;color:var(--text-light)}
.tag{display:inline-block;padding:3px 10px;font-size:.75rem;font-weight:500;border-radius:99px;background:var(--bg);color:var(--text-muted)}
.tag--blue{background:var(--primary-soft);color:var(--primary)}
.tag--green{background:var(--success-soft);color:var(--success)}
.activity-list{list-style:none}
.activity-item{display:flex;gap:14px;padding:16px 20px;border-bottom:1px solid var(--border-light)}
.activity-item:last-child{border-bottom:none}
.activity-item__avatar{width:36px;height:36px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;color:#fff}
.activity-item__avatar--1{background:#6366f1}
.activity-item__avatar--2{background:#0ea5e9}
.activity-item__avatar--3{background:#10b981}
.activity-item__avatar--4{background:#f59e0b}
.activity-item__avatar--5{background:#8b5cf6}
.activity-item__text{font-size:.88rem;margin-bottom:4px}
.activity-item__time{font-size:.78rem;color:var(--text-light)}
.upload-list{list-style:none}
.upload-item{display:flex;align-items:center;gap:14px;padding:14px 20px;border-bottom:1px solid var(--border-light)}
.upload-item__progress{flex:1;min-width:0}
.upload-item__progress strong{display:block;font-size:.88rem;margin-bottom:6px}
.progress-bar{height:4px;background:var(--border);border-radius:99px;overflow:hidden}
.progress-bar div{height:100%;background:var(--primary);border-radius:99px}
.upload-item__status{font-size:.78rem;color:var(--text-light);flex-shrink:0}
.folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;padding:20px}
.folder-tile{padding:16px;border:1px solid var(--border);border-radius:var(--radius);text-align:center}
.folder-tile:hover{border-color:var(--primary-muted);box-shadow:var(--shadow)}
.folder-tile__icon{width:48px;height:48px;margin:0 auto 10px;background:var(--primary-soft);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;color:var(--primary)}
.folder-tile__name{font-size:.85rem;font-weight:500}
.folder-tile__count{font-size:.75rem;color:var(--text-light)}
.tabs{display:flex;gap:4px;padding:0 20px;border-bottom:1px solid var(--border);background:var(--bg)}
.tab{padding:12px 16px;font-size:.88rem;font-weight:500;color:var(--text-muted);border-bottom:2px solid transparent;margin-bottom:-1px}
.tab.active{color:var(--primary);border-bottom-color:var(--primary);background:var(--surface)}
.settings-layout{display:grid;grid-template-columns:220px 1fr;gap:24px}
.settings-nav{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:8px}
.settings-nav a{display:block;padding:10px 14px;border-radius:var(--radius-sm);font-size:.9rem;font-weight:500;color:var(--text-muted)}
.settings-nav a.active{background:var(--primary-soft);color:var(--primary)}
.form-group{margin-bottom:20px}
.form-group label{display:block;font-size:.85rem;font-weight:600;margin-bottom:6px}
.form-group input,.form-group select,.form-group textarea{width:100%;max-width:400px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);font:inherit;font-size:.9rem}
.form-hint{font-size:.8rem;color:var(--text-light);margin-top:4px}
.toggle-row{display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--border-light)}
.toggle{width:44px;height:24px;background:var(--border);border-radius:99px;position:relative}
.toggle.on{background:var(--primary)}
.toggle::after{content:"";position:absolute;width:18px;height:18px;background:#fff;border-radius:50%;top:3px;left:3px;box-shadow:0 1px 2px rgba(0,0,0,.15)}
.toggle.on::after{transform:translateX(20px)}
.support-hero{text-align:center;padding:40px 20px;background:linear-gradient(180deg,var(--primary-soft),var(--surface));border-bottom:1px solid var(--border-light)}
.faq-item{border:1px solid var(--border);border-radius:var(--radius-sm);margin-bottom:10px}
.faq-item summary{padding:14px 18px;font-weight:600;cursor:pointer;list-style:none}
.faq-item p{padding:0 18px 14px;font-size:.88rem;color:var(--text-muted)}
.contact-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:20px}
.contact-card{padding:20px;border:1px solid var(--border);border-radius:var(--radius);text-align:center}
.contact-card__icon{width:48px;height:48px;margin:0 auto 12px;background:var(--primary-soft);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--primary)}
.timeline{padding:20px}
.timeline-item{display:flex;gap:16px;padding-bottom:24px;position:relative}
.timeline-item:not(:last-child)::before{content:"";position:absolute;left:15px;top:32px;bottom:0;width:2px;background:var(--border)}
.timeline-item__dot{width:32px;height:32px;border-radius:50%;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0;z-index:1}
.timeline-item__date{font-size:.78rem;color:var(--text-light);flex-shrink:0}
.shared-row{display:grid;grid-template-columns:2fr 1fr 1fr 100px;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border-light);font-size:.9rem}
.shared-row--head{background:var(--bg);font-size:.72rem;font-weight:600;text-transform:uppercase;color:var(--text-light)}
.avatar-group{display:flex}
.avatar-group span{width:28px;height:28px;border-radius:50%;border:2px solid var(--surface);margin-left:-8px;display:flex;align-items:center;justify-content:center;font-size:.65rem;font-weight:600;color:#fff}
.avatar-group span:first-child{margin-left:0}
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.4);z-index:90}
.sidebar-overlay.open{display:block}
@media(max-width:1200px){.stats-grid{grid-template-columns:repeat(2,1fr)}.grid-2,.grid-2--equal{grid-template-columns:1fr}}
@media(max-width:768px){.sidebar{transform:translateX(-100%)}.sidebar.open{transform:translateX(0)}.main{margin-left:0}.header__menu-btn{display:flex}.header{padding:0 16px}.header__search{display:none}.content{padding:16px}.stats-grid{grid-template-columns:1fr}.settings-layout{grid-template-columns:1fr}.contact-cards{grid-template-columns:1fr}.shared-row{grid-template-columns:1fr}.shared-row--head{display:none}}


/* === MediaOps (demo SaaS) additions === */
.kpi-spark {
  margin-top: 10px;
  height: 30px;
  background: linear-gradient(90deg, rgba(37,99,235,.12), rgba(37,99,235,0));
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.kpi-spark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 60%, rgba(37,99,235,.35), transparent 55%),
              radial-gradient(circle at 60% 40%, rgba(96,165,250,.35), transparent 55%),
              radial-gradient(circle at 90% 70%, rgba(37,99,235,.25), transparent 55%);
}

.split-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 1200px) {
  .split-3 { grid-template-columns: 1fr; }
}

.mini-chart {
  padding: 20px;
}

.chart {
  height: 180px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.chart__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(226,232,240,.8) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226,232,240,.8) 1px, transparent 1px);
  background-size: 40px 36px;
  opacity: .55;
}

.chart__line {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 65%, rgba(37,99,235,.12), transparent 45%),
    radial-gradient(circle at 60% 40%, rgba(37,99,235,.10), transparent 40%),
    radial-gradient(circle at 85% 55%, rgba(37,99,235,.08), transparent 38%);
}

.chart__poly {
  position: absolute;
  inset: 0;
  opacity: .95;
}

.legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: .85rem;
}

.legend__item { display: inline-flex; align-items: center; gap: 8px; }
.legend__dot { width: 10px; height: 10px; border-radius: 99px; background: var(--primary); }
.legend__dot.alt { background: #60a5fa; }

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--surface);
  font-size: .82rem;
  font-weight: 600;
}

.pill svg { width: 16px; height: 16px; }

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-row__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,.9), rgba(99,102,241,.9));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
}

.user-row__meta {
  display: grid;
  gap: 2px;
}

.user-row__meta strong { font-size: .9rem; }
.user-row__meta span { font-size: .78rem; color: var(--text-light); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .82rem;
  color: var(--text-muted);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--border);
}

.status--ok { color: var(--success); }
.status--ok::before { background: var(--success); }
.status--warn { color: var(--warning); }
.status--warn::before { background: var(--warning); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px;
}

@media (max-width: 1200px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .media-grid { grid-template-columns: 1fr; }
}

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

.media-card__thumb {
  height: 120px;
  background:
    linear-gradient(135deg, rgba(37,99,235,.18), rgba(96,165,250,.08)),
    radial-gradient(circle at 30% 40%, rgba(37,99,235,.25), transparent 60%),
    radial-gradient(circle at 80% 65%, rgba(96,165,250,.25), transparent 60%);
  position: relative;
}

.media-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, transparent, rgba(15,23,42,.12));
}

.media-card__body { padding: 14px 14px 16px; }
.media-card__title { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.media-card__meta { font-size: .8rem; color: var(--text-muted); display:flex; justify-content: space-between; }

.notice {
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--primary-soft);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .88rem;
}


/* Site footer */
.site-footer {
  margin-top: 28px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: .82rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  justify-content: space-between;
}
.site-footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__links a:hover { color: var(--primary); }
.site-footer__updated { color: var(--text-light); }

.login-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.login-card { width: 100%; max-width: 420px; }

.legal h2 { font-size: 1.25rem; margin-bottom: 12px; }
.legal h3 { font-size: 1rem; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--text-muted); font-size: .92rem; line-height: 1.65; }
.legal ul { padding-left: 20px; margin: 8px 0; }


/* Status page */
.status-hero { margin-bottom: 24px; }
.status-hero__badge {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 8px;
}
.status-hero__badge--ok { background: var(--success-soft); color: var(--success); }
.status-hero__meta { color: var(--text-muted); font-size: .9rem; }
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .status-grid { grid-template-columns: 1fr; } }
.status-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.status-item h3 { font-size: .95rem; margin-bottom: 4px; }
.status-item p { font-weight: 600; margin-bottom: 6px; }
.status-item span { font-size: .8rem; color: var(--text-light); }
.status-item--ok { border-left: 4px solid var(--success); }
.status-item--warn { border-left: 4px solid var(--warning); }
.status-item--warn p { color: var(--warning); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.pricing-card--featured {
  border-color: var(--primary-muted);
  box-shadow: var(--shadow-md);
}
.pricing-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
}
.pricing-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.pricing-card__price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.pricing-card__price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 0 0 20px; padding: 0; }
.pricing-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: .9rem;
  color: var(--text-muted);
}
.pricing-card li:last-child { border-bottom: none; }

/* API docs */
.code-inline {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .88rem;
  border: 1px solid var(--border);
}
.code-block {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: .85rem;
  line-height: 1.5;
}
.api-endpoint {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.api-endpoint:last-child { border-bottom: none; }
.api-endpoint code { font-weight: 600; margin: 0 8px; }
.api-endpoint p { margin-top: 6px; font-size: .88rem; color: var(--text-muted); }

/* Changelog */
.changelog-item { padding: 20px 0; border-bottom: 1px solid var(--border-light); }
.changelog-item:last-child { border-bottom: none; }
.changelog-item h3 { font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.changelog-item ul { padding-left: 20px; color: var(--text-muted); font-size: .9rem; line-height: 1.7; }


/* Dark theme */
html[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --border: #334155;
  --border-light: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --primary-soft: rgba(37, 99, 235, 0.2);
  --primary-muted: #1e3a5f;
  --success-soft: rgba(5, 150, 105, 0.2);
  --warning-soft: rgba(217, 119, 6, 0.2);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .file-table th { background: #0f172a; }
html[data-theme="dark"] .file-table tbody tr:hover { background: #334155; }
html[data-theme="dark"] .chart {
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border-color: var(--border);
}
html[data-theme="dark"] .code-block { background: #020617; }

.theme-preview {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.theme-preview__light,
.theme-preview__dark {
  flex: 1;
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid var(--border);
}
.theme-preview__light { background: #f4f6f9; color: #1e293b; }
.theme-preview__dark { background: #0f172a; color: #f1f5f9; }
html[data-theme="dark"] .theme-preview__light { opacity: .5; }
html[data-theme="dark"] .theme-preview__dark {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
html:not([data-theme="dark"]) .theme-preview__light {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 16px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.12);
}
html[data-theme="dark"] .cookie-banner {
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-banner p {
  font-size: .9rem;
  color: var(--text-muted);
  max-width: 640px;
}
.cookie-banner a { color: var(--primary); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Trust / Security page */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.trust-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.55; }
.trust-list {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.8;
}
.trust-list li { margin-bottom: 4px; }

#themeToggle { cursor: pointer; border: none; }
#themeToggle:focus { outline: 2px solid var(--primary-muted); outline-offset: 2px; }


/* === Кликабельность и UX === */
a { transition: color .15s, opacity .15s; }
.btn, .icon-btn, .nav-link, .tab, .toggle, .pill { transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:active, .icon-btn:active { transform: scale(0.98); }

.sidebar__logo {
  text-decoration: none;
  color: inherit;
  transition: opacity .15s;
}
.sidebar__logo:hover { opacity: .92; }

.sidebar__storage {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background .15s;
  border-radius: var(--radius);
}
.sidebar__storage:hover { background: var(--border-light); }

.stat-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.stat-card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-muted);
}
.stat-card__chev {
  width: 18px;
  height: 18px;
  margin-top: 10px;
  color: var(--text-light);
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
.stat-card--link:hover .stat-card__chev {
  opacity: 1;
  transform: translateX(4px);
  color: var(--primary);
}

.card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s, transform .15s;
}
.card--link:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-muted);
}

.clickable-row {
  cursor: pointer;
  transition: background .12s;
}
.clickable-row:hover { background: var(--primary-soft) !important; }
.clickable-row:focus {
  outline: 2px solid var(--primary-muted);
  outline-offset: -2px;
}

.folder-tile--link,
.media-card--link,
.pricing-card--link,
.status-item--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.folder-tile--link:hover,
.media-card--link:hover,
.pricing-card--link:hover,
.status-item--link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-muted);
}

.upload-item--link,
.activity-item--link,
.api-endpoint--link {
  display: flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background .12s;
}
.upload-item--link:hover,
.activity-item--link:hover,
.api-endpoint--link:hover {
  background: var(--primary-soft);
}

.tabs--interactive .tab {
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
}
.tabs--interactive .tab:hover {
  color: var(--text);
  background: rgba(37, 99, 235, 0.06);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.quick-action svg { width: 24px; height: 24px; color: var(--primary); }
.quick-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-muted);
  background: var(--primary-soft);
}

.user-menu {
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.user-menu:hover { background: var(--bg); }

.icon-btn { text-decoration: none; }

.mo-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 300;
  box-shadow: var(--shadow-md);
}
.mo-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
html[data-theme="dark"] .mo-toast {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

#themeQuick { font-size: 1.1rem; line-height: 1; }

.nav-link { cursor: pointer; }
.nav-link:hover { color: var(--text); }

.site-footer__links a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-footer__links a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary-muted);
}

.settings-nav a { cursor: pointer; }
.settings-nav a:hover { background: var(--bg); color: var(--text); }
