/* --- TABLATURE TOOL CONTAINER & BASE EXTENSIONS --- */
body.tab-body {
    background-color: var(--dark-alt);
}

.app-card {
    border-radius: 12px; 
    margin: auto; 
    position: relative;
    padding: 2rem;
    border: var(--border);
    background: var(--dark);
}

.sub-header { 
    color: var(--Dark-grey); 
    font-size: 1rem; 
    margin-bottom: 10px; 
}

.cormorant-garamond-slanted { 
    font-family: "Cormorant Garamond", serif; 
    font-optical-sizing: auto; 
    font-weight: 700; 
    font-style: italic; 
}

/* --- BUTTON EXTENSIONS --- */
.btn-success { 
    --btn-bg: var(--green);
    background: var(--btn-bg); 
}
.btn-success:hover:not(:disabled) { 
    background: color-mix(in srgb, var(--green), black 10%); 
}

.btn-secondary.selected { 
    background: var(--darker-grey); 
    outline: 1px solid var(--green); 
    outline-offset: -1px; 
}

.btn-sm { 
    padding: 8px 15px; 
    font-size: 0.8rem; 
    min-height: unset;
}

.btn-wide { 
    min-width: 170px; 
}

.btn-group { 
    display: flex; 
    gap: 10px; 
}

.btn-group .btn { 
    flex: 1; 
}

.btn-clear { display: flex; justify-content: flex-end; }

/* --- FRETBOARD --- */
.fretboard-layout::-webkit-scrollbar { height: 20px; }
.fretboard-layout::-webkit-scrollbar-track { background: transparent; }
.fretboard-layout::-webkit-scrollbar-thumb { 
    background: var(--darker-grey); 
    border-radius: 16px; 
    border: 6px solid var(--dark-alt); 
    background-clip: padding-box; 
}
.fretboard-layout::-webkit-scrollbar-thumb:hover { background: #555; }

.fretboard-layout { 
    display: flex; 
    flex-direction: column; 
    margin-bottom: 30px; 
    margin-top: 10px; 
    background: var(--dark-alt); 
    padding: 20px; 
    border-radius: 8px; 
    border: var(--border); 
    overflow-x: auto; 
    scroll-behavior: smooth;
}

.fret-header-row { display: grid; grid-template-columns: 60px repeat(24, 180px); margin-left: 40px; margin-bottom: 10px; }
.fret-number { display: flex; align-items: center; justify-content: center; color: var(--Dark-grey); font-weight: 800; font-size: 0.75rem; }
.fretboard-core-wrap { display: flex; }
.string-labels-col { width: 40px; display: flex; flex-direction: column; }
.string-label { height: 50px; display: flex; align-items: center; justify-content: center; color: var(--Dark-grey); font-weight: 800; font-size: 1rem; }
.fretboard-interactive-area { flex: 1; position: relative; }
.visual-grid { position: absolute; top: 25px; bottom: 25px; left: 60px; right: 0; pointer-events: none; }
.v-string { position: absolute; left: 0; right: 0; height: 1px; background: var(--darker-grey); }
.v-fret { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--darker-grey); }
.v-nut { position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--light-grey-b); transform: translateX(-2.5px); border-radius: 1px; z-index: 5; }
.interaction-grid { display: grid; grid-template-columns: 60px repeat(24, 180px); grid-template-rows: repeat(6, 50px); }
.click-zone { display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; position: relative; }
.note-visual { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1rem; pointer-events: none; z-index: 20; position: relative; }
.open-dot { border: 2px solid var(--light); color: var(--light); background: var(--dark-alt); }
.muted-x { color: var(--accent); font-family: 'Arial Black', sans-serif; font-size: 1.4rem; }
.fretted-dot { background: var(--accent); border: 1px solid var(--light); color: var(--light); box-shadow: 0 0 12px rgba(219, 48, 105, 0.4); }

/* --- CONTROLS --- */
.controls { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 30px;
    padding: 25px; 
    border-radius: 8px; 
    border: var(--border); 
    align-items: center; 
}

.chord-name-container { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#chordNameDisplay { font-family: 'Outfit', sans-serif; margin: 0; font-size: 2.2rem; font-weight: 800; color: var(--light); outline: none; border-bottom: 2px dashed transparent; transition: border-bottom 0.3s; }
#chordNameDisplay[contenteditable="true"] { border-bottom: 2px dashed var(--accent); }
.edit-icon { fill: var(--light-grey); cursor: pointer; transition: fill 0.3s; }
.edit-icon:hover { fill: var(--accent); }
#notesDisplay { color: var(--accent); font-family: monospace; font-size: 1.1rem; letter-spacing: 2px; }

/* --- LEAD SHEET --- */
#lead-sheet { 
    background: var(--light); 
    border-radius: 8px; 
    padding: 40px; 
    color: var(--black); 
    margin-top: 30px; 
    min-height: 450px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    width: 100%; 
    position: relative; 
    cursor: default; 
}

.title-container { border-bottom: 2px solid var(--black); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; padding-bottom: 5px; flex-wrap: wrap; }

#songTitleDisplay { font-weight: 900; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; outline: none; min-width: 50px; }
#songTitleDisplay[contenteditable="true"] { border-bottom: 1px dashed var(--pink); background: #fffceb; }

#keyDisplay { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1rem; color: var(--darker-grey); font-style: italic; margin-bottom: 20px; pointer-events: none; }
#bpmDisplay { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1rem; color: var(--darker-grey); font-style: italic; margin-bottom: 20px; display: flex; align-items: baseline; }

#bpm-value { outline: none; -webkit-tap-highlight-color: transparent; font-size: 1.4rem; line-height: 1.4rem; }
#bpm-icon { transform: scaleX(-1); }

/* --- GRID & SELECTION --- */
.sheet-container { display: block; width: 100%; position: relative; }
#session-grid { display: flex; width: 100%; flex-wrap: nowrap; gap: 0; }
.progression-slot { position: relative; width: 25%; flex: 0 0 25%; display: flex; flex-direction: column; align-items: center; transition: all 0.2s; border: 2px solid transparent; border-radius: 4px; background: var(--light); }

.progression-slot:hover { background: #f7f7f7; }
.progression-slot.selected { border-color: var(--pink); background: #fffafa; box-shadow: inset 0 0 10px rgba(219, 48, 105, 0.05); }

.slot-actions { position: absolute; display: flex; opacity: 0; transition: opacity 0.2s; z-index: 100; }
.progression-slot:hover .slot-actions { opacity: 1; }
.action-icon-btn { background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; color: #999; transition: color 0.2s; }
.action-icon-btn:hover { color: var(--pink); }
.action-icon-btn.disabled { opacity: 0.2; cursor: not-allowed; pointer-events: none; }

#btn-add-bar { position: absolute; display: flex; align-items: center; justify-content: center; background: none; border: none; padding: 0; cursor: pointer; z-index: 200; top: 135px; transform: translateX(-50%); transition: all 0.2s; color: #999; }
#btn-add-bar:hover { color: var(--pink); transform: translateX(-50%) scale(1.1); }

.chord-label { font-weight: 800; font-size: 1.2rem; margin-top: 10px; height: 30px; min-height: 30px; text-align: center; pointer-events: none; }
.diag-wrapper { height: 140px; min-height: 140px; width: 100%; display: flex; justify-content: center; position: relative; pointer-events: none; } 
.tab-wrapper { width: 100%; pointer-events: none; }

.action-footer { display: flex; justify-content: flex-end; margin-top: 15px; gap: 10px; }

/* --- STRUM ARCHITECT MODAL --- */
#strum-modal { 
    position: absolute; 
    width: 380px; 
    background: var(--black); 
    border: 1px solid var(--darker-grey); 
    border-radius: 8px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.8); 
    z-index: 1000; 
    display: none; 
    flex-direction: column; 
    gap: 15px; 
    padding: 15px; 
    color: var(--light); 
}
#strum-modal.active { display: flex; }

.modal-drag-handle { cursor: move; background: #222; margin: -15px -15px 0 -15px; padding: 10px 15px; border-bottom: 1px solid var(--darker-grey); border-radius: 8px 8px 0 0; display: flex; justify-content: space-between; align-items: center; }
.modal-drag-handle h3 { margin: 0; font-size: 0.8rem; letter-spacing: 1px; color: var(--pink); }
.close-modal-btn { background: none; border: none; color: var(--Dark-grey); cursor: pointer; transition: color 0.2s; padding: 0; display: flex;}
.close-modal-btn:hover { color: var(--light); }

/* PAINTBRUSH TOOLBAR */
.strum-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
.tool-btn { background: var(--darker-grey); border: 1px solid #444; color: var(--light); width: 34px; height: 34px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: bold; transition: all 0.2s; }
.tool-btn:hover { background: #444; }
.tool-btn.active { background: var(--pink); border-color: #ff4d8d; }
.res-dropdown { background: var(--darker-grey); color: var(--light); border: 1px solid #444; padding: 6px; border-radius: 4px; font-size: 0.8rem; margin-left: auto; cursor: pointer; outline: none; }

.strum-grid-container { display: flex; flex-wrap: nowrap; width: 100%; background: var(--dark-alt); border: 1px solid var(--darker-grey); border-radius: 4px; overflow: hidden; height: 60px; touch-action: none; }
.strum-cell { flex: 1 1 0; min-width: 0; border-right: 1px solid #222; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.1s; font-size: 1rem; font-weight: bold; color: #555; user-select: none; }
.strum-cell:last-child { border-right: none; }
.strum-cell:hover { background: var(--black); }
.strum-cell.state-d { color: var(--light); background: rgba(255,255,255,0.05); } 
.strum-cell.state-u { color: var(--blue); background: rgba(36, 156, 220, 0.05); } 
.strum-cell.state-m { color: var(--pink); background: rgba(219, 48, 105, 0.05); } 

.strum-footer { display: flex; justify-content: flex-end; margin-top: 5px; }

/* --- SNACKBAR & ALERTS --- */
#snackbar { 
    visibility: hidden; 
    min-width: 320px; 
    background-color: var(--light); 
    color: var(--dark-alt); 
    border-radius: 8px; 
    padding: 16px 24px; 
    position: fixed; 
    z-index: 5000; 
    left: 50%; 
    bottom: 30px; 
    transform: translateX(-50%); 
    font-weight: 800; 
    letter-spacing: 0.5px; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 4px; 
    transition: visibility 0s, opacity 0.3s ease-in-out; 
    opacity: 0; 
}
#snackbar.warning { border-left: 6px solid var(--pink); }
.warn-icon { display: none; width: 20px; height: 20px; background: var(--pink); color: var(--light); border-radius: 50%; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; }
#snackbar.warning .icon-warn { display: flex; background: var(--pink); }
#snackbar.success { border-left: 6px solid var(--green); }
#snackbar.success .icon-success { display: flex; background: var(--green); }
.sb-icon { width: 22px; height: 22px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: var(--light); flex-shrink: 0; }
#snackbar.show { visibility: visible; opacity: 1; animation: fadein-bottom 0.4s, fadeout-bottom 0.4s 2.6s; }

@keyframes fadein-bottom { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout-bottom { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

/* Chord Alternates */
.alt-btn { min-width: 80px; padding: 8px 12px; background: #222; color: #555; border: 1px solid var(--darker-grey); border-radius: 4px; font-family: 'Outfit', sans-serif; font-size: 14px; cursor: pointer; transition: all 0.2s ease; }
.alt-btn.active { background: #ffffff10; color: var(--light); cursor: pointer; }
.alt-btn.active:hover { background: #ffffff20; }
.alt-btn.selected { background: #ffffff00; color: var(--light); }

/* Progression Bank List View */
.bank-list-container { width: 100%; margin-top: 20px; border: 1px solid var(--darker-grey); border-radius: 4px; overflow: hidden; background: #1a1a1a; }

.bank-header, .bank-row { display: grid; grid-template-columns: 40px 2fr 1fr 1fr 1.5fr; gap: 10px; align-items: center; }

.bank-header { background: #252525; padding: 12px 20px; border-bottom: 1px solid var(--darker-grey); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--Dark-grey); }

.bank-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.bank-btn { display: flex; gap: 10px; }

/* Sortable Headers */
.sort-header { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; transition: color 0.2s; }
.sort-header:hover { color: var(--light); }
.sort-arrow-wrap { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.sort-arrow { transition: transform 0.2s, opacity 0.2s; opacity: 0; fill: currentColor; }
.sort-header:hover .sort-arrow.inactive { opacity: 0.4; }
.sort-header.active .sort-arrow { opacity: 1; color: var(--pink); }
.sort-arrow.desc { transform: rotate(180deg); }

.bank-row { padding: 12px 20px; border-bottom: 1px solid #222; cursor: pointer; transition: background 0.2s; position: relative; }
.bank-row:last-child { border-bottom: none; }
.bank-row:hover { background: #2a2a2a; }

.bank-row .col-name { color: var(--light); font-weight: 500; font-size: 0.9rem; }
.bank-row .col-key { color: var(--pink); font-family: monospace; font-size: 0.85rem; font-weight: 600; }
.bank-row .col-bpm { color: var(--Dark-grey); font-size: 0.85rem; font-weight: 600; font-family: monospace; }
.bank-row .col-modified { color: var(--Dark-grey); font-size: 0.8rem; font-family: monospace; }
.col-check { display: flex; align-items: center; justify-content: center; }

/* Inline Edit UI */
.title-edit-wrapper { display: flex; align-items: center; gap: 10px; width: 100%; }
.bank-title-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase;}
.inline-edit-btn { background: none; border: none; padding: 0; margin-top: 2px; color: var(--Dark-grey); cursor: pointer; opacity: 0; transition: color 0.2s, opacity 0.2s; display: flex; align-items: center; justify-content: center; }
.bank-row:hover .inline-edit-btn { opacity: 1; }
.inline-edit-btn:hover { color: var(--pink); }
.col-name-input { background: #111; color: var(--light); border: 1px solid var(--pink); padding: 4px 8px; outline: none; font-family: 'Outfit', sans-serif; font-size: 0.9rem; width: 90%; border-radius: 4px; box-shadow: inset 0 0 5px rgba(0,0,0,0.5); text-transform: uppercase;}

/* Bank Row Delete Button */
.row-delete-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: color 0.2s, opacity 0.2s;
    background: none;
    color: #999;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.bank-row:hover .row-delete-btn { opacity: 1; }
.row-delete-btn:hover { color: var(--pink); }

/* Deletion Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.confirm-card {
    background: var(--black);
    border: 1px solid var(--darker-grey);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
}
.confirm-card h3 { margin: 0 0 10px; text-transform: uppercase; font-size: 1rem; color: var(--light); }
.confirm-card p { color: var(--Dark-grey); font-size: 0.9rem; margin-bottom: 25px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* --- PDF EXPORT MODAL & STAGING --- */
#pdf-preview-modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); backdrop-filter: blur(5px); scrollbar-width: thin; scrollbar-color: #777 transparent; }
.modal-content { background-color: #f0f0f0; margin: 2% auto; padding: 0; width: 1100px; height: 90vh; border-radius: 8px; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.modal-header { background: var(--black); padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; border-radius: 8px 8px 0 0; }
.preview-body { flex-grow: 1; overflow-y: auto; padding: 20px; background: #555; }
.pdf-page-preview { background: var(--light); width: 700px; margin: 0 auto 30px auto; box-shadow: 0 5px 15px rgba(0,0,0,0.3); padding: 50px; color: var(--black); min-height: 900px; }
.pdf-page-break { page-break-after: always; padding: 40px; }

body.printing-mode #lead-sheet { background: var(--light) !important; color: var(--black) !important; }
body.printing-mode .chord-slot { background: var(--light) !important; border-color: #eee !important; }
body.printing-mode .sheet-container { background: var(--light) !important; }

#pdf-pages-staging { margin-top: 0 !important; pointer-events: none; }
.html2pdf__page-break { pointer-events: auto; }
#pdf-pages-staging .chord-slot { background: var(--light) !important; border: none !important; color: var(--black) !important; box-shadow: none !important; transform: none !important; }
#pdf-pages-staging svg { filter: invert(0) !important; }
#pdf-pages-staging .pdf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 !important; width: 100%; background: var(--light); }
#pdf-pages-staging .pdf-title { font-size: 1.5rem; font-weight: 800; color: var(--black); margin: 0; }
#pdf-pages-staging .pdf-key { font-size: 0.9rem; font-weight: 800; color: var(--darker-grey); margin-bottom: 15px; }

#file-gallery { display: block; }

.preview-header { position: sticky !important; top: 0; background: #f8f9fa; z-index: 9999 !important; pointer-events: auto !important; display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; border-bottom: 1px solid #eee; }

/* Progress Bar */
.tooltip.export-mode { flex-direction: column; align-items: flex-start; min-width: 280px; padding: 16px 24px; transform: translateX(-50%) translateY(0); }
.progress-wrapper { width: 100%; height: 4px; background: rgba(0, 0, 0, 0.1); border-radius: 4px; margin-top: 8px; overflow: hidden; display: none; }
#snackbar.export-mode .progress-wrapper { display: block; }
.progress-bar-fill { width: 0%; height: 100%; background: var(--green); transition: width 0.3s ease; }
.tooltip.success .progress-bar-fill { background: var(--light); }

/* --- HOW TO USE SECTION --- */


.how-to-use-section .section-heading {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--light);
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.instruction-card {
    background: var(--dark);
    border: var(--border);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instruction-card-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instruction-card .code-font {
    margin-bottom: 0;
}

.instruction-card h4 {
    color: var(--light);
}

.instruction-card p {
    color: var(--light-grey-b);
    line-height: 1.5;
}

.instruction-card code {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: "Courier Prime", monospace;
    font-size: 0.95rem;
}

.note-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(240, 102, 40, 0.08); /* Light tint of var(--accent) */
    border: 1px solid rgba(240, 102, 40, 0.3);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    color: var(--light-grey-b);
}

.note-box i {
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
}

.note-box p {
    font-size: 0.95rem;
    margin: 0;
}

.note-box strong {
    color: var(--light);
}

/* Print Media Styles */
@media print { 
    .no-print { display: none; } 
    body { background: var(--light); } 
    .app-card { border: none; box-shadow: none; } 
    #lead-sheet { padding: 0; border: none; } 
    .progression-slot { background: none !important; border: none !important; } 
    #btn-add-bar { display: none; } 
}

/* --- MOBILE RESPONSIVE QUERIES --- */
@media (max-width: 768px) {
    .app-card { padding: 15px; border-radius: 8px; padding-bottom: 8rem; }

    /* Fretboard Layout */
    .interaction-grid { display: grid; grid-template-columns: 60px repeat(24, 80px); grid-template-rows: repeat(6, 50px); }
    .fret-header-row { display: grid; grid-template-columns: 60px repeat(24, 80px); margin-left: 40px; margin-bottom: 10px; }
    
    /* Stack controls and buttons */
    .controls { grid-template-columns: 1fr; gap: 20px; }
    .btn-group { flex-direction: column; }
    .btn-group .btn { width: 100%; }
    #alt-button-group { flex-wrap: wrap; }
    .alt-btn { flex: 1 1 45%; }

    .instruction-card p { text-align: left;}
    
    /* Sheet Scrolling for Mobile */
    #lead-sheet { padding: 20px 15px; }
    .sheet-container { overflow-x: auto; scroll-snap-type: x mandatory; display: flex; padding-bottom: 15px; }
    #session-grid { min-width: max-content; gap: 0; display: flex; min-height: 275px;} 
    
    /* Expanded Mobile Bars & Persistent Icons */
    .progression-slot { flex: 0 0 75vw !important; width: 75vw !important; scroll-snap-align: center; }
    .slot-actions { opacity: 1 !important; }
    
    .title-container { flex-direction: row; align-items: flex-start; gap: 5px; }
    
    /* Bank List Scrolling & Persistent Icons */
    .bank-list-container { overflow-x: auto; }
    .bank-header, .bank-row { min-width: 650px; } 
    .bank-row { padding-right: 40px; }
    .inline-edit-btn { opacity: 1 !important; }
    .row-delete-btn { opacity: 1 !important; right: 10px; }
    
    .bank-title { align-items: normal; flex-direction: column; gap: 10px; }
    .bank-btn { flex-direction: column; }
    
    /* Stack footer actions */
    .action-footer { flex-direction: column; gap: 10px; }
    .action-footer .btn { width: 100%; }

    /* Fix PDF Preview Modal for Mobile */
    .modal-content { width: 95%; height: 85vh; margin: 5% auto; }
    .modal-header { flex-direction: column; gap: 15px; text-align: center; }
    .modal-header div { width: 100%; flex-direction: column; }
    .modal-header .btn { width: 100%; }

    .btn-clear { justify-content: center;}
    .note-box p {font-size: 1.2rem;}

    .inst-space { margin-bottom: 1rem;}
    .note-box {flex-direction: column;}
}