/* Mac OS 9 Platinum Style - Shared Design System */

:root {
    /* OS9 Platinum palette - slightly warmer and more refined */
    --platinum: #cccccc;
    --platinum-light: #eeeeee;
    --platinum-mid: #dddddd;
    --platinum-dark: #999999;
    --platinum-darker: #666666;
    --platinum-shadow: #888888;
    --white: #ffffff;
    --black: #000000;
    --highlight: #0066cc;
    --highlight-text: #ffffff;
    --window-bg: #dddddd;

    /* OS9 title bar pinstripe colors */
    --stripe-light: #eeeeee;
    --stripe-dark: #bbbbbb;

    /* OS9 accent colors */
    --accent-blue: #3366cc;
    --accent-graphite: #666677;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Geneva was the classic Mac UI font, Verdana is a close web-safe match */
    font-family: Geneva, Verdana, 'Lucida Grande', sans-serif;
    font-size: 12px;
    background: linear-gradient(180deg, var(--platinum-light) 0%, var(--platinum) 100%);
    background-attachment: fixed;
    color: var(--black);
    min-height: 100vh;
}

/* ============================================
   Buttons - Mac OS 9 refined raised style
   ============================================ */

.mac-btn {
    background: linear-gradient(180deg, var(--platinum-light) 0%, var(--platinum) 50%, var(--platinum-dark) 100%);
    border: 1px solid var(--platinum-darker);
    padding: 4px 16px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-shadow) inset;
    border-radius: 3px;
}

.mac-btn:hover {
    background: linear-gradient(180deg, var(--white) 0%, var(--platinum-light) 50%, var(--platinum) 100%);
}

.mac-btn:active {
    background: linear-gradient(180deg, var(--platinum-dark) 0%, var(--platinum) 50%, var(--platinum-light) 100%);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
}

.mac-btn:disabled {
    color: var(--platinum-dark);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Primary button style (OS9 default button with outline) */
.mac-btn-primary {
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-shadow) inset,
        0 0 0 3px var(--platinum),
        0 0 0 4px var(--black);
}

/* ============================================
   Form inputs - Mac OS 9 inset style
   ============================================ */

.mac-input {
    background: var(--white);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
    color: var(--black);
    padding: 6px 8px;
    font-size: 12px;
    font-family: inherit;
    border-radius: 0;
}

.mac-input:focus {
    outline: none;
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset,
        0 0 0 2px var(--highlight);
}

.mac-input::placeholder {
    color: var(--platinum-dark);
}

/* Select dropdowns - OS9 style */
.mac-select {
    background: linear-gradient(180deg, var(--white) 0%, var(--platinum-light) 100%);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-shadow) inset;
    color: var(--black);
    padding: 3px 8px;
    font-size: 11px;
    font-family: inherit;
    border-radius: 0;
}

/* ============================================
   Panels and containers - OS9 style
   ============================================ */

.mac-panel {
    background: var(--platinum);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-shadow) inset;
}

.mac-panel-inset {
    background: var(--white);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
}

/* OS9 group box / bevel box */
.mac-group-box {
    background: var(--platinum);
    border: 2px solid;
    border-color: var(--platinum-shadow) var(--white) var(--white) var(--platinum-shadow);
    padding: 12px;
    margin: 8px 0;
}

.mac-group-box-title {
    position: relative;
    top: -20px;
    left: 8px;
    background: var(--platinum);
    padding: 0 6px;
    font-weight: bold;
    font-size: 11px;
    display: inline-block;
    margin-bottom: -12px;
}

/* ============================================
   Window - Mac OS 9 window style with pinstripes
   ============================================ */

.mac-window {
    background: var(--platinum);
    border: 1px solid var(--black);
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-dark) inset,
        2px 2px 8px rgba(0,0,0,0.25);
    border-radius: 0;
}

.mac-window-title {
    padding: 3px 8px;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    position: relative;
    /* OS9 signature pinstripe pattern */
    background:
        repeating-linear-gradient(
            to bottom,
            var(--stripe-light) 0px,
            var(--stripe-light) 1px,
            var(--stripe-dark) 1px,
            var(--stripe-dark) 2px
        );
    border-bottom: 1px solid var(--platinum-dark);
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Title text sits on a raised platinum "pill" */
.mac-window-title span,
.mac-window-title-text {
    background: linear-gradient(180deg, var(--platinum-light) 0%, var(--platinum) 100%);
    padding: 1px 12px;
    border: 1px solid;
    border-color: var(--white) var(--platinum-dark) var(--platinum-dark) var(--white);
    position: relative;
    z-index: 1;
}

.mac-window-content {
    padding: 16px;
    background: var(--platinum);
}

/* ============================================
   Header - OS9 style with subtle pinstripes
   ============================================ */

header {
    background:
        repeating-linear-gradient(
            to bottom,
            var(--platinum-light) 0px,
            var(--platinum-light) 1px,
            var(--platinum) 1px,
            var(--platinum) 2px
        );
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--platinum-darker);
    box-shadow: 0 1px 0 var(--white);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 16px;
    font-weight: bold;
    color: var(--black);
}

.logo span {
    font-weight: normal;
}

.back-link {
    color: var(--black);
    text-decoration: none;
    font-size: 12px;
    padding: 2px 8px;
}

.back-link:hover {
    text-decoration: underline;
}

/* ============================================
   Common buttons - OS9 style
   ============================================ */

.btn-logout,
.btn-admin,
.btn-new-project,
.btn-upload,
.btn-export {
    background: linear-gradient(180deg, var(--platinum-light) 0%, var(--platinum) 50%, var(--platinum-dark) 100%);
    border: 1px solid var(--platinum-darker);
    color: var(--black);
    padding: 4px 14px;
    font-size: 11px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-shadow) inset;
    text-decoration: none;
    border-radius: 3px;
}

.btn-logout:hover,
.btn-admin:hover,
.btn-new-project:hover,
.btn-upload:hover,
.btn-export:hover {
    background: linear-gradient(180deg, var(--white) 0%, var(--platinum-light) 50%, var(--platinum) 100%);
}

.btn-logout:active,
.btn-admin:active,
.btn-new-project:active,
.btn-upload:active,
.btn-export:active {
    background: linear-gradient(180deg, var(--platinum-dark) 0%, var(--platinum) 50%, var(--platinum-light) 100%);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
}

.btn-upload:disabled,
.btn-export:disabled {
    color: var(--platinum-dark);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================
   User avatar - OS9 style
   ============================================ */

.user-avatar,
.current-user-avatar {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    color: var(--white);
    border: 1px solid var(--black);
    box-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

.current-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--white);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
    font-size: 11px;
    text-decoration: none;
    color: var(--black);
}

.current-user:hover {
    background: var(--platinum-light);
}

/* ============================================
   Modal overlay - OS9 style
   ============================================ */

.modal-overlay,
.settings-modal-overlay,
.add-comment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open,
.settings-modal-overlay.open,
.add-comment-modal.open {
    display: flex;
}

.modal,
.settings-modal,
.modal-content {
    background: var(--platinum);
    border: 1px solid var(--black);
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-dark) inset,
        4px 4px 12px rgba(0,0,0,0.35);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

/* Modal title bar with OS9 pinstripes */
.modal h2,
.settings-modal h2 {
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    margin: 0;
    min-height: 22px;
    background:
        repeating-linear-gradient(
            to bottom,
            var(--stripe-light) 0px,
            var(--stripe-light) 1px,
            var(--stripe-dark) 1px,
            var(--stripe-dark) 2px
        );
    border-bottom: 1px solid var(--platinum-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Title text on platinum pill */
.modal h2 span,
.settings-modal h2 span,
.modal-title-text {
    background: linear-gradient(180deg, var(--platinum-light) 0%, var(--platinum) 100%);
    padding: 1px 10px;
    border: 1px solid;
    border-color: var(--white) var(--platinum-dark) var(--platinum-dark) var(--white);
}

/* Close button - OS9 window widget style */
.modal h2 button,
.settings-modal h2 button {
    background: linear-gradient(180deg, var(--platinum-light) 0%, var(--platinum) 100%);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-shadow) inset;
    color: var(--black);
    font-size: 12px;
    cursor: pointer;
    padding: 1px 8px;
    line-height: 1.2;
    border-radius: 3px;
}

.modal h2 button:hover,
.settings-modal h2 button:hover {
    background: linear-gradient(180deg, var(--white) 0%, var(--platinum-light) 100%);
}

.modal h2 button:active,
.settings-modal h2 button:active {
    background: linear-gradient(180deg, var(--platinum-dark) 0%, var(--platinum) 100%);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
}

/* ============================================
   Form elements - OS9 style
   ============================================ */

.form-group,
.settings-form-group {
    margin-bottom: 12px;
}

.form-group label,
.settings-form-group label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
    color: var(--black);
}

.form-group input,
.settings-form-group input {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
    color: var(--black);
    padding: 6px 8px;
    font-size: 12px;
    font-family: inherit;
}

.form-group input:focus,
.settings-form-group input:focus {
    outline: none;
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset,
        0 0 0 2px var(--highlight);
}

/* ============================================
   Modal buttons - OS9 style
   ============================================ */

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

.modal-buttons button {
    padding: 6px 20px;
    font-size: 12px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    background: linear-gradient(180deg, var(--platinum-light) 0%, var(--platinum) 50%, var(--platinum-dark) 100%);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-shadow) inset;
    color: var(--black);
    border-radius: 3px;
}

.modal-buttons button:hover {
    background: linear-gradient(180deg, var(--white) 0%, var(--platinum-light) 50%, var(--platinum) 100%);
}

.modal-buttons button:active {
    background: linear-gradient(180deg, var(--platinum-dark) 0%, var(--platinum) 50%, var(--platinum-light) 100%);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
}

.modal-buttons button:disabled {
    color: var(--platinum-dark);
    cursor: not-allowed;
    opacity: 0.6;
}

/* OS9 default button - has the pulsing outline */
.modal-buttons button:first-child,
.modal-buttons button.primary {
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-shadow) inset,
        0 0 0 3px var(--platinum),
        0 0 0 4px var(--black);
}

/* ============================================
   Toast notifications - OS9 style
   ============================================ */

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--platinum);
    color: var(--black);
    padding: 12px 24px;
    border: 1px solid var(--black);
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-dark) inset,
        4px 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 12px;
    font-weight: bold;
    z-index: 2000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================
   Loading states - OS9 style
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--platinum-light) 0%, var(--platinum) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-text {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--black);
}

/* OS9 progress bar - the famous "barber pole" */
.loading-progress {
    width: 280px;
    height: 14px;
    background: var(--white);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
    overflow: hidden;
    border-radius: 0;
}

.loading-bar {
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        var(--highlight) 0px,
        var(--highlight) 6px,
        var(--accent-blue) 6px,
        var(--accent-blue) 12px
    );
    background-size: 17px 100%;
    animation: barber-pole 0.5s linear infinite;
    width: 0%;
    transition: width 0.2s;
}

@keyframes barber-pole {
    0% { background-position: 0 0; }
    100% { background-position: 17px 0; }
}

.loading-status {
    margin-top: 12px;
    font-size: 11px;
    color: var(--black);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   OS9 Window Control Boxes
   ============================================ */

.window-controls {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.window-control {
    width: 11px;
    height: 11px;
    background: linear-gradient(180deg, var(--platinum-light) 0%, var(--platinum) 100%);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-shadow) inset;
    cursor: pointer;
}

.window-control:hover {
    background: linear-gradient(180deg, var(--white) 0%, var(--platinum-light) 100%);
}

.window-control:active {
    background: linear-gradient(180deg, var(--platinum-dark) 0%, var(--platinum) 100%);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
}

/* Close box with X */
.window-close::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    margin: 1px;
}

/* ============================================
   OS9 Scrollbars (WebKit)
   ============================================ */

::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background:
        repeating-linear-gradient(
            to bottom,
            var(--platinum-light) 0px,
            var(--platinum-light) 1px,
            var(--platinum) 1px,
            var(--platinum) 2px
        );
    border: 1px solid var(--platinum-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--platinum-light) 0%, var(--platinum) 50%, var(--platinum-dark) 100%);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-shadow) inset;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--white) 0%, var(--platinum-light) 50%, var(--platinum) 100%);
}

::-webkit-scrollbar-button {
    background: linear-gradient(180deg, var(--platinum-light) 0%, var(--platinum) 100%);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-shadow) inset;
}

::-webkit-scrollbar-button:hover {
    background: linear-gradient(180deg, var(--white) 0%, var(--platinum-light) 100%);
}

::-webkit-scrollbar-corner {
    background: var(--platinum);
}

/* ============================================
   OS9 Tabs
   ============================================ */

.mac-tabs {
    display: flex;
    gap: 0;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}

.mac-tab {
    padding: 6px 16px;
    background: linear-gradient(180deg, var(--platinum) 0%, var(--platinum-dark) 100%);
    border: 1px solid var(--platinum-darker);
    border-bottom: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
    margin-right: -1px;
}

.mac-tab:hover {
    background: linear-gradient(180deg, var(--platinum-light) 0%, var(--platinum) 100%);
}

.mac-tab.active {
    background: var(--platinum);
    border-bottom: 1px solid var(--platinum);
    position: relative;
    z-index: 2;
}

.mac-tab-content {
    background: var(--platinum);
    border: 1px solid var(--platinum-darker);
    padding: 16px;
}

/* ============================================
   OS9 Checkboxes and Radio Buttons
   ============================================ */

.mac-checkbox {
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--white);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 6px;
}

.mac-checkbox:checked {
    background: var(--white);
    position: relative;
}

.mac-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 1px;
    font-size: 11px;
    font-weight: bold;
    color: var(--black);
}

.mac-radio {
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--white);
    border: 1px solid var(--platinum-darker);
    border-radius: 50%;
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 6px;
}

.mac-radio:checked::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--black);
    border-radius: 50%;
    margin: 2px;
}

/* ============================================
   Utility classes
   ============================================ */

.text-center { text-align: center; }
.text-bold { font-weight: bold; }
.hidden { display: none; }

/* ============================================
   Tutorial Modal - First-login carousel
   ============================================ */

.tutorial-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.tutorial-modal-overlay.open {
    display: flex;
}

.tutorial-modal {
    background: var(--platinum);
    border: 1px solid var(--black);
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-dark) inset,
        4px 4px 12px rgba(0,0,0,0.35);
    width: 900px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

.tutorial-modal-header {
    padding: 3px 8px;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    background:
        repeating-linear-gradient(
            to bottom,
            var(--stripe-light) 0px,
            var(--stripe-light) 1px,
            var(--stripe-dark) 1px,
            var(--stripe-dark) 2px
        );
    border-bottom: 1px solid var(--platinum-dark);
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-modal-header span {
    background: linear-gradient(180deg, var(--platinum-light) 0%, var(--platinum) 100%);
    padding: 1px 12px;
    border: 1px solid;
    border-color: var(--white) var(--platinum-dark) var(--platinum-dark) var(--white);
}

.tutorial-slides {
    padding: 24px 32px;
    min-height: 450px;
}

.tutorial-slide {
    display: none;
    text-align: center;
}

.tutorial-slide.active {
    display: block;
}

.tutorial-slide h2 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--black);
    background: none;
    border: none;
    padding: 0;
}

.tutorial-slide p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--black);
    max-width: 400px;
    margin: 0 auto;
}

.tutorial-slide img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
    margin: 20px 0 12px;
}

.tutorial-images {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin: 24px 0 12px;
}

.tutorial-images figure {
    flex: 1;
    max-width: 400px;
    margin: 0;
}

.tutorial-images img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top left;
    margin: 0 0 8px;
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
}

.tutorial-images figcaption {
    font-size: 12px;
    font-weight: bold;
    color: var(--black);
    text-align: center;
}

/* Tutorial mobile responsive */
@media (max-width: 768px) {
    .tutorial-modal {
        width: 100%;
        max-width: 100vw;
        max-height: 100vh;
        height: 100vh;
        border: none;
        box-shadow: none;
    }

    .tutorial-slides {
        padding: 20px 16px;
        min-height: auto;
    }

    .tutorial-slide h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .tutorial-slide p {
        font-size: 14px;
        max-width: 100%;
    }

    .tutorial-slide img {
        margin: 16px 0 8px;
        max-height: none;
    }

    .tutorial-images {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .tutorial-images figure {
        max-width: 100%;
        width: 100%;
    }

    .tutorial-images img {
        height: 160px;
    }

    .tutorial-nav {
        padding: 16px;
    }

    .tutorial-buttons {
        flex-wrap: wrap;
    }

    .tutorial-buttons button {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tutorial-slide h2 {
        font-size: 16px;
    }

    .tutorial-slide p {
        font-size: 13px;
    }

    .tutorial-images img {
        height: 140px;
    }

    .tutorial-dots {
        gap: 12px;
    }

    .tutorial-dot {
        width: 14px;
        height: 14px;
    }
}

.tutorial-nav {
    padding: 12px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.tutorial-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.tutorial-dot {
    width: 10px;
    height: 10px;
    background: var(--platinum-dark);
    border: 1px solid var(--platinum-darker);
    cursor: pointer;
}

.tutorial-dot:hover {
    background: var(--platinum);
}

.tutorial-dot.active {
    background: var(--highlight);
    border-color: var(--highlight);
}

.tutorial-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.tutorial-buttons button {
    padding: 6px 20px;
    font-size: 12px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    background: linear-gradient(180deg, var(--platinum-light) 0%, var(--platinum) 50%, var(--platinum-dark) 100%);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-shadow) inset;
    color: var(--black);
    border-radius: 3px;
}

.tutorial-buttons button:hover {
    background: linear-gradient(180deg, var(--white) 0%, var(--platinum-light) 50%, var(--platinum) 100%);
}

.tutorial-buttons button:active {
    background: linear-gradient(180deg, var(--platinum-dark) 0%, var(--platinum) 50%, var(--platinum-light) 100%);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
}

.btn-tutorial-done {
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-shadow) inset,
        0 0 0 3px var(--platinum),
        0 0 0 4px var(--black) !important;
}

/* Header help button */
.header-help-btn {
    width: 22px;
    height: 22px;
    background: linear-gradient(180deg, var(--platinum-light) 0%, var(--platinum) 50%, var(--platinum-dark) 100%);
    border: 1px solid var(--platinum-darker);
    box-shadow:
        1px 1px 0 var(--white) inset,
        -1px -1px 0 var(--platinum-shadow) inset;
    color: var(--black);
    font-size: 12px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-help-btn:hover {
    background: linear-gradient(180deg, var(--white) 0%, var(--platinum-light) 50%, var(--platinum) 100%);
}

.header-help-btn:active {
    background: linear-gradient(180deg, var(--platinum-dark) 0%, var(--platinum) 50%, var(--platinum-light) 100%);
    box-shadow:
        1px 1px 0 var(--platinum-shadow) inset,
        -1px -1px 0 var(--white) inset;
}
