/* =========================
   DASHBOARD (pages/dashboard.css)
   Goal: clean layout, equal blocks, mobile-friendly
========================= */

/* Container */
.dash-container{
  max-width:1240px;
}

/* Main grid */
.dash-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

@media (min-width: 980px){
  .dash-grid{
    grid-template-columns: minmax(0, 2.1fr) minmax(340px, 1fr);
    align-items:start;
  }
}

.dash-left,
.dash-right{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* =========================
   Common helpers
========================= */

.card-pad{
  padding:18px;
}

.muted2{
  color:var(--muted);
}

.mini-title{
  margin:0 0 8px 0;
  font-size:16px;
  font-weight:800;
}

.hr{
  height:1px;
  background:var(--border);
  margin:14px 0;
}

/* Header rows inside cards */
.dash-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.dash-head h1{
  margin:0 0 6px 0;
  font-size:22px;
  font-weight:800;
  line-height:1.25;
  letter-spacing:-.2px;
}

.dash-head p{
  margin:0;
}

/* Buttons row */
.btn-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* =========================
   Equal blocks: "tiles"
========================= */

.dash-tiles{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:14px;
}

.dash-tile{
  display:block;
  padding:14px;
  text-decoration:none;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 14px rgba(15,23,42,.04);
  transition:background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .06s ease;
}

.dash-tile:hover{
  background:#fbfdff;
  border-color:#bfcad7;
  box-shadow:0 12px 28px rgba(2, 6, 23, .10);
  transform:translateY(-1px);
}

.dash-tile__row{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.dash-tile__ico{
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid #d7e0ea;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  background:#f8fbff;
  font-size:18px;
  line-height:1;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}

.dash-tile__title{
  font-weight:800;
  line-height:1.3;
}

.dash-tile__desc{
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
  line-height:1.4;
}

/* =========================
   Files toolbar (search/filter row)
========================= */

.dash-files-toolbar .input{
  height:42px;
}

.dash-files-actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.cloud-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  padding:8px;
  border:1px solid #d7e0ea;
  border-radius:12px;
  background:#fbfdff;
  box-shadow:none;
}

.cloud-toolbar__search{
  position:relative;
  flex:1 1 320px;
  min-width:0;
}

.cloud-toolbar__search-ico{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  font-size:13px;
  opacity:.6;
  pointer-events:none;
}

.cloud-toolbar__input{
  width:100%;
  height:40px;
  padding:0 12px 0 36px;
  border:1px solid #d7e0ea;
  border-radius:999px;
  background:#fff;
  font-size:13px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
  box-sizing:border-box;
  max-width:100%;
}

.cloud-toolbar__input:focus{
  border-color:rgba(20,85,135,.35);
  box-shadow:0 0 0 4px rgba(20,85,135,.08);
}

.cloud-toolbar__filters{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  min-width:0;
}

.cloud-toolbar__select{
  height:40px;
  min-width:0;
  padding:0 12px;
  border:1px solid #d7e0ea;
  border-radius:999px;
  background:#fff;
  font-size:13px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
  box-sizing:border-box;
  max-width:100%;
}

.cloud-toolbar__select:focus{
  border-color:rgba(20,85,135,.35);
  box-shadow:0 0 0 4px rgba(20,85,135,.08);
}

.cloud-topbar--premium{
  padding:14px 0 6px;
  align-items:flex-start;
}

.cloud-topbar__left{
  min-width:0;
  flex:1;
}

.cloud-topbar__hint{
  margin-top:8px;
  font-size:13px;
  color:var(--muted);
  line-height:1.45;
}

.cloud-actions--premium{
  justify-content:flex-end;
}

.cloud-action-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  border-radius:12px;
  padding:0 14px;
}

.cloud-action-btn svg{
  width:18px;
  height:18px;
  display:block;
}

.cloud-upload-form{
  margin:0;
  display:flex;
  align-items:center;
  min-width:0;
}

/* =========================
   "Desktop" Cloud view (folders + files)
========================= */

.cloud-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:6px 0 10px;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

.cloud-breadcrumbs{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  font-size:13px;
  color:var(--muted);
}

.cloud-breadcrumbs a{
  color:var(--muted);
  text-decoration:none;
}

.cloud-breadcrumbs a:hover{
  color:var(--text);
}

.cloud-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

/* icon buttons like "new folder", "upload" */
.icon-btn{
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, transform .06s ease, box-shadow .15s ease;
}

.icon-btn:hover{
  background:#f8fbff;
  border-color:#c2cddb;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
}

.icon-btn:active{
  transform:translateY(1px);
}

.icon-btn svg{
  width:22px;
  height:22px;
  display:block;
}

.cloud-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.cloud-item{
  border:1px solid #d7e0ea;
  border-radius:14px;
  background:#fff;
  padding:12px;
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:background .15s ease, border-color .15s ease, transform .06s ease, box-shadow .15s ease;
  min-width:0;
  box-shadow:0 4px 14px rgba(15,23,42,.04);
}

.cloud-item:hover{
  background:#fbfdff;
  border-color:#bcc8d6;
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}

.cloud-item:active{
  transform:translateY(1px);
}

.cloud-ico{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid #d7e0ea;
  background:#f8fbff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  overflow:hidden;
}

.cloud-ico svg{
  width:26px;
  height:26px;
  display:block;
}

.cloud-thumb{
  width:44px;
  height:44px;
  object-fit:cover;
  border-radius:12px;
  display:block;
}

.cloud-name{
  font-weight:600;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cloud-meta{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Item footer actions (like download) */
.cloud-item__actions{
  margin-top:auto;
  display:flex;
  gap:8px;
}

.cloud-item__actions .btn-sm{
  width:100%;
  text-align:center;
}

/* =========================
   Small buttons
========================= */

.btn-sm{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--border);
  font-size:13px;
  font-weight:600;
  background:#fff;
  cursor:pointer;
}

.btn-sm:hover{
  opacity:.92;
}

/* =========================
   Profile card
========================= */

.profile-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.profile-left{
  min-width:0;
  flex:1;
}

.profile-subtitle{
  font-size:13px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.35px;
}

.profile-title{
  font-size:22px;
  font-weight:800;
  margin:4px 0 0 0;
  line-height:1.2;
}

.profile-meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:10px;
  font-size:13px;
}

.profile-meta a{
  color:var(--muted);
  text-decoration:none;
}

.profile-meta a:hover{
  color:var(--text);
}

/* Avatar */
.profile-avatar{
  flex:0 0 auto;
}

.profile-avatar__box{
  width:120px;
  height:120px;
  border-radius:24px;
  overflow:visible;
  background:#f7f9fc;
  position:relative;
}

.profile-avatar__clip{
  width:100%;
  height:100%;
  border-radius:24px;
  overflow:hidden;
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f7f9fc;
  box-shadow:0 8px 20px rgba(15,23,42,.05);
}

.profile-avatar__clip img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.profile-avatar__box img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* =========================
   Tabs (optional)
========================= */

.dash-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.dash-tab{
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  padding:8px 10px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.dash-tab.is-active{
  background:rgba(20,85,135,.12);
  border-color:rgba(20,85,135,.30);
  color:var(--brand);
}

.dash-tabpanel{
  display:none;
  margin-top:12px;
}

.dash-tabpanel.is-active{
  display:block;
}

/* =========================
   Modal (create folder)
========================= */

.modal{
  position:fixed;
  inset:0;
  background:rgba(2, 6, 23, .45);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:9999;
}

.modal.is-open{
  display:flex;
}

.modal-card{
  width:min(520px, 100%);
  background:#fff;
  border-radius:16px;
  border:1px solid var(--border);
  box-shadow:0 18px 50px rgba(2, 6, 23, .20);
  padding:16px;
  position: relative;
}

.modal-title{
  font-weight:800;
  margin:0 0 10px 0;
}

.modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:12px;
}

/* =========================
   AI METHODIST CHAT (dashboard)
========================= */

.ai-chat-form{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
  align-items:center;
}

.ai-chat-input{
  flex:1;
  min-width:220px;
  border-radius:999px;
  padding:12px 14px;
  background:rgba(15,23,42,.03);
  border:1px solid #d7e0ea;
}

.ai-chat-input:focus{
  background:#fff;
}

.ai-chat-send{
  border-radius:999px;
  padding:10px 14px;
}

.ai-chat-log{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:420px;
  height:60vh;
  max-height:700px;
  overflow-y:auto;
  padding:12px;
  padding-right:10px;
  border:1px solid #d7e0ea;
  border-radius:16px;
  background:#f8fbff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}

.ai-chat-hint{
  font-size:12px;
  margin-top:10px;
  line-height:1.4;
  color:var(--muted);
}

/* typing dots */
.ai-typing-dots{
  display:inline-flex;
  gap:4px;
  align-items:center;
  margin-left:6px;
}

.ai-typing-dots i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:rgba(0,0,0,.35);
  display:inline-block;
  animation:aiDot 1.1s infinite ease-in-out;
}

.ai-typing-dots i:nth-child(2){
  animation-delay:.15s;
}

.ai-typing-dots i:nth-child(3){
  animation-delay:.3s;
}

@keyframes aiDot{
  0%, 80%, 100%{
    transform:translateY(0);
    opacity:.35;
  }
  40%{
    transform:translateY(-3px);
    opacity:.95;
  }
}

/* ===============================
   CLOUD LIST (Desktop-like)
================================= */

.cloud-list{
  display:flex;
  flex-direction:column;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

.cloud-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 6px;
  border-bottom:1px solid var(--border);
  text-decoration:none;
  color:inherit;
  transition:background .15s ease;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

.cloud-row:last-child{
  border-bottom:none;
}

.cloud-row__ico{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  color:#111827;
}

.cloud-row__ico svg{
  width:24px;
  height:24px;
}

.cloud-row__thumb{
  width:34px;
  height:34px;
  border-radius:8px;
  object-fit:cover;
  border:1px solid var(--border);
}

.cloud-row__main{
  min-width:0;
  flex:1;
}

.cloud-row__name{
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
}

.cloud-row__meta{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
}

.cloud-row__right{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
}

.cloud-row__hint{
  font-size:12px;
  color:var(--muted);
}

.cloud-row--folder:hover{
  background:#f8fbff;
}

.pro-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  background:linear-gradient(135deg, #f6b73c, #e67e22);
  color:#fff;
  font-size:11px;
  font-weight:700;
  padding:5px 8px;
  border-radius:14px;
  box-shadow:0 4px 10px rgba(0,0,0,0.25);
  z-index:5;
}

.profile-avatar__placeholder{
  font-size:30px;
  line-height:1;
}

.dash-block-top{
  margin-top:18px;
}

.dash-btn-full{
  width:100%;
}

.plan-card{
  margin-top:12px;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}

.plan-card--pro{
  border-color:rgba(240,130,30,.30);
  box-shadow:0 10px 24px rgba(240,130,30,.08);
}

.plan-card__name{
  font-weight:700;
  margin-bottom:6px;
}

.plan-card__name--pro{
  color:#ff7a00;
}

.plan-card__text{
  font-size:14px;
  color:var(--muted);
  line-height:1.6;
}

.plan-card__meta{
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
}

.plan-card__meta--tight{
  margin-top:6px;
}

.dash-menu-card{
  padding:14px;
}

.dash-menu-list{
  display:grid;
  gap:10px;
}

.dash-tile.is-active,
.dash-tile[aria-current="page"]{
  border-color:rgba(20,85,135,.45);
  background:rgba(20,85,135,.10);
  box-shadow:0 10px 24px rgba(20,85,135,.08);
}

/* ===== Simple cloud search ===== */
.cloud-search{
  margin-bottom:10px;
}

.cloud-search__wrap{
  position:relative;
  max-width:420px;
}

.cloud-search__ico{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  font-size:13px;
  opacity:.6;
  pointer-events:none;
}

.cloud-search__input{
  width:100%;
  height:38px;
  padding:0 12px 0 34px;
  border:1px solid #d7e0ea;
  border-radius:999px;
  background:#fff;
  font-size:13px;
  outline:none;
  box-sizing:border-box;
  transition:border-color .15s ease, box-shadow .15s ease;
}

.cloud-search__input:focus{
  border-color:rgba(20,85,135,.35);
  box-shadow:0 0 0 3px rgba(20,85,135,.08);
}

/* ===== Compact cloud actions ===== */
.cloud-actions--compact{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.cloud-link-action{
  font-size:13px;
  color:var(--muted);
  text-decoration:none;
  padding:6px 2px;
}

.cloud-link-action:hover{
  color:var(--text);
}

.cloud-mini-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  height:34px;
  padding:0 10px;
  border:1px solid #d7e0ea;
  border-radius:10px;
  background:#fff;
  color:var(--text);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.cloud-mini-btn:hover{
  background:#f8fbff;
  border-color:#c2cddb;
}

.cloud-mini-btn svg{
  width:16px;
  height:16px;
  display:block;
}

.cloud-mini-btn--primary{
  background:#145587;
  color:#fff;
  border-color:#145587;
}

.cloud-mini-btn--primary:hover{
  background:#1a649b;
  border-color:#1a649b;
}

.cloud-upload-form{
  margin:0;
  display:flex;
  align-items:center;
}

/* ===== Breadcrumbs (top, premium) ===== */
.cloud-breadcrumbs--top{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  font-size:13px;
  margin-bottom:8px;
  color:var(--muted);
}

.cloud-breadcrumbs--top a{
  color:var(--muted);
  text-decoration:none;
  transition:color .15s ease;
}

.cloud-breadcrumbs--top a:hover{
  color:var(--text);
}

.cloud-breadcrumbs--top span{
  opacity:.6;
}

.cloud-breadcrumbs--top strong{
  color:var(--text);
  font-weight:600;
}

/* ===== Flat cloud actions row ===== */
.cloud-actions--flat{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:0px;
}

.cloud-actions--flat .cloud-upload-form{
  margin:0;
  display:flex;
  align-items:center;
}

.cloud-icon-btn{
  width:34px;
  height:34px;
  min-width:34px;
  flex:0 0 34px;
  border-radius:12px;
  border:1px solid #d7e0ea;
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--text);
  text-decoration:none;
  transition:background .15s ease, border-color .15s ease, box-shadow .15s ease;

}

.cloud-icon-btn:hover{
  background:#f8fbff;
  border-color:#c2cddb;
  box-shadow:0 6px 14px rgba(15,23,42,.08);
}

.cloud-icon-btn svg{
  width:16px;
  height:16px;
}

.cloud-hr{
  margin-top:10px;
  margin-bottom:4px;
}

/* ===== Cloud rows polish ===== */
.cloud-row{
  border-radius:12px;
  padding:12px 10px;
  transition:background .15s ease, box-shadow .15s ease, transform .08s ease;
}

.cloud-row:hover{
  background:#fbfdff;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
}

.cloud-row--file{
  align-items:center;
}

.cloud-row__ico{
  width:40px;
  height:40px;
}

.cloud-row__ico svg{
  width:28px;
  height:28px;
}

.cloud-row__thumb{
  width:40px;
  height:40px;
  border-radius:10px;
}

.cloud-row__name{
  font-size:15px;
  font-weight:700;
  line-height:1.25;
}

.cloud-row__meta{
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
}

.cloud-row__right{
  margin-left:12px;
}

.cloud-row__right .btn-sm{
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  background:#fff;
}

.cloud-row--folder .cloud-row__hint{
  font-size:13px;
  font-weight:600;
}

@media (max-width:700px){
  .cloud-row{
    padding:12px 8px;
  }

  .cloud-row__ico{
    width:36px;
    height:36px;
  }

  .cloud-row__ico svg{
    width:24px;
    height:24px;
  }

  .cloud-row__thumb{
    width:36px;
    height:36px;
  }

  .cloud-row__name{
    font-size:14px;
  }

  .cloud-row__meta{
    font-size:12px;
  }

  .cloud-row__right .btn-sm{
    min-height:34px;
    padding:0 12px;
    font-size:12px;
  }
}

.cloud-row__actions{
  display:flex;
  align-items:center;
  gap:6px;
}

/* ===== Cloud buttons ===== */

.cloud-row__actions{
  display:flex;
  gap:6px;
}

.cloud-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  height:32px;
  padding:0 10px;
  border-radius:8px;
  border:1px solid #d7e0ea;
  background:#fff;
  font-size:12px;
  font-weight:600;
  color:var(--text);
  text-decoration:none;
  transition:all .15s ease;
}

.cloud-btn svg{
  width:14px;
  height:14px;
}

/* Скачать */
.cloud-btn--download:hover{
  background:#f3f7fb;
  border-color:#bfcad7;
}

/* WhatsApp */
.cloud-btn--whatsapp{
  color:#25D366;
  border-color:rgba(37,211,102,.35);
}

.cloud-btn--whatsapp:hover{
  background:rgba(37,211,102,.08);
  border-color:#25D366;
}

/* Mobile */
@media (max-width:700px){
  .cloud-btn span{
    display:none; /* оставляем только иконки */
  }

  .cloud-btn{
    width:32px;
    justify-content:center;
    padding:0;
  }
}

.cloud-btn--share:hover{
  background:#f3f7fb;
  border-color:#bfcad7;
}

.cloud-btn--share{
  cursor:pointer;
  display:none;
}

/* Показываем только на мобильных */
@media (max-width:700px){
  .cloud-btn--share{
    display:inline-flex;
  }
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
}

textarea.input {
  min-height: 110px;
  resize: vertical;
}

.input-readonly {
  background: #f5f7fa;
  cursor: not-allowed;
}

.cloud-sort-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
  font-size: 15px;
}

.cloud-sort-label {
  font-weight: 700;
  color: var(--muted);
}

.cloud-sort-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
  cursor: pointer;
}

.cloud-sort-link:hover {
  color: var(--text);
}

.cloud-sort-link.is-active {
  color: rgb(20, 85, 135); /* твой фирменный синий */
  font-weight: 700;
}

.cloud-sort-sep {
  color: var(--muted);
}

.cloud-upsell {
  margin: 16px 0;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0821e 0%, #ff9f43 100%);
  color: #fff;
}

.cloud-upsell__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.cloud-upsell__content {
  min-width: 260px;
  flex: 1;
}

.cloud-upsell__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .92;
  margin-bottom: 8px;
}

.cloud-upsell__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.cloud-upsell__desc {
  font-size: 15px;
  line-height: 1.55;
  opacity: .97;
}

.cloud-upsell__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cloud-upsell__features span {
  background: rgba(255,255,255,.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.cloud-upsell__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
  margin-top: 12px;
}

.cloud-upsell__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  color: #d96d08;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cloud-upsell__btn:hover {
  background: #fff3e8;
}

.cloud-upsell__hint {
  font-size: 13px;
  line-height: 1.45;
  opacity: .92;
}

.quick-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 14px;
}

.quick-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--primary);
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.quick-link:hover {
  background: rgba(20, 85, 135, 0.08);
}

.quick-sep {
  color: var(--muted);
}

.quick-link--files {
  color: #d97706; /* оранжевый в твоем стиле */
  font-weight: 700;
}

.cloud-files-head {
  margin: 10px 0 14px 0;
}

.cloud-files-title {
  margin: 0 0 10px 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
}

.quick-menu--files {
  margin-bottom: 10px;
}

.quick-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 14px;
}

.quick-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--primary);
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.quick-link:hover {
  background: rgba(20, 85, 135, 0.08);
}

.quick-sep {
  color: var(--muted);
}

.quick-link.is-active {
  color: var(--text);
  font-weight: 800;
  background: rgba(20, 85, 135, 0.08);
  pointer-events: none;
}

/* =========================
   Academic year hero
========================= */
.academic-year-hero{
  align-items:center;
  flex-wrap:nowrap;
  min-height:190px;
  overflow:hidden;
}

.academic-year-hero__content{
  flex:1 1 auto;
  min-width:0;
}

.academic-year-hero__image{
  width:min(42%, 310px);
  max-height:190px;
  flex:0 0 auto;
  object-fit:contain;
  display:block;
}

@media (max-width:700px){
  .academic-year-hero{
    flex-direction:column;
    align-items:stretch;
  }

  .academic-year-hero__image{
    width:100%;
    max-width:360px;
    max-height:170px;
    margin:10px auto 0;
  }
}

/* The site studio needs the canvas width, not the standard dashboard columns. */
.site-editor-main.container{max-width:none;width:100%;padding:0;margin:0}
.dash-container--site.container{max-width:none;width:100%;padding:0;margin:0}
.dash-grid--site{display:block}
.dash-grid--site .dash-left{display:block;min-width:0}
.dash-grid--site #react-teacher-studio-root{width:100%;min-width:0}
