:root {
    --bg-main: #0f172a;
    --bg-soft: #111827;
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-bg-strong: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-soft: rgba(148, 163, 184, 0.28);
    --accent: #f97316;
    --accent-dark: #ea580c;
    --accent-soft: #ffedd5;
    --green: #16a34a;
    --blue: #2563eb;
    --danger: #dc2626;
    --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.28);
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-main);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.34), transparent 34%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.30), transparent 32%),
        linear-gradient(135deg, #020617 0%, #0f172a 48%, #111827 100%);
    padding: 32px 18px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.page {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
}

.topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
    margin-bottom: 22px;
    color: #ffffff;
}

.topbar h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 850;
}

.week-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0 0;
    color: rgba(255,255,255,0.78);
    font-size: 16px;
}

.week-label::before {
    content: "📅";
}

.week-nav {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.week-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    backdrop-filter: blur(14px);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.week-nav a:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.28);
}

.toolbar {
    position: sticky;
    top: 14px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

button {
    appearance: none;
    border: 0;
    cursor: pointer;
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 750;
    font-size: 14px;
    font-family: inherit;
    box-shadow: 0 10px 22px rgba(0,0,0,0.16);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.20);
}

button:active {
    transform: translateY(0);
}

.toolbar button:first-child {
    background: linear-gradient(135deg, var(--accent), #fb7185);
    color: #ffffff;
}

#saveStatus {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-left: auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.84);
    font-size: 13px;
    font-weight: 650;
}

#saveStatus::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

.menu-sheet {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.day-block {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.day-block:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.32);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.18);
}

.day-block::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -50px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(37, 99, 235, 0.10));
}

.day-block h2 {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px 0;
    font-size: 25px;
    letter-spacing: -0.03em;
    font-weight: 850;
}

.day-block h2::before {
    content: "";
    width: 12px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), #fb7185);
}

.meal-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius-md);
    background: rgba(248, 250, 252, 0.82);
}

.meal-row:last-child {
    margin-bottom: 0;
}

.meal-row label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: var(--accent-soft);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

textarea {
    width: 100%;
    min-height: 48px;
    resize: vertical;
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(255,255,255,0.82);
    color: var(--text-main);
    font-size: 17px;
    line-height: 1.45;
    padding: 12px 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea::placeholder {
    color: #94a3b8;
}

textarea:focus {
    background: #ffffff;
    border-color: rgba(249, 115, 22, 0.72);
    box-shadow:
        0 0 0 4px rgba(249, 115, 22, 0.14),
        0 12px 25px rgba(15, 23, 42, 0.08);
}

.suggestions {
    position: absolute;
    overflow: hidden;
    z-index: 1000;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(18px);
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
}

.suggestion-item:hover {
    background: #fff7ed;
    color: #9a3412;
}

.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
}

.modal-content {
    width: min(760px, 94vw);
    max-height: 82vh;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 30px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow-soft);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.modal-header h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.modal-header button {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
}

#ideasContent {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.idea-chip {
    margin: 0;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.idea-chip:hover {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

/* Varianti colore leggere per le card dei giorni */
.day-block:nth-child(1) h2::before { background: linear-gradient(180deg, #f97316, #fb7185); }
.day-block:nth-child(2) h2::before { background: linear-gradient(180deg, #2563eb, #38bdf8); }
.day-block:nth-child(3) h2::before { background: linear-gradient(180deg, #16a34a, #86efac); }
.day-block:nth-child(4) h2::before { background: linear-gradient(180deg, #7c3aed, #c084fc); }
.day-block:nth-child(5) h2::before { background: linear-gradient(180deg, #dc2626, #fb7185); }
.day-block:nth-child(6) h2::before { background: linear-gradient(180deg, #ca8a04, #fde047); }
.day-block:nth-child(7) h2::before { background: linear-gradient(180deg, #0891b2, #67e8f9); }

@media screen and (max-width: 900px) {
    body {
        padding: 20px 12px;
    }

    .topbar {
        grid-template-columns: 1fr;
    }

    .week-nav {
        justify-content: flex-start;
    }

    .menu-sheet {
        grid-template-columns: 1fr;
    }

    .toolbar {
        top: 8px;
    }

    #saveStatus {
        margin-left: 0;
    }
}

@media screen and (max-width: 560px) {
    body {
        padding: 14px 10px;
    }

    .topbar h1 {
        font-size: 42px;
    }

    .week-nav {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .week-nav a {
        width: 100%;
    }

    .toolbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    #saveStatus {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .day-block {
        padding: 17px;
        border-radius: 22px;
    }

    .meal-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .meal-row label {
        justify-content: flex-start;
        width: fit-content;
    }

    textarea {
        font-size: 16px;
    }
}

@media print {
    body {
        background: #ffffff;
        padding: 0;
    }

    body::before,
    .toolbar,
    .week-nav,
    .suggestions,
    .modal {
        display: none !important;
    }

    .page {
        max-width: none;
        margin: 0;
        padding: 18px;
    }

    .topbar {
        color: #000000;
        margin-bottom: 14px;
    }

    .topbar h1 {
        font-size: 34px;
        letter-spacing: normal;
    }

    .week-label {
        color: #444444;
    }

    .menu-sheet {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .day-block {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dddddd;
        background: #ffffff;
        padding: 14px;
    }

    .day-block::after {
        display: none;
    }

    .meal-row {
        border: none;
        background: transparent;
        padding: 4px 0;
        grid-template-columns: 70px 1fr;
    }

    .meal-row label {
        background: transparent;
        color: #000000;
        padding: 0;
        justify-content: flex-start;
        text-transform: none;
        letter-spacing: normal;
    }

    textarea {
        min-height: auto;
        border: none;
        background: transparent;
        padding: 0;
        resize: none;
        box-shadow: none;
    }
}

	.toolbar-link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 42px;
		padding: 10px 17px;
		border-radius: 999px;
		background: rgba(255,255,255,0.12);
		color: #ffffff;
		border: 1px solid rgba(255,255,255,0.18);
		text-decoration: none;
		font-weight: 750;
		font-size: 14px;
		transition: transform 0.15s ease, background 0.15s ease;
	}

	.toolbar-link:hover {
		transform: translateY(-1px);
		background: rgba(255,255,255,0.20);
	}
	
/* =========================================================
   Versione compatta / mobile friendly
   ========================================================= */

body {
    padding: 18px 10px;
}

.page {
    max-width: 1040px;
}

.topbar {
    margin-bottom: 14px;
    gap: 14px;
}

.topbar h1 {
    font-size: clamp(32px, 7vw, 54px);
    letter-spacing: -0.055em;
}

.week-label {
    margin-top: 10px;
    font-size: 14px;
}

.week-nav {
    gap: 7px;
}

.week-nav a {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
}

/* Toolbar più compatta */
.toolbar {
    top: 8px;
    gap: 8px;
    margin-bottom: 14px;
    padding: 9px;
    border-radius: 18px;
}

.toolbar button,
.toolbar-link {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1;
}

#saveStatus {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
}

/* Griglia più compatta */
.menu-sheet {
    gap: 10px;
}

/* Card giorno più bassa */
.day-block {
    padding: 14px;
    border-radius: 20px;
}

.day-block:hover {
    transform: none;
}

.day-block::after {
    width: 90px;
    height: 90px;
    right: -35px;
    top: -35px;
}

.day-block h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

.day-block h2::before {
    width: 8px;
    height: 22px;
}

/* Riga pranzo/cena compatta */
.meal-row {
    grid-template-columns: 72px 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 7px;
    padding: 7px;
    border-radius: 14px;
}

.meal-row label {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
    letter-spacing: 0.045em;
}

/* Campo testo: una riga */
textarea {
    min-height: 34px;
    height: 34px;
    max-height: 34px;
    resize: none;
    overflow: hidden;
    padding: 6px 10px;
    border-radius: 11px;
    font-size: 15px;
    line-height: 20px;
    white-space: nowrap;
}

/* Focus più sobrio su mobile */
textarea:focus {
    box-shadow:
        0 0 0 3px rgba(249, 115, 22, 0.13),
        0 6px 14px rgba(15, 23, 42, 0.06);
}

/* Link toolbar: stile allineato ai pulsanti */
.toolbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.18);
    text-decoration: none;
    font-weight: 750;
    font-family: inherit;
    box-shadow: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.toolbar-link:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.20);
    border-color: rgba(255,255,255,0.30);
}

/* Suggerimenti più compatti */
.suggestion-item {
    padding: 9px 12px;
    font-size: 14px;
}

/* Modale idee più compatta */
.modal-content {
    padding: 18px;
    border-radius: 22px;
}

.modal-header {
    margin-bottom: 12px;
}

.modal-header h2 {
    font-size: 24px;
}

.idea-chip {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 13px;
}

/* =========================================================
   Mobile stretto
   ========================================================= */

@media screen and (max-width: 700px) {
    body {
        padding: 10px 8px;
    }

    .topbar {
        grid-template-columns: 1fr;
        margin-bottom: 10px;
    }

    .topbar h1 {
        font-size: 34px;
    }

    .week-label {
        font-size: 13px;
    }

    .week-nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        width: 100%;
        gap: 6px;
    }

    .week-nav a {
        width: 100%;
        min-height: 34px;
        padding: 7px 8px;
        font-size: 12px;
        text-align: center;
    }

    .toolbar {
        position: sticky;
        top: 6px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        padding: 8px;
    }

    .toolbar button,
    .toolbar-link {
        width: 100%;
        min-height: 35px;
        padding: 8px 9px;
        font-size: 12px;
    }

    .toolbar-link {
        grid-column: 1 / -1;
    }

    #saveStatus {
        grid-column: 1 / -1;
        justify-content: center;
        margin-left: 0;
        min-height: 28px;
    }

    .menu-sheet {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .day-block {
        padding: 12px;
        border-radius: 18px;
    }

    .day-block h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .meal-row {
        grid-template-columns: 64px 1fr;
        padding: 6px;
        gap: 7px;
        margin-bottom: 6px;
    }

    .meal-row label {
        min-height: 28px;
        font-size: 10px;
        padding: 4px 7px;
    }

    textarea {
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        padding: 5px 9px;
        font-size: 14px;
        line-height: 20px;
    }
}

/* Telefoni molto stretti */
@media screen and (max-width: 420px) {
    .week-nav {
        grid-template-columns: 1fr;
    }

    .toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .meal-row {
        grid-template-columns: 58px 1fr;
    }

    .meal-row label {
        font-size: 9.5px;
    }

    textarea {
        font-size: 14px;
    }
}
	
}

/* =========================================================
   Navigazione settimana ultra compatta su mobile
   ========================================================= */

.mobile-label {
    display: none;
}

.week-nav {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.week-nav a,
.week-nav-btn {
    min-height: 34px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

/* Mobile */
@media screen and (max-width: 700px) {
    .topbar {
        gap: 8px;
        margin-bottom: 8px;
    }

    .topbar h1 {
        font-size: 32px;
        line-height: 0.95;
    }

    .week-label {
        margin-top: 8px;
        font-size: 13px;
    }

    .week-nav {
        width: auto;
        display: inline-flex;
        justify-content: flex-start;
        align-items: center;
        gap: 4px;
        margin-top: 4px;
        padding: 4px;
        border-radius: 999px;
        background: rgba(255,255,255,0.10);
        border: 1px solid rgba(255,255,255,0.13);
        backdrop-filter: blur(12px);
    }

    .week-nav a,
    .week-nav-btn {
        width: auto;
        min-width: 38px;
        height: 30px;
        min-height: 30px;
        padding: 0 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 800;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .week-current {
        min-width: 58px;
        background: rgba(255,255,255,0.20) !important;
    }

    .desktop-label {
        display: none;
    }

    .mobile-label {
        display: inline;
        font-size: 22px;
        line-height: 1;
        transform: translateY(-1px);
    }
}

/* Telefoni stretti: ancora più compatto */
@media screen and (max-width: 420px) {
    .week-nav {
        gap: 2px;
        padding: 3px;
    }

    .week-nav a,
    .week-nav-btn {
        min-width: 34px;
        height: 28px;
        min-height: 28px;
        padding: 0 8px;
        font-size: 11px;
    }

    .week-current {
        min-width: 50px;
    }

    .mobile-label {
        font-size: 20px;
    }
}

/* Toolbar compatta con due azioni: Idee + Manutenzione */

.toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 8px;
}

.toolbar button,
.toolbar-link {
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.toolbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.18);
    text-decoration: none;
    font-family: inherit;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.toolbar-link:hover {
    background: rgba(255,255,255,0.20);
    border-color: rgba(255,255,255,0.30);
}

#saveStatus {
    white-space: nowrap;
}

/* Mobile */
@media screen and (max-width: 700px) {
    .toolbar {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        padding: 8px;
    }

    #saveStatus {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
        min-height: 28px;
    }
}

/* =========================================================
   Toolbar definitiva: Idee + Manutenzione sulla stessa riga
   ========================================================= */

.toolbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    align-items: center;
}

.toolbar button,
.toolbar .toolbar-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.toolbar .toolbar-link {
    grid-column: auto !important;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.toolbar .toolbar-link:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.30);
}

#saveStatus {
    grid-column: 1 / -1 !important;
    width: 100%;
    justify-content: center;
    margin-left: 0 !important;
}

/* Mobile compatto */
@media screen and (max-width: 700px) {
    .toolbar {
        grid-template-columns: 1fr 1fr !important;
        gap: 7px !important;
        padding: 8px !important;
    }

    .toolbar button,
    .toolbar .toolbar-link {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 12px;
    }

    #saveStatus {
        min-height: 28px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* =========================================================
   Toolbar con Idee / Copia precedente / Manutenzione
   ========================================================= */

.toolbar {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: center;
}

.toolbar button,
.toolbar .toolbar-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.toolbar .toolbar-link {
    grid-column: auto !important;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

#saveStatus {
    grid-column: 1 / -1 !important;
    width: 100%;
    justify-content: center;
    margin-left: 0 !important;
}

/* Mobile */
@media screen and (max-width: 700px) {
    .toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        padding: 8px !important;
    }

    .toolbar button,
    .toolbar .toolbar-link {
        min-height: 34px;
        padding: 7px 6px;
        font-size: 11px;
    }

    #saveStatus {
        min-height: 28px;
        padding: 6px 10px;
        font-size: 12px;
    }
}