.actions {
    display: flex;
    flex-direction: column;   /* Кнопки вертикально */
    align-items: stretch;     /* Все одинаковой ширины */
    gap: 8px;                 /* Отступ между кнопками */
    width: 200px;             /* при желании фиксированная ширина блока */
}

.actions .btn {
    display: block;
    text-align: center;
    padding: 10px 0;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

/* Цвета */
.btn.green { background: #4CAF50; }
.btn.blue  { background: #2196F3; }
.btn.red   { background: #F44336; }

/* ====== БАЗА ====== */
* {box-sizing: border-box;}
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, sans-serif;
    background: #f3f4f6;
    color: #333;
}
a {text-decoration: none; color: inherit;}

/* ====== HEADER ====== */
header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
header .container {
    max-width: 1200px; margin: 0 auto;
    padding: 14px 20px;
    display: flex; justify-content: space-between; align-items: center;
}
header .logo {
    font-size: 1.4rem; font-weight: bold; color: #4f46e5;
}
header .user-info {
    font-size: 0.95rem;
}
header .user-info .logout {
    color: #ef4444;
}

/* ====== NAV ====== */
nav {
    background: #e5e7eb;
}
.nav-links {
    max-width: 1200px; margin: 0 auto; padding: 10px 20px;
    display: flex; flex-wrap: wrap; gap: 10px;
}
.nav-links a {
    padding: 8px 14px;
    background: #fff;
    border-radius: 6px;
    font-weight: 500;
    color: #374151;
    transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {background: #f3f4f6;}
.nav-links a.active {background: #4f46e5; color: #fff;}

/* ====== MAIN ====== */
.container {max-width: 1200px; margin: 20px auto; padding: 0 20px;}

.quota {margin-bottom: 30px;}
.quota-text {font-size: 0.95rem; color: #555; margin-bottom: 6px;}
.quota-bar {
    width: 100%; height: 12px;
    background: #d1d5db;
    border-radius: 6px; overflow: hidden;
}
.quota-fill {
    height: 100%; background: #4f46e5;
}

/* ====== CARD ====== */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.card.empty {text-align: center;}
.card.empty .btn {margin-top: 10px;}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.site h3 {margin: 0 0 5px; font-size: 1.1rem;}
.site .sub {color: #6b7280; font-size: 0.9rem; margin-bottom: 4px;}
.site .date {color: #9ca3af; font-size: 0.8rem; margin-bottom: 12px;}

/* ====== BUTTONS ====== */
.btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background: #4f46e5;
    transition: background 0.2s;
}
.btn:hover {background: #4338ca;}
.btn.green {background:#16a34a;} .btn.green:hover{background:#15803d;}
.btn.blue {background:#2563eb;} .btn.blue:hover{background:#1d4ed8;}
.btn.red {background:#dc2626;} .btn.red:hover{background:#b91c1c;}
